1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 04:55:54 +00:00

share: indicate whether article is shared or not using the icon

This commit is contained in:
Andrew Dolgov
2013-07-11 16:20:24 +04:00
parent ab25a80644
commit abb04b76a5
4 changed files with 15 additions and 1 deletions

View File

@@ -69,7 +69,9 @@ class Share extends Plugin {
}
function hook_article_button($line) {
return "<img src=\"plugins/share/share.png\"
$img = $line['uuid'] ? "share.png" : "notshared.png";
return "<img id='SHARE-IMG-".$line['int_id']."' src=\"plugins/share/$img\"
class='tagsPic' style=\"cursor : pointer\"
onclick=\"shareArticle(".$line['int_id'].")\"
title='".__('Share by URL')."'>";