Skip to content

Instantly share code, notes, and snippets.

@billrobbins
Created January 18, 2012 03:33
Show Gist options
  • Select an option

  • Save billrobbins/1630698 to your computer and use it in GitHub Desktop.

Select an option

Save billrobbins/1630698 to your computer and use it in GitHub Desktop.
Picture Page Centered
<?php
/*
Template Name: Picture Page Center
*/
?>
<?php get_header(); ?>
<div id="front">
<div id="home">
<div class="fix" id="page-center">
<div class="scroll-pane clearfix">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1><?php the_title(); ?></h1>
<?php the_content(__('Read more'));?>
</div>
</div>
<div id="frontimage">
<?php the_post_thumbnail('picture-page'); ?>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
</div>
</div><!-- Close Home -->
</div><!-- Close Front -->
<?php if(ot_option('home_footer') == 'Yes') { ?>
<?php include(TEMPLATEPATH."/footer_home.php");?>
<?php } ?>
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment