-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.php
More file actions
executable file
·43 lines (32 loc) · 1.43 KB
/
Copy pathsearch.php
File metadata and controls
executable file
·43 lines (32 loc) · 1.43 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
<?php
/*
* Template to Display Search Page
*
*/
get_header(); ?>
<div class="content-wrapper-outer">
<div class="content-wrapper" data-sticky_parent>
<div id="primary" class="content-area">
<?php get_sidebar('pageleft'); ?>
<main id="main" class="site-main">
<?php if ( have_posts() ) : ?>
<header class="page-header">
<h1 class="page-title-archive"><?php echo esc_html__( 'Search Results for: ', 'wise-blog' ), '<span><em>"' . get_search_query() . '"</em></span>'; ?></h1>
</header><!-- End of .page-header -->
<?php $wise_post_layout = get_theme_mod('wise_posts_layout'); if( $wise_post_layout == 'grid' ) { echo '<div class="index-wrapper-outer">'; } ?>
<div id="index-lists<?php if( $wise_post_layout == 'grid' ) { echo '-grid'; } ?>" class="index-wrapper<?php if( $wise_post_layout == 'grid' ) { echo '-grid'; } ?>">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'templates/content', 'search' ); ?>
<?php endwhile; ?>
<?php wise_paging_nav(); ?>
</div>
<?php if( $wise_post_layout == 'grid' ) { echo '</div>'; } ?>
<?php else : ?>
<?php get_template_part( 'templates/content', 'none' ); ?>
<?php endif; ?>
</main><!-- End of #main -->
</div><!-- End of #primary -->
<?php get_sidebar(); ?>
</div><!-- End of #content-wrapper -->
</div><!-- End of #content-wrapper-outer -->
<?php get_footer(); ?>