PluginProbe ʕ •ᴥ•ʔ
ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elementor / 4.0.1
ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elementor v4.0.1
4.0.2 4.0.1 4.0.0 3.10.02 3.10.01 3.9.10 3.9.9 3.9.8 3.9.7 3.9.5 3.9.6 3.9.3 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.3.0 2.3.1 2.3.1.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.4.0 2.5.0 2.5.1 2.5.10 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.5.8 2.5.9 2.6.0 2.6.1 2.6.2 2.6.3 2.7.0 2.7.2 2.7.3 2.7.4 2.7.5 2.8.0 2.8.1 2.8.5 2.8.6 2.8.7 2.8.8 2.9.0 2.9.1 2.9.2 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.4.7 3.4.8 3.4.9 3.5.0 3.5.1 3.5.2 3.5.3 3.5.4 3.5.5 3.5.6 3.6.0 3.6.1 3.7.0 3.7.1 3.7.2 3.7.3 3.7.4 3.7.5 3.7.6 3.7.7 3.7.8 3.7.9 3.8.0 3.8.1 3.8.2 3.9.0 3.9.1 3.9.2 trunk 1.2.6 1.2.7 1.2.9 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.7 1.4.8 1.4.9 1.5.0 1.5.1 1.5.10 1.5.11 1.5.12 1.5.2 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.0.9.1 2.0.9.2 2.0.9.3
elementskit-lite / modules / controls / widget-area.php
elementskit-lite / modules / controls Last commit date
assets 3 weeks ago ajax-select2-api.php 3 weeks ago ajax-select2.php 2 years ago control-manager.php 4 years ago image-choose.php 2 years ago init.php 4 years ago widget-area-modal.php 3 years ago widget-area-utils.php 6 months ago widget-area.php 2 years ago
widget-area.php
83 lines
1 <?php
2 namespace ElementsKit_Lite\Modules\Controls;
3
4 defined( 'ABSPATH' ) || exit;
5
6 class Widget_Area extends \Elementor\Base_Data_Control {
7 /**
8 * Get choose control type.
9 *
10 * Retrieve the control type, in this case `choose`.
11 *
12 * @since 1.0.0
13 * @access public
14 *
15 * @return string Control type.
16 */
17 public function get_type() {
18 return 'widgetarea';
19 }
20
21 /**
22 * Enqueue ontrol scripts and styles.
23 *
24 * @since 1.0.0
25 * @access public
26 */
27 public function enqueue() {
28 // Define script dependencies if needed.
29 $dependencies = array('jquery'); // Replace 'jquery' with the appropriate dependency.
30 // styles
31 wp_register_style( 'elementskit-css-widgetarea-control-inspactor', Init::get_url() . 'assets/css/widgetarea-inspactor.css', array(), '1.0.0' );
32 wp_enqueue_style( 'elementskit-css-widgetarea-control-inspactor' );
33
34 // script
35 wp_register_script( 'elementskit-js-widgetarea-control-inspactor', Init::get_url() . 'assets/js/widgetarea-inspactor.js', $dependencies, '1.0.0', true );
36 wp_enqueue_script( 'elementskit-js-widgetarea-control-inspactor' );
37 }
38
39
40 /**
41 * Render choose control output in the editor.
42 *
43 * Used to generate the control HTML in the editor using Underscore JS
44 * template. The variables for the class are available using `data` JS
45 * object.
46 *
47 * @since 1.0.0
48 * @access public
49 */
50 public function content_template() {
51 $control_uid = $this->get_control_uid();
52 ?>
53 <div style="display:none" class="elementor-control-field">
54 <label for="<?php echo esc_attr( $control_uid ); ?>" class="elementor-control-title">{{{ data.label }}}</label>
55 <div class="elementor-control-input-wrapper">
56 <input id="<?php echo esc_attr( $control_uid ); ?>" type="text" data-setting="{{ data.name }}" />
57 </div>
58 </div>
59 <# if ( data.description ) { #>
60 <div class="elementor-control-field-description">{{{ data.description }}}</div>
61 <# } #>
62 <?php
63 }
64
65 /**
66 * Get choose control default settings.
67 *
68 * Retrieve the default settings of the choose control. Used to return the
69 * default settings while initializing the choose control.
70 *
71 * @since 1.0.0
72 * @access protected
73 *
74 * @return array Control default settings.
75 */
76 protected function get_default_settings() {
77 return array(
78 'label_block' => true,
79 'show_edit_button' => false,
80 );
81 }
82 }
83