forked from dyedd/lanstar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlinks.php
74 lines (73 loc) · 3.02 KB
/
links.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
/**
* 友情链接
*
* @package custom
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('layout/header.php');
?>
<div class="container">
<div class="row">
<?php $this->need('layout/left.php'); ?>
<div class="col-xl-7 col-md-6 col-12" id="pjax-container">
<section class="article-info mb-3">
<div class="article-detail">
<h1 class="article-title p-3"><a href="<?php $this->permalink(); ?>">
<?php $this->title(); ?></a>
</h1>
<p>
<span class="article-detail-item">
<svg class="icon me-1" aria-hidden="true">
<use xlink:href="#icon-shijian"></use>
</svg>
<time class="create-time" datetime="<?php $this->date('c'); ?>"><?php $this->date(); ?></time>
</span>
</p>
</div>
<div class="article-cover-inner">
<img src="<?php echo $this->fields->banner ?: utils::getAssets('img/default.jpg'); ?>" alt="cover">
</div>
</section>
<main class="article-main" id="post-<?php $this->cid(); ?>">
<!--面包屑导航-->
<nav aria-label="breadcrumb">
<ol class="breadcrumb pb-2">
<li class="breadcrumb-item">
<a href="<?php $this->options->siteUrl(); ?>">
<svg class="icon" aria-hidden="true">
<use xlink:href="#icon-shouye1"></use>
</svg>
<span>首页</span>
</a>
</li>
<?php if ($this->is('post')): ?>
<li class="breadcrumb-item active" aria-current="page">
<svg class="icon" aria-hidden="true">
<use xlink:href="#icon-fenlei1"></use>
</svg>
<?php $this->category(','); ?>
</li>
<?php else: ?>
<li class="breadcrumb-item active" aria-current="page">
<svg class="icon" aria-hidden="true">
<use xlink:href="#icon-fenlei1"></use>
</svg>
<?php $this->archiveTitle('»', '', ''); ?>
</li>
<?php endif; ?>
</ol>
</nav>
<!--文章内容-->
<div class="article-content">
<?php $this->content(); ?>
</div>
</main>
<?php $this->need('layout/comments.php'); ?>
</div>
<?php $this->need('layout/right.php'); ?>
</div>
</div>
<?php $this->need('component/index.footer.php'); ?>
</body>
</html>