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
108 lines (66 sloc) 3.41 KB
<?php
/*
Template Name: Dean's Blog
*/
get_header(); ?>
<div id="home-interior">
<div class="row clear" id="row1">
<div class="page-title clear">
<h1><?php the_title(); ?></h1>
</div>
<div class="deans-blog-blurb">
<?php $key="deans-blog-blurb"; echo get_post_meta($post->ID, $key, true); ?>
</div>
<div class="interior-hero clear">
<?php the_post_thumbnail(); ?>
</div>
<p class="hidden-deans-blog-blurb"><?php $key="deans-blog-blurb"; echo get_post_meta($post->ID, $key, true); ?></p>
<div class="span3 news-archive-left">
<!--
<strong><p>Sort By Date</p></strong>
<div class="date-sort-button clear">
<a href="#" class="DESC">Newest<b class="caret caret-reversed"></b></a>
<a href="#"class="ASC">Oldest<b class="caret"></b></a>
</div>
<hr /> -->
<div id="dean-posts">
<strong><p>Past Blog Entries</p></strong>
<ul class="deans-blog-list">
<?php
$args = array( 'posts_per_page' => 5000, 'category_name' => 'deans-blog' );
$myposts = get_posts( $args );
foreach ( $myposts as $post ) : setup_postdata( $post ); ?>
<li>
<a href="<?php the_permalink(); ?>" title="<?php echo $post->ID; ?>"><?php the_title(); ?></a>
</li>
<?php endforeach;
wp_reset_postdata();?>
</ul>
<div class="pagination pagination-small" id="news-pagination">
<ul>
<li><a href="#" id="news-back">&laquo;</a></li>
<li><a href="#" id="news-next">&raquo;</a></li>
</ul>
</div>
</div>
</div>
<?php
$args = array( 'numberposts'=> 1, 'orderby' => 'post-date', 'category_name' => 'deans-blog' );
$latestpost = get_posts( $args );
foreach ( $latestpost as $post ) : setup_postdata( $post );
?>
<div class="span8 follow-hero">
<div class="clas-entry-thumbnail"><?php the_post_thumbnail('large');?></div>
<article id="">
<header class="entry-header">
<h3 class="clas-entry-title"><?php the_title(); ?></h3>
<div class="clas-post-date"><?php the_time('F j, Y'); ?></div>
</header>
<div class="clas-entry-content"><?php the_content(); ?></div>
</article>
<?php endforeach;
wp_reset_postdata(); ?>
</div>
</div>
</div>
<?php get_footer(); ?>
You can’t perform that action at this time.