<?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;
/* front/blog/by_category.html.twig */
class __TwigTemplate_9f17d204bc7e94bb0e00a7377b4b13edf75e1c3bbaaad430bcee6b22467f90d0 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/blog/by_category.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/blog/by_category.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "front/blog/by_category.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 3, $this->source); })()), "name", [], "any", false, false, false, 3), "html", null, true);
echo " | ";
$this->displayParentBlock("title", $context, $blocks);
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 6
echo "<div class=\"breadcrumbs-fs fl-wrap\">
<div class=\"container\">
<div class=\"breadcrumbs fl-wrap\">
<a href=\"";
// line 9
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_front_blog");
echo "\">Blog</a><span>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 9, $this->source); })()), "name", [], "any", false, false, false, 9), "html", null, true);
echo "</span>
</div>
</div>
</div>
<section class=\"grey-blue-bg small-padding\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-md-8\">
<div class=\"post-container fl-wrap\">
";
// line 18
if ((1 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["articles"]) || array_key_exists("articles", $context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.', 18, $this->source); })()), "totalItemCount", [], "any", false, false, false, 18), 0))) {
echo "
";
// line 19
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["articles"]) || array_key_exists("articles", $context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.', 19, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
// line 20
echo " <article class=\"post-article\">
<div class=\"title-devis\">
<span>";
// line 22
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["article"], "title", [], "any", false, false, false, 22), "html", null, true);
echo "</span>
</div>
<div class=\"list-single-main-media fl-wrap\">
<div class=\"single-slider-wrapper fl-wrap\">
<div class=\"single-slider fl-wrap\">
<div class=\"slick-slide-item\">
";
// line 29
if (twig_get_attribute($this->env, $this->source, $context["article"], "image", [], "any", false, false, false, 29)) {
// line 30
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("/uploads/files/articles/" . twig_get_attribute($this->env, $this->source, $context["article"], "image", [], "any", false, false, false, 30))), "806x250"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["article"], "title", [], "any", false, false, false, 30), "html", null, true);
echo "\">
";
} else {
// line 32
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("front/images/all/ryvup.jpeg"), "806x250"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["article"], "title", [], "any", false, false, false, 32), "html", null, true);
echo "\">
";
}
// line 34
echo " </div>
</div>
</div>
</div>
<div class=\"list-single-main-item fl-wrap\">
<p>
";
// line 40
if ((1 === twig_compare(twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["article"], "content", [], "any", false, false, false, 40)), 410))) {
// line 41
echo " ";
echo twig_slice($this->env, twig_get_attribute($this->env, $this->source, $context["article"], "content", [], "any", false, false, false, 41), 0, 410);
echo " ...
";
} else {
// line 43
echo " ";
echo twig_slice($this->env, twig_get_attribute($this->env, $this->source, $context["article"], "content", [], "any", false, false, false, 43), 0, 410);
echo "
";
}
// line 45
echo " </p>
<div class=\"post-opt\">
<ul>
<li><i class=\"fal fa-calendar\"></i> <span>";
// line 48
echo twig_escape_filter($this->env, $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, twig_get_attribute($this->env, $this->source, $context["article"], "createdAt", [], "any", false, false, false, 48), "medium", "medium", "dd MMMM YYYY", null, "gregorian", "fr"), "html", null, true);
echo "</span></li>
<li><i class=\"fal fa-share-alt\"></i> <span>RYVUP</span></li>
</ul>
</div>
";
// line 52
if ((1 === twig_compare(twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["article"], "content", [], "any", false, false, false, 52)), 410))) {
// line 53
echo " <span class=\"fw-separator\"></span>
<a href=\"";
// line 54
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_front_blog_read", ["cat_slug" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["article"], "category", [], "any", false, false, false, 54), "slug", [], "any", false, false, false, 54), "slug" => twig_get_attribute($this->env, $this->source, $context["article"], "slug", [], "any", false, false, false, 54)]), "html", null, true);
echo "\" class=\"btn float-btn color-bg\">Lire la suite<i class=\"fal fa-angle-right\"></i></a>
";
}
// line 56
echo " </div>
</article>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['article'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 59
echo " ";
}
// line 60
echo "
";
// line 61
echo $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["articles"]) || array_key_exists("articles", $context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.', 61, $this->source); })()));
echo "
</div>
</div>
<div class=\"col-md-4\">
<div class=\"box-widget-wrap fl-wrap fixed-bar\">
<div class=\"box-widget-item fl-wrap\">
<div class=\"box-widget\">
<div class=\"box-widget-content\">
<div class=\"box-widget-item-header mb-3\">
<h3> Demander un devis </h3>
</div>
<div class=\"text-left\">
<p>Location d'autocar, minibus, voiture privée et sanitaire avec chauffeur pour tous vos déplacements</p>
<p>Avec Ryvup, trouver votre transport sur mesure !</p>
</div>
<div class=\"text-left\">
<a href=\"";
// line 78
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_client_home");
echo "\" class=\"btn color2-bg mt-3\">
Devis immédiat
<i class=\"fal fa-angle-right\"></i>
</a>
</div>
</div>
</div>
</div>
<div class=\"box-widget-item fl-wrap\">
<div class=\"box-widget\">
<div class=\"box-widget-content\">
<div class=\"box-widget-item-header\">
<h3>Autres catégories</h3>
</div>
<ul class=\"cat-item\">
";
// line 94
$context["id"] = twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 94, $this->source); })()), "id", [], "any", false, false, false, 94);
// line 95
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["categories"]) || array_key_exists("categories", $context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.', 95, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 96
echo " ";
if ((0 !== twig_compare(twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 96), (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 96, $this->source); })())))) {
// line 97
echo " <li><a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_front_blog_by_category", ["slug" => twig_get_attribute($this->env, $this->source, $context["category"], "slug", [], "any", false, false, false, 97)]), "html", null, true);
echo "\" title=\"";
if ((1 === twig_compare(twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, false, 97)), 28))) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, false, 97), "html", null, true);
}
echo "\">";
if ((1 === twig_compare(twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, false, 97)), 28))) {
echo twig_escape_filter($this->env, twig_slice($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, false, 97), 0, 28), "html", null, true);
echo "...";
} else {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, false, 97), "html", null, true);
}
echo "</a> <span>";
echo twig_escape_filter($this->env, twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "articles", [], "any", false, false, false, 97)), "html", null, true);
echo "</span></li>
";
}
// line 99
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 100
echo " </ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "front/blog/by_category.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 283 => 100, 277 => 99, 258 => 97, 255 => 96, 250 => 95, 248 => 94, 229 => 78, 209 => 61, 206 => 60, 203 => 59, 195 => 56, 190 => 54, 187 => 53, 185 => 52, 178 => 48, 173 => 45, 167 => 43, 161 => 41, 159 => 40, 151 => 34, 143 => 32, 135 => 30, 133 => 29, 123 => 22, 119 => 20, 115 => 19, 111 => 18, 97 => 9, 92 => 6, 82 => 5, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %} {{ category.name }} | {{ parent() }} {% endblock %}
{% block body %}
<div class=\"breadcrumbs-fs fl-wrap\">
<div class=\"container\">
<div class=\"breadcrumbs fl-wrap\">
<a href=\"{{ url('app_front_blog') }}\">Blog</a><span>{{ category.name }}</span>
</div>
</div>
</div>
<section class=\"grey-blue-bg small-padding\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-md-8\">
<div class=\"post-container fl-wrap\">
{% if articles.totalItemCount > 0 %}
{% for article in articles %}
<article class=\"post-article\">
<div class=\"title-devis\">
<span>{{ article.title }}</span>
</div>
<div class=\"list-single-main-media fl-wrap\">
<div class=\"single-slider-wrapper fl-wrap\">
<div class=\"single-slider fl-wrap\">
<div class=\"slick-slide-item\">
{% if article.image %}
<img src=\"{{ asset('/uploads/files/articles/' ~ article.image) | imagine_filter('806x250') }}\" alt=\"{{ article.title }}\">
{% else %}
<img src=\"{{ asset('front/images/all/ryvup.jpeg') | imagine_filter('806x250') }}\" alt=\"{{ article.title }}\">
{% endif %}
</div>
</div>
</div>
</div>
<div class=\"list-single-main-item fl-wrap\">
<p>
{% if article.content | length > 410 %}
{{ article.content|slice(0,410)|raw }} ...
{% else %}
{{ article.content|slice(0,410)|raw }}
{% endif %}
</p>
<div class=\"post-opt\">
<ul>
<li><i class=\"fal fa-calendar\"></i> <span>{{ article.createdAt | format_datetime(locale='fr', pattern=\"dd MMMM YYYY\") }}</span></li>
<li><i class=\"fal fa-share-alt\"></i> <span>RYVUP</span></li>
</ul>
</div>
{% if article.content | length > 410 %}
<span class=\"fw-separator\"></span>
<a href=\"{{ url('app_front_blog_read', {'cat_slug': article.category.slug, 'slug': article.slug}) }}\" class=\"btn float-btn color-bg\">Lire la suite<i class=\"fal fa-angle-right\"></i></a>
{% endif %}
</div>
</article>
{% endfor %}
{% endif %}
{{ knp_pagination_render(articles) }}
</div>
</div>
<div class=\"col-md-4\">
<div class=\"box-widget-wrap fl-wrap fixed-bar\">
<div class=\"box-widget-item fl-wrap\">
<div class=\"box-widget\">
<div class=\"box-widget-content\">
<div class=\"box-widget-item-header mb-3\">
<h3> Demander un devis </h3>
</div>
<div class=\"text-left\">
<p>Location d'autocar, minibus, voiture privée et sanitaire avec chauffeur pour tous vos déplacements</p>
<p>Avec Ryvup, trouver votre transport sur mesure !</p>
</div>
<div class=\"text-left\">
<a href=\"{{ url('app_client_home') }}\" class=\"btn color2-bg mt-3\">
Devis immédiat
<i class=\"fal fa-angle-right\"></i>
</a>
</div>
</div>
</div>
</div>
<div class=\"box-widget-item fl-wrap\">
<div class=\"box-widget\">
<div class=\"box-widget-content\">
<div class=\"box-widget-item-header\">
<h3>Autres catégories</h3>
</div>
<ul class=\"cat-item\">
{% set id = category.id %}
{% for category in categories %}
{% if category.id != id %}
<li><a href=\"{{ url('app_front_blog_by_category', {'slug': category.slug}) }}\" title=\"{% if category.name | length > 28 %}{{ category.name }}{% endif %}\">{% if category.name | length > 28 %}{{ category.name | slice(0,28) }}...{% else %}{{ category.name }}{% endif %}</a> <span>{{ category.articles | length }}</span></li>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
{% endblock %}", "front/blog/by_category.html.twig", "/var/www/vhosts/resoh.fr/httpdocs/templates/front/blog/by_category.html.twig");
}
}