Premium Addons for Elementor - Version 2.9.3

Version Description

  • Tweak: Unnecessary esc_html() function removed.
  • Tweak: Unnecessary conditions removed to enhance editor page loading speed.
Download this release

Release Info

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

Code changes from version 2.9.2 to 2.9.3

admin/settings/version-control.php CHANGED
@@ -79,7 +79,7 @@ class PA_Version_Control {
79
<tr class="pa-roll-row">
80
<th>Rollback Version</th>
81
<td>
82
- <div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 2.9.1</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ) ); ?> </div>
83
<p class="pa-roll-desc"><span>Warning: Please backup your database before making the rollback.</span></p>
84
</td>
85
</tr>
79
<tr class="pa-roll-row">
80
<th>Rollback Version</th>
81
<td>
82
+ <div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 2.9.2</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ) ); ?> </div>
83
<p class="pa-roll-desc"><span>Warning: Please backup your database before making the rollback.</span></p>
84
</td>
85
</tr>
includes/class-addons-integration.php CHANGED
@@ -125,51 +125,117 @@ class Premium_Addons_Integration {
125
* @access public
126
*/
127
public function premium_register_frontend_scripts() {
128
-
129
- $check_component_active = PA_admin_settings::get_enabled_keys();
130
- wp_register_script('waypoints-js', PREMIUM_ADDONS_URL . 'assets/js/lib/jquery.waypoints.js', array('jquery'), PREMIUM_ADDONS_VERSION, true);
131
-
132
- wp_register_script('premium-addons-js', PREMIUM_ADDONS_URL . 'assets/js/premium-addons.js', array('jquery'), PREMIUM_ADDONS_VERSION, true);
133
134
- if ( $check_component_active['premium-counter'] ) {
135
- wp_register_script('counter-up-js', PREMIUM_ADDONS_URL . 'assets/js/lib/countUpmin.js', array('jquery'), PREMIUM_ADDONS_VERSION, true);
136
- }
137
138
- if ( $check_component_active['premium-grid'] ) {
139
- wp_register_script('isotope-js', PREMIUM_ADDONS_URL . 'assets/js/lib/isotope.js', array('jquery'), PREMIUM_ADDONS_VERSION, true);
140
- wp_register_script('prettyPhoto-js', PREMIUM_ADDONS_URL . 'assets/js/lib/prettyPhoto.js', array('jquery'), PREMIUM_ADDONS_VERSION, true);
141
- }
142
143
- if ( $check_component_active['premium-fancytext'] ) {
144
- wp_register_script('vticker-js', PREMIUM_ADDONS_URL . 'assets/js/lib/Vticker.js', array('jquery'), PREMIUM_ADDONS_VERSION, true);
145
- wp_register_script('typed-js', PREMIUM_ADDONS_URL . 'assets/js/lib/typedmin.js', array('jquery'), PREMIUM_ADDONS_VERSION, true);
146
- }
147
148
- if ( $check_component_active['premium-countdown'] ) {
149
- wp_register_script('count-down-timer-js', PREMIUM_ADDONS_URL . 'assets/js/lib/jquerycountdown.js', array('jquery'), PREMIUM_ADDONS_VERSION, true);
150
- }
151
152
- if ( $check_component_active['premium-carousel'] ) {
153
- wp_register_script('slick-carousel-js', PREMIUM_ADDONS_URL . 'assets/js/lib/slickmin.js', array('jquery'), PREMIUM_ADDONS_VERSION, true);
154
- }
155
-
156
- if ( $check_component_active['premium-blog'] ) {
157
- wp_register_script('isotope-js', PREMIUM_ADDONS_URL . 'assets/js/lib/isotope.js', array('jquery'), PREMIUM_ADDONS_VERSION, true);
158
- }
159
160
- if ( $check_component_active['premium-modalbox'] ) {
161
- wp_register_script('modal-js', PREMIUM_ADDONS_URL . 'assets/js/lib/modal.js', array('jquery'), PREMIUM_ADDONS_VERSION, true);
162
- }
163
164
- if ( $check_component_active['premium-maps'] ) {
165
- wp_register_script('premium-maps-js', PREMIUM_ADDONS_URL . 'assets/js/premium-maps.js', array('jquery'), PREMIUM_ADDONS_VERSION, true);
166
- }
167
168
- if ( $check_component_active['premium-vscroll'] ) {
169
- wp_register_script( 'vscroll-js', PREMIUM_ADDONS_URL . 'assets/js/lib/jquery.visible.js', array('jquery'), PREMIUM_ADDONS_VERSION, true );
170
- wp_register_script( 'visible-js', PREMIUM_ADDONS_URL . 'assets/js/premium-vscroll.js', array('jquery'), PREMIUM_ADDONS_VERSION, true );
171
-
172
- }
173
174
}
175
125
* @access public
126
*/
127
public function premium_register_frontend_scripts() {
128
129
+ wp_register_script(
130
+ 'waypoints-js',
131
+ PREMIUM_ADDONS_URL . 'assets/js/lib/jquery.waypoints.js',
132
+ array('jquery'),
133
+ PREMIUM_ADDONS_VERSION,
134
+ true
135
+ );
136
137
+ wp_register_script(
138
+ 'premium-addons-js',
139
+ PREMIUM_ADDONS_URL . 'assets/js/premium-addons.js',
140
+ array('jquery'),
141
+ PREMIUM_ADDONS_VERSION,
142
+ true
143
+ );
144
145
+ wp_register_script(
146
+ 'counter-up-js',
147
+ PREMIUM_ADDONS_URL . 'assets/js/lib/countUpmin.js',
148
+ array('jquery'),
149
+ PREMIUM_ADDONS_VERSION,
150
+ true
151
+ );
152
153
+ wp_register_script(
154
+ 'isotope-js',
155
+ PREMIUM_ADDONS_URL . 'assets/js/lib/isotope.js',
156
+ array('jquery'),
157
+ PREMIUM_ADDONS_VERSION,
158
+ true
159
+ );
160
161
+ wp_register_script(
162
+ 'prettyPhoto-js',
163
+ PREMIUM_ADDONS_URL . 'assets/js/lib/prettyPhoto.js',
164
+ array('jquery'),
165
+ PREMIUM_ADDONS_VERSION,
166
+ true
167
+ );
168
169
+ wp_register_script(
170
+ 'vticker-js',
171
+ PREMIUM_ADDONS_URL . 'assets/js/lib/Vticker.js',
172
+ array('jquery'),
173
+ PREMIUM_ADDONS_VERSION,
174
+ true
175
+ );
176
+ wp_register_script(
177
+ 'typed-js',
178
+ PREMIUM_ADDONS_URL . 'assets/js/lib/typedmin.js',
179
+ array('jquery'),
180
+ PREMIUM_ADDONS_VERSION,
181
+ true
182
+ );
183
184
+ wp_register_script(
185
+ 'count-down-timer-js',
186
+ PREMIUM_ADDONS_URL . 'assets/js/lib/jquerycountdown.js',
187
+ array('jquery'),
188
+ PREMIUM_ADDONS_VERSION,
189
+ true
190
+ );
191
192
+ wp_register_script(
193
+ 'slick-carousel-js',
194
+ PREMIUM_ADDONS_URL . 'assets/js/lib/slickmin.js',
195
+ array('jquery'),
196
+ PREMIUM_ADDONS_VERSION,
197
+ true
198
+ );
199
+
200
+ wp_register_script(
201
+ 'isotope-js',
202
+ PREMIUM_ADDONS_URL . 'assets/js/lib/isotope.js',
203
+ array('jquery'),
204
+ PREMIUM_ADDONS_VERSION,
205
+ true
206
+ );
207
+
208
+ wp_register_script(
209
+ 'modal-js',
210
+ PREMIUM_ADDONS_URL . 'assets/js/lib/modal.js',
211
+ array('jquery'),
212
+ PREMIUM_ADDONS_VERSION,
213
+ true
214
+ );
215
+
216
+ wp_register_script(
217
+ 'premium-maps-js',
218
+ PREMIUM_ADDONS_URL . 'assets/js/premium-maps.js',
219
+ array('jquery'),
220
+ PREMIUM_ADDONS_VERSION,
221
+ true
222
+ );
223
+
224
+ wp_register_script(
225
+ 'vscroll-js',
226
+ PREMIUM_ADDONS_URL . 'assets/js/lib/jquery.visible.js',
227
+ array('jquery'),
228
+ PREMIUM_ADDONS_VERSION,
229
+ true
230
+ );
231
+
232
+ wp_register_script(
233
+ 'visible-js',
234
+ PREMIUM_ADDONS_URL . 'assets/js/premium-vscroll.js',
235
+ array('jquery'),
236
+ PREMIUM_ADDONS_VERSION,
237
+ true
238
+ );
239
240
}
241
premium-addons-for-elementor.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: Premium Addons for Elementor
4
Description: Premium Addons Plugin Includes 21+ premium widgets for Elementor Page Builder.
5
Plugin URI: https://premiumaddons.com
6
- Version: 2.9.2
7
Author: Leap13
8
Author URI: http://leap13.com/
9
Text Domain: premium-addons-for-elementor
@@ -22,12 +22,12 @@ if (! function_exists('add_action')) {
22
if ( ! defined('ABSPATH') ) exit; // No access of directly access
23
24
25
- define('PREMIUM_ADDONS_VERSION', '2.9.2');
26
define('PREMIUM_ADDONS_URL', plugins_url('/', __FILE__));
27
define('PREMIUM_ADDONS_PATH', plugin_dir_path(__FILE__));
28
define('PREMIUM_ADDONS_FILE', __FILE__);
29
define('PREMIUM_ADDONS_BASENAME', plugin_basename(__FILE__));
30
- define('PREMIUM_ADDONS_STABLE_VERSION', '2.9.1');
31
32
if( ! class_exists('Premium_Addons_Elementor') ) {
33
/*
3
Plugin Name: Premium Addons for Elementor
4
Description: Premium Addons Plugin Includes 21+ premium widgets for Elementor Page Builder.
5
Plugin URI: https://premiumaddons.com
6
+ Version: 2.9.3
7
Author: Leap13
8
Author URI: http://leap13.com/
9
Text Domain: premium-addons-for-elementor
22
if ( ! defined('ABSPATH') ) exit; // No access of directly access
23
24
25
+ define('PREMIUM_ADDONS_VERSION', '2.9.3');
26
define('PREMIUM_ADDONS_URL', plugins_url('/', __FILE__));
27
define('PREMIUM_ADDONS_PATH', plugin_dir_path(__FILE__));
28
define('PREMIUM_ADDONS_FILE', __FILE__);
29
define('PREMIUM_ADDONS_BASENAME', plugin_basename(__FILE__));
30
+ define('PREMIUM_ADDONS_STABLE_VERSION', '2.9.2');
31
32
if( ! class_exists('Premium_Addons_Elementor') ) {
33
/*
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: leap13
3
Tags: Elementor, Elementor Page Builder, Elements, Elementor Addons, Add-ons, page builder
4
Donate link: http://premiumaddons.com
5
Requires at least: 4.5
6
- Tested up to: 5.0.1
7
Requires PHP: 5.4
8
- Stable tag: 2.9.2
9
License: GPL v3.0
10
License URI: https://opensource.org/licenses/GPL-3.0
11
@@ -137,6 +137,11 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
137
138
== Changelog ==
139
140
= 2.9.2 =
141
142
- Tweak: Unnecessary functions removed from Counter, Modal Box widgets to enhance performance.
3
Tags: Elementor, Elementor Page Builder, Elements, Elementor Addons, Add-ons, page builder
4
Donate link: http://premiumaddons.com
5
Requires at least: 4.5
6
+ Tested up to: 5.0.2
7
Requires PHP: 5.4
8
+ Stable tag: 2.9.3
9
License: GPL v3.0
10
License URI: https://opensource.org/licenses/GPL-3.0
11
137
138
== Changelog ==
139
140
+ = 2.9.3 =
141
+
142
+ - Tweak: Unnecessary `esc_html()` function removed.
143
+ - Tweak: Unnecessary conditions removed to enhance editor page loading speed.
144
+
145
= 2.9.2 =
146
147
- Tweak: Unnecessary functions removed from Counter, Modal Box widgets to enhance performance.
widgets/premium-banner.php CHANGED
@@ -39,14 +39,14 @@ class Premium_Banner extends Widget_Base {
39
40
$this->start_controls_section('premium_banner_global_settings',
41
[
42
- 'label' => esc_html__( 'Image', 'premium-addons-for-elementor' )
43
]
44
);
45
46
$this->add_control('premium_banner_image',
47
[
48
- 'label' => esc_html__( 'Upload Image', 'premium-addons-for-elementor' ),
49
- 'description' => esc_html__( 'Select an image for the Banner', 'premium-addons-for-elementor' ),
50
'type' => Controls_Manager::MEDIA,
51
'dynamic' => [ 'active' => true ],
52
'default' => [
@@ -58,16 +58,16 @@ class Premium_Banner extends Widget_Base {
58
59
$this->add_control('premium_banner_link_url_switch',
60
[
61
- 'label' => esc_html__('Link', 'premium-addons-for-elementor'),
62
'type' => Controls_Manager::SWITCHER
63
]
64
);
65
66
$this->add_control('premium_banner_image_link_switcher',
67
[
68
- 'label' => esc_html__( 'Custom Link', 'premium-addons-for-elementor' ),
69
'type' => Controls_Manager::SWITCHER,
70
- 'description' => esc_html__( 'Add a custom link to the banner', 'premium-addons-for-elementor' ),
71
'condition' => [
72
'premium_banner_link_url_switch' => 'yes',
73
],
@@ -76,9 +76,9 @@ class Premium_Banner extends Widget_Base {
76
77
$this->add_control('premium_banner_image_custom_link',
78
[
79
- 'label' => esc_html__( 'Set custom Link', 'premium-addons-for-elementor' ),
80
'type' => Controls_Manager::URL,
81
- 'description' => esc_html__( 'What custom link you want to set to banner?', 'premium-addons-for-elementor' ),
82
'condition' => [
83
'premium_banner_image_link_switcher' => 'yes',
84
'premium_banner_link_url_switch' => 'yes'
@@ -89,9 +89,9 @@ class Premium_Banner extends Widget_Base {
89
90
$this->add_control('premium_banner_image_existing_page_link',
91
[
92
- 'label' => esc_html__( 'Existing Page', 'premium-addons-for-elementor' ),
93
'type' => Controls_Manager::SELECT2,
94
- 'description' => esc_html__( 'Link the banner with an existing page', 'premium-addons-for-elementor' ),
95
'condition' => [
96
'premium_banner_image_link_switcher!' => 'yes',
97
'premium_banner_link_url_switch' => 'yes'
@@ -103,9 +103,9 @@ class Premium_Banner extends Widget_Base {
103
104
$this->add_control('premium_banner_image_link_open_new_tab',
105
[
106
- 'label' => esc_html__( 'New Tab', 'premium-addons-for-elementor' ),
107
'type' => Controls_Manager::SWITCHER,
108
- 'description' => esc_html__( 'Choose if you want the link be opened in a new tab or not', 'premium-addons-for-elementor' ),
109
'condition' => [
110
'premium_banner_link_url_switch' => 'yes'
111
]
@@ -114,9 +114,9 @@ class Premium_Banner extends Widget_Base {
114
115
$this->add_control('premium_banner_image_link_add_nofollow',
116
[
117
- 'label' => esc_html__( 'Nofollow Option', 'premium-addons-for-elementor' ),
118
'type' => Controls_Manager::SWITCHER,
119
- 'description' => esc_html__('if you choose yes, the link will not be counted in search engines', 'premium-addons-for-elementor' ),
120
'condition' => [
121
'premium_banner_link_url_switch' => 'yes'
122
]
@@ -125,10 +125,10 @@ class Premium_Banner extends Widget_Base {
125
126
$this->add_control('premium_banner_image_animation',
127
[
128
- 'label' => esc_html__( 'Effect', 'premium-addons-for-elementor' ),
129
'type' => Controls_Manager::SELECT,
130
'default' => 'premium_banner_animation1',
131
- 'description' => esc_html__( 'Choose a hover effect for the banner', 'premium-addons-for-elementor' ),
132
'options' => [
133
'premium_banner_animation1' => 'Effect 1',
134
'premium_banner_animation5' => 'Effect 2',
@@ -142,25 +142,25 @@ class Premium_Banner extends Widget_Base {
142
143
$this->add_control('premium_banner_active',
144
[
145
- 'label' => esc_html__( 'Always Hovered', 'premium-addons-for-elementor' ),
146
'type' => Controls_Manager::SWITCHER,
147
- 'description' => esc_html__( 'Choose if you want the effect to be always triggered', 'premium-addons-for-elementor' )
148
]
149
);
150
151
$this->add_control('premium_banner_hover_effect',
152
[
153
- 'label' => esc_html__('Hover Effect', 'premium-addons-for-elementor'),
154
'type' => Controls_Manager::SELECT,
155
'options' => [
156
- 'none' => esc_html__('None', 'premium-addons-for-elementor'),
157
- 'zoomin' => esc_html__('Zoom In', 'premium-addons-for-elementor'),
158
- 'zoomout' => esc_html__('Zoom Out', 'premium-addons-for-elementor'),
159
- 'scale' => esc_html__('Scale', 'premium-addons-for-elementor'),
160
- 'grayscale' => esc_html__('Grayscale', 'premium-addons-for-elementor'),
161
- 'blur' => esc_html__('Blur', 'premium-addons-for-elementor'),
162
- 'bright' => esc_html__('Bright', 'premium-addons-for-elementor'),
163
- 'sepia' => esc_html__('Sepia', 'premium-addons-for-elementor'),
164
],
165
'default' => 'none',
166
]
@@ -168,22 +168,22 @@ class Premium_Banner extends Widget_Base {
168
169
$this->add_control('premium_banner_height',
170
[
171
- 'label' => esc_html__( 'Height', 'premium-addons-for-elementor' ),
172
'type' => Controls_Manager::SELECT,
173
'options' => [
174
'default' => 'Default',
175
'custom' => 'Custom'
176
],
177
'default' => 'default',
178
- 'description' => esc_html__( 'Choose if you want to set a custom height for the banner or keep it as it is', 'premium-addons-for-elementor' )
179
]
180
);
181
182
$this->add_responsive_control('premium_banner_custom_height',
183
[
184
- 'label' => esc_html__( 'Min Height', 'premium-addons-for-elementor' ),
185
'type' => Controls_Manager::NUMBER,
186
- 'description' => esc_html__( 'Set a minimum height value in pixels', 'premium-addons-for-elementor' ),
187
'condition' => [
188
'premium_banner_height' => 'custom'
189
],
@@ -195,16 +195,16 @@ class Premium_Banner extends Widget_Base {
195
196
$this->add_responsive_control('premium_banner_img_vertical_align',
197
[
198
- 'label' => esc_html__( 'Vertical Align', 'premium-addons-for-elementor' ),
199
'type' => Controls_Manager::SELECT,
200
'condition' => [
201
'premium_banner_height' => 'custom'
202
],
203
'options' => [
204
- 'flex-start' => esc_html__('Top', 'premium-addons-for-elementor'),
205
- 'center' => esc_html__('Middle', 'premium-addons-for-elementor'),
206
- 'flex-end' => esc_html__('Bottom', 'premium-addons-for-elementor'),
207
- 'inherit' => esc_html__('Full', 'premium-addons-for-elementor')
208
],
209
'default' => 'flex-start',
210
'selectors' => [
@@ -215,9 +215,9 @@ class Premium_Banner extends Widget_Base {
215
216
$this->add_control('premium_banner_extra_class',
217
[
218
- 'label' => esc_html__( 'Extra Class', 'premium-addons-for-elementor' ),
219
'type' => Controls_Manager::TEXT,
220
- 'description' => esc_html__( 'Add extra class name that will be applied to the banner, and you can use this class for your customizations.', 'premium-addons-for-elementor' )
221
]
222
);
223
@@ -226,25 +226,25 @@ class Premium_Banner extends Widget_Base {
226
227
$this->start_controls_section('premium_banner_image_section',
228
[
229
- 'label' => esc_html__( 'Content', 'premium-addons-for-elementor' )
230
]
231
);
232
233
$this->add_control('premium_banner_title',
234
[
235
- 'label' => esc_html__( 'Title', 'premium-addons-for-elementor' ),
236
- 'placeholder' => esc_html__( 'Give a title to this banner', 'premium-addons-for-elementor' ),
237
'type' => Controls_Manager::TEXT,
238
'dynamic' => [ 'active' => true ],
239
- 'default' => esc_html__( 'Premium Banner', 'premium-addons-for-elementor' ),
240
'label_block' => false
241
]
242
);
243
244
$this->add_control('premium_banner_title_tag',
245
[
246
- 'label' => esc_html__( 'HTML Tag', 'premium-addons-for-elementor' ),
247
- 'description' => esc_html__( 'Select a heading tag for the title. Headings are defined with H1 to H6 tags', 'premium-addons-for-elementor' ),
248
'type' => Controls_Manager::SELECT,
249
'default' => 'h3',
250
'options' => [
@@ -262,25 +262,25 @@ class Premium_Banner extends Widget_Base {
262
263
$this->add_control('premium_banner_description_hint',
264
[
265
- 'label' => esc_html__( 'Description', 'premium-addons-for-elementor' ),
266
'type' => Controls_Manager::HEADING,
267
]
268
);
269
270
$this->add_control('premium_banner_description',
271
[
272
- 'label' => esc_html__( 'Description', 'premium-addons-for-elementor' ),
273
- 'description' => esc_html__( 'Give the description to this banner', 'premium-addons-for-elementor' ),
274
'type' => Controls_Manager::WYSIWYG,
275
'dynamic' => [ 'active' => true ],
276
- 'default' => esc_html__( 'Premium Banner gives you a wide range of styles and options that you will definitely fall in love with', 'premium-addons-for-elementor' ),
277
'label_block' => true
278
]
279
);
280
281
$this->add_control('premium_banner_link_switcher',
282
[
283
- 'label' => esc_html__('Button', 'premium-addons-for-elementor'),
284
'type' => Controls_Manager::SWITCHER,
285
'condition' => [
286
'premium_banner_link_url_switch!' => 'yes'
@@ -291,7 +291,7 @@ class Premium_Banner extends Widget_Base {
291
292
$this->add_control('premium_banner_more_text',
293
[
294
- 'label' => esc_html__('Text','premium-addons-for-elementor'),
295
'type' => Controls_Manager::TEXT,
296
'dynamic' => [ 'active' => true ],
297
'default' => 'Click Here',
@@ -304,11 +304,11 @@ class Premium_Banner extends Widget_Base {
304
305
$this->add_control('premium_banner_link_selection',
306
[
307
- 'label' => esc_html__('Link Type', 'premium-addons-for-elementor'),
308
'type' => Controls_Manager::SELECT,
309
'options' => [
310
- 'url' => esc_html__('URL', 'premium-addons-for-elementor'),
311
- 'link' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
312
],
313
'default' => 'url',
314
'label_block' => true,
@@ -321,7 +321,7 @@ class Premium_Banner extends Widget_Base {
321
322
$this->add_control('premium_banner_link',
323
[
324
- 'label' => esc_html__('Link', 'premium-addons-for-elementor'),
325
'type' => Controls_Manager::URL,
326
'default' => [
327
'url' => '#',
@@ -338,7 +338,7 @@ class Premium_Banner extends Widget_Base {
338
339
$this->add_control('premium_banner_existing_link',
340
[
341
- 'label' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
342
'type' => Controls_Manager::SELECT2,
343
'options' => $this->getTemplateInstance()->get_all_post(),
344
'multiple' => false,
@@ -354,19 +354,19 @@ class Premium_Banner extends Widget_Base {
354
355
$this->add_control('premium_banner_title_text_align',
356
[
357
- 'label' => esc_html__('Alignment', 'premium-addons-for-elementor'),
358
'type' => Controls_Manager::CHOOSE,
359
'options' => [
360
'left' => [
361
- 'title' => esc_html__('Left', 'premium-addons-for-elementor'),
362
'icon' => 'fa fa-align-left'
363
],
364
'center' => [
365
- 'title' => esc_html__('Center', 'premium-addons-for-elementor'),
366
'icon' => 'fa fa-align-center'
367
],
368
'right' => [
369
- 'title' => esc_html__('Right', 'premium-addons-for-elementor'),
370
'icon' => 'fa fa-align-right'
371
],
372
],
@@ -382,23 +382,23 @@ class Premium_Banner extends Widget_Base {
382
383
$this->start_controls_section('premium_banner_responsive_section',
384
[
385
- 'label' => esc_html__('Responsive', 'premium-addons-for-elementor'),
386
]
387
);
388
389
$this->add_control('premium_banner_responsive_switcher',
390
[
391
- 'label' => esc_html__('Responsive Controls', 'premium-addons-for-elementor'),
392
'type' => Controls_Manager::SWITCHER,
393
- 'description' => esc_html__('If the description text is not suiting well on specific screen sizes, you may enable this option which will hide the description text.', 'premium-addons-for-elementor')
394
]
395
);
396
397
$this->add_control('premium_banner_min_range',
398
[
399
- 'label' => esc_html__('Minimum Size', 'premium-addons-for-elementor'),
400
'type' => Controls_Manager::NUMBER,
401
- 'description'=> esc_html__('Note: minimum size for extra small screens is 1px.','premium-addons-for-elementor'),
402
'default' => 1,
403
'condition' => [
404
'premium_banner_responsive_switcher' => 'yes'
@@ -408,9 +408,9 @@ class Premium_Banner extends Widget_Base {
408
409
$this->add_control('premium_banner_max_range',
410
[
411
- 'label' => esc_html__('Maximum Size', 'premium-addons-for-elementor'),
412
'type' => Controls_Manager::NUMBER,
413
- 'description'=> esc_html__('Note: maximum size for extra small screens is 767px.','premium-addons-for-elementor'),
414
'default' => 767,
415
'condition' => [
416
'premium_banner_responsive_switcher' => 'yes'
@@ -422,14 +422,14 @@ class Premium_Banner extends Widget_Base {
422
423
$this->start_controls_section('premium_banner_opacity_style',
424
[
425
- 'label' => esc_html__( 'Image', 'premium-addons-for-elementor' ),
426
'tab' => Controls_Manager::TAB_STYLE
427
]
428
);
429
430
$this->add_control('premium_banner_image_bg_color',
431
[
432
- 'label' => esc_html__( 'Background Color', 'premium-addons-for-elementor' ),
433
'type' => Controls_Manager::COLOR,
434
'selectors' => [
435
'{{WRAPPER}} .premium_addons-banner-ib' => 'background: {{VALUE}};'
@@ -439,7 +439,7 @@ class Premium_Banner extends Widget_Base {
439
440
$this->add_control('premium_banner_image_opacity',
441
[
442
- 'label' => esc_html__( 'Image Opacity', 'premium-addons-for-elementor' ),
443
'type' => Controls_Manager::SLIDER,
444
'default' => [
445
'size' => 1
@@ -460,7 +460,7 @@ class Premium_Banner extends Widget_Base {
460
461
$this->add_control('premium_banner_image_hover_opacity',
462
[
463
- 'label' => esc_html__( 'Hover Opacity', 'premium-addons-for-elementor' ),
464
'type' => Controls_Manager::SLIDER,
465
'default' => [
466
'size' => 1
@@ -489,7 +489,7 @@ class Premium_Banner extends Widget_Base {
489
$this->add_responsive_control(
490
'premium_banner_image_border_radius',
491
[
492
- 'label' => esc_html__( 'Border Radius', 'premium-addons-for-elementor' ),
493
'type' => Controls_Manager::SLIDER,
494
'size_units' => ['px', '%' ,'em'],
495
'selectors' => [
@@ -502,14 +502,14 @@ class Premium_Banner extends Widget_Base {
502
503
$this->start_controls_section('premium_banner_title_style',
504
[
505
- 'label' => esc_html__( 'Title', 'premium-addons-for-elementor' ),
506
'tab' => Controls_Manager::TAB_STYLE
507
]
508
);
509
510
$this->add_control('premium_banner_color_of_title',
511
[
512
- 'label' => esc_html__( 'Color', 'premium-addons-for-elementor' ),
513
'type' => Controls_Manager::COLOR,
514
'scheme' => [
515
'type' => Scheme_Color::get_type(),
@@ -523,10 +523,10 @@ class Premium_Banner extends Widget_Base {
523
524
$this->add_control('premium_banner_style2_title_bg',
525
[
526
- 'label' => esc_html__( 'Title Background', 'premium-addons-for-elementor' ),
527
'type' => Controls_Manager::COLOR,
528
'default' => '#f2f2f2',
529
- 'description' => esc_html__( 'Choose a background color for the title', 'premium-addons-for-elementor' ),
530
'condition' => [
531
'premium_banner_image_animation' => 'premium_banner_animation5'
532
],
@@ -548,7 +548,7 @@ class Premium_Banner extends Widget_Base {
548
$this->add_group_control(
549
Group_Control_Text_Shadow::get_type(),
550
[
551
- 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
552
'name' => 'premium_banner_title_shadow',
553
'selector' => '{{WRAPPER}} .premium_addons-banner-ib-desc .premium_banner_title'
554
]
@@ -558,14 +558,14 @@ class Premium_Banner extends Widget_Base {
558
559
$this->start_controls_section('premium_banner_styles_of_content',
560
[
561
- 'label' => esc_html__( 'Description', 'premium-addons-for-elementor' ),
562
'tab' => Controls_Manager::TAB_STYLE
563
]
564
);
565
566
$this->add_control('premium_banner_color_of_content',
567
[
568
- 'label' => esc_html__( 'Color', 'premium-addons-for-elementor' ),
569
'type' => Controls_Manager::COLOR,
570
'scheme' => [
571
'type' => Scheme_Color::get_type(),
@@ -589,7 +589,7 @@ class Premium_Banner extends Widget_Base {
589
$this->add_group_control(
590
Group_Control_Text_Shadow::get_type(),
591
[
592
- 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
593
'name' => 'premium_banner_description_shadow',
594
'selector' => '{{WRAPPER}} .premium_banner .premium_banner_content',
595
]
@@ -599,7 +599,7 @@ class Premium_Banner extends Widget_Base {
599
600
$this->start_controls_section('premium_banner_styles_of_button',
601
[
602
- 'label' => esc_html__( 'Button', 'premium-addons-for-elementor' ),
603
'tab' => Controls_Manager::TAB_STYLE,
604
'condition' => [
605
'premium_banner_link_switcher' => 'yes',
@@ -610,7 +610,7 @@ class Premium_Banner extends Widget_Base {
610
611
$this->add_control('premium_banner_color_of_button',
612
[
613
- 'label' => esc_html__( 'Color', 'premium-addons-for-elementor' ),
614
'type' => Controls_Manager::COLOR,
615
'scheme' => [
616
'type' => Scheme_Color::get_type(),
@@ -624,7 +624,7 @@ class Premium_Banner extends Widget_Base {
624
625
$this->add_control('premium_banner_hover_color_of_button',
626
[
627
- 'label' => esc_html__( 'Hover Color', 'premium-addons-for-elementor' ),
628
'type' => Controls_Manager::COLOR,
629
'scheme' => [
630
'type' => Scheme_Color::get_type(),
@@ -648,7 +648,7 @@ class Premium_Banner extends Widget_Base {
648
$this->add_control(
649
'premium_banner_backcolor_of_button',
650
[
651
- 'label' => esc_html__( 'Background Color', 'premium-addons-for-elementor' ),
652
'type' => Controls_Manager::COLOR,
653
'selectors' => [
654
'{{WRAPPER}} .premium_banner .premium-banner-link' => 'background-color: {{VALUE}};'
@@ -658,7 +658,7 @@ class Premium_Banner extends Widget_Base {
658
659
$this->add_control('premium_banner_hover_backcolor_of_button',
660
[
661
- 'label' => esc_html__( 'Hover Background Color', 'premium-addons-for-elementor' ),
662
'type' => Controls_Manager::COLOR,
663
'selectors' => [
664
'{{WRAPPER}} .premium_banner .premium-banner-link:hover' => 'background-color: {{VALUE}};'
@@ -676,7 +676,7 @@ class Premium_Banner extends Widget_Base {
676
677
$this->add_control('premium_banner_button_border_radius',
678
[
679
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
680
'type' => Controls_Manager::SLIDER,
681
'size_units' => ['px', '%' ,'em'],
682
'selectors' => [
@@ -688,7 +688,7 @@ class Premium_Banner extends Widget_Base {
688
$this->add_group_control(
689
Group_Control_Text_Shadow::get_type(),
690
[
691
- 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
692
'name' => 'premium_banner_button_shadow',
693
'selector' => '{{WRAPPER}} .premium_banner .premium-banner-link',
694
]
@@ -696,7 +696,7 @@ class Premium_Banner extends Widget_Base {
696
697
$this->add_responsive_control('premium_banner_button_padding',
698
[
699
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
700
'type' => Controls_Manager::DIMENSIONS,
701
'size_units' => ['px', 'em', '%'],
702
'selectors' => [
39
40
$this->start_controls_section('premium_banner_global_settings',
41
[
42
+ 'label' => __( 'Image', 'premium-addons-for-elementor' )
43
]
44
);
45
46
$this->add_control('premium_banner_image',
47
[
48
+ 'label' => __( 'Upload Image', 'premium-addons-for-elementor' ),
49
+ 'description' => __( 'Select an image for the Banner', 'premium-addons-for-elementor' ),
50
'type' => Controls_Manager::MEDIA,
51
'dynamic' => [ 'active' => true ],
52
'default' => [
58
59
$this->add_control('premium_banner_link_url_switch',
60
[
61
+ 'label' => __('Link', 'premium-addons-for-elementor'),
62
'type' => Controls_Manager::SWITCHER
63
]
64
);
65
66
$this->add_control('premium_banner_image_link_switcher',
67
[
68
+ 'label' => __( 'Custom Link', 'premium-addons-for-elementor' ),
69
'type' => Controls_Manager::SWITCHER,
70
+ 'description' => __( 'Add a custom link to the banner', 'premium-addons-for-elementor' ),
71
'condition' => [
72
'premium_banner_link_url_switch' => 'yes',
73
],
76
77
$this->add_control('premium_banner_image_custom_link',
78
[
79
+ 'label' => __( 'Set custom Link', 'premium-addons-for-elementor' ),
80
'type' => Controls_Manager::URL,
81
+ 'description' => __( 'What custom link you want to set to banner?', 'premium-addons-for-elementor' ),
82
'condition' => [
83
'premium_banner_image_link_switcher' => 'yes',
84
'premium_banner_link_url_switch' => 'yes'
89
90
$this->add_control('premium_banner_image_existing_page_link',
91
[
92
+ 'label' => __( 'Existing Page', 'premium-addons-for-elementor' ),
93
'type' => Controls_Manager::SELECT2,
94
+ 'description' => __( 'Link the banner with an existing page', 'premium-addons-for-elementor' ),
95
'condition' => [
96
'premium_banner_image_link_switcher!' => 'yes',
97
'premium_banner_link_url_switch' => 'yes'
103
104
$this->add_control('premium_banner_image_link_open_new_tab',
105
[
106
+ 'label' => __( 'New Tab', 'premium-addons-for-elementor' ),
107
'type' => Controls_Manager::SWITCHER,
108
+ 'description' => __( 'Choose if you want the link be opened in a new tab or not', 'premium-addons-for-elementor' ),
109
'condition' => [
110
'premium_banner_link_url_switch' => 'yes'
111
]
114
115
$this->add_control('premium_banner_image_link_add_nofollow',
116
[
117
+ 'label' => __( 'Nofollow Option', 'premium-addons-for-elementor' ),
118
'type' => Controls_Manager::SWITCHER,
119
+ 'description' => __('if you choose yes, the link will not be counted in search engines', 'premium-addons-for-elementor' ),
120
'condition' => [
121
'premium_banner_link_url_switch' => 'yes'
122
]
125
126
$this->add_control('premium_banner_image_animation',
127
[
128
+ 'label' => __( 'Effect', 'premium-addons-for-elementor' ),
129
'type' => Controls_Manager::SELECT,
130
'default' => 'premium_banner_animation1',
131
+ 'description' => __( 'Choose a hover effect for the banner', 'premium-addons-for-elementor' ),
132
'options' => [
133
'premium_banner_animation1' => 'Effect 1',
134
'premium_banner_animation5' => 'Effect 2',
142
143
$this->add_control('premium_banner_active',
144
[
145
+ 'label' => __( 'Always Hovered', 'premium-addons-for-elementor' ),
146
'type' => Controls_Manager::SWITCHER,
147
+ 'description' => __( 'Choose if you want the effect to be always triggered', 'premium-addons-for-elementor' )
148
]
149
);
150
151
$this->add_control('premium_banner_hover_effect',
152
[
153
+ 'label' => __('Hover Effect', 'premium-addons-for-elementor'),
154
'type' => Controls_Manager::SELECT,
155
'options' => [
156
+ 'none' => __('None', 'premium-addons-for-elementor'),
157
+ 'zoomin' => __('Zoom In', 'premium-addons-for-elementor'),
158
+ 'zoomout' => __('Zoom Out', 'premium-addons-for-elementor'),
159
+ 'scale' => __('Scale', 'premium-addons-for-elementor'),
160
+ 'grayscale' => __('Grayscale', 'premium-addons-for-elementor'),
161
+ 'blur' => __('Blur', 'premium-addons-for-elementor'),
162
+ 'bright' => __('Bright', 'premium-addons-for-elementor'),
163
+ 'sepia' => __('Sepia', 'premium-addons-for-elementor'),
164
],
165
'default' => 'none',
166
]
168
169
$this->add_control('premium_banner_height',
170
[
171
+ 'label' => __( 'Height', 'premium-addons-for-elementor' ),
172
'type' => Controls_Manager::SELECT,
173
'options' => [
174
'default' => 'Default',
175
'custom' => 'Custom'
176
],
177
'default' => 'default',
178
+ 'description' => __( 'Choose if you want to set a custom height for the banner or keep it as it is', 'premium-addons-for-elementor' )
179
]
180
);
181
182
$this->add_responsive_control('premium_banner_custom_height',
183
[
184
+ 'label' => __( 'Min Height', 'premium-addons-for-elementor' ),
185
'type' => Controls_Manager::NUMBER,
186
+ 'description' => __( 'Set a minimum height value in pixels', 'premium-addons-for-elementor' ),
187
'condition' => [
188
'premium_banner_height' => 'custom'
189
],
195
196
$this->add_responsive_control('premium_banner_img_vertical_align',
197
[
198
+ 'label' => __( 'Vertical Align', 'premium-addons-for-elementor' ),
199
'type' => Controls_Manager::SELECT,
200
'condition' => [
201
'premium_banner_height' => 'custom'
202
],
203
'options' => [
204
+ 'flex-start' => __('Top', 'premium-addons-for-elementor'),
205
+ 'center' => __('Middle', 'premium-addons-for-elementor'),
206
+ 'flex-end' => __('Bottom', 'premium-addons-for-elementor'),
207
+ 'inherit' => __('Full', 'premium-addons-for-elementor')
208
],
209
'default' => 'flex-start',
210
'selectors' => [
215
216
$this->add_control('premium_banner_extra_class',
217
[
218
+ 'label' => __( 'Extra Class', 'premium-addons-for-elementor' ),
219
'type' => Controls_Manager::TEXT,
220
+ 'description' => __( 'Add extra class name that will be applied to the banner, and you can use this class for your customizations.', 'premium-addons-for-elementor' )
221
]
222
);
223
226
227
$this->start_controls_section('premium_banner_image_section',
228
[
229
+ 'label' => __( 'Content', 'premium-addons-for-elementor' )
230
]
231
);
232
233
$this->add_control('premium_banner_title',
234
[
235
+ 'label' => __( 'Title', 'premium-addons-for-elementor' ),
236
+ 'placeholder' => __( 'Give a title to this banner', 'premium-addons-for-elementor' ),
237
'type' => Controls_Manager::TEXT,
238
'dynamic' => [ 'active' => true ],
239
+ 'default' => __( 'Premium Banner', 'premium-addons-for-elementor' ),
240
'label_block' => false
241
]
242
);
243
244
$this->add_control('premium_banner_title_tag',
245
[
246
+ 'label' => __( 'HTML Tag', 'premium-addons-for-elementor' ),
247
+ 'description' => __( 'Select a heading tag for the title. Headings are defined with H1 to H6 tags', 'premium-addons-for-elementor' ),
248
'type' => Controls_Manager::SELECT,
249
'default' => 'h3',
250
'options' => [
262
263
$this->add_control('premium_banner_description_hint',
264
[
265
+ 'label' => __( 'Description', 'premium-addons-for-elementor' ),
266
'type' => Controls_Manager::HEADING,
267
]
268
);
269
270
$this->add_control('premium_banner_description',
271
[
272
+ 'label' => __( 'Description', 'premium-addons-for-elementor' ),
273
+ 'description' => __( 'Give the description to this banner', 'premium-addons-for-elementor' ),
274
'type' => Controls_Manager::WYSIWYG,
275
'dynamic' => [ 'active' => true ],
276
+ 'default' => __( 'Premium Banner gives you a wide range of styles and options that you will definitely fall in love with', 'premium-addons-for-elementor' ),
277
'label_block' => true
278
]
279
);
280
281
$this->add_control('premium_banner_link_switcher',
282
[
283
+ 'label' => __('Button', 'premium-addons-for-elementor'),
284
'type' => Controls_Manager::SWITCHER,
285
'condition' => [
286
'premium_banner_link_url_switch!' => 'yes'
291
292
$this->add_control('premium_banner_more_text',
293
[
294
+ 'label' => __('Text','premium-addons-for-elementor'),
295
'type' => Controls_Manager::TEXT,
296
'dynamic' => [ 'active' => true ],
297
'default' => 'Click Here',
304
305
$this->add_control('premium_banner_link_selection',
306
[
307
+ 'label' => __('Link Type', 'premium-addons-for-elementor'),
308
'type' => Controls_Manager::SELECT,
309
'options' => [
310
+ 'url' => __('URL', 'premium-addons-for-elementor'),
311
+ 'link' => __('Existing Page', 'premium-addons-for-elementor'),
312
],
313
'default' => 'url',
314
'label_block' => true,
321
322
$this->add_control('premium_banner_link',
323
[
324
+ 'label' => __('Link', 'premium-addons-for-elementor'),
325
'type' => Controls_Manager::URL,
326
'default' => [
327
'url' => '#',
338
339
$this->add_control('premium_banner_existing_link',
340
[
341
+ 'label' => __('Existing Page', 'premium-addons-for-elementor'),
342
'type' => Controls_Manager::SELECT2,
343
'options' => $this->getTemplateInstance()->get_all_post(),
344
'multiple' => false,
354
355
$this->add_control('premium_banner_title_text_align',
356
[
357
+ 'label' => __('Alignment', 'premium-addons-for-elementor'),
358
'type' => Controls_Manager::CHOOSE,
359
'options' => [
360
'left' => [
361
+ 'title' => __('Left', 'premium-addons-for-elementor'),
362
'icon' => 'fa fa-align-left'
363
],
364
'center' => [
365
+ 'title' => __('Center', 'premium-addons-for-elementor'),
366
'icon' => 'fa fa-align-center'
367
],
368
'right' => [
369
+ 'title' => __('Right', 'premium-addons-for-elementor'),
370
'icon' => 'fa fa-align-right'
371
],
372
],
382
383
$this->start_controls_section('premium_banner_responsive_section',
384
[
385
+ 'label' => __('Responsive', 'premium-addons-for-elementor'),
386
]
387
);
388
389
$this->add_control('premium_banner_responsive_switcher',
390
[
391
+ 'label' => __('Responsive Controls', 'premium-addons-for-elementor'),
392
'type' => Controls_Manager::SWITCHER,
393
+ 'description' => __('If the description text is not suiting well on specific screen sizes, you may enable this option which will hide the description text.', 'premium-addons-for-elementor')
394
]
395
);
396
397
$this->add_control('premium_banner_min_range',
398
[
399
+ 'label' => __('Minimum Size', 'premium-addons-for-elementor'),
400
'type' => Controls_Manager::NUMBER,
401
+ 'description'=> __('Note: minimum size for extra small screens is 1px.','premium-addons-for-elementor'),
402
'default' => 1,
403
'condition' => [
404
'premium_banner_responsive_switcher' => 'yes'
408
409
$this->add_control('premium_banner_max_range',
410
[
411
+ 'label' => __('Maximum Size', 'premium-addons-for-elementor'),
412
'type' => Controls_Manager::NUMBER,
413
+ 'description'=> __('Note: maximum size for extra small screens is 767px.','premium-addons-for-elementor'),
414
'default' => 767,
415
'condition' => [
416
'premium_banner_responsive_switcher' => 'yes'
422
423
$this->start_controls_section('premium_banner_opacity_style',
424
[
425
+ 'label' => __( 'Image', 'premium-addons-for-elementor' ),
426
'tab' => Controls_Manager::TAB_STYLE
427
]
428
);
429
430
$this->add_control('premium_banner_image_bg_color',
431
[
432
+ 'label' => __( 'Background Color', 'premium-addons-for-elementor' ),
433
'type' => Controls_Manager::COLOR,
434
'selectors' => [
435
'{{WRAPPER}} .premium_addons-banner-ib' => 'background: {{VALUE}};'
439
440
$this->add_control('premium_banner_image_opacity',
441
[
442
+ 'label' => __( 'Image Opacity', 'premium-addons-for-elementor' ),
443
'type' => Controls_Manager::SLIDER,
444
'default' => [
445
'size' => 1
460
461
$this->add_control('premium_banner_image_hover_opacity',
462
[
463
+ 'label' => __( 'Hover Opacity', 'premium-addons-for-elementor' ),
464
'type' => Controls_Manager::SLIDER,
465
'default' => [
466
'size' => 1
489
$this->add_responsive_control(
490
'premium_banner_image_border_radius',
491
[
492
+ 'label' => __( 'Border Radius', 'premium-addons-for-elementor' ),
493
'type' => Controls_Manager::SLIDER,
494
'size_units' => ['px', '%' ,'em'],
495
'selectors' => [
502
503
$this->start_controls_section('premium_banner_title_style',
504
[
505
+ 'label' => __( 'Title', 'premium-addons-for-elementor' ),
506
'tab' => Controls_Manager::TAB_STYLE
507
]
508
);
509
510
$this->add_control('premium_banner_color_of_title',
511
[
512
+ 'label' => __( 'Color', 'premium-addons-for-elementor' ),
513
'type' => Controls_Manager::COLOR,
514
'scheme' => [
515
'type' => Scheme_Color::get_type(),
523
524
$this->add_control('premium_banner_style2_title_bg',
525
[
526
+ 'label' => __( 'Title Background', 'premium-addons-for-elementor' ),
527
'type' => Controls_Manager::COLOR,
528
'default' => '#f2f2f2',
529
+ 'description' => __( 'Choose a background color for the title', 'premium-addons-for-elementor' ),
530
'condition' => [
531
'premium_banner_image_animation' => 'premium_banner_animation5'
532
],
548
$this->add_group_control(
549
Group_Control_Text_Shadow::get_type(),
550
[
551
+ 'label' => __('Shadow','premium-addons-for-elementor'),
552
'name' => 'premium_banner_title_shadow',
553
'selector' => '{{WRAPPER}} .premium_addons-banner-ib-desc .premium_banner_title'
554
]
558
559
$this->start_controls_section('premium_banner_styles_of_content',
560
[
561
+ 'label' => __( 'Description', 'premium-addons-for-elementor' ),
562
'tab' => Controls_Manager::TAB_STYLE
563
]
564
);
565
566
$this->add_control('premium_banner_color_of_content',
567
[
568
+ 'label' => __( 'Color', 'premium-addons-for-elementor' ),
569
'type' => Controls_Manager::COLOR,
570
'scheme' => [
571
'type' => Scheme_Color::get_type(),
589
$this->add_group_control(
590
Group_Control_Text_Shadow::get_type(),
591
[
592
+ 'label' => __('Shadow','premium-addons-for-elementor'),
593
'name' => 'premium_banner_description_shadow',
594
'selector' => '{{WRAPPER}} .premium_banner .premium_banner_content',
595
]
599
600
$this->start_controls_section('premium_banner_styles_of_button',
601
[
602
+ 'label' => __( 'Button', 'premium-addons-for-elementor' ),
603
'tab' => Controls_Manager::TAB_STYLE,
604
'condition' => [
605
'premium_banner_link_switcher' => 'yes',
610
611
$this->add_control('premium_banner_color_of_button',
612
[
613
+ 'label' => __( 'Color', 'premium-addons-for-elementor' ),
614
'type' => Controls_Manager::COLOR,
615
'scheme' => [
616
'type' => Scheme_Color::get_type(),
624
625
$this->add_control('premium_banner_hover_color_of_button',
626
[
627
+ 'label' => __( 'Hover Color', 'premium-addons-for-elementor' ),
628
'type' => Controls_Manager::COLOR,
629
'scheme' => [
630
'type' => Scheme_Color::get_type(),
648
$this->add_control(
649
'premium_banner_backcolor_of_button',
650
[
651
+ 'label' => __( 'Background Color', 'premium-addons-for-elementor' ),
652
'type' => Controls_Manager::COLOR,
653
'selectors' => [
654
'{{WRAPPER}} .premium_banner .premium-banner-link' => 'background-color: {{VALUE}};'
658
659
$this->add_control('premium_banner_hover_backcolor_of_button',
660
[
661
+ 'label' => __( 'Hover Background Color', 'premium-addons-for-elementor' ),
662
'type' => Controls_Manager::COLOR,
663
'selectors' => [
664
'{{WRAPPER}} .premium_banner .premium-banner-link:hover' => 'background-color: {{VALUE}};'
676
677
$this->add_control('premium_banner_button_border_radius',
678
[
679
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
680
'type' => Controls_Manager::SLIDER,
681
'size_units' => ['px', '%' ,'em'],
682
'selectors' => [
688
$this->add_group_control(
689
Group_Control_Text_Shadow::get_type(),
690
[
691
+ 'label' => __('Shadow','premium-addons-for-elementor'),
692
'name' => 'premium_banner_button_shadow',
693
'selector' => '{{WRAPPER}} .premium_banner .premium-banner-link',
694
]
696
697
$this->add_responsive_control('premium_banner_button_padding',
698
[
699
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
700
'type' => Controls_Manager::DIMENSIONS,
701
'size_units' => ['px', 'em', '%'],
702
'selectors' => [
widgets/premium-blog.php CHANGED
@@ -40,26 +40,26 @@ class Premium_Blog extends Widget_Base {
40
/* Start Content Section */
41
$this->start_controls_section('premium_blog_general_settings',
42
[
43
- 'label' => esc_html__('Image', 'premium-addons-for-elementor'),
44
]
45
);
46
47
/*Hover Image Effect*/
48
$this->add_control('premium_blog_hover_image_effect',
49
[
50
- 'label' => esc_html__('Hover Effect', 'premium-addons-for-elementor'),
51
'type' => Controls_Manager::SELECT,
52
- 'description' => esc_html__('Choose a hover effect for the image','premium-addons-for-elementor'),
53
'options' => [
54
- 'none' => esc_html__('None', 'premium-addons-for-elementor'),
55
- 'zoomin' => esc_html__('Zoom In', 'premium-addons-for-elementor'),
56
- 'zoomout'=> esc_html__('Zoom Out', 'premium-addons-for-elementor'),
57
- 'scale' => esc_html__('Scale', 'premium-addons-for-elementor'),
58
- 'gray' => esc_html__('Grayscale', 'premium-addons-for-elementor'),
59
- 'blur' => esc_html__('Blur', 'premium-addons-for-elementor'),
60
- 'bright' => esc_html__('Bright', 'premium-addons-for-elementor'),
61
- 'sepia' => esc_html__('Sepia', 'premium-addons-for-elementor'),
62
- 'trans' => esc_html__('Translate', 'premium-addons-for-elementor'),
63
],
64
'default' => 'zoomin',
65
'label_block' => true
@@ -69,15 +69,15 @@ class Premium_Blog extends Widget_Base {
69
/*Hover Image Effect*/
70
$this->add_control('premium_blog_hover_color_effect',
71
[
72
- 'label' => esc_html__('Color Effect', 'premium-addons-for-elementor'),
73
'type' => Controls_Manager::SELECT,
74
- 'description' => esc_html__('Choose an overlay color effect','premium-addons-for-elementor'),
75
'options' => [
76
- 'none' => esc_html__('None', 'premium-addons-for-elementor'),
77
- 'framed' => esc_html__('Framed', 'premium-addons-for-elementor'),
78
- 'diagonal' => esc_html__('Diagonal', 'premium-addons-for-elementor'),
79
- 'bordered' => esc_html__('Bordered', 'premium-addons-for-elementor'),
80
- 'squares' => esc_html__('Squares', 'premium-addons-for-elementor'),
81
],
82
'default' => 'framed',
83
'label_block' => true
@@ -90,16 +90,16 @@ class Premium_Blog extends Widget_Base {
90
/*Start Content Settings Section*/
91
$this->start_controls_section('premium_blog_content_settings',
92
[
93
- 'label' => esc_html__('Content', 'premium-addons-for-elementor'),
94
]
95
);
96
97
/*Categories Filter*/
98
$this->add_control('premium_blog_categories',
99
[
100
- 'label' => esc_html__( 'Categories', 'essential-addons-elementor' ),
101
'type' => Controls_Manager::SELECT2,
102
- 'description' => esc_html__('Select the categories you want to show','premium-addons-for-elementor'),
103
'label_block' => true,
104
'multiple' => true,
105
'options' => premium_addons_post_type_categories(),
@@ -108,8 +108,8 @@ class Premium_Blog extends Widget_Base {
108
109
$this->add_control('premium_blog_title_tag',
110
[
111
- 'label' => esc_html__( 'Title HTML Tag', 'premium-addons-for-elementor' ),
112
- 'description' => esc_html__( 'Select a heading tag for the post title.', 'premium-addons-for-elementor' ),
113
'type' => Controls_Manager::SELECT,
114
'default' => 'h2',
115
'options' => [
@@ -127,7 +127,7 @@ class Premium_Blog extends Widget_Base {
127
/*Grid*/
128
$this->add_control('premium_blog_grid',
129
[
130
- 'label' => esc_html__('Grid', 'premium-addons-for-elementor'),
131
'type' => Controls_Manager::SWITCHER,
132
]
133
);
@@ -135,7 +135,7 @@ class Premium_Blog extends Widget_Base {
135
/*Masonry*/
136
$this->add_control('premium_blog_masonry',
137
[
138
- 'label' => esc_html__('Masonry', 'premium-addons-for-elementor'),
139
'type' => Controls_Manager::SWITCHER,
140
'return_value' => 'true',
141
'condition' => [
@@ -147,12 +147,12 @@ class Premium_Blog extends Widget_Base {
147
/*Grid Number of Columns*/
148
$this->add_control('premium_blog_columns_number',
149
[
150
- 'label' => esc_html__('Number of Columns', 'premium-addons-for-elementor'),
151
'type' => Controls_Manager::SELECT,
152
'options' => [
153
- '50%' => esc_html__('2 Columns', 'premium-addons-for-elementor'),
154
- '33.33%'=> esc_html__('3 Columns', 'premium-addons-for-elementor'),
155
- '25%' => esc_html__('4 Columns', 'premium-addons-for-elementor'),
156
],
157
'default' => '50%',
158
'selectors' => [
@@ -167,7 +167,7 @@ class Premium_Blog extends Widget_Base {
167
/*Grid Spacing*/
168
$this->add_responsive_control('premium_blog_posts_spacing',
169
[
170
- 'label' => esc_html__('Spacing', 'premium-addons-for-elementor'),
171
'type' => Controls_Manager::SLIDER,
172
'size_units' => ['px', '%', "em"],
173
'range' => [
@@ -188,9 +188,9 @@ class Premium_Blog extends Widget_Base {
188
/*Excerpt*/
189
$this->add_control('premium_blog_excerpt',
190
[
191
- 'label' => esc_html__('Excerpt', 'premium-addons-for-elementor'),
192
'type' => Controls_Manager::SWITCHER,
193
- 'description' => esc_html__('Excerpt is used for article summary with a link to the whole entry. The default except length is 55','premium-addons-for-elementor'),
194
'default' => 'yes',
195
]
196
);
@@ -198,7 +198,7 @@ class Premium_Blog extends Widget_Base {
198
/*Excerpt Length*/
199
$this->add_control('premium_blog_excerpt_length',
200
[
201
- 'label' => esc_html__('Excerpt Length', 'premium-addons-for-elementor'),
202
'type' => Controls_Manager::NUMBER,
203
'default' => 55,
204
'label_block' => true,
@@ -211,11 +211,11 @@ class Premium_Blog extends Widget_Base {
211
/*Excerpt Type*/
212
$this->add_control('premium_blog_excerpt_type',
213
[
214
- 'label' => esc_html__('Excerpt Type', 'premium-addons-for-elementor'),
215
'type' => Controls_Manager::SELECT,
216
'options' => [
217
- 'dots' => esc_html__('Dots', 'premium-addons-for-elementor'),
218
- 'link' => esc_html__('Link', 'premium-addons-for-elementor'),
219
],
220
'default' => 'dots',
221
'label_block' => true
@@ -225,9 +225,9 @@ class Premium_Blog extends Widget_Base {
225
/*Excerpt Text*/
226
$this->add_control('premium_blog_excerpt_text',
227
[
228
- 'label' => esc_html__( 'Link Text', 'premium-addons-for-elementor' ),
229
'type' => Controls_Manager::TEXT,
230
- 'default' => esc_html__('continue reading','premium-addons-for-elementor'),
231
'condition' => [
232
'premium_blog_excerpt' => 'yes',
233
'premium_blog_excerpt_type' => 'link'
@@ -238,7 +238,7 @@ class Premium_Blog extends Widget_Base {
238
/*Author Meta*/
239
$this->add_control('premium_blog_author_meta',
240
[
241
- 'label' => esc_html__('Author Meta', 'premium-addons-for-elementor'),
242
'type' => Controls_Manager::SWITCHER,
243
'default' => 'yes',
244
]
@@ -247,7 +247,7 @@ class Premium_Blog extends Widget_Base {
247
/*Date Meta*/
248
$this->add_control('premium_blog_date_meta',
249
[
250
- 'label' => esc_html__('Date Meta', 'premium-addons-for-elementor'),
251
'type' => Controls_Manager::SWITCHER,
252
'default' => 'yes',
253
]
@@ -256,9 +256,9 @@ class Premium_Blog extends Widget_Base {
256
/*Categories Meta*/
257
$this->add_control('premium_blog_categories_meta',
258
[
259
- 'label' => esc_html__('Categories Meta', 'premium-addons-for-elementor'),
260
'type' => Controls_Manager::SWITCHER,
261
- 'description' => esc_html__('Display or hide categories mata','premium-addons-for-elementor'),
262
'default' => 'yes',
263
]
264
);
@@ -266,8 +266,8 @@ class Premium_Blog extends Widget_Base {
266
/*Comments Meta*/
267
$this->add_control('premium_blog_comments_meta',
268
[
269
- 'label' => esc_html__('Comments Meta', 'premium-addons-for-elementor'),
270
- 'description' => esc_html__('Display or hide comments mata','premium-addons-for-elementor'),
271
'type' => Controls_Manager::SWITCHER,
272
'default' => 'yes',
273
]
@@ -276,9 +276,9 @@ class Premium_Blog extends Widget_Base {
276
/*Tags Meta*/
277
$this->add_control('premium_blog_tags_meta',
278
[
279
- 'label' => esc_html__('Tags Meta', 'premium-addons-for-elementor'),
280
'type' => Controls_Manager::SWITCHER,
281
- 'description' => esc_html__('Display or hide post tags','premium-addons-for-elementor'),
282
'default' => 'yes',
283
]
284
);
@@ -286,7 +286,7 @@ class Premium_Blog extends Widget_Base {
286
/*Post Format Icon*/
287
$this->add_control('premium_blog_post_format_icon',
288
[
289
- 'label' => esc_html__( 'Post Format Icon', 'essential-addons-elementor' ),
290
'type' => Controls_Manager::SWITCHER,
291
'default' => 'yes',
292
]
@@ -295,9 +295,9 @@ class Premium_Blog extends Widget_Base {
295
/*Edit Post Meta*/
296
$this->add_control('premium_blog_edit_post',
297
[
298
- 'label' => esc_html__('Edit Post Icon', 'premium-addons-for-elementor'),
299
'type' => Controls_Manager::SWITCHER,
300
- 'description' => esc_html__('Display or hide edit post option','premium-addons-for-elementor'),
301
'default' => 'yes',
302
]
303
);
@@ -305,17 +305,17 @@ class Premium_Blog extends Widget_Base {
305
/*Pagination*/
306
$this->add_control('premium_blog_paging',
307
[
308
- 'label' => esc_html__('Pagination', 'premium-addons-for-elementor'),
309
'type' => Controls_Manager::SWITCHER,
310
- 'description' => esc_html__('Pagination is the process of dividing the posts into discrete pages','premium-addons-for-elementor'),
311
]
312
);
313
314
$this->add_control('premium_blog_new_tab',
315
[
316
- 'label' => esc_html__('Links in New Tab', 'premium-addons-for-elementor'),
317
'type' => Controls_Manager::SWITCHER,
318
- 'description' => esc_html__('Enable links to be opened in a new tab','premium-addons-for-elementor'),
319
'default' => 'yes',
320
]
321
);
@@ -323,8 +323,8 @@ class Premium_Blog extends Widget_Base {
323
/*Number of Posts*/
324
$this->add_control('premium_blog_number_of_posts',
325
[
326
- 'label' => esc_html__('Posts Per Page', 'premium-addons-for-elementor'),
327
- 'description' => esc_html__('Choose how many posts do you want to be displayed per page','premium-addons-for-elementor'),
328
'type' => Controls_Manager::NUMBER,
329
'min' => 1,
330
'default' => 1,
@@ -334,8 +334,8 @@ class Premium_Blog extends Widget_Base {
334
/*Posts Offset*/
335
$this->add_control('premium_blog_offset',
336
[
337
- 'label' => esc_html__( 'Offset Count', 'premium-addons-for-elementor' ),
338
- 'description' => esc_html__('The index of post to start with','premium-addons-for-elementor'),
339
'type' => Controls_Manager::NUMBER,
340
'default' => '0',
341
'min' => '0',
@@ -345,19 +345,19 @@ class Premium_Blog extends Widget_Base {
345
/*Front Text Align*/
346
$this->add_responsive_control('premium_flip_text_align',
347
[
348
- 'label' => esc_html__( 'Alignment', 'premium-addons-for-elementor' ),
349
'type' => Controls_Manager::CHOOSE,
350
'options' => [
351
'left' => [
352
- 'title'=> esc_html__( 'Left', 'premium-addons-for-elementor' ),
353
'icon' => 'fa fa-align-left',
354
],
355
'center' => [
356
- 'title'=> esc_html__( 'Center', 'premium-addons-for-elementor' ),
357
'icon' => 'fa fa-align-center',
358
],
359
'right' => [
360
- 'title'=> esc_html__( 'Right', 'premium-addons-for-elementor' ),
361
'icon' => 'fa fa-align-right',
362
],
363
],
@@ -375,7 +375,7 @@ class Premium_Blog extends Widget_Base {
375
/*Start Color Style Section*/
376
$this->start_controls_section('premium_blog_image_style_section',
377
[
378
- 'label' => esc_html__('Image', 'premium-addons-for-elementor'),
379
'tab' => Controls_Manager::TAB_STYLE,
380
]
381
);
@@ -383,7 +383,7 @@ class Premium_Blog extends Widget_Base {
383
/*Plus Icon Color*/
384
$this->add_control('premium_blog_plus_color',
385
[
386
- 'label' => esc_html__('Icon Color', 'premium-addons-for-elementor'),
387
'type' => Controls_Manager::COLOR,
388
'scheme' => [
389
'type' => Scheme_Color::get_type(),
@@ -398,7 +398,7 @@ class Premium_Blog extends Widget_Base {
398
/*Overlay Color*/
399
$this->add_control('premium_blog_overlay_color',
400
[
401
- 'label' => esc_html__('Overlay Color', 'premium-addons-for-elementor'),
402
'type' => Controls_Manager::COLOR,
403
'scheme' => [
404
'type' => Scheme_Color::get_type(),
@@ -413,7 +413,7 @@ class Premium_Blog extends Widget_Base {
413
/*Bordered Effect Border Color*/
414
$this->add_control('premium_blog_border_effect_color',
415
[
416
- 'label' => esc_html__('Border Color', 'premium-addons-for-elementor'),
417
'type' => Controls_Manager::COLOR,
418
'scheme' => [
419
'type' => Scheme_Color::get_type(),
@@ -433,7 +433,7 @@ class Premium_Blog extends Widget_Base {
433
434
$this->start_controls_section('premium_blog_title_style_section',
435
[
436
- 'label' => esc_html__('Title', 'premium-addons-for-elementor'),
437
'tab' => Controls_Manager::TAB_STYLE,
438
]
439
);
@@ -441,7 +441,7 @@ class Premium_Blog extends Widget_Base {
441
/*Titles Color*/
442
$this->add_control('premium_blog_title_color',
443
[
444
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
445
'type' => Controls_Manager::COLOR,
446
'scheme' => [
447
'type' => Scheme_Color::get_type(),
@@ -465,7 +465,7 @@ class Premium_Blog extends Widget_Base {
465
/*Titles Hover Color*/
466
$this->add_control('premium_blog_title_hover_color',
467
[
468
- 'label' => esc_html__('Hover Color', 'premium-addons-for-elementor'),
469
'type' => Controls_Manager::COLOR,
470
'scheme' => [
471
'type' => Scheme_Color::get_type(),
@@ -481,7 +481,7 @@ class Premium_Blog extends Widget_Base {
481
482
$this->start_controls_section('premium_blog_meta_style_section',
483
[
484
- 'label' => esc_html__('Meta', 'premium-addons-for-elementor'),
485
'tab' => Controls_Manager::TAB_STYLE,
486
]
487
);
@@ -489,7 +489,7 @@ class Premium_Blog extends Widget_Base {
489
/*Meta Color*/
490
$this->add_control('premium_blog_meta_color',
491
[
492
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
493
'type' => Controls_Manager::COLOR,
494
'scheme' => [
495
'type' => Scheme_Color::get_type(),
@@ -514,7 +514,7 @@ class Premium_Blog extends Widget_Base {
514
/*Meta Hover Color*/
515
$this->add_control('premium_blog_meta_hover_color',
516
[
517
- 'label' => esc_html__('Hover Color', 'premium-addons-for-elementor'),
518
'type' => Controls_Manager::COLOR,
519
'scheme' => [
520
'type' => Scheme_Color::get_type(),
@@ -530,7 +530,7 @@ class Premium_Blog extends Widget_Base {
530
531
$this->start_controls_section('premium_blog_content_style_section',
532
[
533
- 'label' => esc_html__('Content', 'premium-addons-for-elementor'),
534
'tab' => Controls_Manager::TAB_STYLE,
535
]
536
);
@@ -538,7 +538,7 @@ class Premium_Blog extends Widget_Base {
538
/*Post Content Color*/
539
$this->add_control('premium_blog_post_content_color',
540
[
541
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
542
'type' => Controls_Manager::COLOR,
543
'scheme' => [
544
'type' => Scheme_Color::get_type(),
@@ -564,7 +564,7 @@ class Premium_Blog extends Widget_Base {
564
/*Content Background Color*/
565
$this->add_control('premium_blog_content_background_color',
566
[
567
- 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
568
'type' => Controls_Manager::COLOR,
569
'default' => '#f5f5f5',
570
'selectors' => [
@@ -577,7 +577,7 @@ class Premium_Blog extends Widget_Base {
577
578
$this->start_controls_section('premium_blog_tags_style_section',
579
[
580
- 'label' => esc_html__('Tags', 'premium-addons-for-elementor'),
581
'tab' => Controls_Manager::TAB_STYLE,
582
]
583
);
@@ -585,7 +585,7 @@ class Premium_Blog extends Widget_Base {
585
/*Tags Color*/
586
$this->add_control('premium_blog_tags_color',
587
[
588
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
589
'type' => Controls_Manager::COLOR,
590
'scheme' => [
591
'type' => Scheme_Color::get_type(),
@@ -610,7 +610,7 @@ class Premium_Blog extends Widget_Base {
610
/*Tags Hover Color*/
611
$this->add_control('premium_blog_tags_hoer_color',
612
[
613
- 'label' => esc_html__('Hover Color', 'premium-addons-for-elementor'),
614
'type' => Controls_Manager::COLOR,
615
'scheme' => [
616
'type' => Scheme_Color::get_type(),
@@ -627,7 +627,7 @@ class Premium_Blog extends Widget_Base {
627
/*Post Format Icon*/
628
$this->start_controls_section('premium_blog_format_style_section',
629
[
630
- 'label' => esc_html__('Post Format Icon', 'premium-addons-for-elementor'),
631
'tab' => Controls_Manager::TAB_STYLE,
632
'condition' => [
633
'premium_blog_post_format_icon' => 'yes'
@@ -637,9 +637,9 @@ class Premium_Blog extends Widget_Base {
637
638
$this->add_control('premium_blog_format_icon_size',
639
[
640
- 'label' => esc_html__('Size', 'premium-addons-for-elementor'),
641
'type' => Controls_Manager::SLIDER,
642
- 'description' => esc_html__('Choose icon size in (PX, EM)', 'premium-addons-for-elementor'),
643
'range' => [
644
'em' => [
645
'min' => 1,
@@ -657,7 +657,7 @@ class Premium_Blog extends Widget_Base {
657
/*Post Format Icon Color*/
658
$this->add_control('premium_blog_format_icon_color',
659
[
660
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
661
'type' => Controls_Manager::COLOR,
662
'scheme' => [
663
'type' => Scheme_Color::get_type(),
@@ -672,7 +672,7 @@ class Premium_Blog extends Widget_Base {
672
/*Post Format Icon Color*/
673
$this->add_control('premium_blog_format_icon_hover_color',
674
[
675
- 'label' => esc_html__('Hover Color', 'premium-addons-for-elementor'),
676
'type' => Controls_Manager::COLOR,
677
'scheme' => [
678
'type' => Scheme_Color::get_type(),
@@ -687,7 +687,7 @@ class Premium_Blog extends Widget_Base {
687
/*Post Format Background Color*/
688
$this->add_control('premium_blog_format_back_color',
689
[
690
- 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
691
'type' => Controls_Manager::COLOR,
692
'scheme' => [
693
'type' => Scheme_Color::get_type(),
@@ -702,7 +702,7 @@ class Premium_Blog extends Widget_Base {
702
/*Post Format Hover Background Color*/
703
$this->add_control('premium_blog_format_back_hover_color',
704
[
705
- 'label' => esc_html__('Hover Background Color', 'premium-addons-for-elementor'),
706
'type' => Controls_Manager::COLOR,
707
'scheme' => [
708
'type' => Scheme_Color::get_type(),
@@ -720,7 +720,7 @@ class Premium_Blog extends Widget_Base {
720
/*Pagination Style*/
721
$this->start_controls_section('premium_blog_pagination_Style',
722
[
723
- 'label' => esc_html__('Pagination Style', 'premium-addons-for-elementor'),
724
'tab' => Controls_Manager::TAB_STYLE,
725
'condition' => [
726
'premium_blog_paging' => 'yes',
@@ -731,13 +731,13 @@ class Premium_Blog extends Widget_Base {
731
732
$this->start_controls_tab('premium_blog_pagination_nomral',
733
[
734
- 'label' => esc_html__('Normal', 'premium-addons-for-elementor'),
735
736
]);
737
738
$this->add_control('prmeium_blog_pagination_color',
739
[
740
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
741
'type' => Controls_Manager::COLOR,
742
'scheme' => [
743
'type' => Scheme_Color::get_type(),
@@ -750,7 +750,7 @@ class Premium_Blog extends Widget_Base {
750
751
$this->add_control('prmeium_blog_pagination_back_color',
752
[
753
- 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
754
'type' => Controls_Manager::COLOR,
755
'scheme' => [
756
'type' => Scheme_Color::get_type(),
@@ -765,13 +765,13 @@ class Premium_Blog extends Widget_Base {
765
766
$this->start_controls_tab('premium_blog_pagination_hover',
767
[
768
- 'label' => esc_html__('Hover', 'premium-addons-for-elementor'),
769
770
]);
771
772
$this->add_control('prmeium_blog_pagination_hover_color',
773
[
774
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
775
'type' => Controls_Manager::COLOR,
776
'scheme' => [
777
'type' => Scheme_Color::get_type(),
@@ -784,7 +784,7 @@ class Premium_Blog extends Widget_Base {
784
785
$this->add_control('prmeium_blog_pagination_back_hover_color',
786
[
787
- 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
788
'type' => Controls_Manager::COLOR,
789
'scheme' => [
790
'type' => Scheme_Color::get_type(),
@@ -839,7 +839,13 @@ class Premium_Blog extends Widget_Base {
839
840
protected function render() {
841
842
- if ( get_query_var('paged') ) { $paged = get_query_var('paged'); } else if ( get_query_var('page') ) { $paged = get_query_var('page'); } else { $paged = 1; }
843
844
// get our input from the widget settings.
845
$settings = $this->get_settings();
@@ -879,116 +885,109 @@ class Premium_Blog extends Widget_Base {
879
break;
880
}
881
882
-
883
-
884
-
885
- ?>
886
- <div class="premium-blog-wrap <?php echo esc_attr($col_number); ?>" data-pa-masonry="<?php echo esc_attr($settings['premium_blog_masonry']); ?>">
887
- <?php
888
- if(count($posts)){
889
- global $post;
890
?>
891
<?php
892
- foreach($posts as $post){
893
- setup_postdata($post);
894
?>
895
- <div class="premium-blog-post-container">
896
- <div class="premium-blog-thumb-effect-wrapper">
897
- <div class="premium-blog-thumbnail-container <?php echo 'premium-blog-' . $image_effect . '-effect';?>">
898
- <a href="<?php the_permalink(); ?>" target="<?php echo esc_attr($target); ?>"><?php the_post_thumbnail('full'); ?></a>
899
- </div>
900
- <div class="premium-blog-effect-container <?php echo 'premium-blog-'. $post_effect . '-effect'; ?>">
901
- <a class="premium-blog-post-link" href="<?php the_permalink(); ?>" target="<?php echo esc_attr($target); ?>"></a>
902
- <?php if( $settings['premium_blog_hover_color_effect'] === 'bordered' ) : ?>
903
- <div class="premium-blog-bordered-border-container"></div>
904
- <?php elseif( $settings['premium_blog_hover_color_effect'] === 'squares' ) : ?>
905
- <div class="premium-blog-squares-square-container"></div>
906
- <?php endif; ?>
907
- </div>
908
- </div>
909
- <div class="premium-blog-content-wrapper <?php echo (!has_post_thumbnail()) ? 'empty-thumb' : ''; ?>">
910
- <div class="premium-blog-inner-container">
911
- <?php if( $settings['premium_blog_post_format_icon'] === 'yes' ) : ?>
912
- <div class="premium-blog-format-container">
913
- <a class="premium-blog-format-link" href="<?php the_permalink(); ?>" title="<?php if( get_post_format() === ' ') : echo 'standard' ; else : echo get_post_format(); endif; ?>" target="<?php echo esc_attr($target); ?>"><i class="premium-blog-format-icon fa fa-<?php if ( get_post_format() === 'aside' ) : echo 'file-text-o'; ?>
914
- <?php elseif ( get_post_format() === 'audio' ) : echo 'music'; ?>
915
- <?php elseif ( get_post_format() === 'gallery' ) : echo 'file-image-o'; ?>
916
- <?php elseif ( get_post_format() === 'image' ) : echo 'picture-o'; ?>
917
- <?php elseif ( get_post_format() === 'link' ) : echo 'link'; ?>
918
- <?php elseif ( get_post_format() === 'quote' ) :echo 'quote-left'; ?>
919
- <?php elseif ( get_post_format() === 'video' ) : echo 'video-camera'; ?>
920
- <?php else : echo 'thumb-tack'; ?>
921
- <?php endif; ?>"></i></a>
922
- </div>
923
- <?php endif; ?>
924
- <div class="premium-blog-entry-container">
925
- <<?php echo $settings['premium_blog_title_tag']; ?> class="premium-blog-entry-title"><a href="<?php the_permalink(); ?>" target="<?php echo esc_attr($target); ?>"><?php the_title(); ?></a></<?php echo $settings['premium_blog_title_tag']; ?>>
926
- <div class="premium-blog-entry-meta" style="<?php if( $settings['premium_blog_post_format_icon'] !== 'yes' ) : echo 'margin-left:0px'; endif; ?>">
927
- <?php if( $settings['premium_blog_author_meta'] === 'yes' ) : ?>
928
- <span class="premium-blog-post-author premium-blog-meta-data"><i class="fa fa-user fa-fw"></i><?php the_author_posts_link();?></span>
929
- <?php endif; ?>
930
- <?php if( $settings['premium_blog_date_meta'] === 'yes' ) : ?>
931
- <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($target); ?>"><?php the_time($date_format); ?></a></span>
932
- <?php endif; ?>
933
- <?php if( $settings['premium_blog_categories_meta'] === 'yes' ) : ?>
934
- <span class="premium-blog-post-categories premium-blog-meta-data"><i class="fa fa-align-left fa-fw"></i><?php the_category(', '); ?></span>
935
- <?php endif; ?>
936
- <?php if( $settings['premium_blog_comments_meta'] === 'yes' ) : ?>
937
- <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($target); ?>"><?php comments_number('0 Comments', '1', '%'); ?> </a></span>
938
- <?php endif; ?>
939
- <?php if( $settings['premium_blog_edit_post'] === 'yes' ) : ?>
940
- <span class="premium-blog-post-edit premium-blog-meta-data"><i class="fa fa-pencil fa-fw"></i><?php edit_post_link(); ?></span>
941
- <?php endif; ?>
942
</div>
943
- </div>
944
- </div>
945
- <div class="premium-blog-post-content" style="<?php if ( $settings['premium_blog_post_format_icon'] !== 'yes' ) : echo 'margin-left:0px;'; endif; ?>">
946
- <?php
947
- if ( $settings['premium_blog_excerpt'] === 'yes' ) :
948
- echo premium_addons_get_excerpt_by_id(get_the_ID(),$settings['premium_blog_excerpt_length'],$excerpt_type,$excerpt_text);
949
- else: the_content();
950
- endif; ?>
951
- </div>
952
- <div class="premium-blog-post-tags-container" style="<?php if( $settings['premium_blog_post_format_icon'] !== 'yes' ) : echo 'margin-left:0px;'; endif; ?>">
953
- <?php if( $settings['premium_blog_tags_meta'] === 'yes' && the_tags() != '' ) : ?>
954
- <span class="premium-blog-post-tags"><i class="fa fa-tags fa-fw"></i><?php the_tags(' ', ', '); ?> </span>
955
- <?php endif; ?>
956
- </div>
957
- </div>
958
- </div>
959
- <?php }?>
960
- <div class="premium-blog-clear-fix"></div>
961
- </div>
962
- <?php if ( $settings['premium_blog_paging'] === 'yes' ) : ?>
963
- <div class="premium-blog-pagination-container">
964
- <?php
965
- $count_posts = wp_count_posts();
966
- $published_posts = $count_posts->publish;
967
-
968
- $page_tot = ceil( ( $published_posts - $offset ) / $settings['premium_blog_number_of_posts'] );
969
- if ( $page_tot > 1 ) {
970
- $big = 999999999;
971
- echo paginate_links( array(
972
- 'base' => str_replace( $big, '%#%',get_pagenum_link( 999999999, false ) ),
973
- 'format' => '?paged=%#%',
974
- 'current' => max( 1, $paged ),
975
- 'total' => $page_tot,
976
- 'prev_next' => true,
977
- 'prev_text' => esc_html__("&lsaquo; Previous"),
978
- 'next_text' => esc_html__("Next &rsaquo;"),
979
- 'end_size' => 1,
980
- 'mid_size' => 2,
981
- 'type' => 'list'
982
- ));
983
- }
984
- ?>
985
- </div>
986
- <?php
987
- endif;
988
- echo $this->get_blog_responsive_style();
989
- wp_reset_postdata();
990
-
991
- }
992
993
}
994
}
40
/* Start Content Section */
41
$this->start_controls_section('premium_blog_general_settings',
42
[
43
+ 'label' => __('Image', 'premium-addons-for-elementor'),
44
]
45
);
46
47
/*Hover Image Effect*/
48
$this->add_control('premium_blog_hover_image_effect',
49
[
50
+ 'label' => __('Hover Effect', 'premium-addons-for-elementor'),
51
'type' => Controls_Manager::SELECT,
52
+ 'description' => __('Choose a hover effect for the image','premium-addons-for-elementor'),
53
'options' => [
54
+ 'none' => __('None', 'premium-addons-for-elementor'),
55
+ 'zoomin' => __('Zoom In', 'premium-addons-for-elementor'),
56
+ 'zoomout'=> __('Zoom Out', 'premium-addons-for-elementor'),
57
+ 'scale' => __('Scale', 'premium-addons-for-elementor'),
58
+ 'gray' => __('Grayscale', 'premium-addons-for-elementor'),
59
+ 'blur' => __('Blur', 'premium-addons-for-elementor'),
60
+ 'bright' => __('Bright', 'premium-addons-for-elementor'),
61
+ 'sepia' => __('Sepia', 'premium-addons-for-elementor'),
62
+ 'trans' => __('Translate', 'premium-addons-for-elementor'),
63
],
64
'default' => 'zoomin',
65
'label_block' => true
69
/*Hover Image Effect*/
70
$this->add_control('premium_blog_hover_color_effect',
71
[
72
+ 'label' => __('Color Effect', 'premium-addons-for-elementor'),
73
'type' => Controls_Manager::SELECT,
74
+ 'description' => __('Choose an overlay color effect','premium-addons-for-elementor'),
75
'options' => [
76
+ 'none' => __('None', 'premium-addons-for-elementor'),
77
+ 'framed' => __('Framed', 'premium-addons-for-elementor'),
78
+ 'diagonal' => __('Diagonal', 'premium-addons-for-elementor'),
79
+ 'bordered' => __('Bordered', 'premium-addons-for-elementor'),
80
+ 'squares' => __('Squares', 'premium-addons-for-elementor'),
81
],
82
'default' => 'framed',
83
'label_block' => true
90
/*Start Content Settings Section*/
91
$this->start_controls_section('premium_blog_content_settings',
92
[
93
+ 'label' => __('Content', 'premium-addons-for-elementor'),
94
]
95
);
96
97
/*Categories Filter*/
98
$this->add_control('premium_blog_categories',
99
[
100
+ 'label' => __( 'Categories', 'essential-addons-elementor' ),
101
'type' => Controls_Manager::SELECT2,
102
+ 'description' => __('Select the categories you want to show','premium-addons-for-elementor'),
103
'label_block' => true,
104
'multiple' => true,
105
'options' => premium_addons_post_type_categories(),
108
109
$this->add_control('premium_blog_title_tag',
110
[
111
+ 'label' => __( 'Title HTML Tag', 'premium-addons-for-elementor' ),
112
+ 'description' => __( 'Select a heading tag for the post title.', 'premium-addons-for-elementor' ),
113
'type' => Controls_Manager::SELECT,
114
'default' => 'h2',
115
'options' => [
127
/*Grid*/
128
$this->add_control('premium_blog_grid',
129
[
130
+ 'label' => __('Grid', 'premium-addons-for-elementor'),
131
'type' => Controls_Manager::SWITCHER,
132
]
133
);
135
/*Masonry*/
136
$this->add_control('premium_blog_masonry',
137
[
138
+ 'label' => __('Masonry', 'premium-addons-for-elementor'),
139
'type' => Controls_Manager::SWITCHER,
140
'return_value' => 'true',
141
'condition' => [
147
/*Grid Number of Columns*/
148
$this->add_control('premium_blog_columns_number',
149
[
150
+ 'label' => __('Number of Columns', 'premium-addons-for-elementor'),
151
'type' => Controls_Manager::SELECT,
152
'options' => [
153
+ '50%' => __('2 Columns', 'premium-addons-for-elementor'),
154
+ '33.33%'=> __('3 Columns', 'premium-addons-for-elementor'),
155
+ '25%' => __('4 Columns', 'premium-addons-for-elementor'),
156
],
157
'default' => '50%',
158
'selectors' => [
167
/*Grid Spacing*/
168
$this->add_responsive_control('premium_blog_posts_spacing',
169
[
170
+ 'label' => __('Spacing', 'premium-addons-for-elementor'),
171
'type' => Controls_Manager::SLIDER,
172
'size_units' => ['px', '%', "em"],
173
'range' => [
188
/*Excerpt*/
189
$this->add_control('premium_blog_excerpt',
190
[
191
+ 'label' => __('Excerpt', 'premium-addons-for-elementor'),
192
'type' => Controls_Manager::SWITCHER,
193
+ 'description' => __('Excerpt is used for article summary with a link to the whole entry. The default except length is 55','premium-addons-for-elementor'),
194
'default' => 'yes',
195
]
196
);
198
/*Excerpt Length*/
199
$this->add_control('premium_blog_excerpt_length',
200
[
201
+ 'label' => __('Excerpt Length', 'premium-addons-for-elementor'),
202
'type' => Controls_Manager::NUMBER,
203
'default' => 55,
204
'label_block' => true,
211
/*Excerpt Type*/
212
$this->add_control('premium_blog_excerpt_type',
213
[
214
+ 'label' => __('Excerpt Type', 'premium-addons-for-elementor'),
215
'type' => Controls_Manager::SELECT,
216
'options' => [
217
+ 'dots' => __('Dots', 'premium-addons-for-elementor'),
218
+ 'link' => __('Link', 'premium-addons-for-elementor'),
219
],
220
'default' => 'dots',
221
'label_block' => true
225
/*Excerpt Text*/
226
$this->add_control('premium_blog_excerpt_text',
227
[
228
+ 'label' => __( 'Link Text', 'premium-addons-for-elementor' ),
229
'type' => Controls_Manager::TEXT,
230
+ 'default' => __('continue reading','premium-addons-for-elementor'),
231
'condition' => [
232
'premium_blog_excerpt' => 'yes',
233
'premium_blog_excerpt_type' => 'link'
238
/*Author Meta*/
239
$this->add_control('premium_blog_author_meta',
240
[
241
+ 'label' => __('Author Meta', 'premium-addons-for-elementor'),
242
'type' => Controls_Manager::SWITCHER,
243
'default' => 'yes',
244
]
247
/*Date Meta*/
248
$this->add_control('premium_blog_date_meta',
249
[
250
+ 'label' => __('Date Meta', 'premium-addons-for-elementor'),
251
'type' => Controls_Manager::SWITCHER,
252
'default' => 'yes',
253
]
256
/*Categories Meta*/
257
$this->add_control('premium_blog_categories_meta',
258
[
259
+ 'label' => __('Categories Meta', 'premium-addons-for-elementor'),
260
'type' => Controls_Manager::SWITCHER,
261
+ 'description' => __('Display or hide categories mata','premium-addons-for-elementor'),
262
'default' => 'yes',
263
]
264
);
266
/*Comments Meta*/
267
$this->add_control('premium_blog_comments_meta',
268
[
269
+ 'label' => __('Comments Meta', 'premium-addons-for-elementor'),
270
+ 'description' => __('Display or hide comments mata','premium-addons-for-elementor'),
271
'type' => Controls_Manager::SWITCHER,
272
'default' => 'yes',
273
]
276
/*Tags Meta*/
277
$this->add_control('premium_blog_tags_meta',
278
[
279
+ 'label' => __('Tags Meta', 'premium-addons-for-elementor'),
280
'type' => Controls_Manager::SWITCHER,
281
+ 'description' => __('Display or hide post tags','premium-addons-for-elementor'),
282
'default' => 'yes',
283
]
284
);
286
/*Post Format Icon*/
287
$this->add_control('premium_blog_post_format_icon',
288
[
289
+ 'label' => __( 'Post Format Icon', 'essential-addons-elementor' ),
290
'type' => Controls_Manager::SWITCHER,
291
'default' => 'yes',
292
]
295
/*Edit Post Meta*/
296
$this->add_control('premium_blog_edit_post',
297
[
298
+ 'label' => __('Edit Post Icon', 'premium-addons-for-elementor'),
299
'type' => Controls_Manager::SWITCHER,
300
+ 'description' => __('Display or hide edit post option','premium-addons-for-elementor'),
301
'default' => 'yes',
302
]
303
);
305
/*Pagination*/
306
$this->add_control('premium_blog_paging',
307
[
308
+ 'label' => __('Pagination', 'premium-addons-for-elementor'),
309
'type' => Controls_Manager::SWITCHER,
310
+ 'description' => __('Pagination is the process of dividing the posts into discrete pages','premium-addons-for-elementor'),
311
]
312
);
313
314
$this->add_control('premium_blog_new_tab',
315
[
316
+ 'label' => __('Links in New Tab', 'premium-addons-for-elementor'),
317
'type' => Controls_Manager::SWITCHER,
318
+ 'description' => __('Enable links to be opened in a new tab','premium-addons-for-elementor'),
319
'default' => 'yes',
320
]
321
);
323
/*Number of Posts*/
324
$this->add_control('premium_blog_number_of_posts',
325
[
326
+ 'label' => __('Posts Per Page', 'premium-addons-for-elementor'),
327
+ 'description' => __('Choose how many posts do you want to be displayed per page','premium-addons-for-elementor'),
328
'type' => Controls_Manager::NUMBER,
329
'min' => 1,
330
'default' => 1,
334
/*Posts Offset*/
335
$this->add_control('premium_blog_offset',
336
[
337
+ 'label' => __( 'Offset Count', 'premium-addons-for-elementor' ),
338
+ 'description' => __('The index of post to start with','premium-addons-for-elementor'),
339
'type' => Controls_Manager::NUMBER,
340
'default' => '0',
341
'min' => '0',
345
/*Front Text Align*/
346
$this->add_responsive_control('premium_flip_text_align',
347
[
348
+ 'label' => __( 'Alignment', 'premium-addons-for-elementor' ),
349
'type' => Controls_Manager::CHOOSE,
350
'options' => [
351
'left' => [
352
+ 'title'=> __( 'Left', 'premium-addons-for-elementor' ),
353
'icon' => 'fa fa-align-left',
354
],
355
'center' => [
356
+ 'title'=> __( 'Center', 'premium-addons-for-elementor' ),
357
'icon' => 'fa fa-align-center',
358
],
359
'right' => [
360
+ 'title'=> __( 'Right', 'premium-addons-for-elementor' ),
361
'icon' => 'fa fa-align-right',
362
],
363
],
375
/*Start Color Style Section*/
376
$this->start_controls_section('premium_blog_image_style_section',
377
[
378
+ 'label' => __('Image', 'premium-addons-for-elementor'),
379
'tab' => Controls_Manager::TAB_STYLE,
380
]
381
);
383
/*Plus Icon Color*/
384
$this->add_control('premium_blog_plus_color',
385
[
386
+ 'label' => __('Icon Color', 'premium-addons-for-elementor'),
387
'type' => Controls_Manager::COLOR,
388
'scheme' => [
389
'type' => Scheme_Color::get_type(),
398
/*Overlay Color*/
399
$this->add_control('premium_blog_overlay_color',
400
[
401
+ 'label' => __('Overlay Color', 'premium-addons-for-elementor'),
402
'type' => Controls_Manager::COLOR,
403
'scheme' => [
404
'type' => Scheme_Color::get_type(),
413
/*Bordered Effect Border Color*/
414
$this->add_control('premium_blog_border_effect_color',
415
[
416
+ 'label' => __('Border Color', 'premium-addons-for-elementor'),
417
'type' => Controls_Manager::COLOR,
418
'scheme' => [
419
'type' => Scheme_Color::get_type(),
433
434
$this->start_controls_section('premium_blog_title_style_section',
435
[
436
+ 'label' => __('Title', 'premium-addons-for-elementor'),
437
'tab' => Controls_Manager::TAB_STYLE,
438
]
439
);
441
/*Titles Color*/
442
$this->add_control('premium_blog_title_color',
443
[
444
+ 'label' => __('Color', 'premium-addons-for-elementor'),
445
'type' => Controls_Manager::COLOR,
446
'scheme' => [
447
'type' => Scheme_Color::get_type(),
465
/*Titles Hover Color*/
466
$this->add_control('premium_blog_title_hover_color',
467
[
468
+ 'label' => __('Hover Color', 'premium-addons-for-elementor'),
469
'type' => Controls_Manager::COLOR,
470
'scheme' => [
471
'type' => Scheme_Color::get_type(),
481
482
$this->start_controls_section('premium_blog_meta_style_section',
483
[
484
+ 'label' => __('Meta', 'premium-addons-for-elementor'),
485
'tab' => Controls_Manager::TAB_STYLE,
486
]
487
);
489
/*Meta Color*/
490
$this->add_control('premium_blog_meta_color',
491
[
492
+ 'label' => __('Color', 'premium-addons-for-elementor'),
493
'type' => Controls_Manager::COLOR,
494
'scheme' => [
495
'type' => Scheme_Color::get_type(),
514
/*Meta Hover Color*/
515
$this->add_control('premium_blog_meta_hover_color',
516
[
517
+ 'label' => __('Hover Color', 'premium-addons-for-elementor'),
518
'type' => Controls_Manager::COLOR,
519
'scheme' => [
520
'type' => Scheme_Color::get_type(),
530
531
$this->start_controls_section('premium_blog_content_style_section',
532
[
533
+ 'label' => __('Content', 'premium-addons-for-elementor'),
534
'tab' => Controls_Manager::TAB_STYLE,
535
]
536
);
538
/*Post Content Color*/
539
$this->add_control('premium_blog_post_content_color',
540
[
541
+ 'label' => __('Color', 'premium-addons-for-elementor'),
542
'type' => Controls_Manager::COLOR,
543
'scheme' => [
544
'type' => Scheme_Color::get_type(),
564
/*Content Background Color*/
565
$this->add_control('premium_blog_content_background_color',
566
[
567
+ 'label' => __('Background Color', 'premium-addons-for-elementor'),
568
'type' => Controls_Manager::COLOR,
569
'default' => '#f5f5f5',
570
'selectors' => [
577
578
$this->start_controls_section('premium_blog_tags_style_section',
579
[
580
+ 'label' => __('Tags', 'premium-addons-for-elementor'),
581
'tab' => Controls_Manager::TAB_STYLE,
582
]
583
);
585
/*Tags Color*/
586
$this->add_control('premium_blog_tags_color',
587
[
588
+ 'label' => __('Color', 'premium-addons-for-elementor'),
589
'type' => Controls_Manager::COLOR,
590
'scheme' => [
591
'type' => Scheme_Color::get_type(),
610
/*Tags Hover Color*/
611
$this->add_control('premium_blog_tags_hoer_color',
612
[
613
+ 'label' => __('Hover Color', 'premium-addons-for-elementor'),
614
'type' => Controls_Manager::COLOR,
615
'scheme' => [
616
'type' => Scheme_Color::get_type(),
627
/*Post Format Icon*/
628
$this->start_controls_section('premium_blog_format_style_section',
629
[
630
+ 'label' => __('Post Format Icon', 'premium-addons-for-elementor'),
631
'tab' => Controls_Manager::TAB_STYLE,
632
'condition' => [
633
'premium_blog_post_format_icon' => 'yes'
637
638
$this->add_control('premium_blog_format_icon_size',
639
[
640
+ 'label' => __('Size', 'premium-addons-for-elementor'),
641
'type' => Controls_Manager::SLIDER,
642
+ 'description' => __('Choose icon size in (PX, EM)', 'premium-addons-for-elementor'),
643
'range' => [
644
'em' => [
645
'min' => 1,
657
/*Post Format Icon Color*/
658
$this->add_control('premium_blog_format_icon_color',
659
[
660
+ 'label' => __('Color', 'premium-addons-for-elementor'),
661
'type' => Controls_Manager::COLOR,
662
'scheme' => [
663
'type' => Scheme_Color::get_type(),
672
/*Post Format Icon Color*/
673
$this->add_control('premium_blog_format_icon_hover_color',
674
[
675
+ 'label' => __('Hover Color', 'premium-addons-for-elementor'),
676
'type' => Controls_Manager::COLOR,
677
'scheme' => [
678
'type' => Scheme_Color::get_type(),
687
/*Post Format Background Color*/
688
$this->add_control('premium_blog_format_back_color',
689
[
690
+ 'label' => __('Background Color', 'premium-addons-for-elementor'),
691
'type' => Controls_Manager::COLOR,
692
'scheme' => [
693
'type' => Scheme_Color::get_type(),
702
/*Post Format Hover Background Color*/
703
$this->add_control('premium_blog_format_back_hover_color',
704
[
705
+ 'label' => __('Hover Background Color', 'premium-addons-for-elementor'),
706
'type' => Controls_Manager::COLOR,
707
'scheme' => [
708
'type' => Scheme_Color::get_type(),
720
/*Pagination Style*/
721
$this->start_controls_section('premium_blog_pagination_Style',
722
[
723
+ 'label' => __('Pagination Style', 'premium-addons-for-elementor'),
724
'tab' => Controls_Manager::TAB_STYLE,
725
'condition' => [
726
'premium_blog_paging' => 'yes',
731
732
$this->start_controls_tab('premium_blog_pagination_nomral',
733
[
734
+ 'label' => __('Normal', 'premium-addons-for-elementor'),
735
736
]);
737
738
$this->add_control('prmeium_blog_pagination_color',
739
[
740
+ 'label' => __('Color', 'premium-addons-for-elementor'),
741
'type' => Controls_Manager::COLOR,
742
'scheme' => [
743
'type' => Scheme_Color::get_type(),
750
751
$this->add_control('prmeium_blog_pagination_back_color',
752
[
753
+ 'label' => __('Background Color', 'premium-addons-for-elementor'),
754
'type' => Controls_Manager::COLOR,
755
'scheme' => [
756
'type' => Scheme_Color::get_type(),
765
766
$this->start_controls_tab('premium_blog_pagination_hover',
767
[
768
+ 'label' => __('Hover', 'premium-addons-for-elementor'),
769
770
]);
771
772
$this->add_control('prmeium_blog_pagination_hover_color',
773
[
774
+ 'label' => __('Color', 'premium-addons-for-elementor'),
775
'type' => Controls_Manager::COLOR,
776
'scheme' => [
777
'type' => Scheme_Color::get_type(),
784
785
$this->add_control('prmeium_blog_pagination_back_hover_color',
786
[
787
+ 'label' => __('Background Color', 'premium-addons-for-elementor'),
788
'type' => Controls_Manager::COLOR,
789
'scheme' => [
790
'type' => Scheme_Color::get_type(),
839
840
protected function render() {
841
842
+ if ( get_query_var('paged') ) {
843
+ $paged = get_query_var('paged');
844
+ } elseif ( get_query_var('page') ) {
845
+ $paged = get_query_var('page');
846
+ } else {
847
+ $paged = 1;
848
+ }
849
850
// get our input from the widget settings.
851
$settings = $this->get_settings();
885
break;
886
}
887
888
?>
889
+ <div class="premium-blog-wrap <?php echo esc_attr($col_number); ?>" data-pa-masonry="<?php echo esc_attr($settings['premium_blog_masonry']); ?>">
890
<?php
891
+ if( count( $posts ) ){
892
+ global $post;
893
+ foreach($posts as $post){
894
+ setup_postdata($post);
895
?>
896
+ <div class="premium-blog-post-container">
897
+ <div class="premium-blog-thumb-effect-wrapper">
898
+ <div class="premium-blog-thumbnail-container <?php echo 'premium-blog-' . $image_effect . '-effect';?>">
899
+ <a href="<?php the_permalink(); ?>" target="<?php echo esc_attr($target); ?>"><?php the_post_thumbnail('full'); ?></a>
900
+ </div>
901
+ <div class="premium-blog-effect-container <?php echo 'premium-blog-'. $post_effect . '-effect'; ?>">
902
+ <a class="premium-blog-post-link" href="<?php the_permalink(); ?>" target="<?php echo esc_attr($target); ?>"></a>
903
+ <?php if( $settings['premium_blog_hover_color_effect'] === 'bordered' ) : ?>
904
+ <div class="premium-blog-bordered-border-container"></div>
905
+ <?php elseif( $settings['premium_blog_hover_color_effect'] === 'squares' ) : ?>
906
+ <div class="premium-blog-squares-square-container"></div>
907
+ <?php endif; ?>
908
+ </div>
909
+ </div>
910
+ <div class="premium-blog-content-wrapper <?php echo (!has_post_thumbnail()) ? 'empty-thumb' : ''; ?>">
911
+ <div class="premium-blog-inner-container">
912
+ <?php if( $settings['premium_blog_post_format_icon'] === 'yes' ) : ?>
913
+ <div class="premium-blog-format-container">
914
+ <a class="premium-blog-format-link" href="<?php the_permalink(); ?>" title="<?php if( get_post_format() === ' ') : echo 'standard' ; else : echo get_post_format(); endif; ?>" target="<?php echo esc_attr($target); ?>"><i class="premium-blog-format-icon fa fa-<?php if ( get_post_format() === 'aside' ) : echo 'file-text-o'; ?>
915
+ <?php elseif ( get_post_format() === 'audio' ) : echo 'music'; ?>
916
+ <?php elseif ( get_post_format() === 'gallery' ) : echo 'file-image-o'; ?>
917
+ <?php elseif ( get_post_format() === 'image' ) : echo 'picture-o'; ?>
918
+ <?php elseif ( get_post_format() === 'link' ) : echo 'link'; ?>
919
+ <?php elseif ( get_post_format() === 'quote' ) :echo 'quote-left'; ?>
920
+ <?php elseif ( get_post_format() === 'video' ) : echo 'video-camera'; ?>
921
+ <?php else : echo 'thumb-tack'; ?>
922
+ <?php endif; ?>"></i></a>
923
+ </div>
924
+ <?php endif; ?>
925
+ <div class="premium-blog-entry-container">
926
+ <<?php echo $settings['premium_blog_title_tag']; ?> class="premium-blog-entry-title"><a href="<?php the_permalink(); ?>" target="<?php echo esc_attr($target); ?>"><?php the_title(); ?></a></<?php echo $settings['premium_blog_title_tag']; ?>>
927
+ <div class="premium-blog-entry-meta" style="<?php if( $settings['premium_blog_post_format_icon'] !== 'yes' ) : echo 'margin-left:0px'; endif; ?>">
928
+ <?php if( $settings['premium_blog_author_meta'] === 'yes' ) : ?>
929
+ <span class="premium-blog-post-author premium-blog-meta-data"><i class="fa fa-user fa-fw"></i><?php the_author_posts_link();?></span>
930
+ <?php endif; ?>
931
+ <?php if( $settings['premium_blog_date_meta'] === 'yes' ) : ?>
932
+ <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($target); ?>"><?php the_time($date_format); ?></a></span>
933
+ <?php endif; ?>
934
+ <?php if( $settings['premium_blog_categories_meta'] === 'yes' ) : ?>
935
+ <span class="premium-blog-post-categories premium-blog-meta-data"><i class="fa fa-align-left fa-fw"></i><?php the_category(', '); ?></span>
936
+ <?php endif; ?>
937
+ <?php if( $settings['premium_blog_comments_meta'] === 'yes' ) : ?>
938
+ <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($target); ?>"><?php comments_number('0 Comments', '1', '%'); ?> </a></span>
939
+ <?php endif; ?>
940
+ <?php if( $settings['premium_blog_edit_post'] === 'yes' ) : ?>
941
+ <span class="premium-blog-post-edit premium-blog-meta-data"><i class="fa fa-pencil fa-fw"></i><?php edit_post_link(); ?></span>
942
+ <?php endif; ?>
943
+ </div>
944
+ </div>
945
+ </div>
946
+ <div class="premium-blog-post-content" style="<?php if ( $settings['premium_blog_post_format_icon'] !== 'yes' ) : echo 'margin-left:0px;'; endif; ?>">
947
+ <?php
948
+ if ( $settings['premium_blog_excerpt'] === 'yes' ) :
949
+ echo premium_addons_get_excerpt_by_id(get_the_ID(),$settings['premium_blog_excerpt_length'],$excerpt_type,$excerpt_text);
950
+ else: the_content();
951
+ endif; ?>
952
+ </div>
953
+ <div class="premium-blog-post-tags-container" style="<?php if( $settings['premium_blog_post_format_icon'] !== 'yes' ) : echo 'margin-left:0px;'; endif; ?>">
954
+ <?php if( $settings['premium_blog_tags_meta'] === 'yes' && the_tags() != '' ) : ?>
955
+ <span class="premium-blog-post-tags"><i class="fa fa-tags fa-fw"></i><?php the_tags(' ', ', '); ?> </span>
956
+ <?php endif; ?>
957
+ </div>
958
+ </div>
959
</div>
960
+ <?php }?>
961
+ <div class="premium-blog-clear-fix"></div>
962
+ </div>
963
+ <?php if ( $settings['premium_blog_paging'] === 'yes' ) : ?>
964
+ <div class="premium-blog-pagination-container">
965
+ <?php
966
+ $count_posts = wp_count_posts();
967
+ $published_posts = $count_posts->publish;
968
969
+ $page_tot = ceil( ( $published_posts - $offset ) / $settings['premium_blog_number_of_posts'] );
970
+ if ( $page_tot > 1 ) {
971
+ $big = 999999999;
972
+ echo paginate_links( array(
973
+ 'base' => str_replace( $big, '%#%',get_pagenum_link( 999999999, false ) ),
974
+ 'format' => '?paged=%#%',
975
+ 'current' => max( 1, $paged ),
976
+ 'total' => $page_tot,
977
+ 'prev_next' => true,
978
+ 'prev_text' => sprintf( "&lsaquo; %s", __("Previous","premium-addons-for-elementor") ),
979
+ 'next_text' => sprintf( "%s &rsaquo;", __("Next","premium-addons-for-elementor") ),
980
+ 'end_size' => 1,
981
+ 'mid_size' => 2,
982
+ 'type' => 'list'
983
+ ));
984
+ }
985
+ ?>
986
+ </div>
987
+ <?php
988
+ endif;
989
+ echo $this->get_blog_responsive_style();
990
+ wp_reset_postdata();
991
+ }
992
}
993
}
widgets/premium-button.php CHANGED
@@ -35,28 +35,28 @@ class Premium_Button extends Widget_Base {
35
/*Start Button Content Section */
36
$this->start_controls_section('premium_button_general_section',
37
[
38
- 'label' => esc_html__('Button', 'premium-addons-for-elementor'),
39
]
40
);
41
42
/*Button Text*/
43
$this->add_control('premium_button_text',
44
[
45
- 'label' => esc_html__('Text', 'premium-addons-for-elementor'),
46
'type' => Controls_Manager::TEXT,
47
'dynamic' => [ 'active' => true ],
48
- 'default' => esc_html__('Click Me','premium-addons-for-elementor'),
49
'label_block' => true,
50
]
51
);
52
53
$this->add_control('premium_button_link_selection',
54
[
55
- 'label' => esc_html__('Link Type', 'premium-addons-for-elementor'),
56
'type' => Controls_Manager::SELECT,
57
'options' => [
58
- 'url' => esc_html__('URL', 'premium-addons-for-elementor'),
59
- 'link' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
60
],
61
'default' => 'url',
62
'label_block' => true,
@@ -65,7 +65,7 @@ class Premium_Button extends Widget_Base {
65
66
$this->add_control('premium_button_link',
67
[
68
- 'label' => esc_html__('Link', 'premium-addons-for-elementor'),
69
'type' => Controls_Manager::URL,
70
'default' => [
71
'url' => '#',
@@ -81,7 +81,7 @@ class Premium_Button extends Widget_Base {
81
82
$this->add_control('premium_button_existing_link',
83
[
84
- 'label' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
85
'type' => Controls_Manager::SELECT2,
86
'options' => $this->getTemplateInstance()->get_all_post(),
87
'condition' => [
@@ -96,73 +96,71 @@ class Premium_Button extends Widget_Base {
96
/*Button Hover Effect*/
97
$this->add_control('premium_button_hover_effect',
98
[
99
- 'label' => esc_html__('Hover Effect', 'premium-addons-for-elementor'),
100
'type' => Controls_Manager::SELECT,
101
'default' => 'none',
102
'options' => [
103
- 'none' => esc_html__('None'),
104
- 'style1' => esc_html__('Slide'),
105
- 'style2' => esc_html__('Shutter'),
106
- 'style3' => esc_html__('Icon Fade'),
107
- 'style4' => esc_html__('Icon Slide'),
108
- 'style5' => esc_html__('In & Out'),
109
- ],
110
'label_block' => true,
111
]
112
);
113
114
$this->add_control('premium_button_style1_dir',
115
- [
116
- 'label' => esc_html__('Slide Direction', 'premium-addons-for-elementor'),
117
- 'type' => Controls_Manager::SELECT,
118
- 'default' => 'bottom',
119
- 'options' => [
120
- 'bottom' => esc_html__('Top to Bottom'),
121
- 'top' => esc_html__('Bottom to Top'),
122
- 'left' => esc_html__('Right to Left'),
123
- 'right' => esc_html__('Left to Right'),
124
- ],
125
- 'condition' => [
126
- 'premium_button_hover_effect' => 'style1',
127
- ],
128
- 'label_block' => true,
129
- ]
130
- );
131
132
$this->add_control('premium_button_style2_dir',
133
[
134
- 'label' => esc_html__('Shutter Direction', 'premium-addons-for-elementor'),
135
'type' => Controls_Manager::SELECT,
136
'default' => 'shutouthor',
137
'options' => [
138
- 'shutinhor' => esc_html__('Shutter in Horizontal'),
139
- 'shutinver' => esc_html__('Shutter in Vertical'),
140
- 'shutoutver' => esc_html__('Shutter out Horizontal'),
141
- 'shutouthor' => esc_html__('Shutter out Vertical'),
142
- 'scshutoutver' => esc_html__('Scaled Shutter Vertical'),
143
- 'scshutouthor' => esc_html__('Scaled Shutter Horizontal'),
144
- 'dshutinver' => esc_html__('Tilted Left'),
145
- 'dshutinhor' => esc_html__('Tilted Right'),
146
-
147
-
148
- ],
149
'condition' => [
150
'premium_button_hover_effect' => 'style2',
151
- ],
152
'label_block' => true,
153
]
154
);
155
156
$this->add_control('premium_button_style4_dir',
157
[
158
- 'label' => esc_html__('Slide Direction', 'premium-addons-for-elementor'),
159
'type' => Controls_Manager::SELECT,
160
'default' => 'bottom',
161
'options' => [
162
- 'top' => esc_html__('Top'),
163
- 'bottom' => esc_html__('Bottom'),
164
- 'left' => esc_html__('Left'),
165
- 'right' => esc_html__('Right'),
166
],
167
'condition' => [
168
'premium_button_hover_effect' => 'style4',
@@ -173,14 +171,14 @@ class Premium_Button extends Widget_Base {
173
174
$this->add_control('premium_button_style5_dir',
175
[
176
- 'label' => esc_html__('Style', 'premium-addons-for-elementor'),
177
'type' => Controls_Manager::SELECT,
178
'default' => 'radialin',
179
'options' => [
180
- 'radialin' => esc_html__('Radial In'),
181
- 'radialout' => esc_html__('Radial Out'),
182
- 'rectin' => esc_html__('Rectangle In'),
183
- 'rectout' => esc_html__('Rectangle Out'),
184
],
185
'condition' => [
186
'premium_button_hover_effect' => 'style5',
@@ -192,19 +190,19 @@ class Premium_Button extends Widget_Base {
192
/*Button Icon Switcher*/
193
$this->add_control('premium_button_icon_switcher',
194
[
195
- 'label' => esc_html__('Icon', 'premium-addons-for-elementor'),
196
'type' => Controls_Manager::SWITCHER,
197
'condition' => [
198
'premium_button_hover_effect!' => 'style4'
199
],
200
- 'description' => esc_html__('Enable or disable button icon','premium-addons-for-elementor'),
201
]
202
);
203
204
/*Button Icon Selection*/
205
$this->add_control('premium_button_icon_selection',
206
[
207
- 'label' => esc_html__('Icon', 'premium-addons-for-elementor'),
208
'type' => Controls_Manager::ICON,
209
'default' => 'fa fa-bars',
210
'condition' => [
@@ -218,7 +216,7 @@ class Premium_Button extends Widget_Base {
218
/*Style 4 Icon Selection*/
219
$this->add_control('premium_button_style4_icon_selection',
220
[
221
- 'label' => esc_html__('Icon', 'premium-addons-for-elementor'),
222
'type' => Controls_Manager::ICON,
223
'default' => 'fa fa-bars',
224
'condition' => [
@@ -230,12 +228,12 @@ class Premium_Button extends Widget_Base {
230
231
$this->add_control('premium_button_icon_position',
232
[
233
- 'label' => esc_html__('Icon Position', 'premium-addons-for-elementor'),
234
'type' => Controls_Manager::SELECT,
235
'default' => 'before',
236
'options' => [
237
- 'before' => esc_html__('Before', 'premium-addons-for-elementor'),
238
- 'after' => esc_html__('After', 'premium-addons-for-elementor'),
239
],
240
'condition' => [
241
'premium_button_icon_switcher' => 'yes',
@@ -247,7 +245,7 @@ class Premium_Button extends Widget_Base {
247
248
$this->add_control('premium_button_icon_before_size',
249
[
250
- 'label' => esc_html__('Icon Size', 'premium-addons-for-elementor'),
251
'type' => Controls_Manager::SLIDER,
252
'condition' => [
253
'premium_button_icon_switcher' => 'yes',
@@ -261,7 +259,7 @@ class Premium_Button extends Widget_Base {
261
262
$this->add_control('premium_button_icon_style4_size',
263
[
264
- 'label' => esc_html__('Icon Size', 'premium-addons-for-elementor'),
265
'type' => Controls_Manager::SLIDER,
266
'condition' => [
267
'premium_button_hover_effect' => 'style4'
@@ -275,7 +273,7 @@ class Premium_Button extends Widget_Base {
275
if(!$this->check_rtl()){
276
$this->add_control('premium_button_icon_before_spacing',
277
[
278
- 'label' => esc_html__('Icon Spacing', 'premium-addons-for-elementor'),
279
'type' => Controls_Manager::SLIDER,
280
'condition' => [
281
'premium_button_icon_switcher' => 'yes',
@@ -296,7 +294,7 @@ class Premium_Button extends Widget_Base {
296
if(!$this->check_rtl()){
297
$this->add_control('premium_button_icon_after_spacing',
298
[
299
- 'label' => esc_html__('Icon Spacing', 'premium-addons-for-elementor'),
300
'type' => Controls_Manager::SLIDER,
301
'condition' => [
302
'premium_button_icon_switcher' => 'yes',
@@ -317,7 +315,7 @@ class Premium_Button extends Widget_Base {
317
if($this->check_rtl()){
318
$this->add_control('premium_button_icon_rtl_before_spacing',
319
[
320
- 'label' => esc_html__('Icon Spacing', 'premium-addons-for-elementor'),
321
'type' => Controls_Manager::SLIDER,
322
'condition' => [
323
'premium_button_icon_switcher' => 'yes',
@@ -338,7 +336,7 @@ class Premium_Button extends Widget_Base {
338
if($this->check_rtl()){
339
$this->add_control('premium_button_icon_rtl_after_spacing',
340
[
341
- 'label' => esc_html__('Icon Spacing', 'premium-addons-for-elementor'),
342
'type' => Controls_Manager::SLIDER,
343
'condition' => [
344
'premium_button_icon_switcher' => 'yes',
@@ -358,7 +356,7 @@ class Premium_Button extends Widget_Base {
358
359
$this->add_control('premium_button_icon_style3_before_transition',
360
[
361
- 'label' => esc_html__('Icon Spacing', 'premium-addons-for-elementor'),
362
'type' => Controls_Manager::SLIDER,
363
'condition' => [
364
'premium_button_icon_switcher' => 'yes',
@@ -379,7 +377,7 @@ class Premium_Button extends Widget_Base {
379
380
$this->add_control('premium_button_icon_style3_after_transition',
381
[
382
- 'label' => esc_html__('Icon Spacing', 'premium-addons-for-elementor'),
383
'type' => Controls_Manager::SLIDER,
384
'condition' => [
385
'premium_button_icon_switcher' => 'yes',
@@ -401,14 +399,14 @@ class Premium_Button extends Widget_Base {
401
/*Button Size*/
402
$this->add_control('premium_button_size',
403
[
404
- 'label' => esc_html__('Size', 'premium-addons-for-elementor'),
405
'type' => Controls_Manager::SELECT,
406
'default' => 'lg',
407
'options' => [
408
- 'sm' => esc_html__('Small'),
409
- 'md' => esc_html__('Medium'),
410
- 'lg' => esc_html__('Large'),
411
- 'block' => esc_html__('Block'),
412
],
413
'label_block' => true,
414
'separator' => 'before',
@@ -418,7 +416,7 @@ class Premium_Button extends Widget_Base {
418
/*Button Align*/
419
$this->add_responsive_control('premium_button_align',
420
[
421
- 'label' => esc_html__( 'Alignment', 'premium-addons-for-elementor' ),
422
'type' => Controls_Manager::CHOOSE,
423
'options' => [
424
'left' => [
@@ -443,7 +441,7 @@ class Premium_Button extends Widget_Base {
443
444
$this->add_control('premium_button_event_switcher',
445
[
446
- 'label' => esc_html__('onclick Event', 'premium-addons-for-elementor'),
447
'type' => Controls_Manager::SWITCHER,
448
'separator' => 'before',
449
]
@@ -451,7 +449,7 @@ class Premium_Button extends Widget_Base {
451
452
$this->add_control('premium_button_event_function',
453
[
454
- 'label' => esc_html__('Example: myFunction();', 'premium-addons-for-elementor'),
455
'type' => Controls_Manager::TEXTAREA,
456
'condition' => [
457
'premium_button_event_switcher' => 'yes',
@@ -465,7 +463,7 @@ class Premium_Button extends Widget_Base {
465
/*Start Styling Section*/
466
$this->start_controls_section('premium_button_style_section',
467
[
468
- 'label' => esc_html__('Button', 'premium-addons-for-elementor'),
469
'tab' => Controls_Manager::TAB_STYLE,
470
]
471
);
@@ -483,13 +481,13 @@ class Premium_Button extends Widget_Base {
483
484
$this->start_controls_tab('premium_button_style_normal',
485
[
486
- 'label' => esc_html__('Normal', 'premium-addons-for-elementor'),
487
]
488
);
489
490
$this->add_control('premium_button_text_color_normal',
491
[
492
- 'label' => esc_html__('Text Color', 'premium-addons-for-elementor'),
493
'type' => Controls_Manager::COLOR,
494
'scheme' => [
495
'type' => Scheme_Color::get_type(),
@@ -502,7 +500,7 @@ class Premium_Button extends Widget_Base {
502
503
$this->add_control('premium_button_icon_color_normal',
504
[
505
- 'label' => esc_html__('Icon Color', 'premium-addons-for-elementor'),
506
'type' => Controls_Manager::COLOR,
507
'scheme' => [
508
'type' => Scheme_Color::get_type(),
@@ -519,7 +517,7 @@ class Premium_Button extends Widget_Base {
519
520
$this->add_control('premium_button_background_normal',
521
[
522
- 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
523
'type' => Controls_Manager::COLOR,
524
'scheme' => [
525
'type' => Scheme_Color::get_type(),
@@ -543,7 +541,7 @@ class Premium_Button extends Widget_Base {
543
/*Button Border Radius*/
544
$this->add_control('premium_button_border_radius_normal',
545
[
546
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
547
'type' => Controls_Manager::SLIDER,
548
'size_units' => ['px', '%' ,'em'],
549
'selectors' => [
@@ -556,7 +554,7 @@ class Premium_Button extends Widget_Base {
556
$this->add_group_control(
557
Group_Control_Text_Shadow::get_type(),
558
[
559
- 'label' => esc_html__('Icon Shadow','premium-addons-for-elementor'),
560
'name' => 'premium_button_icon_shadow_normal',
561
'selector' => '{{WRAPPER}} .premium-button-text-icon-wrapper i',
562
'condition' => [
@@ -570,7 +568,7 @@ class Premium_Button extends Widget_Base {
570
$this->add_group_control(
571
Group_Control_Text_Shadow::get_type(),
572
[
573
- 'label' => esc_html__('Text Shadow','premium-addons-for-elementor'),
574
'name' => 'premium_button_text_shadow_normal',
575
'selector' => '{{WRAPPER}} .premium-button-text-icon-wrapper span',
576
]
@@ -580,7 +578,7 @@ class Premium_Button extends Widget_Base {
580
$this->add_group_control(
581
Group_Control_Box_Shadow::get_type(),
582
[
583
- 'label' => esc_html__('Button Shadow','premium-addons-for-elementor'),
584
'name' => 'premium_button_box_shadow_normal',
585
'selector' => '{{WRAPPER}} .premium-button',
586
]
@@ -589,7 +587,7 @@ class Premium_Button extends Widget_Base {
589
/*Button Margin*/
590
$this->add_responsive_control('premium_button_margin_normal',
591
[
592
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
593
'type' => Controls_Manager::DIMENSIONS,
594
'size_units' => ['px', 'em', '%'],
595
'selectors' => [
@@ -600,7 +598,7 @@ class Premium_Button extends Widget_Base {
600
/*Button Padding*/
601
$this->add_responsive_control('premium_button_padding_normal',
602
[
603
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
604
'type' => Controls_Manager::DIMENSIONS,
605
'size_units' => ['px', 'em', '%'],
606
'selectors' => [
@@ -612,13 +610,13 @@ class Premium_Button extends Widget_Base {
612
613
$this->start_controls_tab('premium_button_style_hover',
614
[
615
- 'label' => esc_html__('Hover', 'premium-addons-for-elementor'),
616
]
617
);
618
619