Premium Addons for Elementor - Version 3.0.7

Version Description

  • Tweak: Added responsive controls for arrows size/position in Premium Carousel widget.
Download this release

Release Info

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

Code changes from version 3.0.6 to 3.0.7

admin/settings/version-control.php CHANGED
@@ -79,7 +79,7 @@ class PA_Version_Control {
79
  <tr class="pa-roll-row">
80
  <th>Rollback Version</th>
81
  <td>
82
- <div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 3.0.5</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ) ); ?> </div>
83
  <p class="pa-roll-desc"><span>Warning: Please backup your database before making the rollback.</span></p>
84
  </td>
85
  </tr>
79
  <tr class="pa-roll-row">
80
  <th>Rollback Version</th>
81
  <td>
82
+ <div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 3.0.6</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ) ); ?> </div>
83
  <p class="pa-roll-desc"><span>Warning: Please backup your database before making the rollback.</span></p>
84
  </td>
85
  </tr>
includes/class-addons-integration.php CHANGED
@@ -132,14 +132,6 @@ class Premium_Addons_Integration {
132
  */
133
  public function premium_register_frontend_scripts() {
134
 
135
- // wp_register_script(
136
- // 'waypoints-js',
137
- // PREMIUM_ADDONS_URL . 'assets/js/lib/jquery.waypoints.js',
138
- // array('jquery'),
139
- // PREMIUM_ADDONS_VERSION,
140
- // true
141
- // );
142
-
143
  wp_register_script(
144
  'premium-addons-js',
145
  PREMIUM_ADDONS_URL . 'assets/js/premium-addons.js',
@@ -194,15 +186,7 @@ class Premium_Addons_Integration {
194
  PREMIUM_ADDONS_VERSION,
195
  true
196
  );
197
-
198
- // wp_register_script(
199
- // 'slick-carousel-js',
200
- // PREMIUM_ADDONS_URL . 'assets/js/lib/slickmin.js',
201
- // array('jquery'),
202
- // PREMIUM_ADDONS_VERSION,
203
- // true
204
- // );
205
-
206
  wp_register_script(
207
  'isotope-js',
208
  PREMIUM_ADDONS_URL . 'assets/js/lib/isotope.js',
@@ -227,14 +211,6 @@ class Premium_Addons_Integration {
227
  true
228
  );
229
 
230
- // wp_register_script(
231
- // 'visible-js',
232
- // PREMIUM_ADDONS_URL . 'assets/js/lib/jquery.visible.js',
233
- // array('jquery'),
234
- // PREMIUM_ADDONS_VERSION,
235
- // true
236
- // );
237
-
238
  wp_register_script(
239
  'vscroll-js',
240
  PREMIUM_ADDONS_URL . 'assets/js/premium-vscroll.js',
132
  */
133
  public function premium_register_frontend_scripts() {
134
 
 
 
 
 
 
 
 
 
135
  wp_register_script(
136
  'premium-addons-js',
137
  PREMIUM_ADDONS_URL . 'assets/js/premium-addons.js',
186
  PREMIUM_ADDONS_VERSION,
187
  true
188
  );
189
+
 
 
 
 
 
 
 
 
190
  wp_register_script(
191
  'isotope-js',
192
  PREMIUM_ADDONS_URL . 'assets/js/lib/isotope.js',
211
  true
212
  );
213
 
 
 
 
 
 
 
 
 
214
  wp_register_script(
215
  'vscroll-js',
216
  PREMIUM_ADDONS_URL . 'assets/js/premium-vscroll.js',
premium-addons-for-elementor.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Premium Addons for Elementor
4
  Description: Premium Addons Plugin Includes 21+ premium widgets for Elementor Page Builder.
5
  Plugin URI: https://premiumaddons.com
6
- Version: 3.0.6
7
  Author: Leap13
8
  Author URI: http://leap13.com/
9
  Text Domain: premium-addons-for-elementor
@@ -23,12 +23,12 @@ if ( ! defined('ABSPATH') ) exit; // No access of directly access
23
 
24
 
25
  // Define Constants
26
- define('PREMIUM_ADDONS_VERSION', '3.0.6');
27
  define('PREMIUM_ADDONS_URL', plugins_url('/', __FILE__));
28
  define('PREMIUM_ADDONS_PATH', plugin_dir_path(__FILE__));
29
  define('PREMIUM_ADDONS_FILE', __FILE__);
30
  define('PREMIUM_ADDONS_BASENAME', plugin_basename(__FILE__));
31
- define('PREMIUM_ADDONS_STABLE_VERSION', '3.0.5');
32
 
33
  if( ! class_exists('Premium_Addons_Elementor') ) {
34
  /*
3
  Plugin Name: Premium Addons for Elementor
4
  Description: Premium Addons Plugin Includes 21+ premium widgets for Elementor Page Builder.
5
  Plugin URI: https://premiumaddons.com
6
+ Version: 3.0.7
7
  Author: Leap13
8
  Author URI: http://leap13.com/
9
  Text Domain: premium-addons-for-elementor
23
 
24
 
25
  // Define Constants
26
+ define('PREMIUM_ADDONS_VERSION', '3.0.7');
27
  define('PREMIUM_ADDONS_URL', plugins_url('/', __FILE__));
28
  define('PREMIUM_ADDONS_PATH', plugin_dir_path(__FILE__));
29
  define('PREMIUM_ADDONS_FILE', __FILE__);
30
  define('PREMIUM_ADDONS_BASENAME', plugin_basename(__FILE__));
31
+ define('PREMIUM_ADDONS_STABLE_VERSION', '3.0.6');
32
 
33
  if( ! class_exists('Premium_Addons_Elementor') ) {
34
  /*
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: http://premiumaddons.com
5
  Requires at least: 4.5
6
  Tested up to: 5.0.3
7
  Requires PHP: 5.4
8
- Stable tag: 3.0.6
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
@@ -138,9 +138,13 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
138
 
139
  == Changelog ==
140
 
 
 
 
 
141
  = 3.0.6 =
142
 
143
- - Tweak: Added badge text for widgets` icons on the editor page.
144
  - Fixed: Warning: implode(): Invalid arguments passed in `/premium-addons-for-elementor/queries.php` on line 27.
145
 
146
  = 3.0.5 =
5
  Requires at least: 4.5
6
  Tested up to: 5.0.3
7
  Requires PHP: 5.4
8
+ Stable tag: 3.0.7
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
138
 
139
  == Changelog ==
140
 
141
+ = 3.0.7 =
142
+
143
+ - Tweak: Added responsive controls for arrows size/position in Premium Carousel widget.
144
+
145
  = 3.0.6 =
146
 
147
+ - Tweak: Added badge text for widgets` icon on the editor page.
148
  - Fixed: Warning: implode(): Invalid arguments passed in `/premium-addons-for-elementor/queries.php` on line 27.
149
 
150
  = 3.0.5 =
widgets/premium-carousel.php CHANGED
@@ -387,7 +387,7 @@ class Premium_Carousel extends Widget_Base {
387
  ]
388
  );
389
 
390
- $this->add_control('premium_carousel_arrow_size',
391
  [
392
  'label' => __( 'Size', 'premium-addons-for-elementor' ),
393
  'type' => Controls_Manager::SLIDER,
@@ -468,7 +468,7 @@ class Premium_Carousel extends Widget_Base {
468
  ]
469
  );
470
 
471
- $this->add_control('premium_carousel_arrow_position',
472
  [
473
  'label' => __('Position (PX)', 'premium-addons-for-elementor'),
474
  'type' => Controls_Manager::SLIDER,
@@ -482,6 +482,10 @@ class Premium_Carousel extends Widget_Base {
482
  'premium_carousel_navigation_show' => 'yes',
483
  'premium_carousel_slider_type' => 'horizontal'
484
  ],
 
 
 
 
485
  ]
486
  );
487
 
@@ -683,8 +687,6 @@ class Premium_Carousel extends Widget_Base {
683
 
684
  $settings = $this->get_settings();
685
 
686
- $arrows_position = $settings['premium_carousel_arrow_position']['size'] . 'px';
687
-
688
  $vertical = $settings['premium_carousel_slider_type'] == 'vertical' ? true : false;
689
  // responsive carousel set up
690
 
@@ -935,16 +937,6 @@ class Premium_Carousel extends Widget_Base {
935
  <?php endforeach; ?>
936
  </div>
937
  </div>
938
- <style>
939
- <?php if(!empty($settings['premium_carousel_arrow_position']['size'])) : ?>
940
- #premium-carousel-wrapper-<?php echo esc_attr( $this->get_id() ); ?> a.carousel-arrow.carousel-next {
941
- right: <?php echo $arrows_position; ?>
942
- }
943
- #premium-carousel-wrapper-<?php echo esc_attr( $this->get_id() ); ?> a.carousel-arrow.carousel-prev {
944
- left: <?php echo $arrows_position; ?>
945
- }
946
- <?php endif; ?>
947
- </style>
948
  <?php
949
  }
950
  }
387
  ]
388
  );
389
 
390
+ $this->add_responsive_control('premium_carousel_arrow_size',
391
  [
392
  'label' => __( 'Size', 'premium-addons-for-elementor' ),
393
  'type' => Controls_Manager::SLIDER,
468
  ]
469
  );
470
 
471
+ $this->add_responsive_control('premium_carousel_arrow_position',
472
  [
473
  'label' => __('Position (PX)', 'premium-addons-for-elementor'),
474
  'type' => Controls_Manager::SLIDER,
482
  'premium_carousel_navigation_show' => 'yes',
483
  'premium_carousel_slider_type' => 'horizontal'
484
  ],
485
+ 'selectors' => [
486
+ '{{WRAPPER}} .premium-carousel-wrapper a.carousel-arrow.carousel-next' => 'right: {{SIZE}}px',
487
+ '{{WRAPPER}} .premium-carousel-wrapper a.carousel-arrow.carousel-prev' => 'left: {{SIZE}}px',
488
+ ]
489
  ]
490
  );
491
 
687
 
688
  $settings = $this->get_settings();
689
 
 
 
690
  $vertical = $settings['premium_carousel_slider_type'] == 'vertical' ? true : false;
691
  // responsive carousel set up
692
 
937
  <?php endforeach; ?>
938
  </div>
939
  </div>
 
 
 
 
 
 
 
 
 
 
940
  <?php
941
  }
942
  }