var/cache/dev/twig/c1/c1b6404a9f6f9fc8a80a8eec29a7a3a7.php line 40
<?phpuse Twig\Environment;use Twig\Error\LoaderError;use Twig\Error\RuntimeError;use Twig\Extension\SandboxExtension;use Twig\Markup;use Twig\Sandbox\SecurityError;use Twig\Sandbox\SecurityNotAllowedTagError;use Twig\Sandbox\SecurityNotAllowedFilterError;use Twig\Sandbox\SecurityNotAllowedFunctionError;use Twig\Source;use Twig\Template;/* homepage/blogDetail.html.twig */class __TwigTemplate_c02df4c0a894108d572a0ae159533623 extends Template{private $source;private $macros = [];public function __construct(Environment $env){parent::__construct($env);$this->source = $this->getSourceContext();$this->blocks = ['title' => [$this, 'block_title'],'desc' => [$this, 'block_desc'],'body' => [$this, 'block_body'],];}protected function doGetParent(array $context){// line 1return "base.html.twig";}protected function doDisplay(array $context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "homepage/blogDetail.html.twig"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "homepage/blogDetail.html.twig"));$this->parent = $this->loadTemplate("base.html.twig", "homepage/blogDetail.html.twig", 1);$this->parent->display($context, array_merge($this->blocks, $blocks));$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);}// line 3public function block_title($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));echo twig_escape_filter($this->env, 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.', 3, $this->source); })()), "name", [], "any", false, false, false, 3), "html", null, true);echo " | Autanet.cz ";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 5public function block_desc($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "desc"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "desc"));echo twig_escape_filter($this->env, 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.', 5, $this->source); })()), "description", [], "any", false, false, false, 5), "html", null, true);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 8public function block_body($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));// line 9echo "";// line 10if (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", false, false, false, 10)) {// line 11echo " ";$context["imgFolder"] = "artphotos/";// line 12echo " ";} else {// line 13echo " ";$context["imgFolder"] = "img-blog/";// line 14echo " ";}// line 15echo "<section class=\"grid\"><div><article class=\"basic-1\"><h1 class=\"basic-1__title\">";// line 19echo 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", false, false, false, 19);echo " </h1>";// line 21if (twig_get_attribute($this->env, $this->source, 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.', 21, $this->source); })()), "blogImages", [], "any", false, false, false, 21), "first", [], "any", false, false, false, 21)) {// line 22echo " <figure class=\"basic-1__image\"><imgsrc=\"";// line 24echo 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->source, twig_get_attribute($this->env, $this->source, 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.', 24, $this->source); })()), "blogImages", [], "any", false, false, false, 24), "first", [], "any", false, false, false, 24), "name", [], "any", false, false, false, 24)), "html", null, true);echo "\"";// line 25echo $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(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->source, twig_get_attribute($this->env, $this->source, 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.', 26, $this->source); })()), "blogImages", [], "any", false, false, false, 26), "first", [], "any", false, false, false, 26), "name", [], "any", false, false, false, 26))]);// line 27echo "width=\"500\"></figure>";}// line 32echo "<div class=\"basic-1__info\">";// line 35if (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", false, false, false, 35)) {// line 36echo " <a class=\"basic-1__label\" href=\"";echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_blog", ["urlKind" => twig_get_attribute($this->env, $this->source, 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.', 36, $this->source); })()), "mainKind", [], "any", false, false, false, 36), "url", [], "any", false, false, false, 36)]), "html", null, true);echo "\">";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 36, $this->source); })()), "mainKind", [], "any", false, false, false, 36), "name", [], "any", false, false, false, 36), "html", null, true);echo "</a>";}// line 38echo "<div class=\"basic-1__date\">";// line 39echo twig_escape_filter($this->env, twig_date_format_filter($this->env, 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.', 39, $this->source); })()), "createAt", [], "any", false, false, false, 39), "d. m. Y"), "html", null, true);echo "</div><a class=\"button js-modal-show\" href=\"#modal--share\">Sdílet článek<i class=\"icon icon-forward\"></i></a></div><p class=\"basic-1__perex\">";// line 48echo 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", false, false, false, 48);echo "</p><div class=\"responsive-img-block\" id=\"blog-text\">";// line 51echo $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", false, false, false, 51));echo "</div>";// line 65echo "<div id=\"AdTrackGenericInterscrollerMobile\"></div><hr>";// line 72if ((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)) {// line 73echo "<div class=\"grid__results\"><h2 class=\"grid__title\">Nabídka vozidel na prodej</h2>";// line 78if ((isset($context["isVehicleModel"]) || array_key_exists("isVehicleModel", $context) ? $context["isVehicleModel"] : (function () { throw new RuntimeError('Variable "isVehicleModel" does not exist.', 78, $this->source); })())) {// line 79echo " <a class=\"button\" href=\"/osobni-vozidla/";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 79, $this->source); })()), "vehicleManufacturer", [], "any", false, false, false, 79), "url", [], "any", false, false, false, 79), "html", null, true);echo "/";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 79, $this->source); })()), "vehicleModel", [], "any", false, false, false, 79), "url", [], "any", false, false, false, 79), "html", null, true);echo "\">Zobrazit více vozidel<i class=\"icon icon-chevron-right\"></i></a>";} else {// line 84echo " <a class=\"button\" href=\"/osobni-vozidla/";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 84, $this->source); })()), "vehicleManufacturer", [], "any", false, false, false, 84), "url", [], "any", false, false, false, 84), "html", null, true);echo "\">Zobrazit více vozidel<i class=\"icon icon-chevron-right\"></i></a>";}// line 89echo "</div><div class=\"grid__row\">";// line 93$context['_parent'] = $context;$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); })()));foreach ($context['_seq'] as $context["_key"] => $context["vehicle"]) {// line 94echo " <a class=\"box\"";// line 96if (twig_get_attribute($this->env, $this->source, $context["vehicle"], "model", [], "any", false, false, false, 96)) {// line 97echo " <a href=\"";echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_vehicle_detail", ["urlManufacturer" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["vehicle"], "manufacturer", [], "any", false, false, false, 97), "url", [], "any", false, false, false, 97), "urlModel" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["vehicle"], "model", [], "any", false, false, false, 97), "url", [], "any", false, false, false, 97), "id" => twig_get_attribute($this->env, $this->source, $context["vehicle"], "id", [], "any", false, false, false, 97)]), "html", null, true);echo "\"";} else {// line 99echo " <a href=\"";echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_vehicle_detail", ["urlManufacturer" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["vehicle"], "manufacturer", [], "any", false, false, false, 99), "url", [], "any", false, false, false, 99), "id" => twig_get_attribute($this->env, $this->source, $context["vehicle"], "id", [], "any", false, false, false, 99)]), "html", null, true);echo "\"";}// line 100echo " ><figure class=\"box__image\">";// line 102if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["vehicle"], "vehicleImages", [], "any", false, false, false, 102), "first", [], "any", false, false, false, 102)) {// line 103echo " <imgsrc=\"";// line 104echo 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->source, twig_get_attribute($this->env, $this->source, $context["vehicle"], "vehicleImages", [], "any", false, false, false, 104), "first", [], "any", false, false, false, 104))), "html", null, true);echo "\"alt=\"";// line 105echo twig_escape_filter($this->env, $this->extensions['App\Twig\VehicleImageExtension']->getImageAlt(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["vehicle"], "vehicleImages", [], "any", false, false, false, 105), "first", [], "any", false, false, false, 105)), "html", null, true);echo "\"";// line 106echo $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->source, twig_get_attribute($this->env, $this->source, // line 107$context["vehicle"], "vehicleImages", [], "any", false, false, false, 107), "first", [], "any", false, false, false, 107)))]);// line 108echo "width=\"150\">";} else {// line 112echo " <img src=\"";echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/img/no-picture-ok.jpg"), "html", null, true);echo "\" alt=\"bez obrázku\">";}// line 114echo " </figure><div class=\"box__text\"><h3 class=\"box__title\">";// line 116echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["vehicle"], "manufacturer", [], "any", false, false, false, 116), "name", [], "any", false, false, false, 116), "html", null, true);echo " ";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["vehicle"], "model", [], "any", false, false, false, 116), "name", [], "any", false, false, false, 116), "html", null, true);echo " ";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["vehicle"], "type", [], "any", false, false, false, 116), "html", null, true);echo " </h3><div class=\"box__date\"><div class=\"box__date-label\">Rok výroby</div><div>";// line 119echo twig_escape_filter($this->env, twig_slice($this->env, twig_get_attribute($this->env, $this->source, $context["vehicle"], "madeDate", [], "any", false, false, false, 119), 0, 4), "html", null, true);echo "</div></div><div class=\"box__price\">";// line 122echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["vehicle"], "price", [], "any", false, false, false, 122), 0, null, " "), "html", null, true);echo " Kč</div></div></a>";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['vehicle'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 127echo "</div><hr>";}// line 132echo "<div>";// line 136if ((twig_length_filter($this->env, 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.', 136, $this->source); })()), "blogImages", [], "any", false, false, false, 136)) > 1)) {// line 137echo "<h2 class=\"grid__title\">Fotogalerie</h2><section class=\"gallery gallery--columns3 js-gallery\">";// line 144$context['_parent'] = $context;$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", false, false, false, 144));$context['loop'] = ['parent' => $context['_parent'],'index0' => 0,'index' => 1,'first' => true,];if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {$length = count($context['_seq']);$context['loop']['revindex0'] = $length - 1;$context['loop']['revindex'] = $length;$context['loop']['length'] = $length;$context['loop']['last'] = 1 === $length;}foreach ($context['_seq'] as $context["_key"] => $context["i"]) {// line 145echo "";// line 146if (twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 146)) {// line 147echo " <a class=\"gallery__item gallery__item--extra-large\" href=\"";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", false, false, false, 147)), "html", null, true);echo "\"><imgsrc=\"";// line 149echo 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", false, false, false, 149)), "html", null, true);echo "\"";// line 150echo $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(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", false, false, false, 151))]);// line 152echo "width=\"500\"></a>";} else {// line 157echo " <a class=\"gallery__item\" ";if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 157) > 4)) {echo " style=\"display: none\" ";}echo " href=\"";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", false, false, false, 157)), "html", null, true);echo "\"><imgsrc=\"";// line 159echo 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", false, false, false, 159)), "html", null, true);echo "\"";// line 160echo $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(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", false, false, false, 161))]);// line 162echo "width=\"200\"></a>";}// line 167echo "";++$context['loop']['index0'];++$context['loop']['index'];$context['loop']['first'] = false;if (isset($context['loop']['length'])) {--$context['loop']['revindex0'];--$context['loop']['revindex'];$context['loop']['last'] = 0 === $context['loop']['revindex0'];}}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 169echo "";// line 171if ((twig_length_filter($this->env, 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.', 171, $this->source); })()), "blogImages", [], "any", false, false, false, 171)) > 4)) {// line 172echo " <div class=\"gallery__show\"><i class=\"icon icon-camera\"></i>+ ";// line 174echo twig_escape_filter($this->env, (twig_length_filter($this->env, 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.', 174, $this->source); })()), "blogImages", [], "any", false, false, false, 174)) - 4), "html", null, true);echo "</div>";}// line 177echo " </section></div><footer class=\"basic-1__footer\"><div class=\"basic-1__footer-heading\">Autor</div><div class=\"basic-1__name\"><i class=\"icon icon-user\"></i>";// line 183echo twig_escape_filter($this->env, 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.', 183, $this->source); })()), "textSource", [], "any", false, false, false, 183), "html", null, true);echo "</div></footer>";}// line 189echo "</article><hr><h2 class=\"grid__title\">Mohlo by vás zajímat</h2>";// line 196$context['_parent'] = $context;$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); })()));$context['loop'] = ['parent' => $context['_parent'],'index0' => 0,'index' => 1,'first' => true,];if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {$length = count($context['_seq']);$context['loop']['revindex0'] = $length - 1;$context['loop']['revindex'] = $length;$context['loop']['length'] = $length;$context['loop']['last'] = 1 === $length;}foreach ($context['_seq'] as $context["_key"] => $context["b"]) {// line 197echo " ";$this->loadTemplate("blog/_blog.html.twig", "homepage/blogDetail.html.twig", 197)->display(twig_array_merge($context, ["b" => $context["b"]]));// line 198echo " ";++$context['loop']['index0'];++$context['loop']['index'];$context['loop']['first'] = false;if (isset($context['loop']['length'])) {--$context['loop']['revindex0'];--$context['loop']['revindex'];$context['loop']['last'] = 0 === $context['loop']['revindex0'];}}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['b'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 199echo "<hr><div id=\"adform_squarem2\"></div><h2 class=\"grid__title\">Nejnovější články</h2>";// line 206$context['_parent'] = $context;$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); })()));$context['loop'] = ['parent' => $context['_parent'],'index0' => 0,'index' => 1,'first' => true,];if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {$length = count($context['_seq']);$context['loop']['revindex0'] = $length - 1;$context['loop']['revindex'] = $length;$context['loop']['length'] = $length;$context['loop']['last'] = 1 === $length;}foreach ($context['_seq'] as $context["_key"] => $context["b"]) {// line 207echo " ";$this->loadTemplate("blog/_blog.html.twig", "homepage/blogDetail.html.twig", 207)->display(twig_array_merge($context, ["b" => $context["b"]]));// line 208echo " ";++$context['loop']['index0'];++$context['loop']['index'];$context['loop']['first'] = false;if (isset($context['loop']['length'])) {--$context['loop']['revindex0'];--$context['loop']['revindex'];$context['loop']['last'] = 0 === $context['loop']['revindex0'];}}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['b'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 209echo "";// line 213if (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", false, false, false, 213)) {// line 214echo "<div class=\"grid__buttons\"><a class=\"button\" href=\"";// line 217echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_blog", ["urlKind" => "vsechny-clanky"]);echo "\">Zobrazit další články<i class=\"icon icon-arrow-right\"></i></a></div>";}// line 224echo "</div><div><div id=\"adform_halfpage\"></div><br>";// line 231echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\BlogController::top"));echo "<div id=\"banner-container\" class=\"banner\"></div>";// line 235echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\VehicleTipController::tip"));echo "<div id=\"adform_halfpage2\"></div><div id=\"adform_squarem2\"></div></div></section><div class=\"modal\" id=\"modal--share\"><div class=\"modal__overlay js-modal-close\"></div><article class=\"modal__body\"><button class=\"modal__close js-modal-close\" type=\"button\"></button><div class=\"modal__header\"><h2>Sdílet inzerci</h2></div><div class=\"share\"><a target=\"_blank\" class=\"share__item\" href=\"https://www.facebook.com/sharer/sharer.php?u=";// line 255echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 255), "uri", [], "any", false, false, false, 255), "html", null, true);echo "\"><img src=\"";// line 256echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/share__icon--facebook.svg"), "html", null, true);echo "\" alt=\"\">Facebook</a><a target=\"_blank\" class=\"share__item\" href=\"\"><img src=\"";// line 261echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/share__icon--messenger.svg"), "html", null, true);echo "\" alt=\"fb-messenger://share/?link=";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 261), "uri", [], "any", false, false, false, 261), "html", null, true);echo "\">Messenger</a><a target=\"_blank\" class=\"share__item\" href=\"whatsapp://send?text=";// line 265echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 265), "uri", [], "any", false, false, false, 265), "html", null, true);echo "\"><img src=\"";// line 266echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/share__icon--whatsapp.svg"), "html", null, true);echo "\" alt=\"\">Whatsapp</a><a target=\"_blank\" class=\"share__item\" href=\"https://twitter.com/intent/tweet?url=";// line 269echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 269), "uri", [], "any", false, false, false, 269), "html", null, true);echo "&text=";echo twig_escape_filter($this->env, 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.', 269, $this->source); })()), "name", [], "any", false, false, false, 269), "html", null, true);echo "\"><img src=\"";// line 270echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/share__icon--twitter.svg"), "html", null, true);echo "\" alt=\"\">Twitter</a><a target=\"_blank\" class=\"share__item\"href=\"mailto:?subject=";// line 274echo twig_escape_filter($this->env, 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.', 274, $this->source); })()), "name", [], "any", false, false, false, 274), "html", null, true);echo "&body=Podívej se na ";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 274), "uri", [], "any", false, false, false, 274), "html", null, true);echo "\"><img src=\"";// line 275echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/share__icon--envelope.svg"), "html", null, true);echo "\" alt=\"\">E-mail</a></div><footer class=\"modal__footer\"><button class=\"modal__link js-modal-close\" type=\"button\">zavřít okno</button></footer></article></div><!-- The Gallery as lightbox dialog, should be a document body child element --><div id=\"blueimp-gallery\" class=\"blueimp-gallery blueimp-gallery-controls\" aria-label=\"image gallery\"aria-modal=\"true\" role=\"dialog\"><div class=\"slides\" aria-live=\"polite\"></div><a class=\"prev\" aria-controls=\"blueimp-gallery\" aria-label=\"previous slide\" aria-keyshortcuts=\"ArrowLeft\"></a><a class=\"next\" aria-controls=\"blueimp-gallery\" aria-label=\"next slide\" aria-keyshortcuts=\"ArrowRight\"></a><a class=\"close\" aria-controls=\"blueimp-gallery\" aria-label=\"close\" aria-keyshortcuts=\"Escape\"></a></div>";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}public function getTemplateName(){return "homepage/blogDetail.html.twig";}public function isTraitable(){return false;}public function getDebugInfo(){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,);}public function getSourceContext(){return new Source("{% extends 'base.html.twig' %}{% block title %}{{ blog.name }} | Autanet.cz {% endblock %}{% block desc %}{{ blog.description }}{% endblock %}{% block body %}{% if blog.importId %}{% set imgFolder = 'artphotos/' %}{% else %}{% set imgFolder = 'img-blog/' %}{% endif %}<section class=\"grid\"><div><article class=\"basic-1\"><h1 class=\"basic-1__title\">{{ blog.name|raw }} </h1>{% if blog.blogImages.first %}<figure class=\"basic-1__image\"><imgsrc=\"{{ asset(imgFolder)~blog.blogImages.first.name }}\"{{ stimulus_controller('symfony/ux-lazy-image/lazy-image', {src: asset(imgFolder)~blog.blogImages.first.name}) }}width=\"500\"></figure>{% endif %}<div class=\"basic-1__info\">{% if blog.mainKind %}<a class=\"basic-1__label\" href=\"{{ path('page_blog', { urlKind: blog.mainKind.url }) }}\">{{ blog.mainKind.name }}</a>{% endif %}<div class=\"basic-1__date\">{{ blog.createAt|date('d. m. Y') }}</div><a class=\"button js-modal-show\" href=\"#modal--share\">Sdílet článek<i class=\"icon icon-forward\"></i></a></div><p class=\"basic-1__perex\">{{ blog.description|raw }}</p><div class=\"responsive-img-block\" id=\"blog-text\">{{ blog.text|setDivAd|raw }}</div>{#<div class=\"basic-1__row\"><figure class=\"basic-1__photo\"><img src=\"img/content/image--7.jpg\" alt=\"\" loading=\"lazy\"></figure><figure class=\"basic-1__photo\"><img src=\"img/content/image--9.jpg\" alt=\"\" loading=\"lazy\"></figure></div>#}<div id=\"AdTrackGenericInterscrollerMobile\"></div><hr>{% if vehicles|length > 0 %}<div class=\"grid__results\"><h2 class=\"grid__title\">Nabídka vozidel na prodej</h2>{% if isVehicleModel %}<a class=\"button\" href=\"/osobni-vozidla/{{ blog.vehicleManufacturer.url }}/{{ blog.vehicleModel.url }}\">Zobrazit více vozidel<i class=\"icon icon-chevron-right\"></i></a>{% else %}<a class=\"button\" href=\"/osobni-vozidla/{{ blog.vehicleManufacturer.url }}\">Zobrazit více vozidel<i class=\"icon icon-chevron-right\"></i></a>{% endif %}</div><div class=\"grid__row\">{% for vehicle in vehicles %}<a class=\"box\"{% if vehicle.model %}<a href=\"{{ path('page_vehicle_detail', { urlManufacturer: vehicle.manufacturer.url, urlModel: vehicle.model.url, id: vehicle.id }) }}\"{% else %}<a href=\"{{ path('page_vehicle_detail', { urlManufacturer: vehicle.manufacturer.url, id: vehicle.id }) }}\"{% endif %} ><figure class=\"box__image\">{% if vehicle.vehicleImages.first %}<imgsrc=\"{{ asset(vehicle_image_url(vehicle.vehicleImages.first)) }}\"alt=\"{{ vehicle_image_alt(vehicle.vehicleImages.first) }}\"{{ stimulus_controller('symfony/ux-lazy-image/lazy-image', {src: asset(vehicle_image_url(vehicle.vehicleImages.first))}) }}width=\"150\">{% else %}<img src=\"{{ asset('/img/no-picture-ok.jpg') }}\" alt=\"bez obrázku\">{% endif %}</figure><div class=\"box__text\"><h3 class=\"box__title\">{{ vehicle.manufacturer.name }} {{ vehicle.model.name }} {{ vehicle.type }} </h3><div class=\"box__date\"><div class=\"box__date-label\">Rok výroby</div><div>{{ vehicle.madeDate|slice(0,4) }}</div></div><div class=\"box__price\">{{ vehicle.price|number_format(0, null, ' ') }} Kč</div></div></a>{% endfor %}</div><hr>{% endif %}<div>{% if blog.blogImages|length > 1 %}<h2 class=\"grid__title\">Fotogalerie</h2><section class=\"gallery gallery--columns3 js-gallery\">{% for i in blog.blogImages %}{% if loop.first %}<a class=\"gallery__item gallery__item--extra-large\" href=\"{{ asset(imgFolder)~i.name }}\"><imgsrc=\"{{ asset(imgFolder)~i.name }}\"{{ stimulus_controller('symfony/ux-lazy-image/lazy-image', {src: asset(imgFolder)~i.name}) }}width=\"500\"></a>{% else %}<a class=\"gallery__item\" {% if loop.index > 4 %} style=\"display: none\" {% endif %} href=\"{{ asset(imgFolder)~i.name }}\"><imgsrc=\"{{ asset(imgFolder)~i.name }}\"{{ stimulus_controller('symfony/ux-lazy-image/lazy-image', {src: asset(imgFolder)~i.name}) }}width=\"200\"></a>{% endif %}{% endfor %}{% if blog.blogImages|length > 4 %}<div class=\"gallery__show\"><i class=\"icon icon-camera\"></i>+ {{ blog.blogImages|length - 4 }}</div>{% endif%}</section></div><footer class=\"basic-1__footer\"><div class=\"basic-1__footer-heading\">Autor</div><div class=\"basic-1__name\"><i class=\"icon icon-user\"></i>{{ blog.textSource }}</div></footer>{% endif %}</article><hr><h2 class=\"grid__title\">Mohlo by vás zajímat</h2>{% for b in blogOtherManufacturer %}{% include 'blog/_blog.html.twig' with { b: b} %}{% endfor %}<hr><div id=\"adform_squarem2\"></div><h2 class=\"grid__title\">Nejnovější články</h2>{% for b in blogNew %}{% include 'blog/_blog.html.twig' with { b: b} %}{% endfor %}{% if blog.mainKind %}<div class=\"grid__buttons\"><a class=\"button\" href=\"{{ path('page_blog', { urlKind: 'vsechny-clanky' }) }}\">Zobrazit další články<i class=\"icon icon-arrow-right\"></i></a></div>{% endif %}</div><div><div id=\"adform_halfpage\"></div><br>{{ render(controller( 'App\\\\Controller\\\\BlogController::top' )) }}<div id=\"banner-container\" class=\"banner\"></div>{{ render(controller( 'App\\\\Controller\\\\VehicleTipController::tip' )) }}<div id=\"adform_halfpage2\"></div><div id=\"adform_squarem2\"></div></div></section><div class=\"modal\" id=\"modal--share\"><div class=\"modal__overlay js-modal-close\"></div><article class=\"modal__body\"><button class=\"modal__close js-modal-close\" type=\"button\"></button><div class=\"modal__header\"><h2>Sdílet inzerci</h2></div><div class=\"share\"><a target=\"_blank\" class=\"share__item\" href=\"https://www.facebook.com/sharer/sharer.php?u={{ app.request.uri }}\"><img src=\"{{ asset('img/share__icon--facebook.svg') }}\" alt=\"\">Facebook</a><a target=\"_blank\" class=\"share__item\" href=\"\"><img src=\"{{ asset('img/share__icon--messenger.svg') }}\" alt=\"fb-messenger://share/?link={{ app.request.uri }}\">Messenger</a><a target=\"_blank\" class=\"share__item\" href=\"whatsapp://send?text={{ app.request.uri }}\"><img src=\"{{ asset('img/share__icon--whatsapp.svg') }}\" alt=\"\">Whatsapp</a><a target=\"_blank\" class=\"share__item\" href=\"https://twitter.com/intent/tweet?url={{ app.request.uri }}&text={{ blog.name }}\"><img src=\"{{ asset('img/share__icon--twitter.svg') }}\" alt=\"\">Twitter</a><a target=\"_blank\" class=\"share__item\"href=\"mailto:?subject={{ blog.name }}&body=Podívej se na {{ app.request.uri }}\"><img src=\"{{ asset('img/share__icon--envelope.svg') }}\" alt=\"\">E-mail</a></div><footer class=\"modal__footer\"><button class=\"modal__link js-modal-close\" type=\"button\">zavřít okno</button></footer></article></div><!-- The Gallery as lightbox dialog, should be a document body child element --><div id=\"blueimp-gallery\" class=\"blueimp-gallery blueimp-gallery-controls\" aria-label=\"image gallery\"aria-modal=\"true\" role=\"dialog\"><div class=\"slides\" aria-live=\"polite\"></div><a class=\"prev\" aria-controls=\"blueimp-gallery\" aria-label=\"previous slide\" aria-keyshortcuts=\"ArrowLeft\"></a><a class=\"next\" aria-controls=\"blueimp-gallery\" aria-label=\"next slide\" aria-keyshortcuts=\"ArrowRight\"></a><a class=\"close\" aria-controls=\"blueimp-gallery\" aria-label=\"close\" aria-keyshortcuts=\"Escape\"></a></div>{% endblock %}", "homepage/blogDetail.html.twig", "/www/hosting/autanet.cz/test/templates/homepage/blogDetail.html.twig");}}