Skip to content

Commit

Permalink
Updated info block icons
Browse files Browse the repository at this point in the history
  • Loading branch information
ihorvansach committed Feb 20, 2024
1 parent e212302 commit 28dd45f
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 333 deletions.
16 changes: 8 additions & 8 deletions view/frontend/templates/post/info.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,6 @@
<?php } ?>
<?php } ?>

<!-- reading time -->
<?php if ($block->readingTimeEnabled() && $_post->getReadingTime()) { ?>
<div class="item post-reading-time">
<i class="mf-blog-icon mfbi-reading-time"></i>
<span class="value"><?= $block->escapeHtml($_post->getReadingTime()) . ' ' . __('min read') ?></span>
</div>
<?php } ?>

<?php if ($block->viewsCountEnabled()) { ?>
<?php if ($viewsCount = $_post->getViewsCount()) { ?>
<div class="item post-views">
Expand All @@ -120,4 +112,12 @@
<?php } ?>
<?php } ?>

<!-- reading time -->
<?php if ($block->readingTimeEnabled() && $_post->getReadingTime()) { ?>
<div class="item post-reading-time">
<i class="mf-blog-icon mfbi-reading-time"></i>
<span class="value"><?= $block->escapeHtml($_post->getReadingTime()) . ' ' . __('min read') ?></span>
</div>
<?php } ?>

</div>
4 changes: 2 additions & 2 deletions view/frontend/web/css/blog-m.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
.post-holder .post-header .post-info {padding: 0 0 20px 0;}
.post-holder .post-header .post-info .item {display: inline-block}
.post-holder .post-header .post-info .dash {display: none; /* fix for old templates */}
.post-holder .post-header .post-info .label {font-weight: 700;}
.post-holder .post-header .post-info .label {font-weight: 600;}
.post-holder .post-header .post-info .value {font-style: italic;}
.post-holder .post-header .post-info .item::after {display: inline-block; content: ' | ';color:#b9b9b9}
.post-holder .post-header .post-info .item:last-child::after{display: none}
Expand Down Expand Up @@ -223,7 +223,7 @@
.mf-blog-icon.mfbi-tags {background-image: url('../images/tags-icon.svg')}
.mf-blog-icon.mfbi-user {background-image: url('../images/user-icon.svg')}
.mf-blog-icon.mfbi-views {background-image: url('../images/views-icon.svg')}
.mf-blog-icon.mfbi-reading-time {background-image: url('../images/views-icon.svg')}
.mf-blog-icon.mfbi-reading-time {background-image: url('../images/time-icon.svg')}
/* END Fix Related Products */


Expand Down
57 changes: 1 addition & 56 deletions view/frontend/web/images/calendar-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
63 changes: 1 addition & 62 deletions view/frontend/web/images/comments-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 1 addition & 43 deletions view/frontend/web/images/folder-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 1 addition & 54 deletions view/frontend/web/images/tags-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions view/frontend/web/images/time-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 1 addition & 55 deletions view/frontend/web/images/user-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 1 addition & 53 deletions view/frontend/web/images/views-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 28dd45f

Please sign in to comment.