var/cache/dev/twig/00/00908e8fa7cf16afbe89c6826bf0fce7694512bfb40b273faa1580388700c616.php line 46

Open in your IDE?
  1. <?php
  2. /* blog/index.xml.twig */
  3. class __TwigTemplate_db182cd86eb862eb4326ac1cb8ac5e1eff1ece6948935796e9170f78dc67cdbc extends Twig_Template
  4. {
  5.     private $source;
  6.     public function __construct(Twig_Environment $env)
  7.     {
  8.         parent::__construct($env);
  9.         $this->source $this->getSourceContext();
  10.         $this->parent false;
  11.         $this->blocks = [
  12.         ];
  13.     }
  14.     protected function doDisplay(array $context, array $blocks = [])
  15.     {
  16.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  17.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template""blog/index.xml.twig"));
  18.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  19.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template""blog/index.xml.twig"));
  20.         // line 1
  21.         echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>
  22. <rss version=\"2.0\">
  23.     <channel>
  24.         <title>";
  25.         // line 4
  26.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("rss.title"), "html"nulltrue);
  27.         echo "</title>
  28.         <description>";
  29.         // line 5
  30.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("rss.description"), "html"nulltrue);
  31.         echo "</description>
  32.         <pubDate>";
  33.         // line 6
  34.         echo twig_escape_filter($this->envtwig_date_format_filter($this->env"now""r""GMT"), "html"nulltrue);
  35.         echo "</pubDate>
  36.         <lastBuildDate>";
  37.         // line 7
  38.         echo twig_escape_filter($this->envtwig_date_format_filter($this->env, ((twig_get_attribute($this->env$this->sourcetwig_last($this->env, (isset($context["posts"]) || array_key_exists("posts"$context) ? $context["posts"] : (function () { throw new Twig_Error_Runtime('Variable "posts" does not exist.'7$this->source); })())), "publishedAt", [], "any"truetrue)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_last($this->env, (isset($context["posts"]) || array_key_exists("posts"$context) ? $context["posts"] : (function () { throw new Twig_Error_Runtime('Variable "posts" does not exist.'7$this->source); })())), "publishedAt", []), "now")) : ("now")), "r""GMT"), "html"nulltrue);
  39.         echo "</lastBuildDate>
  40.         <link>";
  41.         // line 8
  42.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("blog_index");
  43.         echo "</link>
  44.         <language>";
  45.         // line 9
  46.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new Twig_Error_Runtime('Variable "app" does not exist.'9$this->source); })()), "request", []), "locale", []), "html"nulltrue);
  47.         echo "</language>
  48.         ";
  49.         // line 11
  50.         $context['_parent'] = $context;
  51.         $context['_seq'] = twig_ensure_traversable((isset($context["posts"]) || array_key_exists("posts"$context) ? $context["posts"] : (function () { throw new Twig_Error_Runtime('Variable "posts" does not exist.'11$this->source); })()));
  52.         foreach ($context['_seq'] as $context["_key"] => $context["post"]) {
  53.             // line 12
  54.             echo "            <item>
  55.                 <title>";
  56.             // line 13
  57.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["post"], "title", []), "html"nulltrue);
  58.             echo "</title>
  59.                 <description>";
  60.             // line 14
  61.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["post"], "summary", []), "html"nulltrue);
  62.             echo "</description>
  63.                 <link>";
  64.             // line 15
  65.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("blog_post", ["slug" => twig_get_attribute($this->env$this->source$context["post"], "slug", [])]), "html"nulltrue);
  66.             echo "</link>
  67.                 <guid>";
  68.             // line 16
  69.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("blog_post", ["slug" => twig_get_attribute($this->env$this->source$context["post"], "slug", [])]), "html"nulltrue);
  70.             echo "</guid>
  71.                 <pubDate>";
  72.             // line 17
  73.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["post"], "publishedAt", []), "r""GMT"), "html"nulltrue);
  74.             echo "</pubDate>
  75.                 <author>";
  76.             // line 18
  77.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["post"], "author", []), "email", []), "html"nulltrue);
  78.             echo "</author>
  79.                 ";
  80.             // line 19
  81.             $context['_parent'] = $context;
  82.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["post"], "tags", []));
  83.             foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
  84.                 // line 20
  85.                 echo "                    <category>";
  86.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["tag"], "name", []), "html"nulltrue);
  87.                 echo "</category>
  88.                 ";
  89.             }
  90.             $_parent $context['_parent'];
  91.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
  92.             $context array_intersect_key($context$_parent) + $_parent;
  93.             // line 22
  94.             echo "            </item>
  95.         ";
  96.         }
  97.         $_parent $context['_parent'];
  98.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['post'], $context['_parent'], $context['loop']);
  99.         $context array_intersect_key($context$_parent) + $_parent;
  100.         // line 24
  101.         echo "    </channel>
  102. </rss>
  103. ";
  104.         
  105.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  106.         
  107.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  108.     }
  109.     public function getTemplateName()
  110.     {
  111.         return "blog/index.xml.twig";
  112.     }
  113.     public function isTraitable()
  114.     {
  115.         return false;
  116.     }
  117.     public function getDebugInfo()
  118.     {
  119.         return array (  110 => 24,  103 => 22,  94 => 20,  90 => 19,  86 => 18,  82 => 17,  78 => 16,  74 => 15,  70 => 14,  66 => 13,  63 => 12,  59 => 11,  54 => 9,  50 => 8,  46 => 7,  42 => 6,  38 => 5,  34 => 4,  29 => 1,);
  120.     }
  121.     public function getSourceContext()
  122.     {
  123.         return new Twig_Source("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>
  124. <rss version=\"2.0\">
  125.     <channel>
  126.         <title>{{ 'rss.title'|trans }}</title>
  127.         <description>{{ 'rss.description'|trans }}</description>
  128.         <pubDate>{{ 'now'|date('r', timezone='GMT') }}</pubDate>
  129.         <lastBuildDate>{{ (posts|last).publishedAt|default('now')|date('r', timezone='GMT') }}</lastBuildDate>
  130.         <link>{{ url('blog_index') }}</link>
  131.         <language>{{ app.request.locale }}</language>
  132.         {% for post in posts %}
  133.             <item>
  134.                 <title>{{ post.title }}</title>
  135.                 <description>{{ post.summary }}</description>
  136.                 <link>{{ url('blog_post', {'slug': post.slug}) }}</link>
  137.                 <guid>{{ url('blog_post', {'slug': post.slug}) }}</guid>
  138.                 <pubDate>{{ post.publishedAt|date(format='r', timezone='GMT') }}</pubDate>
  139.                 <author>{{ post.author.email }}</author>
  140.                 {% for tag in post.tags %}
  141.                     <category>{{ tag.name }}</category>
  142.                 {% endfor %}
  143.             </item>
  144.         {% endfor %}
  145.     </channel>
  146. </rss>
  147. ""blog/index.xml.twig""/var/www/html/templates/blog/index.xml.twig");
  148.     }
  149. }