var/cache/dev/twig/02/02465cedbcf5d585ad3a34e4be246b9a188e7f5423a457b0be136c2230a62b26.php line 33

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. /* document/areabricks/column-layout-brick/view.html.twig */
  14. class __TwigTemplate_47626345ebfe8729ef3224be222869dcd727d8790ba912696c178c2bdd0a3bc9 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""document/areabricks/column-layout-brick/view.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""document/areabricks/column-layout-brick/view.html.twig"));
  33.         // line 1
  34.         $context["column"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""column"), "getData", [], "method"falsefalsefalse1);
  35.         // line 2
  36.         $context["bgColor"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""backgroundColor"), "getData", [], "method"falsefalsefalse2);
  37.         // line 3
  38.         echo "
  39. ";
  40.         // line 4
  41.         $context["class1"] = "col-span-6";
  42.         // line 5
  43.         $context["class2"] = "hidden";
  44.         // line 6
  45.         if (((isset($context["column"]) || array_key_exists("column"$context) ? $context["column"] : (function () { throw new RuntimeError('Variable "column" does not exist.'6$this->source); })()) == "50/50")) {
  46.             // line 7
  47.             echo "  ";
  48.             $context["class1"] = "xl:col-span-3";
  49.             // line 8
  50.             echo "  ";
  51.             $context["class2"] = "xl:col-span-3";
  52.         } elseif ((        // line 9
  53. (isset($context["column"]) || array_key_exists("column"$context) ? $context["column"] : (function () { throw new RuntimeError('Variable "column" does not exist.'9$this->source); })()) == "70/30")) {
  54.             // line 10
  55.             echo "  ";
  56.             $context["class1"] = "xl:col-span-4";
  57.             // line 11
  58.             echo "  ";
  59.             $context["class2"] = "xl:col-span-2";
  60.         } elseif ((        // line 12
  61. (isset($context["column"]) || array_key_exists("column"$context) ? $context["column"] : (function () { throw new RuntimeError('Variable "column" does not exist.'12$this->source); })()) == "30/70")) {
  62.             // line 13
  63.             echo "  ";
  64.             $context["class1"] = "xl:col-span-2";
  65.             // line 14
  66.             echo "  ";
  67.             $context["class2"] = "xl:col-span-4";
  68.         }
  69.         // line 16
  70.         echo "
  71. <div class=\"mx-auto max-w-8xl ";
  72.         // line 19
  73.         echo twig_escape_filter($this->env, (isset($context["bgColor"]) || array_key_exists("bgColor"$context) ? $context["bgColor"] : (function () { throw new RuntimeError('Variable "bgColor" does not exist.'19$this->source); })()), "html"nulltrue);
  74.         echo "\">
  75. <section class=\"";
  76.         // line 20
  77.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'20$this->source); })())) {
  78.             echo "py-12 border-black border-dashed border";
  79.         }
  80.         echo " mx-auto max-w-screen-3xl container\">
  81.     <div class=\"container py-8 mx-auto md:py-16\">
  82.     <div class=\"flex items-center gap-4 mb-6 text-primary-500\">
  83.     ";
  84.         // line 23
  85.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'23$this->source); })())) {
  86.             // line 24
  87.             echo "      ";
  88.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relation""icon");
  89.             echo "
  90.     ";
  91.         }
  92.         // line 26
  93.         echo "    ";
  94.         if (twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relation""icon"), "element", [], "any"falsefalsefalse26)) {
  95.             // line 27
  96.             echo "    ";
  97.             echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relation""icon"), "element", [], "any"falsefalsefalse27), "thumbnail", [=> "reference-icon"], "method"falsefalsefalse27), "html", [=> ["pictureAttributes" => ["class" => "w-8 "], "imgAttributes" => ["class" => "w-8"]]], "method"falsefalsefalse27);
  98.             // line 30
  99.             echo "
  100.   ";
  101.         }
  102.         // line 32
  103.         echo "
  104.         <h2 class=\"uppercase h4\">
  105.             ";
  106.         // line 35
  107.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""headline", ["placeholder" => "Überschrift"]);
  108.         // line 37
  109.         echo "
  110.         </h2>
  111.         </div>
  112.         <div class=\"grid gap-12 xl:grid-cols-6\">
  113.             <div class=\"";
  114.         // line 41
  115.         echo twig_escape_filter($this->env, (isset($context["class1"]) || array_key_exists("class1"$context) ? $context["class1"] : (function () { throw new RuntimeError('Variable "class1" does not exist.'41$this->source); })()), "html"nulltrue);
  116.         echo "\">
  117.             ";
  118.         // line 43
  119.         echo "            ";
  120.         // line 44
  121.         echo "            ";
  122.         $__internal_compile_0 null;
  123.         try {
  124.             $__internal_compile_0 =             $this->loadTemplate("component/areablock-column-layout.html.twig""document/areabricks/column-layout-brick/view.html.twig"44);
  125.         } catch (LoaderError $e) {
  126.             // ignore missing template
  127.         }
  128.         if ($__internal_compile_0) {
  129.             $__internal_compile_0->display(twig_array_merge($context, ["areablockname" => "pagethreeleft"]));
  130.         }
  131.         // line 45
  132.         echo "            </div>
  133.             <div class=\"";
  134.         // line 46
  135.         echo twig_escape_filter($this->env, (isset($context["class2"]) || array_key_exists("class2"$context) ? $context["class2"] : (function () { throw new RuntimeError('Variable "class2" does not exist.'46$this->source); })()), "html"nulltrue);
  136.         echo "\">
  137.               ";
  138.         // line 48
  139.         echo "              ";
  140.         // line 49
  141.         echo "              ";
  142.         $__internal_compile_1 null;
  143.         try {
  144.             $__internal_compile_1 =             $this->loadTemplate("component/areablock-column-layout.html.twig""document/areabricks/column-layout-brick/view.html.twig"49);
  145.         } catch (LoaderError $e) {
  146.             // ignore missing template
  147.         }
  148.         if ($__internal_compile_1) {
  149.             $__internal_compile_1->display(twig_array_merge($context, ["areablockname" => "pagethreeright"]));
  150.         }
  151.         // line 50
  152.         echo "            </div>
  153.         </div>
  154.     </div>
  155. </section>
  156. </div>
  157. ";
  158.         
  159.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  160.         
  161.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  162.     }
  163.     public function getTemplateName()
  164.     {
  165.         return "document/areabricks/column-layout-brick/view.html.twig";
  166.     }
  167.     public function isTraitable()
  168.     {
  169.         return false;
  170.     }
  171.     public function getDebugInfo()
  172.     {
  173.         return array (  164 => 50,  153 => 49,  151 => 48,  147 => 46,  144 => 45,  133 => 44,  131 => 43,  127 => 41,  121 => 37,  119 => 35,  114 => 32,  110 => 30,  107 => 27,  104 => 26,  98 => 24,  96 => 23,  88 => 20,  84 => 19,  79 => 16,  75 => 14,  72 => 13,  70 => 12,  67 => 11,  64 => 10,  62 => 9,  59 => 8,  56 => 7,  54 => 6,  52 => 5,  50 => 4,  47 => 3,  45 => 2,  43 => 1,);
  174.     }
  175.     public function getSourceContext()
  176.     {
  177.         return new Source("{% set column = pimcore_select(\"column\").getData() %}
  178. {% set bgColor = pimcore_select(\"backgroundColor\").getData() %}
  179. {% set class1 = 'col-span-6' %}
  180. {% set class2 = 'hidden' %}
  181. {% if column == '50/50' %}
  182.   {% set class1 = 'xl:col-span-3' %}
  183.   {% set class2 = 'xl:col-span-3' %}
  184. {% elseif column == '70/30' %}
  185.   {% set class1 = 'xl:col-span-4' %}
  186.   {% set class2 = 'xl:col-span-2' %}
  187. {% elseif column == '30/70' %}
  188.   {% set class1 = 'xl:col-span-2' %}
  189.   {% set class2 = 'xl:col-span-4' %}
  190. {% endif %}
  191. <div class=\"mx-auto max-w-8xl {{ bgColor }}\">
  192. <section class=\"{% if editmode %}py-12 border-black border-dashed border{% endif %} mx-auto max-w-screen-3xl container\">
  193.     <div class=\"container py-8 mx-auto md:py-16\">
  194.     <div class=\"flex items-center gap-4 mb-6 text-primary-500\">
  195.     {% if editmode %}
  196.       {{pimcore_relation('icon') }}
  197.     {% endif %}
  198.     {% if pimcore_relation('icon').element %}
  199.     {{pimcore_relation('icon').element.thumbnail('reference-icon').html({
  200.       pictureAttributes: {class: 'w-8 '},
  201.       imgAttributes: {class: 'w-8'},
  202.     })|raw}}
  203.   {% endif %}
  204.         <h2 class=\"uppercase h4\">
  205.             {{ pimcore_input('headline', {
  206.                 \"placeholder\": \"Überschrift\"
  207.             }) }}
  208.         </h2>
  209.         </div>
  210.         <div class=\"grid gap-12 xl:grid-cols-6\">
  211.             <div class=\"{{ class1 }}\">
  212.             {# Areablocks #}
  213.             {# prettier-ignore #}
  214.             {% include \"component/areablock-column-layout.html.twig\" ignore missing with {'areablockname': 'pagethreeleft'} %}
  215.             </div>
  216.             <div class=\"{{ class2 }}\">
  217.               {# Areablocks #}
  218.               {# prettier-ignore #}
  219.               {% include \"component/areablock-column-layout.html.twig\" ignore missing with {'areablockname': 'pagethreeright'} %}
  220.             </div>
  221.         </div>
  222.     </div>
  223. </section>
  224. </div>
  225. ""document/areabricks/column-layout-brick/view.html.twig""/var/www/vhosts/3forone.ch/httpdocs/abowire/templates/document/areabricks/column-layout-brick/view.html.twig");
  226.     }
  227. }