diff options
Diffstat (limited to 'views/default/dokuwiki')
-rw-r--r-- | views/default/dokuwiki/grouppage.php | 13 | ||||
-rw-r--r-- | views/default/dokuwiki/index.php | 7 | ||||
-rw-r--r-- | views/default/dokuwiki/metatags.php | 5 | ||||
-rw-r--r-- | views/default/dokuwiki/sidebar.php | 12 |
4 files changed, 37 insertions, 0 deletions
diff --git a/views/default/dokuwiki/grouppage.php b/views/default/dokuwiki/grouppage.php new file mode 100644 index 000000000..c5a342ac7 --- /dev/null +++ b/views/default/dokuwiki/grouppage.php @@ -0,0 +1,13 @@ +<?php + +$group = 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)); +} + +?> diff --git a/views/default/dokuwiki/index.php b/views/default/dokuwiki/index.php new file mode 100644 index 000000000..dd20235dd --- /dev/null +++ b/views/default/dokuwiki/index.php @@ -0,0 +1,7 @@ +<?php + global $CONFIG; + //error_log("DOKUWIKI_OPEN:".$CONFIG->pluginspath.'dokuwiki/lib/dokuwiki/'.$vars['page']); + $destfile = $CONFIG->pluginspath.'dokuwiki/lib/dokuwiki/'.$vars['page']; + if (file_exists($destfile)) + include($destfile); +?> diff --git a/views/default/dokuwiki/metatags.php b/views/default/dokuwiki/metatags.php new file mode 100644 index 000000000..b70fa4a32 --- /dev/null +++ b/views/default/dokuwiki/metatags.php @@ -0,0 +1,5 @@ +<?php +if (get_context() == "dokuwiki") { + tpl_metaheaders(); +} +?> diff --git a/views/default/dokuwiki/sidebar.php b/views/default/dokuwiki/sidebar.php new file mode 100644 index 000000000..c47a1bf6d --- /dev/null +++ b/views/default/dokuwiki/sidebar.php @@ -0,0 +1,12 @@ +<?php + +$group = 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>"; + } + +?> |