Current File : /home/bwalansa/www/wp-content/themes/Savia/search.php
  <?php 

get_header(); ?>

<div class="content_bgr">


<?php if(is_archive() || is_search() || is_home()): ?>
	<div class="full_container_page_title">	
		<div class="container animationStart">		
			<div class="row no_bm">
				<div class="sixteen columns">
				    <?php boc_breadcrumbs(); ?>
					<div class="page_heading"><h1><?php echo (is_archive() ? single_cat_title() : (is_search() ? _e('Search results for:', 'Savia').' '. get_search_query(): (is_home() ? wp_title('') :'') ));?></h1></div>
				</div>		
			</div>
		</div>
	</div>
<?php else: ?>
<div class="h10"></div>
<?php endif; ?>



<div class="container animationStart startNow">
	<div class="row blog_list_page">

		<?php 
			// Check where sidebar should be
			$sidebar_left = false; 
			if(ot_get_option('sidebar_layout','right-sidebar')=='left-sidebar'){
				$sidebar_left=true;
			}
			// Place sidebar if it's left
			($sidebar_left ? get_sidebar() : '');
		?>

			<div class="twelve columns">
			
				<?php /*
				<form class="search_form_tpl_form" action="<?php echo home_url(); ?>/" method="get">
					<button class="button_search"></button>
					<input name="s" id="s" type="text" placeholder="<?php echo ($s ? $s : __('Search', 'Savia').'...'); ?>" value="" />
				</form>
				<div class="clear"></div>
				*/?>
			
				<div class="search_res">
				<?php $posts=query_posts($query_string . '&posts_per_page=3'); ?>
				<?php if (have_posts()) : ?>
				<?php while (have_posts()) : the_post(); ?>
					
					<!-- Post Loop Begin -->
					<div class="post_item clearfix">
						
							
			<?php $class_ = "seven columns";	// IF Post type is Standard (false) 	
					if(function_exists( 'get_post_format' ) && get_post_format( $post->ID ) != 'gallery' && get_post_format( $post->ID ) != 'video' && has_post_thumbnail()) { 
						$thumbbig = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'portfolio-slim' );
						$attachment_image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'portfolio-slim');
						
			?>			
						<div class="pic five columns">
							<a href="<?php the_permalink(); ?>" title="<?php echo $post->post_title; ?>">
								<img src="<?php echo $attachment_image[0]; ?>"/><div class="img_overlay_zoom"><span class="icon_plus"></span></div>
							</a>
						</div>
			<?php
 			} else $class_ = "";// IF Post type is Standard :: END ?>
						
							<div class="post_list_right <?php echo $class_;?>">
								<?php if(get_the_title()!=''){ ?>
								<h3 class="post_title"><a href="<?php the_permalink(); ?>" title="<?php printf(esc_attr__('Permalink to %s', 'Savia'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h3>
								<?php } ?>
								
								<div class="post_description clearfix">
								<?php the_content('Read more'); ?>
								</div>
																
								<?php if(get_the_title()==''){ ?>
								<a href="<?php the_permalink(); ?>" class='more-link'><?php _e('Read more','Savia');?></a>
								<?php } ?>								
							</div>
						
					</div>
					<!-- Post Loop End -->
					
				<?php endwhile; ?>
				
				<?php boc_pagination($pages = '', $range = 2); ?>
				<?php else: ?>
				<h3><?php _e('D&eacute;sol&eacute;, mais rien ne correspond &agrave; votre crit&egrave;res de recherche.','Savia'); ?></h3>
				<p><img width="500" height="500" alt="Bwa Lansan" src="/wp-content/chartegraphique/logo-bwa-nb1.png" class="aligncenter"></p>
				<?php endif; // Loop End  ?>
				
				</div>
				
				

			</div>
		
		
		<?php // Place sidebar if it's right
			  (!$sidebar_left ? get_sidebar() : '');?>
		
			
			<div class="h40 clear"></div>
		</div>	
	</div>
	<?php echo do_shortcode("[row_container full_width='yes' dark='yes' padded='no' bgr_url='/bwa/wp-content/chartegraphique/2014/03/poly_bgr_green.jpg' bgr_parallax='yes']<div class='text_box no_mar box_no_bgr'>
					<a class='button button_pale tiny_button' href='/bwa/contact'><div class='shortcode_icon   shortcode_icon_simple'><i class='icon mail'></i></div>Contactez nous !</a>
					<h2>Vous d&eacute;sirez une information, nous donner votre avis, nous laisser un message ?</h2>
				</div>
[/row_container]"); ?>
</div>
<?php get_footer(); ?>