Making WordPress.org


Ignore:
Timestamp:
02/12/2018 05:39:54 PM (8 years ago)
Author:
iandunn
Message:

WordCamp Payments: Add CSS notice classes to success/error messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/sponsor-payment/main.php

    r6067 r6603  
    1212        <?php if ( ! empty( $data['errors'] ) ) : ?>
    1313            <?php foreach ( $data['errors'] as $error ) : ?>
    14                 <p><strong><?php esc_html_e( 'Error:', 'wordcamporg' ); ?></strong> <?php echo esc_html( $error ); ?></p>
     14                <p class="notice notice-error">
     15                    <strong><?php esc_html_e( 'Error:', 'wordcamporg' ); ?></strong>
     16                    <?php echo esc_html( $error ); ?>
     17                </p>
    1518            <?php endforeach; ?>
    1619        <?php endif; ?>
     
    109112        <?php elseif ( $data['step'] == STEP_PAYMENT_SUCCESS ) : ?>
    110113
    111             <p><strong><?php esc_html_e( 'Success!', 'wordcamporg' ); ?></strong> <?php esc_html_e( 'Your payment has been received, thank you!', 'wordcamporg' ); ?></p>
     114            <p class="notice notice-success">
     115                <strong><?php esc_html_e( 'Success!', 'wordcamporg' ); ?></strong>
     116                <?php esc_html_e( 'Your payment has been received, thank you!', 'wordcamporg' ); ?>
     117            </p>
    112118
    113119            <ul>
Note: See TracChangeset for help on using the changeset viewer.