Файловый менеджер - Редактировать - /home/wuectly/www/03cbe/com_templates.zip
Назад
PK q�#]q][۰R �R template/default.phpnu &1i� <?php /** * @package Joomla.Administrator * @subpackage com_templates * * @copyright (C) 2012 Open Source Matters, Inc. <https://www.joomla.org> * @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'); $input = JFactory::getApplication()->input; if ($this->type == 'image') { JHtml::_('script', 'system/jquery.Jcrop.min.js', array('version' => 'auto', 'relative' => true)); JHtml::_('stylesheet', 'system/jquery.Jcrop.min.css', array('version' => 'auto', 'relative' => true)); } JFactory::getDocument()->addScriptDeclaration(" jQuery(document).ready(function($){ // Hide all the folder when the page loads $('.folder ul, .component-folder ul').hide(); // Display the tree after loading $('.directory-tree').removeClass('directory-tree'); // Show all the lists in the path of an open file $('.show > ul').show(); // Stop the default action of anchor tag on a click event $('.folder-url, .component-folder-url').click(function(event){ event.preventDefault(); }); // Prevent the click event from proliferating $('.file, .component-file-url').bind('click',function(e){ e.stopPropagation(); }); // Toggle the child indented list on a click event $('.folder, .component-folder').bind('click',function(e){ $(this).children('ul').toggle(); e.stopPropagation(); }); // New file tree $('#fileModal .folder-url').bind('click',function(e){ $('.folder-url').removeClass('selected'); e.stopPropagation(); $('#fileModal input.address').val($(this).attr('data-id')); $(this).addClass('selected'); }); // Folder manager tree $('#folderModal .folder-url').bind('click',function(e){ $('.folder-url').removeClass('selected'); e.stopPropagation(); $('#folderModal input.address').val($(this).attr('data-id')); $(this).addClass('selected'); }); });"); if ($this->type == 'image') { JFactory::getDocument()->addScriptDeclaration(" jQuery(document).ready(function() { var jcrop_api; // Configuration for image cropping $('#image-crop').Jcrop({ onChange: showCoords, onSelect: showCoords, onRelease: clearCoords, trueSize: " . $this->image['width'] . "," . $this->image['height'] . "] },function(){ jcrop_api = this; }); // Function for calculating the crop coordinates function showCoords(c) { $('#x').val(c.x); $('#y').val(c.y); $('#w').val(c.w); $('#h').val(c.h); }; // Function for clearing the coordinates function clearCoords() { $('#adminForm input').val(''); }; });"); } JFactory::getDocument()->addStyleDeclaration(' /* Styles for modals */ .selected{ background: #08c; color: #fff; } .selected:hover{ background: #08c !important; color: #fff; } .modal-body .column { width: 50%; float: left; } #deleteFolder{ margin: 0; } #image-crop{ max-width: 100% !important; width: auto; height: auto; } .directory-tree{ display: none; } .tree-holder{ overflow-x: auto; } '); if ($this->type == 'font') { JFactory::getDocument()->addStyleDeclaration( "/* Styles for font preview */ @font-face { font-family: previewFont; src: url('" . $this->font['address'] . "') } .font-preview{ font-family: previewFont !important; }" ); } ?> <div class="width-60 fltlft"> <?php if ($this->type != 'home'): ?> <div id="deleteModal" class="modal hide fade"> <fieldset> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="<?php echo JText::_('JLIB_HTML_BEHAVIOR_CLOSE'); ?>"> <span aria-hidden="true">×</span> </button> <h3><?php echo JText::_('COM_TEMPLATES_ARE_YOU_SURE');?></h3> </div> <div class="modal-body"> <p><?php echo JText::sprintf('COM_TEMPLATES_MODAL_FILE_DELETE', $this->fileName); ?></p> </div> <div class="modal-footer"> <form method="post" action=""> <input type="hidden" name="option" value="com_templates" /> <input type="hidden" name="task" value="template.delete" /> <input type="hidden" name="id" value="<?php echo $input->getInt('id'); ?>" /> <input type="hidden" name="file" value="<?php echo $this->file; ?>" /> <?php echo JHtml::_('form.token'); ?> <button type="button" class="btn" data-dismiss="modal"><?php echo JText::_('COM_TEMPLATES_TEMPLATE_CLOSE'); ?></button> <button type="submit"><?php echo JText::_('COM_TEMPLATES_BUTTON_DELETE');?></button> </form> </div> </fieldset> </div> <?php endif; ?> <div id="folderModal" class="modal hide fade"> <fieldset> <legend><?php echo JText::_('COM_TEMPLATES_MANAGE_FOLDERS');?></legend> <div class="modal-body"> <div class="width-50 fltlft"> <form method="post" action="<?php echo JRoute::_('index.php?option=com_templates&task=template.createFolder&id=' . $input->getInt('id') . '&file=' . $this->file); ?>"> <fieldset> <label><?php echo JText::_('COM_TEMPLATES_FOLDER_NAME');?></label> <input type="text" name="name" required /> <input type="hidden" class="address" name="address" /> <input type="submit" value="<?php echo JText::_('COM_TEMPLATES_BUTTON_CREATE');?>" class="btn btn-primary" /> </fieldset> </form> </div> <div class="width-50 fltlft"> <?php echo $this->loadTemplate('folders');?> </div> </div> <div class="modal-footer"> <form id="deleteFolder" method="post" action="<?php echo JRoute::_('index.php?option=com_templates&task=template.deleteFolder&id=' . $input->getInt('id') . '&file=' . $this->file); ?>"> <fieldset> <button type="button" class="btn" data-dismiss="modal"><?php echo JText::_('COM_TEMPLATES_TEMPLATE_CLOSE'); ?></button> <input type="hidden" class="address" name="address" /> <input type="submit" value="<?php echo JText::_('COM_TEMPLATES_BUTTON_DELETE');?>" class="btn btn-danger" /> </fieldset> </form> </div> </fieldset> </div> <div id="fileModal" class="modal hide fade"> <fieldset> <legend><?php echo JText::_('COM_TEMPLATES_BUTTON_FILE');?></legend> <div class="modal-body"> <div class="width-50 fltlft"> <form method="post" action="<?php echo JRoute::_('index.php?option=com_templates&task=template.createFile&id=' . $input->getInt('id') . '&file=' . $this->file); ?>"> <fieldset> <label><?php echo JText::_('COM_TEMPLATES_NEW_FILE_TYPE');?></label> <select name="type" required > <option value="null">- <?php echo JText::_('COM_TEMPLATES_NEW_FILE_SELECT');?> -</option> <option value="css">css</option> <option value="php">php</option> <option value="js">js</option> <option value="xml">xml</option> <option value="ini">ini</option> <option value="less">less</option> <option value="txt">txt</option> </select> <br /> <label><?php echo JText::_('COM_TEMPLATES_FILE_NAME');?></label> <input type="text" name="name" required /> <input type="hidden" class="address" name="address" /> <input type="submit" value="<?php echo JText::_('COM_TEMPLATES_BUTTON_CREATE');?>" class="btn btn-primary" /> </fieldset> </form> <br /> <form method="post" action="<?php echo JRoute::_('index.php?option=com_templates&task=template.uploadFile&id=' . $input->getInt('id') . '&file=' . $this->file); ?>" enctype="multipart/form-data" > <fieldset> <input type="hidden" class="address" name="address" /> <input type="file" name="files" required /> <input type="submit" value="<?php echo JText::_('COM_TEMPLATES_BUTTON_UPLOAD');?>" class="btn btn-primary" /><br> <?php $cMax = $this->state->get('params')->get('upload_limit'); ?> <?php $maxSize = JHtml::_('number.bytes', JUtility::getMaxUploadSize($cMax . 'MB')); ?> <?php echo JText::sprintf('JGLOBAL_MAXIMUM_UPLOAD_SIZE_LIMIT', $maxSize); ?> </fieldset> </form> <br /> <?php if ($this->type != 'home'): ?> <form method="post" action="<?php echo JRoute::_('index.php?option=com_templates&task=template.copyFile&id=' . $input->getInt('id') . '&file=' . $this->file); ?>" enctype="multipart/form-data" > <fieldset> <input type="hidden" class="address" name="address" /> <div class="control-group"> <label for="new_name" class="control-label hasTooltip" title="<?php echo JHtml::_('tooltipText', 'COM_TEMPLATES_FILE_NEW_NAME_DESC'); ?>"><?php echo JText::_('COM_TEMPLATES_FILE_NEW_NAME_LABEL')?></label> <div class="controls"> <input type="text" id="new_name" name="new_name" required /> </div> </div> <input type="submit" value="<?php echo JText::_('COM_TEMPLATES_BUTTON_COPY_FILE');?>" class="btn btn-primary" /> </fieldset> </form> <?php endif; ?> </div> <div class="width-50 fltlft"> <?php echo $this->loadTemplate('folders');?> </div> </div> <div class="modal-footer"> <button type="button" class="btn" data-dismiss="modal"><?php echo JText::_('COM_TEMPLATES_TEMPLATE_CLOSE'); ?></button> </div> </fieldset> </div> <?php if ($this->type != 'home'): ?> <form action="<?php echo JRoute::_('index.php?option=com_templates&task=template.resizeImage&id=' . $input->getInt('id') . '&file=' . $this->file); ?>" method="post" > <div id="resizeModal" class="modal hide fade"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="<?php echo JText::_('JLIB_HTML_BEHAVIOR_CLOSE'); ?>"> <span aria-hidden="true">×</span> </button> <h3><?php echo JText::_('COM_TEMPLATES_RESIZE_IMAGE'); ?></h3> </div> <div class="modal-body"> <div id="template-manager-css" class="form-horizontal"> <div class="control-group"> <label for="height" class="control-label hasTooltip" title="<?php echo JHtml::_('tooltipText', 'COM_TEMPLATES_IMAGE_HEIGHT'); ?>"><?php echo JText::_('COM_TEMPLATES_IMAGE_HEIGHT')?></label> <div class="controls"> <input class="input-xlarge" type="number" name="height" placeholder="<?php echo $this->image['height']; ?> px" required /> </div> <br /> <label for="width" class="control-label hasTooltip" title="<?php echo JHtml::_('tooltipText', 'COM_TEMPLATES_IMAGE_WIDTH'); ?>"><?php echo JText::_('COM_TEMPLATES_IMAGE_WIDTH')?></label> <div class="controls"> <input class="input-xlarge" type="number" name="width" placeholder="<?php echo $this->image['width']; ?> px" required /> </div> </div> </div> </div> <div class="modal-footer"> <button type="button" class="btn" data-dismiss="modal"><?php echo JText::_('COM_TEMPLATES_TEMPLATE_CLOSE'); ?></button> <button type="submit" class="btn btn-primary"><?php echo JText::_('COM_TEMPLATES_BUTTON_RESIZE'); ?></button> </div> </div> <?php echo JHtml::_('form.token'); ?> </form> <?php endif; ?> <?php if ($this->type == 'home'): ?> <form action="<?php echo JRoute::_('index.php?option=com_templates&view=template&id=' . $input->getInt('id') . '&file=' . $this->file); ?>" method="post" name="adminForm" id="adminForm" class="form-horizontal"> <input type="hidden" name="task" value="" /> <?php echo JHtml::_('form.token'); ?> <div id="home-box" style="text-align: justify;"> <h1><p><?php echo JText::_('COM_TEMPLATES_HOME_HEADING'); ?></p></h1> <p><?php echo JText::_('COM_TEMPLATES_HOME_TEXT'); ?></p> <p> <a href="https://docs.joomla.org/Special:MyLanguage/J3.x:How_to_use_the_Template_Manager" target="_blank"> <?php echo JText::_('COM_TEMPLATES_HOME_BUTTON'); ?> </a> </p> </div> </form> <?php endif; ?> <?php if ($this->type == 'file'): ?> <form action="<?php echo JRoute::_('index.php?option=com_templates&view=template&id=' . $input->getInt('id') . '&file=' . $this->file); ?>" method="post" name="adminForm" id="adminForm" class="form-horizontal"> <fieldset class="adminform"> <legend><?php echo JText::_('COM_TEMPLATES_SOURCE_CODE');?></legend> <p class="label"><?php echo JText::_('COM_TEMPLATES_TOGGLE_FULL_SCREEN'); ?></p> <div class="clr"></div> <div class="editor-border"> <?php echo $this->form->getInput('source'); ?> </div> <input type="hidden" name="task" value="" /> <?php echo JHtml::_('form.token'); ?> <?php echo $this->form->getInput('extension_id'); ?> <?php echo $this->form->getInput('filename'); ?> </fieldset> </form> <?php endif; ?> <?php if ($this->type == 'image'): ?> <div id="image-box"><img id="image-crop" src="<?php echo $this->image['address'] . '?' . time(); ?>" /></div> <form action="<?php echo JRoute::_('index.php?option=com_templates&view=template&id=' . $input->getInt('id') . '&file=' . $this->file); ?>" method="post" name="adminForm" id="adminForm"> <input type ="hidden" id="x" name="x" /> <input type ="hidden" id="y" name="y" /> <input type ="hidden" id="h" name="h" /> <input type ="hidden" id="w" name="w" /> <input type="hidden" name="task" value="" /> <?php echo JHtml::_('form.token'); ?> </form> <?php endif; ?> <?php if ($this->type == 'archive'): ?> <legend><?php echo JText::_('COM_TEMPLATES_FILE_CONTENT_PREVIEW'); ?></legend> <form action="<?php echo JRoute::_('index.php?option=com_templates&view=template&id=' . $input->getInt('id') . '&file=' . $this->file); ?>" method="post" name="adminForm" id="adminForm" class="form-horizontal"> <fieldset> <ul class="nav nav-list"> <?php foreach ($this->archive as $file): ?> <li> <?php if (substr($file, -1) === DIRECTORY_SEPARATOR): ?> <span class="icon-folder" aria-hidden="true"></span> <?php echo $file; ?> <?php endif; ?> <?php if (substr($file, -1) != DIRECTORY_SEPARATOR): ?> <span class="icon-file" aria-hidden="true"></span> <?php echo $file; ?> <?php endif; ?> </li> <?php endforeach; ?> </ul> </fieldset> <input type="hidden" name="task" value="" /> <?php echo JHtml::_('form.token'); ?> </form> <?php endif; ?> <?php if ($this->type == 'font'): ?> <div class="font-preview"> <form action="<?php echo JRoute::_('index.php?option=com_templates&view=template&id=' . $input->getInt('id') . '&file=' . $this->file); ?>" method="post" name="adminForm" id="adminForm" class="form-horizontal"> <fieldset class="adminform"> <legend><?php echo JText::_('COM_TEMPLATES_SOURCE_CODE');?></legend> <p class="lead">H1</p><h1>Quickly gaze at Joomla! views from HTML, CSS, JavaScript and XML </h1> <p class="lead">H2</p><h2>Quickly gaze at Joomla! views from HTML, CSS, JavaScript and XML </h2> <p class="lead">H3</p><h3>Quickly gaze at Joomla! views from HTML, CSS, JavaScript and XML </h3> <p class="lead">H4</p><h4>Quickly gaze at Joomla! views from HTML, CSS, JavaScript and XML </h4> <p class="lead">H5</p><h5>Quickly gaze at Joomla! views from HTML, CSS, JavaScript and XML </h5> <p class="lead">H6</p> <h6>Quickly gaze at Joomla! views from HTML, CSS, JavaScript and XML </h6> <p class="lead">Bold</p><b>Quickly gaze at Joomla! views from HTML, CSS, JavaScript and XML </b> <p class="lead">Italics</p><i>Quickly gaze at Joomla! views from HTML, CSS, JavaScript and XML </i> <p class="lead">Unordered List</p> <ul> <li>Item</li> <li>Item</li> <li>Item<br /> <ul> <li>Item</li> <li>Item</li> <li>Item<br /> <ul> <li>Item</li> <li>Item</li> <li>Item</li> </ul> </li> </ul> </li> </ul> <p class="lead">Ordered List</p> <ol> <li>Item</li> <li>Item</li> <li>Item<br /> <ul> <li>Item</li> <li>Item</li> <li>Item<br /> <ul> <li>Item</li> <li>Item</li> <li>Item</li> </ul> </li> </ul> </li> </ol> <input type="hidden" name="task" value="" /> <?php echo JHtml::_('form.token'); ?> </fieldset> </form> </div> <?php endif; ?> <fieldset class="adminform"> <legend><?php echo JText::_('COM_TEMPLATES_TEMPLATE_DESCRIPTION');?></legend> <?php echo $this->loadTemplate('description');?> </fieldset> <div class="clr"></div> </div> <div class="width-40 fltrt"> <?php if ($this->type != 'home'): ?> <fieldset class="adminform"> <legend><?php echo JText::_('COM_TEMPLATES_FILE_INFO');?></legend> <?php if ($this->type == 'file'): ?> <p><?php echo JText::sprintf('COM_TEMPLATES_TEMPLATE_FILENAME', $this->source->filename, $this->template->element); ?></p> <?php endif; ?> <?php if ($this->type == 'image'): ?> <p><?php echo JText::sprintf('COM_TEMPLATES_TEMPLATE_FILENAME', $this->image['path'], $this->template->element); ?></p> <?php endif; ?> <?php if ($this->type == 'font'): ?> <p><?php echo JText::sprintf('COM_TEMPLATES_TEMPLATE_FILENAME', $this->font['rel_path'], $this->template->element); ?></p> <?php endif; ?> </fieldset> <?php endif; ?> <fieldset class="adminform"> <legend><?php echo JText::_('COM_TEMPLATES_TEMPLATE_FILES');?></legend> <?php echo $this->loadTemplate('tree');?> </fieldset> <?php echo JHtml::_('sliders.start', 'content-sliders', array('useCookie' => 1)); ?> <?php echo JHtml::_('sliders.panel', JText::_('COM_TEMPLATES_TEMPLATE_COPY'), 'template-copy'); ?> <form action="<?php echo JRoute::_('index.php?option=com_templates&task=template.copy&id=' . $input->getInt('id') . '&file=' . $this->file); ?>" method="post" name="adminForm" id="adminForm"> <fieldset class="panelform"> <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 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> <?php if ($this->type != 'home'): ?> <?php echo JHtml::_('sliders.panel', JText::_('COM_TEMPLATES_BUTTON_RENAME'), 'file-rename'); ?> <form action="<?php echo JRoute::_('index.php?option=com_templates&task=template.renameFile&id=' . $input->getInt('id') . '&file=' . $this->file); ?>" method="post" name="adminForm" id="adminForm"> <fieldset class="panelform"> <label id="new_name" class="hasTooltip" title="<?php echo JHtml::_('tooltipText', JText::_('COM_TEMPLATES_NEW_FILE_NAME')); ?>"><?php echo JText::_('COM_TEMPLATES_NEW_FILE_NAME')?></label> <input type="text" name="new_name" /> <button type="submit"><?php echo JText::_('COM_TEMPLATES_BUTTON_RENAME'); ?></button> </fieldset> <?php echo JHtml::_('form.token'); ?> </form> <?php endif; ?> <?php echo JHtml::_('sliders.panel', JText::_('COM_TEMPLATES_OVERRIDES_MODULES'), 'override-module'); ?> <fieldset class="panelform"> <ul class="adminformlist"> <?php foreach ($this->overridesList['modules'] as $module): ?> <li> <a href="<?php echo JRoute::_('index.php?option=com_templates&view=template&task=template.overrides&folder=' . $module->path . '&id=' . $input->getInt('id') . '&file=' . $this->file); ?>"> <span class="icon-copy"></span> <?php echo $module->name; ?> </a> </li> <?php endforeach; ?> </ul> </fieldset> <?php echo JHtml::_('sliders.panel', JText::_('COM_TEMPLATES_OVERRIDES_COMPONENTS'), 'override-component'); ?> <fieldset class="panelform"> <ul class="adminformlist"> <?php foreach ($this->overridesList['components'] as $key => $value): ?> <li class="component-folder"> <a href="#" class="component-folder-url"> <span class="icon-folder"></span> <?php echo $key; ?> </a> <ul class="adminformList"> <?php foreach ($value as $view): ?> <li> <a class="component-file-url" href="<?php echo JRoute::_('index.php?option=com_templates&view=template&task=template.overrides&folder=' . $view->path . '&id=' . $input->getInt('id') . '&file=' . $this->file); ?>"> <span class="icon-copy"></span> <?php echo $view->name; ?> </a> </li> <?php endforeach; ?> </ul> </li> <?php endforeach; ?> </ul> </fieldset> <?php echo JHtml::_('sliders.panel', JText::_('COM_TEMPLATES_OVERRIDES_LAYOUTS'), 'override-layout'); ?> <fieldset class="panelform"> <ul class="adminformlist"> <?php foreach ($this->overridesList['layouts'] as $layout): ?> <li> <a href="<?php echo JRoute::_('index.php?option=com_templates&view=template&task=template.overrides&folder=' . $layout->path . '&id=' . $input->getInt('id') . '&file=' . $this->file); ?>"> <span class="icon-copy"></span> <?php echo $layout->name; ?> </a> </li> <?php endforeach; ?> </ul> </fieldset> <?php echo JHtml::_('sliders.end'); ?> </div> PK q�#]cI�� template/default_tree.phpnu &1i� <?php /** * @package Joomla.Administrator * @subpackage com_templates * * @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; ksort($this->files, SORT_STRING); ?> <ul class='nav nav-list directory-tree'> <?php foreach ($this->files as $key => $value): ?> <?php if (is_array($value)): ?> <?php $keyArray = explode('/', $key); $fileArray = explode('/', $this->fileName); $count = 0; $keyArrayCount = count($keyArray); if (count($fileArray) >= $keyArrayCount) { for ($i = 0; $i < $keyArrayCount; $i++) { if ($keyArray[$i] === $fileArray[$i]) { $count++; } } if ($count === $keyArrayCount) { $class = 'folder show'; } else { $class = 'folder'; } } else { $class = 'folder'; } ?> <li class="<?php echo $class; ?>"> <a class='folder-url nowrap' href=''> <span class='icon-folder-close'> <?php $explodeArray = explode('/', $key); echo end($explodeArray); ?></span> </a> <?php echo $this->directoryTree($value); ?> </li> <?php endif; ?> <?php if (is_object($value)): ?> <li> <a class="file nowrap" href='<?php echo JRoute::_('index.php?option=com_templates&view=template&id=' . $this->id . '&file=' . $value->id) ?>'> <span class='icon-file'> <?php echo $value->name; ?></span> </a> </li> <?php endif; ?> <?php endforeach; ?> </ul> PK q�#]�IzB B template/default_description.phpnu &1i� <?php /** * @package Joomla.Administrator * @subpackage com_templates * * @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; ?> <div class="pull-left"> <?php echo JHtml::_('templates.thumb', $this->template->element, $this->template->client_id); ?> <?php echo JHtml::_('templates.thumbModal', $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>PK q�#]��b template/default_folders.phpnu &1i� <?php /** * @package Joomla.Administrator * @subpackage com_templates * * @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; ksort($this->files, SORT_STRING); ?> <ul class='nav nav-list directory-tree'> <?php foreach ($this->files as $key => $value): ?> <?php if (is_array($value)): ?> <li class="folder-select"> <a class='folder-url nowrap' data-id='<?php echo base64_encode($key); ?>' href=''> <span class='icon-folder-close'> <?php $explodeArray = explode('/', $key); echo end($explodeArray); ?></span> </a> <?php echo $this->folderTree($value); ?> </li> <?php endif; ?> <?php endforeach; ?> </ul> PK q�#]�� �S S styles/default.phpnu &1i� <?php /** * @package Joomla.Administrator * @subpackage Template.hathor * * @copyright (C) 2010 Open Source Matters, Inc. <https://www.joomla.org> * @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', array('version' => 'auto', 'relative' => 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.getElementById('filter_search').value='';this.form.submit();"><?php echo JText::_('JSEARCH_FILTER_CLEAR'); ?></button> </div> <div class="filter-select"> <label class="selectlabel" for="client_id"><?php echo JText::_('JGLOBAL_FILTER_CLIENT'); ?></label> <select name="client_id" id="client_id"> <?php echo JHtml::_('select.options', TemplatesHelper::getClientOptions(), 'value', 'text', $this->state->get('client_id'));?> </select> <label class="selectlabel" for="filter_template"><?php echo JText::_('COM_TEMPLATES_FILTER_TEMPLATE'); ?></label> <select name="filter_template" id="filter_template"> <option value="0"><?php echo JText::_('COM_TEMPLATES_FILTER_TEMPLATE'); ?></option> <?php echo JHtml::_('select.options', TemplatesHelper::getTemplateOptions($this->state->get('client_id')), 'value', 'text', $this->state->get('filter.template'));?> </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">   </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 if ($item->image) : ?> <?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);?> <?php else : ?> <span class="label" title="<?php echo JText::sprintf('COM_TEMPLATES_GRID_UNSET_LANGUAGE', $item->language_title); ?>"><?php echo $item->language_sef; ?></span> <?php endif; ?> </a> <?php else:?> <?php echo JHtml::_('image', 'mod_languages/' . $item->image . '.gif', $item->language_title, array('title' => $item->language_title), true); ?> <?php if ($item->image) : ?> <?php echo JHtml::_('image', 'mod_languages/' . $item->image . '.gif', $item->language_title, array('title' => $item->language_title), true); ?> <?php else : ?> <span class="label" title="<?php echo $item->language_title; ?>"><?php echo $item->language_sef; ?></span> <?php endif; ?> <?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 : ?>   <?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> PK q�#]�f e� � templates/default.phpnu &1i� <?php /** * @package Joomla.Administrator * @subpackage Template.hathor * * @copyright (C) 2010 Open Source Matters, Inc. <https://www.joomla.org> * @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.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::_('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_TEMPLATES_FILTER_SEARCH_DESC'); ?>" /> <button type="submit"><?php echo JText::_('JSEARCH_FILTER_SUBMIT'); ?></button> <button type="button" onclick="document.getElementById('filter_search').value='';this.form.submit();"><?php echo JText::_('JSEARCH_FILTER_CLEAR'); ?></button> </div> <div class="filter-select"> <label class="selectlabel" for="client_id"> <?php echo JText::_('JGLOBAL_FILTER_CLIENT'); ?> </label> <select name="client_id" id="client_id"> <?php echo JHtml::_('select.options', TemplatesHelper::getClientOptions(), 'value', 'text', $this->state->get('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">   </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 . '&file=' . $this->file); ?>"> <?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 : ?> — <?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> <?php echo JHtml::_('templates.thumbModal', $item->element, $item->client_id); ?> </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> PK q�#]"��'� � style/edit.phpnu &1i� <?php /** * @package Joomla.Administrator * @subpackage com_templates * * @copyright (C) 2012 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html'); JHtml::_('behavior.formvalidator'); JHtml::_('behavior.keepalive'); $user = JFactory::getUser(); JFactory::getDocument()->addScriptDeclaration(" Joomla.submitbutton = function(task) { if (task == 'style.cancel' || document.formvalidator.isValid(document.getElementById('style-form'))) { Joomla.submitform(task, document.getElementById('style-form')); } } "); ?> <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 ($this->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> PK q�#]T�u style/edit_options.phpnu &1i� <?php /** * @package Joomla.Administrator * @subpackage com_templates * * @copyright (C) 2012 Open Source Matters, Inc. <https://www.joomla.org> * @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; ?> PK q�#]����� � style/edit_assignment.phpnu &1i� <?php /** * @package Joomla.Administrator * @subpackage com_templates * * @copyright (C) 2012 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; // Initialise related data. JLoader::register('MenusHelper', 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_ALL'); ?> </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->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> PK q�#]q][۰R �R template/default.phpnu &1i� PK q�#]cI�� �R template/default_tree.phpnu &1i� PK q�#]�IzB B DY template/default_description.phpnu &1i� PK q�#]��b �\ template/default_folders.phpnu &1i� PK q�#]�� �S S +` styles/default.phpnu &1i� PK q�#]�f e� � �~ templates/default.phpnu &1i� PK q�#]"��'� � �� style/edit.phpnu &1i� PK q�#]T�u �� style/edit_options.phpnu &1i� PK q�#]����� � �� style/edit_assignment.phpnu &1i� PK �
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка