322 lines
10 KiB
PHP
Executable File
322 lines
10 KiB
PHP
Executable File
<?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;
|
|
|
|
/* layouts/base.twig */
|
|
class __TwigTemplate_701120f820c65877c3edabf3f7b0cf8a 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 = [
|
|
'title' => [$this, 'block_title'],
|
|
'head' => [$this, 'block_head'],
|
|
'layout_navbar' => [$this, 'block_layout_navbar'],
|
|
'layout_body' => [$this, 'block_layout_body'],
|
|
'content' => [$this, 'block_content'],
|
|
'layout_footer' => [$this, 'block_layout_footer'],
|
|
'scripts' => [$this, 'block_scripts'],
|
|
];
|
|
}
|
|
|
|
protected function doDisplay(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
// line 1
|
|
yield "<!DOCTYPE html>
|
|
<html lang=\"";
|
|
// line 2
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::default($this->env->getFunction('session')->getCallable()("lang"), "pt-BR"), "html", null, true);
|
|
yield "\">
|
|
<head>
|
|
<meta charset=\"utf-8\">
|
|
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
|
|
|
|
<title>";
|
|
// line 7
|
|
yield from $this->unwrap()->yieldBlock('title', $context, $blocks);
|
|
yield "</title>
|
|
|
|
";
|
|
// line 10
|
|
yield " <link rel=\"stylesheet\" href=\"";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('asset_url')->getCallable()("css/bootstrap.min.css"), "html", null, true);
|
|
yield "\">
|
|
|
|
";
|
|
// line 13
|
|
yield " <link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css\">
|
|
|
|
";
|
|
// line 16
|
|
yield " <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.11.3/css/lightbox.min.css\">
|
|
|
|
";
|
|
// line 19
|
|
yield " <link rel=\"stylesheet\" href=\"";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('theme_asset')->getCallable()("css/style.css"), "html", null, true);
|
|
yield "\">
|
|
<link rel=\"stylesheet\" href=\"";
|
|
// line 20
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('theme_url')->getCallable()("style.css"), "html", null, true);
|
|
yield "\">
|
|
|
|
";
|
|
// line 23
|
|
yield " <script src=\"https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js\" defer></script>
|
|
|
|
";
|
|
// line 25
|
|
yield from $this->unwrap()->yieldBlock('head', $context, $blocks);
|
|
// line 26
|
|
yield "</head>
|
|
|
|
<body class=\"theme-";
|
|
// line 28
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["active_theme"] ?? null), "html", null, true);
|
|
yield "\">
|
|
|
|
";
|
|
// line 30
|
|
yield from $this->unwrap()->yieldBlock('layout_navbar', $context, $blocks);
|
|
// line 34
|
|
yield "
|
|
";
|
|
// line 35
|
|
yield from $this->unwrap()->yieldBlock('layout_body', $context, $blocks);
|
|
// line 40
|
|
yield "
|
|
";
|
|
// line 41
|
|
yield from $this->unwrap()->yieldBlock('layout_footer', $context, $blocks);
|
|
// line 45
|
|
yield "
|
|
";
|
|
// line 47
|
|
yield " <script src=\"";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('asset_url')->getCallable()("js/bootstrap.bundle.js"), "html", null, true);
|
|
yield "\"></script>
|
|
|
|
";
|
|
// line 50
|
|
yield " <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js\"></script>
|
|
|
|
";
|
|
// line 53
|
|
yield " <script src=\"https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.11.3/js/lightbox.min.js\"></script>
|
|
<script>
|
|
if (typeof lightbox !== 'undefined') {
|
|
lightbox.option({
|
|
'resizeDuration': 200,
|
|
'wrapAround': true,
|
|
'albumLabel': \"";
|
|
// line 59
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::default($this->env->getFunction('__')->getCallable()("layout.lightbox.image_of"), "Imagem %1 de %2"), "html", null, true);
|
|
yield "\",
|
|
'fadeDuration': 300,
|
|
'imageFadeDuration': 300
|
|
});
|
|
}
|
|
</script>
|
|
|
|
";
|
|
// line 66
|
|
yield from $this->unwrap()->yieldBlock('scripts', $context, $blocks);
|
|
// line 67
|
|
yield "
|
|
";
|
|
// line 69
|
|
yield " <link rel=\"stylesheet\" type=\"text/css\" href=\"/consent/cookieconsent.min.css\" />
|
|
<script src=\"/consent/cookieconsent.min.js\"></script>
|
|
<script>
|
|
window.addEventListener(\"load\", function(){
|
|
window.cookieconsent.initialise({
|
|
\"palette\": {
|
|
\"popup\": { \"background\": \"#216942\", \"text\": \"#b2d192\" },
|
|
\"button\": { \"background\": \"#afed71\" }
|
|
},
|
|
\"content\": {
|
|
\"message\": \"";
|
|
// line 79
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("layout.cookie_consent.message"), "html", null, true);
|
|
yield "\",
|
|
\"dismiss\": \"";
|
|
// line 80
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("layout.cookie_consent.dismiss"), "html", null, true);
|
|
yield "\",
|
|
\"link\": \"";
|
|
// line 81
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("layout.footer.terms"), "html", null, true);
|
|
yield "\",
|
|
\"href\": \"/user_terms.html\"
|
|
}
|
|
})});
|
|
</script>
|
|
</body>
|
|
</html>
|
|
";
|
|
yield from [];
|
|
}
|
|
|
|
// line 7
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_title(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("title", $context)) ? (Twig\Extension\CoreExtension::default(($context["title"] ?? null), ($context["platformName"] ?? null))) : (($context["platformName"] ?? null))), "html", null, true);
|
|
yield from [];
|
|
}
|
|
|
|
// line 25
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_head(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
yield from [];
|
|
}
|
|
|
|
// line 30
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_layout_navbar(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
// line 31
|
|
yield " ";
|
|
// line 32
|
|
yield " ";
|
|
try {
|
|
$_v0 = $this->load("partials/nav-bar.twig", 32);
|
|
} catch (LoaderError $e) {
|
|
// ignore missing template
|
|
$_v0 = null;
|
|
}
|
|
if ($_v0) {
|
|
yield from $_v0->unwrap()->yield($context);
|
|
}
|
|
// line 33
|
|
yield " ";
|
|
yield from [];
|
|
}
|
|
|
|
// line 35
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_layout_body(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
// line 36
|
|
yield " <main class=\"container py-4\">
|
|
";
|
|
// line 37
|
|
yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
|
|
// line 38
|
|
yield " </main>
|
|
";
|
|
yield from [];
|
|
}
|
|
|
|
// line 37
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_content(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
yield from [];
|
|
}
|
|
|
|
// line 41
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_layout_footer(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
// line 42
|
|
yield " ";
|
|
// line 43
|
|
yield " ";
|
|
try {
|
|
$_v1 = $this->load("partials/footer.twig", 43);
|
|
} catch (LoaderError $e) {
|
|
// ignore missing template
|
|
$_v1 = null;
|
|
}
|
|
if ($_v1) {
|
|
yield from $_v1->unwrap()->yield($context);
|
|
}
|
|
// line 44
|
|
yield " ";
|
|
yield from [];
|
|
}
|
|
|
|
// line 66
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_scripts(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
yield from [];
|
|
}
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*/
|
|
public function getTemplateName(): string
|
|
{
|
|
return "layouts/base.twig";
|
|
}
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*/
|
|
public function isTraitable(): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*/
|
|
public function getDebugInfo(): array
|
|
{
|
|
return array ( 284 => 66, 279 => 44, 268 => 43, 266 => 42, 259 => 41, 249 => 37, 243 => 38, 241 => 37, 238 => 36, 231 => 35, 226 => 33, 215 => 32, 213 => 31, 206 => 30, 196 => 25, 185 => 7, 172 => 81, 168 => 80, 164 => 79, 152 => 69, 149 => 67, 147 => 66, 137 => 59, 129 => 53, 125 => 50, 119 => 47, 116 => 45, 114 => 41, 111 => 40, 109 => 35, 106 => 34, 104 => 30, 99 => 28, 95 => 26, 93 => 25, 89 => 23, 84 => 20, 79 => 19, 75 => 16, 71 => 13, 65 => 10, 60 => 7, 52 => 2, 49 => 1,);
|
|
}
|
|
|
|
public function getSourceContext(): Source
|
|
{
|
|
return new Source("", "layouts/base.twig", "/app/themes/default/views/layouts/base.twig");
|
|
}
|
|
}
|