Making WordPress.org

Ticket #4091: 4091-footer.diff

File 4091-footer.diff, 7.7 KB (added by ryelle, 3 years ago)

Remove the title attribute from footer items, wrap footer in labelled nav area.

  • footer.php

     
    5353?>
    5454
    5555<div id="wporg-footer">
    56         <div class="wrapper">
     56        <nav class="wrapper" aria-label="<?php esc_attr_e( 'Footer menu', 'wporg' ); ?>">
    5757                <ul>
    58                         <li><a href="<?php echo "//{$localised_domain}/about/"; ?>" title="<?php esc_attr_e( 'An introduction to the WordPress project', 'wporg' ); ?>"><?php _e( 'About', 'wporg' ); ?></a></li>
    59                         <li><a href="<?php echo "//{$localised_domain}/news/"; ?>" title="<?php esc_attr_e( 'News and Updates', 'wporg' ); ?>"><?php _e( 'Blog', 'wporg' ); ?></a></li>
    60                         <li><a href="//wordpress.org/hosting/" title="<?php esc_attr_e( 'Recommended web hosting providers', 'wporg' ); ?>"><?php _e( 'Hosting', 'wporg' ); ?></a></li>
    61                         <li><a href="https://wordpressfoundation.org/donate/" title="<?php esc_attr_e( 'Donate to the WordPress Foundation', 'wporg' ); ?>"><?php _e( 'Donate', 'wporg' ); ?></a></li>
     58                        <li><a href="<?php echo "//{$localised_domain}/about/"; ?>" data-title="<?php esc_attr_e( 'An introduction to the WordPress project', 'wporg' ); ?>"><?php _e( 'About', 'wporg' ); ?></a></li>
     59                        <li><a href="<?php echo "//{$localised_domain}/news/"; ?>" data-title="<?php esc_attr_e( 'News and Updates', 'wporg' ); ?>"><?php _e( 'Blog', 'wporg' ); ?></a></li>
     60                        <li><a href="//wordpress.org/hosting/" data-title="<?php esc_attr_e( 'Recommended web hosting providers', 'wporg' ); ?>"><?php _e( 'Hosting', 'wporg' ); ?></a></li>
     61                        <li><a href="https://wordpressfoundation.org/donate/" data-title="<?php esc_attr_e( 'Donate to the WordPress Foundation', 'wporg' ); ?>"><?php _e( 'Donate', 'wporg' ); ?></a></li>
    6262                </ul>
    6363
    6464                <ul>
    65                         <li><a href="<?php echo $support_url; ?>" title="<?php esc_attr_e( 'Forums, documentation, and other resources', 'wporg' ); ?>"><?php _e( 'Support', 'wporg' ); ?></a></li>
    66                         <li><a href="//developer.wordpress.org" title="<?php esc_attr_e( 'Resources for WordPress developers', 'wporg' ); ?>"><?php _e( 'Developers', 'wporg' ); ?></a></li>
    67                         <li><a href="//make.wordpress.org/" title="<?php esc_attr_e( 'Give back to WordPress through code, support, translation and more', 'wporg' ); ?>"><?php _e( 'Get Involved', 'wporg' ); ?></a></li>
    68                         <li><a href="//learn.wordpress.org/" title="<?php esc_attr_e( 'Workshops and training materials', 'wporg' ); ?>"><?php _e( 'Learn', 'wporg' ); ?></a></li>
     65                        <li><a href="<?php echo $support_url; ?>" data-title="<?php esc_attr_e( 'Forums, documentation, and other resources', 'wporg' ); ?>"><?php _e( 'Support', 'wporg' ); ?></a></li>
     66                        <li><a href="//developer.wordpress.org" data-title="<?php esc_attr_e( 'Resources for WordPress developers', 'wporg' ); ?>"><?php _e( 'Developers', 'wporg' ); ?></a></li>
     67                        <li><a href="//make.wordpress.org/" data-title="<?php esc_attr_e( 'Give back to WordPress through code, support, translation and more', 'wporg' ); ?>"><?php _e( 'Get Involved', 'wporg' ); ?></a></li>
     68                        <li><a href="//learn.wordpress.org/" data-title="<?php esc_attr_e( 'Workshops and training materials', 'wporg' ); ?>"><?php _e( 'Learn', 'wporg' ); ?></a></li>
    6969                </ul>
    7070
    7171                <ul>
    72                         <li><a href="//wordpress.org/showcase/" title="<?php esc_attr_e( 'Some of the best WordPress sites on the Web', 'wporg' ); ?>"><?php _e( 'Showcase', 'wporg' ); ?></a></li>
    73                         <li><a href="<?php echo "//{$localised_domain}/plugins/"; ?>" title="<?php esc_attr_e( 'Add extra functionality to WordPress', 'wporg' ); ?>"><?php _e( 'Plugins', 'wporg' ); ?></a></li>
    74                         <li><a href="<?php echo "//{$localised_domain}/themes/"; ?>" title="<?php esc_attr_e( 'Make your WordPress pretty', 'wporg' ); ?>"><?php _e( 'Themes', 'wporg' ); ?></a></li>
     72                        <li><a href="//wordpress.org/showcase/" data-title="<?php esc_attr_e( 'Some of the best WordPress sites on the Web', 'wporg' ); ?>"><?php _e( 'Showcase', 'wporg' ); ?></a></li>
     73                        <li><a href="<?php echo "//{$localised_domain}/plugins/"; ?>" data-title="<?php esc_attr_e( 'Add extra functionality to WordPress', 'wporg' ); ?>"><?php _e( 'Plugins', 'wporg' ); ?></a></li>
     74                        <li><a href="<?php echo "//{$localised_domain}/themes/"; ?>" data-title="<?php esc_attr_e( 'Make your WordPress pretty', 'wporg' ); ?>"><?php _e( 'Themes', 'wporg' ); ?></a></li>
    7575                </ul>
    7676
    7777                <ul>
    78                         <li><a href="//central.wordcamp.org/" title="<?php esc_attr_e( 'Find a WordPress event near you', 'wporg' ); ?>"><?php _e( 'WordCamp', 'wporg' ); ?></a></li>
    79                         <li><a href="//wordpress.tv/" title="<?php esc_attr_e( 'Videos, tutorials, and WordCamp sessions', 'wporg' ); ?>"><?php _e( 'WordPress.TV', 'wporg' ); ?></a></li>
    80                         <li><a href="//buddypress.org/" title="<?php esc_attr_e( 'A set of plugins to transform your WordPress into a social network', 'wporg' ); ?>"><?php _e( 'BuddyPress', 'wporg' ); ?></a></li>
    81                         <li><a href="//bbpress.org/" title="<?php esc_attr_e( 'Fast, slick forums built on WordPress', 'wporg' ); ?>"><?php _e( 'bbPress', 'wporg' ); ?></a></li>
     78                        <li><a href="//central.wordcamp.org/" data-title="<?php esc_attr_e( 'Find a WordPress event near you', 'wporg' ); ?>"><?php _e( 'WordCamp', 'wporg' ); ?></a></li>
     79                        <li><a href="//wordpress.tv/" data-title="<?php esc_attr_e( 'Videos, tutorials, and WordCamp sessions', 'wporg' ); ?>"><?php _e( 'WordPress.TV', 'wporg' ); ?></a></li>
     80                        <li><a href="//buddypress.org/" data-title="<?php esc_attr_e( 'A set of plugins to transform your WordPress into a social network', 'wporg' ); ?>"><?php _e( 'BuddyPress', 'wporg' ); ?></a></li>
     81                        <li><a href="//bbpress.org/" data-title="<?php esc_attr_e( 'Fast, slick forums built on WordPress', 'wporg' ); ?>"><?php _e( 'bbPress', 'wporg' ); ?></a></li>
    8282                </ul>
    8383
    8484                <ul>
    85                         <li><a href="//wordpress.com/?ref=wporg-footer" title="<?php esc_attr_e( 'Hassle-free WordPress hosting', 'wporg' ); ?>"><?php _e( 'WordPress.com', 'wporg' ); ?></a></li>
    86                         <li><a href="//ma.tt/" title="<?php esc_attr_e( 'Co-founder of WordPress, an example of what WordPress can do', 'wporg' ); ?>"><?php _e( 'Matt', 'wporg' ); ?></a></li>
    87                         <li><a href="<?php echo "//{$localised_domain}/about/privacy/"; ?>" title="<?php esc_attr_e( 'WordPress.org Privacy Policy', 'wporg' ); ?>"><?php _e( 'Privacy', 'wporg' ); ?></a></li>
     85                        <li><a href="//wordpress.com/?ref=wporg-footer" data-title="<?php esc_attr_e( 'Hassle-free WordPress hosting', 'wporg' ); ?>"><?php _e( 'WordPress.com', 'wporg' ); ?></a></li>
     86                        <li><a href="//ma.tt/" data-title="<?php esc_attr_e( 'Co-founder of WordPress, an example of what WordPress can do', 'wporg' ); ?>"><?php _e( 'Matt', 'wporg' ); ?></a></li>
     87                        <li><a href="<?php echo "//{$localised_domain}/about/privacy/"; ?>" data-title="<?php esc_attr_e( 'WordPress.org Privacy Policy', 'wporg' ); ?>"><?php _e( 'Privacy', 'wporg' ); ?></a></li>
    8888                        <li><a href="https://publiccode.eu/" target="_blank"><?php _e( 'Public Code', 'wporg' ); ?></a></li>
    8989                </ul>
    9090
    9191                <ul class="social-media-links">
    92                         <li><span class="dashicons dashicons-twitter"></span><a href="https://twitter.com/WordPress" title="<?php echo esc_attr( sprintf( __( 'Follow %s on Twitter', 'wporg' ), '@WordPress' ) ); ?>">@WordPress</a></li>
    93                         <li><span class="dashicons dashicons-facebook"></span><a href="https://www.facebook.com/WordPress/" title="<?php echo esc_attr( sprintf( __( 'Like %s on Facebook', 'wporg' ), 'WordPress' ) ); ?>">WordPress</a></li>
     92                        <li><span class="dashicons dashicons-twitter"></span><a href="https://twitter.com/WordPress" data-title="<?php echo esc_attr( sprintf( __( 'Follow %s on Twitter', 'wporg' ), '@WordPress' ) ); ?>">@WordPress</a></li>
     93                        <li><span class="dashicons dashicons-facebook"></span><a href="https://www.facebook.com/WordPress/" data-title="<?php echo esc_attr( sprintf( __( 'Like %s on Facebook', 'wporg' ), 'WordPress' ) ); ?>">WordPress</a></li>
    9494                </ul>
    95         </div>
     95        </nav>
    9696
    9797        <?php
    9898        $code_is_poetry_english = 'Code is Poetry.';