mirror of https://github.com/1099438829/apeblog
This commit is contained in:
parent
0506bb97fc
commit
756c7a62a3
|
|
@ -21,6 +21,7 @@ class Zz extends TagLib{
|
||||||
'list'=> ['attr' => 'orderby,pagesize,type,typeid,void,model,where,display', 'close' => 1],
|
'list'=> ['attr' => 'orderby,pagesize,type,typeid,void,model,where,display', 'close' => 1],
|
||||||
'prenext'=> ['attr' => 'get,cid,void', 'close' => 1],
|
'prenext'=> ['attr' => 'get,cid,void', 'close' => 1],
|
||||||
'flink'=> ['attr' => 'type,row,void', 'close' => 1],
|
'flink'=> ['attr' => 'type,row,void', 'close' => 1],
|
||||||
|
'banner'=> ['attr' => 'type,row,void', 'close' => 1],
|
||||||
'sql'=> ['attr' => 'sql', 'close' => 1],
|
'sql'=> ['attr' => 'sql', 'close' => 1],
|
||||||
'article'=> ['attr' => 'id,void,model', 'close' => 1],
|
'article'=> ['attr' => 'id,void,model', 'close' => 1],
|
||||||
'tags'=> ['attr' => 'tags,void', 'close' => 1],
|
'tags'=> ['attr' => 'tags,void', 'close' => 1],
|
||||||
|
|
@ -185,6 +186,26 @@ class Zz extends TagLib{
|
||||||
return $parse;
|
return $parse;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* banner
|
||||||
|
*/
|
||||||
|
public function tagBanner($tag,$content)
|
||||||
|
{
|
||||||
|
$type=isset($tag['type'])?$tag['type']:'text';
|
||||||
|
$type=$type=='text'?0:1;
|
||||||
|
$row=isset($tag['row'])?$tag['row']:100;
|
||||||
|
$void=isset($tag['void'])?$tag['void']:'field';
|
||||||
|
|
||||||
|
$parse = '<?php ';
|
||||||
|
$parse .= '$__LIST__ ='."tpl_get_banner($type,$row);";
|
||||||
|
$parse .= ' ?>';
|
||||||
|
$parse .= '{volist name="__LIST__" id="'.$void.'"}';
|
||||||
|
$parse .= $content;
|
||||||
|
$parse .= '{/volist}';
|
||||||
|
return $parse;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 执行SQL
|
* 执行SQL
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -525,6 +525,29 @@ function tpl_get_friend_link($type,$row){
|
||||||
return $flinkListTemp;
|
return $flinkListTemp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 模板-banner
|
||||||
|
*/
|
||||||
|
function tpl_get_banner($type,$row){
|
||||||
|
$bannerList=cache('DATA_BANNER');
|
||||||
|
if($bannerList===null){
|
||||||
|
$bannerList=Db::name('slides')->where('status',1)->order('sort asc')->limit($row)->select();
|
||||||
|
cache('DATA_BANNER',$bannerList);
|
||||||
|
}
|
||||||
|
if($type===0){
|
||||||
|
return $bannerList;
|
||||||
|
}
|
||||||
|
$bannerListTemp=[];
|
||||||
|
foreach ($bannerList as $key=>$item){
|
||||||
|
if($item['image']){
|
||||||
|
array_push($bannerListTemp,$item);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $bannerListTemp;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (!function_exists('web_config'))
|
if (!function_exists('web_config'))
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -20,8 +20,10 @@
|
||||||
<div>
|
<div>
|
||||||
<div class="swiper-container carousel">
|
<div class="swiper-container carousel">
|
||||||
<div class="swiper-wrapper">
|
<div class="swiper-wrapper">
|
||||||
<div class="swiper-slide"><a href="javascript:void(0);" target=""><img
|
{zz:banner pagesize="5" typeid="$cid"}
|
||||||
src="/uploads/article/2021/03/11.jpg" alt=""></a></div>
|
<div class="swiper-slide"><a href="{$field['url']}" target=""><img
|
||||||
|
src="{$field['image']}" alt="">{$field['title']}</a></div>
|
||||||
|
{/zz:banner}
|
||||||
</div>
|
</div>
|
||||||
<div class="swiper-pagination"></div>
|
<div class="swiper-pagination"></div>
|
||||||
<div class="swiper-button-prev"></div>
|
<div class="swiper-button-prev"></div>
|
||||||
|
|
@ -52,54 +54,19 @@
|
||||||
</style>
|
</style>
|
||||||
<div class="index-top-postcard-plane">
|
<div class="index-top-postcard-plane">
|
||||||
<div class="index-top-postcard-body">
|
<div class="index-top-postcard-body">
|
||||||
|
{zz:list pagesize="4" typeid="2"}
|
||||||
<div class="index-top-postcard-item">
|
<div class="index-top-postcard-item">
|
||||||
<div class="index-top-postcard-main">
|
<div class="index-top-postcard-main">
|
||||||
<div class="post-item-thumbnail">
|
<div class="post-item-thumbnail">
|
||||||
<a href="oaworkflowapprove/index.html"><img
|
<a href="{$field['url']}"><img
|
||||||
src="/uploads/article/2021/02/workflow0.png" alt=""></a>
|
src="{$field['cover_path']}" alt=""></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="index-top-postcard-title">
|
<div class="index-top-postcard-title">
|
||||||
<a href="oaworkflowapprove/index.html">常见审批流的探讨</a>
|
<a href="{$field['url']}">{$field['title']}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="index-top-postcard-item">
|
|
||||||
<div class="index-top-postcard-main">
|
|
||||||
<div class="post-item-thumbnail">
|
|
||||||
<a href="decoration-erp/index.html"><img src="/uploads/article/2021/03/甘特图装修.png"
|
|
||||||
alt=""></a>
|
|
||||||
</div>
|
|
||||||
<div class="index-top-postcard-title">
|
|
||||||
<a href="decoration-erp/index.html">某装修公司老板的项目管理系统的思维</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="index-top-postcard-item">
|
|
||||||
<div class="index-top-postcard-main">
|
|
||||||
<div class="post-item-thumbnail">
|
|
||||||
<a href="oracle-ebs-om-order-table/index.html"><img
|
|
||||||
src="/uploads/article/2021/02/om-workflow.png" alt=""></a>
|
|
||||||
</div>
|
|
||||||
<div class="index-top-postcard-title">
|
|
||||||
<a href="oracle-ebs-om-order-table/index.html">oracle EBS从销售出货到物流入库全过程</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="index-top-postcard-item">
|
|
||||||
<div class="index-top-postcard-main">
|
|
||||||
<div class="post-item-thumbnail">
|
|
||||||
<a href="oracle-ebs-pur-inventory-table/index.html"><img
|
|
||||||
src="/uploads/article/2020/12/pur-workflow.png" alt=""></a>
|
|
||||||
</div>
|
|
||||||
<div class="index-top-postcard-title">
|
|
||||||
<a href="oracle-ebs-pur-inventory-table/index.html">oracle EBS采购入库收货财务匹配付款全过程</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
{/zz:list}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue