Update some themes

This commit is contained in:
nikolark committed 2016-05-30 11:32:34 +02:00
1 parent 404c516a94
commit 0717076124
33 files changed
+533 -175

No files matched your search

@@ -238,6 +238,11 @@ li > ol {
margin: 0 0 0 23px; margin: 0 0 0 23px;
} }
blockquote > ul,
blockquote > ol {
margin-left: 28px;
}
dl { dl {
margin: 0 0 28px; margin: 0 0 28px;
} }
@@ -103,6 +103,17 @@ function twentyfifteen_setup() {
'aside', 'image', 'video', 'quote', 'link', 'gallery', 'status', 'audio', 'chat' 'aside', 'image', 'video', 'quote', 'link', 'gallery', 'status', 'audio', 'chat'
) ); ) );
/*
* Enable support for custom logo.
*
* @since Twenty Fifteen 1.5
*/
add_theme_support( 'custom-logo', array(
'height' => 248,
'width' => 248,
'flex-height' => true,
) );
$color_scheme = twentyfifteen_get_color_scheme(); $color_scheme = twentyfifteen_get_color_scheme();
$default_color = trim( $color_scheme[0], '#' ); $default_color = trim( $color_scheme[0], '#' );
@@ -117,6 +128,9 @@ function twentyfifteen_setup() {
* specifically font, colors, icons, and column width. * specifically font, colors, icons, and column width.
*/ */
add_editor_style( array( 'css/editor-style.css', 'genericons/genericons.css', twentyfifteen_fonts_url() ) ); add_editor_style( array( 'css/editor-style.css', 'genericons/genericons.css', twentyfifteen_fonts_url() ) );
// Indicate widget sidebars can use selective refresh in the Customizer.
add_theme_support( 'customize-selective-refresh-widgets' );
} }
endif; // twentyfifteen_setup endif; // twentyfifteen_setup
add_action( 'after_setup_theme', 'twentyfifteen_setup' ); add_action( 'after_setup_theme', 'twentyfifteen_setup' );
@@ -29,6 +29,8 @@
<header id="masthead" class="site-header" role="banner"> <header id="masthead" class="site-header" role="banner">
<div class="site-branding"> <div class="site-branding">
<?php <?php
twentyfifteen_the_custom_logo();
if ( is_front_page() && is_home() ) : ?> if ( is_front_page() && is_home() ) : ?>
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<?php else : ?> <?php else : ?>
@@ -20,6 +20,19 @@ function twentyfifteen_customize_register( $wp_customize ) {
$wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->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' => 'twentyfifteen_customize_partial_blogname',
) );
$wp_customize->selective_refresh->add_partial( 'blogdescription', array(
'selector' => '.site-description',
'container_inclusive' => false,
'render_callback' => 'twentyfifteen_customize_partial_blogdescription',
) );
}
// Add color scheme setting and control. // Add color scheme setting and control.
$wp_customize->add_setting( 'color_scheme', array( $wp_customize->add_setting( 'color_scheme', array(
'default' => 'default', 'default' => 'default',
@@ -69,6 +82,30 @@ function twentyfifteen_customize_register( $wp_customize ) {
} }
add_action( 'customize_register', 'twentyfifteen_customize_register', 11 ); add_action( 'customize_register', 'twentyfifteen_customize_register', 11 );
/**
* Render the site title for the selective refresh partial.
*
* @since Twenty Fifteen 1.5
* @see twentyfifteen_customize_register()
*
* @return void
*/
function twentyfifteen_customize_partial_blogname() {
bloginfo( 'name' );
}
/**
* Render the site tagline for the selective refresh partial.
*
* @since Twenty Fifteen 1.5
* @see twentyfifteen_customize_register()
*
* @return void
*/
function twentyfifteen_customize_partial_blogdescription() {
bloginfo( 'description' );
}
/** /**
* Register color schemes for Twenty Fifteen. * Register color schemes for Twenty Fifteen.
* *
@@ -241,3 +241,18 @@ function twentyfifteen_excerpt_more( $more ) {
} }
add_filter( 'excerpt_more', 'twentyfifteen_excerpt_more' ); add_filter( 'excerpt_more', 'twentyfifteen_excerpt_more' );
endif; endif;
if ( ! function_exists( 'twentyfifteen_the_custom_logo' ) ) :
/**
* Displays the optional custom logo.
*
* Does nothing if the custom logo is not available.
*
* @since Twenty Fifteen 1.5
*/
function twentyfifteen_the_custom_logo() {
if ( function_exists( 'the_custom_logo' ) ) {
the_custom_logo();
}
}
endif;
@@ -49,7 +49,7 @@
// Enable menu toggle for small screens. // Enable menu toggle for small screens.
( function() { ( function() {
var menu, widgets, social; var menu, widgets, social;
if ( ! secondary || ! button ) { if ( ! secondary.length || ! button.length ) {
return; return;
} }
@@ -57,7 +57,7 @@
menu = secondary.find( '.nav-menu' ); menu = secondary.find( '.nav-menu' );
widgets = secondary.find( '#widget-area' ); widgets = secondary.find( '#widget-area' );
social = secondary.find( '#social-navigation' ); social = secondary.find( '#social-navigation' );
if ( ! widgets.length && ! social.length && ( ! menu || ! menu.children().length ) ) { if ( ! widgets.length && ! social.length && ( ! menu.length || ! menu.children().length ) ) {
button.hide(); button.hide();
return; return;
} }
@@ -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. # This file is distributed under the GNU General Public License v2 or later.
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Twenty Fifteen 1.4\n" "Project-Id-Version: Twenty Fifteen 1.5\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/twentyfifteen\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/theme/twentyfifteen\n"
"POT-Creation-Date: 2015-12-08 15:14:51+00:00\n" "POT-Creation-Date: 2016-04-05 09:48:39+00:00\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\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" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -87,7 +87,7 @@ msgid ""
"searching can help." "searching can help."
msgstr "" msgstr ""
#. #-#-#-#-# twentyfifteen.pot (Twenty Fifteen 1.4) #-#-#-#-# #. #-#-#-#-# twentyfifteen.pot (Twenty Fifteen 1.5) #-#-#-#-#
#. Author URI of the plugin/theme #. Author URI of the plugin/theme
#: footer.php:25 #: footer.php:25
msgid "https://wordpress.org/" msgid "https://wordpress.org/"
@@ -105,18 +105,18 @@ msgstr ""
msgid "Social Links Menu" msgid "Social Links Menu"
msgstr "" msgstr ""
#: functions.php:133 #: functions.php:147
msgid "Widget Area" msgid "Widget Area"
msgstr "" msgstr ""
#: functions.php:135 #: functions.php:149
msgid "Add widgets here to appear in your sidebar." msgid "Add widgets here to appear in your sidebar."
msgstr "" msgstr ""
#. Translators: If there are characters in your language that are not supported #. Translators: If there are characters in your language that are not supported
#. by Noto Sans, translate this to 'off'. Do not translate into your own #. by Noto Sans, translate this to 'off'. Do not translate into your own
#. language. #. language.
#: functions.php:161 #: functions.php:175
msgctxt "Noto Sans font: on or off" msgctxt "Noto Sans font: on or off"
msgid "on" msgid "on"
msgstr "" msgstr ""
@@ -124,7 +124,7 @@ msgstr ""
#. Translators: If there are characters in your language that are not supported #. Translators: If there are characters in your language that are not supported
#. by Noto Serif, translate this to 'off'. Do not translate into your own #. by Noto Serif, translate this to 'off'. Do not translate into your own
#. language. #. language.
#: functions.php:169 #: functions.php:183
msgctxt "Noto Serif font: on or off" msgctxt "Noto Serif font: on or off"
msgid "on" msgid "on"
msgstr "" msgstr ""
@@ -132,7 +132,7 @@ msgstr ""
#. Translators: If there are characters in your language that are not supported #. Translators: If there are characters in your language that are not supported
#. by Inconsolata, translate this to 'off'. Do not translate into your own #. by Inconsolata, translate this to 'off'. Do not translate into your own
#. language. #. language.
#: functions.php:177 #: functions.php:191
msgctxt "Inconsolata font: on or off" msgctxt "Inconsolata font: on or off"
msgid "on" msgid "on"
msgstr "" msgstr ""
@@ -140,16 +140,16 @@ msgstr ""
#. Translators: To add an additional character subset specific to your #. Translators: To add an additional character subset specific to your
#. language, translate this to 'greek', 'cyrillic', 'devanagari' or #. language, translate this to 'greek', 'cyrillic', 'devanagari' or
#. 'vietnamese'. Do not translate into your own language. #. 'vietnamese'. Do not translate into your own language.
#: functions.php:185 #: functions.php:199
msgctxt "Add new subset (greek, cyrillic, devanagari, vietnamese)" msgctxt "Add new subset (greek, cyrillic, devanagari, vietnamese)"
msgid "no-subset" msgid "no-subset"
msgstr "" msgstr ""
#: functions.php:255 #: functions.php:269
msgid "expand child menu" msgid "expand child menu"
msgstr "" msgstr ""
#: functions.php:256 #: functions.php:270
msgid "collapse child menu" msgid "collapse child menu"
msgstr "" msgstr ""
@@ -157,7 +157,7 @@ msgstr ""
msgid "Skip to content" msgid "Skip to content"
msgstr "" msgstr ""
#: header.php:43 #: header.php:45
msgid "Menu and widgets" msgid "Menu and widgets"
msgstr "" msgstr ""
@@ -182,43 +182,43 @@ msgid ""
"version %s. Please upgrade and try again." "version %s. Please upgrade and try again."
msgstr "" msgstr ""
#: inc/customizer.php:31 #: inc/customizer.php:44
msgid "Base Color Scheme" msgid "Base Color Scheme"
msgstr "" msgstr ""
#: inc/customizer.php:46 #: inc/customizer.php:59
msgid "Header and Sidebar Text Color" msgid "Header and Sidebar Text Color"
msgstr "" msgstr ""
#: inc/customizer.php:47 inc/customizer.php:63 inc/customizer.php:68 #: inc/customizer.php:60 inc/customizer.php:76 inc/customizer.php:81
msgid "Applied to the header on small screens and the sidebar on wide screens." msgid "Applied to the header on small screens and the sidebar on wide screens."
msgstr "" msgstr ""
#: inc/customizer.php:62 #: inc/customizer.php:75
msgid "Header and Sidebar Background Color" msgid "Header and Sidebar Background Color"
msgstr "" msgstr ""
#: inc/customizer.php:113 #: inc/customizer.php:150
msgid "Default" msgid "Default"
msgstr "" msgstr ""
#: inc/customizer.php:124 #: inc/customizer.php:161
msgid "Dark" msgid "Dark"
msgstr "" msgstr ""
#: inc/customizer.php:135 #: inc/customizer.php:172
msgid "Yellow" msgid "Yellow"
msgstr "" msgstr ""
#: inc/customizer.php:146 #: inc/customizer.php:183
msgid "Pink" msgid "Pink"
msgstr "" msgstr ""
#: inc/customizer.php:157 #: inc/customizer.php:194
msgid "Purple" msgid "Purple"
msgstr "" msgstr ""
#: inc/customizer.php:168 #: inc/customizer.php:205
msgid "Blue" msgid "Blue"
msgstr "" msgstr ""
+7 -2
View File
@@ -1,8 +1,8 @@
=== Twenty Fifteen === === Twenty Fifteen ===
Contributors: the WordPress team Contributors: the WordPress team
Requires at least: WordPress 4.1 Requires at least: WordPress 4.1
Tested up to: WordPress 4.5-trunk Tested up to: WordPress 4.6-trunk
Version: 1.4 Version: 1.5
License: GPLv2 or later License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: black, blue, gray, pink, purple, white, yellow, dark, light, two-columns, left-sidebar, fixed-layout, responsive-layout, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready Tags: black, blue, gray, pink, purple, white, yellow, dark, light, two-columns, left-sidebar, fixed-layout, responsive-layout, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
@@ -55,6 +55,11 @@ Source: http://www.genericons.com
== Changelog == == Changelog ==
= 1.5 =
* Released: April 12, 2016
https://codex.wordpress.org/Twenty_Fifteen_Theme_Changelog#Version_1.5
= 1.4 = = 1.4 =
* Released: December 8, 2015 * Released: December 8, 2015
Binary file not shown.

Before

Width:  |  Height:  |  Size: 368 KiB

After

Width:  |  Height:  |  Size: 563 KiB

+46 -1
View File
@@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentyfifteen/
Author: the WordPress team Author: the WordPress team
Author URI: https://wordpress.org/ Author URI: https://wordpress.org/
Description: Our 2015 default theme is clean, blog-focused, and designed for clarity. Twenty Fifteen's simple, straightforward typography is readable on a wide variety of screen sizes, and suitable for multiple languages. We designed it using a mobile-first approach, meaning your content takes center-stage, regardless of whether your visitors arrive by smartphone, tablet, laptop, or desktop computer. Description: Our 2015 default theme is clean, blog-focused, and designed for clarity. Twenty Fifteen's simple, straightforward typography is readable on a wide variety of screen sizes, and suitable for multiple languages. We designed it using a mobile-first approach, meaning your content takes center-stage, regardless of whether your visitors arrive by smartphone, tablet, laptop, or desktop computer.
Version: 1.4 Version: 1.5
License: GNU General Public License v2 or later License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: black, blue, gray, pink, purple, white, yellow, dark, light, two-columns, left-sidebar, fixed-layout, responsive-layout, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready Tags: black, blue, gray, pink, purple, white, yellow, dark, light, two-columns, left-sidebar, fixed-layout, responsive-layout, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
@@ -123,6 +123,10 @@ td {
text-align: left; text-align: left;
} }
fieldset {
min-width: inherit;
}
blockquote:before, blockquote:before,
blockquote:after, blockquote:after,
q:before, q:before,
@@ -1312,6 +1316,15 @@ img.aligncenter {
margin-bottom: 0; margin-bottom: 0;
} }
.custom-logo {
max-height: 84px;
width: auto;
}
.wp-custom-logo .site-title {
margin-top: 0.545454545em;
}
.site-description { .site-description {
display: none; display: none;
font-family: "Noto Sans", sans-serif; font-family: "Noto Sans", sans-serif;
@@ -3085,6 +3098,14 @@ p > video {
line-height: 1.2069; line-height: 1.2069;
} }
.custom-logo {
max-height: 105px;
}
.wp-custom-logo .site-title {
margin-top: 0.482758621em;
}
.site-description { .site-description {
font-size: 14px; font-size: 14px;
font-size: 1.4rem; font-size: 1.4rem;
@@ -3707,6 +3728,14 @@ p > video {
line-height: 1.25; line-height: 1.25;
} }
.custom-logo {
max-height: 104px;
}
.wp-custom-logo .site-title {
margin-top: 0.5em;
}
.site-description { .site-description {
font-size: 16px; font-size: 16px;
font-size: 1.6rem; font-size: 1.6rem;
@@ -4342,6 +4371,14 @@ p > video {
line-height: 1.3636; line-height: 1.3636;
} }
.custom-logo {
max-height: none;
}
.wp-custom-logo .site-title {
margin-top: 0.545454545em;
}
.site-description { .site-description {
font-size: 12px; font-size: 12px;
font-size: 1.2rem; font-size: 1.2rem;
@@ -4961,6 +4998,10 @@ p > video {
line-height: 1.1667; line-height: 1.1667;
} }
.wp-custom-logo .site-title {
margin-top: 0.583333333em;
}
.site-description { .site-description {
font-size: 14px; font-size: 14px;
font-size: 1.4rem; font-size: 1.4rem;
@@ -5499,6 +5540,10 @@ p > video {
line-height: 1.1852; line-height: 1.1852;
} }
.wp-custom-logo .site-title {
margin-top: 0.592592593em;
}
.site-description { .site-description {
font-size: 16px; font-size: 16px;
font-size: 1.6rem; font-size: 1.6rem;
@@ -113,6 +113,9 @@ function twentyfourteen_setup() {
// This theme uses its own gallery styles. // This theme uses its own gallery styles.
add_filter( 'use_default_gallery_style', '__return_false' ); 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' );
} }
endif; // twentyfourteen_setup endif; // twentyfourteen_setup
add_action( 'after_setup_theme', 'twentyfourteen_setup' ); add_action( 'after_setup_theme', 'twentyfourteen_setup' );
@@ -20,6 +20,19 @@ function twentyfourteen_customize_register( $wp_customize ) {
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
$wp_customize->get_setting( 'header_textcolor' )->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 a',
'container_inclusive' => false,
'render_callback' => 'twentyfourteen_customize_partial_blogname',
) );
$wp_customize->selective_refresh->add_partial( 'blogdescription', array(
'selector' => '.site-description',
'container_inclusive' => false,
'render_callback' => 'twentyfourteen_customize_partial_blogdescription',
) );
}
// Rename the label to "Site Title Color" because this only affects the site title in this theme. // Rename the label to "Site Title Color" because this only affects the site title in this theme.
$wp_customize->get_control( 'header_textcolor' )->label = __( 'Site Title Color', 'twentyfourteen' ); $wp_customize->get_control( 'header_textcolor' )->label = __( 'Site Title Color', 'twentyfourteen' );
@@ -64,6 +77,30 @@ function twentyfourteen_customize_register( $wp_customize ) {
} }
add_action( 'customize_register', 'twentyfourteen_customize_register' ); add_action( 'customize_register', 'twentyfourteen_customize_register' );
/**
* Render the site title for the selective refresh partial.
*
* @since Twenty Fourteen 1.7
* @see twentyfourteen_customize_register()
*
* @return void
*/
function twentyfourteen_customize_partial_blogname() {
bloginfo( 'name' );
}
/**
* Render the site tagline for the selective refresh partial.
*
* @since Twenty Fourteen 1.7
* @see twentyfourteen_customize_register()
*
* @return void
*/
function twentyfourteen_customize_partial_blogdescription() {
bloginfo( 'description' );
}
/** /**
* Sanitize the Featured Content layout value. * Sanitize the Featured Content layout value.
* *
@@ -8,7 +8,7 @@
* For maximum compatibility with different methods of posting users * For maximum compatibility with different methods of posting users
* will designate a featured post tag to associate posts with. Since * will designate a featured post tag to associate posts with. Since
* this tag now has special meaning beyond that of a normal tags, users * this tag now has special meaning beyond that of a normal tags, users
* will have the ability to hide it from the front-end of their site. * will have the ability to hide it from the front end of their site.
*/ */
class Featured_Content { class Featured_Content {
@@ -95,7 +95,7 @@ class Featured_Content {
} }
/** /**
* Hide "featured" tag from the front-end. * Hide "featured" tag from the front end.
* *
* Has to run on wp_loaded so that the preview filters of the Customizer * Has to run on wp_loaded so that the preview filters of the Customizer
* have a chance to alter the value. * have a chance to alter the value.
@@ -288,7 +288,7 @@ class Featured_Content {
} }
/** /**
* Hide featured tag from displaying when global terms are queried from the front-end. * Hide featured tag from displaying when global terms are queried from the front end.
* *
* Hooks into the "get_terms" filter. * Hooks into the "get_terms" filter.
* *
@@ -304,7 +304,7 @@ class Featured_Content {
*/ */
public static function hide_featured_term( $terms, $taxonomies, $args ) { public static function hide_featured_term( $terms, $taxonomies, $args ) {
// This filter is only appropriate on the front-end. // This filter is only appropriate on the front end.
if ( is_admin() ) { if ( is_admin() ) {
return $terms; return $terms;
} }
@@ -336,7 +336,7 @@ class Featured_Content {
/** /**
* Hide featured tag from display when terms associated with a post object * Hide featured tag from display when terms associated with a post object
* are queried from the front-end. * are queried from the front end.
* *
* Hooks into the "get_the_terms" filter. * Hooks into the "get_the_terms" filter.
* *
@@ -353,7 +353,7 @@ class Featured_Content {
*/ */
public static function hide_the_featured_term( $terms, $id, $taxonomy ) { public static function hide_the_featured_term( $terms, $id, $taxonomy ) {
// This filter is only appropriate on the front-end. // This filter is only appropriate on the front end.
if ( is_admin() ) { if ( is_admin() ) {
return $terms; return $terms;
} }
@@ -34,7 +34,28 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget {
parent::__construct( 'widget_twentyfourteen_ephemera', __( 'Twenty Fourteen Ephemera', 'twentyfourteen' ), array( parent::__construct( 'widget_twentyfourteen_ephemera', __( 'Twenty Fourteen Ephemera', 'twentyfourteen' ), array(
'classname' => 'widget_twentyfourteen_ephemera', 'classname' => 'widget_twentyfourteen_ephemera',
'description' => __( 'Use this widget to list your recent Aside, Quote, Video, Audio, Image, Gallery, and Link posts.', 'twentyfourteen' ), 'description' => __( 'Use this widget to list your recent Aside, Quote, Video, Audio, Image, Gallery, and Link posts.', 'twentyfourteen' ),
'customize_selective_refresh' => true,
) ); ) );
if ( is_active_widget( false, false, $this->id_base ) || is_customize_preview() ) {
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
}
}
/**
* Enqueue scripts.
*
* @since Twenty Fourteen 1.7
*/
public function enqueue_scripts() {
/** This filter is documented in wp-includes/media.php */
$audio_library = apply_filters( 'wp_audio_shortcode_library', 'mediaelement' );
/** This filter is documented in wp-includes/media.php */
$video_library = apply_filters( 'wp_video_shortcode_library', 'mediaelement' );
if ( in_array( 'mediaelement', array( $video_library, $audio_library ), true ) ) {
wp_enqueue_style( 'wp-mediaelement' );
wp_enqueue_script( 'wp-mediaelement' );
}
} }
/** /**
@@ -16,12 +16,12 @@
// Enable menu toggle for small screens. // Enable menu toggle for small screens.
( function() { ( function() {
if ( ! nav || ! button ) { if ( ! nav.length || ! button.length ) {
return; return;
} }
// Hide button if menu is missing or empty. // Hide button if menu is missing or empty.
if ( ! menu || ! menu.children().length ) { if ( ! menu.length || ! menu.children().length ) {
button.hide(); button.hide();
return; return;
} }
@@ -146,9 +146,13 @@
} ); } );
_window.load( function() { _window.load( function() {
var footerSidebar,
isCustomizeSelectiveRefresh = ( 'undefined' !== typeof wp && wp.customize && wp.customize.selectiveRefresh );
// Arrange footer widgets vertically. // Arrange footer widgets vertically.
if ( $.isFunction( $.fn.masonry ) ) { if ( $.isFunction( $.fn.masonry ) ) {
$( '#footer-sidebar' ).masonry( { footerSidebar = $( '#footer-sidebar' );
footerSidebar.masonry( {
itemSelector: '.widget', itemSelector: '.widget',
columnWidth: function( containerWidth ) { columnWidth: function( containerWidth ) {
return containerWidth / 4; return containerWidth / 4;
@@ -157,6 +161,41 @@
isResizable: true, isResizable: true,
isRTL: $( 'body' ).is( '.rtl' ) isRTL: $( 'body' ).is( '.rtl' )
} ); } );
if ( isCustomizeSelectiveRefresh ) {
// 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 after selective refresh event.
wp.customize.selectiveRefresh.bind( 'sidebar-updated', function( sidebarPartial ) {
if ( 'sidebar-3' === sidebarPartial.sidebarId ) {
footerSidebar.masonry( 'reloadItems' );
footerSidebar.masonry( 'layout' );
}
} );
}
}
// Initialize audio and video players in Twenty_Fourteen_Ephemera_Widget widget when selectively refreshed in Customizer.
if ( isCustomizeSelectiveRefresh && wp.mediaelement ) {
wp.customize.selectiveRefresh.bind( 'partial-content-rendered', function() {
wp.mediaelement.initialize();
} );
} }
// Initialize Featured Content slider. // Initialize Featured Content slider.
@@ -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. # This file is distributed under the GNU General Public License v2 or later.
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Twenty Fourteen 1.6\n" "Project-Id-Version: Twenty Fourteen 1.7\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/twentyfourteen\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/theme/twentyfourteen\n"
"POT-Creation-Date: 2015-12-08 15:15:01+00:00\n" "POT-Creation-Date: 2016-04-05 09:48:39+00:00\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\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" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -85,19 +85,19 @@ msgstr ""
#: content-aside.php:37 content-audio.php:37 content-gallery.php:37 #: content-aside.php:37 content-audio.php:37 content-gallery.php:37
#: content-image.php:37 content-link.php:37 content-quote.php:37 #: content-image.php:37 content-link.php:37 content-quote.php:37
#: content-video.php:37 content.php:38 inc/widgets.php:194 #: content-video.php:37 content.php:38 inc/widgets.php:215
msgid "Leave a comment" msgid "Leave a comment"
msgstr "" msgstr ""
#: content-aside.php:37 content-audio.php:37 content-gallery.php:37 #: content-aside.php:37 content-audio.php:37 content-gallery.php:37
#: content-image.php:37 content-link.php:37 content-quote.php:37 #: content-image.php:37 content-link.php:37 content-quote.php:37
#: content-video.php:37 content.php:38 inc/widgets.php:194 #: content-video.php:37 content.php:38 inc/widgets.php:215
msgid "1 Comment" msgid "1 Comment"
msgstr "" msgstr ""
#: content-aside.php:37 content-audio.php:37 content-gallery.php:37 #: content-aside.php:37 content-audio.php:37 content-gallery.php:37
#: content-image.php:37 content-link.php:37 content-quote.php:37 #: content-image.php:37 content-link.php:37 content-quote.php:37
#: content-video.php:37 content.php:38 inc/widgets.php:194 #: content-video.php:37 content.php:38 inc/widgets.php:215
msgid "% Comments" msgid "% Comments"
msgstr "" msgstr ""
@@ -142,7 +142,7 @@ msgid ""
"searching can help." "searching can help."
msgstr "" msgstr ""
#. #-#-#-#-# twentyfourteen.pot (Twenty Fourteen 1.6) #-#-#-#-# #. #-#-#-#-# twentyfourteen.pot (Twenty Fourteen 1.7) #-#-#-#-#
#. Author URI of the plugin/theme #. Author URI of the plugin/theme
#: footer.php:21 #: footer.php:21
msgid "https://wordpress.org/" msgid "https://wordpress.org/"
@@ -160,52 +160,52 @@ msgstr ""
msgid "Secondary menu in left sidebar" msgid "Secondary menu in left sidebar"
msgstr "" msgstr ""
#: functions.php:171 #: functions.php:174
msgid "Primary Sidebar" msgid "Primary Sidebar"
msgstr "" msgstr ""
#: functions.php:173 #: functions.php:176
msgid "Main sidebar that appears on the left." msgid "Main sidebar that appears on the left."
msgstr "" msgstr ""
#: functions.php:180 #: functions.php:183
msgid "Content Sidebar" msgid "Content Sidebar"
msgstr "" msgstr ""
#: functions.php:182 #: functions.php:185
msgid "Additional sidebar that appears on the right." msgid "Additional sidebar that appears on the right."
msgstr "" msgstr ""
#: functions.php:189 #: functions.php:192
msgid "Footer Widget Area" msgid "Footer Widget Area"
msgstr "" msgstr ""
#: functions.php:191 #: functions.php:194
msgid "Appears in the footer section of the site." msgid "Appears in the footer section of the site."
msgstr "" msgstr ""
#. Translators: If there are characters in your language that are not supported #. Translators: If there are characters in your language that are not supported
#. by Lato, translate this to 'off'. Do not translate into your own language. #. by Lato, translate this to 'off'. Do not translate into your own language.
#: functions.php:213 #: functions.php:216
msgctxt "Lato font: on or off" msgctxt "Lato font: on or off"
msgid "on" msgid "on"
msgstr "" msgstr ""
#: functions.php:258 #: functions.php:261
msgid "Previous" msgid "Previous"
msgstr "" msgstr ""
#: functions.php:259 #: functions.php:262
msgid "Next" msgid "Next"
msgstr "" msgstr ""
#: functions.php:376 #: functions.php:379
msgid "%d Article" msgid "%d Article"
msgid_plural "%d Articles" msgid_plural "%d Articles"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: functions.php:495 #: functions.php:498
msgid "Page %s" msgid "Page %s"
msgstr "" msgstr ""
@@ -235,57 +235,57 @@ msgid ""
"version %s. Please upgrade and try again." "version %s. Please upgrade and try again."
msgstr "" msgstr ""
#: inc/customizer.php:24 #: inc/customizer.php:37
msgid "Site Title Color" msgid "Site Title Color"
msgstr "" msgstr ""
#: inc/customizer.php:27 #: inc/customizer.php:40
msgid "Display Site Title &amp; Tagline" msgid "Display Site Title &amp; Tagline"
msgstr "" msgstr ""
#: inc/customizer.php:31 inc/customizer.php:32 #: inc/customizer.php:44 inc/customizer.php:45
msgid "May only be visible on wide screens." msgid "May only be visible on wide screens."
msgstr "" msgstr ""
#: inc/customizer.php:34 inc/customizer.php:35 #: inc/customizer.php:47 inc/customizer.php:48
msgid "Background may only be visible on wide screens." msgid "Background may only be visible on wide screens."
msgstr "" msgstr ""
#: inc/customizer.php:40 inc/featured-content.php:403 #: inc/customizer.php:53 inc/featured-content.php:403
msgid "Featured Content" msgid "Featured Content"
msgstr "" msgstr ""
#: inc/customizer.php:41 inc/featured-content.php:404 #: inc/customizer.php:54 inc/featured-content.php:404
msgid "" msgid ""
"Use a <a href=\"%1$s\">tag</a> to feature your posts. If no posts match the " "Use a <a href=\"%1$s\">tag</a> to feature your posts. If no posts match the "
"tag, <a href=\"%2$s\">sticky posts</a> will be displayed instead." "tag, <a href=\"%2$s\">sticky posts</a> will be displayed instead."
msgstr "" msgstr ""
#: inc/customizer.php:42 inc/customizer.php:108 inc/featured-content.php:405 #: inc/customizer.php:55 inc/customizer.php:145 inc/featured-content.php:405
#: inc/featured-content.php:414 inc/featured-content.php:474 #: inc/featured-content.php:414 inc/featured-content.php:474
msgctxt "featured content default tag slug" msgctxt "featured content default tag slug"
msgid "featured" msgid "featured"
msgstr "" msgstr ""
#: inc/customizer.php:56 #: inc/customizer.php:69
msgid "Layout" msgid "Layout"
msgstr "" msgstr ""
#: inc/customizer.php:60 #: inc/customizer.php:73
msgid "Grid" msgid "Grid"
msgstr "" msgstr ""
#: inc/customizer.php:61 #: inc/customizer.php:74
msgid "Slider" msgid "Slider"
msgstr "" msgstr ""
#. #-#-#-#-# twentyfourteen.pot (Twenty Fourteen 1.6) #-#-#-#-# #. #-#-#-#-# twentyfourteen.pot (Twenty Fourteen 1.7) #-#-#-#-#
#. Theme Name of the plugin/theme #. Theme Name of the plugin/theme
#: inc/customizer.php:105 #: inc/customizer.php:142
msgid "Twenty Fourteen" msgid "Twenty Fourteen"
msgstr "" msgstr ""
#: inc/customizer.php:108 #: inc/customizer.php:145
msgid "" msgid ""
"The home page features your choice of up to 6 posts prominently displayed in " "The home page features your choice of up to 6 posts prominently displayed in "
"a grid or slider, controlled by a <a href=\"%1$s\">tag</a>; you can change " "a grid or slider, controlled by a <a href=\"%1$s\">tag</a>; you can change "
@@ -294,7 +294,7 @@ msgid ""
"instead." "instead."
msgstr "" msgstr ""
#: inc/customizer.php:109 #: inc/customizer.php:146
msgid "" msgid ""
"Enhance your site design by using <a href=\"%s\">Featured Images</a> for " "Enhance your site design by using <a href=\"%s\">Featured Images</a> for "
"posts you&rsquo;d like to stand out (also known as post thumbnails). This " "posts you&rsquo;d like to stand out (also known as post thumbnails). This "
@@ -303,7 +303,7 @@ msgid ""
"title&mdash;and in the Featured Content area on the home page." "title&mdash;and in the Featured Content area on the home page."
msgstr "" msgstr ""
#: inc/customizer.php:110 #: inc/customizer.php:147
msgid "" msgid ""
"For an in-depth tutorial, and more tips and tricks, visit the <a href=\"%s" "For an in-depth tutorial, and more tips and tricks, visit the <a href=\"%s"
"\">Twenty Fourteen documentation</a>." "\">Twenty Fourteen documentation</a>."
@@ -359,67 +359,67 @@ msgid ""
"Gallery, and Link posts." "Gallery, and Link posts."
msgstr "" msgstr ""
#: inc/widgets.php:54 taxonomy-post_format.php:33 #: inc/widgets.php:75 taxonomy-post_format.php:33
msgid "Images" msgid "Images"
msgstr "" msgstr ""
#: inc/widgets.php:55 #: inc/widgets.php:76
msgid "More images" msgid "More images"
msgstr "" msgstr ""
#: inc/widgets.php:58 taxonomy-post_format.php:36 #: inc/widgets.php:79 taxonomy-post_format.php:36
msgid "Videos" msgid "Videos"
msgstr "" msgstr ""
#: inc/widgets.php:59 #: inc/widgets.php:80
msgid "More videos" msgid "More videos"
msgstr "" msgstr ""
#: inc/widgets.php:62 taxonomy-post_format.php:39 #: inc/widgets.php:83 taxonomy-post_format.php:39
msgid "Audio" msgid "Audio"
msgstr "" msgstr ""
#: inc/widgets.php:63 #: inc/widgets.php:84
msgid "More audio" msgid "More audio"
msgstr "" msgstr ""
#: inc/widgets.php:66 taxonomy-post_format.php:42 #: inc/widgets.php:87 taxonomy-post_format.php:42
msgid "Quotes" msgid "Quotes"
msgstr "" msgstr ""
#: inc/widgets.php:67 #: inc/widgets.php:88
msgid "More quotes" msgid "More quotes"
msgstr "" msgstr ""
#: inc/widgets.php:70 taxonomy-post_format.php:45 #: inc/widgets.php:91 taxonomy-post_format.php:45
msgid "Links" msgid "Links"
msgstr "" msgstr ""
#: inc/widgets.php:71 #: inc/widgets.php:92
msgid "More links" msgid "More links"
msgstr "" msgstr ""
#: inc/widgets.php:74 taxonomy-post_format.php:48 #: inc/widgets.php:95 taxonomy-post_format.php:48
msgid "Galleries" msgid "Galleries"
msgstr "" msgstr ""
#: inc/widgets.php:75 #: inc/widgets.php:96
msgid "More galleries" msgid "More galleries"
msgstr "" msgstr ""
#: inc/widgets.php:79 taxonomy-post_format.php:30 #: inc/widgets.php:100 taxonomy-post_format.php:30
msgid "Asides" msgid "Asides"
msgstr "" msgstr ""
#: inc/widgets.php:80 #: inc/widgets.php:101
msgid "More asides" msgid "More asides"
msgstr "" msgstr ""
#: inc/widgets.php:127 inc/widgets.php:172 #: inc/widgets.php:148 inc/widgets.php:193
msgid "Continue reading <span class=\"meta-nav\">&rarr;</span>" msgid "Continue reading <span class=\"meta-nav\">&rarr;</span>"
msgstr "" msgstr ""
#: inc/widgets.php:162 #: inc/widgets.php:183
msgid "This gallery contains <a href=\"%1$s\" rel=\"bookmark\">%2$s photo</a>." msgid "This gallery contains <a href=\"%1$s\" rel=\"bookmark\">%2$s photo</a>."
msgid_plural "" msgid_plural ""
"This gallery contains <a href=\"%1$s\" rel=\"bookmark\">%2$s photos</a>." "This gallery contains <a href=\"%1$s\" rel=\"bookmark\">%2$s photos</a>."
@@ -427,19 +427,19 @@ msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#. translators: used with More archives link #. translators: used with More archives link
#: inc/widgets.php:206 #: inc/widgets.php:227
msgid "%s <span class=\"meta-nav\">&rarr;</span>" msgid "%s <span class=\"meta-nav\">&rarr;</span>"
msgstr "" msgstr ""
#: inc/widgets.php:255 #: inc/widgets.php:276
msgid "Title:" msgid "Title:"
msgstr "" msgstr ""
#: inc/widgets.php:258 #: inc/widgets.php:279
msgid "Number of posts to show:" msgid "Number of posts to show:"
msgstr "" msgstr ""
#: inc/widgets.php:261 #: inc/widgets.php:282
msgid "Post format to show:" msgid "Post format to show:"
msgstr "" msgstr ""
+7 -2
View File
@@ -1,8 +1,8 @@
=== Twenty Fourteen === === Twenty Fourteen ===
Contributors: the WordPress team Contributors: the WordPress team
Requires at least: WordPress 3.6 Requires at least: WordPress 3.6
Tested up to: WordPress 4.5-trunk Tested up to: WordPress 4.6-trunk
Stable tag: 1.6 Stable tag: 1.7
License: GPLv2 or later License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: black, green, white, light, dark, two-columns, three-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready Tags: black, green, white, light, dark, two-columns, three-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
@@ -50,6 +50,11 @@ Source: http://www.genericons.com
== Changelog == == Changelog ==
= 1.7 =
* Released: April 12, 2016
https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_1.7
= 1.6 = = 1.6 =
* Released: December 8, 2015 * Released: December 8, 2015
Binary file not shown.

Before

Width:  |  Height:  |  Size: 603 KiB

After

Width:  |  Height:  |  Size: 911 KiB

+2 -1
View File
@@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentyfourteen/
Author: the WordPress team Author: the WordPress team
Author URI: https://wordpress.org/ Author URI: https://wordpress.org/
Description: In 2014, our default theme lets you create a responsive magazine website with a sleek, modern design. Feature your favorite homepage content in either a grid or a slider. Use the three widget areas to customize your website, and change your content's layout with a full-width page template and a contributor page to show off your authors. Creating a magazine website with WordPress has never been easier. Description: In 2014, our default theme lets you create a responsive magazine website with a sleek, modern design. Feature your favorite homepage content in either a grid or a slider. Use the three widget areas to customize your website, and change your content's layout with a full-width page template and a contributor page to show off your authors. Creating a magazine website with WordPress has never been easier.
Version: 1.6 Version: 1.7
License: GNU General Public License v2 or later License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: black, green, white, light, dark, two-columns, three-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready Tags: black, green, white, light, dark, two-columns, three-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
@@ -347,6 +347,7 @@ figure {
fieldset { fieldset {
border: 1px solid rgba(0, 0, 0, 0.1); border: 1px solid rgba(0, 0, 0, 0.1);
margin: 0 0 24px; margin: 0 0 24px;
min-width: inherit;
padding: 11px 12px 0; padding: 11px 12px 0;
} }
+1 -1
View File
@@ -16,7 +16,7 @@
<div class="site-info"> <div class="site-info">
<?php do_action( 'twentythirteen_credits' ); ?> <?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 --> </div><!-- .site-info -->
</footer><!-- #colophon --> </footer><!-- #colophon -->
</div><!-- #page --> </div><!-- #page -->
+43 -3
View File
@@ -105,6 +105,9 @@ function twentythirteen_setup() {
// This theme uses its own gallery styles. // This theme uses its own gallery styles.
add_filter( 'use_default_gallery_style', '__return_false' ); 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' ); add_action( 'after_setup_theme', 'twentythirteen_setup' );
@@ -283,9 +286,9 @@ endif;
if ( ! function_exists( 'twentythirteen_post_nav' ) ) : if ( ! function_exists( 'twentythirteen_post_nav' ) ) :
/** /**
* Display navigation to next/previous post when applicable. * Display navigation to next/previous post when applicable.
* *
* @since Twenty Thirteen 1.0 * @since Twenty Thirteen 1.0
*/ */
function twentythirteen_post_nav() { function twentythirteen_post_nav() {
global $post; global $post;
@@ -535,9 +538,46 @@ function twentythirteen_customize_register( $wp_customize ) {
$wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
$wp_customize->get_setting( 'header_textcolor' )->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' ); 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. * Enqueue Javascript postMessage handlers for the Customizer.
* *
@@ -13,6 +13,12 @@ get_header(); ?>
<div id="primary" class="content-area"> <div id="primary" class="content-area">
<div id="content" class="site-content" role="main"> <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' ); ?>> <article id="post-<?php the_ID(); ?>" <?php post_class( 'image-attachment' ); ?>>
<header class="entry-header"> <header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1> <h1 class="entry-title"><?php the_title(); ?></h1>
@@ -76,6 +82,8 @@ get_header(); ?>
<?php comments_template(); ?> <?php comments_template(); ?>
<?php endwhile; // End the loop. ?>
</div><!-- #content --> </div><!-- #content -->
</div><!-- #primary --> </div><!-- #primary -->
@@ -13,7 +13,7 @@
* Set up the WordPress core custom header arguments and settings. * Set up the WordPress core custom header arguments and settings.
* *
* @uses add_theme_support() to register support for 3.4 and up. * @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_style() to style wp-admin form.
* @uses twentythirteen_admin_header_image() to add custom markup to 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. * @uses register_default_headers() to set up the bundled header images.
@@ -34,12 +34,12 @@
* Enables menu toggle for small screens. * Enables menu toggle for small screens.
*/ */
( function() { ( function() {
if ( ! nav || ! button ) { if ( ! nav.length || ! button.length ) {
return; return;
} }
// Hide button if menu is missing or empty. // Hide button if menu is missing or empty.
if ( ! menu || ! menu.children().length ) { if ( ! menu.length || ! menu.children().length ) {
button.hide(); button.hide();
return; return;
} }
@@ -120,13 +120,42 @@
* Arranges footer widgets vertically. * Arranges footer widgets vertically.
*/ */
if ( $.isFunction( $.fn.masonry ) ) { 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', itemSelector: '.widget',
columnWidth: columnWidth, columnWidth: columnWidth,
gutterWidth: 20, gutterWidth: 20,
isRTL: body.is( '.rtl' ) 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 ); } )( jQuery );
@@ -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. # This file is distributed under the GNU General Public License v2 or later.
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Twenty Thirteen 1.7\n" "Project-Id-Version: Twenty Thirteen 1.9\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/twentythirteen\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/theme/twentythirteen\n"
"POT-Creation-Date: 2015-12-08 15:15:23+00:00\n" "POT-Creation-Date: 2016-04-05 09:48:39+00:00\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\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" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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-aside.php:16 content-audio.php:27 content-chat.php:26
#: content-gallery.php:27 content-image.php:26 content-link.php:27 #: 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-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\">&rarr;</span>" msgid "Continue reading %s <span class=\"meta-nav\">&rarr;</span>"
msgstr "" msgstr ""
#: content-aside.php:20 content-audio.php:31 content-chat.php:30 #: 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-gallery.php:31 content-image.php:30 content-link.php:31
#: content-quote.php:20 content-status.php:20 content-video.php:30 #: 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:" msgid "Pages:"
msgstr "" msgstr ""
#: content-aside.php:27 content-aside.php:35 content-audio.php:38 #: 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-chat.php:36 content-gallery.php:46 content-image.php:42
#: content-link.php:19 content-quote.php:32 content-status.php:26 #: 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" msgid "Edit"
msgstr "" msgstr ""
@@ -147,16 +147,12 @@ msgid ""
"searching can help." "searching can help."
msgstr "" msgstr ""
#. #-#-#-#-# twentythirteen.pot (Twenty Thirteen 1.7) #-#-#-#-# #. #-#-#-#-# twentythirteen.pot (Twenty Thirteen 1.9) #-#-#-#-#
#. Author URI of the plugin/theme #. Author URI of the plugin/theme
#: footer.php:19 #: footer.php:19
msgid "https://wordpress.org/" msgid "https://wordpress.org/"
msgstr "" msgstr ""
#: footer.php:19
msgid "Semantic Personal Publishing Platform"
msgstr ""
#: footer.php:19 #: footer.php:19
msgid "Proudly powered by %s" msgid "Proudly powered by %s"
msgstr "" msgstr ""
@@ -168,83 +164,83 @@ msgstr ""
#. Translators: If there are characters in your language that are not supported #. 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 #. by Source Sans Pro, translate this to 'off'. Do not translate into your own
#. language. #. language.
#: functions.php:128 #: functions.php:131
msgctxt "Source Sans Pro font: on or off" msgctxt "Source Sans Pro font: on or off"
msgid "on" msgid "on"
msgstr "" msgstr ""
#. Translators: If there are characters in your language that are not supported #. 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. #. 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" msgctxt "Bitter font: on or off"
msgid "on" msgid "on"
msgstr "" msgstr ""
#: functions.php:218 #: functions.php:221
msgid "Page %s" msgid "Page %s"
msgstr "" msgstr ""
#: functions.php:231 #: functions.php:234
msgid "Main Widget Area" msgid "Main Widget Area"
msgstr "" msgstr ""
#: functions.php:233 #: functions.php:236
msgid "Appears in the footer section of the site." msgid "Appears in the footer section of the site."
msgstr "" msgstr ""
#: functions.php:241 #: functions.php:244
msgid "Secondary Widget Area" msgid "Secondary Widget Area"
msgstr "" msgstr ""
#: functions.php:243 #: functions.php:246
msgid "Appears on posts and pages in the sidebar." msgid "Appears on posts and pages in the sidebar."
msgstr "" msgstr ""
#: functions.php:266 #: functions.php:269
msgid "Posts navigation" msgid "Posts navigation"
msgstr "" msgstr ""
#: functions.php:270 #: functions.php:273
msgid "<span class=\"meta-nav\">&larr;</span> Older posts" msgid "<span class=\"meta-nav\">&larr;</span> Older posts"
msgstr "" msgstr ""
#: functions.php:274 #: functions.php:277
msgid "Newer posts <span class=\"meta-nav\">&rarr;</span>" msgid "Newer posts <span class=\"meta-nav\">&rarr;</span>"
msgstr "" msgstr ""
#: functions.php:300 #: functions.php:303
msgid "Post navigation" msgid "Post navigation"
msgstr "" msgstr ""
#: functions.php:303 #: functions.php:306
msgctxt "Previous post link" msgctxt "Previous post link"
msgid "<span class=\"meta-nav\">&larr;</span> %title" msgid "<span class=\"meta-nav\">&larr;</span> %title"
msgstr "" msgstr ""
#: functions.php:304 #: functions.php:307
msgctxt "Next post link" msgctxt "Next post link"
msgid "%title <span class=\"meta-nav\">&rarr;</span>" msgid "%title <span class=\"meta-nav\">&rarr;</span>"
msgstr "" msgstr ""
#: functions.php:322 #: functions.php:325
msgid "Sticky" msgid "Sticky"
msgstr "" msgstr ""
#. Translators: used between list items, there is a space after the comma. #. 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 ", " msgid ", "
msgstr "" msgstr ""
#: functions.php:343 #: functions.php:346
msgid "View all posts by %s" msgid "View all posts by %s"
msgstr "" msgstr ""
#: functions.php:363 #: functions.php:366
msgctxt "1: post format name. 2: date" msgctxt "1: post format name. 2: date"
msgid "%1$s on %2$s" msgid "%1$s on %2$s"
msgstr "" msgstr ""
#: functions.php:369 #: functions.php:372
msgid "Permalink to %s" msgid "Permalink to %s"
msgstr "" msgstr ""
@@ -256,26 +252,26 @@ msgstr ""
msgid "Skip to content" msgid "Skip to content"
msgstr "" msgstr ""
#: image.php:22 #: image.php:28
msgid "" msgid ""
"<span class=\"attachment-meta\">Published on <time class=\"entry-date\" " "<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\" " "datetime=\"%1$s\">%2$s</time> in <a href=\"%3$s\" title=\"Return to %4$s\" "
"rel=\"gallery\">%5$s</a></span>" "rel=\"gallery\">%5$s</a></span>"
msgstr "" msgstr ""
#: image.php:38 #: image.php:44
msgid "Link to full-size image" msgid "Link to full-size image"
msgstr "" msgstr ""
#: image.php:39 #: image.php:45
msgid "Full resolution" msgid "Full resolution"
msgstr "" msgstr ""
#: image.php:51 #: image.php:57
msgid "<span class=\"meta-nav\">&larr;</span> Previous" msgid "<span class=\"meta-nav\">&larr;</span> Previous"
msgstr "" msgstr ""
#: image.php:52 #: image.php:58
msgid "Next <span class=\"meta-nav\">&rarr;</span>" msgid "Next <span class=\"meta-nav\">&rarr;</span>"
msgstr "" msgstr ""
+12 -2
View File
@@ -1,8 +1,8 @@
=== Twenty Thirteen === === Twenty Thirteen ===
Contributors: the WordPress team Contributors: the WordPress team
Requires at least: WordPress 3.6 Requires at least: WordPress 3.6
Tested up to: WordPress 4.5-trunk Tested up to: WordPress 4.6-trunk
Stable tag: 1.7 Stable tag: 1.9
License: GPLv2 or later License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html 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 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
@@ -47,6 +47,16 @@ Source: http://www.genericons.com
== Changelog == == 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 = = 1.7 =
* Released: December 8, 2015 * Released: December 8, 2015
Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 171 KiB

+2 -1
View File
@@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentythirteen/
Author: the WordPress team Author: the WordPress team
Author URI: https://wordpress.org/ 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. 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.7 Version: 1.9
License: GNU General Public License v2 or later License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html 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 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 { fieldset {
border: 1px solid #c0c0c0; border: 1px solid #c0c0c0;
margin: 0 2px; margin: 0 2px;
min-width: inherit;
padding: 0.35em 0.625em 0.75em; padding: 0.35em 0.625em 0.75em;
} }
+41 -1
View File
@@ -74,6 +74,9 @@ function twentytwelve_setup() {
// This theme uses a custom image size for featured images, displayed on "standard" posts. // This theme uses a custom image size for featured images, displayed on "standard" posts.
add_theme_support( 'post-thumbnails' ); add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 624, 9999 ); // Unlimited height, soft crop set_post_thumbnail_size( 624, 9999 ); // Unlimited height, soft crop
// Indicate widget sidebars can use selective refresh in the Customizer.
add_theme_support( 'customize-selective-refresh-widgets' );
} }
add_action( 'after_setup_theme', 'twentytwelve_setup' ); add_action( 'after_setup_theme', 'twentytwelve_setup' );
@@ -124,7 +127,7 @@ function twentytwelve_get_font_url() {
} }
/** /**
* Enqueue scripts and styles for front-end. * Enqueue scripts and styles for front end.
* *
* @since Twenty Twelve 1.0 * @since Twenty Twelve 1.0
*/ */
@@ -480,9 +483,46 @@ function twentytwelve_customize_register( $wp_customize ) {
$wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
$wp_customize->get_setting( 'header_textcolor' )->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 > 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' ); add_action( 'customize_register', 'twentytwelve_customize_register' );
/**
* Render the site title for the selective refresh partial.
*
* @since Twenty Twelve 2.0
* @see twentytwelve_customize_register()
*
* @return void
*/
function twentytwelve_customize_partial_blogname() {
bloginfo( 'name' );
}
/**
* Render the site tagline for the selective refresh partial.
*
* @since Twenty Twelve 2.0
* @see twentytwelve_customize_register()
*
* @return void
*/
function twentytwelve_customize_partial_blogdescription() {
bloginfo( 'description' );
}
/** /**
* Enqueue Javascript postMessage handlers for the Customizer. * Enqueue Javascript postMessage handlers for the Customizer.
* *
@@ -13,7 +13,7 @@
* Set up the WordPress core custom header arguments and settings. * Set up the WordPress core custom header arguments and settings.
* *
* @uses add_theme_support() to register support for 3.4 and up. * @uses add_theme_support() to register support for 3.4 and up.
* @uses twentytwelve_header_style() to style front-end. * @uses twentytwelve_header_style() to style front end.
* @uses twentytwelve_admin_header_style() to style wp-admin form. * @uses twentytwelve_admin_header_style() to style wp-admin form.
* @uses twentytwelve_admin_header_image() to add custom markup to wp-admin form. * @uses twentytwelve_admin_header_image() to add custom markup to wp-admin form.
* *
@@ -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. # This file is distributed under the GNU General Public License v2 or later.
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Twenty Twelve 1.9\n" "Project-Id-Version: Twenty Twelve 2.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/twentytwelve\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/theme/twentytwelve\n"
"POT-Creation-Date: 2015-12-08 15:15:37+00:00\n" "POT-Creation-Date: 2016-04-05 09:48:39+00:00\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\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" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -109,7 +109,7 @@ msgstr ""
#: content-aside.php:26 content-image.php:26 content-link.php:24 #: content-aside.php:26 content-image.php:26 content-link.php:24
#: content-page.php:24 content-quote.php:23 content-status.php:40 #: content-page.php:24 content-quote.php:23 content-status.php:40
#: content.php:51 functions.php:342 image.php:37 #: content.php:51 functions.php:345 image.php:37
msgid "Edit" msgid "Edit"
msgstr "" msgstr ""
@@ -139,7 +139,7 @@ msgstr ""
msgid "View all posts by %s <span class=\"meta-nav\">&rarr;</span>" msgid "View all posts by %s <span class=\"meta-nav\">&rarr;</span>"
msgstr "" msgstr ""
#. #-#-#-#-# twentytwelve.pot (Twenty Twelve 1.9) #-#-#-#-# #. #-#-#-#-# twentytwelve.pot (Twenty Twelve 2.0) #-#-#-#-#
#. Author URI of the plugin/theme #. Author URI of the plugin/theme
#: footer.php:16 #: footer.php:16
msgid "https://wordpress.org/" msgid "https://wordpress.org/"
@@ -160,7 +160,7 @@ msgstr ""
#. translators: If there are characters in your language that are not supported #. translators: If there are characters in your language that are not supported
#. by Open Sans, translate this to 'off'. Do not translate into your own #. by Open Sans, translate this to 'off'. Do not translate into your own
#. language. #. language.
#: functions.php:101 #: functions.php:104
msgctxt "Open Sans font: on or off" msgctxt "Open Sans font: on or off"
msgid "on" msgid "on"
msgstr "" msgstr ""
@@ -168,100 +168,100 @@ msgstr ""
#. translators: To add an additional Open Sans character subset specific to #. translators: To add an additional Open Sans character subset specific to
#. your language, translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not #. your language, translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not
#. translate into your own language. #. translate into your own language.
#: functions.php:107 #: functions.php:110
msgctxt "Open Sans font: add new subset (greek, cyrillic, vietnamese)" msgctxt "Open Sans font: add new subset (greek, cyrillic, vietnamese)"
msgid "no-subset" msgid "no-subset"
msgstr "" msgstr ""
#: functions.php:212 #: functions.php:215
msgid "Page %s" msgid "Page %s"
msgstr "" msgstr ""
#: functions.php:241 #: functions.php:244
msgid "Main Sidebar" msgid "Main Sidebar"
msgstr "" msgstr ""
#: functions.php:243 #: functions.php:246
msgid "" msgid ""
"Appears on posts and pages except the optional Front Page template, which " "Appears on posts and pages except the optional Front Page template, which "
"has its own widgets" "has its own widgets"
msgstr "" msgstr ""
#: functions.php:251 #: functions.php:254
msgid "First Front Page Widget Area" msgid "First Front Page Widget Area"
msgstr "" msgstr ""
#: functions.php:253 functions.php:263 #: functions.php:256 functions.php:266
msgid "" msgid ""
"Appears when using the optional Front Page template with a page set as " "Appears when using the optional Front Page template with a page set as "
"Static Front Page" "Static Front Page"
msgstr "" msgstr ""
#: functions.php:261 #: functions.php:264
msgid "Second Front Page Widget Area" msgid "Second Front Page Widget Area"
msgstr "" msgstr ""
#: functions.php:283 single.php:20 #: functions.php:286 single.php:20
msgid "Post navigation" msgid "Post navigation"
msgstr "" msgstr ""
#: functions.php:284 #: functions.php:287
msgid "<span class=\"meta-nav\">&larr;</span> Older posts" msgid "<span class=\"meta-nav\">&larr;</span> Older posts"
msgstr "" msgstr ""
#: functions.php:285 #: functions.php:288
msgid "Newer posts <span class=\"meta-nav\">&rarr;</span>" msgid "Newer posts <span class=\"meta-nav\">&rarr;</span>"
msgstr "" msgstr ""
#: functions.php:310 #: functions.php:313
msgid "Pingback:" msgid "Pingback:"
msgstr "" msgstr ""
#: functions.php:310 #: functions.php:313
msgid "(Edit)" msgid "(Edit)"
msgstr "" msgstr ""
#: functions.php:325 #: functions.php:328
msgid "Post author" msgid "Post author"
msgstr "" msgstr ""
#. translators: 1: date, 2: time #. translators: 1: date, 2: time
#: functions.php:331 #: functions.php:334
msgid "%1$s at %2$s" msgid "%1$s at %2$s"
msgstr "" msgstr ""
#: functions.php:337 #: functions.php:340
msgid "Your comment is awaiting moderation." msgid "Your comment is awaiting moderation."
msgstr "" msgstr ""
#: functions.php:346 #: functions.php:349
msgid "Reply" msgid "Reply"
msgstr "" msgstr ""
#. Translators: used between list items, there is a space after the comma. #. Translators: used between list items, there is a space after the comma.
#: functions.php:367 functions.php:370 #: functions.php:370 functions.php:373
msgid ", " msgid ", "
msgstr "" msgstr ""
#: functions.php:381 #: functions.php:384
msgid "View all posts by %s" msgid "View all posts by %s"
msgstr "" msgstr ""
#. Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's #. Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's
#. name. #. name.
#: functions.php:387 #: functions.php:390
msgid "" msgid ""
"This entry was posted in %1$s and tagged %2$s on %3$s<span class=\"by-author" "This entry was posted in %1$s and tagged %2$s on %3$s<span class=\"by-author"
"\"> by %4$s</span>." "\"> by %4$s</span>."
msgstr "" msgstr ""
#: functions.php:389 #: functions.php:392
msgid "" msgid ""
"This entry was posted in %1$s on %3$s<span class=\"by-author\"> by %4$s</" "This entry was posted in %1$s on %3$s<span class=\"by-author\"> by %4$s</"
"span>." "span>."
msgstr "" msgstr ""
#: functions.php:391 #: functions.php:394
msgid "This entry was posted on %3$s<span class=\"by-author\"> by %4$s</span>." msgid "This entry was posted on %3$s<span class=\"by-author\"> by %4$s</span>."
msgstr "" msgstr ""
+7 -2
View File
@@ -1,8 +1,8 @@
=== Twenty Twelve === === Twenty Twelve ===
Contributors: the WordPress team Contributors: the WordPress team
Requires at least: WordPress 3.5 Requires at least: WordPress 3.5
Tested up to: WordPress 4.5-trunk Tested up to: WordPress 4.6-trunk
Stable tag: 1.9 Stable tag: 2.0
License: GPLv2 or later License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, gray, white, one-column, two-columns, right-sidebar, fluid-layout, responsive-layout, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready Tags: light, gray, white, one-column, two-columns, right-sidebar, fluid-layout, responsive-layout, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready
@@ -43,6 +43,11 @@ Source: https://github.com/aFarkas/html5shiv
== Changelog == == Changelog ==
= 2.0 =
* Released: April 12, 2016
https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_2.0
= 1.9 = = 1.9 =
* Released: December 8, 2015 * Released: December 8, 2015
+1 -1
View File
@@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentytwelve/
Author: the WordPress team Author: the WordPress team
Author URI: https://wordpress.org/ 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. 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: 1.9 Version: 2.0
License: GNU General Public License v2 or later License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, gray, white, one-column, two-columns, right-sidebar, fluid-layout, responsive-layout, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready Tags: light, gray, white, one-column, two-columns, right-sidebar, fluid-layout, responsive-layout, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready