27 lines
700 B
HTML
27 lines
700 B
HTML
|
<?php
|
||
|
|
||
|
// Add the colorbox style sheet and javascript
|
||
|
$GLOBALS['TL_CSS'][] = 'assets/jquery/colorbox/'. COLORBOX .'/css/colorbox.min.css||static';
|
||
|
$GLOBALS['TL_JAVASCRIPT'][] = 'system/modules/rateit/public/js/jquery/colorbox/colorbox-rateit.min.js|static';
|
||
|
|
||
|
?>
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
/* <![CDATA[ */
|
||
|
(function($) {
|
||
|
$(document).ready(function() {
|
||
|
$('a[rel^=lightbox]').colorbox({
|
||
|
// Put custom options here
|
||
|
loop: false,
|
||
|
maxWidth: '95%',
|
||
|
maxHeight: '95%'
|
||
|
});
|
||
|
});
|
||
|
|
||
|
String.prototype.endsWith = function(suffix) {
|
||
|
return this.indexOf(suffix, this.length - suffix.length) !== -1;
|
||
|
};
|
||
|
})(jQuery);
|
||
|
/* ]]> */
|
||
|
</script>
|