remove_control('blogus_content_layout'); $wp_customize->add_setting( 'bloghunt_content_layout', array( 'default' => 'grid-right-sidebar', 'sanitize_callback' => 'blogus_sanitize_radio', ) ); $wp_customize->add_control( new blogus_Radio_Image_Control( // $wp_customize object $wp_customize, // $id 'bloghunt_content_layout', // $args array( 'settings' => 'bloghunt_content_layout', 'section' => 'blog_layout_section', 'priority' => 50, 'choices' => array( 'align-content-left' => get_template_directory_uri() . '/images/fullwidth-left-sidebar.png', 'full-width-content' => get_template_directory_uri() . '/images/fullwidth.png', 'align-content-right' => get_template_directory_uri() . '/images/right-sidebar.png', 'grid-left-sidebar' => get_template_directory_uri() . '/images/grid-left-sidebar.png', 'grid-fullwidth' => get_template_directory_uri() . '/images/grid-fullwidth.png', 'grid-right-sidebar' => get_template_directory_uri() . '/images/grid-right-sidebar.png', ) ) ) ); } function bloghunt_theme_setup() { //Load text domain for translation-ready load_theme_textdomain('bloghunt', get_stylesheet_directory() . '/languages'); require( get_stylesheet_directory() . '/hooks/hook-front-page-main-banner-section.php' ); require( get_stylesheet_directory() . '/customizer-default.php' ); require( get_stylesheet_directory() . '/frontpage-options.php' ); } add_action( 'after_setup_theme', 'bloghunt_theme_setup' ); if (!function_exists('bloghunt_get_block')) : /** * * * @since Bloghunt 1.0.0 * */ function bloghunt_get_block($block = 'grid', $section = 'post') { get_template_part('hooks/blocks/block-' . $section, $block); } endif;