forked from AlxMedia/inunity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent.php
37 lines (32 loc) · 1.69 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
<article id="post-<?php the_ID(); ?>" <?php post_class('type-portfolio'); ?>>
<div class="type-portfolio-inner">
<div class="type-portfolio-thumb">
<a href="<?php the_permalink(); ?>">
<?php if ( has_post_thumbnail() ) : ?>
<?php the_post_thumbnail('inunity-medium-h'); ?>
<?php else: ?>
<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
<?php endif; ?>
<?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fas fa-play"></i></span>'; ?>
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fas fa-volume-up"></i></span>'; ?>
<?php if ( is_sticky() ) echo'<span class="thumb-icon"><i class="fas fa-star"></i></span>'; ?>
</a>
<?php if ( comments_open() && ( get_theme_mod( 'comment-count', 'on' ) =='on' ) ): ?>
<a class="type-portfolio-comments" href="<?php comments_link(); ?>"><i class="fas fa-comment"></i><span><?php comments_number( '0', '1', '%' ); ?></span></a>
<?php endif; ?>
</div>
<div class="type-portfolio-content">
<?php if ( get_theme_mod( 'item-titles', 'on' ) =='on' ): ?>
<h3 class="type-portfolio-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h3>
<?php endif; ?>
<?php if (get_theme_mod('excerpt-length','0') != '0'): ?>
<div class="type-portfolio-excerpt">
<?php the_excerpt(); ?>
</div>
<?php endif; ?>
<?php if ( has_category() && ( get_theme_mod( 'item-category', 'on' ) =='on' ) ): ?>
<div class="type-portfolio-category"><?php the_category(' / '); ?></div>
<?php endif; ?>
</div>
</div>
</article>