impl. lazy loading and better media lists

This commit is contained in:
Dennis Eichhorn 2020-09-25 18:01:29 +02:00
parent f8d293b5cd
commit a55faf5e43

View File

@ -12,6 +12,8 @@
*/
declare(strict_types=1);
use phpOMS\Uri\UriFactory;
/**
* @todo Orange-Management/Modules#73
* Profile pics
@ -32,7 +34,7 @@ echo $this->getData('nav')->render();
<?= $this->printHtml($question->getQuestion()); ?>
</div>
<div class="inner">
<img alt="<?= $this->getHtml('AccountImage', '0', '0'); ?>" data-lazyload="<?= UriFactory::build('{/prefix}' . $question->getCreatedBy()->getImage()->getPath()); ?>">
<img alt="<?= $this->getHtml('AccountImage', '0', '0'); ?>" loading="lazy" src="<?= UriFactory::build('{/prefix}' . $question->getCreatedBy()->getImage()->getPath()); ?>">
</div>
</section>
</div>
@ -48,4 +50,4 @@ echo $this->getData('nav')->render();
</section>
</div>
</div>
<?php endforeach; ?>
<?php endforeach; ?>