Spade
Mini Shell
| Directory:~$ /home/lmsyaran/www/administrator/components/com_advancedtemplates/views/templates/tmpl/ |
| [Home] [System Details] [Kill Me] |
<?php
/**
* @package Advanced Template Manager
* @version 3.9.5
*
* @author Peter van Westen <info@regularlabs.com>
* @link http://www.regularlabs.com
* @copyright Copyright © 2021 Regular Labs All Rights Reserved
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/
/**
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All
rights reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\Factory as JFactory;
use Joomla\CMS\HTML\HTMLHelper as JHtml;
use Joomla\CMS\Language\Text as JText;
use Joomla\CMS\Router\Route as JRoute;
use Joomla\CMS\Uri\Uri as JUri;
use RegularLabs\Library\Document as RL_Document;
use RegularLabs\Library\License as RL_License;
use RegularLabs\Library\Version as RL_Version;
// Include the component HTML helpers.
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
RL_Document::loadFormDependencies();
$user = JFactory::getUser();
$listOrder =
$this->escape($this->state->get('list.ordering'));
$listDirn =
$this->escape($this->state->get('list.direction'));
$showthumbs = $this->config->show_thumbs;
$script = "
Joomla.orderTable = function()
{
var table = document.getElementById('sortTable');
var order = table.options[table.selectedIndex].value;
var dirn = 'asc';
if (order == '" . $listOrder . "')
{
var direction = document.getElementById('directionTable');
dirn = direction.options[direction.selectedIndex].value;
}
Joomla.tableOrdering(order, dirn, '');
};
";
RL_Document::scriptDeclaration($script);
?>
<form action="<?php echo
JRoute::_('index.php?option=com_advancedtemplates&view=templates');
?>" method="post" name="adminForm"
id="adminForm">
<div id="j-sidebar-container" class="span2">
<?php echo $this->sidebar; ?>
</div>
<div id="j-main-container" class="span10">
<?php
// Version check
if ($this->config->show_update_notification)
{
echo RL_Version::getMessage('ADVANCEDTEMPLATEMANAGER');
}
?>
<div id="filter-bar" class="btn-toolbar">
<div class="filter-search btn-group pull-left">
<label for="filter_search"
class="element-invisible"><?php echo
JText::_('JSEARCH_FILTER_LABEL'); ?></label>
<input type="text" name="filter_search"
id="filter_search" placeholder="<?php echo
JText::_('JSEARCH_FILTER'); ?>"
value="<?php echo
$this->escape($this->state->get('filter.search'));
?>" class="hasTooltip"
title="<?php echo
JHtml::tooltipText('COM_TEMPLATES_TEMPLATES_FILTER_SEARCH_DESC');
?>">
</div>
<div class="btn-group pull-left">
<button type="submit" class="btn btn-default
hasTooltip" title="<?php echo
JHtml::tooltipText('JSEARCH_FILTER_SUBMIT'); ?>">
<span class="icon-search"></span></button>
<button type="button" class="btn btn-default
hasTooltip" title="<?php echo
JHtml::tooltipText('JSEARCH_FILTER_CLEAR'); ?>"
onclick="document.getElementById('filter_search').value='';this.form.submit();">
<span class="icon-remove"></span></button>
</div>
</div>
<div class="clear"></div>
<?php if (empty($this->items)) : ?>
<div class="alert alert-no-items">
<?php echo
JText::_('COM_TEMPLATES_MSG_MANAGE_NO_TEMPLATES'); ?>
</div>
<?php else : ?>
<?php $cols = 7; ?>
<table class="table table-striped"
id="template-mgr">
<thead>
<tr>
<?php if ($showthumbs) : ?>
<?php $cols++; ?>
<th class="col1template hidden-phone">
 
</th>
<?php endif; ?>
<th>
<?php echo JHtml::_('grid.sort',
'COM_TEMPLATES_HEADING_TEMPLATE', 'a.element',
$listDirn, $listOrder); ?>
</th>
<th width="10%">
<?php echo JHtml::_('grid.sort', 'JCLIENT',
'a.client_id', $listDirn, $listOrder); ?>
</th>
<th width="10%" class="hidden-phone">
<?php echo JText::_('JVERSION'); ?>
</th>
<th width="15%" class="hidden-phone">
<?php echo JText::_('JDATE'); ?>
</th>
<th width="25%" class="hidden-phone">
<?php echo JText::_('JAUTHOR'); ?>
</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="<?php echo $cols; ?>">
<?php echo $this->pagination->getListFooter(); ?>
</td>
</tr>
</tfoot>
<tbody>
<?php foreach ($this->items as $i => $item) : ?>
<tr class="row<?php echo $i % 2; ?>">
<?php if ($showthumbs) : ?>
<td class="center hidden-phone">
<?php echo JHtml::_('templates.thumb',
$item->element, $item->client_id); ?>
<?php echo JHtml::_('templates.thumbModal',
$item->element, $item->client_id); ?>
</td>
<?php endif; ?>
<td class="template-name">
<a href="<?php echo
JRoute::_('index.php?option=com_advancedtemplates&view=template&id='
. (int) $item->extension_id . '&file=' . $this->file);
?>">
<?php echo
JText::sprintf('COM_TEMPLATES_TEMPLATE_DETAILS',
ucfirst($item->name)); ?></a>
<p>
<?php if ($this->preview && $item->client_id ==
'0') : ?>
<a href="<?php echo JUri::root() .
'index.php?tp=1&template=' . $item->element; ?>"
target="_blank">
<?php echo
JText::_('COM_TEMPLATES_TEMPLATE_PREVIEW'); ?></a>
<?php elseif ($item->client_id == '1') : ?>
<?php echo
JText::_('COM_TEMPLATES_TEMPLATE_NO_PREVIEW_ADMIN'); ?>
<?php else : ?>
<span class="hasTooltip" title="<?php echo
JHtml::tooltipText('COM_TEMPLATES_TEMPLATE_NO_PREVIEW_DESC');
?>">
<?php echo
JText::_('COM_TEMPLATES_TEMPLATE_NO_PREVIEW'); ?></span>
<?php endif; ?>
</p>
</td>
<td class="small">
<?php echo $item->client_id == 0 ?
JText::_('JSITE') : JText::_('JADMINISTRATOR'); ?>
</td>
<td class="small hidden-phone">
<?php echo
$this->escape($item->xmldata->get('version')); ?>
</td>
<td class="small hidden-phone">
<?php echo
$this->escape($item->xmldata->get('creationDate'));
?>
</td>
<td class="hidden-phone">
<?php if ($author =
$item->xmldata->get('author')) : ?>
<p><?php echo $this->escape($author); ?></p>
<?php else : ?>
—
<?php endif; ?>
<?php if ($email =
$item->xmldata->get('authorEmail')) : ?>
<p><?php echo $this->escape($email); ?></p>
<?php endif; ?>
<?php if ($url =
$item->xmldata->get('authorUrl')) : ?>
<p><a href="<?php echo $this->escape($url);
?>">
<?php echo $this->escape($url); ?></a></p>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
<input type="hidden" name="task"
value="">
<input type="hidden" name="boxchecked"
value="0">
<input type="hidden" name="filter_order"
value="<?php echo $listOrder; ?>">
<input type="hidden" name="filter_order_Dir"
value="<?php echo $listDirn; ?>">
<?php echo JHtml::_('form.token'); ?>
<?php if ($this->config->show_switch) : ?>
<div style="text-align:right">
<a href="<?php echo
JRoute::_('index.php?option=com_templates&force=1');
?>"><?php echo JText::_('ATP_SWITCH_TO_CORE');
?></a>
</div>
<?php endif; ?>
<?php
// PRO Check
echo RL_License::getMessage('ADVANCEDTEMPLATEMANAGER');
// Copyright
echo RL_Version::getFooter('ADVANCEDTEMPLATEMANAGER');
?>
</div>
</form>