This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
news.php
55 lines (47 loc) · 1.59 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?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
$args = array(
'posts_per_page' => 5,
'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1)
);
query_posts( $args );
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;?>
<span class="idi-previous-post">
<?php previous_posts_link('Newer articles'); ?>
</span>
<span class="idi-next-post">
<?php next_posts_link('Older articles'); ?>
</span>
<?php
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();
?>