-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
42 lines (32 loc) · 1.17 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
<?php get_header(); ?>
<img class="img-fluid" src="<?php header_image(); ?>" height="<?php echo get_custom_header()->height; ?>"
width="<?php echo get_custom_header()->width; ?>" alt="" />
<div class="content-area">
<main>
<section class="middle-area">
<div class="container">
<div class="row">
<div class="news col-md-8">
<?php
// Se houver algum post
if( have_posts() ):
// Enquanto houver posts, mostre-os pra gente
while( have_posts() ): the_post();
?>
<?php get_template_part( 'template-parts/content', get_post_format() ); ?>
<?php endwhile; ?>
<div class="row">
<div class="pages text-left col-6"><?php previous_posts_link("<< Newer posts");?></div>
<div class="pages text-right col-6"><?php next_posts_link("Older posts"); ?></div>
</div>
<?php else: ?>
<p>There's nothing yet to be displayed...</p>
<?php endif; ?>
</div>
<?php get_sidebar( 'blog' ); ?>
</div>
</div>
</section>
</main>
</div>
<?php get_footer(); ?>