Advertisement
wowa-webdesign

Lightbox mit TYPO3

Sep 16th, 2013
9,015
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* Code by René Pflamm, http://gosna.de/author/gosna/ */
  2.  
  3. page = PAGE
  4. page.includeJSFooterlibs {
  5.     magnific = fileadmin/template/magnific-popup/jquery.magnific-popup.js
  6. }
  7. page.includeCSS {
  8.     magnific = fileadmin/template/magnific-popup/magnific-popup.css
  9. }
  10. page.jsFooterInline {
  11.     10 = TEXT
  12.     10.value (
  13.         $(function() {
  14.         $('a[rel*="lightbox"]').magnificPopup({
  15.             type: 'image',
  16.             tLoading: 'Lade Bild...',
  17.             tClose: 'Schließen (Esc)',
  18.             image: {
  19.                 titleSrc: function(item) {
  20.                     var title = item.el.attr('title');
  21.                     var description = item.el.attr('alt');
  22.                     return ((title)?title:'') + ((description)?'<small>'+ description +'</small>':'');
  23.                 }
  24.             },
  25.             gallery: {
  26.                 enabled: true,
  27.                 navigateByImgClick: true,
  28.                 preload: [0,1],
  29.                 tCounter: '%curr% von %total%',
  30.                 tPrev: 'Zurück (Linke Pfeiltaste)',
  31.                 tNext: 'Vorwärts (Rechte Pfeiltaste)'
  32.             },
  33.         });
  34.     });
  35.     )
  36. }
  37. page.10 < styles.content.get
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement