<?php
/**
 * The template for displaying a "No posts found" message
 *
 * @package Krown
 * @subpackage Krown
 * @since Krown 1.0
 */
?>

<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>

<section id="blog" class="section">
	<div class="container">
		<div class="content-blog">
			<div class="blog-item">
				<div class="blog-title">
					<?php 	
					global $tlazya_krwn; 
					if (isset($tlazya_krwn['404_title']) && $tlazya_krwn['404_title'] != '' ) { 
					?>
					<h2><?php echo $tlazya_krwn['404_title']; ?></h2>
					<?php } else { ?>
						<h2><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'krwn' ); ?></h2>
					<?php } ?>
				</div>
				<?php 
				global $tlazya_krwn; 
				if (isset($tlazya_krwn['nologo_url']['url']) && $tlazya_krwn['nologo_url']['url'] != '' )
				{ 
				?>
					<img class="image-404" src="<?php echo $tlazya_krwn['nologo_url']['url']; ?>" alt="404"/>
				<?php 
				} 
				else 
				{
				?>
					<img class="image-404" src="<?php echo get_template_directory_uri(); ?>/img/404.png" alt="404"/>
				<?php
				} 
				?>
				<?php 	
				global $tlazya_krwn; 
				if (isset($tlazya_krwn['title_info']) && $tlazya_krwn['title_info'] != '' ) { 
				?>
					<p class="blog-descript"><?php echo $tlazya_krwn['title_info']; ?></p>
				<?php } else { ?>
					<p class="blog-descript">
						<?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'krwn' ); ?>
					</p>
				<?php } ?>
				
				<?php 	
				global $tlazya_krwn; 
				if (isset($tlazya_krwn['search_switch']) && $tlazya_krwn['search_switch'] == 1 ) { 
				?>
				<div class="blog-info">
					<?php get_search_form(); ?>
				</div>
				<?php } else { ?>
				<!-- Empty -->
				<?php } ?>
				<h3>OR</h3>
				<p>Try with the Top Menu</p>
			</div>
		</div>
	</div>
</section>

<?php elseif ( is_search() ) : ?>

<section id="blog" class="section">
	<div class="container">
		<div class="content-blog">
			<div class="blog-item">
				<div class="blog-title">
					<?php 	
					global $tlazya_krwn; 
					if (isset($tlazya_krwn['404_title']) && $tlazya_krwn['404_title'] != '' ) { 
					?>
					<h2><?php echo $tlazya_krwn['404_title']; ?></h2>
					<?php } else { ?>
						<h2><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'krwn' ); ?></h2>
					<?php } ?>
				</div>
				<?php 
				global $tlazya_krwn; 
				if (isset($tlazya_krwn['nologo_url']['url']) && $tlazya_krwn['nologo_url']['url'] != '' )
				{ 
				?>
					<img class="image-404" src="<?php echo $tlazya_krwn['nologo_url']['url']; ?>" alt="404"/>
				<?php 
				} 
				else 
				{
				?>
					<img class="image-404" src="<?php echo get_template_directory_uri(); ?>/img/404.png" alt="404"/>
				<?php
				} 
				?>
				<?php 	
				global $tlazya_krwn; 
				if (isset($tlazya_krwn['title_info']) && $tlazya_krwn['title_info'] != '' ) { 
				?>
					<p class="blog-descript"><?php echo $tlazya_krwn['title_info']; ?></p>
				<?php } else { ?>
					<p class="blog-descript">
						<?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'krwn' ); ?>
					</p>
				<?php } ?>
				
				<?php 	
				global $tlazya_krwn; 
				if (isset($tlazya_krwn['search_switch']) && $tlazya_krwn['search_switch'] == 1 ) { 
				?>
				<div class="blog-info">
					<?php get_search_form(); ?>
				</div>
				<?php } else { ?>
				<!-- Empty -->
				<?php } ?>
				<h3>OR</h3>
				<p>Try with the Top Menu</p>
			</div>
		</div>
	</div>
</section>

<?php else : ?>

<section id="blog" class="section">
	<div class="container">
		<div class="content-blog">
			<div class="blog-item">
				<div class="blog-title">
					<?php 	
					global $tlazya_krwn; 
					if (isset($tlazya_krwn['404_title']) && $tlazya_krwn['404_title'] != '' ) { 
					?>
					<h2><?php echo $tlazya_krwn['404_title']; ?></h2>
					<?php } else { ?>
						<h2><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'krwn' ); ?></h2>
					<?php } ?>
				</div>
				<?php 
				global $tlazya_krwn; 
				if (isset($tlazya_krwn['nologo_url']['url']) && $tlazya_krwn['nologo_url']['url'] != '' )
				{ 
				?>
					<img class="image-404" src="<?php echo $tlazya_krwn['nologo_url']['url']; ?>" alt="404"/>
				<?php 
				} 
				else 
				{
				?>
					<img class="image-404" src="<?php echo get_template_directory_uri(); ?>/img/404.png" alt="404"/>
				<?php
				} 
				?>
				<?php 	
				global $tlazya_krwn; 
				if (isset($tlazya_krwn['title_info']) && $tlazya_krwn['title_info'] != '' ) { 
				?>
					<p class="blog-descript"><?php echo $tlazya_krwn['title_info']; ?></p>
				<?php } else { ?>
					<p class="blog-descript">
						<?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'krwn' ); ?>
					</p>
				<?php } ?>
				
				<?php 	
				global $tlazya_krwn; 
				if (isset($tlazya_krwn['search_switch']) && $tlazya_krwn['search_switch'] == 1 ) { 
				?>
				<div class="blog-info">
					<?php get_search_form(); ?>
				</div>
				<?php } else { ?>
				<!-- Empty -->
				<?php } ?>
				<h3>OR</h3>
				<p>Try with the Top Menu</p>
			</div>
		</div>
	</div>
</section>

<?php endif; ?>