Sociable - Version 3.5.0

Version Description

  • The icons now load in a CSS Sprites, allowing for faster download times.
  • These services have been discontinued: BlogMeme FR, BlogMeme SP, co.mments, DesignFloat.com, PPNow.net, Symbaloo.com.
  • You can now add links to your browser favorites.
  • iFrames added for services that support them.
  • You can know unselect the transparency effect on the sociable icons.
Download this release

Release Info

Developer sociable
Plugin Icon wp plugin Sociable
Version 3.5.0
Comparing to
See all releases

Code changes from version 3.4.4 to 3.5.0

addtofavorites.js ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ function AddToFavorites()
2
+ {
3
+ var title = document.title; var url = location.href;
4
+ if (window.sidebar) // Firefox
5
+ window.sidebar.addPanel(title, url, '');
6
+ else if(window.opera && window.print) // Opera
7
+ {
8
+ var elem = document.createElement('a');
9
+ elem.setAttribute('href',url);
10
+ elem.setAttribute('title',title);
11
+ elem.setAttribute('rel','sidebar'); // required to work in opera 7+
12
+ elem.click();
13
+ }
14
+ else if(document.all) // IE
15
+ window.external.AddFavorite(url, title);
16
+ }
i18n/sociable.pot ADDED
@@ -0,0 +1,229 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # This file is put in the public domain.
3
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4
+ #
5
+ #, fuzzy
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: \n"
9
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/prueba\n"
10
+ "POT-Creation-Date: 2009-09-30 17:14-0300\n"
11
+ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=CHARSET\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+
18
+ #: sociable.php:905
19
+ msgid "Share and Enjoy:"
20
+ msgstr ""
21
+
22
+ #: sociable.php:1028
23
+ msgid "Sociable disabled?"
24
+ msgstr ""
25
+
26
+ #: sociable.php:1066
27
+ msgid "Restored all settings to defaults."
28
+ msgstr ""
29
+
30
+ #: sociable.php:1123
31
+ msgid "Saved changes."
32
+ msgstr ""
33
+
34
+ #: sociable.php:1150
35
+ msgid "Sociable Options"
36
+ msgstr ""
37
+
38
+ #: sociable.php:1154
39
+ msgid "Sites"
40
+ msgstr ""
41
+
42
+ #: sociable.php:1155
43
+ msgid ""
44
+ "Check the sites you want to appear on your site. Drag and drop sites to "
45
+ "reorder them."
46
+ msgstr ""
47
+
48
+ #: sociable.php:1198
49
+ msgid "Disable alpha mask on share toolbar?"
50
+ msgstr ""
51
+
52
+ #: sociable.php:1206
53
+ msgid "Tagline"
54
+ msgstr ""
55
+
56
+ #: sociable.php:1209
57
+ msgid ""
58
+ "Change the text displayed in front of the icons below. For complete "
59
+ "customization, copy the contents of <em>sociable.css</em> in the Sociable "
60
+ "plugin directory to your theme's <em>style.css</em> and disable the use of "
61
+ "the sociable stylesheet below."
62
+ msgstr ""
63
+
64
+ #: sociable.php:1215
65
+ msgid "Position:"
66
+ msgstr ""
67
+
68
+ #: sociable.php:1218
69
+ msgid ""
70
+ "The icons appear at the end of each blog post, and posts may show on many "
71
+ "different types of pages. Depending on your theme and audience, it may be "
72
+ "tacky to display icons on all types of pages."
73
+ msgstr ""
74
+
75
+ #: sociable.php:1226
76
+ msgid "Front page of the blog"
77
+ msgstr ""
78
+
79
+ #: sociable.php:1227
80
+ msgid "Individual blog posts"
81
+ msgstr ""
82
+
83
+ #: sociable.php:1228
84
+ msgid "Individual WordPress \"Pages\""
85
+ msgstr ""
86
+
87
+ #: sociable.php:1229
88
+ msgid "Category archives"
89
+ msgstr ""
90
+
91
+ #: sociable.php:1230
92
+ msgid "Tag listings"
93
+ msgstr ""
94
+
95
+ #: sociable.php:1231
96
+ msgid "Date-based archives"
97
+ msgstr ""
98
+
99
+ #: sociable.php:1232
100
+ msgid "Author archives"
101
+ msgstr ""
102
+
103
+ #: sociable.php:1233
104
+ msgid "Search results"
105
+ msgstr ""
106
+
107
+ #: sociable.php:1234
108
+ msgid "RSS feed items"
109
+ msgstr ""
110
+
111
+ #: sociable.php:1239
112
+ msgid "Use CSS:"
113
+ msgstr ""
114
+
115
+ #: sociable.php:1242
116
+ msgid "Use the sociable stylesheet?"
117
+ msgstr ""
118
+
119
+ #: sociable.php:1247
120
+ msgid "Use Text Links:"
121
+ msgstr ""
122
+
123
+ #: sociable.php:1250
124
+ msgid "Use text links without images?"
125
+ msgstr ""
126
+
127
+ #: sociable.php:1255
128
+ msgid "Image directory"
129
+ msgstr ""
130
+
131
+ #: sociable.php:1258
132
+ msgid ""
133
+ "Sociable comes with a nice set of images, if you want to replace those with "
134
+ "your own, enter the URL where you've put them in here, and make sure they "
135
+ "have the same name as the ones that come with Sociable."
136
+ msgstr ""
137
+
138
+ #: sociable.php:1264
139
+ msgid "Use thickbox/iframe on links?:"
140
+ msgstr ""
141
+
142
+ #: sociable.php:1268
143
+ msgid "width:"
144
+ msgstr ""
145
+
146
+ #: sociable.php:1269
147
+ msgid "height:"
148
+ msgstr ""
149
+
150
+ #: sociable.php:1274
151
+ msgid "Open in new window:"
152
+ msgstr ""
153
+
154
+ #: sociable.php:1277
155
+ msgid ""
156
+ "Use <code>target=_blank</code> on links? (Forces links to open a new window)"
157
+ msgstr ""
158
+
159
+ #: sociable.php:1282
160
+ msgid "awe.sm:"
161
+ msgstr ""
162
+
163
+ #: sociable.php:1285
164
+ msgid ""
165
+ "You can choose to automatically have the links posted to certain sites "
166
+ "shortened via awe.sm and encoded with the channel info and your API Key."
167
+ msgstr ""
168
+
169
+ #: sociable.php:1286
170
+ msgid "Enable awe.sm URLs?"
171
+ msgstr ""
172
+
173
+ #: sociable.php:1287
174
+ msgid "awe.sm API Key:"
175
+ msgstr ""
176
+
177
+ #: sociable.php:1293
178
+ msgid "Save Changes"
179
+ msgstr ""
180
+
181
+ #: sociable.php:1294
182
+ msgid "Restore Built-in Defaults"
183
+ msgstr ""
184
+
185
+ #: sociable.php:1299
186
+ msgid "Like this plugin?"
187
+ msgstr ""
188
+
189
+ #: sociable.php:1300
190
+ msgid "Why not do any of the following:"
191
+ msgstr ""
192
+
193
+ #: sociable.php:1302
194
+ msgid "Link to it so other folks can find out about it."
195
+ msgstr ""
196
+
197
+ #: sociable.php:1303
198
+ msgid ""
199
+ "<a href=\"http://wordpress.org/extend/plugins/sociable/\">Give it a good "
200
+ "rating</a> on WordPress.org."
201
+ msgstr ""
202
+
203
+ #: sociable.php:1305
204
+ msgid "Need support?"
205
+ msgstr ""
206
+
207
+ #: sociable.php:1306
208
+ msgid ""
209
+ "If you have any problems or good ideas, please talk about them in the <a "
210
+ "href=\"http://wordpress.org/tags/sociable\">Support forums</a>."
211
+ msgstr ""
212
+
213
+ #: sociable.php:1308
214
+ msgid "Credits"
215
+ msgstr ""
216
+
217
+ #: sociable.php:1309
218
+ msgid ""
219
+ "<a href=\"http://blogplay.com/plugin/\">Sociable</a> was originally "
220
+ "developed by <a href=\"http://push.cx/\">Peter Harkins</a> and was been "
221
+ "maintained by <a href=\"http://yoast.com/\">Joost de Valk</a> since the "
222
+ "beginning of 2008. On September of 2009, the new home of Sociable is <a href="
223
+ "\"http://blogplay.com\">BlogPlay.com</a>. It's released under the GNU GPL "
224
+ "version 2."
225
+ msgstr ""
226
+
227
+ #: sociable.php:1340
228
+ msgid "Settings"
229
+ msgstr ""
images/services-sprite.gif ADDED
Binary file
images/services-sprite.png ADDED
Binary file
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: sociable
3
  Tags: social, bookmark, bookmarks, bookmarking, social bookmarking, social bookmarks, blogplay
4
  Requires at least: 2.6
5
  Tested up to: 2.8.4
6
- Stable tag: 3.4.4
7
 
8
  Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
9
 
@@ -22,6 +22,14 @@ More info:
22
 
23
  == Changelog ==
24
 
 
 
 
 
 
 
 
 
25
  = 3.4.4 =
26
  * Another fix for the sociableoff dilemma's, no backwards compatibility unfortunately, so disable sociable again on pages where you want to disable it.
27
 
3
  Tags: social, bookmark, bookmarks, bookmarking, social bookmarking, social bookmarks, blogplay
4
  Requires at least: 2.6
5
  Tested up to: 2.8.4
6
+ Stable tag: 3.5.0
7
 
8
  Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
9
 
22
 
23
  == Changelog ==
24
 
25
+ = 3.5.0 =
26
+
27
+ * The icons now load in a CSS Sprites, allowing for faster download times.
28
+ * These services have been discontinued: BlogMeme FR, BlogMeme SP, co.mments, DesignFloat.com, PPNow.net, Symbaloo.com.
29
+ * You can now add links to your browser favorites.
30
+ * iFrames added for services that support them.
31
+ * You can know unselect the transparency effect on the sociable icons.
32
+
33
  = 3.4.4 =
34
  * Another fix for the sociableoff dilemma's, no backwards compatibility unfortunately, so disable sociable again on pages where you want to disable it.
35
 
sociable-admin.css CHANGED
@@ -14,7 +14,7 @@
14
  cursor: move;
15
  float: left;
16
  margin: 2px 2px 0 0;
17
- width: 135px;
18
  height: 20px;
19
  text-align: left;
20
  font-size: 10px;
@@ -23,6 +23,9 @@
23
  -webkit-border-radius: 5px;
24
  border-radius: 5px;
25
  }
 
 
 
26
  #sociable_site_list li.active {
27
  background-color: #6da6d1;
28
  }
14
  cursor: move;
15
  float: left;
16
  margin: 2px 2px 0 0;
17
+ width: 153px;
18
  height: 20px;
19
  text-align: left;
20
  font-size: 10px;
23
  -webkit-border-radius: 5px;
24
  border-radius: 5px;
25
  }
26
+ #sociable_site_list li img {
27
+ margin-right: 6px;
28
+ }
29
  #sociable_site_list li.active {
30
  background-color: #6da6d1;
31
  }
sociable.php CHANGED
@@ -3,12 +3,13 @@
3
  Plugin Name: Sociable
4
  Plugin URI: http://blogplay.com/plugin
5
  Description: Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
6
- Version: 3.4.4
7
- Author: Joost de Valk
8
- Author URI: http://blogplay.com
9
 
10
  Copyright 2006 Peter Harkins (ph@malaprop.org)
11
  Copyright 2008-2009 Joost de Valk (joost@yoast.com)
 
12
 
13
  This program is free software; you can redistribute it and/or modify
14
  it under the terms of the GNU General Public License as published by
@@ -62,492 +63,568 @@ $sociable_known_sites = Array(
62
  'BarraPunto' => Array(
63
  'favicon' => 'barrapunto.png',
64
  'url' => 'http://barrapunto.com/submit.pl?subj=TITLE&amp;story=PERMALINK',
 
65
  ),
66
 
67
  'Bitacoras.com' => Array(
68
  'favicon' => 'bitacoras.png',
69
  'url' => 'http://bitacoras.com/anotaciones/PERMALINK',
 
70
  ),
71
 
72
  'BlinkList' => Array(
73
  'favicon' => 'blinklist.png',
74
  'url' => 'http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=PERMALINK&amp;Title=TITLE',
75
- ),
76
-
77
- 'BlogMemes Fr' => Array(
78
- 'favicon' => 'blogmemes.png',
79
- 'url' => 'http://www.blogmemes.fr/post.php?url=PERMALINK&amp;title=TITLE',
80
- ),
81
-
82
- 'BlogMemes Sp' => Array(
83
- 'favicon' => 'blogmemes.png',
84
- 'url' => 'http://www.blogmemes.com/post.php?url=PERMALINK&amp;title=TITLE',
85
  ),
86
 
87
  'blogmarks' => Array(
88
  'favicon' => 'blogmarks.png',
89
  'url' => 'http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=PERMALINK&amp;title=TITLE',
 
90
  ),
91
 
92
  'Blogosphere News' => Array(
93
  'favicon' => 'blogospherenews.png',
94
  'url' => 'http://www.blogospherenews.com/submit.php?url=PERMALINK&amp;title=TITLE',
 
95
  ),
96
 
97
  'blogtercimlap' => Array(
98
  'favicon' => 'blogter.png',
99
  'url' => 'http://cimlap.blogter.hu/index.php?action=suggest_link&amp;title=TITLE&amp;url=PERMALINK',
 
100
  ),
101
 
102
  'Faves' => Array(
103
  'favicon' => 'bluedot.png',
104
  'url' => 'http://faves.com/Authoring.aspx?u=PERMALINK&amp;title=TITLE',
105
- ),
106
-
107
- 'co.mments' => Array(
108
- 'favicon' => 'co.mments.png',
109
- 'url' => 'http://co.mments.com/track?url=PERMALINK&amp;title=TITLE',
110
  ),
111
 
112
  'connotea' => Array(
113
  'favicon' => 'connotea.png',
114
  'url' => 'http://www.connotea.org/addpopup?continue=confirm&amp;uri=PERMALINK&amp;title=TITLE&amp;description=EXCERPT',
 
115
  ),
116
 
117
  'Current' => Array(
118
  'favicon' => 'current.png',
119
- 'url' => 'http://current.com/clipper.htm?url=PERMALINK&amp;title=TITLE'
 
120
  ),
121
 
122
  'del.icio.us' => Array(
123
  'favicon' => 'delicious.png',
124
  'url' => 'http://delicious.com/post?url=PERMALINK&amp;title=TITLE&amp;notes=EXCERPT',
125
- ),
126
-
127
- 'Design Float' => Array(
128
- 'favicon' => 'designfloat.png',
129
- 'url' => 'http://www.designfloat.com/submit.php?url=PERMALINK&amp;title=TITLE',
130
  ),
131
 
132
  'Digg' => Array(
133
  'favicon' => 'digg.png',
134
  'url' => 'http://digg.com/submit?phase=2&amp;url=PERMALINK&amp;title=TITLE&amp;bodytext=EXCERPT',
135
  'description' => 'Digg',
 
136
  ),
137
 
138
  'Diigo' => Array(
139
  'favicon' => 'diigo.png',
140
  'url' => 'http://www.diigo.com/post?url=PERMALINK&amp;title=TITLE',
 
141
  ),
142
 
143
  'DotNetKicks' => Array(
144
  'favicon' => 'dotnetkicks.png',
145
  'url' => 'http://www.dotnetkicks.com/kick/?url=PERMALINK&amp;title=TITLE',
 
146
  ),
147
 
148
  'DZone' => Array(
149
  'favicon' => 'dzone.png',
150
  'url' => 'http://www.dzone.com/links/add.html?url=PERMALINK&amp;title=TITLE',
 
151
  ),
152
 
153
  'eKudos' => Array(
154
  'favicon' => 'ekudos.png',
155
  'url' => 'http://www.ekudos.nl/artikel/nieuw?url=PERMALINK&amp;title=TITLE&amp;desc=EXCERPT',
 
156
  ),
157
 
158
  'email' => Array(
159
  'favicon' => 'email_link.png',
160
  'url' => 'mailto:?subject=TITLE&amp;body=PERMALINK',
161
  'awesm_channel' => 'mailto',
162
- 'description' => __('E-mail this story to a friend!','sociable'),
 
163
  ),
164
 
165
  'Facebook' => Array(
166
  'favicon' => 'facebook.png',
167
  'awesm_channel' => 'facebook-post',
168
  'url' => 'http://www.facebook.com/share.php?u=PERMALINK&amp;t=TITLE',
 
169
  ),
170
 
171
  'Fark' => Array(
172
  'favicon' => 'fark.png',
173
  'url' => 'http://cgi.fark.com/cgi/fark/farkit.pl?h=TITLE&amp;u=PERMALINK',
 
174
  ),
175
 
176
  'Fleck' => Array(
177
  'favicon' => 'fleck.png',
178
  'url' => 'http://beta3.fleck.com/bookmarklet.php?url=PERMALINK&amp;title=TITLE',
 
179
  ),
180
 
181
  'FriendFeed' => Array(
182
  'favicon' => 'friendfeed.png',
183
  'url' => 'http://www.friendfeed.com/share?title=TITLE&amp;link=PERMALINK',
 
184
  ),
185
 
186
  'FSDaily' => Array(
187
  'favicon' => 'fsdaily.png',
188
  'url' => 'http://www.fsdaily.com/submit?url=PERMALINK&amp;title=TITLE',
 
189
  ),
190
 
191
  'Global Grind' => Array (
192
  'favicon' => 'globalgrind.png',
193
- 'url' => 'http://globalgrind.com/submission/submit.aspx?url=PERMALINK&amp;type=Article&amp;title=TITLE'
 
194
  ),
195
 
196
  'Google' => Array (
197
  'favicon' => 'googlebookmark.png',
198
  'url' => 'http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=PERMALINK&amp;title=TITLE&amp;annotation=EXCERPT',
199
- 'description' => 'Google Bookmarks'
 
200
  ),
201
 
202
  'Gwar' => Array(
203
  'favicon' => 'gwar.png',
204
  'url' => 'http://www.gwar.pl/DodajGwar.html?u=PERMALINK',
 
 
205
  ),
206
 
207
  'HackerNews' => Array(
208
  'favicon' => 'hackernews.png',
209
  'url' => 'http://news.ycombinator.com/submitlink?u=PERMALINK&amp;t=TITLE',
 
210
  ),
211
 
212
  'Haohao' => Array(
213
  'favicon' => 'haohao.png',
214
  'url' => 'http://www.haohaoreport.com/submit.php?url=PERMALINK&amp;title=TITLE',
 
215
  ),
216
 
217
  'HealthRanker' => Array(
218
  'favicon' => 'healthranker.png',
219
  'url' => 'http://healthranker.com/submit.php?url=PERMALINK&amp;title=TITLE',
 
220
  ),
221
 
222
  'HelloTxt' => Array(
223
  'favicon' => 'hellotxt.png',
224
  'url' => 'http://hellotxt.com/?status=TITLE+PERMALINK',
 
225
  ),
226
 
227
  'Hemidemi' => Array(
228
  'favicon' => 'hemidemi.png',
229
  'url' => 'http://www.hemidemi.com/user_bookmark/new?title=TITLE&amp;url=PERMALINK',
 
230
  ),
231
 
232
  'Hyves' => Array(
233
  'favicon' => 'hyves.png',
234
  'url' => 'http://www.hyves.nl/profilemanage/add/tips/?name=TITLE&amp;text=EXCERPT+PERMALINK&amp;rating=5',
 
235
  ),
236
 
237
  'Identi.ca' => Array(
238
  'favicon' => 'identica.png',
239
  'url' => 'http://identi.ca/notice/new?status_textarea=PERMALINK',
 
 
240
  ),
241
 
242
  'IndianPad' => Array(
243
  'favicon' => 'indianpad.png',
244
  'url' => 'http://www.indianpad.com/submit.php?url=PERMALINK',
 
245
  ),
246
 
247
  'Internetmedia' => Array(
248
  'favicon' => 'im.png',
249
- 'url' => 'http://internetmedia.hu/submit.php?url=PERMALINK'
 
250
  ),
251
 
252
  'Kirtsy' => Array(
253
  'favicon' => 'kirtsy.png',
254
  'url' => 'http://www.kirtsy.com/submit.php?url=PERMALINK&amp;title=TITLE',
 
255
  ),
256
 
257
  'laaik.it' => Array(
258
  'favicon' => 'laaikit.png',
259
  'url' => 'http://laaik.it/NewStoryCompact.aspx?uri=PERMALINK&amp;headline=TITLE&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12',
 
260
  ),
261
 
262
  'LinkArena' => Array(
263
  'favicon' => 'linkarena.png',
264
  'url' => 'http://linkarena.com/bookmarks/addlink/?url=PERMALINK&amp;title=TITLE',
 
265
  ),
266
 
267
  'LinkaGoGo' => Array(
268
  'favicon' => 'linkagogo.png',
269
  'url' => 'http://www.linkagogo.com/go/AddNoPopup?url=PERMALINK&amp;title=TITLE',
 
270
  ),
271
 
272
  'LinkedIn' => Array(
273
  'favicon' => 'linkedin.png',
274
  'url' => 'http://www.linkedin.com/shareArticle?mini=true&amp;url=PERMALINK&amp;title=TITLE&amp;source=BLOGNAME&amp;summary=EXCERPT',
 
275
  ),
276
 
277
  'Linkter' => Array(
278
  'favicon' => 'linkter.png',
279
  'url' => 'http://www.linkter.hu/index.php?action=suggest_link&amp;url=PERMALINK&amp;title=TITLE',
 
280
  ),
281
 
282
  'Live' => Array(
283
  'favicon' => 'live.png',
284
  'url' => 'https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=PERMALINK&amp;title=TITLE',
 
285
  ),
286
 
287
  'Meneame' => Array(
288
  'favicon' => 'meneame.png',
289
  'url' => 'http://meneame.net/submit.php?url=PERMALINK',
 
 
290
  ),
291
 
292
  'MisterWong' => Array(
293
  'favicon' => 'misterwong.png',
294
  'url' => 'http://www.mister-wong.com/addurl/?bm_url=PERMALINK&amp;bm_description=TITLE&amp;plugin=soc',
 
295
  ),
296
 
297
  'MisterWong.DE' => Array(
298
  'favicon' => 'misterwong.png',
299
  'url' => 'http://www.mister-wong.de/addurl/?bm_url=PERMALINK&amp;bm_description=TITLE&amp;plugin=soc',
 
300
  ),
301
 
302
  'Mixx' => Array(
303
  'favicon' => 'mixx.png',
304
  'url' => 'http://www.mixx.com/submit?page_url=PERMALINK&amp;title=TITLE',
 
305
  ),
306
 
307
  'muti' => Array(
308
  'favicon' => 'muti.png',
309
  'url' => 'http://www.muti.co.za/submit?url=PERMALINK&amp;title=TITLE',
 
310
  ),
311
 
312
  'MyShare' => Array(
313
  'favicon' => 'myshare.png',
314
  'url' => 'http://myshare.url.com.tw/index.php?func=newurl&amp;url=PERMALINK&amp;desc=TITLE',
 
315
  ),
316
 
317
  'MySpace' => Array(
318
  'favicon' => 'myspace.png',
319
  'awesm_channel' => 'myspace',
320
  'url' => 'http://www.myspace.com/Modules/PostTo/Pages/?u=PERMALINK&amp;t=TITLE',
 
 
321
  ),
322
 
323
  'MSNReporter' => Array(
324
  'favicon' => 'msnreporter.png',
325
  'url' => 'http://reporter.nl.msn.com/?fn=contribute&amp;Title=TITLE&amp;URL=PERMALINK&amp;cat_id=6&amp;tag_id=31&amp;Remark=EXCERPT',
326
- 'description' => 'MSN Reporter'
 
327
  ),
328
 
329
  'N4G' => Array(
330
  'favicon' => 'n4g.png',
331
  'url' => 'http://www.n4g.com/tips.aspx?url=PERMALINK&amp;title=TITLE',
 
332
  ),
333
 
334
  'Netvibes' => Array(
335
  'favicon' => 'netvibes.png',
336
  'url' => 'http://www.netvibes.com/share?title=TITLE&amp;url=PERMALINK',
 
337
  ),
338
 
339
  'NewsVine' => Array(
340
  'favicon' => 'newsvine.png',
341
  'url' => 'http://www.newsvine.com/_tools/seed&amp;save?u=PERMALINK&amp;h=TITLE',
 
342
  ),
343
 
344
  'Netvouz' => Array(
345
  'favicon' => 'netvouz.png',
346
  'url' => 'http://www.netvouz.com/action/submitBookmark?url=PERMALINK&amp;title=TITLE&amp;popup=no',
 
347
  ),
348
 
349
  'NuJIJ' => Array(
350
  'favicon' => 'nujij.png',
351
  'url' => 'http://nujij.nl/jij.lynkx?t=TITLE&amp;u=PERMALINK&amp;b=EXCERPT',
 
352
  ),
353
 
354
  'Ping.fm' => Array(
355
  'favicon' => 'ping.png',
356
  'awesm_channel' => 'pingfm',
357
  'url' => 'http://ping.fm/ref/?link=PERMALINK&amp;title=TITLE&amp;body=EXCERPT',
 
358
  ),
359
 
360
  'Posterous' => Array(
361
  'favicon' => 'posterous.png',
362
  'url' => 'http://posterous.com/share?linkto=PERMALINK&amp;title=TITLE&amp;selection=EXCERPT',
363
- ),
364
-
365
- 'ppnow' => Array(
366
- 'favicon' => 'ppnow.png',
367
- 'url' => 'http://www.ppnow.net/submit.php?url=PERMALINK',
368
  ),
369
 
370
  'PDF' => Array(
371
  'favicon' => 'pdf.png',
372
  'url' => 'http://www.printfriendly.com/print?url=PERMALINK&amp;partner=sociable',
373
- 'description' => __('Turn this article into a PDF!', 'sociable'),
374
  ),
375
 
376
  'Print' => Array(
377
  'favicon' => 'printfriendly.png',
378
  'url' => 'http://www.printfriendly.com/print?url=PERMALINK&amp;partner=sociable',
379
- 'description' => __('Print this article!', 'sociable'),
380
  ),
381
 
382
  'Propeller' => Array(
383
  'favicon' => 'propeller.png',
384
  'url' => 'http://www.propeller.com/submit/?url=PERMALINK',
 
385
  ),
386
 
387
  'Ratimarks' => Array(
388
  'favicon' => 'ratimarks.png',
389
  'url' => 'http://ratimarks.org/bookmarks.php/?action=add&address=PERMALINK&amp;title=TITLE',
 
390
  ),
391
 
392
  'Rec6' => Array(
393
  'favicon' => 'rec6.png',
394
  'url' => 'http://rec6.via6.com/link.php?url=PERMALINK&amp;=TITLE',
 
395
  ),
396
 
397
  'Reddit' => Array(
398
  'favicon' => 'reddit.png',
399
  'url' => 'http://reddit.com/submit?url=PERMALINK&amp;title=TITLE',
 
400
  ),
401
 
402
  'RSS' => Array(
403
  'favicon' => 'rss.png',
404
  'url' => 'FEEDLINK',
 
405
  ),
406
 
407
  'Scoopeo' => Array(
408
  'favicon' => 'scoopeo.png',
409
  'url' => 'http://www.scoopeo.com/scoop/new?newurl=PERMALINK&amp;title=TITLE',
 
410
  ),
411
 
412
  'Segnalo' => Array(
413
  'favicon' => 'segnalo.png',
414
  'url' => 'http://segnalo.alice.it/post.html.php?url=PERMALINK&amp;title=TITLE',
 
415
  ),
416
 
417
  'Simpy' => Array(
418
  'favicon' => 'simpy.png',
419
  'url' => 'http://www.simpy.com/simpy/LinkAdd.do?href=PERMALINK&amp;title=TITLE',
 
420
  ),
421
 
422
  'Slashdot' => Array(
423
  'favicon' => 'slashdot.png',
424
  'url' => 'http://slashdot.org/bookmark.pl?title=TITLE&amp;url=PERMALINK',
 
425
  ),
426
 
427
  'Socialogs' => Array(
428
  'favicon' => 'socialogs.png',
429
  'url' => 'http://socialogs.com/add_story.php?story_url=PERMALINK&amp;story_title=TITLE',
 
430
  ),
431
 
432
  'SphereIt' => Array(
433
  'favicon' => 'sphere.png',
434
  'url' => 'http://www.sphere.com/search?q=sphereit:PERMALINK&amp;title=TITLE',
 
435
  ),
436
 
437
  'Sphinn' => Array(
438
  'favicon' => 'sphinn.png',
439
  'url' => 'http://sphinn.com/index.php?c=post&m=submit&link=PERMALINK',
 
440
  ),
441
 
442
  'StumbleUpon' => Array(
443
  'favicon' => 'stumbleupon.png',
444
  'url' => 'http://www.stumbleupon.com/submit?url=PERMALINK&amp;title=TITLE',
 
 
445
  ),
446
 
447
- 'Symbaloo' => Array(
448
- 'favicon' => 'symbaloo.png',
449
- 'url' => 'http://www.symbaloo.com/nl/add/url=PERMALINK&amp;title=TITLE&amp;icon=http%3A//static01.symbaloo.com/_img/favicon.png',
450
- ),
451
-
452
  'Techmeme' => Array(
453
  'favicon' => 'techmeme.png',
454
  'awesm_channel' => 'twitter-techmeme',
455
  'url' => 'http://twitter.com/home/?status=tip%20@Techmeme%20PERMALINK%20TITLE',
456
- 'description' => 'Suggest to Techmeme via Twitter'
 
 
457
  ),
458
 
459
  'Technorati' => Array(
460
  'favicon' => 'technorati.png',
461
  'url' => 'http://technorati.com/faves?add=PERMALINK',
 
462
  ),
463
 
464
  'ThisNext' => Array(
465
  'favicon' => 'thisnext.png',
466
  'url' => 'http://www.thisnext.com/pick/new/submit/sociable/?url=PERMALINK&amp;name=TITLE',
 
467
  ),
468
 
469
  'Tipd' => Array(
470
  'favicon' => 'tipd.png',
471
  'url' => 'http://tipd.com/submit.php?url=PERMALINK',
 
472
  ),
473
 
474
  'Tumblr' => Array(
475
  'favicon' => 'tumblr.png',
476
  'url' => 'http://www.tumblr.com/share?v=3&amp;u=PERMALINK&amp;t=TITLE&amp;s=EXCERPT',
 
 
477
  ),
478
 
479
- 'Twitthis' => Array(
480
- 'favicon' => 'twitter.png',
481
- 'awesm_channel' => 'twitter',
482
- 'url' => 'http://twitter.com/home?status=TITLE%20-%20PERMALINK',
483
- ),
484
-
485
  'Twitter' => Array(
486
  'favicon' => 'twitter.png',
487
  'awesm_channel' => 'twitter',
488
  'url' => 'http://twitter.com/home?status=TITLE%20-%20PERMALINK',
 
 
489
  ),
490
 
491
  'Upnews' => Array(
492
- 'favicon' => 'upnews.png',
493
- 'url' => 'http://www.upnews.it/submit?url=PERMALINK&amp;title=TITLE',
 
494
  ),
495
 
496
  'Webnews.de' => Array(
497
  'favicon' => 'webnews.png',
498
  'url' => 'http://www.webnews.de/einstellen?url=PERMALINK&amp;title=TITLE',
 
 
499
  ),
500
 
501
  'Webride' => Array(
502
  'favicon' => 'webride.png',
503
  'url' => 'http://webride.org/discuss/split.php?uri=PERMALINK&amp;title=TITLE',
 
504
  ),
505
 
506
  'Wikio' => Array(
507
  'favicon' => 'wikio.png',
508
  'url' => 'http://www.wikio.com/vote?url=PERMALINK',
 
509
  ),
510
 
511
  'Wikio FR' => Array(
512
  'favicon' => 'wikio.png',
513
  'url' => 'http://www.wikio.fr/vote?url=PERMALINK',
 
514
  ),
515
 
516
  'Wikio IT' => Array(
517
  'favicon' => 'wikio.png',
518
  'url' => 'http://www.wikio.it/vote?url=PERMALINK',
 
519
  ),
520
 
521
  'Wists' => Array(
522
  'favicon' => 'wists.png',
523
  'url' => 'http://wists.com/s.php?c=&amp;r=PERMALINK&amp;title=TITLE',
524
  'class' => 'wists',
 
525
  ),
526
 
527
  'Wykop' => Array(
528
  'favicon' => 'wykop.png',
529
  'url' => 'http://www.wykop.pl/dodaj?url=PERMALINK',
 
 
530
  ),
531
 
532
  'Xerpi' => Array(
533
  'favicon' => 'xerpi.png',
534
  'url' => 'http://www.xerpi.com/block/add_link_from_extension?url=PERMALINK&amp;title=TITLE',
 
535
  ),
536
 
537
  'YahooBuzz' => Array(
538
  'favicon' => 'yahoobuzz.png',
539
  'url' => 'http://buzz.yahoo.com/submit/?submitUrl=PERMALINK&amp;submitHeadline=TITLE&amp;submitSummary=EXCERPT&amp;submitCategory=science&amp;submitAssetType=text',
540
  'description' => 'Yahoo! Buzz',
 
541
  ),
542
 
543
  'Yahoo! Bookmarks' => Array(
544
  'favicon' => 'yahoomyweb.png',
545
  'url' => 'http://bookmarks.yahoo.com/toolbar/savebm?u=PERMALINK&amp;t=TITLE&opener=bm&amp;ei=UTF-8&amp;d=EXCERPT',
 
 
546
  ),
547
 
548
  'Yigg' => Array(
549
  'favicon' => 'yiggit.png',
550
  'url' => 'http://yigg.de/neu?exturl=PERMALINK&amp;exttitle=TITLE',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
551
  ),
552
  );
553
 
@@ -695,12 +772,26 @@ function sociable_html($display=array()) {
695
  * and optionally add target=_blank to open in a new window if that option is set in the
696
  * backend.
697
  */
698
- $link .= '<a rel="nofollow"';
 
699
  $link .= ' id="'.esc_attr(strtolower($sitename)).'"';
700
- if (get_option('sociable_usetargetblank')) {
701
- $link .= " target=\"_blank\"";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
702
  }
703
- $link .= " href=\"javascript:window.location='".urlencode($url)."';\" title=\"$description\">";
704
 
705
  /**
706
  * If the option to use text links is enabled in the backend, display a text link, otherwise,
@@ -709,12 +800,27 @@ function sociable_html($display=array()) {
709
  if (get_option('sociable_usetextlinks')) {
710
  $link .= $description;
711
  } else {
712
- if (strpos($site['favicon'], 'http') === 0) {
713
- $imgsrc = $site['favicon'];
 
 
 
 
 
 
 
 
 
 
 
 
714
  } else {
715
- $imgsrc = $imagepath.$site['favicon'];
 
 
 
 
716
  }
717
- $link .= "<img src=\"".$imgsrc."\" title=\"$description\" alt=\"$description\" class=\"sociable-hovers";
718
  if (isset($site['class']) && $site['class'])
719
  $link .= " sociable_{$site['class']}";
720
  $link .= "\" />";
@@ -792,6 +898,7 @@ function sociable_restore_config($force=false) {
792
  'Facebook',
793
  'Mixx',
794
  'Google',
 
795
  ));
796
 
797
  if ($force or !is_string(get_option('sociable_tagline')))
@@ -812,6 +919,20 @@ function sociable_restore_config($force=false) {
812
 
813
  if ( $force OR !( get_option('sociable_usecss') ) )
814
  update_option('sociable_usecss', true);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
815
  }
816
 
817
  /**
@@ -854,6 +975,16 @@ add_action('admin_print_styles', 'sociable_admin_css');
854
  * in Sociable. For all other sites this has so far been refused.
855
  */
856
  function sociable_js() {
 
 
 
 
 
 
 
 
 
 
857
  if (in_array('Wists', get_option('sociable_active_sites'))) {
858
  global $sociablepluginpath;
859
  wp_enqueue_script('sociable-wists',$sociablepluginpath.'wists.js');
@@ -865,6 +996,10 @@ add_action('wp_print_scripts', 'sociable_js');
865
  * If the user has the (default) setting of using the Sociable CSS, load it.
866
  */
867
  function sociable_css() {
 
 
 
 
868
  if (get_option('sociable_usecss') == true) {
869
  global $sociablepluginpath;
870
  wp_enqueue_style('sociable-front-css',$sociablepluginpath.'sociable.css');
@@ -944,13 +1079,24 @@ function sociable_submenu() {
944
  delete_option('sociable_active_sites', $active_sites);
945
  add_option('sociable_active_sites', $active_sites);
946
 
947
- foreach ( array('usetargetblank', 'awesmenable', 'usecss', 'usetextlinks') as $val ) {
948
  if ( isset($_POST[$val]) && $_POST[$val] )
949
  update_option('sociable_'.$val,true);
950
  else
951
  update_option('sociable_'.$val,false);
952
  }
953
 
 
 
 
 
 
 
 
 
 
 
 
954
  foreach ( array('awesmapikey', 'tagline', 'imagedir') as $val ) {
955
  if ( !$_POST[$val] )
956
  update_option( 'sociable_'.$val, '');
@@ -1025,14 +1171,21 @@ function sociable_submenu() {
1025
  if ($imagepath == "")
1026
  $imagepath = $sociablepluginpath.'images/';
1027
 
1028
- if (strpos($site['favicon'], 'http') === 0) {
1029
- $imgsrc = $site['favicon'];
 
 
 
 
 
1030
  } else {
1031
- $imgsrc = $imagepath.$site['favicon'];
 
 
 
1032
  }
1033
- ?>
1034
- <img src="<?php echo $imgsrc; ?>" width="16" height="16" alt="<?php echo $site['description'] ?>" />
1035
- <?php echo $sitename; ?>
1036
  </li>
1037
  <?php } ?>
1038
  </ul>
@@ -1040,6 +1193,14 @@ function sociable_submenu() {
1040
  <input type="hidden" id="site_order" name="site_order" value="<?php echo join('|', array_keys($sociable_known_sites)) ?>" />
1041
  </td>
1042
  </tr>
 
 
 
 
 
 
 
 
1043
  <tr>
1044
  <th scope="row" valign="top">
1045
  <?php _e("Tagline", "sociable"); ?>
@@ -1098,6 +1259,16 @@ function sociable_submenu() {
1098
  <input size="80" type="text" name="imagedir" value="<?php echo attribute_escape(stripslashes(get_option('sociable_imagedir'))); ?>" />
1099
  </td>
1100
  </tr>
 
 
 
 
 
 
 
 
 
 
1101
  <tr>
1102
  <th scope="row" valign="top">
1103
  <?php _e("Open in new window:", "sociable"); ?>
@@ -1130,13 +1301,12 @@ function sociable_submenu() {
1130
  <ul class="sociablemenu">
1131
  <li><?php _e('Link to it so other folks can find out about it.','sociable'); ?></li>
1132
  <li><?php _e('<a href="http://wordpress.org/extend/plugins/sociable/">Give it a good rating</a> on WordPress.org.','sociable'); ?></li>
1133
- <li><?php _e('<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2017947">Donate a token of your appreciation</a>.','sociable'); ?></li>
1134
  </ul>
1135
  <h2><?php _e('Need support?','sociable'); ?></h2>
1136
  <p><?php _e('If you have any problems or good ideas, please talk about them in the <a href="http://wordpress.org/tags/sociable">Support forums</a>.', 'sociable'); ?></p>
1137
 
1138
  <h2><?php _e('Credits','sociable'); ?></h2>
1139
- <p><?php _e('<a href="http://yoast.com/wordpress/sociable/">Sociable</a> was originally developed by <a href="http://push.cx/">Peter Harkins</a> and has been maintained by <a href="http://yoast.com/">Joost de Valk</a> since the beginning of 2008. It\'s released under the GNU GPL version 2.','Sociable'); ?></p>
1140
 
1141
 
1142
  </div>
@@ -1177,8 +1347,8 @@ add_filter( 'plugin_action_links', 'sociable_filter_plugin_actions', 10, 2 );
1177
  /**
1178
  * Add the Yoast.com RSS feed to the WordPress dashboard
1179
  */
1180
- if (!function_exists('yst_db_widget')) {
1181
- function yst_text_limit( $text, $limit, $finish = ' [&hellip;]') {
1182
  if( strlen( $text ) > $limit ) {
1183
  $text = substr( $text, 0, $limit );
1184
  $text = substr( $text, 0, - ( strlen( strrchr( $text,' ') ) ) );
@@ -1187,15 +1357,17 @@ if (!function_exists('yst_db_widget')) {
1187
  return $text;
1188
  }
1189
 
1190
- function yst_db_widget($image = 'normal', $num = 3, $excerptsize = 250, $showdate = true) {
1191
  require_once(ABSPATH.WPINC.'/rss.php');
1192
- if ( $rss = fetch_rss( 'http://feeds2.feedburner.com/joostdevalk' ) ) {
1193
  echo '<div class="rss-widget">';
 
1194
  if ($image == 'normal') {
1195
  echo '<a href="http://yoast.com/" title="Go to Yoast.com"><img src="http://cdn.yoast.com/yoast-logo-rss.png" class="alignright" alt="Yoast"/></a>';
1196
  } else {
1197
  echo '<a href="http://yoast.com/" title="Go to Yoast.com"><img width="80" src="http://cdn.yoast.com/yoast-logo-rss.png" class="alignright" alt="Yoast"/></a>';
1198
  }
 
1199
  echo '<ul>';
1200
  $rss->items = array_slice( $rss->items, 0, $num );
1201
  foreach ( (array) $rss->items as $item ) {
@@ -1203,27 +1375,27 @@ if (!function_exists('yst_db_widget')) {
1203
  echo '<a class="rsswidget" href="'.clean_url( $item['link'], $protocolls=null, 'display' ).'">'. htmlentities($item['title']) .'</a> ';
1204
  if ($showdate)
1205
  echo '<span class="rss-date">'. date('F j, Y', strtotime($item['pubdate'])) .'</span>';
1206
- echo '<div class="rssSummary">'. yst_text_limit($item['summary'],$excerptsize) .'</div>';
1207
  echo '</li>';
1208
  }
1209
  echo '</ul>';
1210
  echo '<div style="border-top: 1px solid #ddd; padding-top: 10px; text-align:center;">';
1211
- echo '<a href="http://feeds2.feedburner.com/joostdevalk"><img src="'.get_bloginfo('wpurl').'/wp-includes/images/rss.png" alt=""/> Subscribe with RSS</a>';
1212
  if ($image == 'normal') {
1213
  echo ' &nbsp; &nbsp; &nbsp; ';
1214
  } else {
1215
  echo '<br/>';
1216
  }
1217
- echo '<a href="http://yoast.com/email-blog-updates/"><img src="http://cdn.yoast.com/email_sub.png" alt=""/> Subscribe by email</a>';
1218
  echo '</div>';
1219
  echo '</div>';
1220
  }
1221
  }
1222
 
1223
- function yst_widget_setup() {
1224
- wp_add_dashboard_widget( 'yst_db_widget' , 'The Latest news from Yoast' , 'yst_db_widget');
1225
  }
1226
 
1227
- add_action('wp_dashboard_setup', 'yst_widget_setup');
1228
  }
1229
  ?>
3
  Plugin Name: Sociable
4
  Plugin URI: http://blogplay.com/plugin
5
  Description: Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
6
+ Version: 3.5.0
7
+ Author: Blogplay
8
+ Author URI: http://blogplay.com/
9
 
10
  Copyright 2006 Peter Harkins (ph@malaprop.org)
11
  Copyright 2008-2009 Joost de Valk (joost@yoast.com)
12
+ Copyright 2009-present Blogplay.com (info@blogplay.com)
13
 
14
  This program is free software; you can redistribute it and/or modify
15
  it under the terms of the GNU General Public License as published by
63
  'BarraPunto' => Array(
64
  'favicon' => 'barrapunto.png',
65
  'url' => 'http://barrapunto.com/submit.pl?subj=TITLE&amp;story=PERMALINK',
66
+ 'spriteCoordinates' => Array(1,1),
67
  ),
68
 
69
  'Bitacoras.com' => Array(
70
  'favicon' => 'bitacoras.png',
71
  'url' => 'http://bitacoras.com/anotaciones/PERMALINK',
72
+ 'spriteCoordinates' => Array(19,1),
73
  ),
74
 
75
  'BlinkList' => Array(
76
  'favicon' => 'blinklist.png',
77
  'url' => 'http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=PERMALINK&amp;Title=TITLE',
78
+ 'spriteCoordinates' => Array(37,1),
79
+ 'supportsIframe' => false,
 
 
 
 
 
 
 
 
80
  ),
81
 
82
  'blogmarks' => Array(
83
  'favicon' => 'blogmarks.png',
84
  'url' => 'http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=PERMALINK&amp;title=TITLE',
85
+ 'spriteCoordinates' => Array(73,1),
86
  ),
87
 
88
  'Blogosphere News' => Array(
89
  'favicon' => 'blogospherenews.png',
90
  'url' => 'http://www.blogospherenews.com/submit.php?url=PERMALINK&amp;title=TITLE',
91
+ 'spriteCoordinates' => Array(91,1),
92
  ),
93
 
94
  'blogtercimlap' => Array(
95
  'favicon' => 'blogter.png',
96
  'url' => 'http://cimlap.blogter.hu/index.php?action=suggest_link&amp;title=TITLE&amp;url=PERMALINK',
97
+ 'spriteCoordinates' => Array(109,1),
98
  ),
99
 
100
  'Faves' => Array(
101
  'favicon' => 'bluedot.png',
102
  'url' => 'http://faves.com/Authoring.aspx?u=PERMALINK&amp;title=TITLE',
103
+ 'spriteCoordinates' => Array(127,1),
 
 
 
 
104
  ),
105
 
106
  'connotea' => Array(
107
  'favicon' => 'connotea.png',
108
  'url' => 'http://www.connotea.org/addpopup?continue=confirm&amp;uri=PERMALINK&amp;title=TITLE&amp;description=EXCERPT',
109
+ 'spriteCoordinates' => Array(163,1),
110
  ),
111
 
112
  'Current' => Array(
113
  'favicon' => 'current.png',
114
+ 'url' => 'http://current.com/clipper.htm?url=PERMALINK&amp;title=TITLE',
115
+ 'spriteCoordinates' => Array(181,1),
116
  ),
117
 
118
  'del.icio.us' => Array(
119
  'favicon' => 'delicious.png',
120
  'url' => 'http://delicious.com/post?url=PERMALINK&amp;title=TITLE&amp;notes=EXCERPT',
121
+ 'spriteCoordinates' => Array(199,1),
 
 
 
 
122
  ),
123
 
124
  'Digg' => Array(
125
  'favicon' => 'digg.png',
126
  'url' => 'http://digg.com/submit?phase=2&amp;url=PERMALINK&amp;title=TITLE&amp;bodytext=EXCERPT',
127
  'description' => 'Digg',
128
+ 'spriteCoordinates' => Array(235,1),
129
  ),
130
 
131
  'Diigo' => Array(
132
  'favicon' => 'diigo.png',
133
  'url' => 'http://www.diigo.com/post?url=PERMALINK&amp;title=TITLE',
134
+ 'spriteCoordinates' => Array(253,1),
135
  ),
136
 
137
  'DotNetKicks' => Array(
138
  'favicon' => 'dotnetkicks.png',
139
  'url' => 'http://www.dotnetkicks.com/kick/?url=PERMALINK&amp;title=TITLE',
140
+ 'spriteCoordinates' => Array(271,1),
141
  ),
142
 
143
  'DZone' => Array(
144
  'favicon' => 'dzone.png',
145
  'url' => 'http://www.dzone.com/links/add.html?url=PERMALINK&amp;title=TITLE',
146
+ 'spriteCoordinates' => Array(289,1),
147
  ),
148
 
149
  'eKudos' => Array(
150
  'favicon' => 'ekudos.png',
151
  'url' => 'http://www.ekudos.nl/artikel/nieuw?url=PERMALINK&amp;title=TITLE&amp;desc=EXCERPT',
152
+ 'spriteCoordinates' => Array(307,1),
153
  ),
154
 
155
  'email' => Array(
156
  'favicon' => 'email_link.png',
157
  'url' => 'mailto:?subject=TITLE&amp;body=PERMALINK',
158
  'awesm_channel' => 'mailto',
159
+ 'spriteCoordinates' => Array(325,1),
160
+ 'supportsIframe' => false,
161
  ),
162
 
163
  'Facebook' => Array(
164
  'favicon' => 'facebook.png',
165
  'awesm_channel' => 'facebook-post',
166
  'url' => 'http://www.facebook.com/share.php?u=PERMALINK&amp;t=TITLE',
167
+ 'spriteCoordinates' => Array(343,1),
168
  ),
169
 
170
  'Fark' => Array(
171
  'favicon' => 'fark.png',
172
  'url' => 'http://cgi.fark.com/cgi/fark/farkit.pl?h=TITLE&amp;u=PERMALINK',
173
+ 'spriteCoordinates' => Array(1,19),
174
  ),
175
 
176
  'Fleck' => Array(
177
  'favicon' => 'fleck.png',
178
  'url' => 'http://beta3.fleck.com/bookmarklet.php?url=PERMALINK&amp;title=TITLE',
179
+ 'spriteCoordinates' => Array(19,19),
180
  ),
181
 
182
  'FriendFeed' => Array(
183
  'favicon' => 'friendfeed.png',
184
  'url' => 'http://www.friendfeed.com/share?title=TITLE&amp;link=PERMALINK',
185
+ 'spriteCoordinates' => Array(37,19),
186
  ),
187
 
188
  'FSDaily' => Array(
189
  'favicon' => 'fsdaily.png',
190
  'url' => 'http://www.fsdaily.com/submit?url=PERMALINK&amp;title=TITLE',
191
+ 'spriteCoordinates' => Array(55,19),
192
  ),
193
 
194
  'Global Grind' => Array (
195
  'favicon' => 'globalgrind.png',
196
+ 'url' => 'http://globalgrind.com/submission/submit.aspx?url=PERMALINK&amp;type=Article&amp;title=TITLE',
197
+ 'spriteCoordinates' => Array(73,19),
198
  ),
199
 
200
  'Google' => Array (
201
  'favicon' => 'googlebookmark.png',
202
  'url' => 'http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=PERMALINK&amp;title=TITLE&amp;annotation=EXCERPT',
203
+ 'description' => 'Google Bookmarks',
204
+ 'spriteCoordinates' => Array(91,19),
205
  ),
206
 
207
  'Gwar' => Array(
208
  'favicon' => 'gwar.png',
209
  'url' => 'http://www.gwar.pl/DodajGwar.html?u=PERMALINK',
210
+ 'spriteCoordinates' => Array(109,19),
211
+ 'supportsIframe' => false,
212
  ),
213
 
214
  'HackerNews' => Array(
215
  'favicon' => 'hackernews.png',
216
  'url' => 'http://news.ycombinator.com/submitlink?u=PERMALINK&amp;t=TITLE',
217
+ 'spriteCoordinates' => Array(127,19),
218
  ),
219
 
220
  'Haohao' => Array(
221
  'favicon' => 'haohao.png',
222
  'url' => 'http://www.haohaoreport.com/submit.php?url=PERMALINK&amp;title=TITLE',
223
+ 'spriteCoordinates' => Array(145,19),
224
  ),
225
 
226
  'HealthRanker' => Array(
227
  'favicon' => 'healthranker.png',
228
  'url' => 'http://healthranker.com/submit.php?url=PERMALINK&amp;title=TITLE',
229
+ 'spriteCoordinates' => Array(163,19),
230
  ),
231
 
232
  'HelloTxt' => Array(
233
  'favicon' => 'hellotxt.png',
234
  'url' => 'http://hellotxt.com/?status=TITLE+PERMALINK',
235
+ 'spriteCoordinates' => Array(181,19),
236
  ),
237
 
238
  'Hemidemi' => Array(
239
  'favicon' => 'hemidemi.png',
240
  'url' => 'http://www.hemidemi.com/user_bookmark/new?title=TITLE&amp;url=PERMALINK',
241
+ 'spriteCoordinates' => Array(199,19),
242
  ),
243
 
244
  'Hyves' => Array(
245
  'favicon' => 'hyves.png',
246
  'url' => 'http://www.hyves.nl/profilemanage/add/tips/?name=TITLE&amp;text=EXCERPT+PERMALINK&amp;rating=5',
247
+ 'spriteCoordinates' => Array(217,19),
248
  ),
249
 
250
  'Identi.ca' => Array(
251
  'favicon' => 'identica.png',
252
  'url' => 'http://identi.ca/notice/new?status_textarea=PERMALINK',
253
+ 'spriteCoordinates' => Array(235,19),
254
+ 'supportsIframe' => false,
255
  ),
256
 
257
  'IndianPad' => Array(
258
  'favicon' => 'indianpad.png',
259
  'url' => 'http://www.indianpad.com/submit.php?url=PERMALINK',
260
+ 'spriteCoordinates' => Array(253,19),
261
  ),
262
 
263
  'Internetmedia' => Array(
264
  'favicon' => 'im.png',
265
+ 'url' => 'http://internetmedia.hu/submit.php?url=PERMALINK',
266
+ 'spriteCoordinates' => Array(271,19),
267
  ),
268
 
269
  'Kirtsy' => Array(
270
  'favicon' => 'kirtsy.png',
271
  'url' => 'http://www.kirtsy.com/submit.php?url=PERMALINK&amp;title=TITLE',
272
+ 'spriteCoordinates' => Array(289,19),
273
  ),
274
 
275
  'laaik.it' => Array(
276
  'favicon' => 'laaikit.png',
277
  'url' => 'http://laaik.it/NewStoryCompact.aspx?uri=PERMALINK&amp;headline=TITLE&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12',
278
+ 'spriteCoordinates' => Array(307,19),
279
  ),
280
 
281
  'LinkArena' => Array(
282
  'favicon' => 'linkarena.png',
283
  'url' => 'http://linkarena.com/bookmarks/addlink/?url=PERMALINK&amp;title=TITLE',
284
+ 'spriteCoordinates' => Array(325,19),
285
  ),
286
 
287
  'LinkaGoGo' => Array(
288
  'favicon' => 'linkagogo.png',
289
  'url' => 'http://www.linkagogo.com/go/AddNoPopup?url=PERMALINK&amp;title=TITLE',
290
+ 'spriteCoordinates' => Array(343,19),
291
  ),
292
 
293
  'LinkedIn' => Array(
294
  'favicon' => 'linkedin.png',
295
  'url' => 'http://www.linkedin.com/shareArticle?mini=true&amp;url=PERMALINK&amp;title=TITLE&amp;source=BLOGNAME&amp;summary=EXCERPT',
296
+ 'spriteCoordinates' => Array(1,37),
297
  ),
298
 
299
  'Linkter' => Array(
300
  'favicon' => 'linkter.png',
301
  'url' => 'http://www.linkter.hu/index.php?action=suggest_link&amp;url=PERMALINK&amp;title=TITLE',
302
+ 'spriteCoordinates' => Array(19,37),
303
  ),
304
 
305
  'Live' => Array(
306
  'favicon' => 'live.png',
307
  'url' => 'https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=PERMALINK&amp;title=TITLE',
308
+ 'spriteCoordinates' => Array(37,37),
309
  ),
310
 
311
  'Meneame' => Array(
312
  'favicon' => 'meneame.png',
313
  'url' => 'http://meneame.net/submit.php?url=PERMALINK',
314
+ 'spriteCoordinates' => Array(55,37),
315
+ 'supportsIframe' => false,
316
  ),
317
 
318
  'MisterWong' => Array(
319
  'favicon' => 'misterwong.png',
320
  'url' => 'http://www.mister-wong.com/addurl/?bm_url=PERMALINK&amp;bm_description=TITLE&amp;plugin=soc',
321
+ 'spriteCoordinates' => Array(73,37),
322
  ),
323
 
324
  'MisterWong.DE' => Array(
325
  'favicon' => 'misterwong.png',
326
  'url' => 'http://www.mister-wong.de/addurl/?bm_url=PERMALINK&amp;bm_description=TITLE&amp;plugin=soc',
327
+ 'spriteCoordinates' => Array(73,37),
328
  ),
329
 
330
  'Mixx' => Array(
331
  'favicon' => 'mixx.png',
332
  'url' => 'http://www.mixx.com/submit?page_url=PERMALINK&amp;title=TITLE',
333
+ 'spriteCoordinates' => Array(91,37),
334
  ),
335
 
336
  'muti' => Array(
337
  'favicon' => 'muti.png',
338
  'url' => 'http://www.muti.co.za/submit?url=PERMALINK&amp;title=TITLE',
339
+ 'spriteCoordinates' => Array(109,37),
340
  ),
341
 
342
  'MyShare' => Array(
343
  'favicon' => 'myshare.png',
344
  'url' => 'http://myshare.url.com.tw/index.php?func=newurl&amp;url=PERMALINK&amp;desc=TITLE',
345
+ 'spriteCoordinates' => Array(127,37),
346
  ),
347
 
348
  'MySpace' => Array(
349
  'favicon' => 'myspace.png',
350
  'awesm_channel' => 'myspace',
351
  'url' => 'http://www.myspace.com/Modules/PostTo/Pages/?u=PERMALINK&amp;t=TITLE',
352
+ 'spriteCoordinates' => Array(145,37),
353
+ 'supportsIframe' => false,
354
  ),
355
 
356
  'MSNReporter' => Array(
357
  'favicon' => 'msnreporter.png',
358
  'url' => 'http://reporter.nl.msn.com/?fn=contribute&amp;Title=TITLE&amp;URL=PERMALINK&amp;cat_id=6&amp;tag_id=31&amp;Remark=EXCERPT',
359
+ 'description' => 'MSN Reporter',
360
+ 'spriteCoordinates' => Array(163,37),
361
  ),
362
 
363
  'N4G' => Array(
364
  'favicon' => 'n4g.png',
365
  'url' => 'http://www.n4g.com/tips.aspx?url=PERMALINK&amp;title=TITLE',
366
+ 'spriteCoordinates' => Array(181,37),
367
  ),
368
 
369
  'Netvibes' => Array(
370
  'favicon' => 'netvibes.png',
371
  'url' => 'http://www.netvibes.com/share?title=TITLE&amp;url=PERMALINK',
372
+ 'spriteCoordinates' => Array(199,37),
373
  ),
374
 
375
  'NewsVine' => Array(
376
  'favicon' => 'newsvine.png',
377
  'url' => 'http://www.newsvine.com/_tools/seed&amp;save?u=PERMALINK&amp;h=TITLE',
378
+ 'spriteCoordinates' => Array(217,37),
379
  ),
380
 
381
  'Netvouz' => Array(
382
  'favicon' => 'netvouz.png',
383
  'url' => 'http://www.netvouz.com/action/submitBookmark?url=PERMALINK&amp;title=TITLE&amp;popup=no',
384
+ 'spriteCoordinates' => Array(235,37),
385
  ),
386
 
387
  'NuJIJ' => Array(
388
  'favicon' => 'nujij.png',
389
  'url' => 'http://nujij.nl/jij.lynkx?t=TITLE&amp;u=PERMALINK&amp;b=EXCERPT',
390
+ 'spriteCoordinates' => Array(253,37),
391
  ),
392
 
393
  'Ping.fm' => Array(
394
  'favicon' => 'ping.png',
395
  'awesm_channel' => 'pingfm',
396
  'url' => 'http://ping.fm/ref/?link=PERMALINK&amp;title=TITLE&amp;body=EXCERPT',
397
+ 'spriteCoordinates' => Array(271,37),
398
  ),
399
 
400
  'Posterous' => Array(
401
  'favicon' => 'posterous.png',
402
  'url' => 'http://posterous.com/share?linkto=PERMALINK&amp;title=TITLE&amp;selection=EXCERPT',
403
+ 'spriteCoordinates' => Array(289,37),
 
 
 
 
404
  ),
405
 
406
  'PDF' => Array(
407
  'favicon' => 'pdf.png',
408
  'url' => 'http://www.printfriendly.com/print?url=PERMALINK&amp;partner=sociable',
409
+ 'spriteCoordinates' => Array(325,37),
410
  ),
411
 
412
  'Print' => Array(
413
  'favicon' => 'printfriendly.png',
414
  'url' => 'http://www.printfriendly.com/print?url=PERMALINK&amp;partner=sociable',
415
+ 'spriteCoordinates' => Array(343,37),
416
  ),
417
 
418
  'Propeller' => Array(
419
  'favicon' => 'propeller.png',
420
  'url' => 'http://www.propeller.com/submit/?url=PERMALINK',
421
+ 'spriteCoordinates' => Array(1,55),
422
  ),
423
 
424
  'Ratimarks' => Array(
425
  'favicon' => 'ratimarks.png',
426
  'url' => 'http://ratimarks.org/bookmarks.php/?action=add&address=PERMALINK&amp;title=TITLE',
427
+ 'spriteCoordinates' => Array(19,55),
428
  ),
429
 
430
  'Rec6' => Array(
431
  'favicon' => 'rec6.png',
432
  'url' => 'http://rec6.via6.com/link.php?url=PERMALINK&amp;=TITLE',
433
+ 'spriteCoordinates' => Array(37,55),
434
  ),
435
 
436
  'Reddit' => Array(
437
  'favicon' => 'reddit.png',
438
  'url' => 'http://reddit.com/submit?url=PERMALINK&amp;title=TITLE',
439
+ 'spriteCoordinates' => Array(55,55),
440
  ),
441
 
442
  'RSS' => Array(
443
  'favicon' => 'rss.png',
444
  'url' => 'FEEDLINK',
445
+ 'spriteCoordinates' => Array(73,55),
446
  ),
447
 
448
  'Scoopeo' => Array(
449
  'favicon' => 'scoopeo.png',
450
  'url' => 'http://www.scoopeo.com/scoop/new?newurl=PERMALINK&amp;title=TITLE',
451
+ 'spriteCoordinates' => Array(91,55),
452
  ),
453
 
454
  'Segnalo' => Array(
455
  'favicon' => 'segnalo.png',
456
  'url' => 'http://segnalo.alice.it/post.html.php?url=PERMALINK&amp;title=TITLE',
457
+ 'spriteCoordinates' => Array(109,55),
458
  ),
459
 
460
  'Simpy' => Array(
461
  'favicon' => 'simpy.png',
462
  'url' => 'http://www.simpy.com/simpy/LinkAdd.do?href=PERMALINK&amp;title=TITLE',
463
+ 'spriteCoordinates' => Array(127,55),
464
  ),
465
 
466
  'Slashdot' => Array(
467
  'favicon' => 'slashdot.png',
468
  'url' => 'http://slashdot.org/bookmark.pl?title=TITLE&amp;url=PERMALINK',
469
+ 'spriteCoordinates' => Array(145,55),
470
  ),
471
 
472
  'Socialogs' => Array(
473
  'favicon' => 'socialogs.png',
474
  'url' => 'http://socialogs.com/add_story.php?story_url=PERMALINK&amp;story_title=TITLE',
475
+ 'spriteCoordinates' => Array(163,55),
476
  ),
477
 
478
  'SphereIt' => Array(
479
  'favicon' => 'sphere.png',
480
  'url' => 'http://www.sphere.com/search?q=sphereit:PERMALINK&amp;title=TITLE',
481
+ 'spriteCoordinates' => Array(181,55),
482
  ),
483
 
484
  'Sphinn' => Array(
485
  'favicon' => 'sphinn.png',
486
  'url' => 'http://sphinn.com/index.php?c=post&m=submit&link=PERMALINK',
487
+ 'spriteCoordinates' => Array(199,55),
488
  ),
489
 
490
  'StumbleUpon' => Array(
491
  'favicon' => 'stumbleupon.png',
492
  'url' => 'http://www.stumbleupon.com/submit?url=PERMALINK&amp;title=TITLE',
493
+ 'spriteCoordinates' => Array(217,55),
494
+ 'supportsIframe' => false,
495
  ),
496
 
 
 
 
 
 
497
  'Techmeme' => Array(
498
  'favicon' => 'techmeme.png',
499
  'awesm_channel' => 'twitter-techmeme',
500
  'url' => 'http://twitter.com/home/?status=tip%20@Techmeme%20PERMALINK%20TITLE',
501
+ 'description' => 'Suggest to Techmeme via Twitter',
502
+ 'spriteCoordinates' => Array(253,55),
503
+ 'supportsIframe' => false,
504
  ),
505
 
506
  'Technorati' => Array(
507
  'favicon' => 'technorati.png',
508
  'url' => 'http://technorati.com/faves?add=PERMALINK',
509
+ 'spriteCoordinates' => Array(271,55),
510
  ),
511
 
512
  'ThisNext' => Array(
513
  'favicon' => 'thisnext.png',
514
  'url' => 'http://www.thisnext.com/pick/new/submit/sociable/?url=PERMALINK&amp;name=TITLE',
515
+ 'spriteCoordinates' => Array(289,55),
516
  ),
517
 
518
  'Tipd' => Array(
519
  'favicon' => 'tipd.png',
520
  'url' => 'http://tipd.com/submit.php?url=PERMALINK',
521
+ 'spriteCoordinates' => Array(307,55),
522
  ),
523
 
524
  'Tumblr' => Array(
525
  'favicon' => 'tumblr.png',
526
  'url' => 'http://www.tumblr.com/share?v=3&amp;u=PERMALINK&amp;t=TITLE&amp;s=EXCERPT',
527
+ 'spriteCoordinates' => Array(325,55),
528
+ 'supportsIframe' => false,
529
  ),
530
 
 
 
 
 
 
 
531
  'Twitter' => Array(
532
  'favicon' => 'twitter.png',
533
  'awesm_channel' => 'twitter',
534
  'url' => 'http://twitter.com/home?status=TITLE%20-%20PERMALINK',
535
+ 'spriteCoordinates' => Array(343,55),
536
+ 'supportsIframe' => false,
537
  ),
538
 
539
  'Upnews' => Array(
540
+ 'favicon' => 'upnews.png',
541
+ 'url' => 'http://www.upnews.it/submit?url=PERMALINK&amp;title=TITLE',
542
+ 'spriteCoordinates' => Array(1,73),
543
  ),
544
 
545
  'Webnews.de' => Array(
546
  'favicon' => 'webnews.png',
547
  'url' => 'http://www.webnews.de/einstellen?url=PERMALINK&amp;title=TITLE',
548
+ 'spriteCoordinates' => Array(19,73),
549
+ 'supportsIframe' => false,
550
  ),
551
 
552
  'Webride' => Array(
553
  'favicon' => 'webride.png',
554
  'url' => 'http://webride.org/discuss/split.php?uri=PERMALINK&amp;title=TITLE',
555
+ 'spriteCoordinates' => Array(37,73),
556
  ),
557
 
558
  'Wikio' => Array(
559
  'favicon' => 'wikio.png',
560
  'url' => 'http://www.wikio.com/vote?url=PERMALINK',
561
+ 'spriteCoordinates' => Array(55,73),
562
  ),
563
 
564
  'Wikio FR' => Array(
565
  'favicon' => 'wikio.png',
566
  'url' => 'http://www.wikio.fr/vote?url=PERMALINK',
567
+ 'spriteCoordinates' => Array(55,73),
568
  ),
569
 
570
  'Wikio IT' => Array(
571
  'favicon' => 'wikio.png',
572
  'url' => 'http://www.wikio.it/vote?url=PERMALINK',
573
+ 'spriteCoordinates' => Array(55,73),
574
  ),
575
 
576
  'Wists' => Array(
577
  'favicon' => 'wists.png',
578
  'url' => 'http://wists.com/s.php?c=&amp;r=PERMALINK&amp;title=TITLE',
579
  'class' => 'wists',
580
+ 'spriteCoordinates' => Array(73,73),
581
  ),
582
 
583
  'Wykop' => Array(
584
  'favicon' => 'wykop.png',
585
  'url' => 'http://www.wykop.pl/dodaj?url=PERMALINK',
586
+ 'spriteCoordinates' => Array(91,73),
587
+ 'supportsIframe' => false,
588
  ),
589
 
590
  'Xerpi' => Array(
591
  'favicon' => 'xerpi.png',
592
  'url' => 'http://www.xerpi.com/block/add_link_from_extension?url=PERMALINK&amp;title=TITLE',
593
+ 'spriteCoordinates' => Array(109,73),
594
  ),
595
 
596
  'YahooBuzz' => Array(
597
  'favicon' => 'yahoobuzz.png',
598
  'url' => 'http://buzz.yahoo.com/submit/?submitUrl=PERMALINK&amp;submitHeadline=TITLE&amp;submitSummary=EXCERPT&amp;submitCategory=science&amp;submitAssetType=text',
599
  'description' => 'Yahoo! Buzz',
600
+ 'spriteCoordinates' => Array(127,73),
601
  ),
602
 
603
  'Yahoo! Bookmarks' => Array(
604
  'favicon' => 'yahoomyweb.png',
605
  'url' => 'http://bookmarks.yahoo.com/toolbar/savebm?u=PERMALINK&amp;t=TITLE&opener=bm&amp;ei=UTF-8&amp;d=EXCERPT',
606
+ 'spriteCoordinates' => Array(145,73),
607
+ 'supportsIframe' => false,
608
  ),
609
 
610
  'Yigg' => Array(
611
  'favicon' => 'yiggit.png',
612
  'url' => 'http://yigg.de/neu?exturl=PERMALINK&amp;exttitle=TITLE',
613
+ 'spriteCoordinates' => Array(163,73),
614
+ ),
615
+
616
+ 'Add to favorites' => Array(
617
+ 'favicon' => '',
618
+ 'url' => 'javascript:AddToFavorites();',
619
+ 'spriteCoordinates' => Array(181,73),
620
+ 'supportsIframe' => false,
621
+ ),
622
+
623
+ 'Blogplay' => Array(
624
+ 'favicon' => '',
625
+ 'url' => 'http://blogplay.com',
626
+ 'spriteCoordinates' => Array(199,73),
627
+ 'supportsIframe' => false,
628
  ),
629
  );
630
 
772
  * and optionally add target=_blank to open in a new window if that option is set in the
773
  * backend.
774
  */
775
+ $link .= '<a ';
776
+ $link .= ($sitename=="Blogplay") ? '' : 'rel="nofollow"';
777
  $link .= ' id="'.esc_attr(strtolower($sitename)).'"';
778
+ /**
779
+ * Use the iframe option if it is enabled and supported by the service/site
780
+ */
781
+ if (get_option('sociable_useiframe') && !isset($site['supportsIframe'])) {
782
+ $iframeWidth = get_option('sociable_iframewidth',900);
783
+ $iframeHeight = get_option('sociable_iframeheight',500);
784
+ $link .= 'class="thickbox" href="' . $url . "?TB_iframe=true&height=$iframeHeight&width=$iframeWidth\">";
785
+ } else {
786
+ if(!$sitename == "Add to favorites") {
787
+ if (get_option('sociable_usetargetblank')) {
788
+ $link .= " target=\"_blank\"";
789
+ }
790
+ $link .= " href=\"".$url."';\" title=\"$description\">";
791
+ } else {
792
+ $link .= " href=\"$url\" title=\"$description\">";
793
+ }
794
  }
 
795
 
796
  /**
797
  * If the option to use text links is enabled in the backend, display a text link, otherwise,
800
  if (get_option('sociable_usetextlinks')) {
801
  $link .= $description;
802
  } else {
803
+ /**
804
+ * If site doesn't have sprite information
805
+ */
806
+ if (!isset($site['spriteCoordinates'])) {
807
+ if (strpos($site['favicon'], 'http') === 0) {
808
+ $imgsrc = $site['favicon'];
809
+ } else {
810
+ $imgsrc = $imagepath.$site['favicon'];
811
+ }
812
+ $link .= "<img src=\"".$imgsrc."\" title=\"$description\" alt=\"$description\"";
813
+ $link .= (!get_option('sociable_disablealpha',false)) ? " class=\"sociable-hovers\"" : "";
814
+ /**
815
+ * If site has sprite information use it
816
+ */
817
  } else {
818
+ $imgsrc = $imagepath."services-sprite.gif";
819
+ $services_sprite_url = $imagepath . "services-sprite.png";
820
+ $spriteCoords = $site['spriteCoordinates'];
821
+ $link .= "<img src=\"".$imgsrc."\" title=\"$description\" alt=\"$description\" style=\"background: transparent url($services_sprite_url) no-repeat; background-position:-$spriteCoords[0]px -$spriteCoords[1]px\"";
822
+ $link .= (!get_option('sociable_disablealpha',false)) ? " class=\"sociable-hovers\"" : "";
823
  }
 
824
  if (isset($site['class']) && $site['class'])
825
  $link .= " sociable_{$site['class']}";
826
  $link .= "\" />";
898
  'Facebook',
899
  'Mixx',
900
  'Google',
901
+ 'Blogplay'
902
  ));
903
 
904
  if ($force or !is_string(get_option('sociable_tagline')))
919
 
920
  if ( $force OR !( get_option('sociable_usecss') ) )
921
  update_option('sociable_usecss', true);
922
+
923
+ if ( $force or !( get_option('sociable_iframewidth')))
924
+ {
925
+ update_option('sociable_iframewidth',900);
926
+ }
927
+ if ( $force or !( get_option('sociable_iframeheight')))
928
+ {
929
+ update_option('sociable_iframeheight',500);
930
+ }
931
+
932
+ if ( $force or !( get_option('sociable_disablealpha')))
933
+ {
934
+ update_option('sociable_disablealpha',false);
935
+ }
936
  }
937
 
938
  /**
975
  * in Sociable. For all other sites this has so far been refused.
976
  */
977
  function sociable_js() {
978
+ if (get_option('sociable_useiframe')==true)
979
+ {
980
+ global $sociablepluginpath;
981
+ wp_enqueue_script('jquery');
982
+ wp_enqueue_script('sociable-thickbox',$sociablepluginpath.'thickbox/thickbox.js',array('jquery'));
983
+ }
984
+ if (in_array('Add to favorites',get_option('sociable_active_sites'))) {
985
+ global $sociablepluginpath;
986
+ wp_enqueue_script('sociable-addtofavorites',$sociablepluginpath.'addtofavorites.js');
987
+ }
988
  if (in_array('Wists', get_option('sociable_active_sites'))) {
989
  global $sociablepluginpath;
990
  wp_enqueue_script('sociable-wists',$sociablepluginpath.'wists.js');
996
  * If the user has the (default) setting of using the Sociable CSS, load it.
997
  */
998
  function sociable_css() {
999
+ if (get_option('sociable_useiframe') == true) {
1000
+ global $sociablepluginpath;
1001
+ wp_enqueue_style('sociable-thickbox-css',$sociablepluginpath.'thickbox/thickbox.css');
1002
+ }
1003
  if (get_option('sociable_usecss') == true) {
1004
  global $sociablepluginpath;
1005
  wp_enqueue_style('sociable-front-css',$sociablepluginpath.'sociable.css');
1079
  delete_option('sociable_active_sites', $active_sites);
1080
  add_option('sociable_active_sites', $active_sites);
1081
 
1082
+ foreach ( array('usetargetblank', 'useiframe', 'disablealpha', 'awesmenable', 'usecss', 'usetextlinks') as $val ) {
1083
  if ( isset($_POST[$val]) && $_POST[$val] )
1084
  update_option('sociable_'.$val,true);
1085
  else
1086
  update_option('sociable_'.$val,false);
1087
  }
1088
 
1089
+ if (isset($_POST['iframewidth']) && is_numeric($_POST['iframewidth'])) {
1090
+ update_option('sociable_iframewidth',$_POST['iframewidth']);
1091
+ } else {
1092
+ update_option('sociable_iframewidth',900);
1093
+ }
1094
+ if (isset($_POST['iframeheight']) && is_numeric($_POST['iframeheight'])) {
1095
+ update_option('sociable_iframeheight',$_POST['iframeheight']);
1096
+ } else {
1097
+ update_option('sociable_iframeheight',500);
1098
+ }
1099
+
1100
  foreach ( array('awesmapikey', 'tagline', 'imagedir') as $val ) {
1101
  if ( !$_POST[$val] )
1102
  update_option( 'sociable_'.$val, '');
1171
  if ($imagepath == "")
1172
  $imagepath = $sociablepluginpath.'images/';
1173
 
1174
+ if (!isset($site['spriteCoordinates'])) {
1175
+ if (strpos($site['favicon'], 'http') === 0) {
1176
+ $imgsrc = $site['favicon'];
1177
+ } else {
1178
+ $imgsrc = $imagepath.$site['favicon'];
1179
+ }
1180
+ echo "<img src=\"$imgsrc\" width=\"16\" height=\"16\" alt=\"" . $site[description] . "\" />";
1181
  } else {
1182
+ $imgsrc = $imagepath."services-sprite.gif";
1183
+ $services_sprite_url = $imagepath . "services-sprite.png";
1184
+ $spriteCoords = $site['spriteCoordinates'];
1185
+ echo "<img src=\"$imgsrc\" width=\"16\" height=\"16\" style=\"background: transparent url($services_sprite_url) no-repeat; background-position:-$spriteCoords[0]px -$spriteCoords[1]px\" alt=\"" . $site[description] . "\" />";
1186
  }
1187
+
1188
+ echo $sitename; ?>
 
1189
  </li>
1190
  <?php } ?>
1191
  </ul>
1193
  <input type="hidden" id="site_order" name="site_order" value="<?php echo join('|', array_keys($sociable_known_sites)) ?>" />
1194
  </td>
1195
  </tr>
1196
+ <tr>
1197
+ <th scope="row" valign="top">
1198
+ <?php _e("Disable alpha mask on share toolbar?", "sociable"); ?>
1199
+ </th>
1200
+ <td>
1201
+ <input type="checkbox" name="disablealpha" <?php checked( get_option('sociable_disablealpha'), true ) ; ?> />
1202
+ </td>
1203
+ </tr>
1204
  <tr>
1205
  <th scope="row" valign="top">
1206
  <?php _e("Tagline", "sociable"); ?>
1259
  <input size="80" type="text" name="imagedir" value="<?php echo attribute_escape(stripslashes(get_option('sociable_imagedir'))); ?>" />
1260
  </td>
1261
  </tr>
1262
+ <tr>
1263
+ <th scope="row" valign="top">
1264
+ <?php _e("Use thickbox/iframe on links?:", "sociable"); ?>
1265
+ </th>
1266
+ <td>
1267
+ <input type="checkbox" name="useiframe" <?php checked( get_option('sociable_useiframe'), true ); ?> />
1268
+ <?php _e("width:", "sociable")?> <input type="text" name="iframewidth" value="<?php echo attribute_escape(stripslashes(get_option('sociable_iframewidth',900))); ?>" />
1269
+ <?php _e("height:", "sociable")?> <input type="text" name="iframeheight" value="<?php echo attribute_escape(stripslashes(get_option('sociable_iframeheight',500))); ?>" />
1270
+ </td>
1271
+ </tr>
1272
  <tr>
1273
  <th scope="row" valign="top">
1274
  <?php _e("Open in new window:", "sociable"); ?>
1301
  <ul class="sociablemenu">
1302
  <li><?php _e('Link to it so other folks can find out about it.','sociable'); ?></li>
1303
  <li><?php _e('<a href="http://wordpress.org/extend/plugins/sociable/">Give it a good rating</a> on WordPress.org.','sociable'); ?></li>
 
1304
  </ul>
1305
  <h2><?php _e('Need support?','sociable'); ?></h2>
1306
  <p><?php _e('If you have any problems or good ideas, please talk about them in the <a href="http://wordpress.org/tags/sociable">Support forums</a>.', 'sociable'); ?></p>
1307
 
1308
  <h2><?php _e('Credits','sociable'); ?></h2>
1309
+ <p><?php _e('<a href="http://blogplay.com/plugin/">Sociable</a> was originally developed by <a href="http://push.cx/">Peter Harkins</a> and was been maintained by <a href="http://yoast.com/">Joost de Valk</a> since the beginning of 2008. On September of 2009, the new home of Sociable is <a href="http://blogplay.com">BlogPlay.com</a>. It\'s released under the GNU GPL version 2.','Sociable'); ?></p>
1310
 
1311
 
1312
  </div>
1347
  /**
1348
  * Add the Yoast.com RSS feed to the WordPress dashboard
1349
  */
1350
+ if (!function_exists('blogplay_db_widget')) {
1351
+ function blogplay_text_limit( $text, $limit, $finish = ' [&hellip;]') {
1352
  if( strlen( $text ) > $limit ) {
1353
  $text = substr( $text, 0, $limit );
1354
  $text = substr( $text, 0, - ( strlen( strrchr( $text,' ') ) ) );
1357
  return $text;
1358
  }
1359
 
1360
+ function blogplay_db_widget($image = 'normal', $num = 3, $excerptsize = 250, $showdate = true) {
1361
  require_once(ABSPATH.WPINC.'/rss.php');
1362
+ if ( $rss = fetch_rss( 'http://twitter.com/statuses/user_timeline/48344284.rss' ) ) {
1363
  echo '<div class="rss-widget">';
1364
+ /*
1365
  if ($image == 'normal') {
1366
  echo '<a href="http://yoast.com/" title="Go to Yoast.com"><img src="http://cdn.yoast.com/yoast-logo-rss.png" class="alignright" alt="Yoast"/></a>';
1367
  } else {
1368
  echo '<a href="http://yoast.com/" title="Go to Yoast.com"><img width="80" src="http://cdn.yoast.com/yoast-logo-rss.png" class="alignright" alt="Yoast"/></a>';
1369
  }
1370
+ */
1371
  echo '<ul>';
1372
  $rss->items = array_slice( $rss->items, 0, $num );
1373
  foreach ( (array) $rss->items as $item ) {
1375
  echo '<a class="rsswidget" href="'.clean_url( $item['link'], $protocolls=null, 'display' ).'">'. htmlentities($item['title']) .'</a> ';
1376
  if ($showdate)
1377
  echo '<span class="rss-date">'. date('F j, Y', strtotime($item['pubdate'])) .'</span>';
1378
+ echo '<div class="rssSummary">'. blogplay_text_limit($item['summary'],$excerptsize) .'</div>';
1379
  echo '</li>';
1380
  }
1381
  echo '</ul>';
1382
  echo '<div style="border-top: 1px solid #ddd; padding-top: 10px; text-align:center;">';
1383
+ echo '<a href="http://twitter.com/statuses/user_timeline/48344284.rss"><img src="'.get_bloginfo('wpurl').'/wp-includes/images/rss.png" alt=""/> Subscribe with RSS</a>';
1384
  if ($image == 'normal') {
1385
  echo ' &nbsp; &nbsp; &nbsp; ';
1386
  } else {
1387
  echo '<br/>';
1388
  }
1389
+ //echo '<a href="http://yoast.com/email-blog-updates/"><img src="http://cdn.yoast.com/email_sub.png" alt=""/> Subscribe by email</a>';
1390
  echo '</div>';
1391
  echo '</div>';
1392
  }
1393
  }
1394
 
1395
+ function blogplay_widget_setup() {
1396
+ wp_add_dashboard_widget( 'blogplay_db_widget' , 'The Latest news from BlogPlay.Com' , 'blogplay_db_widget');
1397
  }
1398
 
1399
+ add_action('wp_dashboard_setup', 'blogplay_widget_setup');
1400
  }
1401
  ?>
thickbox/loadingAnimation.gif ADDED
Binary file
thickbox/thickbox.css ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* ----------------------------------------------------------------------------------------------------------------*/
2
+ /* ---------->>> global settings needed for thickbox <<<-----------------------------------------------------------*/
3
+ /* ----------------------------------------------------------------------------------------------------------------*/
4
+ *{padding: 0; margin: 0;}
5
+
6
+ /* ----------------------------------------------------------------------------------------------------------------*/
7
+ /* ---------->>> thickbox specific link and font settings <<<------------------------------------------------------*/
8
+ /* ----------------------------------------------------------------------------------------------------------------*/
9
+ #TB_window {
10
+ font: 12px Arial, Helvetica, sans-serif;
11
+ color: #333333;
12
+ }
13
+
14
+ #TB_secondLine {
15
+ font: 10px Arial, Helvetica, sans-serif;
16
+ color:#666666;
17
+ }
18
+
19
+ #TB_window a:link {color: #666666;}
20
+ #TB_window a:visited {color: #666666;}
21
+ #TB_window a:hover {color: #000;}
22
+ #TB_window a:active {color: #666666;}
23
+ #TB_window a:focus{color: #666666;}
24
+
25
+ /* ----------------------------------------------------------------------------------------------------------------*/
26
+ /* ---------->>> thickbox settings <<<-----------------------------------------------------------------------------*/
27
+ /* ----------------------------------------------------------------------------------------------------------------*/
28
+ #TB_overlay {
29
+ position: fixed;
30
+ z-index:100;
31
+ top: 0px;
32
+ left: 0px;
33
+ height:100%;
34
+ width:100%;
35
+ }
36
+
37
+ .TB_overlayMacFFBGHack {background: url(macFFBgHack.png) repeat;}
38
+ .TB_overlayBG {
39
+ background-color:#000;
40
+ filter:alpha(opacity=75);
41
+ -moz-opacity: 0.75;
42
+ opacity: 0.75;
43
+ }
44
+
45
+ * html #TB_overlay { /* ie6 hack */
46
+ position: absolute;
47
+ height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
48
+ }
49
+
50
+ #TB_window {
51
+ position: fixed;
52
+ background: #ffffff;
53
+ z-index: 102;
54
+ color:#000000;
55
+ display:none;
56
+ border: 4px solid #525252;
57
+ text-align:left;
58
+ top:50%;
59
+ left:50%;
60
+ }
61
+
62
+ * html #TB_window { /* ie6 hack */
63
+ position: absolute;
64
+ margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
65
+ }
66
+
67
+ #TB_window img#TB_Image {
68
+ display:block;
69
+ margin: 15px 0 0 15px;
70
+ border-right: 1px solid #ccc;
71
+ border-bottom: 1px solid #ccc;
72
+ border-top: 1px solid #666;
73
+ border-left: 1px solid #666;
74
+ }
75
+
76
+ #TB_caption{
77
+ height:25px;
78
+ padding:7px 30px 10px 25px;
79
+ float:left;
80
+ }
81
+
82
+ #TB_closeWindow{
83
+ height:25px;
84
+ padding:11px 25px 10px 0;
85
+ float:right;
86
+ }
87
+
88
+ #TB_closeAjaxWindow{
89
+ padding:7px 10px 5px 0;
90
+ margin-bottom:1px;
91
+ text-align:right;
92
+ float:right;
93
+ }
94
+
95
+ #TB_ajaxWindowTitle{
96
+ float:left;
97
+ padding:7px 0 5px 10px;
98
+ margin-bottom:1px;
99
+ }
100
+
101
+ #TB_title{
102
+ background-color:#e8e8e8;
103
+ height:27px;
104
+ }
105
+
106
+ #TB_ajaxContent{
107
+ clear:both;
108
+ padding:2px 15px 15px 15px;
109
+ overflow:auto;
110
+ text-align:left;
111
+ line-height:1.4em;
112
+ }
113
+
114
+ #TB_ajaxContent.TB_modal{
115
+ padding:15px;
116
+ }
117
+
118
+ #TB_ajaxContent p{
119
+ padding:5px 0px 5px 0px;
120
+ }
121
+
122
+ #TB_load{
123
+ position: fixed;
124
+ display:none;
125
+ height:13px;
126
+ width:208px;
127
+ z-index:103;
128
+ top: 50%;
129
+ left: 50%;
130
+ margin: -6px 0 0 -104px; /* -height/2 0 0 -width/2 */
131
+ }
132
+
133
+ * html #TB_load { /* ie6 hack */
134
+ position: absolute;
135
+ margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
136
+ }
137
+
138
+ #TB_HideSelect{
139
+ z-index:99;
140
+ position:fixed;
141
+ top: 0;
142
+ left: 0;
143
+ background-color:#fff;
144
+ border:none;
145
+ filter:alpha(opacity=0);
146
+ -moz-opacity: 0;
147
+ opacity: 0;
148
+ height:100%;
149
+ width:100%;
150
+ }
151
+
152
+ * html #TB_HideSelect { /* ie6 hack */
153
+ position: absolute;
154
+ height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
155
+ }
156
+
157
+ #TB_iframeContent{
158
+ clear:both;
159
+ border:none;
160
+ margin-bottom:-1px;
161
+ margin-top:1px;
162
+ _margin-bottom:1px;
163
+ }
thickbox/thickbox.js ADDED
@@ -0,0 +1,319 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Thickbox 3.1 - One Box To Rule Them All.
3
+ * By Cody Lindley (http://www.codylindley.com)
4
+ * Copyright (c) 2007 cody lindley
5
+ * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
6
+ */
7
+
8
+ var tb_pathToImage = "http://blogplay.com/libs/thickbox/loadingAnimation.gif";
9
+
10
+ /*!!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/
11
+
12
+ //on page load call tb_init
13
+ jQuery(document).ready(function(){
14
+ tb_init('a.thickbox, area.thickbox, input.thickbox');//pass where to apply thickbox
15
+ imgLoader = new Image();// preload image
16
+ imgLoader.src = tb_pathToImage;
17
+ });
18
+
19
+ //add thickbox to href & area elements that have a class of .thickbox
20
+ function tb_init(domChunk){
21
+ jQuery(domChunk).click(function(){
22
+ var t = this.title || this.name || null;
23
+ var a = this.href || this.alt;
24
+ var g = this.rel || false;
25
+ tb_show(t,a,g);
26
+ this.blur();
27
+ return false;
28
+ });
29
+ }
30
+
31
+ function tb_show(caption, url, imageGroup) {//function called when the user clicks on a thickbox link
32
+
33
+ try {
34
+ if (typeof document.body.style.maxHeight === "undefined") {//if IE 6
35
+ jQuery("body","html").css({height: "100%", width: "100%"});
36
+ jQuery("html").css("overflow","hidden");
37
+ if (document.getElementById("TB_HideSelect") === null) {//iframe to hide select elements in ie6
38
+ jQuery("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");
39
+ jQuery("#TB_overlay").click(tb_remove);
40
+ }
41
+ }else{//all others
42
+ if(document.getElementById("TB_overlay") === null){
43
+ jQuery("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");
44
+ jQuery("#TB_overlay").click(tb_remove);
45
+ }
46
+ }
47
+
48
+ if(tb_detectMacXFF()){
49
+ jQuery("#TB_overlay").addClass("TB_overlayMacFFBGHack");//use png overlay so hide flash
50
+ }else{
51
+ jQuery("#TB_overlay").addClass("TB_overlayBG");//use background and opacity
52
+ }
53
+
54
+ if(caption===null){caption="";}
55
+ jQuery("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");//add loader to the page
56
+ jQuery('#TB_load').show();//show loader
57
+
58
+ var baseURL;
59
+ if(url.indexOf("?")!==-1){ //ff there is a query string involved
60
+ baseURL = url.substr(0, url.indexOf("?"));
61
+ }else{
62
+ baseURL = url;
63
+ }
64
+
65
+ var urlString = /\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/;
66
+ var urlType = baseURL.toLowerCase().match(urlString);
67
+
68
+ if(urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' || urlType == '.gif' || urlType == '.bmp'){//code to show images
69
+
70
+ TB_PrevCaption = "";
71
+ TB_PrevURL = "";
72
+ TB_PrevHTML = "";
73
+ TB_NextCaption = "";
74
+ TB_NextURL = "";
75
+ TB_NextHTML = "";
76
+ TB_imageCount = "";
77
+ TB_FoundURL = false;
78
+ if(imageGroup){
79
+ TB_TempArray = jQuery("a[@rel="+imageGroup+"]").get();
80
+ for (TB_Counter = 0; ((TB_Counter < TB_TempArray.length) && (TB_NextHTML === "")); TB_Counter++) {
81
+ var urlTypeTemp = TB_TempArray[TB_Counter].href.toLowerCase().match(urlString);
82
+ if (!(TB_TempArray[TB_Counter].href == url)) {
83
+ if (TB_FoundURL) {
84
+ TB_NextCaption = TB_TempArray[TB_Counter].title;
85
+ TB_NextURL = TB_TempArray[TB_Counter].href;
86
+ TB_NextHTML = "<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>";
87
+ } else {
88
+ TB_PrevCaption = TB_TempArray[TB_Counter].title;
89
+ TB_PrevURL = TB_TempArray[TB_Counter].href;
90
+ TB_PrevHTML = "<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>";
91
+ }
92
+ } else {
93
+ TB_FoundURL = true;
94
+ TB_imageCount = "Image " + (TB_Counter + 1) +" of "+ (TB_TempArray.length);
95
+ }
96
+ }
97
+ }
98
+
99
+ imgPreloader = new Image();
100
+ imgPreloader.onload = function(){
101
+ imgPreloader.onload = null;
102
+
103
+ // Resizing large images - orginal by Christian Montoya edited by me.
104
+ var pagesize = tb_getPageSize();
105
+ var x = pagesize[0] - 150;
106
+ var y = pagesize[1] - 150;
107
+ var imageWidth = imgPreloader.width;
108
+ var imageHeight = imgPreloader.height;
109
+ if (imageWidth > x) {
110
+ imageHeight = imageHeight * (x / imageWidth);
111
+ imageWidth = x;
112
+ if (imageHeight > y) {
113
+ imageWidth = imageWidth * (y / imageHeight);
114
+ imageHeight = y;
115
+ }
116
+ } else if (imageHeight > y) {
117
+ imageWidth = imageWidth * (y / imageHeight);
118
+ imageHeight = y;
119
+ if (imageWidth > x) {
120
+ imageHeight = imageHeight * (x / imageWidth);
121
+ imageWidth = x;
122
+ }
123
+ }
124
+ // End Resizing
125
+
126
+ TB_WIDTH = imageWidth + 30;
127
+ TB_HEIGHT = imageHeight + 60;
128
+ jQuery("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a>" + "<div id='TB_caption'>"+caption+"<div id='TB_secondLine'>" + TB_imageCount + TB_PrevHTML + TB_NextHTML + "</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div>");
129
+
130
+ jQuery("#TB_closeWindowButton").click(tb_remove);
131
+
132
+ if (!(TB_PrevHTML === "")) {
133
+ function goPrev(){
134
+ if(jQuery(document).unbind("click",goPrev)){jQuery(document).unbind("click",goPrev);}
135
+ jQuery("#TB_window").remove();
136
+ jQuery("body").append("<div id='TB_window'></div>");
137
+ tb_show(TB_PrevCaption, TB_PrevURL, imageGroup);
138
+ return false;
139
+ }
140
+ jQuery("#TB_prev").click(goPrev);
141
+ }
142
+
143
+ if (!(TB_NextHTML === "")) {
144
+ function goNext(){
145
+ jQuery("#TB_window").remove();
146
+ jQuery("body").append("<div id='TB_window'></div>");
147
+ tb_show(TB_NextCaption, TB_NextURL, imageGroup);
148
+ return false;
149
+ }
150
+ jQuery("#TB_next").click(goNext);
151
+
152
+ }
153
+
154
+ document.onkeydown = function(e){
155
+ if (e == null) { // ie
156
+ keycode = event.keyCode;
157
+ } else { // mozilla
158
+ keycode = e.which;
159
+ }
160
+ if(keycode == 27){ // close
161
+ tb_remove();
162
+ } else if(keycode == 190){ // display previous image
163
+ if(!(TB_NextHTML == "")){
164
+ document.onkeydown = "";
165
+ goNext();
166
+ }
167
+ } else if(keycode == 188){ // display next image
168
+ if(!(TB_PrevHTML == "")){
169
+ document.onkeydown = "";
170
+ goPrev();
171
+ }
172
+ }
173
+ };
174
+
175
+ tb_position();
176
+ jQuery("#TB_load").remove();
177
+ jQuery("#TB_ImageOff").click(tb_remove);
178
+ jQuery("#TB_window").css({display:"block"}); //for safari using css instead of show
179
+ };
180
+
181
+ imgPreloader.src = url;
182
+ }else{//code to show html
183
+
184
+ var queryString = url.replace(/^[^\?]+\??/,'');
185
+ var params = tb_parseQuery( queryString );
186
+
187
+ TB_WIDTH = (params['width']*1) + 30 || 630; //defaults to 630 if no paramaters were added to URL
188
+ TB_HEIGHT = (params['height']*1) + 40 || 440; //defaults to 440 if no paramaters were added to URL
189
+ ajaxContentW = TB_WIDTH - 30;
190
+ ajaxContentH = TB_HEIGHT - 45;
191
+
192
+ if(url.indexOf('TB_iframe') != -1){// either iframe or ajax window
193
+ urlNoQuery = url.split('TB_');
194
+ jQuery("#TB_iframeContent").remove();
195
+ if(params['modal'] != "true"){//iframe no modal
196
+ jQuery("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;' > </iframe>");
197
+ }else{//iframe modal
198
+ jQuery("#TB_overlay").unbind();
199
+ jQuery("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;'> </iframe>");
200
+ }
201
+ }else{// not an iframe, ajax
202
+ if(jQuery("#TB_window").css("display") != "block"){
203
+ if(params['modal'] != "true"){//ajax no modal
204
+ jQuery("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>close</a> or Esc Key</div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>");
205
+ }else{//ajax modal
206
+ jQuery("#TB_overlay").unbind();
207
+ jQuery("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>");
208
+ }
209
+ }else{//this means the window is already up, we are just loading new content via ajax
210
+ jQuery("#TB_ajaxContent")[0].style.width = ajaxContentW +"px";
211
+ jQuery("#TB_ajaxContent")[0].style.height = ajaxContentH +"px";
212
+ jQuery("#TB_ajaxContent")[0].scrollTop = 0;
213
+ jQuery("#TB_ajaxWindowTitle").html(caption);
214
+ }
215
+ }
216
+
217
+ jQuery("#TB_closeWindowButton").click(tb_remove);
218
+
219
+ if(url.indexOf('TB_inline') != -1){
220
+ jQuery("#TB_ajaxContent").append(jQuery('#' + params['inlineId']).children());
221
+ jQuery("#TB_window").unload(function () {
222
+ jQuery('#' + params['inlineId']).append( jQuery("#TB_ajaxContent").children() ); // move elements back when you're finished
223
+ });
224
+ tb_position();
225
+ jQuery("#TB_load").remove();
226
+ jQuery("#TB_window").css({display:"block"});
227
+ }else if(url.indexOf('TB_iframe') != -1){
228
+ tb_position();
229
+ if(jQuery.browser.safari){//safari needs help because it will not fire iframe onload
230
+ jQuery("#TB_load").remove();
231
+ jQuery("#TB_window").css({display:"block"});
232
+ }
233
+ }else{
234
+ jQuery("#TB_ajaxContent").load(url += "&random=" + (new Date().getTime()),function(){//to do a post change this load method
235
+ tb_position();
236
+ jQuery("#TB_load").remove();
237
+ tb_init("#TB_ajaxContent a.thickbox");
238
+ jQuery("#TB_window").css({display:"block"});
239
+ });
240
+ }
241
+
242
+ }
243
+
244
+ if(!params['modal']){
245
+ document.onkeyup = function(e){
246
+ if (e == null) { // ie
247
+ keycode = event.keyCode;
248
+ } else { // mozilla
249
+ keycode = e.which;
250
+ }
251
+ if(keycode == 27){ // close
252
+ tb_remove();
253
+ }
254
+ };
255
+ }
256
+
257
+ } catch(e) {
258
+ //nothing here
259
+ }
260
+ }
261
+
262
+ //helper functions below
263
+ function tb_showIframe(){
264
+ jQuery("#TB_load").remove();
265
+ jQuery("#TB_window").css({display:"block"});
266
+ }
267
+
268
+ function tb_remove() {
269
+ jQuery("#TB_imageOff").unbind("click");
270
+ jQuery("#TB_closeWindowButton").unbind("click");
271
+ jQuery("#TB_window").fadeOut("fast",function(){jQuery('#TB_window,#TB_overlay,#TB_HideSelect').trigger("unload").unbind().remove();});
272
+ jQuery("#TB_load").remove();
273
+ if (typeof document.body.style.maxHeight == "undefined") {//if IE 6
274
+ jQuery("body","html").css({height: "auto", width: "auto"});
275
+ jQuery("html").css("overflow","");
276
+ }
277
+ document.onkeydown = "";
278
+ document.onkeyup = "";
279
+ return false;
280
+ }
281
+
282
+ function tb_position() {
283
+ jQuery("#TB_window").css({marginLeft: '-' + parseInt((TB_WIDTH / 2),10) + 'px', width: TB_WIDTH + 'px'});
284
+ if ( !(jQuery.browser.msie && jQuery.browser.version < 7)) { // take away IE6
285
+ jQuery("#TB_window").css({marginTop: '-' + parseInt((TB_HEIGHT / 2),10) + 'px'});
286
+ }
287
+ }
288
+
289
+ function tb_parseQuery ( query ) {
290
+ var Params = {};
291
+ if ( ! query ) {return Params;}// return empty object
292
+ var Pairs = query.split(/[;&]/);
293
+ for ( var i = 0; i < Pairs.length; i++ ) {
294
+ var KeyVal = Pairs[i].split('=');
295
+ if ( ! KeyVal || KeyVal.length != 2 ) {continue;}
296
+ var key = unescape( KeyVal[0] );
297
+ var val = unescape( KeyVal[1] );
298
+ val = val.replace(/\+/g, ' ');
299
+ Params[key] = val;
300
+ }
301
+ return Params;
302
+ }
303
+
304
+ function tb_getPageSize(){
305
+ var de = document.documentElement;
306
+ var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
307
+ var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight;
308
+ arrayPageSize = [w,h];
309
+ return arrayPageSize;
310
+ }
311
+
312
+ function tb_detectMacXFF() {
313
+ var userAgent = navigator.userAgent.toLowerCase();
314
+ if (userAgent.indexOf('mac') != -1 && userAgent.indexOf('firefox')!=-1) {
315
+ return true;
316
+ }
317
+ }
318
+
319
+