Initial shot at write_pages widget

This commit is contained in:
Thomas Willingham
2013-08-10 22:06:30 +01:00
parent 4ac5348b3f
commit 94335f237f
3 changed files with 29 additions and 1 deletions

12
include/page_widgets.php Normal file
View File

@@ -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"
));
}