182. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2021-05-13 09:09:01 +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.

182.1 Files compared

#LocationFileLast Modified
1/Applications/Ampps/www/Porto 3.2.2/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/Magefan_Blog/templatesrecent_home.phtml2017-12-05 00:30:32 +0000
2/Applications/Ampps/www/Porto v4.0.0/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/Magefan_Blog/templatesrecent_home.phtml2021-03-17 06:06:32 +0000

182.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged1268
Changed442
Inserted44
Removed44

182.3 Comparison options

WhitespaceConsecutive whitespace is treated as a single space
Character caseDifferences in character case are significant
Line endingsDifferences in line endings (CR and LF characters) are ignored
CR/LF charactersNot shown in the comparison detail
Active line-pairing rules

182.4 Active regular expressions

No regular expressions were active.

182.5 Comparison detail

1 <?php 1 <?php
2 /** 2 /**
3  * Copyright © 2015 Ihor Vansach (ihor@magefan.com). All rights reserved. 3  * Copyright © 2015 Ihor Vansach (ihor@magefan.com). All rights reserved.
4  * See LICENSE.txt for license details (http://opensource.org/licenses/osl-3.0.php). 4  * See LICENSE.txt for license details (http://opensource.org/licenses/osl-3.0.php).
5  * 5  *
6  * Glory to Ukraine! Glory to the heroes! 6  * Glory to Ukraine! Glory to the heroes!
7  */ 7  */
8 ?> 8 ?>
9 <?php 9 <?php
10 /** 10 /**
11  * Blog sidebar recent posts template 11  * Blog sidebar recent posts template
12  * 12  *
13  * @var $block \Magefan\Blog\Block\Sidebar\Recent 13  * @var $block \Magefan\Blog\Block\Sidebar\Recent
14  */ 14  */
15 ?> 15 ?>
16  16 
17 <?php 17 <?php
18 »       $_postCollection = $block->getPostCollection(); 18 »       $_postCollection = $block->getPostCollection();
19 ?> 19 ?>
20 <div class="recent-posts">    
21 <?php if ($_postCollection->count()) { ?> 20 <?php if ($_postCollection->count()) { ?>
22     <div class="owl-carousel">    
23     <?php foreach ($_postCollection as $_post) { ?> 21 »       <?php foreach ($_postCollection as $_post) { ?>
24     <?php 22 »       »       <?php $post_date = $_post->getData("publish_time");?>
25         
$post_date = $_post->getData("publish_time");
 23 »       »       <div class="post-slide">
26     ?> 24 »       »         <div class="post-item post-title-simple">
27         <div class="item">    
28             <div class="row">    
29                 <div class="col-md-5">    
30                     <div class="post-image">    
31                     <?php if($post_image = $_post->getFeaturedImage()): ?> 25 »       »       »       »       <?php if($post_image = $_post->getFeaturedImage()): ?>
    26 »       »           <a href="<?php echo $_post->getPostUrl() ?>" class="m-b-md d-block">
32                         <img src="<?php echo $post_image; ?>" alt=""/> 27 »       »       »       »       »       <img src="<?php echo $post_image; ?>" alt=""/>
    28 »       »           </a>
33                     <?php endif; ?> 29 »       »       »       »       <?php endif; ?>
34                     </div> 30 »       »       »       »       <div class="post-content">
35                 </div>    
36                 <div class="col-md-7">    
37                     <div class="post-date"> 31 »       »       »           <div class="post-date">
38                         <span class="day"><?php echo date("j", strtotime($post_date)); ?></span> 32 »       »       »       »       »       »       <span class="day"><?php echo date("j", strtotime($post_date)); ?></span>
39                         <span class="month"><?php echo date("M", strtotime($post_date)); ?></span> 33 »       »       »       »       »       »       <span class="month"><?php echo date("M", strtotime($post_date)); ?></span>
    34 »       »       »       »       »       »       <time><?php echo date("M j, Y", strtotime($post_date)); ?></time>
40                     </div> 35 »       »       »       »       »       </div>
41                     <div class="postTitle"> 36 »       »       »           <h4><a href="<?php echo $_post->getPostUrl() ?>" ><?php echo $block->escapeHtml($_post->getTitle()) ?></a></h4>
42                         <h2><a href="<?php echo $_post->getPostUrl() ?>" ><?php echo $block->escapeHtml($_post->getTitle()) ?></a></h2> 37 »       »       »       »       »       <div class="post-meta m-b-sm d-none"><?php echo date("M j, Y", strtotime($post_date)); ?></div>
43                     </div> 38 »       »       »           <
div>
    39 »       »       »       »       »       »       <?php if($_post->getShortContent()):?>
    40 »       »       »       »             <p class="post-excerpt">
44                     <?php 41 »       »       »       »       »       »       »       »       <?php
45                         $content = $_post->getContent(); 42 »       »       »       »       »       »       »       »       $length = 88;
46                         $pageBraker = '<!-- pagebreak -->'; 43 »       »       »       »       »       »       »       »       $shortContent = $_post->getShortContent();
47                          44 »       »       »       »       »       »       »       »       echo $shortContent = (strlen($shortContent) > $length) ? substr($shortContent,0,$length).'...' : $shortContent;?>
48                         $isMb = function_exists('mb_strpos'); 45 »       »       »       »               <a class="read-more" href="<?php echo $_post->getPostUrl() ?>"><?php echo __("read more");?> <i class="fas fa-angle-right"></i></a>
49                         $p = $isMb ? strpos($content, $pageBraker) : mb_strpos($content, $pageBraker); 46 »       »       »       »             </p>
50  47 »       »       »       »       »       »       <?php endif;?>
51                         if ($p) {    
52                             $content = substr($content, 0, $p);    
53                         }    
54     
55                         $short_content = $this->helper('Smartwave\Porto\Helper\Data')->filterContent($content);    
56                     ?>    
57                     <div class="postContent"><?php echo $short_content; ?></div>    
58                     <a class="readmore" href="<?php echo $_post->getPostUrl(); ?>"><?php echo __("Read more >");?></a>    
59                 </div> 48 »       »       »           </div>
60             </div> 49 »       »       »       »       </div>
61         </div> 50 »       »         </div>
62     <?php } ?>    
63     </div> 51 »       »       </div>
    52 »       <?php } ?>
64 <?php } ?> 53 <?php } ?>
65 </div>