/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/illuminate/view/FileViewFinder.php
/**
* Find the given view in the list of paths.
*
* @param string $name
* @param array $paths
* @return string
*
* @throws \InvalidArgumentException
*/
protected function findInPaths($name, $paths)
{
foreach ((array) $paths as $path) {
foreach ($this->getPossibleViewFiles($name) as $file) {
if ($this->files->exists($viewPath = $path.'/'.$file)) {
return $viewPath;
}
}
}
throw new InvalidArgumentException("View [{$name}] not found.");
}
/**
* Get an array of possible view files.
*
* @param string $name
* @return array
*/
protected function getPossibleViewFiles($name)
{
return array_map(function ($extension) use ($name) {
return str_replace('.', '/', $name).'.'.$extension;
}, $this->extensions);
}
/**
* Add a location to the finder.
*
* @param string $location
* @return void
Arguments
"View [views.partials.post-meta] not found. (View: /home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/views/partials/loop.blade.php) (View: /home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/views/partials/loop.blade.php)"
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/illuminate/view/Engines/PhpEngine.php
*
* @param string $__path
* @param array $__data
* @return string
*/
protected function evaluatePath($__path, $__data)
{
$obLevel = ob_get_level();
ob_start();
extract($__data, EXTR_SKIP);
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
include $__path;
} catch (Throwable $e) {
$this->handleViewException($e, $obLevel);
}
return ltrim(ob_get_clean());
}
/**
* Handle a view exception.
*
* @param \Throwable $e
* @param int $obLevel
* @return void
*
* @throws \Throwable
*/
protected function handleViewException(Throwable $e, $obLevel)
{
while (ob_get_level() > $obLevel) {
ob_end_clean();
}
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/illuminate/view/FileViewFinder.php
/**
* Find the given view in the list of paths.
*
* @param string $name
* @param array $paths
* @return string
*
* @throws \InvalidArgumentException
*/
protected function findInPaths($name, $paths)
{
foreach ((array) $paths as $path) {
foreach ($this->getPossibleViewFiles($name) as $file) {
if ($this->files->exists($viewPath = $path.'/'.$file)) {
return $viewPath;
}
}
}
throw new InvalidArgumentException("View [{$name}] not found.");
}
/**
* Get an array of possible view files.
*
* @param string $name
* @return array
*/
protected function getPossibleViewFiles($name)
{
return array_map(function ($extension) use ($name) {
return str_replace('.', '/', $name).'.'.$extension;
}, $this->extensions);
}
/**
* Add a location to the finder.
*
* @param string $location
* @return void
Arguments
"View [views.partials.post-meta] not found. (View: /home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/views/partials/loop.blade.php)"
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/illuminate/view/Engines/PhpEngine.php
*
* @param string $__path
* @param array $__data
* @return string
*/
protected function evaluatePath($__path, $__data)
{
$obLevel = ob_get_level();
ob_start();
extract($__data, EXTR_SKIP);
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
include $__path;
} catch (Throwable $e) {
$this->handleViewException($e, $obLevel);
}
return ltrim(ob_get_clean());
}
/**
* Handle a view exception.
*
* @param \Throwable $e
* @param int $obLevel
* @return void
*
* @throws \Throwable
*/
protected function handleViewException(Throwable $e, $obLevel)
{
while (ob_get_level() > $obLevel) {
ob_end_clean();
}
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/illuminate/view/FileViewFinder.php
/**
* Find the given view in the list of paths.
*
* @param string $name
* @param array $paths
* @return string
*
* @throws \InvalidArgumentException
*/
protected function findInPaths($name, $paths)
{
foreach ((array) $paths as $path) {
foreach ($this->getPossibleViewFiles($name) as $file) {
if ($this->files->exists($viewPath = $path.'/'.$file)) {
return $viewPath;
}
}
}
throw new InvalidArgumentException("View [{$name}] not found.");
}
/**
* Get an array of possible view files.
*
* @param string $name
* @return array
*/
protected function getPossibleViewFiles($name)
{
return array_map(function ($extension) use ($name) {
return str_replace('.', '/', $name).'.'.$extension;
}, $this->extensions);
}
/**
* Add a location to the finder.
*
* @param string $location
* @return void
Arguments
"View [views.partials.post-meta] not found."
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/illuminate/view/FileViewFinder.php
}
}
/**
* Get the fully qualified location of the view.
*
* @param string $name
* @return string
*/
public function find($name)
{
if (isset($this->views[$name])) {
return $this->views[$name];
}
if ($this->hasHintInformation($name = trim($name))) {
return $this->views[$name] = $this->findNamespacedView($name);
}
return $this->views[$name] = $this->findInPaths($name, $this->paths);
}
/**
* Get the path to a template with a named path.
*
* @param string $name
* @return string
*/
protected function findNamespacedView($name)
{
[$namespace, $view] = $this->parseNamespaceSegments($name);
return $this->findInPaths($view, $this->hints[$namespace]);
}
/**
* Get the segments of a template with a named path.
*
* @param string $name
* @return array
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/illuminate/view/Factory.php
{
$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
// the caller for rendering or performing other view manipulations on this.
$data = array_merge($mergeData, $this->parseData($data));
return tap($this->viewInstance($view, $path, $data), function ($view) {
$this->callCreator($view);
});
}
/**
* Get the first view that actually exists from the given list.
*
* @param array $views
* @param \Illuminate\Contracts\Support\Arrayable|array $data
* @param array $mergeData
* @return \Illuminate\Contracts\View\View
*
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/cache/bc13b02715d4a843f9cb65cf01a49550a94071d7.php
<?php if(have_posts()): ?>
<ul class="articles">
<?php while(have_posts()): ?>
<?php the_post() ?>
<li <?php post_class( 'article' ) ?>>
<header class="article__head">
<?php if(has_post_thumbnail()): ?>
<div class="article__thumbnail">
<?php the_post_thumbnail() ?>
</div>
<?php endif; ?>
<h2 class="article__title">
<a href="<?php echo e(get_permalink()); ?>" rel="bookmark" title="<?php echo e(app_get_permalink_title()); ?>">
<?php echo e(get_the_title()); ?>
</a>
</h2>
<?php echo $__env->make('views.partials.post-meta', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</header>
<div class="article__body">
<div class="article__entry">
<?php the_excerpt() ?>
</div>
</div>
</li>
<?php endwhile; ?>
</ul>
<?php echo $__env->make('views.partials.pagination', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php else: ?>
<ul class="articles">
<li class="article article--error404 article--not-found">
<div class="article__body">
<div class="article__entry">
<p><?php echo e(app_get_index_404_message()); ?></p>
<?php get_search_form(); ?>
</div>
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/illuminate/view/Engines/PhpEngine.php
/**
* Get the evaluated contents of the view at the given path.
*
* @param string $__path
* @param array $__data
* @return string
*/
protected function evaluatePath($__path, $__data)
{
$obLevel = ob_get_level();
ob_start();
extract($__data, EXTR_SKIP);
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
include $__path;
} catch (Throwable $e) {
$this->handleViewException($e, $obLevel);
}
return ltrim(ob_get_clean());
}
/**
* Handle a view exception.
*
* @param \Throwable $e
* @param int $obLevel
* @return void
*
* @throws \Throwable
*/
protected function handleViewException(Throwable $e, $obLevel)
{
while (ob_get_level() > $obLevel) {
ob_end_clean();
Arguments
"/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/cache/bc13b02715d4a843f9cb65cf01a49550a94071d7.php"
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/illuminate/view/Engines/CompilerEngine.php
*
* @param string $path
* @param array $data
* @return string
*/
public function get($path, array $data = [])
{
$this->lastCompiled[] = $path;
// If this given view has expired, which means it has simply been edited since
// it was last compiled, we will re-compile the views so we can evaluate a
// fresh copy of the view. We'll pass the compiler the path of the view.
if ($this->compiler->isExpired($path)) {
$this->compiler->compile($path);
}
// Once we have the path to the compiled file, we will evaluate the paths with
// typical PHP just like any other templates. We also keep a stack of views
// which have been rendered for right exception messages to be generated.
$results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
array_pop($this->lastCompiled);
return $results;
}
/**
* Handle a view exception.
*
* @param \Throwable $e
* @param int $obLevel
* @return void
*
* @throws \Throwable
*/
protected function handleViewException(Throwable $e, $obLevel)
{
$e = new ErrorException($this->getMessage($e), 0, 1, $e->getFile(), $e->getLine(), $e);
parent::handleViewException($e, $obLevel);
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/illuminate/view/View.php
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
return $contents;
}
/**
* Get the evaluated contents of the view.
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
* Get the data bound to the view instance.
*
* @return array
*/
public function gatherData()
{
$data = array_merge($this->factory->getShared(), $this->data);
foreach ($data as $key => $value) {
if ($value instanceof Renderable) {
$data[$key] = $value->render();
}
}
return $data;
}
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/illuminate/view/View.php
throw $e;
}
}
/**
* Get the contents of the view instance.
*
* @return string
*/
protected function renderContents()
{
// We will keep track of the amount of views being rendered so we can flush
// the section after the complete rendering operation is done. This will
// clear out the sections for any separate views that may be rendered.
$this->factory->incrementRender();
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
return $contents;
}
/**
* Get the evaluated contents of the view.
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/illuminate/view/View.php
$this->view = $view;
$this->path = $path;
$this->engine = $engine;
$this->factory = $factory;
$this->data = $data instanceof Arrayable ? $data->toArray() : (array) $data;
}
/**
* Get the string contents of the view.
*
* @param callable|null $callback
* @return array|string
*
* @throws \Throwable
*/
public function render(callable $callback = null)
{
try {
$contents = $this->renderContents();
$response = isset($callback) ? $callback($this, $contents) : null;
// Once we have the contents of the view, we will flush the sections if we are
// done rendering all views so that there is nothing left hanging over when
// another view gets rendered in the future by the application developer.
$this->factory->flushStateIfDoneRendering();
return ! is_null($response) ? $response : $contents;
} catch (Throwable $e) {
$this->factory->flushState();
throw $e;
}
}
/**
* Get the contents of the view instance.
*
* @return string
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/cache/d9de29f3afe13f90bd1925de73ad2ef66c449d7c.php
<?php
/**
* The main template file.
*
* This is the template that is used for displaying:
* - posts
* - single posts
* - archive pages
* - search results pages
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package App
*/
?>
<?php $__env->startSection('content'); ?>
<?php echo $__env->make('views.partials.loop', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('views.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/views/index.blade.php ENDPATH**/ ?>
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/illuminate/view/Engines/PhpEngine.php
/**
* Get the evaluated contents of the view at the given path.
*
* @param string $__path
* @param array $__data
* @return string
*/
protected function evaluatePath($__path, $__data)
{
$obLevel = ob_get_level();
ob_start();
extract($__data, EXTR_SKIP);
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
include $__path;
} catch (Throwable $e) {
$this->handleViewException($e, $obLevel);
}
return ltrim(ob_get_clean());
}
/**
* Handle a view exception.
*
* @param \Throwable $e
* @param int $obLevel
* @return void
*
* @throws \Throwable
*/
protected function handleViewException(Throwable $e, $obLevel)
{
while (ob_get_level() > $obLevel) {
ob_end_clean();
Arguments
"/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/cache/d9de29f3afe13f90bd1925de73ad2ef66c449d7c.php"
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/illuminate/view/Engines/CompilerEngine.php
*
* @param string $path
* @param array $data
* @return string
*/
public function get($path, array $data = [])
{
$this->lastCompiled[] = $path;
// If this given view has expired, which means it has simply been edited since
// it was last compiled, we will re-compile the views so we can evaluate a
// fresh copy of the view. We'll pass the compiler the path of the view.
if ($this->compiler->isExpired($path)) {
$this->compiler->compile($path);
}
// Once we have the path to the compiled file, we will evaluate the paths with
// typical PHP just like any other templates. We also keep a stack of views
// which have been rendered for right exception messages to be generated.
$results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
array_pop($this->lastCompiled);
return $results;
}
/**
* Handle a view exception.
*
* @param \Throwable $e
* @param int $obLevel
* @return void
*
* @throws \Throwable
*/
protected function handleViewException(Throwable $e, $obLevel)
{
$e = new ErrorException($this->getMessage($e), 0, 1, $e->getFile(), $e->getLine(), $e);
parent::handleViewException($e, $obLevel);
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/illuminate/view/View.php
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
return $contents;
}
/**
* Get the evaluated contents of the view.
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
* Get the data bound to the view instance.
*
* @return array
*/
public function gatherData()
{
$data = array_merge($this->factory->getShared(), $this->data);
foreach ($data as $key => $value) {
if ($value instanceof Renderable) {
$data[$key] = $value->render();
}
}
return $data;
}
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/illuminate/view/View.php
throw $e;
}
}
/**
* Get the contents of the view instance.
*
* @return string
*/
protected function renderContents()
{
// We will keep track of the amount of views being rendered so we can flush
// the section after the complete rendering operation is done. This will
// clear out the sections for any separate views that may be rendered.
$this->factory->incrementRender();
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
return $contents;
}
/**
* Get the evaluated contents of the view.
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/illuminate/view/View.php
$this->view = $view;
$this->path = $path;
$this->engine = $engine;
$this->factory = $factory;
$this->data = $data instanceof Arrayable ? $data->toArray() : (array) $data;
}
/**
* Get the string contents of the view.
*
* @param callable|null $callback
* @return array|string
*
* @throws \Throwable
*/
public function render(callable $callback = null)
{
try {
$contents = $this->renderContents();
$response = isset($callback) ? $callback($this, $contents) : null;
// Once we have the contents of the view, we will flush the sections if we are
// done rendering all views so that there is nothing left hanging over when
// another view gets rendered in the future by the application developer.
$this->factory->flushStateIfDoneRendering();
return ! is_null($response) ? $response : $contents;
} catch (Throwable $e) {
$this->factory->flushState();
throw $e;
}
}
/**
* Get the contents of the view instance.
*
* @return string
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge-blade/src/View/Blade.php
$container->bindIf('config', function() use ( $view_paths, $cache_path ) {
return [
'view.paths' => $view_paths,
'view.compiled' => $cache_path,
];
}, true);
}
/**
* Render a view to a string
*
* @param string $view
* @param array $data
* @param array $merge_data
*
* @return string
*/
public function render( $view, $data = [], $merge_data = [] ) {
$view = $this->container['view']->make( $view, $data, $merge_data );
return $view->render();
}
/**
* Get the compiler
*
* @return mixed
*/
public function get_compiler() {
$blade_engine = $this->engine_resolver->resolve( 'blade' );
return $blade_engine->getCompiler();
}
/**
* Get the view factory
*
* @return mixed
*/
public function get_view_factory() {
return $this->container['view'];
}
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge-blade/src/View/BladeView.php
return $this->blade_engine;
}
/**
* {@inheritDoc}
*/
public function setBladeEngine( Blade $blade_engine ) {
$this->blade_engine = $blade_engine;
return $this;
}
/**
* {@inheritDoc}
*/
public function toString() {
if ( empty( $this->getName() ) ) {
throw new ViewException( 'View must have a name.' );
}
return $this->getBladeEngine()->render( $this->getName(), $this->getContext() );
}
/**
* {@inheritDoc}
*/
public function toResponse() {
return (new Response())
->withHeader( 'Content-Type', 'text/html' )
->withBody( Psr7\stream_for( $this->toString() ) );
}
}
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge/src/View/ViewService.php
$matches = [];
$is_partial = preg_match( $core_partial, $name, $matches );
if ( $is_partial && apply_filters( "wpemerge.partials.{$matches[1]}.hook", true ) ) {
do_action( "get_{$matches[1]}", $matches[2] );
}
}
/**
* Render a view.
*
* @codeCoverageIgnore
* @param string|string[] $views
* @param array<string, mixed> $context
* @return void
*/
public function render( $views, $context = [] ) {
$view = $this->make( $views )->with( $context );
$this->triggerPartialHooks( $view->getName() );
echo $view->toString();
}
}
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge/src/View/ViewServiceProvider.php
};
$container[ WPEMERGE_VIEW_PHP_VIEW_ENGINE_KEY ] = function ( $c ) {
$finder = new PhpViewFilesystemFinder( MixedType::toArray( $c[ WPEMERGE_CONFIG_KEY ]['views'] ) );
return new PhpViewEngine( $c[ WPEMERGE_VIEW_COMPOSE_ACTION_KEY ], $finder );
};
$container[ WPEMERGE_VIEW_ENGINE_KEY ] = function ( $c ) {
return $c[ WPEMERGE_VIEW_PHP_VIEW_ENGINE_KEY ];
};
$app = $container[ WPEMERGE_APPLICATION_KEY ];
$app->alias( 'views', WPEMERGE_VIEW_SERVICE_KEY );
$app->alias( 'view', function () use ( $app ) {
return call_user_func_array( [$app->views(), 'make'], func_get_args() );
} );
$app->alias( 'render', function () use ( $app ) {
return call_user_func_array( [$app->views(), 'render'], func_get_args() );
} );
$app->alias( 'layoutContent', function () use ( $app ) {
/** @var PhpViewEngine $engine */
$engine = $app->resolve( WPEMERGE_VIEW_PHP_VIEW_ENGINE_KEY );
echo $engine->getLayoutContent();
} );
}
/**
* {@inheritDoc}
*/
public function bootstrap( $container ) {
// Nothing to bootstrap.
}
}
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge/src/View/ViewServiceProvider.php
};
$container[ WPEMERGE_VIEW_PHP_VIEW_ENGINE_KEY ] = function ( $c ) {
$finder = new PhpViewFilesystemFinder( MixedType::toArray( $c[ WPEMERGE_CONFIG_KEY ]['views'] ) );
return new PhpViewEngine( $c[ WPEMERGE_VIEW_COMPOSE_ACTION_KEY ], $finder );
};
$container[ WPEMERGE_VIEW_ENGINE_KEY ] = function ( $c ) {
return $c[ WPEMERGE_VIEW_PHP_VIEW_ENGINE_KEY ];
};
$app = $container[ WPEMERGE_APPLICATION_KEY ];
$app->alias( 'views', WPEMERGE_VIEW_SERVICE_KEY );
$app->alias( 'view', function () use ( $app ) {
return call_user_func_array( [$app->views(), 'make'], func_get_args() );
} );
$app->alias( 'render', function () use ( $app ) {
return call_user_func_array( [$app->views(), 'render'], func_get_args() );
} );
$app->alias( 'layoutContent', function () use ( $app ) {
/** @var PhpViewEngine $engine */
$engine = $app->resolve( WPEMERGE_VIEW_PHP_VIEW_ENGINE_KEY );
echo $engine->getLayoutContent();
} );
}
/**
* {@inheritDoc}
*/
public function bootstrap( $container ) {
// Nothing to bootstrap.
}
}
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge/src/Application/HasAliasesTrait.php
'method' => $method,
] );
}
/**
* Call alias if registered.
*
* @param string $method
* @param array $parameters
* @return mixed
*/
public function __call( $method, $parameters ) {
if ( ! $this->hasAlias( $method ) ) {
throw new BadMethodCallException( "Method {$method} does not exist." );
}
$alias = $this->aliases[ $method ];
if ( $alias['target'] instanceof Closure ) {
return call_user_func_array( $alias['target']->bindTo( $this, static::class ), $parameters );
}
$target = $this->resolve( $alias['target'] );
if ( ! empty( $alias['method'] ) ) {
return call_user_func_array( [$target, $alias['method']], $parameters );
}
return $target;
}
/**
* Resolve a dependency from the IoC container.
*
* @param string $key
* @return mixed|null
*/
abstract public function resolve( $key );
}
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge/src/Application/HasAliasesTrait.php
'method' => $method,
] );
}
/**
* Call alias if registered.
*
* @param string $method
* @param array $parameters
* @return mixed
*/
public function __call( $method, $parameters ) {
if ( ! $this->hasAlias( $method ) ) {
throw new BadMethodCallException( "Method {$method} does not exist." );
}
$alias = $this->aliases[ $method ];
if ( $alias['target'] instanceof Closure ) {
return call_user_func_array( $alias['target']->bindTo( $this, static::class ), $parameters );
}
$target = $this->resolve( $alias['target'] );
if ( ! empty( $alias['method'] ) ) {
return call_user_func_array( [$target, $alias['method']], $parameters );
}
return $target;
}
/**
* Resolve a dependency from the IoC container.
*
* @param string $key
* @return mixed|null
*/
abstract public function resolve( $key );
}
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge/src/Application/ApplicationTrait.php
* @param string $method
* @param array $parameters
* @return mixed
*/
public static function __callStatic( $method, $parameters ) {
$application = static::getApplication();
$callable = [$application, $method];
if ( ! $application ) {
throw new ConfigurationException(
'Application instance not created in ' . static::class . '. ' .
'Did you miss to call ' . static::class . '::make()?'
);
}
if ( ! is_callable( $callable ) ) {
throw new BadMethodCallException( 'Method ' . get_class( $application ) . '::' . $method . '() does not exist.' );
}
return call_user_func_array( $callable, $parameters );
}
}
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge/src/Application/ApplicationTrait.php
* @param string $method
* @param array $parameters
* @return mixed
*/
public static function __callStatic( $method, $parameters ) {
$application = static::getApplication();
$callable = [$application, $method];
if ( ! $application ) {
throw new ConfigurationException(
'Application instance not created in ' . static::class . '. ' .
'Did you miss to call ' . static::class . '::make()?'
);
}
if ( ! is_callable( $callable ) ) {
throw new BadMethodCallException( 'Method ' . get_class( $application ) . '::' . $method . '() does not exist.' );
}
return call_user_func_array( $callable, $parameters );
}
}
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/index.php
<?php
/**
* This file is required by WordPress. Delegates the actual rendering to index.blade.php.
*
* @package App
* phpcs:disable
*/
\App::render( 'views.index' );
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge/src/View/PhpViewEngine.php
if ( ! $this->exists( $layout_file ) ) {
throw new ViewNotFoundException( 'View layout not found for "' . $layout_file . '"' );
}
return $this->makeView( $this->canonical( $layout_file ), $this->finder->resolveFilepath( $layout_file ) );
}
/**
* Render a view.
*
* @param PhpView $__view
* @return string
*/
protected function renderView( PhpView $__view ) {
$__context = $__view->getContext();
ob_start();
extract( $__context, EXTR_OVERWRITE );
/** @noinspection PhpIncludeInspection */
include $__view->getFilepath();
return ob_get_clean();
}
/**
* Push layout content to the top of the stack.
*
* @codeCoverageIgnore
* @param PhpView $view
* @return void
*/
public function pushLayoutContent( PhpView $view ) {
$this->layout_content_stack[] = $view;
}
/**
* Pop the top-most layout content from the stack.
*
* @codeCoverageIgnore
* @return PhpView|null
*/
Arguments
"/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/index.php"
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge/src/View/PhpViewEngine.php
}
/**
* Pop the top-most layout content from the stack, render and return it.
*
* @codeCoverageIgnore
* @return string
*/
public function getLayoutContent() {
$view = $this->popLayoutContent();
if ( ! $view ) {
return '';
}
$clone = clone $view;
call_user_func( $this->compose, $clone );
return $this->renderView( $clone );
}
}
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge/src/View/PhpView.php
/**
* {@inheritDoc}
* @throws ViewException
*/
public function toString() {
if ( empty( $this->getName() ) ) {
throw new ViewException( 'View must have a name.' );
}
if ( empty( $this->getFilepath() ) ) {
throw new ViewException( 'View must have a filepath.' );
}
$this->engine->pushLayoutContent( $this );
if ( $this->getLayout() !== null ) {
return $this->getLayout()->toString();
}
return $this->engine->getLayoutContent();
}
/**
* {@inheritDoc}
* @throws ViewException
*/
public function toResponse() {
return (new Response())
->withHeader( 'Content-Type', 'text/html' )
->withBody( Psr7\stream_for( $this->toString() ) );
}
}
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge/src/View/PhpView.php
throw new ViewException( 'View must have a filepath.' );
}
$this->engine->pushLayoutContent( $this );
if ( $this->getLayout() !== null ) {
return $this->getLayout()->toString();
}
return $this->engine->getLayoutContent();
}
/**
* {@inheritDoc}
* @throws ViewException
*/
public function toResponse() {
return (new Response())
->withHeader( 'Content-Type', 'text/html' )
->withBody( Psr7\stream_for( $this->toString() ) );
}
}
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge/src/Controllers/WordPressController.php
*/
public function handle( RequestInterface $request, $view = '' ) {
if ( is_admin() || wp_doing_ajax() ) {
throw new ConfigurationException(
'Attempted to run the default WordPress controller on an ' .
'admin or AJAX page. Did you miss to specify a custom handler for ' .
'a route or accidentally used \App::route()->all() during admin ' .
'requests?'
);
}
if ( empty( $view ) ) {
throw new ConfigurationException(
'No view loaded for default WordPress controller. ' .
'Did you miss to specify a custom handler for an ajax or admin route?'
);
}
return $this->view_service->make( $view )
->toResponse()
->withStatus( http_response_code() );
}
}
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge/src/Helpers/Handler.php
}
return $instance;
}
/**
* Execute the parsed handler with any provided arguments and return the result.
*
* @param mixed ,...$arguments
* @return mixed
*/
public function execute() {
$arguments = func_get_args();
$instance = $this->make();
if ( $instance instanceof Closure ) {
return call_user_func_array( $instance, $arguments );
}
return call_user_func_array( [$instance, $this->get()['method']], $arguments );
}
}
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge/src/Helpers/Handler.php
}
return $instance;
}
/**
* Execute the parsed handler with any provided arguments and return the result.
*
* @param mixed ,...$arguments
* @return mixed
*/
public function execute() {
$arguments = func_get_args();
$instance = $this->make();
if ( $instance instanceof Closure ) {
return call_user_func_array( $instance, $arguments );
}
return call_user_func_array( [$instance, $this->get()['method']], $arguments );
}
}
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge/src/Kernels/HttpKernel.php
/**
* Make a middleware class instance.
*
* @codeCoverageIgnore
* @param string $class
* @return object
*/
protected function makeMiddleware( $class ) {
return $this->factory->make( $class );
}
/**
* Execute a handler.
*
* @param Handler $handler
* @param array $arguments
* @return ResponseInterface
*/
protected function executeHandler( Handler $handler, $arguments = [] ) {
$response = call_user_func_array( [$handler, 'execute'], $arguments );
$response = $this->toResponse( $response );
if ( ! $response instanceof ResponseInterface ) {
throw new ConfigurationException(
'Response returned by controller is not valid ' .
'(expected ' . ResponseInterface::class . '; received ' . gettype( $response ) . ').'
);
}
return $response;
}
/**
* {@inheritDoc}
*/
public function run( RequestInterface $request, $middleware, $handler, $arguments = [] ) {
$this->error_handler->register();
try {
$handler = $handler instanceof Handler ? $handler : $this->handler_factory->make( $handler );
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge/src/Kernels/HttpKernel.php
/**
* Make a middleware class instance.
*
* @codeCoverageIgnore
* @param string $class
* @return object
*/
protected function makeMiddleware( $class ) {
return $this->factory->make( $class );
}
/**
* Execute a handler.
*
* @param Handler $handler
* @param array $arguments
* @return ResponseInterface
*/
protected function executeHandler( Handler $handler, $arguments = [] ) {
$response = call_user_func_array( [$handler, 'execute'], $arguments );
$response = $this->toResponse( $response );
if ( ! $response instanceof ResponseInterface ) {
throw new ConfigurationException(
'Response returned by controller is not valid ' .
'(expected ' . ResponseInterface::class . '; received ' . gettype( $response ) . ').'
);
}
return $response;
}
/**
* {@inheritDoc}
*/
public function run( RequestInterface $request, $middleware, $handler, $arguments = [] ) {
$this->error_handler->register();
try {
$handler = $handler instanceof Handler ? $handler : $this->handler_factory->make( $handler );
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge/src/Kernels/HttpKernel.php
return $response;
}
/**
* {@inheritDoc}
*/
public function run( RequestInterface $request, $middleware, $handler, $arguments = [] ) {
$this->error_handler->register();
try {
$handler = $handler instanceof Handler ? $handler : $this->handler_factory->make( $handler );
$middleware = array_merge( $middleware, $this->getHandlerMiddleware( $handler ) );
$middleware = $this->expandMiddleware( $middleware );
$middleware = $this->uniqueMiddleware( $middleware );
$middleware = $this->sortMiddleware( $middleware );
$response = $this->executeMiddleware( $middleware, $request, function () use ( $handler, $arguments ) {
return $this->executeHandler( $handler, $arguments );
} );
} catch ( Exception $exception ) {
$response = $this->error_handler->getResponse( $request, $exception );
}
$this->error_handler->unregister();
return $response;
}
/**
* {@inheritDoc}
*/
public function handle( RequestInterface $request, $arguments = [] ) {
$route = $this->router->execute( $request );
if ( $route === null ) {
return null;
}
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge/src/Middleware/ExecutesMiddlewareTrait.php
* Make a middleware class instance.
*
* @param string $class
* @return object
*/
protected abstract function makeMiddleware( $class );
/**
* Execute an array of middleware recursively (last in, first out).
*
* @param string[][] $middleware
* @param RequestInterface $request
* @param Closure $next
* @return ResponseInterface
*/
protected function executeMiddleware( $middleware, RequestInterface $request, Closure $next ) {
$top_middleware = array_shift( $middleware );
if ( $top_middleware === null ) {
return $next( $request );
}
$top_middleware_next = function ( $request ) use ( $middleware, $next ) {
return $this->executeMiddleware( $middleware, $request, $next );
};
$instance = $this->makeMiddleware( $top_middleware[0] );
$arguments = array_merge(
[$request, $top_middleware_next],
array_slice( $top_middleware, 1 )
);
return call_user_func_array( [$instance, 'handle'], $arguments );
}
}
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge/src/Middleware/ExecutesMiddlewareTrait.php
*/
protected abstract function makeMiddleware( $class );
/**
* Execute an array of middleware recursively (last in, first out).
*
* @param string[][] $middleware
* @param RequestInterface $request
* @param Closure $next
* @return ResponseInterface
*/
protected function executeMiddleware( $middleware, RequestInterface $request, Closure $next ) {
$top_middleware = array_shift( $middleware );
if ( $top_middleware === null ) {
return $next( $request );
}
$top_middleware_next = function ( $request ) use ( $middleware, $next ) {
return $this->executeMiddleware( $middleware, $request, $next );
};
$instance = $this->makeMiddleware( $top_middleware[0] );
$arguments = array_merge(
[$request, $top_middleware_next],
array_slice( $top_middleware, 1 )
);
return call_user_func_array( [$instance, 'handle'], $arguments );
}
}
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge/src/Input/OldInputMiddleware.php
/**
* Constructor.
*
* @codeCoverageIgnore
* @param OldInput $old_input
*/
public function __construct( OldInput $old_input ) {
$this->old_input = $old_input;
}
/**
* {@inheritDoc}
*/
public function handle( RequestInterface $request, Closure $next ) {
if ( $this->old_input->enabled() && $request->isPost() ) {
$this->old_input->set( $request->body() );
}
return $next( $request );
}
}
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge/src/Middleware/ExecutesMiddlewareTrait.php
* @return ResponseInterface
*/
protected function executeMiddleware( $middleware, RequestInterface $request, Closure $next ) {
$top_middleware = array_shift( $middleware );
if ( $top_middleware === null ) {
return $next( $request );
}
$top_middleware_next = function ( $request ) use ( $middleware, $next ) {
return $this->executeMiddleware( $middleware, $request, $next );
};
$instance = $this->makeMiddleware( $top_middleware[0] );
$arguments = array_merge(
[$request, $top_middleware_next],
array_slice( $top_middleware, 1 )
);
return call_user_func_array( [$instance, 'handle'], $arguments );
}
}
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge/src/Middleware/ExecutesMiddlewareTrait.php
* @return ResponseInterface
*/
protected function executeMiddleware( $middleware, RequestInterface $request, Closure $next ) {
$top_middleware = array_shift( $middleware );
if ( $top_middleware === null ) {
return $next( $request );
}
$top_middleware_next = function ( $request ) use ( $middleware, $next ) {
return $this->executeMiddleware( $middleware, $request, $next );
};
$instance = $this->makeMiddleware( $top_middleware[0] );
$arguments = array_merge(
[$request, $top_middleware_next],
array_slice( $top_middleware, 1 )
);
return call_user_func_array( [$instance, 'handle'], $arguments );
}
}
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge/src/Middleware/ExecutesMiddlewareTrait.php
*/
protected abstract function makeMiddleware( $class );
/**
* Execute an array of middleware recursively (last in, first out).
*
* @param string[][] $middleware
* @param RequestInterface $request
* @param Closure $next
* @return ResponseInterface
*/
protected function executeMiddleware( $middleware, RequestInterface $request, Closure $next ) {
$top_middleware = array_shift( $middleware );
if ( $top_middleware === null ) {
return $next( $request );
}
$top_middleware_next = function ( $request ) use ( $middleware, $next ) {
return $this->executeMiddleware( $middleware, $request, $next );
};
$instance = $this->makeMiddleware( $top_middleware[0] );
$arguments = array_merge(
[$request, $top_middleware_next],
array_slice( $top_middleware, 1 )
);
return call_user_func_array( [$instance, 'handle'], $arguments );
}
}
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge/src/Flash/FlashMiddleware.php
*
* @var Flash
*/
protected $flash = null;
/**
* Constructor.
*
* @codeCoverageIgnore
* @param Flash $flash
*/
public function __construct( Flash $flash ) {
$this->flash = $flash;
}
/**
* {@inheritDoc}
*/
public function handle( RequestInterface $request, Closure $next ) {
$response = $next( $request );
if ( $this->flash->enabled() ) {
$this->flash->shift();
$this->flash->save();
}
return $response;
}
}
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge/src/Middleware/ExecutesMiddlewareTrait.php
* @return ResponseInterface
*/
protected function executeMiddleware( $middleware, RequestInterface $request, Closure $next ) {
$top_middleware = array_shift( $middleware );
if ( $top_middleware === null ) {
return $next( $request );
}
$top_middleware_next = function ( $request ) use ( $middleware, $next ) {
return $this->executeMiddleware( $middleware, $request, $next );
};
$instance = $this->makeMiddleware( $top_middleware[0] );
$arguments = array_merge(
[$request, $top_middleware_next],
array_slice( $top_middleware, 1 )
);
return call_user_func_array( [$instance, 'handle'], $arguments );
}
}
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge/src/Middleware/ExecutesMiddlewareTrait.php
* @return ResponseInterface
*/
protected function executeMiddleware( $middleware, RequestInterface $request, Closure $next ) {
$top_middleware = array_shift( $middleware );
if ( $top_middleware === null ) {
return $next( $request );
}
$top_middleware_next = function ( $request ) use ( $middleware, $next ) {
return $this->executeMiddleware( $middleware, $request, $next );
};
$instance = $this->makeMiddleware( $top_middleware[0] );
$arguments = array_merge(
[$request, $top_middleware_next],
array_slice( $top_middleware, 1 )
);
return call_user_func_array( [$instance, 'handle'], $arguments );
}
}
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge/src/Kernels/HttpKernel.php
return $response;
}
/**
* {@inheritDoc}
*/
public function run( RequestInterface $request, $middleware, $handler, $arguments = [] ) {
$this->error_handler->register();
try {
$handler = $handler instanceof Handler ? $handler : $this->handler_factory->make( $handler );
$middleware = array_merge( $middleware, $this->getHandlerMiddleware( $handler ) );
$middleware = $this->expandMiddleware( $middleware );
$middleware = $this->uniqueMiddleware( $middleware );
$middleware = $this->sortMiddleware( $middleware );
$response = $this->executeMiddleware( $middleware, $request, function () use ( $handler, $arguments ) {
return $this->executeHandler( $handler, $arguments );
} );
} catch ( Exception $exception ) {
$response = $this->error_handler->getResponse( $request, $exception );
}
$this->error_handler->unregister();
return $response;
}
/**
* {@inheritDoc}
*/
public function handle( RequestInterface $request, $arguments = [] ) {
$route = $this->router->execute( $request );
if ( $route === null ) {
return null;
}
$route_arguments = $route->getArguments( $request );
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge/src/Kernels/HttpKernel.php
*/
public function handle( RequestInterface $request, $arguments = [] ) {
$route = $this->router->execute( $request );
if ( $route === null ) {
return null;
}
$route_arguments = $route->getArguments( $request );
$request = $request
->withAttribute( 'route', $route )
->withAttribute( 'route_arguments', $route_arguments );
$response = $this->run(
$request,
$route->getAttribute( 'middleware', [] ),
$route->getAttribute( 'handler' ),
array_merge(
[$request],
$arguments,
$route_arguments
)
);
$this->container[ WPEMERGE_RESPONSE_KEY ] = $response;
return $response;
}
/**
* Respond with the current response.
*
* @return void
*/
public function respond() {
$response = $this->getResponse();
if ( ! $response instanceof ResponseInterface ) {
return;
/home/bridgefab.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge/src/Kernels/HttpKernel.php
} );
break;
}
return $query_vars;
}
/**
* Filter the main template file.
*
* @param string $template
* @return string
*/
public function filterTemplateInclude( $template ) {
/** @var WP_Query $wp_query */
global $wp_query;
$this->template = $template;
$response = $this->handle( $this->request, [$template] );
// A route has matched so we use its response.
if ( $response instanceof ResponseInterface ) {
if ( $response->getStatusCode() === 404 ) {
$wp_query->set_404();
}
add_action( 'wpemerge.kernels.http_kernel.respond', [$this, 'respond'] );
return WPEMERGE_DIR . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'view.php';
}
// No route has matched, but we still want to compose views.
$composers = $this->view_service->getComposersForView( $template );
if ( ! empty( $composers ) ) {
add_action( 'wpemerge.kernels.http_kernel.respond', [$this, 'compose'] );
return WPEMERGE_DIR . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'view.php';
}
/home/bridgefab.com.au/public_html/wp-includes/class-wp-hook.php
$this->iterations[ $nesting_level ] = $this->priorities;
$num_args = count( $args );
do {
$this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
$priority = $this->current_priority[ $nesting_level ];
foreach ( $this->callbacks[ $priority ] as $the_ ) {
if ( ! $this->doing_action ) {
$args[0] = $value;
}
// Avoid the array_slice() if possible.
if ( 0 === $the_['accepted_args'] ) {
$value = call_user_func( $the_['function'] );
} elseif ( $the_['accepted_args'] >= $num_args ) {
$value = call_user_func_array( $the_['function'], $args );
} else {
$value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) );
}
}
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
unset( $this->iterations[ $nesting_level ] );
unset( $this->current_priority[ $nesting_level ] );
--$this->nesting_level;
return $value;
}
/**
* Calls the callback functions that have been added to an action hook.
*
* @since 4.7.0
*
* @param array $args Parameters to pass to the callback functions.
/home/bridgefab.com.au/public_html/wp-includes/plugin.php
$all_args = func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
_wp_call_all_hook( $all_args );
}
if ( ! isset( $wp_filter[ $hook_name ] ) ) {
if ( isset( $wp_filter['all'] ) ) {
array_pop( $wp_current_filter );
}
return $value;
}
if ( ! isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $hook_name;
}
// Pass the value to WP_Hook.
array_unshift( $args, $value );
$filtered = $wp_filter[ $hook_name ]->apply_filters( $value, $args );
array_pop( $wp_current_filter );
return $filtered;
}
/**
* Calls the callback functions that have been added to a filter hook, specifying arguments in an array.
*
* @since 3.0.0
*
* @see apply_filters() This function is identical, but the arguments passed to the
* functions hooked to `$hook_name` are supplied using an array.
*
* @global WP_Hook[] $wp_filter Stores all of the filters and actions.
* @global int[] $wp_filters Stores the number of times each filter was triggered.
* @global string[] $wp_current_filter Stores the list of current filters with the current one last.
*
* @param string $hook_name The name of the filter hook.
* @param array $args The arguments supplied to the functions hooked to `$hook_name`.
/home/bridgefab.com.au/public_html/wp-includes/template-loader.php
if ( 'is_attachment' === $tag ) {
remove_filter( 'the_content', 'prepend_attachment' );
}
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;
}
/home/bridgefab.com.au/public_html/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
"/home/bridgefab.com.au/public_html/wp-includes/template-loader.php"
/home/bridgefab.com.au/public_html/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
"/home/bridgefab.com.au/public_html/wp-blog-header.php"