var/cache/dev/twig/69/691513a75ee2c9af885c1b85befc68c24c9391928126bcafb7be18e6f9228d95.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. /* attributeGroup/index.html.twig */
  14. class __TwigTemplate_3432d92939b37ec7eb171d31107dc6ac515dea8c059a201e9b12a7acd8035339 extends \Twig\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.             'title' => [$this'block_title'],
  24.             'content' => [$this'block_content'],
  25.             'map' => [$this'block_map'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "courses.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""attributeGroup/index.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""attributeGroup/index.html.twig"));
  40.         $this->parent $this->loadTemplate("courses.html.twig""attributeGroup/index.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 3
  48.     public function block_title($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  55.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["attributeGroup"]) || array_key_exists("attributeGroup"$context) ? $context["attributeGroup"] : (function () { throw new RuntimeError('Variable "attributeGroup" does not exist.'3$this->source); })()), "name", [], "any"falsefalsefalse3), "html"nulltrue);
  56.         echo " | Všechny kurzy";
  57.         
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  59.         
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  61.     }
  62.     // line 5
  63.     public function block_content($context, array $blocks = [])
  64.     {
  65.         $macros $this->macros;
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  67.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  69.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  70.         // line 6
  71.         $context["showMap"] = ((array_key_exists("showMap"$context)) ? (_twig_default_filter((isset($context["showMap"]) || array_key_exists("showMap"$context) ? $context["showMap"] : (function () { throw new RuntimeError('Variable "showMap" does not exist.'6$this->source); })()), false)) : (false));
  72.         // line 7
  73.         echo "<div class=\"container-fluid\">
  74.     <div class=\"row\">
  75.         <div class=\"col-12 col-md-6 position-relative\">
  76.             ";
  77.         // line 10
  78.         $this->loadTemplate("form/_searchForm.html.twig""attributeGroup/index.html.twig"10)->display($context);
  79.         // line 11
  80.         echo "        </div>
  81.         <div class=\"col-12 col-md-6 homepage-box d-md-block d-none\">
  82.             <div class=\"row\">
  83.                 <div class=\"col-";
  84.         // line 14
  85.         if ((isset($context["showMap"]) || array_key_exists("showMap"$context) ? $context["showMap"] : (function () { throw new RuntimeError('Variable "showMap" does not exist.'14$this->source); })())) {
  86.             echo "12";
  87.         } else {
  88.             echo "6";
  89.         }
  90.         echo "\">
  91.                     <h1>";
  92.         // line 15
  93.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["attributeGroup"]) || array_key_exists("attributeGroup"$context) ? $context["attributeGroup"] : (function () { throw new RuntimeError('Variable "attributeGroup" does not exist.'15$this->source); })()), "name", [], "any"falsefalsefalse15), "html"nulltrue);
  94.         echo "</h1>
  95.                     <p>
  96.                         ";
  97.         // line 17
  98.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["attributeGroup"]) || array_key_exists("attributeGroup"$context) ? $context["attributeGroup"] : (function () { throw new RuntimeError('Variable "attributeGroup" does not exist.'17$this->source); })()), "description", [], "any"falsefalsefalse17), "html"nulltrue);
  99.         echo "
  100.                     </p>
  101.                 </div>
  102.                 ";
  103.         // line 21
  104.         if ((isset($context["showMap"]) || array_key_exists("showMap"$context) ? $context["showMap"] : (function () { throw new RuntimeError('Variable "showMap" does not exist.'21$this->source); })())) {
  105.             // line 22
  106.             echo "                    <div class=\"col-12\">
  107.                         ";
  108.             // line 23
  109.             $this->loadTemplate("course/map.html.twig""attributeGroup/index.html.twig"23)->display(twig_array_merge($context, (isset($context["courses"]) || array_key_exists("courses"$context) ? $context["courses"] : (function () { throw new RuntimeError('Variable "courses" does not exist.'23$this->source); })())));
  110.             // line 24
  111.             echo "                    </div>
  112.                 ";
  113.         } else {
  114.             // line 26
  115.             echo "                    <div class=\"col-6\">
  116.                         ";
  117.             // line 27
  118.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["attributeGroup"]) || array_key_exists("attributeGroup"$context) ? $context["attributeGroup"] : (function () { throw new RuntimeError('Variable "attributeGroup" does not exist.'27$this->source); })()), "image", [], "any"falsefalsefalse27))) {
  119.                 // line 28
  120.                 echo "                            ";
  121.                 echo $this->env->getExtension('Sonata\MediaBundle\Twig\Extension\MediaExtension')->thumbnail(twig_get_attribute($this->env$this->source, (isset($context["attributeGroup"]) || array_key_exists("attributeGroup"$context) ? $context["attributeGroup"] : (function () { throw new RuntimeError('Variable "attributeGroup" does not exist.'28$this->source); })()), "image", [], "any"falsefalsefalse28), "big", []);
  122.                 // line 29
  123.                 echo "                        ";
  124.             } else {
  125.                 // line 30
  126.                 echo "                            <img src=\"/images/hp.png\" alt=\"";
  127.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["attributeGroup"]) || array_key_exists("attributeGroup"$context) ? $context["attributeGroup"] : (function () { throw new RuntimeError('Variable "attributeGroup" does not exist.'30$this->source); })()), "name", [], "any"falsefalsefalse30), "html"nulltrue);
  128.                 echo "\" class=\"img-fluid\"/>
  129.                         ";
  130.             }
  131.             // line 32
  132.             echo "                    </div>
  133.                 ";
  134.         }
  135.         // line 34
  136.         echo "            </div>
  137.         </div>
  138.     </div>
  139. </div>
  140. ";
  141.         // line 38
  142.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["attributeGroup"]) || array_key_exists("attributeGroup"$context) ? $context["attributeGroup"] : (function () { throw new RuntimeError('Variable "attributeGroup" does not exist.'38$this->source); })()), "attributes", [], "any"falsefalsefalse38)) > 0)) {
  143.             // line 39
  144.             echo "    <div class=\"container-fluid mt-5\">
  145.         <div class=\"row text-center\">
  146.                 ";
  147.             // line 42
  148.             $context['_parent'] = $context;
  149.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["attributeGroup"]) || array_key_exists("attributeGroup"$context) ? $context["attributeGroup"] : (function () { throw new RuntimeError('Variable "attributeGroup" does not exist.'42$this->source); })()), "attributes", [], "any"falsefalsefalse42));
  150.             foreach ($context['_seq'] as $context["_key"] => $context["attribute"]) {
  151.                 // line 43
  152.                 echo "                    <div class=\"col-12 col-md-6 col-lg-3 mb-3\">
  153.                         <a style=\"height: 60px;\" class=\"btn btn-light w-100\" href=\"";
  154.                 // line 44
  155.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("attribute_group_attr_index", ["slug" => twig_get_attribute($this->env$this->source, (isset($context["attributeGroup"]) || array_key_exists("attributeGroup"$context) ? $context["attributeGroup"] : (function () { throw new RuntimeError('Variable "attributeGroup" does not exist.'44$this->source); })()), "identifier", [], "any"falsefalsefalse44), "attributeSlug" => twig_get_attribute($this->env$this->source$context["attribute"], "identifier", [], "any"falsefalsefalse44)]), "html"nulltrue);
  156.                 echo "\">";
  157.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["attribute"], "name", [], "any"falsefalsefalse44), "html"nulltrue);
  158.                 echo "</a>
  159.                     </div>
  160.                 ";
  161.             }
  162.             $_parent $context['_parent'];
  163.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attribute'], $context['_parent'], $context['loop']);
  164.             $context array_intersect_key($context$_parent) + $_parent;
  165.             // line 47
  166.             echo "
  167.         </div>
  168.     </div>
  169. ";
  170.         }
  171.         // line 51
  172.         echo "    ";
  173.         if ((twig_length_filter($this->env, (isset($context["submenuGroups"]) || array_key_exists("submenuGroups"$context) ? $context["submenuGroups"] : (function () { throw new RuntimeError('Variable "submenuGroups" does not exist.'51$this->source); })())) > 0)) {
  174.             // line 52
  175.             echo "        <div class=\"container-fluid mt-5\">
  176.             <div class=\"row\">
  177.                 ";
  178.             // line 54
  179.             $context['_parent'] = $context;
  180.             $context['_seq'] = twig_ensure_traversable((isset($context["submenuGroups"]) || array_key_exists("submenuGroups"$context) ? $context["submenuGroups"] : (function () { throw new RuntimeError('Variable "submenuGroups" does not exist.'54$this->source); })()));
  181.             foreach ($context['_seq'] as $context["_key"] => $context["attributeGroupSub"]) {
  182.                 // line 55
  183.                 echo "                    ";
  184.                 $context['_parent'] = $context;
  185.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["attributeGroupSub"], "attributes", [], "any"falsefalsefalse55));
  186.                 foreach ($context['_seq'] as $context["_key"] => $context["attribute"]) {
  187.                     // line 56
  188.                     echo "                        <div class=\"col-12 col-md-6 col-lg-3 mb-3\">
  189.                             <a style=\"height: 60px;\" class=\"btn btn-light w-100\" href=\"";
  190.                     // line 57
  191.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("attribute_group_attr_index", ["slug" => twig_get_attribute($this->env$this->source$context["attributeGroupSub"], "identifier", [], "any"falsefalsefalse57), "attributeSlug" => twig_get_attribute($this->env$this->source$context["attribute"], "identifier", [], "any"falsefalsefalse57)]), "html"nulltrue);
  192.                     echo "\">";
  193.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["attribute"], "name", [], "any"falsefalsefalse57), "html"nulltrue);
  194.                     echo "</a>
  195.                         </div>
  196.                     ";
  197.                 }
  198.                 $_parent $context['_parent'];
  199.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attribute'], $context['_parent'], $context['loop']);
  200.                 $context array_intersect_key($context$_parent) + $_parent;
  201.                 // line 60
  202.                 echo "                ";
  203.             }
  204.             $_parent $context['_parent'];
  205.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attributeGroupSub'], $context['_parent'], $context['loop']);
  206.             $context array_intersect_key($context$_parent) + $_parent;
  207.             // line 61
  208.             echo "            </div>
  209.         </div>
  210.     ";
  211.         }
  212.         // line 64
  213.         echo "<div class=\"container mt-5\">
  214.     <div class=\"row\">
  215.         ";
  216.         // line 66
  217.         $context['_parent'] = $context;
  218.         $context['_seq'] = twig_ensure_traversable((isset($context["courses"]) || array_key_exists("courses"$context) ? $context["courses"] : (function () { throw new RuntimeError('Variable "courses" does not exist.'66$this->source); })()));
  219.         $context['_iterated'] = false;
  220.         $context['loop'] = [
  221.           'parent' => $context['_parent'],
  222.           'index0' => 0,
  223.           'index'  => 1,
  224.           'first'  => true,
  225.         ];
  226.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  227.             $length count($context['_seq']);
  228.             $context['loop']['revindex0'] = $length 1;
  229.             $context['loop']['revindex'] = $length;
  230.             $context['loop']['length'] = $length;
  231.             $context['loop']['last'] = === $length;
  232.         }
  233.         foreach ($context['_seq'] as $context["_key"] => $context["course"]) {
  234.             // line 67
  235.             echo "            <div class=\"col-12\">
  236.                 ";
  237.             // line 68
  238.             $this->loadTemplate("course/item/default.html.twig""attributeGroup/index.html.twig"68)->display(twig_array_merge($context, ["course" => $context["course"]]));
  239.             // line 69
  240.             echo "            </div>
  241.         ";
  242.             $context['_iterated'] = true;
  243.             ++$context['loop']['index0'];
  244.             ++$context['loop']['index'];
  245.             $context['loop']['first'] = false;
  246.             if (isset($context['loop']['length'])) {
  247.                 --$context['loop']['revindex0'];
  248.                 --$context['loop']['revindex'];
  249.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  250.             }
  251.         }
  252.         if (!$context['_iterated']) {
  253.             // line 71
  254.             echo "            Nebyly nalezeny žádné kurzy
  255.         ";
  256.         }
  257.         $_parent $context['_parent'];
  258.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['course'], $context['_parent'], $context['loop']);
  259.         $context array_intersect_key($context$_parent) + $_parent;
  260.         // line 73
  261.         echo "
  262.         <div class=\"navigation\">
  263.             ";
  264.         // line 75
  265.         echo $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["courses"]) || array_key_exists("courses"$context) ? $context["courses"] : (function () { throw new RuntimeError('Variable "courses" does not exist.'75$this->source); })()));
  266.         echo "
  267.         </div>
  268.     </div>
  269. ";
  270.         
  271.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  272.         
  273.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  274.     }
  275.     // line 80
  276.     public function block_map($context, array $blocks = [])
  277.     {
  278.         $macros $this->macros;
  279.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  280.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""map"));
  281.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  282.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""map"));
  283.         // line 81
  284.         echo "    <script type=\"text/javascript\">
  285.         const locations = [
  286.             ";
  287.         // line 83
  288.         $context['_parent'] = $context;
  289.         $context['_seq'] = twig_ensure_traversable((isset($context["courses"]) || array_key_exists("courses"$context) ? $context["courses"] : (function () { throw new RuntimeError('Variable "courses" does not exist.'83$this->source); })()));
  290.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  291.             // line 84
  292.             echo "            ";
  293.             if (( !twig_test_empty(twig_get_attribute($this->env$this->source$context["item"], "latitude", [], "any"falsefalsefalse84)) &&  !twig_test_empty(twig_get_attribute($this->env$this->source$context["item"], "longitude", [], "any"falsefalsefalse84)))) {
  294.                 // line 85
  295.                 echo "            {
  296.                 'title': '";
  297.                 // line 86
  298.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse86), "html"nulltrue);
  299.                 echo "',
  300.                 'position': {lat: ";
  301.                 // line 87
  302.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "latitude", [], "any"falsefalsefalse87), "html"nulltrue);
  303.                 echo ", lng: ";
  304.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "longitude", [], "any"falsefalsefalse87), "html"nulltrue);
  305.                 echo " },
  306.                 ";
  307.                 // line 89
  308.                 echo "            },
  309.             ";
  310.             }
  311.             // line 92
  312.             echo "            ";
  313.         }
  314.         $_parent $context['_parent'];
  315.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  316.         $context array_intersect_key($context$_parent) + $_parent;
  317.         // line 93
  318.         echo "        ];
  319.     </script>
  320. ";
  321.         
  322.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  323.         
  324.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  325.     }
  326.     public function getTemplateName()
  327.     {
  328.         return "attributeGroup/index.html.twig";
  329.     }
  330.     public function isTraitable()
  331.     {
  332.         return false;
  333.     }
  334.     public function getDebugInfo()
  335.     {
  336.         return array (  345 => 93,  339 => 92,  334 => 89,  328 => 87,  324 => 86,  321 => 85,  318 => 84,  314 => 83,  310 => 81,  300 => 80,  286 => 75,  282 => 73,  275 => 71,  261 => 69,  259 => 68,  256 => 67,  238 => 66,  234 => 64,  229 => 61,  223 => 60,  212 => 57,  209 => 56,  204 => 55,  200 => 54,  196 => 52,  193 => 51,  187 => 47,  176 => 44,  173 => 43,  169 => 42,  164 => 39,  162 => 38,  156 => 34,  152 => 32,  146 => 30,  143 => 29,  140 => 28,  138 => 27,  135 => 26,  131 => 24,  129 => 23,  126 => 22,  124 => 21,  117 => 17,  112 => 15,  104 => 14,  99 => 11,  97 => 10,  92 => 7,  90 => 6,  80 => 5,  60 => 3,  37 => 1,);
  337.     }
  338.     public function getSourceContext()
  339.     {
  340.         return new Source("{% extends 'courses.html.twig' %}
  341. {% block title %}{{ attributeGroup.name }} | Všechny kurzy{% endblock %}
  342. {% block content %}
  343. {% set showMap = showMap|default(false) %}
  344. <div class=\"container-fluid\">
  345.     <div class=\"row\">
  346.         <div class=\"col-12 col-md-6 position-relative\">
  347.             {% include 'form/_searchForm.html.twig' %}
  348.         </div>
  349.         <div class=\"col-12 col-md-6 homepage-box d-md-block d-none\">
  350.             <div class=\"row\">
  351.                 <div class=\"col-{% if(showMap) %}12{% else %}6{% endif %}\">
  352.                     <h1>{{ attributeGroup.name }}</h1>
  353.                     <p>
  354.                         {{ attributeGroup.description }}
  355.                     </p>
  356.                 </div>
  357.                 {% if(showMap) %}
  358.                     <div class=\"col-12\">
  359.                         {% include 'course/map.html.twig' with courses %}
  360.                     </div>
  361.                 {% else %}
  362.                     <div class=\"col-6\">
  363.                         {% if(attributeGroup.image is not empty) %}
  364.                             {% thumbnail attributeGroup.image, 'big' %}
  365.                         {% else %}
  366.                             <img src=\"/images/hp.png\" alt=\"{{ attributeGroup.name }}\" class=\"img-fluid\"/>
  367.                         {% endif %}
  368.                     </div>
  369.                 {% endif %}
  370.             </div>
  371.         </div>
  372.     </div>
  373. </div>
  374. {% if(attributeGroup.attributes|length>0) %}
  375.     <div class=\"container-fluid mt-5\">
  376.         <div class=\"row text-center\">
  377.                 {% for attribute in attributeGroup.attributes %}
  378.                     <div class=\"col-12 col-md-6 col-lg-3 mb-3\">
  379.                         <a style=\"height: 60px;\" class=\"btn btn-light w-100\" href=\"{{ path('attribute_group_attr_index', {'slug': attributeGroup.identifier, 'attributeSlug': attribute.identifier}) }}\">{{ attribute.name }}</a>
  380.                     </div>
  381.                 {% endfor %}
  382.         </div>
  383.     </div>
  384. {% endif %}
  385.     {% if(submenuGroups|length>0) %}
  386.         <div class=\"container-fluid mt-5\">
  387.             <div class=\"row\">
  388.                 {% for attributeGroupSub in submenuGroups %}
  389.                     {% for attribute in attributeGroupSub.attributes %}
  390.                         <div class=\"col-12 col-md-6 col-lg-3 mb-3\">
  391.                             <a style=\"height: 60px;\" class=\"btn btn-light w-100\" href=\"{{ path('attribute_group_attr_index', {'slug': attributeGroupSub.identifier, 'attributeSlug': attribute.identifier}) }}\">{{ attribute.name }}</a>
  392.                         </div>
  393.                     {% endfor %}
  394.                 {% endfor %}
  395.             </div>
  396.         </div>
  397.     {% endif %}
  398. <div class=\"container mt-5\">
  399.     <div class=\"row\">
  400.         {% for course in courses %}
  401.             <div class=\"col-12\">
  402.                 {% include 'course/item/default.html.twig' with {'course': course} %}
  403.             </div>
  404.         {% else %}
  405.             Nebyly nalezeny žádné kurzy
  406.         {% endfor %}
  407.         <div class=\"navigation\">
  408.             {{ knp_pagination_render(courses) }}
  409.         </div>
  410.     </div>
  411. {% endblock %}
  412. {% block map %}
  413.     <script type=\"text/javascript\">
  414.         const locations = [
  415.             {% for item in courses %}
  416.             {% if(item.latitude is not empty and item.longitude is not empty) %}
  417.             {
  418.                 'title': '{{ item.name }}',
  419.                 'position': {lat: {{ item.latitude }}, lng: {{ item.longitude }} },
  420.                 {#'url': '{{ path('course_show', {'slug': item.slug}) }}'#}
  421.             },
  422.             {% endif %}
  423.             {% endfor %}
  424.         ];
  425.     </script>
  426. {% endblock %}
  427. ""attributeGroup/index.html.twig""/home/forge/vsechnykurzy.cz/templates/attributeGroup/index.html.twig");
  428.     }
  429. }