Initial Drupal 11 with DDEV setup

This commit is contained in:
gluebox
2025-10-08 11:39:17 -04:00
commit 89ef74b305
25344 changed files with 2599172 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,317 @@
<?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/olivero/templates/navigation/pager.html.twig */
class __TwigTemplate_2efc58da926efde2819c6db9989f4eb3 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 34
if ((($tmp = ($context["items"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 35
yield " <nav class=\"pager\" role=\"navigation\" aria-labelledby=\"";
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["heading_id"] ?? null), "html", null, true);
yield "\">
<";
// line 36
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["pagination_heading_level"] ?? null), "html", null, true);
yield " id=\"";
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["heading_id"] ?? null), "html", null, true);
yield "\" class=\"visually-hidden\">";
yield $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar(t("Pagination"));
yield "</";
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["pagination_heading_level"] ?? null), "html", null, true);
yield ">
<ul class=\"pager__items js-pager__items\">
";
// line 39
yield " ";
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["items"] ?? null), "first", [], "any", false, false, true, 39)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 40
yield " <li class=\"pager__item pager__item--control pager__item--first\">
<a href=\"";
// line 41
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["items"] ?? null), "first", [], "any", false, false, true, 41), "href", [], "any", false, false, true, 41), "html", null, true);
yield "\" title=\"";
yield $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar(t("Go to first page"));
yield "\"";
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Drupal\Core\Template\TwigExtension']->withoutFilter(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["items"] ?? null), "first", [], "any", false, false, true, 41), "attributes", [], "any", false, false, true, 41), "href", "title"), "addClass", ["pager__link"], "method", false, false, true, 41), "html", null, true);
yield ">
<span class=\"visually-hidden\">";
// line 42
yield $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar(t("First page"));
yield "</span>";
// line 43
yield from $this->load("@olivero/../images/pager-first.svg", 43)->unwrap()->yield($context);
// line 44
yield "</a>
</li>
";
}
// line 47
yield "
";
// line 49
yield " ";
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["items"] ?? null), "previous", [], "any", false, false, true, 49)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 50
yield " <li class=\"pager__item pager__item--control pager__item--previous\">
<a href=\"";
// line 51
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["items"] ?? null), "previous", [], "any", false, false, true, 51), "href", [], "any", false, false, true, 51), "html", null, true);
yield "\" title=\"";
yield $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar(t("Go to previous page"));
yield "\" rel=\"prev\"";
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Drupal\Core\Template\TwigExtension']->withoutFilter(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["items"] ?? null), "previous", [], "any", false, false, true, 51), "attributes", [], "any", false, false, true, 51), "href", "title", "rel"), "addClass", ["pager__link"], "method", false, false, true, 51), "html", null, true);
yield ">
<span class=\"visually-hidden\">";
// line 52
yield $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar(t("Previous page"));
yield "</span>";
// line 53
yield from $this->load("@olivero/../images/pager-previous.svg", 53)->unwrap()->yield($context);
// line 54
yield "</a>
</li>
";
}
// line 57
yield "
";
// line 59
yield " ";
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["ellipses"] ?? null), "previous", [], "any", false, false, true, 59)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 60
yield " <li class=\"pager__item pager__item--ellipsis\" role=\"presentation\">&hellip;</li>
";
}
// line 62
yield "
";
// line 64
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, ($context["items"] ?? null), "pages", [], "any", false, false, true, 64));
foreach ($context['_seq'] as $context["key"] => $context["item"]) {
// line 65
yield " <li class=\"pager__item";
yield $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar((((($context["current"] ?? null) == $context["key"])) ? (" pager__item--active") : ("")));
yield " pager__item--number\">
";
// line 66
if ((($context["current"] ?? null) == $context["key"])) {
// line 67
yield " ";
$context["title"] = t("Current page");
// line 68
yield " ";
} else {
// line 69
yield " ";
$context["title"] = t("Go to page @key", ["@key" => $context["key"]]);
// line 70
yield " ";
}
// line 71
yield " ";
if ((($context["current"] ?? null) != $context["key"])) {
// line 72
yield " <a href=\"";
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "href", [], "any", false, false, true, 72), "html", null, true);
yield "\" title=\"";
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["title"] ?? null), "html", null, true);
yield "\"";
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Drupal\Core\Template\TwigExtension']->withoutFilter(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "attributes", [], "any", false, false, true, 72), "href", "title"), "addClass", ["pager__link", (((($context["current"] ?? null) == $context["key"])) ? (" is-active") : (""))], "method", false, false, true, 72), "html", null, true);
yield ">
";
}
// line 74
yield " <span class=\"visually-hidden\">
";
// line 75
yield $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar(t("Page"));
yield "
</span>
";
// line 77
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, $context["key"], "html", null, true);
yield "
";
// line 78
if ((($context["current"] ?? null) != $context["key"])) {
// line 79
yield " </a>
";
}
// line 81
yield " </li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['key'], $context['item'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 83
yield "
";
// line 85
yield " ";
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["ellipses"] ?? null), "next", [], "any", false, false, true, 85)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 86
yield " <li class=\"pager__item pager__item--ellipsis\" role=\"presentation\">&hellip;</li>
";
}
// line 88
yield "
";
// line 90
yield " ";
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["items"] ?? null), "next", [], "any", false, false, true, 90)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 91
yield " <li class=\"pager__item pager__item--control pager__item--next\">
<a href=\"";
// line 92
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["items"] ?? null), "next", [], "any", false, false, true, 92), "href", [], "any", false, false, true, 92), "html", null, true);
yield "\" title=\"";
yield $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar(t("Go to next page"));
yield "\" rel=\"next\"";
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Drupal\Core\Template\TwigExtension']->withoutFilter(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["items"] ?? null), "next", [], "any", false, false, true, 92), "attributes", [], "any", false, false, true, 92), "href", "title", "rel"), "addClass", ["pager__link"], "method", false, false, true, 92), "html", null, true);
yield ">
<span class=\"visually-hidden\">";
// line 93
yield $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar(t("Next page"));
yield "</span>";
// line 94
yield from $this->load("@olivero/../images/pager-previous.svg", 94)->unwrap()->yield($context);
// line 95
yield "</a>
</li>
";
}
// line 98
yield "
";
// line 100
yield " ";
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["items"] ?? null), "last", [], "any", false, false, true, 100)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 101
yield " <li class=\"pager__item pager__item--control pager__item--last\">
<a href=\"";
// line 102
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["items"] ?? null), "last", [], "any", false, false, true, 102), "href", [], "any", false, false, true, 102), "html", null, true);
yield "\" title=\"";
yield $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar(t("Go to last page"));
yield "\"";
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Drupal\Core\Template\TwigExtension']->withoutFilter(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["items"] ?? null), "last", [], "any", false, false, true, 102), "attributes", [], "any", false, false, true, 102), "href", "title"), "addClass", ["pager__link"], "method", false, false, true, 102), "html", null, true);
yield ">
<span class=\"visually-hidden\">";
// line 103
yield $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar(t("Last page"));
yield "</span>";
// line 104
yield from $this->load("@olivero/../images/pager-first.svg", 104)->unwrap()->yield($context);
// line 105
yield "</a>
</li>
";
}
// line 108
yield " </ul>
</nav>
";
}
$this->env->getExtension('\Drupal\Core\Template\TwigExtension')
->checkDeprecations($context, ["items", "heading_id", "pagination_heading_level", "ellipses", "current"]); yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "core/themes/olivero/templates/navigation/pager.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 252 => 108, 247 => 105, 245 => 104, 242 => 103, 234 => 102, 231 => 101, 228 => 100, 225 => 98, 220 => 95, 218 => 94, 215 => 93, 207 => 92, 204 => 91, 201 => 90, 198 => 88, 194 => 86, 191 => 85, 188 => 83, 181 => 81, 177 => 79, 175 => 78, 171 => 77, 166 => 75, 163 => 74, 153 => 72, 150 => 71, 147 => 70, 144 => 69, 141 => 68, 138 => 67, 136 => 66, 131 => 65, 126 => 64, 123 => 62, 119 => 60, 116 => 59, 113 => 57, 108 => 54, 106 => 53, 103 => 52, 95 => 51, 92 => 50, 89 => 49, 86 => 47, 81 => 44, 79 => 43, 76 => 42, 68 => 41, 65 => 40, 62 => 39, 51 => 36, 46 => 35, 44 => 34,);
}
public function getSourceContext(): Source
{
return new Source("", "core/themes/olivero/templates/navigation/pager.html.twig", "/var/www/html/web/core/themes/olivero/templates/navigation/pager.html.twig");
}
public function checkSecurity()
{
static $tags = ["if" => 34, "include" => 43, "for" => 64, "set" => 67];
static $filters = ["escape" => 35, "t" => 36, "without" => 41];
static $functions = [];
try {
$this->sandbox->checkSecurity(
['if', 'include', 'for', 'set'],
['escape', 't', 'without'],
[],
$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;
}
}
}