aboutsummaryrefslogtreecommitdiff
path: root/views/default/dokuwiki
diff options
context:
space:
mode:
authorsembrestels <sembrestels@riseup.net>2011-10-13 02:39:43 +0200
committersembrestels <sembrestels@riseup.net>2011-10-13 02:39:43 +0200
commit090e2188026c76ac396c919b27404dc7cb110bf8 (patch)
tree9f7f3a1278aa0a09f168abdc0db98f7de1788870 /views/default/dokuwiki
downloadelgg-090e2188026c76ac396c919b27404dc7cb110bf8.tar.gz
elgg-090e2188026c76ac396c919b27404dc7cb110bf8.tar.bz2
Dokuwiki module for Elgg 1.7
Diffstat (limited to 'views/default/dokuwiki')
-rw-r--r--views/default/dokuwiki/grouppage.php13
-rw-r--r--views/default/dokuwiki/index.php7
-rw-r--r--views/default/dokuwiki/metatags.php5
-rw-r--r--views/default/dokuwiki/sidebar.php12
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>";
+ }
+
+?>