forked from neerav/koster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
content.php
40 lines (23 loc) · 1.17 KB
/
content.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
<article <?php post_class(); ?>>
<h1 class="title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'koster' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<?php
// Get the featured image
$image_id = get_post_thumbnail_id();
// Get the full size image details
$image_url = wp_get_attachment_image_src($image_id, 'full');
$image_url = $image_url[0];
// Get the smaller image
$bw_image_url = wp_get_attachment_image_src($image_id, 'thumbnail-bw');
$bw_image_url = $bw_image_url[0];
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
?>
<img class="featured-image wp-post-image" src="<?php echo $bw_image_url; ?>" data-fullsrc="<?php echo $image_url; ?>" title="<?php the_title(); ?>" id="post-featured-img" />
<?php } ?>
<aside class="threecol meta">
<?php koster_post_meta(); ?>
</aside>
<section class="article-content ninecol last">
<?php the_content( __( 'Continue reading →', 'koster' ) ); ?>
<?php the_tags('<strong>Tagged</strong> ',', ',''); ?>
</section><!--/.article-content-->
</article>