did some sniff sniff
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
* @since 1.0.0
|
||||
*/
|
||||
$post_content_type = apply_filters( 'sophia_after_dark_archive_post_content_type', 'excerpt' );
|
||||
$post_class = has_post_thumbnail() ? 'has-thumbnail wow fadeInUp' : 'no-thumbnail wow fadeInUp';
|
||||
$post_class = has_post_thumbnail() ? 'has-thumbnail wow fadeInUp' : 'no-thumbnail wow fadeInUp';
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class( $post_class ); ?>>
|
||||
@@ -30,13 +30,15 @@ $post_class = has_post_thumbnail() ? 'has-thumbnail wow fadeInUp' : 'no-thumbnai
|
||||
<?php endif; ?>
|
||||
|
||||
<header class="entry-header">
|
||||
<?php the_title(
|
||||
<?php
|
||||
the_title(
|
||||
sprintf(
|
||||
'<h2 class="entry-title"><a href="%s" rel="bookmark">',
|
||||
esc_url( get_permalink() )
|
||||
),
|
||||
'</a></h2>'
|
||||
); ?>
|
||||
);
|
||||
?>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
@@ -44,13 +46,15 @@ $post_class = has_post_thumbnail() ? 'has-thumbnail wow fadeInUp' : 'no-thumbnai
|
||||
<?php the_excerpt(); ?>
|
||||
<?php elseif ( 'content' === $post_content_type ) : ?>
|
||||
<?php
|
||||
the_content( sprintf(
|
||||
wp_kses(
|
||||
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'sophia-after-dark' ),
|
||||
[ 'span' => [ 'class' => [] ] ]
|
||||
),
|
||||
get_the_title()
|
||||
) );
|
||||
the_content(
|
||||
sprintf(
|
||||
wp_kses(
|
||||
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'sophia-after-dark' ),
|
||||
array( 'span' => array( 'class' => array() ) )
|
||||
),
|
||||
get_the_title()
|
||||
)
|
||||
);
|
||||
?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user