ldc-groupe/content/themes/ldc/category-news.php
Vincent BRIDIER 067c15466a - Retours 2
2020-06-25 10:40:14 +02:00

74 lines
2.5 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/*
Template Name: Page News
*/
?>
<?php
get_header();
global $tp;
$term = get_queried_object();
$hero = get_field('hero', $term);
$term = get_queried_object();
$cat_obj = get_category_by_slug($term->slug);
$years = get_posts_years_array($cat_obj);
?>
<?php
set_query_var('hero', get_field('hero', $term));
get_template_part('partials/hero');
?>
<?php get_template_part('partials/breadcrumbs'); ?>
<div class="filter-posts">
<div class="filter fw fw-container no-bottom-padding" data-limit="9">
<div class="filter__wrapper wrapper">
<div class="filter-menu">
<div class="filter__select-wrap filter-select-wrap">
<ul class="filter-select">
<li>
<a title="Thématique">Thématique</a>
<?php tags_filter('news') ?>
</li>
</ul>
<ul class="filter-select">
<li>
<a title="Année">Année</a>
<?php filter_years_html($years, $term->slug) ?>
</li>
</ul>
</div>
<div class="filter-results-num">
Résultat : <span class="filter-results-num__wrap"><span class="filter-results-num__current"></span> documents sur <span class="filter-results-num__total"></span></span>
</div>
</div>
<div class="active-filters">
<div class="active-filters__list">
<!-- <div class="active-filters__item"><a class="active-filters__item-remove">&#10006;</a> Finance</div> -->
</div>
<div class="active-filters__clear-wrap">
<div class="active-filters__item active-filters__item_clear"><a class="active-filters__item-remove clear-all" title="Effacer les filtres">&#10006;</a> Effacer les filtres</div>
</div>
</div>
</div>
</div>
<div class="posts-list fw tagged-posts">
<div class="posts-list__wrapper wrapper">
<div class="list-items posts-container" id="posts-container">
<?php echo do_shortcode('[ajax_load_more id="news" category="news" loading_style="infinite fading-circles" post_type="post" posts_per_page="9" max_pages="1" scroll="true" button_label="Voir plus d’actualités" nester="true"]') ?>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>