var/cache/dev/twig/8f/8f31a09384f5c461de53e373751466ce.php line 50

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. /* pages/blog.html.twig */
  14. class __TwigTemplate_88e493d42d120e8c6d5128b41097aa91 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->blocks = [
  23.             'css' => [$this'block_css'],
  24.             'content' => [$this'block_content'],
  25.             'js' => [$this'block_js'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "base.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""pages/blog.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""pages/blog.html.twig"));
  40.         $this->parent $this->loadTemplate("base.html.twig""pages/blog.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 2
  48.     public function block_css($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""css"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""css"));
  55.         // line 3
  56.         echo "    ";
  57.         $this->displayParentBlock("css"$context$blocks);
  58.         echo "
  59.     <style>
  60.     </style>
  61. ";
  62.         
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  64.         
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  66.     }
  67.     // line 9
  68.     public function block_content($context, array $blocks = [])
  69.     {
  70.         $macros $this->macros;
  71.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  72.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  73.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  74.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  75.         // line 10
  76.         echo "
  77.     <section id=\"page-content\" class=\"sidebar-right\">
  78.         <div class=\"container\">
  79.             <div class=\"row\">
  80.                 <div class=\"content col-lg-9\">
  81.                     <div id=\"blog\" class=\"single-post\">
  82.                         <div class=\"post-item\">
  83.                             <div class=\"post-item-wrap\">
  84.                                 <div class=\"post-image\">
  85.                                     <a href=\"\">
  86.                                         <img alt=\"";
  87.         // line 23
  88.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'23$this->source); })()), "altDescription", [], "any"falsefalsefalse23), "html"nulltrue);
  89.         echo "\" ";
  90.         echo $this->extensions['App\Twig\ImageRenderExtension']->generateSrc($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("images/upload/" twig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'23$this->source); })()), "image", [], "any"falsefalsefalse23))));
  91.         echo ">
  92.                                     </a>
  93.                                 </div>
  94.                                 <div class=\"post-item-description\">
  95.                                     <h2>";
  96.         // line 27
  97.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'27$this->source); })()), "titre", [], "any"falsefalsefalse27), "html"nulltrue);
  98.         echo "</h2>
  99.                                     <div class=\"post-meta\">
  100.                                         <span class=\"post-meta-date\"><i class=\"fa fa-calendar-o\"></i>";
  101.         // line 29
  102.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'29$this->source); })()), "date", [], "any"falsefalsefalse29), "d M Y"), "html"nulltrue);
  103.         echo "</span>
  104.                                     </div>
  105.                                     <div class=\"blog-content\">
  106.                                         <div>";
  107.         // line 32
  108.         echo twig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'32$this->source); })()), "displayContent", [], "any"falsefalsefalse32);
  109.         echo "</div>
  110.                                     </div>
  111.                                 </div>
  112.                                 <div class=\"post-navigation\">
  113.                                     ";
  114.         // line 36
  115.         if ( !(null === (isset($context["previousBlog"]) || array_key_exists("previousBlog"$context) ? $context["previousBlog"] : (function () { throw new RuntimeError('Variable "previousBlog" does not exist.'36$this->source); })()))) {
  116.             // line 37
  117.             echo "                                    <a href=\"";
  118.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog", ["id" => twig_get_attribute($this->env$this->source, (isset($context["previousBlog"]) || array_key_exists("previousBlog"$context) ? $context["previousBlog"] : (function () { throw new RuntimeError('Variable "previousBlog" does not exist.'37$this->source); })()), "id", [], "any"falsefalsefalse37)]), "html"nulltrue);
  119.             echo "\" class=\"post-prev\">
  120.                                         <div class=\"post-prev-title\"><span>";
  121.             // line 38
  122.             echo $this->extensions['App\Twig\TransExtension']->trans("blogs.previous");
  123.             echo "</span>";
  124.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["previousBlog"]) || array_key_exists("previousBlog"$context) ? $context["previousBlog"] : (function () { throw new RuntimeError('Variable "previousBlog" does not exist.'38$this->source); })()), "titre", [], "any"falsefalsefalse38), "html"nulltrue);
  125.             echo "</div>
  126.                                     </a>
  127.                                     ";
  128.         }
  129.         // line 41
  130.         echo "                                    <a href=\"";
  131.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blogs");
  132.         echo "\" class=\"post-all\">
  133.                                         <i class=\"icon-grid\"> </i>
  134.                                     </a>
  135.                                     ";
  136.         // line 44
  137.         if ( !(null === (isset($context["nextBlog"]) || array_key_exists("nextBlog"$context) ? $context["nextBlog"] : (function () { throw new RuntimeError('Variable "nextBlog" does not exist.'44$this->source); })()))) {
  138.             // line 45
  139.             echo "                                    <a href=\"";
  140.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog", ["id" => twig_get_attribute($this->env$this->source, (isset($context["nextBlog"]) || array_key_exists("nextBlog"$context) ? $context["nextBlog"] : (function () { throw new RuntimeError('Variable "nextBlog" does not exist.'45$this->source); })()), "id", [], "any"falsefalsefalse45)]), "html"nulltrue);
  141.             echo "\" class=\"post-next\">
  142.                                         <div class=\"post-next-title\"><span>";
  143.             // line 46
  144.             echo $this->extensions['App\Twig\TransExtension']->trans("blogs.next");
  145.             echo "</span>";
  146.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["nextBlog"]) || array_key_exists("nextBlog"$context) ? $context["nextBlog"] : (function () { throw new RuntimeError('Variable "nextBlog" does not exist.'46$this->source); })()), "titre", [], "any"falsefalsefalse46), "html"nulltrue);
  147.             echo "</div>
  148.                                     </a>
  149.                                     ";
  150.         }
  151.         // line 49
  152.         echo "                                </div>
  153.                             </div>
  154.                         </div>
  155.                     </div>
  156.                 </div>
  157.                 <div class=\"sidebar sticky-sidebar col-lg-3\">
  158.                     <div class=\"widget\">
  159.                         <h2 class=\"widget-title\">";
  160.         // line 61
  161.         echo $this->extensions['App\Twig\TransExtension']->trans("blog.other");
  162.         echo "</h2>
  163.                         <div class=\"post-thumbnail-list\">
  164.                             ";
  165.         // line 63
  166.         $context['_parent'] = $context;
  167.         $context['_seq'] = twig_ensure_traversable((isset($context["otherBlogs"]) || array_key_exists("otherBlogs"$context) ? $context["otherBlogs"] : (function () { throw new RuntimeError('Variable "otherBlogs" does not exist.'63$this->source); })()));
  168.         foreach ($context['_seq'] as $context["_key"] => $context["blog"]) {
  169.             // line 64
  170.             echo "                                <div class=\"post-thumbnail-entry\">
  171.                                     <img alt=\"";
  172.             // line 65
  173.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["blog"], "altDescription", [], "any"falsefalsefalse65), "html"nulltrue);
  174.             echo "\" ";
  175.             echo $this->extensions['App\Twig\ImageRenderExtension']->generateSrc($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("images/upload/" twig_get_attribute($this->env$this->source$context["blog"], "image", [], "any"falsefalsefalse65))));
  176.             echo ">
  177.                                     <div class=\"post-thumbnail-content\">
  178.                                         <a href=\"";
  179.             // line 67
  180.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog", ["id" => twig_get_attribute($this->env$this->source$context["blog"], "id", [], "any"falsefalsefalse67)]), "html"nulltrue);
  181.             echo "\">";
  182.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["blog"], "titre", [], "any"falsefalsefalse67), "html"nulltrue);
  183.             echo "</a>
  184.                                         <span class=\"post-date\"><i class=\"fa fa-calendar-o\"></i>";
  185.             // line 68
  186.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["blog"], "date", [], "any"falsefalsefalse68), "d M Y"), "html"nulltrue);
  187.             echo "</span>
  188.                                     </div>
  189.                                 </div>
  190.                             ";
  191.         }
  192.         $_parent $context['_parent'];
  193.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['blog'], $context['_parent'], $context['loop']);
  194.         $context array_intersect_key($context$_parent) + $_parent;
  195.         // line 72
  196.         echo "
  197.                         </div>
  198.                     </div>
  199.                 </div>
  200.             </div>
  201.         </div>
  202.     </section>
  203. ";
  204.         
  205.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  206.         
  207.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  208.     }
  209.     // line 82
  210.     public function block_js($context, array $blocks = [])
  211.     {
  212.         $macros $this->macros;
  213.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  214.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""js"));
  215.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  216.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""js"));
  217.         // line 83
  218.         echo "        ";
  219.         $this->displayParentBlock("js"$context$blocks);
  220.         echo "
  221.     ";
  222.         
  223.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  224.         
  225.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  226.     }
  227.     public function getTemplateName()
  228.     {
  229.         return "pages/blog.html.twig";
  230.     }
  231.     public function isTraitable()
  232.     {
  233.         return false;
  234.     }
  235.     public function getDebugInfo()
  236.     {
  237.         return array (  253 => 83,  243 => 82,  225 => 72,  215 => 68,  209 => 67,  202 => 65,  199 => 64,  195 => 63,  190 => 61,  176 => 49,  168 => 46,  163 => 45,  161 => 44,  154 => 41,  146 => 38,  141 => 37,  139 => 36,  132 => 32,  126 => 29,  121 => 27,  112 => 23,  97 => 10,  87 => 9,  70 => 3,  60 => 2,  37 => 1,);
  238.     }
  239.     public function getSourceContext()
  240.     {
  241.         return new Source("{% extends 'base.html.twig' %}
  242. {% block css %}
  243.     {{ parent() }}
  244.     <style>
  245.     </style>
  246. {% endblock %}
  247. {% block content %}
  248.     <section id=\"page-content\" class=\"sidebar-right\">
  249.         <div class=\"container\">
  250.             <div class=\"row\">
  251.                 <div class=\"content col-lg-9\">
  252.                     <div id=\"blog\" class=\"single-post\">
  253.                         <div class=\"post-item\">
  254.                             <div class=\"post-item-wrap\">
  255.                                 <div class=\"post-image\">
  256.                                     <a href=\"\">
  257.                                         <img alt=\"{{ blog.altDescription }}\" {{ responsive_src(asset('images/upload/' ~ blog.image)) | raw }}>
  258.                                     </a>
  259.                                 </div>
  260.                                 <div class=\"post-item-description\">
  261.                                     <h2>{{ blog.titre }}</h2>
  262.                                     <div class=\"post-meta\">
  263.                                         <span class=\"post-meta-date\"><i class=\"fa fa-calendar-o\"></i>{{ blog.date | date('d M Y') }}</span>
  264.                                     </div>
  265.                                     <div class=\"blog-content\">
  266.                                         <div>{{ blog.displayContent | raw }}</div>
  267.                                     </div>
  268.                                 </div>
  269.                                 <div class=\"post-navigation\">
  270.                                     {% if previousBlog is not null %}
  271.                                     <a href=\"{{ path('blog',{'id' : previousBlog.id}) }}\" class=\"post-prev\">
  272.                                         <div class=\"post-prev-title\"><span>{{ 'blogs.previous' | admintrans | raw }}</span>{{ previousBlog.titre }}</div>
  273.                                     </a>
  274.                                     {% endif %}
  275.                                     <a href=\"{{ path('blogs') }}\" class=\"post-all\">
  276.                                         <i class=\"icon-grid\"> </i>
  277.                                     </a>
  278.                                     {% if nextBlog is not null %}
  279.                                     <a href=\"{{ path('blog',{'id' : nextBlog.id}) }}\" class=\"post-next\">
  280.                                         <div class=\"post-next-title\"><span>{{ 'blogs.next' | admintrans | raw }}</span>{{ nextBlog.titre }}</div>
  281.                                     </a>
  282.                                     {% endif %}
  283.                                 </div>
  284.                             </div>
  285.                         </div>
  286.                     </div>
  287.                 </div>
  288.                 <div class=\"sidebar sticky-sidebar col-lg-3\">
  289.                     <div class=\"widget\">
  290.                         <h2 class=\"widget-title\">{{ 'blog.other' | admintrans | raw }}</h2>
  291.                         <div class=\"post-thumbnail-list\">
  292.                             {% for blog in otherBlogs %}
  293.                                 <div class=\"post-thumbnail-entry\">
  294.                                     <img alt=\"{{ blog.altDescription }}\" {{ responsive_src(asset('images/upload/' ~ blog.image)) | raw }}>
  295.                                     <div class=\"post-thumbnail-content\">
  296.                                         <a href=\"{{ path('blog',{'id' : blog.id}) }}\">{{ blog.titre }}</a>
  297.                                         <span class=\"post-date\"><i class=\"fa fa-calendar-o\"></i>{{ blog.date | date('d M Y') }}</span>
  298.                                     </div>
  299.                                 </div>
  300.                             {% endfor %}
  301.                         </div>
  302.                     </div>
  303.                 </div>
  304.             </div>
  305.         </div>
  306.     </section>
  307. {% endblock %}
  308.     {% block js  %}
  309.         {{ parent() }}
  310.     {% endblock %}
  311. ""pages/blog.html.twig""/var/www/vhosts/bsbroyalconstruction.fr/spidertec.fr/httpdocs/templates/pages/blog.html.twig");
  312.     }
  313. }