| Server IP : 212.183.175.188 / Your IP : 216.73.216.82 Web Server : nginx/1.30.4 System : Linux duemilacom6.interac.it 5.10.0-28-amd64 #1 SMP Debian 5.10.209-2 (2024-01-31) x86_64 User : cvevolpi ( 10022) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/cvevolpi.it/httpdocs/wp-content/themes/sentinel/ffOptions/core/be/ |
Upload File : |
<?php
function get_PATH_NAME_SEPARATOR(){ return ffOptEnv::PATH_NAME_SEPARATOR; }
class ffJSFunctions{
static $functions = array(
'get_template_directory_uri',
'get_PATH_NAME_SEPARATOR',
);
function __construct(){
$this->addScripts();
}
function addScripts(){
add_action( 'wp_footer', array('ffJSFunctions', 'printScripts'), 1 );
add_action( 'admin_head', array('ffJSFunctions', 'printScripts'), 1 );
}
static function printSubScript($function){
$func_ret = ( $function() );
$func_ret = addslashes($func_ret);
echo "\n<script>\n";
echo "function $function(){\n";
echo " 'use strict';\n";
echo " return '". addslashes($func_ret) ."';\n";
echo "}\n";
echo "</script>\n";
}
static function printScripts(){
foreach (ffJSFunctions::$functions as $function) {
ffJSFunctions::printSubScript($function);
}
}
}