forked from ZwiiCMS-Team/ZwiiCMS
[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/';
|
$socialUrl = 'https://www.youtube.com/channel/';
|
||||||
$title = 'Chaîne YouTube';
|
$title = 'Chaîne YouTube';
|
||||||
break;
|
break;
|
||||||
case 'youtubeIdUser':
|
case 'youtubeUserId':
|
||||||
$socialUrl = 'https://www.youtube.com/user/';
|
$socialUrl = 'https://www.youtube.com/user/';
|
||||||
$title = 'YouTube';
|
$title = 'YouTube';
|
||||||
break;
|
break;
|
||||||
@ -2174,10 +2174,7 @@ class layout extends common {
|
|||||||
$socialUrl = '';
|
$socialUrl = '';
|
||||||
}
|
}
|
||||||
if($socialId !== '') {
|
if($socialId !== '') {
|
||||||
//
|
$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 ($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>';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($socials !== '') {
|
if($socials !== '') {
|
||||||
|
@ -301,7 +301,7 @@ class config extends common {
|
|||||||
'pinterestId' => $this->getInput('configSocialPinterestId'),
|
'pinterestId' => $this->getInput('configSocialPinterestId'),
|
||||||
'twitterId' => $this->getInput('configSocialTwitterId'),
|
'twitterId' => $this->getInput('configSocialTwitterId'),
|
||||||
'youtubeId' => $this->getInput('configSocialYoutubeId'),
|
'youtubeId' => $this->getInput('configSocialYoutubeId'),
|
||||||
'youtubeIdUser' => $this->getInput('configSocialYoutubeIdUser'),
|
'youtubeUserId' => $this->getInput('configSocialYoutubeUserId'),
|
||||||
'githubId' => $this->getInput('configSocialGithubId')
|
'githubId' => $this->getInput('configSocialGithubId')
|
||||||
],
|
],
|
||||||
'timezone' => $this->getInput('configTimezone', helper::FILTER_STRING_SHORT, true),
|
'timezone' => $this->getInput('configTimezone', helper::FILTER_STRING_SHORT, true),
|
||||||
|
@ -125,16 +125,16 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col4">
|
<div class="col4">
|
||||||
<?php echo template::text('configSocialYoutubeId', [
|
<?php echo template::text('configSocialYoutubeId', [
|
||||||
'help' => 'Saisissez votre ID Channel: https://www.youtube.com/channel/[ID].',
|
'help' => 'ID de la chaîne : https://www.youtube.com/channel/[ID].',
|
||||||
'label' => 'Youtube Channel',
|
'label' => 'Chaîne Youtube',
|
||||||
'value' => $this->getData(['config', 'social', 'youtubeId'])
|
'value' => $this->getData(['config', 'social', 'youtubeId'])
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col4">
|
<div class="col4">
|
||||||
<?php echo template::text('configSocialYoutubeIdUser', [
|
<?php echo template::text('configSocialYoutubeUserId', [
|
||||||
'help' => 'Saisissez votre ID User : https://www.youtube.com/user/[ID].',
|
'help' => 'Saisissez votre ID Utilisateur : https://www.youtube.com/user/[ID].',
|
||||||
'label' => 'Youtube User',
|
'label' => 'Youtube',
|
||||||
'value' => $this->getData(['config', 'social', 'youtubeIdUser'])
|
'value' => $this->getData(['config', 'social', 'youtubeUserId'])
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col4">
|
<div class="col4">
|
||||||
|
Loading…
Reference in New Issue
Block a user