修改禅道默认首页元素及展示
by:授客 QQ:1033553122
测试环境:
禅道项目管理软件ZenTaoPMS.9.5.1.win64
需求描述
如下,安装禅道后访问默认首页,展示如下,我们希望它和公司、项目更“和谐”一些
解决方案
(开源版为例)
进入禅道安装目录/htdocs/目录,备份index.php后修改index.php文件
找到
$lang->cn->title = '欢迎使用禅道集成运行环境!';
改成你要的名称,比如
$lang->cn->title = '家里蹲网络科技有限公司';
找到
$lang->cn->links['zentao']['text'] = '开源版';
改成如下
$lang->cn->links['zentao']['text'] = '登录';
找到以下内容,并删除
$config->langs['cn'] = '简体';
$config->langs['en'] = 'English';
$lang->cn->xampp = " xampp";
$lang->cn->official = " 禅道官网";
$lang->cn->adminer = "数据库管理";
$lang->en->links['zentaopro']['link'] = '/pro/';
$lang->en->links['zentaopro']['text'] = 'Pro version';
$lang->en->links['zentaopro']['target'] = '_self';
$lang->en->title = 'Welcome to use zentao!';
$lang->en->xampp = " xampp ";
$lang->en->official = " Community";
$lang->en->adminer = "MySQL";
-
langs as $langCode => $langName){$activeClass = $langCode == $acceptLang?'active':''; echo "
- $langName ";}?>
效果展示