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:
parent
076bdf9433
commit
4bd92c49bb
11 changed files with 799 additions and 618 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue