PluginProbe
Bubble Menu – Floating Button Menu with Sticky Navigation / 3.0.5
Bubble Menu – Floating Button Menu with Sticky Navigation v3.0.5
trunk 1.3 2.0 2.2 2.2.1 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.1 3.1.1 4.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.0.6 4.0.7 4.1 4.1.1
bubble-menu / admin / settings / options / menu.php

menu.php in Bubble Menu – Floating Button Menu with Sticky Navigation 3.0.5, at admin/settings/options/menu.php

171 lines 4.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Settings
4 *
5 * @package Wow_Plugin
6 * @copyright Copyright (c) 2018, Dmytro Lobov
7 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
8 * @since 1.0
9 */
10
11
12 $count_i = ( ! empty( $param['item_type'] ) ) ? count( $param['item_type'] ) : '0';
13 if ( $count_i > 0 ) {
14 for ( $i = 0; $i < $count_i; $i ++ ) {
15
16 // Icon
17 $item_icon_[ $i ] = array(
18 'name' => 'param[item_icon][]',
19 'class' => 'icons',
20 'type' => 'select',
21 'val' => isset( $param['item_icon'][ $i ] ) ? $param['item_icon'][ $i ] : 'fas fa-hand-point-up',
22 'option' => $icons_new,
23 );
24
25 $item_tooltip_include_[ $i ] = array(
26 'name' => 'param[item_tooltip_include][]',
27 'type' => 'checkbox',
28 'class' => 'tooltip-include',
29 'val' => isset( $param['item_tooltip_include'][ $i ] ) ? $param['item_tooltip_include'][ $i ] : 0,
30 'func' => 'checkboxchecked(this); itemtooltip(this);',
31 );
32
33 // Label for item
34 $item_tooltip_[ $i ] = array(
35 'name' => 'param[item_tooltip][]',
36 'class' => 'item-tooltip',
37 'type' => 'text',
38 'val' => isset( $param['item_tooltip'][ $i ] ) ? $param['item_tooltip'][ $i ] : '',
39 );
40
41 $item_tooltip_show_[ $i ] = array(
42 'name' => 'param[item_tooltip_show][]',
43 'class' => '',
44 'type' => 'select',
45 'val' => isset( $param['item_tooltip_show'][ $i ] ) ? $param['item_tooltip_show'][ $i ] : '',
46 'option' => array(
47 '1' => __( 'On hover', 'bubble-menu' ),
48 ),
49 'func' => '',
50 );
51
52
53 // $smooth = isset( $param[ 'menu_1' ][ 'scroll' ][ $i ] ) ? $param[ 'menu_1' ][ 'scroll' ][ $i ] : '';
54
55 // Type of the item
56 $item_type_[ $i ] = array(
57 'name' => 'param[item_type][]',
58 'type' => 'select',
59 'class' => 'item-type',
60 'val' => isset( $param['item_type'][ $i ] ) ? $param['item_type'][ $i ] : '',
61 'option' => array(
62 'link' => esc_attr__( 'Link', 'bubble-menu' ),
63 ),
64 'func' => 'itemtype(this);',
65 );
66
67
68 // Link URL
69 $item_link_[ $i ] = array(
70 'name' => 'param[item_link][]',
71 'type' => 'text',
72 'val' => isset( $param['item_link'][ $i ] ) ? $param['item_link'][ $i ] : '',
73 );
74
75
76 $open_link_[ $i ] = array(
77 'name' => 'param[open_link][]',
78 'id' => 'open_link',
79 'class' => '',
80 'type' => 'select',
81 'val' => isset( $param['open_link'][ $i ] ) ? $param['open_link'][ $i ] : '',
82 'option' => array(
83 '_self' => esc_attr__( 'Same window', 'bubble-menu' ),
84 ),
85 'func' => '',
86 );
87
88 $item_color_[ $i ] = array(
89 'name' => 'param[item_color][]',
90 'class' => 'item-bgcolor',
91 'type' => 'select',
92 'val' => isset( $param['item_color'][ $i ] ) ? $param['item_color'][ $i ] : 'white',
93 'option' => array(
94 'white' => esc_attr__( 'White', 'bubble-menu' ),
95 ),
96 'func' => '',
97 );
98
99 $item_hcolor_[ $i ] = array(
100 'name' => 'param[item_hcolor][]',
101 'class' => 'item-color',
102 'type' => 'select',
103 'val' => isset( $param['item_hcolor'][ $i ] ) ? $param['item_hcolor'][ $i ] : 'black',
104 'option' => array(
105 'black' => esc_attr__( 'Black', 'bubble-menu' ),
106 ),
107 'func' => '',
108 );
109
110 $button_id_[ $i ] = array(
111 'name' => 'param[button_id][]',
112 'type' => 'text',
113 'val' => isset( $param['button_id'][ $i ] ) ? $param['button_id'][ $i ] : '',
114 );
115
116 $button_class_[ $i ] = array(
117 'name' => 'param[button_class][]',
118 'type' => 'text',
119 'val' => isset( $param['button_class'][ $i ] ) ? $param['button_class'][ $i ] : '',
120 );
121
122 $link_rel_[ $i ] = array(
123 'name' => 'param[link_rel][]',
124 'type' => 'text',
125 'val' => isset( $param['link_rel'][ $i ] ) ? $param['link_rel'][ $i ] : '',
126 );
127
128 }
129
130 }
131
132
133 $item_icon_help = array(
134 'title' => __( 'Set the icon for menu item. If you want use the custom item:', 'bubble-menu' ),
135 'ul' => array(
136 esc_attr__( '1. Check the box on "custom"', 'bubble-menu' ),
137 esc_attr__( '2. Upload the icon in Media Library', 'bubble-menu' ),
138 esc_attr__( '3. Copy the URL to icon', 'bubble-menu' ),
139 esc_attr__( '4. Paste the icon URL to field', 'bubble-menu' ),
140 ),
141 );
142
143 $item_tooltip_help = array(
144 'text' => esc_attr__( 'Set the text for menu item.', 'bubble-menu' ),
145 );
146
147 $item_type_help = array(
148 'text' => esc_attr__( 'Select the type of menu item. Explanation of some types:', 'bubble-menu' ),
149 'ul' => array(
150 esc_attr__( '<strong>Smooth Scroll</strong> - Smooth scrolling of the page to the specified anchors on the page.',
151 'bubble-menu' ),
152 esc_attr__( '<strong>ShiftNav Menu</strong> - open the menu, wich create via the plugin ShiftNav.',
153 'bubble-menu' ),
154 ),
155 );
156
157 $hold_open_help = array(
158 'text' => esc_attr__( 'When the page loads, the menu item will open.', 'bubble-menu' ),
159 );
160
161 $button_id_help = array(
162 'text' => esc_attr__( 'Set the attribute ID for the menu item or left empty.', 'bubble-menu' ),
163 );
164
165 $button_class_help = array(
166 'text' => esc_attr__( 'Set the attribute CLASS for the menu item or left empty.', 'bubble-menu' ),
167 );
168
169 $image_alt_help = array(
170 'text' => esc_attr__( 'Set the attribute Alt for custom image.', 'bubble-menu' ),
171 );