add_setting( ALAGU_THEME_SETTINGS . '[enable-404message]', array( 'default' => alagu_get_option( 'enable-404message' ), 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_tweek' ), ) ); $wp_customize->add_control( new ALAGU_Customize_Control_Switch( $wp_customize, ALAGU_THEME_SETTINGS . '[enable-404message]', array( 'type' => 'dt-switch', 'label' => esc_html__( 'Enable Message', 'alagu'), 'description' => esc_html__('YES! to enable not-found page message.', 'alagu'), 'section' => 'site-404-page-section', 'priority' => 5, 'choices' => array( 'on' => esc_attr__( 'Yes', 'alagu' ), 'off' => esc_attr__( 'No', 'alagu' ) ) ) ) ); /** * Option : Template Style */ $wp_customize->add_setting( ALAGU_THEME_SETTINGS . '[notfound-style]', array( 'default' => alagu_get_option( 'notfound-style' ), 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_choices' ), ) ); $wp_customize->add_control( new ALAGU_Customize_Control( $wp_customize, ALAGU_THEME_SETTINGS . '[notfound-style]', array( 'type' => 'select', 'section' => 'site-404-page-section', 'priority' => 10, 'label' => esc_html__( 'Template Style', 'alagu' ), 'choices' => array( 'type1' => esc_html__('Modern', 'alagu'), 'type2' => esc_html__('Classic', 'alagu'), 'type4' => esc_html__('Diamond', 'alagu'), 'type5' => esc_html__('Shadow', 'alagu'), 'type6' => esc_html__('Diamond Alt', 'alagu'), 'type7' => esc_html__('Stack', 'alagu'), 'type8' => esc_html__('Minimal', 'alagu'), ), 'description' => esc_html__('Choose the style of not-found template page.', 'alagu'), ) )); /** * Option : Notfound Dark BG */ $wp_customize->add_setting( ALAGU_THEME_SETTINGS . '[notfound-darkbg]', array( 'default' => alagu_get_option( 'notfound-darkbg' ), 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_tweek' ), ) ); $wp_customize->add_control( new ALAGU_Customize_Control_Switch( $wp_customize, ALAGU_THEME_SETTINGS . '[notfound-darkbg]', array( 'type' => 'dt-switch', 'label' => esc_html__( '404 Dark BG', 'alagu'), 'description' => esc_html__('YES! to use dark bg notfound page for this site.', 'alagu'), 'section' => 'site-404-page-section', 'priority' => 15, 'choices' => array( 'on' => esc_attr__( 'Yes', 'alagu' ), 'off' => esc_attr__( 'No', 'alagu' ) ) ) ) ); /** * Premium Options */ do_action( 'alagu-site-not-found-pageid-pro-settings' ); /** * Option : 404 Background */ $wp_customize->add_setting( ALAGU_THEME_SETTINGS . '[notfound_background]', array( 'default' => '', 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_background_obj' ), ) ); $wp_customize->add_control( new ALAGU_Customize_Control_Background( $wp_customize, ALAGU_THEME_SETTINGS . '[notfound_background]', array( 'type' => 'dt-background', 'section' => 'site-404-page-section', 'priority' => 25, 'label' => esc_html__( 'Background', 'alagu' ), ) ) ); /** * Option : Custom Styles */ $wp_customize->add_setting( ALAGU_THEME_SETTINGS . '[notfound-bg-style]', array( 'default' => alagu_get_option( 'notfound-bg-style' ), 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_html' ), ) ); $wp_customize->add_control( new ALAGU_Customize_Control( $wp_customize, ALAGU_THEME_SETTINGS . '[notfound-bg-style]', array( 'type' => 'textarea', 'section' => 'site-404-page-section', 'priority' => 30, 'label' => esc_html__( 'Custom Inline Styles', 'alagu' ), 'description' => esc_html__('Paste custom CSS styles for not found page.', 'alagu'), 'input_attrs' => array( 'placeholder' => esc_html__( 'color:#ff00bb; text-align:left;', 'alagu' ), ), ) ) ); if ( ! defined( 'ALAGU_PRO_VER' ) ) { /** * Divider : Separator 1 */ $wp_customize->add_control( new ALAGU_Customize_Control_Separator( $wp_customize, ALAGU_THEME_SETTINGS . '[dt-site-404-page-pro-separator]', array( 'type' => 'dt-separator', 'section' => 'site-404-page-section', 'settings' => array(), 'priority' => 999, 'description' => '

' . __( 'More Options Available in Alagu Pro!', 'alagu' ) . '

' . __( 'Learn More', 'alagu' ) . '', ) ) ); }