var/cache/dev/twig/65/65c75a72bf29e8e399835ac99fa6fd79fabff9d23dca25e44e5279239d67dfaf.php line 40

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. /* Default/formation.html.twig */
  14. class __TwigTemplate_877abe25c8711994ebc6dacc4e12b1eacab97a188c221f9fd56bbd6a19b11c34 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.             'titlebox' => [$this'block_titlebox'],
  24.             'title' => [$this'block_title'],
  25.             'content' => [$this'block_content'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 8
  31.         return "Default/base.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Default/formation.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Default/formation.html.twig"));
  40.         // line 1
  41.         $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); })()), "title", [], "any"falsefalsefalse1);
  42.         // line 2
  43.         $context["desc"] = 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"falsefalsefalse2);
  44.         // line 3
  45.         $context["menu"] = "formations";
  46.         // line 4
  47.         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.'4$this->source); })()), "banner", [], "any"falsefalsefalse4)) {
  48.             // line 5
  49.             $context["thumbnail"] = twig_get_attribute($this->env$this->sourcetwig_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.'5$this->source); })()), "banner", [], "any"falsefalsefalse5), "thumbnail", [], "any"falsefalsefalse5);
  50.             // line 6
  51.             $context["banner"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env$this->sourcetwig_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.'6$this->source); })()), "banner", [], "any"falsefalsefalse6), "file", [], "any"falsefalsefalse6));
  52.         }
  53.         // line 9
  54.         $macros["macros"] = $this->macros["macros"] = $this->loadTemplate("Default/macros.html.twig""Default/formation.html.twig"9)->unwrap();
  55.         // line 8
  56.         $this->parent $this->loadTemplate("Default/base.html.twig""Default/formation.html.twig"8);
  57.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  58.         
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  60.         
  61.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  62.     }
  63.     // line 11
  64.     public function block_titlebox($context, array $blocks = [])
  65.     {
  66.         $macros $this->macros;
  67.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  68.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""titlebox"));
  69.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  70.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""titlebox"));
  71.         // line 12
  72.         echo "<div class='relative white w100 ";
  73.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["vt-40-in"]), "html"nulltrue);
  74.         echo " ";
  75.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html"nulltrue);
  76.         echo "'>
  77.     ";
  78.         // line 13
  79.         $this->displayBlock('title'$context$blocks);
  80.         // line 16
  81.         echo "</div>
  82. ";
  83.         
  84.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  85.         
  86.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  87.     }
  88.     // line 13
  89.     public function block_title($context, array $blocks = [])
  90.     {
  91.         $macros $this->macros;
  92.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  93.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  94.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  95.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  96.         // line 14
  97.         echo "    <h1 class='h3 upper lh-1 text-center'>";
  98.         ((array_key_exists("title"$context)) ? (print (twig_escape_filter($this->env, (isset($context["title"]) || array_key_exists("title"$context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.'14$this->source); })()), "html"nulltrue))) : (print ("")));
  99.         echo "</h1>
  100.     ";
  101.         
  102.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  103.         
  104.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  105.     }
  106.     // line 19
  107.     public function block_content($context, array $blocks = [])
  108.     {
  109.         $macros $this->macros;
  110.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  111.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  112.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  113.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  114.         // line 20
  115.         echo "<div class='";
  116.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["gpadding vt-40-in"]), "html"nulltrue);
  117.         echo " ";
  118.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), ["gpadding vt-30-in"]), "html"nulltrue);
  119.         echo " '>
  120.     <div class='";
  121.         // line 21
  122.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["gpadding flex col center top"]), "html"nulltrue);
  123.         echo " ";
  124.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html"nulltrue);
  125.         echo "'>
  126.         <div id='article' class='w100 ";
  127.         // line 22
  128.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), [""]), "html"nulltrue);
  129.         echo " ";
  130.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), ["vt-20-in"]), "html"nulltrue);
  131.         echo "'>
  132.             <figure class=\"w100 ";
  133.         // line 23
  134.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), [""]), "html"nulltrue);
  135.         echo "\">
  136.                 <img src=\"";
  137.         // line 24
  138.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(((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); })()), "banner", [], "any"falsefalsefalse24)) ? (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); })()), "banner", [], "any"falsefalsefalse24)) : (call_user_func_array($this->env->getFunction('os_param')->getCallable(), ["banner"])))), "html"nulltrue);
  139.         echo "\" class=\"block w100\"/>
  140.             </figure>
  141.             <article  class='p article black ";
  142.         // line 26
  143.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["top-30"]), "html"nulltrue);
  144.         echo "'>
  145.             ";
  146.         // line 27
  147.         echo 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.'27$this->source); })()), "content", [], "any"falsefalsefalse27);
  148.         echo "
  149.             </article>
  150.         </div>
  151. \t</div>
  152. </div>
  153. ";
  154.         
  155.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  156.         
  157.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  158.     }
  159.     public function getTemplateName()
  160.     {
  161.         return "Default/formation.html.twig";
  162.     }
  163.     public function isTraitable()
  164.     {
  165.         return false;
  166.     }
  167.     public function getDebugInfo()
  168.     {
  169.         return array (  171 => 27,  167 => 26,  162 => 24,  158 => 23,  152 => 22,  146 => 21,  139 => 20,  129 => 19,  116 => 14,  106 => 13,  95 => 16,  93 => 13,  86 => 12,  76 => 11,  65 => 8,  63 => 9,  60 => 6,  58 => 5,  56 => 4,  54 => 3,  52 => 2,  50 => 1,  37 => 8,);
  170.     }
  171.     public function getSourceContext()
  172.     {
  173.         return new Source("{% set title = item.title %}
  174. {% set desc = item.description %}
  175. {% set menu = 'formations' %}
  176. {% if item.banner %}
  177. {% set thumbnail = item.banner.thumbnail %}
  178. {% set banner = asset(item.banner.file) %}
  179. {% endif %}
  180. {% extends 'Default/base.html.twig' %}
  181. {% import \"Default/macros.html.twig\" as macros %}
  182. {% block titlebox %}
  183. <div class='relative white w100 {{desktop(\"vt-40-in\")}} {{mobile(\"\")}}'>
  184.     {% block title %}
  185.     <h1 class='h3 upper lh-1 text-center'>{{title is defined ? title}}</h1>
  186.     {% endblock title %}
  187. </div>
  188. {% endblock titlebox %}
  189. {% block content %}
  190. <div class='{{desktop(\"gpadding vt-40-in\")}} {{mobile(\"gpadding vt-30-in\")}} '>
  191.     <div class='{{desktop(\"gpadding flex col center top\")}} {{mobile(\"\")}}'>
  192.         <div id='article' class='w100 {{desktop(\"\")}} {{mobile(\"vt-20-in\")}}'>
  193.             <figure class=\"w100 {{desktop('')}}\">
  194.                 <img src=\"{{asset(item.banner ? item.banner : os_param('banner'))}}\" class=\"block w100\"/>
  195.             </figure>
  196.             <article  class='p article black {{desktop(\"top-30\")}}'>
  197.             {{ item.content|raw }}
  198.             </article>
  199.         </div>
  200. \t</div>
  201. </div>
  202. {% endblock %}
  203. ""Default/formation.html.twig""/home/adminroot/www/templates/Default/formation.html.twig");
  204.     }
  205. }