File: D:/HostingSpaces/KLeeuwen/samenbouwen.in/wwwroot/wp-content/themes/dlight/archive.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; ?>
<?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; } ?>
<div id="content" class="<?php echo $blog_class; ?>">
<?php
global $wp_query;
$number_of_posts = $wp_query -> found_posts;
if ( is_category() ) :
$header = '<span>' . single_cat_title( '', false ) . '</span>' . ' / ' . $number_of_posts . __( ' posts found', 'darkone' );
elseif ( is_tag() ) :
$header = '<span>' . single_tag_title( '', false ) . '</span>' . ' / ' . $number_of_posts . __( ' posts found', 'darkone' );
elseif ( is_day() ) :
$header = '<span>' . get_the_date() . '</span>' . ' / ' . $number_of_posts . __( ' posts found', 'darkone' );
elseif ( is_month() ) :
$header = '<span>' . get_the_date( 'F Y' ) . '</span>' . ' / ' . $number_of_posts . __( ' posts found', 'darkone' );
elseif ( is_year() ) :
$header = '<span>' . get_the_date( 'Y' ) . '</span>' . ' / ' . $number_of_posts . __( ' posts found', 'darkone' );
else :
$format = get_post_format();
if ( false === $format ) {
$format = 'standard';
}
$header = '<span>' . $format . '</span>' . ' / ' . $number_of_posts . __( ' post/s found', 'darkone' );
endif;
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');
?>
</div>
<?php
else :
_e('No posts','darkone');
endif;
?>
<?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(); ?>