]> git.wh0rd.org - tt-rss.git/blobdiff - functions.php
add tweet button to digest, misc digest fixes; rework article tweeting to use ajax...
[tt-rss.git] / functions.php
index 888af56672ea5d67dd8c23f4a8efc7f07123c14f..5f88c5552c765b4084205a8cca5c0bd8d7c43a92 100644 (file)
                        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;\" 
                                        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\">";