wordpress/wp-content/themes/basic/themify/themify-fontello.php
/**
 * Get Fontello configration from config.json file
 *
 * Can optionally provide $name to retrieve a specific key
 *
 * @return array|false
 */
Get Fontello configration from config.json file
Can optionally provide $name to retrieve a specific key

@return array|false
Get Fontello configration from config . json file Can optionally provide $name to retrieve a specific key @return array|false
function themify_fontello_get_config( $name = null, $default = null ) {
	$config = false;
	if( themify_check( 'setting-fontello' ) ) {
		$path = themify_fontello_path();
		if( $path ) {
			if( $config = themify_get_file_contents( $path['dir'] . 'config.json' ) ) {
				$config = json_decode( $config, true );
				if( isset( $name ) ) {
					if( ! empty( $config[ $name ] ) ) {
						$config = $config[ $name ];
					} else {
						$config = $default;
					}
				}
			}
		}
	}
	return $config;
}
function themify_fontello_get_config ( $ name = null , $ default = null ) { $ config = false ; if ( themify_check ( 'setting-fontello' ) ) { $ path = themify_fontello_path ( ) ; if ( $ path ) { if ( $ config = themify_get_file_contents ( $ path [ 'dir' ] . 'config.json' ) ) { $ config = json_decode ( $ config , true ) ; if ( isset ( $ name ) ) { if ( ! empty ( $ config [ $ name ] ) ) { $ config = $ config [ $ name ] ; } else { $ config = $ default ; } } } } } return $ config ; }
Get Fontello configration from config.json file
 Can optionally provide $name to retrieve a specific key
Get Fontello configration from config . json file Can optionally provide $name to retrieve a specific key