From 96d446011bd340c8dc6362876d846e8b89e4341a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 22 Nov 2010 14:04:32 +0300 Subject: add support for twitter buttons --- functions.php | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 1db2d2738..9133c482a 100644 --- a/functions.php +++ b/functions.php @@ -4736,6 +4736,14 @@ print_article_enclosures($link, $id, $always_display_enclosures, $article_content); + $short_title = truncate_string(strip_tags($line['title']), 90); + + print "Tweet"; + print ""; print ""; @@ -5160,7 +5168,8 @@ onclick=\"return cdmClicked(event, $id);\" class=\"titleWrap$hlc_suffix\"> ".$line["title"]. + target=\"_blank\" href=\"". + htmlspecialchars($line["link"])."\">".$line["title"]. " $entry_author"; print $labels_str; @@ -5251,6 +5260,15 @@ print_article_enclosures($link, $id, $always_display_enclosures, $article_content); + $short_title = truncate_string( + strip_tags($line['title']), 90); + + print "Tweet"; + print ""; print "
"; -- cgit v1.2.3-54-g00ecf