]> git.mxchange.org Git - friendica-addons.git/commitdiff
v.1.0.4: Support for upcoming imagegrid
authorGrischa Brockhaus <github@brockha.us>
Wed, 14 Dec 2022 17:58:00 +0000 (18:58 +0100)
committerGrischa Brockhaus <github@brockha.us>
Wed, 14 Dec 2022 17:58:00 +0000 (18:58 +0100)
fancybox/createrelease
fancybox/fancybox.php

index 238828d69d849edded3ed9ec01d48865bd16a82e..d31f3a6326dece384879148a346d37b5620a9cb4 100755 (executable)
@@ -2,8 +2,6 @@ MODULE=fancybox
 
 cd ..
 
-# read actual version from module.json
-
 # old releases not needed anymore
 mkdir -p $MODULE/dist
 rm $MODULE/dist/*
index 43219103b37d67993bfa2c98513b1135ebd466e6..565036223a7b91696d3c7b716feb0f97154a15f1 100644 (file)
@@ -2,7 +2,7 @@
 /**
  * Name: Fancybox
  * Description: Open media attachments of posts into a fancybox overlay.
- * Version: 1.03
+ * Version: 1.04
  * Author: Grischa Brockhaus <grischa@brockha.us>
  */
 
@@ -47,7 +47,7 @@ function fancybox_render(App $a, array &$b){
 
                        // Local content images attached:
                        $text = preg_replace_callback(
-                               '#<div class="body-attach">.*?</div>#s',
+                               '#<div class="(body-attach|imagegrid-column)">.*?</div>#s',
                                function ($matches) use ($gallery) {
                                        return str_replace('<a href', '<a data-fancybox="' . $gallery . '" href', $matches[0]);
                                },