Twig \ Error \ RuntimeError
An exception has been thrown during the rendering of a template ("String offset cast occurred").
Previous exceptions
  • String offset cast occurred (8)
Twig\Error\RuntimeError thrown with message "An exception has been thrown during the rendering of a template ("String offset cast occurred")." Stacktrace: #47 Twig\Error\RuntimeError in /var/www/F94281829866/html/wp-content/themes/kuse-child/custom/views/partials/singlepostquery.html.twig:93 #46 Whoops\Exception\ErrorException in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/timber/timber/lib/Post.php:1438 #45 Gantry\Component\Whoops\SystemFacade:handleError in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/timber/timber/lib/Post.php:1438 #44 Timber\Post:next in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:702 #43 Twig\Template:getAttribute in /var/www/F94281829866/html/wp-content/cache/gantry5/kuse-child/twig/d5/d52fd55767643002cd4c80a4f50e2c25ad0f4f88f6f54e46d4909d1687de2f37.php:185 #42 __TwigTemplate_25fa2b192ac7942d7e0e0c92398332a3d8f98526c1c5c6e0ead013d1258f1cdf:block_particle in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:216 #41 Twig\Template:displayBlock in /var/www/F94281829866/html/wp-content/cache/gantry5/kuse-child/twig/43/43607cf4550d43c6c0b0c1e791170fff17826f98c73c5b0ec36ce1055ab9207d.php:73 #40 __TwigTemplate_5e718c2f3bde9bffe145f22ff99726fb16b07e9e9f7eead70c3e10910241f6b6:doDisplay in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:455 #39 Twig\Template:displayWithErrorHandling in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:422 #38 Twig\Template:display in /var/www/F94281829866/html/wp-content/cache/gantry5/kuse-child/twig/d5/d52fd55767643002cd4c80a4f50e2c25ad0f4f88f6f54e46d4909d1687de2f37.php:68 #37 __TwigTemplate_25fa2b192ac7942d7e0e0c92398332a3d8f98526c1c5c6e0ead013d1258f1cdf:doDisplay in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:455 #36 Twig\Template:displayWithErrorHandling in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:422 #35 Twig\Template:display in /var/www/F94281829866/html/wp-content/cache/gantry5/kuse-child/twig/b7/b79ee5694b5596e6f488a67c5f501bd42235e298fc7e098e82e8f3750ea411cb.php:40 #34 __TwigTemplate_8a3c905498df6ec0a369d7fac013ec997525d1b7ff22d7fc391456e1dcd26b43:doDisplay in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:455 #33 Twig\Template:displayWithErrorHandling in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:422 #32 Twig\Template:display in /var/www/F94281829866/html/wp-content/cache/gantry5/kuse-child/twig/35/3571087c5d3c2a69542dd681d7bfc921530d8eaf3fde070a2025c4f7babece94.php:71 #31 __TwigTemplate_bb1565738500296946b95dd8a10626962d70e088a4b295f77f7592812a39a514:doDisplay in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:455 #30 Twig\Template:displayWithErrorHandling in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:422 #29 Twig\Template:display in /var/www/F94281829866/html/wp-content/cache/gantry5/kuse-child/twig/d5/d511fe7e3e887f45091d8d91b8ef3d5d07f3adaeaac4834c95db5d928b08b8f9.php:75 #28 __TwigTemplate_b7a2a371d4ca0e723da2f52cd2586909922bc62d03a3734f6e693cc7ccf249dd:doDisplay in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:455 #27 Twig\Template:displayWithErrorHandling in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:422 #26 Twig\Template:display in /var/www/F94281829866/html/wp-content/cache/gantry5/kuse-child/twig/09/0957fcd00e080ae8b96b5b063862b52326c156f7a39e37ba2a0d55855944af28.php:58 #25 __TwigTemplate_72b63b016b46761a77fbdcab1471812708f9f0a995976f87a6bde0cc0ec2f8b2:doDisplay in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:455 #24 Twig\Template:displayWithErrorHandling in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:422 #23 Twig\Template:display in /var/www/F94281829866/html/wp-content/cache/gantry5/kuse-child/twig/78/78eac250048060b188927a29d0703be21a047f197f8eb96161c8199d705ccd94.php:71 #22 __TwigTemplate_d6750f57d6f05c716593195486d92ad5683c9aa9aa8209a267cd43bcf545a237:doDisplay in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:455 #21 Twig\Template:displayWithErrorHandling in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:422 #20 Twig\Template:display in /var/www/F94281829866/html/wp-content/cache/gantry5/kuse-child/twig/f7/f7c655eefa6f8b9e58c1a07d1f6828f059b726e1eb19023133f408623274b45c.php:221 #19 __TwigTemplate_a1a530ae8189f82ff3a3a59de2837f0945912ce13e679debe9270f3dda8099ed:block_page_layout in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:216 #18 Twig\Template:displayBlock in /var/www/F94281829866/html/wp-content/cache/gantry5/kuse-child/twig/f7/f7c655eefa6f8b9e58c1a07d1f6828f059b726e1eb19023133f408623274b45c.php:101 #17 __TwigTemplate_a1a530ae8189f82ff3a3a59de2837f0945912ce13e679debe9270f3dda8099ed:doDisplay in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:455 #16 Twig\Template:displayWithErrorHandling in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:422 #15 Twig\Template:display in /var/www/F94281829866/html/wp-content/cache/gantry5/kuse-child/twig/95/95aca2c93020217f488c24f209635b877ac55fdfb2e704ef2057e743a85e6792.php:36 #14 __TwigTemplate_96bc922855649a3acd952082c698e6246057a9ff21e96fd461b97898ad8d3f57:doDisplay in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:455 #13 Twig\Template:displayWithErrorHandling in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:422 #12 Twig\Template:display in /var/www/F94281829866/html/wp-content/cache/gantry5/kuse-child/twig/9f/9f79a3364362a9212507a0d12c3d6cd1bedc3377744a5046d1b8755d0f03fb36.php:40 #11 __TwigTemplate_760e40583d34aa2e46e80a3d2557f18d7323a10d00cecde440f00cac5f03400f:doDisplay in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:455 #10 Twig\Template:displayWithErrorHandling in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:422 #9 Twig\Template:display in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Template.php:434 #8 Twig\Template:render in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/twig/twig/src/TemplateWrapper.php:47 #7 Twig\TemplateWrapper:render in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/timber/timber/lib/Loader.php:79 #6 Timber\Loader:render in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/timber/timber/lib/Timber.php:334 #5 Timber\Timber:compile in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/timber/timber/lib/Timber.php:383 #4 Timber\Timber:fetch in /var/www/F94281829866/html/wp-content/plugins/gantry5/src/vendor/timber/timber/lib/Timber.php:410 #3 Timber\Timber:render in /var/www/F94281829866/html/wp-content/themes/kuse-theme/single.php:30 #2 include in /var/www/F94281829866/html/wp-includes/template-loader.php:106 #1 require_once in /var/www/F94281829866/html/wp-blog-header.php:19 #0 require in /var/www/F94281829866/html/index.php:17
Stack frames (48)
47
Twig\Error\RuntimeError
/var/www/F94281829866/html/wp-content/themes/kuse-child/custom/views/partials/singlepostquery.html.twig93
46
Whoops\Exception\ErrorException
/vendor/timber/timber/lib/Post.php1438
45
Gantry\Component\Whoops\SystemFacade handleError
/vendor/timber/timber/lib/Post.php1438
44
Timber\Post next
/vendor/twig/twig/src/Template.php702
43
Twig\Template getAttribute
/var/www/F94281829866/html/wp-content/cache/gantry5/kuse-child/twig/d5/d52fd55767643002cd4c80a4f50e2c25ad0f4f88f6f54e46d4909d1687de2f37.php185
42
__TwigTemplate_25fa2b192ac7942d7e0e0c92398332a3d8f98526c1c5c6e0ead013d1258f1cdf block_particle
/vendor/twig/twig/src/Template.php216
41
Twig\Template displayBlock
/var/www/F94281829866/html/wp-content/cache/gantry5/kuse-child/twig/43/43607cf4550d43c6c0b0c1e791170fff17826f98c73c5b0ec36ce1055ab9207d.php73
40
__TwigTemplate_5e718c2f3bde9bffe145f22ff99726fb16b07e9e9f7eead70c3e10910241f6b6 doDisplay
/vendor/twig/twig/src/Template.php455
39
Twig\Template displayWithErrorHandling
/vendor/twig/twig/src/Template.php422
38
Twig\Template display
/var/www/F94281829866/html/wp-content/cache/gantry5/kuse-child/twig/d5/d52fd55767643002cd4c80a4f50e2c25ad0f4f88f6f54e46d4909d1687de2f37.php68
37
__TwigTemplate_25fa2b192ac7942d7e0e0c92398332a3d8f98526c1c5c6e0ead013d1258f1cdf doDisplay
/vendor/twig/twig/src/Template.php455
36
Twig\Template displayWithErrorHandling
/vendor/twig/twig/src/Template.php422
35
Twig\Template display
/var/www/F94281829866/html/wp-content/cache/gantry5/kuse-child/twig/b7/b79ee5694b5596e6f488a67c5f501bd42235e298fc7e098e82e8f3750ea411cb.php40
34
__TwigTemplate_8a3c905498df6ec0a369d7fac013ec997525d1b7ff22d7fc391456e1dcd26b43 doDisplay
/vendor/twig/twig/src/Template.php455
33
Twig\Template displayWithErrorHandling
/vendor/twig/twig/src/Template.php422
32
Twig\Template display
/var/www/F94281829866/html/wp-content/cache/gantry5/kuse-child/twig/35/3571087c5d3c2a69542dd681d7bfc921530d8eaf3fde070a2025c4f7babece94.php71
31
__TwigTemplate_bb1565738500296946b95dd8a10626962d70e088a4b295f77f7592812a39a514 doDisplay
/vendor/twig/twig/src/Template.php455
30
Twig\Template displayWithErrorHandling
/vendor/twig/twig/src/Template.php422
29
Twig\Template display
/var/www/F94281829866/html/wp-content/cache/gantry5/kuse-child/twig/d5/d511fe7e3e887f45091d8d91b8ef3d5d07f3adaeaac4834c95db5d928b08b8f9.php75
28
__TwigTemplate_b7a2a371d4ca0e723da2f52cd2586909922bc62d03a3734f6e693cc7ccf249dd doDisplay
/vendor/twig/twig/src/Template.php455
27
Twig\Template displayWithErrorHandling
/vendor/twig/twig/src/Template.php422
26
Twig\Template display
/var/www/F94281829866/html/wp-content/cache/gantry5/kuse-child/twig/09/0957fcd00e080ae8b96b5b063862b52326c156f7a39e37ba2a0d55855944af28.php58
25
__TwigTemplate_72b63b016b46761a77fbdcab1471812708f9f0a995976f87a6bde0cc0ec2f8b2 doDisplay
/vendor/twig/twig/src/Template.php455
24
Twig\Template displayWithErrorHandling
/vendor/twig/twig/src/Template.php422
23
Twig\Template display
/var/www/F94281829866/html/wp-content/cache/gantry5/kuse-child/twig/78/78eac250048060b188927a29d0703be21a047f197f8eb96161c8199d705ccd94.php71
22
__TwigTemplate_d6750f57d6f05c716593195486d92ad5683c9aa9aa8209a267cd43bcf545a237 doDisplay
/vendor/twig/twig/src/Template.php455
21
Twig\Template displayWithErrorHandling
/vendor/twig/twig/src/Template.php422
20
Twig\Template display
/var/www/F94281829866/html/wp-content/cache/gantry5/kuse-child/twig/f7/f7c655eefa6f8b9e58c1a07d1f6828f059b726e1eb19023133f408623274b45c.php221
19
__TwigTemplate_a1a530ae8189f82ff3a3a59de2837f0945912ce13e679debe9270f3dda8099ed block_page_layout
/vendor/twig/twig/src/Template.php216
18
Twig\Template displayBlock
/var/www/F94281829866/html/wp-content/cache/gantry5/kuse-child/twig/f7/f7c655eefa6f8b9e58c1a07d1f6828f059b726e1eb19023133f408623274b45c.php101
17
__TwigTemplate_a1a530ae8189f82ff3a3a59de2837f0945912ce13e679debe9270f3dda8099ed doDisplay
/vendor/twig/twig/src/Template.php455
16
Twig\Template displayWithErrorHandling
/vendor/twig/twig/src/Template.php422
15
Twig\Template display
/var/www/F94281829866/html/wp-content/cache/gantry5/kuse-child/twig/95/95aca2c93020217f488c24f209635b877ac55fdfb2e704ef2057e743a85e6792.php36
14
__TwigTemplate_96bc922855649a3acd952082c698e6246057a9ff21e96fd461b97898ad8d3f57 doDisplay
/vendor/twig/twig/src/Template.php455
13
Twig\Template displayWithErrorHandling
/vendor/twig/twig/src/Template.php422
12
Twig\Template display
/var/www/F94281829866/html/wp-content/cache/gantry5/kuse-child/twig/9f/9f79a3364362a9212507a0d12c3d6cd1bedc3377744a5046d1b8755d0f03fb36.php40
11
__TwigTemplate_760e40583d34aa2e46e80a3d2557f18d7323a10d00cecde440f00cac5f03400f 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/F94281829866/html/wp-content/themes/kuse-theme/single.php30
2
include
/var/www/F94281829866/html/wp-includes/template-loader.php106
1
require_once
/var/www/F94281829866/html/wp-blog-header.php19
0
require
/var/www/F94281829866/html/index.php17
                      {% block postreadmore %}
                        {% include 'partials/postreadmore.html.twig' %}
                      {% endblock %}
                      {% if (post.heading != 'disabled')
                        or(post.content != '') %}
                      </div>
                    {% endif %}
                    {% if post.verlinkung.url != '' %}
                    </a>
                  {% endif %}
                {% endblock %}
                {% if particle.ajax.enabled %}
                <div class="ajax-content" data-totalposts="{{ total }}">
                {% endif %}

                {% if particle.ajax.enabled %}
               </div>
               {% endif %}
               <div class="singlepost-nav">
           {% if post.next.link %}
                   <a class="pagination-button" href="{{post.next.link}}" title="{{post.next.title}}"><img alt="Pfeil nach Rechts" src="/wp-content/uploads/bad-carousel-slider-zuruck.png"></a>
               {% endif %}
                <a class="current-single-category" href="/referenzen?filterkey={{post.kategorie}}" title="{{post.kategorie}}"><img alt="Pfeil nach Links" src="/wp-content/uploads/category.png"></a>
          {% if post.prev.link %}
                    <a href="{{post.prev.link}}" title="{{post.prev.title}}"><img alt="Pfeil nach Links" src="/wp-content/uploads/bad-carousel-slider-vor.png"></a>
                    {% endif %}

                </div>
              </div>
            </div>
            {% include 'partials/postedit.html.twig' %}
          </div>
        {% endfor %}
      </div>
    {% endfor %}
  </div>
  {% if particle.ajax.enabled %}
    {% block ajaxloadmore %}
    {% include 'partials/ajax-loadmore.html.twig' %}
    {% endblock %}
    public function next( $in_same_term = false ) {
        if ( !isset($this->_next) || !isset($this->_next[$in_same_term]) ) {
            global $post;
            $this->_next = array();
            $old_global = $post;
            $post = $this;
            if ( $in_same_term ) {
                $adjacent = get_adjacent_post(true, '', false, $in_same_term);
            } else {
                $adjacent = get_adjacent_post(false, '', false);
            }
 
            if ( $adjacent ) {
                $this->_next[$in_same_term] = new $this->PostClass($adjacent);
            } else {
                $this->_next[$in_same_term] = false;
            }
            $post = $old_global;
        }
        return $this->_next[$in_same_term];
    }
 
    /**
     * Get a data array of pagination so you can navigate to the previous/next for a paginated post
     * @return array
     */
    public function pagination() {
        global $post, $page, $numpages, $multipage;
        $post = $this;
        $ret = array();
        if ( $multipage ) {
            for ( $i = 1; $i <= $numpages; $i++ ) {
                $link = self::get_wp_link_page($i);
                $data = array('name' => $i, 'title' => $i, 'text' => $i, 'link' => $link);
                if ( $i == $page ) {
                    $data['current'] = true;
                }
                $ret['pages'][] = $data;
            }
            $i = $page - 1;
Exception message: String offset cast occurred
    public function next( $in_same_term = false ) {
        if ( !isset($this->_next) || !isset($this->_next[$in_same_term]) ) {
            global $post;
            $this->_next = array();
            $old_global = $post;
            $post = $this;
            if ( $in_same_term ) {
                $adjacent = get_adjacent_post(true, '', false, $in_same_term);
            } else {
                $adjacent = get_adjacent_post(false, '', false);
            }
 
            if ( $adjacent ) {
                $this->_next[$in_same_term] = new $this->PostClass($adjacent);
            } else {
                $this->_next[$in_same_term] = false;
            }
            $post = $old_global;
        }
        return $this->_next[$in_same_term];
    }
 
    /**
     * Get a data array of pagination so you can navigate to the previous/next for a paginated post
     * @return array
     */
    public function pagination() {
        global $post, $page, $numpages, $multipage;
        $post = $this;
        $ret = array();
        if ( $multipage ) {
            for ( $i = 1; $i <= $numpages; $i++ ) {
                $link = self::get_wp_link_page($i);
                $data = array('name' => $i, 'title' => $i, 'text' => $i, 'link' => $link);
                if ( $i == $page ) {
                    $data['current'] = true;
                }
                $ret['pages'][] = $data;
            }
            $i = $page - 1;
            if ($ignoreStrictCheck || !$this->env->isStrictVariables()) {
                return;
            }
 
            throw new RuntimeError(sprintf('Neither the property "%1$s" nor one of the methods "%1$s()", "get%1$s()"/"is%1$s()" or "__call()" exist and have public access in class "%2$s".', $item, $class), -1, $this->getSourceContext());
        }
 
        if ($isDefinedTest) {
            return true;
        }
 
        if ($this->env->hasExtension('\Twig\Extension\SandboxExtension')) {
            $this->env->getExtension('\Twig\Extension\SandboxExtension')->checkMethodAllowed($object, $method);
        }
 
        // Some objects throw exceptions when they have __call, and the method we try
        // to call is not supported. If ignoreStrictCheck is true, we should return null.
        try {
            if (!$arguments) {
                $ret = $object->$method();
            } else {
                $ret = \call_user_func_array([$object, $method], $arguments);
            }
        } catch (\BadMethodCallException $e) {
            if ($call && ($ignoreStrictCheck || !$this->env->isStrictVariables())) {
                return;
            }
            throw $e;
        }
 
        // @deprecated in 1.28
        if ($object instanceof \Twig_TemplateInterface) {
            $self = $object->getTemplateName() === $this->getTemplateName();
            $message = sprintf('Calling "%s" on template "%s" from template "%s" is deprecated since version 1.28 and won\'t be supported anymore in 2.0.', $item, $object->getTemplateName(), $this->getTemplateName());
            if ('renderBlock' === $method || 'displayBlock' === $method) {
                $message .= sprintf(' Use block("%s"%s) instead).', $arguments[0], $self ? '' : ', template');
            } elseif ('hasBlock' === $method) {
                $message .= sprintf(' Use "block("%s"%s) is defined" instead).', $arguments[0], $self ? '' : ', template');
            } elseif ('render' === $method || 'display' === $method) {
                $message .= sprintf(' Use include("%s") instead).', $object->getTemplateName());
                    // line 86
                    echo "                <div class=\"ajax-content\" data-totalposts=\"";
                    echo ($context["total"] ?? null);
                    echo "\">
                ";
                }
                // line 88
                echo "
                ";
                // line 89
                if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "ajax", []), "enabled", [])) {
                    // line 90
                    echo "               </div>
               ";
                }
                // line 92
                echo "\t\t\t   <div class=\"singlepost-nav\">
           ";
                // line 93
                if ($this->getAttribute($this->getAttribute($context["post"], "next", []), "link", [])) {
                    // line 94
                    echo "\t\t\t\t   <a class=\"pagination-button\" href=\"";
                    echo $this->getAttribute($this->getAttribute($context["post"], "next", []), "link", []);
                    echo "\" title=\"";
                    echo $this->getAttribute($this->getAttribute($context["post"], "next", []), "title", []);
                    echo "\"><img alt=\"Pfeil nach Rechts\" src=\"/wp-content/uploads/bad-carousel-slider-zuruck.png\"></a>
\t\t\t   ";
                }
                // line 96
                echo "\t\t\t    <a class=\"current-single-category\" href=\"/referenzen?filterkey=";
                echo $this->getAttribute($context["post"], "kategorie", []);
                echo "\" title=\"";
                echo $this->getAttribute($context["post"], "kategorie", []);
                echo "\"><img alt=\"Pfeil nach Links\" src=\"/wp-content/uploads/category.png\"></a>
          ";
                // line 97
                if ($this->getAttribute($this->getAttribute($context["post"], "prev", []), "link", [])) {
                    // line 98
                    echo " \t\t\t\t   <a href=\"";
                    echo $this->getAttribute($this->getAttribute($context["post"], "prev", []), "link", []);
 
        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);
        $assetFunction($content, $location, $priority);
        // line 9
        $assetFunction = $this->env->getFunction('parse_assets')->getCallable();
        $assetVariables = [];
        if ($assetVariables && !is_array($assetVariables)) {
            throw new UnexpectedValueException('{% scripts with x %}: x is not an array');
        }
        $location = "footer";
        if ($location && !is_string($location)) {
            throw new UnexpectedValueException('{% scripts in x %}: x is not a string');
        }
        $priority = isset($assetVariables['priority']) ? $assetVariables['priority'] : 0;
        ob_start();
        // line 10
        echo "    ";
        $this->displayBlock('javascript_footer', $context, $blocks);
        $content = ob_get_clean();
        $assetFunction($content, $location, $priority);
        // line 14
        $this->displayBlock('particle', $context, $blocks);
    }
 
    // line 2
    public function block_stylesheets($context, array $blocks = [])
    {
        // line 3
        echo "    ";
    }
 
    // line 5
    public function block_javascript($context, array $blocks = [])
    {
        // line 6
        echo "    ";
    }
 
    // line 10
    public function block_javascript_footer($context, array $blocks = [])
    {
        // line 11
            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) {
    {
        // line 2
        $context["attr_extra"] = $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->attributeArrayFilter($this->getAttribute(($context["particle"] ?? null), "extra", []));
        // line 3
        $context["post_settings"] = $this->getAttribute(($context["particle"] ?? null), "post", []);
        // line 4
        $context["filter"] = $this->getAttribute(($context["post_settings"] ?? null), "filter", []);
        // line 5
        $context["sort"] = $this->getAttribute(($context["post_settings"] ?? null), "sort", []);
        // line 6
        $context["limit"] = $this->getAttribute(($context["post_settings"] ?? null), "limit", []);
        // line 7
        $context["start"] = ($this->getAttribute(($context["limit"] ?? null), "start", []) + max(0, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->intFilter($this->getAttribute(($context["ajax"] ?? null), "start", []))));
        // line 8
        $context["display"] = $this->getAttribute(($context["post_settings"] ?? null), "display", []);
        // line 9
        $context["blockwidth"] = (100 / $this->getAttribute(($context["limit"] ?? null), "columns", []));
        // line 1
        $this->parent = $this->loadTemplate("@nucleus/partials/particle.html.twig", "/partials/singlepostquery.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
    // line 13
    public function block_particle($context, array $blocks = [])
    {
        // line 14
        echo "  ";
        // line 15
        echo "  <div class=\"particle-inner-wrapper";
        if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "css", []), "class", [])) {
            echo " ";
            echo $this->getAttribute($this->getAttribute(($context["particle"] ?? null), "css", []), "class", []);
        }
        echo "\"";
        echo ($context["attr_extra"] ?? null);
        echo ">
    ";
        // line 16
        if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "ajax", []), "enabled", [])) {
            // line 17
            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 = [
            'particlecode' => [$this, 'block_particlecode'],
            'stylesheets' => [$this, 'block_stylesheets'],
            'javascript_footer' => [$this, 'block_javascript_footer'],
        ];
    }
 
    protected function doGetParent(array $context)
    {
        // line 1
        return "/partials/singlepostquery.html.twig";
    }
 
    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 2
        $context["buttonscope"] = $this->getAttribute(($context["slide"] ?? null), "flexcontent", []);
        // line 1
        $this->parent = $this->loadTemplate("/partials/singlepostquery.html.twig", "@particles/singlekuseslider.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
    // line 3
    public function block_particlecode($context, array $blocks = [])
    {
        // line 4
        echo "<div class=\"kuseslider\">
  <div id=\"slider-";
        // line 5
        echo ($context["id"] ?? null);
        echo "\" class=\"g-owlcarousel owl-carousel ";
        if (($this->getAttribute(($context["particle"] ?? null), "imageOverlay", []) == "enable")) {
            echo "has-color-overlay";
        }
        echo " slider-";
        echo $this->getAttribute(($context["post"] ?? null), "id", []);
        echo "\">
 
    ";
        // line 7
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = [])
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for \Twig\Error\LoaderError exceptions
            // see \Twig\Error\LoaderError
            if (-1 === $e->getTemplateLine()) {
                $e->guess();
            }
 
            throw $e;
        } catch (\Exception $e) {
            $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
            $e->guess();
 
            throw $e;
        }
    }
 
    {
        return $this;
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        try {
            $this->display($context);
        } catch (\Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
                    echo "            ";
                    $context["particle"] = $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "config", []), "getJoined", [0 => ("particles." . $this->getAttribute(($context["segment"] ?? null), "subtype", [])), 1 => $this->getAttribute(($context["segment"] ?? null), "attributes", [])], "method");
                    // line 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", []), "enabled", [])) || $this->getAttribute($this->getAttribute(($context["segment"] ?? null), "attributes", []), "enabled", [])))) {
                // line 15
                echo "            ";
                $this->loadTemplate([0 => (("particles/" . $this->getAttribute(($context["segment"] ?? null), "subtype", [])) . ".html.twig"), 1 => (("@particles/" . $this->getAttribute(                // line 16
($context["segment"] ?? null), "subtype", [])) . ".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 Markup($tmp, $this->env->getCharset());
            // line 20
            echo "    ";
            $context["html"] = twig_trim_filter(($context["html"] ?? null));
            // line 21
            echo "
    ";
            // line 22
            $context["classes"] = (($this->getAttribute(twig_split_filter($this->env, $this->getAttribute(($context["segment"] ?? null), "id", []), "-"), 0, [], "array") . "-particle-outline ") . twig_trim_filter(((( !($context["inContent"] ?? null)) ? ("g-content g-particle") : ("g-particle ")) . twig_join_filter($this->getAttribute(($context["segment"] ?? null), "classes", []), " "))));
            // line 23
            if (($context["html"] ?? null)) {
                // line 24
                if ($this->getAttribute(($context["gantry"] ?? null), "debug", [])) {
                    echo "<!-- START PARTICLE ";
                    echo ($context["id"] ?? null);
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = [])
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for \Twig\Error\LoaderError exceptions
            // see \Twig\Error\LoaderError
            if (-1 === $e->getTemplateLine()) {
                $e->guess();
            }
 
            throw $e;
        } catch (\Exception $e) {
            $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
            $e->guess();
 
            throw $e;
        }
    }
 
    {
        return $this;
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        try {
            $this->display($context);
        } catch (\Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
            if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
                $length = count($context['_seq']);
                $context['loop']['revindex0'] = $length - 1;
                $context['loop']['revindex'] = $length;
                $context['loop']['length'] = $length;
                $context['loop']['last'] = 1 === $length;
            }
            foreach ($context['_seq'] as $context["_key"] => $context["segment"]) {
                // line 10
                echo "            ";
                if ($this->getAttribute($context["segment"], "content", [])) {
                    // line 11
                    echo "                ";
                    echo $this->getAttribute($context["segment"], "content", []);
                    echo "
            ";
                } else {
                    // line 13
                    echo "                ";
                    $this->loadTemplate([0 => (("@nucleus/content/" . $this->getAttribute($context["segment"], "type", [])) . ".html.twig"), 1 => (("@nucleus/layout/" . $this->getAttribute($context["segment"], "type", [])) . ".html.twig")], "@nucleus/layout/block.html.twig", 13)->display(twig_array_merge($context, ["segments" => $this->getAttribute($context["segment"], "children", [])]));
                    // line 14
                    echo "            ";
                }
                // line 15
                echo "        ";
                ++$context['loop']['index0'];
                ++$context['loop']['index'];
                $context['loop']['first'] = false;
                if (isset($context['loop']['length'])) {
                    --$context['loop']['revindex0'];
                    --$context['loop']['revindex'];
                    $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                }
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['segment'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 16
            echo "    ";
        }
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = [])
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for \Twig\Error\LoaderError exceptions
            // see \Twig\Error\LoaderError
            if (-1 === $e->getTemplateLine()) {
                $e->guess();
            }
 
            throw $e;
        } catch (\Exception $e) {
            $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
            $e->guess();
 
            throw $e;
        }
    }
 
    {
        return $this;
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        try {
            $this->display($context);
        } catch (\Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
            echo "        ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["segments"] ?? null));
            $context['loop'] = [
              'parent' => $context['_parent'],
              'index0' => 0,
              'index'  => 1,
              'first'  => true,
            ];
            if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
                $length = count($context['_seq']);
                $context['loop']['revindex0'] = $length - 1;
                $context['loop']['revindex'] = $length;
                $context['loop']['length'] = $length;
                $context['loop']['last'] = 1 === $length;
            }
            foreach ($context['_seq'] as $context["_key"] => $context["segment"]) {
                // line 7
                echo "            ";
                $this->loadTemplate((("@nucleus/layout/" . $this->getAttribute($context["segment"], "type", [])) . ".html.twig"), "@nucleus/layout/grid.html.twig", 7)->display(twig_array_merge($context, ["segments" => $this->getAttribute($context["segment"], "children", [])]));
                // line 8
                echo "        ";
                ++$context['loop']['index0'];
                ++$context['loop']['index'];
                $context['loop']['first'] = false;
                if (isset($context['loop']['length'])) {
                    --$context['loop']['revindex0'];
                    --$context['loop']['revindex'];
                    $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                }
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['segment'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 9
            echo "    ";
        }
        $context["html"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 12
        if (twig_trim_filter(($context["html"] ?? null))) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = [])
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for \Twig\Error\LoaderError exceptions
            // see \Twig\Error\LoaderError
            if (-1 === $e->getTemplateLine()) {
                $e->guess();
            }
 
            throw $e;
        } catch (\Exception $e) {
            $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
            $e->guess();
 
            throw $e;
        }
    }
 
    {
        return $this;
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        try {
            $this->display($context);
        } catch (\Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
            echo "        ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["segments"] ?? null));
            $context['loop'] = [
              'parent' => $context['_parent'],
              'index0' => 0,
              'index'  => 1,
              'first'  => true,
            ];
            if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
                $length = count($context['_seq']);
                $context['loop']['revindex0'] = $length - 1;
                $context['loop']['revindex'] = $length;
                $context['loop']['length'] = $length;
                $context['loop']['last'] = 1 === $length;
            }
            foreach ($context['_seq'] as $context["_key"] => $context["segment"]) {
                // line 14
                echo "            ";
                $this->loadTemplate((("@nucleus/layout/" . $this->getAttribute($context["segment"], "type", [])) . ".html.twig"), "@nucleus/layout/section.html.twig", 14)->display(twig_array_merge($context, ["segments" => $this->getAttribute($context["segment"], "children", [])]));
                // line 15
                echo "        ";
                ++$context['loop']['index0'];
                ++$context['loop']['index'];
                $context['loop']['first'] = false;
                if (isset($context['loop']['length'])) {
                    --$context['loop']['revindex0'];
                    --$context['loop']['revindex'];
                    $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                }
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['segment'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 16
            echo "    ";
        }
        $context["html"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 19
        if (($this->getAttribute($this->getAttribute(($context["segment"] ?? null), "attributes", []), "sticky", []) || twig_trim_filter(($context["html"] ?? null)))) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = [])
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for \Twig\Error\LoaderError exceptions
            // see \Twig\Error\LoaderError
            if (-1 === $e->getTemplateLine()) {
                $e->guess();
            }
 
            throw $e;
        } catch (\Exception $e) {
            $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
            $e->guess();
 
            throw $e;
        }
    }
 
    {
        return $this;
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        try {
            $this->display($context);
        } catch (\Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
    }
 
    // line 36
    public function block_page_layout($context, array $blocks = [])
    {
        // line 37
        echo "    ";
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["segments"] ?? null));
        $context['loop'] = [
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        ];
        foreach ($context['_seq'] as $context["_key"] => $context["segment"]) {
            if (($this->getAttribute($context["segment"], "type", []) != "offcanvas")) {
                // line 38
                echo "        ";
                $this->loadTemplate((("@nucleus/layout/" . $this->getAttribute($context["segment"], "type", [])) . ".html.twig"), "@nucleus/page.html.twig", 38)->display(twig_array_merge($context, ["segments" => $this->getAttribute($context["segment"], "children", [])]));
                // line 39
                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 40
        echo "    ";
    }
 
    // line 44
    public function block_page_top($context, array $blocks = [])
    {
        // line 45
        echo "    ";
    }
 
        if ($useBlocks && isset($blocks[$name])) {
            $template = $blocks[$name][0];
            $block = $blocks[$name][1];
        } elseif (isset($this->blocks[$name])) {
            $template = $this->blocks[$name][0];
            $block = $this->blocks[$name][1];
        } else {
            $template = null;
            $block = null;
        }
 
        // avoid RCEs when sandbox is enabled
        if (null !== $template && !$template instanceof self) {
            throw new \LogicException('A block must be a method on a \Twig\Template instance.');
        }
 
        if (null !== $template) {
            try {
                $template->$block($context, $blocks);
            } catch (Error $e) {
                if (!$e->getSourceContext()) {
                    $e->setSourceContext($template->getSourceContext());
                }
 
                // this is mostly useful for \Twig\Error\LoaderError exceptions
                // see \Twig\Error\LoaderError
                if (-1 === $e->getTemplateLine()) {
                    $e->guess();
                }
 
                throw $e;
            } catch (\Exception $e) {
                $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $template->getSourceContext(), $e);
                $e->guess();
 
                throw $e;
            }
        } elseif (false !== $parent = $this->getParent($context)) {
            $parent->displayBlock($name, $context, array_merge($this->blocks, $blocks), false);
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['segment'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 24
        ob_start();
        // line 25
        echo "    ";
        $this->displayBlock('page_offcanvas', $context, $blocks);
        $context["page_offcanvas"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 32
        $context["page_offcanvas"] = ((twig_trim_filter(($context["page_offcanvas"] ?? null))) ? (twig_trim_filter(($context["page_offcanvas"] ?? null))) : (""));
        // line 33
        $context["offcanvas_position"] = ((($context["page_offcanvas"] ?? null)) ? ((($this->getAttribute($this->getAttribute(($context["offcanvas"] ?? null), "attributes", [], "any", false, true), "position", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute(($context["offcanvas"] ?? null), "attributes", [], "any", false, true), "position", []), "g-offcanvas-left")) : ("g-offcanvas-left"))) : (""));
        // line 35
        ob_start();
        // line 36
        echo "    ";
        $this->displayBlock('page_layout', $context, $blocks);
        $context["page_layout"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 43
        ob_start();
        // line 44
        echo "    ";
        $this->displayBlock('page_top', $context, $blocks);
        // line 46
        echo "    ";
        echo twig_join_filter($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", []), "getHtml", [0 => "top"], "method"), "
    ");
        echo "
";
        $context["page_top"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 49
        ob_start();
        // line 50
        echo "    ";
        $this->displayBlock('page_bottom', $context, $blocks);
        // line 52
        echo "    ";
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = [])
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for \Twig\Error\LoaderError exceptions
            // see \Twig\Error\LoaderError
            if (-1 === $e->getTemplateLine()) {
                $e->guess();
            }
 
            throw $e;
        } catch (\Exception $e) {
            $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
            $e->guess();
 
            throw $e;
        }
    }
 
    {
        return $this;
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        try {
            $this->display($context);
        } catch (\Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
    public function __construct(Environment $env)
    {
        parent::__construct($env);
 
        $this->blocks = [
            'page_head' => [$this, 'block_page_head'],
            'page_footer' => [$this, 'block_page_footer'],
        ];
    }
 
    protected function doGetParent(array $context)
    {
        // line 1
        return "@nucleus/page.html.twig";
    }
 
    protected function doDisplay(array $context, array $blocks = [])
    {
        $this->parent = $this->loadTemplate("@nucleus/page.html.twig", "partials/page.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
    // line 3
    public function block_page_head($context, array $blocks = [])
    {
        // line 4
        if (($context["page_head"] ?? null)) {
            // line 5
            echo "        ";
            echo ($context["page_head"] ?? null);
            echo "
    ";
        } else {
            // line 7
            echo "        ";
            $this->displayParentBlock("page_head", $context, $blocks);
            echo "
    ";
        }
    }
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = [])
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for \Twig\Error\LoaderError exceptions
            // see \Twig\Error\LoaderError
            if (-1 === $e->getTemplateLine()) {
                $e->guess();
            }
 
            throw $e;
        } catch (\Exception $e) {
            $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
            $e->guess();
 
            throw $e;
        }
    }
 
    {
        return $this;
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        try {
            $this->display($context);
        } catch (\Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
        $this->blocks = [
            'content' => [$this, 'block_content'],
        ];
    }
 
    protected function doGetParent(array $context)
    {
        // line 1
        return "partials/page.html.twig";
    }
 
    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 2
        $context["twigTemplate"] = "single.html.twig";
        // line 3
        $context["scope"] = "single";
        // line 1
        $this->parent = $this->loadTemplate("partials/page.html.twig", "single.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
    // line 5
    public function block_content($context, array $blocks = [])
    {
        // line 6
        echo "
    <div class=\"platform-content\">
        <div class=\"content-wrapper\">
            <section class=\"entry\">
 
                ";
        // line 11
        $this->loadTemplate([0 => (("partials/content-" . ($context["scope"] ?? null)) . ".html.twig"), 1 => "partials/content.html.twig"], "single.html.twig", 11)->display($context);
        // line 12
        echo "
            </section>
        </div> <!-- /content-wrapper -->
    </div>
 
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = [])
    {
        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
     */
defined('ABSPATH') or die;
 
use Timber\Timber;
 
/*
 * The Template for displaying all single posts
 */
 
$gantry = Gantry\Framework\Gantry::instance();
$theme  = $gantry['theme'];
 
// We need to render contents of <head> before plugin content gets added.
$context              = Timber::get_context();
$context['page_head'] = $theme->render('partials/page_head.html.twig', $context);
 
$post            = Timber::query_post();
$context['post'] = $post;
$context['wp_title'] .= ' - ' . $post->title();
 
Timber::render(['single-' . $post->ID . '.html.twig', 'single-' . $post->post_type . '.html.twig', 'single.html.twig'], $context);
 
            }
 
            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 /kuseslider/
PHPRC /var/www/F94281829866/_system/conf
PHP_INI_SCAN_DIR /var/www/F94281829866/_system/conf/php-conf.d
PATH /sbin:/usr/sbin:/bin:/usr/bin
PWD /var/www/F94281829866/_system
SHLVL 0
SCRIPT_NAME /index.php
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /kuseslider/
REMOTE_PORT 44260
SCRIPT_FILENAME /var/www/F94281829866/html/index.php
SERVER_ADMIN info@ronet.de
CONTEXT_DOCUMENT_ROOT /var/www/F94281829866/html
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /var/www/F94281829866/html
REMOTE_ADDR 34.228.52.223
SERVER_PORT 443
SERVER_ADDR 185.214.120.198
SERVER_NAME beutlhauser.biz
SERVER_SIGNATURE
HTTP_CONNECTION close
HTTP_HOST beutlhauser.biz
HTTP_ACCEPT_ENCODING br,gzip
HTTP_IF_MODIFIED_SINCE Wed, 24 Feb 2021 17:13:23 GMT
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
SSL_TLS_SNI beutlhauser.biz
HTTPS on
HTTP_AUTHORIZATION
REDIRECT_STATUS 200
REDIRECT_SSL_TLS_SNI beutlhauser.biz
REDIRECT_HTTPS on
REDIRECT_HTTP_AUTHORIZATION
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1624401730.2837
REQUEST_TIME 1624401730
empty
0. Whoops\Handler\PrettyPageHandler