__( 'Primary Navigation', 'brunelleschi' ), ) ); /* Default Header Stuff */ if ( ! defined( 'HEADER_TEXTCOLOR' ) ) { define( 'HEADER_TEXTCOLOR', '' ); } if ( ! defined( 'NO_HEADER_TEXT' ) ) { define( 'NO_HEADER_TEXT', true ); } } endif; /*---------------------------------------- # # REGISTER SCRIPTS # ----------------------------------------*/ /* Updated 6/27/11 */ /* Modernizr */ wp_register_script('modernizr', get_template_directory_uri() . '/js/modernizr-2.0.6.min.js', array(), '2.0.6' ); if( !is_admin() ){ wp_enqueue_script('modernizr'); } /* Contains Media Queries Used by 1140px Grid*/ wp_register_script('respond', get_template_directory_uri() . '/js/respond.js', array()); if( !is_admin() ){ wp_enqueue_script('respond'); } /*---------------------------------------- # # SETUP FUNCTIONS # ----------------------------------------*/ /* Title Function */ function brunelleschi_title(){ global $page, $paged; wp_title( '»', true, 'right' ); bloginfo( 'name' ); $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) echo " » $site_description"; if ( $paged >= 2 || $page >= 2 ) echo ' » ' . sprintf( __( 'Page %s', 'brunelleschi' ), max( $paged, $page ) ); } /* Posted In Function */ function brunelleschi_posted_in() { $tag_list = get_the_tag_list( '', ', ' ); if ( $tag_list ) { $posted_in = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the permalink.', 'brunelleschi' ); } elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) { $posted_in = __( 'This entry was posted in %1$s. Bookmark the permalink.', 'brunelleschi' ); } else { $posted_in = __( 'Bookmark the permalink.', 'brunelleschi' ); } printf( $posted_in, get_the_category_list( ', ' ), $tag_list, get_permalink(), the_title_attribute( 'echo=0' ) ); } /* Posted On Function */ function brunelleschi_posted_on() { printf( __(' %3$s Posted on %2$s', 'brunelleschi' ), 'meta-prep meta-prep-author', sprintf( '%3$s', get_permalink(), esc_attr( get_the_time() ), get_the_date() ), sprintf( '', get_author_posts_url( get_the_author_meta( 'ID' ) ), sprintf( esc_attr__( 'View all posts by %s', 'brunelleschi' ), get_the_author() ), get_the_author() ) ); edit_post_link( __( 'Edit', 'brunelleschi' ), ' [', ']' ); } /* Theme Comments */ function brunelleschi_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : case '' : ?>
(.*?)#s", '', $css ); } if ( version_compare( $GLOBALS['wp_version'], '3.1', '<' ) ) { add_filter( 'gallery_style', 'brunelleschi_remove_gallery_css' ); } /* Custom Excerpt More */ function brunelleschi_custom_excerpt_more( $output ) { if ( has_excerpt() && ! is_attachment() ) { $output .= brunelleschi_continue_reading_link(); } return $output; } add_filter( 'get_the_excerpt', 'brunelleschi_custom_excerpt_more' ); /* Show the Home Page */ function brunelleschi_page_menu_args( $args ) { $args['show_home'] = true; return $args; } add_filter( 'wp_page_menu_args', 'brunelleschi_page_menu_args' ); /* Excerpt Length */ function brunelleschi_excerpt_length( $length ) { return 40; } add_filter( 'excerpt_length', 'brunelleschi_excerpt_length' ); /* Continue Reading Link */ function brunelleschi_continue_reading_link() { return ' ' . __( 'Continue reading ', 'brunelleschi' ) . ''; } /* Auto Excerpt More */ function brunelleschi_auto_excerpt_more( $more ) { return ' …' . brunelleschi_continue_reading_link(); } add_filter( 'excerpt_more', 'brunelleschi_auto_excerpt_more' ); /* Admin Header Style */ function brunelleschi_admin_header_style() { ?> array( 'url' => '%s/images/headers/beach.png', 'thumbnail_url' => '%s/images/headers/beach-thumbnail.png', 'description' => __('Beach', 'brunelleschi') ), 'fog' => array( 'url' => '%s/images/headers/fog.png', 'thumbnail_url' => '%s/images/headers/fog-thumbnail.png', 'description' => __('Fog', 'brunelleschi') ), 'grass' => array( 'url' => '%s/images/headers/grass.png', 'thumbnail_url' => '%s/images/headers/grass-thumbnail.png', 'description' => __('Grass', 'brunelleschi') ) ) ); /* Add Post Thumbnails */ add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true ); if ( ! function_exists( 'brunelleschi_admin_header_style' ) ) : /* Backend Header Style */ function brunelleschi_admin_header_style() { ?> __( 'Primary Widget Area', 'brunelleschi' ), 'id' => 'primary-widget-area', 'description' => __( 'The primary widget area', 'brunelleschi' ), 'before_widget' => '