-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.php
More file actions
70 lines (57 loc) · 1.85 KB
/
search.php
File metadata and controls
70 lines (57 loc) · 1.85 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
<?php
get_header();
?>
<!-- Page Title
============================================= -->
<section id="page-title">
<div class="container clearfix">
<h1><?php _e('Search Results for: ','mytheme'); the_search_query(); ?></h1>
</div>
</section><!-- #page-title end -->
<!-- Content
============================================= -->
<section id="content">
<div class="content-wrap">
<div class="container clearfix">
<!-- Post Content
============================================= -->
<div class="postcontent nobottommargin clearfix">
<!-- Search Box
============================================= -->
<div class="col_full card">
<div class="card-header"><?php _e('What are you searching for today?' , 'mytheme')?></div>
<div class="card-body">
<?php get_search_form(); ?>
</div>
</div>
<!-- Search Box End -->
<!-- Posts
============================================= -->
<div id="posts">
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
/*get_template_part('partials/post/content-excerpt');*/
get_template_part( 'partials/post/content', 'excerpt' );
endwhile;
endif;
?>
</div><!-- #posts end -->
<!-- Pagination
============================================= -->
<div class="row mb-3">
<div class="col-12">
<?php
next_posts_link( '← Older' );
previous_posts_link( 'Newer →' );
?>
</div>
</div>
<!-- .pager end -->
</div><!-- .postcontent end -->
<?php get_sidebar(); ?>
</div>
</div>
</section><!-- #content end -->
<?php get_footer();