Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <?php global $woo_options; ?>
- <!-- SLIDER POSTS -->
- <?php
- if ( $woo_options['woo_slider'] == 'true' ) {
- // Load the slider.
- get_template_part( 'includes/slider' );
- }
- ?>
- <div id="content" class="col-full">
- <div id="main" class="<?php if ( ! woo_active_sidebar( 'primary' ) ) { echo 'fullwidth'; } else { echo 'col-left'; } ?>">
- <?php
- /* Begin modification.
- ----------------------------------------*/
- woo_loop_before();
- // Use a custom query to display posts instead of the page content.
- global $paged, $page;
- // Make sure we're on the correct page.
- if ( ( $page > $paged ) ) { $paged = $page; }
- // Run the query to get the posts.
- query_posts( "post_type=post&paged=$paged" );
- if ( have_posts() ) { $count = 0;
- while ( have_posts() ) { the_post(); $count++;
- <!-- Post Starts -->
- <div <?php post_class( $class ); ?>>
- <?php woo_post_meta(); ?>
- <h2 class="title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
- <?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'] ); } ?>
- <div class="entry">
- <?php if ( $woo_options['woo_post_content'] == 'content' ) { the_content( __( 'Continue Reading →', 'woothemes' ) ); } else { the_excerpt(); } ?>
- </div>
- <div class="post-more">
- <?php if ( $woo_options['woo_post_content'] == 'excerpt' ) { ?>
- <span class="read-more"><a href="<?php the_permalink(); ?>" title="<?php esc_attr_e( 'Read More', 'woothemes' ); ?>"><?php _e( 'Read More', 'woothemes' ); ?></a></span>
- <span class="comments"><?php comments_popup_link( __( '0 Comments', 'woothemes' ), __( '1 Comment', 'woothemes' ), __( '% Comments', 'woothemes' ) ); ?></span>
- <div class="fix"></div>
- <?php } ?>
- </div>
- </div><!-- /.post -->
- <?php
- // Recent News Grid and Category Switcher
- get_template_part( 'includes/recent-news' );
- ?>
- </div><!-- /#main -->
- <?php get_sidebar(); ?>
- </div><!-- /#content -->
- <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment