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
..
2016-05-13 18:41:31 +00:00
2016-10-27 20:53:30 +00:00
2016-10-27 21:51:31 +00:00
2016-03-18 20:43:26 +00:00
2016-10-24 04:45:31 +00:00
2016-10-27 21:51:31 +00:00
2016-10-26 15:36:31 +00:00
2016-10-05 03:24:37 +00:00
2016-10-27 16:08:45 +00:00
2016-07-06 17:08:31 +00:00
2016-08-26 16:49:45 +00:00
2016-10-19 04:47:30 +00:00
2016-10-24 04:45:31 +00:00
2016-08-23 23:18:29 +00:00
2016-05-22 18:24:28 +00:00
2016-05-27 17:16:27 +00:00
2016-08-31 04:55:54 +00:00
2016-08-08 18:49:28 +00:00
2016-10-19 18:15:31 +00:00
2016-10-25 21:26:32 +00:00
2016-07-06 12:40:29 +00:00
2016-10-25 00:45:29 +00:00
2016-08-31 16:31:29 +00:00
2016-10-25 20:16:56 +00:00
2016-08-31 16:31:29 +00:00
2016-10-05 03:24:37 +00:00
2016-06-06 03:24:29 +00:00
2016-07-06 12:40:29 +00:00
2016-03-22 17:22:29 +00:00
2016-05-22 18:50:28 +00:00
2016-08-23 23:33:28 +00:00
2016-09-08 07:06:30 +00:00
2016-05-22 18:50:28 +00:00
2016-09-06 09:06:31 +00:00
2016-10-27 20:53:30 +00:00
2016-08-23 14:33:30 +00:00
2016-10-21 02:54:34 +00:00
2016-08-26 19:09:27 +00:00
2016-10-26 06:52:29 +00:00
2016-10-27 21:51:31 +00:00
2016-10-27 08:30:30 +00:00
2016-08-31 16:31:29 +00:00
2016-10-19 18:15:31 +00:00
2016-08-31 16:31:29 +00:00
2016-10-18 20:05:31 +00:00
2016-08-26 18:06:39 +00:00
2016-10-26 22:01:33 +00:00
2016-08-26 09:53:28 +00:00
2016-08-26 09:58:28 +00:00
2016-08-25 18:18:39 +00:00
2016-08-25 18:18:39 +00:00
2016-09-08 04:17:30 +00:00
2016-07-27 15:32:27 +00:00
2016-05-22 18:15:28 +00:00
2016-06-10 04:50:33 +00:00
2016-05-22 18:15:28 +00:00
2016-05-22 18:15:28 +00:00
2016-10-05 03:51:28 +00:00
2016-08-22 21:28:27 +00:00
2016-05-22 18:15:28 +00:00
2016-07-08 14:37:30 +00:00
2016-10-26 07:28:32 +00:00
2016-08-20 23:36:28 +00:00
2016-10-25 21:26:32 +00:00
2016-10-26 15:36:31 +00:00
2016-08-31 05:49:37 +00:00
2016-08-26 18:11:39 +00:00
2016-10-10 06:38:31 +00:00
2016-05-23 18:54:27 +00:00
2016-10-21 02:54:34 +00:00
2016-06-29 19:35:28 +00:00
2016-05-25 19:22:27 +00:00
2016-09-14 21:58:29 +00:00
2016-10-26 08:07:30 +00:00
2016-10-20 18:42:29 +00:00
2016-10-07 19:44:28 +00:00
2016-05-22 18:15:28 +00:00
2016-10-10 06:38:31 +00:00
2016-08-25 17:44:31 +00:00
2016-08-25 18:18:39 +00:00
2016-08-25 18:18:39 +00:00
2016-10-21 02:54:34 +00:00
2016-10-25 23:44:30 +00:00
2016-10-10 06:38:31 +00:00
2016-10-07 17:12:29 +00:00
2016-10-21 02:54:34 +00:00
2016-08-26 19:09:27 +00:00
2016-08-25 17:37:30 +00:00
2016-08-25 17:37:30 +00:00
2016-10-26 08:07:30 +00:00
2016-08-25 17:44:31 +00:00
2016-10-10 06:38:31 +00:00
2016-10-10 06:38:31 +00:00
2016-05-13 18:41:31 +00:00
2016-07-20 16:57:32 +00:00
2016-08-22 21:51:28 +00:00
2016-10-25 22:54:35 +00:00
2016-10-25 20:48:29 +00:00
2016-08-26 18:06:39 +00:00
2016-07-06 12:40:29 +00:00
2016-05-22 18:50:28 +00:00
2016-10-26 14:48:29 +00:00
2016-10-25 20:48:29 +00:00
2016-08-10 16:10:31 +00:00
2016-08-26 09:22:30 +00:00
2016-10-10 06:38:31 +00:00
2016-10-20 09:13:29 +00:00
2016-10-26 15:36:31 +00:00
2016-10-25 21:26:32 +00:00
2016-07-06 12:40:29 +00:00
2016-08-26 09:49:28 +00:00
2016-10-25 20:48:29 +00:00
2016-10-25 20:48:29 +00:00
2016-10-25 20:48:29 +00:00
2016-10-25 20:48:29 +00:00
2016-10-25 20:48:29 +00:00
2016-10-25 20:48:29 +00:00
2016-10-24 04:45:31 +00:00
2016-10-26 05:17:35 +00:00
2016-10-26 14:32:28 +00:00
2016-10-18 20:05:31 +00:00
2016-09-04 04:09:28 +00:00
2016-10-25 04:47:29 +00:00
2016-10-19 04:47:30 +00:00
2016-10-13 22:25:31 +00:00
2016-10-27 06:40:33 +00:00
2016-10-25 21:26:32 +00:00
2016-10-26 15:36:31 +00:00
2016-10-26 07:28:32 +00:00
2016-10-26 07:28:32 +00:00
2016-10-01 06:28:30 +00:00
2016-10-26 03:39:29 +00:00
2016-10-19 04:47:30 +00:00
2016-10-26 03:39:29 +00:00
2016-09-27 20:05:28 +00:00
2016-10-26 15:36:31 +00:00
2016-10-26 03:39:29 +00:00
2016-08-31 16:31:29 +00:00
2016-10-26 01:58:30 +00:00
2016-10-25 21:26:32 +00:00
2016-10-26 22:21:01 +00:00
2016-07-06 12:40:29 +00:00
2016-10-26 15:36:31 +00:00
2016-09-12 01:50:30 +00:00
2016-10-26 08:07:30 +00:00
2016-06-29 17:28:28 +00:00
2016-10-26 08:07:30 +00:00
2016-08-31 06:21:41 +00:00
2016-07-06 12:40:29 +00:00
2016-07-06 12:40:29 +00:00
2016-10-20 02:55:32 +00:00
2016-08-29 12:25:29 +00:00
2016-05-23 19:02:28 +00:00
2016-07-06 12:40:29 +00:00
2016-10-24 04:45:31 +00:00
2016-10-27 21:51:31 +00:00
2016-10-23 14:25:31 +00:00
2016-10-20 02:55:32 +00:00
2016-10-07 21:03:31 +00:00
2016-10-26 08:07:30 +00:00
2016-10-27 21:51:31 +00:00
2016-08-31 16:31:29 +00:00
2016-10-26 15:36:31 +00:00
2016-08-31 15:22:31 +00:00
2016-10-27 21:51:31 +00:00
2016-05-23 19:02:28 +00:00
2016-09-08 23:49:30 +00:00
2016-08-31 16:31:29 +00:00