Repository navigation
Expand file tree
/
Copy pathsearch.php
More file actions
82 lines (46 loc) · 2.5 KB
/
Copy pathsearch.php
File metadata and controls
82 lines (46 loc) · 2.5 KB
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
75
76
77
78
79
80
81
82
<?php get_header(); ?>
<br/>
<div class="row">
<div class="large-9 columns">
<h3 class="archive-title"><span>
<?php /* Search Count */ $allsearch = &new WP_Query("s=$s&showposts=-1"); $key = wp_specialchars($s, 1); $count = $allsearch->post_count; _e('('); echo $count; _e(')'); _e(' Related Articles'); wp_reset_query(); ?>
</h3>
<hr/>
<form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>">
<div><label class="screen-reader-text" for="s">Search for:</label>
<input type="text" value="<?php echo $key; ?>" name="s" id="s" />
<input type="submit" class="search-btn" id="searchsubmit" value="Search" />
</div>
</form>
<hr/>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
<header class="article-header">
<h3 class="search-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
<p class="byline subheader" style="margin-top: -15px;"><?php _e("Posted", "bonestheme"); ?> <time class="updated" datetime="<?php echo the_time('Y-m-j'); ?>" pubdate><?php the_time('F jS, Y'); ?></time></p>
</header> <!-- end article header -->
<section class="entry-content">
<p><?php echo get_excerpt(320); ?></p>
</section> <!-- end article section -->
<footer class="article-footer">
</footer> <!-- end article footer -->
</article> <!-- end article -->
<?php endwhile; ?>
<!-- PageNavi plugin for pagination -->
<!-- <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?> -->
<!-- USE THIS INSTEAD -->
<?php kriesi_pagination();?>
<br/>
<?php else : ?>
<article id="post-not-found" class="hentry clearfix">
<section class="article-header">
<h1><?php _e("Sorry, No Results.", "bonestheme"); ?></h1>
</section>
</article>
<?php endif; ?>
</div>
<div class="large-3 columns">
<?php get_sidebar(); ?>
</div>
</div> <!-- end #content -->
<?php get_footer(); ?>