var/cache/dev/twig/ae/aed52dd2d4506a9d93e4f62ed9a81357be4bb2ca02ea5e183df4c0ab19b062ed.php line 43

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/mobile/banner/banner.html.twig */
  14. class __TwigTemplate_c792eddf38cb19ea8976fa023e80cb56bbf051f0741a01034b964527f856fb3c 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/mobile/banner/banner.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/mobile/banner/banner.html.twig"));
  33.         // line 1
  34.         if (((isset($context["banner"]) || array_key_exists("banner"$context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.'1$this->source); })()) && (=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["banner"]) || array_key_exists("banner"$context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.'1$this->source); })()), "getCityIds", [], "method"falsefalsefalse1), 0, [], "array"falsefalsefalse1), twig_get_attribute($this->env$this->source$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getCurrentCity(), "getID", [], "method"falsefalsefalse1))))) {
  35.             // line 2
  36.             echo "    <div class=\"text-center ";
  37.             ((array_key_exists("additionalClass"$context)) ? (print (twig_escape_filter($this->env, (isset($context["additionalClass"]) || array_key_exists("additionalClass"$context) ? $context["additionalClass"] : (function () { throw new RuntimeError('Variable "additionalClass" does not exist.'2$this->source); })()), "html"nulltrue))) : (print ("")));
  38.             echo "\">
  39.         <a data-id=\"";
  40.             // line 3
  41.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["banner"]) || array_key_exists("banner"$context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.'3$this->source); })()), "getID", [], "method"falsefalsefalse3), "html"nulltrue);
  42.             echo "\" class=\"banner\" href=\"";
  43.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["banner"]) || array_key_exists("banner"$context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.'3$this->source); })()), "getURL", [], "method"falsefalsefalse3), "html"nulltrue);
  44.             echo "\" target=\"_blank\" rel=\"nofollow\">
  45.             <img src=\"";
  46.             // line 4
  47.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["banner"]) || array_key_exists("banner"$context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.'4$this->source); })()), "getFilePath", [], "method"falsefalsefalse4), "html"nulltrue);
  48.             echo "\" alt=\"";
  49.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["banner"]) || array_key_exists("banner"$context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.'4$this->source); })()), "getTitle", [], "method"falsefalsefalse4), "html"nulltrue);
  50.             echo "\" title=\"";
  51.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["banner"]) || array_key_exists("banner"$context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.'4$this->source); })()), "getTitle", [], "method"falsefalsefalse4), "html"nulltrue);
  52.             echo "\"/>
  53.         </a>
  54.     </div>
  55. ";
  56.         }
  57.         
  58.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  59.         
  60.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  61.     }
  62.     public function getTemplateName()
  63.     {
  64.         return "Slivki/mobile/banner/banner.html.twig";
  65.     }
  66.     public function isTraitable()
  67.     {
  68.         return false;
  69.     }
  70.     public function getDebugInfo()
  71.     {
  72.         return array (  56 => 4,  50 => 3,  45 => 2,  43 => 1,);
  73.     }
  74.     public function getSourceContext()
  75.     {
  76.         return new Source("{% if banner and banner.getCityIds()[0] == getCurrentCity().getID() %}
  77.     <div class=\"text-center {{ additionalClass is defined ? additionalClass }}\">
  78.         <a data-id=\"{{ banner.getID() }}\" class=\"banner\" href=\"{{ banner.getURL() }}\" target=\"_blank\" rel=\"nofollow\">
  79.             <img src=\"{{ banner.getFilePath() }}\" alt=\"{{ banner.getTitle() }}\" title=\"{{ banner.getTitle() }}\"/>
  80.         </a>
  81.     </div>
  82. {% endif %}
  83. ""Slivki/mobile/banner/banner.html.twig""/mnt/data/virtwww/test1/templates/Slivki/mobile/banner/banner.html.twig");
  84.     }
  85. }