This repository has been archived by the owner on May 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathpost.php
38 lines (38 loc) · 1.92 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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>
<div class="mdui-card mdui-m-y-3">
<div class="mdui-card-primary">
<div class="mdui-card-primary-title mdui-text-color-theme-accent"><?php $this->title(); ?></div>
<div class="mdui-card-primary-subtitle mdui-text-color-theme-text">
<?php $this->date(); ?>
<?php if (!empty($this->options->article) && in_array('author', $this->options->article)): ?>
<span> |</span><i class="mdui-icon materiality-icons"></i><a href="<?php $this->author->permalink(); ?>"><?php $this->author(); ?></a>
<?php endif; ?>
<?php if ($this->category && !empty($this->options->article) && in_array('category', $this->options->article)): ?>
<span> | </span><i class="mdui-icon materiality-icons"></i><?php $this->category(', '); ?>
<?php endif; ?>
</div>
</div>
<div class="mdui-card-content">
<div class="mdui-typo">
<?php if (!empty($this->options->feature) && in_array('pangu', $this->options->feature)) echo "<pangu>"; ?>
<?php if ($this->fields->index == "show"): ?>
<?php getIndex(); ?>
<?php endif; ?>
<?php $this->content(); ?>
<?php if (!empty($this->options->feature) && in_array('pangu', $this->options->feature)) echo "</pangu>"; ?>
</div>
<?php if ($this->fields->tags == "show" && $this->tags): ?>
<div class="mdui-divider"></div>
<div class="mdui-chip">
<span class="mdui-chip-icon"><i class="mdui-icon materiality-icons"></i></span>
<span class="mdui-chip-title"><?php $this->tags('</span></div>
<div class="mdui-chip mdui-m-t-3">
<span class="mdui-chip-icon"><i class="mdui-icon materiality-icons"></i></span>
<span class="mdui-chip-title">', true, ''); ?></span>
</div>
<?php endif; ?>
</div>
</div>
<?php $this->need('comments.php'); ?>
<?php $this->need('footer.php'); ?>