-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcontent-featured.php
27 lines (19 loc) · 1019 Bytes
/
content-featured.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
<div class="featured-card">
<div class="featured-card-inner">
<a href="<?php the_permalink(); ?>" class="featured-card-thumb" style="background-image:url('<?php the_post_thumbnail_url('clearer-huge'); ?>');">
<?php if ( has_post_thumbnail() ): ?>
<?php else: ?>
<i class="fas fa-image"></i>
<?php endif; ?>
</a>
<?php if ( comments_open() && ( get_theme_mod( 'comment-count', 'on' ) =='on' ) ): ?>
<?php $number = get_comments_number( $post->ID ); if ( $number > 0 ) { ?>
<a class="comments-bubble" href="<?php comments_link(); ?>"><i class="fas fa-comment"></i><span><?php comments_number( '0', '1', '%' ); ?></span></a>
<?php } ?>
<?php endif; ?>
<h2 class="featured-large-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php if ( get_theme_mod( 'more-link', 'on' ) =='on' ): ?>
<a class="more-link-custom" href="<?php the_permalink(); ?>"><i class="fas fa-arrow-right"></i></a>
<?php endif; ?>
</div>
</div>