mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-01-27 06:28:40 +00:00
Lazy load profile image
This commit is contained in:
parent
7a3243e679
commit
0d30cf17f1
|
|
@ -32,7 +32,7 @@ echo $this->getData('nav')->render();
|
|||
<header><h1><span itemprop="familyName"><?= $this->printHtml($account->getAccount()->getName3()); ?></span>, <span itemprop="givenName"><?= $this->printHtml($account->getAccount()->getName1()); ?></span></h1></header>
|
||||
<div class="inner">
|
||||
<!-- @formatter:off -->
|
||||
<span class="rf"><img class="m-profile rf" alt="<?= $this->getHtml('ProfileImage'); ?>" src="<?= $account->getImage() instanceof \Modules\Media\Models\NullMedia ? \phpOMS\Uri\UriFactory::build('{/base}/Web/Backend/img/user_default_' . mt_rand(1, 6) .'.png') : \phpOMS\Uri\UriFactory::build('{/base}/' . $account->getImage()->getPath()); ?>">
|
||||
<span class="rf"><img class="m-profile rf" alt="<?= $this->getHtml('ProfileImage'); ?>" data-lazyload="<?= $account->getImage() instanceof \Modules\Media\Models\NullMedia ? \phpOMS\Uri\UriFactory::build('{/base}/Web/Backend/img/user_default_' . mt_rand(1, 6) .'.png') : \phpOMS\Uri\UriFactory::build('{/base}/' . $account->getImage()->getPath()); ?>">
|
||||
</span>
|
||||
<table class="list">
|
||||
<tr>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user