var/cache/dev/twig/fe/feb551f8a6dcde259d13500c677f7aba8a8dd81fee2cffe9f37c5baa8df23ebb.php line 46

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/banners/comments_banner.html.twig */
  14. class __TwigTemplate_c3f8c90229c6ac7496101bef7c8d31eb94c8d0509539cf79619846b543d2f0b6 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/banners/comments_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/banners/comments_banner.html.twig"));
  33.         // line 1
  34.         echo "
  35. ";
  36.         // line 2
  37.         if ((=== 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.'2$this->source); })()), "getCityIds", [], "method"falsefalsefalse2), 0, [], "array"falsefalsefalse2), twig_get_attribute($this->env$this->source$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getCurrentCity(), "getID", [], "method"falsefalsefalse2)))) {
  38.             // line 3
  39.             echo "    <div data-id=\"";
  40.             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);
  41.             echo "\" class=\"comments-banner\" style=\"margin: 20px auto;\">
  42.         ";
  43.             // line 4
  44.             if (twig_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); })()), "isJavaScript", [], "method"falsefalsefalse4)) {
  45.                 // line 5
  46.                 echo "            ";
  47.                 echo twig_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.'5$this->source); })()), "getCode", [], "method"falsefalsefalse5);
  48.                 echo "
  49.         ";
  50.             } else {
  51.                 // line 7
  52.                 echo "            ";
  53.                 if (twig_in_filter(".swf"twig_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.'7$this->source); })()), "getFilePath", [], "method"falsefalsefalse7))) {
  54.                     // line 8
  55.                     echo "                ";
  56.                     $this->loadTemplate("Slivki/banners/swf_banner.html.twig""Slivki/banners/comments_banner.html.twig"8)->display(twig_array_merge($context, ["banner" => (isset($context["banner"]) || array_key_exists("banner"$context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.'8$this->source); })()), "width" => "650""height" => "90"]));
  57.                     // line 9
  58.                     echo "            ";
  59.                 } else {
  60.                     // line 10
  61.                     echo "                <a href=\"";
  62.                     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.'10$this->source); })()), "getURL", [], "method"falsefalsefalse10), "html"nulltrue);
  63.                     echo "\" target=\"_blank\" rel=\"nofollow\">
  64.                     <img style=\"border:none; margin: 0 auto;\" src=\"";
  65.                     // line 11
  66.                     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.'11$this->source); })()), "getFilePath", [], "method"falsefalsefalse11), "html"nulltrue);
  67.                     echo "\" alt=\"";
  68.                     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.'11$this->source); })()), "getTitle", [], "method"falsefalsefalse11), "html"nulltrue);
  69.                     echo "\" title=\"";
  70.                     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.'11$this->source); })()), "getTitle", [], "method"falsefalsefalse11), "html"nulltrue);
  71.                     echo "\"/>
  72.                 </a>
  73.             ";
  74.                 }
  75.                 // line 14
  76.                 echo "        ";
  77.             }
  78.             // line 15
  79.             echo "    </div>
  80. ";
  81.         }
  82.         
  83.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  84.         
  85.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  86.     }
  87.     public function getTemplateName()
  88.     {
  89.         return "Slivki/banners/comments_banner.html.twig";
  90.     }
  91.     public function isTraitable()
  92.     {
  93.         return false;
  94.     }
  95.     public function getDebugInfo()
  96.     {
  97.         return array (  88 => 15,  85 => 14,  75 => 11,  70 => 10,  67 => 9,  64 => 8,  61 => 7,  55 => 5,  53 => 4,  48 => 3,  46 => 2,  43 => 1,);
  98.     }
  99.     public function getSourceContext()
  100.     {
  101.         return new Source("
  102. {% if banner.getCityIds()[0] == getCurrentCity().getID() %}
  103.     <div data-id=\"{{ banner.getID() }}\" class=\"comments-banner\" style=\"margin: 20px auto;\">
  104.         {% if banner.isJavaScript() %}
  105.             {{ banner.getCode()|raw }}
  106.         {% else %}
  107.             {% if '.swf' in banner.getFilePath() %}
  108.                 {% include 'Slivki/banners/swf_banner.html.twig' with {'banner': banner, 'width': '650', 'height': '90'} %}
  109.             {% else %}
  110.                 <a href=\"{{ banner.getURL() }}\" target=\"_blank\" rel=\"nofollow\">
  111.                     <img style=\"border:none; margin: 0 auto;\" src=\"{{ banner.getFilePath() }}\" alt=\"{{ banner.getTitle() }}\" title=\"{{ banner.getTitle() }}\"/>
  112.                 </a>
  113.             {% endif %}
  114.         {% endif %}
  115.     </div>
  116. {% endif %}
  117. ""Slivki/banners/comments_banner.html.twig""/mnt/data/virtwww/dima/templates/Slivki/banners/comments_banner.html.twig");
  118.     }
  119. }