mirror of
https://gh.wpcy.net/https://github.com/AlxMedia/folias.git
synced 2026-07-17 10:16:48 +08:00
35 lines
No EOL
1.8 KiB
PHP
35 lines
No EOL
1.8 KiB
PHP
<?php $format = get_post_format(); ?>
|
|
|
|
<div class="featured-item">
|
|
<div class="featured-item-right" href="<?php the_permalink(); ?>" style="background-image:url('<?php the_post_thumbnail_url('folias-square'); ?>');">
|
|
<a class="featured-item-link" href="<?php the_permalink(); ?>" rel="bookmark">
|
|
<?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 (get_theme_mod('hover-date','on') == 'on'): ?>
|
|
<div class="type-portfolio-date">
|
|
<div class="type-portfolio-date-month"><?php the_time('M') ?></div>
|
|
<div class="type-portfolio-date-day"><?php the_time('d') ?></div>
|
|
<div class="type-portfolio-date-year"><?php the_time('Y') ?></div>
|
|
</div>
|
|
<?php endif; ?>
|
|
<?php if ( get_theme_mod('comment-count','on') == 'on' ): ?>
|
|
<div class="type-portfolio-comments">
|
|
<a class="post-comments" href="<?php comments_link(); ?>"><span><?php comments_number( '0', '1', '%' ); ?></span></a>
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
<div class="featured-item-left">
|
|
<div class="featured-item-bottom">
|
|
<div class="featured-item-avatar"><?php echo get_avatar(get_the_author_meta('user_email'),'128'); ?></div>
|
|
<h2 class="featured-item-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
|
|
<div class="featured-item-category"><?php the_category(' / '); ?></div>
|
|
<?php if (get_theme_mod('excerpt-length','16') != '0'): ?>
|
|
<div class="featured-item-excerpt">
|
|
<?php the_excerpt(); ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|