esc_html__('Main Sidebar', 'board-games'), 'id' => 'sidebar-1', 'description' => esc_html__('Add widgets here.', 'board-games'), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); $board_games_default = board_games_get_default_theme_options(); $board_games_footer_column_layout = absint( get_theme_mod( 'board_games_footer_column_layout',$board_games_default['board_games_footer_column_layout'] ) ); for( $board_games_i = 0; $board_games_i < $board_games_footer_column_layout; $board_games_i++ ){ if( $board_games_i == 0 ){ $board_games_count = esc_html__('One','board-games'); } if( $board_games_i == 1 ){ $board_games_count = esc_html__('Two','board-games'); } if( $board_games_i == 2 ){ $board_games_count = esc_html__('Three','board-games'); } register_sidebar( array( 'name' => esc_html__('Footer Widget ', 'board-games').$board_games_count, 'id' => 'board-games-footer-widget-'.$board_games_i, 'description' => esc_html__('Add widgets here.', 'board-games'), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); } } add_action('widgets_init', 'board_games_widgets_init');