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 / options / menu.php

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

130 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 use FloatMenuLite\Settings_Helper;
4
5 defined( 'ABSPATH' ) || exit;
6
7 $args = [
8 'item_tooltip' => [
9 'type' => 'text',
10 'title' => __( 'Label Text', 'float-menu' ),
11 ],
12
13 'item_type' => [
14 'type' => 'select',
15 'title' => __( 'Type', 'float-menu' ),
16 'atts' => Settings_Helper::item_type(),
17 ],
18
19 'item_link' => [
20 'type' => 'text',
21 'title' => __( 'Link', 'float-menu' ),
22 'class' => 'is-hidden',
23 ],
24
25 'new_tab' => [
26 'type' => 'checkbox',
27 'title' => __( 'Open in new Window', 'float-menu' ),
28 'label' => __( 'Enable', 'float-menu' ),
29 'class' => 'is-hidden',
30 ],
31
32 // Icons
33 'icon_type' => [
34 'type' => 'select',
35 'title' => __( 'Icon Type', 'float-menu' ),
36 'value' => 'icon',
37 'options' => [
38 'icon' => __( 'Icon', 'float-menu' ),
39 'text' => __( 'Text', 'float-menu' ),
40 ]
41 ],
42
43 'item_icon' => [
44 'type' => 'text',
45 'title' => __( 'Icon', 'float-menu' ),
46 'value' => 'fas fa-wand-magic-sparkles',
47 'options' => [
48 'class' => 'wpie-icon-box',
49 ],
50 ],
51 'item_custom_text' => [
52 'type' => 'text',
53 'title' => __( 'Enter text', 'float-menu' ),
54 'atts' => [
55 'placeholder' => __( 'Enter text', 'float-menu' )
56 ],
57 ],
58
59 // Style
60 'color' => [
61 'type' => 'text',
62 'val' => '#ffffff',
63 'atts' => [
64 'class' => 'wpie-color',
65 'data-alpha-enabled' => 'true',
66 ],
67 'title' => __( 'Color', 'float-menu' ),
68 ],
69
70 'hcolor' => [
71 'type' => 'text',
72 'val' => '#ffffff',
73 'atts' => [
74 'class' => 'wpie-color',
75 'data-alpha-enabled' => 'true',
76 ],
77 'title' => __( 'Hover Color', 'float-menu' ),
78 ],
79
80 'bcolor' => [
81 'type' => 'text',
82 'val' => '#184c72',
83 'atts' => [
84 'class' => 'wpie-color',
85 'data-alpha-enabled' => 'true',
86 ],
87 'title' => __( 'Background', 'float-menu' ),
88 ],
89
90 'hbcolor' => [
91 'type' => 'text',
92 'val' => '#184c72',
93 'atts' => [
94 'class' => 'wpie-color',
95 'data-alpha-enabled' => 'true',
96 ],
97 'title' => __( 'Hover Background', 'float-menu' ),
98 ],
99
100 // Attributes
101 'button_id' => [
102 'type' => 'text',
103 'title' => __( 'ID for element', 'float-menu' ),
104 ],
105
106 'button_class' => [
107 'type' => 'text',
108 'title' => __( 'Class for element', 'float-menu' ),
109 ],
110
111 'link_rel' => [
112 'type' => 'text',
113 'title' => __( 'Attribute: rel', 'float-menu' ),
114 ],
115
116 'aria_label' => [
117 'type' => 'text',
118 'title' => __( 'Aria label', 'float-menu' ),
119 ],
120
121 ];
122
123 $prefix = 'menu_1-';
124 $newArgs = [];
125
126 foreach ( $args as $key => $value ) {
127 $newArgs[ $prefix . $key ] = $value;
128 }
129
130 return $newArgs;