{% extends "partials/page_head.html.twig" %}
{% block head_application -%}
<meta charset="utf-8" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>{{ errorcode|default(500) }} {{ error|default('GANTRY5_ENGINE_UNKNOWN_ERROR'|trans) }}</title>
{% do gantry.document.errorPage(true) -%}
{% do gantry.platform.finalize() -%}
{{ gantry.styles('head', true)|join("\n ")|raw }}
{{ gantry.scripts('head', true)|join("\n ")|raw }}
{%- endblock %}
Arguments
"""
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
$this->displayBlock('head_overrides', $context, $blocks);
$content = ob_get_clean();
$assetFunction($content, $location, $priority);
// line 50
echo "<head>
";
// line 51
echo twig_join_filter($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", []), "getHtml", [0 => "head_top"], "method"), "
");
echo "
";
// line 52
$this->displayBlock('head_meta', $context, $blocks);
// line 78
$this->displayBlock('head_title', $context, $blocks);
// line 82
echo "
";
// line 83
$this->displayBlock('head_application', $context, $blocks);
// line 87
echo "
";
// line 88
$this->displayBlock('head_ie_stylesheets', $context, $blocks);
// line 91
$this->displayBlock('head', $context, $blocks);
// line 92
$this->displayBlock('head_custom', $context, $blocks);
// line 97
echo twig_join_filter($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", []), "getHtml", [0 => "head_bottom"], "method"), "
");
echo "
</head>
";
}
// line 7
public function block_head_stylesheets($context, array $blocks = [])
{
Arguments
"head_application"
array:20 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
"faEnabled" => 1
"faVersion" => "fa4"
]
array:10 [
"head_stylesheets" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_stylesheets"
]
"head_scripts" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_scripts"
]
"head_platform" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_platform"
]
"head_overrides" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_overrides"
]
"head_meta" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_meta"
]
"head_title" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_title"
]
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
"head_ie_stylesheets" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_ie_stylesheets"
]
"head" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head"
]
"head_custom" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_custom"
]
]
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Exception $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
$e->guess();
throw $e;
}
}
Arguments
array:20 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
"faEnabled" => 1
"faVersion" => "fa4"
]
array:10 [
"head_stylesheets" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_stylesheets"
]
"head_scripts" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_scripts"
]
"head_platform" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_platform"
]
"head_overrides" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_overrides"
]
"head_meta" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_meta"
]
"head_title" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_title"
]
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
"head_ie_stylesheets" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_ie_stylesheets"
]
"head" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head"
]
"head_custom" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_custom"
]
]
{
return $this;
}
/**
* Returns all blocks.
*
* This method is for internal use only and should never be called
* directly.
*
* @return array An array of blocks
*/
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Exception $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:10 [
"head_stylesheets" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_stylesheets"
]
"head_scripts" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_scripts"
]
"head_platform" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_platform"
]
"head_overrides" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_overrides"
]
"head_meta" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_meta"
]
"head_title" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_title"
]
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
"head_ie_stylesheets" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_ie_stylesheets"
]
"head" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head"
]
"head_custom" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_custom"
]
]
parent::__construct($env);
$this->blocks = [
'head_title' => [$this, 'block_head_title'],
'head_application' => [$this, 'block_head_application'],
'head_platform' => [$this, 'block_head_platform'],
'head' => [$this, 'block_head'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@nucleus/page_head.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$this->parent = $this->loadTemplate("@nucleus/page_head.html.twig", "partials/page_head.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_head_title($context, array $blocks = [])
{
}
// line 6
public function block_head_application($context, array $blocks = [])
{
// line 7
if ($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "checkVersion", [0 => 4], "method")) {
echo " ";
// line 8
echo " <jdoc:include type=\"metas\" />
<jdoc:include type=\"styles\" />
<jdoc:include type=\"scripts\" />
";
} elseif ($this->getAttribute($this->getAttribute( // line 11
($context["gantry"] ?? null), "platform", []), "checkVersion", [0 => 3], "method")) {
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:4 [
"head_title" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_title"
]
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
"head_platform" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_platform"
]
"head" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head"
]
]
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Exception $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
$e->guess();
throw $e;
}
}
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:4 [
"head_title" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_title"
]
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
"head_platform" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_platform"
]
"head" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head"
]
]
{
return $this;
}
/**
* Returns all blocks.
*
* This method is for internal use only and should never be called
* directly.
*
* @return array An array of blocks
*/
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Exception $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:4 [
"head_title" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_title"
]
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
"head_platform" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_platform"
]
"head" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head"
]
]
{
public function __construct(Environment $env)
{
parent::__construct($env);
$this->blocks = [
'head_application' => [$this, 'block_head_application'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "partials/page_head.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$this->parent = $this->loadTemplate("partials/page_head.html.twig", "partials/error_head.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_head_application($context, array $blocks = [])
{
// line 4
echo "<meta charset=\"utf-8\" />
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />
<title>";
// line 6
echo twig_escape_filter($this->env, ((array_key_exists("errorcode", $context)) ? (_twig_default_filter(($context["errorcode"] ?? null), 500)) : (500)), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, ((array_key_exists("error", $context)) ? (_twig_default_filter(($context["error"] ?? null), $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_ENGINE_UNKNOWN_ERROR"))) : ($this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_ENGINE_UNKNOWN_ERROR"))), "html", null, true);
echo "</title>
";
// line 7
$this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", []), "errorPage", [0 => true], "method");
// line 8
$this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "finalize", [], "method");
// line 9
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:1 [
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
]
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Exception $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
$e->guess();
throw $e;
}
}
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:1 [
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
]
{
return $this;
}
/**
* Returns all blocks.
*
* This method is for internal use only and should never be called
* directly.
*
* @return array An array of blocks
*/
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Exception $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:1 [
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
]
];
}
protected function doGetParent(array $context)
{
// line 1
return "partials/page.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$this->parent = $this->loadTemplate("partials/page.html.twig", "error.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_page_head($context, array $blocks = [])
{
// line 4
$this->loadTemplate("partials/error_head.html.twig", "error.html.twig", 4)->display($context);
}
// line 7
public function block_content($context, array $blocks = [])
{
// line 8
echo " <h1>";
echo twig_escape_filter($this->env, ((array_key_exists("errorcode", $context)) ? (_twig_default_filter(($context["errorcode"] ?? null), 500)) : (500)), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, ((array_key_exists("error", $context)) ? (_twig_default_filter(($context["error"] ?? null), "Unknown Error")) : ("Unknown Error")), "html", null, true);
echo "</h1>
";
// line 9
echo ($context["backtrace"] ?? null);
echo "
";
}
public function getTemplateName()
{
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
$context["body_top"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 55
ob_start(function () { return ''; });
// line 56
echo " ";
$this->displayBlock('body_bottom', $context, $blocks);
// line 58
echo " ";
echo twig_join_filter($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", []), "getHtml", [0 => "body_bottom"], "method"), "
");
echo "
";
$context["body_bottom"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 61
$this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", []), "addScript", [0 => $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->urlFunc("gantry-assets://js/main.js"), 1 => 11, 2 => "footer"], "method");
// line 65
ob_start(function () { return ''; });
// line 66
echo " ";
$this->displayBlock('page_head', $context, $blocks);
$context["page_head"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 71
ob_start(function () { return ''; });
// line 72
echo " ";
$this->displayBlock('page_footer', $context, $blocks);
// line 76
echo "
";
// line 77
echo $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "debugger", []), "render", [], "method");
echo "
";
$context["page_footer"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 80
$this->displayBlock('page', $context, $blocks);
}
// line 8
public function block_content($context, array $blocks = [])
Arguments
"page_head"
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:11 [
"content" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_content"
]
"page_offcanvas" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_offcanvas"
]
"page_layout" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_layout"
]
"page_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_top"
]
"page_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_bottom"
]
"body_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_top"
]
"body_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_bottom"
]
"page_head" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_page_head"
]
"page_footer" => array:2 [
0 => __TwigTemplate_2ed577f2dbaf3f15552ad0fad01706fca6f5f00692e261a27b8da7fc58fe8564 {#922}
1 => "block_page_footer"
]
"page" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page"
]
"page_body" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_body"
]
]
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Exception $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
$e->guess();
throw $e;
}
}
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:11 [
"content" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_content"
]
"page_offcanvas" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_offcanvas"
]
"page_layout" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_layout"
]
"page_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_top"
]
"page_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_bottom"
]
"body_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_top"
]
"body_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_bottom"
]
"page_head" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_page_head"
]
"page_footer" => array:2 [
0 => __TwigTemplate_2ed577f2dbaf3f15552ad0fad01706fca6f5f00692e261a27b8da7fc58fe8564 {#922}
1 => "block_page_footer"
]
"page" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page"
]
"page_body" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_body"
]
]
{
return $this;
}
/**
* Returns all blocks.
*
* This method is for internal use only and should never be called
* directly.
*
* @return array An array of blocks
*/
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Exception $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
Arguments
array:8 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
]
array:11 [
"content" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_content"
]
"page_offcanvas" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_offcanvas"
]
"page_layout" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_layout"
]
"page_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_top"
]
"page_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_bottom"
]
"body_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_top"
]
"body_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_bottom"
]
"page_head" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_page_head"
]
"page_footer" => array:2 [
0 => __TwigTemplate_2ed577f2dbaf3f15552ad0fad01706fca6f5f00692e261a27b8da7fc58fe8564 {#922}
1 => "block_page_footer"
]
"page" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page"
]
"page_body" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_body"
]
]
{
public function __construct(Environment $env)
{
parent::__construct($env);
$this->blocks = [
'page_footer' => [$this, 'block_page_footer'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@nucleus/page.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$this->parent = $this->loadTemplate("@nucleus/page.html.twig", "partials/page.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_page_footer($context, array $blocks = [])
{
// line 4
echo " ";
$this->displayParentBlock("page_footer", $context, $blocks);
echo "
<jdoc:include type=\"modules\" name=\"debug\" />
";
}
public function getTemplateName()
{
return "partials/page.html.twig";
}
public function isTraitable()
{
Arguments
array:8 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
]
array:3 [
"page_footer" => array:2 [
0 => __TwigTemplate_2ed577f2dbaf3f15552ad0fad01706fca6f5f00692e261a27b8da7fc58fe8564 {#922}
1 => "block_page_footer"
]
"page_head" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_page_head"
]
"content" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_content"
]
]
public function __construct(Environment $env)
{
parent::__construct($env);
$this->blocks = [
'page_head' => [$this, 'block_page_head'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "partials/page.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$this->parent = $this->loadTemplate("partials/page.html.twig", "error.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_page_head($context, array $blocks = [])
{
// line 4
$this->loadTemplate("partials/error_head.html.twig", "error.html.twig", 4)->display($context);
}
// line 7
public function block_content($context, array $blocks = [])
{
// line 8
echo " <h1>";
echo twig_escape_filter($this->env, ((array_key_exists("errorcode", $context)) ? (_twig_default_filter(($context["errorcode"] ?? null), 500)) : (500)), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, ((array_key_exists("error", $context)) ? (_twig_default_filter(($context["error"] ?? null), "Unknown Error")) : ("Unknown Error")), "html", null, true);
echo "</h1>
";
// line 9
Arguments
array:8 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
]
array:2 [
"page_head" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_page_head"
]
"content" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_content"
]
]
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Exception $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
Arguments
array:7 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
]
* @internal
*/
public function __construct(Environment $env, Template $template)
{
$this->env = $env;
$this->template = $template;
}
/**
* Renders the template.
*
* @param array $context An array of parameters to pass to the template
*
* @return string The rendered template
*/
public function render($context = [])
{
// using func_get_args() allows to not expose the blocks argument
// as it should only be used by internal code
return $this->template->render($context, \func_num_args() > 1 ? func_get_arg(1) : []);
}
/**
* Displays the template.
*
* @param array $context An array of parameters to pass to the template
*/
public function display($context = [])
{
// using func_get_args() allows to not expose the blocks argument
// as it should only be used by internal code
$this->template->display($context, \func_num_args() > 1 ? func_get_arg(1) : []);
}
/**
* Checks if a block is defined.
*
* @param string $name The block name
* @param array $context An array of parameters to pass to the template
*
Arguments
array:7 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
]
[]
@trigger_error(sprintf('The %s method is deprecated since version 1.22 and will be removed in Twig 2.0.', __METHOD__), \E_USER_DEPRECATED);
return $this->templateClassPrefix;
}
/**
* Renders a template.
*
* @param string|TemplateWrapper $name The template name
* @param array $context An array of parameters to pass to the template
*
* @return string The rendered template
*
* @throws LoaderError When the template cannot be found
* @throws SyntaxError When an error occurred during compilation
* @throws RuntimeError When an error occurred during rendering
*/
public function render($name, array $context = [])
{
return $this->load($name)->render($context);
}
/**
* Displays a template.
*
* @param string|TemplateWrapper $name The template name
* @param array $context An array of parameters to pass to the template
*
* @throws LoaderError When the template cannot be found
* @throws SyntaxError When an error occurred during compilation
* @throws RuntimeError When an error occurred during rendering
*/
public function display($name, array $context = [])
{
$this->load($name)->display($context);
}
/**
* Loads a template.
*
Arguments
array:7 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
]
$this->renderer = $this->extendTwig($twig, $loader);
}
return $this->renderer;
}
/**
* Render a template file by using given context.
*
* @param string $file
* @param array $context
* @return string
*/
public function render($file, array $context = [])
{
// Include Gantry specific things to the context.
$context = $this->getContext($context);
return $this->renderer()->render($file, $context);
}
/**
* Compile and render twig string.
*
* @param string $string
* @param array $context
* @return string
*/
public function compile($string, array $context = [])
{
$renderer = $this->renderer();
$template = $renderer->createTemplate($string);
// Include Gantry specific things to the context.
$context = $this->getContext($context);
return $template->render($context);
}
Arguments
"error.html.twig"
array:7 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
]
$joomla->document = $this;
/** @var Theme $theme */
$theme = $gantry['theme'];
$app = Factory::getApplication();
$context = array(
'errorcode' => isset($this->error) ? $this->error->getCode() : null,
'error' => isset($this->error) ? $this->error->getMessage() : null,
'debug' => $app->get('debug_lang', '0') == '1' || $app->get('debug', '0') == '1',
'backtrace' => $this->debug ? $this->renderBacktrace() : null
);
// Reset used outline configuration.
unset($gantry['configuration']);
// Render the page.
echo $theme
->setLayout('_error', true)
->render('error.html.twig', $context);
Arguments
"error.html.twig"
array:7 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
]
* @param string $directory The name of the template
* @param string $filename The actual filename
*
* @return string The contents of the template
*
* @since 1.7.0
*/
protected function _loadTemplate($directory, $filename)
{
$contents = '';
// Check to see if we have a valid template file
if (is_file($directory . '/' . $filename))
{
// Store the file path
$this->_file = $directory . '/' . $filename;
// Get the file content
ob_start();
require $directory . '/' . $filename;
$contents = ob_get_contents();
ob_end_clean();
}
return $contents;
}
/**
* Fetch the template, and initialise the params
*
* @param array $params Parameters to determine the template
*
* @return HtmlDocument instance of $this to allow chaining
*
* @since 1.7.0
*/
protected function _fetchTemplate($params = array())
{
// Check
$directory = $params['directory'] ?? 'templates';
Arguments
"/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates/g5_helium/error.php"
$file = 'index.php';
}
}
}
// Load the language file for the template
$lang = CmsFactory::getLanguage();
// 1.5 or core then 1.6
$lang->load('tpl_' . $template, JPATH_BASE)
|| ($inherits !== '' && $lang->load('tpl_' . $inherits, $directory . '/' . $inherits))
|| $lang->load('tpl_' . $template, $directory . '/' . $template);
// Assign the variables
$this->baseurl = Uri::base(true);
$this->params = $params['params'] ?? new Registry;
$this->template = $template;
// Load
$this->_template = $this->_loadTemplate($baseDir, $file);
return $this;
}
/**
* Parse a document template
*
* @return HtmlDocument instance of $this to allow chaining
*
* @since 1.7.0
*/
protected function _parseTemplate()
{
$matches = array();
if (preg_match_all('#<jdoc:include\ type="([^"]+)"(.*)\/>#iU', $this->_template, $matches))
{
$messages = [];
$template_tags_first = [];
$template_tags_last = [];
Arguments
"/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates/g5_helium"
"error.php"
$options['title'] = $args[3] ?? null;
}
parent::$_buffer[$options['type']][$options['name']][$options['title']] = $content;
return $this;
}
/**
* Parses the template and populates the buffer
*
* @param array $params Parameters for fetching the template
*
* @return HtmlDocument instance of $this to allow chaining
*
* @since 1.7.0
*/
public function parse($params = array())
{
return $this->_fetchTemplate($params)->_parseTemplate();
}
/**
* Outputs the template to the browser.
*
* @param boolean $caching If true, cache the output
* @param array $params Associative array of attributes
*
* @return string The rendered data
*
* @since 1.7.0
*/
public function render($caching = false, $params = array())
{
$this->_caching = $caching;
if (empty($this->_template))
{
$this->parse($params);
}
Arguments
array:7 [
"template" => "g5_helium"
"directory" => "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates"
"debug" => "0"
"csp_nonce" => "ZDg2MDM0ZmYwOTJkZjFiNDdmMGQyNWM0ZDRlZDAwYTY4YjVlOTBlZDg2Y2YyOWJlNjNmMWFiNjg4ZTMyY2NjMjQ4MGU1NGZiZDVjMzcxZDA3ZjhmOTE5ZjJlZjE1YWNmOWY1MDMwOWFlNmY0MDM1NDkyNmU4OGEzNGRmYWIwMWI="
"templateInherits" => ""
"params" => Joomla\Registry\Registry {#658}
"file" => "error.php"
]
return $this->_fetchTemplate($params)->_parseTemplate();
}
/**
* Outputs the template to the browser.
*
* @param boolean $caching If true, cache the output
* @param array $params Associative array of attributes
*
* @return string The rendered data
*
* @since 1.7.0
*/
public function render($caching = false, $params = array())
{
$this->_caching = $caching;
if (empty($this->_template))
{
$this->parse($params);
}
if (\array_key_exists('csp_nonce', $params) && $params['csp_nonce'] !== null)
{
$this->cspNonce = $params['csp_nonce'];
}
$data = $this->_renderTemplate();
parent::render($caching, $params);
return $data;
}
/**
* Count the modules in the given position
*
* @param string $positionName The position to use
* @param boolean $withContentOnly Count only a modules which actually has a content
*
* @return integer Number of modules found
Arguments
array:7 [
"template" => "g5_helium"
"directory" => "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates"
"debug" => "0"
"csp_nonce" => "ZDg2MDM0ZmYwOTJkZjFiNDdmMGQyNWM0ZDRlZDAwYTY4YjVlOTBlZDg2Y2YyOWJlNjNmMWFiNjg4ZTMyY2NjMjQ4MGU1NGZiZDVjMzcxZDA3ZjhmOTE5ZjJlZjE1YWNmOWY1MDMwOWFlNmY0MDM1NDkyNmU4OGEzNGRmYWIwMWI="
"templateInherits" => ""
"params" => Joomla\Registry\Registry {#658}
"file" => "error.php"
]
{
$status = 500;
}
$errorReporting = CmsFactory::getApplication()->get('error_reporting');
if ($errorReporting === "development" || $errorReporting === "maximum")
{
$status .= ' ' . str_replace("\n", ' ', $this->_error->getMessage());
}
CmsFactory::getApplication()->setHeader('status', $status);
// Set variables
$this->debug = $params['debug'] ?? false;
$this->error = $this->_error;
$params['file'] = 'error.php';
return parent::render($cache, $params);
}
/**
* Render the backtrace
*
* @return string The contents of the backtrace
*
* @since 1.7.0
*/
public function renderBacktrace()
{
// If no error object is set return null
if (!isset($this->_error))
{
return;
}
// The back trace
$backtrace = $this->_error->getTrace();
Arguments
false
array:7 [
"template" => "g5_helium"
"directory" => "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates"
"debug" => "0"
"csp_nonce" => "ZDg2MDM0ZmYwOTJkZjFiNDdmMGQyNWM0ZDRlZDAwYTY4YjVlOTBlZDg2Y2YyOWJlNjNmMWFiNjg4ZTMyY2NjMjQ4MGU1NGZiZDVjMzcxZDA3ZjhmOTE5ZjJlZjE1YWNmOWY1MDMwOWFlNmY0MDM1NDkyNmU4OGEzNGRmYWIwMWI="
"templateInherits" => ""
"params" => Joomla\Registry\Registry {#658}
"file" => "error.php"
]
{
$wa->addTemplateRegistryFile($template->parent, $app->getClientId());
}
if (ob_get_contents())
{
ob_end_clean();
}
$this->getDocument()->setTitle(Text::_('Error') . ': ' . $error->getCode());
return $this->getDocument()->render(
false,
[
'template' => $template->template,
'directory' => JPATH_THEMES,
'debug' => JDEBUG,
'csp_nonce' => $app->get('csp_nonce'),
'templateInherits' => $template->parent,
'params' => $template->params,
]
);
}
}
Arguments
false
array:7 [
"template" => "g5_helium"
"directory" => "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates"
"debug" => "0"
"csp_nonce" => "ZDg2MDM0ZmYwOTJkZjFiNDdmMGQyNWM0ZDRlZDAwYTY4YjVlOTBlZDg2Y2YyOWJlNjNmMWFiNjg4ZTMyY2NjMjQ4MGU1NGZiZDVjMzcxZDA3ZjhmOTE5ZjJlZjE1YWNmOWY1MDMwOWFlNmY0MDM1NDkyNmU4OGEzNGRmYWIwMWI="
"templateInherits" => ""
"params" => Joomla\Registry\Registry {#658}
"file" => "error.php"
]
else
{
$format = $app->input->getString('format', 'html');
}
try
{
$renderer = AbstractRenderer::getRenderer($format);
}
catch (\InvalidArgumentException $e)
{
// Default to the HTML renderer
$renderer = AbstractRenderer::getRenderer('html');
}
// Reset the document object in the factory, this gives us a clean slate and lets everything render properly
Factory::$document = $renderer->getDocument();
Factory::getApplication()->loadDocument(Factory::$document);
$data = $renderer->render($error);
// If nothing was rendered, just use the message from the Exception
if (empty($data))
{
$data = $error->getMessage();
}
if ($isCli)
{
echo $data;
}
else
{
/** @var CMSApplication $app */
// Do not allow cache
$app->allowCache(false);
$app->setBody($data);
}
Arguments
Twig\Error\RuntimeError {#1506
#lineno: 73
#filename: "@nucleus/page.html.twig"
#rawMessage: """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
-sourcePath: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/media/gantry5/engines/nucleus/templates/page.html.twig"
-sourceCode: ""
#message: """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/media/gantry5/engines/nucleus/templates/page.html.twig"
#line: 73
-previous: RuntimeException {#1556
#message: """
ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2
"""
#code: 500
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/src/classes/Gantry/Component/Stylesheet/ScssCompiler.php"
#line: 192
-previous: ScssPhp\ScssPhp\Exception\CompilerException {#1545
#message: """
Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2
"""
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php"
#line: 573
-previous: ScssPhp\ScssPhp\Exception\SassScriptException {#4508
#message: "Incompatible units rem and %."
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/compat/vendor/scssphp/scssphp/src/Node/Number.php"
#line: 657
}
}
}
}
}
}
// Always return false, this will tell PHP to handle the error internally
return false;
}
/**
* Handles exceptions: logs errors and renders error page.
*
* @param \Exception|\Throwable $error An Exception or Throwable (PHP 7+) object for which to render the error page.
*
* @return void
*
* @since 3.10.0
*/
public static function handleException(\Throwable $error)
{
static::logException($error);
static::render($error);
}
/**
* Render the error page based on an exception.
*
* @param \Throwable $error An Exception or Throwable (PHP 7+) object for which to render the error page.
*
* @return void
*
* @since 3.0
*/
public static function render(\Throwable $error)
{
try
{
$app = Factory::getApplication();
// Flag if we are on cli
$isCli = $app->isClient('cli');
Arguments
Twig\Error\RuntimeError {#1506
#lineno: 73
#filename: "@nucleus/page.html.twig"
#rawMessage: """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
-sourcePath: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/media/gantry5/engines/nucleus/templates/page.html.twig"
-sourceCode: ""
#message: """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/media/gantry5/engines/nucleus/templates/page.html.twig"
#line: 73
-previous: RuntimeException {#1556
#message: """
ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2
"""
#code: 500
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/src/classes/Gantry/Component/Stylesheet/ScssCompiler.php"
#line: 192
-previous: ScssPhp\ScssPhp\Exception\CompilerException {#1545
#message: """
Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2
"""
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php"
#line: 573
-previous: ScssPhp\ScssPhp\Exception\SassScriptException {#4508
#message: "Incompatible units rem and %."
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/compat/vendor/scssphp/scssphp/src/Node/Number.php"
#line: 657
}
}
}
}
// Trigger the onAfterCompress event.
$this->triggerEvent('onAfterCompress');
}
}
catch (\Throwable $throwable)
{
/** @var ErrorEvent $event */
$event = AbstractEvent::create(
'onError',
[
'subject' => $throwable,
'eventClass' => ErrorEvent::class,
'application' => $this,
]
);
// Trigger the onError event.
$this->triggerEvent('onError', $event);
ExceptionHandler::handleException($event->getError());
}
// Trigger the onBeforeRespond event.
$this->getDispatcher()->dispatch('onBeforeRespond');
// Send the application response.
$this->respond();
// Trigger the onAfterRespond event.
$this->getDispatcher()->dispatch('onAfterRespond');
}
/**
* Check if the user is required to reset their password.
*
* If the user is required to reset their password will be redirected to the page that manage the password reset.
*
* @param string $option The option that manage the password reset
* @param string $view The view that manage the password reset
* @param string $layout The layout of the view that manage the password reset
Arguments
Twig\Error\RuntimeError {#1506
#lineno: 73
#filename: "@nucleus/page.html.twig"
#rawMessage: """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
-sourcePath: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/media/gantry5/engines/nucleus/templates/page.html.twig"
-sourceCode: ""
#message: """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/media/gantry5/engines/nucleus/templates/page.html.twig"
#line: 73
-previous: RuntimeException {#1556
#message: """
ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2
"""
#code: 500
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/src/classes/Gantry/Component/Stylesheet/ScssCompiler.php"
#line: 192
-previous: ScssPhp\ScssPhp\Exception\CompilerException {#1545
#message: """
Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2
"""
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php"
#line: 573
-previous: ScssPhp\ScssPhp\Exception\SassScriptException {#4508
#message: "Incompatible units rem and %."
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/compat/vendor/scssphp/scssphp/src/Node/Number.php"
#line: 657
}
}
}
}
// Set the lookup paths.
$this->functions->setBasePath($path);
$compiler->setImportPaths([[$this, 'findImport']]);
// Run the compiler.
$compiler->addVariables($this->getVariables(true));
$scss = '$output-bourbon-deprecation-warnings: false;' . "\n" . '@import "' . $in . '.scss"';
try {
$this->result = $compiler->compileString($scss);
$css = $this->result->getCss();
} catch (CompilerException $e) {
if (version_compare(static::$options['compatibility'], '5.5', '<')) {
static::$options['legacy'][$in] = true;
$this->warnings['__TITLE__'] = 'Please update your theme!';
$this->warnings[$in] = ['WARNING: ' . $e->getMessage()];
return $this->compileLegacyFile($in);
}
throw new \RuntimeException("ERROR: CSS Compilation on file '{$in}.scss' failed on error: {$e->getMessage()}", 500, $e);
} catch (\Exception $e) {
throw new \RuntimeException("ERROR: CSS Compilation on file '{$in}.scss' failed on fatal error: {$e->getMessage()}", 500, $e);
}
if (strpos($css, $scss) === 0) {
$css = '/* ' . $scss . ' */';
}
// Extract map from css and save it as separate file.
$pos = strrpos($css, '/*# sourceMappingURL=');
if ($pos !== false) {
$map = json_decode(urldecode(substr($css, $pos + 43, -3)), true);
/** @var Document $document */
$document = $gantry['document'];
foreach ($map['sources'] as &$source) {
$source = $document::url($source, false, -1);
}
unset($source);
Arguments
"""
ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2
"""
/**
* Returns URL to CSS file.
*
* If file does not exist, it will be created by using CSS compiler.
*
* @param string $name
* @return string
*/
public function css($name)
{
if (!isset($this->cssCache[$name])) {
$compiler = $this->compiler();
if ($compiler->needsCompile($name, [$this, 'getCssVariables'])) {
if (\GANTRY_DEBUGGER) {
Debugger::startTimer("css-{$name}", "Compiling CSS: {$name}");
Debugger::addMessage("Compiling CSS: {$name}");
}
$compiler->compileFile($name);
if (\GANTRY_DEBUGGER) {
Debugger::stopTimer("css-{$name}");
}
}
$this->cssCache[$name] = $compiler->getCssUrl($name);
}
return $this->cssCache[$name];
}
/**
* @return array
*/
public function getCssVariables()
{
if ($this->preset) {
$variables = $this->presets()->flatten($this->preset . '.styles', '-');
} else {
Arguments
$styles = $this->getAssetsInLocation('styles', $location);
if (!$styles) {
return [];
}
$gantry = Gantry::instance();
/** @var Theme|null $theme */
$theme = isset($gantry['theme']) ? $gantry['theme'] : null;
/** @var Document $document */
$document = $gantry['document'];
foreach ($styles as $key => $style) {
if (isset($style['href'])) {
$url = $style['href'];
if ($theme && preg_match('|\.scss$|', $url)) {
// Compile SCSS files.
$url = $theme->css(Gantry::basename($url, '.scss'));
}
// Deal with streams and relative paths.
$url = $document::url($url, false, null, false);
$styles[$key]['href'] = $url;
}
}
return $styles;
}
/**
* @param string $location
* @return array
* @since 5.4.3
*/
public function getScripts($location = 'head')
{
$scripts = $this->getAssetsInLocation('scripts', $location);
Arguments
if (!empty($element['src'])) {
$success = static::addScript($element, $priority, $location);
} elseif (!empty($element['content'])) {
$success = static::addInlineScript($element, $priority, $location);
}
break;
}
return $success;
}
/**
* @param string $location
* @return array
*/
public static function getStyles($location = 'head')
{
static::getObject();
$styles = static::$stack[0]->getStyles($location);
$output = [];
foreach ($styles as $style) {
switch ($style[':type']) {
case 'file':
$attribs = '';
if ($style['media']) {
$attribs .= ' media="' . static::escape($style['media']) . '"';
}
$output[] = sprintf(
'<link rel="stylesheet" href="%s" type="%s"%s />',
static::escape($style['href']),
static::escape($style['type']),
$attribs
);
break;
case 'inline':
$attribs = '';
if ($style['type'] !== 'text/css') {
Arguments
* @return string
*/
public function siteUrl()
{
/** @var Document $document */
$document = $this['document'];
return $document::siteUrl();
}
/**
* @param string $location
* @return array
*/
public function styles($location = 'head')
{
/** @var Document $document */
$document = $this['document'];
return $document::getStyles($location);
}
/**
* @param string $location
* @return array
*/
public function scripts($location = 'head')
{
/** @var Document $document */
$document = $this['document'];
return $document::getScripts($location);
}
/**
* Load Javascript framework / extension in platform independent way.
*
* @param string $framework
* @return bool
*/
Arguments
/**
* @return bool
*/
public function admin()
{
/** @var CMSApplication $application */
$app = Factory::getApplication();
return $app->isClient('administrator');
}
/**
* @param string $location
* @param bool $force
* @return array
*/
public function styles($location = 'head', $force = false)
{
// Do not display head, Joomla will take care of it (most of the time).
return (!$force && $location === 'head') ? [] : parent::styles($location);
}
/**
* @param string $location
* @param bool $force
* @return array
*/
public function scripts($location = 'head', $force = false)
{
// Do not display head, Joomla will take care of it (most of the time).
return (!$force && $location === 'head') ? [] : parent::scripts($location);
}
/**
* @return array
*/
protected function loadGlobal()
{
$global = null;
Arguments
}
throw new RuntimeError(sprintf('Neither the property "%1$s" nor one of the methods "%1$s()", "get%1$s()"/"is%1$s()" or "__call()" exist and have public access in class "%2$s".', $item, $class), -1, $this->getSourceContext());
}
if ($isDefinedTest) {
return true;
}
if ($this->env->hasExtension('\Twig\Extension\SandboxExtension')) {
$this->env->getExtension('\Twig\Extension\SandboxExtension')->checkMethodAllowed($object, $method);
}
// Some objects throw exceptions when they have __call, and the method we try
// to call is not supported. If ignoreStrictCheck is true, we should return null.
try {
if (!$arguments) {
$ret = $object->$method();
} else {
$ret = \call_user_func_array([$object, $method], $arguments);
}
} catch (\BadMethodCallException $e) {
if ($call && ($ignoreStrictCheck || !$this->env->isStrictVariables())) {
return;
}
throw $e;
}
// @deprecated in 1.28
if ($object instanceof \Twig_TemplateInterface) {
$self = $object->getTemplateName() === $this->getTemplateName();
$message = sprintf('Calling "%s" on template "%s" from template "%s" is deprecated since version 1.28 and won\'t be supported anymore in 2.0.', $item, $object->getTemplateName(), $this->getTemplateName());
if ('renderBlock' === $method || 'displayBlock' === $method) {
$message .= sprintf(' Use block("%s"%s) instead).', $arguments[0], $self ? '' : ', template');
} elseif ('hasBlock' === $method) {
$message .= sprintf(' Use "block("%s"%s) is defined" instead).', $arguments[0], $self ? '' : ', template');
} elseif ('render' === $method || 'display' === $method) {
$message .= sprintf(' Use include("%s") instead).', $object->getTemplateName());
}
@trigger_error($message, \E_USER_DEPRECATED);
Arguments
// line 3
public function block_head_application($context, array $blocks = [])
{
// line 4
echo "<meta charset=\"utf-8\" />
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />
<title>";
// line 6
echo twig_escape_filter($this->env, ((array_key_exists("errorcode", $context)) ? (_twig_default_filter(($context["errorcode"] ?? null), 500)) : (500)), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, ((array_key_exists("error", $context)) ? (_twig_default_filter(($context["error"] ?? null), $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_ENGINE_UNKNOWN_ERROR"))) : ($this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_ENGINE_UNKNOWN_ERROR"))), "html", null, true);
echo "</title>
";
// line 7
$this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", []), "errorPage", [0 => true], "method");
// line 8
$this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "finalize", [], "method");
// line 9
echo twig_join_filter($this->getAttribute(($context["gantry"] ?? null), "styles", [0 => "head", 1 => true], "method"), "
");
echo "
";
// line 10
echo twig_join_filter($this->getAttribute(($context["gantry"] ?? null), "scripts", [0 => "head", 1 => true], "method"), "
");
}
public function getTemplateName()
{
return "partials/error_head.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
Arguments
Gantry\Framework\Gantry {#715}
"styles"
array:2 [
0 => "head"
1 => true
]
"method"
if ($useBlocks && isset($blocks[$name])) {
$template = $blocks[$name][0];
$block = $blocks[$name][1];
} elseif (isset($this->blocks[$name])) {
$template = $this->blocks[$name][0];
$block = $this->blocks[$name][1];
} else {
$template = null;
$block = null;
}
// avoid RCEs when sandbox is enabled
if (null !== $template && !$template instanceof self) {
throw new \LogicException('A block must be a method on a \Twig\Template instance.');
}
if (null !== $template) {
try {
$template->$block($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($template->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Exception $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $template->getSourceContext(), $e);
$e->guess();
throw $e;
}
} elseif (false !== $parent = $this->getParent($context)) {
$parent->displayBlock($name, $context, array_merge($this->blocks, $blocks), false);
Arguments
array:20 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
"faEnabled" => 1
"faVersion" => "fa4"
]
array:10 [
"head_stylesheets" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_stylesheets"
]
"head_scripts" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_scripts"
]
"head_platform" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_platform"
]
"head_overrides" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_overrides"
]
"head_meta" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_meta"
]
"head_title" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_title"
]
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
"head_ie_stylesheets" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_ie_stylesheets"
]
"head" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head"
]
"head_custom" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_custom"
]
]
$this->displayBlock('head_overrides', $context, $blocks);
$content = ob_get_clean();
$assetFunction($content, $location, $priority);
// line 50
echo "<head>
";
// line 51
echo twig_join_filter($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", []), "getHtml", [0 => "head_top"], "method"), "
");
echo "
";
// line 52
$this->displayBlock('head_meta', $context, $blocks);
// line 78
$this->displayBlock('head_title', $context, $blocks);
// line 82
echo "
";
// line 83
$this->displayBlock('head_application', $context, $blocks);
// line 87
echo "
";
// line 88
$this->displayBlock('head_ie_stylesheets', $context, $blocks);
// line 91
$this->displayBlock('head', $context, $blocks);
// line 92
$this->displayBlock('head_custom', $context, $blocks);
// line 97
echo twig_join_filter($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", []), "getHtml", [0 => "head_bottom"], "method"), "
");
echo "
</head>
";
}
// line 7
public function block_head_stylesheets($context, array $blocks = [])
{
Arguments
"head_application"
array:20 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
"faEnabled" => 1
"faVersion" => "fa4"
]
array:10 [
"head_stylesheets" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_stylesheets"
]
"head_scripts" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_scripts"
]
"head_platform" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_platform"
]
"head_overrides" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_overrides"
]
"head_meta" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_meta"
]
"head_title" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_title"
]
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
"head_ie_stylesheets" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_ie_stylesheets"
]
"head" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head"
]
"head_custom" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_custom"
]
]
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Exception $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
$e->guess();
throw $e;
}
}
Arguments
array:20 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
"faEnabled" => 1
"faVersion" => "fa4"
]
array:10 [
"head_stylesheets" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_stylesheets"
]
"head_scripts" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_scripts"
]
"head_platform" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_platform"
]
"head_overrides" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_overrides"
]
"head_meta" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_meta"
]
"head_title" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_title"
]
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
"head_ie_stylesheets" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_ie_stylesheets"
]
"head" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head"
]
"head_custom" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_custom"
]
]
{
return $this;
}
/**
* Returns all blocks.
*
* This method is for internal use only and should never be called
* directly.
*
* @return array An array of blocks
*/
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Exception $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:10 [
"head_stylesheets" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_stylesheets"
]
"head_scripts" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_scripts"
]
"head_platform" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_platform"
]
"head_overrides" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_overrides"
]
"head_meta" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_meta"
]
"head_title" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_title"
]
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
"head_ie_stylesheets" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_ie_stylesheets"
]
"head" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head"
]
"head_custom" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_custom"
]
]
parent::__construct($env);
$this->blocks = [
'head_title' => [$this, 'block_head_title'],
'head_application' => [$this, 'block_head_application'],
'head_platform' => [$this, 'block_head_platform'],
'head' => [$this, 'block_head'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@nucleus/page_head.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$this->parent = $this->loadTemplate("@nucleus/page_head.html.twig", "partials/page_head.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_head_title($context, array $blocks = [])
{
}
// line 6
public function block_head_application($context, array $blocks = [])
{
// line 7
if ($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "checkVersion", [0 => 4], "method")) {
echo " ";
// line 8
echo " <jdoc:include type=\"metas\" />
<jdoc:include type=\"styles\" />
<jdoc:include type=\"scripts\" />
";
} elseif ($this->getAttribute($this->getAttribute( // line 11
($context["gantry"] ?? null), "platform", []), "checkVersion", [0 => 3], "method")) {
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:4 [
"head_title" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_title"
]
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
"head_platform" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_platform"
]
"head" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head"
]
]
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Exception $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
$e->guess();
throw $e;
}
}
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:4 [
"head_title" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_title"
]
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
"head_platform" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_platform"
]
"head" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head"
]
]
{
return $this;
}
/**
* Returns all blocks.
*
* This method is for internal use only and should never be called
* directly.
*
* @return array An array of blocks
*/
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Exception $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:4 [
"head_title" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_title"
]
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
"head_platform" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_platform"
]
"head" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head"
]
]
{
public function __construct(Environment $env)
{
parent::__construct($env);
$this->blocks = [
'head_application' => [$this, 'block_head_application'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "partials/page_head.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$this->parent = $this->loadTemplate("partials/page_head.html.twig", "partials/error_head.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_head_application($context, array $blocks = [])
{
// line 4
echo "<meta charset=\"utf-8\" />
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />
<title>";
// line 6
echo twig_escape_filter($this->env, ((array_key_exists("errorcode", $context)) ? (_twig_default_filter(($context["errorcode"] ?? null), 500)) : (500)), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, ((array_key_exists("error", $context)) ? (_twig_default_filter(($context["error"] ?? null), $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_ENGINE_UNKNOWN_ERROR"))) : ($this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_ENGINE_UNKNOWN_ERROR"))), "html", null, true);
echo "</title>
";
// line 7
$this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", []), "errorPage", [0 => true], "method");
// line 8
$this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "finalize", [], "method");
// line 9
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:1 [
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
]
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Exception $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
$e->guess();
throw $e;
}
}
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:1 [
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
]
{
return $this;
}
/**
* Returns all blocks.
*
* This method is for internal use only and should never be called
* directly.
*
* @return array An array of blocks
*/
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Exception $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:1 [
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
]
];
}
protected function doGetParent(array $context)
{
// line 1
return "partials/page.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$this->parent = $this->loadTemplate("partials/page.html.twig", "error.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_page_head($context, array $blocks = [])
{
// line 4
$this->loadTemplate("partials/error_head.html.twig", "error.html.twig", 4)->display($context);
}
// line 7
public function block_content($context, array $blocks = [])
{
// line 8
echo " <h1>";
echo twig_escape_filter($this->env, ((array_key_exists("errorcode", $context)) ? (_twig_default_filter(($context["errorcode"] ?? null), 500)) : (500)), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, ((array_key_exists("error", $context)) ? (_twig_default_filter(($context["error"] ?? null), "Unknown Error")) : ("Unknown Error")), "html", null, true);
echo "</h1>
";
// line 9
echo ($context["backtrace"] ?? null);
echo "
";
}
public function getTemplateName()
{
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
$context["body_top"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 55
ob_start(function () { return ''; });
// line 56
echo " ";
$this->displayBlock('body_bottom', $context, $blocks);
// line 58
echo " ";
echo twig_join_filter($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", []), "getHtml", [0 => "body_bottom"], "method"), "
");
echo "
";
$context["body_bottom"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 61
$this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", []), "addScript", [0 => $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->urlFunc("gantry-assets://js/main.js"), 1 => 11, 2 => "footer"], "method");
// line 65
ob_start(function () { return ''; });
// line 66
echo " ";
$this->displayBlock('page_head', $context, $blocks);
$context["page_head"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 71
ob_start(function () { return ''; });
// line 72
echo " ";
$this->displayBlock('page_footer', $context, $blocks);
// line 76
echo "
";
// line 77
echo $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "debugger", []), "render", [], "method");
echo "
";
$context["page_footer"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 80
$this->displayBlock('page', $context, $blocks);
}
// line 8
public function block_content($context, array $blocks = [])
Arguments
"page_head"
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:11 [
"content" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_content"
]
"page_offcanvas" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_offcanvas"
]
"page_layout" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_layout"
]
"page_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_top"
]
"page_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_bottom"
]
"body_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_top"
]
"body_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_bottom"
]
"page_head" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_page_head"
]
"page_footer" => array:2 [
0 => __TwigTemplate_2ed577f2dbaf3f15552ad0fad01706fca6f5f00692e261a27b8da7fc58fe8564 {#922}
1 => "block_page_footer"
]
"page" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page"
]
"page_body" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_body"
]
]
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Exception $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
$e->guess();
throw $e;
}
}
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:11 [
"content" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_content"
]
"page_offcanvas" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_offcanvas"
]
"page_layout" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_layout"
]
"page_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_top"
]
"page_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_bottom"
]
"body_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_top"
]
"body_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_bottom"
]
"page_head" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_page_head"
]
"page_footer" => array:2 [
0 => __TwigTemplate_2ed577f2dbaf3f15552ad0fad01706fca6f5f00692e261a27b8da7fc58fe8564 {#922}
1 => "block_page_footer"
]
"page" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page"
]
"page_body" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_body"
]
]
{
return $this;
}
/**
* Returns all blocks.
*
* This method is for internal use only and should never be called
* directly.
*
* @return array An array of blocks
*/
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Exception $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
Arguments
array:8 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
]
array:11 [
"content" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_content"
]
"page_offcanvas" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_offcanvas"
]
"page_layout" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_layout"
]
"page_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_top"
]
"page_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_bottom"
]
"body_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_top"
]
"body_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_bottom"
]
"page_head" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_page_head"
]
"page_footer" => array:2 [
0 => __TwigTemplate_2ed577f2dbaf3f15552ad0fad01706fca6f5f00692e261a27b8da7fc58fe8564 {#922}
1 => "block_page_footer"
]
"page" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page"
]
"page_body" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_body"
]
]
{
public function __construct(Environment $env)
{
parent::__construct($env);
$this->blocks = [
'page_footer' => [$this, 'block_page_footer'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@nucleus/page.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$this->parent = $this->loadTemplate("@nucleus/page.html.twig", "partials/page.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_page_footer($context, array $blocks = [])
{
// line 4
echo " ";
$this->displayParentBlock("page_footer", $context, $blocks);
echo "
<jdoc:include type=\"modules\" name=\"debug\" />
";
}
public function getTemplateName()
{
return "partials/page.html.twig";
}
public function isTraitable()
{
Arguments
array:8 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
]
array:3 [
"page_footer" => array:2 [
0 => __TwigTemplate_2ed577f2dbaf3f15552ad0fad01706fca6f5f00692e261a27b8da7fc58fe8564 {#922}
1 => "block_page_footer"
]
"page_head" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_page_head"
]
"content" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_content"
]
]
public function __construct(Environment $env)
{
parent::__construct($env);
$this->blocks = [
'page_head' => [$this, 'block_page_head'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "partials/page.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$this->parent = $this->loadTemplate("partials/page.html.twig", "error.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_page_head($context, array $blocks = [])
{
// line 4
$this->loadTemplate("partials/error_head.html.twig", "error.html.twig", 4)->display($context);
}
// line 7
public function block_content($context, array $blocks = [])
{
// line 8
echo " <h1>";
echo twig_escape_filter($this->env, ((array_key_exists("errorcode", $context)) ? (_twig_default_filter(($context["errorcode"] ?? null), 500)) : (500)), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, ((array_key_exists("error", $context)) ? (_twig_default_filter(($context["error"] ?? null), "Unknown Error")) : ("Unknown Error")), "html", null, true);
echo "</h1>
";
// line 9
Arguments
array:8 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
]
array:2 [
"page_head" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_page_head"
]
"content" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_content"
]
]
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Exception $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
Arguments
array:7 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
]
* @internal
*/
public function __construct(Environment $env, Template $template)
{
$this->env = $env;
$this->template = $template;
}
/**
* Renders the template.
*
* @param array $context An array of parameters to pass to the template
*
* @return string The rendered template
*/
public function render($context = [])
{
// using func_get_args() allows to not expose the blocks argument
// as it should only be used by internal code
return $this->template->render($context, \func_num_args() > 1 ? func_get_arg(1) : []);
}
/**
* Displays the template.
*
* @param array $context An array of parameters to pass to the template
*/
public function display($context = [])
{
// using func_get_args() allows to not expose the blocks argument
// as it should only be used by internal code
$this->template->display($context, \func_num_args() > 1 ? func_get_arg(1) : []);
}
/**
* Checks if a block is defined.
*
* @param string $name The block name
* @param array $context An array of parameters to pass to the template
*
Arguments
array:7 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
]
[]
@trigger_error(sprintf('The %s method is deprecated since version 1.22 and will be removed in Twig 2.0.', __METHOD__), \E_USER_DEPRECATED);
return $this->templateClassPrefix;
}
/**
* Renders a template.
*
* @param string|TemplateWrapper $name The template name
* @param array $context An array of parameters to pass to the template
*
* @return string The rendered template
*
* @throws LoaderError When the template cannot be found
* @throws SyntaxError When an error occurred during compilation
* @throws RuntimeError When an error occurred during rendering
*/
public function render($name, array $context = [])
{
return $this->load($name)->render($context);
}
/**
* Displays a template.
*
* @param string|TemplateWrapper $name The template name
* @param array $context An array of parameters to pass to the template
*
* @throws LoaderError When the template cannot be found
* @throws SyntaxError When an error occurred during compilation
* @throws RuntimeError When an error occurred during rendering
*/
public function display($name, array $context = [])
{
$this->load($name)->display($context);
}
/**
* Loads a template.
*
Arguments
array:7 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
]
$this->renderer = $this->extendTwig($twig, $loader);
}
return $this->renderer;
}
/**
* Render a template file by using given context.
*
* @param string $file
* @param array $context
* @return string
*/
public function render($file, array $context = [])
{
// Include Gantry specific things to the context.
$context = $this->getContext($context);
return $this->renderer()->render($file, $context);
}
/**
* Compile and render twig string.
*
* @param string $string
* @param array $context
* @return string
*/
public function compile($string, array $context = [])
{
$renderer = $this->renderer();
$template = $renderer->createTemplate($string);
// Include Gantry specific things to the context.
$context = $this->getContext($context);
return $template->render($context);
}
Arguments
"error.html.twig"
array:7 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
]
$joomla->document = $this;
/** @var Theme $theme */
$theme = $gantry['theme'];
$app = Factory::getApplication();
$context = array(
'errorcode' => isset($this->error) ? $this->error->getCode() : null,
'error' => isset($this->error) ? $this->error->getMessage() : null,
'debug' => $app->get('debug_lang', '0') == '1' || $app->get('debug', '0') == '1',
'backtrace' => $this->debug ? $this->renderBacktrace() : null
);
// Reset used outline configuration.
unset($gantry['configuration']);
// Render the page.
echo $theme
->setLayout('_error', true)
->render('error.html.twig', $context);
Arguments
"error.html.twig"
array:7 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
]
* @param string $directory The name of the template
* @param string $filename The actual filename
*
* @return string The contents of the template
*
* @since 1.7.0
*/
protected function _loadTemplate($directory, $filename)
{
$contents = '';
// Check to see if we have a valid template file
if (is_file($directory . '/' . $filename))
{
// Store the file path
$this->_file = $directory . '/' . $filename;
// Get the file content
ob_start();
require $directory . '/' . $filename;
$contents = ob_get_contents();
ob_end_clean();
}
return $contents;
}
/**
* Fetch the template, and initialise the params
*
* @param array $params Parameters to determine the template
*
* @return HtmlDocument instance of $this to allow chaining
*
* @since 1.7.0
*/
protected function _fetchTemplate($params = array())
{
// Check
$directory = $params['directory'] ?? 'templates';
Arguments
"/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates/g5_helium/error.php"
$file = 'index.php';
}
}
}
// Load the language file for the template
$lang = CmsFactory::getLanguage();
// 1.5 or core then 1.6
$lang->load('tpl_' . $template, JPATH_BASE)
|| ($inherits !== '' && $lang->load('tpl_' . $inherits, $directory . '/' . $inherits))
|| $lang->load('tpl_' . $template, $directory . '/' . $template);
// Assign the variables
$this->baseurl = Uri::base(true);
$this->params = $params['params'] ?? new Registry;
$this->template = $template;
// Load
$this->_template = $this->_loadTemplate($baseDir, $file);
return $this;
}
/**
* Parse a document template
*
* @return HtmlDocument instance of $this to allow chaining
*
* @since 1.7.0
*/
protected function _parseTemplate()
{
$matches = array();
if (preg_match_all('#<jdoc:include\ type="([^"]+)"(.*)\/>#iU', $this->_template, $matches))
{
$messages = [];
$template_tags_first = [];
$template_tags_last = [];
Arguments
"/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates/g5_helium"
"error.php"
$options['title'] = $args[3] ?? null;
}
parent::$_buffer[$options['type']][$options['name']][$options['title']] = $content;
return $this;
}
/**
* Parses the template and populates the buffer
*
* @param array $params Parameters for fetching the template
*
* @return HtmlDocument instance of $this to allow chaining
*
* @since 1.7.0
*/
public function parse($params = array())
{
return $this->_fetchTemplate($params)->_parseTemplate();
}
/**
* Outputs the template to the browser.
*
* @param boolean $caching If true, cache the output
* @param array $params Associative array of attributes
*
* @return string The rendered data
*
* @since 1.7.0
*/
public function render($caching = false, $params = array())
{
$this->_caching = $caching;
if (empty($this->_template))
{
$this->parse($params);
}
Arguments
array:7 [
"template" => "g5_helium"
"directory" => "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates"
"debug" => "0"
"csp_nonce" => "ZDg2MDM0ZmYwOTJkZjFiNDdmMGQyNWM0ZDRlZDAwYTY4YjVlOTBlZDg2Y2YyOWJlNjNmMWFiNjg4ZTMyY2NjMjQ4MGU1NGZiZDVjMzcxZDA3ZjhmOTE5ZjJlZjE1YWNmOWY1MDMwOWFlNmY0MDM1NDkyNmU4OGEzNGRmYWIwMWI="
"templateInherits" => ""
"params" => Joomla\Registry\Registry {#658}
"file" => "error.php"
]
return $this->_fetchTemplate($params)->_parseTemplate();
}
/**
* Outputs the template to the browser.
*
* @param boolean $caching If true, cache the output
* @param array $params Associative array of attributes
*
* @return string The rendered data
*
* @since 1.7.0
*/
public function render($caching = false, $params = array())
{
$this->_caching = $caching;
if (empty($this->_template))
{
$this->parse($params);
}
if (\array_key_exists('csp_nonce', $params) && $params['csp_nonce'] !== null)
{
$this->cspNonce = $params['csp_nonce'];
}
$data = $this->_renderTemplate();
parent::render($caching, $params);
return $data;
}
/**
* Count the modules in the given position
*
* @param string $positionName The position to use
* @param boolean $withContentOnly Count only a modules which actually has a content
*
* @return integer Number of modules found
Arguments
array:7 [
"template" => "g5_helium"
"directory" => "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates"
"debug" => "0"
"csp_nonce" => "ZDg2MDM0ZmYwOTJkZjFiNDdmMGQyNWM0ZDRlZDAwYTY4YjVlOTBlZDg2Y2YyOWJlNjNmMWFiNjg4ZTMyY2NjMjQ4MGU1NGZiZDVjMzcxZDA3ZjhmOTE5ZjJlZjE1YWNmOWY1MDMwOWFlNmY0MDM1NDkyNmU4OGEzNGRmYWIwMWI="
"templateInherits" => ""
"params" => Joomla\Registry\Registry {#658}
"file" => "error.php"
]
{
$status = 500;
}
$errorReporting = CmsFactory::getApplication()->get('error_reporting');
if ($errorReporting === "development" || $errorReporting === "maximum")
{
$status .= ' ' . str_replace("\n", ' ', $this->_error->getMessage());
}
CmsFactory::getApplication()->setHeader('status', $status);
// Set variables
$this->debug = $params['debug'] ?? false;
$this->error = $this->_error;
$params['file'] = 'error.php';
return parent::render($cache, $params);
}
/**
* Render the backtrace
*
* @return string The contents of the backtrace
*
* @since 1.7.0
*/
public function renderBacktrace()
{
// If no error object is set return null
if (!isset($this->_error))
{
return;
}
// The back trace
$backtrace = $this->_error->getTrace();
Arguments
false
array:7 [
"template" => "g5_helium"
"directory" => "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates"
"debug" => "0"
"csp_nonce" => "ZDg2MDM0ZmYwOTJkZjFiNDdmMGQyNWM0ZDRlZDAwYTY4YjVlOTBlZDg2Y2YyOWJlNjNmMWFiNjg4ZTMyY2NjMjQ4MGU1NGZiZDVjMzcxZDA3ZjhmOTE5ZjJlZjE1YWNmOWY1MDMwOWFlNmY0MDM1NDkyNmU4OGEzNGRmYWIwMWI="
"templateInherits" => ""
"params" => Joomla\Registry\Registry {#658}
"file" => "error.php"
]
{
$wa->addTemplateRegistryFile($template->parent, $app->getClientId());
}
if (ob_get_contents())
{
ob_end_clean();
}
$this->getDocument()->setTitle(Text::_('Error') . ': ' . $error->getCode());
return $this->getDocument()->render(
false,
[
'template' => $template->template,
'directory' => JPATH_THEMES,
'debug' => JDEBUG,
'csp_nonce' => $app->get('csp_nonce'),
'templateInherits' => $template->parent,
'params' => $template->params,
]
);
}
}
Arguments
false
array:7 [
"template" => "g5_helium"
"directory" => "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates"
"debug" => "0"
"csp_nonce" => "ZDg2MDM0ZmYwOTJkZjFiNDdmMGQyNWM0ZDRlZDAwYTY4YjVlOTBlZDg2Y2YyOWJlNjNmMWFiNjg4ZTMyY2NjMjQ4MGU1NGZiZDVjMzcxZDA3ZjhmOTE5ZjJlZjE1YWNmOWY1MDMwOWFlNmY0MDM1NDkyNmU4OGEzNGRmYWIwMWI="
"templateInherits" => ""
"params" => Joomla\Registry\Registry {#658}
"file" => "error.php"
]
else
{
$format = $app->input->getString('format', 'html');
}
try
{
$renderer = AbstractRenderer::getRenderer($format);
}
catch (\InvalidArgumentException $e)
{
// Default to the HTML renderer
$renderer = AbstractRenderer::getRenderer('html');
}
// Reset the document object in the factory, this gives us a clean slate and lets everything render properly
Factory::$document = $renderer->getDocument();
Factory::getApplication()->loadDocument(Factory::$document);
$data = $renderer->render($error);
// If nothing was rendered, just use the message from the Exception
if (empty($data))
{
$data = $error->getMessage();
}
if ($isCli)
{
echo $data;
}
else
{
/** @var CMSApplication $app */
// Do not allow cache
$app->allowCache(false);
$app->setBody($data);
}
Arguments
Twig\Error\RuntimeError {#1506
#lineno: 73
#filename: "@nucleus/page.html.twig"
#rawMessage: """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
-sourcePath: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/media/gantry5/engines/nucleus/templates/page.html.twig"
-sourceCode: ""
#message: """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/media/gantry5/engines/nucleus/templates/page.html.twig"
#line: 73
-previous: RuntimeException {#1556
#message: """
ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2
"""
#code: 500
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/src/classes/Gantry/Component/Stylesheet/ScssCompiler.php"
#line: 192
-previous: ScssPhp\ScssPhp\Exception\CompilerException {#1545
#message: """
Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2
"""
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php"
#line: 573
-previous: ScssPhp\ScssPhp\Exception\SassScriptException {#4508
#message: "Incompatible units rem and %."
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/compat/vendor/scssphp/scssphp/src/Node/Number.php"
#line: 657
}
}
}
}
}
}
// Always return false, this will tell PHP to handle the error internally
return false;
}
/**
* Handles exceptions: logs errors and renders error page.
*
* @param \Exception|\Throwable $error An Exception or Throwable (PHP 7+) object for which to render the error page.
*
* @return void
*
* @since 3.10.0
*/
public static function handleException(\Throwable $error)
{
static::logException($error);
static::render($error);
}
/**
* Render the error page based on an exception.
*
* @param \Throwable $error An Exception or Throwable (PHP 7+) object for which to render the error page.
*
* @return void
*
* @since 3.0
*/
public static function render(\Throwable $error)
{
try
{
$app = Factory::getApplication();
// Flag if we are on cli
$isCli = $app->isClient('cli');
Arguments
Twig\Error\RuntimeError {#1506
#lineno: 73
#filename: "@nucleus/page.html.twig"
#rawMessage: """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
-sourcePath: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/media/gantry5/engines/nucleus/templates/page.html.twig"
-sourceCode: ""
#message: """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/media/gantry5/engines/nucleus/templates/page.html.twig"
#line: 73
-previous: RuntimeException {#1556
#message: """
ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2
"""
#code: 500
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/src/classes/Gantry/Component/Stylesheet/ScssCompiler.php"
#line: 192
-previous: ScssPhp\ScssPhp\Exception\CompilerException {#1545
#message: """
Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2
"""
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php"
#line: 573
-previous: ScssPhp\ScssPhp\Exception\SassScriptException {#4508
#message: "Incompatible units rem and %."
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/compat/vendor/scssphp/scssphp/src/Node/Number.php"
#line: 657
}
}
}
}
// Trigger the onAfterCompress event.
$this->triggerEvent('onAfterCompress');
}
}
catch (\Throwable $throwable)
{
/** @var ErrorEvent $event */
$event = AbstractEvent::create(
'onError',
[
'subject' => $throwable,
'eventClass' => ErrorEvent::class,
'application' => $this,
]
);
// Trigger the onError event.
$this->triggerEvent('onError', $event);
ExceptionHandler::handleException($event->getError());
}
// Trigger the onBeforeRespond event.
$this->getDispatcher()->dispatch('onBeforeRespond');
// Send the application response.
$this->respond();
// Trigger the onAfterRespond event.
$this->getDispatcher()->dispatch('onAfterRespond');
}
/**
* Check if the user is required to reset their password.
*
* If the user is required to reset their password will be redirected to the page that manage the password reset.
*
* @param string $option The option that manage the password reset
* @param string $view The view that manage the password reset
* @param string $layout The layout of the view that manage the password reset
Arguments
Twig\Error\RuntimeError {#1506
#lineno: 73
#filename: "@nucleus/page.html.twig"
#rawMessage: """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
-sourcePath: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/media/gantry5/engines/nucleus/templates/page.html.twig"
-sourceCode: ""
#message: """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/media/gantry5/engines/nucleus/templates/page.html.twig"
#line: 73
-previous: RuntimeException {#1556
#message: """
ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2
"""
#code: 500
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/src/classes/Gantry/Component/Stylesheet/ScssCompiler.php"
#line: 192
-previous: ScssPhp\ScssPhp\Exception\CompilerException {#1545
#message: """
Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2
"""
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php"
#line: 573
-previous: ScssPhp\ScssPhp\Exception\SassScriptException {#4508
#message: "Incompatible units rem and %."
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/compat/vendor/scssphp/scssphp/src/Node/Number.php"
#line: 657
}
}
}
}
$sourceMapUrl = null;
switch ($this->sourceMap) {
case self::SOURCE_MAP_INLINE:
$sourceMapUrl = sprintf('data:application/json,%s', Util::encodeURIComponent($sourceMap));
break;
case self::SOURCE_MAP_FILE:
if (isset($this->sourceMapOptions['sourceMapURL'])) {
$sourceMapUrl = $this->sourceMapOptions['sourceMapURL'];
}
break;
}
if ($sourceMapUrl !== null) {
$out .= sprintf('/*# sourceMappingURL=%s */', $sourceMapUrl);
}
}
} catch (SassScriptException $e) {
throw new CompilerException($this->addLocationToMessage($e->getMessage()), 0, $e);
}
$includedFiles = [];
foreach ($this->resolvedImports as $resolvedImport) {
$includedFiles[$resolvedImport['filePath']] = $resolvedImport['filePath'];
}
$result = new CompilationResult($out, $sourceMap, array_values($includedFiles));
if ($this->cache && isset($cacheKey) && isset($compileOptions)) {
$this->cache->setCache('compile', $cacheKey, new CachedResult($result, $this->parsedFiles, $this->resolvedImports), $compileOptions);
}
// Reset state to free memory
// TODO in 2.0, reset parsedFiles as well when the getter is removed.
$this->resolvedImports = [];
$this->importedFiles = [];
return $result;
Arguments
"""
Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2
"""
if ($file->locked() === false) {
// File was already locked by another process, lets avoid compiling the same file twice.
return false;
}
$logfile = fopen('php://memory', 'rb+');
$logger = new StreamLogger($logfile, true);
$compiler = $this->getCompiler();
$compiler->setLogger($logger);
// Set the lookup paths.
$this->functions->setBasePath($path);
$compiler->setImportPaths([[$this, 'findImport']]);
// Run the compiler.
$compiler->addVariables($this->getVariables(true));
$scss = '$output-bourbon-deprecation-warnings: false;' . "\n" . '@import "' . $in . '.scss"';
try {
$this->result = $compiler->compileString($scss);
$css = $this->result->getCss();
} catch (CompilerException $e) {
if (version_compare(static::$options['compatibility'], '5.5', '<')) {
static::$options['legacy'][$in] = true;
$this->warnings['__TITLE__'] = 'Please update your theme!';
$this->warnings[$in] = ['WARNING: ' . $e->getMessage()];
return $this->compileLegacyFile($in);
}
throw new \RuntimeException("ERROR: CSS Compilation on file '{$in}.scss' failed on error: {$e->getMessage()}", 500, $e);
} catch (\Exception $e) {
throw new \RuntimeException("ERROR: CSS Compilation on file '{$in}.scss' failed on fatal error: {$e->getMessage()}", 500, $e);
}
if (strpos($css, $scss) === 0) {
$css = '/* ' . $scss . ' */';
}
// Extract map from css and save it as separate file.
$pos = strrpos($css, '/*# sourceMappingURL=');
Arguments
"""
$output-bourbon-deprecation-warnings: false;\n
@import "helium.scss"
"""
/**
* Returns URL to CSS file.
*
* If file does not exist, it will be created by using CSS compiler.
*
* @param string $name
* @return string
*/
public function css($name)
{
if (!isset($this->cssCache[$name])) {
$compiler = $this->compiler();
if ($compiler->needsCompile($name, [$this, 'getCssVariables'])) {
if (\GANTRY_DEBUGGER) {
Debugger::startTimer("css-{$name}", "Compiling CSS: {$name}");
Debugger::addMessage("Compiling CSS: {$name}");
}
$compiler->compileFile($name);
if (\GANTRY_DEBUGGER) {
Debugger::stopTimer("css-{$name}");
}
}
$this->cssCache[$name] = $compiler->getCssUrl($name);
}
return $this->cssCache[$name];
}
/**
* @return array
*/
public function getCssVariables()
{
if ($this->preset) {
$variables = $this->presets()->flatten($this->preset . '.styles', '-');
} else {
Arguments
$styles = $this->getAssetsInLocation('styles', $location);
if (!$styles) {
return [];
}
$gantry = Gantry::instance();
/** @var Theme|null $theme */
$theme = isset($gantry['theme']) ? $gantry['theme'] : null;
/** @var Document $document */
$document = $gantry['document'];
foreach ($styles as $key => $style) {
if (isset($style['href'])) {
$url = $style['href'];
if ($theme && preg_match('|\.scss$|', $url)) {
// Compile SCSS files.
$url = $theme->css(Gantry::basename($url, '.scss'));
}
// Deal with streams and relative paths.
$url = $document::url($url, false, null, false);
$styles[$key]['href'] = $url;
}
}
return $styles;
}
/**
* @param string $location
* @return array
* @since 5.4.3
*/
public function getScripts($location = 'head')
{
$scripts = $this->getAssetsInLocation('scripts', $location);
Arguments
if (!empty($element['src'])) {
$success = static::addScript($element, $priority, $location);
} elseif (!empty($element['content'])) {
$success = static::addInlineScript($element, $priority, $location);
}
break;
}
return $success;
}
/**
* @param string $location
* @return array
*/
public static function getStyles($location = 'head')
{
static::getObject();
$styles = static::$stack[0]->getStyles($location);
$output = [];
foreach ($styles as $style) {
switch ($style[':type']) {
case 'file':
$attribs = '';
if ($style['media']) {
$attribs .= ' media="' . static::escape($style['media']) . '"';
}
$output[] = sprintf(
'<link rel="stylesheet" href="%s" type="%s"%s />',
static::escape($style['href']),
static::escape($style['type']),
$attribs
);
break;
case 'inline':
$attribs = '';
if ($style['type'] !== 'text/css') {
Arguments
* @return string
*/
public function siteUrl()
{
/** @var Document $document */
$document = $this['document'];
return $document::siteUrl();
}
/**
* @param string $location
* @return array
*/
public function styles($location = 'head')
{
/** @var Document $document */
$document = $this['document'];
return $document::getStyles($location);
}
/**
* @param string $location
* @return array
*/
public function scripts($location = 'head')
{
/** @var Document $document */
$document = $this['document'];
return $document::getScripts($location);
}
/**
* Load Javascript framework / extension in platform independent way.
*
* @param string $framework
* @return bool
*/
Arguments
/**
* @return bool
*/
public function admin()
{
/** @var CMSApplication $application */
$app = Factory::getApplication();
return $app->isClient('administrator');
}
/**
* @param string $location
* @param bool $force
* @return array
*/
public function styles($location = 'head', $force = false)
{
// Do not display head, Joomla will take care of it (most of the time).
return (!$force && $location === 'head') ? [] : parent::styles($location);
}
/**
* @param string $location
* @param bool $force
* @return array
*/
public function scripts($location = 'head', $force = false)
{
// Do not display head, Joomla will take care of it (most of the time).
return (!$force && $location === 'head') ? [] : parent::scripts($location);
}
/**
* @return array
*/
protected function loadGlobal()
{
$global = null;
Arguments
}
throw new RuntimeError(sprintf('Neither the property "%1$s" nor one of the methods "%1$s()", "get%1$s()"/"is%1$s()" or "__call()" exist and have public access in class "%2$s".', $item, $class), -1, $this->getSourceContext());
}
if ($isDefinedTest) {
return true;
}
if ($this->env->hasExtension('\Twig\Extension\SandboxExtension')) {
$this->env->getExtension('\Twig\Extension\SandboxExtension')->checkMethodAllowed($object, $method);
}
// Some objects throw exceptions when they have __call, and the method we try
// to call is not supported. If ignoreStrictCheck is true, we should return null.
try {
if (!$arguments) {
$ret = $object->$method();
} else {
$ret = \call_user_func_array([$object, $method], $arguments);
}
} catch (\BadMethodCallException $e) {
if ($call && ($ignoreStrictCheck || !$this->env->isStrictVariables())) {
return;
}
throw $e;
}
// @deprecated in 1.28
if ($object instanceof \Twig_TemplateInterface) {
$self = $object->getTemplateName() === $this->getTemplateName();
$message = sprintf('Calling "%s" on template "%s" from template "%s" is deprecated since version 1.28 and won\'t be supported anymore in 2.0.', $item, $object->getTemplateName(), $this->getTemplateName());
if ('renderBlock' === $method || 'displayBlock' === $method) {
$message .= sprintf(' Use block("%s"%s) instead).', $arguments[0], $self ? '' : ', template');
} elseif ('hasBlock' === $method) {
$message .= sprintf(' Use "block("%s"%s) is defined" instead).', $arguments[0], $self ? '' : ', template');
} elseif ('render' === $method || 'display' === $method) {
$message .= sprintf(' Use include("%s") instead).', $object->getTemplateName());
}
@trigger_error($message, \E_USER_DEPRECATED);
Arguments
// line 3
public function block_head_application($context, array $blocks = [])
{
// line 4
echo "<meta charset=\"utf-8\" />
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />
<title>";
// line 6
echo twig_escape_filter($this->env, ((array_key_exists("errorcode", $context)) ? (_twig_default_filter(($context["errorcode"] ?? null), 500)) : (500)), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, ((array_key_exists("error", $context)) ? (_twig_default_filter(($context["error"] ?? null), $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_ENGINE_UNKNOWN_ERROR"))) : ($this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_ENGINE_UNKNOWN_ERROR"))), "html", null, true);
echo "</title>
";
// line 7
$this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", []), "errorPage", [0 => true], "method");
// line 8
$this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "finalize", [], "method");
// line 9
echo twig_join_filter($this->getAttribute(($context["gantry"] ?? null), "styles", [0 => "head", 1 => true], "method"), "
");
echo "
";
// line 10
echo twig_join_filter($this->getAttribute(($context["gantry"] ?? null), "scripts", [0 => "head", 1 => true], "method"), "
");
}
public function getTemplateName()
{
return "partials/error_head.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
Arguments
Gantry\Framework\Gantry {#715}
"styles"
array:2 [
0 => "head"
1 => true
]
"method"
if ($useBlocks && isset($blocks[$name])) {
$template = $blocks[$name][0];
$block = $blocks[$name][1];
} elseif (isset($this->blocks[$name])) {
$template = $this->blocks[$name][0];
$block = $this->blocks[$name][1];
} else {
$template = null;
$block = null;
}
// avoid RCEs when sandbox is enabled
if (null !== $template && !$template instanceof self) {
throw new \LogicException('A block must be a method on a \Twig\Template instance.');
}
if (null !== $template) {
try {
$template->$block($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($template->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Exception $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $template->getSourceContext(), $e);
$e->guess();
throw $e;
}
} elseif (false !== $parent = $this->getParent($context)) {
$parent->displayBlock($name, $context, array_merge($this->blocks, $blocks), false);
Arguments
array:20 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
"faEnabled" => 1
"faVersion" => "fa4"
]
array:10 [
"head_stylesheets" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_stylesheets"
]
"head_scripts" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_scripts"
]
"head_platform" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_platform"
]
"head_overrides" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_overrides"
]
"head_meta" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_meta"
]
"head_title" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_title"
]
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
"head_ie_stylesheets" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_ie_stylesheets"
]
"head" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head"
]
"head_custom" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_custom"
]
]
$this->displayBlock('head_overrides', $context, $blocks);
$content = ob_get_clean();
$assetFunction($content, $location, $priority);
// line 50
echo "<head>
";
// line 51
echo twig_join_filter($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", []), "getHtml", [0 => "head_top"], "method"), "
");
echo "
";
// line 52
$this->displayBlock('head_meta', $context, $blocks);
// line 78
$this->displayBlock('head_title', $context, $blocks);
// line 82
echo "
";
// line 83
$this->displayBlock('head_application', $context, $blocks);
// line 87
echo "
";
// line 88
$this->displayBlock('head_ie_stylesheets', $context, $blocks);
// line 91
$this->displayBlock('head', $context, $blocks);
// line 92
$this->displayBlock('head_custom', $context, $blocks);
// line 97
echo twig_join_filter($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", []), "getHtml", [0 => "head_bottom"], "method"), "
");
echo "
</head>
";
}
// line 7
public function block_head_stylesheets($context, array $blocks = [])
{
Arguments
"head_application"
array:20 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
"faEnabled" => 1
"faVersion" => "fa4"
]
array:10 [
"head_stylesheets" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_stylesheets"
]
"head_scripts" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_scripts"
]
"head_platform" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_platform"
]
"head_overrides" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_overrides"
]
"head_meta" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_meta"
]
"head_title" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_title"
]
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
"head_ie_stylesheets" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_ie_stylesheets"
]
"head" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head"
]
"head_custom" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_custom"
]
]
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Exception $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
$e->guess();
throw $e;
}
}
Arguments
array:20 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
"faEnabled" => 1
"faVersion" => "fa4"
]
array:10 [
"head_stylesheets" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_stylesheets"
]
"head_scripts" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_scripts"
]
"head_platform" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_platform"
]
"head_overrides" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_overrides"
]
"head_meta" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_meta"
]
"head_title" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_title"
]
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
"head_ie_stylesheets" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_ie_stylesheets"
]
"head" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head"
]
"head_custom" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_custom"
]
]
{
return $this;
}
/**
* Returns all blocks.
*
* This method is for internal use only and should never be called
* directly.
*
* @return array An array of blocks
*/
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Exception $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:10 [
"head_stylesheets" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_stylesheets"
]
"head_scripts" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_scripts"
]
"head_platform" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_platform"
]
"head_overrides" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_overrides"
]
"head_meta" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_meta"
]
"head_title" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_title"
]
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
"head_ie_stylesheets" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_ie_stylesheets"
]
"head" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head"
]
"head_custom" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_custom"
]
]
parent::__construct($env);
$this->blocks = [
'head_title' => [$this, 'block_head_title'],
'head_application' => [$this, 'block_head_application'],
'head_platform' => [$this, 'block_head_platform'],
'head' => [$this, 'block_head'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@nucleus/page_head.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$this->parent = $this->loadTemplate("@nucleus/page_head.html.twig", "partials/page_head.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_head_title($context, array $blocks = [])
{
}
// line 6
public function block_head_application($context, array $blocks = [])
{
// line 7
if ($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "checkVersion", [0 => 4], "method")) {
echo " ";
// line 8
echo " <jdoc:include type=\"metas\" />
<jdoc:include type=\"styles\" />
<jdoc:include type=\"scripts\" />
";
} elseif ($this->getAttribute($this->getAttribute( // line 11
($context["gantry"] ?? null), "platform", []), "checkVersion", [0 => 3], "method")) {
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:4 [
"head_title" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_title"
]
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
"head_platform" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_platform"
]
"head" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head"
]
]
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Exception $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
$e->guess();
throw $e;
}
}
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:4 [
"head_title" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_title"
]
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
"head_platform" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_platform"
]
"head" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head"
]
]
{
return $this;
}
/**
* Returns all blocks.
*
* This method is for internal use only and should never be called
* directly.
*
* @return array An array of blocks
*/
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Exception $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:4 [
"head_title" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_title"
]
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
"head_platform" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_platform"
]
"head" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head"
]
]
{
public function __construct(Environment $env)
{
parent::__construct($env);
$this->blocks = [
'head_application' => [$this, 'block_head_application'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "partials/page_head.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$this->parent = $this->loadTemplate("partials/page_head.html.twig", "partials/error_head.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_head_application($context, array $blocks = [])
{
// line 4
echo "<meta charset=\"utf-8\" />
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />
<title>";
// line 6
echo twig_escape_filter($this->env, ((array_key_exists("errorcode", $context)) ? (_twig_default_filter(($context["errorcode"] ?? null), 500)) : (500)), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, ((array_key_exists("error", $context)) ? (_twig_default_filter(($context["error"] ?? null), $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_ENGINE_UNKNOWN_ERROR"))) : ($this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_ENGINE_UNKNOWN_ERROR"))), "html", null, true);
echo "</title>
";
// line 7
$this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", []), "errorPage", [0 => true], "method");
// line 8
$this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "finalize", [], "method");
// line 9
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:1 [
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
]
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Exception $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
$e->guess();
throw $e;
}
}
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:1 [
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
]
{
return $this;
}
/**
* Returns all blocks.
*
* This method is for internal use only and should never be called
* directly.
*
* @return array An array of blocks
*/
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Exception $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:1 [
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
]
];
}
protected function doGetParent(array $context)
{
// line 1
return "partials/page.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$this->parent = $this->loadTemplate("partials/page.html.twig", "error.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_page_head($context, array $blocks = [])
{
// line 4
$this->loadTemplate("partials/error_head.html.twig", "error.html.twig", 4)->display($context);
}
// line 7
public function block_content($context, array $blocks = [])
{
// line 8
echo " <h1>";
echo twig_escape_filter($this->env, ((array_key_exists("errorcode", $context)) ? (_twig_default_filter(($context["errorcode"] ?? null), 500)) : (500)), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, ((array_key_exists("error", $context)) ? (_twig_default_filter(($context["error"] ?? null), "Unknown Error")) : ("Unknown Error")), "html", null, true);
echo "</h1>
";
// line 9
echo ($context["backtrace"] ?? null);
echo "
";
}
public function getTemplateName()
{
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
$context["body_top"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 55
ob_start(function () { return ''; });
// line 56
echo " ";
$this->displayBlock('body_bottom', $context, $blocks);
// line 58
echo " ";
echo twig_join_filter($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", []), "getHtml", [0 => "body_bottom"], "method"), "
");
echo "
";
$context["body_bottom"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 61
$this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", []), "addScript", [0 => $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->urlFunc("gantry-assets://js/main.js"), 1 => 11, 2 => "footer"], "method");
// line 65
ob_start(function () { return ''; });
// line 66
echo " ";
$this->displayBlock('page_head', $context, $blocks);
$context["page_head"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 71
ob_start(function () { return ''; });
// line 72
echo " ";
$this->displayBlock('page_footer', $context, $blocks);
// line 76
echo "
";
// line 77
echo $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "debugger", []), "render", [], "method");
echo "
";
$context["page_footer"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 80
$this->displayBlock('page', $context, $blocks);
}
// line 8
public function block_content($context, array $blocks = [])
Arguments
"page_head"
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:11 [
"content" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_content"
]
"page_offcanvas" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_offcanvas"
]
"page_layout" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_layout"
]
"page_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_top"
]
"page_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_bottom"
]
"body_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_top"
]
"body_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_bottom"
]
"page_head" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_page_head"
]
"page_footer" => array:2 [
0 => __TwigTemplate_2ed577f2dbaf3f15552ad0fad01706fca6f5f00692e261a27b8da7fc58fe8564 {#922}
1 => "block_page_footer"
]
"page" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page"
]
"page_body" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_body"
]
]
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Exception $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
$e->guess();
throw $e;
}
}
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:11 [
"content" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_content"
]
"page_offcanvas" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_offcanvas"
]
"page_layout" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_layout"
]
"page_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_top"
]
"page_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_bottom"
]
"body_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_top"
]
"body_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_bottom"
]
"page_head" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_page_head"
]
"page_footer" => array:2 [
0 => __TwigTemplate_2ed577f2dbaf3f15552ad0fad01706fca6f5f00692e261a27b8da7fc58fe8564 {#922}
1 => "block_page_footer"
]
"page" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page"
]
"page_body" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_body"
]
]
{
return $this;
}
/**
* Returns all blocks.
*
* This method is for internal use only and should never be called
* directly.
*
* @return array An array of blocks
*/
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Exception $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
Arguments
array:8 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
]
array:11 [
"content" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_content"
]
"page_offcanvas" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_offcanvas"
]
"page_layout" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_layout"
]
"page_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_top"
]
"page_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_bottom"
]
"body_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_top"
]
"body_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_bottom"
]
"page_head" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_page_head"
]
"page_footer" => array:2 [
0 => __TwigTemplate_2ed577f2dbaf3f15552ad0fad01706fca6f5f00692e261a27b8da7fc58fe8564 {#922}
1 => "block_page_footer"
]
"page" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page"
]
"page_body" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_body"
]
]
{
public function __construct(Environment $env)
{
parent::__construct($env);
$this->blocks = [
'page_footer' => [$this, 'block_page_footer'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@nucleus/page.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$this->parent = $this->loadTemplate("@nucleus/page.html.twig", "partials/page.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_page_footer($context, array $blocks = [])
{
// line 4
echo " ";
$this->displayParentBlock("page_footer", $context, $blocks);
echo "
<jdoc:include type=\"modules\" name=\"debug\" />
";
}
public function getTemplateName()
{
return "partials/page.html.twig";
}
public function isTraitable()
{
Arguments
array:8 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
]
array:3 [
"page_footer" => array:2 [
0 => __TwigTemplate_2ed577f2dbaf3f15552ad0fad01706fca6f5f00692e261a27b8da7fc58fe8564 {#922}
1 => "block_page_footer"
]
"page_head" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_page_head"
]
"content" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_content"
]
]
public function __construct(Environment $env)
{
parent::__construct($env);
$this->blocks = [
'page_head' => [$this, 'block_page_head'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "partials/page.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$this->parent = $this->loadTemplate("partials/page.html.twig", "error.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_page_head($context, array $blocks = [])
{
// line 4
$this->loadTemplate("partials/error_head.html.twig", "error.html.twig", 4)->display($context);
}
// line 7
public function block_content($context, array $blocks = [])
{
// line 8
echo " <h1>";
echo twig_escape_filter($this->env, ((array_key_exists("errorcode", $context)) ? (_twig_default_filter(($context["errorcode"] ?? null), 500)) : (500)), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, ((array_key_exists("error", $context)) ? (_twig_default_filter(($context["error"] ?? null), "Unknown Error")) : ("Unknown Error")), "html", null, true);
echo "</h1>
";
// line 9
Arguments
array:8 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
]
array:2 [
"page_head" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_page_head"
]
"content" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_content"
]
]
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Exception $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
Arguments
array:7 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
]
* @internal
*/
public function __construct(Environment $env, Template $template)
{
$this->env = $env;
$this->template = $template;
}
/**
* Renders the template.
*
* @param array $context An array of parameters to pass to the template
*
* @return string The rendered template
*/
public function render($context = [])
{
// using func_get_args() allows to not expose the blocks argument
// as it should only be used by internal code
return $this->template->render($context, \func_num_args() > 1 ? func_get_arg(1) : []);
}
/**
* Displays the template.
*
* @param array $context An array of parameters to pass to the template
*/
public function display($context = [])
{
// using func_get_args() allows to not expose the blocks argument
// as it should only be used by internal code
$this->template->display($context, \func_num_args() > 1 ? func_get_arg(1) : []);
}
/**
* Checks if a block is defined.
*
* @param string $name The block name
* @param array $context An array of parameters to pass to the template
*
Arguments
array:7 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
]
[]
@trigger_error(sprintf('The %s method is deprecated since version 1.22 and will be removed in Twig 2.0.', __METHOD__), \E_USER_DEPRECATED);
return $this->templateClassPrefix;
}
/**
* Renders a template.
*
* @param string|TemplateWrapper $name The template name
* @param array $context An array of parameters to pass to the template
*
* @return string The rendered template
*
* @throws LoaderError When the template cannot be found
* @throws SyntaxError When an error occurred during compilation
* @throws RuntimeError When an error occurred during rendering
*/
public function render($name, array $context = [])
{
return $this->load($name)->render($context);
}
/**
* Displays a template.
*
* @param string|TemplateWrapper $name The template name
* @param array $context An array of parameters to pass to the template
*
* @throws LoaderError When the template cannot be found
* @throws SyntaxError When an error occurred during compilation
* @throws RuntimeError When an error occurred during rendering
*/
public function display($name, array $context = [])
{
$this->load($name)->display($context);
}
/**
* Loads a template.
*
Arguments
array:7 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
]
$this->renderer = $this->extendTwig($twig, $loader);
}
return $this->renderer;
}
/**
* Render a template file by using given context.
*
* @param string $file
* @param array $context
* @return string
*/
public function render($file, array $context = [])
{
// Include Gantry specific things to the context.
$context = $this->getContext($context);
return $this->renderer()->render($file, $context);
}
/**
* Compile and render twig string.
*
* @param string $string
* @param array $context
* @return string
*/
public function compile($string, array $context = [])
{
$renderer = $this->renderer();
$template = $renderer->createTemplate($string);
// Include Gantry specific things to the context.
$context = $this->getContext($context);
return $template->render($context);
}
Arguments
"error.html.twig"
array:7 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
]
$joomla->document = $this;
/** @var Theme $theme */
$theme = $gantry['theme'];
$app = Factory::getApplication();
$context = array(
'errorcode' => isset($this->error) ? $this->error->getCode() : null,
'error' => isset($this->error) ? $this->error->getMessage() : null,
'debug' => $app->get('debug_lang', '0') == '1' || $app->get('debug', '0') == '1',
'backtrace' => $this->debug ? $this->renderBacktrace() : null
);
// Reset used outline configuration.
unset($gantry['configuration']);
// Render the page.
echo $theme
->setLayout('_error', true)
->render('error.html.twig', $context);
Arguments
"error.html.twig"
array:7 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
]
* @param string $directory The name of the template
* @param string $filename The actual filename
*
* @return string The contents of the template
*
* @since 1.7.0
*/
protected function _loadTemplate($directory, $filename)
{
$contents = '';
// Check to see if we have a valid template file
if (is_file($directory . '/' . $filename))
{
// Store the file path
$this->_file = $directory . '/' . $filename;
// Get the file content
ob_start();
require $directory . '/' . $filename;
$contents = ob_get_contents();
ob_end_clean();
}
return $contents;
}
/**
* Fetch the template, and initialise the params
*
* @param array $params Parameters to determine the template
*
* @return HtmlDocument instance of $this to allow chaining
*
* @since 1.7.0
*/
protected function _fetchTemplate($params = array())
{
// Check
$directory = $params['directory'] ?? 'templates';
Arguments
"/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates/g5_helium/error.php"
$file = 'index.php';
}
}
}
// Load the language file for the template
$lang = CmsFactory::getLanguage();
// 1.5 or core then 1.6
$lang->load('tpl_' . $template, JPATH_BASE)
|| ($inherits !== '' && $lang->load('tpl_' . $inherits, $directory . '/' . $inherits))
|| $lang->load('tpl_' . $template, $directory . '/' . $template);
// Assign the variables
$this->baseurl = Uri::base(true);
$this->params = $params['params'] ?? new Registry;
$this->template = $template;
// Load
$this->_template = $this->_loadTemplate($baseDir, $file);
return $this;
}
/**
* Parse a document template
*
* @return HtmlDocument instance of $this to allow chaining
*
* @since 1.7.0
*/
protected function _parseTemplate()
{
$matches = array();
if (preg_match_all('#<jdoc:include\ type="([^"]+)"(.*)\/>#iU', $this->_template, $matches))
{
$messages = [];
$template_tags_first = [];
$template_tags_last = [];
Arguments
"/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates/g5_helium"
"error.php"
$options['title'] = $args[3] ?? null;
}
parent::$_buffer[$options['type']][$options['name']][$options['title']] = $content;
return $this;
}
/**
* Parses the template and populates the buffer
*
* @param array $params Parameters for fetching the template
*
* @return HtmlDocument instance of $this to allow chaining
*
* @since 1.7.0
*/
public function parse($params = array())
{
return $this->_fetchTemplate($params)->_parseTemplate();
}
/**
* Outputs the template to the browser.
*
* @param boolean $caching If true, cache the output
* @param array $params Associative array of attributes
*
* @return string The rendered data
*
* @since 1.7.0
*/
public function render($caching = false, $params = array())
{
$this->_caching = $caching;
if (empty($this->_template))
{
$this->parse($params);
}
Arguments
array:7 [
"template" => "g5_helium"
"directory" => "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates"
"debug" => "0"
"csp_nonce" => "ZDg2MDM0ZmYwOTJkZjFiNDdmMGQyNWM0ZDRlZDAwYTY4YjVlOTBlZDg2Y2YyOWJlNjNmMWFiNjg4ZTMyY2NjMjQ4MGU1NGZiZDVjMzcxZDA3ZjhmOTE5ZjJlZjE1YWNmOWY1MDMwOWFlNmY0MDM1NDkyNmU4OGEzNGRmYWIwMWI="
"templateInherits" => ""
"params" => Joomla\Registry\Registry {#658}
"file" => "error.php"
]
return $this->_fetchTemplate($params)->_parseTemplate();
}
/**
* Outputs the template to the browser.
*
* @param boolean $caching If true, cache the output
* @param array $params Associative array of attributes
*
* @return string The rendered data
*
* @since 1.7.0
*/
public function render($caching = false, $params = array())
{
$this->_caching = $caching;
if (empty($this->_template))
{
$this->parse($params);
}
if (\array_key_exists('csp_nonce', $params) && $params['csp_nonce'] !== null)
{
$this->cspNonce = $params['csp_nonce'];
}
$data = $this->_renderTemplate();
parent::render($caching, $params);
return $data;
}
/**
* Count the modules in the given position
*
* @param string $positionName The position to use
* @param boolean $withContentOnly Count only a modules which actually has a content
*
* @return integer Number of modules found
Arguments
array:7 [
"template" => "g5_helium"
"directory" => "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates"
"debug" => "0"
"csp_nonce" => "ZDg2MDM0ZmYwOTJkZjFiNDdmMGQyNWM0ZDRlZDAwYTY4YjVlOTBlZDg2Y2YyOWJlNjNmMWFiNjg4ZTMyY2NjMjQ4MGU1NGZiZDVjMzcxZDA3ZjhmOTE5ZjJlZjE1YWNmOWY1MDMwOWFlNmY0MDM1NDkyNmU4OGEzNGRmYWIwMWI="
"templateInherits" => ""
"params" => Joomla\Registry\Registry {#658}
"file" => "error.php"
]
{
$status = 500;
}
$errorReporting = CmsFactory::getApplication()->get('error_reporting');
if ($errorReporting === "development" || $errorReporting === "maximum")
{
$status .= ' ' . str_replace("\n", ' ', $this->_error->getMessage());
}
CmsFactory::getApplication()->setHeader('status', $status);
// Set variables
$this->debug = $params['debug'] ?? false;
$this->error = $this->_error;
$params['file'] = 'error.php';
return parent::render($cache, $params);
}
/**
* Render the backtrace
*
* @return string The contents of the backtrace
*
* @since 1.7.0
*/
public function renderBacktrace()
{
// If no error object is set return null
if (!isset($this->_error))
{
return;
}
// The back trace
$backtrace = $this->_error->getTrace();
Arguments
false
array:7 [
"template" => "g5_helium"
"directory" => "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates"
"debug" => "0"
"csp_nonce" => "ZDg2MDM0ZmYwOTJkZjFiNDdmMGQyNWM0ZDRlZDAwYTY4YjVlOTBlZDg2Y2YyOWJlNjNmMWFiNjg4ZTMyY2NjMjQ4MGU1NGZiZDVjMzcxZDA3ZjhmOTE5ZjJlZjE1YWNmOWY1MDMwOWFlNmY0MDM1NDkyNmU4OGEzNGRmYWIwMWI="
"templateInherits" => ""
"params" => Joomla\Registry\Registry {#658}
"file" => "error.php"
]
{
$wa->addTemplateRegistryFile($template->parent, $app->getClientId());
}
if (ob_get_contents())
{
ob_end_clean();
}
$this->getDocument()->setTitle(Text::_('Error') . ': ' . $error->getCode());
return $this->getDocument()->render(
false,
[
'template' => $template->template,
'directory' => JPATH_THEMES,
'debug' => JDEBUG,
'csp_nonce' => $app->get('csp_nonce'),
'templateInherits' => $template->parent,
'params' => $template->params,
]
);
}
}
Arguments
false
array:7 [
"template" => "g5_helium"
"directory" => "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates"
"debug" => "0"
"csp_nonce" => "ZDg2MDM0ZmYwOTJkZjFiNDdmMGQyNWM0ZDRlZDAwYTY4YjVlOTBlZDg2Y2YyOWJlNjNmMWFiNjg4ZTMyY2NjMjQ4MGU1NGZiZDVjMzcxZDA3ZjhmOTE5ZjJlZjE1YWNmOWY1MDMwOWFlNmY0MDM1NDkyNmU4OGEzNGRmYWIwMWI="
"templateInherits" => ""
"params" => Joomla\Registry\Registry {#658}
"file" => "error.php"
]
else
{
$format = $app->input->getString('format', 'html');
}
try
{
$renderer = AbstractRenderer::getRenderer($format);
}
catch (\InvalidArgumentException $e)
{
// Default to the HTML renderer
$renderer = AbstractRenderer::getRenderer('html');
}
// Reset the document object in the factory, this gives us a clean slate and lets everything render properly
Factory::$document = $renderer->getDocument();
Factory::getApplication()->loadDocument(Factory::$document);
$data = $renderer->render($error);
// If nothing was rendered, just use the message from the Exception
if (empty($data))
{
$data = $error->getMessage();
}
if ($isCli)
{
echo $data;
}
else
{
/** @var CMSApplication $app */
// Do not allow cache
$app->allowCache(false);
$app->setBody($data);
}
Arguments
Twig\Error\RuntimeError {#1506
#lineno: 73
#filename: "@nucleus/page.html.twig"
#rawMessage: """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
-sourcePath: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/media/gantry5/engines/nucleus/templates/page.html.twig"
-sourceCode: ""
#message: """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/media/gantry5/engines/nucleus/templates/page.html.twig"
#line: 73
-previous: RuntimeException {#1556
#message: """
ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2
"""
#code: 500
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/src/classes/Gantry/Component/Stylesheet/ScssCompiler.php"
#line: 192
-previous: ScssPhp\ScssPhp\Exception\CompilerException {#1545
#message: """
Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2
"""
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php"
#line: 573
-previous: ScssPhp\ScssPhp\Exception\SassScriptException {#4508
#message: "Incompatible units rem and %."
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/compat/vendor/scssphp/scssphp/src/Node/Number.php"
#line: 657
}
}
}
}
}
}
// Always return false, this will tell PHP to handle the error internally
return false;
}
/**
* Handles exceptions: logs errors and renders error page.
*
* @param \Exception|\Throwable $error An Exception or Throwable (PHP 7+) object for which to render the error page.
*
* @return void
*
* @since 3.10.0
*/
public static function handleException(\Throwable $error)
{
static::logException($error);
static::render($error);
}
/**
* Render the error page based on an exception.
*
* @param \Throwable $error An Exception or Throwable (PHP 7+) object for which to render the error page.
*
* @return void
*
* @since 3.0
*/
public static function render(\Throwable $error)
{
try
{
$app = Factory::getApplication();
// Flag if we are on cli
$isCli = $app->isClient('cli');
Arguments
Twig\Error\RuntimeError {#1506
#lineno: 73
#filename: "@nucleus/page.html.twig"
#rawMessage: """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
-sourcePath: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/media/gantry5/engines/nucleus/templates/page.html.twig"
-sourceCode: ""
#message: """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/media/gantry5/engines/nucleus/templates/page.html.twig"
#line: 73
-previous: RuntimeException {#1556
#message: """
ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2
"""
#code: 500
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/src/classes/Gantry/Component/Stylesheet/ScssCompiler.php"
#line: 192
-previous: ScssPhp\ScssPhp\Exception\CompilerException {#1545
#message: """
Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2
"""
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php"
#line: 573
-previous: ScssPhp\ScssPhp\Exception\SassScriptException {#4508
#message: "Incompatible units rem and %."
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/compat/vendor/scssphp/scssphp/src/Node/Number.php"
#line: 657
}
}
}
}
// Trigger the onAfterCompress event.
$this->triggerEvent('onAfterCompress');
}
}
catch (\Throwable $throwable)
{
/** @var ErrorEvent $event */
$event = AbstractEvent::create(
'onError',
[
'subject' => $throwable,
'eventClass' => ErrorEvent::class,
'application' => $this,
]
);
// Trigger the onError event.
$this->triggerEvent('onError', $event);
ExceptionHandler::handleException($event->getError());
}
// Trigger the onBeforeRespond event.
$this->getDispatcher()->dispatch('onBeforeRespond');
// Send the application response.
$this->respond();
// Trigger the onAfterRespond event.
$this->getDispatcher()->dispatch('onAfterRespond');
}
/**
* Check if the user is required to reset their password.
*
* If the user is required to reset their password will be redirected to the page that manage the password reset.
*
* @param string $option The option that manage the password reset
* @param string $view The view that manage the password reset
* @param string $layout The layout of the view that manage the password reset
Arguments
Twig\Error\RuntimeError {#1506
#lineno: 73
#filename: "@nucleus/page.html.twig"
#rawMessage: """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
-sourcePath: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/media/gantry5/engines/nucleus/templates/page.html.twig"
-sourceCode: ""
#message: """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/media/gantry5/engines/nucleus/templates/page.html.twig"
#line: 73
-previous: RuntimeException {#1556
#message: """
ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2
"""
#code: 500
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/src/classes/Gantry/Component/Stylesheet/ScssCompiler.php"
#line: 192
-previous: ScssPhp\ScssPhp\Exception\CompilerException {#1545
#message: """
Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2
"""
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php"
#line: 573
-previous: ScssPhp\ScssPhp\Exception\SassScriptException {#4508
#message: "Incompatible units rem and %."
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/compat/vendor/scssphp/scssphp/src/Node/Number.php"
#line: 657
}
}
}
}
return $this->dimension;
}
$value = $this->dimension;
$oldNumerators = $this->numeratorUnits;
foreach ($numeratorUnits as $newNumerator) {
foreach ($oldNumerators as $key => $oldNumerator) {
$conversionFactor = self::getConversionFactor($newNumerator, $oldNumerator);
if (\is_null($conversionFactor)) {
continue;
}
$value *= $conversionFactor;
unset($oldNumerators[$key]);
continue 2;
}
throw new SassScriptException(sprintf(
'Incompatible units %s and %s.',
self::getUnitString($this->numeratorUnits, $this->denominatorUnits),
self::getUnitString($numeratorUnits, $denominatorUnits)
));
}
$oldDenominators = $this->denominatorUnits;
foreach ($denominatorUnits as $newDenominator) {
foreach ($oldDenominators as $key => $oldDenominator) {
$conversionFactor = self::getConversionFactor($newDenominator, $oldDenominator);
if (\is_null($conversionFactor)) {
continue;
}
$value /= $conversionFactor;
unset($oldDenominators[$key]);
continue 2;
}
Arguments
"Incompatible units rem and %."
}
return new Number($result, $other->numeratorUnits, $other->denominatorUnits);
}
/**
* @param Number $other
* @param callable $operation
*
* @return mixed
*
* @phpstan-template T
* @phpstan-param callable(int|float, int|float): T $operation
* @phpstan-return T
*/
private function coerceUnits(Number $other, $operation)
{
if (!$this->unitless()) {
$num1 = $this->dimension;
$num2 = $other->valueInUnits($this->numeratorUnits, $this->denominatorUnits);
} else {
$num1 = $this->valueInUnits($other->numeratorUnits, $other->denominatorUnits);
$num2 = $other->dimension;
}
return \call_user_func($operation, $num1, $num2);
}
/**
* @param string[] $numeratorUnits
* @param string[] $denominatorUnits
*
* @return int|float
*
* @phpstan-param list<string> $numeratorUnits
* @phpstan-param list<string> $denominatorUnits
*
* @throws SassScriptException if this number's units are not compatible with $numeratorUnits and $denominatorUnits
*/
private function valueInUnits(array $numeratorUnits, array $denominatorUnits)
Arguments
/**
* {@inheritdoc}
*/
public function __toString()
{
return $this->output();
}
/**
* @param Number $other
* @param callable $operation
*
* @return Number
*
* @phpstan-param callable(int|float, int|float): (int|float) $operation
*/
private function coerceNumber(Number $other, $operation)
{
$result = $this->coerceUnits($other, $operation);
if (!$this->unitless()) {
return new Number($result, $this->numeratorUnits, $this->denominatorUnits);
}
return new Number($result, $other->numeratorUnits, $other->denominatorUnits);
}
/**
* @param Number $other
* @param callable $operation
*
* @return mixed
*
* @phpstan-template T
* @phpstan-param callable(int|float, int|float): T $operation
* @phpstan-return T
*/
private function coerceUnits(Number $other, $operation)
{
Arguments
ScssPhp\ScssPhp\Node\Number {#2172}
Closure($num1, $num2) {#2103 …4}
*
* @return Number
*/
public function plus(Number $other)
{
return $this->coerceNumber($other, function ($num1, $num2) {
return $num1 + $num2;
});
}
/**
* @param Number $other
*
* @return Number
*/
public function minus(Number $other)
{
return $this->coerceNumber($other, function ($num1, $num2) {
return $num1 - $num2;
});
}
/**
* @return Number
*/
public function unaryMinus()
{
return new Number(-$this->dimension, $this->numeratorUnits, $this->denominatorUnits);
}
/**
* @param Number $other
*
* @return Number
*/
public function modulo(Number $other)
{
return $this->coerceNumber($other, function ($num1, $num2) {
if ($num2 == 0) {
return NAN;
Arguments
ScssPhp\ScssPhp\Node\Number {#2172}
Closure($num1, $num2) {#2103 …4}
* @param Number $right
*
* @return Number
*/
protected function opMulNumberNumber(Number $left, Number $right)
{
return $left->times($right);
}
/**
* Subtract numbers
*
* @param Number $left
* @param Number $right
*
* @return Number
*/
protected function opSubNumberNumber(Number $left, Number $right)
{
return $left->minus($right);
}
/**
* Divide numbers
*
* @param Number $left
* @param Number $right
*
* @return Number
*/
protected function opDivNumberNumber(Number $left, Number $right)
{
return $left->dividedBy($right);
}
/**
* Mod numbers
*
* @param Number $left
* @param Number $right
Arguments
ScssPhp\ScssPhp\Node\Number {#2172}
return $this->expToString($value);
}
$left = $this->coerceForExpression($left);
$right = $this->coerceForExpression($right);
$ltype = $left[0];
$rtype = $right[0];
$ucOpName = ucfirst($opName);
$ucLType = ucfirst($ltype);
$ucRType = ucfirst($rtype);
$shouldEval = $inParens || $inExp;
// this tries:
// 1. op[op name][left type][right type]
// 2. op[left type][right type] (passing the op as first arg)
// 3. op[op name]
if (\is_callable([$this, $fn = "op${ucOpName}${ucLType}${ucRType}"])) {
$out = $this->$fn($left, $right, $shouldEval);
} elseif (\is_callable([$this, $fn = "op${ucLType}${ucRType}"])) {
$out = $this->$fn($op, $left, $right, $shouldEval);
} elseif (\is_callable([$this, $fn = "op${ucOpName}"])) {
$out = $this->$fn($left, $right, $shouldEval);
} else {
$out = null;
}
if (isset($out)) {
return $out;
}
return $this->expToString($value);
case Type::T_UNARY:
list(, $op, $exp, $inParens) = $value;
$inExp = $inExp || $this->shouldEval($exp);
$exp = $this->reduce($exp);
Arguments
ScssPhp\ScssPhp\Node\Number {#4371}
ScssPhp\ScssPhp\Node\Number {#2172}
true
if ($divider instanceof Number && \intval($divider->getDimension()) && $divider->unitless()) {
$revert = false;
}
}
}
if ($revert) {
$item = $this->expToString($item);
$maxShorthandDividers--;
}
}
}
}
}
}
// if the value reduces to null from something else then
// the property should be discarded
if ($value[0] !== Type::T_NULL) {
$value = $this->reduce($value);
if ($value[0] === Type::T_NULL || $value === static::$nullString) {
break;
}
}
$compiledValue = $this->compileValue($value);
// ignore empty value
if (\strlen($compiledValue)) {
$line = $this->formatter->property(
$compiledName,
$compiledValue
);
$this->appendOutputLine($out, Type::T_ASSIGN, $line);
}
break;
case Type::T_COMMENT:
if ($out->type === Type::T_ROOT) {
Arguments
array:7 [
0 => "exp"
1 => "-"
2 => array:2 [
0 => "var"
1 => "offcanvas-width"
]
3 => ScssPhp\ScssPhp\Node\Number {#2172}
4 => false
5 => true
6 => true
]
*
* @return void
*
* @throws \Exception
*/
protected function compileChildrenNoReturn($stms, OutputBlock $out, $selfParent = null, $traceName = '')
{
$this->pushCallStack($traceName);
foreach ($stms as $stm) {
if ($selfParent && isset($stm[1]) && \is_object($stm[1]) && $stm[1] instanceof Block) {
$stm[1]->selfParent = $selfParent;
$ret = $this->compileChild($stm, $out);
$stm[1]->selfParent = null;
} elseif ($selfParent && \in_array($stm[0], [Type::T_INCLUDE, Type::T_EXTEND])) {
$stm['selfParent'] = $selfParent;
$ret = $this->compileChild($stm, $out);
unset($stm['selfParent']);
} else {
$ret = $this->compileChild($stm, $out);
}
if (isset($ret)) {
throw $this->error('@return may only be used within a function');
}
}
$this->popCallStack();
}
/**
* evaluate media query : compile internal value keeping the structure unchanged
*
* @param array $queryList
*
* @return array
*/
protected function evaluateMediaQuery($queryList)
{
Arguments
array:6 [
0 => "assign"
1 => array:3 [
0 => "string"
1 => ""
2 => array:1 [
0 => "left"
]
]
2 => array:7 [
0 => "exp"
1 => "-"
2 => array:2 [
0 => "var"
1 => "offcanvas-width"
]
3 => ScssPhp\ScssPhp\Node\Number {#2172}
4 => false
5 => true
6 => true
]
-2 => 35
-3 => 3
-1 => 145
]
ScssPhp\ScssPhp\Formatter\OutputBlock {#2102}
assert($block->selectors !== null);
$env->selectors = $this->evalSelectors($block->selectors);
$out = $this->makeOutputBlock(null);
assert($this->scope !== null);
$this->scope->children[] = $out;
if (\count($block->children)) {
$out->selectors = $this->multiplySelectors($env, $block->selfParent);
// propagate selfParent to the children where they still can be useful
$selfParentSelectors = null;
if (isset($block->selfParent->selectors)) {
$selfParentSelectors = $block->selfParent->selectors;
$block->selfParent->selectors = $out->selectors;
}
$this->compileChildrenNoReturn($block->children, $out, $block->selfParent);
// and revert for the following children of the same block
if ($selfParentSelectors) {
assert($block->selfParent !== null);
$block->selfParent->selectors = $selfParentSelectors;
}
}
$this->popEnv();
}
/**
* Compile the value of a comment that can have interpolation
*
* @param array $value
* @param bool $pushEnv
*
* @return string
*/
Arguments
array:3 [
0 => array:6 [
0 => "assign"
1 => array:3 [
0 => "string"
1 => ""
2 => array:1 [
0 => "color"
]
]
2 => array:2 [
0 => "var"
1 => "offcanvas-text-color"
]
-2 => 34
-3 => 3
-1 => 145
]
1 => array:6 [
0 => "assign"
1 => array:3 [
0 => "string"
1 => ""
2 => array:1 [
0 => "left"
]
]
2 => array:7 [
0 => "exp"
1 => "-"
2 => array:2 [
0 => "var"
1 => "offcanvas-width"
]
3 => ScssPhp\ScssPhp\Node\Number {#2172}
4 => false
5 => true
6 => true
]
-2 => 35
-3 => 3
-1 => 145
]
2 => array:6 [
0 => "assign"
1 => array:3 [
0 => "string"
1 => ""
2 => array:1 [
0 => "top"
]
]
2 => ScssPhp\ScssPhp\Node\Number {#2181}
-2 => 36
-3 => 3
-1 => 145
]
]
ScssPhp\ScssPhp\Formatter\OutputBlock {#2102}
null
case Type::T_IMPORT:
$rawPath = $this->reduce($child[1]);
$this->compileImport($rawPath, $out);
break;
case Type::T_DIRECTIVE:
$this->compileDirective($child[1], $out);
break;
case Type::T_AT_ROOT:
$this->compileAtRoot($child[1]);
break;
case Type::T_MEDIA:
$this->compileMedia($child[1]);
break;
case Type::T_BLOCK:
$this->compileBlock($child[1]);
break;
case Type::T_CHARSET:
break;
case Type::T_CUSTOM_PROPERTY:
list(, $name, $value) = $child;
$compiledName = $this->compileValue($name);
// if the value reduces to null from something else then
// the property should be discarded
if ($value[0] !== Type::T_NULL) {
$value = $this->reduce($value);
if ($value[0] === Type::T_NULL || $value === static::$nullString) {
break;
}
}
$compiledValue = $this->compileValue($value);
Arguments
ScssPhp\ScssPhp\Block {#2185}
*
* @return void
*
* @throws \Exception
*/
protected function compileChildrenNoReturn($stms, OutputBlock $out, $selfParent = null, $traceName = '')
{
$this->pushCallStack($traceName);
foreach ($stms as $stm) {
if ($selfParent && isset($stm[1]) && \is_object($stm[1]) && $stm[1] instanceof Block) {
$stm[1]->selfParent = $selfParent;
$ret = $this->compileChild($stm, $out);
$stm[1]->selfParent = null;
} elseif ($selfParent && \in_array($stm[0], [Type::T_INCLUDE, Type::T_EXTEND])) {
$stm['selfParent'] = $selfParent;
$ret = $this->compileChild($stm, $out);
unset($stm['selfParent']);
} else {
$ret = $this->compileChild($stm, $out);
}
if (isset($ret)) {
throw $this->error('@return may only be used within a function');
}
}
$this->popCallStack();
}
/**
* evaluate media query : compile internal value keeping the structure unchanged
*
* @param array $queryList
*
* @return array
*/
protected function evaluateMediaQuery($queryList)
{
Arguments
array:5 [
0 => "block"
1 => ScssPhp\ScssPhp\Block {#2185}
-2 => 37
-3 => 2
-1 => 145
]
ScssPhp\ScssPhp\Formatter\OutputBlock {#2104}
assert($block->selectors !== null);
$env->selectors = $this->evalSelectors($block->selectors);
$out = $this->makeOutputBlock(null);
assert($this->scope !== null);
$this->scope->children[] = $out;
if (\count($block->children)) {
$out->selectors = $this->multiplySelectors($env, $block->selfParent);
// propagate selfParent to the children where they still can be useful
$selfParentSelectors = null;
if (isset($block->selfParent->selectors)) {
$selfParentSelectors = $block->selfParent->selectors;
$block->selfParent->selectors = $out->selectors;
}
$this->compileChildrenNoReturn($block->children, $out, $block->selfParent);
// and revert for the following children of the same block
if ($selfParentSelectors) {
assert($block->selfParent !== null);
$block->selfParent->selectors = $selfParentSelectors;
}
}
$this->popEnv();
}
/**
* Compile the value of a comment that can have interpolation
*
* @param array $value
* @param bool $pushEnv
*
* @return string
*/
Arguments
array:8 [
0 => array:6 [
0 => "assign"
1 => array:3 [
0 => "string"
1 => ""
2 => array:1 [
0 => "background"
]
]
2 => array:2 [
0 => "var"
1 => "offcanvas-background"
]
-2 => 2
-3 => 2
-1 => 145
]
1 => array:6 [
0 => "assign"
1 => array:3 [
0 => "string"
1 => ""
2 => array:1 [
0 => "width"
]
]
2 => array:2 [
0 => "var"
1 => "offcanvas-width"
]
-2 => 3
-3 => 2
-1 => 145
]
2 => array:6 [
0 => "assign"
1 => array:3 [
0 => "string"
1 => ""
2 => array:1 [
0 => "color"
]
]
2 => array:2 [
0 => "var"
1 => "offcanvas-text-color"
]
-2 => 4
-3 => 2
-1 => 145
]
3 => array:5 [
0 => "block"
1 => ScssPhp\ScssPhp\Block {#2166}
-2 => 12
-3 => 2
-1 => 145
]
4 => array:5 [
0 => "block"
1 => ScssPhp\ScssPhp\Block {#2189}
-2 => 16
-3 => 2
-1 => 145
]
5 => array:5 [
0 => "block"
1 => ScssPhp\ScssPhp\Block {#2188}
-2 => 27
-3 => 5
-1 => 145
]
6 => array:5 [
0 => "block"
1 => ScssPhp\ScssPhp\Block {#2184}
-2 => 31
-3 => 2
-1 => 145
]
7 => array:5 [
0 => "block"
1 => ScssPhp\ScssPhp\Block {#2185}
-2 => 37
-3 => 2
-1 => 145
]
]
ScssPhp\ScssPhp\Formatter\OutputBlock {#2104}
null
case Type::T_IMPORT:
$rawPath = $this->reduce($child[1]);
$this->compileImport($rawPath, $out);
break;
case Type::T_DIRECTIVE:
$this->compileDirective($child[1], $out);
break;
case Type::T_AT_ROOT:
$this->compileAtRoot($child[1]);
break;
case Type::T_MEDIA:
$this->compileMedia($child[1]);
break;
case Type::T_BLOCK:
$this->compileBlock($child[1]);
break;
case Type::T_CHARSET:
break;
case Type::T_CUSTOM_PROPERTY:
list(, $name, $value) = $child;
$compiledName = $this->compileValue($name);
// if the value reduces to null from something else then
// the property should be discarded
if ($value[0] !== Type::T_NULL) {
$value = $this->reduce($value);
if ($value[0] === Type::T_NULL || $value === static::$nullString) {
break;
}
}
$compiledValue = $this->compileValue($value);
Arguments
ScssPhp\ScssPhp\Block {#2206}
*
* @return void
*
* @throws \Exception
*/
protected function compileChildrenNoReturn($stms, OutputBlock $out, $selfParent = null, $traceName = '')
{
$this->pushCallStack($traceName);
foreach ($stms as $stm) {
if ($selfParent && isset($stm[1]) && \is_object($stm[1]) && $stm[1] instanceof Block) {
$stm[1]->selfParent = $selfParent;
$ret = $this->compileChild($stm, $out);
$stm[1]->selfParent = null;
} elseif ($selfParent && \in_array($stm[0], [Type::T_INCLUDE, Type::T_EXTEND])) {
$stm['selfParent'] = $selfParent;
$ret = $this->compileChild($stm, $out);
unset($stm['selfParent']);
} else {
$ret = $this->compileChild($stm, $out);
}
if (isset($ret)) {
throw $this->error('@return may only be used within a function');
}
}
$this->popCallStack();
}
/**
* evaluate media query : compile internal value keeping the structure unchanged
*
* @param array $queryList
*
* @return array
*/
protected function evaluateMediaQuery($queryList)
{
Arguments
array:5 [
0 => "block"
1 => ScssPhp\ScssPhp\Block {#2206}
-2 => 38
-3 => 1
-1 => 145
]
ScssPhp\ScssPhp\Formatter\OutputBlock {#4395}
throw $this->error('The Sass indented syntax is not implemented.');
}
if (isset($this->importCache[$realPath])) {
$this->handleImportLoop($realPath);
$tree = $this->importCache[$realPath];
} else {
$code = file_get_contents($path);
$parser = $this->parserFactory($path);
$tree = $parser->parse($code);
$this->importCache[$realPath] = $tree;
}
$currentDirectory = $this->currentDirectory;
$this->currentDirectory = dirname($path);
$this->compileChildrenNoReturn($tree->children, $out);
$this->currentDirectory = $currentDirectory;
$this->popCallStack();
}
/**
* Save the imported files with their resolving path context
*
* @param string|null $currentDirectory
* @param string $path
* @param string $filePath
*
* @return void
*/
private function registerImport($currentDirectory, $path, $filePath)
{
$this->resolvedImports[] = ['currentDir' => $currentDirectory, 'path' => $path, 'filePath' => $filePath];
}
/**
* Detects whether the import is a CSS import.
Arguments
array:7 [
0 => array:5 [
0 => "block"
1 => ScssPhp\ScssPhp\Block {#2206}
-2 => 38
-3 => 1
-1 => 145
]
1 => array:5 [
0 => "block"
1 => ScssPhp\ScssPhp\Block {#2180}
-2 => 60
-3 => 1
-1 => 145
]
2 => array:5 [
0 => "block"
1 => ScssPhp\ScssPhp\Block {#2167}
-2 => 92
-3 => 1
-1 => 145
]
3 => array:5 [
0 => "block"
1 => ScssPhp\ScssPhp\Block {#2140}
-2 => 149
-3 => 1
-1 => 145
]
4 => array:5 [
0 => "block"
1 => ScssPhp\ScssPhp\Block {#2123}
-2 => 153
-3 => 1
-1 => 145
]
5 => array:5 [
0 => "block"
1 => ScssPhp\ScssPhp\Block {#2082}
-2 => 173
-3 => 1
-1 => 145
]
6 => array:5 [
0 => "media"
1 => ScssPhp\ScssPhp\Block\MediaBlock {#2114}
-2 => 180
-3 => 1
-1 => 145
]
]
ScssPhp\ScssPhp\Formatter\OutputBlock {#4395}
/**
* Compile import; returns true if the value was something that could be imported
*
* @param array $rawPath
* @param \ScssPhp\ScssPhp\Formatter\OutputBlock $out
* @param bool $once
*
* @return bool
*/
protected function compileImport($rawPath, OutputBlock $out, $once = false)
{
if ($rawPath[0] === Type::T_STRING) {
$path = $this->compileStringContent($rawPath);
if (strpos($path, 'url(') !== 0 && $filePath = $this->findImport($path, $this->currentDirectory)) {
$this->registerImport($this->currentDirectory, $path, $filePath);
if (! $once || ! \in_array($filePath, $this->importedFiles)) {
$this->importFile($filePath, $out);
$this->importedFiles[] = $filePath;
}
return true;
}
$this->appendRootDirective('@import ' . $this->compileImportPath($rawPath) . ';', $out);
return false;
}
if ($rawPath[0] === Type::T_LIST) {
// handle a list of strings
if (\count($rawPath[2]) === 0) {
return false;
}
foreach ($rawPath[2] as $path) {
if ($path[0] !== Type::T_STRING) {
$this->appendRootDirective('@import ' . $this->compileImportPath($rawPath) . ';', $out);
Arguments
"/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates/g5_helium/scss/helium/sections/_offcanvas.scss"
ScssPhp\ScssPhp\Formatter\OutputBlock {#4395}
$sourceIndex = array_search($out->sourceName, $this->sourceNames);
$this->sourceColumn = $out->sourceColumn;
if ($sourceIndex === false) {
$sourceIndex = null;
}
$this->sourceIndex = $sourceIndex;
}
switch ($child[0]) {
case Type::T_SCSSPHP_IMPORT_ONCE:
$rawPath = $this->reduce($child[1]);
$this->compileImport($rawPath, $out, true);
break;
case Type::T_IMPORT:
$rawPath = $this->reduce($child[1]);
$this->compileImport($rawPath, $out);
break;
case Type::T_DIRECTIVE:
$this->compileDirective($child[1], $out);
break;
case Type::T_AT_ROOT:
$this->compileAtRoot($child[1]);
break;
case Type::T_MEDIA:
$this->compileMedia($child[1]);
break;
case Type::T_BLOCK:
$this->compileBlock($child[1]);
break;
case Type::T_CHARSET:
break;
Arguments
array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/offcanvas"
]
]
ScssPhp\ScssPhp\Formatter\OutputBlock {#4395}
*
* @return void
*
* @throws \Exception
*/
protected function compileChildrenNoReturn($stms, OutputBlock $out, $selfParent = null, $traceName = '')
{
$this->pushCallStack($traceName);
foreach ($stms as $stm) {
if ($selfParent && isset($stm[1]) && \is_object($stm[1]) && $stm[1] instanceof Block) {
$stm[1]->selfParent = $selfParent;
$ret = $this->compileChild($stm, $out);
$stm[1]->selfParent = null;
} elseif ($selfParent && \in_array($stm[0], [Type::T_INCLUDE, Type::T_EXTEND])) {
$stm['selfParent'] = $selfParent;
$ret = $this->compileChild($stm, $out);
unset($stm['selfParent']);
} else {
$ret = $this->compileChild($stm, $out);
}
if (isset($ret)) {
throw $this->error('@return may only be used within a function');
}
}
$this->popCallStack();
}
/**
* evaluate media query : compile internal value keeping the structure unchanged
*
* @param array $queryList
*
* @return array
*/
protected function evaluateMediaQuery($queryList)
{
Arguments
array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/offcanvas"
]
]
-2 => 92
-3 => 1
-1 => 2
]
ScssPhp\ScssPhp\Formatter\OutputBlock {#4395}
throw $this->error('The Sass indented syntax is not implemented.');
}
if (isset($this->importCache[$realPath])) {
$this->handleImportLoop($realPath);
$tree = $this->importCache[$realPath];
} else {
$code = file_get_contents($path);
$parser = $this->parserFactory($path);
$tree = $parser->parse($code);
$this->importCache[$realPath] = $tree;
}
$currentDirectory = $this->currentDirectory;
$this->currentDirectory = dirname($path);
$this->compileChildrenNoReturn($tree->children, $out);
$this->currentDirectory = $currentDirectory;
$this->popCallStack();
}
/**
* Save the imported files with their resolving path context
*
* @param string|null $currentDirectory
* @param string $path
* @param string $filePath
*
* @return void
*/
private function registerImport($currentDirectory, $path, $filePath)
{
$this->resolvedImports[] = ['currentDir' => $currentDirectory, 'path' => $path, 'filePath' => $filePath];
}
/**
* Detects whether the import is a CSS import.
Arguments
array:39 [
0 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "dependencies"
]
]
-2 => 3
-3 => 1
-1 => 2
]
1 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "nucleus/theme/base"
]
]
-2 => 10
-3 => 1
-1 => 2
]
2 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/styles/fonts"
]
]
-2 => 13
-3 => 1
-1 => 2
]
3 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/styles/core"
]
]
-2 => 16
-3 => 1
-1 => 2
]
4 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/styles/hyperlinks"
]
]
-2 => 19
-3 => 1
-1 => 2
]
5 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/styles/typography"
]
]
-2 => 22
-3 => 1
-1 => 2
]
6 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/styles/utilities"
]
]
-2 => 25
-3 => 1
-1 => 2
]
7 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/styles/variations"
]
]
-2 => 28
-3 => 1
-1 => 2
]
8 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/styles/buttons"
]
]
-2 => 31
-3 => 1
-1 => 2
]
9 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/styles/tables"
]
]
-2 => 34
-3 => 1
-1 => 2
]
10 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/styles/forms"
]
]
-2 => 37
-3 => 1
-1 => 2
]
11 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/styles/dropdownanimations"
]
]
-2 => 40
-3 => 1
-1 => 2
]
12 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/styles/helium-style"
]
]
-2 => 43
-3 => 1
-1 => 2
]
13 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/pagesurround"
]
]
-2 => 50
-3 => 1
-1 => 2
]
14 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/header"
]
]
-2 => 53
-3 => 1
-1 => 2
]
15 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/navigation"
]
]
-2 => 56
-3 => 1
-1 => 2
]
16 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/mainnav"
]
]
-2 => 59
-3 => 1
-1 => 2
]
17 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/intro"
]
]
-2 => 62
-3 => 1
-1 => 2
]
18 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/features"
]
]
-2 => 65
-3 => 1
-1 => 2
]
19 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/utility"
]
]
-2 => 68
-3 => 1
-1 => 2
]
20 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/above"
]
]
-2 => 71
-3 => 1
-1 => 2
]
21 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/testimonials"
]
]
-2 => 74
-3 => 1
-1 => 2
]
22 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/expanded"
]
]
-2 => 77
-3 => 1
-1 => 2
]
23 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/main"
]
]
-2 => 80
-3 => 1
-1 => 2
]
24 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/aside"
]
]
-2 => 83
-3 => 1
-1 => 2
]
25 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/sidebar"
]
]
-2 => 86
-3 => 1
-1 => 2
]
26 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/footer"
]
]
-2 => 89
-3 => 1
-1 => 2
]
27 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/offcanvas"
]
]
-2 => 92
-3 => 1
-1 => 2
]
28 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/layouts/error"
]
]
-2 => 99
-3 => 1
-1 => 2
]
29 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/layouts/offline"
]
]
-2 => 102
-3 => 1
-1 => 2
]
30 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/particles/logo"
]
]
-2 => 109
-3 => 1
-1 => 2
]
31 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/particles/social"
]
]
-2 => 112
-3 => 1
-1 => 2
]
32 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/particles/contentarray"
]
]
-2 => 115
-3 => 1
-1 => 2
]
33 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/particles/contentcubes"
]
]
-2 => 118
-3 => 1
-1 => 2
]
34 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/particles/contenttabs"
]
]
-2 => 121
-3 => 1
-1 => 2
]
35 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/particles/owlcarousel"
]
]
-2 => 124
-3 => 1
-1 => 2
]
36 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/particles/horizontalmenu"
]
]
-2 => 127
-3 => 1
-1 => 2
]
37 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/particles/totop"
]
]
-2 => 130
-3 => 1
-1 => 2
]
38 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "nucleus/theme/breakpoints/base"
]
]
-2 => 135
-3 => 1
-1 => 2
]
]
ScssPhp\ScssPhp\Formatter\OutputBlock {#4395}
/**
* Compile import; returns true if the value was something that could be imported
*
* @param array $rawPath
* @param \ScssPhp\ScssPhp\Formatter\OutputBlock $out
* @param bool $once
*
* @return bool
*/
protected function compileImport($rawPath, OutputBlock $out, $once = false)
{
if ($rawPath[0] === Type::T_STRING) {
$path = $this->compileStringContent($rawPath);
if (strpos($path, 'url(') !== 0 && $filePath = $this->findImport($path, $this->currentDirectory)) {
$this->registerImport($this->currentDirectory, $path, $filePath);
if (! $once || ! \in_array($filePath, $this->importedFiles)) {
$this->importFile($filePath, $out);
$this->importedFiles[] = $filePath;
}
return true;
}
$this->appendRootDirective('@import ' . $this->compileImportPath($rawPath) . ';', $out);
return false;
}
if ($rawPath[0] === Type::T_LIST) {
// handle a list of strings
if (\count($rawPath[2]) === 0) {
return false;
}
foreach ($rawPath[2] as $path) {
if ($path[0] !== Type::T_STRING) {
$this->appendRootDirective('@import ' . $this->compileImportPath($rawPath) . ';', $out);
Arguments
"/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates/g5_helium/scss/helium.scss"
ScssPhp\ScssPhp\Formatter\OutputBlock {#4395}
$sourceIndex = array_search($out->sourceName, $this->sourceNames);
$this->sourceColumn = $out->sourceColumn;
if ($sourceIndex === false) {
$sourceIndex = null;
}
$this->sourceIndex = $sourceIndex;
}
switch ($child[0]) {
case Type::T_SCSSPHP_IMPORT_ONCE:
$rawPath = $this->reduce($child[1]);
$this->compileImport($rawPath, $out, true);
break;
case Type::T_IMPORT:
$rawPath = $this->reduce($child[1]);
$this->compileImport($rawPath, $out);
break;
case Type::T_DIRECTIVE:
$this->compileDirective($child[1], $out);
break;
case Type::T_AT_ROOT:
$this->compileAtRoot($child[1]);
break;
case Type::T_MEDIA:
$this->compileMedia($child[1]);
break;
case Type::T_BLOCK:
$this->compileBlock($child[1]);
break;
case Type::T_CHARSET:
break;
Arguments
array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium.scss"
]
]
ScssPhp\ScssPhp\Formatter\OutputBlock {#4395}
$out->sourceName = isset($this->sourceNames[$this->sourceIndex]) ? $this->sourceNames[$this->sourceIndex] : '(stdin)';
$out->sourceLine = $this->sourceLine;
$out->sourceColumn = $this->sourceColumn;
}
return $out;
}
/**
* Compile root
*
* @param \ScssPhp\ScssPhp\Block $rootBlock
*
* @return void
*/
protected function compileRoot(Block $rootBlock)
{
$this->rootBlock = $this->scope = $this->makeOutputBlock(Type::T_ROOT);
$this->compileChildrenNoReturn($rootBlock->children, $this->scope);
assert($this->scope !== null);
$this->flattenSelectors($this->scope);
$this->missingSelectors();
}
/**
* Report missing selectors
*
* @return void
*/
protected function missingSelectors()
{
foreach ($this->extends as $extend) {
if (isset($extend[3])) {
continue;
}
list($target, $origin, $block) = $extend;
// ignore if !optional
Arguments
array:2 [
0 => array:7 [
0 => "assign"
1 => array:2 [
0 => "var"
1 => "output-bourbon-deprecation-warnings"
]
2 => array:2 [
0 => "keyword"
1 => "false"
]
3 => []
-2 => 1
-3 => 0
-1 => 0
]
1 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium.scss"
]
]
-2 => 2
-3 => 1
-1 => 0
]
]
ScssPhp\ScssPhp\Formatter\OutputBlock {#4395}
$this->rootDirectory = getcwd();
}
try {
$this->parser = $this->parserFactory($path);
$tree = $this->parser->parse($source);
$this->parser = null;
$this->formatter = new $this->configuredFormatter();
$this->rootBlock = null;
$this->rootEnv = $this->pushEnv($tree);
$warnCallback = function ($message, $deprecation) {
$this->logger->warn($message, $deprecation);
};
$previousWarnCallback = Warn::setCallback($warnCallback);
try {
$this->injectVariables($this->registeredVars);
$this->compileRoot($tree);
$this->popEnv();
} finally {
Warn::setCallback($previousWarnCallback);
}
$sourceMapGenerator = null;
if ($this->sourceMap) {
if (\is_object($this->sourceMap) && $this->sourceMap instanceof SourceMapGenerator) {
$sourceMapGenerator = $this->sourceMap;
$this->sourceMap = self::SOURCE_MAP_FILE;
} elseif ($this->sourceMap !== self::SOURCE_MAP_NONE) {
$sourceMapGenerator = new SourceMapGenerator($this->sourceMapOptions);
}
}
assert($this->scope !== null);
$out = $this->formatter->format($this->scope, $sourceMapGenerator);
$prefix = '';
Arguments
ScssPhp\ScssPhp\Block {#1816}
if ($file->locked() === false) {
// File was already locked by another process, lets avoid compiling the same file twice.
return false;
}
$logfile = fopen('php://memory', 'rb+');
$logger = new StreamLogger($logfile, true);
$compiler = $this->getCompiler();
$compiler->setLogger($logger);
// Set the lookup paths.
$this->functions->setBasePath($path);
$compiler->setImportPaths([[$this, 'findImport']]);
// Run the compiler.
$compiler->addVariables($this->getVariables(true));
$scss = '$output-bourbon-deprecation-warnings: false;' . "\n" . '@import "' . $in . '.scss"';
try {
$this->result = $compiler->compileString($scss);
$css = $this->result->getCss();
} catch (CompilerException $e) {
if (version_compare(static::$options['compatibility'], '5.5', '<')) {
static::$options['legacy'][$in] = true;
$this->warnings['__TITLE__'] = 'Please update your theme!';
$this->warnings[$in] = ['WARNING: ' . $e->getMessage()];
return $this->compileLegacyFile($in);
}
throw new \RuntimeException("ERROR: CSS Compilation on file '{$in}.scss' failed on error: {$e->getMessage()}", 500, $e);
} catch (\Exception $e) {
throw new \RuntimeException("ERROR: CSS Compilation on file '{$in}.scss' failed on fatal error: {$e->getMessage()}", 500, $e);
}
if (strpos($css, $scss) === 0) {
$css = '/* ' . $scss . ' */';
}
// Extract map from css and save it as separate file.
$pos = strrpos($css, '/*# sourceMappingURL=');
Arguments
"""
$output-bourbon-deprecation-warnings: false;\n
@import "helium.scss"
"""
/**
* Returns URL to CSS file.
*
* If file does not exist, it will be created by using CSS compiler.
*
* @param string $name
* @return string
*/
public function css($name)
{
if (!isset($this->cssCache[$name])) {
$compiler = $this->compiler();
if ($compiler->needsCompile($name, [$this, 'getCssVariables'])) {
if (\GANTRY_DEBUGGER) {
Debugger::startTimer("css-{$name}", "Compiling CSS: {$name}");
Debugger::addMessage("Compiling CSS: {$name}");
}
$compiler->compileFile($name);
if (\GANTRY_DEBUGGER) {
Debugger::stopTimer("css-{$name}");
}
}
$this->cssCache[$name] = $compiler->getCssUrl($name);
}
return $this->cssCache[$name];
}
/**
* @return array
*/
public function getCssVariables()
{
if ($this->preset) {
$variables = $this->presets()->flatten($this->preset . '.styles', '-');
} else {
Arguments
$styles = $this->getAssetsInLocation('styles', $location);
if (!$styles) {
return [];
}
$gantry = Gantry::instance();
/** @var Theme|null $theme */
$theme = isset($gantry['theme']) ? $gantry['theme'] : null;
/** @var Document $document */
$document = $gantry['document'];
foreach ($styles as $key => $style) {
if (isset($style['href'])) {
$url = $style['href'];
if ($theme && preg_match('|\.scss$|', $url)) {
// Compile SCSS files.
$url = $theme->css(Gantry::basename($url, '.scss'));
}
// Deal with streams and relative paths.
$url = $document::url($url, false, null, false);
$styles[$key]['href'] = $url;
}
}
return $styles;
}
/**
* @param string $location
* @return array
* @since 5.4.3
*/
public function getScripts($location = 'head')
{
$scripts = $this->getAssetsInLocation('scripts', $location);
Arguments
if (!empty($element['src'])) {
$success = static::addScript($element, $priority, $location);
} elseif (!empty($element['content'])) {
$success = static::addInlineScript($element, $priority, $location);
}
break;
}
return $success;
}
/**
* @param string $location
* @return array
*/
public static function getStyles($location = 'head')
{
static::getObject();
$styles = static::$stack[0]->getStyles($location);
$output = [];
foreach ($styles as $style) {
switch ($style[':type']) {
case 'file':
$attribs = '';
if ($style['media']) {
$attribs .= ' media="' . static::escape($style['media']) . '"';
}
$output[] = sprintf(
'<link rel="stylesheet" href="%s" type="%s"%s />',
static::escape($style['href']),
static::escape($style['type']),
$attribs
);
break;
case 'inline':
$attribs = '';
if ($style['type'] !== 'text/css') {
Arguments
* @return string
*/
public function siteUrl()
{
/** @var Document $document */
$document = $this['document'];
return $document::siteUrl();
}
/**
* @param string $location
* @return array
*/
public function styles($location = 'head')
{
/** @var Document $document */
$document = $this['document'];
return $document::getStyles($location);
}
/**
* @param string $location
* @return array
*/
public function scripts($location = 'head')
{
/** @var Document $document */
$document = $this['document'];
return $document::getScripts($location);
}
/**
* Load Javascript framework / extension in platform independent way.
*
* @param string $framework
* @return bool
*/
Arguments
/**
* @return bool
*/
public function admin()
{
/** @var CMSApplication $application */
$app = Factory::getApplication();
return $app->isClient('administrator');
}
/**
* @param string $location
* @param bool $force
* @return array
*/
public function styles($location = 'head', $force = false)
{
// Do not display head, Joomla will take care of it (most of the time).
return (!$force && $location === 'head') ? [] : parent::styles($location);
}
/**
* @param string $location
* @param bool $force
* @return array
*/
public function scripts($location = 'head', $force = false)
{
// Do not display head, Joomla will take care of it (most of the time).
return (!$force && $location === 'head') ? [] : parent::scripts($location);
}
/**
* @return array
*/
protected function loadGlobal()
{
$global = null;
Arguments
}
throw new RuntimeError(sprintf('Neither the property "%1$s" nor one of the methods "%1$s()", "get%1$s()"/"is%1$s()" or "__call()" exist and have public access in class "%2$s".', $item, $class), -1, $this->getSourceContext());
}
if ($isDefinedTest) {
return true;
}
if ($this->env->hasExtension('\Twig\Extension\SandboxExtension')) {
$this->env->getExtension('\Twig\Extension\SandboxExtension')->checkMethodAllowed($object, $method);
}
// Some objects throw exceptions when they have __call, and the method we try
// to call is not supported. If ignoreStrictCheck is true, we should return null.
try {
if (!$arguments) {
$ret = $object->$method();
} else {
$ret = \call_user_func_array([$object, $method], $arguments);
}
} catch (\BadMethodCallException $e) {
if ($call && ($ignoreStrictCheck || !$this->env->isStrictVariables())) {
return;
}
throw $e;
}
// @deprecated in 1.28
if ($object instanceof \Twig_TemplateInterface) {
$self = $object->getTemplateName() === $this->getTemplateName();
$message = sprintf('Calling "%s" on template "%s" from template "%s" is deprecated since version 1.28 and won\'t be supported anymore in 2.0.', $item, $object->getTemplateName(), $this->getTemplateName());
if ('renderBlock' === $method || 'displayBlock' === $method) {
$message .= sprintf(' Use block("%s"%s) instead).', $arguments[0], $self ? '' : ', template');
} elseif ('hasBlock' === $method) {
$message .= sprintf(' Use "block("%s"%s) is defined" instead).', $arguments[0], $self ? '' : ', template');
} elseif ('render' === $method || 'display' === $method) {
$message .= sprintf(' Use include("%s") instead).', $object->getTemplateName());
}
@trigger_error($message, \E_USER_DEPRECATED);
Arguments
// line 3
public function block_head_application($context, array $blocks = [])
{
// line 4
echo "<meta charset=\"utf-8\" />
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />
<title>";
// line 6
echo twig_escape_filter($this->env, ((array_key_exists("errorcode", $context)) ? (_twig_default_filter(($context["errorcode"] ?? null), 500)) : (500)), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, ((array_key_exists("error", $context)) ? (_twig_default_filter(($context["error"] ?? null), $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_ENGINE_UNKNOWN_ERROR"))) : ($this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_ENGINE_UNKNOWN_ERROR"))), "html", null, true);
echo "</title>
";
// line 7
$this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", []), "errorPage", [0 => true], "method");
// line 8
$this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "finalize", [], "method");
// line 9
echo twig_join_filter($this->getAttribute(($context["gantry"] ?? null), "styles", [0 => "head", 1 => true], "method"), "
");
echo "
";
// line 10
echo twig_join_filter($this->getAttribute(($context["gantry"] ?? null), "scripts", [0 => "head", 1 => true], "method"), "
");
}
public function getTemplateName()
{
return "partials/error_head.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
Arguments
Gantry\Framework\Gantry {#715}
"styles"
array:2 [
0 => "head"
1 => true
]
"method"
if ($useBlocks && isset($blocks[$name])) {
$template = $blocks[$name][0];
$block = $blocks[$name][1];
} elseif (isset($this->blocks[$name])) {
$template = $this->blocks[$name][0];
$block = $this->blocks[$name][1];
} else {
$template = null;
$block = null;
}
// avoid RCEs when sandbox is enabled
if (null !== $template && !$template instanceof self) {
throw new \LogicException('A block must be a method on a \Twig\Template instance.');
}
if (null !== $template) {
try {
$template->$block($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($template->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Exception $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $template->getSourceContext(), $e);
$e->guess();
throw $e;
}
} elseif (false !== $parent = $this->getParent($context)) {
$parent->displayBlock($name, $context, array_merge($this->blocks, $blocks), false);
Arguments
array:20 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
"faEnabled" => 1
"faVersion" => "fa4"
]
array:10 [
"head_stylesheets" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_stylesheets"
]
"head_scripts" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_scripts"
]
"head_platform" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_platform"
]
"head_overrides" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_overrides"
]
"head_meta" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_meta"
]
"head_title" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_title"
]
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
"head_ie_stylesheets" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_ie_stylesheets"
]
"head" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head"
]
"head_custom" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_custom"
]
]
$this->displayBlock('head_overrides', $context, $blocks);
$content = ob_get_clean();
$assetFunction($content, $location, $priority);
// line 50
echo "<head>
";
// line 51
echo twig_join_filter($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", []), "getHtml", [0 => "head_top"], "method"), "
");
echo "
";
// line 52
$this->displayBlock('head_meta', $context, $blocks);
// line 78
$this->displayBlock('head_title', $context, $blocks);
// line 82
echo "
";
// line 83
$this->displayBlock('head_application', $context, $blocks);
// line 87
echo "
";
// line 88
$this->displayBlock('head_ie_stylesheets', $context, $blocks);
// line 91
$this->displayBlock('head', $context, $blocks);
// line 92
$this->displayBlock('head_custom', $context, $blocks);
// line 97
echo twig_join_filter($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", []), "getHtml", [0 => "head_bottom"], "method"), "
");
echo "
</head>
";
}
// line 7
public function block_head_stylesheets($context, array $blocks = [])
{
Arguments
"head_application"
array:20 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
"faEnabled" => 1
"faVersion" => "fa4"
]
array:10 [
"head_stylesheets" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_stylesheets"
]
"head_scripts" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_scripts"
]
"head_platform" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_platform"
]
"head_overrides" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_overrides"
]
"head_meta" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_meta"
]
"head_title" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_title"
]
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
"head_ie_stylesheets" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_ie_stylesheets"
]
"head" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head"
]
"head_custom" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_custom"
]
]
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Exception $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
$e->guess();
throw $e;
}
}
Arguments
array:20 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
"faEnabled" => 1
"faVersion" => "fa4"
]
array:10 [
"head_stylesheets" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_stylesheets"
]
"head_scripts" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_scripts"
]
"head_platform" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_platform"
]
"head_overrides" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_overrides"
]
"head_meta" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_meta"
]
"head_title" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_title"
]
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
"head_ie_stylesheets" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_ie_stylesheets"
]
"head" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head"
]
"head_custom" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_custom"
]
]
{
return $this;
}
/**
* Returns all blocks.
*
* This method is for internal use only and should never be called
* directly.
*
* @return array An array of blocks
*/
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Exception $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:10 [
"head_stylesheets" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_stylesheets"
]
"head_scripts" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_scripts"
]
"head_platform" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_platform"
]
"head_overrides" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_overrides"
]
"head_meta" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_meta"
]
"head_title" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_title"
]
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
"head_ie_stylesheets" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_ie_stylesheets"
]
"head" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head"
]
"head_custom" => array:2 [
0 => __TwigTemplate_db0f5394c770c8ec5f8c9f4a7d3f137a73a73216eb7504e13914ea7c676af203 {#1825}
1 => "block_head_custom"
]
]
parent::__construct($env);
$this->blocks = [
'head_title' => [$this, 'block_head_title'],
'head_application' => [$this, 'block_head_application'],
'head_platform' => [$this, 'block_head_platform'],
'head' => [$this, 'block_head'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@nucleus/page_head.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$this->parent = $this->loadTemplate("@nucleus/page_head.html.twig", "partials/page_head.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_head_title($context, array $blocks = [])
{
}
// line 6
public function block_head_application($context, array $blocks = [])
{
// line 7
if ($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "checkVersion", [0 => 4], "method")) {
echo " ";
// line 8
echo " <jdoc:include type=\"metas\" />
<jdoc:include type=\"styles\" />
<jdoc:include type=\"scripts\" />
";
} elseif ($this->getAttribute($this->getAttribute( // line 11
($context["gantry"] ?? null), "platform", []), "checkVersion", [0 => 3], "method")) {
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:4 [
"head_title" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_title"
]
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
"head_platform" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_platform"
]
"head" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head"
]
]
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Exception $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
$e->guess();
throw $e;
}
}
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:4 [
"head_title" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_title"
]
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
"head_platform" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_platform"
]
"head" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head"
]
]
{
return $this;
}
/**
* Returns all blocks.
*
* This method is for internal use only and should never be called
* directly.
*
* @return array An array of blocks
*/
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Exception $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:4 [
"head_title" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_title"
]
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
"head_platform" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head_platform"
]
"head" => array:2 [
0 => __TwigTemplate_51c0ba0d495914dbbc54cbc2184eac4e48417b403372cfd6c17ada502eddee53 {#1826}
1 => "block_head"
]
]
{
public function __construct(Environment $env)
{
parent::__construct($env);
$this->blocks = [
'head_application' => [$this, 'block_head_application'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "partials/page_head.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$this->parent = $this->loadTemplate("partials/page_head.html.twig", "partials/error_head.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_head_application($context, array $blocks = [])
{
// line 4
echo "<meta charset=\"utf-8\" />
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />
<title>";
// line 6
echo twig_escape_filter($this->env, ((array_key_exists("errorcode", $context)) ? (_twig_default_filter(($context["errorcode"] ?? null), 500)) : (500)), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, ((array_key_exists("error", $context)) ? (_twig_default_filter(($context["error"] ?? null), $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_ENGINE_UNKNOWN_ERROR"))) : ($this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_ENGINE_UNKNOWN_ERROR"))), "html", null, true);
echo "</title>
";
// line 7
$this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", []), "errorPage", [0 => true], "method");
// line 8
$this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "finalize", [], "method");
// line 9
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:1 [
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
]
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Exception $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
$e->guess();
throw $e;
}
}
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:1 [
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
]
{
return $this;
}
/**
* Returns all blocks.
*
* This method is for internal use only and should never be called
* directly.
*
* @return array An array of blocks
*/
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Exception $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:1 [
"head_application" => array:2 [
0 => __TwigTemplate_3b861f92994e68e236c9a07289a56b31850ba5889047aacb9af11a2d02478597 {#4609}
1 => "block_head_application"
]
]
];
}
protected function doGetParent(array $context)
{
// line 1
return "partials/page.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$this->parent = $this->loadTemplate("partials/page.html.twig", "error.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_page_head($context, array $blocks = [])
{
// line 4
$this->loadTemplate("partials/error_head.html.twig", "error.html.twig", 4)->display($context);
}
// line 7
public function block_content($context, array $blocks = [])
{
// line 8
echo " <h1>";
echo twig_escape_filter($this->env, ((array_key_exists("errorcode", $context)) ? (_twig_default_filter(($context["errorcode"] ?? null), 500)) : (500)), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, ((array_key_exists("error", $context)) ? (_twig_default_filter(($context["error"] ?? null), "Unknown Error")) : ("Unknown Error")), "html", null, true);
echo "</h1>
";
// line 9
echo ($context["backtrace"] ?? null);
echo "
";
}
public function getTemplateName()
{
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
$context["body_top"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 55
ob_start(function () { return ''; });
// line 56
echo " ";
$this->displayBlock('body_bottom', $context, $blocks);
// line 58
echo " ";
echo twig_join_filter($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", []), "getHtml", [0 => "body_bottom"], "method"), "
");
echo "
";
$context["body_bottom"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 61
$this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", []), "addScript", [0 => $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->urlFunc("gantry-assets://js/main.js"), 1 => 11, 2 => "footer"], "method");
// line 65
ob_start(function () { return ''; });
// line 66
echo " ";
$this->displayBlock('page_head', $context, $blocks);
$context["page_head"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 71
ob_start(function () { return ''; });
// line 72
echo " ";
$this->displayBlock('page_footer', $context, $blocks);
// line 76
echo "
";
// line 77
echo $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "debugger", []), "render", [], "method");
echo "
";
$context["page_footer"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 80
$this->displayBlock('page', $context, $blocks);
}
// line 8
public function block_content($context, array $blocks = [])
Arguments
"page_head"
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:11 [
"content" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_content"
]
"page_offcanvas" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_offcanvas"
]
"page_layout" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_layout"
]
"page_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_top"
]
"page_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_bottom"
]
"body_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_top"
]
"body_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_bottom"
]
"page_head" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_page_head"
]
"page_footer" => array:2 [
0 => __TwigTemplate_2ed577f2dbaf3f15552ad0fad01706fca6f5f00692e261a27b8da7fc58fe8564 {#922}
1 => "block_page_footer"
]
"page" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page"
]
"page_body" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_body"
]
]
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Exception $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
$e->guess();
throw $e;
}
}
Arguments
array:18 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#4518}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#4521}
"page_top" => Twig\Markup {#4604}
"page_bottom" => Twig\Markup {#4605}
"body_top" => Twig\Markup {#4606}
"body_bottom" => Twig\Markup {#4607}
]
array:11 [
"content" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_content"
]
"page_offcanvas" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_offcanvas"
]
"page_layout" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_layout"
]
"page_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_top"
]
"page_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_bottom"
]
"body_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_top"
]
"body_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_bottom"
]
"page_head" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_page_head"
]
"page_footer" => array:2 [
0 => __TwigTemplate_2ed577f2dbaf3f15552ad0fad01706fca6f5f00692e261a27b8da7fc58fe8564 {#922}
1 => "block_page_footer"
]
"page" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page"
]
"page_body" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_body"
]
]
{
return $this;
}
/**
* Returns all blocks.
*
* This method is for internal use only and should never be called
* directly.
*
* @return array An array of blocks
*/
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Exception $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
Arguments
array:8 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
]
array:11 [
"content" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_content"
]
"page_offcanvas" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_offcanvas"
]
"page_layout" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_layout"
]
"page_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_top"
]
"page_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_bottom"
]
"body_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_top"
]
"body_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_bottom"
]
"page_head" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_page_head"
]
"page_footer" => array:2 [
0 => __TwigTemplate_2ed577f2dbaf3f15552ad0fad01706fca6f5f00692e261a27b8da7fc58fe8564 {#922}
1 => "block_page_footer"
]
"page" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page"
]
"page_body" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_body"
]
]
{
public function __construct(Environment $env)
{
parent::__construct($env);
$this->blocks = [
'page_footer' => [$this, 'block_page_footer'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@nucleus/page.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$this->parent = $this->loadTemplate("@nucleus/page.html.twig", "partials/page.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_page_footer($context, array $blocks = [])
{
// line 4
echo " ";
$this->displayParentBlock("page_footer", $context, $blocks);
echo "
<jdoc:include type=\"modules\" name=\"debug\" />
";
}
public function getTemplateName()
{
return "partials/page.html.twig";
}
public function isTraitable()
{
Arguments
array:8 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
]
array:3 [
"page_footer" => array:2 [
0 => __TwigTemplate_2ed577f2dbaf3f15552ad0fad01706fca6f5f00692e261a27b8da7fc58fe8564 {#922}
1 => "block_page_footer"
]
"page_head" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_page_head"
]
"content" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_content"
]
]
public function __construct(Environment $env)
{
parent::__construct($env);
$this->blocks = [
'page_head' => [$this, 'block_page_head'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "partials/page.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$this->parent = $this->loadTemplate("partials/page.html.twig", "error.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_page_head($context, array $blocks = [])
{
// line 4
$this->loadTemplate("partials/error_head.html.twig", "error.html.twig", 4)->display($context);
}
// line 7
public function block_content($context, array $blocks = [])
{
// line 8
echo " <h1>";
echo twig_escape_filter($this->env, ((array_key_exists("errorcode", $context)) ? (_twig_default_filter(($context["errorcode"] ?? null), 500)) : (500)), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, ((array_key_exists("error", $context)) ? (_twig_default_filter(($context["error"] ?? null), "Unknown Error")) : ("Unknown Error")), "html", null, true);
echo "</h1>
";
// line 9
Arguments
array:8 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
]
array:2 [
"page_head" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_page_head"
]
"content" => array:2 [
0 => __TwigTemplate_220bf658348f314379d97c089dcdd3bf475a02d19a3023fda9b996f2075b21bc {#4517}
1 => "block_content"
]
]
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Exception $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
Arguments
array:7 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
]
* @internal
*/
public function __construct(Environment $env, Template $template)
{
$this->env = $env;
$this->template = $template;
}
/**
* Renders the template.
*
* @param array $context An array of parameters to pass to the template
*
* @return string The rendered template
*/
public function render($context = [])
{
// using func_get_args() allows to not expose the blocks argument
// as it should only be used by internal code
return $this->template->render($context, \func_num_args() > 1 ? func_get_arg(1) : []);
}
/**
* Displays the template.
*
* @param array $context An array of parameters to pass to the template
*/
public function display($context = [])
{
// using func_get_args() allows to not expose the blocks argument
// as it should only be used by internal code
$this->template->display($context, \func_num_args() > 1 ? func_get_arg(1) : []);
}
/**
* Checks if a block is defined.
*
* @param string $name The block name
* @param array $context An array of parameters to pass to the template
*
Arguments
array:7 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
]
[]
@trigger_error(sprintf('The %s method is deprecated since version 1.22 and will be removed in Twig 2.0.', __METHOD__), \E_USER_DEPRECATED);
return $this->templateClassPrefix;
}
/**
* Renders a template.
*
* @param string|TemplateWrapper $name The template name
* @param array $context An array of parameters to pass to the template
*
* @return string The rendered template
*
* @throws LoaderError When the template cannot be found
* @throws SyntaxError When an error occurred during compilation
* @throws RuntimeError When an error occurred during rendering
*/
public function render($name, array $context = [])
{
return $this->load($name)->render($context);
}
/**
* Displays a template.
*
* @param string|TemplateWrapper $name The template name
* @param array $context An array of parameters to pass to the template
*
* @throws LoaderError When the template cannot be found
* @throws SyntaxError When an error occurred during compilation
* @throws RuntimeError When an error occurred during rendering
*/
public function display($name, array $context = [])
{
$this->load($name)->display($context);
}
/**
* Loads a template.
*
Arguments
array:7 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
]
$this->renderer = $this->extendTwig($twig, $loader);
}
return $this->renderer;
}
/**
* Render a template file by using given context.
*
* @param string $file
* @param array $context
* @return string
*/
public function render($file, array $context = [])
{
// Include Gantry specific things to the context.
$context = $this->getContext($context);
return $this->renderer()->render($file, $context);
}
/**
* Compile and render twig string.
*
* @param string $string
* @param array $context
* @return string
*/
public function compile($string, array $context = [])
{
$renderer = $this->renderer();
$template = $renderer->createTemplate($string);
// Include Gantry specific things to the context.
$context = $this->getContext($context);
return $template->render($context);
}
Arguments
"error.html.twig"
array:7 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
]
$joomla->document = $this;
/** @var Theme $theme */
$theme = $gantry['theme'];
$app = Factory::getApplication();
$context = array(
'errorcode' => isset($this->error) ? $this->error->getCode() : null,
'error' => isset($this->error) ? $this->error->getMessage() : null,
'debug' => $app->get('debug_lang', '0') == '1' || $app->get('debug', '0') == '1',
'backtrace' => $this->debug ? $this->renderBacktrace() : null
);
// Reset used outline configuration.
unset($gantry['configuration']);
// Render the page.
echo $theme
->setLayout('_error', true)
->render('error.html.twig', $context);
Arguments
"error.html.twig"
array:7 [
"errorcode" => 0
"error" => """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
"debug" => false
"backtrace" => null
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
]
* @param string $directory The name of the template
* @param string $filename The actual filename
*
* @return string The contents of the template
*
* @since 1.7.0
*/
protected function _loadTemplate($directory, $filename)
{
$contents = '';
// Check to see if we have a valid template file
if (is_file($directory . '/' . $filename))
{
// Store the file path
$this->_file = $directory . '/' . $filename;
// Get the file content
ob_start();
require $directory . '/' . $filename;
$contents = ob_get_contents();
ob_end_clean();
}
return $contents;
}
/**
* Fetch the template, and initialise the params
*
* @param array $params Parameters to determine the template
*
* @return HtmlDocument instance of $this to allow chaining
*
* @since 1.7.0
*/
protected function _fetchTemplate($params = array())
{
// Check
$directory = $params['directory'] ?? 'templates';
Arguments
"/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates/g5_helium/error.php"
$file = 'index.php';
}
}
}
// Load the language file for the template
$lang = CmsFactory::getLanguage();
// 1.5 or core then 1.6
$lang->load('tpl_' . $template, JPATH_BASE)
|| ($inherits !== '' && $lang->load('tpl_' . $inherits, $directory . '/' . $inherits))
|| $lang->load('tpl_' . $template, $directory . '/' . $template);
// Assign the variables
$this->baseurl = Uri::base(true);
$this->params = $params['params'] ?? new Registry;
$this->template = $template;
// Load
$this->_template = $this->_loadTemplate($baseDir, $file);
return $this;
}
/**
* Parse a document template
*
* @return HtmlDocument instance of $this to allow chaining
*
* @since 1.7.0
*/
protected function _parseTemplate()
{
$matches = array();
if (preg_match_all('#<jdoc:include\ type="([^"]+)"(.*)\/>#iU', $this->_template, $matches))
{
$messages = [];
$template_tags_first = [];
$template_tags_last = [];
Arguments
"/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates/g5_helium"
"error.php"
$options['title'] = $args[3] ?? null;
}
parent::$_buffer[$options['type']][$options['name']][$options['title']] = $content;
return $this;
}
/**
* Parses the template and populates the buffer
*
* @param array $params Parameters for fetching the template
*
* @return HtmlDocument instance of $this to allow chaining
*
* @since 1.7.0
*/
public function parse($params = array())
{
return $this->_fetchTemplate($params)->_parseTemplate();
}
/**
* Outputs the template to the browser.
*
* @param boolean $caching If true, cache the output
* @param array $params Associative array of attributes
*
* @return string The rendered data
*
* @since 1.7.0
*/
public function render($caching = false, $params = array())
{
$this->_caching = $caching;
if (empty($this->_template))
{
$this->parse($params);
}
Arguments
array:7 [
"template" => "g5_helium"
"directory" => "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates"
"debug" => "0"
"csp_nonce" => "ZDg2MDM0ZmYwOTJkZjFiNDdmMGQyNWM0ZDRlZDAwYTY4YjVlOTBlZDg2Y2YyOWJlNjNmMWFiNjg4ZTMyY2NjMjQ4MGU1NGZiZDVjMzcxZDA3ZjhmOTE5ZjJlZjE1YWNmOWY1MDMwOWFlNmY0MDM1NDkyNmU4OGEzNGRmYWIwMWI="
"templateInherits" => ""
"params" => Joomla\Registry\Registry {#658}
"file" => "error.php"
]
return $this->_fetchTemplate($params)->_parseTemplate();
}
/**
* Outputs the template to the browser.
*
* @param boolean $caching If true, cache the output
* @param array $params Associative array of attributes
*
* @return string The rendered data
*
* @since 1.7.0
*/
public function render($caching = false, $params = array())
{
$this->_caching = $caching;
if (empty($this->_template))
{
$this->parse($params);
}
if (\array_key_exists('csp_nonce', $params) && $params['csp_nonce'] !== null)
{
$this->cspNonce = $params['csp_nonce'];
}
$data = $this->_renderTemplate();
parent::render($caching, $params);
return $data;
}
/**
* Count the modules in the given position
*
* @param string $positionName The position to use
* @param boolean $withContentOnly Count only a modules which actually has a content
*
* @return integer Number of modules found
Arguments
array:7 [
"template" => "g5_helium"
"directory" => "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates"
"debug" => "0"
"csp_nonce" => "ZDg2MDM0ZmYwOTJkZjFiNDdmMGQyNWM0ZDRlZDAwYTY4YjVlOTBlZDg2Y2YyOWJlNjNmMWFiNjg4ZTMyY2NjMjQ4MGU1NGZiZDVjMzcxZDA3ZjhmOTE5ZjJlZjE1YWNmOWY1MDMwOWFlNmY0MDM1NDkyNmU4OGEzNGRmYWIwMWI="
"templateInherits" => ""
"params" => Joomla\Registry\Registry {#658}
"file" => "error.php"
]
{
$status = 500;
}
$errorReporting = CmsFactory::getApplication()->get('error_reporting');
if ($errorReporting === "development" || $errorReporting === "maximum")
{
$status .= ' ' . str_replace("\n", ' ', $this->_error->getMessage());
}
CmsFactory::getApplication()->setHeader('status', $status);
// Set variables
$this->debug = $params['debug'] ?? false;
$this->error = $this->_error;
$params['file'] = 'error.php';
return parent::render($cache, $params);
}
/**
* Render the backtrace
*
* @return string The contents of the backtrace
*
* @since 1.7.0
*/
public function renderBacktrace()
{
// If no error object is set return null
if (!isset($this->_error))
{
return;
}
// The back trace
$backtrace = $this->_error->getTrace();
Arguments
false
array:7 [
"template" => "g5_helium"
"directory" => "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates"
"debug" => "0"
"csp_nonce" => "ZDg2MDM0ZmYwOTJkZjFiNDdmMGQyNWM0ZDRlZDAwYTY4YjVlOTBlZDg2Y2YyOWJlNjNmMWFiNjg4ZTMyY2NjMjQ4MGU1NGZiZDVjMzcxZDA3ZjhmOTE5ZjJlZjE1YWNmOWY1MDMwOWFlNmY0MDM1NDkyNmU4OGEzNGRmYWIwMWI="
"templateInherits" => ""
"params" => Joomla\Registry\Registry {#658}
"file" => "error.php"
]
{
$wa->addTemplateRegistryFile($template->parent, $app->getClientId());
}
if (ob_get_contents())
{
ob_end_clean();
}
$this->getDocument()->setTitle(Text::_('Error') . ': ' . $error->getCode());
return $this->getDocument()->render(
false,
[
'template' => $template->template,
'directory' => JPATH_THEMES,
'debug' => JDEBUG,
'csp_nonce' => $app->get('csp_nonce'),
'templateInherits' => $template->parent,
'params' => $template->params,
]
);
}
}
Arguments
false
array:7 [
"template" => "g5_helium"
"directory" => "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates"
"debug" => "0"
"csp_nonce" => "ZDg2MDM0ZmYwOTJkZjFiNDdmMGQyNWM0ZDRlZDAwYTY4YjVlOTBlZDg2Y2YyOWJlNjNmMWFiNjg4ZTMyY2NjMjQ4MGU1NGZiZDVjMzcxZDA3ZjhmOTE5ZjJlZjE1YWNmOWY1MDMwOWFlNmY0MDM1NDkyNmU4OGEzNGRmYWIwMWI="
"templateInherits" => ""
"params" => Joomla\Registry\Registry {#658}
"file" => "error.php"
]
else
{
$format = $app->input->getString('format', 'html');
}
try
{
$renderer = AbstractRenderer::getRenderer($format);
}
catch (\InvalidArgumentException $e)
{
// Default to the HTML renderer
$renderer = AbstractRenderer::getRenderer('html');
}
// Reset the document object in the factory, this gives us a clean slate and lets everything render properly
Factory::$document = $renderer->getDocument();
Factory::getApplication()->loadDocument(Factory::$document);
$data = $renderer->render($error);
// If nothing was rendered, just use the message from the Exception
if (empty($data))
{
$data = $error->getMessage();
}
if ($isCli)
{
echo $data;
}
else
{
/** @var CMSApplication $app */
// Do not allow cache
$app->allowCache(false);
$app->setBody($data);
}
Arguments
Twig\Error\RuntimeError {#1506
#lineno: 73
#filename: "@nucleus/page.html.twig"
#rawMessage: """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
-sourcePath: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/media/gantry5/engines/nucleus/templates/page.html.twig"
-sourceCode: ""
#message: """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/media/gantry5/engines/nucleus/templates/page.html.twig"
#line: 73
-previous: RuntimeException {#1556
#message: """
ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2
"""
#code: 500
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/src/classes/Gantry/Component/Stylesheet/ScssCompiler.php"
#line: 192
-previous: ScssPhp\ScssPhp\Exception\CompilerException {#1545
#message: """
Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2
"""
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php"
#line: 573
-previous: ScssPhp\ScssPhp\Exception\SassScriptException {#4508
#message: "Incompatible units rem and %."
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/compat/vendor/scssphp/scssphp/src/Node/Number.php"
#line: 657
}
}
}
}
}
}
// Always return false, this will tell PHP to handle the error internally
return false;
}
/**
* Handles exceptions: logs errors and renders error page.
*
* @param \Exception|\Throwable $error An Exception or Throwable (PHP 7+) object for which to render the error page.
*
* @return void
*
* @since 3.10.0
*/
public static function handleException(\Throwable $error)
{
static::logException($error);
static::render($error);
}
/**
* Render the error page based on an exception.
*
* @param \Throwable $error An Exception or Throwable (PHP 7+) object for which to render the error page.
*
* @return void
*
* @since 3.0
*/
public static function render(\Throwable $error)
{
try
{
$app = Factory::getApplication();
// Flag if we are on cli
$isCli = $app->isClient('cli');
Arguments
Twig\Error\RuntimeError {#1506
#lineno: 73
#filename: "@nucleus/page.html.twig"
#rawMessage: """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
-sourcePath: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/media/gantry5/engines/nucleus/templates/page.html.twig"
-sourceCode: ""
#message: """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/media/gantry5/engines/nucleus/templates/page.html.twig"
#line: 73
-previous: RuntimeException {#1556
#message: """
ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2
"""
#code: 500
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/src/classes/Gantry/Component/Stylesheet/ScssCompiler.php"
#line: 192
-previous: ScssPhp\ScssPhp\Exception\CompilerException {#1545
#message: """
Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2
"""
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php"
#line: 573
-previous: ScssPhp\ScssPhp\Exception\SassScriptException {#4508
#message: "Incompatible units rem and %."
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/compat/vendor/scssphp/scssphp/src/Node/Number.php"
#line: 657
}
}
}
}
// Trigger the onAfterCompress event.
$this->triggerEvent('onAfterCompress');
}
}
catch (\Throwable $throwable)
{
/** @var ErrorEvent $event */
$event = AbstractEvent::create(
'onError',
[
'subject' => $throwable,
'eventClass' => ErrorEvent::class,
'application' => $this,
]
);
// Trigger the onError event.
$this->triggerEvent('onError', $event);
ExceptionHandler::handleException($event->getError());
}
// Trigger the onBeforeRespond event.
$this->getDispatcher()->dispatch('onBeforeRespond');
// Send the application response.
$this->respond();
// Trigger the onAfterRespond event.
$this->getDispatcher()->dispatch('onAfterRespond');
}
/**
* Check if the user is required to reset their password.
*
* If the user is required to reset their password will be redirected to the page that manage the password reset.
*
* @param string $option The option that manage the password reset
* @param string $view The view that manage the password reset
* @param string $layout The layout of the view that manage the password reset
Arguments
Twig\Error\RuntimeError {#1506
#lineno: 73
#filename: "@nucleus/page.html.twig"
#rawMessage: """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
-sourcePath: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/media/gantry5/engines/nucleus/templates/page.html.twig"
-sourceCode: ""
#message: """
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/media/gantry5/engines/nucleus/templates/page.html.twig"
#line: 73
-previous: RuntimeException {#1556
#message: """
ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2
"""
#code: 500
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/src/classes/Gantry/Component/Stylesheet/ScssCompiler.php"
#line: 192
-previous: ScssPhp\ScssPhp\Exception\CompilerException {#1545
#message: """
Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2
"""
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php"
#line: 573
-previous: ScssPhp\ScssPhp\Exception\SassScriptException {#4508
#message: "Incompatible units rem and %."
#code: 0
#file: "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/libraries/gantry5/compat/vendor/scssphp/scssphp/src/Node/Number.php"
#line: 657
}
}
}
}
{%- set body_bottom %}
{% block body_bottom %}
{% endblock %}
{{ gantry.document.getHtml('body_bottom')|join("\n ")|raw }}
{% endset -%}
{%- do gantry.document.addScript(url('gantry-assets://js/main.js'), 11, 'footer') -%}
{# Head and footer needs to come last because of any of the above blocks may have CSS or JavaScript in them #}
{%- set page_head %}
{% block page_head -%}
{% include 'partials/page_head.html.twig' %}
{%- endblock %}
{% endset -%}
{%- set page_footer %}
{% block page_footer %}
{% do gantry.platform.finalize() -%}
{{ gantry.scripts('footer')|join("\n ")|raw -}}
{% endblock %}
{{ gantry.debugger.render()|raw }}
{% endset -%}
{%- block page -%}
<!DOCTYPE {{ gantry.config.page.doctype|default('html')|raw }}>
<html{{ gantry.page.htmlAttributes|raw }}>
{{ page_head|raw }}
{% block page_body -%}
<body{{ gantry.page.bodyAttributes({'class': [offcanvas_position, gantry.page.preset, 'g-style-' ~ gantry.theme.preset]})|raw }}>
{{ gantry.config.page.body.body_top|raw }}
{{ body_top|raw }}
{{ page_offcanvas|raw }}
<div id="g-page-surround">
{% if page_offcanvas|trim -%}
<div class="g-offcanvas-hide g-offcanvas-toggle" role="navigation" data-offcanvas-toggle aria-controls="g-offcanvas" aria-expanded="false"><i class="fa fa-fw fa-bars"></i></div>
{%- endif %}
{{ page_top|raw }}
Arguments
"""
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2").
"""
// Set the lookup paths.
$this->functions->setBasePath($path);
$compiler->setImportPaths([[$this, 'findImport']]);
// Run the compiler.
$compiler->addVariables($this->getVariables(true));
$scss = '$output-bourbon-deprecation-warnings: false;' . "\n" . '@import "' . $in . '.scss"';
try {
$this->result = $compiler->compileString($scss);
$css = $this->result->getCss();
} catch (CompilerException $e) {
if (version_compare(static::$options['compatibility'], '5.5', '<')) {
static::$options['legacy'][$in] = true;
$this->warnings['__TITLE__'] = 'Please update your theme!';
$this->warnings[$in] = ['WARNING: ' . $e->getMessage()];
return $this->compileLegacyFile($in);
}
throw new \RuntimeException("ERROR: CSS Compilation on file '{$in}.scss' failed on error: {$e->getMessage()}", 500, $e);
} catch (\Exception $e) {
throw new \RuntimeException("ERROR: CSS Compilation on file '{$in}.scss' failed on fatal error: {$e->getMessage()}", 500, $e);
}
if (strpos($css, $scss) === 0) {
$css = '/* ' . $scss . ' */';
}
// Extract map from css and save it as separate file.
$pos = strrpos($css, '/*# sourceMappingURL=');
if ($pos !== false) {
$map = json_decode(urldecode(substr($css, $pos + 43, -3)), true);
/** @var Document $document */
$document = $gantry['document'];
foreach ($map['sources'] as &$source) {
$source = $document::url($source, false, -1);
}
unset($source);
Arguments
"""
ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2
"""
$sourceMapUrl = null;
switch ($this->sourceMap) {
case self::SOURCE_MAP_INLINE:
$sourceMapUrl = sprintf('data:application/json,%s', Util::encodeURIComponent($sourceMap));
break;
case self::SOURCE_MAP_FILE:
if (isset($this->sourceMapOptions['sourceMapURL'])) {
$sourceMapUrl = $this->sourceMapOptions['sourceMapURL'];
}
break;
}
if ($sourceMapUrl !== null) {
$out .= sprintf('/*# sourceMappingURL=%s */', $sourceMapUrl);
}
}
} catch (SassScriptException $e) {
throw new CompilerException($this->addLocationToMessage($e->getMessage()), 0, $e);
}
$includedFiles = [];
foreach ($this->resolvedImports as $resolvedImport) {
$includedFiles[$resolvedImport['filePath']] = $resolvedImport['filePath'];
}
$result = new CompilationResult($out, $sourceMap, array_values($includedFiles));
if ($this->cache && isset($cacheKey) && isset($compileOptions)) {
$this->cache->setCache('compile', $cacheKey, new CachedResult($result, $this->parsedFiles, $this->resolvedImports), $compileOptions);
}
// Reset state to free memory
// TODO in 2.0, reset parsedFiles as well when the getter is removed.
$this->resolvedImports = [];
$this->importedFiles = [];
return $result;
Arguments
"""
Incompatible units rem and %.: templates/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3\n
Call Stack:\n
#0 import templates/g5_helium/scss/helium/sections/_offcanvas.scss templates/g5_helium/scss/helium.scss on line 92\n
#1 import templates/g5_helium/scss/helium.scss (unknown file) on line 2
"""
return $this->dimension;
}
$value = $this->dimension;
$oldNumerators = $this->numeratorUnits;
foreach ($numeratorUnits as $newNumerator) {
foreach ($oldNumerators as $key => $oldNumerator) {
$conversionFactor = self::getConversionFactor($newNumerator, $oldNumerator);
if (\is_null($conversionFactor)) {
continue;
}
$value *= $conversionFactor;
unset($oldNumerators[$key]);
continue 2;
}
throw new SassScriptException(sprintf(
'Incompatible units %s and %s.',
self::getUnitString($this->numeratorUnits, $this->denominatorUnits),
self::getUnitString($numeratorUnits, $denominatorUnits)
));
}
$oldDenominators = $this->denominatorUnits;
foreach ($denominatorUnits as $newDenominator) {
foreach ($oldDenominators as $key => $oldDenominator) {
$conversionFactor = self::getConversionFactor($newDenominator, $oldDenominator);
if (\is_null($conversionFactor)) {
continue;
}
$value /= $conversionFactor;
unset($oldDenominators[$key]);
continue 2;
}
Arguments
"Incompatible units rem and %."
}
return new Number($result, $other->numeratorUnits, $other->denominatorUnits);
}
/**
* @param Number $other
* @param callable $operation
*
* @return mixed
*
* @phpstan-template T
* @phpstan-param callable(int|float, int|float): T $operation
* @phpstan-return T
*/
private function coerceUnits(Number $other, $operation)
{
if (!$this->unitless()) {
$num1 = $this->dimension;
$num2 = $other->valueInUnits($this->numeratorUnits, $this->denominatorUnits);
} else {
$num1 = $this->valueInUnits($other->numeratorUnits, $other->denominatorUnits);
$num2 = $other->dimension;
}
return \call_user_func($operation, $num1, $num2);
}
/**
* @param string[] $numeratorUnits
* @param string[] $denominatorUnits
*
* @return int|float
*
* @phpstan-param list<string> $numeratorUnits
* @phpstan-param list<string> $denominatorUnits
*
* @throws SassScriptException if this number's units are not compatible with $numeratorUnits and $denominatorUnits
*/
private function valueInUnits(array $numeratorUnits, array $denominatorUnits)
Arguments
/**
* {@inheritdoc}
*/
public function __toString()
{
return $this->output();
}
/**
* @param Number $other
* @param callable $operation
*
* @return Number
*
* @phpstan-param callable(int|float, int|float): (int|float) $operation
*/
private function coerceNumber(Number $other, $operation)
{
$result = $this->coerceUnits($other, $operation);
if (!$this->unitless()) {
return new Number($result, $this->numeratorUnits, $this->denominatorUnits);
}
return new Number($result, $other->numeratorUnits, $other->denominatorUnits);
}
/**
* @param Number $other
* @param callable $operation
*
* @return mixed
*
* @phpstan-template T
* @phpstan-param callable(int|float, int|float): T $operation
* @phpstan-return T
*/
private function coerceUnits(Number $other, $operation)
{
Arguments
ScssPhp\ScssPhp\Node\Number {#4429}
Closure($num1, $num2) {#4507 …4}
*
* @return Number
*/
public function plus(Number $other)
{
return $this->coerceNumber($other, function ($num1, $num2) {
return $num1 + $num2;
});
}
/**
* @param Number $other
*
* @return Number
*/
public function minus(Number $other)
{
return $this->coerceNumber($other, function ($num1, $num2) {
return $num1 - $num2;
});
}
/**
* @return Number
*/
public function unaryMinus()
{
return new Number(-$this->dimension, $this->numeratorUnits, $this->denominatorUnits);
}
/**
* @param Number $other
*
* @return Number
*/
public function modulo(Number $other)
{
return $this->coerceNumber($other, function ($num1, $num2) {
if ($num2 == 0) {
return NAN;
Arguments
ScssPhp\ScssPhp\Node\Number {#4429}
Closure($num1, $num2) {#4507 …4}
* @param Number $right
*
* @return Number
*/
protected function opMulNumberNumber(Number $left, Number $right)
{
return $left->times($right);
}
/**
* Subtract numbers
*
* @param Number $left
* @param Number $right
*
* @return Number
*/
protected function opSubNumberNumber(Number $left, Number $right)
{
return $left->minus($right);
}
/**
* Divide numbers
*
* @param Number $left
* @param Number $right
*
* @return Number
*/
protected function opDivNumberNumber(Number $left, Number $right)
{
return $left->dividedBy($right);
}
/**
* Mod numbers
*
* @param Number $left
* @param Number $right
Arguments
ScssPhp\ScssPhp\Node\Number {#4429}
return $this->expToString($value);
}
$left = $this->coerceForExpression($left);
$right = $this->coerceForExpression($right);
$ltype = $left[0];
$rtype = $right[0];
$ucOpName = ucfirst($opName);
$ucLType = ucfirst($ltype);
$ucRType = ucfirst($rtype);
$shouldEval = $inParens || $inExp;
// this tries:
// 1. op[op name][left type][right type]
// 2. op[left type][right type] (passing the op as first arg)
// 3. op[op name]
if (\is_callable([$this, $fn = "op${ucOpName}${ucLType}${ucRType}"])) {
$out = $this->$fn($left, $right, $shouldEval);
} elseif (\is_callable([$this, $fn = "op${ucLType}${ucRType}"])) {
$out = $this->$fn($op, $left, $right, $shouldEval);
} elseif (\is_callable([$this, $fn = "op${ucOpName}"])) {
$out = $this->$fn($left, $right, $shouldEval);
} else {
$out = null;
}
if (isset($out)) {
return $out;
}
return $this->expToString($value);
case Type::T_UNARY:
list(, $op, $exp, $inParens) = $value;
$inExp = $inExp || $this->shouldEval($exp);
$exp = $this->reduce($exp);
Arguments
ScssPhp\ScssPhp\Node\Number {#1746}
ScssPhp\ScssPhp\Node\Number {#4429}
true
if ($divider instanceof Number && \intval($divider->getDimension()) && $divider->unitless()) {
$revert = false;
}
}
}
if ($revert) {
$item = $this->expToString($item);
$maxShorthandDividers--;
}
}
}
}
}
}
// if the value reduces to null from something else then
// the property should be discarded
if ($value[0] !== Type::T_NULL) {
$value = $this->reduce($value);
if ($value[0] === Type::T_NULL || $value === static::$nullString) {
break;
}
}
$compiledValue = $this->compileValue($value);
// ignore empty value
if (\strlen($compiledValue)) {
$line = $this->formatter->property(
$compiledName,
$compiledValue
);
$this->appendOutputLine($out, Type::T_ASSIGN, $line);
}
break;
case Type::T_COMMENT:
if ($out->type === Type::T_ROOT) {
Arguments
array:7 [
0 => "exp"
1 => "-"
2 => array:2 [
0 => "var"
1 => "offcanvas-width"
]
3 => ScssPhp\ScssPhp\Node\Number {#4429}
4 => false
5 => true
6 => true
]
*
* @return void
*
* @throws \Exception
*/
protected function compileChildrenNoReturn($stms, OutputBlock $out, $selfParent = null, $traceName = '')
{
$this->pushCallStack($traceName);
foreach ($stms as $stm) {
if ($selfParent && isset($stm[1]) && \is_object($stm[1]) && $stm[1] instanceof Block) {
$stm[1]->selfParent = $selfParent;
$ret = $this->compileChild($stm, $out);
$stm[1]->selfParent = null;
} elseif ($selfParent && \in_array($stm[0], [Type::T_INCLUDE, Type::T_EXTEND])) {
$stm['selfParent'] = $selfParent;
$ret = $this->compileChild($stm, $out);
unset($stm['selfParent']);
} else {
$ret = $this->compileChild($stm, $out);
}
if (isset($ret)) {
throw $this->error('@return may only be used within a function');
}
}
$this->popCallStack();
}
/**
* evaluate media query : compile internal value keeping the structure unchanged
*
* @param array $queryList
*
* @return array
*/
protected function evaluateMediaQuery($queryList)
{
Arguments
array:6 [
0 => "assign"
1 => array:3 [
0 => "string"
1 => ""
2 => array:1 [
0 => "left"
]
]
2 => array:7 [
0 => "exp"
1 => "-"
2 => array:2 [
0 => "var"
1 => "offcanvas-width"
]
3 => ScssPhp\ScssPhp\Node\Number {#4429}
4 => false
5 => true
6 => true
]
-2 => 35
-3 => 3
-1 => 146
]
ScssPhp\ScssPhp\Formatter\OutputBlock {#4505}
assert($block->selectors !== null);
$env->selectors = $this->evalSelectors($block->selectors);
$out = $this->makeOutputBlock(null);
assert($this->scope !== null);
$this->scope->children[] = $out;
if (\count($block->children)) {
$out->selectors = $this->multiplySelectors($env, $block->selfParent);
// propagate selfParent to the children where they still can be useful
$selfParentSelectors = null;
if (isset($block->selfParent->selectors)) {
$selfParentSelectors = $block->selfParent->selectors;
$block->selfParent->selectors = $out->selectors;
}
$this->compileChildrenNoReturn($block->children, $out, $block->selfParent);
// and revert for the following children of the same block
if ($selfParentSelectors) {
assert($block->selfParent !== null);
$block->selfParent->selectors = $selfParentSelectors;
}
}
$this->popEnv();
}
/**
* Compile the value of a comment that can have interpolation
*
* @param array $value
* @param bool $pushEnv
*
* @return string
*/
Arguments
array:3 [
0 => array:6 [
0 => "assign"
1 => array:3 [
0 => "string"
1 => ""
2 => array:1 [
0 => "color"
]
]
2 => array:2 [
0 => "var"
1 => "offcanvas-text-color"
]
-2 => 34
-3 => 3
-1 => 146
]
1 => array:6 [
0 => "assign"
1 => array:3 [
0 => "string"
1 => ""
2 => array:1 [
0 => "left"
]
]
2 => array:7 [
0 => "exp"
1 => "-"
2 => array:2 [
0 => "var"
1 => "offcanvas-width"
]
3 => ScssPhp\ScssPhp\Node\Number {#4429}
4 => false
5 => true
6 => true
]
-2 => 35
-3 => 3
-1 => 146
]
2 => array:6 [
0 => "assign"
1 => array:3 [
0 => "string"
1 => ""
2 => array:1 [
0 => "top"
]
]
2 => ScssPhp\ScssPhp\Node\Number {#4430}
-2 => 36
-3 => 3
-1 => 146
]
]
ScssPhp\ScssPhp\Formatter\OutputBlock {#4505}
null
case Type::T_IMPORT:
$rawPath = $this->reduce($child[1]);
$this->compileImport($rawPath, $out);
break;
case Type::T_DIRECTIVE:
$this->compileDirective($child[1], $out);
break;
case Type::T_AT_ROOT:
$this->compileAtRoot($child[1]);
break;
case Type::T_MEDIA:
$this->compileMedia($child[1]);
break;
case Type::T_BLOCK:
$this->compileBlock($child[1]);
break;
case Type::T_CHARSET:
break;
case Type::T_CUSTOM_PROPERTY:
list(, $name, $value) = $child;
$compiledName = $this->compileValue($name);
// if the value reduces to null from something else then
// the property should be discarded
if ($value[0] !== Type::T_NULL) {
$value = $this->reduce($value);
if ($value[0] === Type::T_NULL || $value === static::$nullString) {
break;
}
}
$compiledValue = $this->compileValue($value);
Arguments
ScssPhp\ScssPhp\Block {#4428}
*
* @return void
*
* @throws \Exception
*/
protected function compileChildrenNoReturn($stms, OutputBlock $out, $selfParent = null, $traceName = '')
{
$this->pushCallStack($traceName);
foreach ($stms as $stm) {
if ($selfParent && isset($stm[1]) && \is_object($stm[1]) && $stm[1] instanceof Block) {
$stm[1]->selfParent = $selfParent;
$ret = $this->compileChild($stm, $out);
$stm[1]->selfParent = null;
} elseif ($selfParent && \in_array($stm[0], [Type::T_INCLUDE, Type::T_EXTEND])) {
$stm['selfParent'] = $selfParent;
$ret = $this->compileChild($stm, $out);
unset($stm['selfParent']);
} else {
$ret = $this->compileChild($stm, $out);
}
if (isset($ret)) {
throw $this->error('@return may only be used within a function');
}
}
$this->popCallStack();
}
/**
* evaluate media query : compile internal value keeping the structure unchanged
*
* @param array $queryList
*
* @return array
*/
protected function evaluateMediaQuery($queryList)
{
Arguments
array:5 [
0 => "block"
1 => ScssPhp\ScssPhp\Block {#4428}
-2 => 37
-3 => 2
-1 => 146
]
ScssPhp\ScssPhp\Formatter\OutputBlock {#4497}
assert($block->selectors !== null);
$env->selectors = $this->evalSelectors($block->selectors);
$out = $this->makeOutputBlock(null);
assert($this->scope !== null);
$this->scope->children[] = $out;
if (\count($block->children)) {
$out->selectors = $this->multiplySelectors($env, $block->selfParent);
// propagate selfParent to the children where they still can be useful
$selfParentSelectors = null;
if (isset($block->selfParent->selectors)) {
$selfParentSelectors = $block->selfParent->selectors;
$block->selfParent->selectors = $out->selectors;
}
$this->compileChildrenNoReturn($block->children, $out, $block->selfParent);
// and revert for the following children of the same block
if ($selfParentSelectors) {
assert($block->selfParent !== null);
$block->selfParent->selectors = $selfParentSelectors;
}
}
$this->popEnv();
}
/**
* Compile the value of a comment that can have interpolation
*
* @param array $value
* @param bool $pushEnv
*
* @return string
*/
Arguments
array:8 [
0 => array:6 [
0 => "assign"
1 => array:3 [
0 => "string"
1 => ""
2 => array:1 [
0 => "background"
]
]
2 => array:2 [
0 => "var"
1 => "offcanvas-background"
]
-2 => 2
-3 => 2
-1 => 146
]
1 => array:6 [
0 => "assign"
1 => array:3 [
0 => "string"
1 => ""
2 => array:1 [
0 => "width"
]
]
2 => array:2 [
0 => "var"
1 => "offcanvas-width"
]
-2 => 3
-3 => 2
-1 => 146
]
2 => array:6 [
0 => "assign"
1 => array:3 [
0 => "string"
1 => ""
2 => array:1 [
0 => "color"
]
]
2 => array:2 [
0 => "var"
1 => "offcanvas-text-color"
]
-2 => 4
-3 => 2
-1 => 146
]
3 => array:5 [
0 => "block"
1 => ScssPhp\ScssPhp\Block {#4417}
-2 => 12
-3 => 2
-1 => 146
]
4 => array:5 [
0 => "block"
1 => ScssPhp\ScssPhp\Block {#4419}
-2 => 16
-3 => 2
-1 => 146
]
5 => array:5 [
0 => "block"
1 => ScssPhp\ScssPhp\Block {#4420}
-2 => 27
-3 => 5
-1 => 146
]
6 => array:5 [
0 => "block"
1 => ScssPhp\ScssPhp\Block {#4425}
-2 => 31
-3 => 2
-1 => 146
]
7 => array:5 [
0 => "block"
1 => ScssPhp\ScssPhp\Block {#4428}
-2 => 37
-3 => 2
-1 => 146
]
]
ScssPhp\ScssPhp\Formatter\OutputBlock {#4497}
null
case Type::T_IMPORT:
$rawPath = $this->reduce($child[1]);
$this->compileImport($rawPath, $out);
break;
case Type::T_DIRECTIVE:
$this->compileDirective($child[1], $out);
break;
case Type::T_AT_ROOT:
$this->compileAtRoot($child[1]);
break;
case Type::T_MEDIA:
$this->compileMedia($child[1]);
break;
case Type::T_BLOCK:
$this->compileBlock($child[1]);
break;
case Type::T_CHARSET:
break;
case Type::T_CUSTOM_PROPERTY:
list(, $name, $value) = $child;
$compiledName = $this->compileValue($name);
// if the value reduces to null from something else then
// the property should be discarded
if ($value[0] !== Type::T_NULL) {
$value = $this->reduce($value);
if ($value[0] === Type::T_NULL || $value === static::$nullString) {
break;
}
}
$compiledValue = $this->compileValue($value);
Arguments
ScssPhp\ScssPhp\Block {#4406}
*
* @return void
*
* @throws \Exception
*/
protected function compileChildrenNoReturn($stms, OutputBlock $out, $selfParent = null, $traceName = '')
{
$this->pushCallStack($traceName);
foreach ($stms as $stm) {
if ($selfParent && isset($stm[1]) && \is_object($stm[1]) && $stm[1] instanceof Block) {
$stm[1]->selfParent = $selfParent;
$ret = $this->compileChild($stm, $out);
$stm[1]->selfParent = null;
} elseif ($selfParent && \in_array($stm[0], [Type::T_INCLUDE, Type::T_EXTEND])) {
$stm['selfParent'] = $selfParent;
$ret = $this->compileChild($stm, $out);
unset($stm['selfParent']);
} else {
$ret = $this->compileChild($stm, $out);
}
if (isset($ret)) {
throw $this->error('@return may only be used within a function');
}
}
$this->popCallStack();
}
/**
* evaluate media query : compile internal value keeping the structure unchanged
*
* @param array $queryList
*
* @return array
*/
protected function evaluateMediaQuery($queryList)
{
Arguments
array:5 [
0 => "block"
1 => ScssPhp\ScssPhp\Block {#4406}
-2 => 38
-3 => 1
-1 => 146
]
ScssPhp\ScssPhp\Formatter\OutputBlock {#1554}
throw $this->error('The Sass indented syntax is not implemented.');
}
if (isset($this->importCache[$realPath])) {
$this->handleImportLoop($realPath);
$tree = $this->importCache[$realPath];
} else {
$code = file_get_contents($path);
$parser = $this->parserFactory($path);
$tree = $parser->parse($code);
$this->importCache[$realPath] = $tree;
}
$currentDirectory = $this->currentDirectory;
$this->currentDirectory = dirname($path);
$this->compileChildrenNoReturn($tree->children, $out);
$this->currentDirectory = $currentDirectory;
$this->popCallStack();
}
/**
* Save the imported files with their resolving path context
*
* @param string|null $currentDirectory
* @param string $path
* @param string $filePath
*
* @return void
*/
private function registerImport($currentDirectory, $path, $filePath)
{
$this->resolvedImports[] = ['currentDir' => $currentDirectory, 'path' => $path, 'filePath' => $filePath];
}
/**
* Detects whether the import is a CSS import.
Arguments
array:7 [
0 => array:5 [
0 => "block"
1 => ScssPhp\ScssPhp\Block {#4406}
-2 => 38
-3 => 1
-1 => 146
]
1 => array:5 [
0 => "block"
1 => ScssPhp\ScssPhp\Block {#4431}
-2 => 60
-3 => 1
-1 => 146
]
2 => array:5 [
0 => "block"
1 => ScssPhp\ScssPhp\Block {#4443}
-2 => 92
-3 => 1
-1 => 146
]
3 => array:5 [
0 => "block"
1 => ScssPhp\ScssPhp\Block {#4455}
-2 => 149
-3 => 1
-1 => 146
]
4 => array:5 [
0 => "block"
1 => ScssPhp\ScssPhp\Block {#4483}
-2 => 153
-3 => 1
-1 => 146
]
5 => array:5 [
0 => "block"
1 => ScssPhp\ScssPhp\Block {#4484}
-2 => 173
-3 => 1
-1 => 146
]
6 => array:5 [
0 => "media"
1 => ScssPhp\ScssPhp\Block\MediaBlock {#4494}
-2 => 180
-3 => 1
-1 => 146
]
]
ScssPhp\ScssPhp\Formatter\OutputBlock {#1554}
/**
* Compile import; returns true if the value was something that could be imported
*
* @param array $rawPath
* @param \ScssPhp\ScssPhp\Formatter\OutputBlock $out
* @param bool $once
*
* @return bool
*/
protected function compileImport($rawPath, OutputBlock $out, $once = false)
{
if ($rawPath[0] === Type::T_STRING) {
$path = $this->compileStringContent($rawPath);
if (strpos($path, 'url(') !== 0 && $filePath = $this->findImport($path, $this->currentDirectory)) {
$this->registerImport($this->currentDirectory, $path, $filePath);
if (! $once || ! \in_array($filePath, $this->importedFiles)) {
$this->importFile($filePath, $out);
$this->importedFiles[] = $filePath;
}
return true;
}
$this->appendRootDirective('@import ' . $this->compileImportPath($rawPath) . ';', $out);
return false;
}
if ($rawPath[0] === Type::T_LIST) {
// handle a list of strings
if (\count($rawPath[2]) === 0) {
return false;
}
foreach ($rawPath[2] as $path) {
if ($path[0] !== Type::T_STRING) {
$this->appendRootDirective('@import ' . $this->compileImportPath($rawPath) . ';', $out);
Arguments
"/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates/g5_helium/scss/helium/sections/_offcanvas.scss"
ScssPhp\ScssPhp\Formatter\OutputBlock {#1554}
$sourceIndex = array_search($out->sourceName, $this->sourceNames);
$this->sourceColumn = $out->sourceColumn;
if ($sourceIndex === false) {
$sourceIndex = null;
}
$this->sourceIndex = $sourceIndex;
}
switch ($child[0]) {
case Type::T_SCSSPHP_IMPORT_ONCE:
$rawPath = $this->reduce($child[1]);
$this->compileImport($rawPath, $out, true);
break;
case Type::T_IMPORT:
$rawPath = $this->reduce($child[1]);
$this->compileImport($rawPath, $out);
break;
case Type::T_DIRECTIVE:
$this->compileDirective($child[1], $out);
break;
case Type::T_AT_ROOT:
$this->compileAtRoot($child[1]);
break;
case Type::T_MEDIA:
$this->compileMedia($child[1]);
break;
case Type::T_BLOCK:
$this->compileBlock($child[1]);
break;
case Type::T_CHARSET:
break;
Arguments
array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/offcanvas"
]
]
ScssPhp\ScssPhp\Formatter\OutputBlock {#1554}
*
* @return void
*
* @throws \Exception
*/
protected function compileChildrenNoReturn($stms, OutputBlock $out, $selfParent = null, $traceName = '')
{
$this->pushCallStack($traceName);
foreach ($stms as $stm) {
if ($selfParent && isset($stm[1]) && \is_object($stm[1]) && $stm[1] instanceof Block) {
$stm[1]->selfParent = $selfParent;
$ret = $this->compileChild($stm, $out);
$stm[1]->selfParent = null;
} elseif ($selfParent && \in_array($stm[0], [Type::T_INCLUDE, Type::T_EXTEND])) {
$stm['selfParent'] = $selfParent;
$ret = $this->compileChild($stm, $out);
unset($stm['selfParent']);
} else {
$ret = $this->compileChild($stm, $out);
}
if (isset($ret)) {
throw $this->error('@return may only be used within a function');
}
}
$this->popCallStack();
}
/**
* evaluate media query : compile internal value keeping the structure unchanged
*
* @param array $queryList
*
* @return array
*/
protected function evaluateMediaQuery($queryList)
{
Arguments
array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/offcanvas"
]
]
-2 => 92
-3 => 1
-1 => 2
]
ScssPhp\ScssPhp\Formatter\OutputBlock {#1554}
throw $this->error('The Sass indented syntax is not implemented.');
}
if (isset($this->importCache[$realPath])) {
$this->handleImportLoop($realPath);
$tree = $this->importCache[$realPath];
} else {
$code = file_get_contents($path);
$parser = $this->parserFactory($path);
$tree = $parser->parse($code);
$this->importCache[$realPath] = $tree;
}
$currentDirectory = $this->currentDirectory;
$this->currentDirectory = dirname($path);
$this->compileChildrenNoReturn($tree->children, $out);
$this->currentDirectory = $currentDirectory;
$this->popCallStack();
}
/**
* Save the imported files with their resolving path context
*
* @param string|null $currentDirectory
* @param string $path
* @param string $filePath
*
* @return void
*/
private function registerImport($currentDirectory, $path, $filePath)
{
$this->resolvedImports[] = ['currentDir' => $currentDirectory, 'path' => $path, 'filePath' => $filePath];
}
/**
* Detects whether the import is a CSS import.
Arguments
array:39 [
0 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "dependencies"
]
]
-2 => 3
-3 => 1
-1 => 2
]
1 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "nucleus/theme/base"
]
]
-2 => 10
-3 => 1
-1 => 2
]
2 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/styles/fonts"
]
]
-2 => 13
-3 => 1
-1 => 2
]
3 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/styles/core"
]
]
-2 => 16
-3 => 1
-1 => 2
]
4 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/styles/hyperlinks"
]
]
-2 => 19
-3 => 1
-1 => 2
]
5 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/styles/typography"
]
]
-2 => 22
-3 => 1
-1 => 2
]
6 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/styles/utilities"
]
]
-2 => 25
-3 => 1
-1 => 2
]
7 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/styles/variations"
]
]
-2 => 28
-3 => 1
-1 => 2
]
8 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/styles/buttons"
]
]
-2 => 31
-3 => 1
-1 => 2
]
9 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/styles/tables"
]
]
-2 => 34
-3 => 1
-1 => 2
]
10 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/styles/forms"
]
]
-2 => 37
-3 => 1
-1 => 2
]
11 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/styles/dropdownanimations"
]
]
-2 => 40
-3 => 1
-1 => 2
]
12 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/styles/helium-style"
]
]
-2 => 43
-3 => 1
-1 => 2
]
13 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/pagesurround"
]
]
-2 => 50
-3 => 1
-1 => 2
]
14 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/header"
]
]
-2 => 53
-3 => 1
-1 => 2
]
15 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/navigation"
]
]
-2 => 56
-3 => 1
-1 => 2
]
16 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/mainnav"
]
]
-2 => 59
-3 => 1
-1 => 2
]
17 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/intro"
]
]
-2 => 62
-3 => 1
-1 => 2
]
18 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/features"
]
]
-2 => 65
-3 => 1
-1 => 2
]
19 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/utility"
]
]
-2 => 68
-3 => 1
-1 => 2
]
20 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/above"
]
]
-2 => 71
-3 => 1
-1 => 2
]
21 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/testimonials"
]
]
-2 => 74
-3 => 1
-1 => 2
]
22 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/expanded"
]
]
-2 => 77
-3 => 1
-1 => 2
]
23 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/main"
]
]
-2 => 80
-3 => 1
-1 => 2
]
24 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/aside"
]
]
-2 => 83
-3 => 1
-1 => 2
]
25 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/sidebar"
]
]
-2 => 86
-3 => 1
-1 => 2
]
26 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/footer"
]
]
-2 => 89
-3 => 1
-1 => 2
]
27 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/sections/offcanvas"
]
]
-2 => 92
-3 => 1
-1 => 2
]
28 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/layouts/error"
]
]
-2 => 99
-3 => 1
-1 => 2
]
29 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/layouts/offline"
]
]
-2 => 102
-3 => 1
-1 => 2
]
30 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/particles/logo"
]
]
-2 => 109
-3 => 1
-1 => 2
]
31 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/particles/social"
]
]
-2 => 112
-3 => 1
-1 => 2
]
32 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/particles/contentarray"
]
]
-2 => 115
-3 => 1
-1 => 2
]
33 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/particles/contentcubes"
]
]
-2 => 118
-3 => 1
-1 => 2
]
34 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/particles/contenttabs"
]
]
-2 => 121
-3 => 1
-1 => 2
]
35 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/particles/owlcarousel"
]
]
-2 => 124
-3 => 1
-1 => 2
]
36 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/particles/horizontalmenu"
]
]
-2 => 127
-3 => 1
-1 => 2
]
37 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium/particles/totop"
]
]
-2 => 130
-3 => 1
-1 => 2
]
38 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "nucleus/theme/breakpoints/base"
]
]
-2 => 135
-3 => 1
-1 => 2
]
]
ScssPhp\ScssPhp\Formatter\OutputBlock {#1554}
/**
* Compile import; returns true if the value was something that could be imported
*
* @param array $rawPath
* @param \ScssPhp\ScssPhp\Formatter\OutputBlock $out
* @param bool $once
*
* @return bool
*/
protected function compileImport($rawPath, OutputBlock $out, $once = false)
{
if ($rawPath[0] === Type::T_STRING) {
$path = $this->compileStringContent($rawPath);
if (strpos($path, 'url(') !== 0 && $filePath = $this->findImport($path, $this->currentDirectory)) {
$this->registerImport($this->currentDirectory, $path, $filePath);
if (! $once || ! \in_array($filePath, $this->importedFiles)) {
$this->importFile($filePath, $out);
$this->importedFiles[] = $filePath;
}
return true;
}
$this->appendRootDirective('@import ' . $this->compileImportPath($rawPath) . ';', $out);
return false;
}
if ($rawPath[0] === Type::T_LIST) {
// handle a list of strings
if (\count($rawPath[2]) === 0) {
return false;
}
foreach ($rawPath[2] as $path) {
if ($path[0] !== Type::T_STRING) {
$this->appendRootDirective('@import ' . $this->compileImportPath($rawPath) . ';', $out);
Arguments
"/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates/g5_helium/scss/helium.scss"
ScssPhp\ScssPhp\Formatter\OutputBlock {#1554}
$sourceIndex = array_search($out->sourceName, $this->sourceNames);
$this->sourceColumn = $out->sourceColumn;
if ($sourceIndex === false) {
$sourceIndex = null;
}
$this->sourceIndex = $sourceIndex;
}
switch ($child[0]) {
case Type::T_SCSSPHP_IMPORT_ONCE:
$rawPath = $this->reduce($child[1]);
$this->compileImport($rawPath, $out, true);
break;
case Type::T_IMPORT:
$rawPath = $this->reduce($child[1]);
$this->compileImport($rawPath, $out);
break;
case Type::T_DIRECTIVE:
$this->compileDirective($child[1], $out);
break;
case Type::T_AT_ROOT:
$this->compileAtRoot($child[1]);
break;
case Type::T_MEDIA:
$this->compileMedia($child[1]);
break;
case Type::T_BLOCK:
$this->compileBlock($child[1]);
break;
case Type::T_CHARSET:
break;
Arguments
array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium.scss"
]
]
ScssPhp\ScssPhp\Formatter\OutputBlock {#1554}
*
* @return void
*
* @throws \Exception
*/
protected function compileChildrenNoReturn($stms, OutputBlock $out, $selfParent = null, $traceName = '')
{
$this->pushCallStack($traceName);
foreach ($stms as $stm) {
if ($selfParent && isset($stm[1]) && \is_object($stm[1]) && $stm[1] instanceof Block) {
$stm[1]->selfParent = $selfParent;
$ret = $this->compileChild($stm, $out);
$stm[1]->selfParent = null;
} elseif ($selfParent && \in_array($stm[0], [Type::T_INCLUDE, Type::T_EXTEND])) {
$stm['selfParent'] = $selfParent;
$ret = $this->compileChild($stm, $out);
unset($stm['selfParent']);
} else {
$ret = $this->compileChild($stm, $out);
}
if (isset($ret)) {
throw $this->error('@return may only be used within a function');
}
}
$this->popCallStack();
}
/**
* evaluate media query : compile internal value keeping the structure unchanged
*
* @param array $queryList
*
* @return array
*/
protected function evaluateMediaQuery($queryList)
{
Arguments
array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium.scss"
]
]
-2 => 2
-3 => 1
-1 => 0
]
ScssPhp\ScssPhp\Formatter\OutputBlock {#1554}
$out->sourceName = isset($this->sourceNames[$this->sourceIndex]) ? $this->sourceNames[$this->sourceIndex] : '(stdin)';
$out->sourceLine = $this->sourceLine;
$out->sourceColumn = $this->sourceColumn;
}
return $out;
}
/**
* Compile root
*
* @param \ScssPhp\ScssPhp\Block $rootBlock
*
* @return void
*/
protected function compileRoot(Block $rootBlock)
{
$this->rootBlock = $this->scope = $this->makeOutputBlock(Type::T_ROOT);
$this->compileChildrenNoReturn($rootBlock->children, $this->scope);
assert($this->scope !== null);
$this->flattenSelectors($this->scope);
$this->missingSelectors();
}
/**
* Report missing selectors
*
* @return void
*/
protected function missingSelectors()
{
foreach ($this->extends as $extend) {
if (isset($extend[3])) {
continue;
}
list($target, $origin, $block) = $extend;
// ignore if !optional
Arguments
array:2 [
0 => array:7 [
0 => "assign"
1 => array:2 [
0 => "var"
1 => "output-bourbon-deprecation-warnings"
]
2 => array:2 [
0 => "keyword"
1 => "false"
]
3 => []
-2 => 1
-3 => 0
-1 => 0
]
1 => array:5 [
0 => "import"
1 => array:3 [
0 => "string"
1 => """
2 => array:1 [
0 => "helium.scss"
]
]
-2 => 2
-3 => 1
-1 => 0
]
]
ScssPhp\ScssPhp\Formatter\OutputBlock {#1554}
$this->rootDirectory = getcwd();
}
try {
$this->parser = $this->parserFactory($path);
$tree = $this->parser->parse($source);
$this->parser = null;
$this->formatter = new $this->configuredFormatter();
$this->rootBlock = null;
$this->rootEnv = $this->pushEnv($tree);
$warnCallback = function ($message, $deprecation) {
$this->logger->warn($message, $deprecation);
};
$previousWarnCallback = Warn::setCallback($warnCallback);
try {
$this->injectVariables($this->registeredVars);
$this->compileRoot($tree);
$this->popEnv();
} finally {
Warn::setCallback($previousWarnCallback);
}
$sourceMapGenerator = null;
if ($this->sourceMap) {
if (\is_object($this->sourceMap) && $this->sourceMap instanceof SourceMapGenerator) {
$sourceMapGenerator = $this->sourceMap;
$this->sourceMap = self::SOURCE_MAP_FILE;
} elseif ($this->sourceMap !== self::SOURCE_MAP_NONE) {
$sourceMapGenerator = new SourceMapGenerator($this->sourceMapOptions);
}
}
assert($this->scope !== null);
$out = $this->formatter->format($this->scope, $sourceMapGenerator);
$prefix = '';
Arguments
ScssPhp\ScssPhp\Block {#1811}
if ($file->locked() === false) {
// File was already locked by another process, lets avoid compiling the same file twice.
return false;
}
$logfile = fopen('php://memory', 'rb+');
$logger = new StreamLogger($logfile, true);
$compiler = $this->getCompiler();
$compiler->setLogger($logger);
// Set the lookup paths.
$this->functions->setBasePath($path);
$compiler->setImportPaths([[$this, 'findImport']]);
// Run the compiler.
$compiler->addVariables($this->getVariables(true));
$scss = '$output-bourbon-deprecation-warnings: false;' . "\n" . '@import "' . $in . '.scss"';
try {
$this->result = $compiler->compileString($scss);
$css = $this->result->getCss();
} catch (CompilerException $e) {
if (version_compare(static::$options['compatibility'], '5.5', '<')) {
static::$options['legacy'][$in] = true;
$this->warnings['__TITLE__'] = 'Please update your theme!';
$this->warnings[$in] = ['WARNING: ' . $e->getMessage()];
return $this->compileLegacyFile($in);
}
throw new \RuntimeException("ERROR: CSS Compilation on file '{$in}.scss' failed on error: {$e->getMessage()}", 500, $e);
} catch (\Exception $e) {
throw new \RuntimeException("ERROR: CSS Compilation on file '{$in}.scss' failed on fatal error: {$e->getMessage()}", 500, $e);
}
if (strpos($css, $scss) === 0) {
$css = '/* ' . $scss . ' */';
}
// Extract map from css and save it as separate file.
$pos = strrpos($css, '/*# sourceMappingURL=');
Arguments
"""
$output-bourbon-deprecation-warnings: false;\n
@import "helium.scss"
"""
/**
* Returns URL to CSS file.
*
* If file does not exist, it will be created by using CSS compiler.
*
* @param string $name
* @return string
*/
public function css($name)
{
if (!isset($this->cssCache[$name])) {
$compiler = $this->compiler();
if ($compiler->needsCompile($name, [$this, 'getCssVariables'])) {
if (\GANTRY_DEBUGGER) {
Debugger::startTimer("css-{$name}", "Compiling CSS: {$name}");
Debugger::addMessage("Compiling CSS: {$name}");
}
$compiler->compileFile($name);
if (\GANTRY_DEBUGGER) {
Debugger::stopTimer("css-{$name}");
}
}
$this->cssCache[$name] = $compiler->getCssUrl($name);
}
return $this->cssCache[$name];
}
/**
* @return array
*/
public function getCssVariables()
{
if ($this->preset) {
$variables = $this->presets()->flatten($this->preset . '.styles', '-');
} else {
Arguments
$styles = $this->getAssetsInLocation('styles', $location);
if (!$styles) {
return [];
}
$gantry = Gantry::instance();
/** @var Theme|null $theme */
$theme = isset($gantry['theme']) ? $gantry['theme'] : null;
/** @var Document $document */
$document = $gantry['document'];
foreach ($styles as $key => $style) {
if (isset($style['href'])) {
$url = $style['href'];
if ($theme && preg_match('|\.scss$|', $url)) {
// Compile SCSS files.
$url = $theme->css(Gantry::basename($url, '.scss'));
}
// Deal with streams and relative paths.
$url = $document::url($url, false, null, false);
$styles[$key]['href'] = $url;
}
}
return $styles;
}
/**
* @param string $location
* @return array
* @since 5.4.3
*/
public function getScripts($location = 'head')
{
$scripts = $this->getAssetsInLocation('scripts', $location);
Arguments
static $error = false;
if (isset($new)) {
$error = (bool) $new;
}
return $error;
}
protected static function registerStyles()
{
if (static::errorPage()) {
return;
}
/** @var CMSApplication $application */
$application = Factory::getApplication();
$doc = $application->getDocument();
$styles = static::$stack[0]->getStyles();
foreach ($styles as $style) {
switch ($style[':type']) {
case 'file':
$attribs = array_replace(['type' => $style['type'], 'media' => $style['media']], $style['element']);
$attribs = array_filter($attribs, static function($arg) { return null !== $arg; });
$doc->addStyleSheet($style['href'], [], $attribs);
break;
case 'inline':
$doc->addStyleDeclaration($style['content'], $style['type']);
break;
}
}
}
protected static function registerScripts()
{
if (static::errorPage()) {
return;
}
if (
$framework === 'bootstrap'
|| ($framework === 'bootstrap.2' && JVersion::MAJOR_VERSION === 3)
|| ($framework === 'bootstrap.5' && JVersion::MAJOR_VERSION >= 4)
) {
/** @var Theme $theme */
$theme = Gantry::instance()['theme'];
$theme->joomla = true;
}
return true;
}
/**
*
*/
public static function registerAssets()
{
static::registerFrameworks();
static::registerStyles();
static::registerScripts();
}
/**
* NOTE: In PHP this function can be called either from Gantry DI container or statically.
*
* @param bool $addDomain
* @return string
*/
public static function domain($addDomain = false)
{
if (!$addDomain) {
return '';
}
$absolute = Uri::root(false);
$relative = Uri::root(true);
return substr($absolute, 0, -strlen($relative));
}
{
return null;
}
/**
* @param string $text
* @return string
*/
public function filter($text)
{
return $text;
}
public function finalize()
{
$gantry = Gantry::instance();
/** @var Document $document */
$document = $gantry['document'];
$document::registerAssets();
}
/**
* @return mixed|null
*/
public function call()
{
$args = func_get_args();
$callable = array_shift($args);
return is_callable($callable) ? call_user_func_array($callable, $args) : null;
}
/**
* @param string $action
* @param int|string|null $id
* @return bool
*/
public function authorize($action, $id = null)
{
return true;
if ($ignoreStrictCheck || !$this->env->isStrictVariables()) {
return;
}
throw new RuntimeError(sprintf('Neither the property "%1$s" nor one of the methods "%1$s()", "get%1$s()"/"is%1$s()" or "__call()" exist and have public access in class "%2$s".', $item, $class), -1, $this->getSourceContext());
}
if ($isDefinedTest) {
return true;
}
if ($this->env->hasExtension('\Twig\Extension\SandboxExtension')) {
$this->env->getExtension('\Twig\Extension\SandboxExtension')->checkMethodAllowed($object, $method);
}
// Some objects throw exceptions when they have __call, and the method we try
// to call is not supported. If ignoreStrictCheck is true, we should return null.
try {
if (!$arguments) {
$ret = $object->$method();
} else {
$ret = \call_user_func_array([$object, $method], $arguments);
}
} catch (\BadMethodCallException $e) {
if ($call && ($ignoreStrictCheck || !$this->env->isStrictVariables())) {
return;
}
throw $e;
}
// @deprecated in 1.28
if ($object instanceof \Twig_TemplateInterface) {
$self = $object->getTemplateName() === $this->getTemplateName();
$message = sprintf('Calling "%s" on template "%s" from template "%s" is deprecated since version 1.28 and won\'t be supported anymore in 2.0.', $item, $object->getTemplateName(), $this->getTemplateName());
if ('renderBlock' === $method || 'displayBlock' === $method) {
$message .= sprintf(' Use block("%s"%s) instead).', $arguments[0], $self ? '' : ', template');
} elseif ('hasBlock' === $method) {
$message .= sprintf(' Use "block("%s"%s) is defined" instead).', $arguments[0], $self ? '' : ', template');
} elseif ('render' === $method || 'display' === $method) {
$message .= sprintf(' Use include("%s") instead).', $object->getTemplateName());
// line 56
public function block_body_bottom($context, array $blocks = [])
{
// line 57
echo " ";
}
// line 66
public function block_page_head($context, array $blocks = [])
{
// line 67
$this->loadTemplate("partials/page_head.html.twig", "@nucleus/page.html.twig", 67)->display($context);
}
// line 72
public function block_page_footer($context, array $blocks = [])
{
// line 73
echo " ";
$this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "finalize", [], "method");
// line 74
echo twig_join_filter($this->getAttribute(($context["gantry"] ?? null), "scripts", [0 => "footer"], "method"), "
");
}
// line 80
public function block_page($context, array $blocks = [])
{
// line 81
echo "<!DOCTYPE ";
echo (($this->getAttribute($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "config", [], "any", false, true), "page", [], "any", false, true), "doctype", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "config", [], "any", false, true), "page", [], "any", false, true), "doctype", []), "html")) : ("html"));
echo ">
<html";
// line 82
echo $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "page", []), "htmlAttributes", []);
echo ">
";
// line 83
echo ($context["page_head"] ?? null);
echo "
Arguments
Gantry\Framework\Platform {#705}
"finalize"
[]
"method"
if ($useBlocks && isset($blocks[$name])) {
$template = $blocks[$name][0];
$block = $blocks[$name][1];
} elseif (isset($this->blocks[$name])) {
$template = $this->blocks[$name][0];
$block = $this->blocks[$name][1];
} else {
$template = null;
$block = null;
}
// avoid RCEs when sandbox is enabled
if (null !== $template && !$template instanceof self) {
throw new \LogicException('A block must be a method on a \Twig\Template instance.');
}
if (null !== $template) {
try {
$template->$block($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($template->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Exception $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $template->getSourceContext(), $e);
$e->guess();
throw $e;
}
} elseif (false !== $parent = $this->getParent($context)) {
$parent->displayBlock($name, $context, array_merge($this->blocks, $blocks), false);
Arguments
array:15 [
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#1843}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#1769}
"page_top" => Twig\Markup {#1822}
"page_bottom" => Twig\Markup {#1832}
"body_top" => Twig\Markup {#1853}
"body_bottom" => Twig\Markup {#1851}
"page_head" => Twig\Markup {#1854}
]
array:11 [
"content" => array:2 [
0 => __TwigTemplate_a81916adf3575a49a872f1d0450f089b2da766fb1240d6cfe318909b9b771c7c {#923}
1 => "block_content"
]
"page_offcanvas" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_offcanvas"
]
"page_layout" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_layout"
]
"page_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_top"
]
"page_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_bottom"
]
"body_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_top"
]
"body_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_bottom"
]
"page_head" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_head"
]
"page_footer" => array:2 [
0 => __TwigTemplate_2ed577f2dbaf3f15552ad0fad01706fca6f5f00692e261a27b8da7fc58fe8564 {#922}
1 => "block_page_footer"
]
"page" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page"
]
"page_body" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_body"
]
]
}
/**
* Displays a parent block.
*
* This method is for internal use only and should never be called
* directly.
*
* @param string $name The block name to display from the parent
* @param array $context The context
* @param array $blocks The current set of blocks
*/
public function displayParentBlock($name, array $context, array $blocks = [])
{
$name = (string) $name;
if (isset($this->traits[$name])) {
$this->traits[$name][0]->displayBlock($name, $context, $blocks, false);
} elseif (false !== $parent = $this->getParent($context)) {
$parent->displayBlock($name, $context, $blocks, false);
} else {
throw new RuntimeError(sprintf('The template has no parent and no traits defining the "%s" block.', $name), -1, $this->getSourceContext());
}
}
/**
* Displays a block.
*
* This method is for internal use only and should never be called
* directly.
*
* @param string $name The block name to display
* @param array $context The context
* @param array $blocks The current set of blocks
* @param bool $useBlocks Whether to use the current set of blocks
*/
public function displayBlock($name, array $context, array $blocks = [], $useBlocks = true)
{
$name = (string) $name;
Arguments
"page_footer"
array:15 [
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#1843}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#1769}
"page_top" => Twig\Markup {#1822}
"page_bottom" => Twig\Markup {#1832}
"body_top" => Twig\Markup {#1853}
"body_bottom" => Twig\Markup {#1851}
"page_head" => Twig\Markup {#1854}
]
array:11 [
"content" => array:2 [
0 => __TwigTemplate_a81916adf3575a49a872f1d0450f089b2da766fb1240d6cfe318909b9b771c7c {#923}
1 => "block_content"
]
"page_offcanvas" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_offcanvas"
]
"page_layout" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_layout"
]
"page_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_top"
]
"page_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_bottom"
]
"body_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_top"
]
"body_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_bottom"
]
"page_head" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_head"
]
"page_footer" => array:2 [
0 => __TwigTemplate_2ed577f2dbaf3f15552ad0fad01706fca6f5f00692e261a27b8da7fc58fe8564 {#922}
1 => "block_page_footer"
]
"page" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page"
]
"page_body" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_body"
]
]
false
}
protected function doGetParent(array $context)
{
// line 1
return "@nucleus/page.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$this->parent = $this->loadTemplate("@nucleus/page.html.twig", "partials/page.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_page_footer($context, array $blocks = [])
{
// line 4
echo " ";
$this->displayParentBlock("page_footer", $context, $blocks);
echo "
<jdoc:include type=\"modules\" name=\"debug\" />
";
}
public function getTemplateName()
{
return "partials/page.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 42 => 4, 39 => 3, 29 => 1,);
}
Arguments
"page_footer"
array:15 [
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#1843}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#1769}
"page_top" => Twig\Markup {#1822}
"page_bottom" => Twig\Markup {#1832}
"body_top" => Twig\Markup {#1853}
"body_bottom" => Twig\Markup {#1851}
"page_head" => Twig\Markup {#1854}
]
array:11 [
"content" => array:2 [
0 => __TwigTemplate_a81916adf3575a49a872f1d0450f089b2da766fb1240d6cfe318909b9b771c7c {#923}
1 => "block_content"
]
"page_offcanvas" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_offcanvas"
]
"page_layout" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_layout"
]
"page_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_top"
]
"page_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_bottom"
]
"body_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_top"
]
"body_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_bottom"
]
"page_head" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_head"
]
"page_footer" => array:2 [
0 => __TwigTemplate_2ed577f2dbaf3f15552ad0fad01706fca6f5f00692e261a27b8da7fc58fe8564 {#922}
1 => "block_page_footer"
]
"page" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page"
]
"page_body" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_body"
]
]
if ($useBlocks && isset($blocks[$name])) {
$template = $blocks[$name][0];
$block = $blocks[$name][1];
} elseif (isset($this->blocks[$name])) {
$template = $this->blocks[$name][0];
$block = $this->blocks[$name][1];
} else {
$template = null;
$block = null;
}
// avoid RCEs when sandbox is enabled
if (null !== $template && !$template instanceof self) {
throw new \LogicException('A block must be a method on a \Twig\Template instance.');
}
if (null !== $template) {
try {
$template->$block($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($template->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Exception $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $template->getSourceContext(), $e);
$e->guess();
throw $e;
}
} elseif (false !== $parent = $this->getParent($context)) {
$parent->displayBlock($name, $context, array_merge($this->blocks, $blocks), false);
Arguments
array:15 [
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#1843}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#1769}
"page_top" => Twig\Markup {#1822}
"page_bottom" => Twig\Markup {#1832}
"body_top" => Twig\Markup {#1853}
"body_bottom" => Twig\Markup {#1851}
"page_head" => Twig\Markup {#1854}
]
array:11 [
"content" => array:2 [
0 => __TwigTemplate_a81916adf3575a49a872f1d0450f089b2da766fb1240d6cfe318909b9b771c7c {#923}
1 => "block_content"
]
"page_offcanvas" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_offcanvas"
]
"page_layout" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_layout"
]
"page_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_top"
]
"page_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_bottom"
]
"body_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_top"
]
"body_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_bottom"
]
"page_head" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_head"
]
"page_footer" => array:2 [
0 => __TwigTemplate_2ed577f2dbaf3f15552ad0fad01706fca6f5f00692e261a27b8da7fc58fe8564 {#922}
1 => "block_page_footer"
]
"page" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page"
]
"page_body" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_body"
]
]
// line 58
echo " ";
echo twig_join_filter($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", []), "getHtml", [0 => "body_bottom"], "method"), "
");
echo "
";
$context["body_bottom"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 61
$this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", []), "addScript", [0 => $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->urlFunc("gantry-assets://js/main.js"), 1 => 11, 2 => "footer"], "method");
// line 65
ob_start(function () { return ''; });
// line 66
echo " ";
$this->displayBlock('page_head', $context, $blocks);
$context["page_head"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 71
ob_start(function () { return ''; });
// line 72
echo " ";
$this->displayBlock('page_footer', $context, $blocks);
// line 76
echo "
";
// line 77
echo $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "debugger", []), "render", [], "method");
echo "
";
$context["page_footer"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 80
$this->displayBlock('page', $context, $blocks);
}
// line 8
public function block_content($context, array $blocks = [])
{
// line 9
echo " ";
}
// line 19
Arguments
"page_footer"
array:15 [
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#1843}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#1769}
"page_top" => Twig\Markup {#1822}
"page_bottom" => Twig\Markup {#1832}
"body_top" => Twig\Markup {#1853}
"body_bottom" => Twig\Markup {#1851}
"page_head" => Twig\Markup {#1854}
]
array:11 [
"content" => array:2 [
0 => __TwigTemplate_a81916adf3575a49a872f1d0450f089b2da766fb1240d6cfe318909b9b771c7c {#923}
1 => "block_content"
]
"page_offcanvas" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_offcanvas"
]
"page_layout" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_layout"
]
"page_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_top"
]
"page_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_bottom"
]
"body_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_top"
]
"body_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_bottom"
]
"page_head" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_head"
]
"page_footer" => array:2 [
0 => __TwigTemplate_2ed577f2dbaf3f15552ad0fad01706fca6f5f00692e261a27b8da7fc58fe8564 {#922}
1 => "block_page_footer"
]
"page" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page"
]
"page_body" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_body"
]
]
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Exception $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
$e->guess();
throw $e;
}
}
Arguments
array:15 [
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
"segments" => array:7 [
0 => {#1039}
2 => {#1078}
3 => {#1110}
5 => {#1132}
6 => {#1138}
9 => {#1174}
10 => {#1177}
]
"content" => Twig\Markup {#1843}
"offcanvas" => {#1177}
"page_offcanvas" => """
<div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">\n
<div class="g-grid"> \n
\n
<div class="g-block size-100">\n
<div id="mobile-menu-1312-particle" class="g-content g-particle"> <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>\n
</div>\n
</div>\n
</div>\n
</div>
"""
"offcanvas_position" => "g-offcanvas-left"
"page_layout" => Twig\Markup {#1769}
"page_top" => Twig\Markup {#1822}
"page_bottom" => Twig\Markup {#1832}
"body_top" => Twig\Markup {#1853}
"body_bottom" => Twig\Markup {#1851}
"page_head" => Twig\Markup {#1854}
]
array:11 [
"content" => array:2 [
0 => __TwigTemplate_a81916adf3575a49a872f1d0450f089b2da766fb1240d6cfe318909b9b771c7c {#923}
1 => "block_content"
]
"page_offcanvas" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_offcanvas"
]
"page_layout" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_layout"
]
"page_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_top"
]
"page_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_bottom"
]
"body_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_top"
]
"body_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_bottom"
]
"page_head" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_head"
]
"page_footer" => array:2 [
0 => __TwigTemplate_2ed577f2dbaf3f15552ad0fad01706fca6f5f00692e261a27b8da7fc58fe8564 {#922}
1 => "block_page_footer"
]
"page" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page"
]
"page_body" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_body"
]
]
{
return $this;
}
/**
* Returns all blocks.
*
* This method is for internal use only and should never be called
* directly.
*
* @return array An array of blocks
*/
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Exception $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
Arguments
array:4 [
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
]
array:11 [
"content" => array:2 [
0 => __TwigTemplate_a81916adf3575a49a872f1d0450f089b2da766fb1240d6cfe318909b9b771c7c {#923}
1 => "block_content"
]
"page_offcanvas" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_offcanvas"
]
"page_layout" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_layout"
]
"page_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_top"
]
"page_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_bottom"
]
"body_top" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_top"
]
"body_bottom" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_body_bottom"
]
"page_head" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_head"
]
"page_footer" => array:2 [
0 => __TwigTemplate_2ed577f2dbaf3f15552ad0fad01706fca6f5f00692e261a27b8da7fc58fe8564 {#922}
1 => "block_page_footer"
]
"page" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page"
]
"page_body" => array:2 [
0 => __TwigTemplate_67435c5b50fc8d848e79242ad8ded4a1f2b97b8ef0da6d955e37bc95e0422db7 {#921}
1 => "block_page_body"
]
]
{
public function __construct(Environment $env)
{
parent::__construct($env);
$this->blocks = [
'page_footer' => [$this, 'block_page_footer'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@nucleus/page.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$this->parent = $this->loadTemplate("@nucleus/page.html.twig", "partials/page.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_page_footer($context, array $blocks = [])
{
// line 4
echo " ";
$this->displayParentBlock("page_footer", $context, $blocks);
echo "
<jdoc:include type=\"modules\" name=\"debug\" />
";
}
public function getTemplateName()
{
return "partials/page.html.twig";
}
public function isTraitable()
{
Arguments
array:4 [
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
]
array:2 [
"page_footer" => array:2 [
0 => __TwigTemplate_2ed577f2dbaf3f15552ad0fad01706fca6f5f00692e261a27b8da7fc58fe8564 {#922}
1 => "block_page_footer"
]
"content" => array:2 [
0 => __TwigTemplate_a81916adf3575a49a872f1d0450f089b2da766fb1240d6cfe318909b9b771c7c {#923}
1 => "block_content"
]
]
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Exception $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
$e->guess();
throw $e;
}
}
Arguments
array:4 [
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
]
array:2 [
"page_footer" => array:2 [
0 => __TwigTemplate_2ed577f2dbaf3f15552ad0fad01706fca6f5f00692e261a27b8da7fc58fe8564 {#922}
1 => "block_page_footer"
]
"content" => array:2 [
0 => __TwigTemplate_a81916adf3575a49a872f1d0450f089b2da766fb1240d6cfe318909b9b771c7c {#923}
1 => "block_content"
]
]
{
return $this;
}
/**
* Returns all blocks.
*
* This method is for internal use only and should never be called
* directly.
*
* @return array An array of blocks
*/
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Exception $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
Arguments
array:4 [
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
]
array:2 [
"page_footer" => array:2 [
0 => __TwigTemplate_2ed577f2dbaf3f15552ad0fad01706fca6f5f00692e261a27b8da7fc58fe8564 {#922}
1 => "block_page_footer"
]
"content" => array:2 [
0 => __TwigTemplate_a81916adf3575a49a872f1d0450f089b2da766fb1240d6cfe318909b9b771c7c {#923}
1 => "block_content"
]
]
{
public function __construct(Environment $env)
{
parent::__construct($env);
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "partials/page.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$this->parent = $this->loadTemplate("partials/page.html.twig", "index.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_content($context, array $blocks = [])
{
// line 4
echo " ";
echo $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "displayContent", [0 => ($context["content"] ?? null)], "method");
echo "
";
}
public function getTemplateName()
{
return "index.html.twig";
}
public function isTraitable()
{
return false;
Arguments
array:4 [
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
]
array:1 [
"content" => array:2 [
0 => __TwigTemplate_a81916adf3575a49a872f1d0450f089b2da766fb1240d6cfe318909b9b771c7c {#923}
1 => "block_content"
]
]
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Exception $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
$e->guess();
throw $e;
}
}
Arguments
array:4 [
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
]
array:1 [
"content" => array:2 [
0 => __TwigTemplate_a81916adf3575a49a872f1d0450f089b2da766fb1240d6cfe318909b9b771c7c {#923}
1 => "block_content"
]
]
{
return $this;
}
/**
* Returns all blocks.
*
* This method is for internal use only and should never be called
* directly.
*
* @return array An array of blocks
*/
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Exception $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
Arguments
array:4 [
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
"gantry" => Gantry\Framework\Gantry {#715}
]
array:1 [
"content" => array:2 [
0 => __TwigTemplate_a81916adf3575a49a872f1d0450f089b2da766fb1240d6cfe318909b9b771c7c {#923}
1 => "block_content"
]
]
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Exception $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
Arguments
array:3 [
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
]
* @internal
*/
public function __construct(Environment $env, Template $template)
{
$this->env = $env;
$this->template = $template;
}
/**
* Renders the template.
*
* @param array $context An array of parameters to pass to the template
*
* @return string The rendered template
*/
public function render($context = [])
{
// using func_get_args() allows to not expose the blocks argument
// as it should only be used by internal code
return $this->template->render($context, \func_num_args() > 1 ? func_get_arg(1) : []);
}
/**
* Displays the template.
*
* @param array $context An array of parameters to pass to the template
*/
public function display($context = [])
{
// using func_get_args() allows to not expose the blocks argument
// as it should only be used by internal code
$this->template->display($context, \func_num_args() > 1 ? func_get_arg(1) : []);
}
/**
* Checks if a block is defined.
*
* @param string $name The block name
* @param array $context An array of parameters to pass to the template
*
Arguments
array:3 [
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
]
[]
@trigger_error(sprintf('The %s method is deprecated since version 1.22 and will be removed in Twig 2.0.', __METHOD__), \E_USER_DEPRECATED);
return $this->templateClassPrefix;
}
/**
* Renders a template.
*
* @param string|TemplateWrapper $name The template name
* @param array $context An array of parameters to pass to the template
*
* @return string The rendered template
*
* @throws LoaderError When the template cannot be found
* @throws SyntaxError When an error occurred during compilation
* @throws RuntimeError When an error occurred during rendering
*/
public function render($name, array $context = [])
{
return $this->load($name)->render($context);
}
/**
* Displays a template.
*
* @param string|TemplateWrapper $name The template name
* @param array $context An array of parameters to pass to the template
*
* @throws LoaderError When the template cannot be found
* @throws SyntaxError When an error occurred during compilation
* @throws RuntimeError When an error occurred during rendering
*/
public function display($name, array $context = [])
{
$this->load($name)->display($context);
}
/**
* Loads a template.
*
Arguments
array:3 [
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
]
$this->renderer = $this->extendTwig($twig, $loader);
}
return $this->renderer;
}
/**
* Render a template file by using given context.
*
* @param string $file
* @param array $context
* @return string
*/
public function render($file, array $context = [])
{
// Include Gantry specific things to the context.
$context = $this->getContext($context);
return $this->renderer()->render($file, $context);
}
/**
* Compile and render twig string.
*
* @param string $string
* @param array $context
* @return string
*/
public function compile($string, array $context = [])
{
$renderer = $this->renderer();
$template = $renderer->createTemplate($string);
// Include Gantry specific things to the context.
$context = $this->getContext($context);
return $template->render($context);
}
Arguments
"index.html.twig"
array:3 [
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
]
// Bootstrap Gantry framework or fail gracefully (inside included file).
$className = __DIR__ . '/custom/includes/gantry.php';
if (!is_file($className)) {
$className = __DIR__ . '/includes/gantry.php';
}
$gantry = include $className;
/** @var Platform $joomla */
$joomla = $gantry['platform'];
$joomla->document = $this;
/** @var Theme $theme */
$theme = $gantry['theme'];
// All the custom twig variables can be defined in here:
$context = array();
// Render the page.
echo $theme->render('index.html.twig', $context);
Arguments
"index.html.twig"
array:3 [
"theme" => GantryTheme {#652}
"site" => Gantry\Framework\Site {#802}
"joomla" => Gantry\Framework\Platform {#705}
]
* @param string $directory The name of the template
* @param string $filename The actual filename
*
* @return string The contents of the template
*
* @since 1.7.0
*/
protected function _loadTemplate($directory, $filename)
{
$contents = '';
// Check to see if we have a valid template file
if (is_file($directory . '/' . $filename))
{
// Store the file path
$this->_file = $directory . '/' . $filename;
// Get the file content
ob_start();
require $directory . '/' . $filename;
$contents = ob_get_contents();
ob_end_clean();
}
return $contents;
}
/**
* Fetch the template, and initialise the params
*
* @param array $params Parameters to determine the template
*
* @return HtmlDocument instance of $this to allow chaining
*
* @since 1.7.0
*/
protected function _fetchTemplate($params = array())
{
// Check
$directory = $params['directory'] ?? 'templates';
Arguments
"/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates/g5_helium/index.php"
$file = 'index.php';
}
}
}
// Load the language file for the template
$lang = CmsFactory::getLanguage();
// 1.5 or core then 1.6
$lang->load('tpl_' . $template, JPATH_BASE)
|| ($inherits !== '' && $lang->load('tpl_' . $inherits, $directory . '/' . $inherits))
|| $lang->load('tpl_' . $template, $directory . '/' . $template);
// Assign the variables
$this->baseurl = Uri::base(true);
$this->params = $params['params'] ?? new Registry;
$this->template = $template;
// Load
$this->_template = $this->_loadTemplate($baseDir, $file);
return $this;
}
/**
* Parse a document template
*
* @return HtmlDocument instance of $this to allow chaining
*
* @since 1.7.0
*/
protected function _parseTemplate()
{
$matches = array();
if (preg_match_all('#<jdoc:include\ type="([^"]+)"(.*)\/>#iU', $this->_template, $matches))
{
$messages = [];
$template_tags_first = [];
$template_tags_last = [];
Arguments
"/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates/g5_helium"
"index.php"
$options['title'] = $args[3] ?? null;
}
parent::$_buffer[$options['type']][$options['name']][$options['title']] = $content;
return $this;
}
/**
* Parses the template and populates the buffer
*
* @param array $params Parameters for fetching the template
*
* @return HtmlDocument instance of $this to allow chaining
*
* @since 1.7.0
*/
public function parse($params = array())
{
return $this->_fetchTemplate($params)->_parseTemplate();
}
/**
* Outputs the template to the browser.
*
* @param boolean $caching If true, cache the output
* @param array $params Associative array of attributes
*
* @return string The rendered data
*
* @since 1.7.0
*/
public function render($caching = false, $params = array())
{
$this->_caching = $caching;
if (empty($this->_template))
{
$this->parse($params);
}
Arguments
array:6 [
"template" => "g5_helium"
"file" => "index.php"
"params" => Joomla\Registry\Registry {#658}
"csp_nonce" => "ZDg2MDM0ZmYwOTJkZjFiNDdmMGQyNWM0ZDRlZDAwYTY4YjVlOTBlZDg2Y2YyOWJlNjNmMWFiNjg4ZTMyY2NjMjQ4MGU1NGZiZDVjMzcxZDA3ZjhmOTE5ZjJlZjE1YWNmOWY1MDMwOWFlNmY0MDM1NDkyNmU4OGEzNGRmYWIwMWI="
"templateInherits" => null
"directory" => "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates"
]
{
// Setup the document options.
$this->docOptions['template'] = $this->get('theme');
$this->docOptions['file'] = $this->get('themeFile', 'index.php');
$this->docOptions['params'] = $this->get('themeParams');
$this->docOptions['csp_nonce'] = $this->get('csp_nonce');
$this->docOptions['templateInherits'] = $this->get('themeInherits');
if ($this->get('themes.base'))
{
$this->docOptions['directory'] = $this->get('themes.base');
}
// Fall back to constants.
else
{
$this->docOptions['directory'] = \defined('JPATH_THEMES') ? JPATH_THEMES : (\defined('JPATH_BASE') ? JPATH_BASE : __DIR__) . '/themes';
}
// Parse the document.
$this->document->parse($this->docOptions);
// Trigger the onBeforeRender event.
PluginHelper::importPlugin('system');
$this->triggerEvent('onBeforeRender');
$caching = false;
if ($this->isClient('site') && $this->get('caching') && $this->get('caching', 2) == 2 && !Factory::getUser()->get('id'))
{
$caching = true;
}
// Render the document.
$data = $this->document->render($caching, $this->docOptions);
// Set the application output data.
$this->setBody($data);
// Trigger the onAfterRender event.
$this->triggerEvent('onAfterRender');
Arguments
array:6 [
"template" => "g5_helium"
"file" => "index.php"
"params" => Joomla\Registry\Registry {#658}
"csp_nonce" => "ZDg2MDM0ZmYwOTJkZjFiNDdmMGQyNWM0ZDRlZDAwYTY4YjVlOTBlZDg2Y2YyOWJlNjNmMWFiNjg4ZTMyY2NjMjQ4MGU1NGZiZDVjMzcxZDA3ZjhmOTE5ZjJlZjE1YWNmOWY1MDMwOWFlNmY0MDM1NDkyNmU4OGEzNGRmYWIwMWI="
"templateInherits" => null
"directory" => "/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/templates"
]
}
if (!is_dir(JPATH_THEMES . '/' . $template->template) && !$this->get('offline'))
{
$this->set('themeFile', 'component.php');
}
// Ensure themeFile is set by now
if ($this->get('themeFile') == '')
{
$this->set('themeFile', $file . '.php');
}
// Pass the parent template to the state
$this->set('themeInherits', $template->parent);
break;
}
parent::render();
}
/**
* Route the application.
*
* Routing is the process of examining the request environment to determine which
* component should receive the request. The component optional parameters
* are then set in the request object to be processed when the application is being
* dispatched.
*
* @return void
*
* @since 3.2
*/
protected function route()
{
// Execute the parent method
parent::route();
$Itemid = $this->input->getInt('Itemid', null);
* @return void
*
* @since 3.2
*/
public function execute()
{
try
{
$this->sanityCheckSystemVariables();
$this->setupLogging();
$this->createExtensionNamespaceMap();
// Perform application routines.
$this->doExecute();
// If we have an application document object, render it.
if ($this->document instanceof \Joomla\CMS\Document\Document)
{
// Render the application output.
$this->render();
}
// If gzip compression is enabled in configuration and the server is compliant, compress the output.
if ($this->get('gzip') && !ini_get('zlib.output_compression') && ini_get('output_handler') !== 'ob_gzhandler')
{
$this->compress();
// Trigger the onAfterCompress event.
$this->triggerEvent('onAfterCompress');
}
}
catch (\Throwable $throwable)
{
/** @var ErrorEvent $event */
$event = AbstractEvent::create(
'onError',
[
'subject' => $throwable,
'eventClass' => ErrorEvent::class,
'application' => $this,
*
* In addition to aliasing "common" service keys, we also create aliases for the PHP classes to ensure autowiring objects
* is supported. This includes aliases for aliased class names, and the keys for aliased class names should be considered
* deprecated to be removed when the class name alias is removed as well.
*/
$container->alias('session.web', 'session.web.site')
->alias('session', 'session.web.site')
->alias('JSession', 'session.web.site')
->alias(\Joomla\CMS\Session\Session::class, 'session.web.site')
->alias(\Joomla\Session\Session::class, 'session.web.site')
->alias(\Joomla\Session\SessionInterface::class, 'session.web.site');
// Instantiate the application.
$app = $container->get(\Joomla\CMS\Application\SiteApplication::class);
// Set the application as global app
\Joomla\CMS\Factory::$application = $app;
// Execute the application.
$app->execute();
if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '<'))
{
die(
str_replace(
'{{phpversion}}',
JOOMLA_MINIMUM_PHP,
file_get_contents(dirname(__FILE__) . '/templates/system/incompatible.html')
)
);
}
/**
* Constant that is checked in included files to prevent direct access.
* define() is used rather than "const" to not error for PHP 5.2 and lower
*/
define('_JEXEC', 1);
// Run the application - All executable code should be triggered through this file
require_once dirname(__FILE__) . '/includes/app.php';
Arguments
"/mnt/data/vhosts/casite-716850.cloudaccess.net/httpdocs/includes/app.php"