-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathpage.php
25 lines (25 loc) · 1.49 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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>
<main>
<article class="content">
<h1><?php $this->title() ?></h1>
<div class="meta">
<span class="item"><i class="icon iconfont icon-calendar"></i><time datetime="<?php $this->date(); ?>"><?php $this->date(); ?></time></span>
<span class="item"><i class="icon iconfont icon-message"></i><a href="<?php $this->permalink() ?>#comments"><?php $this->commentsNum('0 评', '1 评', '%d 评'); ?></a></span>
<?php if ($this->options->eyeshow == 'able'): ?><span class="item"><i class="iconfont icon-eye"></i> <?php get_post_view($this) ?> 度</span><?php endif; ?>
<?php if($this->user->hasLogin()):?><span><a href="<?php $this->options->siteUrl(); ?>admin/write-post.php?cid=<?php $this->cid(); ?>">[编辑]</a></span><?php endif;?>
</div>
<div class="post">
<p class="md_block">
<?php $this->content(); ?>
</p>
</div>
</article>
<section class="pager">
<?php $this->thePrev('%s', '', array('title' => '', 'tagClass' => 'next')); ?>
<?php $this->theNext('%s', '', array('title' => '', 'tagClass' => 'pre')); ?>
</section>
<?php $this->need('vcomments.php'); ?>
</main>
</div>
<?php $this->need('footer.php'); ?>