-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsearch.php
executable file
·40 lines (40 loc) · 1.61 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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>
<main>
<header>
<div class="container">
<h1>搜索</h1>
<p class="subtitle">包含关键字<span class="count"><?php $this->archiveTitle(array('search' => _t('%s')), ''); ?></span>的所有文章。</p>
</div>
</header>
<section>
<div class="container">
<form id="search" method="post" action="<?php $this->options->siteUrl(); ?>" role="search">
<input id="search-query" type="text" id="s" name="s" class="text" placeholder="Search for anything...">
</form>
<section>
<section>
<div class="posts">
<?php while($this->next()): ?>
<div class="post">
<a href="<?php $this->permalink() ?>">
<div class="post-row">
<time><?php $this->date('M j'); ?></time>
<h3><?php $this->title() ?></h3>
</div>
</a>
</div>
<?php endwhile; ?>
</div>
</section>
</section>
</div>
<div class="container">
<nav class="flex container suggested">
<?php $this->pageLink('上一页','prev'); ?>
<?php $this->pageLink('下一页','next'); ?>
</nav>
</div>
</section>
</main>
<?php $this->need('footer.php'); ?>