[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Site 5 * @subpackage Layout 6 * 7 * @copyright (C) 2013 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\Session\Session; 17 18 extract($displayData, EXTR_OVERWRITE); 19 20 /** 21 * Layout variables 22 * ----------------- 23 * @var string $id 24 * @var string $itemId 25 * @var string $typeId 26 * @var string $typeAlias 27 * @var string $title 28 */ 29 30 /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ 31 $wa = Factory::getDocument()->getWebAssetManager(); 32 $wa->getRegistry()->addExtensionRegistryFile('com_contenthistory'); 33 34 $wa->useScript('core') 35 ->useScript('webcomponent.toolbar-button') 36 ->useScript('com_contenthistory.admin-history-versions'); 37 38 echo HTMLHelper::_( 39 'bootstrap.renderModal', 40 'versionsModal', 41 array( 42 'url' => 'index.php?' . http_build_query( 43 [ 44 'option' => 'com_contenthistory', 45 'view' => 'history', 46 'layout' => 'modal', 47 'tmpl' => 'component', 48 'item_id' => $itemId, 49 Session::getFormToken() => 1 50 ] 51 ), 52 'title' => $title, 53 'height' => '100%', 54 'width' => '100%', 55 'modalWidth' => '80', 56 'bodyHeight' => '60', 57 'footer' => '<button type="button" class="btn btn-secondary" data-bs-dismiss="modal" aria-hidden="true">' 58 . Text::_('JLIB_HTML_BEHAVIOR_CLOSE') . '</button>' 59 ) 60 ); 61 ?> 62 <joomla-toolbar-button id="toolbar-versions"> 63 <button 64 class="btn btn-primary" 65 type="button" 66 data-bs-target="#versionsModal" 67 data-bs-toggle="modal"> 68 <span class="icon-code-branch" aria-hidden="true"></span> 69 <?php echo $title; ?> 70 </button> 71 </joomla-toolbar-button>
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 |