wordpress/wp-content/themes/basic/themify/google-fonts/functions.php
/**
 * Returns a list of web safe fonts
 * @param bool $only_names Whether to return only the array keys or the values as well
 * @return mixed|void
 * @since 1.0.0
 */
Returns a list of web safe fonts
@param bool $only_names Whether to return only the array keys or the values as well
@return mixed|void
@since 1.0.0
Returns a list of web safe fonts @param bool $only_names Whether to return only the array keys or the values as well @return mixed|void @since 1 . 0 . 0
function themify_get_web_safe_font_list( $only_names = false ) {
	$web_safe_font_names = array(
		"Arial, Helvetica, sans-serif",
		"Verdana, Geneva, sans-serif",
		"Georgia, 'Times New Roman', Times, serif",
		"'Times New Roman', Times, serif",
		"Tahoma, Geneva, sans-serif",
		"'Trebuchet MS', Arial, Helvetica, sans-serif",
		"Palatino, 'Palatino Linotype', 'Book Antiqua', serif",
		"'Lucida Sans Unicode', 'Lucida Grande', sans-serif"
	);
	if( ! $only_names ) {
		$web_safe_fonts = array(
			array( 'value' => 'default', 'name' => '', 'selected' => true ),
			array( 'value' => '', 'name' => '--- '.__( 'Web Safe Fonts', 'themify' ) . ' ---' )
		);
		foreach( $web_safe_font_names as $font ) {
			$web_safe_fonts[] = array(
				'value' => $font,
				'name' => $font
			);
		}
	} else {
		$web_safe_fonts = $web_safe_font_names;
	}
	return apply_filters( 'themify_get_web_safe_font_list', $web_safe_fonts );
}
function themify_get_web_safe_font_list ( $ only_names = false ) { $ web_safe_font_names = array ( " Arial, Helvetica, sans-serif " , " Verdana, Geneva, sans-serif " , " Georgia, 'Times New Roman', Times, serif " , " 'Times New Roman', Times, serif " , " Tahoma, Geneva, sans-serif " , " 'Trebuchet MS', Arial, Helvetica, sans-serif " , " Palatino, 'Palatino Linotype', 'Book Antiqua', serif " , " 'Lucida Sans Unicode', 'Lucida Grande', sans-serif " ) ; if ( ! $ only_names ) { $ web_safe_fonts = array ( array ( 'value' => 'default' , 'name' => '' , 'selected' => true ) , array ( 'value' => '' , 'name' => '--- ' . __ ( 'Web Safe Fonts' , 'themify' ) . ' ---' ) ) ; foreach ( $ web_safe_font_names as $ font ) { $ web_safe_fonts [ ] = array ( 'value' => $ font , 'name' => $ font ) ; } } else { $ web_safe_fonts = $ web_safe_font_names ; } return apply_filters ( 'themify_get_web_safe_font_list' , $ web_safe_fonts ) ; }
Returns a list of web safe fonts
 @param bool $only_names Whether to return only the array keys or the values as well
 @return mixed|void
 @since 1.0.0
Returns a list of web safe fonts @param bool $only_names Whether to return only the array keys or the values as well @return mixed|void @since 1 . 0 . 0