Server : Apache/2 System : Linux vps.sdns.vn 3.10.0-1160.15.2.el7.x86_64 #1 SMP Wed Feb 3 15:06:38 UTC 2021 x86_64 User : phatdatpq ( 1022) PHP Version : 7.2.34 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/phatdatpq/public_html/wp-content/themes/flatsome/inc/admin/kirki/core/ |
Upload File : |
<?php /** * Generates & echo the styles when using the AJAx method. * * @package Kirki * @category Core * @author Aristeides Stathopoulos * @copyright Copyright (c) 2017, Aristeides Stathopoulos * @license http://opensource.org/licenses/https://opensource.org/licenses/MIT */ // Do not allow directly accessing this file. if ( ! class_exists( 'Kirki' ) ) { die( 'File can\'t be accessed directly' ); } // Make sure we set the correct MIME type. header( 'Content-Type: text/css' ); // Echo the styles. $configs = Kirki::$config; foreach ( $configs as $config_id => $args ) { if ( true === $args['disable_output'] ) { continue; } $styles = Kirki_Styles_Frontend::loop_controls( $config_id ); $styles = apply_filters( "kirki/{$config_id}/dynamic_css", $styles ); // Some people put weird stuff in their CSS, KSES tends to be greedy. $styles = str_replace( '<=', '<=', $styles ); $styles = wp_kses_post( $styles ); // @codingStandardsIgnoreStart // Why both KSES and strip_tags? Because we just added some '>'. // kses replaces lone '>' with >. echo strip_tags( str_replace( '>', '>', $styles ) ); // @codingStandardsIgnoreStop }