You are here

function social_media_links_path_nouveller in Social Media Links Block and Field 7

Callback with the informations about the nouveller 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_nouveller'
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 109
Callbacks for the icon sets.

Code

function social_media_links_path_nouveller($platform = 'twitter', $style = '32') {
  $info = social_media_links_iconset('nouveller');
  switch ($platform) {
    case 'contact':
      $platform = 'email';
      break;
    case 'googleplus':
      $platform = 'google';
      break;
    case 'youtube_channel':
      $platform = 'youtube';
      break;
  }
  $path = isset($info['path']) ? $info['path'] . '/' . $style . '/' . $platform . '.png' : '';
  return $path;
}