PluginProbe
Floating Button – Easily Create Sticky, Fixed & Floating Buttons / 5.1.1
Floating Button – Easily Create Sticky, Fixed & Floating Buttons v5.1.1
trunk 2.0.2 3.0 4.0 4.1.2 4.3 5.0 5.0.1 5.1 5.1.1 5.2 5.3 5.3.1 6.0 6.0.1 6.0.10 6.0.11 6.0.12 6.0.13 6.0.2 6.0.3 6.0.4 6.0.5 6.0.6 6.0.7 All 31 releases
floating-button / admin / settings / options / horizontal.php

horizontal.php in Floating Button – Easily Create Sticky, Fixed & Floating Buttons 5.1.1, at admin/settings/options/horizontal.php

98 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 * Horizontal Buttons 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 $count_ii = ( ! empty( $param['menu_2']['item_type'] ) ) ? count( $param['menu_2']['item_type'] ) : '0';
12 if ( $count_ii > 0 ) {
13 for ( $i = 0; $i < $count_ii; $i ++ ) {
14 $item_icon_[ $i ] = array(
15 'name' => 'param[menu_2][item_icon][]',
16 'class' => 'icons',
17 'type' => 'select',
18 'val' => isset( $param['menu_2']['item_icon'][ $i ] ) ? $param['menu_2']['item_icon'][ $i ]
19 : 'fas fa-hand-point-up',
20 'option' => $icons_new,
21 );
22 $item_tooltip_include_[ $i ] = array(
23 'name' => 'param[menu_2][item_tooltip_include][]',
24 'type' => 'checkbox',
25 'class' => 'tooltip-include',
26 'val' => isset( $param['menu_2']['item_tooltip_include'][ $i ] )
27 ? $param['menu_2']['item_tooltip_include'][ $i ] : 0,
28 'func' => 'itemtooltip(this);',
29 );
30 $item_tooltip_[ $i ] = array(
31 'name' => 'param[menu_2][item_tooltip][]',
32 'class' => 'item-tooltip',
33 'type' => 'text',
34 'val' => isset( $param['menu_2']['item_tooltip'][ $i ] ) ? $param['menu_2']['item_tooltip'][ $i ] : '',
35
36 );
37 $button_color_[ $i ] = array(
38 'name' => 'param[menu_2][button_color][]',
39 'type' => 'color',
40 'val' => isset( $param['menu_2']['button_color'][ $i ] ) ? $param['menu_2']['button_color'][ $i ]
41 : '#009688',
42 );
43 $button_hcolor_[ $i ] = array(
44 'name' => 'param[menu_2][button_hcolor][]',
45 'type' => 'color',
46 'val' => isset( $param['menu_2']['button_hcolor'][ $i ] ) ? $param['menu_2']['button_hcolor'][ $i ]
47 : '#009688',
48 );
49 $icon_color_[ $i ] = array(
50 'name' => 'param[menu_2][icon_color][]',
51 'type' => 'color',
52 'val' => isset( $param['menu_2']['icon_color'][ $i ] ) ? $param['menu_2']['icon_color'][ $i ] : '#ffffff',
53 );
54 $item_type_[ $i ] = array(
55 'name' => 'param[menu_2][item_type][]',
56 'type' => 'select',
57 'class' => 'item-type',
58 'val' => isset( $param['menu_2']['item_type'][ $i ] ) ? $param['menu_2']['item_type'][ $i ] : '',
59 'option' => array(
60 'link' => esc_attr__( 'Link', 'floating-button' ),
61 'login' => esc_attr__( 'Login', 'floating-button' ),
62 'logout' => esc_attr__( 'Logout', 'floating-button' ),
63 'register' => esc_attr__( 'Register', 'floating-button' ),
64 'lostpassword' => esc_attr__( 'Lostpassword', 'floating-button' ),
65 ),
66 'func' => 'itemtype(this);',
67 );
68
69
70 $item_link_[ $i ] = array(
71 'name' => 'param[menu_2][item_link][]',
72 'type' => 'text',
73 'val' => isset( $param['menu_2']['item_link'][ $i ] ) ? $param['menu_2']['item_link'][ $i ] : '',
74 'option' => array(
75 'placeholder' => esc_attr__( 'Enter URL', 'floating-button' ),
76 ),
77 );
78
79 $button_id_[ $i ] = array(
80 'name' => 'param[menu_2][button_id][]',
81 'type' => 'text',
82 'val' => isset( $param['menu_2']['button_id'][ $i ] ) ? $param['menu_2']['button_id'][ $i ] : '',
83 );
84
85 $button_class_[ $i ] = array(
86 'name' => 'param[menu_2][button_class][]',
87 'type' => 'text',
88 'val' => isset( $param['menu_2']['button_class'][ $i ] ) ? $param['menu_2']['button_class'][ $i ] : '',
89 );
90
91 $link_rel_[ $i ] = array(
92 'name' => 'param[menu_2][link_rel][]',
93 'type' => 'text',
94 'val' => isset( $param['menu_2']['link_rel'][ $i ] ) ? $param['menu_2']['link_rel'][ $i ] : '',
95 );
96 }
97
98 }