var/cache/dev/twig/e0/e051ed5b0561a75a40c27c71c37cb8bb.php line 144

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. /* @openform_front_templates/AntiqueSuit/antique_item.html.twig */
  14. class __TwigTemplate_ccee10a17b0d52d1d0c06f969c699639 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.             'bodyAttr' => [$this'block_bodyAttr'],
  24.             'contentClass' => [$this'block_contentClass'],
  25.             'header' => [$this'block_header'],
  26.             'content' => [$this'block_content'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "@openform_front_templates/base.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""@openform_front_templates/AntiqueSuit/antique_item.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""@openform_front_templates/AntiqueSuit/antique_item.html.twig"));
  41.         // line 5
  42.         $context["pageSubTitle"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'5$this->source); })()), "Translation", [], "any"falsefalsefalse5), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'5$this->source); })()), "request", [], "any"falsefalsefalse5), "locale", [], "any"falsefalsefalse5), [], "array"falsefalsefalse5), "title", [], "any"falsefalsefalse5);
  43.         // line 6
  44.         $context["metaTitle"] = ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'6$this->source); })()), "Translation", [], "any"falsefalsefalse6), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'6$this->source); })()), "request", [], "any"falsefalsefalse6), "locale", [], "any"falsefalsefalse6), [], "array"falsefalsefalse6), "metaTitle", [], "any"falsefalsefalse6)) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'6$this->source); })()), "Translation", [], "any"falsefalsefalse6), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'6$this->source); })()), "request", [], "any"falsefalsefalse6), "locale", [], "any"falsefalsefalse6), [], "array"falsefalsefalse6), "metaTitle", [], "any"falsefalsefalse6)) : (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'6$this->source); })()), "Translation", [], "any"falsefalsefalse6), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'6$this->source); })()), "request", [], "any"falsefalsefalse6), "locale", [], "any"falsefalsefalse6), [], "array"falsefalsefalse6), "title", [], "any"falsefalsefalse6)));
  45.         // line 7
  46.         $context["metaDescription"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'7$this->source); })()), "Translation", [], "any"falsefalsefalse7), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'7$this->source); })()), "request", [], "any"falsefalsefalse7), "locale", [], "any"falsefalsefalse7), [], "array"falsefalsefalse7), "metaDescription", [], "any"falsefalsefalse7);
  47.         // line 8
  48.         $context["metaKeywords"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'8$this->source); })()), "Translation", [], "any"falsefalsefalse8), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'8$this->source); })()), "request", [], "any"falsefalsefalse8), "locale", [], "any"falsefalsefalse8), [], "array"falsefalsefalse8), "metaKeywords", [], "any"falsefalsefalse8);
  49.         // line 9
  50.         $context["pageImage"] = ((twig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'9$this->source); })()), "imagePath", [], "any"falsefalsefalse9)) ? (twig_get_attribute($this->env$this->source, (isset($context["openform_front_util"]) || array_key_exists("openform_front_util"$context) ? $context["openform_front_util"] : (function () { throw new RuntimeError('Variable "openform_front_util" does not exist.'9$this->source); })()), "getImagePathByType", [twig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'9$this->source); })()), "Thumb", [], "any"falsefalsefalse9), "list"], "method"falsefalsefalse9)) : (""));
  51.         // line 10
  52.         $context["mobile"] = twig_get_attribute($this->env$this->source, (isset($context["openform_front_util"]) || array_key_exists("openform_front_util"$context) ? $context["openform_front_util"] : (function () { throw new RuntimeError('Variable "openform_front_util" does not exist.'10$this->source); })()), "isMobileDevice", [], "method"falsefalsefalse10);
  53.         // line 1
  54.         $this->parent $this->loadTemplate("@openform_front_templates/base.html.twig""@openform_front_templates/AntiqueSuit/antique_item.html.twig"1);
  55.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  56.         
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  58.         
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  60.     }
  61.     // line 3
  62.     public function block_bodyAttr($context, array $blocks = [])
  63.     {
  64.         $macros $this->macros;
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyAttr"));
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyAttr"));
  69.         echo "data-page=\"detail-page\"";
  70.         
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  72.         
  73.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  74.     }
  75.     // line 11
  76.     public function block_contentClass($context, array $blocks = [])
  77.     {
  78.         $macros $this->macros;
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contentClass"));
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contentClass"));
  83.         if (((twig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'11$this->source); })()), "templateId", [], "any"falsefalsefalse11) == 6) && ((isset($context["mobile"]) || array_key_exists("mobile"$context) ? $context["mobile"] : (function () { throw new RuntimeError('Variable "mobile" does not exist.'11$this->source); })()) == false))) {
  84.             echo "no-padding";
  85.         }
  86.         
  87.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  88.         
  89.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  90.     }
  91.     // line 14
  92.     public function block_header($context, array $blocks = [])
  93.     {
  94.         $macros $this->macros;
  95.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  96.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  97.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  98.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  99.         // line 15
  100.         echo "    ";
  101.         if ((((twig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'15$this->source); })()), "templateId", [], "any"falsefalsefalse15) == 6) && ((isset($context["mobile"]) || array_key_exists("mobile"$context) ? $context["mobile"] : (function () { throw new RuntimeError('Variable "mobile" does not exist.'15$this->source); })()) == false)) &&  !(twig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'15$this->source); })()), "textAreaWidth", [], "any"falsefalsefalse15) === 0))) {
  102.             // line 16
  103.             echo "    ";
  104.         } else {
  105.             // line 17
  106.             echo "        ";
  107.             $this->loadTemplate("@openform_front_templates/_includes/_header_mak.html.twig""@openform_front_templates/AntiqueSuit/antique_item.html.twig"17)->display($context);
  108.             // line 18
  109.             echo "    ";
  110.         }
  111.         
  112.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  113.         
  114.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  115.     }
  116.     // line 20
  117.     public function block_content($context, array $blocks = [])
  118.     {
  119.         $macros $this->macros;
  120.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  121.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  122.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  123.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  124.         echo "    
  125.      ";
  126.         // line 22
  127.         echo "    ";
  128.         // line 23
  129.         echo "    
  130.     ";
  131.         // line 24
  132.         if ((isset($context["mobile"]) || array_key_exists("mobile"$context) ? $context["mobile"] : (function () { throw new RuntimeError('Variable "mobile" does not exist.'24$this->source); })())) {
  133.             // line 25
  134.             echo "        ";
  135.             echo twig_include($this->env$context"@openform_front_templates/AntiqueSuit/_templates/_template-mobile.html.twig", ["entity" => (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'25$this->source); })())]);
  136.             echo "
  137.     ";
  138.         } else {
  139.             // line 27
  140.             echo "        
  141.   <div class=\"background-mak-default\" style=\"";
  142.             // line 28
  143.             if ((twig_get_attribute($this->env$this->source, ($context["entity"] ?? null), "background", [], "any"truetruefalse28) || twig_get_attribute($this->env$this->source, ($context["rootParent"] ?? null), "background", [], "any"truetruefalse28))) {
  144.                 echo "background-color: ";
  145.                 echo twig_escape_filter($this->env, ((((twig_get_attribute($this->env$this->source, ($context["entity"] ?? null), "background", [], "any"truetruefalse28) && (twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'28$this->source); })()), "background", [], "any"falsefalsefalse28)) > 0)) && twig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'28$this->source); })()), "background", [], "any"falsefalsefalse28))) ? (twig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'28$this->source); })()), "background", [], "any"falsefalsefalse28)) : ((((twig_get_attribute($this->env$this->source, ($context["rootParent"] ?? null), "background", [], "any"truetruefalse28) && (twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["rootParent"]) || array_key_exists("rootParent"$context) ? $context["rootParent"] : (function () { throw new RuntimeError('Variable "rootParent" does not exist.'28$this->source); })()), "background", [], "any"falsefalsefalse28)) > 0))) ? (twig_get_attribute($this->env$this->source, (isset($context["rootParent"]) || array_key_exists("rootParent"$context) ? $context["rootParent"] : (function () { throw new RuntimeError('Variable "rootParent" does not exist.'28$this->source); })()), "background", [], "any"falsefalsefalse28)) : ("")))), "html"nulltrue);
  146.             }
  147.             echo "\">
  148.     
  149.     ";
  150.             // line 30
  151.             echo twig_include($this->env$context, (("@openform_front_templates/AntiqueSuit/_templates/_template-" twig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'30$this->source); })()), "templateId", [], "any"falsefalsefalse30)) . ".html.twig"), ["entity" => (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'30$this->source); })())]);
  152.             echo "
  153.     </div>
  154.     ";
  155.         }
  156.         
  157.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  158.         
  159.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  160.     }
  161.     public function getTemplateName()
  162.     {
  163.         return "@openform_front_templates/AntiqueSuit/antique_item.html.twig";
  164.     }
  165.     public function isTraitable()
  166.     {
  167.         return false;
  168.     }
  169.     public function getDebugInfo()
  170.     {
  171.         return array (  180 => 30,  172 => 28,  169 => 27,  163 => 25,  161 => 24,  158 => 23,  156 => 22,  144 => 20,  133 => 18,  130 => 17,  127 => 16,  124 => 15,  114 => 14,  93 => 11,  74 => 3,  63 => 1,  61 => 10,  59 => 9,  57 => 8,  55 => 7,  53 => 6,  51 => 5,  38 => 1,);
  172.     }
  173.     public function getSourceContext()
  174.     {
  175.         return new Source("{% extends \"@openform_front_templates/base.html.twig\" %}
  176. {% block bodyAttr %}data-page=\"detail-page\"{% endblock %}
  177. {% set pageSubTitle = entity.Translation[app.request.locale].title %}
  178. {% set metaTitle = entity.Translation[app.request.locale].metaTitle ? entity.Translation[app.request.locale].metaTitle : entity.Translation[app.request.locale].title %}
  179. {% set metaDescription = entity.Translation[app.request.locale].metaDescription %}
  180. {% set metaKeywords = entity.Translation[app.request.locale].metaKeywords %}
  181. {% set pageImage = entity.imagePath ? openform_front_util.getImagePathByType(entity.Thumb,'list') : '' %}
  182. {% set mobile = openform_front_util.isMobileDevice() %}
  183. {% block contentClass %}{% if entity.templateId == 6 and mobile == false %}no-padding{% endif %}{% endblock %}
  184. {% block header %}
  185.     {% if entity.templateId == 6 and mobile == false and not entity.textAreaWidth is same as(0) %}
  186.     {% else %}
  187.         {% include \"@openform_front_templates/_includes/_header_mak.html.twig\" %}
  188.     {% endif %}
  189. {% endblock %}
  190. {% block content %}    
  191.      {# WYBRANY SZABLON: nr {{ entity.templateId }} #}
  192.     {# no i tutaj jakiś inkludzik czy coś  w tym stylu #}
  193.     
  194.     {% if mobile %}
  195.         {{ include('@openform_front_templates/AntiqueSuit/_templates/_template-mobile.html.twig', {entity: entity}) }}
  196.     {% else %}
  197.         
  198.   <div class=\"background-mak-default\" style=\"{% if entity.background is defined or rootParent.background is defined %}background-color: {{entity.background is defined and entity.background|length > 0 and entity.background ? entity.background : rootParent.background is defined and rootParent.background|length > 0 ? rootParent.background}}{% endif %}\">
  199.     
  200.     {{ include('@openform_front_templates/AntiqueSuit/_templates/_template-' ~ entity.templateId ~ '.html.twig', {entity: entity}) }}
  201.     </div>
  202.     {% endif %}
  203. {% endblock %}""@openform_front_templates/AntiqueSuit/antique_item.html.twig""/var/www/php81/fpd.in.openform.pl/src/Package/Openform/Front/Templates/AntiqueSuit/antique_item.html.twig");
  204.     }
  205. }