[ 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) 2008 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\Layout\LayoutHelper; 16 use Joomla\CMS\Router\Route; 17 18 /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ 19 $wa = $this->document->getWebAssetManager(); 20 $wa->useScript('com_installer.changelog') 21 ->useScript('table.columns') 22 ->useScript('multiselect'); 23 24 $listOrder = $this->escape($this->state->get('list.ordering')); 25 $listDirn = $this->escape($this->state->get('list.direction')); 26 ?> 27 <div id="installer-manage" class="clearfix"> 28 <form action="<?php echo Route::_('index.php?option=com_installer&view=manage'); ?>" method="post" name="adminForm" id="adminForm"> 29 <div class="row"> 30 <div class="col-md-12"> 31 <div id="j-main-container" class="j-main-container"> 32 <?php if ($this->showMessage) : ?> 33 <?php echo $this->loadTemplate('message'); ?> 34 <?php endif; ?> 35 <?php echo LayoutHelper::render('joomla.searchtools.default', array('view' => $this)); ?> 36 <?php if (empty($this->items)) : ?> 37 <div class="alert alert-info"> 38 <span class="icon-info-circle" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('INFO'); ?></span> 39 <?php echo Text::_('JGLOBAL_NO_MATCHING_RESULTS'); ?> 40 </div> 41 <?php else : ?> 42 <table class="table" id="manageList"> 43 <caption class="visually-hidden"> 44 <?php echo Text::_('COM_INSTALLER_MANAGE_TABLE_CAPTION'); ?>, 45 <span id="orderedBy"><?php echo Text::_('JGLOBAL_SORTED_BY'); ?> </span>, 46 <span id="filteredBy"><?php echo Text::_('JGLOBAL_FILTERED_BY'); ?></span> 47 </caption> 48 <thead> 49 <tr> 50 <td class="w-1 text-center"> 51 <?php echo HTMLHelper::_('grid.checkall'); ?> 52 </td> 53 <th scope="col" class="w-1 text-center"> 54 <?php echo HTMLHelper::_('searchtools.sort', 'JSTATUS', 'status', $listDirn, $listOrder); ?> 55 </th> 56 <th scope="col"> 57 <?php echo HTMLHelper::_('searchtools.sort', 'COM_INSTALLER_HEADING_NAME', 'name', $listDirn, $listOrder); ?> 58 </th> 59 <th scope="col" class="w-10 d-none d-md-table-cell"> 60 <?php echo HTMLHelper::_('searchtools.sort', 'COM_INSTALLER_HEADING_LOCATION', 'client_translated', $listDirn, $listOrder); ?> 61 </th> 62 <th scope="col" class="w-10"> 63 <?php echo HTMLHelper::_('searchtools.sort', 'COM_INSTALLER_HEADING_TYPE', 'type_translated', $listDirn, $listOrder); ?> 64 </th> 65 <th scope="col" class="w-10 d-none d-md-table-cell"> 66 <?php echo Text::_('JVERSION'); ?> 67 </th> 68 <th scope="col" class="w-10 d-none d-md-table-cell"> 69 <?php echo HTMLHelper::_('searchtools.sort', 'JDATE', 'creationDate', $listDirn, $listOrder); ?> 70 </th> 71 <th scope="col" class="w-10 d-none d-md-table-cell"> 72 <?php echo Text::_('JAUTHOR'); ?> 73 </th> 74 <th scope="col" class="w-5 d-none d-md-table-cell"> 75 <?php echo HTMLHelper::_('searchtools.sort', 'COM_INSTALLER_HEADING_FOLDER', 'folder_translated', $listDirn, $listOrder); ?> 76 </th> 77 <th scope="col" class="w-1 d-none d-md-table-cell"> 78 <?php echo Text::_('COM_INSTALLER_HEADING_LOCKED'); ?> 79 </th> 80 <th scope="col" class="d-none d-md-table-cell"> 81 <?php echo HTMLHelper::_('searchtools.sort', 'COM_INSTALLER_HEADING_PACKAGE_ID', 'package_id', $listDirn, $listOrder); ?> 82 </th> 83 <th scope="col" class="w-1 d-none d-md-table-cell"> 84 <?php echo HTMLHelper::_('searchtools.sort', 'COM_INSTALLER_HEADING_ID', 'extension_id', $listDirn, $listOrder); ?> 85 </th> 86 </tr> 87 </thead> 88 <tbody> 89 <?php $createdDateFormat = Text::_('DATE_FORMAT_LC4'); ?> 90 <?php foreach ($this->items as $i => $item) : ?> 91 <tr class="row<?php echo $i % 2; 92 if ($item->status == 2) { 93 echo ' protected'; 94 } ?>"> 95 <td class="text-center"> 96 <?php echo HTMLHelper::_('grid.id', $i, $item->extension_id, false, 'cid', 'cb', $item->name); ?> 97 </td> 98 <td class="text-center"> 99 <?php if (!$item->element) : ?> 100 <strong>X</strong> 101 <?php else : ?> 102 <?php echo HTMLHelper::_('manage.state', $item->status, $i, $item->status < 2, 'cb'); ?> 103 <?php endif; ?> 104 </td> 105 <th scope="row"> 106 <span tabindex="0"><?php echo $item->name; ?></span> 107 <div role="tooltip" id="tip<?php echo $i; ?>"> 108 <?php echo $item->description; ?> 109 </div> 110 </th> 111 <td class="d-none d-md-table-cell"> 112 <?php echo $item->client_translated; ?> 113 </td> 114 <td> 115 <?php echo $item->type_translated; ?> 116 </td> 117 <td class="d-none d-md-table-cell"> 118 <?php if (!empty($item->version)) : ?> 119 <?php if (!empty($item->changelogurl)) : ?> 120 <a href="#changelogModal<?php echo $item->extension_id; ?>" class="changelogModal" data-js-extensionid="<?php echo $item->extension_id; ?>" data-js-view="manage" data-bs-toggle="modal"> 121 <?php echo $item->version?> 122 </a> 123 <?php 124 echo HTMLHelper::_( 125 'bootstrap.renderModal', 126 'changelogModal' . $item->extension_id, 127 array( 128 'title' => Text::sprintf('COM_INSTALLER_CHANGELOG_TITLE', $item->name, $item->version), 129 ), 130 '' 131 ); 132 ?> 133 <?php else : ?> 134 <?php echo $item->version; ?> 135 <?php endif; ?> 136 <?php else : 137 echo ' '; 138 endif; ?> 139 </td> 140 <td class="d-none d-md-table-cell"> 141 <?php if (!empty($item->creationDate)) : ?> 142 <?php try { 143 echo HTMLHelper::date($item->creationDate, $createdDateFormat); 144 } catch (Exception $e) { 145 echo $item->creationDate; 146 }?> 147 <?php else : ?> 148 <?php echo ' '; ?> 149 <?php endif; ?> 150 </td> 151 <td class="d-none d-md-table-cell"> 152 <?php echo !empty($item->author) ? $item->author : ' '; ?> 153 </td> 154 <td class="d-none d-md-table-cell"> 155 <?php echo $item->folder_translated; ?> 156 </td> 157 <td class="d-none d-md-table-cell"> 158 <?php echo $item->locked ? Text::_('JYES') : Text::_('JNO'); ?> 159 </td> 160 <td class="d-none d-md-table-cell"> 161 <?php echo $item->package_id ?: ' '; ?> 162 </td> 163 <td class="d-none d-md-table-cell"> 164 <?php echo $item->extension_id; ?> 165 </td> 166 </tr> 167 <?php endforeach; ?> 168 </tbody> 169 </table> 170 171 <?php // load the pagination. ?> 172 <?php echo $this->pagination->getListFooter(); ?> 173 174 <?php endif; ?> 175 <input type="hidden" name="task" value=""> 176 <input type="hidden" name="boxchecked" value="0"> 177 <?php echo HTMLHelper::_('form.token'); ?> 178 </div> 179 </div> 180 </div> 181 </form> 182 </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 |