did some sniff sniff
This commit is contained in:
20
index.php
20
index.php
@@ -17,7 +17,7 @@ declare(strict_types=1);
|
||||
|
||||
get_header();
|
||||
|
||||
$archive_style = get_theme_mod('sophia_after_dark_archive_style', 'sad-archive--masonry-style');
|
||||
$archive_style = get_theme_mod( 'sophia_after_dark_archive_style', 'sad-archive--masonry-style' );
|
||||
|
||||
?>
|
||||
|
||||
@@ -25,36 +25,36 @@ $archive_style = get_theme_mod('sophia_after_dark_archive_style', 'sad-archive--
|
||||
<div itemscope id="primary" class="content-area">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<?php if ('sad-archive--block-grid-style' === $archive_style): ?>
|
||||
<?php if ( 'sad-archive--block-grid-style' === $archive_style ) : ?>
|
||||
<div class="archive-grid-post-wrapper">
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (have_posts()): ?>
|
||||
<?php if ( have_posts() ) : ?>
|
||||
|
||||
<?php if ('sad-archive--masonry-style' === $archive_style): ?>
|
||||
<?php if ( 'sad-archive--masonry-style' === $archive_style ) : ?>
|
||||
<div class="sophia-after-dark-content-masonry">
|
||||
<div id="sad-masonry">
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
while (have_posts()):
|
||||
while ( have_posts() ) :
|
||||
the_post();
|
||||
get_template_part('template-parts/content', get_post_format());
|
||||
get_template_part( 'template-parts/content', get_post_format() );
|
||||
endwhile;
|
||||
?>
|
||||
|
||||
<?php if ('sad-archive--masonry-style' === $archive_style): ?>
|
||||
<?php if ( 'sad-archive--masonry-style' === $archive_style ) : ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php the_posts_pagination(); ?>
|
||||
|
||||
<?php else: ?>
|
||||
<?php get_template_part('template-parts/content', 'none'); ?>
|
||||
<?php else : ?>
|
||||
<?php get_template_part( 'template-parts/content', 'none' ); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ('sad-archive--block-grid-style' === $archive_style): ?>
|
||||
<?php if ( 'sad-archive--block-grid-style' === $archive_style ) : ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user