<?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;
/* services/list-credits.html.twig */
class __TwigTemplate_70c75eb6067130575e8e4e6616082e81 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
'inlinescripts' => [$this, 'block_inlinescripts'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return "layout.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", "services/list-credits.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "services/list-credits.html.twig"));
$this->parent = $this->loadTemplate("layout.html.twig", "services/list-credits.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_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 4
echo "
<!-- #main -->
<main id=\"main\" role=\"main\">
<div class=\"apk-page-services apk-credits\">
<div class=\"uk-container apk-container-1400\">
<div class=\"uk-container apk-container-1000 uk-margin-medium-bottom uk-text-center\">
<h1 class=\"uk-margin-remove-bottom\">";
// line 12
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "service-titre");
echo "</h1>
<p>";
// line 13
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "service-texte");
echo "</p>
</div>
";
// line 16
if ((twig_length_filter($this->env, (isset($context["credits"]) || array_key_exists("credits", $context) ? $context["credits"] : (function () { throw new RuntimeError('Variable "credits" does not exist.', 16, $this->source); })())) == 0)) {
// line 17
echo " <div class=\"uk-text-center uk-text-bold\">
";
// line 18
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Aucun service n'est disponible"), "html", null, true);
echo "
</div>
";
}
// line 21
echo "
<div class=\"uk-child-width-1-2@m\" uk-grid uk-height-match=\"target: .apk-container-height-match\" uk-scrollspy=\"cls: uk-animation-scale-up; target: .apk-animate; delay: 300; repeat: false\">
";
// line 24
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["credits"]) || array_key_exists("credits", $context) ? $context["credits"] : (function () { throw new RuntimeError('Variable "credits" does not exist.', 24, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["credit"]) {
// line 25
echo " <div>
<div class=\"apk-container-content uk-text-center apk-credits apk-animate\">
<div>
";
// line 30
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["credit"], "image", [], "any", false, false, true, 30), "thumbnail", [0 => "global-image"], "method", false, false, true, 30), "html", [], "method", false, false, true, 30), 30, $this->source);
echo "
</div>
<div class=\"apk-container-textes\">
<div class=\"apk-container-height-match\">
<h3 class=\"uk-margin-top uk-margin-bottom\">";
// line 36
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["credit"], "titre", [], "any", false, false, true, 36), 36, $this->source), "html", null, true);
echo "</h3>
<p class=\"uk-margin-remove\">";
// line 37
echo twig_nl2br(twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["credit"], "description", [], "any", false, false, true, 37), 37, $this->source), "html", null, true));
echo "</p>
</div>
<div class=\"uk-margin-top\">
";
// line 41
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["credit"], "lien", [], "any", false, false, true, 41))) {
// line 42
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["credit"], "lien", [], "any", false, false, true, 42), 42, $this->source), "html", null, true);
echo "\" class=\"uk-button uk-margin-top\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("En savoir plus"), "html", null, true);
echo "</a>
";
}
// line 44
echo " </div>
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['credit'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 51
echo "
</div>
</div>
";
// line 55
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", "content");
echo "
</main>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 60
public function block_inlinescripts($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", "inlinescripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "inlinescripts"));
// line 61
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "services/list-credits.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 190 => 61, 180 => 60, 166 => 55, 160 => 51, 148 => 44, 140 => 42, 138 => 41, 131 => 37, 127 => 36, 118 => 30, 111 => 25, 107 => 24, 102 => 21, 96 => 18, 93 => 17, 91 => 16, 85 => 13, 81 => 12, 71 => 4, 61 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"layout.html.twig\" %}
{% block content %}
<!-- #main -->
<main id=\"main\" role=\"main\">
<div class=\"apk-page-services apk-credits\">
<div class=\"uk-container apk-container-1400\">
<div class=\"uk-container apk-container-1000 uk-margin-medium-bottom uk-text-center\">
<h1 class=\"uk-margin-remove-bottom\">{{ pimcore_textarea(\"service-titre\")}}</h1>
<p>{{ pimcore_textarea(\"service-texte\")}}</p>
</div>
{% if credits|length == 0 %}
<div class=\"uk-text-center uk-text-bold\">
{{ \"Aucun service n'est disponible\"|trans }}
</div>
{% endif %}
<div class=\"uk-child-width-1-2@m\" uk-grid uk-height-match=\"target: .apk-container-height-match\" uk-scrollspy=\"cls: uk-animation-scale-up; target: .apk-animate; delay: 300; repeat: false\">
{% for credit in credits %}
<div>
<div class=\"apk-container-content uk-text-center apk-credits apk-animate\">
<div>
{{ credit.image.thumbnail('global-image').html()|raw }}
</div>
<div class=\"apk-container-textes\">
<div class=\"apk-container-height-match\">
<h3 class=\"uk-margin-top uk-margin-bottom\">{{ credit.titre }}</h3>
<p class=\"uk-margin-remove\">{{ (credit.description|nl2br)|raw }}</p>
</div>
<div class=\"uk-margin-top\">
{% if not credit.lien is empty %}
<a href=\"{{ credit.lien }}\" class=\"uk-button uk-margin-top\">{{ \"En savoir plus\"|trans }}</a>
{% endif %}
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
{{ pimcore_areablock('content') }}
</main>
{% endblock %}
{% block inlinescripts %}
{% endblock inlinescripts %}", "services/list-credits.html.twig", "/var/www/youinvestify.apik-pp.be/www/templates/services/list-credits.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 16, "for" => 24);
static $filters = array("length" => 16, "escape" => 18, "trans" => 18, "raw" => 30, "nl2br" => 37);
static $functions = array("pimcore_textarea" => 12, "pimcore_areablock" => 55);
try {
$this->sandbox->checkSecurity(
['if', 'for'],
['length', 'escape', 'trans', 'raw', 'nl2br'],
['pimcore_textarea', 'pimcore_areablock']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}