<?php
namespace PowerpackElementsLite\Modules\Headings;

use PowerpackElementsLite\Base\Module_Base;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

class Module extends Module_Base {

	public function __construct() {
		parent::__construct();

		add_action( 'elementor/frontend/after_register_styles', [ $this, 'register_styles' ] );
	}

	public function get_name() {
		return 'pp-fancy-heading';
	}

	public function get_widgets() {
		return [
			'Fancy_Heading',
			'Dual_Heading',
		];
	}

	/**
	 * Register styles.
	 *
	 * @return void
	 */
	public function register_styles() {
		wp_register_style(
			'widget-pp-dual-heading',
			$this->get_css_assets_url( 'widget-dual-heading', null, true, true ),
			[],
			POWERPACK_ELEMENTS_LITE_VER
		);

		wp_register_style(
			'widget-pp-fancy-heading',
			$this->get_css_assets_url( 'widget-fancy-heading', null, true, true ),
			[],
			POWERPACK_ELEMENTS_LITE_VER
		);
	}
}
