HEX
Server: Apache
System: Linux hostingsrv38.dondominio.com 6.12.57+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.57-1 (2025-11-05) x86_64
User: (706670)
PHP: 8.4.18
Disabled: system,passthru,popen,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,exec,ini_alter,show_source,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,mail,eval
Upload Files
File: /hosting/www/highcmusic.com/public/wp-content/plugins/yith-pre-launch/yit-common/google_fonts.php
<?php
/**
 * Google font management
 */

$yith_google_fonts = new Google_Font();

class Google_Font {

    /**
     * @var array The google fonts to include in the page
     */
    public $google_fonts = array();

    /**
     * Generate the url for the google fonts
     */
    public function google_fonts_url() {
        $base_url = '//fonts.googleapis.com/css?family=';
        $fonts = array();

        if ( empty( $this->google_fonts ) ) return;

        foreach ( $this->google_fonts as $font => $variants ) {
            $fonts[] = urlencode( $font . ':' . implode( ',', $variants ) );
        }

        return $base_url . implode( '|', $fonts );
    }

    /**
     * Add a new google font in queue
     *
     * @param $font The name of google font
     * @param array $variants The variatns for the google font to add
     */
    public function add_google_font( $font, $variants = array() ) {
        if ( ! is_array( $variants ) ) $variants = array( $variants );

        foreach ( $variants as $variant ) {
            if ( ! isset( $this->google_fonts[$font] ) ) $this->google_fonts[$font] = array( 300, 400 );
            if ( ! in_array( $variant, $this->google_fonts[$font] ) ) $this->google_fonts[$font][] = $variant;
        }
    }
}

if ( ! function_exists( 'yith_add_google_font' ) ) {
    /**
     * Add a new google font in queue
     *
     * @param $font The name of google font
     * @param array $variant The variatns for the google font to add
     */
    function yith_add_google_font( $font, $variant = array() ) {
        global $yith_google_fonts;
        $yith_google_fonts->add_google_font( $font, $variant );
    }
}

if ( ! function_exists( 'yith_google_fonts_url' ) ) {
    /**
     * @return string The url with the google fonts to load
     */
    function yith_google_fonts_url() {
        global $yith_google_fonts;
        return $yith_google_fonts->google_fonts_url();
    }
}