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>
|
60
layouts/joomla/content/info_block/block.php
Normal file
60
layouts/joomla/content/info_block/block.php
Normal file
@ -0,0 +1,60 @@
|
||||
<?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;
|
||||
|
||||
$blockPosition = $displayData['params']->get('info_block_position', 0);
|
||||
|
||||
?>
|
||||
<dl class="article-info muted">
|
||||
|
||||
<?php if ($displayData['position'] == 'above' && ($blockPosition == 0 || $blockPosition == 2)
|
||||
|| $displayData['position'] == 'below' && ($blockPosition == 1)
|
||||
) : ?>
|
||||
|
||||
<dt class="article-info-term">
|
||||
<?php // TODO: implement info_block_show_title param to hide article info title ?>
|
||||
<?php if ($displayData['params']->get('info_block_show_title', 1)) : ?>
|
||||
<?php echo JText::_('COM_CONTENT_ARTICLE_INFO'); ?>
|
||||
<?php endif; ?>
|
||||
</dt>
|
||||
|
||||
<?php if ($displayData['params']->get('show_author') && !empty($displayData['item']->author )) : ?>
|
||||
<?php echo JLayoutHelper::render('joomla.content.info_block.author', $displayData); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($displayData['params']->get('show_parent_category') && !empty($displayData['item']->parent_slug)) : ?>
|
||||
<?php echo JLayoutHelper::render('joomla.content.info_block.parent_category', $displayData); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($displayData['params']->get('show_category')) : ?>
|
||||
<?php echo JLayoutHelper::render('joomla.content.info_block.category', $displayData); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($displayData['params']->get('show_publish_date')) : ?>
|
||||
<?php echo JLayoutHelper::render('joomla.content.info_block.publish_date', $displayData); ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($displayData['position'] == 'above' && ($blockPosition == 0)
|
||||
|| $displayData['position'] == 'below' && ($blockPosition == 1 || $blockPosition == 2)
|
||||
) : ?>
|
||||
<?php if ($displayData['params']->get('show_create_date')) : ?>
|
||||
<?php echo JLayoutHelper::render('joomla.content.info_block.create_date', $displayData); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($displayData['params']->get('show_modify_date')) : ?>
|
||||
<?php echo JLayoutHelper::render('joomla.content.info_block.modify_date', $displayData); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($displayData['params']->get('show_hits')) : ?>
|
||||
<?php echo JLayoutHelper::render('joomla.content.info_block.hits', $displayData); ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</dl>
|
21
layouts/joomla/content/info_block/category.php
Normal file
21
layouts/joomla/content/info_block/category.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?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="category-name">
|
||||
<?php $title = $this->escape($displayData['item']->category_title);
|
||||
$url = '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($displayData['item']->catslug)).'">'.$title.'</a>';?>
|
||||
<?php if ($displayData['params']->get('link_category') && $displayData['item']->catslug) : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_CATEGORY', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_CATEGORY', $title); ?>
|
||||
<?php endif; ?>
|
||||
</dd>
|
16
layouts/joomla/content/info_block/create_date.php
Normal file
16
layouts/joomla/content/info_block/create_date.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?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="create">
|
||||
<span class="icon-calendar"></span>
|
||||
<?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $displayData['item']->created, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</dd>
|
16
layouts/joomla/content/info_block/hits.php
Normal file
16
layouts/joomla/content/info_block/hits.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?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="hits">
|
||||
<span class="icon-eye-open"></span>
|
||||
<?php echo JText::sprintf('COM_CONTENT_ARTICLE_HITS', $displayData['item']->hits); ?>
|
||||
</dd>
|
1
layouts/joomla/content/info_block/index.html
Normal file
1
layouts/joomla/content/info_block/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
16
layouts/joomla/content/info_block/modify_date.php
Normal file
16
layouts/joomla/content/info_block/modify_date.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?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="modified">
|
||||
<span class="icon-calendar"></span>
|
||||
<?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $displayData['item']->modified, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</dd>
|
21
layouts/joomla/content/info_block/parent_category.php
Normal file
21
layouts/joomla/content/info_block/parent_category.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?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="parent-category-name">
|
||||
<?php $title = $this->escape($displayData['item']->parent_title);
|
||||
$url = '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($displayData['item']->parent_slug)).'">'.$title.'</a>';?>
|
||||
<?php if ($displayData['params']->get('link_parent_category') && !empty($displayData['item']->parent_slug)) : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $title); ?>
|
||||
<?php endif; ?>
|
||||
</dd>
|
14
layouts/joomla/content/info_block/publish_date.php
Normal file
14
layouts/joomla/content/info_block/publish_date.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?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="published">
|
||||
<span class="icon-calendar"></span> <?php echo JText::sprintf('COM_CONTENT_PUBLISHED_DATE_ON', JHtml::_('date', $displayData['item']->publish_up, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</dd>
|
Reference in New Issue
Block a user