var/cache/dev/twig/43/4330187b689020f27b2f9059c231fe17.php line 51

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/default.html.twig */
  14. class __TwigTemplate_1fa90911031ba454b5af7670a94c7539 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""default/default.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""default/default.html.twig"));
  41.         $this->parent $this->loadTemplate("layout.html.twig""default/default.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 8
  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 9
  57.         echo "    <!-- #main -->
  58.     <main id=\"main\" role=\"main\">
  59.         ";
  60.         // line 12
  61.         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.'12$this->source); })()), "getProperty", [=> "homepage"], "method"falsefalsetrue12) != true)) {
  62.             // line 13
  63.             echo "
  64.         <section class=\"apk-page-header-container\">
  65.             <div class=\"uk-container apk-container-1200\">
  66.                 <div class=\"apk-page-header uk-width-4-5@m\">
  67.                     ";
  68.             // line 17
  69.             if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'17$this->source); })())) {
  70.                 // line 18
  71.                 echo "                        <h1 class=\"uk-h1\">";
  72.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""title", ["nl2br" => true]);
  73.                 echo "</h1>
  74.                         <div class=\"apk-page-header--text\">";
  75.                 // line 19
  76.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""texte", ["nl2br" => true]);
  77.                 echo "</div>
  78.                         <div class=\"apk-actions\">";
  79.                 // line 20
  80.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""content-btn", ["class" => "uk-button uk-button-primary"]);
  81.                 echo "</div>
  82.                     ";
  83.             } else {
  84.                 // line 22
  85.                 echo "                        ";
  86.                 if ( !twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""title"), "isEmpty", [], "method"falsefalsetrue22)) {
  87.                     // line 23
  88.                     echo "                            <h1 class=\"uk-h1\">";
  89.                     echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""title", ["nl2br" => true]);
  90.                     echo "</h1>
  91.                         ";
  92.                 }
  93.                 // line 25
  94.                 echo "                        ";
  95.                 if ( !twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""texte"), "isEmpty", [], "method"falsefalsetrue25)) {
  96.                     // line 26
  97.                     echo "                            <div class=\"apk-page-header--text\">";
  98.                     echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""texte", ["nl2br" => true]);
  99.                     echo "</div>
  100.                         ";
  101.                 }
  102.                 // line 28
  103.                 echo "                        ";
  104.                 if ( !twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""content-btn"), "isEmpty", [], "method"falsefalsetrue28)) {
  105.                     // line 29
  106.                     echo "                            <div class=\"apk-actions\">";
  107.                     echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""content-btn", ["class" => "uk-button uk-button-primary"]);
  108.                     echo "</div>
  109.                         ";
  110.                 }
  111.                 // line 31
  112.                 echo "                    ";
  113.             }
  114.             // line 32
  115.             echo "                </div>
  116.             </div>
  117.         </section>
  118.         ";
  119.         }
  120.         // line 37
  121.         echo "
  122.         ";
  123.         // line 38
  124.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""content");
  125.         echo "
  126.     </main><!-- end #main -->
  127. ";
  128.         
  129.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  130.         
  131.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  132.     }
  133.     // line 45
  134.     public function block_inlinescripts($context, array $blocks = [])
  135.     {
  136.         $macros $this->macros;
  137.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  138.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inlinescripts"));
  139.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  140.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inlinescripts"));
  141.         // line 46
  142.         echo "
  143. ";
  144.         
  145.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  146.         
  147.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  148.     }
  149.     public function getTemplateName()
  150.     {
  151.         return "default/default.html.twig";
  152.     }
  153.     public function isTraitable()
  154.     {
  155.         return false;
  156.     }
  157.     public function getDebugInfo()
  158.     {
  159.         return array (  165 => 46,  155 => 45,  140 => 38,  137 => 37,  130 => 32,  127 => 31,  121 => 29,  118 => 28,  112 => 26,  109 => 25,  103 => 23,  100 => 22,  95 => 20,  91 => 19,  86 => 18,  84 => 17,  78 => 13,  76 => 12,  71 => 9,  61 => 8,  38 => 1,);
  160.     }
  161.     public function getSourceContext()
  162.     {
  163.         return new Source("{% extends \"layout.html.twig\" %}
  164. {#
  165.     {% use AppBundle/Helper/Apik %}
  166. #}
  167. {% block content %}
  168.     <!-- #main -->
  169.     <main id=\"main\" role=\"main\">
  170.         {% if document.getProperty(\"homepage\") != true %}
  171.         <section class=\"apk-page-header-container\">
  172.             <div class=\"uk-container apk-container-1200\">
  173.                 <div class=\"apk-page-header uk-width-4-5@m\">
  174.                     {% if editmode %}
  175.                         <h1 class=\"uk-h1\">{{ pimcore_textarea(\"title\",{\"nl2br\" : true}) }}</h1>
  176.                         <div class=\"apk-page-header--text\">{{ pimcore_textarea(\"texte\",{\"nl2br\" : true}) }}</div>
  177.                         <div class=\"apk-actions\">{{ pimcore_link(\"content-btn\", {\"class\" : \"uk-button uk-button-primary\"}) }}</div>
  178.                     {% else %}
  179.                         {% if not pimcore_textarea(\"title\").isEmpty() %}
  180.                             <h1 class=\"uk-h1\">{{ pimcore_textarea(\"title\",{\"nl2br\" : true}) }}</h1>
  181.                         {% endif %}
  182.                         {% if not pimcore_textarea(\"texte\").isEmpty() %}
  183.                             <div class=\"apk-page-header--text\">{{ pimcore_textarea(\"texte\",{\"nl2br\" : true}) }}</div>
  184.                         {% endif %}
  185.                         {% if not pimcore_textarea(\"content-btn\").isEmpty() %}
  186.                             <div class=\"apk-actions\">{{ pimcore_link(\"content-btn\", {\"class\" : \"uk-button uk-button-primary\"}) }}</div>
  187.                         {% endif %}
  188.                     {% endif %}
  189.                 </div>
  190.             </div>
  191.         </section>
  192.         {% endif %}
  193.         {{ pimcore_areablock('content') }}
  194.     </main><!-- end #main -->
  195. {% endblock %}
  196. {% block inlinescripts %}
  197. {% endblock %}""default/default.html.twig""/var/www/www.mangogem.com/www/templates/default/default.html.twig");
  198.     }
  199.     
  200.     public function checkSecurity()
  201.     {
  202.         static $tags = array("if" => 12);
  203.         static $filters = array();
  204.         static $functions = array("pimcore_textarea" => 18"pimcore_link" => 20"pimcore_areablock" => 38);
  205.         try {
  206.             $this->sandbox->checkSecurity(
  207.                 ['if'],
  208.                 [],
  209.                 ['pimcore_textarea''pimcore_link''pimcore_areablock']
  210.             );
  211.         } catch (SecurityError $e) {
  212.             $e->setSourceContext($this->source);
  213.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  214.                 $e->setTemplateLine($tags[$e->getTagName()]);
  215.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  216.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  217.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  218.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  219.             }
  220.             throw $e;
  221.         }
  222.     }
  223. }