<?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;
/* Default/articles.html.twig */
class __TwigTemplate_7fe6411975e6d2772db1c1cfc7e9cdde6719021e99a5228f242417fd239fbaf2 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 6
return "Default/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Default/articles.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Default/articles.html.twig"));
// line 1
$context["title"] = (((isset($context["cat"]) || array_key_exists("cat", $context) ? $context["cat"] : (function () { throw new RuntimeError('Variable "cat" does not exist.', 1, $this->source); })())) ? (twig_get_attribute($this->env, $this->source, (isset($context["cat"]) || array_key_exists("cat", $context) ? $context["cat"] : (function () { throw new RuntimeError('Variable "cat" does not exist.', 1, $this->source); })()), "name", [], "any", false, false, false, 1)) : ("Actualités"));
// line 2
$context["subtitle"] = (((isset($context["cat"]) || array_key_exists("cat", $context) ? $context["cat"] : (function () { throw new RuntimeError('Variable "cat" does not exist.', 2, $this->source); })())) ? ("Publications") : (""));
// line 3
$context["menu"] = "articles";
// line 4
$macros["macros"] = $this->macros["macros"] = $this->loadTemplate("Default/macros.html.twig", "Default/articles.html.twig", 4)->unwrap();
// line 6
$this->parent = $this->loadTemplate("Default/base.html.twig", "Default/articles.html.twig", 6);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 8
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 9
echo "<div class='gpadding ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["vt-20-in"]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), ["vt-30-in"]), "html", null, true);
echo " '>
<div class='articles ";
// line 10
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["flex row space wrap"]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html", null, true);
echo "'>
";
// line 11
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["articles"]) || array_key_exists("articles", $context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.', 11, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
// line 12
echo " ";
echo twig_call_macro($macros["macros"], "macro_article", [$context["o"]], 12, $context, $this->getSourceContext());
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['o'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 14
echo " ";
if ((call_user_func_array($this->env->getFunction('isDesktop')->getCallable(), []) && (twig_length_filter($this->env, (isset($context["articles"]) || array_key_exists("articles", $context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.', 14, $this->source); })())) % 3))) {
// line 15
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(1, (3 - (twig_length_filter($this->env, (isset($context["articles"]) || array_key_exists("articles", $context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.', 15, $this->source); })())) % 3))));
foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
// line 16
echo " <i class=\"third-20\"></i>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['o'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 18
echo " ";
}
// line 19
echo " </div>
<div class='";
// line 20
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), [""]), "html", null, true);
echo "'>
";
// line 21
$this->loadTemplate("Default/counter.html.twig", "Default/articles.html.twig", 21)->display(twig_array_merge($context, ["expanded" => true]));
// line 22
echo " </div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Default/articles.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 130 => 22, 128 => 21, 124 => 20, 121 => 19, 118 => 18, 111 => 16, 106 => 15, 103 => 14, 94 => 12, 90 => 11, 84 => 10, 77 => 9, 67 => 8, 56 => 6, 54 => 4, 52 => 3, 50 => 2, 48 => 1, 35 => 6,);
}
public function getSourceContext()
{
return new Source("{% set title = cat ? cat.name : 'Actualités' %}
{% set subtitle = cat ? \"Publications\" %}
{% set menu = 'articles' %}
{% import \"Default/macros.html.twig\" as macros %}
{% extends 'Default/base.html.twig' %}
{% block content %}
<div class='gpadding {{desktop(\"vt-20-in\")}} {{mobile(\"vt-30-in\")}} '>
<div class='articles {{desktop(\"flex row space wrap\")}} {{mobile(\"\")}}'>
{% for o in articles %}
{{macros.article(o)}}
{% endfor %}
{% if isDesktop() and (articles|length % 3) %}
{% for o in 1..(3 - articles|length % 3) %}
<i class=\"third-20\"></i>
{% endfor %}
{% endif %}
</div>
<div class='{{desktop(\"\")}}'>
{% include (\"Default/counter.html.twig\") with {expanded:true} %}
</div>
</div>
{% endblock %}
", "Default/articles.html.twig", "/home/olasoftnka/cefal/templates/Default/articles.html.twig");
}
}