-
-
Save jrgifford/86c17ef36f85e0a76334 to your computer and use it in GitHub Desktop.
This file contains hidden or 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: work-printposts */ ?> | |
<?php include (TEMPLATEPATH . '/header.php'); ?> | |
<!-- End Header --> | |
<!-- middle content area --> | |
<div id="middle"> | |
<div id="midbox"> | |
<!-- WordPress Loop --> | |
<!-- Sidebar --> | |
<?php include (TEMPLATEPATH . '/sidebar-work-print.php'); ?> | |
<!-- Sidebar --> | |
<div id="main"> | |
<!-- WordPress Loop --> | |
<div class="blogpostwrapper"> | |
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> | |
<div class="entry <?php if(is_home() && $post==$posts[0] && !is_paged()) echo ' firstpost';?>"> | |
<h2 class="entrytitle" id="post-<?php the_ID(); ?>"> <a href="<?php the_permalink() ?>" rel="bookmark"> | |
<?php the_title(); ?> | |
</a> </h2> | |
<div class="entrybody"> | |
<?php the_content(__('Read more'));?> | |
<div class="blogwork"><?php echo get_the_term_list($post->ID, 'type', '<span>Work Type:</span><ul><li>',', </li><li>','</li></ul>'); ?></div> | |
<div class="blogterms"><?php echo get_the_term_list($post->ID, 'industries', '<span>Industries:</span><ul><li>',', </li><li>','</li></ul>'); ?></div> | |
<div class="blogterms"><?php echo get_the_term_list($post->ID, 'clients', '<span>Client:</span><ul><li>',', </li><li>','</li></ul>'); ?></div> | |
<div class="blogterms"><?php echo get_the_term_list($post->ID, 'topics', '<span>Topic Tags:</span><ul><li>',', </li><li>','</li></ul>'); ?></div> | |
</div> | |
<p class="clear"><?php edit_post_link(__('<strong>Edit</strong>'));?> | |
<?php trackback_rdf(); ?> </p> | |
</div> | |
<?php endwhile; else: ?> | |
<p> <?php _e('Sorry, no posts matched your criteria.'); ?> </p> | |
<?php endif; ?> | |
</div> | |
</div> | |
<!-- End WordPress Loop --> | |
</div></div> | |
<!-- end middle content area --> | |
<!-- lower content area --> | |
<div id="lower"> | |
<div id="lowermidbox"> | |
<div id="lowerthumbs"> | |
<ul class="navigationarrows"> | |
<?php if(get_adjacent_post(false, '', true)) : // check for the existance of a prev post ?> | |
<li class="previous"><strong>Previous Project:</strong><br /> | |
<?php $prevPost = get_previous_post($in_same_cat = false, $excluded_categories = ''); if($prevPost) {?> | |
<?php $prevthumbnail = get_the_post_thumbnail($prevPost->ID, array(110,110) );}?> | |
<?php previous_post_link('%link',"$prevthumbnail <br /> %title", FALSE); ?> </li> | |
<?php else : // if no prev post ?> | |
<li class="previous"><span>Previous Project:<br /> | |
<img src="http://www.designroom.com/blog/wp-content/themes/1designroom2012/images/first-post-work.jpg" alt="You are currently viewing the first project." title="You are currently viewing the first project." /></span></li> | |
<?php endif; // end of the prev post check ?> | |
<?php if(get_adjacent_post(false, '', false)) : // check for the existance of a next post ?> | |
<li class="next"><strong>Next Project:</strong><br /> | |
<?php $nextPost = get_next_post($in_same_cat = false, $excluded_categories = ''); if($nextPost) {?> | |
<?php $nextthumbnail = get_the_post_thumbnail($nextPost->ID, array(110,110) );}?> | |
<?php next_post_link('%link',"$nextthumbnail <br /> %title", FALSE); ?> | |
</li> | |
<?php else : // if no prev post ?> | |
<li class="next"><span>Next Project:<br /> | |
<img src="http://www.designroom.com/blog/wp-content/themes/1designroom2012/images/last-post-work.jpg" alt="You are currently viewing the most recent project." title="You are currently viewing the most recent project." /></span></li> | |
<?php endif; // end of the prev post check ?> | |
</ul> | |
</div> | |
<div id="lowercats"> | |
<?php include (TEMPLATEPATH . '/clients.php'); ?> | |
<h5>Some of Our Clients</h5> | |
</div> | |
</div> | |
</div> | |
<!-- end lower content area --> | |
<!-- Footer --> | |
<?php include (TEMPLATEPATH . '/footer.php'); ?> | |
<!-- Footer --> |
This file contains hidden or 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 include (TEMPLATEPATH . '/header.php'); ?> | |
<!-- End Header --> | |
<!-- middle content area --> | |
<div id="middle"> | |
<div id="midbox"> | |
<!-- WordPress Loop --> | |
<!-- Sidebar --> | |
<?php include (TEMPLATEPATH . '/sidebar-workposts.php'); ?> | |
<!-- Sidebar --> | |
<div id="main"> | |
<!-- WordPress Loop --> | |
<div class="columnwidenews"> | |
<?php $posts = query_posts($query_string . | |
'&posts_per_page=-1&orderby=title&order=ASC'); if (have_posts()) : ?> | |
<div id="title2"> | |
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> | |
<?php | |
if(isset($wp_taxonomies)) { | |
// This is getting the friendly version of a taxonomy | |
// - not the hyphenated get_yoast_term_title() | |
$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); | |
if($term) { | |
echo '<h3 class="pagetitle">Projects created for:<em> '.$term->name.'</em></h3>'; | |
} | |
// If you have a taxonomy description, let'er rip! | |
if(function_exists('get_yoast_term_description') && get_yoast_term_description()) { | |
echo wptexturize(get_yoast_term_description()); | |
} | |
} | |
?> | |
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> | |
<?php /* If this is a category archive */ if (is_category()) { ?> | |
<h3 class="pagetitle">Posts in "<?php single_cat_title(); ?>" Category</h3> | |
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?> | |
<h3 class="pagetitle">Posts Tagged ‘<?php single_tag_title(); ?>’</h3> | |
<?php /* If this is a daily archive */ } elseif (is_day()) { ?> | |
<h3 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h3> | |
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?> | |
<h3 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h3> | |
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?> | |
<h3 class="pagetitle">Archive for <?php the_time('Y'); ?></h3> | |
<?php /* If this is an author archive */ } elseif (is_author()) { ?> | |
<h3 class="pagetitle">Author Archive</h3> | |
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> | |
<h3 class="pagetitle">Blog Archives</h3> | |
<?php } ?> | |
</div> | |
<dl class="taxonomy"> | |
<?php while (have_posts()) : the_post(); ?> | |
<dt><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></dt> | |
<dd><p class="thumb"> <?php if ( has_post_thumbnail()) : ?> | |
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" > | |
<?php the_post_thumbnail('thumbnail'); ?> | |
</a> | |
<?php endif; ?></p><?php the_excerpt(); ?></dd> | |
<?php endwhile; ?> | |
</dl> | |
<div id="paging"> | |
<?php $previous = get_bloginfo('template_directory'); ?> | |
<ul class="navigationarrows"> | |
<li class="previous"><?php next_posts_link('<img src="' . $previous . '/images/previous.png" alt="Previous" title="Previous" /> Previous') ?></li> | |
<li class="next"><?php previous_posts_link('<img src="' . $previous . '/images/next.png" alt="Next" title="Next" /> Next') ?></li> | |
</ul> | |
</div> | |
<?php else : ?> | |
<h6 class="center">Not Found</h6> | |
<p class="center">Sorry, but you are looking for something that isn't here.</p> | |
<?php include (TEMPLATEPATH . "/searchform.php"); ?> | |
<?php endif; ?> | |
</div> | |
<!-- End WordPress Loop --> | |
</div> | |
<!-- End WordPress Loop --> | |
</div></div> | |
<!-- end middle content area --> | |
<!-- lower content area --> | |
<div id="lower"> | |
<div id="lowermidbox"> | |
<div id="lowerthumbs"> | |
<h4> </h4> | |
<p><img src="http://www.designroom.com/blog/wp-content/themes/1designroom2012/images/about1_160x160.jpg" alt="Ocho" title="Ocho" /></p> | |
<p><img src="http://www.designroom.com/blog/wp-content/themes/1designroom2012/images/about2_160x160.jpg" alt="Caxton Water Tower" title="Caxton Water Tower" /></p> | |
<p><img src="http://www.designroom.com/blog/wp-content/themes/1designroom2012/images/about3_160x160.jpg" alt="Caxton Stairwell" title="Caxton Stairwell" /></p> | |
</div> | |
<div id="lowercats"> | |
<?php include (TEMPLATEPATH . '/clients.php'); ?> | |
<h5>Some of Our Clients</h5> | |
</div> | |
</div> | |
</div> | |
<!-- end lower content area --> | |
<!-- Footer --> | |
<?php include (TEMPLATEPATH . '/footer.php'); ?> | |
<!-- Footer --> |
This file contains hidden or 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 include (TEMPLATEPATH . '/header.php'); ?> | |
<!-- End Header --> | |
<!-- middle content area --> | |
<div id="middle"> | |
<div id="midbox"> | |
<!-- WordPress Loop --> | |
<!-- Sidebar --> | |
<?php include (TEMPLATEPATH . '/sidebar-workposts.php'); ?> | |
<!-- Sidebar --> | |
<div id="main"> | |
<!-- WordPress Loop --> | |
<div class="columnwidenews"> | |
<?php $posts = query_posts($query_string . | |
'&posts_per_page=-1&orderby=title&order=ASC'); if (have_posts()) : ?> | |
<div id="title2"> | |
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> | |
<?php | |
if(isset($wp_taxonomies)) { | |
// This is getting the friendly version of a taxonomy | |
// - not the hyphenated get_yoast_term_title() | |
$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); | |
if($term) { | |
echo '<h3 class="pagetitle">Projects Tagged:<em> '.$term->name.'</em></h3>'; | |
} | |
// If you have a taxonomy description, let'er rip! | |
if(function_exists('get_yoast_term_description') && get_yoast_term_description()) { | |
echo wptexturize(get_yoast_term_description()); | |
} | |
} | |
?> | |
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> | |
<?php /* If this is a category archive */ if (is_category()) { ?> | |
<h3 class="pagetitle">Posts in "<?php single_cat_title(); ?>" Category</h3> | |
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?> | |
<h3 class="pagetitle">Posts Tagged ‘<?php single_tag_title(); ?>’</h3> | |
<?php /* If this is a daily archive */ } elseif (is_day()) { ?> | |
<h3 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h3> | |
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?> | |
<h3 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h3> | |
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?> | |
<h3 class="pagetitle">Archive for <?php the_time('Y'); ?></h3> | |
<?php /* If this is an author archive */ } elseif (is_author()) { ?> | |
<h3 class="pagetitle">Author Archive</h3> | |
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> | |
<h3 class="pagetitle">Blog Archives</h3> | |
<?php } ?> | |
</div> | |
<dl class="taxonomy"> | |
<?php while (have_posts()) : the_post(); ?> | |
<dt><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></dt> | |
<dd><p class="thumb"> <?php if ( has_post_thumbnail()) : ?> | |
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" > | |
<?php the_post_thumbnail('thumbnail'); ?> | |
</a> | |
<?php endif; ?></p><?php the_excerpt(); ?></dd> | |
<?php endwhile; ?> | |
</dl> | |
<div id="paging"> | |
<?php $previous = get_bloginfo('template_directory'); ?> | |
<ul class="navigationarrows"> | |
<li class="previous"><?php next_posts_link('<img src="' . $previous . '/images/previous.png" alt="Previous" title="Previous" /> Previous') ?></li> | |
<li class="next"><?php previous_posts_link('<img src="' . $previous . '/images/next.png" alt="Next" title="Next" /> Next') ?></li> | |
</ul> | |
</div> | |
<?php else : ?> | |
<h6 class="center">Not Found</h6> | |
<p class="center">Sorry, but you are looking for something that isn't here.</p> | |
<?php include (TEMPLATEPATH . "/searchform.php"); ?> | |
<?php endif; ?> | |
</div> | |
<!-- End WordPress Loop --> | |
</div> | |
<!-- End WordPress Loop --> | |
</div></div> | |
<!-- end middle content area --> | |
<!-- lower content area --> | |
<div id="lower"> | |
<div id="lowermidbox"> | |
<div id="lowerthumbs"> | |
<h4> </h4> | |
<p><img src="http://www.designroom.com/blog/wp-content/themes/1designroom2012/images/about1_160x160.jpg" alt="Ocho" title="Ocho" /></p> | |
<p><img src="http://www.designroom.com/blog/wp-content/themes/1designroom2012/images/about2_160x160.jpg" alt="Caxton Water Tower" title="Caxton Water Tower" /></p> | |
<p><img src="http://www.designroom.com/blog/wp-content/themes/1designroom2012/images/about3_160x160.jpg" alt="Caxton Stairwell" title="Caxton Stairwell" /></p> | |
</div> | |
<div id="lowercats"> | |
<?php wp_tag_cloud( array( 'taxonomy' => 'topics', format => 'list', 'unit' => 'em', 'smallest' => '1', 'largest' => '1', 'number' => '8','orderby' => 'rand' ) ); ?> | |
<h5>Topics</h5> | |
</div> | |
</div> | |
</div> | |
<!-- end lower content area --> | |
<!-- Footer --> | |
<?php include (TEMPLATEPATH . '/footer.php'); ?> | |
<!-- Footer --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment