24 lines
895 B
PHP
24 lines
895 B
PHP
|
<?php
|
||
|
/**
|
||
|
* @package Joomla.Site
|
||
|
* @subpackage Layout
|
||
|
*
|
||
|
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||
|
*/
|
||
|
|
||
|
defined('JPATH_BASE') or die;
|
||
|
|
||
|
?>
|
||
|
<dd class="createdby">
|
||
|
<?php $author = $displayData['item']->author; ?>
|
||
|
<?php $author = ($displayData['item']->created_by_alias ? $displayData['item']->created_by_alias : $author); ?>
|
||
|
<?php if (!empty($displayData['item']->contactid ) && $displayData['params']->get('link_author') == true) : ?>
|
||
|
<?php
|
||
|
echo JText::sprintf('COM_CONTENT_WRITTEN_BY',
|
||
|
JHtml::_('link', JRoute::_('index.php?option=com_contact&view=contact&id='.$displayData['item']->contactid), $author)
|
||
|
); ?>
|
||
|
<?php else :?>
|
||
|
<?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', $author); ?>
|
||
|
<?php endif; ?>
|
||
|
</dd>
|