<?php
// Register Widgets
function tj_widgets_init() {
// Bottom Widget Area
register_sidebar( array (
'name' => __( 'Left Sidebar - Homepage', 'themejunkie' ),
'id' => 'left-sidebar-homepage',
'description' => __( 'Left sidebar widgets on homepage', 'themejunkie' ),
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => "</div>",
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
// Top Widget Area
register_sidebar( array (
'name' => __( 'Right Sidebar Top - Homepage', 'themejunkie' ),
'id' => 'right-sidebar-top-homepage',
'description' => __( 'Right sidebar top widgets on homepage', 'themejunkie' ),
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => "</div>",
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
// Bottom Widget Area
register_sidebar( array (
'name' => __( 'Right Sidebar - Homepage', 'themejunkie' ),
'id' => 'right-sidebar-homepage',
'description' => __( 'Right sidebar widgets on homepage', 'themejunkie' ),
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => "</div>",
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
// Content Widget Area
register_sidebar( array (
'name' => __( 'Left Sidebar - Single/Page', 'themejunkie' ),
'id' => 'left-sidebar-single-page',
'description' => __( 'Left sidebar widgets on single posts and pages', 'themejunkie' ),
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => "</div>",
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
// Middle Right Widget Area
register_sidebar( array (
'name' => __( 'Right Sidebar - Single/Page', 'themejunkie' ),
'id' => 'right-sidebar-single-page',
'description' => __( 'Right sidebar widgets on single posts and pages', 'themejunkie' ),
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => "</div>",
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
}
add_action( 'init', 'tj_widgets_init' );
?>