diff --git a/module/block/lang/de.php b/module/block/lang/de.php index 615ae698a0..11918b17e1 100644 --- a/module/block/lang/de.php +++ b/module/block/lang/de.php @@ -622,3 +622,13 @@ $lang->block->themes['pink'] = 'Pink'; $lang->block->themes['blackberry'] = 'Blackberry'; $lang->block->themes['classic'] = 'Classic'; $lang->block->themes['purple'] = 'Purple'; + +$lang->block->visionTitle = 'The user interface of ZenTao is divided into 【Full feature interface】 and 【Operation Management Interface】.'; +$lang->block->visions['ALM'] = new stdclass(); +$lang->block->visions['ALM']->key = 'ALM'; +$lang->block->visions['ALM']->title = 'Full feature interface'; +$lang->block->visions['ALM']->text = 'Integrates multi-dimensional management of program, product, project, execution, test, etc., and provides a whole-process project management solution.'; +$lang->block->visions['light'] = new stdclass(); +$lang->block->visions['light']->key = 'light'; +$lang->block->visions['light']->title = 'Operation Management Interface'; +$lang->block->visions['light']->text = 'Specially designed for Non-R&D teams, mainly based on the intuitive and visual Kanban project management model.'; diff --git a/module/block/lang/en.php b/module/block/lang/en.php index a1ea970f15..8603635775 100644 --- a/module/block/lang/en.php +++ b/module/block/lang/en.php @@ -622,3 +622,13 @@ $lang->block->themes['pink'] = 'Pink'; $lang->block->themes['blackberry'] = 'Blackberry'; $lang->block->themes['classic'] = 'Classic'; $lang->block->themes['purple'] = 'Purple'; + +$lang->block->visionTitle = 'The user interface of ZenTao is divided into 【Full feature interface】 and 【Operation Management Interface】.'; +$lang->block->visions['ALM'] = new stdclass(); +$lang->block->visions['ALM']->key = 'ALM'; +$lang->block->visions['ALM']->title = 'Full feature interface'; +$lang->block->visions['ALM']->text = 'Integrates multi-dimensional management of program, product, project, execution, test, etc., and provides a whole-process project management solution.'; +$lang->block->visions['light'] = new stdclass(); +$lang->block->visions['light']->key = 'light'; +$lang->block->visions['light']->title = 'Operation Management Interface'; +$lang->block->visions['light']->text = 'Specially designed for Non-R&D teams, mainly based on the intuitive and visual Kanban project management model.'; diff --git a/module/block/lang/fr.php b/module/block/lang/fr.php index 3703522621..f7af1b7f84 100644 --- a/module/block/lang/fr.php +++ b/module/block/lang/fr.php @@ -622,3 +622,13 @@ $lang->block->themes['pink'] = 'Pink'; $lang->block->themes['blackberry'] = 'Blackberry'; $lang->block->themes['classic'] = 'Classic'; $lang->block->themes['purple'] = 'Purple'; + +$lang->block->visionTitle = 'The user interface of ZenTao is divided into 【Full feature interface】 and 【Operation Management Interface】.'; +$lang->block->visions['ALM'] = new stdclass(); +$lang->block->visions['ALM']->key = 'ALM'; +$lang->block->visions['ALM']->title = 'Full feature interface'; +$lang->block->visions['ALM']->text = 'Integrates multi-dimensional management of program, product, project, execution, test, etc., and provides a whole-process project management solution.'; +$lang->block->visions['light'] = new stdclass(); +$lang->block->visions['light']->key = 'light'; +$lang->block->visions['light']->title = 'Operation Management Interface'; +$lang->block->visions['light']->text = 'Specially designed for Non-R&D teams, mainly based on the intuitive and visual Kanban project management model.'; diff --git a/module/block/lang/zh-cn.php b/module/block/lang/zh-cn.php index e57cd01991..0856db6fac 100644 --- a/module/block/lang/zh-cn.php +++ b/module/block/lang/zh-cn.php @@ -622,3 +622,13 @@ $lang->block->themes['pink'] = '芙蕖粉'; $lang->block->themes['blackberry'] = '露莓黑'; $lang->block->themes['classic'] = '经典蓝'; $lang->block->themes['purple'] = '玉烟紫'; + +$lang->block->visionTitle = '禅道使用界面分为【研发综合界面】和【运营管理界面】。'; +$lang->block->visions['ALM'] = new stdclass(); +$lang->block->visions['ALM']->key = 'ALM'; +$lang->block->visions['ALM']->title = '研发综合界面'; +$lang->block->visions['ALM']->text = '集项目集、产品、项目、执行、测试等多维度管理于一体,提供全过程项目管理解决方案。'; +$lang->block->visions['light'] = new stdclass(); +$lang->block->visions['light']->key = 'light'; +$lang->block->visions['light']->title = '运营管理界面'; +$lang->block->visions['light']->text = '专为非研发团队打造,主要以直观、可视化的看板项目管理模型为主。'; diff --git a/module/block/view/guide.html.php b/module/block/view/guide.html.php index d7f9fcbce7..d7ca6fe2c3 100644 --- a/module/block/view/guide.html.php +++ b/module/block/view/guide.html.php @@ -44,6 +44,7 @@ $(function() else $nav.children('li:not(.switch-icon)')[isPrev ? 'last' : 'first']().find('a[data-toggle="tab"]').trigger('click'); e.preventDefault(); }); + $nav.find('li').click(function() { if($(this).attr('id') == 'flowchart') @@ -54,18 +55,44 @@ $(function() { $('.block-guide .tutorialBtn').addClass('hidden'); } + + if($(this).attr('id') === 'visionSwitch') + { + var scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop || 0; + localStorage.setItem('visionPosition', scrollTop); + } + }) + if(localStorage.getItem('visionPosition')) + { + $('#visionSwitch > a').click(); + localStorage.removeItem('visionPosition'); + } + else + { + $('#flowchart > a').click(); + } + }); + +window.onunload = function () { + if(!localStorage.getItem('visionPosition')) + { + return; + } + document.getElementById('guideBody').scrollTo = Number(localStorage.getItem('visionPosition')); +} -
+ +
-
-
+
+ +
diff --git a/module/block/view/visionswitch.html.php b/module/block/view/visionswitch.html.php new file mode 100644 index 0000000000..87bf360874 --- /dev/null +++ b/module/block/view/visionswitch.html.php @@ -0,0 +1,32 @@ + + + +
+

block->visionTitle;?>

+
+ block->visions as $vision):?> + config->systemMode == $vision->key ? 'active' : '';?> +
+
+
title;?>
+
text;?>
+
+ +
+
diff --git a/www/theme/default/images/guide/vision_alm.png b/www/theme/default/images/guide/vision_alm.png new file mode 100644 index 0000000000..f7ea0fcbfd Binary files /dev/null and b/www/theme/default/images/guide/vision_alm.png differ diff --git a/www/theme/default/images/guide/vision_light.png b/www/theme/default/images/guide/vision_light.png new file mode 100644 index 0000000000..aceef98905 Binary files /dev/null and b/www/theme/default/images/guide/vision_light.png differ