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/product-grid.php
<?php

    /**
     * @var string $presetClass
     */
    $presetClass = ( 'grid' === $layout ) ? $gridPreset : $listPreset;

    $wrapper_attributes = get_block_wrapper_attributes(
		[
			'class' => 'root-' . $blockId,
		]
	);

?>
<div <?php echo wp_kses_data( $wrapper_attributes); ?>>
    <div class="eb-parent-wrapper eb-parent-<?php echo esc_attr( $blockId ); ?><?php echo esc_attr( $classHook ); ?>">
        <div
            class="<?php echo esc_attr( $blockId ); ?> eb-woo-products-wrapper"
            data-id="<?php echo esc_attr( $blockId ); ?>"
            data-querydata='<?php echo esc_attr( json_encode( $queryData ) ); ?>'
            data-attributes='<?php echo esc_attr( json_encode( $essentialAttr ) ); ?>'>
            <?php do_action( 'eb_woo_product_grid_taxonomy_filter', $essentialAttr );?>
            <div class="<?php echo esc_attr( $presetClass ); ?> eb-woo-products-gallery">
                <?php

                    if ( $query->have_posts() ) {
                        while ( $query->have_posts() ) {
                            $query->the_post();
                            $product = wc_get_product( get_the_ID() );

                            $helper::views(
                                'woocommerce/single-product',
                                [
                                    'product'           => $product,
                                    'showRating'        => $showRating,
                                    'ratingStyle'       => $ratingStyle,
                                    'showSoldCount'     => $showSoldCount,
                                    'showSoldCountBar'  => $showSoldCountBar,
                                    'soldCountPrefix'   => $soldCountPrefix,
                                    'soldCountSuffix'   => $soldCountSuffix,
                                    'stockPercent'      => $stockPercent,
                                    'showPrice'         => $showPrice,
                                    'layout'            => $layout,
                                    'showSaleBadge'     => $showSaleBadge,
                                    'gridPreset'        => $gridPreset,
                                    'saleBadgeAlign'    => $saleBadgeAlign,
                                    'saleText'          => $saleText,
                                    'productDescLength' => $productDescLength
                                ]
                            );
                        }
                    }

                    if ( ! $query->have_posts() ) {
                        $helper::views(
                            'common/no-content',
                            [
                                'content' => __( 'No Product Found', 'essential-blocks' )
                            ]
                        );
                    }
                ?>
            </div>
            <?php
                /**
                 * Pagination Markup
                 */
                if ( $query->have_posts() ) {
                    $helper::views(
                        'common/pagination',
                        array_merge(
                            $loadMoreOptions,
                            $queryData,
                            [
                                'parent_class' => 'ebproductgrid-pagination'
                            ]
                        )
                    );
                }
            ?>
        </div>
    </div>
</div>