<?php
/**
 * Button – Style 7
 *
 * Variables available from render():
 *   $settings  – all widget settings array
 *   $btn_text  – sanitised button label (string)
 *   $icon_html – pre-rendered icon HTML string (empty if no icon set)
 *
 * Do NOT call Icons_Manager here — it is already rendered in render()
 * and passed as $icon_html to keep the namespace clean.
 *
 * @package captain-widgets-kit
 * @since   1.2.0
 */

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

// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- pre-escaped in render()
echo $icon_html;

echo '<span class="cw-btn__text">' . wp_kses_post( $btn_text ) . '</span>';
