Improved tag module and media virtual paths

This commit is contained in:
Dennis Eichhorn 2019-05-22 07:47:03 +02:00
parent 33a809e3d5
commit 15556a0d18

View File

@ -48,13 +48,15 @@ echo $this->getData('nav')->render();
<div class="tab"> <div class="tab">
<div class="row"> <div class="row">
<div class="col-xs-12 col-md-4"> <div class="col-xs-12 col-md-4">
<section itemscope itemtype="http://schema.org/Person" class="box wf-100"> <section itemscope itemtype="http://schema.org/Person" itemtype="http://schema.org/Organization" class="box wf-100">
<header> <header>
<h1> <h1>
<span itemprop="familyName"> <?php if (!empty($account->getAccount()->getName3()) || !empty($account->getAccount()->getName2())) : ?>
<?= $this->printHtml(empty($account->getAccount()->getName3()) ? $account->getAccount()->getName2() : $account->getAccount()->getName3()); ?> <span itemprop="familyName" itemprop="legalName">
</span>, <?= $this->printHtml(empty($account->getAccount()->getName3()) ? $account->getAccount()->getName2() : $account->getAccount()->getName3()); ?>
<span itemprop="givenName"> </span>,
<?php endif; ?>
<span itemprop="givenName" itemprop="legalName">
<?= $this->printHtml($account->getAccount()->getName1()); ?> <?= $this->printHtml($account->getAccount()->getName1()); ?>
</span> </span>
</h1> </h1>
@ -64,6 +66,7 @@ echo $this->getData('nav')->render();
<span class="rf"> <span class="rf">
<img class="m-profile rf" <img class="m-profile rf"
alt="<?= $this->getHtml('ProfileImage'); ?>" alt="<?= $this->getHtml('ProfileImage'); ?>"
itemprop="logo"
data-lazyload="<?= $account->getImage() instanceof NullMedia ? UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') : UriFactory::build('{/prefix}' . $account->getImage()->getPath()); ?>" data-lazyload="<?= $account->getImage() instanceof NullMedia ? UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') : UriFactory::build('{/prefix}' . $account->getImage()->getPath()); ?>"
> >
</span> </span>
@ -73,7 +76,7 @@ echo $this->getData('nav')->render();
<td itemprop="jobTitle">Sailor <td itemprop="jobTitle">Sailor
<tr> <tr>
<th><?= $this->getHtml('Birthday') ?> <th><?= $this->getHtml('Birthday') ?>
<td itemprop="birthDate">06.09.1934 <td itemprop="birthDate" itemprop="foundingDate">06.09.1934
<tr> <tr>
<th><?= $this->getHtml('Ranks') ?> <th><?= $this->getHtml('Ranks') ?>
<td itemprop="memberOf">Gosling <td itemprop="memberOf">Gosling