-
Notifications
You must be signed in to change notification settings - Fork 1
/
post.php
35 lines (30 loc) · 1.21 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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>
<header class="main-header post-head no-cover">
<nav class="main-nav clearfix">
<a class="menu-button icon-menu" href="#"><span class="word">Menu</span></a>
</nav>
</header>
<main class="content" role="main">
<article class="post">
<header class="post-header">
<h1 class="post-title"><?php $this->title() ?></h1>
<section class="post-meta">
<time class="post-date" datetime="<?php $this->date('c'); ?>"><?php $this->date('F j, Y'); ?></time>
<?php if($this->is('post')):?>
on <?php $this->category(','); ?>
<?php endif;?>
</section>
</header>
<section class="post-content">
<p><?php $this->content(); ?></p>
</section>
<footer class="post-footer">
<figure class="author-image">
<a class="img" style="background-image: url('<?php gravatar_url($this->user->mail,60)?>')"></a>
</figure>
</footer>
<?php $this->need('comments.php'); ?>
</article>
</main>
<?php $this->need('footer.php'); ?>