ACC SHELL

Path : /srv/www/vhosts/laboserv/wp-content/themes/laboserv2020/
File Upload :
Current File : //srv/www/vhosts/laboserv/wp-content/themes/laboserv2020/404.php

<?php
/**
 * The template for displaying 404 pages (not found)
 *
 * @package WordPress
 * @subpackage Laboserv2020
 * @since Laboserv2020 1.0
 */

get_header(); ?>

	<div class="error404-page">
	<div class="breadcrumbs">
	<div class="content">
	<ul>
	<li><a href="<?php echo esc_url( home_url( '/' ) ); ?>">Hlavní stránka</a></li>	
	<li>Stránka nebyla nalezena</li>
	</ul>
	</div><!-- .content END -->
	</div><!-- .breadcrumbs END -->
	
	<article class="error404">
	<div class="content">
	<header>
	<img src="<?php echo get_template_directory_uri(); ?>/images/not-found.png" alt="Omlouváme se, ale stránka nebyla nalezena." class="not-found" />
	<h1>Omlouváme se, ale stránka nebyla nalezena.</h1>
	</header>
	<div class="post-content">
	<?php get_search_form(); ?>
	</div>
	</div><!-- .content END -->
	</article><!-- .error404 END -->
	</div><!-- .error404-page END -->
	
	
	

	
	<div class="textarea">
		<div class="content">
		
		<section class="news-posts">
			<h1>Aktuálně</h1>
			
			<?php
				$args = array(
					'post_type'			=> 'post',
					'posts_per_page'   	=> 5,
					'category__not_in'	=> array( 14 )
				);
				
				// Create the new query
				$news_posts = new WP_Query( $args );
		
				// vypis produktu
				while ( $news_posts->have_posts() )
				{
					$news_posts->the_post();
					global $post;
					$postID = $post->ID;
					echo '<article class="news-post">';
					
					echo '<h1><a href="'.get_the_permalink( $postID ).'">'.get_the_title( $postID ).'</a></h1>';
					
					echo '<p class="excerpt">'.get_the_excerpt( $postID ).'</p>';
					
					$categories = get_the_category( $postID );
					//print_r( $categories );
					echo '<footer><span class="date">'.get_the_date( 'j. F Y', $postID ).'</span>&nbsp;&nbsp;&bull;';
					
					foreach( $categories as $cat )
					{
						echo '&nbsp;&nbsp;<a href="'.get_category_link( $cat ).'" class="category">'.strtolower( $cat->name ).'</a>';	
					}
					
					echo '</footer>';					
					echo '</article>';					
				}				
			?>
			<a href="" class="more-news">archiv aktualit</a>
		</section><!-- .news-posts END -->
		
		<section class="about-company">
		<div class="text">
		<?php 
		if ( is_active_sidebar( 'about-company' ) ) 
		{
			dynamic_sidebar( 'about-company' );			
		}
		?>
		</div><!-- .text END -->
		<h1>Kontakt</h1>
		<h2>Kde nás najdete?</h2>
		<div class="left-side">
		<img src="<?php echo get_template_directory_uri(); ?>/images/fotografie-sidla.jpg" alt="fotografie sídla Laboserv s.r.o." class="photo" />
		<span class="iso">
		<img src="<?php echo get_template_directory_uri(); ?>/images/iso-icon.png" alt="ISO ikona"  />
		<p>ISO 9001 a 14001<br/>
		certifikovaná<br/>
		společnost</p>
		</span>
		</div><!-- .left-side END -->
		<div class="right-side">
		<article class="address">
		<?php 
		if ( is_active_sidebar( 'company-address' ) ) 
		{
			dynamic_sidebar( 'company-address' );			
		}
		?>
		</article>
		<a href="" class="link-button">identifikace společnosti</a><br/>
		<a href="" class="link-button">kariéra u nás</a>
		</div><!-- .right-side END -->
		</section>
		
		</div><!-- .content END -->
	</div><!-- #textarea END -->	
	
	
<?php //get_sidebar(); 
?>
<?php get_footer(); ?>

ACC SHELL 2018