Produced by Araxis Merge on 2021-05-13 09:09:24 +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_rtl/Smartwave_Porto/templates/html | head.phtml | 2019-11-01 09:17:00 +0000 |
| 2 | /Applications/Ampps/www/Porto v4.0.0/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto_rtl/Smartwave_Porto/templates/html | head.phtml | 2021-04-23 07:45:00 +0000 |
| Description | Between Files 1 and 2 | |
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 23 | 204 |
| Changed | 10 | 28 |
| Inserted | 4 | 34 |
| Removed | 9 | 37 |
| 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 | $_helper = $this->helper('Smartwave\Porto\Helper\Cssconfig'); | 2 | $_helper = $this->helper('Smartwave\Porto\Helper\Cssconfig'); | |||
| 3 | $porto_helper = $this->helper('Smartwave\Porto\Helper\Data'); | 3 | $porto_helper = $this->helper('Smartwave\Porto\Helper\Data'); | |||
| 4 | $_redirect_cart = $porto_helper->getConfig('checkout/cart/redirect_to_cart'); | |||||
| 4 | ?> | 5 | ?> | |||
| 5 | <?php //Include Google fonts character subsets (such as extended latin, cyrillic) | 6 | <?php //Include Google fonts character subsets (such as extended latin, cyrillic) | |||
| 6 | $d = $this->getConfig('porto_design'); | 7 | $d = $this->getConfig('porto_design'); | |||
| 7 | $charSubset = ""; | 8 | $charSubset = ""; | |||
| 8 | if (isset($d['font']['char_latin_ext']) && $d['font']['char_latin_ext']==1 ) | 9 | if (isset($d['font']['char_latin_ext']) && $d['font']['char_latin_ext']==1 ) | |||
| 9 | $charSubset .= ',latin-ext'; | 10 | $charSubset .= ',latin-ext'; | |||
| 10 | if (isset($d['font']['char_subset']) && $d['font']['char_subset']) | 11 | if (isset($d['font']['char_subset']) && $d['font']['char_subset']) | |||
| 11 | $charSubset .= ','.$d['font']['char_subset']; | 12 | $charSubset .= ','.$d['font']['char_subset']; | |||
| 12 | $font_sizes = "%3A300%2C300italic%2C400%2C400italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic"; | 13 | $font_sizes = "%3A300%2C300italic%2C400%2C400italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic"; | |||
| 13 | ?> | 14 | ?> | |||
| 14 | <?php if (isset($d['font']['custom']) && $d['font']['custom'] && $d['font']['font_family'] == 'google'): ?> | 15 | <?php if (isset($d['font']['custom']) && $d['font']['custom'] && $d['font']['font_family'] == 'google'): ?> | |||
| 15 | <link rel="stylesheet" href='//fonts.googleapis.com/css?family=<?php echo str_replace(' ', '+', $d['font']['google_font_family']).$font_sizes; echo $charSubset; ?>' type='text/css' /> | 16 | <link rel="stylesheet" href='//fonts.googleapis.com/css?family=<?php echo str_replace(' ', '+', $d['font']['google_font_family']).$font_sizes; echo $charSubset; ?>' type='text/css' /> | |||
| 16 | <?php else: ?> | 17 | <?php else: ?> | |||
| 17 | <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans%3A300%2C300italic%2C400%2C400italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic&v1&subset=latin%2Clatin-ext" type="text/css" media="screen"/> | 18 | <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans%3A300%2C300italic%2C400%2C400italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic&v1&subset=latin%2Clatin-ext" type="text/css" media="screen"/> | |||
| 18 | <?php endif;?> | 19 | <?php endif;?> | |||
| 19 | <link href="https://fonts.googleapis.com/css?family=Oswald:300,400, | 20 | <link href="https://fonts.googleapis.com/css?family=Oswald:300,400,500,600,700" rel="stylesheet"> | |||
| 20 | <link href="https://fonts.googleapis.com/css?family=Poppins: | 21 | <link href="https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800" rel="stylesheet"> | |||
| 21 | <?php if ($this->getConfig('porto_settings/optimization/bootstrap')): ?> | 22 | <?php if ($this->getConfig('porto_settings/optimization/bootstrap')): ?> | |||
| 22 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'bootstrap/css/bootstrap.rtl.min.css'; ?>"> | 23 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'bootstrap/css/bootstrap.rtl.min.css'; ?>"> | |||
| 23 | <?php else: ?> | 24 | <?php else: ?> | |||
| 24 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'bootstrap/css/bootstrap.rtl.optimized.min.css'; ?>"> | 25 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'bootstrap/css/bootstrap.rtl.optimized.min.css'; ?>"> | |||
| 25 | <?php endif; ?> | 26 | <?php endif; ?> | |||
| 26 | <?php if ($this->getConfig('porto_settings/optimization/bootstrap')): ?> | 27 | <?php if ($this->getConfig('porto_settings/optimization/bootstrap')): ?> | |||
| 27 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'css/animate.css'; ?>"> | 28 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'css/animate.css'; ?>"> | |||
| 28 | <?php else: ?> | 29 | <?php else: ?> | |||
| 29 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'css/animate.optimized.css'; ?>"> | 30 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'css/animate.optimized.css'; ?>"> | |||
| 30 | <?php endif; ?> | 31 | <?php endif; ?> | |||
| 31 | <?php | 32 | <?php | |||
| 32 | $header_type = $this->getConfig('porto_settings/header/header_type'); | 33 | $header_type = $this->getConfig('porto_settings/header/header_type'); | |||
| 33 | ?> | 34 | ?> | |||
| 34 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'css/header/type'.$header_type.'.rtl.css'; ?>"> | 35 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'css/header/type'.$header_type.'.rtl.css'; ?>"> | |||
| 35 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'css/custom.rtl.css'; ?>"> | 36 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'css/custom.rtl.css'; ?>"> | |||
| 36 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getDesignFile()?>"> | 37 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getDesignFile()?>"> | |||
| 37 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getSettingsFile()?>"> | 38 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getSettingsFile()?>"> | |||
| 38 | <script type="text/javascript"> | 39 | <script type="text/javascript"> | |||
| 40 | var redirect_cart = false; | |||||
| 41 | <?php if($_redirect_cart):?> | |||||
| 42 | redirect_cart = true; | |||||
| 43 | <?php endif;?> | |||||
| 39 | var porto_config = { | 44 | var porto_config = { | |||
| 40 | paths: { | 45 | paths: { | |||
| 41 | 'parallax': 'js/jquery.parallax.min', | 46 | 'parallax': 'js/jquery.parallax.min', | |||
| 42 | 'owlcarousel': 'owl.carousel/owl.carousel', | 47 | 'owlcarousel': 'owl.carousel/owl.carousel', | |||
| 43 | 'owlcarousel_thumbs': 'owl.carousel/owl.carousel2.thumbs', | 48 | 'floatelement': 'js/jquery.floatelement' | |||
| 44 | 'imagesloaded': 'Smartwave_Porto/js/imagesloaded', | |||||
| 45 | 'packery': 'Smartwave_Porto/js/packery.pkgd' | |||||
| 46 | }, | 49 | }, | |||
| 47 | shim: { | 50 | shim: { | |||
| 48 | 'parallax': { | |||||
| 49 | deps: ['jquery'] | |||||
| 50 | }, | |||||
| 51 | 'owlcarousel': { | 51 | 'owlcarousel': { | |||
| 52 | deps: ['jquery'] | 52 | deps: ['jquery'] | |||
| 53 | }, | 53 | }, | |||
| 54 | 'owlcarousel_thumbs': { | 54 | 'owlcarousel_thumbs': { | |||
| 55 | deps: ['jquery','owlcarousel'] | 55 | deps: ['jquery','owlcarousel'] | |||
| 56 | }, | |||||
| 57 | 'packery': { | |||||
| 58 | deps: ['jquery','imagesloaded'] | |||||
| 59 | }, | 56 | }, | |||
| 57 | 'floatelement': { | |||||
| 58 | deps: ['jquery'] | |||||
| 59 | } | |||||
| 60 | } | 60 | } | |||
| 61 | }; | 61 | }; | |||
| 62 | 62 | |||||
| 63 | require.config(porto_config); | 63 | require.config(porto_config); | |||
| 64 | </script> | 64 | </script> | |||
| 65 | <script type="text/javascript"> | 65 | <script type="text/javascript"> | |||
| 66 | require([ | 66 | require([ | |||
| 67 | 'jquery' | 67 | 'jquery' | |||
| 68 | ], function ($) { | 68 | ], function ($) { | |||
| 69 | $(document).ready(function(){ | |||||
| 70 | $(".drop-menu > a").off("click").on("click", function(){ | |||||
| 71 | if($(this).parent().children(".nav-sections").hasClass("visible")) | |||||
| 72 | $(this).parent().children(".nav-sections").removeClass("visible"); | |||||
| 73 | else | |||||
| 74 | $(this).parent().children(".nav-sections").addClass("visible") | |||||
| 75 | }); | |||||
| 76 | }); | |||||
| 77 | <?php if ($this->getConfig('porto_settings/header/sticky_header')): ?> | 69 | <?php if ($this->getConfig('porto_settings/header/sticky_header')): ?> | |||
| 78 | var scrolled = false; | 70 | var scrolled = false; | |||
| 79 | $(window).scroll(function(){ | 71 | $(window).scroll(function(){ | |||
| 80 | if(!$('.page-header').hasClass('type10')) { | 72 | if($(window).width()>=992){ | |||
| 81 | if($(window).width()>=768){ | |||||
| 82 | if(140<$(window).scrollTop() && !scrolled){ | 73 | if(140<$(window).scrollTop() && !scrolled){ | |||
| 83 | $('.page-header').addClass("sticky-header"); | 74 | $('.page-header').addClass("sticky-header"); | |||
| 84 | scrolled = true; | 75 | scrolled = true; | |||
| 85 | if(!$(".page-header").hasClass("type12")) { | 76 | if($(".page-header").hasClass("type1") || $(".page-header").hasClass("type2") || $(".page-header").hasClass("type6")) { | |||
| 86 | $('.page-header .minicart-wrapper').after('<div class="minicart-place hide"></div>'); | 77 | $('.page-header .minicart-wrapper').after('<div class="minicart-place hide"></div>'); | |||
| 87 | ||||||
| 88 | if($(".page-header").hasClass("type2")) | |||||
| 89 | $('.page-header .navigation').append($('header.page-header.type2 a.action.my-wishlist').detach()); | |||||
| 90 | ||||||
| 91 | var minicart = $('.page-header .minicart-wrapper').detach(); | 78 | var minicart = $('.page-header .minicart-wrapper').detach(); | |||
| 92 | if($(".page-header").hasClass("type8")) | |||||
| 93 | $('.page-header .menu-wrapper').append(minicart); | |||||
| 94 | else | |||||
| 95 | $('.page-header .navigation').append(minicart); | 79 | $('.page-header .navigation').append(minicart); | |||
| 96 | 80 | |||||
| 97 | <?php if ($this->getConfig('porto_settings/header/sticky_header_logo')): ?> | 81 | <?php if ($this->getConfig('porto_settings/header/sticky_header_logo')): ?> | |||
| 98 | var logo_image = $('<div>').append($('.page-header .header > .logo').clone()).html(); | 82 | var logo_image = $('<div>').append($('.page-header .header | |||
| 99 | if($(".page-header").hasClass("type8")) | |||||
| 100 | $('.page-header .menu-wrapper').prepend('<div class="sticky-logo">'+logo_image+'</div>'); | |||||
| 101 | else | |||||
| 102 | $('.page-header .navigation').prepend('<div class="sticky-logo">'+logo_image+'</div>'); | 83 | $('.page-header .navigation').prepend('<div class="sticky-logo">'+logo_image+'</div>'); | |||
| 103 | <?php endif; ?> | 84 | <?php endif; ?> | |||
| 104 | } else { | |||||
| 105 | <?php if ($this->getConfig('porto_settings/header/sticky_header_logo')): ?> | |||||
| 106 | $('.page-header.type12 .logo').append('<span class="sticky-logo"><img src="" alt=""/></span>'); | |||||
| 107 | $('.page-header .logo > img').addClass("hide"); | |||||
| 108 | <?php endif; ?> | |||||
| 109 | } | 85 | } | |||
| 110 | <?php if ($this->getConfig('porto_settings/header/sticky_header_logo')): ?> | 86 | <?php if ($this->getConfig('porto_settings/header/sticky_header_logo')): ?> | |||
| 111 | <?php | 87 | <?php | |||
| 112 | if($logo_src = $this->getConfig('porto_settings/header/sticky_header_logo_src')){ | 88 | if($logo_src = $this->getConfig('porto_settings/header/sticky_header_logo_src')){ | |||
| 113 | $folderName = \Smartwave\Porto\Model\Config\Backend\Image\Stickylogo::UPLOAD_DIR; | 89 | $folderName = \Smartwave\Porto\Model\Config\Backend\Image\Stickylogo::UPLOAD_DIR; | |||
| 114 | $path = $folderName . '/' . $logo_src; | 90 | $path = $folderName . '/' . $logo_src; | |||
| 115 | $imageUrl = $porto_helper->getBaseUrl() . $path; | 91 | $imageUrl = $porto_helper->getBaseUrl() . $path; | |||
| 116 | ?> | 92 | ?> | |||
| 117 | $(".sticky-logo img").attr("src","<?php echo $imageUrl; ?>"); | 93 | $(".sticky-logo img").attr("src","<?php echo $imageUrl; ?>"); | |||
| 118 | <?php | 94 | <?php | |||
| 119 | } | 95 | } | |||
| 120 | ?> | 96 | ?> | |||
| 121 | <?php endif; ?> | 97 | <?php endif; ?> | |||
| 122 | } | 98 | } | |||
| 123 | if(140>=$(window).scrollTop() && scrolled){ | 99 | if(140>=$(window).scrollTop() && scrolled){ | |||
| 124 | $('.page-header').removeClass("sticky-header"); | 100 | $('.page-header').removeClass("sticky-header"); | |||
| 125 | scrolled = false; | 101 | scrolled = false; | |||
| 126 | if(!$(".page-header").hasClass("type12")) { | 102 | if($(".page-header").hasClass("type1") || $(".page-header").hasClass("type2") || $(".page-header").hasClass("type6")) { | |||
| 127 | var minicart; | 103 | var minicart; | |||
| 128 | if($(".page-header").hasClass("type8")) | |||||
| 129 | minicart = $('.page-header .menu-wrapper .minicart-wrapper').detach(); | |||||
| 130 | else | |||||
| 131 | minicart = $('.page-header .navigation .minicart-wrapper').detach(); | 104 | minicart = $('.page-header .navigation .minicart-wrapper').detach(); | |||
| 132 | $('.minicart-place').after(minicart); | 105 | $('.minicart-place').after(minicart); | |||
| 133 | $('.minicart-place').remove(); | 106 | $('.minicart-place').remove(); | |||
| 134 | if($(".page-header").hasClass("type2")) | |||||
| 135 | $('.page-header .block.block-search').before($('.page-header .navigation a.action.my-wishlist').detach()); | |||||
| 136 | $('.page-header .minicart-wrapper-moved').addClass("minicart-wrapper").removeClass("minicart-wrapper-moved").removeClass("hide"); | 107 | $('.page-header .minicart-wrapper-moved').addClass("minicart-wrapper").removeClass("minicart-wrapper-moved").removeClass("hide"); | |||
| 137 | } | 108 | | |||
| 138 | <?php if ($this->getConfig('porto_settings/header/sticky_header_logo')): ?> | 109 | <?php if ($this->getConfig('porto_settings/header/sticky_header_logo')): ?> | |||
| 139 | if($(".page-header").hasClass("type8")) | |||||
| 140 | $('.page-header .menu-wrapper > .sticky-logo').remove(); | |||||
| 141 | else if($(".page-header").hasClass("type12")) { | |||||
| 142 | $('.page-header .sticky-logo').remove(); | |||||
| 143 | $('.page-header .logo > img').removeClass("hide");; | |||||
| 144 | } else | |||||
| 145 | $('.page-header .navigation > .sticky-logo').remove(); | 110 | $('.page-header .navigation > .sticky-logo').remove(); | |||
| 146 | <?php endif; ?> | 111 | <?php endif; ?> | |||
| 147 | } | 112 | } | |||
| 148 | } | 113 | } | |||
| 149 | } | 114 | } | |||
| 115 | if($('body').hasClass('mobile-sticky')) { | |||||
| 116 | if($(window).width()<=991){ | |||||
| 117 | if(130<$(window).scrollTop() && !scrolled){ | |||||
| 118 | $('.page-header:not(.sticky-header)').css("height",$('.page-header:not(.sticky-header)').height()+'px'); | |||||
| 119 | $('.page-header').addClass("sticky-header"); | |||||
| 120 | scrolled = true; | |||||
| 121 | } | |||||
| 122 | if(130>=$(window).scrollTop() && scrolled){ | |||||
| 123 | $('.page-header.sticky-header').css("height",'auto'); | |||||
| 124 | $('.page-header').removeClass("sticky-header"); | |||||
| 125 | scrolled = false; | |||||
| 126 | } | |||||
| 127 | } | |||||
| 128 | } | |||||
| 129 | $(window).resize(function(){ | |||||
| 130 | var b_w = $(window).width(); | |||||
| 131 | if(b_w <= 991){ | |||||
| 132 | if($('.page-header .navigation .minicart-wrapper').length > 0) { | |||||
| 133 | var minicart; | |||||
| 134 | minicart = $('.page-header .navigation .minicart-wrapper').detach(); | |||||
| 135 | $('.minicart-place').after(minicart); | |||||
| 136 | $('.minicart-place').remove(); | |||||
| 137 | $('.page-header .minicart-wrapper-moved').addClass("minicart-wrapper").removeClass("minicart-wrapper-moved").removeClass("hide"); | |||||
| 138 | } | |||||
| 139 | } | |||||
| 140 | }); | |||||
| 150 | }); | 141 | }); | |||
| 151 | <?php endif; ?> | 142 | <?php endif; ?> | |||
| 152 | }); | 143 | }); | |||
| 153 | </script> | 144 | </script> | |||
| 154 | <?php if($this->getConfig('porto_settings/general/smartlayers')): ?> | 145 | <?php if($this->getConfig('porto_settings/general/smartlayers')): ?> | |||
| 155 | <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-58378513496862c5"></script> | 146 | <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-58378513496862c5"></script> | |||
| 156 | <?php endif; ?> | 147 | <?php endif; ?> |
Araxis Merge (but not the data content of this report) is Copyright © 1993–2019 Araxis Ltd (www.araxis.com). All rights reserved.