Guest User

Untitled

a guest
Oct 21st, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.51 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <?php global $woo_options; ?>
  3.  
  4.     <!-- SLIDER POSTS -->
  5.     <?php
  6.         if ( $woo_options['woo_slider'] == 'true' ) {      
  7.             // Load the slider.
  8.             get_template_part( 'includes/slider' );
  9.         }
  10.     ?>
  11.     <div id="content" class="col-full">
  12.    
  13.  
  14.         <div id="main" class="<?php if ( ! woo_active_sidebar( 'primary' ) ) { echo 'fullwidth'; } else { echo 'col-left'; } ?>">
  15.        
  16. <?php
  17.     /* Begin modification.
  18.     ----------------------------------------*/
  19.  
  20.     woo_loop_before();
  21.  
  22.     // Use a custom query to display posts instead of the page content.
  23.     global $paged, $page;
  24.  
  25.     // Make sure we're on the correct page.
  26.     if ( ( $page > $paged ) ) { $paged = $page; }
  27.  
  28.     // Run the query to get the posts.
  29.    query_posts( "post_type=post&paged=$paged" );
  30.  
  31.     if ( have_posts() ) { $count = 0;
  32.         while ( have_posts() ) { the_post(); $count++;
  33.            <!-- Post Starts -->
  34.              <div <?php post_class( $class ); ?>>
  35.                
  36.                 <?php woo_post_meta(); ?>
  37.                
  38.                 <h2 class="title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
  39.                
  40.                 <?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'] ); } ?>
  41.                
  42.                 <div class="entry">
  43.                     <?php if ( $woo_options['woo_post_content'] == 'content' ) { the_content( __( 'Continue Reading &rarr;', 'woothemes' ) ); } else { the_excerpt(); } ?>
  44.                 </div>
  45.                
  46.                 <div class="post-more">      
  47.                     <?php if ( $woo_options['woo_post_content'] == 'excerpt' ) { ?>
  48.                     <span class="read-more"><a href="<?php the_permalink(); ?>" title="<?php esc_attr_e( 'Read More', 'woothemes' ); ?>"><?php _e( 'Read More', 'woothemes' ); ?></a></span>
  49.                     <span class="comments"><?php comments_popup_link( __( '0 Comments', 'woothemes' ), __( '1 Comment', 'woothemes' ), __( '% Comments', 'woothemes' ) ); ?></span>
  50.                     <div class="fix"></div>
  51.                     <?php } ?>
  52.                 </div>
  53.                                      
  54.             </div><!-- /.post -->
  55.  
  56.             <?php
  57.                 // Recent News Grid and Category Switcher
  58.                 get_template_part( 'includes/recent-news' );
  59.             ?>
  60.          
  61.         </div><!-- /#main -->
  62.  
  63.         <?php get_sidebar(); ?>
  64.  
  65.     </div><!-- /#content -->
  66.        
  67. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment