Produced by Araxis Merge on 2021-05-13 09:09:02 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | /Applications/Ampps/www/Porto 3.2.2/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/Magento_Catalog/templates/product/view | prev_next.phtml | 2016-05-03 16:19:02 +0000 |
| 2 | /Applications/Ampps/www/Porto v4.0.0/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/Magento_Catalog/templates/product/view | prev_next.phtml | 2021-01-29 04:29:50 +0000 |
| Description | Between Files 1 and 2 | |
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 82 |
| Changed | 2 | 4 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | Consecutive whitespace is treated as a single space |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
| Active line-pairing rules |
No regular expressions were active.
| 1 | <?php | 1 | <?php | |||
| 2 | $porto_helper = $this->helper('Smartwave\Porto\Helper\Data'); | 2 | $porto_helper = $this->helper('Smartwave\Porto\Helper\Data'); | |||
| 3 | $product_view = $porto_helper->getConfig('porto_settings/product'); | 3 | $product_view = $porto_helper->getConfig('porto_settings/product'); | |||
| 4 | $_helper = $this->helper('Magento\Catalog\Helper\Output'); | 4 | $_helper = $this->helper('Magento\Catalog\Helper\Output'); | |||
| 5 | $_imagehelper = $this->helper('Magento\Catalog\Helper\Image'); | 5 | $_imagehelper = $this->helper('Magento\Catalog\Helper\Image'); | |||
| 6 | if(isset($product_view['prev_next']) && $product_view['prev_next']) { | 6 | if(isset($product_view['prev_next']) && $product_view['prev_next']) { | |||
| 7 | $_product = $block->getProduct(); | 7 | $_product = $block->getProduct(); | |||
| 8 | $prev_product = $porto_helper->getPrevProduct($_product); | 8 | $prev_product = $porto_helper->getPrevProduct($_product); | |||
| 9 | $next_product = $porto_helper->getNextProduct($_product); | 9 | $next_product = $porto_helper->getNextProduct($_product); | |||
| 10 | ?> | 10 | ?> | |||
| 11 | <?php if($prev_product || $next_product):?> | 11 | <?php if($prev_product || $next_product):?> | |||
| 12 | <div class="prev-next-products"> | 12 | <div class="prev-next-products"> | |||
| 13 | <?php if($prev_product): ?> | 13 | <?php if($prev_product): ?> | |||
| 14 | <?php | 14 | <?php | |||
| 15 | $productImage = $_imagehelper->init($prev_product, 'category_page_grid')->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize(80); | 15 | $productImage = $_imagehelper->init($prev_product, 'category_page_grid')->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize(80); | |||
| 16 | $productImageUrl = $productImage->getUrl(); | 16 | $productImageUrl = $productImage->getUrl(); | |||
| 17 | ?> | 17 | ?> | |||
| 18 | <div class="product-nav product-prev"> | 18 | <div class="product-nav product-prev"> | |||
| 19 | <a href="<?php echo $prev_product->getProductUrl(); ?>" title="<?php echo __('Previous Product'); ?>"><?php echo $product_view['prev_text']; ?></a> | 19 | <a href="<?php echo $prev_product->getProductUrl(); ?>" title="<?php echo __('Previous Product'); ?>"><?php echo $product_view['prev_text']; ?></a> | |||
| 20 | <div class="product-pop theme-border-color"> | 20 | <div class="product-pop | |||
| 21 | <img class="product-image" src="<?php echo $productImageUrl; ?>" alt="<?php echo $productImage->getLabel(); ?>"/> | 21 | <img class="product-image" src="<?php echo $productImageUrl; ?>" alt="<?php echo $productImage->getLabel(); ?>"/> | |||
| 22 | <h3 class="product-name"><?php echo $prev_product->getName(); ?></h3> | 22 | <h3 class="product-name"><?php echo $prev_product->getName(); ?></h3> | |||
| 23 | </div> | 23 | </div> | |||
| 24 | </div> | 24 | </div> | |||
| 25 | <?php endif; ?> | 25 | <?php endif; ?> | |||
| 26 | <?php if($next_product): ?> | 26 | <?php if($next_product): ?> | |||
| 27 | <?php | 27 | <?php | |||
| 28 | $productImage = $_imagehelper->init($next_product, 'category_page_grid')->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize(80); | 28 | $productImage = $_imagehelper->init($next_product, 'category_page_grid')->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize(80); | |||
| 29 | $productImageUrl = $productImage->getUrl(); | 29 | $productImageUrl = $productImage->getUrl(); | |||
| 30 | ?> | 30 | ?> | |||
| 31 | <div class="product-nav product-next"> | 31 | <div class="product-nav product-next"> | |||
| 32 | <a href="<?php echo $next_product->getProductUrl(); ?>" title="<?php echo __('Next Product'); ?>"><?php echo $product_view['next_text']; ?></a> | 32 | <a href="<?php echo $next_product->getProductUrl(); ?>" title="<?php echo __('Next Product'); ?>"><?php echo $product_view['next_text']; ?></a> | |||
| 33 | <div class="product-pop theme-border-color"> | 33 | <div class="product-pop | |||
| 34 | <img class="product-image" src="<?php echo $productImageUrl; ?>" alt="<?php echo $productImage->getLabel(); ?>"/> | 34 | <img class="product-image" src="<?php echo $productImageUrl; ?>" alt="<?php echo $productImage->getLabel(); ?>"/> | |||
| 35 | <h3 class="product-name"><?php echo $next_product->getName(); ?></h3> | 35 | <h3 class="product-name"><?php echo $next_product->getName(); ?></h3> | |||
| 36 | </div> | 36 | </div> | |||
| 37 | </div> | 37 | </div> | |||
| 38 | <?php endif; ?> | 38 | <?php endif; ?> | |||
| 39 | </div> | 39 | </div> | |||
| 40 | <?php endif; ?> | 40 | <?php endif; ?> | |||
| 41 | <?php | 41 | <?php | |||
| 42 | } | 42 | } | |||
| 43 | ?> | 43 | ?> |
Araxis Merge (but not the data content of this report) is Copyright © 1993–2019 Araxis Ltd (www.araxis.com). All rights reserved.