CoreFiles by mySites.guru
content-featured-post.php46 lines, 1,488 bytes, from wordpress-3.7-RC1.zip
Raw History Compare with 3.6-RC2
md5
cddf6eebcacd4ccdeaa7ea735968a2b5
sha1
fa4972bf1397148088dd3f14350e6e7497b1415e
sha256
784b4d39fd487d989df2b10e6e77218f5bf846c2798d51f8a7f54f14cf0d265b
<?php
/**
 * The template for displaying featured posts on the front page
 *
 * @package WordPress
 * @subpackage Twenty_Fourteen
 * @since Twenty Fourteen 1.0
 */
?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	<a class="attachment-featured-featured" href="<?php the_permalink(); ?>" rel="<?php the_ID(); ?>">
		<?php
			if ( has_post_thumbnail() ) :
				the_post_thumbnail( 'featured-thumbnail-featured' );

			else :
				$images = get_children( array(
					'post_parent'    => get_the_ID(),
					'post_type'      => 'attachment',
					'post_mime_type' => 'image',
					'orderby'        => 'menu_order',
					'order'          => 'ASC',
					'numberposts'    => 1,
				) );

				if ( $images ) :
					$image = array_shift( $images );
					echo wp_get_attachment_image( $image->ID, 'featured-thumbnail-featured' );
				endif;
			endif;
		?>
	</a>

	<div class="entry-wrap">
		<header class="entry-header">
			<?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
			<div class="entry-meta">
				<span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
			</div><!-- .entry-meta -->
			<?php endif; ?>

			<?php the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); ?>
		</header><!-- .entry-header -->
	</div>
</article><!-- #post-## -->

No other release has this exact content. See every version of this file.