Version Description
Download this release
Release Info
Code changes from version 1.3.22 to 1.3.23
- admin/includes/wpr-templates-loop.php +3 -3
- admin/includes/wpr-templates-modal-popups.php +1 -1
- admin/templates/wpr-templates-library-blocks.php +2 -2
- admin/templates/wpr-templates-library-popups.php +2 -2
- classes/utilities.php +2 -2
- extensions/wpr-parallax.php +4 -4
- extensions/wpr-particles.php +3 -3
- includes/controls/wpr-control-animations.php +2 -2
- modules/advanced-slider/widgets/wpr-advanced-slider.php +6 -6
- modules/before-after/widgets/wpr-before-after.php +1 -1
- modules/business-hours/widgets/wpr-business-hours.php +1 -1
- modules/content-ticker/widgets/wpr-content-ticker.php +4 -4
- modules/content-toggle/widgets/wpr-content-toggle.php +3 -3
- modules/countdown/widgets/wpr-countdown.php +2 -2
- modules/dual-button/widgets/wpr-dual-button.php +1 -1
- modules/grid/widgets/wpr-grid.php +19 -19
- modules/image-hotspots/widgets/wpr-image-hotspots.php +3 -3
- modules/magazine-grid/widgets/wpr-magazine-grid.php +14 -14
- modules/mailchimp/widgets/wpr-mailchimp.php +1 -1
- modules/media-grid/widgets/wpr-media-grid.php +18 -18
- modules/nav-menu/widgets/wpr-nav-menu.php +1 -1
- modules/onepage-nav/widgets/wpr-onepage-nav.php +3 -3
- modules/popup/wpr-popup.php +1 -1
- modules/price-list/widgets/wpr-price-list.php +1 -1
- modules/pricing-table/widgets/pricing-table.php +2 -2
- modules/progress-bar/widgets/wpr-progress-bar.php +3 -3
- modules/promo-box/widgets/wpr-promo-box.php +1 -1
- modules/search/widgets/wpr-search.php +1 -1
- modules/sharing-buttons/widgets/wpr-sharing-buttons.php +1 -1
- modules/tabs/widgets/wpr-tabs.php +4 -4
- modules/team-member/widgets/wpr-team-member.php +2 -2
- modules/testimonial/widgets/wpr-testimonial-carousel.php +4 -4
- modules/woo-grid/widgets/wpr-woo-grid.php +19 -19
- plugin.php +1 -1
- readme.txt +5 -2
- wpr-addons.php +2 -2
admin/includes/wpr-templates-loop.php
CHANGED
@@ -34,7 +34,7 @@ class WPR_Templates_Loop {
|
|
34 |
$user_templates = get_posts( $args );
|
35 |
|
36 |
// The Loop
|
37 |
-
echo '<ul class="wpr-'. esc_attr($template) .'-templates-list wpr-my-templates-list" data-pro="'. esc_attr(
|
38 |
|
39 |
if ( ! empty( $user_templates ) ) {
|
40 |
foreach ( $user_templates as $user_template ) {
|
@@ -129,7 +129,7 @@ class WPR_Templates_Loop {
|
|
129 |
<!-- Conditions -->
|
130 |
<div class="wpr-conditions-wrap">
|
131 |
<div class="wpr-conditions-sample">
|
132 |
-
<?php if (
|
133 |
<!-- Global -->
|
134 |
<select name="global_condition_select" class="global-condition-select">
|
135 |
<option value="global"><?php esc_html_e( 'Entire Site', 'wpr-addons' ); ?></option>
|
@@ -231,7 +231,7 @@ class WPR_Templates_Loop {
|
|
231 |
<?php endif; ?>
|
232 |
|
233 |
<?php
|
234 |
-
if ( !
|
235 |
echo '<span style="color: #7f8b96;"><br>Conditions are fully suppoted in the <strong><a href="https://royal-elementor-addons.com/?ref=rea-plugin-backend-conditions-upgrade-pro#purchasepro" target="_blank">Pro version</a></strong></span>';
|
236 |
// echo '<span style="color: #7f8b96;"><br>Conditions are fully suppoted in the <strong><a href="'. admin_url('admin.php?page=wpr-addons-pricing') .'" target="_blank">Pro version</a></strong></span>';
|
237 |
}
|
34 |
$user_templates = get_posts( $args );
|
35 |
|
36 |
// The Loop
|
37 |
+
echo '<ul class="wpr-'. esc_attr($template) .'-templates-list wpr-my-templates-list" data-pro="'. esc_attr(wpr_fs()->can_use_premium_code()) .'">';
|
38 |
|
39 |
if ( ! empty( $user_templates ) ) {
|
40 |
foreach ( $user_templates as $user_template ) {
|
129 |
<!-- Conditions -->
|
130 |
<div class="wpr-conditions-wrap">
|
131 |
<div class="wpr-conditions-sample">
|
132 |
+
<?php if ( wpr_fs()->can_use_premium_code() ) : ?>
|
133 |
<!-- Global -->
|
134 |
<select name="global_condition_select" class="global-condition-select">
|
135 |
<option value="global"><?php esc_html_e( 'Entire Site', 'wpr-addons' ); ?></option>
|
231 |
<?php endif; ?>
|
232 |
|
233 |
<?php
|
234 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
235 |
echo '<span style="color: #7f8b96;"><br>Conditions are fully suppoted in the <strong><a href="https://royal-elementor-addons.com/?ref=rea-plugin-backend-conditions-upgrade-pro#purchasepro" target="_blank">Pro version</a></strong></span>';
|
236 |
// echo '<span style="color: #7f8b96;"><br>Conditions are fully suppoted in the <strong><a href="'. admin_url('admin.php?page=wpr-addons-pricing') .'" target="_blank">Pro version</a></strong></span>';
|
237 |
}
|
admin/includes/wpr-templates-modal-popups.php
CHANGED
@@ -63,7 +63,7 @@ class WPR_Templates_Modal_Popups {
|
|
63 |
}
|
64 |
|
65 |
// Custom
|
66 |
-
if (
|
67 |
// Archive
|
68 |
\WprAddonsPro\Classes\Pro_Modules::archive_pages_popup_conditions( $conditions );
|
69 |
|
63 |
}
|
64 |
|
65 |
// Custom
|
66 |
+
if ( wpr_fs()->can_use_premium_code() ) {
|
67 |
// Archive
|
68 |
\WprAddonsPro\Classes\Pro_Modules::archive_pages_popup_conditions( $conditions );
|
69 |
|
admin/templates/wpr-templates-library-blocks.php
CHANGED
@@ -98,7 +98,7 @@ class WPR_Templates_Library_Blocks {
|
|
98 |
$template_sub = $blocks[$module_slug][$template_slug]['sub'];
|
99 |
$preview_type = $blocks[$module_slug][$template_slug]['type'];
|
100 |
$preview_url = $blocks[$module_slug][$template_slug]['url'];
|
101 |
-
$templte_class = ( strpos($template_slug, 'pro') && !
|
102 |
|
103 |
?>
|
104 |
|
@@ -113,7 +113,7 @@ class WPR_Templates_Library_Blocks {
|
|
113 |
<div class="wpr-tplib-template-footer elementor-clearfix">
|
114 |
<h3><?php echo str_replace('-pro', ' Pro', $template_title); ?></h3>
|
115 |
|
116 |
-
<?php if ( strpos($template_slug, 'pro') && !
|
117 |
<span class="wpr-tplib-insert-template wpr-tplib-insert-pro"><i class="eicon-star"></i> <span><?php esc_html_e( 'Go Pro', 'wpr-addons' ); ?></span></span>
|
118 |
<?php else : ?>
|
119 |
<span class="wpr-tplib-insert-template"><i class="eicon-file-download"></i> <span><?php esc_html_e( 'Insert', 'wpr-addons' ); ?></span></span>
|
98 |
$template_sub = $blocks[$module_slug][$template_slug]['sub'];
|
99 |
$preview_type = $blocks[$module_slug][$template_slug]['type'];
|
100 |
$preview_url = $blocks[$module_slug][$template_slug]['url'];
|
101 |
+
$templte_class = ( strpos($template_slug, 'pro') && ! wpr_fs()->can_use_premium_code() ) ? ' wpr-tplib-pro-wrap' : '';
|
102 |
|
103 |
?>
|
104 |
|
113 |
<div class="wpr-tplib-template-footer elementor-clearfix">
|
114 |
<h3><?php echo str_replace('-pro', ' Pro', $template_title); ?></h3>
|
115 |
|
116 |
+
<?php if ( strpos($template_slug, 'pro') && ! wpr_fs()->can_use_premium_code() ) : ?>
|
117 |
<span class="wpr-tplib-insert-template wpr-tplib-insert-pro"><i class="eicon-star"></i> <span><?php esc_html_e( 'Go Pro', 'wpr-addons' ); ?></span></span>
|
118 |
<?php else : ?>
|
119 |
<span class="wpr-tplib-insert-template"><i class="eicon-file-download"></i> <span><?php esc_html_e( 'Insert', 'wpr-addons' ); ?></span></span>
|
admin/templates/wpr-templates-library-popups.php
CHANGED
@@ -71,7 +71,7 @@ class WPR_Templates_Library_Popups {
|
|
71 |
$template_title = ucfirst($type) .' '. $template_slug;
|
72 |
$preview_type = $popups[$type][$template_slug]['type'];
|
73 |
$preview_url = $popups[$type][$template_slug]['url'];
|
74 |
-
$templte_class = ( strpos($template_slug, 'pro') && !
|
75 |
|
76 |
?>
|
77 |
|
@@ -86,7 +86,7 @@ class WPR_Templates_Library_Popups {
|
|
86 |
<div class="wpr-tplib-template-footer elementor-clearfix">
|
87 |
<h3><?php echo str_replace('-pro', ' Pro', $template_title); ?></h3>
|
88 |
|
89 |
-
<?php if ( strpos($template_slug, 'pro') && !
|
90 |
<span class="wpr-tplib-insert-template wpr-tplib-insert-pro"><i class="eicon-star"></i> <span><?php esc_html_e( 'Go Pro', 'wpr-addons' ); ?></span></span>
|
91 |
<?php else : ?>
|
92 |
<span class="wpr-tplib-insert-template"><i class="eicon-file-download"></i> <span><?php esc_html_e( 'Insert', 'wpr-addons' ); ?></span></span>
|
71 |
$template_title = ucfirst($type) .' '. $template_slug;
|
72 |
$preview_type = $popups[$type][$template_slug]['type'];
|
73 |
$preview_url = $popups[$type][$template_slug]['url'];
|
74 |
+
$templte_class = ( strpos($template_slug, 'pro') && ! wpr_fs()->can_use_premium_code() ) ? ' wpr-tplib-pro-wrap' : '';
|
75 |
|
76 |
?>
|
77 |
|
86 |
<div class="wpr-tplib-template-footer elementor-clearfix">
|
87 |
<h3><?php echo str_replace('-pro', ' Pro', $template_title); ?></h3>
|
88 |
|
89 |
+
<?php if ( strpos($template_slug, 'pro') && ! wpr_fs()->can_use_premium_code() ) : ?>
|
90 |
<span class="wpr-tplib-insert-template wpr-tplib-insert-pro"><i class="eicon-star"></i> <span><?php esc_html_e( 'Go Pro', 'wpr-addons' ); ?></span></span>
|
91 |
<?php else : ?>
|
92 |
<span class="wpr-tplib-insert-template"><i class="eicon-file-download"></i> <span><?php esc_html_e( 'Insert', 'wpr-addons' ); ?></span></span>
|
classes/utilities.php
CHANGED
@@ -616,7 +616,7 @@ class Utilities {
|
|
616 |
'pro-eiobk' => 'EIO Back (Pro)',
|
617 |
];
|
618 |
|
619 |
-
if (
|
620 |
$timing_functions = \WprAddonsPro\Includes\Controls\WPR_Control_Animations_Pro::wpr_animation_timings();
|
621 |
}
|
622 |
|
@@ -652,7 +652,7 @@ class Utilities {
|
|
652 |
** Upgrade to Pro Notice
|
653 |
*/
|
654 |
public static function upgrade_pro_notice( $module, $controls_manager, $widget, $option, $condition = [] ) {
|
655 |
-
if (
|
656 |
return;
|
657 |
}
|
658 |
|
616 |
'pro-eiobk' => 'EIO Back (Pro)',
|
617 |
];
|
618 |
|
619 |
+
if ( wpr_fs()->can_use_premium_code() ) {
|
620 |
$timing_functions = \WprAddonsPro\Includes\Controls\WPR_Control_Animations_Pro::wpr_animation_timings();
|
621 |
}
|
622 |
|
652 |
** Upgrade to Pro Notice
|
653 |
*/
|
654 |
public static function upgrade_pro_notice( $module, $controls_manager, $widget, $option, $condition = [] ) {
|
655 |
+
if ( wpr_fs()->can_use_premium_code() ) {
|
656 |
return;
|
657 |
}
|
658 |
|
extensions/wpr-parallax.php
CHANGED
@@ -61,7 +61,7 @@ class Wpr_Parallax_Scroll {
|
|
61 |
]
|
62 |
);
|
63 |
|
64 |
-
if ( !
|
65 |
$element->add_control(
|
66 |
'scroll_effect',
|
67 |
[
|
@@ -292,7 +292,7 @@ class Wpr_Parallax_Scroll {
|
|
292 |
]
|
293 |
);
|
294 |
|
295 |
-
if ( !
|
296 |
$element->add_control(
|
297 |
'paralax_repeater_pro_notice',
|
298 |
[
|
@@ -341,7 +341,7 @@ class Wpr_Parallax_Scroll {
|
|
341 |
echo '<div class="wpr-parallax-multi-layer" scalar-speed="'. $settings['scalar_speed']['size'] .'" direction="'. $settings['invert_direction'] .'" style="overflow: hidden;">';
|
342 |
|
343 |
foreach ( $settings['hover_parallax'] as $key => $item ) {
|
344 |
-
if ( $key < 2 ||
|
345 |
echo '<div data-depth="'. $item['data_depth'] .'" style-top="'. $item['layer_position_vr']['size'] .'%" style-left="'. $item['layer_position_hr']['size'] .'%" class="wpr-parallax-ml-children elementor-repeater-item-' . $item['_id'] . '">';
|
346 |
echo '<img src="' . $item['repeater_bg_image']['url'] . '">';
|
347 |
echo '</div>';
|
@@ -363,7 +363,7 @@ class Wpr_Parallax_Scroll {
|
|
363 |
}
|
364 |
// Multi Layer
|
365 |
if ( 'on' === get_option('wpr-parallax-multi-layer', 'on') ) {
|
366 |
-
if ( !
|
367 |
?>
|
368 |
<# if ( settings.hover_parallax.length && settings.wpr_enable_parallax_hover == 'yes') { #>
|
369 |
<div class="wpr-parallax-multi-layer" direction="{{settings.invert_direction}}" scalar-speed="{{settings.scalar_speed.size}}" data-relative-input="true" style="overflow: hidden;">
|
61 |
]
|
62 |
);
|
63 |
|
64 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
65 |
$element->add_control(
|
66 |
'scroll_effect',
|
67 |
[
|
292 |
]
|
293 |
);
|
294 |
|
295 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
296 |
$element->add_control(
|
297 |
'paralax_repeater_pro_notice',
|
298 |
[
|
341 |
echo '<div class="wpr-parallax-multi-layer" scalar-speed="'. $settings['scalar_speed']['size'] .'" direction="'. $settings['invert_direction'] .'" style="overflow: hidden;">';
|
342 |
|
343 |
foreach ( $settings['hover_parallax'] as $key => $item ) {
|
344 |
+
if ( $key < 2 || wpr_fs()->can_use_premium_code() ) {
|
345 |
echo '<div data-depth="'. $item['data_depth'] .'" style-top="'. $item['layer_position_vr']['size'] .'%" style-left="'. $item['layer_position_hr']['size'] .'%" class="wpr-parallax-ml-children elementor-repeater-item-' . $item['_id'] . '">';
|
346 |
echo '<img src="' . $item['repeater_bg_image']['url'] . '">';
|
347 |
echo '</div>';
|
363 |
}
|
364 |
// Multi Layer
|
365 |
if ( 'on' === get_option('wpr-parallax-multi-layer', 'on') ) {
|
366 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
367 |
?>
|
368 |
<# if ( settings.hover_parallax.length && settings.wpr_enable_parallax_hover == 'yes') { #>
|
369 |
<div class="wpr-parallax-multi-layer" direction="{{settings.invert_direction}}" scalar-speed="{{settings.scalar_speed.size}}" data-relative-input="true" style="overflow: hidden;">
|
extensions/wpr-particles.php
CHANGED
@@ -42,7 +42,7 @@ class Wpr_Particles {
|
|
42 |
]
|
43 |
);
|
44 |
|
45 |
-
if ( !
|
46 |
$element->add_control (
|
47 |
'which_particle',
|
48 |
[
|
@@ -67,7 +67,7 @@ class Wpr_Particles {
|
|
67 |
|
68 |
$this->custom_json_particles( $this->default_particles, $element );
|
69 |
|
70 |
-
if (
|
71 |
\WprAddonsPro\Extensions\Wpr_Particles_Pro::add_control_group_predefined_particles($element);
|
72 |
}
|
73 |
|
@@ -132,7 +132,7 @@ class Wpr_Particles {
|
|
132 |
if ( $settings['wpr_enable_particles'] === 'yes' ) {
|
133 |
$settings['which_particle'] = 'pro-pjs' === $settings['which_particle'] ? 'wpr_particle_json_custom' : $settings['which_particle'];
|
134 |
|
135 |
-
if ( !
|
136 |
$element->add_render_attribute( '_wrapper', [
|
137 |
'data-wpr-particles' => $settings[$settings['which_particle']],
|
138 |
'particle-source' => $settings['which_particle'],
|
42 |
]
|
43 |
);
|
44 |
|
45 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
46 |
$element->add_control (
|
47 |
'which_particle',
|
48 |
[
|
67 |
|
68 |
$this->custom_json_particles( $this->default_particles, $element );
|
69 |
|
70 |
+
if ( wpr_fs()->can_use_premium_code() ) {
|
71 |
\WprAddonsPro\Extensions\Wpr_Particles_Pro::add_control_group_predefined_particles($element);
|
72 |
}
|
73 |
|
132 |
if ( $settings['wpr_enable_particles'] === 'yes' ) {
|
133 |
$settings['which_particle'] = 'pro-pjs' === $settings['which_particle'] ? 'wpr_particle_json_custom' : $settings['which_particle'];
|
134 |
|
135 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
136 |
$element->add_render_attribute( '_wrapper', [
|
137 |
'data-wpr-particles' => $settings[$settings['which_particle']],
|
138 |
'particle-source' => $settings['which_particle'],
|
includes/controls/wpr-control-animations.php
CHANGED
@@ -67,7 +67,7 @@ class WPR_Control_Animations extends Base_Data_Control {
|
|
67 |
];
|
68 |
}
|
69 |
|
70 |
-
if (
|
71 |
self::$_animations = \WprAddonsPro\Includes\Controls\WPR_Control_Animations_Pro::wpr_animations();
|
72 |
}
|
73 |
|
@@ -260,7 +260,7 @@ class WPR_Control_Button_Animations extends Base_Data_Control {
|
|
260 |
];
|
261 |
}
|
262 |
|
263 |
-
if (
|
264 |
self::$_animations = \WprAddonsPro\Includes\Controls\WPR_Control_Animations_Pro::wpr_button_animations();
|
265 |
}
|
266 |
|
67 |
];
|
68 |
}
|
69 |
|
70 |
+
if ( wpr_fs()->can_use_premium_code() ) {
|
71 |
self::$_animations = \WprAddonsPro\Includes\Controls\WPR_Control_Animations_Pro::wpr_animations();
|
72 |
}
|
73 |
|
260 |
];
|
261 |
}
|
262 |
|
263 |
+
if ( wpr_fs()->can_use_premium_code() ) {
|
264 |
self::$_animations = \WprAddonsPro\Includes\Controls\WPR_Control_Animations_Pro::wpr_button_animations();
|
265 |
}
|
266 |
|
modules/advanced-slider/widgets/wpr-advanced-slider.php
CHANGED
@@ -648,7 +648,7 @@ class Wpr_Advanced_Slider extends Widget_Base {
|
|
648 |
]
|
649 |
);
|
650 |
|
651 |
-
if ( !
|
652 |
$this->add_control(
|
653 |
'slider_repeater_pro_notice',
|
654 |
[
|
@@ -709,7 +709,7 @@ class Wpr_Advanced_Slider extends Widget_Base {
|
|
709 |
|
710 |
$this->add_control_slider_amount();
|
711 |
|
712 |
-
if ( !
|
713 |
$this->add_control(
|
714 |
'opnepage_pro_notice',
|
715 |
[
|
@@ -2542,11 +2542,11 @@ class Wpr_Advanced_Slider extends Widget_Base {
|
|
2542 |
}
|
2543 |
|
2544 |
foreach ( $settings['slider_items'] as $key => $item ) {
|
2545 |
-
if ( !
|
2546 |
break;
|
2547 |
}
|
2548 |
|
2549 |
-
if ( !
|
2550 |
if ( 'pro-3' == $settings['slider_amount'] || 'pro-4' == $settings['slider_amount'] || 'pro-5' == $settings['slider_amount'] || 'pro-6' == $settings['slider_amount'] ) {
|
2551 |
$settings['slider_amount'] = 2;
|
2552 |
}
|
@@ -2565,7 +2565,7 @@ class Wpr_Advanced_Slider extends Widget_Base {
|
|
2565 |
|
2566 |
// Or Build Custom
|
2567 |
} else if( 'custom' === $item['slider_content_type'] ) {
|
2568 |
-
if ( !
|
2569 |
$item['slider_item_link_type'] = 'none';
|
2570 |
}
|
2571 |
|
@@ -2813,7 +2813,7 @@ class Wpr_Advanced_Slider extends Widget_Base {
|
|
2813 |
}
|
2814 |
}
|
2815 |
|
2816 |
-
if ( !
|
2817 |
$settings['slider_autoplay'] = '';
|
2818 |
$settings['slider_autoplay_duration'] = 0;
|
2819 |
$settings['slider_pause_on_hover'] = '';
|
648 |
]
|
649 |
);
|
650 |
|
651 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
652 |
$this->add_control(
|
653 |
'slider_repeater_pro_notice',
|
654 |
[
|
709 |
|
710 |
$this->add_control_slider_amount();
|
711 |
|
712 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
713 |
$this->add_control(
|
714 |
'opnepage_pro_notice',
|
715 |
[
|
2542 |
}
|
2543 |
|
2544 |
foreach ( $settings['slider_items'] as $key => $item ) {
|
2545 |
+
if ( ! wpr_fs()->can_use_premium_code() && $key === 4 ) {
|
2546 |
break;
|
2547 |
}
|
2548 |
|
2549 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
2550 |
if ( 'pro-3' == $settings['slider_amount'] || 'pro-4' == $settings['slider_amount'] || 'pro-5' == $settings['slider_amount'] || 'pro-6' == $settings['slider_amount'] ) {
|
2551 |
$settings['slider_amount'] = 2;
|
2552 |
}
|
2565 |
|
2566 |
// Or Build Custom
|
2567 |
} else if( 'custom' === $item['slider_content_type'] ) {
|
2568 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
2569 |
$item['slider_item_link_type'] = 'none';
|
2570 |
}
|
2571 |
|
2813 |
}
|
2814 |
}
|
2815 |
|
2816 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
2817 |
$settings['slider_autoplay'] = '';
|
2818 |
$settings['slider_autoplay_duration'] = 0;
|
2819 |
$settings['slider_pause_on_hover'] = '';
|
modules/before-after/widgets/wpr-before-after.php
CHANGED
@@ -690,7 +690,7 @@ class Wpr_Before_After extends Widget_Base {
|
|
690 |
// Get Settings
|
691 |
$settings = $this->get_settings();
|
692 |
|
693 |
-
if ( !
|
694 |
$settings['direction'] = 'horizontal';
|
695 |
$settings['trigger'] = 'drag';
|
696 |
$settings['divider_position'] = 50;
|
690 |
// Get Settings
|
691 |
$settings = $this->get_settings();
|
692 |
|
693 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
694 |
$settings['direction'] = 'horizontal';
|
695 |
$settings['trigger'] = 'drag';
|
696 |
$settings['divider_position'] = 50;
|
modules/business-hours/widgets/wpr-business-hours.php
CHANGED
@@ -151,7 +151,7 @@ class Wpr_Business_Hours extends Widget_Base {
|
|
151 |
]
|
152 |
);
|
153 |
|
154 |
-
if ( !
|
155 |
$repeater->add_control(
|
156 |
'business_hours_pro_notice',
|
157 |
[
|
151 |
]
|
152 |
);
|
153 |
|
154 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
155 |
$repeater->add_control(
|
156 |
'business_hours_pro_notice',
|
157 |
[
|
modules/content-ticker/widgets/wpr-content-ticker.php
CHANGED
@@ -1964,7 +1964,7 @@ class Wpr_Content_Ticker extends Widget_Base {
|
|
1964 |
}
|
1965 |
|
1966 |
|
1967 |
-
if ( !
|
1968 |
$settings['heading_icon_type'] = ( 'pro-cc' == $settings['heading_icon_type'] ) ? 'none' : $settings['heading_icon_type'];
|
1969 |
}
|
1970 |
|
@@ -1990,7 +1990,7 @@ class Wpr_Content_Ticker extends Widget_Base {
|
|
1990 |
$settings = $this->get_settings();
|
1991 |
$slider_is_rtl = is_rtl();
|
1992 |
$slider_direction = $slider_is_rtl ? 'rtl' : 'ltr';
|
1993 |
-
if ( !
|
1994 |
$settings['slider_effect'] = 'hr-slide';
|
1995 |
}
|
1996 |
|
@@ -2025,7 +2025,7 @@ class Wpr_Content_Ticker extends Widget_Base {
|
|
2025 |
$this->add_render_attribute( 'ticker-slider-attribute','class', 'wpr-ticker-gradient' );
|
2026 |
}
|
2027 |
|
2028 |
-
if ( !
|
2029 |
$settings['post_type'] = 'dynamic';
|
2030 |
}
|
2031 |
|
@@ -2071,7 +2071,7 @@ class Wpr_Content_Ticker extends Widget_Base {
|
|
2071 |
|
2072 |
<?php
|
2073 |
|
2074 |
-
if ( !
|
2075 |
$settings['type_select'] = 'slider';
|
2076 |
}
|
2077 |
|
1964 |
}
|
1965 |
|
1966 |
|
1967 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
1968 |
$settings['heading_icon_type'] = ( 'pro-cc' == $settings['heading_icon_type'] ) ? 'none' : $settings['heading_icon_type'];
|
1969 |
}
|
1970 |
|
1990 |
$settings = $this->get_settings();
|
1991 |
$slider_is_rtl = is_rtl();
|
1992 |
$slider_direction = $slider_is_rtl ? 'rtl' : 'ltr';
|
1993 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
1994 |
$settings['slider_effect'] = 'hr-slide';
|
1995 |
}
|
1996 |
|
2025 |
$this->add_render_attribute( 'ticker-slider-attribute','class', 'wpr-ticker-gradient' );
|
2026 |
}
|
2027 |
|
2028 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
2029 |
$settings['post_type'] = 'dynamic';
|
2030 |
}
|
2031 |
|
2071 |
|
2072 |
<?php
|
2073 |
|
2074 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
2075 |
$settings['type_select'] = 'slider';
|
2076 |
}
|
2077 |
|
modules/content-toggle/widgets/wpr-content-toggle.php
CHANGED
@@ -1225,13 +1225,13 @@ class Wpr_Content_Toggle extends Widget_Base {
|
|
1225 |
|
1226 |
$settings = $this->get_settings();
|
1227 |
|
1228 |
-
if ( !
|
1229 |
$settings['switcher_label_style'] = 'outer';
|
1230 |
$settings['content_animation'] = 'none';
|
1231 |
$settings['content_anim_size'] = 'large';
|
1232 |
}
|
1233 |
|
1234 |
-
$active_switcher =
|
1235 |
|
1236 |
if ( $active_switcher > 2 ) {
|
1237 |
$active_switcher = 2;
|
@@ -1300,7 +1300,7 @@ class Wpr_Content_Toggle extends Widget_Base {
|
|
1300 |
// Get Settings
|
1301 |
$settings = $this->get_settings();
|
1302 |
|
1303 |
-
if ( !
|
1304 |
$settings['switcher_style'] = 'dual';
|
1305 |
}
|
1306 |
|
1225 |
|
1226 |
$settings = $this->get_settings();
|
1227 |
|
1228 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
1229 |
$settings['switcher_label_style'] = 'outer';
|
1230 |
$settings['content_animation'] = 'none';
|
1231 |
$settings['content_anim_size'] = 'large';
|
1232 |
}
|
1233 |
|
1234 |
+
$active_switcher = wpr_fs()->can_use_premium_code() ? $settings['active_switcher'] : 1;
|
1235 |
|
1236 |
if ( $active_switcher > 2 ) {
|
1237 |
$active_switcher = 2;
|
1300 |
// Get Settings
|
1301 |
$settings = $this->get_settings();
|
1302 |
|
1303 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
1304 |
$settings['switcher_style'] = 'dual';
|
1305 |
}
|
1306 |
|
modules/countdown/widgets/wpr-countdown.php
CHANGED
@@ -905,7 +905,7 @@ class Wpr_Countdown extends Widget_Base {
|
|
905 |
}
|
906 |
|
907 |
public function get_countdown_attributes( $settings ) {
|
908 |
-
if ( !
|
909 |
$settings['countdown_type'] = 'due-date';
|
910 |
$settings['evergreen_show_again_delay'] = '0';
|
911 |
}
|
@@ -925,7 +925,7 @@ class Wpr_Countdown extends Widget_Base {
|
|
925 |
}
|
926 |
|
927 |
public function get_countdown_class( $settings ) {
|
928 |
-
if ( !
|
929 |
$settings['evergreen_stop_after_date'] = '';
|
930 |
$settings['evergreen_stop_after_date_select'] = '';
|
931 |
}
|
905 |
}
|
906 |
|
907 |
public function get_countdown_attributes( $settings ) {
|
908 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
909 |
$settings['countdown_type'] = 'due-date';
|
910 |
$settings['evergreen_show_again_delay'] = '0';
|
911 |
}
|
925 |
}
|
926 |
|
927 |
public function get_countdown_class( $settings ) {
|
928 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
929 |
$settings['evergreen_stop_after_date'] = '';
|
930 |
$settings['evergreen_stop_after_date_select'] = '';
|
931 |
}
|
modules/dual-button/widgets/wpr-dual-button.php
CHANGED
@@ -109,7 +109,7 @@ class Wpr_Dual_Button extends Widget_Base {
|
|
109 |
]
|
110 |
);
|
111 |
|
112 |
-
if ( !
|
113 |
$this->add_control(
|
114 |
'dual_button_pro_notice',
|
115 |
[
|
109 |
]
|
110 |
);
|
111 |
|
112 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
113 |
$this->add_control(
|
114 |
'dual_button_pro_notice',
|
115 |
[
|
modules/grid/widgets/wpr-grid.php
CHANGED
@@ -763,7 +763,7 @@ class Wpr_Grid extends Widget_Base {
|
|
763 |
|
764 |
$this->add_control_layout_columns();
|
765 |
|
766 |
-
if ( !
|
767 |
$this->add_control(
|
768 |
'grid_columns_pro_notice',
|
769 |
[
|
@@ -1226,7 +1226,7 @@ class Wpr_Grid extends Widget_Base {
|
|
1226 |
]
|
1227 |
);
|
1228 |
|
1229 |
-
if ( !
|
1230 |
$repeater->add_control(
|
1231 |
'element_align_pro_notice',
|
1232 |
[
|
@@ -7523,7 +7523,7 @@ class Wpr_Grid extends Widget_Base {
|
|
7523 |
|
7524 |
$offset = ( $paged - 1 ) * $settings['query_posts_per_page'] + $settings[ 'query_offset' ];
|
7525 |
|
7526 |
-
if ( !
|
7527 |
$settings[ 'query_randomize' ] = '';
|
7528 |
}
|
7529 |
|
@@ -7636,7 +7636,7 @@ class Wpr_Grid extends Widget_Base {
|
|
7636 |
public function get_image_effect_class( $settings ) {
|
7637 |
$class = '';
|
7638 |
|
7639 |
-
if ( !
|
7640 |
if ( 'pro-zi' == $settings['image_effects'] || 'pro-zo' == $settings['image_effects'] || 'pro-go' == $settings['image_effects'] || 'pro-bo' == $settings['image_effects'] ) {
|
7641 |
$settings['image_effects'] = 'none';
|
7642 |
}
|
@@ -7700,7 +7700,7 @@ class Wpr_Grid extends Widget_Base {
|
|
7700 |
public function render_media_overlay( $settings ) {
|
7701 |
echo '<div class="wpr-grid-media-hover-bg '. $this->get_animation_class( $settings, 'overlay' ) .'" data-url="'. esc_url( get_the_permalink( get_the_ID() ) ) .'">';
|
7702 |
|
7703 |
-
if (
|
7704 |
if ( '' !== $settings['overlay_image']['url'] ) {
|
7705 |
echo '<img src="'. esc_url( $settings['overlay_image']['url'] ) .'">';
|
7706 |
}
|
@@ -7711,8 +7711,8 @@ class Wpr_Grid extends Widget_Base {
|
|
7711 |
|
7712 |
// Render Post Title
|
7713 |
public function render_post_title( $settings, $class ) {
|
7714 |
-
$title_pointer = !
|
7715 |
-
$title_pointer_animation = !
|
7716 |
|
7717 |
$class .= ' wpr-pointer-'. $title_pointer;
|
7718 |
$class .= ' wpr-pointer-line-fx wpr-pointer-fx-'. $title_pointer_animation;
|
@@ -7904,7 +7904,7 @@ class Wpr_Grid extends Widget_Base {
|
|
7904 |
|
7905 |
// Render Post Read More
|
7906 |
public function render_post_read_more( $settings, $class ) {
|
7907 |
-
$read_more_animation = !
|
7908 |
|
7909 |
echo '<div class="'. esc_attr($class) .'">';
|
7910 |
echo '<div class="inner-block">';
|
@@ -8031,10 +8031,10 @@ class Wpr_Grid extends Widget_Base {
|
|
8031 |
$terms = wp_get_post_terms( $post_id, $settings['element_select'] );
|
8032 |
$count = 0;
|
8033 |
|
8034 |
-
$tax1_pointer = !
|
8035 |
-
$tax1_pointer_animation = !
|
8036 |
-
$tax2_pointer = !
|
8037 |
-
$tax2_pointer_animation = !
|
8038 |
|
8039 |
// Pointer Class
|
8040 |
if ( 'wpr-grid-tax-style-1' === $settings['element_tax_style'] ) {
|
@@ -8151,7 +8151,7 @@ class Wpr_Grid extends Widget_Base {
|
|
8151 |
$place = $data['element_location'];
|
8152 |
$align_vr = $data['element_align_vr'];
|
8153 |
|
8154 |
-
if ( !
|
8155 |
$align_vr = 'middle';
|
8156 |
}
|
8157 |
|
@@ -8229,7 +8229,7 @@ class Wpr_Grid extends Widget_Base {
|
|
8229 |
// Get Custom Filters
|
8230 |
$custom_filters = $settings[ 'query_taxonomy_'. $taxonomy ];
|
8231 |
|
8232 |
-
if ( !
|
8233 |
$settings['filters_icon_align'] = '';
|
8234 |
$settings['filters_count'] = '';
|
8235 |
$settings['filters_pointer'] = 'none';
|
@@ -8381,7 +8381,7 @@ class Wpr_Grid extends Widget_Base {
|
|
8381 |
$pages = $this->get_max_num_pages( $settings );
|
8382 |
$paged = empty( $paged ) ? 1 : $paged;
|
8383 |
|
8384 |
-
if ( !
|
8385 |
$settings['pagination_type'] = 'pro-is' == $settings['pagination_type'] ? 'default' : $settings['pagination_type'];
|
8386 |
}
|
8387 |
|
@@ -8568,7 +8568,7 @@ class Wpr_Grid extends Widget_Base {
|
|
8568 |
|
8569 |
// Grid Settings
|
8570 |
public function add_grid_settings( $settings ) {
|
8571 |
-
if ( !
|
8572 |
$settings['layout_select'] = 'pro-ms' == $settings['layout_select'] ? 'fitRows' : $settings['layout_select'];
|
8573 |
$settings['filters_deeplinking'] = '';
|
8574 |
$settings['filters_count'] = '';
|
@@ -8603,7 +8603,7 @@ class Wpr_Grid extends Widget_Base {
|
|
8603 |
$layout_settings['media_distance'] = $settings['layout_list_media_distance']['size'];
|
8604 |
}
|
8605 |
|
8606 |
-
if ( !
|
8607 |
$settings['lightbox_popup_thumbnails'] = '';
|
8608 |
$settings['lightbox_popup_thumbnails_default'] = '';
|
8609 |
$settings['lightbox_popup_sharing'] = '';
|
@@ -8636,7 +8636,7 @@ class Wpr_Grid extends Widget_Base {
|
|
8636 |
$slider_is_rtl = is_rtl();
|
8637 |
$slider_direction = $slider_is_rtl ? 'rtl' : 'ltr';
|
8638 |
|
8639 |
-
if ( !
|
8640 |
$settings['layout_slider_autoplay'] = '';
|
8641 |
$settings['layout_slider_autoplay_duration'] = 0;
|
8642 |
$settings['layout_slider_pause_on_hover'] = '';
|
@@ -8659,7 +8659,7 @@ class Wpr_Grid extends Widget_Base {
|
|
8659 |
'nextArrow' => '#wpr-grid-slider-next-'. $this->get_id(),
|
8660 |
];
|
8661 |
|
8662 |
-
if ( !
|
8663 |
$settings['lightbox_popup_thumbnails'] = '';
|
8664 |
$settings['lightbox_popup_thumbnails_default'] = '';
|
8665 |
$settings['lightbox_popup_sharing'] = '';
|
763 |
|
764 |
$this->add_control_layout_columns();
|
765 |
|
766 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
767 |
$this->add_control(
|
768 |
'grid_columns_pro_notice',
|
769 |
[
|
1226 |
]
|
1227 |
);
|
1228 |
|
1229 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
1230 |
$repeater->add_control(
|
1231 |
'element_align_pro_notice',
|
1232 |
[
|
7523 |
|
7524 |
$offset = ( $paged - 1 ) * $settings['query_posts_per_page'] + $settings[ 'query_offset' ];
|
7525 |
|
7526 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
7527 |
$settings[ 'query_randomize' ] = '';
|
7528 |
}
|
7529 |
|
7636 |
public function get_image_effect_class( $settings ) {
|
7637 |
$class = '';
|
7638 |
|
7639 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
7640 |
if ( 'pro-zi' == $settings['image_effects'] || 'pro-zo' == $settings['image_effects'] || 'pro-go' == $settings['image_effects'] || 'pro-bo' == $settings['image_effects'] ) {
|
7641 |
$settings['image_effects'] = 'none';
|
7642 |
}
|
7700 |
public function render_media_overlay( $settings ) {
|
7701 |
echo '<div class="wpr-grid-media-hover-bg '. $this->get_animation_class( $settings, 'overlay' ) .'" data-url="'. esc_url( get_the_permalink( get_the_ID() ) ) .'">';
|
7702 |
|
7703 |
+
if ( wpr_fs()->can_use_premium_code() ) {
|
7704 |
if ( '' !== $settings['overlay_image']['url'] ) {
|
7705 |
echo '<img src="'. esc_url( $settings['overlay_image']['url'] ) .'">';
|
7706 |
}
|
7711 |
|
7712 |
// Render Post Title
|
7713 |
public function render_post_title( $settings, $class ) {
|
7714 |
+
$title_pointer = ! wpr_fs()->can_use_premium_code() ? 'none' : $this->get_settings()['title_pointer'];
|
7715 |
+
$title_pointer_animation = ! wpr_fs()->can_use_premium_code() ? 'fade' : $this->get_settings()['title_pointer_animation'];
|
7716 |
|
7717 |
$class .= ' wpr-pointer-'. $title_pointer;
|
7718 |
$class .= ' wpr-pointer-line-fx wpr-pointer-fx-'. $title_pointer_animation;
|
7904 |
|
7905 |
// Render Post Read More
|
7906 |
public function render_post_read_more( $settings, $class ) {
|
7907 |
+
$read_more_animation = ! wpr_fs()->can_use_premium_code() ? 'wpr-button-none' : $this->get_settings()['read_more_animation'];
|
7908 |
|
7909 |
echo '<div class="'. esc_attr($class) .'">';
|
7910 |
echo '<div class="inner-block">';
|
8031 |
$terms = wp_get_post_terms( $post_id, $settings['element_select'] );
|
8032 |
$count = 0;
|
8033 |
|
8034 |
+
$tax1_pointer = ! wpr_fs()->can_use_premium_code() ? 'none' : $this->get_settings()['tax1_pointer'];
|
8035 |
+
$tax1_pointer_animation = ! wpr_fs()->can_use_premium_code() ? 'fade' : $this->get_settings()['tax1_pointer_animation'];
|
8036 |
+
$tax2_pointer = ! wpr_fs()->can_use_premium_code() ? 'none' : $this->get_settings()['tax2_pointer'];
|
8037 |
+
$tax2_pointer_animation = ! wpr_fs()->can_use_premium_code() ? 'fade' : $this->get_settings()['tax2_pointer_animation'];
|
8038 |
|
8039 |
// Pointer Class
|
8040 |
if ( 'wpr-grid-tax-style-1' === $settings['element_tax_style'] ) {
|
8151 |
$place = $data['element_location'];
|
8152 |
$align_vr = $data['element_align_vr'];
|
8153 |
|
8154 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
8155 |
$align_vr = 'middle';
|
8156 |
}
|
8157 |
|
8229 |
// Get Custom Filters
|
8230 |
$custom_filters = $settings[ 'query_taxonomy_'. $taxonomy ];
|
8231 |
|
8232 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
8233 |
$settings['filters_icon_align'] = '';
|
8234 |
$settings['filters_count'] = '';
|
8235 |
$settings['filters_pointer'] = 'none';
|
8381 |
$pages = $this->get_max_num_pages( $settings );
|
8382 |
$paged = empty( $paged ) ? 1 : $paged;
|
8383 |
|
8384 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
8385 |
$settings['pagination_type'] = 'pro-is' == $settings['pagination_type'] ? 'default' : $settings['pagination_type'];
|
8386 |
}
|
8387 |
|
8568 |
|
8569 |
// Grid Settings
|
8570 |
public function add_grid_settings( $settings ) {
|
8571 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
8572 |
$settings['layout_select'] = 'pro-ms' == $settings['layout_select'] ? 'fitRows' : $settings['layout_select'];
|
8573 |
$settings['filters_deeplinking'] = '';
|
8574 |
$settings['filters_count'] = '';
|
8603 |
$layout_settings['media_distance'] = $settings['layout_list_media_distance']['size'];
|
8604 |
}
|
8605 |
|
8606 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
8607 |
$settings['lightbox_popup_thumbnails'] = '';
|
8608 |
$settings['lightbox_popup_thumbnails_default'] = '';
|
8609 |
$settings['lightbox_popup_sharing'] = '';
|
8636 |
$slider_is_rtl = is_rtl();
|
8637 |
$slider_direction = $slider_is_rtl ? 'rtl' : 'ltr';
|
8638 |
|
8639 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
8640 |
$settings['layout_slider_autoplay'] = '';
|
8641 |
$settings['layout_slider_autoplay_duration'] = 0;
|
8642 |
$settings['layout_slider_pause_on_hover'] = '';
|
8659 |
'nextArrow' => '#wpr-grid-slider-next-'. $this->get_id(),
|
8660 |
];
|
8661 |
|
8662 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
8663 |
$settings['lightbox_popup_thumbnails'] = '';
|
8664 |
$settings['lightbox_popup_thumbnails_default'] = '';
|
8665 |
$settings['lightbox_popup_sharing'] = '';
|
modules/image-hotspots/widgets/wpr-image-hotspots.php
CHANGED
@@ -325,7 +325,7 @@ class Wpr_Image_Hotspots extends Widget_Base {
|
|
325 |
]
|
326 |
);
|
327 |
|
328 |
-
if ( !
|
329 |
$this->add_control(
|
330 |
'hotspot_repeater_pro_notice',
|
331 |
[
|
@@ -877,7 +877,7 @@ class Wpr_Image_Hotspots extends Widget_Base {
|
|
877 |
$image_src = $settings['image']['url'];
|
878 |
}
|
879 |
|
880 |
-
if ( !
|
881 |
$settings['tooltip_trigger'] = 'none';
|
882 |
}
|
883 |
|
@@ -905,7 +905,7 @@ class Wpr_Image_Hotspots extends Widget_Base {
|
|
905 |
|
906 |
<?php
|
907 |
|
908 |
-
if ( !
|
909 |
break;
|
910 |
}
|
911 |
|
325 |
]
|
326 |
);
|
327 |
|
328 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
329 |
$this->add_control(
|
330 |
'hotspot_repeater_pro_notice',
|
331 |
[
|
877 |
$image_src = $settings['image']['url'];
|
878 |
}
|
879 |
|
880 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
881 |
$settings['tooltip_trigger'] = 'none';
|
882 |
}
|
883 |
|
905 |
|
906 |
<?php
|
907 |
|
908 |
+
if ( ! wpr_fs()->can_use_premium_code() && $key === 2 ) {
|
909 |
break;
|
910 |
}
|
911 |
|
modules/magazine-grid/widgets/wpr-magazine-grid.php
CHANGED
@@ -561,7 +561,7 @@ class Wpr_Magazine_Grid extends Widget_Base {
|
|
561 |
]
|
562 |
);
|
563 |
|
564 |
-
if ( !
|
565 |
$this->add_control(
|
566 |
'layout_select_pro_notice',
|
567 |
[
|
@@ -770,7 +770,7 @@ class Wpr_Magazine_Grid extends Widget_Base {
|
|
770 |
]
|
771 |
);
|
772 |
|
773 |
-
if ( !
|
774 |
$repeater->add_control(
|
775 |
'element_align_pro_notice',
|
776 |
[
|
@@ -4679,7 +4679,7 @@ class Wpr_Magazine_Grid extends Widget_Base {
|
|
4679 |
$paged = 1;
|
4680 |
}
|
4681 |
|
4682 |
-
if ( !
|
4683 |
if ( '1-2' === $settings['layout_select'] || '1-3' === $settings['layout_select'] || '1-4' === $settings['layout_select']
|
4684 |
|| '1-1-2' === $settings['layout_select'] || '2-1-2' === $settings['layout_select'] || '1vh-3h' === $settings['layout_select'] ) {
|
4685 |
$settings['layout_select'] = '1-1-3';
|
@@ -4858,7 +4858,7 @@ class Wpr_Magazine_Grid extends Widget_Base {
|
|
4858 |
public function render_media_overlay( $settings ) {
|
4859 |
echo '<div class="wpr-grid-media-hover-bg '. $this->get_animation_class( $settings, 'overlay' ) .'" data-url="'. esc_url( get_the_permalink( get_the_ID() ) ) .'">';
|
4860 |
|
4861 |
-
if (
|
4862 |
if ( '' !== $settings['overlay_image']['url'] ) {
|
4863 |
echo '<img src="'. esc_url( $settings['overlay_image']['url'] ) .'">';
|
4864 |
}
|
@@ -4869,8 +4869,8 @@ class Wpr_Magazine_Grid extends Widget_Base {
|
|
4869 |
|
4870 |
// Render Post Title
|
4871 |
public function render_post_title( $settings, $class ) {
|
4872 |
-
$title_pointer = !
|
4873 |
-
$title_pointer_animation = !
|
4874 |
|
4875 |
$class .= ' wpr-pointer-'. $title_pointer;
|
4876 |
$class .= ' wpr-pointer-line-fx wpr-pointer-fx-'. $title_pointer_animation;
|
@@ -5062,7 +5062,7 @@ class Wpr_Magazine_Grid extends Widget_Base {
|
|
5062 |
|
5063 |
// Render Post Read More
|
5064 |
public function render_post_read_more( $settings, $class ) {
|
5065 |
-
$read_more_animation = !
|
5066 |
|
5067 |
echo '<div class="'. esc_attr($class) .'">';
|
5068 |
echo '<div class="inner-block">';
|
@@ -5107,10 +5107,10 @@ class Wpr_Magazine_Grid extends Widget_Base {
|
|
5107 |
$terms = wp_get_post_terms( $post_id, $settings['element_select'] );
|
5108 |
$count = 0;
|
5109 |
|
5110 |
-
$tax1_pointer = !
|
5111 |
-
$tax1_pointer_animation = !
|
5112 |
-
$tax2_pointer = !
|
5113 |
-
$tax2_pointer_animation = !
|
5114 |
|
5115 |
// Pointer Class
|
5116 |
if ( 'wpr-grid-tax-style-1' === $settings['element_tax_style'] ) {
|
@@ -5223,7 +5223,7 @@ class Wpr_Magazine_Grid extends Widget_Base {
|
|
5223 |
$place = 'over';
|
5224 |
$align_vr = $data['element_align_vr'];
|
5225 |
|
5226 |
-
if ( !
|
5227 |
$align_vr = 'bottom';
|
5228 |
}
|
5229 |
|
@@ -5315,7 +5315,7 @@ class Wpr_Magazine_Grid extends Widget_Base {
|
|
5315 |
// Get Posts
|
5316 |
$posts = new \WP_Query( $this->get_main_query_args( $slide_offset ) );
|
5317 |
|
5318 |
-
if ( !
|
5319 |
if ( '1-2' === $settings['layout_select'] || '1-3' === $settings['layout_select'] || '1-4' === $settings['layout_select']
|
5320 |
|| '1-1-2' === $settings['layout_select'] || '2-1-2' === $settings['layout_select'] || '1vh-3h' === $settings['layout_select'] ) {
|
5321 |
$settings['layout_select'] = '1-1-3';
|
@@ -5383,7 +5383,7 @@ class Wpr_Magazine_Grid extends Widget_Base {
|
|
5383 |
$settings = $this->get_settings();
|
5384 |
$render_attribute = '';
|
5385 |
|
5386 |
-
if ( !
|
5387 |
$settings['slider_enable'] = '';
|
5388 |
}
|
5389 |
|
561 |
]
|
562 |
);
|
563 |
|
564 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
565 |
$this->add_control(
|
566 |
'layout_select_pro_notice',
|
567 |
[
|
770 |
]
|
771 |
);
|
772 |
|
773 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
774 |
$repeater->add_control(
|
775 |
'element_align_pro_notice',
|
776 |
[
|
4679 |
$paged = 1;
|
4680 |
}
|
4681 |
|
4682 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
4683 |
if ( '1-2' === $settings['layout_select'] || '1-3' === $settings['layout_select'] || '1-4' === $settings['layout_select']
|
4684 |
|| '1-1-2' === $settings['layout_select'] || '2-1-2' === $settings['layout_select'] || '1vh-3h' === $settings['layout_select'] ) {
|
4685 |
$settings['layout_select'] = '1-1-3';
|
4858 |
public function render_media_overlay( $settings ) {
|
4859 |
echo '<div class="wpr-grid-media-hover-bg '. $this->get_animation_class( $settings, 'overlay' ) .'" data-url="'. esc_url( get_the_permalink( get_the_ID() ) ) .'">';
|
4860 |
|
4861 |
+
if ( wpr_fs()->can_use_premium_code() ) {
|
4862 |
if ( '' !== $settings['overlay_image']['url'] ) {
|
4863 |
echo '<img src="'. esc_url( $settings['overlay_image']['url'] ) .'">';
|
4864 |
}
|
4869 |
|
4870 |
// Render Post Title
|
4871 |
public function render_post_title( $settings, $class ) {
|
4872 |
+
$title_pointer = ! wpr_fs()->can_use_premium_code() ? 'none' : $this->get_settings()['title_pointer'];
|
4873 |
+
$title_pointer_animation = ! wpr_fs()->can_use_premium_code() ? 'fade' : $this->get_settings()['title_pointer_animation'];
|
4874 |
|
4875 |
$class .= ' wpr-pointer-'. $title_pointer;
|
4876 |
$class .= ' wpr-pointer-line-fx wpr-pointer-fx-'. $title_pointer_animation;
|
5062 |
|
5063 |
// Render Post Read More
|
5064 |
public function render_post_read_more( $settings, $class ) {
|
5065 |
+
$read_more_animation = ! wpr_fs()->can_use_premium_code() ? 'wpr-button-none' : $this->get_settings()['read_more_animation'];
|
5066 |
|
5067 |
echo '<div class="'. esc_attr($class) .'">';
|
5068 |
echo '<div class="inner-block">';
|
5107 |
$terms = wp_get_post_terms( $post_id, $settings['element_select'] );
|
5108 |
$count = 0;
|
5109 |
|
5110 |
+
$tax1_pointer = ! wpr_fs()->can_use_premium_code() ? 'none' : $this->get_settings()['tax1_pointer'];
|
5111 |
+
$tax1_pointer_animation = ! wpr_fs()->can_use_premium_code() ? 'fade' : $this->get_settings()['tax1_pointer_animation'];
|
5112 |
+
$tax2_pointer = ! wpr_fs()->can_use_premium_code() ? 'none' : $this->get_settings()['tax2_pointer'];
|
5113 |
+
$tax2_pointer_animation = ! wpr_fs()->can_use_premium_code() ? 'fade' : $this->get_settings()['tax2_pointer_animation'];
|
5114 |
|
5115 |
// Pointer Class
|
5116 |
if ( 'wpr-grid-tax-style-1' === $settings['element_tax_style'] ) {
|
5223 |
$place = 'over';
|
5224 |
$align_vr = $data['element_align_vr'];
|
5225 |
|
5226 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
5227 |
$align_vr = 'bottom';
|
5228 |
}
|
5229 |
|
5315 |
// Get Posts
|
5316 |
$posts = new \WP_Query( $this->get_main_query_args( $slide_offset ) );
|
5317 |
|
5318 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
5319 |
if ( '1-2' === $settings['layout_select'] || '1-3' === $settings['layout_select'] || '1-4' === $settings['layout_select']
|
5320 |
|| '1-1-2' === $settings['layout_select'] || '2-1-2' === $settings['layout_select'] || '1vh-3h' === $settings['layout_select'] ) {
|
5321 |
$settings['layout_select'] = '1-1-3';
|
5383 |
$settings = $this->get_settings();
|
5384 |
$render_attribute = '';
|
5385 |
|
5386 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
5387 |
$settings['slider_enable'] = '';
|
5388 |
}
|
5389 |
|
modules/mailchimp/widgets/wpr-mailchimp.php
CHANGED
@@ -188,7 +188,7 @@ class Wpr_Mailchimp extends Widget_Base {
|
|
188 |
]
|
189 |
);
|
190 |
|
191 |
-
if ( !
|
192 |
$this->add_control(
|
193 |
'mailchimp_pro_notice',
|
194 |
[
|
188 |
]
|
189 |
);
|
190 |
|
191 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
192 |
$this->add_control(
|
193 |
'mailchimp_pro_notice',
|
194 |
[
|
modules/media-grid/widgets/wpr-media-grid.php
CHANGED
@@ -608,7 +608,7 @@ class Wpr_Media_Grid extends Widget_Base {
|
|
608 |
|
609 |
$this->add_control_layout_columns();
|
610 |
|
611 |
-
if ( !
|
612 |
$this->add_control(
|
613 |
'grid_columns_pro_notice',
|
614 |
[
|
@@ -1005,7 +1005,7 @@ class Wpr_Media_Grid extends Widget_Base {
|
|
1005 |
]
|
1006 |
);
|
1007 |
|
1008 |
-
if ( !
|
1009 |
$repeater->add_control(
|
1010 |
'element_align_pro_notice',
|
1011 |
[
|
@@ -6269,7 +6269,7 @@ class Wpr_Media_Grid extends Widget_Base {
|
|
6269 |
|
6270 |
$offset = ( $paged - 1 ) * $settings['query_posts_per_page'] + $settings[ 'query_offset' ];
|
6271 |
|
6272 |
-
if ( !
|
6273 |
$settings[ 'query_randomize' ] = '';
|
6274 |
}
|
6275 |
|
@@ -6350,7 +6350,7 @@ class Wpr_Media_Grid extends Widget_Base {
|
|
6350 |
public function get_image_effect_class( $settings ) {
|
6351 |
$class = '';
|
6352 |
|
6353 |
-
if ( !
|
6354 |
if ( 'pro-zi' == $settings['image_effects'] || 'pro-zo' == $settings['image_effects'] || 'pro-go' == $settings['image_effects'] || 'pro-bo' == $settings['image_effects'] ) {
|
6355 |
$settings['image_effects'] = 'none';
|
6356 |
}
|
@@ -6386,7 +6386,7 @@ class Wpr_Media_Grid extends Widget_Base {
|
|
6386 |
public function render_media_overlay( $settings ) {
|
6387 |
echo '<div class="wpr-grid-media-hover-bg '. $this->get_animation_class( $settings, 'overlay' ) .'" data-url="'. esc_url( get_the_permalink( get_the_ID() ) ) .'">';
|
6388 |
|
6389 |
-
if (
|
6390 |
if ( '' !== $settings['overlay_image']['url'] ) {
|
6391 |
echo '<img src="'. esc_url( $settings['overlay_image']['url'] ) .'">';
|
6392 |
}
|
@@ -6397,8 +6397,8 @@ class Wpr_Media_Grid extends Widget_Base {
|
|
6397 |
|
6398 |
// Render Post Title
|
6399 |
public function render_post_title( $settings, $class ) {
|
6400 |
-
$title_pointer = !
|
6401 |
-
$title_pointer_animation = !
|
6402 |
|
6403 |
$class .= ' wpr-pointer-'. $title_pointer;
|
6404 |
$class .= ' wpr-pointer-line-fx wpr-pointer-fx-'. $title_pointer_animation;
|
@@ -6626,10 +6626,10 @@ class Wpr_Media_Grid extends Widget_Base {
|
|
6626 |
$terms = wp_get_post_terms( $post_id, $settings['element_select'] );
|
6627 |
$count = 0;
|
6628 |
|
6629 |
-
$tax1_pointer = !
|
6630 |
-
$tax1_pointer_animation = !
|
6631 |
-
$tax2_pointer = !
|
6632 |
-
$tax2_pointer_animation = !
|
6633 |
|
6634 |
// Pointer Class
|
6635 |
if ( 'wpr-grid-tax-style-1' === $settings['element_tax_style'] ) {
|
@@ -6730,7 +6730,7 @@ class Wpr_Media_Grid extends Widget_Base {
|
|
6730 |
$place = $data['element_location'];
|
6731 |
$align_vr = $data['element_align_vr'];
|
6732 |
|
6733 |
-
if ( !
|
6734 |
$align_vr = 'middle';
|
6735 |
}
|
6736 |
|
@@ -6807,7 +6807,7 @@ class Wpr_Media_Grid extends Widget_Base {
|
|
6807 |
// Get Custom Filters
|
6808 |
$custom_filters = $settings[ 'query_taxonomy_'. $taxonomy ];
|
6809 |
|
6810 |
-
if ( !
|
6811 |
$settings['filters_icon_align'] = '';
|
6812 |
$settings['filters_count'] = '';
|
6813 |
$settings['filters_pointer'] = 'none';
|
@@ -6936,7 +6936,7 @@ class Wpr_Media_Grid extends Widget_Base {
|
|
6936 |
$pages = $this->get_max_num_pages( $settings );
|
6937 |
$paged = empty( $paged ) ? 1 : $paged;
|
6938 |
|
6939 |
-
if ( !
|
6940 |
$settings['pagination_type'] = 'pro-is' == $settings['pagination_type'] ? 'default' : $settings['pagination_type'];
|
6941 |
}
|
6942 |
|
@@ -7123,7 +7123,7 @@ class Wpr_Media_Grid extends Widget_Base {
|
|
7123 |
|
7124 |
// Grid Settings
|
7125 |
public function add_grid_settings( $settings ) {
|
7126 |
-
if ( !
|
7127 |
$settings['filters_deeplinking'] = '';
|
7128 |
$settings['filters_count'] = '';
|
7129 |
|
@@ -7151,7 +7151,7 @@ class Wpr_Media_Grid extends Widget_Base {
|
|
7151 |
'pagination_max_pages' => $this->get_max_num_pages( $settings ),
|
7152 |
];
|
7153 |
|
7154 |
-
if ( !
|
7155 |
$settings['lightbox_popup_thumbnails'] = '';
|
7156 |
$settings['lightbox_popup_thumbnails_default'] = '';
|
7157 |
$settings['lightbox_popup_sharing'] = '';
|
@@ -7185,7 +7185,7 @@ class Wpr_Media_Grid extends Widget_Base {
|
|
7185 |
$slider_is_rtl = is_rtl();
|
7186 |
$slider_direction = $slider_is_rtl ? 'rtl' : 'ltr';
|
7187 |
|
7188 |
-
if ( !
|
7189 |
$settings['layout_slider_autoplay'] = '';
|
7190 |
$settings['layout_slider_autoplay_duration'] = 0;
|
7191 |
$settings['layout_slider_pause_on_hover'] = '';
|
@@ -7208,7 +7208,7 @@ class Wpr_Media_Grid extends Widget_Base {
|
|
7208 |
'nextArrow' => '#wpr-grid-slider-next-'. $this->get_id(),
|
7209 |
];
|
7210 |
|
7211 |
-
if ( !
|
7212 |
$settings['lightbox_popup_thumbnails'] = '';
|
7213 |
$settings['lightbox_popup_thumbnails_default'] = '';
|
7214 |
$settings['lightbox_popup_sharing'] = '';
|
608 |
|
609 |
$this->add_control_layout_columns();
|
610 |
|
611 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
612 |
$this->add_control(
|
613 |
'grid_columns_pro_notice',
|
614 |
[
|
1005 |
]
|
1006 |
);
|
1007 |
|
1008 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
1009 |
$repeater->add_control(
|
1010 |
'element_align_pro_notice',
|
1011 |
[
|
6269 |
|
6270 |
$offset = ( $paged - 1 ) * $settings['query_posts_per_page'] + $settings[ 'query_offset' ];
|
6271 |
|
6272 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
6273 |
$settings[ 'query_randomize' ] = '';
|
6274 |
}
|
6275 |
|
6350 |
public function get_image_effect_class( $settings ) {
|
6351 |
$class = '';
|
6352 |
|
6353 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
6354 |
if ( 'pro-zi' == $settings['image_effects'] || 'pro-zo' == $settings['image_effects'] || 'pro-go' == $settings['image_effects'] || 'pro-bo' == $settings['image_effects'] ) {
|
6355 |
$settings['image_effects'] = 'none';
|
6356 |
}
|
6386 |
public function render_media_overlay( $settings ) {
|
6387 |
echo '<div class="wpr-grid-media-hover-bg '. $this->get_animation_class( $settings, 'overlay' ) .'" data-url="'. esc_url( get_the_permalink( get_the_ID() ) ) .'">';
|
6388 |
|
6389 |
+
if ( wpr_fs()->can_use_premium_code() ) {
|
6390 |
if ( '' !== $settings['overlay_image']['url'] ) {
|
6391 |
echo '<img src="'. esc_url( $settings['overlay_image']['url'] ) .'">';
|
6392 |
}
|
6397 |
|
6398 |
// Render Post Title
|
6399 |
public function render_post_title( $settings, $class ) {
|
6400 |
+
$title_pointer = ! wpr_fs()->can_use_premium_code() ? 'none' : $this->get_settings()['title_pointer'];
|
6401 |
+
$title_pointer_animation = ! wpr_fs()->can_use_premium_code() ? 'fade' : $this->get_settings()['title_pointer_animation'];
|
6402 |
|
6403 |
$class .= ' wpr-pointer-'. $title_pointer;
|
6404 |
$class .= ' wpr-pointer-line-fx wpr-pointer-fx-'. $title_pointer_animation;
|
6626 |
$terms = wp_get_post_terms( $post_id, $settings['element_select'] );
|
6627 |
$count = 0;
|
6628 |
|
6629 |
+
$tax1_pointer = ! wpr_fs()->can_use_premium_code() ? 'none' : $this->get_settings()['tax1_pointer'];
|
6630 |
+
$tax1_pointer_animation = ! wpr_fs()->can_use_premium_code() ? 'fade' : $this->get_settings()['tax1_pointer_animation'];
|
6631 |
+
$tax2_pointer = ! wpr_fs()->can_use_premium_code() ? 'none' : $this->get_settings()['tax2_pointer'];
|
6632 |
+
$tax2_pointer_animation = ! wpr_fs()->can_use_premium_code() ? 'fade' : $this->get_settings()['tax2_pointer_animation'];
|
6633 |
|
6634 |
// Pointer Class
|
6635 |
if ( 'wpr-grid-tax-style-1' === $settings['element_tax_style'] ) {
|
6730 |
$place = $data['element_location'];
|
6731 |
$align_vr = $data['element_align_vr'];
|
6732 |
|
6733 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
6734 |
$align_vr = 'middle';
|
6735 |
}
|
6736 |
|
6807 |
// Get Custom Filters
|
6808 |
$custom_filters = $settings[ 'query_taxonomy_'. $taxonomy ];
|
6809 |
|
6810 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
6811 |
$settings['filters_icon_align'] = '';
|
6812 |
$settings['filters_count'] = '';
|
6813 |
$settings['filters_pointer'] = 'none';
|
6936 |
$pages = $this->get_max_num_pages( $settings );
|
6937 |
$paged = empty( $paged ) ? 1 : $paged;
|
6938 |
|
6939 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
6940 |
$settings['pagination_type'] = 'pro-is' == $settings['pagination_type'] ? 'default' : $settings['pagination_type'];
|
6941 |
}
|
6942 |
|
7123 |
|
7124 |
// Grid Settings
|
7125 |
public function add_grid_settings( $settings ) {
|
7126 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
7127 |
$settings['filters_deeplinking'] = '';
|
7128 |
$settings['filters_count'] = '';
|
7129 |
|
7151 |
'pagination_max_pages' => $this->get_max_num_pages( $settings ),
|
7152 |
];
|
7153 |
|
7154 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
7155 |
$settings['lightbox_popup_thumbnails'] = '';
|
7156 |
$settings['lightbox_popup_thumbnails_default'] = '';
|
7157 |
$settings['lightbox_popup_sharing'] = '';
|
7185 |
$slider_is_rtl = is_rtl();
|
7186 |
$slider_direction = $slider_is_rtl ? 'rtl' : 'ltr';
|
7187 |
|
7188 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
7189 |
$settings['layout_slider_autoplay'] = '';
|
7190 |
$settings['layout_slider_autoplay_duration'] = 0;
|
7191 |
$settings['layout_slider_pause_on_hover'] = '';
|
7208 |
'nextArrow' => '#wpr-grid-slider-next-'. $this->get_id(),
|
7209 |
];
|
7210 |
|
7211 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
7212 |
$settings['lightbox_popup_thumbnails'] = '';
|
7213 |
$settings['lightbox_popup_thumbnails_default'] = '';
|
7214 |
$settings['lightbox_popup_sharing'] = '';
|
modules/nav-menu/widgets/wpr-nav-menu.php
CHANGED
@@ -1692,7 +1692,7 @@ class Wpr_Nav_Menu extends Widget_Base {
|
|
1692 |
return;
|
1693 |
}
|
1694 |
|
1695 |
-
if ( !
|
1696 |
$settings['menu_layout'] = 'horizontal';
|
1697 |
$settings['toggle_btn_style'] = 'hamburger';
|
1698 |
}
|
1692 |
return;
|
1693 |
}
|
1694 |
|
1695 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
1696 |
$settings['menu_layout'] = 'horizontal';
|
1697 |
$settings['toggle_btn_style'] = 'hamburger';
|
1698 |
}
|
modules/onepage-nav/widgets/wpr-onepage-nav.php
CHANGED
@@ -146,7 +146,7 @@ class Wpr_OnepageNav extends Widget_Base {
|
|
146 |
]
|
147 |
);
|
148 |
|
149 |
-
if ( !
|
150 |
$this->add_control(
|
151 |
'opnepage_pro_notice',
|
152 |
[
|
@@ -689,7 +689,7 @@ class Wpr_OnepageNav extends Widget_Base {
|
|
689 |
$settings = $this->get_settings();
|
690 |
|
691 |
// Pro Options
|
692 |
-
if ( !
|
693 |
$settings['nav_item_scroll_speed'] = '';
|
694 |
$settings['nav_item_highlight'] = '';
|
695 |
$settings['nav_item_show_tooltip'] = '';
|
@@ -701,7 +701,7 @@ class Wpr_OnepageNav extends Widget_Base {
|
|
701 |
foreach ( $settings['nav_items'] as $item ) {
|
702 |
echo '<div class="wpr-onepage-nav-item elementor-repeater-item-'. $item['_id'] .'">';
|
703 |
echo '<a href="#'. $item['nav_item_id'] .'">';
|
704 |
-
echo (
|
705 |
\Elementor\Icons_Manager::render_icon( $item['nav_item_icon'] );
|
706 |
echo '</a>';
|
707 |
echo '</div>';
|
146 |
]
|
147 |
);
|
148 |
|
149 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
150 |
$this->add_control(
|
151 |
'opnepage_pro_notice',
|
152 |
[
|
689 |
$settings = $this->get_settings();
|
690 |
|
691 |
// Pro Options
|
692 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
693 |
$settings['nav_item_scroll_speed'] = '';
|
694 |
$settings['nav_item_highlight'] = '';
|
695 |
$settings['nav_item_show_tooltip'] = '';
|
701 |
foreach ( $settings['nav_items'] as $item ) {
|
702 |
echo '<div class="wpr-onepage-nav-item elementor-repeater-item-'. $item['_id'] .'">';
|
703 |
echo '<a href="#'. $item['nav_item_id'] .'">';
|
704 |
+
echo ( wpr_fs()->can_use_premium_code() && 'yes' === $settings['nav_item_show_tooltip'] ) ? '<span class="wpr-tooltip">'. $item['nav_item_tooltip'] .'</span>' : '';
|
705 |
\Elementor\Icons_Manager::render_icon( $item['nav_item_icon'] );
|
706 |
echo '</a>';
|
707 |
echo '</div>';
|
modules/popup/wpr-popup.php
CHANGED
@@ -211,7 +211,7 @@ class Wpr_Popup extends Elementor\Core\Base\Document {
|
|
211 |
|
212 |
$this->add_controls_group_popup_settings();
|
213 |
|
214 |
-
if ( !
|
215 |
$this->add_control(
|
216 |
'group_popup_settings_pro_notice',
|
217 |
[
|
211 |
|
212 |
$this->add_controls_group_popup_settings();
|
213 |
|
214 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
215 |
$this->add_control(
|
216 |
'group_popup_settings_pro_notice',
|
217 |
[
|
modules/price-list/widgets/wpr-price-list.php
CHANGED
@@ -118,7 +118,7 @@ class Wpr_Price_List extends Widget_Base {
|
|
118 |
|
119 |
$repeater->add_control( 'prlist_link', $this->add_repeater_args_prlist_link() );
|
120 |
|
121 |
-
if ( !
|
122 |
$repeater->add_control(
|
123 |
'price_list_pro_notice',
|
124 |
[
|
118 |
|
119 |
$repeater->add_control( 'prlist_link', $this->add_repeater_args_prlist_link() );
|
120 |
|
121 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
122 |
$repeater->add_control(
|
123 |
'price_list_pro_notice',
|
124 |
[
|
modules/pricing-table/widgets/pricing-table.php
CHANGED
@@ -84,7 +84,7 @@ class Pricing_Table extends Widget_Base {
|
|
84 |
|
85 |
Utilities::wpr_library_buttons( $this, Controls_Manager::RAW_HTML );
|
86 |
|
87 |
-
if ( !
|
88 |
$this->add_control(
|
89 |
'opnepage_pro_notice',
|
90 |
[
|
@@ -2441,7 +2441,7 @@ class Pricing_Table extends Widget_Base {
|
|
2441 |
<div class="wpr-pricing-table">
|
2442 |
<?php foreach ( $settings['pricing_items'] as $key => $item ) :
|
2443 |
|
2444 |
-
if ( !
|
2445 |
$item['feature_tooltip'] = '';
|
2446 |
$item['feature_tooltip_text'] = '';
|
2447 |
}
|
84 |
|
85 |
Utilities::wpr_library_buttons( $this, Controls_Manager::RAW_HTML );
|
86 |
|
87 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
88 |
$this->add_control(
|
89 |
'opnepage_pro_notice',
|
90 |
[
|
2441 |
<div class="wpr-pricing-table">
|
2442 |
<?php foreach ( $settings['pricing_items'] as $key => $item ) :
|
2443 |
|
2444 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
2445 |
$item['feature_tooltip'] = '';
|
2446 |
$item['feature_tooltip_text'] = '';
|
2447 |
}
|
modules/progress-bar/widgets/wpr-progress-bar.php
CHANGED
@@ -1088,8 +1088,8 @@ class Wpr_Progress_Bar extends Widget_Base {
|
|
1088 |
$circle_size = $settings['circle_size']['size'];
|
1089 |
$circle_half_size = ( $circle_size / 2 );
|
1090 |
$circle_viewbox = sprintf( '0 0 %1$s %1$s', $circle_size );
|
1091 |
-
$circle_line_width =
|
1092 |
-
$circle_prline_width =
|
1093 |
$circle_radius = $circle_half_size - ( $circle_prline_width / 2 );
|
1094 |
|
1095 |
if ( $circle_line_width > $circle_prline_width ) {
|
@@ -1278,7 +1278,7 @@ class Wpr_Progress_Bar extends Widget_Base {
|
|
1278 |
|
1279 |
<?php
|
1280 |
|
1281 |
-
if ( !
|
1282 |
$settings['layout'] = 'pro-vr' == $settings['layout'] ? 'hr-line' : $settings['layout'];
|
1283 |
}
|
1284 |
|
1088 |
$circle_size = $settings['circle_size']['size'];
|
1089 |
$circle_half_size = ( $circle_size / 2 );
|
1090 |
$circle_viewbox = sprintf( '0 0 %1$s %1$s', $circle_size );
|
1091 |
+
$circle_line_width = wpr_fs()->can_use_premium_code() ? $settings['line_width']['size'] : 15;
|
1092 |
+
$circle_prline_width = wpr_fs()->can_use_premium_code() ? $settings['prline_width']['size'] : 15;
|
1093 |
$circle_radius = $circle_half_size - ( $circle_prline_width / 2 );
|
1094 |
|
1095 |
if ( $circle_line_width > $circle_prline_width ) {
|
1278 |
|
1279 |
<?php
|
1280 |
|
1281 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
1282 |
$settings['layout'] = 'pro-vr' == $settings['layout'] ? 'hr-line' : $settings['layout'];
|
1283 |
}
|
1284 |
|
modules/promo-box/widgets/wpr-promo-box.php
CHANGED
@@ -1483,7 +1483,7 @@ class Wpr_Promo_Box extends Widget_Base {
|
|
1483 |
}
|
1484 |
|
1485 |
// Animations
|
1486 |
-
if ( !
|
1487 |
$settings['title_animation'] = 'none';
|
1488 |
$settings['description_animation'] = 'none';
|
1489 |
$settings['btn_animation'] = 'none';
|
1483 |
}
|
1484 |
|
1485 |
// Animations
|
1486 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
1487 |
$settings['title_animation'] = 'none';
|
1488 |
$settings['description_animation'] = 'none';
|
1489 |
$settings['btn_animation'] = 'none';
|
modules/search/widgets/wpr-search.php
CHANGED
@@ -80,7 +80,7 @@ class Wpr_Search extends Widget_Base {
|
|
80 |
|
81 |
$this->add_control_search_query();
|
82 |
|
83 |
-
if ( !
|
84 |
$this->add_control(
|
85 |
'search_pro_notice',
|
86 |
[
|
80 |
|
81 |
$this->add_control_search_query();
|
82 |
|
83 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
84 |
$this->add_control(
|
85 |
'search_pro_notice',
|
86 |
[
|
modules/sharing-buttons/widgets/wpr-sharing-buttons.php
CHANGED
@@ -426,7 +426,7 @@ class Wpr_Sharing_Buttons extends Widget_Base {
|
|
426 |
// Get Settings
|
427 |
$settings = $this->get_settings();
|
428 |
|
429 |
-
if ( !
|
430 |
$settings['sharing_custom_colors'] = '';
|
431 |
$settings['sharing_show_label'] = '';
|
432 |
$settings['sharing_label_bg'] = '';
|
426 |
// Get Settings
|
427 |
$settings = $this->get_settings();
|
428 |
|
429 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
430 |
$settings['sharing_custom_colors'] = '';
|
431 |
$settings['sharing_show_label'] = '';
|
432 |
$settings['sharing_label_bg'] = '';
|
modules/tabs/widgets/wpr-tabs.php
CHANGED
@@ -313,7 +313,7 @@ class Wpr_Tabs extends Widget_Base {
|
|
313 |
);
|
314 |
|
315 |
|
316 |
-
if ( !
|
317 |
$this->add_control(
|
318 |
'tabs_repeater_pro_notice',
|
319 |
[
|
@@ -343,7 +343,7 @@ class Wpr_Tabs extends Widget_Base {
|
|
343 |
|
344 |
$this->add_control_tabs_hr_position();
|
345 |
|
346 |
-
if ( !
|
347 |
$this->add_control(
|
348 |
'tabs_align_pro_notice',
|
349 |
[
|
@@ -1422,7 +1422,7 @@ class Wpr_Tabs extends Widget_Base {
|
|
1422 |
protected function render() {
|
1423 |
$settings = $this->get_settings();
|
1424 |
|
1425 |
-
if ( !
|
1426 |
$settings['active_tab'] = 1;
|
1427 |
$settings['tabs_trigger'] = 'click';
|
1428 |
$settings['autoplay'] = '';
|
@@ -1453,7 +1453,7 @@ class Wpr_Tabs extends Widget_Base {
|
|
1453 |
<div class="wpr-tabs-wrap">
|
1454 |
<?php foreach ( $tabs as $index => $item ) :
|
1455 |
|
1456 |
-
if ( !
|
1457 |
$item['tab_content_type'] = ('pro-tmp' == $item['tab_content_type']) ? 'editor' : $item['tab_content_type'];
|
1458 |
|
1459 |
if ( $index === 3 ) {
|
313 |
);
|
314 |
|
315 |
|
316 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
317 |
$this->add_control(
|
318 |
'tabs_repeater_pro_notice',
|
319 |
[
|
343 |
|
344 |
$this->add_control_tabs_hr_position();
|
345 |
|
346 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
347 |
$this->add_control(
|
348 |
'tabs_align_pro_notice',
|
349 |
[
|
1422 |
protected function render() {
|
1423 |
$settings = $this->get_settings();
|
1424 |
|
1425 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
1426 |
$settings['active_tab'] = 1;
|
1427 |
$settings['tabs_trigger'] = 'click';
|
1428 |
$settings['autoplay'] = '';
|
1453 |
<div class="wpr-tabs-wrap">
|
1454 |
<?php foreach ( $tabs as $index => $item ) :
|
1455 |
|
1456 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
1457 |
$item['tab_content_type'] = ('pro-tmp' == $item['tab_content_type']) ? 'editor' : $item['tab_content_type'];
|
1458 |
|
1459 |
if ( $index === 3 ) {
|
modules/team-member/widgets/wpr-team-member.php
CHANGED
@@ -158,7 +158,7 @@ class Wpr_Team_Member extends Widget_Base {
|
|
158 |
]
|
159 |
);
|
160 |
|
161 |
-
if ( !
|
162 |
$this->add_control(
|
163 |
'team_member_pro_notice',
|
164 |
[
|
@@ -1721,7 +1721,7 @@ class Wpr_Team_Member extends Widget_Base {
|
|
1721 |
// Get Settings
|
1722 |
$settings = $this->get_settings();
|
1723 |
|
1724 |
-
if ( !
|
1725 |
$settings['member_name_location'] = 'below';
|
1726 |
$settings['member_job_location'] = 'below';
|
1727 |
$settings['member_description_location'] = 'below';
|
158 |
]
|
159 |
);
|
160 |
|
161 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
162 |
$this->add_control(
|
163 |
'team_member_pro_notice',
|
164 |
[
|
1721 |
// Get Settings
|
1722 |
$settings = $this->get_settings();
|
1723 |
|
1724 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
1725 |
$settings['member_name_location'] = 'below';
|
1726 |
$settings['member_job_location'] = 'below';
|
1727 |
$settings['member_description_location'] = 'below';
|
modules/testimonial/widgets/wpr-testimonial-carousel.php
CHANGED
@@ -458,7 +458,7 @@ class Wpr_Testimonial_Carousel extends Widget_Base {
|
|
458 |
);
|
459 |
|
460 |
|
461 |
-
if ( !
|
462 |
$this->add_control(
|
463 |
'testimonial_repeater_pro_notice',
|
464 |
[
|
@@ -491,7 +491,7 @@ class Wpr_Testimonial_Carousel extends Widget_Base {
|
|
491 |
|
492 |
$this->add_control_testimonial_amount();
|
493 |
|
494 |
-
if ( !
|
495 |
$this->add_control(
|
496 |
'opnepage_pro_notice',
|
497 |
[
|
@@ -2785,7 +2785,7 @@ class Wpr_Testimonial_Carousel extends Widget_Base {
|
|
2785 |
|
2786 |
$is_rtl = is_rtl();
|
2787 |
$direction = $is_rtl ? 'rtl' : 'ltr';
|
2788 |
-
if ( !
|
2789 |
|
2790 |
$settings['testimonial_autoplay'] = '';
|
2791 |
$settings['testimonial_autoplay_duration'] = 0;
|
@@ -2818,7 +2818,7 @@ class Wpr_Testimonial_Carousel extends Widget_Base {
|
|
2818 |
|
2819 |
<?php foreach ( $settings['testimonial_items'] as $key => $item ) : ?>
|
2820 |
|
2821 |
-
<?php if ( !
|
2822 |
|
2823 |
<div class="wpr-testimonial-item elementor-repeater-item-<?php echo esc_attr( $item['_id'] ); ?> elementor-clearfix">
|
2824 |
|
458 |
);
|
459 |
|
460 |
|
461 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
462 |
$this->add_control(
|
463 |
'testimonial_repeater_pro_notice',
|
464 |
[
|
491 |
|
492 |
$this->add_control_testimonial_amount();
|
493 |
|
494 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
495 |
$this->add_control(
|
496 |
'opnepage_pro_notice',
|
497 |
[
|
2785 |
|
2786 |
$is_rtl = is_rtl();
|
2787 |
$direction = $is_rtl ? 'rtl' : 'ltr';
|
2788 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
2789 |
|
2790 |
$settings['testimonial_autoplay'] = '';
|
2791 |
$settings['testimonial_autoplay_duration'] = 0;
|
2818 |
|
2819 |
<?php foreach ( $settings['testimonial_items'] as $key => $item ) : ?>
|
2820 |
|
2821 |
+
<?php if ( ! wpr_fs()->can_use_premium_code() && $key === 4 ) { break; } ?>
|
2822 |
|
2823 |
<div class="wpr-testimonial-item elementor-repeater-item-<?php echo esc_attr( $item['_id'] ); ?> elementor-clearfix">
|
2824 |
|
modules/woo-grid/widgets/wpr-woo-grid.php
CHANGED
@@ -675,7 +675,7 @@ class Wpr_Woo_Grid extends Widget_Base {
|
|
675 |
|
676 |
$this->add_control_layout_columns();
|
677 |
|
678 |
-
if ( !
|
679 |
$this->add_control(
|
680 |
'grid_columns_pro_notice',
|
681 |
[
|
@@ -1138,7 +1138,7 @@ class Wpr_Woo_Grid extends Widget_Base {
|
|
1138 |
]
|
1139 |
);
|
1140 |
|
1141 |
-
if ( !
|
1142 |
$repeater->add_control(
|
1143 |
'element_align_pro_notice',
|
1144 |
[
|
@@ -6694,7 +6694,7 @@ class Wpr_Woo_Grid extends Widget_Base {
|
|
6694 |
public function get_main_query_args() {
|
6695 |
$settings = $this->get_settings();
|
6696 |
|
6697 |
-
if ( !
|
6698 |
$settings['query_selection'] = 'pro-cr' == $settings['query_selection'] ? 'dynamic' : $settings['query_selection'];
|
6699 |
$settings['query_orderby'] = 'pro-rn' == $settings['query_orderby'] ? 'date' : $settings['query_orderby'];
|
6700 |
}
|
@@ -6857,7 +6857,7 @@ class Wpr_Woo_Grid extends Widget_Base {
|
|
6857 |
public function get_image_effect_class( $settings ) {
|
6858 |
$class = '';
|
6859 |
|
6860 |
-
if ( !
|
6861 |
if ( 'pro-zi' == $settings['image_effects'] || 'pro-zo' == $settings['image_effects'] || 'pro-go' == $settings['image_effects'] || 'pro-bo' == $settings['image_effects'] ) {
|
6862 |
$settings['image_effects'] = 'none';
|
6863 |
}
|
@@ -6921,7 +6921,7 @@ class Wpr_Woo_Grid extends Widget_Base {
|
|
6921 |
public function render_media_overlay( $settings ) {
|
6922 |
echo '<div class="wpr-grid-media-hover-bg '. $this->get_animation_class( $settings, 'overlay' ) .'" data-url="'. esc_url( get_the_permalink( get_the_ID() ) ) .'">';
|
6923 |
|
6924 |
-
if (
|
6925 |
if ( '' !== $settings['overlay_image']['url'] ) {
|
6926 |
echo '<img src="'. esc_url( $settings['overlay_image']['url'] ) .'">';
|
6927 |
}
|
@@ -6932,8 +6932,8 @@ class Wpr_Woo_Grid extends Widget_Base {
|
|
6932 |
|
6933 |
// Render Post Title
|
6934 |
public function render_product_title( $settings, $class ) {
|
6935 |
-
$title_pointer = !
|
6936 |
-
$title_pointer_animation = !
|
6937 |
|
6938 |
$class .= ' wpr-pointer-'. $title_pointer;
|
6939 |
$class .= ' wpr-pointer-line-fx wpr-pointer-fx-'. $title_pointer_animation;
|
@@ -6966,8 +6966,8 @@ class Wpr_Woo_Grid extends Widget_Base {
|
|
6966 |
$count = 0;
|
6967 |
|
6968 |
// Pointer Class
|
6969 |
-
$categories_pointer = !
|
6970 |
-
$categories_pointer_animation = !
|
6971 |
|
6972 |
$class .= ' wpr-pointer-'. $categories_pointer;
|
6973 |
$class .= ' wpr-pointer-line-fx wpr-pointer-fx-'. $categories_pointer_animation;
|
@@ -7010,8 +7010,8 @@ class Wpr_Woo_Grid extends Widget_Base {
|
|
7010 |
$count = 0;
|
7011 |
|
7012 |
// Pointer Class
|
7013 |
-
$tags_pointer = !
|
7014 |
-
$tags_pointer_animation = !
|
7015 |
|
7016 |
$class .= ' wpr-pointer-'. $tags_pointer;
|
7017 |
$class .= ' wpr-pointer-line-fx wpr-pointer-fx-'. $tags_pointer_animation;
|
@@ -7192,7 +7192,7 @@ class Wpr_Woo_Grid extends Widget_Base {
|
|
7192 |
$product->supports( 'ajax_add_to_cart' ) ? 'ajax_add_to_cart' : '',
|
7193 |
] ) );
|
7194 |
|
7195 |
-
$add_to_cart_animation = !
|
7196 |
|
7197 |
$attributes = [
|
7198 |
'rel="nofollow"',
|
@@ -7389,7 +7389,7 @@ class Wpr_Woo_Grid extends Widget_Base {
|
|
7389 |
$place = $data['element_location'];
|
7390 |
$align_vr = $data['element_align_vr'];
|
7391 |
|
7392 |
-
if ( !
|
7393 |
$align_vr = 'middle';
|
7394 |
}
|
7395 |
|
@@ -7466,7 +7466,7 @@ class Wpr_Woo_Grid extends Widget_Base {
|
|
7466 |
// Get Custom Filters
|
7467 |
$custom_filters = $settings[ 'query_taxonomy_'. $taxonomy ];
|
7468 |
|
7469 |
-
if ( !
|
7470 |
$settings['filters_icon_align'] = '';
|
7471 |
$settings['filters_count'] = '';
|
7472 |
$settings['filters_pointer'] = 'none';
|
@@ -7618,7 +7618,7 @@ class Wpr_Woo_Grid extends Widget_Base {
|
|
7618 |
$pages = $this->get_max_num_pages( $settings );
|
7619 |
$paged = empty( $paged ) ? 1 : $paged;
|
7620 |
|
7621 |
-
if ( !
|
7622 |
$settings['pagination_type'] = 'pro-is' == $settings['pagination_type'] ? 'default' : $settings['pagination_type'];
|
7623 |
}
|
7624 |
|
@@ -7805,7 +7805,7 @@ class Wpr_Woo_Grid extends Widget_Base {
|
|
7805 |
|
7806 |
// Grid Settings
|
7807 |
public function add_grid_settings( $settings ) {
|
7808 |
-
if ( !
|
7809 |
$settings['layout_select'] = 'pro-ms' == $settings['layout_select'] ? 'fitRows' : $settings['layout_select'];
|
7810 |
$settings['filters_deeplinking'] = '';
|
7811 |
$settings['filters_count'] = '';
|
@@ -7840,7 +7840,7 @@ class Wpr_Woo_Grid extends Widget_Base {
|
|
7840 |
$layout_settings['media_distance'] = $settings['layout_list_media_distance']['size'];
|
7841 |
}
|
7842 |
|
7843 |
-
if ( !
|
7844 |
$settings['lightbox_popup_thumbnails'] = '';
|
7845 |
$settings['lightbox_popup_thumbnails_default'] = '';
|
7846 |
$settings['lightbox_popup_sharing'] = '';
|
@@ -7873,7 +7873,7 @@ class Wpr_Woo_Grid extends Widget_Base {
|
|
7873 |
$slider_is_rtl = is_rtl();
|
7874 |
$slider_direction = $slider_is_rtl ? 'rtl' : 'ltr';
|
7875 |
|
7876 |
-
if ( !
|
7877 |
$settings['layout_slider_autoplay'] = '';
|
7878 |
$settings['layout_slider_autoplay_duration'] = 0;
|
7879 |
$settings['layout_slider_pause_on_hover'] = '';
|
@@ -7892,7 +7892,7 @@ class Wpr_Woo_Grid extends Widget_Base {
|
|
7892 |
'nextArrow' => '#wpr-grid-slider-next-'. $this->get_id(),
|
7893 |
];
|
7894 |
|
7895 |
-
if ( !
|
7896 |
$settings['lightbox_popup_thumbnails'] = '';
|
7897 |
$settings['lightbox_popup_thumbnails_default'] = '';
|
7898 |
$settings['lightbox_popup_sharing'] = '';
|
675 |
|
676 |
$this->add_control_layout_columns();
|
677 |
|
678 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
679 |
$this->add_control(
|
680 |
'grid_columns_pro_notice',
|
681 |
[
|
1138 |
]
|
1139 |
);
|
1140 |
|
1141 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
1142 |
$repeater->add_control(
|
1143 |
'element_align_pro_notice',
|
1144 |
[
|
6694 |
public function get_main_query_args() {
|
6695 |
$settings = $this->get_settings();
|
6696 |
|
6697 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
6698 |
$settings['query_selection'] = 'pro-cr' == $settings['query_selection'] ? 'dynamic' : $settings['query_selection'];
|
6699 |
$settings['query_orderby'] = 'pro-rn' == $settings['query_orderby'] ? 'date' : $settings['query_orderby'];
|
6700 |
}
|
6857 |
public function get_image_effect_class( $settings ) {
|
6858 |
$class = '';
|
6859 |
|
6860 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
6861 |
if ( 'pro-zi' == $settings['image_effects'] || 'pro-zo' == $settings['image_effects'] || 'pro-go' == $settings['image_effects'] || 'pro-bo' == $settings['image_effects'] ) {
|
6862 |
$settings['image_effects'] = 'none';
|
6863 |
}
|
6921 |
public function render_media_overlay( $settings ) {
|
6922 |
echo '<div class="wpr-grid-media-hover-bg '. $this->get_animation_class( $settings, 'overlay' ) .'" data-url="'. esc_url( get_the_permalink( get_the_ID() ) ) .'">';
|
6923 |
|
6924 |
+
if ( wpr_fs()->can_use_premium_code() ) {
|
6925 |
if ( '' !== $settings['overlay_image']['url'] ) {
|
6926 |
echo '<img src="'. esc_url( $settings['overlay_image']['url'] ) .'">';
|
6927 |
}
|
6932 |
|
6933 |
// Render Post Title
|
6934 |
public function render_product_title( $settings, $class ) {
|
6935 |
+
$title_pointer = ! wpr_fs()->can_use_premium_code() ? 'none' : $this->get_settings()['title_pointer'];
|
6936 |
+
$title_pointer_animation = ! wpr_fs()->can_use_premium_code() ? 'fade' : $this->get_settings()['title_pointer_animation'];
|
6937 |
|
6938 |
$class .= ' wpr-pointer-'. $title_pointer;
|
6939 |
$class .= ' wpr-pointer-line-fx wpr-pointer-fx-'. $title_pointer_animation;
|
6966 |
$count = 0;
|
6967 |
|
6968 |
// Pointer Class
|
6969 |
+
$categories_pointer = ! wpr_fs()->can_use_premium_code() ? 'none' : $this->get_settings()['categories_pointer'];
|
6970 |
+
$categories_pointer_animation = ! wpr_fs()->can_use_premium_code() ? 'fade' : $this->get_settings()['categories_pointer_animation'];
|
6971 |
|
6972 |
$class .= ' wpr-pointer-'. $categories_pointer;
|
6973 |
$class .= ' wpr-pointer-line-fx wpr-pointer-fx-'. $categories_pointer_animation;
|
7010 |
$count = 0;
|
7011 |
|
7012 |
// Pointer Class
|
7013 |
+
$tags_pointer = ! wpr_fs()->can_use_premium_code() ? 'none' : $this->get_settings()['tags_pointer'];
|
7014 |
+
$tags_pointer_animation = ! wpr_fs()->can_use_premium_code() ? 'fade' : $this->get_settings()['tags_pointer_animation'];
|
7015 |
|
7016 |
$class .= ' wpr-pointer-'. $tags_pointer;
|
7017 |
$class .= ' wpr-pointer-line-fx wpr-pointer-fx-'. $tags_pointer_animation;
|
7192 |
$product->supports( 'ajax_add_to_cart' ) ? 'ajax_add_to_cart' : '',
|
7193 |
] ) );
|
7194 |
|
7195 |
+
$add_to_cart_animation = ! wpr_fs()->can_use_premium_code() ? 'wpr-button-none' : $this->get_settings()['add_to_cart_animation'];
|
7196 |
|
7197 |
$attributes = [
|
7198 |
'rel="nofollow"',
|
7389 |
$place = $data['element_location'];
|
7390 |
$align_vr = $data['element_align_vr'];
|
7391 |
|
7392 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
7393 |
$align_vr = 'middle';
|
7394 |
}
|
7395 |
|
7466 |
// Get Custom Filters
|
7467 |
$custom_filters = $settings[ 'query_taxonomy_'. $taxonomy ];
|
7468 |
|
7469 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
7470 |
$settings['filters_icon_align'] = '';
|
7471 |
$settings['filters_count'] = '';
|
7472 |
$settings['filters_pointer'] = 'none';
|
7618 |
$pages = $this->get_max_num_pages( $settings );
|
7619 |
$paged = empty( $paged ) ? 1 : $paged;
|
7620 |
|
7621 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
7622 |
$settings['pagination_type'] = 'pro-is' == $settings['pagination_type'] ? 'default' : $settings['pagination_type'];
|
7623 |
}
|
7624 |
|
7805 |
|
7806 |
// Grid Settings
|
7807 |
public function add_grid_settings( $settings ) {
|
7808 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
7809 |
$settings['layout_select'] = 'pro-ms' == $settings['layout_select'] ? 'fitRows' : $settings['layout_select'];
|
7810 |
$settings['filters_deeplinking'] = '';
|
7811 |
$settings['filters_count'] = '';
|
7840 |
$layout_settings['media_distance'] = $settings['layout_list_media_distance']['size'];
|
7841 |
}
|
7842 |
|
7843 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
7844 |
$settings['lightbox_popup_thumbnails'] = '';
|
7845 |
$settings['lightbox_popup_thumbnails_default'] = '';
|
7846 |
$settings['lightbox_popup_sharing'] = '';
|
7873 |
$slider_is_rtl = is_rtl();
|
7874 |
$slider_direction = $slider_is_rtl ? 'rtl' : 'ltr';
|
7875 |
|
7876 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
7877 |
$settings['layout_slider_autoplay'] = '';
|
7878 |
$settings['layout_slider_autoplay_duration'] = 0;
|
7879 |
$settings['layout_slider_pause_on_hover'] = '';
|
7892 |
'nextArrow' => '#wpr-grid-slider-next-'. $this->get_id(),
|
7893 |
];
|
7894 |
|
7895 |
+
if ( ! wpr_fs()->can_use_premium_code() ) {
|
7896 |
$settings['lightbox_popup_thumbnails'] = '';
|
7897 |
$settings['lightbox_popup_thumbnails_default'] = '';
|
7898 |
$settings['lightbox_popup_sharing'] = '';
|
plugin.php
CHANGED
@@ -186,7 +186,7 @@ class Plugin {
|
|
186 |
public function register_elementor_document_type( $documents_manager ) {
|
187 |
require WPR_ADDONS_PATH . 'modules/popup/wpr-popup.php';
|
188 |
|
189 |
-
if ( defined('
|
190 |
require WPR_ADDONS_PRO_PATH . 'modules/popup-pro/wpr-popup-pro.php';
|
191 |
$documents_manager->register_document_type( 'wpr-popups', 'Wpr_Popup_Pro' );
|
192 |
} else {
|
186 |
public function register_elementor_document_type( $documents_manager ) {
|
187 |
require WPR_ADDONS_PATH . 'modules/popup/wpr-popup.php';
|
188 |
|
189 |
+
if ( wpr_fs()->can_use_premium_code() && defined('WPR_ADDONS_PRO_VERSION') ) {
|
190 |
require WPR_ADDONS_PRO_PATH . 'modules/popup-pro/wpr-popup-pro.php';
|
191 |
$documents_manager->register_document_type( 'wpr-popups', 'Wpr_Popup_Pro' );
|
192 |
} else {
|
readme.txt
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
=== Royal Elementor Addons (Header Footer Builder, Popups, Post Grid, Woocommerce Product Grid, Slider, Parallax Image & other Free Addons for Elementor) ===
|
2 |
Contributors: WP Royal, rubeushagrid13, cyberpinky, elementoraddonswpr
|
3 |
Tags: elementor, elements, widgets for elementor, elementor addons, elementor widget, elementor form, woocommerce elementor, page builder, builder, wordpress page builder
|
4 |
-
Stable tag: 1.3.
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 5.8.2
|
7 |
Requires PHP: 5.6
|
@@ -263,6 +263,9 @@ post_max_size 64M
|
|
263 |
|
264 |
== Changelog ==
|
265 |
|
|
|
|
|
|
|
266 |
= Royal Elementor Addons v1.3.22 - 2021-12-03 =
|
267 |
* FIX: Elementor Pricing Table widget Button link is now clickable.
|
268 |
* FIX: Custom Post Types Elementor support option issue.
|
@@ -271,7 +274,7 @@ post_max_size 64M
|
|
271 |
* ADDED: Youtube Video Tutorial link to Elementor OnePage Navigation Widget.
|
272 |
|
273 |
= Royal Elementor Addons v1.3.21 - 2021-11-22 =
|
274 |
-
* FIX:
|
275 |
* ADDED: White Label Branding (Supported in PRO verison)
|
276 |
|
277 |
= Royal Elementor Addons v1.3.2 - 2021-11-19 =
|
1 |
=== Royal Elementor Addons (Header Footer Builder, Popups, Post Grid, Woocommerce Product Grid, Slider, Parallax Image & other Free Addons for Elementor) ===
|
2 |
Contributors: WP Royal, rubeushagrid13, cyberpinky, elementoraddonswpr
|
3 |
Tags: elementor, elements, widgets for elementor, elementor addons, elementor widget, elementor form, woocommerce elementor, page builder, builder, wordpress page builder
|
4 |
+
Stable tag: 1.3.23
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 5.8.2
|
7 |
Requires PHP: 5.6
|
263 |
|
264 |
== Changelog ==
|
265 |
|
266 |
+
= Royal Elementor Addons v1.3.23 - 2021-12-09 =
|
267 |
+
* FIX: Minor but essential Bugs.
|
268 |
+
|
269 |
= Royal Elementor Addons v1.3.22 - 2021-12-03 =
|
270 |
* FIX: Elementor Pricing Table widget Button link is now clickable.
|
271 |
* FIX: Custom Post Types Elementor support option issue.
|
274 |
* ADDED: Youtube Video Tutorial link to Elementor OnePage Navigation Widget.
|
275 |
|
276 |
= Royal Elementor Addons v1.3.21 - 2021-11-22 =
|
277 |
+
* FIX: Minor but essential Bugs.
|
278 |
* ADDED: White Label Branding (Supported in PRO verison)
|
279 |
|
280 |
= Royal Elementor Addons v1.3.2 - 2021-11-19 =
|
wpr-addons.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Description: The only plugin you need for Elementor page builder.
|
5 |
* Plugin URI: https://royal-elementor-addons.com/
|
6 |
* Author: WP Royal
|
7 |
-
* Version: 1.3.
|
8 |
* License: GPLv3
|
9 |
* Author URI: https://royal-elementor-addons.com/
|
10 |
* Elementor tested up to: 3.4.8
|
@@ -15,7 +15,7 @@
|
|
15 |
|
16 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
17 |
|
18 |
-
define( 'WPR_ADDONS_VERSION', '1.3.
|
19 |
|
20 |
define( 'WPR_ADDONS__FILE__', __FILE__ );
|
21 |
define( 'WPR_ADDONS_PLUGIN_BASE', plugin_basename( WPR_ADDONS__FILE__ ) );
|
4 |
* Description: The only plugin you need for Elementor page builder.
|
5 |
* Plugin URI: https://royal-elementor-addons.com/
|
6 |
* Author: WP Royal
|
7 |
+
* Version: 1.3.23
|
8 |
* License: GPLv3
|
9 |
* Author URI: https://royal-elementor-addons.com/
|
10 |
* Elementor tested up to: 3.4.8
|
15 |
|
16 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
17 |
|
18 |
+
define( 'WPR_ADDONS_VERSION', '1.3.23' );
|
19 |
|
20 |
define( 'WPR_ADDONS__FILE__', __FILE__ );
|
21 |
define( 'WPR_ADDONS_PLUGIN_BASE', plugin_basename( WPR_ADDONS__FILE__ ) );
|