2014-10-01 07:19:14 +02:00
|
|
|
<?php
|
|
|
|
|
2015-04-02 08:24:26 +02:00
|
|
|
// Add the colorbox style sheet and javascript
|
2014-10-01 07:19:14 +02:00
|
|
|
$GLOBALS['TL_CSS'][] = 'assets/jquery/colorbox/'. COLORBOX .'/css/colorbox.min.css||static';
|
2015-04-02 08:24:26 +02:00
|
|
|
$GLOBALS['TL_JAVASCRIPT'][] = 'system/modules/rateit/public/js/jquery/colorbox/colorbox-rateit.min.js|static';
|
2014-10-01 07:19:14 +02:00
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
<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>
|