Skip to content

Commit

Permalink
Merge pull request #1174 from eeagle/master
Browse files Browse the repository at this point in the history
Add Support for the german social-network Xing
  • Loading branch information
dignajar committed Sep 25, 2020
2 parents 548b7f5 + 6be73c9 commit 3efbd8c
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bl-kernel/admin/views/edit-user.php
Expand Up @@ -259,6 +259,15 @@
'tip'=>''
));

echo Bootstrap::formInputText(array(
'name'=>'xing',
'label'=>'Xing',
'value'=>$user->xing(),
'class'=>'',
'placeholder'=>'',
'tip'=>''
));

echo Bootstrap::formInputText(array(
'name'=>'mastodon',
'label'=>'Mastodon',
Expand Down
9 changes: 9 additions & 0 deletions bl-kernel/admin/views/settings.php
Expand Up @@ -402,6 +402,15 @@
'tip'=>''
));

echo Bootstrap::formInputText(array(
'name'=>'xing',
'label'=>'Xing',
'value'=>$site->xing(),
'class'=>'',
'placeholder'=>'',
'tip'=>''
));

echo Bootstrap::formInputText(array(
'name'=>'mastodon',
'label'=>'Mastodon',
Expand Down
Empty file.
Empty file modified bl-kernel/css/line-awesome/fonts/line-awesome.eot 100755 → 100644
Empty file.
Empty file modified bl-kernel/css/line-awesome/fonts/line-awesome.svg 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified bl-kernel/css/line-awesome/fonts/line-awesome.ttf 100755 → 100644
Empty file.
1 change: 1 addition & 0 deletions bl-kernel/helpers/theme.class.php
Expand Up @@ -13,6 +13,7 @@ public static function socialNetworks()
'instagram'=>'Instagram',
'codepen'=>'Codepen',
'linkedin'=>'Linkedin',
'xing'=>'Xing',
'mastodon'=>'Mastodon',
'vk'=>'VK'
);
Expand Down
6 changes: 6 additions & 0 deletions bl-kernel/site.class.php
Expand Up @@ -30,6 +30,7 @@ class Site extends dbJSON {
'github'=> '',
'gitlab'=> '',
'linkedin'=> '',
'xing'=> '',
'mastodon'=> '',
'dribbble'=> '',
'vk'=> '',
Expand Down Expand Up @@ -183,6 +184,11 @@ public function linkedin()
return $this->getField('linkedin');
}

public function xing()
{
return $this->getField('xing');
}

public function mastodon()
{
return $this->getField('mastodon');
Expand Down
6 changes: 6 additions & 0 deletions bl-kernel/user.class.php
Expand Up @@ -140,6 +140,11 @@ public function linkedin()
return $this->getValue('linkedin');
}

public function xing()
{
return $this->getValue('xing');
}

public function mastodon()
{
return $this->getValue('mastodon');
Expand Down Expand Up @@ -173,6 +178,7 @@ public function json($returnsArray=false)
$tmp['github'] = $this->github();
$tmp['gitlab'] = $this->gitlab();
$tmp['linkedin'] = $this->linkedin();
$tmp['xing'] = $this->xing();
$tmp['mastodon'] = $this->mastodon();
$tmp['vk'] = $this->vk();
$tmp['profilePicture'] = $this->profilePicture();
Expand Down
1 change: 1 addition & 0 deletions bl-themes/alternative/img/xing.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions bl-themes/blogx/img/xing.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions install.php
Expand Up @@ -393,6 +393,7 @@ function install($adminPassword, $timezone)
'instagram'=>'',
'gitlab'=>'',
'linkedin'=>'',
'xing'=>'',
'dateFormat'=>'F j, Y',
'extremeFriendly'=>true,
'autosaveInterval'=>2,
Expand Down Expand Up @@ -428,6 +429,7 @@ function install($adminPassword, $timezone)
'instagram'=>'',
'codepen'=>'',
'linkedin'=>'',
'xing'=>'',
'github'=>'',
'gitlab'=>''
)
Expand Down

0 comments on commit 3efbd8c

Please sign in to comment.