--- C:/Users/j/AppData/Local/Temp/easy--revBASE.svn000.tmp.php Wed Jan 4 14:28:33 2012 +++ C:/Users/j/Desktop/Energy/svnrepo/csa/trunk/public-html/wp-content/plugins/easy-social-media/easy-social-media.php Wed Jan 4 14:51:45 2012 @@ -64,23 +64,39 @@ //Adds Social Media Buttons to posts & pages - function add_social_buttons($content) { + function add_social_buttons($content, $url = '') { $social .= '
'; + if ($url) { + $href = array ( + 'fb' => ' data-href="' . $url . '"', + 'twitter' => ' data-url="' . $url . '"', + 'google' => ' href="' . $url . '"', + 'linkedin' => ' data-url="' . $url . '"', + 'stumbleupon' => ' location="' . $url . '"', + ); + } else { + $href = array (); + } //Facebook Button - $social .= '
'; + $social .= '
'; //Twitter Send - $social .= '
'; + $social .= '
'; //Google+ Button - $social .= '
'; + $social .= '
'; //Linkedin Button - $social .= '
'; + $social .= '
'; //Stumbleupon Button - $social .= '
'; + $social .= '
'; $social .= '
';