PluginProbe
Friends / 2.9.0
Friends v2.9.0
4.3.2 4.3.1 4.3.0 4.2.2 4.2.1 4.2.0 4.1.0 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 2.8.0 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.8.9 2.9.0 2.9.1 All 88 releases
friends / templates / embed / embed-content.php

embed-content.php in Friends 2.9.0, at templates/embed/embed-content.php

52 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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