mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 20:51:53 +02:00
#4167 - Add Twitch and VK to Social Pages (wip)
- TODO: add CSS icons to css/fontello.css
This commit is contained in:
parent
1f502ce459
commit
cf919afa62
@ -770,6 +770,8 @@ if(!empty($pref['xurl']) && is_array($pref['xurl']))
|
||||
define('XURL_PINTEREST', vartrue($pref['xurl']['pinterest'], false));
|
||||
define('XURL_STEAM', vartrue($pref['xurl']['steam'], false));
|
||||
define('XURL_VIMEO', vartrue($pref['xurl']['vimeo'], false));
|
||||
define('XURL_TWITCH', vartrue($pref['xurl']['twitch'], false));
|
||||
define('XURL_VK', vartrue($pref['xurl']['vk'], false));
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -784,6 +786,8 @@ else
|
||||
define('XURL_PINTEREST', false);
|
||||
define('XURL_STEAM', false);
|
||||
define('XURL_VIMEO', false);
|
||||
define('XURL_TWITCH', false);
|
||||
define('XURL_VK', false);
|
||||
}
|
||||
|
||||
if(!defined('MAIL_IDENTIFIER'))
|
||||
|
@ -403,6 +403,8 @@ class social_ui extends e_admin_ui
|
||||
'pinterest' => array('label'=>"Pinterest", "placeholder"=>""),
|
||||
'steam' => array('label'=>"Steam", "placeholder"=>"eg. http://steamcommunity.com"),
|
||||
'vimeo' => array('label'=>"Vimeo", "placeholder"=>""),
|
||||
'twitch' => array('label'=>"Twitch", "placeholder"=>""),
|
||||
'vk' => array('label'=>"VK (Vkontakte)", "placeholder"=>""),
|
||||
);
|
||||
|
||||
foreach($xurls as $k=>$var)
|
||||
|
@ -78,10 +78,12 @@ class social_shortcodes extends e_shortcode
|
||||
'instagram' => array('href'=> deftrue('XURL_INSTAGRAM'), 'title'=>'Instagram'),
|
||||
'youtube' => array('href'=> deftrue('XURL_YOUTUBE'), 'title'=>'YouTube'),
|
||||
'steam' => array('href'=> deftrue('XURL_STEAM'), 'title'=>'Steam'),
|
||||
'vimeo' => array('href'=> deftrue('XURL_VIMEO'), 'title'=>'Vimeo')
|
||||
'vimeo' => array('href'=> deftrue('XURL_VIMEO'), 'title'=>'Vimeo'),
|
||||
'twitch' => array('href'=> deftrue('XURL_TWITCH'), 'title'=>'Twitch'),
|
||||
'vk' => array('href'=> deftrue('XURL_VK'), 'title'=>'VK (Vkontakte)')
|
||||
);
|
||||
|
||||
|
||||
// print_a($social);
|
||||
|
||||
$class = (vartrue($parm['size'])) ? 'fa-'.$parm['size'] : '';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user