Premium Addons for Elementor - Version 3.11.3

Version Description

  • Fixed: Premium Templates button not showing after Elementor v2.9.0
Download this release

Release Info

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

Code changes from version 3.11.2 to 3.11.3

assets/editor/templates/js/editor.js CHANGED
@@ -30,7 +30,7 @@
30
  CategoriesCollection: null,
31
  ModalPreviewView: null,
32
  ModalHeaderBack: null,
33
- ModalHeaderLogo: null,
34
  KeywordsView: null,
35
  TabModel: null,
36
  CategoryModel: null,
@@ -65,7 +65,7 @@
65
  },
66
 
67
  regions: {
68
- headerLogo: '#premium-template-modal-header-logo-area',
69
  headerTabs: '#premium-template-modal-header-tabs',
70
  headerActions: '#premium-template-modal-header-actions'
71
  },
@@ -123,15 +123,15 @@
123
  var selected = event.currentTarget.selectedOptions[0].value;
124
  PremiumEditor.setFilter('keyword', selected);
125
  },
126
-
127
- onRender: function() {
128
- var $filters = this.$('.premium-library-keywords');
129
- $filters.select2({
130
- placeholder: 'Choose Widget',
131
- allowClear: true,
132
- width: 250
133
- });
134
- }
135
  });
136
 
137
  self.ModalPreviewView = Marionette.ItemView.extend({
@@ -158,7 +158,7 @@
158
  } else if (-1 !== this.getOption('notice').indexOf("form")) {
159
  message += "<p>You need to have <a href='https://wordpress.org/plugins/contact-form-7/' target='_blank'>Contact Form 7 plugin</a> installed and active.</p>";
160
  }
161
-
162
  this.ui.notice.html('<div><p><strong>Important!</strong></p>' + message + '</div>');
163
  }
164
  }
@@ -167,7 +167,7 @@
167
 
168
  }
169
  });
170
-
171
  self.ModalHeaderBack = Marionette.ItemView.extend({
172
 
173
  template: '#tmpl-premium-template-modal-header-back',
@@ -187,8 +187,8 @@
187
  }
188
 
189
  });
190
-
191
- self.ModalHeaderLogo = Marionette.ItemView.extend({
192
 
193
  template: '#tmpl-premium-template-modal-header-logo',
194
 
@@ -247,8 +247,8 @@
247
  }
248
  }
249
 
250
- if ("valid" === PremiumTempsData.license.status || ! isPro ) {
251
-
252
  elementor.templates.requestTemplateContent(
253
  templateModel.get('source'),
254
  templateModel.get('template_id'),
@@ -258,28 +258,28 @@
258
  page_settings: false
259
  },
260
  success: function (data) {
261
-
262
- if ( ! data.license ) {
263
- PremiumEditor.layout.showLicenseError();
264
- return;
265
- }
266
-
267
- console.log("%c Template Inserted Successfully!!", "color: #7a7a7a; background-color: #eee;");
268
 
269
- PremiumEditor.closeModal();
 
 
 
270
 
271
- elementor.channels.data.trigger('template:before:insert', templateModel);
272
 
273
- if (null !== PremiumEditor.atIndex) {
274
- options.at = PremiumEditor.atIndex;
275
- }
276
 
277
- elementor.sections.currentView.addChildModel(data.content, options);
278
 
279
- elementor.channels.data.trigger('template:after:insert', templateModel);
 
 
 
 
 
 
 
 
280
 
281
- PremiumEditor.atIndex = null;
282
-
283
  },
284
  error: function (err) {
285
  console.log(err);
@@ -500,9 +500,9 @@
500
  if ('premium_page' === tab || 'local' === tab) {
501
  return;
502
  }
503
-
504
  // Wait for thumbnails to be loaded
505
- container.imagesLoaded(function () {}).done(function () {
506
  self.masonry.init({
507
  container: container,
508
  items: items
@@ -536,45 +536,45 @@
536
 
537
  var header = this.getHeaderView(),
538
  preview = PremiumEditor.getPreview();
539
-
540
- var filter = PremiumEditor.getFilter('category'),
541
  keyword = PremiumEditor.getFilter('keyword');
542
-
543
  if ('back' === preview) {
544
- header.headerLogo.show(new self.ModalHeaderLogo());
545
  header.headerTabs.show(new self.ModalTabsCollectionView({
546
  collection: PremiumEditor.collections.tabs
547
  }));
548
-
549
  header.headerActions.empty();
550
  PremiumEditor.setTab(PremiumEditor.getTab());
551
-
552
- if( '' != filter ) {
553
- PremiumEditor.setFilter( 'category', filter );
554
- jQuery('#premium-modal-filters-container').find("input[value='" + filter + "']").prop('checked', true);
555
-
556
- }
557
-
558
- if( '' != keyword ) {
559
- PremiumEditor.setFilter('keyword', keyword);
560
- }
561
-
562
  return;
563
  }
564
 
565
  if ('initial' === preview) {
566
  header.headerActions.empty();
567
- header.headerLogo.show(new self.ModalHeaderLogo());
568
  return;
569
  }
570
 
571
  this.getRegion('modalContent').show(new self.ModalPreviewView({
572
  'preview': preview.get('preview'),
573
  'url': preview.get('url'),
574
- 'notice': preview.get('notice')
575
  }));
576
-
577
- header.headerLogo.empty();
578
  header.headerTabs.show(new self.ModalHeaderBack());
579
  header.headerActions.show(new self.ModalHeaderInsertButton({
580
  model: preview
@@ -609,7 +609,7 @@
609
  });
610
 
611
  PremiumEditor.collections.tabs = new self.ModalTabsCollection(PremiumEditor.getTabs());
612
-
613
  header.headerTabs.show(new self.ModalTabsCollectionView({
614
  collection: PremiumEditor.collections.tabs
615
  }));
@@ -623,9 +623,9 @@
623
  }));
624
 
625
  contentView.contentKeywords.show(new self.KeywordsView({
626
- model: keywordsModel
627
- }));
628
-
629
  }
630
 
631
  });
@@ -862,15 +862,16 @@
862
 
863
  initPremTempsButton: function () {
864
 
 
 
 
 
865
 
866
- var $addNewSection = window.elementor.$previewContents.find('.elementor-add-new-section'),
867
- addPremiumTemplate = "<div class='elementor-add-section-area-button pa-add-section-btn' title='Add Premium Template'><i class='fas fa-star'></i></div>",
868
- $addPremiumTemplate;
869
 
870
- if ($addNewSection.length && PremiumTempsData.PremiumTemplatesBtn) {
871
-
872
- $addPremiumTemplate = $(addPremiumTemplate).prependTo($addNewSection);
873
- }
874
 
875
  window.elementor.$previewContents.on(
876
  'click.addPremiumTemplate',
30
  CategoriesCollection: null,
31
  ModalPreviewView: null,
32
  ModalHeaderBack: null,
33
+ ModalHeaderLogo: null,
34
  KeywordsView: null,
35
  TabModel: null,
36
  CategoryModel: null,
65
  },
66
 
67
  regions: {
68
+ headerLogo: '#premium-template-modal-header-logo-area',
69
  headerTabs: '#premium-template-modal-header-tabs',
70
  headerActions: '#premium-template-modal-header-actions'
71
  },
123
  var selected = event.currentTarget.selectedOptions[0].value;
124
  PremiumEditor.setFilter('keyword', selected);
125
  },
126
+
127
+ onRender: function () {
128
+ var $filters = this.$('.premium-library-keywords');
129
+ $filters.select2({
130
+ placeholder: 'Choose Widget',
131
+ allowClear: true,
132
+ width: 250
133
+ });
134
+ }
135
  });
136
 
137
  self.ModalPreviewView = Marionette.ItemView.extend({
158
  } else if (-1 !== this.getOption('notice').indexOf("form")) {
159
  message += "<p>You need to have <a href='https://wordpress.org/plugins/contact-form-7/' target='_blank'>Contact Form 7 plugin</a> installed and active.</p>";
160
  }
161
+
162
  this.ui.notice.html('<div><p><strong>Important!</strong></p>' + message + '</div>');
163
  }
164
  }
167
 
168
  }
169
  });
170
+
171
  self.ModalHeaderBack = Marionette.ItemView.extend({
172
 
173
  template: '#tmpl-premium-template-modal-header-back',
187
  }
188
 
189
  });
190
+
191
+ self.ModalHeaderLogo = Marionette.ItemView.extend({
192
 
193
  template: '#tmpl-premium-template-modal-header-logo',
194
 
247
  }
248
  }
249
 
250
+ if ("valid" === PremiumTempsData.license.status || !isPro) {
251
+
252
  elementor.templates.requestTemplateContent(
253
  templateModel.get('source'),
254
  templateModel.get('template_id'),
258
  page_settings: false
259
  },
260
  success: function (data) {
 
 
 
 
 
 
 
261
 
262
+ if (!data.license) {
263
+ PremiumEditor.layout.showLicenseError();
264
+ return;
265
+ }
266
 
267
+ console.log("%c Template Inserted Successfully!!", "color: #7a7a7a; background-color: #eee;");
268
 
269
+ PremiumEditor.closeModal();
 
 
270
 
271
+ elementor.channels.data.trigger('template:before:insert', templateModel);
272
 
273
+ if (null !== PremiumEditor.atIndex) {
274
+ options.at = PremiumEditor.atIndex;
275
+ }
276
+
277
+ elementor.sections.currentView.addChildModel(data.content, options);
278
+
279
+ elementor.channels.data.trigger('template:after:insert', templateModel);
280
+
281
+ PremiumEditor.atIndex = null;
282
 
 
 
283
  },
284
  error: function (err) {
285
  console.log(err);
500
  if ('premium_page' === tab || 'local' === tab) {
501
  return;
502
  }
503
+
504
  // Wait for thumbnails to be loaded
505
+ container.imagesLoaded(function () { }).done(function () {
506
  self.masonry.init({
507
  container: container,
508
  items: items
536
 
537
  var header = this.getHeaderView(),
538
  preview = PremiumEditor.getPreview();
539
+
540
+ var filter = PremiumEditor.getFilter('category'),
541
  keyword = PremiumEditor.getFilter('keyword');
542
+
543
  if ('back' === preview) {
544
+ header.headerLogo.show(new self.ModalHeaderLogo());
545
  header.headerTabs.show(new self.ModalTabsCollectionView({
546
  collection: PremiumEditor.collections.tabs
547
  }));
548
+
549
  header.headerActions.empty();
550
  PremiumEditor.setTab(PremiumEditor.getTab());
551
+
552
+ if ('' != filter) {
553
+ PremiumEditor.setFilter('category', filter);
554
+ jQuery('#premium-modal-filters-container').find("input[value='" + filter + "']").prop('checked', true);
555
+
556
+ }
557
+
558
+ if ('' != keyword) {
559
+ PremiumEditor.setFilter('keyword', keyword);
560
+ }
561
+
562
  return;
563
  }
564
 
565
  if ('initial' === preview) {
566
  header.headerActions.empty();
567
+ header.headerLogo.show(new self.ModalHeaderLogo());
568
  return;
569
  }
570
 
571
  this.getRegion('modalContent').show(new self.ModalPreviewView({
572
  'preview': preview.get('preview'),
573
  'url': preview.get('url'),
574
+ 'notice': preview.get('notice')
575
  }));
576
+
577
+ header.headerLogo.empty();
578
  header.headerTabs.show(new self.ModalHeaderBack());
579
  header.headerActions.show(new self.ModalHeaderInsertButton({
580
  model: preview
609
  });
610
 
611
  PremiumEditor.collections.tabs = new self.ModalTabsCollection(PremiumEditor.getTabs());
612
+
613
  header.headerTabs.show(new self.ModalTabsCollectionView({
614
  collection: PremiumEditor.collections.tabs
615
  }));
623
  }));
624
 
625
  contentView.contentKeywords.show(new self.KeywordsView({
626
+ model: keywordsModel
627
+ }));
628
+
629
  }
630
 
631
  });
862
 
863
  initPremTempsButton: function () {
864
 
865
+ setTimeout(function () {
866
+ var $addNewSection = window.elementor.$previewContents.find('.elementor-add-new-section'),
867
+ addPremiumTemplate = "<div class='elementor-add-section-area-button pa-add-section-btn' title='Add Premium Template'><i class='fas fa-star'></i></div>",
868
+ $addPremiumTemplate;
869
 
870
+ if ($addNewSection.length && PremiumTempsData.PremiumTemplatesBtn) {
 
 
871
 
872
+ $addPremiumTemplate = $(addPremiumTemplate).prependTo($addNewSection);
873
+ }
874
+ }, 100);
 
875
 
876
  window.elementor.$previewContents.on(
877
  'click.addPremiumTemplate',
assets/frontend/images/prettyPhoto/dark_rounded/contentPattern.png CHANGED
Binary file
assets/frontend/images/prettyPhoto/dark_rounded/default_thumbnail.gif CHANGED
Binary file
assets/frontend/images/prettyPhoto/dark_square/contentPattern.png CHANGED
Binary file
assets/frontend/images/prettyPhoto/dark_square/default_thumbnail.gif CHANGED
Binary file
premium-addons-for-elementor.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Premium Addons for Elementor
4
  Description: Premium Addons Plugin Includes 22+ premium widgets for Elementor Page Builder.
5
  Plugin URI: https://premiumaddons.com
6
- Version: 3.11.2
7
  Author: Leap13
8
  Author URI: https://leap13.com/
9
  Text Domain: premium-addons-for-elementor
@@ -14,12 +14,12 @@ License: GNU General Public License v3.0
14
  if ( ! defined('ABSPATH') ) exit; // No access of directly access
15
 
16
  // Define Constants
17
- define('PREMIUM_ADDONS_VERSION', '3.11.2');
18
  define('PREMIUM_ADDONS_URL', plugins_url( '/', __FILE__ ) );
19
  define('PREMIUM_ADDONS_PATH', plugin_dir_path( __FILE__ ) );
20
  define('PREMIUM_ADDONS_FILE', __FILE__);
21
  define('PREMIUM_ADDONS_BASENAME', plugin_basename( PREMIUM_ADDONS_FILE ) );
22
- define('PREMIUM_ADDONS_STABLE_VERSION', '3.11.1');
23
 
24
  if( ! class_exists('Premium_Addons_Elementor') ) {
25
 
3
  Plugin Name: Premium Addons for Elementor
4
  Description: Premium Addons Plugin Includes 22+ premium widgets for Elementor Page Builder.
5
  Plugin URI: https://premiumaddons.com
6
+ Version: 3.11.3
7
  Author: Leap13
8
  Author URI: https://leap13.com/
9
  Text Domain: premium-addons-for-elementor
14
  if ( ! defined('ABSPATH') ) exit; // No access of directly access
15
 
16
  // Define Constants
17
+ define('PREMIUM_ADDONS_VERSION', '3.11.3');
18
  define('PREMIUM_ADDONS_URL', plugins_url( '/', __FILE__ ) );
19
  define('PREMIUM_ADDONS_PATH', plugin_dir_path( __FILE__ ) );
20
  define('PREMIUM_ADDONS_FILE', __FILE__);
21
  define('PREMIUM_ADDONS_BASENAME', plugin_basename( PREMIUM_ADDONS_FILE ) );
22
+ define('PREMIUM_ADDONS_STABLE_VERSION', '3.11.2');
23
 
24
  if( ! class_exists('Premium_Addons_Elementor') ) {
25
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate Link: https://premiumaddons.com/?utm_source=wp-repo&utm_medium=link&utm_c
5
  Requires at Least: 4.5
6
  Tested Up To: 5.3.2
7
  Requires PHP: 5.4
8
- Stable Tag: 3.11.2
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
@@ -175,9 +175,13 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
175
 
176
  == Changelog ==
177
 
 
 
 
 
178
  = 3.11.2 =
179
 
180
- - Tweak: Added RTL support for lightbox in Media Grid widget
181
  - Tweak: Added `Filter Tabs By Categories/Tags` in Blog widget.
182
  - Tweak: Added `Show/Hide Navigation Dots` option in Vertical Scroll widget.
183
  - Fixed: Banner widget image styling not applied after last version.
5
  Requires at Least: 4.5
6
  Tested Up To: 5.3.2
7
  Requires PHP: 5.4
8
+ Stable Tag: 3.11.3
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
175
 
176
  == Changelog ==
177
 
178
+ = 3.11.3 =
179
+
180
+ - Fixed: Premium Templates button not showing after Elementor v2.9.0
181
+
182
  = 3.11.2 =
183
 
184
+ - Tweak: Added RTL support for lightbox in Media Grid widget.
185
  - Tweak: Added `Filter Tabs By Categories/Tags` in Blog widget.
186
  - Tweak: Added `Show/Hide Navigation Dots` option in Vertical Scroll widget.
187
  - Fixed: Banner widget image styling not applied after last version.
widgets/premium-videobox.php CHANGED
@@ -87,7 +87,7 @@ class Premium_Videobox extends Widget_Base {
87
  'options' => [
88
  'id' => __('ID', 'premium-addons-for-elementor'),
89
  'embed' => __('Embed URL', 'premium-addons-for-elementor'),
90
- ],
91
  'condition' => [
92
  'premium_video_box_video_type!' => 'self',
93
  ]
@@ -99,7 +99,6 @@ class Premium_Videobox extends Widget_Base {
99
  'label' => __('Video ID', 'premium-addons-for-elementor'),
100
  'description' => __('Enter the numbers and letters after the equal sign which located in your YouTube video link or after the slash sign in your Vimeo video link. For example, z1hQgVpfTKU', 'premium-addons-for-elementor'),
101
  'type' => Controls_Manager::HIDDEN,
102
- 'dynamic' => [ 'active' => true ],
103
  'condition' => [
104
  'premium_video_box_video_type!' => 'self',
105
  'premium_video_box_video_id_embed_selection' => 'id',
@@ -112,7 +111,6 @@ class Premium_Videobox extends Widget_Base {
112
  'label' => __('Embed URL', 'premium-addons-for-elementor'),
113
  'description' => __('Enter your YouTube/Vimeo video link. For example, https://www.youtube.com/embed/z1hQgVpfTKU', 'premium-addons-for-elementor'),
114
  'type' => Controls_Manager::HIDDEN,
115
- 'dynamic' => [ 'active' => true ],
116
  'condition' => [
117
  'premium_video_box_video_type!' => 'self',
118
  'premium_video_box_video_id_embed_selection' => 'embed',
@@ -654,7 +652,7 @@ class Premium_Videobox extends Widget_Base {
654
  [
655
  'label' => __('Shadow','premium-addons-for-elementor'),
656
  'name' => 'premium_text_shadow',
657
- 'selector' => '.premium-video-box-text'
658
  ]
659
  );
660
 
87
  'options' => [
88
  'id' => __('ID', 'premium-addons-for-elementor'),
89
  'embed' => __('Embed URL', 'premium-addons-for-elementor'),
90
+ ],
91
  'condition' => [
92
  'premium_video_box_video_type!' => 'self',
93
  ]
99
  'label' => __('Video ID', 'premium-addons-for-elementor'),
100
  'description' => __('Enter the numbers and letters after the equal sign which located in your YouTube video link or after the slash sign in your Vimeo video link. For example, z1hQgVpfTKU', 'premium-addons-for-elementor'),
101
  'type' => Controls_Manager::HIDDEN,
 
102
  'condition' => [
103
  'premium_video_box_video_type!' => 'self',
104
  'premium_video_box_video_id_embed_selection' => 'id',
111
  'label' => __('Embed URL', 'premium-addons-for-elementor'),
112
  'description' => __('Enter your YouTube/Vimeo video link. For example, https://www.youtube.com/embed/z1hQgVpfTKU', 'premium-addons-for-elementor'),
113
  'type' => Controls_Manager::HIDDEN,
 
114
  'condition' => [
115
  'premium_video_box_video_type!' => 'self',
116
  'premium_video_box_video_id_embed_selection' => 'embed',
652
  [
653
  'label' => __('Shadow','premium-addons-for-elementor'),
654
  'name' => 'premium_text_shadow',
655
+ 'selector' => '{{WRAPPER}} .premium-video-box-text'
656
  ]
657
  );
658