diff options
author | sembrestels <sembrestels@riseup.net> | 2011-10-13 05:49:08 +0200 |
---|---|---|
committer | sembrestels <sembrestels@riseup.net> | 2011-10-13 05:49:08 +0200 |
commit | 9f9668ceebe2a23c98800172bc90f8e759f614d2 (patch) | |
tree | 94756d87c2e19533e734c247f6fa098e39722d44 /views/default/dokuwiki/sidebar.php | |
parent | ecd013091b33659c5e944795dda2abce382104b4 (diff) | |
download | elgg-9f9668ceebe2a23c98800172bc90f8e759f614d2.tar.gz elgg-9f9668ceebe2a23c98800172bc90f8e759f614d2.tar.bz2 |
Wiki sidebar on group profile
Diffstat (limited to 'views/default/dokuwiki/sidebar.php')
-rw-r--r-- | views/default/dokuwiki/sidebar.php | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/views/default/dokuwiki/sidebar.php b/views/default/dokuwiki/sidebar.php index c47a1bf6d..73de02403 100644 --- a/views/default/dokuwiki/sidebar.php +++ b/views/default/dokuwiki/sidebar.php @@ -1,12 +1,21 @@ <?php -$group = page_owner_entity(); +$group = elgg_get_page_owner_entity(); if ($group->dokuwiki_enable == 'yes' && $group->dokuwiki_frontsidebar_enable == 'yes') { - set_input("inline_sidebar", true); - set_input("inline_page", false); - echo "<div id='group_pages_widget'>"; - echo elggdokuwiki_page_handler(array($group->guid)); - echo "</div>"; + + $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, + )); + + set_input("inline_sidebar", true); + set_input("inline_page", false); + echo dokuwiki_page_handler(array($group->guid)); } ?> |