-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
38 lines (37 loc) · 1.01 KB
/
index.php
File metadata and controls
38 lines (37 loc) · 1.01 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
<?php
/**
* General page template
*/
get_header(); ?>
<div class="site-content">
<section class="module u-bg-light-gray module--posts">
<div class="module__content u-container">
<header class="module__header">
<div class="module-title">News & Announcements</div>
</header>
<div class="module__body">
<?php
if( have_posts() )
{
while ( have_posts() )
{
the_post();
get_template_part( 'content', 'post' );
}
wp_reset_postdata();
the_posts_pagination( array(
'prev_text' => 'Previous ',
'next_text' => ' Next',
'before_page_number' => '<span class="meta-nav screen-reader-text">' . 'Page' . ' </span>',
) );
}
else
{
get_template_part( 'content', 'none' );
}
?>
</div>
</div>
</section>
</div>
<?php get_footer(); ?>