templates/homechallenge.html.twig line 1

Open in your IDE?
  1. {%block facebook%}
  2. <meta property="og:type" content="website">
  3. <meta property="og:url" content="https://bridgefestival.fr">
  4. <meta property="og:title" content="{{bfchallenge.name}} - {{bfchallengeedition.name}}">
  5. <meta property="og:description" content="Bridge Festival - Le guide des tournois et festivals de bridge">
  6. {%if bfchallengeedition.challenge.description.image1 != null%}
  7. <meta property="og:image" content="{{ absolute_url(vich_uploader_asset(bfchallengeedition.challenge.description, 'image1File')) }}">
  8. {%else%}
  9. <meta property="og:image" content="{{ absolute_url(asset('assets/img/cards-3662554_1920.jpg')) }}">
  10. {%endif%}
  11. {%endblock%}
  12. {%block twitter %}
  13. <meta property="twitter:card" content="summary_large_image">
  14. <meta property="twitter:url" content="https://bridgefestival.fr">
  15. <meta property="twitter:title" content="{{bfchallenge.name}} - {{bfchallengeedition.name}}">
  16. <meta property="twitter:description" content="Bridge Festival - Le guide des tournois et festivals de bridge">
  17. {%if bfchallengeedition.challenge.description.image1 != null%}
  18. <meta property="twitter:image" content="{{ absolute_url(vich_uploader_asset(bfchallengeedition.challenge.description, 'image1File')) }}">
  19. {%else%}
  20. <meta property="twitter:image" content="{{ absolute_url(asset('assets/img/cards-3662554_1920.jpg')) }}">
  21. {%endif%}
  22. {%endblock%}{% extends 'base.html.twig' %}
  23. {% block title %}- {{bfchallengeedition.challenge.name}} : {{bfchallengeedition.name}} {% endblock %}
  24. {% block headersection %}
  25. <div class="fixed-top">
  26.     {{ include('flashmessages/flashmessages.html.twig') }}
  27. </div>
  28. {%if bfchallengeedition.challenge.description.image1 != null%}
  29. <section class="section section-header section-image bg-primary overlay-primary text-white overflow-hidden pb-6 covernorepeat" data-background="{{ vich_uploader_asset(bfchallengeedition.challenge.description, 'image1File') }}">
  30.     {%else%}
  31.     <section class="section section-header section-image bg-primary overlay-primary text-white overflow-hidden pb-6 covernorepeat" data-background="{{ asset('assets/img/cards-3662554_1920.jpg') }}">
  32.         {%endif%}
  33.         <div class="container">
  34.             <div class="row justify-content-center">
  35.                 <div class="col-12 text-center pt-3">
  36.                     <nav aria-label="breadcrumb">
  37.                         <ol class="breadcrumb breadcrumb-transparent justify-content-center mb-4">
  38.                             <li class="breadcrumb-item"><a href="{{ path('home', {}, relative = false) }}">Accueil</a></li>
  39.                             <li class="breadcrumb-item active">Challenges</li>
  40.                         </ol>
  41.                     </nav>
  42.                     <!-- Heading -->
  43.                     <h1 class="display-2">
  44.                         {{bfchallenge.name}}
  45.                     </h1>
  46.                     <p class="lead text-muted mt-4">
  47.                         {{bfchallenge.description.longdescription|nl2br}}
  48.                     </p>
  49.                     {{form(formsubscription)}}
  50.                 </div>
  51.             </div>
  52.         </div>
  53.     </section>
  54.     {%endblock%}
  55.     {%block body%}
  56.     <main>
  57.         <div class="section pt-5 pt-lg-6" style="min-height: 50vh;">
  58.             <div id="spaces-container" class="container">
  59.                 <div class="row justify-content-center">
  60.                     <div class="col-12 col-lg-9 order-lg-1">
  61.                         <div class="card" aria-labelledby="nav-about-tab">
  62.                             <h2 class="font-weight-normal mb-0 pb-0">{{bfchallengeedition.name}}</h2>
  63.                             {%if bfchallengeedition.description.website!=null%}
  64.                             <p class="mt-0 mb-0 pt-0 pb-0">
  65.                                 <a href="{{bfchallengeedition.description.website}}" target="_blank">{{bfchallengeedition.description.website}}</a>
  66.                             </p>
  67.                             {%endif%}
  68.                             <p class="mt-1">
  69.                                 {{bfchallengeedition.description.longdescription|nl2br}}
  70.                             </p>
  71.                             <p class="mt-1">
  72.                                 {%if bfchallengeedition.description.poster != null%}
  73.                                 <a href="{{ vich_uploader_asset(bfchallengeedition.description, 'posterFile') }}" target="_blank" class="font-weight-bold primary mb-0 mr-1">
  74.                                     <i class="far fa-file mr-2"></i>Affiche
  75.                                 </a> <br />
  76.                                 {%endif%}
  77.                                 {%if bfchallengeedition.description.ranking != null%}
  78.                                 <a href="{{ vich_uploader_asset(bfchallengeedition.description, 'rankingFile') }}" target="_blank" class="font-weight-bold primary mb-0 mr-1">
  79.                                     <i class="far fa-file mr-2"></i>Classement
  80.                                 </a>
  81.                                 {%endif%}
  82.                             </p>
  83.                         </div>
  84.                         <div class="text-right">
  85.                             <p class="mb-0 font-small">
  86.                                 Nombre de tournois : {{ pagination.getTotalItemCount }}
  87.                             </p>
  88.                         </div>
  89.                         <div class="tab-content mt-4 mt-lg-4 " id="tabcontentexample-5">
  90.                             <div class="tab-pane fade show active" id="link-example-13" role="tabpanel" aria-labelledby="tab-link-example-13">
  91.                                 {% for bfedition in pagination %}
  92.                                 {% if bfedition.isactive==true and date(bfedition.enddate)>date() %}
  93.                                 {{ render(controller('App\\Controller\\BFEditionController::ShowListView', {id:bfedition.id})) }}
  94.                                 {%else%}
  95.                                 {{ render(controller('App\\Controller\\BFEditionController::ShowListViewInactive', {id:bfedition.id})) }}
  96.                                 {%endif%}
  97.                                 {%endfor%}
  98.                             </div>
  99.                         </div>
  100.                         {{ knp_pagination_render(pagination) }}
  101.                     </div>
  102.                 </div>
  103.             </div>
  104.         </div>
  105.     </main>
  106.     {%endblock%}