Works

Fancybox For Dle

The hack allows you to replace the standard functionality of increasing the image in DLE - from Highslide to FancyBox. Works for additional fields too.


Insert main.tpl

</head>

<link rel="stylesheet" type="text/css" href="{THEME}/css/jquery.fancybox.min.css">

</body>

<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>
Rate This Post
Share on:

0 Comments

Categories
Works
17
Coming Soon
0
Blog
12
Paid Plugins
1