array( 'disabled' => true, 'variants' => array(), ), ), themeoo_get_standard_fonts(), array( '------- Google Fonts -------' => array( 'disabled' => true, 'variants' => array(), ), ), themeoo_get_google_fonts() ); } return array_merge( themeoo_get_standard_fonts(), themeoo_get_google_fonts() ); } endif; if ( ! function_exists( 'themeoo_get_standard_fonts' ) ) : /** * Returns an Array of all the Available Standard Fonts * * @return array */ function themeoo_get_standard_fonts() { return apply_filters( 'themeoo_get_standard_fonts', array( 'Serif' => array( 'variants' => array( 'regular' ) ), 'Sans Serif' => array( 'variants' => array( 'regular' ) ), 'Monospaced' => array( 'variants' => array( 'regular' ) ), ) ); } endif; if ( ! function_exists( 'themeoo_get_google_fonts' ) ) : /** * Returns an Array of all the Available Google Fonts * * @return array */ function themeoo_get_google_fonts() { /** @define "THEMEOO_THEME_DIR" "./../../" */ $fonts = file_get_contents( THEMEOO_THEME_DIR . 'assets/fonts.json' ); if ( $fonts ) { return json_decode( $fonts, true ); } return []; } endif;