26 lines
626 B
PHP
26 lines
626 B
PHP
|
<?php
|
||
|
/**
|
||
|
* The template for displaying featured posts on the front page
|
||
|
*
|
||
|
* @package Canard
|
||
|
*/
|
||
|
?>
|
||
|
|
||
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||
|
<a class="post-thumbnail" href="<?php the_permalink(); ?>">
|
||
|
<?php
|
||
|
// Output the featured image.
|
||
|
if ( has_post_thumbnail() ) {
|
||
|
the_post_thumbnail( 'canard-featured-content-thumbnail' );
|
||
|
}
|
||
|
?>
|
||
|
</a>
|
||
|
|
||
|
<header class="entry-header">
|
||
|
<?php
|
||
|
canard_entry_categories();
|
||
|
the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">','</a></h1>' );
|
||
|
?>
|
||
|
</header><!-- .entry-header -->
|
||
|
</article><!-- #post-## -->
|