add support for vk.com social network

This commit is contained in:
Diego Najar 2019-12-07 14:32:39 +01:00
parent 696fa1c406
commit bc4f532b97
4 changed files with 16 additions and 2 deletions

View File

@ -13,7 +13,8 @@ class Theme {
'instagram'=>'Instagram',
'codepen'=>'Codepen',
'linkedin'=>'Linkedin',
'mastodon'=>'Mastodon'
'mastodon'=>'Mastodon',
'vk'=>'VK'
);
foreach ($socialNetworks as $key=>$label) {

View File

@ -32,6 +32,7 @@ class Site extends dbJSON {
'linkedin'=> '',
'mastodon'=> '',
'dribbble'=> '',
'vk'=> '',
'orderBy'=> 'date', // date or position
'extremeFriendly'=> true,
'autosaveInterval'=> 2, // minutes
@ -192,6 +193,11 @@ class Site extends dbJSON {
return $this->getField('dribbble');
}
public function vk()
{
return $this->getField('vk');
}
public function orderBy()
{
return $this->getField('orderBy');

View File

@ -145,6 +145,11 @@ class User {
return $this->getValue('mastodon');
}
public function vk()
{
return $this->getValue('vk');
}
public function profilePicture()
{
$filename = $this->getValue('username').'.png';
@ -169,6 +174,7 @@ class User {
$tmp['gitlab'] = $this->gitlab();
$tmp['linkedin'] = $this->linkedin();
$tmp['mastodon'] = $this->mastodon();
$tmp['vk'] = $this->vk();
$tmp['profilePicture'] = $this->profilePicture();
if ($returnsArray) {

View File

@ -22,7 +22,8 @@ class Users extends dbJSON {
'github'=>'',
'gitlab'=>'',
'linkedin'=>'',
'mastodon'=>''
'mastodon'=>'',
'vk'=>''
);
function __construct()