PluginProbe
Float menu – awesome floating side menu / 4.3
Float menu – awesome floating side menu v4.3
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 4.3, at admin/settings/options/menu.php

139 lines 3.7 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 // Font hover color
82 $hcolor_[ $i ] = array(
83 'name' => 'param[menu_1][hcolor][]',
84 'type' => 'color',
85 'val' => isset( $param['menu_1']['hcolor'][ $i ] ) ? $param['menu_1']['hcolor'][ $i ] : '#ffffff',
86 );
87
88
89 // Background
90 $bcolor_[ $i ] = array(
91 'name' => 'param[menu_1][bcolor][]',
92 'type' => 'color',
93 'val' => isset( $param['menu_1']['bcolor'][ $i ] ) ? $param['menu_1']['bcolor'][ $i ] : '#128be0',
94 );
95
96
97
98 $button_id_[ $i ] = array(
99 'name' => 'param[menu_1][button_id][]',
100 'type' => 'text',
101 'val' => isset( $param['menu_1']['button_id'][ $i ] ) ? $param['menu_1']['button_id'][ $i ] : '',
102 );
103
104 $button_class_[ $i ] = array(
105 'name' => 'param[menu_1][button_class][]',
106 'type' => 'text',
107 'val' => isset( $param['menu_1']['button_class'][ $i ] ) ? $param['menu_1']['button_class'][ $i ] : '',
108 );
109
110 $link_rel_[ $i ] = array(
111 'name' => 'param[menu_1][link_rel][]',
112 'type' => 'text',
113 'val' => isset( $param['menu_1']['link_rel'][ $i ] ) ? $param['menu_1']['link_rel'][ $i ] : '',
114 );
115
116
117 }
118
119 }
120
121 $item_tooltip_help = array(
122 'text' => esc_attr__( 'Set the text for menu item.', $this->plugin['text'] ),
123 );
124
125 $item_type_help = array(
126 'title' => esc_attr__( 'Types of the button which can be select', $this->plugin['text'] ),
127 'ul' => array(
128 esc_attr__( 'Link - insert any link', $this->plugin['text'] ),
129 ),
130 );
131
132 $button_id_help = array(
133 'text' => esc_attr__( 'Set the attribute ID for the menu item or left empty.', $this->plugin['text'] ),
134 );
135
136 $button_class_help = array(
137 'text' => esc_attr__( 'Set the attribute CLASS for the menu item or left empty.', $this->plugin['text'] ),
138 );
139