<?php
/**
 * Bricks Fast Login Element.
 *
 * @package automation-web-platform
 */

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

/**
 * WAWP Fast Login Element class.
 */
class WAWP_Bricks_Fast_Login_Element extends \Bricks\Element {
	/**
	 * Element name.
	 *
	 * @var string
	 */
	public $name = 'my-wawp-fast-login';

	/**
	 * Category.
	 *
	 * @var string
	 */
	public $category = 'general';

	/**
	 * Icon.
	 *
	 * @var string
	 */
	public $icon = 'ti-bolt-alt';

	/**
	 * CSS Selector.
	 *
	 * @var string
	 */
	public $css_selector = '.my-wawp-fast-login-wrapper';

	/**
	 * Get label.
	 *
	 * @return string
	 */
	public function get_label() {
		return esc_html__( 'Wawp Fast Login', 'automation-web-platform' );
	}

	/**
	 * Set control groups.
	 */
	public function set_control_groups() {}

	/**
	 * Set controls.
	 */
	public function set_controls() {}

	/**
	 * Render element.
	 */
	public function render() {
		$this->set_attribute( '_root', 'class', 'my-wawp-fast-login-wrapper' );
		echo '<div ' . wp_kses_data( $this->render_attributes( '_root' ) ) . '>';
		echo do_shortcode( '[wawp-fast-login]' );
		echo '</div>';
	}
}
