diff --git a/core/core.php b/core/core.php index 535c6107..f21621d1 100644 --- a/core/core.php +++ b/core/core.php @@ -1791,8 +1791,12 @@ class layout extends common { break; case 'youtubeId': $socialUrl = 'https://www.youtube.com/channel/'; - $title = 'YouTube'; + $title = 'Chaîne YouTube'; break; + case 'youtubeUserId': + $socialUrl = 'https://www.youtube.com/user/'; + $title = 'YouTube'; + break; case 'githubId': $socialUrl = 'https://www.github.com/'; $title = 'Github'; @@ -1801,7 +1805,7 @@ class layout extends common { $socialUrl = ''; } if($socialId !== '') { - $socials .= '' . template::ico(substr($socialName, 0, -2)) . ''; + $socials .= '' . template::ico(substr(str_replace('User','',$socialName), 0, -2)) . ''; } } if($socials !== '') { diff --git a/core/module/config/config.php b/core/module/config/config.php index 10841ebf..f608ce88 100755 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -398,6 +398,7 @@ class config extends common { 'pinterestId' => $this->getInput('configSocialPinterestId'), 'twitterId' => $this->getInput('configSocialTwitterId'), 'youtubeId' => $this->getInput('configSocialYoutubeId'), + 'youtubeUserId' => $this->getInput('configSocialYoutubeUserId'), 'githubId' => $this->getInput('configSocialGithubId') ], 'timezone' => $this->getInput('configTimezone', helper::FILTER_STRING_SHORT, true), diff --git a/core/module/config/view/index/index.php b/core/module/config/view/index/index.php index f2cc3748..f879a98b 100755 --- a/core/module/config/view/index/index.php +++ b/core/module/config/view/index/index.php @@ -124,45 +124,54 @@ 'checked' => $this->getData(['config', 'autoUpdate']), 'help' => 'Vérification quotidienne des mises à jour.' ]); ?> - - - - - -
-
-
-

Réseaux sociaux

-
-
- 'Saisissez votre ID : https://www.facebook.com/[ID].', - 'label' => 'Facebook', - 'value' => $this->getData(['config', 'social', 'facebookId']) - ]); ?> -
-
- 'Saisissez votre ID : https://www.instagram.com/[ID].', - 'label' => 'Instagram', - 'value' => $this->getData(['config', 'social', 'instagramId']) - ]); ?> -
-
-
-
- 'Saisissez votre ID : https://www.youtube.com/channel/[ID].', - 'label' => 'Youtube', - 'value' => $this->getData(['config', 'social', 'youtubeId']) - ]); ?>
-
+
'Saisissez votre ID : https://twitter.com/[ID].', 'label' => 'Twitter', - 'value' => $this->getData(['config', 'social', 'twitterId']) - ]); ?> + 'value' => $this->getData(['config', 'social', 'twitterId']) + ]); ?> +
+
+
+
+ 'ID de la chaîne : https://www.youtube.com/channel/[ID].', + 'label' => 'Chaîne Youtube', + 'value' => $this->getData(['config', 'social', 'youtubeId']) + ]); ?> +
+
+ 'Saisissez votre ID Utilisateur : https://www.youtube.com/user/[ID].', + 'label' => 'Youtube', + 'value' => $this->getData(['config', 'social', 'youtubeUserId']) + ]); ?> +
+
+ 'Saisissez votre ID : https://pinterest.com/[ID].', + 'label' => 'Pinterest', + 'value' => $this->getData(['config', 'social', 'pinterestId']) + ]); ?> +
+ +
+
+
+ 'Saisissez votre ID Github : https://github.com/[ID].', + 'label' => 'Github', + 'value' => $this->getData(['config', 'social', 'githubId']) + ]); ?> +
+
+ 'Saisissez votre ID Linkedin : https://fr.linkedin.com/in/[ID].', + 'label' => 'Linkedin', + 'value' => $this->getData(['config', 'social', 'linkedinId']) + ]); ?> +