The hack allows you to replace the standard functionality of increasing the image in DLE - from Highslide to FancyBox. Works for additional fields too.
DLE version: 13.x-14.x
Encoding: utf-8
Interface: English, Russian
Author: Ticcix
Installation:
1. Connect the hack through the plugin system.
2. Open main.tpl and find:
</head>
Add above:
<link rel = "stylesheet" type = "text / css" href = "{THEME} /css/jquery.fancybox.min.css">
To find:
</body>
Add above:
<script src = "{THEME} /js/jquery.fancybox.min.js"> </script>
<script>
$ ('[data-fancybox]'). fancybox ({
loop: true,
buttons: [
"zoom ",
" share ",
" slideShow ",
" fullScreen ",
" download ",
" thumbs ",
" close "
],
autoFocus: false
});
</script>
<script>
$ ('[data-fancybox]'). fancybox ({
loop: true,
buttons: [
"zoom ",
" share ",
" slideShow ",
" fullScreen ",
" download ",
" thumbs ",
" close "
],
autoFocus: false
});
</script>
Done! Download - fancybox-for-dle-1_0_1.zip
Comments
Post a Comment