public_html/wp-content/themes/LocalTwo/inc/customizer/section__post.php
/**
 * ============================================================================
 * Create controls for section: footer settings
 * ============================================================================
 */
Create controls for section: footer settings
Create controls for section : footer settings
function register_controls_for_post_settings_section( $controls ) {
	$section  = 'post_settings_section';
	$priority = 1;
	$controls[] = array(
		'type'      => 'radio',
		'mode'      => 'image',
		'setting'   => 'post_layout',
		'label'     => __( 'Layout', 'divertheme' ),
		'subtitle'  => __( 'Choose the post layout you want', 'divertheme' ),
		'section'   => $section,
		'separator' => true,
		'default'   => post_layout,
		'choices'   => array(
			'full-width'      => THEME_ROOT . '/core/customizer/assets/images/1c.png',
			'content-sidebar' => THEME_ROOT . '/core/customizer/assets/images/2cr.png',
			'sidebar-content' => THEME_ROOT . '/core/customizer/assets/images/2cl.png',
		),
		'priority'  => $priority ++
	);
	$controls[] = array(
		'type'      => 'checkbox',
		'mode'      => 'toggle',
		'setting'   => 'post_meta_enable',
		'label'     => __( 'Post Author Box', 'divertheme' ),
		'subtitle'  => __( 'Enabling this option will display author box at bottom of post', 'divertheme' ),
		'section'   => $section,
		'separator' => true,
		'default'   => post_meta_enable,
		'priority'  => $priority ++
	);
	$controls[] = array(
		'type'      => 'checkbox',
		'mode'      => 'toggle',
		'setting'   => 'post_feature_image_enable',
		'label'     => __( 'Feature Image', 'divertheme' ),
		'subtitle'  => __( 'Enabling this option will display big feature image at top of post', 'divertheme' ),
		'section'   => $section,
		'separator' => true,
		'default'   => post_feature_image_enable,
		'priority'  => $priority ++
	);
	return $controls;
}
function register_controls_for_post_settings_section ( $ controls ) { $ section = 'post_settings_section' ; $ priority = 1 ; $ controls [ ] = array ( 'type' => 'radio' , 'mode' => 'image' , 'setting' => 'post_layout' , 'label' => __ ( 'Layout' , 'divertheme' ) , 'subtitle' => __ ( 'Choose the post layout you want' , 'divertheme' ) , 'section' => $ section , 'separator' => true , 'default' => post_layout , 'choices' => array ( 'full-width' => THEME_ROOT . '/core/customizer/assets/images/1c.png' , 'content-sidebar' => THEME_ROOT . '/core/customizer/assets/images/2cr.png' , 'sidebar-content' => THEME_ROOT . '/core/customizer/assets/images/2cl.png' , ) , 'priority' => $ priority ++ ) ; $ controls [ ] = array ( 'type' => 'checkbox' , 'mode' => 'toggle' , 'setting' => 'post_meta_enable' , 'label' => __ ( 'Post Author Box' , 'divertheme' ) , 'subtitle' => __ ( 'Enabling this option will display author box at bottom of post' , 'divertheme' ) , 'section' => $ section , 'separator' => true , 'default' => post_meta_enable , 'priority' => $ priority ++ ) ; $ controls [ ] = array ( 'type' => 'checkbox' , 'mode' => 'toggle' , 'setting' => 'post_feature_image_enable' , 'label' => __ ( 'Feature Image' , 'divertheme' ) , 'subtitle' => __ ( 'Enabling this option will display big feature image at top of post' , 'divertheme' ) , 'section' => $ section , 'separator' => true , 'default' => post_feature_image_enable , 'priority' => $ priority ++ ) ; return $ controls ; }
Create controls for section: footer settings
Create controls for section : footer settings
//Site Layout