/var/www/vhosts/zeelandwonen.nl/httpdocs/wp-content/themes/zeelandwonen/vendor/illuminate/view/Factory.php
$this->finder->find($view);
} catch (InvalidArgumentException $e) {
return false;
}
return true;
}
/**
* Get the appropriate view engine for the given path.
*
* @param string $path
* @return \Illuminate\Contracts\View\Engine
*
* @throws \InvalidArgumentException
*/
public function getEngineFromPath($path)
{
if (! $extension = $this->getExtension($path)) {
throw new InvalidArgumentException("Unrecognized extension in file: {$path}.");
}
$engine = $this->extensions[$extension];
return $this->engines->resolve($engine);
}
/**
* Get the extension used by the view file.
*
* @param string $path
* @return string|null
*/
protected function getExtension($path)
{
$extensions = array_keys($this->extensions);
return Arr::first($extensions, function ($value) use ($path) {
return Str::endsWith($path, '.'.$value);
});
Arguments
"Unrecognized extension in file: /var/www/vhosts/zeelandwonen.nl/httpdocs."
/var/www/vhosts/zeelandwonen.nl/httpdocs/wp-content/themes/zeelandwonen/vendor/illuminate/view/Factory.php
*
* @param mixed $data
* @return array
*/
protected function parseData($data)
{
return $data instanceof Arrayable ? $data->toArray() : $data;
}
/**
* Create a new view instance from the given arguments.
*
* @param string $view
* @param string $path
* @param \Illuminate\Contracts\Support\Arrayable|array $data
* @return \Illuminate\Contracts\View\View
*/
protected function viewInstance($view, $path, $data)
{
return new View($this, $this->getEngineFromPath($path), $view, $path, $data);
}
/**
* Determine if a given view exists.
*
* @param string $view
* @return bool
*/
public function exists($view)
{
try {
$this->finder->find($view);
} catch (InvalidArgumentException $e) {
return false;
}
return true;
}
/**
/var/www/vhosts/zeelandwonen.nl/httpdocs/wp-content/themes/zeelandwonen/vendor/illuminate/view/Factory.php
$this->finder = $finder;
$this->events = $events;
$this->engines = $engines;
$this->share('__env', $this);
}
/**
* Get the evaluated view contents for the given view.
*
* @param string $path
* @param \Illuminate\Contracts\Support\Arrayable|array $data
* @param array $mergeData
* @return \Illuminate\Contracts\View\View
*/
public function file($path, $data = [], $mergeData = [])
{
$data = array_merge($mergeData, $this->parseData($data));
return tap($this->viewInstance($path, $path, $data), function ($view) {
$this->callCreator($view);
});
}
/**
* Get the evaluated view contents for the given view.
*
* @param string $view
* @param \Illuminate\Contracts\Support\Arrayable|array $data
* @param array $mergeData
* @return \Illuminate\Contracts\View\View
*/
public function make($view, $data = [], $mergeData = [])
{
$path = $this->finder->find(
$view = $this->normalizeName($view)
);
// Next, we will create the view instance and call the view creator for the view
// which can set any data, etc. Then we will return the view instance back to
/var/www/vhosts/zeelandwonen.nl/httpdocs/wp-content/themes/zeelandwonen/vendor/roots/acorn/src/helpers.php
* Get the evaluated view contents for the given view.
*
* @param string|null $view
* @param Arrayable|array $data
* @param array $mergeData
* @return View|ViewFactory
*
* @copyright Taylor Otwell
* @link https://github.com/laravel/framework/blob/8.x/src/Illuminate/Foundation/helpers.php
*/
function view($view = null, $data = [], $mergeData = [])
{
$factory = app(ViewFactory::class);
if (func_num_args() === 0) {
return $factory;
}
return $factory->exists($view)
? $factory->make($view, $data, $mergeData) : $factory->file($view, $data, $mergeData);
}
/**
* Initialize the Acorn bootloader.
*
* @param callable|null $callback
* @return void
*/
function bootloader($callback = null)
{
static $bootloader;
if (! $bootloader) {
$bootloader = new Bootloader();
}
if (is_callable($callback)) {
$bootloader->call($callback);
}
}
/var/www/vhosts/zeelandwonen.nl/httpdocs/wp-content/themes/zeelandwonen/index.php
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<?php wp_head(); ?>
<?php if(function_exists('get_field') && $head_script = get_field('head_script', 'options')) : ?>
<?= $head_script ?>
<?php endif; ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<?php do_action('get_header'); ?>
<div id="app">
<?php echo \Roots\view(\Roots\app('sage.view'), \Roots\app('sage.data'))->render(); ?>
</div>
<?php do_action('get_footer'); ?>
<?php wp_footer(); ?>
<?php if(function_exists('get_field') && $body_script = get_field('body_script', 'options')) : ?>
<?= $body_script ?>
<?php endif; ?>
</body>
</html>
/var/www/vhosts/zeelandwonen.nl/httpdocs/wp-includes/template-loader.php
}
break;
}
}
if ( ! $template ) {
$template = get_index_template();
}
/**
* Filters the path of the current template before including it.
*
* @since 3.0.0
*
* @param string $template The path of the template to include.
*/
$template = apply_filters( 'template_include', $template );
if ( $template ) {
include $template;
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
wp_die( $theme->errors() );
}
}
return;
}
Arguments
"/var/www/vhosts/zeelandwonen.nl/httpdocs/wp-content/themes/zeelandwonen/index.php"
/var/www/vhosts/zeelandwonen.nl/httpdocs/wp-blog-header.php
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/
if ( ! isset( $wp_did_header ) ) {
$wp_did_header = true;
// Load the WordPress library.
require_once __DIR__ . '/wp-load.php';
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
Arguments
"/var/www/vhosts/zeelandwonen.nl/httpdocs/wp-includes/template-loader.php"
/var/www/vhosts/zeelandwonen.nl/httpdocs/index.php
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
Arguments
"/var/www/vhosts/zeelandwonen.nl/httpdocs/wp-blog-header.php"