File: D:/HostingSpaces/ERijn/knijft.eu/wwwroot/wp-content/themes/diverso/loop.php
<?php
global $wp_query, $post, $more, $blog_type;
if ( ! isset( $blog_type ) )
$blog_type = yiw_get_option( 'blog_type' );
$tmp_query = $wp_query;
if (have_posts()) :
$post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h3 class="red-normal"><?php printf(__('Archive for the ‘%s’ Category', 'yiw'), single_cat_title('', false)); ?></h3>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<h3 class="red-normal"><?php printf(__('Posts Tagged ‘%s’', 'yiw'), single_tag_title('', false) ); ?></h3>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h3 class="red-normal"><?php printf(__('Archive for %s | Daily archive page', 'yiw'), get_the_time(__('F jS, Y', 'yiw'))); ?></h3>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h3 class="red-normal"><?php printf(__('Archive for %s | Monthly archive page', 'yiw'), get_the_time(__('F Y', 'yiw'))); ?></h3>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h3 class="red-normal"><?php printf(__('Archive for %s | Yearly archive page', 'yiw'), get_the_time(__('Y', 'yiw'))); ?></h3>
<?php /* If this is a yearly archive */ } elseif (is_search()) { ?>
<h3 class="red-normal"><?php printf( __( 'Search Results for: %s', 'yiw' ), '<span>' . get_search_query() . '</span>' ); ?></h3>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h3 class="red-normal"><?php _e('Author Archive', 'yiw'); ?></h3>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h3 class="red-normal"><?php _e('Blog Archives', 'yiw'); ?></h3>
<?php }
while (have_posts()) : the_post();
if ( !is_single() )
$more = 0;
$title = is_null( the_title( '', '', false ) ) ? __( '(this post has no title)', 'yiw' ) : the_title( '', '', false );
if ( is_single() || is_search() )
$blog_type = 'big';
get_template_part( 'loop-blog', $blog_type );
endwhile;
else : ?>
<div id="post-0" class="post error404 not-found group">
<h1 class="entry-title"><?php _e( 'Not Found', 'yiw' ); ?></h1>
<div class="entry-content">
<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'yiw' ); ?></p>
<?php get_search_form(); ?>
</div><!-- .entry-content -->
</div><!-- #post-0 -->
<?php
endif;
$wp_query = $tmp_query;
wp_reset_postdata();
?>
<?php yiw_pagination(); ?>
<?php comments_template(); ?>