mirror of
https://ghproxy.net/https://github.com/AlxMedia/boxstyle.git
synced 2025-08-26 08:15:24 +08:00
26 lines
No EOL
1.3 KiB
PHP
26 lines
No EOL
1.3 KiB
PHP
<article id="post-<?php the_ID(); ?>" <?php post_class('group'); ?>>
|
|
<div class="post-inner post-hover">
|
|
|
|
<div class="post-thumbnail">
|
|
<a href="<?php the_permalink(); ?>">
|
|
<?php if ( has_post_thumbnail() ): ?>
|
|
<?php the_post_thumbnail('boxstyle-large'); ?>
|
|
<?php else: ?>
|
|
<img src="<?php echo 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="fa fa-play"></i></span>'; ?>
|
|
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fa fa-volume-up"></i></span>'; ?>
|
|
<?php if ( is_sticky() ) echo'<span class="thumb-icon"><i class="fa fa-star"></i></span>'; ?>
|
|
</a>
|
|
<?php if ( comments_open() && ( get_theme_mod( 'comment-count','on' ) == 'on' ) ): ?>
|
|
<a class="post-comments" href="<?php comments_link(); ?>"><span><i class="fa fa-comments-o"></i><?php comments_number( '0', '1', '%' ); ?></span></a>
|
|
<?php endif; ?>
|
|
|
|
<h2 class="post-title">
|
|
<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
|
|
</h2><!--/.post-title-->
|
|
|
|
</div><!--/.post-thumbnail-->
|
|
|
|
</div><!--/.post-inner-->
|
|
</article><!--/.post-->
|