| Server IP : 172.67.181.122 / Your IP : 216.73.217.63 Web Server : Apache System : Linux vps115579.inmotionhosting.com 4.18.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64 User : jordansonic ( 1005) PHP Version : 8.3.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/jordansonic/public_html/wp-content/plugins/simple-custom-css/includes/ |
Upload File : |
<?php
/**
* Front-facing functionality.
*
* @package SCCSS
* @since 2.0.0
* @author John Regan <[email protected]>
*/
// Prevent direct file access.
if ( ! defined( 'SCCSS_FILE' ) ) {
die();
}
/**
* Print inline style element.
*
* @since 4.0.5
*/
function sccss_print_inline_css() {
echo '<style id="sccss">';
sccss_the_css();
echo '</style>';
}
add_action( 'wp_head', 'sccss_print_inline_css', 101 );
/**
* Echo the CSS.
*
* @since 4.0.0
*/
function sccss_the_css() {
$options = get_option( 'sccss_settings' );
$raw_content = isset( $options['sccss-content'] ) ? $options['sccss-content'] : '';
$content = wp_kses( $raw_content, array( '\'', '\"' ) );
$content = str_replace( '>', '>', $content );
echo strip_tags( $content ); // phpcs:ignore WordPress.Security.EscapeOutput
}