Current File : /home/mdkeenpw/www/wp-content/themes/globallogistics/skins/default/templates/header-logo.php
<?php
/**
 * The template to display the logo or the site name and the slogan in the Header
 *
 * @package GLOBALLOGISTICS
 * @since GLOBALLOGISTICS 1.0
 */

$globallogistics_args = get_query_var( 'globallogistics_logo_args' );

// Site logo
$globallogistics_logo_type   = isset( $globallogistics_args['type'] ) ? $globallogistics_args['type'] : '';
$globallogistics_logo_image  = globallogistics_get_logo_image( $globallogistics_logo_type );
$globallogistics_logo_text   = globallogistics_is_on( globallogistics_get_theme_option( 'logo_text' ) ) ? get_bloginfo( 'name' ) : '';
$globallogistics_logo_slogan = get_bloginfo( 'description', 'display' );
if ( ! empty( $globallogistics_logo_image['logo'] ) || ! empty( $globallogistics_logo_text ) ) {
	?><a class="sc_layouts_logo" href="<?php echo esc_url( home_url( '/' ) ); ?>">
		<?php
		if ( ! empty( $globallogistics_logo_image['logo'] ) ) {
			if ( empty( $globallogistics_logo_type ) && function_exists( 'the_custom_logo' ) && is_numeric($globallogistics_logo_image['logo']) && (int) $globallogistics_logo_image['logo'] > 0 ) {
				the_custom_logo();
			} else {
				$globallogistics_attr = globallogistics_getimagesize( $globallogistics_logo_image['logo'] );
				echo '<img src="' . esc_url( $globallogistics_logo_image['logo'] ) . '"'
						. ( ! empty( $globallogistics_logo_image['logo_retina'] ) ? ' srcset="' . esc_url( $globallogistics_logo_image['logo_retina'] ) . ' 2x"' : '' )
						. ' alt="' . esc_attr( $globallogistics_logo_text ) . '"'
						. ( ! empty( $globallogistics_attr[3] ) ? ' ' . wp_kses_data( $globallogistics_attr[3] ) : '' )
						. '>';
			}
		} else {
			globallogistics_show_layout( globallogistics_prepare_macros( $globallogistics_logo_text ), '<span class="logo_text">', '</span>' );
			globallogistics_show_layout( globallogistics_prepare_macros( $globallogistics_logo_slogan ), '<span class="logo_slogan">', '</span>' );
		}
		?>
	</a>
	<?php
}