five-for-the-future/plugins/wporg-5ftf/views/inputs-pledge-org-email.php
Jb Audras 0754ae0b28 Use a unique text-domain, wporg-5ftf (#110)
* Use a unique text-domain, wporg-5ftf

* Fix plugin i18n strings

* Remove unwanted text-domains from WPCS checks and fix missed old text-domains

* Remove type=array from phpcs

* Re-add type=array

* Small WPCS fix

* WPCS: replace  var with
2019-11-23 13:24:37 -05:00

53 lines
1.6 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace WordPressDotOrg\FiveForTheFuture\View;
use WP_Post;
/**
* @var array $data
* @var bool $readonly
* @var WP_Post $pledge
*/
?>
<div class="form-field">
<label for="5ftf-pledge-email">
<?php esc_html_e( 'Administrator Email Address', 'wporg-5ftf' ); ?>
</label>
<input
type="email"
id="5ftf-pledge-email"
name="org-pledge-email"
placeholder="wordpress-contributors@example.com"
value="<?php echo esc_attr( $data['org-pledge-email'] ); ?>"
required
aria-describedby="5ftf-pledge-email-help"
<?php echo $readonly ? 'readonly' : ''; ?>
/>
<p id="5ftf-pledge-email-help">
<?php esc_html_e( 'This address will be used to confirm your organizations contribution profile, and later manage any changes. Please make sure that its a group address (e.g., wp-contributors@example.com) so that it persists across employee transitions.', 'wporg-5ftf' ); ?>
</p>
<?php if ( is_admin() ) : ?>
<?php if ( $data['pledge-email-confirmed'] ) : ?>
<p class="email-status is-confirmed">
<span class="dashicons dashicons-yes-alt" aria-hidden="true"></span>
<?php esc_html_e( 'Confirmed', 'wporg-5ftf' ); ?>
</p>
<?php else : ?>
<p class="email-status is-unconfirmed">
<span class="dashicons dashicons-warning" aria-hidden="true"></span>
<?php esc_html_e( 'Unconfirmed', 'wporg-5ftf' ); ?>
</p>
<?php submit_button(
'Resend Confirmation',
'secondary',
'resend-pledge-confirmation',
false,
array( 'formaction' => add_query_arg( 'resend-pledge-id', $pledge->ID ) )
); ?>
<?php endif; ?>
<?php endif; ?>
</div>