change page footer

master
Jean-Christian Paul Denis 2023-08-16 16:18:24 +02:00
parent 5f6c8e80b9
commit a656621b62
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
3 changed files with 19 additions and 19 deletions

View File

@ -1,15 +1,21 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Project-Id-Version: DotclearWatch 0.1\n"
"Project-Id-Version: DotclearWatch 0.7.1\n"
"POT-Creation-Date: \n"
"PO-Revision-Date: 2023-07-23T09:13:29+00:00\n"
"PO-Revision-Date: 2023-08-16T14:14:45+00:00\n"
"Last-Translator: Jean-Christain Denis\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
msgid "Uses DotclearWatch plugin statistics"
msgstr "Utilise le plugin de statistiques DotclearWatch"
msgid "Shared statistics"
msgstr "Statistiques partagées"
msgid "Cache directory sucessfully cleared."
msgstr "Répertoire de cache des rapports nettoyé."

View File

@ -34,7 +34,17 @@ class Backend extends Process
'adminDashboardHeaders' => function (): string {
return My::jsLoad('service', dcCore::app()->getVersion(My::id()));
},
'adminPageFooterV2' => [Utils::class, 'addMark'],
'adminPageFooterV2' => function(): void {
if (My::settings()->getGlobal('distant_api_url')) {
echo sprintf(
'<ul><li><a href="%s" title="%s" class="outgoing">%s<img src="%s" /></a></ul></li>',
'https://stat.dotclear.watch',
__('Uses DotclearWatch plugin statistics'),
__('Shared statistics'),
My::fileURL('icon.svg')
);
}
},
]);
dcCore::app()->rest->addFunction(

View File

@ -40,22 +40,6 @@ class Utils
/** @var string Multiblog unique identifiant */
private static string $uid = '';
/**
* Add mark to backend menu footer.
*/
public static function addMark(): void
{
if (My::settings()->getGlobal('distant_api_url')) {
echo sprintf(
'<ul><li><a href="%s" title="%s" class="outgoing">%s<img src="%s" /></a></ul></li>',
'https://stat.dotclear.watch',
__('DotclearWatch plugin statistics'),
__('Tracked by dotclear.watch'),
My::fileURL('icon.svg')
);
}
}
/**
* Get hidden modules.
*