40 lines
1.1 KiB
PHP
40 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* Template part for displaying related post
|
|
*
|
|
* @package Sophia After Dark
|
|
* @since 1.0.0
|
|
*/
|
|
|
|
$post_class = has_post_thumbnail() ? "has-thumbnail wow fadeInUp" : "no-thumbnail wow fadeInUp";
|
|
?>
|
|
|
|
<article id="post-<?php the_ID(); ?>" <?php post_class( $post_class ); ?>>
|
|
<div class="thumb-cat-wrap">
|
|
<?php if ( has_post_thumbnail() ) : ?>
|
|
<a href="<?php echo esc_url( get_permalink() ); ?>" rel="bookmark">
|
|
<?php sophia_after_dark_post_thumbnail(); ?>
|
|
</a>
|
|
<?php endif; ?>
|
|
|
|
<?php sophia_after_dark_article_categories_list(); ?>
|
|
</div>
|
|
|
|
<?php if ( "post" === get_post_type() ) : ?>
|
|
<div class="entry-cat">
|
|
<?php
|
|
sophia_after_dark_posted_on();
|
|
sophia_after_dark_posted_by();
|
|
?>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<header class="entry-header">
|
|
<?php the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); ?>
|
|
</header>
|
|
|
|
<footer class="entry-footer">
|
|
<?php sophia_after_dark_entry_footer(); ?>
|
|
</footer>
|
|
</article>
|