C:\xampp\htdocs\landing\wp-content\updraft\themes-old\pennews_\inc\customizer\19-page404.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
<?php
// 404 Page Settings
$wp_customize->add_section'page404', array(
    
'title'    => esc_html__'404 Page Options''pennews' ),
    
'priority' => 15,
) );

$wp_customize->add_setting'penci_404_image', array(
    
'sanitize_callback' => 'esc_url_raw'
) );
$wp_customize->add_control( new WP_Customize_Image_Control$wp_customize'penci_404_image', array(
    
'label'    => esc_html__'404 Custom Main Image''pennews'),
    
'section'  => 'page404',
    
'settings' => 'penci_404_image',
    
'priority' => 5
) ) );

$wp_customize->add_setting'penci_404_heading', array(
    
'default'           => penci_default_setting'penci_404_heading' ),
    
'sanitize_callback' => array( $sanitizer'html' ),
) );
$wp_customize->add_control( new WP_Customize_Control$wp_customize'penci_404_heading', array(
    
'label'    => esc_html__'404 Custom Heading Text''pennews' ),
    
'section'  => 'page404',
    
'settings' => 'penci_404_heading',
    
'priority' => 10
) ) );

$wp_customize->add_setting'penci_404_sub_heading', array(
    
'default'           => penci_default_setting'penci_404_sub_heading' ),
    
'sanitize_callback' => array( $sanitizer'textarea' ),
) );
$wp_customize->add_control( new WP_Customize_Control$wp_customize'penci_404_sub_heading', array(
    
'label'    => esc_html__'404 Custom Message Text''pennews' ),
    
'section'  => 'page404',
    
'settings' => 'penci_404_sub_heading',
    
'type'     => 'textarea',
    
'priority' => 15
) ) );

$wp_customize->add_setting'penci_404_heading_lnews', array(
    
'default'           => esc_html__'Latest News''pennews' ),
    
'sanitize_callback' => array( $sanitizer'html' ),
) );
$wp_customize->add_control( new WP_Customize_Control$wp_customize'penci_404_heading_lnews', array(
    
'label'    => esc_html__'404 Custom Latest News Text''pennews' ),
    
'section'  => 'page404',
    
'settings' => 'penci_404_heading_lnews',
    
'priority' => 20
) ) );

$page404_author = array(
    
'penci_404_hide_latest_news' => esc_html__'Disable Latest News.''pennews' ),
    
'penci_404_hide_search'      => esc_html__'Disable Search Form''pennews' ),
);

foreach ( 
$page404_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'  => 'page404',
            
'type'     => 'checkbox',
            
'settings' => $id_option,
            
'priority' => 20
        
)
    ) );
}
x

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