PluginProbe
Bubble Menu – Floating Button Menu with Sticky Navigation / trunk
Bubble Menu – Floating Button Menu with Sticky Navigation vtrunk
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 / 2.items.php

2.items.php in Bubble Menu – Floating Button Menu with Sticky Navigation trunk, at admin/settings/options/2.items.php

112 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 use BubbleMenu\Settings_Helper;
4
5 defined( 'ABSPATH' ) || exit;
6
7 $args = [
8 //region Label
9 'label' => [
10 'type' => 'text',
11 'title' => __( 'Label', 'bubble-menu' ),
12 ],
13
14 'label_on' => [
15 'type' => 'checkbox',
16 'title' => __( 'Label on', 'bubble-menu' ),
17 'label' => __( 'Enable', 'bubble-menu' ),
18 ],
19
20 //endregion
21
22 //region Label
23 'type' => [
24 'type' => 'select',
25 'title' => __( 'Type', 'bubble-menu' ),
26 'value' => 'link',
27 'options' => Settings_Helper::item_type(),
28 ],
29
30 'link' => [
31 'type' => 'text',
32 'title' => __( 'Link', 'bubble-menu' ),
33 ],
34
35 //endregion
36
37 //region Icon
38 'icon_type' => [
39 'type' => 'select',
40 'title' => __( 'Icon Type', 'bubble-menu' ),
41 'value' => 'icon',
42 'options' => [
43 'icon' => __( 'Icon', 'bubble-menu' ),
44 ]
45 ],
46
47 'icon' => [
48 'type' => 'text',
49 'title' => __( 'Icon', 'bubble-menu' ),
50 'value' => 'fas fa-wand-magic-sparkles',
51 'options' => [
52 'class' => 'wpie-icon-box',
53 ]
54 ],
55
56 //endregion
57
58 //region Style
59 'color' => [
60 'type' => 'text',
61 'value' => '#ffffff',
62 'title' => __( 'Color', 'bubble-menu' ),
63 'options' => [
64 'class' => 'wpie-color',
65 'data-alpha-enabled' => 'true',
66 ],
67 ],
68
69 'background_color' => [
70 'type' => 'text',
71 'title' => __( 'Background color', 'bubble-menu' ),
72 'value' => '#14102C',
73 'options' => [
74 'class' => 'wpie-color',
75 'data-alpha-enabled' => 'true',
76 ],
77 ],
78
79 'label_position' => [
80 'type' => 'select',
81 'title' => __( 'Position', 'bubble-menu' ),
82 'options' => Settings_Helper::label_position()
83 ],
84
85 //endregion
86
87 //region Attributes
88 'attribute_id' => [
89 'type' => 'text',
90 'title' => __( 'Attribute ID', 'bubble-menu' ),
91 ],
92 'attribute_class' => [
93 'type' => 'text',
94 'title' => __( 'Attribute Class', 'bubble-menu' ),
95 ],
96
97 'attribute_rel' => [
98 'type' => 'text',
99 'title' => __( 'Attribute Rel', 'bubble-menu' ),
100 ],
101 //endregion
102
103 ];
104
105 $prefix = 'item-';
106 $newArgs = [];
107
108 foreach ( $args as $key => $value ) {
109 $newArgs[ $prefix . $key ] = $value;
110 }
111
112 return $newArgs;