Add date fixer functions
This commit is contained in:
18
action.php
18
action.php
@@ -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,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user