mirror of
https://github.com/joomla/joomla-cms.git
synced 2024-06-30 17:13:41 +00:00
Codestyle
This commit is contained in:
parent
f49b66023e
commit
ca06d854c9
|
@ -79,87 +79,80 @@ abstract class QuickIconHelper
|
|||
|
||||
if ($params->get('show_global', '1'))
|
||||
{
|
||||
self::$buttons[$key][]
|
||||
= [
|
||||
'link' => Route::_('index.php?option=com_config'),
|
||||
'image' => 'fa fa-cog',
|
||||
'text' => Text::_('MOD_QUICKICON_GLOBAL_CONFIGURATION'),
|
||||
'access' => array('core.manage', 'com_config', 'core.admin', 'com_config'),
|
||||
'group' => 'MOD_QUICKICON_CONFIGURATION',
|
||||
];
|
||||
self::$buttons[$key][] = [
|
||||
'link' => Route::_('index.php?option=com_config'),
|
||||
'image' => 'fa fa-cog',
|
||||
'text' => Text::_('MOD_QUICKICON_GLOBAL_CONFIGURATION'),
|
||||
'access' => array('core.manage', 'com_config', 'core.admin', 'com_config'),
|
||||
'group' => 'MOD_QUICKICON_CONFIGURATION',
|
||||
];
|
||||
}
|
||||
|
||||
if ($params->get('show_users', '1'))
|
||||
{
|
||||
$amount = self::countUsers();
|
||||
|
||||
self::$buttons[$key][]
|
||||
= [
|
||||
'amount' => $amount,
|
||||
'link' => Route::_('index.php?option=com_users'),
|
||||
'linkadd' => Route::_('index.php?option=com_users&task=user.add'),
|
||||
'name' => Text::plural('MOD_QUICKICON_USER_MANAGER', $amount),
|
||||
'access' => array('core.manage', 'com_users', 'core.create', 'com_users'),
|
||||
'group' => 'MOD_QUICKICON_USERS',
|
||||
];
|
||||
self::$buttons[$key][] = [
|
||||
'amount' => $amount,
|
||||
'link' => Route::_('index.php?option=com_users'),
|
||||
'linkadd' => Route::_('index.php?option=com_users&task=user.add'),
|
||||
'name' => Text::plural('MOD_QUICKICON_USER_MANAGER', $amount),
|
||||
'access' => array('core.manage', 'com_users', 'core.create', 'com_users'),
|
||||
'group' => 'MOD_QUICKICON_USERS',
|
||||
];
|
||||
}
|
||||
|
||||
if ($params->get('show_menuItems', '1'))
|
||||
{
|
||||
$amount = self::countMenuItems();
|
||||
|
||||
self::$buttons[$key][]
|
||||
= [
|
||||
'amount' => $amount,
|
||||
'link' => Route::_('index.php?option=com_users'),
|
||||
'linkadd' => Route::_('index.php?option=com_menus&task=item.add'),
|
||||
'name' => Text::plural('MOD_QUICKICON_MENUITEMS_MANAGER', $amount),
|
||||
'access' => array('core.manage', 'com_menus', 'core.create', 'com_menus'),
|
||||
'group' => 'MOD_QUICKICON_STRUCTURE',
|
||||
];
|
||||
self::$buttons[$key][] = [
|
||||
'amount' => $amount,
|
||||
'link' => Route::_('index.php?option=com_users'),
|
||||
'linkadd' => Route::_('index.php?option=com_menus&task=item.add'),
|
||||
'name' => Text::plural('MOD_QUICKICON_MENUITEMS_MANAGER', $amount),
|
||||
'access' => array('core.manage', 'com_menus', 'core.create', 'com_menus'),
|
||||
'group' => 'MOD_QUICKICON_STRUCTURE',
|
||||
];
|
||||
}
|
||||
|
||||
if ($params->get('show_articles', '1'))
|
||||
{
|
||||
$amount = self::countArticles();
|
||||
|
||||
self::$buttons[$key][]
|
||||
= [
|
||||
'amount' => $amount,
|
||||
'link' => Route::_('index.php?option=com_content'),
|
||||
'linkadd' => Route::_('index.php?option=com_content&task=article.add'),
|
||||
'name' => Text::plural('MOD_QUICKICON_ARTICLE_MANAGER', $amount),
|
||||
'access' => array('core.manage', 'com_content', 'core.create', 'com_content'),
|
||||
'group' => 'MOD_QUICKICON_CONTENT',
|
||||
];
|
||||
self::$buttons[$key][] = [
|
||||
'amount' => $amount,
|
||||
'link' => Route::_('index.php?option=com_content'),
|
||||
'linkadd' => Route::_('index.php?option=com_content&task=article.add'),
|
||||
'name' => Text::plural('MOD_QUICKICON_ARTICLE_MANAGER', $amount),
|
||||
'access' => array('core.manage', 'com_content', 'core.create', 'com_content'),
|
||||
'group' => 'MOD_QUICKICON_CONTENT',
|
||||
];
|
||||
}
|
||||
|
||||
if ($params->get('show_categories', '1'))
|
||||
{
|
||||
$amount = self::countArticleCategories();
|
||||
|
||||
self::$buttons[$key][]
|
||||
= [
|
||||
'amount' => $amount,
|
||||
'link' => Route::_('index.php?option=com_categories'),
|
||||
'linkadd' => Route::_('index.php?option=com_categories&task=category.add'),
|
||||
'name' => Text::plural('MOD_QUICKICON_CATEGORY_MANAGER', $amount),
|
||||
'access' => array('core.manage', 'com_categories', 'core.create', 'com_categories'),
|
||||
'group' => 'MOD_QUICKICON_CONTENT',
|
||||
|
||||
];
|
||||
self::$buttons[$key][] = [
|
||||
'amount' => $amount,
|
||||
'link' => Route::_('index.php?option=com_categories'),
|
||||
'linkadd' => Route::_('index.php?option=com_categories&task=category.add'),
|
||||
'name' => Text::plural('MOD_QUICKICON_CATEGORY_MANAGER', $amount),
|
||||
'access' => array('core.manage', 'com_categories', 'core.create', 'com_categories'),
|
||||
'group' => 'MOD_QUICKICON_CONTENT',
|
||||
];
|
||||
}
|
||||
|
||||
if ($params->get('show_media', '1'))
|
||||
{
|
||||
self::$buttons[$key][]
|
||||
= [
|
||||
'image' => 'fa fa-image',
|
||||
'link' => Route::_('index.php?option=com_media'),
|
||||
'text' => Text::_('MOD_QUICKICON_MEDIA_MANAGER'),
|
||||
'access' => array('core.manage', 'com_media'),
|
||||
'group' => 'MOD_QUICKICON_CONTENT',
|
||||
];
|
||||
self::$buttons[$key][] = [
|
||||
'image' => 'fa fa-image',
|
||||
'link' => Route::_('index.php?option=com_media'),
|
||||
'text' => Text::_('MOD_QUICKICON_MEDIA_MANAGER'),
|
||||
'access' => array('core.manage', 'com_media'),
|
||||
'group' => 'MOD_QUICKICON_CONTENT',
|
||||
];
|
||||
}
|
||||
|
||||
if ($params->get('show_modules', '1'))
|
||||
|
@ -181,27 +174,24 @@ abstract class QuickIconHelper
|
|||
{
|
||||
$amount = self::countPlugins();
|
||||
|
||||
self::$buttons[$key][]
|
||||
= [
|
||||
'amount' => $amount,
|
||||
'link' => Route::_('index.php?option=com_plugins'),
|
||||
'text' => Text::plural('MOD_QUICKICON_PLUGIN_MANAGER', $amount),
|
||||
'access' => array('core.manage', 'com_plugins'),
|
||||
'group' => 'MOD_QUICKICON_MAINTENANCE'
|
||||
|
||||
];
|
||||
self::$buttons[$key][] = [
|
||||
'amount' => $amount,
|
||||
'link' => Route::_('index.php?option=com_plugins'),
|
||||
'text' => Text::plural('MOD_QUICKICON_PLUGIN_MANAGER', $amount),
|
||||
'access' => array('core.manage', 'com_plugins'),
|
||||
'group' => 'MOD_QUICKICON_MAINTENANCE'
|
||||
];
|
||||
}
|
||||
|
||||
if ($params->get('show_checkin', '1'))
|
||||
{
|
||||
self::$buttons[$key][]
|
||||
= [
|
||||
'amount' => self::countCheckin(),
|
||||
'link' => Route::_('index.php?option=com_checkin'),
|
||||
'text' => Text::_('MOD_QUICKICON_CHECKINS'),
|
||||
'access' => array('core.admin', 'com_checkin'),
|
||||
'group' => 'MOD_QUICKICON_CONTENT'
|
||||
];
|
||||
self::$buttons[$key][] = [
|
||||
'amount' => self::countCheckin(),
|
||||
'link' => Route::_('index.php?option=com_checkin'),
|
||||
'text' => Text::_('MOD_QUICKICON_CHECKINS'),
|
||||
'access' => array('core.admin', 'com_checkin'),
|
||||
'group' => 'MOD_QUICKICON_CONTENT'
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user