[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_finder/tmpl/index/ -> emptystate.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  com_finder
   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  use Joomla\CMS\Router\Route;
  17  
  18  $displayData = [
  19      'textPrefix' => 'COM_FINDER',
  20      'formURL'    => 'index.php?option=com_finder&view=index',
  21      'helpURL'    => 'https://docs.joomla.org/Special:MyLanguage/Smart_Search_quickstart_guide',
  22      'icon'       => 'icon-search-plus finder',
  23      'content'    => Text::_('COM_FINDER_INDEX_NO_DATA') . '<br>' . Text::_('COM_FINDER_INDEX_TIP'),
  24      'title'      => Text::_('COM_FINDER_HEADING_INDEXER'),
  25      'createURL'  => "javascript:document.getElementsByClassName('button-archive')[0].click();",
  26  ];
  27  
  28  echo LayoutHelper::render('joomla.content.emptystate', $displayData);
  29  
  30  if ($this->finderPluginId) : ?>
  31      <?php $link = Route::_('index.php?option=com_plugins&client_id=0&task=plugin.edit&extension_id=' . $this->finderPluginId . '&tmpl=component&layout=modal'); ?>
  32      <?php echo HTMLHelper::_(
  33          'bootstrap.renderModal',
  34          'plugin' . $this->finderPluginId . 'Modal',
  35          array(
  36              'url'         => $link,
  37              'title'       => Text::_('COM_FINDER_EDIT_PLUGIN_SETTINGS'),
  38              'height'      => '400px',
  39              'width'       => '800px',
  40              'bodyHeight'  => '70',
  41              'modalWidth'  => '80',
  42              'closeButton' => false,
  43              'backdrop'    => 'static',
  44              'keyboard'    => false,
  45              'footer'      => '<button type="button" class="btn btn-secondary" data-bs-dismiss="modal"'
  46                  . ' onclick="Joomla.iframeButtonClick({iframeSelector: \'#plugin' . $this->finderPluginId . 'Modal\', buttonSelector: \'#closeBtn\'})">'
  47                  . Text::_('JLIB_HTML_BEHAVIOR_CLOSE') . '</button>'
  48                  . '<button type="button" class="btn btn-primary" data-bs-dismiss="modal" onclick="Joomla.iframeButtonClick({iframeSelector: \'#plugin' . $this->finderPluginId . 'Modal\', buttonSelector: \'#saveBtn\'})">'
  49                  . Text::_("JSAVE") . '</button>'
  50                  . '<button type="button" class="btn btn-success" onclick="Joomla.iframeButtonClick({iframeSelector: \'#plugin' . $this->finderPluginId . 'Modal\', buttonSelector: \'#applyBtn\'}); return false;">'
  51                  . Text::_("JAPPLY") . '</button>'
  52          )
  53      ); ?>
  54  <?php endif;


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