2019-10-04 22:35:02 +03:00
< ? php
2019-10-24 17:55:45 +03:00
namespace WordPressDotOrg\FiveForTheFuture\View ;
2019-10-04 22:35:02 +03:00
use function WordPressDotOrg\FiveForTheFuture\get_views_path ;
2019-10-24 17:23:17 +03:00
/**
* @ var array $messages
* @ var bool $complete
* @ var string $directory_url
*/
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 ( ! empty ( $messages ) ) : ?>
2019-10-09 01:29:35 +03:00
< div class = " notice notice-error notice-alt " >
2019-10-04 22:35:02 +03:00
< ? php foreach ( $messages as $message ) : ?>
2019-10-09 01:29:35 +03:00
< p >< ? php echo wp_kses_post ( $message ); ?> </p>
2019-10-04 22:35:02 +03:00
< ? php endforeach ; ?>
2019-10-09 01:29:35 +03:00
</ div >
2019-10-04 22:35:02 +03:00
< ? php endif ; ?>
< ? php if ( true === $complete ) : ?>
2019-10-09 01:29:35 +03:00
< div class = " notice notice-success notice-alt " >
2019-10-24 17:23:17 +03:00
< p >< ? 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. Your contributors have also been emailed a link to confirm their participation with your organization.' , 'wporg' ); ?> </p>
2019-10-09 01:29:35 +03:00
2019-10-24 17:23:17 +03:00
< p >
< ? php echo wp_kses_post ( sprintf (
__ ( 'After those steps are completed, your pledge will appear in <a href="%s">the directory</a>.' , 'wporg' ),
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 (
__ ( 'Do you want to hire additional employees to contribute to WordPress? <a href="https://jobs.wordpress.net">Post a job listing on jobs.wordpress.net</a>.' , 'wporg' )
); ?>
</ p >
2019-10-04 22:35:02 +03:00
</ div >
< ? php else : ?>
2019-10-09 01:29:35 +03:00
< form class = " pledge-form " id = " 5ftf-form-pledge-new " action = " " method = " post " >
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' ;
?>
< div >
2019-10-09 01:29:35 +03:00
< input
type = " submit "
id = " 5ftf-pledge-submit "
name = " action "
value = " <?php esc_attr_e( 'Submit Pledge', 'wporg' ); ?> "
/>
2019-10-04 22:35:02 +03:00
</ div >
</ form >
< ? php endif ; ?>