HEX
Server: nginx/1.24.0
System: Linux webserver 6.8.0-59-generic #61-Ubuntu SMP PREEMPT_DYNAMIC Fri Apr 11 23:16:11 UTC 2025 x86_64
User: wpuser (1002)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /opt/wpsites/datainsightnow.com/wp-content/plugins/essential-blocks/views/product-grid.php
<?php

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

?>
<div class="eb-parent-wrapper eb-parent-<?php echo esc_attr( $blockId ); ?> <?php echo esc_attr( $classHook ); ?>">
	<div
		class="eb-woo-products-wrapper <?php echo esc_attr( $blockId ); ?>"
		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 ) ); ?>'>
		<div class="eb-woo-products-gallery <?php echo esc_attr( $presetClass ); ?>">
			<?php

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

					$helper::views(
						'woocommerce/single-product',
						array(
							'product'           => $product,
							'showRating'        => $showRating,
							'showPrice'         => $showPrice,
							'layout'            => $layout,
							'showSaleBadge'     => $showSaleBadge,
							'gridPreset'        => $gridPreset,
							'saleBadgeAlign'    => $saleBadgeAlign,
							'saleText'          => $saleText,
							'productDescLength' => $productDescLength,
						)
					);
				}
			}

			if ( ! $query->have_posts() ) {
				$helper::views(
					'common/no-content',
					array(
						'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>