var/cache/dev/twig/52/5279fdeb6c0a49ef518d63f70e5fc968.php line 41

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. /* services/list-credits.html.twig */
  14. class __TwigTemplate_70c75eb6067130575e8e4e6616082e81 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.             'content' => [$this'block_content'],
  24.             'inlinescripts' => [$this'block_inlinescripts'],
  25.         ];
  26.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  27.         $this->checkSecurity();
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "layout.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""services/list-credits.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""services/list-credits.html.twig"));
  41.         $this->parent $this->loadTemplate("layout.html.twig""services/list-credits.html.twig"1);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 3
  49.     public function block_content($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  56.         // line 4
  57.         echo "
  58. <!-- #main -->
  59. <main id=\"main\" role=\"main\">
  60.     <div class=\"apk-page-services apk-credits\">
  61.         <div class=\"uk-container apk-container-1400\">
  62.             <div class=\"uk-container apk-container-1000 uk-margin-medium-bottom uk-text-center\">
  63.                 <h1 class=\"uk-margin-remove-bottom\">";
  64.         // line 12
  65.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""service-titre");
  66.         echo "</h1>
  67.                 <p>";
  68.         // line 13
  69.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""service-texte");
  70.         echo "</p>
  71.             </div>
  72.             ";
  73.         // line 16
  74.         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)) {
  75.             // line 17
  76.             echo "                <div class=\"uk-text-center uk-text-bold\">
  77.                     ";
  78.             // line 18
  79.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Aucun service n'est disponible"), "html"nulltrue);
  80.             echo "
  81.                 </div>
  82.             ";
  83.         }
  84.         // line 21
  85.         echo "
  86.             <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\">
  87.                 ";
  88.         // line 24
  89.         $context['_parent'] = $context;
  90.         $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); })()));
  91.         foreach ($context['_seq'] as $context["_key"] => $context["credit"]) {
  92.             // line 25
  93.             echo "                <div>
  94.                     
  95.                     <div class=\"apk-container-content uk-text-center apk-credits apk-animate\">
  96.                         <div>
  97.                             ";
  98.             // line 30
  99.             echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["credit"], "image", [], "any"falsefalsetrue30), "thumbnail", [=> "global-image"], "method"falsefalsetrue30), "html", [], "method"falsefalsetrue30), 30$this->source);
  100.             echo "
  101.                         </div>
  102.                         <div class=\"apk-container-textes\">
  103.                             <div class=\"apk-container-height-match\">
  104.                                 <h3 class=\"uk-margin-top uk-margin-bottom\">";
  105.             // line 36
  106.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["credit"], "titre", [], "any"falsefalsetrue36), 36$this->source), "html"nulltrue);
  107.             echo "</h3>
  108.                                 <p class=\"uk-margin-remove\">";
  109.             // line 37
  110.             echo twig_nl2br(twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["credit"], "description", [], "any"falsefalsetrue37), 37$this->source), "html"nulltrue));
  111.             echo "</p>
  112.                             </div>
  113.                             <div class=\"uk-margin-top\">
  114.                                 ";
  115.             // line 41
  116.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["credit"], "lien", [], "any"falsefalsetrue41))) {
  117.                 // line 42
  118.                 echo "                                    <a href=\"";
  119.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["credit"], "lien", [], "any"falsefalsetrue42), 42$this->source), "html"nulltrue);
  120.                 echo "\" class=\"uk-button uk-margin-top\">";
  121.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("En savoir plus"), "html"nulltrue);
  122.                 echo "</a>
  123.                                 ";
  124.             }
  125.             // line 44
  126.             echo "                            </div>
  127.                         </div>
  128.                         
  129.                     </div>
  130.                 </div>
  131.                 ";
  132.         }
  133.         $_parent $context['_parent'];
  134.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['credit'], $context['_parent'], $context['loop']);
  135.         $context array_intersect_key($context$_parent) + $_parent;
  136.         // line 51
  137.         echo "
  138.         </div>
  139.     </div>
  140.     ";
  141.         // line 55
  142.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""content");
  143.         echo "
  144. </main>
  145. ";
  146.         
  147.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  148.         
  149.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  150.     }
  151.     // line 60
  152.     public function block_inlinescripts($context, array $blocks = [])
  153.     {
  154.         $macros $this->macros;
  155.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  156.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inlinescripts"));
  157.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  158.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inlinescripts"));
  159.         // line 61
  160.         echo "
  161. ";
  162.         
  163.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  164.         
  165.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  166.     }
  167.     public function getTemplateName()
  168.     {
  169.         return "services/list-credits.html.twig";
  170.     }
  171.     public function isTraitable()
  172.     {
  173.         return false;
  174.     }
  175.     public function getDebugInfo()
  176.     {
  177.         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,);
  178.     }
  179.     public function getSourceContext()
  180.     {
  181.         return new Source("{% extends \"layout.html.twig\" %}
  182. {% block content %}
  183. <!-- #main -->
  184. <main id=\"main\" role=\"main\">
  185.     <div class=\"apk-page-services apk-credits\">
  186.         <div class=\"uk-container apk-container-1400\">
  187.             <div class=\"uk-container apk-container-1000 uk-margin-medium-bottom uk-text-center\">
  188.                 <h1 class=\"uk-margin-remove-bottom\">{{ pimcore_textarea(\"service-titre\")}}</h1>
  189.                 <p>{{ pimcore_textarea(\"service-texte\")}}</p>
  190.             </div>
  191.             {% if credits|length == 0 %}
  192.                 <div class=\"uk-text-center uk-text-bold\">
  193.                     {{ \"Aucun service n'est disponible\"|trans }}
  194.                 </div>
  195.             {% endif %}
  196.             <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\">
  197.                 {% for credit in credits %}
  198.                 <div>
  199.                     
  200.                     <div class=\"apk-container-content uk-text-center apk-credits apk-animate\">
  201.                         <div>
  202.                             {{ credit.image.thumbnail('global-image').html()|raw }}
  203.                         </div>
  204.                         <div class=\"apk-container-textes\">
  205.                             <div class=\"apk-container-height-match\">
  206.                                 <h3 class=\"uk-margin-top uk-margin-bottom\">{{ credit.titre }}</h3>
  207.                                 <p class=\"uk-margin-remove\">{{ (credit.description|nl2br)|raw }}</p>
  208.                             </div>
  209.                             <div class=\"uk-margin-top\">
  210.                                 {% if not credit.lien is empty %}
  211.                                     <a href=\"{{ credit.lien }}\" class=\"uk-button uk-margin-top\">{{ \"En savoir plus\"|trans }}</a>
  212.                                 {% endif %}
  213.                             </div>
  214.                         </div>
  215.                         
  216.                     </div>
  217.                 </div>
  218.                 {% endfor %}
  219.         </div>
  220.     </div>
  221.     {{ pimcore_areablock('content') }}
  222. </main>
  223. {% endblock %}
  224. {% block inlinescripts %}
  225. {% endblock inlinescripts %}""services/list-credits.html.twig""/var/www/youinvestify.apik-pp.be/www/templates/services/list-credits.html.twig");
  226.     }
  227.     
  228.     public function checkSecurity()
  229.     {
  230.         static $tags = array("if" => 16"for" => 24);
  231.         static $filters = array("length" => 16"escape" => 18"trans" => 18"raw" => 30"nl2br" => 37);
  232.         static $functions = array("pimcore_textarea" => 12"pimcore_areablock" => 55);
  233.         try {
  234.             $this->sandbox->checkSecurity(
  235.                 ['if''for'],
  236.                 ['length''escape''trans''raw''nl2br'],
  237.                 ['pimcore_textarea''pimcore_areablock']
  238.             );
  239.         } catch (SecurityError $e) {
  240.             $e->setSourceContext($this->source);
  241.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  242.                 $e->setTemplateLine($tags[$e->getTagName()]);
  243.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  244.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  245.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  246.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  247.             }
  248.             throw $e;
  249.         }
  250.     }
  251. }