uawdijnntqw1x1x1
IP : 216.73.216.109
Hostname : premium160.web-hosting.com
Kernel : Linux premium160.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
batcwwjx
/
old
/
.trash
/
charitious
/
inc
/
includes
/
unyson-google-fonts
/
class-unyson-google-fonts.php
/
/
<?php if ( !defined( 'FW' ) ) { die( 'Forbidden' ); } class Unyson_Google_Fonts { static private $data = array( 'subset' => array(), 'family' => array(), ); public static function add_typography_v2( $value ) { if ( in_array( isset( $value[ 'google_font' ] ), array( true, 'true' ), true ) ) { self::$data[ 'family' ][ $value[ 'family' ] ][ 'variants' ][ (string) $value[ 'variation' ] ] = true; self::$data[ 'subset' ][ $value[ 'subset' ] ] = true; } } public static function clear() { self::$data = array(); } public static function generate_url() { /** * Example: * * <link href=" * https://fonts.googleapis.com/css? * family={Family}|{Family}:{variant},{variant} * & * subset=cyrillic-ext,greek,vietnamese * " rel="stylesheet"> */ if ( empty( self::$data[ 'family' ] ) ) { return false; } $query = array( 'family' => array(), 'subset' => implode( ',', array_keys( self::$data[ 'subset' ] ) ), ); foreach ( self::$data[ 'family' ] as $family => $family_data ) { if ( !empty( $family ) ) { $query[ 'family' ][] = $family . ':' . implode( ',', array_keys( $family_data[ 'variants' ] ) ); } } $query[ 'family' ] = implode( '|', $query[ 'family' ] ); return add_query_arg( 'family', urlencode( $query[ 'family' ] ), "https://fonts.googleapis.com/css" ); } public static function output_url() { if ( $url = self::generate_url() ): ?><link href="<?php echo esc_attr( $url ) ?>" rel="stylesheet"><?php endif; } } add_action( 'wp_enqueue_scripts', array( 'Unyson_Google_Fonts', 'output_url' ), 9999 );
/home/batcwwjx/old/.trash/charitious/inc/includes/unyson-google-fonts/class-unyson-google-fonts.php