forked from themegrill/spacious
-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-blog-image-large.php
44 lines (38 loc) · 1.16 KB
/
content-blog-image-large.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
* The template used for displaying blog image large post.
*
* @package ThemeGrill
* @subpackage Spacious
* @since Spacious 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php do_action( 'spacious_before_post_content' ); ?>
<header class="entry-header">
<h2 class="entry-title">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute();?>"><?php the_title(); ?></a>
</h2>
<div class="posted-date"><?php echo get_the_date('F j, Y'); ?></div>
</header>
<?php
if( has_post_thumbnail() ) {
$image = '';
$title_attribute = get_the_title( $post->ID );
$image .= '<figure class="post-featured-image">';
$image .= '<a href="' . get_permalink() . '" title="'.the_title( '', '', false ).'">';
$image .= get_the_post_thumbnail( $post->ID, 'post-thumbnail', array( 'title' => esc_attr( $title_attribute ), 'alt' => esc_attr( $title_attribute ) ) ).'</a>';
$image .= '</figure>';
echo $image;
}
?>
<div class="entry-content clearfix">
<?php
the_excerpt();
?>
</div>
<?php spacious_entry_meta(); ?>
<?php
do_action( 'spacious_after_post_content' );
?>
</article>