Skip to content

Commit

Permalink
Compatible PHP8.x
Browse files Browse the repository at this point in the history
  • Loading branch information
magiccart committed Mar 18, 2023
1 parent 16bbc90 commit e723eba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions view/frontend/templates/product/grid.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ $_aloHelper = $this->helper('Magiccart\Shopbrand\Helper\Alothemes');
<?php if ($showWishlist || $showCompare || $showCart): ?>
<div class="actions-no hover-box">
<a class="detail_links" href="<?php echo $_product->getProductUrl() ?>" ></a>
<div class="product actions product-item-actions"<?php echo strpos($pos, $viewMode . '-actions') ? $position : ''; ?>>
<div class="product actions product-item-actions"<?php echo strpos( (string) $pos, $viewMode . '-actions') ? $position : ''; ?>>
<?php if ($showCart): ?>
<div class="actions-primary"<?php echo strpos($pos, $viewMode . '-primary') ? $position : ''; ?>>
<div class="actions-primary"<?php echo strpos( (string) $pos, $viewMode . '-primary') ? $position : ''; ?>>
<?php if ($_product->isSaleable()): ?>
<?php $postParams = $block->getAddToCartPostParams($_product); ?>
<form data-role="tocart-form" action="<?php /* @escapeNotVerified */ echo $postParams['action']; ?>" method="post">
Expand All @@ -93,7 +93,7 @@ $_aloHelper = $this->helper('Magiccart\Shopbrand\Helper\Alothemes');
</div>
<?php endif; ?>
<?php if ($showWishlist || $showCompare): ?>
<div data-role="add-to-links" class="actions-secondary add-to-links"<?php echo strpos($pos, $viewMode . '-secondary') ? $position : ''; ?>>
<div data-role="add-to-links" class="actions-secondary add-to-links"<?php echo strpos( (string) $pos, $viewMode . '-secondary') ? $position : ''; ?>>
<?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow() && $showWishlist): ?>
<a href="#"
class="action towishlist"
Expand Down
6 changes: 3 additions & 3 deletions view/frontend/templates/product/list.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ $_helper = $this->helper(Magento\Catalog\Helper\Output::class);
<?php endif; ?>

<div class="product-item-inner">
<div class="product actions product-item-actions"<?= strpos($pos, $viewMode . '-actions') ? $block->escapeHtmlAttr($position) : '' ?>>
<div class="actions-primary"<?= strpos($pos, $viewMode . '-primary') ? $block->escapeHtmlAttr($position) : '' ?>>
<div class="product actions product-item-actions"<?= strpos((string) $pos, $viewMode . '-actions') ? $block->escapeHtmlAttr($position) : '' ?>>
<div class="actions-primary"<?= strpos((string) $pos, $viewMode . '-primary') ? $block->escapeHtmlAttr($position) : '' ?>>
<?php if ($_product->isSaleable()) :?>
<?php $postParams = $block->getAddToCartPostParams($_product); ?>
<form data-role="tocart-form"
Expand Down Expand Up @@ -126,7 +126,7 @@ $_helper = $this->helper(Magento\Catalog\Helper\Output::class);
<?php endif; ?>
</div>
<?php if ($showWishlist || $showCompare): ?>
<div data-role="add-to-links" class="actions-secondary add-to-links"<?php echo strpos($pos, $viewMode . '-secondary') ? $position : ''; ?>>
<div data-role="add-to-links" class="actions-secondary add-to-links"<?php echo strpos((string) $pos, $viewMode . '-secondary') ? $position : ''; ?>>
<?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow() && $showWishlist): ?>
<a href="#"
class="action towishlist"
Expand Down

0 comments on commit e723eba

Please sign in to comment.