mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-22 11:03:43 +03:00
Pledge Form: Don't show logo upload field in wp-admin
In wp-admin, the logo should be managed with the featured image UI.
This commit is contained in:
parent
f9d4a0bd59
commit
2ec665bcbb
|
@ -19,22 +19,19 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-field form-field__logo">
|
<?php if ( ! is_admin() ) : ?>
|
||||||
|
<div class="form-field form-field__logo">
|
||||||
<label for="5ftf-org-logo">
|
<label for="5ftf-org-logo">
|
||||||
<?php esc_html_e( 'Logo', 'wordpressorg' ); ?>
|
<?php esc_html_e( 'Logo', 'wordpressorg' ); ?>
|
||||||
</label>
|
</label>
|
||||||
<br />
|
<br />
|
||||||
<?php if ( is_admin() && has_post_thumbnail() ) : ?>
|
|
||||||
<div class="form-field__logo-display">
|
|
||||||
<?php the_post_thumbnail(); ?>
|
|
||||||
</div>
|
|
||||||
<?php endif; ?>
|
|
||||||
<input
|
<input
|
||||||
type="file"
|
type="file"
|
||||||
id="5ftf-org-logo"
|
id="5ftf-org-logo"
|
||||||
name="org-logo"
|
name="org-logo"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
<div class="form-field">
|
<div class="form-field">
|
||||||
<label for="5ftf-org-url">
|
<label for="5ftf-org-url">
|
||||||
|
|
Loading…
Reference in a new issue