Twig_Error_Runtime
An exception has been thrown during the rendering of a template ("array_chunk() expects parameter 1 to be array, boolean given").
Previous exceptions
  • array_chunk() expects parameter 1 to be array, boolean given (2)
Twig_Error_Runtime thrown with message "An exception has been thrown during the rendering of a template ("array_chunk() expects parameter 1 to be array, boolean given")." Stacktrace: #48 Twig_Error_Runtime in /var/www/F94882926584/html/wp-content/themes/kuse-child/custom/views/particles/icontext.html.twig:29 #47 Whoops\Exception\ErrorException in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Extension/Core.php:1597 #46 array_chunk in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Extension/Core.php:1597 #45 twig_array_batch in /var/www/F94882926584/html/wp-content/cache/gantry5/kuse-child/twig/61/616938d5189477aaabf4d091adc7fb21b2721582cad9cf1b55062c8052e88c4f.php:72 #44 __TwigTemplate_2cd513abe800492db7a84761a39f3189d2e444f264fa56f122f7f671ad6f6037:block_particlecode in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:215 #43 Twig_Template:displayBlock in /var/www/F94882926584/html/wp-content/cache/gantry5/kuse-child/twig/d5/d55415b5e36a27b75fc50d1dcbb5c27a50b62e910eba66bd9f5a5bf48d061f56.php:214 #42 __TwigTemplate_dadbf18794f103d410a98d8eb967afdd90fe37afe350b5e945901b4ed91fcba6:block_particle in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:215 #41 Twig_Template:displayBlock in /var/www/F94882926584/html/wp-content/cache/gantry5/kuse-child/twig/77/77ab829bda6a6bda7da4c83113e8948642935e1e2d458924230e0ab5658b2a79.php:62 #40 __TwigTemplate_be9602989e78fec2b871c9418e0e4b84467773f76fb22a3d5ec85a810c0fe17e:doDisplay in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:432 #39 Twig_Template:displayWithErrorHandling in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:403 #38 Twig_Template:display in /var/www/F94882926584/html/wp-content/cache/gantry5/kuse-child/twig/d5/d55415b5e36a27b75fc50d1dcbb5c27a50b62e910eba66bd9f5a5bf48d061f56.php:93 #37 __TwigTemplate_dadbf18794f103d410a98d8eb967afdd90fe37afe350b5e945901b4ed91fcba6:doDisplay in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:432 #36 Twig_Template:displayWithErrorHandling in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:403 #35 Twig_Template:display in /var/www/F94882926584/html/wp-content/cache/gantry5/kuse-child/twig/61/616938d5189477aaabf4d091adc7fb21b2721582cad9cf1b55062c8052e88c4f.php:26 #34 __TwigTemplate_2cd513abe800492db7a84761a39f3189d2e444f264fa56f122f7f671ad6f6037:doDisplay in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:432 #33 Twig_Template:displayWithErrorHandling in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:403 #32 Twig_Template:display in /var/www/F94882926584/html/wp-content/cache/gantry5/kuse-child/twig/4e/4e67dc9b7568f52f5c646315ea7efd1f756e3098b7801ae5bd2cc11311814b1b.php:60 #31 __TwigTemplate_6b6be375d399afab5614e8dc8b98b41ff696bd915a69321f4e2118e5aedd13aa:doDisplay in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:432 #30 Twig_Template:displayWithErrorHandling in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:403 #29 Twig_Template:display in /var/www/F94882926584/html/wp-content/cache/gantry5/kuse-child/twig/d9/d94c71d4338ed7f92a3c3b2bb11f2da4fc3b04696a672db42d9d95280e2ffdd0.php:64 #28 __TwigTemplate_6010a8e80cda618ffd066429006e66ab01d6c2f81f6a88e707749134e7e30ae4:doDisplay in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:432 #27 Twig_Template:displayWithErrorHandling in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:403 #26 Twig_Template:display in /var/www/F94882926584/html/wp-content/cache/gantry5/kuse-child/twig/a8/a825798c4309b3d2cec2e15a76c639e2d237289637913f0fa2f7f7bdfa06bf6d.php:47 #25 __TwigTemplate_27e19eeb3bd2fdaf1f33080761139ea4d2faaa04bbb9c7d5756ac1756ac6d546:doDisplay in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:432 #24 Twig_Template:displayWithErrorHandling in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:403 #23 Twig_Template:display in /var/www/F94882926584/html/wp-content/cache/gantry5/kuse-child/twig/e2/e2b9df4ce3470f4eea6f37270eea4cbfb615de8789aabaf8c919e8f8bedc0a60.php:60 #22 __TwigTemplate_b987c0a3341fcc674c63033a88b93ae7fc9ed6cc704d0572029e4e4229fd057e:doDisplay in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:432 #21 Twig_Template:displayWithErrorHandling in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:403 #20 Twig_Template:display in /var/www/F94882926584/html/wp-content/cache/gantry5/kuse-child/twig/fd/fd64c56777d5dc2830b9e82702a5aef32ceb7a34a78d935a8fe797b80fe80abd.php:210 #19 __TwigTemplate_c558c22a4f594ca790018819e9ad2e0e8ab188d8e7d0d32c0da8cd8745deb2f4:block_page_layout in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:215 #18 Twig_Template:displayBlock in /var/www/F94882926584/html/wp-content/cache/gantry5/kuse-child/twig/fd/fd64c56777d5dc2830b9e82702a5aef32ceb7a34a78d935a8fe797b80fe80abd.php:90 #17 __TwigTemplate_c558c22a4f594ca790018819e9ad2e0e8ab188d8e7d0d32c0da8cd8745deb2f4:doDisplay in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:432 #16 Twig_Template:displayWithErrorHandling in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:403 #15 Twig_Template:display in /var/www/F94882926584/html/wp-content/cache/gantry5/kuse-child/twig/c6/c60b662f5bd669151499ff47556c52e1e2ab404130a7d0e9047be8f7e08045a4.php:25 #14 __TwigTemplate_88601a6425dd5eaf9ed4eaa1308b99f7e9b20489dae36919df047fc1b540d91f:doDisplay in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:432 #13 Twig_Template:displayWithErrorHandling in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:403 #12 Twig_Template:display in /var/www/F94882926584/html/wp-content/cache/gantry5/kuse-child/twig/b0/b0294f6441c9bf3666e144c22352bd74484eedbf7f498f1796bc0bbed4e846c2.php:29 #11 __TwigTemplate_10cded4f20cee1c87ca12797346a175d7f946f56e64340105e37f28339c77f1f:doDisplay in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:432 #10 Twig_Template:displayWithErrorHandling in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:403 #9 Twig_Template:display in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:411 #8 Twig_Template:render in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Environment.php:362 #7 Twig_Environment:render in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/timber/timber/lib/Loader.php:74 #6 Timber\Loader:render in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/timber/timber/lib/Timber.php:318 #5 Timber\Timber:compile in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/timber/timber/lib/Timber.php:362 #4 Timber\Timber:fetch in /var/www/F94882926584/html/wp-content/plugins/gantry5/src/vendor/timber/timber/lib/Timber.php:389 #3 Timber\Timber:render in /var/www/F94882926584/html/wp-content/themes/kuse-theme/single.php:30 #2 include in /var/www/F94882926584/html/wp-includes/template-loader.php:77 #1 require_once in /var/www/F94882926584/html/wp-blog-header.php:19 #0 require in /var/www/F94882926584/html/index.php:17
Stack frames (49)
48
Twig_Error_Runtime
/
var
/
www
/
F94882926584
/
html
/
wp-content
/
themes
/
kuse-child
/
custom
/
views
/
particles
/
icontext.html.twig
29
47
Whoops
\
Exception
\
ErrorException
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Extension
/
Core.php
1597
46
array_chunk
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Extension
/
Core.php
1597
45
twig_array_batch
/
var
/
www
/
F94882926584
/
html
/
wp-content
/
cache
/
gantry5
/
kuse-child
/
twig
/
61
/
616938d5189477aaabf4d091adc7fb21b2721582cad9cf1b55062c8052e88c4f.php
72
44
__TwigTemplate_2cd513abe800492db7a84761a39f3189d2e444f264fa56f122f7f671ad6f6037
block_particlecode
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
215
43
Twig_Template
displayBlock
/
var
/
www
/
F94882926584
/
html
/
wp-content
/
cache
/
gantry5
/
kuse-child
/
twig
/
d5
/
d55415b5e36a27b75fc50d1dcbb5c27a50b62e910eba66bd9f5a5bf48d061f56.php
214
42
__TwigTemplate_dadbf18794f103d410a98d8eb967afdd90fe37afe350b5e945901b4ed91fcba6
block_particle
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
215
41
Twig_Template
displayBlock
/
var
/
www
/
F94882926584
/
html
/
wp-content
/
cache
/
gantry5
/
kuse-child
/
twig
/
77
/
77ab829bda6a6bda7da4c83113e8948642935e1e2d458924230e0ab5658b2a79.php
62
40
__TwigTemplate_be9602989e78fec2b871c9418e0e4b84467773f76fb22a3d5ec85a810c0fe17e
doDisplay
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
432
39
Twig_Template
displayWithErrorHandling
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
403
38
Twig_Template
display
/
var
/
www
/
F94882926584
/
html
/
wp-content
/
cache
/
gantry5
/
kuse-child
/
twig
/
d5
/
d55415b5e36a27b75fc50d1dcbb5c27a50b62e910eba66bd9f5a5bf48d061f56.php
93
37
__TwigTemplate_dadbf18794f103d410a98d8eb967afdd90fe37afe350b5e945901b4ed91fcba6
doDisplay
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
432
36
Twig_Template
displayWithErrorHandling
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
403
35
Twig_Template
display
/
var
/
www
/
F94882926584
/
html
/
wp-content
/
cache
/
gantry5
/
kuse-child
/
twig
/
61
/
616938d5189477aaabf4d091adc7fb21b2721582cad9cf1b55062c8052e88c4f.php
26
34
__TwigTemplate_2cd513abe800492db7a84761a39f3189d2e444f264fa56f122f7f671ad6f6037
doDisplay
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
432
33
Twig_Template
displayWithErrorHandling
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
403
32
Twig_Template
display
/
var
/
www
/
F94882926584
/
html
/
wp-content
/
cache
/
gantry5
/
kuse-child
/
twig
/
4e
/
4e67dc9b7568f52f5c646315ea7efd1f756e3098b7801ae5bd2cc11311814b1b.php
60
31
__TwigTemplate_6b6be375d399afab5614e8dc8b98b41ff696bd915a69321f4e2118e5aedd13aa
doDisplay
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
432
30
Twig_Template
displayWithErrorHandling
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
403
29
Twig_Template
display
/
var
/
www
/
F94882926584
/
html
/
wp-content
/
cache
/
gantry5
/
kuse-child
/
twig
/
d9
/
d94c71d4338ed7f92a3c3b2bb11f2da4fc3b04696a672db42d9d95280e2ffdd0.php
64
28
__TwigTemplate_6010a8e80cda618ffd066429006e66ab01d6c2f81f6a88e707749134e7e30ae4
doDisplay
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
432
27
Twig_Template
displayWithErrorHandling
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
403
26
Twig_Template
display
/
var
/
www
/
F94882926584
/
html
/
wp-content
/
cache
/
gantry5
/
kuse-child
/
twig
/
a8
/
a825798c4309b3d2cec2e15a76c639e2d237289637913f0fa2f7f7bdfa06bf6d.php
47
25
__TwigTemplate_27e19eeb3bd2fdaf1f33080761139ea4d2faaa04bbb9c7d5756ac1756ac6d546
doDisplay
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
432
24
Twig_Template
displayWithErrorHandling
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
403
23
Twig_Template
display
/
var
/
www
/
F94882926584
/
html
/
wp-content
/
cache
/
gantry5
/
kuse-child
/
twig
/
e2
/
e2b9df4ce3470f4eea6f37270eea4cbfb615de8789aabaf8c919e8f8bedc0a60.php
60
22
__TwigTemplate_b987c0a3341fcc674c63033a88b93ae7fc9ed6cc704d0572029e4e4229fd057e
doDisplay
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
432
21
Twig_Template
displayWithErrorHandling
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
403
20
Twig_Template
display
/
var
/
www
/
F94882926584
/
html
/
wp-content
/
cache
/
gantry5
/
kuse-child
/
twig
/
fd
/
fd64c56777d5dc2830b9e82702a5aef32ceb7a34a78d935a8fe797b80fe80abd.php
210
19
__TwigTemplate_c558c22a4f594ca790018819e9ad2e0e8ab188d8e7d0d32c0da8cd8745deb2f4
block_page_layout
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
215
18
Twig_Template
displayBlock
/
var
/
www
/
F94882926584
/
html
/
wp-content
/
cache
/
gantry5
/
kuse-child
/
twig
/
fd
/
fd64c56777d5dc2830b9e82702a5aef32ceb7a34a78d935a8fe797b80fe80abd.php
90
17
__TwigTemplate_c558c22a4f594ca790018819e9ad2e0e8ab188d8e7d0d32c0da8cd8745deb2f4
doDisplay
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
432
16
Twig_Template
displayWithErrorHandling
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
403
15
Twig_Template
display
/
var
/
www
/
F94882926584
/
html
/
wp-content
/
cache
/
gantry5
/
kuse-child
/
twig
/
c6
/
c60b662f5bd669151499ff47556c52e1e2ab404130a7d0e9047be8f7e08045a4.php
25
14
__TwigTemplate_88601a6425dd5eaf9ed4eaa1308b99f7e9b20489dae36919df047fc1b540d91f
doDisplay
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
432
13
Twig_Template
displayWithErrorHandling
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
403
12
Twig_Template
display
/
var
/
www
/
F94882926584
/
html
/
wp-content
/
cache
/
gantry5
/
kuse-child
/
twig
/
b0
/
b0294f6441c9bf3666e144c22352bd74484eedbf7f498f1796bc0bbed4e846c2.php
29
11
__TwigTemplate_10cded4f20cee1c87ca12797346a175d7f946f56e64340105e37f28339c77f1f
doDisplay
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
432
10
Twig_Template
displayWithErrorHandling
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
403
9
Twig_Template
display
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
411
8
Twig_Template
render
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Environment.php
362
7
Twig_Environment
render
/
vendor
/
timber
/
timber
/
lib
/
Loader.php
74
6
Timber
\
Loader
render
/
vendor
/
timber
/
timber
/
lib
/
Timber.php
318
5
Timber
\
Timber
compile
/
vendor
/
timber
/
timber
/
lib
/
Timber.php
362
4
Timber
\
Timber
fetch
/
vendor
/
timber
/
timber
/
lib
/
Timber.php
389
3
Timber
\
Timber
render
/
var
/
www
/
F94882926584
/
html
/
wp-content
/
themes
/
kuse-theme
/
single.php
30
2
include
/
var
/
www
/
F94882926584
/
html
/
wp-includes
/
template-loader.php
77
1
require_once
/
var
/
www
/
F94882926584
/
html
/
wp-blog-header.php
19
0
require
/
var
/
www
/
F94882926584
/
html
/
index.php
17
              <div class="g-block">
                <div class="iconwrapper">
                  {{source('/svg/solid/calendar-alt.svg')}}
                </div>
                <div class="icontext-content-wrapper">
                  <div class="icontexts-content">
                    <p>
                      <strong>Termin:
                      </strong>
                      {{post.get_field('datum')}}</p>

                  </div>
                </div>
              </div>
            </div>

          </div>
        </div>
{% endif %}
                {% for column in post.get_field('icontext')|batch(post.iconcols|default(['1'])) %}
                  <div class="g-grid">
                    {% for row in column %}
        {% set iconprev = '/svg/' ~ row.prevgroup.icon_style_prev|join ~ '/' ~ row.prevgroup.fa_upload_prev|replace({'far fa-': '','fal fa-': '','fas fa-': '','fab fa-': '' }) ~ '.svg' %}
            <div class="g-block">
            {% if row.link.url %}
              <a href="{{row.link.url}}">
              {% endif %}
              <div id="icontext-{{post.id}}" class="icontext layout-{{post.iconlayout}} ">
                <div class="g-block">
                  {% if post.iconlayout == 'neben' %}
                  <div class="g-grid">
                  <div class="g-block iconblock">
                  {% endif %}
                  <div class="iconwrapper">
                  {% if (row.icon_choice == 'upload') %}
                    <img class="inline-svg" src="{{ Image(row.icon_upload_prev).src }}">
                  {% elseif (row.icon_choice == 'fa') %}
                  {{source(iconprev)}}
                  {% else %}
                    <svg viewBox="0 0 13 20" xmlns="http://www.w3.org/2000/svg" aria-labelledby="title"><title>Zurück</title><polyline points="10,3 3,10 10,17"></polyline></svg>
}
 
/**
 * Batches item.
 *
 * @param array $items An array of items
 * @param int   $size  The size of the batch
 * @param mixed $fill  A value used to fill missing items
 *
 * @return array
 */
function twig_array_batch($items, $size, $fill = null)
{
    if ($items instanceof Traversable) {
        $items = iterator_to_array($items, false);
    }
 
    $size = ceil($size);
 
    $result = array_chunk($items, $size, true);
 
    if (null !== $fill && !empty($result)) {
        $last = count($result) - 1;
        if ($fillCount = $size - count($result[$last])) {
            $result[$last] = array_merge(
                $result[$last],
                array_fill(0, $fillCount, $fill)
            );
        }
    }
 
    return $result;
}
 
class_alias('Twig_Extension_Core', 'Twig\Extension\CoreExtension', false);
 
Exception message: array_chunk() expects parameter 1 to be array, boolean given
}
 
/**
 * Batches item.
 *
 * @param array $items An array of items
 * @param int   $size  The size of the batch
 * @param mixed $fill  A value used to fill missing items
 *
 * @return array
 */
function twig_array_batch($items, $size, $fill = null)
{
    if ($items instanceof Traversable) {
        $items = iterator_to_array($items, false);
    }
 
    $size = ceil($size);
 
    $result = array_chunk($items, $size, true);
 
    if (null !== $fill && !empty($result)) {
        $last = count($result) - 1;
        if ($fillCount = $size - count($result[$last])) {
            $result[$last] = array_merge(
                $result[$last],
                array_fill(0, $fillCount, $fill)
            );
        }
    }
 
    return $result;
}
 
class_alias('Twig_Extension_Core', 'Twig\Extension\CoreExtension', false);
 
                      <strong>Termin:
                      </strong>
                      ";
            // line 19
            echo $this->getAttribute(($context["post"] ?? null), "get_field", array(0 => "datum"), "method");
            echo "</p>
 
                  </div>
                </div>
              </div>
            </div>
 
          </div>
        </div>
";
        }
        // line 29
        echo "                ";
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(twig_array_batch($this->getAttribute(($context["post"] ?? null), "get_field", array(0 => "icontext"), "method"), (($this->getAttribute(($context["post"] ?? null), "iconcols", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["post"] ?? null), "iconcols", array()), array(0 => "1"))) : (array(0 => "1")))));
        foreach ($context['_seq'] as $context["_key"] => $context["column"]) {
            // line 30
            echo "                  <div class=\"g-grid\">
                    ";
            // line 31
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($context["column"]);
            $context['loop'] = array(
              'parent' => $context['_parent'],
              'index0' => 0,
              'index'  => 1,
              'first'  => true,
            );
            if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
                $length = count($context['_seq']);
                $context['loop']['revindex0'] = $length - 1;
                $context['loop']['revindex'] = $length;
                $context['loop']['length'] = $length;
                $context['loop']['last'] = 1 === $length;
            }
 
        if ($useBlocks && isset($blocks[$name])) {
            $template = $blocks[$name][0];
            $block = $blocks[$name][1];
        } elseif (isset($this->blocks[$name])) {
            $template = $this->blocks[$name][0];
            $block = $this->blocks[$name][1];
        } else {
            $template = null;
            $block = null;
        }
 
        // avoid RCEs when sandbox is enabled
        if (null !== $template && !$template instanceof self) {
            throw new LogicException('A block must be a method on a Twig_Template instance.');
        }
 
        if (null !== $template) {
            try {
                $template->$block($context, $blocks);
            } catch (Twig_Error $e) {
                if (!$e->getSourceContext()) {
                    $e->setSourceContext($template->getSourceContext());
                }
 
                // this is mostly useful for Twig_Error_Loader exceptions
                // see Twig_Error_Loader
                if (false === $e->getTemplateLine()) {
                    $e->setTemplateLine(-1);
                    $e->guess();
                }
 
                throw $e;
            } catch (Exception $e) {
                throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $template->getSourceContext(), $e);
            }
        } elseif (false !== $parent = $this->getParent($context)) {
            $parent->displayBlock($name, $context, array_merge($this->blocks, $blocks), false);
        } else {
            @trigger_error(sprintf('Silent display of undefined block "%s" in template "%s" is deprecated since version 1.29 and will throw an exception in 2.0. Use the "block(\'%s\') is defined" expression to test for block existence.', $name, $this->getTemplateName(), $name), E_USER_DEPRECATED);
                // line 68
                if (($this->getAttribute(($context["filter"] ?? null), "singlepost", array()) != true)) {
                    // line 69
                    echo "                ";
                    $this->displayBlock('particlepost', $context, $blocks);
                    // line 111
                    echo "                ";
                }
                // line 112
                echo "                ";
                if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "ajax", array()), "enabled", array())) {
                    // line 113
                    echo "                <div class=\"ajax-content\" data-totalposts=\"";
                    echo ($context["total"] ?? null);
                    echo "\">
                ";
                }
                // line 115
                echo "                ";
                $this->displayBlock('particlecode', $context, $blocks);
                // line 116
                echo "                ";
                if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "ajax", array()), "enabled", array())) {
                    // line 117
                    echo "               </div>
               ";
                }
                // line 119
                echo "              </div>
            </div>
            ";
                // line 121
                $this->loadTemplate("partials/postedit.html.twig", "/partials/postquery.html.twig", 121)->display($context);
                // line 122
                echo "          </div>
        ";
                ++$context['loop']['index0'];
                ++$context['loop']['index'];
                $context['loop']['first'] = false;
                if (isset($context['loop']['length'])) {
 
        if ($useBlocks && isset($blocks[$name])) {
            $template = $blocks[$name][0];
            $block = $blocks[$name][1];
        } elseif (isset($this->blocks[$name])) {
            $template = $this->blocks[$name][0];
            $block = $this->blocks[$name][1];
        } else {
            $template = null;
            $block = null;
        }
 
        // avoid RCEs when sandbox is enabled
        if (null !== $template && !$template instanceof self) {
            throw new LogicException('A block must be a method on a Twig_Template instance.');
        }
 
        if (null !== $template) {
            try {
                $template->$block($context, $blocks);
            } catch (Twig_Error $e) {
                if (!$e->getSourceContext()) {
                    $e->setSourceContext($template->getSourceContext());
                }
 
                // this is mostly useful for Twig_Error_Loader exceptions
                // see Twig_Error_Loader
                if (false === $e->getTemplateLine()) {
                    $e->setTemplateLine(-1);
                    $e->guess();
                }
 
                throw $e;
            } catch (Exception $e) {
                throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $template->getSourceContext(), $e);
            }
        } elseif (false !== $parent = $this->getParent($context)) {
            $parent->displayBlock($name, $context, array_merge($this->blocks, $blocks), false);
        } else {
            @trigger_error(sprintf('Silent display of undefined block "%s" in template "%s" is deprecated since version 1.29 and will throw an exception in 2.0. Use the "block(\'%s\') is defined" expression to test for block existence.', $name, $this->getTemplateName(), $name), E_USER_DEPRECATED);
        $assetFunction($content, $location, $priority);
        // line 9
        $assetFunction = $this->env->getFunction('parse_assets')->getCallable();
        $assetVariables = array();
        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 = array())
    {
        // line 3
        echo "    ";
    }
 
    // line 5
    public function block_javascript($context, array $blocks = array())
    {
        // line 6
        echo "    ";
    }
 
    // line 10
    public function block_javascript_footer($context, array $blocks = array())
    {
        // 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 = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for Twig_Error_Loader exceptions
            // see Twig_Error_Loader
            if (false === $e->getTemplateLine()) {
                $e->setTemplateLine(-1);
                $e->guess();
            }
 
            throw $e;
        } catch (Exception $e) {
            throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
        }
    }
 
    /**
     * Auto-generated method to display the template with the given context.
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     *
     * @internal
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        ob_start();
        try {
            $this->display($context);
        } catch (Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
            }
            // line 33
            if ($this->getAttribute(($context["filter"] ?? null), "metakey", array())) {
                // line 34
                $context["query_parameters"] = twig_array_merge(($context["query_parameters"] ?? null), array("meta_key" => $this->getAttribute(                // line 35
($context["filter"] ?? null), "metakey", array()), "meta_value" => $this->getAttribute(                // line 36
($context["filter"] ?? null), "metavalue", array()), "meta_compare" => $this->getAttribute(                // line 37
($context["filter"] ?? null), "metacompare", array())));
            }
            // line 40
            $context["posts"] = $this->getAttribute(($context["wordpress"] ?? null), "call", array(0 => "Timber::query_posts", 1 => ($context["query_parameters"] ?? null)), "method");
            // line 41
            $context["total"] = abs($this->getAttribute($this->getAttribute(($context["posts"] ?? null), "get_pagination", array(0 => array()), "method"), "total", array()));
            // line 42
            $context["total"] = max(twig_length_filter($this->env, ($context["posts"] ?? null)), ((($context["total"] ?? null) * max(0, $this->getAttribute(($context["limit"] ?? null), "total", array()))) - 1));
            // line 43
            $context["blockwidth"] = (100 / (($this->getAttribute(($context["limit"] ?? null), "columns", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["limit"] ?? null), "columns", array()), 1)) : (1)));
        }
        // line 1
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
    // line 46
    public function block_particle($context, array $blocks = array())
    {
        // line 47
        echo "  ";
        // line 48
        echo "  <div class=\"particle-inner-wrapper";
        if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "css", array()), "class", array())) {
            echo " ";
            echo $this->getAttribute($this->getAttribute(($context["particle"] ?? null), "css", array()), "class", array());
        }
        echo "\"";
        echo ($context["attr_extra"] ?? null);
        echo ">
    ";
        // line 49
        if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "ajax", array()), "enabled", array())) {
            // line 50
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for Twig_Error_Loader exceptions
            // see Twig_Error_Loader
            if (false === $e->getTemplateLine()) {
                $e->setTemplateLine(-1);
                $e->guess();
            }
 
            throw $e;
        } catch (Exception $e) {
            throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
        }
    }
 
    /**
     * Auto-generated method to display the template with the given context.
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     *
     * @internal
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        ob_start();
        try {
            $this->display($context);
        } catch (Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
    {
        parent::__construct($env);
 
        // line 1
        $this->parent = $this->loadTemplate("/partials/postquery.html.twig", "particles/icontext.html.twig", 1);
        $this->blocks = array(
            'particlecode' => array($this, 'block_particlecode'),
            'stylesheets' => array($this, 'block_stylesheets'),
            'javascript_footer' => array($this, 'block_javascript_footer'),
        );
    }
 
    protected function doGetParent(array $context)
    {
        return "/partials/postquery.html.twig";
    }
 
    protected function doDisplay(array $context, array $blocks = array())
    {
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
    // line 2
    public function block_particlecode($context, array $blocks = array())
    {
        // line 3
        echo "
  <div class=\"icontext-wrapper\">
      <div class=\"icontexts-inner-wrapper\">
        ";
        // line 6
        if (($this->getAttribute(($context["post"] ?? null), "veranstaltungstyp", array()) == "einzelveranstaltung")) {
            // line 7
            echo "        <div class=\"g-grid\">
          <div class=\"g-block\">
            <div id=\"dateicon\" class=\"icontext layout-ueber\">
              <div class=\"g-block\">
                <div class=\"iconwrapper\">
                  ";
            // line 12
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for Twig_Error_Loader exceptions
            // see Twig_Error_Loader
            if (false === $e->getTemplateLine()) {
                $e->setTemplateLine(-1);
                $e->guess();
            }
 
            throw $e;
        } catch (Exception $e) {
            throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
        }
    }
 
    /**
     * Auto-generated method to display the template with the given context.
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     *
     * @internal
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        ob_start();
        try {
            $this->display($context);
        } catch (Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
                    echo "            ";
                    $context["particle"] = $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "config", array()), "getJoined", array(0 => ("particles." . $this->getAttribute(($context["segment"] ?? null), "subtype", array())), 1 => $this->getAttribute(($context["segment"] ?? null), "attributes", array())), "method");
                    // line 10
                    echo "        ";
                }
                // line 11
                echo "    ";
            }
            // line 12
            echo "
    ";
            // line 13
            ob_start();
            // line 14
            echo "        ";
            if ((($context["enabled"] ?? null) && ((null === $this->getAttribute($this->getAttribute(($context["segment"] ?? null), "attributes", array()), "enabled", array())) || $this->getAttribute($this->getAttribute(($context["segment"] ?? null), "attributes", array()), "enabled", array())))) {
                // line 15
                echo "            ";
                $this->loadTemplate(array(0 => (("particles/" . $this->getAttribute(($context["segment"] ?? null), "subtype", array())) . ".html.twig"), 1 => (("@particles/" . $this->getAttribute(                // line 16
($context["segment"] ?? null), "subtype", array())) . ".html.twig"), 2 => "@nucleus/content/missing.html.twig"), "@nucleus/content/particle.html.twig", 15)->display($context);
                // line 18
                echo "        ";
            }
            // line 19
            echo "    ";
            $context["html"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
            // line 20
            echo "    ";
            $context["html"] = twig_trim_filter(($context["html"] ?? null));
            // line 21
            echo "
    ";
            // line 22
            $context["classes"] = (($this->getAttribute(twig_split_filter($this->env, $this->getAttribute(($context["segment"] ?? null), "id", array()), "-"), 0, array(), "array") . "-particle-outline ") . twig_trim_filter(((( !($context["inContent"] ?? null)) ? ("g-content g-particle") : ("g-particle ")) . twig_join_filter($this->getAttribute(($context["segment"] ?? null), "classes", array()), " "))));
            // line 23
            if (($context["html"] ?? null)) {
                // line 24
                if ($this->getAttribute(($context["gantry"] ?? null), "debug", array())) {
                    echo "<!-- START PARTICLE ";
                    echo ($context["id"] ?? null);
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for Twig_Error_Loader exceptions
            // see Twig_Error_Loader
            if (false === $e->getTemplateLine()) {
                $e->setTemplateLine(-1);
                $e->guess();
            }
 
            throw $e;
        } catch (Exception $e) {
            throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
        }
    }
 
    /**
     * Auto-generated method to display the template with the given context.
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     *
     * @internal
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        ob_start();
        try {
            $this->display($context);
        } catch (Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
            if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
                $length = count($context['_seq']);
                $context['loop']['revindex0'] = $length - 1;
                $context['loop']['revindex'] = $length;
                $context['loop']['length'] = $length;
                $context['loop']['last'] = 1 === $length;
            }
            foreach ($context['_seq'] as $context["_key"] => $context["segment"]) {
                // line 10
                echo "            ";
                if ($this->getAttribute($context["segment"], "content", array())) {
                    // line 11
                    echo "                ";
                    echo $this->getAttribute($context["segment"], "content", array());
                    echo "
            ";
                } else {
                    // line 13
                    echo "                ";
                    $this->loadTemplate(array(0 => (("@nucleus/content/" . $this->getAttribute($context["segment"], "type", array())) . ".html.twig"), 1 => (("@nucleus/layout/" . $this->getAttribute($context["segment"], "type", array())) . ".html.twig")), "@nucleus/layout/block.html.twig", 13)->display(array_merge($context, array("segments" => $this->getAttribute($context["segment"], "children", array()))));
                    // line 14
                    echo "            ";
                }
                // line 15
                echo "        ";
                ++$context['loop']['index0'];
                ++$context['loop']['index'];
                $context['loop']['first'] = false;
                if (isset($context['loop']['length'])) {
                    --$context['loop']['revindex0'];
                    --$context['loop']['revindex'];
                    $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                }
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['segment'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 16
            echo "    ";
        }
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for Twig_Error_Loader exceptions
            // see Twig_Error_Loader
            if (false === $e->getTemplateLine()) {
                $e->setTemplateLine(-1);
                $e->guess();
            }
 
            throw $e;
        } catch (Exception $e) {
            throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
        }
    }
 
    /**
     * Auto-generated method to display the template with the given context.
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     *
     * @internal
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        ob_start();
        try {
            $this->display($context);
        } catch (Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
            echo "        ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["segments"] ?? null));
            $context['loop'] = array(
              'parent' => $context['_parent'],
              'index0' => 0,
              'index'  => 1,
              'first'  => true,
            );
            if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
                $length = count($context['_seq']);
                $context['loop']['revindex0'] = $length - 1;
                $context['loop']['revindex'] = $length;
                $context['loop']['length'] = $length;
                $context['loop']['last'] = 1 === $length;
            }
            foreach ($context['_seq'] as $context["_key"] => $context["segment"]) {
                // line 7
                echo "            ";
                $this->loadTemplate((("@nucleus/layout/" . $this->getAttribute($context["segment"], "type", array())) . ".html.twig"), "@nucleus/layout/grid.html.twig", 7)->display(array_merge($context, array("segments" => $this->getAttribute($context["segment"], "children", array()))));
                // line 8
                echo "        ";
                ++$context['loop']['index0'];
                ++$context['loop']['index'];
                $context['loop']['first'] = false;
                if (isset($context['loop']['length'])) {
                    --$context['loop']['revindex0'];
                    --$context['loop']['revindex'];
                    $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                }
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['segment'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 9
            echo "    ";
        }
        $context["html"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
        // line 12
        if (twig_trim_filter(($context["html"] ?? null))) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for Twig_Error_Loader exceptions
            // see Twig_Error_Loader
            if (false === $e->getTemplateLine()) {
                $e->setTemplateLine(-1);
                $e->guess();
            }
 
            throw $e;
        } catch (Exception $e) {
            throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
        }
    }
 
    /**
     * Auto-generated method to display the template with the given context.
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     *
     * @internal
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        ob_start();
        try {
            $this->display($context);
        } catch (Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
            echo "        ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["segments"] ?? null));
            $context['loop'] = array(
              'parent' => $context['_parent'],
              'index0' => 0,
              'index'  => 1,
              'first'  => true,
            );
            if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
                $length = count($context['_seq']);
                $context['loop']['revindex0'] = $length - 1;
                $context['loop']['revindex'] = $length;
                $context['loop']['length'] = $length;
                $context['loop']['last'] = 1 === $length;
            }
            foreach ($context['_seq'] as $context["_key"] => $context["segment"]) {
                // line 14
                echo "            ";
                $this->loadTemplate((("@nucleus/layout/" . $this->getAttribute($context["segment"], "type", array())) . ".html.twig"), "@nucleus/layout/section.html.twig", 14)->display(array_merge($context, array("segments" => $this->getAttribute($context["segment"], "children", array()))));
                // 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 Twig_Markup($tmp, $this->env->getCharset());
        // line 19
        if (($this->getAttribute($this->getAttribute(($context["segment"] ?? null), "attributes", array()), "sticky", array()) || twig_trim_filter(($context["html"] ?? null)))) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for Twig_Error_Loader exceptions
            // see Twig_Error_Loader
            if (false === $e->getTemplateLine()) {
                $e->setTemplateLine(-1);
                $e->guess();
            }
 
            throw $e;
        } catch (Exception $e) {
            throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
        }
    }
 
    /**
     * Auto-generated method to display the template with the given context.
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     *
     * @internal
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        ob_start();
        try {
            $this->display($context);
        } catch (Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
    }
 
    // line 36
    public function block_page_layout($context, array $blocks = array())
    {
        // line 37
        echo "    ";
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["segments"] ?? null));
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        foreach ($context['_seq'] as $context["_key"] => $context["segment"]) {
            if (($this->getAttribute($context["segment"], "type", array()) != "offcanvas")) {
                // line 38
                echo "        ";
                $this->loadTemplate((("@nucleus/layout/" . $this->getAttribute($context["segment"], "type", array())) . ".html.twig"), "@nucleus/page.html.twig", 38)->display(array_merge($context, array("segments" => $this->getAttribute($context["segment"], "children", array()))));
                // 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 = array())
    {
        // 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 (Twig_Error $e) {
                if (!$e->getSourceContext()) {
                    $e->setSourceContext($template->getSourceContext());
                }
 
                // this is mostly useful for Twig_Error_Loader exceptions
                // see Twig_Error_Loader
                if (false === $e->getTemplateLine()) {
                    $e->setTemplateLine(-1);
                    $e->guess();
                }
 
                throw $e;
            } catch (Exception $e) {
                throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $template->getSourceContext(), $e);
            }
        } elseif (false !== $parent = $this->getParent($context)) {
            $parent->displayBlock($name, $context, array_merge($this->blocks, $blocks), false);
        } else {
            @trigger_error(sprintf('Silent display of undefined block "%s" in template "%s" is deprecated since version 1.29 and will throw an exception in 2.0. Use the "block(\'%s\') is defined" expression to test for block existence.', $name, $this->getTemplateName(), $name), E_USER_DEPRECATED);
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['segment'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 24
        ob_start();
        // line 25
        echo "    ";
        $this->displayBlock('page_offcanvas', $context, $blocks);
        $context["page_offcanvas"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_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", array(), "any", false, true), "position", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute(($context["offcanvas"] ?? null), "attributes", array(), "any", false, true), "position", array()), "g-offcanvas-left")) : ("g-offcanvas-left"))) : (""));
        // line 35
        ob_start();
        // line 36
        echo "    ";
        $this->displayBlock('page_layout', $context, $blocks);
        $context["page_layout"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_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", array()), "getHtml", array(0 => "top"), "method"), "
    ");
        echo "
";
        $context["page_top"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_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 = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for Twig_Error_Loader exceptions
            // see Twig_Error_Loader
            if (false === $e->getTemplateLine()) {
                $e->setTemplateLine(-1);
                $e->guess();
            }
 
            throw $e;
        } catch (Exception $e) {
            throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
        }
    }
 
    /**
     * Auto-generated method to display the template with the given context.
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     *
     * @internal
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        ob_start();
        try {
            $this->display($context);
        } catch (Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);
 
        // line 1
        $this->parent = $this->loadTemplate("@nucleus/page.html.twig", "partials/page.html.twig", 1);
        $this->blocks = array(
            'page_head' => array($this, 'block_page_head'),
            'page_footer' => array($this, 'block_page_footer'),
        );
    }
 
    protected function doGetParent(array $context)
    {
        return "@nucleus/page.html.twig";
    }
 
    protected function doDisplay(array $context, array $blocks = array())
    {
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
    // line 3
    public function block_page_head($context, array $blocks = array())
    {
        // line 4
        if (($context["page_head"] ?? null)) {
            // line 5
            echo "        ";
            echo ($context["page_head"] ?? null);
            echo "
    ";
        } else {
            // line 7
            echo "        ";
            $this->displayParentBlock("page_head", $context, $blocks);
            echo "
    ";
        }
    }
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for Twig_Error_Loader exceptions
            // see Twig_Error_Loader
            if (false === $e->getTemplateLine()) {
                $e->setTemplateLine(-1);
                $e->guess();
            }
 
            throw $e;
        } catch (Exception $e) {
            throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
        }
    }
 
    /**
     * Auto-generated method to display the template with the given context.
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     *
     * @internal
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        ob_start();
        try {
            $this->display($context);
        } catch (Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        // line 1
        $this->parent = $this->loadTemplate("partials/page.html.twig", "single.html.twig", 1);
        $this->blocks = array(
            'content' => array($this, 'block_content'),
        );
    }
 
    protected function doGetParent(array $context)
    {
        return "partials/page.html.twig";
    }
 
    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 2
        $context["twigTemplate"] = "single.html.twig";
        // line 3
        $context["scope"] = "single";
        // line 1
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
    // line 5
    public function block_content($context, array $blocks = array())
    {
        // line 6
        echo "
    <div class=\"platform-content\">
        <div class=\"content-wrapper\">
            <section class=\"entry\">
 
                ";
        // line 11
        $this->loadTemplate(array(0 => (("partials/content-" . ($context["scope"] ?? null)) . ".html.twig"), 1 => "partials/content.html.twig"), "single.html.twig", 11)->display($context);
        // line 12
        echo "
            </section>
        </div> <!-- /content-wrapper -->
    </div>
 
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for Twig_Error_Loader exceptions
            // see Twig_Error_Loader
            if (false === $e->getTemplateLine()) {
                $e->setTemplateLine(-1);
                $e->guess();
            }
 
            throw $e;
        } catch (Exception $e) {
            throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
        }
    }
 
    /**
     * Auto-generated method to display the template with the given context.
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     *
     * @internal
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        ob_start();
        try {
            $this->display($context);
        } catch (Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
     * @return array An array of blocks
     *
     * @internal
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        ob_start();
        try {
            $this->display($context);
        } catch (Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
        @trigger_error(sprintf('The %s method is deprecated since version 1.22 and will be removed in Twig 2.0.', __METHOD__), E_USER_DEPRECATED);
 
        return $this->templateClassPrefix;
    }
 
    /**
     * Renders a template.
     *
     * @param string $name    The template name
     * @param array  $context An array of parameters to pass to the template
     *
     * @return string The rendered template
     *
     * @throws Twig_Error_Loader  When the template cannot be found
     * @throws Twig_Error_Syntax  When an error occurred during compilation
     * @throws Twig_Error_Runtime When an error occurred during rendering
     */
    public function render($name, array $context = array())
    {
        return $this->loadTemplate($name)->render($context);
    }
 
    /**
     * Displays a template.
     *
     * @param string $name    The template name
     * @param array  $context An array of parameters to pass to the template
     *
     * @throws Twig_Error_Loader  When the template cannot be found
     * @throws Twig_Error_Syntax  When an error occurred during compilation
     * @throws Twig_Error_Runtime When an error occurred during rendering
     */
    public function display($name, array $context = array())
    {
        $this->loadTemplate($name)->display($context);
    }
 
    /**
     * Loads a template.
     *
        }
 
        $key = null;
        $output = false;
        if ( false !== $expires ) {
            ksort($data);
            $key = md5($file.json_encode($data));
            $output = $this->get_cache($key, self::CACHEGROUP, $cache_mode);
        }
 
        if ( false === $output || null === $output ) {
            $twig = $this->get_twig();
            if ( strlen($file) ) {
                $loader = $this->get_loader();
                $result = $loader->getCacheKey($file);
                do_action('timber_loader_render_file', $result);
            }
            $data = apply_filters('timber_loader_render_data', $data);
            $data = apply_filters('timber/loader/render_data', $data, $file);
            $output = $twig->render($file, $data);
        }
 
        if ( false !== $output && false !== $expires && null !== $key ) {
            $this->delete_cache();
            $this->set_cache($key, $output, self::CACHEGROUP, $expires, $cache_mode);
        }
        $output = apply_filters('timber_output', $output);
        return apply_filters('timber/output', $output, $data, $file);
    }
 
    protected function delete_cache() {
        Cleaner::delete_transients();
    }
 
    /**
     * Get first existing template.
     *
     * @param array|string $templates  Name(s) of the Twig template(s) to choose from.
     * @return string|bool             Name of chosen template, otherwise false.
     */
        if ( $via_render ) {
            $file = apply_filters('timber_render_file', $file);
        } else {
            $file = apply_filters('timber_compile_file', $file);
        }
 
        $output = false;
 
        if ($file !== false) {
            if ( is_null($data) ) {
                $data = array();
            }
 
            if ( $via_render ) {
                $data = apply_filters('timber_render_data', $data);
            } else {
                $data = apply_filters('timber_compile_data', $data);
            }
 
            $output = $loader->render($file, $data, $expires, $cache_mode);
        }
 
        do_action('timber_compile_done');
        return $output;
    }
 
    /**
     * Compile a string.
     *
     * @api
     * @example
     * ```php
     * $data = array(
     *     'username' => 'Jane Doe',
     * );
     *
     * $welcome = Timber::compile_string( 'Hi {{ username }}, I’m a string with a custom Twig variable', $data );
     * ```
     * @param string $string A string with Twig variables.
     * @param array  $data   Optional. An array of data to use in Twig template.
        $twig = $dummy_loader->get_twig();
        $template = $twig->createTemplate($string);
        return $template->render($data);
    }
 
    /**
     * Fetch function.
     *
     * @api
     * @param array|string $filenames  Name of the Twig file to render. If this is an array of files, Timber will
     *                                 render the first file that exists.
     * @param array        $data       Optional. An array of data to use in Twig template.
     * @param bool|int     $expires    Optional. In seconds. Use false to disable cache altogether. When passed an
     *                                 array, the first value is used for non-logged in visitors, the second for users.
     *                                 Default false.
     * @param string       $cache_mode Optional. Any of the cache mode constants defined in TimberLoader.
     * @return bool|string The returned output.
     */
    public static function fetch( $filenames, $data = array(), $expires = false, $cache_mode = Loader::CACHE_USE_DEFAULT ) {
        $output = self::compile($filenames, $data, $expires, $cache_mode, true);
        $output = apply_filters('timber_compile_result', $output);
        return $output;
    }
 
    /**
     * Render function.
     *
     * Passes data to a Twig file and echoes the output.
     *
     * @api
     * @example
     * ```php
     * $context = Timber::get_context();
     *
     * Timber::render( 'index.twig', $context );
     * ```
     * @param array|string $filenames  Name of the Twig file to render. If this is an array of files, Timber will
     *                                 render the first file that exists.
     * @param array        $data       Optional. An array of data to use in Twig template.
     * @param bool|int     $expires    Optional. In seconds. Use false to disable cache altogether. When passed an
     * Passes data to a Twig file and echoes the output.
     *
     * @api
     * @example
     * ```php
     * $context = Timber::get_context();
     *
     * Timber::render( 'index.twig', $context );
     * ```
     * @param array|string $filenames  Name of the Twig file to render. If this is an array of files, Timber will
     *                                 render the first file that exists.
     * @param array        $data       Optional. An array of data to use in Twig template.
     * @param bool|int     $expires    Optional. In seconds. Use false to disable cache altogether. When passed an
     *                                 array, the first value is used for non-logged in visitors, the second for users.
     *                                 Default false.
     * @param string       $cache_mode Optional. Any of the cache mode constants defined in TimberLoader.
     * @return bool|string The echoed output.
     */
    public static function render( $filenames, $data = array(), $expires = false, $cache_mode = Loader::CACHE_USE_DEFAULT ) {
        $output = self::fetch($filenames, $data, $expires, $cache_mode);
        echo $output;
        return $output;
    }
 
    /**
     * Render a string with Twig variables.
     *
     * @api
     * @example
     * ```php
     * $data = array(
     *     'username' => 'Jane Doe',
     * );
     *
     * Timber::render_string( 'Hi {{ username }}, I’m a string with a custom Twig variable', $data );
     * ```
     * @param string $string A string with Twig variables.
     * @param array  $data   An array of data to use in Twig template.
     * @return bool|string
     */
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);
 
    elseif ( is_single() && $template = get_single_template() ) :
    elseif ( is_page() && $template = get_page_template() ) :
    elseif ( is_singular() && $template = get_singular_template() ) :
    elseif ( is_category() && $template = get_category_template() ) :
    elseif ( is_tag() && $template = get_tag_template() ) :
    elseif ( is_author() && $template = get_author_template() ) :
    elseif ( is_date() && $template = get_date_template() ) :
    elseif ( is_archive() && $template = get_archive_template() ) :
    else :
        $template = get_index_template();
    endif;
    /**
     * Filters the path of the current template before including it.
     *
     * @since 3.0.0
     *
     * @param string $template The path of the template to include.
     */
    if ( $template = apply_filters( 'template_include', $template ) ) {
        include( $template );
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
endif;
 
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( ! isset( $wp_did_header ) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once( dirname( __FILE__ ) . '/wp-load.php' );
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once( ABSPATH . WPINC . '/template-loader.php' );
 
}
 
<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */
 
/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define( 'WP_USE_THEMES', true );
 
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE Apache
REQUEST_URI /veranstaltungen/training-vormittag-20190920/
PHPRC /var/www/F94882926584/_system/conf
PHP_INI_SCAN_DIR /var/www/F94882926584/_system/conf/php-conf.d
PATH /sbin:/usr/sbin:/bin:/usr/bin
PWD /var/www/F94882926584/_system
SHLVL 0
SCRIPT_NAME /index.php
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /veranstaltungen/training-vormittag-20190920/
REMOTE_PORT 44928
SCRIPT_FILENAME /var/www/F94882926584/html/index.php
SERVER_ADMIN info@ronet.de
DOCUMENT_ROOT /var/www/F94882926584/html
REMOTE_ADDR 35.171.146.16
SERVER_PORT 443
SERVER_ADDR 185.214.120.198
SERVER_NAME www.chiemgau-arena.de
SERVER_SIGNATURE
HTTP_ACCEPT_ENCODING gzip
HTTP_CONNECTION close
HTTP_HOST www.chiemgau-arena.de
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 www.chiemgau-arena.de
HTTPS on
REDIRECT_STATUS 200
REDIRECT_SSL_TLS_SNI www.chiemgau-arena.de
REDIRECT_HTTPS on
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1568892390.402
REQUEST_TIME 1568892390
empty
0. Whoops\Handler\PrettyPageHandler