aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-08-30 00:54:24 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-08-30 00:54:24 -0300
commit47dfb7e30ac65307593ef8b3df25cc91be494757 (patch)
tree2c376041fbad880029f673aece4f8a57b6a41e44 /mod
parentf5a1da8b9a5a106806be5f83b22c7fd200833da2 (diff)
downloadelgg-47dfb7e30ac65307593ef8b3df25cc91be494757.tar.gz
elgg-47dfb7e30ac65307593ef8b3df25cc91be494757.tar.bz2
Adding the wire into custom_index
Diffstat (limited to 'mod')
-rw-r--r--mod/custom_index/index.php5
-rw-r--r--mod/custom_index/views/default/page/layouts/custom_index.php5
2 files changed, 10 insertions, 0 deletions
diff --git a/mod/custom_index/index.php b/mod/custom_index/index.php
index 05771f576..43cab9723 100644
--- a/mod/custom_index/index.php
+++ b/mod/custom_index/index.php
@@ -24,6 +24,10 @@ $blogs = elgg_list_entities($list_params);
$list_params['subtype'] = 'bookmarks';
$bookmarks = elgg_list_entities($list_params);
+//grab the latest thewire
+$list_params['subtype'] = 'thewire';
+$thewire = elgg_list_entities($list_params);
+
//grab the latest files
$list_params['subtype'] = 'file';
$files = elgg_list_entities($list_params);
@@ -58,6 +62,7 @@ $params = array(
'groups' => $groups,
'login' => $login,
'members' => $newest_members,
+ 'thewire' => $thewire,
);
$body = elgg_view_layout('custom_index', $params);
diff --git a/mod/custom_index/views/default/page/layouts/custom_index.php b/mod/custom_index/views/default/page/layouts/custom_index.php
index 85ed39df7..4f79754b9 100644
--- a/mod/custom_index/views/default/page/layouts/custom_index.php
+++ b/mod/custom_index/views/default/page/layouts/custom_index.php
@@ -30,6 +30,11 @@ echo elgg_view_module('featured', '', $top_box, $mod_params);
// a view for plugins to extend
echo elgg_view("index/lefthandside");
+// the wire
+if (elgg_is_active_plugin('thewire')) {
+ echo elgg_view_module('thewire', elgg_echo("thewire"), $vars['thewire'], $mod_params);
+}
+
// files
if (elgg_is_active_plugin('file')) {
echo elgg_view_module('featured', elgg_echo("custom:files"), $vars['files'], $mod_params);