joomla-oauth-server/com_oauthserver/administrator/tmpl/clients/emptystate.php

27 lines
742 B
PHP

<?php
use Joomla\CMS\Layout\LayoutHelper;
\defined('_JEXEC') or die;
/**
* @var \Webmasterskaya\Component\OauthServer\Administrator\View\Clients\HtmlView $this
*/
$displayData = [
'textPrefix' => 'COM_OAUTHSERVER_ORDERS',
'icon' => 'icon-copy',
];
$user = $this->getCurrentUser();
if ($user->authorise('core.create', 'com_oauthserver')
|| count($user->getAuthorisedCategories('com_oauthserver', 'core.create')) > 0
|| $user->authorise('product.create', 'com_oauthserver')
|| count($user->getAuthorisedCategories('com_oauthserver', 'client.create')) > 0
) {
$displayData['createURL'] = 'index.php?option=com_oauthserver&task=client.add';
}
echo LayoutHelper::render('joomla.content.emptystate', $displayData);