-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
62 lines (55 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
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
<?php
/**
* The main template file.
*
* @package YIKES Starter
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
get_header(); ?>
<div class="archive-subheader">
<div class="jumbotron">
<div class="container">
<section class="archive-header">
<h1 class="entry-title">
<?php echo wp_kses_post( yikes_starter_blog_page_title() ); ?>
</h1>
</section><!-- .archive-header -->
</div><!-- .container -->
</div><!-- /.jumbotron -->
</div>
<div id="main" tabindex="-1" class="site-main" role="main">
<div class="container">
<div class="row">
<div class="col-sm-9">
<div id="primary" class="content-area">
<div id="content" class="site-content clearfix">
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-content">
<?php
if ( have_posts() ) {
echo '<div class="row site-loop main-posts-loop">';
while ( have_posts() ) {
the_post();
get_template_part( 'template-parts/content/posts' );
}
echo '</div>';
wp_bootstrap_pagination();
} else {
get_template_part( 'template-parts/content/none' );
}
?>
</div>
</article><!-- #post-## -->
</div><!-- #content -->
</div><!-- #primary -->
</div><!-- .col-sm-9 -->
<div class="col-sm-3 site-sidebar site-loop">
<?php get_sidebar(); ?>
</div><!-- .col-sm-3 -->
</div><!-- .row -->
</div><!-- .container -->
</div><!-- #main -->
<?php
get_footer();