PluginProbe
Visual Slider / trunk
Visual Slider vtrunk
visual-slider / layer / mini / button_typography.php

button_typography.php in Visual Slider trunk, at layer/mini/button_typography.php

160 lines 4.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit; // Exit if accessed directly.
4 }
5 $option[]= array(
6 "name" => __('Button Font Family','visual-slider'),
7 "id" => "button_fontfamily",
8 "group" => __('Typography','visual-slider'),
9 "type" => "select",
10 "options" => vs_array_options('fontfamily'),
11
12 );
13 $option[]= array(
14 "responsive" => "desktop",
15 "name" => __('Font Size','visual-slider'),
16 "id" => "button_font_size",
17 "group" => __('Typography','visual-slider'),
18 "type" => "number",
19 "unit" => "px",
20 "max" => "200",
21
22
23
24 );
25
26
27 $option[]= array(
28 "name" => __('Font Weight','visual-slider'),
29 "id" => "button_font_weight",
30 "group" => __('Typography','visual-slider'),
31 "type" => "select",
32 "options" =>
33 array(
34 "normal" => __('Normal','visual-slider'),
35 "bold" => __('Bold','visual-slider') ,
36 "300" => '300',
37 "400" => '400',
38 "500" => '500',
39 "600" => '600',
40 "700" => '700',
41 "800" => '800',
42 "900" => '900',
43
44 ),
45
46
47 );
48
49
50
51 $option[]= array(
52 "name" => __('Font Decoration','visual-slider'),
53 "id" => "button_font_decoration",
54 "group" => __('Typography','visual-slider'),
55 "type" => "select",
56 "options" =>
57 array(
58 "" => __('Default','visual-slider'),
59 "overline" => __('Overline','visual-slider'),
60 "line-through" => __('Line-Through','visual-slider'),
61 "underline" => __('Underline','visual-slider'),
62 ),
63
64 );
65
66 $option[]= array(
67 "name" => __('Font Style','visual-slider'),
68 "id" => "button_font_style",
69 "group" => __('Typography','visual-slider'),
70 "type" => "select",
71 "options" =>
72 array(
73 "" => __('Default','visual-slider'),
74 "normal" => __('Normal','visual-slider'),
75 "italic" => __('italic','visual-slider'),
76 "oblique" => __('oblique','visual-slider'),
77 ),
78
79 );
80 $option[]= array(
81 "name" => __('Text Transform','visual-slider'),
82 "id" => "button_font_transform",
83 "group" => __('Typography','visual-slider'),
84 "type" => "select",
85 "options" =>
86 array(
87 "" => __('Default','visual-slider'),
88 "uppercase" => __('Uppercase','visual-slider'),
89 "lowercase" => __('Lowercase','visual-slider'),
90 "capitalize" => __('Capitalize','visual-slider'),
91 ),
92
93 );
94
95
96 $option[]= array(
97 "name" => __('Letter Spacing','visual-slider'),
98 "id" => "button_spacing",
99 "group" => __('Typography','visual-slider'),
100 "type" => "number",
101 "min" => "-5",
102 "step" => "0.5",
103
104 "max" => "10",
105
106 );
107
108
109
110 if(!empty(wp_unslash(filter_input( INPUT_POST, 'vs_tablet', FILTER_VALIDATE_BOOLEAN )))){
111 $option[]= array(
112 "responsive" => "tablet",
113 "name" => __('Responsive on Tablet','visual-slider'),
114 "group" => __('Typography','visual-slider'),
115 "id" => "tablet_typography_heading",
116 "type" => "heading",
117 );
118 $option[]= array(
119 "responsive" => "tablet",
120 "name" => __('Font Size on Tablet','visual-slider'),
121 "id" => "tablet_button_font_size",
122 "group" => __('Typography','visual-slider'),
123 "type" => "number",
124 "unit" => "px",
125 "max" => "200",
126
127
128
129 );
130
131
132
133 }
134 if(!empty(wp_unslash(filter_input( INPUT_POST, 'vs_mobile', FILTER_VALIDATE_BOOLEAN )))){
135
136 $option[]= array(
137 "responsive" => "mobile",
138
139 "name" => __('Responsive on Mobile','visual-slider'),
140 "group" => __('Typography','visual-slider'),
141 "id" => "mobile_typography_heading",
142 "type" => "heading",
143 );
144 $option[]= array(
145 "responsive" => "mobile",
146
147 "name" => __('Font Size on Mobile','visual-slider'),
148 "id" => "mobile_button_font_size",
149 "group" => __('Typography','visual-slider'),
150 "type" => "number",
151 "unit" => "px",
152 "max" => "200",
153
154
155
156 );
157
158
159
160 }