PluginProbe
Weather Effect / trunk
Weather Effect vtrunk
1.6.1 1.1.9 1.2.0 1.2.10 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5.0 All 90 releases
weather-effect / settings.php

settings.php in Weather Effect trunk, at settings.php

741 lines 42.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) exit;
3 // Setting Page
4 add_action( 'admin_menu', 'weather_effect' );
5 function weather_effect() {
6 add_menu_page( 'Weather Effect Setting', __( 'Weather Effect', 'weather-effect' ), 'manage_options', 'weather-effects-setting', 'weather_effect_setting_page', 'dashicons-cloud' );
7 add_submenu_page( 'weather-effects-setting', __( 'Our Themes', 'weather-effect' ), __( 'Our Themes', 'weather-effect' ), 'manage_options', 'awplife-our-themes', 'awplife_we_our_themes_page_body' );
8 add_submenu_page( 'weather-effects-setting', __( 'Our Plugins', 'weather-effect' ), __( 'Our Plugins', 'weather-effect' ), 'manage_options', 'awplife-our-plugins', 'awplife_we_our_plugins_page_body' );
9 }
10
11 function weather_effect_setting_page() {
12 wp_enqueue_script( 'jquery' );
13 wp_enqueue_script( 'awplife-we-snow-bootstrap-js', AWPLIFE_WE_PLUGIN_PATH . 'assets/js/bootstrap.js', array( 'jquery' ), '1.6.1', true );
14 wp_enqueue_script( 'awplife-we-snow-christmas-snow-js', AWPLIFE_WE_PLUGIN_PATH . 'assets/js/christmas-snow/christmas-snow.js', array( 'jquery' ), '1.6.1', true );
15 wp_enqueue_script( 'awplife-we-snow-snow-falling-js', AWPLIFE_WE_PLUGIN_PATH . 'assets/js/snow-falling/snow-falling.js', array( 'jquery' ), '1.6.1', true );
16 wp_enqueue_script( 'awplife-we-snow-snowfall-master-js', AWPLIFE_WE_PLUGIN_PATH . 'assets/js/snowfall-master/snowfall-master.min.js', array( 'jquery' ), '1.6.1', true );
17 wp_enqueue_script( 'awplife-we-image-preview-js', AWPLIFE_WE_PLUGIN_PATH . 'assets/js/image-preview.js', array( 'jquery' ), '1.6.1', true );
18 wp_add_inline_script( 'awplife-we-image-preview-js', 'var AWPLIFE_WE_PLUGIN_PATH = ' . wp_json_encode( AWPLIFE_WE_PLUGIN_PATH ) . ';', 'before' );
19 wp_enqueue_script( 'awplife-we-admin-ui', AWPLIFE_WE_PLUGIN_PATH . 'assets/js/admin-ui-enhancements.js', array( 'jquery' ), '1.6.1', true );
20 wp_enqueue_style( 'awplife-we-bootstrap-css', AWPLIFE_WE_PLUGIN_PATH . 'assets/css/bootstrap.css', array(), '1.6.1' );
21 wp_enqueue_style( 'awplife-we-font-awesome-css', AWPLIFE_WE_PLUGIN_PATH . 'assets/css/font-awesome.css', array(), '1.6.1' );
22 wp_enqueue_style( 'awplife-we-admin-modern', AWPLIFE_WE_PLUGIN_PATH . 'assets/css/admin-modern.css', array( 'awplife-we-bootstrap-css' ), '1.6.1' );
23 wp_enqueue_style( 'wp-color-picker' );
24 wp_enqueue_script( 'wp-color-picker' );
25
26 $weather_effect_settings = get_option( 'weather_effect_settings' );
27 ?>
28 <style>
29 .wep-loading-overlay {
30 position: fixed;
31 top: 0;
32 left: 0;
33 right: 0;
34 bottom: 0;
35 background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
36 z-index: 999999;
37 display: flex;
38 flex-direction: column;
39 align-items: center;
40 justify-content: center;
41 gap: 20px;
42 }
43 .wep-loading-spinner {
44 width: 50px;
45 height: 50px;
46 border: 4px solid #e2e8f0;
47 border-top-color: #6366f1;
48 border-radius: 50%;
49 animation: wep-spin 0.8s linear infinite;
50 }
51 .wep-loading-text {
52 font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
53 font-size: 16px;
54 font-weight: 500;
55 color: #64748b;
56 }
57 .wep-loading-icon {
58 margin-bottom: 10px;
59 display: flex;
60 align-items: center;
61 justify-content: center;
62 }
63 .wep-loading-icon .dashicons {
64 font-size: 48px !important;
65 width: 48px !important;
66 height: 48px !important;
67 color: #6366f1 !important;
68 animation: wep-pulse 1.5s infinite ease-in-out;
69 }
70 @keyframes wep-pulse {
71 0%, 100% { transform: scale(1); opacity: 0.7; }
72 50% { transform: scale(1.1); opacity: 1; }
73 }
74 @keyframes wep-spin {
75 to { transform: rotate(360deg); }
76 }
77 .wep-admin-wrap {
78 opacity: 0;
79 transition: opacity 0.3s ease;
80 }
81 .wep-admin-wrap.wep-loaded {
82 opacity: 1;
83 }
84 </style>
85
86 <div class="wep-loading-overlay" id="wep-loading-overlay">
87 <div class="wep-loading-spinner"></div>
88 <div class="wep-loading-text"><?php esc_html_e( 'Loading Weather Effect...', 'weather-effect' ); ?></div>
89 </div>
90
91 <div class="wep-admin-wrap">
92 <div class="snowfalls-page">
93 <h1>
94 <span>Weather Effect - <?php esc_html_e( 'Configure Settings', 'weather-effect' ); ?></span>
95 <span class="wep-version-badge">v<?php echo esc_html( AWPLIFE_WE_VERSION ); ?></span>
96 </h1>
97 <form id="snowfall-setting-form">
98 <?php wp_nonce_field( 'we_save_nonce', 'we_settings_nonce' ); ?>
99 <div class="wep-top-controls">
100 <div class="wep-control-group">
101 <p class="bg-title"><?php esc_html_e( 'Turn ON / OFF Effect', 'weather-effect' ); ?></p>
102 <?php
103 if ( isset( $weather_effect_settings['enable_weather_effect'] ) ) {
104 $enable_weather_effect = $weather_effect_settings['enable_weather_effect'];
105 } else {
106 $enable_weather_effect = 0;
107 }
108 ?>
109 <p class="col-xs-6 switch-field em_size_field padding_settings">
110 <input class="widefat" id="enable_weather_effect1" name="enable_weather_effect" type="radio" value="1"
111 <?php
112 if ( $enable_weather_effect == '1' ) {
113 echo 'checked=checked';}
114 ?>
115 >
116 <label for="enable_weather_effect1"><?php esc_html_e( 'Enable', 'weather-effect' ); ?></label>
117 <input class="widefat" id="enable_weather_effect2" name="enable_weather_effect" type="radio" value="0"
118 <?php
119 if ( $enable_weather_effect == '0' ) {
120 echo 'checked=checked';}
121 ?>
122 >
123 <label for="enable_weather_effect2"><?php esc_html_e( 'Disable', 'weather-effect' ); ?></label>
124 </p>
125 </div>
126 </div>
127
128 <div class="row wep-occasion-row">
129 <p class="wep-section-heading"><?php esc_html_e( 'Select A Weather / Season / Occasion', 'weather-effect' ); ?></p>
130 <?php
131 if ( isset( $weather_effect_settings['weather_occasion'] ) ) {
132 $weather_occasion = $weather_effect_settings['weather_occasion'];
133 } else {
134 $weather_occasion = 'christmas_check';
135 }
136 ?>
137 <div class="wep-occasion-select-wrap">
138 <select id="weather_occasion" name="weather_occasion" class="form-control">
139 <option value="christmas_check"
140 <?php
141 if ( $weather_occasion == 'christmas_check' ) {
142 echo 'selected="selected"';}
143 ?>
144 ><?php esc_html_e( 'Christmas', 'weather-effect' ); ?></option>
145 <option value="winter_check"
146 <?php
147 if ( $weather_occasion == 'winter_check' ) {
148 echo 'selected="selected"';}
149 ?>
150 ><?php esc_html_e( 'Winter', 'weather-effect' ); ?></option>
151 <option value="autumn_check"
152 <?php
153 if ( $weather_occasion == 'autumn_check' ) {
154 echo 'selected="selected"';}
155 ?>
156 ><?php esc_html_e( 'Autumn', 'weather-effect' ); ?></option>
157 <option value="spring_check"
158 <?php
159 if ( $weather_occasion == 'spring_check' ) {
160 echo 'selected="selected"';}
161 ?>
162 ><?php esc_html_e( 'Spring', 'weather-effect' ); ?></option>
163 <option value="summer_check"
164 <?php
165 if ( $weather_occasion == 'summer_check' ) {
166 echo 'selected="selected"';}
167 ?>
168 ><?php esc_html_e( 'Summer', 'weather-effect' ); ?></option>
169 <option value="rainy_check"
170 <?php
171 if ( $weather_occasion == 'rainy_check' ) {
172 echo 'selected="selected"';}
173 ?>
174 ><?php esc_html_e( 'Rain', 'weather-effect' ); ?></option>
175 <option value="halloween_check"
176 <?php
177 if ( $weather_occasion == 'halloween_check' ) {
178 echo 'selected="selected"';}
179 ?>
180 ><?php esc_html_e( 'Halloween', 'weather-effect' ); ?></option>
181 <option value="thanks_giving_check"
182 <?php
183 if ( $weather_occasion == 'thanks_giving_check' ) {
184 echo 'selected="selected"';}
185 ?>
186 ><?php esc_html_e( 'Thanks Giving', 'weather-effect' ); ?></option>
187 <option value="valentine_check"
188 <?php
189 if ( $weather_occasion == 'valentine_check' ) {
190 echo 'selected="selected"';}
191 ?>
192 ><?php esc_html_e( 'Valentine', 'weather-effect' ); ?></option>
193 <option value="new_year_check"
194 <?php
195 if ( $weather_occasion == 'new_year_check' ) {
196 echo 'selected="selected"';}
197 ?>
198 ><?php esc_html_e( 'New Year', 'weather-effect' ); ?></option>
199 </select>
200 </div>
201 </div>
202
203 <div>
204 <?php
205 require_once 'settings/christmas-snow-settings.php';
206 require_once 'settings/winter-settings.php';
207 require_once 'settings/autumn-settings.php';
208 require_once 'settings/spring-settings.php';
209 require_once 'settings/summer-settings.php';
210 require_once 'settings/rainy-settings.php';
211 require_once 'settings/halloween-settings.php';
212 require_once 'settings/thanks-giving-settings.php';
213 require_once 'settings/valentine-settings.php';
214 require_once 'settings/new-year-settings.php';
215 ?>
216 </div>
217
218 <script>
219 jQuery(document).ready(function ($) {
220 function showSeasonPanel(selectedOccasion) {
221 $('#christmas_weather_effect').hide();
222 $('#winter_weather_effect').hide();
223 $('#autumn_weather_effect').hide();
224 $('#spring_weather_effect').hide();
225 $('#summer_weather_effect').hide();
226 $('#halloween_weather_effect').hide();
227 $('#rain_weather_effect').hide();
228 $('#thanksgiving_weather_effect').hide();
229 $('#valentine_weather_effect').hide();
230 $('#new_year_weather_effect').hide();
231
232 switch (selectedOccasion) {
233 case 'christmas_check': $('#christmas_weather_effect').show(); break;
234 case 'winter_check': $('#winter_weather_effect').show(); break;
235 case 'autumn_check': $('#autumn_weather_effect').show(); break;
236 case 'spring_check': $('#spring_weather_effect').show(); break;
237 case 'summer_check': $('#summer_weather_effect').show(); break;
238 case 'halloween_check': $('#halloween_weather_effect').show(); break;
239 case 'rainy_check': $('#rain_weather_effect').show(); break;
240 case 'thanks_giving_check': $('#thanksgiving_weather_effect').show(); break;
241 case 'valentine_check': $('#valentine_weather_effect').show(); break;
242 case 'new_year_check': $('#new_year_weather_effect').show(); break;
243 }
244 }
245
246 var initialOccasion = $('#weather_occasion').val();
247 showSeasonPanel(initialOccasion);
248
249 $('#weather_occasion').on('change', function () {
250 showSeasonPanel($(this).val());
251 });
252 });
253 </script>
254
255 <input type="hidden" id="snow_action" name="snow_action" value="save_setting">
256
257 <div class="wep-action-buttons">
258 <button type="button" id="wep-save_setting" class="wep-btn wep-btn-primary" onclick="SnowSaveSettings();">
259 <span class="wep-btn-icon"><span class="dashicons dashicons-saved"></span></span>
260 <span class="wep-btn-spinner" style="display: none;"><span class="dashicons dashicons-update wep-spin"></span></span>
261 <span class="wep-btn-text"><?php esc_html_e( 'Save Settings', 'weather-effect' ); ?></span>
262 </button>
263 <button type="button" id="wep-preview" class="wep-btn wep-btn-secondary" onclick="PreviewSettings();">
264 <span class="wep-btn-icon"><span class="dashicons dashicons-visibility"></span></span>
265 <span class="wep-btn-spinner" style="display: none;"><span class="dashicons dashicons-update wep-spin"></span></span>
266 <span class="wep-btn-text"><?php esc_html_e( 'Preview', 'weather-effect' ); ?></span>
267 </button>
268 </div>
269 <p class="wep-preview-note">
270 <em><?php esc_html_e( 'Preview saves and opens your site in a new tab', 'weather-effect' ); ?></em>
271 </p>
272
273 <hr />
274 <h3><?php esc_html_e( 'Review Appeal', 'weather-effect' ); ?></h3>
275 <p><?php esc_html_e( 'We hope you love the plugin. If you do, would you consider posting an online review? This helps us to continue providing great plugin and support to potential users to make confident decisions.', 'weather-effect' ); ?></p>
276 <a href="https://wordpress.org/support/plugin/weather-effect/reviews/#new-post" target="_blank" class="wep-btn wep-btn-success wep-review-btn">
277 <span class="dashicons dashicons-thumbs-up wep-review-icon"></span> <?php esc_html_e( 'Post Review', 'weather-effect' ); ?>
278 </a>
279 </form>
280
281 <hr />
282 <div class="wep-upgrade-section">
283 <div class="wep-upgrade-header">
284 <h2><?php esc_html_e( 'Upgrade To Weather Effect Premium Just In Half Price', 'weather-effect' ); ?></h2>
285 <div class="wep-upgrade-pricing">
286 <span class="wep-strike-price">$42</span>
287 <span class="wep-sale-price">$21</span>
288 </div>
289 </div>
290
291 <div class="wep-pro-features-grid">
292 <div class="wep-feature-item">
293 <span class="wep-feature-icon"><span class="dashicons dashicons-calendar-alt"></span></span>
294 <div class="wep-feature-content">
295 <strong><?php esc_html_e( '11 Seasonal Occasions', 'weather-effect' ); ?></strong>
296 <p><?php esc_html_e( 'Unlock Spring, Summer, Halloween, Thanksgiving, Valentine\'s Day, New Year, and Birthday.', 'weather-effect' ); ?></p>
297 </div>
298 </div>
299 <div class="wep-feature-item">
300 <span class="wep-feature-icon"><span class="dashicons dashicons-cloud-upload"></span></span>
301 <div class="wep-feature-content">
302 <strong><?php esc_html_e( 'Custom Image Upload', 'weather-effect' ); ?></strong>
303 <p><?php esc_html_e( 'Upload up to 10 of your own PNG/JPEG/GIF graphics as falling elements.', 'weather-effect' ); ?></p>
304 </div>
305 </div>
306 <div class="wep-feature-item">
307 <span class="wep-feature-icon"><span class="dashicons dashicons-clock"></span></span>
308 <div class="wep-feature-content">
309 <strong><?php esc_html_e( 'Auto-Timeout Settings', 'weather-effect' ); ?></strong>
310 <p><?php esc_html_e( 'Set custom seconds to automatically stop the weather animations.', 'weather-effect' ); ?></p>
311 </div>
312 </div>
313 <div class="wep-feature-item">
314 <span class="wep-feature-icon"><span class="dashicons dashicons-no-alt"></span></span>
315 <div class="wep-feature-content">
316 <strong><?php esc_html_e( 'Targeted Exclusions', 'weather-effect' ); ?></strong>
317 <p><?php esc_html_e( 'Exclude weather effects on specific pages, posts, or Custom Post Types.', 'weather-effect' ); ?></p>
318 </div>
319 </div>
320 <div class="wep-feature-item">
321 <span class="wep-feature-icon"><span class="dashicons dashicons-admin-generic"></span></span>
322 <div class="wep-feature-content">
323 <strong><?php esc_html_e( 'Advanced Velocity & Sizing', 'weather-effect' ); ?></strong>
324 <p><?php esc_html_e( 'Configure random particle sizing and customized falling speeds.', 'weather-effect' ); ?></p>
325 </div>
326 </div>
327 <div class="wep-feature-item">
328 <span class="wep-feature-icon"><span class="dashicons dashicons-performance"></span></span>
329 <div class="wep-feature-content">
330 <strong><?php esc_html_e( 'High-Performance Canvas Engine', 'weather-effect' ); ?></strong>
331 <p><?php esc_html_e( 'Renders hundreds of smooth particles at 60fps with lightweight footprint.', 'weather-effect' ); ?></p>
332 </div>
333 </div>
334 <div class="wep-feature-item">
335 <span class="wep-feature-icon"><span class="dashicons dashicons-cloud"></span></span>
336 <div class="wep-feature-content">
337 <strong><?php esc_html_e( 'Wind Control & Trajectory', 'weather-effect' ); ?></strong>
338 <p><?php esc_html_e( 'Configure wind directions and horizontal drift speeds for realistic motion.', 'weather-effect' ); ?></p>
339 </div>
340 </div>
341 <div class="wep-feature-item">
342 <span class="wep-feature-icon"><span class="dashicons dashicons-move"></span></span>
343 <div class="wep-feature-content">
344 <strong><?php esc_html_e( 'Interactive Mouse Proximity', 'weather-effect' ); ?></strong>
345 <p><?php esc_html_e( 'Particles scatter away dynamically as the visitor moves their cursor.', 'weather-effect' ); ?></p>
346 </div>
347 </div>
348 <div class="wep-feature-item">
349 <span class="wep-feature-icon"><span class="dashicons dashicons-arrow-down-alt2"></span></span>
350 <div class="wep-feature-content">
351 <strong><?php esc_html_e( 'Dynamic Scroll Parallax', 'weather-effect' ); ?></strong>
352 <p><?php esc_html_e( 'Creates a sense of depth by moving particles relative to scroll speed.', 'weather-effect' ); ?></p>
353 </div>
354 </div>
355 <div class="wep-feature-item">
356 <span class="wep-feature-icon"><span class="dashicons dashicons-image-rotate"></span></span>
357 <div class="wep-feature-content">
358 <strong><?php esc_html_e( 'Sway & Rotation Effects', 'weather-effect' ); ?></strong>
359 <p><?php esc_html_e( 'Particles rotate and sway side-to-side naturally as they float down.', 'weather-effect' ); ?></p>
360 </div>
361 </div>
362 <div class="wep-feature-item">
363 <span class="wep-feature-icon"><span class="dashicons dashicons-format-image"></span></span>
364 <div class="wep-feature-content">
365 <strong><?php esc_html_e( 'Bottom Snow Accumulation', 'weather-effect' ); ?></strong>
366 <p><?php esc_html_e( 'Enable falling elements to settle and stack up at the bottom of the screen.', 'weather-effect' ); ?></p>
367 </div>
368 </div>
369 <div class="wep-feature-item">
370 <span class="wep-feature-icon"><span class="dashicons dashicons-cart"></span></span>
371 <div class="wep-feature-content">
372 <strong><?php esc_html_e( 'WooCommerce & Blocks Ready', 'weather-effect' ); ?></strong>
373 <p><?php esc_html_e( 'Perfectly compatible with block editors, WooCommerce catalogs, and custom templates.', 'weather-effect' ); ?></p>
374 </div>
375 </div>
376 </div>
377
378 <div class="wep-upgrade-actions">
379 <a href="https://awplife.com/wordpress-plugins/weather-effect-wordpress-plugin/" target="_blank" class="wep-btn wep-btn-primary"><?php esc_html_e( 'Premium Version Details', 'weather-effect' ); ?></a>
380 <a href="https://awplife.com/demo/weather-effect/" target="_blank" class="wep-btn wep-btn-secondary"><?php esc_html_e( 'Check Live Demo', 'weather-effect' ); ?></a>
381 </div>
382 </div>
383 <hr />
384
385 <div class="awp_bale_offer">
386 <h1><?php esc_html_e( "Plugin's Bale Offer", 'weather-effect' ); ?></h1>
387 <h3><?php esc_html_e( 'Get All Premium Plugin ( Personal License) in just $149', 'weather-effect' ); ?></h3>
388 <h3><strike>$399</strike> <?php esc_html_e( 'For $149 Only', 'weather-effect' ); ?></h3>
389 <div class="awp_bale_btn_wrap">
390 <a href="https://awplife.com/account/signup/all-premium-plugins" target="_blank" class="wep-btn wep-btn-primary wep-btn-bale"><?php esc_html_e( 'BUY NOW', 'weather-effect' ); ?></a>
391 </div>
392 </div>
393 </div>
394 </div>
395
396 <script>
397 function SnowSaveSettings() {
398 jQuery("#wep-save_setting").prop('disabled', true);
399 jQuery("#wep-preview").prop('disabled', true);
400 jQuery("#wep-save_setting .wep-btn-icon").hide();
401 jQuery("#wep-save_setting .wep-btn-spinner").show();
402 jQuery("#wep-save_setting .wep-btn-text").text("<?php echo esc_js( __( 'Saving...', 'weather-effect' ) ); ?>");
403
404 jQuery.ajax({
405 dataType: 'html',
406 type: 'POST',
407 url: location.href,
408 cache: false,
409 data: jQuery('#snowfall-setting-form').serialize() + '&snow_action=save_setting' + '&security=' + <?php echo wp_json_encode( wp_create_nonce( 'we_save_nonce' ) ); ?>,
410 complete: function() {},
411 success: function(data) {
412 jQuery("#wep-save_setting").prop('disabled', false);
413 jQuery("#wep-preview").prop('disabled', false);
414 jQuery("#wep-save_setting .wep-btn-icon").show();
415 jQuery("#wep-save_setting .wep-btn-spinner").hide();
416 jQuery("#wep-save_setting .wep-btn-text").text("<?php echo esc_js( __( 'Save Settings', 'weather-effect' ) ); ?>");
417
418 jQuery('#result-msg').html(jQuery(data).find('div#setting-result'));
419 jQuery("div#setting-result").fadeOut(5000, "linear");
420 },
421 error: function(xhr, status, error) {
422 console.error("AJAX error saving settings:", status, error);
423 jQuery("#wep-save_setting").prop('disabled', false);
424 jQuery("#wep-preview").prop('disabled', false);
425 jQuery("#wep-save_setting .wep-btn-icon").show();
426 jQuery("#wep-save_setting .wep-btn-spinner").hide();
427 jQuery("#wep-save_setting .wep-btn-text").text("<?php echo esc_js( __( 'Save Settings', 'weather-effect' ) ); ?>");
428 }
429 });
430 }
431
432 function PreviewSettings() {
433 jQuery("#wep-save_setting").prop('disabled', true);
434 jQuery("#wep-preview").prop('disabled', true);
435 jQuery("#wep-preview .wep-btn-icon").hide();
436 jQuery("#wep-preview .wep-btn-spinner").show();
437 jQuery("#wep-preview .wep-btn-text").text("<?php echo esc_js( __( 'Saving...', 'weather-effect' ) ); ?>");
438
439 jQuery.ajax({
440 dataType: 'html',
441 type: 'POST',
442 url: location.href,
443 cache: false,
444 data: jQuery('#snowfall-setting-form').serialize() + '&snow_action=save_setting' + '&security=' + <?php echo wp_json_encode( wp_create_nonce( 'we_save_nonce' ) ); ?>,
445 success: function(data) {
446 jQuery("#wep-save_setting").prop('disabled', false);
447 jQuery("#wep-preview").prop('disabled', false);
448 jQuery("#wep-preview .wep-btn-icon").show();
449 jQuery("#wep-preview .wep-btn-spinner").hide();
450 jQuery("#wep-preview .wep-btn-text").text("<?php echo esc_js( __( 'Preview', 'weather-effect' ) ); ?>");
451
452 window.open('<?php echo esc_url( home_url( '/' ) ); ?>', 'we_preview_window');
453 },
454 error: function(xhr, status, error) {
455 console.error("AJAX error loading preview:", status, error);
456 jQuery("#wep-save_setting").prop('disabled', false);
457 jQuery("#wep-preview").prop('disabled', false);
458 jQuery("#wep-preview .wep-btn-icon").show();
459 jQuery("#wep-preview .wep-btn-spinner").hide();
460 jQuery("#wep-preview .wep-btn-text").text("<?php echo esc_js( __( 'Preview', 'weather-effect' ) ); ?>");
461 }
462 });
463 }
464
465 var rangeSlider = function(){
466 var slider = jQuery('.range-slider'),
467 range = jQuery('.range-slider__range'),
468 value = jQuery('.range-slider__value');
469 slider.each(function(){
470 value.each(function(){
471 var value = jQuery(this).prev().attr('value');
472 jQuery(this).html(value);
473 });
474 range.on('input', function(){
475 jQuery(this).siblings('.range-slider__value').html(this.value);
476 });
477 });
478 };
479 rangeSlider();
480
481 jQuery(window).on('load', function() {
482 setTimeout(function() {
483 jQuery('#wep-loading-overlay').fadeOut(300);
484 jQuery('.wep-admin-wrap').addClass('wep-loaded');
485 }, 100);
486 });
487 setTimeout(function() {
488 jQuery('#wep-loading-overlay').fadeOut(300);
489 jQuery('.wep-admin-wrap').addClass('wep-loaded');
490 }, 3000);
491 </script>
492 <?php
493
494 if ( isset( $_POST['snow_action'] ) ) {
495 if ( ! current_user_can( 'manage_options' ) ) {
496 return;
497 }
498 $we_save_nonce_value = isset( $_POST['security'] ) ? wp_unslash( $_POST['security'] ) : '';
499 if ( wp_verify_nonce( $we_save_nonce_value, 'we_save_nonce' ) ) {
500
501 $enable_weather_effect = isset( $_POST['enable_weather_effect'] ) ? sanitize_text_field( wp_unslash( $_POST['enable_weather_effect'] ) ) : 1;
502 $weather_occasion = isset( $_POST['weather_occasion'] ) ? sanitize_text_field( wp_unslash( $_POST['weather_occasion'] ) ) : 'christmas_check';
503
504 $christmas_types = isset( $_POST['christmas_types'] ) ? sanitize_text_field( wp_unslash( $_POST['christmas_types'] ) ) : 'snow_effect';
505 $ball = isset( $_POST['ball'] ) ? sanitize_text_field( wp_unslash( $_POST['ball'] ) ) : '';
506 $christmas_ball = isset( $_POST['christmas_ball'] ) ? sanitize_text_field( wp_unslash( $_POST['christmas_ball'] ) ) : 'ball3';
507 $bell = isset( $_POST['bell'] ) ? sanitize_text_field( wp_unslash( $_POST['bell'] ) ) : '';
508 $christmas_bell = isset( $_POST['christmas_bell'] ) ? sanitize_text_field( wp_unslash( $_POST['christmas_bell'] ) ) : 'bell3';
509 $candy = isset( $_POST['candy'] ) ? sanitize_text_field( wp_unslash( $_POST['candy'] ) ) : '';
510 $christmas_candy = isset( $_POST['christmas_candy'] ) ? sanitize_text_field( wp_unslash( $_POST['christmas_candy'] ) ) : 'candy3';
511 $gift = isset( $_POST['gift'] ) ? sanitize_text_field( wp_unslash( $_POST['gift'] ) ) : '';
512 $christmas_gift = isset( $_POST['christmas_gift'] ) ? sanitize_text_field( wp_unslash( $_POST['christmas_gift'] ) ) : 'gift3';
513 $snowman = isset( $_POST['snowman'] ) ? sanitize_text_field( wp_unslash( $_POST['snowman'] ) ) : '';
514 $christmas_snowman = isset( $_POST['christmas_snowman'] ) ? sanitize_text_field( wp_unslash( $_POST['christmas_snowman'] ) ) : 'Snowman3';
515 $snow_flake = isset( $_POST['snow_flake'] ) ? sanitize_text_field( wp_unslash( $_POST['snow_flake'] ) ) : '';
516 $christmas_snow_flake = isset( $_POST['christmas_snow_flake'] ) ? sanitize_text_field( wp_unslash( $_POST['christmas_snow_flake'] ) ) : 'flack2';
517 $christmas_min_size_leaf = isset( $_POST['christmas_min_size_leaf'] ) ? absint( $_POST['christmas_min_size_leaf'] ) : 20;
518 $christmas_max_size_leaf = isset( $_POST['christmas_max_size_leaf'] ) ? absint( $_POST['christmas_max_size_leaf'] ) : 50;
519 $christmas_flakes_leaf = isset( $_POST['christmas_flakes_leaf'] ) ? absint( $_POST['christmas_flakes_leaf'] ) : 5;
520 $christmas_speed = isset( $_POST['christmas_speed'] ) ? absint( $_POST['christmas_speed'] ) : 5;
521 $master_round = isset( $_POST['master_round'] ) ? sanitize_text_field( wp_unslash( $_POST['master_round'] ) ) : 'false';
522 $round_type = isset( $_POST['round_type'] ) ? sanitize_text_field( wp_unslash( $_POST['round_type'] ) ) : 'true';
523 $min_size_round = isset( $_POST['min_size_round'] ) ? absint( $_POST['min_size_round'] ) : 4;
524 $max_size_round = isset( $_POST['max_size_round'] ) ? absint( $_POST['max_size_round'] ) : 20;
525 $master_shadows = isset( $_POST['master_shadows'] ) ? sanitize_text_field( wp_unslash( $_POST['master_shadows'] ) ) : 'false';
526 $shadow_type = isset( $_POST['shadow_type'] ) ? sanitize_text_field( wp_unslash( $_POST['shadow_type'] ) ) : 'true';
527 $flakes_shadow = isset( $_POST['flakes_shadow'] ) ? absint( $_POST['flakes_shadow'] ) : 50;
528 $snow_types = isset( $_POST['snow_types'] ) ? sanitize_text_field( wp_unslash( $_POST['snow_types'] ) ) : 'winter_snow';
529 $ice_cube = isset( $_POST['ice_cube'] ) ? sanitize_text_field( wp_unslash( $_POST['ice_cube'] ) ) : 'true';
530 $min_size_christmas = isset( $_POST['min_size_christmas'] ) ? absint( $_POST['min_size_christmas'] ) : 1;
531 $max_size_christmas = isset( $_POST['max_size_christmas'] ) ? absint( $_POST['max_size_christmas'] ) : 5;
532 $flake_christmas = isset( $_POST['flake_christmas'] ) ? absint( $_POST['flake_christmas'] ) : 5;
533 $min_size_falling = isset( $_POST['min_size_falling'] ) ? absint( $_POST['min_size_falling'] ) : 3;
534 $max_size_falling = isset( $_POST['max_size_falling'] ) ? absint( $_POST['max_size_falling'] ) : 30;
535 $snow_falling_time = isset( $_POST['snow_falling_time'] ) ? absint( $_POST['snow_falling_time'] ) : 500;
536 $snow_falling_color = isset( $_POST['snow_falling_color'] ) ? sanitize_text_field( wp_unslash( $_POST['snow_falling_color'] ) ) : 'FFFFFF';
537 $leaf = isset( $_POST['leaf'] ) ? sanitize_text_field( wp_unslash( $_POST['leaf'] ) ) : '';
538 $autumn_leaf = isset( $_POST['autumn_leaf'] ) ? sanitize_text_field( wp_unslash( $_POST['autumn_leaf'] ) ) : 'autumn-leaf2';
539 $autumn_min_size_leaf = isset( $_POST['autumn_min_size_leaf'] ) ? absint( $_POST['autumn_min_size_leaf'] ) : 20;
540 $autumn_max_size_leaf = isset( $_POST['autumn_max_size_leaf'] ) ? absint( $_POST['autumn_max_size_leaf'] ) : 50;
541 $autumn_flakes_leaf = isset( $_POST['autumn_flakes_leaf'] ) ? absint( $_POST['autumn_flakes_leaf'] ) : 5;
542 $autumn_speed = isset( $_POST['autumn_speed'] ) ? absint( $_POST['autumn_speed'] ) : 5;
543 $leaf_spring = isset( $_POST['leaf_spring'] ) ? sanitize_text_field( wp_unslash( $_POST['leaf_spring'] ) ) : '';
544 $spring_leaf = isset( $_POST['spring_leaf'] ) ? sanitize_text_field( wp_unslash( $_POST['spring_leaf'] ) ) : 'spring-leaf2';
545 $spring_min_size_leaf = isset( $_POST['spring_min_size_leaf'] ) ? absint( $_POST['spring_min_size_leaf'] ) : 20;
546 $spring_max_size_leaf = isset( $_POST['spring_max_size_leaf'] ) ? absint( $_POST['spring_max_size_leaf'] ) : 50;
547 $spring_flakes_leaf = isset( $_POST['spring_flakes_leaf'] ) ? absint( $_POST['spring_flakes_leaf'] ) : 5;
548 $spring_speed = isset( $_POST['spring_speed'] ) ? absint( $_POST['spring_speed'] ) : 5;
549 $drink = isset( $_POST['drink'] ) ? sanitize_text_field( wp_unslash( $_POST['drink'] ) ) : '';
550 $summer_drink = isset( $_POST['summer_drink'] ) ? sanitize_text_field( wp_unslash( $_POST['summer_drink'] ) ) : 'drink2';
551 $sun = isset( $_POST['sun'] ) ? sanitize_text_field( wp_unslash( $_POST['sun'] ) ) : '';
552 $summer_sun = isset( $_POST['summer_sun'] ) ? sanitize_text_field( wp_unslash( $_POST['summer_sun'] ) ) : 'sun2';
553 $summer_min_size_leaf = isset( $_POST['summer_min_size_leaf'] ) ? absint( $_POST['summer_min_size_leaf'] ) : 20;
554 $summer_max_size_leaf = isset( $_POST['summer_max_size_leaf'] ) ? absint( $_POST['summer_max_size_leaf'] ) : 50;
555 $summer_flakes_leaf = isset( $_POST['summer_flakes_leaf'] ) ? absint( $_POST['summer_flakes_leaf'] ) : 5;
556 $summer_speed = isset( $_POST['summer_speed'] ) ? absint( $_POST['summer_speed'] ) : 5;
557 $umbrella = isset( $_POST['umbrella'] ) ? sanitize_text_field( wp_unslash( $_POST['umbrella'] ) ) : '';
558 $rain_umbrella = isset( $_POST['rain_umbrella'] ) ? sanitize_text_field( wp_unslash( $_POST['rain_umbrella'] ) ) : 'umbrella2';
559 $drop = isset( $_POST['drop'] ) ? sanitize_text_field( wp_unslash( $_POST['drop'] ) ) : '';
560 $rain_drops = isset( $_POST['rain_drops'] ) ? sanitize_text_field( wp_unslash( $_POST['rain_drops'] ) ) : 'drops2';
561 $cloud = isset( $_POST['cloud'] ) ? sanitize_text_field( wp_unslash( $_POST['cloud'] ) ) : '';
562 $rain_cloud = isset( $_POST['rain_cloud'] ) ? sanitize_text_field( wp_unslash( $_POST['rain_cloud'] ) ) : 'cloud2';
563 $rain_min_size_leaf = isset( $_POST['rain_min_size_leaf'] ) ? absint( $_POST['rain_min_size_leaf'] ) : 20;
564 $rain_max_size_leaf = isset( $_POST['rain_max_size_leaf'] ) ? absint( $_POST['rain_max_size_leaf'] ) : 50;
565 $rain_flakes_leaf = isset( $_POST['rain_flakes_leaf'] ) ? absint( $_POST['rain_flakes_leaf'] ) : 5;
566 $rain_speed = isset( $_POST['rain_speed'] ) ? absint( $_POST['rain_speed'] ) : 5;
567 $ghost = isset( $_POST['ghost'] ) ? sanitize_text_field( wp_unslash( $_POST['ghost'] ) ) : '';
568 $halloween_ghost = isset( $_POST['halloween_ghost'] ) ? sanitize_text_field( wp_unslash( $_POST['halloween_ghost'] ) ) : 'ghost2';
569 $bats = isset( $_POST['bats'] ) ? sanitize_text_field( wp_unslash( $_POST['bats'] ) ) : '';
570 $halloween_bats = isset( $_POST['halloween_bats'] ) ? sanitize_text_field( wp_unslash( $_POST['halloween_bats'] ) ) : 'bats2';
571 $moon = isset( $_POST['moon'] ) ? sanitize_text_field( wp_unslash( $_POST['moon'] ) ) : '';
572 $halloween_moon = isset( $_POST['halloween_moon'] ) ? sanitize_text_field( wp_unslash( $_POST['halloween_moon'] ) ) : 'moon2';
573 $pumpkin = isset( $_POST['pumpkin'] ) ? sanitize_text_field( wp_unslash( $_POST['pumpkin'] ) ) : '';
574 $halloween_pumpkin = isset( $_POST['halloween_pumpkin'] ) ? sanitize_text_field( wp_unslash( $_POST['halloween_pumpkin'] ) ) : 'pumpkin2';
575 $web = isset( $_POST['web'] ) ? sanitize_text_field( wp_unslash( $_POST['web'] ) ) : '';
576 $halloween_web = isset( $_POST['halloween_web'] ) ? sanitize_text_field( wp_unslash( $_POST['halloween_web'] ) ) : 'web2';
577 $witch = isset( $_POST['witch'] ) ? sanitize_text_field( wp_unslash( $_POST['witch'] ) ) : '';
578 $halloween_witch = isset( $_POST['halloween_witch'] ) ? sanitize_text_field( wp_unslash( $_POST['halloween_witch'] ) ) : 'witch2';
579 $halloween_min_size_leaf = isset( $_POST['halloween_min_size_leaf'] ) ? absint( $_POST['halloween_min_size_leaf'] ) : 20;
580 $halloween_max_size_leaf = isset( $_POST['halloween_max_size_leaf'] ) ? absint( $_POST['halloween_max_size_leaf'] ) : 50;
581 $halloween_flakes_leaf = isset( $_POST['halloween_flakes_leaf'] ) ? absint( $_POST['halloween_flakes_leaf'] ) : 5;
582 $halloween_speed = isset( $_POST['halloween_speed'] ) ? absint( $_POST['halloween_speed'] ) : 5;
583 $turkey = isset( $_POST['turkey'] ) ? sanitize_text_field( wp_unslash( $_POST['turkey'] ) ) : '';
584 $thanksgiving_turkey = isset( $_POST['thanksgiving_turkey'] ) ? sanitize_text_field( wp_unslash( $_POST['thanksgiving_turkey'] ) ) : 'turkey2';
585 $thanksgiving_min_size_leaf = isset( $_POST['thanksgiving_min_size_leaf'] ) ? absint( $_POST['thanksgiving_min_size_leaf'] ) : 20;
586 $thanksgiving_max_size_leaf = isset( $_POST['thanksgiving_max_size_leaf'] ) ? absint( $_POST['thanksgiving_max_size_leaf'] ) : 50;
587 $thanksgiving_flakes_leaf = isset( $_POST['thanksgiving_flakes_leaf'] ) ? absint( $_POST['thanksgiving_flakes_leaf'] ) : 5;
588 $thanksgiving_speed = isset( $_POST['thanksgiving_speed'] ) ? absint( $_POST['thanksgiving_speed'] ) : 5;
589 $rose = isset( $_POST['rose'] ) ? sanitize_text_field( wp_unslash( $_POST['rose'] ) ) : '';
590 $valentine_rose = isset( $_POST['valentine_rose'] ) ? sanitize_text_field( wp_unslash( $_POST['valentine_rose'] ) ) : 'rose2';
591 $balloon = isset( $_POST['balloon'] ) ? sanitize_text_field( wp_unslash( $_POST['balloon'] ) ) : '';
592 $valentine_balloon = isset( $_POST['valentine_balloon'] ) ? sanitize_text_field( wp_unslash( $_POST['valentine_balloon'] ) ) : 'balloon2';
593 $heart = isset( $_POST['heart'] ) ? sanitize_text_field( wp_unslash( $_POST['heart'] ) ) : '';
594 $valentine_heart = isset( $_POST['valentine_heart'] ) ? sanitize_text_field( wp_unslash( $_POST['valentine_heart'] ) ) : 'heart2';
595 $valentine_min_size_leaf = isset( $_POST['valentine_min_size_leaf'] ) ? absint( $_POST['valentine_min_size_leaf'] ) : 20;
596 $valentine_max_size_leaf = isset( $_POST['valentine_max_size_leaf'] ) ? absint( $_POST['valentine_max_size_leaf'] ) : 50;
597 $valentine_flakes_leaf = isset( $_POST['valentine_flakes_leaf'] ) ? absint( $_POST['valentine_flakes_leaf'] ) : 5;
598 $valentine_speed = isset( $_POST['valentine_speed'] ) ? absint( $_POST['valentine_speed'] ) : 5;
599 $balloon_new = isset( $_POST['balloon_new'] ) ? sanitize_text_field( wp_unslash( $_POST['balloon_new'] ) ) : '';
600 $newyear_balloon = isset( $_POST['newyear_balloon'] ) ? sanitize_text_field( wp_unslash( $_POST['newyear_balloon'] ) ) : 'balloon3';
601 $sticker = isset( $_POST['sticker'] ) ? sanitize_text_field( wp_unslash( $_POST['sticker'] ) ) : '';
602 $new_year_sticker = isset( $_POST['new_year_sticker'] ) ? sanitize_text_field( wp_unslash( $_POST['new_year_sticker'] ) ) : 'sticker2';
603 $newyear_min_size_leaf = isset( $_POST['newyear_min_size_leaf'] ) ? absint( $_POST['newyear_min_size_leaf'] ) : 20;
604 $newyear_max_size_leaf = isset( $_POST['newyear_max_size_leaf'] ) ? absint( $_POST['newyear_max_size_leaf'] ) : 50;
605 $newyear_flakes_leaf = isset( $_POST['newyear_flakes_leaf'] ) ? absint( $_POST['newyear_flakes_leaf'] ) : 5;
606 $newyear_speed = isset( $_POST['newyear_speed'] ) ? absint( $_POST['newyear_speed'] ) : 5;
607
608 $weather_effect_settings = array(
609 'enable_weather_effect' => $enable_weather_effect,
610 'weather_occasion' => $weather_occasion,
611 'christmas_types' => $christmas_types,
612 'ball' => $ball,
613 'christmas_ball' => $christmas_ball,
614 'bell' => $bell,
615 'christmas_bell' => $christmas_bell,
616 'candy' => $candy,
617 'christmas_candy' => $christmas_candy,
618 'gift' => $gift,
619 'christmas_gift' => $christmas_gift,
620 'snowman' => $snowman,
621 'christmas_snowman' => $christmas_snowman,
622 'snow_flake' => $snow_flake,
623 'christmas_snow_flake' => $christmas_snow_flake,
624 'christmas_min_size_leaf' => $christmas_min_size_leaf,
625 'christmas_max_size_leaf' => $christmas_max_size_leaf,
626 'christmas_flakes_leaf' => $christmas_flakes_leaf,
627 'christmas_speed' => $christmas_speed,
628 'master_round' => $master_round,
629 'round_type' => $round_type,
630 'min_size_round' => $min_size_round,
631 'max_size_round' => $max_size_round,
632 'master_shadows' => $master_shadows,
633 'shadow_type' => $shadow_type,
634 'flakes_shadow' => $flakes_shadow,
635 'snow_types' => $snow_types,
636 'ice_cube' => $ice_cube,
637 'min_size_christmas' => $min_size_christmas,
638 'max_size_christmas' => $max_size_christmas,
639 'flake_christmas' => $flake_christmas,
640 'min_size_falling' => $min_size_falling,
641 'max_size_falling' => $max_size_falling,
642 'snow_falling_time' => $snow_falling_time,
643 'snow_falling_color' => $snow_falling_color,
644 'leaf' => $leaf,
645 'autumn_leaf' => $autumn_leaf,
646 'autumn_min_size_leaf' => $autumn_min_size_leaf,
647 'autumn_max_size_leaf' => $autumn_max_size_leaf,
648 'autumn_flakes_leaf' => $autumn_flakes_leaf,
649 'autumn_speed' => $autumn_speed,
650 'leaf_spring' => $leaf_spring,
651 'spring_leaf' => $spring_leaf,
652 'spring_min_size_leaf' => $spring_min_size_leaf,
653 'spring_max_size_leaf' => $spring_max_size_leaf,
654 'spring_flakes_leaf' => $spring_flakes_leaf,
655 'spring_speed' => $spring_speed,
656 'drink' => $drink,
657 'summer_drink' => $summer_drink,
658 'sun' => $sun,
659 'summer_sun' => $summer_sun,
660 'summer_min_size_leaf' => $summer_min_size_leaf,
661 'summer_max_size_leaf' => $summer_max_size_leaf,
662 'summer_flakes_leaf' => $summer_flakes_leaf,
663 'summer_speed' => $summer_speed,
664 'umbrella' => $umbrella,
665 'rain_umbrella' => $rain_umbrella,
666 'drop' => $drop,
667 'rain_drops' => $rain_drops,
668 'cloud' => $cloud,
669 'rain_cloud' => $rain_cloud,
670 'rain_min_size_leaf' => $rain_min_size_leaf,
671 'rain_max_size_leaf' => $rain_max_size_leaf,
672 'rain_flakes_leaf' => $rain_flakes_leaf,
673 'rain_speed' => $rain_speed,
674 'ghost' => $ghost,
675 'halloween_ghost' => $halloween_ghost,
676 'bats' => $bats,
677 'halloween_bats' => $halloween_bats,
678 'moon' => $moon,
679 'halloween_moon' => $halloween_moon,
680 'pumpkin' => $pumpkin,
681 'halloween_pumpkin' => $halloween_pumpkin,
682 'web' => $web,
683 'halloween_web' => $halloween_web,
684 'witch' => $witch,
685 'halloween_witch' => $halloween_witch,
686 'halloween_min_size_leaf' => $halloween_min_size_leaf,
687 'halloween_max_size_leaf' => $halloween_max_size_leaf,
688 'halloween_flakes_leaf' => $halloween_flakes_leaf,
689 'halloween_speed' => $halloween_speed,
690 'turkey' => $turkey,
691 'thanksgiving_turkey' => $thanksgiving_turkey,
692 'thanksgiving_min_size_leaf' => $thanksgiving_min_size_leaf,
693 'thanksgiving_max_size_leaf' => $thanksgiving_max_size_leaf,
694 'thanksgiving_flakes_leaf' => $thanksgiving_flakes_leaf,
695 'thanksgiving_speed' => $thanksgiving_speed,
696 'rose' => $rose,
697 'valentine_rose' => $valentine_rose,
698 'balloon' => $balloon,
699 'valentine_balloon' => $valentine_balloon,
700 'heart' => $heart,
701 'valentine_heart' => $valentine_heart,
702 'valentine_min_size_leaf' => $valentine_min_size_leaf,
703 'valentine_max_size_leaf' => $valentine_max_size_leaf,
704 'valentine_flakes_leaf' => $valentine_flakes_leaf,
705 'valentine_speed' => $valentine_speed,
706 'balloon_new' => $balloon_new,
707 'newyear_balloon' => $newyear_balloon,
708 'sticker' => $sticker,
709 'new_year_sticker' => $new_year_sticker,
710 'newyear_min_size_leaf' => $newyear_min_size_leaf,
711 'newyear_max_size_leaf' => $newyear_max_size_leaf,
712 'newyear_flakes_leaf' => $newyear_flakes_leaf,
713 'newyear_speed' => $newyear_speed,
714 );
715
716 update_option( 'weather_effect_settings', $weather_effect_settings );
717 ?>
718 <div class="updated notice is-dismissible" id="setting-result">
719 <p><strong><?php esc_html_e( 'Settings Saved.', 'weather-effect' ); ?></strong></p>
720 </div>
721 <?php
722 }
723 }
724 }
725
726 function awplife_we_our_plugins_page_body() {
727 require_once 'our-plugins.php';
728 }
729
730 function awplife_we_our_themes_page_body() {
731 require_once 'our-themes.php';
732 }
733
734 add_action( 'admin_enqueue_scripts', 'weather_effect_admin_styles' );
735 function weather_effect_admin_styles() {
736 $page = isset( $_GET['page'] ) ? sanitize_text_field( wp_unslash( $_GET['page'] ) ) : '';
737 if ( 'awplife-our-themes' === $page || 'awplife-our-plugins' === $page ) {
738 wp_enqueue_style( 'awplife-we-our-plugins-style', AWPLIFE_WE_PLUGIN_PATH . 'assets/css/our-plugins-style.css', array(), '1.6.1' );
739 }
740 }
741