diff options
author | sembrestels <sembrestels@riseup.net> | 2011-10-13 05:36:07 +0200 |
---|---|---|
committer | sembrestels <sembrestels@riseup.net> | 2011-10-13 05:36:07 +0200 |
commit | ecd013091b33659c5e944795dda2abce382104b4 (patch) | |
tree | 15f7d57d7e6ff36f90e4f8d3af6a3d151644633a /views/default | |
parent | a1d02e6f366423ccd1914182807a60b92d240c5b (diff) | |
download | elgg-ecd013091b33659c5e944795dda2abce382104b4.tar.gz elgg-ecd013091b33659c5e944795dda2abce382104b4.tar.bz2 |
Wiki group profile
Diffstat (limited to 'views/default')
-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)); } ?> |