-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-image.php
46 lines (25 loc) · 1.11 KB
/
content-image.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
45
46
<div class="post-container">
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( has_post_thumbnail() ) : ?>
<div class="featured-media">
<?php the_post_thumbnail('post-thumb'); ?>
<a class="post-overlay" href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
<p class="view"><?php _e('View','fukasawa'); ?> →</p>
</a>
</div> <!-- /featured-media -->
<?php else : ?>
<div class="post-header">
<?php
$post_title = get_the_title();
if ( !empty( $post_title ) ) :
?>
<h2 class="post-title"><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<?php else : ?>
<div class="posts-meta">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_time(get_option('date_format')); ?></a>
</div>
<?php endif; ?>
</div> <!-- /post-header -->
<?php endif; ?>
</div> <!-- /post -->
</div> <!-- /post-container -->