Twig \ Error \ RuntimeError
An exception has been thrown during the rendering of a template ("Undefined array key "id"").
Previous exceptions
  • Undefined array key "id" (2)
Twig\Error\RuntimeError thrown with message "An exception has been thrown during the rendering of a template ("Undefined array key "id"")." Stacktrace: #41 Twig\Error\RuntimeError in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/plugins/gantry5/engines/nucleus/particles/menu.html.twig:2 #40 Whoops\Exception\ErrorException in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/plugins/gantry5/src/classes/Gantry/Framework/Menu.php:312 #39 Gantry\Component\Whoops\SystemFacade:handleError in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/plugins/gantry5/src/classes/Gantry/Framework/Menu.php:312 #38 Gantry\Framework\Menu:bindMenuItems in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/plugins/gantry5/src/classes/Gantry/Framework/Menu.php:532 #37 Gantry\Framework\Menu:getList in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/plugins/gantry5/src/classes/Gantry/Component/Menu/AbstractMenu.php:316 #36 Gantry\Component\Menu\AbstractMenu:instance in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:702 #35 Twig\Template:getAttribute in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/cache/gantry5/g5_helium/twig/f1/f12df692f6f5e504d743ab80f3479f06f4c5b5c50488438ced5c46302f9c6689.php:32 #34 __TwigTemplate_3b2181c48a0115bc25fed7a09c8b4ae27d5a103d32b532ec4123a8c4a2c234bd:doDisplay in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #33 Twig\Template:displayWithErrorHandling in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #32 Twig\Template:display in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/cache/gantry5/g5_helium/twig/07/07a7a9626bee67176e01c99669a8acf69609eecf06bce2c6c02f9dab3a9b2f6c.php:85 #31 __TwigTemplate_535a9468c97fea7c31efca4d373aa49ed6c5a099b3380762eec542e38d757ea8:doDisplay in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #30 Twig\Template:displayWithErrorHandling in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #29 Twig\Template:display in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/cache/gantry5/g5_helium/twig/30/30f83b7c28676a95e9868fda0e43d0e2290470c35a0a5cc8015c816e585caa34.php:75 #28 __TwigTemplate_62d5ccda532f5b037dc7e15884b52878f629c6216a02894acec3b1808c356957:doDisplay in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #27 Twig\Template:displayWithErrorHandling in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #26 Twig\Template:display in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/cache/gantry5/g5_helium/twig/65/65d567b6ab4d686df96fac97fbdceaf9482ea8987297422831ae0fde3647778e.php:58 #25 __TwigTemplate_92bf36437653ae145260fc580edc00a7e3ce774a557c8f03e3b535f5200685ed:doDisplay in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #24 Twig\Template:displayWithErrorHandling in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #23 Twig\Template:display in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/cache/gantry5/g5_helium/twig/6b/6b8493c18357e68098cce3fa64f20d8ac23252aa5bc507356c878566df969b2d.php:71 #22 __TwigTemplate_347b898669b817a43bfbe0d5a8e151f67d7088f10f516dcec571b2bc44fa7355:doDisplay in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #21 Twig\Template:displayWithErrorHandling in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #20 Twig\Template:display in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/cache/gantry5/g5_helium/twig/6b/6be0863797899028af9692ba165ac7c5292be18a00562754a18d6740fa7e9425.php:212 #19 __TwigTemplate_bdf8d28c52fee31b60cbfdf89c729b6772c6b9d8f296b0f8f17d983c4fa61151:block_page_layout in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:214 #18 Twig\Template:displayBlock in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/cache/gantry5/g5_helium/twig/6b/6be0863797899028af9692ba165ac7c5292be18a00562754a18d6740fa7e9425.php:90 #17 __TwigTemplate_bdf8d28c52fee31b60cbfdf89c729b6772c6b9d8f296b0f8f17d983c4fa61151:doDisplay in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #16 Twig\Template:displayWithErrorHandling in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #15 Twig\Template:display in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/cache/gantry5/g5_helium/twig/0f/0fd3c7d9235c992308907aaa8924d14f44e78dc320c50fa0de2ac8e453afe910.php:36 #14 __TwigTemplate_f18387f3bf89af71d9607407a019958e74dbc852c898415a09e0e9d4ac9f4245:doDisplay in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #13 Twig\Template:displayWithErrorHandling in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #12 Twig\Template:display in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/cache/gantry5/g5_helium/twig/93/93bc2d52300f496b3dd96e629a897ca4a886bbbd4694e674f1098d8d8c6ee070.php:40 #11 __TwigTemplate_32de1faa54674d32db82ac5593882fdd7e889928a8fd8e39f5375f02cafb19b5:doDisplay in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #10 Twig\Template:displayWithErrorHandling in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #9 Twig\Template:display in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:432 #8 Twig\Template:render in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/TemplateWrapper.php:47 #7 Twig\TemplateWrapper:render in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/plugins/gantry5/vendor/timber/timber/lib/Loader.php:79 #6 Timber\Loader:render in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/plugins/gantry5/vendor/timber/timber/lib/Timber.php:334 #5 Timber\Timber:compile in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/plugins/gantry5/vendor/timber/timber/lib/Timber.php:383 #4 Timber\Timber:fetch in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/plugins/gantry5/vendor/timber/timber/lib/Timber.php:410 #3 Timber\Timber:render in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/themes/g5_helium/page.php:41 #2 include in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-includes/template-loader.php:106 #1 require_once in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-blog-header.php:19 #0 require in /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/index.php:17
Stack frames (42)
41
Twig\Error\RuntimeError
/engines/nucleus/particles/menu.html.twig2
40
Whoops\Exception\ErrorException
/src/classes/Gantry/Framework/Menu.php312
39
Gantry\Component\Whoops\SystemFacade handleError
/src/classes/Gantry/Framework/Menu.php312
38
Gantry\Framework\Menu bindMenuItems
/src/classes/Gantry/Framework/Menu.php532
37
Gantry\Framework\Menu getList
/src/classes/Gantry/Component/Menu/AbstractMenu.php316
36
Gantry\Component\Menu\AbstractMenu instance
/compat/vendor/twig/twig/src/Template.php702
35
Twig\Template getAttribute
/var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/cache/gantry5/g5_helium/twig/f1/f12df692f6f5e504d743ab80f3479f06f4c5b5c50488438ced5c46302f9c6689.php32
34
__TwigTemplate_3b2181c48a0115bc25fed7a09c8b4ae27d5a103d32b532ec4123a8c4a2c234bd doDisplay
/compat/vendor/twig/twig/src/Template.php453
33
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
32
Twig\Template display
/var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/cache/gantry5/g5_helium/twig/07/07a7a9626bee67176e01c99669a8acf69609eecf06bce2c6c02f9dab3a9b2f6c.php85
31
__TwigTemplate_535a9468c97fea7c31efca4d373aa49ed6c5a099b3380762eec542e38d757ea8 doDisplay
/compat/vendor/twig/twig/src/Template.php453
30
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
29
Twig\Template display
/var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/cache/gantry5/g5_helium/twig/30/30f83b7c28676a95e9868fda0e43d0e2290470c35a0a5cc8015c816e585caa34.php75
28
__TwigTemplate_62d5ccda532f5b037dc7e15884b52878f629c6216a02894acec3b1808c356957 doDisplay
/compat/vendor/twig/twig/src/Template.php453
27
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
26
Twig\Template display
/var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/cache/gantry5/g5_helium/twig/65/65d567b6ab4d686df96fac97fbdceaf9482ea8987297422831ae0fde3647778e.php58
25
__TwigTemplate_92bf36437653ae145260fc580edc00a7e3ce774a557c8f03e3b535f5200685ed doDisplay
/compat/vendor/twig/twig/src/Template.php453
24
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
23
Twig\Template display
/var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/cache/gantry5/g5_helium/twig/6b/6b8493c18357e68098cce3fa64f20d8ac23252aa5bc507356c878566df969b2d.php71
22
__TwigTemplate_347b898669b817a43bfbe0d5a8e151f67d7088f10f516dcec571b2bc44fa7355 doDisplay
/compat/vendor/twig/twig/src/Template.php453
21
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
20
Twig\Template display
/var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/cache/gantry5/g5_helium/twig/6b/6be0863797899028af9692ba165ac7c5292be18a00562754a18d6740fa7e9425.php212
19
__TwigTemplate_bdf8d28c52fee31b60cbfdf89c729b6772c6b9d8f296b0f8f17d983c4fa61151 block_page_layout
/compat/vendor/twig/twig/src/Template.php214
18
Twig\Template displayBlock
/var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/cache/gantry5/g5_helium/twig/6b/6be0863797899028af9692ba165ac7c5292be18a00562754a18d6740fa7e9425.php90
17
__TwigTemplate_bdf8d28c52fee31b60cbfdf89c729b6772c6b9d8f296b0f8f17d983c4fa61151 doDisplay
/compat/vendor/twig/twig/src/Template.php453
16
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
15
Twig\Template display
/var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/cache/gantry5/g5_helium/twig/0f/0fd3c7d9235c992308907aaa8924d14f44e78dc320c50fa0de2ac8e453afe910.php36
14
__TwigTemplate_f18387f3bf89af71d9607407a019958e74dbc852c898415a09e0e9d4ac9f4245 doDisplay
/compat/vendor/twig/twig/src/Template.php453
13
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
12
Twig\Template display
/var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/cache/gantry5/g5_helium/twig/93/93bc2d52300f496b3dd96e629a897ca4a886bbbd4694e674f1098d8d8c6ee070.php40
11
__TwigTemplate_32de1faa54674d32db82ac5593882fdd7e889928a8fd8e39f5375f02cafb19b5 doDisplay
/compat/vendor/twig/twig/src/Template.php453
10
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
9
Twig\Template display
/compat/vendor/twig/twig/src/Template.php432
8
Twig\Template render
/compat/vendor/twig/twig/src/TemplateWrapper.php47
7
Twig\TemplateWrapper render
/vendor/timber/timber/lib/Loader.php79
6
Timber\Loader render
/vendor/timber/timber/lib/Timber.php334
5
Timber\Timber compile
/vendor/timber/timber/lib/Timber.php383
4
Timber\Timber fetch
/vendor/timber/timber/lib/Timber.php410
3
Timber\Timber render
/var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-content/themes/g5_helium/page.php41
2
include
/var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-includes/template-loader.php106
1
require_once
/var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/wp-blog-header.php19
0
require
/var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/index.php17
{% try %}
    {% set menu = gantry.menu.instance(particle) %}
{% catch %}
    <div class="alert alert-error">{{ e.getMessage }}</div>
{% endtry %}
 
{% macro getCustomWidth(item, menu, mode, dropdown_type, start_level) -%}
    {%- if (item.width|default('auto') != 'auto') and not (dropdown_type == 'fullwidth' and item.level > start_level) -%}
        {%- if mode == 'item' %} style="position: relative;"
        {%- elseif mode == 'submenu' %} style="width:{{ item.width }};" data-g-item-width="{{ item.width }}"
        {%- endif %}
    {%- endif %}
{%- endmacro %}
 
{% macro displayParticle(item, context) %}
    {% try %}
    {% set in_particle = (context.in_particle ?? 0) + 1 %}
    {% if in_particle > 5 %}
        {% throw 500 'Particle loop detected' %}
    {% endif %}
 
    {% set context = context|merge({ particle: item.options.particle, in_particle: in_particle}) %}
    {% set classes = item.options.block.class %}
    <div class="menu-item-particle{{ classes ? ' ' ~ classes }}">
        {% include ['particles/' ~ item.particle ~ '.html.twig', '@particles/' ~ item.particle ~ '.html.twig']
        ignore missing with context only %}
    </div>
    {% catch %}
        <div class="alert alert-error">{{ e.getMessage }}</div>
    {% endtry %}
{% endmacro %}
 
{% macro displayTitle(item) %}
    {% if not item.icon_only or not (item.image or item.icon) %}
        <span class="g-menu-item-title">{{ item.title }}</span>
        {% if item.subtitle %}
            <span class="g-menu-item-subtitle">{{ item.subtitle }}</span>
        {% endif %}
    {% endif %}
{% endmacro %}
            } else {
                $path = $item['yaml_path'];
            }
 
            // First check if object_id is set. This information does not change in WP export/import.
            $object_id = isset($item['object_id']) ? $item['object_id'] : null;
            if ($object_id && isset($object_map[$object_id])) {
                // Object id matched!
                $matches = $object_map[$object_id];
                // TODO: guess which menu item should be used, but for now we just pick the first one.
                $id = reset($matches);
            } else {
                // Try to match Gantry menu path to the menu item.
                $route = trim(dirname("/{$path}"), '/\\');
                $slug = Gantry::basename($path);
 
                // We may already have parent path matched to WP menu item; using it allows us to narrow down choices.
                $parent = isset($lookup[$route]) ? $lookup[$route] : null;
                if ($parent) {
                    $item['parent_id'] = $parent['id'];
                }
 
                // Find all WP menu items matching the slug of the Gantry menu item.
                if (isset($name_map[$slug])) {
                    $matches = $name_map[$slug];
                    foreach ($matches as $test_id) {
                        // Use alias lookup table to find the menu item.
                        $test = $aliases[$test_id];
                        $parent_id = $test['parent'];
                        if ($parent_id) {
                            if ($parent && $parent_id === $parent['id']) {
                                // Menu item with parent found.
                                $id = $test['id'];
                                break;
                            }
                        } elseif (!$parent) {
                            // Menu item without parent found.
                            $id = $test['id'];
                            break;
                        }
Exception message: Undefined array key "id"
            } else {
                $path = $item['yaml_path'];
            }
 
            // First check if object_id is set. This information does not change in WP export/import.
            $object_id = isset($item['object_id']) ? $item['object_id'] : null;
            if ($object_id && isset($object_map[$object_id])) {
                // Object id matched!
                $matches = $object_map[$object_id];
                // TODO: guess which menu item should be used, but for now we just pick the first one.
                $id = reset($matches);
            } else {
                // Try to match Gantry menu path to the menu item.
                $route = trim(dirname("/{$path}"), '/\\');
                $slug = Gantry::basename($path);
 
                // We may already have parent path matched to WP menu item; using it allows us to narrow down choices.
                $parent = isset($lookup[$route]) ? $lookup[$route] : null;
                if ($parent) {
                    $item['parent_id'] = $parent['id'];
                }
 
                // Find all WP menu items matching the slug of the Gantry menu item.
                if (isset($name_map[$slug])) {
                    $matches = $name_map[$slug];
                    foreach ($matches as $test_id) {
                        // Use alias lookup table to find the menu item.
                        $test = $aliases[$test_id];
                        $parent_id = $test['parent'];
                        if ($parent_id) {
                            if ($parent && $parent_id === $parent['id']) {
                                // Menu item with parent found.
                                $id = $test['id'];
                                break;
                            }
                        } elseif (!$parent) {
                            // Menu item without parent found.
                            $id = $test['id'];
                            break;
                        }
        return $alias;
    }
 
    /**
     * Get a list of the menu items.
     *
     * @param array $params
     * @param array $items
     */
    public function getList(array $params, array $items)
    {
        $isAjax = !empty($params['POST']);
 
        $menuItems = $this->getItemsFromPlatform($params);
        if ($menuItems === null) {
            return;
        }
 
        if (!$isAjax) {
            $this->bindMenuItems($menuItems, $items);
        }
 
        $menuItems = $this->createMenuItems($menuItems, $items);
 
        $start   = $params['startLevel'];
        $max     = $params['maxLevels'];
        $end     = $max ? $start + $max - 1 : 0;
 
        // Get base menu item for this menu (defaults to active menu item).
        $base = $params['base'];
        $this->base = $this->calcBase($base);
        if ($this->base && $base === $this->base) {
            $this->root = $this->base;
        } else {
            $keys = array_reverse(array_keys($this->active));
            if ($start > 1) {
                $this->root = isset($keys[$start - 2]) ? $keys[$start - 2] : -1;
            }
        }
 
 
        if ($menu) {
            $menu->set('items', static::prepareMenuItems($menu->get('items'), $menu->get('ordering')));
            $instance->override = true;
            $instance->config = $menu;
        } else {
            $instance->config = null;
        }
 
        $config = $instance->config();
        $items = isset($config['items']) ? $config['items'] : [];
 
        // Create menu structure.
        $instance->init($params);
 
        $instance->pathMap = new Config([]);
 
        if ($config->get('settings.type') !== 'custom') {
            // Get menu items from the CMS.
            $instance->getList($params, $items);
 
        } else {
            // Add custom menu items.
            $instance->addCustom($params, $items);
        }
 
        // Sort menu items.
        $instance->sortAll();
 
        return $instance;
    }
 
    /**
     * Get menu configuration.
     *
     * @return Config
     */
    public function config()
    {
        if (!$this->config) {
            }
 
            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);
 
/* @particles/menu.html.twig */
class __TwigTemplate_3b2181c48a0115bc25fed7a09c8b4ae27d5a103d32b532ec4123a8c4a2c234bd extends \Twig\Template
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);
 
        $this->parent = false;
 
        $this->blocks = [
        ];
    }
 
    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 1
        try {            // line 2
            echo "    ";
            $context["menu"] = $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "menu", []), "instance", [0 => ($context["particle"] ?? null)], "method");
        } catch (\Exception $e) {
            if ($context['gantry']->debug()) throw $e;
            if (\GANTRY_DEBUGGER) \Gantry\Debugger::addException($e);
            $context['e'] = $e;
            // line 4
            echo "    <div class=\"alert alert-error\">";
            echo $this->getAttribute(($context["e"] ?? null), "getMessage", []);
            echo "</div>
";
        }
        // line 6
        echo "
";
        // line 14
        echo "
";
        // line 32
        echo "
";
        // line 41
            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;
        }
    }
 
    {
        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) {
                    echo "            ";
                    $context["particle"] = $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "config", []), "getJoined", [0 => ("particles." . $this->getAttribute(($context["segment"] ?? null), "subtype", [])), 1 => $this->getAttribute(($context["segment"] ?? null), "attributes", [])], "method");
                    // line 15
                    echo "        ";
                }
                // line 16
                echo "    ";
            }
            // line 17
            echo "
    ";
            // line 18
            ob_start(function () { return ''; });
            // line 19
            echo "        ";
            if ((($context["enabled"] ?? null) && ((null === $this->getAttribute($this->getAttribute(($context["segment"] ?? null), "attributes", []), "enabled", [])) || $this->getAttribute($this->getAttribute(($context["segment"] ?? null), "attributes", []), "enabled", [])))) {
                // line 20
                echo "            ";
                $this->loadTemplate([0 => (("particles/" . $this->getAttribute(($context["segment"] ?? null), "subtype", [])) . ".html.twig"), 1 => (("@particles/" . $this->getAttribute(                // line 21
($context["segment"] ?? null), "subtype", [])) . ".html.twig"), 2 => "@nucleus/content/missing.html.twig"], "@nucleus/content/particle.html.twig", 20)->display($context);
                // line 23
                echo "        ";
            }
            // line 24
            echo "    ";
            $context["html"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
            // line 25
            echo "    ";
            $context["html"] = twig_trim_filter(($context["html"] ?? null));
            // line 26
            echo "
    ";
            // line 27
            $context["classes"] = twig_trim_filter(((( !($context["inContent"] ?? null)) ? ("g-content g-particle ") : ("g-particle ")) . twig_join_filter($this->getAttribute(($context["segment"] ?? null), "classes", []), " ")));
            // line 28
            if (($context["html"] ?? null)) {
                // line 29
                if ($this->getAttribute(($context["gantry"] ?? null), "debug", [])) {
                    echo "<!-- START PARTICLE ";
                    echo ($context["id"] ?? null);
            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;
        }
    }
 
    {
        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) {
            if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
                $length = count($context['_seq']);
                $context['loop']['revindex0'] = $length - 1;
                $context['loop']['revindex'] = $length;
                $context['loop']['length'] = $length;
                $context['loop']['last'] = 1 === $length;
            }
            foreach ($context['_seq'] as $context["_key"] => $context["segment"]) {
                // line 10
                echo "            ";
                if ($this->getAttribute($context["segment"], "content", [])) {
                    // line 11
                    echo "                ";
                    echo $this->getAttribute($context["segment"], "content", []);
                    echo "
            ";
                } else {
                    // line 13
                    echo "                ";
                    $this->loadTemplate([0 => (("@nucleus/content/" . $this->getAttribute($context["segment"], "type", [])) . ".html.twig"), 1 => (("@nucleus/layout/" . $this->getAttribute($context["segment"], "type", [])) . ".html.twig")], "@nucleus/layout/block.html.twig", 13)->display(twig_array_merge($context, ["segments" => $this->getAttribute($context["segment"], "children", [])]));
                    // line 14
                    echo "            ";
                }
                // line 15
                echo "        ";
                ++$context['loop']['index0'];
                ++$context['loop']['index'];
                $context['loop']['first'] = false;
                if (isset($context['loop']['length'])) {
                    --$context['loop']['revindex0'];
                    --$context['loop']['revindex'];
                    $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                }
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['segment'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 16
            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 = [])
    {
        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;
        }
    }
 
    {
        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) {
            echo "        ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["segments"] ?? null));
            $context['loop'] = [
              'parent' => $context['_parent'],
              'index0' => 0,
              'index'  => 1,
              'first'  => true,
            ];
            if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
                $length = count($context['_seq']);
                $context['loop']['revindex0'] = $length - 1;
                $context['loop']['revindex'] = $length;
                $context['loop']['length'] = $length;
                $context['loop']['last'] = 1 === $length;
            }
            foreach ($context['_seq'] as $context["_key"] => $context["segment"]) {
                // line 7
                echo "            ";
                $this->loadTemplate((("@nucleus/layout/" . $this->getAttribute($context["segment"], "type", [])) . ".html.twig"), "@nucleus/layout/grid.html.twig", 7)->display(twig_array_merge($context, ["segments" => $this->getAttribute($context["segment"], "children", [])]));
                // line 8
                echo "        ";
                ++$context['loop']['index0'];
                ++$context['loop']['index'];
                $context['loop']['first'] = false;
                if (isset($context['loop']['length'])) {
                    --$context['loop']['revindex0'];
                    --$context['loop']['revindex'];
                    $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                }
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['segment'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 9
            echo "    ";
        }
        $context["html"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 12
        if (twig_trim_filter(($context["html"] ?? null))) {
            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;
        }
    }
 
    {
        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) {
            echo "        ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["segments"] ?? null));
            $context['loop'] = [
              'parent' => $context['_parent'],
              'index0' => 0,
              'index'  => 1,
              'first'  => true,
            ];
            if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
                $length = count($context['_seq']);
                $context['loop']['revindex0'] = $length - 1;
                $context['loop']['revindex'] = $length;
                $context['loop']['length'] = $length;
                $context['loop']['last'] = 1 === $length;
            }
            foreach ($context['_seq'] as $context["_key"] => $context["segment"]) {
                // line 14
                echo "            ";
                $this->loadTemplate((("@nucleus/layout/" . $this->getAttribute($context["segment"], "type", [])) . ".html.twig"), "@nucleus/layout/section.html.twig", 14)->display(twig_array_merge($context, ["segments" => $this->getAttribute($context["segment"], "children", [])]));
                // line 15
                echo "        ";
                ++$context['loop']['index0'];
                ++$context['loop']['index'];
                $context['loop']['first'] = false;
                if (isset($context['loop']['length'])) {
                    --$context['loop']['revindex0'];
                    --$context['loop']['revindex'];
                    $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                }
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['segment'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 16
            echo "    ";
        }
        $context["html"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 19
        if (($this->getAttribute($this->getAttribute(($context["segment"] ?? null), "attributes", []), "sticky", []) || twig_trim_filter(($context["html"] ?? null)))) {
            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;
        }
    }
 
    {
        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) {
        $context['loop'] = [
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        ];
        if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
            $length = count($context['_seq']);
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context["_key"] => $context["segment"]) {
            // line 34
            echo "        ";
            if (($this->getAttribute($context["segment"], "type", []) != "offcanvas")) {
                // line 35
                echo "            ";
                $this->loadTemplate((("@nucleus/layout/" . $this->getAttribute($context["segment"], "type", [])) . ".html.twig"), "@nucleus/page.html.twig", 35)->display(twig_array_merge($context, ["segments" => $this->getAttribute($context["segment"], "children", [])]));
                // line 36
                echo "        ";
            }
            // line 37
            echo "    ";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if (isset($context['loop']['length'])) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['segment'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 38
        echo "    ";
    }
 
        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);
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['segment'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 20
        ob_start(function () { return ''; });
        // line 21
        echo "    ";
        $this->displayBlock('page_offcanvas', $context, $blocks);
        $context["page_offcanvas"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 28
        $context["page_offcanvas"] = ((twig_trim_filter(($context["page_offcanvas"] ?? null))) ? (twig_trim_filter(($context["page_offcanvas"] ?? null))) : (""));
        // line 29
        $context["offcanvas_position"] = ((($context["page_offcanvas"] ?? null)) ? ((($this->getAttribute($this->getAttribute(($context["offcanvas"] ?? null), "attributes", [], "any", false, true), "position", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute(($context["offcanvas"] ?? null), "attributes", [], "any", false, true), "position", []), "g-offcanvas-left")) : ("g-offcanvas-left"))) : (""));
        // line 31
        ob_start(function () { return ''; });
        // line 32
        echo "    ";
        $this->displayBlock('page_layout', $context, $blocks);
        $context["page_layout"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 41
        ob_start(function () { return ''; });
        // line 42
        echo "    ";
        $this->displayBlock('page_top', $context, $blocks);
        // line 44
        echo "    ";
        echo twig_join_filter($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", []), "getHtml", [0 => "top"], "method"), "
    ");
        echo "
";
        $context["page_top"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 47
        ob_start(function () { return ''; });
        // line 48
        echo "    ";
        $this->displayBlock('page_bottom', $context, $blocks);
        // line 50
        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 = [])
    {
        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;
        }
    }
 
    {
        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) {
    public function __construct(Environment $env)
    {
        parent::__construct($env);
 
        $this->blocks = [
            'page_head' => [$this, 'block_page_head'],
            '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_head($context, array $blocks = [])
    {
        // 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 = [])
    {
        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;
        }
    }
 
    {
        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) {
        $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 = [])
    {
        // line 2
        $context["twigTemplate"] = "page.html.twig";
        // line 3
        $context["scope"] = "page";
        // line 1
        $this->parent = $this->loadTemplate("partials/page.html.twig", "page.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
    // line 5
    public function block_content($context, array $blocks = [])
    {
        // line 6
        echo "
    <div class=\"platform-content\">
        <div class=\"content-wrapper\">
            <section class=\"entry\">
 
                ";
        // line 11
        $this->loadTemplate([0 => (("partials/content-" . ($context["scope"] ?? null)) . ".html.twig"), 1 => "partials/content.html.twig"], "page.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 = [])
    {
        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;
        }
    }
 
    {
        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) {
    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 {
     * @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
     *
 
        $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);
            $template = $twig->load($file);
            $output = $template->render($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);
        } else {
            if ( is_array($filenames) ) {
                $filenames = implode(", ", $filenames);
            }
            Helper::error_log( 'Error loading your template files: '.$filenames.'. Make sure one of these files exists.' );
        }
 
        do_action('timber_compile_done');
        return $output;
    }
 
    /**
     * Compile a string.
     *
     * @api
     * @example
     * ```php
     * $data = array(
     *     'username' => 'Jane Doe',
     * );
        $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
     */
 *
 * To generate specific templates for your pages you can use:
 * /mytheme/views/page-mypage.html.twig
 * (which will still route through this PHP file)
 * OR
 * /mytheme/page-mypage.php
 * (in which case you'll want to duplicate this file and save to the above path)
 */
 
$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;
 
Timber::render(['page-' . $post->post_name . '.html.twig', 'page.html.twig'], $context);
 
            }
 
            break;
        }
    }
 
    if ( ! $template ) {
        $template = get_index_template();
    }
 
    /**
     * Filters the path of the current template before including it.
     *
     * @since 3.0.0
     *
     * @param string $template The path of the template to include.
     */
    $template = apply_filters( 'template_include', $template );
    if ( $template ) {
        include $template;
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
}
 
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( ! isset( $wp_did_header ) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once __DIR__ . '/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 __DIR__ . '/wp-blog-header.php';
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE Apache
REQUEST_URI /shop/impressum1/
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PP_CUSTOM_PHP_INI /var/www/vhosts/system/spvgg-germania-karlsruhe.de/etc/php.ini
PP_CUSTOM_PHP_CGI_INDEX php81-fastcgi-nc
SCRIPT_NAME /index.php
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.0
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /shop/impressum1/
REMOTE_PORT 51060
SCRIPT_FILENAME /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs/index.php
SERVER_ADMIN [no address given]
CONTEXT_DOCUMENT_ROOT /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /var/www/vhosts/hosting184177.a2fd0.netcup.net/spvgg-germania-karlsruhe.de/httpdocs
REMOTE_ADDR 18.97.9.173
SERVER_PORT 443
SERVER_ADDR 188.68.47.208
SERVER_NAME spvgg-germania-karlsruhe.de
SERVER_SIGNATURE <address>Apache Server at spvgg-germania-karlsruhe.de Port 443</address>
HTTP_ACCEPT_ENCODING br,gzip
HTTP_IF_MODIFIED_SINCE Mon, 09 Sep 2024 12:07:31 GMT
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_CONNECTION close
HTTP_X_ACCEL_INTERNAL /internal-nginx-static-location
HTTP_X_REAL_IP 18.97.9.173
HTTP_HOST spvgg-germania-karlsruhe.de
HTTPS on
PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY 0
PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY 0
HTTP_AUTHORIZATION
REDIRECT_STATUS 200
REDIRECT_HTTPS on
REDIRECT_PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY 0
REDIRECT_PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY 0
REDIRECT_HTTP_AUTHORIZATION
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1733282697.8173
REQUEST_TIME 1733282697
empty
0. Whoops\Handler\PrettyPageHandler