Hi all!
Please, tell me, how can I add autor name & author link in a template file latest_item.php?
Copy this code
from item.php not work
Please HELP!
Please, tell me, how can I add autor name & author link in a template file latest_item.php?
Copy this code
<?php if($this->item->params->get('itemAuthor')): ?>
<!-- Item Author -->
<div class="catItemAuthorBlock" title="Автор поста">
<span class="catItemAuthorNew">
<?php if(empty($this->item->created_by_alias)): ?>
<a rel="author" href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a>
<?php else: ?>
<?php echo $this->item->author->name; ?>
<?php endif; ?>
</span>
</div>
<?php endif; ?>
from item.php not work
Please HELP!