templates/components/sections/alumni_highlight.html.twig line 1

Open in your IDE?
  1. {% if this.alumniHighlight is not empty %}
        <script type="application/ld+json">
            {
                "@context": "https://schema.org",
                "@type": "ItemList",
                "itemListElement": [
            {% for alumni in this.alumniHighlight %}
                {% set training = alumni.category.trainings[0] %}
                    {
                        "@type": "Review",
                        "itemReviewed": {
                           "@type": "Course",
                            "name": "{{ training.title|e('html') }}",
                            "description": "{{ training.metaDescription|e('html') }}",
                            "provider": {
                                "@type": "EducationalOrganization",
                                "name": "Qwantic",
                                "url": "{{ url('home') }}"
                            },
                             "offers": [{
                                "@type": "Offer",
                                "category": "Subscription"
                              }],
                             "coursePrerequisites": "{{ training.prerequisite|e('html') }}",
                             "hasCourseInstance": [
                                    {% if training.sessions is not empty %}
                                    {% for session in training.sessions %}
                                    {
                                      "@type": "CourseInstance",
                                      "courseMode": "{{ session.remote == 1 ? 'online' : 'onsite' }}",
                                      "location": {
                                        "@type": "Place",
                                        "name": "Qwantic",
                                        "address": {
                                          "@type": "PostalAddress",
                                          "addressLocality": "{{ session.place|e('html') }}",
                                          "addressCountry": "FR"
                                        }
                                      },
                                       "courseSchedule": {
                                              "@type": "Schedule",
                                              "duration": "PT5H",
                                              "repeatCount": "{{ session.durationInMonth }}",
                                              "repeatFrequency": "Monthly",
                                              "startDate": "{{ session.startDate|date('Y-m-d') }}",
                                              "endDate": "{{ session.endDate|date('Y-m-d') }}"
                                      }
                                    }{{ not loop.last ? ',' }}
                                    {% endfor %}
                                {% else %}
                                    {
                                      "@type": "CourseInstance",
                                      "courseMode": "onsite",
                                      "courseWorkload": "P1Y"
                                    }
                                    {% endif %}
                                ]
                            },
                            "reviewRating": {
                              "@type": "Rating",
                              "ratingValue": 5
                            },
                            "author": {
                              "@type": "Person",
                              "name": "{{ alumni.name|e('html') }}"
                            }
    
                      }{{ not loop.last ? ',' }}
            {% endfor %}
            ]
        }
        </script>
    
        <section id="testimonials">
            <div class="p-horizontal p-vertical flex flex-col gap-12">
                <h4 class="font-allerBold uppercase text-center text-2xl">Nos apprenants témoignent</h4>
                <div class="flex flex-col gap-14 items-start lg:flex-row">
                    {% for alumni in this.alumniHighlight %}
                        <div class="lg:w-1/3">
                            {{ component('bubbles:content_bubble', {
                                url: alumni.imageName,
                                quote: "true",
                                title: alumni.name,
                                category: alumni.category.name,
                                testimonial: alumni.quotation,
                                color: alumni.category.color,
                                alumniHighlight : true,
                            }) }}
                        </div>
                    {% endfor %}
                </div>
            </div>
        </section>
    {% endif %}