Premium Addons for Elementor - Version 2.7.6

Version Description

  • Tweak: Disable tooltips option in Premium Vertical Scroll widget.
  • Tweak: Tooltips typography, border, shadow, margin and padding options in Premium Vertical Scroll widget.
  • Tweak: Removed text editor content type in Premium Vertical Scroll widget.
  • Tweak: Whole image link option in Premium Grid widget.
Download this release

Release Info

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

Code changes from version 2.7.5 to 2.7.6

admin/includes/notices.php CHANGED
@@ -26,6 +26,7 @@ class Premium_Admin_Notices {
26
  // $this->handle_get_pro_notice();
27
  // $this->handle_review_notice();
28
  $this->handle_multi_scroll_notice();
 
29
  }
30
 
31
  /**
@@ -36,6 +37,7 @@ class Premium_Admin_Notices {
36
  // $this->get_review_notice();
37
  // $this->get_pro_notice();
38
  $this->get_multi_scroll_notice();
 
39
  }
40
 
41
  /**
@@ -82,7 +84,7 @@ class Premium_Admin_Notices {
82
  }
83
 
84
  /**
85
- * Checks if multiscroll message is dismissed.
86
  * @access public
87
  * @return void
88
  */
@@ -101,6 +103,26 @@ class Premium_Admin_Notices {
101
  exit;
102
  }
103
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
  /**
105
  * Shows an admin notice when Elementor is missing.
106
  * @since 1.0.0
@@ -198,7 +220,7 @@ class Premium_Admin_Notices {
198
  }
199
 
200
  /**
201
- * Shows an admin notice for multiscroll.
202
  * @since 2.7.0
203
  * @return void
204
  */
@@ -225,6 +247,35 @@ class Premium_Admin_Notices {
225
 
226
  }
227
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
228
  /**
229
  * Returns the active theme slug
230
  */
26
  // $this->handle_get_pro_notice();
27
  // $this->handle_review_notice();
28
  $this->handle_multi_scroll_notice();
29
+ $this->handle_vertical_scroll_notice();
30
  }
31
 
32
  /**
37
  // $this->get_review_notice();
38
  // $this->get_pro_notice();
39
  $this->get_multi_scroll_notice();
40
+ $this->get_vertical_scroll_notice();
41
  }
42
 
43
  /**
84
  }
85
 
86
  /**
87
+ * Checks if multi scroll message is dismissed.
88
  * @access public
89
  * @return void
90
  */
103
  exit;
104
  }
105
 
106
+ /**
107
+ * Checks if vertical scroll message is dismissed.
108
+ * @access public
109
+ * @return void
110
+ */
111
+ public function handle_vertical_scroll_notice() {
112
+ if ( ! isset( $_GET['free_scroll'] ) ) {
113
+ return;
114
+ }
115
+
116
+ if ( 'opt_out' === $_GET['free_scroll'] ) {
117
+ check_admin_referer( 'opt_out' );
118
+
119
+ update_option( 'free_scroll_notice', '1' );
120
+ }
121
+
122
+ wp_redirect( remove_query_arg( 'free_scroll' ) );
123
+ exit;
124
+ }
125
+
126
  /**
127
  * Shows an admin notice when Elementor is missing.
128
  * @since 1.0.0
220
  }
221
 
222
  /**
223
+ * Shows an admin notice for multi scroll.
224
  * @since 2.7.0
225
  * @return void
226
  */
247
 
248
  }
249
 
250
+
251
+ /**
252
+ * Shows an admin notice for vertical scroll.
253
+ * @since 2.7.6
254
+ * @return void
255
+ */
256
+ public function get_vertical_scroll_notice() {
257
+
258
+ $scroll_notice = get_option( 'free_scroll_notice' );
259
+
260
+ $theme = self::get_installed_theme();
261
+
262
+ $notice_url = sprintf( 'https://premiumaddons.com/vertical-scroll-widget-for-elementor-page-builder/?utm_source=vertical-scroll-notification&utm_medium=wp-dash&utm_campaign=get-pro&utm_term=%s', $theme );
263
+
264
+ if ( '1' === $scroll_notice ) {
265
+ return;
266
+ } else if ( '1' !== $scroll_notice ) {
267
+ $optout_url = wp_nonce_url( add_query_arg( 'free_scroll', 'opt_out' ), 'opt_out' );
268
+
269
+ $scroll_message = sprintf( __('<p style="display: flex; align-items: center; padding:10px 10px 10px 0;"><img src="%s" style="margin-right: 0.8em; width: 40px;"><span>NEW!&nbsp</span><strong><span>Vertical Scroll Widget for Elementor&nbsp</strong>is Now Available in Premium Addons for Elementor.&nbsp</span><a href="%s" target="_blank" style="flex-grow: 2;"> Check it out now.</a>', 'premium-addons-for-elementor' ), PREMIUM_ADDONS_URL .'admin/images/premium-addons-logo.png', $notice_url );
270
+
271
+ }
272
+
273
+ $scroll_message .= sprintf(__('<a href="%s" style="text-decoration: none; margin-left: 1em; float:right; "><span class="dashicons dashicons-dismiss"></span></a></p>', 'premium-addons-for-elementor'), $optout_url );
274
+
275
+ $this->render_admin_notices( $scroll_message );
276
+
277
+ }
278
+
279
  /**
280
  * Returns the active theme slug
281
  */
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 2.7.4</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 2.7.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>
assets/css/premium-addons.css CHANGED
@@ -3060,6 +3060,16 @@ button.premium-modal-box-modal-close {
3060
  .pa-gallery-img {
3061
  position: relative;
3062
  }
 
 
 
 
 
 
 
 
 
 
3063
  .pa-gallery-img-container {
3064
  overflow: hidden;
3065
  -webkit-backface-visibility: hidden;
@@ -3182,7 +3192,8 @@ button.premium-modal-box-modal-close {
3182
  width: 100%;
3183
  text-align: center;
3184
  -webkit-transform: translateY(-50%);
3185
- transform: translateY(-50%)
 
3186
  }
3187
  .pa-gallery-img.style1 .premium-gallery-caption {
3188
  position: absolute;
@@ -3301,11 +3312,23 @@ button.premium-modal-box-modal-close {
3301
  padding: 0;
3302
  }
3303
  .premium-vscroll-inner ul.premium-vscroll-dots-list li {
3304
- display: block;
3305
  width: 14px;
3306
  height: 13px;
3307
  margin: 7px;
3308
  position: relative;
 
 
 
 
 
 
 
 
 
 
 
 
 
3309
  }
3310
  .premium-vscroll-inner .premium-vscroll-dot-item .premium-vscroll-nav-link {
3311
  display: block;
@@ -3344,7 +3367,7 @@ button.premium-modal-box-modal-close {
3344
  color: #fff;
3345
  font-size: 14px;
3346
  font-family: arial,helvetica,sans-serif;
3347
- top: -5px;
3348
  white-space: nowrap;
3349
  max-width: 220px;
3350
  padding-left: 0.4em;
3060
  .pa-gallery-img {
3061
  position: relative;
3062
  }
3063
+ .pa-gallery-img .pa-gallery-whole-link {
3064
+ position: absolute;
3065
+ top: 0;
3066
+ left: 0;
3067
+ width: 100%;
3068
+ height: 100%;
3069
+ }
3070
+ .pa-gallery-img.style2 .pa-gallery-whole-link {
3071
+ z-index: 99;
3072
+ }
3073
  .pa-gallery-img-container {
3074
  overflow: hidden;
3075
  -webkit-backface-visibility: hidden;
3192
  width: 100%;
3193
  text-align: center;
3194
  -webkit-transform: translateY(-50%);
3195
+ transform: translateY(-50%);
3196
+ z-index: 999;
3197
  }
3198
  .pa-gallery-img.style1 .premium-gallery-caption {
3199
  position: absolute;
3312
  padding: 0;
3313
  }
3314
  .premium-vscroll-inner ul.premium-vscroll-dots-list li {
 
3315
  width: 14px;
3316
  height: 13px;
3317
  margin: 7px;
3318
  position: relative;
3319
+ display: -webkit-box;
3320
+ display: -webkit-flex;
3321
+ display: -ms-flexbox;
3322
+ display: flex;
3323
+ -webkit-box-pack: center;
3324
+ -ms-flex-pack: center;
3325
+ -webkit-justify-content: center;
3326
+ justify-content: center;
3327
+ -webkit-box-align: center;
3328
+ -ms-flex-align: center;
3329
+ -webkit-align-items: center;
3330
+ align-items: center;
3331
+ overflow: visible;
3332
  }
3333
  .premium-vscroll-inner .premium-vscroll-dot-item .premium-vscroll-nav-link {
3334
  display: block;
3367
  color: #fff;
3368
  font-size: 14px;
3369
  font-family: arial,helvetica,sans-serif;
3370
+ /* top: -5px;*/
3371
  white-space: nowrap;
3372
  max-width: 220px;
3373
  padding-left: 0.4em;
assets/js/premium-addons.js CHANGED
@@ -572,8 +572,9 @@
572
  self.onNavDotEnter = function() {
573
  var $this = $( this ),
574
  index = $this.data("index");
575
- $('<div class="premium-vscroll-tooltip"><span>' + settings.dotsText[index] + "</span></div>").hide().appendTo($this).fadeIn(200);
576
-
 
577
  };
578
 
579
  self.onNavDotLeave = function() {
572
  self.onNavDotEnter = function() {
573
  var $this = $( this ),
574
  index = $this.data("index");
575
+ if( settings.tooltips ) {
576
+ $('<div class="premium-vscroll-tooltip"><span>' + settings.dotsText[index] + "</span></div>").hide().appendTo($this).fadeIn(200);
577
+ }
578
  };
579
 
580
  self.onNavDotLeave = function() {
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.7.5
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
  if ( ! defined('ABSPATH') ) exit; // No access of directly access
23
 
24
 
25
- define('PREMIUM_ADDONS_VERSION', '2.7.5');
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.7.4');
31
 
32
  if( ! class_exists('Premium_Addons_Elementor') ) {
33
  /*
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.7.6
7
  Author: Leap13
8
  Author URI: http://leap13.com/
9
  Text Domain: premium-addons-for-elementor
22
  if ( ! defined('ABSPATH') ) exit; // No access of directly access
23
 
24
 
25
+ define('PREMIUM_ADDONS_VERSION', '2.7.6');
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.7.5');
31
 
32
  if( ! class_exists('Premium_Addons_Elementor') ) {
33
  /*
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: http://premiumaddons.com
5
  Requires at least: 4.5
6
  Tested up to: 4.9.8
7
  Requires PHP: 5.4
8
- Stable tag: 2.7.5
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
@@ -137,6 +137,14 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
137
 
138
  == Changelog ==
139
 
 
 
 
 
 
 
 
 
140
  = 2.7.5 =
141
 
142
  - Fixed: Navigation dots redirection issue in Premium Vertical Scroll widget.
5
  Requires at least: 4.5
6
  Tested up to: 4.9.8
7
  Requires PHP: 5.4
8
+ Stable tag: 2.7.6
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
137
 
138
  == Changelog ==
139
 
140
+ = 2.7.6 =
141
+
142
+ - Tweak: Disable tooltips option in Premium Vertical Scroll widget.
143
+ - Tweak: Tooltips typography, border, shadow, margin and padding options in Premium Vertical Scroll widget.
144
+ - Tweak: Removed text editor content type in Premium Vertical Scroll widget.
145
+ - Tweak: Whole image link option in Premium Grid widget.
146
+
147
+
148
  = 2.7.5 =
149
 
150
  - Fixed: Navigation dots redirection issue in Premium Vertical Scroll widget.
widgets/premium-grid.php CHANGED
@@ -203,6 +203,13 @@ class Premium_Grid extends Widget_Base {
203
  'label_block' => true,
204
  ]);
205
 
 
 
 
 
 
 
 
206
  $this->add_control('premium_gallery_img_content',
207
  [
208
  'label' => __( 'Images', 'premium-addons-for-elementor' ),
@@ -1135,12 +1142,12 @@ class Premium_Grid extends Widget_Base {
1135
  <?php if( 'yes' == $settings['premium_gallery_light_box'] ) : ?>
1136
  <a href="<?php echo esc_attr( $image['premium_gallery_img']['url'] ); ?>" class="pa-gallery-magnific-image" data-rel="prettyPhoto[premium-grid-<?php echo esc_attr($this->get_id()); ?>]"><span><i class="fa fa-search-plus"></i></span></a>
1137
  <?php endif; ?>
1138
- <?php if( $image['premium_gallery_img_link_type'] == 'url' && !empty($image['premium_gallery_img_link']['url']) ) :
1139
  $icon_link = $image['premium_gallery_img_link']['url'];
1140
  $external = $image['premium_gallery_img_link']['is_external'] ? 'target="_blank"' : '';
1141
  $no_follow = $image['premium_gallery_img_link']['nofollow'] ? 'rel="nofollow"' : ''; ?>
1142
  <a href="<?php echo esc_attr( $icon_link ); ?>" <?php echo $external; ?><?php echo $no_follow; ?> class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1143
- <?php elseif( $image['premium_gallery_img_link_type'] == 'link') :
1144
  $icon_link = get_permalink($image['premium_gallery_img_existing']);
1145
  ?>
1146
  <a href="<?php echo esc_attr( $icon_link ); ?>" class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
@@ -1161,12 +1168,12 @@ class Premium_Grid extends Widget_Base {
1161
  <?php if( 'yes' == $settings['premium_gallery_light_box'] ) : ?>
1162
  <a href="<?php echo esc_attr( $image['premium_gallery_img']['url'] ); ?>" class="pa-gallery-magnific-image" data-rel="prettyPhoto[premium-grid-<?php echo esc_attr($this->get_id()); ?>]"><span><i class="fa fa-search-plus"></i></span></a>
1163
  <?php endif; ?>
1164
- <?php if( $image['premium_gallery_img_link_type'] == 'url' && !empty($image['premium_gallery_img_link']['url']) ) :
1165
  $icon_link = $image['premium_gallery_img_link']['url'];
1166
  $external = $image['premium_gallery_img_link']['is_external'] ? 'target="_blank"' : '';
1167
  $no_follow = $image['premium_gallery_img_link']['nofollow'] ? 'rel="nofollow"' : ''; ?>
1168
  <a href="<?php echo esc_attr( $icon_link ); ?>" <?php echo $external; ?><?php echo $no_follow; ?> class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1169
- <?php elseif( $image['premium_gallery_img_link_type'] == 'link') :
1170
  $icon_link = get_permalink($image['premium_gallery_img_existing']);
1171
  ?>
1172
  <a href="<?php echo esc_attr( $icon_link ); ?>" class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
@@ -1187,12 +1194,12 @@ class Premium_Grid extends Widget_Base {
1187
  <?php if( 'yes' == $settings['premium_gallery_light_box'] ) : ?>
1188
  <a href="<?php echo esc_attr( $image['premium_gallery_img']['url'] ); ?>" class="pa-gallery-magnific-image" data-rel="prettyPhoto[premium-grid-<?php echo esc_attr($this->get_id()); ?>]"><span><i class="fa fa-search-plus"></i></span></a>
1189
  <?php endif; ?>
1190
- <?php if( $image['premium_gallery_img_link_type'] == 'url' && !empty($image['premium_gallery_img_link']['url']) ) :
1191
  $icon_link = $image['premium_gallery_img_link']['url'];
1192
  $external = $image['premium_gallery_img_link']['is_external'] ? 'target="_blank"' : '';
1193
  $no_follow = $image['premium_gallery_img_link']['nofollow'] ? 'rel="nofollow"' : ''; ?>
1194
  <a href="<?php echo esc_attr( $icon_link ); ?>" <?php echo $external; ?><?php echo $no_follow; ?> class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1195
- <?php elseif( $image['premium_gallery_img_link_type'] == 'link') :
1196
  $icon_link = get_permalink($image['premium_gallery_img_existing']);
1197
  ?>
1198
  <a href="<?php echo esc_attr( $icon_link ); ?>" class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
@@ -1208,6 +1215,16 @@ class Premium_Grid extends Widget_Base {
1208
  </div>
1209
  </div>
1210
  <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
1211
  </div>
1212
  </div>
1213
  <?php endforeach; ?>
@@ -1233,12 +1250,12 @@ class Premium_Grid extends Widget_Base {
1233
  <?php if( 'yes' == $settings['premium_gallery_light_box'] ) : ?>
1234
  <a href="<?php echo esc_attr( $image['premium_gallery_img']['url'] ); ?>" class="pa-gallery-magnific-image" data-rel="prettyPhoto[premium-grid-<?php echo esc_attr($this->get_id()); ?>]"><span><i class="fa fa-search-plus"></i></span></a>
1235
  <?php endif; ?>
1236
- <?php if( $image['premium_gallery_img_link_type'] == 'url' && !empty($image['premium_gallery_img_link']['url']) ) :
1237
  $icon_link = $image['premium_gallery_img_link']['url'];
1238
  $external = $image['premium_gallery_img_link']['is_external'] ? 'target="_blank"' : '';
1239
  $no_follow = $image['premium_gallery_img_link']['nofollow'] ? 'rel="nofollow"' : ''; ?>
1240
  <a href="<?php echo esc_attr( $icon_link ); ?>" <?php echo $external; ?><?php echo $no_follow; ?> class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1241
- <?php elseif( $image['premium_gallery_img_link_type'] == 'link') :
1242
  $icon_link = get_permalink($image['premium_gallery_img_existing']);
1243
  ?>
1244
  <a href="<?php echo esc_attr( $icon_link ); ?>" class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
@@ -1259,12 +1276,12 @@ class Premium_Grid extends Widget_Base {
1259
  <?php if( 'yes' == $settings['premium_gallery_light_box'] ) : ?>
1260
  <a href="<?php echo esc_attr( $image['premium_gallery_img']['url'] ); ?>" class="pa-gallery-magnific-image" data-rel="prettyPhoto[premium-grid-<?php echo esc_attr($this->get_id()); ?>]"><span><i class="fa fa-search-plus"></i></span></a>
1261
  <?php endif; ?>
1262
- <?php if( $image['premium_gallery_img_link_type'] == 'url' && !empty($image['premium_gallery_img_link']['url']) ) :
1263
  $icon_link = $image['premium_gallery_img_link']['url'];
1264
  $external = $image['premium_gallery_img_link']['is_external'] ? 'target="_blank"' : '';
1265
  $no_follow = $image['premium_gallery_img_link']['nofollow'] ? 'rel="nofollow"' : ''; ?>
1266
  <a href="<?php echo esc_attr( $icon_link ); ?>" <?php echo $external; ?><?php echo $no_follow; ?> class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1267
- <?php elseif( $image['premium_gallery_img_link_type'] == 'link') :
1268
  $icon_link = get_permalink($image['premium_gallery_img_existing']);
1269
  ?>
1270
  <a href="<?php echo esc_attr( $icon_link ); ?>" class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
@@ -1285,12 +1302,12 @@ class Premium_Grid extends Widget_Base {
1285
  <?php if( 'yes' == $settings['premium_gallery_light_box'] ) : ?>
1286
  <a href="<?php echo esc_attr( $image['premium_gallery_img']['url'] ); ?>" class="pa-gallery-magnific-image" data-rel="prettyPhoto[premium-grid-<?php echo esc_attr($this->get_id()); ?>]"><span><i class="fa fa-search-plus"></i></span></a>
1287
  <?php endif; ?>
1288
- <?php if( $image['premium_gallery_img_link_type'] == 'url' && !empty($image['premium_gallery_img_link']['url']) ) :
1289
  $icon_link = $image['premium_gallery_img_link']['url'];
1290
  $external = $image['premium_gallery_img_link']['is_external'] ? 'target="_blank"' : '';
1291
  $no_follow = $image['premium_gallery_img_link']['nofollow'] ? 'rel="nofollow"' : ''; ?>
1292
  <a href="<?php echo esc_attr( $icon_link ); ?>" <?php echo $external; ?><?php echo $no_follow; ?> class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1293
- <?php elseif( $image['premium_gallery_img_link_type'] == 'link') :
1294
  $icon_link = get_permalink($image['premium_gallery_img_existing']);
1295
  ?>
1296
  <a href="<?php echo esc_attr( $icon_link ); ?>" class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
@@ -1306,6 +1323,15 @@ class Premium_Grid extends Widget_Base {
1306
  </div>
1307
  </div>
1308
  <?php endif; ?>
 
 
 
 
 
 
 
 
 
1309
  </div>
1310
  </div>
1311
  <?php endforeach; ?>
203
  'label_block' => true,
204
  ]);
205
 
206
+ $img_repeater->add_control('premium_gallery_link_whole',
207
+ [
208
+ 'label' => esc_html__( 'Whole Image Link', 'premium-addons-for-elementor' ),
209
+ 'type' => Controls_Manager::SWITCHER,
210
+ ]
211
+ );
212
+
213
  $this->add_control('premium_gallery_img_content',
214
  [
215
  'label' => __( 'Images', 'premium-addons-for-elementor' ),
1142
  <?php if( 'yes' == $settings['premium_gallery_light_box'] ) : ?>
1143
  <a href="<?php echo esc_attr( $image['premium_gallery_img']['url'] ); ?>" class="pa-gallery-magnific-image" data-rel="prettyPhoto[premium-grid-<?php echo esc_attr($this->get_id()); ?>]"><span><i class="fa fa-search-plus"></i></span></a>
1144
  <?php endif; ?>
1145
+ <?php if( $image['premium_gallery_link_whole'] != 'yes' && $image['premium_gallery_img_link_type'] == 'url' && !empty($image['premium_gallery_img_link']['url']) ) :
1146
  $icon_link = $image['premium_gallery_img_link']['url'];
1147
  $external = $image['premium_gallery_img_link']['is_external'] ? 'target="_blank"' : '';
1148
  $no_follow = $image['premium_gallery_img_link']['nofollow'] ? 'rel="nofollow"' : ''; ?>
1149
  <a href="<?php echo esc_attr( $icon_link ); ?>" <?php echo $external; ?><?php echo $no_follow; ?> class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1150
+ <?php elseif( $image['premium_gallery_link_whole'] != 'yes' && $image['premium_gallery_img_link_type'] == 'link') :
1151
  $icon_link = get_permalink($image['premium_gallery_img_existing']);
1152
  ?>
1153
  <a href="<?php echo esc_attr( $icon_link ); ?>" class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1168
  <?php if( 'yes' == $settings['premium_gallery_light_box'] ) : ?>
1169
  <a href="<?php echo esc_attr( $image['premium_gallery_img']['url'] ); ?>" class="pa-gallery-magnific-image" data-rel="prettyPhoto[premium-grid-<?php echo esc_attr($this->get_id()); ?>]"><span><i class="fa fa-search-plus"></i></span></a>
1170
  <?php endif; ?>
1171
+ <?php if( $image['premium_gallery_link_whole'] != 'yes' && $image['premium_gallery_img_link_type'] == 'url' && !empty($image['premium_gallery_img_link']['url']) ) :
1172
  $icon_link = $image['premium_gallery_img_link']['url'];
1173
  $external = $image['premium_gallery_img_link']['is_external'] ? 'target="_blank"' : '';
1174
  $no_follow = $image['premium_gallery_img_link']['nofollow'] ? 'rel="nofollow"' : ''; ?>
1175
  <a href="<?php echo esc_attr( $icon_link ); ?>" <?php echo $external; ?><?php echo $no_follow; ?> class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1176
+ <?php elseif( $image['premium_gallery_link_whole'] != 'yes' && $image['premium_gallery_img_link_type'] == 'link') :
1177
  $icon_link = get_permalink($image['premium_gallery_img_existing']);
1178
  ?>
1179
  <a href="<?php echo esc_attr( $icon_link ); ?>" class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1194
  <?php if( 'yes' == $settings['premium_gallery_light_box'] ) : ?>
1195
  <a href="<?php echo esc_attr( $image['premium_gallery_img']['url'] ); ?>" class="pa-gallery-magnific-image" data-rel="prettyPhoto[premium-grid-<?php echo esc_attr($this->get_id()); ?>]"><span><i class="fa fa-search-plus"></i></span></a>
1196
  <?php endif; ?>
1197
+ <?php if( $image['premium_gallery_link_whole'] != 'yes' && $image['premium_gallery_img_link_type'] == 'url' && !empty($image['premium_gallery_img_link']['url']) ) :
1198
  $icon_link = $image['premium_gallery_img_link']['url'];
1199
  $external = $image['premium_gallery_img_link']['is_external'] ? 'target="_blank"' : '';
1200
  $no_follow = $image['premium_gallery_img_link']['nofollow'] ? 'rel="nofollow"' : ''; ?>
1201
  <a href="<?php echo esc_attr( $icon_link ); ?>" <?php echo $external; ?><?php echo $no_follow; ?> class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1202
+ <?php elseif( $image['premium_gallery_link_whole'] != 'yes' && $image['premium_gallery_img_link_type'] == 'link') :
1203
  $icon_link = get_permalink($image['premium_gallery_img_existing']);
1204
  ?>
1205
  <a href="<?php echo esc_attr( $icon_link ); ?>" class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1215
  </div>
1216
  </div>
1217
  <?php endif; ?>
1218
+ <?php if( $image['premium_gallery_link_whole'] == 'yes' && $image['premium_gallery_img_link_type'] == 'url' && !empty($image['premium_gallery_img_link']['url']) ) :
1219
+ $icon_link = $image['premium_gallery_img_link']['url'];
1220
+ $external = $image['premium_gallery_img_link']['is_external'] ? 'target="_blank"' : '';
1221
+ $no_follow = $image['premium_gallery_img_link']['nofollow'] ? 'rel="nofollow"' : ''; ?>
1222
+ <a href="<?php echo esc_attr( $icon_link ); ?>" <?php echo $external; ?><?php echo $no_follow; ?> class="pa-gallery-whole-link"></a>
1223
+ <?php elseif( $image['premium_gallery_link_whole'] == 'yes' && $image['premium_gallery_img_link_type'] == 'link' ) :
1224
+ $icon_link = get_permalink($image['premium_gallery_img_existing']); ?>
1225
+ <a href="<?php echo esc_attr( $icon_link ); ?>" <?php echo $external; ?><?php echo $no_follow; ?> class="pa-gallery-whole-link"></a>
1226
+ <?php endif; ?>
1227
+
1228
  </div>
1229
  </div>
1230
  <?php endforeach; ?>
1250
  <?php if( 'yes' == $settings['premium_gallery_light_box'] ) : ?>
1251
  <a href="<?php echo esc_attr( $image['premium_gallery_img']['url'] ); ?>" class="pa-gallery-magnific-image" data-rel="prettyPhoto[premium-grid-<?php echo esc_attr($this->get_id()); ?>]"><span><i class="fa fa-search-plus"></i></span></a>
1252
  <?php endif; ?>
1253
+ <?php if( $image['premium_gallery_link_whole'] != 'yes' && $image['premium_gallery_img_link_type'] == 'url' && !empty($image['premium_gallery_img_link']['url']) ) :
1254
  $icon_link = $image['premium_gallery_img_link']['url'];
1255
  $external = $image['premium_gallery_img_link']['is_external'] ? 'target="_blank"' : '';
1256
  $no_follow = $image['premium_gallery_img_link']['nofollow'] ? 'rel="nofollow"' : ''; ?>
1257
  <a href="<?php echo esc_attr( $icon_link ); ?>" <?php echo $external; ?><?php echo $no_follow; ?> class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1258
+ <?php elseif( $image['premium_gallery_link_whole'] != 'yes' && $image['premium_gallery_img_link_type'] == 'link' ) :
1259
  $icon_link = get_permalink($image['premium_gallery_img_existing']);
1260
  ?>
1261
  <a href="<?php echo esc_attr( $icon_link ); ?>" class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1276
  <?php if( 'yes' == $settings['premium_gallery_light_box'] ) : ?>
1277
  <a href="<?php echo esc_attr( $image['premium_gallery_img']['url'] ); ?>" class="pa-gallery-magnific-image" data-rel="prettyPhoto[premium-grid-<?php echo esc_attr($this->get_id()); ?>]"><span><i class="fa fa-search-plus"></i></span></a>
1278
  <?php endif; ?>
1279
+ <?php if( $image['premium_gallery_link_whole'] != 'yes' && $image['premium_gallery_img_link_type'] == 'url' && !empty($image['premium_gallery_img_link']['url']) ) :
1280
  $icon_link = $image['premium_gallery_img_link']['url'];
1281
  $external = $image['premium_gallery_img_link']['is_external'] ? 'target="_blank"' : '';
1282
  $no_follow = $image['premium_gallery_img_link']['nofollow'] ? 'rel="nofollow"' : ''; ?>
1283
  <a href="<?php echo esc_attr( $icon_link ); ?>" <?php echo $external; ?><?php echo $no_follow; ?> class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1284
+ <?php elseif( $image['premium_gallery_link_whole'] != 'yes' && $image['premium_gallery_img_link_type'] == 'link' ) :
1285
  $icon_link = get_permalink($image['premium_gallery_img_existing']);
1286
  ?>
1287
  <a href="<?php echo esc_attr( $icon_link ); ?>" class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1302
  <?php if( 'yes' == $settings['premium_gallery_light_box'] ) : ?>
1303
  <a href="<?php echo esc_attr( $image['premium_gallery_img']['url'] ); ?>" class="pa-gallery-magnific-image" data-rel="prettyPhoto[premium-grid-<?php echo esc_attr($this->get_id()); ?>]"><span><i class="fa fa-search-plus"></i></span></a>
1304
  <?php endif; ?>
1305
+ <?php if( $image['premium_gallery_link_whole'] != 'yes' && $image['premium_gallery_img_link_type'] == 'url' && !empty($image['premium_gallery_img_link']['url']) ) :
1306
  $icon_link = $image['premium_gallery_img_link']['url'];
1307
  $external = $image['premium_gallery_img_link']['is_external'] ? 'target="_blank"' : '';
1308
  $no_follow = $image['premium_gallery_img_link']['nofollow'] ? 'rel="nofollow"' : ''; ?>
1309
  <a href="<?php echo esc_attr( $icon_link ); ?>" <?php echo $external; ?><?php echo $no_follow; ?> class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1310
+ <?php elseif( $image['premium_gallery_link_whole'] != 'yes' && $image['premium_gallery_img_link_type'] == 'link' ) :
1311
  $icon_link = get_permalink($image['premium_gallery_img_existing']);
1312
  ?>
1313
  <a href="<?php echo esc_attr( $icon_link ); ?>" class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1323
  </div>
1324
  </div>
1325
  <?php endif; ?>
1326
+ <?php if( $image['premium_gallery_link_whole'] == 'yes' && $image['premium_gallery_img_link_type'] == 'url' && !empty($image['premium_gallery_img_link']['url']) ) :
1327
+ $icon_link = $image['premium_gallery_img_link']['url'];
1328
+ $external = $image['premium_gallery_img_link']['is_external'] ? 'target="_blank"' : '';
1329
+ $no_follow = $image['premium_gallery_img_link']['nofollow'] ? 'rel="nofollow"' : ''; ?>
1330
+ <a href="<?php echo esc_attr( $icon_link ); ?>" <?php echo $external; ?><?php echo $no_follow; ?> class="pa-gallery-whole-link"></a>
1331
+ <?php elseif( $image['premium_gallery_link_whole'] == 'yes' && $image['premium_gallery_img_link_type'] == 'link' ) :
1332
+ $icon_link = get_permalink($image['premium_gallery_img_existing']); ?>
1333
+ <a href="<?php echo esc_attr( $icon_link ); ?>" <?php echo $external; ?><?php echo $no_follow; ?> class="pa-gallery-whole-link"></a>
1334
+ <?php endif; ?>
1335
  </div>
1336
  </div>
1337
  <?php endforeach; ?>
widgets/premium-vscroll.php CHANGED
@@ -49,7 +49,7 @@ class Premium_Vscroll extends Widget_Base {
49
 
50
  $this->add_control('template_height_hint',
51
  [
52
- 'label' => '<span style="line-height: 1.4em;">It\'s recommended that templates be the same height</span>',
53
  'type' => Controls_Manager::RAW_HTML,
54
 
55
  ]
@@ -57,39 +57,12 @@ class Premium_Vscroll extends Widget_Base {
57
 
58
  $repeater = new REPEATER();
59
 
60
- $repeater->add_control('section_content',
61
- [
62
- 'label' => esc_html__('Content Type', 'premium-addons-for-elementor'),
63
- 'type' => Controls_Manager::SELECT,
64
- 'options' => [
65
- 'text' => esc_html__('Text Editor', 'premium-addons-for-elementor'),
66
- 'temp' => esc_html__('Elementor Template', 'premium-addons-for-elementor'),
67
- ],
68
- 'default' => 'temp'
69
- ]
70
- );
71
-
72
- $repeater->add_control('section_text',
73
- [
74
- 'type' => Controls_Manager::WYSIWYG,
75
- 'default' => '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.',
76
- 'label_block' => true,
77
- 'dynamic' => [ 'active' => true ],
78
- 'condition' => [
79
- 'section_content' => 'text',
80
- ],
81
- ]
82
- );
83
-
84
  $repeater->add_control('section_template',
85
  [
86
  'label' => esc_html__( 'Elementor Template', 'premium-addons-for-elementor' ),
87
  'type' => Controls_Manager::SELECT2,
88
  'options' => $this->getTemplateInstance()->get_elementor_page_list(),
89
  'multiple' => false,
90
- 'condition' => [
91
- 'section_content' => 'temp'
92
- ]
93
  ]
94
  );
95
 
@@ -197,11 +170,22 @@ class Premium_Vscroll extends Widget_Base {
197
  ]
198
  );
199
 
 
 
 
 
 
 
 
 
200
  $this->add_control('dots_tooltips',
201
  [
202
  'label' => esc_html__('Dots Tooltips Text', 'premium-addons-for-elementor'),
203
  'type' => Controls_Manager::TEXT,
204
- 'description' => esc_html__('Add text for each navigation dot separated by \',\'','premium-addons-for-elementor')
 
 
 
205
  ]
206
  );
207
 
@@ -256,93 +240,10 @@ class Premium_Vscroll extends Widget_Base {
256
 
257
  $this->end_controls_section();
258
 
259
- $this->start_controls_section('section_text',
260
- [
261
- 'label' => esc_html__('Text', 'premium-addons-for-elementor'),
262
- 'tab' => CONTROLS_MANAGER::TAB_STYLE,
263
- ]
264
- );
265
-
266
- $this->add_control('text_color',
267
- [
268
- 'label' => esc_html__('Text Color', 'premium-addons-for-elementor'),
269
- 'type' => Controls_Manager::COLOR,
270
- 'scheme' => [
271
- 'type' => Scheme_Color::get_type(),
272
- 'value' => Scheme_Color::COLOR_1,
273
- ],
274
- 'selectors' => [
275
- '{{WRAPPER}} .premium-vscroll-text' => 'color: {{VALUE}};',
276
- ],
277
- ]
278
- );
279
-
280
- $this->add_control('section_background',
281
- [
282
- 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
283
- 'type' => Controls_Manager::COLOR,
284
- 'selectors' => [
285
- '{{WRAPPER}} .premium-vscroll-text' => 'background-color: {{VALUE}};',
286
- ],
287
- ]
288
- );
289
-
290
- $this->add_group_control(
291
- Group_Control_Typography::get_type(),
292
- [
293
- 'name' => 'text_typography',
294
- 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
295
- 'selector' => '{{WRAPPER}} .premium-vscroll-text',
296
- ]
297
- );
298
-
299
- $this->add_group_control(
300
- Group_Control_Border::get_type(),
301
- [
302
- 'name' => 'text_border',
303
- 'selector' => '{{WRAPPER}} .premium-vscroll-text',
304
- ]
305
- );
306
-
307
- $this->add_control('text_border_radius',
308
- [
309
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
310
- 'type' => Controls_Manager::SLIDER,
311
- 'size_units' => ['px', '%' ,'em'],
312
- 'selectors' => [
313
- '{{WRAPPER}} .premium-vscroll-text' => 'border-radius: {{SIZE}}{{UNIT}};'
314
- ]
315
- ]
316
- );
317
-
318
- $this->add_responsive_control('text_margin',
319
- [
320
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
321
- 'type' => Controls_Manager::DIMENSIONS,
322
- 'size_units' => ['px', 'em', '%'],
323
- 'selectors' => [
324
- '{{WRAPPER}} .premium-vscroll-text' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
325
- ]
326
- ]
327
- );
328
-
329
- $this->add_responsive_control('text_padding',
330
- [
331
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
332
- 'type' => Controls_Manager::DIMENSIONS,
333
- 'size_units' => ['px', 'em', '%'],
334
- 'selectors' => [
335
- '{{WRAPPER}} .premium-vscroll-text' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
336
- ]
337
- ]
338
- );
339
-
340
- $this->end_controls_section();
341
-
342
  $this->start_controls_section('navigation_style',
343
  [
344
- 'label' => esc_html__('Navigation Dots', 'premium-addons-for-elementor'),
345
- 'tab' => CONTROLS_MANAGER::TAB_STYLE,
346
  ]
347
  );
348
 
@@ -352,7 +253,7 @@ class Premium_Vscroll extends Widget_Base {
352
  [
353
  'label' => esc_html__('Tooltips', 'premium-addons-for-elementor'),
354
  'condition' => [
355
- 'dots_tooltips!' => ''
356
  ]
357
  ]
358
  );
@@ -369,20 +270,19 @@ class Premium_Vscroll extends Widget_Base {
369
  '{{WRAPPER}} .premium-vscroll-tooltip' => 'color: {{VALUE}};',
370
  ],
371
  'condition' => [
372
- 'dots_tooltips!' => ''
373
  ]
374
  ]
375
  );
376
 
377
- $this->add_control('tooltips_font',
 
378
  [
379
- 'label' => esc_html__( 'Tooltips Text Font', 'premium-addons-for-elementor' ),
380
- 'type' => Controls_Manager::FONT,
381
- 'selectors' => [
382
- '{{WRAPPER}} .premium-vscroll-tooltip' => 'font-family: {{VALUE}};',
383
- ],
384
- 'condition' => [
385
- 'dots_tooltips!' => ''
386
  ]
387
  ]
388
  );
@@ -401,7 +301,18 @@ class Premium_Vscroll extends Widget_Base {
401
  '{{WRAPPER}} .premium-vscroll-inner .premium-vscroll-dots.left .premium-vscroll-tooltip::after' => 'border-right-color: {{VALUE}}',
402
  ],
403
  'condition' => [
404
- 'dots_tooltips!' => ''
 
 
 
 
 
 
 
 
 
 
 
405
  ]
406
  ]
407
  );
@@ -415,36 +326,46 @@ class Premium_Vscroll extends Widget_Base {
415
  '{{WRAPPER}} .premium-vscroll-tooltip' => 'border-radius: {{SIZE}}{{UNIT}};',
416
  ],
417
  'condition' => [
418
- 'dots_tooltips!' => ''
419
  ]
420
  ]
421
  );
422
 
423
- $this->add_responsive_control('tooltips_padding_left',
 
424
  [
425
- 'label' => esc_html__('Padding Left', 'premium-addons-for-elementor'),
426
- 'type' => Controls_Manager::SLIDER,
 
 
 
 
 
 
 
 
 
 
427
  'size_units' => ['px', 'em', '%'],
428
  'selectors' => [
429
- '{{WRAPPER}} .premium-vscroll-tooltip' => 'padding-left: {{SIZE}}{{UNIT}}',
430
  ],
431
- 'condition' => [
432
- 'dots_tooltips!' => ''
433
  ]
434
  ]
435
  );
436
 
437
- $this->add_responsive_control('tooltips_padding_right',
438
  [
439
- 'label' => esc_html__('Padding Right', 'premium-addons-for-elementor'),
440
- 'type' => Controls_Manager::SLIDER,
441
  'size_units' => ['px', 'em', '%'],
442
- 'separator' => 'after',
443
  'selectors' => [
444
- '{{WRAPPER}} .premium-vscroll-tooltip' => 'padding-right: {{SIZE}}{{UNIT}}',
445
  ],
446
- 'condition' => [
447
- 'dots_tooltips!' => ''
448
  ]
449
  ]
450
  );
@@ -766,11 +687,10 @@ class Premium_Vscroll extends Widget_Base {
766
 
767
  $this->add_render_attribute( 'vertical_scroll_sections_wrap', 'id', 'premium-vscroll-sections-wrap-' . $id );
768
 
769
- $this->add_render_attribute('section_text', 'class', 'premium-vscroll-text');
770
-
771
  $vscroll_settings = [
772
  'id' => $id,
773
  'speed' => !empty( $settings['scroll_speed'] ) ? $settings['scroll_speed'] * 1000 : 700,
 
774
  'dotsText' => $dots_text,
775
  'dotsPos' => $settings['navigation_dots_pos'],
776
  'dotsVPos' => $settings['navigation_dots_v_pos'],
@@ -807,18 +727,8 @@ class Premium_Vscroll extends Widget_Base {
807
  ?>
808
  <div <?php echo $this->get_render_attribute_string('section_' . $index); ?>>
809
  <?php
810
- if('temp' == $section['section_content'] ) :
811
- $template_id = $section['section_template'];
812
- echo $this->get_template_content($template_id);
813
- else :
814
- ?>
815
- <div class="premium-vscroll-tabelcell">
816
- <div <?php echo $this->get_render_attribute_string('section_text'); ?>>
817
- <?php echo $section['section_text']; ?>
818
- </div>
819
- </div>
820
- <?php
821
- endif;
822
  ?>
823
  </div>
824
  <?php endforeach; ?>
49
 
50
  $this->add_control('template_height_hint',
51
  [
52
+ 'label' => '<span style="line-height: 1.4em;"><b>Important<br></b></span><ul style="line-height: 1.2"><li>1- Section Height needs to be set to default.</li><li>2- It\'s recommended that templates be the same height.</li><li>3- For navigation menu, you will need to add navigation menu items first</li></ul>',
53
  'type' => Controls_Manager::RAW_HTML,
54
 
55
  ]
57
 
58
  $repeater = new REPEATER();
59
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
  $repeater->add_control('section_template',
61
  [
62
  'label' => esc_html__( 'Elementor Template', 'premium-addons-for-elementor' ),
63
  'type' => Controls_Manager::SELECT2,
64
  'options' => $this->getTemplateInstance()->get_elementor_page_list(),
65
  'multiple' => false,
 
 
 
66
  ]
67
  );
68
 
170
  ]
171
  );
172
 
173
+ $this->add_control('dots_tooltips_switcher',
174
+ [
175
+ 'label' => esc_html__('Dots Tooltips', 'premium-addons-for-elementor'),
176
+ 'type' => Controls_Manager::SWITCHER,
177
+ 'default' => 'yes'
178
+ ]
179
+ );
180
+
181
  $this->add_control('dots_tooltips',
182
  [
183
  'label' => esc_html__('Dots Tooltips Text', 'premium-addons-for-elementor'),
184
  'type' => Controls_Manager::TEXT,
185
+ 'description' => esc_html__('Add text for each navigation dot separated by \',\'','premium-addons-for-elementor'),
186
+ 'condition' => [
187
+ 'dots_tooltips_switcher' => 'yes'
188
+ ]
189
  ]
190
  );
191
 
240
 
241
  $this->end_controls_section();
242
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
243
  $this->start_controls_section('navigation_style',
244
  [
245
+ 'label' => esc_html__('Navigation Dots', 'premium-addons-for-elementor'),
246
+ 'tab' => CONTROLS_MANAGER::TAB_STYLE,
247
  ]
248
  );
249
 
253
  [
254
  'label' => esc_html__('Tooltips', 'premium-addons-for-elementor'),
255
  'condition' => [
256
+ 'dots_tooltips_switcher' => 'yes'
257
  ]
258
  ]
259
  );
270
  '{{WRAPPER}} .premium-vscroll-tooltip' => 'color: {{VALUE}};',
271
  ],
272
  'condition' => [
273
+ 'dots_tooltips_switcher' => 'yes'
274
  ]
275
  ]
276
  );
277
 
278
+ $this->add_group_control(
279
+ Group_Control_Typography::get_type(),
280
  [
281
+ 'name' => 'tooltips_typography',
282
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
283
+ 'selector' => '{{WRAPPER}} .premium-vscroll-tooltip span',
284
+ 'condition' => [
285
+ 'dots_tooltips_switcher' => 'yes'
 
 
286
  ]
287
  ]
288
  );
301
  '{{WRAPPER}} .premium-vscroll-inner .premium-vscroll-dots.left .premium-vscroll-tooltip::after' => 'border-right-color: {{VALUE}}',
302
  ],
303
  'condition' => [
304
+ 'dots_tooltips_switcher' => 'yes'
305
+ ]
306
+ ]
307
+ );
308
+
309
+ $this->add_group_control(
310
+ Group_Control_Border::get_type(),
311
+ [
312
+ 'name' => 'tooltips_border',
313
+ 'selector' => '{{WRAPPER}} .premium-vscroll-tooltip',
314
+ 'condition' => [
315
+ 'dots_tooltips_switcher' => 'yes'
316
  ]
317
  ]
318
  );
326
  '{{WRAPPER}} .premium-vscroll-tooltip' => 'border-radius: {{SIZE}}{{UNIT}};',
327
  ],
328
  'condition' => [
329
+ 'dots_tooltips_switcher' => 'yes'
330
  ]
331
  ]
332
  );
333
 
334
+ $this->add_group_control(
335
+ Group_Control_Box_Shadow::get_type(),
336
  [
337
+ 'name' => 'tooltips_shadow',
338
+ 'selector' => '{{WRAPPER}} .premium-vscroll-tooltip',
339
+ 'condition' => [
340
+ 'dots_tooltips_switcher' => 'yes'
341
+ ]
342
+ ]
343
+ );
344
+
345
+ $this->add_responsive_control('tooltips_margin',
346
+ [
347
+ 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
348
+ 'type' => Controls_Manager::DIMENSIONS,
349
  'size_units' => ['px', 'em', '%'],
350
  'selectors' => [
351
+ '{{WRAPPER}} .premium-vscroll-tooltip' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
352
  ],
353
+ 'condition' => [
354
+ 'dots_tooltips_switcher' => 'yes'
355
  ]
356
  ]
357
  );
358
 
359
+ $this->add_responsive_control('tooltips_padding',
360
  [
361
+ 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
362
+ 'type' => Controls_Manager::DIMENSIONS,
363
  'size_units' => ['px', 'em', '%'],
 
364
  'selectors' => [
365
+ '{{WRAPPER}} .premium-vscroll-tooltip' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
366
  ],
367
+ 'condition' => [
368
+ 'dots_tooltips_switcher' => 'yes'
369
  ]
370
  ]
371
  );
687
 
688
  $this->add_render_attribute( 'vertical_scroll_sections_wrap', 'id', 'premium-vscroll-sections-wrap-' . $id );
689
 
 
 
690
  $vscroll_settings = [
691
  'id' => $id,
692
  'speed' => !empty( $settings['scroll_speed'] ) ? $settings['scroll_speed'] * 1000 : 700,
693
+ 'tooltips' => 'yes' == $settings['dots_tooltips_switcher'] ? true : false,
694
  'dotsText' => $dots_text,
695
  'dotsPos' => $settings['navigation_dots_pos'],
696
  'dotsVPos' => $settings['navigation_dots_v_pos'],
727
  ?>
728
  <div <?php echo $this->get_render_attribute_string('section_' . $index); ?>>
729
  <?php
730
+ $template_id = $section['section_template'];
731
+ echo $this->get_template_content($template_id);
 
 
 
 
 
 
 
 
 
 
732
  ?>
733
  </div>
734
  <?php endforeach; ?>