Add email to company info block
This commit is contained in:
parent
b5f38203f0
commit
3dfd8712cf
@ -203,11 +203,13 @@ class Company
|
|||||||
public function __toString(): string
|
public function __toString(): string
|
||||||
{
|
{
|
||||||
$url = ($this->url ? "<br/><a href='$this->url' target='_blank'>$this->url</a>" : '');
|
$url = ($this->url ? "<br/><a href='$this->url' target='_blank'>$this->url</a>" : '');
|
||||||
|
$email = ($this->email ? "<br/><a href='mailto:$this->email'>$this->email</a>" : '');
|
||||||
return <<<"HTML"
|
return <<<"HTML"
|
||||||
$this->name<br/>
|
$this->name<br/>
|
||||||
$this->address<br/>
|
$this->address<br/>
|
||||||
$this->city, $this->state $this->zip<br/>
|
$this->city, $this->state $this->zip<br/>
|
||||||
<a href='tel:{$this->phone}'>$this->phone</a>
|
<a href='tel:{$this->phone}'>$this->phone</a>
|
||||||
|
$email
|
||||||
$url
|
$url
|
||||||
HTML;
|
HTML;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user