Initialer Commit in GIT
This commit is contained in:
26
templates/j_colorbox_rateit.xhtml
Normal file
26
templates/j_colorbox_rateit.xhtml
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
// Add the colorbox style sheet
|
||||
$GLOBALS['TL_CSS'][] = 'assets/jquery/colorbox/'. COLORBOX .'/css/colorbox.min.css||static';
|
||||
|
||||
?>
|
||||
|
||||
<script type="text/javascript" src="system/modules/rateit/public/js/jquery/colorbox/colorbox-rateit.min.js"></script>
|
||||
<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>
|
Reference in New Issue
Block a user