From 61d042a645df56c4816a8a052d39e807177203b0 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Thu, 2 Aug 2012 19:12:11 +0000 Subject: [PATCH] Twenty Twelve: CSS and markup improvements for better child theme support, part 3. See #21379. * Add classes like `.site` and `.site-content` in addition to the set of IDs already present, making things much better for child themes to have more than one generic element like `nav` inside the content container. * Bump JS version after selector change. * Move `image-attachment` to `post_class()` output More exhaustive notes in the ticket on each id and class change. git-svn-id: https://develop.svn.wordpress.org/trunk@21404 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-content/themes/twentytwelve/404.php | 4 +- wp-content/themes/twentytwelve/archive.php | 4 +- wp-content/themes/twentytwelve/author.php | 4 +- wp-content/themes/twentytwelve/comments.php | 8 +- wp-content/themes/twentytwelve/footer.php | 4 +- .../themes/twentytwelve/full-width-page.php | 4 +- wp-content/themes/twentytwelve/functions.php | 4 +- wp-content/themes/twentytwelve/header.php | 6 +- wp-content/themes/twentytwelve/homepage.php | 4 +- wp-content/themes/twentytwelve/image.php | 8 +- wp-content/themes/twentytwelve/index.php | 4 +- wp-content/themes/twentytwelve/js/theme.js | 8 +- wp-content/themes/twentytwelve/page.php | 4 +- wp-content/themes/twentytwelve/rtl.css | 20 +-- wp-content/themes/twentytwelve/search.php | 4 +- wp-content/themes/twentytwelve/single.php | 8 +- wp-content/themes/twentytwelve/style.css | 128 +++++++++--------- 17 files changed, 113 insertions(+), 113 deletions(-) diff --git a/wp-content/themes/twentytwelve/404.php b/wp-content/themes/twentytwelve/404.php index ad0d1c69bd..8ce2ebd2c8 100644 --- a/wp-content/themes/twentytwelve/404.php +++ b/wp-content/themes/twentytwelve/404.php @@ -9,7 +9,7 @@ get_header(); ?> -
+
@@ -24,6 +24,6 @@ get_header(); ?>
-
+
\ No newline at end of file diff --git a/wp-content/themes/twentytwelve/archive.php b/wp-content/themes/twentytwelve/archive.php index 626f8965bf..3eda7da0b7 100644 --- a/wp-content/themes/twentytwelve/archive.php +++ b/wp-content/themes/twentytwelve/archive.php @@ -14,7 +14,7 @@ get_header(); ?> -
+
@@ -71,7 +71,7 @@ get_header(); ?>
-
+
\ No newline at end of file diff --git a/wp-content/themes/twentytwelve/author.php b/wp-content/themes/twentytwelve/author.php index dab0f6e358..ad1a9369e0 100644 --- a/wp-content/themes/twentytwelve/author.php +++ b/wp-content/themes/twentytwelve/author.php @@ -9,7 +9,7 @@ get_header(); ?> -
+
@@ -64,7 +64,7 @@ get_header(); ?>
-
+
\ No newline at end of file diff --git a/wp-content/themes/twentytwelve/comments.php b/wp-content/themes/twentytwelve/comments.php index 6ce8659a52..c314d81533 100644 --- a/wp-content/themes/twentytwelve/comments.php +++ b/wp-content/themes/twentytwelve/comments.php @@ -21,12 +21,12 @@ if ( post_password_required() ) return; ?> -
+
-

+

' . get_the_title() . '' ); @@ -38,7 +38,7 @@ 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> -

\ No newline at end of file +
\ No newline at end of file diff --git a/wp-content/themes/twentytwelve/footer.php b/wp-content/themes/twentytwelve/footer.php index 7314bc8999..f53ae6aba9 100644 --- a/wp-content/themes/twentytwelve/footer.php +++ b/wp-content/themes/twentytwelve/footer.php @@ -9,14 +9,14 @@ * @since Twenty Twelve 1.0 */ ?> - + - + diff --git a/wp-content/themes/twentytwelve/full-width-page.php b/wp-content/themes/twentytwelve/full-width-page.php index fbc7a781eb..9217730e79 100644 --- a/wp-content/themes/twentytwelve/full-width-page.php +++ b/wp-content/themes/twentytwelve/full-width-page.php @@ -9,7 +9,7 @@ get_header(); ?> -
+
@@ -18,6 +18,6 @@ get_header(); ?>
-
+
\ No newline at end of file diff --git a/wp-content/themes/twentytwelve/functions.php b/wp-content/themes/twentytwelve/functions.php index a7c87e7288..04fd34b546 100644 --- a/wp-content/themes/twentytwelve/functions.php +++ b/wp-content/themes/twentytwelve/functions.php @@ -104,7 +104,7 @@ function twentytwelve_scripts_styles() { * JavaScript for handling navigation menus and the resized * styles for small screen sizes. */ - wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/theme.js', array( 'jquery' ), '20130320', true ); + wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/theme.js', array( 'jquery' ), '20120802', true ); /** * Load special font CSS file. @@ -214,7 +214,7 @@ function twentytwelve_content_nav( $nav_id ) { global $wp_query; if ( $wp_query->max_num_pages > 1 ) : ?> -