C:\xampp\htdocs\landing\wp-content\updraft\themes-old\pennews_\inc\customizer\07-single.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
<?php
$wp_customize
->add_section'penci_single', array(
    
'title'    => esc_html__'Single Post Options''pennews' ),
    
'priority' => 6,
) );

$wp_customize->add_setting'penci_single_sidebar_layout', array(
    
'default'           => 'two-sidebar',
    
'sanitize_callback' => array( $sanitizer'select' ),
) );
$wp_customize->add_control( new Penci_Customize_Control_Radio_Image(
    
$wp_customize,
    
'penci_single_sidebar_layout',
    array(
        
'label'    => esc_html__'Single Sidebar Layout''pennews' ),
        
'section'  => 'penci_single',
        
'type'     => 'radio-image',
        
'choices'  => array(
            
'no-sidebar-wide' => array( 'url' => '%s/images/layout/wide-content.png''label' => esc_html__'Wide content''pennews' ) ),
            
'no-sidebar-1080' => array( 'url' => '%s/images/layout/wide-content-1080.png''label' => esc_html__'Wide content 1080''pennews' ) ),
            
'no-sidebar'      => array( 'url' => '%s/images/layout/no-sidebar.png''label' => esc_html__'No Sidebar''pennews' ) ),
            
'sidebar-left'    => array( 'url' => '%s/images/layout/sidebar-left.png''label' => esc_html__'Sidebar Left''pennews' ) ),
            
'sidebar-right'   => array( 'url' => '%s/images/layout/sidebar-right.png''label' => esc_html__'Sidebar Right''pennews' ) ),
            
'two-sidebar'     => array( 'url' => '%s/images/layout/3cm.png''label' => esc_html__'Two Sidebar''pennews' ) ),
        ),
        
'settings' => 'penci_single_sidebar_layout',
    )
) );

$wp_customize->add_setting'penci_single_template', array(
    
'default'           => 'style-1',
    
'sanitize_callback' => array( $sanitizer'select' ),
) );
$wp_customize->add_control( new Penci_Customize_Control_Radio_Image(
    
$wp_customize,
    
'penci_single_template',
    array(
        
'label'    => esc_html__'Single template''pennews' ),
        
'section'  => 'penci_single',
        
'type'     => 'radio-image',
        
'choices'  => array(
            
'style-1'  => array( 'url' => '%s/images/single/style_1.png''label' => esc_html__'Style 1''pennews' ) ),
            
'style-2'  => array( 'url' => '%s/images/single/style_2.png''label' => esc_html__'Style 2''pennews' ) ),
            
'style-3'  => array( 'url' => '%s/images/single/style_3.png''label' => esc_html__'Style 3''pennews' ) ),
            
'style-4'  => array( 'url' => '%s/images/single/style_4.png''label' => esc_html__'Style 4''pennews' ) ),
            
'style-5'  => array( 'url' => '%s/images/single/style_5.png''label' => esc_html__'Style 5''pennews' ) ),
            
'style-6'  => array( 'url' => '%s/images/single/style_6.png''label' => esc_html__'Style 6''pennews' ) ),
            
'style-7'  => array( 'url' => '%s/images/single/style_7.png''label' => esc_html__'Style 7''pennews' ) ),
            
'style-8'  => array( 'url' => '%s/images/single/style_8.png''label' => esc_html__'Style 8''pennews' ) ),
            
'style-9'  => array( 'url' => '%s/images/single/style_9.png''label' => esc_html__'Style 9''pennews' ) ),
            
'style-10' => array( 'url' => '%s/images/single/style_10.png''label' => esc_html__'Style 10''pennews' ) ),
        ),
        
'settings' => 'penci_single_template',
    )
) );

// Custom sidebar left
$wp_customize->add_setting'penci_single_custom_sidebar_left', array(
    
'default'           => 'sidebar-2',
    
'sanitize_callback' => array( $sanitizer'select' ),
) );
$wp_customize->add_control(
    
'penci_single_custom_sidebar_left',
    array(
        
'label'    => esc_html__'Custom Sidebar Left''pennews' ),
        
'section'  => 'penci_single',
        
'type'     => 'select',
        
'choices'  => Penci_Custom_Sidebar::get_list_sidebar(),
        
'settings' => 'penci_single_custom_sidebar_left',
    )
);

// Custom sidebar right
$wp_customize->add_setting'penci_single_custom_sidebar_right', array(
    
'default'           => 'sidebar-1',
    
'sanitize_callback' => array( $sanitizer'select' ),
) );
$wp_customize->add_control(
    
'penci_single_custom_sidebar_right',
    array(
        
'label'    => esc_html__'Custom Sidebar right''pennews' ),
        
'section'  => 'penci_single',
        
'type'     => 'select',
        
'choices'  => Penci_Custom_Sidebar::get_list_sidebar'right' ),
        
'settings' => 'penci_single_custom_sidebar_right',
    )
);


$wp_customize->add_setting'penci_single_header_ad_box', array(
    
'sanitize_callback' => array( $sanitizer'textarea' )
) );

$wp_customize->add_control'penci_single_header_ad_box', array(
    
'label'    => esc_html__'AD Code For Post Template Style 10''pennews' ),
    
'section'  => 'penci_single',
    
'settings' => 'penci_single_header_ad_box',
    
'type'     => 'textarea',
) );

$wp_customize->add_setting'penci_single_heading', array(
    
'sanitize_callback' => 'esc_url_raw'
) );
$wp_customize->add_control( new Penci_Customize_Heading_Control$wp_customize'penci_single_heading', array(
    
'label'    => esc_html__'Post and Custom Post Types''pennews' ),
    
'section'  => 'penci_single',
    
'settings' => 'penci_single_heading',
    
'type'     => 'heading',
) ) );

$wp_customize->add_setting'penci_single_size_post_title', array(
    
'sanitize_callback' => array( $sanitizer'html' ),
    
'default'           => '30',
) );

$wp_customize->add_control( new Penci_Customize_Font_Size_Control$wp_customize'penci_single_size_post_title', array(
    
'label'    => esc_html__'Custom font size Title''pennews' ),
    
'section'  => 'penci_single',
    
'settings' => 'penci_single_size_post_title',
    
'type'     => 'font_size',
) ) );

$wp_customize->add_setting'penci_single_size_post_meta', array(
    
'sanitize_callback' => array( $sanitizer'html' ),
    
'default'           => '',
) );

$wp_customize->add_control( new Penci_Customize_Font_Size_Control$wp_customize'penci_single_size_post_meta', array(
    
'label'    => esc_html__'Custom font size post meta''pennews' ),
    
'section'  => 'penci_single',
    
'settings' => 'penci_single_size_post_meta',
    
'type'     => 'font_size',
) ) );

$wp_customize->add_setting'penci_post_enable_subtitle', array(
    
'sanitize_callback' => array( $sanitizer'checkbox' ),
) );

$wp_customize->add_control( new WP_Customize_Control(
    
$wp_customize,
    
'penci_post_enable_subtitle',
    array(
        
'label'       => esc_html__'Show Subtitle on Single Posts''pennews' ),
        
'section'     => 'penci_single',
        
'type'        => 'checkbox',
        
'settings'    => 'penci_post_enable_subtitle',
    )
) );

$wp_customize->add_setting'penci_single_align_post_title', array(
    
'default'           => 'left',
    
'sanitize_callback' => array( $sanitizer'select' ),
) );
$wp_customize->add_control'penci_single_align_post_title', array(
    
'label'    => esc_html__'Post Title Align''pennews' ),
    
'section'  => 'penci_single',
    
'settings' => 'penci_single_align_post_title',
    
'type'     => 'select',
    
'choices'  => array(
        
'left'   => esc_html__'Left''pennews' ),
        
'center' => esc_html__'Center''pennews' ),
        
'right'  => esc_html__'Right''pennews' )
    )
) );

$wp_customize->add_setting'penci_single_featured_img_action', array(
    
'default'           => '',
    
'sanitize_callback' => array( $sanitizer'select' ),
) );
$wp_customize->add_control'penci_single_featured_img_action', array(
    
'label'    => esc_html__'Featured Image Action''pennews' ),
    
'section'  => 'penci_single',
    
'settings' => 'penci_single_featured_img_action',
    
'type'     => 'select',
    
'choices'  => array(
        
''         => esc_html__'No Link''pennews' ),
        
'img_url'  => esc_html__'Click to view image url''pennews' ),
        
'lightbox' => esc_html__'Click open image in lightbox''pennews' )
    )
) );

$wp_customize->add_setting'penci_dis_jarallax_single', array(
    
'sanitize_callback' => array( $sanitizer'checkbox' ),
) );

$wp_customize->add_control( new WP_Customize_Control(
    
$wp_customize,
    
'penci_dis_jarallax_single',
    array(
        
'label'       => esc_html__'Disable Parallax Images on Single Posts''pennews' ),
        
'section'     => 'penci_single',
        
'type'        => 'checkbox',
        
'settings'    => 'penci_dis_jarallax_single',
    )
) );

$wp_customize->add_setting'penci_post_featured_image_ratio', array(
    
'sanitize_callback' => array( $sanitizer'html' ),
    
'default'           => '',
) );

$wp_customize->add_control'penci_post_featured_image_ratio', array(
    
'label'    => esc_html__'Custom Aspect Ratio for Featured Image''pennews' ),
    
'section'  => 'penci_single',
    
'settings'    => 'penci_post_featured_image_ratio',
    
'description' => __'The aspect ratio of an element describes the proportional relationship between its width and its height. E.g: <strong>3:2</strong>. Default is 3:2 . This option not apply when enable parallax images. This feature does not apply for Single Style 1 & 2''pennews' ),
) );

$single_list_check = array(
    
'penci_hide_single_featured_img'       => esc_html__'Hide Featured Image Auto Appears''pennews' ),
    
'penci_show_single_featured_img_cap'   => esc_html__'Enable Caption on Featured Image''pennews' ),
    
'penci_hide_single_breadcrumb'         => esc_html__'Hide Breadcrumbs''pennews' ),
    
'penci_hide_single_category'           => esc_html__'Hide Categories''pennews' ),
    
'penci_hide_single_date'               => esc_html__'Hide Post Date''pennews' ),
    
'penci_hide_single_author'             => esc_html__'Hide Post Author''pennews' ),
    
'penci_hide_single_comment_count'      => esc_html__'Hide Comment Count''pennews' ),
    
'penci_hide_single_view'               => esc_html__'Hide Post Count View''pennews' ),
    
'penci_enable_ajax_view'               => esc_html__'Enable ajax Post View Count''pennews' ),
    
'penci_hide_single_tag'                => esc_html__'Hide Tags''pennews' ),
    
'penci_single_hide_source'             => esc_html__'Hide Source''pennews' ),
    
'penci_single_hide_via'                => esc_html__'Hide Via''pennews' ),
    
'penci_hide_single_post_nav'           => esc_html__'Hide Next/Prev Post Navigation''pennews' ),
    
'penci_show_single_post_nav_thumbnail' => esc_html__'Enable Post Thumbnail for Next/Prev Post Navigation''pennews' ),
    
'penci_hide_single_author_box'         => esc_html__'Hide Author Box''pennews' ),
    
'penci_hide_single_related'            => esc_html__'Hide Related Posts Box''pennews' ),
    
'penci_single_gdpr'                    => esc_html__'Enable GDPR message on Comment Form''pennews' ),
);

foreach ( 
$single_list_check as $id_option => $label_option ) {
    
$desc '';

    if ( 
'penci_hide_single_featured_img' == $id_option ) {
        
$desc esc_html__'This option just apply for Single Post Styles 1, 2 & 9. And It does not apply for Video & Gallery Format''pennews' );
    }

    if ( 
'penci_show_single_featured_img_cap' == $id_option ) {
        
$desc esc_html__'If your featured image has a caption, it will display on featured image. This option apply for styles 1, 2, 9 & 10''pennews' );
    }

    if ( 
'penci_enable_ajax_view' == $id_option ) {
        
$desc esc_html__'Use to count posts viewed when you using cache plugin.''pennews' );
    }

    
$wp_customize->add_setting$id_option, array(
        
'sanitize_callback' => array( $sanitizer'checkbox' ),
    ) );

    
$wp_customize->add_control( new WP_Customize_Control(
        
$wp_customize,
        
$id_option,
        array(
            
'label'       => $label_option,
            
'section'     => 'penci_single',
            
'type'        => 'checkbox',
            
'settings'    => $id_option,
            
'description' => $desc
        
)
    ) );
}

$wp_customize->add_setting'penci_single_gdpr_text', array(
    
'default'           => esc_html__'* By using this form you agree with the storage and handling of your data by this website.''pennews' ),
    
'sanitize_callback' => array( $sanitizer'textarea' )
) );

$wp_customize->add_control'penci_single_gdpr_text', array(
    
'label'       => esc_html__'Custom GDPR Message on Comment Form''pennews' ),
    
'section'     => 'penci_single',
    
'description' => esc_html__'You can use HTML here''pennews' ),
    
'settings'    => 'penci_single_gdpr_text',
    
'type'        => 'textarea',
) );

$wp_customize->add_setting'penci_single_gdpr_fsize', array(
    
'sanitize_callback' => array( $sanitizer'html' )
) );

$wp_customize->add_control( new Penci_Customize_Font_Size_Control$wp_customize'penci_single_gdpr_fsize', array(
    
'label'    => esc_html__'Custom Font Size GDPR Message on Comment Form''pennews' ),
    
'section'  => 'penci_single',
    
'settings' => 'penci_single_gdpr_fsize',
    
'type'     => 'font_size',
) ) );

// ------ Social Share Box

$wp_customize->add_setting'penci_single_social_share_heading', array(
    
'sanitize_callback' => 'esc_url_raw'
) );
$wp_customize->add_control( new Penci_Customize_Heading_Control$wp_customize'penci_single_social_share_heading', array(
    
'label'    => esc_html__'Social Share Box''pennews' ),
    
'section'  => 'penci_single',
    
'settings' => 'penci_single_social_share_heading',
    
'type'     => 'heading',
) ) );

$single_social_share = array(
    
'penci_hide_single_social_share_top'    => esc_html__'Hide Social Share on Top''pennews' ),
    
'penci_hide_single_social_share_bottom' => esc_html__'Hide Social Share on Bottom''pennews' ),
    
'penci_hide_single_share_text'          => esc_html__'Hide Text "Share"''pennews' ),
    
'penci_single_soshare_center'           => esc_html__'Enable Center Social Sharing''pennews' ),

);

foreach ( 
$single_social_share as $id_option => $label_option ) {
    
$wp_customize->add_setting$id_option, array(
        
'sanitize_callback' => array( $sanitizer'checkbox' ),
    ) );
    
$wp_customize->add_control( new WP_Customize_Control(
        
$wp_customize,
        
$id_option,
        array(
            
'label'    => $label_option,
            
'section'  => 'penci_single',
            
'type'     => 'checkbox',
            
'settings' => $id_option,
        )
    ) );
}

// ------ Author & Related Box
$wp_customize->add_setting'penci_single_related_heading', array(
    
'sanitize_callback' => 'esc_url_raw'
) );
$wp_customize->add_control( new Penci_Customize_Heading_Control$wp_customize'penci_single_related_heading', array(
    
'label'    => esc_html__'Author & Related Box''pennews' ),
    
'section'  => 'penci_single',
    
'settings' => 'penci_single_related_heading',
    
'type'     => 'heading',
) ) );
$single_author = array(
    
'penci_hide_single_author_box'       => esc_html__'Hide Author Box''pennews' ),
    
'penci_hide_single_related'          => esc_html__'Hide Related Posts Box''pennews' ),
    
'penci_show_img_default_related'     => esc_html__'Enable Default Featured Image''pennews' ),
    
'penci_hide_single_related_icon'     => esc_html__'Enable Posts Format Icons in Related Posts''pennews' ),
    
'penci_enable_slider_related'        => esc_html__'Enable Slider in Related Posts''pennews' ),
    
'penci_hide_single_related_autoplay' => esc_html__'Related Posts Carousel Auto Play''pennews' ),
    
'penci_hide_single_related_dots'     => esc_html__'Hide Dots On Carousel Related Posts''pennews' ),
    
'penci_hide_single_related_arrows'   => esc_html__'Hide Next/Prev Button On Carousel Related Posts''pennews' ),

);

foreach ( 
$single_author as $id_option => $label_option ) {
    
$wp_customize->add_setting$id_option, array(
        
'sanitize_callback' => array( $sanitizer'checkbox' ),
    ) );
    
$wp_customize->add_control( new WP_Customize_Control(
        
$wp_customize,
        
$id_option,
        array(
            
'label'    => $label_option,
            
'section'  => 'penci_single',
            
'type'     => 'checkbox',
            
'settings' => $id_option,
        )
    ) );
}

// Related Posts Custom Text
$wp_customize->add_setting'penci_single_related_text', array(
    
'default'           => penci_default_setting'penci_single_related_text' ),
    
'sanitize_callback' => array( $sanitizer'text' ),
) );
$wp_customize->add_control'penci_single_related_text', array(
    
'label'    => esc_html__'Related Posts Custom Text''pennews' ),
    
'section'  => 'penci_single',
    
'settings' => 'penci_single_related_text',
) );

// Amount of Related Posts
$wp_customize->add_setting'penci_single_related_amount', array(
    
'sanitize_callback' => array( $sanitizer'html' ),
    
'default'           => '3',
) );
$wp_customize->add_control( new Penci_Customize_Number_Control$wp_customize'penci_single_related_amount', array(
    
'label'    => esc_html__'Amount of Related Posts''pennews' ),
    
'section'  => 'penci_single',
    
'settings' => 'penci_single_related_amount',
    
'type'     => 'number',
) ) );

$wp_customize->add_setting'penci_related_by', array(
    
'default'           => 'categories',
    
'sanitize_callback' => array( $sanitizer'html' ),
) );
$wp_customize->add_control( new WP_Customize_Control$wp_customize'penci_related_by', array(
    
'label'    => esc_html__'Display Related Posts By:''pennews' ),
    
'section'  => 'penci_single',
    
'settings' => 'penci_related_by',
    
'type'     => 'select',
    
'choices'  => array(
        
'categories' => 'Categories',
        
'tags'       => 'Tags'
    
)
) ) );

$wp_customize->add_setting'penci_custompost_related_by', array(
    
'default'           => '',
    
'sanitize_callback' => array( $sanitizer'text' ),
) );
$wp_customize->add_control'penci_custompost_related_by', array(
    
'label'    => esc_html__'Add supports for related posts for custom post type''pennews' ),
    
'section'  => 'penci_single',
    
'settings' => 'penci_custompost_related_by',
    
'description' => __'This option will help you show related posts for custom post type. E.g: <strong>[post-type1, taxonomy1], [post-type2, taxonomy2], [post-type3, taxonomy3]</strong>
That mean, the custom post type 1 will display related posts based on taxonomy 1.
'
,'pennews' ),
) );

$wp_customize->add_setting'penci_related_orderby', array(
    
'default'           => 'rand',
    
'sanitize_callback' => array( $sanitizer'html' ),
) );
$wp_customize->add_control( new WP_Customize_Control$wp_customize'penci_related_orderby', array(
    
'label'    => esc_html__'Order Related Posts''pennews' ),
    
'section'  => 'penci_single',
    
'settings' => 'penci_related_orderby',
    
'type'     => 'select',
    
'choices'  => array(
        
'rand'  => 'Random',
        
'date'  => 'Posts Date',
        
'title' => 'Posts title'
    
)
) ) );

$wp_customize->add_setting'penci_related_post_title_size', array(
    
'sanitize_callback' => array( $sanitizer'html' )
) );

$wp_customize->add_control( new Penci_Customize_Font_Size_Control$wp_customize'penci_related_post_title_size', array(
    
'label'    => esc_html__'Custom Font Size For Related Post Title''pennews' ),
    
'section'  => 'penci_single',
    
'settings' => 'penci_related_post_title_size',
    
'type'     => 'font_size',
) ) );

// Auto Load Previous Post?
$wp_customize->add_setting'penci_single_load_previous_heading', array(
    
'sanitize_callback' => 'esc_url_raw'
) );
$wp_customize->add_control( new Penci_Customize_Heading_Control$wp_customize'penci_single_load_previous_heading', array(
    
'label'       => esc_html__'Auto Load Previous Posts''pennews' ),
    
'section'     => 'penci_single',
    
'settings'    => 'penci_single_load_previous_heading',
    
'type'        => 'heading',
    
'description' => esc_html__'Uncheck this box if you would like to remove the automatic loading of the previous post below the article.''pennews' )
) ) );

$wp_customize->add_setting'penci_auto_load_prev_post', array(
    
'sanitize_callback' => array( $sanitizer'checkbox' )
) );
$wp_customize->add_control( new WP_Customize_Control(
    
$wp_customize,
    
'penci_auto_load_prev_post',
    array(
        
'label'    => esc_html__'Auto Load Previous Post?''pennews' ),
        
'section'  => 'penci_single',
        
'type'     => 'checkbox',
        
'settings' => 'penci_auto_load_prev_post',
    )
) );
$wp_customize->add_setting'penci_aload_remove_btncomment', array(
    
'sanitize_callback' => array( $sanitizer'checkbox' )
) );
$wp_customize->add_control( new WP_Customize_Control(
    
$wp_customize,
    
'penci_aload_remove_btncomment',
    array(
        
'label'    => esc_html__'Remove "Click to comment" button''pennews' ),
        
'section'  => 'penci_single',
        
'type'     => 'checkbox',
        
'settings' => 'penci_aload_remove_btncomment',
    )
) );
$wp_customize->add_setting'penci_dis_auto_load_prev_mobile', array(
    
'sanitize_callback' => array( $sanitizer'checkbox' )
) );
$wp_customize->add_control( new WP_Customize_Control(
    
$wp_customize,
    
'penci_dis_auto_load_prev_mobile',
    array(
        
'label'    => esc_html__'Disable Auto Load Previous Post on Mobile?''pennews' ),
        
'section'  => 'penci_single',
        
'type'     => 'checkbox',
        
'settings' => 'penci_dis_auto_load_prev_mobile',
    )
) );

$wp_customize->add_setting'penci_autoload_prev_by', array(
    
'sanitize_callback' => array( $sanitizer'select' ),
) );
$wp_customize->add_control'penci_autoload_prev_by', array(
    
'label'    => esc_html__'Display Auto Load Previous Post By:''pennews' ),
    
'section'  => 'penci_single',
    
'settings' => 'penci_autoload_prev_by',
    
'type'     => 'select',
    
'choices'  => array(
        
''    => esc_html__'Default''pennews' ),
        
'cat' => esc_html__'Category''pennews' )
    )
) );
$wp_customize->add_setting'penci_autoload_prev_number', array(
    
'default'           => 1,
    
'sanitize_callback' => array( $sanitizer'html' ),
) );
$wp_customize->add_control( new Penci_Customize_Number_Control$wp_customize'penci_autoload_prev_number', array(
    
'label'       => esc_html__'Auto Show "Previous Post" after x Post''pennews' ),
    
'section'     => 'penci_single',
    
'settings'    => 'penci_autoload_prev_number',
    
'type'        => 'number',
    
'description' => esc_html__'Uncheck this box if you would like to remove the automatic loading of the previous post below the article.''pennews' )
) ) );

$wp_customize->add_setting'penci_single_comment_heading', array(
    
'sanitize_callback' => 'esc_url_raw'
) );
$wp_customize->add_control( new Penci_Customize_Heading_Control$wp_customize'penci_single_comment_heading', array(
    
'label'    => esc_html__'Comments''pennews' ),
    
'section'  => 'penci_single',
    
'settings' => 'penci_single_comment_heading',
    
'type'     => 'heading',
) ) );

$single_list_comment = array(
    
'penci_hide_single_comments' => esc_html__'Hide Post Comments''pennews' ),
    
'penci_comment_wordpress'    => esc_html__'Wordpress Comments''pennews' ),
);
if( 
class_exists'Penci_Reivew_Form' ) ){
    
$single_list_comment['penci_comment_review'] = esc_html__'Review''pennews' );
}

$single_list_comment['penci_comment_facebook']    = esc_html__'Facebook Comments''pennews' );
$single_list_comment['penci_comment_save_fields'] = esc_html__'Hide checkbox "Save my name, email, and website in this browser for the next time I comment."''pennews' );

foreach ( 
$single_list_comment as $id_option => $label_option ) {
    
$default '';

    if ( 
'penci_comment_wordpress' == $id_option ) {
        
$default 1;
    }

    
$wp_customize->add_setting$id_option, array(
        
'sanitize_callback' => array( $sanitizer'checkbox' ),
        
'default'           => $default
    
) );
    
$wp_customize->add_control( new WP_Customize_Control(
        
$wp_customize,
        
$id_option,
        array(
            
'label'    => $label_option,
            
'section'  => 'penci_single',
            
'type'     => 'checkbox',
            
'settings' => $id_option,
        )
    ) );
}

$wp_customize->add_setting'penci_comment_face_number', array(
    
'sanitize_callback' => array( $sanitizer'html' ),
    
'default'           => 5
) );

$wp_customize->add_control( new Penci_Customize_Font_Size_Control$wp_customize'penci_comment_face_number', array(
    
'label'       => esc_html__'Number of Facebook Comments''pennews' ),
    
'section'     => 'penci_single',
    
'settings'    => 'penci_comment_face_number',
    
'type'        => 'font_size',
    
'description' => esc_html__'The number of comments to show by default. The minimum value is 5.''pennews' )
) ) );

$wp_customize->add_setting'penci_comment_face_color', array(
    
'sanitize_callback' => array( $sanitizer'select' ),
    
'default'           => 'light'
) );
$wp_customize->add_control'penci_comment_face_color', array(
    
'label'    => esc_html__'Colorscheme of Facebook Comments:''pennews' ),
    
'section'  => 'penci_single',
    
'settings' => 'penci_comment_face_color',
    
'type'     => 'select',
    
'choices'  => array(
        
'light' => esc_html__'Light''pennews' ),
        
'dark'  => esc_html__'Dark''pennews' )
    )
) );

$wp_customize->add_setting'penci_comment_face_ordery', array(
    
'sanitize_callback' => array( $sanitizer'select' ),
    
'default'           => 'social'
) );
$wp_customize->add_control'penci_comment_face_ordery', array(
    
'label'       => esc_html__'Order by Facebook Comments:''pennews' ),
    
'section'     => 'penci_single',
    
'settings'    => 'penci_comment_face_ordery',
    
'type'        => 'select',
    
'choices'     => array(
        
'social'       => esc_html__'social''pennews' ),
        
'reverse_time' => esc_html__'Reverse time''pennews' ),
        
'time'         => esc_html__'time''pennews' )
    ),
    
'description' => __'The order to use when displaying comments. Can be "social", "reverse_time", or "time". The different order types are explained <a href="https://developers.facebook.com/docs/plugins/comments#faqorder" target="_blank">in the FAQ</a>''pennews' )
) );

$wp_customize->add_setting'penci_comment_face_language', array(
    
'sanitize_callback' => array( $sanitizer'html' ),
    
'default'           => ''
) );
$wp_customize->add_control'penci_comment_face_language', array(
    
'label'    => esc_html__'Choose Language for Facebook Comments:''pennews' ),
    
'section'  => 'penci_single',
    
'settings' => 'penci_comment_face_language',
    
'type'     => 'select',
    
'choices'  => array(
        
'en_US' => 'English (US)',
        
'af_ZA' => 'Afrikaans',
        
'ak_GH' => 'Akan',
        
'am_ET' => 'Amharic',
        
'ar_AR' => 'Arabic',
        
'as_IN' => 'Assamese',
        
'ay_BO' => 'Aymara',
        
'az_AZ' => 'Azerbaijani',
        
'be_BY' => 'Belarusian',
        
'bg_BG' => 'Bulgarian',
        
'bn_IN' => 'Bengali',
        
'br_FR' => 'Breton',
        
'bs_BA' => 'Bosnian',
        
'ca_ES' => 'Catalan',
        
'cb_IQ' => 'Sorani Kurdish',
        
'ck_US' => 'Cherokee',
        
'co_FR' => 'Corsican',
        
'cs_CZ' => 'Czech',
        
'cx_PH' => 'Cebuano',
        
'cy_GB' => 'Welsh',
        
'da_DK' => 'Danish',
        
'de_DE' => 'German',
        
'el_GR' => 'Greek',
        
'en_GB' => 'English (UK)',
        
'en_IN' => 'English (India)',
        
'en_PI' => 'English (Pirate)',
        
'en_UD' => 'English (Upside Down)',
        
'eo_EO' => 'Esperanto',
        
'es_CO' => 'Spanish (Colombia)',
        
'es_ES' => 'Spanish (Spain)',
        
'es_LA' => 'Spanish',
        
'et_EE' => 'Estonian',
        
'eu_ES' => 'Basque',
        
'fa_IR' => 'Persian',
        
'fb_LT' => 'Leet Speak',
        
'ff_NG' => 'Fulah',
        
'fi_FI' => 'Finnish',
        
'fo_FO' => 'Faroese',
        
'fr_CA' => 'French (Canada)',
        
'fr_FR' => 'French (France)',
        
'fy_NL' => 'Frisian',
        
'ga_IE' => 'Irish',
        
'gl_ES' => 'Galician',
        
'gn_PY' => 'Guarani',
        
'gu_IN' => 'Gujarati',
        
'gx_GR' => 'Classical Greek',
        
'ha_NG' => 'Hausa',
        
'he_IL' => 'Hebrew',
        
'hi_IN' => 'Hindi',
        
'hr_HR' => 'Croatian',
        
'hu_HU' => 'Hungarian',
        
'hy_AM' => 'Armenian',
        
'id_ID' => 'Indonesian',
        
'ig_NG' => 'Igbo',
        
'is_IS' => 'Icelandic',
        
'it_IT' => 'Italian',
        
'ja_JP' => 'Japanese',
        
'ja_KS' => 'Japanese (Kansai)',
        
'jv_ID' => 'Javanese',
        
'ka_GE' => 'Georgian',
        
'kk_KZ' => 'Kazakh',
        
'km_KH' => 'Khmer',
        
'kn_IN' => 'Kannada',
        
'ko_KR' => 'Korean',
        
'ku_TR' => 'Kurdish (Kurmanji)',
        
'la_VA' => 'Latin',
        
'lg_UG' => 'Ganda',
        
'li_NL' => 'Limburgish',
        
'ln_CD' => 'Lingala',
        
'lo_LA' => 'Lao',
        
'lt_LT' => 'Lithuanian',
        
'lv_LV' => 'Latvian',
        
'mg_MG' => 'Malagasy',
        
'mk_MK' => 'Macedonian',
        
'ml_IN' => 'Malayalam',
        
'mn_MN' => 'Mongolian',
        
'mr_IN' => 'Marathi',
        
'ms_MY' => 'Malay',
        
'mt_MT' => 'Maltese',
        
'my_MM' => 'Burmese',
        
'nb_NO' => 'Norwegian (bokmal)',
        
'nd_ZW' => 'Ndebele',
        
'ne_NP' => 'Nepali',
        
'nl_BE' => 'Dutch (België)',
        
'nl_NL' => 'Dutch',
        
'nn_NO' => 'Norwegian (nynorsk)',
        
'ny_MW' => 'Chewa',
        
'or_IN' => 'Oriya',
        
'pa_IN' => 'Punjabi',
        
'pl_PL' => 'Polish',
        
'ps_AF' => 'Pashto',
        
'pt_BR' => 'Portuguese (Brazil)',
        
'pt_PT' => 'Portuguese (Portugal)',
        
'qu_PE' => 'Quechua',
        
'rm_CH' => 'Romansh',
        
'ro_RO' => 'Romanian',
        
'ru_RU' => 'Russian',
        
'rw_RW' => 'Kinyarwanda',
        
'sa_IN' => 'Sanskrit',
        
'sc_IT' => 'Sardinian',
        
'se_NO' => 'Northern Sámi',
        
'si_LK' => 'Sinhala',
        
'sk_SK' => 'Slovak',
        
'sl_SI' => 'Slovenian',
        
'sn_ZW' => 'Shona',
        
'so_SO' => 'Somali',
        
'sq_AL' => 'Albanian',
        
'sr_RS' => 'Serbian',
        
'sv_SE' => 'Swedish',
        
'sw_KE' => 'Swahili',
        
'sy_SY' => 'Syriac',
        
'sz_PL' => 'Silesian',
        
'ta_IN' => 'Tamil',
        
'te_IN' => 'Telugu',
        
'tg_TJ' => 'Tajik',
        
'th_TH' => 'Thai',
        
'tk_TM' => 'Turkmen',
        
'tl_PH' => 'Filipino',
        
'tl_ST' => 'Klingon',
        
'tr_TR' => 'Turkish',
        
'tt_RU' => 'Tatar',
        
'tz_MA' => 'Tamazight',
        
'uk_UA' => 'Ukrainian',
        
'ur_PK' => 'Urdu',
        
'uz_UZ' => 'Uzbek',
        
'vi_VN' => 'Vietnamese',
        
'wo_SN' => 'Wolof',
        
'xh_ZA' => 'Xhosa',
        
'yi_DE' => 'Yiddish',
        
'yo_NG' => 'Yoruba',
        
'zh_CN' => 'Simplified Chinese (China)',
        
'zh_HK' => 'Traditional Chinese (Hong Kong)',
        
'zh_TW' => 'Traditional Chinese (Taiwan)',
        
'zu_ZA' => 'Zulu',
        
'zz_TR' => 'Zazaki',
    ),
) );

$wp_customize->add_setting'penci_comment_face_AppID', array(
    
'sanitize_callback' => array( $sanitizer'html' ),
    
'default'           => '',
) );
$wp_customize->add_control'penci_comment_face_AppID', array(
    
'label'    => esc_html__'Enter in your Facebook App ID''pennews' ),
    
'section'  => 'penci_single',
    
'settings' => 'penci_comment_face_AppID',
) );

$wp_customize->add_setting'penci_single_extra_heading', array(
    
'sanitize_callback' => 'esc_url_raw'
) );
$wp_customize->add_control( new Penci_Customize_Heading_Control$wp_customize'penci_single_extra_heading', array(
    
'label'    => esc_html__'Extra''pennews' ),
    
'section'  => 'penci_single',
    
'settings' => 'penci_single_extra_heading',
    
'type'     => 'heading',
) ) );

$single_list_check_extra = array(
    
'penci_caption_above_img'   => esc_html__'Show caption above image''pennews' ),
    
'penci_hide_single_gallery' => esc_html__'Disable Gallery Feature from This Theme''pennews' ),
);

foreach ( 
$single_list_check_extra as $id_option => $label_option ) {
    
$wp_customize->add_setting$id_option, array(
        
'sanitize_callback' => array( $sanitizer'checkbox' ),
    ) );
    
$wp_customize->add_control( new WP_Customize_Control(
        
$wp_customize,
        
$id_option,
        array(
            
'label'    => $label_option,
            
'section'  => 'penci_single',
            
'type'     => 'checkbox',
            
'settings' => $id_option,
        )
    ) );
}

$wp_customize->add_setting'penci_rel_com_boxtitle_fsize', array(
    
'sanitize_callback' => array( $sanitizer'html' )
) );

$wp_customize->add_control( new Penci_Customize_Font_Size_Control$wp_customize'penci_rel_com_boxtitle_fsize', array(
    
'label'    => esc_html__'Custom Font Size For Related Post & Comments Heading Titltes''pennews' ),
    
'section'  => 'penci_single',
    
'settings' => 'penci_rel_com_boxtitle_fsize',
    
'type'     => 'font_size',
) ) );

$wp_customize->add_setting'penci_single_next_prev_label', array(
    
'sanitize_callback' => array( $sanitizer'html' )
) );

$wp_customize->add_control( new Penci_Customize_Font_Size_Control$wp_customize'penci_single_next_prev_label', array(
    
'label'    => esc_html__'Custom Font Size For Prev/Next Post Text''pennews' ),
    
'section'  => 'penci_single',
    
'settings' => 'penci_single_next_prev_label',
    
'type'     => 'font_size',
) ) );

$wp_customize->add_setting'penci_single_next_prev_title', array(
    
'sanitize_callback' => array( $sanitizer'html' )
) );

$wp_customize->add_control( new Penci_Customize_Font_Size_Control$wp_customize'penci_single_next_prev_title', array(
    
'label'    => esc_html__'Custom Font Size For Posts Title Next/Prev''pennews' ),
    
'section'  => 'penci_single',
    
'settings' => 'penci_single_next_prev_title',
    
'type'     => 'font_size',
) ) );

$wp_customize->add_setting'penci_single_author_size', array(
    
'sanitize_callback' => array( $sanitizer'html' )
) );

$wp_customize->add_control( new Penci_Customize_Font_Size_Control$wp_customize'penci_single_author_size', array(
    
'label'    => esc_html__'Custom Font Size For Author Name''pennews' ),
    
'section'  => 'penci_single',
    
'settings' => 'penci_single_author_size',
    
'type'     => 'font_size',
) ) );

// Custom the height of images on gallery images
$wp_customize->add_setting'penci_image_height_gallery', array(
    
'sanitize_callback' => array( $sanitizer'html' )
) );
$wp_customize->add_control( new Penci_Customize_Number_Control$wp_customize'penci_image_height_gallery', array(
    
'label'    => esc_html__'Custom the height of images on gallery images''pennews' ),
    
'section'  => 'penci_single',
    
'settings' => 'penci_image_height_gallery',
    
'type'     => 'number',
) ) );

// ------ Google Adsense
$wp_customize->add_setting'penci_single_google_ad_heading', array(
    
'sanitize_callback' => 'esc_url_raw'
) );
$wp_customize->add_control( new Penci_Customize_Heading_Control$wp_customize'penci_single_google_ad_heading', array(
    
'label'    => esc_html__'Google Adsense Setting''pennews' ),
    
'section'  => 'penci_single',
    
'settings' => 'penci_single_google_ad_heading',
    
'type'     => 'heading',
) ) );

$wp_customize->add_setting'penci_single_ad_before_content', array(
    
'sanitize_callback' => array( $sanitizer'textarea' ),
) );
$wp_customize->add_control( new WP_Customize_Control$wp_customize'penci_single_ad_before_content', array(
    
'label'       => esc_html__'Google Adsense Code to Display Before Content Post''pennews' ),
    
'section'     => 'penci_single',
    
'settings'    => 'penci_single_ad_before_content',
    
'description' => esc_html__'You can display google adsense code before content posts by use this option''pennews' ),
    
'type'        => 'textarea',
) ) );

$wp_customize->add_setting'penci_single_ad_after_content', array(
    
'sanitize_callback' => array( $sanitizer'textarea' ),
) );
$wp_customize->add_control( new WP_Customize_Control$wp_customize'penci_single_ad_after_content', array(
    
'label'       => esc_html__'Google Adsense Code to Display In the End of Content Post''pennews' ),
    
'section'     => 'penci_single',
    
'settings'    => 'penci_single_ad_after_content',
    
'description' => esc_html__'You can display google adsense code in the end of content posts by use this option''pennews' ),
    
'type'        => 'textarea',
) ) );
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586