var/cache/dev/twig/f8/f82ec9b401f32ca5f489d56ad60b39e3f65eab2e5e9073d897e63ea290869bfe.php line 40

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* areas/content-brick/layouts/text-gallery.html.twig */
  16. class __TwigTemplate_1f86b32449f3da510ecfa9ad91080bda1a2cd278d00d564c538e3ce31f6bff7e extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->parent false;
  28.         $this->blocks = [
  29.         ];
  30.         $this->sandbox $this->extensions[SandboxExtension::class];
  31.         $this->checkSecurity();
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = []): iterable
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/content-brick/layouts/text-gallery.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/content-brick/layouts/text-gallery.html.twig"));
  40.         // line 1
  41.         $context["hideMediaOnMobile"] = CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""hideMediaOnMobile"), "getData", [], "method"falsefalsetrue1);
  42.         // line 2
  43.         yield "
  44. ";
  45.         // line 3
  46.         $context["showRentalFormButton"] = CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""showRentalFormButton"), "getData", [], "method"falsefalsetrue3);
  47.         // line 4
  48.         $context["showRentalFormButtonColor"] = CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""showRentalFormButtonColor"), "getData", [], "method"falsefalsetrue4);
  49.         // line 5
  50.         yield "
  51. ";
  52.         // line 6
  53.         $context["showCustomButtonComment"] = CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""showCustomButtonComment"), "getData", [], "method"falsefalsetrue6);
  54.         // line 7
  55.         $context["customButtonComment"] = CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""customButtonComment"), "getData", [], "method"falsefalsetrue7);
  56.         // line 8
  57.         yield "
  58. <div class=\"container grid justify-center grid-cols-1 gap-6 mx-auto text-base md:text-lg md:grid-cols-2\">
  59.     ";
  60.         // line 11
  61.         yield "    ";
  62.         $context["inverted"] = ($context["inverted"] ?? CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""inverted"), "data", [], "any"falsefalsetrue11));
  63.         // line 12
  64.         yield "    <div class=\"order-2 md:flex md:items-center lg:pl-16 
  65.         ";
  66.         // line 13
  67.         yield (((isset($context["inverted"]) || array_key_exists("inverted"$context) ? $context["inverted"] : (function () { throw new RuntimeError('Variable "inverted" does not exist.'13$this->source); })())) ? ("md:order-2 lg:pl-16") : ("md:order-1 lg:pr-16"));
  68.         yield "
  69.         ";
  70.         // line 14
  71.         yield (((isset($context["hideMediaOnMobile"]) || array_key_exists("hideMediaOnMobile"$context) ? $context["hideMediaOnMobile"] : (function () { throw new RuntimeError('Variable "hideMediaOnMobile" does not exist.'14$this->source); })())) ? ("pt-4 md:pt-0") : (""));
  72.         yield "
  73.     \">
  74.         <div>
  75.             ";
  76.         // line 17
  77.         yield from $this->loadTemplate("areas/content-brick/partials/_headline.html.twig""areas/content-brick/layouts/text-gallery.html.twig"17)->unwrap()->yield($context);
  78.         // line 18
  79.         yield "
  80.             ";
  81.         // line 19
  82.         yield from $this->loadTemplate("areas/content-brick/partials/_title.html.twig""areas/content-brick/layouts/text-gallery.html.twig"19)->unwrap()->yield($context);
  83.         // line 20
  84.         yield "
  85.             ";
  86.         // line 21
  87.         yield from $this->loadTemplate("areas/content-brick/partials/_wysiwyg.html.twig""areas/content-brick/layouts/text-gallery.html.twig"21)->unwrap()->yield($context);
  88.         // line 22
  89.         yield "
  90.             ";
  91.         // line 23
  92.         yield from $this->loadTemplate("areas/content-brick/partials/_usps.html.twig""areas/content-brick/layouts/text-gallery.html.twig"23)->unwrap()->yield($context);
  93.         // line 24
  94.         yield "
  95.             ";
  96.         // line 25
  97.         yield from $this->loadTemplate("areas/content-brick/partials/_form-builder.html.twig""areas/content-brick/layouts/text-gallery.html.twig"25)->unwrap()->yield(CoreExtension::merge($context, ["fieldName" => "formbuilder-select_text-gallery"]));
  98.         // line 28
  99.         yield "
  100.             ";
  101.         // line 29
  102.         yield from $this->loadTemplate("areas/content-brick/partials/_buttons.html.twig""areas/content-brick/layouts/text-gallery.html.twig"29)->unwrap()->yield(CoreExtension::merge($context, ["product" => (        // line 30
  103. $context["product"] ?? null), "productCategory" => (        // line 31
  104. $context["productCategory"] ?? null), "showRentalFormButton" => (        // line 32
  105. $context["showRentalFormButton"] ?? null), "showRentalFormButtonColor" => (        // line 33
  106. $context["showRentalFormButtonColor"] ?? null), "greenButton" => true"showCustomButtonComment" => (        // line 35
  107. $context["showCustomButtonComment"] ?? null), "buttonComment" => (((        // line 36
  108. (isset($context["customButtonComment"]) || array_key_exists("customButtonComment"$context) ? $context["customButtonComment"] : (function () { throw new RuntimeError('Variable "customButtonComment" does not exist.'36$this->source); })()) !== "")) ? ((isset($context["customButtonComment"]) || array_key_exists("customButtonComment"$context) ? $context["customButtonComment"] : (function () { throw new RuntimeError('Variable "customButtonComment" does not exist.'36$this->source); })())) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Binnen één dag vrijblijvend een offerte")))]));
  109.         // line 38
  110.         yield "        </div>
  111.     </div>
  112.     <div class=\"order-1 
  113.         ";
  114.         // line 41
  115.         yield (((isset($context["inverted"]) || array_key_exists("inverted"$context) ? $context["inverted"] : (function () { throw new RuntimeError('Variable "inverted" does not exist.'41$this->source); })())) ? ("md:order-1") : ("md:order-2"));
  116.         yield "
  117.         ";
  118.         // line 42
  119.         yield (((isset($context["hideMediaOnMobile"]) || array_key_exists("hideMediaOnMobile"$context) ? $context["hideMediaOnMobile"] : (function () { throw new RuntimeError('Variable "hideMediaOnMobile" does not exist.'42$this->source); })())) ? ("hidden md:block") : (""));
  120.         yield "
  121.     \">
  122.         ";
  123.         // line 44
  124.         yield from $this->loadTemplate("areas/content-brick/partials/_gallery.html.twig""areas/content-brick/layouts/text-gallery.html.twig"44)->unwrap()->yield($context);
  125.         // line 45
  126.         yield "    </div>
  127. </div>";
  128.         
  129.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  130.         
  131.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  132.         yield from [];
  133.     }
  134.     /**
  135.      * @codeCoverageIgnore
  136.      */
  137.     public function getTemplateName(): string
  138.     {
  139.         return "areas/content-brick/layouts/text-gallery.html.twig";
  140.     }
  141.     /**
  142.      * @codeCoverageIgnore
  143.      */
  144.     public function isTraitable(): bool
  145.     {
  146.         return false;
  147.     }
  148.     /**
  149.      * @codeCoverageIgnore
  150.      */
  151.     public function getDebugInfo(): array
  152.     {
  153.         return array (  135 => 45,  133 => 44,  128 => 42,  124 => 41,  119 => 38,  117 => 36,  116 => 35,  115 => 33,  114 => 32,  113 => 31,  112 => 30,  111 => 29,  108 => 28,  106 => 25,  103 => 24,  101 => 23,  98 => 22,  96 => 21,  93 => 20,  91 => 19,  88 => 18,  86 => 17,  80 => 14,  76 => 13,  73 => 12,  70 => 11,  66 => 8,  64 => 7,  62 => 6,  59 => 5,  57 => 4,  55 => 3,  52 => 2,  50 => 1,);
  154.     }
  155.     public function getSourceContext(): Source
  156.     {
  157.         return new Source("{% set hideMediaOnMobile = pimcore_checkbox('hideMediaOnMobile').getData() %}
  158. {% set showRentalFormButton = pimcore_checkbox('showRentalFormButton').getData() %}
  159. {% set showRentalFormButtonColor = pimcore_select('showRentalFormButtonColor').getData() %}
  160. {% set showCustomButtonComment = pimcore_checkbox('showCustomButtonComment').getData() %}
  161. {% set customButtonComment = pimcore_input('customButtonComment').getData() %}
  162. <div class=\"container grid justify-center grid-cols-1 gap-6 mx-auto text-base md:text-lg md:grid-cols-2\">
  163.     {# Defined as param or EditableDialog field #}
  164.     {% set inverted = inverted ?? pimcore_select('inverted').data %}
  165.     <div class=\"order-2 md:flex md:items-center lg:pl-16 
  166.         {{ inverted ? 'md:order-2 lg:pl-16' : 'md:order-1 lg:pr-16' }}
  167.         {{ hideMediaOnMobile ? 'pt-4 md:pt-0' : '' }}
  168.     \">
  169.         <div>
  170.             {% include 'areas/content-brick/partials/_headline.html.twig' %}
  171.             {% include 'areas/content-brick/partials/_title.html.twig' %}
  172.             {% include 'areas/content-brick/partials/_wysiwyg.html.twig' %}
  173.             {% include 'areas/content-brick/partials/_usps.html.twig' %}
  174.             {% include 'areas/content-brick/partials/_form-builder.html.twig' with {
  175.                 'fieldName' : 'formbuilder-select_text-gallery' }
  176.             %}
  177.             {% include 'areas/content-brick/partials/_buttons.html.twig' with {
  178.                 product: product ?? null,
  179.                 productCategory: productCategory ?? null,
  180.                 showRentalFormButton: showRentalFormButton ?? null,
  181.                 showRentalFormButtonColor: showRentalFormButtonColor ?? null,
  182.                 greenButton: true,
  183.                 showCustomButtonComment: showCustomButtonComment ?? null,
  184.                 buttonComment: customButtonComment !== '' ? customButtonComment : 'Binnen één dag vrijblijvend een offerte'|trans
  185.             } %}
  186.         </div>
  187.     </div>
  188.     <div class=\"order-1 
  189.         {{ inverted ? 'md:order-1' : 'md:order-2' }}
  190.         {{ hideMediaOnMobile ? 'hidden md:block' : '' }}
  191.     \">
  192.         {% include 'areas/content-brick/partials/_gallery.html.twig' %}
  193.     </div>
  194. </div>""areas/content-brick/layouts/text-gallery.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/areas/content-brick/layouts/text-gallery.html.twig");
  195.     }
  196.     
  197.     public function checkSecurity()
  198.     {
  199.         static $tags = ["set" => 1"include" => 17];
  200.         static $filters = ["trans" => 36];
  201.         static $functions = ["pimcore_checkbox" => 1"pimcore_select" => 4"pimcore_input" => 7];
  202.         try {
  203.             $this->sandbox->checkSecurity(
  204.                 ['set''include'],
  205.                 ['trans'],
  206.                 ['pimcore_checkbox''pimcore_select''pimcore_input'],
  207.                 $this->source
  208.             );
  209.         } catch (SecurityError $e) {
  210.             $e->setSourceContext($this->source);
  211.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  212.                 $e->setTemplateLine($tags[$e->getTagName()]);
  213.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  214.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  215.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  216.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  217.             }
  218.             throw $e;
  219.         }
  220.     }
  221. }