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/page-awards-honors.php
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
79 lines (44 sloc)
2.08 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 | |
/* | |
Template Name: Awards and Honors | |
*/ | |
get_header(); ?> | |
<div id="home-interior"> | |
<div class="row" id="row1"> | |
<div class="page-title clear"> | |
<h1><?php the_title(); ?></h1> | |
</div> | |
<div class="interior-hero clear"> | |
<?php the_post_thumbnail(); ?> | |
</div> | |
<?php if (have_posts()) : while (have_posts()) : the_post(); | |
$pageContent = get_the_content(); | |
endwhile; endif; ?> | |
<div class="span12 follow-hero"> | |
<div class="row"> | |
<div class="span3"> | |
<div class="one-third-featured"> | |
<?php echo stripslashes (wpautop( get_the_content($pageContent->ID, $key, true))); ?> | |
</div> | |
</div> | |
<?php $args = array('category_name' => 'awards-and-honors', | |
'posts_per_page' => 1000, | |
'order' => 'DESC'); | |
$posts = get_posts($args); | |
?> | |
<?php if ( !empty($posts) && isset($posts[0])) : foreach( $posts as $post ) : setup_postdata($post); ?> | |
<div class="span8 float-right"> | |
<?php the_content();?> | |
<hr /> | |
</div> | |
<?php endforeach; ?> | |
<?php else: ?> | |
<p> | |
<?php ('No content to load.'); ?> | |
</p> | |
<?php endif; ?> | |
</div> | |
</div> | |
</div> | |
</div> | |
<?php get_footer(); ?> |