<commit_before>@extends('layouts.base')
@section('content')

    @include('partials.page-header')

    @if (!have_posts())
        <div class="alert alert-warning">
            {{ __('Sorry, no results were found.', 'sage') }}
        </div>
        {!! get_search_form(false) !!}
    @endif

    @php($the_query = new WP_Query(array(
    'post_type' => 'concert',
    'annee' => date('Y'),
    'orderby'   => 'annee',
	'order' => 'ASC')))

    @if($the_query->have_posts())
        @while( $the_query->have_posts())
            @php($the_query->the_post())
            @include ('partials.content-concert')
        @endwhile
    @else
        <p>Pas de concerts</p>
    @endif

    @php($tax = 'taxonomy_annee')
    @php($terms = get_terms('annee'))
    @if ($terms != null )
        <ul>
            @foreach( $terms as $term )
                @php($term_link = get_term_link($term))
                <li><a href='{{esc_url($term_link)}}'> {{ $term->name }}</a></li><commit_msg>sort concerts by year<commit_after>@extends('layouts.base')
@section('content')

    @include('partials.page-header')

    @if (!have_posts())
        <div class="alert alert-warning">
            {{ __('Sorry, no results were found.', 'sage') }}
        </div>
        {!! get_search_form(false) !!}
    @endif


    @php($tax = 'taxonomy_annee')
    @php($terms = get_terms('annee'))
    @if ($terms != null )
        <ul>
            @foreach( $terms as $term )
                @php($term_name = $term->name)
                <li> {{ $term_name }} :
                @php($the_query = new WP_Query(array(
   'post_type' => 'concert',
   'annee' => $term_name,
   'orderby'   => 'date',
   'order' => 'ASC')))

                @if($the_query->have_posts())
                    @while( $the_query->have_posts())
                        @php($the_query->the_post())
                        @include ('partials.content-concert')
                    @endwhile
                @endif
                </li>
            @endforeach
        </ul>
    @endif



    @php($tax = 'taxonomy_annee')
    @php($terms = get_terms('annee'))
    @if ($terms != null )
        <ul>
            @foreach( $terms as $term )
                @php($term_link = get_term_link($term))
                <li><a href='{{esc_url($term_link)}}'> {{ $term->name }}</a></li>
{'fraction_non_alphanumeric': 0.19051724137931034, 'fraction_numerical': 0.0, 'mean_word_length': 1.9871299871299872, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 40, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2997775', 'n_tokens_mistral': 790, 'n_tokens_neox': 749, 'n_words': 134}