Advertisements

twentyeleven_widgets_init

Definition:
function twentyeleven_widgets_init() {}

Register our sidebars and widgetized areas. Also register the default Epherma widget.

Source code

function twentyeleven_widgets_init() {



	register_widget( 'Twenty_Eleven_Ephemera_Widget' );



	register_sidebar( array(

		'name' => __( 'Main Sidebar', 'twentyeleven' ),

		'id' => 'sidebar-1',

		'before_widget' => '<aside id="%1$s" class="widget %2$s">',

		'after_widget' => "</aside>",

		'before_title' => '<h3 class="widget-title">',

		'after_title' => '</h3>',

	) );



	register_sidebar( array(

		'name' => __( 'Showcase Sidebar', 'twentyeleven' ),

		'id' => 'sidebar-2',

		'description' => __( 'The sidebar for the optional Showcase Template', 'twentyeleven' ),

		'before_widget' => '<aside id="%1$s" class="widget %2$s">',

		'after_widget' => "</aside>",

		'before_title' => '<h3 class="widget-title">',

		'after_title' => '</h3>',

	) );



	register_sidebar( array(

		'name' => __( 'Footer Area One', 'twentyeleven' ),

		'id' => 'sidebar-3',

		'description' => __( 'An optional widget area for your site footer', 'twentyeleven' ),

		'before_widget' => '<aside id="%1$s" class="widget %2$s">',

		'after_widget' => "</aside>",

		'before_title' => '<h3 class="widget-title">',

		'after_title' => '</h3>',

	) );



	register_sidebar( array(

		'name' => __( 'Footer Area Two', 'twentyeleven' ),

		'id' => 'sidebar-4',

		'description' => __( 'An optional widget area for your site footer', 'twentyeleven' ),

		'before_widget' => '<aside id="%1$s" class="widget %2$s">',

		'after_widget' => "</aside>",

		'before_title' => '<h3 class="widget-title">',

		'after_title' => '</h3>',

	) );



	register_sidebar( array(

		'name' => __( 'Footer Area Three', 'twentyeleven' ),

		'id' => 'sidebar-5',

		'description' => __( 'An optional widget area for your site footer', 'twentyeleven' ),

		'before_widget' => '<aside id="%1$s" class="widget %2$s">',

		'after_widget' => "</aside>",

		'before_title' => '<h3 class="widget-title">',

		'after_title' => '</h3>',

	) );

}

14763

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: