PluginProbe
Float menu – awesome floating side menu / 6.0
Float menu – awesome floating side menu v6.0
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
← All changes | admin/settings/4.rules.php +24 -55 trunk6.0 View file →
@@ -4,67 +4,36 @@
4 4 */
5 5
6 6 use FloatMenuLite\Admin\CreateFields;
7 7 use FloatMenuLite\Settings_Helper;
8 -use FloatMenuLite\WOWP_Plugin;
9 8
10 9 defined( 'ABSPATH' ) || exit;
11 10
12 -$data = include( 'options/rules.php' );
13 -$field = new CreateFields( $options, $data['opt'] );
11 +$page_opt = include( 'options/rules.php' );
12 +$field = new CreateFields( $options, $page_opt );
14 13
15 -foreach ( $data['args'] as $key => $value ) {
16 - $item_order = ! empty( $options['item_order'][ $key ] ) ? 1 : 0;
17 - $open = ! empty( $item_order ) ? ' open' : '';
18 - ?>
14 +?>
19 15
20 - <details class="wpie-item"<?php echo esc_attr( $open ); ?>>
21 - <input type="hidden" name="param[item_order][<?php echo esc_attr( $key ); ?>]" class="wpie-item__toggle"
22 - value="<?php echo absint( $item_order ); ?>">
23 - <summary class="wpie-item_heading">
24 - <span class="wpie-item_heading_icon">
25 - <span class="wpie-icon <?php echo esc_attr( $value['icon'] ); ?>"></span>
26 - </span>
27 - <span class="wpie-item_heading_label"><?php echo esc_html( $value['title'] ); ?></span>
28 - <span class="wpie-item_heading_type"></span>
29 - <span class="wpie-item_heading_toogle">
30 - <span class="wpie-icon wpie_icon-chevron-down"></span>
31 - <span class="wpie-icon wpie_icon-chevron-up"></span>
32 - </span>
33 - </summary>
34 - <div class="wpie-item_content">
35 - <div class="wpie-fieldset wpie-<?php echo esc_attr( $key ); ?>" id="<?php echo esc_attr( $key ); ?>">
36 - <?php
37 - foreach ( $value as $k => $v ) {
16 +<div class="wpie-fieldset wpie-rules">
17 + <div class="wpie-legend"><?php esc_html_e( 'Display Rules', 'float-menu' ); ?></div>
18 + <div class="wpie-fields">
19 + <?php $field->create( 'show', 0 ); ?>
20 + </div>
21 +</div>
38 22
39 - if ( is_array( $v ) ) {
23 +<div class="wpie-fieldset">
24 + <div class="wpie-legend"><?php esc_html_e( 'Responsive Visibility', 'float-menu' ); ?></div>
25 + <div class="wpie-fields">
26 + <?php $field->create( 'mobile_rules' ); ?>
27 + <?php $field->create( 'mobile' ); ?>
28 + <?php $field->create( 'desktop' ); ?>
29 + </div>
30 +</div>
40 31
41 - echo '<div class="wpie-fields">';
42 - foreach ( $v as $k2 => $v2 ) {
43 - if ( $key === 'rules' ) {
44 - $field->create( $k2, 0 );
45 - } elseif ( $key === 'schedule' ) {
46 - continue;
47 - }
48 - else {
49 - $field->create( $k2 );
50 - }
51 - }
52 - echo '</div>';
53 - if ( $key === 'rules' ) {
54 - do_action( WOWP_Plugin::PREFIX . '_rules_display', $options, $v, $field ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound
55 - }
56 32
57 - if ( $key === 'schedule' ) {
58 - do_action( WOWP_Plugin::PREFIX . '_rules_schedule', $options, $v, $field ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound
59 - }
60 -
61 - }
62 -
63 - }
64 -
65 - ?>
66 - </div>
67 - </div>
68 - </details>
69 - <?php
70 -}
33 +<div class="wpie-fieldset">
34 + <div class="wpie-legend"><?php esc_html_e( 'Other', 'float-menu' ); ?></div>
35 + <div class="wpie-fields">
36 + <?php $field->create( 'fontawesome' ); ?>
37 + <?php $field->create( 'velocity' ); ?>
38 + </div>
39 +</div>