![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/app/code/Cnc/CsBlock/view/frontend/templates/ |
<?php /** * Copyright (c) 2020 Kaliop Digital Commerce (https://digitalcommerce.kaliop.com) All Rights Reserved. * https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) * Cnc * Radosław Stępień <[email protected]> <[email protected]> */ /** @var Cnc\CsBlock\Block\ProductSelection $block */ $productItemViewModel = $block->getGenericProductItemViewModel(); $productHighlightName = $block->getBlockName(); $products = $block->getProducts(); $productItemTemplate = "Kaliop_CatalogGenericProductItem::item.phtml"; $viewMode = 'list'; /** CatalogGenericProductItem START (default display params) */ $displayParams = [ 'view_mode' => $viewMode, 'image_area' => 'category_page_list', 'show_description' => true, 'template_type' => \Magento\Catalog\Block\Product\ReviewRendererInterface::DEFAULT_VIEW, ]; /** CatalogGenericProductItem END */ ?> <section class="cs-block product-highlight" data-displayed-on-scroll=""> <div class="cs-block__container product-highlight__container"> <h2 class="cs-block__title"><?= $block->escapeHtml($productHighlightName) ?></h2> <div class="cs-block__content"> <ol class="products list items product-items" data-slideshow=""> <!-- TODO - add Product Item structure --> <?php foreach ($products as $product): ?> <?php /** CatalogGenericProductItem START (addto block per product) */ ?> <?php if ($addToBlock = $block->getChildBlock('addto')): ?> <?php $addToBlockHtml = $addToBlock->setProduct($product)->getChildHtml(); ?> <?php $displayParams['addto'] = $addToBlockHtml; ?> <?php endif; ?> <?php /** CatalogGenericProductItem END */ ?> <li class="item product product-item"> <div class="product-item-info" data-container="product-<?= /* @noEscape */ $viewMode ?>"> <?php /** CatalogGenericProductItem START (render) */ ?> <?= /* @noEscape */ $productItemViewModel->renderProductListItem( $product, $block, $displayParams, $productItemTemplate ); ?> <?php /** CatalogGenericProductItem END */ ?> </div> </li> <?php endforeach; ?> </ol> </div> </div> </section>