mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
render box address, remove macro address, refactoring (wip)
This commit is contained in:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user