label ); ?>
get_setting( 'blogdescription' )->transport = 'postMessage';
//Logo
$wp_customize->add_section('logo_sec',
array(
'title' => __(' Logo ', 'bigbang'),
'priority' => 1,
'description' => __('Upload Logo','bigbang'),
)
);
$wp_customize->add_setting('logo_image',array(
'default' => get_template_directory_uri().'/images/logo.jpg',
'sanitize_callback' => 'esc_url_raw',
));
$wp_customize->add_control(
new WP_Customize_Image_Control(
$wp_customize,
'logo_image',
array(
'label' => __('Logo (240x79)','bigbang'),
'section' => 'logo_sec',
'settings' => 'logo_image'
)
)
);
$wp_customize->add_setting('Precious_options[font-info]', array(
'sanitize_callback' => 'sanitize_text_field',
'type' => 'info_control',
'capability' => 'edit_theme_options',
)
);
$wp_customize->add_control( new Precious_Info( $wp_customize, 'logo_section', array(
'section' => 'logo_sec',
'settings' => 'Precious_options[font-info]',
'priority' => null
) )
);
$wp_customize->add_setting('color_scheme', array(
'default' => '#d6181a',
'sanitize_callback' => 'sanitize_hex_color',
));
$wp_customize->add_control(
new WP_Customize_Color_Control($wp_customize,'color_scheme',array(
'label' => __('Color Scheme','bigbang'),
'description' => __('More color options in','bigbang'). 'PRO version',
'section' => 'colors',
'settings' => 'color_scheme'
))
);
$wp_customize->add_section('social_section',array(
'title' => __('Social Links','bigbang'),
'description' => __('Add your social links here.
More social links in','bigbang'). 'PRO version.',
'priority' => null
));
}
add_action( 'customize_register', 'bigbang_customize_register' );
//Integer
function bigbang_sanitize_integer( $input ) {
if( is_numeric( $input ) ) {
return intval( $input );
}
}
/**
* Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
*/
function bigbang_customize_preview_js() {
wp_enqueue_script( 'bigbang_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20130508', true );
}
add_action( 'customize_preview_init', 'bigbang_customize_preview_js' );
function bigbang_lite_css(){
?>