forked from mojaray2k/mayer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
50 lines (35 loc) · 900 Bytes
/
index.php
File metadata and controls
50 lines (35 loc) · 900 Bytes
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
<?php
/**
* The main template file.
*
* @package Mayer
* @since 1.0.0
*/
?>
<?php get_header(); ?>
<div id="primary-wrapper">
<div id="primary" class="container">
<?php if ( is_rtl() || mayer_has_left_sidebar() ) { ?>
<?php get_sidebar(); ?>
<?php } ?>
<main id="main" class="site-main col-lg-8 col-md-8" role="main">
<?php if ( have_posts() ) {
while ( have_posts() ) {
the_post();
get_template_part( 'content' );
}
// If this is a page, then we won't show the pager.
if ( ! is_page() ) {
get_template_part( 'partials/pagination' );
}
} else {
get_template_part( 'partials/no-content' );
}
?>
</main><!-- #main -->
<?php if ( ! is_rtl() && ! mayer_has_left_sidebar() ) { ?>
<?php get_sidebar(); ?>
<?php } ?>
</div><!-- #primary -->
</div><!-- /#primary-wrapper -->
<?php get_footer(); ?>