??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/renovaid.co.uk/wp-content/themes/astra/inc/customizer/class-astra-fonts-data.php
⬅ Kembali
<?php
/**
* Helper class for font settings.
*
* @package Astra
* @link https://wpastra.com/
* @since Astra 1.0.0
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Font info class for System and Google fonts.
*/
if ( ! class_exists( 'Astra_Fonts_Data' ) ) {
/**
* Fonts Data
*/
final class Astra_Fonts_Data {
/**
* Localize Fonts
*
* @param bool $skip_google_fonts Whether to skip Google Fonts loading for initial load optimization.
*/
public static function js( $skip_google_fonts = true ) {
$system = wp_json_encode( Astra_Font_Families::get_system_fonts() );
$custom = wp_json_encode( Astra_Font_Families::get_custom_fonts() );
/** @psalm-suppress UndefinedVariable */
if ( $skip_google_fonts ) {
$custom = $custom ? $custom : '{}';
/** @psalm-suppress RedundantConditionGivenDocblockType */
if ( ! empty( $custom ) && '{}' !== $custom ) {
return 'var AstFontFamilies = { system: ' . ( $system ?: '{}' ) . ', custom: ' . $custom . ', google: {}, googleLoaded: false };';
}
return 'var AstFontFamilies = { system: ' . ( $system ?: '{}' ) . ', google: {}, googleLoaded: false };';
}
$google = wp_json_encode( Astra_Font_Families::get_google_fonts() );
$custom = $custom ? $custom : '{}';
$google = $google ? $google : '{}';
$system = $system ? $system : '{}';
/** @psalm-suppress RedundantConditionGivenDocblockType */
if ( ! empty( $custom ) && '{}' !== $custom ) {
return 'var AstFontFamilies = { system: ' . $system . ', custom: ' . $custom . ', google: ' . $google . ', googleLoaded: true };';
}
return 'var AstFontFamilies = { system: ' . $system . ', google: ' . $google . ', googleLoaded: true };';
}
}
}
Nama
Tipe
Ukuran
Diubah
Aksi
📁 astra-pro
dir
—
2026-06-03 10:06
📁 configurations
dir
—
2026-06-03 10:06
📁 custom-controls
dir
—
2026-06-03 10:06
📁 extend-custom-controls
dir
—
2026-06-03 10:06
📁 extend-customizer
dir
—
2026-06-03 10:06
🐘 class-astra-builder-customizer.php
php
17.6 KB
2026-04-16 15:17
🐘 class-astra-customizer-callback.php
php
1.2 KB
2025-02-26 11:35
🐘 class-astra-customizer-partials.php
php
3.8 KB
2025-02-26 11:35
🐘 class-astra-customizer-register-sections-panels.php
php
12.5 KB
2025-05-07 12:00
🐘 class-astra-customizer-sanitizes.php
php
31.4 KB
2026-05-12 13:03
🐘 class-astra-customizer.php
php
79.1 KB
2026-05-20 14:19
🐘 class-astra-extended-base-configuration.php
php
6.6 KB
2025-05-07 12:00
🐘 class-astra-font-families.php
php
4.5 KB
2025-02-26 11:35
🐘 class-astra-fonts-data.php
php
1.7 KB
2025-10-07 13:33
🐘 class-astra-fonts.php
php
5.9 KB
2026-03-24 13:33
🐘 customizer-controls.php
php
982 B
2025-07-30 12:02
🐘 index.php
php
111 B
2024-11-11 15:51
🐘 override-defaults.php
php
2.2 KB
2024-11-11 15:51