mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-02-04 10:18:41 +00:00
impl. lazy loading and better media lists
This commit is contained in:
parent
f21dd4b4b8
commit
6aa5b2f96d
|
|
@ -38,8 +38,8 @@ $next = empty($accounts) ? '{/prefix}profile/list' : '{/prefix}profile/list?
|
|||
<?php $count = 0; foreach ($accounts as $key => $account) : ++$count;
|
||||
$url = UriFactory::build('{/prefix}profile/single?{?}&id=' . $account->getId()); ?>
|
||||
<tr tabindex="0" tabindex="0" data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><img width="30" class="profile-image"
|
||||
data-lazyload="<?=
|
||||
<td><a href="<?= $url; ?>"><img width="30" loading="lazy" class="profile-image"
|
||||
src="<?=
|
||||
$account->getImage() instanceof NullMedia ?
|
||||
UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') :
|
||||
UriFactory::build('{/prefix}' . $account->getImage()->getPath()); ?>"></a>
|
||||
|
|
|
|||
|
|
@ -68,8 +68,8 @@ echo $this->getData('nav')->render();
|
|||
<span class="rf">
|
||||
<div><img id="preview-profileImage" class="m-profile rf"
|
||||
alt="<?= $this->getHtml('ProfileImage'); ?>"
|
||||
itemprop="logo"
|
||||
data-lazyload="<?=
|
||||
itemprop="logo" loading="lazy"
|
||||
src="<?=
|
||||
$profile->getImage() instanceof NullMedia ?
|
||||
UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') :
|
||||
UriFactory::build('{/prefix}' . $profile->getImage()->getPath()); ?>"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user