-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsearch.php
More file actions
49 lines (36 loc) · 904 Bytes
/
search.php
File metadata and controls
49 lines (36 loc) · 904 Bytes
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
<?php
get_header();
if (have_posts()): ?>
<div id="main" role="main">
<section id="content">
<h1 class="beta title"><?php sprintf(__('Search results for "%s"', 'boloday'), the_search_query()); ?></h1>
<div class="parent">
<?php get_template_part('loop', 'main'); ?>
</div>
<div id="pagination">
<?php
global $wp_query;
$big = 999999999; // need an unlikely integer
echo paginate_links( array(
'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
'format' => '?paged=%#%',
'current' => max( 1, get_query_var('paged') ),
'total' => $wp_query->max_num_pages,
'type' => 'list'
) );
?>
</div>
<?php get_template_part('inc/breadcrumbs'); ?>
</section>
<aside id="sidebar">
<?php get_sidebar(); ?>
</aside>
</div>
<?php else: ?>
<?php get_template('404', 'search'); ?>
<?php
endif;
?>
<?php
get_footer();
?>