-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
49 lines (34 loc) · 1.11 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
<?php
/**
* The template for displaying Search Results pages
*
* @package CMSSuperHeroes
* @subpackage CMS Theme
* @since 1.0.0
*/
/* get side-bar position. */
$_get_sidebar = et3_theme_framework_archive_sidebar();
get_header(); ?>
<section id="primary" class="container">
<div class="row <?php echo esc_attr($_get_sidebar); ?>">
<div class="<?php et3_theme_framework_archive_class(); ?>">
<main id="main" class="site-main" role="main">
<?php if ( have_posts() ) :
/* Start the Loop */
while ( have_posts() ) : the_post();
get_template_part( 'single-templates/content/content' );
endwhile;
/* get paging_nav. */
et3_theme_framework_paging_nav();
else :
get_template_part( 'single-templates/search', 'not-found' );
endif; ?>
</main><!-- #content -->
</div><!-- #primary -->
<?php
if($_get_sidebar != 'is-sidebar-full'):
get_sidebar();
endif; ?>
</div>
</section>
<?php get_footer(); ?>