Add date fixer functions

This commit is contained in:
2026-01-30 11:12:50 +01:00
parent 47889c7d4c
commit 487e96b588
7 changed files with 305 additions and 12 deletions

View File

@@ -48,6 +48,7 @@ class action_plugin_luxtools extends ActionPlugin
"gallery-thumbnails.js",
"open-service.js",
"scratchpads.js",
"date-fix.js",
"linkfavicon.js",
"main.js",
];
@@ -100,5 +101,22 @@ class action_plugin_luxtools extends ActionPlugin
"close" => "</code>",
"block" => false,
];
// Date Fix: normalize selected timestamp
$event->data[] = [
"type" => "LuxtoolsDatefix",
"title" => $this->getLang("toolbar_datefix_title"),
"icon" => "../../plugins/luxtools/images/date-fix.svg",
"key" => "t",
"block" => false,
];
// Date Fix All: normalize all timestamps on page
$event->data[] = [
"type" => "LuxtoolsDatefixAll",
"title" => $this->getLang("toolbar_datefix_all_title"),
"icon" => "../../plugins/luxtools/images/date-fix-all.svg",
"block" => false,
];
}
}