PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.1.0
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.1.0
11.1.1 11.1.0 11.0.5 11.0.4 11.0.3 11.0.2 11.0.1 11.0.0 10.11.1 10.11.0 10.10.2 10.10.1 10.10.0 10.9.1 trunk 10.0.0 10.0.1 10.1.0 10.1.1 10.1.2 10.1.3 10.1.4 10.2.0 10.2.1 10.2.2 All 62 releases
← All changes | back/Views/Forms/tmpl/edit_menu.php +7 -12 11.0.2 → 11.1.0 View file →
@@ -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>