Add base url config

This commit is contained in:
2023-07-04 11:22:34 +02:00
parent 52bc3105fd
commit d53391ef5a
8 changed files with 148 additions and 100 deletions

View File

@ -93,7 +93,7 @@ try {
foreach ($photos as $photo) {
$thumb = $photo->getThumbnailUrl();?>
<div class="photowrapper">
<img src="<?= $api->api_url.$thumb?>" id="<?= $photo->uid?>">
<img src="<?= $api->api_url.$thumb?>" id="<?= $photo->uid?>" loading="lazy" data-votes="<?=$vote_counts[$photo->uid]?>">
</div>
<?php
}