mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-26 02:57:45 +01:00
030bc377dd
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 |
||
---|---|---|
.. | ||
class-wp-customize-background-image-control.php | ||
class-wp-customize-background-image-setting.php | ||
class-wp-customize-background-position-control.php | ||
class-wp-customize-color-control.php | ||
class-wp-customize-cropped-image-control.php | ||
class-wp-customize-custom-css-setting.php | ||
class-wp-customize-filter-setting.php | ||
class-wp-customize-header-image-control.php | ||
class-wp-customize-header-image-setting.php | ||
class-wp-customize-image-control.php | ||
class-wp-customize-media-control.php | ||
class-wp-customize-nav-menu-auto-add-control.php | ||
class-wp-customize-nav-menu-control.php | ||
class-wp-customize-nav-menu-item-control.php | ||
class-wp-customize-nav-menu-item-setting.php | ||
class-wp-customize-nav-menu-location-control.php | ||
class-wp-customize-nav-menu-name-control.php | ||
class-wp-customize-nav-menu-section.php | ||
class-wp-customize-nav-menu-setting.php | ||
class-wp-customize-nav-menus-panel.php | ||
class-wp-customize-new-menu-control.php | ||
class-wp-customize-new-menu-section.php | ||
class-wp-customize-partial.php | ||
class-wp-customize-selective-refresh.php | ||
class-wp-customize-sidebar-section.php | ||
class-wp-customize-site-icon-control.php | ||
class-wp-customize-theme-control.php | ||
class-wp-customize-themes-panel.php | ||
class-wp-customize-themes-section.php | ||
class-wp-customize-upload-control.php | ||
class-wp-widget-area-customize-control.php | ||
class-wp-widget-form-customize-control.php |