[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/layouts/joomla/content/info_block/ -> author.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Site
   5   * @subpackage  Layout
   6   *
   7   * @copyright   (C) 2013 Open Source Matters, Inc. <https://www.joomla.org>
   8   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   9   */
  10  
  11  defined('_JEXEC') or die;
  12  
  13  use Joomla\CMS\HTML\HTMLHelper;
  14  use Joomla\CMS\Language\Text;
  15  
  16  ?>
  17  <dd class="createdby" itemprop="author" itemscope itemtype="https://schema.org/Person">
  18      <span class="icon-user icon-fw" aria-hidden="true"></span>
  19      <?php $author = ($displayData['item']->created_by_alias ?: $displayData['item']->author); ?>
  20      <?php $author = '<span itemprop="name">' . $author . '</span>'; ?>
  21      <?php if (!empty($displayData['item']->contact_link) && $displayData['params']->get('link_author') == true) : ?>
  22          <?php echo Text::sprintf('COM_CONTENT_WRITTEN_BY', HTMLHelper::_('link', $displayData['item']->contact_link, $author, array('itemprop' => 'url'))); ?>
  23      <?php else : ?>
  24          <?php echo Text::sprintf('COM_CONTENT_WRITTEN_BY', $author); ?>
  25      <?php endif; ?>
  26  </dd>


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer