forked from inclusive-design/idi-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
news.php
41 lines (35 loc) · 1.01 KB
/
news.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
<?php
/*
Template Name: News
*/
?>
<?php get_header(); ?>
<div class="fl-centered fl-col-mixed fl-site-wrapper">
<div class="fl-col-fixed fl-force-left">
<?php get_sidebar('news'); ?>
</div>
<div id="content" class="fl-col-flex idi-news-summary idi-one-column">
<?php query_posts( 'posts_per_page=5' );
if(have_posts()) :
while(have_posts()) : the_post(); ?>
<div class="idi-box idi-highlight-box post">
<?php the_post_thumbnail(); ?>
<div class="idi-box-text">
<h2><a class="idi-article-title" href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<div class="idi-date"><?php the_time('F jS, Y') ?></div>
<div class="entry">
<?php the_excerpt(); ?>
</div>
</div>
</div>
<?php endwhile;
wp_reset_query();
endif; ?>
</div>
</div>
<?php
// Remove the id="content" attribute that is inherited from the parent theme "wordpress-fss-theme".
// This attribute/value pair is re-defined in this page.
remove_parent_contentID();
get_footer();
?>