-
Notifications
You must be signed in to change notification settings - Fork 33
/
search.php
48 lines (43 loc) · 2.13 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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>
</br>
<div class="u-size640 u-centered is-underMetabar">
<form action="<?php $this->options->siteUrl(); ?>" role="search" method="GET">
<input class="js-searchInput textInput textInput--jumbo textInput--underlined textInput--marginBottom10" name="s" type="search" value="<?php echo $this->archiveTitle('','',''); ?>" placeholder="Search <?php $this->options->title(); ?>">
</form>
<div class="label label--smaller u-clearfix">
<div class="u-floatLeft"><?php echo $this->archiveTitle('','',''); ?>的搜索结果</div>
</div>
<div class="blockGroup">
<?php while($this->next()):?>
<article class="block--list block--withoutImage u-clearfix" itemscope="itemscope" itemtype="http://schema.org/Article">
<h2 class="block-title" itemprop="headline"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h2>
<div class="block-snippet" itemprop="about">
<?php $this->excerpt(80,'...'); ?>
</div>
<div class="block-postMeta">
<a href="<?php $this->permalink() ?>" rel="category tag"><?php $this->category(','); ?></a>
<span class="middotDivider"></span>
<a data-no-instant><time class="lately-a" datetime="<?php $this->date('Y-m-d H:i:s'); ?>" itemprop="datePublished"><?php $this->date('Y-m-d H:i:s');?></time></a>
</div>
</article>
<?php endwhile; ?>
</div>
<div class="block-more"></div>
<div class="lists-navigator clearfix">
<?php $this->pageNav('←','→','2','...'); ?>
</div>
</div>
<footer class="footer--empty"></footer>
<div class="loadingBar"></div>
<script src="https://cdn.bootcss.com/instantclick/3.0.0/instantclick.min.js" data-no-instant></script>
<script data-no-instant>
InstantClick.on('change', function(isInitialLoad) {
$.lately({
'target' : '.lately-a,.lately-b,.lately-c'
});
});
InstantClick.init('mousedown');
</script>
</body>
</html>