aboutsummaryrefslogtreecommitdiffstats
path: root/include/page_widgets.php
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2013-08-10 22:06:30 +0100
committerThomas Willingham <founder@kakste.com>2013-08-10 22:06:30 +0100
commit94335f237fdadd93b86b271526c25c2a77de9c40 (patch)
tree8ffaf45c5676d1df0033349cc4c374fda3cd0a49 /include/page_widgets.php
parent4ac5348b3f7cecceee62d92f53df0f4ab6c22074 (diff)
downloadvolse-hubzilla-94335f237fdadd93b86b271526c25c2a77de9c40.tar.gz
volse-hubzilla-94335f237fdadd93b86b271526c25c2a77de9c40.tar.bz2
volse-hubzilla-94335f237fdadd93b86b271526c25c2a77de9c40.zip
Initial shot at write_pages widget
Diffstat (limited to 'include/page_widgets.php')
-rw-r--r--include/page_widgets.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/page_widgets.php b/include/page_widgets.php
new file mode 100644
index 000000000..21d5e5382
--- /dev/null
+++ b/include/page_widgets.php
@@ -0,0 +1,12 @@
+<?php
+
+// A toolbar for observers with write_pages permissions
+function writepages_widget ($who,$which){
+return replace_macros(get_markup_template('write_pages.tpl'), array(
+ '$new' => t('New Page'),
+ '$newurl' => "webpages/$who",
+ '$edit' => t('edit'),
+ '$editurl' => "editwebpage/$who/$which"
+ ));
+}
+