<?php
/**
 * Register widget area.
 *
 * @link http://codex.wordpress.org/Function_Reference/register_sidebar
 */
function infinite_photography_widget_init(){
    register_sidebar(array(
        'name' => __('Main Sidebar Area', 'infinite-photography'),
        'id'   => 'infinite-photography-sidebar',
        'description' =>  __('Displays items on sidebar', 'infinite-photography'),
        'before_widget' => '<aside id="%1$s" class="widget %2$s">',
        'after_widget' => '</aside>',
        'before_title' => '<h3 class="widget-title"><span>',
        'after_title' => '</span></h3>',
    ));

	register_sidebar(array(
		'name' => __('Left Sidebar Area', 'infinite-photography'),
		'id'   => 'infinite-photography-sidebar-left',
		'description' => __('Displays items on left sidebar.', 'infinite-photography'),
		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
		'after_widget' => '</aside>',
		'before_title' => '<h3 class="widget-title"><span>',
		'after_title' => '</span></h3>',
	));
}
add_action('widgets_init', 'infinite_photography_widget_init');