aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojciech Polak <polak@gnu.org>2010-04-17 10:50:28 +0200
committerWojciech Polak <polak@gnu.org>2010-04-17 10:50:28 +0200
commit2794f6e7eea5a170738263458c44e43b16282343 (patch)
tree2f75306c4d35d6fa37be0bccfaf0b00d95969bb0
parent5a864878730d3b10fb92e37c9720739c7ac18eff (diff)
downloadcheetah-2794f6e7eea5a170738263458c44e43b16282343.tar.gz
cheetah-2794f6e7eea5a170738263458c44e43b16282343.tar.bz2
Add Google Buzz and Twitter to sharing.
-rw-r--r--css/v2/style1.css18
-rw-r--r--frontend/images/master-share.pngbin4166 -> 5391 bytes
-rw-r--r--frontend/images/share/buzz.pngbin0 -> 832 bytes
-rw-r--r--frontend/images/share/twitter.pngbin0 -> 563 bytes
-rw-r--r--js/v2/share.js12
5 files changed, 22 insertions, 8 deletions
diff --git a/css/v2/style1.css b/css/v2/style1.css
index 8f3b338..db18c9e 100644
--- a/css/v2/style1.css
+++ b/css/v2/style1.css
@@ -1125,12 +1125,14 @@ span.outlink:hover {
#logout img {background: transparent url(images/master-icons.png?v=0) no-repeat -219px 0px;} /* mlogout */
-.share-email {background: transparent url(images/master-share.png?v=0) no-repeat -32px 0px;}
-.share-facebook {background: transparent url(images/master-share.png?v=0) no-repeat -48px 0px;}
-.share-ff {background: transparent url(images/master-share.png?v=0) no-repeat -64px 0px;}
-.share-delicious {background: transparent url(images/master-share.png?v=0) no-repeat 0px 0px;}
-.share-digg {background: transparent url(images/master-share.png?v=0) no-repeat -16px 0px;}
-.share-reddit {background: transparent url(images/master-share.png?v=0) no-repeat -96px 0px;}
-.share-stumbleupon {background: transparent url(images/master-share.png?v=0) no-repeat -112px 0px;}
-.share-google {background: transparent url(images/master-share.png?v=0) no-repeat -80px 0px;}
+.share-buzz {background: transparent url(images/master-share.png?v=1) no-repeat 0 0;}
+.share-delicious {background: transparent url(images/master-share.png?v=1) no-repeat -16px 0px;}
+.share-digg {background: transparent url(images/master-share.png?v=1) no-repeat -32px 0px;}
+.share-email {background: transparent url(images/master-share.png?v=1) no-repeat -48px 0px;}
+.share-facebook {background: transparent url(images/master-share.png?v=1) no-repeat -64px 0px;}
+.share-ff {background: transparent url(images/master-share.png?v=1) no-repeat -80px 0px;}
+.share-google {background: transparent url(images/master-share.png?v=1) no-repeat -96px 0px;}
+.share-reddit {background: transparent url(images/master-share.png?v=1) no-repeat -112px 0px;}
+.share-stumbleupon {background: transparent url(images/master-share.png?v=1) no-repeat -128px 0px;}
+.share-twitter {background: transparent url(images/master-share.png?v=1) no-repeat -144px 0px;}
.img-audio {background: transparent url(images/master-media.png?v=0) no-repeat 0 0; width: 32px; height: 32px;}
diff --git a/frontend/images/master-share.png b/frontend/images/master-share.png
index ce09c94..7af999e 100644
--- a/frontend/images/master-share.png
+++ b/frontend/images/master-share.png
Binary files differ
diff --git a/frontend/images/share/buzz.png b/frontend/images/share/buzz.png
new file mode 100644
index 0000000..5e1c6b0
--- /dev/null
+++ b/frontend/images/share/buzz.png
Binary files differ
diff --git a/frontend/images/share/twitter.png b/frontend/images/share/twitter.png
new file mode 100644
index 0000000..b320612
--- /dev/null
+++ b/frontend/images/share/twitter.png
Binary files differ
diff --git a/js/v2/share.js b/js/v2/share.js
index 90d1ac4..b8dee52 100644
--- a/js/v2/share.js
+++ b/js/v2/share.js
@@ -105,4 +105,12 @@ Modules.Share = new function () {
href:'http://www.google.com/bookmarks/mark?op=add&bkmk=' + href + '&title=' + desc},
['&nbsp;<img class="share-google" src="images/t.gif" width="16" height="16" alt="" />&nbsp;Google&nbsp;</span>']);
+ var bzz = DCE ('a',
+ {className:'linkCM', target:'buzz',
+ href:'http://www.google.com/buzz/post?url=' + href},
+ ['&nbsp;<img class="share-buzz" src="images/t.gif" width="16" height="16" alt="" />&nbsp;Buzz&nbsp;</span>']);
+ var twt = DCE ('a',
+ {className:'linkCM', target:'twitter',
+ href:'http://twitter.com/?status=' + href},
+ ['&nbsp;<img class="share-twitter" src="images/t.gif" width="16" height="16" alt="" />&nbsp;Twitter&nbsp;</span>']);
setCmhLink (mail, null);
@@ -114,7 +122,10 @@ Modules.Share = new function () {
setCmhLink (stu, null);
setCmhLink (goo, null);
+ setCmhLink (bzz, null);
+ setCmhLink (twt, null);
menu.appendChild (mail);
menu.appendChild (fac);
+ menu.appendChild (bzz);
menu.appendChild (ff);
menu.appendChild (dlc);
@@ -122,4 +133,5 @@ Modules.Share = new function () {
menu.appendChild (red);
menu.appendChild (stu);
+ menu.appendChild (twt);
menu.appendChild (goo);

Return to:

Send suggestions and report system problems to the System administrator.