diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-11 18:07:26 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-11 18:07:26 +0000 |
commit | bdacb612f3fffa967ef6fda89c081fb7a59894d2 (patch) | |
tree | ce26e1209d280025645dfca08d36abcacaadaee3 /mod/groups/forum.php | |
parent | a454889d81ed753de06ac6b014ff92ca3c57e039 (diff) | |
download | elgg-bdacb612f3fffa967ef6fda89c081fb7a59894d2.tar.gz elgg-bdacb612f3fffa967ef6fda89c081fb7a59894d2.tar.bz2 |
Added breadcrumb support and updated the mods with old-style breadcrumbs.
git-svn-id: http://code.elgg.org/elgg/trunk@5366 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/forum.php')
-rw-r--r-- | mod/groups/forum.php | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/mod/groups/forum.php b/mod/groups/forum.php index 12c84adb5..f59c3ed30 100644 --- a/mod/groups/forum.php +++ b/mod/groups/forum.php @@ -1,7 +1,7 @@ <?php /** * Elgg groups forum - * + * * @package ElggGroups * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 * @author Curverider @@ -10,32 +10,27 @@ */ require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php"); - + set_page_owner((int)get_input('group_guid')); if (!(page_owner_entity() instanceof ElggGroup)) forward(); - + group_gatekeeper(); - - //get any forum topics + //get any forum topics $topics = list_entities_from_annotations("object", "groupforumtopic", "group_topic_post", "", 20, 0, get_input('group_guid'), false, false, false); - set_context('search'); - - //set up breadcrumbs - $area1 = elgg_view('page_elements/breadcrumbs', array( - 'breadcrumb_root_url' => '', - 'breadcrumb_root_text' => 'Parent Group Name', - 'breadcrumb_currentpage' => elgg_echo('item:object:groupforumtopic') - )); - - + set_context('search'); + + // set up breadcrumbs + elgg_push_breadcrumb('Parent Group Name'); + elgg_push_breadcrumb(elgg_echo('item:object:groupforumtopic')); + $area1 .= elgg_view("forum/topics", array('topics' => $topics)); set_context('groups'); - + $body = elgg_view_layout('one_column_with_sidebar', $area1); - + $title = elgg_echo('item:object:groupforumtopic'); - + // Finally draw the page page_draw($title, $body); |