File tree Expand file tree Collapse file tree 6 files changed +11
-10
lines changed Expand file tree Collapse file tree 6 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,11 @@ FeehiCMS没有对yii2做任何的修改、封装,但是把yii2的一些优秀
12
12
13
13
更新记录
14
14
-------
15
- 2.0.7 增加后台多图上传;增加文章分类和文章及单页html模版选择;优化前台一些html标签;
15
+ 2.0.8 增加更多restful示例;后台crud生成适应联合联合主键;优化编辑后页面跳转;优化安装锁定;前台增加葡萄牙语
16
16
17
- 2.0.6 后台管理适配手机;增加后台代码注释操作运行命令自动生成权限;优化代码;
17
+ 2.0.7 增加后台多图上传;增加文章分类和文章及单页html模版选择;优化前台一些html标签
18
+
19
+ 2.0.6 后台管理适配手机;增加后台代码注释操作运行命令自动生成权限;优化代码
18
20
19
21
2.0.5 优化gii生成后台curd;增加列表页搜索框区域;增加form表单laydate、chosenSelect;修复其他bug
20
22
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ $(document).ready(function(){
257
257
type : this . getAttribute ( 'dateType' ) ,
258
258
range : this . getAttribute ( 'range' ) === 'true' ? true : ( this . getAttribute ( 'range' ) === 'false' ? false : this . getAttribute ( 'range' ) ) ,
259
259
format : this . getAttribute ( 'format' ) ,
260
- value : this . getAttribute ( 'value ' ) === 'new Date()' ? new Date ( ) : this . getAttribute ( 'value ' ) ,
260
+ value : this . getAttribute ( 'val ' ) === 'new Date()' ? new Date ( ) : this . getAttribute ( 'val ' ) ,
261
261
isInitValue : this . getAttribute ( 'isInitValue' ) != 'false' ,
262
262
min : this . getAttribute ( 'min' ) ,
263
263
max : this . getAttribute ( 'max' ) ,
@@ -283,7 +283,7 @@ $(document).ready(function(){
283
283
} , 100 )
284
284
}
285
285
}
286
- delete config [ 'value ' ] ;
286
+ delete config [ 'val ' ] ;
287
287
288
288
laydate . render ( config ) ;
289
289
} ) ;
Original file line number Diff line number Diff line change @@ -353,7 +353,7 @@ public function ueditor($options = [])
353
353
* 时间/日期输入框
354
354
*
355
355
* @param array $options
356
- *
356
+ * - val: string 值,替代html的value属性,设置此val会在页面加载完成后由js把value改为val,此处与laydate不同之处,需要注意
357
357
* - type: string,输入框类型,默认date。可选值:
358
358
year 年选择器 只提供年列表选择
359
359
month 年月选择器 只提供年、月选择
@@ -373,7 +373,7 @@ public function date($options=[])
373
373
$ options ['range ' ] === true && $ options ['range ' ] = '~ ' ;
374
374
$ options ['range ' ] === false && $ options ['range ' ] = 'false ' ;
375
375
!isset ($ options ['format ' ]) && $ options ['format ' ] = 'yyyy-MM-dd HH:mm:ss ' ;
376
- !isset ($ options ['value ' ]) && $ options ['value ' ] = $ this ->model ->{$ this ->attribute } ? $ this ->model ->{$ this ->attribute } : ( strpos (get_class ($ this ->model ), 'Search ' ) !== false ? '' : 'new Date() ' );
376
+ !isset ($ options ['val ' ]) && $ options ['val ' ] = $ this ->model ->{$ this ->attribute } ? $ this ->model ->{$ this ->attribute } : ( strpos (get_class ($ this ->model ), 'Search ' ) !== false ? '' : 'new Date() ' );
377
377
!isset ($ options ['isInitValue ' ]) && $ options ['isInitValue ' ] = false ;
378
378
$ options ['isInitValue ' ] === true && $ options ['isInitValue ' ] = 'true ' ;
379
379
$ options ['isInitValue ' ] === false && $ options ['isInitValue ' ] = 'false ' ;
Original file line number Diff line number Diff line change 1
1
<?php
2
2
return [
3
3
'name ' => 'Feehi CMS ' ,
4
- 'version ' => '2.0.7.1 ' ,
4
+ 'version ' => '2.0.8 ' ,
5
5
'vendorPath ' => dirname (dirname (__DIR__ )) . '/vendor ' ,
6
6
'aliases ' => [
7
7
'@bower ' => '@vendor/bower-asset ' ,
Original file line number Diff line number Diff line change @@ -112,7 +112,6 @@ public function actionPublish()
112
112
$ temp . 'frontend ' . DIRECTORY_SEPARATOR . 'web ' . DIRECTORY_SEPARATOR . 'uploads ' ,
113
113
$ temp . 'frontend ' . DIRECTORY_SEPARATOR . 'web ' . DIRECTORY_SEPARATOR . 'admin ' . DIRECTORY_SEPARATOR . 'assets ' ,
114
114
$ temp . 'frontend ' . DIRECTORY_SEPARATOR . 'web ' . DIRECTORY_SEPARATOR . 'admin ' . DIRECTORY_SEPARATOR . 'uploads ' ,
115
- $ temp . 'common ' . DIRECTORY_SEPARATOR . 'config ' . DIRECTORY_SEPARATOR .'conf ' ,
116
115
$ temp . 'api ' . DIRECTORY_SEPARATOR . 'runtime ' ,
117
116
];
118
117
FileHelper::copyDirectory ($ origin , $ publishDir );
@@ -123,8 +122,7 @@ public function actionPublish()
123
122
}
124
123
FileHelper::removeDirectory ($ publishDir . DIRECTORY_SEPARATOR . '.git ' );
125
124
FileHelper::removeDirectory ($ publishDir . DIRECTORY_SEPARATOR . '.idea ' );
126
- FileHelper::createDirectory ($ publishDir . DIRECTORY_SEPARATOR . 'common ' . DIRECTORY_SEPARATOR . 'config ' . DIRECTORY_SEPARATOR .'conf ' , 0777 );
127
- if ( file_exists ($ publishDir . DIRECTORY_SEPARATOR . 'common ' . DIRECTORY_SEPARATOR . 'config ' . DIRECTORY_SEPARATOR .'conf ' . DIRECTORY_SEPARATOR . 'install.lock ' ) ) unlink ($ publishDir . DIRECTORY_SEPARATOR . 'common ' . DIRECTORY_SEPARATOR . 'config ' . DIRECTORY_SEPARATOR .'conf ' . DIRECTORY_SEPARATOR . 'install.lock ' );
125
+ if ( file_exists ($ publishDir . DIRECTORY_SEPARATOR . 'install ' . DIRECTORY_SEPARATOR . 'install.lock ' ) ) unlink ($ publishDir . DIRECTORY_SEPARATOR . 'install ' . DIRECTORY_SEPARATOR . 'install.lock ' );
128
126
file_put_contents ($ temp . 'common ' . DIRECTORY_SEPARATOR . 'config ' . DIRECTORY_SEPARATOR . 'main-local.php ' , "<?php return [];?> " );
129
127
//passthru("composer archive --dir=$publishDir --format=zip");
130
128
$ this ->stdout ('Copy Success ' . "\n" , Console::FG_GREEN );
Original file line number Diff line number Diff line change 133
133
<select onchange="location.href=this.options[this.selectedIndex].value;" style="height: 30px">
134
134
<option <?php if (Yii::$ app ->language == 'zh-CN ' ) {echo 'selected ' ;} ?> value="<?= Url::to (['site/language ' , 'lang ' => 'zh-CN ' ]) ?> ">简体中文</option>
135
135
<option <?php if (Yii::$ app ->language == 'en-US ' ) {echo "selected " ;} ?> value="<?= Url::to (['site/language ' , 'lang ' => 'en-US ' ]) ?> ">English</option>
136
+ <option <?php if (Yii::$ app ->language == 'pt-BR ' ) {echo "selected " ;} ?> value="<?= Url::to (['site/language ' , 'lang ' => 'pt-BR ' ]) ?> ">Português</option>
136
137
</select>
137
138
</p>
138
139
<p><?= Yii::$ app ->feehi ->website_icp ?> Powered by Feehi CMS <a title="飞嗨" target="_blank" href="http://blog.feehi.com">飞嗨</a></p>
You can’t perform that action at this time.
0 commit comments