mirror of
https://ghproxy.net/https://github.com/AlxMedia/microtype.git
synced 2025-08-27 01:06:46 +08:00
17 lines
No EOL
874 B
PHP
17 lines
No EOL
874 B
PHP
<article id="post-<?php the_ID(); ?>" <?php post_class('box'); ?>>
|
|
<a href="<?php the_permalink(); ?>" rel="bookmark" class="<?php if ( has_post_thumbnail() ) echo 'box-thumbnail-enabled'; ?>">
|
|
|
|
<?php if ( has_post_thumbnail() ): ?>
|
|
<div class="box-thumbnail">
|
|
<?php the_post_thumbnail('microtype-small'); ?>
|
|
<?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-play"></i></span>'; ?>
|
|
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-volume-up"></i></span>'; ?>
|
|
<?php if ( is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-star"></i></span>'; ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<h2 class="box-title"><?php the_title(); ?></h2>
|
|
<span class="box-date"><?php the_time( get_option('date_format') ); ?></span>
|
|
|
|
</a>
|
|
</article>
|