Fix card template.
This commit is contained in:
parent
3c89db9c8e
commit
c1c1489570
|
@ -106,7 +106,7 @@ window.GalleryTheater = function(){
|
||||||
gt.closeBtn.off('click').on("click",gt.destroyTheater);
|
gt.closeBtn.off('click').on("click",gt.destroyTheater);
|
||||||
|
|
||||||
// handler to show theater
|
// handler to show theater
|
||||||
$("div[data-list=images] a").off('click').on("click",function(){
|
$("div[data-list=images] a").filter(":not(.preview)").off('click').on("click",function(){
|
||||||
gt.createTheater($(this).attr("href"));
|
gt.createTheater($(this).attr("href"));
|
||||||
return false;
|
return false;
|
||||||
})
|
})
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
<a href="<%= image['link_to_show'] %>" class="btn btn-secondary view" onclick="window.location.hash = '<%= image['link_to_show'] %>';GalleryTheater();return false;">
|
<a href="<%= image['link_to_show'] %>" class="btn btn-secondary view" onclick="window.location.hash = '<%= image['link_to_show'] %>';GalleryTheater();return false;">
|
||||||
<i class="fa fa-link" aria-hidden="true"></i>
|
<i class="fa fa-link" aria-hidden="true"></i>
|
||||||
</a>
|
</a>
|
||||||
<a href="<%= image['src'] %>" data-toggle="lightbox" data-gallery="gallery" class="btn btn-secondary preview" data-title="<%= image['alt_title'] %>" data-type="image">
|
<a href="<%= image['src'] %>" data-toggle="lightbox" data-gallery="gallery" class="btn btn-secondary preview" data-title="<%= image['alt_title'] %>" data-type="image" target="_blank">
|
||||||
<i class="fa fa-eye" aria-hidden="true"></i>
|
<i class="fa fa-eye" aria-hidden="true"></i>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
<a href="{{link_to_show}}" class="btn btn-secondary view ">
|
<a href="{{link_to_show}}" class="btn btn-secondary view ">
|
||||||
<i class="fa fa-link" aria-hidden="true"></i>
|
<i class="fa fa-link" aria-hidden="true"></i>
|
||||||
</a>
|
</a>
|
||||||
<a href="{{src}}" data-toggle="lightbox" data-gallery="gallery" class="btn btn-secondary preview" data-title="{{alt_title}}" data-type="image">
|
<a href="{{src}}" data-toggle="lightbox" data-gallery="gallery" class="btn btn-secondary preview" data-title="{{alt_title}}" data-type="image" target="_blank">
|
||||||
<i class="fa fa-eye" aria-hidden="true"></i>
|
<i class="fa fa-eye" aria-hidden="true"></i>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -68,6 +68,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "gallery_widget4",
|
"filename" : "gallery_widget4",
|
||||||
|
"force_cover": "true",
|
||||||
"name" : {
|
"name" : {
|
||||||
"zh_tw" : "4. 卡片",
|
"zh_tw" : "4. 卡片",
|
||||||
"en" : "4. Card"
|
"en" : "4. Card"
|
||||||
|
|
Loading…
Reference in New Issue