Premium Addons for Elementor - Version 2.3.1

Version Description

  • Tweak: Added support for dynamic fields to all widgets.
  • Tweak: Added text shadow option for both title and description in Premium Banner widget.
  • Fix: Light box bug in Premium Grid widget.
Download this release

Release Info

Developer leap13
Plugin Icon 128x128 Premium Addons for Elementor
Version 2.3.1
Comparing to
See all releases

Code changes from version 2.3.0 to 2.3.1

admin/settings-page.php CHANGED
@@ -373,7 +373,7 @@ class PA_admin_settings {
373
374
<tr class="pa-roll-row">
375
<th>Rollback Version</th>
376
- <td><div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 2.2.9</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ) ); ?> </div><p class="pa-roll-desc"><span>Warning: Please backup your database before making the rollback.</span></p></td>
377
</tr>
378
<tr>
379
<th><h4 class="pa-beta-test">Become a Beta Tester</h4><span class="pa-beta-test-span">Turn-on Beta Tester, to get notified when a new beta version of Premium Addons for Elementor. The Beta version will not install automatically. You always have the option to ignore it.</span></th>
373
374
<tr class="pa-roll-row">
375
<th>Rollback Version</th>
376
+ <td><div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 2.3.0</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ) ); ?> </div><p class="pa-roll-desc"><span>Warning: Please backup your database before making the rollback.</span></p></td>
377
</tr>
378
<tr>
379
<th><h4 class="pa-beta-test">Become a Beta Tester</h4><span class="pa-beta-test-span">Turn-on Beta Tester, to get notified when a new beta version of Premium Addons for Elementor. The Beta version will not install automatically. You always have the option to ignore it.</span></th>
assets/css/premium-addons.css CHANGED
@@ -793,19 +793,19 @@ ul.slick-dots li {
793
/* Ripple Out */
794
@-webkit-keyframes hvr-ripple-out {
795
100% {
796
- top: -12px;
797
- right: -12px;
798
- bottom: -12px;
799
- left: -12px;
800
opacity: 0;
801
}
802
}
803
@keyframes hvr-ripple-out {
804
100% {
805
- top: -12px;
806
- right: -12px;
807
- bottom: -12px;
808
- left: -12px;
809
opacity: 0;
810
}
811
}
@@ -825,10 +825,10 @@ ul.slick-dots li {
825
position: absolute;
826
border: 1px solid;
827
border-radius: 50%;
828
- top: 3.7px;
829
- right: 5px;
830
bottom: 6.8px;
831
- left: 5.5px;
832
-webkit-animation-duration: 1s;
833
animation-duration: 1s;
834
animation-iteration-count: infinite;
793
/* Ripple Out */
794
@-webkit-keyframes hvr-ripple-out {
795
100% {
796
+ top: -5.5px;
797
+ right: -3px;
798
+ bottom: -3px;
799
+ left: -3px;
800
opacity: 0;
801
}
802
}
803
@keyframes hvr-ripple-out {
804
100% {
805
+ top: -5.5px;
806
+ right: -3px;
807
+ bottom: -3px;
808
+ left: -3px;
809
opacity: 0;
810
}
811
}
825
position: absolute;
826
border: 1px solid;
827
border-radius: 50%;
828
+ top: 3px;
829
+ right: 4px;
830
bottom: 6.8px;
831
+ left: 4.5px;
832
-webkit-animation-duration: 1s;
833
animation-duration: 1s;
834
animation-iteration-count: infinite;
premium-addons-for-elementor.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: Premium Addons for Elementor
4
Description: Premium Addons Plugin Includes 20 premium widgets for Elementor Page Builder.
5
Plugin URI: https://premiumaddons.com
6
- Version: 2.3.0
7
Author: Leap13
8
Author URI: http://leap13.com/
9
Text Domain: premium-addons-for-elementor
@@ -22,12 +22,12 @@ if( !function_exists('add_action') ) {
22
23
if( !defined( 'ABSPATH' ) ) exit; // No access of directly access
24
25
- define( 'PREMIUM_ADDONS_VERSION', '2.3.0' );
26
define( 'PREMIUM_ADDONS_URL', plugins_url('/', __FILE__ ) );
27
define( 'PREMIUM_ADDONS_PATH', plugin_dir_path( __FILE__ ) );
28
define( 'PREMIUM_ADDONS_FILE', __FILE__ );
29
define( 'PREMIUM_ADDONS_BASENAME', plugin_basename(__FILE__));
30
- define( 'PREMIUM_ADDONS_STABLE_VERSION', '2.2.9');
31
32
33
/**
@@ -109,7 +109,7 @@ define( 'PREMIUM_ADDONS_STABLE_VERSION', '2.2.9');
109
* Register all frontend stylesheets
110
*/
111
public function premium_addons_register_styles(){
112
- wp_register_style('premium-addons-css', PREMIUM_ADDONS_URL . 'assets/css/premium-addons.css', array(), PREMIUM_ADDONS_VERSION, 'all');
113
$check_grid_active = get_option('pa_save_settings')['premium-grid'];
114
if($check_grid_active){
115
wp_register_style('pa-prettyphoto', PREMIUM_ADDONS_URL . 'assets/css/prettyphoto.css', array(), PREMIUM_ADDONS_VERSION, 'all');
@@ -120,10 +120,10 @@ define( 'PREMIUM_ADDONS_STABLE_VERSION', '2.2.9');
120
* Enqueue all frontend stylesheets
121
*/
122
public function premium_addons_enqueue_styles(){
123
- wp_enqueue_style('premium-addons-css');
124
$check_grid_active = get_option('pa_save_settings')['premium-grid'];
125
if($check_grid_active){
126
- wp_enqueue_style('prettyphoto-css');
127
}
128
}
129
3
Plugin Name: Premium Addons for Elementor
4
Description: Premium Addons Plugin Includes 20 premium widgets for Elementor Page Builder.
5
Plugin URI: https://premiumaddons.com
6
+ Version: 2.3.1
7
Author: Leap13
8
Author URI: http://leap13.com/
9
Text Domain: premium-addons-for-elementor
22
23
if( !defined( 'ABSPATH' ) ) exit; // No access of directly access
24
25
+ define( 'PREMIUM_ADDONS_VERSION', '2.3.1' );
26
define( 'PREMIUM_ADDONS_URL', plugins_url('/', __FILE__ ) );
27
define( 'PREMIUM_ADDONS_PATH', plugin_dir_path( __FILE__ ) );
28
define( 'PREMIUM_ADDONS_FILE', __FILE__ );
29
define( 'PREMIUM_ADDONS_BASENAME', plugin_basename(__FILE__));
30
+ define( 'PREMIUM_ADDONS_STABLE_VERSION', '2.3.0');
31
32
33
/**
109
* Register all frontend stylesheets
110
*/
111
public function premium_addons_register_styles(){
112
+ wp_register_style('premium-addons', PREMIUM_ADDONS_URL . 'assets/css/premium-addons.css', array(), PREMIUM_ADDONS_VERSION, 'all');
113
$check_grid_active = get_option('pa_save_settings')['premium-grid'];
114
if($check_grid_active){
115
wp_register_style('pa-prettyphoto', PREMIUM_ADDONS_URL . 'assets/css/prettyphoto.css', array(), PREMIUM_ADDONS_VERSION, 'all');
120
* Enqueue all frontend stylesheets
121
*/
122
public function premium_addons_enqueue_styles(){
123
+ wp_enqueue_style('premium-addons');
124
$check_grid_active = get_option('pa_save_settings')['premium-grid'];
125
if($check_grid_active){
126
+ wp_enqueue_style('pa-prettyphoto');
127
}
128
}
129
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: http://premiumaddons.com
5
Requires at least: 4.5
6
Tested up to: 4.9.6
7
Requires PHP: 5.4
8
- Stable tag: 2.3.0
9
License: GPL v3.0
10
License URI: https://opensource.org/licenses/GPL-3.0
11
@@ -99,6 +99,12 @@ Premium Addons for Elementor is light weight and we also gave you the control to
99
100
== Changelog ==
101
102
= 2.3.0 =
103
104
- Tweak: Added five hover effects for Premium Banner widget.
5
Requires at least: 4.5
6
Tested up to: 4.9.6
7
Requires PHP: 5.4
8
+ Stable tag: 2.3.1
9
License: GPL v3.0
10
License URI: https://opensource.org/licenses/GPL-3.0
11
99
100
== Changelog ==
101
102
+ = 2.3.1 =
103
+
104
+ - Tweak: Added support for dynamic fields to all widgets.
105
+ - Tweak: Added text shadow option for both title and description in Premium Banner widget.
106
+ - Fix: Light box bug in Premium Grid widget.
107
+
108
= 2.3.0 =
109
110
- Tweak: Added five hover effects for Premium Banner widget.
widgets/premium-banner.php CHANGED
@@ -222,6 +222,7 @@ $this->add_control(
222
'placeholder' => esc_html__( 'Give a title to this banner', 'premium-addons-for-elementor' ),
223
'description' => esc_html__( 'Give a title to this banner', 'premium-addons-for-elementor' ),
224
'type' => Controls_Manager::TEXT,
225
'default' => esc_html__( 'Premium Banner', 'premium-addons-for-elementor' ),
226
'label_block' => false
227
]
@@ -261,6 +262,7 @@ $this->add_control(
261
'label' => esc_html__( 'Description', 'premium-addons-for-elementor' ),
262
'description' => esc_html__( 'Give the description to this banner', 'premium-addons-for-elementor' ),
263
'type' => Controls_Manager::WYSIWYG,
264
'default' => esc_html__( 'Premium Banner gives you a wide range of styles and options that you will definitely fall in love with', 'premium-addons-for-elementor' ),
265
'label_block' => true
266
]
@@ -341,10 +343,6 @@ $this->add_control(
341
[
342
'label' => esc_html__( 'Background Color', 'premium-addons-for-elementor' ),
343
'type' => Controls_Manager::COLOR,
344
- 'scheme' => [
345
- 'type' => Scheme_Color::get_type(),
346
- 'value' => Scheme_Color::COLOR_1,
347
- ],
348
'selectors' => [
349
'{{WRAPPER}} .premium_addons-banner-ib' => 'background: {{VALUE}};',
350
]
@@ -438,12 +436,21 @@ $this->add_control(
438
$this->add_group_control(
439
Group_Control_Typography::get_type(),
440
[
441
- 'name' => 'premium_banner_title_typhography',
442
'selector' => '{{WRAPPER}} .premium_addons-banner-ib-desc .premium_banner_title',
443
'scheme' => Scheme_Typography::TYPOGRAPHY_1,
444
]
445
);
446
447
$this->end_controls_section();
448
449
$this->start_controls_section(
@@ -478,13 +485,22 @@ $this->add_control(
478
]
479
);
480
481
$this->end_controls_section();
482
483
}
484
485
486
protected function render() {
487
- $settings = $this->get_settings(); // All the settings values stored in $settings varaiable
488
$this->add_inline_editing_attributes('premium_banner_title');
489
$this->add_inline_editing_attributes('premium_banner_description', 'advanced');
490
222
'placeholder' => esc_html__( 'Give a title to this banner', 'premium-addons-for-elementor' ),
223
'description' => esc_html__( 'Give a title to this banner', 'premium-addons-for-elementor' ),
224
'type' => Controls_Manager::TEXT,
225
+ 'dynamic' => [ 'active' => true ],
226
'default' => esc_html__( 'Premium Banner', 'premium-addons-for-elementor' ),
227
'label_block' => false
228
]
262
'label' => esc_html__( 'Description', 'premium-addons-for-elementor' ),
263
'description' => esc_html__( 'Give the description to this banner', 'premium-addons-for-elementor' ),
264
'type' => Controls_Manager::WYSIWYG,
265
+ 'dynamic' => [ 'active' => true ],
266
'default' => esc_html__( 'Premium Banner gives you a wide range of styles and options that you will definitely fall in love with', 'premium-addons-for-elementor' ),
267
'label_block' => true
268
]
343
[
344
'label' => esc_html__( 'Background Color', 'premium-addons-for-elementor' ),
345
'type' => Controls_Manager::COLOR,
346
'selectors' => [
347
'{{WRAPPER}} .premium_addons-banner-ib' => 'background: {{VALUE}};',
348
]
436
$this->add_group_control(
437
Group_Control_Typography::get_type(),
438
[
439
+ 'name' => 'premium_banner_title_typography',
440
'selector' => '{{WRAPPER}} .premium_addons-banner-ib-desc .premium_banner_title',
441
'scheme' => Scheme_Typography::TYPOGRAPHY_1,
442
]
443
);
444
445
+ $this->add_group_control(
446
+ Group_Control_Text_Shadow::get_type(),
447
+ [
448
+ 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
449
+ 'name' => 'premium_banner_title_shadow',
450
+ 'selector' => '{{WRAPPER}} .premium_addons-banner-ib-desc .premium_banner_title',
451
+ ]
452
+ );
453
+
454
$this->end_controls_section();
455
456
$this->start_controls_section(
485
]
486
);
487
488
+ $this->add_group_control(
489
+ Group_Control_Text_Shadow::get_type(),
490
+ [
491
+ 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
492
+ 'name' => 'premium_banner_description_shadow',
493
+ 'selector' => '{{WRAPPER}} .premium_banner .premium_banner_content',
494
+ ]
495
+ );
496
+
497
$this->end_controls_section();
498
499
}
500
501
502
protected function render() {
503
+ $settings = $this->get_settings_for_display(); // All the settings values stored in $settings varaiable
504
$this->add_inline_editing_attributes('premium_banner_title');
505
$this->add_inline_editing_attributes('premium_banner_description', 'advanced');
506
widgets/premium-button.php CHANGED
@@ -45,6 +45,7 @@ class Premium_Button_Widget extends Widget_Base
45
[
46
'label' => esc_html__('Text', 'premium-addons-for-elementor'),
47
'type' => Controls_Manager::TEXT,
48
'default' => esc_html__('Click Me','premium-addons-for-elementor'),
49
'label_block' => true,
50
]
@@ -783,7 +784,7 @@ class Premium_Button_Widget extends Widget_Base
783
protected function render($instance = [])
784
{
785
// get our input from the widget settings.
786
- $settings = $this->get_settings();
787
788
$this->add_inline_editing_attributes( 'premium_button_text');
789
45
[
46
'label' => esc_html__('Text', 'premium-addons-for-elementor'),
47
'type' => Controls_Manager::TEXT,
48
+ 'dynamic' => [ 'active' => true ],
49
'default' => esc_html__('Click Me','premium-addons-for-elementor'),
50
'label_block' => true,
51
]
784
protected function render($instance = [])
785
{
786
// get our input from the widget settings.
787
+ $settings = $this->get_settings_for_display();
788
789
$this->add_inline_editing_attributes( 'premium_button_text');
790
widgets/premium-counter.php CHANGED
@@ -38,6 +38,7 @@ class Premium_Counter_Widget extends Widget_Base {
38
[
39
'label' => esc_html__( 'Title', 'premium-addons-for-elementor' ),
40
'type' => Controls_Manager::TEXT,
41
'description' => esc_html__( 'Enter title for stats counter block', 'premium-addons-for-elementor'),
42
]
43
);
@@ -81,6 +82,7 @@ class Premium_Counter_Widget extends Widget_Base {
81
[
82
'label' => esc_html__( 'Value Prefix', 'premium-addons-for-elementor' ),
83
'type' => Controls_Manager::TEXT,
84
'description' => esc_html__( 'Enter prefix for counter value', 'premium-addons-for-elementor' )
85
]
86
);
@@ -89,6 +91,7 @@ class Premium_Counter_Widget extends Widget_Base {
89
[
90
'label' => esc_html__( 'Value suffix', 'premium-addons-for-elementor' ),
91
'type' => Controls_Manager::TEXT,
92
'description' => esc_html__( 'Enter suffix for counter value', 'premium-addons-for-elementor' )
93
]
94
);
@@ -477,7 +480,7 @@ class Premium_Counter_Widget extends Widget_Base {
477
}
478
479
protected function render() {
480
- $settings = $this->get_settings();
481
482
$this->add_inline_editing_attributes('premium_counter_title');
483
@@ -576,4 +579,4 @@ class Premium_Counter_Widget extends Widget_Base {
576
}
577
}
578
579
- Plugin::instance()->widgets_manager->register_widget_type( new Premium_Counter_Widget() );
38
[
39
'label' => esc_html__( 'Title', 'premium-addons-for-elementor' ),
40
'type' => Controls_Manager::TEXT,
41
+ 'dynamic' => [ 'active' => true ],
42
'description' => esc_html__( 'Enter title for stats counter block', 'premium-addons-for-elementor'),
43
]
44
);
82
[
83
'label' => esc_html__( 'Value Prefix', 'premium-addons-for-elementor' ),
84
'type' => Controls_Manager::TEXT,
85
+ 'dynamic' => [ 'active' => true ],
86
'description' => esc_html__( 'Enter prefix for counter value', 'premium-addons-for-elementor' )
87
]
88
);
91
[
92
'label' => esc_html__( 'Value suffix', 'premium-addons-for-elementor' ),
93
'type' => Controls_Manager::TEXT,
94
+ 'dynamic' => [ 'active' => true ],
95
'description' => esc_html__( 'Enter suffix for counter value', 'premium-addons-for-elementor' )
96
]
97
);
480
}
481
482
protected function render() {
483
+ $settings = $this->get_settings_for_display();
484
485
$this->add_inline_editing_attributes('premium_counter_title');
486
579
}
580
}
581
582
+ Plugin::instance()->widgets_manager->register_widget_type( new Premium_Counter_Widget() );
widgets/premium-dual-header.php CHANGED
@@ -43,6 +43,7 @@ class Premium_Dual_Header_Widget extends Widget_Base
43
[
44
'label' => esc_html__('First Heading', 'premium-addons-for-elementor'),
45
'type' => Controls_Manager::TEXT,
46
'default' => esc_html__('Premium', 'premium-addons-for-elementor'),
47
'label_block' => true,
48
]
@@ -71,6 +72,7 @@ class Premium_Dual_Header_Widget extends Widget_Base
71
[
72
'label' => esc_html__('Second Heading', 'premium-addons-for-elementor'),
73
'type' => Controls_Manager::TEXT,
74
'default' => esc_html__('Addons', 'premium-addons-for-elementor'),
75
'label_block' => true,
76
]
@@ -471,7 +473,7 @@ class Premium_Dual_Header_Widget extends Widget_Base
471
protected function render($instance = [])
472
{
473
// get our input from the widget settings.
474
- $settings = $this->get_settings();
475
$this->add_inline_editing_attributes('premium_dual_header_first_header_text');
476
$this->add_inline_editing_attributes('premium_dual_header_second_header_text');
477
$first_title_tag = $settings['premium_dual_header_first_header_tag'];
43
[
44
'label' => esc_html__('First Heading', 'premium-addons-for-elementor'),
45
'type' => Controls_Manager::TEXT,
46
+ 'dynamic' => [ 'active' => true ],
47
'default' => esc_html__('Premium', 'premium-addons-for-elementor'),
48
'label_block' => true,
49
]
72
[
73
'label' => esc_html__('Second Heading', 'premium-addons-for-elementor'),
74
'type' => Controls_Manager::TEXT,
75
+ 'dynamic' => [ 'active' => true ],
76
'default' => esc_html__('Addons', 'premium-addons-for-elementor'),
77
'label_block' => true,
78
]
473
protected function render($instance = [])
474
{
475
// get our input from the widget settings.
476
+ $settings = $this->get_settings_for_display();
477
$this->add_inline_editing_attributes('premium_dual_header_first_header_text');
478
$this->add_inline_editing_attributes('premium_dual_header_second_header_text');
479
$first_title_tag = $settings['premium_dual_header_first_header_tag'];
widgets/premium-fancytext.php CHANGED
@@ -42,6 +42,7 @@ class Premium_Fancy_Text_Widget extends Widget_Base
42
[
43
'label' => esc_html__('Prefix', 'premium-addons-for-elementor'),
44
'type' => Controls_Manager::TEXT,
45
'default' => esc_html__('This is', 'premium-addons-for-elementor'),
46
'description' => esc_html__( 'Text before Fancy text', 'premium-addons-for-elementor' ),
47
'label_block' => true,
@@ -69,6 +70,7 @@ class Premium_Fancy_Text_Widget extends Widget_Base
69
'name' => 'premium_text_strings_text_field',
70
'label' => esc_html__( 'Fancy String', 'premium-addons-for-elementor' ),
71
'type' => Controls_Manager::TEXT,
72
'label_block' => true,
73
],
74
],
@@ -81,6 +83,7 @@ class Premium_Fancy_Text_Widget extends Widget_Base
81
[
82
'label' => esc_html__('Suffix', 'premium-addons-for-elementor'),
83
'type' => Controls_Manager::TEXT,
84
'default' => esc_html__('Text', 'premium-addons-for-elementor'),
85
'description' => esc_html__( 'Text after Fancy text', 'premium-addons-for-elementor' ),
86
'label_block' => true,
@@ -382,7 +385,7 @@ class Premium_Fancy_Text_Widget extends Widget_Base
382
383
protected function render( ) {
384
// get our input from the widget settings.
385
- $settings = $this->get_settings();
386
$this->add_inline_editing_attributes('premium_fancy_prefix_text');
387
$this->add_inline_editing_attributes('premium_fancy_suffix_text');
388
$cursor_text = addslashes($settings['premium_fancy_text_cursor_text']);
42
[
43
'label' => esc_html__('Prefix', 'premium-addons-for-elementor'),
44
'type' => Controls_Manager::TEXT,
45
+ 'dynamic' => [ 'active' => true ],
46
'default' => esc_html__('This is', 'premium-addons-for-elementor'),
47
'description' => esc_html__( 'Text before Fancy text', 'premium-addons-for-elementor' ),
48
'label_block' => true,
70
'name' => 'premium_text_strings_text_field',
71
'label' => esc_html__( 'Fancy String', 'premium-addons-for-elementor' ),
72
'type' => Controls_Manager::TEXT,
73
+ 'dynamic' => [ 'active' => true ],
74
'label_block' => true,
75
],
76
],
83
[
84
'label' => esc_html__('Suffix', 'premium-addons-for-elementor'),
85
'type' => Controls_Manager::TEXT,
86
+ 'dynamic' => [ 'active' => true ],
87
'default' => esc_html__('Text', 'premium-addons-for-elementor'),
88
'description' => esc_html__( 'Text after Fancy text', 'premium-addons-for-elementor' ),
89
'label_block' => true,
385
386
protected function render( ) {
387
// get our input from the widget settings.
388
+ $settings = $this->get_settings_for_display();
389
$this->add_inline_editing_attributes('premium_fancy_prefix_text');
390
$this->add_inline_editing_attributes('premium_fancy_suffix_text');
391
$cursor_text = addslashes($settings['premium_fancy_text_cursor_text']);
widgets/premium-grid.php CHANGED
@@ -23,7 +23,11 @@ class Premium_Image_Gallery_Widget extends Widget_Base {
23
}
24
25
public function get_script_depends(){
26
- return ['premium-addons-js','prettyPhoto-js','isotope-js'];
27
}
28
29
public function is_reload_preview_required(){
@@ -58,6 +62,7 @@ class Premium_Image_Gallery_Widget extends Widget_Base {
58
'name' => 'premium_gallery_img_cat',
59
'label' => esc_html__( 'Category', 'premium-addons-for-elementor' ),
60
'type' => Controls_Manager::TEXT,
61
],
62
],
63
'title_field' => '{{{ premium_gallery_img_cat }}}',
@@ -100,24 +105,28 @@ class Premium_Image_Gallery_Widget extends Widget_Base {
100
'name' => 'premium_gallery_img_name',
101
'label' => esc_html__( 'Name', 'premium-addons-for-elementor' ),
102
'type' => Controls_Manager::TEXT,
103
'label_block' => true,
104
],
105
[
106
'name' => 'premium_gallery_img_alt',
107
'label' => esc_html__( 'Alt', 'premium-addons-for-elementor' ),
108
'type' => Controls_Manager::TEXT,
109
'label_block' => true,
110
],
111
[
112
'name' => 'premium_gallery_img_desc',
113
'label' => esc_html__( 'Description', 'premium-addons-for-elementor' ),
114
'type' => Controls_Manager::TEXTAREA,
115
'label_block' => true,
116
],
117
[
118
'name' => 'premium_gallery_img_category',
119
'label' => esc_html__( 'Category', 'premium-addons-for-elementor' ),
120
'type' => Controls_Manager::TEXT,
121
],
122
[
123
'label' => esc_html__('Link Type', 'premium-addons-for-elementor'),
@@ -994,7 +1003,7 @@ class Premium_Image_Gallery_Widget extends Widget_Base {
994
}
995
996
protected function render(){
997
- $settings = $this->get_settings();
998
$filter = $settings['premium_gallery_filter'];
999
1000
$number_columns = str_replace(array('%','.'),'', 'premium-grid-'.$settings['premium_gallery_column_number'] );
23
}
24
25
public function get_script_depends(){
26
+ return [
27
+ 'premium-addons-js',
28
+ 'prettyPhoto-js',
29
+ 'isotope-js'
30
+ ];
31
}
32
33
public function is_reload_preview_required(){
62
'name' => 'premium_gallery_img_cat',
63
'label' => esc_html__( 'Category', 'premium-addons-for-elementor' ),
64
'type' => Controls_Manager::TEXT,
65
+ 'dynamic' => [ 'active' => true ],
66
],
67
],
68
'title_field' => '{{{ premium_gallery_img_cat }}}',
105
'name' => 'premium_gallery_img_name',
106
'label' => esc_html__( 'Name', 'premium-addons-for-elementor' ),
107
'type' => Controls_Manager::TEXT,
108
+ 'dynamic' => [ 'active' => true ],
109
'label_block' => true,
110
],
111
[
112
'name' => 'premium_gallery_img_alt',
113
'label' => esc_html__( 'Alt', 'premium-addons-for-elementor' ),
114
'type' => Controls_Manager::TEXT,
115
+ 'dynamic' => [ 'active' => true ],
116
'label_block' => true,
117
],
118
[
119
'name' => 'premium_gallery_img_desc',
120
'label' => esc_html__( 'Description', 'premium-addons-for-elementor' ),
121
'type' => Controls_Manager::TEXTAREA,
122
+ 'dynamic' => [ 'active' => true ],
123
'label_block' => true,
124
],
125
[
126
'name' => 'premium_gallery_img_category',
127
'label' => esc_html__( 'Category', 'premium-addons-for-elementor' ),
128
'type' => Controls_Manager::TEXT,
129
+ 'dynamic' => [ 'active' => true ],
130
],
131
[
132
'label' => esc_html__('Link Type', 'premium-addons-for-elementor'),
1003
}
1004
1005
protected function render(){
1006
+ $settings = $this->get_settings_for_display();
1007
$filter = $settings['premium_gallery_filter'];
1008
1009
$number_columns = str_replace(array('%','.'),'', 'premium-grid-'.$settings['premium_gallery_column_number'] );
widgets/premium-image-button.php CHANGED
@@ -41,6 +41,7 @@ class Premium_Image_Button_Widget extends Widget_Base
41
[
42
'label' => esc_html__('Text', 'premium-addons-for-elementor'),
43
'type' => Controls_Manager::TEXT,
44
'default' => esc_html__('Click Me','premium-addons-for-elementor'),
45
'label_block' => true,
46
]
@@ -724,7 +725,7 @@ class Premium_Image_Button_Widget extends Widget_Base
724
protected function render($instance = [])
725
{
726
// get our input from the widget settings.
727
- $settings = $this->get_settings();
728
$this->add_inline_editing_attributes( 'premium_image_button_text' );
729
730
if($settings['premium_image_button_link_selection'] == 'url'){
41
[
42
'label' => esc_html__('Text', 'premium-addons-for-elementor'),
43
'type' => Controls_Manager::TEXT,
44
+ 'dynamic' => [ 'active' => true ],
45
'default' => esc_html__('Click Me','premium-addons-for-elementor'),
46
'label_block' => true,
47
]
725
protected function render($instance = [])
726
{
727
// get our input from the widget settings.
728
+ $settings = $this->get_settings_for_display();
729
$this->add_inline_editing_attributes( 'premium_image_button_text' );
730
731
if($settings['premium_image_button_link_selection'] == 'url'){
widgets/premium-maps.php CHANGED
@@ -110,12 +110,14 @@ class Premium_Maps_Widget extends Widget_Base
110
'name' => 'pin_title',
111
'label' => esc_html__('Title', 'premium-addons-for-elementor'),
112
'type' => Controls_Manager::TEXT,
113
'label_block' => true,
114
],
115
[
116
'name' => 'pin_desc',
117
'label' => esc_html__('Description', 'premium-addons-for-elementor'),
118
'type' => Controls_Manager::WYSIWYG,
119
'label_block' => true,
120
],
121
[
@@ -500,7 +502,7 @@ class Premium_Maps_Widget extends Widget_Base
500
protected function render($instance = [])
501
{
502
// get our input from the widget settings.
503
- $settings = $this->get_settings();
504
505
$map_pins = $settings['premium_maps_map_pins'];
506
110
'name' => 'pin_title',
111
'label' => esc_html__('Title', 'premium-addons-for-elementor'),
112
'type' => Controls_Manager::TEXT,
113
+ 'dynamic' => [ 'active' => true ],
114
'label_block' => true,
115
],
116
[
117
'name' => 'pin_desc',
118
'label' => esc_html__('Description', 'premium-addons-for-elementor'),
119
'type' => Controls_Manager::WYSIWYG,
120
+ 'dynamic' => [ 'active' => true ],
121
'label_block' => true,
122
],
123
[
502
protected function render($instance = [])
503
{
504
// get our input from the widget settings.
505
+ $settings = $this->get_settings_for_display();
506
507
$map_pins = $settings['premium_maps_map_pins'];
508
widgets/premium-modalbox.php CHANGED
@@ -110,6 +110,7 @@ class Premium_Modal_Box_Widget extends Widget_Base
110
[
111
'label' => esc_html__('Title', 'premium-addons-for-elementor'),
112
'type' => Controls_Manager::TEXT,
113
'description' => esc_html__('Provide the modal box with a title', 'premium-addons-for-elementor'),
114
'default' => 'Modal Box Title',
115
'condition' => [
@@ -159,6 +160,7 @@ class Premium_Modal_Box_Widget extends Widget_Base
159
[
160
'type' => Controls_Manager::WYSIWYG,
161
'default' => 'Modal Box Content',
162
'selector' => '{{WRAPPER}} .premium-modal-box-modal-body',
163
'condition' => [
164
'premium_modal_box_content_type' => 'editor',
@@ -219,6 +221,7 @@ class Premium_Modal_Box_Widget extends Widget_Base
219
'label' => esc_html__('Button Text', 'premium-addons-for-elementor'),
220
'default' => esc_html__('Premium Modal Box','premium-addons-for-elementor'),
221
'type' => Controls_Manager::TEXT,
222
'label_block' => true,
223
'condition' => [
224
'premium_modal_box_display_on' => 'button'
@@ -404,6 +407,7 @@ class Premium_Modal_Box_Widget extends Widget_Base
404
[
405
'label' => esc_html__('Text', 'premium-addons-for-elementor'),
406
'type' => Controls_Manager::TEXT,
407
'label_block' => true,
408
'default' => esc_html__('Premium Modal Box', 'premium-addons-for-elementor'),
409
'condition' => [
@@ -1178,7 +1182,7 @@ class Premium_Modal_Box_Widget extends Widget_Base
1178
protected function render($instance = [])
1179
{
1180
// get our input from the widget settings.
1181
- $settings = $this->get_settings();
1182
$this->add_inline_editing_attributes('premium_modal_box_selector_text');
1183
1184
$button_icon = $settings['premium_modal_box_button_icon_selection'];
110
[
111
'label' => esc_html__('Title', 'premium-addons-for-elementor'),
112
'type' => Controls_Manager::TEXT,
113
+ 'dynamic' => [ 'active' => true ],
114
'description' => esc_html__('Provide the modal box with a title', 'premium-addons-for-elementor'),
115
'default' => 'Modal Box Title',
116
'condition' => [
160
[
161
'type' => Controls_Manager::WYSIWYG,
162
'default' => 'Modal Box Content',
163
+ 'dynamic' => [ 'active' => true ],
164
'selector' => '{{WRAPPER}} .premium-modal-box-modal-body',
165
'condition' => [
166
'premium_modal_box_content_type' => 'editor',
221
'label' => esc_html__('Button Text', 'premium-addons-for-elementor'),
222
'default' => esc_html__('Premium Modal Box','premium-addons-for-elementor'),
223
'type' => Controls_Manager::TEXT,
224
+ 'dynamic' => [ 'active' => true ],
225
'label_block' => true,
226
'condition' => [
227
'premium_modal_box_display_on' => 'button'
407
[
408
'label' => esc_html__('Text', 'premium-addons-for-elementor'),
409
'type' => Controls_Manager::TEXT,
410
+ 'dynamic' => [ 'active' => true ],
411
'label_block' => true,
412
'default' => esc_html__('Premium Modal Box', 'premium-addons-for-elementor'),
413
'condition' => [
1182
protected function render($instance = [])
1183
{
1184
// get our input from the widget settings.
1185
+ $settings = $this->get_settings_for_display();
1186
$this->add_inline_editing_attributes('premium_modal_box_selector_text');
1187
1188
$button_icon = $settings['premium_modal_box_button_icon_selection'];
widgets/premium-person.php CHANGED
@@ -126,6 +126,7 @@ class Premium_Person_Widget extends Widget_Base
126
[
127
'label' => esc_html__('Name', 'premium-addons-for-elementor'),
128
'type' => Controls_Manager::TEXT,
129
'default' => esc_html__('John Frank', 'premium-addons-for-elementor'),
130
'label_block' => true,
131
]
@@ -154,6 +155,7 @@ class Premium_Person_Widget extends Widget_Base
154
[
155
'label' => esc_html__('Job Title', 'premium-addons-for-elementor'),
156
'type' => Controls_Manager::TEXT,
157
'default' => esc_html__('Senior Developer', 'premium-addons-for-elementor'),
158
'label_block' => true,
159
]
@@ -181,6 +183,7 @@ class Premium_Person_Widget extends Widget_Base
181
[
182
'label' => esc_html__('Description', 'premium-addons-for-elementor'),
183
'type' => Controls_Manager::WYSIWYG,
184
'default' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ullamcorper nulla non metus auctor fringilla','premium-addons-for-elementor'),
185
]
186
);
@@ -226,6 +229,7 @@ class Premium_Person_Widget extends Widget_Base
226
[
227
'label' => esc_html__('Facebook', 'premium-addons-for-elementor'),
228
'type' => Controls_Manager::TEXT,
229
'default' => '#',
230
'label_block' => true,
231
]
@@ -236,6 +240,7 @@ class Premium_Person_Widget extends Widget_Base
236
[
237
'label' => esc_html__('Twitter', 'premium-addons-for-elementor'),
238
'type' => Controls_Manager::TEXT,
239
'default' => '#',
240
'label_block' => true,
241
]
@@ -246,6 +251,8 @@ class Premium_Person_Widget extends Widget_Base
246
[
247
'label' => esc_html__('LinkedIn', 'premium-addons-for-elementor'),
248
'type' => Controls_Manager::TEXT,
249
'default' => '#',
250
'label_block' => true,
251
]
@@ -256,6 +263,7 @@ class Premium_Person_Widget extends Widget_Base
256
[
257
'label' => esc_html__('Google+', 'premium-addons-for-elementor'),
258
'type' => Controls_Manager::TEXT,
259
'default' => '#',
260
'label_block' => true,
261
]
@@ -266,6 +274,7 @@ class Premium_Person_Widget extends Widget_Base
266
[
267
'label' => esc_html__('Pinterest', 'premium-addons-for-elementor'),
268
'type' => Controls_Manager::TEXT,
269
'default' => '#',
270
'label_block' => true,
271
]
@@ -276,6 +285,7 @@ class Premium_Person_Widget extends Widget_Base
276
[
277
'label' => esc_html__('Dribbble', 'premium-addons-for-elementor'),
278
'type' => Controls_Manager::TEXT,
279
'default' => '#',
280
'label_block' => true,
281
]
@@ -286,6 +296,7 @@ class Premium_Person_Widget extends Widget_Base
286
[
287
'label' => esc_html__('Behance', 'premium-addons-for-elementor'),
288
'type' => Controls_Manager::TEXT,
289
'default' => '#',
290
'label_block' => true,
291
]
@@ -296,6 +307,7 @@ class Premium_Person_Widget extends Widget_Base
296
[
297
'label' => esc_html__('Email Address', 'premium-addons-for-elementor'),
298
'type' => Controls_Manager::TEXT,
299
'default' => '#',
300
'label_block' => true,
301
]
@@ -503,7 +515,7 @@ class Premium_Person_Widget extends Widget_Base
503
protected function render($instance = [])
504
{
505
// get our input from the widget settings.
506
- $settings = $this->get_settings();
507
508
$this->add_inline_editing_attributes('premium_person_name');
509
126
[
127
'label' => esc_html__('Name', 'premium-addons-for-elementor'),
128
'type' => Controls_Manager::TEXT,
129
+ 'dynamic' => [ 'active' => true ],
130
'default' => esc_html__('John Frank', 'premium-addons-for-elementor'),
131
'label_block' => true,
132
]
155
[
156
'label' => esc_html__('Job Title', 'premium-addons-for-elementor'),
157
'type' => Controls_Manager::TEXT,
158
+ 'dynamic' => [ 'active' => true ],
159
'default' => esc_html__('Senior Developer', 'premium-addons-for-elementor'),
160
'label_block' => true,
161
]
183
[
184
'label' => esc_html__('Description', 'premium-addons-for-elementor'),
185
'type' => Controls_Manager::WYSIWYG,
186
+ 'dynamic' => [ 'active' => true ],
187
'default' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ullamcorper nulla non metus auctor fringilla','premium-addons-for-elementor'),
188
]
189
);
229
[
230
'label' => esc_html__('Facebook', 'premium-addons-for-elementor'),
231
'type' => Controls_Manager::TEXT,
232
+ 'dynamic' => [ 'active' => true ],
233
'default' => '#',
234
'label_block' => true,
235
]
240
[
241
'label' => esc_html__('Twitter', 'premium-addons-for-elementor'),
242
'type' => Controls_Manager::TEXT,
243
+ 'dynamic' => [ 'active' => true ],
244
'default' => '#',
245
'label_block' => true,
246
]
251
[
252
'label' => esc_html__('LinkedIn', 'premium-addons-for-elementor'),
253
'type' => Controls_Manager::TEXT,
254
+ 'dynamic' => [ 'active' => true ],
255
+ 'dynamic' => [ 'active' => true ],
256
'default' => '#',
257
'label_block' => true,
258
]
263
[
264
'label' => esc_html__('Google+', 'premium-addons-for-elementor'),
265
'type' => Controls_Manager::TEXT,
266
+ 'dynamic' => [ 'active' => true ],
267
'default' => '#',
268
'label_block' => true,
269
]
274
[
275
'label' => esc_html__('Pinterest', 'premium-addons-for-elementor'),
276
'type' => Controls_Manager::TEXT,
277
+ 'dynamic' => [ 'active' => true ],
278
'default' => '#',
279
'label_block' => true,
280
]
285
[
286
'label' => esc_html__('Dribbble', 'premium-addons-for-elementor'),
287
'type' => Controls_Manager::TEXT,
288
+ 'dynamic' => [ 'active' => true ],
289
'default' => '#',
290
'label_block' => true,
291
]
296
[
297
'label' => esc_html__('Behance', 'premium-addons-for-elementor'),
298
'type' => Controls_Manager::TEXT,
299
+ 'dynamic' => [ 'active' => true ],
300
'default' => '#',
301
'label_block' => true,
302
]
307
[
308
'label' => esc_html__('Email Address', 'premium-addons-for-elementor'),
309
'type' => Controls_Manager::TEXT,
310
+ 'dynamic' => [ 'active' => true ],
311
'default' => '#',
312
'label_block' => true,
313
]
515
protected function render($instance = [])
516
{
517
// get our input from the widget settings.
518
+ $settings = $this->get_settings_for_display();
519
520
$this->add_inline_editing_attributes('premium_person_name');
521
widgets/premium-pricing-table.php CHANGED
@@ -67,6 +67,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
67
'label' => esc_html__('Text', 'premium-addons-for-elementor'),
68
'default' => 'Pricing Table',
69
'type' => Controls_Manager::TEXT,
70
'label_block' => true,
71
]
72
);
@@ -178,6 +179,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
178
'name' => 'premium_pricing_list_item_text',
179
'label' => esc_html__( 'Text', 'premium-addons-for-elementor' ),
180
'type' => Controls_Manager::TEXT,
181
'label_block' => true,
182
],
183
[
@@ -255,6 +257,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
255
'label' => esc_html__('Text', 'premium-addons-for-elementor'),
256
'default' => esc_html__('Get Started' , 'premium-addons-for-elementor'),
257
'type' => Controls_Manager::TEXT,
258
'label_block' => true,
259
]
260
);
@@ -336,6 +339,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
336
'label' => esc_html__('Text', 'premium-addons-for-elementor'),
337
'default' => esc_html__('Popular', 'premium-addons-for-elementor'),
338
'type' => Controls_Manager::TEXT,
339
'label_block' => true,
340
]
341
);
@@ -1758,7 +1762,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1758
protected function render($instance = [])
1759
{
1760
// get our input from the widget settings.
1761
- $settings = $this->get_settings();
1762
$this->add_inline_editing_attributes('premium_pricing_table_title_text');
1763
$this->add_inline_editing_attributes('premium_pricing_table_description_text', 'advanced');
1764
$this->add_inline_editing_attributes('premium_pricing_table_button_text');
67
'label' => esc_html__('Text', 'premium-addons-for-elementor'),
68
'default' => 'Pricing Table',
69
'type' => Controls_Manager::TEXT,
70
+ 'dynamic' => [ 'active' => true ],
71
'label_block' => true,
72
]
73
);
179
'name' => 'premium_pricing_list_item_text',
180
'label' => esc_html__( 'Text', 'premium-addons-for-elementor' ),
181
'type' => Controls_Manager::TEXT,
182
+ 'dynamic' => [ 'active' => true ],
183
'label_block' => true,
184
],
185
[
257
'label' => esc_html__('Text', 'premium-addons-for-elementor'),
258
'default' => esc_html__('Get Started' , 'premium-addons-for-elementor'),
259
'type' => Controls_Manager::TEXT,
260
+ 'dynamic' => [ 'active' => true ],
261
'label_block' => true,
262
]
263
);
339
'label' => esc_html__('Text', 'premium-addons-for-elementor'),
340
'default' => esc_html__('Popular', 'premium-addons-for-elementor'),
341
'type' => Controls_Manager::TEXT,
342
+ 'dynamic' => [ 'active' => true ],
343
'label_block' => true,
344
]
345
);
1762
protected function render($instance = [])
1763
{
1764
// get our input from the widget settings.
1765
+ $settings = $this->get_settings_for_display();
1766
$this->add_inline_editing_attributes('premium_pricing_table_title_text');
1767
$this->add_inline_editing_attributes('premium_pricing_table_description_text', 'advanced');
1768
$this->add_inline_editing_attributes('premium_pricing_table_button_text');
widgets/premium-progressbar.php CHANGED
@@ -53,6 +53,7 @@ class Premium_Progressbar_Widget extends Widget_Base
53
[
54
'label' => esc_html__('Title', 'premium-addons-for-elementor'),
55
'type' => Controls_Manager::TEXT,
56
'default' => esc_html__('My Skill','premium-addons-for-elementor'),
57
'label_block' => true,
58
'condition' =>[
@@ -89,6 +90,7 @@ class Premium_Progressbar_Widget extends Widget_Base
89
'name' => 'text',
90
'label' => esc_html__( 'Label','premium-addons-for-elementor' ),
91
'type' => Controls_Manager::TEXT,
92
'label_block' => true,
93
'placeholder' => esc_html__( 'label','premium-addons-for-elementor' ),
94
'default' => esc_html__( 'label', 'premium-addons-for-elementor' ),
@@ -561,7 +563,7 @@ class Premium_Progressbar_Widget extends Widget_Base
561
protected function render($instance = [])
562
{
563
// get our input from the widget settings.
564
- $settings = $this->get_settings();
565
$this->add_inline_editing_attributes('premium_progressbar_left_label');
566
$this->add_inline_editing_attributes('premium_progressbar_right_label');
567
@@ -681,4 +683,4 @@ class Premium_Progressbar_Widget extends Widget_Base
681
<?php
682
}
683
}
684
- Plugin::instance()->widgets_manager->register_widget_type(new Premium_Progressbar_Widget());
53
[
54
'label' => esc_html__('Title', 'premium-addons-for-elementor'),
55
'type' => Controls_Manager::TEXT,
56
+ 'dynamic' => [ 'active' => true ],
57
'default' => esc_html__('My Skill','premium-addons-for-elementor'),
58
'label_block' => true,
59
'condition' =>[
90
'name' => 'text',
91
'label' => esc_html__( 'Label','premium-addons-for-elementor' ),
92
'type' => Controls_Manager::TEXT,
93
+ 'dynamic' => [ 'active' => true ],
94
'label_block' => true,
95
'placeholder' => esc_html__( 'label','premium-addons-for-elementor' ),
96
'default' => esc_html__( 'label', 'premium-addons-for-elementor' ),
563
protected function render($instance = [])
564
{
565
// get our input from the widget settings.
566
+ $settings = $this->get_settings_for_display();
567
$this->add_inline_editing_attributes('premium_progressbar_left_label');
568
$this->add_inline_editing_attributes('premium_progressbar_right_label');
569
683
<?php
684
}
685
}
686
+ Plugin::instance()->widgets_manager->register_widget_type(new Premium_Progressbar_Widget());
widgets/premium-testimonials.php CHANGED
@@ -64,6 +64,7 @@ class Premium_Testimonials_Widget extends Widget_Base
64
[
65
'label' => esc_html__('Name', 'premium-addons-for-elementor'),
66
'type' => Controls_Manager::TEXT,
67
'default' => esc_html__('Person Name', 'premium-addons-for-elementor'),
68
'description' => esc_html__( 'Enter author name', 'premium-addons-for-elementor' ),
69
'label_block' => true
@@ -104,6 +105,7 @@ class Premium_Testimonials_Widget extends Widget_Base
104
[
105
'label' => esc_html__('Name', 'premium-addons-for-elementor'),
106
'type' => Controls_Manager::TEXT,
107
'default' => esc_html__('Company Name','premium-addons-for-elementor'),
108
'description' => esc_html__( 'Enter company name', 'premium-addons-for-elementor' ),
109
'label_block' => true,
@@ -184,6 +186,7 @@ class Premium_Testimonials_Widget extends Widget_Base
184
[
185
'label' => esc_html__('Testimonial Content', 'premium-addons-for-elementor'),
186
'type' => Controls_Manager::WYSIWYG,
187
'default' => esc_html__('Donec id elit non mi porta gravida at eget metus. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Cras mattis consectetur purus sit amet fermentum. Nullam id dolor id nibh ultricies vehicula ut id elit. Donec id elit non mi porta gravida at eget metus.','premium-elementor'),
188
'label_block' => true,
189
]
@@ -487,7 +490,7 @@ class Premium_Testimonials_Widget extends Widget_Base
487
protected function render($instance = [])
488
{
489
// get our input from the widget settings.
490
- $settings = $this->get_settings();
491
492
$this->add_inline_editing_attributes('premium_testimonial_person_name');
493
$this->add_inline_editing_attributes('premium_testimonial_company_name');
@@ -545,4 +548,4 @@ class Premium_Testimonials_Widget extends Widget_Base
545
<?php
546
}
547
}
548
- Plugin::instance()->widgets_manager->register_widget_type(new Premium_Testimonials_Widget());
64
[
65
'label' => esc_html__('Name', 'premium-addons-for-elementor'),
66
'type' => Controls_Manager::TEXT,
67
+ 'dynamic' => [ 'active' => true ],
68
'default' => esc_html__('Person Name', 'premium-addons-for-elementor'),
69
'description' => esc_html__( 'Enter author name', 'premium-addons-for-elementor' ),
70
'label_block' => true
105
[
106
'label' => esc_html__('Name', 'premium-addons-for-elementor'),
107
'type' => Controls_Manager::TEXT,
108
+ 'dynamic' => [ 'active' => true ],
109
'default' => esc_html__('Company Name','premium-addons-for-elementor'),
110
'description' => esc_html__( 'Enter company name', 'premium-addons-for-elementor' ),
111
'label_block' => true,
186
[
187
'label' => esc_html__('Testimonial Content', 'premium-addons-for-elementor'),
188
'type' => Controls_Manager::WYSIWYG,
189
+ 'dynamic' => [ 'active' => true ],
190
'default' => esc_html__('Donec id elit non mi porta gravida at eget metus. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Cras mattis consectetur purus sit amet fermentum. Nullam id dolor id nibh ultricies vehicula ut id elit. Donec id elit non mi porta gravida at eget metus.','premium-elementor'),
191
'label_block' => true,
192
]
490
protected function render($instance = [])
491
{
492
// get our input from the widget settings.
493
+ $settings = $this->get_settings_for_display();
494
495
$this->add_inline_editing_attributes('premium_testimonial_person_name');
496
$this->add_inline_editing_attributes('premium_testimonial_company_name');
548
<?php
549
}
550
}
551
+ Plugin::instance()->widgets_manager->register_widget_type(new Premium_Testimonials_Widget());
widgets/premium-title.php CHANGED
@@ -39,6 +39,7 @@ class Premium_Title_Widget extends Widget_Base
39
'type' => Controls_Manager::TEXT,
40
'default' => esc_html__('Premium Title','premium-addons-for-elementor'),
41
'label_block' => true,
42
]
43
);
44
@@ -544,7 +545,7 @@ class Premium_Title_Widget extends Widget_Base
544
protected function render($instance = [])
545
{
546
// get our input from the widget settings.
547
- $settings = $this->get_settings();
548
549
$this->add_inline_editing_attributes('premium_title_text', 'none');
550
39
'type' => Controls_Manager::TEXT,
40
'default' => esc_html__('Premium Title','premium-addons-for-elementor'),
41
'label_block' => true,
42
+ 'dynamic' => [ 'active' => true ]
43
]
44
);
45
545
protected function render($instance = [])
546
{
547
// get our input from the widget settings.
548
+ $settings = $this->get_settings_for_display();
549
550
$this->add_inline_editing_attributes('premium_title_text', 'none');
551
widgets/premium-videobox.php CHANGED
@@ -176,6 +176,7 @@ class Premium_Video_Box_Widget extends Widget_Base
176
'label' => esc_html__('Text', 'premium-addons-for-elementor'),
177
'type' => Controls_Manager::TEXTAREA,
178
'default' => esc_html__('Play Video','premium-addons-for-elementor'),
179
'condition' => [
180
'premium_video_box_video_text_switcher' => 'yes'
181
],
@@ -497,7 +498,7 @@ class Premium_Video_Box_Widget extends Widget_Base
497
protected function render($instance = [])
498
{
499
// get our input from the widget settings.
500
- $settings = $this->get_settings();
501
502
$this->add_inline_editing_attributes('premium_video_box_description_text');
503
@@ -549,4 +550,4 @@ class Premium_Video_Box_Widget extends Widget_Base
549
<?php
550
}
551
}
552
- Plugin::instance()->widgets_manager->register_widget_type(new Premium_Video_Box_Widget());
176
'label' => esc_html__('Text', 'premium-addons-for-elementor'),
177
'type' => Controls_Manager::TEXTAREA,
178
'default' => esc_html__('Play Video','premium-addons-for-elementor'),
179
+ 'dynamic' => [ 'active' => true ],
180
'condition' => [
181
'premium_video_box_video_text_switcher' => 'yes'
182
],
498
protected function render($instance = [])
499
{
500
// get our input from the widget settings.
501
+ $settings = $this->get_settings_for_display();
502
503
$this->add_inline_editing_attributes('premium_video_box_description_text');
504
550
<?php
551
}
552
}
553
+ Plugin::instance()->widgets_manager->register_widget_type(new Premium_Video_Box_Widget());