var/cache/dev/twig/a5/a5899a53edc1151d5b6c90cbee222e799750d7fc3802f8f080ea7fdfddd3d013.php line 51

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. /* course/show.html.twig */
  14. class __TwigTemplate_f4d263c4b068de3d81ffa9737b86e775a4bfbedbffefb70ebb857bb88e7552c9 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.             'main_content' => [$this'block_main_content'],
  25.             'menu' => [$this'block_menu'],
  26.             'content' => [$this'block_content'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "base.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""course/show.html.twig"));
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""course/show.html.twig"));
  41.         $this->parent $this->loadTemplate("base.html.twig""course/show.html.twig"1);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  45.         
  46.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  47.     }
  48.     // line 2
  49.     public function block_title($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  56.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'2$this->source); })()), "name", [], "any"falsefalsefalse2), "html"nulltrue);
  57.         echo " | Všechny kurzy";
  58.         
  59.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  60.         
  61.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  62.     }
  63.     // line 3
  64.     public function block_main_content($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""main_content"));
  69.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  70.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main_content"));
  71.         // line 4
  72.         echo "    ";
  73.         if (twig_get_attribute($this->env$this->source, (isset($context["GlobalUtil"]) || array_key_exists("GlobalUtil"$context) ? $context["GlobalUtil"] : (function () { throw new RuntimeError('Variable "GlobalUtil" does not exist.'4$this->source); })()), "isOrganizerOfCourse", [=> (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'4$this->source); })())], "method"falsefalsefalse4)) {
  74.             // line 5
  75.             echo "        <div class=\"container-fluid mt-5\">
  76.             <div class=\"row\">
  77.                 <div class=\"col-lg-2 col-12\">
  78.                     ";
  79.             // line 8
  80.             $this->displayBlock('menu'$context$blocks);
  81.             // line 18
  82.             echo "                </div>
  83.                 <div class=\"col-lg-10 col-12\">
  84.                     <div class=\"container\">
  85.                         ";
  86.             // line 22
  87.             $this->displayBlock('content'$context$blocks);
  88.             // line 25
  89.             echo "                    </div>
  90.                 </div>
  91.             </div>
  92.         </div>
  93.     ";
  94.         } else {
  95.             // line 30
  96.             echo "        ";
  97.             $this->loadTemplate("course/show/content.html.twig""course/show.html.twig"30)->display($context);
  98.             // line 31
  99.             echo "    ";
  100.         }
  101.         
  102.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  103.         
  104.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  105.     }
  106.     // line 8
  107.     public function block_menu($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""menu"));
  112.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  113.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu"));
  114.         // line 9
  115.         echo "                        ";
  116.         if (twig_get_attribute($this->env$this->source, (isset($context["GlobalUtil"]) || array_key_exists("GlobalUtil"$context) ? $context["GlobalUtil"] : (function () { throw new RuntimeError('Variable "GlobalUtil" does not exist.'9$this->source); })()), "isOrganizerOfCourse", [=> (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'9$this->source); })())], "method"falsefalsefalse9)) {
  117.             // line 10
  118.             echo "                            <div class=\"d-none d-lg-block\">
  119.                                 ";
  120.             // line 11
  121.             echo $this->extensions['Knp\Menu\Twig\MenuExtension']->render("organizer_menu", ["currentClass" => "menu-item-here""template" => "menu/main.html.twig"]);
  122.             echo "
  123.                             </div>
  124.                             <div class=\"menu-container-mobile d-lg-none\" id=\"mobile-menu\">
  125.                                 ";
  126.             // line 14
  127.             echo $this->extensions['Knp\Menu\Twig\MenuExtension']->render("organizer_menu", ["currentClass" => "menu-item-here""template" => "menu/main.html.twig"]);
  128.             echo "
  129.                             </div>
  130.                         ";
  131.         }
  132.         // line 17
  133.         echo "                    ";
  134.         
  135.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  136.         
  137.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  138.     }
  139.     // line 22
  140.     public function block_content($context, array $blocks = [])
  141.     {
  142.         $macros $this->macros;
  143.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  144.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  145.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  146.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  147.         // line 23
  148.         echo "                            ";
  149.         $this->loadTemplate("course/show/content.html.twig""course/show.html.twig"23)->display($context);
  150.         // line 24
  151.         echo "                        ";
  152.         
  153.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  154.         
  155.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  156.     }
  157.     public function getTemplateName()
  158.     {
  159.         return "course/show.html.twig";
  160.     }
  161.     public function isTraitable()
  162.     {
  163.         return false;
  164.     }
  165.     public function getDebugInfo()
  166.     {
  167.         return array (  181 => 24,  178 => 23,  168 => 22,  158 => 17,  152 => 14,  146 => 11,  143 => 10,  140 => 9,  130 => 8,  119 => 31,  116 => 30,  109 => 25,  107 => 22,  101 => 18,  99 => 8,  94 => 5,  91 => 4,  81 => 3,  61 => 2,  38 => 1,);
  168.     }
  169.     public function getSourceContext()
  170.     {
  171.         return new Source("{% extends 'base.html.twig' %}
  172. {% block title %}{{ course.name }} | Všechny kurzy{% endblock %}
  173. {% block main_content %}
  174.     {% if(GlobalUtil.isOrganizerOfCourse(course)) %}
  175.         <div class=\"container-fluid mt-5\">
  176.             <div class=\"row\">
  177.                 <div class=\"col-lg-2 col-12\">
  178.                     {% block menu %}
  179.                         {% if(GlobalUtil.isOrganizerOfCourse(course)) %}
  180.                             <div class=\"d-none d-lg-block\">
  181.                                 {{ knp_menu_render('organizer_menu',{ 'currentClass': 'menu-item-here', 'template' : 'menu/main.html.twig'}) }}
  182.                             </div>
  183.                             <div class=\"menu-container-mobile d-lg-none\" id=\"mobile-menu\">
  184.                                 {{ knp_menu_render('organizer_menu',{ 'currentClass': 'menu-item-here', 'template' : 'menu/main.html.twig'}) }}
  185.                             </div>
  186.                         {% endif %}
  187.                     {% endblock %}
  188.                 </div>
  189.                 <div class=\"col-lg-10 col-12\">
  190.                     <div class=\"container\">
  191.                         {% block content %}
  192.                             {% include 'course/show/content.html.twig' %}
  193.                         {% endblock %}
  194.                     </div>
  195.                 </div>
  196.             </div>
  197.         </div>
  198.     {% else %}
  199.         {% include 'course/show/content.html.twig' %}
  200.     {% endif %}
  201. {% endblock %}
  202. ""course/show.html.twig""/home/forge/vsechnykurzy.cz/templates/course/show.html.twig");
  203.     }
  204. }