Premium Addons for Elementor - Version 3.3.8

Version Description

  • Tweak: Plugin core refactored to improve performance.
  • Fixed: Images don't appear when First Category and Filter options are both disabled in Grid widget.
Download this release

Release Info

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

Code changes from version 3.3.7 to 3.3.8

Files changed (41) hide show
  1. admin/includes/{notices.php → admin-notices.php} +29 -27
  2. admin/includes/dep/admin-helper.php +60 -0
  3. includes/system-info.php → admin/includes/dep/info.php +1 -1
  4. {includes → admin/includes/dep}/maintenance.php +0 -0
  5. {includes → admin/includes/dep}/rollback.php +0 -0
  6. admin/{settings/gopro.php → includes/papro-actions.php} +8 -6
  7. admin/{settings/about.php → includes/plugin-info.php} +6 -3
  8. admin/{settings/sys-info.php → includes/reports.php} +8 -5
  9. admin/{settings → includes}/version-control.php +11 -4
  10. admin/settings/maps.php +5 -3
  11. admin/settings/{elements.php → modules-setting.php} +10 -5
  12. includes/class-addons-integration.php +17 -12
  13. includes/elementor-helper.php +2 -3
  14. plugin.php → includes/plugin.php +9 -6
  15. index.php +0 -9
  16. languages/premium-addons-for-elementor.pot +3 -3
  17. premium-addons-for-elementor.php +14 -14
  18. readme.txt +6 -1
  19. queries.php → widgets/dep/queries.php +0 -0
  20. widgets/premium-banner.php +17 -5
  21. widgets/premium-blog.php +14 -3
  22. widgets/premium-button.php +16 -3
  23. widgets/premium-carousel.php +15 -6
  24. widgets/premium-contactform.php +12 -8
  25. widgets/premium-countdown.php +13 -2
  26. widgets/premium-counter.php +15 -3
  27. widgets/premium-dual-header.php +14 -3
  28. widgets/premium-fancytext.php +13 -2
  29. widgets/premium-grid.php +29 -8
  30. widgets/premium-image-button.php +16 -3
  31. widgets/premium-image-scroll.php +13 -3
  32. widgets/premium-image-separator.php +12 -3
  33. widgets/premium-maps.php +17 -4
  34. widgets/premium-modalbox.php +19 -3
  35. widgets/premium-person.php +13 -2
  36. widgets/premium-pricing-table.php +16 -3
  37. widgets/premium-progressbar.php +11 -2
  38. widgets/premium-testimonials.php +12 -2
  39. widgets/premium-title.php +12 -2
  40. widgets/premium-videobox.php +14 -2
  41. widgets/premium-vscroll.php +15 -3
admin/includes/{notices.php → admin-notices.php} RENAMED
@@ -1,10 +1,10 @@
1
  <?php
2
 
3
- namespace PremiumAddons;
4
 
5
  if( ! defined( 'ABSPATH') ) exit();
6
 
7
- class Premium_Admin_Notices {
8
 
9
  private static $instance = null;
10
 
@@ -213,33 +213,29 @@ class Premium_Admin_Notices {
213
 
214
  if( ! defined('PREMIUM_BLOCKS_VERSION' ) ) {
215
 
216
- if ( ! self::is_plugin_installed( $pbg_path ) ) {
217
 
218
- if( self::check_user_can( 'install_plugins' ) ) {
219
-
220
- $pbg_notice = get_option( 'pbg_notice' );
221
-
222
- $install_url = wp_nonce_url( self_admin_url( sprintf( 'update.php?action=install-plugin&plugin=%s', self::$pbg ) ), 'install-plugin_premium-blocks-for-gutenberg' );
223
-
224
- if ( '1' === $pbg_notice ) {
225
- return;
226
- } else if ( '1' !== $pbg_notice ) {
227
- $optout_url = wp_nonce_url( add_query_arg( 'pbg', 'opt_out' ), 'opt_out' );
228
-
229
- ?>
230
  <div class="error">
231
- <p style="display: flex; align-items: center; padding:10px 10px 10px 0;">
232
- <img src="<?php echo PREMIUM_ADDONS_URL .'admin/images/premium-blocks-logo.png'; ?>" style="margin-right: 0.8em; width: 40px;">
233
- <span><strong><?php echo __('Premium Blocks for Gutenberg', 'premium-addons-for-elementor'); ?>&nbsp;</strong><?php echo __('is Now Available.','premium-addons-for-elementor'); ?>&nbsp;</span>
234
- <a href="<?php echo $install_url; ?>" style="flex-grow: 2;"><span class="button-primary" style="margin-left:5px;"><?php echo __('Install it Now.','premium-addons-for-elementor'); ?></span></a>
235
- <a href="<?php echo $optout_url; ?>" style="text-decoration: none; margin-left: 1em; float:right; "><span class="dashicons dashicons-dismiss"></span></a>
236
- </p>
237
  </div>
238
 
239
- <?php }
240
 
241
- }
242
-
243
  }
244
 
245
  }
@@ -247,8 +243,13 @@ class Premium_Admin_Notices {
247
  }
248
 
249
  /**
250
- * Returns the active theme slug
251
- */
 
 
 
 
 
252
  public static function get_installed_theme() {
253
 
254
  $theme = wp_get_theme();
@@ -372,7 +373,8 @@ if( ! function_exists('get_notices_instance') ) {
372
  * @return object
373
  */
374
  function get_notices_instance() {
375
- return Premium_Admin_Notices::get_instance();
376
  }
377
  }
 
378
  get_notices_instance();
1
  <?php
2
 
3
+ namespace PremiumAddons\Admin\Includes;
4
 
5
  if( ! defined( 'ABSPATH') ) exit();
6
 
7
+ class Admin_Notices {
8
 
9
  private static $instance = null;
10
 
213
 
214
  if( ! defined('PREMIUM_BLOCKS_VERSION' ) ) {
215
 
216
+ if ( ! self::is_plugin_installed( $pbg_path ) && self::check_user_can( 'install_plugins' ) ) {
217
 
218
+ $pbg_notice = get_option( 'pbg_notice' );
219
+
220
+ $install_url = wp_nonce_url( self_admin_url( sprintf( 'update.php?action=install-plugin&plugin=%s', self::$pbg ) ), 'install-plugin_premium-blocks-for-gutenberg' );
221
+
222
+ if ( '1' === $pbg_notice ) {
223
+ return;
224
+ } else if ( '1' !== $pbg_notice ) {
225
+ $optout_url = wp_nonce_url( add_query_arg( 'pbg', 'opt_out' ), 'opt_out' );
226
+
227
+ ?>
 
 
228
  <div class="error">
229
+ <p style="display: flex; align-items: center; padding:10px 10px 10px 0;">
230
+ <img src="<?php echo PREMIUM_ADDONS_URL .'admin/images/premium-blocks-logo.png'; ?>" style="margin-right: 0.8em; width: 40px;">
231
+ <span><strong><?php echo __('Premium Blocks for Gutenberg', 'premium-addons-for-elementor'); ?>&nbsp;</strong><?php echo __('is Now Available.','premium-addons-for-elementor'); ?>&nbsp;</span>
232
+ <a href="<?php echo $install_url; ?>" style="flex-grow: 2;"><span class="button-primary" style="margin-left:5px;"><?php echo __('Install it Now.','premium-addons-for-elementor'); ?></span></a>
233
+ <a href="<?php echo $optout_url; ?>" style="text-decoration: none; margin-left: 1em; float:right; "><span class="dashicons dashicons-dismiss"></span></a>
234
+ </p>
235
  </div>
236
 
237
+ <?php }
238
 
 
 
239
  }
240
 
241
  }
243
  }
244
 
245
  /**
246
+ * Get Installed Theme
247
+ *
248
+ * Returns the active theme slug
249
+ *
250
+ * @access public
251
+ * @return string theme slug
252
+ */
253
  public static function get_installed_theme() {
254
 
255
  $theme = wp_get_theme();
373
  * @return object
374
  */
375
  function get_notices_instance() {
376
+ return Admin_Notices::get_instance();
377
  }
378
  }
379
+
380
  get_notices_instance();
admin/includes/dep/admin-helper.php ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace PremiumAddons\Admin\Includes;
4
+
5
+ if ( ! defined( 'ABSPATH' ) ) exit;
6
+
7
+ class Admin_Helper {
8
+
9
+ private static $instance = null;
10
+
11
+ public static $current_screen = null;
12
+
13
+ /**
14
+ * Constructor for the class
15
+ */
16
+ public function __construct() {
17
+
18
+ add_action( 'current_screen', array( $this, 'get_current_screen' ) );
19
+
20
+ }
21
+
22
+ /**
23
+ * Gets current screen slug
24
+ *
25
+ * @since 3.3.8
26
+ * @access public
27
+ *
28
+ * @return string current screen slug
29
+ */
30
+ public static function get_current_screen() {
31
+
32
+ self::$current_screen = get_current_screen()->id;
33
+
34
+ return isset( self::$current_screen ) ? self::$current_screen : false;
35
+
36
+ }
37
+
38
+ public static function get_instance() {
39
+ if( self::$instance == null ) {
40
+ self::$instance = new self;
41
+ }
42
+ return self::$instance;
43
+ }
44
+
45
+ }
46
+
47
+ if( ! function_exists('get_admin_helper_instance') ) {
48
+ /**
49
+ * Returns an instance of the plugin class.
50
+ *
51
+ * @since 3.3.8
52
+ *
53
+ * @return object
54
+ */
55
+ function get_admin_helper_instance() {
56
+ return Admin_Helper::get_instance();
57
+ }
58
+ }
59
+
60
+ get_admin_helper_instance();
includes/system-info.php → admin/includes/dep/info.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- if( !defined( 'ABSPATH' ) ) exit; //Exit if accessed directly
4
 
5
  function pa_get_sysinfo() {
6
  global $wpdb;
1
  <?php
2
 
3
+ if( ! defined( 'ABSPATH' ) ) exit; //Exit if accessed directly
4
 
5
  function pa_get_sysinfo() {
6
  global $wpdb;
{includes → admin/includes/dep}/maintenance.php RENAMED
File without changes
{includes → admin/includes/dep}/rollback.php RENAMED
File without changes
admin/{settings/gopro.php → includes/papro-actions.php} RENAMED
@@ -1,11 +1,12 @@
1
  <?php
2
- namespace PremiumAddons;
 
3
 
4
  if ( ! defined( 'ABSPATH' ) ) exit;
5
 
6
- class Pro_Settings {
7
 
8
- public function create_pro_menus(){
9
 
10
  add_submenu_page(
11
  'premium-addons',
@@ -21,7 +22,7 @@ class Pro_Settings {
21
 
22
  public function handle_custom_redirects() {
23
 
24
- $theme_name = Premium_Admin_Notices::get_installed_theme();
25
 
26
  if ( empty( $_GET['page'] ) ) {
27
  return;
@@ -57,9 +58,10 @@ class Pro_Settings {
57
 
58
  add_action( 'admin_init', [ $this, 'on_admin_init' ] );
59
 
60
- add_action( 'admin_menu', array ($this,'create_pro_menus' ), 100 );
 
61
 
62
- add_action( 'admin_menu', array ($this, 'change_admin_menu_name'), 100);
63
 
64
  }
65
  }
1
  <?php
2
+
3
+ namespace PremiumAddons\Admin\Includes;
4
 
5
  if ( ! defined( 'ABSPATH' ) ) exit;
6
 
7
+ class Papro_Actions {
8
 
9
+ public function create_pro_menus() {
10
 
11
  add_submenu_page(
12
  'premium-addons',
22
 
23
  public function handle_custom_redirects() {
24
 
25
+ $theme_name = Admin_Notices::get_installed_theme();
26
 
27
  if ( empty( $_GET['page'] ) ) {
28
  return;
58
 
59
  add_action( 'admin_init', [ $this, 'on_admin_init' ] );
60
 
61
+ if( ! defined('PREMIUM_PRO_ADDONS_VERSION') )
62
+ add_action( 'admin_menu', array ( $this,'create_pro_menus' ), 100 );
63
 
64
+ add_action( 'admin_menu', array ( $this, 'change_admin_menu_name'), 100 );
65
 
66
  }
67
  }
admin/{settings/about.php → includes/plugin-info.php} RENAMED
@@ -1,9 +1,12 @@
1
  <?php
2
- namespace PremiumAddons;
 
 
 
3
 
4
  if ( ! defined( 'ABSPATH' ) ) exit;
5
 
6
- class PA_About {
7
 
8
  public function create_about_menu() {
9
 
@@ -22,7 +25,7 @@ class PA_About {
22
 
23
  public function pa_about_page() {
24
 
25
- $theme_name = Premium_Admin_Notices::get_installed_theme();
26
 
27
  $url = sprintf('https://premiumaddons.com/pro/?utm_source=about-page&utm_medium=wp-dash&utm_campaign=get-pro&utm_term=%s', $theme_name );
28
 
1
  <?php
2
+
3
+ namespace PremiumAddons\Admin\Includes;
4
+
5
+ use PremiumAddons\Helper_Functions;
6
 
7
  if ( ! defined( 'ABSPATH' ) ) exit;
8
 
9
+ class Plugin_Info {
10
 
11
  public function create_about_menu() {
12
 
25
 
26
  public function pa_about_page() {
27
 
28
+ $theme_name = Admin_Notices::get_installed_theme();
29
 
30
  $url = sprintf('https://premiumaddons.com/pro/?utm_source=about-page&utm_medium=wp-dash&utm_campaign=get-pro&utm_term=%s', $theme_name );
31
 
admin/{settings/sys-info.php → includes/reports.php} RENAMED
@@ -1,10 +1,12 @@
1
  <?php
2
 
3
- namespace PremiumAddons;
4
 
5
- if(!defined('ABSPATH')) exit;
6
 
7
- class PA_System_Info {
 
 
8
 
9
  public function __construct() {
10
 
@@ -15,7 +17,7 @@ class PA_System_Info {
15
  add_submenu_page(
16
  'premium-addons',
17
  '',
18
- __('System Info','premium-addons-for-elementor'),
19
  'manage_options',
20
  'premium-addons-sys',
21
  [$this, 'pa_sys_info_page']
@@ -42,7 +44,8 @@ class PA_System_Info {
42
  <div class="pa-row">
43
  <h3 class="pa-sys-info-title"><?php echo __('System setup information useful for debugging purposes.','premium-addons-for-elementor');?></h3>
44
  <div class="pa-system-info-container">
45
- <?php
 
46
  echo nl2br( pa_get_sysinfo() );
47
  ?>
48
  </div>
1
  <?php
2
 
3
+ namespace PremiumAddons\Admin\Includes;
4
 
5
+ use PremiumAddons\Helper_Functions;
6
 
7
+ if( ! defined( 'ABSPATH' ) ) exit;
8
+
9
+ class Config_Data {
10
 
11
  public function __construct() {
12
 
17
  add_submenu_page(
18
  'premium-addons',
19
  '',
20
+ __( 'System Info','premium-addons-for-elementor' ),
21
  'manage_options',
22
  'premium-addons-sys',
23
  [$this, 'pa_sys_info_page']
44
  <div class="pa-row">
45
  <h3 class="pa-sys-info-title"><?php echo __('System setup information useful for debugging purposes.','premium-addons-for-elementor');?></h3>
46
  <div class="pa-system-info-container">
47
+ <?php
48
+ require_once ( PREMIUM_ADDONS_PATH . 'admin/includes/dep/info.php');
49
  echo nl2br( pa_get_sysinfo() );
50
  ?>
51
  </div>
admin/{settings → includes}/version-control.php RENAMED
@@ -1,10 +1,12 @@
1
  <?php
2
 
3
- namespace PremiumAddons;
4
 
5
- if(!defined('ABSPATH')) exit;
6
 
7
- class PA_Version_Control {
 
 
8
 
9
  public $pa_beta_keys = [ 'is-beta-tester' ];
10
 
@@ -15,14 +17,18 @@ class PA_Version_Control {
15
  private $pa_beta_get_settings;
16
 
17
  public function __construct() {
 
18
  add_action( 'admin_menu', array ($this,'create_version_control_menu' ), 100 );
 
19
  add_action( 'wp_ajax_pa_beta_save_settings', array( $this, 'pa_beta_save_settings' ) );
 
20
  }
21
 
22
 
23
  public function create_version_control_menu() {
24
 
25
  if ( ! Helper_Functions::is_show_version_control() ) {
 
26
  add_submenu_page(
27
  'premium-addons',
28
  '',
@@ -85,7 +91,7 @@ class PA_Version_Control {
85
  <tr class="pa-roll-row">
86
  <th>Rollback Version</th>
87
  <td>
88
- <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.3.6', 'premium-addons-for-elementor') ); ?></div>
89
  <p class="pa-roll-desc">
90
  <span><?php echo __('Warning: Please backup your database before making the rollback.', 'premium-addons-for-elementor'); ?></span>
91
  </p>
@@ -113,6 +119,7 @@ class PA_Version_Control {
113
  </div>
114
 
115
  <?php }
 
116
  public function pa_beta_save_settings() {
117
 
118
  if( isset( $_POST['fields'] ) ) {
1
  <?php
2
 
3
+ namespace PremiumAddons\Admin\Includes;
4
 
5
+ use PremiumAddons\Helper_Functions;
6
 
7
+ if( ! defined( 'ABSPATH' ) ) exit;
8
+
9
+ class Version_Control {
10
 
11
  public $pa_beta_keys = [ 'is-beta-tester' ];
12
 
17
  private $pa_beta_get_settings;
18
 
19
  public function __construct() {
20
+
21
  add_action( 'admin_menu', array ($this,'create_version_control_menu' ), 100 );
22
+
23
  add_action( 'wp_ajax_pa_beta_save_settings', array( $this, 'pa_beta_save_settings' ) );
24
+
25
  }
26
 
27
 
28
  public function create_version_control_menu() {
29
 
30
  if ( ! Helper_Functions::is_show_version_control() ) {
31
+
32
  add_submenu_page(
33
  'premium-addons',
34
  '',
91
  <tr class="pa-roll-row">
92
  <th>Rollback Version</th>
93
  <td>
94
+ <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.3.7', 'premium-addons-for-elementor') ); ?></div>
95
  <p class="pa-roll-desc">
96
  <span><?php echo __('Warning: Please backup your database before making the rollback.', 'premium-addons-for-elementor'); ?></span>
97
  </p>
119
  </div>
120
 
121
  <?php }
122
+
123
  public function pa_beta_save_settings() {
124
 
125
  if( isset( $_POST['fields'] ) ) {
admin/settings/maps.php CHANGED
@@ -1,10 +1,12 @@
1
  <?php
2
 
3
- namespace PremiumAddons;
 
 
4
 
5
  if( ! defined( 'ABSPATH' ) ) exit;
6
 
7
- class PA_Maps {
8
 
9
  public static $pa_maps_keys = [ 'premium-map-api', 'premium-map-disable-api', 'premium-map-cluster' ];
10
 
@@ -27,7 +29,7 @@ class PA_Maps {
27
  add_submenu_page(
28
  'premium-addons',
29
  '',
30
- __('Google Maps API', 'premium-addons-for-elementor'),
31
  'manage_options',
32
  'premium-addons-maps',
33
  [ $this, 'pa_maps_page' ]
1
  <?php
2
 
3
+ namespace PremiumAddons\Admin\Settings;
4
+
5
+ use PremiumAddons\Helper_Functions;
6
 
7
  if( ! defined( 'ABSPATH' ) ) exit;
8
 
9
+ class Maps {
10
 
11
  public static $pa_maps_keys = [ 'premium-map-api', 'premium-map-disable-api', 'premium-map-cluster' ];
12
 
29
  add_submenu_page(
30
  'premium-addons',
31
  '',
32
+ __('Google Maps', 'premium-addons-for-elementor'),
33
  'manage_options',
34
  'premium-addons-maps',
35
  [ $this, 'pa_maps_page' ]
admin/settings/{elements.php → modules-setting.php} RENAMED
@@ -1,10 +1,14 @@
1
  <?php
2
 
3
- namespace PremiumAddons;
 
 
 
 
4
 
5
  if( ! defined( 'ABSPATH' ) ) exit(); // Exit if accessed directly
6
 
7
- class PA_Elements_Settings {
8
 
9
  protected $page_slug = 'premium-addons';
10
 
@@ -68,7 +72,7 @@ class PA_Elements_Settings {
68
 
69
  wp_enqueue_style( 'pa-notice-css', PREMIUM_ADDONS_URL.'admin/assets/css/notice.css' );
70
 
71
- if( strpos($current_screen->id , $this->page_slug) !== false ) {
72
 
73
  wp_enqueue_style(
74
  'pa-admin-css',
@@ -134,8 +138,9 @@ class PA_Elements_Settings {
134
  );
135
  }
136
 
137
- public function pa_admin_page(){
138
- $theme_name = Premium_Admin_Notices::get_installed_theme();
 
139
 
140
  $js_info = array(
141
  'ajaxurl' => admin_url( 'admin-ajax.php' ),
1
  <?php
2
 
3
+ namespace PremiumAddons\Admin\Settings;
4
+
5
+ use PremiumAddons\Admin\Includes\Admin_Notices;
6
+ use PremiumAddons\Helper_Functions;
7
+
8
 
9
  if( ! defined( 'ABSPATH' ) ) exit(); // Exit if accessed directly
10
 
11
+ class Modules_Settings {
12
 
13
  protected $page_slug = 'premium-addons';
14
 
72
 
73
  wp_enqueue_style( 'pa-notice-css', PREMIUM_ADDONS_URL.'admin/assets/css/notice.css' );
74
 
75
+ if( strpos( $current_screen->id , $this->page_slug ) !== false ) {
76
 
77
  wp_enqueue_style(
78
  'pa-admin-css',
138
  );
139
  }
140
 
141
+ public function pa_admin_page() {
142
+
143
+ $theme_name = Admin_Notices::get_installed_theme();
144
 
145
  $js_info = array(
146
  'ajaxurl' => admin_url( 'admin-ajax.php' ),
includes/class-addons-integration.php CHANGED
@@ -2,9 +2,12 @@
2
 
3
  namespace PremiumAddons;
4
 
 
 
 
5
  if( ! defined( 'ABSPATH' ) ) exit();
6
 
7
- class Premium_Addons_Integration {
8
 
9
  private static $instance = null;
10
 
@@ -128,7 +131,7 @@ class Premium_Addons_Integration {
128
  */
129
  private function widgets_register() {
130
 
131
- $check_component_active = PA_Elements_Settings::get_enabled_keys();
132
 
133
  foreach ( glob( PREMIUM_ADDONS_PATH . 'widgets/' . '*.php' ) as $file ) {
134
 
@@ -151,7 +154,7 @@ class Premium_Addons_Integration {
151
  */
152
  public function register_frontend_scripts() {
153
 
154
- $maps_settings = PA_Maps::get_enabled_keys();
155
 
156
  wp_register_script(
157
  'premium-addons-js',
@@ -261,11 +264,11 @@ class Premium_Addons_Integration {
261
  */
262
  public function enqueue_editor_scripts() {
263
 
264
- $premium_maps_api = PA_Maps::get_enabled_keys()['premium-map-api'];
265
 
266
- $premium_maps_disable_api = PA_Maps::get_enabled_keys()['premium-map-disable-api'];
267
 
268
- $map_enabled = PA_Elements_Settings::get_enabled_keys()['premium-maps'];
269
 
270
  $premium_maps_enabled = isset( $map_enabled ) ? $map_enabled : 1;
271
 
@@ -341,12 +344,14 @@ class Premium_Addons_Integration {
341
  */
342
  public function register_addon( $file ) {
343
 
 
 
344
  $base = basename( str_replace( '.php', '', $file ) );
345
  $class = ucwords( str_replace( '-', ' ', $base ) );
346
  $class = str_replace( ' ', '_', $class );
347
- $class = sprintf( 'Elementor\%s', $class );
348
 
349
- if( 'Elementor\Premium_Contactform' != $class ){
350
  require $file;
351
  } else {
352
  if( function_exists('wpcf7') ) {
@@ -354,12 +359,12 @@ class Premium_Addons_Integration {
354
  }
355
  }
356
 
357
- if ( 'Elementor\Premium_Blog' == $class ) {
358
- require_once ( PREMIUM_ADDONS_PATH . 'queries.php' );
359
  }
360
 
361
  if ( class_exists( $class ) ) {
362
- \Elementor\PLUGIN::instance()->widgets_manager->register_widget_type( new $class );
363
  }
364
  }
365
 
@@ -390,7 +395,7 @@ if ( ! function_exists( 'premium_addons_integration' ) ) {
390
  * @return object
391
  */
392
  function premium_addons_integration() {
393
- return Premium_Addons_Integration::get_instance();
394
  }
395
  }
396
  premium_addons_integration();
2
 
3
  namespace PremiumAddons;
4
 
5
+ use PremiumAddons\Admin\Settings\Maps;
6
+ use PremiumAddons\Admin\Settings\Modules_Settings;
7
+
8
  if( ! defined( 'ABSPATH' ) ) exit();
9
 
10
+ class Addons_Integration {
11
 
12
  private static $instance = null;
13
 
131
  */
132
  private function widgets_register() {
133
 
134
+ $check_component_active = Modules_Settings::get_enabled_keys();
135
 
136
  foreach ( glob( PREMIUM_ADDONS_PATH . 'widgets/' . '*.php' ) as $file ) {
137
 
154
  */
155
  public function register_frontend_scripts() {
156
 
157
+ $maps_settings = Maps::get_enabled_keys();
158
 
159
  wp_register_script(
160
  'premium-addons-js',
264
  */
265
  public function enqueue_editor_scripts() {
266
 
267
+ $premium_maps_api = Maps::get_enabled_keys()['premium-map-api'];
268
 
269
+ $premium_maps_disable_api = Maps::get_enabled_keys()['premium-map-disable-api'];
270
 
271
+ $map_enabled = Modules_Settings::get_enabled_keys()['premium-maps'];
272
 
273
  $premium_maps_enabled = isset( $map_enabled ) ? $map_enabled : 1;
274
 
344
  */
345
  public function register_addon( $file ) {
346
 
347
+ $widget_manager = \Elementor\Plugin::instance()->widgets_manager;
348
+
349
  $base = basename( str_replace( '.php', '', $file ) );
350
  $class = ucwords( str_replace( '-', ' ', $base ) );
351
  $class = str_replace( ' ', '_', $class );
352
+ $class = sprintf( 'PremiumAddons\Widgets\%s', $class );
353
 
354
+ if( 'PremiumAddons\Widgets\Premium_Contactform' != $class ) {
355
  require $file;
356
  } else {
357
  if( function_exists('wpcf7') ) {
359
  }
360
  }
361
 
362
+ if ( 'PremiumAddons\Widgets\Premium_Blog' == $class ) {
363
+ require_once ( PREMIUM_ADDONS_PATH . 'widgets/dep/queries.php' );
364
  }
365
 
366
  if ( class_exists( $class ) ) {
367
+ $widget_manager->register_widget_type( new $class );
368
  }
369
  }
370
 
395
  * @return object
396
  */
397
  function premium_addons_integration() {
398
+ return Addons_Integration::get_instance();
399
  }
400
  }
401
  premium_addons_integration();
includes/elementor-helper.php CHANGED
@@ -1,10 +1,9 @@
1
- <?php
2
- namespace Elementor;
3
 
 
4
 
5
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
6
 
7
-
8
  /**
9
  * premium_Templat_Tags class defines all the query of options of select box
10
  *
1
+ <?php
 
2
 
3
+ namespace PremiumAddons\Includes;
4
 
5
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
6
 
 
7
  /**
8
  * premium_Templat_Tags class defines all the query of options of select box
9
  *
plugin.php → includes/plugin.php RENAMED
@@ -2,6 +2,9 @@
2
 
3
  namespace PremiumAddons;
4
 
 
 
 
5
  if ( ! defined( 'ABSPATH' ) ) exit;
6
 
7
  class Plugin {
@@ -27,12 +30,12 @@ class Plugin {
27
 
28
  private function init_components() {
29
 
30
- new PA_About();
31
- new PA_Maps();
32
- new PA_Version_Control();
33
- new PA_System_Info();
34
- new PA_Elements_Settings();
35
- $this->settings = new Pro_Settings();
36
  }
37
 
38
  private function __construct() {
2
 
3
  namespace PremiumAddons;
4
 
5
+ use PremiumAddons\Admin\Includes;
6
+ use PremiumAddons\Admin\Settings;
7
+
8
  if ( ! defined( 'ABSPATH' ) ) exit;
9
 
10
  class Plugin {
30
 
31
  private function init_components() {
32
 
33
+ new Includes\Plugin_Info();
34
+ new Settings\Maps();
35
+ new Includes\Version_Control();
36
+ new Includes\Config_Data();
37
+ new Settings\Modules_Settings();
38
+ $this->settings = new Includes\Papro_Actions();
39
  }
40
 
41
  private function __construct() {
index.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
- /**
3
- * Silence is golden
4
- *
5
- * @package Premium Addons
6
- * @category Core
7
- * @author Leap13
8
- * @license GPL-2.0+
9
- */
 
 
 
 
 
 
 
 
 
languages/premium-addons-for-elementor.pot CHANGED
@@ -2,7 +2,7 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Premium Addons for Elementor\n"
5
- "POT-Creation-Date: 2019-05-09 11:01+0200\n"
6
  "PO-Revision-Date: 2018-02-15 10:41+0200\n"
7
  "Last-Translator: \n"
8
  "Language-Team: Leap13\n"
@@ -415,7 +415,7 @@ msgid "Widgets Settings"
415
  msgstr ""
416
 
417
  #: admin/settings/maps.php:30
418
- msgid "Google Maps API"
419
  msgstr ""
420
 
421
  #: admin/settings/maps.php:80
@@ -473,7 +473,7 @@ msgid ""
473
  msgstr ""
474
 
475
  #: admin/settings/version-control.php:88
476
- msgid "Reinstall Version 3.3.4"
477
  msgstr ""
478
 
479
  #: admin/settings/version-control.php:90
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Premium Addons for Elementor\n"
5
+ "POT-Creation-Date: 2019-05-13 09:49+0200\n"
6
  "PO-Revision-Date: 2018-02-15 10:41+0200\n"
7
  "Last-Translator: \n"
8
  "Language-Team: Leap13\n"
415
  msgstr ""
416
 
417
  #: admin/settings/maps.php:30
418
+ msgid "Google Maps"
419
  msgstr ""
420
 
421
  #: admin/settings/maps.php:80
473
  msgstr ""
474
 
475
  #: admin/settings/version-control.php:88
476
+ msgid "Reinstall Version 3.3.6"
477
  msgstr ""
478
 
479
  #: admin/settings/version-control.php:90
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.3.7
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.3.7');
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.3.6');
23
 
24
  if( ! class_exists('Premium_Addons_Elementor') ) {
25
 
@@ -97,23 +97,23 @@ if( ! class_exists('Premium_Addons_Elementor') ) {
97
 
98
  if ( is_admin() ) {
99
 
100
- require_once ( PREMIUM_ADDONS_PATH . 'includes/system-info.php');
101
- require_once ( PREMIUM_ADDONS_PATH . 'includes/maintenance.php');
102
- require_once ( PREMIUM_ADDONS_PATH . 'includes/rollback.php');
103
  require_once ( PREMIUM_ADDONS_PATH . 'includes/class-beta-testers.php');
104
- require_once ( PREMIUM_ADDONS_PATH . 'plugin.php');
105
- require_once ( PREMIUM_ADDONS_PATH . 'admin/includes/notices.php' );
106
- require_once ( PREMIUM_ADDONS_PATH . 'admin/settings/about.php');
107
- require_once ( PREMIUM_ADDONS_PATH . 'admin/settings/version-control.php');
108
- require_once ( PREMIUM_ADDONS_PATH . 'admin/settings/sys-info.php');
109
- require_once ( PREMIUM_ADDONS_PATH . 'admin/settings/gopro.php');
110
  $beta_testers = new Premium_Beta_Testers();
111
 
112
  }
113
 
114
  require_once ( PREMIUM_ADDONS_PATH . 'includes/class-helper-functions.php' );
115
  require_once ( PREMIUM_ADDONS_PATH . 'admin/settings/maps.php' );
116
- require_once ( PREMIUM_ADDONS_PATH . 'admin/settings/elements.php' );
117
  require_once ( PREMIUM_ADDONS_PATH . 'includes/elementor-helper.php' );
118
 
119
  }
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.3.8
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.3.8');
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.3.7');
23
 
24
  if( ! class_exists('Premium_Addons_Elementor') ) {
25
 
97
 
98
  if ( is_admin() ) {
99
 
100
+ require_once ( PREMIUM_ADDONS_PATH . 'admin/includes/dep/maintenance.php');
101
+ require_once ( PREMIUM_ADDONS_PATH . 'admin/includes/dep/rollback.php');
102
+
103
  require_once ( PREMIUM_ADDONS_PATH . 'includes/class-beta-testers.php');
104
+ require_once ( PREMIUM_ADDONS_PATH . 'includes/plugin.php');
105
+ require_once ( PREMIUM_ADDONS_PATH . 'admin/includes/admin-notices.php' );
106
+ require_once ( PREMIUM_ADDONS_PATH . 'admin/includes/plugin-info.php');
107
+ require_once ( PREMIUM_ADDONS_PATH . 'admin/includes/version-control.php');
108
+ require_once ( PREMIUM_ADDONS_PATH . 'admin/includes/reports.php');
109
+ require_once ( PREMIUM_ADDONS_PATH . 'admin/includes/papro-actions.php');
110
  $beta_testers = new Premium_Beta_Testers();
111
 
112
  }
113
 
114
  require_once ( PREMIUM_ADDONS_PATH . 'includes/class-helper-functions.php' );
115
  require_once ( PREMIUM_ADDONS_PATH . 'admin/settings/maps.php' );
116
+ require_once ( PREMIUM_ADDONS_PATH . 'admin/settings/modules-setting.php' );
117
  require_once ( PREMIUM_ADDONS_PATH . 'includes/elementor-helper.php' );
118
 
119
  }
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: http://premiumaddons.com
5
  Requires at least: 4.5
6
  Tested up to: 5.2
7
  Requires PHP: 5.4
8
- Stable tag: 3.3.7
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
@@ -139,6 +139,11 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
139
 
140
  == Changelog ==
141
 
 
 
 
 
 
142
  = 3.3.7 =
143
 
144
  - Tweak: Added `_content_template()` method for Fancy Text widget to enhance rendering speed.
5
  Requires at least: 4.5
6
  Tested up to: 5.2
7
  Requires PHP: 5.4
8
+ Stable tag: 3.3.8
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
139
 
140
  == Changelog ==
141
 
142
+ = 3.3.8 =
143
+
144
+ - Tweak: Plugin core refactored to improve performance.
145
+ - Fixed: Images don't appear when `First Category` and `Filter` options are both disabled in Grid widget.
146
+
147
  = 3.3.7 =
148
 
149
  - Tweak: Added `_content_template()` method for Fancy Text widget to enhance rendering speed.
queries.php → widgets/dep/queries.php RENAMED
File without changes
widgets/premium-banner.php CHANGED
@@ -1,6 +1,19 @@
1
  <?php
2
 
3
- namespace Elementor;
 
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
6
 
@@ -9,7 +22,7 @@ class Premium_Banner extends Widget_Base {
9
  protected $templateInstance;
10
 
11
  public function getTemplateInstance() {
12
- return $this->templateInstance = premium_Template_Tags::getInstance();
13
  }
14
 
15
  public function get_name() {
@@ -17,7 +30,7 @@ class Premium_Banner extends Widget_Base {
17
  }
18
 
19
  public function get_title() {
20
- return sprintf( '%1$s %2$s', \PremiumAddons\Helper_Functions::get_prefix(), __('Banner', 'premium-addons-for-elementor') );
21
  }
22
 
23
  public function get_icon() {
@@ -28,8 +41,7 @@ class Premium_Banner extends Widget_Base {
28
  return [ 'premium-elements' ];
29
  }
30
 
31
- public function get_script_depends()
32
- {
33
  return ['premium-addons-js'];
34
  }
35
 
1
  <?php
2
 
3
+ namespace PremiumAddons\Widgets;
4
+
5
+ use PremiumAddons\Helper_Functions;
6
+ use PremiumAddons\Includes;
7
+ use Elementor\Widget_Base;
8
+ use Elementor\Utils;
9
+ use Elementor\Control_Media;
10
+ use Elementor\Controls_Manager;
11
+ use Elementor\Scheme_Color;
12
+ use Elementor\Scheme_Typography;
13
+ use Elementor\Group_Control_Border;
14
+ use Elementor\Group_Control_Typography;
15
+ use Elementor\Group_Control_Css_Filter;
16
+ use Elementor\Group_Control_Text_Shadow;
17
 
18
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
19
 
22
  protected $templateInstance;
23
 
24
  public function getTemplateInstance() {
25
+ return $this->templateInstance = Includes\premium_Template_Tags::getInstance();
26
  }
27
 
28
  public function get_name() {
30
  }
31
 
32
  public function get_title() {
33
+ return sprintf( '%1$s %2$s', Helper_Functions::get_prefix(), __('Banner', 'premium-addons-for-elementor') );
34
  }
35
 
36
  public function get_icon() {
41
  return [ 'premium-elements' ];
42
  }
43
 
44
+ public function get_script_depends() {
 
45
  return ['premium-addons-js'];
46
  }
47
 
widgets/premium-blog.php CHANGED
@@ -1,22 +1,33 @@
1
  <?php
2
- namespace Elementor;
 
 
 
 
 
 
 
 
 
 
3
 
4
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
5
 
6
  class Premium_Blog extends Widget_Base {
 
7
  public function get_name() {
8
  return 'premium-addon-blog';
9
  }
10
 
11
  public function get_title() {
12
- return sprintf( '%1$s %2$s', \PremiumAddons\Helper_Functions::get_prefix(), __('Blog', 'premium-addons-for-elementor') );
13
  }
14
 
15
  public function is_reload_preview_required() {
16
  return true;
17
  }
18
 
19
- public function get_script_depends(){
20
  return [
21
  'isotope-js',
22
  'jquery-slick',
1
  <?php
2
+
3
+ namespace PremiumAddons\Widgets;
4
+
5
+ use PremiumAddons\Helper_Functions;
6
+ use Elementor\Widget_Base;
7
+ use Elementor\Controls_Manager;
8
+ use Elementor\Scheme_Color;
9
+ use Elementor\Group_Control_Border;
10
+ use Elementor\Group_Control_Typography;
11
+ use Elementor\Group_Control_Css_Filter;
12
+ use Elementor\Group_Control_Box_Shadow;
13
 
14
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
15
 
16
  class Premium_Blog extends Widget_Base {
17
+
18
  public function get_name() {
19
  return 'premium-addon-blog';
20
  }
21
 
22
  public function get_title() {
23
+ return sprintf( '%1$s %2$s', Helper_Functions::get_prefix(), __('Blog', 'premium-addons-for-elementor') );
24
  }
25
 
26
  public function is_reload_preview_required() {
27
  return true;
28
  }
29
 
30
+ public function get_script_depends() {
31
  return [
32
  'isotope-js',
33
  'jquery-slick',
widgets/premium-button.php CHANGED
@@ -1,9 +1,22 @@
1
  <?php
2
- namespace Elementor;
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
5
 
6
  class Premium_Button extends Widget_Base {
 
7
  public function get_name() {
8
  return 'premium-addon-button';
9
  }
@@ -13,11 +26,11 @@ class Premium_Button extends Widget_Base {
13
  }
14
 
15
  public function getTemplateInstance() {
16
- return $this->templateInstance = premium_Template_Tags::getInstance();
17
  }
18
 
19
  public function get_title() {
20
- return sprintf( '%1$s %2$s', \PremiumAddons\Helper_Functions::get_prefix(), __('Button', 'premium-addons-for-elementor') );
21
  }
22
 
23
  public function get_icon() {
1
  <?php
2
+
3
+ namespace PremiumAddons\Widgets;
4
+
5
+ use PremiumAddons\Helper_Functions;
6
+ use PremiumAddons\Includes;
7
+ use Elementor\Widget_Base;
8
+ use Elementor\Controls_Manager;
9
+ use Elementor\Scheme_Color;
10
+ use Elementor\Scheme_Typography;
11
+ use Elementor\Group_Control_Border;
12
+ use Elementor\Group_Control_Typography;
13
+ use Elementor\Group_Control_Text_Shadow;
14
+ use Elementor\Group_Control_Box_Shadow;
15
 
16
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
17
 
18
  class Premium_Button extends Widget_Base {
19
+
20
  public function get_name() {
21
  return 'premium-addon-button';
22
  }
26
  }
27
 
28
  public function getTemplateInstance() {
29
+ return $this->templateInstance = Includes\premium_Template_Tags::getInstance();
30
  }
31
 
32
  public function get_title() {
33
+ return sprintf( '%1$s %2$s', Helper_Functions::get_prefix(), __('Button', 'premium-addons-for-elementor') );
34
  }
35
 
36
  public function get_icon() {
widgets/premium-carousel.php CHANGED
@@ -1,13 +1,23 @@
1
  <?php
2
- namespace Elementor;
3
- if( !defined( 'ABSPATH' ) ) exit; // No access of directly access
 
 
 
 
 
 
 
 
 
 
4
 
5
  class Premium_Carousel extends Widget_Base {
6
 
7
  protected $templateInstance;
8
 
9
  public function getTemplateInstance() {
10
- return $this->templateInstance = premium_Template_Tags::getInstance();
11
  }
12
 
13
  public function get_name() {
@@ -15,15 +25,14 @@ class Premium_Carousel extends Widget_Base {
15
  }
16
 
17
  public function get_title() {
18
- return sprintf( '%1$s %2$s', \PremiumAddons\Helper_Functions::get_prefix(), __('Carousel', 'premium-addons-for-elementor') );
19
  }
20
 
21
  public function get_icon() {
22
  return 'pa-carousel';
23
  }
24
 
25
- public function is_reload_preview_required()
26
- {
27
  return true;
28
  }
29
 
1
  <?php
2
+
3
+ namespace PremiumAddons\Widgets;
4
+
5
+ use PremiumAddons\Helper_Functions;
6
+ use PremiumAddons\Includes;
7
+ use Elementor\Widget_Base;
8
+ use Elementor\Controls_Manager;
9
+ use Elementor\Repeater;
10
+ use Elementor\Scheme_Color;
11
+ use Elementor\Frontend;
12
+
13
+ if( ! defined( 'ABSPATH' ) ) exit; // No access of directly access
14
 
15
  class Premium_Carousel extends Widget_Base {
16
 
17
  protected $templateInstance;
18
 
19
  public function getTemplateInstance() {
20
+ return $this->templateInstance = Includes\premium_Template_Tags::getInstance();
21
  }
22
 
23
  public function get_name() {
25
  }
26
 
27
  public function get_title() {
28
+ return sprintf( '%1$s %2$s', Helper_Functions::get_prefix(), __('Carousel', 'premium-addons-for-elementor') );
29
  }
30
 
31
  public function get_icon() {
32
  return 'pa-carousel';
33
  }
34
 
35
+ public function is_reload_preview_required() {
 
36
  return true;
37
  }
38
 
widgets/premium-contactform.php CHANGED
@@ -1,5 +1,15 @@
1
  <?php
2
- namespace Elementor;
 
 
 
 
 
 
 
 
 
 
3
 
4
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
5
 
@@ -10,7 +20,7 @@ class Premium_Contactform extends Widget_Base {
10
  }
11
 
12
  public function get_title() {
13
- return sprintf( '%1$s %2$s', \PremiumAddons\Helper_Functions::get_prefix(), __('Contact Form7', 'premium-addons-for-elementor') );
14
  }
15
 
16
  public function get_icon() {
@@ -232,12 +242,6 @@ class Premium_Contactform extends Widget_Base {
232
  ]
233
  );
234
 
235
-
236
-
237
-
238
-
239
-
240
-
241
  $this->add_responsive_control(
242
  'premium_elements_input_padding',
243
  [
1
  <?php
2
+
3
+ namespace PremiumAddons\Widgets;
4
+
5
+ use PremiumAddons\Helper_Functions;
6
+ use Elementor\Widget_Base;
7
+ use Elementor\Controls_Manager;
8
+ use Elementor\Scheme_Color;
9
+ use Elementor\Scheme_Typography;
10
+ use Elementor\Group_Control_Border;
11
+ use Elementor\Group_Control_Typography;
12
+ use Elementor\Group_Control_Box_Shadow;
13
 
14
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
15
 
20
  }
21
 
22
  public function get_title() {
23
+ return sprintf( '%1$s %2$s', Helper_Functions::get_prefix(), __('Contact Form7', 'premium-addons-for-elementor') );
24
  }
25
 
26
  public function get_icon() {
242
  ]
243
  );
244
 
 
 
 
 
 
 
245
  $this->add_responsive_control(
246
  'premium_elements_input_padding',
247
  [
widgets/premium-countdown.php CHANGED
@@ -1,14 +1,25 @@
1
  <?php
2
- namespace Elementor;
 
 
 
 
 
 
 
 
 
 
3
  if( !defined( 'ABSPATH' ) ) exit; // No access of directly access
4
 
5
  class Premium_Countdown extends Widget_Base {
 
6
  public function get_name() {
7
  return 'premium-countdown-timer';
8
  }
9
 
10
  public function get_title() {
11
- return sprintf( '%1$s %2$s', \PremiumAddons\Helper_Functions::get_prefix(), __('Countdown', 'premium-addons-for-elementor') );
12
  }
13
 
14
  public function get_icon() {
1
  <?php
2
+
3
+ namespace PremiumAddons\Widgets;
4
+
5
+ use PremiumAddons\Helper_Functions;
6
+ use Elementor\Widget_Base;
7
+ use Elementor\Controls_Manager;
8
+ use Elementor\Scheme_Color;
9
+ use Elementor\Scheme_Typography;
10
+ use Elementor\Group_Control_Border;
11
+ use Elementor\Group_Control_Typography;
12
+
13
  if( !defined( 'ABSPATH' ) ) exit; // No access of directly access
14
 
15
  class Premium_Countdown extends Widget_Base {
16
+
17
  public function get_name() {
18
  return 'premium-countdown-timer';
19
  }
20
 
21
  public function get_title() {
22
+ return sprintf( '%1$s %2$s', Helper_Functions::get_prefix(), __('Countdown', 'premium-addons-for-elementor') );
23
  }
24
 
25
  public function get_icon() {
widgets/premium-counter.php CHANGED
@@ -1,7 +1,19 @@
1
  <?php
2
- namespace Elementor;
3
 
4
- if( !defined( 'ABSPATH' ) ) exit; // No access of directly access
 
 
 
 
 
 
 
 
 
 
 
 
 
5
 
6
  class Premium_Counter extends Widget_Base {
7
 
@@ -10,7 +22,7 @@ class Premium_Counter extends Widget_Base {
10
  }
11
 
12
  public function get_title() {
13
- return sprintf( '%1$s %2$s', \PremiumAddons\Helper_Functions::get_prefix(), __('Counter', 'premium-addons-for-elementor') );
14
  }
15
 
16
  public function get_icon() {
1
  <?php
 
2
 
3
+ namespace PremiumAddons\Widgets;
4
+
5
+ use PremiumAddons\Helper_Functions;
6
+ use Elementor\Widget_Base;
7
+ use Elementor\Utils;
8
+ use Elementor\Control_Media;
9
+ use Elementor\Controls_Manager;
10
+ use Elementor\Scheme_Color;
11
+ use Elementor\Scheme_Typography;
12
+ use Elementor\Group_Control_Border;
13
+ use Elementor\Group_Control_Typography;
14
+ use Elementor\Group_Control_Text_Shadow;
15
+
16
+ if( ! defined( 'ABSPATH' ) ) exit; // No access of directly access
17
 
18
  class Premium_Counter extends Widget_Base {
19
 
22
  }
23
 
24
  public function get_title() {
25
+ return sprintf( '%1$s %2$s', Helper_Functions::get_prefix(), __('Counter', 'premium-addons-for-elementor') );
26
  }
27
 
28
  public function get_icon() {
widgets/premium-dual-header.php CHANGED
@@ -1,6 +1,17 @@
1
  <?php
2
 
3
- namespace Elementor;
 
 
 
 
 
 
 
 
 
 
 
4
 
5
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
6
 
@@ -8,7 +19,7 @@ class Premium_Dual_Header extends Widget_Base {
8
  protected $templateInstance;
9
 
10
  public function getTemplateInstance(){
11
- return $this->templateInstance = premium_Template_Tags::getInstance();
12
  }
13
 
14
  public function get_name() {
@@ -16,7 +27,7 @@ class Premium_Dual_Header extends Widget_Base {
16
  }
17
 
18
  public function get_title() {
19
- return sprintf( '%1$s %2$s', \PremiumAddons\Helper_Functions::get_prefix(), __('Dual Heading', 'premium-addons-for-elementor') );
20
  }
21
 
22
 
1
  <?php
2
 
3
+ namespace PremiumAddons\Widgets;
4
+
5
+ use PremiumAddons\Helper_Functions;
6
+ use PremiumAddons\Includes;
7
+ use Elementor\Widget_Base;
8
+ use Elementor\Controls_Manager;
9
+ use Elementor\Scheme_Color;
10
+ use Elementor\Scheme_Typography;
11
+ use Elementor\Group_Control_Border;
12
+ use Elementor\Group_Control_Typography;
13
+ use Elementor\Group_Control_Text_Shadow;
14
+ use Elementor\Group_Control_Background;
15
 
16
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
17
 
19
  protected $templateInstance;
20
 
21
  public function getTemplateInstance(){
22
+ return $this->templateInstance = Includes\premium_Template_Tags::getInstance();
23
  }
24
 
25
  public function get_name() {
27
  }
28
 
29
  public function get_title() {
30
+ return sprintf( '%1$s %2$s', Helper_Functions::get_prefix(), __('Dual Heading', 'premium-addons-for-elementor') );
31
  }
32
 
33
 
widgets/premium-fancytext.php CHANGED
@@ -1,15 +1,26 @@
1
  <?php
2
- namespace Elementor;
 
 
 
 
 
 
 
 
 
 
3
 
4
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
5
 
6
  class Premium_Fancytext extends Widget_Base {
 
7
  public function get_name() {
8
  return 'premium-addon-fancy-text';
9
  }
10
 
11
  public function get_title() {
12
- return sprintf( '%1$s %2$s', \PremiumAddons\Helper_Functions::get_prefix(), __('Fancy Text', 'premium-addons-for-elementor') );
13
  }
14
 
15
  public function get_icon() {
1
  <?php
2
+
3
+ namespace PremiumAddons\Widgets;
4
+
5
+ use PremiumAddons\Helper_Functions;
6
+ use Elementor\Widget_Base;
7
+ use Elementor\Controls_Manager;
8
+ use Elementor\Repeater;
9
+ use Elementor\Scheme_Color;
10
+ use Elementor\Scheme_Typography;
11
+ use Elementor\Group_Control_Typography;
12
+ use Elementor\Group_Control_Text_Shadow;
13
 
14
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
15
 
16
  class Premium_Fancytext extends Widget_Base {
17
+
18
  public function get_name() {
19
  return 'premium-addon-fancy-text';
20
  }
21
 
22
  public function get_title() {
23
+ return sprintf( '%1$s %2$s', Helper_Functions::get_prefix(), __('Fancy Text', 'premium-addons-for-elementor') );
24
  }
25
 
26
  public function get_icon() {
widgets/premium-grid.php CHANGED
@@ -1,8 +1,25 @@
1
  <?php
2
 
3
- namespace Elementor;
4
 
5
- if( !defined( 'ABSPATH' ) ) exit;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
 
7
  class Premium_Grid extends Widget_Base {
8
 
@@ -11,11 +28,11 @@ class Premium_Grid extends Widget_Base {
11
  }
12
 
13
  public function getTemplateInstance() {
14
- return $this->templateInstance = premium_Template_Tags::getInstance();
15
  }
16
 
17
  public function get_title() {
18
- return sprintf( '%1$s %2$s', \PremiumAddons\Helper_Functions::get_prefix(), __('Grid', 'premium-addons-for-elementor') );
19
  }
20
 
21
  public function get_icon() {
@@ -1178,7 +1195,6 @@ class Premium_Grid extends Widget_Base {
1178
  ]
1179
  );
1180
 
1181
- /*Front Icon Padding*/
1182
  $this->add_responsive_control('premium_gallery_filter_padding',
1183
  [
1184
  'label' => __('Padding', 'premium-addons-for-elementor'),
@@ -1431,6 +1447,7 @@ class Premium_Grid extends Widget_Base {
1431
 
1432
  protected function render(){
1433
  $settings = $this->get_settings_for_display();
 
1434
  $filter = $settings['premium_gallery_filter'];
1435
 
1436
  // $number_columns = intval ( 100 / substr( $settings['premium_gallery_column_number'], 0, strpos( $settings['premium_gallery_column_number'], '%') ) );
@@ -1441,10 +1458,10 @@ class Premium_Grid extends Widget_Base {
1441
 
1442
  $category_formatted = "*";
1443
 
1444
- if( 'yes' != $settings['premium_gallery_first_cat_switcher'] ) {
1445
  $active_index = $settings['premium_gallery_active_cat'];
1446
  $active_category = $settings['premium_gallery_cats_content'][$active_index]['premium_gallery_img_cat'];
1447
- $category_formatted = "." . $this->filter_cats($active_category);
1448
  }
1449
 
1450
  if ( 'original' == $settings['premium_gallery_img_size_select'] ) {
@@ -1478,7 +1495,11 @@ class Premium_Grid extends Widget_Base {
1478
  ]
1479
  );
1480
 
1481
- $active_category_index = $settings['premium_gallery_first_cat_switcher'] == 'yes' ? $settings['premium_gallery_active_cat'] - 1 : $settings['premium_gallery_active_cat'];
 
 
 
 
1482
 
1483
  $is_all_active = ( 0 > $active_category_index ) ? "active" : "";
1484
 
1
  <?php
2
 
3
+ namespace PremiumAddons\Widgets;
4
 
5
+ use PremiumAddons\Helper_Functions;
6
+ use PremiumAddons\Includes;
7
+ use Elementor\Widget_Base;
8
+ use Elementor\Utils;
9
+ use Elementor\Control_Media;
10
+ use Elementor\Controls_Manager;
11
+ use Elementor\Repeater;
12
+ use Elementor\Scheme_Color;
13
+ use Elementor\Scheme_Typography;
14
+ use Elementor\Group_Control_Border;
15
+ use Elementor\Group_Control_Typography;
16
+ use Elementor\Group_Control_Css_Filter;
17
+ use Elementor\Group_Control_Text_Shadow;
18
+ use Elementor\Group_Control_Box_Shadow;
19
+ use Elementor\Group_Control_Background;
20
+ use Elementor\Group_Control_Image_Size;
21
+
22
+ if( ! defined( 'ABSPATH' ) ) exit;
23
 
24
  class Premium_Grid extends Widget_Base {
25
 
28
  }
29
 
30
  public function getTemplateInstance() {
31
+ return $this->templateInstance = Includes\premium_Template_Tags::getInstance();
32
  }
33
 
34
  public function get_title() {
35
+ return sprintf( '%1$s %2$s', Helper_Functions::get_prefix(), __('Grid', 'premium-addons-for-elementor') );
36
  }
37
 
38
  public function get_icon() {
1195
  ]
1196
  );
1197
 
 
1198
  $this->add_responsive_control('premium_gallery_filter_padding',
1199
  [
1200
  'label' => __('Padding', 'premium-addons-for-elementor'),
1447
 
1448
  protected function render(){
1449
  $settings = $this->get_settings_for_display();
1450
+
1451
  $filter = $settings['premium_gallery_filter'];
1452
 
1453
  // $number_columns = intval ( 100 / substr( $settings['premium_gallery_column_number'], 0, strpos( $settings['premium_gallery_column_number'], '%') ) );
1458
 
1459
  $category_formatted = "*";
1460
 
1461
+ if( 'yes' !== $settings['premium_gallery_first_cat_switcher'] && 'yes' === $settings['premium_gallery_filter'] ) {
1462
  $active_index = $settings['premium_gallery_active_cat'];
1463
  $active_category = $settings['premium_gallery_cats_content'][$active_index]['premium_gallery_img_cat'];
1464
+ $category_formatted = "." . $this->filter_cats( $active_category );
1465
  }
1466
 
1467
  if ( 'original' == $settings['premium_gallery_img_size_select'] ) {
1495
  ]
1496
  );
1497
 
1498
+ if ( ! empty( $settings['premium_gallery_active_cat'] ) ) {
1499
+ $active_category_index = 'yes' === $settings['premium_gallery_first_cat_switcher'] ? $settings['premium_gallery_active_cat'] - 1 : $settings['premium_gallery_active_cat'];
1500
+ } else {
1501
+ $active_category_index = 0;
1502
+ }
1503
 
1504
  $is_all_active = ( 0 > $active_category_index ) ? "active" : "";
1505
 
widgets/premium-image-button.php CHANGED
@@ -1,5 +1,18 @@
1
  <?php
2
- namespace Elementor;
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
5
 
@@ -9,11 +22,11 @@ class Premium_Image_Button extends Widget_Base {
9
  }
10
 
11
  public function get_title() {
12
- return sprintf( '%1$s %2$s', \PremiumAddons\Helper_Functions::get_prefix(), __('Image Button', 'premium-addons-for-elementor') );
13
  }
14
 
15
  public function getTemplateInstance() {
16
- return $this->templateInstance = premium_Template_Tags::getInstance();
17
  }
18
 
19
  public function get_icon() {
1
  <?php
2
+
3
+ namespace PremiumAddons\Widgets;
4
+
5
+ use PremiumAddons\Helper_Functions;
6
+ use PremiumAddons\Includes;
7
+ use Elementor\Widget_Base;
8
+ use Elementor\Controls_Manager;
9
+ use Elementor\Scheme_Color;
10
+ use Elementor\Scheme_Typography;
11
+ use Elementor\Group_Control_Border;
12
+ use Elementor\Group_Control_Typography;
13
+ use Elementor\Group_Control_Text_Shadow;
14
+ use Elementor\Group_Control_Box_Shadow;
15
+ use Elementor\Group_Control_Background;
16
 
17
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
18
 
22
  }
23
 
24
  public function get_title() {
25
+ return sprintf( '%1$s %2$s', Helper_Functions::get_prefix(), __('Image Button', 'premium-addons-for-elementor') );
26
  }
27
 
28
  public function getTemplateInstance() {
29
+ return $this->templateInstance = Includes\premium_Template_Tags::getInstance();
30
  }
31
 
32
  public function get_icon() {
widgets/premium-image-scroll.php CHANGED
@@ -6,14 +6,24 @@
6
  * Slug: premium-image-scroll
7
  */
8
 
9
- namespace Elementor;
 
 
 
 
 
 
 
 
 
 
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit;
12
 
13
  class Premium_Image_Scroll extends Widget_Base {
14
 
15
  public function getTemplateInstance() {
16
- return $this->templateInstance = premium_Template_Tags::getInstance();
17
  }
18
 
19
  public function get_name() {
@@ -21,7 +31,7 @@ class Premium_Image_Scroll extends Widget_Base {
21
  }
22
 
23
  public function get_title() {
24
- return sprintf( '%1$s %2$s', \PremiumAddons\Helper_Functions::get_prefix(), __('Image Scroll', 'premium-addons-for-elementor') );
25
  }
26
 
27
  public function is_reload_preview_required() {
6
  * Slug: premium-image-scroll
7
  */
8
 
9
+ namespace PremiumAddons\Widgets;
10
+
11
+ use PremiumAddons\Helper_Functions;
12
+ use PremiumAddons\Includes;
13
+ use Elementor\Widget_Base;
14
+ use Elementor\Utils;
15
+ use Elementor\Control_Media;
16
+ use Elementor\Controls_Manager;
17
+ use Elementor\Group_Control_Border;
18
+ use Elementor\Group_Control_Css_Filter;
19
+ use Elementor\Group_Control_Box_Shadow;
20
 
21
  if ( ! defined( 'ABSPATH' ) ) exit;
22
 
23
  class Premium_Image_Scroll extends Widget_Base {
24
 
25
  public function getTemplateInstance() {
26
+ return $this->templateInstance = Includes\premium_Template_Tags::getInstance();
27
  }
28
 
29
  public function get_name() {
31
  }
32
 
33
  public function get_title() {
34
+ return sprintf( '%1$s %2$s', Helper_Functions::get_prefix(), __('Image Scroll', 'premium-addons-for-elementor') );
35
  }
36
 
37
  public function is_reload_preview_required() {
widgets/premium-image-separator.php CHANGED
@@ -1,5 +1,14 @@
1
  <?php
2
- namespace Elementor;
 
 
 
 
 
 
 
 
 
3
 
4
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
5
 
@@ -7,7 +16,7 @@ class Premium_Image_Separator extends Widget_Base {
7
  protected $templateInstance;
8
 
9
  public function getTemplateInstance() {
10
- return $this->templateInstance = premium_Template_Tags::getInstance();
11
  }
12
 
13
  public function get_name() {
@@ -15,7 +24,7 @@ class Premium_Image_Separator extends Widget_Base {
15
  }
16
 
17
  public function get_title() {
18
- return sprintf( '%1$s %2$s', \PremiumAddons\Helper_Functions::get_prefix(), __('Image Separator', 'premium-addons-for-elementor') );
19
  }
20
 
21
  public function get_icon() {
1
  <?php
2
+
3
+ namespace PremiumAddons\Widgets;
4
+
5
+ use PremiumAddons\Helper_Functions;
6
+ use PremiumAddons\Includes;
7
+ use Elementor\Widget_Base;
8
+ use Elementor\Utils;
9
+ use Elementor\Control_Media;
10
+ use Elementor\Controls_Manager;
11
+ use Elementor\Group_Control_Css_Filter;
12
 
13
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
14
 
16
  protected $templateInstance;
17
 
18
  public function getTemplateInstance() {
19
+ return $this->templateInstance = Includes\premium_Template_Tags::getInstance();
20
  }
21
 
22
  public function get_name() {
24
  }
25
 
26
  public function get_title() {
27
+ return sprintf( '%1$s %2$s', Helper_Functions::get_prefix(), __('Image Separator', 'premium-addons-for-elementor') );
28
  }
29
 
30
  public function get_icon() {
widgets/premium-maps.php CHANGED
@@ -1,6 +1,18 @@
1
  <?php
2
 
3
- namespace Elementor;
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
6
 
@@ -15,7 +27,7 @@ class Premium_Maps extends Widget_Base {
15
  }
16
 
17
  public function get_title() {
18
- return sprintf( '%1$s %2$s', \PremiumAddons\Helper_Functions::get_prefix(), __('Maps', 'premium-addons-for-elementor') );
19
  }
20
 
21
  public function get_icon() {
@@ -45,7 +57,7 @@ class Premium_Maps extends Widget_Base {
45
  ]
46
  );
47
 
48
- $settings = \PremiumAddons\PA_Maps::get_enabled_keys();
49
 
50
  if( empty( $settings['premium-map-api'] ) ) {
51
  $this->add_control('premium_maps_api_url',
@@ -596,6 +608,7 @@ class Premium_Maps extends Widget_Base {
596
  }
597
 
598
  protected function render() {
 
599
  // get our input from the widget settings.
600
  $settings = $this->get_settings_for_display();
601
 
@@ -619,7 +632,7 @@ class Premium_Maps extends Widget_Base {
619
 
620
  $marker_cluster = false;
621
 
622
- $is_cluster_enabled = \PremiumAddons\PA_Maps::get_enabled_keys()['premium-map-cluster'];
623
 
624
  if( $is_cluster_enabled ) {
625
  $marker_cluster = 'yes' == $settings['premium_maps_map_option_cluster'] ? 'true' : 'false';
1
  <?php
2
 
3
+ namespace PremiumAddons\Widgets;
4
+
5
+ use PremiumAddons\Admin\Settings\Maps;
6
+ use PremiumAddons\Helper_Functions;
7
+ use Elementor\Widget_Base;
8
+ use Elementor\Controls_Manager;
9
+ use Elementor\Repeater;
10
+ use Elementor\Scheme_Color;
11
+ use Elementor\Scheme_Typography;
12
+ use Elementor\Group_Control_Border;
13
+ use Elementor\Group_Control_Typography;
14
+ use Elementor\Group_Control_Box_Shadow;
15
+
16
 
17
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
18
 
27
  }
28
 
29
  public function get_title() {
30
+ return sprintf( '%1$s %2$s', Helper_Functions::get_prefix(), __('Maps', 'premium-addons-for-elementor') );
31
  }
32
 
33
  public function get_icon() {
57
  ]
58
  );
59
 
60
+ $settings = Maps::get_enabled_keys();
61
 
62
  if( empty( $settings['premium-map-api'] ) ) {
63
  $this->add_control('premium_maps_api_url',
608
  }
609
 
610
  protected function render() {
611
+
612
  // get our input from the widget settings.
613
  $settings = $this->get_settings_for_display();
614
 
632
 
633
  $marker_cluster = false;
634
 
635
+ $is_cluster_enabled = Maps::get_enabled_keys()['premium-map-cluster'];
636
 
637
  if( $is_cluster_enabled ) {
638
  $marker_cluster = 'yes' == $settings['premium_maps_map_option_cluster'] ? 'true' : 'false';
widgets/premium-modalbox.php CHANGED
@@ -1,12 +1,28 @@
1
  <?php
2
- namespace Elementor;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
5
 
6
  class Premium_Modalbox extends Widget_Base {
7
 
8
  public function getTemplateInstance() {
9
- return $this->templateInstance = premium_Template_Tags::getInstance();
10
  }
11
 
12
  public function get_name() {
@@ -18,7 +34,7 @@ class Premium_Modalbox extends Widget_Base {
18
  }
19
 
20
  public function get_title() {
21
- return sprintf( '%1$s %2$s', \PremiumAddons\Helper_Functions::get_prefix(), __('Modal Box', 'premium-addons-for-elementor') );
22
  }
23
 
24
  public function get_icon() {
1
  <?php
2
+
3
+ namespace PremiumAddons\Widgets;
4
+
5
+ use PremiumAddons\Helper_Functions;
6
+ use PremiumAddons\Includes;
7
+ use Elementor\Widget_Base;
8
+ use Elementor\Utils;
9
+ use Elementor\Frontend;
10
+ use Elementor\Control_Media;
11
+ use Elementor\Controls_Manager;
12
+ use Elementor\Scheme_Color;
13
+ use Elementor\Scheme_Typography;
14
+ use Elementor\Group_Control_Border;
15
+ use Elementor\Group_Control_Typography;
16
+ use Elementor\Group_Control_Text_Shadow;
17
+ use Elementor\Group_Control_Box_Shadow;
18
+ use Elementor\Group_Control_Background;
19
 
20
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
21
 
22
  class Premium_Modalbox extends Widget_Base {
23
 
24
  public function getTemplateInstance() {
25
+ return $this->templateInstance = Includes\premium_Template_Tags::getInstance();
26
  }
27
 
28
  public function get_name() {
34
  }
35
 
36
  public function get_title() {
37
+ return sprintf( '%1$s %2$s', Helper_Functions::get_prefix(), __('Modal Box', 'premium-addons-for-elementor') );
38
  }
39
 
40
  public function get_icon() {
widgets/premium-person.php CHANGED
@@ -1,5 +1,16 @@
1
  <?php
2
- namespace Elementor;
 
 
 
 
 
 
 
 
 
 
 
3
 
4
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
5
 
@@ -10,7 +21,7 @@ class Premium_Person extends Widget_Base {
10
  }
11
 
12
  public function get_title() {
13
- return sprintf( '%1$s %2$s', \PremiumAddons\Helper_Functions::get_prefix(), __('Person', 'premium-addons-for-elementor') );
14
  }
15
 
16
  public function get_icon() {
1
  <?php
2
+
3
+ namespace PremiumAddons\Widgets;
4
+
5
+ use PremiumAddons\Helper_Functions;
6
+ use Elementor\Widget_Base;
7
+ use Elementor\Utils;
8
+ use Elementor\Control_Media;
9
+ use Elementor\Controls_Manager;
10
+ use Elementor\Scheme_Color;
11
+ use Elementor\Scheme_Typography;
12
+ use Elementor\Group_Control_Typography;
13
+ use Elementor\Group_Control_Css_Filter;
14
 
15
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
16
 
21
  }
22
 
23
  public function get_title() {
24
+ return sprintf( '%1$s %2$s', Helper_Functions::get_prefix(), __('Person', 'premium-addons-for-elementor') );
25
  }
26
 
27
  public function get_icon() {
widgets/premium-pricing-table.php CHANGED
@@ -1,5 +1,18 @@
1
  <?php
2
- namespace Elementor;
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
5
 
@@ -7,7 +20,7 @@ class Premium_Pricing_Table extends Widget_Base {
7
  protected $templateInstance;
8
 
9
  public function getTemplateInstance() {
10
- return $this->templateInstance = premium_Template_Tags::getInstance();
11
  }
12
 
13
  public function get_name() {
@@ -15,7 +28,7 @@ class Premium_Pricing_Table extends Widget_Base {
15
  }
16
 
17
  public function get_title() {
18
- return sprintf( '%1$s %2$s', \PremiumAddons\Helper_Functions::get_prefix(), __('Pricing Table', 'premium-addons-for-elementor') );
19
  }
20
 
21
  public function get_icon() {
1
  <?php
2
+
3
+ namespace PremiumAddons\Widgets;
4
+
5
+ use PremiumAddons\Helper_Functions;
6
+ use PremiumAddons\Includes;
7
+ use Elementor\Widget_Base;
8
+ use Elementor\Controls_Manager;
9
+ use Elementor\Repeater;
10
+ use Elementor\Scheme_Color;
11
+ use Elementor\Scheme_Typography;
12
+ use Elementor\Group_Control_Border;
13
+ use Elementor\Group_Control_Typography;
14
+ use Elementor\Group_Control_Box_Shadow;
15
+ use Elementor\Group_Control_Background;
16
 
17
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
18
 
20
  protected $templateInstance;
21
 
22
  public function getTemplateInstance() {
23
+ return $this->templateInstance = Includes\premium_Template_Tags::getInstance();
24
  }
25
 
26
  public function get_name() {
28
  }
29
 
30
  public function get_title() {
31
+ return sprintf( '%1$s %2$s', Helper_Functions::get_prefix(), __('Pricing Table', 'premium-addons-for-elementor') );
32
  }
33
 
34
  public function get_icon() {
widgets/premium-progressbar.php CHANGED
@@ -1,6 +1,15 @@
1
  <?php
2
 
3
- namespace Elementor;
 
 
 
 
 
 
 
 
 
4
 
5
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
6
 
@@ -11,7 +20,7 @@ class Premium_Progressbar extends Widget_Base {
11
  }
12
 
13
  public function get_title() {
14
- return sprintf( '%1$s %2$s', \PremiumAddons\Helper_Functions::get_prefix(), __('Progress Bar', 'premium-addons-for-elementor') );
15
  }
16
 
17
  public function get_icon() {
1
  <?php
2
 
3
+ namespace PremiumAddons\Widgets;
4
+
5
+ use PremiumAddons\Helper_Functions;
6
+ use Elementor\Widget_Base;
7
+ use Elementor\Controls_Manager;
8
+ use Elementor\Repeater;
9
+ use Elementor\Scheme_Color;
10
+ use Elementor\Scheme_Typography;
11
+ use Elementor\Group_Control_Typography;
12
+ use Elementor\Group_Control_Background;
13
 
14
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
15
 
20
  }
21
 
22
  public function get_title() {
23
+ return sprintf( '%1$s %2$s', Helper_Functions::get_prefix(), __('Progress Bar', 'premium-addons-for-elementor') );
24
  }
25
 
26
  public function get_icon() {
widgets/premium-testimonials.php CHANGED
@@ -1,5 +1,15 @@
1
  <?php
2
- namespace Elementor;
 
 
 
 
 
 
 
 
 
 
3
 
4
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
5
 
@@ -10,7 +20,7 @@ class Premium_Testimonials extends Widget_Base {
10
  }
11
 
12
  public function get_title() {
13
- return sprintf( '%1$s %2$s', \PremiumAddons\Helper_Functions::get_prefix(), __('Testimonial', 'premium-addons-for-elementor') );
14
  }
15
 
16
  public function get_icon() {
1
  <?php
2
+
3
+ namespace PremiumAddons\Widgets;
4
+
5
+ use PremiumAddons\Helper_Functions;
6
+ use Elementor\Widget_Base;
7
+ use Elementor\Utils;
8
+ use Elementor\Control_Media;
9
+ use Elementor\Controls_Manager;
10
+ use Elementor\Scheme_Color;
11
+ use Elementor\Scheme_Typography;
12
+ use Elementor\Group_Control_Typography;
13
 
14
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
15
 
20
  }
21
 
22
  public function get_title() {
23
+ return sprintf( '%1$s %2$s', Helper_Functions::get_prefix(), __('Testimonial', 'premium-addons-for-elementor') );
24
  }
25
 
26
  public function get_icon() {
widgets/premium-title.php CHANGED
@@ -1,6 +1,16 @@
1
  <?php
2
 
3
- namespace Elementor;
 
 
 
 
 
 
 
 
 
 
4
 
5
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
6
 
@@ -11,7 +21,7 @@ class Premium_Title extends Widget_Base {
11
  }
12
 
13
  public function get_title() {
14
- return sprintf( '%1$s %2$s', \PremiumAddons\Helper_Functions::get_prefix(), __('Title', 'premium-addons-for-elementor') );
15
  }
16
 
17
  public function get_icon() {
1
  <?php
2
 
3
+ namespace PremiumAddons\Widgets;
4
+
5
+ use PremiumAddons\Helper_Functions;
6
+ use Elementor\Widget_Base;
7
+ use Elementor\Controls_Manager;
8
+ use Elementor\Scheme_Color;
9
+ use Elementor\Scheme_Typography;
10
+ use Elementor\Group_Control_Border;
11
+ use Elementor\Group_Control_Typography;
12
+ use Elementor\Group_Control_Text_Shadow;
13
+ use Elementor\Group_Control_Background;
14
 
15
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
16
 
21
  }
22
 
23
  public function get_title() {
24
+ return sprintf( '%1$s %2$s', Helper_Functions::get_prefix(), __('Title', 'premium-addons-for-elementor') );
25
  }
26
 
27
  public function get_icon() {
widgets/premium-videobox.php CHANGED
@@ -1,7 +1,19 @@
1
  <?php
2
- namespace Elementor;
3
 
 
 
 
4
  use Elementor\Modules\DynamicTags\Module as TagsModule;
 
 
 
 
 
 
 
 
 
 
5
 
6
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
7
 
@@ -12,7 +24,7 @@ class Premium_Videobox extends Widget_Base {
12
  }
13
 
14
  public function get_title() {
15
- return sprintf( '%1$s %2$s', \PremiumAddons\Helper_Functions::get_prefix(), __('Video Box', 'premium-addons-for-elementor') );
16
  }
17
 
18
  public function get_icon() {
1
  <?php
 
2
 
3
+ namespace PremiumAddons\Widgets;
4
+
5
+ use PremiumAddons\Helper_Functions;
6
  use Elementor\Modules\DynamicTags\Module as TagsModule;
7
+ use Elementor\Widget_Base;
8
+ use Elementor\Utils;
9
+ use Elementor\Controls_Manager;
10
+ use Elementor\Scheme_Color;
11
+ use Elementor\Scheme_Typography;
12
+ use Elementor\Group_Control_Border;
13
+ use Elementor\Group_Control_Typography;
14
+ use Elementor\Group_Control_Text_Shadow;
15
+ use Elementor\Group_Control_Box_Shadow;
16
+ use Elementor\Group_Control_Background;
17
 
18
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
19
 
24
  }
25
 
26
  public function get_title() {
27
+ return sprintf( '%1$s %2$s', Helper_Functions::get_prefix(), __('Video Box', 'premium-addons-for-elementor') );
28
  }
29
 
30
  public function get_icon() {
widgets/premium-vscroll.php CHANGED
@@ -1,13 +1,25 @@
1
  <?php
2
 
3
- namespace Elementor;
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
  if( ! defined('ABSPATH') ) exit(); // If this file is called directly, abort.
6
 
7
  class Premium_Vscroll extends Widget_Base {
8
 
9
  public function getTemplateInstance() {
10
- return $this->templateInstance = premium_Template_Tags::getInstance();
11
  }
12
 
13
  public function get_name() {
@@ -15,7 +27,7 @@ class Premium_Vscroll extends Widget_Base {
15
  }
16
 
17
  public function get_title() {
18
- return sprintf( '%1$s %2$s', \PremiumAddons\Helper_Functions::get_prefix(), __('Vertical Scroll', 'premium-addons-for-elementor') );
19
  }
20
 
21
  public function get_icon() {
1
  <?php
2
 
3
+ namespace PremiumAddons\Widgets;
4
+
5
+ use PremiumAddons\Helper_Functions;
6
+ use PremiumAddons\Includes;
7
+ use Elementor\Widget_Base;
8
+ use Elementor\Controls_Manager;
9
+ use Elementor\Repeater;
10
+ use Elementor\Frontend;
11
+ use Elementor\Scheme_Color;
12
+ use Elementor\Scheme_Typography;
13
+ use Elementor\Group_Control_Border;
14
+ use Elementor\Group_Control_Typography;
15
+ use Elementor\Group_Control_Box_Shadow;
16
 
17
  if( ! defined('ABSPATH') ) exit(); // If this file is called directly, abort.
18
 
19
  class Premium_Vscroll extends Widget_Base {
20
 
21
  public function getTemplateInstance() {
22
+ return $this->templateInstance = Includes\premium_Template_Tags::getInstance();
23
  }
24
 
25
  public function get_name() {
27
  }
28
 
29
  public function get_title() {
30
+ return sprintf( '%1$s %2$s', Helper_Functions::get_prefix(), __('Vertical Scroll', 'premium-addons-for-elementor') );
31
  }
32
 
33
  public function get_icon() {