var/cache/dev/twig/1e/1e06dcf1feb244c622b3d7f2aeb7e0aa299f1394b2d3ac97538dd3449f07b5df.php line 33

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. /* admin/partial/sous_top_menu.html.twig */
  14. class __TwigTemplate_2216deeeb8f44c975fce80a0d2aa64e32f29d82e32445c27a2e08cf8d1ca4ed8 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""admin/partial/sous_top_menu.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""admin/partial/sous_top_menu.html.twig"));
  33.         // line 1
  34.         echo "<div class=\"sous-top-menu main-header\">
  35. \t<div class=\"col-lg-6 main_header_titel\">
  36. \t\t";
  37.         // line 3
  38.         if ((array_key_exists("header_titel"$context) && (isset($context["header_titel"]) || array_key_exists("header_titel"$context) ? $context["header_titel"] : (function () { throw new RuntimeError('Variable "header_titel" does not exist.'3$this->source); })()))) {
  39.             // line 4
  40.             echo "\t\t\t<h4 class=\"header-titel-text\">";
  41.             echo twig_escape_filter($this->env, (isset($context["header_titel"]) || array_key_exists("header_titel"$context) ? $context["header_titel"] : (function () { throw new RuntimeError('Variable "header_titel" does not exist.'4$this->source); })()), "html"nulltrue);
  42.             echo "</h4>
  43. \t\t";
  44.         }
  45.         // line 6
  46.         echo "\t</div>
  47. \t";
  48.         // line 7
  49.         if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN") || twig_in_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'7$this->source); })()), "request", [], "any"falsefalsefalse7), "attributes", [], "any"falsefalsefalse7), "get", [=> "_route"], "method"falsefalsefalse7), [=> "edit_client_user_front"=> "edit_client_front"=> "edit_project"=> "show_project_devis"=> "project_factures"=> "show_project_livrables"=> "project_documents"=> "admin_projects_access"]))) {
  50.             // line 8
  51.             echo "\t\t<div class=\"col-lg-6\">
  52. \t\t\t";
  53.             // line 9
  54.             if ((array_key_exists("breadcumb"$context) && (isset($context["breadcumb"]) || array_key_exists("breadcumb"$context) ? $context["breadcumb"] : (function () { throw new RuntimeError('Variable "breadcumb" does not exist.'9$this->source); })()))) {
  55.                 // line 10
  56.                 echo "\t\t\t\t<nav aria-label=\"breadcrumb\" class=\"breadcrumb-nav\">
  57. \t\t\t\t\t<ol class=\"breadcrumb\">
  58. \t\t\t\t\t\t";
  59.                 // line 12
  60.                 $context['_parent'] = $context;
  61.                 $context['_seq'] = twig_ensure_traversable((isset($context["breadcumb"]) || array_key_exists("breadcumb"$context) ? $context["breadcumb"] : (function () { throw new RuntimeError('Variable "breadcumb" does not exist.'12$this->source); })()));
  62.                 $context['loop'] = [
  63.                   'parent' => $context['_parent'],
  64.                   'index0' => 0,
  65.                   'index'  => 1,
  66.                   'first'  => true,
  67.                 ];
  68.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  69.                     $length count($context['_seq']);
  70.                     $context['loop']['revindex0'] = $length 1;
  71.                     $context['loop']['revindex'] = $length;
  72.                     $context['loop']['length'] = $length;
  73.                     $context['loop']['last'] = === $length;
  74.                 }
  75.                 foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  76.                     // line 13
  77.                     echo "\t\t\t\t\t\t\t<li class=\"breadcrumb-item";
  78.                     if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse13)) {
  79.                         echo " breadcrumb-item-active";
  80.                     }
  81.                     echo "\">
  82. \t\t\t\t\t\t\t\t";
  83.                     // line 14
  84.                     if ( !twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse14)) {
  85.                         // line 15
  86.                         echo "\t\t\t\t\t\t\t\t\t<a href=\"";
  87.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "url", [], "any"falsefalsefalse15), "html"nulltrue);
  88.                         echo "\" title=\"";
  89.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse15), "html"nulltrue);
  90.                         echo "\">";
  91.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse15), "html"nulltrue);
  92.                         echo "</a>
  93. \t\t\t\t\t\t\t\t";
  94.                     } else {
  95.                         // line 17
  96.                         echo "\t\t\t\t\t\t\t\t\t";
  97.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse17), "html"nulltrue);
  98.                         echo "
  99. \t\t\t\t\t\t\t\t";
  100.                     }
  101.                     // line 19
  102.                     echo "\t\t\t\t\t\t\t</li>
  103. \t\t\t\t\t\t\t";
  104.                     // line 21
  105.                     if ( !twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse21)) {
  106.                         // line 22
  107.                         echo "\t\t\t\t\t\t\t\t<li class=\"breadcrumb-separator\" aria-hidden=\"true\">></li>
  108. \t\t\t\t\t\t\t";
  109.                     }
  110.                     // line 24
  111.                     echo "\t\t\t\t\t\t";
  112.                     ++$context['loop']['index0'];
  113.                     ++$context['loop']['index'];
  114.                     $context['loop']['first'] = false;
  115.                     if (isset($context['loop']['length'])) {
  116.                         --$context['loop']['revindex0'];
  117.                         --$context['loop']['revindex'];
  118.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  119.                     }
  120.                 }
  121.                 $_parent $context['_parent'];
  122.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  123.                 $context array_intersect_key($context$_parent) + $_parent;
  124.                 // line 25
  125.                 echo "\t\t\t\t\t</ol>
  126. \t\t\t\t</nav>
  127. \t\t\t";
  128.             }
  129.             // line 28
  130.             echo "\t\t</div>
  131. \t";
  132.         }
  133.         // line 30
  134.         echo "</div>
  135. ";
  136.         
  137.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  138.         
  139.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  140.     }
  141.     public function getTemplateName()
  142.     {
  143.         return "admin/partial/sous_top_menu.html.twig";
  144.     }
  145.     public function isTraitable()
  146.     {
  147.         return false;
  148.     }
  149.     public function getDebugInfo()
  150.     {
  151.         return array (  144 => 30,  140 => 28,  135 => 25,  121 => 24,  117 => 22,  115 => 21,  111 => 19,  105 => 17,  95 => 15,  93 => 14,  86 => 13,  69 => 12,  65 => 10,  63 => 9,  60 => 8,  58 => 7,  55 => 6,  49 => 4,  47 => 3,  43 => 1,);
  152.     }
  153.     public function getSourceContext()
  154.     {
  155.         return new Source("<div class=\"sous-top-menu main-header\">
  156. \t<div class=\"col-lg-6 main_header_titel\">
  157. \t\t{% if header_titel is defined and header_titel %}
  158. \t\t\t<h4 class=\"header-titel-text\">{{header_titel}}</h4>
  159. \t\t{% endif %}
  160. \t</div>
  161. \t{% if is_granted('ROLE_ADMIN') or app.request.attributes.get('_route') in  ['edit_client_user_front' , 'edit_client_front' , 'edit_project','show_project_devis','project_factures' ,'show_project_livrables','project_documents','admin_projects_access']%}
  162. \t\t<div class=\"col-lg-6\">
  163. \t\t\t{% if breadcumb is defined and breadcumb %}
  164. \t\t\t\t<nav aria-label=\"breadcrumb\" class=\"breadcrumb-nav\">
  165. \t\t\t\t\t<ol class=\"breadcrumb\">
  166. \t\t\t\t\t\t{% for item in breadcumb %}
  167. \t\t\t\t\t\t\t<li class=\"breadcrumb-item{% if loop.last %} breadcrumb-item-active{% endif %}\">
  168. \t\t\t\t\t\t\t\t{% if not loop.last %}
  169. \t\t\t\t\t\t\t\t\t<a href=\"{{ item.url }}\" title=\"{{ item.name }}\">{{ item.name }}</a>
  170. \t\t\t\t\t\t\t\t{% else %}
  171. \t\t\t\t\t\t\t\t\t{{ item.name }}
  172. \t\t\t\t\t\t\t\t{% endif %}
  173. \t\t\t\t\t\t\t</li>
  174. \t\t\t\t\t\t\t{% if not loop.last %}
  175. \t\t\t\t\t\t\t\t<li class=\"breadcrumb-separator\" aria-hidden=\"true\">></li>
  176. \t\t\t\t\t\t\t{% endif %}
  177. \t\t\t\t\t\t{% endfor %}
  178. \t\t\t\t\t</ol>
  179. \t\t\t\t</nav>
  180. \t\t\t{% endif %}
  181. \t\t</div>
  182. \t{% endif %}
  183. </div>
  184. ""admin/partial/sous_top_menu.html.twig""/var/www/prod/portfolio/templates/admin/partial/sous_top_menu.html.twig");
  185.     }
  186. }