esc_html__('Primary Sidebar', 'associationx'),
'id' => 'sidebar-1',
'before_widget' => '",
'before_title' => '
',
) );
register_sidebar( array(
'name' => esc_html__('Single Page Sidebar', 'associationx'),
'id' => 'sidebar-sinpage',
'before_widget' => '",
'before_title' => '',
) );
register_sidebar( array(
'name' => esc_html__('Single Post Sidebar', 'associationx'),
'id' => 'sidebar-sinpost',
'before_widget' => '",
'before_title' => '',
) );
if(associationx_get_option('show_fp_wpblog', '1')) {
register_sidebar( array(
'name' => esc_html__('Front Page Sidebar', 'associationx'),
'id' => 'sidebar-3',
'before_widget' => '",
'before_title' => '',
));
}
if ( function_exists('bp_is_active') ) {
register_sidebar( array(
'name' => esc_html__('Community/BuddyPress Sidebar', 'associationx'),
'id' => 'sidebar-bp',
'before_widget' => '",
'before_title' => '',
) );
}
if ( class_exists( 'bbPress' ) ) {
register_sidebar( array(
'name' => esc_html__('Forum/bbPress Sidebar', 'associationx'),
'id' => 'sidebar-bb',
'before_widget' => '",
'before_title' => '',
) );
}
if(associationx_woo_check()){
register_sidebar( array(
'name' => esc_html__('E-Commerce Sidebar', 'associationx'),
'id' => 'sidebar-woo',
'before_widget' => '",
'before_title' => '',
) );
}
register_sidebar( array(
'name' => esc_html__('Search Sidebar', 'associationx'),
'id' => 'sidebar-sp',
'before_widget' => '",
'before_title' => '',
) );
$numoffwclmn = 4;
foreach (range(1, $numoffwclmn) as $fwclmnn) {
$fwnum = $fwclmnn+3;
register_sidebar( array(
'name' => esc_html__('Footer Area ', 'associationx').$fwclmnn,
'id' => 'sidebar-'.esc_attr($fwnum),
'description' => esc_html__('An optional widget area for your site footer', 'associationx'),
'before_widget' => '",
'before_title' => '',
));
}
}
add_action( 'widgets_init', 'associationx_widgets_init' );