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-deans-blog.php
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
108 lines (66 sloc)
3.41 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: 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">«</a></li> | |
<li><a href="#" id="news-next">»</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(); ?> |