403Webshell
Server IP : 103.191.208.88  /  Your IP : 216.73.216.44
Web Server : Microsoft-IIS/10.0
System : Windows NT COSMIC 10.0 build 20348 (Windows Server 2022) AMD64
User : IWPD_1831(willswel_) ( 0)
PHP Version : 8.2.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  D:/Inetpub/vhosts/willswell.com/httpdocs/wp-content/themes/media-news/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : D:/Inetpub/vhosts/willswell.com/httpdocs/wp-content/themes/media-news/inc/dynamic-css.php
<?php

/**
 * Dynamic CSS
 */
function media_news_dynamic_css() {

	$site_title_font       = get_theme_mod( 'media_news_site_title_font', 'Raleway' );
	$site_description_font = get_theme_mod( 'media_news_site_description_font', 'Poppins' );
	$header_font           = get_theme_mod( 'media_news_header_font', 'Mulish' );
	$body_font             = get_theme_mod( 'media_news_body_font', 'Poppins' );

	$custom_css  = '';
	$custom_css .= '
	/* Color */
	:root {
		--site-title-color: ' . esc_attr( '#' . get_header_textcolor() ) . ';
		--custom-bg-clr: ' . esc_attr( '#' . get_background_color() ) . ';
	}
	';

	$custom_css .= '
	/* Typograhpy */
	:root {
		--site-title-font: "' . esc_attr( $site_title_font ) . '", serif;
		--site-description-font: "' . esc_attr( $site_description_font ) . '", serif;
		--font-heading: "' . esc_attr( $header_font ) . '", serif;
		--font-body: "' . esc_attr( $body_font ) . '", serif;
	}
	';

	wp_add_inline_style( 'media-news-style', $custom_css );

}

add_action( 'wp_enqueue_scripts', 'media_news_dynamic_css', 99 );

Youez - 2016 - github.com/yon3zu
LinuXploit