2019-10-04 22:35:02 +03:00
|
|
|
<?php
|
|
|
|
namespace WordPressDotOrg\FiveForTheFuture\View;
|
|
|
|
|
|
|
|
use function WordPressDotOrg\FiveForTheFuture\get_views_path;
|
|
|
|
|
|
|
|
/** @var array $messages */
|
|
|
|
/** @var bool $complete */
|
|
|
|
?>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<a href="#">Manage an existing pledge</a>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<?php if ( ! empty( $messages ) ) : ?>
|
|
|
|
|
|
|
|
<?php foreach ( $messages as $message ) : ?>
|
|
|
|
<div class="notice notice-error">
|
2019-10-08 23:41:59 +03:00
|
|
|
<?php echo wp_kses_post( $message ); ?>
|
2019-10-04 22:35:02 +03:00
|
|
|
</div>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<?php if ( true === $complete ) : ?>
|
|
|
|
|
|
|
|
<div class="notice notice-info">
|
2019-10-08 23:41:59 +03:00
|
|
|
<?php esc_html_e( 'Thank you for your submission. You will receive an email confirmation.', 'wporg' ); ?>
|
2019-10-04 22:35:02 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php else : ?>
|
|
|
|
|
2019-10-08 23:41:59 +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-08 23:41:59 +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-08 23:41:59 +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; ?>
|