<?php

function calm_blog_blog_widgets_init() {

    register_sidebar( array(
        'name'          => esc_html__( 'Homepage Ad Section One', 'calm-blog' ),
        'id'            => 'ct_banner_ad',
        'description'   => esc_html__( 'Add widgets here to appear on the homepage banner ad section.', 'spark-news' ),
        'before_widget' => '<div id="%1$s" class="%2$s text-center ct-banner-ad widgetarea">',
        'after_widget'  => '</div><!-- /.widgetarea -->',
        'before_title'  => '<h2 class="widget-title ct-title">',
        'after_title'   => '</h2>',
    ) );

    register_sidebar( array(
        'name'          => esc_html__( 'Homepage Ad Section Two', 'calm-blog' ),
        'id'            => 'ct_banner_ad_two',
        'description'   => esc_html__( 'Add widgets here to appear on the homepage banner ad section.', 'spark-news' ),
        'before_widget' => '<div id="%1$s" class="%2$s text-center ct-banner-ad widgetarea">',
        'after_widget'  => '</div><!-- /.widgetarea -->',
        'before_title'  => '<h2 class="widget-title ct-title">',
        'after_title'   => '</h2>',
    ) );

    register_sidebar( array(
        'name'          => esc_html__( 'Sidebar', 'calm-blog' ),
        'id'            => 'calm_blog-main-sidebar',
        'description'   => esc_html__( 'Add widgets here to appear in your single post sidebar area.', 'calm-blog' ),
        'before_widget' => '<div id="%1$s" class="%2$s sidebar-widgetarea widgetarea">',
        'after_widget'  => '</div><!-- /.sidebar-widgetarea -->',
        'before_title'  => '<h3 class="widget-title">',
        'after_title'   => '</h3>',
    ) );

    register_sidebar( array(
        'name'          => esc_html__( 'Footer Left', 'calm-blog' ),
        'id'            => 'calm_blog-footer-left',
        'description'   => esc_html__( 'Add widgets here to appear on your left footer section.', 'calm-blog' ),
        'before_widget' => '<div id="%1$s" class="%2$s widgetarea">',
        'after_widget'  => '</div><!-- /.widgetarea -->',
        'before_title'  => '<h2 class="widget-title">',
        'after_title'   => '</h2>',
    ) );

    register_sidebar( array(
        'name'          => esc_html__( 'Footer Middle', 'calm-blog' ),
        'id'            => 'calm_blog-footer-middle',
        'description'   => esc_html__( 'Add widgets here to appear on your middle footer section.', 'calm-blog' ),
        'before_widget' => '<div id="%1$s" class="%2$s widgetarea">',
        'after_widget'  => '</div><!-- /.widgetarea -->',
        'before_title'  => '<h2 class="widget-title">',
        'after_title'   => '</h2>',
    ) );

    register_sidebar( array(
        'name'          => esc_html__( 'Footer Right', 'calm-blog' ),
        'id'            => 'calm_blog-footer-right',
        'description'   => esc_html__( 'Add widgets here to appear on your right footer section.', 'calm-blog' ),
        'before_widget' => '<div id="%1$s" class="%2$s widgetarea">',
        'after_widget'  => '</div><!-- /.widgetarea -->',
        'before_title'  => '<h2 class="widget-title">',
        'after_title'   => '</h2>',
    ) );
}


add_action( 'widgets_init', 'calm_blog_blog_widgets_init' );
