Premium Addons for Elementor - Version 3.8.0

Version Description

  • Tweak: Change Lightbox, Links and Videos icons options added to Media Grid widget.
  • Tweak: Added Enable Social Icons option in Person widget.
  • Tweak: Added Text Shadow option for Name, Title and Description strings in Person widget.
  • Tweak: Added Transition Duration option for image and content in Person widget.
  • Tweak: Added more styling options for social icons in Person widget.
Download this release

Release Info

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

Code changes from version 3.7.9 to 3.8.0

admin/assets/js/admin.js CHANGED
@@ -23,7 +23,7 @@
23
  focusConfirm: true
24
  }).then(function(json_data) {}, function(dismiss) {
25
  if (dismiss === 'cancel') {
26
- window.location.href = redirectionLink + settings.theme;
27
  }
28
  });
29
  });
23
  focusConfirm: true
24
  }).then(function(json_data) {}, function(dismiss) {
25
  if (dismiss === 'cancel') {
26
+ window.open( redirectionLink + settings.theme, '_blank' );
27
  }
28
  });
29
  });
admin/includes/admin-notices.php CHANGED
@@ -173,7 +173,7 @@ class Admin_Notices {
173
 
174
  $elementor_path = sprintf( '%1$s/%1$s.php', self::$elementor );
175
 
176
- if( ! defined( 'ELEMENTOR_VERSION' ) ) {
177
 
178
  if ( ! self::is_plugin_installed( $elementor_path ) ) {
179
 
@@ -345,7 +345,7 @@ class Admin_Notices {
345
 
346
  $det_notice = get_option( 'det_notice' );
347
 
348
- if( ! current_user_can( 'install_plugins' ) || '1' === $det_notice || defined( 'DET_VERSION' ) )
349
  return;
350
 
351
  $det_slug = 'disable-elementor-editor-translation';
173
 
174
  $elementor_path = sprintf( '%1$s/%1$s.php', self::$elementor );
175
 
176
+ if( ! defined('ELEMENTOR_VERSION' ) ) {
177
 
178
  if ( ! self::is_plugin_installed( $elementor_path ) ) {
179
 
345
 
346
  $det_notice = get_option( 'det_notice' );
347
 
348
+ if( ! current_user_can( 'install_plugins' ) || '1' === $det_notice || defined( 'DET_VERSION' ) )
349
  return;
350
 
351
  $det_slug = 'disable-elementor-editor-translation';
admin/includes/version-control.php CHANGED
@@ -92,7 +92,7 @@ class Version_Control {
92
  <tr class="pa-roll-row">
93
  <th><?php echo __('Rollback Version', 'premium-addons-for-elementor'); ?></th>
94
  <td>
95
- <div><?php echo sprintf( '<a target="_blank" href="%1$s" class="button pa-btn pa-rollback-button elementor-button-spinner">%2$s</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ), __('Reinstall Version 3.7.8', 'premium-addons-for-elementor') ); ?></div>
96
  <p class="pa-roll-desc">
97
  <span><?php echo __('Warning: Please backup your database before making the rollback.', 'premium-addons-for-elementor'); ?></span>
98
  </p>
92
  <tr class="pa-roll-row">
93
  <th><?php echo __('Rollback Version', 'premium-addons-for-elementor'); ?></th>
94
  <td>
95
+ <div><?php echo sprintf( '<a target="_blank" href="%1$s" class="button pa-btn pa-rollback-button elementor-button-spinner">%2$s</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ), __('Reinstall Version 3.7.9', 'premium-addons-for-elementor') ); ?></div>
96
  <p class="pa-roll-desc">
97
  <span><?php echo __('Warning: Please backup your database before making the rollback.', 'premium-addons-for-elementor'); ?></span>
98
  </p>
admin/settings/modules-setting.php CHANGED
@@ -402,15 +402,15 @@ class Modules_Settings {
402
  <th><?php echo __('Premium Alert Box', 'premium-addons-for-elementor'); ?></th>
403
  <td>
404
  <label class="switch">
405
- <input type="checkbox" id="premium-notbar" name="premium-notbar">
406
  <span class="pro-slider round"></span>
407
  </label>
408
  </td>
409
 
410
- <th><?php echo __('Premium Icon Box', 'premium-addons-for-elementor'); ?></th>
411
  <td>
412
  <label class="switch">
413
- <input type="checkbox" id="premium-iconbox" name="premium-iconbox">
414
  <span class="pro-slider round"></span>
415
  </label>
416
  </td>
@@ -419,18 +419,18 @@ class Modules_Settings {
419
 
420
  <tr>
421
 
422
- <th><?php echo __('Premium Twitter Feed', 'premium-addons-for-elementor'); ?></th>
423
  <td>
424
  <label class="switch">
425
- <input type="checkbox" id="premium-twitter-feed" name="premium-twitter-feed">
426
  <span class="pro-slider round"></span>
427
  </label>
428
  </td>
429
 
430
- <th><?php echo __('Premium Instagram Feed', 'premium-addons-for-elementor'); ?></th>
431
  <td>
432
  <label class="switch">
433
- <input type="checkbox" id="premium-instagram-feed" name="premium-instagram-feed">
434
  <span class="pro-slider round"></span>
435
  </label>
436
  </td>
@@ -438,18 +438,18 @@ class Modules_Settings {
438
  </tr>
439
 
440
  <tr>
441
- <th><?php echo __('Premium Flip Box', 'premium-addons-for-elementor'); ?></th>
442
  <td>
443
  <label class="switch">
444
- <input type="checkbox" id="premium-flipbox" name="premium-flipbox">
445
  <span class="pro-slider round"></span>
446
  </label>
447
  </td>
448
 
449
- <th><?php echo __('Premium Unfold', 'premium-addons-for-elementor'); ?></th>
450
  <td>
451
  <label class="switch">
452
- <input type="checkbox" id="premium-unfold" name="premium-unfold">
453
  <span class="pro-slider round"></span>
454
  </label>
455
  </td>
@@ -457,109 +457,128 @@ class Modules_Settings {
457
 
458
  <tr>
459
 
460
- <th><?php echo __('Premium Messenger Chat', 'premium-addons-for-elementor'); ?></th>
461
  <td>
462
  <label class="switch">
463
- <input type="checkbox" id="premium-fb-chat" name="premium-fb-chat">
464
  <span class="pro-slider round"></span>
465
  </label>
466
  </td>
467
 
468
- <th><?php echo __('Premium Tabs', 'premium-addons-for-elementor'); ?></th>
469
  <td>
470
  <label class="switch">
471
- <input type="checkbox" id="premium-tabs" name="premium-tabs">
472
  <span class="pro-slider round"></span>
473
  </label>
474
  </td>
475
  </tr>
476
 
477
  <tr>
478
- <th><?php echo __('Premium Chart', 'premium-addons-for-elementor'); ?></th>
479
  <td>
480
  <label class="switch">
481
- <input type="checkbox" id="premium-charts" name="premium-charts">
482
  <span class="pro-slider round"></span>
483
  </label>
484
  </td>
485
 
486
- <th><?php echo __('Premium Preview Window', 'premium-addons-for-elementor'); ?></th>
487
  <td>
488
  <label class="switch">
489
- <input type="checkbox" id="premium-prev-img" name="premium-prev-img">
490
  <span class="pro-slider round"></span>
491
  </label>
492
  </td>
493
  </tr>
494
 
495
  <tr>
496
- <th><?php echo __('Premium Image Hotspots', 'premium-addons-for-elementor'); ?></th>
497
  <td>
498
  <label class="switch">
499
- <input type="checkbox" id="premium-image-hotspots" name="premium-image-hotspots">
500
  <span class="pro-slider round"></span>
501
  </label>
502
  </td>
503
 
504
- <th><?php echo __('Premium Facebook Reviews', 'premium-addons-for-elementor'); ?></th>
505
  <td>
506
  <label class="switch">
507
- <input type="checkbox" id="premium-facebook-reviews" name="premium-facebook-reviews">
508
  <span class="pro-slider round"></span>
509
  </label>
510
  </td>
511
  </tr>
512
 
513
  <tr>
 
 
 
 
 
 
 
 
514
  <th><?php echo __('Premium Image Comparison', 'premium-addons-for-elementor'); ?></th>
515
  <td>
516
  <label class="switch">
517
- <input type="checkbox" id="premium-image-comparison" name="premium-image-comparison">
518
  <span class="pro-slider round"></span>
519
  </label>
520
  </td>
521
 
522
- <th><?php echo __('Premium Divider', 'premium-addons-for-elementor'); ?></th>
 
 
 
523
  <td>
524
  <label class="switch">
525
- <input type="checkbox" id="premium-divider" name="premium-divider">
526
  <span class="pro-slider round"></span>
527
  </label>
528
  </td>
529
 
 
 
 
 
 
 
 
530
  </tr>
531
 
532
  <tr>
533
- <th><?php echo __('Premium Magic Section', 'premium-addons-for-elementor'); ?></th>
534
  <td>
535
  <label class="switch">
536
- <input type="checkbox" id="premium-magic-section" name="premium-magic-section">
537
  <span class="pro-slider round"></span>
538
  </label>
539
  </td>
540
 
541
- <th><?php echo __('Premium Google Reviews', 'premium-addons-for-elementor'); ?></th>
542
  <td>
543
  <label class="switch">
544
- <input type="checkbox" id="premium-google-reviews" name="premium-google-reviews">
545
  <span class="pro-slider round"></span>
546
  </label>
547
  </td>
 
548
  </tr>
549
 
550
  <tr>
551
- <th><?php echo __('Premium Behance Feed', 'premium-addons-for-elementor'); ?></th>
552
  <td>
553
  <label class="switch">
554
- <input type="checkbox" id="premium-behance" name="premium-behance">
555
  <span class="pro-slider round"></span>
556
  </label>
557
  </td>
558
 
559
- <th><?php echo __('Premium Tables', 'premium-addons-for-elementor'); ?></th>
560
  <td>
561
  <label class="switch">
562
- <input type="checkbox" id="premium-tables" name="premium-tables">
563
  <span class="pro-slider round"></span>
564
  </label>
565
  </td>
@@ -567,18 +586,18 @@ class Modules_Settings {
567
  </tr>
568
 
569
  <tr>
570
- <th><?php echo __('Premium Image Layers', 'premium-addons-for-elementor'); ?></th>
571
  <td>
572
  <label class="switch">
573
- <input type="checkbox" id="premium-img-layers" name="premium-img-layers">
574
  <span class="pro-slider round"></span>
575
  </label>
576
  </td>
577
 
578
- <th><?php echo __('Premium iHover', 'premium-addons-for-elementor'); ?></th>
579
  <td>
580
  <label class="switch">
581
- <input type="checkbox" id="premium-ihover" name="premium-ihover">
582
  <span class="pro-slider round"></span>
583
  </label>
584
  </td>
@@ -586,18 +605,18 @@ class Modules_Settings {
586
  </tr>
587
 
588
  <tr>
589
- <th><?php echo __('Premium Content Switcher', 'premium-addons-for-elementor'); ?></th>
590
  <td>
591
  <label class="switch">
592
- <input type="checkbox" id="premium-content-toggle" name="premium-content-toggle">
593
  <span class="pro-slider round"></span>
594
  </label>
595
  </td>
596
 
597
- <th><?php echo __('Premium Facebook Feed', 'premium-addons-for-elementor'); ?></th>
598
  <td>
599
  <label class="switch">
600
- <input type="checkbox" id="premium-facebook-feed" name="premium-facebook-feed">
601
  <span class="pro-slider round"></span>
602
  </label>
603
  </td>
@@ -605,28 +624,46 @@ class Modules_Settings {
605
  </tr>
606
 
607
  <tr>
 
 
 
 
 
 
 
 
608
  <th><?php echo __('Premium Whatsapp Chat', 'premium-addons-for-elementor'); ?></th>
609
  <td>
610
  <label class="switch">
611
- <input type="checkbox" id="premium-whatsapp-chat" name="premium-whatsapp-chat">
612
  <span class="pro-slider round"></span>
613
  </label>
614
  </td>
615
 
616
  </tr>
617
 
 
 
 
 
 
 
 
 
 
 
618
  <tr>
619
  <th><?php echo __('Premium Section Parallax', 'premium-addons-for-elementor'); ?></th>
620
  <td>
621
  <label class="switch">
622
- <input type="checkbox" id="premium-section-parallax" name="premium-section-parallax">
623
  <span class="pro-slider round"></span>
624
  </label>
625
  </td>
626
  <th><?php echo __('Premium Section Particles', 'premium-addons-for-elementor'); ?></th>
627
  <td>
628
  <label class="switch">
629
- <input type="checkbox" id="premium-section-particles" name="premium-section-particles">
630
  <span class="pro-slider round"></span>
631
  </label>
632
  </td>
@@ -636,14 +673,14 @@ class Modules_Settings {
636
  <th><?php echo __('Premium Section Animated Gradient', 'premium-addons-for-elementor'); ?></th>
637
  <td>
638
  <label class="switch">
639
- <input type="checkbox" id="premium-section-gradient" name="premium-section-gradient">
640
  <span class="pro-slider round"></span>
641
  </label>
642
  </td>
643
  <th><?php echo __('Premium Section Ken Burns', 'premium-addons-for-elementor'); ?></th>
644
  <td>
645
  <label class="switch">
646
- <input type="checkbox" id="premium-section-kenburns" name="premium-section-kenburns">
647
  <span class="pro-slider round"></span>
648
  </label>
649
  </td>
402
  <th><?php echo __('Premium Alert Box', 'premium-addons-for-elementor'); ?></th>
403
  <td>
404
  <label class="switch">
405
+ <input type="checkbox">
406
  <span class="pro-slider round"></span>
407
  </label>
408
  </td>
409
 
410
+ <th><?php echo __('Premium Behance Feed', 'premium-addons-for-elementor'); ?></th>
411
  <td>
412
  <label class="switch">
413
+ <input type="checkbox">
414
  <span class="pro-slider round"></span>
415
  </label>
416
  </td>
419
 
420
  <tr>
421
 
422
+ <th><?php echo __('Premium Charts', 'premium-addons-for-elementor'); ?></th>
423
  <td>
424
  <label class="switch">
425
+ <input type="checkbox">
426
  <span class="pro-slider round"></span>
427
  </label>
428
  </td>
429
 
430
+ <th><?php echo __('Premium Content Switcher', 'premium-addons-for-elementor'); ?></th>
431
  <td>
432
  <label class="switch">
433
+ <input type="checkbox">
434
  <span class="pro-slider round"></span>
435
  </label>
436
  </td>
438
  </tr>
439
 
440
  <tr>
441
+ <th><?php echo __('Premium Background Transition', 'premium-addons-for-elementor'); ?></th>
442
  <td>
443
  <label class="switch">
444
+ <input type="checkbox">
445
  <span class="pro-slider round"></span>
446
  </label>
447
  </td>
448
 
449
+ <th><?php echo __('Premium Divider', 'premium-addons-for-elementor'); ?></th>
450
  <td>
451
  <label class="switch">
452
+ <input type="checkbox">
453
  <span class="pro-slider round"></span>
454
  </label>
455
  </td>
457
 
458
  <tr>
459
 
460
+ <th><?php echo __('Premium Facebook Feed', 'premium-addons-for-elementor'); ?></th>
461
  <td>
462
  <label class="switch">
463
+ <input type="checkbox">
464
  <span class="pro-slider round"></span>
465
  </label>
466
  </td>
467
 
468
+ <th><?php echo __('Premium Facebook Reviews', 'premium-addons-for-elementor'); ?></th>
469
  <td>
470
  <label class="switch">
471
+ <input type="checkbox">
472
  <span class="pro-slider round"></span>
473
  </label>
474
  </td>
475
  </tr>
476
 
477
  <tr>
478
+ <th><?php echo __('Premium Flip Box', 'premium-addons-for-elementor'); ?></th>
479
  <td>
480
  <label class="switch">
481
+ <input type="checkbox">
482
  <span class="pro-slider round"></span>
483
  </label>
484
  </td>
485
 
486
+ <th><?php echo __('Premium Google Reviews', 'premium-addons-for-elementor'); ?></th>
487
  <td>
488
  <label class="switch">
489
+ <input type="checkbox">
490
  <span class="pro-slider round"></span>
491
  </label>
492
  </td>
493
  </tr>
494
 
495
  <tr>
496
+ <th><?php echo __('Premium Icon Box', 'premium-addons-for-elementor'); ?></th>
497
  <td>
498
  <label class="switch">
499
+ <input type="checkbox">
500
  <span class="pro-slider round"></span>
501
  </label>
502
  </td>
503
 
504
+ <th><?php echo __('Premium iHover', 'premium-addons-for-elementor'); ?></th>
505
  <td>
506
  <label class="switch">
507
+ <input type="checkbox">
508
  <span class="pro-slider round"></span>
509
  </label>
510
  </td>
511
  </tr>
512
 
513
  <tr>
514
+ <th><?php echo __('Premium Image Accordion', 'premium-addons-for-elementor'); ?></th>
515
+ <td>
516
+ <label class="switch">
517
+ <input type="checkbox">
518
+ <span class="pro-slider round"></span>
519
+ </label>
520
+ </td>
521
+
522
  <th><?php echo __('Premium Image Comparison', 'premium-addons-for-elementor'); ?></th>
523
  <td>
524
  <label class="switch">
525
+ <input type="checkbox">
526
  <span class="pro-slider round"></span>
527
  </label>
528
  </td>
529
 
530
+ </tr>
531
+
532
+ <tr>
533
+ <th><?php echo __('Premium Image Hotspots', 'premium-addons-for-elementor'); ?></th>
534
  <td>
535
  <label class="switch">
536
+ <input type="checkbox">
537
  <span class="pro-slider round"></span>
538
  </label>
539
  </td>
540
 
541
+ <th><?php echo __('Premium Image Layers', 'premium-addons-for-elementor'); ?></th>
542
+ <td>
543
+ <label class="switch">
544
+ <input type="checkbox">
545
+ <span class="pro-slider round"></span>
546
+ </label>
547
+ </td>
548
  </tr>
549
 
550
  <tr>
551
+ <th><?php echo __('Premium Instagram Feed', 'premium-addons-for-elementor'); ?></th>
552
  <td>
553
  <label class="switch">
554
+ <input type="checkbox">
555
  <span class="pro-slider round"></span>
556
  </label>
557
  </td>
558
 
559
+ <th><?php echo __('Premium Magic Section', 'premium-addons-for-elementor'); ?></th>
560
  <td>
561
  <label class="switch">
562
+ <input type="checkbox">
563
  <span class="pro-slider round"></span>
564
  </label>
565
  </td>
566
+
567
  </tr>
568
 
569
  <tr>
570
+ <th><?php echo __('Premium Messenger Chat', 'premium-addons-for-elementor'); ?></th>
571
  <td>
572
  <label class="switch">
573
+ <input type="checkbox">
574
  <span class="pro-slider round"></span>
575
  </label>
576
  </td>
577
 
578
+ <th><?php echo __('Premium Multi Scroll', 'premium-addons-for-elementor'); ?></th>
579
  <td>
580
  <label class="switch">
581
+ <input type="checkbox">
582
  <span class="pro-slider round"></span>
583
  </label>
584
  </td>
586
  </tr>
587
 
588
  <tr>
589
+ <th><?php echo __('Premium Preview Window', 'premium-addons-for-elementor'); ?></th>
590
  <td>
591
  <label class="switch">
592
+ <input type="checkbox">
593
  <span class="pro-slider round"></span>
594
  </label>
595
  </td>
596
 
597
+ <th><?php echo __('Premium Table', 'premium-addons-for-elementor'); ?></th>
598
  <td>
599
  <label class="switch">
600
+ <input type="checkbox">
601
  <span class="pro-slider round"></span>
602
  </label>
603
  </td>
605
  </tr>
606
 
607
  <tr>
608
+ <th><?php echo __('Premium Tabs', 'premium-addons-for-elementor'); ?></th>
609
  <td>
610
  <label class="switch">
611
+ <input type="checkbox">
612
  <span class="pro-slider round"></span>
613
  </label>
614
  </td>
615
 
616
+ <th><?php echo __('Premium Twitter Feed', 'premium-addons-for-elementor'); ?></th>
617
  <td>
618
  <label class="switch">
619
+ <input type="checkbox">
620
  <span class="pro-slider round"></span>
621
  </label>
622
  </td>
624
  </tr>
625
 
626
  <tr>
627
+ <th><?php echo __('Premium Unfold', 'premium-addons-for-elementor'); ?></th>
628
+ <td>
629
+ <label class="switch">
630
+ <input type="checkbox">
631
+ <span class="pro-slider round"></span>
632
+ </label>
633
+ </td>
634
+
635
  <th><?php echo __('Premium Whatsapp Chat', 'premium-addons-for-elementor'); ?></th>
636
  <td>
637
  <label class="switch">
638
+ <input type="checkbox">
639
  <span class="pro-slider round"></span>
640
  </label>
641
  </td>
642
 
643
  </tr>
644
 
645
+ <tr>
646
+ <th><?php echo __('Premium Yelp Reviews', 'premium-addons-for-elementor'); ?></th>
647
+ <td>
648
+ <label class="switch">
649
+ <input type="checkbox">
650
+ <span class="pro-slider round"></span>
651
+ </label>
652
+ </td>
653
+ </tr>
654
+
655
  <tr>
656
  <th><?php echo __('Premium Section Parallax', 'premium-addons-for-elementor'); ?></th>
657
  <td>
658
  <label class="switch">
659
+ <input type="checkbox">
660
  <span class="pro-slider round"></span>
661
  </label>
662
  </td>
663
  <th><?php echo __('Premium Section Particles', 'premium-addons-for-elementor'); ?></th>
664
  <td>
665
  <label class="switch">
666
+ <input type="checkbox">
667
  <span class="pro-slider round"></span>
668
  </label>
669
  </td>
673
  <th><?php echo __('Premium Section Animated Gradient', 'premium-addons-for-elementor'); ?></th>
674
  <td>
675
  <label class="switch">
676
+ <input type="checkbox">
677
  <span class="pro-slider round"></span>
678
  </label>
679
  </td>
680
  <th><?php echo __('Premium Section Ken Burns', 'premium-addons-for-elementor'); ?></th>
681
  <td>
682
  <label class="switch">
683
+ <input type="checkbox">
684
  <span class="pro-slider round"></span>
685
  </label>
686
  </td>
includes/class-addons-integration.php CHANGED
@@ -232,7 +232,7 @@ class Addons_Integration {
232
  );
233
  }
234
 
235
- if( $maps_settings['premium-map-disable-api'] && '1' !== $maps_settings['premium-map-api'] ) {
236
  $api = sprintf ( 'https://maps.googleapis.com/maps/api/js?key=%1$s&language=%2$s', $maps_settings['premium-map-api'], $locale );
237
  wp_register_script(
238
  'premium-maps-api-js',
@@ -295,7 +295,7 @@ class Addons_Integration {
295
 
296
  $premium_maps_disable_api = self::$maps['premium-map-disable-api'];
297
 
298
- if ( $premium_maps_disable_api && '1' !== $premium_maps_api ) {
299
  $api = sprintf ( 'https://maps.googleapis.com/maps/api/js?key=%1$s&language=%2$s', $premium_maps_api, $locale );
300
  wp_enqueue_script(
301
  'premium-maps-api-js',
232
  );
233
  }
234
 
235
+ if( $maps_settings['premium-map-disable-api'] && '1' != $maps_settings['premium-map-api'] ) {
236
  $api = sprintf ( 'https://maps.googleapis.com/maps/api/js?key=%1$s&language=%2$s', $maps_settings['premium-map-api'], $locale );
237
  wp_register_script(
238
  'premium-maps-api-js',
295
 
296
  $premium_maps_disable_api = self::$maps['premium-map-disable-api'];
297
 
298
+ if ( $premium_maps_disable_api && '1' != $premium_maps_api ) {
299
  $api = sprintf ( 'https://maps.googleapis.com/maps/api/js?key=%1$s&language=%2$s', $premium_maps_api, $locale );
300
  wp_enqueue_script(
301
  'premium-maps-api-js',
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.7.9
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.7.9');
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.7.8');
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.8.0
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.8.0');
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.7.9');
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.2.2
7
  Requires PHP: 5.4
8
- Stable Tag: 3.7.9
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
@@ -56,7 +56,7 @@ Each widget and addon has been tested on different screen sizes, mobile devices,
56
 
57
  ### Section Addons & Widgets
58
  * [**Vertical Scroll Widget**](https://premiumaddons.com/vertical-scroll-widget-for-elementor-page-builder/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme) *(FREE)*: Create beautiful vertical scroll pages with advanced responsive control options using Premium Vertical Scroll Widget for Elementor Page Builder.
59
- * [**Background Transition Widget**](https://premiumaddons.com/elementor-background-transition-widget/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme) *(PRO)*: Create fancy, colorful, and eye-catching webpages using background Color Transition Widget for Elementor. It allows you to have a seamless transition between sections background colors.
60
  * [**Multi-Scroll Widget**](https://premiumaddons.com/multi-scroll-widget-for-elementor-page-builder/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme) *(PRO)*: The only Elementor widget available that allows you to create attractive multi-scroll effect. It can be used to create full landing pages or use it inside any page.
61
  * [**Parallax Section Addon**](https://premiumaddons.com/parallax-section-addon-for-elementor-page-builder/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme) *(PRO)*: The only Elementor Parallax Section Addon with freehand design experience and many styles to choose from.
62
  * [**Particles Section Addon**](https://premiumaddons.com/particles-section-addon-for-elementor-page-builder/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme) *(PRO)*: Create eye-catching particles background using Elementor and Premium Addons with many customization options.
@@ -175,6 +175,14 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
175
 
176
  == Changelog ==
177
 
 
 
 
 
 
 
 
 
178
  = 3.7.9 =
179
 
180
  - Tweak: Added style options for Container in Banner widget.
5
  Requires at Least: 4.5
6
  Tested Up To: 5.2.2
7
  Requires PHP: 5.4
8
+ Stable Tag: 3.8.0
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
56
 
57
  ### Section Addons & Widgets
58
  * [**Vertical Scroll Widget**](https://premiumaddons.com/vertical-scroll-widget-for-elementor-page-builder/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme) *(FREE)*: Create beautiful vertical scroll pages with advanced responsive control options using Premium Vertical Scroll Widget for Elementor Page Builder.
59
+ * [**Background Transition Widget**](https://premiumaddons.com/elementor-color-transition-widget/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme) *(PRO)*: Create fancy, colorful, and eye-catching webpages using background Color Transition Widget for Elementor. It allows you to have a seamless transition between sections background colors.
60
  * [**Multi-Scroll Widget**](https://premiumaddons.com/multi-scroll-widget-for-elementor-page-builder/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme) *(PRO)*: The only Elementor widget available that allows you to create attractive multi-scroll effect. It can be used to create full landing pages or use it inside any page.
61
  * [**Parallax Section Addon**](https://premiumaddons.com/parallax-section-addon-for-elementor-page-builder/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme) *(PRO)*: The only Elementor Parallax Section Addon with freehand design experience and many styles to choose from.
62
  * [**Particles Section Addon**](https://premiumaddons.com/particles-section-addon-for-elementor-page-builder/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme) *(PRO)*: Create eye-catching particles background using Elementor and Premium Addons with many customization options.
175
 
176
  == Changelog ==
177
 
178
+ = 3.8.0 =
179
+
180
+ - Tweak: Change Lightbox, Links and Videos icons options added to Media Grid widget.
181
+ - Tweak: Added `Enable Social Icons` option in Person widget.
182
+ - Tweak: Added `Text Shadow` option for Name, Title and Description strings in Person widget.
183
+ - Tweak: Added `Transition Duration` option for image and content in Person widget.
184
+ - Tweak: Added more styling options for social icons in Person widget.
185
+
186
  = 3.7.9 =
187
 
188
  - Tweak: Added style options for Container in Banner widget.
widgets/premium-contactform.php CHANGED
@@ -615,8 +615,8 @@ class Premium_Contactform extends Widget_Base {
615
 
616
  if ( ! empty( $settings['premium_wpcf7_form'] ) ) {
617
 
618
- $this->add_render_attribute( 'container', 'class',
619
- [
620
  'premium-cf7-container',
621
  $settings['premium_elements_input_focus_border_animation']
622
  ]
615
 
616
  if ( ! empty( $settings['premium_wpcf7_form'] ) ) {
617
 
618
+ $this->add_render_attribute( 'container', 'class',
619
+ [
620
  'premium-cf7-container',
621
  $settings['premium_elements_input_focus_border_animation']
622
  ]
widgets/premium-grid.php CHANGED
@@ -10,6 +10,7 @@ use Elementor\Utils;
10
  use Elementor\Embed;
11
  use Elementor\Control_Media;
12
  use Elementor\Controls_Manager;
 
13
  use Elementor\Repeater;
14
  use Elementor\Scheme_Color;
15
  use Elementor\Scheme_Typography;
@@ -642,37 +643,48 @@ class Premium_Grid extends Widget_Base {
642
  ]);
643
 
644
  $this->add_responsive_control('premium_gallery_gap',
645
- [
646
- 'label' => __('Image Gap', 'premium-addons-for-elementor'),
647
- 'type' => Controls_Manager::SLIDER,
648
- 'size_units' => ['px', '%', "em"],
649
- 'range' => [
650
- 'px' => [
651
- 'min' => 1,
652
- 'max' => 200,
653
- ],
654
- ],
655
- 'selectors' => [
656
- '{{WRAPPER}} .premium-gallery-item' => 'padding: {{SIZE}}{{UNIT}};'
657
- ]
658
- ]
659
- );
660
-
661
- $this->add_control('premium_gallery_img_style',
662
- [
663
- 'label' => __('Skin', 'premium-addons-for-elementor'),
664
- 'type' => Controls_Manager::SELECT,
665
- 'description' => __('Choose a layout style for the gallery','premium-addons-for-elementor'),
666
- 'options' => [
667
- 'default' => __('Style 1', 'premium-addons-for-elementor'),
668
- 'style1' => __('Style 2', 'premium-addons-for-elementor'),
669
- 'style2' => __('Style 3', 'premium-addons-for-elementor'),
670
  ],
671
- 'default' => 'default',
672
- 'separator' => 'before',
673
- 'label_block' => true
674
  ]
675
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
676
 
677
  $this->add_responsive_control('premium_gallery_style1_border_border',
678
  [
@@ -715,15 +727,90 @@ class Premium_Grid extends Widget_Base {
715
  ]
716
  );
717
 
718
- $this->add_control('premium_gallery_light_box',
719
- [
720
- 'label' => __( 'Lightbox', 'premium-addons-for-elementor' ),
721
- 'type' => Controls_Manager::SWITCHER,
722
- 'default' => 'yes',
723
- 'separator' => 'before'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
724
  ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
725
  );
726
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
727
  $this->add_control('premium_gallery_lightbox_type',
728
  [
729
  'label' => __( 'Lightbox Style', 'premium-addons-for-elementor' ),
@@ -769,61 +856,29 @@ class Premium_Grid extends Widget_Base {
769
  );
770
 
771
  $this->add_control('premium_gallery_overlay_gallery',
772
- [
773
- 'label' => __( 'Overlay Gallery Images', 'premium-addons-for-elementor' ),
774
- 'type' => Controls_Manager::SWITCHER,
775
- 'condition' => [
776
- 'premium_gallery_light_box' => 'yes',
777
- 'premium_gallery_lightbox_type' => 'default'
778
- ]
779
- ]
780
- );
781
-
782
- $this->add_control('premium_gallery_video_icon',
783
- [
784
- 'label' => __( 'Always Show Play Icon', 'premium-addons-for-elementor' ),
785
- 'type' => Controls_Manager::SWITCHER,
786
- 'return_value' => 'true',
787
- 'default' => 'true',
788
- 'condition' => [
789
- 'premium_gallery_img_style!' => 'style2'
790
- ]
791
- ]
792
- );
793
-
794
- $this->add_control('premium_gallery_rtl_mode',
795
  [
796
- 'label' => __( 'RTL Mode', 'premium-addons-for-elementor' ),
797
- 'description' => __('This option moves the origin of the grid to the right side. Useful for RTL direction sites', 'premium-addons-for-elementor'),
798
  'type' => Controls_Manager::SWITCHER,
 
 
 
 
799
  ]
800
  );
801
 
802
- $this->add_responsive_control('premium_gallery_content_align',
803
- [
804
- 'label' => __( 'Content Alignment', 'premium-addons-for-elementor' ),
805
- 'type' => Controls_Manager::CHOOSE,
806
- 'options' => [
807
- 'left' => [
808
- 'title'=> __( 'Left', 'premium-addons-for-elementor' ),
809
- 'icon' => 'fa fa-align-left',
810
- ],
811
- 'center' => [
812
- 'title'=> __( 'Center', 'premium-addons-for-elementor' ),
813
- 'icon' => 'fa fa-align-center',
814
- ],
815
- 'right' => [
816
- 'title'=> __( 'Right', 'premium-addons-for-elementor' ),
817
- 'icon' => 'fa fa-align-right',
818
- ],
819
- ],
820
- 'default' => 'center',
821
- 'separator' => 'before',
822
- 'selectors' => [
823
- '{{WRAPPER}} .premium-gallery-caption' => 'text-align: {{VALUE}};',
824
- ],
825
- ]
826
- );
827
 
828
  $this->end_controls_section();
829
 
@@ -2296,7 +2351,10 @@ class Premium_Grid extends Widget_Base {
2296
  ?>
2297
  <div <?php echo $this->get_render_attribute_string( $lightbox_key ); ?>>
2298
  <a class="pa-gallery-magnific-image pa-gallery-video-icon">
2299
- <span><i class="fas fa-play"></i></span>
 
 
 
2300
  </a>
2301
  </div>
2302
 
@@ -2327,7 +2385,10 @@ class Premium_Grid extends Widget_Base {
2327
 
2328
  ?>
2329
  <a <?php echo $this->get_render_attribute_string( $lightbox_key ); ?>>
2330
- <span><i class="fas fa-search"></i></span>
 
 
 
2331
  </a>
2332
  <?php
2333
  }
@@ -2371,7 +2432,10 @@ class Premium_Grid extends Widget_Base {
2371
  if ( ! empty ( $icon_link ) ) {
2372
  ?>
2373
  <a <?php echo $this->get_render_attribute_string( $link_key ); ?>>
2374
- <span><i class="fas fa-link"></i></span>
 
 
 
2375
  </a>
2376
  <?php
2377
  }
10
  use Elementor\Embed;
11
  use Elementor\Control_Media;
12
  use Elementor\Controls_Manager;
13
+ use Elementor\Icons_Manager;
14
  use Elementor\Repeater;
15
  use Elementor\Scheme_Color;
16
  use Elementor\Scheme_Typography;
643
  ]);
644
 
645
  $this->add_responsive_control('premium_gallery_gap',
646
+ [
647
+ 'label' => __('Image Gap', 'premium-addons-for-elementor'),
648
+ 'type' => Controls_Manager::SLIDER,
649
+ 'size_units' => ['px', '%', "em"],
650
+ 'range' => [
651
+ 'px' => [
652
+ 'min' => 0,
653
+ 'max' => 200,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
654
  ],
655
+ ],
656
+ 'selectors' => [
657
+ '{{WRAPPER}} .premium-gallery-item' => 'padding: {{SIZE}}{{UNIT}};'
658
  ]
659
+ ]
660
+ );
661
+
662
+ $this->add_control('premium_gallery_links_icon',
663
+ [
664
+ 'label' => __( 'Links Icon', 'premium-addons-for-elementor' ),
665
+ 'type' => Controls_Manager::ICONS,
666
+ 'default' => [
667
+ 'library' => 'fa-solid',
668
+ 'value' => 'fas fa-link',
669
+ ]
670
+ ]
671
+ );
672
+
673
+ $this->add_control('premium_gallery_img_style',
674
+ [
675
+ 'label' => __('Skin', 'premium-addons-for-elementor'),
676
+ 'type' => Controls_Manager::SELECT,
677
+ 'description' => __('Choose a layout style for the gallery','premium-addons-for-elementor'),
678
+ 'options' => [
679
+ 'default' => __('Style 1', 'premium-addons-for-elementor'),
680
+ 'style1' => __('Style 2', 'premium-addons-for-elementor'),
681
+ 'style2' => __('Style 3', 'premium-addons-for-elementor'),
682
+ ],
683
+ 'default' => 'default',
684
+ 'separator' => 'before',
685
+ 'label_block' => true
686
+ ]
687
+ );
688
 
689
  $this->add_responsive_control('premium_gallery_style1_border_border',
690
  [
727
  ]
728
  );
729
 
730
+ $this->add_control('premium_gallery_videos_heading',
731
+ [
732
+ 'label' => __( 'Videos', 'premium-addons-for-elementor' ),
733
+ 'type' => Controls_Manager::HEADING,
734
+ 'separator' => 'before'
735
+ ]
736
+ );
737
+
738
+ $this->add_control('premium_gallery_video_icon',
739
+ [
740
+ 'label' => __( 'Always Show Play Icon', 'premium-addons-for-elementor' ),
741
+ 'type' => Controls_Manager::SWITCHER,
742
+ 'return_value' => 'true',
743
+ 'default' => 'true',
744
+ 'condition' => [
745
+ 'premium_gallery_img_style!' => 'style2'
746
+ ],
747
+
748
+ ]
749
+ );
750
+
751
+ $this->add_control('premium_gallery_videos_icon',
752
+ [
753
+ 'label' => __( 'Lightbox Icon', 'premium-addons-for-elementor' ),
754
+ 'type' => Controls_Manager::ICONS,
755
+ 'default' => [
756
+ 'library' => 'fa-solid',
757
+ 'value' => 'fas fa-play',
758
  ]
759
+ ]
760
+ );
761
+
762
+ $this->add_control('premium_gallery_rtl_mode',
763
+ [
764
+ 'label' => __( 'RTL Mode', 'premium-addons-for-elementor' ),
765
+ 'description' => __('This option moves the origin of the grid to the right side. Useful for RTL direction sites', 'premium-addons-for-elementor'),
766
+ 'type' => Controls_Manager::SWITCHER,
767
+ 'separator' => 'before'
768
+ ]
769
+ );
770
+
771
+ $this->add_responsive_control('premium_gallery_content_align',
772
+ [
773
+ 'label' => __( 'Content Alignment', 'premium-addons-for-elementor' ),
774
+ 'type' => Controls_Manager::CHOOSE,
775
+ 'options' => [
776
+ 'left' => [
777
+ 'title'=> __( 'Left', 'premium-addons-for-elementor' ),
778
+ 'icon' => 'fa fa-align-left',
779
+ ],
780
+ 'center' => [
781
+ 'title'=> __( 'Center', 'premium-addons-for-elementor' ),
782
+ 'icon' => 'fa fa-align-center',
783
+ ],
784
+ 'right' => [
785
+ 'title'=> __( 'Right', 'premium-addons-for-elementor' ),
786
+ 'icon' => 'fa fa-align-right',
787
+ ],
788
+ ],
789
+ 'default' => 'center',
790
+ 'separator' => 'before',
791
+ 'selectors' => [
792
+ '{{WRAPPER}} .premium-gallery-caption' => 'text-align: {{VALUE}};',
793
+ ],
794
+ ]
795
  );
796
 
797
+ $this->end_controls_section();
798
+
799
+ $this->start_controls_section('premium_gallery_lightbox_section',
800
+ [
801
+ 'label' => __('Lightbox', 'premium-addons-for-elementor'),
802
+ ]
803
+ );
804
+
805
+ $this->add_control('premium_gallery_light_box',
806
+ [
807
+ 'label' => __( 'Lightbox', 'premium-addons-for-elementor' ),
808
+ 'type' => Controls_Manager::SWITCHER,
809
+ 'default' => 'yes',
810
+ 'separator' => 'before'
811
+ ]
812
+ );
813
+
814
  $this->add_control('premium_gallery_lightbox_type',
815
  [
816
  'label' => __( 'Lightbox Style', 'premium-addons-for-elementor' ),
856
  );
857
 
858
  $this->add_control('premium_gallery_overlay_gallery',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
859
  [
860
+ 'label' => __( 'Overlay Gallery Images', 'premium-addons-for-elementor' ),
 
861
  'type' => Controls_Manager::SWITCHER,
862
+ 'condition' => [
863
+ 'premium_gallery_light_box' => 'yes',
864
+ 'premium_gallery_lightbox_type' => 'default'
865
+ ]
866
  ]
867
  );
868
 
869
+ $this->add_control('premium_gallery_lightbox_icon',
870
+ [
871
+ 'label' => __( 'Lightbox Icon', 'premium-addons-for-elementor' ),
872
+ 'type' => Controls_Manager::ICONS,
873
+ 'default' => [
874
+ 'library' => 'fa-solid',
875
+ 'value' => 'fas fa-search',
876
+ ],
877
+ 'condition' => [
878
+ 'premium_gallery_light_box' => 'yes'
879
+ ]
880
+ ]
881
+ );
 
 
 
 
 
 
 
 
 
 
 
 
882
 
883
  $this->end_controls_section();
884
 
2351
  ?>
2352
  <div <?php echo $this->get_render_attribute_string( $lightbox_key ); ?>>
2353
  <a class="pa-gallery-magnific-image pa-gallery-video-icon">
2354
+ <span>
2355
+ <?php Icons_Manager::render_icon( $settings['premium_gallery_videos_icon'], [ 'aria-hidden' => 'true' ] );
2356
+ ?>
2357
+ </span>
2358
  </a>
2359
  </div>
2360
 
2385
 
2386
  ?>
2387
  <a <?php echo $this->get_render_attribute_string( $lightbox_key ); ?>>
2388
+ <span>
2389
+ <?php Icons_Manager::render_icon( $settings['premium_gallery_lightbox_icon'], [ 'aria-hidden' => 'true' ] );
2390
+ ?>
2391
+ </span>
2392
  </a>
2393
  <?php
2394
  }
2432
  if ( ! empty ( $icon_link ) ) {
2433
  ?>
2434
  <a <?php echo $this->get_render_attribute_string( $link_key ); ?>>
2435
+ <span>
2436
+ <?php Icons_Manager::render_icon( $settings['premium_gallery_links_icon'], [ 'aria-hidden' => 'true' ] );
2437
+ ?>
2438
+ </span>
2439
  </a>
2440
  <?php
2441
  }
widgets/premium-person.php CHANGED
@@ -12,6 +12,8 @@ use Elementor\Scheme_Typography;
12
  use Elementor\Group_Control_Image_Size;
13
  use Elementor\Group_Control_Typography;
14
  use Elementor\Group_Control_Css_Filter;
 
 
15
 
16
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
17
 
@@ -77,7 +79,7 @@ class Premium_Person extends Widget_Base {
77
  'label' => __('Width', 'premium-addons-for-elementor'),
78
  'type' => Controls_Manager::SLIDER,
79
  'description' => __('Enter image width in (PX, EM, %), default is 100%', 'premium-addons-for-elementor'),
80
- 'size_units' => ['px', '%', 'em'],
81
  'range' => [
82
  'px' => [
83
  'min' => 1,
@@ -258,123 +260,164 @@ class Premium_Person extends Widget_Base {
258
  ]
259
  );
260
 
 
 
 
 
 
 
 
 
261
  /*Person Facebook*/
262
  $this->add_control('premium_person_facebook',
263
- [
264
- 'label' => __('Facebook', 'premium-addons-for-elementor'),
265
- 'type' => Controls_Manager::TEXT,
266
- 'dynamic' => [ 'active' => true ],
267
- 'default' => '#',
268
- 'label_block' => true,
269
- ]
270
- );
 
 
 
271
 
272
  /*Person Twitter*/
273
  $this->add_control('premium_person_twitter',
274
- [
275
- 'label' => __('Twitter', 'premium-addons-for-elementor'),
276
- 'type' => Controls_Manager::TEXT,
277
- 'dynamic' => [ 'active' => true ],
278
- 'default' => '#',
279
- 'label_block' => true,
280
- ]
281
- );
 
 
 
282
 
283
  /*Person Linkedin*/
284
  $this->add_control('premium_person_linkedin',
285
- [
286
- 'label' => __('LinkedIn', 'premium-addons-for-elementor'),
287
- 'type' => Controls_Manager::TEXT,
288
- 'dynamic' => [ 'active' => true ],
289
- 'default' => '#',
290
- 'label_block' => true,
291
- ]
292
- );
 
 
 
293
 
294
  /*Person Google*/
295
  $this->add_control('premium_person_google',
296
- [
297
- 'label' => __('Google+', 'premium-addons-for-elementor'),
298
- 'type' => Controls_Manager::TEXT,
299
- 'dynamic' => [ 'active' => true ],
300
- 'default' => '#',
301
- 'label_block' => true,
302
- ]
303
- );
 
 
 
304
 
305
  /*Person Youtube*/
306
  $this->add_control('premium_person_youtube',
307
- [
308
- 'label' => __('Youtube', 'premium-addons-for-elementor'),
309
- 'type' => Controls_Manager::TEXT,
310
- 'dynamic' => [ 'active' => true ],
311
- 'label_block' => true,
312
- ]
313
- );
 
 
 
314
 
315
  /*Person Instagram*/
316
  $this->add_control('premium_person_instagram',
317
- [
318
- 'label' => __('Instagram', 'premium-addons-for-elementor'),
319
- 'type' => Controls_Manager::TEXT,
320
- 'dynamic' => [ 'active' => true ],
321
- 'label_block' => true,
322
- ]
323
- );
 
 
 
324
 
325
  /*Person Skype*/
326
  $this->add_control('premium_person_skype',
327
- [
328
- 'label' => __('Skype', 'premium-addons-for-elementor'),
329
- 'type' => Controls_Manager::TEXT,
330
- 'dynamic' => [ 'active' => true ],
331
- 'label_block' => true,
332
- ]
333
- );
 
 
 
334
 
335
  /*Person Pinterest*/
336
  $this->add_control('premium_person_pinterest',
337
- [
338
- 'label' => __('Pinterest', 'premium-addons-for-elementor'),
339
- 'type' => Controls_Manager::TEXT,
340
- 'dynamic' => [ 'active' => true ],
341
- 'default' => '#',
342
- 'label_block' => true,
343
- ]
344
- );
 
 
 
345
 
346
  /*Person Dribble*/
347
  $this->add_control('premium_person_dribbble',
348
- [
349
- 'label' => __('Dribbble', 'premium-addons-for-elementor'),
350
- 'type' => Controls_Manager::TEXT,
351
- 'dynamic' => [ 'active' => true ],
352
- 'default' => '#',
353
- 'label_block' => true,
354
- ]
355
- );
 
 
 
356
 
357
  /*Person Dribble*/
358
  $this->add_control('premium_person_behance',
359
- [
360
- 'label' => __('Behance', 'premium-addons-for-elementor'),
361
- 'type' => Controls_Manager::TEXT,
362
- 'dynamic' => [ 'active' => true ],
363
- 'default' => '#',
364
- 'label_block' => true,
365
- ]
366
- );
 
 
 
367
 
368
  /*Person Google*/
369
  $this->add_control('premium_person_mail',
370
- [
371
- 'label' => __('Email Address', 'premium-addons-for-elementor'),
372
- 'type' => Controls_Manager::TEXT,
373
- 'dynamic' => [ 'active' => true ],
374
- 'default' => '#',
375
- 'label_block' => true,
376
- ]
377
- );
 
 
 
378
 
379
  /*End Social Links Section*/
380
  $this->end_controls_section();
@@ -442,6 +485,14 @@ class Premium_Person extends Widget_Base {
442
  ]
443
  );
444
 
 
 
 
 
 
 
 
 
445
  /*End Name Style Section*/
446
  $this->end_controls_section();
447
 
@@ -478,6 +529,14 @@ class Premium_Person extends Widget_Base {
478
  ]
479
  );
480
 
 
 
 
 
 
 
 
 
481
  /*End Title Style Section*/
482
  $this->end_controls_section();
483
 
@@ -506,54 +565,126 @@ class Premium_Person extends Widget_Base {
506
 
507
  /*Title Typography*/
508
  $this->add_group_control(
509
- Group_Control_Typography::get_type(),
510
- [
511
- 'name' => 'description_typography',
512
- 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
513
- 'selector' => '{{WRAPPER}} .premium-person-content',
514
- ]
515
- );
 
 
 
 
 
 
 
 
516
 
517
  /*End Description Style Section*/
518
  $this->end_controls_section();
519
 
520
  /*Start Social Icon Style Section*/
521
  $this->start_controls_section('premium_person_social_icon_style',
522
- [
523
- 'label' => __('Social Icons', 'premium-addons-for-elementor'),
524
- 'tab' => Controls_Manager::TAB_STYLE,
 
 
525
  ]
526
- );
 
527
 
528
  /*Social Color*/
529
  $this->add_control('premium_person_social_color',
530
- [
531
- 'label' => __('Color', 'premium-addons-for-elementor'),
532
- 'type' => Controls_Manager::COLOR,
533
- 'scheme' => [
534
- 'type' => Scheme_Color::get_type(),
535
- 'value' => Scheme_Color::COLOR_1,
536
- ],
537
- 'selectors' => [
538
- '{{WRAPPER}} .premium-person-social-list .premium-person-list-item i' => 'color: {{VALUE}};',
539
- ]
540
- ]
541
- );
542
-
543
  /*Social Hover Color*/
544
  $this->add_control('premium_person_social_hover_color',
545
- [
546
- 'label' => __('Hover Color', 'premium-addons-for-elementor'),
547
- 'type' => Controls_Manager::COLOR,
548
- 'scheme' => [
549
- 'type' => Scheme_Color::get_type(),
550
- 'value' => Scheme_Color::COLOR_2,
551
- ],
552
- 'selectors' => [
553
- '{{WRAPPER}} .premium-person-social-list .premium-person-list-item:hover i' => 'color: {{VALUE}};',
554
- ]
555
- ]
556
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
557
 
558
  /*End Description Style Section*/
559
  $this->end_controls_section();
@@ -561,7 +692,7 @@ class Premium_Person extends Widget_Base {
561
  /*Start Content Style Section*/
562
  $this->start_controls_section('premium_person_general_style',
563
  [
564
- 'label' => __('Content Background', 'premium-addons-for-elementor'),
565
  'tab' => Controls_Manager::TAB_STYLE,
566
  ]
567
  );
@@ -579,25 +710,44 @@ class Premium_Person extends Widget_Base {
579
  );
580
 
581
  /*Border Bottom Width*/
582
- $this->add_control('premium_person_border_bottom_width',
583
- [
584
- 'label' => __('Height', 'premium-addons-for-elementor'),
585
- 'type' => Controls_Manager::SLIDER,
586
- 'range' => [
587
- 'px' => [
588
- 'min' => 0,
589
- 'max' => 700,
590
- ]
591
- ],
592
- 'default' => [
593
- 'size' => 20,
594
- ],
595
- 'label_block' => true,
596
- 'selectors' => [
597
- '{{WRAPPER}} .premium-person-info' => 'bottom: {{SIZE}}px;',
598
- ]
599
  ]
600
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
601
 
602
  /*End Content Style Section*/
603
  $this->end_controls_section();
@@ -645,21 +795,23 @@ class Premium_Person extends Widget_Base {
645
  <?php echo $settings['premium_person_content']; ?>
646
  </div>
647
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
648
  <?php endif; ?>
649
- <ul class="premium-person-social-list">
650
- <?php if( !empty( $settings['premium_person_facebook'] ) ) : ?><li class="premium-person-list-item premium-person-facebook"><a href="<?php echo $settings['premium_person_facebook']; ?>" target="_blank"><i class="fab fa-facebook-f"></i></a></li><?php endif; ?>
651
- <?php if( !empty( $settings['premium_person_twitter'] ) ) : ?><li class="premium-person-list-item premium-person-twitter"><a href="<?php echo $settings['premium_person_twitter']; ?>" target="_blank"><i class="fab fa-twitter"></i></a></li><?php endif; ?>
652
- <?php if( !empty( $settings['premium_person_linkedin'] ) ) : ?><li class="premium-person-list-item premium-person-linkedin"><a href="<?php echo $settings['premium_person_linkedin']; ?>" target="_blank"><i class="fab fa-linkedin"></i></a></li><?php endif; ?>
653
- <?php if( !empty( $settings['premium_person_google'] ) ) : ?><li class="premium-person-list-item premium-person-google"><a href="<?php echo $settings['premium_person_google']; ?>" target="_blank"><i class="fab fa-google-plus-g"></i></a></li><?php endif; ?>
654
- <?php if( !empty( $settings['premium_person_youtube'] ) ) : ?><li class="premium-person-list-item premium-person-youtube"><a href="<?php echo $settings['premium_person_youtube']; ?>" target="_blank"><i class="fab fa-youtube"></i></a></li><?php endif; ?>
655
-
656
- <?php if( !empty( $settings['premium_person_instagram'] ) ) : ?><li class="premium-person-list-item premium-person-instagram"><a href="<?php echo $settings['premium_person_instagram']; ?>" target="_blank"><i class="fab fa-instagram"></i></a></li><?php endif; ?>
657
- <?php if( !empty( $settings['premium_person_skype'] ) ) : ?><li class="premium-person-list-item premium-person-skype"><a href="<?php echo $settings['premium_person_skype']; ?>" target="_blank"><i class="fab fa-skype"></i></a></li><?php endif; ?>
658
- <?php if( !empty( $settings['premium_person_pinterest'] ) ) : ?><li class="premium-person-list-item premium-person-pinterest"><a href="<?php echo $settings['premium_person_pinterest']; ?>" target="_blank"><i class="fab fa-pinterest"></i></a></li><?php endif; ?>
659
- <?php if( !empty( $settings['premium_person_dribbble'] ) ) : ?><li class="premium-person-list-item premium-person-dribbble"><a href="<?php echo $settings['premium_person_dribbble']; ?>" target="_blank"><i class="fab fa-dribbble"></i></a></li><?php endif; ?>
660
- <?php if( !empty( $settings['premium_person_behance'] ) ) : ?><li class="premium-person-list-item premium-person-behance"><a href="<?php echo $settings['premium_person_behance']; ?>" target="_blank"><i class="fab fa-behance"></i></a></li><?php endif; ?>
661
- <?php if( !empty( $settings['premium_person_mail'] ) ) : ?><li class="premium-person-list-item premium-person-mail"><a href="<?php echo $settings['premium_person_mail']; ?>" target="_blank"><i class="far fa-envelope"></i></a></li><?php endif; ?>
662
- </ul>
663
  </div>
664
  </div>
665
  </div>
@@ -726,53 +878,55 @@ class Premium_Person extends Widget_Base {
726
  {{{ settings.premium_person_content }}}
727
  </div>
728
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
729
  <# } #>
730
- <ul class="premium-person-social-list">
731
- <# if( '' != settings.premium_person_facebook ) { #>
732
- <li class="premium-person-list-item premium-person-facebook"><a href="{{ settings.premium_person_facebook }}" target="_blank"><i class="fab fa-facebook-f"></i></a></li>
733
- <# } #>
734
-
735
- <# if( '' != settings.premium_person_twitter ) { #>
736
- <li class="premium-person-list-item premium-person-twitter"><a href="{{ settings.premium_person_twitter }}" target="_blank"><i class="fab fa-twitter"></i></a></li>
737
- <# } #>
738
-
739
- <# if( '' != settings.premium_person_linkedin ) { #>
740
- <li class="premium-person-list-item premium-person-linkedin"><a href="{{ settings.premium_person_linkedin }}" target="_blank"><i class="fab fa-linkedin"></i></a></li>
741
- <# } #>
742
-
743
- <# if( '' != settings.premium_person_google ) { #>
744
- <li class="premium-person-list-item premium-person-google"><a href="{{ settings.premium_person_google }}" target="_blank"><i class="fab fa-google-plus-g"></i></a></li>
745
- <# } #>
746
-
747
- <# if( '' != settings.premium_person_youtube ) { #>
748
- <li class="premium-person-list-item premium-person-youtube"><a href="{{ settings.premium_person_youtube }}" target="_blank"><i class="fab fa-youtube"></i></a></li>
749
- <# } #>
750
-
751
- <# if( '' != settings.premium_person_instagram ) { #>
752
- <li class="premium-person-list-item premium-person-instagram"><a href="{{ settings.premium_person_instagram }}" target="_blank"><i class="fab fa-instagram"></i></a></li>
753
- <# } #>
754
-
755
- <# if( '' != settings.premium_person_skype) { #>
756
- <li class="premium-person-list-item premium-person-skype"><a href="{{ settings.premium_person_skype }}" target="_blank"><i class="fab fa-skype"></i></a></li>
757
- <# } #>
758
-
759
- <# if( '' != settings.premium_person_pinterest ) { #>
760
- <li class="premium-person-list-item premium-person-pinterest"><a href="{{ settings.premium_person_pinterest }}" target="_blank"><i class="fab fa-pinterest"></i></a></li>
761
- <# } #>
762
-
763
- <# if( '' != settings.premium_person_dribbble ) { #>
764
- <li class="premium-person-list-item premium-person-dribbble"><a href="{{ settings.premium_person_dribbble }}" target="_blank"><i class="fab fa-dribbble"></i></a></li>
765
- <# } #>
766
-
767
- <# if( '' != settings.premium_person_behance ) { #>
768
- <li class="premium-person-list-item premium-person-behance"><a href="{{ settings.premium_person_behance }}" target="_blank"><i class="fab fa-behance"></i></a></li>
769
- <# } #>
770
-
771
- <# if( '' != settings.premium_person_mail ) { #>
772
- <li class="premium-person-list-item premium-person-mail"><a href="{{ settings.premium_person_mail }}" target="_blank"><i class="far fa-envelope"></i></a></li>
773
- <# } #>
774
-
775
- </ul>
776
  </div>
777
  </div>
778
  </div>
12
  use Elementor\Group_Control_Image_Size;
13
  use Elementor\Group_Control_Typography;
14
  use Elementor\Group_Control_Css_Filter;
15
+ use Elementor\Group_Control_Text_Shadow;
16
+ use Elementor\Group_Control_Border;
17
 
18
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
19
 
79
  'label' => __('Width', 'premium-addons-for-elementor'),
80
  'type' => Controls_Manager::SLIDER,
81
  'description' => __('Enter image width in (PX, EM, %), default is 100%', 'premium-addons-for-elementor'),
82
+ 'size_units' => ['px', 'em', '%'],
83
  'range' => [
84
  'px' => [
85
  'min' => 1,
260
  ]
261
  );
262
 
263
+ $this->add_control('premium_person_social_enable',
264
+ [
265
+ 'label' => __( 'Enable Social Icons', 'premium-addons-for-elementor' ),
266
+ 'type' => Controls_Manager::SWITCHER,
267
+ 'default' => 'yes',
268
+ ]
269
+ );
270
+
271
  /*Person Facebook*/
272
  $this->add_control('premium_person_facebook',
273
+ [
274
+ 'label' => __('Facebook', 'premium-addons-for-elementor'),
275
+ 'type' => Controls_Manager::TEXT,
276
+ 'dynamic' => [ 'active' => true ],
277
+ 'default' => '#',
278
+ 'label_block' => true,
279
+ 'condition' => [
280
+ 'premium_person_social_enable' => 'yes'
281
+ ]
282
+ ]
283
+ );
284
 
285
  /*Person Twitter*/
286
  $this->add_control('premium_person_twitter',
287
+ [
288
+ 'label' => __('Twitter', 'premium-addons-for-elementor'),
289
+ 'type' => Controls_Manager::TEXT,
290
+ 'dynamic' => [ 'active' => true ],
291
+ 'default' => '#',
292
+ 'label_block' => true,
293
+ 'condition' => [
294
+ 'premium_person_social_enable' => 'yes'
295
+ ]
296
+ ]
297
+ );
298
 
299
  /*Person Linkedin*/
300
  $this->add_control('premium_person_linkedin',
301
+ [
302
+ 'label' => __('LinkedIn', 'premium-addons-for-elementor'),
303
+ 'type' => Controls_Manager::TEXT,
304
+ 'dynamic' => [ 'active' => true ],
305
+ 'default' => '#',
306
+ 'label_block' => true,
307
+ 'condition' => [
308
+ 'premium_person_social_enable' => 'yes'
309
+ ]
310
+ ]
311
+ );
312
 
313
  /*Person Google*/
314
  $this->add_control('premium_person_google',
315
+ [
316
+ 'label' => __('Google+', 'premium-addons-for-elementor'),
317
+ 'type' => Controls_Manager::TEXT,
318
+ 'dynamic' => [ 'active' => true ],
319
+ 'default' => '#',
320
+ 'label_block' => true,
321
+ 'condition' => [
322
+ 'premium_person_social_enable' => 'yes'
323
+ ]
324
+ ]
325
+ );
326
 
327
  /*Person Youtube*/
328
  $this->add_control('premium_person_youtube',
329
+ [
330
+ 'label' => __('Youtube', 'premium-addons-for-elementor'),
331
+ 'type' => Controls_Manager::TEXT,
332
+ 'dynamic' => [ 'active' => true ],
333
+ 'label_block' => true,
334
+ 'condition' => [
335
+ 'premium_person_social_enable' => 'yes'
336
+ ]
337
+ ]
338
+ );
339
 
340
  /*Person Instagram*/
341
  $this->add_control('premium_person_instagram',
342
+ [
343
+ 'label' => __('Instagram', 'premium-addons-for-elementor'),
344
+ 'type' => Controls_Manager::TEXT,
345
+ 'dynamic' => [ 'active' => true ],
346
+ 'label_block' => true,
347
+ 'condition' => [
348
+ 'premium_person_social_enable' => 'yes'
349
+ ]
350
+ ]
351
+ );
352
 
353
  /*Person Skype*/
354
  $this->add_control('premium_person_skype',
355
+ [
356
+ 'label' => __('Skype', 'premium-addons-for-elementor'),
357
+ 'type' => Controls_Manager::TEXT,
358
+ 'dynamic' => [ 'active' => true ],
359
+ 'label_block' => true,
360
+ 'condition' => [
361
+ 'premium_person_social_enable' => 'yes'
362
+ ]
363
+ ]
364
+ );
365
 
366
  /*Person Pinterest*/
367
  $this->add_control('premium_person_pinterest',
368
+ [
369
+ 'label' => __('Pinterest', 'premium-addons-for-elementor'),
370
+ 'type' => Controls_Manager::TEXT,
371
+ 'dynamic' => [ 'active' => true ],
372
+ 'default' => '#',
373
+ 'label_block' => true,
374
+ 'condition' => [
375
+ 'premium_person_social_enable' => 'yes'
376
+ ]
377
+ ]
378
+ );
379
 
380
  /*Person Dribble*/
381
  $this->add_control('premium_person_dribbble',
382
+ [
383
+ 'label' => __('Dribbble', 'premium-addons-for-elementor'),
384
+ 'type' => Controls_Manager::TEXT,
385
+ 'dynamic' => [ 'active' => true ],
386
+ 'default' => '#',
387
+ 'label_block' => true,
388
+ 'condition' => [
389
+ 'premium_person_social_enable' => 'yes'
390
+ ]
391
+ ]
392
+ );
393
 
394
  /*Person Dribble*/
395
  $this->add_control('premium_person_behance',
396
+ [
397
+ 'label' => __('Behance', 'premium-addons-for-elementor'),
398
+ 'type' => Controls_Manager::TEXT,
399
+ 'dynamic' => [ 'active' => true ],
400
+ 'default' => '#',
401
+ 'label_block' => true,
402
+ 'condition' => [
403
+ 'premium_person_social_enable' => 'yes'
404
+ ]
405
+ ]
406
+ );
407
 
408
  /*Person Google*/
409
  $this->add_control('premium_person_mail',
410
+ [
411
+ 'label' => __('Email Address', 'premium-addons-for-elementor'),
412
+ 'type' => Controls_Manager::TEXT,
413
+ 'dynamic' => [ 'active' => true ],
414
+ 'default' => '#',
415
+ 'label_block' => true,
416
+ 'condition' => [
417
+ 'premium_person_social_enable' => 'yes'
418
+ ]
419
+ ]
420
+ );
421
 
422
  /*End Social Links Section*/
423
  $this->end_controls_section();
485
  ]
486
  );
487
 
488
+ $this->add_group_control(
489
+ Group_Control_Text_Shadow::get_type(),
490
+ [
491
+ 'name' => 'name_shadow',
492
+ 'selector' => '{{WRAPPER}} .premium-person-name',
493
+ ]
494
+ );
495
+
496
  /*End Name Style Section*/
497
  $this->end_controls_section();
498
 
529
  ]
530
  );
531
 
532
+ $this->add_group_control(
533
+ Group_Control_Text_Shadow::get_type(),
534
+ [
535
+ 'name' => 'title_shadow',
536
+ 'selector' => '{{WRAPPER}} .premium-person-title',
537
+ ]
538
+ );
539
+
540
  /*End Title Style Section*/
541
  $this->end_controls_section();
542
 
565
 
566
  /*Title Typography*/
567
  $this->add_group_control(
568
+ Group_Control_Typography::get_type(),
569
+ [
570
+ 'name' => 'description_typography',
571
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
572
+ 'selector' => '{{WRAPPER}} .premium-person-content',
573
+ ]
574
+ );
575
+
576
+ $this->add_group_control(
577
+ Group_Control_Text_Shadow::get_type(),
578
+ [
579
+ 'name' => 'description_shadow',
580
+ 'selector' => '{{WRAPPER}} .premium-person-content',
581
+ ]
582
+ );
583
 
584
  /*End Description Style Section*/
585
  $this->end_controls_section();
586
 
587
  /*Start Social Icon Style Section*/
588
  $this->start_controls_section('premium_person_social_icon_style',
589
+ [
590
+ 'label' => __('Social Icons', 'premium-addons-for-elementor'),
591
+ 'tab' => Controls_Manager::TAB_STYLE,
592
+ 'condition' => [
593
+ 'premium_person_social_enable' => 'yes'
594
  ]
595
+ ]
596
+ );
597
 
598
  /*Social Color*/
599
  $this->add_control('premium_person_social_color',
600
+ [
601
+ 'label' => __('Color', 'premium-addons-for-elementor'),
602
+ 'type' => Controls_Manager::COLOR,
603
+ 'scheme' => [
604
+ 'type' => Scheme_Color::get_type(),
605
+ 'value' => Scheme_Color::COLOR_1,
606
+ ],
607
+ 'selectors' => [
608
+ '{{WRAPPER}} .premium-person-list-item i' => 'color: {{VALUE}};',
609
+ ]
610
+ ]
611
+ );
612
+
613
  /*Social Hover Color*/
614
  $this->add_control('premium_person_social_hover_color',
615
+ [
616
+ 'label' => __('Hover Color', 'premium-addons-for-elementor'),
617
+ 'type' => Controls_Manager::COLOR,
618
+ 'scheme' => [
619
+ 'type' => Scheme_Color::get_type(),
620
+ 'value' => Scheme_Color::COLOR_2,
621
+ ],
622
+ 'selectors' => [
623
+ '{{WRAPPER}} .premium-person-list-item:hover i' => 'color: {{VALUE}}',
624
+ ]
625
+ ]
626
+ );
627
+
628
+ $this->add_control('premium_person_social_background',
629
+ [
630
+ 'label' => __('Background Color', 'premium-addons-for-elementor'),
631
+ 'type' => Controls_Manager::COLOR,
632
+ 'selectors' => [
633
+ '{{WRAPPER}} .premium-person-list-item i' => 'background-color: {{VALUE}}',
634
+ ]
635
+ ]
636
+ );
637
+
638
+ $this->add_control('premium_person_social_hover_background',
639
+ [
640
+ 'label' => __('Hover Background Color', 'premium-addons-for-elementor'),
641
+ 'type' => Controls_Manager::COLOR,
642
+ 'selectors' => [
643
+ '{{WRAPPER}} .premium-person-list-item:hover i' => 'background-color: {{VALUE}}',
644
+ ]
645
+ ]
646
+ );
647
+
648
+ $this->add_group_control(
649
+ Group_Control_Border::get_type(),
650
+ [
651
+ 'name' => 'premium_person_social_border',
652
+ 'selector' => '{{WRAPPER}} .premium-person-list-item i',
653
+ ]
654
+ );
655
+
656
+ $this->add_responsive_control('premium_person_social_radius',
657
+ [
658
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
659
+ 'type' => Controls_Manager::DIMENSIONS,
660
+ 'size_units' => ['px', 'em', '%'],
661
+ 'selectors' => [
662
+ '{{WRAPPER}} .premium-person-list-item i' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}'
663
+ ]
664
+ ]
665
+ );
666
+
667
+ $this->add_responsive_control('premium_person_social_margin',
668
+ [
669
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
670
+ 'type' => Controls_Manager::DIMENSIONS,
671
+ 'size_units' => ['px', 'em', '%'],
672
+ 'selectors' => [
673
+ '{{WRAPPER}} .premium-person-list-item i' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
674
+ ]
675
+ ]
676
+ );
677
+
678
+ $this->add_responsive_control('premium_person_social_padding',
679
+ [
680
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
681
+ 'type' => Controls_Manager::DIMENSIONS,
682
+ 'size_units' => ['px', 'em', '%'],
683
+ 'selectors' => [
684
+ '{{WRAPPER}} .premium-person-list-item i' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
685
+ ]
686
+ ]
687
+ );
688
 
689
  /*End Description Style Section*/
690
  $this->end_controls_section();
692
  /*Start Content Style Section*/
693
  $this->start_controls_section('premium_person_general_style',
694
  [
695
+ 'label' => __('Content', 'premium-addons-for-elementor'),
696
  'tab' => Controls_Manager::TAB_STYLE,
697
  ]
698
  );
710
  );
711
 
712
  /*Border Bottom Width*/
713
+ $this->add_responsive_control('premium_person_border_bottom_width',
714
+ [
715
+ 'label' => __('Bottom Offset', 'premium-addons-for-elementor'),
716
+ 'type' => Controls_Manager::SLIDER,
717
+ 'size_units' => ['px', 'em', '%'],
718
+ 'range' => [
719
+ 'px' => [
720
+ 'min' => 0,
721
+ 'max' => 700,
 
 
 
 
 
 
 
 
722
  ]
723
+ ],
724
+ 'default' => [
725
+ 'size' => 20,
726
+ 'unit' => 'px'
727
+ ],
728
+ 'label_block' => true,
729
+ 'selectors' => [
730
+ '{{WRAPPER}} .premium-person-info' => 'bottom: {{SIZE}}{{UNIT}}',
731
+ ]
732
+ ]
733
+ );
734
+
735
+ $this->add_responsive_control('premium_person_content_speed',
736
+ [
737
+ 'label' => __( 'Transition Duration (sec)', 'premium-addons-for-elementor' ),
738
+ 'type' => Controls_Manager::SLIDER,
739
+ 'range' => [
740
+ 'px' => [
741
+ 'min' => 0,
742
+ 'max' => 5,
743
+ 'step' => 0.1
744
+ ]
745
+ ],
746
+ 'selectors' => [
747
+ '{{WRAPPER}} .premium-person-info, {{WRAPPER}} .premium-person-image-container img' => 'transition-duration: {{SIZE}}s',
748
+ ]
749
+ ]
750
+ );
751
 
752
  /*End Content Style Section*/
753
  $this->end_controls_section();
795
  <?php echo $settings['premium_person_content']; ?>
796
  </div>
797
  </div>
798
+ <?php endif;
799
+ if( 'yes' === $settings['premium_person_social_enable'] ) : ?>
800
+ <ul class="premium-person-social-list">
801
+ <?php if( !empty( $settings['premium_person_facebook'] ) ) : ?><li class="premium-person-list-item premium-person-facebook"><a href="<?php echo $settings['premium_person_facebook']; ?>" target="_blank"><i class="fab fa-facebook-f"></i></a></li><?php endif; ?>
802
+ <?php if( !empty( $settings['premium_person_twitter'] ) ) : ?><li class="premium-person-list-item premium-person-twitter"><a href="<?php echo $settings['premium_person_twitter']; ?>" target="_blank"><i class="fab fa-twitter"></i></a></li><?php endif; ?>
803
+ <?php if( !empty( $settings['premium_person_linkedin'] ) ) : ?><li class="premium-person-list-item premium-person-linkedin"><a href="<?php echo $settings['premium_person_linkedin']; ?>" target="_blank"><i class="fab fa-linkedin"></i></a></li><?php endif; ?>
804
+ <?php if( !empty( $settings['premium_person_google'] ) ) : ?><li class="premium-person-list-item premium-person-google"><a href="<?php echo $settings['premium_person_google']; ?>" target="_blank"><i class="fab fa-google-plus-g"></i></a></li><?php endif; ?>
805
+ <?php if( !empty( $settings['premium_person_youtube'] ) ) : ?><li class="premium-person-list-item premium-person-youtube"><a href="<?php echo $settings['premium_person_youtube']; ?>" target="_blank"><i class="fab fa-youtube"></i></a></li><?php endif; ?>
806
+
807
+ <?php if( !empty( $settings['premium_person_instagram'] ) ) : ?><li class="premium-person-list-item premium-person-instagram"><a href="<?php echo $settings['premium_person_instagram']; ?>" target="_blank"><i class="fab fa-instagram"></i></a></li><?php endif; ?>
808
+ <?php if( !empty( $settings['premium_person_skype'] ) ) : ?><li class="premium-person-list-item premium-person-skype"><a href="<?php echo $settings['premium_person_skype']; ?>" target="_blank"><i class="fab fa-skype"></i></a></li><?php endif; ?>
809
+ <?php if( !empty( $settings['premium_person_pinterest'] ) ) : ?><li class="premium-person-list-item premium-person-pinterest"><a href="<?php echo $settings['premium_person_pinterest']; ?>" target="_blank"><i class="fab fa-pinterest"></i></a></li><?php endif; ?>
810
+ <?php if( !empty( $settings['premium_person_dribbble'] ) ) : ?><li class="premium-person-list-item premium-person-dribbble"><a href="<?php echo $settings['premium_person_dribbble']; ?>" target="_blank"><i class="fab fa-dribbble"></i></a></li><?php endif; ?>
811
+ <?php if( !empty( $settings['premium_person_behance'] ) ) : ?><li class="premium-person-list-item premium-person-behance"><a href="<?php echo $settings['premium_person_behance']; ?>" target="_blank"><i class="fab fa-behance"></i></a></li><?php endif; ?>
812
+ <?php if( !empty( $settings['premium_person_mail'] ) ) : ?><li class="premium-person-list-item premium-person-mail"><a href="<?php echo $settings['premium_person_mail']; ?>" target="_blank"><i class="far fa-envelope"></i></a></li><?php endif; ?>
813
+ </ul>
814
  <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
815
  </div>
816
  </div>
817
  </div>
878
  {{{ settings.premium_person_content }}}
879
  </div>
880
  </div>
881
+ <# }
882
+ if ( 'yes' === settings.premium_person_social_enable ) { #>
883
+ <ul class="premium-person-social-list">
884
+ <# if( '' != settings.premium_person_facebook ) { #>
885
+ <li class="premium-person-list-item premium-person-facebook"><a href="{{ settings.premium_person_facebook }}" target="_blank"><i class="fab fa-facebook-f"></i></a></li>
886
+ <# } #>
887
+
888
+ <# if( '' != settings.premium_person_twitter ) { #>
889
+ <li class="premium-person-list-item premium-person-twitter"><a href="{{ settings.premium_person_twitter }}" target="_blank"><i class="fab fa-twitter"></i></a></li>
890
+ <# } #>
891
+
892
+ <# if( '' != settings.premium_person_linkedin ) { #>
893
+ <li class="premium-person-list-item premium-person-linkedin"><a href="{{ settings.premium_person_linkedin }}" target="_blank"><i class="fab fa-linkedin"></i></a></li>
894
+ <# } #>
895
+
896
+ <# if( '' != settings.premium_person_google ) { #>
897
+ <li class="premium-person-list-item premium-person-google"><a href="{{ settings.premium_person_google }}" target="_blank"><i class="fab fa-google-plus-g"></i></a></li>
898
+ <# } #>
899
+
900
+ <# if( '' != settings.premium_person_youtube ) { #>
901
+ <li class="premium-person-list-item premium-person-youtube"><a href="{{ settings.premium_person_youtube }}" target="_blank"><i class="fab fa-youtube"></i></a></li>
902
+ <# } #>
903
+
904
+ <# if( '' != settings.premium_person_instagram ) { #>
905
+ <li class="premium-person-list-item premium-person-instagram"><a href="{{ settings.premium_person_instagram }}" target="_blank"><i class="fab fa-instagram"></i></a></li>
906
+ <# } #>
907
+
908
+ <# if( '' != settings.premium_person_skype) { #>
909
+ <li class="premium-person-list-item premium-person-skype"><a href="{{ settings.premium_person_skype }}" target="_blank"><i class="fab fa-skype"></i></a></li>
910
+ <# } #>
911
+
912
+ <# if( '' != settings.premium_person_pinterest ) { #>
913
+ <li class="premium-person-list-item premium-person-pinterest"><a href="{{ settings.premium_person_pinterest }}" target="_blank"><i class="fab fa-pinterest"></i></a></li>
914
+ <# } #>
915
+
916
+ <# if( '' != settings.premium_person_dribbble ) { #>
917
+ <li class="premium-person-list-item premium-person-dribbble"><a href="{{ settings.premium_person_dribbble }}" target="_blank"><i class="fab fa-dribbble"></i></a></li>
918
+ <# } #>
919
+
920
+ <# if( '' != settings.premium_person_behance ) { #>
921
+ <li class="premium-person-list-item premium-person-behance"><a href="{{ settings.premium_person_behance }}" target="_blank"><i class="fab fa-behance"></i></a></li>
922
+ <# } #>
923
+
924
+ <# if( '' != settings.premium_person_mail ) { #>
925
+ <li class="premium-person-list-item premium-person-mail"><a href="{{ settings.premium_person_mail }}" target="_blank"><i class="far fa-envelope"></i></a></li>
926
+ <# } #>
927
+
928
+ </ul>
929
  <# } #>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
930
  </div>
931
  </div>
932
  </div>