Making WordPress.org


Ignore:
Timestamp:
05/03/2024 03:39:01 AM (2 years ago)
Author:
dufresnesteven
Message:

wporg-plugins-2024: Update advanced view to use new button styles.

See: https://github.com/WordPress/wordpress.org/issues/274

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/inc/template-tags.php

    r13643 r13661  
    550550    $close_button_text = sprintf( __( 'I understand, please close %s.', 'wporg-plugins' ), get_the_title() );
    551551    ?>
    552     <button class="show-dialog button" onclick="this.nextElementSibling.showModal()"><?php echo $close_button_text; ?></button>
     552    <div class="wp-block-button is-small"><button class="show-dialog wp-block-button__link" onclick="this.parentNode.nextElementSibling.showModal()"><?php echo $close_button_text; ?></button></div>
    553553    <dialog>
    554554        <a onclick="this.parentNode.close()" class="close dashicons dashicons-no-alt"></a>
     
    593593            <p>
    594594                <?php printf( __( 'If you have any questions, please contact <a href="mailto:%1$s">%1$s</a> before proceeding with a link to your plugin and your questions.', 'wporg-plugins' ), 'plugins@wordpress.org' ); ?>
    595             <p>
    596                 <input class="button" type="submit" value="<?php echo esc_attr( $close_button_text ); ?>" />
     595            <p class="wp-block-button is-small">
     596                <input class="wp-block-button__link" type="submit" value="<?php echo esc_attr( $close_button_text ); ?>" />
    597597            </p>
    598598        </form>
     
    696696    echo '</select></p>';
    697697    // Translators: %s is the plugin name, as defined by the plugin itself.
    698     echo '<p><input class="button" type="submit" value="' . esc_attr( sprintf( __( 'Please transfer %s.', 'wporg-plugins' ), get_the_title() ) ) . '" /></p>';
     698    echo '<p class="wp-block-button is-small"><input class="wp-block-button__link" type="submit" value="' . esc_attr( sprintf( __( 'Please transfer %s.', 'wporg-plugins' ), get_the_title() ) ) . '" /></p>';
    699699    echo '</form>';
    700700
     
    729729
    730730        echo '<form method="POST" action="' . esc_url( Template::get_enable_release_confirmation_link() ) . '" onsubmit="return confirm( jQuery(this).prev(\'.notice\').text() );">';
    731         echo '<p><input class="button" type="submit" value="' . esc_attr__( 'I understand, please enable release confirmations.', 'wporg-plugins' ) . '" /></p>';
     731        echo '<p class="wp-block-button is-small"><input class="wp-block-button__link" type="submit" value="' . esc_attr__( 'I understand, please enable release confirmations.', 'wporg-plugins' ) . '" /></p>';
    732732        echo '</form>';
    733733
Note: See TracChangeset for help on using the changeset viewer.