-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
44 lines (39 loc) · 1.14 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
<?php
/**
* @package WordPress
* @subpackage forstarters
*/
?>
<?php fs_get_template_parts( array( 'templates/html-header', 'templates/header' ) ); ?>
<div class="container">
<div class="row">
<div class="col-lg-12">
<h1><a href="<?php echo home_url( '/' ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
</div>
</div>
<div class="row">
<?php if ( ! have_posts() ) : ?>
<div class="col-lg-12">
<div class="alert">
<?php _e('Sorry, no results were found.', 'goodstart'); ?>
</div>
</div>
<?php endif; ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'templates/content', get_post_format() ); ?>
<?php endwhile; ?>
</div>
<div class="row">
<div class="col-lg-12">
<?php if ($wp_query->max_num_pages > 1) : ?>
<nav class="post-nav">
<ul class="pager">
<li class="previous"><?php next_posts_link(__('← Older posts', 'goodstart')); ?></li>
<li class="next"><?php previous_posts_link(__('Newer posts →', 'goodstart')); ?></li>
</ul>
</nav>
<?php endif; ?>
</div>
</div>
</div>
<?php fs_get_template_parts( array( 'templates/footer', 'templates/html-footer' ) ); ?>