<?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;
/* activity/index.html.twig */
class __TwigTemplate_41cbad03513d44b677b5073aee3c2dfa extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'header' => [$this, 'block_header'],
'content' => [$this, 'block_content'],
'jscomplement' => [$this, 'block_jscomplement'],
];
}
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", "activity/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "activity/index.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "activity/index.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_header($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", "header"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
// line 3
echo " ";
$this->loadTemplate("widget/header_meta.html.twig", "activity/index.html.twig", 3)->display(twig_array_merge($context, ["title" => (((("Smart-Focus - " . // line 4
(isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 4, $this->source); })())) == "all")) ? ("Nos Formations") : ((isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 4, $this->source); })()))), "description" => "Explorez notre gamme variée de formations continues en informatique, comptabilité, santé, langues, et bien plus. Développez de nouvelles compétences et avancez dans votre carrière avec Smart-Focus.", "image" => $this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/logo_hor.png")), "url" => $this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("hs_public_activity_index"))]));
// line 9
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 11
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 12
echo "
<div class=\"main\">
<div class=\"container\">
<div class=\"header-page\">
<h1>";
// line 16
if (((isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 16, $this->source); })()) == "all")) {
echo "Nos Formations";
} else {
echo twig_escape_filter($this->env, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 16, $this->source); })()), "html", null, true);
}
echo "</h1>
</div>
<!-- /.header-page -->
<div class=\"main-content\">
<div class=\"box-product row\">
";
// line 21
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["items"]) || array_key_exists("items", $context) ? $context["items"] : (function () { throw new RuntimeError('Variable "items" does not exist.', 21, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["activite"]) {
// line 22
echo " <div class=\"col-lg-3 col-md-4 col-sm-6\">
<div class=\"product-item\">
<div class=\"product-thumb\">
<div class=\"main-img\">
<a href=\"";
// line 26
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("hs_public_activity_single", ["slug" => twig_get_attribute($this->env, $this->source, $context["activite"], "slug", [], "any", false, false, false, 26)]), "html", null, true);
echo "\">
<img class=\"img-responsive\" src=\"";
// line 27
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("images/activite/" . twig_get_attribute($this->env, $this->source, twig_first($this->env, twig_get_attribute($this->env, $this->source, $context["activite"], "images", [], "any", false, false, false, 27)), "url", [], "any", false, false, false, 27))), "html", null, true);
echo "\" alt=\"img\" />
</a>
</div>
<div class=\"overlay-img\">
<a href=\"";
// line 31
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("hs_public_activity_single", ["slug" => twig_get_attribute($this->env, $this->source, $context["activite"], "slug", [], "any", false, false, false, 31)]), "html", null, true);
echo "\">
<img class=\"img-responsive\" src=\"";
// line 32
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("images/activite/" . twig_get_attribute($this->env, $this->source, twig_first($this->env, twig_get_attribute($this->env, $this->source, $context["activite"], "images", [], "any", false, false, false, 32)), "url", [], "any", false, false, false, 32))), "html", null, true);
echo "\" alt=\"img\" />
</a>
</div>
<a href=\"";
// line 35
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("hs_public_activity_single", ["slug" => twig_get_attribute($this->env, $this->source, $context["activite"], "slug", [], "any", false, false, false, 35)]), "html", null, true);
echo "\" class=\"details\"><i class=\"pe-7s-search\"></i></a>
</div>
<h4 class=\"product-name\"><a href=\"";
// line 37
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("hs_public_activity_single", ["slug" => twig_get_attribute($this->env, $this->source, $context["activite"], "slug", [], "any", false, false, false, 37)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["activite"], "title", [], "any", false, false, false, 37), "html", null, true);
echo "</a></h4>
<div class=\"group-buttons\">
<button type=\"button\" class=\"add-to-cart\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Inscription\" onclick=\"window.location.href='";
// line 39
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("hs_public_activity_single", ["slug" => twig_get_attribute($this->env, $this->source, $context["activite"], "slug", [], "any", false, false, false, 39), "position" => "register"]), "html", null, true);
echo "';\">
<span>Inscription</span>
</button>
<button type=\"button\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Afficher les détails\" onclick=\"window.location.href='";
// line 42
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("hs_public_activity_single", ["slug" => twig_get_attribute($this->env, $this->source, $context["activite"], "slug", [], "any", false, false, false, 42)]), "html", null, true);
echo "';\">
<i class=\"pe-7s-look\"></i>
</button>
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['activite'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 49
echo " ";
if ((twig_length_filter($this->env, (isset($context["items"]) || array_key_exists("items", $context) ? $context["items"] : (function () { throw new RuntimeError('Variable "items" does not exist.', 49, $this->source); })())) < 4)) {
// line 50
echo " <div class=\"col-lg-3 col-md-4 col-sm-6\">
<div class=\"product-item\">
<div class=\"product-thumb\">
<div class=\"main-img\">
<a>
<img class=\"img-responsive\" src=\"";
// line 55
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/activite/vide.jpg"), "html", null, true);
echo "\"/>
</a>
</div>
<div class=\"overlay-img\">
<a>
<img class=\"img-responsive\" src=\"";
// line 60
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/activite/vide.jpg"), "html", null, true);
echo "\"/>
</a>
</div>
</div>
</div>
</div>
";
}
// line 68
echo " </div>
<!-- /.box-product -->
<nav class=\"pagination\">
";
// line 71
echo $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["items"]) || array_key_exists("items", $context) ? $context["items"] : (function () { throw new RuntimeError('Variable "items" does not exist.', 71, $this->source); })()), "default/knp_pagination.html.twig");
echo "
</nav>
<!-- /.pagination -->
</div>
<!-- /.main-content -->
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 81
public function block_jscomplement($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", "jscomplement"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "jscomplement"));
// line 82
echo " <script src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/scripts/libs/jquery.waypoints.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 83
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/scripts/libs/jquery.mixitup.min.js"), "html", null, true);
echo "\"></script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "activity/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 242 => 83, 237 => 82, 227 => 81, 208 => 71, 203 => 68, 192 => 60, 184 => 55, 177 => 50, 174 => 49, 161 => 42, 155 => 39, 148 => 37, 143 => 35, 137 => 32, 133 => 31, 126 => 27, 122 => 26, 116 => 22, 112 => 21, 100 => 16, 94 => 12, 84 => 11, 74 => 9, 72 => 4, 70 => 3, 60 => 2, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block header %}
{% include 'widget/header_meta.html.twig' with {
'title': 'Smart-Focus - '~category=='all'?'Nos Formations':category,
'description': \"Explorez notre gamme variée de formations continues en informatique, comptabilité, santé, langues, et bien plus. Développez de nouvelles compétences et avancez dans votre carrière avec Smart-Focus.\",
'image': absolute_url(asset('images/logo_hor.png')),
'url': absolute_url(path('hs_public_activity_index'))
} %}
{% endblock %}
{% block content %}
<div class=\"main\">
<div class=\"container\">
<div class=\"header-page\">
<h1>{% if category=='all' %}Nos Formations{% else %}{{ category }}{% endif %}</h1>
</div>
<!-- /.header-page -->
<div class=\"main-content\">
<div class=\"box-product row\">
{% for activite in items %}
<div class=\"col-lg-3 col-md-4 col-sm-6\">
<div class=\"product-item\">
<div class=\"product-thumb\">
<div class=\"main-img\">
<a href=\"{{ path('hs_public_activity_single', {'slug': activite.slug}) }}\">
<img class=\"img-responsive\" src=\"{{ asset('images/activite/'~(activite.images|first).url) }}\" alt=\"img\" />
</a>
</div>
<div class=\"overlay-img\">
<a href=\"{{ path('hs_public_activity_single', {'slug': activite.slug}) }}\">
<img class=\"img-responsive\" src=\"{{ asset('images/activite/'~(activite.images|first).url) }}\" alt=\"img\" />
</a>
</div>
<a href=\"{{ path('hs_public_activity_single', {'slug': activite.slug}) }}\" class=\"details\"><i class=\"pe-7s-search\"></i></a>
</div>
<h4 class=\"product-name\"><a href=\"{{ path('hs_public_activity_single', {'slug': activite.slug}) }}\">{{ activite.title }}</a></h4>
<div class=\"group-buttons\">
<button type=\"button\" class=\"add-to-cart\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Inscription\" onclick=\"window.location.href='{{ path('hs_public_activity_single', {'slug': activite.slug, 'position':'register'}) }}';\">
<span>Inscription</span>
</button>
<button type=\"button\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Afficher les détails\" onclick=\"window.location.href='{{ path('hs_public_activity_single', {'slug': activite.slug}) }}';\">
<i class=\"pe-7s-look\"></i>
</button>
</div>
</div>
</div>
{% endfor %}
{% if items|length<4 %}
<div class=\"col-lg-3 col-md-4 col-sm-6\">
<div class=\"product-item\">
<div class=\"product-thumb\">
<div class=\"main-img\">
<a>
<img class=\"img-responsive\" src=\"{{ asset('images/activite/vide.jpg') }}\"/>
</a>
</div>
<div class=\"overlay-img\">
<a>
<img class=\"img-responsive\" src=\"{{ asset('images/activite/vide.jpg') }}\"/>
</a>
</div>
</div>
</div>
</div>
{% endif %}
</div>
<!-- /.box-product -->
<nav class=\"pagination\">
{{ knp_pagination_render(items, 'default/knp_pagination.html.twig') }}
</nav>
<!-- /.pagination -->
</div>
<!-- /.main-content -->
</div>
</div>
{% endblock %}
{% block jscomplement %}
<script src=\"{{ asset('assets/scripts/libs/jquery.waypoints.min.js') }}\"></script>
<script src=\"{{ asset('assets/scripts/libs/jquery.mixitup.min.js') }}\"></script>
{% endblock %}", "activity/index.html.twig", "/home/u102745986/domains/smartfocus.ma/public_html/templates/activity/index.html.twig");
}
}