hueman/parts/related-posts.php
nikeo 6f0b21e67d = 3.1.2 May 3rd 2016 =
* fixed : Language Label in Translation Files
* fixed : the author name links to the post itself
* fixed : Featured post slider controls (arrows) overflow content container when blog heading is disabled
* fixed : Header image alt attribute is empty.
* fixed : Change Default Widget Names and CSS id properties. Could be in collision with some plugins
* added : Featured posts : new option to display the full content (instead of the excerpt) of the featured posts. Modified template : content-featured.php.
* added : Featured posts : swipe gesture supported on mobile devices like tablets and smartphones
* added : Customizer : Pre setup step when adding a new widget zone or social icons.
* improved : Customizer user interface have been improved for the social links and the widget zones. It's now easier to drag, edit and remove items.
* improved : Introduced a pluggable function ( hu_print_placeholder_thumb() )to print the placeholder thumbnail. Modified templates : content-featured.php, content.php, parts/related-posts.php
* updated : jQuery FlexSider to v2.6.0 (latest). Support swipe touch navigation
* changed : Header widget and full width footer widget are now enabled by default
* changed : The footer-ads option has been moved in the Footer Design section. The title and description of this setting have been clarified.
2016-05-03 15:07:02 +02:00

51 lines
1.8 KiB
PHP

<?php $related = hu_related_posts(); ?>
<?php if ( $related->have_posts() ): ?>
<h4 class="heading">
<i class="fa fa-hand-o-right"></i><?php _e('You may also like...','hueman'); ?>
</h4>
<ul class="related-posts group">
<?php while ( $related->have_posts() ) : $related->the_post(); ?>
<li class="related post-hover">
<article <?php post_class(); ?>>
<div class="post-thumbnail">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php if ( has_post_thumbnail() ): ?>
<?php the_post_thumbnail('thumb-medium'); ?>
<?php elseif ( hu_is_checked('placeholder') ): ?>
<?php hu_print_placeholder_thumb(); ?>
<?php endif; ?>
<?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fa fa-play"></i></span>'; ?>
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fa fa-volume-up"></i></span>'; ?>
<?php if ( is_sticky() ) echo'<span class="thumb-icon small"><i class="fa fa-star"></i></span>'; ?>
</a>
<?php if ( comments_open() && ( hu_is_checked( 'comment-count' ) ) ): ?>
<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; ?>
</div><!--/.post-thumbnail-->
<div class="related-inner">
<h4 class="post-title entry-title">
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>
</h4><!--/.post-title-->
<div class="post-meta group">
<?php get_template_part('parts/post-list-author-date'); ?>
</div><!--/.post-meta-->
</div><!--/.related-inner-->
</article>
</li><!--/.related-->
<?php endwhile; ?>
<?php wp_reset_postdata(); ?>
</ul><!--/.post-related-->
<?php endif; ?>
<?php wp_reset_query(); ?>