Making WordPress.org


Ignore:
Timestamp:
05/28/2025 05:37:40 AM (10 months ago)
Author:
dd32
Message:

WP I18N Teams: Update the team page styling with the newer block buttons.

Props dd32, dhrumilk, mikinc860, rollybueno.
Fixes #7916, #7986.
Closes https://github.com/WordPress/wordpress.org/pull/490.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wp-i18n-teams/views/locale-details.php

    r11373 r14457  
    4545
    4646    <?php if ( $locale_data['localized_core_url'] ) : ?>
    47         <ul id="locale-download">
    48             <li class="button download-button">
    49                 <a href="<?php echo esc_url( $locale_data['localized_core_url'] ); ?>" role="button">
    50                     <?php printf( __( 'Download WordPress in %s', 'wporg' ), $locale->english_name ); ?>
     47        <div id="locale-download" class="wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex">
     48            <div class="wp-block-button">
     49                <a class="wp-block-button__link wp-element-button" href="<?php echo esc_url( $locale_data['localized_core_url'] ); ?>">
     50                    <?php
     51                    // translators: %s is the english variant of the locale name.
     52                    printf( __( 'Download WordPress in %s', 'wporg' ), $locale->english_name );
     53                    ?>
    5154                </a>
    52             </li>
    53 
     55            </div>
    5456            <?php if ( $locale_data['language_pack_url'] ) : ?>
    55                 <li class="button download-button">
    56                     <a href="<?php echo esc_url( $locale_data['language_pack_url'] ); ?>" role="button">
     57                <div class="wp-block-button is-style-outline">
     58                    <a class="wp-block-button__link wp-element-button" href="<?php echo esc_url( $locale_data['language_pack_url'] ); ?>" role="button">
    5759                        <?php
    58                         // translators: %s is the latest version
     60                        // translators: %s is the latest version.
    5961                        printf( __( 'Download language pack (%s)', 'wporg' ), $locale_data['language_pack_version'] );
    6062                        ?>
    6163                    </a>
    62                 </li>
     64                </div>
    6365            <?php endif; ?>
    64         </ul>
     66        </div>
    6567    <?php endif;  ?>
    6668</div>
Note: See TracChangeset for help on using the changeset viewer.