forked from cielt/brun-riissettlement
-
Notifications
You must be signed in to change notification settings - Fork 0
/
news-feed.php
41 lines (40 loc) · 1.32 KB
/
news-feed.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 Feed Template
*/
get_header(); ?>
<div id="main" role="main" class="<?php brunelleschi_content_class(); ?>">
<div class="news-feed">
<h1>Recent News</h1>
<?php
$args = array('numberposts' => '5',
'orderby' => 'date',
'order' => 'DESC',
'post_status' => 'publish' );
$lastposts = get_posts( $args );
foreach ( $lastposts as $post ) :
setup_postdata( $post ); ?>
<div class="post">
<span class=""><?php the_date(); ?></span>
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<div class="post-content"><?php the_content(); ?></div>
</div>
<div class="hairline-logo"><span class="butterfly"></span></div>
<?php endforeach;
wp_reset_postdata(); ?>
</div>
<div class="utilities">
<nav class="navigation">
<div class="nav-next"><a href="/news-events/news/archives/">
See All News <span class="meta-nav">→</span></a>
</div>
</nav>
</div>
</div><!-- #main -->
<?php if( brunelleschi_options('sidebar') === __('both','brunelleschi')
|| brunelleschi_options('sidebar') === __('two left','brunelleschi')
|| brunelleschi_options('sidebar') === __('two right','brunelleschi')){
get_sidebar('secondary');
} ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>