Premium Addons for Elementor - Version 3.8.4

Version Description

  • Tweak: Added new skin Classic in Blog widget.
  • Tweak: Added separators to posts meta data in Blog widget.
  • Tweak: Added Style 2 in Person widget.
  • Tweak: Added Brands Default Colors option in Person widget.
Download this release

Release Info

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

Code changes from version 3.8.3 to 3.8.4

admin/includes/dep/admin-helper.php CHANGED
@@ -2,9 +2,13 @@
2
 
3
  namespace PremiumAddons\Admin\Includes;
4
 
 
 
5
  if ( ! defined( 'ABSPATH' ) ) exit;
6
 
7
  class Admin_Helper {
 
 
8
 
9
  private static $instance = null;
10
 
@@ -17,6 +21,83 @@ class Admin_Helper {
17
 
18
  add_action( 'current_screen', array( $this, 'get_current_screen' ) );
19
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  }
21
 
22
  /**
2
 
3
  namespace PremiumAddons\Admin\Includes;
4
 
5
+ use PremiumAddons\Helper_Functions;
6
+
7
  if ( ! defined( 'ABSPATH' ) ) exit;
8
 
9
  class Admin_Helper {
10
+
11
+ private $page_slug = 'premium-addons';
12
 
13
  private static $instance = null;
14
 
21
 
22
  add_action( 'current_screen', array( $this, 'get_current_screen' ) );
23
 
24
+ add_filter( 'plugin_action_links_' . PREMIUM_ADDONS_BASENAME, array( $this, 'insert_action_links' ) );
25
+
26
+ add_filter( 'plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 2 );
27
+
28
+ }
29
+
30
+ /**
31
+ * Insert action links.
32
+ *
33
+ * Adds action links to the plugin list table
34
+ *
35
+ * Fired by `plugin_action_links` filter.
36
+ *
37
+ * @since 1.0.0
38
+ * @access public
39
+ *
40
+ */
41
+ public function insert_action_links( $links ) {
42
+
43
+ $papro_path = 'premium-addons-pro/premium-addons-pro-for-elementor.php';
44
+
45
+ $is_papro_installed = Helper_Functions::is_plugin_installed( $papro_path );
46
+
47
+ $settings_link = sprintf( '<a href="%1$s">%2$s</a>', admin_url( 'admin.php?page=' . $this->page_slug ), __( 'Settings', 'premium-addons-for-elementor' ) );
48
+
49
+ $rollback_link = sprintf( '<a href="%1$s">%2$s</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ), __( 'Rollback to Version ' . PREMIUM_ADDONS_STABLE_VERSION, 'premium-addons-for-elementor' ) );
50
+
51
+ $new_links = array( $settings_link, $rollback_link );
52
+
53
+ if( ! $is_papro_installed ) {
54
+
55
+ $theme = Helper_Functions::get_installed_theme();
56
+
57
+ $link = sprintf( 'https://premiumaddons.com/pro/?utm_source=plugins-page&utm_medium=wp-dash&utm_campaign=get-pro&utm_term=%s', $theme );
58
+
59
+ $pro_link = sprintf( '<a href="%s" target="_blank" style="color: #39b54a; font-weight: bold;">%s</a>', $link, __( 'Go Pro', 'premium-addons-for-elementor' ) );
60
+ array_push ( $new_links, $pro_link );
61
+ }
62
+
63
+ $new_links = array_merge( $links, $new_links );
64
+
65
+ return $new_links;
66
+ }
67
+
68
+ /**
69
+ * Plugin row meta.
70
+ *
71
+ * Extends plugin row meta links
72
+ *
73
+ * Fired by `plugin_row_meta` filter.
74
+ *
75
+ * @since 3.8.4
76
+ * @access public
77
+ *
78
+ * @return array An array of plugin row meta links.
79
+ */
80
+ public function plugin_row_meta( $meta, $file ) {
81
+
82
+ if( Helper_Functions::is_hide_row_meta() )
83
+ return $meta;
84
+
85
+ if ( PREMIUM_ADDONS_BASENAME == $file ) {
86
+
87
+ $theme = Helper_Functions::get_installed_theme();
88
+
89
+ $link = sprintf( 'https://premiumaddons.com/support/?utm_source=plugins-page&utm_medium=wp-dash&utm_campaign=get-support&utm_term=%s', $theme );
90
+
91
+ $row_meta = [
92
+ 'docs' => '<a href="' . esc_attr( $link ) . '" aria-label="' . esc_attr( __( 'View Premium Addons for Elementor Documentation', 'premium-addons-for-elementor' ) ) . '" target="_blank">' . __( 'Docs & FAQs', 'premium-addons-for-elementor' ) . '</a>',
93
+ 'videos' => '<a href="https://www.youtube.com/watch?v=D3INxWw_jKI&list=PLLpZVOYpMtTArB4hrlpSnDJB36D2sdoTv" aria-label="' . esc_attr( __( 'View Premium Addons Video Tutorials', 'premium-addons-for-elementor' ) ) . '" target="_blank">' . __( 'Video Tutorials', 'premium-addons-for-elementor' ) . '</a>',
94
+ ];
95
+
96
+ $meta = array_merge( $meta, $row_meta );
97
+ }
98
+
99
+ return $meta;
100
+
101
  }
102
 
103
  /**
admin/includes/plugin-info.php CHANGED
@@ -10,7 +10,7 @@ class Plugin_Info {
10
 
11
  public function create_about_menu() {
12
 
13
- if ( ! Helper_Functions::is_show_about() ) {
14
  add_submenu_page(
15
  'premium-addons',
16
  '',
@@ -39,7 +39,7 @@ class Plugin_Info {
39
  <h1 class="pa-title-main"><?php echo Helper_Functions::name(); ?></h1>
40
  <h3 class="pa-title-sub"><?php echo sprintf(__('Thank you for using %s. This plugin has been developed by %s and we hope you enjoy using it.','premium-addons-for-elementor'), Helper_Functions::name(),Helper_Functions::author()); ?></h3>
41
  </div>
42
- <?php if( ! Helper_Functions::is_show_logo() ) : ?>
43
  <div class="pa-title-right">
44
  <img class="pa-logo" src="<?php echo PREMIUM_ADDONS_URL . 'admin/images/premium-addons-logo.png';?>">
45
  </div>
@@ -74,7 +74,7 @@ class Plugin_Info {
74
  </div>
75
  </div>
76
  </div>
77
- <?php if( ! Helper_Functions::is_show_rate() ) : ?>
78
  <div>
79
  <p><?php echo __('Did you like Premium Addons for Elementor Plugin? Please ', 'premium-addons-for-elementor'); ?><a href="https://wordpress.org/support/plugin/premium-addons-for-elementor/reviews/#new-post" target="_blank"><?php echo __('Click Here to Rate it ★★★★★', 'premium-addons-for-elementor'); ?></a></p>
80
  </div>
10
 
11
  public function create_about_menu() {
12
 
13
+ if ( ! Helper_Functions::is_hide_about() ) {
14
  add_submenu_page(
15
  'premium-addons',
16
  '',
39
  <h1 class="pa-title-main"><?php echo Helper_Functions::name(); ?></h1>
40
  <h3 class="pa-title-sub"><?php echo sprintf(__('Thank you for using %s. This plugin has been developed by %s and we hope you enjoy using it.','premium-addons-for-elementor'), Helper_Functions::name(),Helper_Functions::author()); ?></h3>
41
  </div>
42
+ <?php if( ! Helper_Functions::is_hide_logo() ) : ?>
43
  <div class="pa-title-right">
44
  <img class="pa-logo" src="<?php echo PREMIUM_ADDONS_URL . 'admin/images/premium-addons-logo.png';?>">
45
  </div>
74
  </div>
75
  </div>
76
  </div>
77
+ <?php if( ! Helper_Functions::is_hide_rate() ) : ?>
78
  <div>
79
  <p><?php echo __('Did you like Premium Addons for Elementor Plugin? Please ', 'premium-addons-for-elementor'); ?><a href="https://wordpress.org/support/plugin/premium-addons-for-elementor/reviews/#new-post" target="_blank"><?php echo __('Click Here to Rate it ★★★★★', 'premium-addons-for-elementor'); ?></a></p>
80
  </div>
admin/includes/reports.php CHANGED
@@ -33,7 +33,7 @@ class Config_Data {
33
  <h1 class="pa-title-main"><?php echo Helper_Functions::name(); ?></h1>
34
  <h3 class="pa-title-sub"><?php echo sprintf( __( 'Thank you for using %s. This plugin has been developed by %s and we hope you enjoy using it.','premium-addons-for-elementor' ), Helper_Functions::name(), Helper_Functions::author() ); ?></h3>
35
  </div>
36
- <?php if( ! Helper_Functions::is_show_logo() ) : ?>
37
  <div class="pa-title-right">
38
  <img class="pa-logo" src="<?php echo PREMIUM_ADDONS_URL . 'admin/images/premium-addons-logo.png'; ?>">
39
  </div>
@@ -51,7 +51,7 @@ class Config_Data {
51
  </div>
52
  </div>
53
  </div>
54
- <?php if( ! Helper_Functions::is_show_rate() ) : ?>
55
  <div>
56
  <p><?php echo __('Did you like Premium Addons for Elementor Plugin? Please ', 'premium-addons-for-elementor'); ?><a href="https://wordpress.org/support/plugin/premium-addons-for-elementor/reviews/#new-post" target="_blank"><?php echo __('Click Here to Rate it ★★★★★', 'premium-addons-for-elementor'); ?></a></p>
57
  </div>
33
  <h1 class="pa-title-main"><?php echo Helper_Functions::name(); ?></h1>
34
  <h3 class="pa-title-sub"><?php echo sprintf( __( 'Thank you for using %s. This plugin has been developed by %s and we hope you enjoy using it.','premium-addons-for-elementor' ), Helper_Functions::name(), Helper_Functions::author() ); ?></h3>
35
  </div>
36
+ <?php if( ! Helper_Functions::is_hide_logo() ) : ?>
37
  <div class="pa-title-right">
38
  <img class="pa-logo" src="<?php echo PREMIUM_ADDONS_URL . 'admin/images/premium-addons-logo.png'; ?>">
39
  </div>
51
  </div>
52
  </div>
53
  </div>
54
+ <?php if( ! Helper_Functions::is_hide_rate() ) : ?>
55
  <div>
56
  <p><?php echo __('Did you like Premium Addons for Elementor Plugin? Please ', 'premium-addons-for-elementor'); ?><a href="https://wordpress.org/support/plugin/premium-addons-for-elementor/reviews/#new-post" target="_blank"><?php echo __('Click Here to Rate it ★★★★★', 'premium-addons-for-elementor'); ?></a></p>
57
  </div>
admin/includes/version-control.php CHANGED
@@ -27,7 +27,7 @@ class Version_Control {
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',
@@ -73,7 +73,7 @@ class Version_Control {
73
  <h1 class="pa-title-main"><?php echo Helper_Functions::name(); ?></h1>
74
  <h3 class="pa-title-sub"><?php echo sprintf(__('Thank you for using %s. This plugin has been developed by %s and we hope you enjoy using it.','premium-addons-for-elementor'), Helper_Functions::name(), Helper_Functions::author() ); ?></h3>
75
  </div>
76
- <?php if( ! Helper_Functions::is_show_logo() ) : ?>
77
  <div class="pa-title-right">
78
  <img class="pa-logo" src="<?php echo PREMIUM_ADDONS_URL . 'admin/images/premium-addons-logo.png'; ?>">
79
  </div>
@@ -92,7 +92,7 @@ class Version_Control {
92
  <tr class="pa-roll-row">
93
  <th><?php echo __('Rollback Version', 'premium-addons-for-elementor'); ?></th>
94
  <td>
95
- <div><?php echo sprintf( '<a target="_blank" href="%1$s" class="button pa-btn pa-rollback-button elementor-button-spinner">%2$s</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ), __('Rollback to Version 3.8.2', 'premium-addons-for-elementor') ); ?></div>
96
  <p class="pa-roll-desc">
97
  <span><?php echo __('Warning: Please backup your database before making the rollback.', 'premium-addons-for-elementor'); ?></span>
98
  </p>
27
 
28
  public function create_version_control_menu() {
29
 
30
+ if ( ! Helper_Functions::is_hide_version_control() ) {
31
 
32
  add_submenu_page(
33
  'premium-addons',
73
  <h1 class="pa-title-main"><?php echo Helper_Functions::name(); ?></h1>
74
  <h3 class="pa-title-sub"><?php echo sprintf(__('Thank you for using %s. This plugin has been developed by %s and we hope you enjoy using it.','premium-addons-for-elementor'), Helper_Functions::name(), Helper_Functions::author() ); ?></h3>
75
  </div>
76
+ <?php if( ! Helper_Functions::is_hide_logo() ) : ?>
77
  <div class="pa-title-right">
78
  <img class="pa-logo" src="<?php echo PREMIUM_ADDONS_URL . 'admin/images/premium-addons-logo.png'; ?>">
79
  </div>
92
  <tr class="pa-roll-row">
93
  <th><?php echo __('Rollback Version', 'premium-addons-for-elementor'); ?></th>
94
  <td>
95
+ <div><?php echo sprintf( '<a target="_blank" href="%1$s" class="button pa-btn pa-rollback-button elementor-button-spinner">%2$s</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ), __('Rollback to Version ' . PREMIUM_ADDONS_STABLE_VERSION, 'premium-addons-for-elementor') ); ?></div>
96
  <p class="pa-roll-desc">
97
  <span><?php echo __('Warning: Please backup your database before making the rollback.', 'premium-addons-for-elementor'); ?></span>
98
  </p>
admin/settings/maps.php CHANGED
@@ -72,7 +72,7 @@ class Maps {
72
  <h1 class="pa-title-main"><?php echo Helper_Functions::name(); ?></h1>
73
  <h3 class="pa-title-sub"><?php echo sprintf(__('Thank you for using %s. This plugin has been developed by %s and we hope you enjoy using it.','premium-addons-for-elementor'), Helper_Functions::name(), Helper_Functions::author()); ?></h3>
74
  </div>
75
- <?php if( ! Helper_Functions::is_show_logo()) : ?>
76
  <div class="pa-title-right">
77
  <img class="pa-logo" src="<?php echo PREMIUM_ADDONS_URL . 'admin/images/premium-addons-logo.png';?>">
78
  </div>
@@ -132,7 +132,7 @@ class Maps {
132
  </tr>
133
  </table>
134
  <input type="submit" value="<?php echo __('Save Settings', 'premium-addons-for-elementor'); ?>" class="button pa-btn pa-save-button">
135
- <?php if( ! Helper_Functions::is_show_rate() ) : ?>
136
  <div>
137
  <p><?php echo __('Did you like Premium Addons for Elementor Plugin? Please ', 'premium-addons-for-elementor'); ?><a href="https://wordpress.org/support/plugin/premium-addons-for-elementor/reviews/#new-post" target="_blank"><?php echo __('Click Here to Rate it ★★★★★', 'premium-addons-for-elementor'); ?></a></p>
138
  </div>
72
  <h1 class="pa-title-main"><?php echo Helper_Functions::name(); ?></h1>
73
  <h3 class="pa-title-sub"><?php echo sprintf(__('Thank you for using %s. This plugin has been developed by %s and we hope you enjoy using it.','premium-addons-for-elementor'), Helper_Functions::name(), Helper_Functions::author()); ?></h3>
74
  </div>
75
+ <?php if( ! Helper_Functions::is_hide_logo()) : ?>
76
  <div class="pa-title-right">
77
  <img class="pa-logo" src="<?php echo PREMIUM_ADDONS_URL . 'admin/images/premium-addons-logo.png';?>">
78
  </div>
132
  </tr>
133
  </table>
134
  <input type="submit" value="<?php echo __('Save Settings', 'premium-addons-for-elementor'); ?>" class="button pa-btn pa-save-button">
135
+ <?php if( ! Helper_Functions::is_hide_rate() ) : ?>
136
  <div>
137
  <p><?php echo __('Did you like Premium Addons for Elementor Plugin? Please ', 'premium-addons-for-elementor'); ?><a href="https://wordpress.org/support/plugin/premium-addons-for-elementor/reviews/#new-post" target="_blank"><?php echo __('Click Here to Rate it ★★★★★', 'premium-addons-for-elementor'); ?></a></p>
138
  </div>
admin/settings/modules-setting.php CHANGED
@@ -28,37 +28,8 @@ class Modules_Settings {
28
 
29
  add_action( 'admin_enqueue_scripts',array( $this, 'localize_js_script' ) );
30
 
31
- add_filter( 'plugin_action_links_' . PREMIUM_ADDONS_BASENAME, array( $this, 'insert_action_links' ) );
32
-
33
  }
34
 
35
- /*
36
- * Creates `Settings` action link
37
- * @since 1.0.0
38
- * @return void
39
- */
40
- public function insert_action_links( $links ) {
41
-
42
- $papro_path = 'premium-addons-pro/premium-addons-pro-for-elementor.php';
43
-
44
- $is_papro_installed = Helper_Functions::is_plugin_installed( $papro_path );
45
-
46
- $settings_link = sprintf( '<a href="%1$s">%2$s</a>', admin_url( 'admin.php?page=' . $this->page_slug ), __( 'Settings', 'premium-addons-for-elementor' ) );
47
-
48
- $rollback_link = sprintf( '<a href="%1$s">%2$s</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ), __( 'Rollback to Version ' . PREMIUM_ADDONS_STABLE_VERSION, 'premium-addons-for-elementor' ) );
49
-
50
- $new_links = array( $settings_link, $rollback_link );
51
-
52
- if( ! $is_papro_installed ) {
53
- $pro_link = sprintf( '<a href="https://premiumaddons.com/pro/" target="_blank" style="color: #39b54a; font-weight: bold;">%s</a>', __( 'Go Pro', 'premium-addons-for-elementor' ) );
54
- array_push ( $new_links, $pro_link );
55
- }
56
-
57
- $new_links = array_merge( $links, $new_links );
58
-
59
- return $new_links;
60
- }
61
-
62
  public function localize_js_script(){
63
  wp_localize_script(
64
  'pa-admin-js',
@@ -184,7 +155,7 @@ class Modules_Settings {
184
  <h1 class="pa-title-main"><?php echo Helper_Functions::name(); ?></h1>
185
  <h3 class="pa-title-sub"><?php echo sprintf(__('Thank you for using %s. This plugin has been developed by %s and we hope you enjoy using it.','premium-addons-for-elementor'), Helper_Functions::name(), Helper_Functions::author() ); ?></h3>
186
  </div>
187
- <?php if( ! Helper_Functions::is_show_logo() ) : ?>
188
  <div class="pa-title-right">
189
  <img class="pa-logo" src="<?php echo PREMIUM_ADDONS_URL . 'admin/images/premium-addons-logo.png';?>">
190
  </div>
@@ -705,7 +676,7 @@ class Modules_Settings {
705
  <input type="submit" value="<?php echo __('Save Settings', 'premium-addons-for-elementor'); ?>" class="button pa-btn pa-save-button">
706
 
707
  </div>
708
- <?php if( ! Helper_Functions::is_show_rate()) : ?>
709
  <div>
710
  <p><?php echo __('Did you like Premium Addons for Elementor Plugin? Please ', 'premium-addons-for-elementor'); ?><a href="https://wordpress.org/support/plugin/premium-addons-for-elementor/reviews/#new-post" target="_blank"><?php echo __('Click Here to Rate it ★★★★★', 'premium-addons-for-elementor'); ?></a></p>
711
  </div>
28
 
29
  add_action( 'admin_enqueue_scripts',array( $this, 'localize_js_script' ) );
30
 
 
 
31
  }
32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  public function localize_js_script(){
34
  wp_localize_script(
35
  'pa-admin-js',
155
  <h1 class="pa-title-main"><?php echo Helper_Functions::name(); ?></h1>
156
  <h3 class="pa-title-sub"><?php echo sprintf(__('Thank you for using %s. This plugin has been developed by %s and we hope you enjoy using it.','premium-addons-for-elementor'), Helper_Functions::name(), Helper_Functions::author() ); ?></h3>
157
  </div>
158
+ <?php if( ! Helper_Functions::is_hide_logo() ) : ?>
159
  <div class="pa-title-right">
160
  <img class="pa-logo" src="<?php echo PREMIUM_ADDONS_URL . 'admin/images/premium-addons-logo.png';?>">
161
  </div>
676
  <input type="submit" value="<?php echo __('Save Settings', 'premium-addons-for-elementor'); ?>" class="button pa-btn pa-save-button">
677
 
678
  </div>
679
+ <?php if( ! Helper_Functions::is_hide_rate()) : ?>
680
  <div>
681
  <p><?php echo __('Did you like Premium Addons for Elementor Plugin? Please ', 'premium-addons-for-elementor'); ?><a href="https://wordpress.org/support/plugin/premium-addons-for-elementor/reviews/#new-post" target="_blank"><?php echo __('Click Here to Rate it ★★★★★', 'premium-addons-for-elementor'); ?></a></p>
682
  </div>
assets/frontend/css/premium-addons.css CHANGED
@@ -1586,7 +1586,7 @@
1586
  -webkit-transform: translateX(0px) scale(1.1);
1587
  transform: translateX(0px) scale(1.1);
1588
  }
1589
- .premium-blog-thumbnail-container:before, .premium-blog-thumbnail-container:after {
1590
  position: absolute;
1591
  content: '';
1592
  z-index: 1;
@@ -1756,13 +1756,59 @@
1756
  -webkit-transform: translate(100%,0%);
1757
  transform: translate(100%,0%);
1758
  }
1759
- /*Content Wrapper*/
1760
- .premium-blog-content-wrapper {
1761
  margin: 0px 10px 20px;
1762
  clear: both;
1763
  padding: 30px;
1764
  }
1765
- .premium-blog-post-container.classic .premium-blog-content-wrapper {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1766
  position: relative;
1767
  z-index: 2;
1768
  top: -50px;
@@ -1774,10 +1820,18 @@
1774
  clear: both;
1775
  }
1776
  .premium-blog-content-wrapper .premium-blog-inner-container {
 
 
 
 
1777
  display: flex;
1778
  }
1779
  /*Post Format Container*/
1780
  .premium-blog-format-container {
 
 
 
 
1781
  display: flex;
1782
  align-items: center;
1783
  justify-content: center;
@@ -1827,13 +1881,13 @@
1827
  -o-transition: all 0.3s ease-in-out;
1828
  transition: all 0.3s ease-in-out;
1829
  }
1830
- .premium-blog-meta-data {
1831
- margin-right : 8px;
1832
  }
1833
  .premium-blog-post-content {
1834
  padding: 14px 0;
1835
  }
1836
- .premium-blog-post-container.classic .premium-blog-post-content {
1837
  border-top: 1px solid #eaeaea;
1838
  }
1839
  .premium-blog-post-container.cards .premium-blog-post-content {
@@ -1970,6 +2024,7 @@
1970
  overflow: hidden;
1971
  }
1972
  .premium-person-image-container {
 
1973
  text-align: center;
1974
  }
1975
  .premium-person-zoomout-effect .premium-person-image-container img, .premium-person-scale-effect .premium-person-image-container img {
@@ -2048,7 +2103,7 @@
2048
  -o-transition: all 0.5s ease-in-out;
2049
  transition: all 0.5s ease-in-out;
2050
  }
2051
- .premium-person-info {
2052
  position: absolute;
2053
  top: auto;
2054
  right: 0;
@@ -2065,7 +2120,65 @@
2065
  -o-transform: translate3d(0,100%,0);
2066
  transform: translate3d(0,100%,0);
2067
  }
2068
- .premium-person-container:hover .premium-person-info{
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2069
  -webkit-transform: translate3d(0,0,0);
2070
  -moz-transform: translate3d(0,0,0);
2071
  -ms-transform: translate3d(0,0,0);
@@ -2096,7 +2209,7 @@
2096
  display: inline;
2097
  list-style: none;
2098
  }
2099
- .premium-person-social-list li, .premium-person-social-list li i{
2100
  position: relative;
2101
  bottom: 0px;
2102
  -webkit-transition: all 0.2s ease-in-out;
@@ -2105,19 +2218,51 @@
2105
  -o-transition: all 0.2s ease-in-out;
2106
  transition: all 0.2s ease-in-out;
2107
  }
2108
- .premium-person-social-list li:hover {
2109
  bottom: 5px;
2110
  }
2111
- .premium-person-social-list li:hover a{
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2112
  box-shadow: none;
2113
  }
2114
- .premium-person-social-list li a:focus{
2115
  box-shadow: none;
2116
  outline: none;
2117
  }
2118
  .premium-person-social-list li i {
2119
  font-size: 18px;
2120
- margin: 0 5px;
2121
  }
2122
  .elementor-widget-premium-addon-person .elementor-widget-container {
2123
  display: -ms-flexbox;
1586
  -webkit-transform: translateX(0px) scale(1.1);
1587
  transform: translateX(0px) scale(1.1);
1588
  }
1589
+ .premium-blog-post-container:not(.premium-blog-skin-classic) .premium-blog-thumbnail-container:before, .premium-blog-post-container:not(.premium-blog-skin-classic) .premium-blog-post-container .premium-blog-thumbnail-container:after {
1590
  position: absolute;
1591
  content: '';
1592
  z-index: 1;
1756
  -webkit-transform: translate(100%,0%);
1757
  transform: translate(100%,0%);
1758
  }
1759
+ .premium-blog-post-container:not(.premium-blog-skin-classic) .premium-blog-content-wrapper {
 
1760
  margin: 0px 10px 20px;
1761
  clear: both;
1762
  padding: 30px;
1763
  }
1764
+ .premium-blog-skin-classic .premium-blog-thumbnail-overlay {
1765
+ position: absolute;
1766
+ top: 0;
1767
+ left: 0;
1768
+ display: -ms-flexbox;
1769
+ display: -webkit-flex;
1770
+ display: -moz-flex;
1771
+ display: -ms-flex;
1772
+ display: flex;
1773
+ -webkit-justify-content: center;
1774
+ justify-content: center;
1775
+ -webkit-box-align: center;
1776
+ -ms-flex-align: center;
1777
+ -webkit-align-items: center;
1778
+ -ms-flex-align: center;
1779
+ align-items: center;
1780
+ width: 100%;
1781
+ height: 100%;
1782
+ -webkit-transition: all 0.3s ease-in-out;
1783
+ -moz-transition: all 0.3s ease-in-out;
1784
+ -ms-transition: all 0.3s ease-in-out;
1785
+ transition: all 0.3s ease-in-out;
1786
+ opacity: 0;
1787
+ }
1788
+ .premium-blog-skin-classic .premium-blog-thumbnail-overlay a {
1789
+ -webkit-transform: scale(0);
1790
+ -moz-transform: scale(0);
1791
+ -ms-transform: scale(0);
1792
+ -o-transform: scale(0);
1793
+ transform: scale(0);
1794
+ -webkit-transition: all .5s ease-in-out 0s;
1795
+ -moz-transition: all .5s ease-in-out 0s;
1796
+ -ms-transition: all .5s ease-in-out 0s;
1797
+ -o-transition: all .5s ease-in-out 0s;
1798
+ transition: all .5s ease-in-out 0s;
1799
+ }
1800
+ .premium-blog-thumb-effect-wrapper:hover .premium-blog-thumbnail-overlay a {
1801
+ opacity: 1;
1802
+ -webkit-transform: scale(1);
1803
+ -moz-transform: scale(1);
1804
+ -ms-transform: scale(1);
1805
+ -o-transform: scale(1);
1806
+ transform: scale(1);
1807
+ }
1808
+ .premium-blog-thumb-effect-wrapper:hover .premium-blog-thumbnail-overlay {
1809
+ opacity: 1;
1810
+ }
1811
+ .premium-blog-skin-modern .premium-blog-content-wrapper {
1812
  position: relative;
1813
  z-index: 2;
1814
  top: -50px;
1820
  clear: both;
1821
  }
1822
  .premium-blog-content-wrapper .premium-blog-inner-container {
1823
+ display: -ms-flexbox;
1824
+ display: -webkit-flex;
1825
+ display: -moz-flex;
1826
+ display: -ms-flex;
1827
  display: flex;
1828
  }
1829
  /*Post Format Container*/
1830
  .premium-blog-format-container {
1831
+ display: -ms-flexbox;
1832
+ display: -webkit-flex;
1833
+ display: -moz-flex;
1834
+ display: -ms-flex;
1835
  display: flex;
1836
  align-items: center;
1837
  justify-content: center;
1881
  -o-transition: all 0.3s ease-in-out;
1882
  transition: all 0.3s ease-in-out;
1883
  }
1884
+ .premium-blog-meta-data .premium-blog-meta-separator {
1885
+ margin: 0 5px;
1886
  }
1887
  .premium-blog-post-content {
1888
  padding: 14px 0;
1889
  }
1890
+ .premium-blog-skin-modern .premium-blog-post-content {
1891
  border-top: 1px solid #eaeaea;
1892
  }
1893
  .premium-blog-post-container.cards .premium-blog-post-content {
2024
  overflow: hidden;
2025
  }
2026
  .premium-person-image-container {
2027
+ position: relative;
2028
  text-align: center;
2029
  }
2030
  .premium-person-zoomout-effect .premium-person-image-container img, .premium-person-scale-effect .premium-person-image-container img {
2103
  -o-transition: all 0.5s ease-in-out;
2104
  transition: all 0.5s ease-in-out;
2105
  }
2106
+ .premium-person-style1 .premium-person-info {
2107
  position: absolute;
2108
  top: auto;
2109
  right: 0;
2120
  -o-transform: translate3d(0,100%,0);
2121
  transform: translate3d(0,100%,0);
2122
  }
2123
+ .premium-person-style2 .premium-person-social {
2124
+ position: absolute;
2125
+ top: 0;
2126
+ left: 0;
2127
+ width: 100%;
2128
+ height: 100%;
2129
+ z-index: 2;
2130
+ display: -ms-flexbox;
2131
+ display: -webkit-flex;
2132
+ display: -moz-flex;
2133
+ display: -ms-flex;
2134
+ display: flex;
2135
+ -webkit-justify-content: center;
2136
+ justify-content: center;
2137
+ -webkit-box-align: center;
2138
+ -ms-flex-align: center;
2139
+ -webkit-align-items: center;
2140
+ -ms-flex-align: center;
2141
+ align-items: center;
2142
+ box-shadow: inset 0 0 120px 0 rgba(0,0,0,.5);
2143
+ -webkit-box-shadow: inset 0 0 120px 0 rgba(0,0,0,.5);
2144
+ -moz-box-shadow: inset 0 0 120px 0 rgba(0,0,0,.5);
2145
+ -ms-box-shadow: inset 0 0 120px 0 rgba(0,0,0,.5);
2146
+ -o-box-shadow: inset 0 0 120px 0 rgba(0,0,0,.5);
2147
+ -webkit-transition: all .5s linear 0s;
2148
+ -moz-transition: all .5s linear 0s;
2149
+ -ms-transition: all .5s linear 0s;
2150
+ -o-transition: all .5s linear 0s;
2151
+ transition: all .5s linear 0s;
2152
+ opacity: 0;
2153
+ }
2154
+ .premium-person-style2 .premium-person-image-container:hover .premium-person-social {
2155
+ opacity: 1;
2156
+ }
2157
+ .premium-person-list-item a {
2158
+ display: inline-block;
2159
+ }
2160
+ .premium-person-style2 .premium-person-list-item a {
2161
+ opacity: 0;
2162
+ -webkit-transform: scale(0);
2163
+ -moz-transform: scale(0);
2164
+ -ms-transform: scale(0);
2165
+ -o-transform: scale(0);
2166
+ transform: scale(0);
2167
+ -webkit-transition: all .5s ease-in-out 0s;
2168
+ -moz-transition: all .5s ease-in-out 0s;
2169
+ -ms-transition: all .5s ease-in-out 0s;
2170
+ -o-transition: all .5s ease-in-out 0s;
2171
+ transition: all .5s ease-in-out 0s;
2172
+ }
2173
+ .premium-person-style2 .premium-person-image-container:hover .premium-person-list-item a {
2174
+ opacity: 1;
2175
+ -webkit-transform: scale(1);
2176
+ -moz-transform: scale(1);
2177
+ -ms-transform: scale(1);
2178
+ -o-transform: scale(1);
2179
+ transform: scale(1);
2180
+ }
2181
+ .premium-person-container:hover .premium-person-info {
2182
  -webkit-transform: translate3d(0,0,0);
2183
  -moz-transform: translate3d(0,0,0);
2184
  -ms-transform: translate3d(0,0,0);
2209
  display: inline;
2210
  list-style: none;
2211
  }
2212
+ .premium-person-social-list li, .premium-person-social-list li i {
2213
  position: relative;
2214
  bottom: 0px;
2215
  -webkit-transition: all 0.2s ease-in-out;
2218
  -o-transition: all 0.2s ease-in-out;
2219
  transition: all 0.2s ease-in-out;
2220
  }
2221
+ .premium-person-style1 .premium-person-social-list li:hover {
2222
  bottom: 5px;
2223
  }
2224
+ .premium-person-defaults-yes li.premium-person-facebook:hover a {
2225
+ background-color: #3b5998 !important;
2226
+ }
2227
+ .premium-person-defaults-yes li.premium-person-twitter:hover a {
2228
+ background-color: #55acee !important;
2229
+ }
2230
+ .premium-person-defaults-yes li.premium-person-linkedin:hover a {
2231
+ background-color: #0077b5 !important;
2232
+ }
2233
+ .premium-person-defaults-yes li.premium-person-google:hover a {
2234
+ background-color: #dc4e41 !important;
2235
+ }
2236
+ .premium-person-defaults-yes li.premium-person-youtube:hover a {
2237
+ background-color: #b31217 !important;
2238
+ }
2239
+ .premium-person-defaults-yes li.premium-person-instagram:hover a {
2240
+ background-color: #E4405F !important;
2241
+ }
2242
+ .premium-person-defaults-yes li.premium-person-skype:hover a {
2243
+ background-color: #00AFF0 !important;
2244
+ }
2245
+ .premium-person-defaults-yes li.premium-person-pinterest:hover a {
2246
+ background-color: #bd081c !important;
2247
+ }
2248
+ .premium-person-defaults-yes li.premium-person-dribbble:hover a {
2249
+ background-color: #ea4c89 !important;
2250
+ }
2251
+ .premium-person-defaults-yes li.premium-person-mail:hover a {
2252
+ background-color: #b23121 !important;
2253
+ }
2254
+ .premium-person-defaults-yes li.premium-person-behance:hover a {
2255
+ background-color: #1769ff !important;
2256
+ }
2257
+ .premium-person-social-list li:hover a {
2258
  box-shadow: none;
2259
  }
2260
+ .premium-person-social-list li a:focus {
2261
  box-shadow: none;
2262
  outline: none;
2263
  }
2264
  .premium-person-social-list li i {
2265
  font-size: 18px;
 
2266
  }
2267
  .elementor-widget-premium-addon-person .elementor-widget-container {
2268
  display: -ms-flexbox;
assets/frontend/js/premium-addons.js CHANGED
@@ -665,12 +665,26 @@
665
 
666
  /****** Premium Blog Handler ******/
667
  var PremiumBlogHandler = function($scope, $) {
668
- var blogElement = $scope.find(".premium-blog-wrap"),
669
- colsNumber = blogElement.data("col"),
670
- carousel = blogElement.data("carousel"),
671
- grid = blogElement.data("grid");
672
-
673
- $scope.find(".premium-blog-cats-container li a").click(function(e) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
674
  e.preventDefault();
675
 
676
  $scope
@@ -679,18 +693,18 @@
679
 
680
  $(this).addClass("active");
681
 
682
- var selector = $(this).attr("data-filter");
683
 
684
- blogElement.isotope({ filter: selector });
685
 
686
  return false;
687
  });
688
 
689
- var masonryBlog = blogElement.hasClass("premium-blog-masonry");
690
 
691
  if (masonryBlog && !carousel) {
692
- blogElement.imagesLoaded(function() {
693
- blogElement.isotope({
694
  itemSelector: ".premium-blog-post-outer-container",
695
  percentPosition: true,
696
  animationOptions: {
@@ -703,11 +717,11 @@
703
  }
704
 
705
  if (carousel && grid) {
706
- var autoPlay = blogElement.data("play"),
707
- speed = blogElement.data("speed"),
708
- fade = blogElement.data("fade"),
709
- arrows = blogElement.data("arrows"),
710
- dots = blogElement.data("dots"),
711
  prevArrow = null,
712
  nextArrow = null;
713
 
@@ -720,7 +734,7 @@
720
  prevArrow = prevArrow = "";
721
  }
722
 
723
- $(blogElement).slick({
724
  infinite: true,
725
  slidesToShow: colsNumber,
726
  slidesToScroll: colsNumber,
665
 
666
  /****** Premium Blog Handler ******/
667
  var PremiumBlogHandler = function($scope, $) {
668
+ var $blogElement = $scope.find(".premium-blog-wrap"),
669
+ $blogPost = $blogElement.find(".premium-blog-post-outer-container"),
670
+ colsNumber = $blogElement.data("col"),
671
+ carousel = $blogElement.data("carousel"),
672
+ grid = $blogElement.data("grid");
673
+
674
+
675
+ var $metaSeparators = $blogPost.first().find(".premium-blog-meta-separator");
676
+
677
+ if( 1 === $metaSeparators.length ) {
678
+ $blogPost.find(".premium-blog-meta-separator").remove();
679
+ } else {
680
+ if( ! $blogPost.find(".fa-user").length ) {
681
+ $blogPost.each(function( index, post ) {
682
+ $( post ).find(".premium-blog-meta-separator").first().remove();
683
+ });
684
+ }
685
+ }
686
+
687
+ $scope.find( ".premium-blog-cats-container li a" ).click(function( e ) {
688
  e.preventDefault();
689
 
690
  $scope
693
 
694
  $(this).addClass("active");
695
 
696
+ var selector = $( this ).attr("data-filter");
697
 
698
+ $blogElement.isotope({ filter: selector });
699
 
700
  return false;
701
  });
702
 
703
+ var masonryBlog = $blogElement.hasClass("premium-blog-masonry");
704
 
705
  if (masonryBlog && !carousel) {
706
+ $blogElement.imagesLoaded(function() {
707
+ $blogElement.isotope({
708
  itemSelector: ".premium-blog-post-outer-container",
709
  percentPosition: true,
710
  animationOptions: {
717
  }
718
 
719
  if (carousel && grid) {
720
+ var autoPlay = $blogElement.data("play"),
721
+ speed = $blogElement.data("speed"),
722
+ fade = $blogElement.data("fade"),
723
+ arrows = $blogElement.data("arrows"),
724
+ dots = $blogElement.data("dots"),
725
  prevArrow = null,
726
  nextArrow = null;
727
 
734
  prevArrow = prevArrow = "";
735
  }
736
 
737
+ $($blogElement).slick({
738
  infinite: true,
739
  slidesToShow: colsNumber,
740
  slidesToScroll: colsNumber,
assets/frontend/js/premium-vscroll.js CHANGED
@@ -690,9 +690,7 @@
690
  $(".premium-vscroll-tooltip").hide();
691
 
692
  if ( dotIndex === $itemsList.length - 1 && ! $vTarget ) {
693
- $(
694
- ".premium-vscroll-dots, .premium-vscroll-nav-menu"
695
- ).addClass("premium-vscroll-dots-hide");
696
  } else if ( dotIndex === 0 && ! $vTarget ) {
697
  if (
698
  $instance.offset().top - $(document).scrollTop() >
690
  $(".premium-vscroll-tooltip").hide();
691
 
692
  if ( dotIndex === $itemsList.length - 1 && ! $vTarget ) {
693
+ $( ".premium-vscroll-dots, .premium-vscroll-nav-menu" ).addClass("premium-vscroll-dots-hide");
 
 
694
  } else if ( dotIndex === 0 && ! $vTarget ) {
695
  if (
696
  $instance.offset().top - $(document).scrollTop() >
includes/class-helper-functions.php CHANGED
@@ -8,37 +8,37 @@ class Helper_Functions {
8
 
9
  private static $google_localize = null;
10
 
11
- public static function is_show_rate() {
12
 
13
  if( defined('PREMIUM_PRO_ADDONS_VERSION') ) {
14
  if( isset(get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-rate'] ) ) {
15
- $show_rate = get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-rate'];
16
  }
17
  }
18
 
19
- return isset( $show_rate ) ? $show_rate : false;
20
  }
21
 
22
- public static function is_show_about() {
23
 
24
  if( defined('PREMIUM_PRO_ADDONS_VERSION') ) {
25
  if(isset(get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-about'])){
26
- $show_about = get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-about'];
27
  }
28
  }
29
 
30
- return isset( $show_about ) ? $show_about : false;
31
  }
32
 
33
- public static function is_show_version_control() {
34
 
35
  if( defined('PREMIUM_PRO_ADDONS_VERSION') ) {
36
  if(isset(get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-version'])){
37
- $show_version_tab = get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-version'];
38
  }
39
  }
40
 
41
- return isset( $show_version_tab ) ? $show_version_tab : false;
42
  }
43
 
44
  public static function author() {
@@ -49,7 +49,7 @@ class Helper_Functions {
49
  }
50
  }
51
 
52
- return ( isset($author_free) && '' != $author_free ) ? $author_free : 'Leap13';
53
  }
54
 
55
  public static function name() {
@@ -60,18 +60,29 @@ class Helper_Functions {
60
  }
61
  }
62
 
63
- return ( isset($name_free) && '' != $name_free ) ? $name_free : 'Premium Addons for Elementor';
 
 
 
 
 
 
 
 
 
 
 
64
  }
65
 
66
- public static function is_show_logo() {
67
 
68
  if( defined('PREMIUM_PRO_ADDONS_VERSION') ) {
69
  if(isset(get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-logo'])){
70
- $show_logo = get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-logo'];
71
  }
72
  }
73
 
74
- return isset( $show_logo ) ? $show_logo : false;
75
  }
76
 
77
  public static function get_category() {
@@ -82,7 +93,7 @@ class Helper_Functions {
82
  }
83
  }
84
 
85
- return ( isset($category) && '' != $category ) ? $category : 'Premium Addons';
86
 
87
  }
88
 
@@ -94,7 +105,7 @@ class Helper_Functions {
94
  }
95
  }
96
 
97
- return ( isset($prefix) && '' != $prefix ) ? $prefix : 'Premium';
98
  }
99
 
100
  public static function get_badge() {
@@ -105,7 +116,7 @@ class Helper_Functions {
105
  }
106
  }
107
 
108
- return ( isset($badge) && '' != $badge ) ? $badge : 'PA';
109
  }
110
 
111
  public static function get_google_languages() {
8
 
9
  private static $google_localize = null;
10
 
11
+ public static function is_hide_rate() {
12
 
13
  if( defined('PREMIUM_PRO_ADDONS_VERSION') ) {
14
  if( isset(get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-rate'] ) ) {
15
+ $hide_rate = get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-rate'];
16
  }
17
  }
18
 
19
+ return isset( $hide_rate ) ? $hide_rate : false;
20
  }
21
 
22
+ public static function is_hide_about() {
23
 
24
  if( defined('PREMIUM_PRO_ADDONS_VERSION') ) {
25
  if(isset(get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-about'])){
26
+ $hide_about = get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-about'];
27
  }
28
  }
29
 
30
+ return isset( $hide_about ) ? $hide_about : false;
31
  }
32
 
33
+ public static function is_hide_version_control() {
34
 
35
  if( defined('PREMIUM_PRO_ADDONS_VERSION') ) {
36
  if(isset(get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-version'])){
37
+ $hide_version_tab = get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-version'];
38
  }
39
  }
40
 
41
+ return isset( $hide_version_tab ) ? $hide_version_tab : false;
42
  }
43
 
44
  public static function author() {
49
  }
50
  }
51
 
52
+ return ( isset( $author_free ) && '' != $author_free ) ? $author_free : 'Leap13';
53
  }
54
 
55
  public static function name() {
60
  }
61
  }
62
 
63
+ return ( isset( $name_free ) && '' != $name_free ) ? $name_free : 'Premium Addons for Elementor';
64
+ }
65
+
66
+ public static function is_hide_row_meta() {
67
+
68
+ if( defined('PREMIUM_PRO_ADDONS_VERSION') ) {
69
+ if( isset( get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-row'] ) ){
70
+ $hide_meta = get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-row'];
71
+ }
72
+ }
73
+
74
+ return isset( $hide_meta ) ? $hide_meta : false;
75
  }
76
 
77
+ public static function is_hide_logo() {
78
 
79
  if( defined('PREMIUM_PRO_ADDONS_VERSION') ) {
80
  if(isset(get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-logo'])){
81
+ $hide_logo = get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-logo'];
82
  }
83
  }
84
 
85
+ return isset( $hide_logo ) ? $hide_logo : false;
86
  }
87
 
88
  public static function get_category() {
93
  }
94
  }
95
 
96
+ return ( isset( $category ) && '' != $category ) ? $category : 'Premium Addons';
97
 
98
  }
99
 
105
  }
106
  }
107
 
108
+ return ( isset( $prefix ) && '' != $prefix ) ? $prefix : 'Premium';
109
  }
110
 
111
  public static function get_badge() {
116
  }
117
  }
118
 
119
+ return ( isset( $badge ) && '' != $badge ) ? $badge : 'PA';
120
  }
121
 
122
  public static function get_google_languages() {
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.8.3
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.8.3');
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.8.2');
23
 
24
  if( ! class_exists('Premium_Addons_Elementor') ) {
25
 
@@ -105,6 +105,7 @@ if( ! class_exists('Premium_Addons_Elementor') ) {
105
  require_once ( PREMIUM_ADDONS_PATH . 'admin/includes/dep/maintenance.php');
106
  require_once ( PREMIUM_ADDONS_PATH . 'admin/includes/dep/rollback.php');
107
 
 
108
  require_once ( PREMIUM_ADDONS_PATH . 'includes/class-beta-testers.php');
109
  require_once ( PREMIUM_ADDONS_PATH . 'includes/plugin.php');
110
  require_once ( PREMIUM_ADDONS_PATH . 'admin/includes/admin-notices.php' );
3
  Plugin Name: Premium Addons for Elementor
4
  Description: Premium Addons Plugin Includes 22+ premium widgets for Elementor Page Builder.
5
  Plugin URI: https://premiumaddons.com
6
+ Version: 3.8.4
7
  Author: Leap13
8
  Author URI: https://leap13.com/
9
  Text Domain: premium-addons-for-elementor
14
  if ( ! defined('ABSPATH') ) exit; // No access of directly access
15
 
16
  // Define Constants
17
+ define('PREMIUM_ADDONS_VERSION', '3.8.4');
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.8.3');
23
 
24
  if( ! class_exists('Premium_Addons_Elementor') ) {
25
 
105
  require_once ( PREMIUM_ADDONS_PATH . 'admin/includes/dep/maintenance.php');
106
  require_once ( PREMIUM_ADDONS_PATH . 'admin/includes/dep/rollback.php');
107
 
108
+ require_once ( PREMIUM_ADDONS_PATH . 'admin/includes/dep/admin-helper.php');
109
  require_once ( PREMIUM_ADDONS_PATH . 'includes/class-beta-testers.php');
110
  require_once ( PREMIUM_ADDONS_PATH . 'includes/plugin.php');
111
  require_once ( PREMIUM_ADDONS_PATH . 'admin/includes/admin-notices.php' );
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate Link: https://premiumaddons.com/?utm_source=wp-repo&utm_medium=link&utm_c
5
  Requires at Least: 4.5
6
  Tested Up To: 5.2.4
7
  Requires PHP: 5.4
8
- Stable Tag: 3.8.3
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
@@ -175,6 +175,13 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
175
 
176
  == Changelog ==
177
 
 
 
 
 
 
 
 
178
  = 3.8.3 =
179
 
180
  - Tweak: Added more action buttons to the plugin on Plugins page.
5
  Requires at Least: 4.5
6
  Tested Up To: 5.2.4
7
  Requires PHP: 5.4
8
+ Stable Tag: 3.8.4
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
175
 
176
  == Changelog ==
177
 
178
+ = 3.8.4 =
179
+
180
+ - Tweak: Added new skin `Classic` in Blog widget.
181
+ - Tweak: Added separators to posts meta data in Blog widget.
182
+ - Tweak: Added `Style 2` in Person widget.
183
+ - Tweak: Added `Brands Default Colors` option in Person widget.
184
+
185
  = 3.8.3 =
186
 
187
  - Tweak: Added more action buttons to the plugin on Plugins page.
widgets/premium-blog.php CHANGED
@@ -85,23 +85,6 @@ class Premium_Blog extends Widget_Base {
85
  ]
86
  );
87
 
88
- $this->add_control('premium_blog_hover_color_effect',
89
- [
90
- 'label' => __('Color Effect', 'premium-addons-for-elementor'),
91
- 'type' => Controls_Manager::SELECT,
92
- 'description' => __('Choose an overlay color effect','premium-addons-for-elementor'),
93
- 'options' => [
94
- 'none' => __('None', 'premium-addons-for-elementor'),
95
- 'framed' => __('Framed', 'premium-addons-for-elementor'),
96
- 'diagonal' => __('Diagonal', 'premium-addons-for-elementor'),
97
- 'bordered' => __('Bordered', 'premium-addons-for-elementor'),
98
- 'squares' => __('Squares', 'premium-addons-for-elementor'),
99
- ],
100
- 'default' => 'framed',
101
- 'label_block' => true
102
- ]
103
- );
104
-
105
  $this->end_controls_section();
106
 
107
  $this->start_controls_section('premium_blog_content_settings',
@@ -116,13 +99,34 @@ class Premium_Blog extends Widget_Base {
116
  'type' => Controls_Manager::SELECT,
117
  'options' => [
118
  'classic' => __('Classic', 'premium-addons-for-elementor'),
 
119
  'cards' => __('Cards', 'premium-addons-for-elementor'),
120
  ],
121
- 'default' => 'classic',
122
  'label_block' => true
123
  ]
124
  );
125
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126
  $this->add_control('premium_blog_title_tag',
127
  [
128
  'label' => __( 'Title HTML Tag', 'premium-addons-for-elementor' ),
@@ -772,6 +776,9 @@ class Premium_Blog extends Widget_Base {
772
  ],
773
  'selectors' => [
774
  '{{WRAPPER}} .premium-blog-thumbnail-container:before, {{WRAPPER}} .premium-blog-thumbnail-container:after' => 'background-color: {{VALUE}};',
 
 
 
775
  ]
776
  ]
777
  );
@@ -785,7 +792,7 @@ class Premium_Blog extends Widget_Base {
785
  'value' => Scheme_Color::COLOR_1,
786
  ],
787
  'selectors' => [
788
- '{{WRAPPER}} .premium-blog-framed-effect, {{WRAPPER}} .premium-blog-bordered-effect,{{WRAPPER}} .premium-blog-squares-effect:before,{{WRAPPER}} .premium-blog-squares-effect:after,{{WRAPPER}} .premium-blog-squares-square-container:before,{{WRAPPER}} .premium-blog-squares-square-container:after, {{WRAPPER}} .premium-blog-format-container:hover' => 'background-color: {{VALUE}};',
789
  ]
790
  ]
791
  );
@@ -818,14 +825,36 @@ class Premium_Blog extends Widget_Base {
818
 
819
  $this->end_controls_section();
820
 
821
- $this->start_controls_section('premium_blog_title_style_section',
822
  [
823
- 'label' => __('Title', 'premium-addons-for-elementor'),
824
  'tab' => Controls_Manager::TAB_STYLE,
 
 
 
825
  ]
826
  );
827
 
828
- $this->add_control('premium_blog_title_color',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
829
  [
830
  'label' => __('Color', 'premium-addons-for-elementor'),
831
  'type' => Controls_Manager::COLOR,
@@ -834,20 +863,12 @@ class Premium_Blog extends Widget_Base {
834
  'value' => Scheme_Color::COLOR_2,
835
  ],
836
  'selectors' => [
837
- '{{WRAPPER}} .premium-blog-entry-title a' => 'color: {{VALUE}};',
838
  ]
839
  ]
840
  );
841
-
842
- $this->add_group_control(
843
- Group_Control_Typography::get_type(),
844
- [
845
- 'name' => 'premium_blog_title_typo',
846
- 'selector' => '{{WRAPPER}} .premium-blog-entry-title',
847
- ]
848
- );
849
-
850
- $this->add_control('premium_blog_title_hover_color',
851
  [
852
  'label' => __('Hover Color', 'premium-addons-for-elementor'),
853
  'type' => Controls_Manager::COLOR,
@@ -856,67 +877,90 @@ class Premium_Blog extends Widget_Base {
856
  'value' => Scheme_Color::COLOR_1,
857
  ],
858
  'selectors' => [
859
- '{{WRAPPER}} .premium-blog-entry-title:hover a' => 'color: {{VALUE}};',
860
  ]
861
  ]
862
  );
863
-
864
- $this->end_controls_section();
865
-
866
- $this->start_controls_section('premium_blog_meta_style_section',
867
  [
868
- 'label' => __('Meta', 'premium-addons-for-elementor'),
869
- 'tab' => Controls_Manager::TAB_STYLE,
 
 
 
 
 
 
 
870
  ]
871
  );
872
 
873
- $this->add_control('premium_blog_meta_color',
874
  [
875
- 'label' => __('Color', 'premium-addons-for-elementor'),
876
  'type' => Controls_Manager::COLOR,
877
  'scheme' => [
878
  'type' => Scheme_Color::get_type(),
879
  'value' => Scheme_Color::COLOR_2,
880
  ],
881
  'selectors' => [
882
- '{{WRAPPER}} .premium-blog-entry-meta, {{WRAPPER}} .premium-blog-entry-meta a' => 'color: {{VALUE}};',
883
  ]
884
  ]
885
  );
886
 
887
-
888
  $this->add_group_control(
889
- Group_Control_Typography::get_type(),
890
  [
891
- 'name' => 'premium_blog_meta_typo',
892
- 'selector' => '{{WRAPPER}} .premium-blog-entry-meta a',
893
  ]
894
  );
895
-
896
- $this->add_control('premium_blog_meta_hover_color',
897
  [
898
- 'label' => __('Hover Color', 'premium-addons-for-elementor'),
899
- 'type' => Controls_Manager::COLOR,
900
- 'scheme' => [
901
- 'type' => Scheme_Color::get_type(),
902
- 'value' => Scheme_Color::COLOR_1,
903
- ],
904
  'selectors' => [
905
- '{{WRAPPER}} .premium-blog-entry-meta a:hover' => 'color: {{VALUE}};',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
906
  ]
907
  ]
908
  );
909
 
910
  $this->end_controls_section();
911
 
912
- $this->start_controls_section('premium_blog_tags_style_section',
913
  [
914
- 'label' => __('Tags', 'premium-addons-for-elementor'),
915
  'tab' => Controls_Manager::TAB_STYLE,
916
  ]
917
  );
918
 
919
- $this->add_control('premium_blog_tags_color',
 
 
 
 
 
 
 
 
920
  [
921
  'label' => __('Color', 'premium-addons-for-elementor'),
922
  'type' => Controls_Manager::COLOR,
@@ -925,20 +969,12 @@ class Premium_Blog extends Widget_Base {
925
  'value' => Scheme_Color::COLOR_2,
926
  ],
927
  'selectors' => [
928
- '{{WRAPPER}} .premium-blog-post-tags-container, {{WRAPPER}} .premium-blog-post-tags-container a' => 'color: {{VALUE}};',
929
  ]
930
  ]
931
  );
932
 
933
- $this->add_group_control(
934
- Group_Control_Typography::get_type(),
935
- [
936
- 'name' => 'premium_blog_tags_typo',
937
- 'selector' => '{{WRAPPER}} .premium-blog-post-tags-container a',
938
- ]
939
- );
940
-
941
- $this->add_control('premium_blog_tags_hoer_color',
942
  [
943
  'label' => __('Hover Color', 'premium-addons-for-elementor'),
944
  'type' => Controls_Manager::COLOR,
@@ -947,43 +983,29 @@ class Premium_Blog extends Widget_Base {
947
  'value' => Scheme_Color::COLOR_1,
948
  ],
949
  'selectors' => [
950
- '{{WRAPPER}} .premium-blog-post-tags-container a:hover' => 'color: {{VALUE}};',
951
  ]
952
  ]
953
  );
954
 
955
  $this->end_controls_section();
956
 
957
- $this->start_controls_section('premium_blog_format_style_section',
958
  [
959
- 'label' => __('Post Format Icon', 'premium-addons-for-elementor'),
960
  'tab' => Controls_Manager::TAB_STYLE,
961
- 'condition' => [
962
- 'premium_blog_post_format_icon' => 'yes'
963
- ]
964
  ]
965
  );
966
 
967
- $this->add_control('premium_blog_format_icon_size',
 
968
  [
969
- 'label' => __('Size', 'premium-addons-for-elementor'),
970
- 'type' => Controls_Manager::SLIDER,
971
- 'description' => __('Choose icon size in (PX, EM)', 'premium-addons-for-elementor'),
972
- 'range' => [
973
- 'em' => [
974
- 'min' => 1,
975
- 'max' => 10,
976
- ],
977
- ],
978
- 'size_units' => ['px', "em"],
979
- 'label_block' => true,
980
- 'selectors' => [
981
- '{{WRAPPER}} .premium-blog-format-icon' => 'font-size: {{SIZE}}{{UNIT}};',
982
- ]
983
  ]
984
  );
985
 
986
- $this->add_control('premium_blog_format_icon_color',
987
  [
988
  'label' => __('Color', 'premium-addons-for-elementor'),
989
  'type' => Controls_Manager::COLOR,
@@ -992,12 +1014,12 @@ class Premium_Blog extends Widget_Base {
992
  'value' => Scheme_Color::COLOR_2,
993
  ],
994
  'selectors' => [
995
- '{{WRAPPER}} .premium-blog-format-container i' => 'color: {{VALUE}};',
996
  ]
997
  ]
998
  );
999
-
1000
- $this->add_control('premium_blog_format_icon_hover_color',
1001
  [
1002
  'label' => __('Hover Color', 'premium-addons-for-elementor'),
1003
  'type' => Controls_Manager::COLOR,
@@ -1006,35 +1028,52 @@ class Premium_Blog extends Widget_Base {
1006
  'value' => Scheme_Color::COLOR_1,
1007
  ],
1008
  'selectors' => [
1009
- '{{WRAPPER}} .premium-blog-format-container:hover i' => 'color: {{VALUE}};',
1010
  ]
1011
  ]
1012
  );
1013
-
1014
- $this->add_control('premium_blog_format_back_color',
 
 
1015
  [
1016
- 'label' => __('Background Color', 'premium-addons-for-elementor'),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1017
  'type' => Controls_Manager::COLOR,
1018
  'scheme' => [
1019
  'type' => Scheme_Color::get_type(),
1020
- 'value' => Scheme_Color::COLOR_1,
1021
  ],
1022
  'selectors' => [
1023
- '{{WRAPPER}} .premium-blog-format-container' => 'background-color: {{VALUE}};',
1024
  ]
1025
  ]
1026
  );
1027
 
1028
- $this->add_control('premium_blog_format_back_hover_color',
1029
  [
1030
- 'label' => __('Hover Background Color', 'premium-addons-for-elementor'),
1031
  'type' => Controls_Manager::COLOR,
1032
  'scheme' => [
1033
  'type' => Scheme_Color::get_type(),
1034
- 'value' => Scheme_Color::COLOR_2,
1035
  ],
1036
  'selectors' => [
1037
- '{{WRAPPER}} .premium-blog-format-container:hover' => 'background-color: {{VALUE}};',
1038
  ]
1039
  ]
1040
  );
@@ -1043,11 +1082,19 @@ class Premium_Blog extends Widget_Base {
1043
 
1044
  $this->start_controls_section('premium_blog_content_style_section',
1045
  [
1046
- 'label' => __('Box', 'premium-addons-for-elementor'),
1047
  'tab' => Controls_Manager::TAB_STYLE,
1048
  ]
1049
  );
1050
 
 
 
 
 
 
 
 
 
1051
  $this->add_control('premium_blog_post_content_color',
1052
  [
1053
  'label' => __('Text Color', 'premium-addons-for-elementor'),
@@ -1062,14 +1109,6 @@ class Premium_Blog extends Widget_Base {
1062
  ]
1063
  );
1064
 
1065
- $this->add_group_control(
1066
- Group_Control_Typography::get_type(),
1067
- [
1068
- 'name' => 'premium_blog_content_typo',
1069
- 'selector' => '{{WRAPPER}} .premium-blog-post-content',
1070
- ]
1071
- );
1072
-
1073
  $this->add_control('premium_blog_box_background_color',
1074
  [
1075
  'label' => __('Background Color', 'premium-addons-for-elementor'),
@@ -1101,7 +1140,7 @@ class Premium_Blog extends Widget_Base {
1101
 
1102
  $this->add_responsive_control('prmeium_blog_box_padding',
1103
  [
1104
- 'label' => __('Padding', 'premium-addons-for-elementor'),
1105
  'type' => Controls_Manager::DIMENSIONS,
1106
  'size_units' => ['px', 'em', '%'],
1107
  'selectors' => [
@@ -1650,18 +1689,47 @@ class Premium_Blog extends Widget_Base {
1650
  <span class="premium-blog-post-author premium-blog-meta-data"><i class="fa fa-user fa-fw"></i><?php the_author_posts_link();?></span>
1651
  <?php endif; ?>
1652
  <?php if( $settings['premium_blog_date_meta'] === 'yes' ) : ?>
 
1653
  <span class="premium-blog-post-time premium-blog-meta-data"><i class="fa fa-calendar fa-fw"></i><a href="<?php the_permalink(); ?>" target="<?php echo esc_attr($link_target); ?>"><?php the_time($date_format); ?></a></span>
1654
  <?php endif; ?>
1655
  <?php if( $settings['premium_blog_categories_meta'] === 'yes' ) : ?>
 
1656
  <span class="premium-blog-post-categories premium-blog-meta-data"><i class="fa fa-align-left fa-fw"></i><?php the_category(', '); ?></span>
1657
  <?php endif; ?>
1658
  <?php if( $settings['premium_blog_comments_meta'] === 'yes' ) : ?>
1659
- <span class="premium-blog-post-comments premium-blog-meta-data"><i class="fa fa-comments-o fa-fw"></i><a href="<?php the_permalink(); ?>" target="<?php echo esc_attr($link_target); ?>"><?php comments_number('0 Comments', '1', '%'); ?> </a></span>
 
1660
  <?php endif; ?>
1661
  </div>
1662
 
1663
  <?php
1664
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1665
 
1666
  /*
1667
  * Renders post skin
@@ -1699,7 +1767,7 @@ class Premium_Blog extends Widget_Base {
1699
 
1700
  $this->add_render_attribute( $wrap_key, 'class', [
1701
  'premium-blog-post-container',
1702
- $skin,
1703
  ] );
1704
 
1705
  $thumb = ( ! has_post_thumbnail() ) ? 'empty-thumb' : '';
@@ -1727,16 +1795,24 @@ class Premium_Blog extends Widget_Base {
1727
  <div <?php echo $this->get_render_attribute_string( $wrap_key ); ?>>
1728
  <div class="premium-blog-thumb-effect-wrapper">
1729
  <div class="premium-blog-thumbnail-container <?php echo 'premium-blog-' . $image_effect . '-effect';?>">
1730
- <a href="<?php the_permalink(); ?>" target="<?php echo esc_attr( $target ); ?>"><?php the_post_thumbnail('full'); ?></a>
1731
- </div>
1732
- <div class="premium-blog-effect-container <?php echo 'premium-blog-'. $post_effect . '-effect'; ?>">
1733
- <a class="premium-blog-post-link" href="<?php the_permalink(); ?>" target="<?php echo esc_attr( $target ); ?>"></a>
1734
- <?php if( $settings['premium_blog_hover_color_effect'] === 'bordered' ) : ?>
1735
- <div class="premium-blog-bordered-border-container"></div>
1736
- <?php elseif( $settings['premium_blog_hover_color_effect'] === 'squares' ) : ?>
1737
- <div class="premium-blog-squares-square-container"></div>
1738
- <?php endif; ?>
1739
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1740
  </div>
1741
  <?php if( 'cards' === $skin ) : ?>
1742
  <div class="premium-blog-author-thumbnail">
@@ -1753,7 +1829,7 @@ class Premium_Blog extends Widget_Base {
1753
  <div class="premium-blog-entry-container">
1754
  <?php
1755
  $this->get_post_title( $target );
1756
- if ( 'classic' === $skin ) {
1757
  $this->get_post_meta( $target );
1758
  }
1759
 
85
  ]
86
  );
87
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
  $this->end_controls_section();
89
 
90
  $this->start_controls_section('premium_blog_content_settings',
99
  'type' => Controls_Manager::SELECT,
100
  'options' => [
101
  'classic' => __('Classic', 'premium-addons-for-elementor'),
102
+ 'modern' => __('Modern', 'premium-addons-for-elementor'),
103
  'cards' => __('Cards', 'premium-addons-for-elementor'),
104
  ],
105
+ 'default' => 'modern',
106
  'label_block' => true
107
  ]
108
  );
109
 
110
+ $this->add_control('premium_blog_hover_color_effect',
111
+ [
112
+ 'label' => __('Overlay Effect', 'premium-addons-for-elementor'),
113
+ 'type' => Controls_Manager::SELECT,
114
+ 'description' => __('Choose an overlay color effect','premium-addons-for-elementor'),
115
+ 'options' => [
116
+ 'none' => __('None', 'premium-addons-for-elementor'),
117
+ 'framed' => __('Framed', 'premium-addons-for-elementor'),
118
+ 'diagonal' => __('Diagonal', 'premium-addons-for-elementor'),
119
+ 'bordered' => __('Bordered', 'premium-addons-for-elementor'),
120
+ 'squares' => __('Squares', 'premium-addons-for-elementor'),
121
+ ],
122
+ 'default' => 'framed',
123
+ 'label_block' => true,
124
+ 'condition' => [
125
+ 'premium_blog_skin!' => 'classic'
126
+ ]
127
+ ]
128
+ );
129
+
130
  $this->add_control('premium_blog_title_tag',
131
  [
132
  'label' => __( 'Title HTML Tag', 'premium-addons-for-elementor' ),
776
  ],
777
  'selectors' => [
778
  '{{WRAPPER}} .premium-blog-thumbnail-container:before, {{WRAPPER}} .premium-blog-thumbnail-container:after' => 'background-color: {{VALUE}};',
779
+ ],
780
+ 'condition' => [
781
+ 'premium_blog_skin!' => 'classic'
782
  ]
783
  ]
784
  );
792
  'value' => Scheme_Color::COLOR_1,
793
  ],
794
  'selectors' => [
795
+ '{{WRAPPER}} .premium-blog-framed-effect, {{WRAPPER}} .premium-blog-bordered-effect,{{WRAPPER}} .premium-blog-squares-effect:before,{{WRAPPER}} .premium-blog-squares-effect:after,{{WRAPPER}} .premium-blog-squares-square-container:before,{{WRAPPER}} .premium-blog-squares-square-container:after, {{WRAPPER}} .premium-blog-format-container:hover, {{WRAPPER}} .premium-blog-thumbnail-overlay' => 'background-color: {{VALUE}};',
796
  ]
797
  ]
798
  );
825
 
826
  $this->end_controls_section();
827
 
828
+ $this->start_controls_section('premium_blog_format_style_section',
829
  [
830
+ 'label' => __('Post Format Icon', 'premium-addons-for-elementor'),
831
  'tab' => Controls_Manager::TAB_STYLE,
832
+ 'condition' => [
833
+ 'premium_blog_post_format_icon' => 'yes'
834
+ ]
835
  ]
836
  );
837
 
838
+ $this->add_control('premium_blog_format_icon_size',
839
+ [
840
+ 'label' => __('Size', 'premium-addons-for-elementor'),
841
+ 'type' => Controls_Manager::SLIDER,
842
+ 'description' => __('Choose icon size in (PX, EM)', 'premium-addons-for-elementor'),
843
+ 'range' => [
844
+ 'em' => [
845
+ 'min' => 1,
846
+ 'max' => 10,
847
+ ],
848
+ ],
849
+ 'size_units' => ['px', "em"],
850
+ 'label_block' => true,
851
+ 'selectors' => [
852
+ '{{WRAPPER}} .premium-blog-format-icon, {{WRAPPER}} .premium-blog-thumbnail-overlay i' => 'font-size: {{SIZE}}{{UNIT}};',
853
+ ]
854
+ ]
855
+ );
856
+
857
+ $this->add_control('premium_blog_format_icon_color',
858
  [
859
  'label' => __('Color', 'premium-addons-for-elementor'),
860
  'type' => Controls_Manager::COLOR,
863
  'value' => Scheme_Color::COLOR_2,
864
  ],
865
  'selectors' => [
866
+ '{{WRAPPER}} .premium-blog-format-container i, {{WRAPPER}} .premium-blog-thumbnail-overlay a' => 'color: {{VALUE}};',
867
  ]
868
  ]
869
  );
870
+
871
+ $this->add_control('premium_blog_format_icon_hover_color',
 
 
 
 
 
 
 
 
872
  [
873
  'label' => __('Hover Color', 'premium-addons-for-elementor'),
874
  'type' => Controls_Manager::COLOR,
877
  'value' => Scheme_Color::COLOR_1,
878
  ],
879
  'selectors' => [
880
+ '{{WRAPPER}} .premium-blog-format-container:hover i, {{WRAPPER}} .premium-blog-thumbnail-overlay a:hover' => 'color: {{VALUE}};',
881
  ]
882
  ]
883
  );
884
+
885
+ $this->add_control('premium_blog_format_back_color',
 
 
886
  [
887
+ 'label' => __('Background Color', 'premium-addons-for-elementor'),
888
+ 'type' => Controls_Manager::COLOR,
889
+ 'scheme' => [
890
+ 'type' => Scheme_Color::get_type(),
891
+ 'value' => Scheme_Color::COLOR_1,
892
+ ],
893
+ 'selectors' => [
894
+ '{{WRAPPER}} .premium-blog-format-container, {{WRAPPER}} .premium-blog-thumbnail-overlay a' => 'background-color: {{VALUE}};',
895
+ ]
896
  ]
897
  );
898
 
899
+ $this->add_control('premium_blog_format_back_hover_color',
900
  [
901
+ 'label' => __('Hover Background Color', 'premium-addons-for-elementor'),
902
  'type' => Controls_Manager::COLOR,
903
  'scheme' => [
904
  'type' => Scheme_Color::get_type(),
905
  'value' => Scheme_Color::COLOR_2,
906
  ],
907
  'selectors' => [
908
+ '{{WRAPPER}} .premium-blog-format-container:hover, {{WRAPPER}} .premium-blog-thumbnail-overlay a:hover' => 'background-color: {{VALUE}};',
909
  ]
910
  ]
911
  );
912
 
 
913
  $this->add_group_control(
914
+ Group_Control_Border::get_type(),
915
  [
916
+ 'name' => 'premium_blog_format_border',
917
+ 'selector' => '{{WRAPPER}} .premium-blog-thumbnail-overlay a',
918
  ]
919
  );
920
+
921
+ $this->add_control('premium_blog_format_border_radius',
922
  [
923
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
924
+ 'type' => Controls_Manager::SLIDER,
925
+ 'size_units' => ['px', '%' ,'em'],
 
 
 
926
  'selectors' => [
927
+ '{{WRAPPER}} .premium-blog-thumbnail-overlay a' => 'border-radius: {{SIZE}}{{UNIT}};'
928
+ ]
929
+ ]
930
+ );
931
+
932
+ $this->add_responsive_control('premium_blog_format_padding',
933
+ [
934
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
935
+ 'type' => Controls_Manager::DIMENSIONS,
936
+ 'size_units' => ['px', 'em', '%'],
937
+ 'selectors' => [
938
+ '{{WRAPPER}} .premium-blog-thumbnail-overlay a' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
939
+ ],
940
+ 'condition' => [
941
+ 'premium_blog_skin' => 'classic'
942
  ]
943
  ]
944
  );
945
 
946
  $this->end_controls_section();
947
 
948
+ $this->start_controls_section('premium_blog_title_style_section',
949
  [
950
+ 'label' => __('Title', 'premium-addons-for-elementor'),
951
  'tab' => Controls_Manager::TAB_STYLE,
952
  ]
953
  );
954
 
955
+ $this->add_group_control(
956
+ Group_Control_Typography::get_type(),
957
+ [
958
+ 'name' => 'premium_blog_title_typo',
959
+ 'selector' => '{{WRAPPER}} .premium-blog-entry-title',
960
+ ]
961
+ );
962
+
963
+ $this->add_control('premium_blog_title_color',
964
  [
965
  'label' => __('Color', 'premium-addons-for-elementor'),
966
  'type' => Controls_Manager::COLOR,
969
  'value' => Scheme_Color::COLOR_2,
970
  ],
971
  'selectors' => [
972
+ '{{WRAPPER}} .premium-blog-entry-title a' => 'color: {{VALUE}};',
973
  ]
974
  ]
975
  );
976
 
977
+ $this->add_control('premium_blog_title_hover_color',
 
 
 
 
 
 
 
 
978
  [
979
  'label' => __('Hover Color', 'premium-addons-for-elementor'),
980
  'type' => Controls_Manager::COLOR,
983
  'value' => Scheme_Color::COLOR_1,
984
  ],
985
  'selectors' => [
986
+ '{{WRAPPER}} .premium-blog-entry-title:hover a' => 'color: {{VALUE}};',
987
  ]
988
  ]
989
  );
990
 
991
  $this->end_controls_section();
992
 
993
+ $this->start_controls_section('premium_blog_meta_style_section',
994
  [
995
+ 'label' => __('Meta', 'premium-addons-for-elementor'),
996
  'tab' => Controls_Manager::TAB_STYLE,
 
 
 
997
  ]
998
  );
999
 
1000
+ $this->add_group_control(
1001
+ Group_Control_Typography::get_type(),
1002
  [
1003
+ 'name' => 'premium_blog_meta_typo',
1004
+ 'selector' => '{{WRAPPER}} .premium-blog-entry-meta a',
 
 
 
 
 
 
 
 
 
 
 
 
1005
  ]
1006
  );
1007
 
1008
+ $this->add_control('premium_blog_meta_color',
1009
  [
1010
  'label' => __('Color', 'premium-addons-for-elementor'),
1011
  'type' => Controls_Manager::COLOR,
1014
  'value' => Scheme_Color::COLOR_2,
1015
  ],
1016
  'selectors' => [
1017
+ '{{WRAPPER}} .premium-blog-entry-meta, {{WRAPPER}} .premium-blog-entry-meta a' => 'color: {{VALUE}};',
1018
  ]
1019
  ]
1020
  );
1021
+
1022
+ $this->add_control('premium_blog_meta_hover_color',
1023
  [
1024
  'label' => __('Hover Color', 'premium-addons-for-elementor'),
1025
  'type' => Controls_Manager::COLOR,
1028
  'value' => Scheme_Color::COLOR_1,
1029
  ],
1030
  'selectors' => [
1031
+ '{{WRAPPER}} .premium-blog-entry-meta a:hover' => 'color: {{VALUE}};',
1032
  ]
1033
  ]
1034
  );
1035
+
1036
+ $this->end_controls_section();
1037
+
1038
+ $this->start_controls_section('premium_blog_tags_style_section',
1039
  [
1040
+ 'label' => __('Tags', 'premium-addons-for-elementor'),
1041
+ 'tab' => Controls_Manager::TAB_STYLE,
1042
+ ]
1043
+ );
1044
+
1045
+ $this->add_group_control(
1046
+ Group_Control_Typography::get_type(),
1047
+ [
1048
+ 'name' => 'premium_blog_tags_typo',
1049
+ 'selector' => '{{WRAPPER}} .premium-blog-post-tags-container a',
1050
+ ]
1051
+ );
1052
+
1053
+ $this->add_control('premium_blog_tags_color',
1054
+ [
1055
+ 'label' => __('Color', 'premium-addons-for-elementor'),
1056
  'type' => Controls_Manager::COLOR,
1057
  'scheme' => [
1058
  'type' => Scheme_Color::get_type(),
1059
+ 'value' => Scheme_Color::COLOR_2,
1060
  ],
1061
  'selectors' => [
1062
+ '{{WRAPPER}} .premium-blog-post-tags-container, {{WRAPPER}} .premium-blog-post-tags-container a' => 'color: {{VALUE}};',
1063
  ]
1064
  ]
1065
  );
1066
 
1067
+ $this->add_control('premium_blog_tags_hoer_color',
1068
  [
1069
+ 'label' => __('Hover Color', 'premium-addons-for-elementor'),
1070
  'type' => Controls_Manager::COLOR,
1071
  'scheme' => [
1072
  'type' => Scheme_Color::get_type(),
1073
+ 'value' => Scheme_Color::COLOR_1,
1074
  ],
1075
  'selectors' => [
1076
+ '{{WRAPPER}} .premium-blog-post-tags-container a:hover' => 'color: {{VALUE}};',
1077
  ]
1078
  ]
1079
  );
1082
 
1083
  $this->start_controls_section('premium_blog_content_style_section',
1084
  [
1085
+ 'label' => __('Content Box', 'premium-addons-for-elementor'),
1086
  'tab' => Controls_Manager::TAB_STYLE,
1087
  ]
1088
  );
1089
 
1090
+ $this->add_group_control(
1091
+ Group_Control_Typography::get_type(),
1092
+ [
1093
+ 'name' => 'premium_blog_content_typo',
1094
+ 'selector' => '{{WRAPPER}} .premium-blog-post-content',
1095
+ ]
1096
+ );
1097
+
1098
  $this->add_control('premium_blog_post_content_color',
1099
  [
1100
  'label' => __('Text Color', 'premium-addons-for-elementor'),
1109
  ]
1110
  );
1111
 
 
 
 
 
 
 
 
 
1112
  $this->add_control('premium_blog_box_background_color',
1113
  [
1114
  'label' => __('Background Color', 'premium-addons-for-elementor'),
1140
 
1141
  $this->add_responsive_control('prmeium_blog_box_padding',
1142
  [
1143
+ 'label' => __('Spacing Between Posts', 'premium-addons-for-elementor'),
1144
  'type' => Controls_Manager::DIMENSIONS,
1145
  'size_units' => ['px', 'em', '%'],
1146
  'selectors' => [
1689
  <span class="premium-blog-post-author premium-blog-meta-data"><i class="fa fa-user fa-fw"></i><?php the_author_posts_link();?></span>
1690
  <?php endif; ?>
1691
  <?php if( $settings['premium_blog_date_meta'] === 'yes' ) : ?>
1692
+ <span class="premium-blog-meta-separator">|</span>
1693
  <span class="premium-blog-post-time premium-blog-meta-data"><i class="fa fa-calendar fa-fw"></i><a href="<?php the_permalink(); ?>" target="<?php echo esc_attr($link_target); ?>"><?php the_time($date_format); ?></a></span>
1694
  <?php endif; ?>
1695
  <?php if( $settings['premium_blog_categories_meta'] === 'yes' ) : ?>
1696
+ <span class="premium-blog-meta-separator">|</span>
1697
  <span class="premium-blog-post-categories premium-blog-meta-data"><i class="fa fa-align-left fa-fw"></i><?php the_category(', '); ?></span>
1698
  <?php endif; ?>
1699
  <?php if( $settings['premium_blog_comments_meta'] === 'yes' ) : ?>
1700
+ <span class="premium-blog-meta-separator">|</span>
1701
+ <span class="premium-blog-post-comments premium-blog-meta-data"><i class="fa fa-comments-o fa-fw"></i><a href="<?php the_permalink(); ?>" target="<?php echo esc_attr( $link_target ); ?>"><?php comments_number('No Comments', '1', '%'); ?> </a></span>
1702
  <?php endif; ?>
1703
  </div>
1704
 
1705
  <?php
1706
  }
1707
+
1708
+ /*
1709
+ * Get Post Thumbnail
1710
+ *
1711
+ *
1712
+ * Renders HTML markup for post thumbnail
1713
+ *
1714
+ * @since 3.0.5
1715
+ * @access protected
1716
+ *
1717
+ * @param $target string link target
1718
+ */
1719
+ protected function get_post_thumbnail( $target ) {
1720
+
1721
+ $settings = $this->get_settings_for_display();
1722
+
1723
+ $skin = $settings['premium_blog_skin'];
1724
+
1725
+ if( 'classic' !== $skin ): ?>
1726
+ <a href="<?php the_permalink(); ?>" target="<?php echo esc_attr( $target ); ?>">
1727
+ <?php endif;
1728
+ the_post_thumbnail( 'full' );
1729
+ if( 'classic' !== $skin ): ?>
1730
+ </a>
1731
+ <?php endif;
1732
+ }
1733
 
1734
  /*
1735
  * Renders post skin
1767
 
1768
  $this->add_render_attribute( $wrap_key, 'class', [
1769
  'premium-blog-post-container',
1770
+ 'premium-blog-skin-' . $skin,
1771
  ] );
1772
 
1773
  $thumb = ( ! has_post_thumbnail() ) ? 'empty-thumb' : '';
1795
  <div <?php echo $this->get_render_attribute_string( $wrap_key ); ?>>
1796
  <div class="premium-blog-thumb-effect-wrapper">
1797
  <div class="premium-blog-thumbnail-container <?php echo 'premium-blog-' . $image_effect . '-effect';?>">
1798
+ <?php $this->get_post_thumbnail(); ?>
 
 
 
 
 
 
 
 
1799
  </div>
1800
+ <?php if( 'classic' !== $skin ): ?>
1801
+ <div class="premium-blog-effect-container <?php echo 'premium-blog-'. $post_effect . '-effect'; ?>">
1802
+ <a class="premium-blog-post-link" href="<?php the_permalink(); ?>" target="<?php echo esc_attr( $target ); ?>"></a>
1803
+ <?php if( $settings['premium_blog_hover_color_effect'] === 'bordered' ) : ?>
1804
+ <div class="premium-blog-bordered-border-container"></div>
1805
+ <?php elseif( $settings['premium_blog_hover_color_effect'] === 'squares' ) : ?>
1806
+ <div class="premium-blog-squares-square-container"></div>
1807
+ <?php endif; ?>
1808
+ </div>
1809
+ <?php else: ?>
1810
+ <div class="premium-blog-thumbnail-overlay">
1811
+ <a class="elementor-icon" href="<?php the_permalink(); ?>" target="<?php echo esc_attr( $target ); ?>">
1812
+ <?php echo $this->get_post_format_icon(); ?>
1813
+ </a>
1814
+ </div>
1815
+ <?php endif; ?>
1816
  </div>
1817
  <?php if( 'cards' === $skin ) : ?>
1818
  <div class="premium-blog-author-thumbnail">
1829
  <div class="premium-blog-entry-container">
1830
  <?php
1831
  $this->get_post_title( $target );
1832
+ if ( 'cards' !== $skin ) {
1833
  $this->get_post_meta( $target );
1834
  }
1835
 
widgets/premium-person.php CHANGED
@@ -12,6 +12,7 @@ use Elementor\Scheme_Typography;
12
  use Elementor\Group_Control_Image_Size;
13
  use Elementor\Group_Control_Typography;
14
  use Elementor\Group_Control_Css_Filter;
 
15
  use Elementor\Group_Control_Text_Shadow;
16
  use Elementor\Group_Control_Border;
17
 
@@ -47,12 +48,24 @@ class Premium_Person extends Widget_Base {
47
 
48
  /*Start Premium Person Section*/
49
  $this->start_controls_section('premium_person_general_settings',
50
- [
51
- 'label' => __('Image', 'premium-addons-for-elementor')
52
- ]
53
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
54
 
55
- /*Person Image*/
56
  $this->add_control('premium_person_image',
57
  [
58
  'label' => __('Image', 'premium-addons-for-elementor'),
@@ -199,21 +212,21 @@ class Premium_Person extends Widget_Base {
199
 
200
  /*Title Tag*/
201
  $this->add_control('premium_person_title_heading',
202
- [
203
- 'label' => __('HTML Tag', 'premium-addons-for-elementor'),
204
- 'type' => Controls_Manager::SELECT,
205
- 'default' => 'h4',
206
- 'options' => [
207
- 'h1' => 'H1',
208
- 'h2' => 'H2',
209
- 'h3' => 'H3',
210
- 'h4' => 'H4',
211
- 'h5' => 'H5',
212
- 'h6' => 'H6'
213
- ],
214
- 'label_block' => true,
215
- ]
216
- );
217
 
218
  $this->add_control('premium_person_content',
219
  [
@@ -448,6 +461,17 @@ class Premium_Person extends Widget_Base {
448
  ]
449
  );
450
 
 
 
 
 
 
 
 
 
 
 
 
451
  /*End Image Style Section*/
452
  $this->end_controls_section();
453
 
@@ -630,17 +654,28 @@ class Premium_Person extends Widget_Base {
630
  'label' => __('Background Color', 'premium-addons-for-elementor'),
631
  'type' => Controls_Manager::COLOR,
632
  'selectors' => [
633
- '{{WRAPPER}} .premium-person-list-item i' => 'background-color: {{VALUE}}',
634
  ]
635
  ]
636
  );
637
 
 
 
 
 
 
 
 
 
638
  $this->add_control('premium_person_social_hover_background',
639
  [
640
  'label' => __('Hover Background Color', 'premium-addons-for-elementor'),
641
  'type' => Controls_Manager::COLOR,
642
  'selectors' => [
643
- '{{WRAPPER}} .premium-person-list-item:hover i' => 'background-color: {{VALUE}}',
 
 
 
644
  ]
645
  ]
646
  );
@@ -649,7 +684,7 @@ class Premium_Person extends Widget_Base {
649
  Group_Control_Border::get_type(),
650
  [
651
  'name' => 'premium_person_social_border',
652
- 'selector' => '{{WRAPPER}} .premium-person-list-item i',
653
  ]
654
  );
655
 
@@ -659,7 +694,7 @@ class Premium_Person extends Widget_Base {
659
  'type' => Controls_Manager::DIMENSIONS,
660
  'size_units' => ['px', 'em', '%'],
661
  'selectors' => [
662
- '{{WRAPPER}} .premium-person-list-item i' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}'
663
  ]
664
  ]
665
  );
@@ -670,7 +705,7 @@ class Premium_Person extends Widget_Base {
670
  'type' => Controls_Manager::DIMENSIONS,
671
  'size_units' => ['px', 'em', '%'],
672
  'selectors' => [
673
- '{{WRAPPER}} .premium-person-list-item i' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
674
  ]
675
  ]
676
  );
@@ -681,7 +716,7 @@ class Premium_Person extends Widget_Base {
681
  'type' => Controls_Manager::DIMENSIONS,
682
  'size_units' => ['px', 'em', '%'],
683
  'selectors' => [
684
- '{{WRAPPER}} .premium-person-list-item i' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
685
  ]
686
  ]
687
  );
@@ -749,13 +784,32 @@ class Premium_Person extends Widget_Base {
749
  ]
750
  );
751
 
 
 
 
 
 
 
 
 
 
 
 
752
  /*End Content Style Section*/
753
  $this->end_controls_section();
754
 
755
  }
756
 
 
 
 
 
 
 
 
 
757
  protected function render() {
758
- // get our input from the widget settings.
759
  $settings = $this->get_settings_for_display();
760
 
761
  $this->add_inline_editing_attributes('name');
@@ -778,12 +832,23 @@ class Premium_Person extends Widget_Base {
778
 
779
  $image_html = Group_Control_Image_Size::get_attachment_image_html( $settings, 'thumbnail', 'premium_person_image' );
780
  }
 
 
 
 
 
 
781
 
782
  ?>
783
 
784
- <div class="premium-person-container <?php echo 'premium-person-' . $image_effect . '-effect' ?>">
785
  <div class="premium-person-image-container">
786
- <?php echo $image_html; ?>
 
 
 
 
 
787
  </div>
788
  <div class="premium-person-info">
789
  <div class="premium-person-info-container">
@@ -796,28 +861,77 @@ class Premium_Person extends Widget_Base {
796
  </div>
797
  </div>
798
  <?php endif;
799
- if( 'yes' === $settings['premium_person_social_enable'] ) : ?>
800
- <ul class="premium-person-social-list">
801
- <?php if( !empty( $settings['premium_person_facebook'] ) ) : ?><li class="premium-person-list-item premium-person-facebook"><a href="<?php echo $settings['premium_person_facebook']; ?>" target="_blank"><i class="fab fa-facebook-f"></i></a></li><?php endif; ?>
802
- <?php if( !empty( $settings['premium_person_twitter'] ) ) : ?><li class="premium-person-list-item premium-person-twitter"><a href="<?php echo $settings['premium_person_twitter']; ?>" target="_blank"><i class="fab fa-twitter"></i></a></li><?php endif; ?>
803
- <?php if( !empty( $settings['premium_person_linkedin'] ) ) : ?><li class="premium-person-list-item premium-person-linkedin"><a href="<?php echo $settings['premium_person_linkedin']; ?>" target="_blank"><i class="fab fa-linkedin"></i></a></li><?php endif; ?>
804
- <?php if( !empty( $settings['premium_person_google'] ) ) : ?><li class="premium-person-list-item premium-person-google"><a href="<?php echo $settings['premium_person_google']; ?>" target="_blank"><i class="fab fa-google-plus-g"></i></a></li><?php endif; ?>
805
- <?php if( !empty( $settings['premium_person_youtube'] ) ) : ?><li class="premium-person-list-item premium-person-youtube"><a href="<?php echo $settings['premium_person_youtube']; ?>" target="_blank"><i class="fab fa-youtube"></i></a></li><?php endif; ?>
806
-
807
- <?php if( !empty( $settings['premium_person_instagram'] ) ) : ?><li class="premium-person-list-item premium-person-instagram"><a href="<?php echo $settings['premium_person_instagram']; ?>" target="_blank"><i class="fab fa-instagram"></i></a></li><?php endif; ?>
808
- <?php if( !empty( $settings['premium_person_skype'] ) ) : ?><li class="premium-person-list-item premium-person-skype"><a href="<?php echo $settings['premium_person_skype']; ?>" target="_blank"><i class="fab fa-skype"></i></a></li><?php endif; ?>
809
- <?php if( !empty( $settings['premium_person_pinterest'] ) ) : ?><li class="premium-person-list-item premium-person-pinterest"><a href="<?php echo $settings['premium_person_pinterest']; ?>" target="_blank"><i class="fab fa-pinterest"></i></a></li><?php endif; ?>
810
- <?php if( !empty( $settings['premium_person_dribbble'] ) ) : ?><li class="premium-person-list-item premium-person-dribbble"><a href="<?php echo $settings['premium_person_dribbble']; ?>" target="_blank"><i class="fab fa-dribbble"></i></a></li><?php endif; ?>
811
- <?php if( !empty( $settings['premium_person_behance'] ) ) : ?><li class="premium-person-list-item premium-person-behance"><a href="<?php echo $settings['premium_person_behance']; ?>" target="_blank"><i class="fab fa-behance"></i></a></li><?php endif; ?>
812
- <?php if( !empty( $settings['premium_person_mail'] ) ) : ?><li class="premium-person-list-item premium-person-mail"><a href="<?php echo $settings['premium_person_mail']; ?>" target="_blank"><i class="far fa-envelope"></i></a></li><?php endif; ?>
813
- </ul>
814
- <?php endif; ?>
815
  </div>
816
  </div>
817
  </div>
818
  <?php
819
  }
820
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
821
  protected function _content_template() {
822
  ?>
823
  <#
@@ -834,7 +948,9 @@ class Premium_Person extends Widget_Base {
834
 
835
  imageEffect = 'premium-person-' + settings.premium_person_hover_image_effect + '-effect' ;
836
 
837
- view.addRenderAttribute('container', 'class', [ 'premium-person-container', imageEffect ] );
 
 
838
 
839
  var imageHtml = '';
840
  if ( settings.premium_person_image.url ) {
@@ -852,11 +968,65 @@ class Premium_Person extends Widget_Base {
852
 
853
  }
854
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
855
  #>
856
 
857
  <div {{{ view.getRenderAttributeString('container') }}} >
858
  <div class="premium-person-image-container">
859
  {{{imageHtml}}}
 
 
 
 
 
860
  </div>
861
  <div class="premium-person-info">
862
  <div class="premium-person-info-container">
@@ -879,54 +1049,9 @@ class Premium_Person extends Widget_Base {
879
  </div>
880
  </div>
881
  <# }
882
- if ( 'yes' === settings.premium_person_social_enable ) { #>
883
- <ul class="premium-person-social-list">
884
- <# if( '' != settings.premium_person_facebook ) { #>
885
- <li class="premium-person-list-item premium-person-facebook"><a href="{{ settings.premium_person_facebook }}" target="_blank"><i class="fab fa-facebook-f"></i></a></li>
886
- <# } #>
887
-
888
- <# if( '' != settings.premium_person_twitter ) { #>
889
- <li class="premium-person-list-item premium-person-twitter"><a href="{{ settings.premium_person_twitter }}" target="_blank"><i class="fab fa-twitter"></i></a></li>
890
- <# } #>
891
-
892
- <# if( '' != settings.premium_person_linkedin ) { #>
893
- <li class="premium-person-list-item premium-person-linkedin"><a href="{{ settings.premium_person_linkedin }}" target="_blank"><i class="fab fa-linkedin"></i></a></li>
894
- <# } #>
895
-
896
- <# if( '' != settings.premium_person_google ) { #>
897
- <li class="premium-person-list-item premium-person-google"><a href="{{ settings.premium_person_google }}" target="_blank"><i class="fab fa-google-plus-g"></i></a></li>
898
- <# } #>
899
-
900
- <# if( '' != settings.premium_person_youtube ) { #>
901
- <li class="premium-person-list-item premium-person-youtube"><a href="{{ settings.premium_person_youtube }}" target="_blank"><i class="fab fa-youtube"></i></a></li>
902
- <# } #>
903
-
904
- <# if( '' != settings.premium_person_instagram ) { #>
905
- <li class="premium-person-list-item premium-person-instagram"><a href="{{ settings.premium_person_instagram }}" target="_blank"><i class="fab fa-instagram"></i></a></li>
906
- <# } #>
907
-
908
- <# if( '' != settings.premium_person_skype) { #>
909
- <li class="premium-person-list-item premium-person-skype"><a href="{{ settings.premium_person_skype }}" target="_blank"><i class="fab fa-skype"></i></a></li>
910
- <# } #>
911
-
912
- <# if( '' != settings.premium_person_pinterest ) { #>
913
- <li class="premium-person-list-item premium-person-pinterest"><a href="{{ settings.premium_person_pinterest }}" target="_blank"><i class="fab fa-pinterest"></i></a></li>
914
- <# } #>
915
-
916
- <# if( '' != settings.premium_person_dribbble ) { #>
917
- <li class="premium-person-list-item premium-person-dribbble"><a href="{{ settings.premium_person_dribbble }}" target="_blank"><i class="fab fa-dribbble"></i></a></li>
918
- <# } #>
919
-
920
- <# if( '' != settings.premium_person_behance ) { #>
921
- <li class="premium-person-list-item premium-person-behance"><a href="{{ settings.premium_person_behance }}" target="_blank"><i class="fab fa-behance"></i></a></li>
922
- <# } #>
923
-
924
- <# if( '' != settings.premium_person_mail ) { #>
925
- <li class="premium-person-list-item premium-person-mail"><a href="{{ settings.premium_person_mail }}" target="_blank"><i class="far fa-envelope"></i></a></li>
926
- <# } #>
927
-
928
- </ul>
929
- <# } #>
930
  </div>
931
  </div>
932
  </div>
12
  use Elementor\Group_Control_Image_Size;
13
  use Elementor\Group_Control_Typography;
14
  use Elementor\Group_Control_Css_Filter;
15
+ use Elementor\Group_Control_Box_Shadow;
16
  use Elementor\Group_Control_Text_Shadow;
17
  use Elementor\Group_Control_Border;
18
 
48
 
49
  /*Start Premium Person Section*/
50
  $this->start_controls_section('premium_person_general_settings',
51
+ [
52
+ 'label' => __('Image', 'premium-addons-for-elementor')
53
+ ]
54
+ );
55
+
56
+ $this->add_control('premium_person_style',
57
+ [
58
+ 'label' => __('Style', 'premium-addons-for-elementor'),
59
+ 'type' => Controls_Manager::SELECT,
60
+ 'default' => 'style1',
61
+ 'options' => [
62
+ 'style1' => __('Style 1', 'premium-addons-for-elementor'),
63
+ 'style2' => __('Style 2', 'premium-addons-for-elementor')
64
+ ],
65
+ 'label_block' => true,
66
+ ]
67
+ );
68
 
 
69
  $this->add_control('premium_person_image',
70
  [
71
  'label' => __('Image', 'premium-addons-for-elementor'),
212
 
213
  /*Title Tag*/
214
  $this->add_control('premium_person_title_heading',
215
+ [
216
+ 'label' => __('HTML Tag', 'premium-addons-for-elementor'),
217
+ 'type' => Controls_Manager::SELECT,
218
+ 'default' => 'h4',
219
+ 'options' => [
220
+ 'h1' => 'H1',
221
+ 'h2' => 'H2',
222
+ 'h3' => 'H3',
223
+ 'h4' => 'H4',
224
+ 'h5' => 'H5',
225
+ 'h6' => 'H6'
226
+ ],
227
+ 'label_block' => true,
228
+ ]
229
+ );
230
 
231
  $this->add_control('premium_person_content',
232
  [
461
  ]
462
  );
463
 
464
+ $this->add_group_control(
465
+ Group_Control_Box_Shadow::get_type(),
466
+ [
467
+ 'name' => 'premium_person_shadow',
468
+ 'selector' => '{{WRAPPER}} .premium-person-social',
469
+ 'condition' => [
470
+ 'premium_person_style' => 'style2'
471
+ ]
472
+ ]
473
+ );
474
+
475
  /*End Image Style Section*/
476
  $this->end_controls_section();
477
 
654
  'label' => __('Background Color', 'premium-addons-for-elementor'),
655
  'type' => Controls_Manager::COLOR,
656
  'selectors' => [
657
+ '{{WRAPPER}} .premium-person-list-item a' => 'background-color: {{VALUE}}',
658
  ]
659
  ]
660
  );
661
 
662
+ $this->add_control('premium_person_social_default_colors',
663
+ [
664
+ 'label' => __( 'Brands Default Colors', 'premium-addons-for-elementor' ),
665
+ 'type' => Controls_Manager::SWITCHER,
666
+ 'prefix_class' => 'premium-person-defaults-'
667
+ ]
668
+ );
669
+
670
  $this->add_control('premium_person_social_hover_background',
671
  [
672
  'label' => __('Hover Background Color', 'premium-addons-for-elementor'),
673
  'type' => Controls_Manager::COLOR,
674
  'selectors' => [
675
+ '{{WRAPPER}} li.premium-person-list-item:hover a' => 'background-color: {{VALUE}}',
676
+ ],
677
+ 'condition' => [
678
+ 'premium_person_social_default_colors!' => 'yes'
679
  ]
680
  ]
681
  );
684
  Group_Control_Border::get_type(),
685
  [
686
  'name' => 'premium_person_social_border',
687
+ 'selector' => '{{WRAPPER}} .premium-person-list-item a',
688
  ]
689
  );
690
 
694
  'type' => Controls_Manager::DIMENSIONS,
695
  'size_units' => ['px', 'em', '%'],
696
  'selectors' => [
697
+ '{{WRAPPER}} .premium-person-list-item a' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}'
698
  ]
699
  ]
700
  );
705
  'type' => Controls_Manager::DIMENSIONS,
706
  'size_units' => ['px', 'em', '%'],
707
  'selectors' => [
708
+ '{{WRAPPER}} .premium-person-list-item a' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
709
  ]
710
  ]
711
  );
716
  'type' => Controls_Manager::DIMENSIONS,
717
  'size_units' => ['px', 'em', '%'],
718
  'selectors' => [
719
+ '{{WRAPPER}} .premium-person-list-item a' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
720
  ]
721
  ]
722
  );
784
  ]
785
  );
786
 
787
+ $this->add_responsive_control('premium_person_content_padding',
788
+ [
789
+ 'label' => __('Padding', 'premium-addons-pro'),
790
+ 'type' => Controls_Manager::DIMENSIONS,
791
+ 'size_units' => ['px', 'em', '%'],
792
+ 'selectors' => [
793
+ '{{WRAPPER}} .premium-person-info-container' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
794
+ ]
795
+ ]
796
+ );
797
+
798
  /*End Content Style Section*/
799
  $this->end_controls_section();
800
 
801
  }
802
 
803
+ /**
804
+ * Render Grid output on the frontend.
805
+ *
806
+ * Written in PHP and used to generate the final HTML.
807
+ *
808
+ * @since 1.0.0
809
+ * @access protected
810
+ */
811
  protected function render() {
812
+
813
  $settings = $this->get_settings_for_display();
814
 
815
  $this->add_inline_editing_attributes('name');
832
 
833
  $image_html = Group_Control_Image_Size::get_attachment_image_html( $settings, 'thumbnail', 'premium_person_image' );
834
  }
835
+
836
+ $this->add_render_attribute( 'container', 'class', [
837
+ 'premium-person-container',
838
+ 'premium-person-' . $image_effect . '-effect',
839
+ 'premium-person-' . $settings['premium_person_style']
840
+ ]);
841
 
842
  ?>
843
 
844
+ <div <?php echo $this->get_render_attribute_string( 'container' ) ?>>
845
  <div class="premium-person-image-container">
846
+ <?php echo $image_html;
847
+ if( 'style2' === $settings['premium_person_style'] && 'yes' === $settings['premium_person_social_enable'] ) : ?>
848
+ <div class="premium-person-social">
849
+ <?php $this->get_social_icons(); ?>
850
+ </div>
851
+ <?php endif; ?>
852
  </div>
853
  <div class="premium-person-info">
854
  <div class="premium-person-info-container">
861
  </div>
862
  </div>
863
  <?php endif;
864
+ if( 'style1' === $settings['premium_person_style'] && 'yes' === $settings['premium_person_social_enable'] ) :
865
+ $this->get_social_icons();
866
+ endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
867
  </div>
868
  </div>
869
  </div>
870
  <?php
871
  }
872
 
873
+ /*
874
+ * Get Social Icons
875
+ *
876
+ * Render person social icons list
877
+ *
878
+ * @since 3.8.4
879
+ * @access protected
880
+ *
881
+ */
882
+ private function get_social_icons() {
883
+
884
+ $settings = $this->get_settings_for_display();
885
+
886
+ ?>
887
+
888
+ <ul class="premium-person-social-list">
889
+ <?php if( ! empty( $settings['premium_person_facebook'] ) ) : ?>
890
+ <li class="elementor-icon premium-person-list-item premium-person-facebook"><a href="<?php echo $settings['premium_person_facebook']; ?>" target="_blank"><i class="fab fa-facebook-f"></i></a></li>
891
+ <?php endif;
892
+
893
+ if( ! empty( $settings['premium_person_twitter'] ) ) : ?>
894
+ <li class="elementor-icon premium-person-list-item premium-person-twitter"><a href="<?php echo $settings['premium_person_twitter']; ?>" target="_blank"><i class="fab fa-twitter"></i></a></li>
895
+ <?php endif;
896
+
897
+ if( ! empty( $settings['premium_person_linkedin'] ) ) : ?>
898
+ <li class="elementor-icon premium-person-list-item premium-person-linkedin"><a href="<?php echo $settings['premium_person_linkedin']; ?>" target="_blank"><i class="fab fa-linkedin"></i></a></li>
899
+ <?php endif;
900
+ if( ! empty( $settings['premium_person_google'] ) ) : ?>
901
+ <li class="elementor-icon premium-person-list-item premium-person-google"><a href="<?php echo $settings['premium_person_google']; ?>" target="_blank"><i class="fab fa-google-plus-g"></i></a></li>
902
+ <?php endif;
903
+
904
+ if( ! empty( $settings['premium_person_youtube'] ) ) : ?>
905
+ <li class="elementor-icon premium-person-list-item premium-person-youtube"><a href="<?php echo $settings['premium_person_youtube']; ?>" target="_blank"><i class="fab fa-youtube"></i></a></li>
906
+ <?php endif;
907
+
908
+ if( ! empty( $settings['premium_person_instagram'] ) ) : ?>
909
+ <li class="elementor-icon premium-person-list-item premium-person-instagram"><a href="<?php echo $settings['premium_person_instagram']; ?>" target="_blank"><i class="fab fa-instagram"></i></a></li>
910
+ <?php endif;
911
+
912
+ if( ! empty( $settings['premium_person_skype'] ) ) : ?>
913
+ <li class="elementor-icon premium-person-list-item premium-person-skype"><a href="<?php echo $settings['premium_person_skype']; ?>" target="_blank"><i class="fab fa-skype"></i></a></li>
914
+ <?php endif;
915
+
916
+ if( ! empty( $settings['premium_person_pinterest'] ) ) : ?>
917
+ <li class="elementor-icon premium-person-list-item premium-person-pinterest"><a href="<?php echo $settings['premium_person_pinterest']; ?>" target="_blank"><i class="fab fa-pinterest"></i></a></li>
918
+ <?php endif;
919
+
920
+ if( ! empty( $settings['premium_person_dribbble'] ) ) : ?>
921
+ <li class="elementor-icon premium-person-list-item premium-person-dribbble"><a href="<?php echo $settings['premium_person_dribbble']; ?>" target="_blank"><i class="fab fa-dribbble"></i></a></li>
922
+ <?php endif;
923
+
924
+ if( ! empty( $settings['premium_person_behance'] ) ) : ?>
925
+ <li class="elementor-icon premium-person-list-item premium-person-behance"><a href="<?php echo $settings['premium_person_behance']; ?>" target="_blank"><i class="fab fa-behance"></i></a></li>
926
+ <?php endif;
927
+
928
+ if( ! empty( $settings['premium_person_mail'] ) ) : ?>
929
+ <li class="premium-person-list-item premium-person-mail"><a class="elementor-icon" href="<?php echo $settings['premium_person_mail']; ?>" target="_blank"><i class="far fa-envelope"></i></a></li>
930
+ <?php endif; ?>
931
+ </ul>
932
+ <?php
933
+ }
934
+
935
  protected function _content_template() {
936
  ?>
937
  <#
948
 
949
  imageEffect = 'premium-person-' + settings.premium_person_hover_image_effect + '-effect' ;
950
 
951
+ skin = 'premium-person-' + settings.premium_person_style;
952
+
953
+ view.addRenderAttribute('container', 'class', [ 'premium-person-container', imageEffect, skin ] );
954
 
955
  var imageHtml = '';
956
  if ( settings.premium_person_image.url ) {
968
 
969
  }
970
 
971
+ function getSocialIcons() {
972
+ #>
973
+ <ul class="premium-person-social-list">
974
+ <# if( '' != settings.premium_person_facebook ) { #>
975
+ <li class="elementor-icon premium-person-list-item premium-person-facebook"><a href="{{ settings.premium_person_facebook }}" target="_blank"><i class="fab fa-facebook-f"></i></a></li>
976
+ <# } #>
977
+
978
+ <# if( '' != settings.premium_person_twitter ) { #>
979
+ <li class="elementor-icon premium-person-list-item premium-person-twitter"><a href="{{ settings.premium_person_twitter }}" target="_blank"><i class="fab fa-twitter"></i></a></li>
980
+ <# } #>
981
+
982
+ <# if( '' != settings.premium_person_linkedin ) { #>
983
+ <li class="elementor-icon premium-person-list-item premium-person-linkedin"><a href="{{ settings.premium_person_linkedin }}" target="_blank"><i class="fab fa-linkedin"></i></a></li>
984
+ <# } #>
985
+
986
+ <# if( '' != settings.premium_person_google ) { #>
987
+ <li class="elementor-icon premium-person-list-item premium-person-google"><a href="{{ settings.premium_person_google }}" target="_blank"><i class="fab fa-google-plus-g"></i></a></li>
988
+ <# } #>
989
+
990
+ <# if( '' != settings.premium_person_youtube ) { #>
991
+ <li class="elementor-icon premium-person-list-item premium-person-youtube"><a href="{{ settings.premium_person_youtube }}" target="_blank"><i class="fab fa-youtube"></i></a></li>
992
+ <# } #>
993
+
994
+ <# if( '' != settings.premium_person_instagram ) { #>
995
+ <li class="elementor-icon premium-person-list-item premium-person-instagram"><a href="{{ settings.premium_person_instagram }}" target="_blank"><i class="fab fa-instagram"></i></a></li>
996
+ <# } #>
997
+
998
+ <# if( '' != settings.premium_person_skype) { #>
999
+ <li class="elementor-icon premium-person-list-item premium-person-skype"><a href="{{ settings.premium_person_skype }}" target="_blank"><i class="fab fa-skype"></i></a></li>
1000
+ <# } #>
1001
+
1002
+ <# if( '' != settings.premium_person_pinterest ) { #>
1003
+ <li class="elementor-icon premium-person-list-item premium-person-pinterest"><a href="{{ settings.premium_person_pinterest }}" target="_blank"><i class="fab fa-pinterest"></i></a></li>
1004
+ <# } #>
1005
+
1006
+ <# if( '' != settings.premium_person_dribbble ) { #>
1007
+ <li class="elementor-icon premium-person-list-item premium-person-dribbble"><a href="{{ settings.premium_person_dribbble }}" target="_blank"><i class="fab fa-dribbble"></i></a></li>
1008
+ <# } #>
1009
+
1010
+ <# if( '' != settings.premium_person_behance ) { #>
1011
+ <li class="elementor-icon premium-person-list-item premium-person-behance"><a href="{{ settings.premium_person_behance }}" target="_blank"><i class="fab fa-behance"></i></a></li>
1012
+ <# } #>
1013
+
1014
+ <# if( '' != settings.premium_person_mail ) { #>
1015
+ <li class="elementor-icon premium-person-list-item premium-person-mail"><a href="{{ settings.premium_person_mail }}" target="_blank"><i class="far fa-envelope"></i></a></li>
1016
+ <# } #>
1017
+
1018
+ </ul>
1019
+ <# }
1020
  #>
1021
 
1022
  <div {{{ view.getRenderAttributeString('container') }}} >
1023
  <div class="premium-person-image-container">
1024
  {{{imageHtml}}}
1025
+ <# if ( 'style2' === settings.premium_person_style && 'yes' === settings.premium_person_social_enable ) { #>
1026
+ <div class="premium-person-social">
1027
+ <# getSocialIcons(); #>
1028
+ </div>
1029
+ <# } #>
1030
  </div>
1031
  <div class="premium-person-info">
1032
  <div class="premium-person-info-container">
1049
  </div>
1050
  </div>
1051
  <# }
1052
+ if ( 'style1' === settings.premium_person_style && 'yes' === settings.premium_person_social_enable ) {
1053
+ getSocialIcons();
1054
+ } #>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1055
  </div>
1056
  </div>
1057
  </div>