[gimp-web] Added support for flattr buttons to script includes and button to main navigation menu
- From: Michael Schumacher <schumaml src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web] Added support for flattr buttons to script includes and button to main navigation menu
- Date: Mon, 16 Jul 2012 19:39:17 +0000 (UTC)
commit 9f1071ecacebd92ee8027437a9869c0a745703e5
Author: Michael Schumacher <schumaml gmx de>
Date: Mon Jul 16 21:38:11 2012 +0200
Added support for flattr buttons to script includes and button to main navigation menu
includes/wgo-page-init.xhtml | 3 +++
includes/wgo-scripts.xhtml | 12 ++++++++++++
2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/includes/wgo-page-init.xhtml b/includes/wgo-page-init.xhtml
index 3ce983c..a5626b5 100755
--- a/includes/wgo-page-init.xhtml
+++ b/includes/wgo-page-init.xhtml
@@ -22,6 +22,9 @@
<span>]</span><br />
<span>[</span>
+ <a class="FlattrButton" style="display:none;" rev="flattr;button:compact;" href="http://www.gimp.org/"></a>
+ <noscript><a href="http://flattr.com/thing/707850/GIMP-is-the-GNU-Image-Manipulation-Program" target="_blank">
+ <img src="http://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" border="0" /></a></noscript><span> | </span>
<a href="/donating/"><img src="/images/donate-sm.png" alt="Donate to GIMP" width="100" height="20" border="0" /></a>
<span>]</span>
</div>
diff --git a/includes/wgo-scripts.xhtml b/includes/wgo-scripts.xhtml
index 869a577..e11a8bb 100755
--- a/includes/wgo-scripts.xhtml
+++ b/includes/wgo-scripts.xhtml
@@ -8,3 +8,15 @@
<script type="text/javascript" src="/includes/jqbrowser.js"></script>
<script type="text/javascript" src="/includes/wgo.js"></script>
+<!-- code for the flattr button counter -->
+<script type="text/javascript">
+/* <![CDATA[ */
+ (function() {
+ var s = document.createElement('script'), t = document.getElementsByTagName('script')[0];
+ s.type = 'text/javascript';
+ s.async = true;
+ s.src = 'http://api.flattr.com/js/0.6/load.js?mode=auto';
+ t.parentNode.insertBefore(s, t);
+ })();
+/* ]]> */</script>
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]