# learnpress/4.1.7/inc/admin/meta-box/fields/image.php

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.1.7. 29 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.1.7/code/inc/admin/meta-box/fields/image.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.1.7/raw/inc/admin/meta-box/fields/image.php
- Modified: 2022-09-13T03:07:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/learnpress/4.1.7/code/inc/admin/meta-box/fields/image.php#L10-L20`.

```php
<?php $option_value = $value['value']; ?>

<tr valign="top">
	<th scope="row" class="titledesc">
		<label for="<?php echo esc_attr( $value['id'] ); ?>">
			<?php echo wp_kses_post( $value['title'] ); ?>
			<?php echo wp_kses_post( $tooltip_html ); ?>
		</label>
	</th>
	<td class="forminp lp-metabox-field__image forminp-<?php echo esc_attr( sanitize_title( $value['type'] ) ); ?>">&lrm;
		<div class="lp-metabox-field__image--image">
			<div>
				<?php if ( ! empty( $option_value ) ) : ?>
					<div class="lp-metabox-field__image--inner">
						<?php echo wp_get_attachment_image( $option_value, 'thumbnail' ); ?>
					</div>
				<?php endif; ?>
			</div>
		</div>

		<input type="hidden" class="lp-metabox-field__image--id" name="<?php echo esc_attr( $value['id'] ); ?>" value="<?php echo esc_attr( $option_value ); ?>" />

		<p class="lp-metabox-field__image--upload hide-if-no-js">
			<a href="#" class="lp-metabox-field__image--add button" data-choose="<?php esc_attr_e( 'Select images', 'learnpress' ); ?>" data-update="<?php esc_attr_e( 'Select', 'learnpress' ); ?>"><?php esc_html_e( 'Upload', 'learnpress' ); ?></a>
			<a href="#" class="lp-metabox-field__image--delete button" style="display: none;"><?php esc_html_e( 'Delete', 'learnpress' ); ?></a>
		</p>
	</td>
</tr>

```
