-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.php
821 lines (679 loc) · 21.1 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
<?php
/**
* A unique identifier is defined to store the options in the database and reference them from the theme.
*/
function optionsframework_option_name() {
return 'plugin-hunt-theme';
}
/**
* 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.
*
* If you are making your theme translatable, you should replace 'pluginhunt'
* with the actual text domain for your theme. Read more:
* http://codex.wordpress.org/Function_Reference/load_theme_textdomain
*/
function optionsframework_options() {
// If using image radio buttons, define a directory path
$imagepath = get_template_directory_uri() . '/images/';
$options = array();
if(function_exists('notifyme_header')){
$options[] = array(
'name' => __( 'Notifications', 'pluginhunt' ),
'type' => 'heading'
);
$options[] = array(
'name' => __( 'What is your notification logo', 'pluginhunt' ),
'desc' => __( 'What logo do you want to appear on browser notifications (40px x 40px).', 'pluginhunt' ),
'id' => 'notify_logo',
'type' => 'upload'
);
}
$options[] = array(
'name' => __( 'Header', 'pluginhunt' ),
'type' => 'heading'
);
$options[] = array(
'name' => __( 'New Submit Button', 'pluginhunt' ),
'desc' => __( 'Text for new post button (layout 3 only)', 'pluginhunt' ),
'id' =>'ph_new_post_string',
'type' => 'text'
);
$options[] = array(
'name' => __( 'Main logo', 'pluginhunt' ),
'desc' => __( 'What is your main website logo (40px x 40px fits best).', 'pluginhunt' ),
'id' => 'main_logo',
'type' => 'upload'
);
$options[] = array(
'name' => __( 'White logo', 'pluginhunt' ),
'desc' => __( 'What is your main website logo (40px x 40px fits best) in white (for the footer and header on pages).', 'pluginhunt' ),
'id' => 'white_logo',
'type' => 'upload'
);
/*
$options[] = array(
'name' => __('Show Image to left of Menu', 'pluginhunt'),
'desc' => __('Show Image to left of Menu','pluginhunt'),
'id' => 'main_logo_position',
'type' => 'checkbox'
);
*/
/*
$options[] = array(
'name' => "Header Style",
'desc' => "Choose your header style.",
'id' => "ph_header_style",
'std' => "header-1",
'type' => "images",
'options' => array(
'header-1' => $imagepath . 'header-1.png',
'header-2' => $imagepath . 'header-2.png',
)
);
*/
$options[] = array(
'name' => __('Welcome Banner', 'pluginhunt'),
'type' => 'heading'
);
$options[] = array(
'name' => __( 'Show Image Slider.', 'pluginhunt' ),
'desc' => __( 'Show Slider (layout 2 only).', 'pluginhunt' ),
'id' =>'ph_show_slider',
'type' => 'checkbox'
);
$options[] = array(
'name' => __( 'Show Welcome Block.', 'pluginhunt' ),
'desc' => __( 'Show Welcome Block for logged out users.', 'pluginhunt' ),
'id' =>'ph_show_welcome',
'type' => 'checkbox'
);
$options[] = array(
'name' => __( 'Welcome title', 'pluginhunt' ),
'desc' => __( 'Enter the welcome title here.', 'pluginhunt' ),
'id' => 'ph_welcome_tit',
'std' => 'Discover your next favourite thing.',
'type' => 'text'
);
$options[] = array(
'name' => __( 'Welcome content', 'pluginhunt' ),
'desc' => __( 'Enter the catch-line message logged out users will see here.', 'pluginhunt' ),
'id' => 'ph_welcome_sub',
'std' => 'Plugin Hunt surfaces the best new WordPress Plugins, every day. It is a place for plugin-loving enthusiasts to share and geek out about the latest WordPress Plugins.',
'type' => 'textarea'
);
$options[] = array(
'name' => __( 'Welcome Image', 'pluginhunt' ),
'desc' => __( 'Choose an image to show in the welcome banner.', 'pluginhunt' ),
'id' => 'welcome_logo',
'type' => 'upload'
);
$options[] = array(
'name' => __( 'Color Scheme', 'pluginhunt' ),
'type' => 'heading'
);
$options[] = array(
'name' => __( 'Main Theme Colour', 'pluginhunt' ),
'desc' => __( '#da552f by default.', 'pluginhunt' ),
'id' => 'ph_main_color',
'std' => '#da552f',
'type' => 'color'
);
$options[] = array(
'name' => __( 'Top Menu Colour', 'pluginhunt' ),
'desc' => __( '#ffffff by default.', 'pluginhunt' ),
'id' => 'ph_menu_color',
'std' => '#ffffff',
'type' => 'color'
);
$options[] = array(
'name' => __( 'Secondary Colour', 'pluginhunt' ),
'desc' => __( '#efefef selected by default.', 'pluginhunt' ),
'id' => 'ph_secondary_color',
'std' => '#efefef',
'type' => 'color'
);
$options[] = array(
'name' => __( 'New Post Header', 'pluginhunt' ),
'desc' => __( '#5898f1 selected by default.', 'pluginhunt' ),
'id' => 'ph_newpost_header',
"std" => "#5898f1",
'type' => 'color'
);
$options[] = array(
'name' => __( 'New Discussion Header', 'pluginhunt' ),
'desc' => __( '#4dc667 selected by default.', 'pluginhunt' ),
'id' => 'ph_discuss_header',
"std" => "#4dc667",
'type' => 'color'
);
$options[] = array(
'name' => __( 'New Woo Product Header', 'pluginhunt' ),
'desc' => __( '#f5a623 selected by default.', 'pluginhunt' ),
'id' => 'ph_woo_header',
"std" => "#f5a623",
'type' => 'color'
);
$options[] = array(
'name' => __( 'Not Voted Colour', 'pluginhunt' ),
'desc' => __( 'Arrow and score colour if not voted.', 'pluginhunt' ),
'id' => 'ph_novote',
'std' => "#000000",
'type' => 'color'
);
$options[] = array(
'name' => __( 'Voted Colour', 'pluginhunt' ),
'desc' => __( 'Arrow and score colour if voted.', 'pluginhunt' ),
'id' => 'ph_vote',
'std' => '#5898f1',
'type' => 'color'
);
$options[] = array(
'name' => __( 'Flyout Voted Colour', 'pluginhunt' ),
'desc' => __( 'Arrow and score colour if voted on the flyout.', 'pluginhunt' ),
'id' => 'ph_vote_fly',
'std' => '#5898f1',
'type' => 'color'
);
$options[] = array(
'name' => __( 'Score Colour', 'pluginhunt' ),
'desc' => __( 'Score colour if voted.', 'pluginhunt' ),
'id' => 'ph_score',
'std' => '#ffffff',
'type' => 'color'
);
$options[] = array(
'name' => __( '"GET IT" color', 'pluginhunt' ),
'desc' => __( 'Color of the word "GET IT" on single post page.', 'pluginhunt' ),
'id' => 'ph_get_it_color',
'std' => '#ffffff',
'type' => 'color'
);
$options[] = array(
'name' => __( 'Layout', 'pluginhunt' ),
'type' => 'heading'
);
$options[] = array(
'name' => "Index Layout Style",
'desc' => "Choose your layout style.",
'id' => "ph_layout_style",
'std' => "index-1",
'type' => "images",
'options' => array(
'index-1' => $imagepath . 'plugin-hunt-theme-layout-1.png',
'index-2' => $imagepath . 'plugin-hunt-theme-layout-2.png',
'index-3' => $imagepath . 'plugin-hunt-theme-layout-3.png',
'index-4' => $imagepath . 'plugin-hunt-theme-layout-4.png',
)
);
$options[] = array(
'name' => "Page Layout Style",
'desc' => "Choose your layout style.",
'id' => "ph_page_layout_style",
'std' => "page-1",
'type' => "images",
'options' => array(
'page-1' => $imagepath . 'page-1.png',
'page-2' => $imagepath . 'page-2.png',
)
);
$options[] = array(
'name' => __( 'Footer', 'pluginhunt' ),
'type' => 'heading'
);
$options[] = array(
'name' => __( 'Call to action pre text', 'pluginhunt' ),
'desc' => __( 'Text to input before the CTA button.', 'pluginhunt' ),
'id' =>'ph_footer_cta',
'type' => 'text'
);
$options[] = array(
'name' => __( 'Call to action text', 'pluginhunt' ),
'desc' => __( 'e.g. Buy Now.', 'pluginhunt' ),
'id' =>'ph_footer_cta_but',
'type' => 'text'
);
$options[] = array(
'name' => __( 'Call to action link', 'pluginhunt' ),
'desc' => __( 'e.g. http://pluginhunt.com/pricing/.', 'pluginhunt' ),
'id' =>'ph_footer_cta_link',
'type' => 'text'
);
$options[] = array(
'name' => __( 'Copyright text', 'pluginhunt' ),
'desc' => __( 'Copyright text.', 'pluginhunt' ),
'id' =>'ph_footer_copyright',
'type' => 'text'
);
$options[] = array(
'name' => __( 'Talk to us HTML', 'pluginhunt' ),
'desc' => __( 'e.g. call us (0800) 123 456.', 'pluginhunt' ),
'id' =>'ph_footer_talk',
'type' => 'text'
);
$options[] = array(
'name' => __( 'General', 'pluginhunt' ),
'type' => 'heading'
);
//Placeholder Image
$options[] = array(
'name' => __( 'Placeholder Image', 'pluginhunt' ),
'desc' => __( 'This image will be displayed on every post when a featured image is not defined.', 'pluginhunt' ),
'id' => 'placeholder_image',
'type' => 'upload'
);
$options[] = array(
'name' => "Group By",
'desc' => "Group posts by day or month.",
'id' => "ph_post_group",
'std' => "ph-group-day",
'type' => "select",
'options' => array(
'ph-group-day' => 'Day',
'ph-group-month' => 'Month',
)
);
$options[] = array(
'name' => __("Submit Content Option", "pluginhunt"),
'desc' => __("Use the built in form or use your own page.","pluginhunt"),
'id' => "ph_post_submit_option",
'std' => "one",
'type' => "select",
'options' => array(
'one' => 'Built in Form',
'two' => 'Own Page'
)
);
$options[] = array(
'name' => __( 'Own Page URL', 'pluginhunt' ),
'desc' => __( 'Enter the URL for the page you want to redirect to for content submissions', 'pluginhunt' ),
'id' => 'ph_post_submit_page',
'std' => '',
'type' => 'text'
);
$options[] = array(
'name' => "Post Flyout",
'desc' => "Which post flyout mode do you need (none = redirect to post). Video flyout only on layout 3",
'id' => "ph_post_flyout",
'std' => "one",
'type' => "select",
'options' => array(
'one' => 'Classic Fly Out',
'two' => 'Video Fly Out',
'three' => 'None if WooCommerce',
'four' => 'None'
)
);
$options[] = array(
'name' => __( 'Get it wording', 'pluginhunt' ),
'desc' => __( 'Enter the wording for get it.', 'pluginhunt' ),
'id' => 'ph_get_it',
'std' => 'Get it',
'type' => 'text'
);
$options[] = array(
'name' => __( 'Logged out users title', 'pluginhunt' ),
'desc' => __( 'Enter the title message logged out users will see here.', 'pluginhunt' ),
'id' => 'ph_logged_out_tit',
'std' => 'Plugin Hunt surfaces the best new WordPress plugins, every day.',
'type' => 'text'
);
$options[] = array(
'name' => __( 'Logged out users paragraph', 'pluginhunt' ),
'desc' => __( 'Enter the catch-line message logged out users will see here.', 'pluginhunt' ),
'id' => 'ph_logged_out_sub',
'std' => 'It is a place for WordPress lovers to share great WordPress plugins for sale on CodeCanyon.',
'type' => 'textarea'
);
$options[] = array(
'name' => __( 'Load More', 'pluginhunt' ),
'desc' => __( 'Enter the message when loading more content.', 'pluginhunt' ),
'id' => 'ph_load_more',
'std' => 'Hunting down older plugins...',
'type' => 'text'
);
$options[] = array(
'name' => __( 'From email', 'pluginhunt' ),
'desc' => __( 'Enter the from email for emails sent from your site (default "WordPress")', 'pluginhunt' ),
'id' => 'ph_from_email',
'std' => '[email protected]',
'type' => 'text'
);
$options[] = array(
'name' => __( 'Hunting (singluar)', 'pluginhunt' ),
'desc' => __( 'Enter the singular term for your hunts', 'pluginhunt' ),
'id' => 'ph_hunt_single',
'std' => 'plugin',
'type' => 'text'
);
$options[] = array(
'name' => __( 'Hunting (plural)', 'pluginhunt' ),
'desc' => __( 'Enter the plural term for your hunts', 'pluginhunt' ),
'id' => 'ph_hunt_plural',
'std' => 'plugins',
'type' => 'text'
);
$options[] = array(
'name' => __( 'Message when all content loaded', 'pluginhunt' ),
'desc' => __( 'When all content has loaded', 'pluginhunt' ),
'id' => 'ph_hunt_loaded',
'std' => 'No more plugins...',
'type' => 'text'
);
$options[] = array(
'name' => __( 'Show details of product', 'pluginhunt' ),
'desc' => __( 'Show the details area of the product.', 'pluginhunt' ),
'id' => 'ph_detail_on',
'type' => 'checkbox'
);
$options[] = array(
'name' => __( 'Disclaimer', 'pluginhunt' ),
'desc' => __( 'Puts a disclaimer on your site', 'pluginhunt' ),
'id' => 'ph_hunt_disclaimer',
'std' => 'Not affiliated with Product Hunt',
'type' => 'textarea'
);
if(of_get_option('ph_layout_style') != 'index-3'){
$options[] = array(
'name' => __( 'Grid', 'pluginhunt' ),
'type' => 'heading'
);
$options[] = array(
'name' => __( 'Grid Layout', 'pluginhunt' ),
'desc' => __( 'Grid Layout.', 'pluginhunt' ),
'id' => 'ph_grid_on',
'type' => 'checkbox'
);
}
/*
$options[] = array(
'name' => __( 'Hide Grid Toggle', 'pluginhunt' ),
'desc' => __( 'Show the option to toggle.', 'pluginhunt' ),
'id' =>'ph_grid_toggle',
'type' => 'checkbox'
);
*/
$options[] = array(
'name' => __( 'Collections', 'pluginhunt' ),
'type' => 'heading'
);
$options[] = array(
'name' => __( 'Sticky Collections', 'pluginhunt' ),
'desc' => __( 'Show the collections slide down banner.', 'pluginhunt' ),
'id' =>'ph_sticky_on',
'type' => 'checkbox'
);
$options[] = array(
'name' => __( 'Featured Collections Tagline', 'pluginhunt' ),
'desc' => __( 'On the /collections/ url show this text.', 'pluginhunt' ),
'id' =>'ph_collect_sub',
'type' => 'text'
);
$options[] = array(
'name' => __('User Profile','pluginhunt'),
'type' => 'heading'
);
$options[] = array(
'name' => __( 'User Profile Link', 'pluginhunt' ),
'desc' => __( 'Slug for the edit profile link', 'pluginhunt' ),
'id' => 'ph_edit_profile',
'std' => 'your-profile/',
'type' => 'text'
);
$options[] = array(
'name' => __('Discussions','pluginhunt'),
'type' => 'heading'
);
$options[] = array(
'name' => __( 'Enable Discussions', 'pluginhunt' ),
'desc' => __( 'Enable discussions section of pluginhunt.', 'pluginhunt' ),
'id' =>'ph_enable_discussions',
'type' => 'checkbox'
);
$options[] = array(
'name' => __('Marketplace','pluginhunt'),
'type' => 'heading'
);
$options[] = array(
'name' => __( 'Enable Marketplace', 'pluginhunt' ),
'desc' => __( 'To do this you need a multi vendor plugin', 'pluginhunt' ),
'id' =>'ph_enable_marketplace',
'type' => 'checkbox'
);
$options[] = array(
'name' => __('Lock Out','pluginhunt'),
'type' => 'heading'
);
$options[] = array(
'name' => __( 'Lockout', 'pluginhunt' ),
'desc' => __( 'Message for people who cannot submit content.', 'pluginhunt' ),
'id' => 'ph_lockout',
'std' => 'We are a community of product enthusiasts. To protect the integrity of our website only invited members can submit content.',
'type' => 'textarea'
);
$options[] = array(
'name' => __( 'FAQ', 'pluginhunt' ),
'desc' => __( 'Link to your faq page with information about invites etc.', 'pluginhunt' ),
'id' => 'ph_faq',
'std' => 'http://pluginhunt.com/faqs/',
'type' => 'text'
);
$options[] = array(
'name' => __('New Post Form','pluginhunt'),
'type' => 'heading'
);
$options[] = array(
'name' => __( 'Product Title', 'pluginhunt' ),
'desc' => __( 'Title for new product post form.', 'pluginhunt' ),
'id' => 'ph_newpost_title',
'std' => 'Post a new product',
'type' => 'text'
);
$options[] = array(
'name' => __( 'Product Sub Title', 'pluginhunt' ),
'desc' => __( 'sub title for new product post form.', 'pluginhunt' ),
'id' => 'ph_newpost_subtitle',
'std' => 'Found something cool? Hunt it!',
'type' => 'text'
);
$options[] = array(
'name' => __( 'Hunting..', 'pluginhunt' ),
'desc' => __( 'Text for the on submit button change.', 'pluginhunt' ),
'id' => 'ph_hunting_string',
'std' => 'Hunting..',
'type' => 'text'
);
$options[] = array(
'name' => __( 'Discuss Title', 'pluginhunt' ),
'desc' => __( 'Title for new discussion form.', 'pluginhunt' ),
'id' => 'ph_newdis_title',
'std' => 'Submit a discussion',
'type' => 'text'
);
$options[] = array(
'name' => __( 'Discuss Sub Title', 'pluginhunt' ),
'desc' => __( 'sub title for new discussion form.', 'pluginhunt' ),
'id' => 'ph_newdis_subtitle',
'std' => 'Lets talk about this',
'type' => 'text'
);
$options[] = array(
'name' => __( 'Woo Product Title', 'pluginhunt' ),
'desc' => __( 'Title for new woo product form.', 'pluginhunt' ),
'id' => 'ph_newwoo_title',
'std' => 'Submit a discussion',
'type' => 'text'
);
$options[] = array(
'name' => __( 'Woo Product Sub Title', 'pluginhunt' ),
'desc' => __( 'sub title for new woo product form.', 'pluginhunt' ),
'id' => 'ph_newwoo_subtitle',
'std' => 'Lets talk about this',
'type' => 'text'
);
//show full content or tagline input box...
$options[] = array(
'name' => __( 'Show Tag Line', 'pluginhunt' ),
'desc' => __( 'Show Tag Line or Full Content Input (On = tagline).', 'pluginhunt' ),
'id' =>'ph_full_content',
'type' => 'checkbox'
);
$options[] = array(
'name' => __( 'Show Product Type Dropdown.', 'pluginhunt' ),
'desc' => __( 'Show Product Type Dropdown.', 'pluginhunt' ),
'id' =>'ph_type_drop',
'type' => 'checkbox'
);
$options[] = array(
'name' => __( 'Show Product Availibility Dropdown.', 'pluginhunt' ),
'desc' => __( 'Show Product Availibility Dropdown.', 'pluginhunt' ),
'id' =>'ph_type_avail',
'type' => 'checkbox'
);
$options[] = array(
'name' => __( 'Button call to action', 'pluginhunt' ),
'desc' => __( 'Enter your button call to action here.', 'pluginhunt' ),
'id' => 'ph_newpost_cta',
'std' => 'Hunt it',
'type' => 'text'
);
$options[] = array(
'name' => __('Mail Chimp','pluginhunt'),
'type' => 'heading'
);
$options[] = array(
'name' => __( 'Mailchimp subscribe box **Must be on PHP 5.3 or higher to use**', 'pluginhunt' ),
'desc' => __( 'Do you want to use the Mailchimp subscribe box.', 'pluginhunt' ),
'id' => 'mailchimp_showhidden',
'type' => 'checkbox'
);
// $options[] = array(
// 'name' => __( 'Mailchimp Form Action URL', 'pluginhunt' ),
// 'desc' => __( 'Enter your mailchimp sign up form action URL.', 'pluginhunt' ),
// 'id' => 'mailchimp_action_hidden',
// 'std' => '',
// 'class' => 'hidden',
// 'type' => 'text'
// );
$options[] = array(
'name' => __( 'Sidebar title', 'pluginhunt' ),
'desc' => __( 'Enter the sidebar title.', 'pluginhunt' ),
'id' => 'mc_sidebar_title',
'std' => 'Plugins direct to your inbox!',
'type' => 'text'
);
$options[] = array(
'name' => __( 'Email capture', 'pluginhunt' ),
'desc' => __( 'Enter the message above the email capture.', 'pluginhunt' ),
'id' => 'ph_email_capture',
'std' => 'Get the best new plugin discoveries in your inbox weekly!',
'type' => 'text'
);
$options[] = array(
'name' => __('MailChimp API Key', 'pluginhunt'),
'desc' => __('Enter your MailChimp API Key', 'pluginhunt'),
'id' => 'mailchimp_apikey_hidden',
'std' => '',
'type' => 'text'
);
$options[] = array(
'name' => __('MailChimp List ID', 'pluginhunt'),
'desc' => __('Enter your MailChimp List ID', 'pluginhunt'),
'id' => 'mailchimp_listid_hidden',
'std' => '',
'type' => 'text'
);
$options[] = array(
'name' => __('MailChimp Success Message', 'pluginhunt'),
'desc' => __('Message to show on success', 'pluginhunt'),
'id' => 'ph_mc_msg',
'std' => '',
'type' => 'text'
);
$options[] = array(
'name' => __( 'Blog Layout', 'pluginhunt' ),
'type' => 'heading'
);
$options[] = array(
'name' => __( 'Blog Logo', 'pluginhunt' ),
'desc' => __( 'Logo to display on the blog page.', 'pluginhunt' ),
'id' => 'ph_blog_logo',
'type' => 'upload'
);
$options[] = array(
'name' => __( 'Blog title', 'pluginhunt' ),
'desc' => __( 'The title for your blog.', 'pluginhunt' ),
'id' => 'ph_blog_title',
'std' => '',
'type' => 'text'
);
$options[] = array(
'name' => __( 'Blog tagline', 'pluginhunt' ),
'desc' => __( 'The tagline for your blog.', 'pluginhunt' ),
'id' => 'ph_blog_tag',
'std' => '',
'type' => 'text'
);
$options[] = array(
'name' => __( 'Blog footer call to action', 'pluginhunt' ),
'desc' => __( 'The text in the footer button.', 'pluginhunt' ),
'id' => 'ph_blog_cta',
'std' => '',
'type' => 'text'
);
/*
$options[] = array(
'name' => "Blog Layout",
'desc' => "Images for layout.",
'id' => "ph_blog_layout",
'std' => "1col-fixed",
'type' => "images",
'options' => array(
'1col-fixed' => $imagepath . '1col.png',
'2c-l-fixed' => $imagepath . '2cl.png',
'2c-r-fixed' => $imagepath . '2cr.png'
)
);
*/
$options[] = array(
'name' => __( 'Custom CSS', 'pluginhunt' ),
'type' => 'heading'
);
$options[] = array(
'name' => __( 'Custom CSS for desktop', 'pluginhunt' ),
'desc' => __( 'Enter your custom CSS for desktop here.', 'pluginhunt' ),
'id' => 'ph_custom_css',
'std' => '',
'type' => 'textarea'
);
$options[] = array(
'name' => __( 'Custom CSS for mobile', 'pluginhunt' ),
'desc' => __( 'Enter your custom CSS for mobile here.', 'pluginhunt' ),
'id' => 'ph_mobile_custom_css',
'std' => '',
'type' => 'textarea'
);
$options[] = array(
'name' => __( 'Google Analytics', 'pluginhunt' ),
'type' => 'heading'
);
$options[] = array(
'name' => __( 'Tracking code', 'pluginhunt' ),
'desc' => __( 'Enter your analytics tracking code here (without the <script></script> tags).', 'pluginhunt' ),
'id' => 'ph_ga',
'std' => '',
'type' => 'textarea'
);
$options[] = array(
'name' => __('Socials','pluginhunt'),
'type' => 'heading'
);
$options[] = array(
'name' => __( 'Twitter Handle', 'pluginhunt' ),
'desc' => __( 'Enter your twitter handle here e.g. @epicplugins', 'pluginhunt' ),
'id' => 'ph_tweet_at',
'std' => '@epicplugins',
'type' => 'text'
);
return $options;
}