wp/wp-includes/theme-compat/embed-content.php
changeset 9 177826044cd9
parent 7 cf61fcea0001
child 19 3d72ae0968f4
equal deleted inserted replaced
8:c7c34916027a 9:177826044cd9
    73 			 * @param int    $thumbnail_id Attachment ID.
    73 			 * @param int    $thumbnail_id Attachment ID.
    74 			 */
    74 			 */
    75 			$shape = apply_filters( 'embed_thumbnail_image_shape', $shape, $thumbnail_id );
    75 			$shape = apply_filters( 'embed_thumbnail_image_shape', $shape, $thumbnail_id );
    76 		}
    76 		}
    77 
    77 
    78 		if ( $thumbnail_id && 'rectangular' === $shape ) : ?>
    78 		if ( $thumbnail_id && 'rectangular' === $shape ) :
       
    79 			?>
    79 			<div class="wp-embed-featured-image rectangular">
    80 			<div class="wp-embed-featured-image rectangular">
    80 				<a href="<?php the_permalink(); ?>" target="_top">
    81 				<a href="<?php the_permalink(); ?>" target="_top">
    81 					<?php echo wp_get_attachment_image( $thumbnail_id, $image_size ); ?>
    82 					<?php echo wp_get_attachment_image( $thumbnail_id, $image_size ); ?>
    82 				</a>
    83 				</a>
    83 			</div>
    84 			</div>
   107 		 */
   108 		 */
   108 		do_action( 'embed_content' );
   109 		do_action( 'embed_content' );
   109 		?>
   110 		?>
   110 
   111 
   111 		<div class="wp-embed-footer">
   112 		<div class="wp-embed-footer">
   112 			<?php the_embed_site_title() ?>
   113 			<?php the_embed_site_title(); ?>
   113 
   114 
   114 			<div class="wp-embed-meta">
   115 			<div class="wp-embed-meta">
   115 				<?php
   116 				<?php
   116 				/**
   117 				/**
   117 				 * Prints additional meta content in the embed template.
   118 				 * Prints additional meta content in the embed template.
   118 				 *
   119 				 *
   119 				 * @since 4.4.0
   120 				 * @since 4.4.0
   120 				 */
   121 				 */
   121 				do_action( 'embed_content_meta');
   122 				do_action( 'embed_content_meta' );
   122 				?>
   123 				?>
   123 			</div>
   124 			</div>
   124 		</div>
   125 		</div>
   125 	</div>
   126 	</div>
   126 <?php
   127 <?php