修改禅道默认首页元素及展示
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 = " <a href='http://www.apachefriends.org/en/xampp.html' target='_blank'>xampp</a>";
$lang->cn->official = " <a href='http://www.zentao.net' target='_blank'>禅道官网</a>";
$lang->cn->adminer = "<a href='/adminer/' target='_blank'>数据库管理</a>";
$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 = " <a href='http://www.apachefriends.org/en/xampp.html' target='_blank'>xampp</a> ";
$lang->en->official = " <a href='http://www.zentao.net/en' target='_blank'>Community</a>";
$lang->en->adminer = "<a href='/adminer/' target='_blank'>MySQL</a>";
<div class='modal-footer'>
<ul class='pull-left nav nav-pills'><?php foreach($config->langs as $langCode => $langName){$activeClass = $langCode == $acceptLang?'active':''; echo "<li class='$activeClass'><a href='?lang=$langCode'>$langName</a></li>";}?></ul>
<ul class='pull-right nav nav-pills'>
<li><?php echo $clientLang->xampp;?></li>
<li><?php echo $clientLang->official ?></li>
<li><?php echo $clientLang->adminer ?></li>
</ul>
</div>
效果展示