-
Notifications
You must be signed in to change notification settings - Fork 30
/
cherry-options.php
1894 lines (1854 loc) · 65.4 KB
/
cherry-options.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
function cherry_defaults_settings() {
$all_pages = array();
$all_pages_obj = get_pages( 'sort_column=post_parent,menu_order' );
$all_pages[''] = __( 'Select a page:', 'cherry' );
foreach ( $all_pages_obj as $page ) {
$all_pages[ $page->ID ] = $page->post_title;
}
$maintenance_preview = esc_url(
add_query_arg(
array(
'maintenance-preview' => true,
'nonce' => wp_create_nonce( 'cherry-maintenance-preview' )
),
home_url( '/' )
)
);
$sticky_selectors = apply_filters( 'cherry_sticky_selectors', array(
'.site-header' => __( 'Header', 'cherry' ),
'#menu-primary' => __( 'Main menu', 'cherry' ),
'#static-area-header-top' => __( 'Header top static area', 'cherry' ),
) );
$default_selector = array_keys( $sticky_selectors );
$default_selector = $default_selector[0];
//////////////////////////////////////////////////////////////////////
// General
//////////////////////////////////////////////////////////////////////
$general_options = array();
$general_options['general-favicon'] = array(
'type' => 'media',
'title' => __( 'Favicon image', 'cherry' ),
'description' => __( 'Icon image that is displayed in the browser address bar and browser tab heading.', 'cherry' ),
'hint' => array(
'type' => 'text',
'content' => __( 'Max icon size: 32x32 px <br>You can also upload favicon for retina displays. Max retina icon size: 152x152 px', 'cherry' ),
),
'value' => '',
'display_image' => true,
'multi_upload' => true,
'return_data_type' => 'url',
'library_type' => 'image',
);
$general_options['general-maintenance-mode'] = array(
'type' => 'switcher',
'title' => sprintf(
__( 'Maintenance mode. <a href="%s" target="_blank">Preview</a>', 'cherry' ),
$maintenance_preview
),
'description' => __( 'Enable/disable maintenance mode.', 'cherry' ),
'hint' => array(
'type' => 'text',
'content' => __( "Logged in administrator gets full access to the site, while regular visitors will\won't be redirected to the page chosen below.", 'cherry' )
),
'value' => 'false',
);
$general_options['general-maintenance-page'] = array(
'type' => 'select',
'title' => __( 'Maintenance page', 'cherry' ),
'description' => __( 'Select page that regular visitors will see if maintenance mode is enabled.', 'cherry' ),
'value' => '',
'class' => 'width-full',
'options' => $all_pages,
);
$general_options['general-smoothscroll'] = array(
'type' => 'switcher',
'title' => __( 'Document smooth scroll', 'cherry' ),
'description' => __( 'Enable/disable smooth vertical mousewheel scrolling (Chrome browser only).', 'cherry' ),
'value' => 'false',
);
$general_options['general-user-css'] = array(
'type' => 'ace-editor',
'title' => __( 'User CSS', 'cherry' ),
'description' => __( 'Define custom CSS styling.', 'cherry' ),
'editor_mode' => 'css',
'editor_theme' => 'monokai',
'value' => '',
);
//////////////////////////////////////////////////////////////////////
// Grid options
//////////////////////////////////////////////////////////////////////
$grid_options = array();
$grid_options['grid-responsive'] = array(
'type' => 'switcher',
'title' => __( 'Responsive grid', 'cherry' ),
'description' => __( 'Enable/disable responsive grid. ', 'cherry' ),
'hint' => array(
'type' => 'text',
'content' => __('If for any reason you want to disable responsive layout for your site, you are able to turn it off here.', 'cherry' ),
),
'value' => 'true',
);
$grid_options['grid-container-width'] = array(
'type' => 'slider',
'title' => __( 'Container width', 'cherry' ),
'description' => __( 'Width of header/content/footer container in pixels.', 'cherry' ),
'max_value' => 1920, // Full HD
'min_value' => 970,
'value' => 1170,
);
// Layouts
////////////////////////////////////////////////////////////////////////
$layouts_options['page-layout'] = array(
'type' => 'radio',
'title' => __( 'Pages', 'cherry' ),
'hint' => array(
'type' => 'text',
'content' => __( 'You can choose if you want to display sidebars and how you want to display them.', 'cherry' ),
),
'value' => 'content-sidebar',
'display_input' => false,
'options' => array(
'sidebar-content' => array(
'label' => __( 'Left sidebar', 'cherry' ),
'img_src' => PARENT_URI . '/lib/admin/assets/images/svg/page-layout-left-sidebar.svg',
),
'content-sidebar' => array(
'label' => __( 'Right sidebar', 'cherry' ),
'img_src' => PARENT_URI . '/lib/admin/assets/images/svg/page-layout-right-sidebar.svg',
),
'sidebar-content-sidebar' => array(
'label' => __( 'Left and right sidebar', 'cherry' ),
'img_src' => PARENT_URI . '/lib/admin/assets/images/svg/page-layout-both-sidebar.svg',
),
'sidebar-sidebar-content' => array(
'label' => __( 'Two sidebars on the left', 'cherry' ),
'img_src' => PARENT_URI . '/lib/admin/assets/images/svg/page-layout-sameside-left-sidebar.svg',
),
'content-sidebar-sidebar' => array(
'label' => __( 'Two sidebars on the right', 'cherry' ),
'img_src' => PARENT_URI . '/lib/admin/assets/images/svg/page-layout-sameside-right-sidebar.svg',
),
'no-sidebar' => array(
'label' => __( 'No sidebar', 'cherry' ),
'img_src' => PARENT_URI . '/lib/admin/assets/images/svg/page-layout-fullwidth.svg',
),
)
);
$layouts_options['single-post-layout'] = array(
'type' => 'radio',
'title' => __( 'Blog posts', 'cherry' ),
'hint' => array(
'type' => 'text',
'content' => __( 'You can choose if you want to display sidebars and how you want to display them.', 'cherry' ),
),
'value' => 'content-sidebar',
'display_input' => false,
'options' => array(
'sidebar-content' => array(
'label' => __( 'Left sidebar', 'cherry' ),
'img_src' => PARENT_URI . '/lib/admin/assets/images/svg/page-layout-left-sidebar.svg',
),
'content-sidebar' => array(
'label' => __( 'Right sidebar', 'cherry' ),
'img_src' => PARENT_URI . '/lib/admin/assets/images/svg/page-layout-right-sidebar.svg',
),
'sidebar-content-sidebar' => array(
'label' => __( 'Left and right sidebar', 'cherry' ),
'img_src' => PARENT_URI . '/lib/admin/assets/images/svg/page-layout-both-sidebar.svg',
),
'sidebar-sidebar-content' => array(
'label' => __( 'Two sidebars on the left', 'cherry' ),
'img_src' => PARENT_URI . '/lib/admin/assets/images/svg/page-layout-sameside-left-sidebar.svg',
),
'content-sidebar-sidebar' => array(
'label' => __( 'Two sidebars on the right', 'cherry' ),
'img_src' => PARENT_URI . '/lib/admin/assets/images/svg/page-layout-sameside-right-sidebar.svg',
),
'no-sidebar' => array(
'label' => __( 'No sidebar', 'cherry' ),
'img_src' => PARENT_URI . '/lib/admin/assets/images/svg/page-layout-fullwidth.svg',
),
)
);
//////////////////////////////////////////////////////////////////////
// Blog options
//////////////////////////////////////////////////////////////////////
$blog_options = array();
$blog_options['blog-featured-images'] = array(
'type' => 'switcher',
'title' => __( 'Featured Media', 'cherry' ),
'description' => __( 'Displays Featured Image, Gallery, Audio, Video in blog posts listing depending on post type.', 'cherry' ),
'value' => 'true',
);
$blog_options['blog-featured-images-size'] = array(
'type' => 'select',
'title' => __( 'Featured Image Size', 'cherry' ),
'hint' => array(
'type' => 'text',
'content' => __( 'Set dimensions for post featured images.', 'cherry' ),
),
'class' => 'width-full',
'description' => __( 'Set dimensions for post featured images.', 'cherry' ),
'value' => 'cherry-thumb-l',
'options' => array(
'cherry-thumb-s' => __( 'Small', 'cherry' ),
'cherry-thumb-l' => __( 'Large', 'cherry' ),
)
);
$blog_options['blog-featured-images-align'] = array(
'type' => 'select',
'title' => __( 'Featured Image Alignment', 'cherry' ),
'description' => __( 'Set alignment for post featured images.', 'cherry' ),
'value' => 'aligncenter',
'class' => 'width-full',
'options' => array(
'alignnone' => __( 'None', 'cherry' ),
'alignleft' => __( 'Left', 'cherry' ),
'alignright' => __( 'Right', 'cherry' ),
'aligncenter' => __( 'Center', 'cherry' ),
)
);
$blog_options['blog-content-type'] = array(
'type' => 'select',
'title' => __( 'Post content', 'cherry' ),
'description' => __( 'Select how you want to display post content in blog listing', 'cherry' ),
'hint' => array(
'type' => 'text',
'content' => __( 'The following options are available:<br>`full` - display full post content, <br>`part` - display part of the post (you can specify content part length below), <br>`none` - hide post content.', 'cherry' ),
),
'value' => 'part',
'class' => 'width-full',
'options' => array(
'none' => __( 'None', 'cherry' ),
'part' => __( 'Part', 'cherry' ),
'full' => __( 'Full', 'cherry' ),
)
);
$blog_options['blog-excerpt-length'] = array(
'type' => 'slider',
'title' => __( 'Content Part length', 'cherry' ),
'description' => __( 'Specify number of words displayed in blog listing content part. Will not work if post has an excerpt.', 'cherry' ),
'max_value' => 500,
'min_value' => 1,
'value' => 55,
);
$blog_options['blog-button'] = array(
'type' => 'switcher',
'title' => __( 'More button', 'cherry' ),
'description' => __( 'Enable/Disable read more button in blog listing.', 'cherry' ),
'value' => 'true',
);
$blog_options['blog-button-text'] = array(
'type' => 'text',
'title' => __( 'More button label', 'cherry' ),
'description' => __( 'Specify read more button label text. ', 'cherry' ),
'value' => __( 'read more', 'cherry' ),
);
// Post
////////////////////////////////////////////////////////////////////////
$post_single_options['blog-post-featured-image'] = array(
'type' => 'switcher',
'title' => __( 'Featured Image', 'cherry' ),
'description' => __( 'Display featured image on the single post page.', 'cherry' ),
'value' => 'true',
);
$post_single_options['blog-post-featured-image-size'] = array(
'type' => 'select',
'title' => __( 'Size of Featured Image', 'cherry' ),
'description' => __( 'Set dimensions for single post featured images.', 'cherry' ),
'value' => 'cherry-thumb-l',
'class' => 'width-full',
'options' => array(
'cherry-thumb-s' => __( 'Small', 'cherry' ),
'cherry-thumb-l' => __( 'Large', 'cherry' ),
)
);
$post_single_options['blog-post-featured-image-align'] = array(
'type' => 'select',
'title' => __( 'Alignment of Featured Image', 'cherry' ),
'description' => __( 'Set alignment for single post featured images.', 'cherry' ),
'value' => 'aligncenter',
'class' => 'width-full',
'options' => array(
'alignnone' => __( 'None', 'cherry' ),
'alignleft' => __( 'Left', 'cherry' ),
'alignright' => __( 'Right', 'cherry' ),
'aligncenter' => __( 'Center', 'cherry' ),
)
);
$post_single_options['blog-post-navigation'] = array(
'type' => 'switcher',
'title' => __( 'Navigation', 'cherry' ),
'description' => __( 'Enable/disable post navigation block.', 'cherry' ),
'value' => 'true',
);
$post_single_options['blog-post-author-bio'] = array(
'type' => 'switcher',
'title' => __( 'Author bio', 'cherry' ),
'description' => __( 'Enable/disable author bio block. Author bio block is displayed on the post page.', 'cherry' ),
'value' => 'true',
);
$post_single_options['blog-related-posts'] = array(
'type' => 'switcher',
'title' => __( 'Related posts', 'cherry' ),
'description' => __( 'Enable/disable related posts block. Related posts block is displayed on the post page.', 'cherry' ),
'value' => 'true',
);
$post_single_options['blog-comment-status'] = array(
'type' => 'switcher',
'title' => __( 'Allow comments', 'cherry' ),
'description' => __( 'Enable/disable comments for blog posts.', 'cherry' ),
'hint' => array(
'type' => 'text',
'content' => __( 'Make sure comments are enabled in Wordpress \'settings->discussion\'. For posts that have already been published you need to enable comments individually in post settings.', 'cherry' ),
),
'value' => 'true',
);
$post_single_options['blog-gallery-shortcode'] = array(
'type' => 'switcher',
'title' => __( 'Gallery slider', 'cherry' ),
'description' => __( 'Replace default Wordpress gallery shortcode with enhanced jQuery carousel.', 'cherry' ),
'value' => 'true',
);
$post_single_options['blog-add-ligthbox'] = array(
'type' => 'switcher',
'title' => __( 'Lightbox for images in a content', 'cherry' ),
'description' => __( 'Automatically adds lightbox for images in a post content.', 'cherry' ),
'value' => 'true',
);
// Meta
////////////////////////////////////////////////////////////////////////
$post_meta_options['blog-post-date'] = array(
'type' => 'switcher',
'title' => __( 'Date', 'cherry' ),
'description' => __( 'Show/Hide post publication date.', 'cherry' ),
'value' => 'true',
);
$post_meta_options['blog-post-author'] = array(
'type' => 'switcher',
'title' => __( 'Author', 'cherry' ),
'description' => __( 'Show/Hide post author.', 'cherry' ),
'value' => 'true',
);
$post_meta_options['blog-post-comments'] = array(
'type' => 'switcher',
'title' => __( 'Comments', 'cherry' ),
'description' => __( 'Show/Hide number of comments.', 'cherry' ),
'value' => 'true',
);
$post_meta_options['blog-categories'] = array(
'type' => 'switcher',
'title' => __( 'Categories', 'cherry' ),
'description' => __( 'Show/Hide post categories.', 'cherry' ),
'value' => 'true',
);
$post_meta_options['blog-tags'] = array(
'type' => 'switcher',
'title' => __( 'Tags', 'cherry' ),
'description' => __( 'Show/Hide post tags.', 'cherry' ),
'value' => 'true',
);
//////////////////////////////////////////////////////////////////////
// Styling options
//////////////////////////////////////////////////////////////////////
$styling_options = array();
//background image
$styling_options['body-background'] = array(
'type' => 'background',
'title' => __('Body background', 'cherry' ),
'description' => __( 'Set background for body container. ', 'cherry' ),
'hint' => array(
'type' => 'text',
'content' => __('You can specify background image or color, set background repeat, position and attachment. ', 'cherry' ),
),
'return_data_type' => 'url',
'library_type' => 'image',
'value' => array(
'image' => '',
'color' => '#FFFFFF',
'repeat' => 'repeat',
'position' => 'left',
'attachment' => 'fixed',
'clip' => 'padding-box',
'size' => 'cover',
'origin' => 'padding-box',
)
);
// Color scheme options
//////////////////////////////////////////////////////////////////////
$color_options = array();
$color_options['color-primary'] = array(
'type' => 'colorpicker',
'title' => __( 'Primary color', 'cherry' ),
'value' => '#f62e46',
);
$color_options['color-secondary'] = array(
'type' => 'colorpicker',
'title' => __( 'Secondary color', 'cherry' ),
'value' => '#333333',
);
$color_options['color-success'] = array(
'type' => 'colorpicker',
'title' => __( 'Success color', 'cherry' ),
'value' => '#dff0d8',
);
$color_options['color-info'] = array(
'type' => 'colorpicker',
'title' => __( 'Info color', 'cherry' ),
'value' => '#d9edf7',
);
$color_options['color-warning'] = array(
'type' => 'colorpicker',
'title' => __( 'Warning color', 'cherry' ),
'value' => '#fcf8e3',
);
$color_options['color-danger'] = array(
'type' => 'colorpicker',
'title' => __( 'Danger color', 'cherry' ),
'value' => '#f2dede',
);
$color_options['color-gray-variations'] = array(
'type' => 'colorpicker',
'title' => __( 'Primary gray color', 'cherry' ),
'hint' => array(
'type' => 'text',
'content' => 'Gray color hues</br>
<hr>
gray-darker: darken(20%)</br>
gray-dark: darken(15%)</br>
gray-light: lighten(15%)</br>
gray-lighter: lighten(20%)</br>'
),
'value' => '#555555',
);
//////////////////////////////////////////////////////////////////////
// Navigation options
//////////////////////////////////////////////////////////////////////
$navigation_options = array();
$navigation_options['typography-header-menu'] = array(
'type' => 'typography',
'title' => __( 'Header Menu Typography', 'cherry' ),
'description' => __( 'Main header navigation typography settings.', 'cherry' ),
'value' => array(
'fonttype' => 'web',
'size' => '14',
'lineheight' => '17',
'color' => '#474747',
'family' => 'Open Sans',
'character' => 'latin-ext',
'style' => '600',
'letterspacing' => '',
'align' => 'notdefined',
),
);
$navigation_options['typography-footer-menu'] = array(
'type' => 'typography',
'title' => __( 'Footer Menu Typography', 'cherry' ),
'description' => __( 'Main footer navigation typography settings.', 'cherry' ),
'value' => array(
'fonttype' => 'web',
'size' => '14',
'lineheight' => '17',
'color' => '#474747',
'family' => 'Open Sans',
'character' => 'latin-ext',
'style' => '',
'letterspacing' => '',
'align' => 'notdefined',
),
);
$navigation_options['navigation-arrow'] = array(
'type' => 'switcher',
'title' => __( 'Arrows markup', 'cherry' ),
'description' => __( 'Do you want to generate arrow mark-up?', 'cherry' ),
'value' => 'true',
'default_value' => 'true',
);
// Breadcrumbs options
//////////////////////////////////////////////////////////////////////
$breadcrumbs_options = array();
$breadcrumbs_options['breadcrumbs'] = array(
'type' => 'switcher',
'title' => __( 'Breadcrumbs', 'cherry' ),
'description' => __( 'Enable/disable breadcrumbs navigation.', 'cherry' ),
'value' => 'true',
'default_value' => 'true',
);
$breadcrumbs_options['breadcrumbs-show-title'] = array(
'type' => 'switcher',
'title' => __( 'Page title', 'cherry' ),
'description' => __( 'Show / hide current page title in breadcrumb navigation.', 'cherry' ),
'value' => 'true',
);
$breadcrumbs_options['breadcrumbs-display'] = array(
'type' => 'checkbox',
'title' => __( 'Breadcrumbs mobile', 'cherry' ),
'description' => __( 'Enable/disable breadcrumbs on mobile devices.', 'cherry' ),
'value' => array( 'tablet', 'mobile' ),
'hint' => array(
'type' => 'text',
'content' => __( 'Mobile — Extra small devices, phones (<768px) <br>Tablet — Small devices, tablets (<991px)', 'cherry' ),
),
'options' => array(
'mobile' => __( 'Mobile', 'cherry' ),
'tablet' => __( 'Tablet', 'cherry' ),
),
);
$breadcrumbs_options['breadcrumbs-show-on-front'] = array(
'type' => 'switcher',
'title' => __( 'Home page breadcrumbs', 'cherry' ),
'description' => __( 'If option defined in page setting, this global option will not be counted.', 'cherry' ),
'value' => 'false',
);
$breadcrumbs_options['breadcrumbs-home-title'] = array(
'type' => 'switcher',
'title' => __( 'Customize a Home page title?', 'cherry' ),
'value' => 'true',
'toggle' => array(
'true_toggle' => __( 'Yes', 'cherry' ),
'false_toggle' => __( 'No', 'cherry' ),
'true_slave' => 'breadcrumbs-home-title-true-slave',
'false_slave' => 'breadcrumbs-home-title-false-slave',
),
);
$breadcrumbs_options['breadcrumbs-custom-home-title'] = array(
'type' => 'text',
'title' => __( 'Home page title', 'cherry' ),
'description' => __( 'This is a customized title for a Home page.', 'cherry' ),
'value' => __( 'Home', 'cherry' ),
'class' => 'width-full',
'master' => 'breadcrumbs-home-title-true-slave',
);
$breadcrumbs_options['breadcrumbs-separator'] = array(
'type' => 'text',
'title' => __( 'Item separator', 'cherry' ),
'description' => __( 'Breadcrumbs separator symbol.', 'cherry' ),
'value' => '/',
'default_value' => '/',
'class' => 'width-full',
);
$breadcrumbs_options['breadcrumbs-prefix-path'] = array(
'type' => 'text',
'title' => __( 'Breadcrumbs prefix', 'cherry' ),
'description' => __( 'Text displayed before breadcrumbs navigation.', 'cherry' ),
'value' => __( 'You are here:', 'cherry' ),
);
// Page navigation options
//////////////////////////////////////////////////////////////////////
$pagination_option = array();
$pagination_option['pagination-position'] = array(
'type' => 'select',
'title' => __( 'Pagination position', 'cherry' ),
'description' => __( 'Select your pagination position.', 'cherry' ),
'value' => 'after',
'options' => array(
'after' => __( 'After posts loop', 'cherry' ),
'before' => __( 'Before posts loop', 'cherry' ),
'both' => __( 'Both', 'cherry' ),
),
);
$pagination_option['pagination-next-previous'] = array(
'type' => 'switcher',
'title' => __( 'Prev/next buttons', 'cherry' ),
'description' => __( 'Show/hide previous and next buttons in pagination.', 'cherry' ),
'value' => 'true',
);
$pagination_option['pagination-label'] = array(
'type' => 'text',
'title' => __( 'Pagination label', 'cherry' ),
'description' => __( 'Pagination label. Displayed before pagination buttons. Text or HTML can be used.', 'cherry' ),
'value' => __( 'Pages:', 'cherry' ),
);
$pagination_option['pagination-previous-page'] = array(
'type' => 'text',
'title' => __( 'Prev button label', 'cherry' ),
'description' => __( 'Previous button label text. Text or HTML can be used.', 'cherry' ),
'value' => '«',
);
$pagination_option['pagination-next-page'] = array(
'type' => 'text',
'title' => __( 'Next button label', 'cherry' ),
'description' => __( 'Next button label text. Text or HTML can be used.', 'cherry' ),
'value' => '»',
);
$pagination_option['pagination-show-all'] = array(
'type' => 'switcher',
'title' => __( 'Show all the pages', 'cherry' ),
'description' => __( 'If set to On, then it will show all of the pages instead of a short list of the pages near the current page.', 'cherry' ),
'value' => 'false',
);
$pagination_option['pagination-end-size'] = array(
'type' => 'stepper',
'title' => __( 'End size', 'cherry' ),
'description' => __( 'How many pages to display either at the top or at the end of the list.', 'cherry' ),
'value' => '1',
'value-step' => '1',
'max-value' => '99',
'min-value' => '1',
);
$pagination_option['pagination-mid-size'] = array(
'type' => 'stepper',
'title' => __( 'Mid size', 'cherry' ),
'description' => __( 'How many numbers to display to either side of current page, but not including current page.', 'cherry' ),
'value' => '2',
'value-step' => '1',
'max-value' => '9999',
'min-value' => '1',
);
//////////////////////////////////////////////////////////////////////
// Header options
//////////////////////////////////////////////////////////////////////
$header_options = array();
$header_options['header-background'] = array(
'type' => 'background',
'title' => __('Background', 'cherry' ),
'hint' => array(
'type' => 'text',
'content' => __( 'Header background settings. You can select background color, upload header background image, set its background position, attachment and repeat.', 'cherry' ),
),
'return_data_type' => 'id',
'library_type' => 'image',
'description' => __( 'Header background settings. You can select background color, upload header background image, set its background position, attachment and repeat.', 'cherry' ),
'return_data_type' => 'id',
'library_type' => 'image',
'value' => array(
'image' => '',
'color' => '',
'repeat' => 'repeat',
'position' => 'left',
'attachment' => 'fixed',
'clip' => 'padding-box',
'size' => 'cover',
'origin' => 'padding-box',
),
);
$header_options['header-grid-type'] = array(
'type' => 'radio',
'title' => __( 'Grid type', 'cherry' ),
'description' => __( 'Select layout pattern for header website. Wide layout will fit window width. Boxed layout will have fixed width.', 'cherry' ),
'value' => 'wide',
'display_input' => false,
'options' => array(
'wide' => array(
'label' => __( 'Wide', 'cherry' ),
'img_src' => PARENT_URI . '/lib/admin/assets/images/svg/grid-type-fullwidth.svg',
),
'boxed' => array(
'label' => __( 'Boxed', 'cherry' ),
'img_src' => PARENT_URI . '/lib/admin/assets/images/svg/grid-type-container.svg',
),
),
);
$header_options['header-boxed-width'] = array(
'type' => 'slider',
'title' => __( 'Boxed width', 'cherry' ),
'description' => __( 'Header width for `boxed` layout. Should not be more than `Grid -> Container width` value.', 'cherry' ),
'max_value' => 1920,
'min_value' => 970,
'value' => 1310,
);
$header_options['header-sticky'] = array(
'type' => 'switcher',
'title' => __( 'Sticky header', 'cherry' ),
'description' => __( 'Enable\disable fixed header that sticks to the top.', 'cherry' ),
'value' => 'false',
);
$header_options['header-sticky-selector'] = array(
'type' => 'select',
'title' => __( 'Sticky selector', 'cherry' ),
'description' => __( 'Select the block selector that will be used to build sticky panel. You can use tag name, class name, or id.', 'cherry' ),
'value' => $default_selector,
'options' => $sticky_selectors,
);
// Header Logo options
//////////////////////////////////////////////////////////////////////
$logo_options = array();
$logo_options['logo-type'] = array(
'type' => 'radio',
'title' => __( 'Logo type', 'cherry' ),
'description' => __( 'Select whether you want your main logo to be an image or text. ', 'cherry' ),
'hint' => array(
'type' => 'text',
'content' => __( 'If you select "image", you can choose logo image from the media library in the next option, and if you select "text", your WordPress Site Title will be shown instead.', 'cherry' ),
),
'value' => 'text',
'default_value' => 'text',
'class' => '',
'display_input' => true,
'options' => array(
'image' => array(
'label' => 'Image logo',
'img_src' => '',
'slave' => 'logo-type-image',
),
'text' => array(
'label' => 'Text logo',
'img_src' => '',
'slave' => 'logo-type-text',
),
),
);
$logo_options['logo-image-path'] = array(
'type' => 'media',
'title' => __( 'Logo image', 'cherry' ),
'description' => __( 'Click Choose Media button to select logo image from the media library or upload your image.', 'cherry' ),
'value' => '',
'multi-upload' => true,
'master' => 'logo-type-image',
);
$logo_options['typography-header-logo'] = array(
'type' => 'typography',
'title' => __( 'Logo typography', 'cherry' ),
'description' => __( 'Configuration settings for text logo. Here you can select logo font family, size, color, etc.', 'cherry' ),
'master' => 'logo-type-text',
'value' => array(
'fonttype' => 'web',
'size' => '30',
'lineheight' => '36',
'color' => '#444444',
'family' => 'Open Sans',
'character' => 'latin-ext',
'style' => '700',
'letterspacing' => '',
'align' => 'notdefined',
),
);
//////////////////////////////////////////////////////////////////////
// Page options
//////////////////////////////////////////////////////////////////////
$page_options = array();
$page_options['content-background'] = array(
'type' => 'background',
'title' => __( 'Background', 'cherry' ),
'hint' => array(
'type' => 'text',
'content' => __( 'Page background settings. You can select background color, upload footer background image, set its background position, attachment and repeat.', 'cherry' ),
),
'description' => __( 'Page background settings. You can select background color, upload footer background image, set its background position, attachment and repeat.', 'cherry' ),
'return_data_type' => 'id',
'library_type' => 'image',
'value' => array(
'image' => '',
'color' => '',
'repeat' => 'repeat',
'position' => 'left',
'attachment' => 'fixed',
'clip' => 'padding-box',
'size' => 'cover',
'origin' => 'padding-box',
)
);
$page_options['content-grid-type'] = array(
'type' => 'radio',
'title' => __( 'Grid type', 'cherry' ),
'description' => __( 'Select layout pattern for main website container. Wide layout will fit window width. Boxed layout will have fixed width and left/right indents. ', 'cherry' ),
'value' => 'boxed',
'display_input' => false,
'options' => array(
'wide' => array(
'label' => __( 'Wide', 'cherry' ),
'img_src' => PARENT_URI . '/lib/admin/assets/images/svg/grid-type-fullwidth.svg',
),
'boxed' => array(
'label' => __( 'Boxed', 'cherry' ),
'img_src' => PARENT_URI . '/lib/admin/assets/images/svg/grid-type-container.svg',
),
),
);
$page_options['content-boxed-width'] = array(
'type' => 'slider',
'title' => __( 'Boxed width', 'cherry' ),
'description' => __( 'Main content width for `boxed` layout. Should not be more than `Grid -> Container width` value.', 'cherry' ),
'max_value' => 1920,
'min_value' => 970,
'value' => 1310,
);
$page_options['page-featured-images'] = array(
'type' => 'switcher',
'title' => __( 'Featured Images', 'cherry' ),
'description' => __( 'Enable/disable featured images for pages.', 'cherry' ),
'value' => 'false',
);
$page_options['page-comments-status'] = array(
'type' => 'switcher',
'title' => __( 'Page comments', 'cherry' ),
'description' => __( "Enable/disable comments for pages by default. For pages that have already been published you need to enable comments individually in page settings.", 'cherry' ),
'value' => 'true',
);
//////////////////////////////////////////////////////////////////////
// Footer options
//////////////////////////////////////////////////////////////////////
$footer_options = array();
$footer_options['footer-background'] = array(
'type' => 'background',
'title' => __( 'Background', 'cherry' ),
'description' => __( 'Footer background settings. You can select background color, upload footer background image, set its background position, attachment and repeat.', 'cherry' ),
'return_data_type' => 'id',
'library_type' => 'image',
'value' => array(
'image' => '',
'color' => '#ddd',
'repeat' => 'repeat',
'position' => 'left',
'attachment' => 'fixed',
'clip' => 'padding-box',
'size' => 'cover',
'origin' => 'padding-box',
),
);
$footer_options['typography-footer'] = array(
'type' => 'typography',
'title' => __( 'Typography', 'cherry' ),
'description' => __( 'Typography settings for footer text.', 'cherry' ),
'value' => array(
'fonttype' => 'web',
'size' => '14',
'lineheight' => '30',
'color' => '#333333',
'family' => 'Roboto',
'character' => 'latin-ext',
'style' => '',
'letterspacing' => '',
'align' => 'notdefined',
),
);
$footer_options['footer-grid-type'] = array(
'type' => 'radio',
'title' => __( 'Grid type', 'cherry' ),
'description' => __( 'Select layout pattern for footer website. Wide layout will fit window width. Boxed layout will have fixed width.', 'cherry' ),
'value' => 'wide',
'display_input' => false,
'options' => array(
'wide' => array(
'label' => __( 'Wide', 'cherry' ),
'img_src' => PARENT_URI . '/lib/admin/assets/images/svg/grid-type-fullwidth.svg',
),
'boxed' => array(
'label' => __( 'Boxed', 'cherry' ),
'img_src' => PARENT_URI . '/lib/admin/assets/images/svg/grid-type-container.svg',
),
),
);
$footer_options['footer-boxed-width'] = array(
'type' => 'slider',
'title' => __( 'Boxed width', 'cherry' ),
'description' => __( 'Footer width for `boxed` layout. Should not be more than `Grid -> Container width` value.', 'cherry' ),
'max_value' => 1920,
'min_value' => 970,
'value' => 1310,
);
$footer_options['footer-text'] = array(
'type' => 'textarea',
'title' => __( 'Footer Info text', 'cherry' ),
'description' => __( 'Set custom text for Footer static info.', 'cherry' ),
'value' => '',
'multi-upload' => true,
);
// Footer Logo options
//////////////////////////////////////////////////////////////////////
$footer_logo_options = array();
$footer_logo_options['footer-logo-type'] = array(
'type' => 'radio',
'title' => __( 'Logo type', 'cherry' ),
'description' => __( 'Select whether you want your footer logo to be an image or text.', 'cherry' ),
'value' => 'text',
'default_value' => 'text',
'class' => '',
'display_input' => true,
'options' => array(
'image' => array(
'label' => 'Image logo',
'img_src' => '',
'slave' => 'footer-logo-type-image',
),
'text' => array(
'label' => 'Text logo',
'img_src' => '',
'slave' => 'footer-logo-type-text',
)
)
);
$footer_logo_options['footer-logo-image-path'] = array(
'type' => 'media',
'title' => __( 'Logo image', 'cherry' ),
'description' => __( 'Click Choose Media button to select logo image from the media library or upload your image.', 'cherry' ),
'value' => '',
'multi-upload' => true,
'master' => 'footer-logo-type-image',
);
$footer_logo_options['typography-footer-logo'] = array(
'type' => 'typography',
'title' => __( 'Logo typography', 'cherry' ),
'description' => __( 'Configuration settings for text logo. Here you can select logo font family, size, color, etc.', 'cherry' ),
'master' => 'footer-logo-type-text',
'value' => array(
'fonttype' => 'web',
'size' => '20',
'lineheight' => '25',
'color' => '#444444',
'family' => 'Open Sans',
'character' => 'latin-ext',
'style' => '700',
'letterspacing' => '',
'align' => 'notdefined',
),
);
//////////////////////////////////////////////////////////////////////
// Typography options
//////////////////////////////////////////////////////////////////////
$typography_options = array();
$typography_options['typography-body'] = array(
'type' => 'typography',
'title' => __( 'Body text', 'cherry' ),
'description' => __( 'Main website text typography options.', 'cherry' ),
'value' => array(
'fonttype' => 'web',
'size' => '12',
'lineheight' => '18',
'color' => '#333333',
'family' => 'Arial, Helvetica',
'character' => 'latin-ext',
'style' => 'regular',
'letterspacing' => '',
'align' => 'notdefined',
)
);
$typography_options['color-link'] = array(
'type' => 'colorpicker',
'title' => __( 'Link color', 'cherry' ),
'description' => __( 'Color of links.', 'cherry' ),
'value' => '#f62e46',
);
$typography_options['color-link-hover'] = array(
'type' => 'colorpicker',
'title' => __( 'Link hover color', 'cherry' ),
'description' => __( 'Color of links on hover.', 'cherry' ),
'value' => '#333333',
);
$typography_options['typography-input-text'] = array(
'type' => 'typography',
'title' => __( 'Input text', 'cherry' ),
'description' => __( 'Styling text in forms.', 'cherry' ),
'value' => array(
'fonttype' => 'standart',
'size' => '12',
'lineheight' => '20',
'color' => '#333333',
'family' => 'Arial, Helvetica',
'character' => 'latin-ext',
'style' => 'regular',
'letterspacing' => '',
'align' => 'notdefined',
)
);
$typography_options['typography-breadcrumbs'] = array(
'type' => 'typography',
'title' => __( 'Breadcrumbs typography', 'cherry' ),
'description' => __( 'Styling text in breadcrumbs.', 'cherry' ),
'value' => array(
'fonttype' => 'standart',
'size' => '12',
'lineheight' => '18',
'color' => '#777777',
'family' => 'Arial, Helvetica',
'character' => 'latin-ext',
'style' => 'regular',
'letterspacing' => '',
'align' => 'notdefined',
)
);
$typography_options['typography-h1'] = array(
'type' => 'typography',
'title' => __( 'Heading 1', 'cherry' ),
'max_value' => 500,
'description' => __( 'H1 heading font settings.', 'cherry' ),
'value' => array(
'fonttype' => 'standart',
'size' => '36',
'lineheight' => '40',
'color' => '#333333',
'family' => 'Arial, Helvetica',
'character' => 'latin-ext',
'style' => 'regular',
'letterspacing' => '',
'align' => 'notdefined',