2019-10-04 22:35:02 +03:00
|
|
|
|
<?php
|
|
|
|
|
namespace WordPressDotOrg\FiveForTheFuture\View;
|
|
|
|
|
|
|
|
|
|
/** @var array $data */
|
2019-10-09 01:29:35 +03:00
|
|
|
|
/** @var bool $readonly */
|
2019-10-04 22:35:02 +03:00
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<div class="form-field">
|
2019-10-09 01:29:35 +03:00
|
|
|
|
<label for="5ftf-pledge-email">
|
|
|
|
|
<?php esc_html_e( 'Administrator Email', 'wordpressorg' ); ?>
|
2019-10-04 22:35:02 +03:00
|
|
|
|
</label>
|
|
|
|
|
<input
|
|
|
|
|
type="email"
|
|
|
|
|
id="5ftf-pledge-email"
|
|
|
|
|
name="org-pledge-email"
|
2019-10-09 01:29:35 +03:00
|
|
|
|
value="<?php echo esc_attr( $data['org-pledge-email'] ); ?>"
|
2019-10-04 22:35:02 +03:00
|
|
|
|
required
|
2019-10-09 01:29:35 +03:00
|
|
|
|
aria-describedby="5ftf-pledge-email-help"
|
|
|
|
|
<?php echo $readonly ? 'readonly' : ''; ?>
|
2019-10-04 22:35:02 +03:00
|
|
|
|
/>
|
2019-10-09 01:29:35 +03:00
|
|
|
|
<p id="5ftf-pledge-email-help">
|
|
|
|
|
<?php esc_html_e( 'This email will be used to verify your organization’s contribution profile, and later manage any changes.', 'wordpressorg' ); ?>
|
|
|
|
|
</p>
|
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>
|