PluginProbe
Float menu – awesome floating side menu / 7.0.4
Float menu – awesome floating side menu v7.0.4
7.2.5 trunk 2.1 2.2 3.0.1 3.1 3.2.2 3.3.1 3.5 3.5.1 3.5.2 3.5.3. 3.5.4 4.0 4.1 4.1.1 4.2 4.3 4.3.1 4.3.2 5.0 5.0.1 5.0.2 5.0.3 5.1 All 57 releases
float-menu / admin / settings / 1.menu.php

1.menu.php in Float menu – awesome floating side menu 7.0.4, at admin/settings/1.menu.php

212 lines 9.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Page Name: Menu
4 */
5
6 use FloatMenuLite\Admin\CreateFields;
7
8 defined( 'ABSPATH' ) || exit;
9
10 $page_opt = include( 'options/menu.php' );
11
12 $field = new CreateFields( $options, $page_opt );
13
14 $count = ( ! empty( $options['menu_1']['item_type'] ) ) ? count( $options['menu_1']['item_type'] ) : '0';
15 ?>
16 <div class="wpie-items__list" id="wpie-items-list">
17 <?php if ( $count > 0 ) :
18 for ( $i = 0; $i < $count; $i ++ ):
19 $order = $i + 1;
20 $item_order = ! empty( $options['item_order'][ $i ] ) ? 1 : 0;
21 $open = ! empty( $item_order ) ? ' open' : '';
22 $item_parent = $options['menu_1']['item_sub'][ $i ] ?? 0;
23 $item_class = '';
24 if ( absint( $item_parent ) === 1 ) {
25 $item_class = ' shifted-right';
26 }
27 ?>
28 <details
29 class="wpie-item menu-item<?php echo esc_attr( $item_class ); ?>"<?php echo esc_attr( $open ); ?>>
30 <input type="hidden" name="param[item_order][]" class="wpie-item__toggle"
31 value="<?php echo absint( $item_order ); ?>">
32 <input type="hidden" name="param[menu_1][item_sub][]" class="wpie-item__parent"
33 value="<?php echo absint( $item_parent ); ?>">
34 <summary class="wpie-item_heading">
35 <span class="wpie-item_heading_icon"></span>
36 <span class="wpie-item_heading_label"></span>
37 <span class="wpie-item_heading_type"></span>
38 <span class="wpie-icon wpie_icon-copy"></span>
39 <span class="wpie-icon wpie_icon-chevron-expand-y"></span>
40 <span class="wpie-icon wpie_icon-trash"></span>
41 <span class="wpie-item_heading_toogle">
42 <span class="wpie-icon wpie_icon-chevron-down"></span>
43 <span class="wpie-icon wpie_icon-chevron-up "></span>
44 </span>
45 </summary>
46 <div class="wpie-item_content">
47
48 <div class="wpie-fieldset">
49 <div class="wpie-fields">
50 <?php $field->create( 'menu_1-item_tooltip', $i ); ?>
51 </div>
52 </div>
53
54 <div class="wpie-tabs-wrapper">
55
56 <div class="wpie-tabs-link">
57 <a class="wpie-tab__link is-active"><?php esc_html_e( 'Type', 'float-menu' ); ?></a>
58 <a class="wpie-tab__link"><?php esc_html_e( 'Icon', 'float-menu' ); ?></a>
59 <a class="wpie-tab__link"><?php esc_html_e( 'Style', 'float-menu' ); ?></a>
60 <a class="wpie-tab__link"><?php esc_html_e( 'Attributes', 'float-menu' ); ?></a>
61 </div>
62
63 <div class="wpie-tab-settings is-active">
64 <div class="wpie-fieldset">
65 <div class="wpie-fields">
66 <?php $field->create( 'menu_1-item_type', $i ); ?>
67 <?php $field->create( 'menu_1-item_link', $i ); ?>
68 <?php $field->create( 'menu_1-new_tab', $i ); ?>
69 </div>
70 </div>
71
72
73 </div>
74
75 <div class="wpie-tab-settings">
76 <div class="wpie-fieldset">
77 <div class="wpie-fields">
78 <?php $field->create( 'menu_1-icon_type', $i ); ?>
79 <?php $field->create( 'menu_1-item_icon', $i ); ?>
80 <?php $field->create( 'menu_1-item_custom_text', $i ); ?>
81 </div>
82 </div>
83 </div>
84
85 <div class="wpie-tab-settings">
86
87 <div class="wpie-fieldset">
88 <div class="wpie-fields">
89 <?php $field->create( 'menu_1-color', $i ); ?>
90 <?php $field->create( 'menu_1-hcolor', $i ); ?>
91 <?php $field->create( 'menu_1-bcolor', $i ); ?>
92 <?php $field->create( 'menu_1-hbcolor', $i ); ?>
93 </div>
94 </div>
95 </div>
96
97 <div class="wpie-tab-settings">
98 <div class="wpie-fieldset">
99 <div class="wpie-legend"><?php esc_html_e( 'Attributes', 'float-menu' ); ?></div>
100 <div class="wpie-fields">
101 <?php $field->create( 'menu_1-button_id', $i ); ?>
102 <?php $field->create( 'menu_1-button_class', $i ); ?>
103 <?php $field->create( 'menu_1-link_rel', $i ); ?>
104 <?php $field->create( 'menu_1-aria_label', $i ); ?>
105 </div>
106 </div>
107 </div>
108
109
110 </div>
111
112
113 </div>
114 </details>
115 <?php endfor; endif; ?>
116
117 <hr class="wpie-buttons__hr">
118 <div class="wpie-fields">
119 <button class="button button-primary wpie-add-button"
120 type="button"><?php esc_html_e( 'Add Button', 'float-menu' ); ?></button>
121 </div>
122
123 </div>
124
125
126 <template id="template-button">
127 <details class="wpie-item" open>
128 <input type="hidden" name="param[item_order][]" class="wpie-item__toggle" value="1">
129 <input type="hidden" name="param[menu_1][item_sub][]" class="wpie-item__parent"
130 value="0">
131 <summary class="wpie-item_heading">
132 <span class="wpie-item_heading_icon"></span>
133 <span class="wpie-item_heading_label"></span>
134 <span class="wpie-item_heading_type"></span>
135 <span class="wpie-icon wpie_icon-copy"></span>
136 <span class="wpie-icon wpie_icon-chevron-expand-y"></span>
137 <span class="wpie-icon wpie_icon-trash"></span>
138 <span class="wpie-item_heading_toogle">
139 <span class="wpie-icon wpie_icon-chevron-down"></span>
140 <span class="wpie-icon wpie_icon-chevron-up "></span>
141 </span>
142 </summary>
143 <div class="wpie-item_content">
144
145 <div class="wpie-fieldset">
146 <div class="wpie-fields">
147 <?php $field->create( 'menu_1-item_tooltip', - 1 ); ?>
148 </div>
149 </div>
150
151 <div class="wpie-tabs-wrapper">
152
153 <div class="wpie-tabs-link">
154 <a class="wpie-tab__link is-active"><?php esc_html_e( 'Type', 'float-menu' ); ?></a>
155 <a class="wpie-tab__link"><?php esc_html_e( 'Icon', 'float-menu' ); ?></a>
156 <a class="wpie-tab__link"><?php esc_html_e( 'Style', 'float-menu' ); ?></a>
157 <a class="wpie-tab__link"><?php esc_html_e( 'Attributes', 'float-menu' ); ?></a>
158 </div>
159
160 <div class="wpie-tab-settings is-active">
161 <div class="wpie-fieldset">
162 <div class="wpie-fields">
163 <?php $field->create( 'menu_1-item_type', - 1 ); ?>
164 <?php $field->create( 'menu_1-item_link', - 1 ); ?>
165 <?php $field->create( 'menu_1-new_tab', - 1 ); ?>
166 </div>
167 </div>
168
169
170 </div>
171
172 <div class="wpie-tab-settings">
173 <div class="wpie-fieldset">
174 <div class="wpie-fields">
175 <?php $field->create( 'menu_1-icon_type', - 1 ); ?>
176 <?php $field->create( 'menu_1-item_icon', - 1 ); ?>
177 <?php $field->create( 'menu_1-item_custom_text', - 1 ); ?>
178 </div>
179 </div>
180
181 </div>
182
183 <div class="wpie-tab-settings">
184
185 <div class="wpie-fieldset">
186 <div class="wpie-fields">
187 <?php $field->create( 'menu_1-color', - 1 ); ?>
188 <?php $field->create( 'menu_1-hcolor', - 1 ); ?>
189 <?php $field->create( 'menu_1-bcolor', - 1 ); ?>
190 <?php $field->create( 'menu_1-hbcolor', - 1 ); ?>
191 </div>
192 </div>
193
194 </div>
195
196 <div class="wpie-tab-settings">
197 <div class="wpie-fieldset">
198 <div class="wpie-legend"><?php esc_html_e( 'Attributes', 'float-menu' ); ?></div>
199 <div class="wpie-fields">
200 <?php $field->create( 'menu_1-button_id', - 1 ); ?>
201 <?php $field->create( 'menu_1-button_class', - 1 ); ?>
202 <?php $field->create( 'menu_1-link_rel', - 1 ); ?>
203 <?php $field->create( 'menu_1-aria_label', - 1 ); ?>
204 </div>
205 </div>
206 </div>
207 </div>
208 </div>
209 </details>
210 </template>
211 <?php
212