| 1 |
<?php $this->layout('partials/fields/wrapper', ['field' => $field, 'lang' => $lang ?? false]) ?> |
| 2 |
|
| 3 |
<?php $this->start('input') ?> |
| 4 |
|
| 5 |
<button type="button" class="button button--link">Select link</button> |
| 6 |
<?php if ($data[$name] ?? false) : ?> |
| 7 |
<button type="button" class="button button--remove">Remove link</button> |
| 8 |
<?php endif; ?> |
| 9 |
<input type="hidden" name="<?php echo esc_attr($this->form_key($field_prefix . '.' . $name)) ?>" value="<?php echo esc_attr($data[$name] ?? $field['default'] ?? '') ?>" /> |
| 10 |
|
| 11 |
<?php if ($data[$name] ?? false) : ?> |
| 12 |
<span class="link-display"><?php echo esc_html($data[$name]) ?></span> |
| 13 |
<?php endif; ?> |
| 14 |
|
| 15 |
<?php $this->stop(); ?> |
| 16 |
|