Making WordPress.org

Changeset 13676


Ignore:
Timestamp:
05/08/2024 06:19:17 AM (2 years ago)
Author:
dufresnesteven
Message:

wporg-plugins-2024: Update the commercial save and toggle buttons.

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

    r13661 r13676  
    473473        echo '<span class="help">' . esc_attr__( 'Optional. The URL for plugin support, other than its support forum on wordpress.org.', 'wporg-plugins' ) . '</span>';
    474474        echo '</p>';
    475         echo '<p>';
    476         echo '<button class="button button-secondary" type="submit">' . esc_attr__( 'Save', 'wporg-plugins' ) . '</button>';
     475        echo '<p class="wp-block-button is-small">';
     476        echo '<button class="wp-block-button__link" type="submit">' . esc_attr__( 'Save', 'wporg-plugins' ) . '</button>';
    477477        echo '<span class="success-msg">' . __( 'Saved!', 'wporg-plugins' ) . '</span>';
    478478        echo '</p>';
    … …  
    639639                echo '<form method="POST" action="' . esc_url( $toggle_link ) . '" onsubmit="return confirm( jQuery(this).prev(\'.notice\').text() );">';
    640640                // Translators: %s is the plugin name, as defined by the plugin itself.
    641                 echo '<p><input class="button" type="submit" value="' . esc_attr( sprintf( __( 'Please toggle the Live Preview link for %s', 'wporg-plugins' ), get_the_title() ) ) . '" /></p>';
     641                echo '<p class="wp-block-button is-small"><input class="wp-block-button__link" type="submit" value="' . esc_attr( sprintf( __( 'Please toggle the Live Preview link for %s', 'wporg-plugins' ), get_the_title() ) ) . '" /></p>';
    642642                echo '</form>';
    643643        }
Note: See TracChangeset for help on using the changeset viewer.