Twig \ Error \ RuntimeError
An exception has been thrown during the rendering of a template ("Illegal argument to a regular expression.").
Previous exceptions
  • Illegal argument to a regular expression. (3685)
Twig\Error\RuntimeError thrown with message "An exception has been thrown during the rendering of a template ("Illegal argument to a regular expression.")." Stacktrace: #63 Twig\Error\RuntimeError in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/media/gantry5/engines/nucleus/particles/position.html.twig:4 #62 JDatabaseExceptionExecuting in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/joomla/database/driver/mysqli.php:668 #61 JDatabaseDriverMysqli:execute in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/joomla/database/driver.php:1701 #60 JDatabaseDriver:loadObjectList in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/plugins/content/seoglossary/seoglossary.php:398 #59 plgContentSeoglossary:onContentPrepare in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/joomla/event/event.php:70 #58 JEvent:update in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/joomla/event/dispatcher.php:160 #57 JEventDispatcher:trigger in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/administrator/components/com_easyblog/includes/dispatcher/dispatcher.php:45 #56 EasyBlogDispatcher:trigger in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/administrator/components/com_easyblog/includes/triggers/triggers.php:48 #55 EasyBlogTriggers:trigger in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/administrator/components/com_easyblog/includes/post/post.php:5872 #54 EasyBlogPost:prepareContent in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/administrator/components/com_easyblog/includes/post/post.php:5833 #53 EasyBlogPost:getContentWithoutIntro in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/administrator/components/com_easyblog/includes/themes/helpers/featured.php:113 #52 EasyBlogThemesHelperFeatured:slider in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/administrator/components/com_easyblog/includes/themes/themes.php:430 #51 EasyBlogThemes:html in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/administrator/components/com_easyblog/includes/modules/modules.php:71 #50 EasyBlogModules:html in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/modules/mod_easyblogshowcase/tmpl/slick.php:39 #49 require in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/modules/mod_easyblogshowcase/mod_easyblogshowcase.php:45 #48 include in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/src/Helper/ModuleHelper.php:200 #47 Joomla\CMS\Helper\ModuleHelper:renderModule in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/src/Document/Renderer/Html/ModuleRenderer.php:98 #46 Joomla\CMS\Document\Renderer\Html\ModuleRenderer:render in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/src/classes/Gantry/Framework/Platform.php:294 #45 Gantry\Framework\Platform:displayModule in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/src/classes/Gantry/Framework/Platform.php:342 #44 Gantry\Framework\Platform:displayModules in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/compat/vendor/twig/twig/src/Template.php:702 #43 Twig\Template:getAttribute in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/cache/gantry5/rt_isotope/twig/c4/c49ba1827237d6633b0dd5e375c2c5764885b2885b93b4a57cfce5b8e38e164c.php:43 #42 __TwigTemplate_84a315c6bc38bf6ac18d8ec4a9497bb3670dce0b12c8be71b52bd5bbf8464af8:block_particle in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/compat/vendor/twig/twig/src/Template.php:214 #41 Twig\Template:displayBlock in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/cache/gantry5/rt_isotope/twig/9d/9d03f17db6cef31e2196497dffbe8219a2e76220c31fed39d496545e71b04fc6.php:73 #40 __TwigTemplate_c05e7c2124ca15d38445d451b4f0109361665a7ba76ce414edf95dc3feb69fad:doDisplay in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/compat/vendor/twig/twig/src/Template.php:453 #39 Twig\Template:displayWithErrorHandling in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/compat/vendor/twig/twig/src/Template.php:420 #38 Twig\Template:display in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/cache/gantry5/rt_isotope/twig/c4/c49ba1827237d6633b0dd5e375c2c5764885b2885b93b4a57cfce5b8e38e164c.php:35 #37 __TwigTemplate_84a315c6bc38bf6ac18d8ec4a9497bb3670dce0b12c8be71b52bd5bbf8464af8:doDisplay in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/compat/vendor/twig/twig/src/Template.php:453 #36 Twig\Template:displayWithErrorHandling in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/compat/vendor/twig/twig/src/Template.php:420 #35 Twig\Template:display in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/cache/gantry5/rt_isotope/twig/8e/8e6f343c0e46dae9d5a93f76b38b8ef25e8ab8266be1d8768a0e05624eb117be.php:53 #34 __TwigTemplate_629214a469e7ca2d53ac0bbd1d488317b6a3b8f6af1a6cee61b7cdd7d7d4bf2a:doDisplay in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/compat/vendor/twig/twig/src/Template.php:453 #33 Twig\Template:displayWithErrorHandling in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/compat/vendor/twig/twig/src/Template.php:420 #32 Twig\Template:display in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/compat/vendor/twig/twig/src/Template.php:432 #31 Twig\Template:render in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/compat/vendor/twig/twig/src/TemplateWrapper.php:47 #30 Twig\TemplateWrapper:render in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/compat/vendor/twig/twig/src/Environment.php:384 #29 Twig\Environment:render in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/src/classes/Gantry/Component/Theme/AbstractTheme.php:176 #28 Gantry\Component\Theme\AbstractTheme:render in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/src/classes/Gantry/Component/Theme/ThemeTrait.php:825 #27 Gantry\Framework\Theme:getContent in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/src/classes/Gantry/Component/Theme/ThemeTrait.php:718 #26 Gantry\Framework\Theme:renderContent in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/src/classes/Gantry/Component/Theme/ThemeTrait.php:643 #25 Gantry\Framework\Theme:prepareLayout in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/src/classes/Gantry/Component/Theme/ThemeTrait.php:627 #24 Gantry\Framework\Theme:prepareLayout in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/src/classes/Gantry/Component/Theme/ThemeTrait.php:627 #23 Gantry\Framework\Theme:prepareLayout in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/src/classes/Gantry/Component/Theme/ThemeTrait.php:627 #22 Gantry\Framework\Theme:prepareLayout in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/src/classes/Gantry/Component/Theme/ThemeTrait.php:468 #21 Gantry\Framework\Theme:segments in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/compat/vendor/twig/twig/src/Template.php:700 #20 Twig\Template:getAttribute in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/cache/gantry5/rt_isotope/twig/9f/9f3f98961b7dea62252666c604e0e7ecf195e622f518d2c195a03906d5fa4dd1.php:47 #19 __TwigTemplate_ac020113277bad3b1427044572e186b5378284a74bb083bc8e83cc1191f09f53:doDisplay in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/compat/vendor/twig/twig/src/Template.php:453 #18 Twig\Template:displayWithErrorHandling in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/compat/vendor/twig/twig/src/Template.php:420 #17 Twig\Template:display in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/cache/gantry5/rt_isotope/twig/8c/8c78cdf209552b6a1f052d9c1be2e55253fb214ef1611958743bcc7a6f22201f.php:35 #16 __TwigTemplate_21be47302722667d919dc0cea27078c04036a118ee14959f5538ad6f2ef08ded:doDisplay in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/compat/vendor/twig/twig/src/Template.php:453 #15 Twig\Template:displayWithErrorHandling in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/compat/vendor/twig/twig/src/Template.php:420 #14 Twig\Template:display in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/cache/gantry5/rt_isotope/twig/b8/b893578df2a18376de2253a87a71cb4310922f42438c00c4b18fa5ff7c1bfff8.php:35 #13 __TwigTemplate_cc833b0bdf8c6dae96e9f68ae446a35e57cdce1919bec1eb4efac4fdcbb95993:doDisplay in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/compat/vendor/twig/twig/src/Template.php:453 #12 Twig\Template:displayWithErrorHandling in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/compat/vendor/twig/twig/src/Template.php:420 #11 Twig\Template:display in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/compat/vendor/twig/twig/src/Template.php:432 #10 Twig\Template:render in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/compat/vendor/twig/twig/src/TemplateWrapper.php:47 #9 Twig\TemplateWrapper:render in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/compat/vendor/twig/twig/src/Environment.php:384 #8 Twig\Environment:render in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/gantry5/src/classes/Gantry/Component/Theme/AbstractTheme.php:176 #7 Gantry\Component\Theme\AbstractTheme:render in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/templates/rt_isotope/index.php:23 #6 require in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/src/Document/HtmlDocument.php:678 #5 Joomla\CMS\Document\HtmlDocument:_loadTemplate in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/src/Document/HtmlDocument.php:740 #4 Joomla\CMS\Document\HtmlDocument:_fetchTemplate in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/src/Document/HtmlDocument.php:555 #3 Joomla\CMS\Document\HtmlDocument:parse in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/src/Application/CMSApplication.php:1098 #2 Joomla\CMS\Application\CMSApplication:render in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/src/Application/SiteApplication.php:778 #1 Joomla\CMS\Application\SiteApplication:render in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/src/Application/CMSApplication.php:231 #0 Joomla\CMS\Application\CMSApplication:execute in /services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/index.php:49
Stack frames (64)
63
Twig\Error\RuntimeError
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/media/gantry5/engines/nucleus/particles/position.html.twig4
62
JDatabaseExceptionExecuting
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/joomla/database/driver/mysqli.php668
61
JDatabaseDriverMysqli execute
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/joomla/database/driver.php1701
60
JDatabaseDriver loadObjectList
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/plugins/content/seoglossary/seoglossary.php398
59
plgContentSeoglossary onContentPrepare
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/joomla/event/event.php70
58
JEvent update
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/joomla/event/dispatcher.php160
57
JEventDispatcher trigger
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/administrator/components/com_easyblog/includes/dispatcher/dispatcher.php45
56
EasyBlogDispatcher trigger
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/administrator/components/com_easyblog/includes/triggers/triggers.php48
55
EasyBlogTriggers trigger
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/administrator/components/com_easyblog/includes/post/post.php5872
54
EasyBlogPost prepareContent
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/administrator/components/com_easyblog/includes/post/post.php5833
53
EasyBlogPost getContentWithoutIntro
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/administrator/components/com_easyblog/includes/themes/helpers/featured.php113
52
EasyBlogThemesHelperFeatured slider
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/administrator/components/com_easyblog/includes/themes/themes.php430
51
EasyBlogThemes html
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/administrator/components/com_easyblog/includes/modules/modules.php71
50
EasyBlogModules html
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/modules/mod_easyblogshowcase/tmpl/slick.php39
49
require
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/modules/mod_easyblogshowcase/mod_easyblogshowcase.php45
48
include
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/src/Helper/ModuleHelper.php200
47
Joomla\CMS\Helper\ModuleHelper renderModule
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/src/Document/Renderer/Html/ModuleRenderer.php98
46
Joomla\CMS\Document\Renderer\Html\ModuleRenderer render
/src/classes/Gantry/Framework/Platform.php294
45
Gantry\Framework\Platform displayModule
/src/classes/Gantry/Framework/Platform.php342
44
Gantry\Framework\Platform displayModules
/compat/vendor/twig/twig/src/Template.php702
43
Twig\Template getAttribute
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/cache/gantry5/rt_isotope/twig/c4/c49ba1827237d6633b0dd5e375c2c5764885b2885b93b4a57cfce5b8e38e164c.php43
42
__TwigTemplate_84a315c6bc38bf6ac18d8ec4a9497bb3670dce0b12c8be71b52bd5bbf8464af8 block_particle
/compat/vendor/twig/twig/src/Template.php214
41
Twig\Template displayBlock
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/cache/gantry5/rt_isotope/twig/9d/9d03f17db6cef31e2196497dffbe8219a2e76220c31fed39d496545e71b04fc6.php73
40
__TwigTemplate_c05e7c2124ca15d38445d451b4f0109361665a7ba76ce414edf95dc3feb69fad doDisplay
/compat/vendor/twig/twig/src/Template.php453
39
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
38
Twig\Template display
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/cache/gantry5/rt_isotope/twig/c4/c49ba1827237d6633b0dd5e375c2c5764885b2885b93b4a57cfce5b8e38e164c.php35
37
__TwigTemplate_84a315c6bc38bf6ac18d8ec4a9497bb3670dce0b12c8be71b52bd5bbf8464af8 doDisplay
/compat/vendor/twig/twig/src/Template.php453
36
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
35
Twig\Template display
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/cache/gantry5/rt_isotope/twig/8e/8e6f343c0e46dae9d5a93f76b38b8ef25e8ab8266be1d8768a0e05624eb117be.php53
34
__TwigTemplate_629214a469e7ca2d53ac0bbd1d488317b6a3b8f6af1a6cee61b7cdd7d7d4bf2a doDisplay
/compat/vendor/twig/twig/src/Template.php453
33
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
32
Twig\Template display
/compat/vendor/twig/twig/src/Template.php432
31
Twig\Template render
/compat/vendor/twig/twig/src/TemplateWrapper.php47
30
Twig\TemplateWrapper render
/compat/vendor/twig/twig/src/Environment.php384
29
Twig\Environment render
/src/classes/Gantry/Component/Theme/AbstractTheme.php176
28
Gantry\Component\Theme\AbstractTheme render
/src/classes/Gantry/Component/Theme/ThemeTrait.php825
27
Gantry\Framework\Theme getContent
/src/classes/Gantry/Component/Theme/ThemeTrait.php718
26
Gantry\Framework\Theme renderContent
/src/classes/Gantry/Component/Theme/ThemeTrait.php643
25
Gantry\Framework\Theme prepareLayout
/src/classes/Gantry/Component/Theme/ThemeTrait.php627
24
Gantry\Framework\Theme prepareLayout
/src/classes/Gantry/Component/Theme/ThemeTrait.php627
23
Gantry\Framework\Theme prepareLayout
/src/classes/Gantry/Component/Theme/ThemeTrait.php627
22
Gantry\Framework\Theme prepareLayout
/src/classes/Gantry/Component/Theme/ThemeTrait.php468
21
Gantry\Framework\Theme segments
/compat/vendor/twig/twig/src/Template.php700
20
Twig\Template getAttribute
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/cache/gantry5/rt_isotope/twig/9f/9f3f98961b7dea62252666c604e0e7ecf195e622f518d2c195a03906d5fa4dd1.php47
19
__TwigTemplate_ac020113277bad3b1427044572e186b5378284a74bb083bc8e83cc1191f09f53 doDisplay
/compat/vendor/twig/twig/src/Template.php453
18
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
17
Twig\Template display
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/cache/gantry5/rt_isotope/twig/8c/8c78cdf209552b6a1f052d9c1be2e55253fb214ef1611958743bcc7a6f22201f.php35
16
__TwigTemplate_21be47302722667d919dc0cea27078c04036a118ee14959f5538ad6f2ef08ded doDisplay
/compat/vendor/twig/twig/src/Template.php453
15
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
14
Twig\Template display
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/cache/gantry5/rt_isotope/twig/b8/b893578df2a18376de2253a87a71cb4310922f42438c00c4b18fa5ff7c1bfff8.php35
13
__TwigTemplate_cc833b0bdf8c6dae96e9f68ae446a35e57cdce1919bec1eb4efac4fdcbb95993 doDisplay
/compat/vendor/twig/twig/src/Template.php453
12
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
11
Twig\Template display
/compat/vendor/twig/twig/src/Template.php432
10
Twig\Template render
/compat/vendor/twig/twig/src/TemplateWrapper.php47
9
Twig\TemplateWrapper render
/compat/vendor/twig/twig/src/Environment.php384
8
Twig\Environment render
/src/classes/Gantry/Component/Theme/AbstractTheme.php176
7
Gantry\Component\Theme\AbstractTheme render
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/templates/rt_isotope/index.php23
6
require
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/src/Document/HtmlDocument.php678
5
Joomla\CMS\Document\HtmlDocument _loadTemplate
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/src/Document/HtmlDocument.php740
4
Joomla\CMS\Document\HtmlDocument _fetchTemplate
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/src/Document/HtmlDocument.php555
3
Joomla\CMS\Document\HtmlDocument parse
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/src/Application/CMSApplication.php1098
2
Joomla\CMS\Application\CMSApplication render
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/src/Application/SiteApplication.php778
1
Joomla\CMS\Application\SiteApplication render
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/libraries/src/Application/CMSApplication.php231
0
Joomla\CMS\Application\CMSApplication execute
/services15/webpages/util/d/e/derekh1.site.aplus.net/orgtology.org/public/index.php49
{% extends '@nucleus/partials/particle.html.twig' %}
 
{% block particle %}
    {{ gantry.platform.displayModules(particle.key, {'style': particle.chrome|default('gantry')})|raw }}
{% endblock %}
 
                catch (RuntimeException $e)
                {
                    // Get the error number and message.
                    $this->errorNum = $this->getErrorNumber();
                    $this->errorMsg = $this->getErrorMessage();
 
                    JLog::add(JText::sprintf('JLIB_DATABASE_QUERY_FAILED', $this->errorNum, $this->errorMsg), JLog::ERROR, 'database-error');
 
                    throw new JDatabaseExceptionExecuting($query, $this->errorMsg, $this->errorNum, $e);
                }
 
                // Since we were able to reconnect, run the query again.
                return $this->execute();
            }
            // The server was not disconnected.
            else
            {
                JLog::add(JText::sprintf('JLIB_DATABASE_QUERY_FAILED', $this->errorNum, $this->errorMsg), JLog::ERROR, 'database-error');
 
                throw new JDatabaseExceptionExecuting($query, $this->errorMsg, $this->errorNum);
            }
        }
 
        return $this->cursor;
    }
 
    /**
     * Renames a table in the database.
     *
     * @param   string  $oldTable  The name of the table to be renamed
     * @param   string  $newTable  The new name for the table.
     * @param   string  $backup    Not used by MySQL.
     * @param   string  $prefix    Not used by MySQL.
     *
     * @return  JDatabaseDriverMysqli  Returns this object to support chaining.
     *
     * @since   3.0.1
     * @throws  RuntimeException
     */
    public function renameTable($oldTable, $newTable, $backup = null, $prefix = null)
Exception message: Illegal argument to a regular expression.
     *
     * NOTE: Choosing to key the result array by a non-unique field name can result in unwanted
     * behavior and should be avoided.
     *
     * @param   string  $key    The name of a field on which to key the result array.
     * @param   string  $class  The class name to use for the returned row objects.
     *
     * @return  mixed   The return value or null if the query failed.
     *
     * @since   1.7.0
     * @throws  RuntimeException
     */
    public function loadObjectList($key = '', $class = 'stdClass')
    {
        $this->connect();
 
        $array = array();
 
        // Execute the query and get the result set cursor.
        if (!($cursor = $this->execute()))
        {
            return;
        }
 
        // Get all of the rows from the result set as objects of type $class.
        while ($row = $this->fetchObject($cursor, $class))
        {
            if ($key)
            {
                $array[$row->$key] = $row;
            }
            else
            {
                $array[] = $row;
            }
        }
 
        // Free up system resources and return.
        $this->freeResult($cursor);
 
                if($fmenu)
                {
                    $menu_id=(int)$fmenu->id;
                    $query->where("NOT FIND_IN_SET(".$menu_id.",g.disable_menu)");        
                }
                if($component[0])
                {
                    $disable_component=$db->quote($component[0]);
                    $query->where("NOT FIND_IN_SET(".$disable_component.",g.disable_component)");        
                }
                    if($component[0]=="com_content")
                    {
                        if(isset($content->catid))
                        {
                        $query->where("NOT FIND_IN_SET(".$content->catid.",g.disable_category) ");
                        }
                    }
            $query->order('t.ordering');
            $db->setQuery($query);
            if (!($glossdata = $db->loadObjectList())) {
                if (JFactory::getApplication()->input->getInt('diagnose',0) == 1) {
                    echo "<b>" . $db->getErrorMsg() . "</b><br />";
                }
            }
            
            $glossaryItems = array( );
            $a = new SeoglossaryHelper();
            $i = 0;
            if($found)
            {
            foreach ( $glossdata as $item )
            {
                $i++;
                $a = new SeoglossaryHelper( );
                $defination ="";
                if(@$item->icon)
                {
                    $defination.="<img src='".$item->icon."'>";
                }
                $defination .=$a->processimage( $item->tdefinition );
     * @param   array  &$args  Arguments
     *
     * @return  mixed  Routine return value
     *
     * @since   1.5
     */
    public function update(&$args)
    {
        // First let's get the event from the argument array.  Next we will unset the
        // event argument as it has no bearing on the method to handle the event.
        $event = $args['event'];
        unset($args['event']);
 
        /*
         * If the method to handle an event exists, call it and return its return
         * value.  If it does not exist, return null.
         */
        if (method_exists($this, $event))
        {
            return call_user_func_array(array($this, $event), array_values($args));
        }
    }
}
 
        if (!isset($this->_methods[$event]) || empty($this->_methods[$event]))
        {
            // No Plugins Associated To Event!
            return $result;
        }
 
        // Loop through all plugins having a method matching our event
        foreach ($this->_methods[$event] as $key)
        {
            // Check if the plugin is present.
            if (!isset($this->_observers[$key]))
            {
                continue;
            }
 
            // Fire the event for an object based observer.
            if (is_object($this->_observers[$key]))
            {
                $args['event'] = $event;
                $value = $this->_observers[$key]->update($args);
            }
            // Fire the event for a function based observer.
            elseif (is_array($this->_observers[$key]))
            {
                $value = call_user_func_array($this->_observers[$key]['handler'], array_values($args));
            }
 
            if (isset($value))
            {
                $result[] = $value;
            }
        }
 
        return $result;
    }
 
    /**
     * Attach an observer object
     *
     * @param   object  $observer  An observer object to attach
        if (FH::isJoomla4()) {
            $this->dispatcher = EBFactory::getApplication();
        }
 
        if (FH::isJoomla31()) {
            $this->dispatcher = JDispatcher::getInstance();
        }
    }
 
    public function trigger($eventName, $args = [], $group = null)
    {
        if ($group) {
            JPluginHelper::importPlugin($group);
        }
        if (FH::isJoomla4()) {
            return $this->dispatcher->triggerEvent($eventName, $args);
        }
 
        if (FH::isJoomla31()) {
            return $this->dispatcher->trigger($eventName, $args);
        }
    }
}
 
        $params = EB::registry();
        $limitstart = $this->input->get('limitstart', 0, 'int');
 
        $dispatcher = EB::dispatcher();
 
        // Need to make this behave like how Joomla category behaves.
        if (!isset($row->catid)) {
            $row->catid = $row->category_id;
        }
 
        if (!isset($this->events[$event])) {
            return false;
        }
 
        if (FH::isJoomla4()) {
            $result = $this->app->triggerEvent($this->events[$event], array('easyblog.blog', &$row, &$params, $limitstart));
        }
 
        if (!FH::isJoomla4()) {
            $result = $dispatcher->trigger($this->events[$event], array('easyblog.blog', &$row, &$params, $limitstart));
        }
 
 
        // Remove unwanted fields.
        unset($row->catid);
 
        return $result;
    }
}
 
    public function prepareContent($type = 'list', $source = 'content')
    {
        static $prepareContent = [];
 
        $key = $this->id . $type . $source;
 
        if (!isset($prepareContent[$key])) {
            // Get the application
            $app = JFactory::getApplication();
 
            // Load up Joomla's dispatcher
            $dispatcher = EB::dispatcher();
 
            // @trigger: onEasyBlogPrepareContent
            JPluginHelper::importPlugin('easyblog');
            EB::triggers()->trigger('easyblog.prepareContent', $this);
 
            // @trigger: onEasyBlogPrepareContent
            JPluginHelper::importPlugin('content');
            EB::triggers()->trigger('prepareContent', $this);
 
            // For additional joomla content triggers, we need to store the output in various "sections"
            //onAfterDisplayTitle, onBeforeDisplayContent, onAfterDisplayContent trigger start
            $event = new stdClass();
 
            // @trigger: onAfterDisplayTitle / onContentAfterTitle
            $results = EB::triggers()->trigger('afterDisplayTitle', $this);
            $event->afterDisplayTitle = ($results) ? EBString::trim(implode("\n", $results)) : '';
 
            // @trigger: onBeforeDisplayContent / onContentBeforeDisplay
            $results = EB::triggers()->trigger('beforeDisplayContent', $this);
            $event->beforeDisplayContent = ($results) ? EBString::trim(implode("\n", $results)) : '';
 
            // @trigger: onAfterDisplayContent / onContentAfterDisplay
            $results = EB::triggers()->trigger('afterDisplayContent', $this);
            $event->afterDisplayContent = ($results) ? EBString::trim(implode("\n", $results)) : '';
 
            // Once the whole fiasco of setting the attributes back and forth is done, unset unecessary attributes.
            // unset($this->introtext);
            // unset($this->text);
 
        // Truncate the contents first
        $this->text = $this->content;
 
        $fromModule = isset($options['fromModule']) ? $options['fromModule'] : false;
 
        // Loadmodule tag should not appear in the module or it will be an inception of modules.
        if ($fromModule) {
            $this->text = $this->removeLoadmodulesTags($this->text);
        }
 
        if ($type == 'list' && $truncate) {
            EB::truncater()->truncate($this, null, $options);
        }
 
        $this->text = $this->formatPolls($this->text, ['canVote' => $isPreview ? false : true]);
 
        // Trigger plugins to prepare the content.
        if ($triggerPlugin) {
            $this->prepareContent($type, 'contentwithoutintro');
        }
 
        // Get the contents after content plugins processed the content.
        $contents = $this->text;
 
        // Cache the item so the document will not be rendered more than once.
        $this->formattedContents[$index] = $contents;
 
        return $this->formattedContents[$index];
    }
 
 
    /**
     * Prepares the content before displaying it out.
     *
     * @since    4.0
     * @access    public
     * @return
     */
    public function prepareContent($type = 'list', $source = 'content')
            }
 
            if ($postOption->contentSource === 'intro') {
                $post->displayContent = $post->getIntro(false, $truncate, 'intro', null, array_merge([
                    'triggerPlugins' => false,
                    'forceTruncateByChars' => true,
                    'forceCharsLimit' => $postOption->contentLimit
                ], $postOption->contentOptions));
            }
 
            if ($postOption->contentSource === 'content') {
                $postType = $fromModule ? 'list' : 'entry';
                $postOption->contentOptions = $fromModule ? array_merge([
                    'triggerPlugins' => false,
                    'forceTruncateByChars' => true,
                    'forceCharsLimit' => $postOption->contentLimit,
                    'truncate' => (int) $postOption->contentLimit === 0 ? false : true
                ], $postOption->contentOptions) : $postOption->contentOptions;
 
                $post->displayContent = $post->getContentWithoutIntro($postType, true, $postOption->contentOptions);
            }
        }
 
        $themes = EB::themes();
        $themes->set('posts', $posts);
        $themes->set('slider', $slider);
        $themes->set('postOption', $postOption);
        $themes->set('coverOption', $coverOption);
 
        $namespace = 'site/helpers/featured/slider/' . $slider->style;
        $output = $themes->output($namespace);
 
        return $output;
    }
}
 
            $file = __DIR__ . '/helpers/' . $fileNamespace . '.php';
 
            $exists = file_exists($file);
 
            if ($exists) {
                include_once($file);
 
                $className = implode('', $parts);
                $className = 'EasyBlogThemesHelper' . ucfirst($className);
 
                $cache[$namespace] = new $className();
            }
        }
 
        // Separate the function arguments for php 7.4 compatibility.
        $args = func_get_args();
        $args = array_splice($args, 1);
 
        return call_user_func_array(array($cache[$namespace], $method), $args);
    }
 
    /**
     * Sets a variable on the template
     *
     * @since    4.0
     * @access    public
     */
    public function set($name, $value)
    {
        $this->vars[$name] = $value;
    }
 
    /**
     * New method to display contents from template files
     *
     * @since    5.1
     * @access    public
     */
    public function output($namespace, $vars=array(), $extension='php')
        if ($requireCss) {
            $this->requireCss();
        }
 
        // Try to load component's language file just in case the module needs it
        JFactory::getLanguage()->load('com_easyblog', JPATH_ROOT);
    }
 
    /**
     * Load helpers for the module
     *
     * @since    6.0.0
     * @access    public
     */
    public function html()
    {
        $theme = EB::themes();
        $args = func_get_args();
 
        $output = call_user_func_array(array($theme, 'html'), $args);
 
        return $output;
    }
 
    /**
     * Initialize scripts for modules
     *
     * @since    5.1
     * @access    public
     */
    public function requireScripts()
    {
        static $loaded = null;
 
        if (is_null($loaded)) {
            // Ensure that scripts are loaded
            EB::init('site');
 
 
            $loaded = true;
            'navigation' => true,
            'image' => $params->get('photo_show', true),
            'pickFirstImage' => $params->get('photo_legacy', true),
            'postTitle' => true,
            'postDate' => $params->get('contentdate', true),
            'postDateSource' => 'created',
            'postCategory' => true,
            'postContent' => true,
            'postContentSource' => $params->get('contentfrom', 'content'),
            'postContentLimit' => $params->get('textlimit', 200),
            'authorAvatar' => $params->get('authoravatar', true),
            'authorTitle' => $params->get('contentauthor', true),
            'readmore' => $params->get('showreadmore', true),
            'ratings' => $params->get('showratings', false),
            'cropCover' => $coverLayout->crop,
            'coverWidth' => $coverLayout->width,
            'coverHeight' => $coverLayout->height,
            'coverAlignment' => $coverLayout->alignment,
            'fromModule' => true,
            'showPlaceholder' => $params->get('show_cover_placeholder', true)
        ]); ?>
    </div>
 
    <?php require(JModuleHelper::getLayoutPath('mod_easyblogshowcase', 'default_viewall')); ?>
</div>
    return;
}
 
// Load up our library
$modules = EB::modules($module);
 
// Retrieve a list of posts
$helper = new modEasyBlogShowcaseHelper($modules);
$posts = $helper->getPosts($params);
 
if (!$posts) {
    return;
}
 
$coverLayout = $helper->getPhotoLayout();
$autoplay = $modules->params->get('autorotate', false) ? 1 : 0;
$autoplayInterval = $modules->params->get('autorotate_seconds', 30);
$displayViewAll = $modules->params->get('display_showall', false);
 
require($modules->getLayout());
        if (file_exists($path))
        {
            $lang = \JFactory::getLanguage();
 
            $coreLanguageDirectory      = JPATH_BASE;
            $extensionLanguageDirectory = dirname($path);
 
            $langPaths = $lang->getPaths();
 
            // Only load the module's language file if it hasn't been already
            if (!$langPaths || (!isset($langPaths[$coreLanguageDirectory]) && !isset($langPaths[$extensionLanguageDirectory])))
            {
                // 1.5 or Core then 1.6 3PD
                $lang->load($module->module, $coreLanguageDirectory, null, false, true) ||
                    $lang->load($module->module, $extensionLanguageDirectory, null, false, true);
            }
 
            $content = '';
            ob_start();
            include $path;
            $module->content = ob_get_contents() . $content;
            ob_end_clean();
        }
 
        // Load the module chrome functions
        if (!$chrome)
        {
            $chrome = array();
        }
 
        include_once JPATH_THEMES . '/system/html/modules.php';
        $chromePath = JPATH_THEMES . '/' . $template . '/html/modules.php';
 
        if (!isset($chrome[$chromePath]))
        {
            if (file_exists($chromePath))
            {
                include_once $chromePath;
            }
 
            $module = clone $module;
            $module->params = (string) $params;
        }
 
        // Default for compatibility purposes. Set cachemode parameter or use JModuleHelper::moduleCache from within the module instead
        $cachemode = $params->get('cachemode', 'oldstatic');
 
        if ($params->get('cache', 0) == 1 && \JFactory::getConfig()->get('caching') >= 1 && $cachemode != 'id' && $cachemode != 'safeuri')
        {
            // Default to itemid creating method and workarounds on
            $cacheparams = new \stdClass;
            $cacheparams->cachemode = $cachemode;
            $cacheparams->class = 'JModuleHelper';
            $cacheparams->method = 'renderModule';
            $cacheparams->methodparams = array($module, $attribs);
 
            return ModuleHelper::ModuleCache($module, $params, $cacheparams);
        }
 
        return ModuleHelper::renderModule($module, $attribs);
    }
}
 
    {
        /** @var CMSApplication $application */
        $application = Factory::getApplication();
 
        $module = is_object($id) ? $id : $this->getModule($id);
 
        // Make sure that module really exists.
        if (!is_object($module)) {
            return '';
        }
 
        if (empty($module->contentRendered)) {
            $document = $application->getDocument();
            if (!$document instanceof HtmlDocument) {
                return '';
            }
 
            $renderer = $document->loadRenderer('module');
 
            $html = trim($renderer->render($module, $attribs));
        } else {
            $html = trim($module->content);
        }
 
        // Add frontend editing feature as it has only been defined for module positions.
        $user = $application->getIdentity();
 
        $frontEditing = ($application->isClient('site') && $application->get('frontediting', 1) && $user && !$user->guest);
        $menusEditing = ($application->get('frontediting', 1) == 2) && $user && $user->authorise('core.edit', 'com_menus');
 
        $isGantry = \strpos($module->module, 'gantry5') !== false;
        if (!$isGantry && $frontEditing && $html && $user && $user->authorise('module.edit.frontend', 'com_modules.module.' . $module->id)) {
            $displayData = [
                'moduleHtml' => &$html,
                'module' => $module,
                'position' => isset($attribs['position']) ? $attribs['position'] : $module->position,
                'menusediting' => $menusEditing
            ];
            LayoutHelper::render('joomla.edit.frontediting_modules', $displayData);
        }
        return $html;
    }
 
    /**
     * @param string $position
     * @param array $attribs
     * @return string
     */
    public function displayModules($position, $attribs = [])
    {
        /** @var CMSApplication $application */
        $application = Factory::getApplication();
        $document = $application->getDocument();
        if (!$document instanceof HtmlDocument) {
            return '';
        }
 
        $html = '';
        foreach (ModuleHelper::getModules($position) as $module) {
            $html .= $this->displayModule($module, $attribs);
        }
 
        return $html;
    }
 
    /**
     * @param array $params
     * @return string
     */
    public function displaySystemMessages($params = [])
    {
        // We cannot use DocumentHtml renderer here as it fires too early to display any messages.
        return '<jdoc:include type="message" />';
    }
 
    /**
     * @param string $content
     * @param array $params
     * @return string
     */
            }
 
            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/position.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", []), "displayModules", [0 => $this->getAttribute(($context["particle"] ?? null), "key", []), 1 => ["style" => (($this->getAttribute(($context["particle"] ?? null), "chrome", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["particle"] ?? null), "chrome", []), "gantry")) : ("gantry"))]], "method");
        echo "
";
    }
 
    public function getTemplateName()
    {
        return "@particles/position.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/position.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", []), "displayModules", [0 => $this->getAttribute(($context["particle"] ?? null), "key", []), 1 => ["style" => (($this->getAttribute(($context["particle"] ?? null), "chrome", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["particle"] ?? null), "chrome", []), "gantry")) : ("gantry"))]], "method");
        echo "
";
    }
 
    public function getTemplateName()
    {
        return "@particles/position.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();
            // 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 twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["segment"] ?? null), "attributes", []), "key", []), "html", null, true);
                    echo " -->";
                }
                // line 16
                echo "
        <div class=\"g-content";
                // line 17
                (($this->getAttribute(($context["segment"] ?? null), "classes", [])) ? (print (twig_escape_filter($this->env, (" " . twig_escape_filter($this->env, twig_join_filter($this->getAttribute(($context["segment"] ?? null), "classes", []), " "))), "html", null, true))) : (print ("")));
            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
     *
        @trigger_error(sprintf('The %s method is deprecated since version 1.22 and will be removed in Twig 2.0.', __METHOD__), \E_USER_DEPRECATED);
 
        return $this->templateClassPrefix;
    }
 
    /**
     * Renders a template.
     *
     * @param string|TemplateWrapper $name    The template name
     * @param array                  $context An array of parameters to pass to the template
     *
     * @return string The rendered template
     *
     * @throws LoaderError  When the template cannot be found
     * @throws SyntaxError  When an error occurred during compilation
     * @throws RuntimeError When an error occurred during rendering
     */
    public function render($name, array $context = [])
    {
        return $this->load($name)->render($context);
    }
 
    /**
     * Displays a template.
     *
     * @param string|TemplateWrapper $name    The template name
     * @param array                  $context An array of parameters to pass to the template
     *
     * @throws LoaderError  When the template cannot be found
     * @throws SyntaxError  When an error occurred during compilation
     * @throws RuntimeError When an error occurred during rendering
     */
    public function display($name, array $context = [])
    {
        $this->load($name)->display($context);
    }
 
    /**
     * Loads a template.
     *
 
            $this->renderer = $this->extendTwig($twig, $loader);
        }
 
        return $this->renderer;
    }
 
    /**
     * Render a template file by using given context.
     *
     * @param string $file
     * @param array $context
     * @return string
     */
    public function render($file, array $context = [])
    {
        // Include Gantry specific things to the context.
        $context = $this->getContext($context);
 
        return $this->renderer()->render($file, $context);
    }
 
    /**
     * Compile and render twig string.
     *
     * @param string $string
     * @param array $context
     * @return string
     */
    public function compile($string, array $context = [])
    {
        $renderer = $this->renderer();
        $template = $renderer->createTemplate($string);
 
        // Include Gantry specific things to the context.
        $context = $this->getContext($context);
 
        return $template->render($context);
    }
 
            $file = PhpFile::instance($filename);
            if ($file->exists()) {
                try {
                    return ContentBlock::fromArray((array) $file->content());
                } catch (\Exception $e) {
                    // Invalid cache, continue to rendering.
                    if (\GANTRY_DEBUGGER) {
                        Debugger::addMessage(sprintf('Failed to load %s %s cache', $item->type, $item->id), 'debug');
                    }
                }
            }
        }
 
        // Create new document context for assets.
        $context = $this->getContext(['segment' => $item, 'enabled' => 1, 'particle' => $particle] + $options);
 
        /** @var Document $document */
        $document = $gantry['document'];
        $document::push();
        $html = trim($this->render("@nucleus/content/{$item->type}.html.twig", $context));
        $content = $document::pop()->setContent($html);
 
        if (isset($file)) {
            // Save HTML and assets into the cache.
            if (\GANTRY_DEBUGGER) {
                Debugger::addMessage(sprintf('Caching %s %s', $item->type, $item->id), 'debug');
            }
 
            $file->save($content->toArray());
        }
 
        return $content;
    }
}
 
                        }
                    }
            }
        }
    }
 
    /**
     * Renders individual content block, like particle or position.
     *
     * Function is used to pre-render content.
     *
     * @param object|array $item
     * @param array $options
     * @return string|null
     */
    public function renderContent($item, $options = [])
    {
        $gantry = static::gantry();
 
        $content = $this->getContent($item, $options);
 
        /** @var Document $document */
        $document = $gantry['document'];
        $document->addBlock($content);
 
        $html = $content->toString();
 
        return false === strpos($html, '@@DEFERRED@@') ? $html : null;
    }
 
    /**
     * Renders individual content block, like particle or position.
     *
     * Function is used to pre-render content.
     *
     * @param object|array $item
     * @param array $options
     * @return ContentBlock|ContentBlockInterface
     * @since 5.4.3
     */
                    $fixed &= !empty($child->attributes->fixed);
                }
 
                $this->prepareLayout($item->children, $fixed, $temporary);
            }
 
            // TODO: remove hard coded types.
            switch ($item->type) {
                case 'system':
                    break;
 
                case 'atom':
                case 'particle':
                case 'position':
                case 'spacer':
                    if (\GANTRY_DEBUGGER) {
                        Debugger::startTimer($item->id, "Rendering {$item->id}");
                    }
 
                    $item->content = $this->renderContent($item, ['prepare_layout' => true]);
                    // Note that content can also be null (postpone rendering).
                    if ($item->content === '') {
                        unset($items[$i]);
                    }
 
                    if (\GANTRY_DEBUGGER) {
                        Debugger::stopTimer($item->id);
                    }
 
                    break;
 
                default:
                    if ($sticky) {
                        $item->attributes->sticky = 1;
                        break;
                    }
 
                    if (empty($item->children)) {
                        unset($items[$i]);
                        break;
     * @param array $items
     * @param bool  $temporary
     * @param bool  $sticky
     * @internal
     */
    protected function prepareLayout(array &$items, $temporary = false, $sticky = false)
    {
        foreach ($items as $i => &$item) {
            // Non-numeric items are meta-data which should be ignored.
            if (((string)(int) $i !== (string) $i) || !is_object($item)) {
                continue;
            }
 
            if (!empty($item->children)) {
                $fixed = true;
                foreach ($item->children as $child) {
                    $fixed &= !empty($child->attributes->fixed);
                }
 
                $this->prepareLayout($item->children, $fixed, $temporary);
            }
 
            // TODO: remove hard coded types.
            switch ($item->type) {
                case 'system':
                    break;
 
                case 'atom':
                case 'particle':
                case 'position':
                case 'spacer':
                    if (\GANTRY_DEBUGGER) {
                        Debugger::startTimer($item->id, "Rendering {$item->id}");
                    }
 
                    $item->content = $this->renderContent($item, ['prepare_layout' => true]);
                    // Note that content can also be null (postpone rendering).
                    if ($item->content === '') {
                        unset($items[$i]);
                    }
     * @param array $items
     * @param bool  $temporary
     * @param bool  $sticky
     * @internal
     */
    protected function prepareLayout(array &$items, $temporary = false, $sticky = false)
    {
        foreach ($items as $i => &$item) {
            // Non-numeric items are meta-data which should be ignored.
            if (((string)(int) $i !== (string) $i) || !is_object($item)) {
                continue;
            }
 
            if (!empty($item->children)) {
                $fixed = true;
                foreach ($item->children as $child) {
                    $fixed &= !empty($child->attributes->fixed);
                }
 
                $this->prepareLayout($item->children, $fixed, $temporary);
            }
 
            // TODO: remove hard coded types.
            switch ($item->type) {
                case 'system':
                    break;
 
                case 'atom':
                case 'particle':
                case 'position':
                case 'spacer':
                    if (\GANTRY_DEBUGGER) {
                        Debugger::startTimer($item->id, "Rendering {$item->id}");
                    }
 
                    $item->content = $this->renderContent($item, ['prepare_layout' => true]);
                    // Note that content can also be null (postpone rendering).
                    if ($item->content === '') {
                        unset($items[$i]);
                    }
     * @param array $items
     * @param bool  $temporary
     * @param bool  $sticky
     * @internal
     */
    protected function prepareLayout(array &$items, $temporary = false, $sticky = false)
    {
        foreach ($items as $i => &$item) {
            // Non-numeric items are meta-data which should be ignored.
            if (((string)(int) $i !== (string) $i) || !is_object($item)) {
                continue;
            }
 
            if (!empty($item->children)) {
                $fixed = true;
                foreach ($item->children as $child) {
                    $fixed &= !empty($child->attributes->fixed);
                }
 
                $this->prepareLayout($item->children, $fixed, $temporary);
            }
 
            // TODO: remove hard coded types.
            switch ($item->type) {
                case 'system':
                    break;
 
                case 'atom':
                case 'particle':
                case 'position':
                case 'spacer':
                    if (\GANTRY_DEBUGGER) {
                        Debugger::startTimer($item->id, "Rendering {$item->id}");
                    }
 
                    $item->content = $this->renderContent($item, ['prepare_layout' => true]);
                    // Note that content can also be null (postpone rendering).
                    if ($item->content === '') {
                        unset($items[$i]);
                    }
                Debugger::stopTimer('atoms');
            }
        }
    }
 
    /**
     * Returns all non-empty segments from the layout.
     *
     * @return array
     */
    public function segments()
    {
        if (!isset($this->segments)) {
            $this->segments = $this->loadLayout()->toArray();
 
            if (\GANTRY_DEBUGGER) {
                Debugger::startTimer('segments', 'Preparing layout');
            }
 
            $this->prepareLayout($this->segments);
 
            if (\GANTRY_DEBUGGER) {
                Debugger::stopTimer('segments');
            }
        }
 
        return $this->segments;
    }
 
    /**
     * Prepare layout for rendering. Initializes all CSS/JS in particles.
     */
    public function prepare()
    {
        $this->segments();
    }
 
    /**
     * Returns details of the theme.
     *
            if ($ignoreStrictCheck || !$this->env->isStrictVariables()) {
                return;
            }
 
            throw new RuntimeError(sprintf('Neither the property "%1$s" nor one of the methods "%1$s()", "get%1$s()"/"is%1$s()" or "__call()" exist and have public access in class "%2$s".', $item, $class), -1, $this->getSourceContext());
        }
 
        if ($isDefinedTest) {
            return true;
        }
 
        if ($this->env->hasExtension('\Twig\Extension\SandboxExtension')) {
            $this->env->getExtension('\Twig\Extension\SandboxExtension')->checkMethodAllowed($object, $method);
        }
 
        // Some objects throw exceptions when they have __call, and the method we try
        // to call is not supported. If ignoreStrictCheck is true, we should return null.
        try {
            if (!$arguments) {
                $ret = $object->$method();
            } else {
                $ret = \call_user_func_array([$object, $method], $arguments);
            }
        } catch (\BadMethodCallException $e) {
            if ($call && ($ignoreStrictCheck || !$this->env->isStrictVariables())) {
                return;
            }
            throw $e;
        }
 
        // @deprecated in 1.28
        if ($object instanceof \Twig_TemplateInterface) {
            $self = $object->getTemplateName() === $this->getTemplateName();
            $message = sprintf('Calling "%s" on template "%s" from template "%s" is deprecated since version 1.28 and won\'t be supported anymore in 2.0.', $item, $object->getTemplateName(), $this->getTemplateName());
            if ('renderBlock' === $method || 'displayBlock' === $method) {
                $message .= sprintf(' Use block("%s"%s) instead).', $arguments[0], $self ? '' : ', template');
            } elseif ('hasBlock' === $method) {
                $message .= sprintf(' Use "block("%s"%s) is defined" instead).', $arguments[0], $self ? '' : ', template');
            } elseif ('render' === $method || 'display' === $method) {
                $message .= sprintf(' Use include("%s") instead).', $object->getTemplateName());
            'page_bottom' => [$this, 'block_page_bottom'],
            'body_top' => [$this, 'block_body_top'],
            'body_bottom' => [$this, 'block_body_bottom'],
            'page_head' => [$this, 'block_page_head'],
            'page_footer' => [$this, 'block_page_footer'],
            'page' => [$this, 'block_page'],
            'page_body' => [$this, 'block_page_body'],
        ];
    }
 
    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 1
        $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "debugger", []), "startTimer", [0 => "render", 1 => "Rendering page"], "method");
        // line 2
        $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "theme", []), "setLayout", [], "method");
        // line 3
        $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "theme", []), "loadAtoms", [], "method");
        // line 4
        $context["segments"] = $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "theme", []), "segments", [], "method");
        // line 6
        ob_start();
        // line 7
        echo "    ";
        if ($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "theme", []), "hasContent", [], "method")) {
            // line 8
            echo "        ";
            $this->displayBlock('content', $context, $blocks);
            // line 10
            echo "    ";
        }
        $context["content"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 13
        $context["offcanvas"] = null;
        // line 14
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["segments"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["segment"]) {
            // line 15
            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_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_footer($context, array $blocks = [])
    {
        // line 4
        echo "    ";
        $this->displayParentBlock("page_footer", $context, $blocks);
        echo "
    <jdoc:include type=\"modules\" name=\"debug\" />
";
    }
 
    public function getTemplateName()
    {
        return "partials/page.html.twig";
    }
 
    public function isTraitable()
    {
            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 = [
            'content' => [$this, 'block_content'],
        ];
    }
 
    protected function doGetParent(array $context)
    {
        // line 1
        return "partials/page.html.twig";
    }
 
    protected function doDisplay(array $context, array $blocks = [])
    {
        $this->parent = $this->loadTemplate("partials/page.html.twig", "index.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
    // line 3
    public function block_content($context, array $blocks = [])
    {
        // line 4
        echo "    ";
        echo $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "displayContent", [0 => ($context["content"] ?? null)], "method");
        echo "
";
    }
 
    public function getTemplateName()
    {
        return "index.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) {
    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
     *
        @trigger_error(sprintf('The %s method is deprecated since version 1.22 and will be removed in Twig 2.0.', __METHOD__), \E_USER_DEPRECATED);
 
        return $this->templateClassPrefix;
    }
 
    /**
     * Renders a template.
     *
     * @param string|TemplateWrapper $name    The template name
     * @param array                  $context An array of parameters to pass to the template
     *
     * @return string The rendered template
     *
     * @throws LoaderError  When the template cannot be found
     * @throws SyntaxError  When an error occurred during compilation
     * @throws RuntimeError When an error occurred during rendering
     */
    public function render($name, array $context = [])
    {
        return $this->load($name)->render($context);
    }
 
    /**
     * Displays a template.
     *
     * @param string|TemplateWrapper $name    The template name
     * @param array                  $context An array of parameters to pass to the template
     *
     * @throws LoaderError  When the template cannot be found
     * @throws SyntaxError  When an error occurred during compilation
     * @throws RuntimeError When an error occurred during rendering
     */
    public function display($name, array $context = [])
    {
        $this->load($name)->display($context);
    }
 
    /**
     * Loads a template.
     *
 
            $this->renderer = $this->extendTwig($twig, $loader);
        }
 
        return $this->renderer;
    }
 
    /**
     * Render a template file by using given context.
     *
     * @param string $file
     * @param array $context
     * @return string
     */
    public function render($file, array $context = [])
    {
        // Include Gantry specific things to the context.
        $context = $this->getContext($context);
 
        return $this->renderer()->render($file, $context);
    }
 
    /**
     * Compile and render twig string.
     *
     * @param string $string
     * @param array $context
     * @return string
     */
    public function compile($string, array $context = [])
    {
        $renderer = $this->renderer();
        $template = $renderer->createTemplate($string);
 
        // Include Gantry specific things to the context.
        $context = $this->getContext($context);
 
        return $template->render($context);
    }
 
 * @author    RocketTheme http://www.rockettheme.com
 * @copyright Copyright (C) 2007 - 2015 RocketTheme, LLC
 * @license   GNU/GPLv2 and later
 *
 * http://www.gnu.org/licenses/gpl-2.0.html
 */
 
defined('_JEXEC') or die;
 
// Bootstrap Gantry framework or fail gracefully (inside included file).
$gantry = include __DIR__ . '/includes/gantry.php';
 
/** @var \Gantry\Framework\Theme $theme */
$theme = $gantry['theme'];
 
/** @var \Gantry\Framework\Configurations $configurations */
$configurations = $gantry['configurations'];
 
// Render the page.
echo $theme->render('index.html.twig');
 
     * @param   string  $directory  The name of the template
     * @param   string  $filename   The actual filename
     *
     * @return  string  The contents of the template
     *
     * @since   1.7.0
     */
    protected function _loadTemplate($directory, $filename)
    {
        $contents = '';
 
        // Check to see if we have a valid template file
        if (file_exists($directory . '/' . $filename))
        {
            // Store the file path
            $this->_file = $directory . '/' . $filename;
 
            // Get the file content
            ob_start();
            require $directory . '/' . $filename;
            $contents = ob_get_contents();
            ob_end_clean();
        }
 
        // Try to find a favicon by checking the template and root folder
        $icon = '/favicon.ico';
 
        foreach (array($directory, JPATH_BASE) as $dir)
        {
            if (file_exists($dir . $icon))
            {
                $path = str_replace(JPATH_BASE, '', $dir);
                $path = str_replace('\\', '/', $path);
                $this->addFavicon(Uri::base(true) . $path . $icon);
                break;
            }
        }
 
        return $contents;
    }
 
        if (!file_exists($directory . '/' . $template . '/' . $file))
        {
            $file = 'index.php';
        }
 
        // Load the language file for the template
        $lang = \JFactory::getLanguage();
 
        // 1.5 or core then 1.6
        $lang->load('tpl_' . $template, JPATH_BASE, null, false, true)
        || $lang->load('tpl_' . $template, $directory . '/' . $template, null, false, true);
 
        // Assign the variables
        $this->template = $template;
        $this->baseurl = Uri::base(true);
        $this->params = isset($params['params']) ? $params['params'] : new Registry;
 
        // Load
        $this->_template = $this->_loadTemplate($directory . '/' . $template, $file);
 
        return $this;
    }
 
    /**
     * Parse a document template
     *
     * @return  HtmlDocument  instance of $this to allow chaining
     *
     * @since   1.7.0
     */
    protected function _parseTemplate()
    {
        $matches = array();
 
        if (preg_match_all('#<jdoc:include\ type="([^"]+)"(.*)\/>#iU', $this->_template, $matches))
        {
            $template_tags_first = array();
            $template_tags_last = array();
 
            $options['title'] = (isset($args[3])) ? $args[3] : null;
        }
 
        parent::$_buffer[$options['type']][$options['name']][$options['title']] = $content;
 
        return $this;
    }
 
    /**
     * Parses the template and populates the buffer
     *
     * @param   array  $params  Parameters for fetching the template
     *
     * @return  HtmlDocument instance of $this to allow chaining
     *
     * @since   1.7.0
     */
    public function parse($params = array())
    {
        return $this->_fetchTemplate($params)->_parseTemplate();
    }
 
    /**
     * Outputs the template to the browser.
     *
     * @param   boolean  $caching  If true, cache the output
     * @param   array    $params   Associative array of attributes
     *
     * @return  string The rendered data
     *
     * @since   1.7.0
     */
    public function render($caching = false, $params = array())
    {
        $this->_caching = $caching;
 
        if (empty($this->_template))
        {
            $this->parse($params);
        }
     */
    protected function render()
    {
        // Setup the document options.
        $this->docOptions['template'] = $this->get('theme');
        $this->docOptions['file']     = $this->get('themeFile', 'index.php');
        $this->docOptions['params']   = $this->get('themeParams');
 
        if ($this->get('themes.base'))
        {
            $this->docOptions['directory'] = $this->get('themes.base');
        }
        // Fall back to constants.
        else
        {
            $this->docOptions['directory'] = defined('JPATH_THEMES') ? JPATH_THEMES : (defined('JPATH_BASE') ? JPATH_BASE : __DIR__) . '/themes';
        }
 
        // Parse the document.
        $this->document->parse($this->docOptions);
 
        // Trigger the onBeforeRender event.
        \JPluginHelper::importPlugin('system');
        $this->triggerEvent('onBeforeRender');
 
        $caching = false;
 
        if ($this->isClient('site') && $this->get('caching') && $this->get('caching', 2) == 2 && !\JFactory::getUser()->get('id'))
        {
            $caching = true;
        }
 
        // Render the document.
        $data = $this->document->render($caching, $this->docOptions);
 
        // Set the application output data.
        $this->setBody($data);
 
        // Trigger the onAfterRender event.
        $this->triggerEvent('onAfterRender');
                    $this->setUserState('users.login.form.data', array('return' => \JUri::getInstance()->toString()));
                    $this->set('themeFile', 'offline.php');
                    $this->setHeader('Status', '503 Service Temporarily Unavailable', 'true');
                }
 
                if (!is_dir(JPATH_THEMES . '/' . $template->template) && !$this->get('offline'))
                {
                    $this->set('themeFile', 'component.php');
                }
 
                // Ensure themeFile is set by now
                if ($this->get('themeFile') == '')
                {
                    $this->set('themeFile', $file . '.php');
                }
 
                break;
        }
 
        parent::render();
    }
 
    /**
     * Route the application.
     *
     * Routing is the process of examining the request environment to determine which
     * component should receive the request. The component optional parameters
     * are then set in the request object to be processed when the application is being
     * dispatched.
     *
     * @return  void
     *
     * @since   3.2
     */
    protected function route()
    {
        // Execute the parent method
        parent::route();
 
        $Itemid = $this->input->getInt('Itemid', null);
        // Unset invalid system variables
        foreach ($invalidInputVariables as $systemVariable)
        {
            $input->set($systemVariable, null);
        }
 
        // Abort when there are invalid variables
        if ($invalidInputVariables)
        {
            throw new \RuntimeException('Invalid input, aborting application.');
        }
 
        // Perform application routines.
        $this->doExecute();
 
        // If we have an application document object, render it.
        if ($this->document instanceof \JDocument)
        {
            // Render the application output.
            $this->render();
        }
 
        // If gzip compression is enabled in configuration and the server is compliant, compress the output.
        if ($this->get('gzip') && !ini_get('zlib.output_compression') && ini_get('output_handler') !== 'ob_gzhandler')
        {
            $this->compress();
 
            // Trigger the onAfterCompress event.
            $this->triggerEvent('onAfterCompress');
        }
 
        // Send the application response.
        $this->respond();
 
        // Trigger the onAfterRespond event.
        $this->triggerEvent('onAfterRespond');
    }
 
    /**
     * Check if the user is required to reset their password.
{
    include_once __DIR__ . '/defines.php';
}
 
if (!defined('_JDEFINES'))
{
    define('JPATH_BASE', __DIR__);
    require_once JPATH_BASE . '/includes/defines.php';
}
 
require_once JPATH_BASE . '/includes/framework.php';
 
// Set profiler start time and memory usage and mark afterLoad in the profiler.
JDEBUG ? JProfiler::getInstance('Application')->setStart($startTime, $startMem)->mark('afterLoad') : null;
 
// Instantiate the application.
$app = JFactory::getApplication('site');
 
// Execute the application.
$app->execute();
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
UNIQUE_ID ZgVaP0OuZKD2PJp67ep74gAAAIw
SERVICEID
DOCUMENT_ROOT /services/webpages/o/r/orgtology.org/public
SERVER_DOMAIN orgtology.org
GDFONTPATH /services/share/fonts
PHPRC /services/webpages/o/r/orgtology.org/php.ini
HTTP_HOST www.orgtology.org
HTTP_X_REAL_IP 3.235.251.99
HTTP_X_REQUEST_ID 13bb3521ddb01c8fe672f59332ad7c7c
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_X_FORWARDED_PROTO http
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME www.orgtology.org
SERVER_ADDR 64.29.151.221
SERVER_PORT 80
REMOTE_HOST ec2-3-235-251-99.compute-1.amazonaws.com
REMOTE_ADDR 3.235.251.99
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /services/webpages/o/r/orgtology.org/public
SERVER_ADMIN or webmaster
SCRIPT_FILENAME /services/webpages/o/r/orgtology.org/public/index.php
REMOTE_PORT 54566
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711626815.1072
REQUEST_TIME 1711626815
argv Array ( )
argc 0
Key Value
LANG C
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
NOTIFY_SOCKET /run/systemd/notify
INVOCATION_ID b1c3eda6ff4645919708f7efa4a1b95a
JOURNAL_STREAM 8:802453096
LD_PRELOAD /lib64/libddpwdpreload.so
ULIMIT_MAX_FILES 8192
ULIMIT_MAX_STACK unlimited
0. Whoops\Handler\PrettyPageHandler