ID; } if ( is_404() ) { $post_id = get_queried_object_id(); } if ( isset( $post_id ) ) { $google_fonts = uagb_get_post_assets( $post_id )->get_fonts(); if ( is_array( $google_fonts ) && ! empty( $google_fonts ) ) { foreach ( $google_fonts as $key => $gfont_values ) { if ( ! empty( $gfont_values['fontfamily'] ) && is_string( $gfont_values['fontfamily'] ) && isset( $gfont_values['fontvariants'] ) ) { $astra_fonts[ $gfont_values['fontfamily'] ] = $gfont_values['fontvariants']; foreach ( $gfont_values['fontvariants'] as $key => $font_variants ) { $astra_fonts[ $gfont_values['fontfamily'] ][ $key ] .= ',' . $font_variants . 'italic'; } } } } } return $astra_fonts; } /** * Update Astra's menu priority to show after Dashboard menu. * * @param int $menu_priority top level menu priority. * @since 2.3.0 */ public function update_admin_menu_position( $menu_priority ) { return 2.1; } } /** * Prepare if class 'UAGB_Astra_Compatibility' exist. * Kicking this off by calling 'get_instance()' method */ UAGB_Astra_Compatibility::get_instance();