<?php
// Add the colorbox style sheet
$GLOBALS['TL_CSS'][] = 'files/themes/vonrotenberg_2020/assets/js/lib/jBox/1.0.7/jBox.min.css|static';
$GLOBALS['TL_CSS'][] = 'files/themes/vonrotenberg_2020/assets/js/lib/jBox/1.0.7/plugins/jBox.Image.css|static';
$GLOBALS['TL_CSS'][] = 'files/themes/vonrotenberg_2020/assets/css/jBox.TooltipDurbacher.css|static';
?>
<script src="files/themes/vonrotenberg_2020/assets/js/lib/jBox/1.0.7/jBox.all.min.js"></script>
<script>
jQuery(function($) {
$('a[data-jbox-iframe]').map(function() {
new jBox('Modal', {
attach: $(this),
preventDefault: true,
title: $(this).data('jbox-title') ? '<h3>' + $(this).data('jbox-title') + '</h3>' : ($(this).attr('title') ? '<h3>' + $(this).attr('title') + '</h3>' : ''),
content: '<iframe frameborder="0" class="jBox-iframe" src="' + $(this).attr('href') + '"></iframe>',
closeButton: 'title',
width: 700,
height: 650,
theme: 'iframe',
addClass: 'jBox-noPadding'
});
});
$('a[data-jbox-modal]').map(function() {
new jBox('Modal', {
attach: $(this),
preventDefault: true,
title: $(this).data('jbox-title') ? '<h3>' + $(this).data('jbox-title') + '</h3>' : ($(this).attr('title') ? '<h3>' + $(this).attr('title') + '</h3>' : ''),
content: $($(this).data('jbox-modal')),
closeButton: 'title',
width: 700,
height: 650,
theme: 'iframe',
// addClass: 'jBox-noPadding'
});
});
$lbImages = $('[data-lightbox]').filter(function(index) {
if (!$(this).parents().eq(3).hasClass('slick-cloned'))
{
return true;
}
});
new jBox('Image', {
// Put custom options here
gallery: 'data-lightbox',
attach: $lbImages,
imageCounter: true
});
new jBox('Tooltip', {
attach: '.tooltip',
theme: 'TooltipDurbacher',
pointer: 'right:60',
maxWidth: 250,
adjustPosition: true,
adjustTracker: true,
closeOnClick: true
});
});
</script>