Make it so "Related Posts" thumbnail is a link :3
This commit is contained in:
@ -6,31 +6,39 @@
|
|||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( has_post_thumbnail() ) {
|
if (has_post_thumbnail()) {
|
||||||
$post_class = 'has-thumbnail wow fadeInUp';
|
$post_class = "has-thumbnail wow fadeInUp";
|
||||||
} else {
|
} else {
|
||||||
$post_class = 'no-thumbnail wow fadeInUp';
|
$post_class = "no-thumbnail wow fadeInUp";
|
||||||
}
|
} ?>
|
||||||
?>
|
|
||||||
|
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class( $post_class ); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class($post_class); ?>>
|
||||||
<?php
|
<?php
|
||||||
echo '<div class="thumb-cat-wrap">';
|
echo '<div class="thumb-cat-wrap">';
|
||||||
|
if (has_post_thumbnail()) {
|
||||||
|
echo '<a href="' . esc_url(get_permalink()) . '" rel="bookmark">';
|
||||||
sophia_after_dark_post_thumbnail();
|
sophia_after_dark_post_thumbnail();
|
||||||
|
echo "</a>";
|
||||||
|
}
|
||||||
sophia_after_dark_article_categories_list();
|
sophia_after_dark_article_categories_list();
|
||||||
echo '</div>';
|
echo "</div>";
|
||||||
if ( 'post' === get_post_type() ) {
|
if ("post" === get_post_type()) { ?>
|
||||||
?>
|
|
||||||
<div class="entry-cat">
|
<div class="entry-cat">
|
||||||
<?php
|
<?php
|
||||||
sophia_after_dark_posted_on();
|
sophia_after_dark_posted_on();
|
||||||
sophia_after_dark_posted_by();
|
sophia_after_dark_posted_by();
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php }
|
||||||
|
?>
|
||||||
|
|
||||||
<header class="entry-header">
|
<header class="entry-header">
|
||||||
<?php the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); ?>
|
<?php the_title(
|
||||||
|
'<h2 class="entry-title"><a href="' .
|
||||||
|
esc_url(get_permalink()) .
|
||||||
|
'" rel="bookmark">',
|
||||||
|
"</a></h2>"
|
||||||
|
); ?>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<footer class="entry-footer">
|
<footer class="entry-footer">
|
||||||
|
Reference in New Issue
Block a user