function mystique_shareThis() { global $post; $content = get_the_excerpt(); ?> <!-- socialize --> <div class="shareThis clear-block"> <a href="#" class="control share"><?php _e("Share this post!", "mystique"); ?> </a> <ul class="bubble"> <li><a href="http://twitter.com/home?status=<?php the_title(); ?> +-+<?php echo mystique_getTinyUrl(get_permalink()); ?> " class="twitter" title="Tweet This!"><span>Twitter</span></a></li> <li><a href="http://digg.com/submit?phase=2&url=<?php the_permalink(); ?> &title=<?php the_title(); ?> " class="digg" title="Digg this!"><span>Digg</span></a></li> <li><a href="http://www.facebook.com/share.php?u=<?php the_permalink(); ?> &t=<?php the_title(); ?> " class="facebook" title="Share this on Facebook"><span>Facebook</span></a></li> <li><a href="http://del.icio.us/post?url=<?php the_permalink(); ?> &title=<?php the_title(); ?> " class="delicious" title="Share this on del.icio.us"><span>Delicious</span></a></li> <li><a href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?> &title=<?php the_title(); ?> " class="stumbleupon" title="Stumbled upon something good? Share it on StumbleUpon"><span>StumbleUpon</span></a></li> <li><a href="http://www.google.com/bookmarks/mark?op=add&bkmk=<?php the_permalink(); ?> &title=<?php the_title(); ?> " class="google" title="Add this to Google Bookmarks"><span>Google Bookmarks</span></a></li> <li><a href="http://www.linkedin.com/shareArticle?mini=true&url=<?php the_permalink(); ?> &title=<?php the_title(); ?> &summary=<?php echo strip_tags($content); ?> &source=<?php bloginfo('name'); ?> " class="linkedin" title="Share this on Linkedin"><span>LinkedIn</span></a></li> <li><a href="http://buzz.yahoo.com/buzz?targetUrl=<?php the_permalink(); ?> &headline=<?php the_title(); ?> &summary=<?php echo strip_tags($content); ?> " class="yahoo" title="Buzz up!"><span>Yahoo Bookmarks</span></a></li> <li><a href="http://technorati.com/faves?add=<?php the_permalink(); ?> " class="technorati" title="Share this on Technorati"><span>Technorati Favorites</span></a></li> </ul> </div> <!-- /socialize --> <?php }
function mystique_tinyurl($atts) { extract(shortcode_atts(array('url' => '', 'title' => '', 'rel' => 'nofollow'), $atts)); if (!$title) { $title = $url; } return '<a href="' . wp_specialchars(mystique_getTinyUrl($url)) . '" rel="' . wp_specialchars($rel) . '">' . wp_specialchars($title) . '</a>'; }