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', 'instagram'=>'Instagram',
'codepen'=>'Codepen', 'codepen'=>'Codepen',
'linkedin'=>'Linkedin', 'linkedin'=>'Linkedin',
'mastodon'=>'Mastodon' 'mastodon'=>'Mastodon',
'vk'=>'VK'
); );
foreach ($socialNetworks as $key=>$label) { foreach ($socialNetworks as $key=>$label) {

View File

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

View File

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

View File

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