<?php

namespace TotalThemeCore\Vcex\Elementor\Widgets;

use VCEX_Split_Heading_Shortcode as Shortcode;
use TotalThemeCore\Vcex\Elementor;
use TotalThemeCore\Vcex\Elementor\Register_Controls;
use Elementor\Widget_Base;

defined( 'ABSPATH' ) || exit;

class Split_Heading extends Widget_Base {

	public function get_name() {
		return 'vcex_split_heading';
	}

	public function get_title() {
		return Shortcode::get_title();
	}

	public function get_icon() {
		return 'eicon-heading';
	}

	public function get_custom_help_url() {
		// none yet.
	}

	public function get_categories() {
		return [ Elementor::CATEGORY_ID ];
	}

	public function get_keywords() {
		return [ 'heading', 'title' ];
	}

	public function get_script_depends() {
		return [];
	}

	public function get_style_depends() {
		return [];
	}

	protected function register_controls(): void {
		new Register_Controls( $this, Shortcode::get_params() );
	}

	protected function render(): void {
		$atts = $this->get_settings_for_display();
		$atts['is_elementor_widget'] = true;
		echo Shortcode::output( $atts );
	}

}
