69 lines
2.2 KiB
PHP
69 lines
2.2 KiB
PHP
<?php get_header(); ?>
|
|
|
|
|
|
|
|
|
|
<?php if ( have_posts() ) : ?>
|
|
<div class="page-heading">
|
|
<div class="page-heading__inner">
|
|
<div class="container">
|
|
|
|
<h2 class="page-heading__title page-heading__post-title">
|
|
<?php
|
|
printf(
|
|
esc_html__( 'Keresési eredmény: %s', 'your-text-domain' ),
|
|
'<span>' . get_search_query() . '</span>'
|
|
);
|
|
?>
|
|
</h2>
|
|
</div>
|
|
</div>
|
|
</div><!-- page-heading__inner -->
|
|
<main class="site-content">
|
|
<div class="section-content">
|
|
<div class="container">
|
|
<div class="box box-outline">
|
|
<div class="content">
|
|
<?php
|
|
// Start the Loop
|
|
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' );
|
|
|
|
endwhile;
|
|
|
|
// Previous/next page navigation.
|
|
the_posts_navigation();
|
|
?>
|
|
|
|
</div></div></div>
|
|
<?php
|
|
else :
|
|
?>
|
|
|
|
<main class="site-content">
|
|
<div class="section-content">
|
|
<div class="container">
|
|
<div class="box box-outline">
|
|
<div class="content">
|
|
<h2 class="page-heading__title page-heading__post-title"><?php esc_html_e( 'Nem található', 'your-text-domain' ); ?></h2>
|
|
</header><!-- .page-header -->
|
|
|
|
<div class="page-content">
|
|
<p><?php esc_html_e( 'Elnézést, a keresett szó nem található. Kérlek próbálj egy másik szóra keresni.', 'your-text-domain' ); ?></p>
|
|
<?php get_search_form(); ?>
|
|
</div><!-- .page-content -->
|
|
</section><!-- .no-results -->
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
</main>
|
|
|
|
<?php get_footer(); ?>
|