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) (unidiff)
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 {
1124#menuOpenCWindow4 img {background: transparent url(images/master-icons.png?v=0) no-repeat -171px 0px;} /* medit */ 1124#menuOpenCWindow4 img {background: transparent url(images/master-icons.png?v=0) no-repeat -171px 0px;} /* medit */
1125#logout img {background: transparent url(images/master-icons.png?v=0) no-repeat -219px 0px;} /* mlogout */ 1125#logout img {background: transparent url(images/master-icons.png?v=0) no-repeat -219px 0px;} /* mlogout */
1126 1126
1127.share-email {background: transparent url(images/master-share.png?v=0) no-repeat -32px 0px;} 1127.share-buzz {background: transparent url(images/master-share.png?v=1) no-repeat 0 0;}
1128.share-facebook {background: transparent url(images/master-share.png?v=0) no-repeat -48px 0px;} 1128.share-delicious {background: transparent url(images/master-share.png?v=1) no-repeat -16px 0px;}
1129.share-ff {background: transparent url(images/master-share.png?v=0) no-repeat -64px 0px;} 1129.share-digg {background: transparent url(images/master-share.png?v=1) no-repeat -32px 0px;}
1130.share-delicious {background: transparent url(images/master-share.png?v=0) no-repeat 0px 0px;} 1130.share-email {background: transparent url(images/master-share.png?v=1) no-repeat -48px 0px;}
1131.share-digg {background: transparent url(images/master-share.png?v=0) no-repeat -16px 0px;} 1131.share-facebook {background: transparent url(images/master-share.png?v=1) no-repeat -64px 0px;}
1132.share-reddit {background: transparent url(images/master-share.png?v=0) no-repeat -96px 0px;} 1132.share-ff {background: transparent url(images/master-share.png?v=1) no-repeat -80px 0px;}
1133.share-stumbleupon {background: transparent url(images/master-share.png?v=0) no-repeat -112px 0px;} 1133.share-google {background: transparent url(images/master-share.png?v=1) no-repeat -96px 0px;}
1134.share-google {background: transparent url(images/master-share.png?v=0) no-repeat -80px 0px;} 1134.share-reddit {background: transparent url(images/master-share.png?v=1) no-repeat -112px 0px;}
1135.share-stumbleupon {background: transparent url(images/master-share.png?v=1) no-repeat -128px 0px;}
1136.share-twitter {background: transparent url(images/master-share.png?v=1) no-repeat -144px 0px;}
1135 1137
1136.img-audio {background: transparent url(images/master-media.png?v=0) no-repeat 0 0; width: 32px; height: 32px;} 1138.img-audio {background: transparent url(images/master-media.png?v=0) no-repeat 0 0; width: 32px; height: 32px;}
1137.img-image {background: transparent url(images/master-media.png?v=0) no-repeat -32px 0; width: 32px; height: 32px;} 1139.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 () {
104 {className:'linkCM', target:'google', 104 {className:'linkCM', target:'google',
105 href:'http://www.google.com/bookmarks/mark?op=add&bkmk=' + href + '&title=' + desc}, 105 href:'http://www.google.com/bookmarks/mark?op=add&bkmk=' + href + '&title=' + desc},
106 ['&nbsp;<img class="share-google" src="images/t.gif" width="16" height="16" alt="" />&nbsp;Google&nbsp;</span>']); 106 ['&nbsp;<img class="share-google" src="images/t.gif" width="16" height="16" alt="" />&nbsp;Google&nbsp;</span>']);
107 var bzz = DCE ('a',
108 {className:'linkCM', target:'buzz',
109 href:'http://www.google.com/buzz/post?url=' + href},
110 ['&nbsp;<img class="share-buzz" src="images/t.gif" width="16" height="16" alt="" />&nbsp;Buzz&nbsp;</span>']);
111 var twt = DCE ('a',
112 {className:'linkCM', target:'twitter',
113 href:'http://twitter.com/?status=' + href},
114 ['&nbsp;<img class="share-twitter" src="images/t.gif" width="16" height="16" alt="" />&nbsp;Twitter&nbsp;</span>']);
107 115
108 setCmhLink (mail, null); 116 setCmhLink (mail, null);
109 setCmhLink (ff, null); 117 setCmhLink (ff, null);
@@ -113,14 +121,18 @@ Modules.Share = new function () {
113 setCmhLink (fac, null); 121 setCmhLink (fac, null);
114 setCmhLink (stu, null); 122 setCmhLink (stu, null);
115 setCmhLink (goo, null); 123 setCmhLink (goo, null);
124 setCmhLink (bzz, null);
125 setCmhLink (twt, null);
116 126
117 menu.appendChild (mail); 127 menu.appendChild (mail);
118 menu.appendChild (fac); 128 menu.appendChild (fac);
129 menu.appendChild (bzz);
119 menu.appendChild (ff); 130 menu.appendChild (ff);
120 menu.appendChild (dlc); 131 menu.appendChild (dlc);
121 menu.appendChild (dig); 132 menu.appendChild (dig);
122 menu.appendChild (red); 133 menu.appendChild (red);
123 menu.appendChild (stu); 134 menu.appendChild (stu);
135 menu.appendChild (twt);
124 menu.appendChild (goo); 136 menu.appendChild (goo);
125 137
126 menu.style.width = (menuLength * 0.50 + 1) + 'em'; 138 menu.style.width = (menuLength * 0.50 + 1) + 'em';

Return to:

Send suggestions and report system problems to the System administrator.