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

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

196 lines 5.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" => __('Font family','visual-slider'),
7 "id" => "text_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" => "text_font_size",
17
18 "group" => __('Typography','visual-slider'),
19 "type" => "number",
20 "unit" => "px",
21 "min" => "0",
22 "max" => "200",
23
24
25
26 );
27 $option[]= array(
28 "responsive" => "desktop",
29 "name" => __('Linr Height','visual-slider'),
30 "id" => "text_line_height",
31 "group" => __('Typography','visual-slider'),
32 "type" => "number",
33 "step" => "0.1",
34 "min" => "0",
35 "max" => "3",
36 "unit" => "em",
37
38
39 );
40
41 $option[]= array(
42 "name" => __('Font Weight','visual-slider'),
43 "id" => "text_font_weight",
44 "group" => __('Typography','visual-slider'),
45 "type" => "select",
46 "options" =>
47 array(
48 "normal" => __('Normal','visual-slider'),
49 "bold" => __('Bold','visual-slider'),
50 "300" => '300',
51 "400" => '400',
52 "500" => '500',
53 "600" => '600',
54 "700" => '700',
55 "800" => '800',
56 "900" => '900',
57
58 ),
59
60
61 );
62
63
64
65 $option[]= array(
66 "name" => __('Text Decoration','visual-slider'),
67 "id" => "text_font_decoration",
68 "group" => __('Typography','visual-slider'),
69 "type" => "select",
70 "options" =>
71 array(
72 "" =>__('Default','visual-slider'),
73 "overline" => __('Overline','visual-slider'),
74 "line-through" => __('Line-Through','visual-slider'),
75 "underline" => __('Underline','visual-slider'),
76 ),
77
78 );
79
80 $option[]= array(
81 "name" => __('Font Style','visual-slider'),
82 "id" => "text_font_style",
83 "group" => __('Typography','visual-slider'),
84 "type" => "select",
85 "options" =>
86 array(
87 "" => __('Default','visual-slider'),
88 "normal" => __('Normal','visual-slider'),
89 "italic" => __('italic','visual-slider'),
90 "oblique" => __('oblique','visual-slider'),
91 ),
92
93 );
94 $option[]= array(
95 "name" => __('Text Transform','visual-slider'),
96 "id" => "text_font_transform",
97 "group" => __('Typography','visual-slider'),
98 "type" => "select",
99 "options" =>
100 array(
101 "" => __('Default','visual-slider'),
102 "uppercase" => __('Uppercase','visual-slider'),
103 "lowercase" => __('Lowercase','visual-slider'),
104 "capitalize" => __('Capitalize','visual-slider'),
105 ),
106
107 );
108
109
110 $option[]= array(
111 "name" => __('Letter Spacing','visual-slider'),
112 "id" => "text_spacing",
113 "group" => __('Typography','visual-slider'),
114 "type" => "number",
115 "min" => "-5",
116 "step" => "0.5",
117
118 "max" => "10",
119
120 );
121
122
123 if(!empty(wp_unslash(filter_input( INPUT_POST, 'vs_tablet', FILTER_VALIDATE_BOOLEAN )))){
124
125 $option[]= array(
126 "responsive" => "tablet",
127 "name" => __('Responsive on Tablet','visual-slider'),
128 "group" => __('Typography','visual-slider'),
129 "id" => "tablet_typography_heading",
130 "type" => "heading",
131 );
132 $option[]= array(
133 "responsive" => "tablet",
134 "name" => __('Font Size in Tablet','visual-slider'),
135 "id" => "tablet_text_font_size",
136 "group" => __('Typography','visual-slider'),
137 "type" => "number",
138 "unit" => "px",
139 "max" => "200",
140
141
142
143 );
144 $option[]= array(
145 "responsive" => "tablet",
146 "name" => __('Line Height in Tablet','visual-slider'),
147 "id" => "tablet_text_line_height",
148 "group" => __('Typography','visual-slider'),
149 "type" => "number",
150 "step" => "0.1",
151 "max" => "3",
152 "unit" => "em",
153
154
155 );
156
157
158
159 }
160 if(!empty(wp_unslash(filter_input( INPUT_POST, 'vs_mobile', FILTER_VALIDATE_BOOLEAN )))){
161
162 $option[]= array(
163 "responsive" => "mobile",
164 "name" => __('Responsive on Mobile','visual-slider'),
165 "group" => __('Typography','visual-slider'),
166 "id" => "mobile_typography_heading",
167 "type" => "heading",
168 );
169 $option[]= array(
170 "responsive" => "mobile",
171 "name" => __('Font Size on Mobile','visual-slider'),
172 "id" => "mobile_text_font_size",
173 "group" => __('Typography','visual-slider'),
174 "type" => "number",
175 "unit" => "px",
176 "max" => "200",
177
178
179
180 );
181 $option[]= array(
182 "responsive" => "mobile",
183 "name" => __('Line Height in Mobile','visual-slider'),
184 "id" => "mobile_text_line_height",
185 "group" => __('Typography','visual-slider'),
186 "type" => "number",
187 "step" => "0.1",
188 "min" => "0",
189 "max" => "3",
190 "unit" => "em",
191
192
193 );
194
195
196 }