Viewing File: /home/maglabs/luchiana/wp-content/themes/floria/skins/default/templates/header-logo.php
<?php
/**
* The template to display the logo or the site name and the slogan in the Header
*
* @package FLORIA
* @since FLORIA 1.0
*/
$floria_args = get_query_var( 'floria_logo_args' );
// Site logo
$floria_logo_type = isset( $floria_args['type'] ) ? $floria_args['type'] : '';
$floria_logo_image = floria_get_logo_image( $floria_logo_type );
$floria_logo_text = floria_is_on( floria_get_theme_option( 'logo_text' ) ) ? get_bloginfo( 'name' ) : '';
$floria_logo_slogan = get_bloginfo( 'description', 'display' );
if ( ! empty( $floria_logo_image['logo'] ) || ! empty( $floria_logo_text ) ) {
?><a class="sc_layouts_logo" href="<?php echo esc_url( home_url( '/' ) ); ?>">
<?php
if ( ! empty( $floria_logo_image['logo'] ) ) {
if ( empty( $floria_logo_type ) && function_exists( 'the_custom_logo' ) && is_numeric($floria_logo_image['logo']) && (int) $floria_logo_image['logo'] > 0 ) {
the_custom_logo();
} else {
$floria_attr = floria_getimagesize( $floria_logo_image['logo'] );
echo '<img src="' . esc_url( $floria_logo_image['logo'] ) . '"'
. ( ! empty( $floria_logo_image['logo_retina'] ) ? ' srcset="' . esc_url( $floria_logo_image['logo_retina'] ) . ' 2x"' : '' )
. ' alt="' . esc_attr( $floria_logo_text ) . '"'
. ( ! empty( $floria_attr[3] ) ? ' ' . wp_kses_data( $floria_attr[3] ) : '' )
. '>';
}
} else {
floria_show_layout( floria_prepare_macros( $floria_logo_text ), '<span class="logo_text">', '</span>' );
floria_show_layout( floria_prepare_macros( $floria_logo_slogan ), '<span class="logo_slogan">', '</span>' );
}
?>
</a>
<?php
}
Back to Directory
File Manager