Modifiche minori al codice html

This commit is contained in:
ulaulaman 2020-07-31 11:10:13 +02:00
parent e16d7d1361
commit c2d08e85c0
2 changed files with 6 additions and 6 deletions

View File

@ -3,11 +3,11 @@
<?php if ( $query->have_posts() && $query->post_count > 1) : ?>
<button class="js-toggle-filters ajax-posts__toggle-filter">
<span class="ajax-posts__filter-recipes-text">+ <?php printf( __('Mostra filtri %s', 'ajax-filter-posts'), $plural_post_name); ?></span>
<span class="ajax-posts__show-recipes-text">+ <?php printf( __('Mostra %s', 'ajax-filter-posts'), $plural_post_name); ?></span>
<span class="ajax-posts__hide-filters-text">- <?= __('Nascondi filtri', 'ajax-filter-posts'); ?></span>
<span class="ajax-posts__show-recipes-text">+ <?php printf( __('Mostra %s', 'ajax-filter-posts'), $plural_post_name); ?></span>
<span class="ajax-posts__hide-filters-text">- <?= __('Nascondi filtri', 'ajax-filter-posts'); ?></span>
</button>
<?php endif; ?>
<div class="ajax-posts__view">
<div class="ajax-posts__view">
<aside class="ajax-posts__filters">
<?php if ( $query->have_posts() && $query->post_count > 1) : ?>
<?php include( $this->get_local_template('partials/filters.php') ); ?>

View File

@ -7,14 +7,14 @@
<h3><?php the_title(); ?></h3>
<?php if ( has_excerpt() ) { the_excerpt(); }?>
</a>
</article>
</article>
</div>
<?php endwhile; ?>
<?php if (!$this->is_last_page($query)) : ?>
<div class="ajax-posts__load-more">
<button class="js-load-more" data-page="<?= $this->get_page_number($query) + 1; ?>">
<?php _e('Carica altro', 'ajax-filter-posts') ?>
</button>
<?php _e('Carica altro', 'ajax-filter-posts') ?>
</button>
</div>
<?php endif; ?>
<?php else: ?>