Correction de l'affichage des images
This commit is contained in:
parent
bb3c5b673c
commit
50e53cbb31
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>
|
<div>
|
||||||
<?php
|
<?php
|
||||||
if (file_exists($img_path)) {
|
if (file_exists(SITE . '/' . $img_path)) {
|
||||||
$sizes = getimagesize($img_path);
|
$sizes = getimagesize(SITE . '/' . $img_path);
|
||||||
?>
|
?>
|
||||||
<img class="imgService" src="<?= $img_path ?>" width="<?= $sizes[0] ?>" height="<?= $sizes[1] ?>" alt="">
|
<img class="imgService" src="<?= $img_path ?>" width="<?= $sizes[0] ?>" height="<?= $sizes[1] ?>" alt="">
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
Loading…
Reference in New Issue