* @copyright 2007-2022 Apollotheme * @license http://apollotheme.com - prestashop template provider */ namespace LeoElements; use LeoElements\Core\Files\Assets\Svg\Svg_Handler; use LeoElements\Modules\DynamicTags\Module as TagsModule; use LeoElements\Leo_Helper; if ( ! defined( '_PS_VERSION_' ) ) { exit; // Exit if accessed directly. } /** * Elementor Icons control. * * A base control for creating a Icons chooser control. * Used to select an Icon. * * Usage: @see https://developers.elementor.com/elementor-controls/icons-control * * @since 1.0.0 */ class Control_Icons extends Control_Base_Multiple { /** * Get media control type. * * Retrieve the control type, in this case `media`. * * @access public * @since 1.0.0 * @return string Control type. */ public function get_type() { return 'icons'; } /** * Get Icons control default values. * * Retrieve the default value of the Icons control. Used to return the default * values while initializing the Icons control. * * @access public * @since 1.0.0 * @return array Control default value. */ public function get_default_value() { return [ 'value' => '', 'library' => '', ]; } /** * Render Icons control output in the editor. * * Used to generate the control HTML in the editor using Underscore JS * template. The variables for the class are available using `data` JS * object. * * @since 1.0.0 * @access public */ public function content_template() { ?>