Viewing File: /home/maglabs/mascotte/wp-content/themes/splendour/skins/default/templates/header-logo.php
<?php
/**
* The template to display the logo or the site name and the slogan in the Header
*
* @package SPLENDOUR
* @since SPLENDOUR 1.0
*/
$splendour_args = get_query_var( 'splendour_logo_args' );
// Site logo
$splendour_logo_type = isset( $splendour_args['type'] ) ? $splendour_args['type'] : '';
$splendour_logo_image = splendour_get_logo_image( $splendour_logo_type );
$splendour_logo_text = splendour_is_on( splendour_get_theme_option( 'logo_text' ) ) ? get_bloginfo( 'name' ) : '';
$splendour_logo_slogan = get_bloginfo( 'description', 'display' );
if ( ! empty( $splendour_logo_image['logo'] ) || ! empty( $splendour_logo_text ) ) {
?><a class="sc_layouts_logo" href="<?php echo esc_url( home_url( '/' ) ); ?>">
<?php
if ( ! empty( $splendour_logo_image['logo'] ) ) {
if ( empty( $splendour_logo_type ) && function_exists( 'the_custom_logo' ) && is_numeric($splendour_logo_image['logo']) && (int) $splendour_logo_image['logo'] > 0 ) {
the_custom_logo();
} else {
$splendour_attr = splendour_getimagesize( $splendour_logo_image['logo'] );
echo '<img src="' . esc_url( $splendour_logo_image['logo'] ) . '"'
. ( ! empty( $splendour_logo_image['logo_retina'] ) ? ' srcset="' . esc_url( $splendour_logo_image['logo_retina'] ) . ' 2x"' : '' )
. ' alt="' . esc_attr( $splendour_logo_text ) . '"'
. ( ! empty( $splendour_attr[3] ) ? ' ' . wp_kses_data( $splendour_attr[3] ) : '' )
. '>';
}
} else {
splendour_show_layout( splendour_prepare_macros( $splendour_logo_text ), '<span class="logo_text">', '</span>' );
splendour_show_layout( splendour_prepare_macros( $splendour_logo_slogan ), '<span class="logo_slogan">', '</span>' );
}
?>
</a>
<?php
}
Back to Directory
File Manager