| Server IP : 104.26.4.103 / Your IP : 216.73.216.4 Web Server : nginx/1.27.1 System : Linux in-5 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64 User : arabianexpress ( 1872) PHP Version : 8.0.30 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /storage/v9321/rimskannur/public_html/wp-content/themes/skole/vamtam/customizer/preview/ |
Upload File : |
<?php
global $wp_customize;
// all compiler options
$compiler_options = array_keys( vamtam_custom_css_options() );
// all typography options
$typography_options = $GLOBALS['vamtam_theme_customizer']->get_fields_by_type( 'typography' );
function vamtam_customizer_preview_fonts_url() {
global $vamtam_fonts, $vamtam_theme;
$fonts_by_family = vamtam_get_fonts_by_family();
$google_fonts = array();
$typography_options = $GLOBALS['vamtam_theme_customizer']->get_fields_by_type( 'typography' );
foreach ( $typography_options as $id => $field ) {
$font_id = $fonts_by_family[ $vamtam_theme[ $id ]['font-family'] ];
$font = $vamtam_fonts[ $font_id ];
if ( isset( $font['gf'] ) && $font['gf'] ) {
$google_fonts[ $font_id ][] = isset( $vamtam_theme[ $id ]['font-weight'] ) ? $vamtam_theme[ $id ]['font-weight'] : 'normal';
}
}
$font_imports_url = Vamtam_Customizer::build_google_fonts_url( $google_fonts );
return $font_imports_url;
}