diff options
author | Anika Henke <anika@selfthinker.org> | 2010-12-05 13:01:15 +0000 |
---|---|---|
committer | Anika Henke <anika@selfthinker.org> | 2010-12-05 13:01:15 +0000 |
commit | afe47fae3b5d4dbb4c209df698b72d4f2e716ad7 (patch) | |
tree | 2d10ce2685f345ab21c894d6a25d756dcceeb6f1 /main.php | |
parent | c21fe1fab827d3d35d3cf59b0f6403f005e86df2 (diff) | |
download | rpg-afe47fae3b5d4dbb4c209df698b72d4f2e716ad7.tar.gz rpg-afe47fae3b5d4dbb4c209df698b72d4f2e716ad7.tar.bz2 |
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'
Diffstat (limited to 'main.php')
-rw-r--r-- | main.php | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -66,9 +66,7 @@ $showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && $_SERVER echo '</li>'; } tpl_action('admin', 1, 'li'); - if (tpl_getConf('userNS')) { - _tpl_userpage(tpl_getConf('userNS'),1,'li'); - } + _tpl_action('userpage', 1, 'li'); tpl_action('profile', 1, 'li'); tpl_action('login', 1, 'li'); ?> @@ -138,9 +136,7 @@ $showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && $_SERVER <ul> <?php tpl_action('edit', 1, 'li'); - if (tpl_getConf('discussionNS')) { - _tpl_discussion(tpl_getConf('discussionNS'),1,'li',tpl_getConf('discussNSreverse')); - } + _tpl_action('discussion', 1, 'li'); tpl_action('history', 1, 'li'); tpl_action('backlink', 1, 'li'); tpl_action('subscribe', 1, 'li'); |