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

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