-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsearch.php
43 lines (36 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
<?php
/**
* The template for displaying Search Results pages
* @package sampression framework v 1.0
* @theme naya 1.0
*/
if ( ! defined( 'ABSPATH' ) ) exit( 'restricted access' );
get_header();
?>
<section class="block">
<div class="container">
<div id="content" class="<?php sampression_content_class() ?>">
<?php if ( have_posts() ) : ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php
get_template_part( 'content', get_post_format() );
?>
<?php endwhile; ?>
<?php sampression_content_nav(); ?>
<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>
<!-- .post-->
</div>
<!-- #content-->
<?php
$position = sampression_sidebar_position();
if ($position === 'right') {
get_sidebar();
}
?>
</div>
</section>
<!-- .block-->
<?php get_footer(); ?>