-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
107 lines (100 loc) · 3.92 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?php get_header(); ?>
<?php
global $wp_query;
$id = $wp_query->get_queried_object_id();
if ( get_query_var('paged') ) { $paged = get_query_var('paged'); }
elseif ( get_query_var('page') ) { $paged = get_query_var('page'); }
else { $paged = 1; }
$sidebar = $mkd_burst_options['category_blog_sidebar'];
if(isset($mkd_burst_options['blog_page_range']) && $mkd_burst_options['blog_page_range'] != ""){
$blog_page_range = esc_attr($mkd_burst_options['blog_page_range']);
} else{
$blog_page_range = $wp_query->max_num_pages;
}
?>
<script>
<?php if(get_post_meta($id, "mkd_page_scroll_amount_for_sticky", true)) { ?>
page_scroll_amount_for_sticky = <?php echo esc_attr(get_post_meta($id, "mkd_page_scroll_amount_for_sticky", true)); ?>;
<?php }else{ ?>
page_scroll_amount_for_sticky = undefined
<?php } ?>
</script>
<?php get_template_part( 'title' ); ?>
<div class="container">
<?php if($mkd_burst_options['overlapping_content'] == 'yes') {?>
<div class="overlapping_content"><div class="overlapping_content_inner">
<?php } ?>
<div class="container_inner default_template_holder clearfix">
<?php if(($sidebar == "default")||($sidebar == "")) : ?>
<div class="blog_holder blog_standard_type">
<?php if(have_posts()) : while ( have_posts() ) : the_post(); ?>
<?php
get_template_part('templates/blog/blog_search', 'loop');
?>
<?php endwhile; ?>
<?php if($mkd_burst_options['pagination'] != "0") : ?>
<?php mkd_burst_pagination($wp_query->max_num_pages, $blog_page_range, $paged); ?>
<?php endif; ?>
<?php else: //If no posts are present ?>
<div class="entry">
<p><?php esc_html_e('No posts were found.', 'burst'); ?></p>
</div>
<?php endif; ?>
</div>
<?php elseif($sidebar == "1" || $sidebar == "2"): ?>
<div class="<?php if($sidebar == "1"):?>two_columns_66_33<?php elseif($sidebar == "2") : ?>two_columns_75_25<?php endif; ?> background_color_sidebar grid2 clearfix">
<div class="column1 content_left_from_sidebar">
<div class="column_inner">
<div class="blog_holder blog_standard_type">
<?php if(have_posts()) : while ( have_posts() ) : the_post(); ?>
<?php
get_template_part('templates/blog/blog_search', 'loop');
?>
<?php endwhile; ?>
<?php if($mkd_burst_options['pagination'] != "0") : ?>
<?php mkd_burst_pagination($wp_query->max_num_pages, $blog_page_range, $paged); ?>
<?php endif; ?>
<?php else: //If no posts are present ?>
<div class="entry">
<p><?php esc_html_e('No posts were found.', 'burst'); ?></p>
</div>
<?php endif; ?>
</div>
</div>
</div>
<div class="column2">
<?php get_sidebar(); ?>
</div>
</div>
<?php elseif($sidebar == "3" || $sidebar == "4"): ?>
<div class="<?php if($sidebar == "3"):?>two_columns_33_66<?php elseif($sidebar == "4") : ?>two_columns_25_75<?php endif; ?> background_color_sidebar grid2 clearfix">
<div class="column1">
<?php get_sidebar(); ?>
</div>
<div class="column2 content_right_from_sidebar">
<div class="column_inner">
<div class="blog_holder blog_standard_type">
<?php if(have_posts()) : while ( have_posts() ) : the_post(); ?>
<?php
get_template_part('templates/blog/blog_search', 'loop');
?>
<?php endwhile; ?>
<?php if($mkd_burst_options['pagination'] != "0") : ?>
<?php mkd_burst_pagination($wp_query->max_num_pages, $blog_page_range, $paged); ?>
<?php endif; ?>
<?php else: //If no posts are present ?>
<div class="entry">
<p><?php esc_html_e('No posts were found.', 'burst'); ?></p>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
<?php endif; ?>
</div>
<?php if($mkd_burst_options['overlapping_content'] == 'yes') {?>
</div></div>
<?php } ?>
</div>
<?php get_footer(); ?>