forked from pufengyixia/Typecho-TiNav-2.0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
83 lines (83 loc) · 4.39 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php if ($this->is('index')): ?>
<?php endif; ?>
<!DOCTYPE html>
<html lang="en" class="app">
<head>
<meta charset="<?php $this->options->charset(); ?>">
<title><?php $this->archiveTitle(array(
'category' => _t('%s导航'),
'search' => _t('包含关键字 %s 的文章'),
'tag' => _t('标签 %s 下的文章'),
'author' => _t('%s 发布的文章')
), '', ' - '); ?><?php $this->options->title(); ?><?php if ($this->is('index')): ?> - <?php $this->options->Indexdict(); ?><?php endif; ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<link rel="stylesheet" href="<?php $this->options->themeUrl('css/bootstrap.css'); ?>">
<link rel="stylesheet" href="<?php $this->options->themeUrl('css/OwO.min.css'); ?>">
<link rel="stylesheet" href="<?php $this->options->themeUrl('css/animate.css'); ?>">
<link rel="stylesheet" href="<?php $this->options->themeUrl('css/font-awesome.min.css'); ?>">
<link rel="stylesheet" href="<?php $this->options->themeUrl('css/app.css'); ?>">
<link rel="shortcut icon" href="/images/favicon.ico">
<link rel="apple-touch-icon" href="/images/icon.png">
<meta property="og:image" content="https://web.geekji.cn/images/logo.jpg">
<script src="<?php $this->options->themeUrl('js/OwO.min.js'); ?>"></script>
<!--[if lt IE 9]>
<script src="//cdnjscn.b0.upaiyun.com/libs/html5shiv/r29/html5.min.js"></script>
<script src="//cdnjscn.b0.upaiyun.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
<!-- 通过自有函数输出HTML头部信息 -->
<?php $this->header(); ?>
</head>
<body class="container">
<section class="vbox">
<header class="bg-white-only header header-md navbar navbar-fixed-top-xs">
<!-- Logo -->
<div class="navbar-header aside bg-info text-center">
<a class="btn btn-link visible-xs" data-toggle="class:nav-off-screen,open" data-target="#nav,html"> <i class="fa fa-navicon"></i> </a>
<a href="<?php $this->options->siteUrl(); ?>" class="navbar-brand text-lt"><span><?php $this->options->IndexName(); ?></span></a>
</div>
<!-- /Logo -->
<!-- Mobile btn -->
<ul class="nav navbar-nav hidden-xs">
<li> <a href="#nav,.navbar-header" data-toggle="class:nav-xs,nav-xs" class="text-muted"> <i class="fa fa-indent text"></i> <i class="fa fa-dedent text-active"></i> </a> </li>
</ul>
<!-- /Mobile btn -->
<!-- Search -->
<form id="search" method="post" action="<?php $this->options->siteUrl(); ?>" class="navbar-form navbar-left input-s-lg m-t m-l-n-xs hidden-xs" role="search">
<div class="form-group">
<div class="input-group">
<span class="input-group-btn"> <button type="submit" class="btn btn-sm bg-white btn-icon rounded"><i class="fa fa-search"></i></button> </span>
<input type="text" id="s" name="s" class="form-control input-sm no-border rounded" placeholder="<?php _e('输入关键字搜索'); ?>" required/>
</div>
</div>
</form>
<!-- /Search -->
<div class="navbar-right ">
<!-- Begin -->
<ul class="nav navbar-nav m-n hidden-xs">
<!-- Login -->
<li class="hidden-xs"> <a href="javascript:;" data-toggle="dropdown" class="dropdown-toggle lt"> <i class="fa fa-user-o"></i> </a>
<section class="dropdown-menu aside animated fadeInUp panel-body bg-white dropdown-stop">
<form role="form" action="<?php $this->options->loginaction(); ?>" method="post">
<div class="form-group">
<label>用户名</label>
<input type="text" id="name" name="name" class="form-control" placeholder="请输入用户名" required>
</div>
<div class="form-group">
<label>密码</label>
<input type="password" id="password" name="password" class="form-control" placeholder="请输入密码" required>
</div>
<button type="submit" class="btn btn-group-justified btn-success">提交登录</button>
<input type="hidden" name="referer" value="<?php $this->options->adminUrl(); ?>">
</form>
</section>
</li>
<!-- / Login -->
</ul>
<!-- / End -->
</div>
<!-- / .navbar-right -->
</header>
<!-- / .header End -->
<section>
<section class="hbox stretch">