Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Contains the post embed base template
- *
- * When a post is embedded in an iframe, this file is used to create the output
- * if the active theme does not include an embed.php template.
- *
- * @package WordPress
- * @subpackage oEmbed
- * @since 4.4.0
- */
- use function Roots\view;
- get_header( 'embed' );
- if ( have_posts() ) :
- while ( have_posts() ) :
- the_post();
- if( file_exists( get_theme_file_path("/resources/views/embed-" . get_post_type() . ".blade.php") ) ) {
- echo view("embed-" . get_post_type());
- break;
- }
- get_template_part( 'embed', 'content' );
- endwhile;
- else :
- get_template_part( 'embed', '404' );
- endif;
- get_footer( 'embed' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement