Premium Addons for Elementor - Version 2.8.5

Version Description

  • Tweak: Added Youtube and Instagram links in Premium Person widget.
  • Tweak: Slides ordering in Premium Carousel widget by adding repeater option.
  • Fixed: Progress Bar does not appear on the preview page.
Download this release

Release Info

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

Code changes from version 2.8.4 to 2.8.5

admin/includes/notices.php CHANGED
@@ -25,7 +25,6 @@ class Premium_Admin_Notices {
25
  public function init(){
26
  $this->handle_review_notice();
27
  // $this->handle_vertical_scroll_notice();
28
- $this->handle_black_notice();
29
  }
30
 
31
  /**
@@ -35,30 +34,8 @@ class Premium_Admin_Notices {
35
  $this->required_plugins_check();
36
  $this->get_review_notice();
37
  // $this->get_vertical_scroll_notice();
38
- $this->get_black_notice();
39
  }
40
-
41
- /**
42
- * Checks if get black friday sale message is dismissed.
43
- * @access public
44
- * @return void
45
- */
46
- public function handle_black_notice() {
47
 
48
- if ( ! isset( $_GET['get_pro_black'] ) ) {
49
- return;
50
- }
51
-
52
- if ( 'opt_out' === $_GET['get_pro_black'] ) {
53
- check_admin_referer( 'opt_out' );
54
-
55
- update_option( 'get_pro_black_notice', '1' );
56
- }
57
-
58
- wp_redirect( remove_query_arg( 'get_pro_black' ) );
59
- exit;
60
- }
61
-
62
  /**
63
  * Checks if review message is dismissed.
64
  * @access public
@@ -187,37 +164,6 @@ class Premium_Admin_Notices {
187
  <?php }
188
 
189
  }
190
-
191
- /**
192
- * Shows an admin notice when Elementor is missing.
193
- * @since 2.6.8
194
- * @return void
195
- */
196
- public function get_black_notice() {
197
-
198
- $pro_path = 'premium-addons-pro/premium-addons-pro-for-elementor.php';
199
-
200
- $theme = self::get_installed_theme();
201
-
202
- $notice_url = sprintf( 'https://premiumaddons.com/black-friday?utm_source=black-friday-2018-notification&utm_medium=wp-dash&utm_campaign=get-pro&utm_term=%s', $theme );
203
-
204
- if ( ! self::is_plugin_installed( $pro_path ) && current_user_can( 'install_plugins' ) ) {
205
-
206
- $get_black = get_option( 'get_pro_black_notice' );
207
-
208
- if ( '1' === $get_black ) {
209
- return;
210
- } else if ( '1' !== $get_black ) {
211
- $optout_url = wp_nonce_url( add_query_arg( 'get_pro_black', 'opt_out' ), 'opt_out' );
212
-
213
- $notice_message = sprintf( __('<div class="error pa-notice-wrap pa-black-notice"><div class="pa-img-wrap"><img src="%s"></div><div class="pa-text-wrap"><p>Premium Addons for Elementor</p><p><strong>Black Friday Sale!</strong> Early Exclusive Access to Our Secret Deal. <a href="%s">Check it Out</a></p></div><div class="pa-notice-close"><a href="%s"><span class="dashicons dashicons-dismiss"></span></a></div></p></div>', 'premium-addons-for-elementor' ), PREMIUM_ADDONS_URL .'admin/images/premium-addons-logo.png' ,$notice_url, $optout_url );
214
-
215
- }
216
-
217
- echo $notice_message;
218
-
219
- }
220
- }
221
 
222
  /**
223
  * Shows an admin notice for vertical scroll.
25
  public function init(){
26
  $this->handle_review_notice();
27
  // $this->handle_vertical_scroll_notice();
 
28
  }
29
 
30
  /**
34
  $this->required_plugins_check();
35
  $this->get_review_notice();
36
  // $this->get_vertical_scroll_notice();
 
37
  }
 
 
 
 
 
 
 
38
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  /**
40
  * Checks if review message is dismissed.
41
  * @access public
164
  <?php }
165
 
166
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
167
 
168
  /**
169
  * Shows an admin notice for vertical scroll.
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.8.3</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.8.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>
assets/js/lib/jquery.waypoints.js ADDED
@@ -0,0 +1 @@
 
1
+ (function(){var t,e,n=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},r=[].slice;t=this,e=function(t,e){var i,o,l,s,c,a,u,f,h,d,p,y,v,w,g,S;return i=t(e),f=n.call(e,"ontouchstart")>=0,s={horizontal:{},vertical:{}},c=1,u={},a="waypoints-context-id",p="resize.waypoints",y="scroll.waypoints",v=1,w="waypoints-waypoint-ids",g="waypoint",S="waypoints",o=function(){function n(n){var r=this;this.$element=n,this.element=n[0],this.didResize=!1,this.didScroll=!1,this.id="context"+c++,this.oldScroll={x:n.scrollLeft(),y:n.scrollTop()},this.waypoints={horizontal:{},vertical:{}},n.data(a,this.id),u[this.id]=this,n.bind(y,function(){var n;if(!r.didScroll&&!f)return r.didScroll=!0,n=function(){return r.doScroll(),r.didScroll=!1},e.setTimeout(n,t[S].settings.scrollThrottle)}),n.bind(p,function(){var n;if(!r.didResize)return r.didResize=!0,n=function(){return t[S]("refresh"),r.didResize=!1},e.setTimeout(n,t[S].settings.resizeThrottle)})}return n.prototype.doScroll=function(){var e,n=this;return e={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}},!f||e.vertical.oldScroll&&e.vertical.newScroll||t[S]("refresh"),t.each(e,function(e,r){var i,o,l;return l=[],o=r.newScroll>r.oldScroll,i=o?r.forward:r.backward,t.each(n.waypoints[e],function(t,e){var n,i;return r.oldScroll<(n=e.offset)&&n<=r.newScroll?l.push(e):r.newScroll<(i=e.offset)&&i<=r.oldScroll?l.push(e):void 0}),l.sort(function(t,e){return t.offset-e.offset}),o||l.reverse(),t.each(l,function(t,e){if(e.options.continuous||t===l.length-1)return e.trigger([i])})}),this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},n.prototype.refresh=function(){var e,n,r,i=this;return r=t.isWindow(this.element),n=this.$element.offset(),this.doScroll(),e={horizontal:{contextOffset:r?0:n.left,contextScroll:r?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:r?0:n.top,contextScroll:r?0:this.oldScroll.y,contextDimension:r?t[S]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}},t.each(e,function(e,n){return t.each(i.waypoints[e],function(e,r){var i,o,l,s,c;if(i=r.options.offset,l=r.offset,o=t.isWindow(r.element)?0:r.$element.offset()[n.offsetProp],t.isFunction(i)?i=i.apply(r.element):"string"==typeof i&&(i=parseFloat(i),r.options.offset.indexOf("%")>-1&&(i=Math.ceil(n.contextDimension*i/100))),r.offset=o-n.contextOffset+n.contextScroll-i,(!r.options.onlyOnScroll||null==l)&&r.enabled)return null!==l&&l<(s=n.oldScroll)&&s<=r.offset?r.trigger([n.backward]):null!==l&&l>(c=n.oldScroll)&&c>=r.offset?r.trigger([n.forward]):null===l&&n.oldScroll>=r.offset?r.trigger([n.forward]):void 0})})},n.prototype.checkEmpty=function(){if(t.isEmptyObject(this.waypoints.horizontal)&&t.isEmptyObject(this.waypoints.vertical))return this.$element.unbind([p,y].join(" ")),delete u[this.id]},n}(),l=function(){function e(e,n,r){var i,o;"bottom-in-view"===(r=t.extend({},t.fn[g].defaults,r)).offset&&(r.offset=function(){var e;return e=t[S]("viewportHeight"),t.isWindow(n.element)||(e=n.$element.height()),e-t(this).outerHeight()}),this.$element=e,this.element=e[0],this.axis=r.horizontal?"horizontal":"vertical",this.callback=r.handler,this.context=n,this.enabled=r.enabled,this.id="waypoints"+v++,this.offset=null,this.options=r,n.waypoints[this.axis][this.id]=this,s[this.axis][this.id]=this,(i=null!=(o=e.data(w))?o:[]).push(this.id),e.data(w,i)}return e.prototype.trigger=function(t){if(this.enabled)return null!=this.callback&&this.callback.apply(this.element,t),this.options.triggerOnce?this.destroy():void 0},e.prototype.disable=function(){return this.enabled=!1},e.prototype.enable=function(){return this.context.refresh(),this.enabled=!0},e.prototype.destroy=function(){return delete s[this.axis][this.id],delete this.context.waypoints[this.axis][this.id],this.context.checkEmpty()},e.getWaypointsByElement=function(e){var n,r;return(r=t(e).data(w))?(n=t.extend({},s.horizontal,s.vertical),t.map(r,function(t){return n[t]})):[]},e}(),d={init:function(e,n){return null==n&&(n={}),null==n.handler&&(n.handler=e),this.each(function(){var e,r,i,s;return e=t(this),i=null!=(s=n.context)?s:t.fn[g].defaults.context,t.isWindow(i)||(i=e.closest(i)),i=t(i),(r=u[i.data(a)])||(r=new o(i)),new l(e,r,n)}),t[S]("refresh"),this},disable:function(){return d._invoke(this,"disable")},enable:function(){return d._invoke(this,"enable")},destroy:function(){return d._invoke(this,"destroy")},prev:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(e>0)return t.push(n[e-1])})},next:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(e<n.length-1)return t.push(n[e+1])})},_traverse:function(n,r,i){var o,l;return null==n&&(n="vertical"),null==r&&(r=e),l=h.aggregate(r),o=[],this.each(function(){var e;return e=t.inArray(this,l[n]),i(o,e,l[n])}),this.pushStack(o)},_invoke:function(e,n){return e.each(function(){var e;return e=l.getWaypointsByElement(this),t.each(e,function(t,e){return e[n](),!0})}),this}},t.fn[g]=function(){var e,n;return n=arguments[0],e=2<=arguments.length?r.call(arguments,1):[],d[n]?d[n].apply(this,e):t.isFunction(n)?d.init.apply(this,arguments):t.isPlainObject(n)?d.init.apply(this,[null,n]):n?t.error("The "+n+" method does not exist in jQuery Waypoints."):t.error("jQuery Waypoints needs a callback function or handler option.")},t.fn[g].defaults={context:e,continuous:!0,enabled:!0,horizontal:!1,offset:0,triggerOnce:!1},h={refresh:function(){return t.each(u,function(t,e){return e.refresh()})},viewportHeight:function(){var t;return null!=(t=e.innerHeight)?t:i.height()},aggregate:function(e){var n,r,i;return n=s,e&&(n=null!=(i=u[t(e).data(a)])?i.waypoints:void 0),n?(r={horizontal:[],vertical:[]},t.each(r,function(e,i){return t.each(n[e],function(t,e){return i.push(e)}),i.sort(function(t,e){return t.offset-e.offset}),r[e]=t.map(i,function(t){return t.element}),r[e]=t.unique(r[e])}),r):[]},above:function(t){return null==t&&(t=e),h._filter(t,"vertical",function(t,e){return e.offset<=t.oldScroll.y})},below:function(t){return null==t&&(t=e),h._filter(t,"vertical",function(t,e){return e.offset>t.oldScroll.y})},left:function(t){return null==t&&(t=e),h._filter(t,"horizontal",function(t,e){return e.offset<=t.oldScroll.x})},right:function(t){return null==t&&(t=e),h._filter(t,"horizontal",function(t,e){return e.offset>t.oldScroll.x})},enable:function(){return h._invoke("enable")},disable:function(){return h._invoke("disable")},destroy:function(){return h._invoke("destroy")},extendFn:function(t,e){return d[t]=e},_invoke:function(e){var n;return n=t.extend({},s.vertical,s.horizontal),t.each(n,function(t,n){return n[e](),!0})},_filter:function(e,n,r){var i,o;return(i=u[t(e).data(a)])?(o=[],t.each(i.waypoints[n],function(t,e){if(r(i,e))return o.push(e)}),o.sort(function(t,e){return t.offset-e.offset}),t.map(o,function(t){return t.element})):[]}},t[S]=function(){var t,e;return e=arguments[0],t=2<=arguments.length?r.call(arguments,1):[],h[e]?h[e].apply(null,t):h.aggregate.call(null,e)},t[S].settings={resizeThrottle:100,scrollThrottle:30},i.load(function(){return t[S]("refresh")})},"function"==typeof define&&define.amd?define("waypoints",["jquery"],function(n){return e(n,t)}):e(t.jQuery,t)}).call(this);
includes/class-addons-integration.php CHANGED
@@ -97,8 +97,9 @@ class Premium_Addons_Integration {
97
  public function premium_register_scripts() {
98
 
99
  $check_component_active = PA_admin_settings::get_enabled_keys();
100
-
101
  if ( $check_component_active['premium-progressbar'] || $check_component_active['premium-videobox'] || $check_component_active['premium-grid'] || $check_component_active['premium-fancytext'] || $check_component_active['premium-countdown'] || $check_component_active['premium-carousel'] || $check_component_active['premium-banner'] || $check_component_active['premium-maps'] || $check_component_active['premium-modalbox'] || $check_component_active['premium-blog'] || $check_component_active['premium-counter'] || $check_component_active['premium-vscroll'] ) {
 
102
  wp_register_script('premium-addons-js', PREMIUM_ADDONS_URL . 'assets/js/premium-addons.js', array('jquery'), PREMIUM_ADDONS_VERSION, true);
103
  }
104
 
97
  public function premium_register_scripts() {
98
 
99
  $check_component_active = PA_admin_settings::get_enabled_keys();
100
+ wp_register_script('waypoints-js', PREMIUM_ADDONS_URL . 'assets/js/lib/jquery.waypoints.js', array('jquery'), PREMIUM_ADDONS_VERSION, true);
101
  if ( $check_component_active['premium-progressbar'] || $check_component_active['premium-videobox'] || $check_component_active['premium-grid'] || $check_component_active['premium-fancytext'] || $check_component_active['premium-countdown'] || $check_component_active['premium-carousel'] || $check_component_active['premium-banner'] || $check_component_active['premium-maps'] || $check_component_active['premium-modalbox'] || $check_component_active['premium-blog'] || $check_component_active['premium-counter'] || $check_component_active['premium-vscroll'] ) {
102
+
103
  wp_register_script('premium-addons-js', PREMIUM_ADDONS_URL . 'assets/js/premium-addons.js', array('jquery'), PREMIUM_ADDONS_VERSION, true);
104
  }
105
 
premium-addons-for-elementor.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Premium Addons for Elementor
4
  Description: Premium Addons Plugin Includes 21+ premium widgets for Elementor Page Builder.
5
  Plugin URI: https://premiumaddons.com
6
- Version: 2.8.4
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.8.4');
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.8.3');
31
 
32
  if( ! class_exists('Premium_Addons_Elementor') ) {
33
  /*
3
  Plugin Name: Premium Addons for Elementor
4
  Description: Premium Addons Plugin Includes 21+ premium widgets for Elementor Page Builder.
5
  Plugin URI: https://premiumaddons.com
6
+ Version: 2.8.5
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.8.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.8.4');
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.8.4
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
@@ -137,6 +137,12 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
137
 
138
  == Changelog ==
139
 
 
 
 
 
 
 
140
  = 2.8.4 =
141
 
142
  - Tweak: Added Self Hosted Videos option to Premium Video Box widget.
5
  Requires at least: 4.5
6
  Tested up to: 4.9.8
7
  Requires PHP: 5.4
8
+ Stable tag: 2.8.5
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
137
 
138
  == Changelog ==
139
 
140
+ = 2.8.5 =
141
+
142
+ - Tweak: Added Youtube and Instagram links in Premium Person widget.
143
+ - Tweak: Slides ordering in Premium Carousel widget by adding repeater option.
144
+ - Fixed: Progress Bar does not appear on the preview page.
145
+
146
  = 2.8.4 =
147
 
148
  - Tweak: Added Self Hosted Videos option to Premium Video Box widget.
widgets/premium-carousel.php CHANGED
@@ -45,17 +45,58 @@ class Premium_Carousel extends Widget_Base {
45
  'label' => esc_html__( 'Carousel' , 'premium-addons-for-elementor' )
46
  ]
47
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
 
49
  $this->add_control(
50
  'premium_carousel_slider_content',
51
  [
52
- 'label' => esc_html__( 'Content', 'premium-addons-for-elementor' ),
53
  'description' => esc_html__( 'Slider content is a template which you can choose from Elementor library. Each template will be a slider content', 'premium-addons-for-elementor' ),
54
  'type' => Controls_Manager::SELECT2,
55
  'options' => $this->getTemplateInstance()->get_elementor_page_list(),
56
  'multiple' => true,
 
 
 
57
  ]
58
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
 
60
 
61
  $this->add_control(
@@ -64,11 +105,11 @@ class Premium_Carousel extends Widget_Base {
64
  'label' => esc_html__( 'Type', 'premium-addons-for-elementor' ),
65
  'description' => esc_html__( 'Set a navigation type', 'premium-addons-for-elementor' ),
66
  'type' => Controls_Manager::SELECT,
67
- 'default' => 'horizontal',
68
  'options' => [
69
  'horizontal' => esc_html__( 'Horizontal', 'premium-addons-for-elementor' ),
70
  'vertical' => esc_html__( 'Vertical', 'premium-addons-for-elementor' )
71
- ]
 
72
  ]
73
  );
74
 
@@ -934,13 +975,24 @@ class Premium_Carousel extends Widget_Base {
934
  'slidesTab' => $slides_on_tabs,
935
  'slidesMob' => $slides_on_mob,
936
  ];
 
 
 
 
 
 
 
 
 
 
 
 
 
937
  ?>
938
 
939
  <div id="premium-carousel-wrapper-<?php echo esc_attr( $this->get_id() ); ?>" class="premium-carousel-wrapper <?php echo esc_attr($dot_anim); ?> carousel-wrapper-<?php echo esc_attr( $this->get_id() ); ?><?php echo $extra_class;?>" <?php echo $dir; ?> data-settings='<?php echo wp_json_encode($carousel_settings); ?>'>
940
  <div id="premium-carousel-<?php echo esc_attr( $this->get_id() ); ?>" class="premium-carousel-inner">
941
  <?php
942
- $premium_elements_page_id = is_array( $settings['premium_carousel_slider_content'] ) ? $settings['premium_carousel_slider_content'] : array();
943
- $premium_elements_frontend = new Frontend;
944
 
945
  foreach( $premium_elements_page_id as $elementor_post_id ) :
946
  ?>
45
  'label' => esc_html__( 'Carousel' , 'premium-addons-for-elementor' )
46
  ]
47
  );
48
+
49
+ $this->add_control(
50
+ 'premium_carousel_content_type',
51
+ [
52
+ 'label' => esc_html__( 'Content Type', 'premium-addons-for-elementor' ),
53
+ 'description' => esc_html__( 'How templates are selected', 'premium-addons-for-elementor' ),
54
+ 'type' => Controls_Manager::SELECT,
55
+ 'options' => [
56
+ 'select' => esc_html__( 'Select Field', 'premium-addons-for-elementor' ),
57
+ 'repeater' => esc_html__( 'Repeater', 'premium-addons-for-elementor' )
58
+ ],
59
+ 'default' => 'select',
60
+ ]
61
+ );
62
 
63
  $this->add_control(
64
  'premium_carousel_slider_content',
65
  [
66
+ 'label' => esc_html__( 'Templates', 'premium-addons-for-elementor' ),
67
  'description' => esc_html__( 'Slider content is a template which you can choose from Elementor library. Each template will be a slider content', 'premium-addons-for-elementor' ),
68
  'type' => Controls_Manager::SELECT2,
69
  'options' => $this->getTemplateInstance()->get_elementor_page_list(),
70
  'multiple' => true,
71
+ 'condition' => [
72
+ 'premium_carousel_content_type' => 'select'
73
+ ]
74
  ]
75
  );
76
+
77
+ $repeater = new REPEATER();
78
+
79
+ $repeater->add_control(
80
+ 'premium_carousel_repeater_item',
81
+ [
82
+ 'label' => esc_html__( 'Content', 'premium-addons-for-elementor' ),
83
+ 'type' => Controls_Manager::SELECT2,
84
+ 'options' => $this->getTemplateInstance()->get_elementor_page_list(),
85
+ ]
86
+ );
87
+
88
+ $this->add_control(
89
+ 'premium_carousel_templates_repeater',
90
+ [
91
+ 'label' => esc_html__('Templates', 'premium-addons-for-elementor'),
92
+ 'type' => Controls_Manager::REPEATER,
93
+ 'fields' => array_values( $repeater->get_controls() ),
94
+ 'condition' => [
95
+ 'premium_carousel_content_type' => 'repeater'
96
+ ],
97
+ 'title_field' => 'Template: {{{ premium_carousel_repeater_item }}}'
98
+ ]
99
+ );
100
 
101
 
102
  $this->add_control(
105
  'label' => esc_html__( 'Type', 'premium-addons-for-elementor' ),
106
  'description' => esc_html__( 'Set a navigation type', 'premium-addons-for-elementor' ),
107
  'type' => Controls_Manager::SELECT,
 
108
  'options' => [
109
  'horizontal' => esc_html__( 'Horizontal', 'premium-addons-for-elementor' ),
110
  'vertical' => esc_html__( 'Vertical', 'premium-addons-for-elementor' )
111
+ ],
112
+ 'default' => 'horizontal',
113
  ]
114
  );
115
 
975
  'slidesTab' => $slides_on_tabs,
976
  'slidesMob' => $slides_on_mob,
977
  ];
978
+
979
+ $premium_elements_page_id = array();
980
+ if( 'select' === $settings['premium_carousel_content_type'] ){
981
+ $premium_elements_page_id = $settings['premium_carousel_slider_content'];
982
+ } else {
983
+ foreach( $settings['premium_carousel_templates_repeater'] as $template ){
984
+ array_push($premium_elements_page_id, $template['premium_carousel_repeater_item']);
985
+ }
986
+ }
987
+
988
+ $premium_elements_frontend = new Frontend;
989
+
990
+
991
  ?>
992
 
993
  <div id="premium-carousel-wrapper-<?php echo esc_attr( $this->get_id() ); ?>" class="premium-carousel-wrapper <?php echo esc_attr($dot_anim); ?> carousel-wrapper-<?php echo esc_attr( $this->get_id() ); ?><?php echo $extra_class;?>" <?php echo $dir; ?> data-settings='<?php echo wp_json_encode($carousel_settings); ?>'>
994
  <div id="premium-carousel-<?php echo esc_attr( $this->get_id() ); ?>" class="premium-carousel-inner">
995
  <?php
 
 
996
 
997
  foreach( $premium_elements_page_id as $elementor_post_id ) :
998
  ?>
widgets/premium-counter.php CHANGED
@@ -18,7 +18,11 @@ class Premium_Counter extends Widget_Base {
18
  }
19
 
20
  public function get_script_depends() {
21
- return [ 'waypoints','premium-addons-js','counter-up-js' ];
 
 
 
 
22
  }
23
 
24
  public function get_categories() {
18
  }
19
 
20
  public function get_script_depends() {
21
+ return [
22
+ 'waypoints-js',
23
+ 'counter-up-js',
24
+ 'premium-addons-js',
25
+ ];
26
  }
27
 
28
  public function get_categories() {
widgets/premium-person.php CHANGED
@@ -272,6 +272,26 @@ class Premium_Person extends Widget_Base {
272
  ]
273
  );
274
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
275
  /*Person Pinterest*/
276
  $this->add_control('premium_person_pinterest',
277
  [
@@ -552,6 +572,9 @@ class Premium_Person extends Widget_Base {
552
  <?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="fa fa-twitter"></i></a></li><?php endif; ?>
553
  <?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="fa fa-linkedin"></i></a></li><?php endif; ?>
554
  <?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="fa fa-google-plus"></i></a></li><?php endif; ?>
 
 
 
555
  <?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="fa fa-pinterest"></i></a></li><?php endif; ?>
556
  <?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="fa fa-dribbble"></i></a></li><?php endif; ?>
557
  <?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="fa fa-behance"></i></a></li><?php endif; ?>
@@ -623,6 +646,14 @@ class Premium_Person extends Widget_Base {
623
  <li class="premium-person-list-item premium-person-google"><a href="{{ settings.premium_person_google }}" target="_blank"><i class="fa fa-google-plus"></i></a></li>
624
  <# } #>
625
 
 
 
 
 
 
 
 
 
626
  <# if( '' != settings.premium_person_pinterest ) { #>
627
  <li class="premium-person-list-item premium-person-pinterest"><a href="{{ settings.premium_person_pinterest }}" target="_blank"><i class="fa fa-pinterest"></i></a></li>
628
  <# } #>
272
  ]
273
  );
274
 
275
+ /*Person Youtube*/
276
+ $this->add_control('premium_person_youtube',
277
+ [
278
+ 'label' => esc_html__('Youtube', 'premium-addons-for-elementor'),
279
+ 'type' => Controls_Manager::TEXT,
280
+ 'dynamic' => [ 'active' => true ],
281
+ 'label_block' => true,
282
+ ]
283
+ );
284
+
285
+ /*Person Instagram*/
286
+ $this->add_control('premium_person_instagram',
287
+ [
288
+ 'label' => esc_html__('Instagram', 'premium-addons-for-elementor'),
289
+ 'type' => Controls_Manager::TEXT,
290
+ 'dynamic' => [ 'active' => true ],
291
+ 'label_block' => true,
292
+ ]
293
+ );
294
+
295
  /*Person Pinterest*/
296
  $this->add_control('premium_person_pinterest',
297
  [
572
  <?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="fa fa-twitter"></i></a></li><?php endif; ?>
573
  <?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="fa fa-linkedin"></i></a></li><?php endif; ?>
574
  <?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="fa fa-google-plus"></i></a></li><?php endif; ?>
575
+ <?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="fa fa-youtube"></i></a></li><?php endif; ?>
576
+
577
+ <?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="fa fa-instagram"></i></a></li><?php endif; ?>
578
  <?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="fa fa-pinterest"></i></a></li><?php endif; ?>
579
  <?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="fa fa-dribbble"></i></a></li><?php endif; ?>
580
  <?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="fa fa-behance"></i></a></li><?php endif; ?>
646
  <li class="premium-person-list-item premium-person-google"><a href="{{ settings.premium_person_google }}" target="_blank"><i class="fa fa-google-plus"></i></a></li>
647
  <# } #>
648
 
649
+ <# if( '' != settings.premium_person_youtube ) { #>
650
+ <li class="premium-person-list-item premium-person-youtube"><a href="{{ settings.premium_person_youtube }}" target="_blank"><i class="fa fa-youtube"></i></a></li>
651
+ <# } #>
652
+
653
+ <# if( '' != settings.premium_person_instagram ) { #>
654
+ <li class="premium-person-list-item premium-person-instagram"><a href="{{ settings.premium_person_instagram }}" target="_blank"><i class="fa fa-instagram"></i></a></li>
655
+ <# } #>
656
+
657
  <# if( '' != settings.premium_person_pinterest ) { #>
658
  <li class="premium-person-list-item premium-person-pinterest"><a href="{{ settings.premium_person_pinterest }}" target="_blank"><i class="fa fa-pinterest"></i></a></li>
659
  <# } #>
widgets/premium-progressbar.php CHANGED
@@ -22,7 +22,10 @@ class Premium_Progressbar extends Widget_Base {
22
 
23
  public function get_script_depends()
24
  {
25
- return ['premium-addons-js', 'waypoints'];
 
 
 
26
  }
27
 
28
  // Adding the controls fields for the premium progress bar
22
 
23
  public function get_script_depends()
24
  {
25
+ return [
26
+ 'waypoints-js',
27
+ 'premium-addons-js'
28
+ ];
29
  }
30
 
31
  // Adding the controls fields for the premium progress bar