-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpage.php
35 lines (33 loc) · 1.61 KB
/
page.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
<?php $this->need('header.php');?>
<?php include('sidebar.php'); ?>
<div id="loop" class="right">
<aside id="aside" class="center">
<div class="nowrap"><i class="icon louie-location"></i>
<a href="<?php $this->options->siteUrl(); ?>">Home</a> »</li>
<?php if ($this->is('index')): ?><!-- 页面为首页时 -->
Latest Post
<?php elseif ($this->is('post')): ?><!-- 页面为文章单页时 -->
<?php $this->category(); ?> » <?php $this->title() ?>
<?php else: ?><!-- 页面为其他页时 -->
<?php $this->archiveTitle(' » ','',''); ?>
<?php endif; ?>
</span>
</div>
</aside>
<main class="plain width-half single" style="min-height: 500px;">
<div id="primary" class="content">
<article class="post">
<header class="entry-header">
<h1 class="title" itemprop="name"><?php $this->title() ?></h1>
<div class="meta">发布于 <time itemprop="datePublished"><?php $this->date('Y-m-d H:i'); ?></time> / <a href="<?php $this->categoryUrl(','); ?>"><?php $this->category(','); ?></a> / <span><?php $this->commentsNum('%d条评论'); ?></span> / Tags: <?php $this->tags(',', true, 'none'); ?> / <?php _e(getViewsStr($this)); ?> 次浏览
</div>
</header>
<div class="entry-content">
<p><?php $this->content('Continue Reading...'); ?></p> </div>
<?php $this->need('comments.php'); ?>
</article>
</div>
</div>
</main>
</section>
<?php $this->need('footer.php'); ?>