Created
March 6, 2012 22:37
-
-
Save lumpysimon/1989492 to your computer and use it in GitHub Desktop.
wordpress page.php
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 | |
get_header(); | |
if ( have_posts() ) { | |
while ( have_posts() ) { | |
the_post(); | |
$title = the_title( '<h1>', '</h1>', false ); | |
?> | |
<section class="wrap"> | |
<div class="col col-primary"> | |
<article> | |
<?php | |
if ( has_post_thumbnail() ) { ?> | |
<div class="big-pic"> | |
<?php the_post_thumbnail( 'big-pic' ); ?> | |
<div class="big-pic-text"> | |
<?php echo $title; ?> | |
</div> | |
</div> | |
<?php } else { ?> | |
<?php echo $title; ?> | |
<?php } ?> | |
<?php the_content(); | |
?> | |
</article> | |
</div> | |
<div class="col col-secondary"> | |
<p>Sidebar</p> | |
</div> | |
</section> | |
<?php | |
} | |
} | |
get_footer(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment