Add user image output draft

This commit is contained in:
Dennis Eichhorn 2017-07-25 19:17:35 +02:00
parent c58062b7e2
commit 07567878b5

View File

@ -35,7 +35,7 @@ echo $this->getData('nav')->render();
<!-- @formatter:off -->
<table class="list">
<tr>
<th><?= $this->getHtml('Name') ?><img alt="<?= $this->getHtml('ProfileImage'); ?>" src="<?= $account->getImage()->getPath(); ?>">
<th><?= $this->getHtml('Name') ?><img 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') : $account->getImage()->getPath(); ?>">
<td><span itemprop="familyName"><?= htmlspecialchars($account->getAccount()->getName3(), ENT_COMPAT, 'utf-8'); ?></span>, <span itemprop="givenName"><?= htmlspecialchars($account->getAccount()->getName1(), ENT_COMPAT, 'utf-8'); ?></span>
<tr>
<th><?= $this->getHtml('Occupation') ?>