Fix some js errors, see diff
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 :)
This commit is contained in:
@ -8,55 +8,55 @@
|
||||
* @since 1.0.0
|
||||
*/
|
||||
$post_content_type = apply_filters( 'sophia_after_dark_archive_post_content_type', 'excerpt' );
|
||||
if ( has_post_thumbnail() ) {
|
||||
$post_class = 'has-thumbnail wow fadeInUp';
|
||||
} else {
|
||||
$post_class = '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 ); ?>>
|
||||
<?php
|
||||
echo '<div class="thumb-cat-wrap">';
|
||||
|
||||
<div class="thumb-cat-wrap">
|
||||
<?php
|
||||
sophia_after_dark_post_thumbnail();
|
||||
sophia_after_dark_article_categories_list();
|
||||
echo '</div>';
|
||||
if ( 'post' === get_post_type() ) {
|
||||
?>
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php if ( 'post' === get_post_type() ) : ?>
|
||||
<div class="entry-cat">
|
||||
<?php
|
||||
sophia_after_dark_posted_on();
|
||||
sophia_after_dark_posted_by();
|
||||
?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<header class="entry-header">
|
||||
<?php the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); ?>
|
||||
<?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 ) {
|
||||
the_excerpt();
|
||||
} elseif ( 'content' === $post_content_type ) {
|
||||
<?php if ( 'excerpt' === $post_content_type ) : ?>
|
||||
<?php the_excerpt(); ?>
|
||||
<?php elseif ( 'content' === $post_content_type ) : ?>
|
||||
<?php
|
||||
the_content( sprintf(
|
||||
wp_kses(
|
||||
/* translators: %s: Name of current post. Only visible to screen readers */
|
||||
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'sophia-after-dark' ),
|
||||
array(
|
||||
'span' => array(
|
||||
'class' => array(),
|
||||
),
|
||||
)
|
||||
[ 'span' => [ 'class' => [] ] ]
|
||||
),
|
||||
get_the_title()
|
||||
) );
|
||||
}
|
||||
?>
|
||||
?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<footer class="entry-footer">
|
||||
<?php sophia_after_dark_entry_footer(); ?>
|
||||
</footer>
|
||||
</article>
|
||||
|
||||
</article>
|
||||
|
Reference in New Issue
Block a user