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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | /Applications/Ampps/www/Porto 3.2.2/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/Magefan_Blog/templates | recent_home.phtml | 2017-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/templates | recent_home.phtml | 2021-03-17 06:06:32 +0000 |
| Description | Between Files 1 and 2 | |
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 12 | 68 |
| Changed | 4 | 42 |
| Inserted | 4 | 4 |
| Removed | 4 | 4 |
| 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 | /** | 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 | | 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 | » » » < | |||
| 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> |
Araxis Merge (but not the data content of this report) is Copyright © 1993–2019 Araxis Ltd (www.araxis.com). All rights reserved.