[ 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('multiselect') 21 ->useScript('com_installer.changelog'); 22 23 $listOrder = $this->escape($this->state->get('list.ordering')); 24 $listDirn = $this->escape($this->state->get('list.direction')); 25 ?> 26 <div id="installer-update" class="clearfix"> 27 <form action="<?php echo Route::_('index.php?option=com_installer&view=update'); ?>" method="post" name="adminForm" id="adminForm"> 28 <div class="row"> 29 <div class="col-md-12"> 30 <div id="j-main-container" class="j-main-container"> 31 <?php if ($this->showMessage) : ?> 32 <?php echo $this->loadTemplate('message'); ?> 33 <?php endif; ?> 34 <?php echo LayoutHelper::render('joomla.searchtools.default', array('view' => $this)); ?> 35 <?php if (empty($this->items)) : ?> 36 <div class="alert alert-info"> 37 <span class="icon-info-circle" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('INFO'); ?></span> 38 <?php echo Text::_('COM_INSTALLER_MSG_UPDATE_NOUPDATES'); ?> 39 </div> 40 <?php else : ?> 41 <table class="table"> 42 <caption class="visually-hidden"> 43 <?php echo Text::_('COM_INSTALLER_UPDATE_TABLE_CAPTION'); ?>, 44 <span id="orderedBy"><?php echo Text::_('JGLOBAL_SORTED_BY'); ?> </span>, 45 <span id="filteredBy"><?php echo Text::_('JGLOBAL_FILTERED_BY'); ?></span> 46 </caption> 47 <thead> 48 <tr> 49 <td class="w-1 text-center"> 50 <?php echo HTMLHelper::_('grid.checkall'); ?> 51 </td> 52 <th scope="col"> 53 <?php echo HTMLHelper::_('searchtools.sort', 'COM_INSTALLER_HEADING_NAME', 'u.name', $listDirn, $listOrder); ?> 54 </th> 55 <th scope="col" class="d-none d-md-table-cell"> 56 <?php echo HTMLHelper::_('searchtools.sort', 'COM_INSTALLER_HEADING_LOCATION', 'client_translated', $listDirn, $listOrder); ?> 57 </th> 58 <th scope="col" class="d-none d-md-table-cell"> 59 <?php echo HTMLHelper::_('searchtools.sort', 'COM_INSTALLER_HEADING_TYPE', 'type_translated', $listDirn, $listOrder); ?> 60 </th> 61 <th scope="col"> 62 <?php echo Text::_('COM_INSTALLER_CURRENT_VERSION'); ?> 63 </th> 64 <th scope="col"> 65 <?php echo Text::_('COM_INSTALLER_NEW_VERSION'); ?> 66 </th> 67 <th scope="col" class="d-none d-md-table-cell"> 68 <?php echo Text::_('COM_INSTALLER_CHANGELOG'); ?> 69 </th> 70 <th class="d-none d-md-table-cell"> 71 <?php echo HTMLHelper::_('searchtools.sort', 'COM_INSTALLER_HEADING_FOLDER', 'folder_translated', $listDirn, $listOrder); ?> 72 </th> 73 <th scope="col" class="d-none d-md-table-cell"> 74 <?php echo Text::_('COM_INSTALLER_HEADING_INSTALLTYPE'); ?> 75 </th> 76 </tr> 77 </thead> 78 <tbody> 79 <?php 80 foreach ($this->items as $i => $item) : ?> 81 <tr class="row<?php echo $i % 2; ?>"> 82 <td class="text-center"> 83 <?php if ($item->isMissingDownloadKey) : ?> 84 <span class="icon-ban"></span> 85 <?php else : ?> 86 <?php echo HTMLHelper::_('grid.id', $i, $item->update_id, false, 'cid', 'cb', $item->name); ?> 87 <?php endif; ?> 88 </td> 89 <th scope="row"> 90 <span tabindex="0"><?php echo $this->escape($item->name); ?></span> 91 <div role="tooltip" id="tip<?php echo $i; ?>"> 92 <?php echo $item->description; ?> 93 </div> 94 <div class="small break-word"> 95 <?php echo $item->detailsurl; ?> 96 <?php if (!empty($item->infourl)) : ?> 97 <br> 98 <a href="<?php echo $item->infourl; ?>" target="_blank" rel="noopener noreferrer"><?php echo $this->escape(trim($item->infourl)); ?></a> 99 <?php endif; ?> 100 </div> 101 <?php if ($item->isMissingDownloadKey) : ?> 102 <?php $url = 'index.php?option=com_installer&task=updatesite.edit&update_site_id=' . (int) $item->update_site_id; ?> 103 <a class="btn btn-danger btn-sm text-decoration-none" href="<?php echo Route::_($url); ?>"><?php echo Text::_('COM_INSTALLER_DOWNLOADKEY_MISSING_LABEL'); ?></a> 104 <?php endif; ?> 105 </th> 106 <td class="d-none d-md-table-cell"> 107 <?php echo $item->client_translated; ?> 108 </td> 109 <td class="d-none d-md-table-cell"> 110 <?php echo $item->type_translated; ?> 111 </td> 112 <td> 113 <span class="badge bg-warning text-dark"><?php echo $item->current_version; ?></span> 114 </td> 115 <td> 116 <span class="badge bg-success"><?php echo $item->version; ?></span> 117 </td> 118 <td class="d-none d-md-table-cell text-center"> 119 <?php if (!empty($item->changelogurl)) : ?> 120 <a href="#changelogModal<?php echo $item->extension_id; ?>" class="btn btn-info btn-sm changelogModal" data-js-extensionid="<?php echo $item->extension_id; ?>" data-js-view="update" data-bs-toggle="modal"> 121 <?php echo Text::_('COM_INSTALLER_CHANGELOG'); ?> 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 <span> 135 <?php echo Text::_('COM_INSTALLER_TYPE_NONAPPLICABLE')?> 136 </span> 137 138 <?php endif; ?> 139 </td> 140 <td class="d-none d-md-table-cell"> 141 <?php echo $item->folder_translated; ?> 142 </td> 143 <td class="d-none d-md-table-cell"> 144 <?php echo $item->install_type; ?> 145 </td> 146 </tr> 147 <?php endforeach; ?> 148 </tbody> 149 </table> 150 151 <?php // load the pagination. ?> 152 <?php echo $this->pagination->getListFooter(); ?> 153 154 <?php endif; ?> 155 <input type="hidden" name="task" value=""> 156 <input type="hidden" name="boxchecked" value="0"> 157 <?php echo HTMLHelper::_('form.token'); ?> 158 </div> 159 </div> 160 </div> 161 </form> 162 </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 |