var/cache/dev/twig/58/58256ff0229337c8b63ddb4faf1e9d7f.php line 63

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/_templates/_sections/_section-6.html.twig */
  14. class __TwigTemplate_ad2c4fcbb102d9ac7f631ada4fef1ded 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_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@openform_front_templates/AntiqueSuit/_templates/_sections/_section-6.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@openform_front_templates/AntiqueSuit/_templates/_sections/_section-6.html.twig"));
  33.         // line 1
  34.         echo "<div class=\"object__wrapper object__wrapper--last object__item__section\">
  35. \t<div class=\"object__wrapper__title object__wrapper__title--mb-20\">";
  36.         // line 2
  37.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("T_RECORD_INFORMATION", [], "openform_front"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.'2$this->source); })()), "request", [], "any"falsefalsefalse2), "locale", [], "any"falsefalsefalse2)), "html"nulltrue);
  38.         echo ":</div>
  39. \t<div class=\"object__wrapper__list\">
  40. \t\t";
  41.         // line 5
  42.         if (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), "updatedAt", [], "any"falsefalsefalse5)) {
  43.             // line 6
  44.             echo "\t\t\t<div class=\"object__item-wrap\">
  45. \t\t\t\t<h3 class=\"object__item-wrap__title\">";
  46.             // line 7
  47.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("T_UPDATE_AT", [], "openform_front"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)), "html"nulltrue);
  48.             echo ":</h3>
  49. \t\t\t\t<div class=\"object__item-wrap__text\">
  50. \t\t\t\t\t";
  51.             // line 10
  52.             $this->loadTemplate("@openform_front_templates/AntiqueSuit/_templates/_fields/_date_and_age.html.twig""@openform_front_templates/AntiqueSuit/_templates/_sections/_section-6.html.twig"10)->display(twig_array_merge($context, ["date" => 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.'10$this->source); })()), "Translation", [], "any"falsefalsefalse10), 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.'10$this->source); })()), "request", [], "any"falsefalsefalse10), "locale", [], "any"falsefalsefalse10), [], "array"falsefalsefalse10), "updatedAt", [], "any"falsefalsefalse10)]));
  53.             // line 11
  54.             echo "\t\t\t\t</div>
  55. \t\t\t</div>
  56. \t\t";
  57.         }
  58.         // line 14
  59.         echo "
  60. \t\t";
  61.         // line 15
  62.         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); })()), "id", [], "any"falsefalsefalse15)) {
  63.             // line 16
  64.             echo "\t\t\t<div class=\"object__item-wrap\">
  65. \t\t\t\t<h3 class=\"object__item-wrap__title\">";
  66.             // line 17
  67.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("T_ID_NUMBER", [], "openform_front"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.'17$this->source); })()), "request", [], "any"falsefalsefalse17), "locale", [], "any"falsefalsefalse17)), "html"nulltrue);
  68.             echo ":</h3>
  69. \t\t\t\t<div class=\"object__item-wrap__text\">
  70. \t\t\t\t\t";
  71.             // line 20
  72.             echo twig_escape_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.'20$this->source); })()), "id", [], "any"falsefalsefalse20), "html"nulltrue);
  73.             echo "
  74. \t\t\t\t</div>
  75. \t\t\t</div>
  76. \t\t";
  77.         }
  78.         // line 24
  79.         echo "\t\t";
  80.         $context["href"] = (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.'24$this->source); })()), "request", [], "any"falsefalsefalse24), "getSchemeAndHttpHost", [], "method"falsefalsefalse24) . twig_get_attribute($this->env$this->source, (isset($context["toolkit_route_localizer"]) || array_key_exists("toolkit_route_localizer"$context) ? $context["toolkit_route_localizer"] : (function () { throw new RuntimeError('Variable "toolkit_route_localizer" does not exist.'24$this->source); })()), "generate", ["antique_item", ["slug" => 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.'24$this->source); })()), "Translation", [], "any"falsefalsefalse24), 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.'24$this->source); })()), "request", [], "any"falsefalsefalse24), "locale", [], "any"falsefalsefalse24), [], "array"falsefalsefalse24), "slug", [], "any"falsefalsefalse24)], 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.'24$this->source); })()), "request", [], "any"falsefalsefalse24), "locale", [], "any"falsefalsefalse24)], "method"falsefalsefalse24));
  81.         // line 25
  82.         echo "\t\t";
  83.         if ((isset($context["href"]) || array_key_exists("href"$context) ? $context["href"] : (function () { throw new RuntimeError('Variable "href" does not exist.'25$this->source); })())) {
  84.             // line 26
  85.             echo "\t\t\t<div class=\"object__item-wrap\">
  86. \t\t\t\t
  87. \t\t\t\t<h3 class=\"object__item-wrap__title\">";
  88.             // line 28
  89.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("T_OBJECT_URL", [], "openform_front"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.'28$this->source); })()), "request", [], "any"falsefalsefalse28), "locale", [], "any"falsefalsefalse28)), "html"nulltrue);
  90.             echo ":</h3>
  91. \t\t\t\t<div class=\"object__item-wrap__text\">
  92. \t\t\t\t\t<a href=\"";
  93.             // line 31
  94.             echo twig_escape_filter($this->env, (isset($context["href"]) || array_key_exists("href"$context) ? $context["href"] : (function () { throw new RuntimeError('Variable "href" does not exist.'31$this->source); })()), "html"nulltrue);
  95.             echo "\">";
  96.             echo twig_escape_filter($this->env, (isset($context["href"]) || array_key_exists("href"$context) ? $context["href"] : (function () { throw new RuntimeError('Variable "href" does not exist.'31$this->source); })()), "html"nulltrue);
  97.             echo "</a>
  98. \t\t\t\t</div>
  99. \t\t\t</div>
  100. \t\t";
  101.         }
  102.         // line 35
  103.         echo "\t</div>
  104. </div>";
  105.         
  106.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  107.         
  108.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  109.     }
  110.     public function getTemplateName()
  111.     {
  112.         return "@openform_front_templates/AntiqueSuit/_templates/_sections/_section-6.html.twig";
  113.     }
  114.     public function isTraitable()
  115.     {
  116.         return false;
  117.     }
  118.     public function getDebugInfo()
  119.     {
  120.         return array (  116 => 35,  107 => 31,  101 => 28,  97 => 26,  94 => 25,  91 => 24,  84 => 20,  78 => 17,  75 => 16,  73 => 15,  70 => 14,  65 => 11,  63 => 10,  57 => 7,  54 => 6,  52 => 5,  46 => 2,  43 => 1,);
  121.     }
  122.     public function getSourceContext()
  123.     {
  124.         return new Source("<div class=\"object__wrapper object__wrapper--last object__item__section\">
  125. \t<div class=\"object__wrapper__title object__wrapper__title--mb-20\">{{ ('T_RECORD_INFORMATION')|trans({}, 'openform_front', app.request.locale) }}:</div>
  126. \t<div class=\"object__wrapper__list\">
  127. \t\t{% if entity.Translation[app.request.locale].updatedAt %}
  128. \t\t\t<div class=\"object__item-wrap\">
  129. \t\t\t\t<h3 class=\"object__item-wrap__title\">{{ ('T_UPDATE_AT')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  130. \t\t\t\t<div class=\"object__item-wrap__text\">
  131. \t\t\t\t\t{% include('@openform_front_templates/AntiqueSuit/_templates/_fields/_date_and_age.html.twig') with {'date': entity.Translation[app.request.locale].updatedAt} %}
  132. \t\t\t\t</div>
  133. \t\t\t</div>
  134. \t\t{% endif %}
  135. \t\t{% if entity.id %}
  136. \t\t\t<div class=\"object__item-wrap\">
  137. \t\t\t\t<h3 class=\"object__item-wrap__title\">{{ ('T_ID_NUMBER')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  138. \t\t\t\t<div class=\"object__item-wrap__text\">
  139. \t\t\t\t\t{{ entity.id }}
  140. \t\t\t\t</div>
  141. \t\t\t</div>
  142. \t\t{% endif %}
  143. \t\t{% set href =  app.request.getSchemeAndHttpHost() ~ toolkit_route_localizer.generate('antique_item',{ slug : entity.Translation[app.request.locale].slug }, app.request.locale) %}
  144. \t\t{% if href %}
  145. \t\t\t<div class=\"object__item-wrap\">
  146. \t\t\t\t
  147. \t\t\t\t<h3 class=\"object__item-wrap__title\">{{ ('T_OBJECT_URL')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  148. \t\t\t\t<div class=\"object__item-wrap__text\">
  149. \t\t\t\t\t<a href=\"{{ href }}\">{{ href }}</a>
  150. \t\t\t\t</div>
  151. \t\t\t</div>
  152. \t\t{% endif %}
  153. \t</div>
  154. </div>""@openform_front_templates/AntiqueSuit/_templates/_sections/_section-6.html.twig""/var/www/php81/fpd.in.openform.pl/src/Package/Openform/Front/Templates/AntiqueSuit/_templates/_sections/_section-6.html.twig");
  155.     }
  156. }