mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-06 02:45:43 +03:00
Pledge: Update copy for submitted and email confirmed messages
This commit is contained in:
parent
9f47f83ef4
commit
f72ca12716
3 changed files with 51 additions and 27 deletions
|
@ -1,21 +1,41 @@
|
|||
<?php
|
||||
|
||||
namespace WordPressDotOrg\FiveForTheFuture\View;
|
||||
|
||||
/**
|
||||
* @var bool $email_confirmed
|
||||
* @var string $directory_url
|
||||
* @var int $pledge_id
|
||||
*/
|
||||
use WP_Post;
|
||||
|
||||
/**
|
||||
* @var bool $email_confirmed
|
||||
* @var string $directory_url
|
||||
* @var int $pledge_id
|
||||
* @var WP_Post|null $pledge
|
||||
*/
|
||||
?>
|
||||
|
||||
<?php if ( true === $email_confirmed ) : ?>
|
||||
|
||||
<div class="notice notice-success notice-alt">
|
||||
<p>
|
||||
Thank you for confirming your address! We've emailed confirmation links to your contributors, and your pledge will show up in <a href="<?php echo esc_url( $directory_url ); ?>">the directory</a> once one of them confirms their participation.
|
||||
<?php
|
||||
printf(
|
||||
wp_kses_post( __( "Thank you for confirming your address! We've emailed confirmation links to the contributors you mentioned, and your pledge will show up in <a href=\"%s\">the directory</a> once one contributor confirms their participation.", 'wporg' ) ),
|
||||
esc_url( $directory_url )
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
|
||||
<?php if ( $pledge instanceof WP_Post ) : ?>
|
||||
<p>
|
||||
<?php echo wp_kses_post( sprintf(
|
||||
__( 'In the meantime, your pledge will be visible here: %s', 'wporg' ),
|
||||
sprintf(
|
||||
'<a href="%1$s">%1$s</a>',
|
||||
esc_url( get_permalink( $pledge ) )
|
||||
)
|
||||
) ); ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php esc_html_e( "Thanks again for pledging your organization's resources to contribute to WordPress! We can do great things together!", 'wporg' ); ?>
|
||||
</div>
|
||||
|
||||
<?php else : ?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue