first commit

This commit is contained in:
alazhar
2020-01-02 22:20:31 +07:00
commit 10eb3340ad
5753 changed files with 631345 additions and 0 deletions

View File

@ -0,0 +1 @@
<!DOCTYPE html><title></title>

View File

@ -0,0 +1,87 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage com_templates
*
* @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('_JEXEC') or die;
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
JHtml::_('behavior.formvalidation');
JHtml::_('behavior.keepalive');
$user = JFactory::getUser();
$canDo = TemplatesHelper::getActions();
?>
<script type="text/javascript">
Joomla.submitbutton = function(task)
{
if (task == 'style.cancel' || document.formvalidator.isValid(document.id('style-form')))
{
Joomla.submitform(task, document.getElementById('style-form'));
}
}
</script>
<form action="<?php echo JRoute::_('index.php?option=com_templates&layout=edit&id='.(int) $this->item->id); ?>" method="post" name="adminForm" id="style-form" class="form-validate">
<div class="width-60 fltlft">
<fieldset class="adminform">
<legend><?php echo JText::_('JDETAILS');?></legend>
<ul class="adminformlist">
<li><?php echo $this->form->getLabel('title'); ?>
<?php echo $this->form->getInput('title'); ?></li>
<li><?php echo $this->form->getLabel('template'); ?>
<?php echo $this->form->getInput('template'); ?>
<?php echo $this->form->getLabel('client_id'); ?>
<?php echo $this->form->getInput('client_id'); ?>
<input type="text" size="35" value="<?php echo $this->item->client_id == 0 ? JText::_('JSITE') : JText::_('JADMINISTRATOR'); ?> " class="readonly" readonly="readonly" /></li>
<li><?php echo $this->form->getLabel('home'); ?>
<?php echo $this->form->getInput('home'); ?></li>
<?php if ($this->item->id) : ?>
<li><?php echo $this->form->getLabel('id'); ?>
<span class="readonly"><?php echo $this->item->id; ?></span></li>
<?php endif; ?>
</ul>
<div class="clr"></div>
<?php if ($this->item->xml) : ?>
<?php if ($text = trim($this->item->xml->description)) : ?>
<label>
<?php echo JText::_('COM_TEMPLATES_TEMPLATE_DESCRIPTION'); ?>
</label>
<span class="readonly mod-desc"><?php echo JText::_($text); ?></span>
<?php endif; ?>
<?php else : ?>
<p class="error"><?php echo JText::_('COM_TEMPLATES_ERR_XML'); ?></p>
<?php endif; ?>
<div class="clr"></div>
</fieldset>
<input type="hidden" name="task" value="" />
<?php echo JHtml::_('form.token'); ?>
</div>
<div class="width-40 fltrt">
<?php echo JHtml::_('sliders.start', 'template-sliders-'.$this->item->id); ?>
<?php //get the menu parameters that are automatically set but may be modified.
echo $this->loadTemplate('options'); ?>
<div class="clr"></div>
<?php echo JHtml::_('sliders.end'); ?>
</div>
<?php if ($user->authorise('core.edit', 'com_menu') && $this->item->client_id == 0):?>
<?php if ($canDo->get('core.edit.state')) : ?>
<div class="width-60 fltlft">
<?php echo $this->loadTemplate('assignment'); ?>
</div>
<?php endif; ?>
<?php endif;?>
<div class="clr"></div>
</form>

View File

@ -0,0 +1,48 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage com_templates
*
* @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('_JEXEC') or die;
// Initiasile related data.
require_once JPATH_ADMINISTRATOR.'/components/com_menus/helpers/menus.php';
$menuTypes = MenusHelper::getMenuLinks();
$user = JFactory::getUser();
?>
<fieldset class="adminform">
<legend><?php echo JText::_('COM_TEMPLATES_MENUS_ASSIGNMENT'); ?></legend>
<label id="jform_menuselect-lbl" for="jform_menuselect"><?php echo JText::_('JGLOBAL_MENU_SELECTION'); ?></label>
<button type="button" class="jform-rightbtn" onclick="$$('.chk-menulink').each(function(el) { el.checked = !el.checked; });">
<?php echo JText::_('JGLOBAL_SELECTION_INVERT'); ?>
</button>
<div class="clr"></div>
<div id="menu-assignment">
<?php foreach ($menuTypes as &$type) : ?>
<ul class="menu-links">
<button type="button" class="jform-rightbtn" onclick="$$('.<?php echo $type->menutype; ?>').each(function(el) { el.checked = !el.checked; });">
<?php echo JText::_('JGLOBAL_SELECTION_INVERT'); ?>
</button>
<div class="clr"></div>
<h3><?php echo $type->title ? $type->title : $type->menutype; ?></h3>
<?php foreach ($type->links as $link) : ?>
<li class="menu-link">
<input type="checkbox" name="jform[assigned][]" value="<?php echo (int) $link->value;?>" id="link<?php echo (int) $link->value;?>"<?php if ($link->template_style_id == $this->item->id):?> checked="checked"<?php endif;?><?php if ($link->checked_out && $link->checked_out != $user->id):?> disabled="disabled"<?php else:?> class="chk-menulink <?php echo $type->menutype; ?>"<?php endif;?> />
<label for="link<?php echo (int) $link->value;?>" >
<?php echo $link->text; ?>
</label>
</li>
<?php endforeach; ?>
</ul>
<?php endforeach; ?>
</div>
</fieldset>

View File

@ -0,0 +1,33 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage com_templates
*
* @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('_JEXEC') or die;
$fieldSets = $this->form->getFieldsets('params');
foreach ($fieldSets as $name => $fieldSet) :
$label = !empty($fieldSet->label) ? $fieldSet->label : 'COM_TEMPLATES_'.$name.'_FIELDSET_LABEL';
echo JHtml::_('sliders.panel', JText::_($label), $name.'-options');
if (isset($fieldSet->description) && trim($fieldSet->description)) :
echo '<p class="tip">'.$this->escape(JText::_($fieldSet->description)).'</p>';
endif;
?>
<fieldset class="panelform">
<ul class="adminformlist">
<?php foreach ($this->form->getFieldset($name) as $field) : ?>
<li>
<?php if (!$field->hidden) : ?>
<?php echo $field->label; ?>
<?php endif; ?>
<?php echo $field->input; ?>
</li>
<?php endforeach; ?>
</ul>
</fieldset>
<?php endforeach; ?>

View File

@ -0,0 +1 @@
<!DOCTYPE html><title></title>

View File

@ -0,0 +1,153 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage Template.hathor
*
* @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('_JEXEC') or die;
// Include the component HTML helpers.
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
JHtml::_('bootstrap.tooltip');
JHtml::_('script', 'system/multiselect.js', false, true);
$user = JFactory::getUser();
$listOrder = $this->escape($this->state->get('list.ordering'));
$listDirn = $this->escape($this->state->get('list.direction'));
?>
<form action="<?php echo JRoute::_('index.php?option=com_templates&view=styles'); ?>" method="post" name="adminForm" id="adminForm">
<?php if (!empty( $this->sidebar)) : ?>
<div id="j-sidebar-container" class="span2">
<?php echo $this->sidebar; ?>
</div>
<div id="j-main-container" class="span10">
<?php else : ?>
<div id="j-main-container">
<?php endif;?>
<fieldset id="filter-bar">
<legend class="element-invisible"><?php echo JText::_('JSEARCH_FILTER_LABEL'); ?></legend>
<div class="filter-search">
<label class="filter-search-lbl" for="filter_search"><?php echo JText::_('JSEARCH_FILTER_LABEL'); ?></label>
<input type="text" name="filter_search" id="filter_search" value="<?php echo $this->escape($this->state->get('filter.search')); ?>" title="<?php echo JText::_('COM_TEMPLATES_STYLES_FILTER_SEARCH_DESC'); ?>" />
<button type="submit"><?php echo JText::_('JSEARCH_FILTER_SUBMIT'); ?></button>
<button type="button" onclick="document.id('filter_search').value='';this.form.submit();"><?php echo JText::_('JSEARCH_FILTER_CLEAR'); ?></button>
</div>
<div class="filter-select">
<label class="selectlabel" for="filter_template"><?php echo JText::_('COM_TEMPLATES_FILTER_TEMPLATE'); ?></label>
<select name="filter_template" class="inputbox" id="filter_template">
<option value="0"><?php echo JText::_('COM_TEMPLATES_FILTER_TEMPLATE'); ?></option>
<?php echo JHtml::_('select.options', TemplatesHelper::getTemplateOptions($this->state->get('filter.client_id')), 'value', 'text', $this->state->get('filter.template'));?>
</select>
<label class="selectlabel" for="filter_client_id"><?php echo JText::_('JGLOBAL_FILTER_CLIENT'); ?></label>
<select name="filter_client_id" class="inputbox" id="filter_client_id">
<option value="*"><?php echo JText::_('JGLOBAL_FILTER_CLIENT'); ?></option>
<?php echo JHtml::_('select.options', TemplatesHelper::getClientOptions(), 'value', 'text', $this->state->get('filter.client_id'));?>
</select>
<button type="submit" id="filter-go">
<?php echo JText::_('JSUBMIT'); ?></button>
</div>
</fieldset>
<div class="clr"> </div>
<table class="adminlist">
<thead>
<tr>
<th class="checkmark-col">
&#160;
</th>
<th>
<?php echo JHtml::_('grid.sort', 'COM_TEMPLATES_HEADING_STYLE', 'a.title', $listDirn, $listOrder); ?>
</th>
<th class="width-10">
<?php echo JHtml::_('grid.sort', 'JCLIENT', 'a.client_id', $listDirn, $listOrder); ?>
</th>
<th>
<?php echo JHtml::_('grid.sort', 'COM_TEMPLATES_HEADING_TEMPLATE', 'a.template', $listDirn, $listOrder); ?>
</th>
<th class="width-5">
<?php echo JHtml::_('grid.sort', 'COM_TEMPLATES_HEADING_DEFAULT', 'a.home', $listDirn, $listOrder); ?>
</th>
<th class="width-5">
<?php echo JText::_('COM_TEMPLATES_HEADING_ASSIGNED'); ?>
</th>
<th class="nowrap id-col">
<?php echo JHtml::_('grid.sort', 'JGRID_HEADING_ID', 'a.id', $listDirn, $listOrder); ?>
</th>
</tr>
</thead>
<tbody>
<?php foreach ($this->items as $i => $item) :
$canCreate = $user->authorise('core.create', 'com_templates');
$canEdit = $user->authorise('core.edit', 'com_templates');
$canChange = $user->authorise('core.edit.state', 'com_templates');
?>
<tr class="row<?php echo $i % 2; ?>">
<td class="center">
<?php echo JHtml::_('grid.id', $i, $item->id); ?>
</td>
<td>
<?php if ($this->preview && $item->client_id == '0') : ?>
<a target="_blank" href="<?php echo JUri::root().'index.php?tp=1&templateStyle='.(int) $item->id ?>" class="jgrid hasTooltip" title="<?php echo JHtml::tooltipText(JText::_('COM_TEMPLATES_TEMPLATE_PREVIEW'), $item->title, 0); ?>" ><span class="state icon-16-preview"><span class="text"><?php echo JText::_('COM_TEMPLATES_TEMPLATE_PREVIEW'); ?></span></span></a>
<?php elseif ($item->client_id == '1') : ?>
<span class="jgrid hasTooltip" title="<?php echo JHtml::tooltipText('COM_TEMPLATES_TEMPLATE_NO_PREVIEW_ADMIN'); ?>"><span class="state icon-16-nopreview"><span class="text"><?php echo JText::_('COM_TEMPLATES_TEMPLATE_NO_PREVIEW_ADMIN'); ?></span></span></span>
<?php else: ?>
<span class="jgrid hasTooltip" title="<?php echo JHtml::tooltipText('COM_TEMPLATES_TEMPLATE_NO_PREVIEW'); ?>"><span class="state icon-16-nopreview"><span class="text"><?php echo JText::_('COM_TEMPLATES_TEMPLATE_NO_PREVIEW'); ?></span></span></span>
<?php endif; ?>
<?php if ($canEdit) : ?>
<a href="<?php echo JRoute::_('index.php?option=com_templates&task=style.edit&id='.(int) $item->id); ?>">
<?php echo $this->escape($item->title);?></a>
<?php else : ?>
<?php echo $this->escape($item->title);?>
<?php endif; ?>
</td>
<td class="center">
<?php echo $item->client_id == 0 ? JText::_('JSITE') : JText::_('JADMINISTRATOR'); ?>
</td>
<td>
<label for="cb<?php echo $i;?>">
<?php echo $this->escape($item->template);?>
</label>
</td>
<td class="center">
<?php if ($item->home == '0' || $item->home == '1'):?>
<?php echo JHtml::_('jgrid.isdefault', $item->home != '0', $i, 'styles.', $canChange && $item->home != '1');?>
<?php elseif ($canChange):?>
<a href="<?php echo JRoute::_('index.php?option=com_templates&task=styles.unsetDefault&cid[]='.$item->id.'&'.JSession::getFormToken().'=1');?>">
<?php echo JHtml::_('image', 'mod_languages/' . $item->image . '.gif', $item->language_title, array('title' => JText::sprintf('COM_TEMPLATES_GRID_UNSET_LANGUAGE', $item->language_title)), true);?>
</a>
<?php else:?>
<?php echo JHtml::_('image', 'mod_languages/' . $item->image . '.gif', $item->language_title, array('title' => $item->language_title), true);?>
<?php endif;?>
</td>
<td class="center">
<?php if ($item->assigned > 0) : ?>
<?php echo JHtml::_('image', 'admin/tick.png', JText::plural('COM_TEMPLATES_ASSIGNED', $item->assigned), array('title' => JText::plural('COM_TEMPLATES_ASSIGNED', $item->assigned)), true); ?>
<?php else : ?>
&#160;
<?php endif; ?>
</td>
<td class="center">
<?php echo (int) $item->id; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php echo $this->pagination->getListFooter(); ?>
<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'); ?>
</div>
</form>

View File

@ -0,0 +1 @@
<!DOCTYPE html><title></title>

View File

@ -0,0 +1,133 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage com_templates
*
* @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('_JEXEC') or die;
// Include the component HTML helpers.
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
JHtml::_('bootstrap.tooltip');
JHtml::_('behavior.modal');
$canDo = TemplatesHelper::getActions();
$input = JFactory::getApplication()->input;
?>
<form action="<?php echo JRoute::_('index.php?option=com_templates&view=templates'); ?>" method="post" name="adminForm" id="adminForm">
<div class="width-50 fltlft">
<fieldset class="adminform" id="template-manager">
<legend><?php echo JText::_('COM_TEMPLATES_TEMPLATE_DESCRIPTION');?></legend>
<?php echo JHtml::_('templates.thumb', $this->template->element, $this->template->client_id); ?>
<h2><?php echo ucfirst($this->template->element); ?></h2>
<?php $client = JApplicationHelper::getClientInfo($this->template->client_id); ?>
<p><?php $this->template->xmldata = TemplatesHelper::parseXMLTemplateFile($client->path, $this->template->element);?></p>
<p><?php echo JText::_($this->template->xmldata->description); ?></p>
</fieldset>
<fieldset class="adminform" id="template-manager">
<legend><?php echo JText::_('COM_TEMPLATES_TEMPLATE_MASTER_FILES');?></legend>
<ul>
<li>
<?php $id = $this->files['main']['index']->id; ?>
<?php if ($canDo->get('core.edit')) : ?>
<a href="<?php echo JRoute::_('index.php?option=com_templates&task=source.edit&id='.$id);?>">
<?php endif; ?>
<?php echo JText::_('COM_TEMPLATES_TEMPLATE_EDIT_MAIN');?>
<?php if ($canDo->get('core.edit')) : ?>
</a>
<?php endif; ?>
</li>
<?php if ($this->files['main']['error']->exists) : ?>
<li>
<?php $id = $this->files['main']['error']->id; ?>
<?php if ($canDo->get('core.edit')) : ?>
<a href="<?php echo JRoute::_('index.php?option=com_templates&task=source.edit&id='.$id);?>">
<?php endif; ?>
<?php echo JText::_('COM_TEMPLATES_TEMPLATE_EDIT_ERROR');?>
<?php if ($canDo->get('core.edit')) : ?>
</a>
<?php endif; ?>
</li>
<?php endif; ?>
<?php if ($this->files['main']['offline']->exists) : ?>
<li>
<?php $id = $this->files['main']['offline']->id; ?>
<?php if ($canDo->get('core.edit')) : ?>
<a href="<?php echo JRoute::_('index.php?option=com_templates&task=source.edit&id='.$id);?>">
<?php endif; ?>
<?php echo JText::_('COM_TEMPLATES_TEMPLATE_EDIT_OFFLINEVIEW');?>
<?php if ($canDo->get('core.edit')) : ?>
</a>
<?php endif; ?>
</li>
<?php endif; ?>
<?php if ($this->files['main']['print']->exists) : ?>
<li>
<?php $id = $this->files['main']['print']->id; ?>
<?php if ($canDo->get('core.edit')) : ?>
<a href="<?php echo JRoute::_('index.php?option=com_templates&task=source.edit&id='.$id);?>">
<?php endif; ?>
<?php echo JText::_('COM_TEMPLATES_TEMPLATE_EDIT_PRINTVIEW');?>
<?php if ($canDo->get('core.edit')) : ?>
</a>
<?php endif; ?>
</li>
<?php endif; ?>
</ul>
</fieldset>
<div class="clr"></div>
</div>
<div class="width-50 fltrt">
<fieldset class="adminform" id="template-manager-css">
<legend><?php echo JText::_('COM_TEMPLATES_TEMPLATE_CSS');?></legend>
<?php if (!empty($this->files['css'])) : ?>
<ul>
<?php foreach ($this->files['css'] as $file) : ?>
<li>
<?php if ($canDo->get('core.edit')) : ?>
<a href="<?php echo JRoute::_('index.php?option=com_templates&task=source.edit&id='.$file->id);?>">
<?php endif; ?>
<?php echo JText::sprintf('COM_TEMPLATES_TEMPLATE_EDIT_CSS', $file->name);?>
<?php if ($canDo->get('core.edit')) : ?>
</a>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<!--<div>
<a href="#" class="modal">
<?php echo JText::sprintf('COM_TEMPLATES_TEMPLATE_ADD_CSS');?></a>
</div>-->
</fieldset>
<div class="clr"></div>
<input type="hidden" name="task" value="" />
</div>
<div class="width-50 fltrt">
</form>
<form action="<?php echo JRoute::_('index.php?option=com_templates&task=template.copy&id=' . $input->getInt('id')); ?>"
method="post" name="adminForm" id="adminForm">
<fieldset class="adminform" id="template-manager-css">
<legend><?php echo JText::_('COM_TEMPLATES_TEMPLATE_COPY');?></legend>
<label id="new_name" class="hasTooltip" title="<?php echo JHtml::tooltipText('COM_TEMPLATES_TEMPLATE_NEW_NAME_DESC'); ?>"><?php echo JText::_('COM_TEMPLATES_TEMPLATE_NEW_NAME_LABEL')?></label>
<input class="inputbox" type="text" id="new_name" name="new_name" />
<button type="submit"><?php echo JText::_('COM_TEMPLATES_TEMPLATE_COPY'); ?></button>
</fieldset>
<?php echo JHtml::_('form.token'); ?>
</form>
</div>

View File

@ -0,0 +1 @@
<!DOCTYPE html><title></title>

View File

@ -0,0 +1,137 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage Template.hathor
*
* @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('_JEXEC') or die;
// Include the component HTML helpers.
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
JHtml::_('bootstrap.tooltip');
JHtml::_('behavior.modal');
JHtml::_('behavior.multiselect');
$user = JFactory::getUser();
$listOrder = $this->escape($this->state->get('list.ordering'));
$listDirn = $this->escape($this->state->get('list.direction'));
?>
<form action="<?php echo JRoute::_('index.php?option=com_templates&view=templates'); ?>" method="post" name="adminForm" id="adminForm">
<?php if (!empty( $this->sidebar)) : ?>
<div id="j-sidebar-container" class="span2">
<?php echo $this->sidebar; ?>
</div>
<div id="j-main-container" class="span10">
<?php else : ?>
<div id="j-main-container">
<?php endif;?>
<fieldset id="filter-bar">
<legend class="element-invisible"><?php echo JText::_('Filters'); ?></legend>
<div class="filter-search">
<label class="filter-search-lbl" for="filter_search"><?php echo JText::_('JSEARCH_FILTER_LABEL'); ?></label>
<input type="text" name="filter_search" id="filter_search" value="<?php echo $this->escape($this->state->get('filter.search')); ?>" title="<?php echo JText::_('COM_TEMPLATES_TEMPLATES_FILTER_SEARCH_DESC'); ?>" />
<button type="submit"><?php echo JText::_('JSEARCH_FILTER_SUBMIT'); ?></button>
<button type="button" onclick="document.id('filter_search').value='';this.form.submit();"><?php echo JText::_('JSEARCH_FILTER_CLEAR'); ?></button>
</div>
<div class="filter-select">
<label class="selectlabel" for="filter_client_id">
<?php echo JText::_('JGLOBAL_FILTER_CLIENT'); ?>
</label>
<select name="filter_client_id" class="inputbox" id="filter_client_id">
<option value="*"><?php echo JText::_('JGLOBAL_FILTER_CLIENT'); ?></option>
<?php echo JHtml::_('select.options', TemplatesHelper::getClientOptions(), 'value', 'text', $this->state->get('filter.client_id'));?>
</select>
<button type="submit" id="filter-go">
<?php echo JText::_('JSUBMIT'); ?></button>
</div>
</fieldset>
<div class="clr"> </div>
<table class="adminlist" id="template-mgr">
<thead>
<tr>
<th class="checkmark-col">
&#160;
</th>
<th>
<?php echo JHtml::_('grid.sort', 'COM_TEMPLATES_HEADING_TEMPLATE', 'a.element', $listDirn, $listOrder); ?>
</th>
<th class="width-10">
<?php echo JHtml::_('grid.sort', 'JCLIENT', 'a.client_id', $listDirn, $listOrder); ?>
</th>
<th class="center width-10">
<?php echo JText::_('JVERSION'); ?>
</th>
<th class="width-15">
<?php echo JText::_('JDATE'); ?>
</th>
<th class="width-25">
<?php echo JText::_('JAUTHOR'); ?>
</th>
</tr>
</thead>
<tbody>
<?php foreach ($this->items as $i => $item) : ?>
<tr class="row<?php echo $i % 2; ?>">
<td class="center">
<?php echo JHtml::_('templates.thumb', $item->element, $item->client_id); ?>
</td>
<td class="template-name">
<a href="<?php echo JRoute::_('index.php?option=com_templates&view=template&id='.(int) $item->extension_id); ?>">
<?php echo JText::sprintf('COM_TEMPLATES_TEMPLATE_DETAILS', $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', 'COM_TEMPLATES_TEMPLATE_NO_PREVIEW_DESC'); ?>">
<?php echo JText::_('COM_TEMPLATES_TEMPLATE_NO_PREVIEW'); ?></span>
<?php endif; ?>
</p>
</td>
<td class="center">
<?php echo $item->client_id == 0 ? JText::_('JSITE') : JText::_('JADMINISTRATOR'); ?>
</td>
<td class="center">
<?php echo $this->escape($item->xmldata->get('version')); ?>
</td>
<td class="center">
<?php echo $this->escape($item->xmldata->get('creationDate')); ?>
</td>
<td>
<?php if ($author = $item->xmldata->get('author')) : ?>
<p><?php echo $this->escape($author); ?></p>
<?php else : ?>
&mdash;
<?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 echo $this->pagination->getListFooter(); ?>
<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'); ?>
</div>
</form>

View File

@ -0,0 +1 @@
<!DOCTYPE html><title></title>