<?php

// Register widgetized area and update sidebar with default widgets
if (!function_exists('dueper_widgets_init')) {
  function dueper_widgets_init() {
    register_sidebar(array(
      'name'          => __('Right sidebar','blanka'),
      'id'            => 'right',
      'before_widget' => '<aside id="%1$s" class="widget %2$s">',
      'after_widget'  => '</aside>',
      'before_title'  => '<h4 class="widget-title">',
      'after_title'   => '</h4>',
    ));
    register_sidebar(array(
      'name'          => __('Shop sidebar','blanka'),
      'id'            => 'shop',
      'before_widget' => '<aside id="%1$s" class="widget %2$s">',
      'after_widget'  => '</aside>',
      'before_title'  => '<h4 class="widget-title">',
      'after_title'   => '</h4>',
    ));
    register_sidebar(array(
      'name'          => __('Shop sidebar mobile','blanka'),
      'id'            => 'shop-mobile',
      'before_widget' => '<aside id="%1$s" class="widget %2$s">',
      'after_widget'  => '</aside>',
      'before_title'  => '<h4 class="widget-title">',
      'after_title'   => '</h4>',
    ));
    register_sidebar(array(
      'name'          => __('Footer one','blanka'),
      'id'            => 'footer-one',
      'before_widget' => '<aside id="%1$s" class="widget %2$s">',
      'after_widget'  => '</aside>',
      'before_title'  => '<h4 class="widget-title">',
      'after_title'   => '</h4>',
    ));
    register_sidebar(array(
      'name'          => __('Footer two','blanka'),
      'id'            => 'footer-two',
      'before_widget' => '<aside id="%1$s" class="widget %2$s">',
      'after_widget'  => '</aside>',
      'before_title'  => '<h4 class="widget-title">',
      'after_title'   => '</h4>',
    ));
    register_sidebar(array(
      'name'          => __('Footer three','blanka'),
      'id'            => 'footer-three',
      'before_widget' => '<aside id="%1$s" class="widget %2$s">',
      'after_widget'  => '</aside>',
      'before_title'  => '<h4 class="widget-title">',
      'after_title'   => '</h4>',
    ));
    register_sidebar(array(
      'name'          => __('Footer four','blanka'),
      'id'            => 'footer-four',
      'before_widget' => '<aside id="%1$s" class="widget %2$s">',
      'after_widget'  => '</aside>',
      'before_title'  => '<h4 class="widget-title">',
      'after_title'   => '</h4>',
    ));
    register_sidebar(array(
      'name'          => __('Newsletter','blanka'),
      'id'            => 'newsletter',
      'before_widget' => '<aside id="%1$s" class="widget %2$s">',
      'after_widget'  => '</aside>',
      'before_title'  => '<h4 class="widget-newsletter">',
      'after_title'   => '</h4>',
    ));
  }
  add_action( 'widgets_init', 'dueper_widgets_init' );
}
