ACC SHELL
<?php
/**
* The template for displaying search results pages
*
* @package WordPress
* @subpackage Laboserv2020
* @since Laboserv2020 1.0
*/
get_header(); ?>
<div class="search-page">
<div class="breadcrumbs">
<div class="content">
<ul>
<li><a href="<?php echo esc_url( home_url( '/' ) ); ?>">Hlavní stránka</a></li>
<li>Výsledky hledání pro: <strong><?php echo esc_html( get_search_query() ); ?></strong></li>
</ul>
</div><!-- .content END -->
</div><!-- .breadcrumbs END -->
<article class="search">
<div class="content">
<header>
<?php
if ( have_posts() )
{
echo '<h1>Výsledky hledání pro: '.esc_html( get_search_query() ).'</h1>';
}
else
{
echo '<h1>Nic nenalezeno.</h1>';
echo '<h2>Omlouváme se, ale zadaný výraz nebyl na webu nalezen.<br/>Zkuste prosím hledat znovu nějaké jiné klíčové slovo.</h2>';
}
get_search_form();
?>
</header>
<div class="post-content">
<?php
while ( have_posts() ) :
the_post();
/**
* Run the loop for the search to output the results.
* If you want to overload this in a child theme then include a file
* called content-search.php and that will be used instead.
*/
get_template_part( 'template-parts/content', 'search' );
// End the loop.
endwhile;
// Previous/next page navigation.
the_posts_pagination(
array(
'prev_text' => __( 'Previous page', 'twentysixteen' ),
'next_text' => __( 'Next page', 'twentysixteen' ),
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>',
)
);
?>
</div><!-- .post-content END -->
</div><!-- .content END -->
</article><!-- .search END -->
</div><!-- .search-page END -->
<?php //get_sidebar();
get_template_part( 'supfooter' ); ?>
<?php get_footer(); ?>
ACC SHELL 2018