Advertisement
Guest User

Loop-page.php

a guest
Oct 24th, 2012
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.45 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The loop that displays a page.
  4.  *
  5.  * lambda framework v 2.1
  6.  * by www.unitedthemes.com
  7.  * since lambda framework v 1.0
  8.  * based on skeleton
  9.  */
  10. ?>
  11.  
  12. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  13.                
  14.                
  15.                 <section id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  16.                     <article>              
  17.                 <?php if (!is_page_template('template-fullwidth.php')) { ?>
  18.                     <?php if (is_front_page() && !get_post_meta($post->ID, 'hidetitle', true)) { ?>
  19.                        
  20.                         <h2 class="entry-title"><span><?php the_title(); ?></span></h2>
  21.                        
  22.                     <?php } elseif (!get_post_meta($post->ID, 'hidetitle', true)) { ?>
  23.                        
  24.                        
  25.                     <?php } else {
  26.                         echo '<br />';
  27.                     } ?>
  28.                 <?php } ?>
  29.                
  30.                     <div class="entry-content">
  31.                         <?php the_content(); ?>
  32.                         <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', UT_THEME_NAME ), 'after' => '</div>' ) ); ?>
  33.                     </div><!-- .entry-content -->
  34.                    
  35.                     <div class="edit-link-wrap">
  36.                         <?php edit_post_link( __( 'Edit', UT_THEME_NAME ), '<span class="edit-link">', '</span>' ); ?>
  37.                     </div><!-- .edit-link-wrap -->
  38.                     </article>
  39.                 </section><!-- #post-## -->
  40.                
  41.                  <?php if(comments_open()) { ?>
  42.                 <div class="loop-single-divider"></div>
  43.                 <?php } ?>
  44.                
  45.                 <?php comments_template( '', true ); ?>
  46.  
  47. <?php endwhile; // end of the loop. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement