<?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;
/* Default/formation.html.twig */
class __TwigTemplate_8dd89c231cf84015c9464c007e9e3c3b959efeb8d6ec82a8b3c3b8c5f1ebbe1b extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 4
return "Default/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", "Default/formation.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Default/formation.html.twig"));
// line 1
$context["title"] = twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 1, $this->source); })()), "label", [], "any", false, false, false, 1);
// line 2
$context["description"] = twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 2, $this->source); })()), "description", [], "any", false, false, false, 2);
// line 3
$context["menu"] = "formations";
// line 4
$this->parent = $this->loadTemplate("Default/base.html.twig", "Default/formation.html.twig", 4);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 6
public function block_content($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", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 7
echo "<style>
ul{margin-left: var(--25px)}
</style>
<div id=\"formation\" class='relative gpadding ";
// line 10
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["vt-80-in"]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), ["vt-30-in"]), "html", null, true);
echo " '>
\t";
// line 11
$context["content"] = call_user_func_array($this->env->getFilter('summary')->getCallable(), [twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 11, $this->source); })()), "details", [], "any", false, false, false, 11)]);
// line 12
echo " <div id=\"article\" class='";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["flex row top"]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html", null, true);
echo "'>
";
// line 13
$context["hasSidebar"] = (1 === twig_compare(twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 13, $this->source); })()), "summary", [], "any", false, false, false, 13)), 20));
// line 14
echo "\t\t<div class='border-right border-1x border-solid border-gray-alt hoverflow ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["third-40 right-80"]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), ["w100 bottom-20"]), "html", null, true);
echo "'>
\t\t\t<ul class='list h5 upper success'>
\t\t\t\t";
// line 16
echo twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 16, $this->source); })()), "summary", [], "any", false, false, false, 16);
echo "
\t\t\t</ul>
\t\t</div>
\t\t<div class='w100 ";
// line 19
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), [""]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html", null, true);
echo " '>
\t\t\t<div class='article h6 text-justify light'>
\t\t\t";
// line 21
echo twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 21, $this->source); })()), "content", [], "any", false, false, false, 21);
echo "
\t\t\t</div>
";
// line 24
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 24, $this->source); })()), "thematics", [], "any", false, false, false, 24));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
// line 25
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["o"], "isEnabled", [], "any", false, false, false, 25)) {
// line 26
echo " <h3 class=\"h5 upper medium success top-20 lh-1x flex row\">
<i class=\"bg-success-alt bold hz-15-in vt-7-in radius-top-30 flex row middle right-10 white\">";
// line 27
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 27), "html", null, true);
echo "</i>
<span class=\"vt-7-in\">";
// line 28
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["o"], "label", [], "any", false, false, false, 28), "html", null, true);
echo "</i>
</h3>
<div class=\"bg-white shadow padding-30\">
";
// line 32
if (twig_get_attribute($this->env, $this->source, $context["o"], "domain", [], "any", false, false, false, 32)) {
// line 33
echo " <div class=\"flex col w100\">
<h4 class=\"success-alt h5 upper semibold\">Domaine :</h4>
<label class=\"h5\">";
// line 35
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["o"], "domain", [], "any", false, false, false, 35), "label", [], "any", false, false, false, 35), "html", null, true);
echo "</label>
</div>
";
}
// line 38
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["o"], "mainObjective", [], "any", false, false, false, 38)) {
// line 39
echo " <div class=\"flex col w100 border-bottom border-solid border-white border-1x vt-20-in\">
<h4 class=\"success-alt h5 upper semibold\">Objectif général :</h4>
";
// line 41
echo $this->env->getRuntime('Twig\Extra\Markdown\MarkdownRuntime')->convert(twig_get_attribute($this->env, $this->source, $context["o"], "mainObjective", [], "any", false, false, false, 41));
echo "
</div>
";
}
// line 44
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["o"], "specificsObjectives", [], "any", false, false, false, 44)) {
// line 45
echo " <div class=\"flex col w100 border-bottom border-solid border-white border-1x vt-20-in\">
<h4 class=\"success-alt h5 upper semibold\">Objectifs spécifiques :</h4>
";
// line 47
echo $this->env->getRuntime('Twig\Extra\Markdown\MarkdownRuntime')->convert(twig_get_attribute($this->env, $this->source, $context["o"], "specificsObjectives", [], "any", false, false, false, 47));
echo "
</div>
";
}
// line 50
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["o"], "target", [], "any", false, false, false, 50)) {
// line 51
echo " <div class=\"flex col w100 border-bottom border-solid border-white border-1x vt-20-in\">
<h4 class=\"success-alt h5 upper semibold\">Public cible :</h4>
";
// line 53
echo $this->env->getRuntime('Twig\Extra\Markdown\MarkdownRuntime')->convert(twig_get_attribute($this->env, $this->source, $context["o"], "target", [], "any", false, false, false, 53));
echo "
</div>
";
}
// line 56
echo "
";
// line 57
if (twig_get_attribute($this->env, $this->source, $context["o"], "details", [], "any", false, false, false, 57)) {
// line 58
echo " <div class=\"flex col w100 border-bottom border-solid border-white border-1x vt-20-in\">
";
// line 59
echo twig_get_attribute($this->env, $this->source, $context["o"], "details", [], "any", false, false, false, 59);
echo "
</div>
";
}
// line 62
echo "
";
// line 63
if ((twig_get_attribute($this->env, $this->source, $context["o"], "cost", [], "any", false, false, false, 63) || twig_get_attribute($this->env, $this->source, $context["o"], "duration", [], "any", false, false, false, 63))) {
// line 64
echo " <div class=\"flex row wrap left\">
";
// line 65
if (twig_get_attribute($this->env, $this->source, $context["o"], "cost", [], "any", false, false, false, 65)) {
// line 66
echo " <div class=\"flex row radius-30 shadow-alt right-20\">
<span class=\"radius-30 bg-success-alt hz-15-in vt-10-in\"><i class=\"fa fa-coins\"></i></span>
<label class=\"flex row middle hz-15-in vt-7-in\">";
// line 68
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["o"], "cost", [], "any", false, false, false, 68), "html", null, true);
echo "</label>
</div>
";
}
// line 71
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["o"], "duration", [], "any", false, false, false, 71)) {
// line 72
echo " <div class=\"flex row radius-30 shadow-alt\">
<span class=\"radius-30 bg-success-alt hz-15-in vt-10-in\"><i class=\"fa fa-clock\"></i></span>
<label class=\"flex row middle hz-15-in vt-7-in\">";
// line 74
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["o"], "duration", [], "any", false, false, false, 74), "html", null, true);
echo "</label>
</div>
";
}
// line 77
echo " </div>
";
}
// line 79
echo " </div>
";
}
// line 81
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['o'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 82
echo "
";
// line 84
if ((twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 84, $this->source); })()), "album", [], "any", false, false, false, 84) && twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 84, $this->source); })()), "album", [], "any", false, false, false, 84), "pictures", [], "any", false, false, false, 84)))) {
// line 85
echo " <h2 class='h3 top-40'>";
((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 85, $this->source); })()), "album", [], "any", false, false, false, 85), "title", [], "any", false, false, false, 85)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 85, $this->source); })()), "album", [], "any", false, false, false, 85), "title", [], "any", false, false, false, 85), "html", null, true))) : (print ("Album photos")));
echo "</h2>
<figure class=\"bg-white slide-box mrect slide-container fill nohover relative top-40\" tabindex=\"1\">
<div class=\"fill slides radius-10 adapt\">
";
// line 88
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 88, $this->source); })()), "album", [], "any", false, false, false, 88), "pictures", [], "any", false, false, false, 88));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
// line 89
echo " <div class='relative slide ";
echo (((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 89), 1))) ? ("active") : (""));
echo "'>
<img src='";
// line 90
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["o"]), "html", null, true);
echo "' class='contain'/>
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['o'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 93
echo " </div>
<span class=\"slide-prev radius-50 h100 padding-30 absolute top left pointer\" data-target=\"#article .slide-box\">
<span class=\"fill flex col middle\"><i class=\"flex col middle fa fa-chevron-left h1 white shadow-alt\"></i></span>
</span>
<span class=\"slide-next radius-50 h100 padding-30 absolute top right pointer\" data-target=\"#article .slide-box\">
<span class=\"fill flex col middle\"><i class=\"flex col middle fa fa-chevron-right h1 white shadow-alt\"></i></span>
</span>
</figure>
";
}
// line 102
echo "\t\t</div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Default/formation.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 341 => 102, 330 => 93, 313 => 90, 308 => 89, 291 => 88, 284 => 85, 282 => 84, 278 => 82, 264 => 81, 260 => 79, 256 => 77, 250 => 74, 246 => 72, 243 => 71, 237 => 68, 233 => 66, 231 => 65, 228 => 64, 226 => 63, 223 => 62, 217 => 59, 214 => 58, 212 => 57, 209 => 56, 203 => 53, 199 => 51, 196 => 50, 190 => 47, 186 => 45, 183 => 44, 177 => 41, 173 => 39, 170 => 38, 164 => 35, 160 => 33, 158 => 32, 151 => 28, 147 => 27, 144 => 26, 141 => 25, 124 => 24, 118 => 21, 111 => 19, 105 => 16, 97 => 14, 95 => 13, 88 => 12, 86 => 11, 80 => 10, 75 => 7, 65 => 6, 54 => 4, 52 => 3, 50 => 2, 48 => 1, 35 => 4,);
}
public function getSourceContext()
{
return new Source("{% set title = item.label %}
{% set description = item.description %}
{% set menu = 'formations' %}
{% extends 'Default/base.html.twig' %}
{% block content %}
<style>
ul{margin-left: var(--25px)}
</style>
<div id=\"formation\" class='relative gpadding {{desktop(\"vt-80-in\")}} {{mobile(\"vt-30-in\")}} '>
\t{% set content = item.details|summary %}
<div id=\"article\" class='{{desktop(\"flex row top\")}} {{mobile(\"\")}}'>
{% set hasSidebar = content.summary|length > 20 %}
\t\t<div class='border-right border-1x border-solid border-gray-alt hoverflow {{desktop(\"third-40 right-80\")}} {{mobile(\"w100 bottom-20\")}}'>
\t\t\t<ul class='list h5 upper success'>
\t\t\t\t{{ content.summary|raw }}
\t\t\t</ul>
\t\t</div>
\t\t<div class='w100 {{desktop(\"\")}} {{mobile(\"\")}} '>
\t\t\t<div class='article h6 text-justify light'>
\t\t\t{{ content.content|raw }}
\t\t\t</div>
{% for o in item.thematics %}
{% if o.isEnabled %}
<h3 class=\"h5 upper medium success top-20 lh-1x flex row\">
<i class=\"bg-success-alt bold hz-15-in vt-7-in radius-top-30 flex row middle right-10 white\">{{loop.index}}</i>
<span class=\"vt-7-in\">{{o.label}}</i>
</h3>
<div class=\"bg-white shadow padding-30\">
{% if o.domain %}
<div class=\"flex col w100\">
<h4 class=\"success-alt h5 upper semibold\">Domaine :</h4>
<label class=\"h5\">{{o.domain.label}}</label>
</div>
{% endif %}
{% if o.mainObjective %}
<div class=\"flex col w100 border-bottom border-solid border-white border-1x vt-20-in\">
<h4 class=\"success-alt h5 upper semibold\">Objectif général :</h4>
{{o.mainObjective|markdown_to_html}}
</div>
{% endif %}
{% if o.specificsObjectives %}
<div class=\"flex col w100 border-bottom border-solid border-white border-1x vt-20-in\">
<h4 class=\"success-alt h5 upper semibold\">Objectifs spécifiques :</h4>
{{o.specificsObjectives|markdown_to_html}}
</div>
{% endif %}
{% if o.target %}
<div class=\"flex col w100 border-bottom border-solid border-white border-1x vt-20-in\">
<h4 class=\"success-alt h5 upper semibold\">Public cible :</h4>
{{o.target|markdown_to_html}}
</div>
{% endif %}
{% if o.details %}
<div class=\"flex col w100 border-bottom border-solid border-white border-1x vt-20-in\">
{{o.details|raw}}
</div>
{% endif %}
{% if o.cost or o.duration %}
<div class=\"flex row wrap left\">
{% if o.cost %}
<div class=\"flex row radius-30 shadow-alt right-20\">
<span class=\"radius-30 bg-success-alt hz-15-in vt-10-in\"><i class=\"fa fa-coins\"></i></span>
<label class=\"flex row middle hz-15-in vt-7-in\">{{o.cost}}</label>
</div>
{% endif %}
{% if o.duration %}
<div class=\"flex row radius-30 shadow-alt\">
<span class=\"radius-30 bg-success-alt hz-15-in vt-10-in\"><i class=\"fa fa-clock\"></i></span>
<label class=\"flex row middle hz-15-in vt-7-in\">{{o.duration}}</label>
</div>
{% endif %}
</div>
{% endif %}
</div>
{% endif %}
{% endfor %}
{% if item.album and item.album.pictures|length %}
<h2 class='h3 top-40'>{{item.album.title ? item.album.title : \"Album photos\"}}</h2>
<figure class=\"bg-white slide-box mrect slide-container fill nohover relative top-40\" tabindex=\"1\">
<div class=\"fill slides radius-10 adapt\">
{% for o in item.album.pictures %}
<div class='relative slide {{loop.index == 1 ? \"active\"}}'>
<img src='{{asset(o)}}' class='contain'/>
</div>
{% endfor %}
</div>
<span class=\"slide-prev radius-50 h100 padding-30 absolute top left pointer\" data-target=\"#article .slide-box\">
<span class=\"fill flex col middle\"><i class=\"flex col middle fa fa-chevron-left h1 white shadow-alt\"></i></span>
</span>
<span class=\"slide-next radius-50 h100 padding-30 absolute top right pointer\" data-target=\"#article .slide-box\">
<span class=\"fill flex col middle\"><i class=\"flex col middle fa fa-chevron-right h1 white shadow-alt\"></i></span>
</span>
</figure>
{% endif %}
\t\t</div>
</div>
</div>
{% endblock %}
", "Default/formation.html.twig", "/home/olasoftnka/cefal/templates/Default/formation.html.twig");
}
}