summaryrefslogtreecommitdiffabout
authorWojciech Polak <polak@gnu.org>2010-04-17 08:50:28 (GMT)
committer Wojciech Polak <polak@gnu.org>2010-04-17 08:50:28 (GMT)
commit2794f6e7eea5a170738263458c44e43b16282343 (patch) (side-by-side diff)
tree2f75306c4d35d6fa37be0bccfaf0b00d95969bb0
parent5a864878730d3b10fb92e37c9720739c7ac18eff (diff)
downloadcheetah-2794f6e7eea5a170738263458c44e43b16282343.tar.gz
cheetah-2794f6e7eea5a170738263458c44e43b16282343.tar.bz2
Add Google Buzz and Twitter to sharing.
Diffstat (more/less context) (ignore whitespace changes)
-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
@@ -1124,14 +1124,16 @@ span.outlink:hover {
#menuOpenCWindow4 img {background: transparent url(images/master-icons.png?v=0) no-repeat -171px 0px;} /* medit */
#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;}
.img-image {background: transparent url(images/master-media.png?v=0) no-repeat -32px 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
--- a/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
--- a/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
@@ -104,6 +104,14 @@ Modules.Share = new function () {
{className:'linkCM', target:'google',
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);
setCmhLink (ff, null);
@@ -113,14 +121,18 @@ Modules.Share = new function () {
setCmhLink (fac, null);
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);
menu.appendChild (dig);
menu.appendChild (red);
menu.appendChild (stu);
+ menu.appendChild (twt);
menu.appendChild (goo);
menu.style.width = (menuLength * 0.50 + 1) + 'em';

Return to:

Send suggestions and report system problems to the System administrator.