This repository has been archived by the owner. It is now read-only.
Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
clas/single.php
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
117 lines (73 sloc)
3.83 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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('« %link') ?></li> | |
<li class="float-right"><?php next_post_link('%link »') ?></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(); ?> |