1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-25 12:41:29 +00:00

add tweet button to digest, misc digest fixes; rework article tweeting to use ajax loading of needed info

This commit is contained in:
Andrew Dolgov
2010-11-25 12:58:29 +03:00
parent 411fe209d6
commit ba7e88e5a5
7 changed files with 96 additions and 48 deletions

View File

@@ -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\">";