* Finish task #79623.

This commit is contained in:
田淑杰
2022-12-15 13:31:18 +08:00
parent d023bcb506
commit 9be324d1d1
7 changed files with 20 additions and 2 deletions
+1
View File
@@ -99,6 +99,7 @@ $lang->block->dynamicInfo = "<span class='timeline-tag'>%s</span> <span c
$lang->block->noLinkDynamic = "<span class='timeline-tag'>%s</span> <span class='timeline-text' title='%s'>%s<span class='label-action'>%s</span>%s<span class='label-name'>%s</span></span>";
$lang->block->cannotPlaceInLeft = 'Kann den Block nicht auf der linken Seite platzieren.';
$lang->block->cannotPlaceInRight = 'Kann den Block nicht auf der rechten Seite platzieren.';
$lang->block->tutorial = 'Enter the tutorial';
$lang->block->productName = $lang->productCommon . ' Name';
$lang->block->totalStory = 'Total Story';
+1
View File
@@ -99,6 +99,7 @@ $lang->block->dynamicInfo = "<span class='timeline-tag'>%s</span> <span c
$lang->block->noLinkDynamic = "<span class='timeline-tag'>%s</span> <span class='timeline-text' title='%s'>%s<span class='label-action'>%s</span>%s<span class='label-name'>%s</span></span>";
$lang->block->cannotPlaceInLeft = 'Cannot place the block at left side.';
$lang->block->cannotPlaceInRight = 'Cannot place the block at right side.';
$lang->block->tutorial = 'Enter the tutorial';
$lang->block->productName = $lang->productCommon . ' Name';
$lang->block->totalStory = 'Total Story';
+1
View File
@@ -99,6 +99,7 @@ $lang->block->dynamicInfo = "<span class='timeline-tag'>%s</span> <span c
$lang->block->noLinkDynamic = "<span class='timeline-tag'>%s</span> <span class='timeline-text' title='%s'>%s<span class='label-action'>%s</span>%s<span class='label-name'>%s</span></span>";
$lang->block->cannotPlaceInLeft = 'Impossible de placer le bloc à gauche.';
$lang->block->cannotPlaceInRight = 'Impossible de placer le bloc à droite.';
$lang->block->tutorial = 'Enter the tutorial';
$lang->block->productName = $lang->productCommon . ' Name';
$lang->block->totalStory = 'Total';
+1
View File
@@ -99,6 +99,7 @@ $lang->block->dynamicInfo = "<span class='timeline-tag'>%s</span> <span c
$lang->block->noLinkDynamic = "<span class='timeline-tag'>%s</span> <span class='timeline-text' title='%s'>%s<span class='label-action'>%s</span>%s<span class='label-name'>%s</span></span>";
$lang->block->cannotPlaceInLeft = '此区块无法放置在左侧。';
$lang->block->cannotPlaceInRight = '此区块无法放置在右侧。';
$lang->block->tutorial = '进入新手教程';
$lang->block->productName = $lang->productCommon . '名称';
$lang->block->totalStory = '总' . $lang->SRCommon;
+1
View File
@@ -38,6 +38,7 @@ $useGuest = $this->app->user->account == 'guest';
<div class='panel-title'><?php echo $block->title;?></div>
<?php endif;?>
<nav class='panel-actions nav nav-default'>
<?php if($this->config->vision == 'rnd' and $block->block == 'guide') echo '<li>' . html::a($this->createLink('tutorial', 'start'), $lang->block->tutorial, '', "title='{$lang->block->tutorial}' class='iframe tutorialBtn'") . '</li>'; ?>
<?php if(!empty($block->moreLink)) echo '<li>' . html::a($block->moreLink, strtoupper($lang->more), '', "title='{$lang->more}'") . '</li>'; ?>
<li class='dropdown'>
<a href='javascript:;' data-toggle='dropdown' class='panel-action'><i class='icon icon-ellipsis-v'></i></a>
-1
View File
@@ -9,7 +9,6 @@
<?php endforeach; ?>
</div>
<style>
.flowchart {padding: 20px 24px 20px 24px;}
.flow-item {float: left; width: 16.66667%; max-width: 180px; text-align: center; margin-bottom: 9px; padding-right: 15px;}
.flow-item > div {position: relative; padding: 5px 0 5px 8px; line-height: 20px; background: #66A2FF; white-space:nowrap; overflow: visible; color: #3c4353}
.flow-item > div:before, .flow-item > div:after {content: ' '; display: block; width: 0; height: 0; border-style: solid; border-width: 15px 0 15px 10px; border-color: transparent transparent transparent #66A2FF; position: absolute; left: 0; top: 0;}
+15 -1
View File
@@ -1,4 +1,7 @@
<style>
.block-guide .tutorialBtn {margin-right: 10px;}
.block-guide .tutorialBtn, .block-guide a.tutorialBtn:hover {color: #FFF; background: #FF9F46;}
.block-guide .flowchart {padding: 20px 24px 20px 24px;}
.block-guide .panel-body {padding: 0;height: 286px;}
.block-guide .panel-body .table-row {height: 100%; border-top: 1px solid #EEE;}
.block-guide .col-nav {border-right: 1px solid #EBF2FB; width: 170px; padding: 0; background: #F3F6FA;}
@@ -32,6 +35,17 @@ $(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')
{
$('.block-guide .tutorialBtn').removeClass('hidden');
}
else
{
$('.block-guide .tutorialBtn').addClass('hidden');
}
})
});
</script>
<div class="panel-body">
@@ -40,7 +54,7 @@ $(function()
<ul class="nav nav-stacked nav-secondary scrollbar-hover" id='<?php echo $blockNavId;?>'>
<?php foreach($lang->block->guideTabs as $tab => $tabName):?>
<?php if(strpos($tab, 'download') !== false and (!isset($config->xxserver->installed) or !$config->xuanxuan->turnon)) continue;?>
<li <?php if($tab == 'flowchart') echo "class='active' id='activeGuide'";?>>
<li <?php if($tab == 'flowchart') echo "class='active'";?> id="<?php echo $tab;?>">
<a href="###" title="<?php echo $tabName?>" data-target='<?php echo "#tab3{$blockNavId}Content{$tab}";?>' data-toggle="tab">
<?php echo $tabName;?>
<span class='btn-view'><i class='icon-arrow-right text-primary'></i><span>