mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-06-06 03:56:57 +08:00
应用
This commit is contained in:
@ -99,41 +99,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<ul data-am-widget="gallery" class="am-gallery am-avg-sm-2 am-avg-md-4 am-avg-lg-4 am-gallery-overlay am-container" data-am-gallery="{ pureview: true }" >
|
||||
<li>
|
||||
<div class="am-gallery-item">
|
||||
<a href="http://s.amazeui.org/media/i/demos/bing-1.jpg" class="">
|
||||
<img src="http://wxcs.niuteam.cn/upload/default/adv_pc_index_recommend1.png" alt="远方 有一个地方 那里种有我们的梦想"/>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="am-gallery-item">
|
||||
<a href="http://s.amazeui.org/media/i/demos/bing-2.jpg" class="">
|
||||
<img src="http://wxcs.niuteam.cn/upload/default/adv_pc_index_recommend2.png" alt="某天 也许会相遇 相遇在这个好地方"/>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="am-gallery-item">
|
||||
<a href="http://s.amazeui.org/media/i/demos/bing-3.jpg" class="">
|
||||
<img src="http://wxcs.niuteam.cn/upload/default/adv_pc_index_recommend3.png" alt="不要太担心 只因为我相信"/>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="am-gallery-item">
|
||||
<a href="http://s.amazeui.org/media/i/demos/bing-4.jpg" class="">
|
||||
<img src="http://wxcs.niuteam.cn/upload/default/adv_pc_index_recommend4.png" alt="终会走过这条遥远的道路"/>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- 楼层数据上面 -->
|
||||
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}}
|
||||
<div class="plugins-tag">
|
||||
|
||||
@ -35,6 +35,11 @@ class Hook extends Controller
|
||||
{
|
||||
switch($params['hook_name'])
|
||||
{
|
||||
// style css
|
||||
case 'plugins_common_header' :
|
||||
$ret = $this->Css($params);
|
||||
break;
|
||||
|
||||
// 楼层数据上面
|
||||
case 'plugins_view_home_floor_top' :
|
||||
$ret = $this->HomeFloorTopAdv($params);
|
||||
@ -64,5 +69,26 @@ class Hook extends Controller
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* css
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 1.0.0
|
||||
* @datetime 2019-02-06T16:16:34+0800
|
||||
* @param [array] $params [输入参数]
|
||||
*/
|
||||
public function Css($params = [])
|
||||
{
|
||||
return '<style type="text/css">
|
||||
@media only screen and (min-width:640px) {
|
||||
.plugins-homemiddleadv-home-adv ul.am-gallery {
|
||||
width: calc(100% + 20px);
|
||||
margin-left: -10px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
}
|
||||
</style>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -17,6 +17,9 @@
|
||||
"is_home":false
|
||||
},
|
||||
"hook":{
|
||||
"plugins_common_header":[
|
||||
"app\\plugins\\homemiddleadv\\Hook"
|
||||
],
|
||||
"plugins_view_home_floor_top":[
|
||||
"app\\plugins\\homemiddleadv\\Hook"
|
||||
]
|
||||
|
||||
@ -1,13 +1,15 @@
|
||||
{{if !empty($data_list)}}
|
||||
<ul data-am-widget="gallery" class="am-gallery am-avg-sm-2 am-avg-md-4 am-avg-lg-4 am-gallery-overlay am-container" data-am-gallery="{}">
|
||||
{{foreach $data_list as $k=>$v}}
|
||||
<li>
|
||||
<div class="am-gallery-item">
|
||||
<a href="{{if empty($v['url'])}}javascript:;{{else /}}{{$v.url}}{{/if}}" {{if isset($v['is_new_window_open']) and $v['is_new_window_open'] eq 1}}target="_blank"{{/if}}>
|
||||
<img src="{{$v.images_url}}" alt="{{$v.name}}" />
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
{{/foreach}}
|
||||
</ul>
|
||||
<div class="am-container plugins-homemiddleadv-home-adv">
|
||||
<ul data-am-widget="gallery" class="am-gallery am-avg-sm-2 am-avg-md-4 am-avg-lg-4 am-gallery-overlay" data-am-gallery="{}">
|
||||
{{foreach $data_list as $k=>$v}}
|
||||
<li>
|
||||
<div class="am-gallery-item">
|
||||
<a href="{{if empty($v['url'])}}javascript:;{{else /}}{{$v.url}}{{/if}}" {{if isset($v['is_new_window_open']) and $v['is_new_window_open'] eq 1}}target="_blank"{{/if}}>
|
||||
<img src="{{$v.images_url}}" alt="{{$v.name}}" />
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
{{/foreach}}
|
||||
</ul>
|
||||
</div>
|
||||
{{/if}}
|
||||
@ -86,6 +86,7 @@ return array (
|
||||
array (
|
||||
0 => 'app\\plugins\\expressforkdn\\Hook',
|
||||
1 => 'app\\plugins\\touristbuy\\Hook',
|
||||
2 => 'app\\plugins\\homemiddleadv\\Hook',
|
||||
),
|
||||
'plugins_admin_common_header' =>
|
||||
array (
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -30,10 +30,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width:640px) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 幻灯片编辑
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
Reference in New Issue
Block a user