Пример #1
0
	<li><?php 
        _toolbar('new');
        ?>
</li>
<?php 
    }
    ?>
	<li><?php 
    _toolbar('list');
    ?>
</li>
	<?php 
    if (!PKWK_SEARCH_DISENABLE) {
        ?>
	<!--<li><?php 
        _navigator('search');
        ?>
</li>-->
	<?php 
    }
    ?>
	<li><?php 
    _toolbar('recent');
    ?>
</li>
	<!--<li><?php 
    _toolbar('help');
    ?>
</li>-->
	<li class="setskin"><a href="setskin.php">PC版</a></li>
	<li class="pagetop"><a href="#" title="<?php 
Пример #2
0
function plugin_navibar_convert()
{
    global $_LINK;
    global $do_backup, $trackback, $referer;
    global $function_freeze;
    global $vars;
    if ($_LINK['reload'] == '') {
        return '#navibar: plugin called from wikipage. skipped.';
    }
    $_page = isset($vars['page']) ? $vars['page'] : '';
    $is_read = arg_check('read') && is_page($_page);
    $is_freeze = is_freeze($_page);
    $num = func_num_args();
    $args = $num ? func_get_args() : array();
    $body = '';
    $line = '';
    while (!empty($args)) {
        $name = array_shift($args);
        switch ($name) {
            case 'freeze':
                if ($is_read && $function_freeze) {
                    if (!$is_freeze) {
                        $name = 'freeze';
                        if ($body != '' && $oldname != '|') {
                            $body .= ' | ';
                        }
                        $body .= _navigator($name);
                    }
                }
                break;
            case 'unfreeze':
                if ($is_read && $function_freeze) {
                    if ($is_freeze) {
                        $name = 'unfreeze';
                        if ($body != '' && $oldname != '|') {
                            $body .= ' | ';
                        }
                        $body .= _navigator($name);
                    }
                }
                break;
            case 'upload':
                if ($is_read && (bool) ini_get('file_uploads')) {
                    if ($body != '' && $oldname != '|') {
                        $body .= ' | ';
                    }
                    $body .= _navigator($name);
                }
                break;
            case 'filelist':
                if (arg_check('list')) {
                    if ($body != '' && $oldname != '|') {
                        $body .= ' | ';
                    }
                    $body .= _navigator($name);
                }
                break;
            case 'backup':
                if ($do_backup) {
                    if ($body != '' && $oldname != '|') {
                        $body .= ' | ';
                    }
                    $body .= _navigator($name);
                }
                break;
            case 'brokenlink':
            case 'template':
            case 'source':
                if (!empty($_page)) {
                    if ($body != '' && $oldname != '|') {
                        $body .= ' | ';
                    }
                    $body .= _navigator($name);
                }
                break;
            case 'trackback':
                if ($trackback) {
                    if ($body != '' && $oldname != '|') {
                        $body .= ' | ';
                    }
                    $tbcount = tb_count($_page);
                    if ($tbcount > 0) {
                        $body .= _navigator($name, 'Trackback(' . $tbcount . ')');
                    } else {
                        if ($is_read) {
                            $body .= 'no Trackback';
                        } else {
                            if (isset($vars['cmd']) && $vars['cmd'] == 'list') {
                                $body .= _navigator($name, 'Trackback list');
                            }
                        }
                    }
                }
                break;
            case 'refer':
            case 'skeylist':
            case 'linklist':
                if ($referer) {
                    if ($body != '' && $oldname != '|') {
                        $body .= ' | ';
                    }
                    $body .= _navigator($name);
                }
                break;
            case 'log_login':
                if (log_exist('login', $vars['page'])) {
                    if ($body != '' && $oldname != '|') {
                        $body .= ' | ';
                    }
                    $body .= _navigator($name);
                }
                break;
            case 'log_check':
                if (log_exist('check', $vars['page'])) {
                    if ($body != '' && $oldname != '|') {
                        $body .= ' | ';
                    }
                    $body .= _navigator($name);
                }
                break;
            case 'log_browse':
                if ($body != '' && $oldname != '|') {
                    $body .= ' | ';
                }
                $body .= _navigator($name);
                //			if (log_exist('browse',$vars['page'])) {
                //				return _navigator($name);
                //			}
                break;
            case 'log_update':
                if (log_exist('update', $vars['page'])) {
                    if ($body != '' && $oldname != '|') {
                        $body .= ' | ';
                    }
                    $body .= _navigator($name);
                }
                break;
            case 'log_down':
                if (log_exist('download', $vars['page'])) {
                    if ($body != '' && $oldname != '|') {
                        $body .= ' | ';
                    }
                    $body .= _navigator($name);
                }
                break;
            case '|':
                if (trim($body) != '') {
                    $line .= '[ ' . $body . ' ]' . "\n\n";
                    $body = '';
                }
                break;
                // case 'new':
            // case 'new':
            case 'newsub':
            case 'edit':
            case 'guiedit':
            case 'diff':
                if (!$is_read) {
                    break;
                }
            default:
                if ($body != '' && $oldname != '|') {
                    $body .= ' | ';
                }
                $body .= _navigator($name);
                break;
        }
        $oldname = $name;
        $body .= ' ';
    }
    if (trim($body) != '') {
        $line .= '[ ' . $body . ' ]' . "\n\n";
        $body = '';
    }
    return '<div id="navigator">' . $line . '</div>';
}
Пример #3
0
   <?php 
    _navigator('help');
    ?>

<?php 
    if ($trackback) {
        ?>
 &nbsp;
   <?php 
        _navigator('trackback', $lang['trackback'] . '(' . tb_count($_page) . ')', $trackback_javascript == 1 ? 'onclick="OpenTrackback(this.href); return false"' : '');
    }
    if ($referer) {
        ?>
 &nbsp;
   <?php 
        _navigator('refer');
    }
    ?>
</div></div>
<?php 
} else {
    ?>
<div id="navigator"></div>
<?php 
}
// PKWK_SKIN_SHOW_NAVBAR
?>

<h1><?php 
echo $page_title;
?>
Пример #4
0
    if (arg_check('list')) {
        ?>
   <?php 
        _navigator('filelist');
        ?>
 <?php 
    }
    ?>
   <?php 
    _navigator('search');
    ?>
   <?php 
    _navigator('recent');
    ?>
   <?php 
    _navigator('help');
    ?>
</div></div>
<?php 
} else {
    ?>
<div id="navigator"></div>
<?php 
}
// PKWK_SKIN_SHOW_NAVBAR
?>

<h1><?php 
echo $page_title;
?>
</h1>