Server IP : 66.29.132.124 / Your IP : 18.227.134.165 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wavevlvu/misswavenigeria.com/wp-content/plugins/ombre-features/ |
Upload File : |
<?php function ombre_scripts() { $bgimage = esc_attr(get_option('ombre_bgimage')); $mobileimage = esc_attr(get_option('ombre_mobileimage')); $disablefakeloader = esc_attr(get_option('ombre_disablefakeloader')); $timetohide = esc_attr(get_option('ombre_timetohide')); $spinnerstyle = esc_attr(get_option('ombre_spinnerstyle')); $fakeloaderbgcolor = esc_attr(get_option('ombre_fakeloader_bgcolor')); ?> <script type="text/javascript"> jQuery(document).ready(function () { "use strict"; if (jQuery(window).width() > 1024) { <?php if (!empty($bgimage)) { ?> jQuery('body').backstretch("<?php echo esc_js($bgimage); ?>",{fade:1000}); <?php } ?> } else { <?php if (!empty($mobileimage)) { ?> jQuery('body').backstretch("<?php echo esc_js($mobileimage); ?>"); <?php } ?> } }); <?php if ($disablefakeloader != "true") { ?> /* PAGE LOADER */ jQuery("#fakeloader").fakeLoader({ timeToHide:<?php if (!empty($timetohide)) { echo esc_js($timetohide); } else { echo '1200'; } ?>, spinner:"<?php if (!empty($spinnerstyle)) { echo esc_js($spinnerstyle); } else { echo 'spinner3'; } ?>", bgColor:"<?php if (!empty($fakeloaderbgcolor)) { echo esc_js($fakeloaderbgcolor); } else { echo '#16171D'; } ?>" }); jQuery("#main-container").show(); <?php } ?> </script> <?php } add_action('wp_footer', 'ombre_scripts'); ?>