You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
611 B
32 lines
611 B
<?php |
|
/** |
|
* Template for the amp_story embed. |
|
* Applies when embedding an AMP story, like by entering its URL in the WordPress (embed) block. |
|
* This is mainly taken from wp-includes/theme-compat/embed.php. |
|
* |
|
* @package AMP |
|
*/ |
|
|
|
get_header( 'embed' ); |
|
|
|
if ( have_posts() ) { |
|
while ( have_posts() ) { |
|
the_post(); |
|
?> |
|
<div class="amp-story-embed"> |
|
<?php |
|
AMP_Story_Post_Type::the_single_story_card( |
|
[ |
|
'post' => get_post(), |
|
'size' => AMP_Story_Media::STORY_CARD_IMAGE_SIZE, |
|
] |
|
); |
|
?> |
|
</div> |
|
<?php |
|
} |
|
} else { |
|
get_template_part( 'embed', '404' ); |
|
} |
|
|
|
get_footer( 'embed' );
|
|
|