Exemplo n.º 1
0
/**
 * Builds links to all available social bookmarking services.
 * 
 * @param   string   $url - Url which should be added 
 * @param   string   $title - Title which describes the content of the page
 * @return  string   Linked icons
 * @see     link_to_delicious, link_to_technorati, link_to_furl, link_to_yahoo_myweb, link_to_google_bookmarks, link_to_blinklist, link_to_magnolia, link_to_windows_live, link_to_digg, link_to_netscape, link_to_stumbleupon, link_to_newsvine, link_to_reddit, link_to_tailrank, link_to_spurl, link_to_yigg
 */
function link_to_social_bookmarking($url, $title = null)
{
    $links = link_to_delicious($url, $title);
    $links .= ' ' . link_to_technorati($url);
    $links .= ' ' . link_to_furl($url, $title);
    $links .= ' ' . link_to_yahoo_myweb($url, $title);
    $links .= ' ' . link_to_google_bookmarks($url, $title);
    $links .= ' ' . link_to_blinklist($url, $title);
    $links .= ' ' . link_to_magnolia($url, $title);
    $links .= ' ' . link_to_windows_live($url, $title);
    $links .= ' ' . link_to_digg($url, $title);
    $links .= ' ' . link_to_netscape($url, $title);
    $links .= ' ' . link_to_stumbleupon($url, $title);
    $links .= ' ' . link_to_newsvine($url, $title);
    $links .= ' ' . link_to_reddit($url, $title);
    $links .= ' ' . link_to_tailrank($url, $title);
    $links .= ' ' . link_to_spurl($url, $title);
    $links .= ' ' . link_to_yigg($url);
    return $links;
}
/**
 * Builds links to all available social bookmarking services.
 * 
 * @param   string   $url - Url which should be added 
 * @param   string   $title - Title which describes the content of the page
 * @return  string   string XHTML compliant <a href> tags
 * @see     link_to_delicious, link_to_technorati, link_to_furl, link_to_yahoo_myweb, link_to_google_bookmarks, link_to_blinklist, link_to_magnolia, link_to_windows_live, link_to_digg, link_to_netscape, link_to_stumbleupon, link_to_newsvine, link_to_reddit, link_to_tailrank, link_to_spurl, link_to_yigg
 */
function link_to_all_social_bookmarking($url, $title)
{
  $links = '<li>'.link_to_twitter($url, $title).'</li>';
  $links .= '<li>'.link_to_facebook($url, $title).'</li>';
  $links .= '<li>'.link_to_delicious($url, $title).'</li>';
  $links .= '<li>'.link_to_technorati($url).'</li>';
  $links .= '<li>'.link_to_furl($url, $title).'</li>';
  $links .= '<li>'.link_to_yahoo_myweb($url, $title).'</li>';
  $links .= '<li>'.link_to_google_bookmarks($url, $title).'</li>';
  $links .= '<li>'.link_to_blinklist($url, $title).'</li>';
  $links .= '<li>'.link_to_magnolia($url, $title).'</li>';
  $links .= '<li>'.link_to_windows_live($url, $title).'</li>';
  $links .= '<li>'.link_to_digg($url, $title).'</li>';
  $links .= '<li>'.link_to_netscape($url, $title).'</li>';
  $links .= '<li>'.link_to_stumbleupon($url, $title).'</li>';
  $links .= '<li>'.link_to_newsvine($url, $title).'</li>';
  $links .= '<li>'.link_to_reddit($url, $title).'</li>';
  $links .= '<li>'.link_to_tailrank($url, $title).'</li>';
  $links .= '<li>'.link_to_spurl($url, $title).'</li>';
  $links .= '<li>'.link_to_yigg($url).'</li>';

  return $links;
}