mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-04 02:01:18 +03:00
34 lines
950 B
PHP
34 lines
950 B
PHP
<?php
|
|
namespace WordPressDotOrg\FiveForTheFuture\View;
|
|
|
|
/** @var array $data */
|
|
/** @var bool $readonly */
|
|
?>
|
|
|
|
<div class="form-field">
|
|
<label for="5ftf-pledge-email">
|
|
<?php esc_html_e( 'Contact Email', 'wordpressorg' ); ?>
|
|
</label>
|
|
<input
|
|
type="email"
|
|
class="large-text"
|
|
id="5ftf-pledge-email"
|
|
name="org-pledge-email"
|
|
value="<?php echo esc_attr( $data['org-pledge-email'] ); ?>"
|
|
required
|
|
<?php echo $readonly ? 'readonly' : ''; ?>
|
|
/>
|
|
|
|
<?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>
|