mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-16 23:25:44 +03:00
Refine pledge meta config and metaboxes
This commit is contained in:
parent
9ccf13b9de
commit
80aca01533
5 changed files with 129 additions and 37 deletions
30
plugins/wporg-5ftf/views/metabox-pledge-email.php
Normal file
30
plugins/wporg-5ftf/views/metabox-pledge-email.php
Normal file
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
/** @var bool $editable */
|
||||
/** @var string $email */
|
||||
/** @var bool $confirmed */
|
||||
?>
|
||||
|
||||
<label for="5ftf-pledge-email" class="screen-reader-text">
|
||||
<?php esc_html_e( 'Email', 'wordpressorg' ); ?>
|
||||
</label>
|
||||
|
||||
<input
|
||||
type="text"
|
||||
class="regular-text"
|
||||
id="5ftf-pledge-email"
|
||||
name="org-pledge-email"
|
||||
value="<?php echo esc_attr( $data['pledge-email'] ); ?>"
|
||||
required
|
||||
<?php echo ( $editable ) ? '' : 'readonly'; ?>
|
||||
/>
|
||||
|
||||
<?php if ( $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; ?>
|
Loading…
Add table
Add a link
Reference in a new issue