var/cache/dev/twig/8f/8ffbeb97703e10645af97894fc2eacee5c7d6c506aa77326897fce466a5ad990.php line 66

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. /* HitsoContentBundle:Front/Article/Elements:image.html.twig */
  14. class __TwigTemplate_f79a8f70a2d1cb7ac7d5ea12acf8e8ef5b28dd2f880340997588e3b5b2b4830c extends \Twig\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_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  30.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""HitsoContentBundle:Front/Article/Elements:image.html.twig"));
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""HitsoContentBundle:Front/Article/Elements:image.html.twig"));
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""HitsoContentBundle:Front/Article/Elements:image.html.twig"));
  35.         // line 1
  36.         echo "<div class=\"article__image\">
  37.     <div class=\"article__image__inner\">
  38.         ";
  39.         // line 3
  40.         if ($this->extensions['Hitso\Bundle\CommonBundle\Twig\MediaUrlExtension']->validUrl(twig_get_attribute($this->env$this->source, (isset($context["element"]) || array_key_exists("element"$context) ? $context["element"] : (function () { throw new RuntimeError('Variable "element" does not exist.'3$this->source); })()), "image", [], "any"falsefalsefalse3))) {
  41.             // line 4
  42.             echo "            <picture class=\"article__photo-picture\">
  43.                 ";
  44.             // line 5
  45.             $context["imageUrl"] = $this->extensions['Hitso\Bundle\CommonBundle\Twig\MediaUrlExtension']->imageUrl(twig_get_attribute($this->env$this->source, (isset($context["element"]) || array_key_exists("element"$context) ? $context["element"] : (function () { throw new RuntimeError('Variable "element" does not exist.'5$this->source); })()), "image", [], "any"falsefalsefalse5), "content_image");
  46.             // line 6
  47.             echo "                <source media=\"(max-width: 360px)\" srcset=\"";
  48.             echo twig_escape_filter($this->env$this->extensions['Hitso\Bundle\CommonBundle\Twig\MediaUrlExtension']->imageUrl(twig_get_attribute($this->env$this->source, (isset($context["element"]) || array_key_exists("element"$context) ? $context["element"] : (function () { throw new RuntimeError('Variable "element" does not exist.'6$this->source); })()), "image", [], "any"falsefalsefalse6), "content_image_small"), "html"nulltrue);
  49.             echo "\">
  50.                 <source media=\"(max-width: 760px)\" srcset=\"";
  51.             // line 7
  52.             echo twig_escape_filter($this->env$this->extensions['Hitso\Bundle\CommonBundle\Twig\MediaUrlExtension']->imageUrl(twig_get_attribute($this->env$this->source, (isset($context["element"]) || array_key_exists("element"$context) ? $context["element"] : (function () { throw new RuntimeError('Variable "element" does not exist.'7$this->source); })()), "image", [], "any"falsefalsefalse7), "content_image_medium"), "html"nulltrue);
  53.             echo "\">
  54.                 <source media=\"(max-width: 1024px)\" srcset=\"";
  55.             // line 8
  56.             echo twig_escape_filter($this->env$this->extensions['Hitso\Bundle\CommonBundle\Twig\MediaUrlExtension']->imageUrl(twig_get_attribute($this->env$this->source, (isset($context["element"]) || array_key_exists("element"$context) ? $context["element"] : (function () { throw new RuntimeError('Variable "element" does not exist.'8$this->source); })()), "image", [], "any"falsefalsefalse8), "content_image_large"), "html"nulltrue);
  57.             echo "\">
  58.                 ";
  59.             // line 9
  60.             if (twig_get_attribute($this->env$this->source, (isset($context["element"]) || array_key_exists("element"$context) ? $context["element"] : (function () { throw new RuntimeError('Variable "element" does not exist.'9$this->source); })()), "link", [], "any"falsefalsefalse9)) {
  61.                 // line 10
  62.                 echo "                <a href=\"";
  63.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["element"]) || array_key_exists("element"$context) ? $context["element"] : (function () { throw new RuntimeError('Variable "element" does not exist.'10$this->source); })()), "link", [], "any"falsefalsefalse10), "html"nulltrue);
  64.                 echo "\" target=\"_blank\">
  65.                     ";
  66.             }
  67.             // line 12
  68.             echo "                    <img class=\"article__image__image\" src=\"";
  69.             echo twig_escape_filter($this->env, (isset($context["imageUrl"]) || array_key_exists("imageUrl"$context) ? $context["imageUrl"] : (function () { throw new RuntimeError('Variable "imageUrl" does not exist.'12$this->source); })()), "html"nulltrue);
  70.             echo "\" title=\"";
  71.             echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, ($context["element"] ?? null), "title", [], "any"truetruefalse12)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["element"] ?? null), "title", [], "any"falsefalsefalse12))) : ("")), "html"nulltrue);
  72.             echo "\"
  73.                          alt=\"";
  74.             // line 13
  75.             echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, ($context["element"] ?? null), "alt", [], "any"truetruefalse13)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["element"] ?? null), "alt", [], "any"falsefalsefalse13))) : ("")), "html"nulltrue);
  76.             echo "\"/>
  77.                     ";
  78.             // line 14
  79.             if (twig_get_attribute($this->env$this->source, (isset($context["element"]) || array_key_exists("element"$context) ? $context["element"] : (function () { throw new RuntimeError('Variable "element" does not exist.'14$this->source); })()), "link", [], "any"falsefalsefalse14)) {
  80.                 // line 15
  81.                 echo "                </a>
  82.                 ";
  83.             }
  84.             // line 17
  85.             echo "            </picture>
  86.         ";
  87.         }
  88.         // line 19
  89.         echo "    </div>
  90. </div>";
  91.         
  92.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
  93.         
  94.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  95.         
  96.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  97.     }
  98.     public function getTemplateName()
  99.     {
  100.         return "HitsoContentBundle:Front/Article/Elements:image.html.twig";
  101.     }
  102.     public function isTraitable()
  103.     {
  104.         return false;
  105.     }
  106.     public function getDebugInfo()
  107.     {
  108.         return array (  99 => 19,  95 => 17,  91 => 15,  89 => 14,  85 => 13,  78 => 12,  72 => 10,  70 => 9,  66 => 8,  62 => 7,  57 => 6,  55 => 5,  52 => 4,  50 => 3,  46 => 1,);
  109.     }
  110.     public function getSourceContext()
  111.     {
  112.         return new Source("<div class=\"article__image\">
  113.     <div class=\"article__image__inner\">
  114.         {% if element.image|valid_url %}
  115.             <picture class=\"article__photo-picture\">
  116.                 {% set imageUrl = element.image|image_url('content_image') %}
  117.                 <source media=\"(max-width: 360px)\" srcset=\"{{ element.image|image_url('content_image_small') }}\">
  118.                 <source media=\"(max-width: 760px)\" srcset=\"{{ element.image|image_url('content_image_medium') }}\">
  119.                 <source media=\"(max-width: 1024px)\" srcset=\"{{ element.image|image_url('content_image_large') }}\">
  120.                 {% if element.link %}
  121.                 <a href=\"{{ element.link }}\" target=\"_blank\">
  122.                     {% endif %}
  123.                     <img class=\"article__image__image\" src=\"{{ imageUrl }}\" title=\"{{ element.title|default }}\"
  124.                          alt=\"{{ element.alt|default }}\"/>
  125.                     {% if element.link %}
  126.                 </a>
  127.                 {% endif %}
  128.             </picture>
  129.         {% endif %}
  130.     </div>
  131. </div>""HitsoContentBundle:Front/Article/Elements:image.html.twig""/var/www/html/stage.hartmann-tresore.pl/releases/71/src/Hitso/Bundle/ContentBundle/Resources/views/Front/Article/Elements/image.html.twig");
  132.     }
  133. }