[ 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_joomlaupdate 6 * 7 * @copyright (C) 2021 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\Layout\LayoutHelper; 17 18 /** @var \Joomla\Component\Joomlaupdate\Administrator\View\Joomlaupdate\HtmlView $this */ 19 20 /** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */ 21 $wa = $this->document->getWebAssetManager(); 22 $wa->useScript('core') 23 ->useScript('com_joomlaupdate.default') 24 ->useScript('bootstrap.popover'); 25 26 $uploadLink = 'index.php?option=com_joomlaupdate&view=upload'; 27 28 $displayData = [ 29 'textPrefix' => 'COM_JOOMLAUPDATE_REINSTALL', 30 'content' => Text::sprintf($this->langKey, $this->updateSourceKey), 31 'formURL' => 'index.php?option=com_joomlaupdate&view=joomlaupdate', 32 'helpURL' => 'https://docs.joomla.org/Special:MyLanguage/Updating_from_an_existing_version', 33 'icon' => 'icon-loop joomlaupdate', 34 'createURL' => '#' 35 ]; 36 37 if (isset($this->updateInfo['object']) && isset($this->updateInfo['object']->get('infourl')->_data)) : 38 $displayData['content'] .= '<br>' . HTMLHelper::_( 39 'link', 40 $this->updateInfo['object']->get('infourl')->_data, 41 Text::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_INFOURL'), 42 [ 43 'target' => '_blank', 44 'rel' => 'noopener noreferrer', 45 'title' => isset($this->updateInfo['object']->get('infourl')->title) ? Text::sprintf('JBROWSERTARGET_NEW_TITLE', $this->updateInfo['object']->get('infourl')->title) : '' 46 ] 47 ); 48 endif; 49 50 if (Factory::getApplication()->getIdentity()->authorise('core.admin', 'com_joomlaupdate')) : 51 $displayData['formAppend'] = '<div class="text-center"><a href="' . $uploadLink . '" class="btn btn-sm btn-outline-secondary">' . Text::_('COM_JOOMLAUPDATE_EMPTYSTATE_APPEND') . '</a></div>'; 52 endif; 53 54 echo '<div id="joomlaupdate-wrapper">'; 55 56 echo LayoutHelper::render('joomla.content.emptystate', $displayData); 57 58 echo '</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 |