UnexpectedValueException {#210
  #message: "The stream or file "/var/www/vhosts/dealertorch.com/statistics/logs/error_log" could not be opened: failed to open stream: Permission denied"
  #code: 0
  #file: "/var/www/vhosts/dealertorch.com/httpdocs/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php"
  #line: 84
  -trace: array:14 [
    0 => array:3 [
      "call" => "Monolog\Handler\StreamHandler->write()"
      "file" => "/var/www/vhosts/dealertorch.com/httpdocs/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:37"
      "args" => array:1 [
        0 => array:8 [
          "message" => """
            exception 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException' in /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php:145
            Stack trace:
            #0 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\RouteCollection->match(Object(Illuminate\Http\Request))
            #1 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(652): Illuminate\Routing\Router->findRoute(Object(Illuminate\Http\Request))
            #2 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(628): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
            #3 /var/www/vhosts/dealertorch.com/httpdocs/app/Http/Kernel.php(48): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
            #4 [internal function]: Torch\Http\Kernel->Torch\Http\{closure}(Object(Illuminate\Http\Request))
            #5 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
            #6 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(43): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
            #7 /var/www/vhosts/dealertorch.com/httpdocs/app/Http/Middleware/VerifyCsrfToken.php(17): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
            #8 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(125): Torch\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
            #9 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(55): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
            #10 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(125): Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
            #11 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(61): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
            #12 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(125): Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
            #13 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(36): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
            #14 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(125): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
            #15 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(40): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
            #16 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(125): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
            #17 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(42): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
            #18 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(125): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
            #19 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
            #20 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(101): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
            #21 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(115): Illuminate\Pipeline\Pipeline->then(Object(Closure))
            #22 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(84): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
            #23 /var/www/vhosts/dealertorch.com/httpdocs/modx-plugin/Laravel.php(59): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
            #24 /var/www/vhosts/dealertorch.com/httpdocs/modx-plugin/plugin.php(18): Laravel::handleRequest()
            #25 /var/www/vhosts/matthewandandrew.org/httpdocs_new/manager/includes/document.parser.class.inc.php(746) : eval()'d code(1): include('/var/www/vhosts...')
            #26 /var/www/vhosts/matthewandandrew.org/httpdocs_new/manager/includes/document.parser.class.inc.php(746): eval()
            #27 /var/www/vhosts/matthewandandrew.org/httpdocs_new/manager/includes/document.parser.class.inc.php(2402): DocumentParser->evalPlugin('include('/var/w...', Array)
            #28 /var/www/vhosts/matthewandandrew.org/httpdocs_new/manager/includes/document.parser.class.inc.php(129): DocumentParser->invokeEvent('OnPageNotFound')
            #29 /var/www/vhosts/matthewandandrew.org/httpdocs_new/manager/includes/document.parser.class.inc.php(1099): DocumentParser->sendErrorPage()
            #30 /var/www/vhosts/matthewandandrew.org/httpdocs_new/index.php(133): DocumentParser->executeParser()
            #31 {main}"""
          "context" => []
          "level" => 400
          "level_name" => "ERROR"
          "channel" => "local"
          "datetime" => DateTime {#209
            +"date": "2015-09-04 23:05:12.718113"
            +"timezone_type": 3
            +"timezone": "UTC"
          }
          "extra" => []
          "formatted" => """
            [2015-09-04 23:05:12] local.ERROR: exception 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException' in /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php:145
            Stack trace:
            #0 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\RouteCollection->match(Object(Illuminate\Http\Request))
            #1 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(652): Illuminate\Routing\Router->findRoute(Object(Illuminate\Http\Request))
            #2 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(628): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
            #3 /var/www/vhosts/dealertorch.com/httpdocs/app/Http/Kernel.php(48): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
            #4 [internal function]: Torch\Http\Kernel->Torch\Http\{closure}(Object(Illuminate\Http\Request))
            #5 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
            #6 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(43): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
            #7 /var/www/vhosts/dealertorch.com/httpdocs/app/Http/Middleware/VerifyCsrfToken.php(17): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
            #8 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(125): Torch\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
            #9 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(55): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
            #10 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(125): Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
            #11 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(61): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
            #12 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(125): Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
            #13 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(36): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
            #14 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(125): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
            #15 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(40): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
            #16 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(125): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
            #17 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(42): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
            #18 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(125): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
            #19 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
            #20 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(101): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
            #21 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(115): Illuminate\Pipeline\Pipeline->then(Object(Closure))
            #22 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(84): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
            #23 /var/www/vhosts/dealertorch.com/httpdocs/modx-plugin/Laravel.php(59): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
            #24 /var/www/vhosts/dealertorch.com/httpdocs/modx-plugin/plugin.php(18): Laravel::handleRequest()
            #25 /var/www/vhosts/matthewandandrew.org/httpdocs_new/manager/includes/document.parser.class.inc.php(746) : eval()'d code(1): include('/var/www/vhosts...')
            #26 /var/www/vhosts/matthewandandrew.org/httpdocs_new/manager/includes/document.parser.class.inc.php(746): eval()
            #27 /var/www/vhosts/matthewandandrew.org/httpdocs_new/manager/includes/document.parser.class.inc.php(2402): DocumentParser->evalPlugin('include('/var/w...', Array)
            #28 /var/www/vhosts/matthewandandrew.org/httpdocs_new/manager/includes/document.parser.class.inc.php(129): DocumentParser->invokeEvent('OnPageNotFound')
            #29 /var/www/vhosts/matthewandandrew.org/httpdocs_new/manager/includes/document.parser.class.inc.php(1099): DocumentParser->sendErrorPage()
            #30 /var/www/vhosts/matthewandandrew.org/httpdocs_new/index.php(133): DocumentParser->executeParser()
            #31 {main}  
            """
        ]
      ]
    ]
    1 => array:3 [
      "call" => "Monolog\Handler\AbstractProcessingHandler->handle()"
      "file" => "/var/www/vhosts/dealertorch.com/httpdocs/vendor/monolog/monolog/src/Monolog/Logger.php:269"
      "args" => array:1 [
        0 => array:7 [
          "message" => """
            exception 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException' in /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php:145
            Stack trace:
            #0 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\RouteCollection->match(Object(Illuminate\Http\Request))
            #1 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(652): Illuminate\Routing\Router->findRoute(Object(Illuminate\Http\Request))
            #2 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(628): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
            #3 /var/www/vhosts/dealertorch.com/httpdocs/app/Http/Kernel.php(48): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
            #4 [internal function]: Torch\Http\Kernel->Torch\Http\{closure}(Object(Illuminate\Http\Request))
            #5 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
            #6 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(43): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
            #7 /var/www/vhosts/dealertorch.com/httpdocs/app/Http/Middleware/VerifyCsrfToken.php(17): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
            #8 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(125): Torch\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
            #9 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(55): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
            #10 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(125): Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
            #11 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(61): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
            #12 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(125): Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
            #13 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(36): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
            #14 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(125): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
            #15 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(40): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
            #16 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(125): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
            #17 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(42): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
            #18 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(125): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
            #19 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
            #20 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(101): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
            #21 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(115): Illuminate\Pipeline\Pipeline->then(Object(Closure))
            #22 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(84): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
            #23 /var/www/vhosts/dealertorch.com/httpdocs/modx-plugin/Laravel.php(59): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
            #24 /var/www/vhosts/dealertorch.com/httpdocs/modx-plugin/plugin.php(18): Laravel::handleRequest()
            #25 /var/www/vhosts/matthewandandrew.org/httpdocs_new/manager/includes/document.parser.class.inc.php(746) : eval()'d code(1): include('/var/www/vhosts...')
            #26 /var/www/vhosts/matthewandandrew.org/httpdocs_new/manager/includes/document.parser.class.inc.php(746): eval()
            #27 /var/www/vhosts/matthewandandrew.org/httpdocs_new/manager/includes/document.parser.class.inc.php(2402): DocumentParser->evalPlugin('include('/var/w...', Array)
            #28 /var/www/vhosts/matthewandandrew.org/httpdocs_new/manager/includes/document.parser.class.inc.php(129): DocumentParser->invokeEvent('OnPageNotFound')
            #29 /var/www/vhosts/matthewandandrew.org/httpdocs_new/manager/includes/document.parser.class.inc.php(1099): DocumentParser->sendErrorPage()
            #30 /var/www/vhosts/matthewandandrew.org/httpdocs_new/index.php(133): DocumentParser->executeParser()
            #31 {main}"""
          "context" => []
          "level" => 400
          "level_name" => "ERROR"
          "channel" => "local"
          "datetime" => DateTime {#209}
          "extra" => []
        ]
      ]
    ]
    2 => array:3 [
      "call" => "Monolog\Logger->addRecord()"
      "file" => "/var/www/vhosts/dealertorch.com/httpdocs/vendor/monolog/monolog/src/Monolog/Logger.php:545"
      "args" => array:3 [
        0 => 400
        1 => """
          exception 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException' in /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php:145
          Stack trace:
          #0 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\RouteCollection->match(Object(Illuminate\Http\Request))
          #1 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(652): Illuminate\Routing\Router->findRoute(Object(Illuminate\Http\Request))
          #2 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(628): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
          #3 /var/www/vhosts/dealertorch.com/httpdocs/app/Http/Kernel.php(48): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
          #4 [internal function]: Torch\Http\Kernel->Torch\Http\{closure}(Object(Illuminate\Http\Request))
          #5 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
          #6 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(43): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
          #7 /var/www/vhosts/dealertorch.com/httpdocs/app/Http/Middleware/VerifyCsrfToken.php(17): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
          #8 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(125): Torch\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
          #9 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(55): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
          #10 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(125): Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
          #11 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(61): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
          #12 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(125): Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
          #13 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(36): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
          #14 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(125): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
          #15 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(40): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
          #16 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(125): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
          #17 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(42): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
          #18 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(125): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
          #19 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
          #20 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(101): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
          #21 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(115): Illuminate\Pipeline\Pipeline->then(Object(Closure))
          #22 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(84): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
          #23 /var/www/vhosts/dealertorch.com/httpdocs/modx-plugin/Laravel.php(59): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
          #24 /var/www/vhosts/dealertorch.com/httpdocs/modx-plugin/plugin.php(18): Laravel::handleRequest()
          #25 /var/www/vhosts/matthewandandrew.org/httpdocs_new/manager/includes/document.parser.class.inc.php(746) : eval()'d code(1): include('/var/www/vhosts...')
          #26 /var/www/vhosts/matthewandandrew.org/httpdocs_new/manager/includes/document.parser.class.inc.php(746): eval()
          #27 /var/www/vhosts/matthewandandrew.org/httpdocs_new/manager/includes/document.parser.class.inc.php(2402): DocumentParser->evalPlugin('include('/var/w...', Array)
          #28 /var/www/vhosts/matthewandandrew.org/httpdocs_new/manager/includes/document.parser.class.inc.php(129): DocumentParser->invokeEvent('OnPageNotFound')
          #29 /var/www/vhosts/matthewandandrew.org/httpdocs_new/manager/includes/document.parser.class.inc.php(1099): DocumentParser->sendErrorPage()
          #30 /var/www/vhosts/matthewandandrew.org/httpdocs_new/index.php(133): DocumentParser->executeParser()
          #31 {main}"""
        2 => []
      ]
    ]
    3 => array:3 [
      "call" => "Monolog\Logger->error()"
      "file" => "/var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:47"
      "args" => array:1 [
        0 => """
          exception 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException' in /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php:145
          Stack trace:
          #0 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\RouteCollection->match(Object(Illuminate\Http\Request))
          #1 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(652): Illuminate\Routing\Router->findRoute(Object(Illuminate\Http\Request))
          #2 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(628): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
          #3 /var/www/vhosts/dealertorch.com/httpdocs/app/Http/Kernel.php(48): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
          #4 [internal function]: Torch\Http\Kernel->Torch\Http\{closure}(Object(Illuminate\Http\Request))
          #5 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
          #6 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(43): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
          #7 /var/www/vhosts/dealertorch.com/httpdocs/app/Http/Middleware/VerifyCsrfToken.php(17): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
          #8 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(125): Torch\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
          #9 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(55): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
          #10 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(125): Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
          #11 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(61): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
          #12 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(125): Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
          #13 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(36): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
          #14 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(125): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
          #15 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(40): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
          #16 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(125): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
          #17 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(42): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
          #18 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(125): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
          #19 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
          #20 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(101): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
          #21 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(115): Illuminate\Pipeline\Pipeline->then(Object(Closure))
          #22 /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(84): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
          #23 /var/www/vhosts/dealertorch.com/httpdocs/modx-plugin/Laravel.php(59): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
          #24 /var/www/vhosts/dealertorch.com/httpdocs/modx-plugin/plugin.php(18): Laravel::handleRequest()
          #25 /var/www/vhosts/matthewandandrew.org/httpdocs_new/manager/includes/document.parser.class.inc.php(746) : eval()'d code(1): include('/var/www/vhosts...')
          #26 /var/www/vhosts/matthewandandrew.org/httpdocs_new/manager/includes/document.parser.class.inc.php(746): eval()
          #27 /var/www/vhosts/matthewandandrew.org/httpdocs_new/manager/includes/document.parser.class.inc.php(2402): DocumentParser->evalPlugin('include('/var/w...', Array)
          #28 /var/www/vhosts/matthewandandrew.org/httpdocs_new/manager/includes/document.parser.class.inc.php(129): DocumentParser->invokeEvent('OnPageNotFound')
          #29 /var/www/vhosts/matthewandandrew.org/httpdocs_new/manager/includes/document.parser.class.inc.php(1099): DocumentParser->sendErrorPage()
          #30 /var/www/vhosts/matthewandandrew.org/httpdocs_new/index.php(133): DocumentParser->executeParser()
          #31 {main}"""
      ]
    ]
    4 => array:3 [
      "call" => "Illuminate\Foundation\Exceptions\Handler->report()"
      "file" => "/var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:236"
      "args" => array:1 [
        0 => NotFoundHttpException {#231
          -statusCode: 404
          -headers: []
          #message: ""
          #code: 0
          #file: "/var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php"
          #line: 145
          -trace: array:31 [
            0 => array:3 [
              "call" => "Illuminate\Routing\RouteCollection->match()"
              "file" => "/var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php:729"
              "args" => array:1 [
                0 => Request {#215
                  #json: null
                  #sessionStore: null
                  #userResolver: Closure {#225
                    reflection: """
                      Closure [ <user> public method Illuminate\Auth\{closure} ] {
                        @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Auth/AuthServiceProvider.php 66 - 69
                      
                        - Bound Variables [1] {
                            Variable #0 [ $app ]
                        }
                      }
                      """
                  }
                  #routeResolver: null
                  +attributes: ParameterBag {#217
                    #parameters: []
                  }
                  +request: ParameterBag {#223
                    #parameters: array:1 [
                      "q" => "sitemap.html"
                    ]
                  }
                  +query: ParameterBag {#223}
                  +server: ServerBag {#220
                    #parameters: array:61 [
                      "REDIRECT_PP_CUSTOM_PHP_INI" => "/var/www/vhosts/matthewandandrew.org/etc/php.ini"
                      "REDIRECT_STATUS" => "200"
                      "PP_CUSTOM_PHP_INI" => "/var/www/vhosts/matthewandandrew.org/etc/php.ini"
                      "HTTP_HOST" => "www.matthewandandrew.org"
                      "HTTP_X_REAL_IP" => "54.167.116.62"
                      "HTTP_X_FORWARDED_FOR" => "54.167.116.62"
                      "HTTP_X_ACCEL_INTERNAL" => "/internal-nginx-static-location"
                      "HTTP_CONNECTION" => "close"
                      "HTTP_ACCEPT_ENCODING" => "x-gzip, gzip, deflate"
                      "HTTP_USER_AGENT" => "CCBot/2.0 (http://commoncrawl.org/faq/)"
                      "HTTP_ACCEPT_LANGUAGE" => "en-us,en-gb,en;q=0.7,*;q=0.3"
                      "HTTP_ACCEPT" => "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
                      "PATH" => "/sbin:/usr/sbin:/bin:/usr/bin"
                      "SERVER_SIGNATURE" => """
                        <address>Apache Server at www.matthewandandrew.org Port 80</address>
                        """
                      "SERVER_SOFTWARE" => "Apache"
                      "SERVER_NAME" => "www.matthewandandrew.org"
                      "SERVER_ADDR" => "216.70.87.102"
                      "SERVER_PORT" => "80"
                      "REMOTE_ADDR" => "54.167.116.62"
                      "DOCUMENT_ROOT" => "/var/www/vhosts/matthewandandrew.org/httpdocs_new"
                      "SERVER_ADMIN" => "root@localhost"
                      "SCRIPT_FILENAME" => "/var/www/vhosts/matthewandandrew.org/httpdocs_new/index.php"
                      "REMOTE_PORT" => "58668"
                      "REDIRECT_QUERY_STRING" => "q=sitemap.html"
                      "REDIRECT_URL" => "/sitemap.html"
                      "GATEWAY_INTERFACE" => "CGI/1.1"
                      "SERVER_PROTOCOL" => "HTTP/1.0"
                      "REQUEST_METHOD" => "GET"
                      "QUERY_STRING" => "q=sitemap.html"
                      "REQUEST_URI" => "/sitemap.html"
                      "SCRIPT_NAME" => "/index.php"
                      "PHP_SELF" => "/index.php"
                      "REQUEST_TIME_FLOAT" => 1441407909.921
                      "REQUEST_TIME" => 1441407909
                      "HTTP_REFERER" => null
                      "APP_ENV" => "local"
                      "APP_DEBUG" => "true"
                      "APP_KEY" => "asAYsdsHyp5ESx7iOgQNj4EGhjFAdmD8"
                      "DB_HOST" => "torchdev.cli5aftmx5ec.us-west-2.rds.amazonaws.com"
                      "DB_DATABASE" => "torchdev"
                      "DB_USERNAME" => "torch"
                      "DB_PASSWORD" => "t0rcHDa7aba$3"
                      "INV_DB_HOST" => "localhost"
                      "INV_DB_USER" => "inventorydb"
                      "INV_DB_PASS" => "PaSSinVent10"
                      "INV_DB_DB" => "blusolutions_inventory"
                      "CACHE_DRIVER" => "memcached"
                      "SESSION_DRIVER" => "memcached"
                      "QUEUE_DRIVER" => "iron"
                      "IRON_HOST" => "mq-aws-us-east-1.iron.io"
                      "IRON_TOKEN" => "U15zL1DTEAHTHkgCte7avF3mmos"
                      "IRON_PROJECT" => "55d37cb18dd2f8000a0000a9"
                      "IRON_QUEUE" => "import-inventory"
                      "MAIL_DRIVER" => "mailgun"
                      "MAIL_HOST" => "smtp.mailgun.org"
                      "MAIL_PORT" => "587"
                      "MAIL_USERNAME" => ""
                      "MAIL_PASSWORD" => ""
                      "MAILGUN_DOMAIN" => "sandbox8b4550f639b84127a8f2642e71d602d4.mailgun.org"
                      "MAILGUN_SECRET" => "key-45e0e26550657eca6312ea3fe06ba04e"
                      "BUGSNAG_API_KEY" => "37ad28a7f09a0210011c0681e7f77c9b"
                    ]
                  }
                  +files: FileBag {#219
                    #parameters: []
                  }
                  +cookies: ParameterBag {#218
                    #parameters: []
                  }
                  +headers: HeaderBag {#221
                    #headers: array:10 [
                      "host" => array:1 [
                        0 => "www.matthewandandrew.org"
                      ]
                      "x-real-ip" => array:1 [
                        0 => "54.167.116.62"
                      ]
                      "x-forwarded-for" => array:1 [
                        0 => "54.167.116.62"
                      ]
                      "x-accel-internal" => array:1 [
                        0 => "/internal-nginx-static-location"
                      ]
                      "connection" => array:1 [
                        0 => "close"
                      ]
                      "accept-encoding" => array:1 [
                        0 => "x-gzip, gzip, deflate"
                      ]
                      "user-agent" => array:1 [
                        0 => "CCBot/2.0 (http://commoncrawl.org/faq/)"
                      ]
                      "accept-language" => array:1 [
                        0 => "en-us,en-gb,en;q=0.7,*;q=0.3"
                      ]
                      "accept" => array:1 [
                        0 => "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
                      ]
                      "referer" => []
                    ]
                    #cacheControl: []
                  }
                  #content: null
                  #languages: null
                  #charsets: null
                  #encodings: null
                  #acceptableContentTypes: null
                  #pathInfo: "/sitemap.html"
                  #requestUri: "/sitemap.html"
                  #baseUrl: ""
                  #basePath: null
                  #method: "GET"
                  #format: null
                  #session: Store {#165
                    #id: "fb323d6b7dc9e5d8cd0dc8c1329fe005d47fd20c"
                    #name: "laravel_session"
                    #attributes: array:1 [
                      "_token" => "OFJxrAx05RWmq8O6yWFsOmgSMk56dMWPd6Oj7ais"
                    ]
                    #bags: []
                    #metaBag: MetadataBag {#166
                      -name: "__metadata"
                      -storageKey: "_sf2_meta"
                      #meta: &6 array:3 [
                        "u" => 1441407911
                        "c" => 1441407911
                        "l" => "0"
                      ]
                      -lastUsed: 1441407911
                      -updateThreshold: 0
                    }
                    #bagData: array:1 [
                      "_sf2_meta" => &6 array:3 [&6]
                    ]
                    #handler: CacheBasedSessionHandler {#151
                      #cache: Repository {#164
                        #store: MemcachedStore {#163
                          #memcached: Memcached {#162}
                          #prefix: "laravel:"
                        }
                        #events: Dispatcher {#8
                          #container: Application {#5
                            #basePath: "/var/www/vhosts/dealertorch.com/httpdocs"
                            #hasBeenBootstrapped: true
                            #booted: true
                            #bootingCallbacks: array:3 [
                              0 => Closure {#127
                                reflection: """
                                  Closure [ <user> public method Illuminate\Foundation\{closure} ] {
                                    @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Application.php 619 - 622
                                  
                                    - Bound Variables [1] {
                                        Variable #0 [ $instance ]
                                    }
                                  }
                                  """
                              }
                              1 => Closure {#159
                                reflection: """
                                  Closure [ <user> public method Illuminate\Foundation\{closure} ] {
                                    @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Application.php 619 - 622
                                  
                                    - Bound Variables [1] {
                                        Variable #0 [ $instance ]
                                    }
                                  }
                                  """
                              }
                              2 => Closure {#175
                                reflection: """
                                  Closure [ <user> public method Illuminate\Foundation\{closure} ] {
                                    @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Application.php 619 - 622
                                  
                                    - Bound Variables [1] {
                                        Variable #0 [ $instance ]
                                    }
                                  }
                                  """
                              }
                            ]
                            #bootedCallbacks: []
                            #terminatingCallbacks: []
                            #serviceProviders: array:29 [
                              0 => EventServiceProvider {#6
                                #app: Application {#5}
                                #defer: false
                              }
                              1 => RoutingServiceProvider {#10
                                #app: Application {#5}
                                #defer: false
                              }
                              2 => AuthServiceProvider {#45
                                #app: Application {#5}
                                #defer: false
                              }
                              3 => ControllerServiceProvider {#50
                                #app: Application {#5}
                                #defer: false
                              }
                              4 => CookieServiceProvider {#52
                                #app: Application {#5}
                                #defer: false
                              }
                              5 => DatabaseServiceProvider {#54
                                #app: Application {#5}
                                #defer: false
                              }
                              6 => EncryptionServiceProvider {#58
                                #app: Application {#5}
                                #defer: false
                              }
                              7 => FilesystemServiceProvider {#60
                                #app: Application {#5}
                                #defer: false
                              }
                              8 => FormRequestServiceProvider {#66
                                #app: Application {#5}
                                #defer: false
                              }
                              9 => FoundationServiceProvider {#65
                                #providers: array:1 [
                                  0 => "Illuminate\Foundation\Providers\FormRequestServiceProvider"
                                ]
                                #instances: array:1 [
                                  0 => FormRequestServiceProvider {#66}
                                ]
                                #app: Application {#5}
                                #defer: false
                              }
                              10 => PaginationServiceProvider {#67
                                #app: Application {#5}
                                #defer: false
                              }
                              11 => SessionServiceProvider {#70
                                #app: Application {#5}
                                #defer: false
                              }
                              12 => ValidationServiceProvider {#74
                                #app: Application {#5}
                                #defer: false
                              }
                              13 => ViewServiceProvider {#78
                                #app: Application {#5}
                                #defer: false
                              }
                              14 => TorchServiceProvider {#84
                                #app: Application {#5}
                                #defer: false
                              }
                              15 => PackageServiceProvider {#86
                                #app: Application {#5}
                                #defer: false
                              }
                              16 => AppServiceProvider {#82
                                #app: Application {#5}
                                #defer: false
                              }
                              17 => BusServiceProvider {#88
                                #app: Application {#5}
                                #defer: false
                              }
                              18 => ConfigServiceProvider {#89
                                #app: Application {#5}
                                #defer: false
                              }
                              19 => EventServiceProvider {#90
                                #listen: array:1 [
                                  "event.name" => array:1 [
                                    0 => "EventListener"
                                  ]
                                ]
                                #subscribe: []
                                #app: Application {#5}
                                #defer: false
                              }
                              20 => RouteServiceProvider {#91
                                #namespace: "Torch\Http\Controllers"
                                #app: Application {#5}
                                #defer: false
                              }
                              21 => ImageServiceProvider {#92
                                #defer: false
                                #provider: ImageServiceProviderLaravel5 {#93
                                  #app: Application {#5}
                                  #defer: false
                                }
                                #app: Application {#5}
                              }
                              22 => BugsnagLaravelServiceProvider {#96
                                #defer: false
                                #app: Application {#5}
                              }
                              23 => Package {#113
                                #app: Application {#5}
                                #defer: false
                              }
                              24 => Package {#122
                                #app: Application {#5}
                                #defer: false
                              }
                              25 => BusServiceProvider {#124
                                #defer: true
                                #app: Application {#5}
                              }
                              26 => CacheServiceProvider {#152
                                #defer: true
                                #app: Application {#5}
                              }
                              27 => HashServiceProvider {#167
                                #defer: true
                                #app: Application {#5}
                              }
                              28 => Package {#229
                                #app: Application {#5}
                                #defer: false
                              }
                            ]
                            #loadedProviders: array:29 [
                              "Illuminate\Events\EventServiceProvider" => true
                              "Illuminate\Routing\RoutingServiceProvider" => true
                              "Illuminate\Auth\AuthServiceProvider" => true
                              "Illuminate\Routing\ControllerServiceProvider" => true
                              "Illuminate\Cookie\CookieServiceProvider" => true
                              "Illuminate\Database\DatabaseServiceProvider" => true
                              "Illuminate\Encryption\EncryptionServiceProvider" => true
                              "Illuminate\Filesystem\FilesystemServiceProvider" => true
                              "Illuminate\Foundation\Providers\FormRequestServiceProvider" => true
                              "Illuminate\Foundation\Providers\FoundationServiceProvider" => true
                              "Illuminate\Pagination\PaginationServiceProvider" => true
                              "Illuminate\Session\SessionServiceProvider" => true
                              "Illuminate\Validation\ValidationServiceProvider" => true
                              "Illuminate\View\ViewServiceProvider" => true
                              "Torch\Providers\Torch\TorchServiceProvider" => true
                              "Torch\Providers\Package\PackageServiceProvider" => true
                              "Torch\Providers\AppServiceProvider" => true
                              "Torch\Providers\BusServiceProvider" => true
                              "Torch\Providers\ConfigServiceProvider" => true
                              "Torch\Providers\EventServiceProvider" => true
                              "Torch\Providers\RouteServiceProvider" => true
                              "Intervention\Image\ImageServiceProvider" => true
                              "Bugsnag\BugsnagLaravel\BugsnagLaravelServiceProvider" => true
                              "Torch\Packages\Site\Package" => true
                              "Torch\Packages\Asset\Package" => true
                              "Illuminate\Bus\BusServiceProvider" => true
                              "Illuminate\Cache\CacheServiceProvider" => true
                              "Illuminate\Hashing\HashServiceProvider" => true
                              "Torch\Packages\Page\Package" => true
                            ]
                            #deferredServices: array:73 [
                              "command.app.name" => "Illuminate\Foundation\Providers\ArtisanServiceProvider"
                              "command.clear-compiled" => "Illuminate\Foundation\Providers\ArtisanServiceProvider"
                              "command.command.make" => "Illuminate\Foundation\Providers\ArtisanServiceProvider"
                              "command.config.cache" => "Illuminate\Foundation\Providers\ArtisanServiceProvider"
                              "command.config.clear" => "Illuminate\Foundation\Providers\ArtisanServiceProvider"
                              "command.console.make" => "Illuminate\Foundation\Providers\ArtisanServiceProvider"
                              "command.event.generate" => "Illuminate\Foundation\Providers\ArtisanServiceProvider"
                              "command.event.make" => "Illuminate\Foundation\Providers\ArtisanServiceProvider"
                              "command.down" => "Illuminate\Foundation\Providers\ArtisanServiceProvider"
                              "command.environment" => "Illuminate\Foundation\Providers\ArtisanServiceProvider"
                              "command.fresh" => "Illuminate\Foundation\Providers\ArtisanServiceProvider"
                              "command.handler.command" => "Illuminate\Foundation\Providers\ArtisanServiceProvider"
                              "command.handler.event" => "Illuminate\Foundation\Providers\ArtisanServiceProvider"
                              "command.key.generate" => "Illuminate\Foundation\Providers\ArtisanServiceProvider"
                              "command.model.make" => "Illuminate\Foundation\Providers\ArtisanServiceProvider"
                              "command.optimize" => "Illuminate\Foundation\Providers\ArtisanServiceProvider"
                              "command.provider.make" => "Illuminate\Foundation\Providers\ArtisanServiceProvider"
                              "command.request.make" => "Illuminate\Foundation\Providers\ArtisanServiceProvider"
                              "command.route.cache" => "Illuminate\Foundation\Providers\ArtisanServiceProvider"
                              "command.route.clear" => "Illuminate\Foundation\Providers\ArtisanServiceProvider"
                              "command.route.list" => "Illuminate\Foundation\Providers\ArtisanServiceProvider"
                              "command.serve" => "Illuminate\Foundation\Providers\ArtisanServiceProvider"
                              "command.tinker" => "Illuminate\Foundation\Providers\ArtisanServiceProvider"
                              "command.up" => "Illuminate\Foundation\Providers\ArtisanServiceProvider"
                              "command.vendor.publish" => "Illuminate\Foundation\Providers\ArtisanServiceProvider"
                              "Illuminate\Contracts\Bus\Dispatcher" => "Illuminate\Bus\BusServiceProvider"
                              "Illuminate\Contracts\Bus\QueueingDispatcher" => "Illuminate\Bus\BusServiceProvider"
                              "cache.store" => "Illuminate\Cache\CacheServiceProvider"
                              "memcached.connector" => "Illuminate\Cache\CacheServiceProvider"
                              "command.cache.clear" => "Illuminate\Cache\CacheServiceProvider"
                              "command.cache.table" => "Illuminate\Cache\CacheServiceProvider"
                              "command.auth.resets.clear" => "Illuminate\Foundation\Providers\ConsoleSupportServiceProvider"
                              "Illuminate\Console\Scheduling\ScheduleRunCommand" => "Illuminate\Foundation\Providers\ConsoleSupportServiceProvider"
                              "migrator" => "Illuminate\Foundation\Providers\ConsoleSupportServiceProvider"
                              "migration.repository" => "Illuminate\Foundation\Providers\ConsoleSupportServiceProvider"
                              "command.migrate" => "Illuminate\Foundation\Providers\ConsoleSupportServiceProvider"
                              "command.migrate.rollback" => "Illuminate\Foundation\Providers\ConsoleSupportServiceProvider"
                              "command.migrate.reset" => "Illuminate\Foundation\Providers\ConsoleSupportServiceProvider"
                              "command.migrate.refresh" => "Illuminate\Foundation\Providers\ConsoleSupportServiceProvider"
                              "command.migrate.install" => "Illuminate\Foundation\Providers\ConsoleSupportServiceProvider"
                              "command.migrate.status" => "Illuminate\Foundation\Providers\ConsoleSupportServiceProvider"
                              "migration.creator" => "Illuminate\Foundation\Providers\ConsoleSupportServiceProvider"
                              "command.migrate.make" => "Illuminate\Foundation\Providers\ConsoleSupportServiceProvider"
                              "seeder" => "Illuminate\Foundation\Providers\ConsoleSupportServiceProvider"
                              "command.seed" => "Illuminate\Foundation\Providers\ConsoleSupportServiceProvider"
                              "composer" => "Illuminate\Foundation\Providers\ConsoleSupportServiceProvider"
                              "command.queue.table" => "Illuminate\Foundation\Providers\ConsoleSupportServiceProvider"
                              "command.queue.failed" => "Illuminate\Foundation\Providers\ConsoleSupportServiceProvider"
                              "command.queue.retry" => "Illuminate\Foundation\Providers\ConsoleSupportServiceProvider"
                              "command.queue.forget" => "Illuminate\Foundation\Providers\ConsoleSupportServiceProvider"
                              "command.queue.flush" => "Illuminate\Foundation\Providers\ConsoleSupportServiceProvider"
                              "command.queue.failed-table" => "Illuminate\Foundation\Providers\ConsoleSupportServiceProvider"
                              "command.controller.make" => "Illuminate\Foundation\Providers\ConsoleSupportServiceProvider"
                              "command.middleware.make" => "Illuminate\Foundation\Providers\ConsoleSupportServiceProvider"
                              "command.session.database" => "Illuminate\Foundation\Providers\ConsoleSupportServiceProvider"
                              "mailer" => "Illuminate\Mail\MailServiceProvider"
                              "swift.mailer" => "Illuminate\Mail\MailServiceProvider"
                              "swift.transport" => "Illuminate\Mail\MailServiceProvider"
                              "Illuminate\Contracts\Pipeline\Hub" => "Illuminate\Pipeline\PipelineServiceProvider"
                              "queue" => "Illuminate\Queue\QueueServiceProvider"
                              "queue.worker" => "Illuminate\Queue\QueueServiceProvider"
                              "queue.listener" => "Illuminate\Queue\QueueServiceProvider"
                              "queue.failer" => "Illuminate\Queue\QueueServiceProvider"
                              "command.queue.work" => "Illuminate\Queue\QueueServiceProvider"
                              "command.queue.listen" => "Illuminate\Queue\QueueServiceProvider"
                              "command.queue.restart" => "Illuminate\Queue\QueueServiceProvider"
                              "command.queue.subscribe" => "Illuminate\Queue\QueueServiceProvider"
                              "queue.connection" => "Illuminate\Queue\QueueServiceProvider"
                              "redis" => "Illuminate\Redis\RedisServiceProvider"
                              "auth.password" => "Illuminate\Auth\Passwords\PasswordResetServiceProvider"
                              "auth.password.tokens" => "Illuminate\Auth\Passwords\PasswordResetServiceProvider"
                              "translator" => "Illuminate\Translation\TranslationServiceProvider"
                              "translation.loader" => "Illuminate\Translation\TranslationServiceProvider"
                            ]
                            #databasePath: null
                            #storagePath: null
                            #useStoragePathForOptimizations: false
                            #environmentFile: ".env"
                            #resolved: array:40 [
                              "events" => true
                              "Illuminate\Foundation\Bootstrap\DetectEnvironment" => true
                              "Illuminate\Foundation\Bootstrap\LoadConfiguration" => true
                              "Illuminate\Foundation\Bootstrap\ConfigureLogging" => true
                              "env" => true
                              "Illuminate\Foundation\Bootstrap\RegisterFacades" => true
                              "Illuminate\Foundation\Bootstrap\RegisterProviders" => true
                              "Illuminate\Foundation\Bootstrap\BootProviders" => true
                              "db.factory" => true
                              "db" => true
                              "Torch" => true
                              "Package" => true
                              "view.engine.resolver" => true
                              "files" => true
                              "view.finder" => true
                              "view" => true
                              "Illuminate\Bus\Dispatcher" => true
                              "router" => true
                              "url" => true
                              "Site" => true
                              "session" => true
                              "cache" => true
                              "memcached.connector" => true
                              "auth" => true
                              "hash" => true
                              "session.store" => true
                              "cookie" => true
                              "filesystem" => true
                              "Asset" => true
                              "Psr\Log\LoggerInterface" => true
                              "Illuminate\Foundation\Exceptions\Handler" => true
                              "Illuminate\Contracts\Debug\ExceptionHandler" => true
                              "Torch\Http\Kernel" => true
                              "Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode" => true
                              "encrypter" => true
                              "Illuminate\Cookie\Middleware\EncryptCookies" => true
                              "Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse" => true
                              "Illuminate\Session\Middleware\StartSession" => true
                              "Illuminate\View\Middleware\ShareErrorsFromSession" => true
                              "Torch\Http\Middleware\VerifyCsrfToken" => true
                            ]
                            #bindings: array:47 [
                              "events" => array:2 [
                                "concrete" => Closure {#7
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Events\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Events/EventServiceProvider.php 14 - 20
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $app ]
                                      }
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "router" => array:2 [
                                "concrete" => Closure {#12
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Container\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php 281 - 294
                                    
                                      - Bound Variables [2] {
                                          Variable #0 [ $closure ]
                                          Variable #1 [ $object ]
                                      }
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $container ]
                                      }
                                    }
                                    """
                                }
                                "shared" => false
                              ]
                              "url" => array:2 [
                                "concrete" => Closure {#14
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Container\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php 281 - 294
                                    
                                      - Bound Variables [2] {
                                          Variable #0 [ $closure ]
                                          Variable #1 [ $object ]
                                      }
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $container ]
                                      }
                                    }
                                    """
                                }
                                "shared" => false
                              ]
                              "redirect" => array:2 [
                                "concrete" => Closure {#16
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Container\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php 281 - 294
                                    
                                      - Bound Variables [2] {
                                          Variable #0 [ $closure ]
                                          Variable #1 [ $object ]
                                      }
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $container ]
                                      }
                                    }
                                    """
                                }
                                "shared" => false
                              ]
                              "Illuminate\Contracts\Routing\ResponseFactory" => array:2 [
                                "concrete" => Closure {#17
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Routing\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/RoutingServiceProvider.php 118 - 121
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $app ]
                                      }
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "Illuminate\Contracts\Debug\ExceptionHandler" => array:2 [
                                "concrete" => Closure {#18
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Container\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php 225 - 230
                                    
                                      - Bound Variables [2] {
                                          Variable #0 [ $abstract ]
                                          Variable #1 [ $concrete ]
                                      }
                                    
                                      - Parameters [2] {
                                        Parameter #0 [ <required> $c ]
                                        Parameter #1 [ <optional> $parameters = Array ]
                                      }
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "env" => array:2 [
                                "concrete" => Closure {#23
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Container\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php 1251 - 1254
                                    
                                      - Bound Variables [1] {
                                          Variable #0 [ $value ]
                                      }
                                    }
                                    """
                                }
                                "shared" => false
                              ]
                              "Psr\Log\LoggerInterface" => array:2 [
                                "concrete" => Closure {#20
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Foundation\Bootstrap\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/ConfigureLogging.php 22 - 25
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $app ]
                                      }
                                    }
                                    """
                                }
                                "shared" => false
                              ]
                              "auth" => array:2 [
                                "concrete" => Closure {#46
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Auth\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Auth/AuthServiceProvider.php 28 - 36
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $app ]
                                      }
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "auth.driver" => array:2 [
                                "concrete" => Closure {#47
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Auth\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Auth/AuthServiceProvider.php 38 - 41
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $app ]
                                      }
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "Illuminate\Contracts\Auth\Authenticatable" => array:2 [
                                "concrete" => Closure {#48
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Auth\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Auth/AuthServiceProvider.php 51 - 54
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $app ]
                                      }
                                    }
                                    """
                                }
                                "shared" => false
                              ]
                              "illuminate.route.dispatcher" => array:2 [
                                "concrete" => Closure {#51
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Routing\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/ControllerServiceProvider.php 14 - 17
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $app ]
                                      }
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "cookie" => array:2 [
                                "concrete" => Closure {#53
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Cookie\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Cookie/CookieServiceProvider.php 14 - 19
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $app ]
                                      }
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "Illuminate\Contracts\Queue\EntityResolver" => array:2 [
                                "concrete" => Closure {#55
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Database\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/DatabaseServiceProvider.php 55 - 58
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "db.factory" => array:2 [
                                "concrete" => Closure {#56
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Database\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/DatabaseServiceProvider.php 34 - 37
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $app ]
                                      }
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "db" => array:2 [
                                "concrete" => Closure {#57
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Database\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/DatabaseServiceProvider.php 42 - 45
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $app ]
                                      }
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "encrypter" => array:2 [
                                "concrete" => Closure {#59
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Encryption\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php 14 - 24
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $app ]
                                      }
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "files" => array:2 [
                                "concrete" => Closure {#61
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Filesystem\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Filesystem/FilesystemServiceProvider.php 26 - 26
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "filesystem" => array:2 [
                                "concrete" => Closure {#62
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Filesystem\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Filesystem/FilesystemServiceProvider.php 56 - 59
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "filesystem.disk" => array:2 [
                                "concrete" => Closure {#63
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Filesystem\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Filesystem/FilesystemServiceProvider.php 38 - 41
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "filesystem.cloud" => array:2 [
                                "concrete" => Closure {#64
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Filesystem\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Filesystem/FilesystemServiceProvider.php 43 - 46
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "session" => array:2 [
                                "concrete" => Closure {#71
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Session\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Session/SessionServiceProvider.php 28 - 31
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $app ]
                                      }
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "session.store" => array:2 [
                                "concrete" => Closure {#72
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Session\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Session/SessionServiceProvider.php 41 - 49
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $app ]
                                      }
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "Illuminate\Session\Middleware\StartSession" => array:2 [
                                "concrete" => Closure {#73
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Container\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php 225 - 230
                                    
                                      - Bound Variables [2] {
                                          Variable #0 [ $abstract ]
                                          Variable #1 [ $concrete ]
                                      }
                                    
                                      - Parameters [2] {
                                        Parameter #0 [ <required> $c ]
                                        Parameter #1 [ <optional> $parameters = Array ]
                                      }
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "validation.presence" => array:2 [
                                "concrete" => Closure {#77
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Validation\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Validation/ValidationServiceProvider.php 65 - 68
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $app ]
                                      }
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "validator" => array:2 [
                                "concrete" => Closure {#76
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Validation\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Validation/ValidationServiceProvider.php 42 - 55
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $app ]
                                      }
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "view.engine.resolver" => array:2 [
                                "concrete" => Closure {#79
                                  reflection: """
                                    Closure [ <user> public method Illuminate\View\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/View/ViewServiceProvider.php 32 - 45
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "view.finder" => array:2 [
                                "concrete" => Closure {#80
                                  reflection: """
                                    Closure [ <user> public method Illuminate\View\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/View/ViewServiceProvider.php 92 - 97
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $app ]
                                      }
                                    }
                                    """
                                }
                                "shared" => false
                              ]
                              "view" => array:2 [
                                "concrete" => Closure {#81
                                  reflection: """
                                    Closure [ <user> public method Illuminate\View\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/View/ViewServiceProvider.php 107 - 126
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $app ]
                                      }
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "Illuminate\Contracts\Auth\Registrar" => array:2 [
                                "concrete" => Closure {#83
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Container\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php 225 - 230
                                    
                                      - Bound Variables [2] {
                                          Variable #0 [ $abstract ]
                                          Variable #1 [ $concrete ]
                                      }
                                    
                                      - Parameters [2] {
                                        Parameter #0 [ <required> $c ]
                                        Parameter #1 [ <optional> $parameters = Array ]
                                      }
                                    }
                                    """
                                }
                                "shared" => false
                              ]
                              "Torch" => array:2 [
                                "concrete" => Closure {#85
                                  reflection: """
                                    Closure [ <user> public method Torch\Providers\Torch\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/app/Providers/Torch/TorchServiceProvider.php 13 - 15
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $app ]
                                      }
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "Package" => array:2 [
                                "concrete" => Closure {#87
                                  reflection: """
                                    Closure [ <user> public method Torch\Providers\Package\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/app/Providers/Package/PackageServiceProvider.php 8 - 10
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "image" => array:2 [
                                "concrete" => Closure {#95
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Container\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php 281 - 294
                                    
                                      - Bound Variables [2] {
                                          Variable #0 [ $closure ]
                                          Variable #1 [ $object ]
                                      }
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $container ]
                                      }
                                    }
                                    """
                                }
                                "shared" => false
                              ]
                              "bugsnag" => array:2 [
                                "concrete" => Closure {#97
                                  reflection: """
                                    Closure [ <user> public method Bugsnag\BugsnagLaravel\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/bugsnag/bugsnag-laravel/src/Bugsnag/BugsnagLaravel/BugsnagLaravelServiceProvider.php 55 - 103
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $app ]
                                      }
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "Site" => array:2 [
                                "concrete" => Closure {#114
                                  reflection: """
                                    Closure [ <user> public method Torch\Packages\Site\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/app/Packages/Site/Package.php 15 - 18
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $app ]
                                      }
                                    }
                                    """
                                }
                                "shared" => false
                              ]
                              "blade.compiler" => array:2 [
                                "concrete" => Closure {#117
                                  reflection: """
                                    Closure [ <user> public method Illuminate\View\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/View/ViewServiceProvider.php 72 - 77
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $app ]
                                      }
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "Asset" => array:2 [
                                "concrete" => Closure {#123
                                  reflection: """
                                    Closure [ <user> public method Torch\Packages\Asset\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/app/Packages/Asset/Package.php 16 - 18
                                    }
                                    """
                                }
                                "shared" => false
                              ]
                              "Illuminate\Bus\Dispatcher" => array:2 [
                                "concrete" => Closure {#126
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Bus\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Bus/BusServiceProvider.php 21 - 27
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $app ]
                                      }
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "cache" => array:2 [
                                "concrete" => Closure {#153
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Cache\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Cache/CacheServiceProvider.php 23 - 26
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $app ]
                                      }
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "cache.store" => array:2 [
                                "concrete" => Closure {#154
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Cache\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Cache/CacheServiceProvider.php 28 - 31
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $app ]
                                      }
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "memcached.connector" => array:2 [
                                "concrete" => Closure {#155
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Cache\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Cache/CacheServiceProvider.php 33 - 36
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "command.cache.clear" => array:2 [
                                "concrete" => Closure {#156
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Cache\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Cache/CacheServiceProvider.php 48 - 51
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $app ]
                                      }
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "command.cache.table" => array:2 [
                                "concrete" => Closure {#157
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Cache\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Cache/CacheServiceProvider.php 53 - 56
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $app ]
                                      }
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "auth.loaded" => array:2 [
                                "concrete" => Closure {#177
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Container\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php 1251 - 1254
                                    
                                      - Bound Variables [1] {
                                          Variable #0 [ $value ]
                                      }
                                    }
                                    """
                                }
                                "shared" => false
                              ]
                              "hash" => array:2 [
                                "concrete" => Closure {#179
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Hashing\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Hashing/HashServiceProvider.php 21 - 21
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "Page" => array:2 [
                                "concrete" => Closure {#234
                                  reflection: """
                                    Closure [ <user> public method Illuminate\Container\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php 281 - 294
                                    
                                      - Bound Variables [2] {
                                          Variable #0 [ $closure ]
                                          Variable #1 [ $object ]
                                      }
                                    
                                      - Parameters [1] {
                                        Parameter #0 [ <required> $container ]
                                      }
                                    }
                                    """
                                }
                                "shared" => true
                              ]
                              "PageRepository" => array:2 [
                                "concrete" => Closure {#238
                                  reflection: """
                                    Closure [ <user> public method Torch\Packages\Page\{closure} ] {
                                      @@ /var/www/vhosts/dealertorch.com/httpdocs/app/Packages/Page/Package.php 32 - 34
                                    }
                                    """
                                }
                                "shared" => false
                              ]
                            ]
                            #instances: array:34 [
                              "app" => Application {#5}
                              "Illuminate\Container\Container" => Application {#5}
                              "events" => Dispatcher {#8}
                              "path" => "/var/www/vhosts/dealertorch.com/httpdocs/app"
                              "path.base" => "/var/www/vhosts/dealertorch.com/httpdocs"
                              "path.config" => "/var/www/vhosts/dealertorch.com/httpdocs/config"
                              "path.database" => "/var/www/vhosts/dealertorch.com/httpdocs/database"
                              "path.lang" => "/var/www/vhosts/dealertorch.com/httpdocs/resources/lang"
                              "path.public" => "/var/www/vhosts/dealertorch.com/httpdocs/public"
                              "path.storage" => "/var/www/vhosts/dealertorch.com/httpdocs/storage"
                              "modx" => DocumentParser {#1
                                +db: DBAPI {#2
                                  +conn: :mysql link {@6
                                    host: "Localhost via UNIX socket"
                                    protocol: 10
                                    server: "5.5.42"
                                  }
                                  +config: &11 array:7 [
                                    "host" => "localhost"
                                    "dbase" => "`torch_matthewandandrew`"
                                    "user" => "mandafound"
                                    "pass" => "Z8C9Q3*nZs7n0"
                                    "charset" => "utf8"
                                    "connection_method" => "SET CHARACTER SET"
                                    "table_prefix" => "modx_"
                                  ]
                                  +isConnected: true
                                  +"_dbconnectionmethod": "SET CHARACTER SET"
                                  +"dataTypes": array:3 [
                                    "numeric" => array:14 [ …14]
                                    "string" => array:14 [ …14]
                                    "date" => array:5 [ …5]
                                  ]
                                }
                                +event: &12 SystemEvent {#3
                                  +name: "OnPageNotFound"
                                  +_propagate: true
                                  +_output: ""
                                  +activated: false
                                  +activePlugin: "laravelTorch"
                                  +"params": & []
                                }
                                +Event: &12 SystemEvent {#3}
                                +pluginEvent: array:108 [
                                  "OnBeforeCacheUpdate" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnBeforeChunkFormDelete" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnBeforeChunkFormSave" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnBeforeDocDuplicate" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnBeforeDocFormDelete" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnBeforeDocFormSave" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnBeforeEmptyTrash" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnBeforeManagerLogin" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnBeforeManagerLogout" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnBeforeManagerPageInit" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnBeforeModFormDelete" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnBeforeModFormSave" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnBeforePluginFormDelete" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnBeforePluginFormSave" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnBeforeSaveWebPageCache" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnBeforeSnipFormDelete" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnBeforeSnipFormSave" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnBeforeTempFormDelete" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnBeforeTempFormSave" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnBeforeTVFormDelete" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnBeforeTVFormSave" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnBeforeUserFormDelete" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnBeforeUserFormSave" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnBeforeWebLogin" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnBeforeWebLogout" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnBeforeWUsrFormDelete" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnBeforeWUsrFormSave" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnCacheUpdate" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnChunkFormDelete" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnChunkFormPrerender" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnChunkFormRender" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnChunkFormSave" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnCreateDocGroup" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnDocDuplicate" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnDocFormDelete" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnDocFormPrerender" => array:4 [
                                    0 => "ManagerManager"
                                    1 => "AppCenter"
                                    2 => "Quick Manager+"
                                    3 => "laravelTorch"
                                  ]
                                  "OnDocFormRender" => array:2 [
                                    0 => "ManagerManager"
                                    1 => "laravelTorch"
                                  ]
                                  "OnDocFormSave" => array:2 [
                                    0 => "Quick Manager+"
                                    1 => "laravelTorch"
                                  ]
                                  "OnDocPublished" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnDocUnPublished" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnEmptyTrash" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnFileManagerUpload" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnFriendlyURLSettingsRender" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnInterfaceSettingsRender" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnLoadWebDocument" => array:2 [
                                    0 => "AppCenter"
                                    1 => "laravelTorch"
                                  ]
                                  "OnLoadWebPageCache" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnLogPageHit" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnManagerAuthentication" => array:2 [
                                    0 => "AppCenter"
                                    1 => "laravelTorch"
                                  ]
                                  "OnManagerChangePassword " => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnManagerCreateGroup" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnManagerDeleteUser" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnManagerLogin" => array:2 [
                                    0 => "AppCenter"
                                    1 => "laravelTorch"
                                  ]
                                  "OnManagerLoginFormPrerender" => array:2 [
                                    0 => "AppCenter"
                                    1 => "laravelTorch"
                                  ]
                                  "OnManagerLoginFormRender" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnManagerLogout" => array:3 [
                                    0 => "Quick Manager+"
                                    1 => "AppCenter"
                                    2 => "laravelTorch"
                                  ]
                                  "OnManagerPageInit" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnManagerSaveUser " => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnManagerWelcomeHome" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnManagerWelcomePrerender" => array:2 [
                                    0 => "AppCenter"
                                    1 => "laravelTorch"
                                  ]
                                  "OnManagerWelcomeRender" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnMiscSettingsRender" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnModFormDelete" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnModFormPrerender" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnModFormRender" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnModFormSave" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnPageNotFound" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnPageUnauthorized" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnParseDocument" => array:3 [
                                    0 => "AppCenter"
                                    1 => "PHx"
                                    2 => "laravelTorch"
                                  ]
                                  "OnPluginFormDelete" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnPluginFormPrerender" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnPluginFormRender" => array:2 [
                                    0 => "ManagerManager"
                                    1 => "laravelTorch"
                                  ]
                                  "OnPluginFormSave" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnRichTextEditorInit" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnRichTextEditorRegister" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnSiteRefresh" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnSiteSettingsRender" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnSnipFormDelete" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnSnipFormPrerender" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnSnipFormRender" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnSnipFormSave" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnStripAlias" => array:2 [
                                    0 => "TransAlias"
                                    1 => "laravelTorch"
                                  ]
                                  "OnTempFormDelete" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnTempFormPrerender" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnTempFormRender" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnTempFormSave" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnTVFormDelete" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnTVFormPrerender" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnTVFormRender" => array:2 [
                                    0 => "ManagerManager"
                                    1 => "laravelTorch"
                                  ]
                                  "OnTVFormSave" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnUserFormDelete" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnUserFormPrerender" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnUserFormRender" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnUserFormSave" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnUserSettingsRender" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnWebAuthentication" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnWebChangePassword " => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnWebCreateGroup" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnWebDeleteUser" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnWebLogin" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnWebLogout" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnWebPageComplete" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnWebPageInit" => array:2 [
                                    0 => "AppCenter"
                                    1 => "laravelTorch"
                                  ]
                                  "OnWebPagePrerender" => array:3 [
                                    0 => "Search Highlight"
                                    1 => "Quick Manager+"
                                    2 => "laravelTorch"
                                  ]
                                  "OnWebSaveUser" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnWUsrFormDelete" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnWUsrFormPrerender" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnWUsrFormRender" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                  "OnWUsrFormSave" => array:1 [
                                    0 => "laravelTorch"
                                  ]
                                ]
                                +config: array:171 [
                                  "manager_theme" => "MODxCarbon"
                                  "settings_version" => "1.0.4"
                                  "show_meta" => "0"
                                  "server_offset_time" => "0"
                                  "server_protocol" => "http"
                                  "manager_language" => "english"
                                  "modx_charset" => &14 "UTF-8"
                                  "site_name" => "Matthew And Andrew"
                                  "site_start" => "1"
                                  "error_page" => "1"
                                  "unauthorized_page" => "1"
                                  "site_status" => "1"
                                  "site_unavailable_message" => "The site is currently unavailable"
                                  "track_visitors" => "0"
                                  "resolve_hostnames" => "0"
                                  "top_howmany" => "10"
                                  "default_template" => "12"
                                  "old_template" => "12"
                                  "publish_default" => "1"
                                  "cache_default" => "0"
                                  "search_default" => "1"
                                  "friendly_urls" => "1"
                                  "friendly_url_prefix" => ""
                                  "friendly_url_suffix" => ".html"
                                  "friendly_alias_urls" => "1"
                                  "use_alias_path" => "1"
                                  "use_udperms" => "1"
                                  "udperms_allowroot" => "1"
                                  "failed_login_attempts" => "3"
                                  "blocked_minutes" => "60"
                                  "use_captcha" => "0"
                                  "captcha_words" => "Access,Better,BitCode,Cache,Desc,Design,Excell,Enjoy,URLs,TechView,Gerald,Griff,Humphrey,Holiday,Intel,Integration,Joystick,Join(),Tattoo,Genetic,Light,Likeness,Marit,Maaike,Niche,Netherlands,Ordinance,Oscillo,Parser,Phusion,Query,Question,Regalia,Righteous,Snippet,Sentinel,Template,Thespian,Unity,Enterprise,Verily,Veri,Website,WideWeb,Yap,Yellow,Zebra,Zygote"
                                  "emailsender" => "support@blusolutions.com"
                                  "emailsubject" => "Your login details"
                                  "number_of_logs" => "100"
                                  "number_of_messages" => "30"
                                  "number_of_results" => "20"
                                  "use_editor" => "1"
                                  "use_browser" => "1"
                                  "rb_base_dir" => "/var/www/vhosts/matthewandandrew.org/httpdocs_new/assets/"
                                  "rb_base_url" => "assets/"
                                  "which_editor" => "TinyMCE"
                                  "fe_editor_lang" => "english"
                                  "fck_editor_toolbar" => "standard"
                                  "fck_editor_autolang" => "0"
                                  "editor_css_path" => ""
                                  "editor_css_selectors" => ""
                                  "strip_image_paths" => "1"
                                  "upload_images" => "bmp,ico,gif,jpeg,jpg,png,psd,tif,tiff"
                                  "upload_media" => "au,avi,mp3,mp4,mpeg,mpg,wav,wmv,jpg,jpeg,pdf,mov"
                                  "upload_flash" => "fla,flv,swf"
                                  "upload_files" => "aac,au,avi,css,cache,doc,docx,gz,gzip,htaccess,htm,html,js,mp3,mp4,mpeg,mpg,ods,odp,odt,pdf,ppt,pptx,rar,tar,tgz,txt,wav,wmv,xls,xlsx,xml,z,zip,jpg,flv"
                                  "upload_maxsize" => "1048576"
                                  "new_file_permissions" => "0777"
                                  "new_folder_permissions" => "0777"
                                  "filemanager_path" => "/var/www/vhosts/matthewandandrew.org/httpdocs_new/assets/"
                                  "theme_refresher" => ""
                                  "manager_layout" => "4"
                                  "custom_contenttype" => "application/rss+xml,application/pdf,application/vnd.ms-word,application/vnd.ms-excel,text/html,text/css,text/xml,text/javascript,text/plain"
                                  "auto_menuindex" => "1"
                                  "session.cookie.lifetime" => "604800"
                                  "mail_check_timeperiod" => "60"
                                  "manager_direction" => "ltr"
                                  "tinymce_editor_theme" => "editor"
                                  "tinymce_custom_plugins" => "style,advimage,advlink,searchreplace,print,contextmenu,paste,fullscreen,nonbreaking,xhtmlxtras,visualchars,media"
                                  "tinymce_custom_buttons1" => "undo,redo,selectall,separator,pastetext,pasteword,separator,search,replace,separator,nonbreaking,hr,charmap,separator,image,link,unlink,anchor,media,separator,cleanup,removeformat,separator,fullscreen,print,code,help"
                                  "tinymce_custom_buttons2" => "bold,italic,underline,strikethrough,sub,sup,separator,bullist,numlist,outdent,indent,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,styleselect,formatselect,separator,styleprops"
                                  "tree_show_protected" => "0"
                                  "rss_url_news" => "http://feeds.feedburner.com/modx-announce"
                                  "rss_url_security" => "http://feeds.feedburner.com/modxsecurity"
                                  "validate_referer" => "1"
                                  "datepicker_offset" => "-10"
                                  "xhtml_urls" => "1"
                                  "allow_duplicate_alias" => "1"
                                  "automatic_alias" => "1"
                                  "datetime_format" => "dd-mm-YYYY"
                                  "warning_visibility" => "1"
                                  "remember_last_tab" => "1"
                                  "site_id" => "4ca2591b3986d"
                                  "site_unavailable_page" => ""
                                  "reload_site_unavailable" => ""
                                  "siteunavailable_message_default" => "The site is currently unavailable."
                                  "reload_captcha_words" => ""
                                  "captcha_words_default" => "MODx,Access,Better,BitCode,Chunk,Cache,Desc,Design,Excell,Enjoy,URLs,TechView,Gerald,Griff,Humphrey,Holiday,Intel,Integration,Joystick,Join(),Oscope,Genetic,Light,Likeness,Marit,Maaike,Niche,Netherlands,Ordinance,Oscillo,Parser,Phusion,Query,Question,Regalia,Righteous,Snippet,Sentinel,Template,Thespian,Unity,Enterprise,Verily,Tattoo,Veri,Website,WideWeb,Yap,Yellow,Zebra,Zygote"
                                  "tree_page_click" => "27"
                                  "rb_webuser" => "0"
                                  "tinymce_custom_buttons3" => ""
                                  "tinymce_custom_buttons4" => ""
                                  "tinymce_css_selectors" => ""
                                  "reload_emailsubject" => ""
                                  "emailsubject_default" => "Your login details"
                                  "reload_signupemail_message" => ""
                                  "signupemail_message" => """
                                    Hello [+uid+] 
                                    
                                    Here are your login details for [+sname+] Content Manager:
                                    
                                    Username: [+uid+]
                                    Password: [+pwd+]
                                    
                                    Once you log into the Content Manager ([+surl+]), you can change your password.
                                    
                                    Regards,
                                    Site Administrator"""
                                  "system_email_signup_default" => """
                                    Hello [+uid+] 
                                    
                                    Here are your login details for [+sname+] Content Manager:
                                    
                                    Username: [+uid+]
                                    Password: [+pwd+]
                                    
                                    Once you log into the Content Manager ([+surl+]), you can change your password.
                                    
                                    Regards,
                                    Site Administrator"""
                                  "reload_websignupemail_message" => ""
                                  "websignupemail_message" => """
                                    Hello [+uid+]
                                    
                                    Here are your login details for [+sname+]:
                                    
                                    Username: [+uid+]
                                    Password: [+pwd+]
                                    
                                    Once you log into [+sname+] ([+surl+]), you can change your password.
                                    
                                    Regards,
                                    Site Administrator"""
                                  "system_email_websignup_default" => """
                                    Hello [+uid+]
                                    
                                    Here are your login details for [+sname+]:
                                    
                                    Username: [+uid+]
                                    Password: [+pwd+]
                                    
                                    Once you log into [+sname+] ([+surl+]), you can change your password.
                                    
                                    Regards,
                                    Site Administrator"""
                                  "reload_system_email_webreminder_message" => ""
                                  "webpwdreminder_message" => """
                                    Hello [+uid+]
                                    
                                    To activate your new password click the following link:
                                    
                                    [+surl+]
                                    
                                    If successful you can use the following password to login:
                                    
                                    Password:[+pwd+]
                                    
                                    If you did not request this email then please ignore it.
                                    
                                    Regards,
                                    Site Administrator"""
                                  "system_email_webreminder_default" => """
                                    Hello [+uid+]
                                    
                                    To activate your new password click the following link:
                                    
                                    [+surl+]
                                    
                                    If successful you can use the following password to login:
                                    
                                    Password:[+pwd+]
                                    
                                    If you did not request this email then please ignore it.
                                    
                                    Regards,
                                    Site Administrator"""
                                  "dealername" => "Matthew And Andrew Akin Foundation"
                                  "dealeraddress" => "11503 St. Charles Rock Rd. "
                                  "dealerstate" => "MO"
                                  "dealercity" => "Bridgeton"
                                  "dealerzip" => "63044"
                                  "phonegen" => "636-541-2766"
                                  "phonesales" => ""
                                  "phoneservice" => ""
                                  "phoneparts" => ""
                                  "phonebody" => ""
                                  "emailgen" => "Justin@matthewandandrew.org"
                                  "emailsales" => "Justin@matthewandandrew.org"
                                  "emailservice" => "Justin@matthewandandrew.org"
                                  "emailparts" => "Justin@matthewandandrew.org"
                                  "emailbody" => "Justin@matthewandandrew.org"
                                  "seotitletag" => "HLH (Hemophagocytic Lymphohistiocytosis) Patient & Research Support | Matthew & Andrew Akin Foundation - 877.370.5847"
                                  "seokeywords" => "hlh, hemophagocytic lymphohistiocytosis, hlh disease, hlh blood disorder, hlh diagnosis, hlh prognosis, hlh symptoms, immune system, immune deficiency, immunodeficiency, dr. lisa filipovich, matthew akin, andrew akin, william akin, flh, familial hlh, genetic hlh, primary hlh, secondary hlh, 700 miles to hope, st. louis, st louis, saint louis, st. louis mo, missouri, mo, cincinnati, cincinnati oh, cincinnati ohio, cincinnati children's hospital, matthew & andrew Akin foundation, 877-370-5847, www.matthewandandrew.org"
                                  "seodescription" => "Matthew & Andrew Akin Foundation Helps (HLH) Hemophagocytic Lymphohistiocytosis Patients & HLH Center of Excellence at Cincinnati Childrens Hospital via 700 Miles to Hope - Matthew & Andrew Akin Foundation - (877) 370-5847 - matthewandandrew.org"
                                  "headerins" => """
                                    <meta name="robots" content="index, follow" /> 
                                    <meta name="Author" content="Matthew And Andrew Akin Foundation" />
                                    
                                    <meta name="msvalidate.01" content="C11BAFCDFFC69804A2E27FC3174E553D" />"""
                                  "footerins" => "<!-- footer insert -->"
                                  "h1override" => "HLH | Hemophagocytic Lymphohistiocytosis | 700 Miles to Hope"
                                  "seofooter" => """
                                    <p>The mission of The Matthew and Andrew Akin Foundation is to support the world-renowned experts at the HLH Center of Excellence at Cincinnati Children's Hospital and their four core priorities: Research, Clinical Care, Education, and Family Support.
                                    
                                    </p>
                                    
                                    
                                    <p>The goal of the foundation is to help build a housing structure by Cincinnati Children’s Hospital so the families can live in a “clean” environment outside the hospital pre and post transplant.  During the transplant process the children won’t have functioning immune systems for many months so it is imperative that they are protected.  Families come from across the world to Cincinnati Children’s Hospital because they perform more pediatric bone marrow transplants yearly than any other hospital in the United States.  The average stay in Cincinnati for a family going through the transplant process is xx months.  We lived in Cincinnati for 17 months and would have welcomed a structure like this to call home.
                                    </p>
                                    <p>The foundation will also support the National Marrow Donor Program which is the leading organization in the field of marrow and cord blood transplantation, working every day to connect patients, doctors, donors and researchers to the resources they need.  We will fund bone marrow drives to get more people on the registry in hopes of finding a life saving match.  Our sons underwent four transplants and we are very grateful for this organization because it gave our sons a chance at life.</p>"""
                                  "seogeo" => ""
                                  "seotitletagaddon" => " | HLH - Hemophagocytic Lymphohistiocytosis | Matthew & Andrew Akin Foundation – 877.370.5847"
                                  "analyticsid" => "UA-13178820-35"
                                  "webmasterid" => "J7ysDLgTTAdCcOTawQTwEKgVbGvX4NyBsQbbjADonPk"
                                  "loc_maplink" => ""
                                  "loc_mapsrc" => ""
                                  "invdisclaimer" => ""
                                  "resourcesid" => "3"
                                  "homearticlesid" => "5"
                                  "homeflashid" => "6"
                                  "homeimagesid" => "7"
                                  "eventsid" => "8"
                                  "formsid" => "9"
                                  "couponsid" => "10"
                                  "mediaid" => "11"
                                  "staffid" => "12"
                                  "acsiteurl" => "www.DEALERDOMAIN.com"
                                  "templatesid" => "14"
                                  "tpl-mainid" => "10"
                                  "tpl-secondaryid" => "12"
                                  "tpl-homelinksid" => "9"
                                  "tpl-homearticlesid" => ""
                                  "tpl-homeflashid" => ""
                                  "tpl-homeimagesid" => "5"
                                  "tpl-eventsid" => "7"
                                  "tpl-formsid" => "8"
                                  "tpl-couponsid" => "6"
                                  "tpl-staffid" => "13"
                                  "tpl-mediaid" => "11"
                                  "mediaradioid" => "31"
                                  "mediaprintid" => "33"
                                  "mediatvid" => "32"
                                  "mediavideoid" => "34"
                                  "dealer_ids" => ""
                                  "buleadsadd" => "matthewandandrewleads@email.blusolutions.com"
                                  "testimonialsid" => ""
                                  "managername" => ""
                                  "resellername" => "BluSolutions"
                                  "resellerslug" => "blusolutions"
                                  "resellerdesc" => "Dealer Websites & Automotive SEO"
                                  "resellersite" => "www.blusolutions.com"
                                  "resellerlogo" => "https://s3.amazonaws.com/torchsites/blu_wordmark_130.png"
                                  "aws_key" => "AKIAIC6NPY32J4HT3KCQ"
                                  "aws_secret" => "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"
                                  "aws_s3_bucketname" => "matthewandandrew"
                                  "etomite_charset" => &14 "UTF-8"
                                  "base_url" => "/"
                                  "base_path" => "/var/www/vhosts/matthewandandrew.org/httpdocs_new/"
                                  "site_url" => "http://www.matthewandandrew.org/"
                                ]
                                +rs: null
                                +result: null
                                +sql: null
                                +table_prefix: null
                                +debug: null
                                +documentIdentifier: "sitemap"
                                +documentMethod: "alias"
                                +documentGenerated: null
                                +documentContent: null
                                +tstart: 1441407909.923
                                +minParserPasses: 1
                                +maxParserPasses: 10
                                +documentObject: null
                                +templateObject: null
                                +snippetObjects: null
                                +stopOnNotice: false
                                +executedQueries: null
                                +queryTime: 0.00053715705871582
                                +currentSnippet: null
                                +documentName: null
                                +aliases: null
                                +visitor: null
                                +entrypage: null
                                +documentListing: array:227 [
                                  "appcenter" => 2
                                  "site-resources" => 3
                                  "akin-paypal" => 178
                                  "home" => 255
                                  "our-story" => 280
                                  "our-goals" => 16
                                  "bike-ride" => 282
                                  "what-is-hlh" => 18
                                  "donate" => 225
                                  "why-cincinnati-childrens" => 20
                                  "carepage" => 19
                                  "mobile-playcarts" => 298
                                  "scholarship" => 267
                                  "will" => 269
                                  "resources" => 21
                                  "contact-us" => 150
                                  "call-us" => 296
                                  "thanks" => 258
                                  "beating-heart-test" => 279
                                  "sitemap.xml" => 141
                                  "donate-to-a-rider" => 302
                                  "700-miles" => 319
                                  "site-resources/home-page-links" => 4
                                  "site-resources/templates" => 14
                                  "site-resources/home-page-articles" => 5
                                  "site-resources/home-page-flash-rotation" => 6
                                  "site-resources/home-page-image-rotation" => 7
                                  "site-resources/events" => 8
                                  "site-resources/forms" => 9
                                  "site-resources/coupons" => 10
                                  "site-resources/media" => 11
                                  "site-resources/staff" => 12
                                  "site-resources/home-page-links/footer-quote-banner" => 363
                                  "site-resources/home-page-links/sidebar-700-miles-to-hope" => 366
                                  "site-resources/home-page-links/hike-for-a-cure" => 175
                                  "site-resources/home-page-links/novimmune-study" => 345
                                  "site-resources/home-page-links/sidebar-our-story" => 364
                                  "site-resources/home-page-links/promo-matthew" => 357
                                  "site-resources/home-page-links/promo-andrew" => 358
                                  "site-resources/home-page-links/sidebar-matthew" => 362
                                  "site-resources/home-page-links/love-trumps-grief" => 301
                                  "site-resources/home-page-links/trivia" => 271
                                  "site-resources/home-page-links/sidebar-andrew" => 361
                                  "site-resources/home-page-links/promo-william" => 359
                                  "site-resources/home-page-links/promo-donate" => 360
                                  "site-resources/home-page-links/rss-feed-icon" => 100
                                  "site-resources/home-page-links/sidebar-donate" => 365
                                  "site-resources/home-page-links/photos" => 173
                                  "site-resources/home-page-links/location-and-hours" => 148
                                  "site-resources/home-page-links/videos" => 176
                                  "site-resources/home-page-links/save-a-life" => 98
                                  "site-resources/home-page-links/media-promotions" => 97
                                  "site-resources/home-page-links/contact-cincinnatti-childrens" => 331
                                  "site-resources/home-page-links/rmhc" => 266
                                  "site-resources/home-page-links/blood-drive" => 149
                                  "site-resources/home-page-links/todays-specials-icon" => 99
                                  "site-resources/home-page-links/public-service-announcement" => 295
                                  "site-resources/home-page-links/contact-cincinnati-childrens" => 346
                                  "site-resources/home-page-articles/36" => 36
                                  "site-resources/home-page-image-rotation/blood-drive" => 313
                                  "site-resources/home-page-image-rotation/700-miles-to-hope" => 344
                                  "site-resources/home-page-image-rotation/our-story" => 293
                                  "site-resources/home-page-image-rotation/kt-82" => 367
                                  "site-resources/home-page-image-rotation/documentary" => 355
                                  "site-resources/home-page-image-rotation/novimmune-drug" => 349
                                  "site-resources/home-page-image-rotation/idf-conference" => 354
                                  "site-resources/home-page-image-rotation/trivia-night" => 305
                                  "site-resources/home-page-image-rotation/700-miles-to-hope-video" => 318
                                  "site-resources/home-page-image-rotation/be-the-match-2014" => 347
                                  "site-resources/home-page-image-rotation/hlh-ride-for-the-cure" => 309
                                  "site-resources/home-page-image-rotation/bone-marrow-drive" => 310
                                  "site-resources/home-page-image-rotation/cincinnati-childrens" => 297
                                  "site-resources/home-page-image-rotation/be-the-match-run-walk" => 311
                                  "site-resources/home-page-image-rotation/akin-memorial-blood-drive" => 291
                                  "site-resources/home-page-image-rotation/interest-rates-image" => 146
                                  "site-resources/home-page-image-rotation/love-trumps-grief" => 300
                                  "site-resources/home-page-image-rotation/600-in-stock-image" => 147
                                  "site-resources/home-page-image-rotation/premier-certified-image" => 142
                                  "site-resources/home-page-image-rotation/guaranteed-financing-image" => 143
                                  "site-resources/home-page-image-rotation/mathew-and-andrew" => 167
                                  "site-resources/home-page-image-rotation/william-clayton-akin" => 278
                                  "site-resources/home-page-image-rotation/a-fathers-ride" => 304
                                  "site-resources/events/october-24-2014-blood-drive" => 91
                                  "site-resources/events/sample-event-2" => 125
                                  "site-resources/events/trivia-night" => 273
                                  "site-resources/events/bone-marrow-drive" => 274
                                  "site-resources/events/hike-for-a-cure-shenandoah" => 275
                                  "site-resources/events/a-fathers-ride" => 276
                                  "site-resources/events/ronald-mcdonald-house-charities-bike-ride" => 284
                                  "site-resources/events/hike-for-a-cure-yosemite" => 286
                                  "site-resources/events/flip-flops-and-lemon-drops-fundraiser-tulsa-ok" => 287
                                  "site-resources/events/tour-de-moose-bike-ride" => 288
                                  "site-resources/events/hlh-conference-at-cincinnati-childrens-hospital" => 299
                                  "site-resources/events/scholarship-application" => 306
                                  "site-resources/events/be-the-match-walkrun-at-creve-couer-lake-memorial-park" => 307
                                  "site-resources/events/a-roaring-20s-soiree" => 316
                                  "site-resources/events/go-missouri-kt82" => 343
                                  "site-resources/events/book-signing-at-ylang-ylang-jewelry-store" => 350
                                  "site-resources/events/meeting-at-novimmunes-headquarters-in-geneva-switzerland" => 351
                                  "site-resources/events/immune-deficiency-foundation-national-conference" => 352
                                  "site-resources/events/700-miles-to-hope" => 353
                                  "site-resources/events/scholarship-winners" => 356
                                  "site-resources/forms/service-appointment" => 133
                                  "site-resources/forms/parts-request" => 77
                                  "site-resources/forms/contact-us" => 72
                                  "site-resources/forms/trivia-sign-up" => 270
                                  "site-resources/forms/schedule-service" => 76
                                  "site-resources/forms/ask-our-parts-desk" => 96
                                  "site-resources/forms/make-an-offer" => 163
                                  "site-resources/forms/nl-signup" => 85
                                  "site-resources/forms/contact-dealer" => 164
                                  "site-resources/forms/quick-contact-small" => 75
                                  "site-resources/forms/trade-appraisal" => 84
                                  "site-resources/forms/quick-quote" => 74
                                  "site-resources/forms/employment" => 81
                                  "site-resources/forms/secure-finance-form" => 156
                                  "site-resources/forms/find-a-car" => 159
                                  "site-resources/forms/leverageit-referral" => 259
                                  "site-resources/coupons/service-coupons" => 86
                                  "site-resources/media/radio-media" => 31
                                  "site-resources/media/tv-media" => 32
                                  "site-resources/media/print-media" => 33
                                  "site-resources/media/online-media" => 34
                                  "site-resources/staff/justin-akin" => 90
                                  "site-resources/staff/patrick-madden" => 303
                                  "site-resources/templates/contact-us" => 47
                                  "site-resources/templates/hours-and-location" => 25
                                  "site-resources/templates/our-blog" => 153
                                  "site-resources/templates/newsletter" => 59
                                  "site-resources/templates/customer-testimonials" => 117
                                  "site-resources/templates/trivia-night" => 272
                                  "site-resources/templates/rss-feed" => 154
                                  "resources/resources" => 227
                                  "resources/our-story" => 171
                                  "resources/matthew" => 177
                                  "resources/andrew" => 52
                                  "resources/william-clayton-akin" => 277
                                  "resources/trivia" => 261
                                  "resources/video" => 44
                                  "resources/upcoming-events" => 116
                                  "resources/hike-for-a-cure" => 168
                                  "resources/a-roaring-20s-soiree" => 315
                                  "resources/save-a-life" => 169
                                  "resources/media-gallery" => 115
                                  "resources/blood-drive" => 170
                                  "resources/scholarship" => 265
                                  "resources/sponsors" => 308
                                  "resources/site-map" => 27
                                  "resources/700-miles-to-hope" => 317
                                  "resources/novimmune" => 348
                                  "resources/privacy-policy" => 28
                                  "resources/hlh-blog" => 330
                                  "site-resources/media/radio-media/akin-family" => 241
                                  "site-resources/media/radio-media/the-akin-family-outside" => 202
                                  "site-resources/media/radio-media/matthew-and-andrew-4" => 211
                                  "site-resources/media/radio-media/matthew-and-andrew-8" => 220
                                  "site-resources/media/radio-media/matthew-and-andrew-5" => 217
                                  "site-resources/media/radio-media/matthew-and-andrew-in-plaid" => 249
                                  "site-resources/media/radio-media/matthew-and-andrew-2" => 226
                                  "site-resources/media/radio-media/matthew-and-andrew-3" => 208
                                  "site-resources/media/radio-media/matthew-and-andrew-6" => 218
                                  "site-resources/media/radio-media/matthew-and-andrew-7" => 219
                                  "site-resources/media/radio-media/untitled-resource" => 180
                                  "site-resources/media/radio-media/andrew-billboard" => 203
                                  "site-resources/media/radio-media/sweet-andrew" => 236
                                  "site-resources/media/radio-media/andrews-2nd-birthday" => 237
                                  "site-resources/media/radio-media/christmas-2008" => 239
                                  "site-resources/media/radio-media/andrew-riding-gilligan" => 240
                                  "site-resources/media/radio-media/andrews-second-transplant" => 251
                                  "site-resources/media/radio-media/matthew-kissing-baby-andrew" => 254
                                  "site-resources/media/print-media/andrew-series-1" => 201
                                  "site-resources/media/print-media/andrew-series-2" => 204
                                  "site-resources/media/print-media/andrew-series-3" => 205
                                  "site-resources/media/print-media/matthew-holding-andrew" => 235
                                  "site-resources/media/print-media/untitled-resource" => 213
                                  "site-resources/media/print-media/andrew-series-5" => 210
                                  "site-resources/media/print-media/andrew-series-6" => 216
                                  "site-resources/media/print-media/andrew-series-7" => 221
                                  "site-resources/media/print-media/matthew-and-daddy" => 214
                                  "site-resources/media/print-media/matthew-5" => 233
                                  "site-resources/media/print-media/hook-em-horns" => 229
                                  "site-resources/media/print-media/cowboy-matthew" => 230
                                  "site-resources/media/print-media/matthew-on-tricycle" => 234
                                  "site-resources/media/print-media/mathew-and-mommy" => 209
                                  "site-resources/media/print-media/matthew" => 197
                                  "site-resources/media/print-media/matthew-3" => 212
                                  "site-resources/media/print-media/matthew-4" => 222
                                  "site-resources/media/print-media/matthew-and-his-best-friend-charlie" => 252
                                  "site-resources/media/print-media/matthew-and-friends" => 253
                                  "site-resources/media/print-media/matthew-on-his-bike" => 215
                                  "site-resources/media/print-media/daddy-matthew-and-goofy" => 257
                                  "site-resources/media/online-media/andrew-pop" => 179
                                  "site-resources/media/online-media/andrew-in-chair" => 181
                                  "site-resources/media/online-media/dr-matthew-and-his-patient-andrew" => 182
                                  "site-resources/media/online-media/andrew-playing-basketball" => 183
                                  "site-resources/media/online-media/andrew-and-matthew-playing-peek-a-boo" => 184
                                  "site-resources/media/online-media/good-morning-andrew" => 185
                                  "site-resources/media/online-media/andrew-on-daddys-lap" => 186
                                  "site-resources/media/online-media/andrew-and-daddy-series" => 187
                                  "site-resources/media/online-media/hike-4-a-cure-to-half-dome" => 188
                                  "site-resources/media/online-media/running-at-andrew" => 189
                                  "site-resources/media/online-media/andrew-saying-dada" => 190
                                  "site-resources/media/online-media/andrew-kissing-mommy" => 191
                                  "site-resources/media/online-media/andrew-akin-laughing" => 192
                                  "site-resources/media/online-media/matthew-making-pancakes" => 256
                                  "site-resources/media/online-media/akin-foundation-video" => 294
                                  "wiper-bladesinserts" => 105
                                  "700-miles/a-fathers-ride-2011-a-week-away" => 342
                                  "700-miles/a-fathers-ride-2011-day-1" => 341
                                  "700-miles/a-fathers-ride-2012" => 340
                                  "700-miles/a-fathers-ride-2012-day-1" => 339
                                  "700-miles/a-fathers-ride-2012-day-2" => 338
                                  "700-miles/a-fathers-ride-2012-day-4" => 336
                                  "700-miles/a-fathers-ride-2012-day-5" => 335
                                  "700-miles/duplicate-of-a-fathers-ride-2012-day-6" => 334
                                  "700-miles/a-fathers-ride-2012-day-7" => 333
                                  "700-miles/a-fathers-ride-2012-day-8-the-ride-home" => 332
                                  "700-miles/hlh-ride-for-a-cure-a-fathers-ride-2013" => 327
                                  "700-miles/day-1" => 326
                                  "700-miles/day-2" => 325
                                  "700-miles/day-3" => 324
                                  "700-miles/day-4" => 323
                                  "700-miles/day-5" => 322
                                  "700-miles/day-6" => 321
                                  "700-miles/day-7" => 320
                                  "700-miles/700-miles-to-hope-an-hlh-journey-trailer" => 328
                                  "700-miles/700-miles-to-hope-an-hlh-journey-documentary" => 329
                                ]
                                +dumpSnippets: false
                                +chunkCache: array:34 [
                                  "ac.Menu" => """
                                    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
                                    <html lang="en" xml:lang="en">
                                    <head>
                                    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
                                    <title>nav</title>
                                    <base href="[(site_url)]" />
                                    
                                    <link rel="stylesheet" type="text/css" href="http://www.blusolutions.com/appcenter/global/assets/styles/bluSteel/style.css" />
                                    <script src="http://www.blusolutions.com/manager/media/script/mootools/mootools.js" type="text/javascript"></script>
                                    <script src="http://www.blusolutions.com/manager/media/script/mootools/moodx.js" type="text/javascript"></script>
                                    <script type="text/javascript">
                                    // TREE FUNCTIONS - FRAME
                                    // These functions affect the tree frame and any items that may be pointing to the tree.
                                    var currentFrameState = 'open';
                                    var defaultFrameWidth = '260,*';
                                    var userDefinedFrameWidth = '260,*';
                                    
                                    var workText;
                                    var buildText;
                                    
                                    // Create the AJAX mail update object before requesting it
                                    var updateMailerAjx = new Ajax('index.php', {method:'post', postBody:'updateMsgCount=true', onComplete:showResponse});
                                    function updateMail(now) {
                                    try {
                                    // if 'now' is set, runs immediate ajax request (avoids problem on initial loading where periodical waits for time period before making first request)
                                    if (now)
                                    updateMailerAjx.request();
                                    return false;
                                    } catch(oException) {
                                    // Delay first run until we're ready...
                                    xx=updateMail.delay(1000,'',true);
                                    }
                                    };
                                    
                                    function showResponse(request) {
                                    var counts = request.split(',');
                                    var elm = $('msgCounter');
                                    if (elm) elm.innerHTML ='(' + counts[0] + ' / ' + counts[1] + ')';
                                    var elm = $('newMail');
                                    if (elm) elm.style.display = counts[0] >0 ? 'inline' :  'none';
                                    }
                                    
                                    window.addEvent('load', function() {
                                    updateMail(true); // First run update
                                    updateMail.periodical(60000, '', true); // Periodical Updater
                                    if(top.__hideTree) {
                                    // display toc icon
                                    var elm = $('tocText');
                                    if(elm) elm.innerHTML = "<a href='#' onclick='defaultTreeFrame();'><img src='media/style/bluSteel/images/icons/application_side_expand.png' alt='Show Site Tree' width='16' height='16' /></a>";
                                    }
                                    });
                                    
                                    function hideTreeFrame() {
                                    userDefinedFrameWidth = parent.document.getElementsByTagName("FRAMESET").item(1).cols;
                                    currentFrameState = 'closed';
                                    try {
                                    var elm = $('tocText');
                                    if(elm) elm.innerHTML = "<a href='#' onclick='defaultTreeFrame();'><img src='media/style/bluSteel/images/icons/application_side_expand.png' alt='Show Site Tree' width='16' height='16' /></a>";
                                    parent.document.getElementsByTagName("FRAMESET").item(1).cols = '0,*';
                                    top.__hideTree = true;
                                    } catch(oException) {
                                    x=window.setTimeout('hideTreeFrame()', 1000);
                                    }
                                    }
                                    
                                    function defaultTreeFrame() {
                                    userDefinedFrameWidth = defaultFrameWidth;
                                    currentFrameState = 'open';
                                    try {
                                    var elm = $('tocText');
                                    if(elm) elm.innerHTML = "";
                                    parent.document.getElementsByTagName("FRAMESET").item(1).cols = defaultFrameWidth;
                                    top.__hideTree = false;
                                    } catch(oException) {
                                    z=window.setTimeout('defaultTreeFrame()', 1000);
                                    }
                                    }
                                    
                                    // TREE FUNCTIONS - Expand/ Collapse
                                    // These functions affect the expanded/collapsed state of the tree and any items that may be pointing to it
                                    function expandTree() {
                                    try {
                                    parent.tree.d.openAll();  // dtree
                                    } catch(oException) {
                                    zz=window.setTimeout('expandTree()', 1000);
                                    }
                                    }
                                    
                                    function collapseTree() {
                                    try {
                                    parent.tree.d.closeAll();  // dtree
                                    } catch(oException) {
                                    yy=window.setTimeout('collapseTree()', 1000);
                                    }
                                    }
                                    
                                    // GENERAL FUNCTIONS - Refresh
                                    // These functions are used for refreshing the tree or menu
                                    function reloadtree() {
                                    var elm = $('buildText');
                                    if (elm) {
                                    elm.innerHTML = "&nbsp;&nbsp;<img src='media/style/bluSteel/images/icons/information.png' width='16' height='16' />&nbsp;Loading Site Tree...";
                                    elm.style.display = 'block';
                                    }
                                    top.tree.saveFolderState(); // save folder state
                                    setTimeout('top.tree.restoreTree()',200);
                                    }
                                    
                                    function reloadmenu() {
                                    }
                                    
                                    function startrefresh(rFrame){
                                    if(rFrame==1){
                                    x=window.setTimeout('reloadtree()',500);
                                    }
                                    if(rFrame==2) {
                                    x=window.setTimeout('reloadmenu()',500);
                                    }
                                    if(rFrame==9) {
                                    x=window.setTimeout('reloadmenu()',500);
                                    y=window.setTimeout('reloadtree()',500);
                                    }
                                    if(rFrame==10) {
                                    window.top.location.href = "../manager";
                                    }
                                    }
                                    
                                    // GENERAL FUNCTIONS - Work
                                    // These functions are used for showing the user the system is working
                                    function work() {
                                    var elm = $('workText');
                                    if (elm) elm.innerHTML = "&nbsp;<img src='media/style/bluSteel/images/icons/exclamation.png' width='16' height='16' />&nbsp;Working...";
                                    else w=window.setTimeout('work()', 50);
                                    }
                                    
                                    function stopWork() {
                                    var elm = $('workText');
                                    if (elm) elm.innerHTML = "";
                                    else  ww=window.setTimeout('stopWork()', 50);
                                    }
                                    
                                    // GENERAL FUNCTIONS - Remove locks
                                    // This function removes locks on documents, templates, parsers, and snippets
                                    function removeLocks() {
                                    if(confirm("Users sometimes close their browser while editing Resources, Templates, Snippets or parsers, possibly leaving the item they were editing in locked state. By pressing OK you can remove ALL locks currently in place.\n\nProceed?")==true) {
                                    top.main.document.location.href="index.php?a=67";
                                    }
                                    }
                                    
                                    function showWin() {
                                    window.open('../');
                                    }
                                    
                                    function stopIt() {
                                    top.mainMenu.stopWork();
                                    }
                                    
                                    function openCredits() {
                                    parent.main.document.location.href = "index.php?a=18";
                                    xwwd = window.setTimeout('stopIt()', 2000);
                                    }
                                    
                                    function NavToggle(element) {
                                    // This gives the active tab its look
                                    var navid = document.getElementById('nav');
                                    var navs = navid.getElementsByTagName('li');
                                    var navsCount = navs.length;
                                    for(j = 0; j < navsCount; j++) {
                                    active = (navs[j].id == element.parentNode.id) ? "active" : "";
                                    navs[j].className = active;
                                    }
                                    
                                    // remove focus from top nav
                                    if(element) element.blur();
                                    }
                                    </script>
                                    
                                    <!--[if lt IE 7]>
                                    <style type="text/css">
                                    body { behavior: url(media/script/forIE/htcmime.php?file=csshover.htc) }
                                    img { behavior: url(media/script/forIE/htcmime.php?file=pngbehavior.htc); }
                                    </style>
                                    <![endif]-->
                                    </head>
                                    
                                    <body id="topMenu" class="ltr">
                                    
                                    <div id="tocText"></div>
                                    <div id="topbar">
                                    <div id="topbar-container">
                                    <div id="statusbar">
                                    <!--<span id="buildText"><span class="mainnumber section-title">Main - 314.450.8068</span><br/><span class="supportnumber">Support - 314.766.4646</span><br/><span class="supportnumber">Toll Free - 866.529.4003</span></span>
                                    --><ul id="header-contact-info">
                                                <li class=""><h3><span>Main: </span>314.450.8068</h3></li>
                                    
                                            <!--    <li class=""><h3>314.450.8068</h3></li> -->
                                                <li class=""><h4><span>Support: </span>314.766.4646</h4></li>
                                            <!--    <li class=""><h4>314.766.4646</h4></li> -->
                                                <li class=""><h4><span>Toll Free: </span>866.529.4003</h4></li>
                                            <!--    <li class=""><h4>866.529.4003</h4></li> -->
                                            </ul>
                                    
                                    
                                    <!--        <span id="workText"></span>
                                    --></div>
                                    
                                    <div id="supplementalNav">
                                    
                                    matthewandandrew   | <a href="/appcenter.html?page=support" target="main">Support</a>| <a href="manager/index.php?a=8" target="_top">Logout</a>
                                    | <span title="Matthew and Andrew Foundation &ndash; MODx Evolution 1.0.2 (Rev: 6066 Date:4 Nov 2009">1.0.2</span>&nbsp;
                                    <!-- close #supplementalNav --></div>
                                    
                                    </div>
                                    </div>
                                    
                                    <!-- SSO Forms -->
                                    
                                    
                                    <!-- Basecamp Login -->
                                    <form method="post" action="https://launchpad.37signals.com/authenticate" id="basecamp" target="main">
                                    <input type="hidden" value="basecamp" name="product" />
                                    <input type="hidden" value="blusolutions" name="subdomain" />
                                    <input type="hidden" value="akin4ut" name="username" />
                                    <input type="hidden" value="my3boys" name="password" />
                                    </form>
                                    
                                    
                                    <!-- BannerSyndicate Login -->
                                    <form method="post" action="http://banners.dealersyndication.com/www/admin/index.php" id="banners" target="main">
                                    <input type="hidden" value="" name="oa_cookiecheck"/>
                                    <input type="hidden" value="matthewandandrew" name="username" />
                                    <input type="hidden" value="m**And**a()*%" name="password" />
                                    </form>
                                    
                                    <!-- BluReach -->
                                    
                                    <!--<form method="POST" action="http://cc.reachlocal.com/register/clogin.php" id="blureach" target="main">
                                    <input type="hidden" name="login_email" value="blusolutions@gmail.com"/>
                                    <input type="hidden" name="login_password" value="reachlocal" />
                                    </form>
                                    -->
                                    
                                    <!-- email marketing -->
                                    <!--<form id="email" name="login_form" class="form" action="https://www.constantcontact.com/login.jsp" method="post" target="main">
                                    <input id="loginName" name="loginName" class="textfield" tabindex="1" type="hidden" value="blusolutions1" size="35" maxlength="50" />
                                    <input id="loginPassword" name="loginPassword" class="textfield" tabindex="2" type="hidden" value="P@$$w0rD" size="35" maxlength="80" />
                                    </form>
                                    -->
                                    
                                    
                                    <form name="menuForm" action="l4mnu.php" class="clear">
                                    <div id="Navcontainer">
                                    <div id="divNav">
                                    
                                    <ul id="nav">
                                    <li id="limenu1" class="active"><a href="appcenter.html?page=dashboard" target="main" onclick="NavToggle(this);">Main</a></li>
                                    <!--<li id="li-inventory"><a href="#inventorymenu" onclick="new NavToggle(this); return false;">Inventory</a><ul class="subnav" id="inventorymenu">
                                    <li><a onclick="document.forms['webiol'].submit();" target="main">Manage Inventory</a></li>
                                    <li><a href="appcenter.html?page=subscribe&product=Ebay and Craigslist" target="main">Ebay &amp; Craigslist</a></li>
                                    <li><a onclick="document.forms['blurevo'].submit();" target="main">Ebay &amp; Craigslist</a></li>
                                    </ul></li>
                                    -->
                                    <li id="li-site"><a href="#menuSite" onclick="new NavToggle(this); return false;">Website</a><ul class="subnav" id="menuSite">
                                    <li><a href="appcenter.html?page=homepage" target="main">Home Page</a></li>
                                    <li><a href="appcenter.html?page=subpages" target="main">Sub Pages</a></li>
                                    <li><a onclick="document.forms['banners'].submit();" target="main">Banners</a></li>
                                    <li><a href="appcenter.html?page=media" target="main">Media</a></li>
                                    <li><a href="appcenter.html?page=coupons" target="main">Coupons</a></li>
                                    <li><a href="appcenter.html?page=staff" target="main">Staff</a></li>
                                    <li><a href="appcenter.html?page=events" target="main">Events</a></li>
                                    <!--<li><a href="appcenter.html?page=testimonials" target="main">Testimonials</a></li>
                                    --><li><a href="appcenter.html?page=settings" target="main">Settings</a></li>
                                    </ul></li>
                                    <li id="li-rss"><a href="appcenter.html?page=subscribe&product=Micro Sites" target="main" onclick="new NavToggle(this);">Micro Sites</a><ul class="subnav" id="rssmenu">
                                    <!--<li><a onclick="document.forms['rss-edge'].submit();" target="main">Edge</a></li>
                                    
                                    <li><a onclick="document.forms['rss-escape'].submit();" target="main">Escape</a></li>
                                    <li><a onclick="document.forms['rss-f150'].submit();" target="main">F150</a></li>
                                    <li><a onclick="document.forms['rss-fiesta'].submit();" target="main">Fiesta</a></li>
                                    <li><a onclick="document.forms['rss-focus'].submit();" target="main">Focus</a></li>
                                    <li><a onclick="document.forms['rss-fusion'].submit();" target="main">Fusion</a></li>
                                    <li><a onclick="document.forms['rss-mustang'].submit();" target="main">Mustang</a></li>
                                    <li><a onclick="document.forms['rss-taurus'].submit();" target="main">Taurus</a></li>
                                    <li><a onclick="document.forms['rss-used-mo'].submit();" target="main">Used Car Missouri</a></li>
                                    <li><a onclick="document.forms['rss-used-stl'].submit();" target="main">Used Car St. Louis</a></li>
                                    --></ul></li>
                                    <!--<li id="li-social"><a href="#socialmenu" onclick="new NavToggle(this); return false;">Social</a><ul class="subnav" id="socialmenu">
                                    --><li id="li-social"><a href="appcenter.html?page=subscribe&product=Social" target="main">Social</a><ul class="subnav" id="socialmenu">
                                    <!--<li><a onclick="document.forms['blog'].submit();" target="main">Blog</a></li>
                                    <li><a onclick="document.forms['vox'].submit();" target="main">VOX</a></li>
                                    <li><a onclick="document.forms['squidoo'].submit();" target="main">Squidoo</a></li>
                                    --></ul></li>
                                    <li id="li-marketing"><a href="#marketingmenu" onclick="new NavToggle(this); return false;">Marketing</a><ul class="subnav" id="marketingmenu">
                                    <li><a onclick="document.forms['banners'].submit();" target="main">Banners</a></li>
                                    <li><a href="appcenter.html?page=subscribe&product=Email Marketing" target="main">Email Marketing</a></li>
                                    
                                    <li><a href="appcenter.html?page=subscribe&product=Search and Display" target="main">Search and Display</a></li>
                                    </ul></li>
                                    <li id="li-blutools"><a href="#blutoolsmenu" onclick="new NavToggle(this); return false;">Tools</a><ul class="subnav" id="blutoolsmenu">
                                    <li><a onclick="document.forms['basecamp'].submit();" target="main">Projects</a></li>
                                    <li><a href="https://www.google.com/analytics/settings/?et=reset&hl=en" target="main">Google Analytics</a></li>
                                    <li><a href="http://support.blusolutions.com" target="main">Support</a></li>
                                    </ul></li>
                                    </ul>
                                    </div>
                                    </div>
                                    </form>
                                    
                                    <!-- can't find a better name :) should always be fixed -->
                                    <div id="menuSplitter"></div>
                                    <img id="keepAliveIMG" width="1" height="1" src="media/script/_session.gif?" />
                                    </body>
                                    </html>"""
                                  "ac.Dashboard" => """
                                    {{ac.main.opener}}
                                    <div id="dash-container" class="content-container">
                                         <img id="welcome-logo" src="http://www.blusolutions.com/appcenter/global/assets/images/welcome-icon.jpg" border="0" alt="Welcome to AppCenter" width="436" height="132" />
                                         
                                    <ul>
                                    <li class="dash-link"><a href="/appcenter.html?page=homepage">HOME PAGE</a></li>
                                    <li class="dash-link"><a href="/appcenter.html?page=subpages">SUB PAGES</a></li>
                                    <!--
                                    <li class="dash-link"><a onclick="document.forms['banners'].submit();" target="main">BANNERS</a></li>
                                    -->
                                    <li class="dash-link"><a href="http://www.google.com/analytics/settings/?et=reset&amp;hl=en">ANALYTICS</a></li>
                                    <li class="dash-link"><a onclick="document.forms['basecamp'].submit();" target="main">PROJECTS</a></li>
                                    <li class="dash-link last-item"><a href="http://support.blusolutions.com">SUPPORT</a></li>
                                    </ul>
                                    </div>
                                    
                                    <!-- Basecamp Login -->
                                    <form method="post" action="https://launchpad.37signals.com/authenticate" id="basecamp" target="main">
                                    <input type="hidden" value="basecamp" name="product" />
                                    <input type="hidden" value="blusolutions" name="subdomain" />
                                    <input type="hidden" value="akin4ut" name="username" />
                                    <input type="hidden" value="my3boys" name="password" />
                                    </form>
                                    
                                    
                                    <!-- BannerSyndicate Login -->
                                    <form id="banners" action="http://banners.dealersyndication.com/www/admin/index.php" method="post">
                                    <input name="oa_cookiecheck" type="hidden" />
                                    <input name="username" type="hidden" />
                                    <input name="password" type="hidden" />
                                    </form>
                                    
                                    <!-- BluReach -->
                                    <form id="blureach" action="http://cc.reachlocal.com/register/clogin.php" method="POST">
                                    <input name="login_email" type="hidden" value="blusolutions@gmail.com" />
                                    <input name="login_password" type="hidden" value="reachlocal" />
                                    </form>
                                    
                                    
                                    <!-- email marketing -->
                                    <form id="email" class="form" action="https://www.constantcontact.com/login.jsp" method="post">
                                    <input id="loginName" class="textfield" maxlength="50" name="loginName" size="35" type="hidden" value="blusolutions1" />
                                    <input id="loginPassword" class="textfield" maxlength="80" name="loginPassword" size="35" type="hidden" value="P@$$w0rD" />
                                    </form>
                                    {{ac.main.closer}}"""
                                  "tpl.comment" => """
                                    <a name="jc[+jot.link.id+][+comment.id+]"></a>
                                    <div class="jot-row [+chunk.rowclass+] [+comment.published:is=`0`:then=`jot-row-up`+]">
                                     <div class="jot-comment">
                                      
                                     <div class="jot-user">
                                     [+comment.createdby:isnt=`0`:then=`<b>`+][+comment.createdby:userinfo=`username`:ifempty=`[+comment.custom.name:ifempty=`[+jot.guestname+]`:esc+]`+][+comment.createdby:isnt=`0`:then=`</b>`+]
                                     </div> 
                                    
                                     <div class="jot-content">
                                     
                                     <div class="jot-posticon">
                                    
                                    [+phx:userinfo=`lastlogin`:ifempty=`9999999999`:lt=`[+comment.createdon+]`:then=`
                                     <img src="[(base_url)]assets/snippets/jot/templates/comment.gif" width="16" height="16" alt="New comment" border="0" />
                                     `:else=`
                                     <img src="[(base_url)]assets/snippets/jot/templates/comment_trans.gif" width="16" height="16" alt="Comment" border="0" />
                                     `:strip+]
                                     </div> 
                                     
                                     <div class="jot-mod">
                                     [+jot.moderation.enabled:is=`1`:then=`
                                    <a href="[+jot.link.delete:esc+][+jot.querykey.id+]=[+comment.id+]#jotmod[+jot.link.id+]" onclick="return confirm('Are you sure you wish to delete this comment?')" title="Delete Comment"><img src="[(base_url)]assets/snippets/jot/templates/delete.gif" width="16" height="16" alt="Delete Comment" border="0" /></a>
                                    [+comment.published:is=`0`:then=`
                                    <a href="[+jot.link.publish:esc+][+jot.querykey.id+]=[+comment.id+]#jotmod[+jot.link.id+]" onclick="return confirm('Are you sure you wish to publish this comment?')" title="Publish Comment"><img src="[(base_url)]assets/snippets/jot/templates/publish.png" width="16" height="16" alt="Publish Comment" border="0" /></a>
                                    `+]
                                    [+comment.published:is=`1`:then=`
                                    <a href="[+jot.link.unpublish:esc+][+jot.querykey.id+]=[+comment.id+]#jotmod[+jot.link.id+]" onclick="return confirm('Are you sure you wish to unpublish this comment?')" title="Unpublish Comment"><img src="[(base_url)]assets/snippets/jot/templates/unpublish.png" width="16" height="16" alt="Unpublish Comment" border="0" /></a>
                                    
                                    `+]
                                     `:strip+]
                                     [+jot.user.canedit:is=`1`:and:if=`[+comment.createdby+]`:is=`[+jot.user.id+]`:or:if=`[+jot.moderation.enabled+]`:is=`1`:then=`
                                     <a href="[+jot.link.edit:esc+][+jot.querykey.id+]=[+comment.id+]#jf[+jot.link.id+]" onclick="return confirm('Are you sure you wish to edit this comment?')" title="Edit Comment"><img src="[(base_url)]assets/snippets/jot/templates/edit.gif" width="16" height="16" alt="Edit Comment" border="0" /></a>
                                        `:strip+]
                                     </div>
                                      
                                     <span class="jot-subject">[+comment.title:limit:esc+]</span><br />
                                     <span class="jot-poster">[+comment.createdon:date=`%a %B %d, %Y, %H:%M:%S`+]</span>
                                     <hr />
                                     <div class="jot-message">[+comment.content:wordwrap:esc:nl2br+]</div>
                                    
                                     <div class="jot-extra">
                                     [+comment.editedon:isnt=`0`:then=`
                                      <span class="jot-editby">Last Edit: [+comment.editedon:date=`%B %d, %Y, %H:%M:%S`+] by [+comment.editedby:userinfo=`username`:ifempty=` * `+]</span>
                                      &nbsp;`+] [+jot.moderation.enabled:is=`1`:then=`<a target="_blank" href="http://www.ripe.net/perl/whois?searchtext=[+comment.secip+]">[+comment.secip+]</a>`+]</div>
                                     </div>
                                     
                                     </div>
                                    
                                    </div>"""
                                  "tpl.rider.donate" => """
                                    <div id="[+alias+]" class="staff">
                                    <div class="section-alpha">
                                    <a href="[+content+]">
                                    <img src="/[+image+]" alt="[+pagetitle+]"/>
                                    </a>
                                    </div> 
                                    <div class="section-beta">
                                    <h3>[+pagetitle+]</h3>
                                    <h4>[+longtitle+]</h4>
                                    </div> 
                                    </div> """
                                  "banner.include.footer" => """
                                    <script type='text/javascript'  language="javascript">
                                    var OA_zones = {
                                    'footer' : 50,
                                    'promo4' : 51,
                                    'sidebar1':52,
                                    'sidebar2':52,
                                    'sidebar3':52,
                                    'sidebar4':52,
                                    'sidebar5':52
                                    };
                                    </script>
                                    <script type='text/javascript'  language="javascript" src='http://banners.dealersyndication.com/www/delivery/spcjs.php?block=1'></script>"""
                                  "eform.report.adf" => "[+adfreport+]"
                                  "eform.report.auto.html" => "[+autohtml+]"
                                  "eform.report.auto" => "[+autoreport+]"
                                  "eform.report.coupon" => "<img src="http://www.jimbutlercars.com/assets/snippets/thumb/phpThumb.php?src=/assets/templates/maintpl/images/coupon-template.png&amp;fltr[]=wmt|[+firstname+]+[+lastname+]|17|20x110||ARIALBD.TTF&amp;fltr[]=wmt|[+date+]|17|300x200||ARIALBD.TTF" />"
                                  "google.analytics" => """
                                    <script type="text/javascript">
                                    //<![CDATA[
                                    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
                                    document.write("\<script src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'\>\</script\>" );
                                    //]]>
                                    </script>
                                    
                                    <script type="text/javascript">
                                    var pageTracker = _gat._getTracker("[+analyticsid+]");
                                    pageTracker._initData();
                                    pageTracker._trackPageview();
                                    </script>"""
                                  "image" => "[+image+]"
                                  "tpl.banner.call" => """
                                    <script type='text/javascript'><!--// <![CDATA[
                                        $(this).ready(function () {
                                        if (typeof(OA_output[[+bc.name+]]) == 'undefined') {
                                    return;
                                    } else {
                                    $('#[+bc.id+]').append(OA_output[[+bc.name+]]);
                                    }
                                        });
                                        
                                        //OA_show([+bc.name+]);
                                        
                                    // ]]> --></script>
                                    
                                    <noscript><a target='_blank' href='http://banners.dealersyndication.com/www/delivery/ck.php?n=[+bc.key+]'><img border='0' alt='' src='http://banners.dealersyndication.com/www/delivery/avw.php?zoneid=[+bc.zone+]&amp;n=[+bc.key+]' /></a></noscript>"""
                                  "tpl.bannerimage.csv" => "[+pagetitle+],[+image+],[+content+],"
                                  "tpl.coupon" => """
                                    <div id="[+alias+]" class="coupon">
                                    <div class="section-alpha">
                                    <img src="/[+image+]" alt="[+pagetitle+]"/>
                                    </div> <!-- .section-alpha -->
                                    <div class="section-beta">
                                    <h3>[+longtitle+]</h3>
                                    <div class="details">
                                    [+content+]
                                    </div>
                                    <span class="disclaimer">[+introtext+]</span> 
                                    <a class="print" onclick="void(printSpecial('[+alias+]'))">
                                    <img src="/assets/templates/maintpl/images/coupons/btn_print.gif" alt="Print Coupon" />
                                    </a>
                                    </div> <!-- .section-beta --> 
                                    </div> <!-- .coupon --> """
                                  "tpl.event" => """
                                    <div id="[+alias+]" class="event">
                                    <div class="section-alpha">
                                    <img src="/[+image+]" alt="[+pagetitle+]"/>
                                    </div> <!-- .section-alpha -->
                                    <div class="section-beta">
                                    <h3>[+pagetitle+]</h3>
                                    <h4>[+longtitle+]</h4>
                                    <div class="details">
                                    <div><span>Start: [+eventStartDate:date=`%b %d`+]</span>[+eventStopDate:ne=``:then=` <span>Stop: [+eventStopDate:date=`%b %d`+]</span>`+]</div>
                                    [+introtext+]
                                    </div>
                                    </div> <!-- .section-beta --> 
                                    </div> <!-- .event--> """
                                  "tpl.form" => "[+eform.SnippetCall+]"
                                  "tpl.home.content" => """
                                    <div class="section-item">
                                    <h3>[+pagetitle+]</h3>
                                    [+content+]
                                    </div>"""
                                  "tpl.home.newsAndEvents" => """
                                    <h3>What's New...</h3>
                                    <div id="info-list-container">
                                    
                                    <ul id="info-list-nav">
                                    <li id="events-list-link"><a href="#events-list" class="active-list">Events</a></li>
                                    <!--<li id="hottopic-list-link"><a href="#hottopic-list">Hot Topics</a></li>
                                    <li id="news-list-link"><a href="#news-list">News</a></li> -->
                                    </ul>
                                    
                                    <div id="info-lists">
                                    <ul id="events-list" class="info-list">
                                    [[Ditto? &parents=`[+eventsid+]` &tpl=`tpl.newsAndEvents` &orderBy=`eventStartDate ASC` &showInMenuOnly=`1` &showPublishedOnly=`1` &noResults=`<li>No Events Found!</li>`]]
                                    </ul>
                                    
                                    <ul id="hottopic-list" class="info-list">
                                    [[Ditto? &parents=`[+homearticlesid+]` &tpl=`tpl.newsAndEvents` &orderBy=`pub_date DESC` &showInMenuOnly=`1` &showPublishedOnly=`1` &tagData=`article.category` &tagDelimiter=`,` &tags=`Hot Topic` &noResults=`<li>No Articles Found!</li>`]]
                                    </ul>
                                    
                                    <ul id="news-list" class="info-list">
                                    [[Ditto? &parents=`[+homearticlesid+]` &tpl=`tpl.newsAndEvents` &orderBy=`pub_date DESC` &showInMenuOnly=`1` &showPublishedOnly=`1` &tagData=`article.category` &tagDelimiter=`,` &tags=`News` &noResults=`<li>No Articles Found!</li>`]]
                                    </ul>
                                    </div>
                                    
                                    </div> <!-- .whatsnew -->"""
                                  "tpl.homelink" => """
                                    <li>
                                    <a href="[+content+]" id="[+alias+]" class="icon-link" style="background-image:url(/[+image+]);" [+link_attributes+]>
                                    <span class="icon-text">[+pagetitle+]</span>
                                    </a> <!-- .icon-link--> 
                                    </li>"""
                                  "tpl.main.closer" => """
                                    </div> <!-- #content-inner -->
                                    </div> <!-- #content -->
                                    
                                    <div id="footer" >
                                    <div id="footer-inner" >
                                    
                                    <div id="footer-info">
                                    <div class="footer-item" id="dealer-address" >
                                    [+dealername+] <span>&#149;</span> [+dealeraddress+] <span>&#149;</span> [+dealercity+] <span>&#149;</span> [+dealerstate+] <span>&#149;</span> [+dealerzip+]</div>
                                                                            <div class="social">
                                                                                      <a href="http://www.Twitter.com/akinfoundation"><img class="social" src="/assets/templates/maintpl/images/icon-twitter.png"></a>
                                                                                       <a href="https://www.facebook.com/pages/The-Matthew-and-Andrew-Akin-Foundation/138804659503388"><img class="social" src="/assets/templates/maintpl/images/icon-facebook.png"</a>
                                                                             </div>
                                                                             
                                    <div class="footer-item" id="dealer-number">
                                    [+phonegen+]
                                    </div>
                                                                            <div class="footer-item" id="tax-id">
                                    <a href="http://apps.irs.gov/app/eos/pub78Search.do?ein1=27-3427104&names=Matthew+and+Andrew+Akin+Foundation&city=Bridgeton&state=MO&country=US&deductibility=all&dispatchMethod=searchCharities&submitName=Search">IRS 501(c) 3 Tax ID # 27-3427104</a>
                                    </div>
                                    <hr class="clear" />
                                    </div>
                                    
                                    <div id="footer-ad" >
                                    <div id="bannerad1">[!bannerCall? &zone=`50` &name=`footer` &key=`89342876` &tpl = `tpl.banner.call` &id=`bannerad1`!]</div>
                                    </div>
                                    
                                    <div id="footer-text">[!ph?p=`seofooter`!]</div>
                                                            
                                    <div id="footer-blu-info">
                                    <span>Powered by</span> 
                                    <a target="_blank" title="Websites &amp; SEO" href="http://matthewandandrew.leverageitcorp.com/"> 
                                    <span class="wordmark-blue" title="Leverage IT">LEVERAGE</span> <span class="wordmark-grey">IT</span>
                                    </a>
                                    </div>
                                    <div id="footer-links">
                                    <a href="[~28~]">Privacy Policy</a> <span>&#149;</span> <a href="[~27~]">Site Map</a> <!--  <span>&#149;</span><a href="[~229~]">RSS</a> -->
                                    </div><!-- #footer-links -->
                                    </div>
                                    </div> <!-- #footer -->
                                    </div> <!-- #container-inner -->
                                    </div> <!-- #container -->
                                    
                                    
                                    <a id="prettyphoto" style="display: none;"></a>
                                    <script type="text/javascript" language="javascript" src="assets/templates/maintpl/javascript/site-basic.js"></script>
                                    <script type="text/javascript" language="javascript" src="http://www.blusolutions.com/appcenter/global/assets/js/bluSearch.js"></script>
                                    <script type="text/javascript" language="javascript" src="http://www.blusolutions.com/appcenter/global/assets/js/SpryTabbedPanels.js"></script>
                                    <script type="text/javascript" language="javascript" src="http://www.blusolutions.com/appcenter/global/assets/js/prettyPhoto/js/jquery.prettyPhoto.js"></script>
                                    <script type="text/javascript" language="javascript" src="http://www.blusolutions.com/appcenter/global/assets/js/bluinventory.js"></script>
                                    
                                    <script src="http://cdn.wibiya.com/Toolbars/dir_0589/Toolbar_589249/Loader_589249.js" type="text/javascript"></script> 
                                    
                                    <script src="http://www.blusolutions.com/appcenter/global/assets/js/blusol-media.js" language="javascript" type="text/javascript"></script>
                                    
                                    {{banner.include.footer}}
                                    [*adminFooter*]
                                    [+footerins+]
                                    {{google.analytics}}
                                    
                                    </body>
                                    </html>"""
                                  "tpl.main.home" => """
                                        <div id="primary-content" class="content-container">
                                            <div id="featured-content" class="content-division">
                                                <!-- large banner images -->
                                            </div>{{tpl.main.coupon}}
                                        </div>
                                    
                                        <div class="content-container layout-2col" id="secondary-content">
                                            <div class="section-container" id="primary-container">
                                                <div class="section-division" id="links-container">
                                                    <div class="section-item" id="promo-banner-list">
                                                        <div id="promo-banner-1" class="promo-banner">
                                                            <object id="beating-heart" width="232" height="206" data="assets/flash/beating-heart3.swf" type="application/x-shockwave-flash">
                                                                <param name="data" value="/assets/flash/beating-heart3.swf">
                                                                <param name="align" value="middle">
                                                                <param name="allowScriptAccess" value="sameDomain">
                                                                <param name="allowFullScreen" value="false">
                                                                <param name="quality" value="high">
                                                                <param name="bgcolor" value="#ffffff">
                                                                <param name="src" value="assets/flash/beating-heart3.swf">
                                                                <param name="name" value="beating-heart">
                                                                <param name="wmode" value="opaque">
                                                                <param name="allowfullscreen" value="false">
                                                            </object>
                                                        </div>
                                    
                                                        <div class="promo-banner" id="promo-banner-2">
                                                            <a target="_self" href="http://banners.dealersyndication.com/www/delivery/ck.php?oaparams=2__bannerid=299__zoneid=51__cb=4c8c14cd40__oadest=http%3A%2F%2Fmatthewandandrew.org%2Fresources%2Fmatthew.html"><img height="206" border="0" width="230" title="" alt="" src="http://banners.dealersyndication.com/www/images/32b741b85c622dc2ced8d73f0ad8461f.jpg"></a>
                                                        </div>
                                    
                                                        <div class="promo-banner" id="promo-banner-3">
                                                            <a target="_self" href="http://banners.dealersyndication.com/www/delivery/ck.php?oaparams=2__bannerid=298__zoneid=51__cb=0b3e9b20e7__oadest=http%3A%2F%2Fwww.matthewandandrew.org%2Fresources%2Fandrew.html"><img height="206" border="0" width="230" title="" alt="" src="http://banners.dealersyndication.com/www/images/13fa61596d2f42d5d851613c3fe42290.jpg"></a>
                                                        </div>
                                    
                                                        <div id="promo-banner-4" class="promo-banner">
                                                            [!bannerCall? &zone=`51` &name=`promo4` &key=`59f22757` &tpl=`tpl.banner.call` &id=`promo-banner-4` !]
                                                        </div>
                                                        <hr class="clear">
                                                    </div><!-- #icons-list.section-item  -->
                                                    <hr class="clear">
                                                </div><!-- .section-division -->
                                    
                                                <div class="section-division" id="newsletter-subscription">
                                                <!-- Begin MailChimp Signup Form -->
                                    
                                        <div id="mc_embed_signup">
                                            <form action="http://matthewandandrew.us2.list-manage2.com/subscribe/post?u=5657df375a151533d9e92d897&amp;id=5fee1188c2" method="post" id="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate="">
                                                <div class="text">
                                                <img src="/assets/templates/maintpl/images/sign-up.png" />
                                                <p>Subscribe to our email newsletter and receive updates and the latest news.</p>
                                                </div>
                                                
                                                <div class="form">
                                                    <label for="mce-EMAIL">Email Address <input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL"></label>
                                    
                                                    <label for="mce-FNAME">First Name <input type="text" value="" name="FNAME" class="" id="mce-FNAME"></label>
                                    
                                                    <label for="mce-LNAME">Last Name <input type="text" value="" name="LNAME" class="" id="mce-LNAME"></label>
                                    
                                                <input type="submit" value="Sign Up" name="subscribe" id="mc-embedded-subscribe" class="button">
                                                </div>
                                                <div id="mce-responses" class="clear">
                                                    <div class="response" id="mce-error-response" style="display:none"></div>
                                    
                                                    <div class="response" id="mce-success-response" style="display:none"></div>
                                                </div>
                                    
                                            </form>
                                        </div>
                                    
                                    
                                    <!--End mc_embed_signup-->
                                                </div>
                                    
                                                <div class="section-division" id="articles-container">
                                                    <div id="sociallinks" class="section-item">
                                                       <!-- <div style="margin-left: 2em"> -->
                                                        <div style="">
                                                            [!Ditto? &parents=`[+homelinksid+]` &tpl=`tpl.homelink` &display=`10` &orderBy=`menuindex ASC, createdon DESC` &showInMenuOnly=`1` &showPublishedOnly=`1` &tagData=`link.category` &tagDelimiter=`,` &tags=`homesmall`!]
                                                        </div>
                                                    </div>
                                    
                                                    <div>
                                                        <div id="news-container" class="section-item">
                                                            {{tpl.home.newsAndEvents}}
                                                        </div>
                                                    </div>
                                                    <hr class="clear">
                                                </div><!-- .section-division -->
                                            </div><!-- #primary-container -->
                                            <hr class="clear">
                                        </div><!-- .content-container --><!-- #secondary-content -->
                                    """
                                  "tpl.main.opener" => """
                                    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                                    <html xmlns="http://www.w3.org/1999/xhtml">
                                    <head>
                                    <title>[!ph?p=`seotitletag`!]</title>
                                    <meta http-equiv="Content-Type" content="text/html; charset=[(modx_charset)]" />
                                    <meta name="keywords" content="[!ph?p=`seokeywords`!]" />
                                    <meta name="description" content="[!ph?p=`seodescription`!]" />
                                    <meta name="google-site-verification" content="[+webmasterid+]" /> 
                                    [+headerins+]
                                    
                                    <base href="[(site_url)]" />
                                    
                                    <!-- rss feed and css -->
                                    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="rss-feed.xml" />
                                    <link rel="stylesheet" type="text/css" href="assets/templates/maintpl/css/design.css" />
                                    <link rel="stylesheet" href="http://www.blusolutions.com/appcenter/global/assets/js/prettyPhoto/css/prettyPhoto.css" type="text/css" media="screen" charset="utf-8" />
                                    
                                    <!-- Adds missing features to IE 6 and less -->
                                    <!--[if lt IE 7]>
                                    <link rel="stylesheet" type="text/css" href="assets/templates/maintpl/css/design-ie.css" /> 
                                    <![endif]-->
                                    
                                    <!-- script files -->
                                    <script type="text/javascript" src="assets/js/jquery-1.4.2.min.js"></script>
                                    
                                    [*adminHead*]
                                    {{banner.include.head}}
                                    
                                    [*id:is=`[(site_start)]`:then=`
                                    <style type="text/css">
                                    #featured-content {
                                    background-image:url([!Ditto?parents=`[+homeimagesid+]` &total=`1` &tpl=`image` &orderBy=`menuindex ASC, createdon DESC`!]);
                                    background-position:center 0px;
                                    }
                                    </style>
                                    `*]
                                    
                                    <!-- MySQL: [^qt^], [^q^] request(s), PHP: [^p^], total: [^t^], document retrieved from [^s^]. -->
                                    
                                    </head>
                                    <body id="[*id:if=`[*id*]`:ne=`[(site_start)]`:then=`[*alias*][*id*]`:else=`main`*]" class="[*id:if=`[*id*]`:ne=`1`:then=`secondary-pages`:else=`layout-h`*] [*adminBodyClass*]"  >
                                    
                                    <!-- use landing, secondary, inventory for other pages -->
                                    <div id="container">
                                    <div id="container-inner">
                                    
                                    <div id="header">
                                    <div id="header-inner">
                                    
                                    <div id="branding">
                                    <h1 id="header-logo"><a href="[(site_url)]"><span>[+phx:if=`[+h1override+]`:ne=``:then=`[+h1override+]`:else=`[+dealername+]`+]</span></a></h1>
                                    </div>
                                    
                                    <div id="primary-nav">
                                    [!Wayfinder?&startId=`0` &level=`2` &lastClass=`last-item` &firstClass=`first-item` &rowClass=`nav-item` &levelClass=`nav-level` &rowIdPrefix=`top` &outerClass=`nav-items`!]
                                    </div><!-- #primary-nav -->
                                    
                                    <div id="site-info">         
                                    <div class="locations">
                                    <div class="locations-item">
                                    <span class="street">[+dealeraddress+]</span>
                                    <span class="city-state">[+dealercity+], [+dealerstate+]</span>
                                    <span class="number">[+phonegen+]</span>
                                    </div>
                                    </div>
                                    </div><!-- #site-info -->
                                    
                                    </div><!-- #header-inner -->
                                    </div><!-- #header -->
                                    
                                    <div id="content" >
                                    <div id="content-inner" >"""
                                  "tpl.main.secondary" => """
                                    <!--Primary -->
                                    <div id="primary-content" class="content-container">
                                    
                                    <div class="section-container" id="primary-container">
                                                                                    [*image:ne=``:then=`<img src='[*image*]' />`*]
                                    <h2 id="page-title" >[!ph?s=`*`&p=`pagetitle`!]</h2> 
                                    [*longtitle:ne=``:then=`<h3 class="page-subtitle">[+longtitle+]</h3>`*]
                                    [*adminContentAlpha*]
                                    <!--[*image:ne=``:then=`<img src='[*image*]' />`*] -->
                                    [*content*]
                                    [*adminContentBeta*]
                                    </div> <!-- #primary-container -->
                                    
                                    <div class="section-container" id="secondary-container">
                                    <!--
                                                                                    <div class="sidebar-section">
                                    [*parent:isnot=`0`:then=`
                                    <h3><a href="[~[*parent*]~]">[*id:parent*]</a></h3>
                                    `:else=`
                                    <h3>Home</h3>
                                    `*]
                                    <div id="secondary-leftnav" class="nav-list">
                                    [!Wayfinder?&startId=`[*parent*]` &level=`2` &lastClass=`last-item` &firstClass=`first-item` &_rowClass=`nav-item` &levelClass=`nav-level` &rowIdPrefix=`side` &outerClass=`nav-items`!]
                                    </div>
                                    </div>
                                    -->
                                    <div id="secondary-banners">
                                    <div id="secondary-banner1">[!bannerCall? &zone=`52` &name=`sidebar1` &key=`59f2277` &tpl=`tpl.banner.call` &id=`secondary-banner1` !]</div>
                                    <div id="secondary-banner2">[!bannerCall? &zone=`52` &name=`sidebar2` &key=`59f2277` &tpl=`tpl.banner.call` &id=`secondary-banner2` !]</div>
                                    <div id="secondary-banner3">[!bannerCall? &zone=`52` &name=`sidebar3` &key=`59f2277` &tpl=`tpl.banner.call` &id=`secondary-banner3` !]</div>
                                                                                            <div id="secondary-banner4">[!bannerCall? &zone=`52` &name=`sidebar4` &key=`59f2277` &tpl=`tpl.banner.call` &id=`secondary-banner4` !]</div>
                                                                                            <div id="secondary-banner5">[!bannerCall? &zone=`52` &name=`sidebar5` &key=`59f2277` &tpl=`tpl.banner.call` &id=`secondary-banner5` !]</div>
                                    
                                    </div>
                                    <div class="sidebar-section">
                                    <ul id="sidebar-links">
                                    [!Ditto? &parents=`[+homelinksid+]` &tpl=`tpl.secondlink` &display=`12` &orderBy=`menuindex ASC, createdon DESC` &showInMenuOnly=`1` &showPublishedOnly=`1` &tagData=`link.category` &tagDelimiter=`,` &tags=`sidebar`!]
                                    </ul>
                                    </div>
                                    
                                    [*adminContentGamma*]
                                    
                                    <!-- quick contact form -->
                                    [!-Ditto?documents=`75` &tpl=`tpl.form` &hiddenFields=`alias,longtitle,description,eform.report`!]
                                     
                                    </div>
                                    
                                    <hr class="clear" />
                                    
                                    </div><!-- .content-container -->
                                    <!-- #primary-content -->
                                    """
                                  "tpl.media.list" => """
                                    <li>
                                    <a href="[+file+]" rel="bluiframe" class="thumbnail">[+pagetitle+]</a>
                                    </li>"""
                                  "tpl.media" => """
                                    <div class="media-promos" >
                                    <div id="radio-media" class="col-sm-6 col-md-3">
                                    <h2><img class="img-respnsive" src="assets/templates/maintpl/images/mediapromos/media_radio.jpg" />Photos</h2>
                                    <ul >
                                    [[Ditto? &parents=`[+mediaradioid+]` &tpl=`tpl.media.list` &orderBy=`menuindex ASC, createdon DESC` &showInMenuOnly=`1` &showPublishedOnly=`1` &noResults=`Currently no media for this category.`]]
                                    </ul>
                                    </div>
                                    
                                    <div id="print-media" class="col-sm-6 col-md-3">
                                    <h2><img class="img-respnsive" src="assets/templates/maintpl/images/mediapromos/media_newspaper.jpg" />Photos</h2>
                                    <ul >
                                    [[Ditto? &parents=`[+mediaprintid+]` &tpl=`tpl.media.list` &orderBy=`menuindex ASC, createdon DESC` &showInMenuOnly=`1` &showPublishedOnly=`1` &noResults=`Currently no media for this category.`]]
                                    </ul>
                                    </div>
                                    
                                    
                                    <div id="online-media" class="col-sm-6 col-md-3 last-item" >
                                    <h2><img class="img-respnsive" src="assets/templates/maintpl/images/mediapromos/media_laptop.jpg" />Video</h2>
                                    <ul >
                                    [[Ditto? &parents=`[+mediavideoid+]` &tpl=`tpl.media.list` &orderBy=`menuindex ASC, createdon DESC` &showInMenuOnly=`1` &showPublishedOnly=`1` &noResults=`Currently no media for this category.`]]
                                    </ul>
                                    </div>
                                    </div>"""
                                  "tpl.mobile.menu.li" => """
                                    <li id="[+alias+]">
                                    <a href="[~[+id+]~]" accesskey="[+mobile.menuindex+]" [+link_attributes+]>
                                    <span>[+menutitle:ne=``:then=`[+menutitle+]`:else=`[+pagetitle+]`+]</span>
                                    </a>
                                    <span class="cleaner"><!----></span>
                                    </li>"""
                                  "tpl.newsAndEvents" => """
                                    <li class="[!GetField? &docid=`[+id+]` &parent=`1` &parentLevel=`1` &field=`alias`!]">
                                    <div class="title">
                                    <div class="date">
                                    
                                    [+eventStartDate:ne=``:then=`
                                    <span class="month">[+eventStartDate:date=`%b`+]</span><br />
                                    <span class="day">[+eventStartDate:date=`%d`+]</span><br />
                                    <span>[+eventStartDate:date=`%Y`+]</span>
                                    `:else=`
                                    <span class="month">[+pub_date:date=`%b`+]</span><br />
                                    <span class="day">[+pub_date:date=`%d`+]</span><br />
                                    <span>[+pub_date:date=`%Y`+]</span>
                                    `+]
                                    
                                    </div>
                                    <!--<a href="[~[+id+]~]"><strong>[+eventStartDate:ne=``:then=`<span>[+eventStartDate:date=`%b %d`+]</span>[+eventStopDate:ne=``:then=` <span>[+eventStopDate:date=`%b %d`+]</span>`+]&nbsp;`:else=``+][+pagetitle+]</strong> - [+longtitle+]</a>-->
                                    <a href="[~[+id+]~]"><strong>[+pagetitle+]</strong> - [+longtitle+]</a>
                                    
                                    
                                    </div>
                                    </li>"""
                                  "tpl.sitemapxml.blu" => """
                                    <url>
                                    <loc>[(site_url)][~[+id+]~]</loc>
                                    <lastmod>[[date?date=`[+editedon+]` &format=`c`]]</lastmod>
                                    <changefreq>weekly</changefreq>
                                    <priority>0.6</priority>
                                    </url>"""
                                  "tpl.staff" => """
                                    <div id="[+alias+]" class="staff">
                                    <div class="section-alpha">
                                    <h3>[+pagetitle+]</h3>
                                    <img src="/[+image+]" alt="[+pagetitle+]"/>
                                    </div> <!-- .section-alpha -->
                                    <div class="section-beta">
                                    <h4>[+longtitle+]</h4>
                                    <div class="details">
                                    [+content+]
                                    </div>
                                    </div> <!-- .section-beta --> 
                                    </div> <!-- .coupon -->"""
                                  "WebLoginSidebar" => """
                                    <!-- #declare:separator <hr> --> 
                                    <!-- login form section-->
                                    <form method="post" name="loginfrm" action="[+action+]" style="margin: 0px; padding: 0px;"> 
                                    <input type="hidden" value="[+rememberme+]" name="rememberme"> 
                                    <table border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                    <td>
                                    <table border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                    <td><b>User:</b></td>
                                    <td><input type="text" name="username" tabindex="1" onkeypress="return webLoginEnter(document.loginfrm.password);" size="5" style="width: 100px;" value="[+username+]" /></td>
                                      </tr>
                                      <tr>
                                    <td><b>Password:</b></td>
                                    <td><input type="password" name="password" tabindex="2" onkeypress="return webLoginEnter(document.loginfrm.cmdweblogin);" size="5" style="width: 100px;" value="" /></td>
                                      </tr>
                                      <tr>
                                    <td><label for="chkbox" style="cursor:pointer">Remember me:&nbsp; </label></td>
                                    <td>
                                    <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                    <td valign="top"><input type="checkbox" id="chkbox" name="chkbox" tabindex="4" size="1" value="" [+checkbox+] onClick="webLoginCheckRemember()" /></td>
                                    <td align="right">
                                    <input type="submit" value="[+logintext+]" name="cmdweblogin" /></td>
                                      </tr>
                                    </table>
                                    </td>
                                      </tr>
                                      <tr>
                                    <td colspan="2"><a href="#" onclick="webLoginShowForm(2);return false;">Forget Password?</a></td>
                                      </tr>
                                    </table>
                                    </td>
                                    </tr>
                                    </table>
                                    </form>
                                    <hr>
                                    <!-- log out hyperlink section -->
                                    <a href='[+action+]'>[+logouttext+]</a>
                                    <hr>
                                    <!-- Password reminder form section -->
                                    <form name="loginreminder" method="post" action="[+action+]" style="margin: 0px; padding: 0px;">
                                    <input type="hidden" name="txtpwdrem" value="0" />
                                    <table border="0">
                                    <tr>
                                      <td>Enter the email address of your account <br />below to receive your password:</td>
                                    </tr>
                                    <tr>
                                      <td><input type="text" name="txtwebemail" size="24" /></td>
                                    </tr>
                                    <tr>
                                      <td align="right"><input type="submit" value="Submit" name="cmdweblogin" />
                                      <input type="reset" value="Cancel" name="cmdcancel" onclick="webLoginShowForm(1);" /></td>
                                    </tr>
                                      </table>
                                    </form>
                                    
                                    """
                                  "thankyou.donate" => """
                                    <strong>Thank you for submitting your team. You will be redirected to the donation form shortly. If not please click <a href='[~225~]'>here</a>.</strong>
                                    
                                    <script type="text/javascript">
                                    <!--
                                    function delayer(){
                                        window.location = "[(site_url)][~225~]";
                                    }
                                    
                                    setTimeout('delayer()', 5000);
                                    //-->
                                    </script>
                                    """
                                  "tpl.secondlink" => """
                                    <li>
                                    <a href="[+content+]" id="[+alias+]" [+link_attributes+] class="icon-link" style="background-image:url(/[+image+]);" >
                                           <span class="icon-text">[+pagetitle+]</span>
                                    </a> <!-- .icon-link--> 
                                    </li>"""
                                  "tpl.main.video" => """
                                    <!--Primary -->
                                    <div id="primary-content" class="content-container">
                                    
                                    <div class="section-container" id="primary-container">
                                    [*longtitle:ne=``:then=`<h3 class="page-subtitle">[*longtitle*]</h3>`*]
                                    [*adminContentAlpha*]
                                    [*content*]
                                    [*video=``:then=``:else=`<iframe width="690" height="388" src="//www.youtube.com/embed/[*video*]" frameborder="0" allowfullscreen></iframe>`*]
                                    <h2 id="page-title" style="margin-top: 20px;" >[!ph?s=`*`&p=`pagetitle`!]</h2>
                                                                                    [*adminContentBeta*]
                                    </div> <!-- #primary-container -->
                                    
                                    <div class="section-container" id="secondary-container">
                                    <!--
                                                                                    <div class="sidebar-section">
                                    [*parent:isnot=`0`:then=`
                                    <h3><a href="[~[*parent*]~]">[*id:parent*]</a></h3>
                                    `:else=`
                                    <h3>Home</h3>
                                    `*]
                                    <div id="secondary-leftnav" class="nav-list">
                                    [!Wayfinder?&startId=`[*parent*]` &level=`2` &lastClass=`last-item` &firstClass=`first-item` &_rowClass=`nav-item` &levelClass=`nav-level` &rowIdPrefix=`side` &outerClass=`nav-items`!]
                                    </div>
                                    </div>
                                    -->
                                    <div id="secondary-banners">
                                    <div id="secondary-banner1">[!bannerCall? &zone=`52` &name=`sidebar1` &key=`59f2277` &tpl=`tpl.banner.call` &id=`secondary-banner1` !]</div>
                                    <div id="secondary-banner2">[!bannerCall? &zone=`52` &name=`sidebar2` &key=`59f2277` &tpl=`tpl.banner.call` &id=`secondary-banner2` !]</div>
                                    <div id="secondary-banner3">[!bannerCall? &zone=`52` &name=`sidebar3` &key=`59f2277` &tpl=`tpl.banner.call` &id=`secondary-banner3` !]</div>
                                                                                            <div id="secondary-banner4">[!bannerCall? &zone=`52` &name=`sidebar4` &key=`59f2277` &tpl=`tpl.banner.call` &id=`secondary-banner4` !]</div>
                                                                                            <div id="secondary-banner5">[!bannerCall? &zone=`52` &name=`sidebar5` &key=`59f2277` &tpl=`tpl.banner.call` &id=`secondary-banner5` !]</div>
                                    
                                    </div>
                                    <div class="sidebar-section">
                                    <ul id="sidebar-links">
                                    [!Ditto? &parents=`[+homelinksid+]` &tpl=`tpl.secondlink` &display=`12` &orderBy=`menuindex ASC, createdon DESC` &showInMenuOnly=`1` &showPublishedOnly=`1` &tagData=`link.category` &tagDelimiter=`,` &tags=`sidebar`!]
                                    </ul>
                                    </div>
                                    
                                    [*adminContentGamma*]
                                    
                                    <!-- quick contact form -->
                                    [!-Ditto?documents=`75` &tpl=`tpl.form` &hiddenFields=`alias,longtitle,description,eform.report`!]
                                     
                                    </div>
                                    
                                    <hr class="clear" />
                                    
                                    </div><!-- .content-container -->
                                    <!-- #primary-content -->"""
                                  "tpl.videos.list" => """
                                    <div class="video-item">
                                    <h3>[+pagetitle+]<small><br /><time datetime="[[date?date=`[+pub_date+]` &format=`Y-m-d`]]">[[date?date=`[+pub_date+]` &format=`D, d M Y`]]</time></small></h3>
                                    <a href="[~[+id+]~]" style="background-image: url([+image+]);"></a>
                                    <p class="video-item>[+adminContentBeta+]</p>
                                    <a class="video-btn" href="[~[+id+]~]" >Watch this Video</a>
                                    
                                    </div>"""
                                ]
                                +snippetCache: array:40 [
                                  "AjaxSearch" => """
                                    /**
                                    --------------------------------------------------------------------------------
                                    :: Preamble
                                    --------------------------------------------------------------------------------
                                    The release 1.9 looks like the previous release, but it is a completely
                                    refactored development.
                                    
                                    It is partially based on the previous releases of AjaxSearch written by the
                                    following authors:
                                    
                                     Coroico <coroico@wangba.fr>
                                     Jason Coward <jason@opengeek.com>
                                     Kyle Jaebker <kjaebker@muddydogpaws.com>
                                     Ryan Thrash  <ryan@vertexworks.com>
                                    
                                    --------------------------------------------------------------------------------
                                    :: Description
                                    --------------------------------------------------------------------------------
                                    
                                            Ajax and non-Ajax search that supports results highlighting.
                                    
                                    This snippet adds AJAX functionality on top of the robust content searching.
                                    
                                    What AjaxSearch do:
                                    - search in fields of the content an TV MODx tables
                                    - several customizable input forms available
                                    - search in a subset of documents
                                    - highlighting of searchword in the results returned
                                    - allow a filtering of search results
                                    - displaying of search results customizable thru templates
                                    - group the search results by categories
                                    - filter features (allow to set up specific search forms)
                                    
                                    It could works in two modes:
                                    
                                    ajax mode :
                                    - search results displayed in current page through AJAX request
                                    - multiple search options including live search
                                    - available link to view all results in a new page when only a subset is returned
                                    - customize the number of results returned
                                    - offer two types for paginating the results
                                    - uses the MooTools or JQuery js library for AJAX and visual effects
                                    
                                    non-ajax mode :
                                    - search results displayed in a new page or below on the same page
                                    - offer two types for paginating the results
                                    - works without JS enabled
                                    
                                    What AjaxSearch don't :
                                    - search in dynamic content. AjaxSearch could retreive only data stored in
                                    database. It can't find something stored in a chunk or generated by a snippet.
                                    
                                    MORE : See the ajaxSearch.readme.txt file for more informations. 
                                    
                                    ----------------------------------------------------------------------------- */
                                    
                                    // ajaxSearch version being executed
                                    define('AS_VERSION', '1.9.0');
                                    // Path where ajaxSearch is installed
                                    define('AS_SPATH', 'assets/snippets/ajaxSearch/');
                                    //include snippet file
                                    define('AS_PATH', MODX_BASE_PATH . AS_SPATH);
                                    
                                    //------------------------------------------------------------------------------
                                    // Configuration - general AjaxSearch snippet setup options
                                    //------------------------------------------------------------------------------
                                    global $modx;
                                    $tstart = $modx->getMicroTime();
                                    
                                    // Load the default configuration $dcfg to get the default values
                                    $default = AS_PATH . 'configs/default.config.php';
                                    if (file_exists($default)) include $default;
                                    else return "<h3>AjaxSearch error: $default not found !<br />Check the existing of this file!</h3>";
                                    if (!isset($dcfg)) return "<h3>AjaxSearch error: default configuration array not defined in $default!<br /> Check the content of this file!</h3>";
                                    $cfg = array(); // current configuration
                                    
                                    // Load a custom configuration file if required
                                    // config_name - Other config installed in the configs folder or in any folder within the MODx base path via @FILE
                                    // Configuration files should be named in the form: <config_name>.config.php
                                    // Default: '' - no custom config
                                    $cfg['config'] = isset($config) ? $config : $dcfg['config'];
                                    if ($cfg['config']) {
                                        $config = $cfg['config'];
                                        $lconfig = (substr($config, 0, 5) != "@FILE") ? AS_PATH . "configs/$config.config.php" : $modx->config['base_path'] . trim(substr($config, 5));
                                        if (file_exists($lconfig)) include $lconfig;
                                        else return "<h3>AjaxSearch error: " . $lconfig . " not found !<br />Check your config parameter or your config file name!</h3>";
                                    }
                                    
                                    // &debug = [ 0 | 1 | 2 | 3 ]
                                    // 1,2,3 : File mode - Output logged into a file named ajaxSearch_log.txt in ajaxSearch/debug/ directory.
                                    // this directory should be writable.
                                    // Default: 0 - no logs
                                    $cfg['debug'] = isset($debug) ? $debug : (isset($__debug) ? $__debug : $dcfg['debug']);
                                    
                                    // &timeLimit = [ int | 60 ]
                                    // Max execution time in seconds for the AjaxSearch script
                                    // 0 - If set to zero, no time limit is imposed
                                    // Default: 60 - 1 minute.
                                    $cfg['timeLimit'] = isset($timeLimit) ? $timeLimit : (isset($__timeLimit) ? $__timeLimit : $dcfg['timeLimit']);
                                    
                                    // &language [ language_name | manager_language ] (optional)
                                    // Default: $modx->config['manager_language'] - manager language used
                                    $cfg['language'] = isset($language) ? $language : (isset($__language) ? $__language : $dcfg['language']);
                                    
                                    // &ajaxSearch [1 | 0] (as passed in snippet variable ONLY)
                                    // Use this to display the search results using ajax You must include the Mootools library in your template
                                    // Default: 1 - ajax mode selected
                                    $cfg['ajaxSearch'] = isset($ajaxSearch) ? $ajaxSearch : (isset($__ajaxSearch) ? $__ajaxSearch : $dcfg['ajaxSearch']);
                                    
                                    // &advSearch [ 'exactphrase' | 'allwords' | 'nowords' | 'oneword' ]
                                    // Advanced search:
                                    // - exactphrase : provides the documents which contain the exact phrase
                                    // - allwords : provides the documents which contain all the words
                                    // - nowords : provides the documents which do not contain the words
                                    // - oneword : provides the document which contain at least one word
                                    // Default: 'oneword'
                                    $cfg['advSearch'] = isset($advSearch) ? $advSearch : (isset($__advSearch) ? $__advSearch : $dcfg['advSearch']);
                                    
                                    // &asId - Unique id for AjaxSearch instance
                                    // this allows to distinguish several Ajaxsearch instances on the same page
                                    // Any combination of characters a-z, underscores, and numbers 0-9
                                    // This is case sensitive. Default = empty string
                                    // With ajax mode, the first snippet call of the page shouldn't use the asId parameter
                                    $cfg['asId'] = isset($asId) ? $asId : (isset($__asId) ? $__asId : $dcfg['asId']);
                                    
                                    // &whereSearch
                                    // Define where should occur the search
                                    // a separated list of keywords describing the tables where to search
                                    // keywords allowed :
                                    // "content" for site_content, "tv" for site_tmplvar_contentvalues, "jot" for jot_content, "maxigallery" for maxigallery
                                    // you could add your own keywords. But the keyword should be a user function which describes the tables to use
                                    // all the text fields are searchable but you could specify the fields like this:
                                    // whereSearch=`content:pagetitle,introtext,content|tv:tv_value|maxigallery:gal_title`
                                    // Default: 'content|tv'
                                    $cfg['whereSearch'] = isset($whereSearch) ? $whereSearch : (isset($__whereSearch) ? $__whereSearch : $dcfg['whereSearch']);
                                    
                                    // &sites : [comma separated list of sites]
                                    // sites allow to define sites where to do the search
                                    $cfg['sites'] = isset($sites) ? $sites : (isset($__sites) ? $__sites : $dcfg['sites']);
                                    
                                    // &subSearch  [comma separated list of subsites]
                                    // subSearch allow to define sub-domains or subsites where to do the search
                                    $cfg['subSearch'] = isset($subSearch) ? $subSearch : (isset($__subSearch) ? $__subSearch : $dcfg['subSearch']);
                                    
                                    // &category  [ tv_name ]
                                    // Any combination of characters a-z, underscores, and numbers 0-9
                                    // This is case sensitive. Default = empty string
                                    // Name of a TV. The category of a MODx document is provided by this TV content
                                    $cfg['category'] = isset($category) ? $category : (isset($__category) ? $__category : $dcfg['category']);
                                    
                                    // &display [ 'mixed' | 'unmixed' ]
                                    // When results comes from differents sites, subsites or categories, you could choose to display the results mixed or unmixed.
                                    // Default: unmixed
                                    // Unmixed mode display the results grouped by site, subsite or category. Each group of results could be paginated.
                                    // Mixed mode mixe all the results coming from the differents area.
                                    // With unmixed mode, results are ordered by the field provided by the first field of the order parameter
                                    $cfg['display'] = isset($display) ? $display : (isset($__display) ? $__display : $dcfg['display']);
                                    
                                    // &init  [ 'none' | 'all' ]
                                    // init defines if the search display all the results or none when the search term is an empty string
                                    // Default: none
                                    $cfg['init'] = isset($init) ? $init : (isset($__init) ? $__init : $dcfg['init']);
                                    
                                    // &withTvs - Define which Tvs are used for the search in Tvs
                                    // a comma separated list of TV names
                                    // Default: '' - all TVs are used (empty list)
                                    $cfg['withTvs'] = isset($withTvs) ? $withTvs : (isset($__withTvs) ? $__withTvs : $dcfg['withTvs']);
                                    
                                    // &order - Define the sort order of results
                                    // Comma separated list of fields defined as searchable in the table definition
                                    // to suppress the sorting, use &order=``
                                    // Default: 'pub_date,pagetitle'
                                    $cfg['order'] = isset($order) ? $order : (isset($__order) ? $__order : $dcfg['order']);
                                    
                                    // &rank - Define the rank of search results. Results are sorted by rank value
                                    // Comma separated list of fields with optionally user defined weight
                                    // Default: 'pagetitle:100,extract'
                                    // to suppress the rank sorting, use &rank=``;
                                    // &rank sort occurs after the &order sort
                                    $cfg['rank'] = isset($rank) ? $rank : (isset($__rank) ? $__rank : $dcfg['rank']);
                                    
                                    // &maxWords [ 1 < int < 10 ]
                                    // Maximum number of words for searching
                                    // Default: 5
                                    $cfg['maxWords'] = isset($maxWords) ? intval($maxWords) : (isset($__maxWords) ? intval($__maxWords) : $dcfg['maxWords']);
                                    
                                    // &minChars [  2 < int < 100 ]
                                    // Minimum number of characters to require for a word to be valid for searching.
                                    // length of each word with $advSearch = 'allwords', 'oneword' or 'nowords'
                                    // length of the search string with possible spaces with $advSearch = 'exactphrase'
                                    // Default: 3
                                    $cfg['minChars'] = isset($minChars) ? intval($minChars) : (isset($__minChars) ? intval($__minChars) : $dcfg['minChars']);
                                    
                                    // &showInputForm [0 | 1]
                                    // If you would like to turn off the search form when showing results you can set this to false.(1=true, 0=false)
                                    // Default: 1
                                    $cfg['showInputForm'] = isset($showInputForm) ? $showInputForm : (isset($__showInputForm) ? $__showInputForm : $dcfg['showInputForm']);
                                    
                                    // &showIntro [0 | 1]
                                    // If you would like to turn off the intro message beyond the input form you can set this to false.(1=true, 0=false)
                                    // Default: 1
                                    $cfg['showIntro'] = isset($showIntro) ? $showIntro : (isset($__showIntro) ? $__showIntro : $dcfg['showIntro']);
                                    
                                    // &grabMax [ int ]
                                    // Set to the max number of records you would like on each page. Set to 0 if unlimited.
                                    // Default: 10
                                    $cfg['grabMax'] = isset($grabMax) ? intval($grabMax) : (isset($__grabMax) ? intval($__grabMax) : $dcfg['grabMax']);
                                    
                                    // &extract [ n:searchable fields list | 1:content,description,introtext,tv_content]
                                    // show the search terms highlighted in a little extract
                                    // n : maximum number of extracts displayed
                                    // ordered searchable fields list : separated list of fields define as searchable in the table definition
                                    // Default: '1:content,description,introtext,tv_value' - One extract from content then description,introtext,tv_value
                                    $cfg['extract'] = isset($extract) ? $extract : (isset($__extract) ? $__extract : $dcfg['extract']);
                                    
                                    // &extractLength [ 50 < int < 800]
                                    // Length of extract around the search words found - between 50 and 800 characters
                                    // Default: 200
                                    $cfg['extractLength'] = isset($extractLength) ? intval($extractLength) : (isset($__extractLength) ? intval($__extractLength) : $dcfg['extractLength']);
                                    
                                    // &extractEllips [ string ]
                                    // Ellipside to mark the star and the end of  an extract when the sentence is cutting
                                    // Default: '...'
                                    $cfg['extractEllips'] = isset($extractEllips) ? $extractEllips : (isset($__extractEllips) ? $__extractEllips : $dcfg['extractEllips']);
                                    
                                    // &extractSeparator [ string ]
                                    // Any html tag to mark the separation between extracts
                                    // Default: '<br />' - but you could also choose for instance '<hr />'
                                    $cfg['extractSeparator'] = isset($extractSeparator) ? $extractSeparator : (isset($__extractSeparator) ? $__extractSeparator : $dcfg['extractSeparator']);
                                    
                                    // &formatDate [ string ]
                                    // The format of outputted dates. See http://www.php.net/manual/en/function.date.php
                                    // Default: 'd/m/y : H:i:s' - e.g: 21/01/08 : 23:09:22
                                    $cfg['formatDate'] = isset($formatDate) ? $formatDate : (isset($__formatDate) ? $__formatDate : $dcfg['formatDate']);
                                    
                                    // &highlightResult [1 | 0]
                                    // create links so that search terms will be highlighted when linked page clicked
                                    // Default: 1 - Results highlighted
                                    $cfg['highlightResult'] = isset($highlightResult) ? $highlightResult : (isset($__highlightResult) ? $__highlightResult : $dcfg['highlightResult']);
                                    
                                    // &pagingType[ 0 | 1 | 2 ]
                                    // Determine the pagination type used - Default 1 : Previous - X-Y/Z - Next
                                    $cfg['pagingType'] = isset($pagingType) ? $pagingType : (isset($__pagingType) ? $__pagingType : $dcfg['pagingType']);
                                    
                                    // &pageLinkSeparator [ string ]
                                    // What you want, if anything, between your page link numbers
                                    // Default: ' | '
                                    $cfg['pageLinkSeparator'] = isset($pageLinkSeparator) ? $pageLinkSeparator : (isset($__pageLinkSeparator) ? $__pageLinkSeparator : $dcfg['pageLinkSeparator']);
                                    
                                    // &showPagingAlways[1 | 0]
                                    // Determine whether or not to always show paging
                                    $cfg['showPagingAlways'] = isset($showPagingAlways) ? $showPagingAlways : (isset($__showPagingAlways) ? $__showPagingAlways : $dcfg['showPagingAlways']);
                                    
                                    // &landingPage  [int] set the page to show the results page (non Ajax search)
                                    // Default: false
                                    $cfg['landingPage'] = isset($landingPage) ? $landingPage : (isset($__landingPage) ? $__landingPage : $dcfg['landingPage']);
                                    
                                    // &showResults  [1 | 0]  establish whether to show the results or not
                                    // Default: 1
                                    $cfg['showResults'] = isset($showResults) ? $showResults : (isset($__showResults) ? $__showResults : $dcfg['showResults']);
                                    
                                    // &parents [ [ in | not in ] : comma separated list of Ids | '' ]
                                    // Ids of documents to retrieve their children to &depth depth  where to do the search in or not in
                                    // Default: '' - empty list
                                    $cfg['parents'] = isset($parents) ? $parents : (isset($__parents) ? $__parents : $dcfg['parents']);
                                    
                                    // &documents [ [ in | not in ] : comma separated list of Ids | '' ]
                                    // Ids of documents where to do the search in or not in
                                    // Default: '' - empty list
                                    $cfg['documents'] = isset($documents) ? $documents : (isset($__documents) ? $__documents : $dcfg['documents']);
                                    
                                    // &depth [ 0 < int ] Number of levels deep to retrieve documents
                                    // Default: 10
                                    $cfg['depth'] = isset($depth) ? intval($depth) : (isset($__depth) ? intval($__depth) : $dcfg['depth']);
                                    
                                    // &hideMenu [0 | 1| 2]  Search in hidden documents from menu.
                                    // 0 - search only in documents visible from menu
                                    // 1 - search only in documents hidden from menu
                                    // 2 - search in hidden or visible documents from menu
                                    // Default: 2
                                    $cfg['hideMenu'] = isset($hideMenu) ? $hideMenu : (isset($__hideMenu) ? $__hideMenu : $dcfg['hideMenu']);
                                    
                                    // &hideLink [0 | 1 ]   Search in content of type reference (link)
                                    // 0 - search in content of type document AND reference
                                    // 1 - search only in content of type document
                                    // Default: 1
                                    $cfg['hideLink'] = isset($hideLink) ? $hideLink : (isset($__hideLink) ? $__hideLink : $dcfg['hideLink']);
                                    
                                    // &filter - Basic filtering : remove unwanted documents that meets the criteria of the filter
                                    // See Ditto 2 Basic filtering and the ajaxSearch demo site for more information
                                    // Default: '' - empty list
                                    $cfg['filter'] = isset($filter) ? $filter : (isset($__filter) ? $__filter : $dcfg['filter']);
                                    
                                    // &output [0 | 1 ]Custom layout
                                    // Default: 0 - Results are listed just under the input form
                                    // 1 - custom layout. put [+as.inputForm+] and [+as.results+] where you want to define the layout
                                    $cfg['output'] = isset($output) ? $output : (isset($__output) ? $__output : $dcfg['output']);
                                    
                                    // &tplInput - Chunk to style the ajaxSearch input form
                                    // Default: '@FILE:' . AS_SPATH . 'templates/input.tpl.html'
                                    $cfg['tplInput'] = isset($tplInput) ? $tplInput : (isset($__tplInput) ? $__tplInput : $dcfg['tplInput']);
                                    
                                    // &tplResults - Chunk to style the non-ajax output results outer
                                    // Default: '@FILE:' . AS_SPATH . 'templates/results.tpl.html'
                                    $cfg['tplResults'] = isset($tplResults) ? $tplResults : (isset($__tplResults) ? $__tplResults : $dcfg['tplResults']);
                                    
                                    // &tplGrpResult - Chunk to style the non-ajax output group result outer
                                    // Default: '@FILE:' . AS_SPATH . 'templates/grpResult.tpl.html'
                                    $cfg['tplGrpResult'] = isset($tplGrpResult) ? $tplGrpResult : (isset($__tplGrpResult) ? $__tplGrpResult : $dcfg['tplGrpResult']);
                                    
                                    // &tplResult - Chunk to style each output result
                                    // Default: "@FILE:" . AS_SPATH . 'templates/result.tpl.html'
                                    $cfg['tplResult'] = isset($tplResult) ? $tplResult : (isset($__tplResult) ? $__tplResult : $dcfg['tplResult']);
                                    
                                    // &tplComment - Chunk to style the comment form (Also used with the ajax mode)
                                    // Default: '@FILE:' . AS_SPATH . 'templates/comment.tpl.html'
                                    $cfg['tplComment'] = isset($tplComment) ? $tplComment : (isset($__tplComment) ? $__tplComment : $dcfg['tplComment']);
                                    
                                    // &tplPaging0 - Chunk to style the paging links - type 0
                                    // Default: '@FILE:' . AS_SPATH . 'templates/paging0.tpl.html'
                                    $cfg['tplPaging0'] = isset($tplPaging0) ? $tplPaging0 : (isset($__tplPaging0) ? $__tplPaging0 : $dcfg['tplPaging0']);
                                    
                                    // &tplPaging1 - Chunk to style the paging links - type 1
                                    // Default: '@FILE:' . AS_SPATH . 'templates/paging1.tpl.html'
                                    $cfg['tplPaging1'] = isset($tplPaging1) ? $tplPaging1 : (isset($__tplPaging1) ? $__tplPaging1 : $dcfg['tplPaging1']);
                                    
                                    // &tplPaging2 - Chunk to style the paging links - type 2
                                    // Default: '@FILE:' . AS_SPATH . 'templates/paging2.tpl.html'
                                    $cfg['tplPaging2'] = isset($tplPaging2) ? $tplPaging2 : (isset($__tplPaging2) ? $__tplPaging2 : $dcfg['tplPaging2']);
                                    
                                    // &stripInput - stripInput user function name
                                    // Default: 'defaultStripInput'
                                    $cfg['stripInput'] = isset($stripInput) ? $stripInput : (isset($__stripInput) ? $__stripInput : $dcfg['stripInput']);
                                    
                                    // &stripOutput - stripOutput user function name
                                    // Default: 'defaultStripOutput'
                                    $cfg['stripOutput'] = isset($stripOutput) ? $stripOutput : (isset($__stripOutput) ? $__stripOutput : $dcfg['stripOutput']);
                                    
                                    // &breadcrumbs
                                    // 0 : disallow the breadcrumbs link
                                    // Name of the breadcrumbs function : allow the breadcrumbs link
                                    // The function name could be followed by some parameter initialization
                                    // e.g: &breadcrumbs=`Breadcrumbs,showHomeCrumb:0,showCrumbsAtHome:1`
                                    // Default: '' - empty string
                                    $cfg['breadcrumbs'] = isset($breadcrumbs) ? $breadcrumbs : (isset($__breadcrumbs) ? $__breadcrumbs : $dcfg['breadcrumbs']);
                                    
                                    // &tvPhx - display and set placeHolders for TV (template variables)
                                    // 0 : disallow the feature
                                    // 1 : allow the display of all Modx TVs of the document found (default)
                                    // 'tb_alias:display_function_name[,[tb_alias:display_function_name]*]' : set up placeholders for custom joined tables
                                    // Default: 1 - tvPhx allowed for TV only
                                    $cfg['tvPhx'] = isset($tvPhx) ? $tvPhx : (isset($__tvPhx) ? $__tvPhx : $dcfg['tvPhx']);
                                    
                                    // &clearDefault - Clearing default text
                                    // Set this to 1 if you would like to include the clear default js function
                                    // add the class "cleardefault" to your input text form and set this parameter
                                    // Default: 0
                                    $cfg['clearDefault'] = isset($clearDefault) ? $clearDefault : (isset($__clearDefault) ? $__clearDefault : $dcfg['clearDefault']);
                                    
                                    // &jsClearDefault - Location of the js library
                                    // Default: AS_SPATH . 'js/clearDefault.js'
                                    $cfg['jsClearDefault'] = $dcfg['jsClearDefault'];
                                    
                                    // &mbstring - php_mbstring extension available [0 | 1]
                                    // Default: 1 - extension available
                                    $cfg['mbstring'] = isset($mbstring) ? $mbstring : (isset($__mbstring) ? $__mbstring : $dcfg['mbstring']);
                                    
                                    //  &asLog - ajaxSearch log [ level [: comment [: purge]]]
                                    //  level:
                                    //        0 : disallow the ajaxSearch log (Default)
                                    //        1 : failed search requests are logged
                                    //        2 : all ajaxSearch requests are logged
                                    //  comment:
                                    //        0 : user comment not allowed (Default)
                                    //        1 : user comment allowed
                                    //  purge: number of logs allowed before to do an automatic purge of the table
                                    //        Default: 200
                                    $cfg['asLog'] = isset($asLog) ? $asLog : (isset($__asLog) ? $__asLog : $dcfg['asLog']);
                                    
                                    
                                    //------------------------------------------------------------------------------
                                    // Configuration - Simple Ajax mode
                                    //------------------------------------------------------------------------------
                                    
                                    if ($cfg['ajaxSearch']) {
                                    
                                        // $liveSearch [1 | 0] (as passed in snippet variable ONLY)
                                        // Set this to 1 if you would like to use the live search (i.e. results as you type)
                                        // Default: 0 - livesearch mode inactivated
                                        $cfg['liveSearch'] = isset($liveSearch) ? $liveSearch : (isset($__liveSearch) ? $__liveSearch : $dcfg['liveSearch']);
                                    
                                        // &ajaxMax [int] - The maximum number of results to show for the ajaxsearch
                                        // Default: 6
                                        $cfg['ajaxMax'] = isset($ajaxMax) ? $ajaxMax : (isset($__ajaxMax) ? $__ajaxMax : $dcfg['ajaxMax']);
                                    
                                        // &moreResultsPage [int]
                                        // The document id of the page you want the more results link to point to
                                        // Default: 0
                                        $cfg['moreResultsPage'] = isset($moreResultsPage) ? $moreResultsPage : (isset($__moreResultsPage) ? $__moreResultsPage : $dcfg['moreResultsPage']);
                                    
                                        // &opacity - set the opacity of the div ajaxSearch_output
                                        // Should be a float value: [ 0. < float <= 1. ]
                                        // Default: 1.
                                        $cfg['opacity'] = isset($opacity) ? $opacity : (isset($__opacity) ? $__opacity : $dcfg['opacity']);
                                    
                                        // &tplAjaxResults - Chunk to style the ajax output results outer
                                        // Default: '' - empty string
                                        $cfg['tplAjaxResults'] = isset($tplAjaxResults) ? $tplAjaxResults : (isset($__tplAjaxResults) ? $__tplAjaxResults : $dcfg['tplAjaxResults']);
                                    
                                        // &tplAjaxGrpResult - Chunk to style each ajax output group result outer
                                        // Default: '' - empty string
                                        $cfg['tplAjaxGrpResult'] = isset($tplAjaxGrpResult) ? $tplAjaxGrpResult : (isset($__tplAjaxGrpResult) ? $__tplAjaxGrpResult : $dcfg['tplAjaxGrpResult']);
                                    
                                        // &tplAjaxResult - Chunk to style each ajax output result
                                        // Default: '' - empty string
                                        $cfg['tplAjaxResult'] = isset($tplAjaxResult) ? $tplAjaxResult : (isset($__tplAjaxResult) ? $__tplAjaxResult : $dcfg['tplAjaxResult']);
                                    
                                        // &jscript ['jquery'|'mootools2'|'mootools']
                                        // Set this to jquery if you would like use the jquery library
                                        // set mootools2 to use the version 1.2 of mootools (limited to JS functions used by AS)
                                        // Default: 'mootools' - use the version 1.11 of mootools provided with MODx
                                        $cfg['jscript'] = isset($jscript) ? $jscript : (isset($__jscript) ? $__jscript : $dcfg['jscript']);
                                    
                                        // &addJscript [1 | 0]
                                        // Set this to 1 if you would like to include or not the mootool/jquery library in the header of your pages automatically
                                        // Default: 1
                                        $cfg['addJscript'] = isset($addJscript) ? $addJscript : (isset($__addJscript) ? $__addJscript : $dcfg['addJscript']);
                                    
                                        // &jsMooTools - Location of the mootools javascript library (current version of MODx)
                                        // Default: 'manager/media/script/mootools/mootools.js'
                                        $cfg['jsMooTools'] = isset($jsMooTools) ? $jsMooTools : (isset($__jsMooTools) ? $__jsMooTools : $dcfg['jsMooTools']);
                                    
                                        // &jsMooTools2 - Location of an alternative mootools javascript library
                                        // Default: AS_SPATH . 'js/mootools1.2/mootools.js' - contains only the required functions for AS
                                        // to use an another library, use this parameter and change the ajaxSearch/js/ajaxSearch1/ajaxSearch-mootools2.js file
                                        $cfg['jsMooTools2'] = isset($jsMooTools2) ? $jsMooTools2 : (isset($__jsMooTools2) ? $__jsMooTools2 : $dcfg['jsMooTools2']);
                                    
                                        // &jsQuery - Location of the jquery javascript library
                                        // Default: AS_SPATH . 'js/jquery/jquery.js'
                                        $cfg['jsJquery'] = isset($jsJquery) ? $jsJquery : (isset($__jsJquery) ? $__jsJquery : $dcfg['jsJquery']);
                                    }
                                    
                                    
                                    // ========================================================== End of config
                                    include_once AS_PATH . "classes/ajaxSearch.class.inc.php";
                                    if (class_exists('AjaxSearch')) {
                                        $as = new AjaxSearch();
                                        $output = $as->run($tstart, $dcfg, $cfg);
                                    } else {
                                        $output = "<h3>error: AjaxSearch class not found</h3>";
                                    }
                                    $elapsedTime = $modx->getMicroTime() - $tstart;
                                    $etime = sprintf("%.4fs",$elapsedTime);
                                    //$f=fopen('test.txt','a+');fwrite($f,"etime=".$etime."\n\n");
                                    return $output;
                                    """
                                  "ac.home.layout" => """
                                    $parentID = $modx->getPlaceholder('homearticlesid');
                                    $maxColumns = 3; // maximum number of columns allowed  in a layout
                                    $columns = $modx->getActiveChildren($id=$parentID);
                                    
                                    $colCount=count($columns);
                                    
                                    if ($colCount > $maxColumns ){
                                        $colCount = $maxColumns;
                                    }
                                    return $colCount;
                                    """
                                  "bannerCall" => """
                                    // accepted variables -  $zone, $tpl, $key, $name
                                    // Placeholders: [+bc.zone+], [+bc.key+]
                                    // $zone - zone id from banner system, $key - random number from banner system for a given zone call
                                    
                                    $prefix = 'bc.';
                                    
                                    $chunkArr[$prefix . 'zone'] = $zone;
                                    $chunkArr[$prefix . 'key'] = $key;
                                    $chunkArr[$prefix . 'name'] = $name ? ("'" . $name . "'") : $zone;
                                    $chunkArr[$prefix . 'id'] = $id;
                                    
                                    $output .= $modx->parseChunk($tpl, $chunkArr, '[+', '+]');
                                    
                                    // Display results
                                    return $output;"""
                                  "Breadcrumbs" => """
                                    /*
                                     * This snippet shows the path through the various levels of site structure. It
                                     * is NOT necessarily the path the user took to arrive at a given page.
                                     * Version: 1.0.2
                                     */
                                    
                                    /* -----------------------------------------------------------------------------
                                     * CONFIGURATION
                                     * -----------------------------------------------------------------------------
                                     * This section contains brief explanations of the available parameters.
                                     */
                                    
                                    /* General setup
                                     * -----------------------------------------------------------------------------
                                     */
                                    
                                    /* $maxCrumbs [ integer ]
                                     * Max number of elemetns to have in a breadcrumb path. The default 100 is an
                                     * arbitrarily high number that will essentially include everything. If you were
                                     * to set it to 2, and you were 5 levels deep, it would appear like:
                                     * HOME > ... > Level 3 > Level 4 > CURRENT PAGE
                                     * It should be noted that the "home" link, and the current page do not count as
                                     * they are managed by their own configuration settings.
                                     */
                                    ( isset($maxCrumbs) ) ? $maxCrumbs : $maxCrumbs = 100;
                                    
                                    /* $pathThruUnPub [ 1 | 0 ]
                                     * When your path includes an unpublished folder, setting this to 1 (true) will
                                     * show all documents in path EXCEPT the unpublished. When set to 0 (false), the
                                     * path will not go "through" that unpublished folder and will stop there.
                                     */
                                    ( isset($pathThruUnPub) ) ? $pathThruUnPub : $pathThruUnPub = 1;
                                    
                                    /* $respectHidemenu [ 0 | 1 ]
                                     * Setting this to 1 (true) will respect the hidemenu setting of the document
                                     * and not include it in trail.
                                     */
                                    ( isset($respectHidemenu) ) ? (int)$respectHidemenu : $respectHidemenu = 1;
                                    
                                    /* $showCurrentCrumb [ 1 | 0 ]
                                     * Include the current page at the end of the trail. On by default.
                                     */
                                    ( isset($showCurrentCrumb) ) ? $showCurrentCrumb : $showCurrentCrumb = 1;
                                    
                                    /* $currentAsLink [ 1 | 0 ]
                                     * If the current page is included, this parameter will show it as a link (1) or
                                     * just plain text (0).
                                     */
                                    ( $currentAsLink ) ? $currentAsLink : $currentAsLink = 0;
                                    
                                    /* $linkTextField [ string ]
                                     * Prioritized list of fields to use as link text. Options are: pagetitle,
                                     * longtitle, description, menutitle. The first of these fields that has a value
                                     * will be the title.
                                     */
                                    ( isset($linkTextField) ) ? $linkTextField : $linkTextField = 'menutitle,pagetitle,longtitle';
                                    
                                    /* $linkDescField [ string ]
                                     * Prioritized list of fields to use as link title text. Options are: pagetitle,
                                     * longtitle, description, menutitle. The first of these fields that has a value
                                     * will be the title.
                                     */
                                    ( isset($linkDescField) ) ? $linkDescField : $linkDescField = 'description,longtitle,pagetitle,menutitle';
                                    
                                    /* $showCrumbsAsLinks [ 1 | 0 ]
                                     * If for some reason you want breadcrumbs to be text and not links, set to 0
                                     * (false).
                                     */
                                    ( isset($showCrumbsAsLinks) ) ? $showCrumbsAsLinks : $showCrumbsAsLinks = 1;
                                    
                                    /* $templateSet [ string ]
                                     * The set of templates you'd like to use. (Templates are defined below.) It
                                     * will default to defaultString which replicates the output of previous
                                     * versions.
                                     */
                                    ( isset($templateSet) ) ? $templateSet : $templateSet = 'defaultString';
                                    
                                    /* $crumbGap [ string ]
                                     * String to be shown to represent gap if there are more crumbs in trail than
                                     * can be shown. Note: if you would like to use an image, the entire image tag
                                     * must be provided. When making a snippet call, you cannot use "=", so use "||"
                                     * instead and it will be converted for you.
                                     */
                                    ( isset($crumbGap) ) ? $crumbGap : $crumbGap = '...';
                                    
                                    /* $stylePrefix [ string ]
                                     * Breadcrumbs will add style classes to various parts of the trail. To avoid
                                     * class name conflicts, you can determine your own prefix. The following
                                     * classes will be attached:
                                     * crumbBox: Span that surrounds all crumb output
                                     * hideCrumb: Span that surrounds the "..." if there are more crumbs than will
                                     * be shown
                                     * currentCrumb: Span or A tag surrounding the current crumb
                                     * firstCrumb: Span that will be applied to first crumb, whether it is "home" or
                                     * not
                                     * lastCrumb: Span surrounding last crumb, whether it is the current page or
                                     * not
                                     * crumb: Class given to each A tag surrounding the intermediate crumbs (not
                                     * "home", "current", or "hide")
                                     * homeCrumb: Class given to the home crumb
                                     */
                                    ( isset($stylePrefix) ) ? $stylePrefix : $stylePrefix = 'B_';
                                    
                                    
                                    
                                    /* Home link parameters
                                     * -----------------------------------------------------------------------------
                                     * The home link is unique. It is a link that can be placed at the head of the
                                     * breadcrumb trail, even if it is not truly in the hierarchy.
                                     */
                                    
                                    /* $showHomeCrumb [ 1 | 0 ]
                                     * This toggles the "home" crumb to be added to the beginning of your trail.
                                     */
                                    ( isset($showHomeCrumb) ) ? $showHomeCrumb : $showHomeCrumb = 1;
                                    
                                    /* $homeId [ integer ]
                                     * Usually the page designated as "site start" in MODx configuration is
                                     * considered the home page. But if you would like to use some other document,
                                     * you may explicitly define it.
                                     */
                                    ( isset($homeId) ) ? (int)$homeId : $homeId = $modx->config['site_start'];
                                    
                                    /* $homeCrumbTitle [ string ]
                                     * If you'd like to use something other than the menutitle (or pagetitle) for
                                     * the home link.
                                     */
                                    ( isset($homeCrumbTitle) ) ? $homeCrumbTitle : $homeCrumbTitle = '';
                                    
                                    /* $homeCrumbDescription [ string ]
                                     * If you'd like to use a custom description (link title) on the home link. If
                                     * left blank, the title will follow the title order set in $titleField.
                                     */
                                    ( isset($homeCrumbDescription) ) ? $homeCrumbDescription : $homeCrumbDescription = '';
                                    
                                    
                                    /* Custom behaviors
                                     * -----------------------------------------------------------------------------
                                     * The following parameters will alter the behavior of the Breadcrumbs based on
                                     * the page it is on.
                                     */
                                    
                                    /* $showCrumbsAtHome [ 1 | 0 ]
                                     * You can turn off Breadcrumbs all together on the home page by setting this to
                                     * 1 (true);
                                     */
                                    ( isset($showCrumbsAtHome) ) ? $showCrumbsAtHome : $showCrumbsAtHome = 0;
                                    
                                    /* $hideOn [ string ]
                                     * Comma separated list of documents you don't want Breadcrumbs on at all. If
                                     * you have a LOT of pages like this, you might try $hideUnder or use another
                                     * template. This parameter is best for those rare odd balls - otherwise it will
                                     * become a pain to manage.
                                     */
                                    ( isset($hideOn) ) ? $hideOn : $hideOn = '';
                                    
                                    /* $hideUnder [ string ]
                                     * Comma separated list of parent documents, whose CHILDREN you don't want
                                     * Breadcrumbs to appear on at all. This enables you to hide Breadcrumbs on a
                                     * whole folders worth of documents by specifying the parent only. The PARENT
                                     * will not have Breadcrumbs hidden however. If you wanted to hide the parent
                                     * and the children, put the parent ID in hideUnder AND hideOn.
                                     */
                                    ( isset($hideUnder) ) ? $hideUnder : $hideUnder = '';
                                    
                                    /* $stopIds [ string ]
                                     * Comma separated list of document IDs that when reached, stops Breadcrumbs
                                     * from going any further. This is useful in situations like where you have
                                     * language branches, and you don't want the Breadcrumbs going past the "home"
                                     * of the language you're in.
                                     */
                                    ( isset($stopIds) ) ? $stopIds : $stopIds = '';
                                    
                                    /* $ignoreIds [ string ]
                                     * Comma separated list of document IDs to explicitly ignore.
                                     */
                                    ( isset($ignoreIds) ) ? $ignoreids : $ignoreids = '';
                                    
                                    /* Templates
                                     * -----------------------------------------------------------------------------
                                     * In an effort to keep the MODx chunks manager from getting mired down in lots
                                     * of templates, Breadcrumbs templates are included here. Two sets are provided
                                     * prefixed with defaultString, and defaultList. You can create as many more as
                                     * you like, each set with it's own prefix
                                     */
                                    $templates = array(
                                        'defaultString' => array(
                                            'crumb' => '[+crumb+]',
                                            'separator' => ' &raquo; ',
                                            'crumbContainer' => '<span class="[+crumbBoxClass+]">[+crumbs+]</span>',
                                            'lastCrumbWrapper' => '<span class="[+lastCrumbClass+]">[+lastCrumbSpanA+]</span>',
                                            'firstCrumbWrapper' => '<span class="[+firstCrumbClass+]">[+firstCrumbSpanA+]</span>'
                                        ),
                                        'defaultList' => array(
                                            'crumb' => '<li>[+crumb+]</li>',
                                            'separator' => '',
                                            'crumbContainer' => '<ul class="[+crumbBoxClass+]">[+crumbs+]</ul>',
                                            'lastCrumbWrapper' => '<span class="[+lastCrumbClass+]">[+lastCrumbSpanA+]</span>',
                                            'firstCrumbWrapper' => '<span class="[+firstCrumbClass+]">[+firstCrumbSpanA+]</span>'
                                        ),
                                    );
                                    
                                    
                                    /* -----------------------------------------------------------------------------
                                     * END CONFIGURATION
                                     * -----------------------------------------------------------------------------
                                     */
                                    
                                    // Return blank if necessary: on home page
                                    if ( !$showCrumbsAtHome && $homeId == $modx->documentObject['id'] )
                                    {
                                        return '';
                                    }
                                    // Return blank if necessary: specified pages
                                    if ( $hideOn || $hideUnder )
                                    {
                                        // Create array of hide pages
                                        $hideOn = str_replace(' ','',$hideOn);
                                        $hideOn = explode(',',$hideOn);
                                    
                                        // Get more hide pages based on parents if needed
                                        if ( $hideUnder )
                                        {
                                            $hiddenKids = array();
                                            // Get child pages to hide
                                            $hideKidsQuery = $modx->db->select('id',$modx->getFullTableName("site_content"),"parent IN ($hideUnder)");
                                            while ( $hideKid = $modx->db->getRow($hideKidsQuery) )
                                            {
                                                $hiddenKids[] = $hideKid['id'];
                                            }
                                            // Merge with hideOn pages
                                            $hideOn = array_merge($hideOn,$hiddenKids);
                                        }
                                    
                                        if ( in_array($modx->documentObject['id'],$hideOn) )
                                        {
                                            return '';
                                        }
                                    
                                    }
                                    
                                    
                                    // Initialize ------------------------------------------------------------------
                                    
                                    // Put certain parameters in arrays
                                    $stopIds = str_replace(' ','',$stopIds);
                                    $stopIds = explode(',',$stopIds);
                                    $linkTextField = str_replace(' ','',$linkTextField);
                                    $linkTextField = explode(',',$linkTextField);
                                    $linkDescField = str_replace(' ','',$linkDescField);
                                    $linkDescField = explode(',',$linkDescField);
                                    $ignoreIds = str_replace(' ','',$ignoreIds);
                                    $ignoreIds = explode(',',$ignoreIds);
                                    
                                    /* $crumbs
                                     * Crumb elements are: id, parent, pagetitle, longtitle, menutitle, description,
                                     * published, hidemenu
                                     */
                                    $crumbs = array();
                                    $parent = $modx->documentObject['parent'];
                                    $output = '';
                                    $maxCrumbs += ($showCurrentCrumb) ? 1 : 0;
                                    
                                    // Replace || in snippet parameters that accept them with =
                                    $crumbGap = str_replace('||','=',$crumbGap);
                                    
                                    // Curent crumb ----------------------------------------------------------------
                                    
                                    // Decide if current page is to be a crumb
                                    if ( $showCurrentCrumb )
                                    {
                                        $crumbs[] = array(
                                            'id' => $modx->documentObject['id'],
                                            'parent' => $modx->documentObject['parent'],
                                            'pagetitle' => $modx->documentObject['pagetitle'],
                                            'longtitle' => $modx->documentObject['longtitle'],
                                            'menutitle' => $modx->documentObject['menutitle'],
                                            'description' => $modx->documentObject['description']);
                                    }
                                    
                                    // Intermediate crumbs ---------------------------------------------------------
                                    
                                    
                                    // Iterate through parents till we hit root or a reason to stop
                                    $loopSafety = 0;
                                    while ( $parent && $loopSafety < 1000 )
                                    {
                                        // Get next crumb
                                        $tempCrumb = $modx->getPageInfo($parent,0,"id,parent,pagetitle,longtitle,menutitle,description,published,hidemenu");
                                    
                                        // Check for include conditions & add to crumbs
                                        if (
                                            $tempCrumb['published'] &&
                                            ( !$tempCrumb['hidemenu'] || !$respectHidemenu ) &&
                                            !in_array($tempCrumb['id'],$ignoreIds)
                                        )
                                        {
                                            // Add crumb
                                            $crumbs[] = array(
                                            'id' => $tempCrumb['id'],
                                            'parent' => $tempCrumb['parent'],
                                            'pagetitle' => $tempCrumb['pagetitle'],
                                            'longtitle' => $tempCrumb['longtitle'],
                                            'menutitle' => $tempCrumb['menutitle'],
                                            'description' => $tempCrumb['description']);
                                        }
                                    
                                        // Check stop conditions
                                        if (
                                            in_array($tempCrumb['id'],$stopIds) ||  // Is one of the stop IDs
                                            !$tempCrumb['parent'] || // At root
                                            ( !$tempCrumb['published'] && !$pathThruUnPub ) // Unpublished
                                        )
                                        {
                                            // Halt making crumbs
                                            break;
                                        }
                                    
                                        // Reset parent
                                        $parent = $tempCrumb['parent'];
                                    
                                        // Increment loop safety
                                        $loopSafety++;
                                    }
                                    
                                    // Home crumb ------------------------------------------------------------------
                                    
                                    if ( $showHomeCrumb && $homeCrumb = $modx->getPageInfo($homeId,0,"id,parent,pagetitle,longtitle,menutitle,description,published,hidemenu") )
                                    {
                                        $crumbs[] = array(
                                        'id' => $homeCrumb['id'],
                                        'parent' => $homeCrumb['parent'],
                                        'pagetitle' => $homeCrumb['pagetitle'],
                                        'longtitle' => $homeCrumb['longtitle'],
                                        'menutitle' => $homeCrumb['menutitle'],
                                        'description' => $homeCrumb['description']);
                                    }
                                    
                                    
                                    // Process each crumb ----------------------------------------------------------
                                    $pretemplateCrumbs = array();
                                    
                                    foreach ( $crumbs as $c )
                                    {
                                    
                                        // Skip if we've exceeded our crumb limit but we're waiting to get to home
                                        if ( count($pretemplateCrumbs) > $maxCrumbs && $c['id'] != $homeId )
                                        {
                                            continue;
                                        }
                                    
                                        $text = '';
                                        $title = '';
                                        $pretemplateCrumb = '';
                                    
                                        // Determine appropriate span/link text: home link specified
                                        if ( $c['id'] == $homeId && $homeCrumbTitle )
                                        {
                                            $text = $homeCrumbTitle;
                                        }
                                        else
                                        // Determine appropriate span/link text: home link not specified
                                        {
                                            for ($i = 0; !$text && $i < count($linkTextField); $i++)
                                            {
                                                if ( $c[$linkTextField[$i]] )
                                                {
                                                    $text = $c[$linkTextField[$i]];
                                                }
                                            }
                                        }
                                    
                                        // Determine link/span class(es)
                                        if ( $c['id'] == $homeId )
                                        {
                                            $crumbClass = $stylePrefix.'homeCrumb';
                                        }
                                        else if ( $modx->documentObject['id'] == $c['id'] )
                                        {
                                            $crumbClass = $stylePrefix.'currentCrumb';
                                        }
                                        else
                                        {
                                            $crumbClass = $stylePrefix.'crumb';
                                        }
                                    
                                        // Make link
                                        if (
                                            ( $c['id'] != $modx->documentObject['id'] && $showCrumbsAsLinks ) ||
                                            ( $c['id'] == $modx->documentObject['id'] && $currentAsLink )
                                        )
                                        {
                                            // Determine appropriate title for link: home link specified
                                            if ( $c['id'] == $homeId && $homeCrumbDescription )
                                            {
                                                $title = htmlspecialchars($homeCrumbDescription);
                                            }
                                            else
                                            // Determine appropriate title for link: home link not specified
                                            {
                                                for ($i = 0; !$title && $i < count($linkDescField); $i++)
                                                {
                                                    if ( $c[$linkDescField[$i]] )
                                                    {
                                                        $title = htmlspecialchars($c[$linkDescField[$i]]);
                                                    }
                                                }
                                            }
                                    
                                    
                                            $pretemplateCrumb .= '<a class="'.$crumbClass.'" href="'.$modx->makeUrl($c['id']).'" title="'.$title.'">'.$text.'</a>';
                                        }
                                        else
                                        // Make a span instead of a link
                                        {
                                           $pretemplateCrumb .= '<span class="'.$crumbClass.'">'.$text.'</span>';
                                        }
                                    
                                        // Add crumb to pretemplate crumb array
                                        $pretemplateCrumbs[] = $pretemplateCrumb;
                                    
                                        // If we have hit the crumb limit
                                        if ( count($pretemplateCrumbs) == $maxCrumbs )
                                        {
                                            if ( count($crumbs) > ($maxCrumbs + (($showHomeCrumb) ? 1 : 0)) )
                                            {
                                                // Add gap
                                                $pretemplateCrumbs[] = '<span class="'.$stylePrefix.'hideCrumb'.'">'.$crumbGap.'</span>';
                                            }
                                    
                                            // Stop here if we're not looking for the home crumb
                                            if ( !$showHomeCrumb )
                                            {
                                                break;
                                            }
                                        }
                                    }
                                    
                                    // Put in correct order for output
                                    $pretemplateCrumbs = array_reverse($pretemplateCrumbs);
                                    
                                    // Wrap first/last spans
                                    $pretemplateCrumbs[0] = str_replace(
                                        array('[+firstCrumbClass+]','[+firstCrumbSpanA+]'),
                                        array($stylePrefix.'firstCrumb',$pretemplateCrumbs[0]),
                                        $templates[$templateSet]['firstCrumbWrapper']
                                    );
                                    $pretemplateCrumbs[(count($pretemplateCrumbs)-1)] = str_replace(
                                        array('[+lastCrumbClass+]','[+lastCrumbSpanA+]'),
                                        array($stylePrefix.'lastCrumb',$pretemplateCrumbs[(count($pretemplateCrumbs)-1)]),
                                        $templates[$templateSet]['lastCrumbWrapper']
                                    );
                                    
                                    // Insert crumbs into crumb template
                                    $processedCrumbs = array();
                                    foreach ( $pretemplateCrumbs as $pc )
                                    {
                                        $processedCrumbs[] = str_replace('[+crumb+]',$pc,$templates[$templateSet]['crumb']);
                                    }
                                    
                                    // Combine crumbs together into one string with separator
                                    $processedCrumbs = implode($templates[$templateSet]['separator'],$processedCrumbs);
                                    
                                    // Put crumbs into crumb container template
                                    $container = str_replace(
                                        array('[+crumbBoxClass+]','[+crumbs+]'),
                                        array($stylePrefix.'crumbBox',$processedCrumbs),
                                        $templates[$templateSet]['crumbContainer']
                                        );
                                    
                                    // Return crumbs
                                    return $container;"""
                                  "date" => """
                                    $format = ($format) ? $format : 'D, d M Y H:i:s T';
                                    $date = ($date) ? $date : time();
                                    return date($format,$date);"""
                                  "Ditto" => """
                                    /* Description:
                                     *      Aggregates documents to create blogs, article/news
                                     *      collections, and more,with full support for templating.
                                     * 
                                     * Author: 
                                     *      Mark Kaplan for MODx CMF
                                    */
                                    
                                    //---Core Settings---------------------------------------------------- //
                                    
                                    $ditto_version = "2.1.0";
                                        // Ditto version being executed
                                    
                                    $ditto_base = isset($ditto_base) ? $modx->config['base_path'].$ditto_base : $modx->config['base_path']."assets/snippets/ditto/";
                                    /*
                                        Param: ditto_base
                                        
                                        Purpose:
                                        Location of Ditto files
                                    
                                        Options:
                                        Any valid folder location containing the Ditto source code with a trailing slash
                                    
                                        Default:
                                        [(base_path)]assets/snippets/ditto/
                                    */
                                    $dittoID = (!isset($id)) ? "" : $id."_";
                                    $GLOBALS["dittoID"] = $dittoID;
                                    /*
                                        Param: id
                                    
                                        Purpose:
                                        Unique ID for this Ditto instance for connection with other scripts (like Reflect) and unique URL parameters
                                    
                                        Options:
                                        Any combination of characters a-z, underscores, and numbers 0-9
                                        
                                        Note:
                                        This is case sensitive
                                    
                                        Default:
                                        "" - blank
                                    */      
                                    $language = (isset($language))? $language : $modx->config['manager_language'];
                                    if (!file_exists($ditto_base."lang/".$language.".inc.php")) {
                                        $language ="english";
                                    }
                                    /*
                                        Param: language
                                    
                                        Purpose:
                                        language for defaults, debug, and error messages
                                    
                                        Options:
                                        Any language name with a corresponding file in the &ditto_base/lang folder
                                    
                                        Default:
                                        "english"
                                    */
                                    $format = (isset($format)) ? strtolower($format) : "html" ;
                                    /*
                                        Param: format
                                    
                                        Purpose:
                                        Output format to use
                                    
                                        Options:
                                        - "html"
                                        - "json"
                                        - "xml"
                                        - "atom"
                                        - "rss"
                                    
                                        Default:
                                        "html"
                                    */
                                    $config = (isset($config)) ? $config : "default";
                                    /*
                                        Param: config
                                    
                                        Purpose:
                                        Load a custom configuration
                                    
                                        Options:
                                        "default" - default blank config file
                                        CONFIG_NAME - Other configs installed in the configs folder or in any folder within the MODx base path via @FILE
                                    
                                        Default:
                                        "default"
                                        
                                        Related:
                                        - <extenders>
                                    */
                                    $debug = isset($debug)? $debug : 0;
                                    /*
                                        Param: debug
                                    
                                        Purpose:
                                        Output debugging information
                                    
                                        Options:
                                        0 - off
                                        1 - on
                                        
                                        Default:
                                        0 - off
                                        
                                        Related:
                                        - <debug>
                                    */
                                    $phx = (isset($phx))? $phx : 1;
                                    /*
                                        Param: phx
                                    
                                        Purpose:
                                        Use PHx formatting
                                    
                                        Options:
                                        0 - off
                                        1 - on
                                        
                                        Default:
                                        1 - on
                                    */      
                                    $extenders = isset($extenders) ? explode(",",$extenders) : array();
                                    /*
                                        Param: extenders
                                    
                                        Purpose:
                                        Load an extender which adds functionality to Ditto
                                    
                                        Options:
                                        Any extender in the extenders folder or in any folder within the MODx base path via @FILE
                                    
                                        Default:
                                        [NULL]
                                    
                                        Related:
                                        - <config>
                                    */
                                        // Variable: extenders
                                        // Array that can be added to by configs or formats to load that extender
                                        
                                    $placeholders = array();
                                        // Variable: placeholders
                                        // Initialize custom placeholders array for configs or extenders to add to
                                    
                                    $filters = array("custom"=>array(),"parsed"=>array());
                                        // Variable: filters
                                        // Holds both the custom filters array for configs or extenders to add to 
                                        // and the parsed filters array. To add to this array, use the following format
                                        // (code)
                                        // $filters["parsed"][] = array("name" => array("source"=>$source,"value"=>$value,"mode"=>$mode));
                                        // $filters["custom"][] = array("source","callback_function");
                                    
                                    $orderBy = array('parsed'=>array(),'custom'=>array(),'unparsed'=>$orderBy);
                                        // Variable: orderBy
                                        // An array that holds all criteria to sort the result set by. 
                                        // Note that using a custom sort will disable all other sorting.
                                        // (code)
                                        // $orderBy["parsed"][] = array("sortBy","sortDir");
                                        // $orderBy["custom"][] = array("sortBy","callback_function");
                                            
                                    //---Includes-------------------------------------------------------- //
                                    
                                    $files = array (
                                        "base_language" => $ditto_base."lang/english.inc.php",
                                        "language" => $ditto_base."lang/$language.inc.php",
                                        "main_class" => $ditto_base."classes/ditto.class.inc.php",
                                        "template_class" => $ditto_base."classes/template.class.inc.php",
                                        "filter_class" => $ditto_base."classes/filter.class.inc.php",
                                        "format" => $ditto_base."formats/$format.format.inc.php",
                                        "config" => $ditto_base."configs/default.config.php",
                                        "user_config" => (substr($config, 0, 5) != "@FILE") ? $ditto_base."configs/$config.config.php" : $modx->config['base_path'].trim(substr($config, 5))
                                    );
                                    
                                    if ($phx == 1) {
                                        $files["prePHx_class"] = $ditto_base."classes/phx.pre.class.inc.php";
                                    }
                                    if (isset($randomize)) {
                                        $files["randomize_class"] = $ditto_base."classes/random.class.inc.php";
                                    }
                                    if ($debug == 1) {
                                        $files["modx_debug_class"] = $ditto_base."debug/modxDebugConsole.class.php";
                                        $files["debug_class"] = $ditto_base."classes/debug.class.inc.php";
                                        $files["debug_templates"] = $ditto_base."debug/debug.templates.php";
                                    }
                                    
                                    $files = array_unique($files);
                                    foreach ($files as $filename => $filevalue) {
                                        if (file_exists($filevalue) && strpos($filename,"class")) {
                                            include_once($filevalue);
                                        } else if (file_exists($filevalue)) {
                                            include($filevalue);
                                        } else if ($filename == "language") {
                                            $modx->logEvent(1, 3, "Language file does not exist Please check: " . $filevalue, "Ditto " . $ditto_version);
                                            return "Language file does not exist Please check: " . $filevalue;
                                        } else {
                                            $modx->logEvent(1, 3, $filevalue . " " . $_lang['file_does_not_exist'], "Ditto " . $ditto_version);
                                            return $filevalue . " " . $_lang['file_does_not_exist'];
                                        }
                                    }
                                    
                                    //---Initiate Class-------------------------------------------------- //
                                    if (class_exists('ditto')) {
                                        $ditto = new ditto($dittoID,$format,$_lang,$dbg_templates);
                                            // create a new Ditto instance in the specified format and language with the requested debug level
                                    } else {
                                        $modx->logEvent(1,3,$_lang['invalid_class'],"Ditto ".$ditto_version);
                                        return $_lang['invalid_class'];
                                    }
                                    
                                    //---Initiate Extenders---------------------------------------------- //
                                    if (isset($tagData)) {
                                        $extenders[] = "tagging";
                                    }
                                    if(count($extenders) > 0) {
                                        $extenders = array_unique($extenders);
                                        foreach ($extenders as $extender) {
                                                if(substr($extender, 0, 5) != "@FILE") {
                                                    $extender_path = $ditto_base."extenders/".$extender.".extender.inc.php";                
                                                } else {
                                                    $extender_path = $modx->config['base_path'].trim(substr($extender, 5));
                                                }
                                                
                                                if (file_exists($extender_path)){
                                                    include($extender_path);
                                                } else {
                                                    $modx->logEvent(1, 3, $extender . " " . $_lang['extender_does_not_exist'], "Ditto ".$ditto_version);
                                                    return $extender . " " . $_lang['extender_does_not_exist'];
                                                }       
                                        }   
                                    }
                                    
                                    //---Parameters------------------------------------------------------- /*
                                    if (isset($startID)) {$parents = $startID;}
                                    if (isset($summarize)) {$display = $summarize;}
                                    if (isset($limit)) {$queryLimit = $limit;}
                                    if (isset($sortBy) || isset($sortDir) || is_null($orderBy['unparsed'])) {
                                        $sortDir = isset($sortDir) ? strtoupper($sortDir) : 'DESC';
                                        $sortBy = isset($sortBy) ? $sortBy : "createdon";
                                        $orderBy['parsed'][]=array($sortBy,$sortDir);
                                    }
                                        // Allow backwards compatibility
                                    
                                    $idType = isset($documents) ? "documents" : "parents";
                                        // Variable: idType
                                        // type of IDs provided; can be either parents or documents
                                    
                                    $parents = isset($parents) ? $ditto->cleanIDs($parents) : $modx->documentIdentifier;
                                    
                                    /*
                                        Param: parents
                                    
                                        Purpose:
                                        IDs of containers for Ditto to retrieve their children to &depth depth
                                    
                                        Options:
                                        Any valid MODx document marked as a container
                                    
                                        Default:
                                        Current MODx Document
                                    
                                        Related:
                                        - <documents>
                                        - <depth>
                                    */
                                    $documents = isset($documents) ? $ditto->cleanIDs($documents) : false;
                                    /*
                                        Param: documents
                                    
                                        Purpose:
                                        IDs of documents for Ditto to retrieve
                                    
                                        Options:
                                        Any valid MODx document marked as a container
                                    
                                        Default:
                                        None
                                    
                                        Related:
                                        - <parents>
                                    */
                                    
                                    $IDs = ($idType == "parents") ? $parents : $documents;
                                        // Variable: IDs
                                        // Internal variable which holds the set of IDs for Ditto to fetch
                                    
                                    $depth = isset($depth) ? $depth : 1;
                                    /*
                                        Param: depth
                                    
                                        Purpose:
                                        Number of levels deep to retrieve documents
                                    
                                        Options:
                                        Any number greater than or equal to 1
                                        0 - infinite depth
                                    
                                        Default:
                                        1
                                    
                                        Related:
                                        - <seeThruUnpub>
                                    */
                                    $paginate = isset($paginate)? $paginate : 0;
                                    /*
                                        Param: paginate
                                    
                                        Purpose:
                                        Paginate the results set into pages of &display length.
                                        Use &total to limit the number of documents retreived.
                                    
                                        Options:
                                        0 - off
                                        1 - on
                                        
                                        Default:
                                        0 - off
                                        
                                        Related:
                                        - <paginateAlwaysShowLinks>
                                        - <paginateSplitterCharacter>
                                        - <display>
                                    */
                                    $dateSource = isset($dateSource) ? $dateSource : "createdon";
                                    /*
                                        Param: dateSource
                                    
                                        Purpose:
                                        Source of the [+date+] placeholder
                                    
                                        Options:
                                        # - Any UNIX timestamp from MODx fields or TVs such as createdon, pub_date, or editedon
                                        
                                        Default:
                                        "createdon"
                                        
                                        Related:
                                        - <dateFormat>
                                    */
                                    $dateFormat = isset($dateFormat)? $dateFormat : $_lang["dateFormat"];
                                    /*
                                        Param: dateFormat
                                    
                                        Purpose:
                                        Format the [+date+] placeholder in human readable form
                                    
                                        Options:
                                        Any PHP valid strftime option
                                    
                                        Default:
                                        [LANG]
                                        
                                        Related:
                                        - <dateSource>
                                    */
                                    $display = isset($display) ? $display : "all";
                                    /*
                                        Param: display
                                    
                                        Purpose:
                                        Number of documents to display in the results
                                    
                                        Options:
                                        # - Any number
                                        "all" - All documents found
                                    
                                        Default:
                                        "all"
                                        
                                        Related:
                                        - <queryLimit>
                                        - <total>
                                    */
                                    $total = isset($total) ? $total : "all";
                                    /*
                                        Param: total
                                    
                                        Purpose:
                                        Number of documents to retrieve
                                        
                                        Options:
                                        # - Any number
                                        "all" - All documents found
                                    
                                        Default:
                                        "all" - All documents found
                                        
                                        Related:
                                        - <display>
                                        - <queryLimit>
                                    */
                                    $showPublishedOnly = isset($showPublishedOnly) ? $showPublishedOnly : 1;
                                    /*
                                        Param: showPublishedOnly
                                    
                                        Purpose:
                                        Show only published documents
                                    
                                        Options:
                                        0 - show only unpublished documents
                                        1 - show both published and unpublished documents
                                        
                                        Default:
                                        1 - show both published and unpublished documents
                                        
                                        Related:
                                        - <seeThruUnpub>
                                        - <hideFolders>
                                        - <showPublishedOnly>
                                        - <where>
                                    */
                                    $showInMenuOnly = isset($showInMenuOnly) ? $showInMenuOnly : 0;
                                    /*
                                        Param: showInMenuOnly
                                    
                                        Purpose:
                                        Show only documents visible in the menu
                                    
                                        Options:
                                        0 - show all documents
                                        1 - show only documents with the show in menu flag checked
                                        
                                        Default:
                                        0 - show all documents
                                        
                                        Related:
                                        - <seeThruUnpub>
                                        - <hideFolders>
                                        - <where>
                                    */
                                    $hideFolders = isset($hideFolders)? $hideFolders : 0;
                                    /*
                                        Param: hideFolders
                                    
                                        Purpose:
                                        Don't show folders in the returned results
                                    
                                        Options:
                                        0 - keep folders
                                        1 - remove folders
                                        
                                        Default:
                                        0 - keep folders
                                        
                                        Related:
                                        - <seeThruUnpub>
                                        - <showInMenuOnly>
                                        - <where>
                                    */
                                    $hidePrivate = isset($hidePrivate)? $hidePrivate : 1;
                                    /*
                                        Param: hidePrivate
                                    
                                        Purpose:
                                        Don't show documents the guest or user does not have permission to see
                                    
                                        Options:
                                        0 - show private documents
                                        1 - hide private documents
                                        
                                        Default:
                                        1 - hide private documents
                                        
                                        Related:
                                        - <seeThruUnpub>
                                        - <showInMenuOnly>
                                        - <where>
                                    */
                                    $seeThruUnpub = (isset($seeThruUnpub))? $seeThruUnpub : 1 ;
                                    /*
                                        Param: seeThruUnpub
                                    
                                        Purpose:
                                        See through unpublished folders to retrive their children
                                        Used when depth is greater than 1
                                    
                                        Options:
                                        0 - off
                                        1 - on
                                        
                                        Default:
                                        0 - off
                                        
                                        Related:
                                        - <hideFolders>
                                        - <showInMenuOnly>
                                        - <where>
                                    */
                                    $queryLimit = (isset($queryLimit))? $queryLimit : 0;
                                    /*
                                        Param: queryLimit
                                    
                                        Purpose:
                                        Number of documents to retrieve from the database, same as MySQL LIMIT
                                    
                                        Options:
                                        # - Any number
                                        0 - automatic
                                    
                                        Default:
                                        0 - automatic
                                        
                                        Related:
                                        - <where>
                                    */
                                    $where = (isset($where))? $where : "";
                                    /*
                                        Param: where
                                    
                                        Purpose:
                                        Custom MySQL WHERE statement
                                    
                                        Options:
                                        A valid MySQL WHERE statement using only document object items (no TVs)
                                    
                                        Default:
                                        [NULL]
                                        
                                        Related:
                                        - <queryLimit>
                                    */
                                    $noResults = isset($noResults)? $ditto->getParam($noResults,"no_documents") : $_lang['no_documents'];
                                    /*
                                        Param: noResults
                                    
                                        Purpose:
                                        Text or chunk to display when there are no results
                                    
                                        Options:
                                        Any valid chunk name or text
                                    
                                        Default:
                                        [LANG]
                                    */
                                    $removeChunk = isset($removeChunk) ? explode(",",$removeChunk) : false;
                                    /*
                                        Param: removeChunk
                                    
                                        Purpose:
                                        Name of chunks to be stripped from content separated by commas
                                        - Commonly used to remove comments
                                    
                                        Options:
                                        Any valid chunkname that appears in the output
                                    
                                        Default:
                                        [NULL]
                                    */
                                    $hiddenFields = isset($hiddenFields) ? explode(",",$hiddenFields) : false;
                                    /*
                                        Param: hiddenFields
                                    
                                        Purpose:
                                        Allow Ditto to retrieve fields its template parser cannot handle such as nested placeholders and [*fields*]
                                    
                                        Options:
                                        Any valid MODx fieldnames or TVs comma separated
                                    
                                        Default:
                                        [NULL]
                                    */
                                    $offset = isset($start) ? $start : 0;
                                    $start = (isset($_GET[$dittoID.'start'])) ? intval($_GET[$dittoID.'start']) : 0;
                                    /*
                                        Param: start
                                    
                                        Purpose:
                                        Number of documents to skip in the results
                                        
                                        Options:
                                        Any number
                                    
                                        Default:
                                        0
                                    */
                                    $globalFilterDelimiter = isset($globalFilterDelimiter) ? $globalFilterDelimiter : "|";
                                    /*
                                        Param: globalFilterDelimiter
                                    
                                        Purpose:
                                        Filter delimiter used to separate filters in the filter string
                                        
                                        Options:
                                        Any character not used in the filters
                                    
                                        Default:
                                        "|"
                                        
                                        Related:
                                        - <localFilterDelimiter>
                                        - <filter>
                                        - <parseFilters>
                                    */
                                        
                                    $localFilterDelimiter = isset($localFilterDelimiter) ? $localFilterDelimiter : ",";
                                    /*
                                        Param: localFilterDelimiter
                                    
                                        Purpose:
                                        Delimiter used to separate individual parameters within each filter string
                                        
                                        Options:
                                        Any character not used in the filter itself
                                    
                                        Default:
                                        ","
                                        
                                        Related:
                                        - <globalFilterDelimiter>
                                        - <filter>
                                        - <parseFilters>
                                    */
                                    $filters["custom"] = isset($cFilters) ? array_merge($filters["custom"],$cFilters) : $filters["custom"];
                                    $filters["parsed"] = isset($parsedFilters) ? array_merge($filters["parsed"],$parsedFilters) : $filters["parsed"];
                                        // handle 2.0.0 compatibility
                                    $filter = (isset($filter) || ($filters["custom"] != false) || ($filters["parsed"] != false)) ? $ditto->parseFilters($filter,$filters["custom"],$filters["parsed"],$globalFilterDelimiter,$localFilterDelimiter) : false;
                                    /*
                                        Param: filter
                                    
                                        Purpose:
                                        Removes items not meeting a critera. Thus, if pagetitle == joe then it will be removed.
                                        Use in the format field,criteria,mode with the comma being the local delimiter
                                    
                                        *Mode* *Meaning*
                                        
                                        1 - !=
                                        2 - ==
                                        3 - <
                                        4 - >
                                        5 - <=
                                        6 - >=
                                        7 - Text not in field value
                                        8 - Text in field value
                                        9 - case insenstive version of #7
                                        10 - case insenstive version of #8
                                        11 - checks leading character of the field
                                        
                                        @EVAL:
                                            @EVAL in filters works the same as it does in MODx exect it can only be used 
                                            with basic filtering, not custom filtering (tagging, etc). Make sure that
                                            you return the value you wish Ditto to filter by and that the code is valid PHP.
                                    
                                        Default:
                                        [NULL]
                                        
                                        Related:
                                        - <localFilterDelimiter>
                                        - <globalFilterDelimiter>
                                        - <parseFilters>
                                    */
                                    $keywords = (isset($keywords))? $keywords : 0;
                                    /*  
                                        Param: keywords
                                        
                                        Purpose: 
                                        Enable fetching of associated keywords for each document
                                        Can be used as [+keywords+] or as a tagData source
                                        
                                        Options:
                                        0 - off
                                        1 - on
                                        
                                        Default:
                                        0 - off
                                    */
                                    
                                    $randomize = (isset($randomize))? $randomize : 0;
                                    /*  
                                        Param: randomize
                                        
                                        Purpose: 
                                        Randomize the order of the output
                                        
                                        Options:
                                        0 - off
                                        1 - on
                                        Any MODx field or TV for weighted random
                                        
                                        Default:
                                        0 - off
                                    */
                                    $save = (isset($save))? $save : 0;
                                    /*
                                        Param: save
                                    
                                        Purpose:
                                        Saves the ditto object and results set to placeholders
                                        for use by other snippets
                                    
                                        Options:
                                        0 - off; returns output
                                        1 - remaining; returns output
                                        2 - all;
                                        3 - all; returns ph only
                                    
                                        Default:
                                            0 - off; returns output
                                    */
                                    $templates = array(
                                        "default" => "@CODE".$_lang['default_template'],
                                        "base" => $tpl,
                                        "alt" => $tplAlt,
                                        "first" => $tplFirst,
                                        "last" => $tplLast,
                                        "current" => $tplCurrentDocument
                                    );
                                    /*
                                        Param: tpl
                                    
                                        Purpose:
                                        User defined chunk to format the documents 
                                    
                                        Options:
                                        - Any valid chunk name
                                        - Code via @CODE
                                        - File via @FILE
                                    
                                        Default:
                                        [LANG]
                                    */
                                    /*
                                        Param: tplAlt
                                    
                                        Purpose:
                                        User defined chunk to format every other document
                                    
                                        Options:
                                        - Any valid chunk name
                                        - Code via @CODE
                                        - File via @FILE
                                    
                                        Default:
                                        &tpl
                                    */
                                    /*
                                        Param: tplFirst
                                    
                                        Purpose:
                                        User defined chunk to format the first document 
                                    
                                        Options:
                                        - Any valid chunk name
                                        - Code via @CODE
                                        - File via @FILE
                                    
                                        Default:
                                        &tpl
                                    */
                                    /*
                                        Param: tplLast
                                    
                                        Purpose:
                                        User defined chunk to format the last document 
                                    
                                        Options:
                                        - Any valid chunk name
                                        - Code via @CODE
                                        - File via @FILE
                                    
                                        Default:
                                        &tpl
                                    */
                                    /*
                                        Param: tplCurrentDocument
                                    
                                        Purpose:
                                        User defined chunk to format the current document
                                    
                                        Options:
                                        - Any valid chunk name
                                        - Code via @CODE
                                        - File via @FILE
                                    
                                        Default:
                                        &tpl
                                    */
                                    $orderBy = $ditto->parseOrderBy($orderBy,$randomize);
                                    /*
                                        Param: orderBy
                                    
                                        Purpose:
                                        Sort the result set
                                    
                                        Options:
                                        Any valid MySQL style orderBy statement
                                    
                                        Default:
                                        createdon DESC
                                    */
                                    //-------------------------------------------------------------------- */
                                    $templates = $ditto->template->process($templates);
                                        // parse the templates for TV's and store them for later use
                                    
                                    $ditto->setDisplayFields($ditto->template->fields,$hiddenFields);
                                        // parse hidden fields
                                        
                                    $ditto->parseFields($placeholders,$seeThruUnpub,$dateSource,$randomize);
                                        // parse the fields into the field array
                                        
                                    $documentIDs = $ditto->determineIDs($IDs, $idType, $ditto->fields["backend"]["tv"], $orderBy, $depth, $showPublishedOnly, $seeThruUnpub, $hideFolders, $hidePrivate, $showInMenuOnly, $where, $keywords, $dateSource, $queryLimit, $display, $filter,$paginate, $randomize);
                                        // retrieves a list of document IDs that meet the criteria and populates the $resources array with them
                                    $count = count($documentIDs);
                                        // count the number of documents to be retrieved
                                    $count = $count-$offset;
                                        // handle the offset
                                    
                                    if ($count > 0) {
                                        // if documents are returned continue with execution
                                        
                                        $total = ($total == "all") ? $count : min($total,$count);
                                            // set total equal to count if all documents are to be included
                                        
                                        $display = ($display == "all") ? min($count,$total) : min($display,$total);
                                            // allow show to use all option
                                    
                                        $stop = ($save != "1") ? min($total-$start,$display) : min($count,$total);
                                            // set initial stop count
                                    
                                        if($paginate == 1) {
                                            $paginateAlwaysShowLinks = isset($paginateAlwaysShowLinks)? $paginateAlwaysShowLinks : 0;
                                            /*
                                                Param: paginateAlwaysShowLinks
                                    
                                                Purpose:
                                                Determine whether or not to always show previous next links
                                    
                                                Options:
                                                0 - off
                                                1 - on
                                    
                                                Default:
                                                0 - off
                                            
                                                Related:
                                                - <paginate>
                                                - <paginateSplitterCharacter>
                                            */
                                            $paginateSplitterCharacter = isset($paginateSplitterCharacter)? $paginateSplitterCharacter : $_lang['button_splitter'];
                                            /*
                                                Param: paginateSplitterCharacter
                                    
                                                Purpose:
                                                Splitter to use if always show is disabled
                                    
                                                Options:
                                                Any valid character
                                    
                                                Default:
                                                [LANG]
                                            
                                                Related:
                                                - <paginate>
                                                - <paginateSplitterCharacter>
                                            */
                                            $tplPaginatePrevious = isset($tplPaginatePrevious)? $ditto->template->fetch($tplPaginatePrevious) : "<a href='[+url+]' class='ditto_previous_link'>[+lang:previous+]</a>";
                                            /*
                                                Param: tplPaginatePrevious
                                    
                                                Purpose:
                                                Template for the previous link
                                    
                                                Options:
                                                - Any valid chunk name
                                                - Code via @CODE
                                                - File via @FILE
                                    
                                                Placeholders:
                                                url - URL for the previous link
                                                lang:previous - value of 'prev' from the language file
                                            
                                                Related:
                                                - <tplPaginateNext>
                                                - <paginateSplitterCharacter>
                                            */
                                            $tplPaginateNext = isset($tplPaginateNext)? $ditto->template->fetch($tplPaginateNext) : "<a href='[+url+]' class='ditto_next_link'>[+lang:next+]</a>";
                                            /*
                                                Param: tplPaginateNext
                                    
                                                Purpose:
                                                Template for the next link
                                    
                                                Options:
                                                - Any valid chunk name
                                                - Code via @CODE
                                                - File via @FILE
                                    
                                                Placeholders:
                                                url - URL for the next link
                                                lang:next - value of 'next' from the language file
                                            
                                                Related:
                                                - <tplPaginatePrevious>
                                                - <paginateSplitterCharacter>
                                            */
                                            $tplPaginateNextOff = isset($tplPaginateNextOff)? $ditto->template->fetch($tplPaginateNextOff) : "<span class='ditto_next_off ditto_off'>[+lang:next+]</span>";
                                            /*
                                                Param: tplPaginateNextOff
                                    
                                                Purpose:
                                                Template for the inside of the next link
                                    
                                                Options:
                                                - Any valid chunk name
                                                - Code via @CODE
                                                - File via @FILE
                                    
                                                Placeholders:
                                                lang:next - value of 'next' from the language file
                                            
                                                Related:
                                                - <tplPaginatePrevious>
                                                - <paginateSplitterCharacter>
                                            */
                                            $tplPaginatePreviousOff = isset($tplPaginatePreviousOff)? $ditto->template->fetch($tplPaginatePreviousOff) : "<span class='ditto_previous_off ditto_off'>[+lang:previous+]</span>";
                                            /*
                                                Param: tplPaginatePreviousOff
                                    
                                                Purpose:
                                                Template for the previous link when it is off
                                    
                                                Options:
                                                - Any valid chunk name
                                                - Code via @CODE
                                                - File via @FILE
                                    
                                                Placeholders:
                                                lang:previous - value of 'prev' from the language file
                                        
                                                Related:
                                                - <tplPaginatePrevious>
                                                - <paginateSplitterCharacter>
                                            */
                                            $tplPaginatePage = isset($tplPaginatePage)? $ditto->template->fetch($tplPaginatePage) : "<a class='ditto_page' href='[+url+]'>[+page+]</a>";
                                            /*
                                                Param: tplPaginatePage
                                    
                                                Purpose:
                                                Template for the page link
                                    
                                                Options:
                                                - Any valid chunk name
                                                - Code via @CODE
                                                - File via @FILE
                                    
                                                Placeholders:
                                                url - url for the page
                                                page - number of the page
                                        
                                                Related:
                                                - <tplPaginatePrevious>
                                                - <paginateSplitterCharacter>
                                            */
                                            $tplPaginateCurrentPage = isset($tplPaginateCurrentPage)? $ditto->template->fetch($tplPaginateCurrentPage) : "<span class='ditto_currentpage'>[+page+]</span>";
                                            /*
                                                Param: tplPaginateCurrentPage
                                    
                                                Purpose:
                                                Template for the current page link
                                    
                                                Options:
                                                - Any valid chunk name
                                                - Code via @CODE
                                                - File via @FILE
                                    
                                                Placeholders:
                                                page - number of the page
                                        
                                                Related:
                                                - <tplPaginatePrevious>
                                                - <paginateSplitterCharacter>
                                            */
                                            
                                            $ditto->paginate($start, $stop, $total, $display, $tplPaginateNext, $tplPaginatePrevious, $tplPaginateNextOff, $tplPaginatePreviousOff, $tplPaginatePage, $tplPaginateCurrentPage, $paginateAlwaysShowLinks, $paginateSplitterCharacter);
                                                // generate the pagination placeholders
                                        }
                                    
                                        $dbFields = $ditto->fields["display"]["db"];
                                            // get the database fields
                                        $TVs = $ditto->fields["display"]["tv"];
                                            // get the TVs
                                        
                                        switch($orderBy['parsed'][0][1]) {
                                            case "DESC":
                                                $stop = ($ditto->prefetch === false) ? $stop + $start + $offset : $stop + $offset; 
                                                $start += $offset;
                                            break;
                                            case "ASC":
                                                $start += $offset;
                                                $stop += $start;
                                            break;
                                        }
                                    
                                        if ($ditto->prefetch !== false) {
                                            $documentIDs = array_slice($documentIDs,$start,$stop);
                                                // set the document IDs equal to the trimmed array
                                            $dbFields = array_diff($dbFields,$ditto->prefetch["fields"]["db"]);
                                                // calculate the difference between the database fields and those already prefetched
                                            $dbFields[] = "id";
                                                // append id to the db fields array
                                            $TVs = array_diff($TVs,$ditto->prefetch["fields"]["tv"]);
                                                // calculate the difference between the tv fields and those already prefetched
                                            $start = 0;
                                            $stop = min($display,($queryLimit != 0) ? $queryLimit : $display,count($documentIDs));
                                        } else {
                                            $queryLimit = ($queryLimit == 0) ? "" : $queryLimit;
                                        }
                                        
                                        $resource = $ditto->getDocuments($documentIDs, $dbFields, $TVs, $orderBy, $showPublishedOnly, 0, $hidePrivate, $where, $queryLimit, $keywords, $randomize, $dateSource);
                                            // retrieves documents
                                        $output = $header;
                                            // initialize the output variable and send the header
                                    
                                        if ($resource) {
                                            if ($randomize != "0" && $randomize != "1") {
                                                $resource = $ditto->weightedRandom($resource,$randomize,$stop);
                                                    // randomize the documents
                                            }
                                            
                                            $resource = array_values($resource);
                                    
                                            for ($x=$start;$x<$stop;$x++) {
                                                $template = $ditto->template->determine($templates,$x,0,$stop,$resource[$x]["id"]);
                                                    // choose the template to use and set the code of that template to the template variable
                                                $renderedOutput = $ditto->render($resource[$x], $template, $removeChunk, $dateSource, $dateFormat, $placeholders,$phx,abs($start-$x));
                                                    // render the output using the correct template, in the correct format and language
                                                $modx->setPlaceholder($dittoID."item[".abs($start-$x)."]",$renderedOutput);
                                                /*
                                                    Placeholder: item[x]
                                    
                                                    Content:
                                                    Individual items rendered output
                                                */
                                                $output .= $renderedOutput;
                                                    // send the rendered output to the buffer
                                            }
                                        } else {
                                            $output .= $ditto->noResults($noResults,$paginate);
                                                // if no documents are found return a no documents found string
                                        }
                                        $output .= $footer;
                                            // send the footer
                                    
                                        // ---------------------------------------------------
                                        // Save Object
                                        // ---------------------------------------------------
                                    
                                        if($save) {
                                            $modx->setPlaceholder($dittoID."ditto_object", $ditto);
                                            $modx->setPlaceholder($dittoID."ditto_resource", ($save == "1") ? array_slice($resource,$display) : $resource);
                                        }
                                    } else {
                                        $output = $header.$ditto->noResults($noResults,$paginate).$footer;
                                    }
                                    // ---------------------------------------------------
                                    // Handle Debugging
                                    // ---------------------------------------------------
                                    
                                    if ($debug == 1) {
                                        $ditto_params =& $modx->event_params;
                                        if (!isset($_GET["ditto_".$dittoID."debug"])) {
                                        $_SESSION["ditto_debug_$dittoID"] = $ditto->debug->render_popup($ditto, $ditto_base, $ditto_version, $ditto_params, $documentIDs, array("db"=>$dbFields,"tv"=>$TVs), $display, $templates, $orderBy, $start, $stop, $total,$filter,$resource);
                                        }
                                        if (isset($_GET["ditto_".$dittoID."debug"])) {
                                            switch ($_GET["ditto_".$dittoID."debug"]) {
                                                case "open" :
                                                    exit($_SESSION["ditto_debug_$dittoID"]);
                                                break;
                                                case "save" :
                                                    $ditto->debug->save($_SESSION["ditto_debug_$dittoID"],"ditto".strtolower($ditto_version)."_debug_doc".$modx->documentIdentifier.".html");
                                                break;
                                            }
                                        } else {
                                            $output = $ditto->debug->render_link($dittoID,$ditto_base).$output;
                                        }
                                    }
                                    
                                    return ($save != 3) ? $output : "";"""
                                  "eform.getfields" => """
                                    if (!function_exists(getfields)) {
                                    
                                    function getfields(&$fields) {
                                    global $modx;
                                    
                                    if (is_array($_GET)) {
                                    foreach ($_GET as $key => $value) {
                                    $fields[$key]=$value;
                                    }
                                    }
                                    
                                    return true;
                                    }
                                    }"""
                                  "eform.report.adf.call" => """
                                    if (!function_exists(adfReport)) {
                                    
                                    function adfReport(&$fields) {
                                    global $modx;
                                    
                                    $message .= $fields['message'] . "\r\n -- Additional Information -- \r\n";
                                    
                                    foreach($fields as $field => $value) {
                                    if (strpos($field, '_class') === false && strpos($field, '_vClass') === false && $field != NULL) {
                                    if(is_array($value)) $value = implode(', ',$value);
                                    $message .= "$field: $value\r\n";
                                    }
                                    } unset($field, $value);
                                    
                                    extract($fields,EXTR_SKIP);
                                    
                                    $vendorname = $modx->getPlaceholder('dealername');
                                    $vendorurl = 'http://' . $_SERVER['HTTP_HOST'];
                                    $vendorcontact = $modx->getPlaceholder('dealername');
                                    $vendoremail = $modx->getPlaceholder('emailgen');
                                    $vendornum = $modx->getPlaceholder('phonegen');
                                    $vendorfax = $modx->getPlaceholder('phonegen');
                                    $vendorstreet = htmlentities($modx->getPlaceholder('dealeraddress'));
                                    $vendorcity = $modx->getPlaceholder('dealercity');
                                    $vendorstate = $modx->getPlaceholder('dealerstate');
                                    $vendorzip = $modx->getPlaceholder('dealerzip');
                                    
                                    $providername = $_SERVER['HTTP_HOST'].': '.$leadpage;
                                    $providerservice = $leadpage;
                                    $providerurl = 'http://www.blusolutions.com';
                                    $provideremail = 'support@blusolutions.com';
                                    $providernum = '866.529.4003';
                                    
                                    // START XML ADF
                                    $output = '';
                                    
                                    $output .= '<?adf version="1.0"?>
                                    <?xml version="1.0" encoding="utf-8"?>
                                    <adf>
                                    <prospect>
                                    <requestdate>' .date('c'). '</requestdate>
                                    ';
                                    
                                    // <vehicle></vehicle>
                                    // if ($usednew || $year || $make || $model) {
                                    $output .='
                                    <vehicle ' . ($tmp=$interest?'interest="'.$interest.'"':'') . ($tmp=$usednew?'status="'.$usednew.'"':'') . '>' . '
                                    ' . '<year>'.$year.'</year>' . '
                                    ' . '<make>'.$make.'</make>' . '
                                    ' . '<model>'.$model.'</model>' . '
                                    ' . ($tmp=$vin?'<vin>'.$vin.'</vin>':'') . '
                                    ' . ($tmp=$stock?'<stock>'.$stock.'</stock>':'') . '
                                    ' . ($tmp=$trim?'<trim>'.$trim.'</trim>':'') . '
                                    ' . ($tmp=$doors?'<doors>'.$doors.'</doors>':'') . '
                                    ' . ($tmp=$bodystyle?'<bodystyle>'.$bodystyle.'</bodystyle>':'') . '
                                    ' . ($tmp=$trans?'<transmission>'.$trans.'</transmission>':'') . '
                                    ' . ($tmp=$miles?'<odometer units="miles">'.$miles.'</odometer>':'');
                                    
                                    if ($ecolor || $icolor)
                                    {
                                    $output .='
                                    <colorcombination>
                                    ' . ($tmp=$ecolor?'<exteriorcolor>'.$ecolor.'</exteriorcolor>':'') . '
                                    ' . ($tmp=$icolor?'<interiorcolor>'.$icolor.'</interiorcolor>':'') . '
                                    </colorcombination>';
                                    }
                                    
                                    $output .='
                                    ' . ($tmp=$price?'<price type="quote" currency="USD">'.$price.'</price>':'') . '
                                    </vehicle>
                                    ';
                                    //}
                                    
                                    
                                    // <customer></customer>
                                    $output .= '
                                    <customer>
                                    <contact>' . '
                                    ' . ($tmp=$name?'<name part="full">'.$name.'</name>':'') . '
                                    ' . ($tmp=$fname?'<name part="first">'.$fname.'</name>':'') . '
                                    ' . ($tmp=$lname?'<name part="last">'.$lname.'</name>':'') . '
                                    ' . ($tmp=$email?'<email '. ($tmp=($pref=='email')?'preferredcontact="1"':'') .'>'.$email.'</email>':'') . '
                                    
                                    ' . ($tmp=$cell?'<phone type="cellphone" time="nopreference" '. ($tmp=($pref=='cell')?'preferredcontact="1"':'') .'>'.$cell.'</phone>':'') . '
                                    ' . ($tmp=$fax?'<phone type="fax" time="nopreference" '. ($tmp=($pref=='fax')?'preferredcontact="1"':'') .'>'.$fax.'</phone>':'') . '
                                    
                                    ' . ($tmp=$phone?'<phone type="voice" time="day" '. ($tmp=($pref=='phone')?'preferredcontact="1"':'') .'>'.$phone.'</phone>':'') . '
                                    ' . ($tmp=$mphone?'<phone type="voice" time="morning" '. ($tmp=($pref=='mphone')?'preferredcontact="1"':'') .'>'.$mphone.'</phone>':'') . '
                                    ' . ($tmp=$ephone?'<phone type="voice" time="evening" '. ($tmp=($pref=='ephone')?'preferredcontact="1"':'') .'>'.$ephone.'</phone>':'');
                                    
                                    if ($street1 || $city || $zip || $state) {
                                    $output .= '
                                    <address type="home">' . '
                                    ' . ($tmp=$street1?'<street line="1">'.$street1.'</street>':'') . '
                                    
                                    ' . ($tmp=$street2?'<street line="2">'.$street2.'</street>':'') . '
                                    ' . ($tmp=$city?'<city>'.$city.'</city>':'') . '
                                    ' . ($tmp=$state?'<regioncode>'.$state.'</regioncode>':'') . '
                                    ' . ($tmp=$zip?'<postalcode>'.$zip.'</postalcode>':'') . '
                                    <country>US</country>
                                    </address>';
                                    }
                                    
                                    if ($timeframe || $earliestdate || $latestdate) {
                                    
                                    //$earliestdate = date('c', strtotime($earliestdate . ' ' . $earliesttime));
                                    //$latestdate = date('c', strtotime($latestdate . ' ' . $latestdate));
                                    if(!$timeframe) {
                                    $timeframe = '1st Date: ' . $earliestdate . ' ' . $earliesttime;
                                    $timeframe .= ' - 2nd Date: ' . $latestdate . ' ' . $latesttime;
                                    $latestdate = '';
                                    $earliestdate = '';
                                    }
                                    
                                    $output .= '
                                    <timeframe>' . '
                                    ' . ($tmp=$timeframe?'<description>'.$timeframe.'</description>':'') . '
                                    ' . ($tmp=$earliestdate?'<earliestdate>'.$earliestdate.'</earliestdate>':'') . '
                                    ' . ($tmp=$latestdate?'<latestdate>'.$latestdate.'</latestdate>':'') . '
                                    </timeframe>';
                                    }
                                    
                                    $output .= '
                                    </contact>' . '
                                    ' . ($tmp=$message?'<comments>'.$message.'</comments>':'') . '
                                    </customer>';
                                    
                                    // <vendor></vendor> & <provider></provider>
                                    $output .= '
                                    <vendor>
                                    <vendorname>'.$vendorname.'</vendorname>
                                    <url>'. $vendorurl .'</url>
                                    <contact primarycontact="1">
                                    <name part="full">' . $vendorcontact . '</name>
                                    <email>' . $vendoremail . '</email>
                                    <phone type="voice" time="evening">'.$vendornum.'</phone>
                                    <phone type="fax" time="evening">'.$vendorfax.'</phone>
                                    <address>
                                    <street line="1">'.$vendorstreet.'</street>
                                    <city>'.$vendorcity.'</city>
                                    <regioncode>'.$vendorstate.'</regioncode>
                                    <postalcode>'.$vendorzip.'</postalcode>
                                    <country>US</country>
                                    </address>
                                    </contact>
                                    </vendor>
                                    
                                    <provider>
                                    <name part="full">'. $providername .'</name>' . '
                                    ' . ($tmp=$providerservice?'<service>'.$providerservice.'</service>':'') . '
                                    <url>'.$providerurl.'</url>
                                    <email>'.$provideremail.'</email>
                                    <phone>'.$providernum.'</phone>
                                    </provider>
                                    
                                    </prospect>
                                    </adf>';
                                    // END XML ADF
                                    
                                    $fields['adfreport'] = $output;
                                    
                                    return true;
                                    }
                                    }"""
                                  "eform.report.html" => """
                                    global $docid;
                                    $output = $modx->runSnippet('GetField', array('docid' => $docid, 'field' => 'eform.report'));
                                    return $output;"""
                                  "eform.report.txt.call" => """
                                    
                                    if (!function_exists(autotxtreport)) {
                                    
                                    function autotxtreport(&$fields) {
                                    global $modx;
                                    
                                    foreach ($fields as $key => $value) {
                                    if (strpos($key, '_class') === false && strpos($key, '_vClass') === false && $key != NULL) {
                                    if(is_array($value)) $value = implode(', ', $value);
                                    $output .= $key . ': ' . $value . "\n";
                                    }
                                    }
                                    
                                    $fields['autoreport'] = $output;
                                    return true;
                                    }
                                    }
                                    """
                                  "eForm" => """
                                    # eForm 1.4.4.6 - Electronic Form Snippet
                                    # Original created by Raymond Irving 15-Dec-2004.
                                    # Version 1.3+ extended by Jelle Jager (TobyL) September 2006
                                    # -----------------------------------------------------
                                    # Captcha image support - thanks to Djamoer
                                    # Multi checkbox, radio, select support - thanks to Djamoer
                                    # Form Parser and extened validation - by Jelle Jager
                                    #
                                    # see eform/docs/eform.htm for history, usage and examples
                                    #
                                    
                                    # Set Snippet Paths
                                    $snipFolder = isset($snipFolder)?$snipFolder:'eform';
                                    $snipPath = $modx->config["base_path"].'assets/snippets/'.$snipFolder.'/';
                                    
                                    
                                    # check if inside manager
                                    if ($modx->isBackend()) {
                                    return ''; # don't go any further when inside manager
                                    }
                                    
                                    //tidying up some casing errors in parameters
                                    if(isset($eformOnValidate)) $eFormOnValidate = $eformOnValidate;
                                    if(isset($eformOnBeforeMailSent)) $eFormOnBeforeMailSent = $eformOnBeforeMailSent;
                                    if(isset($eformOnMailSent)) $eFormOnMailSent = $eformOnMailSent;
                                    if(isset($eformOnValidate)) $eFormOnValidate = $eformOnValidate;
                                    if(isset($eformOnBeforeFormMerge)) $eFormOnBeforeFormMerge = $eformOnBeforeFormMerge;
                                    if(isset($eformOnBeforeFormParse)) $eFormOnBeforeFormParse = $eformOnBeforeFormParse;
                                    //for sottwell :)
                                    if(isset($eFormCSS)) $cssStyle = $eFormCSS;
                                    
                                    # Snippet customize settings
                                    $params = array (
                                       // Snippet Path
                                       'snipPath' => $snipPath, //includes $snipFolder
                                     'snipFolder' => $snipFolder,
                                    
                                    // eForm Params
                                       'vericode' => isset($vericode)? $vericode:"",
                                       'formid' => isset($formid)? $formid:"",
                                       'from' => isset($from)? $from:$modx->config['emailsender'],
                                       'fromname' => isset($fromname)? $fromname:$modx->config['site_name'],
                                       'to' => isset($to)? $to:$modx->config['emailsender'],
                                       'cc' => isset($cc)? $cc:"",
                                       'bcc' => isset($bcc)? $bcc:"",
                                       'subject' => isset($subject)? $subject:"",
                                       'ccsender' => isset($ccsender)?$ccsender:0,
                                       'sendirect' => isset($sendirect)? $sendirect:0,
                                       'mselector' => isset($mailselector)? $mailselector:0,
                                       'mobile' => isset($mobile)? $mobile:'',
                                       'mobiletext' => isset($mobiletext)? $mobiletext:'',
                                       'autosender' => isset($autosender)? $autosender:$from,
                                       'autotext' => isset($automessage)? $automessage:"",
                                       'category' => isset($category)? $category:0,
                                       'keywords' => isset($keywords)? $keywords:"",
                                       'gid' => isset($gotoid)? $gotoid:$modx->documentIdentifier,
                                       'noemail' => isset($noemail)? ($noemail):false,
                                       'saveform' => isset($saveform)? ($saveform? true:false):true,
                                       'tpl' => isset($tpl)? $tpl:"",
                                       'report' => isset($report)? $report:"",
                                       'allowhtml' => isset($allowhtml)? $allowhtml:0,
                                       //Added by JJ
                                       'replyto' => isset($replyto)? $replyto:"",
                                       'language' => isset($language)? $language:$modx->config['manager_language'],
                                       'thankyou' => isset($thankyou)? $thankyou:"",
                                       'isDebug' => isset($debug)? $debug:0,
                                       'reportAbuse' => isset($reportAbuse)? $reportAbuse:false,
                                       'disclaimer' => isset($disclaimer)?$disclaimer:'',
                                       'sendAsHtml' => isset($sendAsHtml)?$sendAsHtml:false,
                                       'sendAsText' => isset($sendAsText)?$sendAsText:false,
                                       'sessionVars' => isset($sessionVars)?$sessionVars:false,
                                       'postOverides' => isset($postOverides)?$postOverides:0,
                                       'eFormOnBeforeMailSent' => isset($eFormOnBeforeMailSent)?$eFormOnBeforeMailSent:'',
                                       'eFormOnMailSent' => isset($eFormOnMailSent)?$eFormOnMailSent:'',
                                       'eFormOnValidate' => isset($eFormOnValidate)?$eFormOnValidate:'',
                                       'eFormOnBeforeFormMerge' => isset($eFormOnBeforeFormMerge)?$eFormOnBeforeFormMerge:'',
                                       'eFormOnBeforeFormParse' => isset($eFormOnBeforeFormParse)?$eFormOnBeforeFormParse:'',
                                       'cssStyle' => isset($cssStyle)?$cssStyle:'',
                                       'jScript' => isset($jScript)?$jScript:'',
                                       'submitLimit' => (isset($submitLimit) &&  is_numeric($submitLimit))?$submitLimit*60:0,
                                       'protectSubmit' => isset($protectSubmit)?$protectSubmit:1,
                                       'requiredClass' => isset($requiredClass)?$requiredClass:"required",
                                       'invalidClass' => isset($invalidClass)?$invalidClass:"invalid",
                                       'runSnippet' => ( isset($runSnippet) && !is_numeric($runSnippet) )?$runSnippet:'',
                                       'autoSenderName' => isset($autoSenderName)?$autoSenderName:'',
                                       'version' => '1.4.4'
                                    );
                                    
                                    // pixelchutes PHx workaround
                                    foreach( $params as $key=>$val ) $params[ $key ] = str_replace( array('((','))'), array('[+','+]'), $val );
                                    
                                    # Start processing
                                    
                                    include_once ($snipPath."eform.inc.php");
                                    
                                    $output = eForm($modx,$params);
                                    
                                    # Return
                                    return $output;"""
                                  "FirstChildRedirect" => """
                                    /*
                                     * @name FirstChildRedirect
                                     * @author Jason Coward <jason@opengeek.com>
                                     * @modified-by Ryan Thrash <ryan@vertexworks.com>
                                     * @license Public Domain
                                     * @version 1.0
                                     * 
                                     * This snippet redirects to the first child document of a folder in which this
                                     * snippet is included within the content (e.g. [!FirstChildRedirect!]).  This
                                     * allows MODx folders to emulate the behavior of real folders since MODx
                                     * usually treats folders as actual documents with their own content.
                                     * 
                                     * Modified to make Doc ID a required parameter... now defaults to the current 
                                     * Page/Folder you call the snippet from.
                                     * 
                                     * &docid=`12` 
                                     * Use the docid parameter to have this snippet redirect to the
                                     * first child document of the specified document.
                                     */
                                    
                                    $docid = (isset($docid))? $docid: $modx->documentIdentifier;
                                    
                                    $children= $modx->getActiveChildren($docid, 'menuindex', 'ASC');
                                    if (!$children === false) {
                                        $firstChild= $children[0];
                                        $firstChildUrl= $modx->makeUrl($firstChild['id']);
                                    } else {
                                        $firstChildUrl= $modx->makeUrl($modx->config['site_start']);
                                    }
                                    return $modx->sendRedirect($firstChildUrl);
                                    """
                                  "form.load.fields" => """
                                    function loadFields (&$fields) {
                                    global $loadedFields;
                                    $loadedFields = $fields;
                                    return true;
                                    }"""
                                  "forms.php" => """
                                    function AttachFilesToMailer(&$mail,&$attachFiles) {
                                    if(count($attachFiles)>0){
                                    foreach($attachFiles as $attachFile){
                                    if(!file_exists($attachFile)) continue;
                                    $FileName = $attachFile;
                                    $contentType = "application/octetstream";
                                    if (is_uploaded_file($attachFile)){
                                    foreach($_FILES as $n => $v){
                                    if($_FILES[$n]['tmp_name']==$attachFile) {
                                    $FileName = $_FILES[$n]['name'];
                                    $contentType = $_FILES[$n]['type'];
                                    }
                                    }
                                    }
                                    $patharray = explode(((strpos($FileName,"/")===false)? "\\":"/"), $FileName);
                                    $FileName = $patharray[count($patharray)-1];
                                    $mail->AddAttachment($attachFile,$FileName,"base64",$contentType);
                                    }
                                    }
                                    }
                                    
                                    // Pull the site settings.
                                    /*
                                    $settingsID = 165;
                                    $siteID = $modx->runSnippet('site_select', array());
                                    $datafield = array('site_leads', 'site_leads_sub1', 'site_leads_sub2', 'domain', 'domain_sub1', 'domain_sub2');
                                    $offset = 3; // total sites
                                    */
                                    
                                    // Get data from the unpublished document. Settings should always remain unpublished.
                                    // $dataArray = $modx->getTemplateVarOutput($datafield,$settingsID,0);
                                    
                                    // setup leads address
                                    $emailaddress = $modx->getPlaceholder('emailsales');
                                    $to = $emailaddress;
                                    //echo $to;
                                    $siteurl = $_SERVER['HTTP_HOST'];
                                    
                                    $tpl = "
                                    <h3>Lead Information</h3>
                                    <p><b>Lead Page: </b><span>Detailed Inventory Page</span></p>
                                    <p><b>Sent To:</b> $to</p>
                                    <hr />
                                    <h3>Contact Information</h3>
                                    <p><b>Name:</b> [+uname+]</p>
                                    <p><b>Email:</b> [+email+]</p>
                                    <p><b>Street:</b> [+address+]</p>
                                    <p><b>City:</b> [+city+]</p>
                                    <p><b>State:</b> [+state+]</p>
                                    <p><b>Zip:</b> [+zip+]</p>
                                    <p><b>Phone:</b> [+phone+]</p>
                                    <hr />
                                    <h3>Comments</h3>
                                    <p>[+comments+]</p>
                                    <hr />
                                    <h3>Vehicle Information</h3>
                                    <p><b>Year:</b> [+year+]</p>
                                    <p><b>Make:</b> [+make+]</p>
                                    <p><b>Model:</b> [+model+]</p>
                                    <p><b>Vin:</b> [+vehicleVin+]</p>
                                    <p><b>Stock #:</b> [+stocknum+]</p>
                                    <p><b>Color:</b> [+extColor+]</p>
                                    ";
                                    
                                    // which form did this come from?
                                    $form = $_GET['form'];
                                    
                                    switch ($form) {
                                    
                                    case 'quote':
                                    $adf = false; // stop it from sending the attachment
                                    // $tpl = $_POST['mail_format'];
                                    foreach ($_POST as $key => $data) {
                                    $search[] =  '[+'.$key.'+]';
                                    $replace[] = htmlentities(trim($data), ENT_QUOTES);
                                    }
                                    $attachment = ''; // don't send attachment. causes duplication.
                                    $report =str_replace($search, $replace, $tpl);
                                    $subject = 'Vehicle Details Contact Page';
                                    $redirect = "Location: http://" . $siteurl . '/inventory.html?list=details&vehicle_id='.$_POST['stocknum'].'&message=success';
                                    break;
                                    
                                    default:
                                    echo 'default';
                                    break;
                                    }
                                    
                                    //echo $report;
                                    
                                    include_once "manager/includes/controls/class.phpmailer.php";
                                    //$to = $_POST['email'];
                                    $mail = new PHPMailer();
                                    $mail->IsMail();
                                    $mail->CharSet = $modx->config['modx_charset'];
                                    $mail->IsHTML(true);
                                    $mail->From= 'noreply@jimbutlercars.com';
                                    $mail->FromName= 'Jim Butler South County Auto Center';
                                    $mail->Subject= $subject;
                                    $mail->Body = $report;
                                    //AddAddressToMailer($mail,"replyto",$replyto);
                                    $mail->AddAddress($to);
                                    //$mail->AddAddress('jcox@blusolutions.com');
                                    //AddAddressToMailer($mail,"cc",$cc);
                                    //AddAddressToMailer($mail,"bcc",$bcc);
                                    //AttachFilesToMailer($mail,$attachments);
                                    if($adf && $attachment) {$mail->AddStringAttachment($attachment,'adf.xml','8bit','application/xml');}
                                    if(!$mail->send()) {
                                    echo 'error';
                                    } else {
                                    header($redirect);
                                    }
                                    """
                                  "GET" => """
                                    $output = '';
                                    
                                    $get = $_GET[$param];
                                    
                                    if ($text !== NULL && $get !== NULL) {
                                    $output .= str_replace('(+var+)', $get, $text);
                                    } else {
                                    $output .= $get;
                                    }
                                    
                                    return $output;"""
                                  "GetField" => """
                                    /*
                                    ==================================================
                                    GetField
                                    ==================================================
                                    
                                    Returns any document field or template variable from any document or any of its parents.
                                    
                                    Author: Grzegorz Adamiak [grad]
                                    Version: 1.3 beta @2006-11-08 14:40:04
                                    License: LGPL
                                    MODx: 0.9.2.1+
                                    
                                    See GetField.txt for instructions and version history.
                                    --------------------------------------------------
                                    */
                                    
                                    /* Parameters
                                    ----------------------------------------------- */
                                    
                                    # $docid [ int ]
                                    # ID of the document for which to get a field content.
                                    # Default: current document
                                    
                                    $gfIntDocId = (isset($docid)) ? $docid : $modx->documentIdentifier;
                                    
                                    # $field [ string ]
                                    # Name of the field for which to get the content:
                                    # - any of the document object fields (http://modxcms.com/the-document-object.html)
                                    # - template variable
                                    # Default: 'pagetitle'
                                    
                                    $gfStrDocField = (isset($field)) ? trim($field) : 'pagetitle';
                                    
                                    # $parent [ 0 | 1 ]
                                    # If set to 1, the snippet will return value for the document parent.
                                    # Default: 0
                                    
                                    $gfBoolParent = (isset($parent)) ? $parent : 0;
                                    
                                    # $parentLevel [ int ]
                                    # Specifies how high in the document tree to search for the parent of the document:
                                    # - $parentLevel = 0 - returns the ultimate parent (right under site root)
                                    # - $parentLevel = 1 - returns the direct parent
                                    # Default: 0
                                    
                                    $gfIntParentLevel = (isset($parentLevel) && is_int((int) $parentLevel)) ? $parentLevel : 0;
                                    
                                    # $topid [ int ]
                                    # Id of the topmost document in the document tree under which to search for a parent. Used only with $parent set to 1.
                                    # Default: 0
                                    
                                    $gfIntTopDocId = (isset($topid) && is_int((int) $topid)) ? $topid : 0;
                                    
                                    /* Do not edit the code below!
                                    ----------------------------------------------- */
                                    
                                    # Include logic
                                    include_once('assets/snippets/getfield/getfield.inc.php');
                                    
                                    # Get parent document ID
                                    if ($gfBoolParent)
                                    $gfIntDocId = gfGetParentId($modx, $gfIntDocId, $gfIntTopDocId, $gfIntParentLevel);
                                    
                                    # Get content of the field
                                    $output = gfGetFieldContent($modx,$gfIntDocId,$gfStrDocField);
                                    
                                    unset($gfIntDocId, $gfStrDocField, $gfBoolParent, $gfIntParentLevel, $gfIntTopDocId);
                                    
                                    return $output;"""
                                  "Jot" => """
                                    /*####
                                    #
                                    # Author: Armand "bS" Pondman (apondman@zerobarrier.nl)
                                    #
                                    # Latest Version: http://modxcms.com/Jot-998.html
                                    # Jot Demo Site: http://projects.zerobarrier.nl/modx/
                                    # Documentation: http://wiki.modxcms.com/index.php/Jot (wiki)
                                    #
                                    ####*/
                                    
                                    $jotPath = $modx->config['base_path'] . 'assets/snippets/jot/';
                                    include_once($jotPath.'jot.class.inc.php');
                                    
                                    $Jot = new CJot;
                                    $Jot->VersionCheck("1.1.4");
                                    $Jot->Set("path",$jotPath);
                                    $Jot->Set("action", $action);
                                    $Jot->Set("postdelay", $postdelay);
                                    $Jot->Set("docid", $docid);
                                    $Jot->Set("tagid", $tagid);
                                    $Jot->Set("subscribe", $subscribe);
                                    $Jot->Set("moderated", $moderated);
                                    $Jot->Set("captcha", $captcha);
                                    $Jot->Set("badwords", $badwords);
                                    $Jot->Set("bw", $bw);
                                    $Jot->Set("sortby", $sortby);
                                    $Jot->Set("numdir", $numdir);
                                    $Jot->Set("customfields", $customfields);
                                    $Jot->Set("guestname", $guestname);
                                    $Jot->Set("canpost", $canpost);
                                    $Jot->Set("canview", $canview);
                                    $Jot->Set("canedit", $canedit);
                                    $Jot->Set("canmoderate", $canmoderate);
                                    $Jot->Set("trusted", $trusted);
                                    $Jot->Set("pagination", $pagination);
                                    $Jot->Set("placeholders", $placeholders);
                                    $Jot->Set("subjectSubscribe", $subjectSubscribe);
                                    $Jot->Set("subjectModerate", $subjectModerate);
                                    $Jot->Set("subjectAuthor", $subjectAuthor);
                                    $Jot->Set("notify", $notify);
                                    $Jot->Set("notifyAuthor", $notifyAuthor);
                                    $Jot->Set("validate", $validate);
                                    $Jot->Set("title", $title);
                                    $Jot->Set("authorid", $authorid);
                                    $Jot->Set("css", $css);
                                    $Jot->Set("cssFile", $cssFile);
                                    $Jot->Set("cssRowAlt", $cssRowAlt);
                                    $Jot->Set("cssRowMe", $cssRowMe);
                                    $Jot->Set("cssRowAuthor", $cssRowAuthor);
                                    $Jot->Set("tplForm", $tplForm);
                                    $Jot->Set("tplComments", $tplComments);
                                    $Jot->Set("tplModerate", $tplModerate);
                                    $Jot->Set("tplNav", $tplNav);
                                    $Jot->Set("tplNotify", $tplNotify);
                                    $Jot->Set("tplNotifyModerator", $tplNotifyModerator);
                                    $Jot->Set("tplNotifyAuthor", $tplNotifyAuthor);
                                    $Jot->Set("tplSubscribe", $tplSubscribe);
                                    $Jot->Set("debug", $debug);
                                    $Jot->Set("output", $output);
                                    return $Jot->Run();"""
                                  "ListIndexer" => """
                                    // added in 1.0.1: hidePrivate (hide items from unauthorized users)
                                    //
                                    // Derived from ListIndex 0.6j by jaredc@honeydewdesign.com
                                    // Now supports Show In Menu
                                    //
                                    // This snippet was designed to be a VERY flexible way
                                    // of showing what has been recently added. You can use
                                    // this snippet to show news from one folder, or what has
                                    // been recently added site wide. You can even show what's
                                    // new in a 'section' (everything under a defined folder)!
                                    
                                    // Configuration Settings
                                    
                                       // Set the following snippet defaults the way you would normally
                                       // use this snippet, then use snippet variables in other situations
                                       // to override the default behaviors.
                                    
                                       // GENERAL OPTIONS
                                    
                                       // $rootFolder [ NULL | string (comma separated page id's) ]
                                       // Decide which folder to pull recent documents from.
                                       // If you want to specify a few folders, comma separate them.
                                       // The default NULL will set current page as root. Using 0
                                       // would search site wide. Can be set with snippet parameter
                                       // $LIn_root like:
                                       // [[ListIndexer?LIn_root=3,6,88]] 
                                       $rootFolder = NULL;
                                    
                                       // $descendentDepth [ int ]
                                       // How many levels below the root folder(s) do you want to
                                       // include? Can be overridden in snippet call with LIn_depth:
                                       // [[ListIndexer?LIn_depth=2]]
                                       // Uncomment one of these common two or create your own:
                                       // $descendentDepth = 1; // just children of root folder(s)
                                       $descendentDepth = 0; // all decendents of root folder(s)
                                    
                                       // $seeThruUnpub [ true | false ]
                                       // When using descendents, do you want to consider files below
                                       // an unpublished (hidden) folder? Usually no. But you decide.
                                       // Snippet parameter: LIn_seeThru
                                       // [[ListIndexer?LIn_seeThru=1]]
                                       $seeThruUnpub = false;
                                    
                                       // $seeShowInMenu [ true | false ]
                                       // When using descendents, do you want to consider files flagged
                                       // to be hidden from the menus? Usually no. But you decide.
                                       // Snippet parameter: LIn_seeShowInMenu
                                       // [[ListIndexer?LIn_seeShowInMenu=1]]
                                       $seeShowInMenu = false;
                                       
                                       // $hidePrivate [ true | false ]
                                       // Hide items from users that don't have appropriate
                                       // rights to view. Usually true. But you decide.
                                       // Snippet parameter: LIn_hidePrivate
                                       // [[ListIndexer?LIn_hidePrivate=0]]
                                       $hidePrivate = true;
                                    
                                       // $mode [ 'short' | 'full' ]
                                       // Defines whether this list should be a full, paged
                                       // list of all documents, or a short list of the most
                                       // recent few (how many will be defined next). Can be
                                       // overridden in snippet call with $LIn_mode:
                                       // [[ListIndexer?LIn_mode=full]]
                                       $mode = 'short';
                                       
                                       // $sortBy [ 'alpha' | 'date' | 'menuindex' ]
                                       // The default date will sort by most recent items first, but
                                       // by using the 'alpha' option, and using full mode, you could
                                       // use this to create an index, or directory.
                                       // Settable with snippet call $LIn_sort:
                                       // [[ListIndexer?LIn_sort=alpha]]
                                       $sortBy = 'date';
                                       
                                       // $sortDir [ 'ASC' | 'DESC' ]
                                       // Sort direction ascending or descending. Is applied to whatever $sortBy
                                       // field you have chosen above. If left blank, menuindex and alpha will sort
                                       // ASC and date DESC.
                                       // $LIn_dir in snippet call:
                                       // [[ListIndexer?LIn_dir=ASC&LIn_sortBy=menuindex]]
                                       $sortDir = '';
                                    
                                       // WHAT TO DISPLAY
                                    
                                       // $defaultTitle [ string ]
                                       // If you want a default title for your list
                                       // you can declare it here. Or use an empty
                                       // string to leave this off. This can be overridden
                                       // in the snippet call with the variable $LIn_title:
                                       // [[ListIndexer?LIn_title=Some new title]]
                                       $defaultTitle = '';
                                    
                                       // $shortDesc [ true | false ]
                                       // Show the description on the short list, or not. Snippet
                                       // parameter $LIn_sDesc:
                                       // [[ListIndexer?LIn_sDesc=0]]
                                       $shortDesc = true;
                                    
                                       // $fullDesc [ true | false ]
                                       // Show the description on the full list, or not. Snippet
                                       // parameter $LIn_fDesc:
                                       // [[ListIndexer?LIn_fDesc=0]]
                                       $fullDesc = true;
                                    
                                       // $linkToIndex [ int ]
                                       // If you have a page set up as an 'index' for all the 
                                       // documents in this list, you can link to it by specifying 
                                       // its id- can also be set in snippet call with LIn_link:
                                       // [[ListIndexer?LIn_link=8]]
                                       // The default 0 will eliminate this link
                                       $linkToIndex = 0;
                                    
                                       // $indexText [ string ]
                                       // If you want a link to an index (probably a page running this
                                       // snippet in "full" mode), you can declare what you want that
                                       // link to say here. Or in the snippet call with LIn_indexText:
                                       // [[ListIndexer?LIn_indexText=Financial News Index]]
                                       $indexText = 'Index';
                                    
                                       // $showCreationDate [ true | false ]
                                       // Decide to include date of creation in output or not. From
                                       // snippet call $LIn_showDate use 1 (true) or 0 (false)
                                       // [[ListIndexer?LIn_showDate=1]]
                                       $showCreationDate = true;
                                    
                                       // $dateFormat [ string ]
                                       // Used to define how date will be displayed (if using date)
                                       // Y = 4 digit year     y = 2 digit year
                                       // M = Jan - Dec        m = 01 - 12
                                       // D = Sun - Sat        d = 01 -31
                                       // Other standard PHP characters may be used
                                       $dateFormat = 'Y.m.d';
                                    
                                       // $shortQty [ int ]
                                       // Number of entries to list in the short list. Can be
                                       // overridden in snippet call with $LIn_sQty:
                                       //[[ListIndexer?LIn_sQty=3]]
                                       $shortQty = 3;
                                    
                                       // PAGING
                                    
                                       // $fullQty [ int ]
                                       // Number of entries PER PAGE to list in the full list
                                       // Can be overridden in snippet call with $LIn_fQty:
                                       // [[ListIndexer?LIn_fQty=20]]
                                       // To show all set to 0 here or in snippet call
                                       $fullQty = 10;
                                       
                                       // $pageSeparator [ string ]
                                       // What you want your page number links to be separated by.
                                       // You NEED to include spaces if you want them. They are NOT
                                       // created automatically to facilitate styling ability.
                                       // For instance, " | " will render links like:
                                       // 1 | 2 | 3 | 4
                                       $pageSeparator = " | ";
                                       
                                       // $pgPosition [ 'top' | 'bottom' | 'both']
                                       // Pick where you want your pagination links to appear.
                                       $pgPosition = 'both';
                                    
                                       // PERFORMANCE
                                    
                                       // $useFastUrls [ true | false ]
                                       // IMPORTANT- using fast urls will reduce database queries
                                       // and improve performance WHEN IN FULL MODE ONLY and 
                                       // should NOT be used when multiple instances of this snippet
                                       // appear on the same page. With snippet call LIn_fast use 1
                                       // (true) or 0 (false)
                                       // [[ListIndexer?LIn_fast=0]]
                                       $useFastUrls = false;
                                    
                                       // $newLinesForLists [ true | false ]
                                       // Depending on how you want to style your list, you may
                                       // or may not want your <li>s on new lines. Generally, if you
                                       // are displaying then inline (horizontal, you do not want new
                                       // lines, but standard vertical block styling you do. This is
                                       // for IE, real browsers don't care.
                                       $newLinesForLists = true;
                                    
                                    // Styles
                                    //
                                    // The following are the styles included in this snippet. It is up
                                    // to you to include these styles in your stylesheet to get them to
                                    // look the way you want.
                                    
                                       // div.LIn_title {}          List title div
                                       // ul.LIn_fullMode {}        UL class
                                       // ul.LIn_shortMode {}       UL class
                                       // span.LIn_date {}          Span surrounding pub/created date
                                       // span.LIn_desc {}          Span surrounding description
                                       // div.LIn_pagination        Div surrounding pagination links
                                       // span.LIn_currentPage {}   Span surrounding current page of
                                       //                           pagination (which wouldn't be css-able
                                       //                           by virtue of its <a> tag)
                                    
                                    
                                    // **********************************************************************
                                    // END CONFIG SETTINGS
                                    // THE REST SHOULD TAKE CARE OF ITSELF
                                    // **********************************************************************
                                    
                                    // Take care of IE list issue
                                    $ie = ($newLinesForLists)? "\n" : '' ;
                                    
                                    // Use snippet call defined variables if set
                                    $activeTitle = (isset($LIn_title))? $LIn_title : $defaultTitle ;
                                    $mode = (isset($LIn_mode))? $LIn_mode : $mode ;
                                    $descendentDepth = (isset($LIn_depth))? $LIn_depth : $descendentDepth ;
                                    $seeThruUnpub = (isset($LIn_seeThru))? $LIn_seeThru : $seeThruUnpub ;
                                    $seeShowInMenu = (isset($LIn_seeShowInMenu))? $LIn_seeShowInMenu : $seeShowInMenu ;
                                    $hidePrivate = (isset($LIn_hidePrivate))? $LIn_hidePrivate : $hidePrivate;
                                    $linkToIndex = (isset($LIn_link))? $LIn_link : $linkToIndex ;
                                    $rootFolder = (isset($LIn_root))? $LIn_root : $rootFolder ;
                                    $shortQty = (isset($LIn_sQty))? $LIn_sQty : $shortQty ;
                                    $fullQty = (isset($LIn_fQty))? $LIn_fQty : $fullQty ;
                                    $showCreationDate = (isset($LIn_showDate))? $LIn_showDate : $showCreationDate ;
                                    $indexText = (isset($LIn_indexText))? $LIn_indexText : $indexText ;
                                    $useFastUrls = (isset($LIn_fast))? $LIn_fast : $useFastUrls ;
                                    $sortBy = (isset($LIn_sort))? $LIn_sort : $sortBy;
                                    $shortDesc = (isset($LIn_sDesc))? $LIn_sDesc : $shortDesc ;
                                    $fullDesc = (isset($LIn_fDesc))? $LIn_fDesc : $fullDesc ;
                                    $sortDir = (isset($LIn_dir))? $LIn_dir : $sortDir ;
                                    if ($sortDir == '') $sortDir = ($sortBy == 'date')? 'DESC' : 'ASC' ;
                                    
                                    
                                    // Make useful variable shortcut for the content table
                                    //$tbl = $modx->dbConfig['dbase'] . "." . $modx->dbConfig['table_prefix'] . "site_content";
                                    $tblsc = $modx->getFullTableName("site_content");
                                    $tbldg = $modx->getFullTableName("document_groups");
                                    
                                    // Initialize output
                                    $output = '';
                                    
                                    // ---------------------------------------------------
                                    // ---------------------------------------------------
                                    // Query db for parent folders, or not. First check to
                                    // see if a querystring cheat has been provided- this
                                    // should speed things up considerably when using this
                                    // in full mode. (a.k.a. fastUrls)
                                    // ---------------------------------------------------
                                    // ---------------------------------------------------
                                    $inFolder= isset($_GET['LIn_f'])? $_GET['LIn_f']: 0;
                                    if ((!$inFolder && $useFastUrls) || !$useFastUrls ){
                                      // Only run all the database queries if we don't already
                                      // know the folders AND fastUrls are desired.
                                    
                                      // ---------------------------------------------------
                                      // Seed list of viable parents
                                      // ---------------------------------------------------
                                    
                                      if ($rootFolder == NULL){
                                        $rootFolder = $modx->documentIdentifier;
                                      }
                                      // Set root level parent array
                                      $seedArray = explode(',',$rootFolder);
                                      $parentsArray = array();
                                      foreach($seedArray AS $seed){
                                        $parentsArray['level_0'][] = $seed;
                                      }
                                    
                                      // ---------------------------------------------------
                                      // Make array of all allowed parents
                                      // ---------------------------------------------------
                                    
                                      // Process valid parents
                                      $levelCounter = 1;
                                    
                                      while (((count($parentsArray) < $descendentDepth) || ($descendentDepth == 0)) && ($levelCounter <= count($parentsArray)) && ($levelCounter < 10)){
                                    
                                        // Find all decendant parents for this level
                                        $pLevel = 'level_'.($levelCounter - 1);
                                        $tempLevelArray = $parentsArray[$pLevel];
                                    
                                        foreach($tempLevelArray AS $p){
                                    
                                          // Get children who are parents (isfolder = 1)
                                          $validParentSql = "";
                                          $validParentSql .= "SELECT id FROM $tblsc sc WHERE ";
                                          $validParentSql .= "isfolder = 1 AND parent = $p ";
                                          $validParentSql .= "AND sc.deleted=0 ";
                                          $validParentSql .= ($seeThruUnpub)? ";" : "AND sc.published = 1;";
                                    
                                          // Run statement
                                          $rsTempParents = $modx->dbQuery($validParentSql);
                                          // Get number of results
                                          $countTempParents = $modx->recordCount($rsTempParents);
                                    
                                          // If there are results, put them in an array
                                          $tempValidArray = false;
                                          if ($countTempParents){
                                            for ($i=0;$i<$countTempParents;$i++){
                                              $tempId = $modx->fetchRow($rsTempParents);
                                              $tempValidArray[] = $tempId['id'];
                                            } // end while
                                          } // end if
                                    
                                      // populate next level of array 
                                      if ($tempValidArray){
                                        foreach($tempValidArray AS $kid){
                                          $kidLevel = 'level_'.$levelCounter;
                                          $parentsArray[$kidLevel][] = $kid;
                                        } // end foreach
                                    
                                      } // end if
                                        } // end foreach
                                    
                                        // Do next level
                                        $levelCounter++;
                                    
                                      } // end while
                                    
                                      // Finalize list of parents
                                      $validParents = '';
                                      foreach ($parentsArray AS $level){
                                        foreach ($level AS $validP){
                                          $validParents .= $validP . ',';
                                        }
                                      }
                                    
                                      // Remove trailing comma
                                      $validParents = substr($validParents,0,strlen($validParents)-1);
                                    
                                    } else {
                                      $validParents = $_GET['LIn_f'];
                                    }
                                    
                                    // ---------------------------------------------------
                                    // Make appropriate SQL statement to pull recent items
                                    // ---------------------------------------------------
                                    
                                    // get document groups for current user
                                    if($docgrp = $modx->getUserDocGroups()) $docgrp = implode(",",$docgrp);
                                    
                                    $access = " (".($modx->isFrontend() ? "sc.privateweb=0":"1='".$_SESSION['mgrRole']."' OR sc.privatemgr=0").
                                              (!$docgrp ? "":" OR dg.document_group IN ($docgrp)").") AND ";
                                    
                                    // Initialize
                                    $recentSql = "";
                                    $recentSql .= "SELECT sc.id, pagetitle, description";
                                    // Include pub_date or createdon date if date is desired
                                    $recentSql .= ($showCreationDate)? ", IF(pub_date > 0, pub_date, createdon) AS pubDate ": " " ;
                                    $recentSql .= "FROM $tblsc sc LEFT JOIN $tbldg dg on dg.document = sc.id ";
                                    $recentSql .= "WHERE ";
                                    $recentSql .= ($hidePrivate)? $access:"";
                                    // Look everywhere, or just under valid parents
                                    $recentSql .= (($rootFolder == 0) && $seeThruUnpub && ($descendentDepth == 0))? "" : "parent IN ($validParents) AND " ;
                                    // Published
                                    $recentSql .= "sc.published = 1 ";
                                    // Show In Menu
                                    $recentSql .= ($seeShowInMenu)? " " : " AND sc.hidemenu=0 " ;
                                    // Not deleted
                                    $recentSql .= "AND sc.deleted=0 ";
                                    // Choose sort method
                                    switch ($sortBy){
                                      case 'alpha':
                                        $recentSql .= "ORDER BY pagetitle ";
                                        break;
                                      case 'menuindex':
                                        $recentSql .= "ORDER BY menuindex ";
                                        break;
                                      default:
                                        $recentSql .= "ORDER BY IF(pub_date>0, pub_date, createdon) ";
                                        break;
                                    }
                                    // Provide a sort direction
                                    $recentSql .= $sortDir;
                                    
                                    // If this is a short list, just pull a limited number
                                    $recentSql .= ($mode == 'short')? " LIMIT $shortQty;" : ";" ;
                                    
                                    // Run statement
                                    $rsRecent = $modx->dbQuery($recentSql);
                                    // Count records
                                    $recentLimit = $modx->recordCount($rsRecent);
                                    
                                    // ---------------------------------------------------
                                    // Generate pagination string if needed
                                    // ---------------------------------------------------
                                    $offsetParam = isset($_GET['LIn_o'])? $_GET['LIn_o']: 0;
                                    $offset = ($offsetParam && ($mode == 'full'))? $offsetParam : 0 ;
                                    $pagination = '';
                                    
                                    // Don't bother unless there are enough records to justify it
                                    if ( ($mode == 'full') && ($recentLimit > $fullQty) && ($fullQty) ){
                                      $fullUrl = $_SERVER['REQUEST_URI'];
                                      $urlPieces = parse_url($fullUrl);
                                      $urlPath = $urlPieces['path'];
                                      $otherQs = '';
                                    
                                      if ($urlPieces['query']){
                                        foreach($_GET AS $qsKey=>$qsValue){
                                      if (($qsKey != 'LIn_o') && ($qsKey != 'LIn_f')){
                                        $otherQs .= '&'.$qsKey.'='.$qsValue;
                                      }
                                    }
                                      } 
                                      
                                      $fastUrl = $urlPath.'?LIn_f='.$validParents.$otherQs;
                                    
                                      // Determine number of pages needed to show results
                                      $totalPages = ceil($recentLimit/$fullQty);
                                      
                                      // Make links
                                      for ($j = 0 ; $j < $totalPages; $j++){
                                        // only include links to OTHER pages, not current page
                                        if($offset == $j*$fullQty){
                                      $pagination .= '<span class="LIn_currentPage">'.($j+1) .'</span>';
                                    } else {
                                          $pagination .= '<a href="'.$fastUrl.'&LIn_o='.($j*$fullQty).'" title="'.($j+1).'">'.($j+1) .'</a>';
                                    }
                                    if ($j < $totalPages-1){
                                      $pagination .= $pageSeparator;
                                    }
                                      }
                                      
                                      // Make final pagination link set in it's own div
                                      $pagination = '<div class="LIn_pagination">'."\n".$pagination."\n</div>\n";
                                      
                                    }
                                    
                                    
                                    // ---------------------------------------------------
                                    // Create title if wanted
                                    // ---------------------------------------------------
                                    
                                    if ($activeTitle){
                                      $output .= '<div class="LIn_title">'.$activeTitle.'</div>'."\n";
                                    }
                                    
                                    // ---------------------------------------------------
                                    // Create list of recent items
                                    // ---------------------------------------------------
                                    
                                    // Include pagination
                                    $output .= ($pgPosition == 'top' || $pgPosition == 'both')? $pagination : '' ;
                                    
                                    $output .= '<ul class="LIn_'.$mode.'Mode">' . $ie;
                                    
                                    $recentCounter = $offset;
                                    if ($mode == 'short') {
                                      $recentCounterLimit = min($shortQty,$recentLimit);
                                    } else {
                                      $recentCounterLimit = ($fullQty)? min(($fullQty+$offset),$recentLimit) : $recentLimit ;
                                    }
                                    
                                    while (($recentCounter < $recentCounterLimit) && $rsRecent && ($recentLimit > 0)){
                                      mysql_data_seek($rsRecent,$recentCounter);
                                      $recentRecord = $modx->fetchRow($rsRecent);
                                      $output .= '<li>';
                                      // Link to page
                                      $output .= '<a href="[~'.$recentRecord['id'].'~]" title="'.strip_tags($recentRecord['pagetitle']).'">'.$recentRecord['pagetitle'].'</a> ';
                                      // Date if desired
                                      if ($showCreationDate){
                                        $output .= '<span class="LIn_date">'.date($dateFormat,$recentRecord['pubDate']).'</span> ';
                                      }
                                      // Description if desired
                                      if ((($mode == 'short') && ($shortDesc)) || (($mode == 'full') && ($fullDesc))){
                                       $output .= '<span class="LIn_desc">'.$recentRecord['description'].'</span>';
                                      }
                                      // wrap it up
                                      $output .= '</li>' . $ie;
                                      $recentCounter ++;
                                    }
                                    
                                    $output .= '</ul>' . $ie;
                                    
                                    $output .= ($pgPosition == 'bottom' || $pgPosition == 'both')? $pagination : '' ;
                                    
                                    // ---------------------------------------------------
                                    // Link to index
                                    // ---------------------------------------------------
                                    
                                    if ($linkToIndex) {
                                    
                                      $output .= '<div class="LIn_index">';
                                      $output .= '<a href="[~'.$linkToIndex.'~]" title="'.$indexText.'">'.$indexText.'</a>';
                                      $output .= '</div>';
                                    
                                    }
                                    
                                    // ---------------------------------------------------
                                    // Send to browser
                                    // ---------------------------------------------------
                                    
                                    return $output;"""
                                  "MemberCheck" => """
                                    #::::::::::::::::::::::::::::::::::::::::
                                    # Version: 1.0
                                    # Created By Ryan Thrash (vertexworks.com)
                                    # Sanitized By Jason Coward (opengeek.com)
                                    #
                                    # Date: November 29, 2005
                                    #
                                    # Changelog: 
                                    # Nov 29, 05 -- initial release
                                    # Jul 13, 06 -- adjusted Singleton to work under PHP4, added placeholder code (by: garryn)
                                    #
                                    #::::::::::::::::::::::::::::::::::::::::
                                    # Description: 
                                    #Checks to see if users belong to a certain group and 
                                    #displays the specified chunk if they do. Performs several
                                    #sanity checks and allows to be used multiple times on a page.
                                    #
                                    # Params:
                                    #&groups [array] (REQUIRED)
                                    #array of webuser group-names to check against
                                    #
                                    #&chunk [string] (REQUIRED)
                                    #name of the chunk to use if passes the check
                                    #
                                    #&ph [string] (optional)
                                    #name of the placeholder to set instead of directly retuning chunk
                                    #
                                    #&debug [boolean] (optional | false) 
                                    #turn on debug mode for extra troubleshooting
                                    #
                                    # Example Usage:
                                    #
                                    #[[MemberCheck? &groups=`siteadmin, registered users` &chunk=`privateSiteNav` &ph=`MemberMenu` &debug=`true`]]
                                    #
                                    #This would place the 'members-only' navigation store in the chunk 'privateSiteNav'
                                    #into a placeholder (called 'MemberMenu'). It will only do this as long as the user 
                                    #is logged in as a webuser and is a member of the 'siteadmin' or the 'registered users'
                                    #groups. The optional debug parameter can be used to display informative error messages 
                                    #when configuring this snippet for your site. For example, if the developer had 
                                    #mistakenly typed 'siteowners' for the first group, and none existed with debug mode on, 
                                    #it would have returned the error message: The group siteowners could not be found....
                                    #
                                    #::::::::::::::::::::::::::::::::::::::::
                                    
                                    # debug parameter
                                    $debug = isset ($debug) ? $debug : false;
                                    
                                    # check if inside manager
                                    if ($m = $modx->insideManager()) {
                                    return ''; # don't go any further when inside manager
                                    }
                                    
                                    if (!isset ($groups)) {
                                    return $debug ? '<p>Error: No Group Specified</p>' : '';
                                    }
                                    
                                    if (!isset ($chunk)) {
                                    return $debug ? '<p>Error: No Chunk Specified</p>' : '';
                                    }
                                    
                                    # turn comma-delimited list of groups into an array
                                    $groups = explode(',', $groups);
                                    
                                    if (!class_exists('MemberCheck')) {
                                    class MemberCheck {
                                    var $allGroups = NULL;
                                    var $debug;
                                    
                                    function getInstance($debug) {
                                    static $instance;
                                    if (!isset ($instance)) {
                                    $instance = new MemberCheck($debug);
                                    }
                                    return $instance;
                                    }
                                    
                                    function MemberCheck($debug = false) {
                                    global $modx;
                                    
                                    $this->debug = $debug;
                                    if ($debug) {
                                    $this->allGroups = array ();
                                    $tableName = $modx->getFullTableName('webgroup_names');
                                    $sql = "SELECT name FROM $tableName";
                                    if ($rs = $modx->db->query($sql)) {
                                    while ($row = $modx->db->getRow($rs)) {
                                    array_push($this->allGroups, stripslashes($row['name']));
                                    }
                                    }
                                    }
                                    }
                                    
                                    function isValidGroup($groupName) {
                                    $isValid = !(array_search($groupName, $this->allGroups) === false);
                                    return $isValid;
                                    }
                                    
                                    function getMemberChunk(& $groups, $chunk) {
                                    global $modx;
                                    $o = '';
                                    if (is_array($groups)) {
                                    for ($i = 0; $i < count($groups); $i++) {
                                    $groups[$i] = trim($groups[$i]);
                                    if ($this->debug) {
                                    if (!$this->isValidGroup($groups[$i])) {
                                    return "<p>The group <strong>" . $groups[$i] . "</strong> could not be found...</p>";
                                    }
                                    }
                                    }
                                    
                                    $check = $modx->isMemberOfWebGroup($groups);
                                    
                                    $chunkcheck = $modx->getChunk($chunk);
                                    
                                    $o .= ($check && $chunkcheck) ? $chunkcheck : '';
                                    if (!$chunkcheck)
                                    $o .= $this->debug ? "<p>The chunk <strong>$chunk</strong> not found...</p>" : '';
                                    } else {
                                    $o .= "<p>No valid group names were specified!</p>";