diff options
author | Andrew Dolgov <[email protected]> | 2010-11-25 12:58:29 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-25 12:58:29 +0300 |
commit | ba7e88e5a59295ac3eed38ea627e9fa2a414b989 (patch) | |
tree | 64c5475fcb5734b5f0a1758355b4174e1992ebc4 /functions.php | |
parent | 411fe209d642f64ee1f856908e6c1b4507893fcf (diff) |
add tweet button to digest, misc digest fixes; rework article tweeting to use ajax loading of needed info
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/functions.php b/functions.php index 888af5667..5f88c5552 100644 --- a/functions.php +++ b/functions.php @@ -4577,15 +4577,6 @@ print "<div id=\"PTITLE-$id\" style=\"display : none\">" . truncate_string(strip_tags($line['title']), 15) . "</div>"; - $tweet_title = htmlspecialchars( - truncate_string(strip_tags($line['title']), 100, '...')); - - $tweet_link = htmlspecialchars($line['link']); - - print "<span id=\"TWEETINFO-$id\" style=\"display : none\">"; - print json_encode(array("title" => $tweet_title, "link" => $tweet_link)); - print "</span>"; - print "<div class=\"postReply\" id=\"POST-$id\">"; /* print "<div dojoType=\"dijit.Menu\" style=\"display: none;\" @@ -5232,18 +5223,6 @@ print_article_enclosures($link, $id, $always_display_enclosures, $article_content); - $short_title = truncate_string( - strip_tags($line['title']), 90); - - $tweet_title = htmlspecialchars( - truncate_string(strip_tags($line['title']), 100, '...')); - - $tweet_link = htmlspecialchars($line['link']); - - print "<span id=\"TWEETINFO-$id\" style=\"display : none\">"; - print json_encode(array("title" => $tweet_title, "link" => $tweet_link)); - print "</span>"; - print "</div>"; print "<div class=\"cdmFooter\">"; |