2019-10-04 22:35:02 +03:00
|
|
|
<?php
|
|
|
|
namespace WordPressDotOrg\FiveForTheFuture\View;
|
|
|
|
|
|
|
|
/** @var array $data */
|
2019-10-08 20:12:11 +03:00
|
|
|
/** @var bool $readonly */
|
2019-10-04 22:35:02 +03:00
|
|
|
?>
|
|
|
|
|
|
|
|
<div class="form-field">
|
|
|
|
<label for="5ftf-pledge-email" class="screen-reader-text">
|
|
|
|
<?php esc_html_e( 'Email', 'wordpressorg' ); ?>
|
|
|
|
</label>
|
|
|
|
<input
|
|
|
|
type="email"
|
|
|
|
class="large-text"
|
|
|
|
id="5ftf-pledge-email"
|
|
|
|
name="org-pledge-email"
|
|
|
|
value="<?php echo esc_attr( $data['pledge-email'] ); ?>"
|
|
|
|
required
|
2019-10-08 20:12:11 +03:00
|
|
|
<?php echo $readonly ? 'readonly' : ''; ?>
|
2019-10-04 22:35:02 +03:00
|
|
|
/>
|
|
|
|
|
|
|
|
<?php if ( is_admin() ) : ?>
|
|
|
|
<?php if ( $data['pledge-email-confirmed'] ) : ?>
|
|
|
|
<span class="dashicons dashicons-yes-alt" aria-hidden="true"></span>
|
|
|
|
<?php esc_html_e( 'Confirmed', 'wporg' ); ?>
|
|
|
|
<?php else : ?>
|
|
|
|
<span class="dashicons dashicons-warning" aria-hidden="true"></span>
|
|
|
|
<?php esc_html_e( 'Unconfirmed', 'wporg' ); ?>
|
|
|
|
<button class="button-secondary">
|
|
|
|
<?php esc_html_e( 'Resend confirmation', 'wporg' ); ?>
|
|
|
|
</button>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|