This commit is contained in:
Jean-Christian Paul Denis 2021-09-09 00:24:34 +02:00
parent 2ce7f903f2
commit 283fdf01f9
3 changed files with 9 additions and 10 deletions

View File

@ -37,14 +37,14 @@ class cinecturlink2AdminBehaviors
{ {
public static function adminDashboardFavorites($core, $favs) public static function adminDashboardFavorites($core, $favs)
{ {
$favs->register('cinecturlink2', [ $favs->register('cinecturlink2', [
'title' => __('My cinecturlink'), 'title' => __('My cinecturlink'),
'url' => $core->adminurl->get('admin.plugin.cinecturlink2').'#links', 'url' => $core->adminurl->get('admin.plugin.cinecturlink2').'#links',
'small-icon' => dcPage::getPF('cinecturlink2/icon.png'), 'small-icon' => dcPage::getPF('cinecturlink2/icon.png'),
'large-icon' => dcPage::getPF('cinecturlink2/icon-big.png'), 'large-icon' => dcPage::getPF('cinecturlink2/icon-big.png'),
'permissions' => $core->auth->check('contentadmin', $core->blog->id), 'permissions' => $core->auth->check('contentadmin', $core->blog->id),
'active_cb' => ['cinecturlink2AdminBehaviors', 'adminDashboardFavoritesActive'] 'active_cb' => ['cinecturlink2AdminBehaviors', 'adminDashboardFavoritesActive']
]); ]);
} }
public static function adminDashboardFavoritesActive($request, $params) public static function adminDashboardFavoritesActive($request, $params)

View File

@ -339,4 +339,3 @@ $GLOBALS['__l10n']['Delete selection'] = 'Effacer la selection';
#index.php:773 #index.php:773
$GLOBALS['__l10n']['No link uses this category.'] = 'Aucun lien n\'utilise cette catégorie.'; $GLOBALS['__l10n']['No link uses this category.'] = 'Aucun lien n\'utilise cette catégorie.';