Add YouTube
Add YouTube in Social Networks.
This commit is contained in:
parent
b7c5ced470
commit
425fafe587
8 changed files with 49 additions and 2 deletions
|
@ -285,6 +285,15 @@
|
|||
'placeholder'=>'',
|
||||
'tip'=>''
|
||||
));
|
||||
|
||||
echo Bootstrap::formInputText(array(
|
||||
'name'=>'youtube',
|
||||
'label'=>'YouTube',
|
||||
'value'=>$user->youtube(),
|
||||
'class'=>'',
|
||||
'placeholder'=>'',
|
||||
'tip'=>''
|
||||
));
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -437,6 +437,15 @@
|
|||
'placeholder'=>'',
|
||||
'tip'=>''
|
||||
));
|
||||
|
||||
echo Bootstrap::formInputText(array(
|
||||
'name'=>'youtube',
|
||||
'label'=>'YouTube',
|
||||
'value'=>$site->youtube(),
|
||||
'class'=>'',
|
||||
'placeholder'=>'',
|
||||
'tip'=>''
|
||||
));
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -15,7 +15,8 @@ class Theme {
|
|||
'linkedin'=>'Linkedin',
|
||||
'xing'=>'Xing',
|
||||
'mastodon'=>'Mastodon',
|
||||
'vk'=>'VK'
|
||||
'vk'=>'VK',
|
||||
'youtube'=>'YouTube'
|
||||
);
|
||||
|
||||
foreach ($socialNetworks as $key=>$label) {
|
||||
|
|
|
@ -34,6 +34,7 @@ class Site extends dbJSON {
|
|||
'mastodon'=> '',
|
||||
'dribbble'=> '',
|
||||
'vk'=> '',
|
||||
'youtube'=> '',
|
||||
'orderBy'=> 'date', // date or position
|
||||
'extremeFriendly'=> true,
|
||||
'autosaveInterval'=> 2, // minutes
|
||||
|
@ -203,6 +204,11 @@ class Site extends dbJSON {
|
|||
{
|
||||
return $this->getField('vk');
|
||||
}
|
||||
|
||||
public function youtube()
|
||||
{
|
||||
return $this->getField('youtube');
|
||||
}
|
||||
|
||||
public function orderBy()
|
||||
{
|
||||
|
|
|
@ -154,6 +154,11 @@ class User {
|
|||
{
|
||||
return $this->getValue('vk');
|
||||
}
|
||||
|
||||
public function youtube()
|
||||
{
|
||||
return $this->getValue('youtube');
|
||||
}
|
||||
|
||||
public function profilePicture()
|
||||
{
|
||||
|
@ -181,6 +186,7 @@ class User {
|
|||
$tmp['xing'] = $this->xing();
|
||||
$tmp['mastodon'] = $this->mastodon();
|
||||
$tmp['vk'] = $this->vk();
|
||||
$tmp['youtube'] = $this->youtube();
|
||||
$tmp['profilePicture'] = $this->profilePicture();
|
||||
|
||||
if ($returnsArray) {
|
||||
|
|
7
bl-themes/alternative/img/youtube.svg
Normal file
7
bl-themes/alternative/img/youtube.svg
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="100%" height="100%" viewBox="0 0 2481 2481" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
|
||||
<g transform="matrix(15.9072,0,0,15.9072,0.00409983,371.626)">
|
||||
<path d="M152.483,17.1C150.665,10.382 145.401,5.118 138.683,3.3C126.583,0 77.883,0 77.883,0C77.883,0 29.183,0.1 17.083,3.4C10.365,5.218 5.101,10.482 3.283,17.2C-0.377,38.7 -1.797,71.46 3.383,92.1C5.201,98.818 10.465,104.082 17.183,105.9C29.283,109.2 77.983,109.2 77.983,109.2C77.983,109.2 126.683,109.2 138.783,105.9C145.501,104.082 150.765,98.818 152.583,92.1C156.443,70.57 157.633,37.83 152.483,17.1ZM105.52,54.992L57.492,78.01L57.484,31.99L105.52,54.992Z" style="fill:white;fill-opacity:0.5;fill-rule:nonzero;"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 1 KiB |
7
bl-themes/blogx/img/youtube.svg
Normal file
7
bl-themes/blogx/img/youtube.svg
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="100%" height="100%" viewBox="0 0 2481 2481" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
|
||||
<g transform="matrix(15.9072,0,0,15.9072,0.00409983,371.626)">
|
||||
<path d="M152.483,17.1C150.665,10.382 145.401,5.118 138.683,3.3C126.583,0 77.883,0 77.883,0C77.883,0 29.183,0.1 17.083,3.4C10.365,5.218 5.101,10.482 3.283,17.2C-0.377,38.7 -1.797,71.46 3.383,92.1C5.201,98.818 10.465,104.082 17.183,105.9C29.283,109.2 77.983,109.2 77.983,109.2C77.983,109.2 126.683,109.2 138.783,105.9C145.501,104.082 150.765,98.818 152.583,92.1C156.443,70.57 157.633,37.83 152.483,17.1ZM105.52,54.992L57.492,78.01L57.484,31.99L105.52,54.992Z" style="fill:white;fill-opacity:0.5;fill-rule:nonzero;"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 1 KiB |
|
@ -394,6 +394,7 @@ function install($adminPassword, $timezone)
|
|||
'gitlab'=>'',
|
||||
'linkedin'=>'',
|
||||
'xing'=>'',
|
||||
'youtube'=>'',
|
||||
'dateFormat'=>'F j, Y',
|
||||
'extremeFriendly'=>true,
|
||||
'autosaveInterval'=>2,
|
||||
|
@ -431,7 +432,8 @@ function install($adminPassword, $timezone)
|
|||
'linkedin'=>'',
|
||||
'xing'=>'',
|
||||
'github'=>'',
|
||||
'gitlab'=>''
|
||||
'gitlab'=>'',
|
||||
'youtube'=>''
|
||||
)
|
||||
);
|
||||
file_put_contents(PATH_DATABASES.'users.php', $dataHead.json_encode($data, JSON_PRETTY_PRINT), LOCK_EX);
|
||||
|
|
Loading…
Add table
Reference in a new issue