forked from Dreamer-Paul/Fantasy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
29 lines (25 loc) · 940 Bytes
/
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
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>
<main>
<div class="wrap min">
<section class="board">
<div class="post-title">
<h2><?php $this->title() ?></h2>
<?php if($this->authorId == $this->user->uid): ?>
<div class="post-meta">
<time class="date"><?php $this->date(); ?></time>
<span class="comments"><?php $this->commentsNum('%d 条评论'); ?></span>
<span class="edit"><a href="<?php $this->options->adminUrl(); ?>write-page.php?cid=<?php echo $this->cid;?>" target="_blank">编辑</a></span>
</div>
<?php endif; ?>
</div>
<article class="post-content">
<?php $this->content(); ?>
</article>
</section>
<?php $this->need('comments.php'); ?>
</div>
</main>
<?php $this->need('footer.php'); ?>