[ 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_languages 6 * 7 * @copyright (C) 2009 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\HTML\HTMLHelper; 14 use Joomla\CMS\Language\Text; 15 use Joomla\CMS\Router\Route; 16 17 /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ 18 $wa = $this->document->getWebAssetManager(); 19 $wa->useScript('keepalive') 20 ->useScript('form.validate') 21 ->useScript('com_languages.admin-language-edit-change-flag'); 22 23 ?> 24 25 <h2><?php echo $this->form->getValue('title', null, Text::_('COM_LANGUAGES_LANGUAGE_NEW_LANGUAGE_TITLE')); ?></h2> 26 27 <form action="<?php echo Route::_('index.php?option=com_languages&view=language&layout=edit&lang_id=' . (int) $this->item->lang_id); ?>" method="post" name="adminForm" id="language-form" aria-label="<?php echo Text::_('COM_LANGUAGES_LANGUAGE_FORM_' . ((int) $this->item->lang_id === 0 ? 'NEW' : 'EDIT'), true); ?>" class="main-card form-validate"> 28 29 <?php echo HTMLHelper::_('uitab.startTabSet', 'myTab', ['active' => 'details', 'recall' => true, 'breakpoint' => 768]); ?> 30 31 <?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'details', Text::_('JDETAILS')); ?> 32 <fieldset id="fieldset-details" class="options-form"> 33 <legend><?php echo Text::_('JDETAILS'); ?></legend> 34 <div> 35 <?php echo $this->form->renderField('title'); ?> 36 <?php echo $this->form->renderField('title_native'); ?> 37 <?php echo $this->form->renderField('lang_code'); ?> 38 <?php echo $this->form->renderField('sef'); ?> 39 <div class="control-group"> 40 <div class="control-label"> 41 <?php echo $this->form->getLabel('image'); ?> 42 </div> 43 <div class="controls"> 44 <?php echo $this->form->getInput('image'); ?> 45 <span id="flag"> 46 <?php echo HTMLHelper::_('image', 'mod_languages/' . $this->form->getValue('image') . '.gif', $this->form->getValue('image'), null, true); ?> 47 </span> 48 </div> 49 </div> 50 <?php if ($this->canDo->get('core.edit.state')) : ?> 51 <?php echo $this->form->renderField('published'); ?> 52 <?php endif; ?> 53 54 <?php echo $this->form->renderField('access'); ?> 55 <?php echo $this->form->renderField('description'); ?> 56 <?php echo $this->form->renderField('lang_id'); ?> 57 </div> 58 </fieldset> 59 <?php echo HTMLHelper::_('uitab.endTab'); ?> 60 61 <?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'metadata', Text::_('JGLOBAL_FIELDSET_OPTIONS')); ?> 62 <div class="row"> 63 <div class="col-md-6 mb-3"> 64 <fieldset id="fieldset-sitename" class="options-form"> 65 <legend><?php echo Text::_('COM_LANGUAGES_FIELDSET_SITE_NAME_LABEL'); ?></legend> 66 <div> 67 <?php echo $this->form->renderFieldset('site_name'); ?> 68 </div> 69 </fieldset> 70 </div> 71 <div class="col-md-6 mb-3"> 72 <fieldset id="fieldset-metadata" class="options-form"> 73 <legend><?php echo Text::_('JGLOBAL_FIELDSET_METADATA_OPTIONS'); ?></legend> 74 <div> 75 <?php echo $this->form->renderFieldset('metadata'); ?> 76 </div> 77 </fieldset> 78 </div> 79 </div> 80 <?php echo HTMLHelper::_('uitab.endTab'); ?> 81 82 <?php echo HTMLHelper::_('uitab.endTabSet'); ?> 83 84 <input type="hidden" name="task" value=""> 85 <?php echo HTMLHelper::_('form.token'); ?> 86 </form>
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 |