__( 'Primary Menu', 'bnw' ),
) );
// This theme uses wp_nav_menu() in Footer location.
register_nav_menus( array(
'footer' => __( 'Footer Menu', 'bnw' ),
) );
// html5 comment support
add_theme_support( 'html5', array(
'search-form', 'comment-form', 'comment-list', 'gallery', 'caption',
) );
// Enable support for Post Formats.
add_theme_support( 'post-formats', array(
'aside', 'image', 'video', 'quote', 'link', 'gallery', 'status', 'audio', 'chat'
) );
// Set up the WordPress core custom background feature.
add_theme_support( 'custom-background', apply_filters( 'bnw_custom_background_args', array(
'default-color' => 'ffffff',
'default-image' => '',
) ) );
}
endif; // bnw_setup
add_action( 'after_setup_theme', 'bnw_setup' );
// Register widget area.
// =================================================================
function bnw_widgets_init() {
register_sidebar( array(
'name' => __( 'Sidebar Primary', 'bnw' ),
'id' => 'sidebar-primary',
'description' => '',
'before_widget' => '',
'before_title' => '
',
) );
register_sidebar( array(
'name' => __( 'Sidebar Right', 'bnw' ),
'id' => 'sidebar-right',
'description' => '',
'before_widget' => '',
'before_title' => '',
) );
register_sidebar( array(
'name' => __( 'Footer One', 'bnw' ),
'id' => 'footer-01',
'description' => '',
'before_widget' => '',
'before_title' => '',
) );
register_sidebar( array(
'name' => __( 'Footer Two', 'bnw' ),
'id' => 'footer-02',
'description' => '',
'before_widget' => '',
'before_title' => '',
) );
register_sidebar( array(
'name' => __( 'Footer Three', 'bnw' ),
'id' => 'footer-03',
'description' => '',
'before_widget' => '',
'before_title' => '',
) );
}
add_action( 'widgets_init', 'bnw_widgets_init' );
// Enqueue scripts and styles.
// =================================================================
require get_template_directory() . '/libs/scripts.php';
// Implement the Custom Header feature.
// =================================================================
// require get_template_directory() . '/libs/custom-header.php';
// Custom template tags for this theme.
// =================================================================
require get_template_directory() . '/libs/template-tags.php';
// Custom functions that act independently of the theme templates.
// =================================================================
require get_template_directory() . '/libs/extras.php';
// Customizer additions.
// =================================================================
require get_template_directory() . '/libs/customizer.php';
// Load Jetpack compatibility file.
// =================================================================
require get_template_directory() . '/libs/jetpack.php';
// Load Titan Framework plugin checker
// =================================================================
require get_template_directory() . '/titan-framework-checker.php';
// Load Titan Framework options
// =================================================================
require get_template_directory() . '/titan-options.php';
// Load Titan Framework options
// =================================================================
require get_template_directory() . '/theme-options.php';