Load image into media library, attach to the submitted pledge as a featured image.

This commit is contained in:
Kelly Dwan 2019-10-11 12:07:28 -04:00
parent b3ea42b84d
commit 1094dc3e89
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D
2 changed files with 26 additions and 1 deletions

View file

@ -24,7 +24,11 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
<?php esc_html_e( 'Logo', 'wordpressorg' ); ?>
</label>
<br />
<?php /* @todo Display existing logo here */ ?>
<?php if ( is_admin() && has_post_thumbnail() ) : ?>
<div class="form-field__logo-display">
<?php the_post_thumbnail(); ?>
</div>
<?php endif; ?>
<input
type="file"
id="5ftf-org-logo"