* change feature model UI.
This commit is contained in:
@@ -297,7 +297,7 @@ class commonModel extends model
|
||||
if($app->company->backyard) echo html::a($app->company->backyard, $lang->company->backyard, '_blank');
|
||||
|
||||
if(!commonModel::isTutorialMode() and self::hasPriv('tutorial', 'start')) echo html::a(helper::createLink('tutorial', 'start'), $lang->tutorial, '', "class='iframe' data-width='800' data-headerless='true'");
|
||||
echo html::a(helper::createLink('misc', 'feature'), $lang->feature, '', "class='iframe' data-width='1200' data-headerless='true'");
|
||||
echo html::a(helper::createLink('misc', 'feature'), $lang->feature, '', "class='iframe' data-width='800' data-headerless='true'");
|
||||
echo html::a('javascript:;', $lang->help, '', "class='open-help-tab'");
|
||||
echo html::a(helper::createLink('misc', 'about'), $lang->aboutZenTao, '', "class='about iframe' data-width='900' data-headerless='true' data-class='modal-about'");
|
||||
}
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
#versionMenu {position: absolute; top: 10px; right: 50px;}
|
||||
#versionMenu {margin: 20px;}
|
||||
#versionMenu .dropdown-menu {min-width: 120px}
|
||||
|
||||
#featureCarousel .item {text-align: center; padding: 10px 0}
|
||||
#featureCarousel .item > h2 {margin-bottom: 30px; color: #114f8e}
|
||||
#featureCarousel .item > img {margin: 0 auto 30px}
|
||||
#featureCarousel .item > .desc {font-size: 16px; width: 70%; margin: 0 auto 20px; min-height: 44px}
|
||||
#featureList {padding: 0 20px 20px;}
|
||||
#featureList > .item {padding: 0 0 10px 0;}
|
||||
#featureList > .item > h3 {color: #114f8e; font-size: 16px; margin: 0; padding: 10px 0}
|
||||
#featureList > .item > .desc {color: #666; padding-left: 18px;}
|
||||
#featureList > .item > .more-link {color: #666; padding-left: 18px;}
|
||||
#featureList > .item > .more {display: none}
|
||||
|
||||
@@ -62,8 +62,8 @@ $lang->misc->tableStatus = "Table status";
|
||||
$lang->misc->novice = "You may use the ZenTao first, whether to enter the novice mode?";
|
||||
|
||||
$lang->misc->feature = new stdclass();
|
||||
$lang->misc->feature->lastest = 'Latest';
|
||||
$lang->misc->feature->all = array();
|
||||
$lang->misc->feature->lastest = 'Latest';
|
||||
$lang->misc->feature->all = array();
|
||||
$lang->misc->feature->all['latest'] = array();
|
||||
$lang->misc->feature->all['latest'][] = array('title'=>'Customizable home page', 'desc' => '<p>You can add contents blocks to home page and determine how to display them.</p>', 'img' => '1.gif');
|
||||
$lang->misc->feature->all['latest'][] = array('title'=>'Full customizable navigations', 'desc' => '<p>You can sort and hide items in navigations.</p>', 'img' => '2.gif');
|
||||
$lang->misc->feature->all['latest'][] = array('title'=>'Customizable home page', 'desc' => '<p>You can add contents blocks to home page and determine how to display them.</p>');
|
||||
$lang->misc->feature->all['latest'][] = array('title'=>'Full customizable navigations', 'desc' => '<p>You can sort and hide items in navigations.</p>');
|
||||
|
||||
@@ -62,8 +62,8 @@ $lang->misc->tableStatus = "状态";
|
||||
$lang->misc->novice = "您可能初次使用禅道,是否进入新手模式?";
|
||||
|
||||
$lang->misc->feature = new stdclass();
|
||||
$lang->misc->feature->lastest = '最新版本';
|
||||
$lang->misc->feature->all = array();
|
||||
$lang->misc->feature->lastest = '最新版本';
|
||||
$lang->misc->feature->all = array();
|
||||
$lang->misc->feature->all['latest'] = array();
|
||||
$lang->misc->feature->all['latest'][] = array('title'=>'可自定义内容的首页', 'desc' => '<p>你的地盘由你做主。现在开始,你可以向首页添加多种多样的内容区块,而且还可以决定如何排列和显示他们。</p>', 'img' => '1.gif');
|
||||
$lang->misc->feature->all['latest'][] = array('title'=>'完全定制所有导航内容', 'desc' => '<p>导航上显示的项目现在完全由你来决定。将鼠标悬浮在导航上稍后会在右侧显示定制按钮,点击打开定制对话框,通过点击切换项目是否显示,拖拽导航项目来更改显示顺序。</p>', 'img' => '2.gif');
|
||||
$lang->misc->feature->all['latest'][] = array('title'=>'首页自定义', 'desc' => '<p>我的地盘由我做主。现在开始,你可以向首页添加多种多样的内容区块,而且还可以决定如何排列和显示他们。</p><p>我的地盘、产品、项目、测试模块下均支持首页自定义功能。</p>');
|
||||
$lang->misc->feature->all['latest'][] = array('title'=>'导航定制', 'desc' => '<p>导航上显示的项目现在完全由你来决定,不仅仅可以决定在导航上展示哪些内容,还可以决定展示的顺序。</p><p>将鼠标悬浮在导航上稍后会在右侧显示定制按钮,点击打开定制对话框,通过点击切换是否显示,拖放操作来更改显示顺序。</p>');
|
||||
|
||||
@@ -12,43 +12,26 @@ if(empty($features))
|
||||
<div class='heading'>
|
||||
<strong><?php echo $lang->feature ?></strong>
|
||||
</div>
|
||||
<div class='dropdown' id='versionMenu'>
|
||||
<button class='btn btn-sm dropdown-toggle' type='button' data-toggle='dropdown'><?php echo $version === 'latest' ? $lang->misc->feature->lastest : ('v' . $version) ?> <span class='caret'></span></button>
|
||||
<ul class='dropdown-menu pull-right'>
|
||||
<?php foreach ($lang->misc->feature->all as $versionName => $features):?>
|
||||
<li<?php echo $versionName === $version ? " class='active'" : '' ?>>
|
||||
<?php echo html::a(helper::createLink('misc', 'feature', "version=$versionName"), $versionName === 'latest' ? $lang->misc->feature->lastest : ('v' . $versionName));?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id='featureCarousel' class='carousel slide' data-ride='carousel' data-interval='10000'>
|
||||
<ol class='carousel-indicators'>
|
||||
<?php $idx = 1; ?>
|
||||
<?php foreach ($features as $feature):?>
|
||||
<li data-target='#featureCarousel' data-slide-to='<?php echo $idx; ?>'<?php echo $idx === 1 ? " class='active'" : '' ?>></li>
|
||||
<?php $idx++; ?>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
<div class='carousel-inner'>
|
||||
<?php $idx = 1; ?>
|
||||
<?php foreach ($features as $feature):?>
|
||||
<?php $imgUrl = $defaultTheme . 'images/feature/' . $version . '/' . $feature['img']; ?>
|
||||
<div class='item<?php echo $idx === 1 ? ' active' : '' ?>'>
|
||||
<h2><?php echo $feature['title'] ?></h2>
|
||||
<img alt='<?php echo $feature['title'] ?>' src='<?php echo $imgUrl ?>'>
|
||||
<div class='desc'><?php echo $feature['desc'] ?></div>
|
||||
</div>
|
||||
<?php $idx++; ?>
|
||||
<div class='dropdown' id='versionMenu'>
|
||||
<button class='btn btn-sm dropdown-toggle' type='button' data-toggle='dropdown'><?php echo $version === 'latest' ? $lang->misc->feature->lastest : ('v' . $version) ?> <span class='caret'></span></button>
|
||||
<ul class='dropdown-menu'>
|
||||
<?php foreach ($lang->misc->feature->all as $versionName => $features):?>
|
||||
<li<?php echo $versionName === $version ? " class='active'" : '' ?>>
|
||||
<?php echo html::a(helper::createLink('misc', 'feature', "version=$versionName"), $versionName === 'latest' ? $lang->misc->feature->lastest : ('v' . $versionName));?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<div id='featureList' class='article-content'>
|
||||
<?php $idx = 1; ?>
|
||||
<?php foreach ($features as $feature):?>
|
||||
<div class='item'>
|
||||
<h3><?php echo $idx . '. ' . $feature['title'] ?></h3>
|
||||
<div class='desc'><?php echo $feature['desc'] ?></div>
|
||||
</div>
|
||||
<a class='left carousel-control' href='#featureCarousel' data-slide='prev'>
|
||||
<span class='icon icon-chevron-left'></span>
|
||||
</a>
|
||||
<a class='right carousel-control' href='#featureCarousel' data-slide='next'>
|
||||
<span class='icon icon-chevron-right'></span>
|
||||
</a>
|
||||
<?php $idx++; ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php include '../../common/view/footer.lite.html.php';?>
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 441 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 517 KiB |
Reference in New Issue
Block a user