<?php 
/**
 * Titan search page
**/ 
?>
<?php get_header();
$t1t_category_post_style = get_option('t1t_category_post_style');
$author_show  = get_option('t1t_category_show_author');
$date_show  = get_option('t1t_category_show_date');
?>
<?php $category_post_size = get_option('t1t_category_post_size'); ?>

<div id="main">
	<div id="primary" class="three-parts archive">
		<div class="widget-title">
			<h1>
				<?php echo get_option('t1t_search_translate'); ?>
				"<?php the_search_query() ?>"
			</h1>
		</div>
		<!--widget-title-->
		<?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1; ?>
		<div <?php if ( $t1t_category_post_style == 'style_1' ){echo 'class="blog-category"';}elseif( $t1t_category_post_style == 'style_2' ){echo 'class="t1t-blog-posts-category"';}elseif( $t1t_category_post_style == 'style_3' ){echo 'class="img-featured"';}?>>
			<ul>		
			<?php if (have_posts()) : while (have_posts()) : the_post();?>								
				<li>					
				<?php if ( $t1t_category_post_style == 'style_1' ){	
					category_post_style1($author_show, $date_show);	
					}elseif( $t1t_category_post_style == 'style_2' ){
					category_post_style2($author_show, $date_show);
					}elseif( $t1t_category_post_style == 'style_3' ){
					category_post_style3($author_show, $date_show);	
					}?>			
				</li>
				<?php endwhile; else : ?>
					<div class="widget-title"><?php echo 'Sorry, no posts matched your criteria.'; ?></div>
				<?php endif; wp_reset_query();?>
			</ul>
		</div>
	
		<div class="pagination">
			<?php t1t_pagination(); ?>
		</div>
		<!--pagination-->
	</div>
	<!--primary-->
	<div id="secondary">
		<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Category Sidebar')): endif; ?>
	</div>
	<!--secondary-->
</div>
<!--main-->
<?php get_footer(); ?>