diff --git a/bl-kernel/admin/views/settings.php b/bl-kernel/admin/views/settings.php index 76e3777a..0204e896 100644 --- a/bl-kernel/admin/views/settings.php +++ b/bl-kernel/admin/views/settings.php @@ -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' => '' + )); ?> diff --git a/bl-kernel/helpers/theme.class.php b/bl-kernel/helpers/theme.class.php index 28dc8f09..6993761a 100644 --- a/bl-kernel/helpers/theme.class.php +++ b/bl-kernel/helpers/theme.class.php @@ -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) { diff --git a/bl-kernel/site.class.php b/bl-kernel/site.class.php index be916bbc..d7d661f7 100644 --- a/bl-kernel/site.class.php +++ b/bl-kernel/site.class.php @@ -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'); diff --git a/bl-kernel/user.class.php b/bl-kernel/user.class.php index 66d834c4..d42a14af 100644 --- a/bl-kernel/user.class.php +++ b/bl-kernel/user.class.php @@ -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) { diff --git a/bl-kernel/users.class.php b/bl-kernel/users.class.php index 1d9bd111..560fbd85 100644 --- a/bl-kernel/users.class.php +++ b/bl-kernel/users.class.php @@ -23,7 +23,9 @@ class Users extends dbJSON { 'gitlab'=>'', 'linkedin'=>'', 'mastodon'=>'', - 'vk'=>'' + 'vk'=>'', + 'youtube'=>'', + 'bluesky'=>'' ); function __construct() diff --git a/bl-themes/alternative/img/bluesky.svg b/bl-themes/alternative/img/bluesky.svg new file mode 100644 index 00000000..cb7ef92e --- /dev/null +++ b/bl-themes/alternative/img/bluesky.svg @@ -0,0 +1,5 @@ + + + Bluesky icon + + \ No newline at end of file diff --git a/bl-themes/alternative/img/youtube.svg b/bl-themes/alternative/img/youtube.svg new file mode 100644 index 00000000..65e5c3e2 --- /dev/null +++ b/bl-themes/alternative/img/youtube.svg @@ -0,0 +1,5 @@ + + + Youtube icon + + \ No newline at end of file diff --git a/bl-themes/blogx/img/bluesky.svg b/bl-themes/blogx/img/bluesky.svg new file mode 100644 index 00000000..cb7ef92e --- /dev/null +++ b/bl-themes/blogx/img/bluesky.svg @@ -0,0 +1,5 @@ + + + Bluesky icon + + \ No newline at end of file diff --git a/bl-themes/blogx/img/youtube.svg b/bl-themes/blogx/img/youtube.svg new file mode 100644 index 00000000..65e5c3e2 --- /dev/null +++ b/bl-themes/blogx/img/youtube.svg @@ -0,0 +1,5 @@ + + + Youtube icon + + \ No newline at end of file