mirror of
https://ghproxy.net/https://github.com/AlxMedia/blogstream.git
synced 2025-08-27 01:43:46 +08:00
1.0.7
This commit is contained in:
parent
d77022c0b6
commit
e9cb86712d
21 changed files with 1277 additions and 241 deletions
23
content-featured.php
Normal file
23
content-featured.php
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?php $format = get_post_format(); ?>
|
||||
|
||||
<div class="featured-item-outer group">
|
||||
<div class="featured-item-wrap group">
|
||||
|
||||
<div class="featured-item">
|
||||
|
||||
<a class="featured-item-link" href="<?php the_permalink(); ?>"></a>
|
||||
|
||||
<div class="featured-item-thumb" style="background-image:url('<?php if ( has_post_thumbnail() ): ?><?php the_post_thumbnail_url('blogstream-medium'); ?><?php else: ?><?php echo esc_url( get_template_directory_uri() ); ?>/img/thumb-medium.png<?php endif; ?>');">
|
||||
<?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>
|
||||
|
||||
<div class="featured-item-content">
|
||||
<h3 class="featured-item-title"><?php the_title(); ?></h3>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue