mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-02-15 23:08:40 +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;
|
<?php $count = 0; foreach ($accounts as $key => $account) : ++$count;
|
||||||
$url = UriFactory::build('{/prefix}profile/single?{?}&id=' . $account->getId()); ?>
|
$url = UriFactory::build('{/prefix}profile/single?{?}&id=' . $account->getId()); ?>
|
||||||
<tr tabindex="0" tabindex="0" data-href="<?= $url; ?>">
|
<tr tabindex="0" tabindex="0" data-href="<?= $url; ?>">
|
||||||
<td><a href="<?= $url; ?>"><img width="30" class="profile-image"
|
<td><a href="<?= $url; ?>"><img width="30" loading="lazy" class="profile-image"
|
||||||
data-lazyload="<?=
|
src="<?=
|
||||||
$account->getImage() instanceof NullMedia ?
|
$account->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') :
|
||||||
UriFactory::build('{/prefix}' . $account->getImage()->getPath()); ?>"></a>
|
UriFactory::build('{/prefix}' . $account->getImage()->getPath()); ?>"></a>
|
||||||
|
|
|
||||||
|
|
@ -68,8 +68,8 @@ echo $this->getData('nav')->render();
|
||||||
<span class="rf">
|
<span class="rf">
|
||||||
<div><img id="preview-profileImage" class="m-profile rf"
|
<div><img id="preview-profileImage" class="m-profile rf"
|
||||||
alt="<?= $this->getHtml('ProfileImage'); ?>"
|
alt="<?= $this->getHtml('ProfileImage'); ?>"
|
||||||
itemprop="logo"
|
itemprop="logo" loading="lazy"
|
||||||
data-lazyload="<?=
|
src="<?=
|
||||||
$profile->getImage() instanceof NullMedia ?
|
$profile->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') :
|
||||||
UriFactory::build('{/prefix}' . $profile->getImage()->getPath()); ?>"
|
UriFactory::build('{/prefix}' . $profile->getImage()->getPath()); ?>"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user