2019-10-04 22:35:02 +03:00
|
|
|
<?php
|
|
|
|
namespace WordPressDotOrg\FiveForTheFuture\View;
|
|
|
|
|
|
|
|
/** @var array $data */
|
2019-10-09 01:29:35 +03:00
|
|
|
/** @var bool $readonly */
|
2019-10-04 22:35:02 +03:00
|
|
|
?>
|
|
|
|
|
|
|
|
<div class="form-field">
|
|
|
|
<label for="5ftf-org-name">
|
|
|
|
<?php esc_html_e( 'Organization Name', 'wordpressorg' ); ?>
|
|
|
|
</label>
|
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
id="5ftf-org-name"
|
|
|
|
name="org-name"
|
|
|
|
value="<?php echo esc_attr( $data['org-name'] ); ?>"
|
|
|
|
required
|
2019-10-09 01:29:35 +03:00
|
|
|
<?php echo $readonly ? 'readonly' : ''; ?>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-field form-field__logo">
|
|
|
|
<label for="5ftf-org-logo">
|
|
|
|
<?php esc_html_e( 'Logo', 'wordpressorg' ); ?>
|
|
|
|
</label>
|
|
|
|
<br />
|
2019-10-28 17:47:56 +02:00
|
|
|
<?php if ( is_admin() && has_post_thumbnail() ) : ?>
|
|
|
|
<div class="form-field__logo-display">
|
|
|
|
<?php the_post_thumbnail(); ?>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
2019-10-09 01:29:35 +03:00
|
|
|
<input
|
|
|
|
type="file"
|
|
|
|
id="5ftf-org-logo"
|
|
|
|
name="org-logo"
|
2019-10-04 22:35:02 +03:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-field">
|
|
|
|
<label for="5ftf-org-url">
|
|
|
|
<?php esc_html_e( 'Website Address', 'wordpressorg' ); ?>
|
|
|
|
</label>
|
|
|
|
<input
|
|
|
|
type="url"
|
|
|
|
id="5ftf-org-url"
|
|
|
|
name="org-url"
|
|
|
|
value="<?php echo esc_attr( $data['org-url'] ); ?>"
|
|
|
|
required
|
2019-10-09 01:29:35 +03:00
|
|
|
<?php echo $readonly ? 'readonly' : ''; ?>
|
2019-10-04 22:35:02 +03:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-field">
|
|
|
|
<label for="5ftf-org-description">
|
2019-10-09 01:29:35 +03:00
|
|
|
<?php esc_html_e( 'Organization Blurb', 'wordpressorg' ); ?>
|
2019-10-04 22:35:02 +03:00
|
|
|
</label>
|
|
|
|
<textarea
|
|
|
|
id="5ftf-org-description"
|
|
|
|
name="org-description"
|
2019-10-09 01:29:35 +03:00
|
|
|
rows="5"
|
|
|
|
required
|
|
|
|
<?php echo $readonly ? 'readonly' : ''; ?>
|
|
|
|
><?php /* phpcs:ignore -- php tags should be on the same line as textarea to prevent extra whitespace */
|
|
|
|
echo esc_html( $data['org-description'] );
|
|
|
|
/* phpcs:ignore */ ?></textarea>
|
|
|
|
</div>
|