<?php if($showThumbnail):?>
<div class="jrListingThumbnail jrListingWein">
<?php // Neu #####################################################################?>
<?php // Ribbon Portrait
if (in_array('portrait', $CustomFields->fieldValue('jr_winzerbesonderheiten',$listing))): ?>
<div class="_ribbon _ribbon-portrait"></div>
<?php endif; ?>
<?php echo $Routes->content($mainMediaThumb,$listing,['data-map-lookup'=>1,'data-listing-id'=>$listing['Listing']['listing_id']]);?>
<?php if($showThumbnail):?>
<div class="jrListingThumbnail jrListingWein">
<?php // Neu #####################################################################?>
<?php // Ribbon Portrait
if (in_array('portrait', $CustomFields->fieldValue('jr_winzerbesonderheiten',$listing))): ?>
<div class="_ribbon _ribbon-portrait"></div>
<?php endif; ?>
<?php echo $Routes->content($mainMediaThumb,$listing,['data-map-lookup'=>1,'data-listing-id'=>$listing['Listing']['listing_id']]);?>
return '<br />The template file ' . $___viewFn . ' is missing.';
}
ob_start();
include ($___viewFn);
$out = ob_get_clean();
if ( Sanitize::getBool($this->viewVars,'themeDebug') )
{
}
// Finds the view file
$viewPath = $this->locateThemeFile($action,$file,$this->ext,$this->frontend);
$out = $this->_render($viewPath, $this->viewVars);
# Set layout file
if ($layout === null) {
$layout = $this->layout;
}
$view = new MyView($this);
$out = $view
->changeExtension($this->theme_extension)
->forceFrontend($this->frontend)
->render($folder, $file, $layout);
// Restore controller variable values
foreach ( ['name','action','viewSuffix'] AS $var )
{
if ($output)
{
return $output;
}
return parent::render($folder, $template, $layout);
}
/**
* This callback can be used to inject assets to the head of the page from within Add-ons while also providing access
* to the controller::viewVars array. Use S2Component::plgBeforeAfterFilter method.
}
// Remove parameters added through menu custom params so they are not used in pagination
$this->passedArgs = array_diff_key($this->passedArgs, $this->customParamsArray);
return $this->render('listings','listings_' . $this->listview);
}
public function compareCatchAll()
{
$this->action = 'compare';
if ( !Sanitize::getString($this->params,'cat') )
{
return $this->response->html()->not_found();
}
return $this->listings();
}
function favorites()
{
$userId = Sanitize::getInt($this->params,'user');
// If macroable controller method exists, then use that instead of the core method
$action = $macroableController && $controller->hasMacro($controller->action.'_override') ? $controller->action.'_override' : $controller->action;
$output = $controller->{$action}($this->params);
}
$controller->output = &$output;
# Instantiate view class and let it handle ouput
if (isset($dispatchParams[$key]) && !$dispatchParams[$key]) {
unset($dispatchParams[$key]);
}
}
echo $Dispatcher->dispatch($dispatchParams);
unset($menu,$Dispatcher);
}
function JReviewsRouteActionsMap($action)
return;
}
$this->app['router']->any('{any}', function () {
require_once __DIR__.'/web-legacy-'._CMS_NAME.'.php';
return JReviewsLegacyRouting($this->app['request']->server->get('REQUEST_URI'));
})->where('any', '(.*)');
{
$callable = $this->action['uses'];
if ($this->isSerializedClosure()) {
$callable = \unserialize($this->action['uses'])->getClosure();
}
return $callable(...\array_values($this->resolveMethodDependencies($this->parametersWithoutNulls(), new \ReflectionFunction($callable))));
}
/**
* Determine if the route action is a serialized Closure.
*
* @return bool
$this->container = $this->container ?: new \FWD\Illuminate\Container\Container();
try {
if ($this->isControllerAction()) {
return $this->runController();
}
return $this->runCallable();
} catch (\FWD\Illuminate\Http\Exceptions\HttpResponseException $e) {
return $e->getResponse();
}
}
/**
protected function runRouteWithinStack(\FWD\Illuminate\Routing\Route $route, \FWD\Illuminate\Http\Request $request)
{
$shouldSkipMiddleware = $this->container->bound('middleware.disable') && $this->container->make('middleware.disable') === \true;
$middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
return (new \FWD\Illuminate\Routing\Pipeline($this->container))->send($request)->through($middleware)->then(function ($request) use($route) {
return $this->prepareResponse($request, $route->run());
});
}
/**
* Gather the middleware for the given route with resolved class names.
*
*/
protected function prepareDestination(\Closure $destination)
{
return function ($passable) use($destination) {
try {
return $destination($passable);
} catch (\Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
if ($route->getMissing()) {
return $route->getMissing()($request, $exception);
}
throw $exception;
}
return $next($request);
}
}
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = \method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (\Throwable $e) {
return $this->handleException($passable, $e);
}
};
* @return mixed
*/
public function then(\Closure $destination)
{
$pipeline = \array_reduce(\array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination));
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
* @return mixed
*/
protected function runRouteWithinStack(\FWD\Illuminate\Routing\Route $route, \FWD\Illuminate\Http\Request $request)
{
$shouldSkipMiddleware = $this->container->bound('middleware.disable') && $this->container->make('middleware.disable') === \true;
$middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
return (new \FWD\Illuminate\Routing\Pipeline($this->container))->send($request)->through($middleware)->then(function ($request) use($route) {
return $this->prepareResponse($request, $route->run());
});
}
/**
* Gather the middleware for the given route with resolved class names.
{
$request->setRouteResolver(function () use($route) {
return $route;
});
$this->events->dispatch(new \FWD\Illuminate\Routing\Events\RouteMatched($route, $request));
return $this->prepareResponse($request, $this->runRouteWithinStack($route, $request));
}
/**
* Run the given route within a Stack "onion" instance.
*
* @param \Illuminate\Routing\Route $route
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function dispatchToRoute(\FWD\Illuminate\Http\Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* Find the route matching a given request.
*
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function dispatch(\FWD\Illuminate\Http\Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
/**
* Dispatch the request to a route and return the response.
*
* @param \Illuminate\Http\Request $request
*/
protected function dispatchToRouter()
{
return function ($request) {
$this->app->instance('request', $request);
return $this->router->dispatch($request);
};
}
/**
* Call the terminate method on any terminable middleware.
*
*/
protected function prepareDestination(\Closure $destination)
{
return function ($passable) use($destination) {
try {
return $destination($passable);
} catch (\Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
*/
public function handle($request, \Closure $next)
{
// Check if we're dealing with CORS and if we should handle it
if (!$this->shouldRun($request)) {
return $next($request);
}
// For Preflight, return the Preflight response
if ($this->cors->isPreflightRequest($request)) {
$response = $this->cors->handlePreflightRequest($request);
$this->cors->varyHeader($response, 'Access-Control-Request-Method');
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = \method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (\Throwable $e) {
return $this->handleException($passable, $e);
}
};
* @return mixed
*/
public function then(\Closure $destination)
{
$pipeline = \array_reduce(\array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination));
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
* @return mixed
protected function sendRequestThroughRouter($request)
{
$this->app->instance('request', $request);
\FWD\Illuminate\Support\Facades\Facade::clearResolvedInstance('request');
$this->bootstrap();
return (new \FWD\Illuminate\Routing\Pipeline($this->app))->send($request)->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)->then($this->dispatchToRouter());
}
/**
* Bootstrap the application for HTTP requests.
*
* @return void
*/
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (\Throwable $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
}
$this->app['events']->dispatch(new \FWD\Illuminate\Foundation\Http\Events\RequestHandled($request, $response));
function s2_dispatch()
{
$app = fwd_app();
$request = fwd_request();
$kernel = $app->get('kernel');
$response = $kernel->handle($request);
if ($app->has('response_headers')) {
$response->withHeaders($app->make('response_headers'));
}
if ($response->getStatusCode() === 204) {
$response->send();
defined('_JEXEC') or die;
require_once JPATH_SITE.'/components/com_jreviews/jreviews/framework.php';
s2framework\s2_dispatch();
if (! static::throw_s2framework_error()) {
return;
}
}
require __DIR__.DS.'jreviews'.DS.'cms_compat'.DS.'joomla'.DS.'bootloader.php';
}
public static function s2framework_is_not_active()
{
if (defined('S2FRAMEWORK_BOOTED')) {
require_once __DIR__."/{$cmsName}.php";
$jreviews = new JReviews\JReviews();
$jreviews(__FILE__);
// Load common and local language files.
$lang->load($this->app->scope, JPATH_BASE) || $lang->load($this->app->scope, JPATH_COMPONENT);
// Execute the component
$loader = static function ($path) {
require_once $path;
};
$loader($path);
}
}
// Execute the component
$loader = static function ($path) {
require_once $path;
};
$loader($path);
}
}
if (!static::isEnabled($option)) {
throw new MissingComponentException(Text::_('JLIB_APPLICATION_ERROR_COMPONENT_NOT_FOUND'), 404);
}
ob_start();
$app->bootComponent($option)->getDispatcher($app)->dispatch();
$contents = ob_get_clean();
// Revert the scope
$app->scope = $scope;
$document->setGenerator('Joomla! - Open Source Content Management - Version ' . JVERSION);
} else {
$document->setGenerator('Joomla! - Open Source Content Management');
}
$contents = ComponentHelper::renderComponent($component);
$document->setBuffer($contents, 'component');
// Trigger the onAfterDispatch event.
PluginHelper::importPlugin('system');
$this->triggerEvent('onAfterDispatch');
*/
$this->checkUserRequireReset('com_users', 'profile', 'edit', 'com_users/profile.save,com_users/profile.apply,com_users/user.logout');
}
// Dispatch the application
$this->dispatch();
// Mark afterDispatch in the profiler.
JDEBUG ? $this->profiler->mark('afterDispatch') : null;
}
$this->sanityCheckSystemVariables();
$this->setupLogging();
$this->createExtensionNamespaceMap();
// Perform application routines.
$this->doExecute();
// If we have an application document object, render it.
if ($this->document instanceof \Joomla\CMS\Document\Document) {
// Render the application output.
$this->render();
// Set the application as global app
\Joomla\CMS\Factory::$application = $app;
// Execute the application.
$app->execute();
* define() is used rather than "const" to not error for PHP 5.2 and lower
*/
define('_JEXEC', 1);
// Run the application - All executable code should be triggered through this file
require_once dirname(__FILE__) . '/includes/app.php';
TypeError
|
---|
TypeError: in_array(): Argument #2 ($haystack) must be of type array, bool given at /www/htdocs/w00e5bfa/templates/jreviews_overrides/views/themes/bonvinitas/listings/listings_blogview_wein.thtml:81 at in_array('portrait', false) (/www/htdocs/w00e5bfa/templates/jreviews_overrides/views/themes/bonvinitas/listings/listings_blogview_wein.thtml:81) at include('/www/htdocs/w00e5bfa/templates/jreviews_overrides/views/themes/bonvinitas/listings/listings_blogview_wein.thtml') (/www/htdocs/w00e5bfa/components/com_s2framework/s2framework/libs/view/view.php:426) at MyView->_render('/www/htdocs/w00e5bfa/templates/jreviews_overrides/views/themes/bonvinitas/listings/listings_blogview_wein.thtml', array('r', 'S')) (/www/htdocs/w00e5bfa/components/com_s2framework/s2framework/libs/view/view.php:203) at MyView->render('listings', 'listings_blogview', null) (/www/htdocs/w00e5bfa/components/com_s2framework/s2framework/libs/controller/controller.php:247) at S2Controller->render('listings', 'listings_blogview', null) (/www/htdocs/w00e5bfa/components/com_jreviews/jreviews/controllers/my_controller.php:362) at MyController->render('listings', 'listings_blogview') (/www/htdocs/w00e5bfa/components/com_jreviews/jreviews/controllers/categories_controller.php:709) at CategoriesController->listings() (/www/htdocs/w00e5bfa/components/com_jreviews/jreviews/controllers/categories_controller.php:105) at CategoriesController->category(array('page' => '6', 'start' => '20', 'url' => array('page' => '6', 'start' => '20', 'url' => 'categories/category', 'Itemid' => '141', 'option' => 'com_jreviews'), 'data' => array('controller' => 'categories', 'action' => 'category', '__raw' => array('controller' => 'categories', 'action' => 'category')), 'form' => array(), 'care_did' => 'a989f1a3-506a-4d53-a6c5-389c18b6d481', 'option' => 'com_jreviews', 'Itemid' => '141', 'limitstart' => '20', 'cat' => '21', 'default_limit' => 25)) (/www/htdocs/w00e5bfa/components/com_s2framework/s2framework/dispatcher.php:359) at S2Dispatcher->dispatch(array()) (/www/htdocs/w00e5bfa/components/com_jreviews/routes/web-legacy-joomla.php:138) at JReviewsLegacyRouting('/categories/category') (/www/htdocs/w00e5bfa/components/com_jreviews/routes/web.php:41) at FWD\Illuminate\Support\ServiceProvider->{closure}('categories/category') (/www/htdocs/w00e5bfa/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Routing/Route.php:206) at FWD\Illuminate\Routing\Route->runCallable() (/www/htdocs/w00e5bfa/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Routing/Route.php:181) at FWD\Illuminate\Routing\Route->run() (/www/htdocs/w00e5bfa/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Routing/Router.php:607) at FWD\Illuminate\Routing\Router->FWD\Illuminate\Routing\{closure}(object(Request)) (/www/htdocs/w00e5bfa/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:111) at FWD\Illuminate\Pipeline\Pipeline->FWD\Illuminate\Pipeline\{closure}(object(Request)) (/www/htdocs/w00e5bfa/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:44) at FWD\Illuminate\Routing\Middleware\SubstituteBindings->handle(object(Request), object(Closure)) (/www/htdocs/w00e5bfa/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:145) at FWD\Illuminate\Pipeline\Pipeline->FWD\Illuminate\Pipeline\{closure}(object(Request)) (/www/htdocs/w00e5bfa/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:88) at FWD\Illuminate\Pipeline\Pipeline->then(object(Closure)) (/www/htdocs/w00e5bfa/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Routing/Router.php:606) at FWD\Illuminate\Routing\Router->runRouteWithinStack(object(Route), object(Request)) (/www/htdocs/w00e5bfa/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Routing/Router.php:593) at FWD\Illuminate\Routing\Router->runRoute(object(Request), object(Route)) (/www/htdocs/w00e5bfa/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Routing/Router.php:565) at FWD\Illuminate\Routing\Router->dispatchToRoute(object(Request)) (/www/htdocs/w00e5bfa/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Routing/Router.php:555) at FWD\Illuminate\Routing\Router->dispatch(object(Request)) (/www/htdocs/w00e5bfa/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:124) at FWD\Illuminate\Foundation\Http\Kernel->FWD\Illuminate\Foundation\Http\{closure}(object(Request)) (/www/htdocs/w00e5bfa/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:111) at FWD\Illuminate\Pipeline\Pipeline->FWD\Illuminate\Pipeline\{closure}(object(Request)) (/www/htdocs/w00e5bfa/components/com_s2framework/build/vendor/fruitcake/laravel-cors/src/HandleCors.php:34) at FWD\Fruitcake\Cors\HandleCors->handle(object(Request), object(Closure)) (/www/htdocs/w00e5bfa/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:145) at FWD\Illuminate\Pipeline\Pipeline->FWD\Illuminate\Pipeline\{closure}(object(Request)) (/www/htdocs/w00e5bfa/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:88) at FWD\Illuminate\Pipeline\Pipeline->then(object(Closure)) (/www/htdocs/w00e5bfa/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:102) at FWD\Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (/www/htdocs/w00e5bfa/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:83) at FWD\Illuminate\Foundation\Http\Kernel->handle(object(Request)) (/www/htdocs/w00e5bfa/components/com_s2framework/build/bootstrap/joomla.php:90) at s2framework\s2_dispatch() (/www/htdocs/w00e5bfa/components/com_jreviews/jreviews/cms_compat/joomla/bootloader.php:13) at require('/www/htdocs/w00e5bfa/components/com_jreviews/jreviews/cms_compat/joomla/bootloader.php') (/www/htdocs/w00e5bfa/components/com_jreviews/joomla.php:20) at JReviews\JReviews->__invoke('/www/htdocs/w00e5bfa/components/com_jreviews/jreviews.php') (/www/htdocs/w00e5bfa/components/com_jreviews/jreviews.php:25) at require_once('/www/htdocs/w00e5bfa/components/com_jreviews/jreviews.php') (/www/htdocs/w00e5bfa/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71) at Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}('/www/htdocs/w00e5bfa/components/com_jreviews/jreviews.php') (/www/htdocs/w00e5bfa/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73) at Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() (/www/htdocs/w00e5bfa/libraries/src/Component/ComponentHelper.php:361) at Joomla\CMS\Component\ComponentHelper::renderComponent('com_jreviews') (/www/htdocs/w00e5bfa/libraries/src/Application/SiteApplication.php:208) at Joomla\CMS\Application\SiteApplication->dispatch() (/www/htdocs/w00e5bfa/libraries/src/Application/SiteApplication.php:249) at Joomla\CMS\Application\SiteApplication->doExecute() (/www/htdocs/w00e5bfa/libraries/src/Application/CMSApplication.php:293) at Joomla\CMS\Application\CMSApplication->execute() (/www/htdocs/w00e5bfa/includes/app.php:61) at require_once('/www/htdocs/w00e5bfa/includes/app.php') (/www/htdocs/w00e5bfa/index.php:32) |