__( 'Primary Menu', 'bonpress' ),
) );
/**
* Setup the WordPress core custom background feature.
*/
add_theme_support( 'custom-background', apply_filters( 'bonpress_custom_background_args', array(
'default-color' => 'e9e7e0',
'default-image' => '',
) ) );
/**
* Enable support for Post Formats
*/
add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) );
// This theme uses its own gallery styles.
add_filter( 'use_default_gallery_style', '__return_false' );
// Adds HTML5 support to theme
add_theme_support( 'html5', array( 'comment-form' ) );
}
endif; // bonpress_setup
add_action( 'after_setup_theme', 'bonpress_setup' );
/**
* Register widgetized area and update sidebar with default widgets
*
* @since Bonpress 1.0
*/
function bonpress_widgets_init() {
register_sidebar( array(
'name' => __( 'Sidebar', 'bonpress' ),
'id' => 'sidebar-1',
'before_widget' => '',
'before_title' => '
',
) );
}
add_action( 'widgets_init', 'bonpress_widgets_init' );
/**
* Enqueue scripts and styles
*/
function bonpress_scripts() {
wp_enqueue_style( 'bonpress-style', get_stylesheet_uri() );
wp_enqueue_script( 'bonpress-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true );
wp_enqueue_script( 'bonpress-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );
// Add Genericons font, used in the main stylesheet.
if ( wp_style_is( 'genericons', 'registered' ) )
wp_enqueue_style( 'genericons' );
else
wp_enqueue_style( 'genericons', get_template_directory_uri() . '/fonts/genericons.css', array(), null );
wp_enqueue_style( 'bebasNeue', get_template_directory_uri() . '/fonts/bebasNeue.css', array(), null );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) )
wp_enqueue_script( 'comment-reply' );
if ( is_singular() && wp_attachment_is_image() )
wp_enqueue_script( 'bonpress-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20120202' );
}
add_action( 'wp_enqueue_scripts', 'bonpress_scripts' );
/**
* 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';
/**
* Customizer additions.
*/
require get_template_directory() . '/inc/customizer.php';
/*
* Load Jetpack compatibility file.
*/
require get_template_directory() . '/inc/jetpack.php';