You are here

function socialmedia_icon_path_jankoatwarpspeed in Social media 7

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

File

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

Code

function socialmedia_icon_path_jankoatwarpspeed($platform = 'twitter', $style = NULL) {
  $style = isset($style) ? $style : '32x32';
  $pt = array(
    'googleplus' => 'google',
  );
  $st = array(
    'blinklist' => 1,
    'twitter' => 1,
    'facebook' => 1,
    'flickr' => 1,
    'google' => 1,
    'googleplus' => 1,
    'lastfm' => 1,
    'linkedin' => 1,
    'newsvine' => 1,
    'vimeo' => 1,
    'youtube' => 1,
    'yahoo' => 1,
  );
  if (isset($st[$platform])) {
    list($style, $t) = explode('x', $style);
  }
  $style = isset($style) ? $style : '32x32';
  $path = drupal_get_path('module', 'socialmedia') . '/icons/jankoatwarpspeed/' . (isset($pt[$platform]) ? $pt[$platform] : $platform) . '_' . $style . '.png';
  return $path;
}