forked from Codeinwp/bookrev-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
73 lines (30 loc) · 1.48 KB
/
index.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
<?php get_header(); ?>
<section id="main-content" class="clearfix">
<section id="main-content-inner" class="container">
<?php // Display the sidebar on the left side if set.
if(get_theme_mod("mp_layout_type") == "sidebarleft") get_sidebar(); ?>
<?php if(have_posts()): ?>
<?php if(is_search()) : ?>
<div class="search-results-header">
<h3><?php printf(__("Search results for: %s", "book-rev-lite"), "<span>" . get_search_query() . "</span>"); ?></h3>
</div><!-- end .search-results-header -->
<?php endif; ?>
<div class="article-container">
<?php while(have_posts()) : the_post(); ?>
<?php get_template_part("templates/bookrev_loop_article_template"); ?>
<?php endwhile; book_rev_lite_numeric_pagination(); ?>
</div><!-- end .article-list -->
<?php else: ?>
<?php if(is_search()) : ?>
<div class="search-results-header">
<h3> <?php printf(__("There are no search results for: %s", "book-rev-lite"), "<span>" . get_search_query() . "</span>"); ?></h3>
</div><!-- end .search-results-header -->
<?php endif; ?>
<?php endif; ?>
<?php
// Display the sidebar on the right side if set.
if(get_theme_mod("mp_layout_type","sidebarright") == "sidebarright") get_sidebar();
?>
</section><!-- end .main-content-inner -->
</section><!-- end #main-content -->
<?php get_footer(); ?>