Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/blogs-gentoo:master commit in: themes/twentyfourteen/inc/, themes/twentyfourteen/
Date: Wed, 04 Jan 2017 00:34:48
Message-Id: 1483489989.8fb565f8eb7e8ab1e70fefaf494ee3ceea6ecb6f.blueness@gentoo
1 commit: 8fb565f8eb7e8ab1e70fefaf494ee3ceea6ecb6f
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 4 00:33:01 2017 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 4 00:33:09 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/blogs-gentoo.git/commit/?id=8fb565f8
7
8 Update theme twentyfourteen to 1.9
9
10 themes/twentyfourteen/functions.php | 25 +++++++++++++++++++++++++
11 themes/twentyfourteen/inc/customizer.php | 6 +++---
12 themes/twentyfourteen/readme.txt | 9 +++++++--
13 themes/twentyfourteen/style.css | 29 ++++++++++++++++++++++++++++-
14 4 files changed, 63 insertions(+), 6 deletions(-)
15
16 diff --git a/themes/twentyfourteen/functions.php b/themes/twentyfourteen/functions.php
17 index f85ef1c..74141dc 100644
18 --- a/themes/twentyfourteen/functions.php
19 +++ b/themes/twentyfourteen/functions.php
20 @@ -277,6 +277,31 @@ function twentyfourteen_admin_fonts() {
21 }
22 add_action( 'admin_print_scripts-appearance_page_custom-header', 'twentyfourteen_admin_fonts' );
23
24 +/**
25 + * Add preconnect for Google Fonts.
26 + *
27 + * @since Twenty Fourteen 1.9
28 + *
29 + * @param array $urls URLs to print for resource hints.
30 + * @param string $relation_type The relation type the URLs are printed.
31 + * @return array URLs to print for resource hints.
32 + */
33 +function twentyfourteen_resource_hints( $urls, $relation_type ) {
34 + if ( wp_style_is( 'twentyfourteen-lato', 'queue' ) && 'preconnect' === $relation_type ) {
35 + if ( version_compare( $GLOBALS['wp_version'], '4.7-alpha', '>=' ) ) {
36 + $urls[] = array(
37 + 'href' => 'https://fonts.gstatic.com',
38 + 'crossorigin',
39 + );
40 + } else {
41 + $urls[] = 'https://fonts.gstatic.com';
42 + }
43 + }
44 +
45 + return $urls;
46 +}
47 +add_filter( 'wp_resource_hints', 'twentyfourteen_resource_hints', 10, 2 );
48 +
49 if ( ! function_exists( 'twentyfourteen_the_attached_image' ) ) :
50 /**
51 * Print the attached image with a link to the next attached image.
52
53 diff --git a/themes/twentyfourteen/inc/customizer.php b/themes/twentyfourteen/inc/customizer.php
54 index 4522984..3928915 100644
55 --- a/themes/twentyfourteen/inc/customizer.php
56 +++ b/themes/twentyfourteen/inc/customizer.php
57 @@ -16,9 +16,9 @@
58 */
59 function twentyfourteen_customize_register( $wp_customize ) {
60 // Add postMessage support for site title and description.
61 - $wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
62 - $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
63 - $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage';
64 + $wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
65 + $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
66 + $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage';
67
68 if ( isset( $wp_customize->selective_refresh ) ) {
69 $wp_customize->selective_refresh->add_partial( 'blogname', array(
70
71 diff --git a/themes/twentyfourteen/readme.txt b/themes/twentyfourteen/readme.txt
72 index 0080a1e..f27dfa4 100644
73 --- a/themes/twentyfourteen/readme.txt
74 +++ b/themes/twentyfourteen/readme.txt
75 @@ -1,8 +1,8 @@
76 === Twenty Fourteen ===
77 Contributors: the WordPress team
78 Requires at least: WordPress 3.6
79 -Tested up to: WordPress 4.7-trunk
80 -Stable tag: 1.8
81 +Tested up to: WordPress 4.8-trunk
82 +Stable tag: 1.9
83 License: GPLv2 or later
84 License URI: http://www.gnu.org/licenses/gpl-2.0.html
85 Tags: blog, news, two-columns, three-columns, left-sidebar, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
86 @@ -50,6 +50,11 @@ Source: http://www.genericons.com
87
88 == Changelog ==
89
90 += 1.9 =
91 +* Released: December 6, 2016
92 +
93 +https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_1.9
94 +
95 = 1.8 =
96 * Released: August 15, 2016
97
98
99 diff --git a/themes/twentyfourteen/style.css b/themes/twentyfourteen/style.css
100 index 4221371..afa33f6 100644
101 --- a/themes/twentyfourteen/style.css
102 +++ b/themes/twentyfourteen/style.css
103 @@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentyfourteen/
104 Author: the WordPress team
105 Author URI: https://wordpress.org/
106 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.
107 -Version: 1.8
108 +Version: 1.9
109 License: GNU General Public License v2 or later
110 License URI: http://www.gnu.org/licenses/gpl-2.0.html
111 Tags: blog, news, two-columns, three-columns, left-sidebar, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
112 @@ -1039,6 +1039,10 @@ span + .edit-link:before,
113 outline: 1px dotted;
114 }
115
116 +.secondary-navigation .customize-partial-edit-shortcut button,
117 +.footer-sidebar .widget:first-child .customize-partial-edit-shortcut button {
118 + left: 0;
119 +}
120
121 /**
122 * 6.0 Content
123 @@ -3088,6 +3092,18 @@ a.post-thumbnail:hover {
124 width: device-width;
125 }
126
127 +/* Adjust positioning of edit shortcuts, override style in customize-preview.css */
128 +@media screen and (max-width:800px) {
129 + body.customize-partial-edit-shortcuts-shown .site-header .site-title {
130 + padding-left: 8px;
131 + }
132 +
133 + .site-header .customize-partial-edit-shortcut button {
134 + top: 10px;
135 + }
136 +}
137 +
138 +
139 @media screen and (max-width: 400px) {
140 .list-view .site-content .post-thumbnail {
141 background: none;
142 @@ -3162,6 +3178,17 @@ a.post-thumbnail:hover {
143 }
144 }
145
146 +/* Adjust positioning of edit shortcuts, override style in customize-preview.css */
147 +@media screen and (max-width:320px) {
148 + .site-header .customize-partial-edit-shortcut button {
149 + left: -32px;
150 + }
151 +
152 + body.customize-partial-edit-shortcuts-shown .site-header .site-title {
153 + padding-left: 28px;
154 + }
155 +}
156 +
157 @media screen and (min-width: 401px) {
158 a.post-thumbnail:hover img {
159 opacity: 0.85;