add support for vk.com social network
This commit is contained in:
parent
696fa1c406
commit
bc4f532b97
@ -13,7 +13,8 @@ class Theme {
|
||||
'instagram'=>'Instagram',
|
||||
'codepen'=>'Codepen',
|
||||
'linkedin'=>'Linkedin',
|
||||
'mastodon'=>'Mastodon'
|
||||
'mastodon'=>'Mastodon',
|
||||
'vk'=>'VK'
|
||||
);
|
||||
|
||||
foreach ($socialNetworks as $key=>$label) {
|
||||
|
@ -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');
|
||||
|
@ -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) {
|
||||
|
@ -22,7 +22,8 @@ class Users extends dbJSON {
|
||||
'github'=>'',
|
||||
'gitlab'=>'',
|
||||
'linkedin'=>'',
|
||||
'mastodon'=>''
|
||||
'mastodon'=>'',
|
||||
'vk'=>''
|
||||
);
|
||||
|
||||
function __construct()
|
||||
|
Loading…
Reference in New Issue
Block a user