h=œн< С ш0qsЭ€ЌgA =œн< џџџџЫ УŒBнР0­:AџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџИœн< џџџџыќ;S€PŒaA№œн< џџџџІњnFŒдwƒ гwA(œн< џџџџЫОu›РШгwA`œн< џџџџqы…s4Хдк@УaAџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџvТfJ:ЋфxкwAˆ œн< џџџџск›ец€˜ФaAx!œн< џџџџІI_нЊЪРиkaAh"œн< џџџџoKˆjAбwƒp…aAX#œн< fЫ–|€jaAH$œн< џџџџнJw§R€`„aA8%œн< џџџџŒm;1€PЌ4A(&œн< џџџџcC’јє˜иРaAџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ`;œн< џџџџпЂ€>bРx3AИ>œн< џџџџЙВїR€H›3Aˆ1œн< џџџџoKˆjAбwƒp…aAx2œн< fЫ–|€jaAh3œн< џџџџнJw§R€`„aAX4œн< џџџџŒm;1€PЌ4AH5œн< џџџџcC’јє˜иРaA86œн< џџџџ^O‡џR€HПaAƒžн<џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ˜ДŸн<џџџџќоєS€2Ažр(•ђћU@џџџџџџџџџџџџ<>x™`Ax™`AџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџрIœн< џџџџdwOт=ФјНaAаJœн< џџџџZwќиŽР`bAќ/** * Get the used space for users * * Note that this only includes the space in their home directory, * not any incoming shares or external storage. * * @param IUser[] $users * @return int[] [$userId => $userSpace] * @since 13.0.0 */цъОИ;‚н<ш‰ (array) $variants, ); } } /** * Get fonts * * @return array */ public static function get_fonts() { do_action( 'inspiro/get_fonts' ); return apply_filters( 'inspiro/add_fonts', self::$fonts ); } /** * Get google font url * * @return string */ public static function get_google_font_url() { return self::$google_font_url; } /** * Renders the tag for all fonts in the $fonts array. * * @since 1.3.0 * @return void */ public static function render_fonts() { $font_list = apply_filters( 'inspiro/render_fonts', self::get_fonts() ); $google_fonts = array(); $font_subset = array(); $system_fonts = Inspiro_Font_Family_Manager::get_system_fonts(); foreach ( $font_list as $name => $font ) { if ( ! empty( $name ) && ! isset( $system_fonts[ $name ] ) ) { // Add font variants. $google_fonts[ $name ] = $font['variants']; // Add Subset. $subset = apply_filters( 'inspiro/font_subset', '', $name ); if ( ! empty( $subset ) ) { $font_subset[] = $subset; } } } self::$google_font_url = self::google_fonts_url( $google_fonts, $font_subset ); wp_enqueue_style( 'inspiro-google-fonts', self::$google_font_url, array(), INSPIRO_THEME_VERSION, 'all' ); } /** * Google Font URL * Combine multiple google font in one URL * * @link https://shellcreeper.com/?p=1476 * @param array $fonts Google Fonts array. * @param array $subsets Font's Subsets array. * * @return string */ public static function google_fonts_url( $fonts, $subsets = array() ) { /* URL */ $base_url = '//fonts.googleapis.com/css'; $font_args = array(); $family = array(); $fonts = apply_filters( 'inspiro/google_fonts_selected', $fonts ); /* Format Each Font Family in Array */ foreach ( $fonts as $font_name => $font_weight ) { $font_name = str_replace( ' ', '+', $font_name ); if ( ! empty( $font_weight ) ) { if ( is_array( $font_weight ) ) { $font_weight = implode( ',', $font_weight ); } $font_family = explode( ',', $font_name ); $font_family = str_replace( "'", '', inspiro_get_prop( $font_family, 0 ) ); $family[] = trim( $font_family . ':' . rawurlencode( trim( $font_weight ) ) ); } else { $family[] = trim( $font_name ); } } /* Only return URL if font family defined. */ if ( ! empty( $family ) ) { /* Make Font Family a String */ $family = implode( '|', $family ); /* Add font family in args */ $font_args['family'] = $family; /* Add font subsets in args */ if ( ! empty( $subsets ) ) { /* format subsets to string */ if ( is_array( $subsets ) ) { $subsets = implode( ',', $subsets ); } $font_args['subset'] = rawurlencode( trim( $subsets ) ); } $font_args['display'] = 'swap'; return add_query_arg( $font_args, $base_url ); } return ''; } } } /** * Kicking this off by calling 'get_instance()' method */ Inspiro_Fonts_Manager::get_instance();