Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <?php global $woo_options; ?>
- <div id="content" class="col-full">
- <div id="main" class="col-left">
- <?php if ( function_exists( 'yoast_breadcrumb' ) ) { yoast_breadcrumb( '<div id="breadcrumb"><p>', '</p></div>' ); } ?>
- <?php
- // Sub featured area
- if ( $woo_options['woo_sub_featured'] == 'true' AND !is_paged() )
- include ( TEMPLATEPATH . '/includes/sub-featured.php' );
- ?>
- <div id="latest"<?php if ( $woo_options['woo_home_two_col'] == 'true' ) echo ' class="two-col"'; ?>>
- <h3 class="section"><?php _e( 'Matérias', 'woothemes' ); ?></h3>
- <?php
- // Exclude featured posts
- global $shownposts;
- if ( get_option( 'woo_exclude' ) != $shownposts AND !is_paged )
- update_option( 'woo_exclude', $shownposts );
- if ( is_paged() )
- $shownposts = get_option( 'woo_exclude' );
- $paged = (get_query_var( 'paged' )) ? get_query_var( 'paged' ) : 1;
- $args = array(
- 'paged'=> $paged,
- 'post__not_in' => $shownposts
- );
- $home_list = WP_Query( $args ); //Pode utilizar o nome que preferir
- ?>
- <?php if ($home_list->have_posts()) : $count = 0; while ($home_list->have_posts()) : $home_list->the_post(); $count++; ?>
- <!-- Post Starts -->
- <div <?php if ( $count == 2 ) { post_class('last'); $count = 0; } else { post_class(); } ?>>
- <?php if ( $woo_options['woo_post_content'] != "content" ) woo_image( 'width='.$woo_options['woo_thumb_w'].'&height='.$woo_options['woo_thumb_h'].'&class=thumbnail '.$woo_options['woo_thumb_align']); ?>
- <?php woo_post_meta(); ?>
- <h2 class="title">" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></h2>
- <div class="entry">
- <?php global $more; $more = 0; ?>
- <?php if ( $woo_options['woo_post_content'] == "content" ) the_content(__( 'Leia mais...', 'woothemes' )); else the_excerpt(); ?>
- </div>
- <div class="fix"></div>
- <div class="post-more">
- <?php if ( $woo_options['woo_post_content'] == "excerpt" ) { ?>
- <span class="read-more">" title="<?php _e( 'Leia matéria completa', 'woothemes' ); ?>"><?php _e( 'Leia mais...', 'woothemes' ); ?></span>
- <?php } ?>
- </div>
- </div><!-- /.post -->
- <?php endwhile; wp_reset_postdata(); else: ?>
- <div class="post">
- <p><?php _e( 'Desculpe, nenhum texto combina com seus critérios.', 'woothemes' ) ?></p>
- </div><!-- /.post -->
- <?php endif; ?>
- <?php if(function_exists('wp_pagenavi')) : wp_pagenavi(array( 'query' => $home_list )); endif; ?>
- </div><!-- /#latest -->
- </div><!-- /#main -->
- <?php get_sidebar(); ?>
- </div><!-- /#content -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement