File "404.php"
Full Path: /home/adniftyx/public_html/wp-content/themes/credio/inc/customizer/404.php
File size: 7.94 KB
MIME-type: text/x-php
Charset: utf-8
<?php
function credio_404_panel($credio_customizer, $priority)
{
$credio_customizer->add_section('credio_404_setting',
array(
'title' => esc_html__('404 Page Settings', 'credio'),
'panel' => 'credio_options_panel',
'priority' => $priority,
'capability' => 'edit_theme_options',
'description' => esc_html__('Allows you to customize 404 page.', 'credio'),
)
);
//404
$credio_customizer->add_setting('credio_404_title', array(
'default' => esc_html__('404', 'credio'),
'transport' => 'refresh',
));
$credio_customizer->add_control('credio_404_title', array(
'label' => esc_html__('Title', 'credio'),
'description' => esc_html__('Enter title for 404 page', 'credio'),
'section' => 'credio_404_setting',
'type' => 'text',
'setting' => 'credio_404_title',
));
//Start separator
$credio_customizer->add_setting(
'404_hr_0',
array(
'default' => '',
'sanitize_callback' => 'esc_html',
)
);
$credio_customizer->add_control(
new credio_Separator_Control(
$credio_customizer,
'404_hr_0',
array(
'settings' => '404_hr_0',
'section' => 'credio_404_setting',
)
)
);
//End separator
//404
$credio_customizer->add_setting('credio_404_text', array(
'default' => esc_html__('Page Not Found', 'credio'),
'transport' => 'refresh',
));
$credio_customizer->add_control('credio_404_text', array(
'label' => esc_html__('Text', 'credio'),
'description' => esc_html__('Enter text for 404 page', 'credio'),
'section' => 'credio_404_setting',
'type' => 'text',
'setting' => 'credio_404_text',
));
//End
//Start separator
$credio_customizer->add_setting(
'404_hr_1',
array(
'default' => '',
'sanitize_callback' => 'esc_html',
)
);
$credio_customizer->add_control(
new credio_Separator_Control(
$credio_customizer,
'404_hr_1',
array(
'settings' => '404_hr_1',
'section' => 'credio_404_setting',
)
)
);
//End separator
//404
$credio_customizer->add_setting('credio_404_home_button_label', array(
'default' => esc_html__('Back to Homepage', 'credio'),
'transport' => 'refresh',
));
$credio_customizer->add_control('credio_404_home_button_label', array(
'label' => esc_html__('Back to Home Button Label', 'credio'),
'description' => esc_html__('Enter label for "Back to Home" button', 'credio'),
'section' => 'credio_404_setting',
'type' => 'text',
'setting' => 'credio_404_home_button_label',
));
//End
//Start separator
$credio_customizer->add_setting(
'404_hr_2',
array(
'default' => '',
'sanitize_callback' => 'esc_html',
)
);
$credio_customizer->add_control(
new credio_Separator_Control(
$credio_customizer,
'404_hr_2',
array(
'settings' => '404_hr_2',
'section' => 'credio_404_setting',
)
)
);
//End separator
//Start default header logo
$credio_customizer->add_setting(
'credio_404_page_bg',
array(
'transport' => 'refresh',
)
);
$credio_customizer->add_control(
new WP_Customize_Image_Control(
$credio_customizer,
'credio_404_page_bg',
array(
'label' => esc_html__('Upload 404 Page Bg', 'credio'),
'section' => 'credio_404_setting',
'settings' => 'credio_404_page_bg',
)
)
);
//End default logo
//Start separator
$credio_customizer->add_setting(
'team_hr_3',
array(
'default' => '',
'sanitize_callback' => 'esc_html',
)
);
$credio_customizer->add_control(
new credio_Separator_Control(
$credio_customizer,
'team_hr_3',
array(
'settings' => 'team_hr_3',
'section' => 'credio_404_setting',
)
)
);
//End separator
//Start Body Background Color
$credio_customizer->add_setting(
'credio_404_text_color',
array(
'default' => '#FFFFFF',
)
);
$credio_customizer->add_control(
new WP_Customize_Color_Control(
$credio_customizer,
'credio_404_text_color',
array(
'label' => esc_html__('Text Color', 'credio'),
'description' => esc_html__('Text Color', 'credio'),
'section' => 'credio_404_setting',
'settings' => 'credio_404_text_color',
)
)
);
//End Body Background Color
//Start separator
$credio_customizer->add_setting(
'team_hr_4',
array(
'default' => '',
'sanitize_callback' => 'esc_html',
)
);
$credio_customizer->add_control(
new credio_Separator_Control(
$credio_customizer,
'team_hr_4',
array(
'settings' => 'team_hr_4',
'section' => 'credio_404_setting',
)
)
);
//End separator
//Start Color
$credio_customizer->add_setting(
'credio_404_btn_bg_color',
);
$credio_customizer->add_control(
new WP_Customize_Color_Control(
$credio_customizer,
'credio_404_btn_bg_color',
array(
'label' => esc_html__('Button Background Color', 'credio'),
'description' => esc_html__('choose button background color', 'credio'),
'section' => 'credio_404_setting',
'settings' => 'credio_404_btn_bg_color',
)
)
);
//End Color
//Start separator
$credio_customizer->add_setting(
'team_hr_5',
array(
'default' => '',
'sanitize_callback' => 'esc_html',
)
);
$credio_customizer->add_control(
new credio_Separator_Control(
$credio_customizer,
'team_hr_5',
array(
'settings' => 'team_hr_5',
'section' => 'credio_404_setting',
)
)
);
//End separator
//Start Color
$credio_customizer->add_setting(
'credio_404_btn_text_color',
);
$credio_customizer->add_control(
new WP_Customize_Color_Control(
$credio_customizer,
'credio_404_btn_text_color',
array(
'label' => esc_html__('Button Text Color', 'credio'),
'description' => esc_html__('Choose button text color', 'credio'),
'section' => 'credio_404_setting',
'settings' => 'credio_404_btn_text_color',
)
)
);
//End Color
//Start separator
$credio_customizer->add_setting(
'team_hr_6',
array(
'default' => '',
'sanitize_callback' => 'esc_html',
)
);
$credio_customizer->add_control(
new credio_Separator_Control(
$credio_customizer,
'team_hr_6',
array(
'settings' => 'team_hr_6',
'section' => 'credio_404_setting',
)
)
);
//End separator
}