| 1 |
<?php |
| 2 |
/** |
| 3 |
* Contains the post embed header template |
| 4 |
* |
| 5 |
* When a post is embedded in an iframe, this file is used to create the header output |
| 6 |
* if the active theme does not include a header-embed.php template. |
| 7 |
* |
| 8 |
* @package WordPress |
| 9 |
* @subpackage Theme_Compat |
| 10 |
* @since 4.5.0 |
| 11 |
*/ |
| 12 |
|
| 13 |
if ( ! headers_sent() ) { |
| 14 |
header( 'X-WP-embed: true' ); |
| 15 |
} |
| 16 |
|
| 17 |
?> |
| 18 |
<!DOCTYPE html> |
| 19 |
<html <?php language_attributes(); ?> class="no-js"> |
| 20 |
<head> |
| 21 |
<title><?php echo esc_html( wp_get_document_title() ); ?></title> |
| 22 |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| 23 |
<?php |
| 24 |
/** |
| 25 |
* Prints scripts or data in the embed template head tag. |
| 26 |
* |
| 27 |
* @since 4.4.0 |
| 28 |
*/ |
| 29 |
do_action( 'embed_head' ); |
| 30 |
?> |
| 31 |
</head> |
| 32 |
<body <?php body_class(); ?>> |
| 33 |
|