From 39cd9161e1196a7136fa4f58c51147d73390ef7a Mon Sep 17 00:00:00 2001 From: JcDenis Date: Thu, 19 Aug 2021 22:53:00 +0200 Subject: [PATCH] cleanup admin title --- index.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index 1f9adda..c379fd9 100644 --- a/index.php +++ b/index.php @@ -415,10 +415,17 @@ $core->callBehavior('translaterAdminHeaders'); echo ' -

' . __('Translater') . ' › ' . $title . -' - ' . __('Plugins') . '' . -' - ' . __('Themes') . '' . -' - ' . __('Import/Export') . '' . +

' . __('Translater') . ' › ' . $title; +if ($part == 'pack' || $type != 'plugin') { + echo ' / ' . __('Plugins') . ''; +} +if ($part == 'pack' || $type != 'theme') { + echo ' / ' . __('Themes') . ''; +} +if ($part != 'pack') { + echo ' / ' . __('Import/Export') . ''; +} +echo '

'; if (isset($succes[$msg])) {