-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
48 lines (47 loc) · 2 KB
/
Copy pathindex.php
File metadata and controls
48 lines (47 loc) · 2 KB
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
<?php get_header(); ?>
<!-- Start of main-content -->
<section id="content" class="site-section">
<div class="container">
<div class="row">
<div class="column">
<h3 class="page-title"><?php _e( 'Latest Posts', 'nasio'); ?></h3>
</div>
</div>
<div class="row blog-entries">
<div class="main-content">
<div class="row">
<?php
//Dynamic content here
if (have_posts() ) :
while (have_posts() ) : the_post(); ?>
<div class="column<?php echo (is_sticky()) ? ' sticky' : ''; ?>"> <?php
if ( has_post_thumbnail() ): ?>
<a class="blog-entry" href="<?php the_permalink() ?>">
<?php the_post_thumbnail('medium_large') ?>
<div class="blog-content-body">
<h2><?php the_title() ?></h2>
</div>
</a>
<?php else : ?>
<a class="blog-entry no-image" href="<?php the_permalink() ?>">
<div class="blog-content-body">
<h2><?php the_title() ?></h2>
</div>
</a>
<?php endif; ?>
</div>
<?php endwhile;
nasio_numeric_posts_nav();
else :
_e( 'There are no posts!', 'nasio');
endif;
?>
</div>
</div>
<!-- END of main-content -->
<!-- Show Sidebar -->
<?php get_sidebar() ?>
</div>
</div>
</section>
<?php get_footer(); ?>