mirror of
https://ghproxy.net/https://github.com/AlxMedia/featureon.git
synced 2025-08-26 11:38:56 +08:00
Initial commit
This commit is contained in:
commit
600ce12d26
390 changed files with 85395 additions and 0 deletions
20
content-highlight.php
Normal file
20
content-highlight.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php $format = get_post_format(); ?>
|
||||
|
||||
<div class="featured-item-small" id="post-<?php the_ID(); ?>">
|
||||
<a class="featured-link" href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
|
||||
|
||||
<?php if ( has_post_thumbnail() ): ?>
|
||||
<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'magazinertwo-medium' ); ?>
|
||||
<img src="<?php echo $image[0]; ?>" alt="<?php the_title_attribute(); ?>" />
|
||||
<?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; ?>
|
||||
|
||||
<div class="featured-content">
|
||||
<h3 class="featured-title"><?php the_title(); ?></h3>
|
||||
<div class="featured-date"><?php the_time( get_option('date_format') ); ?></div>
|
||||
</div>
|
||||
<?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>
|
Loading…
Add table
Add a link
Reference in a new issue