<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$latest_videos = new WP_query(); $latest_videos->query('showposts=5&cat='.$option['video'].'&paged='.$paged); ?><?php if ($latest_videos->have_posts()) : ?><h1 class="header_1">Ultimas Peliculas<ul id="more_in"> <li class="rssimg"><a rel="nofollow" href="<?php print get_category_feed_link($option['video']); ?>">RSS</a></li> <li><a rel="nofollow" href="<?php print get_category_link($option['video']); ?>">Ver todas las peliculas <?php print get_cat_name($option['video']); ?> »</a></li></ul></h1><ul id="latest_videos"><?php global $wp_query; $wp_query->in_the_loop = true; ?><?php while ($latest_videos->have_posts()) : $latest_videos->the_post(); ?> <li> <div class="thumb">
</div>
<div class="entry"> <h2><a rel="nofollow" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <div class="inside"> <ul> <li><b><?php the_time('d M y'); ?> at <?php the_time('G:i'); ?></b></li> <?php if(function_exists('the_views')) { print '<li class="view"><b>'; the_views(); print '</b> Vistas</li>'; } ?> <li class="comment"><a rel="nofollow" href="<?php comments_link(); ?>"><?php comments_number('0 Comentarios', '1 Comentario', '% Comentarios'); ?></a></li><p> <?php if(function_exists('the_ratings')) { print '<li class="rate">'; the_ratings(); print '</li>'; } ?></p> </ul> <?php the_excerpt(); ?> <div class="clear"></div> </div> <div class="author"> <?php echo get_avatar(get_the_author_email(), '30'); ?> Publicada por <?php the_author_posts_link(); ?>. <?php the_tags('<div class="tags">Etiquetada con: ', ', ', '</div>'); ?> </div> </div><div class="clear"></div> </li><?php endwhile; ?></ul><a rel="nofollow" href="<?php print get_category_link($option['video']); ?>" class="browse"><?php print get_cat_name($option['video']); ?> »</a><div class="clear"></div>
<!-- Plugin Navigation -->
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
<div class="clear"></div> <!-- End -->
<?php endif; ?>