1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00

Update top menu and Main Social Media Integration in user profile

This commit is contained in:
Daniel Neto 2023-08-08 12:35:31 -03:00
parent 076bdf9433
commit 4bd92c49bb
11 changed files with 799 additions and 618 deletions

View file

@ -2961,7 +2961,8 @@ if (typeof gtag !== \"function\") {
return $value;
}
public static function getWebsite($users_id = '') {
public static function getSocialMediaURL($socialMedia, $users_id = '') {
global $config;
$obj = AVideoPlugin::getObjectDataIfEnabled("CustomizeUser");
if (empty($obj)) {
@ -2971,10 +2972,14 @@ if (typeof gtag !== \"function\") {
$users_id = User::getId();
}
$user = new User($users_id);
$value = $user->getExternalOptions('userWebsite');
$value = $user->getExternalOptions($socialMedia);
return $value;
}
public static function getWebsite($users_id = '') {
return self::getSocialMediaURL('website', $users_id);
}
public static function setProfilePassword($users_id, $value) {
$obj = AVideoPlugin::getObjectDataIfEnabled("CustomizeUser");
if (empty($obj) || !User::isAdmin()) {