More descriptive aria-label for the default featured images.

This commit is contained in:
Frank419 2024-08-27 18:03:24 +08:00
parent d91bc889d7
commit 01af49757f

View File

@ -30,7 +30,13 @@ $default_image_location = get_theme_mod( 'minimalistflex_default_featured_images
?> ?>
<?php endif; ?> <?php endif; ?>
<div class="singular-image"> <div class="singular-image">
<img src="<?php echo esc_url( $imgsrc ) ?>" aria-label="<?php esc_attr_e( 'The thumbnail image. This is a default image so that it\'s purely decorative.', 'minimalistflex' ) ?>"> <img src="<?php echo esc_url( $imgsrc ) ?>" aria-label="<?php
printf(
/* translators: %s: Title of the post. */
esc_attr__( 'The thumbnail image for %s.', 'minimalistflex' ),
get_the_title()
)
?>">
</div> </div>
<?php endif; ?> <?php endif; ?>
<div class="singular-main"> <div class="singular-main">
@ -39,7 +45,7 @@ $default_image_location = get_theme_mod( 'minimalistflex_default_featured_images
<div class="panel-main"> <div class="panel-main">
<?php the_content(); ?> <?php the_content(); ?>
<?php wp_link_pages( Array( <?php wp_link_pages( Array(
'before' => '<p class="panel post-nav-links"><span class="post-nav-links-indicator">' . __('Pages: ', 'minimalistflex') . '</span>' 'before' => '<p class="panel post-nav-links"><span class="post-nav-links-indicator">' . __( 'Pages: ', 'minimalistflex' ) . '</span>'
) ); ?> ) ); ?>
</div> </div>
<?php get_sidebar( 'below-content' ) ?> <?php get_sidebar( 'below-content' ) ?>