first commit
This commit is contained in:
37
layouts/joomla/content/info_block/associations.php
Normal file
37
layouts/joomla/content/info_block/associations.php
Normal file
@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Layout
|
||||
*
|
||||
* @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
|
||||
?>
|
||||
|
||||
<?php if (!empty($displayData['item']->associations)) : ?>
|
||||
<?php $associations = $displayData['item']->associations; ?>
|
||||
|
||||
<dd class="association">
|
||||
<span class="icon-globe icon-fw" aria-hidden="true"></span>
|
||||
<?php echo Text::_('JASSOCIATIONS'); ?>
|
||||
<?php foreach ($associations as $association) : ?>
|
||||
<?php if ($displayData['item']->params->get('flags', 1) && $association['language']->image) : ?>
|
||||
<?php $flag = HTMLHelper::_('image', 'mod_languages/' . $association['language']->image . '.gif', $association['language']->title_native, ['title' => $association['language']->title_native], true); ?>
|
||||
<a href="<?php echo Route::_($association['item']); ?>"><?php echo $flag; ?></a>
|
||||
<?php else : ?>
|
||||
<?php $class = 'btn btn-secondary btn-sm btn-' . strtolower($association['language']->lang_code); ?>
|
||||
<a class="<?php echo $class; ?>" title="<?php echo $association['language']->title_native; ?>" href="<?php echo Route::_($association['item']); ?>"><?php echo $association['language']->lang_code; ?>
|
||||
<span class="visually-hidden"><?php echo $association['language']->title_native; ?></span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
26
layouts/joomla/content/info_block/author.php
Normal file
26
layouts/joomla/content/info_block/author.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Layout
|
||||
*
|
||||
* @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
?>
|
||||
<dd class="createdby">
|
||||
<span class="icon-user icon-fw" aria-hidden="true"></span>
|
||||
<?php $author = ($displayData['item']->created_by_alias ?: $displayData['item']->author); ?>
|
||||
<?php $author = '<span>' . $author . '</span>'; ?>
|
||||
<?php if (!empty($displayData['item']->contact_link) && $displayData['params']->get('link_author') == true) : ?>
|
||||
<?php echo Text::sprintf('COM_CONTENT_WRITTEN_BY', HTMLHelper::_('link', $displayData['item']->contact_link, $author)); ?>
|
||||
<?php else : ?>
|
||||
<?php echo Text::sprintf('COM_CONTENT_WRITTEN_BY', $author); ?>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
31
layouts/joomla/content/info_block/category.php
Normal file
31
layouts/joomla/content/info_block/category.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Layout
|
||||
*
|
||||
* @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\Component\Content\Site\Helper\RouteHelper;
|
||||
|
||||
?>
|
||||
<dd class="category-name">
|
||||
<?php echo LayoutHelper::render('joomla.icon.iconclass', ['icon' => 'icon-folder-open icon-fw']); ?>
|
||||
<?php $title = $this->escape($displayData['item']->category_title); ?>
|
||||
<?php if ($displayData['params']->get('link_category') && !empty($displayData['item']->catid)) : ?>
|
||||
<?php $url = '<a href="' . Route::_(
|
||||
RouteHelper::getCategoryRoute($displayData['item']->catid, $displayData['item']->category_language)
|
||||
)
|
||||
. '">' . $title . '</a>'; ?>
|
||||
<?php echo Text::sprintf('COM_CONTENT_CATEGORY', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo Text::sprintf('COM_CONTENT_CATEGORY', '<span>' . $title . '</span>'); ?>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
22
layouts/joomla/content/info_block/create_date.php
Normal file
22
layouts/joomla/content/info_block/create_date.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Layout
|
||||
*
|
||||
* @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
?>
|
||||
<dd class="create">
|
||||
<span class="icon-calendar icon-fw" aria-hidden="true"></span>
|
||||
<time datetime="<?php echo HTMLHelper::_('date', $displayData['item']->created, 'c'); ?>">
|
||||
<?php echo Text::sprintf('COM_CONTENT_CREATED_DATE_ON', HTMLHelper::_('date', $displayData['item']->created, Text::_('DATE_FORMAT_LC3'))); ?>
|
||||
</time>
|
||||
</dd>
|
||||
20
layouts/joomla/content/info_block/hits.php
Normal file
20
layouts/joomla/content/info_block/hits.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Layout
|
||||
*
|
||||
* @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
?>
|
||||
<dd class="hits">
|
||||
<span class="icon-eye icon-fw" aria-hidden="true"></span>
|
||||
<meta content="UserPageVisits:<?php echo $displayData['item']->hits; ?>">
|
||||
<?php echo Text::sprintf('COM_CONTENT_ARTICLE_HITS', $displayData['item']->hits); ?>
|
||||
</dd>
|
||||
22
layouts/joomla/content/info_block/modify_date.php
Normal file
22
layouts/joomla/content/info_block/modify_date.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Layout
|
||||
*
|
||||
* @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
?>
|
||||
<dd class="modified">
|
||||
<span class="icon-calendar icon-fw" aria-hidden="true"></span>
|
||||
<time datetime="<?php echo HTMLHelper::_('date', $displayData['item']->modified, 'c'); ?>">
|
||||
<?php echo Text::sprintf('COM_CONTENT_LAST_UPDATED', HTMLHelper::_('date', $displayData['item']->modified, Text::_('DATE_FORMAT_LC3'))); ?>
|
||||
</time>
|
||||
</dd>
|
||||
31
layouts/joomla/content/info_block/parent_category.php
Normal file
31
layouts/joomla/content/info_block/parent_category.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Layout
|
||||
*
|
||||
* @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\Component\Content\Site\Helper\RouteHelper;
|
||||
|
||||
?>
|
||||
<dd class="parent-category-name">
|
||||
<?php echo LayoutHelper::render('joomla.icon.iconclass', ['icon' => 'icon-folder icon-fw']); ?>
|
||||
<?php $title = $this->escape($displayData['item']->parent_title); ?>
|
||||
<?php if ($displayData['params']->get('link_parent_category') && !empty($displayData['item']->parent_id)) : ?>
|
||||
<?php $url = '<a href="' . Route::_(
|
||||
RouteHelper::getCategoryRoute($displayData['item']->parent_id, $displayData['item']->parent_language)
|
||||
)
|
||||
. '">' . $title . '</a>'; ?>
|
||||
<?php echo Text::sprintf('COM_CONTENT_PARENT', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo Text::sprintf('COM_CONTENT_PARENT', '<span>' . $title . '</span>'); ?>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
22
layouts/joomla/content/info_block/publish_date.php
Normal file
22
layouts/joomla/content/info_block/publish_date.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Layout
|
||||
*
|
||||
* @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
?>
|
||||
<dd class="published">
|
||||
<span class="icon-calendar icon-fw" aria-hidden="true"></span>
|
||||
<time datetime="<?php echo HTMLHelper::_('date', $displayData['item']->publish_up, 'c'); ?>">
|
||||
<?php echo Text::sprintf('COM_CONTENT_PUBLISHED_DATE_ON', HTMLHelper::_('date', $displayData['item']->publish_up, Text::_('DATE_FORMAT_LC3'))); ?>
|
||||
</time>
|
||||
</dd>
|
||||
Reference in New Issue
Block a user