mirror of
https://ghproxy.net/https://github.com/AlxMedia/blogstream.git
synced 2025-08-26 15:00:05 +08:00
58 lines
No EOL
2.7 KiB
PHP
58 lines
No EOL
2.7 KiB
PHP
<?php $format = get_post_format(); ?>
|
|
|
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
|
|
|
<div class="entry-list-wrap group">
|
|
<div class="entry-media">
|
|
<?php if ( has_post_thumbnail() ) : ?>
|
|
<a href="<?php the_permalink(); ?>">
|
|
<div class="image-container">
|
|
<?php the_post_thumbnail('blogstream-large'); ?>
|
|
<?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>'; ?>
|
|
|
|
<?php if ( comments_open() && ( get_theme_mod( 'comment-count', 'on' ) =='on' ) ): ?>
|
|
<a class="entry-comments" href="<?php comments_link(); ?>"><i class="fas fa-comment"></i><span><?php comments_number( '0', '1', '%' ); ?></span></a>
|
|
<?php endif; ?>
|
|
</div>
|
|
</a>
|
|
<?php else: ?>
|
|
<a href="<?php the_permalink(); ?>">
|
|
<div class="image-container">
|
|
<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/img/thumb-medium.png" />
|
|
<?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>'; ?>
|
|
|
|
<?php if ( comments_open() && ( get_theme_mod( 'comment-count', 'on' ) =='on' ) ): ?>
|
|
<a class="entry-comments" href="<?php comments_link(); ?>"><i class="fas fa-comment"></i><span><?php comments_number( '0', '1', '%' ); ?></span></a>
|
|
<?php endif; ?>
|
|
</div>
|
|
</a>
|
|
<?php endif; ?>
|
|
</div>
|
|
<header class="entry-header group">
|
|
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
|
|
</header>
|
|
<div class="entry-content">
|
|
<div class="entry">
|
|
|
|
<?php if (get_theme_mod('excerpt-length','26') != '0'): ?>
|
|
<?php the_excerpt(); ?>
|
|
<a class="more-link" href="<?php the_permalink(); ?>"><?php esc_html_e('Continue reading...','blogstream'); ?></a>
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="entry-meta group">
|
|
<div class="entry-meta-inner">
|
|
<span class="posted-on"><?php the_time( get_option('date_format') ); ?></span>
|
|
<span class="byline"><?php esc_html_e('by','blogstream'); ?> <span class="author"><?php the_author_posts_link(); ?></span></span>
|
|
<span class="entry-category"><?php the_category(' '); ?></span>
|
|
</div>
|
|
</div>
|
|
|
|
</article><!--/.post-->
|