ID) . '" class="excerpt-read-more-link">' . __('Continue reading' , 'besustainable') . ''; } add_filter('excerpt_more', 'besustainable_more', 999); function besustainable_customize_register( $wp_customize ) { /* New Section */ $wp_customize->add_section( 'besustainable_section', array( 'title' => __('BeSustainable Features','besustainable'), 'priority' => 1, 'capability' => 'edit_theme_options', ) ); $wp_customize->add_setting( 'toggle_admin_byline', array( 'default' => 0, 'sanitize_callback' => 'besustainable_sanitize_checkbox', ) ); $wp_customize->add_control( 'toggle_admin_byline', array( 'label' => __( 'Remove author from post byline', 'besustainable' ), 'section' => 'besustainable_section', 'priority' => 1, 'settings' => 'toggle_admin_byline', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'besustainable_sidebar_bgcolor', array( 'default' => '#fff', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'besustainable_sidebar_bgcolor', array( 'label' => __( 'Sidebar Background Color', 'besustainable' ), 'section' => 'besustainable_section', 'priority' => 1, 'settings' => 'besustainable_sidebar_bgcolor', ) ) ); $wp_customize->add_setting( 'besustainable_sidebar_headline_border', array( 'default' => '#000', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'besustainable_sidebar_headline_border', array( 'label' => __( 'Sidebar Headline Border Bottom', 'besustainable' ), 'section' => 'besustainable_section', 'priority' => 1, 'settings' => 'besustainable_sidebar_headline_border', ) ) ); function besustainable_sanitize_checkbox( $input ) { // Boolean check return ( ( isset( $input ) && true == $input ) ? true : false ); } } add_action( 'customize_register', 'besustainable_customize_register' ); if(! function_exists('besustainable_customizer_css_final_output' ) ): function besustainable_customizer_css_final_output(){ ?>