WordPress/wp-content/themes/twentyfourteen
Joe McGill 030bc377dd Themes: Enable video in custom headers.
This adds the ability for themes to add support for videos in custom headers
by passing `'video' => true` as an argument when adding theme support for
custom headers.

Custom video headers are managed through the “Header Visuals” (i.e. “Header Image”)
panel in the Customizer where you can select a video from the media library or set a
URL to an external video (YouTube for now) for use in custom headers.

This introduces several new functions:

`has_header_video()` – Check whether a header video is set or not.
`get_header_video_url()` – Retrieve header video URL for custom header.
`the_header_video_url()` – Display header video URL.
`get_header_video_settings()` – Retrieve header video settings.
`has_custom_header()` – Check whether a custom header is set or not.
`get_custom_header_markup()` – Retrieve the markup for a custom header.
`the_custom_header_markup()` – Print the markup for a custom header.

And a new file, `wp-includes/js/wp-custom-header.js` that handles loading videos
in custom headers.

This also enables video headers in the Twenty Seventeen and Twenty Fourteen themes.

Props davidakennedy, celloexpressions, bradyvercher, laurelfulford, joemcgill.
Fixes #38172.
Built from https://develop.svn.wordpress.org/trunk@38985


git-svn-id: http://core.svn.wordpress.org/trunk@38928 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-27 21:51:31 +00:00
..
css Revert [31849] and [33351] 2015-07-25 23:00:24 +00:00
genericons Bundled Themes: Remove Genericons example.html files. 2015-05-06 19:27:26 +00:00
images Twenty Fourteen: minor style adjustments for navigation and a new lighter pattern-dark graphic which makes easier to change the background color of the featured image content. Props iamtakashi. 2013-11-19 18:27:11 +00:00
inc Themes: Enable video in custom headers. 2016-10-27 21:51:31 +00:00
js Themes: Enable video in custom headers. 2016-10-27 21:51:31 +00:00
page-templates Twenty Fourteen: update comment blocks to match inline docs standards. Props DrewAPicture, see #25837. 2013-12-03 17:06:11 +00:00
404.php Twenty Fourteen: string cleanup, see #26437. 2013-12-05 17:55:10 +00:00
archive.php Use HTTPS URLs for codex.wordpress.org. 2015-04-12 21:29:32 +00:00
author.php Use HTTPS URLs for codex.wordpress.org. 2015-04-12 21:29:32 +00:00
category.php Use HTTPS URLs for codex.wordpress.org. 2015-04-12 21:29:32 +00:00
comments.php Twenty Fourteen: fix escaping and minor code style issues. See #29127. 2015-01-20 19:03:23 +00:00
content-aside.php In Twenty Fourteen, move the "Continue Reading" arrows back inside the translatable strings so they can be localised. 2014-12-09 18:57:24 +00:00
content-audio.php In Twenty Fourteen, move the "Continue Reading" arrows back inside the translatable strings so they can be localised. 2014-12-09 18:57:24 +00:00
content-featured-post.php Twenty Fourteen: remove invalid `rel` attributes from post thumbnail output, and fix a CSS typo. See #25946 and #25325. 2013-12-05 22:09:10 +00:00
content-gallery.php In Twenty Fourteen, move the "Continue Reading" arrows back inside the translatable strings so they can be localised. 2014-12-09 18:57:24 +00:00
content-image.php In Twenty Fourteen, move the "Continue Reading" arrows back inside the translatable strings so they can be localised. 2014-12-09 18:57:24 +00:00
content-link.php In Twenty Fourteen, move the "Continue Reading" arrows back inside the translatable strings so they can be localised. 2014-12-09 18:57:24 +00:00
content-none.php Twenty Fourteen: first pass for updating code comments to reflect WP inline docs standards, see #25257. 2013-10-11 22:02:11 +00:00
content-page.php Twenty Fourteen: update comment blocks to match inline docs standards. Props DrewAPicture, see #25837. 2013-12-03 17:06:11 +00:00
content-quote.php In Twenty Fourteen, move the "Continue Reading" arrows back inside the translatable strings so they can be localised. 2014-12-09 18:57:24 +00:00
content-video.php In Twenty Fourteen, move the "Continue Reading" arrows back inside the translatable strings so they can be localised. 2014-12-09 18:57:24 +00:00
content.php In Twenty Fourteen, move the "Continue Reading" arrows back inside the translatable strings so they can be localised. 2014-12-09 18:57:24 +00:00
featured-content.php Twenty Fourteen: fix escaping and minor code style issues. See #29127. 2015-01-20 19:03:23 +00:00
footer.php Bundled themes: use SSL WordPress.org URLs. 2015-04-27 17:36:25 +00:00
functions.php Themes: Enable video in custom headers. 2016-10-27 21:51:31 +00:00
header.php Themes: Enable video in custom headers. 2016-10-27 21:51:31 +00:00
image.php Twenty Fourteen: fix escaping and minor code style issues. See #29127. 2015-01-20 19:03:23 +00:00
index.php Use HTTPS URLs for codex.wordpress.org. 2015-04-12 21:29:32 +00:00
page.php Twenty Fourteen: clean up PHP braces style in page templates. Closes #26467. 2013-12-07 00:54:10 +00:00
readme.txt Bundled Themes: Bump versions and update theme tags. 2016-07-31 16:37:32 +00:00
rtl.css Bundled themes: use SSL WordPress.org URL in `rtl.css`. 2015-04-27 18:12:25 +00:00
screenshot.png Twenty Thirteen, Twenty Fourteen, Twenty Fifteen: Update screenshots to 1200 x 900 2016-03-18 17:01:29 +00:00
search.php Twenty Fourteen: update comment blocks to match inline docs standards. Props DrewAPicture, see #25837. 2013-12-03 17:06:11 +00:00
sidebar-content.php Twenty Fourteen: updates all PHP files to meet new brace style in WP coding standards. Props rickalee for initial patch, fixes #26093. 2013-11-18 23:11:10 +00:00
sidebar-footer.php Twenty Fourteen: updates all PHP files to meet new brace style in WP coding standards. Props rickalee for initial patch, fixes #26093. 2013-11-18 23:11:10 +00:00
sidebar.php Twenty Fourteen: use display context for site description in sidebar.php. 2013-11-27 23:10:10 +00:00
single.php Twenty Fourteen: update comment blocks to match inline docs standards. Props DrewAPicture, see #25837. 2013-12-03 17:06:11 +00:00
style.css Themes: Enable video in custom headers. 2016-10-27 21:51:31 +00:00
tag.php Use HTTPS URLs for codex.wordpress.org. 2015-04-12 21:29:32 +00:00
taxonomy-post_format.php Use HTTPS URLs for codex.wordpress.org. 2015-04-12 21:29:32 +00:00

readme.txt

=== Twenty Fourteen ===
Contributors: the WordPress team
Requires at least: WordPress 3.6
Tested up to: WordPress 4.7-trunk
Stable tag: 1.8
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

== 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.

For more information about Twenty Fourteen please go to https://codex.wordpress.org/Twenty_Fourteen.

== Installation ==

1. In your admin panel, go to Appearance -> Themes and click the 'Add New' button.
2. Type in Twenty Fourteen in the search form and press the 'Enter' key in your keyboard.
3. Click on the 'Activate' button to use your new theme right away.
4. Go to https://codex.wordpress.org/Twenty_Fourteen for a guide to customize this theme.
5. Navigate to Appearance > Customize in your admin panel.

== Copyright ==

Twenty Fourteen WordPress Theme, Copyright 2013-2016 WordPress.org & Automattic.com
Twenty Fourteen 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 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

Twenty Fourteen Theme is derived from the Further Theme, Copyright 2013 Takashi Irie
Further Theme is distributed under the terms of the GNU GPL

Twenty Fourteen Theme bundles the following third-party resources:

HTML5 Shiv v3.7.0, Copyright 2014 Alexander Farkas
Licenses: MIT/GPL2
Source: https://github.com/aFarkas/html5shiv

Genericons icon font, Copyright 2013-2016 Automattic.com
License: GNU GPL, Version 2 (or later)
Source: http://www.genericons.com

== Changelog ==

= 1.8 =
* Released: August 15, 2016

https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_1.8

= 1.7 =
* Released: April 12, 2016

https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_1.7

= 1.6 =
* Released: December 8, 2015

https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_1.6

= 1.5 =
* Released: August 18, 2015

https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_1.5

= 1.4 =
* Released: April 23, 2015

https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_1.4

= 1.3 =
* Released: December 18, 2014

https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_1.3

= 1.2 =
* Released: September 4, 2014

https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_1.2

= 1.1 =
* Released: May 8, 2014

https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_1.1

= 1.0 =
* Released: December 12, 2013

Initial release.