[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_content/tmpl/featured/ -> emptystate.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  com_content
   6   *
   7   * @copyright   (C) 2008 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\Layout\LayoutHelper;
  15  
  16  $displayData = [
  17      'textPrefix' => 'COM_CONTENT',
  18      'formURL'    => 'index.php?option=com_content&view=featured',
  19      'helpURL'    => 'https://docs.joomla.org/Special:MyLanguage/Adding_a_new_article',
  20  ];
  21  
  22  $user = Factory::getApplication()->getIdentity();
  23  
  24  if ($user->authorise('core.create', 'com_content') || count($user->getAuthorisedCategories('com_content', 'core.create')) > 0) {
  25      $displayData['createURL'] = 'index.php?option=com_content&task=article.add';
  26  }
  27  
  28  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