[ 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_postinstall 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\Router\Route; 17 18 $adminFormClass = count($this->extension_options) > 1 ? 'form-inline mb-3' : 'visually-hidden'; 19 ?> 20 21 <form action="index.php" method="post" name="adminForm" class="<?php echo $adminFormClass; ?>" id="adminForm"> 22 <input type="hidden" name="option" value="com_postinstall"> 23 <input type="hidden" name="task" value=""> 24 <?php echo HTMLHelper::_('form.token'); ?> 25 <label for="eid" class="me-sm-2"><?php echo Text::_('COM_POSTINSTALL_MESSAGES_FOR'); ?></label> 26 <?php echo HTMLHelper::_('select.genericlist', $this->extension_options, 'eid', array('onchange' => 'this.form.submit()', 'class' => 'form-select'), 'value', 'text', $this->eid, 'eid'); ?> 27 </form> 28 29 <?php foreach ($this->items as $item) : ?> 30 <?php if ($item->enabled === 1) : ?> 31 <div class="card card-outline-secondary mb-3"> 32 <div class="card-body"> 33 <h3><?php echo Text::_($item->title_key); ?></h3> 34 <p class="small"> 35 <?php echo Text::sprintf('COM_POSTINSTALL_LBL_SINCEVERSION', $item->version_introduced); ?> 36 </p> 37 <div> 38 <?php echo Text::_($item->description_key); ?> 39 <?php if ($item->type !== 'message') : ?> 40 <a href="<?php echo Route::_('index.php?option=com_postinstall&view=messages&task=message.action&id=' . $item->postinstall_message_id . '&' . $this->token . '=1'); ?>" class="btn btn-primary"> 41 <?php echo Text::_($item->action_key); ?> 42 </a> 43 <?php endif; ?> 44 <?php if (Factory::getApplication()->getIdentity()->authorise('core.edit.state', 'com_postinstall')) : ?> 45 <a href="<?php echo Route::_('index.php?option=com_postinstall&view=messages&task=message.unpublish&id=' . $item->postinstall_message_id . '&' . $this->token . '=1'); ?>" class="btn btn-danger btn-sm"> 46 <?php echo Text::_('COM_POSTINSTALL_BTN_HIDE'); ?> 47 </a> 48 <a href="<?php echo Route::_('index.php?option=com_postinstall&view=messages&task=message.archive&id=' . $item->postinstall_message_id . '&' . $this->token . '=1'); ?>" class="btn btn-danger btn-sm"> 49 <?php echo Text::_('COM_POSTINSTALL_BTN_ARCHIVE'); ?> 50 </a> 51 <?php endif; ?> 52 </div> 53 </div> 54 </div> 55 <?php elseif ($item->enabled === 2) : ?> 56 <div class="card card-outline-secondary mb-3"> 57 <div class="card-body"> 58 <h3><?php echo Text::_($item->title_key); ?></h3> 59 <div> 60 <?php if (Factory::getApplication()->getIdentity()->authorise('core.edit.state', 'com_postinstall')) : ?> 61 <a href="<?php echo Route::_('index.php?option=com_postinstall&view=messages&task=message.unpublish&id=' . $item->postinstall_message_id . '&' . $this->token . '=1'); ?>" class="btn btn-danger btn-sm"> 62 <?php echo Text::_('COM_POSTINSTALL_BTN_HIDE'); ?> 63 </a> 64 <a href="<?php echo Route::_('index.php?option=com_postinstall&view=messages&task=message.republish&id=' . $item->postinstall_message_id . '&' . $this->token . '=1'); ?>" class="btn btn-success btn-sm"> 65 <?php echo Text::_('COM_POSTINSTALL_BTN_REPUBLISH'); ?> 66 </a> 67 <?php endif; ?> 68 </div> 69 </div> 70 </div> 71 <?php endif; ?> 72 <?php endforeach; ?>
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 |