templates/home.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}
  3.     - Cercle de Bridge de Reims Champagne
  4.     {% if activecategory is defined and isnone == false %}
  5.          - {{ activecategory.name }}
  6.     {% endif %}
  7. {% endblock %}
  8. {% block content %}
  9.     <section class="page_title ds s-overlay s-pt-150 s-pb-50" data-background=""
  10.              style="background-image: url({{ asset('assets/images/cbrc/imagefond.jpg') }})">
  11.         <div class="s-blur"></div>
  12.         <div class="container">
  13.             <div class="row">
  14.                 <div class="col-md-12 text-center">
  15.                     <h1><i class="far fa-newspaper mr-3"></i>Les Actualités</h1>
  16.                     {% if activecategory is defined %}
  17.                         <ol class="breadcrumb">
  18.                             <li class="breadcrumb-item">
  19.                                 <a href="{{ path('home', {}, relative = false) }}">
  20.                                     Accueil
  21.                                 </a>
  22.                             </li>
  23.                             <li class="breadcrumb-item active">
  24.                                 {% if isnone ==false %}
  25.                                     {{ activecategory.name }}
  26.                                 {% else %}
  27.                                     Aucune
  28.                                 {% endif %}
  29.                             </li>
  30.                         </ol>
  31.                     {% else %}
  32.                         <h5>
  33.                             Cercle de Bridge Reims Champagne
  34.                         </h5>
  35.                     {% endif %}
  36.                 </div>
  37.             </div>
  38.         </div>
  39.     </section>
  40.     <section class="ls s-py-xl-150 s-py-lg-130 s-py-md-90 s-py-60">
  41.         <div class="container">
  42.             <div class="row c-gutter-60">
  43.                 <main class="col-lg-9 col-12 order-lg-2">
  44.                     {% for article in pagination %}
  45.                         {{ render(controller('App\\Controller\\ArticleController::ShowListArticleView', {articleid:article.id})) }}
  46.                     {% endfor %}
  47.                     {{ knp_pagination_render(pagination) }}
  48.                 </main>
  49.                 <aside class="col-lg-3 col-12 order-lg-1">
  50.                     {% if activecategory is defined %}
  51.                         {% if isnone ==false %}
  52.                             {{ render(controller('App\\Controller\\CategoryController:ShowCategoryList', {'activecategoryid':activecategory.id})) }}
  53.                         {% else %}
  54.                             {{ render(controller('App\\Controller\\CategoryController:ShowCategoryList', {'activecategoryid':-2})) }}
  55.                         {% endif %}
  56.                     {% else %}
  57.                         {{ render(controller('App\\Controller\\CategoryController:ShowCategoryList', {})) }}
  58.                     {% endif %}
  59.                 </aside>
  60.             </div>
  61.         </div>
  62.     </section>
  63. {% endblock %}