Exemplo n.º 1
0
/**
 * Wrapper around custom template actions
 *
 * @author Anika Henke <*****@*****.**>
 */
function _tpl_action($type, $link = 0, $wrapper = 0)
{
    switch ($type) {
        case 'discussion':
            if (tpl_getConf('discussionPage')) {
                _tpl_discussion(tpl_getConf('discussionPage'), tpl_getLang('discussion'), tpl_getLang('back_to_article'), $link, $wrapper);
            }
            break;
        case 'userpage':
            if (tpl_getConf('userPage')) {
                _tpl_userpage(tpl_getConf('userPage'), tpl_getLang('userpage'), $link, $wrapper);
            }
            break;
    }
}
/**
 * Wrapper around custom template actions
 *
 * @author Anika Henke <*****@*****.**>
 */
function _tpl_action($type, $link = 0, $wrapper = 0, $return = 0)
{
    switch ($type) {
        case 'discussion':
            if (tpl_getConf('discussionPage')) {
                $output = _tpl_discussion(tpl_getConf('discussionPage'), tpl_getLang('discussion'), tpl_getLang('back_to_article'), $link, $wrapper, 1);
                if ($return) {
                    return $output;
                }
                echo $output;
            }
            break;
        case 'userpage':
            if (tpl_getConf('userPage')) {
                $output = _tpl_userpage(tpl_getConf('userPage'), tpl_getLang('userpage'), $link, $wrapper, 1);
                if ($return) {
                    return $output;
                }
                echo $output;
            }
            break;
    }
}
Exemplo n.º 3
0
            <hr class="a11y" />

            <!-- PAGE ACTIONS -->
            <?php 
if ($showTools) {
    ?>
                <div id="dokuwiki__pagetools">
                    <h3 class="a11y"><?php 
    echo tpl_getLang('page_tools');
    ?>
</h3>
                    <ul>
                        <?php 
    tpl_action('edit', 1, 'li');
    if (tpl_getConf('discussionNS')) {
        _tpl_discussion(tpl_getConf('discussionNS'), 1, 'li', tpl_getConf('discussNSreverse'));
    }
    tpl_action('history', 1, 'li');
    tpl_action('backlink', 1, 'li');
    tpl_action('subscribe', 1, 'li');
    tpl_action('revert', 1, 'li');
    tpl_action('top', 1, 'li');
    ?>
                    </ul>
                </div>
            <?php 
}
?>
        </div><!-- /wrapper -->

        <!-- ********** FOOTER ********** -->