made template functions more flexible

* attention: incompatible to previous version!
* introduced _tpl_action() (wrapper similar to tpl_action())
* improved discussion and user page functions
  * made them work independent from config
  * added full control to how the page links are built (with placeholders @ID@ and @USER@)
* config option changes: removed 'discussNSreverse', renamed 'discussionNS' and 'userNS' to 'discussionPage' and 'userPage'
This commit is contained in:
Anika Henke 2010-12-05 13:01:15 +00:00
parent c21fe1fab8
commit afe47fae3b
5 changed files with 42 additions and 34 deletions

View file

@ -5,8 +5,7 @@
*/
$conf['tagline'] = 'This is the tagline - explaining what this site is about.';
$conf['discussionNS'] = 'discussion';
$conf['discussNSreverse'] = 0;
$conf['userNS'] = 'user';
$conf['discussionPage'] = 'discussion:@ID@';
$conf['userPage'] = 'user:@USER@:';
$conf['sidebarID'] = 'sidebar';
$conf['hideTools'] = 0;

View file

@ -5,8 +5,7 @@
*/
$meta['tagline'] = array('string');
$meta['discussionNS'] = array('string');
$meta['discussNSreverse'] = array('onoff');
$meta['userNS'] = array('string');
$meta['discussionPage'] = array('string');
$meta['userPage'] = array('string');
$meta['sidebarID'] = array('string');
$meta['hideTools'] = array('onoff');