[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Administrator 5 * @subpackage com_templates 6 * 7 * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> 8 * @license GNU General Public License version 2 or later; see LICENSE.txt 9 */ 10 11 defined('_JEXEC') or die; 12 13 use Joomla\CMS\Factory; 14 use Joomla\CMS\HTML\HTMLHelper; 15 use Joomla\CMS\Language\Text; 16 use Joomla\CMS\Router\Route; 17 18 $input = Factory::getApplication()->input; 19 ?> 20 <div id="#template-manager-folder" class="container-fluid"> 21 <div class="mt-2 p-2"> 22 <div class="row"> 23 <div class="col-md-4"> 24 <div class="tree-holder"> 25 <ul class="directory-tree treeselect root"> 26 <li class="folder-select"> 27 <a class="folder-url" data-id="" href="" data-base="template"> 28 <span class="icon-folder icon-fw" aria-hidden="true"></span> 29 <?php echo ($this->template->client_id === 0 ? '/' : '/administrator/') . 'templates/' . $this->template->element; ?> 30 </a> 31 <?php echo $this->loadTemplate('folders'); ?> 32 </li> 33 </ul> 34 <?php if (count($this->mediaFiles)) : ?> 35 <ul class="directory-tree treeselect"> 36 <li class="folder-select"> 37 <a class="folder-url" data-id="" href="" data-base="media"> 38 <span class="icon-folder icon-fw" aria-hidden="true"></span> 39 <?php echo '/media/templates/' . ($this->template->client_id === 0 ? 'site/' : 'administrator/') . $this->template->element; ?> 40 </a> 41 <?php echo $this->loadTemplate('media_folders'); ?> 42 </li> 43 </ul> 44 <?php endif; ?> 45 </div> 46 </div> 47 <div class="col-md-8"> 48 <form method="post" action="<?php echo Route::_('index.php?option=com_templates&task=template.createFolder&id=' . $input->getInt('id') . '&file=' . $this->file); ?>"> 49 <div class="form-group"> 50 <label for="folder_name"><?php echo Text::_('COM_TEMPLATES_FOLDER_NAME'); ?></label> 51 <input type="text" name="name" id="folder_name" class="form-control" required> 52 <input type="hidden" class="address" name="address"> 53 <input type="hidden" name="isMedia" value="0"> 54 <?php echo HTMLHelper::_('form.token'); ?> 55 </div> 56 <button type="submit" class="btn btn-primary"><?php echo Text::_('COM_TEMPLATES_BUTTON_CREATE'); ?></button> 57 </form> 58 </div> 59 </div> 60 </div> 61 </div>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |