瀏覽代碼

Add Support for the german social-network Xing

eeagle 5 年之前
父節點
當前提交
6be73c9776

+ 9 - 0
bl-kernel/admin/views/edit-user.php

@@ -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',

+ 9 - 0
bl-kernel/admin/views/settings.php

@@ -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',

+ 1 - 0
bl-kernel/css/line-awesome/css/line-awesome-font-awesome.min.css

@@ -13,6 +13,7 @@ class Theme {
 			'instagram'=>'Instagram',
 			'codepen'=>'Codepen',
 			'linkedin'=>'Linkedin',
+			'xing'=>'Xing',
 			'mastodon'=>'Mastodon',
 			'vk'=>'VK'
 		);

+ 6 - 0
bl-kernel/site.class.php

@@ -30,6 +30,7 @@ class Site extends dbJSON {
 		'github'=>		'',
 		'gitlab'=>		'',
 		'linkedin'=>		'',
+		'xing'=>		'',
 		'mastodon'=>		'',
 		'dribbble'=>		'',
 		'vk'=>			'',
@@ -183,6 +184,11 @@ class Site extends dbJSON {
 		return $this->getField('linkedin');
 	}
 
+	public function xing()
+	{
+		return $this->getField('xing');
+	}
+
 	public function mastodon()
 	{
 		return $this->getField('mastodon');

+ 6 - 0
bl-kernel/user.class.php

@@ -140,6 +140,11 @@ class User {
 		return $this->getValue('linkedin');
 	}
 
+	public function xing()
+	{
+		return $this->getValue('xing');
+	}
+
 	public function mastodon()
 	{
 		return $this->getValue('mastodon');
@@ -173,6 +178,7 @@ class User {
 		$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();

+ 1 - 0
bl-themes/alternative/img/xing.svg

@@ -0,0 +1 @@
+<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Xing icon</title><path d="M18.188 0c-.517 0-.741.325-.927.66 0 0-7.455 13.224-7.702 13.657.015.024 4.919 9.023 4.919 9.023.17.308.436.66.967.66h3.454c.211 0 .375-.078.463-.22.089-.151.089-.346-.009-.536l-4.879-8.916c-.004-.006-.004-.016 0-.022L22.139.756c.095-.191.097-.387.006-.535C22.056.078 21.894 0 21.686 0h-3.498zM3.648 4.74c-.211 0-.385.074-.473.216-.09.149-.078.339.02.531l2.34 4.05c.004.01.004.016 0 .021L1.86 16.051c-.099.188-.093.381 0 .529.085.142.239.234.45.234h3.461c.518 0 .766-.348.945-.667l3.734-6.609-2.378-4.155c-.172-.315-.434-.659-.962-.659H3.648v.016z" style="fill: rgba(255, 255, 255, 0.5);"/></svg>

+ 1 - 0
bl-themes/blogx/img/xing.svg

@@ -0,0 +1 @@
+<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Xing icon</title><path d="M18.188 0c-.517 0-.741.325-.927.66 0 0-7.455 13.224-7.702 13.657.015.024 4.919 9.023 4.919 9.023.17.308.436.66.967.66h3.454c.211 0 .375-.078.463-.22.089-.151.089-.346-.009-.536l-4.879-8.916c-.004-.006-.004-.016 0-.022L22.139.756c.095-.191.097-.387.006-.535C22.056.078 21.894 0 21.686 0h-3.498zM3.648 4.74c-.211 0-.385.074-.473.216-.09.149-.078.339.02.531l2.34 4.05c.004.01.004.016 0 .021L1.86 16.051c-.099.188-.093.381 0 .529.085.142.239.234.45.234h3.461c.518 0 .766-.348.945-.667l3.734-6.609-2.378-4.155c-.172-.315-.434-.659-.962-.659H3.648v.016z" style="fill: rgba(255, 255, 255, 0.5);"/></svg>

+ 2 - 0
install.php

@@ -393,6 +393,7 @@ function install($adminPassword, $timezone)
 		'instagram'=>'',
 		'gitlab'=>'',
 		'linkedin'=>'',
+		'xing'=>'',
 		'dateFormat'=>'F j, Y',
 		'extremeFriendly'=>true,
 		'autosaveInterval'=>2,
@@ -428,6 +429,7 @@ function install($adminPassword, $timezone)
 			'instagram'=>'',
 			'codepen'=>'',
 			'linkedin'=>'',
+			'xing'=>'',
 			'github'=>'',
 			'gitlab'=>''
 		)