|
@@ -404,11 +404,12 @@ def printSteamMenuDeutsch():
|
404
|
404
|
# call this macro like this:
|
405
|
405
|
|
406
|
406
|
# lightgallery([
|
407
|
|
-# [ "image-link", "description" ],
|
408
|
|
-# [ "image-link", "thumbnail-link", "description" ],
|
409
|
|
-# [ "youtube-link", "thumbnail-link", "description" ],
|
410
|
|
-# [ "video-link", "mime", "thumbnail-link", "image-link", "description" ],
|
411
|
|
-# [ "video-link", "mime", "", "", "description" ],
|
|
407
|
+# [ "image-link", "description" ], # 2 elements
|
|
408
|
+# [ "image-link", "thumbnail-link", "description" ], # 3 elements
|
|
409
|
+# [ "youtube-link", "thumbnail-link", "description" ], # 3 elements
|
|
410
|
+# [ "audio-link", "mime", "", "description" ], # 4 elements
|
|
411
|
+# [ "video-link", "mime", "thumbnail-link", "image-link", "description" ], # 5 elements
|
|
412
|
+# [ "video-link", "mime", "", "", "description" ], # 5 elements
|
412
|
413
|
# ])
|
413
|
414
|
|
414
|
415
|
# it will also auto-generate thumbnails and resize and strip EXIF from images
|
|
@@ -511,6 +512,11 @@ def lightgallery(links):
|
511
|
512
|
style = ' style="max-width:300px;max-height:300px;"'
|
512
|
513
|
lightgallery_check_thumbnail(link, img)
|
513
|
514
|
print('<div class="border" style="position:relative;" data-src="' + link + '"><a href="' + link + '"><img class="pic" src="' + img + '" alt="' + alt + '"' + style + '>' + img2 + '</a></div>')
|
|
515
|
+ elif len(l) == 4:
|
|
516
|
+ link, mime, none, alt = l
|
|
517
|
+ print('<div class="border">')
|
|
518
|
+ print('<audio controls style="display:block;"><source src="' + link + '" type="' + mime + '" /></audio>')
|
|
519
|
+ print('<p class="audio_text"><a href="' + link + '">Download audio</a></p></div>')
|
514
|
520
|
elif len(l) == 5:
|
515
|
521
|
v_i += 1
|
516
|
522
|
link, mime, thumb, poster, alt = videos[v_i]
|