Advertisement
Guest User

Untitled

a guest
Dec 21st, 2012
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /*
  3. *
  4. * Esta versión tiene las siguientes modificaciones:
  5. * Viral y horizontal se muestran después de la 2 caja resumen1
  6. * Las cajas cuerpo y contenido-index sólo pueden ejecutarse una
  7. * vez dentro del bucle while a continuación de horizontal
  8. *
  9. */
  10. ?>
  11.  
  12. <?php get_header(); ?>
  13.  
  14. <div id="escaparate">
  15.  
  16. <div id="destacadas">
  17.  <?php $contador = 0; ?>
  18.  <?php while ( have_posts() ) : the_post(); ?>
  19.  <?php $contador ++; ?>
  20.  <?php if ($contador <= 2) { ?>
  21.  <div class="resumen1">
  22.  <?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'homepage-thumb' ); } ?>
  23.  <span class="titulo"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></span>
  24.  <span class="desc"><?php echo excerpt(35); ?></span>
  25.  </div>
  26. </div>
  27.  
  28.   <?php if ($contador == 2) { ?>
  29.   <div id="viral">
  30.   <script type="text/javascript" src="http://videos.goviral-content.com/playerjs-yt/movistar_12938.js?w=400&h=300&pID=60113&bgc=ffffff&cw=1453177&skinName=light&wmode=window&hideChrome=0"></script>
  31.   <span class="viraltext">Aprovecha las últimas novedades</span>
  32.   </div>
  33.   <?php } ?>
  34.  </div>
  35.  
  36.   <?php if ($contador == 2) { ?>
  37.   <div class="horizontal"><img src="<?php bloginfo('template_url'); ?>/images/gigas.jpg" width="220" height="90" />
  38.  
  39.   <script type="text/javascript"><!--
  40.    google_ad_width = 728;
  41.    google_ad_height = 90;
  42.    //-->
  43.    </script>
  44.    <script type="text/javascript"
  45.    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
  46.    </script>
  47.   </div>
  48.   <?php } ?>
  49.  
  50.  
  51.  <?php } ?>
  52.    
  53.   <div id="cuerpo">
  54.   <div id="contenido-index">
  55.    
  56.  <?php if ($contador > 2 && $contador < 6) { ?>
  57.   <div class="resumen2">
  58.   <?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'homepage-thumb' ); } ?>
  59.   <span class="titulo"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></span>
  60.   <span class="desc"><?php echo excerpt(40); ?></span>
  61.   </div>
  62.  <?php } ?>
  63.  
  64.  <?php if ($contador > 5) { ?>
  65.   <div class="resumen3">
  66.   <?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'home-thumb' ); } ?>
  67.   <span class="titulo"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></span>
  68.   <span class="desc"><?php echo excerpt(35); ?></span>
  69.   </div>
  70.  <?php } ?>
  71.      
  72.  <?php endwhile; ?>
  73.      
  74.  <?php if (function_exists('wp_corenavi')) wp_corenavi(); ?>
  75.  </div>
  76.      
  77. <?php get_sidebar(); ?>
  78. </div>
  79.      
  80. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement