Commit 4a2ca485 authored by lechuck's avatar lechuck Committed by lucha

[auto] Theme: twentytwelve 2.0

parent 98846f13
......@@ -74,6 +74,9 @@ function twentytwelve_setup() {
// This theme uses a custom image size for featured images, displayed on "standard" posts.
add_theme_support( 'post-thumbnails' );
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' );
......@@ -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
*/
......@@ -480,9 +483,46 @@ function twentytwelve_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 > 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' );
/**
* 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.
*
......
......@@ -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 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_image() to add custom markup to wp-admin form.
*
......
# 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 Twelve 1.8\n"
"Project-Id-Version: Twenty Twelve 2.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/twentytwelve\n"
"POT-Creation-Date: 2015-07-27 19:47:39+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"
......@@ -109,7 +109,7 @@ msgstr ""
#: 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.php:51 functions.php:342 image.php:37
#: content.php:51 functions.php:345 image.php:37
msgid "Edit"
msgstr ""
......@@ -139,7 +139,7 @@ msgstr ""
msgid "View all posts by %s <span class=\"meta-nav\">&rarr;</span>"
msgstr ""
#. #-#-#-#-# twentytwelve.pot (Twenty Twelve 1.8) #-#-#-#-#
#. #-#-#-#-# twentytwelve.pot (Twenty Twelve 2.0) #-#-#-#-#
#. Author URI of the plugin/theme
#: footer.php:16
msgid "https://wordpress.org/"
......@@ -160,7 +160,7 @@ msgstr ""
#. 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
#. language.
#: functions.php:101
#: functions.php:104
msgctxt "Open Sans font: on or off"
msgid "on"
msgstr ""
......@@ -168,100 +168,100 @@ msgstr ""
#. translators: To add an additional Open Sans character subset specific to
#. your language, translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not
#. translate into your own language.
#: functions.php:107
#: functions.php:110
msgctxt "Open Sans font: add new subset (greek, cyrillic, vietnamese)"
msgid "no-subset"
msgstr ""
#: functions.php:212
#: functions.php:215
msgid "Page %s"
msgstr ""
#: functions.php:241
#: functions.php:244
msgid "Main Sidebar"
msgstr ""
#: functions.php:243
#: functions.php:246
msgid ""
"Appears on posts and pages except the optional Front Page template, which "
"has its own widgets"
msgstr ""
#: functions.php:251
#: functions.php:254
msgid "First Front Page Widget Area"
msgstr ""
#: functions.php:253 functions.php:263
#: functions.php:256 functions.php:266
msgid ""
"Appears when using the optional Front Page template with a page set as "
"Static Front Page"
msgstr ""
#: functions.php:261
#: functions.php:264
msgid "Second Front Page Widget Area"
msgstr ""
#: functions.php:283 single.php:20
#: functions.php:286 single.php:20
msgid "Post navigation"
msgstr ""
#: functions.php:284
#: functions.php:287
msgid "<span class=\"meta-nav\">&larr;</span> Older posts"
msgstr ""
#: functions.php:285
#: functions.php:288
msgid "Newer posts <span class=\"meta-nav\">&rarr;</span>"
msgstr ""
#: functions.php:310
#: functions.php:313
msgid "Pingback:"
msgstr ""
#: functions.php:310
#: functions.php:313
msgid "(Edit)"
msgstr ""
#: functions.php:325
#: functions.php:328
msgid "Post author"
msgstr ""
#. translators: 1: date, 2: time
#: functions.php:331
#: functions.php:334
msgid "%1$s at %2$s"
msgstr ""
#: functions.php:337
#: functions.php:340
msgid "Your comment is awaiting moderation."
msgstr ""
#: functions.php:346
#: functions.php:349
msgid "Reply"
msgstr ""
#. 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 ", "
msgstr ""
#: functions.php:381
#: functions.php:384
msgid "View all posts by %s"
msgstr ""
#. Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's
#. name.
#: functions.php:387
#: functions.php:390
msgid ""
"This entry was posted in %1$s and tagged %2$s on %3$s<span class=\"by-author"
"\"> by %4$s</span>."
msgstr ""
#: functions.php:389
#: functions.php:392
msgid ""
"This entry was posted in %1$s on %3$s<span class=\"by-author\"> by %4$s</"
"span>."
msgstr ""
#: functions.php:391
#: functions.php:394
msgid "This entry was posted on %3$s<span class=\"by-author\"> by %4$s</span>."
msgstr ""
......
=== Twenty Twelve ===
Contributors: the WordPress team
Requires at least: WordPress 3.5
Tested up to: WordPress 4.3-trunk
Stable tag: 1.8
Tested up to: WordPress 4.6-trunk
Stable tag: 2.0
License: GPLv2 or later
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
......@@ -27,7 +27,7 @@ Twenty Twelve 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,
......@@ -43,6 +43,16 @@ Source: https://github.com/aFarkas/html5shiv
== Changelog ==
= 2.0 =
* Released: April 12, 2016
https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_2.0
= 1.9 =
* Released: December 8, 2015
https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_1.9
= 1.8 =
* Released: August 18, 2015
......
......@@ -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: 1.8
Version: 2.0
License: GNU General Public License v2 or later
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment