EasyImages2.0/application/header.php

59 lines
3.6 KiB
PHP
Raw Normal View History

2021-11-09 03:43:23 +00:00
<!DOCTYPE html>
<html lang="zh-cn">
2022-04-08 13:33:53 +00:00
<?php require_once __DIR__ . '/function.php'; ?>
2021-11-09 03:43:23 +00:00
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
2022-01-27 09:25:46 +00:00
<meta name="renderer" content="webkit" />
<meta name="force-rendering" content="webkit" />
2022-02-06 07:39:57 +00:00
<meta name="author" content="Icret EasyImage2.0">
2021-11-09 03:43:23 +00:00
<meta name="viewport" content="width=device-width, initial-scale=1">
2022-01-27 09:25:46 +00:00
<title><?php echo $config['title']; ?></title>
2021-11-09 03:43:23 +00:00
<meta name="keywords" content="<?php echo $config['keywords']; ?>" />
<meta name="description" content="<?php echo $config['description']; ?>" />
2022-03-07 04:34:04 +00:00
<link rel="shortcut icon" href="<?php static_cdn(); ?>/favicon.ico" type="image/x-icon" />
2022-01-27 09:25:46 +00:00
<link href="<?php static_cdn(); ?>/public/static/zui/css/zui.min.css" rel="stylesheet">
<link href="<?php static_cdn(); ?>/public/static/zui/theme/zui-theme-<?php echo $config['theme']; ?>.css" rel="stylesheet">
2022-02-06 07:39:57 +00:00
<script src="<?php static_cdn(); ?>/public/static/zui/lib/jquery/jquery-3.6.0.min.js"></script>
2022-02-27 06:59:03 +00:00
<script src="<?php static_cdn(); ?>/public/static/zui/js/zui.min.js"></script>
2022-01-18 08:52:44 +00:00
<!--[if lt IE 9]>
2022-01-27 09:25:46 +00:00
<script src="<?php static_cdn(); ?>/public/static/zui/lib/ieonly/html5shiv.js"></script>
<script src="<?php static_cdn(); ?>/public/static/zui/lib/ieonly/respond.js"></script>
<script src="<?php static_cdn(); ?>/public/static/zui/lib/ieonly/excanvas.js"></script>
2022-01-18 08:52:44 +00:00
<![endif]-->
2022-02-06 07:39:57 +00:00
<?php /** 自定义代码 */ if ($config['customize']) echo $config['customize']; ?>
2021-11-09 03:43:23 +00:00
</head>
<body class="container">
2022-01-18 14:54:38 +00:00
<div class="page-header">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse-EasyImage">
<span class="icon icon-bars"></span>
</button>
</div>
<div class="collapse navbar-collapse navbar-collapse-EasyImage">
<ul class="nav nav-pills">
<li><a href="<?php echo $config['domain']; ?>"><i class="icon icon-home"></i> 首页</a></li>
<?php /** 非管理或未开启不显示广场 */ if ($config['showSwitch'] || is_who_login('admin')) : ?>
<li><a href="<?php echo $config['domain']; ?>/application/list.php"><i class="icon icon-th"></i> 广场<span class="label label-badge label-primary"><?php echo get_file_by_glob(APP_ROOT . config_path(), 'number'); ?></span></a></li>
<?php endif; ?>
<?php /** 非管理或未开启不显示上传历史 */ if ($config['history'] || is_who_login('admin')) : ?>
<li><a href="<?php $config['domain']; ?>/application/history.php"><i class="icon icon-history"></i> 历史<span class="label label-badge label-primary"></span></a></li>
<?php endif; ?>
<?php /** 非管理不显示设置 */ if (is_who_login('admin')) : ?>
<li><a href="<?php echo $config['domain']; ?>/admin/admin.inc.php"><i class="icon icon-cogs"></i> 设置</a></li>
<?php endif; ?>
<?php /** 非管理或未开启不显示统计 */ if ($config['chart_on'] && is_who_login('admin')) : ?>
<li><a href="<?php echo $config['domain']; ?>/admin/chart.php"><i class="icon icon-pie-chart"></i> 统计</a></li>
<?php endif; ?>
<?php /** 账号登录 */ if (is_who_login('status')) : ?>
<!-- 右侧的导航项目 -->
<li class="nav navbar-nav navbar-right hidden-xs"><a href="<?php echo $config['domain']; ?>/admin/index.php?login=logout"><i class="icon icon-signout"> 退出登录</i></a></li>
<?php else : ?>
<li class="nav navbar-nav navbar-right hidden-xs"><a href="<?php echo $config['domain']; ?>/admin/index.php"><i class="icon icon-user"> 登录账号</i></a></li>
<?php endif; ?>
</ul>
</div>
2021-11-09 03:43:23 +00:00
</div>
2022-05-25 10:23:17 +00:00
<!-- 顶部导航栏END -->