wordpress/wp-content/themes/basic/themify/customizer/class-themify-customizer.php
/**
		 * Inserts logo image in site title or hides it.
		 *
		 * @param string $location
		 * @return string
		 */
Inserts logo image in site title or hides it.
@param string $location
@return string
Inserts logo image in site title or hides it . @param string $location @return string
function site_logo($location = '') {
			$site_name = get_bloginfo('name');
			$logo = json_decode($this->get_cached_mod($location . '_image'));
			$is_image_mode = isset($logo->mode) && 'image' === $logo->mode && !empty($logo->src);
			$url = apply_filters('themify_customizer_logo_home_url', !empty($logo->link) ? $logo->link : home_url() );
			$html = '<a href="' . esc_url($url) . '" title="' . esc_attr($site_name) . '">';
			if ( $is_image_mode===true) {
				$attr = array(
					'src'    => esc_url( themify_https_esc( $logo->src ) ),
					'alt'    => get_post_meta( $logo->id, '_wp_attachment_image_alt', true ) ?: $site_name,
					'title'  => get_the_title( $logo->id ) ?: $site_name,
					'width'  => ! empty( $logo->imgwidth ) ? $logo->imgwidth : '',
					'height' => ! empty( $logo->imgheight ) ? $logo->imgheight : '',
					'class' => 'site-logo-image',
				);
				themify_generateWebp( $attr['src'] );
				$html .= '<img ' . themify_get_element_attributes( $attr ) . '>';
				if ( is_customize_preview() ) {
				    $html .= '<span style="display: none;">' . esc_html($site_name) . '</span>' ;
				}
				else{
				    Themify_Enqueue_Assets::addPreLoadMedia( $attr['src'] );
				}
			} else {
				$html .= '<span>' . html_entity_decode($site_name) . '</span>';
			}
			$html .= '</a>';
			return $html;
		}
function site_logo ( $ location = '' ) { $ site_name = get_bloginfo ( 'name' ) ; $ logo = json_decode ( $ this -> get_cached_mod ( $ location . '_image' ) ) ; $ is_image_mode = isset ( $ logo -> mode ) && 'image' === $ logo -> mode && ! empty ( $ logo -> src ) ; $ url = apply_filters ( 'themify_customizer_logo_home_url' , ! empty ( $ logo -> link ) ? $ logo -> link : home_url ( ) ) ; $ html = '<a href="' . esc_url ( $ url ) . '" title="' . esc_attr ( $ site_name ) . '">' ; if ( $ is_image_mode === true ) { $ attr = array ( 'src' => esc_url ( themify_https_esc ( $ logo -> src ) ) , 'alt' => get_post_meta ( $ logo -> id , '_wp_attachment_image_alt' , true ) ? : $ site_name , 'title' => get_the_title ( $ logo -> id ) ? : $ site_name , 'width' => ! empty ( $ logo -> imgwidth ) ? $ logo -> imgwidth : '' , 'height' => ! empty ( $ logo -> imgheight ) ? $ logo -> imgheight : '' , 'class' => 'site-logo-image' , ) ; themify_generateWebp ( $ attr [ 'src' ] ) ; $ html .= '<img ' . themify_get_element_attributes ( $ attr ) . '>' ; if ( is_customize_preview ( ) ) { $ html .= '<span style="display: none;">' . esc_html ( $ site_name ) . '</span>' ; } else { Themify_Enqueue_Assets :: addPreLoadMedia ( $ attr [ 'src' ] ) ; } } else { $ html .= '<span>' . html_entity_decode ( $ site_name ) . '</span>' ; } $ html .= '</a>' ; return $ html ; }
Inserts logo image in site title or hides it.
Inserts logo image in site title or hides it .