/home/drkevindolan.com.au/public_html/wp-admin/includes/class-wp-filesystem-ftpext.php
* Checks if a file or directory exists.
*
* @since 2.5.0
* @since 6.3.0 Returns false for an empty path.
*
* @param string $path Path to file or directory.
* @return bool Whether $path exists or not.
*/
public function exists( $path ) {
/*
* Check for empty path. If ftp_nlist() receives an empty path,
* it checks the current working directory and may return true.
*
* See https://core.trac.wordpress.org/ticket/33058.
*/
if ( '' === $path ) {
return false;
}
$list = ftp_nlist( $this->link, $path );
if ( empty( $list ) && $this->is_dir( $path ) ) {
return true; // File is an empty directory.
}
return ! empty( $list ); // Empty list = no file, so invert.
}
/**
* Checks if resource is a file.
*
* @since 2.5.0
*
* @param string $file File path.
* @return bool Whether $file is a file.
*/
public function is_file( $file ) {
return $this->exists( $file ) && ! $this->is_dir( $file );
}
Arguments
"ftp_nlist() expects parameter 1 to be resource, null given (View: /home/drkevindolan.com.au/public_html/wp-content/themes/surfpacific/views/partials/header.blade.php) (View: /home/drkevindolan.com.au/public_html/wp-content/themes/surfpacific/views/partials/header.blade.php) (View: /home/drkevindolan.com.au/public_html/wp-content/themes/surfpacific/views/partials/header.blade.php)"
/home/drkevindolan.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/drkevindolan.com.au/public_html/wp-admin/includes/class-wp-filesystem-ftpext.php
* Checks if a file or directory exists.
*
* @since 2.5.0
* @since 6.3.0 Returns false for an empty path.
*
* @param string $path Path to file or directory.
* @return bool Whether $path exists or not.
*/
public function exists( $path ) {
/*
* Check for empty path. If ftp_nlist() receives an empty path,
* it checks the current working directory and may return true.
*
* See https://core.trac.wordpress.org/ticket/33058.
*/
if ( '' === $path ) {
return false;
}
$list = ftp_nlist( $this->link, $path );
if ( empty( $list ) && $this->is_dir( $path ) ) {
return true; // File is an empty directory.
}
return ! empty( $list ); // Empty list = no file, so invert.
}
/**
* Checks if resource is a file.
*
* @since 2.5.0
*
* @param string $file File path.
* @return bool Whether $file is a file.
*/
public function is_file( $file ) {
return $this->exists( $file ) && ! $this->is_dir( $file );
}
Arguments
"ftp_nlist() expects parameter 1 to be resource, null given (View: /home/drkevindolan.com.au/public_html/wp-content/themes/surfpacific/views/partials/header.blade.php) (View: /home/drkevindolan.com.au/public_html/wp-content/themes/surfpacific/views/partials/header.blade.php)"
/home/drkevindolan.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/drkevindolan.com.au/public_html/wp-admin/includes/class-wp-filesystem-ftpext.php
* Checks if a file or directory exists.
*
* @since 2.5.0
* @since 6.3.0 Returns false for an empty path.
*
* @param string $path Path to file or directory.
* @return bool Whether $path exists or not.
*/
public function exists( $path ) {
/*
* Check for empty path. If ftp_nlist() receives an empty path,
* it checks the current working directory and may return true.
*
* See https://core.trac.wordpress.org/ticket/33058.
*/
if ( '' === $path ) {
return false;
}
$list = ftp_nlist( $this->link, $path );
if ( empty( $list ) && $this->is_dir( $path ) ) {
return true; // File is an empty directory.
}
return ! empty( $list ); // Empty list = no file, so invert.
}
/**
* Checks if resource is a file.
*
* @since 2.5.0
*
* @param string $file File path.
* @return bool Whether $file is a file.
*/
public function is_file( $file ) {
return $this->exists( $file ) && ! $this->is_dir( $file );
}
Arguments
"ftp_nlist() expects parameter 1 to be resource, null given (View: /home/drkevindolan.com.au/public_html/wp-content/themes/surfpacific/views/partials/header.blade.php)"
/home/drkevindolan.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/drkevindolan.com.au/public_html/wp-admin/includes/class-wp-filesystem-ftpext.php
* Checks if a file or directory exists.
*
* @since 2.5.0
* @since 6.3.0 Returns false for an empty path.
*
* @param string $path Path to file or directory.
* @return bool Whether $path exists or not.
*/
public function exists( $path ) {
/*
* Check for empty path. If ftp_nlist() receives an empty path,
* it checks the current working directory and may return true.
*
* See https://core.trac.wordpress.org/ticket/33058.
*/
if ( '' === $path ) {
return false;
}
$list = ftp_nlist( $this->link, $path );
if ( empty( $list ) && $this->is_dir( $path ) ) {
return true; // File is an empty directory.
}
return ! empty( $list ); // Empty list = no file, so invert.
}
/**
* Checks if resource is a file.
*
* @since 2.5.0
*
* @param string $file File path.
* @return bool Whether $file is a file.
*/
public function is_file( $file ) {
return $this->exists( $file ) && ! $this->is_dir( $file );
}
Arguments
"ftp_nlist() expects parameter 1 to be resource, null given"
/home/drkevindolan.com.au/public_html/wp-admin/includes/class-wp-filesystem-ftpext.php
* Checks if a file or directory exists.
*
* @since 2.5.0
* @since 6.3.0 Returns false for an empty path.
*
* @param string $path Path to file or directory.
* @return bool Whether $path exists or not.
*/
public function exists( $path ) {
/*
* Check for empty path. If ftp_nlist() receives an empty path,
* it checks the current working directory and may return true.
*
* See https://core.trac.wordpress.org/ticket/33058.
*/
if ( '' === $path ) {
return false;
}
$list = ftp_nlist( $this->link, $path );
if ( empty( $list ) && $this->is_dir( $path ) ) {
return true; // File is an empty directory.
}
return ! empty( $list ); // Empty list = no file, so invert.
}
/**
* Checks if resource is a file.
*
* @since 2.5.0
*
* @param string $file File path.
* @return bool Whether $file is a file.
*/
public function is_file( $file ) {
return $this->exists( $file ) && ! $this->is_dir( $file );
}
/home/drkevindolan.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge-app-core/src/Concerns/ReadsJsonTrait.php
* @return string
*/
abstract protected function getJsonPath();
/**
* Load the json file.
*
* @param string $file
*
* @return array
*/
protected function load( $file ) {
/** @var \WP_Filesystem_Base $wp_filesystem */
global $wp_filesystem;
require_once ABSPATH . '/wp-admin/includes/file.php';
WP_Filesystem();
if ( ! $wp_filesystem->exists( $file ) ) {
throw new JsonFileNotFoundException( 'The required ' . basename( $file ) . ' file is missing.' );
}
$contents = $wp_filesystem->get_contents( $file );
$json = json_decode( $contents, true );
$json_error = json_last_error();
if ( $json_error !== JSON_ERROR_NONE ) {
throw new JsonFileInvalidException( 'The required ' . basename( $file ) . ' file is not valid JSON (error code ' . $json_error . ').' );
}
return $json;
}
/**
* Get the entire json array.
*
* @return array
*/
protected function getAll() {
/home/drkevindolan.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge-app-core/src/Assets/Manifest.php
*
* @param string $path
*/
public function __construct( $path ) {
$this->path = $path;
}
/**
* {@inheritDoc}
*/
protected function getJsonPath() {
return MixedType::normalizePath( $this->path . DIRECTORY_SEPARATOR . 'dist' . DIRECTORY_SEPARATOR . 'manifest.json' );
}
/**
* {@inheritDoc}
*/
protected function load( $file ) {
try {
return $this->traitLoad( $file );
} catch ( JsonFileNotFoundException $e ) {
// We used to throw an exception here but it just causes confusion for new users.
}
return [];
}
}
/home/drkevindolan.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge-app-core/src/Concerns/ReadsJsonTrait.php
$contents = $wp_filesystem->get_contents( $file );
$json = json_decode( $contents, true );
$json_error = json_last_error();
if ( $json_error !== JSON_ERROR_NONE ) {
throw new JsonFileInvalidException( 'The required ' . basename( $file ) . ' file is not valid JSON (error code ' . $json_error . ').' );
}
return $json;
}
/**
* Get the entire json array.
*
* @return array
*/
protected function getAll() {
if ($this->cache === null) {
$this->cache = $this->load( $this->getJsonPath() );
}
return $this->cache;
}
/**
* Get a json value.
*
* @param string $key
* @param mixed $default
* @return mixed
*/
public function get( $key, $default = null ) {
return Arr::get( $this->getAll(), $key, $default );
}
}
/home/drkevindolan.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge-app-core/src/Concerns/ReadsJsonTrait.php
*
* @return array
*/
protected function getAll() {
if ($this->cache === null) {
$this->cache = $this->load( $this->getJsonPath() );
}
return $this->cache;
}
/**
* Get a json value.
*
* @param string $key
* @param mixed $default
* @return mixed
*/
public function get( $key, $default = null ) {
return Arr::get( $this->getAll(), $key, $default );
}
}
/home/drkevindolan.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge-app-core/src/Assets/Assets.php
/**
* Get the public URL to the app root.
*
* @return string
*/
public function getUrl() {
return $this->url;
}
/**
* Get the public URL to a generated asset based on manifest.json.
*
* @param string $asset
*
* @return string
*/
public function getAssetUrl( $asset ) {
// Path with unix-style slashes.
$path = $this->manifest->get( $asset, '' );
if ( ! $path ) {
return '';
}
$url = wp_parse_url( $path );
if ( isset( $url['scheme'] ) ) {
// Path is an absolute URL.
return $path;
}
// Path is relative.
return $this->getUrl() . '/dist/' . $path;
}
/**
* Get the public URL to a generated JS or CSS bundle.
* Handles SCRIPT_DEBUG and hot reloading.
*
/home/drkevindolan.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge-app-core/src/Assets/Assets.php
* @param array<string> $dependencies
* @param boolean $in_footer
* @return void
*/
public function enqueueScript( $handle, $src, $dependencies = [], $in_footer = false ) {
wp_enqueue_script( $handle, $src, $dependencies, $this->generateFileVersion( $src ), $in_footer );
}
/**
* Add favicon meta.
*
* @return void
*/
public function addFavicon() {
if ( function_exists( 'has_site_icon' ) && has_site_icon() ) {
// allow users to override the favicon using the WordPress Customizer
return;
}
$favicon_url = apply_filters( 'wpemerge_app_core_favicon_url', $this->getAssetUrl( 'images/favicon.ico' ) );
echo '<link rel="shortcut icon" href="' . $favicon_url . '" />' . "\n";
}
}
/home/drkevindolan.com.au/public_html/wp-content/themes/surfpacific/app/src/WordPress/AssetsServiceProvider.php
*
* @return void
*/
public function enqueueEditorAssets() {
// Enqueue scripts.
\App::core()->assets()->enqueueScript(
'theme-editor-js-bundle',
\App::core()->assets()->getBundleUrl( 'editor', $this->min_assets.'.js' ),
[ 'jquery' ],
true
);
}
/**
* Add favicon.
*
* @return void
*/
public function addFavicon() {
\App::core()->assets()->addFavicon();
}
/**
* Fix upload_dir urls having incorrect url schema.
*
* The wp_upload_dir() function urls' schema depends on the site_url option which
* can cause issues when HTTPS is forced using a plugin, for example.
*
* @link https://core.trac.wordpress.org/ticket/25449
* @param array $upload_dir Array containing the current upload directory’s path and url.
* @return array Filtered array.
*/
public function fixUploadDirUrlSchema( $upload_dir ) {
if ( is_ssl() ) {
$upload_dir['url'] = set_url_scheme( $upload_dir['url'], 'https' );
$upload_dir['baseurl'] = set_url_scheme( $upload_dir['baseurl'], 'https' );
} else {
$upload_dir['url'] = set_url_scheme( $upload_dir['url'], 'http' );
$upload_dir['baseurl'] = set_url_scheme( $upload_dir['baseurl'], 'http' );
/home/drkevindolan.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/drkevindolan.com.au/public_html/wp-includes/class-wp-hook.php
} 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.
*/
public function do_action( $args ) {
$this->doing_action = true;
$this->apply_filters( '', $args );
// If there are recursive calls to the current action, we haven't finished it until we get to the last one.
if ( ! $this->nesting_level ) {
$this->doing_action = false;
}
}
/**
* Processes the functions hooked into the 'all' hook.
*
* @since 4.7.0
*
* @param array $args Arguments to pass to the hook callbacks. Passed by reference.
*/
public function do_all_hook( &$args ) {
$nesting_level = $this->nesting_level++;
$this->iterations[ $nesting_level ] = $this->priorities;
do {
$priority = current( $this->iterations[ $nesting_level ] );
/home/drkevindolan.com.au/public_html/wp-includes/plugin.php
if ( ! isset( $wp_filter[ $hook_name ] ) ) {
if ( isset( $wp_filter['all'] ) ) {
array_pop( $wp_current_filter );
}
return;
}
if ( ! isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $hook_name;
}
if ( empty( $arg ) ) {
$arg[] = '';
} elseif ( is_array( $arg[0] ) && 1 === count( $arg[0] ) && isset( $arg[0][0] ) && is_object( $arg[0][0] ) ) {
// Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
$arg[0] = $arg[0][0];
}
$wp_filter[ $hook_name ]->do_action( $arg );
array_pop( $wp_current_filter );
}
/**
* Calls the callback functions that have been added to an action hook, specifying arguments in an array.
*
* @since 2.1.0
*
* @see do_action() 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_actions Stores the number of times each action 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 action to be executed.
* @param array $args The arguments supplied to the functions hooked to `$hook_name`.
*/
function do_action_ref_array( $hook_name, $args ) {
/home/drkevindolan.com.au/public_html/wp-includes/general-template.php
* @param string $before The HTML to output before the date.
* @param string $after The HTML to output after the date.
*/
echo apply_filters( 'the_weekday_date', $the_weekday_date, $before, $after );
}
/**
* Fires the wp_head action.
*
* See {@see 'wp_head'}.
*
* @since 1.2.0
*/
function wp_head() {
/**
* Prints scripts or data in the head tag on the front end.
*
* @since 1.5.0
*/
do_action( 'wp_head' );
}
/**
* Fires the wp_footer action.
*
* See {@see 'wp_footer'}.
*
* @since 1.5.1
*/
function wp_footer() {
/**
* Prints scripts or data before the closing body tag on the front end.
*
* @since 1.5.1
*/
do_action( 'wp_footer' );
}
/**
* Fires the wp_body_open action.
/home/drkevindolan.com.au/public_html/wp-content/themes/surfpacific/cache/dff3095d9c37bff657483aed159cdaf092cfc18f.php
<?php echo e(apply_filters( "wpemerge.partials.header.hook", true ) && do_action('get_header')); ?>
<!DOCTYPE html>
<html <?php echo e(language_attributes()); ?> <?php echo is_page_template('page-faqs.blade.php') ? 'itemscope itemtype="https://schema.org/FAQPage"' : ''; ?>>
<head>
<meta http-equiv="Content-Type" content="<?php echo e(bloginfo( 'html_type' )); ?>" charset="<?php echo e(bloginfo( 'charset' )); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0" />
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php echo e(bloginfo( 'pingback_url' )); ?>" />
<link rel="stylesheet" href="https://use.typekit.net/rec0hxv.css">
<?php echo e(wp_head()); ?>
</head>
<body <?php echo e(body_class()); ?>>
<?php echo e(wp_body_open()); ?>
<div id="page-wrapper">
<header id="header-wrapper" class="primary-header">
<?php template('header'); ?>
</header>
<?php template('informationBar'); ?>
<div id="page-side-and-main-wrapper">
<aside id="page-side-wrapper">
<div class="section-page-side">
<div class="desktop-sidebar">
<div class="desktop-sidebar-menu">
<?php template('desktopMenu'); ?>
/home/drkevindolan.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/drkevindolan.com.au/public_html/wp-content/themes/surfpacific/cache/dff3095d9c37bff657483aed159cdaf092cfc18f.php"
/home/drkevindolan.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/drkevindolan.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/drkevindolan.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/drkevindolan.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/drkevindolan.com.au/public_html/wp-content/themes/surfpacific/cache/01e9a41ab940f9db7473809247e639d9cb8f9cde.php
<?php echo $__env->make('views.partials.header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php if(!is_singular()): ?>
<?php echo e(app_the_title( '<h2 class="post-title">', '</h2>' )); ?>
<?php endif; ?>
<?php echo $__env->yieldContent('content'); ?>
<?php echo $__env->make('views.partials.footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php /**PATH /home/drkevindolan.com.au/public_html/wp-content/themes/surfpacific/views/layouts/app.blade.php ENDPATH**/ ?>
/home/drkevindolan.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/drkevindolan.com.au/public_html/wp-content/themes/surfpacific/cache/01e9a41ab940f9db7473809247e639d9cb8f9cde.php"
/home/drkevindolan.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/drkevindolan.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/drkevindolan.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/drkevindolan.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/drkevindolan.com.au/public_html/wp-content/themes/surfpacific/cache/0382b44c003595a32b68c77497e7dff296220efa.php
<?php $__env->startSection('content'); ?>
<?php while(have_posts()): ?> <?php echo e(the_post()); ?>
<article <?php echo e(post_class()); ?>>
<?php echo the_content(); ?>
</article>
<?php endwhile; ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('views.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/drkevindolan.com.au/public_html/wp-content/themes/surfpacific/page.blade.php ENDPATH**/ ?>
/home/drkevindolan.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/drkevindolan.com.au/public_html/wp-content/themes/surfpacific/cache/0382b44c003595a32b68c77497e7dff296220efa.php"
/home/drkevindolan.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/drkevindolan.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/drkevindolan.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/drkevindolan.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/drkevindolan.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/drkevindolan.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/drkevindolan.com.au/public_html/wp-content/themes/surfpacific/vendor/htmlburger/wpemerge-blade/src/View/BladeView.php
}
/**
* {@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/drkevindolan.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/drkevindolan.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/drkevindolan.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/drkevindolan.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/drkevindolan.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/drkevindolan.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/drkevindolan.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/drkevindolan.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/drkevindolan.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/drkevindolan.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/drkevindolan.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/drkevindolan.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/drkevindolan.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/drkevindolan.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/drkevindolan.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/drkevindolan.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/drkevindolan.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/drkevindolan.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/drkevindolan.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/drkevindolan.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/drkevindolan.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/drkevindolan.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/drkevindolan.com.au/public_html/wp-includes/template-loader.php"
/home/drkevindolan.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/drkevindolan.com.au/public_html/wp-blog-header.php"