impl. lazy loading and better media lists

This commit is contained in:
Dennis Eichhorn 2020-09-25 18:01:29 +02:00
parent 8aff03e324
commit 6ee7073ec1

View File

@ -46,8 +46,8 @@ echo $this->getData('nav')->render(); ?>
<span class="rf"> <span class="rf">
<img class="m-profile rf" <img class="m-profile rf"
alt="<?= $this->getHtml('ProfileImage'); ?>" alt="<?= $this->getHtml('ProfileImage'); ?>"
itemprop="logo" itemprop="logo" loading="lazy"
data-lazyload="<?= src="<?=
$employee->getImage() instanceof NullMedia ? $employee->getImage() instanceof NullMedia ?
$employee->getProfile()->getImage() instanceof NullMedia ? $employee->getProfile()->getImage() instanceof NullMedia ?
UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') : UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') :