Deux comptes youtube WIP
This commit is contained in:
parent
09d9ae219c
commit
3e17e26028
@ -2160,6 +2160,10 @@ class layout extends common {
|
||||
break;
|
||||
case 'youtubeId':
|
||||
$socialUrl = 'https://www.youtube.com/channel/';
|
||||
$title = 'Chaîne YouTube';
|
||||
break;
|
||||
case 'youtubeIdUser':
|
||||
$socialUrl = 'https://www.youtube.com/user/';
|
||||
$title = 'YouTube';
|
||||
break;
|
||||
case 'githubId':
|
||||
@ -2170,6 +2174,9 @@ 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>';
|
||||
}
|
||||
}
|
||||
|
@ -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),
|
||||
|
@ -115,19 +115,26 @@
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::text('configSocialYoutubeId', [
|
||||
'help' => 'Saisissez votre ID : https://www.youtube.com/channel/[ID].',
|
||||
'label' => 'Youtube',
|
||||
'value' => $this->getData(['config', 'social', 'youtubeId'])
|
||||
<?php echo template::text('configSocialTwitterId', [
|
||||
'help' => 'Saisissez votre ID : https://twitter.com/[ID].',
|
||||
'label' => 'Twitter',
|
||||
'value' => $this->getData(['config', 'social', 'twitterId'])
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col4">
|
||||
<?php echo template::text('configSocialTwitterId', [
|
||||
'help' => 'Saisissez votre ID : https://twitter.com/[ID].',
|
||||
'label' => 'Twitter',
|
||||
'value' => $this->getData(['config', 'social', 'twitterId'])
|
||||
<?php echo template::text('configSocialYoutubeId', [
|
||||
'help' => 'Saisissez votre ID Channel: https://www.youtube.com/channel/[ID].',
|
||||
'label' => 'Youtube Channel',
|
||||
'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'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
@ -137,6 +144,16 @@
|
||||
'value' => $this->getData(['config', 'social', 'pinterestId'])
|
||||
]); ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col4 offset2">
|
||||
<?php echo template::text('configSocialGithubId', [
|
||||
'help' => 'Saisissez votre ID Github : https://github.com/[ID].',
|
||||
'label' => 'Github',
|
||||
'value' => $this->getData(['config', 'social', 'githubId'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::text('configSocialLinkedinId', [
|
||||
'help' => 'Saisissez votre ID Linkedin : https://fr.linkedin.com/in/[ID].',
|
||||
@ -145,15 +162,6 @@
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col4 offset4">
|
||||
<?php echo template::text('configSocialGithubId', [
|
||||
'help' => 'Saisissez votre ID Github : https://github.com/[ID].',
|
||||
'label' => 'Github',
|
||||
'value' => $this->getData(['config', 'social', 'githubId'])
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user