mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-06 10:45:44 +03:00
Enable Manage Form functionality
This commit is contained in:
parent
60fd0d2fb3
commit
8b4d55782d
4 changed files with 152 additions and 63 deletions
|
@ -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' ); ?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue