Socials: + Youtube and Bluesky
Responding to issue 2573112978 + adding Bluesky
This commit is contained in:
parent
3c02c86498
commit
8bd31cb8e9
9 changed files with 70 additions and 3 deletions
|
@ -450,6 +450,24 @@ echo Bootstrap::formInputHidden(array(
|
|||
'placeholder' => '',
|
||||
'tip' => ''
|
||||
));
|
||||
|
||||
echo Bootstrap::formInputText(array(
|
||||
'name' => 'youtube',
|
||||
'label' => 'Youtube',
|
||||
'value' => $site->youtube(),
|
||||
'class' => '',
|
||||
'placeholder' => '',
|
||||
'tip' => ''
|
||||
));
|
||||
|
||||
echo Bootstrap::formInputText(array(
|
||||
'name' => 'bluesky',
|
||||
'label' => 'Bluesky',
|
||||
'value' => $site->bluesky(),
|
||||
'class' => '',
|
||||
'placeholder' => '',
|
||||
'tip' => ''
|
||||
));
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -18,7 +18,9 @@ class Theme
|
|||
'telegram' => 'Telegram',
|
||||
'mastodon' => 'Mastodon',
|
||||
'vk' => 'VK',
|
||||
'dribbble' => 'Dribbble'
|
||||
'dribbble' => 'Dribbble',
|
||||
'youtube' => 'Youtube',
|
||||
'bluesky' => 'Bluesky'
|
||||
);
|
||||
|
||||
foreach ($socialNetworks as $key => $label) {
|
||||
|
|
|
@ -36,6 +36,8 @@ class Site extends dbJSON
|
|||
'mastodon' => '',
|
||||
'dribbble' => '',
|
||||
'vk' => '',
|
||||
'youtube' => '',
|
||||
'bluesky' => '',
|
||||
'orderBy' => 'date', // date or position
|
||||
'extremeFriendly' => true,
|
||||
'autosaveInterval' => 2, // minutes
|
||||
|
@ -214,6 +216,17 @@ class Site extends dbJSON
|
|||
return $this->getField('vk');
|
||||
}
|
||||
|
||||
public function youtube()
|
||||
{
|
||||
return $this->getField('youtube');
|
||||
}
|
||||
|
||||
public function bluesky()
|
||||
{
|
||||
return $this->getField('bluesky');
|
||||
}
|
||||
|
||||
|
||||
public function orderBy()
|
||||
{
|
||||
return $this->getField('orderBy');
|
||||
|
|
|
@ -161,6 +161,16 @@ class User
|
|||
return $this->getValue('vk');
|
||||
}
|
||||
|
||||
public function youtube()
|
||||
{
|
||||
return $this->getValue('youtube');
|
||||
}
|
||||
|
||||
public function bluesky()
|
||||
{
|
||||
return $this->getValue('bluesky');
|
||||
}
|
||||
|
||||
public function profilePicture()
|
||||
{
|
||||
$filename = $this->getValue('username') . '.png';
|
||||
|
@ -185,9 +195,11 @@ class User
|
|||
$tmp['gitlab'] = $this->gitlab();
|
||||
$tmp['linkedin'] = $this->linkedin();
|
||||
$tmp['xing'] = $this->xing();
|
||||
$tmp['telegram'] = $this->telegram();
|
||||
$tmp['telegram'] = $this->telegram();
|
||||
$tmp['mastodon'] = $this->mastodon();
|
||||
$tmp['vk'] = $this->vk();
|
||||
$tmp['youtube'] = $this->youtube();
|
||||
$tmp['bluesky'] = $this->bluesky();
|
||||
$tmp['profilePicture'] = $this->profilePicture();
|
||||
|
||||
if ($returnsArray) {
|
||||
|
|
|
@ -23,7 +23,9 @@ class Users extends dbJSON {
|
|||
'gitlab'=>'',
|
||||
'linkedin'=>'',
|
||||
'mastodon'=>'',
|
||||
'vk'=>''
|
||||
'vk'=>'',
|
||||
'youtube'=>'',
|
||||
'bluesky'=>''
|
||||
);
|
||||
|
||||
function __construct()
|
||||
|
|
5
bl-themes/alternative/img/bluesky.svg
Normal file
5
bl-themes/alternative/img/bluesky.svg
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<svg aria-labelledby="simpleicons-bluesky-icon" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||
<title id="simpleicons-bluesky-icon">Bluesky icon</title>
|
||||
<path d="M12 10.8c-1.087-2.114-4.046-6.053-6.798-7.995C2.566.944 1.561 1.266.902 1.565C.139 1.908 0 3.08 0 3.768c0 .69.378 5.65.624 6.479c.815 2.736 3.713 3.66 6.383 3.364q.204-.03.415-.056q-.207.033-.415.056c-3.912.58-7.387 2.005-2.83 7.078c5.013 5.19 6.87-1.113 7.823-4.308c.953 3.195 2.05 9.271 7.733 4.308c4.267-4.308 1.172-6.498-2.74-7.078a9 9 0 0 1-.415-.056q.21.026.415.056c2.67.297 5.568-.628 6.383-3.364c.246-.828.624-5.79.624-6.478c0-.69-.139-1.861-.902-2.206c-.659-.298-1.664-.62-4.3 1.24C16.046 4.748 13.087 8.687 12 10.8" style="fill: rgba(255, 255, 255, 0.5)"/>
|
||||
</svg>
|
After Width: | Height: | Size: 799 B |
5
bl-themes/alternative/img/youtube.svg
Normal file
5
bl-themes/alternative/img/youtube.svg
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<svg aria-labelledby="simpleicons-youtube-icon" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||
<title id="simpleicons-youtube-icon">Youtube icon</title>
|
||||
<path fill="currentColor" d="M23.498 6.186a3.02 3.02 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.02 3.02 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.02 3.02 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.02 3.02 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814M9.545 15.568V8.432L15.818 12z" style="fill: rgba(255, 255, 255, 0.5)"/>
|
||||
</svg>
|
After Width: | Height: | Size: 621 B |
5
bl-themes/blogx/img/bluesky.svg
Normal file
5
bl-themes/blogx/img/bluesky.svg
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<svg aria-labelledby="simpleicons-bluesky-icon" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||
<title id="simpleicons-bluesky-icon">Bluesky icon</title>
|
||||
<path d="M12 10.8c-1.087-2.114-4.046-6.053-6.798-7.995C2.566.944 1.561 1.266.902 1.565C.139 1.908 0 3.08 0 3.768c0 .69.378 5.65.624 6.479c.815 2.736 3.713 3.66 6.383 3.364q.204-.03.415-.056q-.207.033-.415.056c-3.912.58-7.387 2.005-2.83 7.078c5.013 5.19 6.87-1.113 7.823-4.308c.953 3.195 2.05 9.271 7.733 4.308c4.267-4.308 1.172-6.498-2.74-7.078a9 9 0 0 1-.415-.056q.21.026.415.056c2.67.297 5.568-.628 6.383-3.364c.246-.828.624-5.79.624-6.478c0-.69-.139-1.861-.902-2.206c-.659-.298-1.664-.62-4.3 1.24C16.046 4.748 13.087 8.687 12 10.8" style="fill: rgba(255, 255, 255, 0.5)"/>
|
||||
</svg>
|
After Width: | Height: | Size: 799 B |
5
bl-themes/blogx/img/youtube.svg
Normal file
5
bl-themes/blogx/img/youtube.svg
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<svg aria-labelledby="simpleicons-youtube-icon" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||
<title id="simpleicons-youtube-icon">Youtube icon</title>
|
||||
<path fill="currentColor" d="M23.498 6.186a3.02 3.02 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.02 3.02 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.02 3.02 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.02 3.02 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814M9.545 15.568V8.432L15.818 12z" style="fill: rgba(255, 255, 255, 0.5)"/>
|
||||
</svg>
|
After Width: | Height: | Size: 621 B |
Loading…
Reference in a new issue