PluginProbe
Floating Button – Easily Create Sticky, Fixed & Floating Buttons / 5.0.1
Floating Button – Easily Create Sticky, Fixed & Floating Buttons v5.0.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 / vertical.php

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

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