Guest User

mejora de index

a guest
Sep 16th, 2010
239
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php if (have_posts()) : ?>
  2. <?php $contador = 0; ?>
  3. <?php $postnumber = '1' ?>
  4. <?php while (have_posts()) : the_post(); ?>
  5.  
  6. <div class="post<?php if($postnumber == '1') echo $postnumber; $postnumber++; ?>" id="post-<?php the_ID(); ?>">
  7. <div class="title">
  8. <div class="date"><?php the_time('j') ?><div class="month"><?php the_time('M') ?></div></div>
  9. <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Haz click para leer <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
  10. <p class="author"><?php edit_post_link('Editar', ' | ', ' | '); ?></p>
  11. </div>
  12.  
  13. <div class="entry font-resize">
  14.  
  15. <?php $contador++;
  16. if($contador <= 3)
  17. the_content();
  18. else
  19. the_excerpt();
  20. ?>
  21. </div>
  22. <div class="postmetadata"><div class="comm-num-left"><?php comments_popup_link('Deja un comentario aquí', 'Hay un comentario. Deja el tuyo aquí', 'Hay % comentarios. Deja el tuyo aquí'); ?></div><div class="clear"></div></div>
  23. </div>
  24.  
  25. <?php endwhile; ?>
  26. <div class="backtotop"><a class="scroll" href="#top">Subir</a></div>
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×