'default-logo', 'itemprop' => 'logo', ]; /** * If the logo alt attribute is empty, get the site title and explicitly * pass it to the attributes used by wp_get_attachment_image(). */ $image_alt = get_post_meta( $custom_logo_id, '_wp_attachment_image_alt', true ); if (empty($image_alt)) { $custom_logo_attr['alt'] = get_bloginfo('name', 'display'); } $image_logo_html = wp_get_attachment_image( $custom_logo_id, 'full', false, $custom_logo_attr ); if (! empty($additional_logo_id)) { $custom_logo_attr['class'] = 'sticky-logo'; $image_logo_html = wp_get_attachment_image( $additional_logo_id, 'full', false, $custom_logo_attr ) . $image_logo_html; } /** * If the alt attribute is not empty, there's no need to explicitly pass * it because wp_get_attachment_image() already adds the alt attribute. */ $logo_html = sprintf( '', esc_url( home_url( '/' ) ), $image_logo_html ); } $tagline_class = 'site-description ' . blocksy_visibility_classes( blocksy_default_akg('blogdescription_visibility', $atts, [ 'desktop' => true, 'tablet' => true, 'mobile' => true, ]) ); $site_title_class = 'site-title ' . blocksy_visibility_classes( blocksy_default_akg('blogname_visibility', $atts, [ 'desktop' => true, 'tablet' => true, 'mobile' => true, ]) ); $tag = 'span'; if (is_home() || is_front_page()) { if ($device !== 'mobile') { $tag = 'h1'; } } $has_site_title = blocksy_akg('has_site_title', $atts, 'yes') === 'yes'; $has_tagline = blocksy_akg('has_tagline', $atts, 'no') === 'yes'; $logo_position = ''; if ( $custom_logo_id && ( $has_site_title || $has_tagline ) ) { $logo_position = 'data-logo="' . blocksy_akg('logo_position', $atts, 'left') . '"'; } ?>
>
< class="" > > >

>