PluginProbe
Customify / 1.5.3
Customify v1.5.3
2.10.9 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.7.1 1.3.0 1.3.1 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.6.0 1.6.0.1 1.6.5 1.7.0 1.7.1 All 77 releases
customify / customify_config.php

customify_config.php in Customify 1.5.3, at customify_config.php

356 lines 9.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * This filter is used to change the Customizer Options
5 * You can also copy this function inside your functions.php
6 * file but DO NOT FORGET TO CHANGE ITS NAME
7 *
8 * @param $config array This holds required keys for the plugin config like 'opt-name', 'panels', 'settings'
9 * @return $config
10 */
11
12 if ( ! function_exists('add_customify_base_options') ) {
13
14 function add_customify_base_options( $config ) {
15
16 $config['opt-name'] = 'customify_defaults';
17
18 $config['sections'] = array(
19 /**
20 * Presets - This section will handle other options
21 */
22 'presets_section' => array(
23 'title' => __( 'Style Presets', 'customify' ),
24 'options' => array(
25 'theme_style' => array(
26 'type' => 'preset',
27 'label' => __( 'Select a style:', 'customify' ),
28 'desc' => __( 'Conveniently change the design of your site with built-in style presets. Easy as pie.', 'customify' ),
29 'default' => 'royal',
30 'choices_type' => 'awesome',
31 'choices' => array(
32 'royal' => array(
33 'label' => __( 'Royal', 'customify' ),
34 'preview' => array(
35 'color-text' => '#ffffff',
36 'background-card' => '#615375',
37 'background-label' => '#46414c',
38 'font-main' => 'Abril Fatface',
39 'font-alt' => 'PT Serif',
40 ),
41 'options' => array(
42 'links_color' => '#8eb2c5',
43 'headings_color' => '#725c92',
44 'body_color' => '#6f8089',
45 'page_background' => '#615375',
46 'headings_font' => 'Abril Fatface',
47 'body_font' => 'PT Serif',
48 )
49 ),
50 'lovely' => array(
51 'label' => __( 'Lovely', 'customify' ),
52 'preview' => array(
53 'color-text' => '#ffffff',
54 'background-card' => '#d15c57',
55 'background-label' => '#5c374b',
56 'font-main' => 'Playfair Display',
57 'font-alt' => 'Playfair Display',
58 ),
59 'options' => array(
60 'links_color' => '#cc3747',
61 'headings_color' => '#d15c57',
62 'body_color' => '#5c374b',
63 'page_background' => '#d15c57',
64 'headings_font' => 'Playfair Display',
65 'body_font' => 'Playfair Display',
66 )
67 ),
68 'queen' => array(
69 'label' => __( 'Queen', 'customify' ),
70 'preview' => array(
71 'color-text' => '#fbedec',
72 'background-card' => '#773347',
73 'background-label' => '#41212a',
74 'font-main' => 'Cinzel Decorative',
75 'font-alt' => 'Gentium Basic',
76 ),
77 'options' => array(
78 'links_color' => '#cd8085',
79 'headings_color' => '#54323c',
80 'body_color' => '#cd8085',
81 'page_background' => '#fff',
82 'headings_font' => 'Cinzel Decorative',
83 'body_font' => 'Gentium Basic',
84 )
85 ),
86 'carrot' => array(
87 'label' => __( 'Carrot', 'customify' ),
88 'preview' => array(
89 'color-text' => '#ffffff',
90 'background-card' => '#df421d',
91 'background-label' => '#85210a',
92 'font-main' => 'Oswald',
93 'font-alt' => 'PT Sans Narrow',
94 ),
95 'options' => array(
96 'links_color' => '#df421d',
97 'headings_color' => '#df421d',
98 'body_color' => '#7e7e7e',
99 'page_background' => '#fff',
100 'headings_font' => 'Oswald',
101 'body_font' => 'PT Sans Narrow',
102 )
103 ),
104
105
106
107 'adler' => array(
108 'label' => __( 'Adler', 'customify' ),
109 'preview' => array(
110 'color-text' => '#fff',
111 'background-card' => '#0e364f',
112 'background-label' => '#000000',
113 'font-main' => 'Permanent Marker',
114 'font-alt' => 'Droid Sans Mono',
115 ),
116 'options' => array(
117 'links_color' => '#68f3c8',
118 'headings_color' => '#0e364f',
119 'body_color' => '#45525a',
120 'page_background' => '#ffffff',
121 'headings_font' => 'Permanent Marker',
122 'body_font' => 'Droid Sans Mono'
123 )
124 ),
125 'velvet' => array(
126 'label' => __( 'Velvet', 'customify' ),
127 'preview' => array(
128 'color-text' => '#ffffff',
129 'background-card' => '#282828',
130 'background-label' => '#000000',
131 'font-main' => 'Pinyon Script',
132 'font-alt' => 'Josefin Sans',
133 ),
134 'options' => array(
135 'links_color' => '#000000',
136 'headings_color' => '#000000',
137 'body_color' => '#000000',
138 'page_background' => '#000000',
139 'headings_font' => 'Pinyon Script',
140 'body_font' => 'Josefin Sans',
141 )
142 ),
143
144 )
145 ),
146 )
147 ),
148
149 /**
150 * COLORS - This section will handle different elements colors (eg. links, headings)
151 */
152 'colors_section' => array(
153 'title' => __( 'Colors', 'customify' ),
154 'options' => array(
155 'links_color' => array(
156 'type' => 'color',
157 'label' => __( 'Links Color', 'customify' ),
158 'live' => true,
159 'default' => '#6c6e70',
160 'css' => array(
161 array(
162 'property' => 'color',
163 'selector' => 'a, .entry-meta a',
164 ),
165 )
166 ),
167 'headings_color' => array(
168 'type' => 'color',
169 'label' => __( 'Headings Color', 'customify' ),
170 'live' => true,
171 'default' => '#0aa0d9',
172 'css' => array(
173 array(
174 'property' => 'color',
175 'selector' => '.site-title a, h1, h2, h3, h4, h5, h6,
176 h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
177 .widget-title,
178 a:hover, .entry-meta a:hover'
179 )
180 )
181 ),
182 'body_color' => array(
183 'type' => 'color',
184 'label' => __( 'Body Color', 'customify' ),
185 'live' => true,
186 'default' => '#2d3033',
187 'css' => array(
188 array(
189 'selector' => 'body',
190 'property' => 'color'
191 )
192 )
193 )
194 )
195 ),
196
197 /**
198 * FONTS - This section will handle different elements fonts (eg. headings, body)
199 */
200 'typography_section' => array(
201 'title' => __( 'Fonts', 'customify' ),
202 'options' => array(
203 'headings_font' => array(
204 'type' => 'typography',
205 'label' => __( 'Headings', 'customify' ),
206 'default' => 'Playfair Display',
207 'selector' => '.site-title a, h1, h2, h3, h4, h5, h6,
208 h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
209 .widget-title',
210 'font_weight' => true,
211 'subsets' => true,
212 'recommended' => array(
213 'Playfair Display',
214 'Oswald',
215 'Lato',
216 'Open Sans',
217 'Exo',
218 'PT Sans',
219 'Ubuntu',
220 'Vollkorn',
221 'Lora',
222 'Arvo',
223 'Josefin Slab',
224 'Crete Round',
225 'Kreon',
226 'Bubblegum Sans',
227 'The Girl Next Door',
228 'Pacifico',
229 'Handlee',
230 'Satify',
231 'Pompiere'
232 )
233 ),
234 'body_font' => array(
235 'type' => 'typography',
236 'label' => __( 'Body Text', 'customify' ),
237 'default' => 'Lato',
238 'selector' => 'html body',
239 'load_all_weights' => true,
240 'recommended' => array(
241 'Lato',
242 'Open Sans',
243 'PT Sans',
244 'Cabin',
245 'Gentium Book Basic',
246 'PT Serif',
247 'Droid Serif'
248 )
249 )
250 )
251 ),
252
253 /**
254 * BACKGROUNDS - This section will handle different elements colors (eg. links, headings)
255 */
256 'backgrounds_section' => array(
257 'title' => __( 'Backgrounds', 'customify' ),
258 'options' => array(
259 'page_background' => array(
260 'type' => 'color',
261 'label' => __( 'Page Background', 'customify' ),
262 'live' => true,
263 'default' => '#ffffff',
264 'css' => array(
265 array(
266 'property' => 'background',
267 'selector' => 'body, .site',
268 )
269 )
270 ),
271 )
272 ),
273 /**
274 * LAYOUTS - This section will handle different elements colors (eg. links, headings)
275 */
276 'layout_options' => array(
277 'title' => __( 'Layout', 'customify' ),
278 'options' => array(
279 'site_title_size' => array(
280 'type' => 'range',
281 'label' => 'Site Title Size',
282 'live' => true,
283 'input_attrs' => array(
284 'min' => 24,
285 'max' => 100,
286 'step' => 1,
287 'data-preview' => true
288 ),
289 'default' => 24,
290 'css' => array(
291 array(
292 'property' => 'font-size',
293 'selector' => '.site-title',
294 'media' => 'screen and (min-width: 1000px)',
295 'unit' => 'px',
296 )
297 )
298 ),
299 'page_content_spacing' => array(
300 'type' => 'range',
301 'label' => 'Page Content Spacing',
302 'live' => true,
303 'input_attrs' => array(
304 'min' => 0,
305 'max' => 100,
306 'step' => 1,
307 ),
308 'default' => 18,
309 'css' => array(
310 array(
311 'property' => 'padding',
312 'selector' => '.site-content',
313 'media' => 'screen and (min-width: 1000px)',
314 'unit' => 'px',
315 )
316 )
317 )
318 )
319 )
320 );
321
322 /**
323 * A self explanatory example of panels **
324 **/
325 // $config['panels'] = array(
326 // 'panel_id' => array(
327 // 'title' => __( 'Panel Title', 'customify' ),
328 // 'sections' => array(
329 // 'panel_section' => array(
330 // 'title' => __( 'Section Title', 'customify' ),
331 // 'options' => array(
332 // 'setting_id' => array(
333 // 'type' => 'color',
334 // 'label' => __( 'Label', 'customify' ),
335 // 'live' => true, // or false
336 // 'default' => '#6c6e70',
337 // 'css' => array(
338 // array(
339 // 'property' => 'color',
340 // 'selector' => 'a, .entry-meta a',
341 // ),
342 // )
343 // ),
344 // )
345 // )
346 // )
347 // )
348 // );
349
350 return $config;
351 }
352 }
353
354
355 add_filter( 'customify_filter_fields', 'add_customify_base_options' );
356