Pledge form: Fix spacing on confirmation email message

This commit is contained in:
Kelly Dwan 2024-09-02 12:09:08 -04:00
parent 39a23ae806
commit fd86d4bbe5
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D

View file

@ -12,6 +12,8 @@ use WP_Post;
*/
?>
<div style="height:0;" aria-hidden="true" class="wp-block-spacer"></div>
<?php if ( true === $email_confirmed ) : ?>
<div class="notice notice-success notice-alt">
@ -56,22 +58,22 @@ use WP_Post;
// There could be other reasons it failed, like an invalid token, but this is the most common reason,
// and the only one that normal users should experience, so we're assuming it in order to provide
// the best UX.
esc_html_e( 'Your confirmation link has expired, please obtain a new one:', 'wporg-5ftf' );
esc_html_e( 'Your confirmation link has expired, please obtain a new one.', 'wporg-5ftf' );
?>
</p>
<form action="" method="get">
<input type="hidden" name="pledge_id" value="<?php echo esc_attr( $pledge_id ); ?>" />
<input type="hidden" name="action" value="resend_pledge_confirmation" />
<p>
<input
type="submit"
class="button"
value="Resend Confirmation"
/>
</p>
</form>
</div>
<form action="" method="get">
<input type="hidden" name="pledge_id" value="<?php echo esc_attr( $pledge_id ); ?>" />
<input type="hidden" name="action" value="resend_pledge_confirmation" />
<p class="wp-block-button is-small">
<input
type="submit"
class="button wp-block-button__link"
value="<?php esc_html_e( 'Resend confirmation', 'wporg-5ftf' ); ?>"
/>
</p>
</form>
<?php endif; ?>