var/cache/dev/twig/1c/1c151b67582b1db4b24805cb08f58f1f.php line 33

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. /* news/content/NewsLinks.html.twig */
  14. class __TwigTemplate_a765b5069958398f9a38887bbd694a2b 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_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""news/content/NewsLinks.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""news/content/NewsLinks.html.twig"));
  33.         // line 1
  34.         if (twig_get_attribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'1$this->source); })()), "links", [], "any"falsefalsefalse1)) {
  35.             // line 2
  36.             echo "    <div class=\"row mt-5\">
  37.         ";
  38.             // line 3
  39.             if (twig_get_attribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'3$this->source); })()), "title", [], "any"falsefalsefalse3)) {
  40.                 // line 4
  41.                 echo "            <h6 class=\"col-12\">";
  42.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'4$this->source); })()), "title", [], "any"falsefalsefalse4), "html"nulltrue);
  43.                 echo "</h6>
  44.         ";
  45.             }
  46.             // line 6
  47.             echo "
  48.         <div class=\"col-12\">
  49.             <ul class=\"list-group\">
  50.                 ";
  51.             // line 10
  52.             $context['_parent'] = $context;
  53.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'10$this->source); })()), "links", [], "any"falsefalsefalse10));
  54.             foreach ($context['_seq'] as $context["_key"] => $context["linkBlock"]) {
  55.                 // line 11
  56.                 echo "
  57.                     <li class=\"list-group-item\">";
  58.                 // line 12
  59.                 echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["linkBlock"], "link", [], "any"falsefalsefalse12), "data", [], "any"falsefalsefalse12);
  60.                 echo "</li>
  61.                 ";
  62.             }
  63.             $_parent $context['_parent'];
  64.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['linkBlock'], $context['_parent'], $context['loop']);
  65.             $context array_intersect_key($context$_parent) + $_parent;
  66.             // line 15
  67.             echo "
  68.             </ul>
  69.         </div>
  70.     </div>
  71. ";
  72.         }
  73.         
  74.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  75.         
  76.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  77.     }
  78.     public function getTemplateName()
  79.     {
  80.         return "news/content/NewsLinks.html.twig";
  81.     }
  82.     public function isTraitable()
  83.     {
  84.         return false;
  85.     }
  86.     public function getDebugInfo()
  87.     {
  88.         return array (  78 => 15,  69 => 12,  66 => 11,  62 => 10,  56 => 6,  50 => 4,  48 => 3,  45 => 2,  43 => 1,);
  89.     }
  90.     public function getSourceContext()
  91.     {
  92.         return new Source("{% if item.links %}
  93.     <div class=\"row mt-5\">
  94.         {% if item.title %}
  95.             <h6 class=\"col-12\">{{ item.title }}</h6>
  96.         {% endif %}
  97.         <div class=\"col-12\">
  98.             <ul class=\"list-group\">
  99.                 {% for linkBlock in item.links %}
  100.                     <li class=\"list-group-item\">{{ linkBlock.link.data | raw }}</li>
  101.                 {% endfor %}
  102.             </ul>
  103.         </div>
  104.     </div>
  105. {% endif %}
  106. ""news/content/NewsLinks.html.twig""/home/pimcore/pim10cars/templates/news/content/NewsLinks.html.twig");
  107.     }
  108. }