mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
parent
3a2c781cb0
commit
12210d0fb0
2 changed files with 7 additions and 1 deletions
|
@ -99,6 +99,12 @@ class Club extends RowModel
|
||||||
{
|
{
|
||||||
return $this->getRecord()->about;
|
return $this->getRecord()->about;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getDescriptionHtml(): ?string
|
||||||
|
{
|
||||||
|
if(!is_null($this->getDescription()))
|
||||||
|
return nl2br(htmlspecialchars($this->getDescription(), ENT_DISALLOWED | ENT_XHTML));
|
||||||
|
}
|
||||||
|
|
||||||
function getShortCode(): ?string
|
function getShortCode(): ?string
|
||||||
{
|
{
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><span class="nobold">{_"description"}:</span></td>
|
<td><span class="nobold">{_"description"}:</span></td>
|
||||||
<td>{$club->getDescription()}</td>
|
<td>{$club->getDescriptionHtml()|noescape}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr n:if="!is_null($club->getWebsite())">
|
<tr n:if="!is_null($club->getWebsite())">
|
||||||
<td><span class="nobold">{_"website"}: </span></td>
|
<td><span class="nobold">{_"website"}: </span></td>
|
||||||
|
|
Loading…
Reference in a new issue