2017-03-30 16:27:22 +02:00
|
|
|
<section data-post-type="<?= $attributes['post_type']; ?>" data-quantity="<?= $attributes['posts_per_page']; ?>" class="js-container-async ajax-posts">
|
|
|
|
<button class="js-toggle-filters ajax-posts__toggle-filter">
|
2017-03-31 10:40:22 +02:00
|
|
|
<span class="ajax-posts__filter-recipes-text">+ <?= __('Filter', $this->plugin_name) . ' ' . $plural_post_name; ?></span>
|
|
|
|
<span class="ajax-posts__show-recipes-text">+ <?= __('Show', $this->plugin_name) . ' ' . $plural_post_name; ?></span>
|
|
|
|
<span class="ajax-posts__hide-filters-text">- <?php _e('Hide filters', $this->plugin_name); ?></span>
|
2017-03-30 16:27:22 +02:00
|
|
|
</button>
|
2017-03-31 10:40:22 +02:00
|
|
|
<div class="ajax-posts__view">
|
|
|
|
<aside class="ajax-posts__filters">
|
|
|
|
<?php include(plugin_dir_path( __FILE__ ) . 'partials/filters.php' ); ?>
|
|
|
|
</aside>
|
|
|
|
<div class="ajax-posts__status"></div>
|
|
|
|
<div class="ajax-posts__posts">
|
|
|
|
<?php include(plugin_dir_path( __FILE__ ) . 'partials/loop.php' ); ?>
|
|
|
|
</div>
|
2017-03-30 16:27:22 +02:00
|
|
|
</div>
|
|
|
|
<div class="ajax-posts__spinner">
|
|
|
|
<span class="ajax-posts__screen-reader-only"><?php _e('Loading', $this->plugin_name); ?></span>
|
|
|
|
</div>
|
|
|
|
</section>
|