Premium Addons for Elementor - Version 2.6.2

Version Description

  • Tweak: Premium Title widget performance enhanced.
  • Tweak: Premium Image Separator widget performance enhanced.
Download this release

Release Info

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

Code changes from version 2.6.1 to 2.6.2

admin/settings/version-control.php CHANGED
@@ -80,7 +80,7 @@ class PA_Version_Control {
80
<tr class="pa-roll-row">
81
<th>Rollback Version</th>
82
<td>
83
- <div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 2.6.0/a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ) ); ?> </div>
84
<p class="pa-roll-desc"><span>Warning: Please backup your database before making the rollback.</span></p>
85
</td>
86
</tr>
80
<tr class="pa-roll-row">
81
<th>Rollback Version</th>
82
<td>
83
+ <div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 2.6.1</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ) ); ?> </div>
84
<p class="pa-roll-desc"><span>Warning: Please backup your database before making the rollback.</span></p>
85
</td>
86
</tr>
premium-addons-for-elementor.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: Premium Addons for Elementor
4
Description: Premium Addons Plugin Includes 20 premium widgets for Elementor Page Builder.
5
Plugin URI: https://premiumaddons.com
6
- Version: 2.6.1
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.6.1');
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.6.0');
31
32
/**
33
* Loading text domain, Including required files
3
Plugin Name: Premium Addons for Elementor
4
Description: Premium Addons Plugin Includes 20 premium widgets for Elementor Page Builder.
5
Plugin URI: https://premiumaddons.com
6
+ Version: 2.6.2
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.6.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.6.1');
31
32
/**
33
* Loading text domain, Including required files
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: http://premiumaddons.com
5
Requires at least: 4.5
6
Tested up to: 4.9.8
7
Requires PHP: 5.4
8
- Stable tag: 2.6.1
9
License: GPL v3.0
10
License URI: https://opensource.org/licenses/GPL-3.0
11
@@ -135,6 +135,11 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
135
136
== Changelog ==
137
138
= 2.6.1 =
139
140
- Tweak: Added enable/disable related videos option in Premium Video Box widget.
5
Requires at least: 4.5
6
Tested up to: 4.9.8
7
Requires PHP: 5.4
8
+ Stable tag: 2.6.2
9
License: GPL v3.0
10
License URI: https://opensource.org/licenses/GPL-3.0
11
135
136
== Changelog ==
137
138
+ = 2.6.2 =
139
+
140
+ - Tweak: Premium Title widget performance enhanced.
141
+ - Tweak: Premium Image Separator widget performance enhanced.
142
+
143
= 2.6.1 =
144
145
- Tweak: Added enable/disable related videos option in Premium Video Box widget.
widgets/premium-imageseparator.php CHANGED
@@ -204,29 +204,54 @@ class Premium_Image_Separator_Widget extends Widget_Base
204
205
}
206
207
- protected function render($instance = [])
208
- {
209
// get our input from the widget settings.
210
$settings = $this->get_settings();
211
212
$link_type = $settings['premium_image_separator_link_type'];
213
214
- if ($link_type == 'url') {
215
- $link_url = $settings['premium_image_separator_image_link'];
216
- } elseif ($link_type == 'link') {
217
- $link_url = get_permalink($settings['premium_image_separator_existing_page']);
218
- }
219
- ?>
220
221
- <div class="premium-image-separator-container">
222
223
- <img alt="image separator" class="img-responsive" src="<?php echo $settings['premium_image_separator_image']['url']; ?>">
224
<?php if ( $settings['premium_image_separator_link_switcher'] == 'yes' ) : ?>
225
<a class="premium-image-separator-link" href="<?php echo $link_url; ?>" target="_<?php echo $settings['premium_image_separator_link_target']; ?>" title="<?php echo $settings['premium_image_separator_image_link_text']; ?>">
226
</a>
227
<?php endif;?>
228
- </div>
229
<?php
230
}
231
}
232
Plugin::instance()->widgets_manager->register_widget_type(new Premium_Image_Separator_Widget());
204
205
}
206
207
+ protected function render($instance = []) {
208
// get our input from the widget settings.
209
$settings = $this->get_settings();
210
211
$link_type = $settings['premium_image_separator_link_type'];
212
213
+ $link_url = ( 'url' == $link_type ) ? $settings['premium_image_separator_image_link'] : get_permalink( $settings['premium_image_separator_existing_page'] );
214
+ ?>
215
216
+ <div class="premium-image-separator-container">
217
218
+ <img alt="image separator" class="img-responsive" src="<?php echo $settings['premium_image_separator_image']['url']; ?>">
219
<?php if ( $settings['premium_image_separator_link_switcher'] == 'yes' ) : ?>
220
<a class="premium-image-separator-link" href="<?php echo $link_url; ?>" target="_<?php echo $settings['premium_image_separator_link_target']; ?>" title="<?php echo $settings['premium_image_separator_image_link_text']; ?>">
221
</a>
222
<?php endif;?>
223
+ </div>
224
<?php
225
}
226
+
227
+ protected function _content_template() {
228
+ ?>
229
+ <#
230
+ var linkType = settings.premium_image_separator_link_type,
231
+
232
+ imgUrl = settings.premium_image_separator_image.url,
233
+
234
+ linkSwitch = settings.premium_image_separator_link_switcher,
235
+
236
+ linkTarget = settings.premium_image_separator_link_target,
237
+
238
+ linkTitle = settings.premium_image_separator_image_link_text,
239
+
240
+ linkUrl = ( 'url' == linkType ) ? settings.premium_image_separator_image_link : settings.premium_image_separator_existing_page;
241
+ #>
242
+
243
+ <div class="premium-image-separator-container">
244
+ <img alt="image separator" class="img-responsive" src="{{ imgUrl }}">
245
+ <#
246
+ if( 'yes' == linkSwitch ) { #>
247
+
248
+ <a class="premium-image-separator-link" href="{{ linkUrl }}" target="_{{ linkTarget }}" title="{{ linkTitle }}"></a>
249
+
250
+ <# }
251
+ #>
252
+ </div>
253
+
254
+ <?php
255
+ }
256
}
257
Plugin::instance()->widgets_manager->register_widget_type(new Premium_Image_Separator_Widget());
widgets/premium-title.php CHANGED
@@ -542,8 +542,7 @@ class Premium_Title_Widget extends Widget_Base
542
543
}
544
545
- protected function render($instance = [])
546
- {
547
// get our input from the widget settings.
548
$settings = $this->get_settings_for_display();
549
@@ -552,7 +551,7 @@ class Premium_Title_Widget extends Widget_Base
552
$title_tag = $settings['premium_title_tag'];
553
554
$selected_style = $settings['premium_title_style'];
555
- ?>
556
557
<div class="premium-title-container <?php echo $selected_style; ?>">
558
<<?php echo $title_tag ; ?> class="premium-title-header premium-title-<?php echo $selected_style; ?>">
@@ -568,5 +567,44 @@ class Premium_Title_Widget extends Widget_Base
568
569
<?php
570
}
571
}
572
Plugin::instance()->widgets_manager->register_widget_type(new Premium_Title_Widget());
542
543
}
544
545
+ protected function render($instance = []) {
546
// get our input from the widget settings.
547
$settings = $this->get_settings_for_display();
548
551
$title_tag = $settings['premium_title_tag'];
552
553
$selected_style = $settings['premium_title_style'];
554
+ ?>
555
556
<div class="premium-title-container <?php echo $selected_style; ?>">
557
<<?php echo $title_tag ; ?> class="premium-title-header premium-title-<?php echo $selected_style; ?>">
567
568
<?php
569
}
570
+
571
+ protected function _content_template() {
572
+ ?>
573
+ <#
574
+
575
+ view.addInlineEditingAttributes('premium_title_text', 'none');
576
+
577
+ var titleTag = settings.premium_title_tag,
578
+
579
+ selectedStyle = settings.premium_title_style,
580
+
581
+ titleTag = settings.premium_title_tag,
582
+
583
+ titleIcon = settings.premium_title_icon,
584
+
585
+ titleText = settings.premium_title_text;
586
+
587
+ view.addRenderAttribute( 'premium_title_container', 'class', [ 'premium-title-container', selectedStyle ] );
588
+
589
+ view.addRenderAttribute( 'premium_title', 'class', [ 'premium-title-header', 'premium-title-' + selectedStyle ] );
590
+
591
+ view.addRenderAttribute( 'premium_title_icon', 'class', [ 'premium-title-icon', titleIcon ] );
592
+
593
+
594
+ #>
595
+ <div {{{ view.getRenderAttributeString('premium_title_container') }}}>
596
+ <{{{titleTag}}} {{{view.getRenderAttributeString('premium_title')}}}>
597
+ <# if( selectedStyle == 'style7' ) { #>
598
+ <span class="premium-title-style7-strip"></span>
599
+ <# }
600
+ if( '' != settings.premium_title_icon && 'yes' == settings.premium_title_icon_switcher ) { #>
601
+ <i {{{ view.getRenderAttributeString('premium_title_icon') }}}></i>
602
+ <# } #>
603
+ <span {{{ view.getRenderAttributeString('premium_title_text') }}}>{{{ titleText }}}</span>
604
+ </{{{titleTag}}}>
605
+ </div>
606
+
607
+ <?php
608
+ }
609
}
610
Plugin::instance()->widgets_manager->register_widget_type(new Premium_Title_Widget());