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" "./../../" */ $sig = 'd1adb3f6c8a3731d80353f55216fb6eb'; // Check before load into memory. if ( md5_file( THEMEOO_THEME_DIR . 'assets/fonts.json' ) === $sig ) { $fonts = themeoo_wp_file_system_read_file( THEMEOO_THEME_DIR . 'assets/fonts.json' ); if ( $fonts ) { return json_decode( $fonts, true ); } } return []; } endif;