_bw_social_host() – Return the preferred hostname for the social network

You appear to be a bot. Output may be restricted

Description

Return the preferred hostname for the social network

Usage

$string = _bw_social_host( $lc_social );

Parameters

$lc_social
( string ) required – lower case name of the social network

Returns

string

Source

File name: oik/shortcodes/oik-follow.php
Lines:

1 to 9 of 9
function _bw_social_host( $lc_social ) {
  $hosts = array( "google" => "profiles.google.com"
                , "picasa" => "picasaweb.google.com"
                , "github" => "github.com"
                , "wordpress" => "profiles.wordpress.org" 
                );
  $host = bw_array_get( $hosts, $lc_social, "www.${lc_social}.com" );
  return( $host );
}
 

 View on Trac