<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* home.html.twig */
class __TwigTemplate_b6f5bf09e602fd11fa1866c9ac6065ad extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "home.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "home.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "home.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 4
echo " - Cercle de Bridge de Reims Champagne
";
// line 5
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))) {
// line 6
echo " - ";
echo twig_escape_filter($this->env, 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.', 6, $this->source); })()), "name", [], "any", false, false, false, 6), "html", null, true);
echo "
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 10
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 11
echo " <section class=\"page_title ds s-overlay s-pt-150 s-pb-50\" data-background=\"\"
style=\"background-image: url(";
// line 12
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/cbrc/imagefond.jpg"), "html", null, true);
echo ")\">
<div class=\"s-blur\"></div>
<div class=\"container\">
<div class=\"row\">
<div class=\"col-md-12 text-center\">
<h1><i class=\"far fa-newspaper mr-3\"></i>Les Actualités</h1>
";
// line 18
if (array_key_exists("activecategory", $context)) {
// line 19
echo " <ol class=\"breadcrumb\">
<li class=\"breadcrumb-item\">
<a href=\"";
// line 21
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home", [], false);
echo "\">
Accueil
</a>
</li>
<li class=\"breadcrumb-item active\">
";
// line 26
if (((isset($context["isnone"]) || array_key_exists("isnone", $context) ? $context["isnone"] : (function () { throw new RuntimeError('Variable "isnone" does not exist.', 26, $this->source); })()) == false)) {
// line 27
echo " ";
echo twig_escape_filter($this->env, 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.', 27, $this->source); })()), "name", [], "any", false, false, false, 27), "html", null, true);
echo "
";
} else {
// line 29
echo " Aucune
";
}
// line 31
echo " </li>
</ol>
";
} else {
// line 34
echo " <h5>
Cercle de Bridge Reims Champagne
</h5>
";
}
// line 38
echo "
</div>
</div>
</div>
</section>
<section class=\"ls s-py-xl-150 s-py-lg-130 s-py-md-90 s-py-60\">
<div class=\"container\">
<div class=\"row c-gutter-60\">
<main class=\"col-lg-9 col-12 order-lg-2\">
";
// line 48
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
// line 49
echo " ";
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", false, false, false, 49)]));
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['article'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 51
echo " ";
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); })()));
echo "
</main>
<aside class=\"col-lg-3 col-12 order-lg-1\">
";
// line 54
if (array_key_exists("activecategory", $context)) {
// line 55
echo " ";
if (((isset($context["isnone"]) || array_key_exists("isnone", $context) ? $context["isnone"] : (function () { throw new RuntimeError('Variable "isnone" does not exist.', 55, $this->source); })()) == false)) {
// line 56
echo " ";
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", false, false, false, 56)]));
echo "
";
} else {
// line 58
echo " ";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\CategoryController:ShowCategoryList", ["activecategoryid" => -2]));
echo "
";
}
// line 60
echo " ";
} else {
// line 61
echo " ";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\CategoryController:ShowCategoryList", []));
echo "
";
}
// line 63
echo " </aside>
</div>
</div>
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "home.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}
- Cercle de Bridge de Reims Champagne
{% if activecategory is defined and isnone == false %}
- {{ activecategory.name }}
{% endif %}
{% endblock %}
{% block content %}
<section class=\"page_title ds s-overlay s-pt-150 s-pb-50\" data-background=\"\"
style=\"background-image: url({{ asset('assets/images/cbrc/imagefond.jpg') }})\">
<div class=\"s-blur\"></div>
<div class=\"container\">
<div class=\"row\">
<div class=\"col-md-12 text-center\">
<h1><i class=\"far fa-newspaper mr-3\"></i>Les Actualités</h1>
{% if activecategory is defined %}
<ol class=\"breadcrumb\">
<li class=\"breadcrumb-item\">
<a href=\"{{ path('home', {}, relative = false) }}\">
Accueil
</a>
</li>
<li class=\"breadcrumb-item active\">
{% if isnone ==false %}
{{ activecategory.name }}
{% else %}
Aucune
{% endif %}
</li>
</ol>
{% else %}
<h5>
Cercle de Bridge Reims Champagne
</h5>
{% endif %}
</div>
</div>
</div>
</section>
<section class=\"ls s-py-xl-150 s-py-lg-130 s-py-md-90 s-py-60\">
<div class=\"container\">
<div class=\"row c-gutter-60\">
<main class=\"col-lg-9 col-12 order-lg-2\">
{% for article in pagination %}
{{ render(controller('App\\\\Controller\\\\ArticleController::ShowListArticleView', {articleid:article.id})) }}
{% endfor %}
{{ knp_pagination_render(pagination) }}
</main>
<aside class=\"col-lg-3 col-12 order-lg-1\">
{% if activecategory is defined %}
{% if isnone ==false %}
{{ render(controller('App\\\\Controller\\\\CategoryController:ShowCategoryList', {'activecategoryid':activecategory.id})) }}
{% else %}
{{ render(controller('App\\\\Controller\\\\CategoryController:ShowCategoryList', {'activecategoryid':-2})) }}
{% endif %}
{% else %}
{{ render(controller('App\\\\Controller\\\\CategoryController:ShowCategoryList', {})) }}
{% endif %}
</aside>
</div>
</div>
</section>
{% endblock %}", "home.html.twig", "/home/maixmebouz/www/dev/cbrc/templates/home.html.twig");
}
}