<?php
/**
 * Register our sidebars and widgetized areas. Also register the default Epherma widget.
 *
 * @since Twenty Eleven 1.0
 */
function swift_sidebars_init() {

	$widths = get_option('swift_dimensions');

	register_sidebar( array(
		'name' => __( 'Non sticky sidebar', 'swift' ),
		'id' => 'ws_nonsticky',
		'description' => sprintf( __( 'This sidebar is %dpx wide and is displayed above the top wide sidebar. It doesnt stick to the top', 'swift' ), $widths['wsb']-10 ),
		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
		'after_widget' => "</aside>",
		'before_title' => '<p class="widget-title">',
		'after_title' => '</p>',
	) );

	register_sidebar( array(
		'name' => __( 'Wide sidebar top', 'swift' ),
		'id' => 'wst',
		'description' => sprintf( __( 'This sidebar is %dpx wide and is displayed above the two narrow sidebars.', 'swift' ), $widths['wsb']-10 ),
		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
		'after_widget' => "</aside>",
		'before_title' => '<p class="widget-title">',
		'after_title' => '</p>',
	) );

	register_sidebar( array(
		'name' => __( 'Narrow sidebar, LEFT', 'swift' ),
		'id' => 'ns1',
		'description' => sprintf( __( 'This sidebar is %dpx wide and is displayed between the two wide sidebars.', 'swift' ), $widths['sb1'] ),
		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
		'after_widget' => "</aside>",
		'before_title' => '<p class="widget-title">',
		'after_title' => '</p>',
	) );

	register_sidebar( array(
		'name' => __( 'Narrow sidebar, RIGHT', 'swift' ),
		'id' => 'ns2',
		'description' => sprintf( __( 'This sidebar is %dpx wide and is displayed between the two wide sidebars.', 'swift' ), $widths['sb2'] ),
		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
		'after_widget' => "</aside>",
		'before_title' => '<p class="widget-title">',
		'after_title' => '</p>',
	) );

	register_sidebar( array(
		'name' => __( 'Wide sidebar bottom', 'swift' ),
		'id' => 'wsb',
		'description' => sprintf( __( 'This sidebar is %dpx wide and is displayed below the two narrow sidebars.', 'swift' ), $widths['wsb']-10 ),
		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
		'after_widget' => "</aside>",
		'before_title' => '<p class="widget-title">',
		'after_title' => '</p>',
	) );

	register_sidebar( array(
		'name' => __( 'Footer area one', 'swift' ),
		'id' => 'footer-1',
		'description' => __( 'An optional widget area for your site footer', 'swift' ),
		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
		'after_widget' => "</aside>",
		'before_title' => '<p class="widget-title">',
		'after_title' => '</p>',
	) );

	register_sidebar( array(
		'name' => __( 'Footer area two', 'swift' ),
		'id' => 'footer-2',
		'description' => __( 'An optional widget area for your site footer', 'swift' ),
		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
		'after_widget' => "</aside>",
		'before_title' => '<p class="widget-title">',
		'after_title' => '</p>',
	) );

	register_sidebar( array(
		'name' => __( 'Footer area three', 'swift' ),
		'id' => 'footer-3',
		'description' => __( 'An optional widget area for your site footer', 'swift' ),
		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
		'after_widget' => "</aside>",
		'before_title' => '<p class="widget-title">',
		'after_title' => '</p>',
	) );

		register_sidebar( array(
		'name' => __( 'Footer area four', 'swift' ),
		'id' => 'footer-4',
		'description' => __( 'An optional widget area for your site footer', 'swift' ),
		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
		'after_widget' => "</aside>",
		'before_title' => '<p class="widget-title">',
		'after_title' => '</p>',
	) );


	register_sidebar( array(
		'name' => __( 'News paper sidebar', 'swift' ),
		'id' => 'np-sb',
		'description' => __( 'These widgets will be shown in the News paper layout', 'swift' ),
		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
		'after_widget' => "</aside>",
		'before_title' => '<p class="widget-title">',
		'after_title' => '</p>',
	) );

	register_sidebar( array(
		'name' => __( 'Left sidebar page template', 'swift' ),
		'id' => 'page_temp_l',
		'description' => __( 'These widgets will be shown on left sidebar page template', 'swift' ),
		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
		'after_widget' => "</aside>",
		'before_title' => '<p class="widget-title">',
		'after_title' => '</p>',
	) );

	register_sidebar( array(
		'name' => __( 'Right sidebar page template', 'swift' ),
		'id' => 'page_temp_r',
		'description' => __( 'These widgets will be shown on right sidebar page template', 'swift' ),
		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
		'after_widget' => "</aside>",
		'before_title' => '<p class="widget-title">',
		'after_title' => '</p>',
	) );
}
add_action( 'widgets_init', 'swift_sidebars_init' );
?>