Correction de l'affichage des images
This commit is contained in:
parent
bb3c5b673c
commit
50e53cbb31
3 changed files with 2 additions and 2 deletions
Before Width: | Height: | Size: 990 B After Width: | Height: | Size: 990 B |
Before Width: | Height: | Size: 400 B After Width: | Height: | Size: 400 B |
4
index.md
4
index.md
|
@ -182,8 +182,8 @@ foreach($services as $service_id => $service) {
|
|||
?>
|
||||
<div>
|
||||
<?php
|
||||
if (file_exists($img_path)) {
|
||||
$sizes = getimagesize($img_path);
|
||||
if (file_exists(SITE . '/' . $img_path)) {
|
||||
$sizes = getimagesize(SITE . '/' . $img_path);
|
||||
?>
|
||||
<img class="imgService" src="<?= $img_path ?>" width="<?= $sizes[0] ?>" height="<?= $sizes[1] ?>" alt="">
|
||||
<?php } ?>
|
||||
|
|
Loading…
Reference in a new issue