diff --git a/wp-content/themes/twentythirteen/footer.php b/wp-content/themes/twentythirteen/footer.php index 6dc4f94b3bb5ebfba14b10a3f8848539c56bcddf..40fbc34bc15815e2fd4c03d67fbb3755d30f4b95 100644 --- a/wp-content/themes/twentythirteen/footer.php +++ b/wp-content/themes/twentythirteen/footer.php @@ -16,7 +16,7 @@ <div class="site-info"> <?php do_action( 'twentythirteen_credits' ); ?> - <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentythirteen' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentythirteen' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentythirteen' ), 'WordPress' ); ?></a> + <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentythirteen' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentythirteen' ), 'WordPress' ); ?></a> </div><!-- .site-info --> </footer><!-- #colophon --> </div><!-- #page --> diff --git a/wp-content/themes/twentythirteen/functions.php b/wp-content/themes/twentythirteen/functions.php index e87761f2233b174076bca6fdf85c0d16735d268e..e1f27ad09b51c5c30f264fc8a0c1db84fe9c9ba8 100644 --- a/wp-content/themes/twentythirteen/functions.php +++ b/wp-content/themes/twentythirteen/functions.php @@ -105,6 +105,9 @@ function twentythirteen_setup() { // This theme uses its own gallery styles. add_filter( 'use_default_gallery_style', '__return_false' ); + + // Indicate widget sidebars can use selective refresh in the Customizer. + add_theme_support( 'customize-selective-refresh-widgets' ); } add_action( 'after_setup_theme', 'twentythirteen_setup' ); @@ -283,9 +286,9 @@ endif; if ( ! function_exists( 'twentythirteen_post_nav' ) ) : /** * Display navigation to next/previous post when applicable. -* -* @since Twenty Thirteen 1.0 -*/ + * + * @since Twenty Thirteen 1.0 + */ function twentythirteen_post_nav() { global $post; @@ -535,9 +538,46 @@ function twentythirteen_customize_register( $wp_customize ) { $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $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', + 'container_inclusive' => false, + 'render_callback' => 'twentythirteen_customize_partial_blogname', + ) ); + $wp_customize->selective_refresh->add_partial( 'blogdescription', array( + 'selector' => '.site-description', + 'container_inclusive' => false, + 'render_callback' => 'twentythirteen_customize_partial_blogdescription', + ) ); + } } add_action( 'customize_register', 'twentythirteen_customize_register' ); +/** + * Render the site title for the selective refresh partial. + * + * @since Twenty Thirteen 1.9 + * @see twentythirteen_customize_register() + * + * @return void + */ +function twentythirteen_customize_partial_blogname() { + bloginfo( 'name' ); +} + +/** + * Render the site tagline for the selective refresh partial. + * + * @since Twenty Thirteen 1.9 + * @see twentythirteen_customize_register() + * + * @return void + */ +function twentythirteen_customize_partial_blogdescription() { + bloginfo( 'description' ); +} + /** * Enqueue Javascript postMessage handlers for the Customizer. * diff --git a/wp-content/themes/twentythirteen/image.php b/wp-content/themes/twentythirteen/image.php index 9f5f29b4710b63a6f84ca87394db3a6e96a43454..c29caedf602edc9d37544ac37db691ca04cd5b59 100644 --- a/wp-content/themes/twentythirteen/image.php +++ b/wp-content/themes/twentythirteen/image.php @@ -13,6 +13,12 @@ get_header(); ?> <div id="primary" class="content-area"> <div id="content" class="site-content" role="main"> + + <?php + // Start the Loop. + while ( have_posts() ) : the_post(); + ?> + <article id="post-<?php the_ID(); ?>" <?php post_class( 'image-attachment' ); ?>> <header class="entry-header"> <h1 class="entry-title"><?php the_title(); ?></h1> @@ -76,6 +82,8 @@ get_header(); ?> <?php comments_template(); ?> + <?php endwhile; // End the loop. ?> + </div><!-- #content --> </div><!-- #primary --> diff --git a/wp-content/themes/twentythirteen/inc/custom-header.php b/wp-content/themes/twentythirteen/inc/custom-header.php index 6a9a6adc5eb7f4e381bf9a4f281816fc48f6785b..9e40bfe062e6533b9a2ed68d43a20fa894268fa0 100644 --- a/wp-content/themes/twentythirteen/inc/custom-header.php +++ b/wp-content/themes/twentythirteen/inc/custom-header.php @@ -13,7 +13,7 @@ * Set up the WordPress core custom header arguments and settings. * * @uses add_theme_support() to register support for 3.4 and up. - * @uses twentythirteen_header_style() to style front-end. + * @uses twentythirteen_header_style() to style front end. * @uses twentythirteen_admin_header_style() to style wp-admin form. * @uses twentythirteen_admin_header_image() to add custom markup to wp-admin form. * @uses register_default_headers() to set up the bundled header images. diff --git a/wp-content/themes/twentythirteen/js/functions.js b/wp-content/themes/twentythirteen/js/functions.js index fa8160d53a237f1f0f040ffabb1040d4d2ef0006..e0d759b9cb28666f57bf2b630b653c5b2d2ea18a 100644 --- a/wp-content/themes/twentythirteen/js/functions.js +++ b/wp-content/themes/twentythirteen/js/functions.js @@ -34,12 +34,12 @@ * Enables menu toggle for small screens. */ ( function() { - if ( ! nav || ! button ) { + if ( ! nav.length || ! button.length ) { return; } // Hide button if menu is missing or empty. - if ( ! menu || ! menu.children().length ) { + if ( ! menu.length || ! menu.children().length ) { button.hide(); return; } @@ -120,13 +120,42 @@ * Arranges footer widgets vertically. */ if ( $.isFunction( $.fn.masonry ) ) { - var columnWidth = body.is( '.sidebar' ) ? 228 : 245; + var columnWidth = body.is( '.sidebar' ) ? 228 : 245, + widgetArea = $( '#secondary .widget-area' ); - $( '#secondary .widget-area' ).masonry( { + widgetArea.masonry( { itemSelector: '.widget', columnWidth: columnWidth, gutterWidth: 20, isRTL: body.is( '.rtl' ) } ); + + if ( 'undefined' !== typeof wp && wp.customize && wp.customize.selectiveRefresh ) { + + // Retain previous masonry-brick initial position. + wp.customize.selectiveRefresh.bind( 'partial-content-rendered', function( placement ) { + var copyPosition = ( + placement.partial.extended( wp.customize.widgetsPreview.WidgetPartial ) && + placement.removedNodes instanceof jQuery && + placement.removedNodes.is( '.masonry-brick' ) && + placement.container instanceof jQuery + ); + if ( copyPosition ) { + placement.container.css( { + position: placement.removedNodes.css( 'position' ), + top: placement.removedNodes.css( 'top' ), + left: placement.removedNodes.css( 'left' ) + } ); + } + } ); + + // Re-arrange footer widgets when sidebar is updated via selective refresh in the Customizer. + wp.customize.selectiveRefresh.bind( 'sidebar-updated', function( sidebarPartial ) { + if ( 'sidebar-1' === sidebarPartial.sidebarId ) { + widgetArea.masonry( 'reloadItems' ); + widgetArea.masonry( 'layout' ); + } + } ); + } } } )( jQuery ); \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/languages/twentythirteen.pot b/wp-content/themes/twentythirteen/languages/twentythirteen.pot index 7706373e65c777493bb06e2ae770554e69c398c4..068c37a5682ee45451ba4815309336879c730681 100644 --- a/wp-content/themes/twentythirteen/languages/twentythirteen.pot +++ b/wp-content/themes/twentythirteen/languages/twentythirteen.pot @@ -1,14 +1,14 @@ -# Copyright (C) 2015 the WordPress team +# Copyright (C) 2016 the WordPress team # This file is distributed under the GNU General Public License v2 or later. msgid "" msgstr "" -"Project-Id-Version: Twenty Thirteen 1.6\n" +"Project-Id-Version: Twenty Thirteen 1.9\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/theme/twentythirteen\n" -"POT-Creation-Date: 2015-07-27 19:47:38+00:00\n" +"POT-Creation-Date: 2016-04-05 09:48:39+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"PO-Revision-Date: 2015-MO-DA HO:MI+ZONE\n" +"PO-Revision-Date: 2016-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -93,21 +93,21 @@ msgstr "" #: content-aside.php:16 content-audio.php:27 content-chat.php:26 #: content-gallery.php:27 content-image.php:26 content-link.php:27 #: content-quote.php:16 content-status.php:16 content-video.php:26 -#: content.php:44 functions.php:478 +#: content.php:44 functions.php:481 msgid "Continue reading %s <span class=\"meta-nav\">→</span>" msgstr "" #: content-aside.php:20 content-audio.php:31 content-chat.php:30 #: content-gallery.php:31 content-image.php:30 content-link.php:31 #: content-quote.php:20 content-status.php:20 content-video.php:30 -#: content.php:48 image.php:70 page.php:35 +#: content.php:48 image.php:76 page.php:35 msgid "Pages:" msgstr "" #: content-aside.php:27 content-aside.php:35 content-audio.php:38 #: content-chat.php:36 content-gallery.php:46 content-image.php:42 #: content-link.php:19 content-quote.php:32 content-status.php:26 -#: content-video.php:42 content.php:31 image.php:44 page.php:39 +#: content-video.php:42 content.php:31 image.php:50 page.php:39 msgid "Edit" msgstr "" @@ -147,16 +147,12 @@ msgid "" "searching can help." msgstr "" -#. #-#-#-#-# twentythirteen.pot (Twenty Thirteen 1.6) #-#-#-#-# +#. #-#-#-#-# twentythirteen.pot (Twenty Thirteen 1.9) #-#-#-#-# #. Author URI of the plugin/theme #: footer.php:19 msgid "https://wordpress.org/" msgstr "" -#: footer.php:19 -msgid "Semantic Personal Publishing Platform" -msgstr "" - #: footer.php:19 msgid "Proudly powered by %s" msgstr "" @@ -168,83 +164,83 @@ msgstr "" #. Translators: If there are characters in your language that are not supported #. by Source Sans Pro, translate this to 'off'. Do not translate into your own #. language. -#: functions.php:128 +#: functions.php:131 msgctxt "Source Sans Pro font: on or off" msgid "on" msgstr "" #. Translators: If there are characters in your language that are not supported #. by Bitter, translate this to 'off'. Do not translate into your own language. -#: functions.php:134 +#: functions.php:137 msgctxt "Bitter font: on or off" msgid "on" msgstr "" -#: functions.php:218 +#: functions.php:221 msgid "Page %s" msgstr "" -#: functions.php:231 +#: functions.php:234 msgid "Main Widget Area" msgstr "" -#: functions.php:233 +#: functions.php:236 msgid "Appears in the footer section of the site." msgstr "" -#: functions.php:241 +#: functions.php:244 msgid "Secondary Widget Area" msgstr "" -#: functions.php:243 +#: functions.php:246 msgid "Appears on posts and pages in the sidebar." msgstr "" -#: functions.php:266 +#: functions.php:269 msgid "Posts navigation" msgstr "" -#: functions.php:270 +#: functions.php:273 msgid "<span class=\"meta-nav\">←</span> Older posts" msgstr "" -#: functions.php:274 +#: functions.php:277 msgid "Newer posts <span class=\"meta-nav\">→</span>" msgstr "" -#: functions.php:300 +#: functions.php:303 msgid "Post navigation" msgstr "" -#: functions.php:303 +#: functions.php:306 msgctxt "Previous post link" msgid "<span class=\"meta-nav\">←</span> %title" msgstr "" -#: functions.php:304 +#: functions.php:307 msgctxt "Next post link" msgid "%title <span class=\"meta-nav\">→</span>" msgstr "" -#: functions.php:322 +#: functions.php:325 msgid "Sticky" msgstr "" #. Translators: used between list items, there is a space after the comma. -#: functions.php:328 functions.php:334 +#: functions.php:331 functions.php:337 msgid ", " msgstr "" -#: functions.php:343 +#: functions.php:346 msgid "View all posts by %s" msgstr "" -#: functions.php:363 +#: functions.php:366 msgctxt "1: post format name. 2: date" msgid "%1$s on %2$s" msgstr "" -#: functions.php:369 +#: functions.php:372 msgid "Permalink to %s" msgstr "" @@ -256,26 +252,26 @@ msgstr "" msgid "Skip to content" msgstr "" -#: image.php:22 +#: image.php:28 msgid "" "<span class=\"attachment-meta\">Published on <time class=\"entry-date\" " "datetime=\"%1$s\">%2$s</time> in <a href=\"%3$s\" title=\"Return to %4$s\" " "rel=\"gallery\">%5$s</a></span>" msgstr "" -#: image.php:38 +#: image.php:44 msgid "Link to full-size image" msgstr "" -#: image.php:39 +#: image.php:45 msgid "Full resolution" msgstr "" -#: image.php:51 +#: image.php:57 msgid "<span class=\"meta-nav\">←</span> Previous" msgstr "" -#: image.php:52 +#: image.php:58 msgid "Next <span class=\"meta-nav\">→</span>" msgstr "" diff --git a/wp-content/themes/twentythirteen/readme.txt b/wp-content/themes/twentythirteen/readme.txt index 807443d7a116d307c98a67aef6d8ac689d0b6f8e..0fd7c9a91569bbb35e60cc6289e72538496fbcd9 100644 --- a/wp-content/themes/twentythirteen/readme.txt +++ b/wp-content/themes/twentythirteen/readme.txt @@ -1,8 +1,8 @@ === Twenty Thirteen === Contributors: the WordPress team Requires at least: WordPress 3.6 -Tested up to: WordPress 4.3-trunk -Stable tag: 1.6 +Tested up to: WordPress 4.6-trunk +Stable tag: 1.9 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: black, brown, orange, tan, white, yellow, light, one-column, two-columns, right-sidebar, fluid-layout, responsive-layout, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready, accessibility-ready @@ -27,7 +27,7 @@ Twenty Thirteen is Distributed under the terms of the GNU GPL This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or +the Free Software Foundation, either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -47,6 +47,21 @@ Source: http://www.genericons.com == Changelog == += 1.9 = +* Released: April 12, 2016 + +https://codex.wordpress.org/Twenty_Thirteen_Theme_Changelog#Version_1.9 + += 1.8 = +* Released: January 6, 2016 + +https://codex.wordpress.org/Twenty_Thirteen_Theme_Changelog#Version_1.8 + += 1.7 = +* Released: December 8, 2015 + +https://codex.wordpress.org/Twenty_Thirteen_Theme_Changelog#Version_1.7 + = 1.6 = * Released: August 18, 2015 diff --git a/wp-content/themes/twentythirteen/screenshot.png b/wp-content/themes/twentythirteen/screenshot.png index e53088b2e93a8545fd94524f94adaaec0fcbd1c3..33ccea20a6577dd794671139e8af8bb9dcbdd0e9 100644 Binary files a/wp-content/themes/twentythirteen/screenshot.png and b/wp-content/themes/twentythirteen/screenshot.png differ diff --git a/wp-content/themes/twentythirteen/style.css b/wp-content/themes/twentythirteen/style.css index d547283d40a00ce14315f6e1263389f0df17c9b9..b947dc900afb46d087fb30f39c2c5c4a39e6bdb3 100644 --- a/wp-content/themes/twentythirteen/style.css +++ b/wp-content/themes/twentythirteen/style.css @@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentythirteen/ Author: the WordPress team Author URI: https://wordpress.org/ Description: The 2013 theme for WordPress takes us back to the blog, featuring a full range of post formats, each displayed beautifully in their own unique way. Design details abound, starting with a vibrant color scheme and matching header images, beautiful typography and icons, and a flexible layout that looks great on any device, big or small. -Version: 1.6 +Version: 1.9 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: black, brown, orange, tan, white, yellow, light, one-column, two-columns, right-sidebar, fluid-layout, responsive-layout, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready, accessibility-ready @@ -349,6 +349,7 @@ form { fieldset { border: 1px solid #c0c0c0; margin: 0 2px; + min-width: inherit; padding: 0.35em 0.625em 0.75em; }