Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <div id="escaparate">
- <div id="destacadas">
- <?php $contador = 0; ?>
- <?php while ( have_posts() ) : the_post(); ?>
- <?php $contador ++; ?>
- <?php if ($contador <= 2) { ?>
- <div class="resumen1">
- <?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'homepage-thumb' ); } ?>
- <span class="titulo"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></span>
- <span class="desc"><?php echo excerpt(35); ?></span>
- </div>
- <?php if ($contador == 2) { ?></div><?php } ?>
- <?php if ($contador == 2) { ?>
- <div id="viral">
- <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>
- <span class="viraltext">Aprovecha las últimas novedades</span>
- </div></div>
- <?php } ?>
- <?php if ($contador == 2) { ?>
- <div class="horizontal"><img src="<?php bloginfo('template_url'); ?>/images/gigas.jpg" width="220" height="90" />
- <script type="text/javascript"><!--
- google_ad_width = 728;
- google_ad_height = 90;
- //-->
- </script>
- <script type="text/javascript"
- src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
- </script>
- </div>
- <div id="cuerpo">
- <div id="contenido-index">
- <?php } ?>
- <?php }
- elseif ($contador > 2 && $contador < 6) { ?>
- <div class="resumen2">
- <?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'homepage-thumb' ); } ?>
- <span class="titulo"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></span>
- <span class="desc"><?php excerpt(40); ?></span>
- </div>
- <?php } else { ?>
- <div class="resumen3">
- <?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'home-thumb' ); } ?>
- <span class="titulo"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></span>
- <span class="desc"><?php excerpt(35); ?></span>
- </div>
- <?php } ?>
- <?php endwhile; ?>
- <?php if (function_exists('wp_corenavi')) wp_corenavi(); ?>
- </div>
- <?php get_sidebar(); ?>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement