__( 'Upload Logo Image', 'boksy' ), 'section' => 'boksy_theme', 'priority' => 1, 'class' => 'WP_Customize_Image_Control', ) ); _boksy_customize_add_control( $wp_customize, 'theme_display_tagline', array( 'label' => __( 'Display site tagline?', 'boksy' ), 'section' => 'boksy_theme', 'priority' => 2, 'type' => 'checkbox', ) ); _boksy_customize_add_control( $wp_customize, 'theme_display_sidebar', array( 'label' => __( 'Display sidebar on blog post page?', 'boksy' ), 'section' => 'boksy_theme', 'priority' => 4, 'type' => 'checkbox', ) ); _boksy_customize_add_control( $wp_customize, 'theme_footer_text', array( 'label' => __( 'Footer Text', 'boksy' ), 'section' => 'boksy_theme', 'priority' => 5, 'type' => 'textarea', ) ); } endif; if ( ! function_exists( 'boksy_customize_theme_defaults' ) ) : /** * Custom filter: add default customizer options for the theme settings. */ function boksy_customize_default_theme_defaults( $defaults ) { return array_merge( $defaults, array( 'theme_logo' => '', 'theme_display_tagline' => true, 'theme_display_sidebar' => false, ) ); } endif; add_filter( 'boksy_customize_default_theme_options', 'boksy_customize_default_theme_defaults' ); if ( ! function_exists( 'boksy_theme_display_sidebar_styles' ) ) : /** * Apply settings values. */ function boksy_theme_display_sidebar_styles() { global $boksy; $display_sidebar = $boksy['theme_display_sidebar']; ?>