Enable Manage Form functionality

This commit is contained in:
Kelly Dwan 2019-11-21 18:36:54 -05:00
parent 60fd0d2fb3
commit 8b4d55782d
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D
4 changed files with 152 additions and 63 deletions

View file

@ -1,8 +1,13 @@
<?php
namespace WordPressDotOrg\FiveForTheFuture\View;
/** @var array $data */
/** @var bool $readonly */
/**
* @var array $data
* @var int $pledge_id
* @var bool $readonly
*/
?>
<div class="form-field">
@ -20,6 +25,11 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
</div>
<?php if ( ! is_admin() ) : ?>
<?php if ( has_post_thumbnail( $pledge_id ) ) : ?>
<div class="form-field form-field__logo-display">
<?php echo get_the_post_thumbnail( $pledge_id, 'pledge-logo' ); ?>
</div>
<?php endif; ?>
<div class="form-field form-field__logo">
<label for="5ftf-org-logo">
<?php esc_html_e( 'Logo', 'wporg-5ftf' ); ?>