You've already forked joomla_test
first commit
This commit is contained in:
24
layouts/joomla/content/info_block/author.php
Normal file
24
layouts/joomla/content/info_block/author.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?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>
|
Reference in New Issue
Block a user