forked from trinitrotofu/Bubble
-
Notifications
You must be signed in to change notification settings - Fork 4
/
post.php
55 lines (53 loc) · 2.03 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php if(!(art_available($this) || $this->user->hasLogin())) {$this->need('404.php'); exit;}?>
<?php $this->need('header.php'); ?>
<main>
<section class="section section-lg section-hero section-shaped">
<!-- Background circles -->
<div class="shape shape-style-1 shape-primary">
<span class="span-150"></span>
<span class="span-50"></span>
<span class="span-50"></span>
<span class="span-75"></span>
<span class="span-100"></span>
<span class="span-75"></span>
<span class="span-50"></span>
<span class="span-100"></span>
<span class="span-50"></span>
<span class="span-100"></span>
</div>
<div class="container shape-container d-flex align-items-center py-lg">
<div class="col px-0 text-center">
<div class="row align-items-center justify-content-center">
<h1 class="text-white"><?php $this->title() ?></h1>
</div>
<div class="row align-items-center justify-content-center">
<h5 class="text-white">于 <time datetime="<?php $this->date('c'); ?>"><?php $this->date(); ?></time> 由 <?php $this->author(); ?> 发布</h5>
</div>
</div>
</div>
<!-- SVG separator -->
<div class="separator separator-bottom separator-skew zindex-100">
<svg x="0" y="0" viewBox="0 0 2560 100" preserveAspectRatio="none" version="1.1" xmlns="http://www.w3.org/2000/svg">
<polygon class="fill-white" points="2560 0 2560 100 0 100"></polygon>
</svg>
</div>
</section>
<!-- Article content -->
<section class="section">
<div class="container">
<div class="content">
<?php $this->content(); ?>
<hr/>
<ul>
<li>分类:<span class="badge badge-pill badge-success text-uppercase"><?php $this->category('d'); ?></span></li>
<li>
标签:<?php $this->tags(', ', true, 'none'); ?>
</li>
</ul>
</div>
</div>
</section>
<!-- Comment -->
<?php $this->need('comments.php'); ?>
<?php $this->need('footer.php'); ?>