__('Primary Menu', 'bootstrap-basic'), )); // add post formats support add_theme_support('post-formats', array('aside', 'image', 'video', 'quote', 'link')); // add support custom background add_theme_support( 'custom-background', apply_filters( 'bootstrap_basic_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '' ) ) ); }// bootstrapBasicSetup add_action('after_setup_theme', 'bootstrapBasicSetup'); function bootstrapBasicWidgetsInit() { register_sidebar(array( 'name' => __('Header right', 'bootstrap-basic'), 'id' => 'header-right', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => __('Navigation bar right', 'bootstrap-basic'), 'id' => 'navbar-right', 'before_widget' => '', 'after_widget' => '', 'before_title' => '', 'after_title' => '', )); register_sidebar(array( 'name' => __('Sidebar left', 'bootstrap-basic'), 'id' => 'sidebar-left', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => __('Sidebar right', 'bootstrap-basic'), 'id' => 'sidebar-right', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => __('Footer left', 'bootstrap-basic'), 'id' => 'footer-left', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => __('Footer right', 'bootstrap-basic'), 'id' => 'footer-right', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); }// bootstrapBasicWidgetsInit add_action('widgets_init', 'bootstrapBasicWidgetsInit'); /** * Custom template tags for this theme. */ require get_template_directory() . '/inc/template-tags.php'; /** * Custom functions that act independently of the theme templates. */ require get_template_directory() . '/inc/extras.php'; /** * Custom dropdown menu and navbar in walker class */ require get_template_directory() . '/inc/MyWalkerNavMenu.php'; /** * Template functions */ require get_template_directory() . '/inc/template-functions.php'; /** * -------------------------------------------------------------- * Theme widget & widget hooks * -------------------------------------------------------------- */ require get_template_directory() . '/inc/widgets/BootstrapSearchWidget.php'; require get_template_directory() . '/inc/template-widgets-hook.php';