* code for lite version.
This commit is contained in:
@@ -17,6 +17,7 @@ if(!function_exists('getWebRoot')){function getWebRoot(){}}
|
||||
|
||||
/* 基本设置。Basic settings. */
|
||||
$config->version = '16.5'; // ZenTaoPHP的版本。 The version of ZenTaoPHP. Don't change it.
|
||||
$config->liteVersion = '1.0'; // 迅捷版版本。 The version of Lite.
|
||||
$config->charset = 'UTF-8'; // ZenTaoPHP的编码。 The encoding of ZenTaoPHP.
|
||||
$config->cookieLife = time() + 2592000; // Cookie的生存时间。The cookie life time.
|
||||
$config->timezone = 'Asia/Shanghai'; // 时区设置。 The time zone setting, for more see http://www.php.net/manual/en/timezones.php.
|
||||
|
||||
@@ -30,6 +30,7 @@ $lang->zentaoPMS = 'ZenTao';
|
||||
$lang->pmsName = 'ALM';
|
||||
$lang->proName = 'Pro';
|
||||
$lang->bizName = 'Biz';
|
||||
$lang->liteName = 'Lite';
|
||||
$lang->logoImg = 'zt-logo-en.png';
|
||||
$lang->welcome = "%s ALM";
|
||||
$lang->logout = 'Logout';
|
||||
|
||||
@@ -30,6 +30,7 @@ $lang->zentaoPMS = '禅道';
|
||||
$lang->pmsName = '开源版';
|
||||
$lang->proName = '专业版';
|
||||
$lang->bizName = '企业版';
|
||||
$lang->liteName = '迅捷版';
|
||||
$lang->logoImg = 'zt-logo.png';
|
||||
$lang->welcome = "%s项目管理系统";
|
||||
$lang->logout = '退出';
|
||||
|
||||
@@ -473,16 +473,18 @@ class commonModel extends model
|
||||
*/
|
||||
public static function printVisionSwitcher()
|
||||
{
|
||||
global $lang, $app;
|
||||
global $lang, $app, $config;
|
||||
|
||||
if(isset($app->user))
|
||||
{
|
||||
$currentVision = $app->config->vision;
|
||||
$userVisions = array_filter(explode(',', $app->user->visions));
|
||||
$configVisions = array_filter(explode(',', trim($config->visions, ',')));
|
||||
|
||||
if($app->config->systemMode != 'new') return print("<div>{$lang->visionList['rnd']}</div>");
|
||||
|
||||
if(count($userVisions) < 2) return print("<div>{$lang->visionList[$currentVision]}</div>");
|
||||
if(count($userVisions) < 2) return print("<div>{$lang->visionList[$currentVision]}</div>");
|
||||
if(count($configVisions) < 2) return print("<div>{$lang->visionList[$currentVision]}</div>");
|
||||
|
||||
echo "<ul class='dropdown-menu pull-right'>";
|
||||
echo "<li class='text-gray switchTo'>{$lang->switchTo}</li>";
|
||||
|
||||
@@ -82,10 +82,17 @@ js::set('showFeatures', $showFeatures);
|
||||
<ul id='bars' class='nav nav-default'></ul>
|
||||
<div id='poweredBy'>
|
||||
<div id="globalBarLogo">
|
||||
<?php if($config->vision == 'lite'):?>
|
||||
<?php $version = $config->liteVersion;?>
|
||||
<?php $versionName = $lang->liteName . $config->liteVersion;?>
|
||||
<?php else:?>
|
||||
<?php $version = $config->version;?>
|
||||
<?php $versionName = $lang->pmsName . $config->version;?>
|
||||
<a href='javascript:void(0)' id='bizLink' class='btn btn-link' style='color: #B57D4F;'><span class='upgrade'><?php echo $lang->bizName;?></span> <i class='text-danger icon-pro-version'></i></a>
|
||||
<a href='<?php echo $lang->website;?>' class="btn btn-sm btn-link" target='_blank' title='<?php echo $config->version;?>'>
|
||||
<?php endif;?>
|
||||
<a href='<?php echo $lang->website;?>' class="btn btn-sm btn-link" target='_blank' title='<?php echo $version;?>'>
|
||||
<i class="icon icon-zentao" style="font-size: 24px;"></i>
|
||||
<span class='version'><?php echo $lang->pmsName . $config->version;?></span>
|
||||
<span class='version'><?php echo $versionName;?></span>
|
||||
</a>
|
||||
<div id="globalSearchDiv">
|
||||
<div class="input-group">
|
||||
|
||||
Reference in New Issue
Block a user