<?php if (!defined('ABSPATH')) die('Direct access forbidden.');
/**
 * register widget area
 */

function vinkmag_action_sidebar_init(){
    if (function_exists('register_sidebar')) {
        register_sidebar(
            [
                'name' => esc_html__('Primary sidebar', 'vinkmag'),
                'id' => 'sidebar-right',
                'description' => esc_html__('Appears on posts, pages and categories.', 'vinkmag'),
                'before_widget' => '<div id="%1$s" class="widgets ts-grid-box %2$s">',
                'after_widget' => '</div>',
                'before_title' => '<h4 class="widget-title">',
                'after_title' => '</h4>',
            ]
        );
	    register_sidebar(
		    [
			    'name'			 => esc_html__( 'Woocommerce sidebar Area', 'geobin' ),
			    'id'			 => 'sidebar-woo',
			    'description'	 => esc_html__( 'Appears on posts and pages.', 'geobin' ),
			    'before_widget'	 => '<div id="%1$s" class="widgets ts-grid-box %2$s">',
			    'after_widget'	 => '</div> <!-- end widget -->',
			    'before_title'	 => '<h4 class="widget-title">',
			    'after_title'	 => '</h4>',
		    ] );
    }
}

add_action('widgets_init', 'vinkmag_action_sidebar_init');