2019-10-04 22:35:02 +03:00
< ? php
2019-10-24 17:55:45 +03:00
namespace WordPressDotOrg\FiveForTheFuture\View ;
2019-10-30 01:37:14 +02:00
use WP_Post ;
2024-08-28 04:25:50 +03:00
use function WordPressDotOrg\FiveForTheFuture\get_views_path ;
2019-10-04 22:35:02 +03:00
2019-10-24 17:23:17 +03:00
/**
2019-10-30 01:37:14 +02:00
* @ var array $messages
* @ var bool $complete
* @ var string $directory_url
2019-10-24 17:23:17 +03:00
*/
2019-11-07 23:43:09 +02:00
require __DIR__ . '/partial-result-messages.php' ;
2019-10-04 22:35:02 +03:00
?>
2019-10-25 07:04:44 +03:00
<!-- TODO Reveal this once managing an existing pledge is actually possible .
2019-10-04 22:35:02 +03:00
< p >
< a href = " # " > Manage an existing pledge </ a >
</ p >
2019-10-25 07:04:44 +03:00
-->
2019-10-04 22:35:02 +03:00
< ? php if ( true === $complete ) : ?>
2019-11-07 23:43:09 +02:00
< div id = " form-messages " class = " notice notice-success notice-alt " >
2019-10-30 01:37:14 +02:00
< p >
2019-11-23 20:24:37 +02:00
< ? php esc_html_e ( " Thanks for pledging to Five for the Future! Your new pledge profile has been created, and we've emailed you a link to confirm your address. Once that's done, we'll also email confirmation links to the contributors you named in your pledge. " , 'wporg-5ftf' ); ?>
2019-10-30 01:37:14 +02:00
</ p >
2019-10-09 01:29:35 +03:00
2019-10-24 17:23:17 +03:00
< p >
< ? php echo wp_kses_post ( sprintf (
2019-11-23 20:24:37 +02:00
__ ( " After those steps are completed (and at least one contributor confirms), your pledge will appear in <a href= \" %s \" >the directory</a>. Once each contributor has confirmed, they'll appear on your pledge as well. " , 'wporg-5ftf' ),
2019-10-24 17:23:17 +03:00
esc_url ( $directory_url )
) ); ?>
</ p >
2019-10-09 01:29:35 +03:00
2019-10-24 17:23:17 +03:00
< p >
< ? php echo wp_kses_post (
2019-10-30 01:37:14 +02:00
sprintf (
2019-11-23 20:24:37 +02:00
__ ( 'Do you want to hire additional employees to contribute to WordPress? <a href="%s">Consider posting a job listing on jobs.wordpress.net</a>.' , 'wporg-5ftf' ),
2019-10-30 01:37:14 +02:00
'https://jobs.wordpress.net'
)
2019-10-24 17:23:17 +03:00
); ?>
</ p >
2019-10-04 22:35:02 +03:00
</ div >
< ? php else : ?>
2019-11-07 23:43:09 +02:00
< form class = " pledge-form " id = " 5ftf-form-pledge-new " action = " #form-messages " method = " post " enctype = " multipart/form-data " >
2019-10-04 22:35:02 +03:00
< ? php
require get_views_path () . 'inputs-pledge-org-info.php' ;
require get_views_path () . 'inputs-pledge-contributors.php' ;
2019-10-09 01:29:35 +03:00
require get_views_path () . 'inputs-pledge-org-email.php' ;
2019-10-04 22:35:02 +03:00
require get_views_path () . 'inputs-pledge-new-misc.php' ;
?>
2024-08-28 04:25:50 +03:00
< div class = " wp-block-button " >
2019-10-09 01:29:35 +03:00
< input
type = " submit "
2024-08-28 04:25:50 +03:00
class = " button wp-block-button__link "
2019-10-09 01:29:35 +03:00
id = " 5ftf-pledge-submit "
name = " action "
2019-11-23 20:24:37 +02:00
value = " <?php esc_attr_e( 'Submit Pledge', 'wporg-5ftf' ); ?> "
2019-10-09 01:29:35 +03:00
/>
2019-10-04 22:35:02 +03:00
</ div >
</ form >
< ? php endif ; ?>