<?php
/**
 * Template part for displaying a no-content / empty results message.
 *
 * @package Eronex
 * @since 0.0.1
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$image       = eronex_option( 'eronex_no_content_image', ERONEX_URI . 'assets/img/no-content.png' );
$title       = eronex_option( 'eronex_no_content_title', esc_html__( 'Nothing found', 'eronex' ) );
$description = eronex_option( 'eronex_no_content_description', esc_html__( "No results were found for your selection keywords.", 'eronex' ) );
?>
<div class="eronex-no-content">
	<?php if ( ! empty( $image ) ) { ?>
		<figure class="eronex-image">
			<img src="<?php echo esc_url( $image ); ?>" alt="<?php echo esc_attr__( 'No content', 'eronex' ); ?>">
		</figure>
	<?php } ?>
    <h2 class="eronex-title"><?php echo esc_html( $title ); ?></h2>
    <p class="eronex-description"><?php echo esc_html( $description ); ?></p>
</div>
