-
Notifications
You must be signed in to change notification settings - Fork 5
/
search.php
54 lines (54 loc) · 4.25 KB
/
search.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
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>
<body>
<div class="content index width mx-auto px3 my4">
<header id="header">
<a href="<?php $this->options->siteUrl();?>"><div id="logo" style="background-image: url(<?php if($this->options->logoimg): ?><?php $this->options->logoimg();?><?php else : ?><?php $this->options->themeUrl('images/logo.png'); ?><?php endif; ?>);"></div></a>
<div id="title"><h1 style="color:#2bbc8a;margin:1rem;font-size:36px;line-height:42px;"><?php $this->options->title(); ?></h1></div>
<div id="nav">
<ul style ="padding-inline-start:0px;">
<li class="icon"><a href="#"><i class="fa fa-bars fa-2x"></i></a></li>
<li style ="padding:0px;margin:0px;"><b><a href="<?php $this->options->siteUrl();?>">首页</a></b></li>
<li style ="padding:0 0 0 5px;margin:0px;"><b><a href="<?php $this->options->siteUrl();?>music/" target="_blank" title="网易云音乐">音乐</a></b></li>
<?php $this->widget('Widget_Metas_Category_List')->to($categorys);while($categorys->next()):?>
<li style ="padding:0 0 0 5px;margin:0px;"><b><a href="<?php $categorys->permalink(); ?>"><?php $categorys->name(); ?></a></b></li>
<?php endwhile;?>
<?php $this->widget('Widget_Contents_Page_List')->parse('<li style ="padding:0 0 0 5px;margin:0px;"><b><a href="{permalink}">{title}</a></b></li>'); ?>
<li class="tooltip" data-msg="随机访问一位“十年之约”博友!" style ="padding:0 0 0 5px;margin:0px;"><b><a href="https://foreverblog.cn/go.html" rel="nofollow" target="_blank">虫洞</a></b></li>
<li class="tooltip" data-msg="随机访问一位“开往”博友!" style ="padding:0 0 0 5px;margin:0px;"><b><a href="https://www.travellings.cn/go.html" rel="nofollow" target="_blank">开往</a></b></li>
</ul>
</div>
</header>
<section id="wrapper" class="home">
<section id="writing">
<span class="h2"><?php $this->archiveTitle(array('search' => _t('包含关键字“ %s ”的文章'),), '', ''); ?></span>
<!--文章列表ads -->
<?php if($this->options->listpageads): ?><?php $this->options->listpageads();?><?php endif; ?>
<ul class="post-list" id="post-list">
<?php if ($this->have()): ?>
<?php while($this->next()): ?>
<li class="post-item" style="white-space: nowrap;text-overflow: ellipsis;overflow: hidden;word-break: break-all;max-width:100%;">
<div class="meta" style="border-radius: 5px;background-color: rgba(65,85,93,0.1);padding:1rem;">
<time datetime="<?php $this->date(); ?>" itemprop="datePublished"><?php $this->date('Y.n.j'); ?></time>
</div>
<span style="white-space: nowrap;text-overflow: ellipsis;overflow: hidden;word-break: break-all;width:780px;max-width:90%;border-radius: 5px;background-color: rgba(65,85,93,0.1);padding:.5rem;">
<h4><a href="<?php $this->permalink() ?>" title=""><?php $this->title() ?></a></h4>
</span>
<span class="metatj" style="border-radius: 5px;background-color: rgba(65,85,93,0.1);padding:.5rem;"><a href="<?php $this->permalink() ?>#comments" target="_blank" title="">(<?php $this->commentsNum() ?>)</a></span>
</li>
<div style="color:#666;margin:10px 0 30px 0;padding:15px 0 15px 0;border-bottom:1px dotted #ccc;">
<span ><?php $this->description(); ?></span>
<span style="float:right;"><small><a href="<?php $this->permalink() ?>" title="">阅读全文...</a></small></span>
</div>
<?php endwhile; ?>
<?php else: ?>
<h2>没有找到相关内容</h2>
<?php endif; ?>
</ul>
</section>
<?php $this->pageNav('«', '»', '5', '…'); ?>
</section>
</div>
<?php $this->need('footer.php'); ?>