mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-01-26 06:48:39 +00:00
impl. lazy loading and better media lists
This commit is contained in:
parent
3f5770ab02
commit
f28742d609
|
|
@ -34,8 +34,8 @@ echo $this->getData('nav')->render(); ?>
|
|||
<a id="iUnitUploadButton" href="#upload" data-action='[{"listener": "click", "key": 1, "action": [{"key": 1, "type": "event.prevent"}, {"key": 2, "type": "dom.click", "selector": "#iUnitUpload"}]}]'>
|
||||
<img id="preview-unitImage" class="profile-image preview"
|
||||
alt="<?= $this->getHtml('Logo'); ?>"
|
||||
itemprop="logo"
|
||||
data-lazyload="<?=
|
||||
itemprop="logo" loading="lazy"
|
||||
src="<?=
|
||||
$unit->getImage() instanceof NullMedia ?
|
||||
UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') :
|
||||
UriFactory::build('{/prefix}' . $unit->getImage()->getPath()); ?>"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user