SHARE
TWEET

hilo #64407

23r9i0 Jul 23rd, 2012 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Primera parte
  2.  
  3. <?php if ( have_posts() ) : $count_posts = 0; // declaramos la variable ?>
  4.         <?php twentyeleven_content_nav( 'nav-above' ); ?>
  5.         <?php /* Start the Loop */ ?>
  6.         <?php while ( have_posts() ) : the_post(); $count_posts++; // le decimos que se sume uno cada vez ?>
  7.         <?php get_template_part( 'content', 'init' ); // cambiamos la llamada para usar el personalizado ?>
  8.         <?php endwhile; ?>
  9.         <?php twentyeleven_content_nav( 'nav-below' ); ?>
  10.         <?php else : ?>
  11. // Segunda parte
  12.         <?php global $count_posts;
  13.         if ( /* is_search() */ $count_posts != 1 ) : // Only display Excerpts for Search ?>
  14.         <div class="entry-summary">
  15.         <?php the_excerpt(); ?>
  16.         </div><!-- .entry-summary -->
  17.         <?php else : ?>
  18.         <div class="entry-content">
  19.         <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
  20.         <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
  21.         </div><!-- .entry-content -->
  22.         <?php endif; ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top