mirror of
https://github.com/kokororin/typecho-plugin-Access.git
synced 2024-12-29 14:31:07 +08:00
32 lines
1.3 KiB
PHP
32 lines
1.3 KiB
PHP
<?php
|
|
include_once 'common.php';
|
|
include 'header.php';
|
|
include 'menu.php';
|
|
require_once __DIR__ . '/../Access_Bootstrap.php';
|
|
$access = new Access_Core();
|
|
?>
|
|
<div class="main">
|
|
<div class="body container">
|
|
<div class="typecho-page-title">
|
|
<h2><?= $access->title;?></h2>
|
|
</div>
|
|
<div class="row typecho-page-main" role="main">
|
|
<div class="col-mb-12">
|
|
<ul class="typecho-option-tabs fix-tabs clearfix">
|
|
<li<?=($access->action == 'overview' ? ' class="current"' : '')?>><a href="<?php $options->adminUrl('extending.php?panel=' . Access_Plugin::$panel . '&action=overview'); ?>"><?php _e('访问概览'); ?></a></li>
|
|
<li<?=($access->action == 'logs' ? ' class="current"' : '')?>><a href="<?php $options->adminUrl('extending.php?panel=' . Access_Plugin::$panel . '&action=logs'); ?>"><?php _e('访问日志'); ?></a></li>
|
|
<li><a href="<?php $options->adminUrl('options-plugin.php?config=Access') ?>"><?php _e('插件设置'); ?></a></li>
|
|
</ul>
|
|
</div>
|
|
<?php include("routes/{$access->action}/index.php") ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<?php
|
|
include 'copyright.php';
|
|
include 'common-js.php';
|
|
include 'table-js.php';
|
|
include 'footer.php';
|
|
?>
|