Files
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

48 lines
1.3 KiB
PHP

<?php
/**
* Underscore.js template
*
* @package fusion-builder
* @since 2.0
*/
?>
<script type="text/html" id="tmpl-fusion_gallery-shortcode">
<div {{{ _.fusionGetAttributes( attr ) }}}></div>
<div class="fusion-clearfix"></div>
</script>
<script type="text/html" id="tmpl-fusion_gallery_image-shortcode">
<#
var images_html = '',
image_html = '';
if ( 'undefined' !== typeof imageData ) {
image_html = imageData.image_html;
} else {
image_html = '<div class="fusion-builder-placeholder">' + fusionBuilderText.gallery_placeholder + '</div>';
}
if ( 'masonry' === galleryLayout ) {
image_html = '<div ' + _.fusionGetAttributes( imagesAttr.masonryWrapper ) + '>' + image_html + '</div>';
}
images_html += '<div ' + _.fusionGetAttributes( imagesAttr.images ) + '>';
images_html += '<div ' + _.fusionGetAttributes( imageWrapperAttr ) + '>';
if ( galleryLightbox && 'no' !== galleryLightbox ) {
images_html += '<a ' + _.fusionGetAttributes( imagesAttr.link ) + '>' + image_html + '</a>';
} else {
images_html += image_html;
}
images_html += '</div>';
images_html += '</div>';
// TODO: between child views ?
if ( 0 === counter % galleryColumns && 'grid' === galleryLayout ) {
images_html += '<div class="clearfix"></div>';
}
#>
{{{ images_html }}}
</script>