<?php if (have_posts()) : $c = 0; // If posts, setup counter ?>
<?php while (have_posts()) : the_post(); ?>
<?php
// Increment the counter(+1)
$c++;
// If the counter is not a multiple of two, then it's odd, else even
$extra_class = ( $c % 2 != 0 ) ? 'odd' : 'even';
?>
<?php
$format = get_post_format();
if (false === $format) $format = 'standard';
?>
<div id="post-<?php the_ID(); ?>" <?php post_class( $extra_class ) ?>>
<?php if( has_post_format( 'standard' ) ) : ?>
<div class="rounded">
<h2 class="entry-title">
<?php if( has_post_thumbnail() ) : ?>
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( 'title-image', array( 'class' => 'title-image', 'alt' => 'Title Icon' ) ); ?></a>
<?php elseif( get_post_type() == 'col_avs' ) : ?>
<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>
<?php else : ?>
<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>
<?php endif; ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
</h2>
<div class="clear"></div>
<?php if( get_post_type() == 've_products' ) : ?>
<?php
// Let's find out if we have taxonomy information to display
// Something to build our output in
$taxo_text = '';
// Variables to store each of our possible taxonomy lists
// This one checks for a Product Category classification
$prodcat_list = get_the_term_list( $post->ID, 'product_category', '', ', ', '' );
// Add Product Category list if this post was so tagged
if ( '' != $prodcat_list )
$taxo_text .= $prodcat_list;
?>
<div class="entry-meta">
<span class="dateLinks">
This item was listed in <?php echo $taxo_text; ?>
on <a title="<?php the_time('F'); ?>" href="<?php bloginfo('url'); ?>/<?php the_time('Y'); ?>/<?php the_time('m'); ?>"><?php the_time('F'); ?></a>
<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>,
<a title="<?php the_time('Y'); ?>" href="<?php bloginfo('url'); ?>/<?php the_time('Y'); ?>"><?php the_time('Y'); ?></a>
at <?php the_time('g:i a'); ?></span>
</div>
<?php else : ?>
<div class="entry-meta">
Posted by <?php the_author_posts_link(); ?>
under <?php the_category(', '); ?>
on <a title="<?php the_time('F'); ?>" href="<?php bloginfo('url'); ?>/<?php the_time('Y'); ?>/<?php the_time('m'); ?>"><?php the_time('F'); ?></a>
<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>,
<a title="<?php the_time('Y'); ?>" href="<?php bloginfo('url'); ?>/<?php the_time('Y'); ?>"><?php the_time('Y'); ?></a>
at <?php the_time('g:i a'); ?>
</div>
<?php endif; ?>
<div class="entry-content">
<?php if ( has_post_thumbnail() ) : ?>
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( array( 75, 75, true ), array( 'class' => 'post-image', 'alt' => 'Post Thumbnail') ); ?></a>
<?php elseif( get_post_type() == 'col_avs' ) : ?>
<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>
<?php else : ?>
<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>
<?php endif; ?>
<?php if ( is_archive() || is_search() ) : // Display excerpts for archives and search. ?>
<?php the_excerpt(); ?>
<?php elseif( get_post_type() == 've_products' ) : ?>
<?php global $more;
$more = 0;
?>
<?php the_content( __( '<span class="continue">Additional Details » </span>', 'voodoo_lion' ) ); ?>
<?php else : ?>
<?php the_content( __( '<span class="continue">Continue reading this article » </span>', 'voodoo_lion' ) ); ?>
<?php endif; ?>
<?php wp_link_pages( array( 'before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number' ) ); ?>
<div class="clear"></div>
<?php if( get_post_type() == 'col_avs' ) : ?>
<a href="<?php $key="syndication_permalink"; echo get_post_meta($post->ID, $key, true); ?>"><span class="continue">Read the Full Story Here » </span></a>
<div class="clear"></div>
<?php endif; ?>
</div>
<?php if (function_exists('the_powerpress_content') ) : ?>
<?php if( $episode_content = get_the_powerpress_content() ) : ?>
<div class="powerPress">
<fieldset class="episode-box">
<legend>Voodoo Empire Mix</legend>
<?php if(function_exists('the_ratings') ) : ?>
<?php the_ratings(); ?>
<br />
<?php endif; ?>
<?php echo $episode_content; ?>
</fieldset>
</div>
<?php endif; ?>
<?php endif; ?>
<div class="clear"></div>
<?php if(function_exists('sf_blog_linked_tag') ) : ?>
<?php $thisLink = sf_blog_links_control('read', $post->ID);
if(isset( $thisLink ) ) : ?>
<div class="sfLink">
<?php sf_blog_linked_tag($post->ID, true); ?>
</div>
<?php endif; ?>
<?php endif; ?>
<div class="clear"></div>
<hr />
<div class="entry-utility">
<div class="fbConnect">
<?php if(function_exists('sfc_like_button')) : ?>
<?php sfc_like_button(array('layout' => 'button_count')); ?>
<?php endif; ?>
</div>
<div class="twitConnect">
<?php if(function_exists('stc_tweetbutton')) : ?>
<?php stc_tweetbutton(); ?>
<?php endif; ?>
</div>
<div class="clear"></div>
<?php $tags_list = get_the_tag_list( '', ', ' ); ?>
<?php if ( $tags_list ) : ?>
<span class="tag-links">
<span class="entry-tags"><?php _e( 'Tags: ', 'voodoo_lion' ); echo $tags_list; ?></span>
</span>
<br />
<?php endif; ?>
<?php edit_post_link( __( 'Edit', 'voodoo_lion' ), '<span class="edit-link alignright">', '</span>' ); ?>
<span class="comments-link"><?php comments_popup_link( __( '[Add Comments]', 'voodoo_lion' ), __( '[1 Comment]', 'voodoo_lion' ), __( '[% Comments]', 'voodoo_lion' ) ); ?></span>
<div class="clear"></div>
</div>
</div>
<?php else : ?>
<?php get_template_part( 'format', get_post_format() ); ?>
<?php endif; ?>
</div>
<?php endwhile; ?>
<div class="navigation">
<?php if(function_exists('wp_pagenavi')) : ?>
<?php wp_pagenavi(); ?>
<?php else : ?>
<div class="alignleft"><?php next_posts_link(__('« Older Entries')); ?></div>
<div class="alignright"><?php previous_posts_link(__('Newer Entries »')); ?></div>
<?php endif; ?>
</div>
<?php else : ?>
<div class="post" id="post-<?php the_ID(); ?>">
<?php theme_else(); ?>
</div>
<?php endif; ?>