home *** CD-ROM | disk | FTP | other *** search
/ HTML Examples / WP.iso / wordpress2 / wp-includes / theme-compat / embed.php < prev    next >
Encoding:
PHP Script  |  2016-03-28  |  479 b   |  24 lines

  1. <?php
  2. /**
  3.  * Contains the post embed base template
  4.  *
  5.  * When a post is embedded in an iframe, this file is used to create the output
  6.  * if the active theme does not include an embed.php template.
  7.  *
  8.  * @package WordPress
  9.  * @subpackage oEmbed
  10.  * @since 4.4.0
  11.  */
  12.  
  13. get_header( 'embed' );
  14.  
  15. if ( have_posts() ) :
  16.     while ( have_posts() ) : the_post();
  17.         get_template_part( 'embed', 'content' );
  18.     endwhile;
  19. else :
  20.     get_template_part( 'embed', '404' );
  21. endif;
  22.  
  23. get_footer( 'embed' );
  24.