<?php get_header();?>
            <div id="main">
            	<div id="mainContent">
					<div class="singlePost">
                    	<?php
                          $post_type = 'videos';
                        // Get all the taxonomies for this post type
                        $taxonomies = get_object_taxonomies( (object) array( 'post_type' => $post_type ) );
                            // Gets every "category" (term) in this taxonomy to get the respective posts
                            $terms = get_terms( $taxonomy->name );
                          query_posts(array (
                            'post_type'=> "videos",
                            'paged' => get_query_var( 'paged' ),
                            'taxonomy' => $taxonomy ,
                            'term' => $term,
                            )); ?>
       					<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
                    	<div class="article mainBorder">
                        	<div class="articleDetails">
                            	<div class="articleTitle">
                                     <a href="<?php the_permalink();?>"><h1><?php the_title(); ?></h1></a>
                                </div><!--End articleTitle-->
                                <?php require Lioit_TM . '/video.meta.php';?>
                            </div><!--End Article Details-->
                            <div class="articleContent">
                            	<div class="articlePostThumb ThumbCover">
                                <div class="cover" style="top: 100%;">
                                            <a class="postype" href="<?php the_permalink(); ?>"></a>
                                            <a class="detail" href="<?php the_permalink(); ?>" title="View detail"></a>										
                                        </div>
                                    <?php $img = catch_that_image($post->ID); ?>
                                    <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>">
                                    <img src="<?php echo Lioit_URI; ?>/scripts/timthumb.php?src=<?php echo $img ?>&amp;w=200&amp;h=150&amp;zc=1" alt="<?php the_title(); ?>" />
                                    </a>
                                </div><!--End LatestPostThumb-->
                            	<p><?php the_excerpt_max_charlength(''); ?> ...</p>
                            </div><!--End ArticleContent-->
                            <div class="articleBtm">
                            	<?php require Lioit_TM . '/share.php';?>
                                <div class="articleReadMore">
                                	<a href="<?php the_permalink();?>"><?php _e('Read More' , 'lioit' ) ?></a>
                                </div><!--End More-->
                            </div><!--End Article Bottom-->
                        </div><!--End article-->
                        <?php endwhile; ?>
						<?php  else:  ?>
                        <?php  endif; ?>
                        <?php lio_pagination(); ?>
                    </div><!--End ContentBox-->
                </div><!--End Main Content-->
                <div id="sidebar">
                    <div id="mainWidgets">
                        <?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('Videos')){ }else { ?>
                            <p class="noside"><?php _e('There Is No Sidebar Widgets Yet', 'lioit'); ?></p>
                        <?php } ?>
                    </div><!--End Main Widgets-->
                </div><!--End Sidebar-->
            </div><!--End Main-->
        </div><!--End Content-->
<?php get_footer();?>
