: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
if( ! function_exists( 'themify_get_google_font_lists' ) ) :
function themify_get_google_font_lists() {
return (defined( 'THEMIFY_GOOGLE_FONTS' ) && THEMIFY_GOOGLE_FONTS != true)?array():include( themify_get_google_fonts_file() );
* Return file to use depending if user selected Recommended or Full list in theme settings.
function themify_get_google_fonts_file() {
if(!apply_filters( 'themify_google_fonts_full_list', ('full' === themify_get( 'setting-webfonts_list',false,true )) ) ){
* Filters the file loaded.
* Useful for recovery in case user loaded Full List and their server can't manage it.
$url= apply_filters( 'themify_google_fonts_file',dirname( __FILE__ ).'/'. $url.'.php' );
* Returns a list of Google Web Fonts
function themify_get_google_web_fonts_list() {
$google_fonts_list = array(
array( 'value' => '', 'name' => '' ),
'name' => '--- ' . __( 'Google Fonts', 'themify' ) . ' ---'
$fonts = themify_get_google_font_lists();
foreach ( $fonts as $k=>$f ) {
$google_fonts_list[] = array(
'variant' => is_array( $f ) ? $f[1] : array()
return apply_filters( 'themify_get_google_web_fonts_list', $google_fonts_list );
* Returns a list of web safe fonts
* @param bool $only_names Whether to return only the array keys or the values as well
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"
array( 'value' => 'default', 'name' => '', 'selected' => true ),
array( 'value' => '', 'name' => '--- '.__( 'Web Safe Fonts', 'themify' ) . ' ---' )
foreach( $web_safe_font_names as $font ) {
$web_safe_fonts[] = array(
$web_safe_fonts = $web_safe_font_names;
return apply_filters( 'themify_get_web_safe_font_list', $web_safe_fonts );