Twig \ Error \ RuntimeError
An exception has been thrown during the rendering of a template ("Undefined variable: target").
Previous exceptions
  • Undefined variable: target (8)
Twig\Error\RuntimeError thrown with message "An exception has been thrown during the rendering of a template ("Undefined variable: target")." Stacktrace: #43 Twig\Error\RuntimeError in /var/www/share/staging.grand-digital.de/htdocs/wp-content/themes/g5_minions/views/partials/content-page.html.twig:45 #42 Whoops\Exception\ErrorException in /var/www/share/staging.grand-digital.de/htdocs/wp-content/themes/g5_minions-child/blocks/block-leistungen-dont-use.php:30 #41 Gantry\Component\Whoops\SystemFacade:handleError in /var/www/share/staging.grand-digital.de/htdocs/wp-content/themes/g5_minions-child/blocks/block-leistungen-dont-use.php:30 #40 require in /var/www/share/staging.grand-digital.de/htdocs/wp-includes/template.php:772 #39 load_template in /var/www/share/staging.grand-digital.de/htdocs/wp-content/plugins/block-lab/php/blocks/class-loader.php:508 #38 Block_Lab\Blocks\Loader:block_template in /var/www/share/staging.grand-digital.de/htdocs/wp-content/plugins/block-lab/php/blocks/class-loader.php:412 #37 Block_Lab\Blocks\Loader:render_block_template in /var/www/share/staging.grand-digital.de/htdocs/wp-content/plugins/block-lab/php/blocks/class-loader.php:227 #36 Block_Lab\Blocks\Loader:Block_Lab\Blocks\{closure} in /var/www/share/staging.grand-digital.de/htdocs/wp-includes/class-wp-block.php:221 #35 WP_Block:render in /var/www/share/staging.grand-digital.de/htdocs/wp-includes/blocks.php:868 #34 render_block in /var/www/share/staging.grand-digital.de/htdocs/wp-includes/blocks.php:906 #33 do_blocks in /var/www/share/staging.grand-digital.de/htdocs/wp-includes/blocks/block.php:45 #32 render_block_core_block in /var/www/share/staging.grand-digital.de/htdocs/wp-includes/class-wp-block.php:221 #31 WP_Block:render in /var/www/share/staging.grand-digital.de/htdocs/wp-includes/blocks.php:868 #30 render_block in /var/www/share/staging.grand-digital.de/htdocs/wp-includes/blocks.php:906 #29 do_blocks in /var/www/share/staging.grand-digital.de/htdocs/wp-includes/class-wp-hook.php:303 #28 WP_Hook:apply_filters in /var/www/share/staging.grand-digital.de/htdocs/wp-includes/plugin.php:189 #27 apply_filters in /var/www/share/staging.grand-digital.de/htdocs/wp-content/plugins/gantry5/src/vendor/timber/timber/lib/Post.php:1228 #26 Timber\Post:content in /var/www/share/staging.grand-digital.de/htdocs/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:702 #25 Twig\Template:getAttribute in /var/www/share/staging.grand-digital.de/htdocs/wp-content/cache/gantry5/g5_minions-child/twig/7f/7fd1d0016e1021ef6626c9b260c5b6e40bbf1ffe2b9cfeeee1d637f7650ac4e4.php:148 #24 __TwigTemplate_e8a2a26a3c0e32639e067b79af7dc951a5b3fcd08035543704cd9dbe1a99ca52:block_content in /var/www/share/staging.grand-digital.de/htdocs/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:216 #23 Twig\Template:displayBlock in /var/www/share/staging.grand-digital.de/htdocs/wp-content/cache/gantry5/g5_minions-child/twig/7f/7fd1d0016e1021ef6626c9b260c5b6e40bbf1ffe2b9cfeeee1d637f7650ac4e4.php:41 #22 __TwigTemplate_e8a2a26a3c0e32639e067b79af7dc951a5b3fcd08035543704cd9dbe1a99ca52:doDisplay in /var/www/share/staging.grand-digital.de/htdocs/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:455 #21 Twig\Template:displayWithErrorHandling in /var/www/share/staging.grand-digital.de/htdocs/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:422 #20 Twig\Template:display in /var/www/share/staging.grand-digital.de/htdocs/wp-content/cache/gantry5/g5_minions-child/twig/21/2143570bdc39704a4969f461c8008d2fe0f5449c47d85352b857f6089460f2a6.php:54 #19 __TwigTemplate_f9fafbbc52fdb38226c54069a8075b091646d44f4efb1d3a21bcd51e5f0d1325:block_content in /var/www/share/staging.grand-digital.de/htdocs/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:216 #18 Twig\Template:displayBlock in /var/www/share/staging.grand-digital.de/htdocs/wp-content/cache/gantry5/g5_minions-child/twig/e4/e4ef80b594e0c29b4d42d00d4e5fea0e204ef8304b05834c3562c422ce49bdd7.php:55 #17 __TwigTemplate_1c11c458063797ffbb2d8be69460e456fc73b6059a4a62fa88272d9d1243c2ea:doDisplay in /var/www/share/staging.grand-digital.de/htdocs/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:455 #16 Twig\Template:displayWithErrorHandling in /var/www/share/staging.grand-digital.de/htdocs/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:422 #15 Twig\Template:display in /var/www/share/staging.grand-digital.de/htdocs/wp-content/cache/gantry5/g5_minions-child/twig/bd/bdf24bf597a953cd945ec4a22470851bcdfa5ade2d1bad30f4e567e86da3aa87.php:36 #14 __TwigTemplate_535954e4adc161ddf66fc97b55c4055b5fa25d27ec4c63e6820a98bf4e3abe72:doDisplay in /var/www/share/staging.grand-digital.de/htdocs/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:455 #13 Twig\Template:displayWithErrorHandling in /var/www/share/staging.grand-digital.de/htdocs/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:422 #12 Twig\Template:display in /var/www/share/staging.grand-digital.de/htdocs/wp-content/cache/gantry5/g5_minions-child/twig/21/2143570bdc39704a4969f461c8008d2fe0f5449c47d85352b857f6089460f2a6.php:40 #11 __TwigTemplate_f9fafbbc52fdb38226c54069a8075b091646d44f4efb1d3a21bcd51e5f0d1325:doDisplay in /var/www/share/staging.grand-digital.de/htdocs/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:455 #10 Twig\Template:displayWithErrorHandling in /var/www/share/staging.grand-digital.de/htdocs/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:422 #9 Twig\Template:display in /var/www/share/staging.grand-digital.de/htdocs/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:434 #8 Twig\Template:render in /var/www/share/staging.grand-digital.de/htdocs/wp-content/plugins/gantry5/src/vendor/twig/twig/src/TemplateWrapper.php:47 #7 Twig\TemplateWrapper:render in /var/www/share/staging.grand-digital.de/htdocs/wp-content/plugins/gantry5/src/vendor/timber/timber/lib/Loader.php:79 #6 Timber\Loader:render in /var/www/share/staging.grand-digital.de/htdocs/wp-content/plugins/gantry5/src/vendor/timber/timber/lib/Timber.php:334 #5 Timber\Timber:compile in /var/www/share/staging.grand-digital.de/htdocs/wp-content/plugins/gantry5/src/vendor/timber/timber/lib/Timber.php:383 #4 Timber\Timber:fetch in /var/www/share/staging.grand-digital.de/htdocs/wp-content/plugins/gantry5/src/vendor/timber/timber/lib/Timber.php:410 #3 Timber\Timber:render in /var/www/share/staging.grand-digital.de/htdocs/wp-content/themes/g5_minions/page.php:41 #2 include in /var/www/share/staging.grand-digital.de/htdocs/wp-includes/template-loader.php:106 #1 require_once in /var/www/share/staging.grand-digital.de/htdocs/wp-blog-header.php:19 #0 require in /var/www/share/staging.grand-digital.de/htdocs/index.php:17
Stack frames (44)
43
Twig\Error\RuntimeError
/var/www/share/staging.grand-digital.de/htdocs/wp-content/themes/g5_minions/views/partials/content-page.html.twig45
42
Whoops\Exception\ErrorException
/var/www/share/staging.grand-digital.de/htdocs/wp-content/themes/g5_minions-child/blocks/block-leistungen-dont-use.php30
41
Gantry\Component\Whoops\SystemFacade handleError
/var/www/share/staging.grand-digital.de/htdocs/wp-content/themes/g5_minions-child/blocks/block-leistungen-dont-use.php30
40
require
/var/www/share/staging.grand-digital.de/htdocs/wp-includes/template.php772
39
load_template
/var/www/share/staging.grand-digital.de/htdocs/wp-content/plugins/block-lab/php/blocks/class-loader.php508
38
Block_Lab\Blocks\Loader block_template
/var/www/share/staging.grand-digital.de/htdocs/wp-content/plugins/block-lab/php/blocks/class-loader.php412
37
Block_Lab\Blocks\Loader render_block_template
/var/www/share/staging.grand-digital.de/htdocs/wp-content/plugins/block-lab/php/blocks/class-loader.php227
36
Block_Lab\Blocks\Loader Block_Lab\Blocks\{closure}
/var/www/share/staging.grand-digital.de/htdocs/wp-includes/class-wp-block.php221
35
WP_Block render
/var/www/share/staging.grand-digital.de/htdocs/wp-includes/blocks.php868
34
render_block
/var/www/share/staging.grand-digital.de/htdocs/wp-includes/blocks.php906
33
do_blocks
/var/www/share/staging.grand-digital.de/htdocs/wp-includes/blocks/block.php45
32
render_block_core_block
/var/www/share/staging.grand-digital.de/htdocs/wp-includes/class-wp-block.php221
31
WP_Block render
/var/www/share/staging.grand-digital.de/htdocs/wp-includes/blocks.php868
30
render_block
/var/www/share/staging.grand-digital.de/htdocs/wp-includes/blocks.php906
29
do_blocks
/var/www/share/staging.grand-digital.de/htdocs/wp-includes/class-wp-hook.php303
28
WP_Hook apply_filters
/var/www/share/staging.grand-digital.de/htdocs/wp-includes/plugin.php189
27
apply_filters
/vendor/timber/timber/lib/Post.php1228
26
Timber\Post content
/vendor/twig/twig/src/Template.php702
25
Twig\Template getAttribute
/var/www/share/staging.grand-digital.de/htdocs/wp-content/cache/gantry5/g5_minions-child/twig/7f/7fd1d0016e1021ef6626c9b260c5b6e40bbf1ffe2b9cfeeee1d637f7650ac4e4.php148
24
__TwigTemplate_e8a2a26a3c0e32639e067b79af7dc951a5b3fcd08035543704cd9dbe1a99ca52 block_content
/vendor/twig/twig/src/Template.php216
23
Twig\Template displayBlock
/var/www/share/staging.grand-digital.de/htdocs/wp-content/cache/gantry5/g5_minions-child/twig/7f/7fd1d0016e1021ef6626c9b260c5b6e40bbf1ffe2b9cfeeee1d637f7650ac4e4.php41
22
__TwigTemplate_e8a2a26a3c0e32639e067b79af7dc951a5b3fcd08035543704cd9dbe1a99ca52 doDisplay
/vendor/twig/twig/src/Template.php455
21
Twig\Template displayWithErrorHandling
/vendor/twig/twig/src/Template.php422
20
Twig\Template display
/var/www/share/staging.grand-digital.de/htdocs/wp-content/cache/gantry5/g5_minions-child/twig/21/2143570bdc39704a4969f461c8008d2fe0f5449c47d85352b857f6089460f2a6.php54
19
__TwigTemplate_f9fafbbc52fdb38226c54069a8075b091646d44f4efb1d3a21bcd51e5f0d1325 block_content
/vendor/twig/twig/src/Template.php216
18
Twig\Template displayBlock
/var/www/share/staging.grand-digital.de/htdocs/wp-content/cache/gantry5/g5_minions-child/twig/e4/e4ef80b594e0c29b4d42d00d4e5fea0e204ef8304b05834c3562c422ce49bdd7.php55
17
__TwigTemplate_1c11c458063797ffbb2d8be69460e456fc73b6059a4a62fa88272d9d1243c2ea doDisplay
/vendor/twig/twig/src/Template.php455
16
Twig\Template displayWithErrorHandling
/vendor/twig/twig/src/Template.php422
15
Twig\Template display
/var/www/share/staging.grand-digital.de/htdocs/wp-content/cache/gantry5/g5_minions-child/twig/bd/bdf24bf597a953cd945ec4a22470851bcdfa5ade2d1bad30f4e567e86da3aa87.php36
14
__TwigTemplate_535954e4adc161ddf66fc97b55c4055b5fa25d27ec4c63e6820a98bf4e3abe72 doDisplay
/vendor/twig/twig/src/Template.php455
13
Twig\Template displayWithErrorHandling
/vendor/twig/twig/src/Template.php422
12
Twig\Template display
/var/www/share/staging.grand-digital.de/htdocs/wp-content/cache/gantry5/g5_minions-child/twig/21/2143570bdc39704a4969f461c8008d2fe0f5449c47d85352b857f6089460f2a6.php40
11
__TwigTemplate_f9fafbbc52fdb38226c54069a8075b091646d44f4efb1d3a21bcd51e5f0d1325 doDisplay
/vendor/twig/twig/src/Template.php455
10
Twig\Template displayWithErrorHandling
/vendor/twig/twig/src/Template.php422
9
Twig\Template display
/vendor/twig/twig/src/Template.php434
8
Twig\Template render
/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/share/staging.grand-digital.de/htdocs/wp-content/themes/g5_minions/page.php41
2
include
/var/www/share/staging.grand-digital.de/htdocs/wp-includes/template-loader.php106
1
require_once
/var/www/share/staging.grand-digital.de/htdocs/wp-blog-header.php19
0
require
/var/www/share/staging.grand-digital.de/htdocs/index.php17
        </section>
        {# End Entry Header #}
 
        {# Check if page is password protected #}
        {% if not function( 'post_password_required', post.ID ) %}
 
            {# Begin Entry Content #}
            <section class="entry-content">
 
                {# Begin Featured Image #}
                {% if gantry.config.get('content.' ~ scope ~ '.featured-image.enabled', '1') and post.thumbnail.src %}
                    {% set position = (gantry.config.get('content.' ~ scope ~ '.featured-image.position', 'none') == 'none') ? '' : 'float-' ~ gantry.config.get('content.' ~ scope ~ '.featured-image.position', 'none') %}
                    <a href="{{ post.link }}" class="post-thumbnail" aria-hidden="true">
                        <img src="{{ post.thumbnail.src|resize(gantry.config.get('content.' ~ scope ~ '.featured-image.width', '1200'), gantry.config.get('content.' ~ scope ~ '.featured-image.height', '350')) }}" class="featured-image tease-featured-image {{ position }}" alt="{{ post.title }}" />
                    </a>
                {% endif %}
                {# End Featured Image #}
 
                {# Begin Page Content #}
                {{ post.content|raw }}
 
                {{ function('wp_link_pages', {'before': '<div class="page-links" itemprop="pagination">', 'after': '</div>', 'link_before': '<span class="page-number page-numbers">', 'link_after': '</span>', 'echo': 0}) }}
                {# End Page Content #}
 
                {# Begin Edit Link #}
                {{ function('edit_post_link', __('Edit', 'g5_minions'), '<span class="edit-link">', '</span>') }}
                {# End Edit Link #}
 
            </section>
            {# End Entry Content #}
 
        {% else %}
 
            {# Begin Password Protected Form #}
            <div class="password-form">
 
                {# Include the password form #}
                {% include 'partials/password-form.html.twig' %}
 
            </div>
            <div uk-sticky="bottom: true">
                <div class="spacer"></div>
                <div class="ftext-right digital">
                    <span class="font-75 font-oswald has-light-grey-color">DIGITAL</span>
 
                </div>
            </div>
        </div>
 
        <div class="wp-block-column" uk-scrollspy-nav="closest: .title; scroll: true; offset: 400">
            <div class="spacer visible-desktop"></div>
            <div class="title">
                <div id="presence">
                    <a href="#presence"></a>
                    <div class="font-75 font-oswald header"><span class="hidden-desktop has-light-grey-color">DIGITAL</span> <span class="has-gold-color">PRESENCE</span></div>
                    <div>
                        <?php echo $presence; ?>
                        <a href="?page_id=522" class="visible-desktop">MEHR ERFAHREN</a>
                        <div class="cta-container hidden-desktop">
                            <a href="?page_id=522" target="<?php echo $target; ?>" class="cta smallest">
                                <div class="svg">
                                    <svg xmlns="http://www.w3.org/2000/svg">
                                        <g>
                                            <ellipse cx="17" cy="17" rx="15" ry="15" stroke-width="1" opacity="0.1" stroke="#ffffff" fill="transparent" />
                                            <ellipse cx="17" cy="17" rx="15" ry="15" class="circle" stroke-width="1" stroke="#907B4F" fill="transparent" />
                                            <path d="M1.6,16.4h29.8L31.3,14l4.4,2.6l-4.3,3l0.2-2.6h-30V16.4z"/>
                                        </g>
                                    </svg>
                                </div>
                                <div>MEHR ERFAHREN</div>
                            </a>
                        </div>
                    </div>
 
                </div>
            </div>
            <div class="title">
                <div id="commerce">
                    <a href="#commerce"></a>
                    <div class="font-75 font-oswald header"><span class="hidden-desktop has-light-grey-color">DIGITAL</span> <span class="has-gold-color">COMMERCE</span></div>
Exception message: Undefined variable: target
            <div uk-sticky="bottom: true">
                <div class="spacer"></div>
                <div class="ftext-right digital">
                    <span class="font-75 font-oswald has-light-grey-color">DIGITAL</span>
 
                </div>
            </div>
        </div>
 
        <div class="wp-block-column" uk-scrollspy-nav="closest: .title; scroll: true; offset: 400">
            <div class="spacer visible-desktop"></div>
            <div class="title">
                <div id="presence">
                    <a href="#presence"></a>
                    <div class="font-75 font-oswald header"><span class="hidden-desktop has-light-grey-color">DIGITAL</span> <span class="has-gold-color">PRESENCE</span></div>
                    <div>
                        <?php echo $presence; ?>
                        <a href="?page_id=522" class="visible-desktop">MEHR ERFAHREN</a>
                        <div class="cta-container hidden-desktop">
                            <a href="?page_id=522" target="<?php echo $target; ?>" class="cta smallest">
                                <div class="svg">
                                    <svg xmlns="http://www.w3.org/2000/svg">
                                        <g>
                                            <ellipse cx="17" cy="17" rx="15" ry="15" stroke-width="1" opacity="0.1" stroke="#ffffff" fill="transparent" />
                                            <ellipse cx="17" cy="17" rx="15" ry="15" class="circle" stroke-width="1" stroke="#907B4F" fill="transparent" />
                                            <path d="M1.6,16.4h29.8L31.3,14l4.4,2.6l-4.3,3l0.2-2.6h-30V16.4z"/>
                                        </g>
                                    </svg>
                                </div>
                                <div>MEHR ERFAHREN</div>
                            </a>
                        </div>
                    </div>
 
                </div>
            </div>
            <div class="title">
                <div id="commerce">
                    <a href="#commerce"></a>
                    <div class="font-75 font-oswald header"><span class="hidden-desktop has-light-grey-color">DIGITAL</span> <span class="has-gold-color">COMMERCE</span></div>
        /*
         * This use of extract() cannot be removed. There are many possible ways that
         * templates could depend on variables that it creates existing, and no way to
         * detect and deprecate it.
         *
         * Passing the EXTR_SKIP flag is the safest option, ensuring globals and
         * function variables cannot be overwritten.
         */
        // phpcs:ignore WordPress.PHP.DontExtract.extract_extract
        extract( $wp_query->query_vars, EXTR_SKIP );
    }
 
    if ( isset( $s ) ) {
        $s = esc_attr( $s );
    }
 
    if ( $require_once ) {
        require_once $_template_file;
    } else {
        require $_template_file;
    }
}
 
            $wp_query = new \WP_Query(); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
        }
 
        $types   = (array) $type;
        $located = '';
 
        foreach ( $types as $type ) {
            $templates = block_lab()->get_template_locations( $name, $type );
            $located   = block_lab()->locate_template( $templates );
 
            if ( ! empty( $located ) ) {
                break;
            }
        }
 
        if ( ! empty( $located ) ) {
            $theme_template = apply_filters( 'block_lab_override_theme_template', $located );
 
            // This is not a load once template, so require_once is false.
            load_template( $theme_template, false );
        } else {
            if ( ! current_user_can( 'edit_posts' ) || ! isset( $templates[0] ) ) {
                return;
            }
            // Hide the template not found notice on the frontend, unless WP_DEBUG is enabled.
            if ( ! is_admin() && ! ( defined( 'WP_DEBUG' ) && WP_DEBUG ) ) {
                return;
            }
            printf(
                '<div class="notice notice-warning">%s</div>',
                wp_kses_post(
                    // Translators: Placeholder is a file path.
                    sprintf( __( 'Template file %s not found.', 'block-lab' ), '<code>' . esc_html( $templates[0] ) . '</code>' )
                )
            );
        }
    }
 
    /**
     * Load all the published blocks and blocks/block.json files.
             * In that case, pass true as the 5th argument ($in_footer) to wp_enqueue_script().
             *
             * @param Block $block The block that is rendered.
             * @param array $attributes The block attributes.
             */
            do_action( 'block_lab_render_template', $block, $attributes );
 
            /**
             * Runs in a block's 'render_callback', and only on the front-end.
             *
             * Same as the action above, but with a dynamic action name that has the block name.
             *
             * @param Block $block The block that is rendered.
             * @param array $attributes The block attributes.
             */
            do_action( "block_lab_render_template_{$block->name}", $block, $attributes );
        }
 
        ob_start();
        $this->block_template( $block->name, $type );
        $output = ob_get_clean();
 
        return $output;
    }
 
    /**
     * Enqueues styles for the block.
     *
     * @param string       $name The name of the block (slug as defined in UI).
     * @param string|array $type The type of template to load.
     */
    protected function enqueue_block_styles( $name, $type = 'block' ) {
        $locations = [];
        $types     = (array) $type;
 
        foreach ( $types as $type ) {
            $locations = array_merge(
                $locations,
                block_lab()->get_stylesheet_locations( $name, $type )
            );
     * @param Block  $block      The block to register.
     */
    protected function register_block( $block_name, $block ) {
        $attributes = $this->get_block_attributes( $block );
 
        // sanitize_title() allows underscores, but register_block_type doesn't.
        $block_name = str_replace( '_', '-', $block_name );
 
        // register_block_type doesn't allow slugs starting with a number.
        if ( is_numeric( $block_name[0] ) ) {
            $block_name = 'block-' . $block_name;
        }
 
        register_block_type(
            $block_name,
            [
                'attributes'      => $attributes,
                // @see https://github.com/WordPress/gutenberg/issues/4671
                'render_callback' => function ( $attributes ) use ( $block ) {
                    return $this->render_block_template( $block, $attributes );
                },
            ]
        );
    }
 
    /**
     * Register custom block categories.
     *
     * @param array $categories Array of block categories.
     *
     * @return array
     */
    protected function register_categories( $categories ) {
        foreach ( $this->blocks as $block_config ) {
            if ( ! isset( $block_config['category'] ) ) {
                continue;
            }
 
            /*
             * This is a backwards compatibility fix.
 
        $is_dynamic    = $options['dynamic'] && $this->name && null !== $this->block_type && $this->block_type->is_dynamic();
        $block_content = '';
 
        if ( ! $options['dynamic'] || empty( $this->block_type->skip_inner_blocks ) ) {
            $index = 0;
            foreach ( $this->inner_content as $chunk ) {
                $block_content .= is_string( $chunk ) ?
                    $chunk :
                    $this->inner_blocks[ $index++ ]->render();
            }
        }
 
        if ( $is_dynamic ) {
            $global_post = $post;
            $parent      = WP_Block_Supports::$block_to_render;
 
            WP_Block_Supports::$block_to_render = $this->parsed_block;
 
            $block_content = (string) call_user_func( $this->block_type->render_callback, $this->attributes, $block_content, $this );
 
            WP_Block_Supports::$block_to_render = $parent;
 
            $post = $global_post;
        }
 
        if ( ! empty( $this->block_type->script ) ) {
            wp_enqueue_script( $this->block_type->script );
        }
 
        if ( ! empty( $this->block_type->style ) ) {
            wp_enqueue_style( $this->block_type->style );
        }
 
        /**
         * Filters the content of a single block.
         *
         * @since 5.0.0
         *
         * @param string $block_content The block content about to be appended.
         * is usually sufficient on its own. That being said, since a block's
         * manifest is expected to be shared between the server and the client,
         * it should be included to consistently fulfill the expectation.
         */
        $context['postType'] = $post->post_type;
    }
 
    /**
     * Filters the default context provided to a rendered block.
     *
     * @since 5.5.0
     *
     * @param array $context      Default context.
     * @param array $parsed_block Block being rendered, filtered by `render_block_data`.
     */
    $context = apply_filters( 'render_block_context', $context, $parsed_block );
 
    $block = new WP_Block( $parsed_block, $context );
 
    return $block->render();
}
 
/**
 * Parses blocks out of a content string.
 *
 * @since 5.0.0
 *
 * @param string $content Post content.
 * @return array[] Array of parsed block objects.
 */
function parse_blocks( $content ) {
    /**
     * Filter to allow plugins to replace the server-side block parser
     *
     * @since 5.0.0
     *
     * @param string $parser_class Name of block parser class.
     */
    $parser_class = apply_filters( 'block_parser_class', 'WP_Block_Parser' );
 
    $parser_class = apply_filters( 'block_parser_class', 'WP_Block_Parser' );
 
    $parser = new $parser_class();
    return $parser->parse( $content );
}
 
/**
 * Parses dynamic blocks out of `post_content` and re-renders them.
 *
 * @since 5.0.0
 *
 * @param string $content Post content.
 * @return string Updated post content.
 */
function do_blocks( $content ) {
    $blocks = parse_blocks( $content );
    $output = '';
 
    foreach ( $blocks as $block ) {
        $output .= render_block( $block );
    }
 
    // If there are blocks in this content, we shouldn't run wpautop() on it later.
    $priority = has_filter( 'the_content', 'wpautop' );
    if ( false !== $priority && doing_filter( 'the_content' ) && has_blocks( $content ) ) {
        remove_filter( 'the_content', 'wpautop', $priority );
        add_filter( 'the_content', '_restore_wpautop_hook', $priority + 1 );
    }
 
    return $output;
}
 
/**
 * If do_blocks() needs to remove wpautop() from the `the_content` filter, this re-adds it afterwards,
 * for subsequent `the_content` usage.
 *
 * @access private
 *
 * @since 5.0.0
 *
 
    if ( isset( $seen_refs[ $attributes['ref'] ] ) ) {
        // WP_DEBUG_DISPLAY must only be honored when WP_DEBUG. This precedent
        // is set in `wp_debug_mode()`.
        $is_debug = defined( 'WP_DEBUG' ) && WP_DEBUG &&
            defined( 'WP_DEBUG_DISPLAY' ) && WP_DEBUG_DISPLAY;
 
        return $is_debug ?
            // translators: Visible only in the front end, this warning takes the place of a faulty block.
            __( '[block rendering halted]' ) :
            '';
    }
 
    if ( 'publish' !== $reusable_block->post_status || ! empty( $reusable_block->post_password ) ) {
        return '';
    }
 
    $seen_refs[ $attributes['ref'] ] = true;
 
    $result = do_blocks( $reusable_block->post_content );
    unset( $seen_refs[ $attributes['ref'] ] );
    return $result;
}
 
/**
 * Registers the `core/block` block.
 */
function register_block_core_block() {
    register_block_type_from_metadata(
        __DIR__ . '/block',
        array(
            'render_callback' => 'render_block_core_block',
        )
    );
}
add_action( 'init', 'register_block_core_block' );
 
 
        $is_dynamic    = $options['dynamic'] && $this->name && null !== $this->block_type && $this->block_type->is_dynamic();
        $block_content = '';
 
        if ( ! $options['dynamic'] || empty( $this->block_type->skip_inner_blocks ) ) {
            $index = 0;
            foreach ( $this->inner_content as $chunk ) {
                $block_content .= is_string( $chunk ) ?
                    $chunk :
                    $this->inner_blocks[ $index++ ]->render();
            }
        }
 
        if ( $is_dynamic ) {
            $global_post = $post;
            $parent      = WP_Block_Supports::$block_to_render;
 
            WP_Block_Supports::$block_to_render = $this->parsed_block;
 
            $block_content = (string) call_user_func( $this->block_type->render_callback, $this->attributes, $block_content, $this );
 
            WP_Block_Supports::$block_to_render = $parent;
 
            $post = $global_post;
        }
 
        if ( ! empty( $this->block_type->script ) ) {
            wp_enqueue_script( $this->block_type->script );
        }
 
        if ( ! empty( $this->block_type->style ) ) {
            wp_enqueue_style( $this->block_type->style );
        }
 
        /**
         * Filters the content of a single block.
         *
         * @since 5.0.0
         *
         * @param string $block_content The block content about to be appended.
         * is usually sufficient on its own. That being said, since a block's
         * manifest is expected to be shared between the server and the client,
         * it should be included to consistently fulfill the expectation.
         */
        $context['postType'] = $post->post_type;
    }
 
    /**
     * Filters the default context provided to a rendered block.
     *
     * @since 5.5.0
     *
     * @param array $context      Default context.
     * @param array $parsed_block Block being rendered, filtered by `render_block_data`.
     */
    $context = apply_filters( 'render_block_context', $context, $parsed_block );
 
    $block = new WP_Block( $parsed_block, $context );
 
    return $block->render();
}
 
/**
 * Parses blocks out of a content string.
 *
 * @since 5.0.0
 *
 * @param string $content Post content.
 * @return array[] Array of parsed block objects.
 */
function parse_blocks( $content ) {
    /**
     * Filter to allow plugins to replace the server-side block parser
     *
     * @since 5.0.0
     *
     * @param string $parser_class Name of block parser class.
     */
    $parser_class = apply_filters( 'block_parser_class', 'WP_Block_Parser' );
 
    $parser_class = apply_filters( 'block_parser_class', 'WP_Block_Parser' );
 
    $parser = new $parser_class();
    return $parser->parse( $content );
}
 
/**
 * Parses dynamic blocks out of `post_content` and re-renders them.
 *
 * @since 5.0.0
 *
 * @param string $content Post content.
 * @return string Updated post content.
 */
function do_blocks( $content ) {
    $blocks = parse_blocks( $content );
    $output = '';
 
    foreach ( $blocks as $block ) {
        $output .= render_block( $block );
    }
 
    // If there are blocks in this content, we shouldn't run wpautop() on it later.
    $priority = has_filter( 'the_content', 'wpautop' );
    if ( false !== $priority && doing_filter( 'the_content' ) && has_blocks( $content ) ) {
        remove_filter( 'the_content', 'wpautop', $priority );
        add_filter( 'the_content', '_restore_wpautop_hook', $priority + 1 );
    }
 
    return $output;
}
 
/**
 * If do_blocks() needs to remove wpautop() from the `the_content` filter, this re-adds it afterwards,
 * for subsequent `the_content` usage.
 *
 * @access private
 *
 * @since 5.0.0
 *
 
        $nesting_level = $this->nesting_level++;
 
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
        $num_args                           = count( $args );
 
        do {
            $this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
            $priority                                 = $this->current_priority[ $nesting_level ];
 
            foreach ( $this->callbacks[ $priority ] as $the_ ) {
                if ( ! $this->doing_action ) {
                    $args[0] = $value;
                }
 
                // Avoid the array_slice() if possible.
                if ( 0 == $the_['accepted_args'] ) {
                    $value = call_user_func( $the_['function'] );
                } elseif ( $the_['accepted_args'] >= $num_args ) {
                    $value = call_user_func_array( $the_['function'], $args );
                } else {
                    $value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int) $the_['accepted_args'] ) );
                }
            }
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        $this->nesting_level--;
 
        return $value;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
        $wp_current_filter[] = $hook_name;
        _wp_call_all_hook( $args );
    }
 
    if ( ! isset( $wp_filter[ $hook_name ] ) ) {
        if ( isset( $wp_filter['all'] ) ) {
            array_pop( $wp_current_filter );
        }
 
        return $value;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $hook_name;
    }
 
    // Don't pass the tag name to WP_Hook.
    array_shift( $args );
 
    $filtered = $wp_filter[ $hook_name ]->apply_filters( $value, $args );
 
    array_pop( $wp_current_filter );
 
    return $filtered;
}
 
/**
 * Calls the callback functions that have been added to a filter hook, specifying arguments in an array.
 *
 * @since 3.0.0
 *
 * @see apply_filters() This function is identical, but the arguments passed to the
 *                      functions hooked to `$hook_name` are supplied using an array.
 *
 * @global WP_Hook[] $wp_filter         Stores all of the filters and actions.
 * @global string[]  $wp_current_filter Stores the list of current filters with the current one last.
 *
 * @param string $hook_name The name of the filter hook.
 * @param array  $args      The arguments supplied to the functions hooked to `$hook_name`.
 * @return mixed The filtered value after all hooked functions are applied to it.
        }
        if ( $form = $this->maybe_show_password_form() ) {
            return $form;
        }
        if ( $len == -1 && $page == 0 && $this->___content ) {
            return $this->___content;
        }
        $content = $this->post_content;
        if ( $len > 0 ) {
            $content = wp_trim_words($content, $len);
        }
        if ( $page ) {
            $contents = explode('<!--nextpage-->', $content);
            $page--;
            if ( count($contents) > $page ) {
                $content = $contents[$page];
            }
        }
        $content = $this->content_handle_no_teaser_block( $content );
        $content = apply_filters('the_content', ($content));
        if ( $len == -1 && $page == 0 ) {
            $this->___content = $content;
        }
        return $content;
    }
 
    /**
     * Handles for an circumstance with the Block editor where a "more" block has an option to 
     * "Hide the excerpt on the full content page" which hides everything prior to the inserted 
     * "more" block
     * @ticket #2218
     * @param string $content
     * @return string
     */
    protected function content_handle_no_teaser_block( $content ) {
        if ( strpos($content, 'noTeaser:true') !== false ) {
            $arr = explode('<!--noteaser-->', $content);
            return $arr[1];
        }
        return $content;
            if ($ignoreStrictCheck || !$this->env->isStrictVariables()) {
                return;
            }
 
            throw new RuntimeError(sprintf('Neither the property "%1$s" nor one of the methods "%1$s()", "get%1$s()"/"is%1$s()" or "__call()" exist and have public access in class "%2$s".', $item, $class), -1, $this->getSourceContext());
        }
 
        if ($isDefinedTest) {
            return true;
        }
 
        if ($this->env->hasExtension('\Twig\Extension\SandboxExtension')) {
            $this->env->getExtension('\Twig\Extension\SandboxExtension')->checkMethodAllowed($object, $method);
        }
 
        // Some objects throw exceptions when they have __call, and the method we try
        // to call is not supported. If ignoreStrictCheck is true, we should return null.
        try {
            if (!$arguments) {
                $ret = $object->$method();
            } else {
                $ret = \call_user_func_array([$object, $method], $arguments);
            }
        } catch (\BadMethodCallException $e) {
            if ($call && ($ignoreStrictCheck || !$this->env->isStrictVariables())) {
                return;
            }
            throw $e;
        }
 
        // @deprecated in 1.28
        if ($object instanceof \Twig_TemplateInterface) {
            $self = $object->getTemplateName() === $this->getTemplateName();
            $message = sprintf('Calling "%s" on template "%s" from template "%s" is deprecated since version 1.28 and won\'t be supported anymore in 2.0.', $item, $object->getTemplateName(), $this->getTemplateName());
            if ('renderBlock' === $method || 'displayBlock' === $method) {
                $message .= sprintf(' Use block("%s"%s) instead).', $arguments[0], $self ? '' : ', template');
            } elseif ('hasBlock' === $method) {
                $message .= sprintf(' Use "block("%s"%s) is defined" instead).', $arguments[0], $self ? '' : ', template');
            } elseif ('render' === $method || 'display' === $method) {
                $message .= sprintf(' Use include("%s") instead).', $object->getTemplateName());
                echo "\" class=\"post-thumbnail\" aria-hidden=\"true\">
                        <img src=\"";
                // line 39
                echo Timber\ImageHelper::resize($this->getAttribute($this->getAttribute(($context["post"] ?? null), "thumbnail", []), "src", []), $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "config", []), "get", [0 => (("content." . ($context["scope"] ?? null)) . ".featured-image.width"), 1 => "1200"], "method"), $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "config", []), "get", [0 => (("content." . ($context["scope"] ?? null)) . ".featured-image.height"), 1 => "350"], "method"));
                echo "\" class=\"featured-image tease-featured-image ";
                echo ($context["position"] ?? null);
                echo "\" alt=\"";
                echo $this->getAttribute(($context["post"] ?? null), "title", []);
                echo "\" />
                    </a>
                ";
            }
            // line 42
            echo "                ";
            // line 43
            echo "
                ";
            // line 45
            echo "                ";
            echo $this->getAttribute(($context["post"] ?? null), "content", []);
            echo "
 
                ";
            // line 47
            echo call_user_func_array($this->env->getFunction('function')->getCallable(), ["wp_link_pages", ["before" => "<div class=\"page-links\" itemprop=\"pagination\">", "after" => "</div>", "link_before" => "<span class=\"page-number page-numbers\">", "link_after" => "</span>", "echo" => 0]]);
            echo "
                ";
            // line 49
            echo "
                ";
            // line 51
            echo "                ";
            echo call_user_func_array($this->env->getFunction('function')->getCallable(), ["edit_post_link", __("Edit", "g5_minions"), "<span class=\"edit-link\">", "</span>"]);
            echo "
                ";
            // line 53
            echo "
            </section>
            ";
            // line 56
 
        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);
 
        $this->blocks = [
            'content' => [$this, 'block_content'],
        ];
    }
 
    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 1
        echo "<article class=\"post-type-";
        echo $this->getAttribute(($context["post"] ?? null), "post_type", []);
        echo " ";
        echo $this->getAttribute(($context["post"] ?? null), "class", []);
        echo "\" id=\"post-";
        echo $this->getAttribute(($context["post"] ?? null), "ID", []);
        echo "\">
 
    ";
        // line 3
        $this->displayBlock('content', $context, $blocks);
        // line 71
        echo "
</article>
";
    }
 
    // line 3
    public function block_content($context, array $blocks = [])
    {
        // line 4
        echo "
        ";
        // line 6
        echo "        <section class=\"entry-header\">
 
            ";
        // line 8
        if ($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "config", []), "get", [0 => (("content." . ($context["scope"] ?? null)) . ".title.enabled"), 1 => "1"], "method")) {
            // line 9
            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) {
        $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-page.html.twig"], "page.html.twig", 11)->display($context);
        // line 12
        echo "
            </section>
        </div> <!-- /content-wrapper -->
    </div>
 
";
    }
 
    public function getTemplateName()
    {
        return "page.html.twig";
    }
 
    public function isTraitable()
    {
        return false;
    }
 
    public function getDebugInfo()
 
        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);
    }
 
    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 1
        $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "debugger", []), "startTimer", [0 => "render", 1 => "Rendering page"], "method");
        // line 2
        $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "theme", []), "setLayout", [], "method");
        // line 3
        $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "theme", []), "loadAtoms", [], "method");
        // line 4
        $context["segments"] = $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "theme", []), "segments", [], "method");
        // line 6
        ob_start();
        // line 7
        echo "    ";
        if ($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "theme", []), "hasContent", [], "method")) {
            // line 8
            echo "        ";
            $this->displayBlock('content', $context, $blocks);
            // line 10
            echo "    ";
        }
        $context["content"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 13
        $context["offcanvas"] = null;
        // line 14
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["segments"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["segment"]) {
            if (($this->getAttribute($context["segment"], "type", []) == "offcanvas")) {
                // line 15
                $context["offcanvas"] = $context["segment"];
            }
        }
        $_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();
            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-page.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 /leistungen/
USER web-user
HOME /var/www/share
SCRIPT_NAME /index.php
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /leistungen/
REMOTE_PORT 38690
SCRIPT_FILENAME /var/www/share/staging.grand-digital.de/htdocs/index.php
SERVER_ADMIN root@localhost
CONTEXT_DOCUMENT_ROOT /var/www/share/staging.grand-digital.de/htdocs
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /var/www/share/staging.grand-digital.de/htdocs
REMOTE_ADDR 54.165.57.161
SERVER_PORT 443
SERVER_ADDR 185.88.215.40
SERVER_NAME staging.grand-digital.de
SERVER_SIGNATURE
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HTTP_CONNECTION Keep-Alive
HTTP_HOST staging.grand-digital.de
HTTP_ACCEPT_ENCODING br,gzip
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/)
proxy-nokeepalive 1
SSL_SESSION_RESUMED Initial
SSL_SESSION_ID b17496067a2a875e3394c5d7b307021a579b1db9f04d634b02bcc1ff794d3b6f
SSL_SERVER_A_SIG sha256WithRSAEncryption
SSL_SERVER_A_KEY rsaEncryption
SSL_SERVER_I_DN CN=R3,O=Let\'s Encrypt,C=US
SSL_SERVER_S_DN CN=staging.grand-digital.de
SSL_SERVER_V_END Jan 22 21:51:49 2022 GMT
SSL_SERVER_V_START Oct 24 21:51:50 2021 GMT
SSL_SERVER_M_SERIAL 04B8614192649F261F92A8BCF65425D77C00
SSL_SERVER_M_VERSION 3
SSL_CLIENT_VERIFY NONE
SSL_CIPHER_ALGKEYSIZE 256
SSL_CIPHER_USEKEYSIZE 256
SSL_CIPHER_EXPORT false
SSL_CIPHER TLS_AES_256_GCM_SHA384
SSL_COMPRESS_METHOD NULL
SSL_SECURE_RENEG false
SSL_PROTOCOL TLSv1.3
SSL_VERSION_LIBRARY OpenSSL/1.1.1f
SSL_VERSION_INTERFACE mod_ssl/2.4.41
SSL_SERVER_SAN_DNS_0 staging.grand-digital.de
SSL_SERVER_I_DN_CN R3
SSL_SERVER_I_DN_O Let\'s Encrypt
SSL_SERVER_I_DN_C US
SSL_SERVER_S_DN_CN staging.grand-digital.de
SSL_TLS_SNI staging.grand-digital.de
HTTPS on
HTTP_AUTHORIZATION
REDIRECT_STATUS 200
REDIRECT_SSL_TLS_SNI staging.grand-digital.de
REDIRECT_HTTPS on
REDIRECT_HTTP_AUTHORIZATION
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1638321812.4902
REQUEST_TIME 1638321812
empty
0. Whoops\Handler\PrettyPageHandler