var/cache/dev/twig/c1/c1b6404a9f6f9fc8a80a8eec29a7a3a7.php line 223

  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. /* homepage/blogDetail.html.twig */
  14. class __TwigTemplate_c02df4c0a894108d572a0ae159533623 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.             'title' => [$this'block_title'],
  24.             'desc' => [$this'block_desc'],
  25.             'body' => [$this'block_body'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "base.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""homepage/blogDetail.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""homepage/blogDetail.html.twig"));
  40.         $this->parent $this->loadTemplate("base.html.twig""homepage/blogDetail.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_title($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  55.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'3$this->source); })()), "name", [], "any"falsefalsefalse3), "html"nulltrue);
  56.         echo " | Autanet.cz ";
  57.         
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  59.         
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  61.     }
  62.     // line 5
  63.     public function block_desc($context, array $blocks = [])
  64.     {
  65.         $macros $this->macros;
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""desc"));
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  69.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""desc"));
  70.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'5$this->source); })()), "description", [], "any"falsefalsefalse5), "html"nulltrue);
  71.         
  72.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  73.         
  74.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  75.     }
  76.     // line 8
  77.     public function block_body($context, array $blocks = [])
  78.     {
  79.         $macros $this->macros;
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  81.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  83.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  84.         // line 9
  85.         echo "
  86.     ";
  87.         // line 10
  88.         if (twig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'10$this->source); })()), "importId", [], "any"falsefalsefalse10)) {
  89.             // line 11
  90.             echo "    ";
  91.             $context["imgFolder"] = "artphotos/";
  92.             // line 12
  93.             echo "    ";
  94.         } else {
  95.             // line 13
  96.             echo "        ";
  97.             $context["imgFolder"] = "img-blog/";
  98.             // line 14
  99.             echo "    ";
  100.         }
  101.         // line 15
  102.         echo "
  103.     <section class=\"grid\">
  104.         <div>
  105.             <article class=\"basic-1\">
  106.                 <h1 class=\"basic-1__title\">";
  107.         // line 19
  108.         echo twig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'19$this->source); })()), "name", [], "any"falsefalsefalse19);
  109.         echo "   </h1>
  110.                 ";
  111.         // line 21
  112.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'21$this->source); })()), "blogImages", [], "any"falsefalsefalse21), "first", [], "any"falsefalsefalse21)) {
  113.             // line 22
  114.             echo "                <figure class=\"basic-1__image\">
  115.                         <img
  116.                                 src=\"";
  117.             // line 24
  118.             echo twig_escape_filter($this->env, ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["imgFolder"]) || array_key_exists("imgFolder"$context) ? $context["imgFolder"] : (function () { throw new RuntimeError('Variable "imgFolder" does not exist.'24$this->source); })())) . twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'24$this->source); })()), "blogImages", [], "any"falsefalsefalse24), "first", [], "any"falsefalsefalse24), "name", [], "any"falsefalsefalse24)), "html"nulltrue);
  119.             echo "\"
  120.                                 ";
  121.             // line 25
  122.             echo $this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->renderStimulusController("symfony/ux-lazy-image/lazy-image", ["src" => ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(            // line 26
  123. (isset($context["imgFolder"]) || array_key_exists("imgFolder"$context) ? $context["imgFolder"] : (function () { throw new RuntimeError('Variable "imgFolder" does not exist.'26$this->source); })())) . twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'26$this->source); })()), "blogImages", [], "any"falsefalsefalse26), "first", [], "any"falsefalsefalse26), "name", [], "any"falsefalsefalse26))]);
  124.             // line 27
  125.             echo "
  126.                                 width=\"500\"
  127.                         >
  128.                 </figure>
  129.                 ";
  130.         }
  131.         // line 32
  132.         echo "
  133.                 <div class=\"basic-1__info\">
  134.                     ";
  135.         // line 35
  136.         if (twig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'35$this->source); })()), "mainKind", [], "any"falsefalsefalse35)) {
  137.             // line 36
  138.             echo "                    <a class=\"basic-1__label\" href=\"";
  139.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_blog", ["urlKind" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'36$this->source); })()), "mainKind", [], "any"falsefalsefalse36), "url", [], "any"falsefalsefalse36)]), "html"nulltrue);
  140.             echo "\">";
  141.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'36$this->source); })()), "mainKind", [], "any"falsefalsefalse36), "name", [], "any"falsefalsefalse36), "html"nulltrue);
  142.             echo "</a>
  143.                     ";
  144.         }
  145.         // line 38
  146.         echo "
  147.                     <div class=\"basic-1__date\">";
  148.         // line 39
  149.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'39$this->source); })()), "createAt", [], "any"falsefalsefalse39), "d. m. Y"), "html"nulltrue);
  150.         echo "</div>
  151.                     <a class=\"button js-modal-show\" href=\"#modal--share\">
  152.                         Sdílet článek
  153.                         <i class=\"icon icon-forward\"></i>
  154.                     </a>
  155.                 </div>
  156.                 <p class=\"basic-1__perex\">";
  157.         // line 48
  158.         echo twig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'48$this->source); })()), "description", [], "any"falsefalsefalse48);
  159.         echo "</p>
  160.                 <div class=\"responsive-img-block\" id=\"blog-text\">
  161.                     ";
  162.         // line 51
  163.         echo $this->extensions['App\Twig\Extension\DivIdExtension']->setDivName(twig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'51$this->source); })()), "text", [], "any"falsefalsefalse51));
  164.         echo "
  165.                 </div>
  166.                 ";
  167.         // line 65
  168.         echo "
  169.  
  170.                 <div id=\"AdTrackGenericInterscrollerMobile\"></div>
  171.                 <hr>
  172.                 ";
  173.         // line 72
  174.         if ((twig_length_filter($this->env, (isset($context["vehicles"]) || array_key_exists("vehicles"$context) ? $context["vehicles"] : (function () { throw new RuntimeError('Variable "vehicles" does not exist.'72$this->source); })())) > 0)) {
  175.             // line 73
  176.             echo "
  177.                 <div class=\"grid__results\">
  178.                     <h2 class=\"grid__title\">Nabídka vozidel na prodej</h2>
  179.                     ";
  180.             // line 78
  181.             if ((isset($context["isVehicleModel"]) || array_key_exists("isVehicleModel"$context) ? $context["isVehicleModel"] : (function () { throw new RuntimeError('Variable "isVehicleModel" does not exist.'78$this->source); })())) {
  182.                 // line 79
  183.                 echo "                        <a class=\"button\" href=\"/osobni-vozidla/";
  184.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'79$this->source); })()), "vehicleManufacturer", [], "any"falsefalsefalse79), "url", [], "any"falsefalsefalse79), "html"nulltrue);
  185.                 echo "/";
  186.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'79$this->source); })()), "vehicleModel", [], "any"falsefalsefalse79), "url", [], "any"falsefalsefalse79), "html"nulltrue);
  187.                 echo "\">
  188.                             Zobrazit více vozidel
  189.                             <i class=\"icon icon-chevron-right\"></i>
  190.                         </a>
  191.                     ";
  192.             } else {
  193.                 // line 84
  194.                 echo "                        <a class=\"button\" href=\"/osobni-vozidla/";
  195.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'84$this->source); })()), "vehicleManufacturer", [], "any"falsefalsefalse84), "url", [], "any"falsefalsefalse84), "html"nulltrue);
  196.                 echo "\">
  197.                             Zobrazit více vozidel
  198.                             <i class=\"icon icon-chevron-right\"></i>
  199.                         </a>
  200.                     ";
  201.             }
  202.             // line 89
  203.             echo "
  204.                 </div>
  205.                 <div class=\"grid__row\">
  206.                     ";
  207.             // line 93
  208.             $context['_parent'] = $context;
  209.             $context['_seq'] = twig_ensure_traversable((isset($context["vehicles"]) || array_key_exists("vehicles"$context) ? $context["vehicles"] : (function () { throw new RuntimeError('Variable "vehicles" does not exist.'93$this->source); })()));
  210.             foreach ($context['_seq'] as $context["_key"] => $context["vehicle"]) {
  211.                 // line 94
  212.                 echo "                    <a class=\"box\"
  213.                         ";
  214.                 // line 96
  215.                 if (twig_get_attribute($this->env$this->source$context["vehicle"], "model", [], "any"falsefalsefalse96)) {
  216.                     // line 97
  217.                     echo "                            <a href=\"";
  218.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_vehicle_detail", ["urlManufacturer" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["vehicle"], "manufacturer", [], "any"falsefalsefalse97), "url", [], "any"falsefalsefalse97), "urlModel" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["vehicle"], "model", [], "any"falsefalsefalse97), "url", [], "any"falsefalsefalse97), "id" => twig_get_attribute($this->env$this->source$context["vehicle"], "id", [], "any"falsefalsefalse97)]), "html"nulltrue);
  219.                     echo "\"
  220.                         ";
  221.                 } else {
  222.                     // line 99
  223.                     echo "                            <a href=\"";
  224.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_vehicle_detail", ["urlManufacturer" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["vehicle"], "manufacturer", [], "any"falsefalsefalse99), "url", [], "any"falsefalsefalse99), "id" => twig_get_attribute($this->env$this->source$context["vehicle"], "id", [], "any"falsefalsefalse99)]), "html"nulltrue);
  225.                     echo "\"
  226.                         ";
  227.                 }
  228.                 // line 100
  229.                 echo "  >
  230.                         <figure class=\"box__image\">
  231.                             ";
  232.                 // line 102
  233.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["vehicle"], "vehicleImages", [], "any"falsefalsefalse102), "first", [], "any"falsefalsefalse102)) {
  234.                     // line 103
  235.                     echo "                            <img
  236.                                     src=\"";
  237.                     // line 104
  238.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['App\Twig\VehicleImageExtension']->getImageUrl(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["vehicle"], "vehicleImages", [], "any"falsefalsefalse104), "first", [], "any"falsefalsefalse104))), "html"nulltrue);
  239.                     echo "\"
  240.                                     alt=\"";
  241.                     // line 105
  242.                     echo twig_escape_filter($this->env$this->extensions['App\Twig\VehicleImageExtension']->getImageAlt(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["vehicle"], "vehicleImages", [], "any"falsefalsefalse105), "first", [], "any"falsefalsefalse105)), "html"nulltrue);
  243.                     echo "\"
  244.                                     ";
  245.                     // line 106
  246.                     echo $this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->renderStimulusController("symfony/ux-lazy-image/lazy-image", ["src" => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['App\Twig\VehicleImageExtension']->getImageUrl(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,                     // line 107
  247. $context["vehicle"], "vehicleImages", [], "any"falsefalsefalse107), "first", [], "any"falsefalsefalse107)))]);
  248.                     // line 108
  249.                     echo "
  250.                                     width=\"150\"
  251.                             >
  252.                             ";
  253.                 } else {
  254.                     // line 112
  255.                     echo "                                <img src=\"";
  256.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/img/no-picture-ok.jpg"), "html"nulltrue);
  257.                     echo "\" alt=\"bez obrázku\">
  258.                             ";
  259.                 }
  260.                 // line 114
  261.                 echo "                        </figure>
  262.                         <div class=\"box__text\">
  263.                             <h3 class=\"box__title\">";
  264.                 // line 116
  265.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["vehicle"], "manufacturer", [], "any"falsefalsefalse116), "name", [], "any"falsefalsefalse116), "html"nulltrue);
  266.                 echo " ";
  267.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["vehicle"], "model", [], "any"falsefalsefalse116), "name", [], "any"falsefalsefalse116), "html"nulltrue);
  268.                 echo "  ";
  269.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["vehicle"], "type", [], "any"falsefalsefalse116), "html"nulltrue);
  270.                 echo " </h3>
  271.                             <div class=\"box__date\">
  272.                                 <div class=\"box__date-label\">Rok výroby</div>
  273.                                 <div>";
  274.                 // line 119
  275.                 echo twig_escape_filter($this->envtwig_slice($this->envtwig_get_attribute($this->env$this->source$context["vehicle"], "madeDate", [], "any"falsefalsefalse119), 04), "html"nulltrue);
  276.                 echo "</div>
  277.                             </div>
  278.                             <div class=\"box__price\">
  279.                                 ";
  280.                 // line 122
  281.                 echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["vehicle"], "price", [], "any"falsefalsefalse122), 0null" "), "html"nulltrue);
  282.                 echo " Kč
  283.                             </div>
  284.                         </div>
  285.                     </a>
  286.                     ";
  287.             }
  288.             $_parent $context['_parent'];
  289.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['vehicle'], $context['_parent'], $context['loop']);
  290.             $context array_intersect_key($context$_parent) + $_parent;
  291.             // line 127
  292.             echo "
  293.                 </div>
  294.                 <hr>
  295.                 ";
  296.         }
  297.         // line 132
  298.         echo "
  299.                 <div>
  300.                     ";
  301.         // line 136
  302.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'136$this->source); })()), "blogImages", [], "any"falsefalsefalse136)) > 1)) {
  303.             // line 137
  304.             echo "
  305.                     <h2 class=\"grid__title\">Fotogalerie</h2>
  306.                     <section class=\"gallery gallery--columns3 js-gallery\">
  307.                         ";
  308.             // line 144
  309.             $context['_parent'] = $context;
  310.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'144$this->source); })()), "blogImages", [], "any"falsefalsefalse144));
  311.             $context['loop'] = [
  312.               'parent' => $context['_parent'],
  313.               'index0' => 0,
  314.               'index'  => 1,
  315.               'first'  => true,
  316.             ];
  317.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  318.                 $length count($context['_seq']);
  319.                 $context['loop']['revindex0'] = $length 1;
  320.                 $context['loop']['revindex'] = $length;
  321.                 $context['loop']['length'] = $length;
  322.                 $context['loop']['last'] = === $length;
  323.             }
  324.             foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  325.                 // line 145
  326.                 echo "
  327.                             ";
  328.                 // line 146
  329.                 if (twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse146)) {
  330.                     // line 147
  331.                     echo "                                <a class=\"gallery__item gallery__item--extra-large\" href=\"";
  332.                     echo twig_escape_filter($this->env, ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["imgFolder"]) || array_key_exists("imgFolder"$context) ? $context["imgFolder"] : (function () { throw new RuntimeError('Variable "imgFolder" does not exist.'147$this->source); })())) . twig_get_attribute($this->env$this->source$context["i"], "name", [], "any"falsefalsefalse147)), "html"nulltrue);
  333.                     echo "\">
  334.                                     <img
  335.                                             src=\"";
  336.                     // line 149
  337.                     echo twig_escape_filter($this->env, ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["imgFolder"]) || array_key_exists("imgFolder"$context) ? $context["imgFolder"] : (function () { throw new RuntimeError('Variable "imgFolder" does not exist.'149$this->source); })())) . twig_get_attribute($this->env$this->source$context["i"], "name", [], "any"falsefalsefalse149)), "html"nulltrue);
  338.                     echo "\"
  339.                                             ";
  340.                     // line 150
  341.                     echo $this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->renderStimulusController("symfony/ux-lazy-image/lazy-image", ["src" => ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(                    // line 151
  342. (isset($context["imgFolder"]) || array_key_exists("imgFolder"$context) ? $context["imgFolder"] : (function () { throw new RuntimeError('Variable "imgFolder" does not exist.'151$this->source); })())) . twig_get_attribute($this->env$this->source$context["i"], "name", [], "any"falsefalsefalse151))]);
  343.                     // line 152
  344.                     echo "
  345.                                             width=\"500\"
  346.                                     >
  347.                                 </a>
  348.                             ";
  349.                 } else {
  350.                     // line 157
  351.                     echo "                                <a class=\"gallery__item\"  ";
  352.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse157) > 4)) {
  353.                         echo " style=\"display: none\"   ";
  354.                     }
  355.                     echo " href=\"";
  356.                     echo twig_escape_filter($this->env, ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["imgFolder"]) || array_key_exists("imgFolder"$context) ? $context["imgFolder"] : (function () { throw new RuntimeError('Variable "imgFolder" does not exist.'157$this->source); })())) . twig_get_attribute($this->env$this->source$context["i"], "name", [], "any"falsefalsefalse157)), "html"nulltrue);
  357.                     echo "\">
  358.                                     <img
  359.                                             src=\"";
  360.                     // line 159
  361.                     echo twig_escape_filter($this->env, ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["imgFolder"]) || array_key_exists("imgFolder"$context) ? $context["imgFolder"] : (function () { throw new RuntimeError('Variable "imgFolder" does not exist.'159$this->source); })())) . twig_get_attribute($this->env$this->source$context["i"], "name", [], "any"falsefalsefalse159)), "html"nulltrue);
  362.                     echo "\"
  363.                                             ";
  364.                     // line 160
  365.                     echo $this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->renderStimulusController("symfony/ux-lazy-image/lazy-image", ["src" => ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(                    // line 161
  366. (isset($context["imgFolder"]) || array_key_exists("imgFolder"$context) ? $context["imgFolder"] : (function () { throw new RuntimeError('Variable "imgFolder" does not exist.'161$this->source); })())) . twig_get_attribute($this->env$this->source$context["i"], "name", [], "any"falsefalsefalse161))]);
  367.                     // line 162
  368.                     echo "
  369.                                             width=\"200\"
  370.                                     >
  371.                                 </a>
  372.                             ";
  373.                 }
  374.                 // line 167
  375.                 echo "
  376.                         ";
  377.                 ++$context['loop']['index0'];
  378.                 ++$context['loop']['index'];
  379.                 $context['loop']['first'] = false;
  380.                 if (isset($context['loop']['length'])) {
  381.                     --$context['loop']['revindex0'];
  382.                     --$context['loop']['revindex'];
  383.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  384.                 }
  385.             }
  386.             $_parent $context['_parent'];
  387.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  388.             $context array_intersect_key($context$_parent) + $_parent;
  389.             // line 169
  390.             echo "
  391.                         ";
  392.             // line 171
  393.             if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'171$this->source); })()), "blogImages", [], "any"falsefalsefalse171)) > 4)) {
  394.                 // line 172
  395.                 echo "                            <div class=\"gallery__show\">
  396.                                 <i class=\"icon icon-camera\"></i>
  397.                                 + ";
  398.                 // line 174
  399.                 echo twig_escape_filter($this->env, (twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'174$this->source); })()), "blogImages", [], "any"falsefalsefalse174)) - 4), "html"nulltrue);
  400.                 echo "
  401.                             </div>
  402.                         ";
  403.             }
  404.             // line 177
  405.             echo "                    </section>
  406.                 </div>
  407.                 <footer class=\"basic-1__footer\">
  408.                     <div class=\"basic-1__footer-heading\">Autor</div>
  409.                     <div class=\"basic-1__name\">
  410.                         <i class=\"icon icon-user\"></i>
  411.                         ";
  412.             // line 183
  413.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'183$this->source); })()), "textSource", [], "any"falsefalsefalse183), "html"nulltrue);
  414.             echo "
  415.                     </div>
  416.                 </footer>
  417.                 ";
  418.         }
  419.         // line 189
  420.         echo "
  421.             </article>
  422.             <hr>
  423.             <h2 class=\"grid__title\">Mohlo by vás zajímat</h2>
  424.             ";
  425.         // line 196
  426.         $context['_parent'] = $context;
  427.         $context['_seq'] = twig_ensure_traversable((isset($context["blogOtherManufacturer"]) || array_key_exists("blogOtherManufacturer"$context) ? $context["blogOtherManufacturer"] : (function () { throw new RuntimeError('Variable "blogOtherManufacturer" does not exist.'196$this->source); })()));
  428.         $context['loop'] = [
  429.           'parent' => $context['_parent'],
  430.           'index0' => 0,
  431.           'index'  => 1,
  432.           'first'  => true,
  433.         ];
  434.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  435.             $length count($context['_seq']);
  436.             $context['loop']['revindex0'] = $length 1;
  437.             $context['loop']['revindex'] = $length;
  438.             $context['loop']['length'] = $length;
  439.             $context['loop']['last'] = === $length;
  440.         }
  441.         foreach ($context['_seq'] as $context["_key"] => $context["b"]) {
  442.             // line 197
  443.             echo "                ";
  444.             $this->loadTemplate("blog/_blog.html.twig""homepage/blogDetail.html.twig"197)->display(twig_array_merge($context, ["b" => $context["b"]]));
  445.             // line 198
  446.             echo "            ";
  447.             ++$context['loop']['index0'];
  448.             ++$context['loop']['index'];
  449.             $context['loop']['first'] = false;
  450.             if (isset($context['loop']['length'])) {
  451.                 --$context['loop']['revindex0'];
  452.                 --$context['loop']['revindex'];
  453.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  454.             }
  455.         }
  456.         $_parent $context['_parent'];
  457.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['b'], $context['_parent'], $context['loop']);
  458.         $context array_intersect_key($context$_parent) + $_parent;
  459.         // line 199
  460.         echo "
  461.             <hr>
  462.             <div id=\"adform_squarem2\"></div>
  463.             <h2 class=\"grid__title\">Nejnovější články</h2>
  464.             ";
  465.         // line 206
  466.         $context['_parent'] = $context;
  467.         $context['_seq'] = twig_ensure_traversable((isset($context["blogNew"]) || array_key_exists("blogNew"$context) ? $context["blogNew"] : (function () { throw new RuntimeError('Variable "blogNew" does not exist.'206$this->source); })()));
  468.         $context['loop'] = [
  469.           'parent' => $context['_parent'],
  470.           'index0' => 0,
  471.           'index'  => 1,
  472.           'first'  => true,
  473.         ];
  474.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  475.             $length count($context['_seq']);
  476.             $context['loop']['revindex0'] = $length 1;
  477.             $context['loop']['revindex'] = $length;
  478.             $context['loop']['length'] = $length;
  479.             $context['loop']['last'] = === $length;
  480.         }
  481.         foreach ($context['_seq'] as $context["_key"] => $context["b"]) {
  482.             // line 207
  483.             echo "                ";
  484.             $this->loadTemplate("blog/_blog.html.twig""homepage/blogDetail.html.twig"207)->display(twig_array_merge($context, ["b" => $context["b"]]));
  485.             // line 208
  486.             echo "            ";
  487.             ++$context['loop']['index0'];
  488.             ++$context['loop']['index'];
  489.             $context['loop']['first'] = false;
  490.             if (isset($context['loop']['length'])) {
  491.                 --$context['loop']['revindex0'];
  492.                 --$context['loop']['revindex'];
  493.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  494.             }
  495.         }
  496.         $_parent $context['_parent'];
  497.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['b'], $context['_parent'], $context['loop']);
  498.         $context array_intersect_key($context$_parent) + $_parent;
  499.         // line 209
  500.         echo "
  501.             ";
  502.         // line 213
  503.         if (twig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'213$this->source); })()), "mainKind", [], "any"falsefalsefalse213)) {
  504.             // line 214
  505.             echo "
  506.                 <div class=\"grid__buttons\">
  507.                     <a class=\"button\" href=\"";
  508.             // line 217
  509.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_blog", ["urlKind" => "vsechny-clanky"]);
  510.             echo "\">
  511.                         Zobrazit další články
  512.                         <i class=\"icon icon-arrow-right\"></i>
  513.                     </a>
  514.                 </div>
  515.             ";
  516.         }
  517.         // line 224
  518.         echo "
  519.         </div>
  520.         <div>
  521.             <div id=\"adform_halfpage\"></div>
  522.             <br>
  523.             ";
  524.         // line 231
  525.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\BlogController::top"));
  526.         echo "
  527.             <div id=\"banner-container\" class=\"banner\"></div>
  528.             ";
  529.         // line 235
  530.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\VehicleTipController::tip"));
  531.         echo "
  532.           <div id=\"adform_halfpage2\"></div>
  533.           <div id=\"adform_squarem2\"></div>
  534.         </div>
  535.     </section>
  536.     <div class=\"modal\" id=\"modal--share\">
  537.         <div class=\"modal__overlay js-modal-close\"></div>
  538.         <article class=\"modal__body\">
  539.             <button class=\"modal__close js-modal-close\" type=\"button\"></button>
  540.             <div class=\"modal__header\">
  541.                 <h2>Sdílet inzerci</h2>
  542.             </div>
  543.             <div class=\"share\">
  544.                 <a target=\"_blank\"  class=\"share__item\" href=\"https://www.facebook.com/sharer/sharer.php?u=";
  545.         // line 255
  546.         echo twig_escape_filter($this->envtwig_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.'255$this->source); })()), "request", [], "any"falsefalsefalse255), "uri", [], "any"falsefalsefalse255), "html"nulltrue);
  547.         echo "\">
  548.                     <img src=\"";
  549.         // line 256
  550.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/share__icon--facebook.svg"), "html"nulltrue);
  551.         echo "\" alt=\"\">
  552.                     Facebook
  553.                 </a>
  554.                 <a target=\"_blank\"  class=\"share__item\" href=\"\">
  555.                     <img src=\"";
  556.         // line 261
  557.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/share__icon--messenger.svg"), "html"nulltrue);
  558.         echo "\" alt=\"fb-messenger://share/?link=";
  559.         echo twig_escape_filter($this->envtwig_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.'261$this->source); })()), "request", [], "any"falsefalsefalse261), "uri", [], "any"falsefalsefalse261), "html"nulltrue);
  560.         echo "\">
  561.                     Messenger
  562.                 </a>
  563.                 <a target=\"_blank\"  class=\"share__item\" href=\"whatsapp://send?text=";
  564.         // line 265
  565.         echo twig_escape_filter($this->envtwig_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.'265$this->source); })()), "request", [], "any"falsefalsefalse265), "uri", [], "any"falsefalsefalse265), "html"nulltrue);
  566.         echo "\">
  567.                     <img src=\"";
  568.         // line 266
  569.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/share__icon--whatsapp.svg"), "html"nulltrue);
  570.         echo "\" alt=\"\">
  571.                     Whatsapp
  572.                 </a>
  573.                 <a target=\"_blank\" class=\"share__item\" href=\"https://twitter.com/intent/tweet?url=";
  574.         // line 269
  575.         echo twig_escape_filter($this->envtwig_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.'269$this->source); })()), "request", [], "any"falsefalsefalse269), "uri", [], "any"falsefalsefalse269), "html"nulltrue);
  576.         echo "&text=";
  577.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'269$this->source); })()), "name", [], "any"falsefalsefalse269), "html"nulltrue);
  578.         echo "\">
  579.                     <img src=\"";
  580.         // line 270
  581.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/share__icon--twitter.svg"), "html"nulltrue);
  582.         echo "\" alt=\"\">
  583.                     Twitter
  584.                 </a>
  585.                 <a target=\"_blank\"  class=\"share__item\"
  586.                    href=\"mailto:?subject=";
  587.         // line 274
  588.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'274$this->source); })()), "name", [], "any"falsefalsefalse274), "html"nulltrue);
  589.         echo "&amp;body=Podívej se na ";
  590.         echo twig_escape_filter($this->envtwig_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.'274$this->source); })()), "request", [], "any"falsefalsefalse274), "uri", [], "any"falsefalsefalse274), "html"nulltrue);
  591.         echo "\">
  592.                     <img src=\"";
  593.         // line 275
  594.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/share__icon--envelope.svg"), "html"nulltrue);
  595.         echo "\" alt=\"\">
  596.                     E-mail
  597.                 </a>
  598.             </div>
  599.             <footer class=\"modal__footer\">
  600.                 <button class=\"modal__link js-modal-close\" type=\"button\">zavřít okno</button>
  601.             </footer>
  602.         </article>
  603.     </div>
  604.     <!-- The Gallery as lightbox dialog, should be a document body child element -->
  605.     <div id=\"blueimp-gallery\" class=\"blueimp-gallery blueimp-gallery-controls\" aria-label=\"image gallery\"
  606.          aria-modal=\"true\" role=\"dialog\">
  607.         <div class=\"slides\" aria-live=\"polite\"></div>
  608.         <a class=\"prev\" aria-controls=\"blueimp-gallery\" aria-label=\"previous slide\" aria-keyshortcuts=\"ArrowLeft\"></a>
  609.         <a class=\"next\" aria-controls=\"blueimp-gallery\" aria-label=\"next slide\" aria-keyshortcuts=\"ArrowRight\"></a>
  610.         <a class=\"close\" aria-controls=\"blueimp-gallery\" aria-label=\"close\" aria-keyshortcuts=\"Escape\"></a>
  611.     </div>
  612. ";
  613.         
  614.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  615.         
  616.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  617.     }
  618.     public function getTemplateName()
  619.     {
  620.         return "homepage/blogDetail.html.twig";
  621.     }
  622.     public function isTraitable()
  623.     {
  624.         return false;
  625.     }
  626.     public function getDebugInfo()
  627.     {
  628.         return array (  667 => 275,  661 => 274,  654 => 270,  648 => 269,  642 => 266,  638 => 265,  629 => 261,  621 => 256,  617 => 255,  594 => 235,  587 => 231,  578 => 224,  568 => 217,  563 => 214,  561 => 213,  555 => 209,  541 => 208,  538 => 207,  521 => 206,  512 => 199,  498 => 198,  495 => 197,  478 => 196,  469 => 189,  460 => 183,  452 => 177,  446 => 174,  442 => 172,  440 => 171,  436 => 169,  421 => 167,  414 => 162,  412 => 161,  411 => 160,  407 => 159,  397 => 157,  390 => 152,  388 => 151,  387 => 150,  383 => 149,  377 => 147,  375 => 146,  372 => 145,  355 => 144,  346 => 137,  344 => 136,  338 => 132,  331 => 127,  320 => 122,  314 => 119,  304 => 116,  300 => 114,  294 => 112,  288 => 108,  286 => 107,  285 => 106,  281 => 105,  277 => 104,  274 => 103,  272 => 102,  268 => 100,  262 => 99,  256 => 97,  254 => 96,  250 => 94,  246 => 93,  240 => 89,  231 => 84,  220 => 79,  218 => 78,  211 => 73,  209 => 72,  200 => 65,  193 => 51,  187 => 48,  175 => 39,  172 => 38,  164 => 36,  162 => 35,  157 => 32,  150 => 27,  148 => 26,  147 => 25,  143 => 24,  139 => 22,  137 => 21,  132 => 19,  126 => 15,  123 => 14,  120 => 13,  117 => 12,  114 => 11,  112 => 10,  109 => 9,  99 => 8,  80 => 5,  60 => 3,  37 => 1,);
  629.     }
  630.     public function getSourceContext()
  631.     {
  632.         return new Source("{% extends 'base.html.twig' %}
  633. {% block title %}{{ blog.name }} | Autanet.cz {% endblock %}
  634. {% block desc  %}{{ blog.description }}{% endblock %}
  635. {% block body %}
  636.     {%  if  blog.importId  %}
  637.     {%  set  imgFolder = 'artphotos/'  %}
  638.     {%  else  %}
  639.         {%  set  imgFolder = 'img-blog/'  %}
  640.     {%  endif  %}
  641.     <section class=\"grid\">
  642.         <div>
  643.             <article class=\"basic-1\">
  644.                 <h1 class=\"basic-1__title\">{{ blog.name|raw }}   </h1>
  645.                 {% if blog.blogImages.first %}
  646.                 <figure class=\"basic-1__image\">
  647.                         <img
  648.                                 src=\"{{ asset(imgFolder)~blog.blogImages.first.name }}\"
  649.                                 {{ stimulus_controller('symfony/ux-lazy-image/lazy-image', {
  650.                                     src: asset(imgFolder)~blog.blogImages.first.name
  651.                                 }) }}
  652.                                 width=\"500\"
  653.                         >
  654.                 </figure>
  655.                 {% endif %}
  656.                 <div class=\"basic-1__info\">
  657.                     {% if blog.mainKind %}
  658.                     <a class=\"basic-1__label\" href=\"{{ path('page_blog', { urlKind: blog.mainKind.url  }) }}\">{{ blog.mainKind.name }}</a>
  659.                     {% endif %}
  660.                     <div class=\"basic-1__date\">{{ blog.createAt|date('d. m. Y') }}</div>
  661.                     <a class=\"button js-modal-show\" href=\"#modal--share\">
  662.                         Sdílet článek
  663.                         <i class=\"icon icon-forward\"></i>
  664.                     </a>
  665.                 </div>
  666.                 <p class=\"basic-1__perex\">{{ blog.description|raw }}</p>
  667.                 <div class=\"responsive-img-block\" id=\"blog-text\">
  668.                     {{ blog.text|setDivAd|raw }}
  669.                 </div>
  670.                 {#
  671.                     <div class=\"basic-1__row\">
  672.                  <figure class=\"basic-1__photo\">
  673.                      <img src=\"img/content/image--7.jpg\" alt=\"\" loading=\"lazy\">
  674.                  </figure>
  675.                  <figure class=\"basic-1__photo\">
  676.                      <img src=\"img/content/image--9.jpg\" alt=\"\" loading=\"lazy\">
  677.                  </figure>
  678.              </div>
  679.                 #}
  680.  
  681.                 <div id=\"AdTrackGenericInterscrollerMobile\"></div>
  682.                 <hr>
  683.                 {% if vehicles|length > 0 %}
  684.                 <div class=\"grid__results\">
  685.                     <h2 class=\"grid__title\">Nabídka vozidel na prodej</h2>
  686.                     {% if isVehicleModel  %}
  687.                         <a class=\"button\" href=\"/osobni-vozidla/{{ blog.vehicleManufacturer.url }}/{{ blog.vehicleModel.url  }}\">
  688.                             Zobrazit více vozidel
  689.                             <i class=\"icon icon-chevron-right\"></i>
  690.                         </a>
  691.                     {% else %}
  692.                         <a class=\"button\" href=\"/osobni-vozidla/{{ blog.vehicleManufacturer.url }}\">
  693.                             Zobrazit více vozidel
  694.                             <i class=\"icon icon-chevron-right\"></i>
  695.                         </a>
  696.                     {% endif %}
  697.                 </div>
  698.                 <div class=\"grid__row\">
  699.                     {% for vehicle in vehicles %}
  700.                     <a class=\"box\"
  701.                         {% if vehicle.model %}
  702.                             <a href=\"{{ path('page_vehicle_detail', {   urlManufacturer: vehicle.manufacturer.url, urlModel: vehicle.model.url, id: vehicle.id   }) }}\"
  703.                         {% else %}
  704.                             <a href=\"{{ path('page_vehicle_detail', {   urlManufacturer: vehicle.manufacturer.url,   id: vehicle.id   }) }}\"
  705.                         {% endif %}  >
  706.                         <figure class=\"box__image\">
  707.                             {% if vehicle.vehicleImages.first %}
  708.                             <img
  709.                                     src=\"{{ asset(vehicle_image_url(vehicle.vehicleImages.first)) }}\"
  710.                                     alt=\"{{ vehicle_image_alt(vehicle.vehicleImages.first) }}\"
  711.                                     {{ stimulus_controller('symfony/ux-lazy-image/lazy-image', {
  712.                                         src: asset(vehicle_image_url(vehicle.vehicleImages.first))
  713.                                     }) }}
  714.                                     width=\"150\"
  715.                             >
  716.                             {% else %}
  717.                                 <img src=\"{{ asset('/img/no-picture-ok.jpg') }}\" alt=\"bez obrázku\">
  718.                             {% endif %}
  719.                         </figure>
  720.                         <div class=\"box__text\">
  721.                             <h3 class=\"box__title\">{{  vehicle.manufacturer.name }} {{  vehicle.model.name }}  {{  vehicle.type }} </h3>
  722.                             <div class=\"box__date\">
  723.                                 <div class=\"box__date-label\">Rok výroby</div>
  724.                                 <div>{{  vehicle.madeDate|slice(0,4) }}</div>
  725.                             </div>
  726.                             <div class=\"box__price\">
  727.                                 {{  vehicle.price|number_format(0, null, ' ') }} Kč
  728.                             </div>
  729.                         </div>
  730.                     </a>
  731.                     {% endfor %}
  732.                 </div>
  733.                 <hr>
  734.                 {% endif %}
  735.                 <div>
  736.                     {% if blog.blogImages|length > 1  %}
  737.                     <h2 class=\"grid__title\">Fotogalerie</h2>
  738.                     <section class=\"gallery gallery--columns3 js-gallery\">
  739.                         {% for i  in  blog.blogImages %}
  740.                             {% if  loop.first %}
  741.                                 <a class=\"gallery__item gallery__item--extra-large\" href=\"{{ asset(imgFolder)~i.name    }}\">
  742.                                     <img
  743.                                             src=\"{{ asset(imgFolder)~i.name    }}\"
  744.                                             {{ stimulus_controller('symfony/ux-lazy-image/lazy-image', {
  745.                                                 src: asset(imgFolder)~i.name
  746.                                             }) }}
  747.                                             width=\"500\"
  748.                                     >
  749.                                 </a>
  750.                             {% else %}
  751.                                 <a class=\"gallery__item\"  {% if  loop.index > 4 %} style=\"display: none\"   {% endif %} href=\"{{ asset(imgFolder)~i.name    }}\">
  752.                                     <img
  753.                                             src=\"{{ asset(imgFolder)~i.name    }}\"
  754.                                             {{ stimulus_controller('symfony/ux-lazy-image/lazy-image', {
  755.                                                 src: asset(imgFolder)~i.name
  756.                                             }) }}
  757.                                             width=\"200\"
  758.                                     >
  759.                                 </a>
  760.                             {% endif %}
  761.                         {% endfor %}
  762.                         {% if   blog.blogImages|length > 4 %}
  763.                             <div class=\"gallery__show\">
  764.                                 <i class=\"icon icon-camera\"></i>
  765.                                 + {{  blog.blogImages|length - 4 }}
  766.                             </div>
  767.                         {% endif%}
  768.                     </section>
  769.                 </div>
  770.                 <footer class=\"basic-1__footer\">
  771.                     <div class=\"basic-1__footer-heading\">Autor</div>
  772.                     <div class=\"basic-1__name\">
  773.                         <i class=\"icon icon-user\"></i>
  774.                         {{ blog.textSource }}
  775.                     </div>
  776.                 </footer>
  777.                 {% endif  %}
  778.             </article>
  779.             <hr>
  780.             <h2 class=\"grid__title\">Mohlo by vás zajímat</h2>
  781.             {% for b in blogOtherManufacturer  %}
  782.                 {% include 'blog/_blog.html.twig' with {  b: b} %}
  783.             {% endfor %}
  784.             <hr>
  785.             <div id=\"adform_squarem2\"></div>
  786.             <h2 class=\"grid__title\">Nejnovější články</h2>
  787.             {% for b in  blogNew  %}
  788.                 {% include 'blog/_blog.html.twig' with {  b: b} %}
  789.             {% endfor %}
  790.             {% if blog.mainKind %}
  791.                 <div class=\"grid__buttons\">
  792.                     <a class=\"button\" href=\"{{ path('page_blog', { urlKind: 'vsechny-clanky'  }) }}\">
  793.                         Zobrazit další články
  794.                         <i class=\"icon icon-arrow-right\"></i>
  795.                     </a>
  796.                 </div>
  797.             {% endif %}
  798.         </div>
  799.         <div>
  800.             <div id=\"adform_halfpage\"></div>
  801.             <br>
  802.             {{ render(controller( 'App\\\\Controller\\\\BlogController::top' )) }}
  803.             <div id=\"banner-container\" class=\"banner\"></div>
  804.             {{ render(controller( 'App\\\\Controller\\\\VehicleTipController::tip' )) }}
  805.           <div id=\"adform_halfpage2\"></div>
  806.           <div id=\"adform_squarem2\"></div>
  807.         </div>
  808.     </section>
  809.     <div class=\"modal\" id=\"modal--share\">
  810.         <div class=\"modal__overlay js-modal-close\"></div>
  811.         <article class=\"modal__body\">
  812.             <button class=\"modal__close js-modal-close\" type=\"button\"></button>
  813.             <div class=\"modal__header\">
  814.                 <h2>Sdílet inzerci</h2>
  815.             </div>
  816.             <div class=\"share\">
  817.                 <a target=\"_blank\"  class=\"share__item\" href=\"https://www.facebook.com/sharer/sharer.php?u={{ app.request.uri }}\">
  818.                     <img src=\"{{ asset('img/share__icon--facebook.svg') }}\" alt=\"\">
  819.                     Facebook
  820.                 </a>
  821.                 <a target=\"_blank\"  class=\"share__item\" href=\"\">
  822.                     <img src=\"{{ asset('img/share__icon--messenger.svg') }}\" alt=\"fb-messenger://share/?link={{ app.request.uri }}\">
  823.                     Messenger
  824.                 </a>
  825.                 <a target=\"_blank\"  class=\"share__item\" href=\"whatsapp://send?text={{ app.request.uri }}\">
  826.                     <img src=\"{{ asset('img/share__icon--whatsapp.svg') }}\" alt=\"\">
  827.                     Whatsapp
  828.                 </a>
  829.                 <a target=\"_blank\" class=\"share__item\" href=\"https://twitter.com/intent/tweet?url={{ app.request.uri }}&text={{  blog.name }}\">
  830.                     <img src=\"{{ asset('img/share__icon--twitter.svg') }}\" alt=\"\">
  831.                     Twitter
  832.                 </a>
  833.                 <a target=\"_blank\"  class=\"share__item\"
  834.                    href=\"mailto:?subject={{  blog.name }}&amp;body=Podívej se na {{ app.request.uri }}\">
  835.                     <img src=\"{{ asset('img/share__icon--envelope.svg') }}\" alt=\"\">
  836.                     E-mail
  837.                 </a>
  838.             </div>
  839.             <footer class=\"modal__footer\">
  840.                 <button class=\"modal__link js-modal-close\" type=\"button\">zavřít okno</button>
  841.             </footer>
  842.         </article>
  843.     </div>
  844.     <!-- The Gallery as lightbox dialog, should be a document body child element -->
  845.     <div id=\"blueimp-gallery\" class=\"blueimp-gallery blueimp-gallery-controls\" aria-label=\"image gallery\"
  846.          aria-modal=\"true\" role=\"dialog\">
  847.         <div class=\"slides\" aria-live=\"polite\"></div>
  848.         <a class=\"prev\" aria-controls=\"blueimp-gallery\" aria-label=\"previous slide\" aria-keyshortcuts=\"ArrowLeft\"></a>
  849.         <a class=\"next\" aria-controls=\"blueimp-gallery\" aria-label=\"next slide\" aria-keyshortcuts=\"ArrowRight\"></a>
  850.         <a class=\"close\" aria-controls=\"blueimp-gallery\" aria-label=\"close\" aria-keyshortcuts=\"Escape\"></a>
  851.     </div>
  852. {% endblock %}
  853. ""homepage/blogDetail.html.twig""/www/hosting/autanet.cz/test/templates/homepage/blogDetail.html.twig");
  854.     }
  855. }