]> git.lizzy.rs Git - dirlistozxa.git/commitdiff
Make icon clickable too
authorROllerozxa <rollerozxa@voxelmanip.se>
Sat, 29 Apr 2023 15:08:57 +0000 (17:08 +0200)
committerROllerozxa <rollerozxa@voxelmanip.se>
Sat, 29 Apr 2023 15:08:57 +0000 (17:08 +0200)
dirlistozxa.php

index f23c6aebd9f6fd493ec52b070731703d3b0e5313..6253106db48b306391f2bc0f6503ede5c5012ee0 100644 (file)
@@ -61,8 +61,12 @@ function row($name, $date, $size, $thumb) {
        };
 
        return sprintf(
-               '<tr><td class="tum"><img src="%s" loading="lazy"></td><td><a href="%s">%s</a></td><td>%s</td><td class="r">%s</td></tr>',
-       $img, $name, $name, $date, $size);
+               '<tr>
+                       <td class="tum"><a href="%s"><img src="%s" loading="lazy"></td>
+                       <td><a href="%s">%s</a></td>
+                       <td>%s</td><td class="r">%s</td>
+               </tr>',
+       $name, $img, $name, $name, $date, $size);
 }
 
 function build_blocks($items) {