function social_media_links_path_elegantthemes in Social Media Links Block and Field 7
Callback with the informations about the elegantthemes 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.
3 string references to 'social_media_links_path_elegantthemes'
- hook_social_media_links_iconset_info in ./
social_media_links.api.php - Defines the available iconsets.
- hook_social_media_links_iconset_info_alter in ./
social_media_links.api.php - Change the iconset definitions.
- 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 79 - Callbacks for the icon sets.
Code
function social_media_links_path_elegantthemes($platform = 'twitter', $style = NULL) {
$info = social_media_links_iconset('elegantthemes');
switch ($platform) {
case 'contact':
$platform = 'email';
break;
case 'youtube_channel':
$platform = 'youtube';
break;
}
$path = isset($info['path']) ? $info['path'] . '/PNG/' . $platform . '.png' : '';
return $path;
}