esc_html__( 'Sidebar', 'bonkers' ),
'id' => 'sidebar-1',
'description' => '',
'before_widget' => '',
'before_title' => '
',
)
);
/*
Front Page Sections
===================================
*/
register_sidebar(
array(
'name' => esc_html__( 'Front Page - Services Section', 'bonkers' ),
'id' => 'services-section',
'description' => esc_html__( 'This is the Services Section in the Front Page. Here Add the "Bonkers - Service widget"', 'bonkers' ),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
',
)
);
register_sidebar(
array(
'name' => esc_html__( 'Front Page - Phone Section Left', 'bonkers' ),
'id' => 'phone-section-left',
'description' => esc_html__( 'This is the left Phone Section in the Front Page. Here Add the "Bonkers - Phone Feature"', 'bonkers' ),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
',
)
);
register_sidebar(
array(
'name' => esc_html__( 'Front Page - Phone Section Right', 'bonkers' ),
'id' => 'phone-section-right',
'description' => esc_html__( 'This is the right Phone Section in the Front Page. Here Add the "Bonkers - Phone Feature"', 'bonkers' ),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
',
)
);
register_sidebar(
array(
'name' => esc_html__( 'Front Page - Team Section', 'bonkers' ),
'id' => 'team-section',
'description' => esc_html__( 'This is the Team Section in the Front Page. Here Add the "Bonkers - Team Member"', 'bonkers' ),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
',
)
);
register_sidebar(
array(
'name' => esc_html__( 'Front Page - Clients Section', 'bonkers' ),
'id' => 'clients-section',
'description' => esc_html__( 'This is the Clients Section in the Front Page. Here Add the "Bonkers - Client Logo"', 'bonkers' ),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
',
)
);
/*
Footer
===================================
*/
$sidebars = array(
array(
'name' => esc_html__( 'First Footer Widgets Area', 'bonkers' ),
'id' => 'footer-widgets-1',
'description' => esc_html__( 'These are widgets for the first footer area', 'bonkers' ),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
),
array(
'name' => esc_html__( 'Second Footer Widgets Area', 'bonkers' ),
'id' => 'footer-widgets-2',
'description' => esc_html__( 'These are widgets for the second footer area', 'bonkers' ),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
),
array(
'name' => esc_html__( 'Third Footer Widgets Area', 'bonkers' ),
'id' => 'footer-widgets-3',
'description' => esc_html__( 'These are widgets for the third footer area', 'bonkers' ),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
),
array(
'name' => esc_html__( 'Fourth Footer Widgets Area', 'bonkers' ),
'id' => 'footer-widgets-4',
'description' => esc_html__( 'These are widgets for the fourth footer area', 'bonkers' ),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
),
);
$sidebar_columns = get_theme_mod( 'bonkers_footer_columns' );
if ( $sidebar_columns ) {
$sidebar_columns = json_decode( $sidebar_columns, true );
$no_sidebar = $sidebar_columns['columnsCount'];
} else {
$no_sidebar = 4;
}
for ( $i = 1; $i <= $no_sidebar; $i ++ ) {
if ( isset( $sidebars[ $i - 1 ] ) ) {
register_sidebar( $sidebars[ $i - 1 ] );
}
}