Advertisement
Guest User

Untitled

a guest
Nov 10th, 2010
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.66 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <?php $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); ?>
  3. <?php query_posts(array( 'post_type'=>'photogallery', 'location'=>$term->slug)); ?>
  4.  
  5.  
  6. <?php global $woo_options_options; ?>
  7.        
  8.     <!-- #content Starts -->
  9.     <?php woo_content_before(); ?>
  10.     <div id="content" class="col-full">
  11.    
  12.         <div id="main-sidebar-container">    
  13.        
  14.             <!-- #main Starts -->
  15.             <?php woo_main_before(); ?>
  16.             <div id="main" class="col-left">
  17.                
  18.                 <?php woo_loop_before(); ?>
  19.  
  20.             <?php if (have_posts()) : $count = 0; ?>
  21.            
  22.  
  23.                
  24.                 <div class="fix"></div>
  25.                                 <h1><?php printf( __( 'Photogalleries in Category: %s', 'custom-canvas' ), '<span>' . $term->name . '</span>' ); ?></h1><br>
  26.             <strong>Description:</strong><?php echo term_description( '', get_query_var( 'gallerycategories' ) ); ?>
  27.             <?php while (have_posts()) : the_post(); $count++; ?>
  28.                
  29.                                                                        
  30.                 <!-- Post Starts -->
  31.                 <?php woo_post_before(); ?>
  32.                 <div <?php post_class(); ?>>
  33.    
  34.                     <?php woo_post_inside_before(); ?>
  35.  
  36.  
  37.                     <?php woo_image('width='.$woo_options['woo_thumb_w'].'&height='.$woo_options['woo_thumb_h'].'&class=thumbnail '.$woo_options['woo_thumb_align']);  ?>
  38.    
  39.                     <h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
  40.                    
  41.                    
  42.                    
  43.                     <div class="entry">
  44.                        
  45.                         <?php the_excerpt(); ?>
  46.  
  47.                        
  48.                     </div><!-- /.entry -->
  49.                    
  50.                     <?php woo_post_inside_after(); ?>
  51.    
  52.                 </div><!-- /.post -->
  53.                 <?php woo_post_after(); ?>
  54.                
  55.                
  56.             <?php endwhile; else: ?>
  57.                 <div class="post">
  58.                     <p><?php _e('Sorry, no posts matched your criteria.', 'woothemes') ?></p>
  59.                 </div><!-- /.post -->
  60.             <?php endif; ?>  
  61.        
  62.                 <?php woo_pagenav(); ?>
  63.                    
  64.             </div><!-- /#main -->
  65.             <?php woo_main_after(); ?>
  66.    
  67.             <?php get_sidebar(); ?>
  68.    
  69.         </div><!-- /#main-sidebar-container -->        
  70.  
  71.         <?php get_sidebar('alt'); ?>      
  72.  
  73.     </div><!-- /#content -->
  74.     <?php woo_content_after(); ?>
  75.        
  76. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement