This commit is contained in:
Jean-Christian 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)
{
$favs->register('cinecturlink2', [
'title' => __('My cinecturlink'),
'url' => $core->adminurl->get('admin.plugin.cinecturlink2').'#links',
'small-icon' => dcPage::getPF('cinecturlink2/icon.png'),
'large-icon' => dcPage::getPF('cinecturlink2/icon-big.png'),
'permissions' => $core->auth->check('contentadmin', $core->blog->id),
$favs->register('cinecturlink2', [
'title' => __('My cinecturlink'),
'url' => $core->adminurl->get('admin.plugin.cinecturlink2').'#links',
'small-icon' => dcPage::getPF('cinecturlink2/icon.png'),
'large-icon' => dcPage::getPF('cinecturlink2/icon-big.png'),
'permissions' => $core->auth->check('contentadmin', $core->blog->id),
'active_cb' => ['cinecturlink2AdminBehaviors', 'adminDashboardFavoritesActive']
]);
]);
}
public static function adminDashboardFavoritesActive($request, $params)

View file

@ -553,7 +553,7 @@ if ($part == "links") {
'<p><label for="cat_id" class="ib">' . __('Category:') . '</label> ' .
form::combo('catid', $categories_combo, $catid) . '</p>' .
'</div>'.
'<div class="cell filters-options">' .
'<p><label for="sortby" class="ib">' . __('Order by:') . '</label> ' .
form::combo('sortby', $sortby_combo, $sortby) . '</p>' .

View file

@ -338,5 +338,4 @@ $GLOBALS['__l10n']['Check to delete'] = 'Cocher pour supprimer';
$GLOBALS['__l10n']['Delete selection'] = 'Effacer la selection';
#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.';