2019-10-04 22:35:02 +03:00
< ? php
2019-10-27 07:18:28 +02:00
2019-10-04 22:35:02 +03:00
namespace WordPressDotOrg\FiveForTheFuture\View ;
2019-10-27 07:18:28 +02:00
use WP_Post ;
/**
* @ var array $data
* @ var bool $readonly
* @ var WP_Post $pledge
*/
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 " >
2019-11-23 20:24:37 +02:00
< ? php esc_html_e ( 'Administrator Email Address' , 'wporg-5ftf' ); ?>
2019-10-04 22:35:02 +03:00
</ label >
< input
type = " email "
id = " 5ftf-pledge-email "
name = " org-pledge-email "
2019-11-02 15:13:25 +02:00
placeholder = " wordpress-contributors@example.com "
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-11-26 22:37:19 +02:00
< div id = " 5ftf-pledge-email-help " >
< p >
< ? php esc_html_e ( 'This address will be used to confirm your organization’ s contribution profile, and later manage any changes. Please make sure that it’ s a group address (e.g., wp-contributors@example.com) so that it persists across employee transitions.' , 'wporg-5ftf' ); ?>
</ p >
< ? php if ( ! empty ( $data [ 'org-pledge-email' ] ) ) : ?>
< p >
< ? php esc_html_e ( 'If you change this email, you will need to confirm the new email. Your pledge will be unpublished until the new email is confirmed.' , 'wporg-5ftf' ); ?>
</ p >
< ? php endif ; ?>
</ div >
2019-10-04 22:35:02 +03:00
< ? php if ( is_admin () ) : ?>
< ? php if ( $data [ 'pledge-email-confirmed' ] ) : ?>
2019-11-20 18:01:00 +02:00
< p class = " email-status is-confirmed " >
< span class = " dashicons dashicons-yes-alt " aria - hidden = " true " ></ span >
2019-11-23 20:24:37 +02:00
< ? php esc_html_e ( 'Confirmed' , 'wporg-5ftf' ); ?>
2019-11-20 18:01:00 +02:00
</ p >
2019-10-04 22:35:02 +03:00
< ? php else : ?>
2019-11-20 18:01:00 +02:00
< p class = " email-status is-unconfirmed " >
< span class = " dashicons dashicons-warning " aria - hidden = " true " ></ span >
2019-11-23 20:24:37 +02:00
< ? php esc_html_e ( 'Unconfirmed' , 'wporg-5ftf' ); ?>
2019-11-20 18:01:00 +02:00
</ p >
2019-10-27 07:18:28 +02:00
< ? php submit_button (
'Resend Confirmation' ,
'secondary' ,
'resend-pledge-confirmation' ,
false ,
array ( 'formaction' => add_query_arg ( 'resend-pledge-id' , $pledge -> ID ) )
); ?>
2019-10-04 22:35:02 +03:00
< ? php endif ; ?>
< ? php endif ; ?>
</ div >