[ 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_installer 6 * 7 * @copyright (C) 2006 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 // Load JavaScript message titles 19 Text::script('ERROR'); 20 Text::script('WARNING'); 21 Text::script('NOTICE'); 22 Text::script('MESSAGE'); 23 24 Text::script('COM_INSTALLER_MSG_INSTALL_ENTER_A_URL'); 25 26 /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ 27 $wa = $this->document->getWebAssetManager(); 28 $wa->useScript('core') 29 ->usePreset('com_installer.installer') 30 ->useScript('webcomponent.core-loader'); 31 32 $app = Factory::getApplication(); 33 $tabs = $app->triggerEvent('onInstallerAddInstallationTab', []); 34 35 ?> 36 <div id="installer-install" class="clearfix"> 37 38 <form enctype="multipart/form-data" action="<?php echo Route::_('index.php?option=com_installer&view=install'); ?>" method="post" name="adminForm" id="adminForm"> 39 <?php // Render messages set by extension install scripts here ?> 40 <?php if ($this->showMessage) : ?> 41 <?php echo $this->loadTemplate('message'); ?> 42 <?php endif; ?> 43 44 <div class="row"> 45 <div class="col-md-12"> 46 <div id="j-main-container" class="j-main-container main-card"> 47 <?php if (!$tabs) : ?> 48 <div class="alert alert-warning"> 49 <span class="icon-exclamation-circle" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('WARNING'); ?></span> 50 <?php echo Text::_('COM_INSTALLER_NO_INSTALLATION_PLUGINS_FOUND'); ?> 51 </div> 52 <?php endif; ?> 53 54 <?php if ($tabs) : ?> 55 <?php echo HTMLHelper::_('uitab.startTabSet', 'myTab', ['active' => $tabs[0]['name'] ?? '', 'recall' => true, 'breakpoint' => 768]); ?> 56 <?php // Show installation tabs ?> 57 <?php foreach ($tabs as $tab) : ?> 58 <?php echo HTMLHelper::_('uitab.addTab', 'myTab', $tab['name'], $tab['label']); ?> 59 <fieldset class="uploadform option-fieldset options-form"> 60 <?php echo $tab['content']; ?> 61 </fieldset> 62 <?php echo HTMLHelper::_('uitab.endTab'); ?> 63 <?php endforeach; ?> 64 65 <?php echo HTMLHelper::_('uitab.endTabSet'); ?> 66 <?php endif; ?> 67 68 <input type="hidden" name="installtype" value=""> 69 <input type="hidden" name="task" value="install.install"> 70 <?php echo HTMLHelper::_('form.token'); ?> 71 </div> 72 </div> 73 </div> 74 </form> 75 </div> 76 <div id="loading"></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 |