Advertisement
Guest User

Untitled

a guest
Dec 21st, 2012
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php get_header(); ?>
  2.  
  3. <div id="escaparate">
  4.  
  5.   <div id="destacadas">
  6.    <?php $contador = 0; ?>
  7.    <?php while ( have_posts() ) : the_post(); ?>
  8.    <?php $contador ++; ?>
  9.    <?php if ($contador <= 2) { ?>
  10.    
  11.     <div class="resumen1">
  12.     <?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'homepage-thumb' ); } ?>
  13.     <span class="titulo"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></span>
  14.     <span class="desc"><?php echo excerpt(35); ?></span>
  15.     </div>
  16.     <?php if ($contador == 2) { ?></div><?php } ?>
  17.      
  18.  <?php if ($contador == 2) { ?>
  19.   <div id="viral">
  20.   <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>
  21.   <span class="viraltext">Aprovecha las últimas novedades</span>
  22.   </div></div>
  23.   <?php } ?>
  24.  
  25.     <?php if ($contador == 2) { ?>
  26.   <div class="horizontal"><img src="<?php bloginfo('template_url'); ?>/images/gigas.jpg" width="220" height="90" />
  27.    <script type="text/javascript"><!--
  28.     google_ad_width = 728;
  29.     google_ad_height = 90;
  30.     //-->
  31.     </script>
  32.     <script type="text/javascript"
  33.     src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
  34.     </script>
  35.   </div>
  36.    <div id="cuerpo">
  37.    <div id="contenido-index">
  38.   <?php } ?>
  39.  
  40.  
  41.     <?php }
  42.     elseif ($contador > 2 && $contador < 6) { ?>
  43.  
  44.     <div class="resumen2">
  45.     <?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'homepage-thumb' ); } ?>
  46.     <span class="titulo"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></span>
  47.     <span class="desc"><?php excerpt(40); ?></span>
  48.     </div>
  49.      
  50.     <?php } else { ?>
  51.     <div class="resumen3">
  52.     <?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'home-thumb' ); } ?>
  53.     <span class="titulo"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></span>
  54.     <span class="desc"><?php excerpt(35); ?></span>
  55.     </div>
  56.     <?php } ?>
  57.      
  58.  <?php endwhile; ?>
  59.      
  60.  <?php if (function_exists('wp_corenavi')) wp_corenavi(); ?>
  61.  </div>
  62.      
  63. <?php get_sidebar(); ?>
  64. </div>
  65.      
  66. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement