summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2017-01-03 19:33:01 -0500
committerAnthony G. Basile <blueness@gentoo.org>2017-01-03 19:33:09 -0500
commit8fb565f8eb7e8ab1e70fefaf494ee3ceea6ecb6f (patch)
tree43dcf7deaf1020539a4bd42fb18145f6e452ee75 /themes
parentUpdate plugin wp-syntax to 1.1 (diff)
downloadblogs-gentoo-8fb565f8eb7e8ab1e70fefaf494ee3ceea6ecb6f.tar.gz
blogs-gentoo-8fb565f8eb7e8ab1e70fefaf494ee3ceea6ecb6f.tar.bz2
blogs-gentoo-8fb565f8eb7e8ab1e70fefaf494ee3ceea6ecb6f.zip
Update theme twentyfourteen to 1.9
Diffstat (limited to 'themes')
-rw-r--r--themes/twentyfourteen/functions.php25
-rw-r--r--themes/twentyfourteen/inc/customizer.php6
-rw-r--r--themes/twentyfourteen/readme.txt9
-rw-r--r--themes/twentyfourteen/style.css29
4 files changed, 63 insertions, 6 deletions
diff --git a/themes/twentyfourteen/functions.php b/themes/twentyfourteen/functions.php
index f85ef1ca..74141dc3 100644
--- a/themes/twentyfourteen/functions.php
+++ b/themes/twentyfourteen/functions.php
@@ -277,6 +277,31 @@ function twentyfourteen_admin_fonts() {
}
add_action( 'admin_print_scripts-appearance_page_custom-header', 'twentyfourteen_admin_fonts' );
+/**
+ * Add preconnect for Google Fonts.
+ *
+ * @since Twenty Fourteen 1.9
+ *
+ * @param array $urls URLs to print for resource hints.
+ * @param string $relation_type The relation type the URLs are printed.
+ * @return array URLs to print for resource hints.
+ */
+function twentyfourteen_resource_hints( $urls, $relation_type ) {
+ if ( wp_style_is( 'twentyfourteen-lato', 'queue' ) && 'preconnect' === $relation_type ) {
+ if ( version_compare( $GLOBALS['wp_version'], '4.7-alpha', '>=' ) ) {
+ $urls[] = array(
+ 'href' => 'https://fonts.gstatic.com',
+ 'crossorigin',
+ );
+ } else {
+ $urls[] = 'https://fonts.gstatic.com';
+ }
+ }
+
+ return $urls;
+}
+add_filter( 'wp_resource_hints', 'twentyfourteen_resource_hints', 10, 2 );
+
if ( ! function_exists( 'twentyfourteen_the_attached_image' ) ) :
/**
* Print the attached image with a link to the next attached image.
diff --git a/themes/twentyfourteen/inc/customizer.php b/themes/twentyfourteen/inc/customizer.php
index 45229847..39289159 100644
--- a/themes/twentyfourteen/inc/customizer.php
+++ b/themes/twentyfourteen/inc/customizer.php
@@ -16,9 +16,9 @@
*/
function twentyfourteen_customize_register( $wp_customize ) {
// Add postMessage support for site title and description.
- $wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
- $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
- $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage';
+ $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(
diff --git a/themes/twentyfourteen/readme.txt b/themes/twentyfourteen/readme.txt
index 0080a1e9..f27dfa4a 100644
--- a/themes/twentyfourteen/readme.txt
+++ b/themes/twentyfourteen/readme.txt
@@ -1,8 +1,8 @@
=== Twenty Fourteen ===
Contributors: the WordPress team
Requires at least: WordPress 3.6
-Tested up to: WordPress 4.7-trunk
-Stable tag: 1.8
+Tested up to: WordPress 4.8-trunk
+Stable tag: 1.9
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
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
@@ -50,6 +50,11 @@ Source: http://www.genericons.com
== Changelog ==
+= 1.9 =
+* Released: December 6, 2016
+
+https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_1.9
+
= 1.8 =
* Released: August 15, 2016
diff --git a/themes/twentyfourteen/style.css b/themes/twentyfourteen/style.css
index 4221371a..afa33f61 100644
--- a/themes/twentyfourteen/style.css
+++ b/themes/twentyfourteen/style.css
@@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentyfourteen/
Author: the WordPress team
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.
-Version: 1.8
+Version: 1.9
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
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
@@ -1039,6 +1039,10 @@ span + .edit-link:before,
outline: 1px dotted;
}
+.secondary-navigation .customize-partial-edit-shortcut button,
+.footer-sidebar .widget:first-child .customize-partial-edit-shortcut button {
+ left: 0;
+}
/**
* 6.0 Content
@@ -3088,6 +3092,18 @@ a.post-thumbnail:hover {
width: device-width;
}
+/* Adjust positioning of edit shortcuts, override style in customize-preview.css */
+@media screen and (max-width:800px) {
+ body.customize-partial-edit-shortcuts-shown .site-header .site-title {
+ padding-left: 8px;
+ }
+
+ .site-header .customize-partial-edit-shortcut button {
+ top: 10px;
+ }
+}
+
+
@media screen and (max-width: 400px) {
.list-view .site-content .post-thumbnail {
background: none;
@@ -3162,6 +3178,17 @@ a.post-thumbnail:hover {
}
}
+/* Adjust positioning of edit shortcuts, override style in customize-preview.css */
+@media screen and (max-width:320px) {
+ .site-header .customize-partial-edit-shortcut button {
+ left: -32px;
+ }
+
+ body.customize-partial-edit-shortcuts-shown .site-header .site-title {
+ padding-left: 28px;
+ }
+}
+
@media screen and (min-width: 401px) {
a.post-thumbnail:hover img {
opacity: 0.85;