C:\xampp\htdocs\landing\wp-content\updraft\themes-old\pennews_\inc\customizer\16-event.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
<?php
$wp_customize
->add_section'penci-event', array(
    
'title'    => esc_html__'Layout Options''pennews' ),
    
'panel' =>  'tribe_customizer',
    
'priority' => 1,
) );

$wp_customize->add_setting'penci_event_sidebar', array(
    
'default'           => 'no-sidebar',
    
'sanitize_callback' => array( $sanitizer'select' ),
) );
$wp_customize->add_control( new Penci_Customize_Control_Radio_Image(
    
$wp_customize,
    
'penci_event_sidebar',
    array(
        
'label'    => esc_html__'Archive Sidebar Layout''pennews' ),
        
'section'  => 'penci-event',
        
'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_event_sidebar',
    )
) );

$wp_customize->add_setting'penci_event_single_sidebar', array(
    
'default'           => 'sidebar-right',
    
'sanitize_callback' => array( $sanitizer'select' ),
) );
$wp_customize->add_control( new Penci_Customize_Control_Radio_Image(
    
$wp_customize,
    
'penci_event_single_sidebar',
    array(
        
'label'    => esc_html__'Single Sidebar Layout''pennews' ),
        
'section'  => 'penci-event',
        
'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_event_single_sidebar',
    )
) );

x

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