ltsecurityinc安防产品在线商城代码
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 33 KiB |
+14
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<body>
|
||||
<block class="Magento\Framework\View\Element\RendererList" name="category.product.type.widget.details.renderers">
|
||||
<block class="Magento\Framework\View\Element\Template" name="category.product.type.details.renderers.default" as="default"/>
|
||||
</block>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,5 @@
|
||||
var config = {
|
||||
paths: {
|
||||
'loopOwlAddtocart': 'Olegnax_ProductSlider/js/loopaddtocart-owl.carousel',
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,202 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
// @codingStandardsIgnoreFile
|
||||
|
||||
/** @var ProductsList $block */
|
||||
|
||||
use Magento\Catalog\Block\Product\ReviewRendererInterface;
|
||||
use Magento\CatalogWidget\Block\Product\ProductsList;
|
||||
use Magento\Framework\App\Action\Action;
|
||||
|
||||
?>
|
||||
<?php if ($exist = ($block->getProductCollection() && $block->getProductCollection()->getSize())): ?>
|
||||
<?php
|
||||
$theme_helper = $this->helper('Olegnax\Athlete2\Helper\ProductList');
|
||||
$showTitle = $this->getShowTitle();
|
||||
$titleTag = 'strong';
|
||||
$navPosition = $this->getNavPosition();
|
||||
if ($this->getTitleTag()) {
|
||||
$titleTag = $this->getTitleTag();
|
||||
}
|
||||
$classes = [
|
||||
'product-columns-' . $this->getColumnsDesktop(),
|
||||
'product-columns-l-' . $this->getColumnsDesktopSmall(),
|
||||
'product-columns-m-' . $this->getColumnsTablet(),
|
||||
'product-columns-s-' . $this->getColumnsMobile(),
|
||||
'owl-dots--align-' . $this->getDotsAlign(),
|
||||
'owl-nav--position-' . $navPosition,
|
||||
'title--align-' . $this->getTitleAlign(),
|
||||
];
|
||||
if ($this->getDots()) {
|
||||
$classes[] = 'owl-dots--show';
|
||||
}
|
||||
if ($this->getTitleSideLine()) {
|
||||
$classes[] = 'title--sideline';
|
||||
}
|
||||
$type = 'widget-product-grid';
|
||||
$mode = 'grid';
|
||||
$image = 'new_products_content_widget_grid';
|
||||
$items = $block->getProductCollection()->getItems();
|
||||
$showWishlist = $this->getShowWishlist();
|
||||
$showCompare = $this->getShowCompare();
|
||||
$showCart = $this->getShowAddtocart();
|
||||
$showQuickview = $this->getShowQuickview() && $theme_helper->isActivePlugin('Olegnax_Quickview');
|
||||
$showReview = $this->getShowReview();
|
||||
$templateType = ReviewRendererInterface::DEFAULT_VIEW;
|
||||
$description = false;
|
||||
$cartIcon = '<svg xmlns="http://www.w3.org/2000/svg" class="minicart-icon-1" width="14" height="16" viewBox="0 0 14 16">
|
||||
<path d="M11,3V0H3V3H0V16H14V3H11ZM5,2H9V3H5V2Zm7,12H2V5H3V7H5V5H9V7h2V5h1v9Z"></path>
|
||||
</svg>';
|
||||
$compareIcon = '<svg xmlns="http://www.w3.org/2000/svg" width="15" height="16" viewBox="0 0 15 16">
|
||||
<g>
|
||||
<polygon points="2 2 8 2 8 0 0 0 0 12 3 12 3 10 2 10 2 2"></polygon>
|
||||
<rect x="8" y="2" width="2" height="1"></rect>
|
||||
<polygon points="13 6 13 14 6 14 6 6 13 6 13 4 4 4 4 16 15 16 15 6 13 6"></polygon>
|
||||
</g>
|
||||
</svg>';
|
||||
$titleClass = 'no-title';
|
||||
if ($showTitle) {
|
||||
$titleClass = 'title-' . $titleTag;
|
||||
}
|
||||
?>
|
||||
<div id="ox_<?= $block->getUnderlineNameInLayout() ?>"
|
||||
class="block widget products-grid__layout-default block-products-list <?= /* @noEscape */
|
||||
$mode ?> <?=
|
||||
implode(' ', $classes)
|
||||
?>">
|
||||
<?php if ($showTitle && $block->getTitle() || ($navPosition == 'title' && $this->getNav())): ?>
|
||||
<div class="block-title <?= $titleClass ?>">
|
||||
<?php if ($showTitle && $block->getTitle()) { ?>
|
||||
<<?= $titleTag ?>><?= $block->escapeHtml(__($block->getTitle())) ?></<?= $titleTag ?>>
|
||||
<?php } ?>
|
||||
<?php if ($navPosition == 'title') { ?>
|
||||
<div class="owl-nav ox-owl-nav">
|
||||
<button type="button" role="presentation" class="owl-prev ox-owl-prev"><span
|
||||
aria-label="Previous">‹</span></button>
|
||||
<button type="button" role="presentation" class="owl-next ox-owl-next"><span aria-label="Next">›</span>
|
||||
</button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<div class="block-content">
|
||||
<div class="products-<?= /* @noEscape */
|
||||
$mode ?> <?= /* @noEscape */
|
||||
$mode ?>">
|
||||
<div class="product-items owl-carousel <?= /* @noEscape */
|
||||
$type ?>" data-role="product-owlCarousel"
|
||||
data-mage-init='{"OXowlCarousel":<?= $block->escapeHtml($block->getCarouselOptions()) ?>}'>
|
||||
<?php $iterator = 1; ?>
|
||||
<?php foreach ($items as $_item): ?>
|
||||
<div class="product-item-info">
|
||||
<div class="product-grid__image-wrapper">
|
||||
<a href="<?= $block->escapeUrl($block->getProductUrl($_item)) ?>"
|
||||
class="product-item-photo">
|
||||
<?= $block->getLazyImage($_item, $image)->toHtml() ?>
|
||||
</a>
|
||||
<?php if ($showWishlist || $showCompare || $showCart || $showQuickview): ?>
|
||||
<div class="product-item-inner">
|
||||
<div class="product-item-actions">
|
||||
<div class="actions-primary">
|
||||
<?php if ($_item->isSaleable() && $showCart): ?>
|
||||
<?php $postParams = $block->getAddToCartPostParams($_item); ?>
|
||||
<form data-role="tocart-form"
|
||||
data-product-sku="<?= $block->escapeHtml($_item->getSku()) ?>"
|
||||
action="<?= /* @NoEscape */
|
||||
$postParams['action'] ?>" method="post">
|
||||
<input type="hidden" name="product"
|
||||
value="<?= /* @escapeNotVerified */
|
||||
$postParams['data']['product'] ?>">
|
||||
<input type="hidden" name="<?= Action::PARAM_NAME_URL_ENCODED ?>"
|
||||
value="<?= /* @escapeNotVerified */
|
||||
$postParams['data'][Action::PARAM_NAME_URL_ENCODED] ?>">
|
||||
<?= $block->getBlockHtml('formkey') ?>
|
||||
<button type="submit"
|
||||
title="<?= $block->escapeHtml(__('Add to Cart')) ?>"
|
||||
class="action tocart primary">
|
||||
<?= $cartIcon ?><span><?= /* @escapeNotVerified */
|
||||
__('Add to Cart') ?></span>
|
||||
</button>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
<?php if ($showWishlist || $showCompare): ?>
|
||||
<div class="actions-secondary" data-role="add-to-links">
|
||||
<?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow() && $showWishlist): ?>
|
||||
<a href="#"
|
||||
data-post='<?= /* @noEscape */
|
||||
$block->getAddToWishlistParams($_item) ?>'
|
||||
class="action towishlist" data-action="add-to-wishlist"
|
||||
title="<?= $block->escapeHtmlAttr(__('Add to Wish List')) ?>">
|
||||
<span><?= $block->escapeHtml(__('Add to Wish List')) ?></span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php if ($block->getAddToCompareUrl() && $showCompare): ?>
|
||||
<?php $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare'); ?>
|
||||
<a href="#" class="action tocompare"
|
||||
data-post='<?= /* @noEscape */
|
||||
$compareHelper->getPostDataParams($_item) ?>'
|
||||
title="<?= $block->escapeHtmlAttr(__('Add to Compare')) ?>">
|
||||
<?= $compareIcon ?>
|
||||
<span><?= $block->escapeHtml(__('Add to Compare')) ?></span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php
|
||||
if ($showQuickview) {
|
||||
echo $this->helper('Olegnax\Quickview\Helper\Helper')->getButton($_item, 'button quick-view');
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<a href="<?= $block->escapeUrl($block->getProductUrl($_item)) ?>"
|
||||
class="overlay-link"></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="product-grid-overlay"></div>
|
||||
<div class="product-item-details">
|
||||
<strong class="product-item-name">
|
||||
<a title="<?= $block->escapeHtml($_item->getName()) ?>"
|
||||
href="<?= $block->escapeUrl($block->getProductUrl($_item)) ?>"
|
||||
class="product-item-link">
|
||||
<?= $block->escapeHtml($_item->getName()) ?>
|
||||
</a>
|
||||
</strong>
|
||||
<?php
|
||||
echo $block->getProductPriceHtml($_item, $type);
|
||||
echo $block->getMSRPHtml($_item);
|
||||
?>
|
||||
|
||||
<?php if ($templateType && $showReview): ?>
|
||||
<?= $block->getReviewsSummaryHtml($_item, $templateType)
|
||||
?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
</div>
|
||||
<?= $block->getPagerHtml() ?>
|
||||
</div>
|
||||
<?php if (isset($_item) && $showCart && !$block->isRedirectToCartEnabled()): ?>
|
||||
<script type="text/x-magento-init">
|
||||
{
|
||||
"[data-role=tocart-form], .form.map.checkout": {
|
||||
"catalogAddToCart": {
|
||||
"product_sku": "<?= /* @NoEscape */
|
||||
$_item->getSku() ?>"
|
||||
}
|
||||
},
|
||||
"[data-role=product-owlCarousel]": {
|
||||
"loopOwlAddtocart": {}
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,205 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
// @codingStandardsIgnoreFile
|
||||
|
||||
/** @var ProductsList $block */
|
||||
|
||||
use Magento\Catalog\Block\Product\ReviewRendererInterface;
|
||||
use Magento\CatalogWidget\Block\Product\ProductsList;
|
||||
use Magento\Framework\App\Action\Action;
|
||||
|
||||
?>
|
||||
<?php if ($exist = ($block->getProductCollection() && $block->getProductCollection()->getSize())): ?>
|
||||
<?php
|
||||
$theme_helper = $this->helper('Olegnax\Athlete2\Helper\ProductList');
|
||||
$showTitle = $this->getShowTitle();
|
||||
$showCategory = $theme_helper->getConfig('athlete2_settings/products_listing/category_name');
|
||||
$titleTag = 'strong';
|
||||
$navPosition = $this->getNavPosition();
|
||||
if ($this->getTitleTag()) {
|
||||
$titleTag = $this->getTitleTag();
|
||||
}
|
||||
$classes = [];
|
||||
$classes[] = 'product-columns-' . $this->getColumnsDesktop();
|
||||
$classes[] = 'product-columns-l-' . $this->getColumnsDesktopSmall();
|
||||
$classes[] = 'product-columns-m-' . $this->getColumnsTablet();
|
||||
$classes[] = 'product-columns-s-' . $this->getColumnsMobile();
|
||||
$classes[] = 'owl-dots--align-' . $this->getDotsAlign();
|
||||
$classes[] = 'owl-nav--position-' . $navPosition;
|
||||
$classes[] = 'title--align-' . $this->getTitleAlign();
|
||||
if ($this->getDots()) {
|
||||
$classes[] = 'owl-dots--show';
|
||||
}
|
||||
if ($this->getTitleSideLine()) {
|
||||
$classes[] = 'title--sideline';
|
||||
}
|
||||
$type = 'widget-product-grid';
|
||||
$mode = 'grid';
|
||||
$image = 'new_products_content_widget_grid';
|
||||
$items = $block->getProductCollection()->getItems();
|
||||
$showWishlist = $this->getShowWishlist();
|
||||
$showCompare = $this->getShowCompare();
|
||||
$showCart = $this->getShowAddtocart();
|
||||
$showQuickview = $this->getShowQuickview() && $theme_helper->isActivePlugin('Olegnax_Quickview');
|
||||
$showReview = $this->getShowReview();
|
||||
$templateType = ReviewRendererInterface::DEFAULT_VIEW;
|
||||
$description = false;
|
||||
$cartIcon = '<svg xmlns="http://www.w3.org/2000/svg" class="minicart-icon-1" width="14" height="16" viewBox="0 0 14 16">
|
||||
<path d="M11,3V0H3V3H0V16H14V3H11ZM5,2H9V3H5V2Zm7,12H2V5H3V7H5V5H9V7h2V5h1v9Z"></path>
|
||||
</svg>';
|
||||
$compareIcon = '<svg xmlns="http://www.w3.org/2000/svg" width="15" height="16" viewBox="0 0 15 16">
|
||||
<g>
|
||||
<polygon points="2 2 8 2 8 0 0 0 0 12 3 12 3 10 2 10 2 2"></polygon>
|
||||
<rect x="8" y="2" width="2" height="1"></rect>
|
||||
<polygon points="13 6 13 14 6 14 6 6 13 6 13 4 4 4 4 16 15 16 15 6 13 6"></polygon>
|
||||
</g>
|
||||
</svg>';
|
||||
$titleClass = 'no-title';
|
||||
if ($showTitle) {
|
||||
$titleClass = 'title-' . $titleTag;
|
||||
}
|
||||
?>
|
||||
<div id="ox_<?= $block->getUnderlineNameInLayout() ?>"
|
||||
class="block widget products-grid__layout-2 block-products-list <?= /* @noEscape */
|
||||
$mode ?> <?=
|
||||
implode(' ', $classes)
|
||||
?>">
|
||||
<?php if ($showTitle && $block->getTitle() || ($navPosition == 'title' && $this->getNav())): ?>
|
||||
<div class="block-title <?= $titleClass ?>">
|
||||
<?php if ($showTitle && $block->getTitle()) { ?>
|
||||
<<?= $titleTag ?>><?= $block->escapeHtml(__($block->getTitle())) ?></<?= $titleTag ?>>
|
||||
<?php } ?>
|
||||
<?php if ($navPosition == 'title') { ?>
|
||||
<div class="owl-nav ox-owl-nav">
|
||||
<button type="button" role="presentation" class="owl-prev ox-owl-prev"><span
|
||||
aria-label="Previous">‹</span></button>
|
||||
<button type="button" role="presentation" class="owl-next ox-owl-next"><span aria-label="Next">›</span>
|
||||
</button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<div class="block-content">
|
||||
<div class="products-<?= /* @noEscape */
|
||||
$mode ?> <?= /* @noEscape */
|
||||
$mode ?>">
|
||||
<div class="product-items owl-carousel <?= /* @noEscape */
|
||||
$type ?>" data-role="product-owlCarousel"
|
||||
data-mage-init='{"OXowlCarousel":<?= $block->escapeHtml($block->getCarouselOptions()) ?>}'>
|
||||
<?php $iterator = 1; ?>
|
||||
<?php foreach ($items as $_item): ?>
|
||||
<div class="product-item-info">
|
||||
<div class="product-grid__image-wrapper">
|
||||
<a href="<?= $block->escapeUrl($block->getProductUrl($_item)) ?>"
|
||||
class="product-item-photo">
|
||||
<?= $block->getLazyImage($_item, $image)->toHtml() ?>
|
||||
</a>
|
||||
<?php if ($showCart || $showQuickview): ?>
|
||||
<div class="product-item-inner">
|
||||
<div class="product-item-actions">
|
||||
<div class="actions-primary">
|
||||
<?php if ($_item->isSaleable() && $showCart): ?>
|
||||
<?php $postParams = $block->getAddToCartPostParams($_item); ?>
|
||||
<form data-role="tocart-form"
|
||||
data-product-sku="<?= $block->escapeHtml($_item->getSku()) ?>"
|
||||
action="<?= /* @NoEscape */
|
||||
$postParams['action'] ?>" method="post">
|
||||
<input type="hidden" name="product"
|
||||
value="<?= /* @escapeNotVerified */
|
||||
$postParams['data']['product'] ?>">
|
||||
<input type="hidden" name="<?= /* @noEscape */ Action::PARAM_NAME_URL_ENCODED ?>"
|
||||
value="<?= /* @noEscape */ $postParams['data'][Action::PARAM_NAME_URL_ENCODED] ?>">
|
||||
<?= $block->getBlockHtml('formkey') ?>
|
||||
<button type="submit"
|
||||
title="<?= $block->escapeHtml(__('Add to Cart')) ?>"
|
||||
class="action tocart primary">
|
||||
<?= $cartIcon ?><span><?= /* @escapeNotVerified */
|
||||
__('Add to Cart') ?></span>
|
||||
</button>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php
|
||||
if ($showQuickview) {
|
||||
echo $this->helper('Olegnax\Quickview\Helper\Helper')->getButton($_item, 'button quick-view');
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<a href="<?= $block->escapeUrl($block->getProductUrl($_item)) ?>"
|
||||
class="overlay-link"></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="product-grid-overlay"></div>
|
||||
<div class="product-item-details">
|
||||
<?php if ($showCategory && $category = $theme_helper->getLastCategory($_item)) : ?>
|
||||
<div class="ox-product-grid__categories"><a href="<?= $category->getUrl(); ?>"
|
||||
class="ox-product-grid__category-link"><?= $category->getName(); ?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($showWishlist || $showCompare): ?>
|
||||
<div class="actions-secondary" data-role="add-to-links">
|
||||
<?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow() && $showWishlist): ?>
|
||||
<a href="#"
|
||||
data-post='<?= /* @noEscape */
|
||||
$block->getAddToWishlistParams($_item) ?>' class="action towishlist"
|
||||
data-action="add-to-wishlist"
|
||||
title="<?= $block->escapeHtmlAttr(__('Add to Wish List')) ?>">
|
||||
<span><?= $block->escapeHtml(__('Add to Wish List')) ?></span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php if ($block->getAddToCompareUrl() && $showCompare): ?>
|
||||
<?php $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare'); ?>
|
||||
<a href="#" class="action tocompare" data-post='<?= /* @noEscape */
|
||||
$compareHelper->getPostDataParams($_item) ?>'
|
||||
title="<?= $block->escapeHtmlAttr(__('Add to Compare')) ?>">
|
||||
<?= $compareIcon ?>
|
||||
<span><?= $block->escapeHtml(__('Add to Compare')) ?></span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<strong class="product-item-name">
|
||||
<a title="<?= $block->escapeHtml($_item->getName()) ?>"
|
||||
href="<?= $block->escapeUrl($block->getProductUrl($_item)) ?>"
|
||||
class="product-item-link">
|
||||
<?= $block->escapeHtml($_item->getName()) ?>
|
||||
</a>
|
||||
</strong>
|
||||
<?php
|
||||
echo $block->getProductPriceHtml($_item, $type);
|
||||
echo $block->getMSRPHtml($_item);
|
||||
?>
|
||||
|
||||
<?php if ($templateType && $showReview): ?>
|
||||
<?= $block->getReviewsSummaryHtml($_item, $templateType)
|
||||
?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
</div>
|
||||
<?= $block->getPagerHtml() ?>
|
||||
</div>
|
||||
<?php if (isset($_item) && $showCart && !$block->isRedirectToCartEnabled()): ?>
|
||||
<script type="text/x-magento-init">
|
||||
{
|
||||
"[data-role=tocart-form], .form.map.checkout": {
|
||||
"catalogAddToCart": {
|
||||
"product_sku": "<?= /* @NoEscape */
|
||||
$_item->getSku() ?>"
|
||||
}
|
||||
},
|
||||
"[data-role=product-owlCarousel]": {
|
||||
"loopOwlAddtocart": {}
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
*/
|
||||
$showTitle = $this->getShowTitle();
|
||||
$titleTag = 'strong';
|
||||
$navPosition = $this->getNavPosition();
|
||||
if ($this->getTitleTag()) {
|
||||
$titleTag = $this->getTitleTag();
|
||||
}
|
||||
?>
|
||||
<div id="ox_<?= $block->getUnderlineNameInLayout() ?>" class="block widget">
|
||||
<?php if ($showTitle && $block->getTitle()): ?>
|
||||
<div class="block-title">
|
||||
<<?= $titleTag ?>><?= $block->escapeHtml(__($block->getTitle())) ?></<?= $titleTag ?>>
|
||||
<?php if ($navPosition == 'title') { ?>
|
||||
<div class="owl-nav ox-owl-nav">
|
||||
<button type="button" role="presentation" class="owl-prev ox-owl-prev"><span aria-label="Previous">‹</span>
|
||||
</button>
|
||||
<button type="button" role="presentation" class="owl-next ox-owl-next"><span aria-label="Next">›</span>
|
||||
</button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<div class="block-content">
|
||||
<div class="owl-carousel" data-role="custom-owlCarousel"
|
||||
data-mage-init='{"OXowlCarousel":<?= $block->escapeHtml($block->getCarouselOptions()) ?>}'>
|
||||
<?= $block->getContent() ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,176 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
// @codingStandardsIgnoreFile
|
||||
use Magento\Catalog\Block\Product\ReviewRendererInterface;
|
||||
use Magento\CatalogWidget\Block\Product\ProductsList;
|
||||
use Magento\Framework\App\Action\Action;
|
||||
|
||||
/** @var ProductsList $block */
|
||||
?>
|
||||
<?php if ($exist = ($block->getProductCollection() && $block->getProductCollection()->getSize())): ?>
|
||||
<?php
|
||||
$showTitle = $this->getShowTitle();
|
||||
$titleTag = 'strong';
|
||||
if ($this->getTitleTag()) {
|
||||
$titleTag = $this->getTitleTag();
|
||||
}
|
||||
$classes = [];
|
||||
$classes[] = 'product-columns-' . $this->getColumnsDesktop();
|
||||
$classes[] = 'product-columns-l-' . $this->getColumnsDesktopSmall();
|
||||
$classes[] = 'product-columns-m-' . $this->getColumnsTablet();
|
||||
$classes[] = 'product-columns-s-' . $this->getColumnsMobile();
|
||||
$classes[] = 'title--align-' . $this->getTitleAlign();
|
||||
if ($this->getTitleSideLine()) {
|
||||
$classes[] = 'title--sideline';
|
||||
}
|
||||
$type = 'widget-product-grid';
|
||||
$mode = 'grid';
|
||||
$image = 'new_products_content_widget_grid';
|
||||
$items = $block->getProductCollection()->getItems();
|
||||
$showWishlist = $this->getShowWishlist();
|
||||
$showCompare = $this->getShowCompare();
|
||||
$showCart = $this->getShowAddtocart();
|
||||
$showQuickview = $this->getShowQuickview();
|
||||
$showReview = $this->getShowReview();
|
||||
$templateType = ReviewRendererInterface::DEFAULT_VIEW;
|
||||
$description = false;
|
||||
$cartIcon = '<svg xmlns="http://www.w3.org/2000/svg" class="minicart-icon-1" width="14" height="16" viewBox="0 0 14 16">
|
||||
<path d="M11,3V0H3V3H0V16H14V3H11ZM5,2H9V3H5V2Zm7,12H2V5H3V7H5V5H9V7h2V5h1v9Z"></path>
|
||||
</svg>';
|
||||
$compareIcon = '<svg xmlns="http://www.w3.org/2000/svg" width="15" height="16" viewBox="0 0 15 16">
|
||||
<g>
|
||||
<polygon points="2 2 8 2 8 0 0 0 0 12 3 12 3 10 2 10 2 2"></polygon>
|
||||
<rect x="8" y="2" width="2" height="1"></rect>
|
||||
<polygon points="13 6 13 14 6 14 6 6 13 6 13 4 4 4 4 16 15 16 15 6 13 6"></polygon>
|
||||
</g>
|
||||
</svg>';
|
||||
?>
|
||||
<div id="ox_<?= $block->getNameInLayout() ?>"
|
||||
class="block widget products-grid__layout-default block-products-list <?= /* @noEscape */
|
||||
$mode ?> <?= implode(' ',
|
||||
$classes) ?>">
|
||||
<?php if ($showTitle && $block->getTitle()): ?>
|
||||
<div class="block-title">
|
||||
<<?= $titleTag ?>><?= $block->escapeHtml(__($block->getTitle())) ?></<?= $titleTag ?>>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<div class="block-content">
|
||||
<div class="products-<?= /* @noEscape */
|
||||
$mode ?> <?= /* @noEscape */
|
||||
$mode ?>">
|
||||
<ol class="product-items <?= /* @noEscape */
|
||||
$type ?>">
|
||||
<?php $iterator = 1; ?>
|
||||
<?php foreach ($items as $_item): ?>
|
||||
<?= /* @noEscape */
|
||||
($iterator++ == 1) ? '<li class="product-item">' : '</li><li class="product-item">' ?>
|
||||
<div class="product-item-info">
|
||||
<div class="product-grid__image-wrapper">
|
||||
<a href="<?= $block->escapeUrl($block->getProductUrl($_item)) ?>"
|
||||
class="product-item-photo">
|
||||
<?= $block->getImage($_item, $image)->toHtml() ?>
|
||||
</a>
|
||||
<?php if ($showWishlist || $showCompare || $showCart || $showQuickview): ?>
|
||||
<div class="product-item-inner">
|
||||
<div class="product-item-actions">
|
||||
<div class="actions-primary">
|
||||
<?php if ($_item->isSaleable() && $showCart): ?>
|
||||
<?php $postParams = $block->getAddToCartPostParams($_item); ?>
|
||||
<form data-role="tocart-form"
|
||||
data-product-sku="<?= $block->escapeHtml($_item->getSku()) ?>"
|
||||
action="<?= /* @NoEscape */
|
||||
$postParams['action'] ?>" method="post">
|
||||
<input type="hidden" name="product"
|
||||
value="<?= /* @escapeNotVerified */
|
||||
$postParams['data']['product'] ?>">
|
||||
<input type="hidden" name="<?= /* @noEscape */ Action::PARAM_NAME_URL_ENCODED ?>"
|
||||
value="<?= /* @noEscape */ $postParams['data'][Action::PARAM_NAME_URL_ENCODED] ?>">
|
||||
<?= $block->getBlockHtml('formkey') ?>
|
||||
<button type="submit"
|
||||
title="<?= $block->escapeHtml(__('Add to Cart')) ?>"
|
||||
class="action tocart primary">
|
||||
<?= $cartIcon ?><span><?= /* @escapeNotVerified */
|
||||
__('Add to Cart') ?></span>
|
||||
</button>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
<?php if ($showWishlist || $showCompare): ?>
|
||||
<div class="actions-secondary" data-role="add-to-links">
|
||||
<?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow() && $showWishlist): ?>
|
||||
<a href="#"
|
||||
data-post='<?= /* @noEscape */
|
||||
$block->getAddToWishlistParams($_item) ?>'
|
||||
class="action towishlist" data-action="add-to-wishlist"
|
||||
title="<?= $block->escapeHtmlAttr(__('Add to Wish List')) ?>">
|
||||
<span><?= $block->escapeHtml(__('Add to Wish List')) ?></span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php if ($block->getAddToCompareUrl() && $showCompare): ?>
|
||||
<?php $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare'); ?>
|
||||
<a href="#" class="action tocompare"
|
||||
data-post='<?= /* @noEscape */
|
||||
$compareHelper->getPostDataParams($_item) ?>'
|
||||
title="<?= $block->escapeHtmlAttr(__('Add to Compare')) ?>">
|
||||
<?= $compareIcon ?>
|
||||
<span><?= $block->escapeHtml(__('Add to Compare')) ?></span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php if ($showQuickview): ?>
|
||||
<a class="button quick-view"><span><?= /* @escapeNotVerified */
|
||||
__('Quick view') ?></span></a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<a href="<?= $block->escapeUrl($block->getProductUrl($_item)) ?>"
|
||||
class="overlay-link"></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="product-grid-overlay"></div>
|
||||
<div class="product-item-details">
|
||||
<strong class="product-item-name">
|
||||
<a title="<?= $block->escapeHtml($_item->getName()) ?>"
|
||||
href="<?= $block->escapeUrl($block->getProductUrl($_item)) ?>"
|
||||
class="product-item-link">
|
||||
<?= $block->escapeHtml($_item->getName()) ?>
|
||||
</a>
|
||||
</strong>
|
||||
<?php
|
||||
echo $block->getProductPriceHtml($_item, $type);
|
||||
echo $block->getMSRPHtml($_item);
|
||||
?>
|
||||
|
||||
<?php if ($templateType && $showReview): ?>
|
||||
<?= $block->getReviewsSummaryHtml($_item,
|
||||
$templateType) ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?= ($iterator == count($items) + 1) ? '</li>' : '' ?>
|
||||
<?php endforeach ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?= $block->getPagerHtml() ?>
|
||||
</div>
|
||||
<?php if (isset($_item) && $showCart && !$block->isRedirectToCartEnabled()): ?>
|
||||
<script type="text/x-magento-init">
|
||||
{
|
||||
"[data-role=tocart-form], .form.map.checkout": {
|
||||
"catalogAddToCart": {
|
||||
"product_sku": "<?= /* @NoEscape */
|
||||
$_item->getSku() ?>"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,149 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
// @codingStandardsIgnoreFile
|
||||
use Magento\Catalog\Block\Product\ReviewRendererInterface;
|
||||
use Magento\CatalogWidget\Block\Product\ProductsList;
|
||||
use Magento\Framework\App\Action\Action;
|
||||
|
||||
/** @var ProductsList $block */
|
||||
?>
|
||||
<?php if ($exist = ($block->getProductCollection() && $block->getProductCollection()->getSize())): ?>
|
||||
<?php
|
||||
$type = 'widget-product-grid';
|
||||
$mode = 'grid';
|
||||
$image = 'new_products_content_widget_grid';
|
||||
$items = $block->getProductCollection()->getItems();
|
||||
$showWishlist = true;
|
||||
$showCompare = true;
|
||||
$showCart = true;
|
||||
$templateType = ReviewRendererInterface::DEFAULT_VIEW;
|
||||
$description = false;
|
||||
$cartIcon = '<svg xmlns="http://www.w3.org/2000/svg" class="minicart-icon-1" width="14" height="16" viewBox="0 0 14 16">
|
||||
<path d="M11,3V0H3V3H0V16H14V3H11ZM5,2H9V3H5V2Zm7,12H2V5H3V7H5V5H9V7h2V5h1v9Z"></path>
|
||||
</svg>';
|
||||
$compareIcon = '<svg xmlns="http://www.w3.org/2000/svg" width="15" height="16" viewBox="0 0 15 16">
|
||||
<g>
|
||||
<polygon points="2 2 8 2 8 0 0 0 0 12 3 12 3 10 2 10 2 2"></polygon>
|
||||
<rect x="8" y="2" width="2" height="1"></rect>
|
||||
<polygon points="13 6 13 14 6 14 6 6 13 6 13 4 4 4 4 16 15 16 15 6 13 6"></polygon>
|
||||
</g>
|
||||
</svg>';
|
||||
?>
|
||||
<div id="ox_<?= $block->getNameInLayout() ?>" class="block widget block-products-list <?= /* @noEscape */
|
||||
$mode ?>">
|
||||
<?php if ($block->getTitle()): ?>
|
||||
<div class="block-title">
|
||||
<strong><?= $block->escapeHtml(__($block->getTitle())) ?></strong>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<div class="block-content">
|
||||
<div class="products-<?= /* @noEscape */
|
||||
$mode ?> <?= /* @noEscape */
|
||||
$mode ?>">
|
||||
<ol class="product-items <?= /* @noEscape */
|
||||
$type ?>">
|
||||
<?php $iterator = 1; ?>
|
||||
<?php foreach ($items as $_item): ?>
|
||||
<?= /* @noEscape */
|
||||
($iterator++ == 1) ? '<li class="product-item">' : '</li><li class="product-item">' ?>
|
||||
<div class="product-item-info">
|
||||
<a href="<?= $block->escapeUrl($block->getProductUrl($_item)) ?>"
|
||||
class="product-item-photo">
|
||||
<?= $block->getImage($_item, $image)->toHtml() ?>
|
||||
</a>
|
||||
<div class="product-item-details">
|
||||
<strong class="product-item-name">
|
||||
<a title="<?= $block->escapeHtml($_item->getName()) ?>"
|
||||
href="<?= $block->escapeUrl($block->getProductUrl($_item)) ?>"
|
||||
class="product-item-link">
|
||||
<?= $block->escapeHtml($_item->getName()) ?>
|
||||
</a>
|
||||
</strong>
|
||||
<?php
|
||||
echo $block->getProductPriceHtml($_item, $type);
|
||||
echo $block->getMSRPHtml($_item);
|
||||
?>
|
||||
|
||||
<?php if ($templateType): ?>
|
||||
<?= $block->getReviewsSummaryHtml($_item,
|
||||
$templateType) ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($showWishlist || $showCompare || $showCart): ?>
|
||||
<div class="product-item-actions">
|
||||
<?php if ($showCart): ?>
|
||||
<div class="actions-primary">
|
||||
<?php if ($_item->isSaleable() && $showCart): ?>
|
||||
<?php $postParams = $block->getAddToCartPostParams($_item); ?>
|
||||
<form data-role="tocart-form"
|
||||
data-product-sku="<?= $block->escapeHtml($_item->getSku()) ?>"
|
||||
action="<?= /* @NoEscape */
|
||||
$postParams['action'] ?>" method="post">
|
||||
<input type="hidden" name="product"
|
||||
value="<?= /* @escapeNotVerified */
|
||||
$postParams['data']['product'] ?>">
|
||||
<input type="hidden" name="<?= Action::PARAM_NAME_URL_ENCODED ?>"
|
||||
value="<?= /* @escapeNotVerified */
|
||||
$postParams['data'][Action::PARAM_NAME_URL_ENCODED] ?>">
|
||||
<?= $block->getBlockHtml('formkey') ?>
|
||||
<button type="submit"
|
||||
title="<?= $block->escapeHtml(__('Add to Cart')) ?>"
|
||||
class="action tocart primary">
|
||||
<?= $cartIcon ?><span><?= /* @escapeNotVerified */
|
||||
__('Add to Cart') ?></span>
|
||||
</button>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($showWishlist || $showCompare): ?>
|
||||
<div class="actions-secondary" data-role="add-to-links">
|
||||
<?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow() && $showWishlist): ?>
|
||||
<a href="#"
|
||||
data-post='<?= /* @noEscape */
|
||||
$block->getAddToWishlistParams($_item) ?>'
|
||||
class="action towishlist" data-action="add-to-wishlist"
|
||||
title="<?= $block->escapeHtmlAttr(__('Add to Wish List')) ?>">
|
||||
<span><?= $block->escapeHtml(__('Add to Wish List')) ?></span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php if ($block->getAddToCompareUrl() && $showCompare): ?>
|
||||
<?php $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare'); ?>
|
||||
<a href="#" class="action tocompare" data-post='<?= /* @noEscape */
|
||||
$compareHelper->getPostDataParams($_item) ?>'
|
||||
title="<?= $block->escapeHtmlAttr(__('Add to Compare')) ?>">
|
||||
<span><?= $block->escapeHtml(__('Add to Compare')) ?></span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?= ($iterator == count($items) + 1) ? '</li>' : '' ?>
|
||||
<?php endforeach ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?= $block->getPagerHtml() ?>
|
||||
</div>
|
||||
<?php if (isset($_item) && $showCart && !$block->isRedirectToCartEnabled()): ?>
|
||||
<script type="text/x-magento-init">
|
||||
{
|
||||
"[data-role=tocart-form], .form.map.checkout": {
|
||||
"catalogAddToCart": {
|
||||
"product_sku": "<?= /* @NoEscape */
|
||||
$_item->getSku() ?>"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
use Magento\Catalog\Block\Product\Image; ?>
|
||||
<?php /** @var $block Image */ ?>
|
||||
|
||||
<span class="product-image-container"
|
||||
style="width:<?= /* @escapeNotVerified */
|
||||
$block->getWidth() ?>px;">
|
||||
<span class="product-image-wrapper"
|
||||
style="padding-bottom: <?= /* @escapeNotVerified */
|
||||
($block->getRatio() * 100) ?>%;">
|
||||
<img class="product-image-photo owl-lazy"
|
||||
<?php if(is_array($block->getCustomAttributes())): ?>
|
||||
<?php foreach ($block->getCustomAttributes() as $name => $value): ?>
|
||||
<?= $escaper->escapeHtmlAttr($name) ?>="<?= $escaper->escapeHtml($value) ?>"
|
||||
<?php endforeach; ?>
|
||||
<?php else : ?>
|
||||
<?= /* @escapeNotVerified */ $block->getCustomAttributes(); ?>
|
||||
<?php endif; ?>
|
||||
src="<?= $this->getViewFileUrl('Olegnax_Core/images/preloader-img.svg'); ?>"
|
||||
data-src="<?= /* @escapeNotVerified */
|
||||
$block->getImageUrl() ?>"
|
||||
width="<?= /* @escapeNotVerified */
|
||||
$block->getWidth() ?>"
|
||||
height="<?= /* @escapeNotVerified */
|
||||
$block->getHeight() ?>"
|
||||
alt="<?= /* @escapeNotVerified */
|
||||
$block->stripTags($block->getLabel(), null, true) ?>"/></span>
|
||||
</span>
|
||||
Executable
+85
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
use Magento\Ui\Block\Wrapper;
|
||||
use Olegnax\Athlete2\Helper\ProductList;
|
||||
|
||||
?>
|
||||
<?php
|
||||
// phpcs:disable Magento2.Security.LanguageConstruct.DirectOutput
|
||||
// phpcs:disable Magento2.PHP.ShortEchoSyntax.ShortEchoTag
|
||||
|
||||
/** @var $block Wrapper */
|
||||
?>
|
||||
|
||||
<?php
|
||||
$theme_helper = $this->helper( ProductList::class );
|
||||
$at_settings = $theme_helper->getModuleConfig();
|
||||
|
||||
$carouselOptions = $this->getCarouselOptions();
|
||||
|
||||
$showTitle = $block->getShowTitle();
|
||||
$titleTag = $block->getTitleTag() ?: 'strong';
|
||||
$title = $block->getTitle();
|
||||
$titleClass = 'no-title';
|
||||
if ( $showTitle ) {
|
||||
$titleClass = 'title-' . $titleTag;
|
||||
}
|
||||
$titleClass .= ' block-title title';
|
||||
$navPosition = $this->getNavPosition();
|
||||
$classes = [];
|
||||
$classes[] = 'product-columns-' . $this->getColumnsDesktop();
|
||||
$classes[] = 'product-columns-l-' . $this->getColumnsDesktopSmall();
|
||||
$classes[] = 'product-columns-m-' . $this->getColumnsTablet();
|
||||
$classes[] = 'product-columns-s-' . $this->getColumnsMobile();
|
||||
$classes[] = 'title--align-' . $this->getTitleAlign();
|
||||
$classes[] = $this->getProductsLayoutCentered() ? 'align-details-center' : '';
|
||||
$classes[] = $this->getTitleSideLine() ? 'title--sideline' : '';
|
||||
$classes[] = 'owl-dots--align-' . $this->getDotsAlign();
|
||||
$classes[] = 'owl-nav--position-' . $navPosition;
|
||||
$classes[] = 'title--align-' . $this->getTitleAlign();
|
||||
$classes[] = $this->getDots() ? 'owl-dots--show' : '';
|
||||
$classes[] = $this->getTitleSideLine() ? 'title--sideline' : '';
|
||||
$classes[] = $this->getCustomClass();
|
||||
|
||||
$type = 'widget-product-grid';
|
||||
$mode = 'grid';
|
||||
$wrapper_classes = 'widget block-viewed-products-grid products-grid__layout-default block-products-list ' . $mode . ' ' . $block->escapeHtml(implode( ' ', $classes) );
|
||||
$_nav = false;
|
||||
$nav = $this->getNav();
|
||||
if ( $navPosition == 'title' && $nav ){
|
||||
$_nav = true;
|
||||
}
|
||||
$_showTitle = false;
|
||||
if ( $showTitle && $title){
|
||||
$_showTitle = true;
|
||||
}
|
||||
?>
|
||||
|
||||
<?php /* @noEscape */ echo $block->renderApp([
|
||||
'widget_columns' => [
|
||||
'label' => $title,
|
||||
'titleClasses' => $titleClass,
|
||||
'displayMode' => $mode,
|
||||
'template' => 'Olegnax_ProductSlider/product/list/carousel-v1',
|
||||
'additionalClasses' => $wrapper_classes,
|
||||
'carouselOptions' => $carouselOptions,
|
||||
],
|
||||
'title' => [
|
||||
'label' => $title,
|
||||
'tag' => $titleTag,
|
||||
'show' => (bool)$_showTitle
|
||||
],
|
||||
'owl-nav' =>[
|
||||
'show' => (bool)$_nav
|
||||
],
|
||||
'owl-init' =>[
|
||||
'show' => true,
|
||||
],
|
||||
'image' => [
|
||||
'imageCode' => 'recently_viewed_products_grid_content_widget'
|
||||
]
|
||||
]);
|
||||
Executable
+85
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
use Magento\Ui\Block\Wrapper;
|
||||
use Olegnax\Athlete2\Helper\ProductList;
|
||||
|
||||
?>
|
||||
<?php
|
||||
// phpcs:disable Magento2.Security.LanguageConstruct.DirectOutput
|
||||
// phpcs:disable Magento2.PHP.ShortEchoSyntax.ShortEchoTag
|
||||
|
||||
/** @var $block Wrapper */
|
||||
?>
|
||||
|
||||
<?php
|
||||
$theme_helper = $this->helper( ProductList::class );
|
||||
$at_settings = $theme_helper->getModuleConfig();
|
||||
|
||||
$carouselOptions = $this->getCarouselOptions();
|
||||
|
||||
$showTitle = $block->getShowTitle();
|
||||
$titleTag = $block->getTitleTag() ?: 'strong';
|
||||
$title = $block->getTitle();
|
||||
$titleClass = 'no-title';
|
||||
if ( $showTitle ) {
|
||||
$titleClass = 'title-' . $titleTag;
|
||||
}
|
||||
$titleClass .= ' block-title title';
|
||||
$navPosition = $this->getNavPosition();
|
||||
$classes = [];
|
||||
$classes[] = 'product-columns-' . $this->getColumnsDesktop();
|
||||
$classes[] = 'product-columns-l-' . $this->getColumnsDesktopSmall();
|
||||
$classes[] = 'product-columns-m-' . $this->getColumnsTablet();
|
||||
$classes[] = 'product-columns-s-' . $this->getColumnsMobile();
|
||||
$classes[] = 'title--align-' . $this->getTitleAlign();
|
||||
$classes[] = $this->getProductsLayoutCentered() ? 'align-details-center' : '';
|
||||
$classes[] = $this->getTitleSideLine() ? 'title--sideline' : '';
|
||||
$classes[] = 'owl-dots--align-' . $this->getDotsAlign();
|
||||
$classes[] = 'owl-nav--position-' . $navPosition;
|
||||
$classes[] = 'title--align-' . $this->getTitleAlign();
|
||||
$classes[] = $this->getDots() ? 'owl-dots--show' : '';
|
||||
$classes[] = $this->getTitleSideLine() ? 'title--sideline' : '';
|
||||
$classes[] = $this->getCustomClass();
|
||||
|
||||
$type = 'widget-product-grid';
|
||||
$mode = 'grid';
|
||||
$wrapper_classes = 'widget block-viewed-products-grid products-grid__layout-2 block-products-list ' . $mode . ' ' . $block->escapeHtml(implode( ' ', $classes) );
|
||||
$_nav = false;
|
||||
$nav = $this->getNav();
|
||||
if ( $navPosition == 'title' && $nav ){
|
||||
$_nav = true;
|
||||
}
|
||||
$_showTitle = false;
|
||||
if ( $showTitle && $title){
|
||||
$_showTitle = true;
|
||||
}
|
||||
?>
|
||||
|
||||
<?php /* @noEscape */ echo $block->renderApp([
|
||||
'widget_columns' => [
|
||||
'label' => $title,
|
||||
'titleClasses' => $titleClass,
|
||||
'displayMode' => $mode,
|
||||
'template' => 'Olegnax_ProductSlider/product/list/carousel-v2',
|
||||
'additionalClasses' => $wrapper_classes,
|
||||
'carouselOptions' => $carouselOptions,
|
||||
],
|
||||
'title' => [
|
||||
'label' => $title,
|
||||
'tag' => $titleTag,
|
||||
'show' => (bool)$_showTitle
|
||||
],
|
||||
'owl-nav' =>[
|
||||
'show' => (bool)$_nav
|
||||
],
|
||||
'owl-init' =>[
|
||||
'show' => true,
|
||||
],
|
||||
'image' => [
|
||||
'imageCode' => 'recently_viewed_products_grid_content_widget'
|
||||
]
|
||||
]);
|
||||
Executable
+85
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
use Magento\Ui\Block\Wrapper;
|
||||
use Olegnax\Athlete2\Helper\ProductList;
|
||||
|
||||
?>
|
||||
<?php
|
||||
// phpcs:disable Magento2.Security.LanguageConstruct.DirectOutput
|
||||
// phpcs:disable Magento2.PHP.ShortEchoSyntax.ShortEchoTag
|
||||
|
||||
/** @var $block Wrapper */
|
||||
?>
|
||||
|
||||
<?php
|
||||
$theme_helper = $this->helper( ProductList::class );
|
||||
$at_settings = $theme_helper->getModuleConfig();
|
||||
|
||||
$carouselOptions = $this->getCarouselOptions();
|
||||
|
||||
$showTitle = $block->getShowTitle();
|
||||
$titleTag = $block->getTitleTag() ?: 'strong';
|
||||
$title = $block->getTitle();
|
||||
$titleClass = 'no-title';
|
||||
if ( $showTitle ) {
|
||||
$titleClass = 'title-' . $titleTag;
|
||||
}
|
||||
$titleClass .= ' block-title title';
|
||||
$navPosition = $this->getNavPosition();
|
||||
$classes = [];
|
||||
$classes[] = 'product-columns-' . $this->getColumnsDesktop();
|
||||
$classes[] = 'product-columns-l-' . $this->getColumnsDesktopSmall();
|
||||
$classes[] = 'product-columns-m-' . $this->getColumnsTablet();
|
||||
$classes[] = 'product-columns-s-' . $this->getColumnsMobile();
|
||||
$classes[] = 'title--align-' . $this->getTitleAlign();
|
||||
$classes[] = $this->getProductsLayoutCentered() ? 'align-details-center' : '';
|
||||
$classes[] = $this->getTitleSideLine() ? 'title--sideline' : '';
|
||||
$classes[] = 'owl-dots--align-' . $this->getDotsAlign();
|
||||
$classes[] = 'owl-nav--position-' . $navPosition;
|
||||
$classes[] = 'title--align-' . $this->getTitleAlign();
|
||||
$classes[] = $this->getDots() ? 'owl-dots--show' : '';
|
||||
$classes[] = $this->getTitleSideLine() ? 'title--sideline' : '';
|
||||
$classes[] = $this->getCustomClass();
|
||||
|
||||
$type = 'widget-product-grid';
|
||||
$mode = 'grid';
|
||||
$wrapper_classes = 'widget block-viewed-products-grid products-grid__layout-default products-grid__buttons-below block-products-list ' . $mode . ' ' . $block->escapeHtml(implode( ' ', $classes) );
|
||||
$_nav = false;
|
||||
$nav = $this->getNav();
|
||||
if ( $navPosition == 'title' && $nav ){
|
||||
$_nav = true;
|
||||
}
|
||||
$_showTitle = false;
|
||||
if ( $showTitle && $title){
|
||||
$_showTitle = true;
|
||||
}
|
||||
?>
|
||||
|
||||
<?php /* @noEscape */ echo $block->renderApp([
|
||||
'widget_columns' => [
|
||||
'label' => $title,
|
||||
'titleClasses' => $titleClass,
|
||||
'displayMode' => $mode,
|
||||
'template' => 'Olegnax_ProductSlider/product/list/carousel-v3',
|
||||
'additionalClasses' => $wrapper_classes,
|
||||
'carouselOptions' => $carouselOptions,
|
||||
],
|
||||
'title' => [
|
||||
'label' => $title,
|
||||
'tag' => $titleTag,
|
||||
'show' => (bool)$_showTitle
|
||||
],
|
||||
'owl-nav' =>[
|
||||
'show' => (bool)$_nav
|
||||
],
|
||||
'owl-init' =>[
|
||||
'show' => true,
|
||||
],
|
||||
'image' => [
|
||||
'imageCode' => 'recently_viewed_products_grid_content_widget'
|
||||
]
|
||||
]);
|
||||
Executable
+85
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
use Magento\Ui\Block\Wrapper;
|
||||
use Olegnax\Athlete2\Helper\ProductList;
|
||||
|
||||
?>
|
||||
<?php
|
||||
// phpcs:disable Magento2.Security.LanguageConstruct.DirectOutput
|
||||
// phpcs:disable Magento2.PHP.ShortEchoSyntax.ShortEchoTag
|
||||
|
||||
/** @var $block Wrapper */
|
||||
?>
|
||||
|
||||
<?php
|
||||
$theme_helper = $this->helper( ProductList::class );
|
||||
$at_settings = $theme_helper->getModuleConfig();
|
||||
|
||||
$carouselOptions = $this->getCarouselOptions();
|
||||
|
||||
$showTitle = $block->getShowTitle();
|
||||
$titleTag = $block->getTitleTag() ?: 'strong';
|
||||
$title = $block->getTitle();
|
||||
$titleClass = 'no-title';
|
||||
if ( $showTitle ) {
|
||||
$titleClass = 'title-' . $titleTag;
|
||||
}
|
||||
$titleClass .= ' block-title title';
|
||||
$navPosition = $this->getNavPosition();
|
||||
$classes = [];
|
||||
$classes[] = 'product-columns-' . $this->getColumnsDesktop();
|
||||
$classes[] = 'product-columns-l-' . $this->getColumnsDesktopSmall();
|
||||
$classes[] = 'product-columns-m-' . $this->getColumnsTablet();
|
||||
$classes[] = 'product-columns-s-' . $this->getColumnsMobile();
|
||||
$classes[] = 'title--align-' . $this->getTitleAlign();
|
||||
$classes[] = $this->getProductsLayoutCentered() ? 'align-details-center' : '';
|
||||
$classes[] = $this->getTitleSideLine() ? 'title--sideline' : '';
|
||||
$classes[] = 'owl-dots--align-' . $this->getDotsAlign();
|
||||
$classes[] = 'owl-nav--position-' . $navPosition;
|
||||
$classes[] = 'title--align-' . $this->getTitleAlign();
|
||||
$classes[] = $this->getDots() ? 'owl-dots--show' : '';
|
||||
$classes[] = $this->getTitleSideLine() ? 'title--sideline' : '';
|
||||
$classes[] = $this->getCustomClass();
|
||||
|
||||
$type = 'widget-product-grid';
|
||||
$mode = 'grid';
|
||||
$wrapper_classes = 'widget block-viewed-products-grid products-grid__layout-default products-grid__buttons-below block-products-list ' . $mode . ' ' . $block->escapeHtml(implode( ' ', $classes) );
|
||||
$_nav = false;
|
||||
$nav = $this->getNav();
|
||||
if ( $navPosition == 'title' && $nav ){
|
||||
$_nav = true;
|
||||
}
|
||||
$_showTitle = false;
|
||||
if ( $showTitle && $title){
|
||||
$_showTitle = true;
|
||||
}
|
||||
?>
|
||||
|
||||
<?php /* @noEscape */ echo $block->renderApp([
|
||||
'widget_columns' => [
|
||||
'label' => $title,
|
||||
'titleClasses' => $titleClass,
|
||||
'displayMode' => $mode,
|
||||
'template' => 'Olegnax_ProductSlider/product/list/carousel-v4',
|
||||
'additionalClasses' => $wrapper_classes,
|
||||
'carouselOptions' => $carouselOptions,
|
||||
],
|
||||
'title' => [
|
||||
'label' => $title,
|
||||
'tag' => $titleTag,
|
||||
'show' => (bool)$_showTitle
|
||||
],
|
||||
'owl-nav' =>[
|
||||
'show' => (bool)$_nav
|
||||
],
|
||||
'owl-init' =>[
|
||||
'show' => true,
|
||||
],
|
||||
'image' => [
|
||||
'imageCode' => 'recently_viewed_products_grid_content_widget'
|
||||
]
|
||||
]);
|
||||
Executable
+85
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
use Magento\Ui\Block\Wrapper;
|
||||
use Olegnax\Athlete2\Helper\ProductList;
|
||||
|
||||
?>
|
||||
<?php
|
||||
// phpcs:disable Magento2.Security.LanguageConstruct.DirectOutput
|
||||
// phpcs:disable Magento2.PHP.ShortEchoSyntax.ShortEchoTag
|
||||
|
||||
/** @var $block Wrapper */
|
||||
?>
|
||||
|
||||
<?php
|
||||
$theme_helper = $this->helper( ProductList::class );
|
||||
$at_settings = $theme_helper->getModuleConfig();
|
||||
|
||||
$carouselOptions = $this->getCarouselOptions();
|
||||
|
||||
$showTitle = $block->getShowTitle();
|
||||
$titleTag = $block->getTitleTag() ?: 'strong';
|
||||
$title = $block->getTitle();
|
||||
$titleClass = 'no-title';
|
||||
if ( $showTitle ) {
|
||||
$titleClass = 'title-' . $titleTag;
|
||||
}
|
||||
$titleClass .= ' block-title title';
|
||||
$navPosition = $this->getNavPosition();
|
||||
$classes = [];
|
||||
$classes[] = 'product-columns-' . $this->getColumnsDesktop();
|
||||
$classes[] = 'product-columns-l-' . $this->getColumnsDesktopSmall();
|
||||
$classes[] = 'product-columns-m-' . $this->getColumnsTablet();
|
||||
$classes[] = 'product-columns-s-' . $this->getColumnsMobile();
|
||||
$classes[] = 'title--align-' . $this->getTitleAlign();
|
||||
$classes[] = $this->getProductsLayoutCentered() ? 'align-details-center' : '';
|
||||
$classes[] = $this->getTitleSideLine() ? 'title--sideline' : '';
|
||||
$classes[] = 'owl-dots--align-' . $this->getDotsAlign();
|
||||
$classes[] = 'owl-nav--position-' . $navPosition;
|
||||
$classes[] = 'title--align-' . $this->getTitleAlign();
|
||||
$classes[] = $this->getDots() ? 'owl-dots--show' : '';
|
||||
$classes[] = $this->getTitleSideLine() ? 'title--sideline' : '';
|
||||
$classes[] = $this->getCustomClass();
|
||||
|
||||
$type = 'widget-product-grid';
|
||||
$mode = 'grid';
|
||||
$wrapper_classes = 'widget block-viewed-products-grid products-grid__layout-default products-grid__buttons-below secondary-top-right block-products-list ' . $mode . ' ' . $block->escapeHtml(implode( ' ', $classes) );
|
||||
$_nav = false;
|
||||
$nav = $this->getNav();
|
||||
if ( $navPosition == 'title' && $nav ){
|
||||
$_nav = true;
|
||||
}
|
||||
$_showTitle = false;
|
||||
if ( $showTitle && $title){
|
||||
$_showTitle = true;
|
||||
}
|
||||
?>
|
||||
|
||||
<?php /* @noEscape */ echo $block->renderApp([
|
||||
'widget_columns' => [
|
||||
'label' => $title,
|
||||
'titleClasses' => $titleClass,
|
||||
'displayMode' => $mode,
|
||||
'template' => 'Olegnax_ProductSlider/product/list/carousel-v5',
|
||||
'additionalClasses' => $wrapper_classes,
|
||||
'carouselOptions' => $carouselOptions,
|
||||
],
|
||||
'title' => [
|
||||
'label' => $title,
|
||||
'tag' => $titleTag,
|
||||
'show' => (bool)$_showTitle
|
||||
],
|
||||
'owl-nav' =>[
|
||||
'show' => (bool)$_nav
|
||||
],
|
||||
'owl-init' =>[
|
||||
'show' => true,
|
||||
],
|
||||
'image' => [
|
||||
'imageCode' => 'recently_viewed_products_grid_content_widget'
|
||||
]
|
||||
]);
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
use Magento\Ui\Block\Wrapper;
|
||||
use Olegnax\Athlete2\Helper\ProductList;
|
||||
|
||||
?>
|
||||
<?php
|
||||
// phpcs:disable Magento2.Security.LanguageConstruct.DirectOutput
|
||||
// phpcs:disable Magento2.PHP.ShortEchoSyntax.ShortEchoTag
|
||||
|
||||
/** @var $block Wrapper */
|
||||
?>
|
||||
|
||||
<?php
|
||||
$theme_helper = $this->helper( ProductList::class );
|
||||
$at_settings = $theme_helper->getModuleConfig();
|
||||
|
||||
$showTitle = $block->getShowTitle();
|
||||
$titleTag = $block->getTitleTag() ?: 'strong';
|
||||
$title = $block->getTitle();
|
||||
$titleClass = 'no-title';
|
||||
if ( $showTitle ) {
|
||||
$titleClass = 'title-' . $titleTag;
|
||||
}
|
||||
$titleClass .= ' block-title title';
|
||||
|
||||
$classes = [];
|
||||
$classes[] = 'product-columns-' . $block->getColumnsDesktop();
|
||||
$classes[] = 'product-columns-l-' . $block->getColumnsDesktopSmall();
|
||||
$classes[] = 'product-columns-m-' . $block->getColumnsTablet();
|
||||
$classes[] = 'product-columns-s-' . $block->getColumnsMobile();
|
||||
$classes[] = 'title--align-' . $block->getTitleAlign();
|
||||
$classes[] = $block->getProductsLayoutCentered() ? 'align-details-center' : '';
|
||||
$classes[] = $block->getTitleSideLine() ? 'title--sideline' : '';
|
||||
$classes[] = $block->getCustomClass();
|
||||
|
||||
$type = 'widget-product-grid';
|
||||
$mode = 'grid';
|
||||
$wrapper_classes = 'widget block-viewed-products-grid products-grid__layout-default block-products-list ' . $mode . ' ' . $block->escapeHtml(implode( ' ', $classes) );
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<?php /* @noEscape */ echo $block->renderApp([
|
||||
'widget_columns' => [
|
||||
'label' => $title,
|
||||
'titleClasses' => $titleClass,
|
||||
'displayMode' => $mode,
|
||||
'template' => 'Olegnax_ProductSlider/product/list/grid-v1',
|
||||
'additionalClasses' => $wrapper_classes,
|
||||
],
|
||||
'title' => [
|
||||
'label' => $title,
|
||||
'tag' => $titleTag,
|
||||
'show' => (bool)$showTitle
|
||||
],
|
||||
'image' => [
|
||||
'imageCode' => 'recently_viewed_products_grid_content_widget'
|
||||
]
|
||||
]);
|
||||
Executable
+64
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
use Magento\Ui\Block\Wrapper;
|
||||
use Olegnax\Athlete2\Helper\ProductList;
|
||||
|
||||
?>
|
||||
<?php
|
||||
// phpcs:disable Magento2.Security.LanguageConstruct.DirectOutput
|
||||
// phpcs:disable Magento2.PHP.ShortEchoSyntax.ShortEchoTag
|
||||
|
||||
/** @var $block Wrapper */
|
||||
?>
|
||||
|
||||
<?php
|
||||
$theme_helper = $this->helper( ProductList::class );
|
||||
$at_settings = $theme_helper->getModuleConfig();
|
||||
|
||||
$showTitle = $block->getShowTitle();
|
||||
$titleTag = $block->getTitleTag() ?: 'strong';
|
||||
$title = $block->getTitle();
|
||||
$titleClass = 'no-title';
|
||||
if ( $showTitle ) {
|
||||
$titleClass = 'title-' . $titleTag;
|
||||
}
|
||||
$titleClass .= ' block-title title';
|
||||
|
||||
$classes = [];
|
||||
$classes[] = 'product-columns-' . $block->getColumnsDesktop();
|
||||
$classes[] = 'product-columns-l-' . $block->getColumnsDesktopSmall();
|
||||
$classes[] = 'product-columns-m-' . $block->getColumnsTablet();
|
||||
$classes[] = 'product-columns-s-' . $block->getColumnsMobile();
|
||||
$classes[] = 'title--align-' . $block->getTitleAlign();
|
||||
$classes[] = $block->getProductsLayoutCentered() ? 'align-details-center' : '';
|
||||
$classes[] = $block->getTitleSideLine() ? 'title--sideline' : '';
|
||||
$classes[] = $block->getCustomClass();
|
||||
|
||||
$type = 'widget-product-grid';
|
||||
$mode = 'grid';
|
||||
$wrapper_classes = 'widget block-viewed-products-grid products-grid__layout-2 block-products-list ' . $mode . ' ' . $block->escapeHtml(implode( ' ', $classes) );
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<?php /* @noEscape */ echo $block->renderApp([
|
||||
'widget_columns' => [
|
||||
'label' => $title,
|
||||
'titleClasses' => $titleClass,
|
||||
'displayMode' => $mode,
|
||||
'template' => 'Olegnax_ProductSlider/product/list/grid-v2',
|
||||
'additionalClasses' => $wrapper_classes,
|
||||
],
|
||||
'title' => [
|
||||
'label' => $title,
|
||||
'tag' => $titleTag,
|
||||
'show' => (bool)$showTitle
|
||||
],
|
||||
'image' => [
|
||||
'imageCode' => 'recently_viewed_products_grid_content_widget'
|
||||
]
|
||||
]);
|
||||
Executable
+64
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
use Magento\Ui\Block\Wrapper;
|
||||
use Olegnax\Athlete2\Helper\ProductList;
|
||||
|
||||
?>
|
||||
<?php
|
||||
// phpcs:disable Magento2.Security.LanguageConstruct.DirectOutput
|
||||
// phpcs:disable Magento2.PHP.ShortEchoSyntax.ShortEchoTag
|
||||
|
||||
/** @var $block Wrapper */
|
||||
?>
|
||||
|
||||
<?php
|
||||
$theme_helper = $this->helper( ProductList::class );
|
||||
$at_settings = $theme_helper->getModuleConfig();
|
||||
|
||||
$showTitle = $block->getShowTitle();
|
||||
$titleTag = $block->getTitleTag() ?: 'strong';
|
||||
$title = $block->getTitle();
|
||||
$titleClass = 'no-title';
|
||||
if ( $showTitle ) {
|
||||
$titleClass = 'title-' . $titleTag;
|
||||
}
|
||||
$titleClass .= ' block-title title';
|
||||
|
||||
$classes = [];
|
||||
$classes[] = 'product-columns-' . $block->getColumnsDesktop();
|
||||
$classes[] = 'product-columns-l-' . $block->getColumnsDesktopSmall();
|
||||
$classes[] = 'product-columns-m-' . $block->getColumnsTablet();
|
||||
$classes[] = 'product-columns-s-' . $block->getColumnsMobile();
|
||||
$classes[] = 'title--align-' . $block->getTitleAlign();
|
||||
$classes[] = $block->getProductsLayoutCentered() ? 'align-details-center' : '';
|
||||
$classes[] = $block->getTitleSideLine() ? 'title--sideline' : '';
|
||||
$classes[] = $block->getCustomClass();
|
||||
|
||||
$type = 'widget-product-grid';
|
||||
$mode = 'grid';
|
||||
$wrapper_classes = 'widget block-viewed-products-grid products-grid__layout-default products-grid__buttons-below block-products-list ' . $mode . ' ' . $block->escapeHtml(implode( ' ', $classes) );
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<?php /* @noEscape */ echo $block->renderApp([
|
||||
'widget_columns' => [
|
||||
'label' => $title,
|
||||
'titleClasses' => $titleClass,
|
||||
'displayMode' => $mode,
|
||||
'template' => 'Olegnax_ProductSlider/product/list/grid-v3',
|
||||
'additionalClasses' => $wrapper_classes,
|
||||
],
|
||||
'title' => [
|
||||
'label' => $title,
|
||||
'tag' => $titleTag,
|
||||
'show' => (bool)$showTitle
|
||||
],
|
||||
'image' => [
|
||||
'imageCode' => 'recently_viewed_products_grid_content_widget'
|
||||
]
|
||||
]);
|
||||
Executable
+64
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
use Magento\Ui\Block\Wrapper;
|
||||
use Olegnax\Athlete2\Helper\ProductList;
|
||||
|
||||
?>
|
||||
<?php
|
||||
// phpcs:disable Magento2.Security.LanguageConstruct.DirectOutput
|
||||
// phpcs:disable Magento2.PHP.ShortEchoSyntax.ShortEchoTag
|
||||
|
||||
/** @var $block Wrapper */
|
||||
?>
|
||||
|
||||
<?php
|
||||
$theme_helper = $this->helper( ProductList::class );
|
||||
$at_settings = $theme_helper->getModuleConfig();
|
||||
|
||||
$showTitle = $block->getShowTitle();
|
||||
$titleTag = $block->getTitleTag() ?: 'strong';
|
||||
$title = $block->getTitle();
|
||||
$titleClass = 'no-title';
|
||||
if ( $showTitle ) {
|
||||
$titleClass = 'title-' . $titleTag;
|
||||
}
|
||||
$titleClass .= ' block-title title';
|
||||
|
||||
$classes = [];
|
||||
$classes[] = 'product-columns-' . $block->getColumnsDesktop();
|
||||
$classes[] = 'product-columns-l-' . $block->getColumnsDesktopSmall();
|
||||
$classes[] = 'product-columns-m-' . $block->getColumnsTablet();
|
||||
$classes[] = 'product-columns-s-' . $block->getColumnsMobile();
|
||||
$classes[] = 'title--align-' . $block->getTitleAlign();
|
||||
$classes[] = $block->getProductsLayoutCentered() ? 'align-details-center' : '';
|
||||
$classes[] = $block->getTitleSideLine() ? 'title--sideline' : '';
|
||||
$classes[] = $block->getCustomClass();
|
||||
|
||||
$type = 'widget-product-grid';
|
||||
$mode = 'grid';
|
||||
$wrapper_classes = 'widget block-viewed-products-grid products-grid__layout-default products-grid__buttons-below block-products-list ' . $mode . ' ' . $block->escapeHtml(implode( ' ', $classes) );
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<?php /* @noEscape */ echo $block->renderApp([
|
||||
'widget_columns' => [
|
||||
'label' => $title,
|
||||
'titleClasses' => $titleClass,
|
||||
'displayMode' => $mode,
|
||||
'template' => 'Olegnax_ProductSlider/product/list/grid-v4',
|
||||
'additionalClasses' => $wrapper_classes,
|
||||
],
|
||||
'title' => [
|
||||
'label' => $title,
|
||||
'tag' => $titleTag,
|
||||
'show' => (bool)$showTitle
|
||||
],
|
||||
'image' => [
|
||||
'imageCode' => 'recently_viewed_products_grid_content_widget'
|
||||
]
|
||||
]);
|
||||
Executable
+64
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
use Magento\Ui\Block\Wrapper;
|
||||
use Olegnax\Athlete2\Helper\ProductList;
|
||||
|
||||
?>
|
||||
<?php
|
||||
// phpcs:disable Magento2.Security.LanguageConstruct.DirectOutput
|
||||
// phpcs:disable Magento2.PHP.ShortEchoSyntax.ShortEchoTag
|
||||
|
||||
/** @var $block Wrapper */
|
||||
?>
|
||||
|
||||
<?php
|
||||
$theme_helper = $this->helper( ProductList::class );
|
||||
$at_settings = $theme_helper->getModuleConfig();
|
||||
|
||||
$showTitle = $block->getShowTitle();
|
||||
$titleTag = $block->getTitleTag() ?: 'strong';
|
||||
$title = $block->getTitle();
|
||||
$titleClass = 'no-title';
|
||||
if ( $showTitle ) {
|
||||
$titleClass = 'title-' . $titleTag;
|
||||
}
|
||||
$titleClass .= ' block-title title';
|
||||
|
||||
$classes = [];
|
||||
$classes[] = 'product-columns-' . $block->getColumnsDesktop();
|
||||
$classes[] = 'product-columns-l-' . $block->getColumnsDesktopSmall();
|
||||
$classes[] = 'product-columns-m-' . $block->getColumnsTablet();
|
||||
$classes[] = 'product-columns-s-' . $block->getColumnsMobile();
|
||||
$classes[] = 'title--align-' . $block->getTitleAlign();
|
||||
$classes[] = $block->getProductsLayoutCentered() ? 'align-details-center' : '';
|
||||
$classes[] = $block->getTitleSideLine() ? 'title--sideline' : '';
|
||||
$classes[] = $block->getCustomClass();
|
||||
|
||||
$type = 'widget-product-grid';
|
||||
$mode = 'grid';
|
||||
$wrapper_classes = 'widget block-viewed-products-grid products-grid__layout-default products-grid__buttons-below secondary-top-right block-products-list ' . $mode . ' ' . $block->escapeHtml(implode( ' ', $classes) );
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<?php /* @noEscape */ echo $block->renderApp([
|
||||
'widget_columns' => [
|
||||
'label' => $title,
|
||||
'titleClasses' => $titleClass,
|
||||
'displayMode' => $mode,
|
||||
'template' => 'Olegnax_ProductSlider/product/list/grid-v5',
|
||||
'additionalClasses' => $wrapper_classes,
|
||||
],
|
||||
'title' => [
|
||||
'label' => $title,
|
||||
'tag' => $titleTag,
|
||||
'show' => (bool)$showTitle
|
||||
],
|
||||
'image' => [
|
||||
'imageCode' => 'recently_viewed_products_grid_content_widget'
|
||||
]
|
||||
]);
|
||||
+101
@@ -0,0 +1,101 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
|
||||
<columns name="widget_columns" component="Magento_Catalog/js/product/list/listing" template="Magento_Catalog/product/list/listing">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="label" xsi:type="string" translate="true">Recently Viewed</item>
|
||||
<item name="additionalClasses" xsi:type="string">widget block-viewed-products-grid</item>
|
||||
<item name="titleClasses" xsi:type="string">block-title title</item>
|
||||
<item name="listTemplate" xsi:type="string">Magento_Catalog/product/list/listing</item>
|
||||
<item name="carouselOptions" xsi:type="string">0</item>
|
||||
</item>
|
||||
</argument>
|
||||
<settings>
|
||||
<displayMode>grid</displayMode>
|
||||
</settings>
|
||||
<column name="title" component="Olegnax_ProductSlider/js/product/title" sortOrder="0" displayArea="title-area">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="label" xsi:type="string">Recently Viewed</item>
|
||||
<item name="tag" xsi:type="string">strong</item>
|
||||
<item name="show" xsi:type="boolean">true</item>
|
||||
<item name="sortOrder" xsi:type="number">0</item>
|
||||
</item>
|
||||
</argument>
|
||||
<settings>
|
||||
<label translate="true">title</label>
|
||||
<bodyTmpl>Olegnax_ProductSlider/product/title</bodyTmpl>
|
||||
</settings>
|
||||
</column>
|
||||
<column name="owl-init" component="Olegnax_ProductSlider/js/product/owl-init" sortOrder="1" displayArea="wrap-area">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="show" xsi:type="boolean">false</item>
|
||||
</item>
|
||||
</argument>
|
||||
<settings>
|
||||
<label translate="true">Owl Init</label>
|
||||
<bodyTmpl>Olegnax_ProductSlider/product/owl-init</bodyTmpl>
|
||||
</settings>
|
||||
</column>
|
||||
<column name="owl-nav" component="Olegnax_ProductSlider/js/product/owl-nav" sortOrder="2" displayArea="title-area">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="show" xsi:type="boolean">false</item>
|
||||
<item name="sortOrder" xsi:type="number">2</item>
|
||||
</item>
|
||||
</argument>
|
||||
<settings>
|
||||
<label translate="true">Owl nav</label>
|
||||
<bodyTmpl>Olegnax_ProductSlider/product/owl-nav</bodyTmpl>
|
||||
</settings>
|
||||
</column>
|
||||
<column name="image" component="Magento_Catalog/js/product/list/columns/image" sortOrder="0" displayArea="general-area">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="imageCode" xsi:type="string">recently_viewed_products_grid_content_widget</item>
|
||||
</item>
|
||||
</argument>
|
||||
<settings>
|
||||
<label translate="true">Image</label>
|
||||
<bodyTmpl>Magento_Catalog/product/list/columns/image_with_borders</bodyTmpl>
|
||||
</settings>
|
||||
</column>
|
||||
<column name="overlay-link" component="Olegnax_ProductSlider/js/product/overlay-link" sortOrder="1" displayArea="product-item-inner-area">
|
||||
<settings>
|
||||
<label translate="true">Product Link</label>
|
||||
<bodyTmpl>Olegnax_ProductSlider/product/overlay-link</bodyTmpl>
|
||||
</settings>
|
||||
</column>
|
||||
<column name="name" component="Magento_Catalog/js/product/name" sortOrder="1" displayArea="details-area">
|
||||
<settings>
|
||||
<label translate="true">Name</label>
|
||||
<bodyTmpl>Magento_Catalog/product/name</bodyTmpl>
|
||||
</settings>
|
||||
</column>
|
||||
<column name="addtocart-button" component="Magento_Catalog/js/product/addtocart-button" displayArea="action-primary-area">
|
||||
<settings>
|
||||
<label translate="true">Add To Cart</label>
|
||||
<bodyTmpl>Olegnax_ProductSlider/product/addtocart-button</bodyTmpl>
|
||||
</settings>
|
||||
</column>
|
||||
<column name="addtocompare-button" component="Magento_Catalog/js/product/addtocompare-button" sortOrder="2" displayArea="action-secondary-area">
|
||||
<settings>
|
||||
<label translate="true">Add To Compare</label>
|
||||
<bodyTmpl>Olegnax_ProductSlider/product/addtocompare-button</bodyTmpl>
|
||||
</settings>
|
||||
</column>
|
||||
<column name="learn-more" component="Magento_Catalog/js/product/learn-more" displayArea="description-area">
|
||||
<settings>
|
||||
<label translate="true">Learn more</label>
|
||||
<bodyTmpl>Olegnax_ProductSlider/product/link</bodyTmpl>
|
||||
</settings>
|
||||
</column>
|
||||
</columns>
|
||||
</listing>
|
||||
@@ -0,0 +1,482 @@
|
||||
//
|
||||
// Variables
|
||||
// _____________________________________________
|
||||
|
||||
@product-widget-title-side-line-color: rgba(107, 107, 107, 0.18);
|
||||
|
||||
//
|
||||
// Mixins
|
||||
// _____________________________________________
|
||||
.grid-col(@col) {
|
||||
max-width: 100%/@col;
|
||||
-webkit-flex-basis: 100%/@col;
|
||||
-ms-flex-preferred-size: 100%/@col;
|
||||
flex-basis: 100%/@col;
|
||||
}
|
||||
.desktop-products-grid() {
|
||||
&.product-columns-8 {
|
||||
.owl-carousel:not(.owl-loaded) > .product-item-info,
|
||||
.products-grid .product-item {
|
||||
.grid-col(8);
|
||||
}
|
||||
}
|
||||
&.product-columns-7 {
|
||||
.owl-carousel:not(.owl-loaded) > .product-item-info,
|
||||
.products-grid .product-item {
|
||||
.grid-col(7);
|
||||
}
|
||||
}
|
||||
&.product-columns-6 {
|
||||
.owl-carousel:not(.owl-loaded) > .product-item-info,
|
||||
.products-grid .product-item {
|
||||
.grid-col(6);
|
||||
}
|
||||
}
|
||||
&.product-columns-5 {
|
||||
.owl-carousel:not(.owl-loaded) > .product-item-info,
|
||||
.products-grid .product-item {
|
||||
.grid-col(5);
|
||||
}
|
||||
}
|
||||
&.product-columns-4 {
|
||||
.owl-carousel:not(.owl-loaded) > .product-item-info,
|
||||
.products-grid .product-item {
|
||||
.grid-col(4);
|
||||
}
|
||||
}
|
||||
&.product-columns-3 {
|
||||
.owl-carousel:not(.owl-loaded) > .product-item-info,
|
||||
.products-grid .product-item {
|
||||
.grid-col(3);
|
||||
}
|
||||
}
|
||||
&.product-columns-2 {
|
||||
.owl-carousel:not(.owl-loaded) > .product-item-info,
|
||||
.products-grid .product-item {
|
||||
.grid-col(2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.small-desktop-products-grid() {
|
||||
&.product-columns-l-8 {
|
||||
.owl-carousel:not(.owl-loaded) > .product-item-info,
|
||||
.products-grid .product-item {
|
||||
.grid-col(8);
|
||||
}
|
||||
}
|
||||
&.product-columns-l-7 {
|
||||
.owl-carousel:not(.owl-loaded) > .product-item-info,
|
||||
.products-grid .product-item {
|
||||
.grid-col(7);
|
||||
}
|
||||
}
|
||||
&.product-columns-l-6 {
|
||||
.owl-carousel:not(.owl-loaded) > .product-item-info,
|
||||
.products-grid .product-item {
|
||||
.grid-col(6);
|
||||
}
|
||||
}
|
||||
&.product-columns-l-5 {
|
||||
.owl-carousel:not(.owl-loaded) > .product-item-info,
|
||||
.products-grid .product-item {
|
||||
.grid-col(5);
|
||||
}
|
||||
}
|
||||
&.product-columns-l-4 {
|
||||
.owl-carousel:not(.owl-loaded) > .product-item-info,
|
||||
.products-grid .product-item {
|
||||
.grid-col(4);
|
||||
}
|
||||
}
|
||||
&.product-columns-l-3 {
|
||||
.owl-carousel:not(.owl-loaded) > .product-item-info,
|
||||
.products-grid .product-item {
|
||||
.grid-col(3);
|
||||
}
|
||||
}
|
||||
&.product-columns-l-2 {
|
||||
.owl-carousel:not(.owl-loaded) > .product-item-info,
|
||||
.products-grid .product-item {
|
||||
.grid-col(2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tablet-products-grid() {
|
||||
.owl-carousel:not(.owl-loaded) > .product-item-info,
|
||||
.products-grid .product-item {
|
||||
|
||||
.grid-col(3);
|
||||
}
|
||||
&.product-columns-m-6 {
|
||||
.owl-carousel:not(.owl-loaded) > .product-item-info,
|
||||
.products-grid .product-item {
|
||||
.grid-col(6);
|
||||
}
|
||||
}
|
||||
&.product-columns-m-5 {
|
||||
.owl-carousel:not(.owl-loaded) > .product-item-info,
|
||||
.products-grid .product-item {
|
||||
.grid-col(5);
|
||||
}
|
||||
}
|
||||
&.product-columns-m-4 {
|
||||
.owl-carousel:not(.owl-loaded) > .product-item-info,
|
||||
.products-grid .product-item {
|
||||
.grid-col(4);
|
||||
}
|
||||
}
|
||||
&.product-columns-m-3 {
|
||||
.owl-carousel:not(.owl-loaded) > .product-item-info,
|
||||
.products-grid .product-item {
|
||||
.grid-col(3);
|
||||
}
|
||||
}
|
||||
&.product-columns-m-2 {
|
||||
.owl-carousel:not(.owl-loaded) > .product-item-info,
|
||||
.products-grid .product-item {
|
||||
.grid-col(2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.mobile-products-grid() {
|
||||
&.product-columns-s-2 {
|
||||
.owl-carousel:not(.owl-loaded) > .product-item-info,
|
||||
.products-grid .product-item {
|
||||
.grid-col(2);
|
||||
}
|
||||
}
|
||||
&.product-columns-s-1 {
|
||||
.owl-carousel:not(.owl-loaded) > .product-item-info,
|
||||
.products-grid .product-item {
|
||||
.grid-col(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Common
|
||||
// _____________________________________________
|
||||
|
||||
& when (@media-common = true) {
|
||||
.products-grid .product-items.owl-carousel .product-item {
|
||||
&,
|
||||
.page-products &{
|
||||
max-width: none!important;
|
||||
}
|
||||
}
|
||||
|
||||
.owl-dots--align-center {
|
||||
.owl-carousel {
|
||||
.owl-dots {
|
||||
width: 100%;
|
||||
display: -ms-flexbox;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
-webkit-justify-content: center;
|
||||
-moz-justify-content: center;
|
||||
-ms-flex-pack: center;
|
||||
-ms-justify-content: center;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.widget {
|
||||
&.block-products-list {
|
||||
.owl-carousel:not(.owl-loaded) {
|
||||
display: -webkit-flex;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
> .product-item-info{
|
||||
opacity:0;
|
||||
visibility:hidden;
|
||||
}
|
||||
}
|
||||
margin-bottom: 60px;
|
||||
.products-grid {
|
||||
.product-items:not(.owl-carousel){
|
||||
display: -webkit-flex;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-flex-flow: row wrap;
|
||||
-ms-flex-flow: row wrap;
|
||||
flex-flow: row wrap;
|
||||
.product-item{
|
||||
width:100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
.block-title {
|
||||
margin-bottom: 15px;
|
||||
|
||||
strong, h1, h2, h3, h4, h5, h6 {
|
||||
max-width: calc(~"100% - 70px");
|
||||
margin: 0;
|
||||
line-height: 1;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.owl-nav {
|
||||
margin-left: 20px;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
&.no-title {
|
||||
.owl-nav {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&.title-h1,
|
||||
&.title-h2,
|
||||
&.title-h3 {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
&.title--align-center {
|
||||
.block-title {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
&.owl-nav--position-title {
|
||||
.owl-carousel {
|
||||
.owl-nav {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.title--sideline {
|
||||
&.title--align-left {
|
||||
.block-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
text-align: left;
|
||||
|
||||
&:after {
|
||||
background-color: @product-widget-title-side-line-color;
|
||||
content: "";
|
||||
display: inline-block;
|
||||
height: 1px;
|
||||
position: relative;
|
||||
vertical-align: middle;
|
||||
width: 100%;
|
||||
left: 30px;
|
||||
margin-right: -100%;
|
||||
}
|
||||
|
||||
&.no-title {
|
||||
&:after {
|
||||
left: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.title--align-center {
|
||||
.block-title {
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
|
||||
&:before,
|
||||
&:after {
|
||||
background-color: @product-widget-title-side-line-color;
|
||||
content: "";
|
||||
display: inline-block;
|
||||
height: 1px;
|
||||
position: relative;
|
||||
vertical-align: middle;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
&:before {
|
||||
right: 30px;
|
||||
margin-left: -100%;
|
||||
}
|
||||
|
||||
&:after {
|
||||
left: 30px;
|
||||
margin-right: -100%;
|
||||
}
|
||||
|
||||
&.no-title {
|
||||
&:after {
|
||||
left: 10px;
|
||||
}
|
||||
|
||||
&:before {
|
||||
right: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.owl-carousel.widget-product-grid {
|
||||
.owl-nav {
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
transition: opacity 0.2s, visibility 0.2s;
|
||||
|
||||
button {
|
||||
transition: transform 0.2s ease;
|
||||
|
||||
&.owl-next,
|
||||
&.owl-prev {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
|
||||
&.disabled {
|
||||
opacity: 0.2;
|
||||
cursor: default;
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
&.owl-prev {
|
||||
transform: translateX(-20px) translateY(-50%);
|
||||
left: -10px;
|
||||
}
|
||||
|
||||
&.owl-next {
|
||||
transform: translateX(20px) translateY(-50%);
|
||||
right: -10px;
|
||||
|
||||
span {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.owl-dots--show {
|
||||
.owl-carousel {
|
||||
.owl-nav {
|
||||
button {
|
||||
&.owl-next,
|
||||
&.owl-prev {
|
||||
margin-top: -25px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.block.widget{
|
||||
.page-layout-1column-fullwidth &,
|
||||
.page-layout-3columns &,
|
||||
.page-layout-1column &,
|
||||
& {
|
||||
.mobile-products-grid();
|
||||
}
|
||||
}
|
||||
|
||||
.product-grid__image-wrapper .action:is(.tocompare, .towishlist):after{
|
||||
content: none;
|
||||
}
|
||||
.widget.block-products-list .block-title {
|
||||
.title-wrap{
|
||||
max-width: ~"calc(100% - 70px)";
|
||||
margin: 0;
|
||||
line-height: 1;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
& > *{
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__xs) {
|
||||
.widget.block-products-list {
|
||||
&.owl-nav--position-title {
|
||||
.block-title {
|
||||
.title-wrap, strong, h1, h2, h3, h4, h5, h6 {
|
||||
max-width: calc(~"100% - 60px");
|
||||
}
|
||||
.title-wrap{
|
||||
& > *{
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.owl-nav {
|
||||
margin-left: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Tablet
|
||||
// _____________________________________________
|
||||
.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__s) {
|
||||
.block.widget{
|
||||
.page-layout-1column-fullwidth &,
|
||||
.page-layout-3columns &,
|
||||
.page-layout-1column &,
|
||||
& {
|
||||
.tablet-products-grid();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Small Desktop
|
||||
// _____________________________________________
|
||||
|
||||
.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
|
||||
.owl-carousel.widget-product-grid {
|
||||
&:hover {
|
||||
.owl-nav {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
.block.widget{
|
||||
.page-layout-1column-fullwidth &,
|
||||
.page-layout-3columns &,
|
||||
.page-layout-1column &,
|
||||
& {
|
||||
.small-desktop-products-grid();
|
||||
}
|
||||
}
|
||||
.widget {
|
||||
&.block-products-list {
|
||||
.block-title {
|
||||
h1 {
|
||||
font-size: 58px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Desktop
|
||||
// _____________________________________________
|
||||
|
||||
.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__l) {
|
||||
.block.widget{
|
||||
.page-layout-1column-fullwidth &,
|
||||
.page-layout-3columns &,
|
||||
.page-layout-1column &,
|
||||
& {
|
||||
.desktop-products-grid();
|
||||
}
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
define([
|
||||
'jquery',
|
||||
'jquery-ui-modules/widget',
|
||||
'jquery-ui-modules/core',
|
||||
'catalogAddToCart'
|
||||
], function ($) {
|
||||
'use strict';
|
||||
|
||||
$.widget('ox.loopOwlAddtocart', {
|
||||
options: {},
|
||||
_create: function () {
|
||||
this.element.find('.cloned [data-role=tocart-form]').catalogAddToCart();
|
||||
this.element.on('initialize.owl.carousel initialized.owl.carousel', function (e) {
|
||||
$(this).find('.cloned [data-role=tocart-form]').catalogAddToCart();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
return $.ox.loopOwlAddtocart;
|
||||
});
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
define([
|
||||
'Magento_Ui/js/grid/columns/column',
|
||||
'escaper'
|
||||
], function (Column, escaper) {
|
||||
'use strict';
|
||||
|
||||
return Column.extend({
|
||||
defaults: {
|
||||
allowedTags: ['div', 'span', 'b', 'strong', 'i', 'em', 'u', 'a'],
|
||||
},
|
||||
getLabel: function (row) {
|
||||
return row.name;
|
||||
},
|
||||
/**
|
||||
* Get Product name for link.
|
||||
*
|
||||
* @param {String} label
|
||||
* @returns {String}
|
||||
*/
|
||||
getNameUnsanitizedHtml: function (label) {
|
||||
return escaper.escapeHtml(label, this.allowedTags);
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
define([
|
||||
'jquery',
|
||||
'Magento_Ui/js/grid/columns/column',
|
||||
], function ($, Column) {
|
||||
'use strict';
|
||||
|
||||
return Column.extend({
|
||||
isAllowed: function (show) {
|
||||
$('body').trigger('contentUpdated');
|
||||
return !!show;
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
define([
|
||||
'Magento_Ui/js/grid/columns/column',
|
||||
], function (Column) {
|
||||
'use strict';
|
||||
|
||||
return Column.extend({
|
||||
/**
|
||||
* Depends on this option, "owl nav" can be shown or hide. Depends on backend configuration
|
||||
*
|
||||
* @returns {Boolean}
|
||||
*/
|
||||
isAllowed: function (show) {
|
||||
return !!show;
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
define([
|
||||
'Magento_Ui/js/grid/columns/column',
|
||||
'escaper'
|
||||
], function (Column, escaper) {
|
||||
'use strict';
|
||||
|
||||
return Column.extend({
|
||||
defaults: {
|
||||
allowedTags: ['div', 'span', 'b', 'strong', 'i', 'em', 'u', 'a'],
|
||||
},
|
||||
/**
|
||||
* Title column.
|
||||
*
|
||||
* @param {String} label
|
||||
* @returns {String}
|
||||
*/
|
||||
getNameUnsanitizedHtml: function (label, tag) {
|
||||
return '<' + tag + ' role="heading" aria-level="2">' + escaper.escapeHtml(label, this.allowedTags) + '</' + tag + '>';
|
||||
}
|
||||
});
|
||||
});
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<if args="isAllowed()">
|
||||
<if args="isSalable($row())">
|
||||
<button class="action tocart primary"
|
||||
attr="'data-mage-init': getDataMageInit($row()),
|
||||
'data-post': getDataPost($row()),
|
||||
title: getLabel()"
|
||||
type="button">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="minicart-icon-1" width="14" height="16" viewBox="0 0 14 16">
|
||||
<path d="M11,3V0H3V3H0V16H14V3H11ZM5,2H9V3H5V2Zm7,12H2V5H3V7H5V5H9V7h2V5h1v9Z"></path>
|
||||
</svg>
|
||||
<span text="getLabel()"></span>
|
||||
</button>
|
||||
</if>
|
||||
|
||||
<if args="isAvailable($row()) === false">
|
||||
<div class="stock unavailable">
|
||||
<text args="$t('Availability')"></text>
|
||||
<span translate="'Out of stock'"></span>
|
||||
</div>
|
||||
</if>
|
||||
</if>
|
||||
Executable
+20
@@ -0,0 +1,20 @@
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<if args="isAllowed()">
|
||||
<button attr="'data-post': $col.getDataPost($row()), title: getLabel()"
|
||||
class="action tocompare"
|
||||
data-action="add-to-compare">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="15" height="16" viewBox="0 0 15 16">
|
||||
<g>
|
||||
<polygon points="2 2 8 2 8 0 0 0 0 12 3 12 3 10 2 10 2 2"></polygon>
|
||||
<rect x="8" y="2" width="2" height="1"></rect>
|
||||
<polygon points="13 6 13 14 6 14 6 6 13 6 13 4 4 4 4 16 15 16 15 6 13 6"></polygon>
|
||||
</g>
|
||||
</svg>
|
||||
<span text="getLabel()"></span>
|
||||
</button>
|
||||
</if>
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<a if="isAllowed()"
|
||||
class="action more"
|
||||
attr="href: $row().url"
|
||||
text="label"></a>
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<div if="hasData()"
|
||||
class="block" css="additionalClasses">
|
||||
<div if="regionHasElements('title-area')" css="titleClasses">
|
||||
<fastForEach args="data: getRegion('title-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
<div class="block-content">
|
||||
<div css="'products-' + displayMode + ' ' + displayMode">
|
||||
<fastForEach args="data: getRegion('wrap-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div class="product-items widget-product-grid owl-carousel" data-role="product-owlCarousel" attr="'data-mage-init': carouselOptions">
|
||||
<div class="product-item-info" repeat="foreach: filteredRows, item: '$row'">
|
||||
<div if="regionHasElements('general-area')" class="product-grid__image-wrapper">
|
||||
<fastForEach args="data: getRegion('general-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div class="product-item-inner">
|
||||
<div class="product-item-actions">
|
||||
<div class="actions-primary" if="regionHasElements('action-primary-area') || regionHasElements('action-secondary-area')">
|
||||
<fastForEach args="data: getRegion('action-primary-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div if="regionHasElements('action-secondary-area')"
|
||||
class="actions-secondary"
|
||||
data-role="add-to-links">
|
||||
<fastForEach args="data: getRegion('action-secondary-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<fastForEach args="data: getRegion('product-item-inner-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
</div>
|
||||
<div class="product-grid-overlay"></div>
|
||||
<div class="product-item-details">
|
||||
<fastForEach args="data: getRegion('details-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div if="regionHasElements('description-area')"
|
||||
class="product description product-item-description">
|
||||
<fastForEach args="data: getRegion('description-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<div if="hasData()"
|
||||
class="block" css="additionalClasses">
|
||||
<div if="regionHasElements('title-area')" css="titleClasses">
|
||||
<fastForEach args="data: getRegion('title-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
<div class="block-content">
|
||||
<div css="'products-' + displayMode + ' ' + displayMode">
|
||||
<fastForEach args="data: getRegion('wrap-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div class="product-items widget-product-grid owl-carousel" data-role="product-owlCarousel" attr="'data-mage-init': carouselOptions">
|
||||
<div class="product-item-info" repeat="foreach: filteredRows, item: '$row'">
|
||||
<div if="regionHasElements('general-area')" class="product-grid__image-wrapper">
|
||||
<fastForEach args="data: getRegion('general-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div class="product-item-inner">
|
||||
<div class="product-item-actions">
|
||||
<div class="actions-primary" if="regionHasElements('action-primary-area') || regionHasElements('action-secondary-area')">
|
||||
<fastForEach args="data: getRegion('action-primary-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
</div>
|
||||
<fastForEach args="data: getRegion('product-item-inner-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
</div>
|
||||
<div class="product-grid-overlay"></div>
|
||||
<div class="product-item-details">
|
||||
<div if="regionHasElements('action-secondary-area')"
|
||||
class="actions-secondary"
|
||||
data-role="add-to-links">
|
||||
<fastForEach args="data: getRegion('action-secondary-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
<fastForEach args="data: getRegion('details-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div if="regionHasElements('description-area')"
|
||||
class="product description product-item-description">
|
||||
<fastForEach args="data: getRegion('description-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<div if="hasData()"
|
||||
class="block" css="additionalClasses">
|
||||
<div if="regionHasElements('title-area')" css="titleClasses">
|
||||
<fastForEach args="data: getRegion('title-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
<div class="block-content">
|
||||
<div css="'products-' + displayMode + ' ' + displayMode">
|
||||
<fastForEach args="data: getRegion('wrap-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div class="product-items widget-product-grid owl-carousel" data-role="product-owlCarousel" attr="'data-mage-init': carouselOptions">
|
||||
<div class="product-item-info" repeat="foreach: filteredRows, item: '$row'">
|
||||
<div if="regionHasElements('general-area')" class="product-grid__image-wrapper">
|
||||
<fastForEach args="data: getRegion('general-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div class="product-item-inner">
|
||||
<div class="product-item-actions">
|
||||
<div if="regionHasElements('action-secondary-area')"
|
||||
class="actions-secondary"
|
||||
data-role="add-to-links">
|
||||
<fastForEach args="data: getRegion('action-secondary-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
</div>
|
||||
<fastForEach args="data: getRegion('product-item-inner-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
</div>
|
||||
<div class="product-grid-overlay"></div>
|
||||
<div class="product-item-details">
|
||||
<fastForEach args="data: getRegion('details-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div if="regionHasElements('description-area')"
|
||||
class="product description product-item-description">
|
||||
<fastForEach args="data: getRegion('description-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
<div class="product actions product-item-actions">
|
||||
<div class="actions-primary" if="regionHasElements('action-primary-area')">
|
||||
<fastForEach args="data: getRegion('action-primary-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<div if="hasData()"
|
||||
class="block" css="additionalClasses">
|
||||
<div if="regionHasElements('title-area')" css="titleClasses">
|
||||
<fastForEach args="data: getRegion('title-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
<div class="block-content">
|
||||
<div css="'products-' + displayMode + ' ' + displayMode">
|
||||
<fastForEach args="data: getRegion('wrap-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div class="product-items widget-product-grid owl-carousel" data-role="product-owlCarousel" attr="'data-mage-init': carouselOptions">
|
||||
<div class="product-item-info" repeat="foreach: filteredRows, item: '$row'">
|
||||
<div if="regionHasElements('general-area')" class="product-grid__image-wrapper">
|
||||
<fastForEach args="data: getRegion('general-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div class="product-item-inner">
|
||||
<fastForEach args="data: getRegion('product-item-inner-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
</div>
|
||||
<div class="product-grid-overlay"></div>
|
||||
<div class="product-item-details">
|
||||
<fastForEach args="data: getRegion('details-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div if="regionHasElements('description-area')"
|
||||
class="product description product-item-description">
|
||||
<fastForEach args="data: getRegion('description-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
<div class="product actions product-item-actions" if="regionHasElements('action-primary-area') || regionHasElements('action-secondary-area')">
|
||||
<div class="actions-primary" if="regionHasElements('action-primary-area')">
|
||||
<fastForEach args="data: getRegion('action-primary-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
<div if="regionHasElements('action-secondary-area')"
|
||||
class="actions-secondary"
|
||||
data-role="add-to-links">
|
||||
<fastForEach args="data: getRegion('action-secondary-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<div if="hasData()"
|
||||
class="block" css="additionalClasses">
|
||||
<div if="regionHasElements('title-area')" css="titleClasses">
|
||||
<fastForEach args="data: getRegion('title-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
<div class="block-content">
|
||||
<div css="'products-' + displayMode + ' ' + displayMode">
|
||||
<fastForEach args="data: getRegion('wrap-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div class="product-items widget-product-grid owl-carousel" data-role="product-owlCarousel" attr="'data-mage-init': carouselOptions">
|
||||
<div class="product-item-info" repeat="foreach: filteredRows, item: '$row'">
|
||||
<div if="regionHasElements('general-area')" class="product-grid__image-wrapper">
|
||||
<fastForEach args="data: getRegion('general-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div class="product-item-inner">
|
||||
<div if="regionHasElements('action-secondary-area')"
|
||||
class="actions-secondary"
|
||||
data-role="add-to-links">
|
||||
<fastForEach args="data: getRegion('action-secondary-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
<fastForEach args="data: getRegion('product-item-inner-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
</div>
|
||||
<div class="product-grid-overlay"></div>
|
||||
<div class="product-item-details">
|
||||
<fastForEach args="data: getRegion('details-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div if="regionHasElements('description-area')"
|
||||
class="product description product-item-description">
|
||||
<fastForEach args="data: getRegion('description-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
<div class="product actions product-item-actions">
|
||||
<div class="actions-primary" if="regionHasElements('action-primary-area')">
|
||||
<fastForEach args="data: getRegion('action-primary-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<div if="hasData()"
|
||||
class="block" css="additionalClasses">
|
||||
<div if="regionHasElements('title-area')" css="titleClasses">
|
||||
<fastForEach args="data: getRegion('title-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
<div class="block-content">
|
||||
<div css="'products-' + displayMode + ' ' + displayMode">
|
||||
<fastForEach args="data: getRegion('wrap-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div class="product-items widget-product-grid">
|
||||
<div class="product-item" repeat="foreach: filteredRows, item: '$row'">
|
||||
<div class="product-item-info">
|
||||
|
||||
<div if="regionHasElements('general-area')" class="product-grid__image-wrapper">
|
||||
<fastForEach args="data: getRegion('general-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div class="product-item-inner">
|
||||
<div class="product-item-actions">
|
||||
<div class="actions-primary" if="regionHasElements('action-primary-area') || regionHasElements('action-secondary-area')">
|
||||
<fastForEach args="data: getRegion('action-primary-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div if="regionHasElements('action-secondary-area')"
|
||||
class="actions-secondary"
|
||||
data-role="add-to-links">
|
||||
<fastForEach args="data: getRegion('action-secondary-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<fastForEach args="data: getRegion('product-item-inner-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
</div>
|
||||
<div class="product-grid-overlay"></div>
|
||||
<div class="product-item-details">
|
||||
<fastForEach args="data: getRegion('details-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div if="regionHasElements('description-area')"
|
||||
class="product description product-item-description">
|
||||
<fastForEach args="data: getRegion('description-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<div if="hasData()"
|
||||
class="block" css="additionalClasses">
|
||||
<div if="regionHasElements('title-area')" css="titleClasses">
|
||||
<fastForEach args="data: getRegion('title-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
<div class="block-content">
|
||||
<div css="'products-' + displayMode + ' ' + displayMode">
|
||||
<fastForEach args="data: getRegion('wrap-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div class="product-items widget-product-grid">
|
||||
<div class="product-item" repeat="foreach: filteredRows, item: '$row'">
|
||||
<div class="product-item-info">
|
||||
|
||||
<div if="regionHasElements('general-area')" class="product-grid__image-wrapper">
|
||||
<fastForEach args="data: getRegion('general-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div class="product-item-inner">
|
||||
<div class="product-item-actions">
|
||||
<div class="actions-primary" if="regionHasElements('action-primary-area') || regionHasElements('action-secondary-area')">
|
||||
<fastForEach args="data: getRegion('action-primary-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
</div>
|
||||
<fastForEach args="data: getRegion('product-item-inner-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
</div>
|
||||
<div class="product-grid-overlay"></div>
|
||||
<div class="product-item-details">
|
||||
<div if="regionHasElements('action-secondary-area')"
|
||||
class="actions-secondary"
|
||||
data-role="add-to-links">
|
||||
<fastForEach args="data: getRegion('action-secondary-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
<fastForEach args="data: getRegion('details-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div if="regionHasElements('description-area')"
|
||||
class="product description product-item-description">
|
||||
<fastForEach args="data: getRegion('description-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
+66
@@ -0,0 +1,66 @@
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<div if="hasData()"
|
||||
class="block" css="additionalClasses">
|
||||
<div if="regionHasElements('title-area')" css="titleClasses">
|
||||
<fastForEach args="data: getRegion('title-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
<div class="block-content">
|
||||
<div css="'products-' + displayMode + ' ' + displayMode">
|
||||
<fastForEach args="data: getRegion('wrap-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div class="product-items widget-product-grid">
|
||||
<div class="product-item" repeat="foreach: filteredRows, item: '$row'">
|
||||
<div class="product-item-info">
|
||||
|
||||
<div if="regionHasElements('general-area')" class="product-grid__image-wrapper">
|
||||
<fastForEach args="data: getRegion('general-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div class="product-item-inner">
|
||||
<div class="product-item-actions">
|
||||
<div if="regionHasElements('action-secondary-area')"
|
||||
class="actions-secondary"
|
||||
data-role="add-to-links">
|
||||
<fastForEach args="data: getRegion('action-secondary-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
</div>
|
||||
<fastForEach args="data: getRegion('product-item-inner-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
</div>
|
||||
<div class="product-grid-overlay"></div>
|
||||
<div class="product-item-details">
|
||||
<fastForEach args="data: getRegion('details-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div if="regionHasElements('description-area')"
|
||||
class="product description product-item-description">
|
||||
<fastForEach args="data: getRegion('description-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
<div class="product actions product-item-actions">
|
||||
<div class="actions-primary" if="regionHasElements('action-primary-area')">
|
||||
<fastForEach args="data: getRegion('action-primary-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<div if="hasData()"
|
||||
class="block" css="additionalClasses">
|
||||
<div if="regionHasElements('title-area')" css="titleClasses">
|
||||
<fastForEach args="data: getRegion('title-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
<div class="block-content">
|
||||
<div css="'products-' + displayMode + ' ' + displayMode">
|
||||
<fastForEach args="data: getRegion('wrap-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div class="product-items widget-product-grid">
|
||||
<div class="product-item" repeat="foreach: filteredRows, item: '$row'">
|
||||
<div class="product-item-info">
|
||||
|
||||
<div if="regionHasElements('general-area')" class="product-grid__image-wrapper">
|
||||
<fastForEach args="data: getRegion('general-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div class="product-item-inner">
|
||||
<fastForEach args="data: getRegion('product-item-inner-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
</div>
|
||||
<div class="product-grid-overlay"></div>
|
||||
<div class="product-item-details">
|
||||
<fastForEach args="data: getRegion('details-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div if="regionHasElements('description-area')"
|
||||
class="product description product-item-description">
|
||||
<fastForEach args="data: getRegion('description-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
<div class="product actions product-item-actions" if="regionHasElements('action-primary-area') || regionHasElements('action-secondary-area')">
|
||||
<div class="actions-primary" if="regionHasElements('action-primary-area')">
|
||||
<fastForEach args="data: getRegion('action-primary-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
<div if="regionHasElements('action-secondary-area')"
|
||||
class="actions-secondary"
|
||||
data-role="add-to-links">
|
||||
<fastForEach args="data: getRegion('action-secondary-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<div if="hasData()"
|
||||
class="block" css="additionalClasses">
|
||||
<div if="regionHasElements('title-area')" css="titleClasses">
|
||||
<fastForEach args="data: getRegion('title-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
<div class="block-content">
|
||||
<div css="'products-' + displayMode + ' ' + displayMode">
|
||||
<fastForEach args="data: getRegion('wrap-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div class="product-items widget-product-grid">
|
||||
<div class="product-item" repeat="foreach: filteredRows, item: '$row'">
|
||||
<div class="product-item-info">
|
||||
|
||||
<div if="regionHasElements('general-area')" class="product-grid__image-wrapper">
|
||||
<fastForEach args="data: getRegion('general-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div class="product-item-inner">
|
||||
<div if="regionHasElements('action-secondary-area')"
|
||||
class="actions-secondary"
|
||||
data-role="add-to-links">
|
||||
<fastForEach args="data: getRegion('action-secondary-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
<fastForEach args="data: getRegion('product-item-inner-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
</div>
|
||||
<div class="product-grid-overlay"></div>
|
||||
<div class="product-item-details">
|
||||
<fastForEach args="data: getRegion('details-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
<div if="regionHasElements('description-area')"
|
||||
class="product description product-item-description">
|
||||
<fastForEach args="data: getRegion('description-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
<div class="product actions product-item-actions">
|
||||
<div class="actions-primary" if="regionHasElements('action-primary-area')">
|
||||
<fastForEach args="data: getRegion('action-primary-area'), as: '$col'" >
|
||||
<render args="$col.getBody()"></render>
|
||||
</fastForEach>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
+1
@@ -0,0 +1 @@
|
||||
<a class="overlay-link" attr="href: $row().url, title: $row().name" html="getNameUnsanitizedHtml($row().name)"></a>
|
||||
+1
@@ -0,0 +1 @@
|
||||
<span if="isAllowed(show)"></span>
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
<div if="isAllowed(show)" class="owl-nav ox-owl-nav">
|
||||
<button type="button" role="presentation" class="owl-prev ox-owl-prev"><span aria-label="Previous">‹</span></button><button type="button" role="presentation" class="owl-next ox-owl-next"><span aria-label="Next">›</span></button>
|
||||
</div>
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<span if="show" class="title-wrap" html="getNameUnsanitizedHtml(label, tag)"></span>
|
||||
Reference in New Issue
Block a user