Update templates.
This commit is contained in:
parent
0482fd055d
commit
9b7d054908
|
@ -25,8 +25,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$('[data-subpart-id="{{subpart-id}}"] .next-button').click(function(){
|
$('[data-subpart-id="{{subpart-id}}"] .next-button').click(function(){
|
||||||
$(this).parent("ul").siblings('.widget-content').cycle("next");
|
$(this).parent("ul").siblings('.widget-content').cycle("next");
|
||||||
|
|
|
@ -0,0 +1,51 @@
|
||||||
|
<div class="widget-link widget-6">
|
||||||
|
<div class="widget-link__more-wrap clearfix">
|
||||||
|
<h2 class="widget-link__widget-title">
|
||||||
|
<span class="title">{{widget-title}}</span>
|
||||||
|
</h2>
|
||||||
|
</div>
|
||||||
|
<div class="widget-link_wrapper">
|
||||||
|
<div class="cycle-slideshow widget-content" style="margin: 0em 3.125em;"
|
||||||
|
data-level="0" data-list="web_link" data-cycle-slides="> li"
|
||||||
|
data-cycle-fx="carousel" data-cycle-timeout="0" data-cycle-carousel-visible="5" data-cycle-pause-on-hover="true" data-cycle-log="false" data-cycle-carousel-fluid="true">
|
||||||
|
<li class="widget-link__item">
|
||||||
|
<div class="liWrapper">
|
||||||
|
<a class="widget-content-title" href="{{link_to_show}}" target="_blank" title="{{title_text}}">
|
||||||
|
<img class="widget-link__img" src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}"><br />
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<ul class="button-mid">
|
||||||
|
<i class="fa fa-angle-left prev-button" aria-label="<%= I18n.t("ad_banner.prev") %>"></i>
|
||||||
|
<i class="fa fa-angle-right next-button" aria-label="<%= I18n.t("ad_banner.next") %>"></i>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$('[data-subpart-id="{{subpart-id}}"] .next-button').click(function(){
|
||||||
|
$(this).parent("ul").siblings('.widget-content').cycle("next");
|
||||||
|
})
|
||||||
|
$('[data-subpart-id="{{subpart-id}}"] .prev-button').click(function(){
|
||||||
|
$(this).parent("ul").siblings('.widget-content').cycle("prev");
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
<style type="text/css">
|
||||||
|
.widget-link_wrapper{
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.widget-link.widget-6 .button-mid{
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
.widget-link.widget-6 .button-mid .fa{
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -57,6 +57,14 @@
|
||||||
"en" : "5. Banner 3(carousel 5)"
|
"en" : "5. Banner 3(carousel 5)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "thumb.png"
|
"thumbnail" : "thumb.png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename" : "web_res_widget6",
|
||||||
|
"name" : {
|
||||||
|
"zh_tw" : "6. 輪播4 - 僅有圖片,無標題(carousel 5)",
|
||||||
|
"en" : "6. Banner 4 - Only Images, No title(carousel 5)"
|
||||||
|
},
|
||||||
|
"thumbnail" : "thumb.png"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue