diff --git a/wp-content/themes/twentytwelve/404.php b/wp-content/themes/twentytwelve/404.php index db3ef811b27eff6f185333e91eda9a2f91e768d4..8b039ecee4f620f71b2ed5491bfbb199e7d76cda 100644 --- a/wp-content/themes/twentytwelve/404.php +++ b/wp-content/themes/twentytwelve/404.php @@ -26,4 +26,4 @@ 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 78314cfb8f63dd1235eb52b4ba5aaa8412673caf..edd947ef061266ec313777fe89d73f7127b5a497 100644 --- a/wp-content/themes/twentytwelve/archive.php +++ b/wp-content/themes/twentytwelve/archive.php @@ -24,9 +24,10 @@ get_header(); ?>
-

' . get_the_date() . '' ); +

+ ' . get_the_date() . '' ); elseif ( is_month() ) : printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '' ); elseif ( is_year() ) : @@ -34,12 +35,14 @@ get_header(); ?> else : _e( 'Archives', 'twentytwelve' ); endif; - ?>

+ ?> +
+ if ( get_the_author_meta( 'description' ) ) : + ?>
- + diff --git a/wp-content/themes/twentytwelve/category.php b/wp-content/themes/twentytwelve/category.php index 458063066d365ebd24cfefea53c41829c309449b..0625a7d6c2201fe9db74c551329e592588e91f1a 100644 --- a/wp-content/themes/twentytwelve/category.php +++ b/wp-content/themes/twentytwelve/category.php @@ -27,7 +27,8 @@ get_header(); ?>
@@ -28,13 +29,23 @@ if ( post_password_required() )

' . get_the_title() . '' ); + printf( + _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentytwelve' ), + number_format_i18n( get_comments_number() ), + '' . get_the_title() . '' + ); ?>

    - 'twentytwelve_comment', 'style' => 'ol' ) ); ?> + 'twentytwelve_comment', + 'style' => 'ol', + ) + ); + ?>
1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> @@ -49,12 +60,13 @@ if ( post_password_required() ) /* If there are no comments and comments are closed, let's leave a note. * But we only want the note on posts and pages that had comments in the first place. */ - if ( ! comments_open() && get_comments_number() ) : ?> -

+ if ( ! comments_open() && get_comments_number() ) : + ?> +

-
\ No newline at end of file +
diff --git a/wp-content/themes/twentytwelve/content-page.php b/wp-content/themes/twentytwelve/content-page.php index 0abcbf79112ead52c65fe0dc2d43b0e5fc50e5de..3511b75f353927cb151b9ea7cf0f1752ab8af522 100644 --- a/wp-content/themes/twentytwelve/content-page.php +++ b/wp-content/themes/twentytwelve/content-page.php @@ -11,14 +11,21 @@
>
- +

- '' ) ); ?> + '', + ) + ); + ?>
- + endif; + ?>

@@ -42,7 +44,14 @@
→', 'twentytwelve' ) ); ?> - '' ) ); ?> + '', + ) + ); + ?>
diff --git a/wp-content/themes/twentytwelve/css/blocks.css b/wp-content/themes/twentytwelve/css/blocks.css index a03cef640cf8a87630e2f312b338585f2a0ab2f1..f72a61b761bfb2e12582f5ddc106b5e1763131c1 100644 --- a/wp-content/themes/twentytwelve/css/blocks.css +++ b/wp-content/themes/twentytwelve/css/blocks.css @@ -99,13 +99,13 @@ p.has-drop-cap:not(:focus)::first-letter { .wp-block-quote:not(.is-large):not(.is-style-large) { border: 0; - padding: 1.714285714rem; padding: 24px; + padding: 1.714285714rem; } .wp-block-quote { - padding: 1.714285714rem; padding: 24px; + padding: 1.714285714rem; } .wp-block-quote cite { @@ -246,7 +246,6 @@ pre.wp-block-code { .wp-block-button .wp-block-button__link { border: 1px solid #d2d2d2; - border-radius: 3px; font-family: inherit; font-size: 11px; font-size: 0.785714286rem; @@ -262,6 +261,12 @@ pre.wp-block-code { color: #7c7c7c; } +.wp-block-button.is-style-outline .wp-block-button__link, +.wp-block-button.is-style-outline .wp-block-button__link:visited { + background-color: inherit; + border-color: inherit; +} + .entry-content .wp-block-button__link:hover, .entry-content .wp-block-button__link:visited:hover, .entry-content .wp-block-button__link:focus { @@ -274,7 +279,7 @@ pre.wp-block-code { color: #757575; } -.wp-block-button__link:not(.has-background) { +.wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background) { background-repeat: repeat-x; background-image: -moz-linear-gradient(top, #f4f4f4, #e6e6e6); background-image: -ms-linear-gradient(top, #f4f4f4, #e6e6e6); diff --git a/wp-content/themes/twentytwelve/css/editor-blocks.css b/wp-content/themes/twentytwelve/css/editor-blocks.css index 99be72d4d52fc72ebc62989037ab5977d02a9a76..bd5313b4684e74ff6afa662e976914c46fc22b85 100644 --- a/wp-content/themes/twentytwelve/css/editor-blocks.css +++ b/wp-content/themes/twentytwelve/css/editor-blocks.css @@ -234,8 +234,7 @@ p.has-drop-cap:not(:focus)::first-letter { text-decoration: underline; } -.wp-block-file .wp-block-file__button, -.wp-block-button .wp-block-file__button:hover { +.wp-block-file .wp-block-file__button { background-color: #e6e6e6; background-repeat: repeat-x; background-image: -moz-linear-gradient(top, #f4f4f4, #e6e6e6); @@ -342,7 +341,6 @@ p.has-drop-cap:not(:focus)::first-letter { .wp-block-button .wp-block-button__link { border: 1px solid #d2d2d2; - border-radius: 3px; font-family: inherit; font-size: 11px; font-weight: normal; @@ -358,7 +356,12 @@ p.has-drop-cap:not(:focus)::first-letter { box-shadow: 0 1px 2px rgba(64, 64, 64, 0.1); } -.wp-block-button .wp-block-button__link:not(.has-background) { +.wp-block-button.is-style-outline .wp-block-button__link { + background-color: inherit; + border-color: inherit; +} + +.wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background) { background-image: -moz-linear-gradient(top, #f4f4f4, #e6e6e6); background-image: -ms-linear-gradient(top, #f4f4f4, #e6e6e6); background-image: -webkit-linear-gradient(top, #f4f4f4, #e6e6e6); diff --git a/wp-content/themes/twentytwelve/footer.php b/wp-content/themes/twentytwelve/footer.php index 1ea06058fa0d91f857ebec4317d6dec606fe738b..05e52e2bd86ae046059def50959d09ba84b8ca01 100644 --- a/wp-content/themes/twentytwelve/footer.php +++ b/wp-content/themes/twentytwelve/footer.php @@ -27,4 +27,4 @@ - \ No newline at end of file + diff --git a/wp-content/themes/twentytwelve/functions.php b/wp-content/themes/twentytwelve/functions.php index 39e887028b8cd167b8a4032b84a3c6b961268cfb..95a7299a73be774ef066c9df3562c58263cb27fe 100644 --- a/wp-content/themes/twentytwelve/functions.php +++ b/wp-content/themes/twentytwelve/functions.php @@ -23,8 +23,9 @@ */ // Set up the content width value based on the theme's design and stylesheet. -if ( ! isset( $content_width ) ) +if ( ! isset( $content_width ) ) { $content_width = 625; +} /** * Twenty Twelve setup. @@ -35,7 +36,7 @@ if ( ! isset( $content_width ) ) * @uses load_theme_textdomain() For translation/localization support. * @uses add_editor_style() To add a Visual Editor stylesheet. * @uses add_theme_support() To add support for post thumbnails, automatic feed links, - * custom background, and post formats. + * custom background, and post formats. * @uses register_nav_menu() To add support for navigation menus. * @uses set_post_thumbnail_size() To set a custom post thumbnail size. * @@ -64,33 +65,36 @@ function twentytwelve_setup() { add_theme_support( 'responsive-embeds' ); // Add support for custom color scheme. - add_theme_support( 'editor-color-palette', array( - array( - 'name' => __( 'Blue', 'twentytwelve' ), - 'slug' => 'blue', - 'color' => '#21759b', - ), - array( - 'name' => __( 'Dark Gray', 'twentytwelve' ), - 'slug' => 'dark-gray', - 'color' => '#444', - ), + add_theme_support( + 'editor-color-palette', array( - 'name' => __( 'Medium Gray', 'twentytwelve' ), - 'slug' => 'medium-gray', - 'color' => '#9f9f9f', - ), - array( - 'name' => __( 'Light Gray', 'twentytwelve' ), - 'slug' => 'light-gray', - 'color' => '#e6e6e6', - ), - array( - 'name' => __( 'White', 'twentytwelve' ), - 'slug' => 'white', - 'color' => '#fff', - ), - ) ); + array( + 'name' => __( 'Blue', 'twentytwelve' ), + 'slug' => 'blue', + 'color' => '#21759b', + ), + array( + 'name' => __( 'Dark Gray', 'twentytwelve' ), + 'slug' => 'dark-gray', + 'color' => '#444', + ), + array( + 'name' => __( 'Medium Gray', 'twentytwelve' ), + 'slug' => 'medium-gray', + 'color' => '#9f9f9f', + ), + array( + 'name' => __( 'Light Gray', 'twentytwelve' ), + 'slug' => 'light-gray', + 'color' => '#e6e6e6', + ), + array( + 'name' => __( 'White', 'twentytwelve' ), + 'slug' => 'white', + 'color' => '#fff', + ), + ) + ); // Adds RSS feed links to for posts and comments. add_theme_support( 'automatic-feed-links' ); @@ -105,9 +109,12 @@ function twentytwelve_setup() { * This theme supports custom background color and image, * and here we also set up the default background color. */ - add_theme_support( 'custom-background', array( - 'default-color' => 'e6e6e6', - ) ); + add_theme_support( + 'custom-background', + array( + 'default-color' => 'e6e6e6', + ) + ); // This theme uses a custom image size for featured images, displayed on "standard" posts. add_theme_support( 'post-thumbnails' ); @@ -147,18 +154,19 @@ function twentytwelve_get_font_url() { */ $subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'twentytwelve' ); - if ( 'cyrillic' == $subset ) + if ( 'cyrillic' == $subset ) { $subsets .= ',cyrillic,cyrillic-ext'; - elseif ( 'greek' == $subset ) + } elseif ( 'greek' == $subset ) { $subsets .= ',greek,greek-ext'; - elseif ( 'vietnamese' == $subset ) + } elseif ( 'vietnamese' == $subset ) { $subsets .= ',vietnamese'; + } $query_args = array( 'family' => 'Open+Sans:400italic,700italic,400,700', 'subset' => $subsets, ); - $font_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' ); + $font_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' ); } return $font_url; @@ -176,21 +184,23 @@ function twentytwelve_scripts_styles() { * Adds JavaScript to pages with the comment form to support * sites with threaded comments (when in use). */ - if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) + if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); + } // Adds JavaScript for handling the navigation menu hide-and-show behavior. wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array( 'jquery' ), '20140711', true ); $font_url = twentytwelve_get_font_url(); - if ( ! empty( $font_url ) ) + if ( ! empty( $font_url ) ) { wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $font_url ), array(), null ); + } // Loads our main stylesheet. wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri() ); // Theme block stylesheet. - wp_enqueue_style( 'twentytwelve-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentytwelve-style' ), '20181018' ); + wp_enqueue_style( 'twentytwelve-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentytwelve-style' ), '20181230' ); // Loads the Internet Explorer specific stylesheet. wp_enqueue_style( 'twentytwelve-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentytwelve-style' ), '20121010' ); @@ -205,7 +215,7 @@ add_action( 'wp_enqueue_scripts', 'twentytwelve_scripts_styles' ); */ function twentytwelve_block_editor_styles() { // Block styles. - wp_enqueue_style( 'twentytwelve-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css' ); + wp_enqueue_style( 'twentytwelve-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20181230' ); // Add custom fonts. wp_enqueue_style( 'twentytwelve-fonts', twentytwelve_get_font_url(), array(), null ); } @@ -251,11 +261,13 @@ add_filter( 'wp_resource_hints', 'twentytwelve_resource_hints', 10, 2 ); function twentytwelve_mce_css( $mce_css ) { $font_url = twentytwelve_get_font_url(); - if ( empty( $font_url ) ) + if ( empty( $font_url ) ) { return $mce_css; + } - if ( ! empty( $mce_css ) ) + if ( ! empty( $mce_css ) ) { $mce_css .= ','; + } $mce_css .= esc_url_raw( str_replace( ',', '%2C', $font_url ) ); @@ -278,20 +290,23 @@ add_filter( 'mce_css', 'twentytwelve_mce_css' ); function twentytwelve_wp_title( $title, $sep ) { global $paged, $page; - if ( is_feed() ) + if ( is_feed() ) { return $title; + } // Add the site name. $title .= get_bloginfo( 'name', 'display' ); // Add the site description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); - if ( $site_description && ( is_home() || is_front_page() ) ) + if ( $site_description && ( is_home() || is_front_page() ) ) { $title = "$title $sep $site_description"; + } // Add a page number if necessary. - if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) + if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) { $title = "$title $sep " . sprintf( __( 'Page %s', 'twentytwelve' ), max( $paged, $page ) ); + } return $title; } @@ -305,8 +320,9 @@ add_filter( 'wp_title', 'twentytwelve_wp_title', 10, 2 ); * @since Twenty Twelve 1.0 */ function twentytwelve_page_menu_args( $args ) { - if ( ! isset( $args['show_home'] ) ) + if ( ! isset( $args['show_home'] ) ) { $args['show_home'] = true; + } return $args; } add_filter( 'wp_page_menu_args', 'twentytwelve_page_menu_args' ); @@ -319,168 +335,191 @@ add_filter( 'wp_page_menu_args', 'twentytwelve_page_menu_args' ); * @since Twenty Twelve 1.0 */ function twentytwelve_widgets_init() { - register_sidebar( array( - 'name' => __( 'Main Sidebar', 'twentytwelve' ), - 'id' => 'sidebar-1', - 'description' => __( 'Appears on posts and pages except the optional Front Page template, which has its own widgets', 'twentytwelve' ), - 'before_widget' => '', - 'before_title' => '

', - 'after_title' => '

', - ) ); - - register_sidebar( array( - 'name' => __( 'First Front Page Widget Area', 'twentytwelve' ), - 'id' => 'sidebar-2', - 'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ), - 'before_widget' => '', - 'before_title' => '

', - 'after_title' => '

', - ) ); - - register_sidebar( array( - 'name' => __( 'Second Front Page Widget Area', 'twentytwelve' ), - 'id' => 'sidebar-3', - 'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ), - 'before_widget' => '', - 'before_title' => '

', - 'after_title' => '

', - ) ); + register_sidebar( + array( + 'name' => __( 'Main Sidebar', 'twentytwelve' ), + 'id' => 'sidebar-1', + 'description' => __( 'Appears on posts and pages except the optional Front Page template, which has its own widgets', 'twentytwelve' ), + 'before_widget' => '', + 'before_title' => '

', + 'after_title' => '

', + ) + ); + + register_sidebar( + array( + 'name' => __( 'First Front Page Widget Area', 'twentytwelve' ), + 'id' => 'sidebar-2', + 'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ), + 'before_widget' => '', + 'before_title' => '

', + 'after_title' => '

', + ) + ); + + register_sidebar( + array( + 'name' => __( 'Second Front Page Widget Area', 'twentytwelve' ), + 'id' => 'sidebar-3', + 'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ), + 'before_widget' => '', + 'before_title' => '

', + 'after_title' => '

', + ) + ); } add_action( 'widgets_init', 'twentytwelve_widgets_init' ); if ( ! function_exists( 'twentytwelve_content_nav' ) ) : -/** - * Displays navigation to next/previous pages when applicable. - * - * @since Twenty Twelve 1.0 - */ -function twentytwelve_content_nav( $html_id ) { - global $wp_query; - - if ( $wp_query->max_num_pages > 1 ) : ?> - - max_num_pages > 1 ) : ?> + + comment_type ) : - case 'pingback' : - case 'trackback' : - // Display trackbacks differently than normal comments. - ?> -
  • id="comment-"> + /** + * Template for comments and pingbacks. + * + * To override this walker in a child theme without modifying the comments template + * simply create your own twentytwelve_comment(), and that function will be used instead. + * + * Used as a callback by wp_list_comments() for displaying the comments. + * + * @since Twenty Twelve 1.0 + */ + function twentytwelve_comment( $comment, $args, $depth ) { + $GLOBALS['comment'] = $comment; + switch ( $comment->comment_type ) : + case 'pingback': + case 'trackback': + // Display trackbacks differently than normal comments. + ?> +
  • id="comment-">

    ', '' ); ?>

    - -
  • id="li-comment-"> + +
  • id="li-comment-">
    %1$s %2$s', + printf( + '%1$s %2$s', get_comment_author_link(), // If current post author is also comment author, make it known visually. ( $comment->user_id === $post->post_author ) ? '' . __( 'Post author', 'twentytwelve' ) . '' : '' ); - printf( '', + printf( + '', 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 ) : ?> + comment_approved ) : ?>

    -
    +
    ', '

    ' ); ?> -
    - -
    - __( 'Reply', 'twentytwelve' ), 'after' => ' ', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> -
    - - + +
    + __( 'Reply', 'twentytwelve' ), + 'after' => ' ', + 'depth' => $depth, + 'max_depth' => $args['max_depth'], + ) + ) + ); + ?> +
    + + ', - esc_url( get_permalink() ), - esc_attr( get_the_time() ), - esc_attr( get_the_date( 'c' ) ), - esc_html( get_the_date() ) - ); + /** + * Set up post entry meta. + * + * Prints HTML with meta information for current post: categories, tags, permalink, author, and date. + * + * Create your own twentytwelve_entry_meta() to override in a child theme. + * + * @since Twenty Twelve 1.0 + */ + function twentytwelve_entry_meta() { + // Translators: used between list items, there is a space after the comma. + $categories_list = get_the_category_list( __( ', ', 'twentytwelve' ) ); + + // Translators: used between list items, there is a space after the comma. + $tag_list = get_the_tag_list( '', __( ', ', 'twentytwelve' ) ); + + $date = sprintf( + '', + esc_url( get_permalink() ), + esc_attr( get_the_time() ), + esc_attr( get_the_date( 'c' ) ), + esc_html( get_the_date() ) + ); - $author = sprintf( '', - 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() - ); + $author = sprintf( + '', + 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() + ); - // Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name. - if ( $tag_list ) { - $utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s by %4$s.', 'twentytwelve' ); - } elseif ( $categories_list ) { - $utility_text = __( 'This entry was posted in %1$s on %3$s by %4$s.', 'twentytwelve' ); - } else { - $utility_text = __( 'This entry was posted on %3$s by %4$s.', 'twentytwelve' ); - } + // Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name. + if ( $tag_list ) { + $utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s by %4$s.', 'twentytwelve' ); + } elseif ( $categories_list ) { + $utility_text = __( 'This entry was posted in %1$s on %3$s by %4$s.', 'twentytwelve' ); + } else { + $utility_text = __( 'This entry was posted on %3$s by %4$s.', 'twentytwelve' ); + } - printf( - $utility_text, - $categories_list, - $tag_list, - $date, - $author - ); -} + printf( + $utility_text, + $categories_list, + $tag_list, + $date, + $author + ); + } endif; /** @@ -504,30 +543,36 @@ function twentytwelve_body_class( $classes ) { $background_color = get_background_color(); $background_image = get_background_image(); - if ( ! is_active_sidebar( 'sidebar-1' ) || is_page_template( 'page-templates/full-width.php' ) ) + if ( ! is_active_sidebar( 'sidebar-1' ) || is_page_template( 'page-templates/full-width.php' ) ) { $classes[] = 'full-width'; + } if ( is_page_template( 'page-templates/front-page.php' ) ) { $classes[] = 'template-front-page'; - if ( has_post_thumbnail() ) + if ( has_post_thumbnail() ) { $classes[] = 'has-post-thumbnail'; - if ( is_active_sidebar( 'sidebar-2' ) && is_active_sidebar( 'sidebar-3' ) ) + } + if ( is_active_sidebar( 'sidebar-2' ) && is_active_sidebar( 'sidebar-3' ) ) { $classes[] = 'two-sidebars'; + } } if ( empty( $background_image ) ) { - if ( empty( $background_color ) ) + if ( empty( $background_color ) ) { $classes[] = 'custom-background-empty'; - elseif ( in_array( $background_color, array( 'fff', 'ffffff' ) ) ) + } elseif ( in_array( $background_color, array( 'fff', 'ffffff' ) ) ) { $classes[] = 'custom-background-white'; + } } // Enable custom font class only if the font CSS is queued to load. - if ( wp_style_is( 'twentytwelve-fonts', 'queue' ) ) + if ( wp_style_is( 'twentytwelve-fonts', 'queue' ) ) { $classes[] = 'custom-font-enabled'; + } - if ( ! is_multi_author() ) + if ( ! is_multi_author() ) { $classes[] = 'single-author'; + } return $classes; } @@ -564,16 +609,22 @@ function twentytwelve_customize_register( $wp_customize ) { $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; if ( isset( $wp_customize->selective_refresh ) ) { - $wp_customize->selective_refresh->add_partial( 'blogname', array( - 'selector' => '.site-title > a', - 'container_inclusive' => false, - 'render_callback' => 'twentytwelve_customize_partial_blogname', - ) ); - $wp_customize->selective_refresh->add_partial( 'blogdescription', array( - 'selector' => '.site-description', - 'container_inclusive' => false, - 'render_callback' => 'twentytwelve_customize_partial_blogdescription', - ) ); + $wp_customize->selective_refresh->add_partial( + 'blogname', + array( + 'selector' => '.site-title > a', + 'container_inclusive' => false, + 'render_callback' => 'twentytwelve_customize_partial_blogname', + ) + ); + $wp_customize->selective_refresh->add_partial( + 'blogdescription', + array( + 'selector' => '.site-description', + 'container_inclusive' => false, + 'render_callback' => 'twentytwelve_customize_partial_blogdescription', + ) + ); } } add_action( 'customize_register', 'twentytwelve_customize_register' ); diff --git a/wp-content/themes/twentytwelve/header.php b/wp-content/themes/twentytwelve/header.php index c3b99d6f3d730087a2effa5fd6acbc78fe6d64e0..cbd555c31c074fec2f4d0f02176f482c99c747c6 100644 --- a/wp-content/themes/twentytwelve/header.php +++ b/wp-content/themes/twentytwelve/header.php @@ -42,7 +42,14 @@ @@ -50,4 +57,4 @@ -
    \ No newline at end of file +
    diff --git a/wp-content/themes/twentytwelve/image.php b/wp-content/themes/twentytwelve/image.php index 976e017d50a3f532db275faffe929c5ee77ba782..76d3a549a68862b813520fc263d5621ee3280407 100644 --- a/wp-content/themes/twentytwelve/image.php +++ b/wp-content/themes/twentytwelve/image.php @@ -14,7 +14,10 @@ get_header(); ?>
    - +
    >
    @@ -23,7 +26,8 @@ get_header(); ?>
    - \ No newline at end of file + diff --git a/wp-content/themes/twentytwelve/sidebar-front.php b/wp-content/themes/twentytwelve/sidebar-front.php index 990a09fec372644e23dbf34d5545345e2c99b6e4..5f1193537d9d8d69db574c04cd4605874890e6fc 100644 --- a/wp-content/themes/twentytwelve/sidebar-front.php +++ b/wp-content/themes/twentytwelve/sidebar-front.php @@ -15,8 +15,9 @@ * * If none of the sidebars have widgets, then let's bail early. */ -if ( ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) ) +if ( ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) ) { return; +} // If we get this far, we have widgets. Let do this. ?> @@ -32,4 +33,4 @@ if ( ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) ) - \ No newline at end of file + diff --git a/wp-content/themes/twentytwelve/sidebar.php b/wp-content/themes/twentytwelve/sidebar.php index a59dcc49b0a59a91def213ade2bea882dd68abc3..ca9dbddb7a037239f5659b41a1d89b944bad0426 100644 --- a/wp-content/themes/twentytwelve/sidebar.php +++ b/wp-content/themes/twentytwelve/sidebar.php @@ -14,4 +14,4 @@ - \ No newline at end of file + diff --git a/wp-content/themes/twentytwelve/single.php b/wp-content/themes/twentytwelve/single.php index 38175246f11a559c46922a92a5a597370207f7d0..10165cec3935f6d09ca3849be4a805689240da4d 100644 --- a/wp-content/themes/twentytwelve/single.php +++ b/wp-content/themes/twentytwelve/single.php @@ -12,7 +12,10 @@ get_header(); ?>
    - + @@ -30,4 +33,4 @@ get_header(); ?>
    - \ No newline at end of file + diff --git a/wp-content/themes/twentytwelve/style.css b/wp-content/themes/twentytwelve/style.css index b8f55546afbf314d09e16e1596cd485500c0d03b..3d59ad7332bfa8aa9bac56fab0f4611b58c17904 100644 --- a/wp-content/themes/twentytwelve/style.css +++ b/wp-content/themes/twentytwelve/style.css @@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentytwelve/ Author: the WordPress team Author URI: https://wordpress.org/ Description: The 2012 theme for WordPress is a fully responsive theme that looks great on any device. Features include a front page template with its own widgets, an optional display font, styling for post formats on both index and single views, and an optional no-sidebar page template. Make it yours with a custom menu, header image, and background. -Version: 2.7 +Version: 2.8 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: blog, one-column, two-columns, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready diff --git a/wp-content/themes/twentytwelve/tag.php b/wp-content/themes/twentytwelve/tag.php index 7715302ca16fe9304747164977a85743851179c6..515521c789c74153d40125553d7e94211cdf3404 100644 --- a/wp-content/themes/twentytwelve/tag.php +++ b/wp-content/themes/twentytwelve/tag.php @@ -27,7 +27,8 @@ get_header(); ?>