__( 'Primary Menu', 'butcher_block' ),
) );
/**
* Add support for custom backgrounds
*/
add_custom_background();
/**
* Add support for the Aside and Gallery Post Formats
*/
add_theme_support( 'post-formats', array( 'aside', ) );
}
endif; // butcher_block_setup
add_action( 'after_setup_theme', 'butcher_block_setup' );
/**
* Register widgetized area and update sidebar with default widgets
*
* @since Butcher Block 1.0
*/
function butcher_block_widgets_init() {
register_sidebars( 2, array(
'name' => __( 'Sidebar %d', 'butcher_block' ),
'id' => 'sidebar',
'before_widget' => '",
'before_title' => '
',
) );
}
add_action( 'widgets_init', 'butcher_block_widgets_init' );
/**
* Enqueue scripts and styles
*/
function butcher_block_scripts() {
global $post;
// stylesheet
wp_enqueue_style( 'style', get_stylesheet_uri() );
// jquery
wp_enqueue_script( 'jquery' );
// small menu
wp_enqueue_script( 'small-menu', get_template_directory_uri() . '/js/small-menu.js', 'jquery', '20120206', true );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
if ( is_singular() && wp_attachment_is_image( $post->ID ) ) {
wp_enqueue_script( 'keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20120202' );
}
}
add_action( 'wp_enqueue_scripts', 'butcher_block_scripts' );