<?php if(function_exists('register_sidebar')) {
  register_sidebar(array(
    'name' => 'Sidebar',
    'before_widget' => '<div class="widget">',
    'after_widget' => '</div>',
    'before_title' => '<div class="grids_box_sidebar"><div class="widget-title"><h3>',
    'after_title' => '</h3></div></div>',
));

  register_sidebar(array(
    'name' => 'Homepage - Magazine Layout',
    'before_widget' => '<div class="homepage-widget">',
    'after_widget' => '</div>',
    'before_title' => '<div class="grids_box_sidebar"><div class="widget-title"><h3>',
    'after_title' => '</h3></div></div>',
));

  register_sidebar(array(
    'name' => 'Homepage - Blog Layout',
    'before_widget' => '<div class="widget">',
    'after_widget' => '</div>',
    'before_title' => '<div class="widget-title"><h3>',
    'after_title' => '</h3></div>',
));

  register_sidebar(array(
    'name' => 'Footer Widget 1',
    'before_widget' => '<div class="widgetfooter">',
    'after_widget' => '</div>',
    'before_title' => '<h3 class="widgetfooter-title">',
    'after_title' => '</h3>',
));

  register_sidebar(array(
    'name' => 'Footer Widget 2',
    'before_widget' => '<div class="widgetfooter">',
    'after_widget' => '</div>',
    'before_title' => '<h3 class="widgetfooter-title">',
    'after_title' => '</h3>',
));

  register_sidebar(array(
    'name' => 'Footer Widget 3',
    'before_widget' => '<div class="widgetfooter">',
    'after_widget' => '</div>',
    'before_title' => '<h3 class="widgetfooter-title">',
    'after_title' => '</h3>',
));
}

