<?php
/**
 * SiteOrigin template for RSM Button widget.
 *
 * @package Rsmspark_Content_Widgets
 *
 * @var string $html Rendered button HTML.
 */

defined( 'ABSPATH' ) || exit;

if ( '' !== trim( (string) $html ) ) {
	echo wp_kses_post( (string) $html );
	return;
}

if ( ! class_exists( 'Rsmspark_Content_Widgets_Widget_Buttons', false ) ) {
	require_once RSMSPARK_CONTENT_WIDGETS_PATH . 'includes/widgets/class-rsmspark-content-widgets-widget-buttons.php';
}

$instance = isset( $instance ) && is_array( $instance ) ? $instance : array();
echo wp_kses_post( (string) Rsmspark_Content_Widgets_Widget_Buttons::render_instance( $instance, true ) );
