Advertisement
nadiar429

Page.php

Dec 28th, 2011
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.44 KB | None | 0 0
  1. <?php
  2.     ob_start();
  3. ?>
  4. <?php get_header(); ?>
  5. <div id="content">
  6.     <?php the_post(); $nocomment_class=''; if ('open' != $post->comment_status) $nocomment_class=' post-page-nocomment'; ?>
  7.     <div <?php post_class('post post-page'.$nocomment_class); ?> id="post-<?php the_ID(); ?>"><!-- post div -->
  8.         <h2 class="title"><?php the_title(); ?></h2>
  9.         <?php if ('open' == $post->comment_status) { ?>
  10.         <div class="post-info-top">
  11.             <span id="addcomment"><a href="#respond"  rel="nofollow" title="<?php _e('Leave a comment ?', 'zbench'); ?>"><?php _e('Leave a comment', 'zbench'); ?></a><?php comments_number(' (0)', ' (1)', ' (%)'); ?></span>
  12.             <span id="gotocomments"><a href="#comments"  rel="nofollow" title="<?php _e('Go to comments ?', 'zbench'); ?>"><?php _e('Go to comments', 'zbench'); ?></a></span>
  13.         </div>
  14.         <?php } else { ?>
  15.         <div class="post-info-top post-info-top-nocomment"></div>
  16.         <?php } ?>
  17.         <div class="clear"></div>
  18.         <div class="entry">
  19.             <?php the_content(); ?>
  20.             <?php wp_link_pages( array( 'before' => '<div class="page_link"><strong>' . __( 'Pages:', 'zbench' ) . '</strong>' , 'after' => '</div>' ) ); ?>
  21.         </div><!-- END entry -->
  22.     </div><!-- END post -->
  23.     <?php comments_template( '', true ); ?>
  24. </div><!--content-->
  25. <?php get_sidebar(); ?>
  26. <?php get_footer(); ?>
  27. <?php
  28.     $markup = ob_get_contents();
  29.     ob_end_clean();
  30.     $atts = array( "throbber" => "true" );
  31.     echo IX_LL_lazyload( $markup, $atts );
  32. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement