-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpost_header.php
executable file
·58 lines (55 loc) · 2.46 KB
/
post_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
<?php $this->need('header_com.php'); ?>
<body style="zoom: 1;">
<div id="web_bg"></div>
<div class="page" id="body-wrap">
<?php if (is_array($this->options->beautifyBlock) && in_array('PostShowTopimg', $this->options->beautifyBlock)): ?>
<header id="page-header" class="post-bg" style="background-image: url(<?php GetRandomThumbnailPost($this); ?>)">
<div id="post-info">
<h1 class="post-title">
<span id="typed"></span>
</h1>
<div id="post-meta">
<div class="meta-firstline">
<i class="far fa-calendar-alt fa-fw post-meta-icon"></i>
<span class="post-meta-label">发表于</span>
<?php echo $this->date('Y-m-d'); ?>
<span class="post-meta-separator">|</span>
<i class="fas fa-history fa-fw post-meta-icon"></i>
<span class="post-meta-label">更新于</span>
<?php echo date('Y-m-d', $this->modified); ?>
<span class="post-meta-separator">|</span>
<i class="fas fa-inbox fa-fw post-meta-icon"></i>
<?php $this->category(' '); ?>
</div>
<div class="meta-secondline">
<span class="post-meta-separator">|</span>
<i class="far fa-file-word fa-fw post-meta-icon"></i>
<span class="post-meta-label">字数总计:</span>
<span class="word-count">
<?php art_count($this->cid); ?>
</span>
<span class="post-meta-separator">|</span>
<i class="far fa-clock fa-fw post-meta-icon"></i>
<span class="post-meta-label">阅读时长:</span>
<span>
<?php echo art_time($this->cid); ?>分钟
</span>
<span class="post-meta-separator">|</span>
<span class="post-meta-pv-cv"><i class="far fa-eye fa-fw post-meta-icon"></i><span
class="post-meta-label">阅读量:</span><span id="busuanzi_value_page_pv">
<?php get_post_view($this) ?>
</span></span>
</div>
</div>
</div>
<?php else: ?>
<header class="not-top-img" id="page-header">
<?php endif; ?>
<?php $this->need('public/nav.php'); ?>
</header>
<style>
.typed-cursor {
animation: none;
opacity: 1 !important;
}
</style>