Twig_Error_Runtime
An exception has been thrown during the rendering of a template ("amount 205 must be between 0 and 100%").
Previous exceptions
  • amount 205 must be between 0 and 100% (0)
Twig_Error_Runtime thrown with message "An exception has been thrown during the rendering of a template ("amount 205 must be between 0 and 100%")." Stacktrace: #49 Twig_Error_Runtime in /usr/www/users/cqqjld/wp-content/plugins/gantry5/engines/nucleus/views/partials/page.html.twig:12 #48 Leafo\ScssPhp\Exception\RangeException in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/vendor/leafo/scssphp/src/Util.php:54 #47 Leafo\ScssPhp\Util:checkRange in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/vendor/leafo/scssphp/src/Compiler.php:5296 #46 Leafo\ScssPhp\Compiler:libLighten in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/vendor/leafo/scssphp/src/Compiler.php:4328 #45 call_user_func in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/vendor/leafo/scssphp/src/Compiler.php:4328 #44 Leafo\ScssPhp\Compiler:callNativeFunction in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/vendor/leafo/scssphp/src/Compiler.php:2755 #43 Leafo\ScssPhp\Compiler:fncall in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/vendor/leafo/scssphp/src/Compiler.php:2727 #42 Leafo\ScssPhp\Compiler:reduce in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/vendor/leafo/scssphp/src/Compiler.php:2693 #41 Leafo\ScssPhp\Compiler:reduce in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/vendor/leafo/scssphp/src/Compiler.php:2164 #40 Leafo\ScssPhp\Compiler:compileChild in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/vendor/leafo/scssphp/src/Compiler.php:1690 #39 Leafo\ScssPhp\Compiler:compileChildrenNoReturn in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/vendor/leafo/scssphp/src/Compiler.php:1334 #38 Leafo\ScssPhp\Compiler:compileBlock in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/vendor/leafo/scssphp/src/Compiler.php:2098 #37 Leafo\ScssPhp\Compiler:compileChild in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/vendor/leafo/scssphp/src/Compiler.php:1690 #36 Leafo\ScssPhp\Compiler:compileChildrenNoReturn in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/vendor/leafo/scssphp/src/Compiler.php:1334 #35 Leafo\ScssPhp\Compiler:compileBlock in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/vendor/leafo/scssphp/src/Compiler.php:2098 #34 Leafo\ScssPhp\Compiler:compileChild in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/vendor/leafo/scssphp/src/Compiler.php:1690 #33 Leafo\ScssPhp\Compiler:compileChildrenNoReturn in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/classes/Gantry/Component/Stylesheet/Scss/Compiler.php:426 #32 Gantry\Component\Stylesheet\Scss\Compiler:importFile in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/vendor/leafo/scssphp/src/Compiler.php:2009 #31 Leafo\ScssPhp\Compiler:compileImport in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/vendor/leafo/scssphp/src/Compiler.php:2080 #30 Leafo\ScssPhp\Compiler:compileChild in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/vendor/leafo/scssphp/src/Compiler.php:1690 #29 Leafo\ScssPhp\Compiler:compileChildrenNoReturn in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/vendor/leafo/scssphp/src/Compiler.php:399 #28 Leafo\ScssPhp\Compiler:compileRoot in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/vendor/leafo/scssphp/src/Compiler.php:253 #27 Leafo\ScssPhp\Compiler:compile in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/classes/Gantry/Component/Stylesheet/ScssCompiler.php:117 #26 Gantry\Component\Stylesheet\ScssCompiler:compileFile in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/classes/Gantry/Component/Theme/ThemeTrait.php:238 #25 Gantry\Framework\Theme:css in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/classes/Gantry/Component/Content/Block/HtmlBlock.php:85 #24 Gantry\Component\Content\Block\HtmlBlock:getStyles in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/classes/Gantry/Framework/Document.php:46 #23 Gantry\Framework\Document:registerStyles in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/classes/Gantry/Framework/Document.php:39 #22 Gantry\Framework\Document:registerAssets in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/classes/Gantry/Framework/Base/Platform.php:201 #21 Gantry\Framework\Base\Platform:finalize in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:675 #20 Twig_Template:getAttribute in /usr/www/users/cqqjld/wp-content/cache/gantry5/g5_hydrogen/twig/b2/b263ae1acb7a05c680baa6e7c4293f59baf027ab96ab68f7e0de6159731275b8.php:52 #19 __TwigTemplate_077f166eafa5f4c6625251ad8ab54c0528a5fd0521c6ea7ea8d0160abc913be2:block_page_footer in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:215 #18 Twig_Template:displayBlock in /usr/www/users/cqqjld/wp-content/cache/gantry5/g5_hydrogen/twig/99/996087daa33f805ce5a45b8e1cfe7313497e4e2f553e1b458e50b163eb2f0caa.php:139 #17 __TwigTemplate_f5e3c329e88d593656ff8b611ea8d2a028524ea38cf35b62a03e21110bcb887e:doDisplay in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:432 #16 Twig_Template:displayWithErrorHandling in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:403 #15 Twig_Template:display in /usr/www/users/cqqjld/wp-content/cache/gantry5/g5_hydrogen/twig/b2/b263ae1acb7a05c680baa6e7c4293f59baf027ab96ab68f7e0de6159731275b8.php:25 #14 __TwigTemplate_077f166eafa5f4c6625251ad8ab54c0528a5fd0521c6ea7ea8d0160abc913be2:doDisplay in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:432 #13 Twig_Template:displayWithErrorHandling in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:403 #12 Twig_Template:display in /usr/www/users/cqqjld/wp-content/cache/gantry5/g5_hydrogen/twig/bd/bd2205956e0979a70dc18e8b9afd34554e5661b1c40a96386b3c5591a434c6df.php:29 #11 __TwigTemplate_935735720bab9f2fd966b3cb46e43af62bde00b116905c7660c61bf978781026:doDisplay in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:432 #10 Twig_Template:displayWithErrorHandling in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:403 #9 Twig_Template:display in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:411 #8 Twig_Template:render in /usr/www/users/cqqjld/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Environment.php:362 #7 Twig_Environment:render in /usr/www/users/cqqjld/wp-content/plugins/timber-library/lib/Loader.php:74 #6 Timber\Loader:render in /usr/www/users/cqqjld/wp-content/plugins/timber-library/lib/Timber.php:333 #5 Timber\Timber:compile in /usr/www/users/cqqjld/wp-content/plugins/timber-library/lib/Timber.php:377 #4 Timber\Timber:fetch in /usr/www/users/cqqjld/wp-content/plugins/timber-library/lib/Timber.php:404 #3 Timber\Timber:render in /usr/www/users/cqqjld/wp-content/themes/g5_hydrogen/single.php:31 #2 include in /usr/www/users/cqqjld/wp-includes/template-loader.php:78 #1 require_once in /usr/www/users/cqqjld/wp-blog-header.php:19 #0 require in /usr/www/users/cqqjld/index.php:17
Stack frames (50)
49
Twig_Error_Runtime
/usr/www/users/cqqjld/wp-content/plugins/gantry5/engines/nucleus/views/partials/page.html.twig12
48
Leafo\ScssPhp\Exception\RangeException
/vendor/leafo/scssphp/src/Util.php54
47
Leafo\ScssPhp\Util checkRange
/vendor/leafo/scssphp/src/Compiler.php5296
46
Leafo\ScssPhp\Compiler libLighten
/vendor/leafo/scssphp/src/Compiler.php4328
45
call_user_func
/vendor/leafo/scssphp/src/Compiler.php4328
44
Leafo\ScssPhp\Compiler callNativeFunction
/vendor/leafo/scssphp/src/Compiler.php2755
43
Leafo\ScssPhp\Compiler fncall
/vendor/leafo/scssphp/src/Compiler.php2727
42
Leafo\ScssPhp\Compiler reduce
/vendor/leafo/scssphp/src/Compiler.php2693
41
Leafo\ScssPhp\Compiler reduce
/vendor/leafo/scssphp/src/Compiler.php2164
40
Leafo\ScssPhp\Compiler compileChild
/vendor/leafo/scssphp/src/Compiler.php1690
39
Leafo\ScssPhp\Compiler compileChildrenNoReturn
/vendor/leafo/scssphp/src/Compiler.php1334
38
Leafo\ScssPhp\Compiler compileBlock
/vendor/leafo/scssphp/src/Compiler.php2098
37
Leafo\ScssPhp\Compiler compileChild
/vendor/leafo/scssphp/src/Compiler.php1690
36
Leafo\ScssPhp\Compiler compileChildrenNoReturn
/vendor/leafo/scssphp/src/Compiler.php1334
35
Leafo\ScssPhp\Compiler compileBlock
/vendor/leafo/scssphp/src/Compiler.php2098
34
Leafo\ScssPhp\Compiler compileChild
/vendor/leafo/scssphp/src/Compiler.php1690
33
Leafo\ScssPhp\Compiler compileChildrenNoReturn
/classes/Gantry/Component/Stylesheet/Scss/Compiler.php426
32
Gantry\Component\Stylesheet\Scss\Compiler importFile
/vendor/leafo/scssphp/src/Compiler.php2009
31
Leafo\ScssPhp\Compiler compileImport
/vendor/leafo/scssphp/src/Compiler.php2080
30
Leafo\ScssPhp\Compiler compileChild
/vendor/leafo/scssphp/src/Compiler.php1690
29
Leafo\ScssPhp\Compiler compileChildrenNoReturn
/vendor/leafo/scssphp/src/Compiler.php399
28
Leafo\ScssPhp\Compiler compileRoot
/vendor/leafo/scssphp/src/Compiler.php253
27
Leafo\ScssPhp\Compiler compile
/classes/Gantry/Component/Stylesheet/ScssCompiler.php117
26
Gantry\Component\Stylesheet\ScssCompiler compileFile
/classes/Gantry/Component/Theme/ThemeTrait.php238
25
Gantry\Framework\Theme css
/classes/Gantry/Component/Content/Block/HtmlBlock.php85
24
Gantry\Component\Content\Block\HtmlBlock getStyles
/classes/Gantry/Framework/Document.php46
23
Gantry\Framework\Document registerStyles
/classes/Gantry/Framework/Document.php39
22
Gantry\Framework\Document registerAssets
/classes/Gantry/Framework/Base/Platform.php201
21
Gantry\Framework\Base\Platform finalize
/vendor/twig/twig/lib/Twig/Template.php675
20
Twig_Template getAttribute
/usr/www/users/cqqjld/wp-content/cache/gantry5/g5_hydrogen/twig/b2/b263ae1acb7a05c680baa6e7c4293f59baf027ab96ab68f7e0de6159731275b8.php52
19
__TwigTemplate_077f166eafa5f4c6625251ad8ab54c0528a5fd0521c6ea7ea8d0160abc913be2 block_page_footer
/vendor/twig/twig/lib/Twig/Template.php215
18
Twig_Template displayBlock
/usr/www/users/cqqjld/wp-content/cache/gantry5/g5_hydrogen/twig/99/996087daa33f805ce5a45b8e1cfe7313497e4e2f553e1b458e50b163eb2f0caa.php139
17
__TwigTemplate_f5e3c329e88d593656ff8b611ea8d2a028524ea38cf35b62a03e21110bcb887e doDisplay
/vendor/twig/twig/lib/Twig/Template.php432
16
Twig_Template displayWithErrorHandling
/vendor/twig/twig/lib/Twig/Template.php403
15
Twig_Template display
/usr/www/users/cqqjld/wp-content/cache/gantry5/g5_hydrogen/twig/b2/b263ae1acb7a05c680baa6e7c4293f59baf027ab96ab68f7e0de6159731275b8.php25
14
__TwigTemplate_077f166eafa5f4c6625251ad8ab54c0528a5fd0521c6ea7ea8d0160abc913be2 doDisplay
/vendor/twig/twig/lib/Twig/Template.php432
13
Twig_Template displayWithErrorHandling
/vendor/twig/twig/lib/Twig/Template.php403
12
Twig_Template display
/usr/www/users/cqqjld/wp-content/cache/gantry5/g5_hydrogen/twig/bd/bd2205956e0979a70dc18e8b9afd34554e5661b1c40a96386b3c5591a434c6df.php29
11
__TwigTemplate_935735720bab9f2fd966b3cb46e43af62bde00b116905c7660c61bf978781026 doDisplay
/vendor/twig/twig/lib/Twig/Template.php432
10
Twig_Template displayWithErrorHandling
/vendor/twig/twig/lib/Twig/Template.php403
9
Twig_Template display
/vendor/twig/twig/lib/Twig/Template.php411
8
Twig_Template render
/vendor/twig/twig/lib/Twig/Environment.php362
7
Twig_Environment render
/usr/www/users/cqqjld/wp-content/plugins/timber-library/lib/Loader.php74
6
Timber\Loader render
/usr/www/users/cqqjld/wp-content/plugins/timber-library/lib/Timber.php333
5
Timber\Timber compile
/usr/www/users/cqqjld/wp-content/plugins/timber-library/lib/Timber.php377
4
Timber\Timber fetch
/usr/www/users/cqqjld/wp-content/plugins/timber-library/lib/Timber.php404
3
Timber\Timber render
/usr/www/users/cqqjld/wp-content/themes/g5_hydrogen/single.php31
2
include
/usr/www/users/cqqjld/wp-includes/template-loader.php78
1
require_once
/usr/www/users/cqqjld/wp-blog-header.php19
0
require
/usr/www/users/cqqjld/index.php17
{% extends "@nucleus/page.html.twig" %}
 
{% block page_head -%}
    {% if page_head %}
        {{ page_head|raw }}
    {% else %}
        {{ parent() }}
    {% endif %}
{%- endblock %}
 
{% block page_footer %}
    {% do gantry.platform.finalize() %}
    {{ wp_footer|raw }}
{% endblock %}
 
     * @throws \Leafo\ScssPhp\Exception\RangeException
     */
    public static function checkRange($name, Range $range, $value, $unit = '')
    {
        $val = $value[1];
        $grace = new Range(-0.00001, 0.00001);
 
        if ($range->includes($val)) {
            return $val;
        }
 
        if ($grace->includes($val - $range->first)) {
            return $range->first;
        }
 
        if ($grace->includes($val - $range->last)) {
            return $range->last;
        }
 
        throw new RangeException("$name {$val} must be between {$range->first} and {$range->last}$unit");
    }
 
    /**
     * Encode URI component
     *
     * @param string $string
     *
     * @return string
     */
    public static function encodeURIComponent($string)
    {
        $revert = ['%21' => '!', '%2A' => '*', '%27' => "'", '%28' => '(', '%29' => ')'];
 
        return strtr(rawurlencode($string), $revert);
    }
}
 
Exception message: amount 205 must be between 0 and 100%
            $out[4] = $color[4];
        }
 
        return $out;
    }
 
    protected static $libAdjustHue = ['color', 'degrees'];
    protected function libAdjustHue($args)
    {
        $color = $this->assertColor($args[0]);
        $degrees = $this->assertNumber($args[1]);
 
        return $this->adjustHsl($color, 1, $degrees);
    }
 
    protected static $libLighten = ['color', 'amount'];
    protected function libLighten($args)
    {
        $color = $this->assertColor($args[0]);
        $amount = Util::checkRange('amount', new Range(0, 100), $args[1], '%');
 
        return $this->adjustHsl($color, 3, $amount);
    }
 
    protected static $libDarken = ['color', 'amount'];
    protected function libDarken($args)
    {
        $color = $this->assertColor($args[0]);
        $amount = Util::checkRange('amount', new Range(0, 100), $args[1], '%');
 
        return $this->adjustHsl($color, 3, -$amount);
    }
 
    protected static $libSaturate = ['color', 'amount'];
    protected function libSaturate($args)
    {
        $value = $args[0];
 
        if ($value[0] === Type::T_NUMBER) {
            return null;
 
        if (isset($this->userFunctions[$name])) {
            // see if we can find a user function
            list($f, $prototype) = $this->userFunctions[$name];
        } elseif (($f = $this->getBuiltinFunction($name)) && is_callable($f)) {
            $libName   = $f[1];
            $prototype = isset(static::$$libName) ? static::$$libName : null;
        } else {
            return false;
        }
 
        @list($sorted, $kwargs) = $this->sortArgs($prototype, $args);
 
        if ($name !== 'if' && $name !== 'call') {
            foreach ($sorted as &$val) {
                $val = $this->reduce($val, true);
            }
        }
 
        $returnValue = call_user_func($f, $sorted, $kwargs);
 
        if (! isset($returnValue)) {
            return false;
        }
 
        $returnValue = $this->coerceValue($returnValue);
 
        return true;
    }
 
    /**
     * Get built-in function
     *
     * @param string $name Normalized name
     *
     * @return array
     */
    protected function getBuiltinFunction($name)
    {
        $libName = 'lib' . preg_replace_callback(
 
        if (isset($this->userFunctions[$name])) {
            // see if we can find a user function
            list($f, $prototype) = $this->userFunctions[$name];
        } elseif (($f = $this->getBuiltinFunction($name)) && is_callable($f)) {
            $libName   = $f[1];
            $prototype = isset(static::$$libName) ? static::$$libName : null;
        } else {
            return false;
        }
 
        @list($sorted, $kwargs) = $this->sortArgs($prototype, $args);
 
        if ($name !== 'if' && $name !== 'call') {
            foreach ($sorted as &$val) {
                $val = $this->reduce($val, true);
            }
        }
 
        $returnValue = call_user_func($f, $sorted, $kwargs);
 
        if (! isset($returnValue)) {
            return false;
        }
 
        $returnValue = $this->coerceValue($returnValue);
 
        return true;
    }
 
    /**
     * Get built-in function
     *
     * @param string $name Normalized name
     *
     * @return array
     */
    protected function getBuiltinFunction($name)
    {
        $libName = 'lib' . preg_replace_callback(
        }
    }
 
    /**
     * Function caller
     *
     * @param string $name
     * @param array  $argValues
     *
     * @return array|null
     */
    protected function fncall($name, $argValues)
    {
        // SCSS @function
        if ($this->callScssFunction($name, $argValues, $returnValue)) {
            return $returnValue;
        }
 
        // native PHP functions
        if ($this->callNativeFunction($name, $argValues, $returnValue)) {
            return $returnValue;
        }
 
        // for CSS functions, simply flatten the arguments into a list
        $listArgs = [];
 
        foreach ((array) $argValues as $arg) {
            if (empty($arg[0])) {
                $listArgs[] = $this->reduce($arg[1]);
            }
        }
 
        return [Type::T_FUNCTION, $name, [Type::T_LIST, ',', $listArgs]];
    }
 
    /**
     * Normalize name
     *
     * @param string $name
     *
 
            case Type::T_STRING:
                foreach ($value[2] as &$item) {
                    if (is_array($item) || $item instanceof \ArrayAccess) {
                        $item = $this->reduce($item);
                    }
                }
 
                return $value;
 
            case Type::T_INTERPOLATE:
                $value[1] = $this->reduce($value[1]);
                if ($inExp) {
                    return $value[1];
                }
 
                return $value;
 
            case Type::T_FUNCTION_CALL:
                return $this->fncall($value[1], $value[2]);
 
            case Type::T_SELF:
                $selfSelector = $this->multiplySelectors($this->env);
                $selfSelector = $this->collapseSelectors($selfSelector, true);
                return $selfSelector;
 
            default:
                return $value;
        }
    }
 
    /**
     * Function caller
     *
     * @param string $name
     * @param array  $argValues
     *
     * @return array|null
     */
    protected function fncall($name, $argValues)
                if ($op === 'not') {
                    if ($inExp || $inParens) {
                        if ($exp === static::$false || $exp === static::$null) {
                            return static::$true;
                        }
 
                        return static::$false;
                    }
 
                    $op = $op . ' ';
                }
 
                return [Type::T_STRING, '', [$op, $exp]];
 
            case Type::T_VARIABLE:
                return $this->reduce($this->get($value[1]));
 
            case Type::T_LIST:
                foreach ($value[2] as &$item) {
                    $item = $this->reduce($item);
                }
 
                return $value;
 
            case Type::T_MAP:
                foreach ($value[1] as &$item) {
                    $item = $this->reduce($item);
                }
 
                foreach ($value[2] as &$item) {
                    $item = $this->reduce($item);
                }
 
                return $value;
 
            case Type::T_STRING:
                foreach ($value[2] as &$item) {
                    if (is_array($item) || $item instanceof \ArrayAccess) {
                        $item = $this->reduce($item);
                    }
                        // this is the case if more than one font is given: example: "font: 400 1em/1.3 arial,helvetica"
                        // we need to handle the first list element
                        $fontValue=&$value[2][0];
                    }
 
                    if ($fontValue[0] === Type::T_EXPRESSION && $fontValue[1] === '/') {
                        $fontValue = $this->expToString($fontValue);
                    } elseif ($fontValue[0] === Type::T_LIST) {
                        foreach ($fontValue[2] as &$item) {
                            if ($item[0] === Type::T_EXPRESSION && $item[1] === '/') {
                                $item = $this->expToString($item);
                            }
                        }
                    }
                }
 
                // 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);
 
                $out->lines[] = $this->formatter->property(
                    $compiledName,
                    $compiledValue
                );
                break;
 
            case Type::T_COMMENT:
                if ($out->type === Type::T_ROOT) {
                    $this->compileComment($child);
                    break;
                }
 
     * @param \Leafo\ScssPhp\Block                 $selfParent
     * @param string                               $traceName
     *
     * @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 && $stm[0] === TYPE::T_INCLUDE) {
                $stm['selfParent'] = $selfParent;
                $ret = $this->compileChild($stm, $out);
                unset($stm['selfParent']);
            } else {
                $ret = $this->compileChild($stm, $out);
            }
 
            if (isset($ret)) {
                $this->throwError('@return may only be used within a function');
 
                return;
            }
        }
 
        $this->popCallStack();
    }
 
 
    /**
     * evaluate media query : compile internal value keeping the structure inchanged
     *
     * @param array $queryList
     *
     * @return array
     */
                    break;
            }
 
            $this->scope->children[] = $annotation;
        }
 
        $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 childs of the same block
            if ($selfParentSelectors) {
                $block->selfParent->selectors = $selfParentSelectors;
            }
        }
 
        $this->formatter->stripSemicolon($out->lines);
 
        $this->popEnv();
    }
 
    /**
     * Compile root level comment
     *
     * @param array $block
     */
    protected function compileComment($block)
    {
        $out = $this->makeOutputBlock(Type::T_COMMENT);
 
                if (! $this->compileImport($rawPath, $out)) {
                    $out->lines[] = '@import ' . $this->compileValue($rawPath) . ';';
                }
                break;
 
            case Type::T_DIRECTIVE:
                $this->compileDirective($child[1]);
                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:
                if (! $this->charsetSeen) {
                    $this->charsetSeen = true;
 
                    $out->lines[] = '@charset ' . $this->compileValue($child[1]) . ';';
                }
                break;
 
            case Type::T_ASSIGN:
                list(, $name, $value) = $child;
 
                if ($name[0] === Type::T_VARIABLE) {
                    $flags = isset($child[3]) ? $child[3] : [];
                    $isDefault = in_array('!default', $flags);
                    $isGlobal = in_array('!global', $flags);
 
                    if ($isGlobal) {
                        $this->set($name[1], $this->reduce($value), false, $this->rootEnv, $value);
     * @param \Leafo\ScssPhp\Block                 $selfParent
     * @param string                               $traceName
     *
     * @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 && $stm[0] === TYPE::T_INCLUDE) {
                $stm['selfParent'] = $selfParent;
                $ret = $this->compileChild($stm, $out);
                unset($stm['selfParent']);
            } else {
                $ret = $this->compileChild($stm, $out);
            }
 
            if (isset($ret)) {
                $this->throwError('@return may only be used within a function');
 
                return;
            }
        }
 
        $this->popCallStack();
    }
 
 
    /**
     * evaluate media query : compile internal value keeping the structure inchanged
     *
     * @param array $queryList
     *
     * @return array
     */
                    break;
            }
 
            $this->scope->children[] = $annotation;
        }
 
        $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 childs of the same block
            if ($selfParentSelectors) {
                $block->selfParent->selectors = $selfParentSelectors;
            }
        }
 
        $this->formatter->stripSemicolon($out->lines);
 
        $this->popEnv();
    }
 
    /**
     * Compile root level comment
     *
     * @param array $block
     */
    protected function compileComment($block)
    {
        $out = $this->makeOutputBlock(Type::T_COMMENT);
 
                if (! $this->compileImport($rawPath, $out)) {
                    $out->lines[] = '@import ' . $this->compileValue($rawPath) . ';';
                }
                break;
 
            case Type::T_DIRECTIVE:
                $this->compileDirective($child[1]);
                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:
                if (! $this->charsetSeen) {
                    $this->charsetSeen = true;
 
                    $out->lines[] = '@charset ' . $this->compileValue($child[1]) . ';';
                }
                break;
 
            case Type::T_ASSIGN:
                list(, $name, $value) = $child;
 
                if ($name[0] === Type::T_VARIABLE) {
                    $flags = isset($child[3]) ? $child[3] : [];
                    $isDefault = in_array('!default', $flags);
                    $isGlobal = in_array('!global', $flags);
 
                    if ($isGlobal) {
                        $this->set($name[1], $this->reduce($value), false, $this->rootEnv, $value);
     * @param \Leafo\ScssPhp\Block                 $selfParent
     * @param string                               $traceName
     *
     * @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 && $stm[0] === TYPE::T_INCLUDE) {
                $stm['selfParent'] = $selfParent;
                $ret = $this->compileChild($stm, $out);
                unset($stm['selfParent']);
            } else {
                $ret = $this->compileChild($stm, $out);
            }
 
            if (isset($ret)) {
                $this->throwError('@return may only be used within a function');
 
                return;
            }
        }
 
        $this->popCallStack();
    }
 
 
    /**
     * evaluate media query : compile internal value keeping the structure inchanged
     *
     * @param array $queryList
     *
     * @return array
     */
        $locator = Gantry::instance()['locator'];
 
        // see if tree is cached
        $realPath = $locator($path);
 
        if (isset($this->importCache[$realPath])) {
            $this->handleImportLoop($realPath);
 
            $tree = $this->importCache[$realPath];
        } else {
            $code   = file_get_contents($realPath);
            $parser = $this->parserFactory($path);
            $tree   = $parser->parse($code);
 
            $this->importCache[$realPath] = $tree;
        }
 
        $dirname = dirname($path);
        array_unshift($this->importPaths, $dirname);
        $this->compileChildrenNoReturn($tree->children, $out);
        array_shift($this->importPaths);
    }
}
 
        return [empty($m1)? $m2 : $m1, $t1];
    }
 
    /**
     * Compile import; returns true if the value was something that could be imported
     *
     * @param array                                $rawPath
     * @param \Leafo\ScssPhp\Formatter\OutputBlock $out
     * @param boolean                              $once
     *
     * @return boolean
     */
    protected function compileImport($rawPath, OutputBlock $out, $once = false)
    {
        if ($rawPath[0] === Type::T_STRING) {
            $path = $this->compileStringContent($rawPath);
 
            if ($path = $this->findImport($path)) {
                if (! $once || ! in_array($path, $this->importedFiles)) {
                    $this->importFile($path, $out);
                    $this->importedFiles[] = $path;
                }
 
                return true;
            }
 
            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) {
                    return false;
                }
            }
            $this->sourceIndex = array_search($out->sourceName, $this->sourceNames);
 
            if ($this->sourceIndex === false) {
                $this->sourceIndex = null;
            }
        }
 
        switch ($child[0]) {
            case Type::T_SCSSPHP_IMPORT_ONCE:
                $rawPath = $this->reduce($child[1]);
 
                if (! $this->compileImport($rawPath, $out, true)) {
                    $out->lines[] = '@import ' . $this->compileValue($rawPath) . ';';
                }
                break;
 
            case Type::T_IMPORT:
                $rawPath = $this->reduce($child[1]);
 
                if (! $this->compileImport($rawPath, $out)) {
                    $out->lines[] = '@import ' . $this->compileValue($rawPath) . ';';
                }
                break;
 
            case Type::T_DIRECTIVE:
                $this->compileDirective($child[1]);
                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;
 
     * @param \Leafo\ScssPhp\Block                 $selfParent
     * @param string                               $traceName
     *
     * @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 && $stm[0] === TYPE::T_INCLUDE) {
                $stm['selfParent'] = $selfParent;
                $ret = $this->compileChild($stm, $out);
                unset($stm['selfParent']);
            } else {
                $ret = $this->compileChild($stm, $out);
            }
 
            if (isset($ret)) {
                $this->throwError('@return may only be used within a function');
 
                return;
            }
        }
 
        $this->popCallStack();
    }
 
 
    /**
     * evaluate media query : compile internal value keeping the structure inchanged
     *
     * @param array $queryList
     *
     * @return array
     */
            $out->sourceColumn = $this->env->block->sourceColumn;
        } else {
            $out->sourceName   = null;
            $out->sourceLine   = null;
            $out->sourceColumn = null;
        }
 
        return $out;
    }
 
    /**
     * Compile root
     *
     * @param \Leafo\ScssPhp\Block $rootBlock
     */
    protected function compileRoot(Block $rootBlock)
    {
        $this->rootBlock = $this->scope = $this->makeOutputBlock(Type::T_ROOT);
 
        $this->compileChildrenNoReturn($rootBlock->children, $this->scope);
        $this->flattenSelectors($this->scope);
        $this->missingSelectors();
    }
 
    /**
     * Report missing selectors
     */
    protected function missingSelectors()
    {
        foreach ($this->extends as $extend) {
            if (isset($extend[3])) {
                continue;
            }
 
            list($target, $origin, $block) = $extend;
 
            // ignore if !optional
            if ($block[2]) {
                continue;
            }
        $this->sourceIndex    = null;
        $this->sourceLine     = null;
        $this->sourceColumn   = null;
        $this->env            = null;
        $this->scope          = null;
        $this->storeEnv       = null;
        $this->charsetSeen    = null;
        $this->shouldEvaluate = null;
        $this->stderr         = fopen('php://stderr', 'w');
 
        $this->parser = $this->parserFactory($path);
        $tree = $this->parser->parse($code);
        $this->parser = null;
 
        $this->formatter = new $this->formatter();
        $this->rootBlock = null;
        $this->rootEnv   = $this->pushEnv($tree);
 
        $this->injectVariables($this->registeredVars);
        $this->compileRoot($tree);
        $this->popEnv();
 
        $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);
            }
        }
 
        $out = $this->formatter->format($this->scope, $sourceMapGenerator);
 
        if (! empty($out) && $this->sourceMap && $this->sourceMap !== self::SOURCE_MAP_NONE) {
            $sourceMap    = $sourceMapGenerator->generateJson();
            $sourceMapUrl = null;
 
            switch ($this->sourceMap) {
        try {
            $file->lock(false);
        } catch (\Exception $e) {
            // Another process has locked the file; we will check this in a bit.
        }
 
        if ($file->locked() === false) {
            // File was already locked by another process, lets avoid compiling the same file twice.
            return false;
        }
 
        // Set the lookup paths.
        $this->compiler->setBasePath($path);
        $this->compiler->setImportPaths([[$this, 'findImport']]);
 
        // Run the compiler.
        $this->compiler->setVariables($this->getVariables());
        $scss = '@import "' . $in . '.scss"';
        try {
            $css = $this->compiler->compile($scss);
        } catch (CompilerException $e) {
            throw new \RuntimeException("CSS Compilation on file '{$in}.scss' failed on error: {$e->getMessage()}", 500, $e);
        }
        if (strpos($css, $scss) === 0) {
            $css = '/* ' . $scss . ' */';
        }
 
        // Extract map from css and save it as separate file.
        if ($pos = strrpos($css, '/*# sourceMappingURL=')) {
            $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, null, -1);
            }
            unset($source);
 
            $mapFile = JsonFile::instance($path . '.map');
        return $this->compiler->reset();
    }
 
    /**
     * 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'])) {
                GANTRY_DEBUGGER && \Gantry\Debugger::startTimer("css-{$name}", "Compiling CSS: {$name}") && \Gantry\Debugger::addMessage("Compiling CSS: {$name}");
 
                $compiler->compileFile($name);
 
                GANTRY_DEBUGGER && \Gantry\Debugger::stopTimer("css-{$name}");
            }
 
            $this->cssCache[$name] = $compiler->getCssUrl($name);
        }
 
        return $this->cssCache[$name];
    }
 
    public function getCssVariables()
    {
        if ($this->preset) {
            $variables = $this->presets()->flatten($this->preset . '.styles', '-');
        } else {
            $gantry = self::gantry();
            $variables = $gantry['config']->flatten('styles', '-');
        }
 
        return $variables;
        $styles = $this->getAssetsInLocation('styles', $location);
 
        if (!$styles) {
            return [];
        }
 
        $gantry = Gantry::instance();
 
        /** @var Theme $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(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);
 
        'bootstrap.3' => 'registerBootstrap3',
        'mootools' => 'registerMootools',
        'mootools.framework' => 'registerMootools',
        'mootools.core' => 'registerMootools',
        'mootools.more' => 'registerMootoolsMore',
        'lightcase' => 'registerLightcase',
        'lightcase.init' => 'registerLightcaseInit',
    ];
 
    public static function registerAssets()
    {
        static::registerFrameworks();
        static::registerStyles();
        static::registerScripts('head');
        static::registerScripts('footer');
    }
 
    public static function registerStyles()
    {
        $styles = static::$stack[0]->getStyles();
 
        foreach ($styles as $style) {
            switch ($style[':type']) {
                case 'file':
                    $array = explode('?', $style['href']);
                    $href = array_shift($array);
                    $version = array_shift($array) ?: false;
                    $name = isset($style['id']) ? $style['id'] : basename($href, '.css');
                    if (strpos($version, '=')) {
                        $href .= '?' . $version;
                        $version = null;
                    }
                    \wp_enqueue_style($name, $href, array(), $version, $style['media']);
                    break;
                case 'inline':
                    $type = !empty($style['type']) ? $style['type'] : 'text/css';
                    self::$wp_styles[] = "<style type=\"{$type}\">{$style['content']}</style>";
                    break;
            }
        }
    protected static $script_info = [];
    protected static $availableFrameworks = [
        'jquery' => 'registerJquery',
        'jquery.framework' => 'registerJquery',
        'jquery.ui.core' => 'registerJqueryUiCore',
        'jquery.ui.sortable' => 'registerJqueryUiSortable',
        'bootstrap.2' => 'registerBootstrap2',
        'bootstrap.3' => 'registerBootstrap3',
        'mootools' => 'registerMootools',
        'mootools.framework' => 'registerMootools',
        'mootools.core' => 'registerMootools',
        'mootools.more' => 'registerMootoolsMore',
        'lightcase' => 'registerLightcase',
        'lightcase.init' => 'registerLightcaseInit',
    ];
 
    public static function registerAssets()
    {
        static::registerFrameworks();
        static::registerStyles();
        static::registerScripts('head');
        static::registerScripts('footer');
    }
 
    public static function registerStyles()
    {
        $styles = static::$stack[0]->getStyles();
 
        foreach ($styles as $style) {
            switch ($style[':type']) {
                case 'file':
                    $array = explode('?', $style['href']);
                    $href = array_shift($array);
                    $version = array_shift($array) ?: false;
                    $name = isset($style['id']) ? $style['id'] : basename($href, '.css');
                    if (strpos($version, '=')) {
                        $href .= '?' . $version;
                        $version = null;
                    }
                    \wp_enqueue_style($name, $href, array(), $version, $style['media']);
    public function getName()
    {
        return $this->name;
    }
 
    public function getEditor($name, $content = '', $width = null, $height = null)
    {
        return null;
    }
 
    public function filter($text)
    {
        return $text;
    }
 
    public function finalize()
    {
        $gantry = Gantry::instance();
 
        $gantry['document']->registerAssets();
    }
 
    public function call()
    {
        $args = func_get_args();
        $callable = array_shift($args);
        return is_callable($callable) ? call_user_func_array($callable, $args) : null;
    }
 
    public function authorize($action)
    {
        return true;
    }
 
    /**
     * @param array|string $dependencies
     * @return bool|null
     * @since 5.4.3
     */
    public function checkDependencies($dependencies)
            if ($ignoreStrictCheck || !$this->env->isStrictVariables()) {
                return;
            }
 
            throw new Twig_Error_Runtime(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_Sandbox')) {
            $this->env->getExtension('Twig_Extension_Sandbox')->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(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 5
            echo "        ";
            echo ($context["page_head"] ?? null);
            echo "
    ";
        } else {
            // line 7
            echo "        ";
            $this->displayParentBlock("page_head", $context, $blocks);
            echo "
    ";
        }
    }
 
    // line 11
    public function block_page_footer($context, array $blocks = array())
    {
        // line 12
        echo "    ";
        $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", array()), "finalize", array(), "method");
        // line 13
        echo "    ";
        echo ($context["wp_footer"] ?? null);
        echo "
";
    }
 
    public function getTemplateName()
    {
        return "partials/page.html.twig";
    }
 
    public function isTraitable()
    {
        return false;
    }
 
    public function getDebugInfo()
    {
        return array (  54 => 13,  51 => 12,  48 => 11,  40 => 7,  34 => 5,  32 => 4,  29 => 3,  11 => 1,);
 
        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 (Twig_Error $e) {
                if (!$e->getSourceContext()) {
                    $e->setSourceContext($template->getSourceContext());
                }
 
                // this is mostly useful for Twig_Error_Loader exceptions
                // see Twig_Error_Loader
                if (false === $e->getTemplateLine()) {
                    $e->setTemplateLine(-1);
                    $e->guess();
                }
 
                throw $e;
            } catch (Exception $e) {
                throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $template->getSourceContext(), $e);
            }
        } elseif (false !== $parent = $this->getParent($context)) {
            $parent->displayBlock($name, $context, array_merge($this->blocks, $blocks), false);
        } else {
            @trigger_error(sprintf('Silent display of undefined block "%s" in template "%s" is deprecated since version 1.29 and will throw an exception in 2.0. Use the "block(\'%s\') is defined" expression to test for block existence.', $name, $this->getTemplateName(), $name), E_USER_DEPRECATED);
        // line 58
        echo "    ";
        echo twig_join_filter($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", array()), "getHtml", array(0 => "body_bottom"), "method"), "
    ");
        echo "
";
        $context["body_bottom"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
        // line 61
        $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", array()), "addScript", array(0 => $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->urlFunc("gantry-assets://js/main.js"), 1 => 11, 2 => "footer"), "method");
        // line 65
        ob_start();
        // line 66
        echo "    ";
        $this->displayBlock('page_head', $context, $blocks);
        $context["page_head"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
        // line 71
        ob_start();
        // line 72
        echo "    ";
        $this->displayBlock('page_footer', $context, $blocks);
        // line 76
        echo "
    ";
        // line 77
        echo $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "debugger", array()), "render", array(), "method");
        echo "
";
        $context["page_footer"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
        // line 80
        $this->displayBlock('page', $context, $blocks);
    }
 
    // line 8
    public function block_content($context, array $blocks = array())
    {
        // line 9
        echo "        ";
    }
 
    // line 19
            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 = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for Twig_Error_Loader exceptions
            // see Twig_Error_Loader
            if (false === $e->getTemplateLine()) {
                $e->setTemplateLine(-1);
                $e->guess();
            }
 
            throw $e;
        } catch (Exception $e) {
            throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
        }
    }
 
    /**
     * Auto-generated method to display the template with the given context.
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     *
     * @internal
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        ob_start();
        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;
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);
 
        // line 1
        $this->parent = $this->loadTemplate("@nucleus/page.html.twig", "partials/page.html.twig", 1);
        $this->blocks = array(
            'page_head' => array($this, 'block_page_head'),
            'page_footer' => array($this, 'block_page_footer'),
        );
    }
 
    protected function doGetParent(array $context)
    {
        return "@nucleus/page.html.twig";
    }
 
    protected function doDisplay(array $context, array $blocks = array())
    {
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
    // line 3
    public function block_page_head($context, array $blocks = array())
    {
        // line 4
        if (($context["page_head"] ?? null)) {
            // line 5
            echo "        ";
            echo ($context["page_head"] ?? null);
            echo "
    ";
        } else {
            // line 7
            echo "        ";
            $this->displayParentBlock("page_head", $context, $blocks);
            echo "
    ";
        }
    }
            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 = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for Twig_Error_Loader exceptions
            // see Twig_Error_Loader
            if (false === $e->getTemplateLine()) {
                $e->setTemplateLine(-1);
                $e->guess();
            }
 
            throw $e;
        } catch (Exception $e) {
            throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
        }
    }
 
    /**
     * Auto-generated method to display the template with the given context.
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     *
     * @internal
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        ob_start();
        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;
        // line 1
        $this->parent = $this->loadTemplate("partials/page.html.twig", "single.html.twig", 1);
        $this->blocks = array(
            'content' => array($this, 'block_content'),
        );
    }
 
    protected function doGetParent(array $context)
    {
        return "partials/page.html.twig";
    }
 
    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 2
        $context["twigTemplate"] = "single.html.twig";
        // line 3
        $context["scope"] = "single";
        // line 1
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
    // line 5
    public function block_content($context, array $blocks = array())
    {
        // line 6
        echo "
    <div class=\"platform-content\">
        <div class=\"content-wrapper\">
            <section class=\"entry\">
 
                ";
        // line 11
        $this->loadTemplate(array(0 => (("partials/content-" . ($context["scope"] ?? null)) . ".html.twig"), 1 => "partials/content.html.twig"), "single.html.twig", 11)->display($context);
        // line 12
        echo "
            </section>
        </div> <!-- /content-wrapper -->
    </div>
 
            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 = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for Twig_Error_Loader exceptions
            // see Twig_Error_Loader
            if (false === $e->getTemplateLine()) {
                $e->setTemplateLine(-1);
                $e->guess();
            }
 
            throw $e;
        } catch (Exception $e) {
            throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
        }
    }
 
    /**
     * Auto-generated method to display the template with the given context.
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     *
     * @internal
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        ob_start();
        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 array An array of blocks
     *
     * @internal
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        ob_start();
        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 = array())
    {
        try {
        @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 $name    The template name
     * @param array  $context An array of parameters to pass to the template
     *
     * @return string The rendered template
     *
     * @throws Twig_Error_Loader  When the template cannot be found
     * @throws Twig_Error_Syntax  When an error occurred during compilation
     * @throws Twig_Error_Runtime When an error occurred during rendering
     */
    public function render($name, array $context = array())
    {
        return $this->loadTemplate($name)->render($context);
    }
 
    /**
     * Displays a template.
     *
     * @param string $name    The template name
     * @param array  $context An array of parameters to pass to the template
     *
     * @throws Twig_Error_Loader  When the template cannot be found
     * @throws Twig_Error_Syntax  When an error occurred during compilation
     * @throws Twig_Error_Runtime When an error occurred during rendering
     */
    public function display($name, array $context = array())
    {
        $this->loadTemplate($name)->display($context);
    }
 
    /**
     * Loads a template.
     *
        }
 
        $key = null;
        $output = false;
        if ( false !== $expires ) {
            ksort($data);
            $key = md5($file.json_encode($data));
            $output = $this->get_cache($key, self::CACHEGROUP, $cache_mode);
        }
 
        if ( false === $output || null === $output ) {
            $twig = $this->get_twig();
            if ( strlen($file) ) {
                $loader = $this->get_loader();
                $result = $loader->getCacheKey($file);
                do_action('timber_loader_render_file', $result);
            }
            $data = apply_filters('timber_loader_render_data', $data);
            $data = apply_filters('timber/loader/render_data', $data, $file);
            $output = $twig->render($file, $data);
        }
 
        if ( false !== $output && false !== $expires && null !== $key ) {
            $this->delete_cache();
            $this->set_cache($key, $output, self::CACHEGROUP, $expires, $cache_mode);
        }
        $output = apply_filters('timber_output', $output);
        return apply_filters('timber/output', $output, $data, $file);
    }
 
    protected function delete_cache() {
        Cleaner::delete_transients();
    }
 
    /**
     * Get first existing template.
     *
     * @param array|string $templates  Name(s) of the Twig template(s) to choose from.
     * @return string|bool             Name of chosen template, otherwise false.
     */
        if ( $via_render ) {
            $file = apply_filters('timber_render_file', $file);
        } else {
            $file = apply_filters('timber_compile_file', $file);
        }
 
        $output = false;
 
        if ($file !== false) {
            if ( is_null($data) ) {
                $data = array();
            }
 
            if ( $via_render ) {
                $data = apply_filters('timber_render_data', $data);
            } else {
                $data = apply_filters('timber_compile_data', $data);
            }
 
            $output = $loader->render($file, $data, $expires, $cache_mode);
        }
 
        do_action('timber_compile_done');
        return $output;
    }
 
    /**
     * Compile a string.
     *
     * @api
     * @example
     * ```php
     * $data = array(
     *     'username' => 'Jane Doe',
     * );
     *
     * $welcome = Timber::compile_string( 'Hi {{ username }}, I’m a string with a custom Twig variable', $data );
     * ```
     * @param string $string A string with Twig variables.
     * @param array  $data   Optional. An array of data to use in Twig template.
        $twig = $dummy_loader->get_twig();
        $template = $twig->createTemplate($string);
        return $template->render($data);
    }
 
    /**
     * Fetch function.
     *
     * @api
     * @param array|string $filenames  Name of the Twig file to render. If this is an array of files, Timber will
     *                                 render the first file that exists.
     * @param array        $data       Optional. An array of data to use in Twig template.
     * @param bool|int     $expires    Optional. In seconds. Use false to disable cache altogether. When passed an
     *                                 array, the first value is used for non-logged in visitors, the second for users.
     *                                 Default false.
     * @param string       $cache_mode Optional. Any of the cache mode constants defined in TimberLoader.
     * @return bool|string The returned output.
     */
    public static function fetch( $filenames, $data = array(), $expires = false, $cache_mode = Loader::CACHE_USE_DEFAULT ) {
        $output = self::compile($filenames, $data, $expires, $cache_mode, true);
        $output = apply_filters('timber_compile_result', $output);
        return $output;
    }
 
    /**
     * Render function.
     *
     * Passes data to a Twig file and echoes the output.
     *
     * @api
     * @example
     * ```php
     * $context = Timber::context();
     *
     * Timber::render( 'index.twig', $context );
     * ```
     * @param array|string $filenames  Name of the Twig file to render. If this is an array of files, Timber will
     *                                 render the first file that exists.
     * @param array        $data       Optional. An array of data to use in Twig template.
     * @param bool|int     $expires    Optional. In seconds. Use false to disable cache altogether. When passed an
     * Passes data to a Twig file and echoes the output.
     *
     * @api
     * @example
     * ```php
     * $context = Timber::context();
     *
     * Timber::render( 'index.twig', $context );
     * ```
     * @param array|string $filenames  Name of the Twig file to render. If this is an array of files, Timber will
     *                                 render the first file that exists.
     * @param array        $data       Optional. An array of data to use in Twig template.
     * @param bool|int     $expires    Optional. In seconds. Use false to disable cache altogether. When passed an
     *                                 array, the first value is used for non-logged in visitors, the second for users.
     *                                 Default false.
     * @param string       $cache_mode Optional. Any of the cache mode constants defined in TimberLoader.
     * @return bool|string The echoed output.
     */
    public static function render( $filenames, $data = array(), $expires = false, $cache_mode = Loader::CACHE_USE_DEFAULT ) {
        $output = self::fetch($filenames, $data, $expires, $cache_mode);
        echo $output;
        return $output;
    }
 
    /**
     * Render a string with Twig variables.
     *
     * @api
     * @example
     * ```php
     * $data = array(
     *     'username' => 'Jane Doe',
     * );
     *
     * Timber::render_string( 'Hi {{ username }}, I’m a string with a custom Twig variable', $data );
     * ```
     * @param string $string A string with Twig variables.
     * @param array  $data   An array of data to use in Twig template.
     * @return bool|string
     */
 
use Timber\Timber;
 
/*
 * The Template for displaying all single posts
 */
 
$gantry = Gantry\Framework\Gantry::instance();
$theme  = $gantry['theme'];
 
// We need to render contents of <head> before plugin content gets added.
$context              = Timber::get_context();
$context['page_head'] = $theme->render('partials/page_head.html.twig', $context);
 
$post = Timber::query_post();
 
$context['post'] = $post;
$context['wp_title'] .= ' - ' . $post->title();
 
Timber::render(['single-' . $post->ID . '.html.twig', 'single-' . $post->post_type . '.html.twig', 'single.html.twig'], $context);
 
    elseif ( is_single() && $template = get_single_template() ) :
    elseif ( is_page() && $template = get_page_template() ) :
    elseif ( is_singular() && $template = get_singular_template() ) :
    elseif ( is_category() && $template = get_category_template() ) :
    elseif ( is_tag() && $template = get_tag_template() ) :
    elseif ( is_author() && $template = get_author_template() ) :
    elseif ( is_date() && $template = get_date_template() ) :
    elseif ( is_archive() && $template = get_archive_template() ) :
    else :
        $template = get_index_template();
    endif;
    /**
     * Filters the path of the current template before including it.
     *
     * @since 3.0.0
     *
     * @param string $template The path of the template to include.
     */
    if ( $template = apply_filters( 'template_include', $template ) ) {
        include( $template );
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
endif;
 
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( ! isset( $wp_did_header ) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once( dirname( __FILE__ ) . '/wp-load.php' );
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once( ABSPATH . WPINC . '/template-loader.php' );
 
}
 
<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */
 
/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define( 'WP_USE_THEMES', true );
 
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
 

Environment & details:

empty
empty
empty
Key Value
_icl_current_language en
empty
Key Value
SERVER_SOFTWARE Apache
REQUEST_URI /jobs/%E2%80%8Bscrum-master/
PHP_FCGI_MAX_REQUESTS 100000
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPRC /home/httpd/php72-ini/cqqjld
PWD /home/httpd/cgi-bin
CONTENT_LENGTH 0
SCRIPT_NAME /index.php
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /jobs/​scrum-master/
REMOTE_PORT 36646
SCRIPT_FILENAME /usr/www/users/cqqjld/index.php
SERVER_ADMIN [email protected]
CONTEXT_DOCUMENT_ROOT /usr/www/users/cqqjld
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /usr/www/users/cqqjld
REMOTE_ADDR 172.69.63.143
SERVER_PORT 443
SERVER_ADDR 78.46.4.109
SERVER_NAME www.betterask.erni
SERVER_SIGNATURE <address>Apache Server at www.betterask.erni Port 443</address>
HTTP_CDN_LOOP cloudflare
HTTP_CF_CONNECTING_IP 3.227.2.109
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_CF_VISITOR {\"scheme\":\"https\"}
HTTP_X_FORWARDED_PROTO https
HTTP_CF_RAY 526a20b3eb1ecee0-IAD
HTTP_X_FORWARDED_FOR 3.227.2.109
HTTP_CF_IPCOUNTRY US
HTTP_ACCEPT_ENCODING gzip
HTTP_CONNECTION close
HTTP_HOST www.betterask.erni
SSL_TLS_SNI www.betterask.erni
HTTPS on
REDIRECT_STATUS 200
REDIRECT_SSL_TLS_SNI www.betterask.erni
REDIRECT_HTTPS on
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1571229904.3368
REQUEST_TIME 1571229904
argv Array ( )
argc 0
Key Value
PHP_FCGI_MAX_REQUESTS 100000
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPRC /home/httpd/php72-ini/cqqjld
PWD /home/httpd/cgi-bin
CONTENT_LENGTH 0
SCRIPT_NAME /index.php
REQUEST_URI /jobs/%E2%80%8Bscrum-master/
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /jobs/​scrum-master/
REMOTE_PORT 36646
SCRIPT_FILENAME /usr/www/users/cqqjld/index.php
SERVER_ADMIN [email protected]
CONTEXT_DOCUMENT_ROOT /usr/www/users/cqqjld
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /usr/www/users/cqqjld
REMOTE_ADDR 172.69.63.143
SERVER_PORT 443
SERVER_ADDR 78.46.4.109
SERVER_NAME www.betterask.erni
SERVER_SOFTWARE Apache
SERVER_SIGNATURE <address>Apache Server at www.betterask.erni Port 443</address>
HTTP_CDN_LOOP cloudflare
HTTP_CF_CONNECTING_IP 3.227.2.109
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_CF_VISITOR {"scheme":"https"}
HTTP_X_FORWARDED_PROTO https
HTTP_CF_RAY 526a20b3eb1ecee0-IAD
HTTP_X_FORWARDED_FOR 3.227.2.109
HTTP_CF_IPCOUNTRY US
HTTP_ACCEPT_ENCODING gzip
HTTP_CONNECTION close
HTTP_HOST www.betterask.erni
SSL_TLS_SNI www.betterask.erni
HTTPS on
REDIRECT_STATUS 200
REDIRECT_SSL_TLS_SNI www.betterask.erni
REDIRECT_HTTPS on
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1571229904.3368
REQUEST_TIME 1571229904
argv Array ( )
argc 0
0. Whoops\Handler\PrettyPageHandler