| @@ -1,0 +1,26 @@ | ||
| 1 | +<?php | |
| 2 | +/* | |
| 3 | + * License: GPLv3 | |
| 4 | + * License URI: https://www.gnu.org/licenses/gpl.txt | |
| 5 | + * Copyright 2012-2026 Jean-Sebastien Morisset (https://wpsso.com/) | |
| 6 | + * | |
| 7 | + * Original source from wordpress/wp-includes/theme-compat/embed.php. | |
| 8 | + */ | |
| 9 | + | |
| 10 | +get_header( 'embed' ); | |
| 11 | + | |
| 12 | +if ( have_posts() ) { | |
| 13 | + | |
| 14 | + while ( have_posts() ) { | |
| 15 | + | |
| 16 | + the_post(); | |
| 17 | + | |
| 18 | + get_template_part( 'wpsso/embed', 'content' ); | |
| 19 | + } | |
| 20 | + | |
| 21 | +} else { | |
| 22 | + | |
| 23 | + get_template_part( 'embed', '404' ); | |
| 24 | +} | |
| 25 | + | |
| 26 | +get_footer( 'embed' ); | |