forked from hakkens/davehakkens
-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-none.php
42 lines (32 loc) · 896 Bytes
/
content-none.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
<?php $thumbnail_url = wp_get_attachment_url( get_post_thumbnail_id( $post->ID ) ); ?>
<div style="background-image: url('<?= $thumbnail_url; ?>');" class="thumbnail">
<div class="shadow"></div>
<div class="meta">
<h1><?php the_title(); ?></h1>
<?php if( isset( $post_meta['subtitle'][0] ) ): ?>
<h3><?= $post_meta['subtitle'][0]; ?></h3>
<?php endif; ?>
</div>
</div>
<div class="post-content">
<?php the_content(); ?>
<div class="meta">
<div class="tags"> <p>
<?php
if($catID!= ''){
foreach (get_the_tags() as $tag){
echo ' #' . $tag->name . ' ';
}
} else {
foreach (get_the_tags() as $tag){
echo ' <a href="/tag/' . $tag->name . '">#' . $tag->name . '</a>';
}
}
?>
</p></div> <?php if(function_exists('wp_ulike')) wp_ulike('get'); ?></div>
</div>
<?php edit_post_link(); ?>
</div>
<div class="post-comments">
<?php comments_template(); ?>
</div>