Making WordPress.org

Ticket #4892: 4892.diff

File 4892.diff, 2.4 KB (added by dufresnesteven, 5 years ago)

Add alt tags to the images on the /download page.

  • wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-download.php

    diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-download.php wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-download.php
    index bbe374d22..517b73f9a 100644
    the_post(); 
    217217                                        <p class="subheading col-8"><?php esc_html_e( 'Choosing a hosting provider can be difficult, so we have selected a few of the best to get you started.', 'wporg' ); ?></p>
    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: Name of hosting company */
     224                                                        printf( esc_html__( '%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'] ); ?>">
    224229                                                        <?php
    the_post(); 
    238243                                        <p class="subheading"><?php esc_html_e( 'Create or update content on the go with our mobile apps.', 'wporg' ); ?></p>
    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_html_e( 'Available on the Apple 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_html_e( 'Available on Google play', '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>
    245254                                </section>