| 1 |
<?php |
| 2 |
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- View file, its variables are local to the include scope, not true globals. |
| 3 |
defined('ABSPATH') || die('Restricted Access'); |
| 4 |
$margin = $data['field']->id == $data['languageFieldId'] ? '' : 'margin-top-2'; ?> |
| 5 |
<h2 class="cell acym__title acym__title__secondary <?php echo esc_attr($margin); ?> acym__fields__edit__section__title" id="acym__fields__edit__section__title--style"> |
| 6 |
<?php echo esc_html(acym_translation('ACYM_FIELD_STYLE')); ?> |
| 7 |
</h2> |
| 8 |
|
| 9 |
<label class="cell large-6 acym__fields__change" id="acym__fields__rows"><?php echo esc_html(acym_translation('ACYM_ROWS')); ?> |
| 10 |
<input type="number" |
| 11 |
name="field[option][rows]" |
| 12 |
value="<?php echo empty($data['field']->option->rows) ? '' : esc_attr($data['field']->option->rows); ?>"> |
| 13 |
</label> |
| 14 |
|
| 15 |
<label class="cell large-6 acym__fields__change" id="acym__fields__columns"><?php echo esc_html(acym_translation('ACYM_COLUMNS')); ?> |
| 16 |
<input type="number" |
| 17 |
name="field[option][columns]" |
| 18 |
value="<?php echo empty($data['field']->option->columns) ? '' : esc_attr($data['field']->option->columns); ?>"> |
| 19 |
</label> |
| 20 |
|
| 21 |
<label class="cell large-6 acym__fields__change grid-x" id="acym__fields__size"> |
| 22 |
<span class="cell"><?php echo esc_html(acym_translation('ACYM_INPUT_WIDTH')); ?></span> |
| 23 |
<input type="number" |
| 24 |
name="field[option][size]" |
| 25 |
value="<?php echo empty($data['field']->option->size) ? '' : esc_attr($data['field']->option->size); ?>" |
| 26 |
class="cell medium-4"> |
| 27 |
</label> |
| 28 |
|