TypeError
Cannot access offset of type string on string TypeError thrown with message "Cannot access offset of type string on string" Stacktrace: #57 TypeError in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/themes/rt_sienna-child/skins/skin-caravan.php:5 #56 include in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/custom/caravansgrid.php:32 #55 include in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/php-code-widget/execphp.php:27 #54 eval in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/php-code-widget/execphp.php:27 #53 PHP_Code_Widget:widget in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-includes/widgets.php:1257 #52 the_widget in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/src/classes/Gantry/WordPress/Widgets.php:148 #51 Gantry\WordPress\Widgets:displayWidget in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/src/classes/Gantry/Framework/Platform.php:336 #50 Gantry\Framework\Platform:displayWidget in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:702 #49 Twig\Template:getAttribute in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/cache/gantry5/rt_sienna-child/twig/c2/c2fc2179c5119887c51441d31bfc1506790ee61bd4672f55119680fc9de418c3.php:43 #48 __TwigTemplate_19f8a83dfc19521e24d044451f70074a2d4704944ee281efd563fb8ef059503b:block_particle in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:214 #47 Twig\Template:displayBlock in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/cache/gantry5/rt_sienna-child/twig/12/12765885ed9d5e4932e6e35f50c19ed09e959f293f3dd5960fbab36edacb8f7a.php:73 #46 __TwigTemplate_eb7acbff9f3b7bdda72b6df5499d2bbfec757980e62d2537dae3324eb0d32891:doDisplay in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #45 Twig\Template:displayWithErrorHandling in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #44 Twig\Template:display in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/cache/gantry5/rt_sienna-child/twig/c2/c2fc2179c5119887c51441d31bfc1506790ee61bd4672f55119680fc9de418c3.php:35 #43 __TwigTemplate_19f8a83dfc19521e24d044451f70074a2d4704944ee281efd563fb8ef059503b:doDisplay in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #42 Twig\Template:displayWithErrorHandling in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #41 Twig\Template:display in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/cache/gantry5/rt_sienna-child/twig/d0/d028c9a6769c6d86b73190c2ff1b3f6becab62ef92da257ecb25dc2625935d06.php:53 #40 __TwigTemplate_0c4bbb85433b9e50ce0eebc2a43da59687986205480de8aca813a164b663aa8a:doDisplay in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #39 Twig\Template:displayWithErrorHandling in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #38 Twig\Template:display in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/cache/gantry5/rt_sienna-child/twig/32/327fbb8b124ab34e56c36ab23797d153593fa135349fd5077ee2f3ac1896bd92.php:75 #37 __TwigTemplate_a4cc05f46174b905f09485e98e6d871a85af5b030364ac6423f002c6a80ea6df:doDisplay in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #36 Twig\Template:displayWithErrorHandling in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #35 Twig\Template:display in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/cache/gantry5/rt_sienna-child/twig/4c/4ced11f6837f572f664a6526d728c9fb5d404d3d3253053c0773d5f8ac6d0629.php:58 #34 __TwigTemplate_5e03610137baba6f5e95b5f34764fb3fce734a205eb72af13e9c4df87cadb7fa:doDisplay in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #33 Twig\Template:displayWithErrorHandling in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #32 Twig\Template:display in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/cache/gantry5/rt_sienna-child/twig/c5/c5712a9cab0ae7969be7a5522ee701d38324dddf7d70f381017e4f741c2e779a.php:71 #31 __TwigTemplate_9cd6669dc44cfa828717bbd291e647b406eaed593eb4da93dd3b73bca0361dd9:doDisplay in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #30 Twig\Template:displayWithErrorHandling in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #29 Twig\Template:display in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/cache/gantry5/rt_sienna-child/twig/32/327fbb8b124ab34e56c36ab23797d153593fa135349fd5077ee2f3ac1896bd92.php:75 #28 __TwigTemplate_a4cc05f46174b905f09485e98e6d871a85af5b030364ac6423f002c6a80ea6df:doDisplay in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #27 Twig\Template:displayWithErrorHandling in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #26 Twig\Template:display in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/cache/gantry5/rt_sienna-child/twig/4c/4ced11f6837f572f664a6526d728c9fb5d404d3d3253053c0773d5f8ac6d0629.php:58 #25 __TwigTemplate_5e03610137baba6f5e95b5f34764fb3fce734a205eb72af13e9c4df87cadb7fa:doDisplay in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #24 Twig\Template:displayWithErrorHandling in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #23 Twig\Template:display in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/cache/gantry5/rt_sienna-child/twig/e2/e2b71612bd028b55748135eee7ca4d1473571df2f8cda010d5b558ecfc910ca8.php:51 #22 __TwigTemplate_1b9655fca8af73c4f9fad89e50f7c1e6291feb419f2162a6f4b8fbdc6697548c:doDisplay in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #21 Twig\Template:displayWithErrorHandling in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #20 Twig\Template:display in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/cache/gantry5/rt_sienna-child/twig/fc/fc18f9b1839c6a5eafc26becef953f8a4803e3b3f0e3f56dfee5a424733c303d.php:201 #19 __TwigTemplate_043c4dc20137c228f1c9e372449286b1ab34170e081b32bcbf009ee0760258c6:block_page_layout in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:214 #18 Twig\Template:displayBlock in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/cache/gantry5/rt_sienna-child/twig/fc/fc18f9b1839c6a5eafc26becef953f8a4803e3b3f0e3f56dfee5a424733c303d.php:88 #17 __TwigTemplate_043c4dc20137c228f1c9e372449286b1ab34170e081b32bcbf009ee0760258c6:doDisplay in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #16 Twig\Template:displayWithErrorHandling in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #15 Twig\Template:display in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/cache/gantry5/rt_sienna-child/twig/7f/7fdff11e3958baa20f06a9048b0091b7356befeb7a7d59dbd8a320848891874c.php:36 #14 __TwigTemplate_bd96b489d7aa535c9569ea70fbc48810f8cdb6bc0357c7315b7afa7a5d3b0253:doDisplay in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #13 Twig\Template:displayWithErrorHandling in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #12 Twig\Template:display in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/cache/gantry5/rt_sienna-child/twig/eb/eb3ea57490375aaef2363570022415a8098e3010ebd7d2b84bcabdf67eea4967.php:40 #11 __TwigTemplate_3b18460db9cf4414b0d44124da3002172a9f4c5ed549fc396af4c4c3d85036b1:doDisplay in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #10 Twig\Template:displayWithErrorHandling in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #9 Twig\Template:display in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:432 #8 Twig\Template:render in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/TemplateWrapper.php:47 #7 Twig\TemplateWrapper:render in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/vendor/timber/timber/lib/Loader.php:79 #6 Timber\Loader:render in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/vendor/timber/timber/lib/Timber.php:334 #5 Timber\Timber:compile in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/vendor/timber/timber/lib/Timber.php:383 #4 Timber\Timber:fetch in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/gantry5/vendor/timber/timber/lib/Timber.php:410 #3 Timber\Timber:render in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/themes/rt_sienna/page.php:39 #2 include in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-includes/template-loader.php:106 #1 require_once in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-blog-header.php:19 #0 require in /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/index.php:17
Stack frames (58)
57
TypeError
/var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/themes/rt_sienna-child/skins/skin-caravan.php5
56
include
/var/www/vhosts/sunvalleycaravanpark.com/httpdocs/custom/caravansgrid.php32
55
include
/var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/php-code-widget/execphp.php27
54
eval
/var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/plugins/php-code-widget/execphp.php27
53
PHP_Code_Widget widget
/var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-includes/widgets.php1257
52
the_widget
/src/classes/Gantry/WordPress/Widgets.php148
51
Gantry\WordPress\Widgets displayWidget
/src/classes/Gantry/Framework/Platform.php336
50
Gantry\Framework\Platform displayWidget
/compat/vendor/twig/twig/src/Template.php702
49
Twig\Template getAttribute
/var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/cache/gantry5/rt_sienna-child/twig/c2/c2fc2179c5119887c51441d31bfc1506790ee61bd4672f55119680fc9de418c3.php43
48
__TwigTemplate_19f8a83dfc19521e24d044451f70074a2d4704944ee281efd563fb8ef059503b block_particle
/compat/vendor/twig/twig/src/Template.php214
47
Twig\Template displayBlock
/var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/cache/gantry5/rt_sienna-child/twig/12/12765885ed9d5e4932e6e35f50c19ed09e959f293f3dd5960fbab36edacb8f7a.php73
46
__TwigTemplate_eb7acbff9f3b7bdda72b6df5499d2bbfec757980e62d2537dae3324eb0d32891 doDisplay
/compat/vendor/twig/twig/src/Template.php453
45
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
44
Twig\Template display
/var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/cache/gantry5/rt_sienna-child/twig/c2/c2fc2179c5119887c51441d31bfc1506790ee61bd4672f55119680fc9de418c3.php35
43
__TwigTemplate_19f8a83dfc19521e24d044451f70074a2d4704944ee281efd563fb8ef059503b doDisplay
/compat/vendor/twig/twig/src/Template.php453
42
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
41
Twig\Template display
/var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/cache/gantry5/rt_sienna-child/twig/d0/d028c9a6769c6d86b73190c2ff1b3f6becab62ef92da257ecb25dc2625935d06.php53
40
__TwigTemplate_0c4bbb85433b9e50ce0eebc2a43da59687986205480de8aca813a164b663aa8a doDisplay
/compat/vendor/twig/twig/src/Template.php453
39
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
38
Twig\Template display
/var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/cache/gantry5/rt_sienna-child/twig/32/327fbb8b124ab34e56c36ab23797d153593fa135349fd5077ee2f3ac1896bd92.php75
37
__TwigTemplate_a4cc05f46174b905f09485e98e6d871a85af5b030364ac6423f002c6a80ea6df doDisplay
/compat/vendor/twig/twig/src/Template.php453
36
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
35
Twig\Template display
/var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/cache/gantry5/rt_sienna-child/twig/4c/4ced11f6837f572f664a6526d728c9fb5d404d3d3253053c0773d5f8ac6d0629.php58
34
__TwigTemplate_5e03610137baba6f5e95b5f34764fb3fce734a205eb72af13e9c4df87cadb7fa doDisplay
/compat/vendor/twig/twig/src/Template.php453
33
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
32
Twig\Template display
/var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/cache/gantry5/rt_sienna-child/twig/c5/c5712a9cab0ae7969be7a5522ee701d38324dddf7d70f381017e4f741c2e779a.php71
31
__TwigTemplate_9cd6669dc44cfa828717bbd291e647b406eaed593eb4da93dd3b73bca0361dd9 doDisplay
/compat/vendor/twig/twig/src/Template.php453
30
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
29
Twig\Template display
/var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/cache/gantry5/rt_sienna-child/twig/32/327fbb8b124ab34e56c36ab23797d153593fa135349fd5077ee2f3ac1896bd92.php75
28
__TwigTemplate_a4cc05f46174b905f09485e98e6d871a85af5b030364ac6423f002c6a80ea6df doDisplay
/compat/vendor/twig/twig/src/Template.php453
27
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
26
Twig\Template display
/var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/cache/gantry5/rt_sienna-child/twig/4c/4ced11f6837f572f664a6526d728c9fb5d404d3d3253053c0773d5f8ac6d0629.php58
25
__TwigTemplate_5e03610137baba6f5e95b5f34764fb3fce734a205eb72af13e9c4df87cadb7fa doDisplay
/compat/vendor/twig/twig/src/Template.php453
24
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
23
Twig\Template display
/var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/cache/gantry5/rt_sienna-child/twig/e2/e2b71612bd028b55748135eee7ca4d1473571df2f8cda010d5b558ecfc910ca8.php51
22
__TwigTemplate_1b9655fca8af73c4f9fad89e50f7c1e6291feb419f2162a6f4b8fbdc6697548c doDisplay
/compat/vendor/twig/twig/src/Template.php453
21
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
20
Twig\Template display
/var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/cache/gantry5/rt_sienna-child/twig/fc/fc18f9b1839c6a5eafc26becef953f8a4803e3b3f0e3f56dfee5a424733c303d.php201
19
__TwigTemplate_043c4dc20137c228f1c9e372449286b1ab34170e081b32bcbf009ee0760258c6 block_page_layout
/compat/vendor/twig/twig/src/Template.php214
18
Twig\Template displayBlock
/var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/cache/gantry5/rt_sienna-child/twig/fc/fc18f9b1839c6a5eafc26becef953f8a4803e3b3f0e3f56dfee5a424733c303d.php88
17
__TwigTemplate_043c4dc20137c228f1c9e372449286b1ab34170e081b32bcbf009ee0760258c6 doDisplay
/compat/vendor/twig/twig/src/Template.php453
16
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
15
Twig\Template display
/var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/cache/gantry5/rt_sienna-child/twig/7f/7fdff11e3958baa20f06a9048b0091b7356befeb7a7d59dbd8a320848891874c.php36
14
__TwigTemplate_bd96b489d7aa535c9569ea70fbc48810f8cdb6bc0357c7315b7afa7a5d3b0253 doDisplay
/compat/vendor/twig/twig/src/Template.php453
13
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
12
Twig\Template display
/var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/cache/gantry5/rt_sienna-child/twig/eb/eb3ea57490375aaef2363570022415a8098e3010ebd7d2b84bcabdf67eea4967.php40
11
__TwigTemplate_3b18460db9cf4414b0d44124da3002172a9f4c5ed549fc396af4c4c3d85036b1 doDisplay
/compat/vendor/twig/twig/src/Template.php453
10
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
9
Twig\Template display
/compat/vendor/twig/twig/src/Template.php432
8
Twig\Template render
/compat/vendor/twig/twig/src/TemplateWrapper.php47
7
Twig\TemplateWrapper render
/vendor/timber/timber/lib/Loader.php79
6
Timber\Loader render
/vendor/timber/timber/lib/Timber.php334
5
Timber\Timber compile
/vendor/timber/timber/lib/Timber.php383
4
Timber\Timber fetch
/vendor/timber/timber/lib/Timber.php410
3
Timber\Timber render
/var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-content/themes/rt_sienna/page.php39
2
include
/var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-includes/template-loader.php106
1
require_once
/var/www/vhosts/sunvalleycaravanpark.com/httpdocs/wp-blog-header.php19
0
require
/var/www/vhosts/sunvalleycaravanpark.com/httpdocs/index.php17
<?php 
 
$caravanDetail = $adminpanel->getCaravanByID($caravan);
$url = $caravanPage . 'id/' . $caravanDetail['id'] . '/' . $caravanDetail['slug'];
$image = $caravanDetail['featured_image']['mediumUrl'];
if (!$image) {
    $image = wp_get_attachment_image_src(2166, 'medium');
}
$wasprice = number_format($caravanDetail['wasprice'],2);                
$price = number_format($caravanDetail['price'],2);                
$bedroom = wp_get_attachment_image_src(2170,'full');
$bathroom = wp_get_attachment_image_src(2169,'full');
$person = wp_get_attachment_image_src(2167,'full');
 
 
?>
<div class="g-block size-25">
    <div class="caravanWrapper d-flex flex-column" id="caravan-<?php echo $caravanDetail['id']; ?>">
        <div class="imageWrapper">
            <?php if($caravanDetail['is_featured']){?>
            <div class="featuredWrapper"><span>Featured</span></div>
            <?php }?>
            <a href="<?php echo $url; ?>">
                <img src="<?php echo $image; ?>" style="display:block;width:100%;" /></a>
        </div>
        <div class="titleWrapper">
            <h2><a href="<?php echo $url; ?>"><?php echo $caravanDetail['title']; ?></a></h2>
        </div>
        <div class="descriptionWrapper">
            <div class="description">
                <?php echo $caravanDetail['short_description'];?>
            </div>
        </div>
        <div class="detailWrapper">
            <div class="metaWrapper">
                <div class="meta">
                    <img src="<?php echo $bedroom[0];?>" alt="" />
                    &nbsp;&nbsp;<?php echo $caravanDetail['metas']['bedrooms'];?>&nbsp;&nbsp;&nbsp;&nbsp;
                    <img src="<?php echo $bathroom[0];?>" alt="" />
                    &nbsp;&nbsp;<?php echo $caravanDetail['metas']['bathrooms'];?>&nbsp;&nbsp;&nbsp;&nbsp;
    $args['keyword'] = $_GET['keyword'];
    $args['minPrice'] = $_GET['minPrice'];
    $args['maxPrice'] = $_GET['maxPrice'];    
}
 
 
$caravansList = $adminpanel->getCaravans(0, $itemPerPage, $args);
 
$caravans['caravans'] = array_map(function ($a) {return $a->id;}, $caravansList['caravans']);
$caravanPage = get_permalink(2164);
$html = '';
$html .= '<div class="caravanscounterwrapper">Caravans : <span class="filtered">'.$caravansList['count'].'</span>/<span>'.$caravansList['totalCount'].'</span></div>';
$html .= '<div class="caravansgrid">';
 
if ($caravans['caravans']) {
    foreach (array_chunk($caravans['caravans'], 4) as $chunks) {
        $html .= '<div class="g-grid">';
        foreach ($chunks as $index => $caravan) {
            ob_start();
            include get_stylesheet_directory() . '/skins/skin-caravan.php';
            $html .= ob_get_contents();
            ob_end_clean();
        }
        $html .= '</div>';
    }
} else {
    $html .= '<div class="alert alert-info">No Caravans.</div>';
}
 
$html .= '</div>';
echo $html;?>
<?php if($caravansList['totalCount'] > $itemPerPage){?>
<div class="pagination_wrapper">
    <div class="pagination">
        <div class="g-grid">
            <div class="g-block size-100 center">
                <div class="button" data-text="Load more"><span class="button_text">Load more</span></div>
            </div>
        </div>
    </div>
Text Domain: php-code-widget
Author URI: http://ottodestruct.com
*/
 
class PHP_Code_Widget extends WP_Widget {
    function __construct() {
        load_plugin_textdomain( 'php-code-widget', false, dirname( plugin_basename( __FILE__ ) ) );
        $widget_ops = array('classname' => 'widget_execphp', 'description' => __('Arbitrary text, HTML, or PHP Code', 'php-code-widget'));
        $control_ops = array('width' => 400, 'height' => 350);
        parent::__construct('execphp', __('PHP Code', 'php-code-widget'), $widget_ops, $control_ops);
    }
 
    function widget( $args, $instance ) {
        extract($args);
        $title = apply_filters( 'widget_title', empty($instance['title']) ? '' : $instance['title'], $instance );
        $text = apply_filters( 'widget_execphp', $instance['text'], $instance );
        echo $before_widget;
        if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }
            ob_start();
            eval('?>'.$text);
            $text = ob_get_contents();
            ob_end_clean();
            ?>
            <div class="execphpwidget"><?php echo $instance['filter'] ? wpautop($text) : $text; ?></div>
        <?php
        echo $after_widget;
    }
 
    function update( $new_instance, $old_instance ) {
        $instance = $old_instance;
        $instance['title'] = strip_tags($new_instance['title']);
        if ( current_user_can('unfiltered_html') )
            $instance['text'] =  $new_instance['text'];
        else
            $instance['text'] = stripslashes( wp_filter_post_kses( $new_instance['text'] ) );
        $instance['filter'] = isset($new_instance['filter']);
        return $instance;
    }
 
    function form( $instance ) {
Text Domain: php-code-widget
Author URI: http://ottodestruct.com
*/
 
class PHP_Code_Widget extends WP_Widget {
    function __construct() {
        load_plugin_textdomain( 'php-code-widget', false, dirname( plugin_basename( __FILE__ ) ) );
        $widget_ops = array('classname' => 'widget_execphp', 'description' => __('Arbitrary text, HTML, or PHP Code', 'php-code-widget'));
        $control_ops = array('width' => 400, 'height' => 350);
        parent::__construct('execphp', __('PHP Code', 'php-code-widget'), $widget_ops, $control_ops);
    }
 
    function widget( $args, $instance ) {
        extract($args);
        $title = apply_filters( 'widget_title', empty($instance['title']) ? '' : $instance['title'], $instance );
        $text = apply_filters( 'widget_execphp', $instance['text'], $instance );
        echo $before_widget;
        if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }
            ob_start();
            eval('?>'.$text);
            $text = ob_get_contents();
            ob_end_clean();
            ?>
            <div class="execphpwidget"><?php echo $instance['filter'] ? wpautop($text) : $text; ?></div>
        <?php
        echo $after_widget;
    }
 
    function update( $new_instance, $old_instance ) {
        $instance = $old_instance;
        $instance['title'] = strip_tags($new_instance['title']);
        if ( current_user_can('unfiltered_html') )
            $instance['text'] =  $new_instance['text'];
        else
            $instance['text'] = stripslashes( wp_filter_post_kses( $new_instance['text'] ) );
        $instance['filter'] = isset($new_instance['filter']);
        return $instance;
    }
 
    function form( $instance ) {
    /** This filter is documented in wp-includes/class-wp-widget.php */
    $instance = apply_filters( 'widget_display_callback', $instance, $widget_obj, $args );
 
    if ( false === $instance ) {
        return;
    }
 
    /**
     * Fires before rendering the requested widget.
     *
     * @since 3.0.0
     *
     * @param string $widget   The widget's class name.
     * @param array  $instance The current widget instance's settings.
     * @param array  $args     An array of the widget's sidebar arguments.
     */
    do_action( 'the_widget', $widget, $instance, $args );
 
    $widget_obj->_set( -1 );
    $widget_obj->widget( $args, $instance );
}
 
/**
 * Retrieves the widget ID base value.
 *
 * @since 2.8.0
 *
 * @param string $id Widget ID.
 * @return string Widget ID base.
 */
function _get_widget_id_base( $id ) {
    return preg_replace( '/-[0-9]+$/', '', $id );
}
 
/**
 * Handle sidebars config after theme change
 *
 * @access private
 * @since 3.3.0
 *
            return '';
        }
        $widgetClass   = $widgetData['class'];
        $widgetObj     = $widgetData['widget'];
        $gantry5Widget = !empty($widgetObj->gantry5);
 
        // Do not do anything yet if we are only preparing layout and widget isn't Gantry 5 compatible.
        if (!$gantry5Widget && !empty($params['prepare_layout'])
            && $widgetData['id'] !== 'roksprocket_options'
            && $widgetData['id'] !== 'rokgallery_options'
        ) {
            return '@@DEFERRED@@';
        }
 
        $id = static::displayWidgetId(true);
 
        $args = static::getWidgetChrome($widgetClass, $params['chrome']);
 
        ob_start();
        \the_widget($widgetClass, $options['widget'], $args);
        $html = ob_get_clean();
 
        if (!$gantry5Widget && trim($html)) {
            /** @var Theme $theme */
            $theme = static::gantry()['theme'];
            $theme->wordpress(true);
        }
 
        return $html;
    }
 
    /**
     * @param string|int $sidebar_id
     * @param string|int $id
     * @param array $props
     * @return string|null
     */
    public static function getAjax($sidebar_id, $id, array $props = [])
    {
        global $wp_registered_sidebars, $wp_registered_widgets;
    }
 
    /**
     * @param string $key
     * @param array $params
     * @return string|null
     */
    public function displayWidgets($key, array $params = [])
    {
        return Widgets::displayPosition($key, $params);
    }
 
    /**
     * @param array $instance
     * @param array $params
     * @return string|null
     */
    public function displayWidget($instance = [], array $params = [])
    {
        return Widgets::displayWidget($instance, $params);
    }
 
    /**
     * @return array
     */
    public function listWidgets()
    {
        return Widgets::listWidgets();
    }
 
    /**
     * @param array $params
     * @return string
     */
    public function displaySystemMessages($params = [])
    {
        /** @var Theme $theme */
        $theme = $this->container['theme'];
 
        /** @var Messages $messages */
            }
 
            throw new RuntimeError(sprintf('Neither the property "%1$s" nor one of the methods "%1$s()", "get%1$s()"/"is%1$s()" or "__call()" exist and have public access in class "%2$s".', $item, $class), -1, $this->getSourceContext());
        }
 
        if ($isDefinedTest) {
            return true;
        }
 
        if ($this->env->hasExtension('\Twig\Extension\SandboxExtension')) {
            $this->env->getExtension('\Twig\Extension\SandboxExtension')->checkMethodAllowed($object, $method);
        }
 
        // Some objects throw exceptions when they have __call, and the method we try
        // to call is not supported. If ignoreStrictCheck is true, we should return null.
        try {
            if (!$arguments) {
                $ret = $object->$method();
            } else {
                $ret = \call_user_func_array([$object, $method], $arguments);
            }
        } catch (\BadMethodCallException $e) {
            if ($call && ($ignoreStrictCheck || !$this->env->isStrictVariables())) {
                return;
            }
            throw $e;
        }
 
        // @deprecated in 1.28
        if ($object instanceof \Twig_TemplateInterface) {
            $self = $object->getTemplateName() === $this->getTemplateName();
            $message = sprintf('Calling "%s" on template "%s" from template "%s" is deprecated since version 1.28 and won\'t be supported anymore in 2.0.', $item, $object->getTemplateName(), $this->getTemplateName());
            if ('renderBlock' === $method || 'displayBlock' === $method) {
                $message .= sprintf(' Use block("%s"%s) instead).', $arguments[0], $self ? '' : ', template');
            } elseif ('hasBlock' === $method) {
                $message .= sprintf(' Use "block("%s"%s) is defined" instead).', $arguments[0], $self ? '' : ', template');
            } elseif ('render' === $method || 'display' === $method) {
                $message .= sprintf(' Use include("%s") instead).', $object->getTemplateName());
            }
            @trigger_error($message, \E_USER_DEPRECATED);
    }
 
    protected function doGetParent(array $context)
    {
        // line 1
        return "@nucleus/partials/particle.html.twig";
    }
 
    protected function doDisplay(array $context, array $blocks = [])
    {
        $this->parent = $this->loadTemplate("@nucleus/partials/particle.html.twig", "@particles/widget.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
    // line 3
    public function block_particle($context, array $blocks = [])
    {
        // line 4
        echo "    ";
        echo $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "displayWidget", [0 => $this->getAttribute(($context["particle"] ?? null), "widget", []), 1 => ["chrome" => (($this->getAttribute(($context["particle"] ?? null), "chrome", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["particle"] ?? null), "chrome", []), "gantry")) : ("gantry")), "prepare_layout" => ($context["prepare_layout"] ?? null)]], "method");
        echo "
";
    }
 
    public function getTemplateName()
    {
        return "@particles/widget.html.twig";
    }
 
    public function isTraitable()
    {
        return false;
    }
 
    public function getDebugInfo()
    {
        return array (  42 => 4,  39 => 3,  29 => 1,);
    }
 
    /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
 
        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) {
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);
 
        $this->blocks = [
            'particle' => [$this, 'block_particle'],
        ];
    }
 
    protected function doGetParent(array $context)
    {
        // line 1
        return "@nucleus/partials/particle.html.twig";
    }
 
    protected function doDisplay(array $context, array $blocks = [])
    {
        $this->parent = $this->loadTemplate("@nucleus/partials/particle.html.twig", "@particles/widget.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
    // line 3
    public function block_particle($context, array $blocks = [])
    {
        // line 4
        echo "    ";
        echo $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "displayWidget", [0 => $this->getAttribute(($context["particle"] ?? null), "widget", []), 1 => ["chrome" => (($this->getAttribute(($context["particle"] ?? null), "chrome", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["particle"] ?? null), "chrome", []), "gantry")) : ("gantry")), "prepare_layout" => ($context["prepare_layout"] ?? null)]], "method");
        echo "
";
    }
 
    public function getTemplateName()
    {
        return "@particles/widget.html.twig";
    }
 
    public function isTraitable()
    {
        return false;
            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["enabled"] = $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "config", []), "get", [0 => (("particles." . $this->getAttribute(($context["segment"] ?? null), "type", [])) . ".enabled"), 1 => 1], "method");
                // line 4
                echo "        ";
                $context["particle"] = $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "config", []), "getJoined", [0 => ("particles." . $this->getAttribute(($context["segment"] ?? null), "type", [])), 1 => $this->getAttribute(($context["segment"] ?? null), "attributes", [])], "method");
                // line 5
                echo "    ";
            }
            // line 6
            echo "
    ";
            // line 7
            ob_start(function () { return ''; });
            // line 8
            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 9
                echo "            ";
                $this->loadTemplate([0 => (("particles/" . (($this->getAttribute(($context["segment"] ?? null), "subtype", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["segment"] ?? null), "subtype", []), "position")) : ("position"))) . ".html.twig"), 1 => (("@particles/" . (($this->getAttribute(                // line 10
($context["segment"] ?? null), "subtype", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["segment"] ?? null), "subtype", []), "position")) : ("position"))) . ".html.twig")], "@nucleus/content/position.html.twig", 9)->display($context);
                // line 11
                echo "        ";
            }
            // line 12
            echo "    ";
            $context["html"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
            // line 14
            if (twig_trim_filter(($context["html"] ?? null))) {
                // line 15
                echo "        ";
                if (($this->getAttribute(($context["gantry"] ?? null), "debug", []) && $this->getAttribute($this->getAttribute(($context["segment"] ?? null), "attributes", []), "key", []))) {
                    echo "<!-- START POSITION ";
                    echo $this->getAttribute($this->getAttribute(($context["segment"] ?? null), "attributes", []), "key", []);
                    echo " -->";
                }
                // line 16
                echo "
        <div class=\"g-content";
                // line 17
                echo (($this->getAttribute(($context["segment"] ?? null), "classes", [])) ? ((" " . twig_escape_filter($this->env, twig_join_filter($this->getAttribute(($context["segment"] ?? null), "classes", []), " ")))) : (""));
            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) {
            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 3
            echo "        ";
            $this->loadTemplate((("@nucleus/layout/" . $this->getAttribute($context["segment"], "type", [])) . ".html.twig"), "@nucleus/layout/container.html.twig", 3)->display(twig_array_merge($context, ["segments" => $this->getAttribute($context["segment"], "children", [])]));
            // line 4
            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;
        $context["html"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 6
        echo "
";
        // line 7
        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 30
    public function block_page_layout($context, array $blocks = [])
    {
        // line 31
        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 32
                echo "        ";
                $this->loadTemplate((("@nucleus/layout/" . $this->getAttribute($context["segment"], "type", [])) . ".html.twig"), "@nucleus/page.html.twig", 32)->display(twig_array_merge($context, ["segments" => $this->getAttribute($context["segment"], "children", [])]));
                // line 33
                echo "    ";
                ++$context['loop']['index0'];
                ++$context['loop']['index'];
                $context['loop']['first'] = false;
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['segment'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 34
        echo "    ";
    }
 
    // line 38
    public function block_page_top($context, array $blocks = [])
    {
        // line 39
        echo "    ";
    }
 
        if ($useBlocks && isset($blocks[$name])) {
            $template = $blocks[$name][0];
            $block = $blocks[$name][1];
        } elseif (isset($this->blocks[$name])) {
            $template = $this->blocks[$name][0];
            $block = $this->blocks[$name][1];
        } else {
            $template = null;
            $block = null;
        }
 
        // avoid RCEs when sandbox is enabled
        if (null !== $template && !$template instanceof self) {
            throw new \LogicException('A block must be a method on a \Twig\Template instance.');
        }
 
        if (null !== $template) {
            try {
                $template->$block($context, $blocks);
            } catch (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 18
        ob_start(function () { return ''; });
        // line 19
        echo "    ";
        $this->displayBlock('page_offcanvas', $context, $blocks);
        $context["page_offcanvas"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 26
        $context["page_offcanvas"] = ((twig_trim_filter(($context["page_offcanvas"] ?? null))) ? (twig_trim_filter(($context["page_offcanvas"] ?? null))) : (""));
        // line 27
        $context["offcanvas_position"] = ((($context["page_offcanvas"] ?? null)) ? ((($this->getAttribute($this->getAttribute(($context["offcanvas"] ?? null), "attributes", [], "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 29
        ob_start(function () { return ''; });
        // line 30
        echo "    ";
        $this->displayBlock('page_layout', $context, $blocks);
        $context["page_layout"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 37
        ob_start(function () { return ''; });
        // line 38
        echo "    ";
        $this->displayBlock('page_top', $context, $blocks);
        // line 40
        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 43
        ob_start(function () { return ''; });
        // line 44
        echo "    ";
        $this->displayBlock('page_bottom', $context, $blocks);
        // line 46
        echo "    ";
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = [])
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for \Twig\Error\LoaderError exceptions
            // see \Twig\Error\LoaderError
            if (-1 === $e->getTemplateLine()) {
                $e->guess();
            }
 
            throw $e;
        } catch (\Exception $e) {
            $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
            $e->guess();
 
            throw $e;
        }
    }
 
    {
        return $this;
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        try {
            $this->display($context);
        } catch (\Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
    public function __construct(Environment $env)
    {
        parent::__construct($env);
 
        $this->blocks = [
            'page_head' => [$this, 'block_page_head'],
            'page_footer' => [$this, 'block_page_footer'],
        ];
    }
 
    protected function doGetParent(array $context)
    {
        // line 1
        return "@nucleus/page.html.twig";
    }
 
    protected function doDisplay(array $context, array $blocks = [])
    {
        $this->parent = $this->loadTemplate("@nucleus/page.html.twig", "partials/page.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
    // line 3
    public function block_page_head($context, array $blocks = [])
    {
        // line 4
        if (($context["page_head"] ?? null)) {
            // line 5
            echo "        ";
            echo ($context["page_head"] ?? null);
            echo "
    ";
        } else {
            // line 7
            echo "        ";
            $this->displayParentBlock("page_head", $context, $blocks);
            echo "
    ";
        }
    }
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = [])
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for \Twig\Error\LoaderError exceptions
            // see \Twig\Error\LoaderError
            if (-1 === $e->getTemplateLine()) {
                $e->guess();
            }
 
            throw $e;
        } catch (\Exception $e) {
            $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
            $e->guess();
 
            throw $e;
        }
    }
 
    {
        return $this;
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        try {
            $this->display($context);
        } catch (\Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
        $this->blocks = [
            'content' => [$this, 'block_content'],
        ];
    }
 
    protected function doGetParent(array $context)
    {
        // line 1
        return "partials/page.html.twig";
    }
 
    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 2
        $context["twigTemplate"] = "page.html.twig";
        // line 3
        $context["scope"] = "page";
        // line 1
        $this->parent = $this->loadTemplate("partials/page.html.twig", "page.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
    // line 5
    public function block_content($context, array $blocks = [])
    {
        // line 6
        echo "
    <div class=\"platform-content\">
        <div class=\"content-wrapper\">
            <section class=\"entry\">
 
                ";
        // line 11
        $this->loadTemplate([0 => (("partials/content-" . ($context["scope"] ?? null)) . ".html.twig"), 1 => "partials/content.html.twig"], "page.html.twig", 11)->display($context);
        // line 12
        echo "
            </section>
        </div> <!-- /content-wrapper -->
    </div>
 
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = [])
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for \Twig\Error\LoaderError exceptions
            // see \Twig\Error\LoaderError
            if (-1 === $e->getTemplateLine()) {
                $e->guess();
            }
 
            throw $e;
        } catch (\Exception $e) {
            $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
            $e->guess();
 
            throw $e;
        }
    }
 
    {
        return $this;
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        try {
            $this->display($context);
        } catch (\Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        try {
            $this->display($context);
        } catch (\Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = [])
    {
        try {
     * @internal
     */
    public function __construct(Environment $env, Template $template)
    {
        $this->env = $env;
        $this->template = $template;
    }
 
    /**
     * Renders the template.
     *
     * @param array $context An array of parameters to pass to the template
     *
     * @return string The rendered template
     */
    public function render($context = [])
    {
        // using func_get_args() allows to not expose the blocks argument
        // as it should only be used by internal code
        return $this->template->render($context, \func_num_args() > 1 ? func_get_arg(1) : []);
    }
 
    /**
     * Displays the template.
     *
     * @param array $context An array of parameters to pass to the template
     */
    public function display($context = [])
    {
        // using func_get_args() allows to not expose the blocks argument
        // as it should only be used by internal code
        $this->template->display($context, \func_num_args() > 1 ? func_get_arg(1) : []);
    }
 
    /**
     * Checks if a block is defined.
     *
     * @param string $name    The block name
     * @param array  $context An array of parameters to pass to the template
     *
 
        $key = null;
        $output = false;
        if ( false !== $expires ) {
            ksort($data);
            $key = md5($file.json_encode($data));
            $output = $this->get_cache($key, self::CACHEGROUP, $cache_mode);
        }
 
        if ( false === $output || null === $output ) {
            $twig = $this->get_twig();
            if ( strlen($file) ) {
                $loader = $this->get_loader();
                $result = $loader->getCacheKey($file);
                do_action('timber_loader_render_file', $result);
            }
            $data = apply_filters('timber_loader_render_data', $data);
            $data = apply_filters('timber/loader/render_data', $data, $file);
            $template = $twig->load($file);
            $output = $template->render($data);
        }
 
        if ( false !== $output && false !== $expires && null !== $key ) {
            $this->delete_cache();
            $this->set_cache($key, $output, self::CACHEGROUP, $expires, $cache_mode);
        }
        $output = apply_filters('timber_output', $output);
        return apply_filters('timber/output', $output, $data, $file);
    }
 
    protected function delete_cache() {
        Cleaner::delete_transients();
    }
 
    /**
     * Get first existing template.
     *
     * @param array|string $templates  Name(s) of the Twig template(s) to choose from.
     * @return string|bool             Name of chosen template, otherwise false.
     */
        if ( $via_render ) {
            $file = apply_filters('timber_render_file', $file);
        } else {
            $file = apply_filters('timber_compile_file', $file);
        }
 
        $output = false;
 
        if ($file !== false) {
            if ( is_null($data) ) {
                $data = array();
            }
 
            if ( $via_render ) {
                $data = apply_filters('timber_render_data', $data);
            } else {
                $data = apply_filters('timber_compile_data', $data);
            }
 
            $output = $loader->render($file, $data, $expires, $cache_mode);
        } else {
            if ( is_array($filenames) ) {
                $filenames = implode(", ", $filenames);
            }
            Helper::error_log( 'Error loading your template files: '.$filenames.'. Make sure one of these files exists.' );
        }
 
        do_action('timber_compile_done');
        return $output;
    }
 
    /**
     * Compile a string.
     *
     * @api
     * @example
     * ```php
     * $data = array(
     *     'username' => 'Jane Doe',
     * );
        $twig = $dummy_loader->get_twig();
        $template = $twig->createTemplate($string);
        return $template->render($data);
    }
 
    /**
     * Fetch function.
     *
     * @api
     * @param array|string $filenames  Name of the Twig file to render. If this is an array of files, Timber will
     *                                 render the first file that exists.
     * @param array        $data       Optional. An array of data to use in Twig template.
     * @param bool|int     $expires    Optional. In seconds. Use false to disable cache altogether. When passed an
     *                                 array, the first value is used for non-logged in visitors, the second for users.
     *                                 Default false.
     * @param string       $cache_mode Optional. Any of the cache mode constants defined in TimberLoader.
     * @return bool|string The returned output.
     */
    public static function fetch( $filenames, $data = array(), $expires = false, $cache_mode = Loader::CACHE_USE_DEFAULT ) {
        $output = self::compile($filenames, $data, $expires, $cache_mode, true);
        $output = apply_filters('timber_compile_result', $output);
        return $output;
    }
 
    /**
     * Render function.
     *
     * Passes data to a Twig file and echoes the output.
     *
     * @api
     * @example
     * ```php
     * $context = Timber::context();
     *
     * Timber::render( 'index.twig', $context );
     * ```
     * @param array|string $filenames  Name of the Twig file to render. If this is an array of files, Timber will
     *                                 render the first file that exists.
     * @param array        $data       Optional. An array of data to use in Twig template.
     * @param bool|int     $expires    Optional. In seconds. Use false to disable cache altogether. When passed an
     * Passes data to a Twig file and echoes the output.
     *
     * @api
     * @example
     * ```php
     * $context = Timber::context();
     *
     * Timber::render( 'index.twig', $context );
     * ```
     * @param array|string $filenames  Name of the Twig file to render. If this is an array of files, Timber will
     *                                 render the first file that exists.
     * @param array        $data       Optional. An array of data to use in Twig template.
     * @param bool|int     $expires    Optional. In seconds. Use false to disable cache altogether. When passed an
     *                                 array, the first value is used for non-logged in visitors, the second for users.
     *                                 Default false.
     * @param string       $cache_mode Optional. Any of the cache mode constants defined in TimberLoader.
     * @return bool|string The echoed output.
     */
    public static function render( $filenames, $data = array(), $expires = false, $cache_mode = Loader::CACHE_USE_DEFAULT ) {
        $output = self::fetch($filenames, $data, $expires, $cache_mode);
        echo $output;
        return $output;
    }
 
    /**
     * Render a string with Twig variables.
     *
     * @api
     * @example
     * ```php
     * $data = array(
     *     'username' => 'Jane Doe',
     * );
     *
     * Timber::render_string( 'Hi {{ username }}, I’m a string with a custom Twig variable', $data );
     * ```
     * @param string $string A string with Twig variables.
     * @param array  $data   An array of data to use in Twig template.
     * @return bool|string
     */
 *
 * To generate specific templates for your pages you can use:
 * /mytheme/views/page-mypage.html.twig
 * (which will still route through this PHP file)
 * OR
 * /mytheme/page-mypage.php
 * (in which case you'll want to duplicate this file and save to the above path)
 */
 
$gantry = Gantry\Framework\Gantry::instance();
$theme  = $gantry['theme'];
 
// We need to render contents of <head> before plugin content gets added.
$context              = Timber::get_context();
$context['page_head'] = $theme->render('partials/page_head.html.twig', $context);
 
$post            = Timber::query_post();
$context['post'] = $post;
 
Timber::render(['page-' . $post->post_name . '.html.twig', 'page.html.twig'], $context);
 
            }
 
            break;
        }
    }
 
    if ( ! $template ) {
        $template = get_index_template();
    }
 
    /**
     * Filters the path of the current template before including it.
     *
     * @since 3.0.0
     *
     * @param string $template The path of the template to include.
     */
    $template = apply_filters( 'template_include', $template );
    if ( $template ) {
        include $template;
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
}
 
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( ! isset( $wp_did_header ) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once __DIR__ . '/wp-load.php';
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once ABSPATH . WPINC . '/template-loader.php';
 
}
 
<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */
 
/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define( 'WP_USE_THEMES', true );
 
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE Apache
REQUEST_URI /caravans/
USER sunvalleycaravanpark
HOME /var/www/vhosts/sunvalleycaravanpark.com
SCRIPT_NAME /index.php
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /caravans/
REMOTE_PORT 39832
SCRIPT_FILENAME /var/www/vhosts/sunvalleycaravanpark.com/httpdocs/index.php
SERVER_ADMIN root@localhost
CONTEXT_DOCUMENT_ROOT /var/www/vhosts/sunvalleycaravanpark.com/httpdocs
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /var/www/vhosts/sunvalleycaravanpark.com/httpdocs
REMOTE_ADDR 3.236.18.161
SERVER_PORT 443
SERVER_ADDR 5.254.2.10
SERVER_NAME sunvalleycaravanpark.com
SERVER_SIGNATURE
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_CONNECTION Keep-Alive
HTTP_HOST sunvalleycaravanpark.com
HTTP_ACCEPT_ENCODING br,gzip
HTTP_IF_MODIFIED_SINCE Sat, 13 Aug 2022 06:40:52 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/)
proxy-nokeepalive 1
SSL_TLS_SNI sunvalleycaravanpark.com
HTTPS on
HTTP_AUTHORIZATION
UNIQUE_ID Y4n@nfp47xLTHfom0O170gAAAFM
REDIRECT_STATUS 200
REDIRECT_SSL_TLS_SNI sunvalleycaravanpark.com
REDIRECT_HTTPS on
REDIRECT_HTTP_AUTHORIZATION
REDIRECT_UNIQUE_ID Y4n@nfp47xLTHfom0O170gAAAFM
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1669987997.3818
REQUEST_TIME 1669987997
Key Value
ps2id_p_plugin_slug page-scroll-to-id
ps2id_p_plugin_unbind_defer_script jquery.malihu.PageScroll2id-unbind-defer.js
ps2id_p_version 1.7.5
ps2id_p_pl_pfx mPS2id_
0. Whoops\Handler\PrettyPageHandler