Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
117 lines (73 sloc) 3.83 KB
<?php
get_header();
?>
<div id="home-interior" class="single-story">
<div class="row" id="row1">
<?php if ( !empty($posts) && isset($posts[0])) : foreach( $posts as $post ) : setup_postdata($post); ?>
<div class="interior-hero clear"></div>
<div class="span8 ">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post content">
<div class="post-header">
<h3 class="header-line-height"><?php the_title(); ?></h3>
</div>
<div class="post-date-news-single clear">
<?php echo'<span class="news-single-date">' . get_the_date('F j, Y') . '</span>'; ?>
<?php
$posttags = get_the_tags();
if ($posttags) {
foreach($posttags as $tag) {
echo '<a href="';echo bloginfo(url);
echo '/news-archive/?division=' . $tag->slug . '" class="' . $tag->slug . '">' . $tag->name . '</a>';
}
}
?>
</div>
<div class="post-content-news-single">
<!-- <div class="img-float">
</div> -->
<?php the_content(); ?>
</div>
</div>
<?php endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
<br />
<?php
echo '<a href="';echo bloginfo(url);
echo'/news-archive"'.'class="clear">'.'More News Stories'. '</a>';
?>
<!--
<ul class="no-marg news-single-nav clear">
<li class="float-left"><?php previous_post_link('&laquo; %link') ?></li>
<li class="float-right"><?php next_post_link('%link &raquo;') ?></li>
<ul> -->
</div>
<?php endforeach; ?>
<?php else: ?>
<p>
<?php _e('Sorry, no recent news.'); ?>
</p>
<?php endif; ?>
<div class="span4" id="single-sidebar">
<!-- <h2>Related Posts</h2>
<ul>
<?php
$args = array (
'numberposts' => '5'
);
$recent_posts = wp_get_recent_posts($args);
foreach( $recent_posts as $recent ){
echo '<li class="sidebar-story"><a href="' . get_permalink($recent["ID"]) . '">' . $recent["post_title"].'</a><br><span class="date">' . get_the_date() .'</span> </li> ';
}
wp_reset_query();
?>
</ul>-->
<?php if ( is_active_sidebar( 'single-sidebar' ) ) { ?>
<?php dynamic_sidebar( 'single-sidebar' ); ?>
<?php } else { ?>
<?php }; ?>
</div>
</div> <!-- end row 1 -->
</div> <!-- end home-interior -->
<?php get_footer(); ?>
You can’t perform that action at this time.