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 :)
56 lines
1.7 KiB
PHP
56 lines
1.7 KiB
PHP
<?php
|
|
/**
|
|
* Template part for displaying single post
|
|
*
|
|
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
|
*
|
|
* @package Sophia After Dark
|
|
* @since 1.0.0
|
|
*/
|
|
|
|
$post_class = has_post_thumbnail() ? 'has-thumbnail' : 'no-thumbnail';
|
|
?>
|
|
|
|
<article id="post-<?php the_ID(); ?>" <?php post_class( $post_class ); ?>>
|
|
|
|
<?php if ( has_post_thumbnail() ) : ?>
|
|
<div class="post-thumbnail">
|
|
<?php the_post_thumbnail( 'full' ); ?>
|
|
<div class="post-info-wrap">
|
|
<div class="post-cat"><?php sophia_after_dark_article_categories_list(); ?></div>
|
|
<div class="entry-meta">
|
|
<?php
|
|
sophia_after_dark_posted_on();
|
|
sophia_after_dark_posted_by();
|
|
?>
|
|
</div>
|
|
<?php the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' ); ?>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<div class="entry-content">
|
|
<?php
|
|
the_content( sprintf(
|
|
wp_kses(
|
|
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'sophia-after-dark' ),
|
|
[ 'span' => [ 'class' => [] ] ]
|
|
),
|
|
get_the_title()
|
|
) );
|
|
|
|
wp_link_pages( [
|
|
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'sophia-after-dark' ),
|
|
'after' => '</div>',
|
|
] );
|
|
?>
|
|
</div>
|
|
|
|
<footer class="entry-footer">
|
|
<?php sophia_after_dark_entry_footer(); ?>
|
|
</footer>
|
|
|
|
<?php get_template_part( 'template-parts/author/post', 'author-box' ); ?>
|
|
|
|
</article>
|