* change for license.

This commit is contained in:
wangyidong
2018-03-02 10:47:36 +08:00
parent 2cde802376
commit 973d0e258f
5 changed files with 23 additions and 29 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ class installModel extends model
$licenseCN = file_get_contents($this->app->getBasePath() . 'doc/LICENSE.CN');
$licenseEN = file_get_contents($this->app->getBasePath() . 'doc/LICENSE.EN');
if($clientLang == 'zh' or $clientLang == 'zh-tw') return $licenseCN . $licenseEN;
if($clientLang == 'zh-cn' or $clientLang == 'zh-tw') return $licenseCN . $licenseEN;
return $licenseEN . $licenseCN;
}
+1 -1
View File
@@ -43,7 +43,7 @@
<h5><?php echo $lang->install->promotion?></h5>
<div class='row'>
<?php foreach($lang->install->product as $product):?>
<div class='col-md-<?php echo 12 / count($lang->install->product);?>'>
<div class='col-md-<?php echo ceil(12 / count($lang->install->product));?>'>
<a class="card ad" href="<?php echo $lang->install->{$product}->url;?>" target="_blank">
<div class="img-wrapper" style="background-image:url(<?php echo $defaultTheme . $lang->install->{$product}->logo;?>)"><img src="<?php echo $defaultTheme . $lang->install->{$product}->logo;?>" alt=""></div>
<div class="card-reveal">
+8 -1
View File
@@ -37,8 +37,15 @@ class upgrade extends control
{
if($this->get->agree == true) $this->locate(inlink('backup'));
$clientLang = $this->app->getClientLang();
$licenseCN = file_get_contents($this->app->getBasePath() . 'doc/LICENSE.CN');
$licenseEN = file_get_contents($this->app->getBasePath() . 'doc/LICENSE.EN');
$license = $licenseEN . $licenseCN;
if($clientLang == 'zh-cn' or $clientLang == 'zh-tw') $license = $licenseCN . $licenseEN;
$this->view->title = $this->lang->upgrade->common;
$this->view->license = file_get_contents($this->app->getBasePath() . 'doc/LICENSE');
$this->view->license = $license;
$this->display();
}
+3 -12
View File
@@ -1,19 +1,10 @@
.adbox{margin-top:20px;}
.card {
border: none;
border-radius: 0px;
box-shadow: none;
display: block;
margin-bottom: 0px;
overflow: hidden;
padding: 0;
position: relative;
transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1) 0s;
}
.card.ad{margin-bottom:0px;}
.card.ad > .img-wrapper {
background-position: center;
background-repeat: no-repeat;
height: 85px;
height: 115px;
width: 100%;
}
.card.ad > .img-wrapper > img{display: none;}
+10 -14
View File
@@ -22,22 +22,18 @@
</div>
<div class='panel adbox'>
<div class='panel-heading'><strong><?php echo $lang->install->promotion?></strong></div>
<div class='panel-body'>
<div class='col-md-4'>
<a class="card ad" href="http://www.chanzhi.org" target="_blank">
<div class="img-wrapper" style="background-image:url(<?php echo $defaultTheme . 'images/main/chanzhi.png'?>)"><img src="<?php echo $defaultTheme . 'images/main/chanzhi.png'?>" alt=""></div>
</a>
</div>
<div class='col-md-4'>
<a class="card ad" href="http://www.ranzhico.com" target="_blank">
<div class="img-wrapper" style="background-image:url(<?php echo $defaultTheme . 'images/main/ranzhi.png'?>);background-size:230px 85px"><img src="<?php echo $defaultTheme . 'images/main/ranzhi.png'?>" alt=""></div>
</a>
</div>
<div class='col-md-4'>
<a class="card ad" href="http://www.zdoo.com" target="_blank">
<div class="img-wrapper" style="background-image:url(<?php echo $defaultTheme . 'images/main/zdoo.png'?>)"><img src="<?php echo $defaultTheme . 'images/main/zdoo.png'?>" alt=""></div>
<div class='panel-body row'>
<?php foreach($lang->install->product as $product):?>
<div class='col-md-<?php echo ceil(12 / count($lang->install->product));?>'>
<a class="card ad" href="<?php echo $lang->install->{$product}->url;?>" target="_blank">
<div class="img-wrapper" style="background-image:url(<?php echo $defaultTheme . $lang->install->{$product}->logo;?>)"><img src="<?php echo $defaultTheme . $lang->install->{$product}->logo;?>" alt=""></div>
<div class="card-reveal">
<h5 class="card-heading"><?php echo $lang->install->{$product}->name?></h5>
<div class="card-content"><?php echo $lang->install->{$product}->desc?></div>
</div>
</a>
</div>
<?php endforeach;?>
</div>
</div>
</div>