aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-12 02:29:23 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-12 02:29:23 +0000
commit22bb75ea6cd36fc3f6b0f6be608aa4637063d29a (patch)
tree0dbc1aa6e4609190152b091cfcf8160e054cc0f6 /mod
parent52aaa3ded5302ac312e259a8e101363cdc3b548a (diff)
downloadelgg-22bb75ea6cd36fc3f6b0f6be608aa4637063d29a.tar.gz
elgg-22bb75ea6cd36fc3f6b0f6be608aa4637063d29a.tar.bz2
Fixes #2904: Converted most elgg_view('layout/objects/module') instances to elgg_view_module()
git-svn-id: http://code.elgg.org/elgg/trunk@8135 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r--mod/blog/views/default/blog/group_module.php8
-rw-r--r--mod/blog/views/default/blog/sidebar/archives.php6
-rw-r--r--mod/blog/views/default/blog/sidebar/revisions.php6
-rw-r--r--mod/file/views/default/file/group_module.php8
-rw-r--r--mod/groups/views/default/discussion/group_module.php8
-rw-r--r--mod/groups/views/default/groups/profile/activity_module.php9
-rw-r--r--mod/groups/views/default/groups/sidebar/featured.php6
-rw-r--r--mod/groups/views/default/groups/sidebar/find.php6
-rw-r--r--mod/groups/views/default/groups/sidebar/members.php6
-rw-r--r--mod/pages/views/default/pages/group_module.php8
-rw-r--r--mod/pages/views/default/pages/sidebar/history.php7
-rw-r--r--mod/pages/views/default/pages/sidebar/navigation.php6
12 files changed, 13 insertions, 71 deletions
diff --git a/mod/blog/views/default/blog/group_module.php b/mod/blog/views/default/blog/group_module.php
index e56670316..8c3fc373f 100644
--- a/mod/blog/views/default/blog/group_module.php
+++ b/mod/blog/views/default/blog/group_module.php
@@ -40,10 +40,4 @@ $new_link = elgg_view('output/url', array(
));
$content .= "<span class='elgg-widget-more'>$new_link</span>";
-
-$params = array(
- 'header' => $header,
- 'body' => $content,
- 'class' => 'elgg-module-info',
-);
-echo elgg_view('layout/objects/module', $params);
+echo elgg_view_module('info', '', $content, array('header' => $header));
diff --git a/mod/blog/views/default/blog/sidebar/archives.php b/mod/blog/views/default/blog/sidebar/archives.php
index bd74500ca..a76193831 100644
--- a/mod/blog/views/default/blog/sidebar/archives.php
+++ b/mod/blog/views/default/blog/sidebar/archives.php
@@ -25,10 +25,6 @@ if ($page_owner && $vars['page'] != 'friends') {
}
$content .= '</ul>';
- echo elgg_view('layout/objects/module', array(
- 'title' => $title,
- 'body' => $content,
- 'class' => 'elgg-module-aside',
- ));
+ echo elgg_view_module('aside', $title, $content);
}
} \ No newline at end of file
diff --git a/mod/blog/views/default/blog/sidebar/revisions.php b/mod/blog/views/default/blog/sidebar/revisions.php
index 1baf00037..b78eb6816 100644
--- a/mod/blog/views/default/blog/sidebar/revisions.php
+++ b/mod/blog/views/default/blog/sidebar/revisions.php
@@ -72,10 +72,6 @@ if (elgg_instanceof($blog, 'object', 'blog') && $blog->canEdit()) {
$body .= '</ul>';
- echo elgg_view('layout/objects/module', array(
- 'title' => $title,
- 'body' => $body,
- 'class' => 'elgg-module-aside',
- ));
+ echo elgg_view_module('aside', $title, $body);
}
} \ No newline at end of file
diff --git a/mod/file/views/default/file/group_module.php b/mod/file/views/default/file/group_module.php
index ebd07c2b2..8c80f297c 100644
--- a/mod/file/views/default/file/group_module.php
+++ b/mod/file/views/default/file/group_module.php
@@ -40,10 +40,4 @@ $new_link = elgg_view('output/url', array(
));
$content .= "<span class='elgg-widget-more'>$new_link</span>";
-
-$params = array(
- 'header' => $header,
- 'body' => $content,
- 'class' => 'elgg-module-info',
-);
-echo elgg_view('layout/objects/module', $params);
+echo elgg_view_module('info', '', $content, array('header' => $header));
diff --git a/mod/groups/views/default/discussion/group_module.php b/mod/groups/views/default/discussion/group_module.php
index dd3a3e1cb..afe47ab68 100644
--- a/mod/groups/views/default/discussion/group_module.php
+++ b/mod/groups/views/default/discussion/group_module.php
@@ -43,10 +43,4 @@ $new_link = elgg_view('output/url', array(
));
$content .= "<span class='elgg-widget-more'>$new_link</span>";
-
-$params = array(
- 'header' => $header,
- 'body' => $content,
- 'class' => 'elgg-module-info',
-);
-echo elgg_view('layout/objects/module', $params);
+echo elgg_view_module('info', '', $content, array('header' => $header));
diff --git a/mod/groups/views/default/groups/profile/activity_module.php b/mod/groups/views/default/groups/profile/activity_module.php
index 18bfbd596..58bf25095 100644
--- a/mod/groups/views/default/groups/profile/activity_module.php
+++ b/mod/groups/views/default/groups/profile/activity_module.php
@@ -36,12 +36,7 @@ if (!$content) {
$content = '<p>' . elgg_echo('groups:activity:none') . '</p>';
}
-$params = array(
- 'header' => $header,
- 'body' => $content,
- 'class' => 'elgg-module-info',
-);
-echo elgg_view('layout/objects/module', $params);
+echo elgg_view_module('info', '', $content, array('header' => $header));
return true;
?>
@@ -63,7 +58,7 @@ return true;
$items = get_data($sql);
- if (count($items) > 0) {
+ if (count($items) > 0) {
$river_items = elgg_view('river/item/list',array(
'limit' => $limit,
'offset' => $offset,
diff --git a/mod/groups/views/default/groups/sidebar/featured.php b/mod/groups/views/default/groups/sidebar/featured.php
index 46dc53abf..695782783 100644
--- a/mod/groups/views/default/groups/sidebar/featured.php
+++ b/mod/groups/views/default/groups/sidebar/featured.php
@@ -21,9 +21,5 @@ if ($featured_groups) {
}
elgg_pop_context();
- echo elgg_view('layout/objects/module', array(
- 'title' => elgg_echo("groups:featured"),
- 'body' => $body,
- 'class' => 'elgg-module-aside',
- ));
+ echo elgg_view_module('aside', elgg_echo("groups:featured"), $body);
}
diff --git a/mod/groups/views/default/groups/sidebar/find.php b/mod/groups/views/default/groups/sidebar/find.php
index de2a6e740..0d31ee711 100644
--- a/mod/groups/views/default/groups/sidebar/find.php
+++ b/mod/groups/views/default/groups/sidebar/find.php
@@ -7,8 +7,4 @@
$url = elgg_get_site_url() . 'pg/groups/world';
$body = elgg_view_form('groups/search', array('action' => $url, 'method' => 'get'));
-echo elgg_view('layout/objects/module', array(
- 'title' => elgg_echo('groups:searchtag'),
- 'body' => $body,
- 'class' => 'elgg-module-aside',
-));
+echo elgg_view_module('aside', elgg_echo('groups:searchtag'), $body);
diff --git a/mod/groups/views/default/groups/sidebar/members.php b/mod/groups/views/default/groups/sidebar/members.php
index 597ddc07c..711b99f34 100644
--- a/mod/groups/views/default/groups/sidebar/members.php
+++ b/mod/groups/views/default/groups/sidebar/members.php
@@ -18,8 +18,4 @@ foreach ($members as $mem) {
$body .= '</div>';
$body .= "<div class='center mts'>$all_link</div>";
-echo elgg_view('layout/objects/module', array(
- 'title' => elgg_echo("groups:members"),
- 'body' => $body,
- 'class' => 'elgg-module-aside',
-));
+echo elgg_view_module('aside', elgg_echo('groups:members'), $body); \ No newline at end of file
diff --git a/mod/pages/views/default/pages/group_module.php b/mod/pages/views/default/pages/group_module.php
index 1cf36067e..c41de043d 100644
--- a/mod/pages/views/default/pages/group_module.php
+++ b/mod/pages/views/default/pages/group_module.php
@@ -43,10 +43,4 @@ $new_link = elgg_view('output/url', array(
));
$content .= "<span class='elgg-widget-more'>$new_link</span>";
-
-$params = array(
- 'header' => $header,
- 'body' => $content,
- 'class' => 'elgg-module-info',
-);
-echo elgg_view('layout/objects/module', $params);
+echo elgg_view_module('info', '', $content, array('header' => $header));
diff --git a/mod/pages/views/default/pages/sidebar/history.php b/mod/pages/views/default/pages/sidebar/history.php
index 3c0b7bc14..dad06ab4f 100644
--- a/mod/pages/views/default/pages/sidebar/history.php
+++ b/mod/pages/views/default/pages/sidebar/history.php
@@ -11,9 +11,4 @@ if ($vars['page']) {
$content = $content = list_annotations($vars['page']->guid, 'page', 20, false);
}
-echo elgg_view('layout/objects/module', array(
- 'title' => $title,
- 'body' => $content,
- 'class' => 'elgg-module-aside',
-));
-
+echo elgg_view_module('aside', $title, $content); \ No newline at end of file
diff --git a/mod/pages/views/default/pages/sidebar/navigation.php b/mod/pages/views/default/pages/sidebar/navigation.php
index cbf21c058..43790a976 100644
--- a/mod/pages/views/default/pages/sidebar/navigation.php
+++ b/mod/pages/views/default/pages/sidebar/navigation.php
@@ -19,11 +19,7 @@ if (!$content) {
$content = '<p>' . elgg_echo('pages:none') . '</p>';
}
-echo elgg_view('layout/objects/module', array(
- 'title' => $title,
- 'body' => $content,
- 'class' => 'elgg-module-aside',
-));
+echo elgg_view_module('aside', $title, $content);
?><?php //@todo JS 1.8: no ?>
<script type="text/javascript">