Skip to content

Commit

Permalink
Improve UI of Related article block
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvnn committed Jul 12, 2024
1 parent 81891fe commit ade81f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions framework/frontend/blog/modules/posttype.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
}
?>
<?php if (!empty($icon)) { ?>
<dd class="article-post-type">
<div class="article-post-type">
<span class="article-icon article-icon-<?php echo $type; ?>"><?php echo !empty($icon) ? '<i class="' . $icon . '"></i>' : ''; ?></span>
</dd>
</div>
<?php } ?>
2 changes: 1 addition & 1 deletion framework/frontend/blog/modules/related.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
<h3 class="related-article-title">
<a href="<?php echo $item->route; ?>"><?php echo $item->title; ?></a>
</h3>
<?php echo LayoutHelper::render('joomla.content.info_block', ['item' => $item, 'params' => $item->params, 'astroidArticle' => $astroidArticle, 'position' => 'above']); ?>
<?php
if ($display_posttypeicon) {
$document->include('blog.modules.posttype', ['article' => $astroidArticle]);
Expand All @@ -48,6 +47,7 @@
$document->include('blog.modules.badge', ['article' => $astroidArticle]);
}
?>
<?php echo LayoutHelper::render('joomla.content.info_block', ['item' => $item, 'params' => $item->params, 'astroidArticle' => $astroidArticle, 'position' => 'above']); ?>
</div>
</div>
</div>
Expand Down

0 comments on commit ade81f5

Please sign in to comment.