New default theme #82

Merged
kazhnuz merged 36 commits from feat/new-default-theme into koblog2 2025-07-27 16:03:24 +02:00
Showing only changes of commit b2f30a0bbb - Show all commits

View file

@ -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';