C:\xampp\htdocs\landing\wp-content\updraft\themes-old\pennews_\inc\customizer\13-woocommerce.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
<?php

$wp_customize
->add_setting'penci_woo_sidebar_shop', array(
    
'default'           => 'sidebar-right',
    
'sanitize_callback' => array( $sanitizer'select' ),
) );
$wp_customize->add_control( new Penci_Customize_Control_Radio_Image(
    
$wp_customize,
    
'penci_woo_sidebar_shop',
    array(
        
'label'    => __'Sidebar On Shop Page''pennews' ),
        
'section'  => 'woocommerce_product_catalog',
        
'type'     => 'radio-image',
        
'priority' => 1,
        
'choices'  => array(
            
'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' ) ),
        ),
        
'settings' => 'penci_woo_sidebar_shop',
    )
) );

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

$wp_customize->add_control( new WP_Customize_Control(
    
$wp_customize,
    
'penci_woo_disable_breadcrumb',
    array(
        
'label'    => esc_html__'Disable Breadcrumb''pennews' ),
        
'section'  => 'woocommerce_product_catalog',
        
'type'     => 'checkbox',
        
'settings' => 'penci_woo_disable_breadcrumb',
    )
) );

$wp_customize->add_setting'penci_woo_paging_align', array(
    
'default'           => 'center',
    
'sanitize_callback' => array( $sanitizer'select' ),
) );
$wp_customize->add_control'penci_woo_paging_align', array(
    
'label'    => esc_html__'Page Navigation Alignment''pennews' ),
    
'section'  => 'woocommerce_product_catalog',
    
'settings' => 'penci_woo_paging_align',
    
'type'     => 'select',
    
'choices'  => array(
        
'left'   => esc_html__'Left''pennews' ),
        
'center' => esc_html__'Center''pennews' ),
        
'right'  => esc_html__'Right''pennews' )
    )
) );


// Product
$wp_customize->add_section'penci-woo-product', array(
    
'title'    => esc_html__'Product Detail''pennews' ),
    
'priority' => 11,
    
'panel'    => 'woocommerce',
) );
$wp_customize->add_setting'penci_woo_sidebar_product', array(
    
'default'           => 'no-sidebar',
    
'sanitize_callback' => array( $sanitizer'select' ),
) );
$wp_customize->add_control( new Penci_Customize_Control_Radio_Image(
    
$wp_customize,
    
'penci_woo_sidebar_product',
    array(
        
'label'    => __'Sidebar On Product Detail''pennews' ),
        
'section'  => 'penci-woo-product',
        
'type'     => 'radio-image',
        
'choices'  => array(
            
'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' ) ),
        ),
        
'settings' => 'penci_woo_sidebar_product',
    )
) );
$wp_customize->add_setting'penci_woo_disable_zoom', array(
    
'sanitize_callback' => array( $sanitizer'checkbox' ),
) );

$wp_customize->add_control( new WP_Customize_Control(
    
$wp_customize,
    
'penci_woo_disable_zoom',
    array(
        
'label'    => esc_html__'Disable Zoom on Gallery Product''pennews' ),
        
'section'  => 'penci-woo-product',
        
'type'     => 'checkbox',
        
'settings' => 'penci_woo_disable_zoom',
    )
) );

$wp_customize->add_setting'penci_woo_number_related_products', array(
    
'default'           => '4',
    
'sanitize_callback' => array( $sanitizer'html' ),
) );
$wp_customize->add_control( new Penci_Customize_Number_Control$wp_customize'penci_woo_number_related_products', array(
    
'label'    => esc_html__'Custom Amount of Related Products''pennews' ),
    
'section'  => 'penci-woo-product',
    
'settings' => 'penci_woo_number_related_products',
    
'type'     => 'number',
) ) );

// Color
$wp_customize->add_section'penci-woo-color', array(
    
'title' => esc_html__'Colors''pennews' ),
    
'panel' => 'woocommerce',
) );

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

$wp_customize->add_control( new WP_Customize_Control(
    
$wp_customize,
    
'penci_woo_shortcode_dis_bg',
    array(
        
'label'    => esc_html__'Disable Background For Shortcode''pennews' ),
        
'section'  => 'penci-woo-color',
        
'type'     => 'checkbox',
        
'settings' => 'penci_woo_shortcode_dis_bg',
    )
) );

$wp_customize->add_setting'penci_woo_shortcode_bg', array(
    
'default'           => '',
    
'sanitize_callback' => array( $sanitizer'hex_color' ),
) );
$wp_customize->add_control( new WP_Customize_Color_Control$wp_customize'penci_woo_shortcode_bg', array(
    
'label'       => esc_html__'Background Color For Shortcode''pennews' ),
    
'section'     => 'penci-woo-color',
    
'settings'    => 'penci_woo_shortcode_bg',
    
'description' => ''
) ) );
x

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