[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * The template for displaying featured posts on the front page 4 * 5 * @package WordPress 6 * @subpackage Twenty_Fourteen 7 * @since Twenty Fourteen 1.0 8 */ 9 10 ?> 11 12 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 13 <a class="post-thumbnail" href="<?php the_permalink(); ?>"> 14 <?php 15 // Output the featured image. 16 if ( has_post_thumbnail() ) : 17 if ( 'grid' === get_theme_mod( 'featured_content_layout' ) ) { 18 the_post_thumbnail(); 19 } else { 20 the_post_thumbnail( 'twentyfourteen-full-width' ); 21 } 22 endif; 23 ?> 24 </a> 25 26 <header class="entry-header"> 27 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ), true ) && twentyfourteen_categorized_blog() ) : ?> 28 <div class="entry-meta"> 29 <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span> 30 </div><!-- .entry-meta --> 31 <?php endif; ?> 32 33 <?php the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); ?> 34 </header><!-- .entry-header --> 35 </article><!-- #post-<?php the_ID(); ?> -->
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated : Thu Nov 21 08:20:01 2024 | Cross-referenced by PHPXref |