Twig_Error_Runtime
An exception has been thrown during the rendering of a template ("No menu selected"). Twig_Error_Runtime thrown with message "An exception has been thrown during the rendering of a template ("No menu selected")." Stacktrace: #38 Twig_Error_Runtime in /srv/bindings/0587b61493b349cfbfc42772926cadba/code/wp-content/plugins/gantry5/engines/nucleus/particles/menu.html.twig:2 #37 RuntimeException in /srv/bindings/0587b61493b349cfbfc42772926cadba/code/wp-content/plugins/gantry5/src/classes/Gantry/Component/Menu/AbstractMenu.php:130 #36 Gantry\Component\Menu\AbstractMenu:instance in /srv/bindings/0587b61493b349cfbfc42772926cadba/code/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:677 #35 Twig_Template:getAttribute in /srv/bindings/0587b61493b349cfbfc42772926cadba/files/tmp/cache/gantry5/g5_helium/twig/1f/1fe49dd0ea47b912fa2d093a0fff1b8cba4b285b241fe07c71feaf43c39179ed.php:20 #34 __TwigTemplate_cf69c63e87d87093731972240bb7637f1973e15d3931456ae713d46069447f88:doDisplay in /srv/bindings/0587b61493b349cfbfc42772926cadba/code/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:432 #33 Twig_Template:displayWithErrorHandling in /srv/bindings/0587b61493b349cfbfc42772926cadba/code/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:403 #32 Twig_Template:display in /srv/bindings/0587b61493b349cfbfc42772926cadba/files/tmp/cache/gantry5/g5_helium/twig/63/6315bd0886bfa8bc2fe062e510d25e203fc8a03e408a7a560b504f0bc81b8526.php:60 #31 __TwigTemplate_2f6f33dca3fdf0499bb7189f6c3d8bf4810867cf90fefc00fdb98725ced5cd93:doDisplay in /srv/bindings/0587b61493b349cfbfc42772926cadba/code/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:432 #30 Twig_Template:displayWithErrorHandling in /srv/bindings/0587b61493b349cfbfc42772926cadba/code/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:403 #29 Twig_Template:display in /srv/bindings/0587b61493b349cfbfc42772926cadba/files/tmp/cache/gantry5/g5_helium/twig/05/05ed7f9de1ec002418f9a39cc3aa7fd4abfaa90190e2d6a34f3dc045f655cb0f.php:64 #28 __TwigTemplate_a1f1e9811c1e0709da79320f096e73d82e5dc944bfb458d6d967cb4ad1447756:doDisplay in /srv/bindings/0587b61493b349cfbfc42772926cadba/code/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:432 #27 Twig_Template:displayWithErrorHandling in /srv/bindings/0587b61493b349cfbfc42772926cadba/code/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:403 #26 Twig_Template:display in /srv/bindings/0587b61493b349cfbfc42772926cadba/files/tmp/cache/gantry5/g5_helium/twig/ef/ef0566b3d2dd0af079cb4c9d452814ddc66c9a5f82c3a79c4a8853b2cacae460.php:47 #25 __TwigTemplate_99ff3422d586ded63370cd3c68a61d9228150619f364e07c98d8bfa60460d03d:doDisplay in /srv/bindings/0587b61493b349cfbfc42772926cadba/code/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:432 #24 Twig_Template:displayWithErrorHandling in /srv/bindings/0587b61493b349cfbfc42772926cadba/code/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:403 #23 Twig_Template:display in /srv/bindings/0587b61493b349cfbfc42772926cadba/files/tmp/cache/gantry5/g5_helium/twig/52/523007c79d7a840db00e4e975447bc4407b03a60da7d8e8b5695d54898c55cd7.php:59 #22 __TwigTemplate_60c3caa0094afa4a3c5f486ee3dece62d00ad7b2d68ebcf9f89f4e7b6634ed6e:doDisplay in /srv/bindings/0587b61493b349cfbfc42772926cadba/code/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:432 #21 Twig_Template:displayWithErrorHandling in /srv/bindings/0587b61493b349cfbfc42772926cadba/code/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:403 #20 Twig_Template:display in /srv/bindings/0587b61493b349cfbfc42772926cadba/files/tmp/cache/gantry5/g5_helium/twig/1b/1be563fbd40525ee10d3296e61e5f0454c8a118d8ee503189f5b7e37b7fdc787.php:190 #19 __TwigTemplate_0236485913cb90989385cc5062f990b13d43a7fd074678885c65fdfa7f8877d5:block_page_layout in /srv/bindings/0587b61493b349cfbfc42772926cadba/code/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:215 #18 Twig_Template:displayBlock in /srv/bindings/0587b61493b349cfbfc42772926cadba/files/tmp/cache/gantry5/g5_helium/twig/1b/1be563fbd40525ee10d3296e61e5f0454c8a118d8ee503189f5b7e37b7fdc787.php:77 #17 __TwigTemplate_0236485913cb90989385cc5062f990b13d43a7fd074678885c65fdfa7f8877d5:doDisplay in /srv/bindings/0587b61493b349cfbfc42772926cadba/code/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:432 #16 Twig_Template:displayWithErrorHandling in /srv/bindings/0587b61493b349cfbfc42772926cadba/code/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:403 #15 Twig_Template:display in /srv/bindings/0587b61493b349cfbfc42772926cadba/files/tmp/cache/gantry5/g5_helium/twig/f5/f54f113d7d5b245425aedb99d872a0852206a9dd437dcd934c2a39cea4f2bae6.php:25 #14 __TwigTemplate_808769c69d3736076d204a301320e9ce8aa957c9c59229a7ef34db53471a5501:doDisplay in /srv/bindings/0587b61493b349cfbfc42772926cadba/code/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:432 #13 Twig_Template:displayWithErrorHandling in /srv/bindings/0587b61493b349cfbfc42772926cadba/code/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:403 #12 Twig_Template:display in /srv/bindings/0587b61493b349cfbfc42772926cadba/files/tmp/cache/gantry5/g5_helium/twig/a4/a4e6a717fc6e1f3870683fde1a082b7366e05de0c2b62b46978ff0ded342e65a.php:29 #11 __TwigTemplate_49efd36fb327f0172f58ad5f7a022dabfddf0fc1582bd583bf6dce45abb456f6:doDisplay in /srv/bindings/0587b61493b349cfbfc42772926cadba/code/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:432 #10 Twig_Template:displayWithErrorHandling in /srv/bindings/0587b61493b349cfbfc42772926cadba/code/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:403 #9 Twig_Template:display in /srv/bindings/0587b61493b349cfbfc42772926cadba/code/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:411 #8 Twig_Template:render in /srv/bindings/0587b61493b349cfbfc42772926cadba/code/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Environment.php:363 #7 Twig_Environment:render in /srv/bindings/0587b61493b349cfbfc42772926cadba/code/wp-content/plugins/gantry5/src/vendor/timber/timber/lib/Loader.php:74 #6 Timber\Loader:render in /srv/bindings/0587b61493b349cfbfc42772926cadba/code/wp-content/plugins/gantry5/src/vendor/timber/timber/lib/Timber.php:318 #5 Timber\Timber:compile in /srv/bindings/0587b61493b349cfbfc42772926cadba/code/wp-content/plugins/gantry5/src/vendor/timber/timber/lib/Timber.php:362 #4 Timber\Timber:fetch in /srv/bindings/0587b61493b349cfbfc42772926cadba/code/wp-content/plugins/gantry5/src/vendor/timber/timber/lib/Timber.php:389 #3 Timber\Timber:render in /srv/bindings/0587b61493b349cfbfc42772926cadba/code/wp-content/themes/g5_helium/author.php:36 #2 include in /srv/bindings/0587b61493b349cfbfc42772926cadba/code/wp-includes/template-loader.php:74 #1 require_once in /srv/bindings/0587b61493b349cfbfc42772926cadba/code/wp-blog-header.php:19 #0 require in /srv/bindings/0587b61493b349cfbfc42772926cadba/code/index.php:17
Stack frames (39)
38
Twig_Error_Runtime
/
srv
/
bindings
/
0587b61493b349cfbfc42772926cadba
/
code
/
wp-content
/
plugins
/
gantry5
/
engines
/
nucleus
/
particles
/
menu.html.twig
2
37
RuntimeException
/
classes
/
Gantry
/
Component
/
Menu
/
AbstractMenu.php
130
36
Gantry
\
Component
\
Menu
\
AbstractMenu
instance
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
677
35
Twig_Template
getAttribute
/
srv
/
bindings
/
0587b61493b349cfbfc42772926cadba
/
files
/
tmp
/
cache
/
gantry5
/
g5_helium
/
twig
/
1f
/
1fe49dd0ea47b912fa2d093a0fff1b8cba4b285b241fe07c71feaf43c39179ed.php
20
34
__TwigTemplate_cf69c63e87d87093731972240bb7637f1973e15d3931456ae713d46069447f88
doDisplay
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
432
33
Twig_Template
displayWithErrorHandling
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
403
32
Twig_Template
display
/
srv
/
bindings
/
0587b61493b349cfbfc42772926cadba
/
files
/
tmp
/
cache
/
gantry5
/
g5_helium
/
twig
/
63
/
6315bd0886bfa8bc2fe062e510d25e203fc8a03e408a7a560b504f0bc81b8526.php
60
31
__TwigTemplate_2f6f33dca3fdf0499bb7189f6c3d8bf4810867cf90fefc00fdb98725ced5cd93
doDisplay
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
432
30
Twig_Template
displayWithErrorHandling
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
403
29
Twig_Template
display
/
srv
/
bindings
/
0587b61493b349cfbfc42772926cadba
/
files
/
tmp
/
cache
/
gantry5
/
g5_helium
/
twig
/
05
/
05ed7f9de1ec002418f9a39cc3aa7fd4abfaa90190e2d6a34f3dc045f655cb0f.php
64
28
__TwigTemplate_a1f1e9811c1e0709da79320f096e73d82e5dc944bfb458d6d967cb4ad1447756
doDisplay
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
432
27
Twig_Template
displayWithErrorHandling
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
403
26
Twig_Template
display
/
srv
/
bindings
/
0587b61493b349cfbfc42772926cadba
/
files
/
tmp
/
cache
/
gantry5
/
g5_helium
/
twig
/
ef
/
ef0566b3d2dd0af079cb4c9d452814ddc66c9a5f82c3a79c4a8853b2cacae460.php
47
25
__TwigTemplate_99ff3422d586ded63370cd3c68a61d9228150619f364e07c98d8bfa60460d03d
doDisplay
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
432
24
Twig_Template
displayWithErrorHandling
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
403
23
Twig_Template
display
/
srv
/
bindings
/
0587b61493b349cfbfc42772926cadba
/
files
/
tmp
/
cache
/
gantry5
/
g5_helium
/
twig
/
52
/
523007c79d7a840db00e4e975447bc4407b03a60da7d8e8b5695d54898c55cd7.php
59
22
__TwigTemplate_60c3caa0094afa4a3c5f486ee3dece62d00ad7b2d68ebcf9f89f4e7b6634ed6e
doDisplay
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
432
21
Twig_Template
displayWithErrorHandling
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
403
20
Twig_Template
display
/
srv
/
bindings
/
0587b61493b349cfbfc42772926cadba
/
files
/
tmp
/
cache
/
gantry5
/
g5_helium
/
twig
/
1b
/
1be563fbd40525ee10d3296e61e5f0454c8a118d8ee503189f5b7e37b7fdc787.php
190
19
__TwigTemplate_0236485913cb90989385cc5062f990b13d43a7fd074678885c65fdfa7f8877d5
block_page_layout
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
215
18
Twig_Template
displayBlock
/
srv
/
bindings
/
0587b61493b349cfbfc42772926cadba
/
files
/
tmp
/
cache
/
gantry5
/
g5_helium
/
twig
/
1b
/
1be563fbd40525ee10d3296e61e5f0454c8a118d8ee503189f5b7e37b7fdc787.php
77
17
__TwigTemplate_0236485913cb90989385cc5062f990b13d43a7fd074678885c65fdfa7f8877d5
doDisplay
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
432
16
Twig_Template
displayWithErrorHandling
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
403
15
Twig_Template
display
/
srv
/
bindings
/
0587b61493b349cfbfc42772926cadba
/
files
/
tmp
/
cache
/
gantry5
/
g5_helium
/
twig
/
f5
/
f54f113d7d5b245425aedb99d872a0852206a9dd437dcd934c2a39cea4f2bae6.php
25
14
__TwigTemplate_808769c69d3736076d204a301320e9ce8aa957c9c59229a7ef34db53471a5501
doDisplay
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
432
13
Twig_Template
displayWithErrorHandling
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
403
12
Twig_Template
display
/
srv
/
bindings
/
0587b61493b349cfbfc42772926cadba
/
files
/
tmp
/
cache
/
gantry5
/
g5_helium
/
twig
/
a4
/
a4e6a717fc6e1f3870683fde1a082b7366e05de0c2b62b46978ff0ded342e65a.php
29
11
__TwigTemplate_49efd36fb327f0172f58ad5f7a022dabfddf0fc1582bd583bf6dce45abb456f6
doDisplay
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
432
10
Twig_Template
displayWithErrorHandling
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
403
9
Twig_Template
display
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
411
8
Twig_Template
render
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Environment.php
363
7
Twig_Environment
render
/
vendor
/
timber
/
timber
/
lib
/
Loader.php
74
6
Timber
\
Loader
render
/
vendor
/
timber
/
timber
/
lib
/
Timber.php
318
5
Timber
\
Timber
compile
/
vendor
/
timber
/
timber
/
lib
/
Timber.php
362
4
Timber
\
Timber
fetch
/
vendor
/
timber
/
timber
/
lib
/
Timber.php
389
3
Timber
\
Timber
render
/
srv
/
bindings
/
0587b61493b349cfbfc42772926cadba
/
code
/
wp-content
/
themes
/
g5_helium
/
author.php
36
2
include
/
srv
/
bindings
/
0587b61493b349cfbfc42772926cadba
/
code
/
wp-includes
/
template-loader.php
74
1
require_once
/
srv
/
bindings
/
0587b61493b349cfbfc42772926cadba
/
code
/
wp-blog-header.php
19
0
require
/
srv
/
bindings
/
0587b61493b349cfbfc42772926cadba
/
code
/
index.php
17
{% try %}
{% set menu = gantry.menu.instance(particle) %}
{% catch %}
<div class="alert alert-error">{{ e.getMessage }}</div>
{% endtry %}

{% macro getCustomWidth(item, menu, mode, dropdown_type) -%}
    {%- if (item.width|default('auto') != 'auto') and not (dropdown_type == 'fullwidth' and item.level > 1) -%}
        {%- 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) %}
    {% set context = context|merge({ particle: item.options.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>
{% 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 %}

{% macro displayItem(item, menu, context, dropdown_type) %}
    {% import _self as SELF %}
    {% if item.type == 'particle' and not item.options.particle.enabled %} 
        {% set enabled = 0 %}
    {% endif %}
    {% if item.visible and item.enabled and enabled|default(1) %}
        {% set title = item.icon_only or item.link_title ? ' title="' ~ item.link_title|default(item.title)|e ~ '"' %}
        {% set label = item.icon_only and (item.image or item.icon) ? ' aria-label="' ~ item.title|e ~'"' %}
    public function instance(array $params = [], Config $menu = null)
    {
        $params = $params + $this->defaults;

        $menus = $this->getMenus();

        if (!$menus) {
            throw new \RuntimeException('Site does not have menus', 404);
        }
        if (empty($params['menu'])) {
            $params['menu'] = $this->getDefaultMenuName();
            if (!$params['menu'] && !empty($params['admin'])) {
                // In admin just select the first menu if there isn't default menu to be selected.
                $params['menu'] = reset($menus);
            };
        } elseif ($params['menu'] == '-active-') {
            $params['menu'] = $this->getActiveMenuName();
        }
        if (!$params['menu']) {
            throw new \RuntimeException('No menu selected', 404);
        }
        if (!in_array($params['menu'], $menus)) {
            throw new \RuntimeException('Menu not found', 404);
        }

        $instance = clone $this;
        $instance->params = $params;

        if ($menu) {
            $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);
Exception message: No menu selected
            }

            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());
            }
            @trigger_error($message, E_USER_DEPRECATED);
<?php
 
/* @particles/menu.html.twig */
class __TwigTemplate_cf69c63e87d87093731972240bb7637f1973e15d3931456ae713d46069447f88 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);
 
        $this->parent = false;
 
        $this->blocks = array(
        );
    }
 
    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        try {            // line 2
            $context["menu"] = $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "menu", array()), "instance", array(0 => ($context["particle"] ?? null)), "method");
        } catch (\Exception $e) {
            if ($context['gantry']->debug()) throw $e;
            GANTRY_DEBUGGER && method_exists('Gantry\Debugger', 'addException') && \Gantry\Debugger::addException($e);
            $context['e'] = $e;
            // line 4
            echo "<div class=\"alert alert-error\">";
            echo $this->getAttribute(($context["e"] ?? null), "getMessage", array());
            echo "</div>
";
        }
        // line 6
        echo "
";
        // line 14
        echo "
";
        // line 23
        echo "
";
        // line 32
            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;
                    echo "            ";
                    $context["particle"] = $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "config", array()), "getJoined", array(0 => ("particles." . $this->getAttribute(($context["segment"] ?? null), "subtype", array())), 1 => $this->getAttribute(($context["segment"] ?? null), "attributes", array())), "method");
                    // line 10
                    echo "        ";
                }
                // line 11
                echo "    ";
            }
            // line 12
            echo "
    ";
            // line 13
            ob_start();
            // line 14
            echo "        ";
            if ((($context["enabled"] ?? null) && ((null === $this->getAttribute($this->getAttribute(($context["segment"] ?? null), "attributes", array()), "enabled", array())) || $this->getAttribute($this->getAttribute(($context["segment"] ?? null), "attributes", array()), "enabled", array())))) {
                // line 15
                echo "            ";
                $this->loadTemplate(array(0 => (("particles/" . $this->getAttribute(($context["segment"] ?? null), "subtype", array())) . ".html.twig"), 1 => (("@particles/" . $this->getAttribute(                // line 16
($context["segment"] ?? null), "subtype", array())) . ".html.twig"), 2 => "@nucleus/content/missing.html.twig"), "@nucleus/content/particle.html.twig", 15)->display($context);
                // line 18
                echo "        ";
            }
            // line 19
            echo "    ";
            $context["html"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
            // line 20
            echo "    ";
            $context["html"] = twig_trim_filter(($context["html"] ?? null));
            // line 21
            echo "
    ";
            // line 22
            $context["classes"] = twig_trim_filter(((( !($context["inContent"] ?? null)) ? ("g-content g-particle ") : ("g-particle ")) . twig_join_filter($this->getAttribute(($context["segment"] ?? null), "classes", array()), " ")));
            // line 23
            if (($context["html"] ?? null)) {
                // line 24
                if ($this->getAttribute(($context["gantry"] ?? null), "debug", array())) {
                    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 = 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;
            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", array())) {
                    // line 11
                    echo "                ";
                    echo $this->getAttribute($context["segment"], "content", array());
                    echo "
            ";
                } else {
                    // line 13
                    echo "                ";
                    $this->loadTemplate(array(0 => (("@nucleus/content/" . $this->getAttribute($context["segment"], "type", array())) . ".html.twig"), 1 => (("@nucleus/layout/" . $this->getAttribute($context["segment"], "type", array())) . ".html.twig")), "@nucleus/layout/block.html.twig", 13)->display(array_merge($context, array("segments" => $this->getAttribute($context["segment"], "children", array()))));
                    // 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 = 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;
            echo "        ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["segments"] ?? null));
            $context['loop'] = array(
              '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", array())) . ".html.twig"), "@nucleus/layout/grid.html.twig", 7)->display(array_merge($context, array("segments" => $this->getAttribute($context["segment"], "children", array()))));
                // 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 Twig_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 = 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;
            echo "        ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["segments"] ?? null));
            $context['loop'] = array(
              '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 13
                echo "            ";
                $this->loadTemplate((("@nucleus/layout/" . $this->getAttribute($context["segment"], "type", array())) . ".html.twig"), "@nucleus/layout/section.html.twig", 13)->display(array_merge($context, array("segments" => $this->getAttribute($context["segment"], "children", array()))));
                // line 14
                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 15
            echo "    ";
        }
        $context["html"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
        // line 18
        if (($this->getAttribute($this->getAttribute(($context["segment"] ?? null), "attributes", array()), "sticky", array()) || 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 = 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 30
    public function block_page_layout($context, array $blocks = array())
    {
        // line 31
        echo "    ";
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["segments"] ?? null));
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        foreach ($context['_seq'] as $context["_key"] => $context["segment"]) {
            if (($this->getAttribute($context["segment"], "type", array()) != "offcanvas")) {
                // line 32
                echo "        ";
                $this->loadTemplate((("@nucleus/layout/" . $this->getAttribute($context["segment"], "type", array())) . ".html.twig"), "@nucleus/page.html.twig", 32)->display(array_merge($context, array("segments" => $this->getAttribute($context["segment"], "children", array()))));
                // line 33
                echo "    ";
                ++$context['loop']['index0'];
                ++$context['loop']['index'];
                $context['loop']['first'] = 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 34
        echo "    ";
    }
 
    // line 38
    public function block_page_top($context, array $blocks = array())
    {
        // line 39
        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 (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);
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['segment'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 18
        ob_start();
        // line 19
        echo "    ";
        $this->displayBlock('page_offcanvas', $context, $blocks);
        $context["page_offcanvas"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
        // line 26
        $context["page_offcanvas"] = ((twig_trim_filter(($context["page_offcanvas"] ?? null))) ? (twig_trim_filter(($context["page_offcanvas"] ?? null))) : (""));
        // line 27
        $context["offcanvas_position"] = ((($context["page_offcanvas"] ?? null)) ? ((($this->getAttribute($this->getAttribute(($context["offcanvas"] ?? null), "attributes", array(), "any", false, true), "position", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute(($context["offcanvas"] ?? null), "attributes", array(), "any", false, true), "position", array()), "g-offcanvas-left")) : ("g-offcanvas-left"))) : (""));
        // line 29
        ob_start();
        // line 30
        echo "    ";
        $this->displayBlock('page_layout', $context, $blocks);
        $context["page_layout"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
        // line 37
        ob_start();
        // line 38
        echo "    ";
        $this->displayBlock('page_top', $context, $blocks);
        // line 40
        echo "    ";
        echo twig_join_filter($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", array()), "getHtml", array(0 => "top"), "method"), "
    ");
        echo "
";
        $context["page_top"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
        // line 43
        ob_start();
        // line 44
        echo "    ";
        $this->displayBlock('page_bottom', $context, $blocks);
        // line 46
        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;
    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", "archive.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"] = "archive.html.twig";
        // line 3
        $context["scope"] = "archive";
        // 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=\"archive\">
 
            ";
        // line 11
        echo "            ";
        if ($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "config", array()), "get", array(0 => (("content." . ($context["scope"] ?? null)) . ".heading.enabled"), 1 => "0"), "method")) {
            // line 12
            echo "                <header class=\"page-header\">
                    <h1>
                        ";
            // line 14
            if ( !twig_test_empty($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "config", array()), "get", array(0 => (("content." . ($context["scope"] ?? null)) . ".heading.text")), "method"))) {
            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::get_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::get_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
     */
 */
 
global $wp_query;
 
$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);
 
$context['posts'] = Timber::get_posts();
 
if (isset($authordata)) {
    $author            = new \Timber\User($authordata->ID);
    $context['author'] = $author;
    $context['title']  = __('Author:', 'g5_helium') . ' ' . $author->name();
}
 
Timber::render(['author.html.twig', 'archive.html.twig', 'index.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
has_js 1
empty
Key Value
SERVER_SOFTWARE nginx/1.8.1
REQUEST_URI /author/daniela-calvo/
USER 0587b61493b349cfbfc42772926cadba
HOME /srv/bindings/0587b61493b349cfbfc42772926cadba
HTTP_X_VARNISH 3021880134
HTTP_X_TIMER S1555625835.242278,VS0,VS0
HTTP_X_REQUEST_UID f659f989351c736378cff61e70d741710d24df394a47d5d69f175e9f95fe2d26
HTTP_X_PROTO http://
HTTP_X_PANTHEON_CLIENT_IP 18.234.236.14
HTTP_X_FORWARDED_SERVER cache-mdw17375-MDW
HTTP_X_FORWARDED_FOR 18.234.236.14
HTTP_USER_AGENT_HTTPS OFF
HTTP_SURROGATE_CAPABILITY styx=\"ESI/1.0\"
HTTP_POLICY_DOC_SURROGATE_KEY subibaja.cr
HTTP_POLICY_DOC_CACHE HIT
HTTP_PCONTEXT_ZONE us-central1-a
HTTP_PANTHEON_PROTO_CHECKS true
HTTP_FASTLY_TMP_OBJ_TTL 30415611.936
HTTP_FASTLY_TMP_OBJ_GRACE 86400.000
HTTP_FASTLY_TEMP_XFF 18.234.236.14
HTTP_FASTLY_SSL 1
HTTP_FASTLY_ORIG_ACCEPT_ENCODING gzip
HTTP_FASTLY_FF joJRnthnxfSI3Bx2nmhJCvvRJUKHPCefwI36OSQhcE8=!DCA!cache-dca17763-DCA, joJRnthnxfSI3Bx2nmhJCvvRJUKHPCefwI36OSQhcE8=!DCA!cache-dca17774-DCA, joJRnthnxfSI3Bx2nmhJCvvRJUKHPCefwI36OSQhcE8=!MDW!cache-mdw17375-MDW, joJRnthnxfSI3Bx2nmhJCvvRJUKHPCefwI36OSQhcE8=!MDW!cache-mdw17378-MDW
HTTP_FASTLY_CLIENT_IP 18.234.236.14
HTTP_FASTLY_CLIENT 1
HTTP_FASTLY_CACHETYPE HIT
HTTP_COOKIE has_js=1
HTTP_CDN_LOOP Fastly, Fastly, Fastly, Fastly
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT_ENCODING gzip
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_HOST subibaja.cr
SCRIPT_FILENAME /srv/bindings/0587b61493b349cfbfc42772926cadba/code//index.php
HTTPS OFF
PATH_TRANSLATED /srv/bindings/0587b61493b349cfbfc42772926cadba/code
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME appserver-76721272.c.pantheon-dmz.internal
SERVER_PORT 15666
SERVER_ADDR 10.128.15.237
REMOTE_PORT 50842
REMOTE_ADDR 18.234.236.14
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /srv/bindings/0587b61493b349cfbfc42772926cadba/code
DOCUMENT_URI /index.php
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
PHP_VALUE default_mimetype=\"text/html\" default_charset=\"UTF-8\"
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1555625835.2969
REQUEST_TIME 1555625835
PRESSFLOW_SETTINGS {\"conf\":{\"pressflow_smart_start\":true,\"pantheon_binding\":\"0587b61493b349cfbfc42772926cadba\",\"pantheon_site_uuid\":\"adefd411-18c2-4cc9-8d03-b0d4e39dfb3b\",\"pantheon_environment\":\"live\",\"pantheon_tier\":\"live\",\"pantheon_index_host\":null,\"pantheon_index_port\":449,\"redis_client_host\":null,\"redis_client_port\":null,\"redis_client_password\":null,\"file_public_path\":\"wp-content/uploads\",\"file_private_path\":\"wp-content/uploads/private\",\"file_directory_path\":\"wp-content/uploads\",\"file_temporary_path\":\"/srv/bindings/0587b61493b349cfbfc42772926cadba/tmp\",\"file_directory_temp\":\"/srv/bindings/0587b61493b349cfbfc42772926cadba/tmp\",\"css_gzip_compression\":false,\"js_gzip_compression\":false,\"page_compression\":false,\"error_level\":0},\"databases\":{\"default\":{\"default\":{\"host\":\"10.128.0.95\",\"port\":14984,\"username\":\"pantheon\",\"password\":\"22b155ec11c245dfbd990dd2454f31e2\",\"database\":\"pantheon\",\"driver\":\"mysql\"}}},\"drupal_hash_salt\":\"e512f971b592177506f4e6b7ec1ab3266afec7f411ce259f3de2833ba36dd373\",\"config_directory_name\":\"config\"}
FRAMEWORK wordpress
DOCROOT /
FILEMOUNT wp-content/uploads
AUTH_KEY LP3jBPaZSmCYRPMgD7z6xtX5uycWffq0O8FlnWRlCnY=
SECURE_AUTH_KEY ATGSB98qxBOd0wOx7a1mWZmvGdoSBOKL4ZX3V3X/LFw=
LOGGED_IN_KEY JDG0ihJAShBeUuBrK6Hc/wWrPb4vr6m8bml2Tmk8xx4=
NONCE_KEY 3sB0XNIcqtYcpR078LZf2G1v82nhuUpdzc3l6UjaNkY=
AUTH_SALT 5xgXmKHRgZQVY0qvm5dhhw89zxqNwLQppgoEQND79Z0=
SECURE_AUTH_SALT XwAxmv/Hujj8RB0WEK6WJyeZjha5MSV8EPMzFzUoQSY=
LOGGED_IN_SALT M+xnZmmAPf4iNQAdUrbPjRbhJloGNJwawyDHqrx3F6w=
NONCE_SALT k1XZZi6aNPEVQbBvDZQIXNXfi0cMMWt5lDJDem69+5k=
php_version 7.0
DB_HOST 10.128.0.95
DB_PORT 14984
DB_USER pantheon
DB_PASSWORD 22b155ec11c245dfbd990dd2454f31e2
DB_NAME pantheon
PANTHEON_WPVULNDB_API_TOKEN dr7sD1Oe5h3sNQEZAPmY1kjG37hN8adIHeTjH0ZCHWg
PANTHEON_SITE adefd411-18c2-4cc9-8d03-b0d4e39dfb3b
PANTHEON_SITE_NAME subeybaja
PANTHEON_ENVIRONMENT live
PANTHEON_INFRASTRUCTURE_ENVIRONMENT live
PATH /srv/bindings/0587b61493b349cfbfc42772926cadba/bin:/srv/bindings/0587b61493b349cfbfc42772926cadba/php:/usr/local/bin:/bin:/usr/bin:/srv/bin
PHPRC /srv/bindings/0587b61493b349cfbfc42772926cadba/php.ini
PANTHEON_DEPLOYMENT_IDENTIFIER live_6
PANTHEON_ROLLING_TMP /srv/bindings/0587b61493b349cfbfc42772926cadba/tmp/rolling/live_6
Key Value
FRAMEWORK wordpress
DOCROOT /
FILEMOUNT wp-content/uploads
AUTH_KEY LP3jBPaZSmCYRPMgD7z6xtX5uycWffq0O8FlnWRlCnY=
SECURE_AUTH_KEY ATGSB98qxBOd0wOx7a1mWZmvGdoSBOKL4ZX3V3X/LFw=
LOGGED_IN_KEY JDG0ihJAShBeUuBrK6Hc/wWrPb4vr6m8bml2Tmk8xx4=
NONCE_KEY 3sB0XNIcqtYcpR078LZf2G1v82nhuUpdzc3l6UjaNkY=
AUTH_SALT 5xgXmKHRgZQVY0qvm5dhhw89zxqNwLQppgoEQND79Z0=
SECURE_AUTH_SALT XwAxmv/Hujj8RB0WEK6WJyeZjha5MSV8EPMzFzUoQSY=
LOGGED_IN_SALT M+xnZmmAPf4iNQAdUrbPjRbhJloGNJwawyDHqrx3F6w=
NONCE_SALT k1XZZi6aNPEVQbBvDZQIXNXfi0cMMWt5lDJDem69+5k=
php_version 7.0
DB_HOST 10.128.0.95
DB_PORT 14984
DB_USER pantheon
DB_PASSWORD 22b155ec11c245dfbd990dd2454f31e2
DB_NAME pantheon
PANTHEON_WPVULNDB_API_TOKEN dr7sD1Oe5h3sNQEZAPmY1kjG37hN8adIHeTjH0ZCHWg
PANTHEON_SITE adefd411-18c2-4cc9-8d03-b0d4e39dfb3b
PANTHEON_SITE_NAME subeybaja
PANTHEON_ENVIRONMENT live
PANTHEON_INFRASTRUCTURE_ENVIRONMENT live
PATH /srv/bindings/0587b61493b349cfbfc42772926cadba/bin:/srv/bindings/0587b61493b349cfbfc42772926cadba/php:/usr/local/bin:/bin:/usr/bin:/srv/bin
HOME /srv/bindings/0587b61493b349cfbfc42772926cadba
PHPRC /srv/bindings/0587b61493b349cfbfc42772926cadba/php.ini
PANTHEON_DEPLOYMENT_IDENTIFIER live_6
PANTHEON_ROLLING_TMP /srv/bindings/0587b61493b349cfbfc42772926cadba/tmp/rolling/live_6
0. Whoops\Handler\PrettyPageHandler