HEX
Server: Apache
System: Linux www 5.10.0-10-amd64 #1 SMP Debian 5.10.84-1 (2021-12-08) x86_64
User: root (0)
PHP: 8.2.1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals
Upload Files
File: /mnt/drbd/www/edenhouse/wp-content/plugins/essential-blocks/views/woocommerce/single-product.php
<?php

    $otherArgs = ['showSoldCount' => $showSoldCount, 'showSoldCountBar' => $showSoldCountBar, 'soldCountPrefix' => $soldCountPrefix, 'soldCountSuffix' => $soldCountSuffix, 'stockPercent' => $stockPercent];

    $grid_sequence = [
        'rating' => function () use ( $helper, $product, $showRating, $ratingStyle ) {
            if ( $showRating ) {
                $helper::views(
                    'woocommerce/rating',
                    [
                        'product'     => $product,
                        'ratingStyle' => $ratingStyle
                    ]
                );
            }
        },
        'title'  => function () use ( $helper ) {
            $helper::views( 'woocommerce/title' );
        },
        'price'  => function () use ( $helper, $product, $showPrice ) {
            if ( $showPrice ) {
                $helper::views(
                    'woocommerce/price',
                    [
                        'product' => $product
                    ]
                );
            }
        }
    ];

    $_grid_sequence = apply_filters( 'eb_woo_product_grid_grid_sequence', $grid_sequence, $helper, $product, $otherArgs );

    $list_sequence = [
        'title'       => function () use ( $helper ) {
            $helper::views( 'woocommerce/title' );
        },
        'price'       => function () use ( $helper, $product, $showPrice ) {
            if ( $showPrice ) {
                $helper::views(
                    'woocommerce/price',
                    [
                        'product' => $product
                    ]
                );
            }
        },
        'rating'      => function () use ( $helper, $product, $showRating, $ratingStyle ) {
            if ( $showRating ) {
                $helper::views(
                    'woocommerce/rating',
                    [
                        'product'     => $product,
                        'ratingStyle' => $ratingStyle
                    ]
                );
            }
        },
        'details'     => function () use ( $helper, $productDescLength ) {
            $helper::views(
                'woocommerce/details',
                [
                    'productDescLength' => $productDescLength
                ]
            );
        },
        'button-list' => function () use ( $helper ) {
            $helper::views( 'woocommerce/button-list' );
        }
    ];

    $_list_sequence = apply_filters( 'eb_woo_product_grid_list_sequence', $list_sequence, $helper, $product, $otherArgs );

?>

<div class="eb-woo-products-col">
	<div class="eb-woo-product">
		<?php if ( 'grid' === $layout && 'grid-preset-3' === $gridPreset ): ?>
			<a class="grid-preset-anchor" href="<?php echo esc_attr( esc_url( get_permalink() ) ); ?>"></a>
		<?php endif;?>

		<div class="eb-woo-product-image-wrapper">
			<div class="eb-woo-product-image">
				<?php if ( 'list' === $layout ): ?>
					<a href="<?php echo esc_attr( esc_url( get_permalink() ) ); ?>">
					<?php
                        endif;

                        echo wp_kses_post( $product->get_image( 'woocommerce_thumbnail' ) );

                        if ( $showSaleBadge && $product->is_on_sale() ) {
                            echo wp_kses_post( '<span class="eb-woo-product-ribbon ' . $saleBadgeAlign . '">' . $saleText . '</span>' );
                        }

                        if ( 'list' === $layout ) {
                            echo wp_kses_post( '</a>' );
                        }
                    ?>
			</div>

			<?php if ( 'grid' === $layout ): ?>
				<div class="eb-woo-product-overlay">
					<?php $helper::views( 'woocommerce/button-list' );?>
				</div>
			<?php endif;?>
		</div>
		<div class="eb-woo-product-content-wrapper">
			<div class="eb-woo-product-content">
				<?php
                    $_sequence = ( 'list' === $layout ) ? $_list_sequence : $_grid_sequence;
                    foreach ( $_sequence as $_sq_function ) {
                        $_sq_function();
                    }
                ?>
			</div>
		</div>
	</div>
</div>