<?php
if (! defined('ABSPATH')) {
    die;
} // Cannot access directly.
/**
 * Chat Whatsapp Pro Agent Message.
 *
 * @package    chat-help
 * @subpackage chat-help/src/Frontend
 */

use ThemeAtelier\ChatHelp\Frontend\Helpers\Helpers;

?>
<div class="wHelp__popup--header 
    <?php echo $header_content_position === 'center' ? 'header-center' : ''; ?>"
    style="--color-primary: <?php echo esc_attr($primary); ?>;--color-secondary: <?php echo esc_attr($secondary); ?>;">
    <?php include Helpers::chat_help_locate_template('items/thumbnail.php'); ?>
    <div class="info">
        <?php if ($agent_name) : ?>
            <div class="info__name"><?php echo esc_html($agent_name); ?></div>
        <?php endif;
        if ($agent_subtitle || $offline_agent_subtitle) : ?>
            <div class="info__title" data-online="<?php echo esc_attr($agent_subtitle); ?>"
                data-offline="<?php echo esc_attr($offline_agent_subtitle); ?>"><?php echo esc_html($agent_subtitle); ?></div>
        <?php endif; ?>
    </div>
</div>