public function getMainUrlFromName($social)
    {
        foreach ($this->getDefinitions() as $domain => $name) {

            if ($name == $social) {

                return $domain;
            }
        }
        return null;
    }
public function getMainUrlFromName($social)
    {
        foreach ($this->getDefinitions() as $domain => $name) {

            if ($name == $social) {

                return $domain;
            }
        }
        return null;
    }
public function getMainUrlFromName ( $ social ) { foreach ( $ this -> getDefinitions ( ) as $ domain => $ name ) { if ( $ name == $ social ) { return $ domain ; } } return null ; }
Returns the main url of the given social network

@param string  $social

@return string
Returns the main url of the given social network