OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
Some checks failed
Security Audit / Composer Security Audit (push) Has been cancelled
Security Audit / NPM Security Audit (push) Has been cancelled
Security Audit / CodeQL Analysis (push) Has been cancelled

This commit is contained in:
wangruiguo
2026-09-03 18:49:20 +08:00
commit d647428529
3501 changed files with 1988906 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<?php
use Leantime\Core\Controller\Frontcontroller;
use Leantime\Core\Events\EventDispatcher;
EventDispatcher::add_filter_listener('leantime.*.welcomeText', function ($welcomeText) {
$language = app()->make(\Leantime\Core\Language::class);
if (Frontcontroller::getCurrentRoute() == 'install') {
$welcomeText = '<h1 class="mainWelcome">'.$language->__('headlines.welcome').'</h1>';
$subText = '';
$welcomeText = $welcomeText.$subText;
}
if (Frontcontroller::getCurrentRoute() == 'install.update') {
$welcomeText = '<h1 class="mainWelcome">'.$language->__('headlines.welcome').'</h1>';
$subText = '';
$welcomeText = $welcomeText.$subText;
}
return $welcomeText;
});