%k25u25%fgd5n!
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
if( !class_exists( 'WindoorPlusCustomizerSite404' ) ) {
class WindoorPlusCustomizerSite404 {
private static $_instance = null;
public static function instance() {
if ( is_null( self::$_instance ) ) {
self::$_instance = new self();
}
return self::$_instance;
}
function __construct() {
add_action( 'customize_register', array( $this, 'register' ), 15);
}
function register( $wp_customize ) {
/**
* 404 Page
*/
$wp_customize->add_section(
new Windoor_Customize_Section(
$wp_customize,
'site-404-page-section',
array(
'title' => esc_html__('404 Page', 'windoor-plus'),
'priority' => windoor_customizer_panel_priority( '404' )
)
)
);
if ( ! defined( 'WINDOOR_PRO_VERSION' ) ) {
$wp_customize->add_control(
new Windoor_Customize_Control_Separator(
$wp_customize, WINDOOR_CUSTOMISER_VAL . '[windoor-plus-site-404-separator]',
array(
'type' => 'wdt-separator',
'section' => 'site-404-page-section',
'settings' => array(),
'caption' => WINDOOR_PLUS_REQ_CAPTION,
'description' => WINDOOR_PLUS_REQ_DESC,
)
)
);
}
}
}
}
WindoorPlusCustomizerSite404::instance();