<?php
function magazina_widgets_init() {
// Area , located below the Primary Widget Area in the sidebar. Empty by default.
register_sidebar(array(
'name' => __('Inner page Sidebar', 'magazina'),
'id' => 'primary-sidebar',
'description' => __('Main sidebar that appears on the left.', 'magazina'),
'before_widget' => '<div class="sidebar-inner-widget">',
'after_widget' => '</div><div class="clearfix"></div>',
'before_title' => '<h4 class="widgettitle">',
'after_title' => '</h4>',
));
// Magazine sidebar 
register_sidebar(array(
'name' => __('Magazine Sidebar First', 'magazina'),
'id' => 'magazine-sidebar-one',
'description' => __('Secondry sidebar that appears on Magazine Template.', 'magazina'),
'before_widget' => '<div class="sidebar-inner-widget">',
'after_widget' => '</div><div class="clearfix"></div>',
'before_title' => '<h4 class="widgettitle">',
'after_title' => '</h4>',
));
register_sidebar(array(
'name' => __('Magazine Sidebar Second', 'magazina'),
'id' => 'magazine-sidebar-two',
'description' => __('Secondry sidebar that appears on Magazine Template.', 'magazina'),
'before_widget' => '<div class="sidebar-inner-widget">',
'after_widget' => '</div><div class="clearfix"></div>',
'before_title' => '<h4 class="widgettitle">',
'after_title' => '</h4>',
));
// Area 1, located in the footer. Empty by default.
register_sidebar(array(
'name' => __('First Footer Widget Area', 'magazina'),
'id' => 'first-footer-widget-area',
'description' => __('Appears in the first footer section of the site.', 'magazina'),
'before_widget' => '<div class="footer-inner-widget">',
'after_widget' => '</div><div class="clearfix"></div>',
'before_title' => '<h4 class="widgettitle" >',
'after_title' => '</h4>',
));
// Area 2, located in the footer. Empty by default.
register_sidebar(array(
'name' => __('Second Footer Widget Area', 'magazina'),
'id' => 'second-footer-widget-area',
'description' => __('Appears in the Second footer section of the site.', 'magazina'),
'before_widget' => '<div class="footer-inner-widget">',
'after_widget' => '</div><div class="clearfix"></div>',
'before_title' => '<h4 class="widgettitle" >',
'after_title' => '</h4>',
));
// Area 3, located in the footer. Empty by default.
register_sidebar(array(
'name' => __('Third Footer Widget Area', 'magazina'),
'id' => 'third-footer-widget-area',
'description' => __('Appears in the Third footer section of the site.', 'magazina'),
'before_widget' => '<div class="footer-inner-widget">',
'after_widget' => '</div><div class="clearfix"></div>',
'before_title' => '<h4 class="widgettitle">',
'after_title' => '</h4>',
));
}
/** Register sidebars by running magazina_widgets_init() on the widgets_init hook. */
add_action('widgets_init', 'magazina_widgets_init');
