芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/administrator.9/components/com_joomlaupdate/tmpl/joomlaupdate/update.php
* @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Layout\LayoutHelper; /** @var \Joomla\Component\Joomlaupdate\Administrator\View\Joomlaupdate\HtmlView $this */ /** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->document->getWebAssetManager(); $wa->useScript('core') ->useScript('com_joomlaupdate.default') ->useScript('bootstrap.popover'); $uploadLink = 'index.php?option=com_joomlaupdate&view=upload'; $displayData = [ 'textPrefix' => 'COM_JOOMLAUPDATE_UPDATE', 'title' => Text::sprintf('COM_JOOMLAUPDATE_UPDATE_EMPTYSTATE_TITLE', $this->escape($this->updateInfo['latest'])), 'content' => Text::sprintf($this->langKey, $this->updateSourceKey), 'formURL' => 'index.php?option=com_joomlaupdate&view=joomlaupdate', 'helpURL' => 'https://docs.joomla.org/Special:MyLanguage/Updating_from_an_existing_version', 'icon' => 'icon-loop joomlaupdate', 'createURL' => '#' ]; if (isset($this->updateInfo['object']) && isset($this->updateInfo['object']->get('infourl')->_data)) : $displayData['content'] .= '
' . HTMLHelper::_('link', $this->updateInfo['object']->get('infourl')->_data, Text::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_INFOURL'), [ 'target' => '_blank', 'rel' => 'noopener noreferrer', 'title' => isset($this->updateInfo['object']->get('infourl')->title) ? Text::sprintf('JBROWSERTARGET_NEW_TITLE', $this->updateInfo['object']->get('infourl')->title) : '' ] ); endif; // Confirm backup and check $displayData['content'] .= '
' . Text::_('COM_JOOMLAUPDATE_UPDATE_CONFIRM_BACKUP') . '
'; if (Factory::getApplication()->getIdentity()->authorise('core.admin', 'com_joomlaupdate')) : $displayData['formAppend'] = '
' . HTMLHelper::_('link', $uploadLink, Text::_('COM_JOOMLAUPDATE_EMPTYSTATE_APPEND')) . '
'; endif; echo '
'; echo LayoutHelper::render('joomla.content.emptystate', $displayData); echo '
';