TwentyEleven Theme H1 Priority, props iandstewart, fixes #17611
git-svn-id: http://svn.automattic.com/wordpress/trunk@18335 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d1e6fe41e9
commit
d41f756348
|
@ -13,8 +13,8 @@
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
<header class="entry-header">
|
<header class="entry-header">
|
||||||
<hgroup>
|
<hgroup>
|
||||||
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
|
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
|
||||||
<h2 class="entry-format"><?php _e( 'Aside', 'twentyeleven' ); ?></h2>
|
<h3 class="entry-format"><?php _e( 'Aside', 'twentyeleven' ); ?></h3>
|
||||||
</hgroup>
|
</hgroup>
|
||||||
|
|
||||||
<?php if ( comments_open() ) : ?>
|
<?php if ( comments_open() ) : ?>
|
||||||
|
|
|
@ -11,7 +11,7 @@ global $feature_class;
|
||||||
?>
|
?>
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class( $feature_class ); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class( $feature_class ); ?>>
|
||||||
<header class="entry-header">
|
<header class="entry-header">
|
||||||
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
|
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
|
||||||
|
|
||||||
<div class="entry-meta">
|
<div class="entry-meta">
|
||||||
<?php twentyeleven_posted_on(); ?>
|
<?php twentyeleven_posted_on(); ?>
|
||||||
|
|
|
@ -13,8 +13,8 @@
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
<header class="entry-header">
|
<header class="entry-header">
|
||||||
<hgroup>
|
<hgroup>
|
||||||
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
|
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
|
||||||
<h2 class="entry-format"><?php _e( 'Gallery', 'twentyeleven' ); ?></h2>
|
<h3 class="entry-format"><?php _e( 'Gallery', 'twentyeleven' ); ?></h3>
|
||||||
</hgroup>
|
</hgroup>
|
||||||
|
|
||||||
<div class="entry-meta">
|
<div class="entry-meta">
|
||||||
|
|
|
@ -12,8 +12,8 @@
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'indexed' ); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class( 'indexed' ); ?>>
|
||||||
<header class="entry-header">
|
<header class="entry-header">
|
||||||
<hgroup>
|
<hgroup>
|
||||||
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
|
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
|
||||||
<h2 class="entry-format"><?php _e( 'Image', 'twentyeleven' ); ?></h2>
|
<h3 class="entry-format"><?php _e( 'Image', 'twentyeleven' ); ?></h3>
|
||||||
</hgroup>
|
</hgroup>
|
||||||
|
|
||||||
<?php if ( comments_open() ) : ?>
|
<?php if ( comments_open() ) : ?>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'intro' ); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class( 'intro' ); ?>>
|
||||||
<header class="entry-header">
|
<header class="entry-header">
|
||||||
<h1 class="entry-title"><?php the_title(); ?></h1>
|
<h2 class="entry-title"><?php the_title(); ?></h2>
|
||||||
</header><!-- .entry-header -->
|
</header><!-- .entry-header -->
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
|
|
@ -13,8 +13,8 @@
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
<header class="entry-header">
|
<header class="entry-header">
|
||||||
<hgroup>
|
<hgroup>
|
||||||
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
|
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
|
||||||
<h2 class="entry-format"><?php _e( 'Link', 'twentyeleven' ); ?></h2>
|
<h3 class="entry-format"><?php _e( 'Link', 'twentyeleven' ); ?></h3>
|
||||||
</hgroup>
|
</hgroup>
|
||||||
|
|
||||||
<?php if ( comments_open() ) : ?>
|
<?php if ( comments_open() ) : ?>
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
<header class="entry-header">
|
<header class="entry-header">
|
||||||
<hgroup>
|
<hgroup>
|
||||||
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
|
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
|
||||||
<h2 class="entry-format"><?php _e( 'Quote', 'twentyeleven' ); ?></h2>
|
<h3 class="entry-format"><?php _e( 'Quote', 'twentyeleven' ); ?></h3>
|
||||||
</hgroup>
|
</hgroup>
|
||||||
|
|
||||||
<div class="entry-meta">
|
<div class="entry-meta">
|
||||||
|
|
|
@ -12,8 +12,8 @@
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
<header class="entry-header">
|
<header class="entry-header">
|
||||||
<hgroup>
|
<hgroup>
|
||||||
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
|
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
|
||||||
<h2 class="entry-format"><?php _e( 'Status', 'twentyeleven' ); ?></h2>
|
<h3 class="entry-format"><?php _e( 'Status', 'twentyeleven' ); ?></h3>
|
||||||
</hgroup>
|
</hgroup>
|
||||||
|
|
||||||
<?php if ( comments_open() ) : ?>
|
<?php if ( comments_open() ) : ?>
|
||||||
|
|
|
@ -12,8 +12,8 @@
|
||||||
<header class="entry-header">
|
<header class="entry-header">
|
||||||
<?php if ( is_sticky() ) : ?>
|
<?php if ( is_sticky() ) : ?>
|
||||||
<hgroup>
|
<hgroup>
|
||||||
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
|
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
|
||||||
<h2 class="entry-format"><?php _e( 'Featured', 'twentyeleven' ); ?></h2>
|
<h3 class="entry-format"><?php _e( 'Featured', 'twentyeleven' ); ?></h3>
|
||||||
</hgroup>
|
</hgroup>
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
|
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
|
||||||
|
|
|
@ -375,8 +375,8 @@ function twentyeleven_widgets_init() {
|
||||||
'id' => 'sidebar-1',
|
'id' => 'sidebar-1',
|
||||||
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
|
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
|
||||||
'after_widget' => "</aside>",
|
'after_widget' => "</aside>",
|
||||||
'before_title' => '<h1 class="widget-title">',
|
'before_title' => '<h3 class="widget-title">',
|
||||||
'after_title' => '</h1>',
|
'after_title' => '</h3>',
|
||||||
) );
|
) );
|
||||||
|
|
||||||
register_sidebar( array(
|
register_sidebar( array(
|
||||||
|
@ -385,8 +385,8 @@ function twentyeleven_widgets_init() {
|
||||||
'description' => __( 'The sidebar for the optional Showcase Template', 'twentyeleven' ),
|
'description' => __( 'The sidebar for the optional Showcase Template', 'twentyeleven' ),
|
||||||
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
|
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
|
||||||
'after_widget' => "</aside>",
|
'after_widget' => "</aside>",
|
||||||
'before_title' => '<h1 class="widget-title">',
|
'before_title' => '<h3 class="widget-title">',
|
||||||
'after_title' => '</h1>',
|
'after_title' => '</h3>',
|
||||||
) );
|
) );
|
||||||
|
|
||||||
register_sidebar( array(
|
register_sidebar( array(
|
||||||
|
@ -395,8 +395,8 @@ function twentyeleven_widgets_init() {
|
||||||
'description' => __( 'An optional widget area for your site footer', 'twentyeleven' ),
|
'description' => __( 'An optional widget area for your site footer', 'twentyeleven' ),
|
||||||
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
|
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
|
||||||
'after_widget' => "</aside>",
|
'after_widget' => "</aside>",
|
||||||
'before_title' => '<h1 class="widget-title">',
|
'before_title' => '<h3 class="widget-title">',
|
||||||
'after_title' => '</h1>',
|
'after_title' => '</h3>',
|
||||||
) );
|
) );
|
||||||
|
|
||||||
register_sidebar( array(
|
register_sidebar( array(
|
||||||
|
@ -405,8 +405,8 @@ function twentyeleven_widgets_init() {
|
||||||
'description' => __( 'An optional widget area for your site footer', 'twentyeleven' ),
|
'description' => __( 'An optional widget area for your site footer', 'twentyeleven' ),
|
||||||
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
|
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
|
||||||
'after_widget' => "</aside>",
|
'after_widget' => "</aside>",
|
||||||
'before_title' => '<h1 class="widget-title">',
|
'before_title' => '<h3 class="widget-title">',
|
||||||
'after_title' => '</h1>',
|
'after_title' => '</h3>',
|
||||||
) );
|
) );
|
||||||
|
|
||||||
register_sidebar( array(
|
register_sidebar( array(
|
||||||
|
@ -415,8 +415,8 @@ function twentyeleven_widgets_init() {
|
||||||
'description' => __( 'An optional widget area for your site footer', 'twentyeleven' ),
|
'description' => __( 'An optional widget area for your site footer', 'twentyeleven' ),
|
||||||
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
|
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
|
||||||
'after_widget' => "</aside>",
|
'after_widget' => "</aside>",
|
||||||
'before_title' => '<h1 class="widget-title">',
|
'before_title' => '<h3 class="widget-title">',
|
||||||
'after_title' => '</h1>',
|
'after_title' => '</h3>',
|
||||||
) );
|
) );
|
||||||
}
|
}
|
||||||
add_action( 'widgets_init', 'twentyeleven_widgets_init' );
|
add_action( 'widgets_init', 'twentyeleven_widgets_init' );
|
||||||
|
@ -429,7 +429,7 @@ function twentyeleven_content_nav( $nav_id ) {
|
||||||
|
|
||||||
if ( $wp_query->max_num_pages > 1 ) : ?>
|
if ( $wp_query->max_num_pages > 1 ) : ?>
|
||||||
<nav id="<?php echo $nav_id; ?>">
|
<nav id="<?php echo $nav_id; ?>">
|
||||||
<h1 class="assistive-text"><?php _e( 'Post navigation', 'twentyeleven' ); ?></h1>
|
<h3 class="assistive-text"><?php _e( 'Post navigation', 'twentyeleven' ); ?></h3>
|
||||||
<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyeleven' ) ); ?></div>
|
<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyeleven' ) ); ?></div>
|
||||||
<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?></div>
|
<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?></div>
|
||||||
</nav><!-- #nav-above -->
|
</nav><!-- #nav-above -->
|
||||||
|
|
|
@ -110,7 +110,7 @@
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<nav id="access" role="navigation">
|
<nav id="access" role="navigation">
|
||||||
<h1 class="assistive-text"><?php _e( 'Main menu', 'twentyeleven' ); ?></h1>
|
<h3 class="assistive-text"><?php _e( 'Main menu', 'twentyeleven' ); ?></h3>
|
||||||
<?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff. */ ?>
|
<?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff. */ ?>
|
||||||
<div class="skip-link"><a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to primary content', 'twentyeleven' ); ?>"><?php _e( 'Skip to primary content', 'twentyeleven' ); ?></a></div>
|
<div class="skip-link"><a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to primary content', 'twentyeleven' ); ?>"><?php _e( 'Skip to primary content', 'twentyeleven' ); ?></a></div>
|
||||||
<div class="skip-link"><a class="assistive-text" href="#secondary" title="<?php esc_attr_e( 'Skip to secondary content', 'twentyeleven' ); ?>"><?php _e( 'Skip to secondary content', 'twentyeleven' ); ?></a></div>
|
<div class="skip-link"><a class="assistive-text" href="#secondary" title="<?php esc_attr_e( 'Skip to secondary content', 'twentyeleven' ); ?>"><?php _e( 'Skip to secondary content', 'twentyeleven' ); ?></a></div>
|
||||||
|
|
|
@ -15,6 +15,7 @@ get_header(); ?>
|
||||||
<?php the_post(); ?>
|
<?php the_post(); ?>
|
||||||
|
|
||||||
<nav id="nav-single">
|
<nav id="nav-single">
|
||||||
|
<h3 class="assistive-text"><?php _e( 'Image navigation', 'twentyeleven' ); ?></h3>
|
||||||
<span class="nav-previous"><?php previous_image_link( false, __( '← Previous' , 'twentyeleven' ) ); ?></span>
|
<span class="nav-previous"><?php previous_image_link( false, __( '← Previous' , 'twentyeleven' ) ); ?></span>
|
||||||
<span class="nav-next"><?php next_image_link( false, __( 'Next →' , 'twentyeleven' ) ); ?></span>
|
<span class="nav-next"><?php next_image_link( false, __( 'Next →' , 'twentyeleven' ) ); ?></span>
|
||||||
</nav><!-- #nav-single -->
|
</nav><!-- #nav-single -->
|
||||||
|
|
|
@ -208,7 +208,7 @@ get_header(); ?>
|
||||||
<?php if ( ! dynamic_sidebar( 'sidebar-2' ) ) : ?>
|
<?php if ( ! dynamic_sidebar( 'sidebar-2' ) ) : ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
the_widget( 'Twenty_Eleven_Ephemera_Widget', '', 'before_title=<h1 class="widget-title">&after_title=</h1>' );
|
the_widget( 'Twenty_Eleven_Ephemera_Widget', '', 'before_title=<h3 class="widget-title">&after_title=</h3>' );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php endif; // end sidebar widget area ?>
|
<?php endif; // end sidebar widget area ?>
|
||||||
|
|
|
@ -16,14 +16,14 @@ if ( 'content' != $current_layout ) :
|
||||||
<?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>
|
<?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>
|
||||||
|
|
||||||
<aside id="archives" class="widget">
|
<aside id="archives" class="widget">
|
||||||
<h1 class="widget-title"><?php _e( 'Archives', 'twentyeleven' ); ?></h1>
|
<h3 class="widget-title"><?php _e( 'Archives', 'twentyeleven' ); ?></h3>
|
||||||
<ul>
|
<ul>
|
||||||
<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
|
<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
|
||||||
</ul>
|
</ul>
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
<aside id="meta" class="widget">
|
<aside id="meta" class="widget">
|
||||||
<h1 class="widget-title"><?php _e( 'Meta', 'twentyeleven' ); ?></h1>
|
<h3 class="widget-title"><?php _e( 'Meta', 'twentyeleven' ); ?></h3>
|
||||||
<ul>
|
<ul>
|
||||||
<?php wp_register(); ?>
|
<?php wp_register(); ?>
|
||||||
<li><?php wp_loginout(); ?></li>
|
<li><?php wp_loginout(); ?></li>
|
||||||
|
|
|
@ -15,15 +15,13 @@ get_header(); ?>
|
||||||
<?php while ( have_posts() ) : the_post(); ?>
|
<?php while ( have_posts() ) : the_post(); ?>
|
||||||
|
|
||||||
<nav id="nav-single">
|
<nav id="nav-single">
|
||||||
<h1 class="assistive-text"><?php _e( 'Post navigation', 'twentyeleven' ); ?></h1>
|
<h3 class="assistive-text"><?php _e( 'Post navigation', 'twentyeleven' ); ?></h3>
|
||||||
<span class="nav-previous"><?php previous_post_link( '%link', __( '← Previous', 'twentyeleven' ) ); ?></span>
|
<span class="nav-previous"><?php previous_post_link( '%link', __( '← Previous', 'twentyeleven' ) ); ?></span>
|
||||||
<span class="nav-next"><?php next_post_link( '%link', __( 'Next →', 'twentyeleven' ) ); ?></span>
|
<span class="nav-next"><?php next_post_link( '%link', __( 'Next →', 'twentyeleven' ) ); ?></span>
|
||||||
</nav><!-- #nav-single -->
|
</nav><!-- #nav-single -->
|
||||||
|
|
||||||
<?php get_template_part( 'content', 'single' ); ?>
|
<?php get_template_part( 'content', 'single' ); ?>
|
||||||
|
|
||||||
<?php twentyeleven_content_nav( 'nav-below' ); ?>
|
|
||||||
|
|
||||||
<?php comments_template( '', true ); ?>
|
<?php comments_template( '', true ); ?>
|
||||||
|
|
||||||
<?php endwhile; // end of the loop. ?>
|
<?php endwhile; // end of the loop. ?>
|
||||||
|
|
Loading…
Reference in New Issue