diff options
Diffstat (limited to 'views/default/dokuwiki/grouppage.php')
-rw-r--r-- | views/default/dokuwiki/grouppage.php | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/views/default/dokuwiki/grouppage.php b/views/default/dokuwiki/grouppage.php index c5a342ac7..77cc9d104 100644 --- a/views/default/dokuwiki/grouppage.php +++ b/views/default/dokuwiki/grouppage.php @@ -1,13 +1,21 @@ <?php -$group = page_owner_entity(); +$group = elgg_get_page_owner_entity(); $offset = (int)get_input("offset",0); if ($group->dokuwiki_enable == 'yes' && $group->dokuwiki_frontpage_enable == 'yes') { - echo '<div class="contentWrapper">'; - set_input("inline_page", true); - echo elggdokuwiki_page_handler(array($group->guid)); - echo '</div>'; - $count = elgg_get_entities(array('offset'=>$offset,'full_view'=>FALSE,'types'=>'group','container_guid'=>$group->getGUID(),'count'=>TRUE)); + + set_input("inline_page", true); + + $all_link = elgg_get_site_url().'dokuwiki/'.$group->guid; + $all_text = elgg_echo('viewall'); + $all_link = "<a href=\"$all_link\">$all_text</a>"; + + echo elgg_view('groups/profile/module', array( + 'title' => elgg_echo('dokuwiki:group'), + 'content' => $none, + 'all_link' => $all_link, + )); + dokuwiki_page_handler(array($group->guid)); } ?> |