This repository has been archived by the owner on Jan 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsearch.php
56 lines (43 loc) · 1.49 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
49
50
51
52
53
54
55
56
<?php
/**
* The template for displaying search results pages.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
*
* @package Pine
*/
get_header(); ?>
<?php if ( have_posts() ) : ?>
<div class="featured-intro animated fadeIn">
<div class="container">
<div class="row">
<div class="col-lg-6 col-md-8">
<h2 class="search-title"><?php printf( esc_html__( 'Search Results for: %s', 'pine' ), '<span>' . get_search_query() . '</span>' ); ?></h2>
</div><!-- /.col -->
</div><!-- /.row -->
</div><!-- /.container -->
</div><!-- /.featured intro -->
<div class="container">
<div class="row">
<div class="<?php pine_main_classes(); ?>">
<div class="post-list animated bounceInUp" id="main">
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post();
/*
* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'template-parts/content', get_post_format() );
?>
<?php endwhile; ?>
<?php pine_posts_navigation(); ?>
<?php else : ?>
<?php get_template_part( 'template-parts/content', 'none' ); ?>
<?php endif; ?>
</div><!-- /.post list -->
</div><!-- /.col -->
<?php get_sidebar(); ?>
</div><!-- /.row -->
</div><!-- /.container -->
<?php get_footer();