File: /home/aprilnet/public_html/meadcarney.com/wp-content/themes/malina/framework/inc/sidebars.php
<?php
/* ------------------------------------------------------------------------ */
/* Define Sidebars */
/* ------------------------------------------------------------------------ */
if(!function_exists('malina_widgets_init')){
add_action( 'widgets_init', 'malina_widgets_init' );
function malina_widgets_init(){
if (function_exists('register_sidebar')) {
$separator_class = get_theme_mod( 'malina_widgets_headings_separator', 'simple') == 'false' ? false : get_theme_mod( 'malina_widgets_headings_separator');
if ( $separator_class )
$separator = ' separator '.$separator_class;
else {
$separator = '';
}
/* ------------------------------------------------------------------------ */
/* Blog Widgets */
register_sidebar(array(
'name' => esc_html__('Blog Widgets','malina'),
'id' => 'blog-widgets',
'description' => esc_html__( 'These are widgets for the Blog sidebar.','malina' ),
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widget-title'.$separator.'"><span>',
'after_title' => '</span></h3>'
));
/* ------------------------------------------------------------------------ */
/* ------------------------------------------------------------------------ */
/* Hidden area widgets */
register_sidebar(array(
'name' => esc_html__('Hidden Area Widgets','malina'),
'id' => 'hidden-widgets',
'description' => esc_html__( 'These are widgets for hidden area. To show it you need to click button in header.','malina' ),
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widget-title'.$separator.'"><span>',
'after_title' => '</span></h3>'
));
/* ------------------------------------------------------------------------ */
/* Blog Widgets */
register_sidebar(array(
'name' => esc_html__('Footer Widgets','malina'),
'id' => 'footer-widgets',
'description' => esc_html__( 'These are widgets for footer section.','malina' ),
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widget-title"><span>',
'after_title' => '</span></h3>'
));
}
}
}
?>