summaryrefslogtreecommitdiff
path: root/includes/head.php
blob: 796f34c58b28b9aea651614c9e5c1d688cac4b3c (plain)
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!DOCTYPE html>
<html lang="zh-CN">
  <!-- 头部信息 -->
  <head>
    <!-- 页面信息 -->
    <meta http-equiv="content-type" content="text/html; charset=<?php $this->options->charset(); ?>" />
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
	
	<?php if ($this->is('index')): ?>
    <meta name="description" content="<?php $this->options->description(); ?>" />
    <meta name="keywords" content="<?php $this->options->keywords(); ?>" />
    <meta name="author" content="<?php $this->options->author(); ?>" />
    <?php endif; ?>
    <?php if($this->is('post')||$this->is('page')): ?>
    <meta name="description" content="<?php $this->excerpt(300); ?>" />
    <meta name="keywords" content="<?php $this->options->keywords(); ?>,<?php $this->tags(', ', false, 'none'); ?>" />
    <meta name="author" content="<?php $this->options->author(); ?>" />
    <meta property="og:image" content="<?php $this->fields->banner(); ?>" />
    <meta property="og:release_date" content="<?php $this->date('Y-m-j'); ?>" />
    <meta property="og:title" content="<?php $this->title(); ?>" />
    <meta property="og:description" content="<?php $this->description(); ?>" />
    <meta property="og:author" content="<?php $this->author(); ?>" />
    <?php endif; ?>
	
    <!-- 定义title -->
    <title>
    <?php if($this->_currentPage>1) echo '第 '.$this->_currentPage.' 页 | '; ?>
	  <?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')||$this->is('front')): ?>
    <?php endif; ?>
    </title> 
	
	<!-- css -->
    <link rel="stylesheet" type="text/css" href="<?php $this->options->themeUrl('assets/bootstrap/bootstrap.min.css'); ?>" />
    <link rel="stylesheet" type="text/css" href="<?php $this->options->themeUrl('assets/css/mark.min.css'); ?>" />
    <link rel="stylesheet" type="text/css" href="<?php $this->options->themeUrl('assets/css/jquery.fancybox.min.css'); ?>" />
    <link rel="stylesheet" type="text/css" href="<?php $this->options->themeUrl('assets/css/font-awesome.min.css'); ?>" />
    <link rel="stylesheet" type="text/css" href="<?php $this->options->themeUrl('assets/css/button.css'); ?>" />
	<link rel="stylesheet" type="text/css" href="<?php $this->options->themeUrl('assets/css/prism.css'); ?>" />
	<link rel="stylesheet" type="text/css" href="<?php $this->options->themeUrl('assets/css/owo.min.css'); ?>" />
    <link rel="stylesheet" type="text/css" href="<?php $this->options->themeUrl('assets/css/nprogress.css'); ?>" />
  
    <!-- 部分js -->
	<script type="text/javascript" src="<?php $this->options->themeUrl('assets/js/jquery.min.js'); ?>"></script>
	<script type="text/javascript" src="<?php $this->options->themeUrl('assets/js/bootstrap.min.js'); ?>"></script>
  
    <!-- 部分css -->
	<style>
	@media screen and (max-width: 600px) {
      .mobile-none {
          display:none;
      }
	  .mobile-block{
		  display:block!important;
	  }
	  .mobile-center{
		  text-align:Center;
	  }
	  #nav{
		  padding:0!important;
	  }
	  .nav-content{
		  display:block;
		  text-align:Center;
		  margin:0 auto!important;
	  }
	  .nav-content,.nav-content ul>li{
          float:left;
	  }
	  .nav-content{
		  font-size:12px;
		  margin-top:-5px;
		  margin-bottom:-8px;
		  text-align:Center;
	  }
	  .nav-content li{
		  display:inline;
	  }
	  .nav-content i{
		  display:none;
	  }
    }
	<?php if($this->options->bg_url && $this->options->bg_url!='') :?>
	body{
		background-image:url(<?php $this->options->bg_url() ?>);
		background-size:cover;
		background-repeat:no-repeat;
		background-attachment:fixed;
	}
	.item,#nav,.pagenav li,.page-navigator li,.comment-body{
		background:rgba(255,255,255,0.9)!important;
	}
	.footer-info{
		opacity:0.8;
	}
	.item{
    	box-shadow:0 0 8px #808080;
	    -webkit-box-shadow:0 0 8px #808080;
	}
	.list-group,.list-group li{
		background:rgba(255,255,255,0)
	}
	<?php endif; ?>
	</style>

    <!-- 其他头部信息 -->
    <?php $this->header(); ?>
	
    <!--
           ▄              ▄
          ▌▒█           ▄▀▒▌
          ▌▒▒▀▄        ▀▒▒▒▐
         ▐▄▀▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐
       ▄▄▀▒▒▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐
     ▄▀▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒█▒▒▒▒▒▐
    ▐▒▒▒▄▄▄▒▒▒▒▒▒▒▒▒▒▒▒▒▀▄▒▒▌
    ▌▒▒▐▄█▀▒▒▒▒▄▀█▄▒▒▒▒▒▒▒█▒▐
   ▐▒▒▒▒▒▒▒▒▒▒▒▌██▀▒▒▒▒▒▒▒▒▀▄▌
   ▌▒▀▄██▄▒▒▒▒▒▒▒▒▒▒▒░░░░▒▒▒▒▌
   ▌▀▐▄█▄█▌▄▒▀▒▒▒▒▒▒░░░░░░▒▒▒▐
  ▐▒▀▐▀▐▀▒▒▄▄▒▄▒▒▒  typecho  ▒▌
  ▐▒▒▒▀▀▄▄▒▒▒▄▒▒▒▒▒▒░░░░░░▒▒▒▐
   ▌▒▒▒▒▒▒▀▀▀▒▒▒▒▒▒▒▒░░░░▒▒▒▒▌
   ▐▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▐
    ▀ MARK~ ▒▒▒▒▒▒▒▒▒▒▒▄▒▒▒▒▌
      ▀▄▒▒▒▒▒▒▒▒▒▒▄▄▄▀▒▒▒▒▄▀
     ▐▀▒▀▄▄▄▄▄▄▀▀▀▒▒▒▒▒▄▄▀
    ▐▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▀▀
    --再看,再看就吃掉你!
    -->    
  </head>
  <body>