var/cache/dev/twig/30/307afbdb264beb4b599088aaeba793bf.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/blogs.html.twig */
  14. class __TwigTemplate_5c54f02abdbb7b228c4d1d6254c7a02e 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/blogs.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/blogs.html.twig"));
  40.         $this->parent $this->loadTemplate("base.html.twig""pages/blogs.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 "    <section id=\"page-title\" class=\"text-light\" ";
  77.         echo $this->extensions['App\Twig\ImageRenderExtension']->generateBackground($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("websiteImage/blog.jpg"), "background-size: cover; background-position: center center;"true);
  78.         echo ">
  79.         <div class=\"bg-overlay\"></div>
  80.         <div class=\"container\">
  81.             <div class=\"page-title\">
  82.                 <h1>";
  83.         // line 14
  84.         echo $this->extensions['App\Twig\TransExtension']->trans("blogs.title");
  85.         echo "</h1>
  86.                 ";
  87.         // line 15
  88.         if (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["generalS"]) || array_key_exists("generalS"$context) ? $context["generalS"] : (function () { throw new RuntimeError('Variable "generalS" does not exist.'15$this->source); })()), "imageAccueil", [], "any"falsefalsefalse15), "texteBlogs", [], "any"falsefalsefalse15) != null) || (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["generalS"]) || array_key_exists("generalS"$context) ? $context["generalS"] : (function () { throw new RuntimeError('Variable "generalS" does not exist.'15$this->source); })()), "imageAccueil", [], "any"falsefalsefalse15), "texteBlogs", [], "any"falsefalsefalse15) != ""))) {
  89.             echo "<p class=\"slider-text\"> ";
  90.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["generalS"]) || array_key_exists("generalS"$context) ? $context["generalS"] : (function () { throw new RuntimeError('Variable "generalS" does not exist.'15$this->source); })()), "imageAccueil", [], "any"falsefalsefalse15), "texteBlogs", [], "any"falsefalsefalse15), "html"nulltrue);
  91.             echo "</p>";
  92.         }
  93.         // line 16
  94.         echo "
  95.             </div>
  96.         </div>
  97.     </section>
  98.     <section id=\"page-content\">
  99.         <div class=\"container\">
  100.             <div id=\"blog\" class=\"grid-layout post-3-columns m-b-30\" data-item=\"post-item\">
  101.                 ";
  102.         // line 26
  103.         $context['_parent'] = $context;
  104.         $context['_seq'] = twig_ensure_traversable((isset($context["blogs"]) || array_key_exists("blogs"$context) ? $context["blogs"] : (function () { throw new RuntimeError('Variable "blogs" does not exist.'26$this->source); })()));
  105.         foreach ($context['_seq'] as $context["_key"] => $context["blog"]) {
  106.             // line 27
  107.             echo "                <div class=\"post-item border\">
  108.                     <div class=\"post-item-wrap\">
  109.                         <div class=\"post-image\"> <a href=\"";
  110.             // line 29
  111.             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"falsefalsefalse29)]), "html"nulltrue);
  112.             echo "\"> <img alt=\"";
  113.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["blog"], "altDescription", [], "any"falsefalsefalse29), "html"nulltrue);
  114.             echo "\" ";
  115.             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"falsefalsefalse29))));
  116.             echo "> </a></div>
  117.                         <div class=\"post-item-description\"> <span class=\"post-meta-date\"><i class=\"fa fa-calendar-o\"></i>";
  118.             // line 30
  119.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["blog"], "date", [], "any"falsefalsefalse30), "d M Y"), "html"nulltrue);
  120.             echo "</span>
  121.                             <h2><a href=\"";
  122.             // line 31
  123.             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"falsefalsefalse31)]), "html"nulltrue);
  124.             echo "\">";
  125.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["blog"], "titre", [], "any"falsefalsefalse31), "html"nulltrue);
  126.             echo "</a></h2>
  127.                             <div> ";
  128.             // line 32
  129.             echo twig_get_attribute($this->env$this->source$this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_striptags(twig_get_attribute($this->env$this->source$context["blog"], "displayContent", [], "any"falsefalsefalse32), "<strong><u><br><li><ul>")), "truncate", [=> 200=> "..."=> false], "method"falsefalsefalse32);
  130.             echo " </div>
  131.                             <a href=\"";
  132.             // line 33
  133.             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"falsefalsefalse33)]), "html"nulltrue);
  134.             echo "\" class=\"item-link\">";
  135.             echo $this->extensions['App\Twig\TransExtension']->trans("blogs.read_more");
  136.             echo " <i class=\"icon-chevron-right\"></i></a>
  137.                         </div>
  138.                     </div>
  139.                 </div>
  140.                 ";
  141.         }
  142.         $_parent $context['_parent'];
  143.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['blog'], $context['_parent'], $context['loop']);
  144.         $context array_intersect_key($context$_parent) + $_parent;
  145.         // line 38
  146.         echo "
  147.             </div>
  148.         </div>
  149.     </section>
  150. ";
  151.         
  152.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  153.         
  154.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  155.     }
  156.     // line 50
  157.     public function block_js($context, array $blocks = [])
  158.     {
  159.         $macros $this->macros;
  160.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  161.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""js"));
  162.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  163.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""js"));
  164.         // line 51
  165.         echo "        ";
  166.         $this->displayParentBlock("js"$context$blocks);
  167.         echo "
  168.     ";
  169.         
  170.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  171.         
  172.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  173.     }
  174.     public function getTemplateName()
  175.     {
  176.         return "pages/blogs.html.twig";
  177.     }
  178.     public function isTraitable()
  179.     {
  180.         return false;
  181.     }
  182.     public function getDebugInfo()
  183.     {
  184.         return array (  200 => 51,  190 => 50,  170 => 38,  157 => 33,  153 => 32,  147 => 31,  143 => 30,  135 => 29,  131 => 27,  127 => 26,  115 => 16,  109 => 15,  105 => 14,  97 => 10,  87 => 9,  70 => 3,  60 => 2,  37 => 1,);
  185.     }
  186.     public function getSourceContext()
  187.     {
  188.         return new Source("{% extends 'base.html.twig' %}
  189. {% block css %}
  190.     {{ parent() }}
  191.     <style>
  192.     </style>
  193. {% endblock %}
  194. {% block content %}
  195.     <section id=\"page-title\" class=\"text-light\" {{ responsive_background( asset('websiteImage/blog.jpg'),\"background-size: cover; background-position: center center;\",true ) | raw }}>
  196.         <div class=\"bg-overlay\"></div>
  197.         <div class=\"container\">
  198.             <div class=\"page-title\">
  199.                 <h1>{{ 'blogs.title' | admintrans | raw }}</h1>
  200.                 {% if generalS.imageAccueil.texteBlogs != null or generalS.imageAccueil.texteBlogs != '' %}<p class=\"slider-text\"> {{ generalS.imageAccueil.texteBlogs }}</p>{% endif %}
  201.             </div>
  202.         </div>
  203.     </section>
  204.     <section id=\"page-content\">
  205.         <div class=\"container\">
  206.             <div id=\"blog\" class=\"grid-layout post-3-columns m-b-30\" data-item=\"post-item\">
  207.                 {% for blog in blogs %}
  208.                 <div class=\"post-item border\">
  209.                     <div class=\"post-item-wrap\">
  210.                         <div class=\"post-image\"> <a href=\"{{ path('blog',{'id' : blog.id}) }}\"> <img alt=\"{{ blog.altDescription }}\" {{ responsive_src(asset('images/upload/' ~ blog.image)) | raw }}> </a></div>
  211.                         <div class=\"post-item-description\"> <span class=\"post-meta-date\"><i class=\"fa fa-calendar-o\"></i>{{ blog.date | date('d M Y') }}</span>
  212.                             <h2><a href=\"{{ path('blog',{'id' : blog.id}) }}\">{{ blog.titre }}</a></h2>
  213.                             <div> {{ blog.displayContent | striptags('<strong><u><br><li><ul>') | u.truncate( 200, '...', false)  | raw }} </div>
  214.                             <a href=\"{{ path('blog',{'id' : blog.id}) }}\" class=\"item-link\">{{ 'blogs.read_more' | admintrans | raw }} <i class=\"icon-chevron-right\"></i></a>
  215.                         </div>
  216.                     </div>
  217.                 </div>
  218.                 {% endfor %}
  219.             </div>
  220.         </div>
  221.     </section>
  222. {% endblock %}
  223.     {% block js  %}
  224.         {{ parent() }}
  225.     {% endblock %}
  226. ""pages/blogs.html.twig""/var/www/vhosts/bsbroyalconstruction.fr/spidertec.fr/httpdocs/templates/pages/blogs.html.twig");
  227.     }
  228. }