PluginProbe
Float menu – awesome floating side menu / 6.1
Float menu – awesome floating side menu v6.1
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 6.1, at admin/settings/1.menu.php

226 lines 8.4 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
18 if ( $count > 0 ) :
19 for ( $i = 0; $i < $count; $i ++ ):
20 $order = $i + 1;
21 $item_order = ! empty( $options['item_order'][ $i ] ) ? 1 : 0;
22 $open = ! empty( $item_order ) ? ' open' : '';
23 ?>
24 <details class="wpie-item"<?php
25 echo esc_attr( $open ); ?>>
26 <input type="hidden" name="item_order[]" class="wpie-item__toggle" value="<?php
27 echo absint( $item_order ); ?>">
28 <summary class="wpie-item_heading">
29 <span class="wpie-item_heading_icon"></span>
30 <span class="wpie-item_heading_label"></span>
31 <span class="wpie-item_heading_type"></span>
32 <span class="wpie-item_heading_sub"></span>
33 <span class="wpie-icon wpie_icon-chevron-expand-y"></span>
34 <span class="wpie-icon wpie_icon-trash"></span>
35 <span class="wpie-item_heading_toogle">
36 <span class="wpie-icon wpie_icon-chevron-down"></span>
37 <span class="wpie-icon wpie_icon-chevron-up "></span>
38 </span>
39 </summary>
40 <div class="wpie-item_content">
41
42 <div class="wpie-fieldset">
43 <div class="wpie-fields">
44 <?php
45 $field->create( 'menu_1-item_tooltip', $i ); ?>
46 </div>
47 </div>
48
49 <div class="wpie-tabs-wrapper">
50
51 <div class="wpie-tabs-link">
52 <a class="wpie-tab__link is-active"><?php
53 esc_html_e( 'Type', 'float-menu' ); ?></a>
54 <a class="wpie-tab__link"><?php
55 esc_html_e( 'Icon', 'float-menu' ); ?></a>
56 <a class="wpie-tab__link"><?php
57 esc_html_e( 'Style', 'float-menu' ); ?></a>
58 <a class="wpie-tab__link"><?php
59 esc_html_e( 'Attributes', 'float-menu' ); ?></a>
60 </div>
61
62 <div class="wpie-tab-settings is-active">
63 <div class="wpie-fieldset">
64 <div class="wpie-fields">
65 <?php
66 $field->create( 'menu_1-item_type', $i ); ?><?php
67 $field->create( 'menu_1-item_link', $i ); ?><?php
68 $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
79 $field->create( 'menu_1-item_icon', $i ); ?>
80 </div>
81 </div>
82
83 </div>
84
85 <div class="wpie-tab-settings">
86
87 <div class="wpie-fieldset">
88 <div class="wpie-fields">
89 <?php
90 $field->create( 'menu_1-color', $i ); ?><?php
91 $field->create( 'menu_1-hcolor', $i ); ?><?php
92 $field->create( 'menu_1-bcolor', $i ); ?><?php
93 $field->create( 'menu_1-hbcolor', $i ); ?>
94 </div>
95 </div>
96
97 </div>
98
99 <div class="wpie-tab-settings">
100 <div class="wpie-fieldset">
101 <div class="wpie-legend"><?php
102 esc_html_e( 'Attributes', 'float-menu' ); ?></div>
103 <div class="wpie-fields">
104 <?php
105 $field->create( 'menu_1-button_id', $i );
106 $field->create( 'menu_1-button_class', $i );
107 $field->create( 'menu_1-link_rel', $i );
108 $field->create( 'menu_1-aria_label', $i );
109 ?>
110 </div>
111 </div>
112 </div>
113
114 </div>
115
116
117 </div>
118 </details>
119 <?php
120 endfor; endif; ?>
121
122 <hr class="wpie-buttons__hr">
123 <div class="wpie-fields">
124 <button class="button button-primary wpie-add-button" type="button"><?php
125 esc_html_e( 'Add Button', 'float-menu' ); ?></button>
126 </div>
127
128 </div>
129
130
131 <template id="template-button">
132 <details class="wpie-item" open>
133 <input type="hidden" name="item_order[]" class="wpie-item__toggle" value="1">
134 <summary class="wpie-item_heading">
135 <span class="wpie-item_heading_icon"></span>
136 <span class="wpie-item_heading_label"></span>
137 <span class="wpie-item_heading_type"></span>
138 <span class="wpie-item_heading_sub"></span>
139 <span class="wpie-icon wpie_icon-chevron-expand-y"></span>
140 <span class="wpie-icon wpie_icon-trash"></span>
141 <span class="wpie-item_heading_toogle">
142 <span class="wpie-icon wpie_icon-chevron-down"></span>
143 <span class="wpie-icon wpie_icon-chevron-up "></span>
144 </span>
145 </summary>
146 <div class="wpie-item_content">
147
148 <div class="wpie-fieldset">
149 <div class="wpie-fields">
150 <?php
151 $field->create( 'menu_1-item_tooltip', - 1 ); ?>
152 </div>
153 </div>
154
155 <div class="wpie-tabs-wrapper">
156
157 <div class="wpie-tabs-link">
158 <a class="wpie-tab__link is-active"><?php
159 esc_html_e( 'Type', 'float-menu' ); ?></a>
160 <a class="wpie-tab__link"><?php
161 esc_html_e( 'Icon', 'float-menu' ); ?></a>
162 <a class="wpie-tab__link"><?php
163 esc_html_e( 'Style', 'float-menu' ); ?></a>
164 <a class="wpie-tab__link"><?php
165 esc_html_e( 'Attributes', 'float-menu' ); ?></a>
166 </div>
167
168 <div class="wpie-tab-settings is-active">
169 <div class="wpie-fieldset">
170 <div class="wpie-fields">
171 <?php
172 $field->create( 'menu_1-item_type', - 1 ); ?><?php
173 $field->create( 'menu_1-item_link', - 1 ); ?><?php
174 $field->create( 'menu_1-new_tab', - 1 ); ?>
175 </div>
176 </div>
177
178
179 </div>
180
181 <div class="wpie-tab-settings">
182 <div class="wpie-fieldset">
183 <div class="wpie-fields">
184 <?php
185 $field->create( 'menu_1-item_icon', - 1 ); ?>
186 </div>
187 </div>
188
189 </div>
190
191 <div class="wpie-tab-settings">
192
193 <div class="wpie-fieldset">
194 <div class="wpie-fields">
195 <?php
196 $field->create( 'menu_1-color', - 1 ); ?><?php
197 $field->create( 'menu_1-hcolor', - 1 ); ?><?php
198 $field->create( 'menu_1-bcolor', - 1 ); ?><?php
199 $field->create( 'menu_1-hbcolor', - 1 ); ?>
200 </div>
201 </div>
202 </div>
203
204 <div class="wpie-tab-settings">
205 <div class="wpie-fieldset">
206 <div class="wpie-legend"><?php
207 esc_html_e( 'Attributes', 'float-menu' ); ?></div>
208 <div class="wpie-fields">
209 <?php
210 $field->create( 'menu_1-button_id', - 1 );
211 $field->create( 'menu_1-button_class', - 1 );
212 $field->create( 'menu_1-aria_label', - 1 ); ?>
213 </div>
214 </div>
215
216 </div>
217
218 </div>
219
220
221 </div>
222 </details>
223 </template>
224
225 <?php
226