* Finish task #40523.

This commit is contained in:
holan20180123
2021-07-27 09:39:04 +08:00
parent 704cee37ec
commit 2187c2bbe8
6 changed files with 38 additions and 2 deletions
+6
View File
@@ -825,6 +825,12 @@ class my extends control
$this->display();
}
public function guideChangeTheme()
{
$this->loadModel('setting')->setItem('system.common.global.skipThemeGuide', 'yes');
$this->display();
}
/**
* Manage contacts.
*
+2
View File
@@ -0,0 +1,2 @@
.theme-title {font-size: 15px; font-weight: 600; padding-bottom: 10px;}
img {box-shadow: 0 5px 10px rgba(0,0,0,.1);}
+4 -2
View File
@@ -1,5 +1,7 @@
$(function()
{
$(function()
{
if(skipThemeGuide == 'no') $('#changeTheme').click();
/* Set the heights of every block to keep them same height. */
projectBoxHeight = $('#projectbox').height();
productBoxHeight = $('#productbox').height();
+24
View File
@@ -0,0 +1,24 @@
<?php
/**
* The guide change theme of story module of ZenTaoPMS.
*
* @copyright Copyright 2009-2021 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
* @license ZPL (http://zpl.pub/page/zplv12.html)
* @author Liyuchun <liyuchun@cnezsoft.com>
* @package my
* @version $Id: changetheme.html.php 4129 2021-07-26 16:38:14Z wwccss $
* @link http://www.zentao.net
*/
?>
<?php include '../../common/view/header.html.php';?>
<div class='main-content'>
<div class="main-body text-center">
<p class='theme-title'>全新<span style='color: #0c60e1'>“青春蓝”</span>主题上线了!</p>
<div>
<p>只需一步,您就可以体验权限的“青春蓝”主题了,赶紧去设置吧!</p>
<p>鼠标经过<span style='color: #0c60e1'>【头像-主题-青春蓝】</span>,点击青春蓝,设置成功!</p>
</div>
<img src='<?php echo $config->webRoot . 'theme/default/images/main/new_theme.png';?>' />
</div>
</div>
<?php include '../../common/view/footer.html.php';?>
+2
View File
@@ -10,5 +10,7 @@
*/
?>
<?php include '../../common/view/header.html.php';?>
<?php js::set('skipThemeGuide', zget($this->config->global, 'skipThemeGuide', 'no'));?>
<?php echo $this->fetch('block', 'dashboard', 'module=my');?>
<?php echo html::a($this->createLink('my', 'guidechangeTheme', '', '', true), $lang->theme, '', 'class="iframe hidden" id="changeTheme" data-width="600px"');?>
<?php include '../../common/view/footer.html.php';?>
Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB