PluginProbe
Float menu – awesome floating side menu / 7.2
Float menu – awesome floating side menu v7.2
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 / options / rules.php

rules.php in Float menu – awesome floating side menu 7.2, at admin/settings/options/rules.php

102 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 use FloatMenuLite\WOWP_Plugin;
4
5 defined( 'ABSPATH' ) || exit;
6
7 $args = [
8 'rules' => [
9 'title' => __( 'Display Rules', 'float-menu' ),
10 'icon' => 'wpie_icon-roadmap',
11 [
12 'show' => [
13 'type' => 'select',
14 'title' => __( 'Display', 'float-menu' ),
15 'val' => 'everywhere',
16 'atts' => [
17 'general_start' => __( 'General', 'float-menu' ),
18 'shortcode' => __( 'Shortcode', 'float-menu' ),
19 'everywhere' => __( 'Everywhere', 'float-menu' ),
20 'general_end' => __( 'General', 'float-menu' ),
21 ],
22 ],
23 ],
24 ],
25
26 'responsive' => [
27 'title' => __( 'Responsive Visibility', 'float-menu' ),
28 'icon' => 'wpie_icon-laptop-mobile',
29 [
30 'mobile_rules_on' => [
31 'type' => 'checkbox',
32 'title' => __( 'Mobile Rules', 'float-menu' ),
33 'label' => __( 'Enable', 'float-menu' ),
34 ],
35 ],
36 [
37
38 'mobile' => [
39 'type' => 'number',
40 'title' => [
41 'label' => __( 'Hide on smaller screens', 'float-menu' ),
42 'name' => 'mobile_on',
43 'toggle' => true,
44 ],
45 'val' => 480,
46 'addon' => 'px',
47 ],
48
49 'desktop' => [
50 'type' => 'number',
51 'title' => [
52 'label' => __( 'Hide on larger screens', 'float-menu' ),
53 'name' => 'desktop_on',
54 'toggle' => true,
55 ],
56 'val' => 1024,
57 'addon' => 'px'
58 ],
59 ],
60
61
62 ],
63
64 'other' => [
65 'title' => __( 'Other', 'float-menu' ),
66 'icon' => 'wpie_icon-gear',
67 [
68 'fontawesome' => [
69 'type' => 'checkbox',
70 'title' => __( 'Disable Font Awesome Icon', 'float-menu' ),
71 'val' => 0,
72 'label' => __( 'Disable', 'float-menu' ),
73 ],
74 ],
75 ],
76
77 ];
78
79 $args = apply_filters( WOWP_Plugin::PREFIX . '_rules_options', $args );
80
81 $data = [
82 'args' => $args,
83 'opt' => [],
84 ];
85
86 foreach ( $args as $i => $group ) {
87
88 if ( is_array( $group ) ) {
89
90 foreach ( $group as $k => $v ) {
91
92 if ( is_array( $v ) ) {
93 foreach ( $v as $key => $val ) {
94 $data['opt'][ $key ] = $val;
95 }
96 }
97 }
98 }
99 }
100
101 return $data;
102