<?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;
/* /pages/page.html.twig */
class __TwigTemplate_3f6ed57fcc712d2f300c92a3bf226d89 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->blocks = [
'customcss' => [$this, 'block_customcss'],
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 2
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "/pages/page.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "/pages/page.html.twig"));
$this->parent = $this->load("base.html.twig", 2);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 4
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_customcss(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "customcss"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "customcss"));
// line 5
yield " ";
yield from $this->yieldParentBlock("customcss", $context, $blocks);
yield "
<link rel=\"stylesheet\" type=\"text/css\" href=\"/assets/custom/css/media.min.";
// line 6
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 6, $this->source); })()), "request", [], "any", false, false, false, 6), "server", [], "any", false, false, false, 6), "get", ["APP_PREVCACHE"], "method", false, false, false, 6), "html", null, true);
yield ".css\" />
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 9
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_body(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 10
yield "
<div class=\" ms-hero-page ms-hero-bg-info mb-6\" style=\"background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('";
// line 11
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 11, $this->source); })()), "picture", [], "any", false, false, false, 11), "small", [], "any", false, false, false, 11), "html", null, true);
yield "');\">
";
// line 13
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageinfo"]) || array_key_exists("pageinfo", $context) ? $context["pageinfo"] : (function () { throw new RuntimeError('Variable "pageinfo" does not exist.', 13, $this->source); })()), "info", [], "any", false, false, false, 13) != "")) {
// line 14
yield " <div class=\"container\" style=\"position: relative; top: -80px\">
<div id=\"id-header-news\">
<i class=\"fa fa-info-circle\"></i>
<div class=\"marquee\">
<div class=\"marquee-content\">";
// line 18
yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageinfo"]) || array_key_exists("pageinfo", $context) ? $context["pageinfo"] : (function () { throw new RuntimeError('Variable "pageinfo" does not exist.', 18, $this->source); })()), "info", [], "any", false, false, false, 18);
yield "</div>
</div>
</div>
</div>
";
}
// line 23
yield "
<div class=\"text-center color-white mt-6 mb-6 index-1\">
<h1>";
// line 25
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 25, $this->source); })()), "title", [], "any", false, false, false, 25), "html", null, true);
yield "</h1>
</div>
</div>
";
// line 30
if ((Twig\Extension\CoreExtension::slice($this->env->getCharset(), (isset($context["html"]) || array_key_exists("html", $context) ? $context["html"] : (function () { throw new RuntimeError('Variable "html" does not exist.', 30, $this->source); })()), 20, 5) == "list1")) {
// line 31
yield " <article class=\"container\" style=\"margin-top: -110px\">
<div class=\"row\">
<div class=\"col-lg-8\">
";
// line 34
yield (isset($context["html"]) || array_key_exists("html", $context) ? $context["html"] : (function () { throw new RuntimeError('Variable "html" does not exist.', 34, $this->source); })());
yield "
</div>
";
// line 36
yield from $this->load("partials/sidecol.html.twig", 36)->unwrap()->yield($context);
// line 37
yield " </div>
</article>
";
} else {
// line 40
yield " <div class=\"container\" style=\"margin-top: -110px\">
<div class=\"row\">
<div class=\"col-lg-9\">
";
// line 43
yield (isset($context["html"]) || array_key_exists("html", $context) ? $context["html"] : (function () { throw new RuntimeError('Variable "html" does not exist.', 43, $this->source); })());
yield "
</div>
";
// line 45
yield from $this->load("partials/sidecol.html.twig", 45)->unwrap()->yield($context);
// line 46
yield " </div>
";
}
// line 48
yield "
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 54
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_javascripts(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 55
yield " ";
yield from $this->yieldParentBlock("javascripts", $context, $blocks);
yield "
<script src=\"/assets/js/component-carousels-1.js\"></script>
<script>
\$(document).ready(function(){
";
// line 60
if ((Twig\Extension\CoreExtension::slice($this->env->getCharset(), (isset($context["html"]) || array_key_exists("html", $context) ? $context["html"] : (function () { throw new RuntimeError('Variable "html" does not exist.', 60, $this->source); })()), 20, 5) != "list1")) {
// line 61
yield " \$('article.card').css('min-height', '1460px');
";
}
// line 63
yield " \$( 'a.custom-collapsed' ).click(function( index ) {
console.log(element_id);
var element_id = \$(this).data('id');
var toggle = \$(this).data('toggle');
if (toggle == 'collapse') {
\$(this).removeClass('collapsed');
\$(this).addClass('collapse');
\$(this).data('toggle', 'collapsed');
\$('#'+element_id).collapse('show');
}
else {
\$(this).removeClass('collapse');
\$(this).addClass('collapsed');
\$(this).data('collapse');
\$(this).data('toggle', 'collapse');
\$('#'+element_id).collapse('hide');
}
});
//<a class=\"collapsed\" role=\"button\" data-toggle=\"collapse\" data-id=\"collapse16\" aria-expanded=\"false\" aria-controls=\"collapse16\">
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "/pages/page.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 222 => 63, 218 => 61, 216 => 60, 207 => 55, 194 => 54, 180 => 48, 176 => 46, 174 => 45, 169 => 43, 164 => 40, 159 => 37, 157 => 36, 152 => 34, 147 => 31, 145 => 30, 137 => 25, 133 => 23, 125 => 18, 119 => 14, 117 => 13, 112 => 11, 109 => 10, 96 => 9, 83 => 6, 78 => 5, 65 => 4, 42 => 2,);
}
public function getSourceContext(): Source
{
return new Source("{# @var page \\App\\Controller\\Objects\\Page #}
{% extends 'base.html.twig' %}
{% block customcss %}
{{ parent() }}
<link rel=\"stylesheet\" type=\"text/css\" href=\"/assets/custom/css/media.min.{{ app.request.server.get('APP_PREVCACHE') }}.css\" />
{% endblock %}
{% block body %}
<div class=\" ms-hero-page ms-hero-bg-info mb-6\" style=\"background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('{{ page.picture.small }}');\">
{% if pageinfo.info != '' %}
<div class=\"container\" style=\"position: relative; top: -80px\">
<div id=\"id-header-news\">
<i class=\"fa fa-info-circle\"></i>
<div class=\"marquee\">
<div class=\"marquee-content\">{{ pageinfo.info|raw }}</div>
</div>
</div>
</div>
{% endif %}
<div class=\"text-center color-white mt-6 mb-6 index-1\">
<h1>{{ page.title }}</h1>
</div>
</div>
{% if html|raw|slice(20, 5) == 'list1' %}
<article class=\"container\" style=\"margin-top: -110px\">
<div class=\"row\">
<div class=\"col-lg-8\">
{{ html|raw }}
</div>
{% include 'partials/sidecol.html.twig' %}
</div>
</article>
{% else %}
<div class=\"container\" style=\"margin-top: -110px\">
<div class=\"row\">
<div class=\"col-lg-9\">
{{ html|raw }}
</div>
{% include 'partials/sidecol.html.twig' %}
</div>
{% endif %}
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src=\"/assets/js/component-carousels-1.js\"></script>
<script>
\$(document).ready(function(){
{% if html|raw|slice(20, 5) != 'list1' %}
\$('article.card').css('min-height', '1460px');
{% endif %}
\$( 'a.custom-collapsed' ).click(function( index ) {
console.log(element_id);
var element_id = \$(this).data('id');
var toggle = \$(this).data('toggle');
if (toggle == 'collapse') {
\$(this).removeClass('collapsed');
\$(this).addClass('collapse');
\$(this).data('toggle', 'collapsed');
\$('#'+element_id).collapse('show');
}
else {
\$(this).removeClass('collapse');
\$(this).addClass('collapsed');
\$(this).data('collapse');
\$(this).data('toggle', 'collapse');
\$('#'+element_id).collapse('hide');
}
});
//<a class=\"collapsed\" role=\"button\" data-toggle=\"collapse\" data-id=\"collapse16\" aria-expanded=\"false\" aria-controls=\"collapse16\">
});
</script>
{% endblock %}
", "/pages/page.html.twig", "/var/www/clients/client0/web40/private/templates/pages/page.html.twig");
}
}