1.     <?php if (have_posts()) : $c = 0; // If posts, setup counter ?>
  2.    
  3.     <?php while (have_posts()) : the_post(); ?>
  4.    
  5.     <?php
  6.     // Increment the counter(+1)
  7.     $c++;
  8.     // If the counter is not a multiple of two, then it's odd, else even
  9.     $extra_class = ( $c % 2 != 0 ) ? 'odd' : 'even';
  10.     ?>
  11.  
  12.     <?php
  13.     $format = get_post_format();
  14.     if (false === $format) $format = 'standard';
  15.     ?>
  16.  
  17.     <div id="post-<?php the_ID(); ?>" <?php post_class( $extra_class ) ?>>
  18.  
  19.     <?php if( has_post_format( 'standard' ) ) : ?>
  20.  
  21.         <div class="rounded">
  22.             <h2 class="entry-title">
  23.                 <?php if( has_post_thumbnail() ) : ?>
  24.                 <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( 'title-image', array( 'class' => 'title-image', 'alt' => 'Title Icon' ) ); ?></a>
  25.  
  26.                 <?php elseif( get_post_type() == 'col_avs' ) : ?>
  27.                 <a href="<?php the_permalink(); ?>"><img class="title-image wp-post-image" src="<?php theme_option( 'hockeytitle_img' );?>" alt="Default Title Icon" title="Default Title Icon" /></a>
  28.                 <?php else : ?>
  29.                 <a href="<?php the_permalink(); ?>"><img class="title-image wp-post-image" src="<?php theme_option( 'title_img' );?>" alt="Default Title Icon" title="Default Title Icon" /></a>
  30.                 <?php endif; ?>
  31.                 <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
  32.             </h2>
  33.             <div class="clear"></div>
  34.  
  35.             <?php if( get_post_type() == 've_products' ) : ?>
  36.  
  37.                 <?php  
  38.                 // Let's find out if we have taxonomy information to display  
  39.                 // Something to build our output in  
  40.                 $taxo_text = '';  
  41.  
  42.                 // Variables to store each of our possible taxonomy lists  
  43.                 // This one checks for a Product Category classification  
  44.                 $prodcat_list = get_the_term_list( $post->ID, 'product_category', '', ', ', '' );
  45.            
  46.                 // Add Product Category list if this post was so tagged  
  47.                 if ( '' != $prodcat_list )  
  48.                 $taxo_text .= $prodcat_list;
  49.                 ?>
  50.  
  51.                 <div class="entry-meta">
  52.                     <span class="dateLinks">
  53.                     This item was listed in <?php echo $taxo_text; ?>
  54.                      on <a title="<?php the_time('F'); ?>" href="<?php bloginfo('url'); ?>/<?php the_time('Y'); ?>/<?php the_time('m'); ?>"><?php the_time('F'); ?></a>
  55.                     <a title="<?php the_time('F'); ?> <?php the_time('jS'); ?>" href="<?php bloginfo('url'); ?>/<?php the_time('Y'); ?>/<?php the_time('m'); ?>/<?php the_time('j'); ?>"><?php the_time('jS'); ?></a>,
  56.                      <a title="<?php the_time('Y'); ?>" href="<?php bloginfo('url'); ?>/<?php the_time('Y'); ?>"><?php the_time('Y'); ?></a>
  57.                      at <?php the_time('g:i a'); ?></span>
  58.                 </div>
  59.  
  60.             <?php else : ?>
  61.  
  62.                 <div class="entry-meta">
  63.                     Posted by <?php the_author_posts_link(); ?>
  64.                      under <?php the_category(', '); ?>
  65.                      on <a title="<?php the_time('F'); ?>" href="<?php bloginfo('url'); ?>/<?php the_time('Y'); ?>/<?php the_time('m'); ?>"><?php the_time('F'); ?></a>
  66.                      <a title="<?php the_time('F'); ?> <?php the_time('jS'); ?>" href="<?php bloginfo('url'); ?>/<?php the_time('Y'); ?>/<?php the_time('m'); ?>/<?php the_time('j'); ?>"><?php the_time('jS'); ?></a>,
  67.                     <a title="<?php the_time('Y'); ?>" href="<?php bloginfo('url'); ?>/<?php the_time('Y'); ?>"><?php the_time('Y'); ?></a>
  68.                 at <?php the_time('g:i a'); ?>
  69.                 </div>
  70.  
  71.             <?php endif; ?>
  72.  
  73.             <div class="entry-content">
  74.                 <?php if ( has_post_thumbnail() ) : ?>
  75.                 <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( array( 75, 75, true ), array( 'class' => 'post-image', 'alt' => 'Post Thumbnail') ); ?></a>
  76.                 <?php elseif( get_post_type() == 'col_avs' ) : ?>
  77.                 <a href="<?php the_permalink(); ?>"><img src="<?php theme_option( 'hockeypost_img' ); ?>" alt="Post Thumbnail - Default" title="Post Thumbnail - Default" class="post-image wp-post-image" /></a>
  78.                 <?php else : ?>
  79.                 <a href="<?php the_permalink(); ?>"><img src="<?php theme_option( 'post_img' ); ?>" alt="Post Thumbnail - Default" title="Post Thumbnail - Default" class="post-image wp-post-image" /></a>
  80.                 <?php endif; ?>
  81.                 <?php if ( is_archive() || is_search() ) : // Display excerpts for archives and search. ?>
  82.                 <?php the_excerpt(); ?>
  83.                 <?php elseif( get_post_type() == 've_products' ) : ?>
  84.                 <?php global $more;
  85.                 $more = 0;
  86.                 ?>
  87.                 <?php the_content( __( '<span class="continue">Additional Details &raquo; </span>', 'voodoo_lion' ) ); ?>
  88.                 <?php else : ?>
  89.                 <?php the_content( __( '<span class="continue">Continue reading this article &raquo; </span>', 'voodoo_lion' ) ); ?>
  90.                 <?php endif; ?>
  91.                 <?php wp_link_pages( array( 'before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number' ) ); ?>
  92.                 <div class="clear"></div>
  93.                 <?php if( get_post_type() == 'col_avs' ) : ?>
  94.                 <a href="<?php $key="syndication_permalink"; echo get_post_meta($post->ID, $key, true); ?>"><span class="continue">Read the Full Story Here &raquo; </span></a>
  95.                 <div class="clear"></div>
  96.                 <?php endif; ?>
  97.             </div>
  98.             <?php if (function_exists('the_powerpress_content') ) : ?>
  99.                 <?php if( $episode_content = get_the_powerpress_content() ) : ?>
  100.                     <div class="powerPress">
  101.                         <fieldset class="episode-box">
  102.                         <legend>Voodoo Empire Mix</legend>
  103.                         <?php if(function_exists('the_ratings') ) : ?>
  104.                             <?php the_ratings(); ?>
  105.                             <br />
  106.                         <?php endif; ?>
  107.                         <?php echo $episode_content; ?>
  108.                         </fieldset>
  109.                     </div>
  110.                 <?php endif; ?>
  111.             <?php endif; ?>
  112.             <div class="clear"></div>
  113.             <?php if(function_exists('sf_blog_linked_tag') ) : ?>
  114.                 <?php $thisLink = sf_blog_links_control('read', $post->ID);
  115.                 if(isset( $thisLink ) ) : ?>
  116.                     <div class="sfLink">
  117.                         <?php sf_blog_linked_tag($post->ID, true); ?>
  118.                     </div>
  119.                 <?php endif; ?>
  120.             <?php endif; ?>
  121.  
  122.             <div class="clear"></div>
  123.             <hr />
  124.             <div class="entry-utility">
  125.                 <div class="fbConnect">
  126.                     <?php if(function_exists('sfc_like_button')) : ?>
  127.                     <?php sfc_like_button(array('layout' => 'button_count')); ?>
  128.                     <?php endif; ?>
  129.                 </div>
  130.                 <div class="twitConnect">
  131.                     <?php if(function_exists('stc_tweetbutton')) : ?>
  132.                     <?php stc_tweetbutton(); ?>
  133.                     <?php endif; ?>
  134.                 </div>
  135.                 <div class="clear"></div>
  136.  
  137.                 <?php $tags_list = get_the_tag_list( '', ', ' ); ?>
  138.                 <?php if ( $tags_list ) : ?>
  139.                 <span class="tag-links">
  140.                     <span class="entry-tags"><?php _e( 'Tags: ', 'voodoo_lion' ); echo $tags_list; ?></span>
  141.                 </span>
  142.                 <br />
  143.                 <?php endif; ?>
  144.                 <?php edit_post_link( __( 'Edit', 'voodoo_lion' ), '<span class="edit-link alignright">', '</span>' ); ?>
  145.                 <span class="comments-link"><?php comments_popup_link( __( '[Add Comments]', 'voodoo_lion' ), __( '[1 Comment]', 'voodoo_lion' ), __( '[% Comments]', 'voodoo_lion' ) ); ?></span>
  146.                 <div class="clear"></div>
  147.             </div>
  148.         </div>
  149.  
  150.     <?php else : ?>
  151.  
  152.     <?php get_template_part( 'format', get_post_format() ); ?>
  153.  
  154.     <?php endif; ?>
  155.  
  156.     </div>
  157.  
  158.     <?php endwhile; ?>
  159.  
  160.     <div class="navigation">
  161.         <?php if(function_exists('wp_pagenavi')) : ?>
  162.             <?php wp_pagenavi(); ?>
  163.         <?php else : ?>
  164.             <div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries')); ?></div>
  165.             <div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;')); ?></div>
  166.         <?php endif; ?>
  167.     </div>
  168.  
  169.     <?php else : ?>
  170.  
  171.     <div class="post" id="post-<?php the_ID(); ?>">
  172.        
  173.         <?php theme_else(); ?>
  174.        
  175.     </div>
  176.  
  177.     <?php endif; ?>