-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
54 lines (44 loc) · 815 Bytes
/
index.php
File metadata and controls
54 lines (44 loc) · 815 Bytes
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
<?php
/**
* Post index page.
*
* @since 0.1.0
* @package Mullins
*
* @global WP_Query $wp_query
*/
// Don't load directly
if ( ! defined( 'ABSPATH' ) ) {
die;
}
get_header();
?>
<section id="post-index" class="page-content">
<div class="row collapse">
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
?>
<article <?php post_class( array( 'small-12', 'columns' ) ); ?>>
<h1 class="post-title">
<a href="<?php the_permalink(); ?>">
<?php the_title(); ?>
</a>
</h1>
<div class="post-copy">
<?php the_excerpt(); ?>
</div>
</article>
<?php
endwhile;
else:
?>
<div class="small-12 columns">
Nothing found.
</div>
<?php endif; ?>
</div>
</section>
<?php
get_footer();