-
Notifications
You must be signed in to change notification settings - Fork 7
/
options.php
1032 lines (919 loc) · 53 KB
/
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
/**
* A unique identifier is defined to store the options in the database and reference them from the theme.
* By default it uses the theme name, in lowercase and without spaces, but this can be changed if needed.
* If the identifier changes, it'll appear as if the options have been reset.
*
*/
function optionsframework_option_name() {
$optionsframework_settings = get_option( 'optionsframework' );
$optionsframework_settings['id'] = 'techozoicfluid';
update_option( 'optionsframework', $optionsframework_settings );
// echo $themename;
}
/**
* Addes contextual help to the theme options page.
*/
function admin_screen_help() {
$screen = get_current_screen();
$screen->add_help_tab( array(
'id' => 'of_options_page_help',
'title' => __( 'Techozoic Support', 'techozoic' ),
'content' => '<p><strong>' . sprintf( __( 'Looking for assistance? Please visit the <a href="%1$s">support forums</a>, refer to the <a href="%2$s">documentation</a>, or the <a href="%3$s">FAQ</a>. <br /><a href="%4$s">Open an issue on Github</a>' ), 'http://clark-technet.com/theme-support/techozoic', 'http://techozoic.clark-technet.com/documentation/', 'http://techozoic.clark-technet.com/documentation/faq/', 'https://github.com/jeremyclark13/Techozoic-Fluid/issues' ) . '</strong></p>'
) );
}
/**
* Defines an array of options that will be used to generate the settings page and be saved in the database.
* When creating the "id" fields, make sure to use all lowercase and no spaces.
*
*/
function optionsframework_options() {
$social_media = array( 'delicious' => "Delicious", 'digg' => "Digg", 'email' => "Email", 'facebook' => "Facebook", 'google' => "Google +1", 'pintrest' => 'Pintrest', 'linkedin' => "LinkedIn", 'myspace' => "MySpace", 'newsvine' => "NewsVine", 'stumbleupon' => "StumbleUpon", 'twitter' => "Twitter", 'reddit' => "Reddit", 'rss' => "RSS Icon" );
$old_social_media = array( "Delicious" => 'delicious', "Digg" => 'digg', "Email" => 'email', "Facebook" => 'facebook', "LinkedIn" => 'linkedin', "MySpace" => 'myspace', "NewsVine" => 'newsvine', "StumbleUpon" => 'stumbleupon', "Twitter" => 'twitter', "Reddit" => 'reddit', "RSS Icon" => 'rss' );
// Pull all the categories into an array
$options_categories = array( );
$options_categories_obj = get_categories();
foreach ( $options_categories_obj as $category ) {
$options_categories[$category->cat_ID] = $category->cat_name;
}
// Pull all the pages into an array
$options_pages = array( );
$options_pages_obj = get_pages( 'sort_column=post_parent,menu_order' );
//$options_pages[''] = 'Select a page:';
foreach ( $options_pages_obj as $page ) {
$options_pages[$page->ID] = $page->post_title;
}
if ( class_exists( 'bbPress' ) ) {
$options_pages['forum'] = 'All bbPress Forum Pages';
}
// If using image radio buttons, define a directory path
$imagepath = get_template_directory_uri() . '/images/';
$typography_options = array(
'faces' => array("Arial, 'Helvetica Neue', Helvetica, sans-serif" => 'Arial',
"Verdana, Geneva, sans-serif" => 'Verdana, Geneva',
"Trebuchet MS', 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif" => 'Trebuchet',
"Georgia, Times, 'Times New Roman', serif" => 'Georgia',
"TimesNewRoman, 'Times New Roman', Times, Baskerville, Georgia, serif" => "Times New Roman",
"Tahoma, Geneva, Verdana, Segoe, sans-serif" => "Tahoma, Geneva",
"Palatino, 'Palatino Linotype', 'Palatino LT STD', 'Book Antiqua', Georgia, serif" => "Palatino",
"'Helvetica Neue', Helvetica, Arial, sans-serif" => "Helvetica",
"google1" => "Google Font 1",
"google2" => "Google Font 2")
);
$options = array( );
$options[] = array( "name" => __( 'Layout', 'techozoic' ),
"type" => "heading" );
$options[] = array( "name" => __( 'Column Layout', 'techozoic' ),
"id" => "sidebar_pos",
"type" => "images",
"std" => "3-col",
"old_options" => array( "Sidebar - Content - Sidebar" => "3-col", "Content - Sidebar - Sidebar" => "3-col-right", "Sidebar - Sidebar - Content" => "3-col-left", "Content - Sidebar" => "2-col_right", "Sidebar - Content" => "2-col-left", "No Sidebars" => "1-col" ),
"options" => array( "3-col" => $imagepath . '3-col.jpg', "3-col-right" => $imagepath . '3-col-right.jpg', "3-col-left" => $imagepath . '3-col-left.jpg', "2-col-right" => $imagepath . '2-col-right.jpg', "2-col-left" => $imagepath . '2-col-left.jpg', "1-col" => $imagepath . '1-col.jpg' ) );
$options['page_type'] = array( "name" => __( 'Fixed or Fluid Width', 'techozoic' ),
"id" => "page_type",
"std" => "fluid",
"type" => "select",
"class" => "mini",
"old_options" => array( "Fixed Width" => "fixed", "Fluid Width" => "fluid" ),
"options" => array( 'fixed' => __( 'Fixed Width', 'techozoic' ), 'fluid' => __( 'Fluid Width', 'techozoic' ) ) );
$options['page_width'] = array( "name" => __( 'Page Width', 'techozoic' ),
"desc" => __( 'Fluid Width - Percentage of Total Screen Size <br />Fixed Width - Width in number of pixels', 'techozoic' ),
"id" => "page_width",
"std" => "90",
"old_options" => '',
"class" => "mini",
"type" => "text" );
$options['main_column_width'] = array( "name" => __( 'Main Column Width', 'techozoic' ),
"desc" => __( '(Post Content) - Percentage of Page Width', 'techozoic' ),
"id" => "main_column_width",
"std" => "50",
"old_options" => '',
"class" => "mini",
"type" => "text" );
$options['l_sidebar_width'] = array( "name" => __( 'Left Sidebar Width', 'techozoic' ),
"desc" => __( 'Percentage of Page Width', 'techozoic' ),
"id" => "l_sidebar_width",
"std" => "25",
"old_options" => '',
"class" => "mini",
"type" => "text" );
$options['r_sidebar_width'] = array( "name" => __( 'Right Sidebar Width', 'techozoic' ),
"desc" => __( 'Percentage of Page Width', 'techozoic' ),
"id" => "r_sidebar_width",
"std" => "25",
"old_options" => '',
"class" => "mini",
"type" => "text" );
$options[] = array( "name" => __( 'Fav Icon Image', 'techozoic' ),
"desc" => __( 'Fav Icon must be an .ico file. Browse for a new image or chose previously uploaded image. After choosing press Save to upload.', 'techozoic' ),
"id" => "favicon_image",
"type" => "upload" );
$options['home_sidebar'] = array( "name" => __( 'Display Sidebars on Blog Home Page', 'techozoic' ),
"id" => "home_sidebar",
"type" => "checkbox",
"old_options" => array( "Yes" => "1", "No" => "0" ),
"std" => "1" );
$options['single_sidebar'] = array( "name" => __( 'Display Sidebars on Single Post Pages', 'techozoic' ),
"id" => "single_sidebar",
"type" => "checkbox",
"old_options" => array( "Yes" => "1", "No" => "0" ),
"std" => "0" );
if ( class_exists( 'bbPress' ) ) {
$options['forum_sidebar'] = array( "name" => __( 'Display Sidebars on Forum', 'techozoic' ),
"id" => "forum_sidebar",
"type" => "checkbox",
"old_options" => array( "Yes" => "1", "No" => "0" ),
"std" => "0" );
}
$options[] = array( "name" => __( 'Page Specific Sidebars', 'techozoic' ),
"desc" => __( 'Choose which pages to register a sidebar. After selecting pages, two new sidebars will be avaialbe from the widgets screen. These sidebars will be used if any widgets are added, otherwise the default sidebars will be used.', 'techozoic' ),
"id" => "page_sidebar",
"type" => "multicheck",
"std" => '',
"options" => $options_pages );
$options[] = array( "name" => __( 'Thickbox on Images', 'techozoic' ),
"desc" => __( 'Use Thickbox to automatically overlay images on pages</small>', 'techozoic' ),
"id" => "thickbox",
"type" => "checkbox",
"old_options" => array( "On" => "1", "Off" => "0" ),
"std" => "0" );
$options[] = array( "name" => __( 'Extra Post Title Styling', 'techozoic' ),
"desc" => __( 'Enable the calendar and comment icon on homepage.', 'techozoic' ),
"id" => "post_title_styling",
"type" => "checkbox",
"std" => "0" );
$options[] = array( "name" => __( 'Comment Preview', 'techozoic' ),
"desc" => __( 'Enable the comment preview for posts on the home page.', 'techozoic' ),
"id" => "comment_preview",
"type" => "checkbox",
"old_options" => array( "Enable" => "1", "Disable" => "0" ),
"std" => "1" );
$options[] = array( "name" => __( 'Comment Preview Number', 'techozoic' ),
"desc" => __( 'Number of comments to display in comment preview area.', 'techozoic' ),
"id" => "comment_preview_num",
"type" => "text",
"old_options" => '',
"class" => "mini",
"std" => "3" );
$options[] = array( "name" => __( 'Custom Footer Text', 'techozoic' ),
"desc" => __( 'Text displayed in footer - HTML allowed. <br />Shortcodes that can be used: <br />%BLOGNAME% -> The blog\'s title. <br />%THEMENAME% -> Theme name.<br /> %THEMEVER% -> Current Theme Version.<br /> %THEMEAUTHOR% -> Link to Theme Author\'s website.*<br />%TOP% -> Link to the Top of the page.<br /> %COPYRIGHT% -> Insert copyright info for current year.<br /> %LOGIN% -> Displays link to login form or logout link depending on user status.<br /> %MYSQL% -> MySQL queries and processing time info<br /><br />*It is completely optional, but if you like Techozoic I would appreciate it if you keep the credit link.', 'techozoic' ),
"id" => "footer_text",
"old_options" => '',
"std" => "%COPYRIGHT% %BLOGNAME% | %THEMENAME% %THEMEVER% by %THEMEAUTHOR%. | %TOP% | %LOGIN% <br /> <small>%MYSQL%</small>",
"type" => "textarea" );
$options[] = array( "name" => __( 'Drop Shadow Boxes', 'techozoic' ),
"desc" => __( 'Check the areas where the Drop Shadow Boxes shouldn\'t be used<br /> - note only visible in Firefox, Chrome, Safari.', 'techozoic' ),
"id" => "drop_shadow",
"std" => "",
"type" => "multicheck",
"old_options" => array( "Header Text" => "header", "Post Boxes" => "post", "Images" => "image" ),
"options" => array( 'header' => __( 'Header Text', 'techozoic' ), 'post' => __( 'Post Boxes', 'techozoic' ), 'image' => __( 'Images', 'techozoic' ), 'page' => __( 'Main Page', 'techozoic' ) ) );
$options[] = array( "name" => __( 'Page Background Image', 'techozoic' ),
"desc" => __( 'Use a tiled image for best results.', 'techozoic' ),
"id" => "bg_image",
"std" => array( 'color' => '', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment' => 'scroll' ),
"type" => "background" );
$options[] = array( "name" => __( 'Content Background Image', 'techozoic' ),
"desc" => __( 'Use a tiled image for best results.', 'techozoic' ),
"id" => "content_bg_image",
"std" => array( 'color' => '', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment' => 'scroll' ),
"type" => "background" );
$options[] = array( "name" => __( 'Posts', 'techozoic' ),
"type" => "heading" );
$options[] = array( "name" => __( 'Excerpt Location', 'techozoic' ),
"desc" => __( 'Check where excerpts should be used instead of full post content. If an area isn\'t checked then the full post is displayed.', 'techozoic' ),
"id" => "excerpt_location",
"old_id" => "unused before 1.9.3",
"std" => array( "tag" => '1' ),
"type" => "multicheck",
"old_options" => array( "Main Page" => "main", "Category Archive" => "cat", "Yearly Archive" => "year", "Monthly Archive" => "month", "Tag Archive" => "tag" ),
"options" => array( 'main' => __( 'Main Page', 'techozoic' ), 'cat' => __( 'Category Archive', 'techozoic' ), 'year' => __( 'Yearly Archive', 'techozoic' ), 'month' => __( 'Monthly Archive', 'techozoic' ), 'tag' => __( 'Tag Archive', 'techozoic' ) ) );
$options[] = array( "name" => __( 'Background Color', 'techozoic' ),
"desc" => __( 'Check where background color for posts defined on the color tab should be applied.', 'techozoic' ),
"id" => "post_background_location",
"std" => array( "main" => "1", 'archive' => '1' ),
"type" => "multicheck",
"old_options" => array( "Main Page" => "main", "Single Post" => "single", "Archive Pages" => "archive" ),
"options" => array( 'main' => __( 'Main Page', 'techozoic' ), 'single' => __( 'Single Post', 'techozoic' ), 'archive' => __( 'Archive Pages', 'techozoic' ) ) );
$options[] = array( "name" => __( 'Social Media Icons', 'techozoic' ),
"desc" => __( 'Check where Social Media Icons will be displayed.', 'techozoic' ),
"id" => "post_social_media_location",
"std" => array( "main" => "1", 'single' => '1' ),
"type" => "multicheck",
"old_options" => array( "Main Page" => "main", "Category Archive" => "cat", "Yearly Archive" => "year", "Monthly Archive" => "month", "Tag Archive" => "tag" ),
"options" => array( 'main' => __( 'Main Page', 'techozoic' ), 'single' => __( 'Single Post', 'techozoic' ), 'archive' => __( 'Category Archive', 'techozoic' ), 'year' => __( 'Yearly Archive', 'techozoic' ), 'month' => __( 'Monthly Archive', 'techozoic' ), 'tag' => __( 'Tag Archive', 'techozoic' ) ) );
$options[] = array( "name" => __( 'Nav', 'techozoic' ),
"type" => "heading" );
$options[] = array( "name" => __( 'Navigation Menu', 'techozoic' ),
"desc" => __( 'Enable navigation menu. If disabled visit the <a href=\"widgets.php\">widgets</a> page to add the Techozoic Sidebar Navigation widget', 'techozoic' ),
"id" => "nav_menu",
"type" => "checkbox",
"std" => "1" );
$options['nav_location'] = array( "name" => __( 'Navigation Menu Location', 'techozoic' ),
"id" => "nav_location",
"type" => "radio",
"class" => "hidden",
"std" => "below",
"options" => array( 'below' => __( 'Below Header', 'techozoic' ), 'above' => __( 'Above Header', 'techozoic' ) ) );
$options['nav_type'] = array( "name" => __( 'Navigation Menu Type', 'techozoic' ),
"id" => "nav_type",
"type" => "radio",
"class" => "hidden",
"std" => "square",
"options" => array( 'standard' => __( 'Tabs', 'techozoic' ), 'ribbon' => __( 'Ribbon', 'techozoic' ), 'square' => __( 'Square', 'techozoic' ) ) );
$options[] = array( "name" => __( 'Breadcrumbs', 'techozoic' ),
"desc" => __( 'Enable Breadcrumb navigation. Useful with Sidebar Nav Widget.', 'techozoic' ),
"id" => "breadcrumbs",
"class" => "hidden",
"type" => "checkbox",
"old_options" => array( "On" => "1", "Off" => "0" ),
"std" => "0" );
$options['nav_align'] = array( "name" => __( 'Navigation Menu Alignment', 'techozoic' ),
"id" => "nav_align",
"type" => "select",
"class" => "hidden",
"std" => "left",
"old_options" => array( "Left" => "left", "Center" => "center" ),
"options" => array( 'left' => __( 'Left', 'techozoic' ), 'center' => __( 'Center', 'techozoic' ), 'right' => __( 'Right', 'techozoic' ) ) );
$options['nav_button_margin'] = array( "name" => __( 'Navigation Button Padding', 'techozoic' ),
"desc" => __( 'Margin between naviagation buttons in Pixels.', 'techozoic' ),
"id" => "nav_button_margin",
"string" => "num",
"std" => "3",
"class" => "mini hidden",
"type" => "text" );
$options['nav_button_width'] = array( "name" => __( 'Navigation Button Width', 'techozoic' ),
"desc" => __( 'Size of navigation button width in Pixels. Set to <strong>0</strong> for variable sized buttons', 'techozoic' ),
"id" => "nav_button_width",
"string" => "num",
"std" => "0",
"old_options" => '',
"class" => "mini hidden",
"type" => "text" );
$options['nav_menu_width'] = array( "name" => __( 'Navigation Sub Menu Width', 'techozoic' ),
"desc" => __( 'Size of navigation sub menu width in Pixels.', 'techozoic' ),
"id" => "nav_menu_width",
"string" => "num",
"std" => "250",
"class" => "mini hidden",
"type" => "text" );
$options[] = array( "name" => __( 'Font', 'techozoic' ),
"type" => "heading" );
$options[] = array( "name" => __( 'Google Font Replacement', 'techozoic' ),
"desc" => __( 'Enable this to use the Google Font API to add new fonts.', 'techozoic' ),
"id" => "google_font",
"std" => "0",
"old_options" => array( "Enable" => "1", "Disable" => "0" ),
"type" => "checkbox" );
$options[] = array( "name" => __( 'Google Font 1', 'techozoic' ),
"desc" => __( 'Visit the <a href="http://code.google.com/webfonts" target="_blank">Google Fonts</a> site to pick the font to use. After choosing on the font to use, copy the Name of the font here. If font supports additional styling it can be added with a ":" . Example: Droid Sans:bold,italic', 'techozoic' ),
"id" => "google_font_family",
"class" => "hidden",
"old_options" => '',
"type" => "text" );
$options[] = array( "name" => __( 'Google Font 2', 'techozoic' ),
"desc" => __( 'Visit the <a href="http://code.google.com/webfonts" target="_blank">Google Fonts</a> site to pick the font to use. After choosing on the font to use, copy the Name of the font here. If font supports additional styling it can be added with a ":" . Example: Droid Sans:bold,italic', 'techozoic' ),
"id" => "google_font_family_2",
"class" => "hidden",
"type" => "text" );
$options[] = array( "name" => __( 'Default Text', 'techozoic' ),
"id" => "body_font",
"std" => array( 'size' => "14px", 'face' => "Arial, 'Helvetica Neue', Helvetica, sans-serif", 'style' => '', 'color' => '#2C4353' ),
"type" => "typography",
"options" => $typography_options);
$options[] = array( "name" => __( 'Main Heading Font', 'techozoic' ),
"id" => "main_heading_font",
"std" => array( 'size' => "30px", 'face' => 'Verdana, Geneva, sans-serif', 'style' => 'bold', 'color' => '#A0B3C2' ),
"type" => "typography",
"options" => $typography_options );
$options[] = array( "name" => __( 'Post Heading Font', 'techozoic' ),
"id" => "post_heading",
"std" => array( 'size' => "24px", 'face' => 'Verdana, Geneva, sans-serif', 'style' => 'bold', 'color' => '#2C4353' ),
"type" => "typography",
"options" => $typography_options );
$options[] = array( "name" => __( 'Sidebar Heading Font', 'techozoic' ),
"id" => "side_heading_font",
"std" => array( 'size' => "18px", 'face' => 'Verdana, Geneva, sans-serif', 'style' => 'bold', 'color' => '#2C4353' ),
"type" => "typography",
"options" => $typography_options );
$options[] = array( "name" => __( 'Nav Menu Text Font', 'techozoic' ),
"id" => "nav_font",
"std" => array( 'size' => "14px", 'face' => 'Verdana, Geneva, sans-serif', 'style' => 'bold', 'color' => '#A0B3C2' ),
"type" => "typography",
"options" => $typography_options );
$options[] = array( "name" => __( 'Post Text Font', 'techozoic' ),
"id" => "post_text_font",
"std" => array( 'size' => "14px", 'face' => "Arial, 'Helvetica Neue', Helvetica, sans-serif", 'style' => '', 'color' => '#2C4353' ),
"type" => "typography",
"options" => $typography_options );
$options[] = array( "name" => __( 'Metadata Font', 'techozoic' ),
"id" => "small_font",
"std" => array( 'size' => "12px", 'face' => "Arial, 'Helvetica Neue', Helvetica, sans-serif", 'style' => '', 'color' => '#777777' ),
"type" => "typography",
"options" => $typography_options );
$options[] = array( "name" => __( 'Color', 'techozoic' ),
"type" => "heading" );
$options[] = array( "name" => __( 'Prebuilt Color Scheme', 'techozoic' ),
"desc" => __( 'After choosing color scheme, adjustments can be made below. Choose custom to create your own.', 'techozoic' ),
"id" => "color_scheme",
"type" => "select",
"class" => "mini",
"std" => "custom",
"old_options" => array( "Custom 1" => 'custom', "Custom 2" => 'custom', "Blue" => "blue", "Khaki" => "khaki", "Red" => "red", "Grunge" => "grunge" ),
"options" => array( 'custom' => __( 'Custom', 'techozoic' ), 'blue' => __( 'Blue', 'techozoic' ), 'khaki' => __( 'Khaki', 'techozoic' ), 'red' => __( 'Red', 'techozoic' ), 'grunge' => __( 'Grunge', 'techozoic' ) ) );
$options['cust_bg_color1'] = array( "name" => __( 'Body Background Color', 'techozoic' ),
"desc" => __( 'Choose or Type a <a href=\"http://www.w3schools.com/HTML/html_colors.asp\" target=\"_blank\">HEX color code</a>', 'techozoic' ),
"id" => "cust_bg_color1",
"old_options" => '',
"std" => "#A0B3C2",
"type" => "color" );
$options['cust_bg_trans1'] = array( "name" => __( 'Body Background Transparent', 'techozoic' ),
"desc" => __( 'Check to not apply any color to the body background.', 'techozoic' ),
"id" => "cust_bg_trans1",
"std" => "0",
"old_options" => array( "On" => "1" ),
"type" => "checkbox" );
$options['cust_content_bg_color1'] = array( "name" => __( 'Content Background Color', 'techozoic' ),
"desc" => __( 'Choose or Type a <a href=\"http://www.w3schools.com/HTML/html_colors.asp\" target=\"_blank\">HEX color code</a>', 'techozoic' ),
"id" => "cust_content_bg_color1",
"std" => "#F7F7F7",
"old_options" => '',
"type" => "color" );
$options['cust_content_bg_trans1'] = array( "name" => __( 'Content Background Transparent', 'techozoic' ),
"desc" => __( 'Check to not apply any color to the content background.', 'techozoic' ),
"id" => "cust_content_bg_trans1",
"std" => "0",
"old_options" => array( "On" => "1" ),
"type" => "checkbox" );
$options['cust_acc_color1'] = array( "name" => __( 'Accent Color', 'techozoic' ),
"desc" => __( 'Choose or Type a <a href=\"http://www.w3schools.com/HTML/html_colors.asp\" target=\"_blank\">HEX color code</a>', 'techozoic' ),
"id" => "cust_acc_color1",
"std" => "#A0B3C2",
"old_options" => '',
"type" => "color" );
$options['cust_link_color1'] = array( "name" => __( 'Link Color', 'techozoic' ),
"desc" => __( 'Choose or Type a <a href=\"http://www.w3schools.com/HTML/html_colors.asp\" target=\"_blank\">HEX color code</a>', 'techozoic' ),
"id" => "cust_link_color1",
"std" => "#597EAA",
"old_options" => '',
"type" => "color" );
$options['cust_link_hov_color1'] = array( "name" => __( 'Link Hover Color', 'techozoic' ),
"desc" => __( 'Choose or Type a <a href=\"http://www.w3schools.com/HTML/html_colors.asp\" target=\"_blank\">HEX color code</a>', 'techozoic' ),
"id" => "cust_link_hov_color1",
"std" => "#114477",
"old_options" => '',
"type" => "color" );
$options['cust_link_visit_color1'] = array( "name" => __( 'Visited Link Color', 'techozoic' ),
"desc" => __( 'Choose or Type a <a href=\"http://www.w3schools.com/HTML/html_colors.asp\" target=\"_blank\">HEX color code</a>', 'techozoic' ),
"id" => "cust_link_visit_color1",
"std" => "#2C4353",
"old_options" => '',
"type" => "color" );
$options['cust_nav_bg_color1'] = array( "name" => __( 'Nav Button Background Color', 'techozoic' ),
"desc" => __( 'Choose or Type a <a href=\"http://www.w3schools.com/HTML/html_colors.asp\" target=\"_blank\">HEX color code</a>', 'techozoic' ),
"id" => "cust_nav_bg_color1",
"std" => "#E3E3E3",
"old_options" => '',
"type" => "color" );
$options['cust_nav_bg_trans1'] = array( "name" => __( 'Nav Button Transparent', 'techozoic' ),
"desc" => __( 'Check to not apply any color to the nav button background.', 'techozoic' ),
"id" => "cust_nav_bg_trans1",
"std" => "0",
"old_options" => array( "On" => "1" ),
"type" => "checkbox" );
$options['cust_nav_hov_bg_color1'] = array( "name" => __( 'Nav Button Hover Background Color', 'techozoic' ),
"desc" => __( 'Choose or Type a <a href=\"http://www.w3schools.com/HTML/html_colors.asp\" target=\"_blank\">HEX color code</a>', 'techozoic' ),
"id" => "cust_nav_hov_bg_color1",
"std" => "#EFEFEF",
"type" => "color" );
$options['cust_nav_hov_text_color1'] = array( "name" => __( 'Nav Button Hover Text Color', 'techozoic' ),
"desc" => __( 'Choose or Type a <a href=\"http://www.w3schools.com/HTML/html_colors.asp\" target=\"_blank\">HEX color code</a>', 'techozoic' ),
"id" => "cust_nav_hov_text_color1",
"std" => "#A0B3C2",
"type" => "color" );
$options['cust_nav_active_bg_color1'] = array( "name" => __( 'Nav Button Active Background Color', 'techozoic' ),
"desc" => __( 'Choose or Type a <a href=\"http://www.w3schools.com/HTML/html_colors.asp\" target=\"_blank\">HEX color code</a>', 'techozoic' ),
"id" => "cust_nav_active_bg_color1",
"std" => "#A0B3C2",
"type" => "color" );
$options['cust_nav_active_text_color1'] = array( "name" => __( 'Nav Button Active Text Color', 'techozoic' ),
"desc" => __( 'Choose or Type a <a href=\"http://www.w3schools.com/HTML/html_colors.asp\" target=\"_blank\">HEX color code</a>', 'techozoic' ),
"id" => "cust_nav_active_text_color1",
"std" => "#F7F7F7",
"type" => "color" );
$options['cust_nav_bg_gradient_top'] = array( "name" => __( 'Nav Bar Background Gradient Top', 'techozoic' ),
"desc" => __( 'Used when Navigation Menu Type is set to Ribbon or Square. Choose or Type a <a href=\"http://www.w3schools.com/HTML/html_colors.asp\" target=\"_blank\">HEX color code</a>', 'techozoic' ),
"id" => "cust_nav_bg_gradient_top",
"std" => "#E3E3E3",
"type" => "color" );
$options['cust_nav_bg_gradient_bot'] = array( "name" => __( 'Nav Bar Background Gradient Bottom', 'techozoic' ),
"desc" => __( 'Used when Navigation Menu Type is set to Ribbon or Square. Choose or Type a <a href=\"http://www.w3schools.com/HTML/html_colors.asp\" target=\"_blank\">HEX color code</a>', 'techozoic' ),
"id" => "cust_nav_bg_gradient_bot",
"std" => "#CCCCCC",
"type" => "color" );
$options['cust_post_bg_color1'] = array( "name" => __( 'Post Background Color', 'techozoic' ),
"desc" => __( 'Choose or Type a <a href=\"http://www.w3schools.com/HTML/html_colors.asp\" target=\"_blank\">HEX color code</a>', 'techozoic' ),
"id" => "cust_post_bg_color1",
"std" => "#E3E3E3",
"old_options" => '',
"type" => "color" );
$options['cust_post_bg_trans1'] = array( "name" => __( 'Post Background Transparent', 'techozoic' ),
"desc" => __( 'Check to not apply any color to the post background.', 'techozoic' ),
"id" => "cust_post_bg_trans1",
"std" => "0",
"old_options" => array( "On" => '1' ),
"type" => "checkbox" );
$options[] = array( "name" => __( 'Ads', 'techozoic' ),
"type" => "heading" );
$options[] = array( "name" => __( 'Home Page Ad Code', 'techozoic' ),
"desc" => __( 'This Ad Code will be displayed a total of 3 times. Best ads are banner ads no wider than 500 pixels *Only html and javascript accepted <strong>Shortcodes now accepted</strong>', 'techozoic' ),
"id" => "ad_code",
"std" => "",
"old_options" => '',
"type" => "textarea" );
$options[] = array( "name" => __( 'Number of Posts Between Ad Units', 'techozoic' ),
"id" => "ad_int",
"type" => "select",
"class" => "mini",
"std" => "3",
"old_options" => array( '6' => "6", '5' => "5", '4' => "4", '3' => "3", '2' => "2", '1' => "1" ),
"options" => array( '6' => "6", '5' => "5", '4' => "4", '3' => "3", '2' => "2", '1' => "1" ) );
$options[] = array( "name" => __( 'Home Page Header Ad Code', 'techozoic' ),
"desc" => __( 'This Ad Code will be displayed on the home page below the header and navigation. Best ads are banner ads no wider than 500 pixels *Only html and javascript accepted <strong>Shortcodes now accepted</strong>', 'techozoic' ),
"id" => "header_ad_code",
"std" => "",
"old_options" => '',
"type" => "textarea" );
$options[] = array( "name" => __( 'Single Post Ad Code', 'techozoic' ),
"desc" => __( 'This Ad Code will be displayed on the single post page. Best ads are banner ads no wider than 500 pixels *Only html and javascript accepted <strong>Shortcodes now accepted</strong>', 'techozoic' ),
"id" => "sing_ad_code",
"std" => "",
"old_options" => '',
"type" => "textarea" );
$options[] = array( "name" => __( 'Single Post Ad Position', 'techozoic' ),
"desc" => __( 'Above or below the post content on single page', 'techozoic' ),
"id" => "sing_ad_pos",
"type" => "radio",
"std" => "above",
"old_options" => array( "Above" => "above", "Below" => "below" ),
"options" => array( 'above' => __( 'Above', 'techozoic' ), 'below' => __( 'Below', 'techozoic' ) ) );
$options[] = array( "name" => __( 'Social', 'techozoic' ),
"type" => "heading" );
$options[] = array( "name" => __( 'Home/Archive Page Social Network Icons', 'techozoic' ),
"desc" => __( 'Choose which social network icons you would like displayed below the post on the Home/Archive pages.', 'techozoic' ),
"id" => "home_social_icons",
"std" => array( 'delicious' => '1', 'digg' => '1', 'rss' => '1' ),
"type" => "multicheck",
"old_options" => $old_social_media,
"options" => $social_media );
$options[] = array( "name" => __( 'Single Page Social Media Icons', 'techozoic' ),
"desc" => __( 'Choose which social media icons you would like displayed on the single post page.', 'techozoic' ),
"id" => "single_social_icons",
"std" => array( 'delicious' => '1', 'digg' => '1', 'rss' => '1' ),
"type" => "multicheck",
"old_options" => $old_social_media,
"options" => $social_media );
$options[] = array( "name" => __( 'Facebook Profile', 'techozoic' ),
"desc" => __( 'Used for the About widget Must be full link to profile page', 'techozoic' ),
"id" => "facebook_profile",
"std" => "",
"old_options" => '',
"type" => "text" );
$options[] = array( "name" => __( 'MySpace Profile', 'techozoic' ),
"desc" => __( 'Used for the About widget Must be full link to profile page', 'techozoic' ),
"id" => "myspace_profile",
"std" => "",
"old_options" => '',
"type" => "text" );
$options[] = array( "name" => __( 'Twitter Profile', 'techozoic' ),
"desc" => __( 'Used for the About widget Must be full link to profile page', 'techozoic' ),
"id" => "twitter_profile",
"std" => "",
"old_options" => '',
"type" => "text" );
$options[] = array( "name" => __( 'Google Profile', 'techozoic' ),
"desc" => __( 'Used for the About widget Must be full link to profile page', 'techozoic' ),
"id" => "google_profile",
"std" => "",
"type" => "text" );
$options[] = array( "name" => __( 'Header', 'techozoic' ),
"type" => "heading" );
$options['search_box'] = array( "name" => __( 'Display Search box in header', 'techozoic' ),
"desc" => __( 'Set to no if you don\'t want the search box to show in the header area. If widgets are assigned to Right Header search box is automatically disabled.', 'techozoic' ),
"id" => "search_box",
"type" => "checkbox",
"old_options" => array( "Yes" => "1", "No" => "0" ),
"std" => "1" );
$options['blog_title'] = array( "name" => __( 'Display Blog Title and Tagline in header', 'techozoic' ),
"desc" => __( 'Uncheck if your custom header image already has your blog title and tagline. If header logo is uploaded it will always be used.', 'techozoic' ),
"id" => "blog_title",
"type" => "checkbox",
"old_options" => array( "Yes" => "1", "No" => "0" ),
"std" => "1" );
$options['header_logo'] = array( "name" => __( 'Header Logo', 'techozoic' ),
"desc" => __( 'Replace Blog Title and Tagline with a custom logo. Logo is overlayed on header image. For best results use a logo with a transparent background. When uploading Alignment options are NOT used from the uploader, alignment is set below.', 'techozoic' ),
"id" => "header_logo",
"std" => '',
"type" => "upload" );
$options['header_logo_top'] = array( "name" => __( 'Header Logo Top Padding', 'techozoic' ),
"desc" => __( 'Number of pixels of top padding that should be added to logo.', 'techozoic' ),
"id" => "header_logo_top",
"type" => "text",
"class" => "mini",
"std" => "0" );
$options['header_logo_left'] = array( "name" => __( 'Header Logo Left Padding', 'techozoic' ),
"desc" => __( 'Number of pixels of left padding that should be added to logo.', 'techozoic' ),
"id" => "header_logo_left",
"type" => "text",
"class" => "mini",
"std" => "0" );
$options['blog_title_align'] = array( "name" => __( 'Blog Title and Tagline / Logo Horizontal Alignment', 'techozoic' ),
"desc" => __( 'Horizontal alignment of Blog title and tagline or header logo if used.', 'techozoic' ),
"id" => "blog_title_align",
"type" => "radio",
"std" => "left",
"old_options" => array( "Left" => "left", "Center" => "center", "Right" => "right" ),
"options" => array( 'left' => __( 'Left', 'techozoic' ), 'center' => __( 'Center', 'techozoic' ), 'right' => __( 'Right', 'techozoic' ) ) );
$options[] = array( "name" => __( 'Single Page Header Title Text', 'techozoic' ),
"desc" => __( 'Show the Post title as the main heading and the the Blog title as the tagline on single pages. Always Blog Title will only display the Blog Title and Tagline set in the General Options of the Blog.', 'techozoic' ),
"id" => "blog_title_text",
"type" => "radio",
"std" => "blog",
"old_options" => array( "Single Post Title" => "single", "Always Blog Title" => "blog" ),
"options" => array( 'single' => __( 'Single Post Title', 'techozoic' ), 'blog' => __( 'Always Blog Title', 'techozoic' ) ) );
$options['blog_title_box'] = array( "name" => __( 'Blog Title Box Styling', 'techozoic' ),
"desc" => __( 'Styling of box around the Blog Title <br />- On: White rounded box with transparency <br />- Off: Title and tagline text only.', 'techozoic' ),
"id" => "blog_title_box",
"type" => "checkbox",
"old_options" => array( "On" => "1", "Off" => "0" ),
"std" => "1" );
$options['header_align'] = array( "name" => __( 'Header Image Alignment', 'techozoic' ),
"desc" => __( 'Align header to the Left, Right, or Center the image in the Header Container', 'techozoic' ),
"id" => "header_align",
"type" => "select",
"std" => "center",
"old_options" => array( "Left" => "left", "Right" => "right", "Center" => "center" ),
"options" => array( 'left' => __( 'Left', 'techozoic' ), 'right' => __( 'Right', 'techozoic' ), 'center' => __( 'Center', 'techozoic' ) ) );
$options['header_v_align'] = array( "name" => __( 'Header Image Vertical Alignment', 'techozoic' ),
"desc" => __( 'Align header to the Left, Right, or Center the image in the Header Container', 'techozoic' ),
"id" => "header_v_align",
"type" => "select",
"std" => "center",
"old_options" => array( "Top" => "top", "Center" => "center", "Bottom" => "bottom" ),
"options" => array( 'top' => __( 'Top', 'techozoic' ), 'center' => __( 'Center', 'techozoic' ), 'bottom' => __( 'Bottom', 'techozoic' ) ) );
$options['header_height'] = array( "name" => __( 'Header Container Height', 'techozoic' ),
"desc" => __( 'Adjust the size of the header image Default Height: 200px', 'techozoic' ),
"id" => "header_height",
"std" => "200",
"old_options" => '',
"class" => "mini",
"type" => "text" );
$options['header_width'] = array( "name" => __( 'Header Image Width', 'techozoic' ),
"desc" => __( 'Adjust the size of the header image Default width: 1000px', 'techozoic' ),
"id" => "header_width",
"std" => "1000",
"old_options" => '',
"class" => "mini",
"type" => "text" );
$options[] = array( "name" => __( 'CSS', 'techozoic' ),
"type" => "heading" );
$options[] = array( "name" => __( 'Custom CSS', 'techozoic' ),
"desc" => __( '<strong>No HTML allowed</strong> Here you can enter your own CSS. Please keep in mind proper CSS structure.', 'techozoic' ),
"id" => "custom_styles",
"std" => "",
"old_options" => '',
"type" => "textarea" );
$options[] = array( "name" => __( 'Minify Dynamic CSS', 'techozoic' ),
"desc" => __( 'Minifies Dynamic CSS before outputing.', 'techozoic' ),
"id" => "minify",
"type" => "checkbox",
"std" => "0" );
$options[] = array( "name" => __( 'Responsive CSS - Beta', 'techozoic' ),
"desc" => __( 'Enable responsive CSS. Allows site customizations to work even on smaller screens.', 'techozoic' ),
"id" => "mobile_css",
"type" => "checkbox",
"std" => "1" );
return $options;
}
/**
* Front End Customizer
*
* WordPress 3.4 Required
*/
add_action( 'customize_register', 'tech_customizer_register' );
function tech_customizer_register( $wp_customize ) {
/**
* This is optional, but if you want to reuse some of the defaults
* or values you already have built in the options panel, you
* can load them into $options for easy reference
*/
$customizer_array = array(
'layout' => array(
'name' => __( 'Layout', 'techozoic'),
'priority' => 102,
'settings' => array(
'page_type',
'page_width',
'main_column_width',
'l_sidebar_width',
'r_sidebar_width',
'home_sidebar',
'single_sidebar'
)
),
'nav_layout' => array(
'name' => __( 'Navigation Layout', 'techozoic'),
'priority' => 101,
'settings' => array(
'nav_type',
'nav_location',
'nav_align',
'nav_button_margin',
'nav_button_width',
'nav_menu_width'
)
),
'color_scheme' => array(
'name' => __( 'Color Scheme', 'techozoic'),
'priority' => 103,
'settings' => array(
'cust_bg_color1',
'cust_bg_trans1',
'cust_content_bg_color1',
'cust_content_bg_trans1',
'cust_acc_color1',
'cust_link_color1',
'cust_link_hov_color1',
'cust_link_visit_color1',
'cust_nav_bg_color1',
'cust_nav_bg_trans1',
'cust_nav_hov_bg_color1',
'cust_nav_hov_text_color1',
'cust_nav_active_bg_color1',
'cust_nav_active_text_color1',
'cust_nav_bg_gradient_top',
'cust_nav_bg_gradient_bot',
'cust_post_bg_color1',
'cust_post_bg_trans1'
)
),
'header_layout' => array(
'name' => __( 'Header Layout', 'techozoic'),
'priority' => 99,
'settings' => array(
'search_box',
'blog_title',
'header_logo',
'header_logo_top',
'header_logo_left',
'blog_title_align',
'blog_title_box',
'header_align',
'header_v_align',
'header_height',
'header_width'
)
)
);
if ( class_exists( 'bbPress' ) ) {
$customizer_array['layout']['settings'][] = 'forum_sidebar';
}
$options = optionsframework_options();
$i = 0;
foreach ( $customizer_array as $name => $val ) {
$wp_customize->add_section( "techozoicfluid_$name", array(
'title' => $val['name'],
'priority' => $val['priority']
) );
foreach ( $val['settings'] as $setting ) {
$wp_customize->add_setting( "techozoicfluid[$setting]", array(
'default' => $options[$setting]['std'],
'type' => 'option'
) );
if ( $options[$setting]['type'] == 'radio' || $options[$setting]['type'] == 'select' ) {
$wp_customize->add_control( "techozoicfluid_$setting", array(
'label' => $options[$setting]['name'],
'section' => "techozoicfluid_$name",
'settings' => "techozoicfluid[$setting]",
'type' => $options[$setting]['type'],
'choices' => $options[$setting]['options'],
'priority' => $i
) );
} elseif ( $options[$setting]['type'] == 'text' || $options[$setting]['type'] == 'checkbox' ) {
$wp_customize->add_control( "techozoicfluid_$setting", array(
'label' => $options[$setting]['name'],
'section' => "techozoicfluid_$name",
'settings' => "techozoicfluid[$setting]",
'type' => $options[$setting]['type'],
'priority' => $i
) );
} elseif ( $options[$setting]['type'] == 'color' ) {
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, "techozoicfluid_$setting", array(
'label' => $options[$setting]['name'],
'section' => "techozoicfluid_$name",
'settings' => "techozoicfluid[$setting]",
'priority' => $i
) ) );
} elseif ( $options[$setting]['type'] == 'upload' ) {
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, "techozoicfluid_$setting", array(
'label' => $options[$setting]['name'],
'section' => "techozoicfluid_$name",
'settings' => "techozoicfluid[$setting]",
'priority' => $i
) ) );
}
$i++;
}
}
}
add_action( 'optionsframework_custom_scripts', 'optionsframework_custom_scripts' );
function optionsframework_custom_scripts() {
?>
<script type="text/javascript">
jQuery(document).ready(function($) {
var custom = new Array();
custom['cust_bg_color1']='#A0B3C2';
custom['cust_content_bg_color1']='#F7F7F7';
custom['cust_acc_color1']='#A0B3C2';
custom['cust_link_color1']='#597EAA';
custom['cust_link_hov_color1']='#114477';
custom['cust_link_visit_color1']='#2C4353';
custom['cust_nav_bg_color1']='#E3E3E3';
custom['cust_nav_hov_bg_color1']='#EFEFEF';
custom['cust_nav_hov_text_color1']='#A0B3C2';
custom['cust_nav_active_bg_color1']='#A0B3C2';
custom['cust_nav_active_text_color1']='#F7F7F7';
custom['cust_nav_bg_gradient_top']='#E3E3E3';
custom['cust_nav_bg_gradient_bot']='#CCCCCC';
custom['cust_post_bg_color1']='#E3E3E3';
var blue = new Array();
blue['cust_bg_color1']='#A0B3C2';
blue['cust_content_bg_color1']='#F7F7F7';
blue['cust_acc_color1']='#A0B3C2';
blue['cust_link_color1']='#597EAA';
blue['cust_link_hov_color1']='#114477';
blue['cust_link_visit_color1']='#2C4353';
blue['cust_nav_bg_color1']='#E3E3E3';
blue['cust_nav_hov_bg_color1']='#EFEFEF';
blue['cust_nav_hov_text_color1']='#A0B3C2';
blue['cust_nav_active_bg_color1']='#A0B3C2';
blue['cust_nav_active_text_color1']='#F7F7F7';
blue['cust_nav_bg_gradient_top']='#E3E3E3';
blue['cust_nav_bg_gradient_bot']='#CCCCCC';
blue['cust_post_bg_color1']='#E3E3E3';
var khaki = new Array();
khaki['cust_bg_color1']='#c7c69a';
khaki['cust_acc_color1']='#c7c69a';
khaki['cust_link_color1']='#6E0405';
khaki['cust_link_hov_color1']='#B53839';
khaki['cust_link_visit_color1']='#2C4353';
khaki['cust_nav_bg_color1']='#E3E3E3';
khaki['cust_post_bg_color1']='#E3E3E3';
khaki['cust_content_bg_color1']='#F7F7F7';
khaki['cust_nav_hov_bg_color1']='#C7C69A';
khaki['cust_nav_hov_text_color1']='#f7f7f7';
khaki['cust_nav_active_bg_color1']='#C7C69A';
khaki['cust_nav_active_text_color1']='#F7F7F7';
khaki['cust_nav_bg_gradient_top']='#E3E3E3';
khaki['cust_nav_bg_gradient_bot']='#CCCCCC';
var red = new Array();
red['cust_bg_color1']='#AB2222';
red['cust_acc_color1']='#AB2222';
red['cust_link_color1']='#D33535';
red['cust_link_hov_color1']='#B53839';
red['cust_link_visit_color1']='#2C4353';
red['cust_nav_bg_color1']='#E3E3E3';
red['cust_post_bg_color1']='#E3E3E3';
red['cust_content_bg_color1']='#F7F7F7';
red['cust_nav_hov_bg_color1']='#EFEFEF';
red['cust_nav_hov_text_color1']='#B53839';
red['cust_nav_active_bg_color1']='#B53839';
red['cust_nav_active_text_color1']='#F7F7F7';
red['cust_nav_bg_gradient_top']='#E3E3E3';
red['cust_nav_bg_gradient_bot']='#CCCCCC';
var grunge = new Array();
grunge['cust_bg_color1']='#534E3E';
grunge['cust_acc_color1']='#534E3E';
grunge['cust_link_color1']='#78BFBF';
grunge['cust_link_hov_color1']='#78BFBF';
grunge['cust_link_visit_color1']='#2C4353';
grunge['cust_nav_bg_color1']='#E3E3E3';
grunge['cust_post_bg_color1']='#E3E3E3';
grunge['cust_content_bg_color1']='#F7F7F7';
grunge['cust_nav_hov_bg_color1']='#EFEFEF';
grunge['cust_nav_hov_text_color1']='#534E3E';
grunge['cust_nav_active_bg_color1']='#534E3E';
grunge['cust_nav_active_text_color1']='#F7F7F7';
grunge['cust_nav_bg_gradient_top']='#E3E3E3';
grunge['cust_nav_bg_gradient_bot']='#CCCCCC';
// When the select box #base_color_scheme changes
// it checks which value was selected and calls of_update_color
$('#color_scheme').change(function() {
colorscheme = $(this).val();
if (colorscheme == 'custom') { colorscheme = custom; }
if (colorscheme == 'blue') { colorscheme = blue; }
if (colorscheme == 'khaki') { colorscheme = khaki; }
if (colorscheme == 'red') { colorscheme = red; }
if (colorscheme == 'grunge') { colorscheme = grunge; }
for (id in colorscheme) {
of_update_color(id,colorscheme[id]);
}
});
// This does the heavy lifting of updating all the colorpickers and text
function of_update_color(id,hex) {
$('#section-' + id + ' .of-color').css({backgroundColor:hex});
$('#section-' + id + ' .colorSelector').ColorPickerSetColor(hex);
$('#section-' + id + ' .colorSelector').children('div').css('backgroundColor', hex);
$('#section-' + id + ' .of-color').val(hex);
//$('#section-' + id + ' .of-color').animate({backgroundColor:'#ffffff'}, 600);
$('#section-' + id + ' .of-color').css({backgroundColor:'#ffffff'});
}
$('#nav_menu').click(function() {
$('#section-nav_location').fadeToggle(400);
$('#section-nav_type').fadeToggle(400);
$('#section-dashboard_link').fadeToggle(400);
$('#section-breadcrumbs').fadeToggle(400);
$('#section-nav_align').fadeToggle(400);
$('#section-nav_button_margin').fadeToggle(400);
$('#section-nav_button_width').fadeToggle(400);
$('#section-nav_menu_width').fadeToggle(400);
});
if ($('#nav_menu:checked').val() !== undefined) {
$('#section-nav_location').show();
$('#section-nav_type').show();
$('#section-dashboard_link').show();
$('#section-breadcrumbs').show();
$('#section-nav_align').show();
$('#section-nav_button_margin').show();
$('#section-nav_button_width').show();
$('#section-nav_menu_width').show();
}
$('#google_font').click(function() {
$('#section-google_font_family').fadeToggle(400);
$('#section-google_font_family_2').fadeToggle(400);
});
if ($('#google_font:checked').val() !== undefined) {
$('#section-google_font_family').show();
$('#section-google_font_family_2').show();
}
});
</script>
<?php
}
add_action( 'optionsframework_after', 'tech_options_display_sidebar', 100 );
function tech_options_display_sidebar() { ?>
<div class="metabox-holder" id="optionsframework-sidebar">
<div class="postbox">
<h3><?php _e('About Techozoic', 'techozoic'); ?></h3>
<div class="inside">
<h4><?php _e('Help Support Further Development', 'techozoic'); ?></h4>
<p><a href='https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Q2UB936PZYYZ6' title='Help Support Development' target='_blank' ><img src='https://www.paypalobjects.com/en_US/i/btn/btn_paynow_SM.gif' /></a></p>
<hr />
<h4><?php _e('Twitter', 'techozoic'); ?></h4>
<p><a href="https://twitter.com/clarktechnet" class="twitter-follow-button" data-show-count="false" data-size="large" data-dnt="true">Follow @clarktechnet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
<br /><a href='https://twitter.com/#!/search/realtime/techozoic%20from%3Aclarktechnet' title='Follow Development on Twitter' target='_blank'>Follow Development on Twitter</a></p>
<hr />
<h4><?php _e('What\'s New', 'techozoic'); ?></h4>
<p>
<strong>Version 2.1.2</strong>
<ul>
<li>Fixed issue when using page based menus</li>
<li>Removed Twitter functions due to API 1.1 changes</li>
</ul>
<strong>Version 2.1.1</strong>
<ul>
<li>Missed changing archive page to use new template part.</li>
<li>Fixed function typo in tech-widget.php.</li>