[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_postinstall/tmpl/messages/ -> emptystate.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  com_postinstall
   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\HTML\HTMLHelper;
  14  use Joomla\CMS\Language\Text;
  15  use Joomla\CMS\Layout\LayoutHelper;
  16  
  17  $adminFormClass = count($this->extension_options) > 1 ? 'form-inline mb-3' : 'visually-hidden';
  18  ?>
  19  
  20  <form action="index.php" method="post" name="adminForm" class="<?php echo $adminFormClass; ?>" id="adminForm">
  21      <input type="hidden" name="option" value="com_postinstall">
  22      <input type="hidden" name="task" value="">
  23      <?php echo HTMLHelper::_('form.token'); ?>
  24      <label for="eid" class="me-sm-2"><?php echo Text::_('COM_POSTINSTALL_MESSAGES_FOR'); ?></label>
  25      <?php echo HTMLHelper::_('select.genericlist', $this->extension_options, 'eid', array('onchange' => 'this.form.submit()', 'class' => 'form-select'), 'value', 'text', $this->eid, 'eid'); ?>
  26  </form>
  27  
  28  <?php
  29  $displayData = [
  30      'textPrefix' => 'COM_POSTINSTALL',
  31      'formURL'    => 'index.php?option=com_postinstall',
  32      'icon'       => 'icon-bell',
  33      'createURL'  => 'index.php?option=com_postinstall&view=messages&task=message.reset&eid=' . $this->eid . '&' . $this->token . '=1',
  34  ];
  35  
  36  echo LayoutHelper::render('joomla.content.emptystate', $displayData);


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer