Produced by Araxis Merge on 2021-05-13 09:09:06 +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/Smartwave_Porto/templates/html | custom_notice.phtml | 2017-03-01 21:17:54 +0000 |
| 2 | /Applications/Ampps/www/Porto v4.0.0/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/Smartwave_Porto/templates/html | custom_notice.phtml | 2021-04-23 08:30:02 +0000 |
| Description | Between Files 1 and 2 | |
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 16 |
| Changed | 2 | 26 |
| 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 | if($this->getConfig('porto_settings/general/show_site_notice')) { | 2 | if($this->getConfig('porto_settings/general/show_site_notice')) { | |||
| 3 | $static_block_id = $this->getConfig('porto_settings/general/custom_notice_block'); | 3 | $static_block_id = $this->getConfig('porto_settings/general/custom_notice_block'); | |||
| 4 | $bg_color = $this->getConfig('porto_design/header/notice_bgcolor'); | |||||
| 5 | $text_color = $this->getConfig('porto_design/header/notice_text_color'); | |||||
| 4 | $block = $this->getLayout()->createBlock('Magento\Cms\Block\Block'); | 6 | $block = $this->getLayout()->createBlock('Magento\Cms\Block\Block'); | |||
| 5 | if($block) { | 7 | if($block) { | |||
| 6 | $block->setBlockId($static_block_id); | 8 | $block->setBlockId($static_block_id); | |||
| 7 | } | 9 | } | |||
| 8 | if($block){ | 10 | ?> | |||
| 9 | | 11 | <div class="porto-block-html-top"> | |||
| 10 | } | 12 | <div class="background-color-<?php echo $bg_color;?> text-color-<?php echo $text_color;?><?php if($this->getConfig('porto_settings/general/show_site_notice_button')):?> d-none<?php endif;?>"> | |||
| 13 | <?php if($block) echo $block->toHtml(); ?> | |||||
| 14 | </div> | |||||
| 15 | </div> | |||||
| 16 | <?php if($this->getConfig('porto_settings/general/show_site_notice_button')) {?> | |||||
| 17 | <script type="text/javascript"> | |||||
| 18 | require([ | |||||
| 19 | 'jquery' | |||||
| 20 | ], function ($) { | |||||
| 21 | $('.porto-block-html-top > div').removeClass('d-none').append('<button class="mfp-close">×</button>'); | |||||
| 22 | $('body').on('click', '.porto-block-html-top .mfp-close', function() { | |||||
| 23 | $(this).parent().fadeOut(); | |||||
| 24 | }); | |||||
| 25 | }); | |||||
| 26 | </script> | |||||
| 27 | <?php | |||||
| 28 | ||||||
| 11 | } | 29 | } | |||
| 12 | ?> | 30 | ?> |
Araxis Merge (but not the data content of this report) is Copyright © 1993–2019 Araxis Ltd (www.araxis.com). All rights reserved.