[9.2.17] Youtube channel and user
This commit is contained in:
parent
3e17e26028
commit
7caa81450c
@ -2162,7 +2162,7 @@ class layout extends common {
|
||||
$socialUrl = 'https://www.youtube.com/channel/';
|
||||
$title = 'Chaîne YouTube';
|
||||
break;
|
||||
case 'youtubeIdUser':
|
||||
case 'youtubeUserId':
|
||||
$socialUrl = 'https://www.youtube.com/user/';
|
||||
$title = 'YouTube';
|
||||
break;
|
||||
@ -2174,10 +2174,7 @@ class layout extends common {
|
||||
$socialUrl = '';
|
||||
}
|
||||
if($socialId !== '') {
|
||||
//
|
||||
if ($socialName === 'youtubeIdUser')
|
||||
{$socialName = 'youtubeId';}
|
||||
$socials .= '<a href="' . $socialUrl . $socialId . '" onclick="window.open(this.href);return false" data-tippy-content="' . $title . '">' . template::ico(substr($socialName, 0, -2)) . '</a>';
|
||||
$socials .= '<a href="' . $socialUrl . $socialId . '" onclick="window.open(this.href);return false" data-tippy-content="' . $title . '">' . template::ico(substr(str_replace('User','',$socialName), 0, -2)) . '</a>';
|
||||
}
|
||||
}
|
||||
if($socials !== '') {
|
||||
|
@ -301,7 +301,7 @@ class config extends common {
|
||||
'pinterestId' => $this->getInput('configSocialPinterestId'),
|
||||
'twitterId' => $this->getInput('configSocialTwitterId'),
|
||||
'youtubeId' => $this->getInput('configSocialYoutubeId'),
|
||||
'youtubeIdUser' => $this->getInput('configSocialYoutubeIdUser'),
|
||||
'youtubeUserId' => $this->getInput('configSocialYoutubeUserId'),
|
||||
'githubId' => $this->getInput('configSocialGithubId')
|
||||
],
|
||||
'timezone' => $this->getInput('configTimezone', helper::FILTER_STRING_SHORT, true),
|
||||
|
@ -125,16 +125,16 @@
|
||||
<div class="row">
|
||||
<div class="col4">
|
||||
<?php echo template::text('configSocialYoutubeId', [
|
||||
'help' => 'Saisissez votre ID Channel: https://www.youtube.com/channel/[ID].',
|
||||
'label' => 'Youtube Channel',
|
||||
'help' => 'ID de la chaîne : https://www.youtube.com/channel/[ID].',
|
||||
'label' => 'Chaîne Youtube',
|
||||
'value' => $this->getData(['config', 'social', 'youtubeId'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::text('configSocialYoutubeIdUser', [
|
||||
'help' => 'Saisissez votre ID User : https://www.youtube.com/user/[ID].',
|
||||
'label' => 'Youtube User',
|
||||
'value' => $this->getData(['config', 'social', 'youtubeIdUser'])
|
||||
<?php echo template::text('configSocialYoutubeUserId', [
|
||||
'help' => 'Saisissez votre ID Utilisateur : https://www.youtube.com/user/[ID].',
|
||||
'label' => 'Youtube',
|
||||
'value' => $this->getData(['config', 'social', 'youtubeUserId'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
|
Loading…
Reference in New Issue
Block a user