53 lines
1.1 KiB
PHP
53 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* The template for displaying search results pages
|
|
*
|
|
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
|
|
*
|
|
* @package Oficina_de_Suport_de_Xarxaprod
|
|
*/
|
|
|
|
get_header();
|
|
?>
|
|
|
|
<section id="primary">
|
|
<main id="main">
|
|
|
|
<?php if ( have_posts() ) : ?>
|
|
|
|
<header class="page-header">
|
|
<?php
|
|
printf(
|
|
/* translators: 1: search result title. 2: search term. */
|
|
'<h1 class="page-title">%1$s <span>%2$s</span></h1>',
|
|
esc_html__( 'Search results for:', 'ofisuport' ),
|
|
get_search_query()
|
|
);
|
|
?>
|
|
</header><!-- .page-header -->
|
|
|
|
<?php
|
|
// Start the Loop.
|
|
while ( have_posts() ) :
|
|
the_post();
|
|
get_template_part( 'template-parts/content/content', 'excerpt' );
|
|
|
|
// End the loop.
|
|
endwhile;
|
|
|
|
// Previous/next page navigation.
|
|
ofsupxxp_the_posts_navigation();
|
|
|
|
else :
|
|
|
|
// If no content, include the "No posts found" template.
|
|
get_template_part( 'template-parts/content/content', 'none' );
|
|
|
|
endif;
|
|
?>
|
|
</main><!-- #main -->
|
|
</section><!-- #primary -->
|
|
|
|
<?php
|
|
get_footer();
|