Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
44afed53bd
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
83 lines (51 sloc) 2.57 KB
<?php
/*
Template Name: Square Grid - Faculty Snapshots
*/
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>
</div>
<div class="row" id="row2">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="square-grid-entry follow-hero">
<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
</div>
<?php endwhile; endif; ?>
<div class="span12 no-marg">
<?php $args = array('category_name' => 'faculty-snapshots',
'posts_per_page' => 1000,
'order' => 'ASC');
$posts = get_posts($args);
?>
<?php if ( !empty($posts) && isset($posts[0])) : foreach( $posts as $post ) : setup_postdata($post); ?>
<div class="span3 square-grid no-marg">
<div class="square-grid-crop">
<a href="<?php $key="grid-link"; echo get_post_meta($post->ID, $key, true); ?>">
<?php the_post_thumbnail('medium');?> </a>
<a href="<?php $key="grid-link"; echo get_post_meta($post->ID, $key, true); ?>">
<?php
$title = get_the_title();
if ($title) {
echo '<div';
echo ' class="grid-title">' . '<p>'. $title . '</p>' . '</div>';
}
?></a>
</div>
<div class="grid-secondary-title">
<em><?php $key="grid-secondary-title"; echo stripslashes (wpautop( get_post_meta($post->ID, $key, true))); ?></em>
</div>
</div>
<?php endforeach; ?>
<?php else: ?>
<?php endif; ?>
</div>
</div>
</div>
<?php get_footer(); ?>