Skip to content

Commit

Permalink
Update related article and Author block
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvnn committed Nov 30, 2023
1 parent 1f05d40 commit ae3283b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions assets/vendor/astroid/scss/components/_blog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ $article-posttype-spacing: 40px;
// Author Info
.author-wrap {
padding: 35px;
border: 1px solid #eaeaea;
border: 1px solid var(--bs-border-color);
margin-top: 30px;
margin-bottom: 30px;
@include media-breakpoint-down(sm) {
Expand All @@ -198,7 +198,7 @@ $article-posttype-spacing: 40px;
.author-header {
display: flex;
align-items: center;
border-bottom: 1px solid #eaeaea;
border-bottom: 1px solid var(--bs-border-color);
margin-bottom: 15px;
padding-bottom: 20px;
}
Expand Down
3 changes: 2 additions & 1 deletion framework/frontend/blog/modules/related.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* Just copy the file to ROOT/templates/YOURTEMPLATE/html/frontend/blog/ folder to create and override
*/
use Joomla\CMS\Language\Text;
use Joomla\CMS\Layout\LayoutHelper;
// No direct access.
defined('_JEXEC') or die;

Expand Down Expand Up @@ -47,7 +48,7 @@
<h3 class="related-article-title">
<a href="<?php echo $item->route; ?>"><?php echo $item->title; ?></a>
</h3>
<?php echo $item->introtext; ?>
<?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 ae3283b

Please sign in to comment.