<?php
use 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;
/* Slivki/top_main_feed_teaser_mobile.html.twig */
class __TwigTemplate_7b68b7027918d899f54e6bc9a3fd07ce18e31eebc8ed1f0054ef21dbc86b3264 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Slivki/top_main_feed_teaser_mobile.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Slivki/top_main_feed_teaser_mobile.html.twig"));
// line 1
echo "<a class=\"swiper-slide main-hot-feed-teaser ";
echo (((isset($context["isVideoGuide"]) || array_key_exists("isVideoGuide", $context) ? $context["isVideoGuide"] : (function () { throw new RuntimeError('Variable "isVideoGuide" does not exist.', 1, $this->source); })())) ? ("video-guide follow-link") : (""));
echo "\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getURL((isset($context["entityUrlType"]) || array_key_exists("entityUrlType", $context) ? $context["entityUrlType"] : (function () { throw new RuntimeError('Variable "entityUrlType" does not exist.', 1, $this->source); })()), twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 1, $this->source); })()), "getID", [], "method", false, false, false, 1)), "html", null, true);
echo "\" target=\"_blank\">
<div class=\"main-hot-feed-teaser--duration\">";
// line 2
echo twig_escape_filter($this->env, (isset($context["timeText"]) || array_key_exists("timeText", $context) ? $context["timeText"] : (function () { throw new RuntimeError('Variable "timeText" does not exist.', 2, $this->source); })()), "html", null, true);
echo "</div>
";
// line 3
if ((isset($context["imageMedia"]) || array_key_exists("imageMedia", $context) ? $context["imageMedia"] : (function () { throw new RuntimeError('Variable "imageMedia" does not exist.', 3, $this->source); })())) {
// line 4
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->logWrite(twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 4, $this->source); })()), "getID", [], "method", false, false, false, 4)), "html", null, true);
echo "
<img src=\"";
// line 5
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL((isset($context["imageMedia"]) || array_key_exists("imageMedia", $context) ? $context["imageMedia"] : (function () { throw new RuntimeError('Variable "imageMedia" does not exist.', 5, $this->source); })()), 500, 324), "html", null, true);
echo "\" alt=\"\"/>
";
}
// line 7
echo " <div class=\"main-hot-feed-teaser--description\">";
echo twig_escape_filter($this->env, (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 7, $this->source); })()), "html", null, true);
echo "</div>
</a>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "Slivki/top_main_feed_teaser_mobile.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 66 => 7, 61 => 5, 56 => 4, 54 => 3, 50 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<a class=\"swiper-slide main-hot-feed-teaser {{ isVideoGuide ? 'video-guide follow-link' }}\" href=\"{{ getURL(entityUrlType, entity.getID()) }}\" target=\"_blank\">
<div class=\"main-hot-feed-teaser--duration\">{{ timeText }}</div>
{% if imageMedia %}
{{ logWrite(entity.getID()) }}
<img src=\"{{ getImageURL(imageMedia, 500, 324) }}\" alt=\"\"/>
{% endif %}
<div class=\"main-hot-feed-teaser--description\">{{ title }}</div>
</a>", "Slivki/top_main_feed_teaser_mobile.html.twig", "/mnt/data/virtwww/slivki/templates/Slivki/top_main_feed_teaser_mobile.html.twig");
}
}