parent
2401727a20
commit
b2f30a0bbb
1 changed files with 12 additions and 0 deletions
|
@ -209,6 +209,18 @@ class User
|
|||
return $this->getValue('socials')[Text::cleanUrl($social)];
|
||||
}
|
||||
|
||||
public function socials() {
|
||||
global $site;
|
||||
$socialNetworks = array();
|
||||
|
||||
foreach ($GLOBALS['SOCIAL_NETWORKS'] as $key => $label) {
|
||||
if ($this->getSocialNetwork($label) != "") {
|
||||
$socialNetworks[Text::cleanUrl($label)] = new Social($label, $this->getSocialNetwork($label));
|
||||
}
|
||||
}
|
||||
return $socialNetworks;
|
||||
}
|
||||
|
||||
public function profilePicture()
|
||||
{
|
||||
$filename = $this->getValue('username') . '.png';
|
||||
|
|
Loading…
Add table
Reference in a new issue