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:
@@ -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\">";
|
||||
|
||||
Reference in New Issue
Block a user