Hello. Thank you for the update we've all been waiting for!
<?php if(file_exists(JPATH_BASE.K2HelperUtilities::getAvatar($this->item->author->id)) && is_file(JPATH_BASE.K2HelperUtilities::getAvatar($this->item->author->id))): ?>
<div class="news-author__avatar">
<?php echo '<img src="'.K2HelperUtilities::getAvatar($this->item->author->id,null, 50).'" alt="'.$this->item->author->name.'"/> '; ?>
</div>
<?php endif; ?>
This code displayed the avatar of the author of the article
After the update, the avatar stopped being displayed. Tell me how to fix this problem!
<?php if(file_exists(JPATH_BASE.K2HelperUtilities::getAvatar($this->item->author->id)) && is_file(JPATH_BASE.K2HelperUtilities::getAvatar($this->item->author->id))): ?>
<div class="news-author__avatar">
<?php echo '<img src="'.K2HelperUtilities::getAvatar($this->item->author->id,null, 50).'" alt="'.$this->item->author->name.'"/> '; ?>
</div>
<?php endif; ?>
This code displayed the avatar of the author of the article
After the update, the avatar stopped being displayed. Tell me how to fix this problem!
