aboutsummaryrefslogtreecommitdiff
path: root/pyAggr3g470r.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2011-06-08 08:15:08 +0200
committercedricbonhomme <devnull@localhost>2011-06-08 08:15:08 +0200
commit0c4d8ed5e8327f1eb391609eb1b7742a2506df5a (patch)
treead2d3347955ee1712dea3f17b35b7de8e188cddb /pyAggr3g470r.py
parentMinor Bugfix. Age of the last article. (diff)
downloadnewspipe-0c4d8ed5e8327f1eb391609eb1b7742a2506df5a.tar.gz
newspipe-0c4d8ed5e8327f1eb391609eb1b7742a2506df5a.tar.bz2
newspipe-0c4d8ed5e8327f1eb391609eb1b7742a2506df5a.zip
Added Google's +1 button
Diffstat (limited to 'pyAggr3g470r.py')
-rwxr-xr-xpyAggr3g470r.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py
index 2b47ec87..c30e8716 100755
--- a/pyAggr3g470r.py
+++ b/pyAggr3g470r.py
@@ -105,6 +105,7 @@ def htmlheader(nb_unread_articles=""):
'\n\t<title>'+ nb_unread_articles +'pyAggr3g470r - News aggregator</title>\n' + \
'\t<link rel="stylesheet" type="text/css" href="/css/style.css" />' + \
'\n\t<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>\n' + \
+ '\n\t<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>\n' + \
'</head>\n'
htmlfooter = '<p>This software is under GPLv3 license. You are welcome to copy, modify or' + \
@@ -495,8 +496,13 @@ class Root:
(article.article_link, article.article_title, "via pyAggr3g470r")
# on Identi.ca
- html += """\n<a href="http://identi.ca/index.php?action=newnotice&status_textarea=%s: %s" title="Share on Identi.ca" target="_blank"><img src="/css/img/identica.png" /></a> &nbsp;&nbsp; \n""" % \
+ html += """\n\n<a href="http://identi.ca/index.php?action=newnotice&status_textarea=%s: %s" title="Share on Identi.ca" target="_blank"><img src="/css/img/identica.png" /></a> &nbsp;&nbsp; \n""" % \
(article.article_title, article.article_link)
+
+ # Google +1 button
+ html += """\n\n<div class="g-plusone" size="medium" href="%s" data-count="true"></div> &nbsp;&nbsp; """ % \
+ (article.article_link,)
+
# on Google Buzz
html += """\n\n<a href="http://www.google.com/buzz/post?url=%s&message=%s"
rel="noreferrer" target="_blank">\n\t
bgstack15