__( 'Primary Menu', 'bridge' ),
) );
/**
* Add support for the Aside and Gallery Post Formats
*/
add_theme_support( 'post-formats', array( 'aside', 'image', 'gallery' ) );
}
endif; // bridge_setup
/**
* Tell WordPress to run bridge_setup() when the 'after_setup_theme' hook is run.
*/
add_action( 'after_setup_theme', 'bridge_setup' );
/**
* Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link.
*/
function bridge_page_menu_args( $args ) {
$args['show_home'] = true;
return $args;
}
add_filter( 'wp_page_menu_args', 'bridge_page_menu_args' );
/**
* Register widgetized area and update sidebar with default widgets
*/
function bridge_widgets_init() {
register_sidebar( array(
'name' => __( 'Sidebar', 'bridge' ),
'id' => 'sidebar-1',
'before_widget' => '",
'before_title' => '
',
'after_title' => '
',
) );
}
add_action( 'init', 'bridge_widgets_init' );
if ( ! function_exists( 'bridge_content_nav' ) ):
/**
* Display navigation to next/previous pages when applicable
*
* @since bridge 1.2
*/
function bridge_content_nav( $nav_id ) {
global $wp_query;
?>
true,
'width' => 990,
'flex-width' => true,
'header-text' => false,
'height' => 200,
);
add_theme_support( 'custom-header', $args );
if ( ! function_exists( 'bridge_comment' ) ) :
/**
* Template for comments and pingbacks.
*
* To override this walker in a child theme without modifying the comments template
* simply create your own bridge_comment(), and that function will be used instead.
*
* Used as a callback by wp_list_comments() for displaying the comments.
*
* @since bridge 0.4
*/
function bridge_comment( $comment, $args, $depth ) {
$GLOBALS['comment'] = $comment;
switch ( $comment->comment_type ) :
case 'pingback' :
case 'trackback' :
?>