var/cache/stage/twig/9b/9b2b84e0f43aa4aa65b849f3798d163aaf51f48827860bc688697d4294f0f240.php line 49

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. /* blog/post.html.twig */
  14. class __TwigTemplate_6c83db6c4712ff57c05574b357c5f6c3889c97550f90e1b037409a23b47dc6c8 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.             'javascripts_body' => [$this'block_javascripts_body'],
  24.             'content' => [$this'block_content'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "main/_tpl.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""blog/post.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""blog/post.html.twig"));
  39.         $this->parent $this->loadTemplate("main/_tpl.html.twig""blog/post.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  43.         
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  45.     }
  46.     // line 3
  47.     public function block_javascripts_body($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts_body"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts_body"));
  54.         // line 4
  55.         echo "    ";
  56.         $this->displayParentBlock("javascripts_body"$context$blocks);
  57.         echo "
  58.     ";
  59.         // line 5
  60.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("blog");
  61.         echo "
  62.     ";
  63.         // line 6
  64.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("blog");
  65.         echo "
  66. ";
  67.         
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  69.         
  70.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  71.     }
  72.     // line 9
  73.     public function block_content($context, array $blocks = [])
  74.     {
  75.         $macros $this->macros;
  76.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  77.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  78.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  79.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  80.         // line 10
  81.         echo "    <div class=\"blog blog-page\">
  82.         <div class=\"block block_padding_top\">
  83.             <div class=\"page-head\">
  84.                 <ul class=\"breadcrumbs\">
  85.                     <li class=\"breadcrumbs__entry\"><a class=\"breadcrumbs__lnk\" href=\"";
  86.         // line 14
  87.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
  88.         echo "\">Главная</a></li>
  89.                     <li class=\"breadcrumbs__entry\"><a class=\"breadcrumbs__lnk\" href=\"";
  90.         // line 15
  91.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog_index.ru");
  92.         echo "\">Блог</a>
  93.                     <li class=\"breadcrumbs__entry\"><a class=\"breadcrumbs__lnk\" href=\"";
  94.         // line 16
  95.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog_post", ["slug" => twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'16$this->source); })()), "slug", [], "any"falsefalsefalse16)]), "html"nulltrue);
  96.         echo "\">";
  97.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'16$this->source); })()), "title", [], "any"falsefalsefalse16), "html"nulltrue);
  98.         echo "</a></li>
  99.                 </ul>
  100.             </div>
  101.             <div class=\"colgroup\">
  102.                 <div class=\"col col_left col_body\">
  103.                     <img class=\"blog-page__main-img\" src=\"";
  104.         // line 22
  105.         echo twig_escape_filter($this->env$this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset((isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'22$this->source); })()), "posterImageFile"), "html"nulltrue);
  106.         echo "\" alt=\"";
  107.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'22$this->source); })()), "title", [], "any"falsefalsefalse22), "html"nulltrue);
  108.         echo "\">
  109.                     <h1>";
  110.         // line 23
  111.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'23$this->source); })()), "title", [], "any"falsefalsefalse23), "html"nulltrue);
  112.         echo "</h1>
  113.                     ";
  114.         // line 24
  115.         if (twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'24$this->source); })()), "description", [], "any"falsefalsefalse24)) {
  116.             // line 25
  117.             echo "                        <p>";
  118.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'25$this->source); })()), "description", [], "any"falsefalsefalse25), "html"nulltrue);
  119.             echo "</p>
  120.                     ";
  121.         }
  122.         // line 27
  123.         echo "                    <div class=\"entry__top\">
  124.                         <div class=\"entry__tags\">
  125.                             ";
  126.         // line 29
  127.         $context['_parent'] = $context;
  128.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'29$this->source); })()), "tags", [], "any"falsefalsefalse29));
  129.         foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
  130.             // line 30
  131.             echo "                                <a href=\"";
  132.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog_tag", ["slug" => twig_get_attribute($this->env$this->source$context["tag"], "slug", [], "any"falsefalsefalse30)]), "html"nulltrue);
  133.             echo "\" class=\"tags__lnk\">#";
  134.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["tag"], "name", [], "any"falsefalsefalse30), "html"nulltrue);
  135.             echo "</a>
  136.                             ";
  137.         }
  138.         $_parent $context['_parent'];
  139.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
  140.         $context array_intersect_key($context$_parent) + $_parent;
  141.         // line 32
  142.         echo "                        </div>
  143.                         <div class=\"entry__date\">";
  144.         // line 33
  145.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'33$this->source); })()), "createdAt", [], "any"falsefalsefalse33), "d.m.Y"), "html"nulltrue);
  146.         echo "</div>
  147.                     </div>
  148.                     ";
  149.         // line 35
  150.         $context['_parent'] = $context;
  151.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'35$this->source); })()), "blogContents", [], "any"falsefalsefalse35));
  152.         foreach ($context['_seq'] as $context["_key"] => $context["contentBlock"]) {
  153.             // line 36
  154.             echo "                    <div>
  155.                         <h2>";
  156.             // line 37
  157.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["contentBlock"], "title", [], "any"falsefalsefalse37), "html"nulltrue);
  158.             echo "</h2>
  159.                         ";
  160.             // line 38
  161.             echo twig_get_attribute($this->env$this->source$context["contentBlock"], "text", [], "any"falsefalsefalse38);
  162.             echo "
  163.                         <img src=\"";
  164.             // line 39
  165.             echo twig_escape_filter($this->env$this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset($context["contentBlock"], "imageFile"), "html"nulltrue);
  166.             echo "\" alt=\"\">
  167.                     </div>
  168.                         ";
  169.             // line 41
  170.             if (twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["contentBlock"], "videoLink", [], "any"falsefalsefalse41))) {
  171.                 // line 42
  172.                 echo "                            <div class=\"blog__video\">
  173.                                 <iframe src=\"";
  174.                 // line 43
  175.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["contentBlock"], "videoLink", [], "any"falsefalsefalse43), "html"nulltrue);
  176.                 echo "\" frameborder=\"0\" allowfullscreen></iframe>
  177.                             </div>
  178.                         ";
  179.             }
  180.             // line 46
  181.             echo "                    ";
  182.         }
  183.         $_parent $context['_parent'];
  184.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['contentBlock'], $context['_parent'], $context['loop']);
  185.         $context array_intersect_key($context$_parent) + $_parent;
  186.         // line 47
  187.         echo "                    ";
  188.         if ((twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'47$this->source); })()), "buttonText", [], "any"falsefalsefalse47) && twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'47$this->source); })()), "buttonLink", [], "any"falsefalsefalse47))) {
  189.             // line 48
  190.             echo "                    <div class=\"btn-container\">
  191.                         <a href=\"";
  192.             // line 49
  193.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'49$this->source); })()), "buttonLink", [], "any"falsefalsefalse49), "html"nulltrue);
  194.             echo "\" class=\"btn btn_blue\">";
  195.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'49$this->source); })()), "buttonText", [], "any"falsefalsefalse49), "html"nulltrue);
  196.             echo "</a>
  197.                     </div>
  198.                     ";
  199.         }
  200.         // line 52
  201.         echo "                </div>
  202.                 <div class=\"col col_right col_aside\">
  203.                     ";
  204.         // line 54
  205.         if (twig_length_filter($this->env, (isset($context["similar"]) || array_key_exists("similar"$context) ? $context["similar"] : (function () { throw new RuntimeError('Variable "similar" does not exist.'54$this->source); })()))) {
  206.             // line 55
  207.             echo "                    <div class=\"blog-more\">
  208.                         <div class=\"blog-more__title\">Больше интересного:</div>
  209.                         <div class=\"blog__list\">
  210.                             ";
  211.             // line 58
  212.             $context['_parent'] = $context;
  213.             $context['_seq'] = twig_ensure_traversable((isset($context["similar"]) || array_key_exists("similar"$context) ? $context["similar"] : (function () { throw new RuntimeError('Variable "similar" does not exist.'58$this->source); })()));
  214.             foreach ($context['_seq'] as $context["_key"] => $context["p"]) {
  215.                 // line 59
  216.                 echo "                            <div class=\"blog__entry\">
  217.                                 <a href=\"";
  218.                 // line 60
  219.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog_post", ["slug" => twig_get_attribute($this->env$this->source$context["p"], "slug", [], "any"falsefalsefalse60)]), "html"nulltrue);
  220.                 echo "\" class=\"entry__lnk\"></a>
  221.                                 <img class=\"entry__photo\" src=\"";
  222.                 // line 61
  223.                 echo twig_escape_filter($this->env$this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset($context["p"], "posterImageFile"), "html"nulltrue);
  224.                 echo "\" alt=\"";
  225.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'61$this->source); })()), "title", [], "any"falsefalsefalse61), "html"nulltrue);
  226.                 echo "\">
  227.                                 <div class=\"entry__top\">
  228.                                     <div class=\"entry__date\">";
  229.                 // line 63
  230.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["p"], "createdAt", [], "any"falsefalsefalse63), "d.m.Y"), "html"nulltrue);
  231.                 echo "</div>
  232.                                     <div class=\"entry__tags\">
  233.                                         ";
  234.                 // line 65
  235.                 $context['_parent'] = $context;
  236.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["p"], "tags", [], "any"falsefalsefalse65));
  237.                 foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
  238.                     // line 66
  239.                     echo "                                            <a href=\"";
  240.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog_tag", ["slug" => twig_get_attribute($this->env$this->source$context["tag"], "slug", [], "any"falsefalsefalse66)]), "html"nulltrue);
  241.                     echo "\" class=\"tags__lnk\">#";
  242.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["tag"], "name", [], "any"falsefalsefalse66), "html"nulltrue);
  243.                     echo "</a>
  244.                                         ";
  245.                 }
  246.                 $_parent $context['_parent'];
  247.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
  248.                 $context array_intersect_key($context$_parent) + $_parent;
  249.                 // line 68
  250.                 echo "                                    </div>
  251.                                 </div>
  252.                                 <div class=\"entry__title\">";
  253.                 // line 70
  254.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["p"], "title", [], "any"falsefalsefalse70), "html"nulltrue);
  255.                 echo "</div>
  256.                             </div>
  257.                             ";
  258.             }
  259.             $_parent $context['_parent'];
  260.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['p'], $context['_parent'], $context['loop']);
  261.             $context array_intersect_key($context$_parent) + $_parent;
  262.             // line 73
  263.             echo "                        </div>
  264.                     </div>
  265.                     ";
  266.         }
  267.         // line 76
  268.         echo "                    <div class=\"tags\">
  269.                         ";
  270.         // line 77
  271.         $context['_parent'] = $context;
  272.         $context['_seq'] = twig_ensure_traversable((isset($context["tags"]) || array_key_exists("tags"$context) ? $context["tags"] : (function () { throw new RuntimeError('Variable "tags" does not exist.'77$this->source); })()));
  273.         foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
  274.             // line 78
  275.             echo "                            <a href=\"";
  276.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog_tag", ["slug" => twig_get_attribute($this->env$this->source$context["tag"], "slug", [], "any"falsefalsefalse78)]), "html"nulltrue);
  277.             echo "\" class=\"tags__lnk\">#";
  278.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["tag"], "name", [], "any"falsefalsefalse78), "html"nulltrue);
  279.             echo "</a>
  280.                         ";
  281.         }
  282.         $_parent $context['_parent'];
  283.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
  284.         $context array_intersect_key($context$_parent) + $_parent;
  285.         // line 80
  286.         echo "                    </div>
  287.                 </div>
  288.             </div>
  289.         </div>
  290.         <div class=\"block block_padding_bottom\">
  291.             <div class=\"tgbanner\">
  292.                 <div class=\"tgbanner__title\">Подпишитесь на&nbsp;наш
  293.                     <nobr>Telegram-канал,</nobr>
  294.                 </div>
  295.                 <p>чтобы быть в&nbsp;курсе новостей&nbsp;GetMeBack раньше&nbsp;всех</p>
  296.                 <div class=\"tgbanner__btn-container\">
  297.                     <a href=\"https://t.me/getmeback_russia\" target=\"_blank\" class=\"btn btn_white\">Подписаться</a>
  298.                 </div>
  299.             </div>
  300.         </div>
  301.     </div>
  302. ";
  303.         
  304.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  305.         
  306.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  307.     }
  308.     public function getTemplateName()
  309.     {
  310.         return "blog/post.html.twig";
  311.     }
  312.     public function isTraitable()
  313.     {
  314.         return false;
  315.     }
  316.     public function getDebugInfo()
  317.     {
  318.         return array (  306 => 80,  295 => 78,  291 => 77,  288 => 76,  283 => 73,  274 => 70,  270 => 68,  259 => 66,  255 => 65,  250 => 63,  243 => 61,  239 => 60,  236 => 59,  232 => 58,  227 => 55,  225 => 54,  221 => 52,  213 => 49,  210 => 48,  207 => 47,  201 => 46,  195 => 43,  192 => 42,  190 => 41,  185 => 39,  181 => 38,  177 => 37,  174 => 36,  170 => 35,  165 => 33,  162 => 32,  151 => 30,  147 => 29,  143 => 27,  137 => 25,  135 => 24,  131 => 23,  125 => 22,  114 => 16,  110 => 15,  106 => 14,  100 => 10,  90 => 9,  78 => 6,  74 => 5,  69 => 4,  59 => 3,  36 => 1,);
  319.     }
  320.     public function getSourceContext()
  321.     {
  322.         return new Source("{% extends 'main/_tpl.html.twig' %}
  323. {% block javascripts_body %}
  324.     {{ parent() }}
  325.     {{ encore_entry_script_tags('blog') }}
  326.     {{ encore_entry_link_tags('blog') }}
  327. {% endblock %}
  328. {% block content %}
  329.     <div class=\"blog blog-page\">
  330.         <div class=\"block block_padding_top\">
  331.             <div class=\"page-head\">
  332.                 <ul class=\"breadcrumbs\">
  333.                     <li class=\"breadcrumbs__entry\"><a class=\"breadcrumbs__lnk\" href=\"{{ path('home') }}\">Главная</a></li>
  334.                     <li class=\"breadcrumbs__entry\"><a class=\"breadcrumbs__lnk\" href=\"{{ path('blog_index.ru') }}\">Блог</a>
  335.                     <li class=\"breadcrumbs__entry\"><a class=\"breadcrumbs__lnk\" href=\"{{ path('blog_post', {slug:post.slug}) }}\">{{ post.title }}</a></li>
  336.                 </ul>
  337.             </div>
  338.             <div class=\"colgroup\">
  339.                 <div class=\"col col_left col_body\">
  340.                     <img class=\"blog-page__main-img\" src=\"{{ vich_uploader_asset(post, 'posterImageFile') }}\" alt=\"{{ post.title }}\">
  341.                     <h1>{{post.title}}</h1>
  342.                     {% if post.description %}
  343.                         <p>{{ post.description }}</p>
  344.                     {% endif %}
  345.                     <div class=\"entry__top\">
  346.                         <div class=\"entry__tags\">
  347.                             {% for tag in post.tags %}
  348.                                 <a href=\"{{ path('blog_tag', {slug: tag.slug}) }}\" class=\"tags__lnk\">#{{ tag.name }}</a>
  349.                             {% endfor %}
  350.                         </div>
  351.                         <div class=\"entry__date\">{{ post.createdAt|date('d.m.Y') }}</div>
  352.                     </div>
  353.                     {% for contentBlock in post.blogContents %}
  354.                     <div>
  355.                         <h2>{{ contentBlock.title }}</h2>
  356.                         {{ contentBlock.text|raw }}
  357.                         <img src=\"{{ vich_uploader_asset(contentBlock, 'imageFile') }}\" alt=\"\">
  358.                     </div>
  359.                         {% if contentBlock.videoLink|length %}
  360.                             <div class=\"blog__video\">
  361.                                 <iframe src=\"{{ contentBlock.videoLink }}\" frameborder=\"0\" allowfullscreen></iframe>
  362.                             </div>
  363.                         {% endif %}
  364.                     {% endfor %}
  365.                     {% if post.buttonText and post.buttonLink %}
  366.                     <div class=\"btn-container\">
  367.                         <a href=\"{{ post.buttonLink }}\" class=\"btn btn_blue\">{{ post.buttonText }}</a>
  368.                     </div>
  369.                     {% endif %}
  370.                 </div>
  371.                 <div class=\"col col_right col_aside\">
  372.                     {% if similar|length %}
  373.                     <div class=\"blog-more\">
  374.                         <div class=\"blog-more__title\">Больше интересного:</div>
  375.                         <div class=\"blog__list\">
  376.                             {% for p in similar %}
  377.                             <div class=\"blog__entry\">
  378.                                 <a href=\"{{ path('blog_post', {slug: p.slug}) }}\" class=\"entry__lnk\"></a>
  379.                                 <img class=\"entry__photo\" src=\"{{ vich_uploader_asset(p, 'posterImageFile') }}\" alt=\"{{ post.title }}\">
  380.                                 <div class=\"entry__top\">
  381.                                     <div class=\"entry__date\">{{ p.createdAt|date('d.m.Y') }}</div>
  382.                                     <div class=\"entry__tags\">
  383.                                         {% for tag in p.tags %}
  384.                                             <a href=\"{{ path('blog_tag', {slug: tag.slug}) }}\" class=\"tags__lnk\">#{{ tag.name }}</a>
  385.                                         {% endfor %}
  386.                                     </div>
  387.                                 </div>
  388.                                 <div class=\"entry__title\">{{ p.title }}</div>
  389.                             </div>
  390.                             {% endfor %}
  391.                         </div>
  392.                     </div>
  393.                     {% endif %}
  394.                     <div class=\"tags\">
  395.                         {% for tag in tags %}
  396.                             <a href=\"{{ path('blog_tag', {slug: tag.slug}) }}\" class=\"tags__lnk\">#{{ tag.name }}</a>
  397.                         {% endfor %}
  398.                     </div>
  399.                 </div>
  400.             </div>
  401.         </div>
  402.         <div class=\"block block_padding_bottom\">
  403.             <div class=\"tgbanner\">
  404.                 <div class=\"tgbanner__title\">Подпишитесь на&nbsp;наш
  405.                     <nobr>Telegram-канал,</nobr>
  406.                 </div>
  407.                 <p>чтобы быть в&nbsp;курсе новостей&nbsp;GetMeBack раньше&nbsp;всех</p>
  408.                 <div class=\"tgbanner__btn-container\">
  409.                     <a href=\"https://t.me/getmeback_russia\" target=\"_blank\" class=\"btn btn_white\">Подписаться</a>
  410.                 </div>
  411.             </div>
  412.         </div>
  413.     </div>
  414. {% endblock %}""blog/post.html.twig""/home/getmeback-core/www/dev-site/templates/blog/post.html.twig");
  415.     }
  416. }