File: /home/mmickelson/martyknows.com/wp-content/themes/dark-wood/sharelist.php
<?php
$shareicons = array("delicious","digg","facebook","stumbleupon","technorati","twitter");
$delurl = "http://delicious.com/post?url=".get_permalink()."&title=".get_the_title()."&notes=".get_the_excerpt();
$diggurl = "http://digg.com/submit?phase=2&url=".get_permalink()."&title=".get_the_title()."&bodytext=".get_the_excerpt();
$facebookurl = "http://www.facebook.com/share.php?u=".get_permalink()."&t=".get_the_title();
$stumbleurl = "http://www.stumbleupon.com/submit?url=".get_permalink()."&title=".get_the_title();
$technoratiurl = "http://technorati.com/faves?add=".get_permalink();
$twitterurl = "http://twitter.com/home?status=".get_the_title()."%20-%20".get_permalink();
$shareurlarr = array($delurl,$diggurl,$facebookurl,$stumbleurl,$technoratiurl,$twitterurl);
$shareentry = "";
$count = 0;
foreach($shareicons as $icon) {
$shareentry .= '<a href="'.$shareurlarr[$count].'" title="Share this article on '.ucwords($icon).'"><img class="shareiconimg" src="'.get_bloginfo('template_url').'/images/bookmark_icons/'.$icon.'.png" /></a>';
$count++;
}
echo $shareentry;
?>