-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
90 lines (67 loc) · 2 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php
/**
* Displays archive of posts.
*
* @since 1.0.0
* @package RealBigPlugins
*/
// Don't load directly
if ( ! defined( 'ABSPATH' ) ) {
die;
}
get_header();
$date_format = get_option( 'date_format', 'F j, Y' );
?>
<div class="page-content row">
<?php if ( have_posts() ) : ?>
<?php
while ( have_posts() ) :
the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( array(
'columns',
'small-12'
) ); ?>>
<h1 class="post-title">
<a href="<?php the_permalink(); ?>">
<?php the_title(); ?>
</a>
</h1>
<span class="timestamp"><span class="fa fa-clock-o"></span> <?php the_time( $date_format ); ?></span> <span class="author"><?php printf( __( 'by %s' ), get_the_author_meta( 'display_name' ) ); ?></span>
<br /><br />
<div class="media-object stack-for-small">
<?php if ( has_post_thumbnail() ) : ?>
<div class="media-object-section image-section">
<div class="thumbnail">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php the_post_thumbnail( 'medium' ); ?>
</a>
</div>
</div>
<?php endif; ?>
<div class="media-object-section main-section">
<?php the_excerpt(); ?>
<a href="<?php the_permalink(); ?>" class="button secondary alignright">
Read more
</a>
</div>
</div>
</article>
<?php endwhile; ?>
<div class="columns small-12">
<?php
the_posts_pagination( array(
'prev_text' => 'Previous page',
'next_text' => 'Next page',
'before_page_number' => '<span class="meta-nav screen-reader-text">' . 'Page' . ' </span>',
) );
?>
</div>
<?php else: ?>
<div class="columns small-12">
Nothing found, sorry!
</div>
<?php endif; ?>
</div>
<?php
get_footer();