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
+14
View File
@@ -0,0 +1,14 @@
<?php
defined('IN_TS') or die('Access Denied.');
//插件信息
return array(
'hook'=>'home_index_footer', //钩子
'name' => '相册插件',
'version' => '1.0',
'desc' => '相册插件',
'url' => 'http://www.thinksaas.cn',
'email' => 'thinksaas@qq.com',
'author' => '邱君',
'author_url' => 'http://www.thinksaas.cn',
'isedit' => '0',
);
+32
View File
@@ -0,0 +1,32 @@
<div class="card">
<div class="card-header">推荐相册
<small class="float-right"><a class="text-black-50" href="{tsUrl('photo')}">更多</a></small>
</div>
<div class="card-body">
{if $arrAlbum}
<div class="photoalbumlist">
<div class="row">
{loop $arrAlbum $key $item}
<div class="col-6 col-md-2">
<a href="{tsUrl('photo','album',array('id'=>$item[albumid]))}" class="thumbnail">
<img class="rounded mw100" src="{if $item[albumface] == ''}{SITE_URL}app/photo/skins/default/photo_album.png{else}{php echo tsXimg($item[albumface],'photo',320,'320',$item[path],1)}{/if}" alt="{$item['albumname']}">
</a>
<div class="mt-1 title-cut"><a href="{tsUrl('photo','album',array('id'=>$item[albumid]))}">{$item['albumname']}</a></div>
<div class="fs12 text-black-50">{$item['count_photo']} 张图片</div>
</div>
{/loop}
</div>
</div>
{else}
<div class="c9">暂无推荐相册</div>
{/if}
</div>
</div>
+24
View File
@@ -0,0 +1,24 @@
<?php
defined('IN_TS') or die('Access Denied.');
//相册
function photo(){
$arrAlbum = aac('photo')->findAll('photo_album',array(
'isrecommend'=>1,
),'addtime desc',null,12);
foreach($arrAlbum as $key=>$item){
$arrAlbum[$key]['albumname']=tsTitle($item['albumname']);
}
include template('photo','photo');
}
function photo_css(){
echo '<link href="'.SITE_URL.'plugins/home/photo/style.css" rel="stylesheet" type="text/css" />';
}
addAction('home_index_footer','photo');
addAction('pub_header_top','photo_css');
+5
View File
@@ -0,0 +1,5 @@
.photoalbumlist{}
.photoalbumlist ul{}
.photoalbumlist ul li{float:left;border:solid 1px #DDDDDD;margin:0 7px 7px 7px;height:220px;}
.photoalbumlist ul li .info{padding:5px;}
.photoalbumlist ul li .info p{color:#999999;margin:0px;}