Single v1

-commentaires cachés
-settings
-3 lightbox
-enqueue js et css
This commit is contained in:
2017-01-16 06:32:13 +01:00
parent 1fa1f61d0e
commit 6df0f90b09
68 changed files with 3312 additions and 402 deletions

25
js/my-colorbox.js Normal file
View File

@@ -0,0 +1,25 @@
$(document).ready(function(){
// Default settings
//$.extend($.colorbox.settings, {opacity:0.5, speed:0, close:'Exit'});
//
$(".gallery").colorbox({rel:'gallery', maxWidth:'95%', maxHeight:'95%', transition:'fade'});
$(".slideshow").colorbox({rel:'slideshow', maxWidth:'95%', maxHeight:'95%', speed: '300',
slideshow:true, transition:'fade', slideshowSpeed: '3500', fadeOut: '350',
current: "image {current} sur {total}", slideshowStart: "Démarrer slideshow", slideshowStop: "Stopper slideshow"
});
//jQuery('a.gallery').colorbox();
//$('.non-retina').colorbox({rel:'group5', transition:'none'})
//$('.retina').colorbox({rel:'group5', transition:'none', retinaImage:true, retinaUrl:true});
});
// http://www.jacklmoore.com/colorbox/faq/#faq-titlelink
// https://stackoverflow.com/search?page=2&tab=relevance&q=colorbox
// http://www.jacklmoore.com/colorbox/
// <a href="" title="Description" class="">...</a> => Le title s'affiche dans la colorbox
/*
WP Media: WorpPress (post)
-Description -> <a href="" title="Description"> -> Colorbox: sous la photo
-Légende -> <p class="wp-caption-text">Légende</p> (caption sous la photo)
-Texte alternatif -> <img src="" alt="cerf" />
*/