PluginProbe
Button Generator – Easily Create Custom Buttons with Icons and Analytics / 3.2
Button Generator – Easily Create Custom Buttons with Icons and Analytics v3.2
trunk 1.1.1 2.0 2.1 2.2 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8 2.3.9 3.0 3.0.1 3.0.2 3.0.3 3.1 3.1.1 3.1.2 3.1.3 3.2 3.2.1 3.2.2 3.2.3 All 28 releases
button-generation / admin / settings / options / settings.php

settings.php in Button Generator – Easily Create Custom Buttons with Icons and Analytics 3.2, at admin/settings/options/settings.php

106 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 use ButtonGenerator\Settings_Helper;
4
5 defined( 'ABSPATH' ) || exit;
6
7 return [
8
9 'appearance' => [
10 'type' => 'select',
11 'title' => __( 'Appearance', 'button-generation' ),
12 'atts' => [
13 'text' => __( 'Only Text', 'button-generation' ),
14 'text_icon' => __( 'Text & Icon', 'button-generation' ),
15 'icon' => __( 'Icon', 'button-generation' ),
16 ],
17 ],
18
19 'text' => [
20 'type' => 'text',
21 'title' => __( 'Text', 'button-generation' ),
22 'val' => __( 'Text', 'button-generation' ),
23 ],
24
25 'text_location' => [
26 'type' => 'select',
27 'title' => __( 'Text location', 'button-generation' ),
28 'atts' => [
29 'row' => __( 'Before Icon', 'button-generation' ),
30 'row-reverse' => __( 'After Icon', 'button-generation' ),
31 'column' => __( 'Above the icon', 'button-generation' ),
32 'column-reverse' => __( 'Under the icon', 'button-generation' ),
33 ],
34 ],
35
36 'gap' => [
37 'type' => 'number',
38 'title' => __( 'Gap', 'button-generation' ),
39 'val' => 8,
40 'addon' => 'px',
41 ],
42
43
44 'icon' => [
45 'type' => 'text',
46 'title' => __( 'Icon', 'button-generation' ),
47 'addon' => [
48 'name' => 'icon_type',
49 'type' => 'select',
50 'val' => 'icon',
51 'atts' => [
52 'icon' => __( 'Icons', 'button-generation' ),
53 ]
54 ],
55 'atts' => [
56 'class' => 'wpie-icon-picker',
57 ],
58 ],
59
60 'rotate_icon' => [
61 'type' => 'select',
62 'title' => __( 'Rotate icon', 'button-generation' ),
63 'atts' => [
64 '' => __( 'None', 'button-generation' ),
65 'fa-rotate-90' => '90°',
66 'fa-rotate-180' => '180°',
67 'fa-rotate-270' => '270°',
68 'custom' => __( 'Custom', 'button-generation' ),
69 ],
70 ],
71
72 'rotate_icon_custom' => [
73 'type' => 'number',
74 'title' => __( 'Degree', 'button-generation' ),
75 'val' => 0,
76 'addon' => '&deg;',
77 ],
78
79 'item_type' => [
80 'type' => 'select',
81 'title' => __( 'Item type', 'button-generation' ),
82 'atts' => Settings_Helper::item_type(),
83 ],
84
85 'item_link' => [
86 'type' => 'text',
87 'title' => __( 'Link', 'button-generation' ),
88 'class' => 'is-hidden',
89 ],
90
91 'button_class' => [
92 'type' => 'text',
93 'title' => __( 'Class', 'button-generation' ),
94 ],
95
96 'button_id' => [
97 'type' => 'text',
98 'title' => __( 'ID', 'button-generation' ),
99 ],
100
101 'aria_label' => [
102 'type' => 'text',
103 'title' => __( 'Aria label', 'button-generation' ),
104 ],
105
106 ];