enables views_ui

This commit is contained in:
2024-12-11 01:10:53 +01:00
parent e28643712c
commit 9655aee9f3
13 changed files with 955 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
# Deny all requests from Apache 2.4+.
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
# Deny all requests from Apache 2.0-2.2.
<IfModule !mod_authz_core.c>
Deny from all
</IfModule>
# Turn off all options we don't need.
Options -Indexes -ExecCGI -Includes -MultiViews
# Set the catch-all handler to prevent scripts from being executed.
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
<Files *>
# Override the handler again if we're run later in the evaluation list.
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2013_003
</Files>
# If we know how to do it safely, disable the PHP engine entirely.
<IfModule mod_php.c>
php_flag engine off
</IfModule>

View File

@@ -0,0 +1,134 @@
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* core/themes/claro/templates/navigation/menu-local-task.html.twig */
class __TwigTemplate_dc6b8781eeec22d8cf06b6ffa8e3d5de extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->extensions[SandboxExtension::class];
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
// line 19
$context["classes"] = ["tabs__tab", ((( // line 21
($context["level"] ?? null) == "primary")) ? ("js-tab") : ("")), (( // line 22
($context["is_active"] ?? null)) ? ("is-active") : ("")), (( // line 23
($context["is_active"] ?? null)) ? ("js-active-tab") : (""))];
// line 26
yield "<li";
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, ($context["attributes"] ?? null), "addClass", [($context["classes"] ?? null)], "method", false, false, true, 26), 26, $this->source), "html", null, true);
yield ">
";
// line 27
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["link"] ?? null), 27, $this->source), "html", null, true);
yield "
";
// line 28
if ((($context["is_active"] ?? null) && (($context["level"] ?? null) == "primary"))) {
// line 29
yield " <button class=\"reset-appearance tabs__trigger\" type=\"button\" aria-label=\"";
yield $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar(t("Tabs display toggle"));
yield "\" data-drupal-nav-tabs-trigger>
";
// line 30
yield from $this->loadTemplate("@claro/../images/src/hamburger-menu.svg", "core/themes/claro/templates/navigation/menu-local-task.html.twig", 30)->unwrap()->yield($context);
// line 31
yield " </button>
";
}
// line 33
yield "</li>
";
$this->env->getExtension('\Drupal\Core\Template\TwigExtension')
->checkDeprecations($context, ["level", "is_active", "attributes", "link"]); yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "core/themes/claro/templates/navigation/menu-local-task.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 71 => 33, 67 => 31, 65 => 30, 60 => 29, 58 => 28, 54 => 27, 49 => 26, 47 => 23, 46 => 22, 45 => 21, 44 => 19,);
}
public function getSourceContext(): Source
{
return new Source("", "core/themes/claro/templates/navigation/menu-local-task.html.twig", "/home/spider_pig/src/php/farmOS-dev/web/core/themes/claro/templates/navigation/menu-local-task.html.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 19, "if" => 28, "include" => 30);
static $filters = array("escape" => 26, "t" => 29);
static $functions = array();
try {
$this->sandbox->checkSecurity(
['set', 'if', 'include'],
['escape', 't'],
[],
$this->source
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}