function social_media_links_path_webtoolkit in Social Media Links Block and Field 7
Callback with the informations about the themeiD icon set.
Parameters
string $platform: Name of the platform for which the path is returned.
string $style: Size of the icons.
Return value
string The image path.
1 string reference to 'social_media_links_path_webtoolkit'
- social_media_links_social_media_links_iconset_info in ./
social_media_links.iconsets.inc - Register the default icon sets.
File
- ./
social_media_links.iconsets.inc, line 175 - Callbacks for the icon sets.
Code
function social_media_links_path_webtoolkit($platform = 'twitter', $style = '32') {
$info = social_media_links_iconset('webtoolkit');
switch ($platform) {
case 'googleplus':
$platform = 'google';
break;
case 'youtube_channel':
$platform = 'youtube';
break;
}
$path = isset($info['path']) ? $info['path'] . '/' . $style . 'x' . $style . '/' . $platform . '.png' : '';
return $path;
}