Making WordPress.org


Ignore:
Timestamp:
02/25/2020 01:07:33 AM (6 years ago)
Author:
coffee2code
Message:

Main theme: Add alt attribute to images on download page.

Props dufresnesteven, ashokrd2013, coffee2code.
Fixes #4892.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-download.php

    r9375 r9538  
    218218
    219219                                        <?php foreach ( array_rand( $hosts, 2 ) as $host ) : ?>
     220
    220221                                        <div class="host col-6">
    221                                                 <img src="<?php echo esc_url( get_theme_file_uri( $hosts[ $host ]['logo'] ) ); ?>" class="logo" />
     222                                                <img src="<?php echo esc_url( get_theme_file_uri( $hosts[ $host ]['logo'] ) ); ?>" class="logo" alt="<?php
     223                                                        /* translators: %s: Name of hosting company */
     224                                                        printf( esc_attr__( '%s company logo', 'wporg' ), esc_html( $hosts[ $host ]['name'] ) );
     225                                                        ?>"
     226                                                />
    222227                                                <p><?php echo esc_html( $hosts[ $host ]['description'] ); ?></p>
    223228                                                <a href="<?php echo esc_url( $hosts[ $host ]['url'] ); ?>">
     
    239244
    240245                                        <div class="web-stores">
    241                                                 <a href="http://appstore.com/WordPress" class="button-ios"><img src="<?php echo esc_url( get_theme_file_uri( 'images/badge-apple.png' ) ); ?>" /></a>
    242                                                 <a href="http://play.google.com/store/apps/details?id=org.wordpress.android" class="button-android"><img src="<?php echo esc_url( get_theme_file_uri( 'images/badge-google-play.png' ) ); ?>" /></a>
     246                                                <a href="http://appstore.com/WordPress" class="button-ios" >
     247                                                        <img src="<?php echo esc_url( get_theme_file_uri( 'images/badge-apple.png' ) ); ?>" alt="<?php esc_attr_e( 'Available in the Apple App Store', 'wporg' ); ?>" />
     248                                                </a>
     249                                                <a href="http://play.google.com/store/apps/details?id=org.wordpress.android" class="button-android">
     250                                                        <img src="<?php echo esc_url( get_theme_file_uri( 'images/badge-google-play.png' ) ); ?>"  alt="<?php esc_attr_e( 'Available in the Google Play Store', 'wporg' ); ?>" />
     251                                                </a>
    243252                                        </div>
    244253                                        <a href="https://apps.wordpress.com/mobile/" class="call-to-action"><?php esc_html_e( 'Learn more about our mobile apps', 'wporg' ); ?></a>
Note: See TracChangeset for help on using the changeset viewer.