set sophia_after_dark_enable_top_header always to false, as it would a a bar to the top of the page below the admin bar also did some general fixing on php :)
63 lines
1.5 KiB
PHP
63 lines
1.5 KiB
PHP
<?php
|
|
/**
|
|
* Template part for displaying results in search pages
|
|
*
|
|
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
|
*
|
|
* @package Sophia After Dark
|
|
* @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';
|
|
?>
|
|
|
|
<article id="post-<?php the_ID(); ?>" <?php post_class( $post_class ); ?>>
|
|
|
|
<div class="thumb-cat-wrap">
|
|
<?php
|
|
sophia_after_dark_post_thumbnail();
|
|
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(
|
|
sprintf(
|
|
'<h2 class="entry-title"><a href="%s" rel="bookmark">',
|
|
esc_url( get_permalink() )
|
|
),
|
|
'</a></h2>'
|
|
); ?>
|
|
</header>
|
|
|
|
<div class="entry-content">
|
|
<?php if ( 'excerpt' === $post_content_type ) : ?>
|
|
<?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()
|
|
) );
|
|
?>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
<footer class="entry-footer">
|
|
<?php sophia_after_dark_entry_footer(); ?>
|
|
</footer>
|
|
|
|
</article>
|