<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
?>
<?php get_header(); ?>
<?php
if(has_header_image()){
$slide = get_header_image();
echo '<div class="page-hero" style="background-image: url('. $slide .');"></div>';
}
?>
<div class="pagina articolo corp ">
<div class="contenuto pt-60 pb-60">
<h1 class="main-title">
<?php
printf( // WPCS: XSS ok.
/* translators: 1: Search query name */
__( 'Risultati di ricerca per: %s', 'bahamas' ),
'<span>' . get_search_query() . '</span>'
);
?>
</h1>
<?php if ( have_posts() ) : ?>
<div class="servizi row">
<?php while ( have_posts() ) : the_post(); ?>
<article class="item col-4 col-md-4 col-sm-6">
<div class="image">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail( 'thumbnail', array( 'alt' => get_the_title() ) );?></a>
</div>
<div class="text">
<h3 class="tit"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
<div class="intro"><?php the_excerpt(); ?></div>
<a class="btn" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php esc_html_e( 'Scopri di più', 'bahamas' ); ?></a>
</div>
</article>
<?php endwhile; ?>
</div> <!-- Blog -->
<!-- Add the pagination functions here. -->
<?php echo '<div class="pagination">' . paginate_links() . '</div>'; ?>
<?php else: ?>
<p><?php _e( 'Spiacenti, ma niente corrisponde ai tuoi termini di ricerca. Riprova con alcune parole chiave diverse.', 'bahamas' ); // WPCS: XSS OK. ?></p>
<?php get_search_form(); ?>
<?php endif; ?>
</div>
</div>
<?php get_footer(); ?>
All system for education purposes only. For more tools: Telegram @jackleet