__('Left Sidebar', 'basico'),
'id' => 'sidebar-left',
'description' => __('Sidebar that appears on the left or on the rigth-left.', 'twentyfourteen'),
'before_widget' => '
',
'before_title' => '
',
));
}else{
unregister_sidebar('sidebar-left');
}
if ($options['basico_sidebar_rigth'] != 'disabled') {
register_sidebar(array(
'name' => __('Rigth sidebar', 'basico'),
'id' => 'sidebar-rigth',
'description' => __('Additional sidebar that appears on the right or on the left-rigth .', 'twentyfourteen'),
'before_widget' => '
',
'before_title' => '
',
));
}else{
unregister_sidebar('sidebar-rigth');
}
if ($options['basico_sidebar_footer'] != 'disabled'&& is_numeric($options['basico_sidebar_footer'])) {
$col=12/$options['basico_sidebar_footer'];
register_sidebar(array(
'name' => __('Footer Widget Area', 'basico'),
'id' => 'sidebar-footer',
'class'=>"row",
'description' => __('Appears in the footer section of the site.', 'twentyfourteen'),
'before_widget' => '
',
'before_title' => '
',
));
}else{
unregister_sidebar('sidebar-footer');
}
}
add_action('widgets_init', 'basico_widgets_init');