File: D:/HostingSpaces/KLeeuwen/old.samenbouwen.in/wwwroot/wp-content/themes/dlight/search.php
<?php
/**
* @package WordPress
* @subpackage DLight Theme
* @author Shindiri Studio (http://www.shindiristudio.com) & http://www.mihajlovicnenad.com/
*/
get_header();
global $darkone_data, $darkone_post_counter;
$darkone_post_counter = 0;
if ( $darkone_data['sidebar-blog'] == 1 ) {
switch ($darkone_data['sidebar-size']):
case '3' :
$blog_class = 'fbuilder_column fbuilder_column-2-3 darkone_hidden_flow margin-bottom36';
$sidebar_class = 'sidebar_wrapper fbuilder_column fbuilder_column-1-3 margin-bottom36';
break;
case '4' :
$blog_class = 'fbuilder_column fbuilder_column-3-4 darkone_hidden_flow margin-bottom36';
$sidebar_class = 'sidebar_wrapper fbuilder_column fbuilder_column-1-4';
break;
case '5' :
$blog_class = 'fbuilder_column fbuilder_column-4-5 darkone_hidden_flow margin-bottom36';
$sidebar_class = 'sidebar_wrapper fbuilder_column fbuilder_column-1-5';
break;
endswitch;
}
else {
$blog_class = 'fbuilder_column fbuilder_column-1-1';
}
?>
<div id="darkone_content" class="darkone_container">
<div class="anivia_row fbuilder_row">
<div>
<?php if ( $darkone_data['sidebar-blog'] == 1 && $darkone_data['sidebar-position'] == 1 ) : ?>
<div class="<?php echo $sidebar_class; ?>">
<?php dynamic_sidebar( 'sidebar-blog' ); ?>
</div>
<?php endif; ?>
<div id="content" class="<?php echo $blog_class; ?>">
<?php if ( have_posts() ) : ?>
<?php if ( get_query_var('paged') ) { $paged = get_query_var('paged'); } elseif ( get_query_var('page') ) { $paged = get_query_var('page'); } else { $paged = 1; } ?>
<?php
global $wp_query;
$number_of_posts = $wp_query -> found_posts;
$header = '<span>' . __('Search', 'darkone').'</span> '.__('results for', 'darkone') . ' ' . get_search_query() .' / ' . $number_of_posts . __( ' post/s found', 'darkone' );
echo '<h2 class="uppercase margin-bottom36">' . $header . '</h2>';
?>
<div class="darkone_blog anivia_row fbuilder_row">
<div>
<?php
while ( have_posts() ) : the_post();
$darkone_post_counter++;
get_template_part( 'darkone_content' );
endwhile;
?>
</div>
</div>
<div class="clearfix"></div>
<?php
echo darkone_pagination($wp_query->max_num_pages, $paged, 2, 'no');
?>
<?php
else :
?>
<h2 class="uppercase margin-bottom36"><?php echo __('No results for ','darkone') . '<span>' . get_search_query() . '</span> / ' . __('0 Posts Found'); ?></h2>
<?php
endif;
?>
</div>
<?php if ( $darkone_data['sidebar-blog'] == 1 && $darkone_data['sidebar-position'] == 0 ) : ?>
<div class="<?php echo $sidebar_class; ?>">
<?php dynamic_sidebar( 'sidebar-blog' ); ?>
</div>
<?php endif; ?>
</div>
</div>
</div>
<?php get_footer(); ?>