[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_finder/tmpl/filters/ -> 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\Factory;
  14  use Joomla\CMS\Language\Text;
  15  use Joomla\CMS\Layout\LayoutHelper;
  16  
  17  $displayData = [
  18      'textPrefix' => 'COM_FINDER',
  19      'formURL'    => 'index.php?option=com_finder&view=filters',
  20      'helpURL'    => 'https://docs.joomla.org/Special:MyLanguage/Smart_Search_quickstart_guide',
  21      'icon'       => 'icon-search-plus finder',
  22      'btnadd'     => Text::_('COM_FINDER_FILTERS_EMPTYSTATE_BUTTON_ADD'),
  23      'content'    => Text::_('COM_FINDER_FILTERS_EMPTYSTATE_CONTENT'),
  24      'title'      => Text::_('COM_FINDER_FILTERS_TOOLBAR_TITLE'),
  25  ];
  26  
  27  if (Factory::getApplication()->getIdentity()->authorise('core.create', 'com_finder')) {
  28      $displayData['createURL']  = "index.php?option=com_finder&task=filter.add";
  29  }
  30  
  31  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