var/cache/dev/twig/4e/4e8b75219da920cce288eaf5707a3831.php line 266

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. /* @Automarket/Post/news-single.html.twig */
  16. class __TwigTemplate_aa9dfdc9df4bec9936a8abaaf40f3f88 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->blocks = [
  28.             'seo' => [$this'block_seo'],
  29.             'ogtagDynamic' => [$this'block_ogtagDynamic'],
  30.             'css' => [$this'block_css'],
  31.             'socialPreview' => [$this'block_socialPreview'],
  32.             'content' => [$this'block_content'],
  33.             'pageJS' => [$this'block_pageJS'],
  34.         ];
  35.     }
  36.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  37.     {
  38.         // line 1
  39.         return "@Automarket/base.html.twig";
  40.     }
  41.     protected function doDisplay(array $context, array $blocks = []): iterable
  42.     {
  43.         $macros $this->macros;
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Automarket/Post/news-single.html.twig"));
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Automarket/Post/news-single.html.twig"));
  48.         $this->parent $this->load("@Automarket/base.html.twig"1);
  49.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  50.         
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  52.         
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  54.     }
  55.     // line 3
  56.     /**
  57.      * @return iterable<null|scalar|\Stringable>
  58.      */
  59.     public function block_seo(array $context, array $blocks = []): iterable
  60.     {
  61.         $macros $this->macros;
  62.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  63.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""seo"));
  64.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""seo"));
  66.         // line 4
  67.         yield "    <title>";
  68.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'4$this->source); })()), "title", [CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'4$this->source); })()), "request", [], "any"falsefalsefalse4), "locale", [], "any"falsefalsefalse4)], "method"falsefalsefalse4), "html"nulltrue);
  69.         yield "</title>
  70.     <meta name=\"description\" content=\"description\"/>
  71. ";
  72.         
  73.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  74.         
  75.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  76.         yield from [];
  77.     }
  78.     // line 8
  79.     /**
  80.      * @return iterable<null|scalar|\Stringable>
  81.      */
  82.     public function block_ogtagDynamic(array $context, array $blocks = []): iterable
  83.     {
  84.         $macros $this->macros;
  85.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  86.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""ogtagDynamic"));
  87.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  88.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""ogtagDynamic"));
  89.         // line 9
  90.         yield "    <meta property=\"og:title\" content=\"";
  91.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'9$this->source); })()), "title", [CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'9$this->source); })()), "request", [], "any"falsefalsefalse9), "locale", [], "any"falsefalsefalse9)], "method"falsefalsefalse9), "html"nulltrue);
  92.         yield "\"/>
  93.     <meta property=\"og:description\" content=\"\"/>
  94.     <meta property=\"og:image\" content=\"";
  95.         // line 11
  96.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['DcSiteBundle\Twig\TwigDcExtension']->mediaURL(CoreExtension::getAttribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'11$this->source); })()), "image", [CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'11$this->source); })()), "request", [], "any"falsefalsefalse11), "locale", [], "any"falsefalsefalse11)], "method"falsefalsefalse11), "small")), "html"nulltrue);
  97.         yield "\"/>
  98. ";
  99.         
  100.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  101.         
  102.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  103.         yield from [];
  104.     }
  105.     // line 14
  106.     /**
  107.      * @return iterable<null|scalar|\Stringable>
  108.      */
  109.     public function block_css(array $context, array $blocks = []): iterable
  110.     {
  111.         $macros $this->macros;
  112.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  113.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""css"));
  114.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  115.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""css"));
  116.         // line 15
  117.         yield "    <link rel=\"stylesheet\" href=\"";
  118.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/automarket/css/news-single.css"), "html"nulltrue);
  119.         yield "\">
  120. ";
  121.         
  122.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  123.         
  124.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  125.         yield from [];
  126.     }
  127.     // line 18
  128.     /**
  129.      * @return iterable<null|scalar|\Stringable>
  130.      */
  131.     public function block_socialPreview(array $context, array $blocks = []): iterable
  132.     {
  133.         $macros $this->macros;
  134.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  135.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""socialPreview"));
  136.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  137.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""socialPreview"));
  138.         // line 19
  139.         yield "    <img src=\"";
  140.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['DcSiteBundle\Twig\TwigDcExtension']->mediaURL(CoreExtension::getAttribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'19$this->source); })()), "image", [CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'19$this->source); })()), "request", [], "any"falsefalsefalse19), "locale", [], "any"falsefalsefalse19)], "method"falsefalsefalse19), "small")), "html"nulltrue);
  141.         yield "\" class=\"d-none\">
  142. ";
  143.         
  144.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  145.         
  146.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  147.         yield from [];
  148.     }
  149.     // line 22
  150.     /**
  151.      * @return iterable<null|scalar|\Stringable>
  152.      */
  153.     public function block_content(array $context, array $blocks = []): iterable
  154.     {
  155.         $macros $this->macros;
  156.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  157.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  158.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  159.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  160.         // line 23
  161.         yield "
  162.     <section class=\"breadcrumbs\">
  163.         <div class=\"container\">
  164.             <div class=\"row\">
  165.                 <div class=\"col-md-12\">
  166.                     <div class=\"vidi_breadcrumbs\">
  167.                     <span>
  168.                         <a href=\"\">
  169.                             <span class=\"bc_title\">";
  170.         // line 31
  171.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.main", [], "automarket_base"), "html"nulltrue);
  172.         yield "</span>
  173.                         </a>
  174.                     </span>
  175.                         <span class=\"bc_sep\"><img src=\"";
  176.         // line 34
  177.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/automarket/img/arrow-bc.png"), "html"nulltrue);
  178.         yield "\"></span>
  179.                     <span>
  180.                         <a href=\"";
  181.         // line 36
  182.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("automarket_news");
  183.         yield "\">
  184.                             <span class=\"bc_title\">";
  185.         // line 37
  186.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.news", [], "automarket_base"), "html"nulltrue);
  187.         yield "</span>
  188.                         </a>
  189.                     </span>
  190.                         <span class=\"bc_sep\"><img src=\"";
  191.         // line 40
  192.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/automarket/img/arrow-bc.png"), "html"nulltrue);
  193.         yield "\"></span>
  194.                     <span class=\"bc_title\">";
  195.         // line 41
  196.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'41$this->source); })()), "title", [CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'41$this->source); })()), "request", [], "any"falsefalsefalse41), "locale", [], "any"falsefalsefalse41)], "method"falsefalsefalse41), "html"nulltrue);
  197.         yield "</span>
  198.                     </div>
  199.                 </div>
  200.             </div>
  201.         </div>
  202.     </section>
  203.     <section class=\"news-single\">
  204.         <div class=\"container\">
  205.             <div class=\"row\">
  206.                 <div class=\"col-md-8 custom-padd\">
  207.                     <h1 class=\"news-single-title\">";
  208.         // line 52
  209.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'52$this->source); })()), "title", [CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'52$this->source); })()), "request", [], "any"falsefalsefalse52), "locale", [], "any"falsefalsefalse52)], "method"falsefalsefalse52), "html"nulltrue);
  210.         yield "</h1>
  211.                 </div>
  212.                 <div class=\"col-md-4 custom-padd recomendation\">
  213.                     <div class=\"date-news\">
  214.                         <p class=\"date\">
  215.                             <span class=\"date-box-ico\"></span>
  216.                             <small class=\"text-muted\">";
  217.         // line 58
  218.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("small_words.publication", [], "automarket_base"), "html"nulltrue);
  219.         yield ": ";
  220.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'58$this->source); })()), "dateCreate", [CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'58$this->source); })()), "request", [], "any"falsefalsefalse58), "locale", [], "any"falsefalsefalse58)], "method"falsefalsefalse58), "d.m.Y"), "html"nulltrue);
  221.         yield "</small>
  222.                         </p>
  223.                     </div>
  224.                 </div>
  225.             </div>
  226.             <div class=\"row\">
  227.                 <div class=\"col-md-8 custom-padd\">
  228.                     <div class=\"image-news\">
  229.                         ";
  230.         // line 66
  231.         yield $this->env->getRuntime('Sonata\MediaBundle\Twig\MediaRuntime')->media(CoreExtension::getAttribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'66$this->source); })()), "image", [CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'66$this->source); })()), "request", [], "any"falsefalsefalse66), "locale", [], "any"falsefalsefalse66)], "method"falsefalsefalse66), "big");
  232.         yield "
  233.                     </div>
  234.                     <div class=\"decs-news\">
  235.                         <p>";
  236.         // line 69
  237.         yield CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'69$this->source); })()), "contentByLocale", [CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'69$this->source); })()), "request", [], "any"falsefalsefalse69), "locale", [], "any"falsefalsefalse69)], "method"falsefalsefalse69), "content", [], "any"falsefalsefalse69);
  238.         yield "</p>
  239.                     </div>
  240.                     <div class=\"decs-news\">
  241.                         ";
  242.         // line 72
  243.         if ((($tmp = (isset($context["partnerFbForm"]) || array_key_exists("partnerFbForm"$context) ? $context["partnerFbForm"] : (function () { throw new RuntimeError('Variable "partnerFbForm" does not exist.'72$this->source); })())) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  244.             // line 73
  245.             yield "                            <h2 style=\"width: 100%; text-align: center\">Отправить завку</h2>
  246.                             ";
  247.             // line 74
  248.             yield             $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["partnerFbForm"]) || array_key_exists("partnerFbForm"$context) ? $context["partnerFbForm"] : (function () { throw new RuntimeError('Variable "partnerFbForm" does not exist.'74$this->source); })()), 'form_start', ["attr" => ["class" => "lead-form pop-up pages-form-wrap""action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("automarket_feedback_form")]]);
  249.             yield "
  250.                             ";
  251.             // line 75
  252.             yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["partnerFbForm"]) || array_key_exists("partnerFbForm"$context) ? $context["partnerFbForm"] : (function () { throw new RuntimeError('Variable "partnerFbForm" does not exist.'75$this->source); })()), "name", [], "any"falsefalsefalse75), 'row');
  253.             yield "
  254.                             ";
  255.             // line 76
  256.             yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["partnerFbForm"]) || array_key_exists("partnerFbForm"$context) ? $context["partnerFbForm"] : (function () { throw new RuntimeError('Variable "partnerFbForm" does not exist.'76$this->source); })()), "email", [], "any"falsefalsefalse76), 'row');
  257.             yield "
  258.                             ";
  259.             // line 77
  260.             yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["partnerFbForm"]) || array_key_exists("partnerFbForm"$context) ? $context["partnerFbForm"] : (function () { throw new RuntimeError('Variable "partnerFbForm" does not exist.'77$this->source); })()), "phone", [], "any"falsefalsefalse77), 'row');
  261.             yield "
  262.                             <div style=\"display: none;\">
  263.                                 ";
  264.             // line 79
  265.             yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["partnerFbForm"]) || array_key_exists("partnerFbForm"$context) ? $context["partnerFbForm"] : (function () { throw new RuntimeError('Variable "partnerFbForm" does not exist.'79$this->source); })()), 'rest');
  266.             yield "
  267.                             </div>
  268.                             <button type=\"submit\" class=\"pages-form-wrap-send\">";
  269.             // line 81
  270.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("small_words.send_lead", [], "automarket_base"), "html"nulltrue);
  271.             yield "</button>
  272.                             ";
  273.             // line 82
  274.             yield             $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["partnerFbForm"]) || array_key_exists("partnerFbForm"$context) ? $context["partnerFbForm"] : (function () { throw new RuntimeError('Variable "partnerFbForm" does not exist.'82$this->source); })()), 'form_end');
  275.             yield "
  276.                         ";
  277.         }
  278.         // line 84
  279.         yield "                    </div>
  280.                 </div>
  281.                 <div class=\"col-md-4 custom-padd recomendation\">
  282.                     <span class=\"recomendation-title\">";
  283.         // line 87
  284.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("small_words.interesting", [], "automarket_base"), "html"nulltrue);
  285.         yield "</span>
  286.                     ";
  287.         // line 88
  288.         $context['_parent'] = $context;
  289.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["interesting"]) || array_key_exists("interesting"$context) ? $context["interesting"] : (function () { throw new RuntimeError('Variable "interesting" does not exist.'88$this->source); })()));
  290.         foreach ($context['_seq'] as $context["_key"] => $context["interest"]) {
  291.             // line 89
  292.             yield "                        <div class=\"card\">
  293.                             <div class=\"card-body\">
  294.                                 <a class=\"recomendation-title-news\" href=";
  295.             // line 91
  296.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("automarket_news_single", ["url" => CoreExtension::getAttribute($this->env$this->source$context["interest"], "url", [], "any"falsefalsefalse91)]), "html"nulltrue);
  297.             yield ">
  298.                                     <p class=\"card-title\">";
  299.             // line 92
  300.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["interest"], "title", [CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'92$this->source); })()), "request", [], "any"falsefalsefalse92), "locale", [], "any"falsefalsefalse92)], "method"falsefalsefalse92), "html"nulltrue);
  301.             yield "</p>
  302.                                 </a>
  303.                                 <p class=\"date\"><span class=\"date-box-ico\"></span>
  304.                                     <small class=\"text-muted\">";
  305.             // line 95
  306.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source$context["interest"], "dateCreate", [], "any"falsefalsefalse95), "d.m.Y"), "html"nulltrue);
  307.             yield "</small>
  308.                                 </p>
  309.                                 <a href=\"";
  310.             // line 97
  311.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("automarket_news_single", ["url" => CoreExtension::getAttribute($this->env$this->source$context["interest"], "url", [], "any"falsefalsefalse97)]), "html"nulltrue);
  312.             yield "\">";
  313.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("small_words.detail", [], "automarket_base"), "html"nulltrue);
  314.             yield "</a>
  315.                             </div>
  316.                         </div>
  317.                     ";
  318.         }
  319.         $_parent $context['_parent'];
  320.         unset($context['_seq'], $context['_key'], $context['interest'], $context['_parent']);
  321.         $context array_intersect_key($context$_parent) + $_parent;
  322.         // line 101
  323.         yield "                </div>
  324.             </div>
  325.         </div>
  326.     </section>
  327. ";
  328.         
  329.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  330.         
  331.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  332.         yield from [];
  333.     }
  334.     // line 109
  335.     /**
  336.      * @return iterable<null|scalar|\Stringable>
  337.      */
  338.     public function block_pageJS(array $context, array $blocks = []): iterable
  339.     {
  340.         $macros $this->macros;
  341.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  342.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""pageJS"));
  343.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  344.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""pageJS"));
  345.         // line 110
  346.         yield "    ";
  347.         
  348.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  349.         
  350.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  351.         yield from [];
  352.     }
  353.     /**
  354.      * @codeCoverageIgnore
  355.      */
  356.     public function getTemplateName(): string
  357.     {
  358.         return "@Automarket/Post/news-single.html.twig";
  359.     }
  360.     /**
  361.      * @codeCoverageIgnore
  362.      */
  363.     public function isTraitable(): bool
  364.     {
  365.         return false;
  366.     }
  367.     /**
  368.      * @codeCoverageIgnore
  369.      */
  370.     public function getDebugInfo(): array
  371.     {
  372.         return array (  387 => 110,  374 => 109,  358 => 101,  346 => 97,  341 => 95,  335 => 92,  331 => 91,  327 => 89,  323 => 88,  319 => 87,  314 => 84,  309 => 82,  305 => 81,  300 => 79,  295 => 77,  291 => 76,  287 => 75,  283 => 74,  280 => 73,  278 => 72,  272 => 69,  266 => 66,  253 => 58,  244 => 52,  230 => 41,  226 => 40,  220 => 37,  216 => 36,  211 => 34,  205 => 31,  195 => 23,  182 => 22,  168 => 19,  155 => 18,  141 => 15,  128 => 14,  115 => 11,  109 => 9,  96 => 8,  81 => 4,  68 => 3,  45 => 1,);
  373.     }
  374.     public function getSourceContext(): Source
  375.     {
  376.         return new Source("{% extends '@Automarket/base.html.twig' %}
  377. {% block seo %}
  378.     <title>{{ news.title(app.request.locale) }}</title>
  379.     <meta name=\"description\" content=\"description\"/>
  380. {% endblock seo %}
  381. {% block ogtagDynamic %}
  382.     <meta property=\"og:title\" content=\"{{ news.title(app.request.locale) }}\"/>
  383.     <meta property=\"og:description\" content=\"\"/>
  384.     <meta property=\"og:image\" content=\"{{ absolute_url(media_url(news.image(app.request.locale), 'small')) }}\"/>
  385. {% endblock ogtagDynamic %}
  386. {% block css %}
  387.     <link rel=\"stylesheet\" href=\"{{ asset('bundles/automarket/css/news-single.css') }}\">
  388. {% endblock  %}
  389. {% block socialPreview %}
  390.     <img src=\"{{ absolute_url(media_url(news.image(app.request.locale), 'small')) }}\" class=\"d-none\">
  391. {% endblock %}
  392. {% block content %}
  393.     <section class=\"breadcrumbs\">
  394.         <div class=\"container\">
  395.             <div class=\"row\">
  396.                 <div class=\"col-md-12\">
  397.                     <div class=\"vidi_breadcrumbs\">
  398.                     <span>
  399.                         <a href=\"\">
  400.                             <span class=\"bc_title\">{{ 'menu.main'|trans({}, 'automarket_base') }}</span>
  401.                         </a>
  402.                     </span>
  403.                         <span class=\"bc_sep\"><img src=\"{{ asset('bundles/automarket/img/arrow-bc.png') }}\"></span>
  404.                     <span>
  405.                         <a href=\"{{ path('automarket_news') }}\">
  406.                             <span class=\"bc_title\">{{ 'menu.news'|trans({}, 'automarket_base') }}</span>
  407.                         </a>
  408.                     </span>
  409.                         <span class=\"bc_sep\"><img src=\"{{ asset('bundles/automarket/img/arrow-bc.png') }}\"></span>
  410.                     <span class=\"bc_title\">{{ news.title(app.request.locale) }}</span>
  411.                     </div>
  412.                 </div>
  413.             </div>
  414.         </div>
  415.     </section>
  416.     <section class=\"news-single\">
  417.         <div class=\"container\">
  418.             <div class=\"row\">
  419.                 <div class=\"col-md-8 custom-padd\">
  420.                     <h1 class=\"news-single-title\">{{ news.title(app.request.locale) }}</h1>
  421.                 </div>
  422.                 <div class=\"col-md-4 custom-padd recomendation\">
  423.                     <div class=\"date-news\">
  424.                         <p class=\"date\">
  425.                             <span class=\"date-box-ico\"></span>
  426.                             <small class=\"text-muted\">{{ 'small_words.publication'|trans({}, 'automarket_base') }}: {{ news.dateCreate(app.request.locale)|date('d.m.Y') }}</small>
  427.                         </p>
  428.                     </div>
  429.                 </div>
  430.             </div>
  431.             <div class=\"row\">
  432.                 <div class=\"col-md-8 custom-padd\">
  433.                     <div class=\"image-news\">
  434.                         {{ sonata_media(news.image(app.request.locale), 'big') }}
  435.                     </div>
  436.                     <div class=\"decs-news\">
  437.                         <p>{{ news.contentByLocale(app.request.locale).content|raw }}</p>
  438.                     </div>
  439.                     <div class=\"decs-news\">
  440.                         {% if partnerFbForm %}
  441.                             <h2 style=\"width: 100%; text-align: center\">Отправить завку</h2>
  442.                             {{ form_start(partnerFbForm, { attr: { class: 'lead-form pop-up pages-form-wrap', action: path('automarket_feedback_form') } }) }}
  443.                             {{ form_row(partnerFbForm.name) }}
  444.                             {{ form_row(partnerFbForm.email) }}
  445.                             {{ form_row(partnerFbForm.phone) }}
  446.                             <div style=\"display: none;\">
  447.                                 {{ form_rest(partnerFbForm) }}
  448.                             </div>
  449.                             <button type=\"submit\" class=\"pages-form-wrap-send\">{{ 'small_words.send_lead'|trans({}, 'automarket_base') }}</button>
  450.                             {{ form_end(partnerFbForm) }}
  451.                         {% endif %}
  452.                     </div>
  453.                 </div>
  454.                 <div class=\"col-md-4 custom-padd recomendation\">
  455.                     <span class=\"recomendation-title\">{{ 'small_words.interesting'|trans({}, 'automarket_base') }}</span>
  456.                     {% for interest in interesting %}
  457.                         <div class=\"card\">
  458.                             <div class=\"card-body\">
  459.                                 <a class=\"recomendation-title-news\" href={{ path('automarket_news_single', {url: interest.url}) }}>
  460.                                     <p class=\"card-title\">{{ interest.title(app.request.locale) }}</p>
  461.                                 </a>
  462.                                 <p class=\"date\"><span class=\"date-box-ico\"></span>
  463.                                     <small class=\"text-muted\">{{ interest.dateCreate|date('d.m.Y') }}</small>
  464.                                 </p>
  465.                                 <a href=\"{{ path('automarket_news_single', {url: interest.url}) }}\">{{ 'small_words.detail'|trans({}, 'automarket_base') }}</a>
  466.                             </div>
  467.                         </div>
  468.                     {% endfor %}
  469.                 </div>
  470.             </div>
  471.         </div>
  472.     </section>
  473. {#    {% include '@Automarket/Modules/contacts.html.twig' %}#}
  474. {% endblock %}
  475.     {% block pageJS %}
  476.     {% endblock pageJS %}
  477. ""@Automarket/Post/news-single.html.twig""/var/www/vidi.ua/releases/251023-65bd7d10/src/AutomarketBundle/Resources/views/Post/news-single.html.twig");
  478.     }
  479. }