/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/app/themes/peuxflyfishing/app/Includes/ProductPaPrisePictogramControl.php
*
* @var \Illuminate\Contracts\Container\Container
*/
protected $app;
/**
* Creates a new Sage instance.
*
* @param ContainerContract $app
*/
public function __construct(ContainerContract $app)
{
$this->app = $app;
}
public function registerHooks(): void
{
add_action('woocommerce_product_thumbnails', function () {
$product = wc_get_product();
$product_variation_attributes = $product->get_variation_attributes() ?: [];
if (!empty($product_variation_attributes['pa_prise'])) {
$pa_prise_slugs = $product_variation_attributes['pa_prise'];
$pa_prise_pictograms = collect($pa_prise_slugs)
->map(function ($slug) {
$term = get_term_by('slug', $slug, 'pa_prise');
$pictogram = !empty($term) ? get_field('pa_prise_pictogram', $term) : [];
if (!empty($pictogram) && !is_array($pictogram)) {
$pictogram = acf_get_attachment($pictogram);
}
if (!empty($pictogram)) {
return [
'name' => $term->name,
'slug' => $term->slug,
'pictogram' => $pictogram['url'],
];
}
return [];
Arguments
"Call to undefined method WC_Product_Simple::get_variation_attributes() (View: /home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/app/themes/peuxflyfishing/resources/views/woocommerce/single-product.blade.php)"
/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/app/themes/peuxflyfishing/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();
}
Arguments
Error {#20682
#message: "Call to undefined method WC_Product_Simple::get_variation_attributes()"
#code: 0
#file: "/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/app/themes/peuxflyfishing/app/Includes/ProductPaPrisePictogramControl.php"
#line: 32
}
2
/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/app/themes/peuxflyfishing/app/Includes/ProductPaPrisePictogramControl.php
*
* @var \Illuminate\Contracts\Container\Container
*/
protected $app;
/**
* Creates a new Sage instance.
*
* @param ContainerContract $app
*/
public function __construct(ContainerContract $app)
{
$this->app = $app;
}
public function registerHooks(): void
{
add_action('woocommerce_product_thumbnails', function () {
$product = wc_get_product();
$product_variation_attributes = $product->get_variation_attributes() ?: [];
if (!empty($product_variation_attributes['pa_prise'])) {
$pa_prise_slugs = $product_variation_attributes['pa_prise'];
$pa_prise_pictograms = collect($pa_prise_slugs)
->map(function ($slug) {
$term = get_term_by('slug', $slug, 'pa_prise');
$pictogram = !empty($term) ? get_field('pa_prise_pictogram', $term) : [];
if (!empty($pictogram) && !is_array($pictogram)) {
$pictogram = acf_get_attachment($pictogram);
}
if (!empty($pictogram)) {
return [
'name' => $term->name,
'slug' => $term->slug,
'pictogram' => $pictogram['url'],
];
}
return [];
Arguments
"Call to undefined method WC_Product_Simple::get_variation_attributes()"
/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/wp/wp-includes/class-wp-hook.php
$nesting_level = $this->nesting_level++;
$this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
$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, (int) $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.
Arguments
/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/wp/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 ] = array_keys( $this->callbacks );
do {
$priority = current( $this->iterations[ $nesting_level ] );
Arguments
/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/wp/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 ) {
Arguments
/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/app/plugins/woocommerce/templates/single-product/product-image.php
'woocommerce-product-gallery--' . ( $post_thumbnail_id ? 'with-images' : 'without-images' ),
'woocommerce-product-gallery--columns-' . absint( $columns ),
'images',
)
);
?>
<div class="<?php echo esc_attr( implode( ' ', array_map( 'sanitize_html_class', $wrapper_classes ) ) ); ?>" data-columns="<?php echo esc_attr( $columns ); ?>" style="opacity: 0; transition: opacity .25s ease-in-out;">
<figure class="woocommerce-product-gallery__wrapper">
<?php
if ( $post_thumbnail_id ) {
$html = wc_get_gallery_image_html( $post_thumbnail_id, true );
} else {
$html = '<div class="woocommerce-product-gallery__image--placeholder">';
$html .= sprintf( '<img src="%s" alt="%s" class="wp-post-image" />', esc_url( wc_placeholder_img_src( 'woocommerce_single' ) ), esc_html__( 'Awaiting product image', 'woocommerce' ) );
$html .= '</div>';
}
echo apply_filters( 'woocommerce_single_product_image_thumbnail_html', $html, $post_thumbnail_id ); // phpcs:disable WordPress.XSS.EscapeOutput.OutputNotEscaped
do_action( 'woocommerce_product_thumbnails' );
?>
</figure>
</div>
Arguments
"woocommerce_product_thumbnails"
/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/app/plugins/woocommerce/includes/wc-core-functions.php
'template_path' => $template_path,
'located' => $template,
'args' => $args,
);
if ( ! empty( $args ) && is_array( $args ) ) {
if ( isset( $args['action_args'] ) ) {
wc_doing_it_wrong(
__FUNCTION__,
__( 'action_args should not be overwritten when calling wc_get_template.', 'woocommerce' ),
'3.6.0'
);
unset( $args['action_args'] );
}
extract( $args ); // @codingStandardsIgnoreLine
}
do_action( 'woocommerce_before_template_part', $action_args['template_name'], $action_args['template_path'], $action_args['located'], $action_args['args'] );
include $action_args['located'];
do_action( 'woocommerce_after_template_part', $action_args['template_name'], $action_args['template_path'], $action_args['located'], $action_args['args'] );
}
/**
* Like wc_get_template, but returns the HTML instead of outputting.
*
* @see wc_get_template
* @since 2.5.0
* @param string $template_name Template name.
* @param array $args Arguments. (default: array).
* @param string $template_path Template path. (default: '').
* @param string $default_path Default path. (default: '').
*
* @return string
*/
function wc_get_template_html( $template_name, $args = array(), $template_path = '', $default_path = '' ) {
ob_start();
wc_get_template( $template_name, $args, $template_path, $default_path );
return ob_get_clean();
Arguments
"/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/app/plugins/woocommerce/templates/single-product/product-image.php"
/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/app/plugins/woocommerce/includes/wc-template-functions.php
if ( ! wc_get_loop_prop( 'is_shortcode' ) ) {
$args['format'] = '';
$args['base'] = esc_url_raw( str_replace( 999999999, '%#%', remove_query_arg( 'add-to-cart', get_pagenum_link( 999999999, false ) ) ) );
}
wc_get_template( 'loop/pagination.php', $args );
}
}
/**
* Single Product
*/
if ( ! function_exists( 'woocommerce_show_product_images' ) ) {
/**
* Output the product image before the single product summary.
*/
function woocommerce_show_product_images() {
wc_get_template( 'single-product/product-image.php' );
}
}
if ( ! function_exists( 'woocommerce_show_product_thumbnails' ) ) {
/**
* Output the product thumbnails.
*/
function woocommerce_show_product_thumbnails() {
wc_get_template( 'single-product/product-thumbnails.php' );
}
}
/**
* Get HTML for a gallery image.
*
* Hooks: woocommerce_gallery_thumbnail_size, woocommerce_gallery_image_size and woocommerce_gallery_full_size accept name based image sizes, or an array of width/height values.
*
* @since 3.3.2
* @param int $attachment_id Attachment ID.
* @param bool $main_image Is this the main image or a thumbnail?.
Arguments
"single-product/product-image.php"
/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/wp/wp-includes/class-wp-hook.php
$nesting_level = $this->nesting_level++;
$this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
$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, (int) $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.
Arguments
/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/wp/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 ] = array_keys( $this->callbacks );
do {
$priority = current( $this->iterations[ $nesting_level ] );
Arguments
/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/wp/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 ) {
Arguments
/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/app/plugins/woocommerce/templates/content-single-product.php
*
* @hooked woocommerce_output_all_notices - 10
*/
do_action( 'woocommerce_before_single_product' );
if ( post_password_required() ) {
echo get_the_password_form(); // WPCS: XSS ok.
return;
}
?>
<div id="product-<?php the_ID(); ?>" <?php wc_product_class( '', $product ); ?>>
<?php
/**
* Hook: woocommerce_before_single_product_summary.
*
* @hooked woocommerce_show_product_sale_flash - 10
* @hooked woocommerce_show_product_images - 20
*/
do_action( 'woocommerce_before_single_product_summary' );
?>
<div class="summary entry-summary">
<?php
/**
* Hook: woocommerce_single_product_summary.
*
* @hooked woocommerce_template_single_title - 5
* @hooked woocommerce_template_single_rating - 10
* @hooked woocommerce_template_single_price - 10
* @hooked woocommerce_template_single_excerpt - 20
* @hooked woocommerce_template_single_add_to_cart - 30
* @hooked woocommerce_template_single_meta - 40
* @hooked woocommerce_template_single_sharing - 50
* @hooked WC_Structured_Data::generate_product_data() - 60
*/
do_action( 'woocommerce_single_product_summary' );
?>
</div>
Arguments
"woocommerce_before_single_product_summary"
/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/wp/wp-includes/template.php
/*
* This use of extract() cannot be removed. There are many possible ways that
* templates could depend on variables that it creates existing, and no way to
* detect and deprecate it.
*
* Passing the EXTR_SKIP flag is the safest option, ensuring globals and
* function variables cannot be overwritten.
*/
// phpcs:ignore WordPress.PHP.DontExtract.extract_extract
extract( $wp_query->query_vars, EXTR_SKIP );
}
if ( isset( $s ) ) {
$s = esc_attr( $s );
}
if ( $require_once ) {
require_once $_template_file;
} else {
require $_template_file;
}
}
Arguments
"/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/app/plugins/woocommerce/templates/content-single-product.php"
/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/app/plugins/woocommerce/includes/wc-core-functions.php
"{$slug}.php",
WC()->template_path() . "{$slug}.php",
)
);
}
// Don't cache the absolute path so that it can be shared between web servers with different paths.
$cache_path = wc_tokenize_path( $template, wc_get_path_define_tokens() );
wc_set_template_cache( $cache_key, $cache_path );
} else {
// Make sure that the absolute path to the template is resolved.
$template = wc_untokenize_path( $template, wc_get_path_define_tokens() );
}
// Allow 3rd party plugins to filter template file from their plugin.
$template = apply_filters( 'wc_get_template_part', $template, $slug, $name );
if ( $template ) {
load_template( $template, false );
}
}
/**
* Get other templates (e.g. product attributes) passing attributes and including the file.
*
* @param string $template_name Template name.
* @param array $args Arguments. (default: array).
* @param string $template_path Template path. (default: '').
* @param string $default_path Default path. (default: '').
*/
function wc_get_template( $template_name, $args = array(), $template_path = '', $default_path = '' ) {
$cache_key = sanitize_key( implode( '-', array( 'template', $template_name, $template_path, $default_path, Constants::get_constant( 'WC_VERSION' ) ) ) );
$template = (string) wp_cache_get( $cache_key, 'woocommerce' );
if ( ! $template ) {
$template = wc_locate_template( $template_name, $template_path, $default_path );
// Don't cache the absolute path so that it can be shared between web servers with different paths.
$cache_path = wc_tokenize_path( $template, wc_get_path_define_tokens() );
Arguments
"/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/app/plugins/woocommerce/templates/content-single-product.php"
false
/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/app/themes/peuxflyfishing/storage/framework/views/82f8807e8a3de7243f19b7c9881dcc7b28d1cf7a.php
<?php $__env->startSection('content'); ?>
<article <?php (post_class()); ?>>
<div class="section">
<?php
do_action('get_header', 'shop');
do_action('woocommerce_before_main_content');
?>
<?php if (empty($query)) : ?><?php global $wp_query; ?><?php $query = $wp_query; ?><?php endif; ?><?php if ($query->have_posts()) : ?><?php while ($query->have_posts()) : $query->the_post(); ?>
<?php
wc_get_template_part('content', 'single-product');
?>
<?php endwhile; wp_reset_postdata(); endif; ?>
<?php
do_action('woocommerce_after_main_content');
do_action('get_sidebar', 'shop');
do_action('get_footer', 'shop');
?>
</div>
<footer>
<?php echo wp_link_pages(['echo' => 0, 'before' => '<nav class="page-nav"><p>' . __('Pages:'), 'after' => '</p></nav>']); ?>
</footer>
</article>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/app/themes/peuxflyfishing/resources/views/woocommerce/single-product.blade.php ENDPATH**/ ?>
Arguments
"content"
"single-product"
/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/app/themes/peuxflyfishing/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/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/app/themes/peuxflyfishing/storage/framework/views/82f8807e8a3de7243f19b7c9881dcc7b28d1cf7a.php"
/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/app/themes/peuxflyfishing/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);
Arguments
"/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/app/themes/peuxflyfishing/storage/framework/views/82f8807e8a3de7243f19b7c9881dcc7b28d1cf7a.php"
array:4 [
"__env" => Illuminate\View\Factory {#17066}
"app" => Roots\Acorn\Application {#16975}
"post" => WP_Post {#20584}
"siteName" => "Peux Fly Fishing"
]
/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/app/themes/peuxflyfishing/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;
}
Arguments
"/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/app/themes/peuxflyfishing/resources/views/woocommerce/single-product.blade.php"
array:4 [
"__env" => Illuminate\View\Factory {#17066}
"app" => Roots\Acorn\Application {#16975}
"post" => WP_Post {#20584}
"siteName" => "Peux Fly Fishing"
]
/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/app/themes/peuxflyfishing/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/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/app/themes/peuxflyfishing/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/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/app/themes/peuxflyfishing/index.php
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>
<?php if (get_theme_support('ag-locomotive-scroll')): ?>
data-scroll-container
<?php endif; ?>
>
<?php if (get_theme_support('ag-page-transition')) : ?>
<div class="loading-container">
<div class="loading-screen"></div>
</div>
<?php endif; ?>
<?php wp_body_open(); ?>
<?php do_action('get_header'); ?>
<div id="app">
<?php echo \Roots\view(\Roots\app('sage.view'), \Roots\app('sage.data'))->render(); ?>
</div>
<?php do_action('get_footer'); ?>
<?php wp_footer(); ?>
</body>
</html>
/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/wp/wp-includes/template-loader.php
}
break;
}
}
if ( ! $template ) {
$template = get_index_template();
}
/**
* Filters the path of the current template before including it.
*
* @since 3.0.0
*
* @param string $template The path of the template to include.
*/
$template = apply_filters( 'template_include', $template );
if ( $template ) {
include $template;
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
wp_die( $theme->errors() );
}
}
return;
}
Arguments
"/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/app/themes/peuxflyfishing/index.php"
/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/wp/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/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/wp/wp-includes/template-loader.php"
/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/index.php
<?php
/**
* WordPress View Bootstrapper
*/
ini_set('upload_max_filesize', '12M');
ini_set('post_max_size', '12M');
define('WP_USE_THEMES', true);
require __DIR__ . '/wp/wp-blog-header.php';
Arguments
"/home/clients/e46214942426c864bc1fab9cbea2e847/sites/test.peuxflyfishing.com/web/wp/wp-blog-header.php"