SHOW:
|
|
- or go back to the newest paste.
1 | <?php | |
2 | ||
3 | $directory = "./01/"; | |
4 | $namePattern = "_o.jpg" | |
5 | $miniaturePattern = "_o-lightbox.jpg"; | |
6 | ||
7 | $images = glob($directory . "*".$namePattern); | |
8 | ||
9 | foreach($images as $image): | |
10 | ?> | |
11 | <li> | |
12 | - | <li><a href="<?php echo $image; ?>" class="html5lightbox"><img src="<?php echo str_replace($namePattern, $miniaturePattern, $image); ?>"/></a></li> |
12 | + | <a href="<?php echo $image; ?>" class="html5lightbox"> |
13 | <img src="<?php echo str_replace($namePattern, $miniaturePattern, $image); ?>"/> | |
14 | </a> | |
15 | </li> | |
16 | <?php endforeach; ?> |