var/cache/dev/twig/10/10077485a82abcd170e01c967050d90b9cd353e4ab637a3869a5abc840eaab51.php line 48

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. /* Front/Channel/showTrainingList.html.twig */
  14. class __TwigTemplate_4821dcf2950a78fceef897cc90d142c9a4089c5f791ba82cba8d22d14ae5bde8 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.             'inner_content' => [$this'block_inner_content'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "Front/Channel/show.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Front/Channel/showTrainingList.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Front/Channel/showTrainingList.html.twig"));
  38.         $this->parent $this->loadTemplate("Front/Channel/show.html.twig""Front/Channel/showTrainingList.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     // line 3
  46.     public function block_inner_content($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inner_content"));
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inner_content"));
  53.         // line 4
  54.         echo "
  55.     ";
  56.         // line 5
  57.         $context["arrayBreadcrumb"] = [=> ["label" => twig_get_attribute($this->env$this->source,         // line 7
  58. (isset($context["channel"]) || array_key_exists("channel"$context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.'7$this->source); })()), "name", [], "any"falsefalsefalse7), "path" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_channel_show", ["channelId" => twig_get_attribute($this->env$this->source,         // line 8
  59. (isset($context["channel"]) || array_key_exists("channel"$context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.'8$this->source); })()), "id", [], "any"falsefalsefalse8)])], => ["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.channel.show.breadcrumb.trainings")]];
  60.         // line 14
  61.         echo "
  62.     <div class=\"mt-5\">
  63.         ";
  64.         // line 16
  65.         $this->loadTemplate("Partial/Breadcrumb/breadcrumb.html.twig""Front/Channel/showTrainingList.html.twig"16)->display(twig_array_merge($context, ["arrayBreadcrumb" => (isset($context["arrayBreadcrumb"]) || array_key_exists("arrayBreadcrumb"$context) ? $context["arrayBreadcrumb"] : (function () { throw new RuntimeError('Variable "arrayBreadcrumb" does not exist.'16$this->source); })())]));
  66.         // line 17
  67.         echo "    </div>
  68.     <div class=\"row\" id=\"our-trainings\">
  69.         <div class=\"mt-2 col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12\">
  70.             <div class=\"section-title-type-formation\">
  71.                 <h2 class=\"ml-0\">
  72.                     ";
  73.         // line 23
  74.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.channel.show.tabs.home.subtitles.trainings.label", ["%count%" => (isset($context["count_trainings"]) || array_key_exists("count_trainings"$context) ? $context["count_trainings"] : (function () { throw new RuntimeError('Variable "count_trainings" does not exist.'23$this->source); })())]), "html"nulltrue);
  75.         echo "
  76.                 </h2>
  77.             </div>
  78.         </div>
  79.     </div>
  80.     <div class=\"row font-poppins\">
  81.         <div class=\"col-12\">
  82.             ";
  83.         // line 31
  84.         $this->loadTemplate("Front/Channel/search_type.html.twig""Front/Channel/showTrainingList.html.twig"31)->display($context);
  85.         // line 32
  86.         echo "        </div>
  87.         ";
  88.         // line 34
  89.         if ( !twig_test_empty((isset($context["searchInput"]) || array_key_exists("searchInput"$context) ? $context["searchInput"] : (function () { throw new RuntimeError('Variable "searchInput" does not exist.'34$this->source); })()))) {
  90.             // line 35
  91.             echo "            <div class=\"col-12 mt-4 font-weight-bold\" style=\"font-size: 1.2rem;\">
  92.                 ";
  93.             // line 36
  94.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.channel.show.search.search_result", ["%input%" => (isset($context["searchInput"]) || array_key_exists("searchInput"$context) ? $context["searchInput"] : (function () { throw new RuntimeError('Variable "searchInput" does not exist.'36$this->source); })())]), "html"nulltrue);
  95.             echo "
  96.             </div>
  97.             ";
  98.             // line 39
  99.             if (((isset($context["count_trainings"]) || array_key_exists("count_trainings"$context) ? $context["count_trainings"] : (function () { throw new RuntimeError('Variable "count_trainings" does not exist.'39$this->source); })()) == 0)) {
  100.                 // line 40
  101.                 echo "                <div class=\"col-12 mt-4 text-center\">
  102.                     <div>
  103.                         <img src=\"";
  104.                 // line 42
  105.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/common/search-no-result.svg""common"), "html"nulltrue);
  106.                 echo "\" alt=\"No result\"/>
  107.                     </div>
  108.                     <div class=\"mt-4\">
  109.                         ";
  110.                 // line 45
  111.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.channel.show.search.no_result", ["%input%" => (isset($context["searchInput"]) || array_key_exists("searchInput"$context) ? $context["searchInput"] : (function () { throw new RuntimeError('Variable "searchInput" does not exist.'45$this->source); })())]), "html"nulltrue);
  112.                 echo "
  113.                     </div>
  114.                     <div>
  115.                         ";
  116.                 // line 48
  117.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.channel.show.search.try_new_search", ["%input%" => (isset($context["searchInput"]) || array_key_exists("searchInput"$context) ? $context["searchInput"] : (function () { throw new RuntimeError('Variable "searchInput" does not exist.'48$this->source); })())]), "html"nulltrue);
  118.                 echo "
  119.                     </div>
  120.                 </div>
  121.             ";
  122.             }
  123.             // line 52
  124.             echo "        ";
  125.         }
  126.         // line 53
  127.         echo "    </div>
  128.     <div class=\"row mt-4\">
  129.         ";
  130.         // line 56
  131.         $context['_parent'] = $context;
  132.         $context['_seq'] = twig_ensure_traversable((isset($context["trainings"]) || array_key_exists("trainings"$context) ? $context["trainings"] : (function () { throw new RuntimeError('Variable "trainings" does not exist.'56$this->source); })()));
  133.         foreach ($context['_seq'] as $context["_key"] => $context["training"]) {
  134.             // line 57
  135.             echo "            <div class=\"col-12 col-md-6 col-lg-4 mb-4\">
  136.                 ";
  137.             // line 58
  138.             echo $this->extensions['Symfony\UX\TwigComponent\Twig\ComponentExtension']->render("TrainingCard", ["training" => $context["training"]]);
  139.             echo "
  140.             </div>
  141.         ";
  142.         }
  143.         $_parent $context['_parent'];
  144.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['training'], $context['_parent'], $context['loop']);
  145.         $context array_intersect_key($context$_parent) + $_parent;
  146.         // line 61
  147.         echo "    </div>
  148.     <div class=\"pagination mb-5\">
  149.         ";
  150.         // line 63
  151.         echo $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["trainings"]) || array_key_exists("trainings"$context) ? $context["trainings"] : (function () { throw new RuntimeError('Variable "trainings" does not exist.'63$this->source); })()));
  152.         echo "
  153.     </div>
  154.     ";
  155.         // line 66
  156.         $this->loadTemplate("Front/Channel/find-us-contact-us.html.twig""Front/Channel/showTrainingList.html.twig"66)->display(twig_array_merge($context, ["channel" => (isset($context["channel"]) || array_key_exists("channel"$context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.'66$this->source); })())]));
  157.         
  158.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  159.         
  160.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  161.     }
  162.     public function getTemplateName()
  163.     {
  164.         return "Front/Channel/showTrainingList.html.twig";
  165.     }
  166.     public function isTraitable()
  167.     {
  168.         return false;
  169.     }
  170.     public function getDebugInfo()
  171.     {
  172.         return array (  176 => 66,  170 => 63,  166 => 61,  157 => 58,  154 => 57,  150 => 56,  145 => 53,  142 => 52,  135 => 48,  129 => 45,  123 => 42,  119 => 40,  117 => 39,  111 => 36,  108 => 35,  106 => 34,  102 => 32,  100 => 31,  89 => 23,  81 => 17,  79 => 16,  75 => 14,  73 => 8,  72 => 7,  71 => 5,  68 => 4,  58 => 3,  35 => 1,);
  173.     }
  174.     public function getSourceContext()
  175.     {
  176.         return new Source("{% extends 'Front/Channel/show.html.twig' %}
  177. {% block inner_content %}
  178.     {% set arrayBreadcrumb = [
  179.         {
  180.             'label': channel.name,
  181.             'path': path('front_channel_show', {'channelId': channel.id})
  182.         },
  183.         {
  184.             'label' : 'front.channel.show.breadcrumb.trainings'|trans,
  185.         }
  186.     ] %}
  187.     <div class=\"mt-5\">
  188.         {% include 'Partial/Breadcrumb/breadcrumb.html.twig' with {'arrayBreadcrumb' : arrayBreadcrumb } %}
  189.     </div>
  190.     <div class=\"row\" id=\"our-trainings\">
  191.         <div class=\"mt-2 col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12\">
  192.             <div class=\"section-title-type-formation\">
  193.                 <h2 class=\"ml-0\">
  194.                     {{ 'front.channel.show.tabs.home.subtitles.trainings.label'|trans({'%count%': count_trainings}) }}
  195.                 </h2>
  196.             </div>
  197.         </div>
  198.     </div>
  199.     <div class=\"row font-poppins\">
  200.         <div class=\"col-12\">
  201.             {% include 'Front/Channel/search_type.html.twig' %}
  202.         </div>
  203.         {% if searchInput is not empty %}
  204.             <div class=\"col-12 mt-4 font-weight-bold\" style=\"font-size: 1.2rem;\">
  205.                 {{ 'front.channel.show.search.search_result'|trans({'%input%': searchInput}) }}
  206.             </div>
  207.             {% if count_trainings == 0 %}
  208.                 <div class=\"col-12 mt-4 text-center\">
  209.                     <div>
  210.                         <img src=\"{{ asset('build/common/search-no-result.svg', 'common') }}\" alt=\"No result\"/>
  211.                     </div>
  212.                     <div class=\"mt-4\">
  213.                         {{ 'front.channel.show.search.no_result'|trans({'%input%': searchInput}) }}
  214.                     </div>
  215.                     <div>
  216.                         {{ 'front.channel.show.search.try_new_search'|trans({'%input%': searchInput}) }}
  217.                     </div>
  218.                 </div>
  219.             {% endif %}
  220.         {% endif %}
  221.     </div>
  222.     <div class=\"row mt-4\">
  223.         {% for training in trainings %}
  224.             <div class=\"col-12 col-md-6 col-lg-4 mb-4\">
  225.                 {{ component('TrainingCard', { training: training }) }}
  226.             </div>
  227.         {% endfor %}
  228.     </div>
  229.     <div class=\"pagination mb-5\">
  230.         {{ knp_pagination_render(trainings) }}
  231.     </div>
  232.     {% include 'Front/Channel/find-us-contact-us.html.twig' with {'channel' : channel} %}
  233. {% endblock inner_content %}""Front/Channel/showTrainingList.html.twig""/var/www/html/templates/Front/Channel/showTrainingList.html.twig");
  234.     }
  235. }