Initialer Commit in GIT
This commit is contained in:
33
templates/moo_mediabox_rateit.xhtml
Normal file
33
templates/moo_mediabox_rateit.xhtml
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
// Add the mediabox style sheet
|
||||
$GLOBALS['TL_CSS'][] = 'assets/mootools/mediabox/'. MEDIABOX .'/css/mediaboxAdvBlack21.css||static';
|
||||
|
||||
?>
|
||||
|
||||
<script type="text/javascript" src="system/modules/rateit/public/js/mootools/mediabox/mediabox-rateit.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* <![CDATA[ */
|
||||
(function($) {
|
||||
window.addEvent('domready', function() {
|
||||
var links = $$('a').filter(function(el) {
|
||||
return el.rel && el.rel.test(/^lightbox/i);
|
||||
});
|
||||
$$(links).mediabox({
|
||||
/* Put custom options here */
|
||||
}, null, function(el) {
|
||||
var rel0 = this.rel.replace(/[[]|]/gi,' ');
|
||||
var relsize = rel0.split(' ');
|
||||
return (this == el) || ((this.rel.length > 8) && el.rel.match(relsize[1]));
|
||||
});
|
||||
$('mbImage').addEvent('swipe', function(e) {
|
||||
(e.direction == 'left') ? $('mbNextLink').fireEvent('click') : $('mbPrevLink').fireEvent('click');
|
||||
});
|
||||
});
|
||||
|
||||
String.prototype.endsWith = function(suffix) {
|
||||
return this.indexOf(suffix, this.length - suffix.length) !== -1;
|
||||
};
|
||||
})(document.id);
|
||||
/* ]]> */
|
||||
</script>
|
Reference in New Issue
Block a user