Code Tidy - Pastebin

New     Fork     Embed     View raw     Report

Underscores - php

Embed

You can embed this paste into a blog or website with this code:

<iframe class="codetidy" type="text/html" width="100%" src="http://codetidy.com/paste/embed/2342" frameborder="0"></iframe>

Add comment

Captcha
  1. <?php?
  2.  ?
  3.  ?
  4. get_header(); ?>?
  5.  ?
  6.         <div id="primary" class="site-content">?
  7.             <div class="content" role="main">?
  8.  ?
  9.             <?php if ( have_posts() ) : ?>?
  10.  ?
  11.  ?
  12.                 <?php /* Start the Loop */ ?>?
  13.                 <?php while ( have_posts() ) : the_post(); ?>?
  14.  ?
  15.                     <?php?
  16.                         /* Include the Post-Format-specific template for the content.?
  17.                          * If you want to overload this in a child theme then include a file?
  18.                          * called content-___.php (where ___ is the Post Format name) and that will be used instead.?
  19.                          */?
  20.                         get_template_part( 'content', get_post_format() );?
  21.                     ?>?
  22.  ?
  23.                 <?php endwhile; ?>?
  24.  ?
  25.                 <?php MyTheme_content_nav( 'nav-below' ); ?>?
  26.  ?
  27.             <?php elseif ( current_user_can( 'edit_posts' ) ) : ?>?
  28.  ?
  29.                 <article id="post-0" class="post no-results not-found">?
  30.                     <header class="entry-header">?
  31.                         <h1 class="entry-title"><?php _e( 'No posts to display', 'MyTheme' ); ?></h1>?
  32.                     </header><!-- .entry-header -->?
  33.  ?
  34.                     <div class="entry-content">?
  35.                         <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'MyTheme' ), admin_url( 'post-new.php' ) ); ?></p>?
  36.                     </div><!-- .entry-content -->?
  37.                 </article><!-- #post-0 -->?
  38.  ?
  39.             <?php endif; ?>?
  40.  ?
  41.             </div><!-- #content -->?
  42.         </div><!-- #primary .site-content -->?
  43.  ?
  44. <?php get_sidebar(); ?>?
  45. <?php get_footer(); ?>?
© 2011 Code Tidy