PluginProbe
Float menu – awesome floating side menu / 5.1
Float menu – awesome floating side menu v5.1
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 5.1, at admin/settings/options/menu.php

148 lines 4.2 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 if ( ! defined( 'ABSPATH' ) ) {
12 exit;
13 }
14
15 include_once( 'icons.php' );
16 $icons_new = array();
17 foreach ( $icons as $key => $value ) {
18 $icons_new[ $value ] = $value;
19 }
20
21 $count_i = ( ! empty( $param['menu_1']['item_type'] ) ) ? count( $param['menu_1']['item_type'] ) : '0';
22 if ( $count_i > 0 ) {
23 for ( $i = 0; $i < $count_i; $i ++ ) {
24
25 // Icon
26 $item_icon_[ $i ] = array(
27 'name' => 'param[menu_1][item_icon][]',
28 'class' => 'icons',
29 'type' => 'select',
30 'val' => isset( $param['menu_1']['item_icon'][ $i ] ) ? $param['menu_1']['item_icon'][ $i ]
31 : 'fas fa-hand-point-up',
32 'option' => $icons_new,
33 );
34
35 // Label for item
36 $item_tooltip_[ $i ] = array(
37 'name' => 'param[menu_1][item_tooltip][]',
38 'class' => 'item-tooltip',
39 'type' => 'text',
40 'val' => isset( $param['menu_1']['item_tooltip'][ $i ] ) ? $param['menu_1']['item_tooltip'][ $i ] : '',
41 );
42
43 // Type of the item
44 $item_type_[ $i ] = array(
45 'name' => 'param[menu_1][item_type][]',
46 'type' => 'select',
47 'class' => 'item-type',
48 'val' => isset( $param['menu_1']['item_type'][ $i ] ) ? $param['menu_1']['item_type'][ $i ] : 'link',
49 'option' => array(
50 'link' => esc_attr__( 'Link', $this->plugin['text'] ),
51 ),
52
53 );
54
55
56 // Link URL
57 $item_link_[ $i ] = array(
58 'name' => 'param[menu_1][item_link][]',
59 'type' => 'text',
60 'val' => isset( $param['menu_1']['item_link'][ $i ] ) ? $param['menu_1']['item_link'][ $i ] : '',
61 );
62
63
64 // Open link in a new window
65 $new_tab_[ $i ] = array(
66 'name' => 'param[menu_1][new_tab][]',
67 'class' => '',
68 'type' => 'checkbox',
69 'val' => isset( $param['menu_1']['new_tab'][ $i ] ) ? $param['menu_1']['new_tab'][ $i ] : 0,
70 'func' => '',
71 'sep' => '',
72 );
73
74 // Font color
75 $color_[ $i ] = array(
76 'name' => 'param[menu_1][color][]',
77 'type' => 'color',
78 'val' => isset( $param['menu_1']['color'][ $i ] ) ? $param['menu_1']['color'][ $i ] : '#ffffff',
79 );
80
81 $hcolor_default = isset( $param['menu_1']['color'][ $i ] ) ? $param['menu_1']['color'][ $i ] : '#ffffff';
82
83 // Font hover color
84 $hcolor_[ $i ] = array(
85 'name' => 'param[menu_1][hcolor][]',
86 'type' => 'color',
87 'val' => isset( $param['menu_1']['hcolor'][ $i ] ) ? $param['menu_1']['hcolor'][ $i ] : $hcolor_default,
88 );
89
90
91 // Background
92 $bcolor_[ $i ] = array(
93 'name' => 'param[menu_1][bcolor][]',
94 'type' => 'color',
95 'val' => isset( $param['menu_1']['bcolor'][ $i ] ) ? $param['menu_1']['bcolor'][ $i ] : '#128be0',
96 );
97
98 $hbcolor_default = isset( $param['menu_1']['bcolor'][ $i ] ) ? $param['menu_1']['bcolor'][ $i ] : '#128be0';
99 // Hover Background
100 $hbcolor_[ $i ] = array(
101 'name' => 'param[menu_1][hbcolor][]',
102 'type' => 'color',
103 'val' => isset( $param['menu_1']['hbcolor'][ $i ] ) ? $param['menu_1']['hbcolor'][ $i ] : $hbcolor_default,
104 );
105
106
107 $button_id_[ $i ] = array(
108 'name' => 'param[menu_1][button_id][]',
109 'type' => 'text',
110 'val' => isset( $param['menu_1']['button_id'][ $i ] ) ? $param['menu_1']['button_id'][ $i ] : '',
111 );
112
113 $button_class_[ $i ] = array(
114 'name' => 'param[menu_1][button_class][]',
115 'type' => 'text',
116 'val' => isset( $param['menu_1']['button_class'][ $i ] ) ? $param['menu_1']['button_class'][ $i ] : '',
117 );
118
119 $link_rel_[ $i ] = array(
120 'name' => 'param[menu_1][link_rel][]',
121 'type' => 'text',
122 'val' => isset( $param['menu_1']['link_rel'][ $i ] ) ? $param['menu_1']['link_rel'][ $i ] : '',
123 );
124
125
126 }
127
128 }
129
130 $item_tooltip_help = array(
131 'text' => esc_attr__( 'Set the text for menu item.', $this->plugin['text'] ),
132 );
133
134 $item_type_help = array(
135 'title' => esc_attr__( 'Types of the button which can be select', $this->plugin['text'] ),
136 'ul' => array(
137 esc_attr__( 'Link - insert any link', $this->plugin['text'] ),
138 ),
139 );
140
141 $button_id_help = array(
142 'text' => esc_attr__( 'Set the attribute ID for the menu item or left empty.', $this->plugin['text'] ),
143 );
144
145 $button_class_help = array(
146 'text' => esc_attr__( 'Set the attribute CLASS for the menu item or left empty.', $this->plugin['text'] ),
147 );
148