| Current Path : /home/helpink/www/templates/tp_landing/html/layouts/joomla/content/info_block/ |
| Current File : /home/helpink/www/templates/tp_landing/html/layouts/joomla/content/info_block/author.php |
<?php
/**
* @package Astroid Framework
* @author Astroid Framework https://astroidframe.work
* @copyright Copyright (C) 2023 AstroidFrame.work.
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or Later
*/
defined('JPATH_BASE') or die;
use Joomla\CMS\HTML\HTMLHelper;
?>
<dd class="createdby" itemprop="author" itemscope itemtype="https://schema.org/Person">
<?php $author = ($displayData['item']->created_by_alias ?: $displayData['item']->author); ?>
<?php $author = '<span itemprop="name">' . $author . '</span>'; ?>
<?php if (!empty($displayData['item']->contact_link) && $displayData['params']->get('link_author') == true) : ?>
<i class="far fa-user"></i>
<?php echo HTMLHelper::_('link', $displayData['item']->contact_link, $author, array('itemprop' => 'url')); ?>
<?php else : ?>
<i class="far fa-user"></i>
<?php echo $author; ?>
<?php endif; ?>
</dd>