<?php // Register Menus and Widgetised areas

// Menus
function register_menus() {
    register_nav_menus(
        array(
            'main-nav'          => ( 'Header - Main' ),
            'header-top'        => ( 'Header - Top' ),
            'sub-footer-nav'    => ( 'Footer - Sub' )
        )
    );
}
add_action( 'init', 'register_menus' );
// End

// Sidebars
register_sidebar( array(
    'name'          => 'Blog Sidebar',
    'id'            => 'blog-sidebar',
    'description'   => 'Sidebar area for blog',
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget'  => '</div>',
    'before_title'  => '<h3 class="widget-title">',
    'after_title'   => '</h3>',
) );
register_sidebar( array(
    'name'          => 'Shop Sidebar',
    'id'            => 'shop-sidebar',
    'description'   => 'Sidebar area for Woocommerce shop',
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget'  => '</div>',
    'before_title'  => '<h3 class="widget-title">',
    'after_title'   => '</h3>',
) );
// End

// Footer Widget areas
register_sidebar( array(
    'name'          => 'Upper Footer Area',
    'id'            => 'upper-footer',
    'description'   => 'Appears in the footer area',
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget'  => '</div>',
    'before_title'  => '<h3 class="widget-title">',
    'after_title'   => '</h3>',
) );
register_sidebar( array(
    'name'          => 'Footer Area 1',
    'id'            => 'footer-area-1',
    'description'   => 'Appears in the footer area',
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget'  => '</div>',
    'before_title'  => '<h3 class="widget-title">',
    'after_title'   => '</h3>',
) );
register_sidebar( array(
    'name'          => 'Footer Area 2',
    'id'            => 'footer-area-2',
    'description'   => 'Appears in the footer area',
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget'  => '</div>',
    'before_title'  => '<h3 class="widget-title">',
    'after_title'   => '</h3>',
) );
register_sidebar( array(
    'name'          => 'Footer Area 3',
    'id'            => 'footer-area-3',
    'description'   => 'Appears in the footer area',
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget'  => '</div>',
    'before_title'  => '<h3 class="widget-title">',
    'after_title'   => '</h3>',
) );
register_sidebar( array(
    'name'          => 'Footer Area 4',
    'id'            => 'footer-area-4',
    'description'   => 'Appears in the footer area',
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget'  => '</div>',
    'before_title'  => '<h3 class="widget-title">',
    'after_title'   => '</h3>',
) );
register_sidebar( array(
    'name'          => 'Footer Area 5',
    'id'            => 'footer-area-5',
    'description'   => 'Appears in the footer area',
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget'  => '</div>',
    'before_title'  => '<h3 class="widget-title">',
    'after_title'   => '</h3>',
) );
register_sidebar( array(
    'name'          => 'Lower Footer Area',
    'id'            => 'lower-footer',
    'description'   => 'Appears in the footer area',
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget'  => '</div>',
    'before_title'  => '<h3 class="widget-title">',
    'after_title'   => '</h3>',
) );
// End