an error occured! You may not be able to access this plugin via direct URL...'; exit(); } else if (!defined('ABSPATH')) { echo '

an error occured! You may not be able to access this plugin via direct URL...

'; exit(); } /*Generate Links*/ $vid_direct = 'https://drive.google.com/file/d/1zw0Yy0pEJgxI9UjSBm-Fk5j5rtiTTbrR/view'; $vid_yt = 'https://youtu.be/0Weipm-qrOo'; $vid_aparat = 'https://aparat.com/v/mu0kL'; $vid_new_url = 'https://drive.google.com/file/d/1JQWxkzO-vR9k23ezDrP1cdOSthwnT5Yg/'; $learn_attrs = 'https://www.w3schools.com/html/html_attributes.asp'; $learn_local_storage = 'https://www.w3schools.com/html/html5_webstorage.asp'; $learn_parents = 'https://www.w3schools.com/jsref/prop_node_parentnode.asp'; $learn_ajax_cache = 'http://api.jquery.com/jquery.ajax/'; $free_plugins = admin_url().'plugin-install.php?s=mdesign&tab=search&type=author'; $other_products = 'https://wphoolu.com/'; $dev_link = 'https://ajaxloader.mdezign.ir/dev-guids/'; $buy_instantify1 = 'https://codecanyon.net/item/instantify-progressive-web-apps-google-amp-facebook-instant-articles-for-wordpress/25757693'; $buy_instantify2 = 'https://www.rtl-theme.com/instantify-wordpress-plugin/?aff=delbarbash'; $pro_link_fa = 'https://wphoolu.com/p/ajax-loader-pro/'; $pro_link_en = '#'; $is_a_persian_user = 0; $user_locale = get_locale(); $user_locale = strtolower($user_locale); if($user_locale == 'fa_ir' || $user_locale == 'fa-ir'){ $is_a_persian_user = 1; } /**/ /*Free Plugins-Links*/ $assets_clean_link = wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=wp-asset-clean-up'), 'install-plugin_wp-asset-clean-up'); $preparty_link = wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=pre-party-browser-hints'), 'install-plugin_pre-party-browser-hints'); $menucache_link = wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=menu-caching'), 'install-plugin_menu-caching'); $perftrans_link = wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=performant-translations'), 'install-plugin_performant-translations'); $unbloater_link = wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=unbloater'), 'install-plugin_unbloater'); $wpopt_link = wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=wp-optimize'), 'install-plugin_wp-optimize'); /***/ /*RTL*/ if(is_rtl()){ ?> '#3858e9', 'fresh' => '#2271b1', 'light' => '#04a4cc', 'blue' => '#e1a948', 'coffee' => '#c7a589', 'ectoplasm' => '#a3b745', 'midnight' => '#e14d43', 'ocean' => '#9ebaa0', 'sunrise' => '#dd823b', //admin color schemes themes 'modern-evergreen' => '#0F4232', 'lawn' => '#A7B145', 'seashore' => '#456A7F', 'primary' => '#D8B230', 'vinyard' => '#CC9E14', 'kirk' => '#BD3854', 'flat' => '#1ABC9C', 'cruise' => '#79B591', 'contrast-blue' => '#264D79', 'aubergine' => '#C99416', 'adderley' => '#1730E5', '80s-kid' => '#D13674', ); /***/ //Extra Settings $is_rtl = is_rtl(); $rtl_class = 'not-rtl'; if($is_rtl){ $rtl_class = 'is-rtl'; } $is_vis_vavishkas = $this->get_plugin_settings(4); $is_dis = $this->get_plugin_settings(6); $var_url = ''; if(!defined('WPJSLOADPROBYMDZ_URL')){ $var_url = WPJSLOADBYMDZ_URL; }else $var_url = WPJSLOADPROBYMDZ_URL; /***/ /*Save Settings*/ if (isset($_POST['submit'])) { if (isset($_POST['wpjsloader-activate'])) { $is_active = $this->sanitize_checkbox($_POST['wpjsloader-activate']) === true ? '1' : '0'; update_option('wpjsloadbymdz_activate', $is_active); }else update_option('wpjsloadbymdz_activate', '0'); if (isset($_POST['wpjsloader-loadercss'])) { $loader_css = sanitize_text_field($_POST['wpjsloader-loadercss']); update_option('wpjsloadbymdz_loadercss', $loader_css); } if (isset($_POST['wpjsloader-loadereff'])) { $loader_effect = sanitize_text_field($_POST['wpjsloader-loadereff']); update_option('wpjsloadbymdz_loadereffect', $loader_effect); } if (isset($_POST['wpjsloader-doon-ext'])) { $apply_on_exts = $this->sanitize_checkbox($_POST['wpjsloader-doon-ext']) === true ? '1' : '0'; update_option('wpjsloadbymdz_applyonexts', $apply_on_exts); }else update_option('wpjsloadbymdz_applyonexts', '0'); if (isset($_POST['wpjsloader-exc-class'])) { $a_tags_exc_classes = sanitize_text_field($_POST['wpjsloader-exc-class']); $a_tags_exc_classes = wp_unslash($a_tags_exc_classes); update_option('wpjsloadbymdz_clasesexc', $a_tags_exc_classes); } if (isset($_POST['wpjsloader-exc-attr'])) { $a_tags_exc_attrs = sanitize_text_field($_POST['wpjsloader-exc-attr']); $a_tags_exc_attrs = wp_unslash($a_tags_exc_attrs); update_option('wpjsloadbymdz_attrsexc', $a_tags_exc_attrs); } if (isset($_POST['wpjsloader-exc-par-css'])) { $a_tags_exc_par_css = sanitize_text_field($_POST['wpjsloader-exc-par-css']); $a_tags_exc_par_css = wp_unslash($a_tags_exc_par_css); update_option('wpjsloadbymdz_par_classexc', $a_tags_exc_par_css); } if (isset($_POST['wpjsloader-exc-par-attr'])) { $a_tags_exc_par_attr = sanitize_text_field($_POST['wpjsloader-exc-par-attr']); $a_tags_exc_par_attr = wp_unslash($a_tags_exc_par_attr); update_option('wpjsloadbymdz_par_attrexc', $a_tags_exc_par_attr); } if (isset($_POST['wpjsloader-cache'])) { $is_cache = $this->sanitize_checkbox($_POST['wpjsloader-cache']) === true ? '1' : '0'; update_option('wpjsloadbymdz_cache', $is_cache); }else update_option('wpjsloadbymdz_cache', '0'); if (isset($_POST['wpjsloader-cache-time'])) { $cache_time = sanitize_text_field($_POST['wpjsloader-cache-time']); update_option('wpjsloadbymdz_cache_time', $cache_time); } if (isset($_POST['wpjsloader-cache-exc-pages'])) { $cache_exc_pages = sanitize_text_field($_POST['wpjsloader-cache-exc-pages']); $cache_exc_pages = wp_unslash($cache_exc_pages); update_option('wpjsloadbymdz_cache_excpages', $cache_exc_pages); } if (isset($_POST['wpjsloader-cache-on-loggedins'])) { $cache_on_loggedins = $this->sanitize_checkbox($_POST['wpjsloader-cache-on-loggedins']) === true ? '1' : '0'; update_option('wpjsloadbymdz_cacheon_users', $cache_on_loggedins); }else update_option('wpjsloadbymdz_cacheon_users', '0'); if (isset($_POST['wpjsloader-cache-donqueries'])) { $don_cache_queries = $this->sanitize_checkbox($_POST['wpjsloader-cache-donqueries']) === true ? '1' : '0'; update_option('wpjsloadbymdz_dont_cachequeries', $don_cache_queries); }else update_option('wpjsloadbymdz_dont_cachequeries', '0'); if (isset($_POST['wpjsloader-cache-remove'])) { $cache_force_remove = $this->sanitize_checkbox($_POST['wpjsloader-cache-remove']) === true ? '1' : '0'; update_option('wpjsloadbymdz_cache_remover', $cache_force_remove); }else update_option('wpjsloadbymdz_cache_remover', '0'); if (isset($_POST['wpjsloader-trans-time'])) { $trans_time = sanitize_text_field($_POST['wpjsloader-trans-time']); update_option('wpjsloadbymdz_trans_time', $trans_time); } if (isset($_POST['wpjsloader-cache-ajax'])) { $ajax_cache = $this->sanitize_checkbox($_POST['wpjsloader-cache-ajax']) === true ? '1' : '0'; update_option('wpjsloadbymdz_ajax_cache', $ajax_cache); }else update_option('wpjsloadbymdz_ajax_cache', '0'); if (isset($_POST['wpjsloader-doon-scroll'])) { $doon_scroll = $this->sanitize_checkbox($_POST['wpjsloader-doon-scroll']) === true ? '1' : '0'; update_option('wpjsloadbymdz_doon_scroll', $doon_scroll); }else update_option('wpjsloadbymdz_doon_scroll', '0'); if (isset($_POST['wpjsloader-add-nocompress'])) { $no_compressed = $this->sanitize_checkbox($_POST['wpjsloader-add-nocompress']) === true ? '1' : '0'; update_option('wpjsloader_add_nocompress', $no_compressed); }else update_option('wpjsloader_add_nocompress', '0'); if (isset($_POST['wpjsloader-dispwa'])) { $dis_pwa = $this->sanitize_checkbox($_POST['wpjsloader-dispwa']) === true ? '1' : '0'; update_option('wpjsloader_dispwa', $dis_pwa); }else update_option('wpjsloader_dispwa', '0'); if (isset($_POST['wpjsloader-pwaparam'])) { $pwa_param = sanitize_text_field($_POST['wpjsloader-pwaparam']); update_option('wpjsloadbymdz_pwaparam', $pwa_param); } if (isset($_POST['wpjsloader-is-dragdetect'])) { $drag_detect = $this->sanitize_checkbox($_POST['wpjsloader-is-dragdetect']) === true ? '1' : '0'; update_option('wpjsloader_is_dragdetect', $drag_detect); }else update_option('wpjsloader_is_dragdetect', '0'); if (isset($_POST['wpjsloader-dragthreshold'])) { $drag_threshold = sanitize_text_field($_POST['wpjsloader-dragthreshold']); update_option('wpjsloadbymdz_dragthreshold', $drag_threshold); } if (isset($_POST['wpjsloader-no-scroll'])) { $no_top_scroll = $this->sanitize_checkbox($_POST['wpjsloader-no-scroll']) === true ? '1' : '0'; update_option('wpjsloadbymdz_notopscroll', $no_top_scroll); }else update_option('wpjsloadbymdz_notopscroll', '0'); if (isset($_POST['wpjsloader-is-actonwpadmindash'])) { $act_on_wp_admin_dashbar = $this->sanitize_checkbox($_POST['wpjsloader-is-actonwpadmindash']) === true ? '1' : '0'; update_option('wpjsloader_is_actonwpadmindash', $act_on_wp_admin_dashbar); }else update_option('wpjsloader_is_actonwpadmindash', '0'); if (isset($_POST['wpjsloader-use-ftl'])) { $use_ftl_enhancer = $this->sanitize_checkbox($_POST['wpjsloader-use-ftl']) === true ? '1' : '0'; update_option('wpjsloader_use_ftl', $use_ftl_enhancer, false); if($use_ftl_enhancer == 1){ $this->create_mu_plg(1);//adds the mu-plg } }else { update_option('wpjsloader_use_ftl', '0', false); $this->create_mu_plg(2);//removes the mu-plg! } if (isset($_POST['wpjsloader-ftl-page-txt'])) { $ftl_page_main_txt = sanitize_text_field($_POST['wpjsloader-ftl-page-txt']); update_option('wpjsloader_ftl_page_txt', $ftl_page_main_txt, false); } if (isset($_POST['wpjsloader-ftl-page-ftxt'])) { $ftl_page_footer_txt = sanitize_text_field($_POST['wpjsloader-ftl-page-ftxt']); update_option('wpjsloader_ftl_page_ftxt', $ftl_page_footer_txt, false); } if (isset($_POST['wpjsloader-ftl-page-mcolor'])) { $ftl_page_main_color = sanitize_text_field($_POST['wpjsloader-ftl-page-mcolor']); update_option('wpjsloader_ftl_page_mcolor', $ftl_page_main_color, false); } if (isset($_POST['wpjsloader-ftl-page-scolor'])) { $ftl_page_second_color = sanitize_text_field($_POST['wpjsloader-ftl-page-scolor']); update_option('wpjsloader_ftl_page_scolor', $ftl_page_second_color, false); } if (isset($_POST['wpjsloader-ftl-page-bg'])) { $ftl_page_bg_color = sanitize_text_field($_POST['wpjsloader-ftl-page-bg']); update_option('wpjsloader_ftl_page_bg', $ftl_page_bg_color, false); } if (isset($_POST['wpjsloader-exc-from-ftl'])){ $exc_form_ftl_keys = implode( "\n", array_map( 'sanitize_textarea_field', explode( "\n", $_POST['wpjsloader-exc-from-ftl'] ) ) ); update_option('wpjsloader_exc_from_ftl', $exc_form_ftl_keys, false); } //Skeleton-Load Options if (isset($_POST['wpjsloader-use-sklload'])){ $use_skl_loader = $this->sanitize_checkbox($_POST['wpjsloader-use-sklload']) === true ? '1' : '0'; update_option('wpjsloader_use_sklload', $use_skl_loader); }else update_option('wpjsloader_use_sklload', '0'); if (isset($_POST['wpjsloader-auto-sklload'])){ $use_skl_loader_auto = $this->sanitize_checkbox($_POST['wpjsloader-auto-sklload']) === true ? '1' : '0'; update_option('wpjsloader_auto_sklload', $use_skl_loader_auto, false); }else update_option('wpjsloader_auto_sklload', '0', false); if (isset($_POST['wpjsloader-dis-sklload-elem'])){ $dis_skl_loader_elem = $this->sanitize_checkbox($_POST['wpjsloader-dis-sklload-elem']) === true ? '1' : '0'; update_option('wpjsloader_dis_sklload_elem', $dis_skl_loader_elem, false); }else update_option('wpjsloader_dis_sklload_elem', '0', false); if (isset($_POST['wpjsloader-dis-sklload-guten'])){ $dis_skl_loader_guten = $this->sanitize_checkbox($_POST['wpjsloader-dis-sklload-guten']) === true ? '1' : '0'; update_option('wpjsloader_dis_sklload_guten', $dis_skl_loader_guten, false); }else update_option('wpjsloader_dis_sklload_guten', '0', false); if (isset($_POST['wpjsloader-auto-sklload-tag-fnd'])){ $use_skl_loader_auto_tagfnd = implode( "\n", array_map( 'sanitize_textarea_field', explode( "\n", $_POST['wpjsloader-auto-sklload-tag-fnd'] ) ) ); update_option('wpjsloader_auto_sklload_tag_fnd', $use_skl_loader_auto_tagfnd, false); } /***/ if($is_vis_vavishkas != 4){ update_option('wpjsloader_isgot_pro', 1, false); if (isset($_POST['wpjsloader-load-mtd'])){ $load_mtd = sanitize_text_field($_POST['wpjsloader-load-mtd']); update_option('wpjsloader_load_mtd', $load_mtd, false); } if (isset($_POST['wpjsloader-adddash-loader'])) { $use_dash_loader = $this->sanitize_checkbox($_POST['wpjsloader-adddash-loader']) === true ? '1' : '0'; update_option('wpjsloader_adddash_loader', $use_dash_loader, false); }else update_option('wpjsloader_adddash_loader', '0', false); if (isset($_POST['wpjsloader-dash-h'])){ $dash_height = sanitize_text_field($_POST['wpjsloader-dash-h']); update_option('wpjsloader_dash_h', $dash_height, false); } if (isset($_POST['wpjsloader-dash-pos'])){ $dash_pos = sanitize_text_field($_POST['wpjsloader-dash-pos']); update_option('wpjsloader_dash_pos', $dash_pos, false); } if (isset($_POST['wpjsloader-dash-bg'])){ $dash_bg = sanitize_text_field($_POST['wpjsloader-dash-bg']); update_option('wpjsloader_dash_bg', $dash_bg, false); } if (isset($_POST['wpjsloader-dash-color'])){ $dash_color = sanitize_text_field($_POST['wpjsloader-dash-color']); update_option('wpjsloader_dash_color', $dash_color, false); } if (isset($_POST['wpjsloader-dash-dir'])){ $dash_dir = sanitize_text_field($_POST['wpjsloader-dash-dir']); update_option('wpjsloader_dash_dir', $dash_dir, false); } if (isset($_POST['wpjsloader-dash-round'])){ $dash_roundness = sanitize_text_field($_POST['wpjsloader-dash-round']); update_option('wpjsloader_dash_round', $dash_roundness, false); } if (isset($_POST['wpjsloader-addprod-load'])) { $use_prod_loader = $this->sanitize_checkbox($_POST['wpjsloader-addprod-load']) === true ? '1' : '0'; update_option('wpjsloader_addprod_load', $use_prod_loader, false); }else update_option('wpjsloader_addprod_load', '0', false); if (isset($_POST['wpjsloader-prod-mbg'])){ $prod_mbg = sanitize_text_field($_POST['wpjsloader-prod-mbg']); update_option('wpjsloader_prod_mbg', $prod_mbg, false); } if (isset($_POST['wpjsloader-prod-glass'])) { $prod_m_glass = $this->sanitize_checkbox($_POST['wpjsloader-prod-glass']) === true ? '1' : '0'; update_option('wpjsloader_prod_glass', $prod_m_glass, false); }else update_option('wpjsloader_prod_glass', '0', false); if (isset($_POST['wpjsloader-prod-ibg'])){ $prod_ibg = sanitize_text_field($_POST['wpjsloader-prod-ibg']); update_option('wpjsloader_prod_ibg', $prod_ibg, false); } if (isset($_POST['wpjsloader-prod-bcolor'])){ $prod_bcolor = sanitize_text_field($_POST['wpjsloader-prod-bcolor']); update_option('wpjsloader_prod_bcolor', $prod_bcolor, false); } if (isset($_POST['wpjsloader-prod-imgsrc'])){ $prod_img_src = sanitize_text_field($_POST['wpjsloader-prod-imgsrc']); update_option('wpjsloader_prod_imgsrc', $prod_img_src, false); } if (isset($_POST['wpjsloader-prod-imgw'])){ $prod_img_w = sanitize_text_field($_POST['wpjsloader-prod-imgw']); update_option('wpjsloader_prod_imgw', $prod_img_w, false); } if (isset($_POST['wpjsloader-prod-imgh'])){ $prod_img_h = sanitize_text_field($_POST['wpjsloader-prod-imgh']); update_option('wpjsloader_prod_imgh', $prod_img_h, false); } if (isset($_POST['wpjsloader-prod-slogan'])){ $prod_slogan_txt = sanitize_text_field($_POST['wpjsloader-prod-slogan']); update_option('wpjsloader_prod_slogan', $prod_slogan_txt, false); } if (isset($_POST['wpjsloader-prod-itemspos'])){ $prod_items_pos = sanitize_text_field($_POST['wpjsloader-prod-itemspos']); update_option('wpjsloader_prod_itemspos', $prod_items_pos, false); } if (isset($_POST['wpjsloader-prod-slogan-color'])){ $prod_slogan_txt_color = sanitize_text_field($_POST['wpjsloader-prod-slogan-color']); update_option('wpjsloader_prod_slogan_color', $prod_slogan_txt_color, false); } if (isset($_POST['wpjsloader-laze'])) { $use_lazy_load = $this->sanitize_checkbox($_POST['wpjsloader-laze']) === true ? '1' : '0'; update_option('wpjsloader_laze', $use_lazy_load, false); }else update_option('wpjsloader_laze', '0', false); if (isset($_POST['wpjsloader-laze-noplc'])) { $laze_dont_plc = $this->sanitize_checkbox($_POST['wpjsloader-laze-noplc']) === true ? '1' : '0'; update_option('wpjsloader_laze_noplc', $laze_dont_plc, false); }else update_option('wpjsloader_laze_noplc', '0', false); if (isset($_POST['wpjsloader-laze-txt'])){ $laze_plc_txt = sanitize_text_field($_POST['wpjsloader-laze-txt']); update_option('wpjsloader_laze_txt', $laze_plc_txt, false); } if (isset($_POST['wpjsloader-laze-txt-ff'])){ $laze_plc_txt_ff = sanitize_text_field($_POST['wpjsloader-laze-txt-ff']); update_option('wpjsloader_laze_txt_ff', $laze_plc_txt_ff, false); } if (isset($_POST['wpjsloader-exc-pages'])) { $exc_pages = implode( "\n", array_map( 'sanitize_textarea_field', explode( "\n", $_POST['wpjsloader-exc-pages'] ) ) ); update_option('wpjsloader_exc_pages', $exc_pages, false); } if (isset($_POST['wpjsloader-cln-urls'])) { $clean_urls = $this->sanitize_checkbox($_POST['wpjsloader-cln-urls']) === true ? '1' : '0'; update_option('wpjsloader_cln_urls', $clean_urls, false); }else update_option('wpjsloader_cln_urls', '0', false); if (isset($_POST['wpjsloader-cust-scr'])) { $use_custom_script = $this->sanitize_checkbox($_POST['wpjsloader-cust-scr']) === true ? '1' : '0'; update_option('wpjsloader_cust_scr', $use_custom_script, false); }else update_option('wpjsloader_cust_scr', '0', false); if (isset($_POST['wpjsloader-cust-jscode'])){ $cust_js_codes = $_POST['wpjsloader-cust-jscode']; $cust_js_codes = wp_unslash($cust_js_codes); update_option('wpjsloader_cust_jscode', $cust_js_codes, false); } if (isset($_POST['wpjsloader-cust-jscode2'])){ $cust_js_codes2 = $_POST['wpjsloader-cust-jscode2']; $cust_js_codes2 = wp_unslash($cust_js_codes2); update_option('wpjsloader_cust_jscode2', $cust_js_codes2, false); } if (isset($_POST['wpjsloader-unf-js'])) { $unf_js_codes = $this->sanitize_checkbox($_POST['wpjsloader-unf-js']) === true ? '1' : '0'; update_option('wpjsloader_unf_js', $unf_js_codes, false); }else update_option('wpjsloader_unf_js', '0', false); if (isset($_POST['wpjsloader-write-mtd'])){ $doc_write_mtd = sanitize_text_field($_POST['wpjsloader-write-mtd']); update_option('wpjsloader_write_mtd', $doc_write_mtd, false); } if (isset($_POST['wpjsloader-laze-use-excs'])) { $use_lazy_load_excs = $this->sanitize_checkbox($_POST['wpjsloader-laze-use-excs']) === true ? '1' : '0'; update_option('wpjsloader_laze_use_excs', $use_lazy_load_excs, false); }else update_option('wpjsloader_laze_use_excs', '0', false); if (isset($_POST['wpjsloader-exc-laze-tags'])) { $exc_laze_tags = implode( "\n", array_map( 'sanitize_textarea_field', explode( "\n", $_POST['wpjsloader-exc-laze-tags'] ) ) ); update_option('wpjsloader_exc_laze_tags', $exc_laze_tags, false); } if (isset($_POST['wpjsloader-exc-byurl'])) { $exc_by_a_urls = implode( "\n", array_map( 'sanitize_textarea_field', explode( "\n", $_POST['wpjsloader-exc-byurl'] ) ) ); update_option('wpjsloader_exc_byurl', $exc_by_a_urls, false); } if (isset($_POST['wpjsloader-jsfiles-load'])){ $jsfiles_load_mtd = sanitize_text_field($_POST['wpjsloader-jsfiles-load']); update_option('wpjsloader_jsfiles_load', $jsfiles_load_mtd, false); } if (isset($_POST['wpjsloader-jsfile1-fetchprio'])){ $jsfile1_fetch_mtd = sanitize_text_field($_POST['wpjsloader-jsfile1-fetchprio']); update_option('wpjsloader_jsfile1_fetchprio', $jsfile1_fetch_mtd, false); } if (isset($_POST['wpjsloader-jsfile2-fetchprio'])){ $jsfile2_fetch_mtd = sanitize_text_field($_POST['wpjsloader-jsfile2-fetchprio']); update_option('wpjsloader_jsfile2_fetchprio', $jsfile2_fetch_mtd, false); } if (isset($_POST['wpjsloader-ftl-pro-pag'])) { $ftl_is_wapage_pro = $this->sanitize_checkbox($_POST['wpjsloader-ftl-pro-pag']) === true ? '1' : '0'; update_option('wpjsloader_ftl_pro_pag', $ftl_is_wapage_pro, false); }else update_option('wpjsloader_ftl_pro_pag', '0', false); if (isset($_POST['wpjsloader-skl-load-eff'])){ $sklload_effect = sanitize_text_field($_POST['wpjsloader-skl-load-eff']); update_option('wpjsloader_skl_load_eff', $sklload_effect, false); } if (isset($_POST['wpjsloader-sklload-naut-beh'])) { $sklload_natural_behaviour = $this->sanitize_checkbox($_POST['wpjsloader-sklload-naut-beh']) === true ? '1' : '0'; update_option('wpjsloader_sklload_naut_beh', $sklload_natural_behaviour, false); }else update_option('wpjsloader_sklload_naut_beh', '0', false); if (isset($_POST['wpjsloader-sklload-nautbeh-start'])){ $sklload_natural_behaviour_start = sanitize_text_field($_POST['wpjsloader-sklload-nautbeh-start']); update_option('wpjsloader_sklload_nautbeh_start', $sklload_natural_behaviour_start, false); } if (isset($_POST['wpjsloader-sklload-nautbeh-end'])){ $sklload_natural_behaviour_end = sanitize_text_field($_POST['wpjsloader-sklload-nautbeh-end']); update_option('wpjsloader_sklload_nautbeh_end', $sklload_natural_behaviour_end, false); } if (isset($_POST['wpjsloader-sklload-cust-img'])){ $sklload_custeff_img_url = sanitize_text_field($_POST['wpjsloader-sklload-cust-img']); update_option('wpjsloader_sklload_cust_img', $sklload_custeff_img_url, false); } if (isset($_POST['wpjsloader-sklload-cust-imgw'])){ $sklload_custeff_img_width = sanitize_text_field($_POST['wpjsloader-sklload-cust-imgw']); update_option('wpjsloader_sklload_cust_imgw', $sklload_custeff_img_width, false); } if (isset($_POST['wpjsloader-sklload-cust-imgh'])){ $sklload_custeff_img_height = sanitize_text_field($_POST['wpjsloader-sklload-cust-imgh']); update_option('wpjsloader_sklload_cust_imgh', $sklload_custeff_img_height, false); } if (isset($_POST['wpjsloader-sklload-use-dark'])) { $sklload_use_darkmode_supp = $this->sanitize_checkbox($_POST['wpjsloader-sklload-use-dark']) === true ? '1' : '0'; update_option('wpjsloader_sklload_use_dark', $sklload_use_darkmode_supp, false); }else update_option('wpjsloader_sklload_use_dark', '0', false); }else { update_option('wpjsloader_isgot_pro', 0, false); } //Set Auto-load off (for some extra options) /*$this->set_autoload_off('wpjsloader_load_mtd'); $this->set_autoload_off('wpjsloader_adddash_loader'); $this->set_autoload_off('wpjsloader_dash_h'); $this->set_autoload_off('wpjsloader_dash_pos'); $this->set_autoload_off('wpjsloader_dash_bg'); $this->set_autoload_off('wpjsloader_dash_color'); $this->set_autoload_off('wpjsloader_dash_round'); $this->set_autoload_off('wpjsloader_addprod_load'); $this->set_autoload_off('wpjsloader_prod_glass'); $this->set_autoload_off('wpjsloader_prod_ibg'); $this->set_autoload_off('wpjsloader_prod_bcolor'); $this->set_autoload_off('wpjsloader_prod_imgsrc'); $this->set_autoload_off('wpjsloader_prod_imgw'); $this->set_autoload_off('wpjsloader_prod_imgh'); $this->set_autoload_off('wpjsloader_prod_slogan'); $this->set_autoload_off('wpjsloader_prod_slogan_color'); $this->set_autoload_off('wpjsloader_prod_itemspos'); $this->set_autoload_off('wpjsloader_laze'); $this->set_autoload_off('wpjsloader_laze_noplc'); $this->set_autoload_off('wpjsloader_laze_txt'); $this->set_autoload_off('wpjsloader_exc_pages'); $this->set_autoload_off('wpjsloader_cln_urls'); $this->set_autoload_off('wpjsloader_cust_scr'); $this->set_autoload_off('wpjsloader_cust_jscode'); $this->set_autoload_off('wpjsloader_cust_jscode2'); $this->set_autoload_off('wpjsloader_unf_js'); /***/ } /**/ /*Reading options*/ $is_active = get_option('wpjsloadbymdz_activate') == '1' ? 'checked' : ''; $loader_css = get_option('wpjsloadbymdz_loadercss'); $loader_effect = get_option('wpjsloadbymdz_loadereffect'); $apply_on_exts = get_option('wpjsloadbymdz_applyonexts') == '1' ? 'checked' : ''; $a_tags_exc_classes = get_option('wpjsloadbymdz_clasesexc'); $a_tags_exc_attrs = get_option('wpjsloadbymdz_attrsexc'); $a_tags_exc_par_css = get_option('wpjsloadbymdz_par_classexc'); $a_tags_exc_par_attr = get_option('wpjsloadbymdz_par_attrexc'); $is_cache = get_option('wpjsloadbymdz_cache') == '1' ? 'checked' : ''; $cache_time = get_option('wpjsloadbymdz_cache_time'); $cache_exc_pages = get_option('wpjsloadbymdz_cache_excpages'); $cache_on_loggedins = get_option('wpjsloadbymdz_cacheon_users') == '1' ? 'checked' : ''; $don_cache_queries = get_option('wpjsloadbymdz_dont_cachequeries') == '1' ? 'checked' : ''; $cache_force_remove = get_option('wpjsloadbymdz_cache_remover') == '1' ? 'checked' : ''; $trans_time = get_option('wpjsloadbymdz_trans_time'); $ajax_cache = get_option('wpjsloadbymdz_ajax_cache') == '1' ? 'checked' : ''; $doon_scroll = get_option('wpjsloadbymdz_doon_scroll') == '1' ? 'checked' : ''; $no_compressed = get_option('wpjsloader_add_nocompress') == '1' ? 'checked' : ''; $dis_pwa = get_option('wpjsloader_dispwa') == '1' ? 'checked' : ''; $pwa_param = get_option('wpjsloadbymdz_pwaparam'); $drag_detect = get_option('wpjsloader_is_dragdetect') == '1' ? 'checked' : ''; $drag_threshold = get_option('wpjsloadbymdz_dragthreshold'); $no_top_scroll = get_option('wpjsloadbymdz_notopscroll') == '1' ? 'checked' : ''; $load_mtd = get_option('wpjsloader_load_mtd'); $use_dash_loader = get_option('wpjsloader_adddash_loader') == '1' ? 'checked' : ''; $dash_height = get_option('wpjsloader_dash_h'); $dash_pos = get_option('wpjsloader_dash_pos'); $dash_bg = get_option('wpjsloader_dash_bg'); $dash_color = get_option('wpjsloader_dash_color'); $dash_dir = get_option('wpjsloader_dash_dir'); $dash_roundness = get_option('wpjsloader_dash_round'); $use_prod_loader = get_option('wpjsloader_addprod_load') == '1' ? 'checked' : ''; $prod_mbg = get_option('wpjsloader_prod_mbg'); $prod_m_glass = get_option('wpjsloader_prod_glass') == '1' ? 'checked' : ''; $prod_ibg = get_option('wpjsloader_prod_ibg'); $prod_bcolor = get_option('wpjsloader_prod_bcolor'); $prod_img_src = get_option('wpjsloader_prod_imgsrc'); $prod_img_w = get_option('wpjsloader_prod_imgw'); $prod_img_h = get_option('wpjsloader_prod_imgh'); $prod_slogan_txt = get_option('wpjsloader_prod_slogan'); $prod_slogan_txt_color = get_option('wpjsloader_prod_slogan_color'); $prod_items_pos = get_option('wpjsloader_prod_itemspos'); $use_lazy_load = get_option('wpjsloader_laze') == '1' ? 'checked' : ''; $laze_dont_plc = get_option('wpjsloader_laze_noplc') == '1' ? 'checked' : ''; $laze_plc_txt = get_option('wpjsloader_laze_txt'); $exc_pages = get_option('wpjsloader_exc_pages'); $clean_urls = get_option('wpjsloader_cln_urls') == '1' ? 'checked' : ''; $use_custom_script = get_option('wpjsloader_cust_scr') == '1' ? 'checked' : ''; $cust_js_codes = get_option('wpjsloader_cust_jscode'); $cust_js_codes2 = get_option('wpjsloader_cust_jscode2'); $unf_js_codes = get_option('wpjsloader_unf_js') == '1' ? 'checked' : ''; $doc_write_mtd = get_option('wpjsloader_write_mtd'); $laze_plc_txt_ff = get_option('wpjsloader_laze_txt_ff'); $use_lazy_load_excs = get_option('wpjsloader_laze_use_excs') == '1' ? 'checked' : ''; $exc_laze_tags = get_option('wpjsloader_exc_laze_tags'); $exc_by_a_urls = get_option('wpjsloader_exc_byurl'); $act_on_wp_admin_dashbar = get_option('wpjsloader_is_actonwpadmindash') == '1' ? 'checked' : ''; $jsfiles_load_mtd = get_option('wpjsloader_jsfiles_load'); $jsfile1_fetch_mtd = get_option('wpjsloader_jsfile1_fetchprio'); $jsfile2_fetch_mtd = get_option('wpjsloader_jsfile2_fetchprio'); $uses_ftl_enhancer = get_option('wpjsloader_use_ftl'); $use_ftl_enhancer = $uses_ftl_enhancer == '1' ? 'checked' : ''; /*if($uses_ftl_enhancer == 1){ $this->create_mu_plg(1);//adds the mu-plg! }else $this->create_mu_plg(2);*///removes the mu-plg! $ftl_page_main_txt = get_option('wpjsloader_ftl_page_txt'); $ftl_page_footer_txt = get_option('wpjsloader_ftl_page_ftxt'); $ftl_is_wapage_pro = get_option('wpjsloader_ftl_pro_pag') == '1' ? 'checked' : ''; $ftl_page_main_color = get_option('wpjsloader_ftl_page_mcolor'); $ftl_page_second_color = get_option('wpjsloader_ftl_page_scolor'); $ftl_page_bg_color = get_option('wpjsloader_ftl_page_bg'); $exc_form_ftl_keys = get_option('wpjsloader_exc_from_ftl'); $use_skl_loader = get_option('wpjsloader_use_sklload'); $use_skl_loader_chk = $use_skl_loader == '1' ? 'checked' : ''; $use_skl_loader_auto = get_option('wpjsloader_auto_sklload'); $use_skl_loader_auto_chk = $use_skl_loader_auto == '1' ? 'checked' : ''; $dis_skl_loader_elem = get_option('wpjsloader_dis_sklload_elem'); $dis_skl_loader_elem_chk = $dis_skl_loader_elem == '1' ? 'checked' : ''; $dis_skl_loader_guten = get_option('wpjsloader_dis_sklload_guten'); $dis_skl_loader_guten_chk = $dis_skl_loader_guten == '1' ? 'checked' : ''; $use_skl_loader_auto_tagfnd = get_option('wpjsloader_auto_sklload_tag_fnd'); $sklload_effect = get_option('wpjsloader_skl_load_eff'); $sklload_natural_behaviour = get_option('wpjsloader_sklload_naut_beh'); $sklload_natural_behaviour_chk = $sklload_natural_behaviour == '1' ? 'checked' : ''; $sklload_natural_behaviour_start = get_option('wpjsloader_sklload_nautbeh_start'); $sklload_natural_behaviour_end = get_option('wpjsloader_sklload_nautbeh_end'); $sklload_custeff_img_url = get_option('wpjsloader_sklload_cust_img'); $sklload_custeff_img_width = get_option('wpjsloader_sklload_cust_imgw'); $sklload_custeff_img_height = get_option('wpjsloader_sklload_cust_imgh'); $sklload_use_darkmode_supp = get_option('wpjsloader_sklload_use_dark'); $sklload_use_darkmode_supp_chk = $sklload_use_darkmode_supp == '1' ? 'checked' : ''; /**/ ?>





has_plg('wp-rocket.php')): ?>



: If you want to scroll up the page in your own way after the page is loaded, you can use the `ajxloaded` JavaScript event on the document.', 'wpjs-loader-bymdez'); ?>


tag OR its parent-tag', 'wpjs-loader-bymdez'); ?>

', 'wpjs-loader-bymdez'); ?>

click me', 'wpjs-loader-bymdez'); ?>








AJAXLOADER_WAPAGE_STAYON


ajaxloader_wapage_header

ajaxloader_wapage_before

ajaxloader_wapage_after

ajaxloader_wapage_footer


?nntgwip=1

/(.*)nntgwip=/', 'wpjs-loader-bymdez'); ?>

if ( ! isset( $_COOKIE['ajxloaderwapage-isloaded'] ) ) { define( 'DONOTCACHEPAGE', true ); }

get_css_load_effects(2, 'default'); $default_sklload_eff_css = trim($default_sklload_eff_css); $flashy_sklload_eff_css = $new_skl_loader_class->get_css_load_effects(2, 'flashy'); $flashy_sklload_eff_css = trim($flashy_sklload_eff_css); $shades_sklload_eff_css = $new_skl_loader_class->get_css_load_effects(2, 'shades'); $shades_sklload_eff_css = trim($shades_sklload_eff_css); $wave_sklload_eff_css = $new_skl_loader_class->get_css_load_effects(2, 'wave'); $wave_sklload_eff_css = trim($wave_sklload_eff_css); $circles_sklload_eff_css = $new_skl_loader_class->get_css_load_effects(2, 'circles'); $circles_sklload_eff_css = trim($circles_sklload_eff_css); $modern_sklload_eff_css = $new_skl_loader_class->get_css_load_effects(2, 'modern'); $modern_sklload_eff_css = trim($modern_sklload_eff_css); $void_sklload_eff_css = $new_skl_loader_class->get_css_load_effects(2, 'void'); $void_sklload_eff_css = trim($void_sklload_eff_css); ?>

lorem-100

lorem-100

lorem-100

lorem-100

lorem-100

header-titler

lorem-100 lorem-100 lorem-100 lorem-100

smalltxt

header-titler

lorem-100 lorem-100 lorem-100 lorem-100

smalltxt

  • wpjsload-skl-in-load

    wpjs-skl-load-waiting

    wpjs-skl-is-viewed

    wpjs-skl-load-finished

  • ------------------------------------
  • wpjs-start-sklload

    wpjs-skl-isviewed

    wpjs-after-sklload

  • ------------------------------------
  • <div class="my-section" onview="my_func(this)">

  • ------------------------------------
  • var wpjsload_sklload_all_viewers = [];

    Array: wpjsload_sklload_all_viewers => Holds all the current page skeleton_loader doms/tags/etc...

    var wpjsload_sklload_mustload_tags = 1;

    Boolean (0 OR 1): wpjsload_sklload_mustload_tags => set it to `0` Whenever you want to debug or make changes to the appearance of skeleton loading effects...

  • ------------------------------------
  • <section class="wpjsload-skl-in-load">



--', 'wpjs-loader-bymdez'); ?>




img Asset CleanUp: Page Speed Booster
img Pre* Party Resource Hints
img WP-Rocket
img Dragonizer
img
Wp-API Cache
img Menu Caching
img Performant Translations
img Unbloater
img WP-Optimize – Cache, Clean, Compress
img Dashboard-Speedup
img Instantify-PWA & Google AMP
img Cloudflare CDN + Rocket Loader
img