Es mussten die Templates fe_page.html5 und j_colorbox.html5 angepasst werden.
fe_page.html5:
Alt(nur unten am Ende)
Code:
<?php echo $this->mootools; ?> <?php if (!$this->disableCron): ?> <script> <?php if ($this->layout->addJQuery): ?> setTimeout(function(){jQuery.ajax("system/cron/cron.txt",{complete:function(e){var t=e.responseText||0;parseInt(t)<Math.round(+(new Date)/1e3)-<?php echo $this->cronTimeout; ?> + jQuery.ajax("system/cron/cron.php")}})},5e3) <?php else: ?> setTimeout(function(){(new Request({url:"system/cron/cron.txt",onComplete:function(e){e||(e=0),parseInt(e)<Math.round(+(new Date)/1e3)-<?php echo $this->cronTimeout; ?> + (new Request({url:"system/cron/cron.php"})).get()}})).get()},5e3) <?php endif; ?> </script> <?php endif; ?> </body>
Code:
<?php echo $this->mootools; ?> </body>
Alt:
Code:
<?php // Add the colorbox style sheet $GLOBALS['TL_CSS'][] = 'assets/jquery/colorbox/'. COLORBOX .'/css/colorbox.min.css||static'; ?> <script src="<?php echo TL_ASSETS_URL; ?>assets/jquery/colorbox/<?php echo COLORBOX; ?>/js/colorbox.min.js"></script> <script> (function($) { $(document).ready(function() { $('a[data-lightbox]').map(function() { // break loop if parent is a bx slider clone if($(this).parent('div').hasClass('bx-clone')) { return false; } $(this).colorbox({ // Put custom options here loop: false, rel: $(this).attr('data-lightbox'), maxWidth: '95%', maxHeight: '95%', }); }); }); })(jQuery); </script>
Code:
<?php // Add the colorbox style sheet $GLOBALS['TL_CSS'][] = 'assets/colorbox/css/colorbox.min.css||static'; ?> <script src="<?php echo TL_ASSETS_URL; ?>assets/colorbox/js/colorbox.min.js"></script> <script> (function($) { $(document).ready(function() { $('a[data-lightbox]').map(function() { // break loop if parent is a bx slider clone if($(this).parent('div').hasClass('bx-clone')) { return false; } $(this).colorbox({ // Put custom options here loop: false, rel: $(this).attr('data-lightbox'), maxWidth: '95%', maxHeight: '95%' }); }); }); })(jQuery); </script>
Gruß
tschero
Einen Kommentar schreiben: