2017-03-12 00:04:43 +00:00
|
|
|
<style>
|
|
|
|
#carousel-{{cls}} > * {
|
|
|
|
z-index: 2;
|
|
|
|
}
|
|
|
|
#carousel-{{cls}}:after {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
z-index: 1;
|
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
|
|
|
line-height: 500px;
|
|
|
|
text-align: center;
|
|
|
|
content: 'Loading ...';
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2017-03-11 12:21:07 +00:00
|
|
|
<div class="modal fade {{cls}}" tabindex="-1" role="dialog">
|
2017-03-12 00:04:43 +00:00
|
|
|
<div class="modal-dialog" style="width: auto; max-width: 1026px !important;" role="document">
|
2017-03-11 12:21:07 +00:00
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
|
|
<h4 class="modal-title">{{#translate}}{{title}}{{/translate}}</h4>
|
|
|
|
</div>
|
2017-03-12 00:04:43 +00:00
|
|
|
<div id="carousel-{{cls}}" class="carousel slide" data-interval="false" style="min-height: 500px;">
|
2017-03-11 12:21:07 +00:00
|
|
|
<!-- Indicators -->
|
|
|
|
<ol class="carousel-indicators">
|
|
|
|
<li data-target="#carousel-{{cls}}" data-slide-to="0" class="active"></li>
|
|
|
|
<li data-target="#carousel-{{cls}}" data-slide-to="1"></li>
|
|
|
|
<li data-target="#carousel-{{cls}}" data-slide-to="2"></li>
|
|
|
|
</ol>
|
|
|
|
|
|
|
|
<!-- Wrapper for slides -->
|
|
|
|
<div class="carousel-inner" role="listbox">
|
|
|
|
|
|
|
|
{{#if img01}}
|
|
|
|
<div class="item active">
|
2017-03-12 00:04:43 +00:00
|
|
|
<img data-src="{{img01}}">
|
2017-03-11 12:21:07 +00:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if img02}}
|
|
|
|
<div class="item">
|
2017-03-12 00:04:43 +00:00
|
|
|
<img data-src="{{img02}}">
|
2017-03-11 12:21:07 +00:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if img03}}
|
|
|
|
<div class="item">
|
2017-03-12 00:04:43 +00:00
|
|
|
<img data-src="{{img03}}">
|
2017-03-11 12:21:07 +00:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if img04}}
|
|
|
|
<div class="item">
|
2017-03-12 00:04:43 +00:00
|
|
|
<img data-src="{{img04}}">
|
2017-03-11 12:21:07 +00:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if img05}}
|
|
|
|
<div class="item">
|
2017-03-12 00:04:43 +00:00
|
|
|
<img data-src="{{img05}}">
|
2017-03-11 12:21:07 +00:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if img06}}
|
|
|
|
<div class="item">
|
2017-03-12 00:04:43 +00:00
|
|
|
<img data-src="{{img06}}">
|
2017-03-11 12:21:07 +00:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if img07}}
|
|
|
|
<div class="item">
|
2017-03-12 00:04:43 +00:00
|
|
|
<img data-src="{{img07}}">
|
2017-03-11 12:21:07 +00:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if img08}}
|
|
|
|
<div class="item">
|
2017-03-12 00:04:43 +00:00
|
|
|
<img data-src="{{img08}}">
|
2017-03-11 12:21:07 +00:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if img09}}
|
|
|
|
<div class="item">
|
2017-03-12 00:04:43 +00:00
|
|
|
<img data-src="{{img09}}">
|
2017-03-11 12:21:07 +00:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if img10}}
|
|
|
|
<div class="item">
|
2017-03-12 00:04:43 +00:00
|
|
|
<img data-src="{{img10}}">
|
2017-03-11 12:21:07 +00:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2017-03-12 00:04:43 +00:00
|
|
|
{{#if img02}}
|
|
|
|
<!-- Controls -->
|
|
|
|
<a class="left carousel-control" href="#carousel-{{cls}}" role="button" data-slide="prev">
|
|
|
|
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
|
|
|
|
<span class="sr-only">Previous</span>
|
|
|
|
</a>
|
|
|
|
<a class="right carousel-control" href="#carousel-{{cls}}" role="button" data-slide="next">
|
|
|
|
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
|
|
|
|
<span class="sr-only">Next</span>
|
|
|
|
</a>
|
|
|
|
{{/if}}
|
2017-03-11 12:21:07 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-03-12 00:04:43 +00:00
|
|
|
|
|
|
|
<script>
|
|
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
|
|
$('.modal.{{cls}}').on('show.bs.modal', function() {
|
|
|
|
$(this).find('img[data-src]').each(function() {
|
|
|
|
$(this).attr('src', $(this).data('src'));
|
|
|
|
$(this).removeAttr('data-src');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|