- md5
- 43ece9bf2bb99cb64025e157a4da3628
- sha1
- 57e7fc1db143b5640d916c883bd255210c032c9d
- sha256
- 6ae6850207fed74bbf5fc0823206610e805f40c0d4a5e358427c0a47d54aff6c
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
<?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::_('behavior.tooltip');
JHtml::_('behavior.modal');
JHtml::_('formbehavior.chosen', 'select');
$canDo = TemplatesHelper::getActions();
$input = JFactory::getApplication()->input;
?>
<form action="<?php echo JRoute::_('index.php?option=com_templates&view=template'); ?>" method="post" name="adminForm" id="adminForm" class="form-horizontal">
<fieldset id="template-manager">
<div class="pull-left">
<?php echo JHtml::_('templates.thumb', $this->template->element, $this->template->client_id); ?>
</div>
<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>
<div class="clearfix"></div>
<hr />
<div class="row-fluid">
<div class="span6">
<div class="page-header">
<?php echo JText::_('COM_TEMPLATES_TEMPLATE_MASTER_FILES');?>
</div>
<ul class="nav nav-tabs nav-stacked">
<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);?>">
<i class="icon-edit"></i>
<?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);?>">
<i class="icon-edit"></i>
<?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);?>">
<i class="icon-edit"></i>
<?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);?>">
<i class="icon-edit"></i>
<?php endif; ?>
<?php echo JText::_('COM_TEMPLATES_TEMPLATE_EDIT_PRINTVIEW');?>
<?php if ($canDo->get('core.edit')) : ?>
</a>
<?php endif; ?>
</li>
<?php endif; ?>
</ul>
</div>
<div class="span6">
<div class="page-header">
<?php echo JText::_('COM_TEMPLATES_TEMPLATE_CSS');?>
</div>
<?php if (!empty($this->files['css'])) : ?>
<ul class="nav nav-tabs nav-stacked">
<?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);?>">
<i class="icon-edit"></i>
<?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>
</div>
<!--<div>
<a href="#" class="modal">
<?php echo JText::sprintf('COM_TEMPLATES_TEMPLATE_ADD_CSS');?></a>
</div>-->
</fieldset>
<input type="hidden" name="task" value="" />
</form>
<form action="<?php echo JRoute::_('index.php?option=com_templates&task=template.copy&id=' . $input->getInt('id')); ?>"
method="post" name="adminForm" id="adminForm">
<div id="collapseModal" class="modal hide fade">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3><?php echo JText::_('COM_TEMPLATES_TEMPLATE_COPY');?></h3>
</div>
<div class="modal-body">
<div id="template-manager-css" class="form-horizontal">
<div class="control-group">
<label for="new_name" class="control-label hasTip" title="<?php echo JText::_('COM_TEMPLATES_TEMPLATE_NEW_NAME_DESC'); ?>"><?php echo JText::_('COM_TEMPLATES_TEMPLATE_NEW_NAME_LABEL')?></label>
<div class="controls">
<input class="input-xlarge" type="text" id="new_name" name="new_name" />
</div>
</div>
</div>
</div>
<div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal">Close</a>
<button class="btn btn-primary" type="submit"><?php echo JText::_('COM_TEMPLATES_TEMPLATE_COPY'); ?></button>
</div>
</div>
<?php echo JHtml::_('form.token'); ?>
</form>
The same content is in 4 releases, Joomla 3.0.3 to 3.1.1. See them all, or every version of this file.