diff options
Diffstat (limited to 'include/page_widgets.php')
-rw-r--r-- | include/page_widgets.php | 12 |
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" + )); +} + |