<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* pages/blogs.html.twig */
class __TwigTemplate_5c54f02abdbb7b228c4d1d6254c7a02e extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'css' => [$this, 'block_css'],
'content' => [$this, 'block_content'],
'js' => [$this, 'block_js'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/blogs.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/blogs.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "pages/blogs.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 2
public function block_css($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "css"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "css"));
// line 3
echo " ";
$this->displayParentBlock("css", $context, $blocks);
echo "
<style>
</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 9
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 10
echo " <section id=\"page-title\" class=\"text-light\" ";
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);
echo ">
<div class=\"bg-overlay\"></div>
<div class=\"container\">
<div class=\"page-title\">
<h1>";
// line 14
echo $this->extensions['App\Twig\TransExtension']->trans("blogs.title");
echo "</h1>
";
// line 15
if (((twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 15), "texteBlogs", [], "any", false, false, false, 15) != null) || (twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 15), "texteBlogs", [], "any", false, false, false, 15) != ""))) {
echo "<p class=\"slider-text\"> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 15), "texteBlogs", [], "any", false, false, false, 15), "html", null, true);
echo "</p>";
}
// line 16
echo "
</div>
</div>
</section>
<section id=\"page-content\">
<div class=\"container\">
<div id=\"blog\" class=\"grid-layout post-3-columns m-b-30\" data-item=\"post-item\">
";
// line 26
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["blog"]) {
// line 27
echo " <div class=\"post-item border\">
<div class=\"post-item-wrap\">
<div class=\"post-image\"> <a href=\"";
// line 29
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", false, false, false, 29)]), "html", null, true);
echo "\"> <img alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["blog"], "altDescription", [], "any", false, false, false, 29), "html", null, true);
echo "\" ";
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", false, false, false, 29))));
echo "> </a></div>
<div class=\"post-item-description\"> <span class=\"post-meta-date\"><i class=\"fa fa-calendar-o\"></i>";
// line 30
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["blog"], "date", [], "any", false, false, false, 30), "d M Y"), "html", null, true);
echo "</span>
<h2><a href=\"";
// line 31
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", false, false, false, 31)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["blog"], "titre", [], "any", false, false, false, 31), "html", null, true);
echo "</a></h2>
<div> ";
// line 32
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", false, false, false, 32), "<strong><u><br><li><ul>")), "truncate", [0 => 200, 1 => "...", 2 => false], "method", false, false, false, 32);
echo " </div>
<a href=\"";
// line 33
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", false, false, false, 33)]), "html", null, true);
echo "\" class=\"item-link\">";
echo $this->extensions['App\Twig\TransExtension']->trans("blogs.read_more");
echo " <i class=\"icon-chevron-right\"></i></a>
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['blog'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 38
echo "
</div>
</div>
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 50
public function block_js($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "js"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "js"));
// line 51
echo " ";
$this->displayParentBlock("js", $context, $blocks);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "pages/blogs.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block css %}
{{ parent() }}
<style>
</style>
{% endblock %}
{% block content %}
<section id=\"page-title\" class=\"text-light\" {{ responsive_background( asset('websiteImage/blog.jpg'),\"background-size: cover; background-position: center center;\",true ) | raw }}>
<div class=\"bg-overlay\"></div>
<div class=\"container\">
<div class=\"page-title\">
<h1>{{ 'blogs.title' | admintrans | raw }}</h1>
{% if generalS.imageAccueil.texteBlogs != null or generalS.imageAccueil.texteBlogs != '' %}<p class=\"slider-text\"> {{ generalS.imageAccueil.texteBlogs }}</p>{% endif %}
</div>
</div>
</section>
<section id=\"page-content\">
<div class=\"container\">
<div id=\"blog\" class=\"grid-layout post-3-columns m-b-30\" data-item=\"post-item\">
{% for blog in blogs %}
<div class=\"post-item border\">
<div class=\"post-item-wrap\">
<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>
<div class=\"post-item-description\"> <span class=\"post-meta-date\"><i class=\"fa fa-calendar-o\"></i>{{ blog.date | date('d M Y') }}</span>
<h2><a href=\"{{ path('blog',{'id' : blog.id}) }}\">{{ blog.titre }}</a></h2>
<div> {{ blog.displayContent | striptags('<strong><u><br><li><ul>') | u.truncate( 200, '...', false) | raw }} </div>
<a href=\"{{ path('blog',{'id' : blog.id}) }}\" class=\"item-link\">{{ 'blogs.read_more' | admintrans | raw }} <i class=\"icon-chevron-right\"></i></a>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</section>
{% endblock %}
{% block js %}
{{ parent() }}
{% endblock %}
", "pages/blogs.html.twig", "/var/www/vhosts/bsbroyalconstruction.fr/spidertec.fr/httpdocs/templates/pages/blogs.html.twig");
}
}