| 1 |
<?php |
| 2 |
/** |
| 3 |
* Copy of the post embed content template part |
| 4 |
* |
| 5 |
* When a post is embedded in an iframe, this file is used to create the content template part |
| 6 |
* output if the active theme does not include an embed-content.php template. |
| 7 |
* |
| 8 |
* @package Friends |
| 9 |
*/ |
| 10 |
|
| 11 |
?> |
| 12 |
<div class="wp-embed"> |
| 13 |
|
| 14 |
<p class="wp-embed-heading"> |
| 15 |
<a href="<?php the_permalink(); ?>" target="_top"> |
| 16 |
<?php the_title(); ?> |
| 17 |
</a> |
| 18 |
</p> |
| 19 |
|
| 20 |
<div class="wp-embed-excerpt"><?php echo wp_kses_post( get_the_content( null, false, $args['post'] ) ); ?></div> |
| 21 |
|
| 22 |
<?php |
| 23 |
/** |
| 24 |
* Prints additional content after the embed excerpt. |
| 25 |
* |
| 26 |
* @since 4.4.0 |
| 27 |
*/ |
| 28 |
do_action( 'embed_content' ); |
| 29 |
?> |
| 30 |
|
| 31 |
<div class="wp-embed-footer"> |
| 32 |
<div class="wp-embed-site-title"> |
| 33 |
<a href="<?php the_permalink( $args['post'] ); ?>" target="_top"> |
| 34 |
<img src="<?php echo esc_url( $avatar ? $avatar : get_avatar_url( get_the_author_meta( 'ID' ) ) ); ?>" width="36" height="36" class="wp-embed-site-icon" /> |
| 35 |
<span><?php echo esc_html( get_the_author_meta( 'display_name' ) ); ?></span> |
| 36 |
</a> |
| 37 |
</div> |
| 38 |
|
| 39 |
<div class="wp-embed-meta"> |
| 40 |
<?php |
| 41 |
/** |
| 42 |
* Prints additional meta content in the embed template. |
| 43 |
* |
| 44 |
* @since 4.4.0 |
| 45 |
*/ |
| 46 |
do_action( 'embed_content_meta' ); |
| 47 |
?> |
| 48 |
</div> |
| 49 |
</div> |
| 50 |
</div> |
| 51 |
<?php |
| 52 |
|