var/cache/dev/twig/6e/6eaf4fc729e453558d9a761f2d70019f8c9bb9bfaed6bf8f3be738779171ca37.php line 67

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* @System/layouts/system_layout.html.twig */
  15. class __TwigTemplate_0926bb30bf55e033c4cc8171cbae7cae248314e9601d40990ca4ad8ec5a9dbf4 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->blocks = [
  24.             'sidebar_nav' => [$this'block_sidebar_nav'],
  25.             'sidebar_footer' => [$this'block_sidebar_footer'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 33
  31.         return "@Application/framework/cp_module_layout.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""@System/layouts/system_layout.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""@System/layouts/system_layout.html.twig"));
  40.         // line 35
  41.         $context["module_brand"] = "Administration";
  42.         // line 36
  43.         $context["module_context"] = "System & Access";
  44.         // line 37
  45.         $context["module_icon"] = "settings";
  46.         // line 38
  47.         $context["module_accent"] = "#546074";
  48.         // line 39
  49.         $context["module_accent_hover"] = "#445063";
  50.         // line 40
  51.         $context["module_accent_dim"] = "rgba(84,96,116,.10)";
  52.         // line 41
  53.         $context["active_module"] = "admin";
  54.         // line 42
  55.         $context["active"] = ((array_key_exists("active"$context)) ? (Twig\Extension\CoreExtension::default((isset($context["active"]) || array_key_exists("active"$context) ? $context["active"] : (function () { throw new RuntimeError('Variable "active" does not exist.'42$this->source); })()), "")) : (""));
  56.         // line 33
  57.         $this->parent $this->loadTemplate("@Application/framework/cp_module_layout.html.twig""@System/layouts/system_layout.html.twig"33);
  58.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  59.         
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  61.         
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  63.     }
  64.     // line 44
  65.     public function block_sidebar_nav($context, array $blocks = [])
  66.     {
  67.         $macros $this->macros;
  68.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  69.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sidebar_nav"));
  70.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  71.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sidebar_nav"));
  72.         yield from         $this->loadTemplate("@Application/framework/_admin_nav.html.twig""@System/layouts/system_layout.html.twig"44)->unwrap()->yield($context);
  73.         
  74.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  75.         
  76.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  77.         return; yield '';
  78.     }
  79.     // line 46
  80.     public function block_sidebar_footer($context, array $blocks = [])
  81.     {
  82.         $macros $this->macros;
  83.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  84.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sidebar_footer"));
  85.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  86.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sidebar_footer"));
  87.         // line 47
  88.         yield "  <a href=\"";
  89.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard");
  90.         yield "\" class=\"cp-nav-link\" style=\"font-size:12px;\">
  91.     <span class=\"cp-nav-icon\"><i class=\"material-icons\" style=\"font-size:14px\">arrow_back</i></span>
  92.     <span>Back to ERP</span></a>
  93. ";
  94.         
  95.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  96.         
  97.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  98.         return; yield '';
  99.     }
  100.     /**
  101.      * @codeCoverageIgnore
  102.      */
  103.     public function getTemplateName()
  104.     {
  105.         return "@System/layouts/system_layout.html.twig";
  106.     }
  107.     /**
  108.      * @codeCoverageIgnore
  109.      */
  110.     public function isTraitable()
  111.     {
  112.         return false;
  113.     }
  114.     /**
  115.      * @codeCoverageIgnore
  116.      */
  117.     public function getDebugInfo()
  118.     {
  119.         return array (  107 => 47,  97 => 46,  77 => 44,  66 => 33,  64 => 42,  62 => 41,  60 => 40,  58 => 39,  56 => 38,  54 => 37,  52 => 36,  50 => 35,  37 => 33,);
  120.     }
  121.     public function getSourceContext()
  122.     {
  123.         return new Source("{#
  124.   @System/layouts/system_layout.html.twig
  125.   ══════════════════════════════════════════════════════════════════════════════
  126.   cp-shell layout for the System / Administration pages — users, permissions,
  127.   approval settings, company records, files, change log.
  128.   A page does:
  129.       {% extends '@System/layouts/system_layout.html.twig' %}
  130.       {% set active = 'approval_settings' %}
  131.       {% set page_title = 'Approval Settings' %}
  132.       {% block body %} … {% endblock %}
  133.   Two deliberate choices, both from HONEYBEE_UI_UNIFICATION_PLAN.md:
  134.   1. EXTENDS the framework layout instead of re-implementing the shell.
  135.      tax_layout and ca_layout each paste their own copy of .cp-shell/.cp-sidebar
  136.      into a local <style>. That holds until the framework moves, and then those
  137.      modules drift silently — the exact debt this phase exists to stop. Everything
  138.      here comes from cp_module_layout, so there is one shell, not three.
  139.   2. The nav is the EXISTING @Application/framework/_admin_nav.html.twig, not a
  140.      new one. It already links these routes (system_admin_user_list,
  141.      approval_settings, module_access_settings, company_list,
  142.      file_management_list, change_log …). A second admin nav would have added an
  143.      11th vocabulary in the phase that argues for converging the existing ten.
  144.   Identity is set inline, matching sales_layout. There IS a registry
  145.   (_cp_module_profiles) meant to hold this, but it has no consumers and its
  146.   documented usage — {% include %} then read the variable — cannot work here:
  147.   `include` emits output, and a template that extends another may not emit before
  148.   its blocks. Left alone rather than half-adopted.
  149. #}
  150. {% extends '@Application/framework/cp_module_layout.html.twig' %}
  151. {% set module_brand        = 'Administration' %}
  152. {% set module_context      = 'System & Access' %}
  153. {% set module_icon         = 'settings' %}
  154. {% set module_accent       = '#546074' %}
  155. {% set module_accent_hover = '#445063' %}
  156. {% set module_accent_dim   = 'rgba(84,96,116,.10)' %}
  157. {% set active_module       = 'admin' %}
  158. {% set active              = active|default('') %}
  159. {% block sidebar_nav %}{% include '@Application/framework/_admin_nav.html.twig' %}{% endblock %}
  160. {% block sidebar_footer %}
  161.   <a href=\"{{ path('dashboard') }}\" class=\"cp-nav-link\" style=\"font-size:12px;\">
  162.     <span class=\"cp-nav-icon\"><i class=\"material-icons\" style=\"font-size:14px\">arrow_back</i></span>
  163.     <span>Back to ERP</span></a>
  164. {% endblock %}
  165. ""@System/layouts/system_layout.html.twig""/home/u405565514/domains/ourhoneybee.eu/public_html/honeybee_main/src/ApplicationBundle/Modules/System/Resources/views/layouts/system_layout.html.twig");
  166.     }
  167. }