render box address, remove macro address, refactoring (wip)

This commit is contained in:
2021-07-29 16:51:46 +02:00
parent 55ac730c18
commit 6dac130844
9 changed files with 155 additions and 144 deletions

View File

@@ -25,7 +25,6 @@ use Chill\PersonBundle\Entity\Person;
use Chill\PersonBundle\Config\ConfigPersonAltNamesHelper;
use Symfony\Component\Templating\EngineInterface;
/**
* Render a Person
*
@@ -83,7 +82,7 @@ class PersonRender extends AbstractChillEntityRender
.$this->addAltNames($person, false);
}
protected function addAltNames(Person $person, bool $addSpan)
protected function addAltNames(Person $person, bool $addSpan): string
{
$str = '';
@@ -101,7 +100,7 @@ class PersonRender extends AbstractChillEntityRender
$str.= " ";
}
if ($addSpan) {
$str .= '<span class="chill-entity__person__alt-name chill-entity__person__altname--'.$altName->getKey().'">';
$str .= '<span class="altname altname-'.$altName->getKey().'">';
}
$str .= $altName->getLabel();