PluginProbe
Bubble Menu – Floating Button Menu with Sticky Navigation / 3.0.4
Bubble Menu – Floating Button Menu with Sticky Navigation v3.0.4
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 / main.php

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

141 lines 3.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Main Settings param
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 include_once( 'icons.php' );
12 $icons_new = array();
13 foreach ( $icons as $key => $value ) {
14 $icons_new[ $value ] = $value;
15 }
16
17 // Position of the menu
18 $menu = array(
19 'id' => 'position',
20 'name' => 'param[menu]',
21 'type' => 'select',
22 'val' => isset( $param['menu'] ) ? $param['menu'] : 'left',
23 'option' => array(
24 'wow-bmp-pos-t' => __( 'Top (max 9 items)', 'bubble-menu' ),
25 'wow-bmp-pos-r' => __( 'Right (max 9 items)', 'bubble-menu' ),
26 'wow-bmp-pos-b' => __( 'Bottom (max 9 items)', 'bubble-menu' ),
27 'wow-bmp-pos-l' => __( 'Left (max 9 items)', 'bubble-menu' ),
28 'wow-bmp-pos-tl' => __( 'Top-left (max 5 items)', 'bubble-menu' ),
29 'wow-bmp-pos-tr' => __( 'Top-right (max 5 items)', 'bubble-menu' ),
30 'wow-bmp-pos-br' => __( 'Bottom-right (max 5 items)', 'bubble-menu' ),
31 'wow-bmp-pos-bl' => __( 'Bottom-left (max 5 items)', 'bubble-menu' ),
32 ),
33 );
34
35 // Menu position help
36 $menu_help = array(
37 'text' => __( 'Specify menu position on screen.', 'bubble-menu' ),
38 );
39
40 // Button shapes
41 $shapes = array(
42 'name' => 'param[shapes]',
43 'id' => 'shapes',
44 'class' => '',
45 'type' => 'select',
46 'val' => isset( $param['shapes'] ) ? $param['shapes'] : '',
47 'option' => array(
48 '' => __( 'Circle', 'bubble-menu' ),
49 ),
50 'func' => '',
51 );
52
53
54 // Button shapes help
55 $shapes_help = array(
56 'text' => __( 'Choose the shape for menu buttons.', 'bubble-menu' ),
57 );
58
59 // Animation
60 $animation = array(
61 'name' => 'param[animation]',
62 'id' => 'animation',
63 'class' => '',
64 'type' => 'select',
65 'val' => isset( $param['animation'] ) ? $param['animation'] : '',
66 'option' => array(
67 '' => __( 'One by one', 'bubble-menu' ),
68 ),
69 );
70
71
72 // Animation help
73 $animation_help = array(
74 'text' => __( 'Set the animation effect for opening menu.', 'bubble-menu' ),
75 );
76
77 // Icon
78 $menu_icon = array(
79 'name' => 'param[menu_icon]',
80 'class' => 'icons',
81 'type' => 'select',
82 'val' => isset( $param['menu_icon'] ) ? $param['menu_icon'] : 'fas fa-hand-point-up',
83 'option' => $icons_new,
84 );
85
86 // Color
87 $color = array(
88 'name' => 'param[color]',
89 'id' => 'color',
90 'class' => 'item-bgcolor',
91 'type' => 'select',
92 'val' => isset( $param['color'] ) ? $param['color'] : 'white',
93 'option' => array(
94 'white' => __( 'White', 'bubble-menu' ),
95 ),
96 'func' => '',
97 );
98
99 // Hover color
100 $hcolor = array(
101 'name' => 'param[hcolor]',
102 'id' => 'hcolor',
103 'class' => 'item-color',
104 'type' => 'select',
105 'val' => isset( $param['hcolor'] ) ? $param['hcolor'] : 'black',
106 'option' => array(
107 'black' => __( 'Black', 'bubble-menu' ),
108 ),
109 );
110
111 $main_id = array(
112 'name' => 'param[main_id]',
113 'id' => 'main_id',
114 'type' => 'text',
115 'val' => isset( $param['main_id'] ) ? $param['main_id'] : '',
116 );
117
118 $main_id_help = array(
119 'text' => __( 'Set ID for element.', 'bubble-menu' ),
120 );
121
122 $main_class = array(
123 'name' => 'param[main_class]',
124 'id' => 'main_class',
125 'type' => 'text',
126 'val' => isset( $param['main_class'] ) ? $param['main_class'] : '',
127 );
128
129 $main_class_help = array(
130 'title' => __( 'Set Class for element.', 'bubble-menu' ),
131 'ul' => array(
132 __( 'You may enter several classes separated by a space.', 'bubble-menu' ),
133 )
134 );
135
136
137
138 $main_alt_help = array(
139 'text' => esc_attr__( 'Set the attribute Alt for custom image.', 'bubble-menu' ),
140 );
141