diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-12 02:29:23 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-12 02:29:23 +0000 |
commit | 22bb75ea6cd36fc3f6b0f6be608aa4637063d29a (patch) | |
tree | 0dbc1aa6e4609190152b091cfcf8160e054cc0f6 /mod/pages/views/default | |
parent | 52aaa3ded5302ac312e259a8e101363cdc3b548a (diff) | |
download | elgg-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/pages/views/default')
-rw-r--r-- | mod/pages/views/default/pages/group_module.php | 8 | ||||
-rw-r--r-- | mod/pages/views/default/pages/sidebar/history.php | 7 | ||||
-rw-r--r-- | mod/pages/views/default/pages/sidebar/navigation.php | 6 |
3 files changed, 3 insertions, 18 deletions
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"> |