| @@ -1,0 +1,19 @@ | ||
| 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 | +$widthUnit = 'px'; | |
| 5 | +$heightUnit = 'px'; | |
| 6 | + | |
| 7 | +if (!empty($option['units'][$form->type])) { | |
| 8 | + $widthUnit = $option['units'][$form->type]['width']; | |
| 9 | + $heightUnit = $option['units'][$form->type]['height']; | |
| 10 | +} | |
| 11 | +?> | |
| 12 | + | |
| 13 | +<div class="cell grid-x acym_vcenter"> | |
| 14 | + <input type="number" class="cell medium-3" v-model="<?php echo esc_attr($vModel); ?>.width"> | |
| 15 | + <span class="cell shrink acym__forms__menu__options__style__size__default"><?php echo esc_html($widthUnit); ?></span> | |
| 16 | + <span class="cell shrink margin-1">x</span> | |
| 17 | + <input type="number" class="cell medium-3" v-model="<?php echo esc_attr($vModel); ?>.height"> | |
| 18 | + <span class="cell shrink acym__forms__menu__options__style__size__default"><?php echo esc_html($heightUnit); ?></span> | |
| 19 | +</div> | |