Recent Posts
Python | 6 sec ago
None | 1 min ago
C | 2 min ago
None | 3 min ago
Bash | 3 min ago
C++ | 4 min ago
Java | 4 min ago
None | 4 min ago
None | 5 min ago
JavaScript | 5 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By Anonymous on the 29th of Jan 2009 11:13:52 AM Download | Raw | Embed | Report
  1. function get_tweet_this_url() {
  2.         $url = 'http://twitter.com/home/?status=Reading:+' .
  3.         get_tweet_this_trim_title().'+-+'. get_tweet_this_short_url().'+by+@duoblogger+and+@hendricius';
  4.         if (!tt_is_preview()) {
  5.                 if (get_option('tt_limit_to_single') == "true") {
  6.                         if (is_single() || is_page()) return $url;
  7.                         }
  8.                 else return $url;
  9.         }
  10. }
  11.  
  12. function tweet_this_url() {
  13.         echo get_tweet_this_url();
  14. }
  15.  
  16.  
  17. function tweet_this_text_link() {
  18.         $link = '<a href="' . get_tweet_this_url() . '" title="Post to Twitter (' .
  19.         get_tweet_this_short_url() . ')">Tweet This</a>';
  20.         if (!tt_is_preview()) {
  21.                 if (get_option('tt_limit_to_single') == "true") {
  22.                         if (is_single() || is_page()) echo $link;
  23.                         }
  24.                 else echo $link;
  25.         }
  26. }
Submit a correction or amendment below. Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: