var/cache/dev/twig/07/0772d4c68cc5a293d2298779b9f2d6146da939f2e54f213e69d6abf9606fc329.php line 61

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Slivki/top_main_feed_teaser_mobile.html.twig */
  14. class __TwigTemplate_7b68b7027918d899f54e6bc9a3fd07ce18e31eebc8ed1f0054ef21dbc86b3264 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/top_main_feed_teaser_mobile.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/top_main_feed_teaser_mobile.html.twig"));
  33.         // line 1
  34.         echo "<a class=\"swiper-slide main-hot-feed-teaser ";
  35.         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") : (""));
  36.         echo "\" href=\"";
  37.         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"falsefalsefalse1)), "html"nulltrue);
  38.         echo "\" target=\"_blank\">
  39.     <div class=\"main-hot-feed-teaser--duration\">";
  40.         // line 2
  41.         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"nulltrue);
  42.         echo "</div>
  43.     ";
  44.         // line 3
  45.         if ((isset($context["imageMedia"]) || array_key_exists("imageMedia"$context) ? $context["imageMedia"] : (function () { throw new RuntimeError('Variable "imageMedia" does not exist.'3$this->source); })())) {
  46.             // line 4
  47.             echo "        ";
  48.             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"falsefalsefalse4)), "html"nulltrue);
  49.             echo "
  50.         <img src=\"";
  51.             // line 5
  52.             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); })()), 500324), "html"nulltrue);
  53.             echo "\" alt=\"\"/>
  54.     ";
  55.         }
  56.         // line 7
  57.         echo "    <div class=\"main-hot-feed-teaser--description\">";
  58.         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"nulltrue);
  59.         echo "</div>
  60. </a>";
  61.         
  62.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  63.         
  64.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  65.     }
  66.     public function getTemplateName()
  67.     {
  68.         return "Slivki/top_main_feed_teaser_mobile.html.twig";
  69.     }
  70.     public function isTraitable()
  71.     {
  72.         return false;
  73.     }
  74.     public function getDebugInfo()
  75.     {
  76.         return array (  66 => 7,  61 => 5,  56 => 4,  54 => 3,  50 => 2,  43 => 1,);
  77.     }
  78.     public function getSourceContext()
  79.     {
  80.         return new Source("<a class=\"swiper-slide main-hot-feed-teaser {{ isVideoGuide ? 'video-guide follow-link' }}\" href=\"{{ getURL(entityUrlType, entity.getID()) }}\" target=\"_blank\">
  81.     <div class=\"main-hot-feed-teaser--duration\">{{ timeText }}</div>
  82.     {% if imageMedia %}
  83.         {{  logWrite(entity.getID())  }}
  84.         <img src=\"{{ getImageURL(imageMedia, 500, 324) }}\" alt=\"\"/>
  85.     {%  endif %}
  86.     <div class=\"main-hot-feed-teaser--description\">{{ title }}</div>
  87. </a>""Slivki/top_main_feed_teaser_mobile.html.twig""/mnt/data/virtwww/slivki/templates/Slivki/top_main_feed_teaser_mobile.html.twig");
  88.     }
  89. }