__('Footer Left'),
'id' => 'footer-left',
'description' => __('Widgets in this area will be shown in the left column of the footer.'),
'before_widget' => '",
'before_title' => '
'
));
register_sidebar(array(
'name' => __('Footer Middle'),
'id' => 'footer-middle',
'description' => __('Widgets in this area will be shown in the middle column of the footer.'),
'before_widget' => '",
'before_title' => ''
));
register_sidebar(array(
'name' => __('Footer Right'),
'id' => 'footer-right',
'description' => __('Widgets in this area will be shown in the right column of the footer.'),
'before_widget' => '",
'before_title' => ''
));
register_sidebar(array(
'name' => __('Posts Sidebar'),
'id' => 'post-sidebar',
'description' => __('Widgets in this area will be shown on posts in the right sidebar'),
'before_widget' => '",
'before_title' => ''
));
}
add_action('widgets_init', 'widgets_init');
function source_theme_customizer($wp_customize) {
$wp_customize->add_section('source_logo_section', array(
'title' => __('Logo', 'source'),
'priority' => 999,
'description' => 'Upload a logo to replace the site name text on the home page'
));
$wp_customize->add_setting('source_logo');
$wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'source_logo', array(
'label' => __('Logo', 'source'),
'section' => 'source_logo_section',
'settings' => 'source_logo'
)));
$wp_customize->add_section('source_bg_section', array(
'title' => __('BG', 'source'),
'priority' => 999,
'description' => 'Upload a custom background image that appears on the home page'
));
$wp_customize->add_setting('source_bg');
$wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'source_bg', array(
'label' => __('BG', 'source'),
'section' => 'source_bg_section',
'settings' => 'source_bg'
)));
}
add_action('customize_register', 'source_theme_customizer');
?>