flexible-shipping
/
src
/
WPDesk
/
FS
/
TableRate
/
ShippingMethod
/
views
/
method-logo-settings-field.php
method-logo-settings-field.php
45 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @var array $view_data |
| 4 | */ |
| 5 | |
| 6 | ?> |
| 7 | <tr valign="top"> |
| 8 | <th scope="row" class="titledesc"> |
| 9 | <label for="<?php echo esc_attr( $view_data['field_key'] ); ?>"><?php echo esc_html( $view_data['field_title'] ); ?></label> |
| 10 | </th> |
| 11 | <td class="forminp"> |
| 12 | <div class="fs-method-logo-field" data-field-key="<?php echo esc_attr( $view_data['field_key'] ); ?>"> |
| 13 | <input |
| 14 | type="hidden" |
| 15 | name="<?php echo esc_attr( $view_data['field_key'] ); ?>" |
| 16 | id="<?php echo esc_attr( $view_data['field_key'] ); ?>" |
| 17 | value="<?php echo esc_attr( $view_data['attachment_id'] ); ?>" |
| 18 | /> |
| 19 | <div class="fs-method-logo-field__preview" <?php echo '' === $view_data['image_url'] ? 'hidden' : ''; ?>> |
| 20 | <img |
| 21 | class="fs-method-logo-field__image" |
| 22 | src="<?php echo esc_url( $view_data['image_url'] ); ?>" |
| 23 | alt="<?php echo esc_attr( $view_data['image_alt'] ); ?>" |
| 24 | style="max-width:96px;max-height:48px;width:auto;height:auto;" |
| 25 | /> |
| 26 | </div> |
| 27 | <p class="fs-method-logo-field__actions"> |
| 28 | <button type="button" class="button fs-method-logo-field__select"> |
| 29 | <?php echo esc_html( $view_data['select_label'] ); ?> |
| 30 | </button> |
| 31 | <a |
| 32 | href="#" |
| 33 | class="button-link-delete fs-method-logo-field__remove" |
| 34 | <?php echo ! $view_data['is_logo_selected'] ? 'hidden' : ''; ?> |
| 35 | > |
| 36 | <?php echo esc_html( $view_data['remove_label'] ); ?> |
| 37 | </a> |
| 38 | </p> |
| 39 | <?php if ( '' !== $view_data['description'] ) : ?> |
| 40 | <p class="description"><?php echo wp_kses_post( $view_data['description'] ); ?></p> |
| 41 | <?php endif; ?> |
| 42 | </div> |
| 43 | </td> |
| 44 | </tr> |
| 45 |