. add_theme_support( 'automatic-feed-links' ); // Add support for a variety of post formats add_theme_support( 'post-formats', array( 'aside', 'image', 'link', 'quote' ) ); // This theme uses wp_nav_menu() in one location. register_nav_menu( 'primary', __( 'Primary Menu', 'twentytwelve' ) ); // Add support for custom background. add_custom_background(); // Add support for a custom header image. $header_args = array( 'random-default' => true, 'flex-height' => true, 'suggested-height' => apply_filters( 'twentytwelve_header_image_height', 250 ), 'flex-width' => true, 'max-width' => apply_filters( 'twentytwelve_header_image_max_width', 2000 ), 'suggested-width' => apply_filters( 'twentytwelve_header_image_width', 960 ), ); add_theme_support( 'custom-header', $header_args ); add_custom_image_header( 'twentytwelve_header_style', 'twentytwelve_admin_header_style', 'twentytwelve_admin_header_image' ); // The default header text color define( 'HEADER_TEXTCOLOR', '444' ); } endif; if ( ! function_exists( 'twentytwelve_header_style' ) ) : /** * Styles the header image and text displayed on the blog * * get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank'), or any hex value * * @since Twenty Twelve 1.0 */ function twentytwelve_header_style() { // If no custom options for text are set, let's bail if ( HEADER_TEXTCOLOR == get_header_textcolor() ) return; // If we get this far, we have custom styles. ?> Header admin panel. * * Referenced via add_custom_image_header() in twentytwelve_setup(). * * @since Twenty Twelve 1.0 */ function twentytwelve_admin_header_style() { ?> Header admin panel. * * Referenced via add_custom_image_header() in twentytwelve_setup(). * * @since Twenty Twelve 1.0 */ function twentytwelve_admin_header_image() { ?>

onclick="return false;" href="">

>

__( 'Main Sidebar', 'twentytwelve' ), 'id' => 'sidebar-1', 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'twentytwelve_widgets_init' ); if ( ! function_exists( 'twentytwelve_content_nav' ) ) : /** * Display navigation to next/previous pages when applicable * * @since Twenty Twelve 1.0 */ function twentytwelve_content_nav( $nav_id ) { global $wp_query; if ( $wp_query->max_num_pages > 1 ) : ?> comment_type ) : case 'pingback' : case 'trackback' : ?>
  • ', '' ); ?>

  • id="li-comment-">
    comment_parent ) $avatar_size = 39; echo get_avatar( $comment, $avatar_size ); /* translators: 1: comment author, 2: date and time */ printf( __( '%1$s on %2$s said:', 'twentytwelve' ), sprintf( '%s', get_comment_author_link() ), sprintf( '', esc_url( get_comment_link( $comment->comment_ID ) ), get_comment_time( 'c' ), /* translators: 1: date, 2: time */ sprintf( __( '%1$s at %2$s', 'twentytwelve' ), get_comment_date(), get_comment_time() ) ) ); ?> ', '' ); ?>
    comment_approved == '0' ) : ?>
    __( 'Reply ', 'twentytwelve' ), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    Posted on by ', 'twentytwelve' ), esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( __( 'View all posts by %s', 'twentytwelve' ), get_the_author() ) ), get_the_author() ); } endif; /** * Extends the default WordPress body class to denote a full-width layout. * * Used in two cases: no active widgets in sidebar, and full-width page template. * * @since Twenty Twelve 1.0 */ function twentytwelve_body_class( $classes ) { if ( ! is_active_sidebar( 'sidebar-1' ) || is_page_template( 'full-width' ) ) $classes[] = 'full-width'; return $classes; } add_filter( 'body_class', 'twentytwelve_body_class' );