You are here

function socialmedia_icon_path_thegforce in Social media 7

1 string reference to 'socialmedia_icon_path_thegforce'
socialmedia_socialmedia_iconset_info in ./socialmedia.icons.inc

File

./socialmedia.icons.inc, line 245
Functions pertaining to iconset management

Code

function socialmedia_icon_path_thegforce($platform = 'twitter', $style = NULL) {
  $trans = array(
    'delicious' => 'Del icio us',
    'digg' => 'Digg',
    'facebook' => 'Facebook',
    'flickr' => 'Flickr',
    'google' => 'Google Bookmark',
    'googleplus' => 'Google',
    'lastfm' => 'LastFM',
    'linkedin' => 'LinkedIn',
    'myspace' => 'Myspace',
    'reddit' => 'Reddit',
    'rss' => 'RSS',
    'stumbleupon' => 'StumbleUpon',
    'technorati' => 'Technorati',
    'twitter' => 'Twitter',
    'vimeo' => 'Vimeo',
    'youtube' => 'Youtube',
  );
  if (!isset($trans[$platform])) {
    return FALSE;
  }
  $style = isset($style) ? $style : '32x32';
  $path = drupal_get_path('module', 'socialmedia') . '/icons/theg-force/Social icons Hand Drawn/' . $trans[$platform] . '/' . $style . '.png';
  return $path;
}