Advertisement
kristopherlouie

BAM page.php

Apr 27th, 2012
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage BigAssMonsters
  5. */
  6.  
  7. get_header(); ?>
  8. <div id="page">
  9. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  10. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  11.  
  12. <header class="entry-header">
  13. <h1 class="entry-title"><?php the_title(); ?></h1>
  14. <?php if(has_post_thumbnail()) { ?>
  15. <?php $url = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>
  16. <img src="<?php echo $url ?>" title="<?php the_title(); ?>" />
  17. <?php } else {} ?>
  18. </header><!-- .entry-header -->
  19. <div class="left-col">
  20. <div class="page-content">
  21. <?php the_content(); ?>
  22. <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'themename' ), 'after' => '</div>' ) ); ?>
  23. <?php edit_post_link( __( 'Edit', 'themename' ), '<span class="edit-link">', '</span>' ); ?>
  24. </div>
  25. </div>
  26. <?php get_sidebar(); ?>
  27.  
  28. </article><!-- #post-<?php the_ID(); ?> -->
  29.  
  30. </div>
  31. <?php endwhile; // end of the loop. ?>
  32. </div> <!--/content-->
  33. </div> <!--/container-->
  34. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement