var/cache/dev/twig/12/1291cb4937841b195331dd81e7cb6aa6.php line 49

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. /* default/fin-concours.html.twig */
  14. class __TwigTemplate_1271d3947b1b60a8703623c99e869115 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.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "layout-no-menu.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""default/fin-concours.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""default/fin-concours.html.twig"));
  39.         $this->parent $this->loadTemplate("layout-no-menu.html.twig""default/fin-concours.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 8
  47.     public function block_content($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""content"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  54.         // line 9
  55.         echo "
  56.     ";
  57.         // line 10
  58.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""myAreablock");
  59.         echo "
  60.     ";
  61.         // line 11
  62.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""contentTop");
  63.         echo "
  64.     <!-- #main -->
  65.     <main id=\"main\" role=\"main\">
  66.     <div class=\"apk-page-fin-concours\">
  67.         ";
  68.         // line 16
  69.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'16$this->source); })())) {
  70.             // line 17
  71.             echo "            <div uk-alert>
  72.                 <div>Sens de l'image</div>
  73.                 ";
  74.             // line 20
  75.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""flex-first", ["store" => [=> [=> ""=> "Droite"], => [=> "uk-flex-first@s"=> "Gauche"]], "defaultValue" => ""]);
  76.             // line 26
  77.             echo "
  78.                 <div class=\"uk-text-bold\">Image de banner</div>
  79.                 ";
  80.             // line 29
  81.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""image", ["width" => 300]);
  82.             echo "
  83.                 <div class=\"uk-text-bold\">Titre</div>
  84.                 ";
  85.             // line 32
  86.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""title", ["nl2br" => true]);
  87.             echo "
  88.                 <div class=\"uk-text-bold\">Sous-titre</div>
  89.                 ";
  90.             // line 35
  91.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""subtitle", ["nl2br" => true]);
  92.             echo "
  93.                 <div class=\"uk-text-bold\">Texte</div>
  94.                 ";
  95.             // line 38
  96.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""text", ["nl2br" => true]);
  97.             echo "
  98.             </div>
  99.         ";
  100.         } else {
  101.             // line 43
  102.             echo "            <div class=\"apk-banner\">
  103.                 ";
  104.             // line 44
  105.             echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""image"), "thumbnail", [=> "full-background"], "method"falsefalsefalse44), "html", [], "method"falsefalsefalse44);
  106.             echo "
  107.             </div>
  108.             <div class=\"uk-container apk-container-1400\">
  109.                 <div class=\"apk-content\">
  110.                     <h1>";
  111.             // line 50
  112.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""title", ["nl2br" => true]);
  113.             echo "</h1>
  114.                     <p><strong>";
  115.             // line 51
  116.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""subtitle", ["nl2br" => true]);
  117.             echo "</strong></p>
  118.                     <p>";
  119.             // line 52
  120.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""text", ["nl2br" => true]);
  121.             echo "</p>
  122.                     <div class=\"uk-flex apk-icon-social-media\">
  123.                         ";
  124.             // line 55
  125.             if (twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'55$this->source); })()), "property", [=> "facebookUrl"], "method"falsefalsefalse55)) {
  126.                 // line 56
  127.                 echo "                            <div class=\"uk-margin-right\">
  128.                                 <a href=\"";
  129.                 // line 57
  130.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'57$this->source); })()), "property", [=> "facebookUrl"], "method"falsefalsefalse57), "html"nulltrue);
  131.                 echo "\" target=\"_blank\">
  132.                                     <img src=\"/static/img/pictos/icon-facebook.png\" alt=\"Facebook\">
  133.                                 </a>    
  134.                             </div>
  135.                             ";
  136.             }
  137.             // line 62
  138.             echo "
  139.                             ";
  140.             // line 63
  141.             if (twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'63$this->source); })()), "property", [=> "instagramUrl"], "method"falsefalsefalse63)) {
  142.                 // line 64
  143.                 echo "                            <div>
  144.                                 <a href=\"";
  145.                 // line 65
  146.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'65$this->source); })()), "property", [=> "instagramUrl"], "method"falsefalsefalse65), "html"nulltrue);
  147.                 echo "\" target=\"_blank\">
  148.                                     <img src=\"/static/img/pictos/icon-instagram.png\" alt=\"Instagram\">
  149.                                 </a>    
  150.                             </div>
  151.                         ";
  152.             }
  153.             // line 70
  154.             echo "                    </div>
  155.                 </div>
  156.             </div>
  157.         ";
  158.         }
  159.         // line 75
  160.         echo "    </div>
  161.     </main><!-- end #main -->
  162. ";
  163.         
  164.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  165.         
  166.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  167.     }
  168.     // line 81
  169.     public function block_inlinescripts($context, array $blocks = [])
  170.     {
  171.         $macros $this->macros;
  172.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  173.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inlinescripts"));
  174.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  175.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inlinescripts"));
  176.         // line 82
  177.         echo "
  178. ";
  179.         
  180.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  181.         
  182.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  183.     }
  184.     public function getTemplateName()
  185.     {
  186.         return "default/fin-concours.html.twig";
  187.     }
  188.     public function isTraitable()
  189.     {
  190.         return false;
  191.     }
  192.     public function getDebugInfo()
  193.     {
  194.         return array (  210 => 82,  200 => 81,  186 => 75,  179 => 70,  171 => 65,  168 => 64,  166 => 63,  163 => 62,  155 => 57,  152 => 56,  150 => 55,  144 => 52,  140 => 51,  136 => 50,  127 => 44,  124 => 43,  116 => 38,  110 => 35,  104 => 32,  98 => 29,  93 => 26,  91 => 20,  86 => 17,  84 => 16,  76 => 11,  72 => 10,  69 => 9,  59 => 8,  36 => 1,);
  195.     }
  196.     public function getSourceContext()
  197.     {
  198.         return new Source("{% extends \"layout-no-menu.html.twig\" %}
  199. {#
  200. {% use AppBundle/Helper/Apik %}
  201. #}
  202. {% block content %}
  203.     {{ pimcore_areablock(\"myAreablock\") }}
  204.     {{ pimcore_areablock('contentTop') }}
  205.     <!-- #main -->
  206.     <main id=\"main\" role=\"main\">
  207.     <div class=\"apk-page-fin-concours\">
  208.         {% if editmode %}
  209.             <div uk-alert>
  210.                 <div>Sens de l'image</div>
  211.                 {{ pimcore_select(\"flex-first\", {
  212.                     \"store\" : [
  213.                         ['', 'Droite'],
  214.                         ['uk-flex-first@s', 'Gauche'],
  215.                     ],
  216.                     \"defaultValue\" : \"\"
  217.                 }) }}
  218.                 <div class=\"uk-text-bold\">Image de banner</div>
  219.                 {{ pimcore_image('image', { width: 300 }) }}
  220.                 <div class=\"uk-text-bold\">Titre</div>
  221.                 {{ pimcore_textarea('title',{'nl2br' : true}) }}
  222.                 <div class=\"uk-text-bold\">Sous-titre</div>
  223.                 {{ pimcore_textarea('subtitle',{'nl2br' : true}) }}
  224.                 <div class=\"uk-text-bold\">Texte</div>
  225.                 {{ pimcore_textarea('text',{'nl2br' : true}) }}
  226.             </div>
  227.         {% else %}
  228.             <div class=\"apk-banner\">
  229.                 {{ pimcore_image('image').thumbnail('full-background').html()|raw }}
  230.             </div>
  231.             <div class=\"uk-container apk-container-1400\">
  232.                 <div class=\"apk-content\">
  233.                     <h1>{{ pimcore_textarea('title',{'nl2br' : true}) }}</h1>
  234.                     <p><strong>{{ pimcore_textarea('subtitle',{'nl2br' : true}) }}</strong></p>
  235.                     <p>{{ pimcore_textarea('text',{'nl2br' : true}) }}</p>
  236.                     <div class=\"uk-flex apk-icon-social-media\">
  237.                         {% if document.property('facebookUrl') %}
  238.                             <div class=\"uk-margin-right\">
  239.                                 <a href=\"{{ document.property('facebookUrl') }}\" target=\"_blank\">
  240.                                     <img src=\"/static/img/pictos/icon-facebook.png\" alt=\"Facebook\">
  241.                                 </a>    
  242.                             </div>
  243.                             {% endif %}
  244.                             {% if document.property('instagramUrl') %}
  245.                             <div>
  246.                                 <a href=\"{{ document.property('instagramUrl') }}\" target=\"_blank\">
  247.                                     <img src=\"/static/img/pictos/icon-instagram.png\" alt=\"Instagram\">
  248.                                 </a>    
  249.                             </div>
  250.                         {% endif %}
  251.                     </div>
  252.                 </div>
  253.             </div>
  254.         {% endif %}
  255.     </div>
  256.     </main><!-- end #main -->
  257. {% endblock %}
  258. {% block inlinescripts %}
  259. {% endblock inlinescripts %}""default/fin-concours.html.twig""/var/www/magnecapsv2.atypic-pp.be/www/templates/default/fin-concours.html.twig");
  260.     }
  261. }