begin of thinksaas 3.68

Signed-off-by: kevin <kevin@lmve.net>
This commit is contained in:
2023-06-22 13:33:25 +08:00
commit 963ec1b2ea
2746 changed files with 331806 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
defined('IN_TS') or die('Access Denied.');
//首页幻灯片插件
function slide(){
$arrSlide = aac('home')->findAll('slide',array(
'typeid'=>0,
),'addtime desc');
foreach($arrSlide as $key=>$item){
if($GLOBALS['TS_SITE']['file_upload_type']==1){
$arrSlide[$key]['photo_url'] = $GLOBALS['TS_SITE']['alioss_bucket_url'].'/uploadfile/slide/'.$item['photo'].'?v='.$item['addtime'];
}else{
$arrSlide[$key]['photo_url'] = SITE_URL.'uploadfile/slide/'.$item['photo'].'?v='.$item['addtime'];
}
}
include template('slide','slide');
}
addAction('home_index_header','slide');