var/cache/dev/twig/e4/e466f999e09617347e73c95ad5f52e31.php line 185

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* home.html.twig */
  14. class __TwigTemplate_b6f5bf09e602fd11fa1866c9ac6065ad extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'content' => [$this'block_content'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""home.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""home.html.twig"));
  39.         $this->parent $this->loadTemplate("base.html.twig""home.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 3
  47.     public function block_title($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         // line 4
  55.         echo "    - Cercle de Bridge de Reims Champagne
  56.     ";
  57.         // line 5
  58.         if ((array_key_exists("activecategory"$context) && ((isset($context["isnone"]) || array_key_exists("isnone"$context) ? $context["isnone"] : (function () { throw new RuntimeError('Variable "isnone" does not exist.'5$this->source); })()) == false))) {
  59.             // line 6
  60.             echo "        &nbsp;- ";
  61.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["activecategory"]) || array_key_exists("activecategory"$context) ? $context["activecategory"] : (function () { throw new RuntimeError('Variable "activecategory" does not exist.'6$this->source); })()), "name", [], "any"falsefalsefalse6), "html"nulltrue);
  62.             echo "
  63.     ";
  64.         }
  65.         
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  67.         
  68.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  69.     }
  70.     // line 10
  71.     public function block_content($context, array $blocks = [])
  72.     {
  73.         $macros $this->macros;
  74.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  75.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  76.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  77.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  78.         // line 11
  79.         echo "    <section class=\"page_title ds s-overlay s-pt-150 s-pb-50\" data-background=\"\"
  80.              style=\"background-image: url(";
  81.         // line 12
  82.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/cbrc/imagefond.jpg"), "html"nulltrue);
  83.         echo ")\">
  84.         <div class=\"s-blur\"></div>
  85.         <div class=\"container\">
  86.             <div class=\"row\">
  87.                 <div class=\"col-md-12 text-center\">
  88.                     <h1><i class=\"far fa-newspaper mr-3\"></i>Les Actualités</h1>
  89.                     ";
  90.         // line 18
  91.         if (array_key_exists("activecategory"$context)) {
  92.             // line 19
  93.             echo "                        <ol class=\"breadcrumb\">
  94.                             <li class=\"breadcrumb-item\">
  95.                                 <a href=\"";
  96.             // line 21
  97.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home", [], false);
  98.             echo "\">
  99.                                     Accueil
  100.                                 </a>
  101.                             </li>
  102.                             <li class=\"breadcrumb-item active\">
  103.                                 ";
  104.             // line 26
  105.             if (((isset($context["isnone"]) || array_key_exists("isnone"$context) ? $context["isnone"] : (function () { throw new RuntimeError('Variable "isnone" does not exist.'26$this->source); })()) == false)) {
  106.                 // line 27
  107.                 echo "                                    ";
  108.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["activecategory"]) || array_key_exists("activecategory"$context) ? $context["activecategory"] : (function () { throw new RuntimeError('Variable "activecategory" does not exist.'27$this->source); })()), "name", [], "any"falsefalsefalse27), "html"nulltrue);
  109.                 echo "
  110.                                 ";
  111.             } else {
  112.                 // line 29
  113.                 echo "                                    Aucune
  114.                                 ";
  115.             }
  116.             // line 31
  117.             echo "                            </li>
  118.                         </ol>
  119.                     ";
  120.         } else {
  121.             // line 34
  122.             echo "                        <h5>
  123.                             Cercle de Bridge Reims Champagne
  124.                         </h5>
  125.                     ";
  126.         }
  127.         // line 38
  128.         echo "
  129.                 </div>
  130.             </div>
  131.         </div>
  132.     </section>
  133.     <section class=\"ls s-py-xl-150 s-py-lg-130 s-py-md-90 s-py-60\">
  134.         <div class=\"container\">
  135.             <div class=\"row c-gutter-60\">
  136.                 <main class=\"col-lg-9 col-12 order-lg-2\">
  137.                     ";
  138.         // line 48
  139.         $context['_parent'] = $context;
  140.         $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'48$this->source); })()));
  141.         foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
  142.             // line 49
  143.             echo "                        ";
  144.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\ArticleController::ShowListArticleView", ["articleid" => twig_get_attribute($this->env$this->source$context["article"], "id", [], "any"falsefalsefalse49)]));
  145.             echo "
  146.                     ";
  147.         }
  148.         $_parent $context['_parent'];
  149.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['article'], $context['_parent'], $context['loop']);
  150.         $context array_intersect_key($context$_parent) + $_parent;
  151.         // line 51
  152.         echo "                    ";
  153.         echo $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'51$this->source); })()));
  154.         echo "
  155.                 </main>
  156.                 <aside class=\"col-lg-3 col-12 order-lg-1\">
  157.                     ";
  158.         // line 54
  159.         if (array_key_exists("activecategory"$context)) {
  160.             // line 55
  161.             echo "                        ";
  162.             if (((isset($context["isnone"]) || array_key_exists("isnone"$context) ? $context["isnone"] : (function () { throw new RuntimeError('Variable "isnone" does not exist.'55$this->source); })()) == false)) {
  163.                 // line 56
  164.                 echo "                            ";
  165.                 echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\CategoryController:ShowCategoryList", ["activecategoryid" => twig_get_attribute($this->env$this->source, (isset($context["activecategory"]) || array_key_exists("activecategory"$context) ? $context["activecategory"] : (function () { throw new RuntimeError('Variable "activecategory" does not exist.'56$this->source); })()), "id", [], "any"falsefalsefalse56)]));
  166.                 echo "
  167.                         ";
  168.             } else {
  169.                 // line 58
  170.                 echo "                            ";
  171.                 echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\CategoryController:ShowCategoryList", ["activecategoryid" =>  -2]));
  172.                 echo "
  173.                         ";
  174.             }
  175.             // line 60
  176.             echo "                    ";
  177.         } else {
  178.             // line 61
  179.             echo "                        ";
  180.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\CategoryController:ShowCategoryList", []));
  181.             echo "
  182.                     ";
  183.         }
  184.         // line 63
  185.         echo "                </aside>
  186.             </div>
  187.         </div>
  188.     </section>
  189. ";
  190.         
  191.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  192.         
  193.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  194.     }
  195.     public function getTemplateName()
  196.     {
  197.         return "home.html.twig";
  198.     }
  199.     public function isTraitable()
  200.     {
  201.         return false;
  202.     }
  203.     public function getDebugInfo()
  204.     {
  205.         return array (  205 => 63,  199 => 61,  196 => 60,  190 => 58,  184 => 56,  181 => 55,  179 => 54,  172 => 51,  163 => 49,  159 => 48,  147 => 38,  141 => 34,  136 => 31,  132 => 29,  126 => 27,  124 => 26,  116 => 21,  112 => 19,  110 => 18,  101 => 12,  98 => 11,  88 => 10,  74 => 6,  72 => 5,  69 => 4,  59 => 3,  36 => 1,);
  206.     }
  207.     public function getSourceContext()
  208.     {
  209.         return new Source("{% extends 'base.html.twig' %}
  210. {% block title %}
  211.     - Cercle de Bridge de Reims Champagne
  212.     {% if activecategory is defined and isnone == false %}
  213.         &nbsp;- {{ activecategory.name }}
  214.     {% endif %}
  215. {% endblock %}
  216. {% block content %}
  217.     <section class=\"page_title ds s-overlay s-pt-150 s-pb-50\" data-background=\"\"
  218.              style=\"background-image: url({{ asset('assets/images/cbrc/imagefond.jpg') }})\">
  219.         <div class=\"s-blur\"></div>
  220.         <div class=\"container\">
  221.             <div class=\"row\">
  222.                 <div class=\"col-md-12 text-center\">
  223.                     <h1><i class=\"far fa-newspaper mr-3\"></i>Les Actualités</h1>
  224.                     {% if activecategory is defined %}
  225.                         <ol class=\"breadcrumb\">
  226.                             <li class=\"breadcrumb-item\">
  227.                                 <a href=\"{{ path('home', {}, relative = false) }}\">
  228.                                     Accueil
  229.                                 </a>
  230.                             </li>
  231.                             <li class=\"breadcrumb-item active\">
  232.                                 {% if isnone ==false %}
  233.                                     {{ activecategory.name }}
  234.                                 {% else %}
  235.                                     Aucune
  236.                                 {% endif %}
  237.                             </li>
  238.                         </ol>
  239.                     {% else %}
  240.                         <h5>
  241.                             Cercle de Bridge Reims Champagne
  242.                         </h5>
  243.                     {% endif %}
  244.                 </div>
  245.             </div>
  246.         </div>
  247.     </section>
  248.     <section class=\"ls s-py-xl-150 s-py-lg-130 s-py-md-90 s-py-60\">
  249.         <div class=\"container\">
  250.             <div class=\"row c-gutter-60\">
  251.                 <main class=\"col-lg-9 col-12 order-lg-2\">
  252.                     {% for article in pagination %}
  253.                         {{ render(controller('App\\\\Controller\\\\ArticleController::ShowListArticleView', {articleid:article.id})) }}
  254.                     {% endfor %}
  255.                     {{ knp_pagination_render(pagination) }}
  256.                 </main>
  257.                 <aside class=\"col-lg-3 col-12 order-lg-1\">
  258.                     {% if activecategory is defined %}
  259.                         {% if isnone ==false %}
  260.                             {{ render(controller('App\\\\Controller\\\\CategoryController:ShowCategoryList', {'activecategoryid':activecategory.id})) }}
  261.                         {% else %}
  262.                             {{ render(controller('App\\\\Controller\\\\CategoryController:ShowCategoryList', {'activecategoryid':-2})) }}
  263.                         {% endif %}
  264.                     {% else %}
  265.                         {{ render(controller('App\\\\Controller\\\\CategoryController:ShowCategoryList', {})) }}
  266.                     {% endif %}
  267.                 </aside>
  268.             </div>
  269.         </div>
  270.     </section>
  271. {% endblock %}""home.html.twig""/home/maixmebouz/www/dev/cbrc/templates/home.html.twig");
  272.     }
  273. }