diff --git a/core/core.php b/core/core.php index e69b0fa1..7b1e729f 100644 --- a/core/core.php +++ b/core/core.php @@ -2160,8 +2160,12 @@ class layout extends common { break; case 'youtubeId': $socialUrl = 'https://www.youtube.com/channel/'; - $title = 'YouTube'; + $title = 'ChaƮne YouTube'; break; + case 'youtubeIdUser': + $socialUrl = 'https://www.youtube.com/user/'; + $title = 'YouTube'; + break; case 'githubId': $socialUrl = 'https://www.github.com/'; $title = 'Github'; @@ -2170,6 +2174,9 @@ class layout extends common { $socialUrl = ''; } if($socialId !== '') { + // + if ($socialName === 'youtubeIdUser') + {$socialName = 'youtubeId';} $socials .= '' . template::ico(substr($socialName, 0, -2)) . ''; } } diff --git a/core/module/config/config.php b/core/module/config/config.php index 7b95c2cc..ad34ac6e 100755 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -301,6 +301,7 @@ class config extends common { 'pinterestId' => $this->getInput('configSocialPinterestId'), 'twitterId' => $this->getInput('configSocialTwitterId'), 'youtubeId' => $this->getInput('configSocialYoutubeId'), + 'youtubeIdUser' => $this->getInput('configSocialYoutubeIdUser'), '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 35ed1696..f962ceb8 100755 --- a/core/module/config/view/index/index.php +++ b/core/module/config/view/index/index.php @@ -114,22 +114,29 @@ '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']) ]); ?> -
+
+ +
+
+ 'Saisissez votre ID Channel: https://www.youtube.com/channel/[ID].', + 'label' => 'Youtube Channel', + 'value' => $this->getData(['config', 'social', 'youtubeId']) + ]); ?> +
+
+ 'Saisissez votre ID User : https://www.youtube.com/user/[ID].', + 'label' => 'Youtube User', + 'value' => $this->getData(['config', 'social', 'youtubeIdUser']) + ]); ?> +
'Saisissez votre ID : https://pinterest.com/[ID].', @@ -137,21 +144,22 @@ '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']) ]); ?> -
-
-
-
- 'Saisissez votre ID Github : https://github.com/[ID].', - 'label' => 'Github', - 'value' => $this->getData(['config', 'social', 'githubId']) - ]); ?>