File: /storage/v4513/ivenusin/public_html/wp-content/themes/ivenus/search.php
<?php
/**
* The template for displaying search results pages
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
*
* @package WordPress
* @subpackage iVenus
* @since 1.0.0
*/
get_header();
$global_desktop_banner = get_theme_mod( 'ivenus_desktop_banner' );
$global_mobile_banner = get_theme_mod( 'ivenus_mobile_banner' );
?>
<!-- Start Main Banner Area -->
<div class="banner-section no-overlay item-bg3" style="background-image: url('<?php echo $global_desktop_banner; ?>');"></div>
<div class="banner-section no-overlay item-bg3 mobile" style="background-image: url('<?php echo $global_mobile_banner; ?>');"></div>
<!-- EnD Main Banner Area -->
<section>
<div class="container">
<div class="col-sm-12">
<h3 class="title text-uppercase"><?php echo 'Search Result Page'; ?></h3>
</div>
<div class="clearfix"></div>
<div class="cms-section count-2 col-sm-12">
<?php if ( have_posts() ) : ?>
<header class="page-header">
<h1 class="page-title">
<?php _e( 'Search results for:', 'ivenus' ); ?>
<?php echo get_search_query(); ?>
</h1>
</header><!-- .page-header -->
<?php
// Start the Loop.
while ( have_posts() ) :
the_post();
/*
* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php
if ( is_sticky() && is_home() && ! is_paged() ) {
printf( '<span class="sticky-post">%s</span>', _x( 'Featured', 'post', 'ivenus' ) );
}
if ( is_singular() ) :
the_title( '<h1 class="entry-title">', '</h1>' );
else :
the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' );
endif;
?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php
the_content(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'ivenus' ),
array(
'span' => array(
'class' => array(),
),
)
),
get_the_title()
)
);
wp_link_pages(
array(
'before' => '<div class="page-links">' . __( 'Pages:', 'ivenus' ),
'after' => '</div>',
)
);
?>
</div><!-- .entry-content -->
</article><!-- #post-<?php the_ID(); ?> -->
<?php
// End the loop.
endwhile;
else :
echo '<h3 style="text-align:center;">No results found!</h3>';
endif;
?>
</div>
</div>
</section>
<?php get_footer(); ?>