-
Notifications
You must be signed in to change notification settings - Fork 7
/
post.php
42 lines (39 loc) · 1.47 KB
/
post.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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>
<div id="container" class="container">
<!--sidebar-->
<?php $this->need('sidebar.php'); ?>
<div id="pjax-container">
<div id="primary" class="content-area">
<article class="article page">
<header class="header">
<h1 class="title"><?php $this->title() ?></h1>
<div class="meta">
<span class="date">Posted on
<time datetime="<?php $this->date('c'); ?>"><?php $this->date('F j, Y'); ?></time></span>
<?php if($this->user->hasLogin()):?><span class="notebook">
<a href="<?php $this->options->adminUrl(); ?>write-<?php if($this->is('post')): ?>post<?php else: ?>page<?php endif;?>.php?cid=<?php echo $this->cid;?>" class="category-link" target="_blank">编辑</a></span>
<?php endif;?>
</div>
</header>
<div class="content">
<?php $this->content(); ?>
</div>
</article>
<!--page-nav-->
<nav id="page-nav" class="page-nav">
<div class="nav-links">
<div class="nav-previous">
<span class="nav-meta">← </span><?php $this->thePrev('%s','没有了'); ?></div>
<div class="nav-next"><?php $this->theNext('%s','没有了'); ?><span class="nav-meta"> →</span></div>
</div>
</nav>
<!--comments-->
<div id="fb_comments_container">
<?php $this->need('comments.php'); ?>
</div>
</div>
</div>
</div>
<!--footer-->
<?php $this->need('footer.php'); ?>