mirror of
https://ghproxy.net/https://github.com/AlxMedia/splits.git
synced 2025-08-26 06:20:51 +08:00
Initial commit
This commit is contained in:
commit
9f13aa6240
389 changed files with 84369 additions and 0 deletions
29
content-featured.php
Normal file
29
content-featured.php
Normal file
|
@ -0,0 +1,29 @@
|
|||
<?php $format = get_post_format(); ?>
|
||||
|
||||
<div class="featured" id="post-<?php the_ID(); ?>">
|
||||
<div class="featured-thumb">
|
||||
<a href="<?php the_permalink(); ?>">
|
||||
<?php if ( has_post_thumbnail() ): ?>
|
||||
<?php the_post_thumbnail('split-large'); ?>
|
||||
<?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?>
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
|
||||
<?php endif; ?>
|
||||
</a>
|
||||
<?php if ( comments_open() && ( get_theme_mod( 'comment-count','on' ) == 'on' ) ): ?>
|
||||
<a class="post-comments" href="<?php comments_link(); ?>"><span><i class="fas fa-comments"></i><?php comments_number( '0', '1', '%' ); ?></span></a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="featured-wrap pad">
|
||||
<div class="featured-date"><?php the_time( get_option('date_format') ); ?></div>
|
||||
<h2 class="featured-title">
|
||||
<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
|
||||
</h2>
|
||||
<?php if (get_theme_mod('excerpt-length','24') != '0'): ?>
|
||||
<div class="entry excerpt">
|
||||
<?php the_excerpt(); ?>
|
||||
</div><!--/.entry-->
|
||||
<?php endif; ?>
|
||||
<div class="featured-category"><?php the_category(' / '); ?></div>
|
||||
</div>
|
||||
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue