| @@ -1,7 +1,12 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- View file, its variables are local to the include scope, not true globals. |
| 3 | 3 | defined('ABSPATH') || die('Restricted Access'); |
| 4 | + | |
| 5 | + | |
| 6 | +use AcyMailing\Classes\FormClass; | |
| 7 | + | |
| 8 | +$formClass = new FormClass(); | |
| 4 | 9 | ?> |
| 5 | 10 | <div class="cell grid-x acym__content" id="acym__forms__menu"> |
| 6 | 11 | <div class="cell grid-x acym__forms__menu__switch__container"> |
| 7 | 12 | <div class="cell small-6 acym__forms__menu__switch acym_vcenter align-center" |
| @@ -11,20 +16,10 @@ | ||
| 11 | 16 | @click="changeMenuActive('style')" |
| 12 | 17 | :class="{'acym__forms__menu__switch__active': !isMenuSettingsActive}"><i class="acymicon-edit"></i></div> |
| 13 | 18 | </div> |
| 14 | 19 | <div class="cell grid-x acym__forms__menu__container" v-show="isMenuSettingsActive"> |
| 15 | - <?php foreach ($data['menu_render_settings'] as $options) { ?> | |
| 16 | - <h3 class="cell acym__forms__menu__title acym__title acym__title__tertiary"><?php echo esc_html($options['title']); ?></h3> | |
| 17 | - <?php foreach ($options['render'] as $html) { ?> | |
| 18 | - <div class="cell grid-x acym__forms__menu__options grid-margin-x acym_vcenter"><?php echo $html; ?></div> | |
| 19 | - <?php } ?> | |
| 20 | - <?php } ?> | |
| 20 | + <?php $formClass->prepareMenuHtml($data['form'], 'options'); ?> | |
| 21 | 21 | </div> |
| 22 | 22 | <div class="cell grid-x acym__forms__menu__container" v-show="!isMenuSettingsActive"> |
| 23 | - <?php foreach ($data['menu_render_style'] as $options) { ?> | |
| 24 | - <h3 class="cell acym__forms__menu__title acym__title acym__title__tertiary"><?php echo esc_html($options['title']); ?></h3> | |
| 25 | - <?php foreach ($options['render'] as $html) { ?> | |
| 26 | - <div class="cell grid-x acym__forms__menu__options grid-margin-x acym_vcenter"><?php echo $html; ?></div> | |
| 27 | - <?php } ?> | |
| 28 | - <?php } ?> | |
| 23 | + <?php $formClass->prepareMenuHtml($data['form'], 'styles'); ?> | |
| 29 | 24 | </div> |
| 30 | 25 | </div> |