Sociable - Version 4.1.6

Version Description

  • FIXED: Some Fixes
Download this release

Release Info

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

Code changes from version 4.1.5 to 4.1.6

Files changed (64) hide show
  1. css/icons-radius.css +272 -272
  2. css/shape.css +76 -0
  3. css/sociable-admin.css +78 -67
  4. css/sociable.css +261 -260
  5. css/style-admin.css +234 -234
  6. css/toolbar.css +132 -0
  7. debig_output.txt +266 -266
  8. images/button_newsky.png +0 -0
  9. images/button_sociabb.png +0 -0
  10. images/customIcons/rss.png +0 -0
  11. images/shape/shape-bottom-left.png +0 -0
  12. images/shape/shape-bottom-right.png +0 -0
  13. images/shape/shape-bottom.png +0 -0
  14. images/shape/shape-left.png +0 -0
  15. images/shape/shape-right.png +0 -0
  16. images/shape/shape-top-left.png +0 -0
  17. images/shape/shape-top-right.png +0 -0
  18. images/shape/shape-top.png +0 -0
  19. images/skyphoto.png +0 -0
  20. images/socciable_old.png +0 -0
  21. images/toolbar/arrow.png +0 -0
  22. images/toolbar/arrow_s.png +0 -0
  23. images/toolbar/envelope.png +0 -0
  24. images/toolbar/f.png +0 -0
  25. images/toolbar/fc.png +0 -0
  26. images/toolbar/fv.png +0 -0
  27. images/toolbar/g.png +0 -0
  28. images/toolbar/gotohome.png +0 -0
  29. images/toolbar/gototop.png +0 -0
  30. images/toolbar/i.png +0 -0
  31. images/toolbar/lc.png +0 -0
  32. images/toolbar/n.png +0 -0
  33. images/toolbar/o.png +0 -0
  34. images/toolbar/rss.png +0 -0
  35. images/toolbar/s.png +0 -0
  36. images/toolbar/slide-sociable-c.png +0 -0
  37. images/toolbar/slide-sociable-top-c.png +0 -0
  38. images/toolbar/slide-sociable-top.png +0 -0
  39. images/toolbar/slide-sociable.png +0 -0
  40. images/toolbar/slide-sociableBig-c.png +0 -0
  41. images/toolbar/slide-sociableBig.png +0 -0
  42. images/toolbar/t.png +0 -0
  43. images/toolbar/tc.png +0 -0
  44. includes/async_request.php +24 -0
  45. includes/class-Sociable_Globals.php +667 -667
  46. includes/class-sociable_Admin_Options.php +1358 -719
  47. includes/rss_php.php +161 -0
  48. includes/skyscraper_output.php +781 -0
  49. includes/sociable_output.php +777 -772
  50. js/addtofavorites.js +15 -15
  51. js/admin-fn.js +11 -11
  52. js/async_call.js +13 -0
  53. js/oPlugin.js +1144 -0
  54. js/sociable-admin.js +32 -32
  55. js/sociable.js +80 -80
  56. languages/js/addtofavorites.js +16 -0
  57. languages/js/admin-fn.js +12 -0
  58. languages/js/sociable-admin.js +33 -0
  59. languages/js/sociable.js +80 -0
  60. languages/sociable-de_DE.po +247 -247
  61. languages/sociable-es_ES.po +247 -247
  62. languages/sociable-pt.po +249 -249
  63. readme.txt +423 -10
  64. sociable.php +1264 -218
css/icons-radius.css CHANGED
@@ -1,272 +1,272 @@
1
-
2
-
3
- /*ICONs 16px start*/
4
- .IconsToInclude-Item-16px-s{
5
- height:34px;
6
- background-position:0px;
7
- background-repeat:no-repeat;
8
- float:left;
9
- margin:5px;
10
-
11
- }
12
- .IconsToInclude-Item-16px-s .Border-Left{
13
- width:9px;
14
- background-image:url('../images/item-button-s-left-16.png');
15
- }
16
- .IconsToInclude-Item-16px-s .Border-Right{
17
- width:9px;
18
- background-image:url('../images/item-button-s-right-16.png');
19
- }
20
- .IconsToInclude-Item-16px-s .BG-middle{
21
- color:#ffffff;
22
- font-size:10px;
23
- background-color:#6da6d1;
24
- }
25
- .IconsToInclude-Item-16px-s .BG-middle-TXT{
26
- color:#ffffff;
27
- font-size:10px;
28
- background-color:#6da6d1;
29
- padding-left:5px;
30
- }
31
- .IconsToInclude-Item-16px-s IMG{
32
- width:16px;
33
- height:16px;
34
- }
35
- .IconsToInclude-Item-16px-u{
36
- height:34px;
37
- background-position:0px;
38
- background-repeat:no-repeat;
39
- float:left;
40
- margin:5px;
41
-
42
- }
43
- .IconsToInclude-Item-16px-u .Border-Left{
44
- width:9px;
45
- background-image:url('../images/item-button-u-left-16.png');
46
-
47
- }
48
- .IconsToInclude-Item-16px-u .Border-Right{
49
- width:9px;
50
- background-image:url('../images/item-button-u-right-16.png');
51
-
52
- }
53
- .IconsToInclude-Item-16px-u .BG-middle{
54
- color:#ffffff;
55
- font-size:10px;
56
- background-color:#dddddd;
57
- }
58
- .IconsToInclude-Item-16px-u .BG-middle-TXT{
59
- color:#ffffff;
60
- font-size:10px;
61
- background-color:#dddddd;
62
- padding-left:5px;
63
- }
64
- .IconsToInclude-Item-16px-u IMG{
65
- width:16px;
66
- height:16px;
67
- }
68
- /*ICONs 16px end*/
69
-
70
- /*ICONs 32px start*/
71
- .IconsToInclude-Item-32px-s{
72
- height:46px;
73
- background-position:0px;
74
- background-repeat:no-repeat;
75
- float:left;
76
- width:153px;
77
- margin:5px;
78
-
79
- }
80
- .IconsToInclude-Item-32px-s .Border-Left{
81
- width:9px;
82
- background-image:url('../images/item-button-s-left-32.png');
83
- }
84
- .IconsToInclude-Item-32px-s .Border-Right{
85
- width:9px;
86
- background-image:url('../images/item-button-s-right-32.png');
87
- }
88
- .IconsToInclude-Item-32px-s .BG-middle{
89
- color:#ffffff;
90
- font-size:10px;
91
- background-color:#6da6d1;
92
- }
93
- .IconsToInclude-Item-32px-s .BG-middle-TXT{
94
- color:#ffffff;
95
- font-size:10px;
96
- background-color:#6da6d1;
97
- padding-left:5px;
98
- }
99
- .IconsToInclude-Item-32px-s IMG{
100
- width:32px;
101
- height:32px;
102
- }
103
- .IconsToInclude-Item-32px-u{
104
- height:46px;
105
- background-position:0px;
106
- background-repeat:no-repeat;
107
- float:left;
108
- width:153px;
109
- margin:5px;
110
-
111
- }
112
- .IconsToInclude-Item-32px-u .Border-Left{
113
- width:9px;
114
- background-image:url('../images/item-button-u-left-32.png');
115
-
116
- }
117
- .IconsToInclude-Item-32px-u .Border-Right{
118
- width:9px;
119
- background-image:url('../images/item-button-u-right-32.png');
120
-
121
- }
122
- .IconsToInclude-Item-32px-u .BG-middle{
123
- color:#ffffff;
124
- font-size:10px;
125
- background-color:#dddddd;
126
- }
127
- .IconsToInclude-Item-32px-u .BG-middle-TXT{
128
- color:#ffffff;
129
- font-size:10px;
130
- background-color:#dddddd;
131
- padding-left:5px;
132
- }
133
- .IconsToInclude-Item-32px-u IMG{
134
- width:32px;
135
- height:32px;
136
- }
137
- /*ICONs 32px end*/
138
-
139
- /*ICONs 48px start*/
140
- .IconsToInclude-Item-48px-s{
141
- height:58px;
142
- background-position:0px;
143
- background-repeat:no-repeat;
144
- float:left;
145
- margin:5px;
146
-
147
- }
148
- .IconsToInclude-Item-48px-s .Border-Left{
149
- width:9px;
150
- background-image:url('../images/item-button-s-left-48.png');
151
- }
152
- .IconsToInclude-Item-48px-s .Border-Right{
153
- width:9px;
154
- background-image:url('../images/item-button-s-right-48.png');
155
- }
156
- .IconsToInclude-Item-48px-s .BG-middle{
157
- color:#ffffff;
158
- font-size:10px;
159
- background-color:#6da6d1;
160
- }
161
- .IconsToInclude-Item-48px-s .BG-middle-TXT{
162
- color:#ffffff;
163
- font-size:10px;
164
- background-color:#6da6d1;
165
- padding-left:5px;
166
- }
167
- .IconsToInclude-Item-48px-s IMG{
168
- width:48px;
169
- height:48px;
170
- }
171
- .IconsToInclude-Item-48px-u{
172
- height:58px;
173
- background-position:0px;
174
- background-repeat:no-repeat;
175
- float:left;
176
- margin:5px;
177
-
178
- }
179
- .IconsToInclude-Item-48px-u .Border-Left{
180
- width:9px;
181
- background-image:url('../images/item-button-u-left-48.png');
182
-
183
- }
184
- .IconsToInclude-Item-48px-u .Border-Right{
185
- width:9px;
186
- background-image:url('../images/item-button-u-right-48.png');
187
-
188
- }
189
- .IconsToInclude-Item-48px-u .BG-middle{
190
- color:#ffffff;
191
- font-size:10px;
192
- background-color:#dddddd;
193
- }
194
- .IconsToInclude-Item-48px-u .BG-middle-TXT{
195
- color:#ffffff;
196
- font-size:10px;
197
- background-color:#dddddd;
198
- padding-left:5px;
199
- }
200
- .IconsToInclude-Item-48px-u IMG{
201
- width:48px;
202
- height:48px;
203
- }
204
- /*ICONs 48px end*/
205
-
206
-
207
- /*ICONs 64px start*/
208
- .IconsToInclude-Item-64px-s{
209
- height:76px;
210
- background-position:0px;
211
- background-repeat:no-repeat;
212
- float:left;
213
- margin:5px;
214
-
215
- }
216
- .IconsToInclude-Item-64px-s .Border-Left{
217
- width:9px;
218
- background-image:url('../images/item-button-s-left-64.png');
219
- }
220
- .IconsToInclude-Item-64px-s .Border-Right{
221
- width:9px;
222
- background-image:url('../images/item-button-s-right-64.png');
223
- }
224
- .IconsToInclude-Item-64px-s .BG-middle{
225
- color:#ffffff;
226
- font-size:10px;
227
- background-color:#6da6d1;
228
- }
229
- .IconsToInclude-Item-64px-s .BG-middle-TXT{
230
- color:#ffffff;
231
- font-size:10px;
232
- background-color:#6da6d1;
233
- padding-left:5px;
234
- }
235
- .IconsToInclude-Item-64px-s IMG{
236
- width:64px;
237
- height:64px;
238
- }
239
- .IconsToInclude-Item-64px-u{
240
- height:76px;
241
- background-position:0px;
242
- background-repeat:no-repeat;
243
- float:left;
244
- margin:5px;
245
-
246
- }
247
- .IconsToInclude-Item-64px-u .Border-Left{
248
- width:9px;
249
- background-image:url('../images/item-button-u-left-64.png');
250
-
251
- }
252
- .IconsToInclude-Item-64px-u .Border-Right{
253
- width:9px;
254
- background-image:url('../images/item-button-u-right-64.png');
255
-
256
- }
257
- .IconsToInclude-Item-64px-u .BG-middle{
258
- color:#ffffff;
259
- font-size:10px;
260
- background-color:#dddddd;
261
- }
262
- .IconsToInclude-Item-64px-u .BG-middle-TXT{
263
- color:#ffffff;
264
- font-size:10px;
265
- background-color:#dddddd;
266
- padding-left:5px;
267
- }
268
- .IconsToInclude-Item-64px-u IMG{
269
- width:64px;
270
- height:64px;
271
- }
272
- /*ICONs 64px end*/
1
+
2
+
3
+ /*ICONs 16px start*/
4
+ .IconsToInclude-Item-16px-s{
5
+ height:34px;
6
+ background-position:0px;
7
+ background-repeat:no-repeat;
8
+ float:left;
9
+ margin:5px;
10
+
11
+ }
12
+ .IconsToInclude-Item-16px-s .Border-Left{
13
+ width:9px;
14
+ background-image:url('../images/item-button-s-left-16.png');
15
+ }
16
+ .IconsToInclude-Item-16px-s .Border-Right{
17
+ width:9px;
18
+ background-image:url('../images/item-button-s-right-16.png');
19
+ }
20
+ .IconsToInclude-Item-16px-s .BG-middle{
21
+ color:#ffffff;
22
+ font-size:10px;
23
+ background-color:#6da6d1;
24
+ }
25
+ .IconsToInclude-Item-16px-s .BG-middle-TXT{
26
+ color:#ffffff;
27
+ font-size:10px;
28
+ background-color:#6da6d1;
29
+ padding-left:5px;
30
+ }
31
+ .IconsToInclude-Item-16px-s IMG{
32
+ width:16px;
33
+ height:16px;
34
+ }
35
+ .IconsToInclude-Item-16px-u{
36
+ height:34px;
37
+ background-position:0px;
38
+ background-repeat:no-repeat;
39
+ float:left;
40
+ margin:5px;
41
+
42
+ }
43
+ .IconsToInclude-Item-16px-u .Border-Left{
44
+ width:9px;
45
+ background-image:url('../images/item-button-u-left-16.png');
46
+
47
+ }
48
+ .IconsToInclude-Item-16px-u .Border-Right{
49
+ width:9px;
50
+ background-image:url('../images/item-button-u-right-16.png');
51
+
52
+ }
53
+ .IconsToInclude-Item-16px-u .BG-middle{
54
+ color:#ffffff;
55
+ font-size:10px;
56
+ background-color:#dddddd;
57
+ }
58
+ .IconsToInclude-Item-16px-u .BG-middle-TXT{
59
+ color:#ffffff;
60
+ font-size:10px;
61
+ background-color:#dddddd;
62
+ padding-left:5px;
63
+ }
64
+ .IconsToInclude-Item-16px-u IMG{
65
+ width:16px;
66
+ height:16px;
67
+ }
68
+ /*ICONs 16px end*/
69
+
70
+ /*ICONs 32px start*/
71
+ .IconsToInclude-Item-32px-s{
72
+ height:46px;
73
+ background-position:0px;
74
+ background-repeat:no-repeat;
75
+ float:left;
76
+ width:153px;
77
+ margin:5px;
78
+
79
+ }
80
+ .IconsToInclude-Item-32px-s .Border-Left{
81
+ width:9px;
82
+ background-image:url('../images/item-button-s-left-32.png');
83
+ }
84
+ .IconsToInclude-Item-32px-s .Border-Right{
85
+ width:9px;
86
+ background-image:url('../images/item-button-s-right-32.png');
87
+ }
88
+ .IconsToInclude-Item-32px-s .BG-middle{
89
+ color:#ffffff;
90
+ font-size:10px;
91
+ background-color:#6da6d1;
92
+ }
93
+ .IconsToInclude-Item-32px-s .BG-middle-TXT{
94
+ color:#ffffff;
95
+ font-size:10px;
96
+ background-color:#6da6d1;
97
+ padding-left:5px;
98
+ }
99
+ .IconsToInclude-Item-32px-s IMG{
100
+ width:32px;
101
+ height:32px;
102
+ }
103
+ .IconsToInclude-Item-32px-u{
104
+ height:46px;
105
+ background-position:0px;
106
+ background-repeat:no-repeat;
107
+ float:left;
108
+ width:153px;
109
+ margin:5px;
110
+
111
+ }
112
+ .IconsToInclude-Item-32px-u .Border-Left{
113
+ width:9px;
114
+ background-image:url('../images/item-button-u-left-32.png');
115
+
116
+ }
117
+ .IconsToInclude-Item-32px-u .Border-Right{
118
+ width:9px;
119
+ background-image:url('../images/item-button-u-right-32.png');
120
+
121
+ }
122
+ .IconsToInclude-Item-32px-u .BG-middle{
123
+ color:#ffffff;
124
+ font-size:10px;
125
+ background-color:#dddddd;
126
+ }
127
+ .IconsToInclude-Item-32px-u .BG-middle-TXT{
128
+ color:#ffffff;
129
+ font-size:10px;
130
+ background-color:#dddddd;
131
+ padding-left:5px;
132
+ }
133
+ .IconsToInclude-Item-32px-u IMG{
134
+ width:32px;
135
+ height:32px;
136
+ }
137
+ /*ICONs 32px end*/
138
+
139
+ /*ICONs 48px start*/
140
+ .IconsToInclude-Item-48px-s{
141
+ height:58px;
142
+ background-position:0px;
143
+ background-repeat:no-repeat;
144
+ float:left;
145
+ margin:5px;
146
+
147
+ }
148
+ .IconsToInclude-Item-48px-s .Border-Left{
149
+ width:9px;
150
+ background-image:url('../images/item-button-s-left-48.png');
151
+ }
152
+ .IconsToInclude-Item-48px-s .Border-Right{
153
+ width:9px;
154
+ background-image:url('../images/item-button-s-right-48.png');
155
+ }
156
+ .IconsToInclude-Item-48px-s .BG-middle{
157
+ color:#ffffff;
158
+ font-size:10px;
159
+ background-color:#6da6d1;
160
+ }
161
+ .IconsToInclude-Item-48px-s .BG-middle-TXT{
162
+ color:#ffffff;
163
+ font-size:10px;
164
+ background-color:#6da6d1;
165
+ padding-left:5px;
166
+ }
167
+ .IconsToInclude-Item-48px-s IMG{
168
+ width:48px;
169
+ height:48px;
170
+ }
171
+ .IconsToInclude-Item-48px-u{
172
+ height:58px;
173
+ background-position:0px;
174
+ background-repeat:no-repeat;
175
+ float:left;
176
+ margin:5px;
177
+
178
+ }
179
+ .IconsToInclude-Item-48px-u .Border-Left{
180
+ width:9px;
181
+ background-image:url('../images/item-button-u-left-48.png');
182
+
183
+ }
184
+ .IconsToInclude-Item-48px-u .Border-Right{
185
+ width:9px;
186
+ background-image:url('../images/item-button-u-right-48.png');
187
+
188
+ }
189
+ .IconsToInclude-Item-48px-u .BG-middle{
190
+ color:#ffffff;
191
+ font-size:10px;
192
+ background-color:#dddddd;
193
+ }
194
+ .IconsToInclude-Item-48px-u .BG-middle-TXT{
195
+ color:#ffffff;
196
+ font-size:10px;
197
+ background-color:#dddddd;
198
+ padding-left:5px;
199
+ }
200
+ .IconsToInclude-Item-48px-u IMG{
201
+ width:48px;
202
+ height:48px;
203
+ }
204
+ /*ICONs 48px end*/
205
+
206
+
207
+ /*ICONs 64px start*/
208
+ .IconsToInclude-Item-64px-s{
209
+ height:76px;
210
+ background-position:0px;
211
+ background-repeat:no-repeat;
212
+ float:left;
213
+ margin:5px;
214
+
215
+ }
216
+ .IconsToInclude-Item-64px-s .Border-Left{
217
+ width:9px;
218
+ background-image:url('../images/item-button-s-left-64.png');
219
+ }
220
+ .IconsToInclude-Item-64px-s .Border-Right{
221
+ width:9px;
222
+ background-image:url('../images/item-button-s-right-64.png');
223
+ }
224
+ .IconsToInclude-Item-64px-s .BG-middle{
225
+ color:#ffffff;
226
+ font-size:10px;
227
+ background-color:#6da6d1;
228
+ }
229
+ .IconsToInclude-Item-64px-s .BG-middle-TXT{
230
+ color:#ffffff;
231
+ font-size:10px;
232
+ background-color:#6da6d1;
233
+ padding-left:5px;
234
+ }
235
+ .IconsToInclude-Item-64px-s IMG{
236
+ width:64px;
237
+ height:64px;
238
+ }
239
+ .IconsToInclude-Item-64px-u{
240
+ height:76px;
241
+ background-position:0px;
242
+ background-repeat:no-repeat;
243
+ float:left;
244
+ margin:5px;
245
+
246
+ }
247
+ .IconsToInclude-Item-64px-u .Border-Left{
248
+ width:9px;
249
+ background-image:url('../images/item-button-u-left-64.png');
250
+
251
+ }
252
+ .IconsToInclude-Item-64px-u .Border-Right{
253
+ width:9px;
254
+ background-image:url('../images/item-button-u-right-64.png');
255
+
256
+ }
257
+ .IconsToInclude-Item-64px-u .BG-middle{
258
+ color:#ffffff;
259
+ font-size:10px;
260
+ background-color:#dddddd;
261
+ }
262
+ .IconsToInclude-Item-64px-u .BG-middle-TXT{
263
+ color:#ffffff;
264
+ font-size:10px;
265
+ background-color:#dddddd;
266
+ padding-left:5px;
267
+ }
268
+ .IconsToInclude-Item-64px-u IMG{
269
+ width:64px;
270
+ height:64px;
271
+ }
272
+ /*ICONs 64px end*/
css/shape.css ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ table.shape tr td.frame{
3
+ border:solid 1px #CFCFCF;
4
+ background:#ffffff;
5
+ }
6
+ table.shape tr td.left{
7
+ /* background-image:url('shape-left.png');*/
8
+ display:none;
9
+ background-repeat:repeat-y;
10
+ width:3px;
11
+
12
+
13
+ }
14
+ table.shape tr td.right{
15
+ /* background-image:url('shape-right.png');*/
16
+ display:none;
17
+ background-repeat:repeat-y;
18
+ width:3px;
19
+
20
+ }
21
+ table.shape tr td.top{
22
+ /* background-image:url('shape-top.png'); */
23
+ display:none;
24
+ background-repeat:repeat-x;
25
+ height:3px;
26
+
27
+ }
28
+ table.shape tr td.bottom{
29
+ /* background-image:url('shape-bottom.png'); */
30
+ display:none;
31
+ background-repeat:repeat-x;
32
+
33
+ height:3px;
34
+
35
+ }
36
+
37
+ table.shape tr td.bottom{
38
+ /* background-image:url('shape-bottom.png'); */
39
+ display:none;
40
+ background-repeat:repeat-x;
41
+ height:3px;
42
+
43
+ }
44
+
45
+ table.shape tr td.top-left{
46
+ /* background-image:url('shape-top-left.png'); */
47
+ display:none;
48
+ background-repeat:no-repeat;
49
+ height:3px;
50
+ width:3px;
51
+
52
+ }
53
+
54
+ table.shape tr td.top-right{
55
+ /* background-image:url('shape-top-right.png'); */
56
+ display:none;
57
+ background-repeat:no-repeat;
58
+ height:3px;
59
+ width:3px;
60
+ }
61
+
62
+ table.shape tr td.bottom-left{
63
+ /* background-image:url('shape-bottom-left.png'); */
64
+ display:none;
65
+ background-repeat:no-repeat;
66
+ height:3px;
67
+ width:3px;
68
+ }
69
+
70
+ table.shape tr td.bottom-right{
71
+ /* background-image:url('shape-bottom-right.png'); */
72
+ display:none;
73
+ background-repeat:no-repeat;
74
+ height:3px;
75
+ width:3px;
76
+ }
css/sociable-admin.css CHANGED
@@ -1,67 +1,78 @@
1
- .sociablemenu li {
2
-
3
- }
4
- #sociable_site_list {
5
- list-style-type: none;
6
- margin: 0 auto;
7
- padding: 0;
8
- font-size: 80%;
9
-
10
- }
11
- #sociable_site_list li {
12
- list-style-type: none;
13
- cursor: move;
14
- float: left;
15
- margin: 2px 2px 0 0;
16
- width: 153px;
17
- height:auto;
18
- text-align: left;
19
- font-size: 10px;
20
- padding: 4px;
21
-
22
- }
23
- #sociable_site_list li img {
24
- margin-right:6px;
25
- }
26
- #sociable_site_list .active {
27
-
28
- behavior: url('../wp-content/plugins/sociable/css/pie.htc');
29
- -moz-border-radius: 5px;
30
- -webkit-border-radius: 5px;
31
- border-radius: 5px 5px 5px 5px;
32
- background:#6da6d1;
33
-
34
- }
35
- #sociable_site_list .active img {
36
- opacity: 1;
37
- -moz-opacity: 1;
38
- filter:alpha(opacity=100);
39
-
40
- }
41
- #sociable_site_list .inactive {
42
-
43
- behavior: url('../wp-content/plugins/sociable/css/pie.htc');
44
- -moz-border-radius: 5px;
45
- -webkit-border-radius: 5px;
46
- border-radius: 5px 5px 5px 5px;
47
- background:#dddddd;
48
-
49
-
50
- }
51
- #sociable_site_list .inactive img {
52
- opacity: .4;
53
- -moz-opacity: .4;
54
- filter:alpha(opacity=40);
55
-
56
- }
57
- #sociable_site_list li input {
58
- height: 12px;
59
- margin: 0 5px 8px 0;
60
- padding: 0;
61
- background: transparent;
62
- border: none;
63
- }
64
-
65
- .soc_clear{
66
- clear:both;
67
- }
 
 
 
 
 
 
 
 
 
 
 
1
+ .sociablemenu li {
2
+
3
+ }
4
+ #sociable_site_list {
5
+ list-style-type: none;
6
+ margin: 0 auto;
7
+ padding: 0;
8
+ font-size: 80%;
9
+
10
+ }
11
+ #sociable_site_list li {
12
+ list-style-type: none;
13
+ cursor: move;
14
+ float: left;
15
+ margin: 2px 2px 0 0;
16
+ width: 153px;
17
+ height:45px;
18
+ text-align: left;
19
+ font-size: 10px;
20
+ padding: 4px;
21
+
22
+ }
23
+ #sociable_site_list li img {
24
+ margin-right:6px;
25
+ }
26
+ #sociable_site_list .active {
27
+
28
+ behavior: url('../wp-content/plugins/sociable/css/pie.htc');
29
+ -moz-border-radius: 5px;
30
+ -webkit-border-radius: 5px;
31
+ border-radius: 5px 5px 5px 5px;
32
+ background:#6da6d1;
33
+
34
+ }
35
+ #sociable_site_list .active img {
36
+ opacity: 1;
37
+ -moz-opacity: 1;
38
+ filter:alpha(opacity=100);
39
+
40
+ }
41
+ #sociable_site_list .inactive {
42
+
43
+ behavior: url('../wp-content/plugins/sociable/css/pie.htc');
44
+ -moz-border-radius: 5px;
45
+ -webkit-border-radius: 5px;
46
+ border-radius: 5px 5px 5px 5px;
47
+ background:#dddddd;
48
+
49
+
50
+ }
51
+ #sociable_site_list .inactive img {
52
+ opacity: .4;
53
+ -moz-opacity: .4;
54
+ filter:alpha(opacity=40);
55
+
56
+ }
57
+ #sociable_site_list li input {
58
+ height: 12px;
59
+ margin: 0 5px 8px 0;
60
+ padding: 0;
61
+ background: transparent;
62
+ border: none;
63
+ }
64
+
65
+ .soc_clear{
66
+ clear:both;
67
+ }
68
+
69
+ .items_li{
70
+ font-size:16px;
71
+ }
72
+ .sub_item_li {
73
+
74
+ margin-bottom: 16px;
75
+ margin-left: 54px;
76
+ margin-top: 6px;
77
+ font-size: 14px;
78
+ }
css/sociable.css CHANGED
@@ -1,260 +1,261 @@
1
- div.sociable { /*margin: 8px 0;*/}
2
-
3
- #___plusone_0 {
4
- float:right !important;
5
- width:60px !important;
6
- }
7
- #___plusone_1 {
8
- float:right !important;
9
- width:60px !important;
10
- }
11
- #___plusone_2{
12
- float:right !important;
13
- width:60px !important;
14
- }
15
- #___plusone_3 {
16
- float:right !important;
17
- width:60px !important;
18
- }
19
- #___plusone_4 {
20
- float:right !important;
21
- width:60px !important;
22
- }
23
- #___plusone_5 {
24
- float:right !important;
25
- width:60px !important;
26
- }
27
- #___plusone_6 {
28
- float:right !important;
29
- width:60px !important;
30
- }
31
- #___plusone_7 {
32
- float:right !important;
33
- width:60px !important;
34
- }
35
- #___plusone_8 {
36
- float:right !important;
37
- width:60px !important;
38
- }
39
-
40
-
41
- div.sociable li#Twitter_Counter iframe{
42
- width:100px !important;
43
- }
44
-
45
- #Digg_Counter{
46
- width:80px !important;
47
-
48
- }
49
- #Facebook_Counter iframe{
50
-
51
- width:76px !important;
52
- }
53
-
54
- span.sociable_tagline { position: relative; }
55
- span.sociable_tagline span { display: none; width: 14em; }
56
- span.sociable_tagline:hover span {
57
- position: absolute;
58
- display: block;
59
- top: -5em;
60
- background: #ffe;
61
- border: 1px solid #ccc;
62
- color: black;
63
- line-height: 1.25em;
64
- }
65
- .sociable span {
66
- display: block;
67
- }
68
- .sociable ul {
69
- display: block;
70
- margin: 0 !important;
71
- padding: 0 !important;
72
- }
73
- .sociable ul li {
74
- background: none;
75
- display: inline !important;
76
- list-style-type: none;
77
- margin: 0;
78
- padding: 3px;
79
- float:left;
80
- }
81
- .sociable ul li:before { content: ""; }
82
- .sociable img {
83
- float: none;
84
-
85
- border: 0;
86
- margin: 0;
87
- padding: 0;
88
- }
89
-
90
- .sociable-hovers {
91
- opacity: .4;
92
- -moz-opacity: .4;
93
- filter: alpha(opacity=40);
94
- }
95
- .sociable-hovers:hover {
96
- opacity: 1;
97
- -moz-opacity: 1;
98
- filter: alpha(opacity=100);
99
- }
100
-
101
- .soc_clear{
102
- clear:both;
103
- }
104
-
105
-
106
- .option1_32{
107
- background:url("../images/sprites/option1_32.png") no-repeat scroll;
108
- display: block;float: left;height: 32px;width: 32px;
109
- }
110
- .option1_16{
111
- background:url("../images/sprites/option1_16.png") no-repeat scroll;
112
- display: block;float: left;height: 16px;width: 16px;
113
- }
114
- .option1_64{
115
- background:url("../images/sprites/option1_64.png") no-repeat scroll;
116
- display: block;float: left;height: 64px;width: 64px;
117
- }
118
- .option1_48{
119
- background:url("../images/sprites/option1_48.png") no-repeat scroll;
120
- display: block;float: left;height: 48px;width: 48px;
121
- }
122
-
123
-
124
- .option2_32{
125
- background:url("../images/sprites/option2_32.png") no-repeat scroll;
126
- display: block;float: left;height: 32px;width: 32px;
127
- }
128
- .option2_16{
129
- background:url("../images/sprites/option2_16.png") no-repeat scroll;
130
- display: block;float: left;height: 16px;width: 16px;
131
- }
132
- .option2_64{
133
- background:url("../images/sprites/option2_64.png") no-repeat scroll;
134
- display: block;float: left;height: 64px;width: 64px;
135
- }
136
- .option2_48{
137
- background:url("/wp-content/plugins/sociable/images/sprites/option2_48.png") no-repeat scroll;
138
- display: block;float: left;height: 48px;width: 48px;
139
- }
140
-
141
-
142
- .option3_32{
143
- background:url("../images/sprites/option3_32.png") no-repeat scroll;
144
- display: block;float: left;height: 32px;width: 32px;
145
- }
146
- .option3_16{
147
- background:url("../images/sprites/option3_16.png") no-repeat scroll;
148
- display: block;float: left;height: 16px;width: 16px;
149
- }
150
- .option3_64{
151
- background:url("../images/sprites/option3_64.png") no-repeat scroll;
152
- display: block;float: left;height: 64px;width: 64px;
153
- }
154
- .option3_48{
155
- background:url("../images/sprites/option3_48.png") no-repeat scroll;
156
- display: block;float: left;height: 48px;width: 48px;
157
- }
158
-
159
-
160
- .option4_32{
161
- background:url("../images/sprites/option4_32.png") no-repeat scroll;
162
- display: block;float: left;height: 32px;width: 32px;
163
- }
164
- .option4_16{
165
- background:url("../images/sprites/option4_16.png") no-repeat scroll;
166
- display: block;float: left;height: 16px;width: 16px;
167
- }
168
- .option4_64{
169
- background:url("../images/sprites/option4_64.png") no-repeat scroll;
170
- display: block;float: left;height: 64px;width: 64px;
171
- }
172
- .option4_48{
173
- background:url("../images/sprites/option4_48.png") no-repeat scroll;
174
- display: block;float: left;height: 48px;width: 48px;
175
- }
176
-
177
-
178
- .option5_32{
179
- background:url("../images/sprites/option5_32.png") no-repeat scroll;
180
- display: block;float: left;height: 32px;width: 32px;
181
- }
182
- .option5_16{
183
- background:url("../images/sprites/option5_16.png") no-repeat scroll;
184
- display: block;float: left;height: 16px;width: 16px;
185
- }
186
- .option5_64{
187
- background:url("../images/sprites/option5_64.png") no-repeat scroll;
188
- display: block;float: left;height: 64px;width: 64px;
189
- }
190
-
191
- .option5_48{
192
- background:url("../images/sprites/option5_48.png") no-repeat scroll;
193
- display: block;float: left;height: 48px;width: 48px;
194
- }
195
-
196
-
197
- #sociable {
198
- left: 0;
199
- position: absolute;
200
- text-align: left;
201
- top: 0;
202
- z-index: 100;
203
- }
204
- #sociable .popup {
205
- behavior: url('/wp-content/plugins/sociable/css/pie.htc');
206
- -moz-border-radius: 5px;
207
- -webkit-border-radius: 5px;
208
- -webkit-box-shadow: #999999 0px 0px 24px;
209
- border: 3px solid transparent;
210
- border-radius: 5px 5px 5px 5px;
211
- box-shadow: 0 0 7px #000000;
212
- position: relative;
213
- background: none repeat scroll 0 0 #FFFFFF;
214
- }
215
- #sociable .content {
216
- behavior: url('/wp-content/plugins/sociable/css/pie.htc');
217
- background: none repeat scroll 0 0 #FFFFFF;
218
- border-radius: 4px 4px 4px 4px;
219
- box-shadow: 0 0 7px #000000;
220
- display: table;
221
- padding: 10px;
222
- width: 370px;
223
- }
224
- #sociable .close {
225
- background: none repeat scroll 0 0 #FFFFFF;
226
- padding: 2px;
227
- position: absolute;
228
- right: 5px;
229
- top: 5px;
230
- }
231
- #sociable .close img {
232
- opacity: 0.3;
233
- }
234
-
235
- #sociable img {
236
- border: 0 none;
237
- margin: 0;
238
- }
239
- #sociable .close{
240
- background: none repeat scroll 0 0 #FFFFFF;
241
- padding: 2px;
242
- position: absolute;
243
- right: 5px;
244
- top: 5px;
245
- }
246
- .share_buttons{
247
- list-style:none;
248
- }
249
- .share_buttons li{
250
- float:left;
251
- }
252
-
253
- .clearfix:after {
254
- visibility: hidden;
255
- display: block;
256
- font-size: 0;
257
- content: " ";
258
- clear: both;
259
- height: 0;
260
- }
 
1
+ div.sociable { /*margin: 8px 0;*/}
2
+
3
+ li div#___plusone_0 {
4
+ float:right !important;
5
+ width:60px !important;
6
+ }
7
+ li#Google_p div {
8
+ float:right !important;
9
+ width:60px !important;
10
+ }
11
+ /*
12
+ #___plusone_2{
13
+ float:right !important;
14
+ width:60px !important;
15
+ }
16
+ #___plusone_3 {
17
+ float:right !important;
18
+ width:60px !important;
19
+ }
20
+ #___plusone_4 {
21
+ float:right !important;
22
+ width:60px !important;
23
+ }
24
+ #___plusone_5 {
25
+ float:right !important;
26
+ width:60px !important;
27
+ }
28
+ #___plusone_6 {
29
+ float:right !important;
30
+ width:60px !important;
31
+ }
32
+ #___plusone_7 {
33
+ float:right !important;
34
+ width:60px !important;
35
+ }
36
+ #___plusone_8 {
37
+ float:right !important;
38
+ width:60px !important;
39
+ }
40
+ */
41
+
42
+ div.sociable li#Twitter_Counter iframe{
43
+ width:100px !important;
44
+ }
45
+
46
+ #Digg_Counter{
47
+ width:80px !important;
48
+
49
+ }
50
+ #Facebook_Counter iframe{
51
+
52
+ width:76px !important;
53
+ }
54
+
55
+ span.sociable_tagline { position: relative; }
56
+ span.sociable_tagline span { display: none; width: 14em; }
57
+ span.sociable_tagline:hover span {
58
+ position: absolute;
59
+ display: block;
60
+ top: -5em;
61
+ background: #ffe;
62
+ border: 1px solid #ccc;
63
+ color: black;
64
+ line-height: 1.25em;
65
+ }
66
+ .sociable span {
67
+ display: block;
68
+ }
69
+ .sociable ul {
70
+ display: block;
71
+ margin: 0 !important;
72
+ padding: 0 !important;
73
+ }
74
+ .sociable ul li {
75
+ background: none;
76
+ display: inline !important;
77
+ list-style-type: none;
78
+ margin: 0;
79
+ padding: 3px;
80
+ float:left;
81
+ }
82
+ .sociable ul li:before { content: ""; }
83
+ .sociable img {
84
+ float: none;
85
+
86
+ border: 0;
87
+ margin: 0;
88
+ padding: 0;
89
+ }
90
+
91
+ .sociable-hovers {
92
+ opacity: .4;
93
+ -moz-opacity: .4;
94
+ filter: alpha(opacity=40);
95
+ }
96
+ .sociable-hovers:hover {
97
+ opacity: 1;
98
+ -moz-opacity: 1;
99
+ filter: alpha(opacity=100);
100
+ }
101
+
102
+ .soc_clear{
103
+ clear:both;
104
+ }
105
+
106
+
107
+ .option1_32{
108
+ background:url("../images/sprites/option1_32.png") no-repeat scroll;
109
+ display: block;float: left;height: 32px;width: 32px;
110
+ }
111
+ .option1_16{
112
+ background:url("../images/sprites/option1_16.png") no-repeat scroll;
113
+ display: block;float: left;height: 16px;width: 16px;
114
+ }
115
+ .option1_64{
116
+ background:url("../images/sprites/option1_64.png") no-repeat scroll;
117
+ display: block;float: left;height: 64px;width: 64px;
118
+ }
119
+ .option1_48{
120
+ background:url("../images/sprites/option1_48.png") no-repeat scroll;
121
+ display: block;float: left;height: 48px;width: 48px;
122
+ }
123
+
124
+
125
+ .option2_32{
126
+ background:url("../images/sprites/option2_32.png") no-repeat scroll;
127
+ display: block;float: left;height: 32px;width: 32px;
128
+ }
129
+ .option2_16{
130
+ background:url("../images/sprites/option2_16.png") no-repeat scroll;
131
+ display: block;float: left;height: 16px;width: 16px;
132
+ }
133
+ .option2_64{
134
+ background:url("../images/sprites/option2_64.png") no-repeat scroll;
135
+ display: block;float: left;height: 64px;width: 64px;
136
+ }
137
+ .option2_48{
138
+ background:url("/wp-content/plugins/sociable/images/sprites/option2_48.png") no-repeat scroll;
139
+ display: block;float: left;height: 48px;width: 48px;
140
+ }
141
+
142
+
143
+ .option3_32{
144
+ background:url("../images/sprites/option3_32.png") no-repeat scroll;
145
+ display: block;float: left;height: 32px;width: 32px;
146
+ }
147
+ .option3_16{
148
+ background:url("../images/sprites/option3_16.png") no-repeat scroll;
149
+ display: block;float: left;height: 16px;width: 16px;
150
+ }
151
+ .option3_64{
152
+ background:url("../images/sprites/option3_64.png") no-repeat scroll;
153
+ display: block;float: left;height: 64px;width: 64px;
154
+ }
155
+ .option3_48{
156
+ background:url("../images/sprites/option3_48.png") no-repeat scroll;
157
+ display: block;float: left;height: 48px;width: 48px;
158
+ }
159
+
160
+
161
+ .option4_32{
162
+ background:url("../images/sprites/option4_32.png") no-repeat scroll;
163
+ display: block;float: left;height: 32px;width: 32px;
164
+ }
165
+ .option4_16{
166
+ background:url("../images/sprites/option4_16.png") no-repeat scroll;
167
+ display: block;float: left;height: 16px;width: 16px;
168
+ }
169
+ .option4_64{
170
+ background:url("../images/sprites/option4_64.png") no-repeat scroll;
171
+ display: block;float: left;height: 64px;width: 64px;
172
+ }
173
+ .option4_48{
174
+ background:url("../images/sprites/option4_48.png") no-repeat scroll;
175
+ display: block;float: left;height: 48px;width: 48px;
176
+ }
177
+
178
+
179
+ .option5_32{
180
+ background:url("../images/sprites/option5_32.png") no-repeat scroll;
181
+ display: block;float: left;height: 32px;width: 32px;
182
+ }
183
+ .option5_16{
184
+ background:url("../images/sprites/option5_16.png") no-repeat scroll;
185
+ display: block;float: left;height: 16px;width: 16px;
186
+ }
187
+ .option5_64{
188
+ background:url("../images/sprites/option5_64.png") no-repeat scroll;
189
+ display: block;float: left;height: 64px;width: 64px;
190
+ }
191
+
192
+ .option5_48{
193
+ background:url("../images/sprites/option5_48.png") no-repeat scroll;
194
+ display: block;float: left;height: 48px;width: 48px;
195
+ }
196
+
197
+
198
+ #sociable {
199
+ left: 0;
200
+ position: absolute;
201
+ text-align: left;
202
+ top: 0;
203
+ z-index: 100;
204
+ }
205
+ #sociable .popup {
206
+ behavior: url('/wp-content/plugins/sociable/css/pie.htc');
207
+ -moz-border-radius: 5px;
208
+ -webkit-border-radius: 5px;
209
+ -webkit-box-shadow: #999999 0px 0px 24px;
210
+ border: 3px solid transparent;
211
+ border-radius: 5px 5px 5px 5px;
212
+ box-shadow: 0 0 7px #000000;
213
+ position: relative;
214
+ background: none repeat scroll 0 0 #FFFFFF;
215
+ }
216
+ #sociable .content {
217
+ behavior: url('/wp-content/plugins/sociable/css/pie.htc');
218
+ background: none repeat scroll 0 0 #FFFFFF;
219
+ border-radius: 4px 4px 4px 4px;
220
+ box-shadow: 0 0 7px #000000;
221
+ display: table;
222
+ padding: 10px;
223
+ width: 370px;
224
+ }
225
+ #sociable .close {
226
+ background: none repeat scroll 0 0 #FFFFFF;
227
+ padding: 2px;
228
+ position: absolute;
229
+ right: 5px;
230
+ top: 5px;
231
+ }
232
+ #sociable .close img {
233
+ opacity: 0.3;
234
+ }
235
+
236
+ #sociable img {
237
+ border: 0 none;
238
+ margin: 0;
239
+ }
240
+ #sociable .close{
241
+ background: none repeat scroll 0 0 #FFFFFF;
242
+ padding: 2px;
243
+ position: absolute;
244
+ right: 5px;
245
+ top: 5px;
246
+ }
247
+ .share_buttons{
248
+ list-style:none;
249
+ }
250
+ .share_buttons li{
251
+ float:left;
252
+ }
253
+
254
+ .clearfix:after {
255
+ visibility: hidden;
256
+ display: block;
257
+ font-size: 0;
258
+ content: " ";
259
+ clear: both;
260
+ height: 0;
261
+ }
css/style-admin.css CHANGED
@@ -1,234 +1,234 @@
1
- .Main-Content{
2
- margin-left:10px;
3
- width:98%;
4
- border:SOLID 1PX #000000;
5
- font-family: Arial;
6
- }
7
-
8
- .Title-Blue{
9
- font-size:30px;
10
- color:#18305d;
11
- }
12
-
13
- .Title-Box{
14
- margin:0px 0px 0px 25px; padding:0px;
15
- Width:100%;
16
- }
17
-
18
- .Title-Box .Border-Left{
19
- background-image:url('../images/Title-Box-Border-Left.png');
20
- height:34px;
21
- width:10px;
22
- color:#ffffff;
23
- font-weight:bold;
24
- }
25
-
26
- .Title-Box .Border-Right{
27
- background-image:url('../images/Title-Box-Border-Right.png');
28
- height:34px;
29
- width:10px;
30
- }
31
-
32
- .Title-Box .BG-Middle{
33
- color:#ffffff;
34
- font-size:20px;
35
- background-color:#18305d;
36
- }
37
-
38
- .Content-Box{
39
- margin:0px;
40
- padding:0px;
41
- margin-left:25px;
42
-
43
- }
44
-
45
- .Content-Box .Live-Preview{
46
-
47
- padding-top:10px;
48
- padding-bottom:10px;
49
- color:#18305d;
50
- font-size:16px;
51
- margin-left:-19px;
52
- width:600px;
53
- background-color:#cccccc;
54
- text-indent:10px
55
- }
56
- .Content-Box .Post-TXT{
57
- padding-bottom:0px;
58
- color:#000000;
59
- font-size:15px;
60
-
61
- }
62
- .Content-Box .Post-subTXT{
63
- padding-top:5px;
64
- color:#666666;
65
- font-size:15px;
66
-
67
- }
68
-
69
- .Content-Box .ShareAndEnjoy {
70
- background-position:0px;
71
- background-image:url('../images/ShareAndEnjoy.png');
72
- background-repeat:no-repeat;
73
- height:80px;
74
- width:375px;
75
-
76
- }
77
-
78
- .Content-Box .Tagline-TXT{
79
- padding-top:5px;
80
- color:#666666;
81
- font-size:16px;
82
-
83
- }
84
- .Content-Box .Tagline-INPUT{
85
- color:#666666;
86
- width:380px;
87
- float:left;
88
- padding:5px;
89
- font-size:16px;
90
- border:solid 1px #666666;
91
- height:30px;
92
- }
93
-
94
- .Content-Box .ToSociable{
95
- color:#666666;
96
- float:left;
97
- margin-left:50px;
98
- float:left;
99
- font-size:16px;
100
- }
101
- .Content-Box .IconsToInclude-TXT{
102
- padding-top:5px;
103
- color:#666666;
104
- font-size:16px;
105
- /* background-color:#ffffff; */
106
- }
107
-
108
-
109
-
110
- .Content-Box .IconSize-Item{
111
- color:#666666;
112
- font-size:16px;
113
- margin-left:25px;
114
-
115
- }
116
- .Content-Box .IconStyle-Item IMG{
117
- margin-left:20px;
118
-
119
- }
120
-
121
-
122
- .Content-Box .Locations-TXT{
123
- padding-top:5px;
124
- color:#666666;
125
- margin-left:20px;
126
- font-size:16px;
127
- /* background-color:#ffffff; */
128
- }
129
- .Content-Box .Locations-List{
130
- width:100%;
131
- }
132
- .Content-Box .Locations-List .Title{
133
- width:250px;
134
- font-weight:bold;
135
- border-right:solid 1px #000000;
136
- font-family:arial;
137
- padding:7px;
138
- font-size:16px;
139
- }
140
- .Content-Box .Locations-List .Content{
141
- color:#666666;
142
- }
143
- .Content-Box .Locations-List .Content .TXT{
144
- font-size:16px;
145
- }
146
- .Content-Box .Locations-List .Content .sTXT{
147
- font-size:12px;
148
- font-style:italic;
149
- }
150
- .Locations-List td{
151
- padding:7px !important;
152
-
153
- }
154
-
155
- .GeneralOptions-List td{
156
- padding:7px !important;
157
-
158
- }
159
-
160
-
161
- .Content-Box .GeneralOptions-List{
162
- width:100%;
163
- }
164
- .Content-Box .GeneralOptions-List .Title{
165
- width:250px;
166
- font-weight:bold;
167
- border-right:solid 1px #000000;
168
- font-family:arial;
169
- padding:7px;
170
- font-size:16px;
171
- }
172
- .Content-Box .GeneralOptions-List .Content{
173
- color:#666666;
174
- }
175
- .Content-Box .GeneralOptions-List .Content .TXT{
176
- font-size:16px;
177
- }
178
- .Content-Box .GeneralOptions-List .Content .sTXT{
179
- font-size:12px;
180
- font-style:italic;
181
- }
182
- .Content-Box .GeneralOptions-List .Content INPUT{
183
- color:#666666;
184
- width:380px;
185
- float:left;
186
- padding:5px;
187
- font-size:16px;
188
- border:solid 1px #666666;
189
- height:30px;
190
- }
191
-
192
-
193
-
194
-
195
- .Content-Box #ActionsBar .SaveChanges{
196
- background-image:url('../images/save-button.png');
197
- background-position:0px;
198
- background-repeat:no-repeat;
199
- width:173px;
200
- height:49px;
201
- float:left;
202
-
203
- color:#ffffff;
204
- font-weight:bold;
205
- }
206
- .Content-Box #ActionsBar .ResetSociable{
207
- background-image:url('../images/reset-button.png');
208
- background-position:0px;
209
- background-repeat:no-repeat;
210
- width:173px;
211
- height:49px;
212
- float:left;
213
- color:#ffffff;
214
- font-weight:bold;
215
- }
216
- .Content-Box #ActionsBar .UninstallSociable{
217
- background-image:url('../images/uninstall-button.png');
218
- background-position:0px;
219
- background-repeat:no-repeat;
220
- width:235px;
221
- height:49px;
222
- float:left;
223
- color:#ffffff;
224
- font-weight:bold;
225
- }
226
-
227
-
228
-
229
-
230
-
231
-
232
-
233
-
234
-
1
+ .Main-Content{
2
+ margin-left:10px;
3
+ width:98%;
4
+ border:SOLID 1PX #000000;
5
+ font-family: Arial;
6
+ }
7
+
8
+ .Title-Blue{
9
+ font-size:30px;
10
+ color:#18305d;
11
+ }
12
+
13
+ .Title-Box{
14
+ margin:0px 0px 0px 25px; padding:0px;
15
+ Width:100%;
16
+ }
17
+
18
+ .Title-Box .Border-Left{
19
+ background-image:url('../images/Title-Box-Border-Left.png');
20
+ height:34px;
21
+ width:10px;
22
+ color:#ffffff;
23
+ font-weight:bold;
24
+ }
25
+
26
+ .Title-Box .Border-Right{
27
+ background-image:url('../images/Title-Box-Border-Right.png');
28
+ height:34px;
29
+ width:10px;
30
+ }
31
+
32
+ .Title-Box .BG-Middle{
33
+ color:#ffffff;
34
+ font-size:20px;
35
+ background-color:#18305d;
36
+ }
37
+
38
+ .Content-Box{
39
+ margin:0px;
40
+ padding:0px;
41
+ margin-left:25px;
42
+
43
+ }
44
+
45
+ .Content-Box .Live-Preview{
46
+
47
+ padding-top:10px;
48
+ padding-bottom:10px;
49
+ color:#18305d;
50
+ font-size:16px;
51
+ margin-left:-19px;
52
+ width:600px;
53
+ background-color:#cccccc;
54
+ text-indent:10px
55
+ }
56
+ .Content-Box .Post-TXT{
57
+ padding-bottom:0px;
58
+ color:#000000;
59
+ font-size:15px;
60
+
61
+ }
62
+ .Content-Box .Post-subTXT{
63
+ padding-top:5px;
64
+ color:#666666;
65
+ font-size:15px;
66
+
67
+ }
68
+
69
+ .Content-Box .ShareAndEnjoy {
70
+ background-position:0px;
71
+ background-image:url('../images/ShareAndEnjoy.png');
72
+ background-repeat:no-repeat;
73
+ height:80px;
74
+ width:375px;
75
+
76
+ }
77
+
78
+ .Content-Box .Tagline-TXT{
79
+ padding-top:5px;
80
+ color:#666666;
81
+ font-size:16px;
82
+
83
+ }
84
+ .Content-Box .Tagline-INPUT{
85
+ color:#666666;
86
+ width:380px;
87
+ float:left;
88
+ padding:5px;
89
+ font-size:16px;
90
+ border:solid 1px #666666;
91
+ height:30px;
92
+ }
93
+
94
+ .Content-Box .ToSociable{
95
+ color:#666666;
96
+ float:left;
97
+ margin-left:50px;
98
+ float:left;
99
+ font-size:16px;
100
+ }
101
+ .Content-Box .IconsToInclude-TXT{
102
+ padding-top:5px;
103
+ color:#666666;
104
+ font-size:16px;
105
+ /* background-color:#ffffff; */
106
+ }
107
+
108
+
109
+
110
+ .Content-Box .IconSize-Item{
111
+ color:#666666;
112
+ font-size:16px;
113
+ margin-left:25px;
114
+
115
+ }
116
+ .Content-Box .IconStyle-Item IMG{
117
+ margin-left:20px;
118
+
119
+ }
120
+
121
+
122
+ .Content-Box .Locations-TXT{
123
+ padding-top:5px;
124
+ color:#666666;
125
+ margin-left:20px;
126
+ font-size:16px;
127
+ /* background-color:#ffffff; */
128
+ }
129
+ .Content-Box .Locations-List{
130
+ width:100%;
131
+ }
132
+ .Content-Box .Locations-List .Title{
133
+ width:250px;
134
+ font-weight:bold;
135
+ border-right:solid 1px #000000;
136
+ font-family:arial;
137
+ padding:7px;
138
+ font-size:16px;
139
+ }
140
+ .Content-Box .Locations-List .Content{
141
+ color:#666666;
142
+ }
143
+ .Content-Box .Locations-List .Content .TXT{
144
+ font-size:16px;
145
+ }
146
+ .Content-Box .Locations-List .Content .sTXT{
147
+ font-size:12px;
148
+ font-style:italic;
149
+ }
150
+ .Locations-List td{
151
+ padding:7px !important;
152
+
153
+ }
154
+
155
+ .GeneralOptions-List td{
156
+ padding:7px !important;
157
+
158
+ }
159
+
160
+
161
+ .Content-Box .GeneralOptions-List{
162
+ width:100%;
163
+ }
164
+ .Content-Box .GeneralOptions-List .Title{
165
+ width:250px;
166
+ font-weight:bold;
167
+ border-right:solid 1px #000000;
168
+ font-family:arial;
169
+ padding:7px;
170
+ font-size:16px;
171
+ }
172
+ .Content-Box .GeneralOptions-List .Content{
173
+ color:#666666;
174
+ }
175
+ .Content-Box .GeneralOptions-List .Content .TXT{
176
+ font-size:16px;
177
+ }
178
+ .Content-Box .GeneralOptions-List .Content .sTXT{
179
+ font-size:12px;
180
+ font-style:italic;
181
+ }
182
+ .Content-Box .GeneralOptions-List .Content INPUT{
183
+ color:#666666;
184
+ width:380px;
185
+ float:left;
186
+ padding:5px;
187
+ font-size:16px;
188
+ border:solid 1px #666666;
189
+ height:30px;
190
+ }
191
+
192
+
193
+
194
+
195
+ .Content-Box #ActionsBar .SaveChanges{
196
+ background-image:url('../images/save-button.png');
197
+ background-position:0px;
198
+ background-repeat:no-repeat;
199
+ width:173px;
200
+ height:49px;
201
+ float:left;
202
+
203
+ color:#ffffff;
204
+ font-weight:bold;
205
+ }
206
+ .Content-Box #ActionsBar .ResetSociable{
207
+ background-image:url('../images/reset-button.png');
208
+ background-position:0px;
209
+ background-repeat:no-repeat;
210
+ width:173px;
211
+ height:49px;
212
+ float:left;
213
+ color:#ffffff;
214
+ font-weight:bold;
215
+ }
216
+ .Content-Box #ActionsBar .UninstallSociable{
217
+ background-image:url('../images/uninstall-button.png');
218
+ background-position:0px;
219
+ background-repeat:no-repeat;
220
+ width:235px;
221
+ height:49px;
222
+ float:left;
223
+ color:#ffffff;
224
+ font-weight:bold;
225
+ }
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
css/toolbar.css ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ .wpSocciableSmall-top{
3
+ background-image:url('../images/toolbar/slide-sociable-top.png');
4
+ width:62px;
5
+ height:17px;
6
+ background-repeat:no-repeat;
7
+ border-left:solid 0px #ffffff;
8
+ background-color:transparent;
9
+ cursor:pointer;
10
+ }
11
+ .wpSocciableSmall-top-c{
12
+ background-image:url('../images/toolbar/slide-sociable-top-c.png');
13
+ width:70px;
14
+ background-color:transparent;
15
+ height:20px;
16
+ border:solid 0px #ffffff;
17
+ border-bottom:0px;
18
+ cursor:pointer;
19
+ }
20
+
21
+ .wpSocciableSmall{
22
+ background-image:url('../images/toolbar/slide-sociable.png');
23
+ width:19px;
24
+ height:66px;
25
+ background-color:transparent;
26
+ margin-left:-19px;
27
+ /*width:30px;*/
28
+ /*height:104px;*/
29
+ /*margin-left:-27px;*/
30
+ position:absolute;
31
+ margin-top:120px;
32
+ cursor:pointer;
33
+ }
34
+
35
+
36
+ .wpSocciableSmall-c{
37
+ background-image:url('../images/toolbar/slide-sociable-c.png');
38
+ width:19px;
39
+ background-color:transparent;
40
+ height:66px;
41
+ margin-left:-18px;
42
+ position:absolute;
43
+ margin-top:120px;
44
+ cursor:pointer;
45
+ }
46
+ .wpSocciableBig{
47
+ background-image:url('../images/toolbar/slide-sociableBig.png');
48
+ width:30px;
49
+ background-color:transparent;
50
+ height:104px;
51
+ margin-left:-19px;
52
+ position:absolute;
53
+ margin-top:120px;
54
+ cursor:pointer;
55
+ }
56
+
57
+ .wpSocciableBig-c{
58
+ background-image:url('../images/toolbar/slide-sociableBig-c.png');
59
+ width:30px;
60
+ height:104px;
61
+ background-color:transparent;
62
+ margin-left:-19px;
63
+ position:absolute;
64
+ margin-top:120px;
65
+ cursor:pointer;
66
+ }
67
+ a{
68
+ text-decoration:none;
69
+ }
70
+
71
+ a:hover{
72
+ text-decoration:underline;
73
+ }
74
+ ul.toolbar{
75
+ margin:0px;
76
+ padding:0px;
77
+ list-style:none;
78
+ font-family:arial;
79
+ letter-spacing:-1.3px;
80
+ font-weight:bold;
81
+
82
+ }
83
+ ul.toolbar li{
84
+ margin:0px;
85
+ padding:0px;
86
+ }
87
+ .wpPlugin-MainFrame{
88
+ }
89
+
90
+ ul.toolbar li.item div{
91
+ margin:0px;
92
+ padding:0px;
93
+ }
94
+ ul.toolbar li.item div.title{
95
+ padding-top:2px;
96
+ padding-bottom:2px;
97
+ padding-left:2px;
98
+ cursor:pointer;
99
+ margin-bottom:2px;
100
+ }
101
+ ul.toolbar li.item div.boxTitle{ }
102
+
103
+ ul.toolbar li.item div.boxTitleContent{
104
+ padding-top:5px;
105
+ padding-bottom:5px;
106
+ padding-right:5px;
107
+ }
108
+
109
+
110
+
111
+ ul.toolbar li.item div.content{
112
+ margin-bottom:5px;
113
+
114
+ }
115
+
116
+
117
+ ul.toolbar li.item div.title img{
118
+ float:right;
119
+ }
120
+
121
+ ul.toolbar li div img{
122
+ margin:1px;
123
+ padding:0px;
124
+ }
125
+ .boxDialog{
126
+ letter-spacing:0px;
127
+ background:transparent;
128
+ margin:0px;
129
+ padding:0px;
130
+ position:absolute;
131
+
132
+ }
debig_output.txt CHANGED
@@ -1,267 +1,267 @@
1
- This Text File Contains All The Gathered Data On Conditionals.
2
-
3
- On of the problems I found while rewriting this plugin was that in different situations some conditional tags were firing,
4
- this meant that the function to output the sociable links was being skewed. So I wrote a small function to test for most of the conditional tags in wordpress and
5
- report the reults.
6
-
7
- Here Are My Findings.
8
-
9
- Wordpress 3.2 RC2
10
-
11
- Home Page - Front Page Displays set to "Your Latest Posts"
12
- Array
13
- (
14
- [is_home] => TRUE
15
- [is_front_page] => TRUE
16
- [is_single] => FALSE
17
- [is_page] => FALSE
18
- [is_date] => FALSE
19
- [is_year] => FALSE
20
- [is_month] => FALSE
21
- [is_day] => FALSE
22
- [is_time] => FALSE
23
- [is_category] => FALSE
24
- [is_tag] => FALSE
25
- [is_tax] => FALSE
26
- [is_author] => FALSE
27
- [is_search] => FALSE
28
- [is_404] => FALSE
29
- [is_paged] => FALSE
30
- [is_attachment] => FALSE
31
- [is_singular] => FALSE
32
- [is_trackback] => FALSE
33
- [is_post_type_archive] => FALSE
34
- )
35
-
36
- Home Page - Front Page Displays set to A Page
37
- Array
38
- (
39
- [is_home] => FALSE
40
- [is_front_page] => TRUE
41
- [is_single] => FALSE
42
- [is_page] => TRUE
43
- [is_date] => FALSE
44
- [is_year] => FALSE
45
- [is_month] => FALSE
46
- [is_day] => FALSE
47
- [is_time] => FALSE
48
- [is_category] => FALSE
49
- [is_tag] => FALSE
50
- [is_tax] => FALSE
51
- [is_author] => FALSE
52
- [is_search] => FALSE
53
- [is_404] => FALSE
54
- [is_paged] => FALSE
55
- [is_attachment] => FALSE
56
- [is_singular] => TRUE
57
- [is_trackback] => FALSE
58
- [is_post_type_archive] => FALSE
59
- )
60
-
61
- Main Posts Page - With Front Page Set To A Page
62
- Array
63
- (
64
- [is_home] => TRUE
65
- [is_front_page] => FALSE
66
- [is_single] => FALSE
67
- [is_page] => FALSE
68
- [is_date] => FALSE
69
- [is_year] => FALSE
70
- [is_month] => FALSE
71
- [is_day] => FALSE
72
- [is_time] => FALSE
73
- [is_category] => FALSE
74
- [is_tag] => FALSE
75
- [is_tax] => FALSE
76
- [is_author] => FALSE
77
- [is_search] => FALSE
78
- [is_404] => FALSE
79
- [is_paged] => FALSE
80
- [is_attachment] => FALSE
81
- [is_singular] => FALSE
82
- [is_trackback] => FALSE
83
- [is_post_type_archive] => FALSE
84
- )
85
-
86
- Category Archives
87
- Array
88
- (
89
- [is_home] => FALSE
90
- [is_front_page] => FALSE
91
- [is_single] => FALSE
92
- [is_page] => FALSE
93
- [is_date] => FALSE
94
- [is_year] => FALSE
95
- [is_month] => FALSE
96
- [is_day] => FALSE
97
- [is_time] => FALSE
98
- [is_category] => TRUE
99
- [is_tag] => FALSE
100
- [is_tax] => FALSE
101
- [is_author] => FALSE
102
- [is_search] => FALSE
103
- [is_404] => FALSE
104
- [is_paged] => FALSE
105
- [is_attachment] => FALSE
106
- [is_singular] => FALSE
107
- [is_trackback] => FALSE
108
- [is_archive] => TRUE
109
- [is_post_type_archive] => FALSE
110
- )
111
-
112
- Tag Archive
113
- Array
114
- (
115
- [is_home] => FALSE
116
- [is_front_page] => FALSE
117
- [is_single] => FALSE
118
- [is_page] => FALSE
119
- [is_date] => FALSE
120
- [is_year] => FALSE
121
- [is_month] => FALSE
122
- [is_day] => FALSE
123
- [is_time] => FALSE
124
- [is_category] => FALSE
125
- [is_tag] => TRUE
126
- [is_tax] => FALSE
127
- [is_author] => FALSE
128
- [is_search] => FALSE
129
- [is_404] => FALSE
130
- [is_paged] => FALSE
131
- [is_attachment] => FALSE
132
- [is_singular] => FALSE
133
- [is_trackback] => FALSE
134
- [is_archive] => TRUE
135
- [is_post_type_archive] => FALSE
136
- )
137
-
138
- Monthly Archive
139
- Array
140
- (
141
- [is_home] => FALSE
142
- [is_front_page] => FALSE
143
- [is_single] => FALSE
144
- [is_page] => FALSE
145
- [is_date] => TRUE
146
- [is_year] => FALSE
147
- [is_month] => TRUE
148
- [is_day] => FALSE
149
- [is_time] => FALSE
150
- [is_category] => FALSE
151
- [is_tag] => FALSE
152
- [is_tax] => FALSE
153
- [is_author] => FALSE
154
- [is_search] => FALSE
155
- [is_404] => FALSE
156
- [is_paged] => FALSE
157
- [is_attachment] => FALSE
158
- [is_singular] => FALSE
159
- [is_trackback] => FALSE
160
- [is_archive] => TRUE
161
- [is_post_type_archive] => FALSE
162
- )
163
-
164
-
165
- Post Type Archive
166
- Array
167
- (
168
- [is_home] => FALSE
169
- [is_front_page] => FALSE
170
- [is_single] => FALSE
171
- [is_page] => FALSE
172
- [is_date] => FALSE
173
- [is_year] => FALSE
174
- [is_month] => FALSE
175
- [is_day] => FALSE
176
- [is_time] => FALSE
177
- [is_category] => FALSE
178
- [is_tag] => FALSE
179
- [is_tax] => FALSE
180
- [is_author] => FALSE
181
- [is_search] => FALSE
182
- [is_404] => FALSE
183
- [is_paged] => FALSE
184
- [is_attachment] => FALSE
185
- [is_singular] => FALSE
186
- [is_trackback] => FALSE
187
- [is_archive] => TRUE
188
- [is_post_type_archive] => TRUE
189
- )
190
-
191
- Search Results
192
- Array
193
- (
194
- [is_home] => FALSE
195
- [is_front_page] => FALSE
196
- [is_single] => FALSE
197
- [is_page] => FALSE
198
- [is_date] => FALSE
199
- [is_year] => FALSE
200
- [is_month] => FALSE
201
- [is_day] => FALSE
202
- [is_time] => FALSE
203
- [is_category] => FALSE
204
- [is_tag] => FALSE
205
- [is_tax] => FALSE
206
- [is_author] => FALSE
207
- [is_search] => TRUE
208
- [is_404] => FALSE
209
- [is_paged] => FALSE
210
- [is_attachment] => FALSE
211
- [is_singular] => FALSE
212
- [is_trackback] => FALSE
213
- [is_archive] => FALSE
214
- [is_post_type_archive] => FALSE
215
- )
216
-
217
- Taxonomy Archive
218
- Array
219
- (
220
- [is_home] => FALSE
221
- [is_front_page] => FALSE
222
- [is_single] => FALSE
223
- [is_page] => FALSE
224
- [is_date] => FALSE
225
- [is_year] => FALSE
226
- [is_month] => FALSE
227
- [is_day] => FALSE
228
- [is_time] => FALSE
229
- [is_category] => FALSE
230
- [is_tag] => FALSE
231
- [is_tax] => TRUE
232
- [is_author] => FALSE
233
- [is_search] => FALSE
234
- [is_404] => FALSE
235
- [is_paged] => FALSE
236
- [is_attachment] => FALSE
237
- [is_singular] => FALSE
238
- [is_trackback] => FALSE
239
- [is_archive] => TRUE
240
- [is_post_type_archive] => FALSE
241
- )
242
-
243
- Single Post Type:
244
- Array
245
- (
246
- [is_home] => FALSE
247
- [is_front_page] => FALSE
248
- [is_single] => TRUE
249
- [is_page] => FALSE
250
- [is_date] => FALSE
251
- [is_year] => FALSE
252
- [is_month] => FALSE
253
- [is_day] => FALSE
254
- [is_time] => FALSE
255
- [is_category] => FALSE
256
- [is_tag] => FALSE
257
- [is_tax] => FALSE
258
- [is_author] => FALSE
259
- [is_search] => FALSE
260
- [is_404] => FALSE
261
- [is_paged] => FALSE
262
- [is_attachment] => FALSE
263
- [is_singular] => TRUE
264
- [is_trackback] => FALSE
265
- [is_archive] => FALSE
266
- [is_post_type_archive] => FALSE
267
  )
1
+ This Text File Contains All The Gathered Data On Conditionals.
2
+
3
+ On of the problems I found while rewriting this plugin was that in different situations some conditional tags were firing,
4
+ this meant that the function to output the sociable links was being skewed. So I wrote a small function to test for most of the conditional tags in wordpress and
5
+ report the reults.
6
+
7
+ Here Are My Findings.
8
+
9
+ Wordpress 3.2 RC2
10
+
11
+ Home Page - Front Page Displays set to "Your Latest Posts"
12
+ Array
13
+ (
14
+ [is_home] => TRUE
15
+ [is_front_page] => TRUE
16
+ [is_single] => FALSE
17
+ [is_page] => FALSE
18
+ [is_date] => FALSE
19
+ [is_year] => FALSE
20
+ [is_month] => FALSE
21
+ [is_day] => FALSE
22
+ [is_time] => FALSE
23
+ [is_category] => FALSE
24
+ [is_tag] => FALSE
25
+ [is_tax] => FALSE
26
+ [is_author] => FALSE
27
+ [is_search] => FALSE
28
+ [is_404] => FALSE
29
+ [is_paged] => FALSE
30
+ [is_attachment] => FALSE
31
+ [is_singular] => FALSE
32
+ [is_trackback] => FALSE
33
+ [is_post_type_archive] => FALSE
34
+ )
35
+
36
+ Home Page - Front Page Displays set to A Page
37
+ Array
38
+ (
39
+ [is_home] => FALSE
40
+ [is_front_page] => TRUE
41
+ [is_single] => FALSE
42
+ [is_page] => TRUE
43
+ [is_date] => FALSE
44
+ [is_year] => FALSE
45
+ [is_month] => FALSE
46
+ [is_day] => FALSE
47
+ [is_time] => FALSE
48
+ [is_category] => FALSE
49
+ [is_tag] => FALSE
50
+ [is_tax] => FALSE
51
+ [is_author] => FALSE
52
+ [is_search] => FALSE
53
+ [is_404] => FALSE
54
+ [is_paged] => FALSE
55
+ [is_attachment] => FALSE
56
+ [is_singular] => TRUE
57
+ [is_trackback] => FALSE
58
+ [is_post_type_archive] => FALSE
59
+ )
60
+
61
+ Main Posts Page - With Front Page Set To A Page
62
+ Array
63
+ (
64
+ [is_home] => TRUE
65
+ [is_front_page] => FALSE
66
+ [is_single] => FALSE
67
+ [is_page] => FALSE
68
+ [is_date] => FALSE
69
+ [is_year] => FALSE
70
+ [is_month] => FALSE
71
+ [is_day] => FALSE
72
+ [is_time] => FALSE
73
+ [is_category] => FALSE
74
+ [is_tag] => FALSE
75
+ [is_tax] => FALSE
76
+ [is_author] => FALSE
77
+ [is_search] => FALSE
78
+ [is_404] => FALSE
79
+ [is_paged] => FALSE
80
+ [is_attachment] => FALSE
81
+ [is_singular] => FALSE
82
+ [is_trackback] => FALSE
83
+ [is_post_type_archive] => FALSE
84
+ )
85
+
86
+ Category Archives
87
+ Array
88
+ (
89
+ [is_home] => FALSE
90
+ [is_front_page] => FALSE
91
+ [is_single] => FALSE
92
+ [is_page] => FALSE
93
+ [is_date] => FALSE
94
+ [is_year] => FALSE
95
+ [is_month] => FALSE
96
+ [is_day] => FALSE
97
+ [is_time] => FALSE
98
+ [is_category] => TRUE
99
+ [is_tag] => FALSE
100
+ [is_tax] => FALSE
101
+ [is_author] => FALSE
102
+ [is_search] => FALSE
103
+ [is_404] => FALSE
104
+ [is_paged] => FALSE
105
+ [is_attachment] => FALSE
106
+ [is_singular] => FALSE
107
+ [is_trackback] => FALSE
108
+ [is_archive] => TRUE
109
+ [is_post_type_archive] => FALSE
110
+ )
111
+
112
+ Tag Archive
113
+ Array
114
+ (
115
+ [is_home] => FALSE
116
+ [is_front_page] => FALSE
117
+ [is_single] => FALSE
118
+ [is_page] => FALSE
119
+ [is_date] => FALSE
120
+ [is_year] => FALSE
121
+ [is_month] => FALSE
122
+ [is_day] => FALSE
123
+ [is_time] => FALSE
124
+ [is_category] => FALSE
125
+ [is_tag] => TRUE
126
+ [is_tax] => FALSE
127
+ [is_author] => FALSE
128
+ [is_search] => FALSE
129
+ [is_404] => FALSE
130
+ [is_paged] => FALSE
131
+ [is_attachment] => FALSE
132
+ [is_singular] => FALSE
133
+ [is_trackback] => FALSE
134
+ [is_archive] => TRUE
135
+ [is_post_type_archive] => FALSE
136
+ )
137
+
138
+ Monthly Archive
139
+ Array
140
+ (
141
+ [is_home] => FALSE
142
+ [is_front_page] => FALSE
143
+ [is_single] => FALSE
144
+ [is_page] => FALSE
145
+ [is_date] => TRUE
146
+ [is_year] => FALSE
147
+ [is_month] => TRUE
148
+ [is_day] => FALSE
149
+ [is_time] => FALSE
150
+ [is_category] => FALSE
151
+ [is_tag] => FALSE
152
+ [is_tax] => FALSE
153
+ [is_author] => FALSE
154
+ [is_search] => FALSE
155
+ [is_404] => FALSE
156
+ [is_paged] => FALSE
157
+ [is_attachment] => FALSE
158
+ [is_singular] => FALSE
159
+ [is_trackback] => FALSE
160
+ [is_archive] => TRUE
161
+ [is_post_type_archive] => FALSE
162
+ )
163
+
164
+
165
+ Post Type Archive
166
+ Array
167
+ (
168
+ [is_home] => FALSE
169
+ [is_front_page] => FALSE
170
+ [is_single] => FALSE
171
+ [is_page] => FALSE
172
+ [is_date] => FALSE
173
+ [is_year] => FALSE
174
+ [is_month] => FALSE
175
+ [is_day] => FALSE
176
+ [is_time] => FALSE
177
+ [is_category] => FALSE
178
+ [is_tag] => FALSE
179
+ [is_tax] => FALSE
180
+ [is_author] => FALSE
181
+ [is_search] => FALSE
182
+ [is_404] => FALSE
183
+ [is_paged] => FALSE
184
+ [is_attachment] => FALSE
185
+ [is_singular] => FALSE
186
+ [is_trackback] => FALSE
187
+ [is_archive] => TRUE
188
+ [is_post_type_archive] => TRUE
189
+ )
190
+
191
+ Search Results
192
+ Array
193
+ (
194
+ [is_home] => FALSE
195
+ [is_front_page] => FALSE
196
+ [is_single] => FALSE
197
+ [is_page] => FALSE
198
+ [is_date] => FALSE
199
+ [is_year] => FALSE
200
+ [is_month] => FALSE
201
+ [is_day] => FALSE
202
+ [is_time] => FALSE
203
+ [is_category] => FALSE
204
+ [is_tag] => FALSE
205
+ [is_tax] => FALSE
206
+ [is_author] => FALSE
207
+ [is_search] => TRUE
208
+ [is_404] => FALSE
209
+ [is_paged] => FALSE
210
+ [is_attachment] => FALSE
211
+ [is_singular] => FALSE
212
+ [is_trackback] => FALSE
213
+ [is_archive] => FALSE
214
+ [is_post_type_archive] => FALSE
215
+ )
216
+
217
+ Taxonomy Archive
218
+ Array
219
+ (
220
+ [is_home] => FALSE
221
+ [is_front_page] => FALSE
222
+ [is_single] => FALSE
223
+ [is_page] => FALSE
224
+ [is_date] => FALSE
225
+ [is_year] => FALSE
226
+ [is_month] => FALSE
227
+ [is_day] => FALSE
228
+ [is_time] => FALSE
229
+ [is_category] => FALSE
230
+ [is_tag] => FALSE
231
+ [is_tax] => TRUE
232
+ [is_author] => FALSE
233
+ [is_search] => FALSE
234
+ [is_404] => FALSE
235
+ [is_paged] => FALSE
236
+ [is_attachment] => FALSE
237
+ [is_singular] => FALSE
238
+ [is_trackback] => FALSE
239
+ [is_archive] => TRUE
240
+ [is_post_type_archive] => FALSE
241
+ )
242
+
243
+ Single Post Type:
244
+ Array
245
+ (
246
+ [is_home] => FALSE
247
+ [is_front_page] => FALSE
248
+ [is_single] => TRUE
249
+ [is_page] => FALSE
250
+ [is_date] => FALSE
251
+ [is_year] => FALSE
252
+ [is_month] => FALSE
253
+ [is_day] => FALSE
254
+ [is_time] => FALSE
255
+ [is_category] => FALSE
256
+ [is_tag] => FALSE
257
+ [is_tax] => FALSE
258
+ [is_author] => FALSE
259
+ [is_search] => FALSE
260
+ [is_404] => FALSE
261
+ [is_paged] => FALSE
262
+ [is_attachment] => FALSE
263
+ [is_singular] => TRUE
264
+ [is_trackback] => FALSE
265
+ [is_archive] => FALSE
266
+ [is_post_type_archive] => FALSE
267
  )
images/button_newsky.png ADDED
Binary file
images/button_sociabb.png ADDED
Binary file
images/customIcons/rss.png ADDED
Binary file
images/shape/shape-bottom-left.png ADDED
Binary file
images/shape/shape-bottom-right.png ADDED
Binary file
images/shape/shape-bottom.png ADDED
Binary file
images/shape/shape-left.png ADDED
Binary file
images/shape/shape-right.png ADDED
Binary file
images/shape/shape-top-left.png ADDED
Binary file
images/shape/shape-top-right.png ADDED
Binary file
images/shape/shape-top.png ADDED
Binary file
images/skyphoto.png ADDED
Binary file
images/socciable_old.png ADDED
Binary file
images/toolbar/arrow.png ADDED
Binary file
images/toolbar/arrow_s.png ADDED
Binary file
images/toolbar/envelope.png ADDED
Binary file
images/toolbar/f.png ADDED
Binary file
images/toolbar/fc.png ADDED
Binary file
images/toolbar/fv.png ADDED
Binary file
images/toolbar/g.png ADDED
Binary file
images/toolbar/gotohome.png ADDED
Binary file
images/toolbar/gototop.png ADDED
Binary file
images/toolbar/i.png ADDED
Binary file
images/toolbar/lc.png ADDED
Binary file
images/toolbar/n.png ADDED
Binary file
images/toolbar/o.png ADDED
Binary file
images/toolbar/rss.png ADDED
Binary file
images/toolbar/s.png ADDED
Binary file
images/toolbar/slide-sociable-c.png ADDED
Binary file
images/toolbar/slide-sociable-top-c.png ADDED
Binary file
images/toolbar/slide-sociable-top.png ADDED
Binary file
images/toolbar/slide-sociable.png ADDED
Binary file
images/toolbar/slide-sociableBig-c.png ADDED
Binary file
images/toolbar/slide-sociableBig.png ADDED
Binary file
images/toolbar/t.png ADDED
Binary file
images/toolbar/tc.png ADDED
Binary file
includes/async_request.php ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ require_once("../../../../wp-config.php");
3
+
4
+ global $skyscraper_options;
5
+
6
+ $url_shares = $_POST["link"];
7
+ $title_shared = $_POST["title"];
8
+
9
+ global $url_shares;
10
+ global $title_shared;
11
+
12
+ $display = true;
13
+
14
+ if (strpos($url_shares, "wp-admin") && !strpos($url_shares, "page=skyscraper_options")){
15
+
16
+ $display = false;
17
+ }
18
+
19
+ if ($display){
20
+
21
+ require_once("skyscraper_output.php");
22
+ auto_skyscraper('');
23
+ }
24
+ ?>
includes/class-Sociable_Globals.php CHANGED
@@ -1,668 +1,668 @@
1
- <?php
2
-
3
- /*
4
- * Global Arrays For The sociable Plugin.
5
- */
6
- class Sociable_Globals{
7
-
8
- function default_sites(){
9
-
10
- $sites = Array(
11
-
12
- 'BarraPunto' => Array(
13
- 'favicon' => 'barrapunto.png',
14
- 'url' => 'http://barrapunto.com/submit.pl?subj=TITLE&amp;story=PERMALINK',
15
- 'spriteCoordinates' => Array(1,1),
16
- ),
17
-
18
- 'Bitacoras.com' => Array(
19
- 'favicon' => 'bitacoras.png',
20
- 'url' => 'http://bitacoras.com/anotaciones/PERMALINK',
21
- 'spriteCoordinates' => Array(19,1),
22
- ),
23
-
24
- 'BlinkList' => Array(
25
- 'favicon' => 'blinklist.png',
26
- 'url' => 'http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=PERMALINK&amp;Title=TITLE',
27
- 'spriteCoordinates' => Array(37,1),
28
- 'supportsIframe' => false,
29
- ),
30
-
31
- 'blogmarks' => Array(
32
- 'favicon' => 'blogmarks.png',
33
- 'url' => 'http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=PERMALINK&amp;title=TITLE',
34
- 'spriteCoordinates' => Array(73,1),
35
- ),
36
-
37
- 'Blogosphere News' => Array(
38
- 'favicon' => 'blogospherenews.png',
39
- 'url' => 'http://www.blogospherenews.com/submit.php?url=PERMALINK&amp;title=TITLE',
40
- 'spriteCoordinates' => Array(91,1),
41
- ),
42
-
43
- 'blogtercimlap' => Array(
44
- 'favicon' => 'blogter.png',
45
- 'url' => 'http://cimlap.blogter.hu/index.php?action=suggest_link&amp;title=TITLE&amp;url=PERMALINK',
46
- 'spriteCoordinates' => Array(109,1),
47
- ),
48
-
49
- 'Faves' => Array(
50
- 'favicon' => 'bluedot.png',
51
- 'url' => 'http://faves.com/Authoring.aspx?u=PERMALINK&amp;title=TITLE',
52
- 'spriteCoordinates' => Array(127,1),
53
- ),
54
-
55
- 'connotea' => Array(
56
- 'favicon' => 'connotea.png',
57
- 'url' => 'http://www.connotea.org/addpopup?continue=confirm&amp;uri=PERMALINK&amp;title=TITLE&amp;description=EXCERPT',
58
- 'spriteCoordinates' => Array(163,1),
59
- ),
60
-
61
- 'Current' => Array(
62
- 'favicon' => 'current.png',
63
- 'url' => 'http://current.com/clipper.htm?url=PERMALINK&amp;title=TITLE',
64
- 'spriteCoordinates' => Array(181,1),
65
- ),
66
-
67
- 'del.icio.us' => Array(
68
- 'favicon' => 'delicious.png',
69
- 'url' => 'http://delicious.com/post?url=PERMALINK&amp;title=TITLE&amp;notes=EXCERPT',
70
- 'spriteCoordinates' => Array(199,1),
71
- ),
72
-
73
- 'Design Float' => Array(
74
- 'favicon' => 'designfloat.png',
75
- 'url' => 'http://www.designfloat.com/submit.php?url=PERMALINK&amp;title=TITLE',
76
- 'spriteCoordinates' => Array(217,1),
77
- ),
78
-
79
- 'Digg' => Array(
80
- 'favicon' => 'digg.png',
81
- 'url' => 'http://digg.com/submit?phase=2&amp;url=PERMALINK&amp;title=TITLE&amp;bodytext=EXCERPT',
82
- 'description' => 'Digg',
83
- 'spriteCoordinates' => Array(235,1),
84
- ),
85
-
86
- 'Diigo' => Array(
87
- 'favicon' => 'diigo.png',
88
- 'url' => 'http://www.diigo.com/post?url=PERMALINK&amp;title=TITLE',
89
- 'spriteCoordinates' => Array(253,1),
90
- ),
91
-
92
- 'DotNetKicks' => Array(
93
- 'favicon' => 'dotnetkicks.png',
94
- 'url' => 'http://www.dotnetkicks.com/kick/?url=PERMALINK&amp;title=TITLE',
95
- 'spriteCoordinates' => Array(271,1),
96
- ),
97
-
98
- 'DZone' => Array(
99
- 'favicon' => 'dzone.png',
100
- 'url' => 'http://www.dzone.com/links/add.html?url=PERMALINK&amp;title=TITLE',
101
- 'spriteCoordinates' => Array(289,1),
102
- ),
103
-
104
- 'eKudos' => Array(
105
- 'favicon' => 'ekudos.png',
106
- 'url' => 'http://www.ekudos.nl/artikel/nieuw?url=PERMALINK&amp;title=TITLE&amp;desc=EXCERPT',
107
- 'spriteCoordinates' => Array(307,1),
108
- ),
109
-
110
- 'email' => Array(
111
- 'favicon' => 'email_link.png',
112
- 'url' => 'mailto:?subject=TITLE&amp;body=PERMALINK',
113
- 'spriteCoordinates' => Array(325,1),
114
- 'supportsIframe' => false,
115
- ),
116
-
117
- 'Facebook' => Array(
118
- 'favicon' => 'facebook.png',
119
- 'url' => 'http://www.facebook.com/share.php?u=PERMALINK&amp;t=TITLE',
120
- 'spriteCoordinates' => Array(343,1),
121
- ),
122
-
123
- 'Fark' => Array(
124
- 'favicon' => 'fark.png',
125
- 'url' => 'http://cgi.fark.com/cgi/fark/farkit.pl?h=TITLE&amp;u=PERMALINK',
126
- 'spriteCoordinates' => Array(1,19),
127
- ),
128
-
129
- 'Fleck' => Array(
130
- 'favicon' => 'fleck.png',
131
- 'url' => 'http://beta3.fleck.com/bookmarklet.php?url=PERMALINK&amp;title=TITLE',
132
- 'spriteCoordinates' => Array(19,19),
133
- ),
134
-
135
- 'FriendFeed' => Array(
136
- 'favicon' => 'friendfeed.png',
137
- 'url' => 'http://www.friendfeed.com/share?title=TITLE&amp;link=PERMALINK',
138
- 'spriteCoordinates' => Array(37,19),
139
- ),
140
-
141
- 'FSDaily' => Array(
142
- 'favicon' => 'fsdaily.png',
143
- 'url' => 'http://www.fsdaily.com/submit?url=PERMALINK&amp;title=TITLE',
144
- 'spriteCoordinates' => Array(55,19),
145
- ),
146
-
147
- 'Global Grind' => Array (
148
- 'favicon' => 'globalgrind.png',
149
- 'url' => 'http://globalgrind.com/submission/submit.aspx?url=PERMALINK&amp;type=Article&amp;title=TITLE',
150
- 'spriteCoordinates' => Array(73,19),
151
- ),
152
-
153
- 'Google' => Array (
154
- 'favicon' => 'googlebookmark.png',
155
- 'url' => 'http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=PERMALINK&amp;title=TITLE&amp;annotation=EXCERPT',
156
- 'description' => 'Google Bookmarks',
157
- 'spriteCoordinates' => Array(91,19),
158
- ),
159
-
160
- 'Gwar' => Array(
161
- 'favicon' => 'gwar.png',
162
- 'url' => 'http://www.gwar.pl/DodajGwar.html?u=PERMALINK',
163
- 'spriteCoordinates' => Array(109,19),
164
- 'supportsIframe' => false,
165
- ),
166
-
167
- 'HackerNews' => Array(
168
- 'favicon' => 'hackernews.png',
169
- 'url' => 'http://news.ycombinator.com/submitlink?u=PERMALINK&amp;t=TITLE',
170
- 'spriteCoordinates' => Array(127,19),
171
- ),
172
-
173
- 'Haohao' => Array(
174
- 'favicon' => 'haohao.png',
175
- 'url' => 'http://www.haohaoreport.com/submit.php?url=PERMALINK&amp;title=TITLE',
176
- 'spriteCoordinates' => Array(145,19),
177
- ),
178
-
179
- 'HealthRanker' => Array(
180
- 'favicon' => 'healthranker.png',
181
- 'url' => 'http://healthranker.com/submit.php?url=PERMALINK&amp;title=TITLE',
182
- 'spriteCoordinates' => Array(163,19),
183
- ),
184
-
185
- 'HelloTxt' => Array(
186
- 'favicon' => 'hellotxt.png',
187
- 'url' => 'http://hellotxt.com/?status=TITLE+PERMALINK',
188
- 'spriteCoordinates' => Array(181,19),
189
- ),
190
-
191
- 'Hemidemi' => Array(
192
- 'favicon' => 'hemidemi.png',
193
- 'url' => 'http://www.hemidemi.com/user_bookmark/new?title=TITLE&amp;url=PERMALINK',
194
- 'spriteCoordinates' => Array(199,19),
195
- ),
196
-
197
- 'Hyves' => Array(
198
- 'favicon' => 'hyves.png',
199
- 'url' => 'http://www.hyves.nl/profilemanage/add/tips/?name=TITLE&amp;text=EXCERPT+PERMALINK&amp;rating=5',
200
- 'spriteCoordinates' => Array(217,19),
201
- ),
202
-
203
- 'Identi.ca' => Array(
204
- 'favicon' => 'identica.png',
205
- 'url' => 'http://identi.ca/notice/new?status_textarea=PERMALINK',
206
- 'spriteCoordinates' => Array(235,19),
207
- 'supportsIframe' => false,
208
- ),
209
-
210
- 'IndianPad' => Array(
211
- 'favicon' => 'indianpad.png',
212
- 'url' => 'http://www.indianpad.com/submit.php?url=PERMALINK',
213
- 'spriteCoordinates' => Array(253,19),
214
- ),
215
-
216
- 'Internetmedia' => Array(
217
- 'favicon' => 'im.png',
218
- 'url' => 'http://internetmedia.hu/submit.php?url=PERMALINK',
219
- 'spriteCoordinates' => Array(271,19),
220
- ),
221
-
222
- 'Kirtsy' => Array(
223
- 'favicon' => 'kirtsy.png',
224
- 'url' => 'http://www.kirtsy.com/submit.php?url=PERMALINK&amp;title=TITLE',
225
- 'spriteCoordinates' => Array(289,19),
226
- ),
227
-
228
- 'laaik.it' => Array(
229
- 'favicon' => 'laaikit.png',
230
- 'url' => 'http://laaik.it/NewStoryCompact.aspx?uri=PERMALINK&amp;headline=TITLE&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12',
231
- 'spriteCoordinates' => Array(307,19),
232
- ),
233
-
234
- 'LinkArena' => Array(
235
- 'favicon' => 'linkarena.png',
236
- 'url' => 'http://linkarena.com/bookmarks/addlink/?url=PERMALINK&amp;title=TITLE',
237
- 'spriteCoordinates' => Array(325,19),
238
- ),
239
-
240
- 'LinkaGoGo' => Array(
241
- 'favicon' => 'linkagogo.png',
242
- 'url' => 'http://www.linkagogo.com/go/AddNoPopup?url=PERMALINK&amp;title=TITLE',
243
- 'spriteCoordinates' => Array(343,19),
244
- ),
245
-
246
- 'LinkedIn' => Array(
247
- 'favicon' => 'linkedin.png',
248
- 'url' => 'http://www.linkedin.com/shareArticle?mini=true&amp;url=PERMALINK&amp;title=TITLE&amp;source=BLOGNAME&amp;summary=EXCERPT',
249
- 'spriteCoordinates' => Array(1,37),
250
- ),
251
-
252
- 'Linkter' => Array(
253
- 'favicon' => 'linkter.png',
254
- 'url' => 'http://www.linkter.hu/index.php?action=suggest_link&amp;url=PERMALINK&amp;title=TITLE',
255
- 'spriteCoordinates' => Array(19,37),
256
- ),
257
-
258
- 'Live' => Array(
259
- 'favicon' => 'live.png',
260
- 'url' => 'https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=PERMALINK&amp;title=TITLE',
261
- 'spriteCoordinates' => Array(37,37),
262
- ),
263
-
264
- 'Meneame' => Array(
265
- 'favicon' => 'meneame.png',
266
- 'url' => 'http://meneame.net/submit.php?url=PERMALINK',
267
- 'spriteCoordinates' => Array(55,37),
268
- 'supportsIframe' => false,
269
- ),
270
-
271
- 'MisterWong' => Array(
272
- 'favicon' => 'misterwong.png',
273
- 'url' => 'http://www.mister-wong.com/addurl/?bm_url=PERMALINK&amp;bm_description=TITLE&amp;plugin=soc',
274
- 'spriteCoordinates' => Array(73,37),
275
- ),
276
-
277
- 'MisterWong.DE' => Array(
278
- 'favicon' => 'misterwong.png',
279
- 'url' => 'http://www.mister-wong.de/addurl/?bm_url=PERMALINK&amp;bm_description=TITLE&amp;plugin=soc',
280
- 'spriteCoordinates' => Array(73,37),
281
- ),
282
-
283
- 'Mixx' => Array(
284
- 'favicon' => 'mixx.png',
285
- 'url' => 'http://www.mixx.com/submit?page_url=PERMALINK&amp;title=TITLE',
286
- 'spriteCoordinates' => Array(91,37),
287
- ),
288
-
289
- 'muti' => Array(
290
- 'favicon' => 'muti.png',
291
- 'url' => 'http://www.muti.co.za/submit?url=PERMALINK&amp;title=TITLE',
292
- 'spriteCoordinates' => Array(109,37),
293
- ),
294
-
295
- 'MyShare' => Array(
296
- 'favicon' => 'myshare.png',
297
- 'url' => 'http://myshare.url.com.tw/index.php?func=newurl&amp;url=PERMALINK&amp;desc=TITLE',
298
- 'spriteCoordinates' => Array(127,37),
299
- ),
300
-
301
- 'MySpace' => Array(
302
- 'favicon' => 'myspace.png',
303
- 'url' => 'http://www.myspace.com/Modules/PostTo/Pages/?u=PERMALINK&amp;t=TITLE',
304
- 'spriteCoordinates' => Array(145,37)
305
- ),
306
-
307
- 'MSNReporter' => Array(
308
- 'favicon' => 'msnreporter.png',
309
- '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',
310
- 'description' => 'MSN Reporter',
311
- 'spriteCoordinates' => Array(163,37),
312
- ),
313
-
314
- 'N4G' => Array(
315
- 'favicon' => 'n4g.png',
316
- 'url' => 'http://www.n4g.com/tips.aspx?url=PERMALINK&amp;title=TITLE',
317
- 'spriteCoordinates' => Array(181,37),
318
- ),
319
-
320
- 'Netvibes' => Array(
321
- 'favicon' => 'netvibes.png',
322
- 'url' => 'http://www.netvibes.com/share?title=TITLE&amp;url=PERMALINK',
323
- 'spriteCoordinates' => Array(199,37),
324
- ),
325
-
326
- 'NewsVine' => Array(
327
- 'favicon' => 'newsvine.png',
328
- 'url' => 'http://www.newsvine.com/_tools/seed&amp;save?u=PERMALINK&amp;h=TITLE',
329
- 'spriteCoordinates' => Array(217,37),
330
- ),
331
-
332
- 'Netvouz' => Array(
333
- 'favicon' => 'netvouz.png',
334
- 'url' => 'http://www.netvouz.com/action/submitBookmark?url=PERMALINK&amp;title=TITLE&amp;popup=no',
335
- 'spriteCoordinates' => Array(235,37),
336
- ),
337
-
338
- 'NuJIJ' => Array(
339
- 'favicon' => 'nujij.png',
340
- 'url' => 'http://nujij.nl/jij.lynkx?t=TITLE&amp;u=PERMALINK&amp;b=EXCERPT',
341
- 'spriteCoordinates' => Array(253,37),
342
- ),
343
-
344
- 'Ping.fm' => Array(
345
- 'favicon' => 'ping.png',
346
- 'url' => 'http://ping.fm/ref/?link=PERMALINK&amp;title=TITLE&amp;body=EXCERPT',
347
- 'spriteCoordinates' => Array(271,37),
348
- ),
349
-
350
- 'Posterous' => Array(
351
- 'favicon' => 'posterous.png',
352
- 'url' => 'http://posterous.com/share?linkto=PERMALINK&amp;title=TITLE&amp;selection=EXCERPT',
353
- 'spriteCoordinates' => Array(289,37),
354
- ),
355
-
356
- 'PDF' => Array(
357
- 'favicon' => 'pdf.png',
358
- 'url' => 'http://www.printfriendly.com/print?url=PERMALINK&amp;partner=sociable',
359
- 'spriteCoordinates' => Array(325,37),
360
- ),
361
-
362
- 'Print' => Array(
363
- 'favicon' => 'printfriendly.png',
364
- 'url' => 'http://www.printfriendly.com/print?url=PERMALINK&amp;partner=sociable',
365
- 'spriteCoordinates' => Array(343,37),
366
- ),
367
-
368
- 'Propeller' => Array(
369
- 'favicon' => 'propeller.png',
370
- 'url' => 'http://www.propeller.com/submit/?url=PERMALINK',
371
- 'spriteCoordinates' => Array(1,55),
372
- ),
373
-
374
- 'Ratimarks' => Array(
375
- 'favicon' => 'ratimarks.png',
376
- 'url' => 'http://ratimarks.org/bookmarks.php/?action=add&address=PERMALINK&amp;title=TITLE',
377
- 'spriteCoordinates' => Array(19,55),
378
- ),
379
-
380
- 'Rec6' => Array(
381
- 'favicon' => 'rec6.png',
382
- 'url' => 'http://rec6.via6.com/link.php?url=PERMALINK&amp;=TITLE',
383
- 'spriteCoordinates' => Array(37,55),
384
- ),
385
-
386
- 'Reddit' => Array(
387
- 'favicon' => 'reddit.png',
388
- 'url' => 'http://reddit.com/submit?url=PERMALINK&amp;title=TITLE',
389
- 'spriteCoordinates' => Array(55,55),
390
- ),
391
-
392
- 'RSS' => Array(
393
- 'favicon' => 'rss.png',
394
- 'url' => 'FEEDLINK',
395
- 'spriteCoordinates' => Array(73,55),
396
- ),
397
-
398
- 'Scoopeo' => Array(
399
- 'favicon' => 'scoopeo.png',
400
- 'url' => 'http://www.scoopeo.com/scoop/new?newurl=PERMALINK&amp;title=TITLE',
401
- 'spriteCoordinates' => Array(91,55),
402
- ),
403
-
404
- 'Segnalo' => Array(
405
- 'favicon' => 'segnalo.png',
406
- 'url' => 'http://segnalo.alice.it/post.html.php?url=PERMALINK&amp;title=TITLE',
407
- 'spriteCoordinates' => Array(109,55),
408
- ),
409
-
410
- 'Simpy' => Array(
411
- 'favicon' => 'simpy.png',
412
- 'url' => 'http://www.simpy.com/simpy/LinkAdd.do?href=PERMALINK&amp;title=TITLE',
413
- 'spriteCoordinates' => Array(127,55),
414
- ),
415
-
416
- 'Slashdot' => Array(
417
- 'favicon' => 'slashdot.png',
418
- 'url' => 'http://slashdot.org/bookmark.pl?title=TITLE&amp;url=PERMALINK',
419
- 'spriteCoordinates' => Array(145,55),
420
- ),
421
-
422
- 'Socialogs' => Array(
423
- 'favicon' => 'socialogs.png',
424
- 'url' => 'http://socialogs.com/add_story.php?story_url=PERMALINK&amp;story_title=TITLE',
425
- 'spriteCoordinates' => Array(163,55),
426
- ),
427
-
428
- 'SphereIt' => Array(
429
- 'favicon' => 'sphere.png',
430
- 'url' => 'http://www.sphere.com/search?q=sphereit:PERMALINK&amp;title=TITLE',
431
- 'spriteCoordinates' => Array(181,55),
432
- ),
433
-
434
- 'Sphinn' => Array(
435
- 'favicon' => 'sphinn.png',
436
- 'url' => 'http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=PERMALINK',
437
- 'spriteCoordinates' => Array(199,55),
438
- ),
439
-
440
- 'StumbleUpon' => Array(
441
- 'favicon' => 'stumbleupon.png',
442
- 'url' => 'http://www.stumbleupon.com/submit?url=PERMALINK&amp;title=TITLE',
443
- 'spriteCoordinates' => Array(217,55),
444
- 'supportsIframe' => false,
445
- ),
446
-
447
- 'Techmeme' => Array(
448
- 'favicon' => 'techmeme.png',
449
- 'url' => 'http://twitter.com/home/?status=tip%20@Techmeme%20PERMALINK%20TITLE',
450
- 'description' => 'Suggest to Techmeme via Twitter',
451
- 'spriteCoordinates' => Array(253,55),
452
- 'supportsIframe' => false,
453
- ),
454
-
455
- 'Technorati' => Array(
456
- 'favicon' => 'technorati.png',
457
- 'url' => 'http://technorati.com/faves?add=PERMALINK',
458
- 'spriteCoordinates' => Array(271,55),
459
- ),
460
-
461
- 'ThisNext' => Array(
462
- 'favicon' => 'thisnext.png',
463
- 'url' => 'http://www.thisnext.com/pick/new/submit/sociable/?url=PERMALINK&amp;name=TITLE',
464
- 'spriteCoordinates' => Array(289,55),
465
- ),
466
-
467
- 'Tipd' => Array(
468
- 'favicon' => 'tipd.png',
469
- 'url' => 'http://tipd.com/submit.php?url=PERMALINK',
470
- 'spriteCoordinates' => Array(307,55),
471
- ),
472
-
473
- 'Tumblr' => Array(
474
- 'favicon' => 'tumblr.png',
475
- 'url' => 'http://www.tumblr.com/share?v=3&amp;u=PERMALINK&amp;t=TITLE&amp;s=EXCERPT',
476
- 'spriteCoordinates' => Array(325,55),
477
- 'supportsIframe' => false,
478
- ),
479
-
480
- 'Twitter' => Array(
481
- 'favicon' => 'twitter.png',
482
- 'url' => 'http://twitter.com/intent/tweet?text=TITLE%20-%20PERMALINK',
483
- 'spriteCoordinates' => Array(
484
- "option1" =>array("32"=>array(-288,32))
485
-
486
- )
487
- ),
488
-
489
- 'Upnews' => Array(
490
- 'favicon' => 'upnews.png',
491
- 'url' => 'http://www.upnews.it/submit?url=PERMALINK&amp;title=TITLE',
492
- 'spriteCoordinates' => Array(1,73),
493
- ),
494
-
495
- 'Webnews.de' => Array(
496
- 'favicon' => 'webnews.png',
497
- 'url' => 'http://www.webnews.de/einstellen?url=PERMALINK&amp;title=TITLE',
498
- 'spriteCoordinates' => Array(19,73),
499
- 'supportsIframe' => false,
500
- ),
501
-
502
- 'Webride' => Array(
503
- 'favicon' => 'webride.png',
504
- 'url' => 'http://webride.org/discuss/split.php?uri=PERMALINK&amp;title=TITLE',
505
- 'spriteCoordinates' => Array(37,73),
506
- ),
507
-
508
- 'Wikio' => Array(
509
- 'favicon' => 'wikio.png',
510
- 'url' => 'http://www.wikio.com/vote?url=PERMALINK',
511
- 'spriteCoordinates' => Array(55,73),
512
- ),
513
-
514
- 'Wikio FR' => Array(
515
- 'favicon' => 'wikio.png',
516
- 'url' => 'http://www.wikio.fr/vote?url=PERMALINK',
517
- 'spriteCoordinates' => Array(55,73),
518
- ),
519
-
520
- 'Wikio IT' => Array(
521
- 'favicon' => 'wikio.png',
522
- 'url' => 'http://www.wikio.it/vote?url=PERMALINK',
523
- 'spriteCoordinates' => Array(55,73),
524
- ),
525
-
526
- 'Wists' => Array(
527
- 'favicon' => 'wists.png',
528
- 'url' => 'http://wists.com/s.php?c=&amp;r=PERMALINK&amp;title=TITLE',
529
- 'class' => 'wists',
530
- 'spriteCoordinates' => Array(73,73),
531
- ),
532
-
533
- 'Wykop' => Array(
534
- 'favicon' => 'wykop.png',
535
- 'url' => 'http://www.wykop.pl/dodaj?url=PERMALINK',
536
- 'spriteCoordinates' => Array(91,73),
537
- 'supportsIframe' => false,
538
- ),
539
-
540
- 'Xerpi' => Array(
541
- 'favicon' => 'xerpi.png',
542
- 'url' => 'http://www.xerpi.com/block/add_link_from_extension?url=PERMALINK&amp;title=TITLE',
543
- 'spriteCoordinates' => Array(109,73),
544
- ),
545
-
546
- 'YahooBuzz' => Array(
547
- 'favicon' => 'yahoobuzz.png',
548
- 'url' => 'http://buzz.yahoo.com/submit/?submitUrl=PERMALINK&amp;submitHeadline=TITLE&amp;submitSummary=EXCERPT&amp;submitCategory=science&amp;submitAssetType=text',
549
- 'description' => 'Yahoo! Buzz',
550
- 'spriteCoordinates' => Array(127,73),
551
- ),
552
-
553
- 'Yahoo! Bookmarks' => Array(
554
- 'favicon' => 'yahoomyweb.png',
555
- 'url' => 'http://bookmarks.yahoo.com/toolbar/savebm?u=PERMALINK&amp;t=TITLE&opener=bm&amp;ei=UTF-8&amp;d=EXCERPT',
556
- 'spriteCoordinates' => Array(145,73),
557
- 'supportsIframe' => false,
558
- ),
559
-
560
- 'Yigg' => Array(
561
- 'favicon' => 'yiggit.png',
562
- 'url' => 'http://yigg.de/neu?exturl=PERMALINK&amp;exttitle=TITLE',
563
- 'spriteCoordinates' => Array(163,73),
564
- ),
565
-
566
- 'Add to favorites' => Array(
567
- 'favicon' => 'addtofavorites.png',
568
- 'url' => 'javascript:AddToFavorites();',
569
- 'spriteCoordinates' => Array(181,73),
570
- 'supportsIframe' => false,
571
- ),
572
-
573
- // 'Blogplay' => Array(
574
- // 'favicon' => 'blogplay.png',
575
- // 'url' => 'http://blogplay.com',
576
- // 'spriteCoordinates' => Array(199,73),
577
- // 'supportsIframe' => false,
578
- // ),
579
-
580
- 'MOB' => Array(
581
- 'favicon' => 'mob.png',
582
- 'url' => 'http://www.mob.com/share.php?u=PERMALINK&t=TITLE',
583
- 'spriteCoordinates' => Array(217,73),
584
- ),
585
-
586
- '豆瓣' => Array(
587
- 'favicon' => 'douban.png',
588
- 'url' => 'http://www.douban.com/recommend/?url=PERMALINK&title=TITLE',
589
- 'description' => '豆瓣',
590
- 'spriteCoordinates' => Array(235,73),
591
- ),
592
-
593
- '豆瓣九点' => Array(
594
- 'favicon' => 'douban9.png',
595
- 'url' => 'http://www.douban.com/recommend/?url=PERMALINK&title=TITLE&n=1',
596
- 'spriteCoordinates' => Array(253,73),
597
- ),
598
-
599
- 'QQ书签' => Array(
600
- 'favicon' => 'qq.png',
601
- 'url' => 'http://shuqian.qq.com/post?jumpback=1&title=TITLE&uri=PERMALINK',
602
- 'spriteCoordinates' => Array(271,73),
603
- ),
604
-
605
- 'LaTafanera' => Array(
606
- 'favicon' => 'latafanera.png',
607
- 'url' => 'http://latafanera.cat/submit.php?url=PERMALINK',
608
- 'spriteCoordinates' => Array(289,73),
609
- ),
610
-
611
- 'SheToldMe' => Array(
612
- 'favicon' => 'shetoldme.png',
613
- 'url' => 'http://shetoldme.com/publish?url=PERMALINK&title=TITLE',
614
- 'spriteCoordinates' => Array(307,73),
615
- ),
616
-
617
- 'viadeo FR' => Array(
618
- 'favicon' => 'viadeo.png',
619
- 'url' => 'http://www.viadeo.com/shareit/share/?url=PERMALINK&title=TITLE&urllanguage=fr',
620
- 'spriteCoordinates' => Array(325,73),
621
- ),
622
-
623
- 'Diggita' => Array(
624
- 'favicon' => 'diggita.png',
625
- 'url' => 'http://www.diggita.it/submit.php?url=PERMALINK&title=TITLE',
626
- 'spriteCoordinates' => Array(343,73),
627
- ),
628
-
629
- );
630
-
631
- return apply_filters( 'sociable_known_sites' , $sites );
632
-
633
- }
634
-
635
- /*
636
- * Return The Non Default Registered Post Types
637
- */
638
- function sociable_get_post_types(){
639
-
640
- $args = array(
641
- 'public' => true,
642
- '_builtin' => false
643
- );
644
-
645
- $types = get_post_types( $args, 'objects' , 'and');
646
-
647
- return $types;
648
- }
649
-
650
- /*
651
- * Return The Custom Taxonomies
652
- */
653
- function sociable_get_taxonomies(){
654
-
655
- $args = array(
656
- 'public' => true,
657
- '_builtin' => false
658
-
659
- );
660
-
661
- $taxonomies = get_taxonomies( $args, 'objects' , 'and' );
662
-
663
- return $taxonomies;
664
- }
665
-
666
- }
667
-
668
  ?>
1
+ <?php
2
+
3
+ /*
4
+ * Global Arrays For The sociable Plugin.
5
+ */
6
+ class Sociable_Globals{
7
+
8
+ function default_sites(){
9
+
10
+ $sites = Array(
11
+
12
+ 'BarraPunto' => Array(
13
+ 'favicon' => 'barrapunto.png',
14
+ 'url' => 'http://barrapunto.com/submit.pl?subj=TITLE&amp;story=PERMALINK',
15
+ 'spriteCoordinates' => Array(1,1),
16
+ ),
17
+
18
+ 'Bitacoras.com' => Array(
19
+ 'favicon' => 'bitacoras.png',
20
+ 'url' => 'http://bitacoras.com/anotaciones/PERMALINK',
21
+ 'spriteCoordinates' => Array(19,1),
22
+ ),
23
+
24
+ 'BlinkList' => Array(
25
+ 'favicon' => 'blinklist.png',
26
+ 'url' => 'http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=PERMALINK&amp;Title=TITLE',
27
+ 'spriteCoordinates' => Array(37,1),
28
+ 'supportsIframe' => false,
29
+ ),
30
+
31
+ 'blogmarks' => Array(
32
+ 'favicon' => 'blogmarks.png',
33
+ 'url' => 'http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=PERMALINK&amp;title=TITLE',
34
+ 'spriteCoordinates' => Array(73,1),
35
+ ),
36
+
37
+ 'Blogosphere News' => Array(
38
+ 'favicon' => 'blogospherenews.png',
39
+ 'url' => 'http://www.blogospherenews.com/submit.php?url=PERMALINK&amp;title=TITLE',
40
+ 'spriteCoordinates' => Array(91,1),
41
+ ),
42
+
43
+ 'blogtercimlap' => Array(
44
+ 'favicon' => 'blogter.png',
45
+ 'url' => 'http://cimlap.blogter.hu/index.php?action=suggest_link&amp;title=TITLE&amp;url=PERMALINK',
46
+ 'spriteCoordinates' => Array(109,1),
47
+ ),
48
+
49
+ 'Faves' => Array(
50
+ 'favicon' => 'bluedot.png',
51
+ 'url' => 'http://faves.com/Authoring.aspx?u=PERMALINK&amp;title=TITLE',
52
+ 'spriteCoordinates' => Array(127,1),
53
+ ),
54
+
55
+ 'connotea' => Array(
56
+ 'favicon' => 'connotea.png',
57
+ 'url' => 'http://www.connotea.org/addpopup?continue=confirm&amp;uri=PERMALINK&amp;title=TITLE&amp;description=EXCERPT',
58
+ 'spriteCoordinates' => Array(163,1),
59
+ ),
60
+
61
+ 'Current' => Array(
62
+ 'favicon' => 'current.png',
63
+ 'url' => 'http://current.com/clipper.htm?url=PERMALINK&amp;title=TITLE',
64
+ 'spriteCoordinates' => Array(181,1),
65
+ ),
66
+
67
+ 'del.icio.us' => Array(
68
+ 'favicon' => 'delicious.png',
69
+ 'url' => 'http://delicious.com/post?url=PERMALINK&amp;title=TITLE&amp;notes=EXCERPT',
70
+ 'spriteCoordinates' => Array(199,1),
71
+ ),
72
+
73
+ 'Design Float' => Array(
74
+ 'favicon' => 'designfloat.png',
75
+ 'url' => 'http://www.designfloat.com/submit.php?url=PERMALINK&amp;title=TITLE',
76
+ 'spriteCoordinates' => Array(217,1),
77
+ ),
78
+
79
+ 'Digg' => Array(
80
+ 'favicon' => 'digg.png',
81
+ 'url' => 'http://digg.com/submit?phase=2&amp;url=PERMALINK&amp;title=TITLE&amp;bodytext=EXCERPT',
82
+ 'description' => 'Digg',
83
+ 'spriteCoordinates' => Array(235,1),
84
+ ),
85
+
86
+ 'Diigo' => Array(
87
+ 'favicon' => 'diigo.png',
88
+ 'url' => 'http://www.diigo.com/post?url=PERMALINK&amp;title=TITLE',
89
+ 'spriteCoordinates' => Array(253,1),
90
+ ),
91
+
92
+ 'DotNetKicks' => Array(
93
+ 'favicon' => 'dotnetkicks.png',
94
+ 'url' => 'http://www.dotnetkicks.com/kick/?url=PERMALINK&amp;title=TITLE',
95
+ 'spriteCoordinates' => Array(271,1),
96
+ ),
97
+
98
+ 'DZone' => Array(
99
+ 'favicon' => 'dzone.png',
100
+ 'url' => 'http://www.dzone.com/links/add.html?url=PERMALINK&amp;title=TITLE',
101
+ 'spriteCoordinates' => Array(289,1),
102
+ ),
103
+
104
+ 'eKudos' => Array(
105
+ 'favicon' => 'ekudos.png',
106
+ 'url' => 'http://www.ekudos.nl/artikel/nieuw?url=PERMALINK&amp;title=TITLE&amp;desc=EXCERPT',
107
+ 'spriteCoordinates' => Array(307,1),
108
+ ),
109
+
110
+ 'email' => Array(
111
+ 'favicon' => 'email_link.png',
112
+ 'url' => 'mailto:?subject=TITLE&amp;body=PERMALINK',
113
+ 'spriteCoordinates' => Array(325,1),
114
+ 'supportsIframe' => false,
115
+ ),
116
+
117
+ 'Facebook' => Array(
118
+ 'favicon' => 'facebook.png',
119
+ 'url' => 'http://www.facebook.com/share.php?u=PERMALINK&amp;t=TITLE',
120
+ 'spriteCoordinates' => Array(343,1),
121
+ ),
122
+
123
+ 'Fark' => Array(
124
+ 'favicon' => 'fark.png',
125
+ 'url' => 'http://cgi.fark.com/cgi/fark/farkit.pl?h=TITLE&amp;u=PERMALINK',
126
+ 'spriteCoordinates' => Array(1,19),
127
+ ),
128
+
129
+ 'Fleck' => Array(
130
+ 'favicon' => 'fleck.png',
131
+ 'url' => 'http://beta3.fleck.com/bookmarklet.php?url=PERMALINK&amp;title=TITLE',
132
+ 'spriteCoordinates' => Array(19,19),
133
+ ),
134
+
135
+ 'FriendFeed' => Array(
136
+ 'favicon' => 'friendfeed.png',
137
+ 'url' => 'http://www.friendfeed.com/share?title=TITLE&amp;link=PERMALINK',
138
+ 'spriteCoordinates' => Array(37,19),
139
+ ),
140
+
141
+ 'FSDaily' => Array(
142
+ 'favicon' => 'fsdaily.png',
143
+ 'url' => 'http://www.fsdaily.com/submit?url=PERMALINK&amp;title=TITLE',
144
+ 'spriteCoordinates' => Array(55,19),
145
+ ),
146
+
147
+ 'Global Grind' => Array (
148
+ 'favicon' => 'globalgrind.png',
149
+ 'url' => 'http://globalgrind.com/submission/submit.aspx?url=PERMALINK&amp;type=Article&amp;title=TITLE',
150
+ 'spriteCoordinates' => Array(73,19),
151
+ ),
152
+
153
+ 'Google' => Array (
154
+ 'favicon' => 'googlebookmark.png',
155
+ 'url' => 'http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=PERMALINK&amp;title=TITLE&amp;annotation=EXCERPT',
156
+ 'description' => 'Google Bookmarks',
157
+ 'spriteCoordinates' => Array(91,19),
158
+ ),
159
+
160
+ 'Gwar' => Array(
161
+ 'favicon' => 'gwar.png',
162
+ 'url' => 'http://www.gwar.pl/DodajGwar.html?u=PERMALINK',
163
+ 'spriteCoordinates' => Array(109,19),
164
+ 'supportsIframe' => false,
165
+ ),
166
+
167
+ 'HackerNews' => Array(
168
+ 'favicon' => 'hackernews.png',
169
+ 'url' => 'http://news.ycombinator.com/submitlink?u=PERMALINK&amp;t=TITLE',
170
+ 'spriteCoordinates' => Array(127,19),
171
+ ),
172
+
173
+ 'Haohao' => Array(
174
+ 'favicon' => 'haohao.png',
175
+ 'url' => 'http://www.haohaoreport.com/submit.php?url=PERMALINK&amp;title=TITLE',
176
+ 'spriteCoordinates' => Array(145,19),
177
+ ),
178
+
179
+ 'HealthRanker' => Array(
180
+ 'favicon' => 'healthranker.png',
181
+ 'url' => 'http://healthranker.com/submit.php?url=PERMALINK&amp;title=TITLE',
182
+ 'spriteCoordinates' => Array(163,19),
183
+ ),
184
+
185
+ 'HelloTxt' => Array(
186
+ 'favicon' => 'hellotxt.png',
187
+ 'url' => 'http://hellotxt.com/?status=TITLE+PERMALINK',
188
+ 'spriteCoordinates' => Array(181,19),
189
+ ),
190
+
191
+ 'Hemidemi' => Array(
192
+ 'favicon' => 'hemidemi.png',
193
+ 'url' => 'http://www.hemidemi.com/user_bookmark/new?title=TITLE&amp;url=PERMALINK',
194
+ 'spriteCoordinates' => Array(199,19),
195
+ ),
196
+
197
+ 'Hyves' => Array(
198
+ 'favicon' => 'hyves.png',
199
+ 'url' => 'http://www.hyves.nl/profilemanage/add/tips/?name=TITLE&amp;text=EXCERPT+PERMALINK&amp;rating=5',
200
+ 'spriteCoordinates' => Array(217,19),
201
+ ),
202
+
203
+ 'Identi.ca' => Array(
204
+ 'favicon' => 'identica.png',
205
+ 'url' => 'http://identi.ca/notice/new?status_textarea=PERMALINK',
206
+ 'spriteCoordinates' => Array(235,19),
207
+ 'supportsIframe' => false,
208
+ ),
209
+
210
+ 'IndianPad' => Array(
211
+ 'favicon' => 'indianpad.png',
212
+ 'url' => 'http://www.indianpad.com/submit.php?url=PERMALINK',
213
+ 'spriteCoordinates' => Array(253,19),
214
+ ),
215
+
216
+ 'Internetmedia' => Array(
217
+ 'favicon' => 'im.png',
218
+ 'url' => 'http://internetmedia.hu/submit.php?url=PERMALINK',
219
+ 'spriteCoordinates' => Array(271,19),
220
+ ),
221
+
222
+ 'Kirtsy' => Array(
223
+ 'favicon' => 'kirtsy.png',
224
+ 'url' => 'http://www.kirtsy.com/submit.php?url=PERMALINK&amp;title=TITLE',
225
+ 'spriteCoordinates' => Array(289,19),
226
+ ),
227
+
228
+ 'laaik.it' => Array(
229
+ 'favicon' => 'laaikit.png',
230
+ 'url' => 'http://laaik.it/NewStoryCompact.aspx?uri=PERMALINK&amp;headline=TITLE&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12',
231
+ 'spriteCoordinates' => Array(307,19),
232
+ ),
233
+
234
+ 'LinkArena' => Array(
235
+ 'favicon' => 'linkarena.png',
236
+ 'url' => 'http://linkarena.com/bookmarks/addlink/?url=PERMALINK&amp;title=TITLE',
237
+ 'spriteCoordinates' => Array(325,19),
238
+ ),
239
+
240
+ 'LinkaGoGo' => Array(
241
+ 'favicon' => 'linkagogo.png',
242
+ 'url' => 'http://www.linkagogo.com/go/AddNoPopup?url=PERMALINK&amp;title=TITLE',
243
+ 'spriteCoordinates' => Array(343,19),
244
+ ),
245
+
246
+ 'LinkedIn' => Array(
247
+ 'favicon' => 'linkedin.png',
248
+ 'url' => 'http://www.linkedin.com/shareArticle?mini=true&amp;url=PERMALINK&amp;title=TITLE&amp;source=BLOGNAME&amp;summary=EXCERPT',
249
+ 'spriteCoordinates' => Array(1,37),
250
+ ),
251
+
252
+ 'Linkter' => Array(
253
+ 'favicon' => 'linkter.png',
254
+ 'url' => 'http://www.linkter.hu/index.php?action=suggest_link&amp;url=PERMALINK&amp;title=TITLE',
255
+ 'spriteCoordinates' => Array(19,37),
256
+ ),
257
+
258
+ 'Live' => Array(
259
+ 'favicon' => 'live.png',
260
+ 'url' => 'https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=PERMALINK&amp;title=TITLE',
261
+ 'spriteCoordinates' => Array(37,37),
262
+ ),
263
+
264
+ 'Meneame' => Array(
265
+ 'favicon' => 'meneame.png',
266
+ 'url' => 'http://meneame.net/submit.php?url=PERMALINK',
267
+ 'spriteCoordinates' => Array(55,37),
268
+ 'supportsIframe' => false,
269
+ ),
270
+
271
+ 'MisterWong' => Array(
272
+ 'favicon' => 'misterwong.png',
273
+ 'url' => 'http://www.mister-wong.com/addurl/?bm_url=PERMALINK&amp;bm_description=TITLE&amp;plugin=soc',
274
+ 'spriteCoordinates' => Array(73,37),
275
+ ),
276
+
277
+ 'MisterWong.DE' => Array(
278
+ 'favicon' => 'misterwong.png',
279
+ 'url' => 'http://www.mister-wong.de/addurl/?bm_url=PERMALINK&amp;bm_description=TITLE&amp;plugin=soc',
280
+ 'spriteCoordinates' => Array(73,37),
281
+ ),
282
+
283
+ 'Mixx' => Array(
284
+ 'favicon' => 'mixx.png',
285
+ 'url' => 'http://www.mixx.com/submit?page_url=PERMALINK&amp;title=TITLE',
286
+ 'spriteCoordinates' => Array(91,37),
287
+ ),
288
+
289
+ 'muti' => Array(
290
+ 'favicon' => 'muti.png',
291
+ 'url' => 'http://www.muti.co.za/submit?url=PERMALINK&amp;title=TITLE',
292
+ 'spriteCoordinates' => Array(109,37),
293
+ ),
294
+
295
+ 'MyShare' => Array(
296
+ 'favicon' => 'myshare.png',
297
+ 'url' => 'http://myshare.url.com.tw/index.php?func=newurl&amp;url=PERMALINK&amp;desc=TITLE',
298
+ 'spriteCoordinates' => Array(127,37),
299
+ ),
300
+
301
+ 'MySpace' => Array(
302
+ 'favicon' => 'myspace.png',
303
+ 'url' => 'http://www.myspace.com/Modules/PostTo/Pages/?u=PERMALINK&amp;t=TITLE',
304
+ 'spriteCoordinates' => Array(145,37)
305
+ ),
306
+
307
+ 'MSNReporter' => Array(
308
+ 'favicon' => 'msnreporter.png',
309
+ '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',
310
+ 'description' => 'MSN Reporter',
311
+ 'spriteCoordinates' => Array(163,37),
312
+ ),
313
+
314
+ 'N4G' => Array(
315
+ 'favicon' => 'n4g.png',
316
+ 'url' => 'http://www.n4g.com/tips.aspx?url=PERMALINK&amp;title=TITLE',
317
+ 'spriteCoordinates' => Array(181,37),
318
+ ),
319
+
320
+ 'Netvibes' => Array(
321
+ 'favicon' => 'netvibes.png',
322
+ 'url' => 'http://www.netvibes.com/share?title=TITLE&amp;url=PERMALINK',
323
+ 'spriteCoordinates' => Array(199,37),
324
+ ),
325
+
326
+ 'NewsVine' => Array(
327
+ 'favicon' => 'newsvine.png',
328
+ 'url' => 'http://www.newsvine.com/_tools/seed&amp;save?u=PERMALINK&amp;h=TITLE',
329
+ 'spriteCoordinates' => Array(217,37),
330
+ ),
331
+
332
+ 'Netvouz' => Array(
333
+ 'favicon' => 'netvouz.png',
334
+ 'url' => 'http://www.netvouz.com/action/submitBookmark?url=PERMALINK&amp;title=TITLE&amp;popup=no',
335
+ 'spriteCoordinates' => Array(235,37),
336
+ ),
337
+
338
+ 'NuJIJ' => Array(
339
+ 'favicon' => 'nujij.png',
340
+ 'url' => 'http://nujij.nl/jij.lynkx?t=TITLE&amp;u=PERMALINK&amp;b=EXCERPT',
341
+ 'spriteCoordinates' => Array(253,37),
342
+ ),
343
+
344
+ 'Ping.fm' => Array(
345
+ 'favicon' => 'ping.png',
346
+ 'url' => 'http://ping.fm/ref/?link=PERMALINK&amp;title=TITLE&amp;body=EXCERPT',
347
+ 'spriteCoordinates' => Array(271,37),
348
+ ),
349
+
350
+ 'Posterous' => Array(
351
+ 'favicon' => 'posterous.png',
352
+ 'url' => 'http://posterous.com/share?linkto=PERMALINK&amp;title=TITLE&amp;selection=EXCERPT',
353
+ 'spriteCoordinates' => Array(289,37),
354
+ ),
355
+
356
+ 'PDF' => Array(
357
+ 'favicon' => 'pdf.png',
358
+ 'url' => 'http://www.printfriendly.com/print?url=PERMALINK&amp;partner=sociable',
359
+ 'spriteCoordinates' => Array(325,37),
360
+ ),
361
+
362
+ 'Print' => Array(
363
+ 'favicon' => 'printfriendly.png',
364
+ 'url' => 'http://www.printfriendly.com/print?url=PERMALINK&amp;partner=sociable',
365
+ 'spriteCoordinates' => Array(343,37),
366
+ ),
367
+
368
+ 'Propeller' => Array(
369
+ 'favicon' => 'propeller.png',
370
+ 'url' => 'http://www.propeller.com/submit/?url=PERMALINK',
371
+ 'spriteCoordinates' => Array(1,55),
372
+ ),
373
+
374
+ 'Ratimarks' => Array(
375
+ 'favicon' => 'ratimarks.png',
376
+ 'url' => 'http://ratimarks.org/bookmarks.php/?action=add&address=PERMALINK&amp;title=TITLE',
377
+ 'spriteCoordinates' => Array(19,55),
378
+ ),
379
+
380
+ 'Rec6' => Array(
381
+ 'favicon' => 'rec6.png',
382
+ 'url' => 'http://rec6.via6.com/link.php?url=PERMALINK&amp;=TITLE',
383
+ 'spriteCoordinates' => Array(37,55),
384
+ ),
385
+
386
+ 'Reddit' => Array(
387
+ 'favicon' => 'reddit.png',
388
+ 'url' => 'http://reddit.com/submit?url=PERMALINK&amp;title=TITLE',
389
+ 'spriteCoordinates' => Array(55,55),
390
+ ),
391
+
392
+ 'RSS' => Array(
393
+ 'favicon' => 'rss.png',
394
+ 'url' => 'FEEDLINK',
395
+ 'spriteCoordinates' => Array(73,55),
396
+ ),
397
+
398
+ 'Scoopeo' => Array(
399
+ 'favicon' => 'scoopeo.png',
400
+ 'url' => 'http://www.scoopeo.com/scoop/new?newurl=PERMALINK&amp;title=TITLE',
401
+ 'spriteCoordinates' => Array(91,55),
402
+ ),
403
+
404
+ 'Segnalo' => Array(
405
+ 'favicon' => 'segnalo.png',
406
+ 'url' => 'http://segnalo.alice.it/post.html.php?url=PERMALINK&amp;title=TITLE',
407
+ 'spriteCoordinates' => Array(109,55),
408
+ ),
409
+
410
+ 'Simpy' => Array(
411
+ 'favicon' => 'simpy.png',
412
+ 'url' => 'http://www.simpy.com/simpy/LinkAdd.do?href=PERMALINK&amp;title=TITLE',
413
+ 'spriteCoordinates' => Array(127,55),
414
+ ),
415
+
416
+ 'Slashdot' => Array(
417
+ 'favicon' => 'slashdot.png',
418
+ 'url' => 'http://slashdot.org/bookmark.pl?title=TITLE&amp;url=PERMALINK',
419
+ 'spriteCoordinates' => Array(145,55),
420
+ ),
421
+
422
+ 'Socialogs' => Array(
423
+ 'favicon' => 'socialogs.png',
424
+ 'url' => 'http://socialogs.com/add_story.php?story_url=PERMALINK&amp;story_title=TITLE',
425
+ 'spriteCoordinates' => Array(163,55),
426
+ ),
427
+
428
+ 'SphereIt' => Array(
429
+ 'favicon' => 'sphere.png',
430
+ 'url' => 'http://www.sphere.com/search?q=sphereit:PERMALINK&amp;title=TITLE',
431
+ 'spriteCoordinates' => Array(181,55),
432
+ ),
433
+
434
+ 'Sphinn' => Array(
435
+ 'favicon' => 'sphinn.png',
436
+ 'url' => 'http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=PERMALINK',
437
+ 'spriteCoordinates' => Array(199,55),
438
+ ),
439
+
440
+ 'StumbleUpon' => Array(
441
+ 'favicon' => 'stumbleupon.png',
442
+ 'url' => 'http://www.stumbleupon.com/submit?url=PERMALINK&amp;title=TITLE',
443
+ 'spriteCoordinates' => Array(217,55),
444
+ 'supportsIframe' => false,
445
+ ),
446
+
447
+ 'Techmeme' => Array(
448
+ 'favicon' => 'techmeme.png',
449
+ 'url' => 'http://twitter.com/home/?status=tip%20@Techmeme%20PERMALINK%20TITLE',
450
+ 'description' => 'Suggest to Techmeme via Twitter',
451
+ 'spriteCoordinates' => Array(253,55),
452
+ 'supportsIframe' => false,
453
+ ),
454
+
455
+ 'Technorati' => Array(
456
+ 'favicon' => 'technorati.png',
457
+ 'url' => 'http://technorati.com/faves?add=PERMALINK',
458
+ 'spriteCoordinates' => Array(271,55),
459
+ ),
460
+
461
+ 'ThisNext' => Array(
462
+ 'favicon' => 'thisnext.png',
463
+ 'url' => 'http://www.thisnext.com/pick/new/submit/sociable/?url=PERMALINK&amp;name=TITLE',
464
+ 'spriteCoordinates' => Array(289,55),
465
+ ),
466
+
467
+ 'Tipd' => Array(
468
+ 'favicon' => 'tipd.png',
469
+ 'url' => 'http://tipd.com/submit.php?url=PERMALINK',
470
+ 'spriteCoordinates' => Array(307,55),
471
+ ),
472
+
473
+ 'Tumblr' => Array(
474
+ 'favicon' => 'tumblr.png',
475
+ 'url' => 'http://www.tumblr.com/share?v=3&amp;u=PERMALINK&amp;t=TITLE&amp;s=EXCERPT',
476
+ 'spriteCoordinates' => Array(325,55),
477
+ 'supportsIframe' => false,
478
+ ),
479
+
480
+ 'Twitter' => Array(
481
+ 'favicon' => 'twitter.png',
482
+ 'url' => 'http://twitter.com/intent/tweet?text=TITLE%20-%20PERMALINK',
483
+ 'spriteCoordinates' => Array(
484
+ "option1" =>array("32"=>array(-288,32))
485
+
486
+ )
487
+ ),
488
+
489
+ 'Upnews' => Array(
490
+ 'favicon' => 'upnews.png',
491
+ 'url' => 'http://www.upnews.it/submit?url=PERMALINK&amp;title=TITLE',
492
+ 'spriteCoordinates' => Array(1,73),
493
+ ),
494
+
495
+ 'Webnews.de' => Array(
496
+ 'favicon' => 'webnews.png',
497
+ 'url' => 'http://www.webnews.de/einstellen?url=PERMALINK&amp;title=TITLE',
498
+ 'spriteCoordinates' => Array(19,73),
499
+ 'supportsIframe' => false,
500
+ ),
501
+
502
+ 'Webride' => Array(
503
+ 'favicon' => 'webride.png',
504
+ 'url' => 'http://webride.org/discuss/split.php?uri=PERMALINK&amp;title=TITLE',
505
+ 'spriteCoordinates' => Array(37,73),
506
+ ),
507
+
508
+ 'Wikio' => Array(
509
+ 'favicon' => 'wikio.png',
510
+ 'url' => 'http://www.wikio.com/vote?url=PERMALINK',
511
+ 'spriteCoordinates' => Array(55,73),
512
+ ),
513
+
514
+ 'Wikio FR' => Array(
515
+ 'favicon' => 'wikio.png',
516
+ 'url' => 'http://www.wikio.fr/vote?url=PERMALINK',
517
+ 'spriteCoordinates' => Array(55,73),
518
+ ),
519
+
520
+ 'Wikio IT' => Array(
521
+ 'favicon' => 'wikio.png',
522
+ 'url' => 'http://www.wikio.it/vote?url=PERMALINK',
523
+ 'spriteCoordinates' => Array(55,73),
524
+ ),
525
+
526
+ 'Wists' => Array(
527
+ 'favicon' => 'wists.png',
528
+ 'url' => 'http://wists.com/s.php?c=&amp;r=PERMALINK&amp;title=TITLE',
529
+ 'class' => 'wists',
530
+ 'spriteCoordinates' => Array(73,73),
531
+ ),
532
+
533
+ 'Wykop' => Array(
534
+ 'favicon' => 'wykop.png',
535
+ 'url' => 'http://www.wykop.pl/dodaj?url=PERMALINK',
536
+ 'spriteCoordinates' => Array(91,73),
537
+ 'supportsIframe' => false,
538
+ ),
539
+
540
+ 'Xerpi' => Array(
541
+ 'favicon' => 'xerpi.png',
542
+ 'url' => 'http://www.xerpi.com/block/add_link_from_extension?url=PERMALINK&amp;title=TITLE',
543
+ 'spriteCoordinates' => Array(109,73),
544
+ ),
545
+
546
+ 'YahooBuzz' => Array(
547
+ 'favicon' => 'yahoobuzz.png',
548
+ 'url' => 'http://buzz.yahoo.com/submit/?submitUrl=PERMALINK&amp;submitHeadline=TITLE&amp;submitSummary=EXCERPT&amp;submitCategory=science&amp;submitAssetType=text',
549
+ 'description' => 'Yahoo! Buzz',
550
+ 'spriteCoordinates' => Array(127,73),
551
+ ),
552
+
553
+ 'Yahoo! Bookmarks' => Array(
554
+ 'favicon' => 'yahoomyweb.png',
555
+ 'url' => 'http://bookmarks.yahoo.com/toolbar/savebm?u=PERMALINK&amp;t=TITLE&opener=bm&amp;ei=UTF-8&amp;d=EXCERPT',
556
+ 'spriteCoordinates' => Array(145,73),
557
+ 'supportsIframe' => false,
558
+ ),
559
+
560
+ 'Yigg' => Array(
561
+ 'favicon' => 'yiggit.png',
562
+ 'url' => 'http://yigg.de/neu?exturl=PERMALINK&amp;exttitle=TITLE',
563
+ 'spriteCoordinates' => Array(163,73),
564
+ ),
565
+
566
+ 'Add to favorites' => Array(
567
+ 'favicon' => 'addtofavorites.png',
568
+ 'url' => 'javascript:AddToFavorites();',
569
+ 'spriteCoordinates' => Array(181,73),
570
+ 'supportsIframe' => false,
571
+ ),
572
+
573
+ // 'Blogplay' => Array(
574
+ // 'favicon' => 'blogplay.png',
575
+ // 'url' => 'http://blogplay.com',
576
+ // 'spriteCoordinates' => Array(199,73),
577
+ // 'supportsIframe' => false,
578
+ // ),
579
+
580
+ 'MOB' => Array(
581
+ 'favicon' => 'mob.png',
582
+ 'url' => 'http://www.mob.com/share.php?u=PERMALINK&t=TITLE',
583
+ 'spriteCoordinates' => Array(217,73),
584
+ ),
585
+
586
+ '豆瓣' => Array(
587
+ 'favicon' => 'douban.png',
588
+ 'url' => 'http://www.douban.com/recommend/?url=PERMALINK&title=TITLE',
589
+ 'description' => '豆瓣',
590
+ 'spriteCoordinates' => Array(235,73),
591
+ ),
592
+
593
+ '豆瓣九点' => Array(
594
+ 'favicon' => 'douban9.png',
595
+ 'url' => 'http://www.douban.com/recommend/?url=PERMALINK&title=TITLE&n=1',
596
+ 'spriteCoordinates' => Array(253,73),
597
+ ),
598
+
599
+ 'QQ书签' => Array(
600
+ 'favicon' => 'qq.png',
601
+ 'url' => 'http://shuqian.qq.com/post?jumpback=1&title=TITLE&uri=PERMALINK',
602
+ 'spriteCoordinates' => Array(271,73),
603
+ ),
604
+
605
+ 'LaTafanera' => Array(
606
+ 'favicon' => 'latafanera.png',
607
+ 'url' => 'http://latafanera.cat/submit.php?url=PERMALINK',
608
+ 'spriteCoordinates' => Array(289,73),
609
+ ),
610
+
611
+ 'SheToldMe' => Array(
612
+ 'favicon' => 'shetoldme.png',
613
+ 'url' => 'http://shetoldme.com/publish?url=PERMALINK&title=TITLE',
614
+ 'spriteCoordinates' => Array(307,73),
615
+ ),
616
+
617
+ 'viadeo FR' => Array(
618
+ 'favicon' => 'viadeo.png',
619
+ 'url' => 'http://www.viadeo.com/shareit/share/?url=PERMALINK&title=TITLE&urllanguage=fr',
620
+ 'spriteCoordinates' => Array(325,73),
621
+ ),
622
+
623
+ 'Diggita' => Array(
624
+ 'favicon' => 'diggita.png',
625
+ 'url' => 'http://www.diggita.it/submit.php?url=PERMALINK&title=TITLE',
626
+ 'spriteCoordinates' => Array(343,73),
627
+ ),
628
+
629
+ );
630
+
631
+ return apply_filters( 'sociable_known_sites' , $sites );
632
+
633
+ }
634
+
635
+ /*
636
+ * Return The Non Default Registered Post Types
637
+ */
638
+ function sociable_get_post_types(){
639
+
640
+ $args = array(
641
+ 'public' => true,
642
+ '_builtin' => false
643
+ );
644
+
645
+ $types = get_post_types( $args, 'objects' , 'and');
646
+
647
+ return $types;
648
+ }
649
+
650
+ /*
651
+ * Return The Custom Taxonomies
652
+ */
653
+ function sociable_get_taxonomies(){
654
+
655
+ $args = array(
656
+ 'public' => true,
657
+ '_builtin' => false
658
+
659
+ );
660
+
661
+ $taxonomies = get_taxonomies( $args, 'objects' , 'and' );
662
+
663
+ return $taxonomies;
664
+ }
665
+
666
+ }
667
+
668
  ?>
includes/class-sociable_Admin_Options.php CHANGED
@@ -1,720 +1,1359 @@
1
- <?php
2
-
3
- /*
4
- * Administration Options Class For Sociable 2
5
- */
6
-
7
- class sociable_Admin_Options{
8
-
9
- /**
10
- * A Function To Hook To Admin Init.
11
- */
12
- function init(){
13
-
14
- //Register Settings
15
- //echo dirname( plugin_basename( __FILE__ ) );
16
- //load_plugin_textdomain( 'sociable', false, dirname( plugin_basename( __FILE__ ) ) );
17
- register_setting( 'sociable_options_group' , 'sociable_options' );
18
-
19
- //Add The Settings Sections
20
- add_settings_section( 'sociable_locations', __( 'Locations' ), array( 'sociable_Admin_Options' , 'location_options_callback' ) , 'sociable_options' );
21
-
22
- add_settings_section( 'sociable_options', __( 'General Options' ), array( 'sociable_Admin_Options' , 'general_options_callback' ) , 'sociable_options' );
23
-
24
- //Add All The Settings Fields
25
- //self::add_settings_fields();
26
-
27
-
28
- }
29
-
30
- /**
31
- * Add The Menu Pages To The Administration Options
32
- */
33
- function add_menu_pages(){
34
- global $sociable_post_types;
35
-
36
- $page = add_options_page( __( 'Sociable Options' ), __( 'Sociable' ), 'manage_options', 'sociable_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page' ) );
37
-
38
- //Add CSS And Javascript Specific To This Options Pages
39
- add_action( 'admin_print_styles-' . $page , array( 'sociable_Admin_Options' , 'enqueue_styles' ) );
40
- add_action( 'admin_print_scripts-' . $page , array( 'sociable_Admin_Options' , 'enqueue_scripts' ) );
41
-
42
- if( isset( $_POST['sociable_reset'] ) ){
43
- check_admin_referer( 'sociable-reset' );
44
-
45
- sociable_reset();
46
- wp_redirect( $_SERVER['HTTP_REFERER' ] );
47
- }
48
-
49
- if( isset( $_POST['sociable_remove'] ) ){
50
- check_admin_referer( 'deactivate-sociable' );
51
-
52
- sociable_2_remove();
53
- //wp_redirect( $_SERVER['HTTP_REFERER' ] );
54
- }
55
-
56
- /*
57
- * We can create The Meta Boxes Here
58
- */
59
- foreach( $sociable_post_types as $type => $data ){
60
- self::add_meta_box( $type );
61
- }
62
- //Also on posts and pages
63
- self::add_meta_box( 'post' );
64
- self::add_meta_box( 'page' );
65
-
66
- }
67
-
68
- /*
69
- * Function to Enqueue The Styles For The Options Page
70
- */
71
- function enqueue_styles(){
72
- wp_enqueue_style( 'style-admin-css', SOCIABLE_HTTP_PATH . 'css/style-admin.css' );
73
- wp_enqueue_style( 'sociable-admin-css', SOCIABLE_HTTP_PATH . 'css/sociable-admin.css' );
74
- wp_enqueue_style( 'sociablecss' , SOCIABLE_HTTP_PATH . 'css/sociable.css' );
75
- }
76
-
77
- /*
78
- * Function To Enqueue The Scripts For The Options Page
79
- */
80
- function enqueue_scripts(){
81
- wp_enqueue_script('jquery');
82
- wp_enqueue_script('jquery-ui-core',false,array('jquery'));
83
- wp_enqueue_script('jquery-ui-sortable',false,array('jquery','jquery-ui-core'));
84
- wp_enqueue_script( 'sociable-admin-js', SOCIABLE_HTTP_PATH . 'js/sociable-admin.js' , array( 'jquery','jquery-ui-core' , 'jquery-ui-sortable' ) );
85
- wp_enqueue_script( 'admin-fn-js', SOCIABLE_HTTP_PATH . 'js/admin-fn.js' , array( 'jquery','jquery-ui-core' , 'jquery-ui-sortable' ) );
86
-
87
- }
88
-
89
-
90
-
91
- /*
92
- * Function To Add The Settings Fields.
93
- */
94
-
95
- function do_site_selection_list(){
96
-
97
- global $sociable_options;
98
-
99
- $sociable_known_sites = get_option( 'sociable_known_sites' );
100
-
101
- /*
102
- * Sort The List Based On The Active Sites So That They Display Correctly.
103
- */
104
- $active_sites = isset( $sociable_options['active_sites'] ) && is_array( $sociable_options['active_sites'] ) ? $sociable_options['active_sites'] : array() ;
105
-
106
- //Start Blank
107
- $active = Array();
108
-
109
- //Disabled Untill Proven Active
110
- $disabled = $sociable_known_sites;
111
-
112
- //Loop Through The Active Sites, sorting into 2 arrays
113
- foreach( $active_sites as $sitename => $value ) {
114
- $active[$sitename] = $disabled[$sitename];
115
- unset( $disabled[$sitename] );
116
- }
117
-
118
- uksort($disabled, "strnatcasecmp");
119
-
120
- $sites = array_merge( $active, $disabled );
121
-
122
- $imagepath = isset( $sociable_options['sociable_imagedir'] ) ? $sociable_options['sociable_imagedir'] : '' ;
123
-
124
- if ($imagepath == "") {
125
- $imagepath = trailingslashit( SOCIABLE_HTTP_PATH ) . 'images/';
126
- } else {
127
- $imagepath .= trailingslashit( $imagepath );
128
- }
129
-
130
- $out ='<ul id="sociable_site_list" >' ;
131
- $io = 0;
132
- foreach( $sites as $sitename => $site ){
133
-
134
-
135
- //Set Checked And Active If Relevant
136
- if( array_key_exists( $sitename, $active_sites ) ){
137
- $checked = 'checked="checked"';
138
- $active = 'active';
139
- } else {
140
- $checked = '';
141
- $active = 'inactive';
142
- }
143
- if ( $sitename != "More"){
144
- if (isset($site["counter"])){
145
- //$image = "<img src='".SOCIABLE_HTTP_PATH."images/".$site["favicon"]."'>";
146
- $image = $site["url"];
147
- }else{
148
- $image = _get_sociable_image( $site, '' );
149
- }
150
- }else{
151
- $image = "<img src='".SOCIABLE_HTTP_PATH."images/more.png'>";
152
- }
153
-
154
- // if ( ! isset( $site['spriteCoordinates']) || isset( $sociable_options['sociable_disablesprite'] ) ) {
155
- // if (strpos($site['favicon'], 'http') === 0) {
156
- // $imgsrc = $site['favicon'];
157
- // } else {
158
- // $imgsrc = $imagepath.$site['favicon'];
159
- // }
160
- // $img = '<img src="' . $imgsrc . '" width="16" height="16" />';
161
- // } else {
162
- // $imgsrc = $imagepath."services-sprite.gif";
163
- // $services_sprite_url = $imagepath . "services-sprite.png";
164
- // $spriteCoords = $site['spriteCoordinates'];
165
- // $img = '<img src="' . $imgsrc . '" width="16" height="16" style="background: transparent url(' . $services_sprite_url . ') no-repeat; background-position:-' . $spriteCoords[0] . 'px -' . $spriteCoords[1] . 'px" />';
166
- // }
167
-
168
- $out .= '<li id="' . $sitename . '" class="' . $active . '">';
169
-
170
- $out .= '<input type="checkbox" id="cb_' . $sitename . '" name="sociable_options[active_sites][' . $sitename . ']" ' . $checked . ' />';
171
-
172
- $out .= $image;
173
- if (!isset($site["counter"])){
174
- $out .= $sitename;
175
- }
176
-
177
- $out .= '</li>';
178
-
179
- }
180
-
181
-
182
- echo $out."</ul>";
183
-
184
- }
185
-
186
- /*
187
- * Create The HTML For The Options Page
188
- */
189
- function Create_Options_Page(){
190
- global $sociable_options;
191
- ?>
192
-
193
-
194
-
195
-
196
- <div class="wrap">
197
-
198
-
199
- <h2 style="clear:both;"><?php _e( 'Sociable 2 Options' ); ?></h2>
200
-
201
- <form method="post" action="options.php" id="form1" autocomplete="off">
202
-
203
- <?php wp_nonce_field('sociable-config'); ?>
204
- <INPUT type="hidden" class="version-INPUT" id="version" name="sociable_options[version]" value="<?php echo$sociable_options["version"];?>" />
205
- <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px">
206
- <TR>
207
- <TD class="Border-Left" ></TD><TD class="BG-Middle" >Preview</TD><TD class="Border-Right"></TD>
208
- </TR>
209
- </TABLE>
210
- <BR/>
211
-
212
- <DIV class="Content-Box" id="Preview-Content">
213
- <DIV style="margin:0 0 0 25px" align="left" class="Live-Preview" id="Live-Preview" ><?php _e("Live preview of how Sociable will appear on your blog.","sociable")?></DIV>
214
-
215
- <BR/>
216
-
217
- <DIV style="margin:0 0 0 25px" class="Post-TXT" id="Post-TXT" ><?php _e("This is your post here...","sociable")?></DIV>
218
-
219
- <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >Lorem ipsum dolor sit amet, consectetur adipiscing elit.</DIV>
220
-
221
- <BR/>
222
- <DIV style="margin:0 0 0 25px" id="ShareAndEnjoy" > <?php do_sociable(); ?></DIV>
223
- </DIV>
224
- <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Tagline-Title">
225
- <TR>
226
- <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Tagline","sociable");?></TD><TD class="Border-Right"></TD>
227
- </TR>
228
- </TABLE>
229
- <BR/>
230
-
231
- <DIV class="Content-Box" id="Tagline-Content">
232
- <DIV class="Tagline-TXT" id="Tagline-TXT" ><?php _e('Previously we used "Share and Enjoy", remember the good old days?',"sociable");?></DIV>
233
-
234
- <BR/>
235
- <DIV style="width:100%;height:60px;">
236
- <INPUT type="text" class="Tagline-INPUT" id="tagline" name="sociable_options[tagline]" value="<?php echo$sociable_options["tagline"];?>" />
237
-
238
- <DIV class="ToSociable" >
239
- <INPUT type="checkbox" <?php if (!empty($sociable_options["help_grow"])) echo "checked = 'checked'";?> name="sociable_options[help_grow]" id="LinkToSociable" />
240
- <?php _e("Link to Sociable","sociable");?><BR/>
241
- <SPAN style="font-size:14px;"><?php _e("(Help us grow, please leave the link so others discover Sociable from your blog)","sociable");?></SPAN>
242
- </DIV>
243
- </DIV>
244
- </DIV>
245
-
246
-
247
- <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Tagline-Title">
248
- <TR>
249
- <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Icons to Include","sociable");?></TD><TD class="Border-Right"></TD>
250
- </TR>
251
- </TABLE>
252
- <BR/>
253
-
254
- <DIV class="Content-Box" id="IconsToInclude-Box" style="">
255
- <DIV class="IconsToInclude-TXT" id="IconsToInclude-TXT" >
256
- <?php _e("Check the sites you want to appear on your blog.","sociable");?>
257
- </DIV>
258
-
259
- <BR/>
260
-
261
- <?php self::do_site_selection_list(); ?>
262
- </DIV>
263
-
264
- <div class="soc_clear"></div>
265
-
266
- <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="IconSize-Title" style="margin-top:20px;">
267
- <TR>
268
- <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Icons Size","sociable");?></TD><TD class="Border-Right"></TD>
269
- </TR>
270
- </TABLE>
271
- <BR/>
272
-
273
- <DIV class="Content-Box" style="margin-left:-3px" id="IconSize-Content">
274
- <?php
275
- $checked16 = "";
276
- $checked32 = "";
277
- $checked48 = "";
278
- $checked64 = "";
279
- if ($sociable_options["icon_size"] == 16) $checked16 = "checked='checked'";
280
- if ($sociable_options["icon_size"] == 32) $checked32 = "checked='checked'";
281
- if ($sociable_options["icon_size"] == 48) $checked48 = "checked='checked'";
282
- if ($sociable_options["icon_size"] == 64) $checked64 = "checked='checked'";
283
- //echo $checked16;
284
- ?>
285
- <SPAN class="IconSize-Item"> <INPUT value="16" type="radio" name="sociable_options[icon_size]" <?php echo$checked16;?> />16x16 Pixels </SPAN>
286
-
287
- <SPAN class="IconSize-Item"> <INPUT <?php echo$checked32;?> value="32" type="radio" name="sociable_options[icon_size]" />32x32 Pixels </SPAN>
288
-
289
- <SPAN class="IconSize-Item"> <INPUT <?php echo$checked48;?> value="48" type="radio" name="sociable_options[icon_size]"/>48x48 Pixels </SPAN>
290
-
291
- <SPAN class="IconSize-Item"> <INPUT <?php echo$checked64;?> value="64" type="radio" name="sociable_options[icon_size]" />64x64 Pixels </SPAN>
292
-
293
-
294
- </DIV>
295
-
296
- <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="IconSize-Title" style="margin-top:20px;">
297
- <TR>
298
- <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Icons Style","sociable");?></TD><TD class="Border-Right"></TD>
299
- </TR>
300
- </TABLE>
301
- <BR/>
302
-
303
- <DIV class="Content-Box" id="IconSize-Content" style="padding:20px;">
304
-
305
- <?php
306
- $checked1 = "";
307
- $checked2 = "";
308
- $checked3 = "";
309
- $checked4 = "";
310
- $checked5 = "";
311
- $checked6 = "";
312
- if ($sociable_options["icon_option"] == "option1") $checked1 = "checked='checked'";
313
- if ($sociable_options["icon_option"] == "option2") $checked2 = "checked='checked'";
314
- if ($sociable_options["icon_option"] == "option3") $checked3 = "checked='checked'";
315
- if ($sociable_options["icon_option"] == "option4") $checked4 = "checked='checked'";
316
- if ($sociable_options["icon_option"] == "option5") $checked5 = "checked='checked'";
317
- if ($sociable_options["icon_option"] == "option6") $checked6 = "checked='checked'";
318
-
319
- $imagepath = isset( $sociable_options['sociable_imagedir'] ) ? $sociable_options['sociable_imagedir'] : '' ;
320
-
321
- if ($imagepath == "") {
322
- $imagepath = trailingslashit( SOCIABLE_HTTP_PATH ) . 'images/';
323
- } else {
324
- $imagepath .= trailingslashit( $imagepath );
325
- }
326
- //echo $imagepath;
327
- ?>
328
-
329
- <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo$checked1?> value="option1" type="radio" /> <IMG src="<?php echo$imagepath?>icon_styles/<?php echo$sociable_options["icon_size"]?>/option1_<?php echo$sociable_options["icon_size"]?>.jpg" /> </SPAN>
330
- <BR/><BR/>
331
- <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo$checked2?> value="option2" type="radio" /> <IMG src="<?php echo$imagepath?>icon_styles/<?php echo$sociable_options["icon_size"]?>/option2_<?php echo$sociable_options["icon_size"]?>.jpg" /> </SPAN>
332
- <BR/><BR/>
333
- <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo$checked3?> value="option3" type="radio" /> <IMG src="<?php echo$imagepath?>icon_styles/<?php echo$sociable_options["icon_size"]?>/option3_<?php echo$sociable_options["icon_size"]?>.jpg" /> </SPAN>
334
- <BR/><BR/>
335
- <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo$checked4?> value="option4" type="radio" /> <IMG src="<?php echo$imagepath?>icon_styles/<?php echo$sociable_options["icon_size"]?>/option4_<?php echo$sociable_options["icon_size"]?>.jpg" /> </SPAN>
336
- <BR/><BR/>
337
- <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo$checked5?> value="option5" type="radio" /> <IMG src="<?php echo$imagepath?>icon_styles/<?php echo$sociable_options["icon_size"]?>/option5_<?php echo$sociable_options["icon_size"]?>.jpg" /> </SPAN>
338
- <BR/><BR/>
339
- <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo$checked6?> value="option6" type="radio" /> <IMG src="<?php echo$imagepath?>icon_styles/16/option_6_16.png" /> </SPAN>
340
- <BR/><BR/>
341
- </DIV>
342
-
343
- <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Locations');" >
344
- <TR>
345
- <TD class="Border-Left" ></TD><TD class="BG-Middle" id="Locations-Title" ><span id="Locations-Tab">+ </span><?php _e("Locations","sociable");?></TD><TD class="Border-Right"></TD>
346
- </TR>
347
- </TABLE>
348
- <BR/>
349
-
350
- <DIV class="Content-Box" id="Locations-Content" style="display:none;" >
351
- <DIV class="Locations-TXT" id="Locations-TXT" ><?php _e("Please select the locations that you wish to allow the Sociable plugin to insert itself.","sociable");?></DIV>
352
-
353
- <BR/>
354
- <DIV align="center" style="width:100%;">
355
- <TABLE align="center" class="Locations-List" cellspacing="0" border=0 cellpadding="10">
356
- <TR valign="top" >
357
- <TD align="right" class="Title" ><?php _e("Home page","sociable");?></TD>
358
- <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_front_page"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_front_page]" id="HomePage" /></TD>
359
- <TD align="left" class="Content">
360
- <SPAN class="TXT"><?php _e("The front page of the blog (if set to a static page), or the main blog page (if set to your latest posts).","sociable");?></SPAN>
361
-
362
- </TD>
363
- </TR>
364
-
365
- <TR valign="top" >
366
- <TD align="right" class="Title" ><?php _e("Blog page","sociable");?></TD>
367
- <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_home"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_home]" id="BlogPage" /></TD>
368
- <TD align="left" class="Content">
369
- <SPAN class="TXT"><?php _e("The home page of the blog if is set to your latest posts, or the posts page if the home page is set to a static page","sociable");?></SPAN>
370
-
371
- </TD>
372
- </TR>
373
-
374
- <TR valign="top" >
375
- <TD align="right" class="Title" ><?php _e("Posts","sociable");?></TD>
376
- <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_single"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_single]" id="Posts" /></TD>
377
- <TD align="left" class="Content">
378
- <SPAN class="TXT"><?php _e("Single post pages","sociable");?></SPAN>
379
-
380
- </TD>
381
- </TR>
382
-
383
- <TR valign="top" >
384
- <TD align="right" class="Title" ><?php _e("Pages","sociable");?></TD>
385
- <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_page"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_page]" id="Pages" /></TD>
386
- <TD align="left" class="Content">
387
- <SPAN class="TXT"><?php _e("Individual Wordpress pages","sociable");?></SPAN>
388
-
389
- </TD>
390
- </TR>
391
-
392
- <TR valign="top" >
393
- <TD align="right" class="Title" ><?php _e("Category archives","sociable");?></TD>
394
- <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_category"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_category]" id="CategoryArchives" /></TD>
395
- <TD align="left" class="Content">
396
- <SPAN class="TXT"><?php _e("Category archive pages","sociable");?></SPAN>
397
-
398
- </TD>
399
- </TR>
400
-
401
- <TR valign="top" >
402
- <TD align="right" class="Title" ><?php _e("Date archives","sociable");?></TD>
403
- <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_date"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_date]" id="DateArchives" /></TD>
404
- <TD align="left" class="Content">
405
- <SPAN class="TXT"><?php _e("Date archive pages","sociable");?> </SPAN>
406
-
407
- </TD>
408
- </TR>
409
-
410
- <TR valign="top" >
411
- <TD align="right" class="Title" ><?php _e("Tag archives","sociable");?></TD>
412
- <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_tag"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_tag]" id="TagArchives" /></TD>
413
- <TD align="left" class="Content">
414
- <SPAN class="TXT"><?php _e("Tag archive pages","sociable");?> </SPAN>
415
-
416
- </TD>
417
- </TR>
418
-
419
- <TR valign="top" >
420
- <TD align="right" class="Title" ><?php _e("Author archives","sociable");?></TD>
421
- <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_author"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_author]" id="AuthorArchives" /></TD>
422
- <TD align="left" class="Content">
423
- <SPAN class="TXT"><?php _e("Author archive pages","sociable");?></SPAN>
424
-
425
- </TD>
426
- </TR>
427
-
428
- <TR valign="top" >
429
- <TD align="right" class="Title" ><?php _e("Search results","sociable");?></TD>
430
- <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_search"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_search]" id="SearchResults" /></TD>
431
- <TD align="left" class="Content">
432
- <SPAN class="TXT"><?php _e("Search results pages","sociable");?></SPAN>
433
-
434
- </TD>
435
- </TR>
436
-
437
- <TR valign="top" >
438
- <TD align="right" class="Title" ><?php _e("RSS feeds","sociable");?></TD>
439
- <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_rss"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_rss]" id="RssFeeds" /></TD>
440
- <TD align="left" class="Content">
441
- <SPAN class="TXT"><?php _e("RSS feeds","sociable");?></SPAN>
442
-
443
- </TD>
444
- </TR>
445
-
446
-
447
- </TABLE>
448
- <BR/><BR/>
449
- </DIV>
450
- </DIV>
451
-
452
- <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('GeneralOptions');">
453
- <TR>
454
- <TD class="Border-Left" ></TD><TD class="BG-Middle" id="GeneralOptions-Title" ><span id="GeneralOptions-Tab"> + </span> <?php _e("General Options","sociable");?></TD><TD class="Border-Right"></TD>
455
- </TR>
456
- </TABLE>
457
- <BR/>
458
-
459
- <DIV class="Content-Box" id="GeneralOptions-Content" style="display:none;" >
460
-
461
- <BR/>
462
- <DIV align="center" style="width:100%;">
463
- <TABLE align="center" class="GeneralOptions-List" cellspacing="0" border=0 cellpadding ="10" >
464
- <TR valign="top" >
465
- <TD align="right" class="Title" ><?php _e("Automatic mode","sociable")?></TD>
466
- <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["automatic_mode"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[automatic_mode]" id="AutoMode" /></TD>
467
- <TD align="left" class="Content">
468
- <SPAN class="TXT"><?php _e("Do you want to automatically use Sociable on the locations specified?","sociable");?> </SPAN>
469
- <BR/>
470
- <SPAN class="sTXT">
471
- <?php _e("If this is unchecked, you will have to use the shortcode[sociable/] or template","sociable");?> tag ?php if( function_exists( do_sociable() ) ){ do_sociable(); }
472
- </SPAN>
473
-
474
- </TD>
475
- </TR>
476
-
477
-
478
- </TR>
479
- <TR valign="top" >
480
- <TD align="right" class="Title" ><?php _e("Use styleSheet","sociable");?></TD>
481
- <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["use_stylesheet"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[use_stylesheet]" id="UseStyleSheets" /></TD>
482
- <TD align="left" class="Content">
483
- <SPAN class="TXT"><?php _e("Do you want to use the default stylesheet for sociable?","sociable");?></SPAN>
484
- </TD>
485
- </TR>
486
- <TR valign="top" >
487
- <TD align="right" class="Title" ><?php _e("Use your own icons","sociable");?></TD>
488
- <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["custom_icons"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[custom_icons]" id="UseStyleSheets" /></TD>
489
- <TD align="left" class="Content">
490
- <SPAN class="TXT"><?php _e("Do you want to use your own icons for sociable?","sociable");?></SPAN>
491
- </TD>
492
- </TR>
493
- <TR valign="top" >
494
- <TD align="right" class="Title" ><?php _e("Use images","sociable");?></TD>
495
- <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["use_images"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[use_images]" id="UseImages" /></TD>
496
- <TD align="left" class="Content">
497
- <SPAN class="TXT"><?php _e("Do you want to use the Sociable images? If not, the plugin will insert plain text links.","sociable");?></SPAN>
498
- </TD>
499
- </TR>
500
-
501
-
502
- <TR valign="top" >
503
- <TD align="right" class="Title" ><?php _e("Use alpha mask","sociable");?></TD>
504
- <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["use_alphamask"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[use_alphamask]" id="AlphaMask" /></TD>
505
- <TD align="left" class="Content">
506
- <SPAN class="TXT"><?php _e("Do you want to use alpha masks on the images (available only on the Original Sociable)?","sociable");?></SPAN>
507
- </TD>
508
- </TR>
509
- <TR valign="top" >
510
- <TD align="right" class="Title" ><?php _e("Bottom and Top","sociable");?></TD>
511
- <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["topandbottom"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[topandbottom]" id="TopAndBottom" /></TD>
512
- <TD align="left" class="Content">
513
- <SPAN class="TXT"><?php _e("Do you want to use Sociable plugin to show up at the top and bottom?","sociable");?></SPAN>
514
- </TD>
515
- </TR>
516
- <TR valign="top" >
517
- <TD align="right" class="Title" ><?php _e("Open in new window","sociable");?></TD>
518
- <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["new_window"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[new_window]" id="OpenNewWindow" /></TD>
519
- <TD align="left" class="Content">
520
- <SPAN class="TXT"><?php _e("do you want to open the links in a new window?","sociable");?></SPAN>
521
- </TD>
522
- </TR>
523
-
524
-
525
-
526
- </TABLE>
527
-
528
- <BR/><BR/>
529
- </DIV>
530
- </DIV>
531
-
532
- <?php //<HR style="height:10px;background:#18305d;"/>?>
533
- <?php settings_fields( 'sociable_options_group' ); ?>
534
- </FORM>
535
- <DIV class="Content-Box" >
536
- <DIV id="ActionsBar">
537
- <DIV class="SaveChanges" onClick="document.getElementById('form1').submit();" style="cursor:pointer;line-height:15px;"><br/>
538
- <span style="margin:30px;"><?php _e("Save Changes","sociable");?></span>
539
- </DIV>
540
- <DIV class="ResetSociable" id="sociable_reset" name="sociable_reset" onClick="document.getElementById('sociable_reset_form').submit();" style="cursor:pointer;line-height:15px;font-size:12px;"><br/>
541
- <span style="margin:40px;margin-left:35px;"><?php _e("Reset Sociable","sociable");?></span>
542
- </DIV>
543
- <DIV class="UninstallSociable" onClick="document.getElementById('sociable_remove_form').submit();" style="cursor:pointer;line-height:15px;font-size:12px;"><br/>
544
- <span style="margin:25px;margin-left:20px;"><?php _e("Completly Uninstall Sociable","sociable");?></span>
545
- </DIV>
546
- </DIV>
547
- </DIV>
548
- <br>
549
- <br>
550
-
551
-
552
-
553
-
554
- <?php //do_settings_sections( 'sociable_options' ); ?>
555
-
556
-
557
-
558
-
559
-
560
- <form id="sociable_reset_form" action="" method="POST">
561
- <?php wp_nonce_field('sociable-reset'); ?>
562
- <input type="hidden" id="sociable_reset" name="sociable_reset" value="1">
563
- <?php //submit_button( __( 'Reset Sociable' ) , 'primary', 'sociable_reset', false ); ?>
564
- </form>
565
-
566
- <form id="sociable_remove_form" action="plugins.php" method="POST">
567
- <?php wp_nonce_field('deactivate-sociable'); ?>
568
- <input type="hidden" id="sociable_remove" name="sociable_remove" value="1">
569
- <?php //submit_button( __( 'Completely Uninstall Sociable' ) , 'primary', 'sociable_remove', false ); ?>
570
- </form>
571
-
572
- </div>
573
-
574
- <?php }
575
-
576
- function add_meta_box( $page ){
577
- add_meta_box( 'sociable_off' , __( 'Disable sociable' ), array( 'sociable_Admin_Options' , 'create_meta_box' ) , $page, 'side', 'default' );
578
- }
579
-
580
- function create_meta_box(){
581
- global $post;
582
- $sociableoff = false;
583
- $checked = '';
584
- if ( get_post_meta( $post->ID,'_sociableoff',true ) ) {
585
- $checked = 'checked="checked"';
586
- }
587
- wp_nonce_field( 'update_sociable_off' , 'sociable_nonce' );
588
- echo '<input type="checkbox" id="sociableoff" name="sociableoff" ' . $checked . ' /> <p class="description">' . __('Check This To Disable Sociable 2 On This Post Only.') . '</p>';
589
-
590
- }
591
-
592
- function save_post( $post_id ){
593
-
594
- if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
595
- return $post_id;
596
-
597
- // verify this came from the our screen and with proper authorization,
598
- // because save_post can be triggered at other times
599
-
600
- $nonce = ( isset( $_POST['sociable_nonce'] ) ) ? $_POST['sociable_nonce'] : false ;
601
-
602
- if ( ! $nonce || ! wp_verify_nonce( $nonce, 'update_sociable_off' ) )
603
- return $post_id;
604
-
605
-
606
- // Check permissions
607
- if ( 'page' == $_POST['post_type'] ){
608
- if ( !current_user_can( 'edit_page', $post_id ) )
609
- return;
610
- } else {
611
- if ( !current_user_can( 'edit_post', $post_id ) )
612
- return;
613
- }
614
-
615
- //Lets Do This
616
- if( isset( $_POST['sociableoff'] ) ){
617
- update_post_meta( $post_id, '_sociableoff' , $_POST['sociableoff'] );
618
- } else {
619
- delete_post_meta( $post_id, '_sociableoff' );
620
- }
621
-
622
- return $post_id;
623
- }
624
-
625
- /**
626
- * This Function Runs Before The Options Are Printed Out.
627
- */
628
- function general_options_callback(){
629
-
630
- return true;
631
- }
632
-
633
- /**
634
- * This Function Runs Before The Location Options Are Echoed Out.
635
- */
636
- function location_options_callback(){
637
- echo '<p>' . __( 'Please Select The Locations That You Wish To Allow The Sociable 2 Plugin To Insert The Links.' ) . '</p>';
638
- }
639
-
640
- /**
641
- * Adds A Function For The add_settings_field(); function
642
- *
643
- * should be passed:
644
- * $data = array(
645
- * 'id' => 'field_id_and_name',
646
- * 'description' => 'field Description Should Go Here, This is Not The Title, Rather The Description'
647
- * );
648
- */
649
- function Checkbox( $data ){
650
- global $sociable_options;
651
-
652
- //Save The Locations As a seperate array option
653
- if( isset( $data['locations'] ) ){
654
- $name = 'sociable_options[locations][' . $data['id'] . ']';
655
- $checked = ( isset( $sociable_options['locations'][$data['id']] ) ) ? 'checked="checked"' : '' ;
656
- } else {
657
- $name = 'sociable_options[' . $data['id'] . ']';
658
- $checked = ( isset( $sociable_options[$data['id']] ) ) ? 'checked="checked"' : '' ;
659
- }
660
-
661
-
662
-
663
- echo '<input ' . $checked . ' id="' . $data['id'] . '" name="' . $name . '" type="checkbox" /> <span class="description">' . $data['description'] . '</span>';
664
-
665
- }
666
-
667
- function TextInput( $data ){
668
- global $sociable_options;
669
-
670
- $value = ( isset( $sociable_options[$data['id']] ) ) ? $sociable_options[$data['id']] : '';
671
-
672
-
673
- echo '<input id="' . $data['id'] . '" name="sociable_options[' . $data['id'] . ']" size="40" type="text" value="' . esc_attr( $value ) . '" /> <br /><span class="description">' . $data['description'] . '</span>';
674
-
675
-
676
- }
677
-
678
- function TextArea( $data ){
679
- global $sociable_options;
680
-
681
- $value = ( isset( $sociable_options[$data['id']] ) ) ? $sociable_options[$data['id']] : '';
682
-
683
-
684
- echo '<textarea id="' . $data['id'] . '" name="sociable_options[' . $data['id'] . ']" >' . $value . '</textarea> <br /><span class="description">' . $data['description'] . '</span>';
685
-
686
-
687
- }
688
-
689
- function radio( $data ){
690
- global $sociable_options;
691
-
692
- $cur_val = ( isset( $sociable_options[$data['id']] ) ) ? $sociable_options[$data['id']] : 0 ;
693
-
694
- echo '<span class="description">' . $data['description'] . '</span><br />';
695
- foreach( $data['options'] as $value => $option ){
696
- $selected = ( $value == $cur_val ) ? 'checked="checked"' : '' ;
697
- echo '<input type="radio" name="sociable_options[' . $data['id'] . ']" value="' . $value . '" ' . $selected . ' /> <span>' . $option . '</span><br />';
698
- }
699
- }
700
-
701
-
702
- }
703
- ?>
704
- <?php function add_ie7() {
705
-
706
- echo'<!--[if lt IE 7]>
707
- <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js"
708
- type="text/javascript"></script>
709
- <![endif]-->
710
- <!--[if lt IE 8]>
711
- <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js"
712
- type="text/javascript"></script>
713
- <![endif]-->
714
- <!--[if lt IE 9]>
715
- <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
716
- <![endif]-->';
717
-
718
- }
719
- //add_action('admin_head', 'add_ie7' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
720
  ?>
1
+ <?php
2
+
3
+ /*
4
+ * Administration Options Class For Sociable 2
5
+ */
6
+
7
+ class sociable_Admin_Options{
8
+
9
+ /**
10
+ * A Function To Hook To Admin Init.
11
+ */
12
+ function init(){
13
+
14
+ register_setting( 'sociable_options_group' , 'sociable_options' );
15
+
16
+ //Add The Settings Sections
17
+ // add_settings_section( 'sociable_locations', __( 'Locations' ), array( 'sociable_Admin_Options' , 'location_options_callback' ) , 'sociable_options' );
18
+
19
+ // add_settings_section( 'sociable_options', __( 'General Options' ), array( 'sociable_Admin_Options' , 'general_options_callback' ) , 'sociable_options' );
20
+
21
+
22
+ register_setting( 'skyscraper_options_group' , 'skyscraper_options' );
23
+
24
+ // add_settings_section( 'sociable_locations', __( 'Locations' ), array( 'sociable_Admin_Options' , 'location_options_callback' ) , 'skyscraper_options' );
25
+
26
+ }
27
+
28
+ function skyscraper_init(){
29
+
30
+
31
+ register_setting( 'skyscraper_options_group' , 'skyscraper_options' );
32
+
33
+ add_settings_section( 'sociable_locations', __( 'Locations' ), array( 'sociable_Admin_Options' , 'location_options_callback' ) , 'skyscraper_options' );
34
+
35
+ //Add All The Settings Fields
36
+ //self::add_settings_fields();
37
+ }
38
+
39
+ function Select_Sociable_Page(){
40
+
41
+ global $sociable_options;
42
+ ?>
43
+
44
+
45
+
46
+ <div class="wrap" style="margin-top:25px">
47
+
48
+ <div style="width: 80%; margin-left: 25px; color: rgb(147, 147, 147); font-weight: bold; font-size: 15px;">
49
+ Congrats! You are joining the leader in the sharing space of WordPress plugins. Started more than 2 years ago, and with over 1,5mm downloads now, here comes the latest version 4.1 <br /><br />
50
+ You can select Sociable Classic and/or Sociable Skyscraper to spread the World, increase your traffic and your reader's ability to share your posts! <br /> <br />
51
+ </div>
52
+
53
+ <div class="wrap" style="width:42%;float:left">
54
+ <?php //wp_nonce_field('sociable-config'); ?>
55
+
56
+ <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px">
57
+
58
+
59
+ <TR>
60
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" >Skyscraper Sociable</TD><TD class="Border-Right"></TD>
61
+ </TR>
62
+ <TR>
63
+ <TD colspan="3" >
64
+ <table>
65
+ <tr>
66
+ <td>
67
+ <img src="/wp-content/plugins/sociable/images/skyphoto.png" style="margin-left:-5px;margin-top:20px;" />
68
+ </td>
69
+ <td valign="top" >
70
+ <br/><br/>
71
+ <span style="font-size:18px;color:#18305e;font-weight:bold;">Skyscraper Sociable</span>
72
+ <p style="font-size:12px;color:#939393;font-weight:bold;" >
73
+ Now introducing the ultimate advanced and feature packed plugin for setting up rating system on your WordPress blog.
74
+ <br/ ><br/ >
75
+ Sociable Skyscraper allows you to set up different rating systems for posts, pages and comments with great degree of customization.
76
+ <br/ ><br/ >
77
+ List of features is so smart and non-stop growing:
78
+ <br/ ><br/ >
79
+ You can get more "Sociable" with Sociable Skyscraper and easily getting
80
+ Rating and Review of: posts, pages, comments, Facebook, G+, LinkedIN,
81
+ Twitter as well as multiple ratings for posts and pages. Visitor's counter,
82
+ visitor's from Facebook and Twitter... As a plus you get an easy way to get
83
+ TOP or HOME from Sociable Skyscraper.
84
+ <br/ ><br/ >
85
+ Enjoy it now!!!
86
+ <br/ ><br/ >
87
+ Be Sociable, Share!!!
88
+ </p>
89
+
90
+ <a href="?page=skyscraper_options" style="color:#ffffff;text-decoration:none;" ><img src="/wp-content/plugins/sociable/images/button_newsky.png" ></a>
91
+
92
+ </td>
93
+ </tr>
94
+ </table>
95
+ </TD>
96
+
97
+
98
+ </TR>
99
+ </TABLE>
100
+ <BR/>
101
+
102
+ </div>
103
+ <div class="wrap" style="margin-left:30px;width:48%;float:left">
104
+ <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px">
105
+ <TR>
106
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" >Classic Sociable</TD><TD class="Border-Right"></TD>
107
+ </TR>
108
+ <TR>
109
+ <TD colspan="3" >
110
+ <div style="margin-left:5px;">
111
+ <br /><br />
112
+ <span style="font-size:18px;color:#18305e;font-weight:bold;">Classic Sociable</span>
113
+
114
+ <p style="font-size:12px;color:#939393;font-weight:bold;" >
115
+ We've improved our visual interface, the default icons are now much
116
+ <br/ >
117
+ more appealing, and a touch bit larger (you do want your readers to
118
+ <br/ >
119
+ share your posts, don't you? :) Get it now!
120
+ </p>
121
+ <img src="/wp-content/plugins/sociable/images/socciable_old.png" ><br/>
122
+ <div style="height: 176px;"></div>
123
+ <a href="?page=sociable_options" style="color:#ffffff;text-decoration:none;" ><img src="/wp-content/plugins/sociable/images/button_sociabb.png" ></a>
124
+ </div>
125
+ </TD>
126
+
127
+ </TR>
128
+ </TABLE>
129
+ <BR/>
130
+
131
+ </div>
132
+ </div>
133
+
134
+ <?php }
135
+
136
+ function create_select_options($value){
137
+
138
+ for($i=3; $i<=9; ){
139
+
140
+ $sel = "";
141
+ if ($value == $i){
142
+ $sel = "selected";
143
+ }
144
+ echo "<option ".$sel." value='".$i."'> latest ".$i."</option>";
145
+
146
+ $i = $i+3;
147
+ }
148
+
149
+ }
150
+
151
+
152
+
153
+ function Create_Options_Page_Skycraper(){
154
+
155
+ global $skyscraper_options;
156
+
157
+ ?>
158
+ <div class="wrap" style="width:48%;float:left">
159
+
160
+ <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >
161
+ <iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblogplay.com%2F&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=true&amp;action=recommend&amp;colorscheme=light&amp;font&amp;height=80&amp;appId=133479460071366" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:40px;" allowTransparency="true"></iframe>
162
+ <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://blogplay.com/" data-via="sociablesite" data-hashtags="sociable">Tweet</a>
163
+ <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
164
+ <br />
165
+ </div>
166
+ <form method="post" action="options.php" id="form1" autocomplete="off">
167
+
168
+ <?php wp_nonce_field('sociable-config'); ?>
169
+ <INPUT type="hidden" class="version-INPUT" id="version" name="skyscraper_options[version]" value="<?php echo $skyscraper_options["version"];?>" />
170
+ <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px">
171
+ <TR>
172
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Style Options","sociable");?></TD><TD class="Border-Right"></TD>
173
+ </TR>
174
+ </TABLE>
175
+ <BR/>
176
+ <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >
177
+ <?php _e("Text Size","sociable");?>:
178
+ <select id="text_size" name="skyscraper_options[text_size]" style="margin-left:73px">
179
+ <?php
180
+ for($px=10; $px <= 20; $px++) {
181
+
182
+ $sel = "";
183
+ if($px== $skyscraper_options["text_size"])$sel = "selected";
184
+ ?>
185
+ <option <?php echo $sel?> value="<?php echo $px?>"><?php echo $px?>px</option>
186
+ <?
187
+
188
+ }?>
189
+ </select>
190
+ </DIV>
191
+
192
+ <DIV style="margin:0 0 0 24px" class="Post-subTXT" id="Post-subTXT" ><?php _e("Widget Width","sociable");?>:
193
+ <select id="text_size" id="widget_width" name="skyscraper_options[widget_width]" style="margin-left:50px">
194
+ <?php
195
+ for($wi=70; $wi <= 90; ) {
196
+
197
+ $sel = "";
198
+ if($wi== $skyscraper_options["widget_width"])$sel = "selected";
199
+ ?>
200
+ <option <?php echo $sel?> value="<?php echo $wi?>"><?php echo $wi?>px</option>
201
+ <?php
202
+ $wi +=5;
203
+ }?>
204
+ </select>
205
+
206
+ </DIV>
207
+
208
+ <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" ><?php _e("Background Color","sociable");?>:
209
+
210
+ <input value="<?php echo $skyscraper_options['background_color']?>" style="margin-left:22px" id="background_color" name="skyscraper_options[background_color]" type="text" /> ( #fefefe default color)
211
+
212
+ </DIV>
213
+
214
+ <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" ><?php _e("Labels Color","sociable");?>:
215
+
216
+ <input value="<?php echo $skyscraper_options['labels_color']?>" style="margin-left:49px" id="background_color" name="skyscraper_options[labels_color]" type="text" /> ( #f7f7f7 default color)
217
+
218
+ </DIV>
219
+
220
+ <BR/>
221
+ <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Tagline-Title">
222
+ <TR>
223
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" >
224
+ Social Options
225
+ </TD>
226
+ <TD class="Border-Right"></TD>
227
+ </TR>
228
+ </TABLE>
229
+ <BR/>
230
+ <DIV style="margin:0 0 0 25px" class="Post-subTXT">
231
+ <?php _e("Your Twitter username","sociable");?>:
232
+ <?php
233
+
234
+ if (!empty($skyscraper_options["twitter_username"])){
235
+ $twitter_username = $skyscraper_options["twitter_username"];
236
+ }
237
+ else{
238
+ $twitter_username = "@";
239
+ }
240
+ ?>
241
+ <input type="text" name="skyscraper_options[twitter_username]" value="<?php echo $twitter_username?>" />
242
+ <select name="skyscraper_options[num_tweets]" id="num_tweets">
243
+ <?php self:: create_select_options($skyscraper_options["num_tweets"]) ?>
244
+ </select>
245
+ </DIV>
246
+ <BR/>
247
+ <DIV style="margin:0 0 0 25px" class="Post-subTXT">
248
+ <?php _e("Your RSS feed","sociable");?>:
249
+ <?php
250
+
251
+ if (!empty($skyscraper_options["rss_feed"])){
252
+ $rss_feed = $skyscraper_options["rss_feed"];
253
+ }
254
+ else{
255
+ $rss_feed = "http://";
256
+ }
257
+ ?>
258
+ <input type="text" name="skyscraper_options[rss_feed]" style="margin-left: 46px;" value="<?php echo $rss_feed?>" />
259
+ <select name="skyscraper_options[num_rss]" id="num_rss">
260
+ <?php self:: create_select_options($skyscraper_options["num_rss"]) ?>
261
+ </select>
262
+ </DIV>
263
+ <BR/>
264
+ <DIV style="margin:0 0 0 25px" class="Post-subTXT">
265
+ <?php
266
+ $checked = "";
267
+ if (isset($skyscraper_options["counters"]["check"])){
268
+ $checked = "checked";
269
+ }
270
+
271
+ $folded = "";
272
+ $unfolded= "";
273
+ if (isset($skyscraper_options["counters"]["folded"])){
274
+ if($skyscraper_options["counters"]["folded"] == "1"){
275
+ $folded = "checked";
276
+ $unfolded= "";
277
+ }else{
278
+ $unfolded = "checked";
279
+ $folded= "";
280
+ }
281
+ }
282
+
283
+
284
+ ?>
285
+ <input type="checkbox" <?php echo $checked ?> name="skyscraper_options[counters][check]" id="" />
286
+ Counters
287
+ <input name="skyscraper_options[counters][folded]" <?php echo $unfolded?> value="0" type="radio">Folded
288
+ <input name="skyscraper_options[counters][folded]" <?php echo $folded?> value="1" type="radio">Unfolded
289
+ </DIV>
290
+ <BR/>
291
+ <DIV style="margin:0 0 0 25px" class="Post-subTXT">
292
+ <?php
293
+ $checked = "";
294
+ if (isset($skyscraper_options["share"]["check"])){
295
+ $checked = "checked";
296
+ }
297
+
298
+ if (isset($skyscraper_options["share"]["folded"])){
299
+ if($skyscraper_options["share"]["folded"] == "1"){
300
+ $folded = "checked";
301
+ $unfolded= "";
302
+ }else{
303
+ $unfolded = "checked";
304
+ $folded= "";
305
+ }
306
+ }
307
+
308
+
309
+ ?>
310
+
311
+ <input type="checkbox" <?php echo $checked ?> name="skyscraper_options[share][check]" /> Share
312
+ <input style="margin-left:19px" <?php echo $unfolded?> value="0" name="skyscraper_options[share][folded]" type="radio">Folded
313
+ <input name="skyscraper_options[share][folded]" <?php echo $folded?> value="1" type="radio">Unfolded
314
+ </DIV>
315
+ <DIV class="Content-Box" id="Preview-Content">
316
+
317
+ </DIV>
318
+ <div style="clear:both"></div>
319
+
320
+ <BR/>
321
+ <DIV class="Content-Box" id="Preview-Content">
322
+ <ul class="items_li">
323
+ <li>
324
+ <?php
325
+ $checked = "";
326
+ if (isset($skyscraper_options['follow_us_check']) && $skyscraper_options['follow_us_check'] == "on"){
327
+ $checked = "checked";
328
+ }
329
+ ?>
330
+ Follow Us
331
+ <ul class="sub_item_li">
332
+ <li>
333
+ <?php
334
+ $checked = "";
335
+ if (isset($skyscraper_options['follow_us']['twitter']["active"]) && $skyscraper_options['follow_us']['twitter']["active"] == "on"){
336
+ $checked = "checked";
337
+ }
338
+ ?>
339
+ <input <?php echo $checked ?> name="skyscraper_options[follow_us][twitter][active]" type="checkbox" style="padding-bottom:5px" />
340
+ <?php
341
+ $account = "http://twitter.com/";
342
+ if(!empty($skyscraper_options["follow_us"]["twitter"]["account"])){
343
+ $account = $skyscraper_options["follow_us"]["twitter"]["account"];
344
+ }
345
+ ?>
346
+ <input type="hidden" value="t.png" name="skyscraper_options[follow_us][twitter][logo]" />
347
+ <img style="padding-bottom:5px" src="/wp-content/plugins/sociable/images/toolbar/t.png"/>
348
+ <input size="40" name="skyscraper_options[follow_us][twitter][account]" value="<?php echo $account?>" type="text" />
349
+ </li>
350
+ <li>
351
+ <?php
352
+ $checked = "";
353
+ if ( isset($skyscraper_options['follow_us']['feed']["active"]) && $skyscraper_options['follow_us']['feed']["active"] == "on"){
354
+ $checked = "checked";
355
+ }
356
+ ?>
357
+ <input <?php echo $checked ?> name="skyscraper_options[follow_us][feed][active]" type="checkbox" style="padding-bottom:5px" />
358
+ <input type="hidden" value="rss.png" name="skyscraper_options[follow_us][feed][logo]" />
359
+ <?php
360
+ $rss = "http://";
361
+ if(!empty($skyscraper_options["follow_us"]["feed"]["account"])){
362
+
363
+ $rss = $skyscraper_options["follow_us"]["feed"]["account"];
364
+ }
365
+ ?>
366
+ <img style="padding-bottom:5px" src="/wp-content/plugins/sociable/images/toolbar/rss.png"/>
367
+ <input size="40" value="<?php echo $rss?>" name="skyscraper_options[follow_us][feed][account]" type="text" />
368
+ </li>
369
+ <li>
370
+ <?php
371
+ $checked = "";
372
+ if ( isset($skyscraper_options['follow_us']['fb']["active"]) && $skyscraper_options['follow_us']['fb']["active"] == "on"){
373
+ $checked = "checked";
374
+ }
375
+ ?>
376
+ <input <?php echo $checked ?> name="skyscraper_options[follow_us][fb][active]" type="checkbox" style="padding-bottom:5px" />
377
+ <input type="hidden" value="f.png" name="skyscraper_options[follow_us][fb][logo]" />
378
+
379
+ <?php
380
+ $fb = "http://facebook.com/";
381
+ if(!empty($skyscraper_options["follow_us"]["fb"]["account"])){
382
+
383
+ $fb = $skyscraper_options["follow_us"]["fb"]["account"];
384
+ }
385
+ ?>
386
+ <img style="padding-bottom:5px" src="/wp-content/plugins/sociable/images/toolbar/f.png"/>
387
+ <input size="40" value="<?php echo $fb?>" name="skyscraper_options[follow_us][fb][account]" type="text" />
388
+ </li>
389
+
390
+ <li>
391
+ <?php
392
+ $checked = "";
393
+ if ( isset($skyscraper_options['follow_us']['li']["active"]) && $skyscraper_options['follow_us']['li']["active"] == "on"){
394
+ $checked = "checked";
395
+ }
396
+ ?>
397
+ <input <?php echo $checked ?> name="skyscraper_options[follow_us][li][active]" type="checkbox" style="padding-bottom:5px" />
398
+ <input type="hidden" value="i.png" name="skyscraper_options[follow_us][li][logo]" />
399
+ <input type="hidden" value="linkedin.com/in/" name="skyscraper_options[follow_us][li][url]" />
400
+ <?php
401
+ $li = "http://linkedin.com/";
402
+ if(!empty($skyscraper_options["follow_us"]["li"]["account"])){
403
+
404
+ $li = $skyscraper_options["follow_us"]["li"]["account"];
405
+ }
406
+ ?>
407
+ <img style="padding-bottom:5px" src="/wp-content/plugins/sociable/images/toolbar/i.png"/>
408
+ <input size="40" value="<?php echo $li?>" name="skyscraper_options[follow_us][li][account]" type="text" />
409
+ </li>
410
+ </ul>
411
+ </li>
412
+ </ul>
413
+ </DIV>
414
+ <br />
415
+ <!-- general options -->
416
+ <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('GeneralOptions');">
417
+ <TR>
418
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" id="GeneralOptions-Title" ><span id="GeneralOptions-Tab"> + </span> <?php _e("General Options","sociable");?></TD><TD class="Border-Right"></TD>
419
+ </TR>
420
+ </TABLE>
421
+ <BR/>
422
+
423
+ <DIV class="Content-Box" id="GeneralOptions-Content" style="display:none;" >
424
+
425
+ <BR/>
426
+ <DIV align="center" style="width:100%;">
427
+ <TABLE align="center" class="GeneralOptions-List" cellspacing="0" border=0 cellpadding ="10" >
428
+
429
+ <TR valign="top" >
430
+ <TD align="right" class="Title" ><?php _e("Widget Position","sociable")?></TD>
431
+ <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["widget_position"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[widget_position]" id="widget_position" /></TD>
432
+ <TD align="left" class="Content">
433
+ <SPAN class="TXT"><?php _e("Check if you want Sociable Fixed on the screen","sociable");?> </SPAN>
434
+ <BR/>
435
+
436
+ </TD>
437
+ </TR>
438
+ </TABLE>
439
+ <BR/><BR/>
440
+ </DIV>
441
+ </DIV>
442
+ <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Locations');" >
443
+ <TR>
444
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" id="Locations-Title" ><span id="Locations-Tab">+ </span><?php _e("Locations","sociable");?></TD><TD class="Border-Right"></TD>
445
+ </TR>
446
+ </TABLE>
447
+ <BR/>
448
+
449
+ <DIV class="Content-Box" id="Locations-Content" style="display:none;" >
450
+ <DIV class="Locations-TXT" id="Locations-TXT" ><?php _e("Please select the locations that you wish to allow the Sociable plugin to insert itself.","sociable");?></DIV>
451
+
452
+ <BR/>
453
+ <DIV align="center" style="width:100%;">
454
+ <TABLE align="center" class="Locations-List" cellspacing="0" border=0 cellpadding="10">
455
+ <TR valign="top" >
456
+ <TD align="right" class="Title" ><?php _e("Home page","sociable");?></TD>
457
+ <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_front_page"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_front_page]" id="HomePage" /></TD>
458
+ <TD align="left" class="Content">
459
+ <SPAN class="TXT"><?php _e("The front page of the blog (if set to a static page), or the main blog page (if set to your latest posts).","sociable");?></SPAN>
460
+
461
+ </TD>
462
+ </TR>
463
+
464
+ <TR valign="top" >
465
+ <TD align="right" class="Title" ><?php _e("Blog page","sociable");?></TD>
466
+ <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_home"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_home]" id="BlogPage" /></TD>
467
+ <TD align="left" class="Content">
468
+ <SPAN class="TXT"><?php _e("The home page of the blog if is set to your latest posts, or the posts page if the home page is set to a static page","sociable");?></SPAN>
469
+
470
+ </TD>
471
+ </TR>
472
+
473
+ <TR valign="top" >
474
+ <TD align="right" class="Title" ><?php _e("Posts","sociable");?></TD>
475
+ <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_single"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_single]" id="Posts" /></TD>
476
+ <TD align="left" class="Content">
477
+ <SPAN class="TXT"><?php _e("Single post pages","sociable");?></SPAN>
478
+
479
+ </TD>
480
+ </TR>
481
+
482
+ <TR valign="top" >
483
+ <TD align="right" class="Title" ><?php _e("Pages","sociable");?></TD>
484
+ <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_page"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_page]" id="Pages" /></TD>
485
+ <TD align="left" class="Content">
486
+ <SPAN class="TXT"><?php _e("Individual Wordpress pages","sociable");?></SPAN>
487
+
488
+ </TD>
489
+ </TR>
490
+
491
+ <TR valign="top" >
492
+ <TD align="right" class="Title" ><?php _e("Category archives","sociable");?></TD>
493
+ <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_category"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_category]" id="CategoryArchives" /></TD>
494
+ <TD align="left" class="Content">
495
+ <SPAN class="TXT"><?php _e("Category archive pages","sociable");?></SPAN>
496
+
497
+ </TD>
498
+ </TR>
499
+
500
+ <TR valign="top" >
501
+ <TD align="right" class="Title" ><?php _e("Date archives","sociable");?></TD>
502
+ <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_date"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_date]" id="DateArchives" /></TD>
503
+ <TD align="left" class="Content">
504
+ <SPAN class="TXT"><?php _e("Date archive pages","sociable");?> </SPAN>
505
+
506
+ </TD>
507
+ </TR>
508
+
509
+ <TR valign="top" >
510
+ <TD align="right" class="Title" ><?php _e("Tag archives","sociable");?></TD>
511
+ <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_tag"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_tag]" id="TagArchives" /></TD>
512
+ <TD align="left" class="Content">
513
+ <SPAN class="TXT"><?php _e("Tag archive pages","sociable");?> </SPAN>
514
+
515
+ </TD>
516
+ </TR>
517
+
518
+ <TR valign="top" >
519
+ <TD align="right" class="Title" ><?php _e("Author archives","sociable");?></TD>
520
+ <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_author"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_author]" id="AuthorArchives" /></TD>
521
+ <TD align="left" class="Content">
522
+ <SPAN class="TXT"><?php _e("Author archive pages","sociable");?></SPAN>
523
+
524
+ </TD>
525
+ </TR>
526
+
527
+ <TR valign="top" >
528
+ <TD align="right" class="Title" ><?php _e("Search results","sociable");?></TD>
529
+ <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_search"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_search]" id="SearchResults" /></TD>
530
+ <TD align="left" class="Content">
531
+ <SPAN class="TXT"><?php _e("Search results pages","sociable");?></SPAN>
532
+
533
+ </TD>
534
+ </TR>
535
+
536
+ <TR valign="top" >
537
+ <TD align="right" class="Title" ><?php _e("RSS feeds","sociable");?></TD>
538
+ <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_rss"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_rss]" id="RssFeeds" /></TD>
539
+ <TD align="left" class="Content">
540
+ <SPAN class="TXT"><?php _e("RSS feeds","sociable");?></SPAN>
541
+
542
+ </TD>
543
+ </TR>
544
+
545
+ </TABLE>
546
+ <BR/><BR/>
547
+ </DIV>
548
+ </DIV>
549
+
550
+ <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Active');" >
551
+ <TR>
552
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" id="Active-Title" ><span id="Active-Tab">+ </span><?php _e("Active Skyscraper","sociable");?></TD><TD class="Border-Right"></TD>
553
+ </TR>
554
+ </TABLE>
555
+
556
+ <div style="display: block;" id="Active-Content" class="Content-Box">
557
+
558
+ <br>
559
+ <div align="center" style="width:100%;">
560
+ <table align="center" cellspacing="0" cellpadding="10" border="0" class="GeneralOptions-List">
561
+
562
+ <tbody><tr valign="top">
563
+ <td align="right" class="Title">Active Skyscraper</td>
564
+ <td align="left" style="width:5px;">
565
+ <input <?php if(isset($skyscraper_options["active"])) echo "checked='checked'"?> type="checkbox" id="active" name="skyscraper_options[active]" ></td>
566
+ <td align="left" class="Content">
567
+ <span class="TXT">Check if you want Sociable Skyscraper enable </span>
568
+ <br>
569
+
570
+ </td>
571
+ </tr>
572
+ </tbody></table>
573
+ <br><br>
574
+ </div>
575
+ </div>
576
+ <br/><br/>
577
+ <?php settings_fields( 'skyscraper_options_group' ); ?>
578
+ </form>
579
+ <div class="Content-Box">
580
+
581
+ <form id="sociable_reset_form" action="" method="POST">
582
+ <?php wp_nonce_field('sociable-reset'); ?>
583
+ <input type="hidden" id="skyscraper_reset" name="skyscraper_reset" value="1">
584
+ <?php //submit_button( __( 'Reset Sociable' ) , 'primary', 'sociable_reset', false ); ?>
585
+ </form>
586
+
587
+ <div id="ActionsBar">
588
+ <div style="cursor:pointer;line-height:15px;" onclick="document.getElementById('form1').submit();" class="SaveChanges"><br>
589
+ <span style="margin:30px;">Save Changes</span>
590
+ </div>
591
+ <div style="cursor:pointer;line-height:15px;font-size:12px;" onclick="document.getElementById('sociable_reset_form').submit();" name="sociable_reset" id="sociable_reset" class="ResetSociable"><br>
592
+ <span style="margin:40px;margin-left:35px;">Reset Skyscraper</span>
593
+ </div>
594
+ </div>
595
+ </div>
596
+
597
+ </div>
598
+ <div style="float:left;width:49%;margin-left:15px" name="skyscraper" id="skyscraper">
599
+ <script type="text/javascript" src="../js/async_call.js"></script>
600
+ </div>
601
+
602
+ <?php
603
+ }
604
+
605
+ /**
606
+ * Add The Menu Pages To The Administration Options
607
+ */
608
+
609
+ function add_menu_pages(){
610
+
611
+ global $sociable_post_types;
612
+
613
+ $url = $_SERVER["QUERY_STRING"];
614
+ // $page[] = add_options_page( __( 'Sociable Options' ), __( 'Sociable Plugin' ), 'manage_options', 'sociable_select' , array( 'sociable_Admin_Options' , 'Select_Sociable_Page' ) );
615
+ //$page[]= add_plugins_page( __( 'Sociable Options' ), __( 'Sociable Plugin' ), 'manage_options', 'Create_Options_Page_Skycraper' );
616
+ //$page[]= add_plugins_page( 'sociable_options', 'sociable_options', 'read', 'Create_Options_Page' );
617
+ $page[] = add_options_page( "","", 'manage_options', 'sociable_select' , array( 'sociable_Admin_Options' , 'Select_Sociable_Page' ) );
618
+ $page[] = add_options_page( "","", 'manage_options', 'sociable_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page' ) );
619
+ $page[] = add_options_page( "","", 'manage_options', 'skyscraper_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page_Skycraper' ) );
620
+ // Add a new submenu under Settings:
621
+ // $page[] = add_options_page(__( 'Sociable Options' ),__( 'Sociable Plugin' ), 'manage_options', 'sociable_select', 'Select_Sociable_Page');
622
+
623
+ // Add a new top-level menu (ill-advised):
624
+ add_menu_page(__( 'Sociable Options' ), __( 'Select Sociable Plugin' ), 'manage_options', '/options-general.php?page=sociable_select' );
625
+
626
+ // Add a submenu to the custom top-level menu:
627
+ add_submenu_page('options-general.php?page=sociable_select', __( 'Sociable Options' ), __( 'Sociable Options' ), 'manage_options', 'sociable_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page' ) );
628
+
629
+ // Add a second submenu to the custom top-level menu:
630
+ add_submenu_page('options-general.php?page=sociable_select', __( 'Skyscraper Options' ), __( 'Skyscraper Options' ), 'manage_options', 'skyscraper_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page_Skycraper' ) );
631
+
632
+
633
+ //Add CSS And Javascript Specific To This Options Pages
634
+ add_action( 'admin_print_styles-' . $page[0] , array( 'sociable_Admin_Options' , 'enqueue_styles' ) );
635
+ add_action( 'admin_print_scripts-' . $page[0] , array( 'sociable_Admin_Options' , 'enqueue_scripts' ) );
636
+
637
+ add_action( 'admin_print_styles-' . $page[1] , array( 'sociable_Admin_Options' , 'enqueue_styles' ) );
638
+ add_action( 'admin_print_scripts-' . $page[1] , array( 'sociable_Admin_Options' , 'enqueue_scripts' ) );
639
+
640
+ add_action( 'admin_print_styles-' . $page[2] , array( 'sociable_Admin_Options' , 'enqueue_styles' ) );
641
+ add_action( 'admin_print_scripts-' . $page[2] , array( 'sociable_Admin_Options' , 'enqueue_scripts' ) );
642
+
643
+ if( isset( $_POST['sociable_reset'] ) ){
644
+ check_admin_referer( 'sociable-reset' );
645
+
646
+ sociable_reset();
647
+ wp_redirect( $_SERVER['HTTP_REFERER' ] );
648
+ }
649
+
650
+ if( isset( $_POST['skyscraper_reset'] ) ){
651
+ check_admin_referer( 'sociable-reset' );
652
+
653
+ skyscraper_reset();
654
+ wp_redirect( $_SERVER['HTTP_REFERER' ] );
655
+ }
656
+
657
+
658
+ /*
659
+ * We can create The Meta Boxes Here
660
+ */
661
+ foreach( $sociable_post_types as $type => $data ){
662
+ self::add_meta_box( $type );
663
+ }
664
+ //Also on posts and pages
665
+ self::add_meta_box( 'post' );
666
+ self::add_meta_box( 'page' );
667
+
668
+ }
669
+
670
+ /*
671
+ * Function to Enqueue The Styles For The Options Page
672
+ */
673
+ function enqueue_styles(){
674
+ wp_enqueue_style( 'style-admin-css', SOCIABLE_HTTP_PATH . 'css/style-admin.css' );
675
+ wp_enqueue_style( 'sociable-admin-css', SOCIABLE_HTTP_PATH . 'css/sociable-admin.css' );
676
+ wp_enqueue_style( 'sociablecss' , SOCIABLE_HTTP_PATH . 'css/sociable.css' );
677
+ }
678
+
679
+ /*
680
+ * Function To Enqueue The Scripts For The Options Page
681
+ */
682
+ function enqueue_scripts(){
683
+ wp_enqueue_script('jquery');
684
+ wp_enqueue_script('jquery-ui-core',false,array('jquery'));
685
+ wp_enqueue_script('jquery-ui-sortable',false,array('jquery','jquery-ui-core'));
686
+ wp_enqueue_script( 'sociable-admin-js', SOCIABLE_HTTP_PATH . 'js/sociable-admin.js' , array( 'jquery','jquery-ui-core' , 'jquery-ui-sortable' ) );
687
+ wp_enqueue_script( 'admin-fn-js', SOCIABLE_HTTP_PATH . 'js/admin-fn.js' , array( 'jquery','jquery-ui-core' , 'jquery-ui-sortable' ) );
688
+
689
+ }
690
+
691
+
692
+
693
+ /*
694
+ * Function To Add The Settings Fields.
695
+ */
696
+
697
+ function do_site_selection_list($plugin = 'sociable'){
698
+
699
+ if ($plugin == 'sociable'){
700
+
701
+ global $sociable_options;
702
+ $option_plugin = $sociable_options;
703
+ $name_plugin = "sociable_options";
704
+ }
705
+ else{
706
+
707
+ global $skyscraper_options;
708
+ $option_plugin = $skyscraper_options;
709
+ $name_plugin = "skyscraper_options";
710
+ }
711
+
712
+
713
+ $sociable_known_sites = get_option( 'sociable_known_sites' );
714
+
715
+ /*
716
+ * Sort The List Based On The Active Sites So That They Display Correctly.
717
+ */
718
+ $active_sites = isset( $option_plugin['active_sites'] ) && is_array( $option_plugin['active_sites'] ) ? $option_plugin['active_sites'] : array() ;
719
+
720
+ //Start Blank
721
+ $active = Array();
722
+
723
+ //Disabled Untill Proven Active
724
+ $disabled = $sociable_known_sites;
725
+
726
+ //Loop Through The Active Sites, sorting into 2 arrays
727
+ foreach( $active_sites as $sitename => $value ) {
728
+ $active[$sitename] = $disabled[$sitename];
729
+ unset( $disabled[$sitename] );
730
+ }
731
+
732
+ uksort($disabled, "strnatcasecmp");
733
+
734
+ $sites = array_merge( $active, $disabled );
735
+
736
+ $imagepath = isset( $option_plugin['sociable_imagedir'] ) ? $option_plugin['sociable_imagedir'] : '' ;
737
+
738
+ if ($imagepath == "") {
739
+ $imagepath = trailingslashit( SOCIABLE_HTTP_PATH ) . 'images/';
740
+ } else {
741
+ $imagepath .= trailingslashit( $imagepath );
742
+ }
743
+
744
+ $out ='<ul id="sociable_site_list" >' ;
745
+ $io = 0;
746
+ foreach( $sites as $sitename => $site ){
747
+
748
+
749
+ //Set Checked And Active If Relevant
750
+ if( array_key_exists( $sitename, $active_sites ) ){
751
+ $checked = 'checked="checked"';
752
+ $active = 'active';
753
+ } else {
754
+ $checked = '';
755
+ $active = 'inactive';
756
+ }
757
+ if ( $sitename != "More"){
758
+ if (isset($site["counter"])){
759
+ //$image = "<img src='".SOCIABLE_HTTP_PATH."images/".$site["favicon"]."'>";
760
+ $image = $site["url"];
761
+ }else{
762
+ $image = _get_sociable_image( $site, '' );
763
+ }
764
+ }else{
765
+ $image = "<img src='".SOCIABLE_HTTP_PATH."images/more.png'>";
766
+ }
767
+
768
+ // if ( ! isset( $site['spriteCoordinates']) || isset( $sociable_options['sociable_disablesprite'] ) ) {
769
+ // if (strpos($site['favicon'], 'http') === 0) {
770
+ // $imgsrc = $site['favicon'];
771
+ // } else {
772
+ // $imgsrc = $imagepath.$site['favicon'];
773
+ // }
774
+ // $img = '<img src="' . $imgsrc . '" width="16" height="16" />';
775
+ // } else {
776
+ // $imgsrc = $imagepath."services-sprite.gif";
777
+ // $services_sprite_url = $imagepath . "services-sprite.png";
778
+ // $spriteCoords = $site['spriteCoordinates'];
779
+ // $img = '<img src="' . $imgsrc . '" width="16" height="16" style="background: transparent url(' . $services_sprite_url . ') no-repeat; background-position:-' . $spriteCoords[0] . 'px -' . $spriteCoords[1] . 'px" />';
780
+ // }
781
+
782
+ $out .= '<li id="' . $sitename . '" class="' . $active . '">';
783
+
784
+ $out .= '<input type="checkbox" id="cb_' . $sitename . '" name="'.$name_plugin.'[active_sites][' . $sitename . ']" ' . $checked . ' />';
785
+
786
+ $out .= $image;
787
+ if (!isset($site["counter"])){
788
+ $out .= $sitename;
789
+ }
790
+
791
+ $out .= '</li>';
792
+
793
+ }
794
+
795
+
796
+ echo $out."</ul>";
797
+
798
+ }
799
+
800
+ /*
801
+ * Create The HTML For The Options Page
802
+ */
803
+ function Create_Options_Page(){
804
+ global $sociable_options;
805
+
806
+ ?>
807
+
808
+ <div class="wrap">
809
+
810
+ <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >
811
+ <iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblogplay.com%2F&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=true&amp;action=recommend&amp;colorscheme=light&amp;font&amp;height=80&amp;appId=133479460071366" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:40px;" allowTransparency="true"></iframe><br />
812
+ <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://blogplay.com/" data-via="sociablesite" data-hashtags="sociable">Tweet</a>
813
+ <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
814
+ <br />
815
+ </div>
816
+
817
+ <h2 style="clear:both;"><?php _e( 'Sociable Options' ); ?></h2>
818
+
819
+ <form method="post" action="options.php" id="form1" autocomplete="off">
820
+
821
+ <?php wp_nonce_field('sociable-config'); ?>
822
+ <INPUT type="hidden" class="version-INPUT" id="version" name="sociable_options[version]" value="<?php echo$sociable_options["version"];?>" />
823
+ <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px">
824
+ <TR>
825
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" >Preview</TD><TD class="Border-Right"></TD>
826
+ </TR>
827
+ </TABLE>
828
+ <BR/>
829
+
830
+ <DIV class="Content-Box" id="Preview-Content">
831
+ <DIV style="margin:0 0 0 25px" align="left" class="Live-Preview" id="Live-Preview" ><?php _e("Live preview of how Sociable will appear on your blog.","sociable")?></DIV>
832
+
833
+ <BR/>
834
+
835
+ <DIV style="margin:0 0 0 25px" class="Post-TXT" id="Post-TXT" ><?php _e("This is your post here...","sociable")?></DIV>
836
+
837
+ <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >Lorem ipsum dolor sit amet, consectetur adipiscing elit.</DIV>
838
+
839
+ <BR/>
840
+ <DIV style="margin:0 0 0 25px" id="ShareAndEnjoy" > <?php do_sociable(); ?></DIV>
841
+ </DIV>
842
+ <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Tagline-Title">
843
+ <TR>
844
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Tagline","sociable");?></TD><TD class="Border-Right"></TD>
845
+ </TR>
846
+ </TABLE>
847
+ <BR/>
848
+
849
+ <DIV class="Content-Box" id="Tagline-Content">
850
+ <DIV class="Tagline-TXT" id="Tagline-TXT" ><?php _e('Previously we used "Share and Enjoy", remember the good old days?',"sociable");?></DIV>
851
+
852
+ <BR/>
853
+ <DIV style="width:100%;height:60px;">
854
+ <INPUT type="text" class="Tagline-INPUT" id="tagline" name="sociable_options[tagline]" value="<?php echo$sociable_options["tagline"];?>" />
855
+
856
+ <DIV class="ToSociable" >
857
+ <INPUT type="checkbox" <?php if (!empty($sociable_options["help_grow"])) echo "checked = 'checked'";?> name="sociable_options[help_grow]" id="LinkToSociable" />
858
+ <?php _e("Link to Sociable","sociable");?><BR/>
859
+ <SPAN style="font-size:14px;"><?php _e("(Help us grow, please leave the link so others discover Sociable from your blog)","sociable");?></SPAN>
860
+ </DIV>
861
+ </DIV>
862
+ </DIV>
863
+
864
+
865
+ <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Tagline-Title">
866
+ <TR>
867
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Icons to Include","sociable");?></TD><TD class="Border-Right"></TD>
868
+ </TR>
869
+ </TABLE>
870
+ <BR/>
871
+
872
+ <DIV class="Content-Box" id="IconsToInclude-Box" style="">
873
+ <DIV class="IconsToInclude-TXT" id="IconsToInclude-TXT" >
874
+ <?php _e("Check the sites you want to appear on your blog.","sociable");?>
875
+ </DIV>
876
+
877
+ <BR/>
878
+
879
+ <?php self::do_site_selection_list(); ?>
880
+ </DIV>
881
+
882
+ <div class="soc_clear"></div>
883
+
884
+ <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="IconSize-Title" style="margin-top:20px;">
885
+ <TR>
886
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Icons Size","sociable");?></TD><TD class="Border-Right"></TD>
887
+ </TR>
888
+ </TABLE>
889
+ <BR/>
890
+
891
+ <DIV class="Content-Box" style="margin-left:-3px" id="IconSize-Content">
892
+ <?php
893
+ $checked16 = "";
894
+ $checked32 = "";
895
+ $checked48 = "";
896
+ $checked64 = "";
897
+ if ($sociable_options["icon_size"] == 16) $checked16 = "checked='checked'";
898
+ if ($sociable_options["icon_size"] == 32) $checked32 = "checked='checked'";
899
+ if ($sociable_options["icon_size"] == 48) $checked48 = "checked='checked'";
900
+ if ($sociable_options["icon_size"] == 64) $checked64 = "checked='checked'";
901
+ //echo $checked16;
902
+ ?>
903
+ <SPAN class="IconSize-Item"> <INPUT value="16" type="radio" name="sociable_options[icon_size]" <?php echo $checked16;?> />16x16 Pixels </SPAN>
904
+
905
+ <SPAN class="IconSize-Item"> <INPUT <?php echo$checked32;?> value="32" type="radio" name="sociable_options[icon_size]" />32x32 Pixels </SPAN>
906
+
907
+ <SPAN class="IconSize-Item"> <INPUT <?php echo$checked48;?> value="48" type="radio" name="sociable_options[icon_size]"/>48x48 Pixels </SPAN>
908
+
909
+ <SPAN class="IconSize-Item"> <INPUT <?php echo$checked64;?> value="64" type="radio" name="sociable_options[icon_size]" />64x64 Pixels </SPAN>
910
+
911
+
912
+ </DIV>
913
+
914
+ <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="IconSize-Title" style="margin-top:20px;">
915
+ <TR>
916
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Icons Style","sociable");?></TD><TD class="Border-Right"></TD>
917
+ </TR>
918
+ </TABLE>
919
+ <BR/>
920
+
921
+ <DIV class="Content-Box" id="IconSize-Content" style="padding:20px;">
922
+
923
+ <?php
924
+ $checked1 = "";
925
+ $checked2 = "";
926
+ $checked3 = "";
927
+ $checked4 = "";
928
+ $checked5 = "";
929
+ $checked6 = "";
930
+ if ($sociable_options["icon_option"] == "option1") $checked1 = "checked='checked'";
931
+ if ($sociable_options["icon_option"] == "option2") $checked2 = "checked='checked'";
932
+ if ($sociable_options["icon_option"] == "option3") $checked3 = "checked='checked'";
933
+ if ($sociable_options["icon_option"] == "option4") $checked4 = "checked='checked'";
934
+ if ($sociable_options["icon_option"] == "option5") $checked5 = "checked='checked'";
935
+ if ($sociable_options["icon_option"] == "option6") $checked6 = "checked='checked'";
936
+
937
+ $imagepath = isset( $sociable_options['sociable_imagedir'] ) ? $sociable_options['sociable_imagedir'] : '' ;
938
+
939
+ if ($imagepath == "") {
940
+ $imagepath = trailingslashit( SOCIABLE_HTTP_PATH ) . 'images/';
941
+ } else {
942
+ $imagepath .= trailingslashit( $imagepath );
943
+ }
944
+ //echo $imagepath;
945
+ ?>
946
+
947
+ <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo$checked1?> value="option1" type="radio" /> <IMG src="<?php echo$imagepath?>icon_styles/<?php echo$sociable_options["icon_size"]?>/option1_<?php echo$sociable_options["icon_size"]?>.jpg" /> </SPAN>
948
+ <BR/><BR/>
949
+ <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo$checked2?> value="option2" type="radio" /> <IMG src="<?php echo$imagepath?>icon_styles/<?php echo$sociable_options["icon_size"]?>/option2_<?php echo$sociable_options["icon_size"]?>.jpg" /> </SPAN>
950
+ <BR/><BR/>
951
+ <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo$checked3?> value="option3" type="radio" /> <IMG src="<?php echo$imagepath?>icon_styles/<?php echo$sociable_options["icon_size"]?>/option3_<?php echo$sociable_options["icon_size"]?>.jpg" /> </SPAN>
952
+ <BR/><BR/>
953
+ <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo$checked4?> value="option4" type="radio" /> <IMG src="<?php echo$imagepath?>icon_styles/<?php echo$sociable_options["icon_size"]?>/option4_<?php echo$sociable_options["icon_size"]?>.jpg" /> </SPAN>
954
+ <BR/><BR/>
955
+ <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo$checked5?> value="option5" type="radio" /> <IMG src="<?php echo$imagepath?>icon_styles/<?php echo$sociable_options["icon_size"]?>/option5_<?php echo$sociable_options["icon_size"]?>.jpg" /> </SPAN>
956
+ <BR/><BR/>
957
+ <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo$checked6?> value="option6" type="radio" /> <IMG src="<?php echo$imagepath?>icon_styles/16/option_6_16.png" /> </SPAN>
958
+ <BR/><BR/>
959
+ </DIV>
960
+
961
+ <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Locations');" >
962
+ <TR>
963
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" id="Locations-Title" ><span id="Locations-Tab">+ </span><?php _e("Locations","sociable");?></TD><TD class="Border-Right"></TD>
964
+ </TR>
965
+ </TABLE>
966
+ <BR/>
967
+
968
+ <DIV class="Content-Box" id="Locations-Content" style="display:none;" >
969
+ <DIV class="Locations-TXT" id="Locations-TXT" ><?php _e("Please select the locations that you wish to allow the Sociable plugin to insert itself.","sociable");?></DIV>
970
+
971
+ <BR/>
972
+ <DIV align="center" style="width:100%;">
973
+ <TABLE align="center" class="Locations-List" cellspacing="0" border=0 cellpadding="10">
974
+ <TR valign="top" >
975
+ <TD align="right" class="Title" ><?php _e("Home page","sociable");?></TD>
976
+ <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_front_page"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_front_page]" id="HomePage" /></TD>
977
+ <TD align="left" class="Content">
978
+ <SPAN class="TXT"><?php _e("The front page of the blog (if set to a static page), or the main blog page (if set to your latest posts).","sociable");?></SPAN>
979
+
980
+ </TD>
981
+ </TR>
982
+
983
+ <TR valign="top" >
984
+ <TD align="right" class="Title" ><?php _e("Blog page","sociable");?></TD>
985
+ <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_home"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_home]" id="BlogPage" /></TD>
986
+ <TD align="left" class="Content">
987
+ <SPAN class="TXT"><?php _e("The home page of the blog if is set to your latest posts, or the posts page if the home page is set to a static page","sociable");?></SPAN>
988
+
989
+ </TD>
990
+ </TR>
991
+
992
+ <TR valign="top" >
993
+ <TD align="right" class="Title" ><?php _e("Posts","sociable");?></TD>
994
+ <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_single"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_single]" id="Posts" /></TD>
995
+ <TD align="left" class="Content">
996
+ <SPAN class="TXT"><?php _e("Single post pages","sociable");?></SPAN>
997
+
998
+ </TD>
999
+ </TR>
1000
+
1001
+ <TR valign="top" >
1002
+ <TD align="right" class="Title" ><?php _e("Pages","sociable");?></TD>
1003
+ <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_page"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_page]" id="Pages" /></TD>
1004
+ <TD align="left" class="Content">
1005
+ <SPAN class="TXT"><?php _e("Individual Wordpress pages","sociable");?></SPAN>
1006
+
1007
+ </TD>
1008
+ </TR>
1009
+
1010
+ <TR valign="top" >
1011
+ <TD align="right" class="Title" ><?php _e("Category archives","sociable");?></TD>
1012
+ <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_category"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_category]" id="CategoryArchives" /></TD>
1013
+ <TD align="left" class="Content">
1014
+ <SPAN class="TXT"><?php _e("Category archive pages","sociable");?></SPAN>
1015
+
1016
+ </TD>
1017
+ </TR>
1018
+
1019
+ <TR valign="top" >
1020
+ <TD align="right" class="Title" ><?php _e("Date archives","sociable");?></TD>
1021
+ <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_date"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_date]" id="DateArchives" /></TD>
1022
+ <TD align="left" class="Content">
1023
+ <SPAN class="TXT"><?php _e("Date archive pages","sociable");?> </SPAN>
1024
+
1025
+ </TD>
1026
+ </TR>
1027
+
1028
+ <TR valign="top" >
1029
+ <TD align="right" class="Title" ><?php _e("Tag archives","sociable");?></TD>
1030
+ <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_tag"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_tag]" id="TagArchives" /></TD>
1031
+ <TD align="left" class="Content">
1032
+ <SPAN class="TXT"><?php _e("Tag archive pages","sociable");?> </SPAN>
1033
+
1034
+ </TD>
1035
+ </TR>
1036
+
1037
+ <TR valign="top" >
1038
+ <TD align="right" class="Title" ><?php _e("Author archives","sociable");?></TD>
1039
+ <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_author"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_author]" id="AuthorArchives" /></TD>
1040
+ <TD align="left" class="Content">
1041
+ <SPAN class="TXT"><?php _e("Author archive pages","sociable");?></SPAN>
1042
+
1043
+ </TD>
1044
+ </TR>
1045
+
1046
+ <TR valign="top" >
1047
+ <TD align="right" class="Title" ><?php _e("Search results","sociable");?></TD>
1048
+ <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_search"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_search]" id="SearchResults" /></TD>
1049
+ <TD align="left" class="Content">
1050
+ <SPAN class="TXT"><?php _e("Search results pages","sociable");?></SPAN>
1051
+
1052
+ </TD>
1053
+ </TR>
1054
+
1055
+ <TR valign="top" >
1056
+ <TD align="right" class="Title" ><?php _e("RSS feeds","sociable");?></TD>
1057
+ <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_rss"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_rss]" id="RssFeeds" /></TD>
1058
+ <TD align="left" class="Content">
1059
+ <SPAN class="TXT"><?php _e("RSS feeds","sociable");?></SPAN>
1060
+
1061
+ </TD>
1062
+ </TR>
1063
+
1064
+
1065
+ </TABLE>
1066
+ <BR/><BR/>
1067
+ </DIV>
1068
+ </DIV>
1069
+
1070
+ <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('GeneralOptions');">
1071
+ <TR>
1072
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" id="GeneralOptions-Title" ><span id="GeneralOptions-Tab"> + </span> <?php _e("General Options","sociable");?></TD><TD class="Border-Right"></TD>
1073
+ </TR>
1074
+ </TABLE>
1075
+ <BR/>
1076
+
1077
+ <DIV class="Content-Box" id="GeneralOptions-Content" style="display:none;" >
1078
+
1079
+ <BR/>
1080
+ <DIV align="center" style="width:100%;">
1081
+ <TABLE align="center" class="GeneralOptions-List" cellspacing="0" border=0 cellpadding ="10" >
1082
+ <TR valign="top" >
1083
+ <TD align="right" class="Title" ><?php _e("Automatic mode","sociable")?></TD>
1084
+ <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["automatic_mode"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[automatic_mode]" id="AutoMode" /></TD>
1085
+ <TD align="left" class="Content">
1086
+ <SPAN class="TXT"><?php _e("Do you want to automatically use Sociable on the locations specified?","sociable");?> </SPAN>
1087
+ <BR/>
1088
+ <SPAN class="sTXT">
1089
+ <?php _e("If this is unchecked, you will have to use the shortcode[sociable/] or template","sociable");?> tag ?php if( function_exists( do_sociable() ) ){ do_sociable(); }
1090
+ </SPAN>
1091
+
1092
+ </TD>
1093
+ </TR>
1094
+
1095
+
1096
+ </TR>
1097
+ <TR valign="top" >
1098
+ <TD align="right" class="Title" ><?php _e("Use styleSheet","sociable");?></TD>
1099
+ <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["use_stylesheet"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[use_stylesheet]" id="UseStyleSheets" /></TD>
1100
+ <TD align="left" class="Content">
1101
+ <SPAN class="TXT"><?php _e("Do you want to use the default stylesheet for sociable?","sociable");?></SPAN>
1102
+ </TD>
1103
+ </TR>
1104
+ <TR valign="top" >
1105
+ <TD align="right" class="Title" ><?php _e("Use your own icons","sociable");?></TD>
1106
+ <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["custom_icons"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[custom_icons]" id="UseStyleSheets" /></TD>
1107
+ <TD align="left" class="Content">
1108
+ <SPAN class="TXT"><?php _e("Do you want to use your own icons for sociable?","sociable");?></SPAN>
1109
+ </TD>
1110
+ </TR>
1111
+ <TR valign="top" >
1112
+ <TD align="right" class="Title" ><?php _e("Use images","sociable");?></TD>
1113
+ <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["use_images"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[use_images]" id="UseImages" /></TD>
1114
+ <TD align="left" class="Content">
1115
+ <SPAN class="TXT"><?php _e("Do you want to use the Sociable images? If not, the plugin will insert plain text links.","sociable");?></SPAN>
1116
+ </TD>
1117
+ </TR>
1118
+
1119
+
1120
+ <TR valign="top" >
1121
+ <TD align="right" class="Title" ><?php _e("Use alpha mask","sociable");?></TD>
1122
+ <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["use_alphamask"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[use_alphamask]" id="AlphaMask" /></TD>
1123
+ <TD align="left" class="Content">
1124
+ <SPAN class="TXT"><?php _e("Do you want to use alpha masks on the images (available only on the Original Sociable)?","sociable");?></SPAN>
1125
+ </TD>
1126
+ </TR>
1127
+ <TR valign="top" >
1128
+ <TD align="right" class="Title" ><?php _e("Bottom and Top","sociable");?></TD>
1129
+ <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["topandbottom"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[topandbottom]" id="TopAndBottom" /></TD>
1130
+ <TD align="left" class="Content">
1131
+ <SPAN class="TXT"><?php _e("Do you want to use Sociable plugin to show up at the top and bottom?","sociable");?></SPAN>
1132
+ </TD>
1133
+ </TR>
1134
+ <TR valign="top" >
1135
+ <TD align="right" class="Title" ><?php _e("Open in new window","sociable");?></TD>
1136
+ <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["new_window"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[new_window]" id="OpenNewWindow" /></TD>
1137
+ <TD align="left" class="Content">
1138
+ <SPAN class="TXT"><?php _e("do you want to open the links in a new window?","sociable");?></SPAN>
1139
+ </TD>
1140
+ </TR>
1141
+
1142
+
1143
+
1144
+ </TABLE>
1145
+
1146
+ <BR/><BR/>
1147
+ </DIV>
1148
+ </DIV>
1149
+ <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Active');" >
1150
+ <TR>
1151
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" id="Active-Title" ><span id="Active-Tab">+ </span><?php _e("Active Sociable Classic","sociable");?></TD><TD class="Border-Right"></TD>
1152
+ </TR>
1153
+ </TABLE>
1154
+
1155
+ <div style="display: block;" id="Active-Content" class="Content-Box">
1156
+
1157
+ <br>
1158
+ <div align="center" style="width:100%;">
1159
+ <table align="center" cellspacing="0" cellpadding="10" border="0" class="GeneralOptions-List">
1160
+
1161
+ <tbody><tr valign="top">
1162
+ <td align="right" class="Title">Active Sociable Classic</td>
1163
+ <td align="left" style="width:5px;">
1164
+ <input <?php if(isset($sociable_options["active"])) echo "checked='checked'"?> type="checkbox" id="active" name="sociable_options[active]" /></td>
1165
+ <td align="left" class="Content">
1166
+ <span class="TXT">Check if you want Sociable Classic enable </span>
1167
+ <br>
1168
+
1169
+ </td>
1170
+ </tr>
1171
+ </tbody></table>
1172
+ <br><br>
1173
+ </div>
1174
+ </div>
1175
+ <?php //<HR style="height:10px;background:#18305d;"/>?>
1176
+ <?php settings_fields( 'sociable_options_group' ); ?>
1177
+ </FORM>
1178
+ <DIV class="Content-Box" >
1179
+ <DIV id="ActionsBar">
1180
+ <DIV class="SaveChanges" onClick="document.getElementById('form1').submit();" style="cursor:pointer;line-height:15px;"><br/>
1181
+ <span style="margin:30px;"><?php _e("Save Changes","sociable");?></span>
1182
+ </DIV>
1183
+ <DIV class="ResetSociable" id="sociable_reset" name="sociable_reset" onClick="document.getElementById('sociable_reset_form').submit();" style="cursor:pointer;line-height:15px;font-size:12px;"><br/>
1184
+ <span style="margin:40px;margin-left:35px;"><?php _e("Reset Sociable","sociable");?></span>
1185
+ </DIV>
1186
+ <DIV class="UninstallSociable" onClick="document.getElementById('sociable_remove_form').submit();" style="cursor:pointer;line-height:15px;font-size:12px;"><br/>
1187
+ <span style="margin:25px;margin-left:20px;"><?php _e("Completly Uninstall Sociable","sociable");?></span>
1188
+ </DIV>
1189
+ </DIV>
1190
+ </DIV>
1191
+ <br>
1192
+ <br>
1193
+
1194
+
1195
+
1196
+
1197
+ <?php //do_settings_sections( 'sociable_options' ); ?>
1198
+
1199
+
1200
+
1201
+
1202
+
1203
+ <form id="sociable_reset_form" action="" method="POST">
1204
+ <?php wp_nonce_field('sociable-reset'); ?>
1205
+ <input type="hidden" id="sociable_reset" name="sociable_reset" value="1">
1206
+ <?php //submit_button( __( 'Reset Sociable' ) , 'primary', 'sociable_reset', false ); ?>
1207
+ </form>
1208
+
1209
+
1210
+
1211
+ </div>
1212
+
1213
+ <?php }
1214
+
1215
+ function add_meta_box( $page ){
1216
+ add_meta_box( 'sociable_off' , __( 'Disable sociable' ), array( 'sociable_Admin_Options' , 'create_meta_box' ) , $page, 'side', 'default' );
1217
+ }
1218
+
1219
+ function create_meta_box(){
1220
+ global $post;
1221
+ $sociableoff = false;
1222
+ $checked = '';
1223
+ if ( get_post_meta( $post->ID,'_sociableoff',true ) ) {
1224
+ $checked = 'checked="checked"';
1225
+ }
1226
+ wp_nonce_field( 'update_sociable_off' , 'sociable_nonce' );
1227
+ echo '<input type="checkbox" id="sociableoff" name="sociableoff" ' . $checked . ' /> <p class="description">' . __('Check This To Disable Sociable 2 On This Post Only.') . '</p>';
1228
+
1229
+ }
1230
+
1231
+ function save_post( $post_id ){
1232
+
1233
+ if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
1234
+ return $post_id;
1235
+
1236
+ // verify this came from the our screen and with proper authorization,
1237
+ // because save_post can be triggered at other times
1238
+
1239
+ $nonce = ( isset( $_POST['sociable_nonce'] ) ) ? $_POST['sociable_nonce'] : false ;
1240
+
1241
+ if ( ! $nonce || ! wp_verify_nonce( $nonce, 'update_sociable_off' ) )
1242
+ return $post_id;
1243
+
1244
+
1245
+ // Check permissions
1246
+ if ( 'page' == $_POST['post_type'] ){
1247
+ if ( !current_user_can( 'edit_page', $post_id ) )
1248
+ return;
1249
+ } else {
1250
+ if ( !current_user_can( 'edit_post', $post_id ) )
1251
+ return;
1252
+ }
1253
+
1254
+ //Lets Do This
1255
+ if( isset( $_POST['sociableoff'] ) ){
1256
+ update_post_meta( $post_id, '_sociableoff' , $_POST['sociableoff'] );
1257
+ } else {
1258
+ delete_post_meta( $post_id, '_sociableoff' );
1259
+ }
1260
+
1261
+ return $post_id;
1262
+ }
1263
+
1264
+ /**
1265
+ * This Function Runs Before The Options Are Printed Out.
1266
+ */
1267
+ function general_options_callback(){
1268
+
1269
+ return true;
1270
+ }
1271
+
1272
+ /**
1273
+ * This Function Runs Before The Location Options Are Echoed Out.
1274
+ */
1275
+ function location_options_callback(){
1276
+ echo '<p>' . __( 'Please Select The Locations That You Wish To Allow The Sociable 2 Plugin To Insert The Links.' ) . '</p>';
1277
+ }
1278
+
1279
+ /**
1280
+ * Adds A Function For The add_settings_field(); function
1281
+ *
1282
+ * should be passed:
1283
+ * $data = array(
1284
+ * 'id' => 'field_id_and_name',
1285
+ * 'description' => 'field Description Should Go Here, This is Not The Title, Rather The Description'
1286
+ * );
1287
+ */
1288
+ function Checkbox( $data ){
1289
+ global $sociable_options;
1290
+
1291
+ //Save The Locations As a seperate array option
1292
+ if( isset( $data['locations'] ) ){
1293
+ $name = 'sociable_options[locations][' . $data['id'] . ']';
1294
+ $checked = ( isset( $sociable_options['locations'][$data['id']] ) ) ? 'checked="checked"' : '' ;
1295
+ } else {
1296
+ $name = 'sociable_options[' . $data['id'] . ']';
1297
+ $checked = ( isset( $sociable_options[$data['id']] ) ) ? 'checked="checked"' : '' ;
1298
+ }
1299
+
1300
+
1301
+
1302
+ echo '<input ' . $checked . ' id="' . $data['id'] . '" name="' . $name . '" type="checkbox" /> <span class="description">' . $data['description'] . '</span>';
1303
+
1304
+ }
1305
+
1306
+ function TextInput( $data ){
1307
+ global $sociable_options;
1308
+
1309
+ $value = ( isset( $sociable_options[$data['id']] ) ) ? $sociable_options[$data['id']] : '';
1310
+
1311
+
1312
+ echo '<input id="' . $data['id'] . '" name="sociable_options[' . $data['id'] . ']" size="40" type="text" value="' . esc_attr( $value ) . '" /> <br /><span class="description">' . $data['description'] . '</span>';
1313
+
1314
+
1315
+ }
1316
+
1317
+ function TextArea( $data ){
1318
+ global $sociable_options;
1319
+
1320
+ $value = ( isset( $sociable_options[$data['id']] ) ) ? $sociable_options[$data['id']] : '';
1321
+
1322
+
1323
+ echo '<textarea id="' . $data['id'] . '" name="sociable_options[' . $data['id'] . ']" >' . $value . '</textarea> <br /><span class="description">' . $data['description'] . '</span>';
1324
+
1325
+
1326
+ }
1327
+
1328
+ function radio( $data ){
1329
+ global $sociable_options;
1330
+
1331
+ $cur_val = ( isset( $sociable_options[$data['id']] ) ) ? $sociable_options[$data['id']] : 0 ;
1332
+
1333
+ echo '<span class="description">' . $data['description'] . '</span><br />';
1334
+ foreach( $data['options'] as $value => $option ){
1335
+ $selected = ( $value == $cur_val ) ? 'checked="checked"' : '' ;
1336
+ echo '<input type="radio" name="sociable_options[' . $data['id'] . ']" value="' . $value . '" ' . $selected . ' /> <span>' . $option . '</span><br />';
1337
+ }
1338
+ }
1339
+
1340
+
1341
+ }
1342
+ ?>
1343
+ <?php function add_ie7() {
1344
+
1345
+ echo'<!--[if lt IE 7]>
1346
+ <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js"
1347
+ type="text/javascript"></script>
1348
+ <![endif]-->
1349
+ <!--[if lt IE 8]>
1350
+ <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js"
1351
+ type="text/javascript"></script>
1352
+ <![endif]-->
1353
+ <!--[if lt IE 9]>
1354
+ <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
1355
+ <![endif]-->';
1356
+
1357
+ }
1358
+ //add_action('admin_head', 'add_ie7' );
1359
  ?>
includes/rss_php.php ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ RSS_PHP - the PHP DOM based RSS Parser
4
+ Author: <rssphp.net>
5
+ Published: 200801 :: blacknet :: via rssphp.net
6
+
7
+ RSS_PHP is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.
8
+
9
+ Usage:
10
+ See the documentation at http://rssphp.net/documentation
11
+ Examples:
12
+ Can be found online at http://rssphp.net/examples
13
+ */
14
+
15
+ class rss_php {
16
+
17
+ public $document;
18
+ public $channel;
19
+ public $items;
20
+
21
+ /****************************
22
+ public load methods
23
+ ***/
24
+ # load RSS by URL
25
+ public function load($url=false, $unblock=true) {
26
+ if($url) {
27
+ if($unblock) {
28
+ $this->loadParser(file_get_contents($url, false, $this->randomContext()));
29
+ } else {
30
+ $this->loadParser(file_get_contents($url));
31
+ }
32
+ }
33
+ }
34
+ # load raw RSS data
35
+ public function loadRSS($rawxml=false) {
36
+ if($rawxml) {
37
+ $this->loadParser($rawxml);
38
+ }
39
+ }
40
+
41
+ /****************************
42
+ public load methods
43
+ @param $includeAttributes BOOLEAN
44
+ return array;
45
+ ***/
46
+ # return full rss array
47
+ public function getRSS($includeAttributes=false) {
48
+ if($includeAttributes) {
49
+ return $this->document;
50
+ }
51
+ return $this->valueReturner();
52
+ }
53
+ # return channel data
54
+ public function getChannel($includeAttributes=false) {
55
+ if($includeAttributes) {
56
+ return $this->channel;
57
+ }
58
+ return $this->valueReturner($this->channel);
59
+ }
60
+ # return rss items
61
+ public function getItems($includeAttributes=false) {
62
+ if($includeAttributes) {
63
+ return $this->items;
64
+ }
65
+ return $this->valueReturner($this->items);
66
+ }
67
+
68
+ /****************************
69
+ internal methods
70
+ ***/
71
+ private function loadParser($rss=false) {
72
+ if($rss) {
73
+ $this->document = array();
74
+ $this->channel = array();
75
+ $this->items = array();
76
+ $DOMDocument = new DOMDocument;
77
+ $DOMDocument->strictErrorChecking = false;
78
+ $DOMDocument->loadXML($rss);
79
+ $this->document = $this->extractDOM($DOMDocument->childNodes);
80
+ }
81
+ }
82
+
83
+ private function valueReturner($valueBlock=false) {
84
+ if(!$valueBlock) {
85
+ $valueBlock = $this->document;
86
+ }
87
+ foreach($valueBlock as $valueName => $values) {
88
+ if(isset($values['value'])) {
89
+ $values = $values['value'];
90
+ }
91
+ if(is_array($values)) {
92
+ $valueBlock[$valueName] = $this->valueReturner($values);
93
+ } else {
94
+ $valueBlock[$valueName] = $values;
95
+ }
96
+ }
97
+ return $valueBlock;
98
+ }
99
+
100
+ private function extractDOM($nodeList,$parentNodeName=false) {
101
+ $itemCounter = 0;
102
+ $tempNode = null;
103
+ foreach($nodeList as $values) {
104
+ if(substr($values->nodeName,0,1) != '#') {
105
+ if($values->nodeName == 'item') {
106
+ $nodeName = $values->nodeName.':'.$itemCounter;
107
+ $itemCounter++;
108
+ } else {
109
+ $nodeName = $values->nodeName;
110
+ }
111
+ $tempNode[$nodeName] = array();
112
+ if($values->attributes) {
113
+ for($i=0;$values->attributes->item($i);$i++) {
114
+ $tempNode[$nodeName]['properties'][$values->attributes->item($i)->nodeName] = $values->attributes->item($i)->nodeValue;
115
+ }
116
+ }
117
+ if(!$values->firstChild) {
118
+ $tempNode[$nodeName]['value'] = $values->textContent;
119
+ } else {
120
+ $tempNode[$nodeName]['value'] = $this->extractDOM($values->childNodes, $values->nodeName);
121
+ }
122
+ if(in_array($parentNodeName, array('channel','rdf:RDF'))) {
123
+ if($values->nodeName == 'item') {
124
+ $this->items[] = $tempNode[$nodeName]['value'];
125
+ } elseif(!in_array($values->nodeName, array('rss','channel'))) {
126
+ $this->channel[$values->nodeName] = $tempNode[$nodeName];
127
+ }
128
+ }
129
+ } elseif(substr($values->nodeName,1) == 'text') {
130
+ $tempValue = trim(preg_replace('/\s\s+/',' ',str_replace("\n",' ', $values->textContent)));
131
+ if($tempValue) {
132
+ $tempNode = $tempValue;
133
+ }
134
+ } elseif(substr($values->nodeName,1) == 'cdata-section'){
135
+ $tempNode = $values->textContent;
136
+ }
137
+ }
138
+ return $tempNode;
139
+ }
140
+
141
+ private function randomContext() {
142
+ $headerstrings = array();
143
+ $headerstrings['User-Agent'] = 'Mozilla/5.0 (Windows; U; Windows NT 5.'.rand(0,2).'; en-US; rv:1.'.rand(2,9).'.'.rand(0,4).'.'.rand(1,9).') Gecko/2007'.rand(10,12).rand(10,30).' Firefox/2.0.'.rand(0,1).'.'.rand(1,9);
144
+ $headerstrings['Accept-Charset'] = rand(0,1) ? 'en-gb,en;q=0.'.rand(3,8) : 'en-us,en;q=0.'.rand(3,8);
145
+ $headerstrings['Accept-Language'] = 'en-us,en;q=0.'.rand(4,6);
146
+ $setHeaders = 'Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'."\r\n".
147
+ 'Accept-Charset: '.$headerstrings['Accept-Charset']."\r\n".
148
+ 'Accept-Language: '.$headerstrings['Accept-Language']."\r\n".
149
+ 'User-Agent: '.$headerstrings['User-Agent']."\r\n";
150
+ $contextOptions = array(
151
+ 'http'=>array(
152
+ 'method'=>"GET",
153
+ 'header'=>$setHeaders
154
+ )
155
+ );
156
+ return stream_context_create($contextOptions);
157
+ }
158
+
159
+ }
160
+
161
+ ?>
includes/skyscraper_output.php ADDED
@@ -0,0 +1,781 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*
4
+
5
+ * The Output And Shortcode Functions For sociable
6
+
7
+ */
8
+
9
+
10
+ /*
11
+
12
+ * Returns The Skyscraper Output For The Global $post Object Do Not
13
+
14
+ */
15
+
16
+ function diff_date($date1, $date2){
17
+
18
+
19
+ $date1 = mktime(substr($date1,8,2), substr($date1,10,2), substr($date1,12,2), substr($date1,4,2), substr($date1,6,2), substr($date1,0,4));
20
+ $date2 = mktime(substr($date2,8,2), substr($date2,10,2), substr($date2,12,2), substr($date2,4,2), substr($date2,6,2), substr($date2,0,4));
21
+
22
+ $diff_time = ceil((($date2 - $date1)/60));
23
+
24
+ return $diff_time;
25
+ }
26
+
27
+
28
+
29
+
30
+ function skyscraper_html( $where = "" ){
31
+
32
+ global $skyscraper_options, $wp_query;
33
+
34
+ if (!is_admin() || 1==1){
35
+
36
+
37
+
38
+ // echo "<script type='text/javascript'>";
39
+ // echo "var skyscraper_dir = '".SOCIABLE_HTTP_PATH."' ;";
40
+ // echo "</script>";
41
+ echo " var skyscraper_dir = document.createElement('input');
42
+ skyscraper_dir.id = 'skyscraper_dir';
43
+ skyscraper_dir.type = 'hidden';
44
+ skyscraper_dir.value = '".SOCIABLE_HTTP_PATH."';
45
+ document.body.appendChild(skyscraper_dir); ";
46
+
47
+
48
+ $widget_width = str_replace("px", "", $skyscraper_options["widget_width"]);
49
+
50
+ $widget_position = "null";
51
+ if (isset($skyscraper_options["widget_position"])){
52
+ $widget_position = 1;
53
+ }
54
+
55
+ $labels_color = $skyscraper_options["labels_color"];
56
+ $text_size = str_replace("px", "", $skyscraper_options["text_size"]);
57
+ $background_color = $skyscraper_options["background_color"];
58
+
59
+ $addWhere = "";
60
+
61
+ if ($where == ""){
62
+ $addWhere = "var div = document.createElement('div');
63
+ div.id = 'skyscraper';
64
+ document.body.appendChild(div);";
65
+ }
66
+
67
+ $url_site= $_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
68
+
69
+ $script = "
70
+
71
+ if (!document.getElementById('fb-root')){
72
+ var div = document.createElement('div');
73
+ div.id = 'fb-root';
74
+ document.body.appendChild(div);
75
+ }
76
+
77
+ (function(d, s, id) {
78
+ var js, fjs = d.getElementsByTagName(s)[0];
79
+ if (d.getElementById(id)) return;
80
+ js = d.createElement(s); js.id = id;
81
+ js.src = \"http://connect.facebook.net/en_US/all.js#xfbml=1\";
82
+ fjs.parentNode.insertBefore(js, fjs);
83
+ }(document, 'script', 'facebook-jssdk'));
84
+
85
+
86
+ (function() {
87
+ var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
88
+ po.src = 'https://apis.google.com/js/plusone.js';
89
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
90
+ })();
91
+
92
+
93
+
94
+ (function() {
95
+ var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
96
+ po.src = 'http://platform.twitter.com/widgets.js';
97
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
98
+ })();
99
+
100
+ ".$addWhere."
101
+
102
+ jQuery(document).ready(function(){
103
+
104
+ oPlugin.toolbarStart('skyscraper', ".$widget_position.",230,".$widget_width.",'".$background_color."','".$labels_color."',false,'#6A6A6A',".$text_size.",'#587cc8');
105
+
106
+ ".get_share_node()."
107
+
108
+ ".get_counters_node()."
109
+
110
+ ".get_latest_node()."
111
+
112
+ ".get_mentions_node()."
113
+
114
+ ".get_follow_us_node()."
115
+
116
+ ".get_rss_node()."
117
+
118
+ oPlugin.CreateGoToTop('New_Id_12','Go Top','<img src=\"".SOCIABLE_HTTP_PATH."images/toolbar/gototop.png\" style=\"width:30px;\" />');
119
+
120
+
121
+ oPlugin.CreateGoToHome('New_Id_13','Go Home','<img src=\"".SOCIABLE_HTTP_PATH."images/toolbar/gotohome.png\" style=\"width:30px;\" />');
122
+
123
+ });
124
+
125
+
126
+
127
+ ";
128
+
129
+
130
+ echo $script;
131
+
132
+ }
133
+ }
134
+
135
+ function get_rss_node(){
136
+
137
+ $rss_node = "";
138
+ $latest_posts = "";
139
+ global $skyscraper_options;
140
+
141
+ $version = phpversion();
142
+
143
+ if ( substr($version,0,1) == 5 && isset($skyscraper_options["rss_feed"]) && $skyscraper_options["rss_feed"]!="http://"){
144
+
145
+ include("rss_php.php");
146
+
147
+ $rss = new rss_php;
148
+ $rss->load($skyscraper_options["rss_feed"]);
149
+ $items = $rss->getItems();
150
+
151
+ if (!empty($skyscraper_options["rss_feed"])){
152
+
153
+ if (count($items) > 0){
154
+
155
+ $cant = 0;
156
+ foreach($items as $item){
157
+
158
+ if ($cant <= $skyscraper_options["num_rss"]){
159
+
160
+ $title="";
161
+ if (isset($item["title"])){
162
+ $title = addslashes($item["title"]);
163
+ }
164
+ $description="";
165
+ if (isset($item["description"])){
166
+ $description = addslashes($item["description"]);
167
+ }
168
+ $guid="";
169
+ if (isset($item["link"])){
170
+ $guid = addslashes($item["link"]);
171
+ }
172
+ $pubDate="";
173
+ if (isset($item["pubDate"])){
174
+ $pubDate = ago(strtotime($item["pubDate"]));
175
+ }
176
+
177
+ $latest_posts .= "['".$title."','','".$description."','".$guid."','".$pubDate."'],";
178
+ }
179
+ else{
180
+ break;
181
+ }
182
+ $cant++;
183
+ }
184
+ $latest_posts = trim($latest_posts, ",");
185
+ }
186
+ }
187
+ }
188
+
189
+ if ($latest_posts != ""){
190
+
191
+ $rss_node = "var LatestBlogPostContent = [
192
+ ".$latest_posts."
193
+ ];
194
+ oPlugin.CreateNode('New_Id_5','Posts','',LatestBlogPostContent,'Notice',220,460);";
195
+ }
196
+ return $rss_node;
197
+ }
198
+
199
+ function get_latest_node(){
200
+
201
+ $latest_node = "";
202
+ global $skyscraper_options;
203
+
204
+ if ( isset($skyscraper_options["twitter_username"])){
205
+
206
+ $latest_tweets = get_option_tweets("skyscraper_latest");
207
+ if ($skyscraper_options["twitter_username"] != ""){
208
+
209
+ if ($latest_tweets != ""){
210
+
211
+ $latest_node = "var LastestTwittsContent = [
212
+ ".$latest_tweets."
213
+ ];
214
+
215
+ oPlugin.CreateNode('New_Id_3','Latest','',LastestTwittsContent,'Notice',220,460);";
216
+ }
217
+ }
218
+ }
219
+ return $latest_node;
220
+ }
221
+
222
+ function get_mentions_node(){
223
+
224
+ $mentions_node = "";
225
+
226
+ global $skyscraper_options;
227
+
228
+ if ( isset($skyscraper_options["twitter_username"])){
229
+
230
+ $mentions_tweets = get_option_tweets("skyscraper_mentions");
231
+ if ($skyscraper_options["twitter_username"] != ""){
232
+
233
+ if ($mentions_tweets != "" ){
234
+
235
+ $mentions_node = "var TweetsMentionsContent = [
236
+ ".$mentions_tweets."
237
+ ];
238
+ oPlugin.CreateNode('New_Id_4','Mentions','',TweetsMentionsContent,'Notice',220,460);";
239
+ }
240
+ }
241
+ }
242
+ return $mentions_node;
243
+ }
244
+
245
+ function get_counters_node(){
246
+
247
+ global $skyscraper_options;
248
+ global $title_shared;
249
+ global $url_shares;
250
+
251
+ $counters_node = "";
252
+
253
+ /*
254
+
255
+ <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script><span><a href="http://twitter.com/share" style="color:#ffffff" class="twitter-share-button" data-url="" data-text="" data-count="vertical" data-via="gBrowser" data-lang="en">Tweet</a></span>
256
+
257
+ */
258
+ if ((!empty($skyscraper_options["counters"]["check"]))){
259
+
260
+ $counters_node = " var url = '". addslashes($url_shares)."';
261
+ var title = '".addslashes($title_shared)."';
262
+
263
+ var counter = '<table align=\"center\" cellspacing=\"0\" cellpadding=\"0\" ><tr><td style=\"height:72px;width:50px;\" align=\"center\">';
264
+ counter += '<div class=\"fb-like\" data-send=\"false\" data-layout=\"box_count\" data-width=\"50\" data-href=\"'+url+'\" data-show-faces=\"false\"></div>';
265
+ counter += '</td></tr>';
266
+ counter += '<tr><td align=\"center\">';
267
+ counter +=' <div class=\"g-plusone\" data-size=\"tall\" data-href=\"'+url+'\"></div>';
268
+ counter += '</td></tr>';
269
+ counter += '<tr><td align=\"center\" style=\"height:72px\">';
270
+ counter += '<a href=\"https://twitter.com/share\" data-with=\"50\" data-text=\"'+ title +' (via @sociablesite)\" data-url=\"'+ url + '\" class=\"twitter-share-button\" data-count=\"vertical\">Tweet</a>';
271
+ counter += '</td></tr>';
272
+ counter += '</table>';
273
+
274
+ oPlugin.CreateSimpleNode('New_Id_2','Counters<br/>', counter ,".$skyscraper_options["counters"]["folded"].");
275
+ ";
276
+ }
277
+
278
+ return $counters_node;
279
+
280
+ }
281
+
282
+ function get_share_node(){
283
+
284
+ global $skyscraper_options;
285
+
286
+ $share_node = "";
287
+
288
+ if (!empty($skyscraper_options["share"]["check"])){
289
+
290
+ $share_buttons = share_links();
291
+ $share_node = "oPlugin.CreateSimpleNode('New_Id_1','Share', '".$share_buttons."',".$skyscraper_options["share"]["folded"].");";
292
+ }
293
+
294
+ return $share_node;
295
+
296
+ }
297
+
298
+ function get_follow_us_node(){
299
+
300
+ $follow_us_node = "";
301
+ global $skyscraper_options;
302
+
303
+ if (isset($skyscraper_options["follow_us"])){
304
+
305
+ $follow_info = empty_accounts();
306
+
307
+ if ( $follow_info["active"] > 0 && ($follow_info["empty"] < $follow_info["active"])){
308
+
309
+ $follow_us_node = "oPlugin.CreateNode('New_Id_6','Follow', '', '".follow_links()."','Plano',40,140)";
310
+ }
311
+ }
312
+ return $follow_us_node;
313
+ }
314
+
315
+ function empty_accounts(){
316
+
317
+ $empty = 0;
318
+ $active = 0;
319
+ global $skyscraper_options;
320
+
321
+ foreach($skyscraper_options["follow_us"] as $follow_us){
322
+
323
+ if (empty($follow_us["account"])){
324
+ $empty++;
325
+ }
326
+
327
+ if (isset($follow_us["active"])){
328
+ $active++;
329
+ }
330
+ }
331
+
332
+ return array("empty" =>$empty, "active"=>$active);
333
+ }
334
+
335
+ function follow_links(){
336
+
337
+ global $skyscraper_options;
338
+
339
+ $follow_buttons = "";
340
+
341
+ foreach($skyscraper_options["follow_us"] as $follow_us){
342
+
343
+ $follow_us["account"]= trim($follow_us["account"]);
344
+
345
+ if (!empty($follow_us["active"]) && !empty($follow_us["account"]) ){
346
+
347
+ $follow_us["account"] = str_replace("http://", "", $follow_us["account"]);
348
+ $follow_us["account"] = "http://".$follow_us["account"];
349
+
350
+ $follow_buttons .= "<a target=\'_blank\' rel=\'nofollow\' href=\'".$follow_us["account"]."\'><img src=\'".SOCIABLE_HTTP_PATH."images/toolbar/".$follow_us["logo"]."\' /></a>";
351
+ }
352
+ }
353
+
354
+ return $follow_buttons;
355
+ }
356
+
357
+ function share_links(){
358
+
359
+ $url = get_bloginfo('wpurl');
360
+ $blogname = get_bloginfo('name');
361
+
362
+ global $title_shared;
363
+ global $url_shares;
364
+
365
+ $page = $url_shares;
366
+ $permalink = $url_shares;
367
+
368
+ $title = $title_shared;
369
+
370
+
371
+ $share_links = array();
372
+ $share_links = array(
373
+
374
+ "twitter" => array('favicon' => 't.png',
375
+ 'url' => 'http://twitter.com/intent/tweet?text='.$title.'%20-%20'.$permalink.'%20(via%20@sociablesite)',
376
+ 'title' => "Share on Twitter"),
377
+
378
+ "facebook" => array('favicon' => 'f.png',
379
+ 'url' => 'http://www.facebook.com/share.php?u='.$permalink.'&amp;t='.$title.'',
380
+ 'title' => "Share on Facebook"),
381
+
382
+ "google" => array('favicon' => 'g.png',
383
+ 'url' => 'https://mail.google.com/mail/?view=cm&fs=1&to&su='.$title.'&body='.$permalink.'&ui=2&tf=1&shva=1',
384
+ 'title' => "Share on Gmail"),
385
+
386
+ "favorites" => array('favicon' => 'fv.png',
387
+ 'url' => 'javascript:AddToFavorites();',
388
+ 'title' => "Add to favorites - doesn\'t work in Chrome"),
389
+
390
+ "stumble" => array('favicon' => 's.png',
391
+ 'url' => 'http://www.stumbleupon.com/submit?url='.$permalink.'&title='.$title.'',
392
+ 'title' => "Share on StumpleUpon"),
393
+
394
+ "delicious" => array('favicon' => 'o.png',
395
+ 'url' => 'http://delicious.com/post?url='.$permalink.'&amp;title='.$title.'&amp;notes=EXCERPT',
396
+ "title" => "Share on delicious"),
397
+
398
+ "reader" => array('favicon' => 'n.png',
399
+ 'url' => 'http://www.google.com/reader/link?url='.$permalink.'&amp;title='.$title.'&amp;srcURL='.$permalink.'&amp;srcTitle='.$blogname.'',
400
+ "title" => "Share on Google Reader"),
401
+
402
+ "linkedin" => array('favicon' => 'i.png',
403
+ 'url' => 'http://www.linkedin.com/shareArticle?mini=true&amp;url='.$permalink.'&amp;title='.$title.'&amp;source='.$blogname.'&amp;summary=EXCERPT',
404
+ "title" => "Share on LinkedIn")
405
+
406
+ );
407
+
408
+ $share_buttons = "";
409
+
410
+ foreach($share_links as $link){
411
+
412
+ $share_buttons .= "<a target=\'_blank\' rel=\'nofollow\' href=\'".$link["url"]."\' title=\'".$link["title"]."\'><img src=\'".SOCIABLE_HTTP_PATH."images/toolbar/".$link["favicon"]."\' /></a>";
413
+ }
414
+
415
+ return $share_buttons;
416
+ }
417
+
418
+
419
+
420
+ /*
421
+
422
+ * Template Tag To Echo The Sociable 2 HTML
423
+
424
+ */
425
+
426
+ function do_skyscraper(){
427
+
428
+ echo skyscraper_html();
429
+
430
+ }
431
+
432
+
433
+
434
+ /*
435
+
436
+ * Sociable 2 Shortcode
437
+
438
+ */
439
+
440
+ function skyscraper_shortcode(){
441
+
442
+ return skyscraper_html();
443
+
444
+ }
445
+
446
+ function auto_skyscraper($content){
447
+
448
+ global $skyscraper_options;
449
+
450
+ if( ! isset( $skyscraper_options['active'] ) ){
451
+
452
+ $content = "";
453
+ return $content;
454
+ }
455
+
456
+
457
+ if( ! isset( $skyscraper_options['locations'] ) || ! is_array( $skyscraper_options['locations'] ) || empty( $skyscraper_options['locations'] ) ){
458
+
459
+ $content = "";
460
+
461
+ } else {
462
+
463
+ $locations = $skyscraper_options['locations'];
464
+
465
+ }
466
+
467
+ /*
468
+
469
+ * Determine if we are supposed to be displaying the output here.
470
+
471
+ */
472
+
473
+ $display = false;
474
+
475
+
476
+
477
+ /*
478
+
479
+ * is_single is a unique case it still returning true
480
+
481
+ */
482
+
483
+
484
+ //If We Can Verify That We are in the correct loaction, simply add something to the $display array, and test for a true result to continue.
485
+
486
+ foreach( $locations as $location => $val ){
487
+
488
+
489
+ //First We Handle is_single() so it returning true on Single Post Type Pages is not an issue, this is not the intended functionality of this plugin
490
+
491
+ if( $location == 'is_single' ){
492
+
493
+ //If we are not in a post, lets ignore this one for now
494
+
495
+ if( is_single() && get_post_type() == 'post' ){
496
+
497
+ $display = true;
498
+
499
+ break;
500
+
501
+ } else {
502
+
503
+ continue; // So not to trigger is_single later in this loop, but still be allowed to handle others
504
+
505
+ }
506
+
507
+
508
+
509
+ } elseif( strpos( $location , 'is_single_posttype_' ) === 0 ){ //Now We Need To Check For The Variable Names, Taxonomy Archives, Post Type Archives and Single Custom Post Types.
510
+
511
+
512
+
513
+ //Single Custom Post Type
514
+
515
+ $post_type = str_replace( 'is_single_posttype_' , '' , $location );
516
+
517
+ if( is_single() && get_post_type() == $post_type ){
518
+
519
+ $display = true;
520
+
521
+ break;
522
+
523
+ }
524
+
525
+
526
+
527
+ } elseif( strpos( $location , 'is_posttype_archive_' ) === 0 ){
528
+
529
+
530
+
531
+ //Custom Post Type Archive
532
+
533
+ $post_type = str_replace( 'is_posttype_archive_' , '' , $location );
534
+
535
+ if( is_post_type_archive( $post_type ) ){
536
+
537
+ $display = true;
538
+
539
+ break;
540
+
541
+ }
542
+
543
+
544
+
545
+ } elseif( strpos( $location , 'is_taxonomy_archive_' ) === 0 ) {
546
+
547
+
548
+
549
+ //Taxonomy Archive
550
+
551
+ $taxonomy = str_replace( 'is_taxonomy_archive_' , '' , $location );
552
+
553
+ if( is_tax( $taxonomy ) ){
554
+
555
+ $display = true;
556
+
557
+ break;
558
+
559
+ }
560
+
561
+
562
+
563
+ } elseif( function_exists( $location ) ) {
564
+
565
+
566
+
567
+ //Standard conditional tag, these will return BOOL
568
+
569
+ if( call_user_func( $location ) === true ){
570
+
571
+ $display = true;
572
+
573
+ break;
574
+
575
+ }
576
+
577
+
578
+
579
+ } else {
580
+
581
+ continue;
582
+
583
+ }
584
+
585
+
586
+
587
+
588
+
589
+ }
590
+
591
+
592
+
593
+ //If We have passed all the checks and are looking in the right place lets do this thang
594
+
595
+ if( isset( $skyscraper_options['automatic_mode'] ) && $display === true ){
596
+
597
+ if (isset($skyscraper_options["topandbottom"])){
598
+
599
+ $content = skyscraper_html();
600
+
601
+ }else{
602
+
603
+ $content = skyscraper_html();
604
+
605
+ }
606
+
607
+ }
608
+ else{
609
+ $content = skyscraper_html();
610
+ }
611
+
612
+
613
+
614
+
615
+
616
+ return $content;
617
+ }
618
+
619
+
620
+ function get_tweets_username($username_complete){
621
+
622
+ if (function_exists('curl_init')) {
623
+
624
+ // last tweets
625
+ $username = str_replace("@", "", $username_complete);
626
+ $url = "https://api.twitter.com/1/statuses/user_timeline/".$username.".json";
627
+ $latest = curl_call($url);
628
+ $latest_row = parser_twitter_results($latest,0);
629
+ update_option( "skyscraper_latest", $latest_row );
630
+
631
+ // last mentions
632
+ $url = "http://search.twitter.com/search.json?q=@".$username."&rpp=5&include_entities=true&result_type=mixed";
633
+ $mentions = curl_call($url);
634
+
635
+ if (count($mentions["results"]) > 1){
636
+
637
+ $mentions_row = parser_twitter_results($mentions["results"],1);
638
+ update_option( "skyscraper_mentions", $mentions_row );
639
+ }
640
+ }
641
+ }
642
+
643
+ function ago($time){
644
+
645
+ $periods = array("second", "minute", "hour", "day", "week", "month", "year", "decade");
646
+ $lengths = array("60","60","24","7","4.35","12","10");
647
+
648
+ $now = time();
649
+
650
+ $difference = $now - $time;
651
+ $tense = "ago";
652
+
653
+ for($j = 0; $difference >= $lengths[$j] && $j < count($lengths)-1; $j++) {
654
+ $difference /= $lengths[$j];
655
+ }
656
+
657
+ $difference = round($difference);
658
+
659
+ if($difference != 1) {
660
+ $periods[$j].= "s";
661
+ }
662
+
663
+ return $difference." ".$periods[$j]."ago";
664
+ }
665
+
666
+
667
+ function parser_twitter_results($results = array(), $mention){
668
+
669
+ $options_latest = array();
670
+ $options_latest = array("date" => date("YmdHis"));
671
+ global $skyscraper_options;
672
+ $i = 0;
673
+
674
+ if (is_array($results)){
675
+
676
+ foreach($results as $tweet){
677
+
678
+ $options_latest[$i] = array();
679
+ $options_latest[$i]["text"] = $tweet["text"];
680
+ $options_latest[$i]["created_at"] = ago(strtotime($tweet["created_at"]));
681
+
682
+ if ($mention){
683
+ $options_latest[$i]["name"] = $tweet["from_user_name"];
684
+ }
685
+ else{
686
+ $options_latest[$i]["name"] = $tweet["user"]["name"];
687
+ }
688
+
689
+ $i++;
690
+ if ($i == $skyscraper_options["num_tweets"]){
691
+ break;
692
+ }
693
+ }
694
+ }
695
+
696
+ return $options_latest;
697
+ }
698
+
699
+ function curl_call($url){
700
+
701
+ $ch = curl_init();
702
+ curl_setopt($ch, CURLOPT_URL, $url);
703
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
704
+ curl_setopt($ch, CURLOPT_TIMEOUT, 3);
705
+ curl_setopt($ch, CURLINFO_HEADER_OUT, true);
706
+ $output = curl_exec($ch);
707
+ $info = curl_getinfo($ch);
708
+ curl_close($ch);
709
+
710
+ if ($info["http_code"] == "200"){
711
+
712
+ $return = json_decode($output,1);
713
+ }
714
+ else{
715
+ $return = false;
716
+ }
717
+
718
+ return $return;
719
+ }
720
+
721
+ function get_option_tweets($option){
722
+
723
+ global $skyscraper_options;
724
+ $skyscraper_latest = get_option($option);
725
+
726
+ if (empty($skyscraper_latest)){
727
+
728
+ get_tweets_username($skyscraper_options["twitter_username"]);
729
+ $skyscraper_latest = get_option($option);
730
+ }
731
+ else{
732
+
733
+ // 5 minutes
734
+ if (diff_date($skyscraper_latest["date"], date("YmdHis")) > 5){
735
+
736
+ get_tweets_username($skyscraper_options["twitter_username"]);
737
+ $skyscraper_latest = get_option($option);
738
+ }
739
+ }
740
+
741
+
742
+ return generate_tweets_box_content($skyscraper_latest);
743
+ }
744
+
745
+ function generate_tweets_box_content($tweets){
746
+
747
+ $content = "";
748
+ if (isset($tweets["date"])){
749
+ unset($tweets["date"]);
750
+ }
751
+
752
+
753
+ foreach($tweets as $tweet){
754
+
755
+ $tweet["name"] = addslashes($tweet["name"]);
756
+ $tweet["text"] = addslashes($tweet["text"]);
757
+
758
+ $content .= "['".$tweet["name"]."','".$tweet["name"]."','".$tweet["text"]."','','".$tweet["created_at"]."'],";
759
+ }
760
+ $content = trim(trim(trim($content), ","));
761
+
762
+ return $content;
763
+ }
764
+
765
+ if (!empty($_GET["sky"])){
766
+
767
+ add_action('wp_ajax_my_action', 'my_action_callback');
768
+
769
+ function my_action_callback() {
770
+ global $wpdb; global $skyscraper_options; // this is how you get access to the database
771
+
772
+ $whatever = intval( $_POST['whatever'] );
773
+
774
+ $whatever += 10;
775
+
776
+ echo $whatever;
777
+
778
+ die(); // this is required to return a proper result
779
+ }
780
+ }
781
+ ?>
includes/sociable_output.php CHANGED
@@ -1,773 +1,778 @@
1
- <?php
2
-
3
- /*
4
-
5
- * The Output And Shortcode Functions For sociable
6
-
7
- */
8
-
9
-
10
-
11
- /*
12
-
13
- * Returns The Sociable Output For The Global $post Object Do Not
14
-
15
- */
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
- function sociable_html( $display = array(),$location = "" ){
26
-
27
- global $sociable_options, $wp_query, $post;
28
-
29
- //ra( $sociable_options );
30
-
31
- $sociable_known_sites = get_option( 'sociable_known_sites' );
32
-
33
-
34
-
35
- if( ! $post ){
36
-
37
- $post = get_post( $post_id = 1 );
38
-
39
- }
40
-
41
-
42
-
43
- if ( get_post_meta($post->ID,'_sociableoff',true)) {
44
-
45
- return "";
46
-
47
- }
48
-
49
-
50
-
51
-
52
-
53
- $active_sites = $sociable_options['active_sites'];
54
-
55
-
56
-
57
- // Get The Image Path
58
-
59
- //$imagepath = _get_sociable_image_path();
60
-
61
-
62
-
63
- // if no sites are specified, display all active
64
-
65
- // have to check $active_sites has content because WP
66
-
67
- // won't save an empty array as an option
68
-
69
- if ( empty($display) && isset( $active_sites ) )
70
-
71
- $display = $active_sites;
72
-
73
- // if no sites are active, display nothing
74
-
75
- if ( empty($display) )
76
-
77
- return "";
78
-
79
-
80
-
81
- // Load the post's and blog's data
82
-
83
- $blogname = urlencode(get_bloginfo('name')." ".get_bloginfo('description'));
84
-
85
- $blogrss = get_bloginfo('rss2_url');
86
-
87
-
88
-
89
- // Grab the excerpt, if there is no excerpt, create one
90
-
91
- $excerpt = urlencode(strip_tags(strip_shortcodes($post->post_excerpt)));
92
-
93
- if ($excerpt == "") {
94
-
95
- $excerpt = urlencode(substr(strip_tags(strip_shortcodes($post->post_content)),0,250));
96
-
97
- }
98
-
99
-
100
-
101
- // Clean the excerpt for use with links
102
-
103
- $excerpt = str_replace('+','%20',$excerpt);
104
-
105
- $permalink = urlencode(get_permalink($post->ID));
106
-
107
- $permalinkCOUNT = get_permalink($post->ID);
108
-
109
- $title = str_replace('+','%20',urlencode($post->post_title));
110
- $titleCOUNT = $post->post_title;
111
-
112
-
113
- $rss = urlencode(get_bloginfo('ref_url'));
114
-
115
-
116
-
117
- // Start preparing the output
118
-
119
- $html = '<!-- Start Sociable --><div class="sociable">';
120
-
121
-
122
-
123
- // If a tagline is set, display it above the links list
124
-
125
- $tagline = isset( $sociable_options['tagline'] ) ? $sociable_options['tagline'] : '' ;
126
-
127
- if ($tagline != '') {
128
-
129
- $html .= '<div class="sociable_tagline">';
130
-
131
- if (isset( $sociable_options['help_grow'] )) {
132
-
133
- $addSize = "";
134
-
135
- if ($sociable_options['icon_size'] ==16) $addSize = "font-size:11px;";
136
-
137
- $html .= "<a class='sociable_tagline' target='_blank' href='http://blogplay.com' style='".$addSize."color:#333333;text-decoration:none'>".$tagline."</a>";
138
-
139
- }else{
140
-
141
- $html .= $tagline;
142
-
143
- }
144
-
145
- $html .= "</div>";
146
-
147
- }
148
-
149
-
150
-
151
- /**
152
-
153
- * Start the list of links
154
-
155
- */
156
-
157
- $html .= "<ul class='clearfix'>";
158
-
159
-
160
-
161
- $i = 0;
162
-
163
- $totalsites = count($display);
164
-
165
- $margin = "0px";
166
-
167
- switch ($sociable_options['icon_size']){
168
-
169
-
170
-
171
- case "16": $margin = "padding-top: 0;margin-top:-2px";
172
-
173
- break;
174
-
175
- case "32": $margin = "margin-top:9px";
176
-
177
- break;
178
-
179
- case "48": $margin = "margin-top:24px";
180
-
181
- break;
182
-
183
- case "64": $margin = "margin-top:38px";
184
-
185
- break;
186
-
187
- }
188
-
189
-
190
-
191
- // print_r($display);
192
-
193
-
194
-
195
- if (isset($display["More"])){
196
-
197
- unset($display["More"]);
198
-
199
- array_push($display,"More");
200
-
201
- $display["More"] = "On";
202
-
203
- }
204
-
205
- //print_r($display);
206
-
207
- foreach($display as $sitename => $val ) {
208
-
209
-
210
-
211
- if ( ! array_key_exists($sitename, $active_sites) || isset($sociable_known_sites[$sitename]["counter"]))
212
-
213
- continue;
214
-
215
-
216
-
217
- $site = $sociable_known_sites[$sitename];
218
-
219
- $url = ( isset( $site['script'] ) ) ? $site['script'] : $site['url'];
220
-
221
- $url = str_replace('TITLECOUNT', $titleCOUNT, $url);
222
- $url = str_replace('TITLE', $title, $url);
223
-
224
- $url = str_replace('RSS', $rss, $url);
225
-
226
- $url = str_replace('BLOGNAME', $blogname, $url);
227
-
228
- $url = str_replace('EXCERPT', $excerpt, $url);
229
-
230
- $url = str_replace('FEEDLINK', $blogrss, $url);
231
-
232
- $url = str_replace('PERMALINKCOUNT', $permalinkCOUNT, $url);
233
-
234
- $url = str_replace('PERMALINK', $permalink, $url);
235
-
236
-
237
-
238
-
239
-
240
- if (isset($site['description']) && $site['description'] != "") {
241
-
242
- $description = $site['description'];
243
-
244
- } else {
245
-
246
- $description = $sitename;
247
-
248
- }
249
-
250
-
251
-
252
- $link = '<li>';
253
-
254
- if (!empty($sociable_options["custom_icons"])){
255
-
256
- $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description );
257
-
258
- }else{
259
-
260
- if ($description != "More"){
261
-
262
- $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description );
263
-
264
- }else{
265
-
266
- $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : "<img style='".$margin."' src='".SOCIABLE_HTTP_PATH."images/more.png'>";
267
-
268
- }
269
-
270
- }
271
-
272
- $posX = $site["spriteCoordinates"][$sociable_options['icon_size']]["0"];
273
-
274
- $posY = $site["spriteCoordinates"][$sociable_options['icon_size']]["1"];
275
-
276
- $backgroundFile = $sociable_options['icon_option']."_".$sociable_options['icon_size'].".png";
277
-
278
- $style = "background-position:".$posX." ".$posY;
279
-
280
- $href = $url;
281
-
282
- $target = isset( $sociable_options['new_window'] ) ? 'target="_blank"' : '' ;
283
-
284
- if ($sitename == "Add to favorites" || $sitename=="More"){
285
-
286
- if ($sitename == "More"){
287
-
288
- $link .= '<a style="cursor:pointer" rel="nofollow" onMouseOut="fixOnMouseOut(document.getElementById(\'sociable-post'.$location.'-'.$post->ID.'\'), event, \'post'.$location.'-'.$post->ID.'\')" onMouseOver="more(this,\'post'.$location.'-' . $post->ID . '\')">' . $linkitem . '</a></li>' ;
289
-
290
- }else{
291
-
292
- $link .= '<a class="'.$sociable_options['icon_option'].'_'.$sociable_options['icon_size'].'" style="cursor:pointer;'.$style.'" rel="nofollow" title="'.$sitename.' - doesn\'t work in Chrome" onClick="' . $href . '">' ."" . '</a></li>' ;
293
-
294
- }
295
-
296
- }else{
297
-
298
- if($sociable_options["icon_option"] == "option6" || !empty($sociable_options["custom_icons"])){
299
-
300
- $link .= '<a title="'.$sitename.'" style="'.$description.$sociable_options['icon_size'].'_'.str_replace("option","",$sociable_options['icon_option']).'" rel="nofollow" ' . $target . ' href="' . $href . '">' . $linkitem . '</a></li>' ;
301
-
302
- }else{
303
-
304
- if (count(split("Counter",$sitename))>1){
305
-
306
- $link.= $href;
307
-
308
- }else{
309
-
310
-
311
-
312
- $link .= '<a title="'.$sitename.'" class="'.$sociable_options['icon_option'].'_'.$sociable_options['icon_size'].'" style="'.$style.'" rel="nofollow" ' . $target . ' href="' . $href . '">' . "" . '</a></li>' ;
313
-
314
- }
315
-
316
- }
317
-
318
- }
319
-
320
-
321
-
322
- $html .= apply_filters( 'sociable_link' , $link );
323
-
324
-
325
-
326
- $i++;
327
-
328
- }
329
-
330
- //return $html;
331
-
332
-
333
-
334
- //if ($sociable_options['icon_option'] !="option6"){
335
-
336
- $inner = "<ul>";
337
-
338
- foreach ($sociable_known_sites as $sitename => $val){
339
-
340
- if (array_key_exists($sitename, $display) || isset($sociable_known_sites[$sitename]["counter"]) )
341
-
342
- continue;
343
-
344
- $site = $sociable_known_sites[$sitename];
345
-
346
- $url = ( isset( $site['script'] ) ) ? $site['script'] : $site['url'];
347
-
348
- $url = str_replace('TITLECOUNT', $titleCOUNT, $url);
349
-
350
- $url = str_replace('TITLE', $title, $url);
351
-
352
- $url = str_replace('RSS', $rss, $url);
353
-
354
- $url = str_replace('BLOGNAME', $blogname, $url);
355
-
356
- $url = str_replace('EXCERPT', $excerpt, $url);
357
-
358
- $url = str_replace('FEEDLINK', $blogrss, $url);
359
-
360
- $url = str_replace('PERMALINKCOUNT', $permalinkCOUNT, $url);
361
-
362
- $url = str_replace('PERMALINK', $permalink, $url);
363
-
364
-
365
-
366
- $link = '<li style="heigth:'.$sociable_options['icon_size'].'px;width:'.$sociable_options['icon_size'].'px">';
367
-
368
- if (!empty($sociable_options["custom_icons"])){
369
-
370
- $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description );
371
-
372
- }else{
373
-
374
-
375
-
376
- if (isset($description) && $description!= "More"){
377
-
378
- $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description );
379
-
380
- }else{
381
-
382
- $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : "<img style='".$margin."' src='".SOCIABLE_HTTP_PATH."images/more.png'>";
383
-
384
- }
385
-
386
- }
387
-
388
- $posX = $site["spriteCoordinates"][$sociable_options['icon_size']]["0"];
389
-
390
- $posY = $site["spriteCoordinates"][$sociable_options['icon_size']]["1"];
391
-
392
- $backgroundFile = $sociable_options['icon_option']."_".$sociable_options['icon_size'].".png";
393
-
394
- $style = "background-position:".$posX." ".$posY;
395
-
396
- $href = $url;
397
-
398
- $target = isset( $sociable_options['new_window'] ) ? 'target="_blank"' : '' ;
399
-
400
- if ($sitename == "Add to favorites" || $sitename=="More"){
401
-
402
- if ($sitename == "More"){
403
-
404
- $link .= '<a style="cursor:poainter" rel="nofollow" onMouseOver="more(this,\'post'.$location.'-' . $post->ID . '\')">' . $linkitem . '</a></li>' ;
405
-
406
- }else{
407
-
408
- $link .= '<a class="'.$sociable_options['icon_option'].'_'.$sociable_options['icon_size'].'" style="cursor:pointer;'.$style.'" rel="nofollow" title="'.$sitename.' - doesn\'t work in Chrome" onClick="' . $href . '">' ."" . '</a></li>' ;
409
-
410
- }
411
-
412
- }else{
413
-
414
- if($sociable_options["icon_option"] == "option6" || !empty($sociable_options["custom_icons"])){
415
-
416
- $link .= '<a title="'.$sitename.'" style="'.$description.$sociable_options['icon_size'].'_'.str_replace("option","",$sociable_options['icon_option']).'" rel="nofollow" ' . $target . ' href="' . $href . '">' . $linkitem . '</a></li>' ;
417
-
418
- }else{
419
-
420
- $link .= '<a title="'.$sitename.'" class="'.$sociable_options['icon_option'].'_'.$sociable_options['icon_size'].'" style="'.$style.'" rel="nofollow" ' . $target . ' href="' . $href . '">' . "" . '</a></li>' ;
421
-
422
- }
423
-
424
- }
425
-
426
-
427
-
428
- $inner .= apply_filters( 'sociable_link' , $link );
429
-
430
-
431
-
432
- $i++;
433
-
434
-
435
-
436
- }
437
-
438
-
439
-
440
- $inner .="</ul>";
441
-
442
- $html .='</ul><div onMouseout="fixOnMouseOut(this,event,\'post'.$location.'-'.$post->ID.'\')" id="sociable-post'.$location.'-'.$post->ID.'" style="display:none;">
443
-
444
- <div style="top: auto; left: auto; display: block;" id="sociable">
445
-
446
-
447
-
448
- <div class="popup">
449
-
450
- <div class="content">
451
-
452
- '.$inner.'
453
-
454
- </div>
455
-
456
- <a style="cursor:pointer" onclick="hide_sociable(\'post'.$location.'-'.$post->ID.'\',true)" class="close">
457
-
458
-
459
-
460
- <img onclick="hide_sociable(\'post'.$location.'-'.$post->ID.'\',true)" title="close" src="'.SOCIABLE_HTTP_PATH . 'images/closelabel.png">
461
-
462
- </a>
463
-
464
- </div>
465
-
466
- </div>
467
-
468
- </div>HereGoCounters</div><!-- End Sociable -->';
469
-
470
- //$margin =
471
-
472
- //$html .= "<li class='sociablelast' style='".$margin."'><img src='".SOCIABLE_HTTP_PATH."images/more.jpg'></li></ul><div class='soc_clear'></div></div>";
473
-
474
- //}
475
-
476
- //return "";
477
-
478
- $counters ="";
479
-
480
- /*if ($location == "bottom" && (is_single() || is_admin())){ */
481
-
482
-
483
-
484
-
485
-
486
- $counters = "</div><div class='sociable' style='float:none'><ul class='clearfix'>";
487
-
488
-
489
-
490
- foreach ($display as $sitename => $val){
491
-
492
- //echo $sitename."<br>";
493
-
494
- if (!array_key_exists($sitename, $display) || !isset($sociable_known_sites[$sitename]["counter"]) )
495
-
496
- continue;
497
-
498
-
499
-
500
- //echo $sitename."<br>";
501
-
502
- $link = '<li id="'.str_replace(" ","_",$sitename).'">';
503
-
504
-
505
-
506
- $site = $sociable_known_sites[$sitename];
507
-
508
- $url = ( isset( $site['script'] ) ) ? $site['script'] : $site['url'];
509
-
510
- $url = str_replace('TITLECOUNT', $titleCOUNT, $url);
511
-
512
- $url = str_replace('TITLE', $title, $url);
513
-
514
- $url = str_replace('RSS', $rss, $url);
515
-
516
- $url = str_replace('BLOGNAME', $blogname, $url);
517
-
518
- $url = str_replace('EXCERPT', $excerpt, $url);
519
-
520
- $url = str_replace('FEEDLINK', $blogrss, $url);
521
-
522
- $url = str_replace('PERMALINKCOUNT', $permalinkCOUNT, $url);
523
-
524
- $url = str_replace('PERMALINK', $permalink, $url);
525
-
526
-
527
-
528
- $link.= $url."</li>";
529
-
530
- $counters .= apply_filters( 'sociable_link' , $link );
531
-
532
- }
533
-
534
- $counters .="</ul>";
535
-
536
- $html = str_replace("HereGoCounters",$counters,$html);
537
-
538
-
539
-
540
- /*}else{
541
-
542
- $html = str_replace("HereGoCounters",$counters,$html);
543
-
544
- }*/
545
-
546
-
547
-
548
- return $html;
549
-
550
-
551
-
552
- }
553
-
554
-
555
-
556
- /*
557
-
558
- * Template Tag To Echo The Sociable 2 HTML
559
-
560
- */
561
-
562
- function do_sociable(){
563
-
564
- echo sociable_html();
565
-
566
- }
567
-
568
-
569
-
570
- /*
571
-
572
- * Hook For the_content to automatically output the sociable HTML If The Option To Disable Has Not Been Unchecked
573
-
574
- */
575
-
576
- function auto_sociable( $content ){
577
-
578
- global $sociable_options;
579
-
580
-
581
-
582
- if( ! isset( $sociable_options['locations'] ) || ! is_array( $sociable_options['locations'] ) || empty( $sociable_options['locations'] ) ){
583
-
584
- return $content;
585
-
586
- } else {
587
-
588
- $locations = $sociable_options['locations'];
589
-
590
- }
591
-
592
-
593
-
594
- /*
595
-
596
- * Determine if we are supposed to be displaying the output here.
597
-
598
- */
599
-
600
- $display = false;
601
-
602
-
603
-
604
- /*
605
-
606
- * is_single is a unique case it still returning true
607
-
608
- */
609
-
610
-
611
-
612
- //If We Can Verify That We are in the correct loaction, simply add something to the $display array, and test for a true result to continue.
613
-
614
- foreach( $locations as $location => $val ){
615
-
616
-
617
-
618
- //First We Handle is_single() so it returning true on Single Post Type Pages is not an issue, this is not the intended functionality of this plugin
619
-
620
- if( $location == 'is_single' ){
621
-
622
- //If we are not in a post, lets ignore this one for now
623
-
624
- if( is_single() && get_post_type() == 'post' ){
625
-
626
- $display = true;
627
-
628
- break;
629
-
630
- } else {
631
-
632
- continue; // So not to trigger is_single later in this loop, but still be allowed to handle others
633
-
634
- }
635
-
636
-
637
-
638
- } elseif( strpos( $location , 'is_single_posttype_' ) === 0 ){ //Now We Need To Check For The Variable Names, Taxonomy Archives, Post Type Archives and Single Custom Post Types.
639
-
640
-
641
-
642
- //Single Custom Post Type
643
-
644
- $post_type = str_replace( 'is_single_posttype_' , '' , $location );
645
-
646
- if( is_single() && get_post_type() == $post_type ){
647
-
648
- $display = true;
649
-
650
- break;
651
-
652
- }
653
-
654
-
655
-
656
- } elseif( strpos( $location , 'is_posttype_archive_' ) === 0 ){
657
-
658
-
659
-
660
- //Custom Post Type Archive
661
-
662
- $post_type = str_replace( 'is_posttype_archive_' , '' , $location );
663
-
664
- if( is_post_type_archive( $post_type ) ){
665
-
666
- $display = true;
667
-
668
- break;
669
-
670
- }
671
-
672
-
673
-
674
- } elseif( strpos( $location , 'is_taxonomy_archive_' ) === 0 ) {
675
-
676
-
677
-
678
- //Taxonomy Archive
679
-
680
- $taxonomy = str_replace( 'is_taxonomy_archive_' , '' , $location );
681
-
682
- if( is_tax( $taxonomy ) ){
683
-
684
- $display = true;
685
-
686
- break;
687
-
688
- }
689
-
690
-
691
-
692
- } elseif( function_exists( $location ) ) {
693
-
694
-
695
-
696
- //Standard conditional tag, these will return BOOL
697
-
698
- if( call_user_func( $location ) === true ){
699
-
700
- $display = true;
701
-
702
- break;
703
-
704
- }
705
-
706
-
707
-
708
- } else {
709
-
710
- continue;
711
-
712
- }
713
-
714
-
715
-
716
-
717
-
718
- }
719
-
720
-
721
-
722
- //If We have passed all the checks and are looking in the right place lets do this thang
723
-
724
- if( isset( $sociable_options['automatic_mode'] ) && $display === true ){
725
-
726
- if (isset($sociable_options["topandbottom"])){
727
-
728
- $content = sociable_html(array(),"top").$content . sociable_html(array(),"bottom");
729
-
730
- }else{
731
-
732
- $content = "".$content . sociable_html(array());
733
-
734
- }
735
-
736
- }
737
-
738
-
739
-
740
-
741
-
742
- return $content;
743
-
744
- }
745
-
746
-
747
-
748
- /*
749
-
750
- * Sociable 2 Shortcode
751
-
752
- */
753
-
754
- function sociable_shortcode(){
755
-
756
- return sociable_html();
757
-
758
- }
759
-
760
-
761
-
762
- ?>
763
- <?php function add_googleplus() {
764
-
765
-
766
-
767
- echo'<script type="text/javascript" src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>';
768
-
769
- }
770
-
771
- //add_action('wp_head', 'add_googleplus' );
772
-
 
 
 
 
 
773
  ?>
1
+ <?php
2
+
3
+ /*
4
+
5
+ * The Output And Shortcode Functions For sociable
6
+
7
+ */
8
+
9
+
10
+
11
+ /*
12
+
13
+ * Returns The Sociable Output For The Global $post Object Do Not
14
+
15
+ */
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+ function sociable_html( $display = array(),$location = "" ){
26
+
27
+ global $sociable_options, $wp_query, $post;
28
+
29
+ //ra( $sociable_options );
30
+
31
+ $sociable_known_sites = get_option( 'sociable_known_sites' );
32
+
33
+
34
+
35
+ if( ! $post ){
36
+
37
+ $post = get_post( $post_id = 1 );
38
+
39
+ }
40
+
41
+
42
+
43
+ if ( get_post_meta($post->ID,'_sociableoff',true)) {
44
+
45
+ return "";
46
+
47
+ }
48
+
49
+
50
+
51
+
52
+
53
+ $active_sites = $sociable_options['active_sites'];
54
+
55
+
56
+
57
+ // Get The Image Path
58
+
59
+ //$imagepath = _get_sociable_image_path();
60
+
61
+
62
+
63
+ // if no sites are specified, display all active
64
+
65
+ // have to check $active_sites has content because WP
66
+
67
+ // won't save an empty array as an option
68
+
69
+ if ( empty($display) && isset( $active_sites ) )
70
+
71
+ $display = $active_sites;
72
+
73
+ // if no sites are active, display nothing
74
+
75
+ if ( empty($display) )
76
+
77
+ return "";
78
+
79
+
80
+
81
+ // Load the post's and blog's data
82
+
83
+ $blogname = urlencode(get_bloginfo('name')." ".get_bloginfo('description'));
84
+
85
+ $blogrss = get_bloginfo('rss2_url');
86
+
87
+
88
+
89
+ // Grab the excerpt, if there is no excerpt, create one
90
+
91
+ $excerpt = urlencode(strip_tags(strip_shortcodes($post->post_excerpt)));
92
+
93
+ if ($excerpt == "") {
94
+
95
+ $excerpt = urlencode(substr(strip_tags(strip_shortcodes($post->post_content)),0,250));
96
+
97
+ }
98
+
99
+
100
+
101
+ // Clean the excerpt for use with links
102
+
103
+ $excerpt = str_replace('+','%20',$excerpt);
104
+
105
+ $permalink = urlencode(get_permalink($post->ID));
106
+
107
+ $permalinkCOUNT = get_permalink($post->ID);
108
+
109
+ $title = str_replace('+','%20',urlencode($post->post_title));
110
+ $titleCOUNT = $post->post_title;
111
+
112
+
113
+ $rss = urlencode(get_bloginfo('ref_url'));
114
+
115
+
116
+
117
+ // Start preparing the output
118
+
119
+ $html = '<!-- Start Sociable --><div class="sociable">';
120
+
121
+
122
+
123
+ // If a tagline is set, display it above the links list
124
+
125
+ $tagline = isset( $sociable_options['tagline'] ) ? $sociable_options['tagline'] : '' ;
126
+
127
+ if ($tagline != '') {
128
+
129
+ $html .= '<div class="sociable_tagline">';
130
+
131
+ if (isset( $sociable_options['help_grow'] )) {
132
+
133
+ $addSize = "";
134
+
135
+ if ($sociable_options['icon_size'] ==16) $addSize = "font-size:11px;";
136
+
137
+ $html .= "<a class='sociable_tagline' target='_blank' href='http://blogplay.com' style='".$addSize."color:#333333;text-decoration:none'>".$tagline."</a>";
138
+
139
+ }else{
140
+
141
+ $html .= $tagline;
142
+
143
+ }
144
+
145
+ $html .= "</div>";
146
+
147
+ }
148
+
149
+
150
+
151
+ /**
152
+
153
+ * Start the list of links
154
+
155
+ */
156
+
157
+ $html .= "<ul class='clearfix'>";
158
+
159
+
160
+
161
+ $i = 0;
162
+
163
+ $totalsites = count($display);
164
+
165
+ $margin = "0px";
166
+
167
+ switch ($sociable_options['icon_size']){
168
+
169
+
170
+
171
+ case "16": $margin = "padding-top: 0;margin-top:-2px";
172
+
173
+ break;
174
+
175
+ case "32": $margin = "margin-top:9px";
176
+
177
+ break;
178
+
179
+ case "48": $margin = "margin-top:24px";
180
+
181
+ break;
182
+
183
+ case "64": $margin = "margin-top:38px";
184
+
185
+ break;
186
+
187
+ }
188
+
189
+
190
+
191
+ // print_r($display);
192
+
193
+
194
+
195
+ if (isset($display["More"])){
196
+
197
+ unset($display["More"]);
198
+
199
+ array_push($display,"More");
200
+
201
+ $display["More"] = "On";
202
+
203
+ }
204
+
205
+ //print_r($display);
206
+
207
+ foreach($display as $sitename => $val ) {
208
+
209
+
210
+
211
+ if ( ! array_key_exists($sitename, $active_sites) || isset($sociable_known_sites[$sitename]["counter"]))
212
+
213
+ continue;
214
+
215
+
216
+
217
+ $site = $sociable_known_sites[$sitename];
218
+
219
+ $url = ( isset( $site['script'] ) ) ? $site['script'] : $site['url'];
220
+
221
+ $url = str_replace('TITLECOUNT', $titleCOUNT, $url);
222
+ $url = str_replace('TITLE', $title, $url);
223
+
224
+ $url = str_replace('RSS', $rss, $url);
225
+
226
+ $url = str_replace('BLOGNAME', $blogname, $url);
227
+
228
+ $url = str_replace('EXCERPT', $excerpt, $url);
229
+
230
+ $url = str_replace('FEEDLINK', $blogrss, $url);
231
+
232
+ $url = str_replace('PERMALINKCOUNT', $permalinkCOUNT, $url);
233
+
234
+ $url = str_replace('PERMALINK', $permalink, $url);
235
+
236
+
237
+
238
+
239
+
240
+ if (isset($site['description']) && $site['description'] != "") {
241
+
242
+ $description = $site['description'];
243
+
244
+ } else {
245
+
246
+ $description = $sitename;
247
+
248
+ }
249
+
250
+
251
+
252
+ $link = '<li>';
253
+
254
+ if (!empty($sociable_options["custom_icons"])){
255
+
256
+ $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description );
257
+
258
+ }else{
259
+
260
+ if ($description != "More"){
261
+
262
+ $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description );
263
+
264
+ }else{
265
+
266
+ $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : "<img style='".$margin."' src='".SOCIABLE_HTTP_PATH."images/more.png'>";
267
+
268
+ }
269
+
270
+ }
271
+
272
+ $posX = $site["spriteCoordinates"][$sociable_options['icon_size']]["0"];
273
+
274
+ $posY = $site["spriteCoordinates"][$sociable_options['icon_size']]["1"];
275
+
276
+ $backgroundFile = $sociable_options['icon_option']."_".$sociable_options['icon_size'].".png";
277
+
278
+ $style = "background-position:".$posX." ".$posY;
279
+
280
+ $href = $url;
281
+
282
+ $target = isset( $sociable_options['new_window'] ) ? 'target="_blank"' : '' ;
283
+
284
+ if ($sitename == "Add to favorites" || $sitename=="More"){
285
+
286
+ if ($sitename == "More"){
287
+
288
+ $link .= '<a style="cursor:pointer" rel="nofollow" onMouseOut="fixOnMouseOut(document.getElementById(\'sociable-post'.$location.'-'.$post->ID.'\'), event, \'post'.$location.'-'.$post->ID.'\')" onMouseOver="more(this,\'post'.$location.'-' . $post->ID . '\')">' . $linkitem . '</a></li>' ;
289
+
290
+ }else{
291
+
292
+ $link .= '<a class="'.$sociable_options['icon_option'].'_'.$sociable_options['icon_size'].'" style="cursor:pointer;'.$style.'" rel="nofollow" title="'.$sitename.' - doesn\'t work in Chrome" onClick="' . $href . '">' ."" . '</a></li>' ;
293
+
294
+ }
295
+
296
+ }else{
297
+
298
+ if($sociable_options["icon_option"] == "option6" || !empty($sociable_options["custom_icons"])){
299
+
300
+ $link .= '<a title="'.$sitename.'" style="'.$description.$sociable_options['icon_size'].'_'.str_replace("option","",$sociable_options['icon_option']).'" rel="nofollow" ' . $target . ' href="' . $href . '">' . $linkitem . '</a></li>' ;
301
+
302
+ }else{
303
+
304
+ if (count(split("Counter",$sitename))>1){
305
+
306
+ $link.= $href;
307
+
308
+ }else{
309
+
310
+
311
+
312
+ $link .= '<a title="'.$sitename.'" class="'.$sociable_options['icon_option'].'_'.$sociable_options['icon_size'].'" style="'.$style.'" rel="nofollow" ' . $target . ' href="' . $href . '">' . "" . '</a></li>' ;
313
+
314
+ }
315
+
316
+ }
317
+
318
+ }
319
+
320
+
321
+
322
+ $html .= apply_filters( 'sociable_link' , $link );
323
+
324
+
325
+
326
+ $i++;
327
+
328
+ }
329
+
330
+ //return $html;
331
+
332
+
333
+
334
+ //if ($sociable_options['icon_option'] !="option6"){
335
+
336
+ $inner = "<ul>";
337
+
338
+ foreach ($sociable_known_sites as $sitename => $val){
339
+
340
+ if (array_key_exists($sitename, $display) || isset($sociable_known_sites[$sitename]["counter"]) )
341
+
342
+ continue;
343
+
344
+ $site = $sociable_known_sites[$sitename];
345
+
346
+ $url = ( isset( $site['script'] ) ) ? $site['script'] : $site['url'];
347
+
348
+ $url = str_replace('TITLECOUNT', $titleCOUNT, $url);
349
+
350
+ $url = str_replace('TITLE', $title, $url);
351
+
352
+ $url = str_replace('RSS', $rss, $url);
353
+
354
+ $url = str_replace('BLOGNAME', $blogname, $url);
355
+
356
+ $url = str_replace('EXCERPT', $excerpt, $url);
357
+
358
+ $url = str_replace('FEEDLINK', $blogrss, $url);
359
+
360
+ $url = str_replace('PERMALINKCOUNT', $permalinkCOUNT, $url);
361
+
362
+ $url = str_replace('PERMALINK', $permalink, $url);
363
+
364
+
365
+
366
+ $link = '<li style="heigth:'.$sociable_options['icon_size'].'px;width:'.$sociable_options['icon_size'].'px">';
367
+
368
+ if (!empty($sociable_options["custom_icons"])){
369
+
370
+ $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description );
371
+
372
+ }else{
373
+
374
+
375
+
376
+ if (isset($description) && $description!= "More"){
377
+
378
+ $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description );
379
+
380
+ }else{
381
+
382
+ $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : "<img style='".$margin."' src='".SOCIABLE_HTTP_PATH."images/more.png'>";
383
+
384
+ }
385
+
386
+ }
387
+
388
+ $posX = $site["spriteCoordinates"][$sociable_options['icon_size']]["0"];
389
+
390
+ $posY = $site["spriteCoordinates"][$sociable_options['icon_size']]["1"];
391
+
392
+ $backgroundFile = $sociable_options['icon_option']."_".$sociable_options['icon_size'].".png";
393
+
394
+ $style = "background-position:".$posX." ".$posY;
395
+
396
+ $href = $url;
397
+
398
+ $target = isset( $sociable_options['new_window'] ) ? 'target="_blank"' : '' ;
399
+
400
+ if ($sitename == "Add to favorites" || $sitename=="More"){
401
+
402
+ if ($sitename == "More"){
403
+
404
+ $link .= '<a style="cursor:poainter" rel="nofollow" onMouseOver="more(this,\'post'.$location.'-' . $post->ID . '\')">' . $linkitem . '</a></li>' ;
405
+
406
+ }else{
407
+
408
+ $link .= '<a class="'.$sociable_options['icon_option'].'_'.$sociable_options['icon_size'].'" style="cursor:pointer;'.$style.'" rel="nofollow" title="'.$sitename.' - doesn\'t work in Chrome" onClick="' . $href . '">' ."" . '</a></li>' ;
409
+
410
+ }
411
+
412
+ }else{
413
+
414
+ if($sociable_options["icon_option"] == "option6" || !empty($sociable_options["custom_icons"])){
415
+
416
+ $link .= '<a title="'.$sitename.'" style="'.$description.$sociable_options['icon_size'].'_'.str_replace("option","",$sociable_options['icon_option']).'" rel="nofollow" ' . $target . ' href="' . $href . '">' . $linkitem . '</a></li>' ;
417
+
418
+ }else{
419
+
420
+ $link .= '<a title="'.$sitename.'" class="'.$sociable_options['icon_option'].'_'.$sociable_options['icon_size'].'" style="'.$style.'" rel="nofollow" ' . $target . ' href="' . $href . '">' . "" . '</a></li>' ;
421
+
422
+ }
423
+
424
+ }
425
+
426
+
427
+
428
+ $inner .= apply_filters( 'sociable_link' , $link );
429
+
430
+
431
+
432
+ $i++;
433
+
434
+
435
+
436
+ }
437
+
438
+
439
+
440
+ $inner .="</ul>";
441
+
442
+ $html .='</ul><div onMouseout="fixOnMouseOut(this,event,\'post'.$location.'-'.$post->ID.'\')" id="sociable-post'.$location.'-'.$post->ID.'" style="display:none;">
443
+
444
+ <div style="top: auto; left: auto; display: block;" id="sociable">
445
+
446
+
447
+
448
+ <div class="popup">
449
+
450
+ <div class="content">
451
+
452
+ '.$inner.'
453
+
454
+ </div>
455
+
456
+ <a style="cursor:pointer" onclick="hide_sociable(\'post'.$location.'-'.$post->ID.'\',true)" class="close">
457
+
458
+
459
+
460
+ <img onclick="hide_sociable(\'post'.$location.'-'.$post->ID.'\',true)" title="close" src="'.SOCIABLE_HTTP_PATH . 'images/closelabel.png">
461
+
462
+ </a>
463
+
464
+ </div>
465
+
466
+ </div>
467
+
468
+ </div>HereGoCounters</div><!-- End Sociable -->';
469
+
470
+ //$margin =
471
+
472
+ //$html .= "<li class='sociablelast' style='".$margin."'><img src='".SOCIABLE_HTTP_PATH."images/more.jpg'></li></ul><div class='soc_clear'></div></div>";
473
+
474
+ //}
475
+
476
+ //return "";
477
+
478
+ $counters ="";
479
+
480
+ /*if ($location == "bottom" && (is_single() || is_admin())){ */
481
+
482
+
483
+
484
+
485
+
486
+ $counters = "</div><div class='sociable' style='float:none'><ul class='clearfix'>";
487
+
488
+
489
+
490
+ foreach ($display as $sitename => $val){
491
+
492
+ //echo $sitename."<br>";
493
+
494
+ if (!array_key_exists($sitename, $display) || !isset($sociable_known_sites[$sitename]["counter"]) )
495
+
496
+ continue;
497
+
498
+
499
+
500
+ //echo $sitename."<br>";
501
+
502
+ $link = '<li id="'.str_replace("+","p",str_replace(" ","_",$sitename)).'">';
503
+
504
+
505
+
506
+ $site = $sociable_known_sites[$sitename];
507
+
508
+ $url = ( isset( $site['script'] ) ) ? $site['script'] : $site['url'];
509
+
510
+ $url = str_replace('TITLECOUNT', $titleCOUNT, $url);
511
+
512
+ $url = str_replace('TITLE', $title, $url);
513
+
514
+ $url = str_replace('RSS', $rss, $url);
515
+
516
+ $url = str_replace('BLOGNAME', $blogname, $url);
517
+
518
+ $url = str_replace('EXCERPT', $excerpt, $url);
519
+
520
+ $url = str_replace('FEEDLINK', $blogrss, $url);
521
+
522
+ $url = str_replace('PERMALINKCOUNT', $permalinkCOUNT, $url);
523
+
524
+ $url = str_replace('PERMALINK', $permalink, $url);
525
+
526
+
527
+
528
+ $link.= $url."</li>";
529
+
530
+ $counters .= apply_filters( 'sociable_link' , $link );
531
+
532
+ }
533
+
534
+ $counters .="</ul>";
535
+
536
+ $html = str_replace("HereGoCounters",$counters,$html);
537
+
538
+
539
+
540
+ /*}else{
541
+
542
+ $html = str_replace("HereGoCounters",$counters,$html);
543
+
544
+ }*/
545
+
546
+
547
+
548
+ return $html;
549
+
550
+
551
+
552
+ }
553
+
554
+
555
+
556
+ /*
557
+
558
+ * Template Tag To Echo The Sociable 2 HTML
559
+
560
+ */
561
+
562
+ function do_sociable(){
563
+
564
+ echo sociable_html();
565
+
566
+ }
567
+
568
+
569
+
570
+ /*
571
+
572
+ * Hook For the_content to automatically output the sociable HTML If The Option To Disable Has Not Been Unchecked
573
+
574
+ */
575
+
576
+ function auto_sociable( $content ){
577
+
578
+ global $sociable_options;
579
+
580
+
581
+ if (!isset($sociable_options["active"])){
582
+
583
+ return $content;
584
+ }
585
+
586
+
587
+ if( ! isset( $sociable_options['locations'] ) || ! is_array( $sociable_options['locations'] ) || empty( $sociable_options['locations'] ) ){
588
+
589
+ return $content;
590
+
591
+ } else {
592
+
593
+ $locations = $sociable_options['locations'];
594
+
595
+ }
596
+
597
+
598
+
599
+ /*
600
+
601
+ * Determine if we are supposed to be displaying the output here.
602
+
603
+ */
604
+
605
+ $display = false;
606
+
607
+
608
+
609
+ /*
610
+
611
+ * is_single is a unique case it still returning true
612
+
613
+ */
614
+
615
+
616
+
617
+ //If We Can Verify That We are in the correct loaction, simply add something to the $display array, and test for a true result to continue.
618
+
619
+ foreach( $locations as $location => $val ){
620
+
621
+
622
+
623
+ //First We Handle is_single() so it returning true on Single Post Type Pages is not an issue, this is not the intended functionality of this plugin
624
+
625
+ if( $location == 'is_single' ){
626
+
627
+ //If we are not in a post, lets ignore this one for now
628
+
629
+ if( is_single() && get_post_type() == 'post' ){
630
+
631
+ $display = true;
632
+
633
+ break;
634
+
635
+ } else {
636
+
637
+ continue; // So not to trigger is_single later in this loop, but still be allowed to handle others
638
+
639
+ }
640
+
641
+
642
+
643
+ } elseif( strpos( $location , 'is_single_posttype_' ) === 0 ){ //Now We Need To Check For The Variable Names, Taxonomy Archives, Post Type Archives and Single Custom Post Types.
644
+
645
+
646
+
647
+ //Single Custom Post Type
648
+
649
+ $post_type = str_replace( 'is_single_posttype_' , '' , $location );
650
+
651
+ if( is_single() && get_post_type() == $post_type ){
652
+
653
+ $display = true;
654
+
655
+ break;
656
+
657
+ }
658
+
659
+
660
+
661
+ } elseif( strpos( $location , 'is_posttype_archive_' ) === 0 ){
662
+
663
+
664
+
665
+ //Custom Post Type Archive
666
+
667
+ $post_type = str_replace( 'is_posttype_archive_' , '' , $location );
668
+
669
+ if( is_post_type_archive( $post_type ) ){
670
+
671
+ $display = true;
672
+
673
+ break;
674
+
675
+ }
676
+
677
+
678
+
679
+ } elseif( strpos( $location , 'is_taxonomy_archive_' ) === 0 ) {
680
+
681
+
682
+
683
+ //Taxonomy Archive
684
+
685
+ $taxonomy = str_replace( 'is_taxonomy_archive_' , '' , $location );
686
+
687
+ if( is_tax( $taxonomy ) ){
688
+
689
+ $display = true;
690
+
691
+ break;
692
+
693
+ }
694
+
695
+
696
+
697
+ } elseif( function_exists( $location ) ) {
698
+
699
+
700
+
701
+ //Standard conditional tag, these will return BOOL
702
+
703
+ if( call_user_func( $location ) === true ){
704
+
705
+ $display = true;
706
+
707
+ break;
708
+
709
+ }
710
+
711
+
712
+
713
+ } else {
714
+
715
+ continue;
716
+
717
+ }
718
+
719
+
720
+
721
+
722
+
723
+ }
724
+
725
+
726
+
727
+ //If We have passed all the checks and are looking in the right place lets do this thang
728
+
729
+ if( isset( $sociable_options['automatic_mode'] ) && $display === true ){
730
+
731
+ if (isset($sociable_options["topandbottom"])){
732
+
733
+ $content = sociable_html(array(),"top").$content . sociable_html(array(),"bottom");
734
+
735
+ }else{
736
+
737
+ $content = "".$content . sociable_html(array());
738
+
739
+ }
740
+
741
+ }
742
+
743
+
744
+
745
+
746
+
747
+ return $content;
748
+
749
+ }
750
+
751
+
752
+
753
+ /*
754
+
755
+ * Sociable 2 Shortcode
756
+
757
+ */
758
+
759
+ function sociable_shortcode(){
760
+
761
+ return sociable_html();
762
+
763
+ }
764
+
765
+
766
+
767
+ ?>
768
+ <?php function add_googleplus() {
769
+
770
+
771
+
772
+ echo'<script type="text/javascript" src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>';
773
+
774
+ }
775
+
776
+ //add_action('wp_head', 'add_googleplus' );
777
+
778
  ?>
js/addtofavorites.js CHANGED
@@ -1,16 +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
  }
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
  }
js/admin-fn.js CHANGED
@@ -1,12 +1,12 @@
1
- function hideOrShow(sID){
2
-
3
- if(document.getElementById(sID+'-Tab').innerHTML == '-'){
4
- document.getElementById(sID+'-Tab').innerHTML = '+';
5
- document.getElementById(sID+'-Content').style.display='none';
6
-
7
- }else{
8
- document.getElementById(sID+'-Tab').innerHTML = '-';
9
- document.getElementById(sID+'-Content').style.display='block';
10
- }
11
-
12
  }
1
+ function hideOrShow(sID){
2
+
3
+ if(document.getElementById(sID+'-Tab').innerHTML == '-'){
4
+ document.getElementById(sID+'-Tab').innerHTML = '+';
5
+ document.getElementById(sID+'-Content').style.display='none';
6
+
7
+ }else{
8
+ document.getElementById(sID+'-Tab').innerHTML = '-';
9
+ document.getElementById(sID+'-Content').style.display='block';
10
+ }
11
+
12
  }
js/async_call.js ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function($) {
2
+
3
+ var data = {
4
+ link: window.location.href,
5
+ title: jQuery('title').html()
6
+ };
7
+
8
+ jQuery.post( '/wp-content/plugins/sociable/includes/async_request.php', data, function(response) {
9
+
10
+ eval(response);
11
+
12
+ });
13
+ });
js/oPlugin.js ADDED
@@ -0,0 +1,1144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ oPlugin = {
2
+
3
+ PluginWidth:80,
4
+
5
+ PluginHeight:1,
6
+
7
+ SlideBig:'Small',
8
+
9
+ LabelBgColor:'#f7f7f7',
10
+
11
+ BgColor:'#fefefe',
12
+
13
+ Color:'#6A6A6A',
14
+
15
+ FontSize:'11',
16
+
17
+ LinkColor:'#587cc8',
18
+
19
+ Timer:null,
20
+
21
+ LastBox:null,
22
+
23
+ Browser: {
24
+
25
+ Explorer: !!(navigator.appName=='Microsoft Internet Explorer'),
26
+
27
+ Other: !!!(navigator.appName=='Microsoft Internet Explorer'),
28
+
29
+ Chrome: !!(navigator.userAgent.toLowerCase().indexOf('chrome') > -1)
30
+
31
+ },
32
+
33
+
34
+
35
+ boxDialog: function(sId){
36
+
37
+ if(document.getElementById('content_'+sId).style.display=='block'){
38
+
39
+ if(oPlugin.LastBox){
40
+
41
+ if(document.getElementById('boxDialog_'+oPlugin.LastBox)){
42
+
43
+ jQuery('#boxDialog_'+oPlugin.LastBox).hide('slow');
44
+
45
+ document.getElementById('boxDialog_'+oPlugin.LastBox).style.zIndex=0;
46
+
47
+ }
48
+
49
+
50
+
51
+ jQuery('#content_'+oPlugin.LastBox).show('fast');
52
+
53
+
54
+
55
+
56
+
57
+ document.getElementById('arrow_'+oPlugin.LastBox).src=jQuery("#skyscraper_dir").val()+'/images/toolbar/arrow.png';
58
+
59
+ }
60
+
61
+ if(document.getElementById('boxDialog_'+sId)){
62
+
63
+ jQuery('#boxDialog_'+sId).show('slow');
64
+
65
+ document.getElementById('boxDialog_'+sId).style.zIndex=10;
66
+
67
+ }
68
+
69
+ jQuery('#content_'+sId).hide('fast');
70
+
71
+ oPlugin.LastBox=sId;
72
+
73
+
74
+
75
+ document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'/images/toolbar/arrow_s.png';
76
+
77
+ }else{
78
+
79
+
80
+
81
+ oPlugin.LastBox=null;
82
+
83
+ if(document.getElementById('boxDialog_'+sId)){
84
+
85
+ jQuery('#boxDialog_'+sId).hide('slow');
86
+
87
+ }
88
+
89
+
90
+
91
+
92
+
93
+ jQuery('#content_'+sId).show('fast');
94
+
95
+
96
+
97
+ document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'/images/toolbar/arrow.png';
98
+
99
+ }
100
+
101
+
102
+
103
+ },
104
+
105
+ boxDialogShow: function(sId){
106
+
107
+ if(document.getElementById('content_'+sId).style.display=='block'){
108
+
109
+ if(oPlugin.LastBox){
110
+
111
+ if(document.getElementById('boxDialog_'+oPlugin.LastBox)){
112
+
113
+ jQuery('#boxDialog_'+oPlugin.LastBox).hide('slow');
114
+
115
+ document.getElementById('boxDialog_'+oPlugin.LastBox).style.zIndex=0;
116
+
117
+ }
118
+
119
+
120
+
121
+ jQuery('#content_'+oPlugin.LastBox).show('fast');
122
+
123
+
124
+
125
+
126
+
127
+ document.getElementById('arrow_'+oPlugin.LastBox).src=jQuery("#skyscraper_dir").val()+'/images/toolbar/arrow.png';
128
+
129
+ }
130
+
131
+ if(document.getElementById('boxDialog_'+sId)){
132
+
133
+ jQuery('#boxDialog_'+sId).show('slow');
134
+
135
+ document.getElementById('boxDialog_'+sId).style.zIndex=10;
136
+
137
+ }
138
+
139
+ jQuery('#content_'+sId).hide('fast');
140
+
141
+ oPlugin.LastBox=sId;
142
+
143
+
144
+
145
+ document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'/images/toolbar/arrow_s.png';
146
+
147
+ }
148
+
149
+
150
+
151
+ },
152
+
153
+ hideShowToolbar: function(){
154
+
155
+ if(document.getElementById('wpPlugin-MainFrame').style.display=='none'){
156
+
157
+ jQuery('#wpPlugin-MainFrame').show(1500);
158
+
159
+ document.getElementById('wpSocciable').className= 'wpSocciable'+oPlugin.SlideBig+'';
160
+
161
+
162
+ document.getElementById('wpSocciable').style.marginLeft = '-20px';
163
+
164
+
165
+
166
+ }else{
167
+
168
+
169
+ document.getElementById('wpPlugin-MainFrame').style.display='none';
170
+
171
+ document.getElementById('wpSocciable').className= 'wpSocciable'+oPlugin.SlideBig+'-c';
172
+
173
+ }
174
+
175
+ },
176
+
177
+ focus:function(obj){
178
+
179
+ obj.style.opacity='1';
180
+
181
+ obj.style.filter="alpha(opacity='100')";
182
+
183
+ },
184
+
185
+ blur:function(obj){
186
+
187
+ obj.style.opacity='0.4';
188
+
189
+ obj.style.filter="alpha(opacity='40')";
190
+
191
+
192
+
193
+ },
194
+
195
+ refreshPosition: function(){
196
+
197
+
198
+
199
+ var scrolltop = jQuery('html,body').scrollTop();
200
+
201
+
202
+
203
+ if (oPlugin.Browser.Chrome){
204
+
205
+
206
+
207
+ scrolltop = document.body.scrollTop;
208
+
209
+ }
210
+
211
+
212
+
213
+
214
+
215
+ var div = jQuery('#wpPlugin-BOX');
216
+
217
+ var start = jQuery(div).offset().top;
218
+
219
+
220
+
221
+
222
+
223
+ var p = jQuery(window).scrollTop();
224
+
225
+ jQuery(div).css('position','fixed');
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+ //document.getElementById('wpPlugin-BOX').style.top = (scrolltop+40) + 'px';
234
+
235
+ /*if(parseInt(document.getElementById('wpPlugin-BOX').style.top.replace('px',''))!=(scrolltop+40)){
236
+
237
+ document.getElementById('wpPlugin-BOX').style.display='none';
238
+
239
+
240
+
241
+ document.getElementById('wpPlugin-BOX').style.top = (scrolltop+40) + 'px';
242
+
243
+
244
+
245
+ if(parseInt(document.getElementById('wpPlugin-BOX').style.top.replace('px',''))>(scrolltop+40)){
246
+
247
+ document.getElementById('wpPlugin-BOX').style.top = (parseInt(document.getElementById('wpPlugin-BOX').style.top.replace('px',''))-1) + 'px';
248
+
249
+ }else{
250
+
251
+ document.getElementById('wpPlugin-BOX').style.top = (parseInt(document.getElementById('wpPlugin-BOX').style.top.replace('px',''))+1) + 'px';
252
+
253
+ }
254
+
255
+
256
+
257
+ document.getElementById('wpPlugin-BOX').style.display='';
258
+
259
+ }else{
260
+
261
+ clearInterval(oPlugin.Timer);
262
+
263
+ oPlugin.Timer=null;
264
+
265
+ }
266
+
267
+ */
268
+
269
+ },
270
+
271
+ toolbarStart: function(sID_Parent,sMove,sHeight,sWidth,sBgColor,sLabelBgColor,sSlideBig,sColor,sFontSize,sLinkColor){
272
+
273
+
274
+
275
+
276
+
277
+ if(sLinkColor){
278
+
279
+ oPlugin.LinkColor = sLinkColor;
280
+
281
+ }
282
+
283
+ if(sFontSize){
284
+
285
+ oPlugin.FontSize = sFontSize;
286
+
287
+ }
288
+
289
+
290
+
291
+ if(sColor){
292
+
293
+ oPlugin.Color = sColor;
294
+
295
+ }
296
+
297
+ if(sBgColor){
298
+
299
+ oPlugin.BgColor = sBgColor;
300
+
301
+ }
302
+
303
+ if(sSlideBig){
304
+
305
+ oPlugin.SlideBig = "Big";
306
+
307
+ }//If Null == Small!
308
+
309
+
310
+
311
+ if(sLabelBgColor){
312
+
313
+ oPlugin.LabelBgColor = sLabelBgColor;
314
+
315
+ }
316
+
317
+ if(sWidth){
318
+
319
+ oPlugin.PluginWidth = sWidth;
320
+
321
+
322
+
323
+ }
324
+
325
+ if(sHeight){
326
+
327
+ oPlugin.PluginHeight = sHeight;
328
+
329
+
330
+
331
+ }
332
+
333
+
334
+
335
+ if(sMove){
336
+
337
+ window.onscroll = function (e) {
338
+
339
+ if(!oPlugin.Timer){
340
+
341
+
342
+
343
+ oPlugin.Timer = setInterval("oPlugin.refreshPosition();", 50);
344
+
345
+ }
346
+
347
+ }
348
+
349
+ }
350
+
351
+ jQuery(document).ready(function(){
352
+
353
+ document.getElementById('wpPlugin-BOX').style.marginLeft = (21 - jQuery("body").css("padding-left").replace('px','')) + 'px';
354
+
355
+ });
356
+
357
+
358
+ var Base =
359
+
360
+ '<div align="center" class="wpPlugin-MainFrame" id="wpPlugin-BOX" style="width:'+(oPlugin.PluginWidth+2)+'px;position:absolute;margin-top:40px;display:block;height:'+oPlugin.PluginHeight+'px;" >'+
361
+
362
+ '<div id="wpSocciable" class="wpSocciable'+oPlugin.SlideBig+'" onclick="oPlugin.hideShowToolbar();" ></div>'+
363
+
364
+ '<table id="wpPlugin-MainFrame" class="shape" cellspacing="0" cellpadding="0" width="100%">'+
365
+
366
+ '<tr>'+
367
+
368
+ '<td class="top-left" /><td class="top" /><td class="top-right" />'+
369
+
370
+ '</tr>'+
371
+
372
+ '<tr valign="top" >'+
373
+
374
+ '<td class="left" />'+
375
+
376
+ '<td align="left" class="frame" style="background-color:'+oPlugin.BgColor+';width:'+(oPlugin.PluginWidth-7+7)+'px;" >'+
377
+
378
+ '<ul class="toolbar" style="color:'+oPlugin.Color+';font-size:'+oPlugin.FontSize+'px;width:'+(oPlugin.PluginWidth-7+7)+'px;" id="toolbar" >'+
379
+
380
+ '</ul>'+
381
+
382
+ '</td>'+
383
+
384
+ '<td class="right" />'+
385
+
386
+ '</tr>'+
387
+
388
+ '<tr>'+
389
+
390
+ '<td class="bottom-left" /><td class="bottom" /><td class="bottom-right" />'+
391
+
392
+ '</tr>'+
393
+
394
+ '</table></div>';
395
+
396
+
397
+
398
+ document.getElementById(sID_Parent).innerHTML = Base + document.getElementById(sID_Parent).innerHTML;
399
+
400
+
401
+
402
+ oPlugin.InitializeShowObj = 'wpPlugin-MainFrame';
403
+
404
+ document.getElementById(oPlugin.InitializeShowObj).style.display='none';
405
+
406
+ oPlugin.InitializeShow = setInterval("jQuery('#'+oPlugin.InitializeShowObj).show(3000);clearInterval(oPlugin.InitializeShow);", 1000);
407
+
408
+ //oPlugin.blur(document.getElementById(oPlugin.InitializeShowObj));
409
+
410
+
411
+
412
+ //onmouseover="oPlugin.focus(this);" onmouseout="oPlugin.blur(this);" onmouseover"this.style.opacity=1;" onmouseout"this.style.opacity=0.4;"
413
+
414
+ /*if(!oPlugin.Browser.Explorer){
415
+
416
+
417
+
418
+ document.getElementById(sID_Parent).style.display='none';
419
+
420
+ oPlugin.InitializeShowObj = sID_Parent;
421
+
422
+ oPlugin.InitializeShow = setInterval("jQuery('#'+oPlugin.InitializeShowObj).show(3000);clearInterval(oPlugin.InitializeShow);", 1000);
423
+
424
+
425
+
426
+
427
+
428
+ }else{
429
+
430
+ document.getElementById('wpPlugin-MainFrame').style.filter='alpha(opacity=40)';
431
+
432
+
433
+
434
+ }*/
435
+
436
+
437
+
438
+ document.getElementById('wpPlugin-BOX').style.top = '20px';
439
+
440
+ },
441
+
442
+ CreateGoToTop:function(sId,sTitle,sContent){
443
+
444
+
445
+
446
+ oLi = oPlugin.createElement('li',sId,'item',null,'',null);
447
+
448
+
449
+
450
+
451
+
452
+
453
+
454
+ var oLi_Functions;
455
+
456
+
457
+
458
+ oLi_Functions = Array();
459
+
460
+ oLi_Functions[0]= new Array();
461
+
462
+ oLi_Functions[0][0] = 'click';
463
+
464
+ oLi_Functions[0][1] = function(){
465
+
466
+ // var scrolltop = jQuery('html,body').scrollTop();
467
+
468
+
469
+
470
+ if (oPlugin.Browser.Chrome){
471
+
472
+
473
+
474
+ document.body.scrollTop = 0;
475
+
476
+ }
477
+
478
+ else{
479
+
480
+ jQuery('html,body').scrollTop(0);
481
+
482
+ }
483
+
484
+
485
+
486
+ };
487
+
488
+
489
+
490
+ oLabel = oPlugin.createElement('div','title_' +sId,'title',oLi_Functions,'<img id="arrow_'+sId+'" src="'+jQuery("#skyscraper_dir").val()+'/images/toolbar/arrow.png" /><span>'+sTitle+'</span>',null);
491
+
492
+ oLabel.style.background=oPlugin.LabelBgColor;
493
+
494
+ oLi.appendChild(oLabel);
495
+
496
+
497
+
498
+ oLi_Content = oPlugin.createElement('div','content_' +sId,'content',oLi_Functions,sContent,null);
499
+
500
+ if(sContent==''){oLi_Content.style.lineHeight='1px';oLi_Content.style.height='1px';oLi_Content.innerHTML='';}
501
+
502
+ oLi_Content.align='center';
503
+
504
+ oLi_Content.style.display='block';
505
+
506
+ oLi_Content.style.cursor='pointer';
507
+
508
+ oLi.appendChild(oLi_Content);
509
+
510
+
511
+
512
+ document.getElementById('toolbar').appendChild(oLi);
513
+
514
+
515
+
516
+ },
517
+
518
+
519
+
520
+ CreateSimpleNode:function(sId,sTitle,sContent,display){
521
+
522
+
523
+
524
+ oLi = oPlugin.createElement('li',sId,'item',null,'',null);
525
+
526
+
527
+
528
+
529
+
530
+
531
+
532
+ var oLi_Functions;
533
+
534
+
535
+
536
+ oLi_Functions = Array();
537
+
538
+ oLi_Functions[0]= new Array();
539
+
540
+ oLi_Functions[0][0] = 'click';
541
+
542
+ oLi_Functions[0][1] = function(){
543
+
544
+ if(document.getElementById('content_'+sId).style.display=='none'){
545
+
546
+
547
+
548
+ document.getElementById('content_'+sId).style.display='block';
549
+
550
+ document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'/images/toolbar/arrow.png';
551
+
552
+
553
+
554
+ }else{
555
+
556
+ document.getElementById('content_'+sId).style.display='none';
557
+
558
+ document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'/images/toolbar/arrow_s.png';
559
+
560
+ }
561
+
562
+ };
563
+
564
+
565
+
566
+ if(display){
567
+
568
+ arrow='';
569
+
570
+ }else{
571
+
572
+ arrow='_s';
573
+
574
+ }
575
+
576
+ oLabel = oPlugin.createElement('div','title_' +sId,'title',oLi_Functions,'<img id="arrow_'+sId+'" src="'+jQuery("#skyscraper_dir").val()+'/images/toolbar/arrow'+arrow+'.png" /><span>'+sTitle+'</span>',null);
577
+
578
+ oLabel.style.background=oPlugin.LabelBgColor;
579
+
580
+ oLi.appendChild(oLabel);
581
+
582
+
583
+
584
+ oLi_Content = oPlugin.createElement('div','content_' +sId,'content',oLi_Functions,sContent,null);
585
+
586
+ if(sContent==''){oLi_Content.style.lineHeight='1px';oLi_Content.style.height='1px';oLi_Content.innerHTML='';}
587
+
588
+ oLi_Content.align='center';
589
+
590
+ if(display){
591
+
592
+ oLi_Content.style.display='block';
593
+
594
+ }else{
595
+
596
+ oLi_Content.style.display='none';
597
+
598
+ }
599
+
600
+ oLi.appendChild(oLi_Content);
601
+
602
+
603
+
604
+ document.getElementById('toolbar').appendChild(oLi);
605
+
606
+
607
+
608
+ },
609
+
610
+
611
+
612
+ CreateGoToHome:function(sId,sTitle,sContent){
613
+
614
+
615
+
616
+ oLi = oPlugin.createElement('li',sId,'item',null,'',null);
617
+
618
+
619
+
620
+
621
+
622
+
623
+
624
+ var oLi_Functions;
625
+
626
+
627
+
628
+ oLi_Functions = Array();
629
+
630
+ oLi_Functions[0]= new Array();
631
+
632
+ oLi_Functions[0][0] = 'click';
633
+
634
+ oLi_Functions[0][1] = function(){document.location.href ='http://'+ document.location.href.split("/")[2];};
635
+
636
+
637
+
638
+ oLabel = oPlugin.createElement('div','title_' +sId,'title',oLi_Functions,'<img id="arrow_'+sId+'" src="'+jQuery("#skyscraper_dir").val()+'/images/toolbar/arrow.png" /><span>'+sTitle+'</span>',null);
639
+
640
+ oLabel.style.background=oPlugin.LabelBgColor;
641
+
642
+ oLi.appendChild(oLabel);
643
+
644
+
645
+
646
+ oLi_Content = oPlugin.createElement('div','content_' +sId,'content',oLi_Functions,sContent,null);
647
+
648
+ if(sContent==''){oLi_Content.style.lineHeight='1px';oLi_Content.style.height='1px';oLi_Content.innerHTML='';}
649
+
650
+ oLi_Content.align='center';
651
+
652
+ oLi_Content.style.display='block';
653
+
654
+ oLi_Content.style.cursor='pointer';
655
+
656
+ oLi.appendChild(oLi_Content);
657
+
658
+
659
+
660
+ document.getElementById('toolbar').appendChild(oLi);
661
+
662
+
663
+
664
+ },
665
+
666
+ CreateNode: function(sId,sTitle,sContent,sContentDialog,sContentDialogStyle,dialogHeight,dialogWidth){
667
+
668
+
669
+
670
+ oLi = oPlugin.createElement('li',sId,'item',null,'',null);
671
+
672
+
673
+
674
+
675
+
676
+
677
+
678
+ var oLi_Functions;
679
+
680
+
681
+
682
+ oLi_Functions = Array();
683
+
684
+ oLi_Functions[0]= new Array();
685
+
686
+ oLi_Functions[0][0] = 'click';
687
+
688
+ oLi_Functions[0][1] = function(){oPlugin.boxDialog(sId);};
689
+
690
+
691
+
692
+
693
+
694
+
695
+
696
+
697
+
698
+
699
+
700
+ oLabel = oPlugin.createElement('div','title_' +sId,'title',oLi_Functions,'<img id="arrow_'+sId+'" src="'+jQuery("#skyscraper_dir").val()+'/images/toolbar/arrow.png" /><span>'+sTitle+'</span>',null);
701
+
702
+ oLabel.style.background=oPlugin.LabelBgColor;
703
+
704
+ oLi.appendChild(oLabel);
705
+
706
+
707
+
708
+
709
+
710
+
711
+
712
+ if(sContentDialog){
713
+
714
+ var oLi_BoxShape = '<table class="shape" cellspacing="0" cellpadding="0" height="'+(dialogHeight)+'" width="100%" >'+
715
+
716
+ '<tr>'+
717
+
718
+ '<td class="top-left" /><td class="top" /><td class="top-right" />'+
719
+
720
+ '</tr>'+
721
+
722
+ '<tr valign="top">'+
723
+
724
+ '<td class="left" style="font-size:10px;" >&nbsp;</td>'+
725
+
726
+ '<td align="left" style="background-color:'+oPlugin.BgColor+';width:'+(dialogWidth+50)+'px;" class="frame" >';
727
+
728
+ oLi_BoxShape += '';
729
+
730
+ oLi_BoxShape += '<span style="color:'+oPlugin.Color+';position:absolute;margin-left:';
731
+
732
+
733
+
734
+ if(oPlugin.Browser.Explorer){
735
+
736
+ oLi_BoxShape += (oPlugin.PluginWidth+dialogWidth-oPlugin.PluginWidth-12)+'px;';
737
+
738
+ }else{
739
+
740
+ oLi_BoxShape += (oPlugin.PluginWidth+dialogWidth-oPlugin.PluginWidth)+'px;';
741
+
742
+ }
743
+
744
+
745
+
746
+
747
+
748
+ oLi_BoxShape += 'margin-top:5px;font-size:11px;font-weight:bold;cursor:pointer;border:solid 1px '+oPlugin.Color+';padding:2px;line-height:9px;padding-top:0px;padding-bottom:2px;" onclick="oPlugin.boxDialog(\''+sId+'\')" >x</span>';
749
+
750
+ oLi_BoxShape += '<div class="boxTitleContent" style="font-size:'+(oPlugin.FontSize+2)+'px;color:'+oPlugin.Color+';font-weight:bold;background:'+oPlugin.LabelBgColor+';';
751
+
752
+
753
+
754
+ if(oPlugin.Browser.Explorer){
755
+
756
+ oLi_BoxShape += 'width:'+(dialogWidth+8)+'px;';
757
+
758
+ }else{
759
+
760
+ oLi_BoxShape += 'width:'+(dialogWidth+13)+'px;';
761
+
762
+ }
763
+
764
+
765
+
766
+ oLi_BoxShape += '" >&nbsp;&nbsp;&nbsp;&nbsp;'+sTitle+'</div>';
767
+
768
+
769
+
770
+ switch(sContentDialogStyle){
771
+
772
+ case 'List':
773
+
774
+ oLi_BoxShape += '<div align="left" style="height:'+(dialogHeight)+'px;margin:10px;margin-bottom:0px;padding-bottom:0px;width:100%;float:none;clear:both;" >';
775
+
776
+ oLi_BoxShape += '<ul align="left" >';
777
+
778
+ for(i=0;i<sContentDialog.length;i++){
779
+
780
+
781
+
782
+ oLi_BoxShape += '<li style="position:relative;color:#c1c1c1;margin-left:-20px;margin-bottom:5px;font-size:'+oPlugin.FontSize+'px;padding-bottom:5px;list-style:disc;font-weight:bold;">';
783
+
784
+ oLi_BoxShape += '<span style="color:'+oPlugin.Color+';" >'+sContentDialog[i][0]+'</span>&nbsp;&nbsp;';
785
+
786
+ oLi_BoxShape += '<span style="height:'+(oPlugin.FontSize+2)+'px;color:'+oPlugin.Color+';opacity:0.4;filter: alpha(opacity=40);" >'+sContentDialog[i][1]+'</span>&nbsp;&nbsp;';
787
+
788
+ oLi_BoxShape += '<a style="color:'+oPlugin.LinkColor+';" >'+sContentDialog[i][2]+'</a>';
789
+
790
+ oLi_BoxShape += '</li>';
791
+
792
+
793
+
794
+ }
795
+
796
+ oLi_BoxShape += '</ul>';
797
+
798
+ oLi_BoxShape += '</div>';
799
+
800
+ break;
801
+
802
+ case 'Urls':
803
+
804
+ oLi_BoxShape += '<div align="left" style="height:'+(dialogHeight)+'px;margin:10px;margin-bottom:0px;padding-bottom:0px;width:100%;float:none;clear:both;" >';
805
+
806
+ oLi_BoxShape += '<ul align="left" >';
807
+
808
+ for(i=0;i<sContentDialog.length;i++){
809
+
810
+
811
+
812
+ oLi_BoxShape += '<li style="color:#c1c1c1;margin-left:-20px;margin-bottom:5px;font-size:'+oPlugin.FontSize+'px;padding-bottom:5px;list-style:disc;font-weight:bold;" >';
813
+
814
+ oLi_BoxShape += '<a href="'+sContentDialog[i]+'" style="color:'+oPlugin.LinkColor+';" >'+sContentDialog[i]+'</a>';
815
+
816
+ oLi_BoxShape += '</li>';
817
+
818
+
819
+
820
+ }
821
+
822
+ oLi_BoxShape += '</ul>';
823
+
824
+ oLi_BoxShape += '</div>';
825
+
826
+ break;
827
+
828
+ case 'Notice':
829
+
830
+ //oPlugin.Browser.Explorer
831
+
832
+ oLi_BoxShape += '<ul style="margin-top:10px;margin-bottom:10px;margin-left:10px;padding-left:15px;width:'+(dialogWidth-50)+'px;" >';
833
+
834
+ for(i=0;i<sContentDialog.length;i++){
835
+
836
+
837
+
838
+ oLi_BoxShape += '<li style="font-size:'+oPlugin.FontSize+'px;';
839
+
840
+ if(i != sContentDialog.length-1){
841
+
842
+ oLi_BoxShape += 'padding-bottom:10px;border-bottom:solid 1px #c1c1c1;';
843
+
844
+ }
845
+
846
+ oLi_BoxShape +='list-style:disc;font-weight:bold;color:#c1c1c1;">';
847
+
848
+ oLi_BoxShape += '<a style="color:'+oPlugin.LinkColor+';" >'+sContentDialog[i][0]+'</a> ';
849
+
850
+ oLi_BoxShape += '<span style="height:'+(oPlugin.FontSize+2)+'px;color:'+oPlugin.Color+'; filter: alpha(opacity=40);opacity:0.4;" >'+sContentDialog[i][1]+'</span><br/>';
851
+
852
+ oLi_BoxShape += '<span style="height:'+(oPlugin.FontSize+2)+'px;color:'+oPlugin.Color+';filter: alpha(opacity=70);opacity:0.7;" >'+sContentDialog[i][2]+'';
853
+
854
+ oLi_BoxShape += ' - <a style="color:'+oPlugin.LinkColor+';" href="'+sContentDialog[i][3]+'" >'+sContentDialog[i][3]+'</a></span><br/>';
855
+
856
+ oLi_BoxShape += '<span style="height:'+(oPlugin.FontSize+2)+'px;color:'+oPlugin.Color+';opacity:0.4;filter: alpha(opacity=40);" >'+sContentDialog[i][4]+'</span>';
857
+
858
+ oLi_BoxShape += '</li>';
859
+
860
+
861
+
862
+ }
863
+
864
+ oLi_BoxShape += '</ul>';
865
+
866
+ break;
867
+
868
+ case 'Item':
869
+
870
+ oLi_BoxShape += '<div align="left" style="opacity:0.8;filter: alpha(opacity=80);height:'+(dialogHeight)+'px;margin:10px;margin-bottom:0px;margin-top:5px;padding-bottom:0px;width:100%;float:none;clear:both;" >';
871
+
872
+ oLi_BoxShape += '<ul align="left" >';
873
+
874
+
875
+
876
+ oLi_BoxShape += '<li style="color:#c1c1c1;margin-left:-20px;font-size:'+oPlugin.FontSize+'px;padding-bottom:5px;list-style:disc;font-weight:bold;" >';
877
+
878
+ oLi_BoxShape += '<span style="color:'+oPlugin.Color+';" >'+sContentDialog+'</span>';
879
+
880
+ oLi_BoxShape += '</li>';
881
+
882
+
883
+
884
+
885
+
886
+ oLi_BoxShape += '</ul>';
887
+
888
+ oLi_BoxShape += '</div>';
889
+
890
+
891
+
892
+ break;
893
+
894
+ default:
895
+
896
+ oLi_BoxShape += '<div align="center" style="height:'+(dialogHeight)+'px;width:100%;" ><div style="height:'+(dialogHeight)+'px;color:'+oPlugin.Color+';font-size:'+(oPlugin.FontSize-1)+'px;margin:5px;padding:0px;width:95%;float:none;clear:both;" >';
897
+
898
+ oLi_BoxShape += sContentDialog ;
899
+
900
+ oLi_BoxShape += '</div></div>';
901
+
902
+ break;
903
+
904
+
905
+
906
+ }
907
+
908
+
909
+
910
+
911
+
912
+
913
+
914
+ oLi_BoxShape += '<td class="right" style="font-size:10px;" >&nbsp;</td>'+
915
+
916
+ '</tr>'+
917
+
918
+ '<tr>'+
919
+
920
+ '<td class="bottom-left" /><td class="bottom" /><td class="bottom-right" />'+
921
+
922
+ '</tr>'+
923
+
924
+ '</table>';
925
+
926
+
927
+
928
+
929
+
930
+ oLi_BoxDialog = oPlugin.createElement('div','boxDialog_' +sId,'boxDialog',null,oLi_BoxShape,null);
931
+
932
+ oLi_BoxDialog.align='left';
933
+
934
+
935
+
936
+
937
+
938
+
939
+
940
+ if(dialogWidth){
941
+
942
+ oLi_BoxDialog.style.width=(dialogWidth+10)+'px';
943
+
944
+ }
945
+
946
+
947
+
948
+ if(dialogHeight){
949
+
950
+ if(oPlugin.Browser.Explorer){
951
+
952
+ oLi_BoxDialog.style.height=(dialogHeight+100)+'px';
953
+
954
+ }else{
955
+
956
+ oLi_BoxDialog.style.height=(dialogHeight+10)+'px';
957
+
958
+ }
959
+
960
+ }
961
+
962
+
963
+
964
+ oLi_BoxDialog.style.display='none';
965
+
966
+
967
+
968
+
969
+
970
+ oLi_BoxDialog.style.left=(oPlugin.PluginWidth-7+7)+'px';
971
+
972
+ oLi_BoxDialog.style.marginTop='-35px';
973
+
974
+
975
+
976
+
977
+
978
+
979
+
980
+ oLi.appendChild(oLi_BoxDialog);
981
+
982
+ }
983
+
984
+
985
+
986
+
987
+
988
+ oLi_Content = oPlugin.createElement('div','content_' +sId,'content',null,sContent,null);
989
+
990
+ if(sContent==''){oLi_Content.style.lineHeight='1px';oLi_Content.style.height='1px';oLi_Content.innerHTML='';}
991
+
992
+ oLi_Content.align='center';
993
+
994
+ oLi_Content.style.display='block';
995
+
996
+ oLi.appendChild(oLi_Content);
997
+
998
+
999
+
1000
+
1001
+
1002
+ document.getElementById('toolbar').appendChild(oLi);
1003
+
1004
+ },
1005
+
1006
+
1007
+
1008
+
1009
+
1010
+ createElement: function(sType,sId,sClass,aFunctions,sHtml,oParent){
1011
+
1012
+ var oElement;
1013
+
1014
+
1015
+
1016
+ oElement=document.createElement(sType);
1017
+
1018
+ oElement.setAttribute('id',sId);
1019
+
1020
+ oElement.className=sClass;
1021
+
1022
+
1023
+
1024
+ if(sHtml)
1025
+
1026
+ {
1027
+
1028
+ oElement.innerHTML=sHtml;
1029
+
1030
+ }
1031
+
1032
+
1033
+
1034
+ if (aFunctions)
1035
+
1036
+ {
1037
+
1038
+ for (iFunctions=0;iFunctions< aFunctions.length;iFunctions++)
1039
+
1040
+ {
1041
+
1042
+ if (oPlugin.Browser.Other)
1043
+
1044
+ {
1045
+
1046
+ oElement.addEventListener(aFunctions[iFunctions][0],eval(aFunctions[iFunctions][1]),false);
1047
+
1048
+ }
1049
+
1050
+ if (oPlugin.Browser.Explorer)
1051
+
1052
+ {
1053
+
1054
+ oElement['on' + aFunctions[iFunctions][0]]= aFunctions[iFunctions][1];
1055
+
1056
+ }
1057
+
1058
+ }
1059
+
1060
+ }
1061
+
1062
+
1063
+
1064
+ if (oParent)
1065
+
1066
+ {
1067
+
1068
+ oParent.appendChild(oElement);
1069
+
1070
+ }else{
1071
+
1072
+ return oElement;
1073
+
1074
+ }
1075
+
1076
+ }
1077
+
1078
+ };
1079
+
1080
+
1081
+
1082
+
1083
+
1084
+ function twitter(url,title){
1085
+
1086
+ return '<a href="https://twitter.com/share" data-text="'+ title +' (via http://www.fueto.com)" data-url="'+ url + '" class="twitter-share-button" data-count="horizontal">Tweet</a><scr'+'ipt type="text/javascript" src="//platform.twitter.com/widgets.js"></scr'+'ipt>';
1087
+
1088
+ }
1089
+
1090
+ function facebook(url){
1091
+
1092
+
1093
+
1094
+ return '<iframe src="//www.facebook.com/plugins/like.php?href='+url+'&send=false&layout=button_count&show_faces=false&action=like&colorscheme=light&font" scrolling="no" frameborder="0" style="border:none; overflow:hidden;height:32px;width:115px" allowTransparency="true"></iframe>'
1095
+
1096
+ }
1097
+
1098
+
1099
+
1100
+ function plus(url){
1101
+
1102
+ return '<g:plusone annotation="bubble" href="'+url+'" size="medium"></g:plusone>';
1103
+
1104
+
1105
+
1106
+ }
1107
+
1108
+
1109
+
1110
+ function counters(){
1111
+
1112
+
1113
+
1114
+ jQuery("span#socialstats").each(
1115
+
1116
+
1117
+
1118
+ function(i) {
1119
+
1120
+ var url = jQuery(this).attr("url");
1121
+
1122
+ var title = jQuery(this).attr("title");
1123
+
1124
+ var append = '<table border=0"><tr>';
1125
+
1126
+ append += '<td valign="top">'+twitter(url,title)+'</td>' ;
1127
+
1128
+ append += '<td valign="top">'+plus(url)+'</td>' ;
1129
+
1130
+ append += '<td valign="baseline">'+facebook(url)+'</td>' ;
1131
+
1132
+ append += '</tr></table>';
1133
+
1134
+ jQuery(this).html(append);
1135
+
1136
+
1137
+
1138
+
1139
+
1140
+ });
1141
+
1142
+ }
1143
+
1144
+
js/sociable-admin.js CHANGED
@@ -1,33 +1,33 @@
1
- jQuery(document).ready(function(){
2
- jQuery("#sociable_site_list").sortable({});
3
-
4
- jQuery("#sociable_site_list input:checkbox").change(function() {
5
- if (jQuery(this).attr('checked')) {
6
- jQuery(this).parent().removeClass("inactive");
7
- jQuery(this).parent().addClass("active");
8
- } else {
9
- jQuery(this).parent().removeClass('active');
10
- jQuery(this).parent().addClass('inactive');
11
- }
12
- } );
13
-
14
- jQuery( '#sociable_reset_form' ).submit( function(){
15
-
16
- if( confirm( "You Are About To Reset Your Sociable Settings. \n\nThere Is No Undo, Do You Want To Continue?" ) ){
17
- return true;
18
- } else {
19
- return false;
20
- }
21
-
22
- })
23
-
24
- jQuery( '#sociable_remove_form' ).submit( function(){
25
-
26
- if( confirm( "You Are About To Remove All Database Data And Deactivate Sociable. \n\nThere Is No Undo, Do You Want To Continue?" ) ){
27
- return true;
28
- } else {
29
- return false;
30
- }
31
-
32
- })
33
  });
1
+ jQuery(document).ready(function(){
2
+ jQuery("#sociable_site_list").sortable({});
3
+
4
+ jQuery("#sociable_site_list input:checkbox").change(function() {
5
+ if (jQuery(this).attr('checked')) {
6
+ jQuery(this).parent().removeClass("inactive");
7
+ jQuery(this).parent().addClass("active");
8
+ } else {
9
+ jQuery(this).parent().removeClass('active');
10
+ jQuery(this).parent().addClass('inactive');
11
+ }
12
+ } );
13
+
14
+ jQuery( '#sociable_reset_form' ).submit( function(){
15
+
16
+ if( confirm( "You Are About To Reset Your Sociable Settings. \n\nThere Is No Undo, Do You Want To Continue?" ) ){
17
+ return true;
18
+ } else {
19
+ return false;
20
+ }
21
+
22
+ })
23
+
24
+ jQuery( '#sociable_remove_form' ).submit( function(){
25
+
26
+ if( confirm( "You Are About To Remove All Database Data And Deactivate Sociable. \n\nThere Is No Undo, Do You Want To Continue?" ) ){
27
+ return true;
28
+ } else {
29
+ return false;
30
+ }
31
+
32
+ })
33
  });
js/sociable.js CHANGED
@@ -1,80 +1,80 @@
1
- function more(obj, id){
2
-
3
- var button;
4
- var box;
5
- var sociable;
6
-
7
- box = document.getElementById("sociable-"+id+"");
8
- button = obj;
9
- sociable = document.getElementById("sociable");
10
- //console.log(sociable.style.offsetTop);
11
- sociable.style.postion = "absloute";
12
- sociable.style.top = button.offsetTop;
13
- //alert(button.offsetTop);
14
- //alert(button.offsetLeft);
15
- sociable.style.left = button.offsetLeft;
16
- //console.log(sociable.style.offsetTop);
17
- box.style.display = "";
18
- }
19
-
20
- var t;
21
- function hide_sociable(id,close){
22
- if (close == null){
23
- t = setTimeout(function (){
24
- hide_sociable(id,true)
25
- },1000);
26
- }else{
27
- var box;
28
- box = document.getElementById("sociable-"+id+"");
29
- box.style.display = "none";
30
- }
31
- }
32
-
33
- function get_object(id) {
34
- var object = null;
35
- if( document.layers ) {
36
- object = document.layers[id];
37
- } else if( document.all ) {
38
- object = document.all[id];
39
- } else if( document.getElementById ) {
40
- object = document.getElementById(id);
41
- }
42
- return object;
43
- }
44
-
45
- function is_child_of(parent, child) {
46
- if( child != null ) {
47
- while( child.parentNode ) {
48
- if( (child = child.parentNode) == parent ) {
49
- return true;
50
- }
51
- }
52
- }
53
- return false;
54
- }
55
- function fixOnMouseOut(element, event, id) {
56
- clearTimeout(t);
57
- var current_mouse_target = null;
58
- if( event.toElement ) {
59
- current_mouse_target = event.toElement;
60
- } else if( event.relatedTarget ) {
61
- current_mouse_target = event.relatedTarget;
62
- }
63
- if( !is_child_of(element, current_mouse_target) && element != current_mouse_target ) {
64
-
65
- hide_sociable(id)
66
- }
67
- }
68
-
69
-
70
- window.___gcfg = {
71
- lang: 'en-US'
72
- };
73
-
74
- (function() {
75
- var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
76
- po.src = 'https://apis.google.com/js/plusone.js';
77
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
78
- })();
79
-
80
-
1
+ function more(obj, id){
2
+
3
+ var button;
4
+ var box;
5
+ var sociable;
6
+
7
+ box = document.getElementById("sociable-"+id+"");
8
+ button = obj;
9
+ sociable = document.getElementById("sociable");
10
+ //console.log(sociable.style.offsetTop);
11
+ sociable.style.postion = "absloute";
12
+ sociable.style.top = button.offsetTop;
13
+ //alert(button.offsetTop);
14
+ //alert(button.offsetLeft);
15
+ sociable.style.left = button.offsetLeft;
16
+ //console.log(sociable.style.offsetTop);
17
+ box.style.display = "";
18
+ }
19
+
20
+ var t;
21
+ function hide_sociable(id,close){
22
+ if (close == null){
23
+ t = setTimeout(function (){
24
+ hide_sociable(id,true)
25
+ },1000);
26
+ }else{
27
+ var box;
28
+ box = document.getElementById("sociable-"+id+"");
29
+ box.style.display = "none";
30
+ }
31
+ }
32
+
33
+ function get_object(id) {
34
+ var object = null;
35
+ if( document.layers ) {
36
+ object = document.layers[id];
37
+ } else if( document.all ) {
38
+ object = document.all[id];
39
+ } else if( document.getElementById ) {
40
+ object = document.getElementById(id);
41
+ }
42
+ return object;
43
+ }
44
+
45
+ function is_child_of(parent, child) {
46
+ if( child != null ) {
47
+ while( child.parentNode ) {
48
+ if( (child = child.parentNode) == parent ) {
49
+ return true;
50
+ }
51
+ }
52
+ }
53
+ return false;
54
+ }
55
+ function fixOnMouseOut(element, event, id) {
56
+ clearTimeout(t);
57
+ var current_mouse_target = null;
58
+ if( event.toElement ) {
59
+ current_mouse_target = event.toElement;
60
+ } else if( event.relatedTarget ) {
61
+ current_mouse_target = event.relatedTarget;
62
+ }
63
+ if( !is_child_of(element, current_mouse_target) && element != current_mouse_target ) {
64
+
65
+ hide_sociable(id)
66
+ }
67
+ }
68
+
69
+
70
+ window.___gcfg = {
71
+ lang: 'en-US'
72
+ };
73
+
74
+ (function() {
75
+ var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
76
+ po.src = 'https://apis.google.com/js/plusone.js';
77
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
78
+ })();
79
+
80
+
languages/js/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
+ }
languages/js/admin-fn.js ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ function hideOrShow(sID){
2
+
3
+ if(document.getElementById(sID+'-Tab').innerHTML == '-'){
4
+ document.getElementById(sID+'-Tab').innerHTML = '+';
5
+ document.getElementById(sID+'-Content').style.display='none';
6
+
7
+ }else{
8
+ document.getElementById(sID+'-Tab').innerHTML = '-';
9
+ document.getElementById(sID+'-Content').style.display='block';
10
+ }
11
+
12
+ }
languages/js/sociable-admin.js ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function(){
2
+ jQuery("#sociable_site_list").sortable({});
3
+
4
+ jQuery("#sociable_site_list input:checkbox").change(function() {
5
+ if (jQuery(this).attr('checked')) {
6
+ jQuery(this).parent().removeClass("inactive");
7
+ jQuery(this).parent().addClass("active");
8
+ } else {
9
+ jQuery(this).parent().removeClass('active');
10
+ jQuery(this).parent().addClass('inactive');
11
+ }
12
+ } );
13
+
14
+ jQuery( '#sociable_reset_form' ).submit( function(){
15
+
16
+ if( confirm( "You Are About To Reset Your Sociable Settings. \n\nThere Is No Undo, Do You Want To Continue?" ) ){
17
+ return true;
18
+ } else {
19
+ return false;
20
+ }
21
+
22
+ })
23
+
24
+ jQuery( '#sociable_remove_form' ).submit( function(){
25
+
26
+ if( confirm( "You Are About To Remove All Database Data And Deactivate Sociable. \n\nThere Is No Undo, Do You Want To Continue?" ) ){
27
+ return true;
28
+ } else {
29
+ return false;
30
+ }
31
+
32
+ })
33
+ });
languages/js/sociable.js ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ function more(obj, id){
2
+
3
+ var button;
4
+ var box;
5
+ var sociable;
6
+
7
+ box = document.getElementById("sociable-"+id+"");
8
+ button = obj;
9
+ sociable = document.getElementById("sociable");
10
+ //console.log(sociable.style.offsetTop);
11
+ sociable.style.postion = "absloute";
12
+ sociable.style.top = button.offsetTop;
13
+ //alert(button.offsetTop);
14
+ //alert(button.offsetLeft);
15
+ sociable.style.left = button.offsetLeft;
16
+ //console.log(sociable.style.offsetTop);
17
+ box.style.display = "";
18
+ }
19
+
20
+ var t;
21
+ function hide_sociable(id,close){
22
+ if (close == null){
23
+ t = setTimeout(function (){
24
+ hide_sociable(id,true)
25
+ },1000);
26
+ }else{
27
+ var box;
28
+ box = document.getElementById("sociable-"+id+"");
29
+ box.style.display = "none";
30
+ }
31
+ }
32
+
33
+ function get_object(id) {
34
+ var object = null;
35
+ if( document.layers ) {
36
+ object = document.layers[id];
37
+ } else if( document.all ) {
38
+ object = document.all[id];
39
+ } else if( document.getElementById ) {
40
+ object = document.getElementById(id);
41
+ }
42
+ return object;
43
+ }
44
+
45
+ function is_child_of(parent, child) {
46
+ if( child != null ) {
47
+ while( child.parentNode ) {
48
+ if( (child = child.parentNode) == parent ) {
49
+ return true;
50
+ }
51
+ }
52
+ }
53
+ return false;
54
+ }
55
+ function fixOnMouseOut(element, event, id) {
56
+ clearTimeout(t);
57
+ var current_mouse_target = null;
58
+ if( event.toElement ) {
59
+ current_mouse_target = event.toElement;
60
+ } else if( event.relatedTarget ) {
61
+ current_mouse_target = event.relatedTarget;
62
+ }
63
+ if( !is_child_of(element, current_mouse_target) && element != current_mouse_target ) {
64
+
65
+ hide_sociable(id)
66
+ }
67
+ }
68
+
69
+
70
+ window.___gcfg = {
71
+ lang: 'en-US'
72
+ };
73
+
74
+ (function() {
75
+ var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
76
+ po.src = 'https://apis.google.com/js/plusone.js';
77
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
78
+ })();
79
+
80
+
languages/sociable-de_DE.po CHANGED
@@ -1,247 +1,247 @@
1
- # SOME DESCRIPTIVE TITLE.
2
- # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
- # This file is distributed under the same license as the PACKAGE package.
4
- # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
- #
6
- #, fuzzy
7
- msgid ""
8
- msgstr ""
9
- "Project-Id-Version: PACKAGE VERSION\n"
10
- "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2011-10-19 13:51-0500\n"
12
- "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
- "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
- "Language-Team: LANGUAGE <LL@li.org>\n"
15
- "MIME-Version: 1.0\n"
16
- "Content-Type: text/plain; charset=iso-8859-1\n"
17
- "Content-Transfer-Encoding: 8bit\n"
18
-
19
- #: class-sociable_Admin_Options.php:20 class-sociable_Admin_Options.php:338
20
- msgid "Locations"
21
- msgstr "Ubicaciones"
22
-
23
- #: class-sociable_Admin_Options.php:22 class-sociable_Admin_Options.php:447
24
- msgid "General Options"
25
- msgstr "Opciones Generales"
26
-
27
- #: class-sociable_Admin_Options.php:36
28
- msgid "Sociable Options"
29
- msgstr ""
30
-
31
- #: class-sociable_Admin_Options.php:36
32
- msgid "Sociable"
33
- msgstr ""
34
-
35
- #: class-sociable_Admin_Options.php:192
36
- msgid "Sociable 2 Options"
37
- msgstr ""
38
-
39
- #: class-sociable_Admin_Options.php:206
40
- msgid "Live preview of how Sociable will appear on your blog."
41
- msgstr "Asi se vera Sociable en tu blog"
42
-
43
- #: class-sociable_Admin_Options.php:210
44
- msgid "This is your post here..."
45
- msgstr "Esta es una entrada en tu blog"
46
-
47
- #: class-sociable_Admin_Options.php:219
48
- msgid "Tagline"
49
- msgstr "T&itilde;tulo"
50
-
51
- #: class-sociable_Admin_Options.php:225
52
- msgid "Previously we used \"Share and Enjoy\", remember the good old days?"
53
- msgstr ""
54
-
55
- #: class-sociable_Admin_Options.php:233
56
- msgid "Link to Sociable"
57
- msgstr "Link a Sociable"
58
-
59
- #: class-sociable_Admin_Options.php:234
60
- msgid "(Help us grow, please leave the link so others discover Sociable from your blog)"
61
- msgstr "Ayudanos a crecer, deja el link asi otros bloggers descubren Sociable a traves de tu blog"
62
-
63
- #: class-sociable_Admin_Options.php:242
64
- msgid "Icons to Include"
65
- msgstr "Iconos a incluir"
66
-
67
- #: class-sociable_Admin_Options.php:249
68
- msgid "Check the sites you want to appear on your blog."
69
- msgstr "Selecciona los sitios que quieres que aparezcan en su blog"
70
-
71
- #: class-sociable_Admin_Options.php:261
72
- msgid "Icons Size"
73
- msgstr "Tama&ntilde;o de los iconos"
74
-
75
- #: class-sociable_Admin_Options.php:291
76
- msgid "Icons Style"
77
- msgstr "Estilo de los iconos"
78
-
79
- #: class-sociable_Admin_Options.php:344
80
- msgid ""
81
- "Please select the locations that you wish to allow the Sociable plugin to "
82
- "insert itself."
83
- msgstr "Por favor selecciona donde quieres insertar Sociable"
84
-
85
- #: class-sociable_Admin_Options.php:350
86
- msgid "Home page"
87
- msgstr "Pagina Princial (Home)"
88
-
89
- #: class-sociable_Admin_Options.php:353
90
- msgid ""
91
- "The front page of the blog (if set to a static page), or the main blog page "
92
- "(if set to your latest posts)."
93
- msgstr "La pagina principal del blog (si esta como pagina estatica), o la primera pagina del blog (si esta configurado para mostrar los ultimos posts)"
94
-
95
- #: class-sociable_Admin_Options.php:359
96
- msgid "Blog page"
97
- msgstr "Pagina del post (Blog page)"
98
-
99
- #: class-sociable_Admin_Options.php:362
100
- msgid ""
101
- "The home page of the blog if is set to your latest posts, or the posts page "
102
- "if the home page is set to a static page"
103
- msgstr "La pagina principal del blog (si esta configurado para mostrar los ultimos posts), o la primera pagina del blog (si esta como pagina estatica)"
104
-
105
- #: class-sociable_Admin_Options.php:368
106
- msgid "Posts"
107
- msgstr "Entradas (Blog post)"
108
-
109
- #: class-sociable_Admin_Options.php:371
110
- msgid "Single post pages"
111
- msgstr "Pagina de entrada simple"
112
-
113
- #: class-sociable_Admin_Options.php:377
114
- msgid "Pages"
115
- msgstr "Paginas"
116
-
117
- #: class-sociable_Admin_Options.php:380
118
- msgid "Individual Wordpress pages"
119
- msgstr "Paginas de Wordpress individuales"
120
-
121
- #: class-sociable_Admin_Options.php:386
122
- msgid "Category archives"
123
- msgstr "Archivos: Categoria"
124
-
125
- #: class-sociable_Admin_Options.php:389
126
- msgid "Category archive pages"
127
- msgstr "Paginas de Archivos por Categoria"
128
-
129
- #: class-sociable_Admin_Options.php:395
130
- msgid "Date archives"
131
- msgstr "Fecha de Archivos"
132
-
133
- #: class-sociable_Admin_Options.php:398
134
- msgid "Date archive pages"
135
- msgstr "Paginas de fecha de archivos"
136
-
137
- #: class-sociable_Admin_Options.php:404
138
- msgid "Tag archives"
139
- msgstr "Archivos: Tag"
140
-
141
- #: class-sociable_Admin_Options.php:407
142
- msgid "Tag archive pages"
143
- msgstr "Paginas de Archivos de Tags"
144
-
145
- #: class-sociable_Admin_Options.php:413
146
- msgid "Author archives"
147
- msgstr "Archivos: Autor"
148
-
149
- #: class-sociable_Admin_Options.php:416
150
- msgid "Author archive pages"
151
- msgstr "Paginas de Archivos: Autor"
152
-
153
- #: class-sociable_Admin_Options.php:422
154
- msgid "Search results"
155
- msgstr "Resultados de Busqueda"
156
-
157
- #: class-sociable_Admin_Options.php:425
158
- msgid "Search results pages"
159
- msgstr "Paginas de resultados de busqueda"
160
-
161
- #: class-sociable_Admin_Options.php:431 class-sociable_Admin_Options.php:434
162
- msgid "RSS feeds"
163
- msgstr "Entradas de RSS"
164
-
165
- #: class-sociable_Admin_Options.php:458
166
- msgid "Automatic mode"
167
- msgstr "Modo Automatico"
168
-
169
- #: class-sociable_Admin_Options.php:461
170
- msgid "Do you want to automatically use Sociable on the locations specified?"
171
- msgstr "Quieres usar Sociable automaticamente en las ubicaciones especificadas?"
172
-
173
- #: class-sociable_Admin_Options.php:464
174
- msgid ""
175
- "If this is unchecked, you will have to use the shortcode[sociable/] or "
176
- "template"
177
- msgstr "Si esto esta des-chequeado, tendras que usar el shortcode[sociable/] o template"
178
-
179
- #: class-sociable_Admin_Options.php:473
180
- msgid "Use styleSheet"
181
- msgstr "Usar StyleSheet"
182
-
183
- #: class-sociable_Admin_Options.php:476
184
- msgid "Do you want to use the default stylesheet for sociable?"
185
- msgstr "Quieres usar el stylesheet por default para Sociable?"
186
-
187
- #: class-sociable_Admin_Options.php:480
188
- msgid "Use your own icons"
189
- msgstr "Usa tus propios iconos"
190
-
191
- #: class-sociable_Admin_Options.php:483
192
- msgid "Do you want to use your own icons for sociable?"
193
- msgstr ""
194
-
195
- #: class-sociable_Admin_Options.php:487
196
- msgid "Use images"
197
- msgstr "Usar Imagenes"
198
-
199
- #: class-sociable_Admin_Options.php:490
200
- msgid ""
201
- "Do you want to use the Sociable images? If not, the plugin will insert plain "
202
- "text links."
203
- msgstr "Quieres usar imagenes de Sociable? En caso negativo, Sociable insertara links de texto planos"
204
-
205
- #: class-sociable_Admin_Options.php:496
206
- msgid "Use alpha mask"
207
- msgstr "Usar alphamask"
208
-
209
- #: class-sociable_Admin_Options.php:499
210
- msgid ""
211
- "Do you want to use alpha masks on the images (available only on the Original "
212
- "Sociable)?"
213
- msgstr "Quieres usar alphamask en las imagenes (Solo en la version original de Sociable)?"
214
-
215
- #: class-sociable_Admin_Options.php:504
216
- msgid "Open in new window"
217
- msgstr "Abrir en ventana nueva"
218
-
219
- #: class-sociable_Admin_Options.php:507
220
- msgid "do you want to open the links in a new window?"
221
- msgstr "Quieres abrir los links en ventana nueva?"
222
-
223
- #: class-sociable_Admin_Options.php:525
224
- msgid "Save Changes"
225
- msgstr "Guardar cambios"
226
-
227
- #: class-sociable_Admin_Options.php:528
228
- msgid "Reset Sociable"
229
- msgstr "Resetear Sociable"
230
-
231
- #: class-sociable_Admin_Options.php:531
232
- msgid "Completly Uninstall Sociable"
233
- msgstr "Desinstalar Sociable"
234
-
235
- #: class-sociable_Admin_Options.php:564
236
- msgid "Disable sociable"
237
- msgstr ""
238
-
239
- #: class-sociable_Admin_Options.php:575
240
- msgid "Check This To Disable Sociable 2 On This Post Only."
241
- msgstr ""
242
-
243
- #: class-sociable_Admin_Options.php:624
244
- msgid ""
245
- "Please Select The Locations That You Wish To Allow The Sociable 2 Plugin To "
246
- "Insert The Links."
247
- msgstr ""
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
+ # This file is distributed under the same license as the PACKAGE package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ #, fuzzy
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: PACKAGE VERSION\n"
10
+ "Report-Msgid-Bugs-To: \n"
11
+ "POT-Creation-Date: 2011-10-19 13:51-0500\n"
12
+ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
+ "Language-Team: LANGUAGE <LL@li.org>\n"
15
+ "MIME-Version: 1.0\n"
16
+ "Content-Type: text/plain; charset=iso-8859-1\n"
17
+ "Content-Transfer-Encoding: 8bit\n"
18
+
19
+ #: class-sociable_Admin_Options.php:20 class-sociable_Admin_Options.php:338
20
+ msgid "Locations"
21
+ msgstr "Ubicaciones"
22
+
23
+ #: class-sociable_Admin_Options.php:22 class-sociable_Admin_Options.php:447
24
+ msgid "General Options"
25
+ msgstr "Opciones Generales"
26
+
27
+ #: class-sociable_Admin_Options.php:36
28
+ msgid "Sociable Options"
29
+ msgstr ""
30
+
31
+ #: class-sociable_Admin_Options.php:36
32
+ msgid "Sociable"
33
+ msgstr ""
34
+
35
+ #: class-sociable_Admin_Options.php:192
36
+ msgid "Sociable 2 Options"
37
+ msgstr ""
38
+
39
+ #: class-sociable_Admin_Options.php:206
40
+ msgid "Live preview of how Sociable will appear on your blog."
41
+ msgstr "Asi se vera Sociable en tu blog"
42
+
43
+ #: class-sociable_Admin_Options.php:210
44
+ msgid "This is your post here..."
45
+ msgstr "Esta es una entrada en tu blog"
46
+
47
+ #: class-sociable_Admin_Options.php:219
48
+ msgid "Tagline"
49
+ msgstr "T&itilde;tulo"
50
+
51
+ #: class-sociable_Admin_Options.php:225
52
+ msgid "Previously we used \"Share and Enjoy\", remember the good old days?"
53
+ msgstr ""
54
+
55
+ #: class-sociable_Admin_Options.php:233
56
+ msgid "Link to Sociable"
57
+ msgstr "Link a Sociable"
58
+
59
+ #: class-sociable_Admin_Options.php:234
60
+ msgid "(Help us grow, please leave the link so others discover Sociable from your blog)"
61
+ msgstr "Ayudanos a crecer, deja el link asi otros bloggers descubren Sociable a traves de tu blog"
62
+
63
+ #: class-sociable_Admin_Options.php:242
64
+ msgid "Icons to Include"
65
+ msgstr "Iconos a incluir"
66
+
67
+ #: class-sociable_Admin_Options.php:249
68
+ msgid "Check the sites you want to appear on your blog."
69
+ msgstr "Selecciona los sitios que quieres que aparezcan en su blog"
70
+
71
+ #: class-sociable_Admin_Options.php:261
72
+ msgid "Icons Size"
73
+ msgstr "Tama&ntilde;o de los iconos"
74
+
75
+ #: class-sociable_Admin_Options.php:291
76
+ msgid "Icons Style"
77
+ msgstr "Estilo de los iconos"
78
+
79
+ #: class-sociable_Admin_Options.php:344
80
+ msgid ""
81
+ "Please select the locations that you wish to allow the Sociable plugin to "
82
+ "insert itself."
83
+ msgstr "Por favor selecciona donde quieres insertar Sociable"
84
+
85
+ #: class-sociable_Admin_Options.php:350
86
+ msgid "Home page"
87
+ msgstr "Pagina Princial (Home)"
88
+
89
+ #: class-sociable_Admin_Options.php:353
90
+ msgid ""
91
+ "The front page of the blog (if set to a static page), or the main blog page "
92
+ "(if set to your latest posts)."
93
+ msgstr "La pagina principal del blog (si esta como pagina estatica), o la primera pagina del blog (si esta configurado para mostrar los ultimos posts)"
94
+
95
+ #: class-sociable_Admin_Options.php:359
96
+ msgid "Blog page"
97
+ msgstr "Pagina del post (Blog page)"
98
+
99
+ #: class-sociable_Admin_Options.php:362
100
+ msgid ""
101
+ "The home page of the blog if is set to your latest posts, or the posts page "
102
+ "if the home page is set to a static page"
103
+ msgstr "La pagina principal del blog (si esta configurado para mostrar los ultimos posts), o la primera pagina del blog (si esta como pagina estatica)"
104
+
105
+ #: class-sociable_Admin_Options.php:368
106
+ msgid "Posts"
107
+ msgstr "Entradas (Blog post)"
108
+
109
+ #: class-sociable_Admin_Options.php:371
110
+ msgid "Single post pages"
111
+ msgstr "Pagina de entrada simple"
112
+
113
+ #: class-sociable_Admin_Options.php:377
114
+ msgid "Pages"
115
+ msgstr "Paginas"
116
+
117
+ #: class-sociable_Admin_Options.php:380
118
+ msgid "Individual Wordpress pages"
119
+ msgstr "Paginas de Wordpress individuales"
120
+
121
+ #: class-sociable_Admin_Options.php:386
122
+ msgid "Category archives"
123
+ msgstr "Archivos: Categoria"
124
+
125
+ #: class-sociable_Admin_Options.php:389
126
+ msgid "Category archive pages"
127
+ msgstr "Paginas de Archivos por Categoria"
128
+
129
+ #: class-sociable_Admin_Options.php:395
130
+ msgid "Date archives"
131
+ msgstr "Fecha de Archivos"
132
+
133
+ #: class-sociable_Admin_Options.php:398
134
+ msgid "Date archive pages"
135
+ msgstr "Paginas de fecha de archivos"
136
+
137
+ #: class-sociable_Admin_Options.php:404
138
+ msgid "Tag archives"
139
+ msgstr "Archivos: Tag"
140
+
141
+ #: class-sociable_Admin_Options.php:407
142
+ msgid "Tag archive pages"
143
+ msgstr "Paginas de Archivos de Tags"
144
+
145
+ #: class-sociable_Admin_Options.php:413
146
+ msgid "Author archives"
147
+ msgstr "Archivos: Autor"
148
+
149
+ #: class-sociable_Admin_Options.php:416
150
+ msgid "Author archive pages"
151
+ msgstr "Paginas de Archivos: Autor"
152
+
153
+ #: class-sociable_Admin_Options.php:422
154
+ msgid "Search results"
155
+ msgstr "Resultados de Busqueda"
156
+
157
+ #: class-sociable_Admin_Options.php:425
158
+ msgid "Search results pages"
159
+ msgstr "Paginas de resultados de busqueda"
160
+
161
+ #: class-sociable_Admin_Options.php:431 class-sociable_Admin_Options.php:434
162
+ msgid "RSS feeds"
163
+ msgstr "Entradas de RSS"
164
+
165
+ #: class-sociable_Admin_Options.php:458
166
+ msgid "Automatic mode"
167
+ msgstr "Modo Automatico"
168
+
169
+ #: class-sociable_Admin_Options.php:461
170
+ msgid "Do you want to automatically use Sociable on the locations specified?"
171
+ msgstr "Quieres usar Sociable automaticamente en las ubicaciones especificadas?"
172
+
173
+ #: class-sociable_Admin_Options.php:464
174
+ msgid ""
175
+ "If this is unchecked, you will have to use the shortcode[sociable/] or "
176
+ "template"
177
+ msgstr "Si esto esta des-chequeado, tendras que usar el shortcode[sociable/] o template"
178
+
179
+ #: class-sociable_Admin_Options.php:473
180
+ msgid "Use styleSheet"
181
+ msgstr "Usar StyleSheet"
182
+
183
+ #: class-sociable_Admin_Options.php:476
184
+ msgid "Do you want to use the default stylesheet for sociable?"
185
+ msgstr "Quieres usar el stylesheet por default para Sociable?"
186
+
187
+ #: class-sociable_Admin_Options.php:480
188
+ msgid "Use your own icons"
189
+ msgstr "Usa tus propios iconos"
190
+
191
+ #: class-sociable_Admin_Options.php:483
192
+ msgid "Do you want to use your own icons for sociable?"
193
+ msgstr ""
194
+
195
+ #: class-sociable_Admin_Options.php:487
196
+ msgid "Use images"
197
+ msgstr "Usar Imagenes"
198
+
199
+ #: class-sociable_Admin_Options.php:490
200
+ msgid ""
201
+ "Do you want to use the Sociable images? If not, the plugin will insert plain "
202
+ "text links."
203
+ msgstr "Quieres usar imagenes de Sociable? En caso negativo, Sociable insertara links de texto planos"
204
+
205
+ #: class-sociable_Admin_Options.php:496
206
+ msgid "Use alpha mask"
207
+ msgstr "Usar alphamask"
208
+
209
+ #: class-sociable_Admin_Options.php:499
210
+ msgid ""
211
+ "Do you want to use alpha masks on the images (available only on the Original "
212
+ "Sociable)?"
213
+ msgstr "Quieres usar alphamask en las imagenes (Solo en la version original de Sociable)?"
214
+
215
+ #: class-sociable_Admin_Options.php:504
216
+ msgid "Open in new window"
217
+ msgstr "Abrir en ventana nueva"
218
+
219
+ #: class-sociable_Admin_Options.php:507
220
+ msgid "do you want to open the links in a new window?"
221
+ msgstr "Quieres abrir los links en ventana nueva?"
222
+
223
+ #: class-sociable_Admin_Options.php:525
224
+ msgid "Save Changes"
225
+ msgstr "Guardar cambios"
226
+
227
+ #: class-sociable_Admin_Options.php:528
228
+ msgid "Reset Sociable"
229
+ msgstr "Resetear Sociable"
230
+
231
+ #: class-sociable_Admin_Options.php:531
232
+ msgid "Completly Uninstall Sociable"
233
+ msgstr "Desinstalar Sociable"
234
+
235
+ #: class-sociable_Admin_Options.php:564
236
+ msgid "Disable sociable"
237
+ msgstr ""
238
+
239
+ #: class-sociable_Admin_Options.php:575
240
+ msgid "Check This To Disable Sociable 2 On This Post Only."
241
+ msgstr ""
242
+
243
+ #: class-sociable_Admin_Options.php:624
244
+ msgid ""
245
+ "Please Select The Locations That You Wish To Allow The Sociable 2 Plugin To "
246
+ "Insert The Links."
247
+ msgstr ""
languages/sociable-es_ES.po CHANGED
@@ -1,247 +1,247 @@
1
- # SOME DESCRIPTIVE TITLE.
2
- # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
- # This file is distributed under the same license as the PACKAGE package.
4
- # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
- #
6
- #, fuzzy
7
- msgid ""
8
- msgstr ""
9
- "Project-Id-Version: PACKAGE VERSION\n"
10
- "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2011-10-19 13:51-0500\n"
12
- "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
- "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
- "Language-Team: LANGUAGE <LL@li.org>\n"
15
- "MIME-Version: 1.0\n"
16
- "Content-Type: text/plain; charset=iso-8859-1\n"
17
- "Content-Transfer-Encoding: 8bit\n"
18
-
19
- #: class-sociable_Admin_Options.php:20 class-sociable_Admin_Options.php:338
20
- msgid "Locations"
21
- msgstr "Ubicaciones"
22
-
23
- #: class-sociable_Admin_Options.php:22 class-sociable_Admin_Options.php:447
24
- msgid "General Options"
25
- msgstr "Opciones Generales"
26
-
27
- #: class-sociable_Admin_Options.php:36
28
- msgid "Sociable Options"
29
- msgstr ""
30
-
31
- #: class-sociable_Admin_Options.php:36
32
- msgid "Sociable"
33
- msgstr ""
34
-
35
- #: class-sociable_Admin_Options.php:192
36
- msgid "Sociable 2 Options"
37
- msgstr ""
38
-
39
- #: class-sociable_Admin_Options.php:206
40
- msgid "Live preview of how Sociable will appear on your blog."
41
- msgstr "Asi se vera Sociable en tu blog"
42
-
43
- #: class-sociable_Admin_Options.php:210
44
- msgid "This is your post here..."
45
- msgstr "Esta es una entrada en tu blog"
46
-
47
- #: class-sociable_Admin_Options.php:219
48
- msgid "Tagline"
49
- msgstr "T&itilde;tulo"
50
-
51
- #: class-sociable_Admin_Options.php:225
52
- msgid "Previously we used \"Share and Enjoy\", remember the good old days?"
53
- msgstr ""
54
-
55
- #: class-sociable_Admin_Options.php:233
56
- msgid "Link to Sociable"
57
- msgstr "Link a Sociable"
58
-
59
- #: class-sociable_Admin_Options.php:234
60
- msgid "(Help us grow, please leave the link so others discover Sociable from your blog)"
61
- msgstr "Ayudanos a crecer, deja el link asi otros bloggers descubren Sociable a traves de tu blog"
62
-
63
- #: class-sociable_Admin_Options.php:242
64
- msgid "Icons to Include"
65
- msgstr "Iconos a incluir"
66
-
67
- #: class-sociable_Admin_Options.php:249
68
- msgid "Check the sites you want to appear on your blog."
69
- msgstr "Selecciona los sitios que quieres que aparezcan en su blog"
70
-
71
- #: class-sociable_Admin_Options.php:261
72
- msgid "Icons Size"
73
- msgstr "Tama&ntilde;o de los iconos"
74
-
75
- #: class-sociable_Admin_Options.php:291
76
- msgid "Icons Style"
77
- msgstr "Estilo de los iconos"
78
-
79
- #: class-sociable_Admin_Options.php:344
80
- msgid ""
81
- "Please select the locations that you wish to allow the Sociable plugin to "
82
- "insert itself."
83
- msgstr "Por favor selecciona donde quieres insertar Sociable"
84
-
85
- #: class-sociable_Admin_Options.php:350
86
- msgid "Home page"
87
- msgstr "Pagina Princial (Home)"
88
-
89
- #: class-sociable_Admin_Options.php:353
90
- msgid ""
91
- "The front page of the blog (if set to a static page), or the main blog page "
92
- "(if set to your latest posts)."
93
- msgstr "La pagina principal del blog (si esta como pagina estatica), o la primera pagina del blog (si esta configurado para mostrar los ultimos posts)"
94
-
95
- #: class-sociable_Admin_Options.php:359
96
- msgid "Blog page"
97
- msgstr "Pagina del post (Blog page)"
98
-
99
- #: class-sociable_Admin_Options.php:362
100
- msgid ""
101
- "The home page of the blog if is set to your latest posts, or the posts page "
102
- "if the home page is set to a static page"
103
- msgstr "La pagina principal del blog (si esta configurado para mostrar los ultimos posts), o la primera pagina del blog (si esta como pagina estatica)"
104
-
105
- #: class-sociable_Admin_Options.php:368
106
- msgid "Posts"
107
- msgstr "Entradas (Blog post)"
108
-
109
- #: class-sociable_Admin_Options.php:371
110
- msgid "Single post pages"
111
- msgstr "Pagina de entrada simple"
112
-
113
- #: class-sociable_Admin_Options.php:377
114
- msgid "Pages"
115
- msgstr "Paginas"
116
-
117
- #: class-sociable_Admin_Options.php:380
118
- msgid "Individual Wordpress pages"
119
- msgstr "Paginas de Wordpress individuales"
120
-
121
- #: class-sociable_Admin_Options.php:386
122
- msgid "Category archives"
123
- msgstr "Archivos: Categoria"
124
-
125
- #: class-sociable_Admin_Options.php:389
126
- msgid "Category archive pages"
127
- msgstr "Paginas de Archivos por Categoria"
128
-
129
- #: class-sociable_Admin_Options.php:395
130
- msgid "Date archives"
131
- msgstr "Fecha de Archivos"
132
-
133
- #: class-sociable_Admin_Options.php:398
134
- msgid "Date archive pages"
135
- msgstr "Paginas de fecha de archivos"
136
-
137
- #: class-sociable_Admin_Options.php:404
138
- msgid "Tag archives"
139
- msgstr "Archivos: Tag"
140
-
141
- #: class-sociable_Admin_Options.php:407
142
- msgid "Tag archive pages"
143
- msgstr "Paginas de Archivos de Tags"
144
-
145
- #: class-sociable_Admin_Options.php:413
146
- msgid "Author archives"
147
- msgstr "Archivos: Autor"
148
-
149
- #: class-sociable_Admin_Options.php:416
150
- msgid "Author archive pages"
151
- msgstr "Paginas de Archivos: Autor"
152
-
153
- #: class-sociable_Admin_Options.php:422
154
- msgid "Search results"
155
- msgstr "Resultados de Busqueda"
156
-
157
- #: class-sociable_Admin_Options.php:425
158
- msgid "Search results pages"
159
- msgstr "Paginas de resultados de busqueda"
160
-
161
- #: class-sociable_Admin_Options.php:431 class-sociable_Admin_Options.php:434
162
- msgid "RSS feeds"
163
- msgstr "Entradas de RSS"
164
-
165
- #: class-sociable_Admin_Options.php:458
166
- msgid "Automatic mode"
167
- msgstr "Modo Automatico"
168
-
169
- #: class-sociable_Admin_Options.php:461
170
- msgid "Do you want to automatically use Sociable on the locations specified?"
171
- msgstr "Quieres usar Sociable automaticamente en las ubicaciones especificadas?"
172
-
173
- #: class-sociable_Admin_Options.php:464
174
- msgid ""
175
- "If this is unchecked, you will have to use the shortcode[sociable/] or "
176
- "template"
177
- msgstr "Si esto esta des-chequeado, tendras que usar el shortcode[sociable/] o template"
178
-
179
- #: class-sociable_Admin_Options.php:473
180
- msgid "Use styleSheet"
181
- msgstr "Usar StyleSheet"
182
-
183
- #: class-sociable_Admin_Options.php:476
184
- msgid "Do you want to use the default stylesheet for sociable?"
185
- msgstr "Quieres usar el stylesheet por default para Sociable?"
186
-
187
- #: class-sociable_Admin_Options.php:480
188
- msgid "Use your own icons"
189
- msgstr "Usa tus propios iconos"
190
-
191
- #: class-sociable_Admin_Options.php:483
192
- msgid "Do you want to use your own icons for sociable?"
193
- msgstr ""
194
-
195
- #: class-sociable_Admin_Options.php:487
196
- msgid "Use images"
197
- msgstr "Usar Imagenes"
198
-
199
- #: class-sociable_Admin_Options.php:490
200
- msgid ""
201
- "Do you want to use the Sociable images? If not, the plugin will insert plain "
202
- "text links."
203
- msgstr "Quieres usar imagenes de Sociable? En caso negativo, Sociable insertara links de texto planos"
204
-
205
- #: class-sociable_Admin_Options.php:496
206
- msgid "Use alpha mask"
207
- msgstr "Usar alphamask"
208
-
209
- #: class-sociable_Admin_Options.php:499
210
- msgid ""
211
- "Do you want to use alpha masks on the images (available only on the Original "
212
- "Sociable)?"
213
- msgstr "Quieres usar alphamask en las imagenes (Solo en la version original de Sociable)?"
214
-
215
- #: class-sociable_Admin_Options.php:504
216
- msgid "Open in new window"
217
- msgstr "Abrir en ventana nueva"
218
-
219
- #: class-sociable_Admin_Options.php:507
220
- msgid "do you want to open the links in a new window?"
221
- msgstr "Quieres abrir los links en ventana nueva?"
222
-
223
- #: class-sociable_Admin_Options.php:525
224
- msgid "Save Changes"
225
- msgstr "Guardar cambios"
226
-
227
- #: class-sociable_Admin_Options.php:528
228
- msgid "Reset Sociable"
229
- msgstr "Resetear Sociable"
230
-
231
- #: class-sociable_Admin_Options.php:531
232
- msgid "Completly Uninstall Sociable"
233
- msgstr "Desinstalar Sociable"
234
-
235
- #: class-sociable_Admin_Options.php:564
236
- msgid "Disable sociable"
237
- msgstr ""
238
-
239
- #: class-sociable_Admin_Options.php:575
240
- msgid "Check This To Disable Sociable 2 On This Post Only."
241
- msgstr ""
242
-
243
- #: class-sociable_Admin_Options.php:624
244
- msgid ""
245
- "Please Select The Locations That You Wish To Allow The Sociable 2 Plugin To "
246
- "Insert The Links."
247
- msgstr ""
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
+ # This file is distributed under the same license as the PACKAGE package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ #, fuzzy
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: PACKAGE VERSION\n"
10
+ "Report-Msgid-Bugs-To: \n"
11
+ "POT-Creation-Date: 2011-10-19 13:51-0500\n"
12
+ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
+ "Language-Team: LANGUAGE <LL@li.org>\n"
15
+ "MIME-Version: 1.0\n"
16
+ "Content-Type: text/plain; charset=iso-8859-1\n"
17
+ "Content-Transfer-Encoding: 8bit\n"
18
+
19
+ #: class-sociable_Admin_Options.php:20 class-sociable_Admin_Options.php:338
20
+ msgid "Locations"
21
+ msgstr "Ubicaciones"
22
+
23
+ #: class-sociable_Admin_Options.php:22 class-sociable_Admin_Options.php:447
24
+ msgid "General Options"
25
+ msgstr "Opciones Generales"
26
+
27
+ #: class-sociable_Admin_Options.php:36
28
+ msgid "Sociable Options"
29
+ msgstr ""
30
+
31
+ #: class-sociable_Admin_Options.php:36
32
+ msgid "Sociable"
33
+ msgstr ""
34
+
35
+ #: class-sociable_Admin_Options.php:192
36
+ msgid "Sociable 2 Options"
37
+ msgstr ""
38
+
39
+ #: class-sociable_Admin_Options.php:206
40
+ msgid "Live preview of how Sociable will appear on your blog."
41
+ msgstr "Asi se vera Sociable en tu blog"
42
+
43
+ #: class-sociable_Admin_Options.php:210
44
+ msgid "This is your post here..."
45
+ msgstr "Esta es una entrada en tu blog"
46
+
47
+ #: class-sociable_Admin_Options.php:219
48
+ msgid "Tagline"
49
+ msgstr "T&itilde;tulo"
50
+
51
+ #: class-sociable_Admin_Options.php:225
52
+ msgid "Previously we used \"Share and Enjoy\", remember the good old days?"
53
+ msgstr ""
54
+
55
+ #: class-sociable_Admin_Options.php:233
56
+ msgid "Link to Sociable"
57
+ msgstr "Link a Sociable"
58
+
59
+ #: class-sociable_Admin_Options.php:234
60
+ msgid "(Help us grow, please leave the link so others discover Sociable from your blog)"
61
+ msgstr "Ayudanos a crecer, deja el link asi otros bloggers descubren Sociable a traves de tu blog"
62
+
63
+ #: class-sociable_Admin_Options.php:242
64
+ msgid "Icons to Include"
65
+ msgstr "Iconos a incluir"
66
+
67
+ #: class-sociable_Admin_Options.php:249
68
+ msgid "Check the sites you want to appear on your blog."
69
+ msgstr "Selecciona los sitios que quieres que aparezcan en su blog"
70
+
71
+ #: class-sociable_Admin_Options.php:261
72
+ msgid "Icons Size"
73
+ msgstr "Tama&ntilde;o de los iconos"
74
+
75
+ #: class-sociable_Admin_Options.php:291
76
+ msgid "Icons Style"
77
+ msgstr "Estilo de los iconos"
78
+
79
+ #: class-sociable_Admin_Options.php:344
80
+ msgid ""
81
+ "Please select the locations that you wish to allow the Sociable plugin to "
82
+ "insert itself."
83
+ msgstr "Por favor selecciona donde quieres insertar Sociable"
84
+
85
+ #: class-sociable_Admin_Options.php:350
86
+ msgid "Home page"
87
+ msgstr "Pagina Princial (Home)"
88
+
89
+ #: class-sociable_Admin_Options.php:353
90
+ msgid ""
91
+ "The front page of the blog (if set to a static page), or the main blog page "
92
+ "(if set to your latest posts)."
93
+ msgstr "La pagina principal del blog (si esta como pagina estatica), o la primera pagina del blog (si esta configurado para mostrar los ultimos posts)"
94
+
95
+ #: class-sociable_Admin_Options.php:359
96
+ msgid "Blog page"
97
+ msgstr "Pagina del post (Blog page)"
98
+
99
+ #: class-sociable_Admin_Options.php:362
100
+ msgid ""
101
+ "The home page of the blog if is set to your latest posts, or the posts page "
102
+ "if the home page is set to a static page"
103
+ msgstr "La pagina principal del blog (si esta configurado para mostrar los ultimos posts), o la primera pagina del blog (si esta como pagina estatica)"
104
+
105
+ #: class-sociable_Admin_Options.php:368
106
+ msgid "Posts"
107
+ msgstr "Entradas (Blog post)"
108
+
109
+ #: class-sociable_Admin_Options.php:371
110
+ msgid "Single post pages"
111
+ msgstr "Pagina de entrada simple"
112
+
113
+ #: class-sociable_Admin_Options.php:377
114
+ msgid "Pages"
115
+ msgstr "Paginas"
116
+
117
+ #: class-sociable_Admin_Options.php:380
118
+ msgid "Individual Wordpress pages"
119
+ msgstr "Paginas de Wordpress individuales"
120
+
121
+ #: class-sociable_Admin_Options.php:386
122
+ msgid "Category archives"
123
+ msgstr "Archivos: Categoria"
124
+
125
+ #: class-sociable_Admin_Options.php:389
126
+ msgid "Category archive pages"
127
+ msgstr "Paginas de Archivos por Categoria"
128
+
129
+ #: class-sociable_Admin_Options.php:395
130
+ msgid "Date archives"
131
+ msgstr "Fecha de Archivos"
132
+
133
+ #: class-sociable_Admin_Options.php:398
134
+ msgid "Date archive pages"
135
+ msgstr "Paginas de fecha de archivos"
136
+
137
+ #: class-sociable_Admin_Options.php:404
138
+ msgid "Tag archives"
139
+ msgstr "Archivos: Tag"
140
+
141
+ #: class-sociable_Admin_Options.php:407
142
+ msgid "Tag archive pages"
143
+ msgstr "Paginas de Archivos de Tags"
144
+
145
+ #: class-sociable_Admin_Options.php:413
146
+ msgid "Author archives"
147
+ msgstr "Archivos: Autor"
148
+
149
+ #: class-sociable_Admin_Options.php:416
150
+ msgid "Author archive pages"
151
+ msgstr "Paginas de Archivos: Autor"
152
+
153
+ #: class-sociable_Admin_Options.php:422
154
+ msgid "Search results"
155
+ msgstr "Resultados de Busqueda"
156
+
157
+ #: class-sociable_Admin_Options.php:425
158
+ msgid "Search results pages"
159
+ msgstr "Paginas de resultados de busqueda"
160
+
161
+ #: class-sociable_Admin_Options.php:431 class-sociable_Admin_Options.php:434
162
+ msgid "RSS feeds"
163
+ msgstr "Entradas de RSS"
164
+
165
+ #: class-sociable_Admin_Options.php:458
166
+ msgid "Automatic mode"
167
+ msgstr "Modo Automatico"
168
+
169
+ #: class-sociable_Admin_Options.php:461
170
+ msgid "Do you want to automatically use Sociable on the locations specified?"
171
+ msgstr "Quieres usar Sociable automaticamente en las ubicaciones especificadas?"
172
+
173
+ #: class-sociable_Admin_Options.php:464
174
+ msgid ""
175
+ "If this is unchecked, you will have to use the shortcode[sociable/] or "
176
+ "template"
177
+ msgstr "Si esto esta des-chequeado, tendras que usar el shortcode[sociable/] o template"
178
+
179
+ #: class-sociable_Admin_Options.php:473
180
+ msgid "Use styleSheet"
181
+ msgstr "Usar StyleSheet"
182
+
183
+ #: class-sociable_Admin_Options.php:476
184
+ msgid "Do you want to use the default stylesheet for sociable?"
185
+ msgstr "Quieres usar el stylesheet por default para Sociable?"
186
+
187
+ #: class-sociable_Admin_Options.php:480
188
+ msgid "Use your own icons"
189
+ msgstr "Usa tus propios iconos"
190
+
191
+ #: class-sociable_Admin_Options.php:483
192
+ msgid "Do you want to use your own icons for sociable?"
193
+ msgstr ""
194
+
195
+ #: class-sociable_Admin_Options.php:487
196
+ msgid "Use images"
197
+ msgstr "Usar Imagenes"
198
+
199
+ #: class-sociable_Admin_Options.php:490
200
+ msgid ""
201
+ "Do you want to use the Sociable images? If not, the plugin will insert plain "
202
+ "text links."
203
+ msgstr "Quieres usar imagenes de Sociable? En caso negativo, Sociable insertara links de texto planos"
204
+
205
+ #: class-sociable_Admin_Options.php:496
206
+ msgid "Use alpha mask"
207
+ msgstr "Usar alphamask"
208
+
209
+ #: class-sociable_Admin_Options.php:499
210
+ msgid ""
211
+ "Do you want to use alpha masks on the images (available only on the Original "
212
+ "Sociable)?"
213
+ msgstr "Quieres usar alphamask en las imagenes (Solo en la version original de Sociable)?"
214
+
215
+ #: class-sociable_Admin_Options.php:504
216
+ msgid "Open in new window"
217
+ msgstr "Abrir en ventana nueva"
218
+
219
+ #: class-sociable_Admin_Options.php:507
220
+ msgid "do you want to open the links in a new window?"
221
+ msgstr "Quieres abrir los links en ventana nueva?"
222
+
223
+ #: class-sociable_Admin_Options.php:525
224
+ msgid "Save Changes"
225
+ msgstr "Guardar cambios"
226
+
227
+ #: class-sociable_Admin_Options.php:528
228
+ msgid "Reset Sociable"
229
+ msgstr "Resetear Sociable"
230
+
231
+ #: class-sociable_Admin_Options.php:531
232
+ msgid "Completly Uninstall Sociable"
233
+ msgstr "Desinstalar Sociable"
234
+
235
+ #: class-sociable_Admin_Options.php:564
236
+ msgid "Disable sociable"
237
+ msgstr ""
238
+
239
+ #: class-sociable_Admin_Options.php:575
240
+ msgid "Check This To Disable Sociable 2 On This Post Only."
241
+ msgstr ""
242
+
243
+ #: class-sociable_Admin_Options.php:624
244
+ msgid ""
245
+ "Please Select The Locations That You Wish To Allow The Sociable 2 Plugin To "
246
+ "Insert The Links."
247
+ msgstr ""
languages/sociable-pt.po CHANGED
@@ -1,249 +1,249 @@
1
- # SOME DESCRIPTIVE TITLE.
2
- # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
- # This file is distributed under the same license as the PACKAGE package.
4
- # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
- #
6
- #, fuzzy
7
- msgid ""
8
- msgstr ""
9
- "Project-Id-Version: PACKAGE VERSION\n"
10
- "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2011-10-19 13:51-0500\n"
12
- "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
- "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
- "Language-Team: LANGUAGE <LL@li.org>\n"
15
- "MIME-Version: 1.0\n"
16
- "Content-Type: text/plain; charset=iso-8859-1\n"
17
- "Content-Transfer-Encoding: 8bit\n"
18
-
19
- #: class-sociable_Admin_Options.php:20 class-sociable_Admin_Options.php:338
20
- msgid "Locations"
21
- msgstr "Posi��es "
22
-
23
- #: class-sociable_Admin_Options.php:22 class-sociable_Admin_Options.php:447
24
- msgid "General Options"
25
- msgstr "Op��es Gerais"
26
-
27
- #: class-sociable_Admin_Options.php:36
28
- msgid "Sociable Options"
29
- msgstr ""
30
-
31
- #: class-sociable_Admin_Options.php:36
32
- msgid "Sociable"
33
- msgstr ""
34
-
35
- #: class-sociable_Admin_Options.php:192
36
- msgid "Sociable 2 Options"
37
- msgstr ""
38
-
39
- #: class-sociable_Admin_Options.php:206
40
- msgid "Live preview of how Sociable will appear on your blog."
41
- msgstr "Visualiza��o em tempo real de como a Sociable aparecer� em seu blog"
42
-
43
- #: class-sociable_Admin_Options.php:210
44
- msgid "This is your post here..."
45
- msgstr "Sua postagem aparece aqui..."
46
-
47
- #: class-sociable_Admin_Options.php:219
48
- msgid "Tagline"
49
- msgstr "Titulo "
50
-
51
- #: class-sociable_Admin_Options.php:225
52
- msgid "Previously we used \"Share and Enjoy\", remember the good old days?"
53
- msgstr ""
54
-
55
- #: class-sociable_Admin_Options.php:233
56
- msgid "Link to Sociable"
57
- msgstr "Link para a Sociable"
58
-
59
- #: class-sociable_Admin_Options.php:234
60
- msgid ""
61
- "(Help us grow, please leave the link so others discover Sociable from your "
62
- "blog)"
63
- msgstr "(Ajude-nos a crescer, deixe o link para que outros possam descobrir a Sociable a partir de seu blog)"
64
-
65
- #: class-sociable_Admin_Options.php:242
66
- msgid "Icons to Include"
67
- msgstr "�cones a incluir "
68
-
69
- #: class-sociable_Admin_Options.php:249
70
- msgid "Check the sites you want to appear on your blog."
71
- msgstr "Confira os sites que voc� deseja que apare�am em seu blog "
72
-
73
- #: class-sociable_Admin_Options.php:261
74
- msgid "Icons Size"
75
- msgstr "Tamanho dos �cones "
76
-
77
- #: class-sociable_Admin_Options.php:291
78
- msgid "Icons Style"
79
- msgstr "Estilo dos �cones"
80
-
81
- #: class-sociable_Admin_Options.php:344
82
- msgid ""
83
- "Please select the locations that you wish to allow the Sociable plugin to "
84
- "insert itself."
85
- msgstr "Selecione as posi��es onde voc� deseja permitir a inser��o do plugin da Sociable. "
86
-
87
- #: class-sociable_Admin_Options.php:350
88
- msgid "Home page"
89
- msgstr "P�gina Inicial"
90
-
91
- #: class-sociable_Admin_Options.php:353
92
- msgid ""
93
- "The front page of the blog (if set to a static page), or the main blog page "
94
- "(if set to your latest posts)."
95
- msgstr "A primeira p�gina do blog (se configurada como uma p�gina est�tica), ou a p�gina principal do blog (se configurada como sua postagem mais recente). "
96
-
97
- #: class-sociable_Admin_Options.php:359
98
- msgid "Blog page"
99
- msgstr "P�gina do blog"
100
-
101
- #: class-sociable_Admin_Options.php:362
102
- msgid ""
103
- "The home page of the blog if is set to your latest posts, or the posts page "
104
- "if the home page is set to a static page"
105
- msgstr "A p�gina inicial do blog, se for configurada para sua postagem mais recente, ou a p�gina de postagem, se a p�gina inicial estiver configurada como uma p�gina est�tica "
106
-
107
- #: class-sociable_Admin_Options.php:368
108
- msgid "Posts"
109
- msgstr "Postagem"
110
-
111
- #: class-sociable_Admin_Options.php:371
112
- msgid "Single post pages"
113
- msgstr "P�ginas de postagens individuais"
114
-
115
- #: class-sociable_Admin_Options.php:377
116
- msgid "Pages"
117
- msgstr "P�ginas "
118
-
119
- #: class-sociable_Admin_Options.php:380
120
- msgid "Individual Wordpress pages"
121
- msgstr "P�ginas individuais Wordpress"
122
-
123
- #: class-sociable_Admin_Options.php:386
124
- msgid "Category archives"
125
- msgstr "Categoria de arquivos "
126
-
127
- #: class-sociable_Admin_Options.php:389
128
- msgid "Category archive pages"
129
- msgstr "P�ginas de categoria de arquivo"
130
-
131
- #: class-sociable_Admin_Options.php:395
132
- msgid "Date archives"
133
- msgstr "Arquivos de data"
134
-
135
- #: class-sociable_Admin_Options.php:398
136
- msgid "Date archive pages"
137
- msgstr "P�ginas de arquivos de data"
138
-
139
- #: class-sociable_Admin_Options.php:404
140
- msgid "Tag archives"
141
- msgstr "Arquivos de Tags"
142
-
143
- #: class-sociable_Admin_Options.php:407
144
- msgid "Tag archive pages"
145
- msgstr "P�ginas de Arquivos de Tags"
146
-
147
- #: class-sociable_Admin_Options.php:413
148
- msgid "Author archives"
149
- msgstr "Arquivos do autor"
150
-
151
- #: class-sociable_Admin_Options.php:416
152
- msgid "Author archive pages"
153
- msgstr "P�ginas de Arquivos do autor"
154
-
155
- #: class-sociable_Admin_Options.php:422
156
- msgid "Search results"
157
- msgstr "Resultados da busca"
158
-
159
- #: class-sociable_Admin_Options.php:425
160
- msgid "Search results pages"
161
- msgstr "P�ginas de resultados da busca"
162
-
163
- #: class-sociable_Admin_Options.php:431 class-sociable_Admin_Options.php:434
164
- msgid "RSS feeds"
165
- msgstr "Feeds RSS"
166
-
167
- #: class-sociable_Admin_Options.php:458
168
- msgid "Automatic mode"
169
- msgstr "Modo autom�tico"
170
-
171
- #: class-sociable_Admin_Options.php:461
172
- msgid "Do you want to automatically use Sociable on the locations specified?"
173
- msgstr "Voc� quer usar automaticamente o Sociable nas posi��es especificadas?"
174
-
175
- #: class-sociable_Admin_Options.php:464
176
- msgid ""
177
- "If this is unchecked, you will have to use the shortcode[sociable/] or "
178
- "template"
179
- msgstr "Se este for desmarcado, voc� ter� que usar o c�digo abreviado [sociable/] ou modelo (template)"
180
-
181
- #: class-sociable_Admin_Options.php:473
182
- msgid "Use styleSheet"
183
- msgstr "Usar a Folha de estilo (stylesheet)"
184
-
185
- #: class-sociable_Admin_Options.php:476
186
- msgid "Do you want to use the default stylesheet for sociable?"
187
- msgstr "Voc� quer usar a folha de estilo padr�o para a Sociable?"
188
-
189
- #: class-sociable_Admin_Options.php:480
190
- msgid "Use your own icons"
191
- msgstr "Usuar seus pr�prios �cones"
192
-
193
- #: class-sociable_Admin_Options.php:483
194
- msgid "Do you want to use your own icons for sociable?"
195
- msgstr ""
196
-
197
- #: class-sociable_Admin_Options.php:487
198
- msgid "Use images"
199
- msgstr "Usar imagens"
200
-
201
- #: class-sociable_Admin_Options.php:490
202
- msgid ""
203
- "Do you want to use the Sociable images? If not, the plugin will insert plain "
204
- "text links."
205
- msgstr "Voc� quer usar as imagens da Sociable? Se n�o, o plugin ir� inserir links de texto simples. "
206
-
207
- #: class-sociable_Admin_Options.php:496
208
- msgid "Use alpha mask"
209
- msgstr "Usar alphamask"
210
-
211
- #: class-sociable_Admin_Options.php:499
212
- msgid ""
213
- "Do you want to use alpha masks on the images (available only on the Original "
214
- "Sociable)?"
215
- msgstr "Voc� quer usar alpamask nas imagens (dispon�vel somente no Sociable Original)?"
216
-
217
- #: class-sociable_Admin_Options.php:504
218
- msgid "Open in new window"
219
- msgstr "Abrir em uma nova janela"
220
-
221
- #: class-sociable_Admin_Options.php:507
222
- msgid "do you want to open the links in a new window?"
223
- msgstr "Voc� quer abrir os links em uma nova janela?"
224
-
225
- #: class-sociable_Admin_Options.php:525
226
- msgid "Save Changes"
227
- msgstr "Salvar Altera��es"
228
-
229
- #: class-sociable_Admin_Options.php:528
230
- msgid "Reset Sociable"
231
- msgstr "Reset a Sociable"
232
-
233
- #: class-sociable_Admin_Options.php:531
234
- msgid "Completly Uninstall Sociable"
235
- msgstr "Desinstalar totalmente a Sociable"
236
-
237
- #: class-sociable_Admin_Options.php:564
238
- msgid "Disable sociable"
239
- msgstr ""
240
-
241
- #: class-sociable_Admin_Options.php:575
242
- msgid "Check This To Disable Sociable 2 On This Post Only."
243
- msgstr ""
244
-
245
- #: class-sociable_Admin_Options.php:624
246
- msgid ""
247
- "Please Select The Locations That You Wish To Allow The Sociable 2 Plugin To "
248
- "Insert The Links."
249
- msgstr ""
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
+ # This file is distributed under the same license as the PACKAGE package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ #, fuzzy
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: PACKAGE VERSION\n"
10
+ "Report-Msgid-Bugs-To: \n"
11
+ "POT-Creation-Date: 2011-10-19 13:51-0500\n"
12
+ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
+ "Language-Team: LANGUAGE <LL@li.org>\n"
15
+ "MIME-Version: 1.0\n"
16
+ "Content-Type: text/plain; charset=iso-8859-1\n"
17
+ "Content-Transfer-Encoding: 8bit\n"
18
+
19
+ #: class-sociable_Admin_Options.php:20 class-sociable_Admin_Options.php:338
20
+ msgid "Locations"
21
+ msgstr "Posi��es "
22
+
23
+ #: class-sociable_Admin_Options.php:22 class-sociable_Admin_Options.php:447
24
+ msgid "General Options"
25
+ msgstr "Op��es Gerais"
26
+
27
+ #: class-sociable_Admin_Options.php:36
28
+ msgid "Sociable Options"
29
+ msgstr ""
30
+
31
+ #: class-sociable_Admin_Options.php:36
32
+ msgid "Sociable"
33
+ msgstr ""
34
+
35
+ #: class-sociable_Admin_Options.php:192
36
+ msgid "Sociable 2 Options"
37
+ msgstr ""
38
+
39
+ #: class-sociable_Admin_Options.php:206
40
+ msgid "Live preview of how Sociable will appear on your blog."
41
+ msgstr "Visualiza��o em tempo real de como a Sociable aparecer� em seu blog"
42
+
43
+ #: class-sociable_Admin_Options.php:210
44
+ msgid "This is your post here..."
45
+ msgstr "Sua postagem aparece aqui..."
46
+
47
+ #: class-sociable_Admin_Options.php:219
48
+ msgid "Tagline"
49
+ msgstr "Titulo "
50
+
51
+ #: class-sociable_Admin_Options.php:225
52
+ msgid "Previously we used \"Share and Enjoy\", remember the good old days?"
53
+ msgstr ""
54
+
55
+ #: class-sociable_Admin_Options.php:233
56
+ msgid "Link to Sociable"
57
+ msgstr "Link para a Sociable"
58
+
59
+ #: class-sociable_Admin_Options.php:234
60
+ msgid ""
61
+ "(Help us grow, please leave the link so others discover Sociable from your "
62
+ "blog)"
63
+ msgstr "(Ajude-nos a crescer, deixe o link para que outros possam descobrir a Sociable a partir de seu blog)"
64
+
65
+ #: class-sociable_Admin_Options.php:242
66
+ msgid "Icons to Include"
67
+ msgstr "�cones a incluir "
68
+
69
+ #: class-sociable_Admin_Options.php:249
70
+ msgid "Check the sites you want to appear on your blog."
71
+ msgstr "Confira os sites que voc� deseja que apare�am em seu blog "
72
+
73
+ #: class-sociable_Admin_Options.php:261
74
+ msgid "Icons Size"
75
+ msgstr "Tamanho dos �cones "
76
+
77
+ #: class-sociable_Admin_Options.php:291
78
+ msgid "Icons Style"
79
+ msgstr "Estilo dos �cones"
80
+
81
+ #: class-sociable_Admin_Options.php:344
82
+ msgid ""
83
+ "Please select the locations that you wish to allow the Sociable plugin to "
84
+ "insert itself."
85
+ msgstr "Selecione as posi��es onde voc� deseja permitir a inser��o do plugin da Sociable. "
86
+
87
+ #: class-sociable_Admin_Options.php:350
88
+ msgid "Home page"
89
+ msgstr "P�gina Inicial"
90
+
91
+ #: class-sociable_Admin_Options.php:353
92
+ msgid ""
93
+ "The front page of the blog (if set to a static page), or the main blog page "
94
+ "(if set to your latest posts)."
95
+ msgstr "A primeira p�gina do blog (se configurada como uma p�gina est�tica), ou a p�gina principal do blog (se configurada como sua postagem mais recente). "
96
+
97
+ #: class-sociable_Admin_Options.php:359
98
+ msgid "Blog page"
99
+ msgstr "P�gina do blog"
100
+
101
+ #: class-sociable_Admin_Options.php:362
102
+ msgid ""
103
+ "The home page of the blog if is set to your latest posts, or the posts page "
104
+ "if the home page is set to a static page"
105
+ msgstr "A p�gina inicial do blog, se for configurada para sua postagem mais recente, ou a p�gina de postagem, se a p�gina inicial estiver configurada como uma p�gina est�tica "
106
+
107
+ #: class-sociable_Admin_Options.php:368
108
+ msgid "Posts"
109
+ msgstr "Postagem"
110
+
111
+ #: class-sociable_Admin_Options.php:371
112
+ msgid "Single post pages"
113
+ msgstr "P�ginas de postagens individuais"
114
+
115
+ #: class-sociable_Admin_Options.php:377
116
+ msgid "Pages"
117
+ msgstr "P�ginas "
118
+
119
+ #: class-sociable_Admin_Options.php:380
120
+ msgid "Individual Wordpress pages"
121
+ msgstr "P�ginas individuais Wordpress"
122
+
123
+ #: class-sociable_Admin_Options.php:386
124
+ msgid "Category archives"
125
+ msgstr "Categoria de arquivos "
126
+
127
+ #: class-sociable_Admin_Options.php:389
128
+ msgid "Category archive pages"
129
+ msgstr "P�ginas de categoria de arquivo"
130
+
131
+ #: class-sociable_Admin_Options.php:395
132
+ msgid "Date archives"
133
+ msgstr "Arquivos de data"
134
+
135
+ #: class-sociable_Admin_Options.php:398
136
+ msgid "Date archive pages"
137
+ msgstr "P�ginas de arquivos de data"
138
+
139
+ #: class-sociable_Admin_Options.php:404
140
+ msgid "Tag archives"
141
+ msgstr "Arquivos de Tags"
142
+
143
+ #: class-sociable_Admin_Options.php:407
144
+ msgid "Tag archive pages"
145
+ msgstr "P�ginas de Arquivos de Tags"
146
+
147
+ #: class-sociable_Admin_Options.php:413
148
+ msgid "Author archives"
149
+ msgstr "Arquivos do autor"
150
+
151
+ #: class-sociable_Admin_Options.php:416
152
+ msgid "Author archive pages"
153
+ msgstr "P�ginas de Arquivos do autor"
154
+
155
+ #: class-sociable_Admin_Options.php:422
156
+ msgid "Search results"
157
+ msgstr "Resultados da busca"
158
+
159
+ #: class-sociable_Admin_Options.php:425
160
+ msgid "Search results pages"
161
+ msgstr "P�ginas de resultados da busca"
162
+
163
+ #: class-sociable_Admin_Options.php:431 class-sociable_Admin_Options.php:434
164
+ msgid "RSS feeds"
165
+ msgstr "Feeds RSS"
166
+
167
+ #: class-sociable_Admin_Options.php:458
168
+ msgid "Automatic mode"
169
+ msgstr "Modo autom�tico"
170
+
171
+ #: class-sociable_Admin_Options.php:461
172
+ msgid "Do you want to automatically use Sociable on the locations specified?"
173
+ msgstr "Voc� quer usar automaticamente o Sociable nas posi��es especificadas?"
174
+
175
+ #: class-sociable_Admin_Options.php:464
176
+ msgid ""
177
+ "If this is unchecked, you will have to use the shortcode[sociable/] or "
178
+ "template"
179
+ msgstr "Se este for desmarcado, voc� ter� que usar o c�digo abreviado [sociable/] ou modelo (template)"
180
+
181
+ #: class-sociable_Admin_Options.php:473
182
+ msgid "Use styleSheet"
183
+ msgstr "Usar a Folha de estilo (stylesheet)"
184
+
185
+ #: class-sociable_Admin_Options.php:476
186
+ msgid "Do you want to use the default stylesheet for sociable?"
187
+ msgstr "Voc� quer usar a folha de estilo padr�o para a Sociable?"
188
+
189
+ #: class-sociable_Admin_Options.php:480
190
+ msgid "Use your own icons"
191
+ msgstr "Usuar seus pr�prios �cones"
192
+
193
+ #: class-sociable_Admin_Options.php:483
194
+ msgid "Do you want to use your own icons for sociable?"
195
+ msgstr ""
196
+
197
+ #: class-sociable_Admin_Options.php:487
198
+ msgid "Use images"
199
+ msgstr "Usar imagens"
200
+
201
+ #: class-sociable_Admin_Options.php:490
202
+ msgid ""
203
+ "Do you want to use the Sociable images? If not, the plugin will insert plain "
204
+ "text links."
205
+ msgstr "Voc� quer usar as imagens da Sociable? Se n�o, o plugin ir� inserir links de texto simples. "
206
+
207
+ #: class-sociable_Admin_Options.php:496
208
+ msgid "Use alpha mask"
209
+ msgstr "Usar alphamask"
210
+
211
+ #: class-sociable_Admin_Options.php:499
212
+ msgid ""
213
+ "Do you want to use alpha masks on the images (available only on the Original "
214
+ "Sociable)?"
215
+ msgstr "Voc� quer usar alpamask nas imagens (dispon�vel somente no Sociable Original)?"
216
+
217
+ #: class-sociable_Admin_Options.php:504
218
+ msgid "Open in new window"
219
+ msgstr "Abrir em uma nova janela"
220
+
221
+ #: class-sociable_Admin_Options.php:507
222
+ msgid "do you want to open the links in a new window?"
223
+ msgstr "Voc� quer abrir os links em uma nova janela?"
224
+
225
+ #: class-sociable_Admin_Options.php:525
226
+ msgid "Save Changes"
227
+ msgstr "Salvar Altera��es"
228
+
229
+ #: class-sociable_Admin_Options.php:528
230
+ msgid "Reset Sociable"
231
+ msgstr "Reset a Sociable"
232
+
233
+ #: class-sociable_Admin_Options.php:531
234
+ msgid "Completly Uninstall Sociable"
235
+ msgstr "Desinstalar totalmente a Sociable"
236
+
237
+ #: class-sociable_Admin_Options.php:564
238
+ msgid "Disable sociable"
239
+ msgstr ""
240
+
241
+ #: class-sociable_Admin_Options.php:575
242
+ msgid "Check This To Disable Sociable 2 On This Post Only."
243
+ msgstr ""
244
+
245
+ #: class-sociable_Admin_Options.php:624
246
+ msgid ""
247
+ "Please Select The Locations That You Wish To Allow The Sociable 2 Plugin To "
248
+ "Insert The Links."
249
+ msgstr ""
readme.txt CHANGED
@@ -1,403 +1,816 @@
1
- === Sociable ===
 
2
  Author: sociable
 
3
  Tags: sociable, social bookmarking, social bookmarks, social icons, bookmarking, share, sharing, be sociable share, share and enjoy, digg, delicious, twitter, facebook, blinklist, stumbleupon, gmail, posterous, tumblr
 
4
  Requires Wordpress at least version: 2.6
 
5
  Tested up to version: 3.2.1
 
6
  Requires at least: 2.6
7
-
 
8
  Tested up to: 3.2.1
9
- Stable tag: 4.1.5
 
 
10
  == Description ==
11
- Sociable continues being the leader in the sharing space of WordPress plugins. Started more than 2 years ago, and with over 1,2mm downloads now, here comes the version 4.1, with everything you expect to get, and then some.
 
 
 
 
 
 
 
12
 
13
- As you can see, we've improved our visual interface, the default icons are now much more appealing, and a touch bit larger (you do want your readers to share your posts, don't you? :)
 
 
 
14
 
15
  [vimeo http://vimeo.com/31023294]
16
 
17
 
18
- [vimeo http://vimeo.com/31023684]
19
 
20
 
 
 
 
21
  Have technical support issues? Please leave them in the forum: http://wordpress.org/tags/sociable?forum_id=10
 
22
  Also use the forum for ideas, feedback, suggestions. We'll try to check the forum every day.
23
 
 
 
24
  What happened to the old icons? You can still use them in the new version, but they're not the default style anymore.
25
 
 
 
26
  Sociable finds its home outside of the WordPress environment on Blogplay.com-
27
 
28
- *** Sociable 4.1.5 ***
 
 
 
 
 
29
 
30
  = Recent Updates =
31
- * Changed the old motto "share and enjoy" for "Be Sociable, Share" much more attractive. Of cours you can customize it to whatever you want.
 
 
32
  * Complete re-write to increase efficiency and speed of the plugin
33
 
 
 
 
34
  = Recently Added Sites =
 
35
  * Posterous
 
36
  * Sphinn
 
37
  * Tumblr
38
 
 
 
 
 
 
39
  = Recently Deleted Sites =
 
40
  * Mixx.com, recently acquired, doesn't support share functions anymore
 
41
  * Netvibes stopped sharing
 
42
  * Slashdot: New bookmark creation is no longer supported
 
43
  * And we deleted a bunch of others that were really not used that much
44
 
 
 
45
  = Special Thanks =
 
46
  Sociable plugin wouldn't be what it is today if it weren't for these people that helped us along the way:
 
47
  * Thanks to [WPzoom](http://http://www.wpzoom.com/wpzoom/500-free-icons-wpzoom-social-networking-icon-set/) for letting us to use their awesome icons
 
48
  * Also special thanks to [Webtreats etc](http://http://webtreats.mysitemyway.com/) for allowing us to use their great icons
49
 
 
 
50
  == Screenshots ==
 
51
  1. The Sociable backend, easily select sites and drag & drop to change the order of appearance.
 
52
  2. Sociable with its new default styling.
 
53
  3. Pick the style you want
 
54
  4. Or you can pick your own style
55
 
 
 
 
56
  == Installation ==
 
57
  1. Upload the extracted archive to `wp-content/plugins/`
 
58
  2. Activate the plugin through the 'Plugins' menu
 
59
  3. Open the plugin settings page Settings -> Sociable
 
60
  4. Adjust settings to your liking
 
61
  4. Enjoy!
62
 
63
 
64
 
65
 
66
 
 
 
 
 
 
 
67
  == Frequently Asked Questions ==
 
68
  = What happened to the old icons? =
 
69
  You can still use them. It's just they're not the default anymore.
70
 
 
 
71
  = I want to reach you, but not for a technical question =
 
72
  Please send us an email to sociableblogplay [ at ] gmail.com
73
 
 
 
74
  == Changelog ==
75
 
 
 
 
 
 
 
76
  = 4.1.5 =
 
77
  * FIXED: Some Fixes
78
 
 
 
79
  = 4.1.4 =
 
80
  * FIXED: Some Fixes
81
 
 
 
82
  = 4.1.3 =
 
83
  * FIXED: Some Fixes
84
 
 
 
85
  = 4.1.2 =
 
86
  * FIXED: Google plus problem
87
 
 
 
88
  = 4.1.1 =
 
89
  * ADDED: Facebook Like Counter, Twitter Counter, Google Plus Counter, Linkedin Counter,StumbleUpon Counter and Digg Counter
 
90
  * ADDED: Add Sociable at Top and Bottom of the post
91
 
 
 
92
  = 4.0.6 =
 
93
  * FIXED: Allow Sub Directory Blogs (http://domain.com/blog)
94
 
 
 
95
  = 4.0.5 =
 
96
  * FIXED: Other Upgrade issues
97
 
 
 
98
  = 4.0.4 =
 
99
  * FIXED: Upgrade issues
100
 
101
 
 
 
 
102
  = 4.0.3 =
 
103
  * Fix IIS 6.0 and PHP 5.3.x
104
 
 
 
105
  = 4.0.1 =
 
106
  * Changed the old motto "share and enjoy" for "Be Sociable, Share" much more attractive. Of cours you can customize it to whatever you want.
 
107
  * Complete re-write to increase efficiency and speed of the plugin
 
108
  * Updated it for up to Wordpress version 3.2.1
109
 
 
 
110
  = 3.5.2 =
111
- * Added new services MOB, 豆瓣, 豆瓣九点, QQ书签, LaTafanera, SheToldMe, viadeo FR, Diggita, Design Float
 
 
112
  * Removed ID properties from sociable anchor tags (share links)
 
113
  * FIXED: Having a custom image directory now disables sprite usage, and the icons of services are displayed on sociable configuration page.
114
 
 
 
115
  = 3.5.1 =
 
116
  * Fixed the xhtml validation issues
 
117
  * 'target=blank' (open link in new window) issue solved
 
118
  * Sprites can now be disabled, allowing for custom icons
 
119
  * Sprites have been disabled for RSS
 
120
  * You can now deactivate the blogplay widget from your wordpress dashboard
121
 
 
 
122
  = 3.5.0 =
 
123
  * The icons now load in a CSS Sprites, allowing for faster download times.
 
124
  * These services have been discontinued: BlogMeme FR, BlogMeme SP, co.mments, DesignFloat.com, PPNow.net, Symbaloo.com.
 
125
  * You can now add links to your browser favorites.
 
126
  * iFrames added for services that support them.
 
127
  * You can know unselect the transparency effect on the sociable icons.
128
 
 
 
129
  = 3.4.4 =
 
130
  * Another fix for the sociableoff dilemma's, no backwards compatibility unfortunately, so disable sociable again on pages where you want to disable it.
131
 
 
 
132
  = 3.4.3 =
 
133
  * Fixed the bug mentioned [here](http://wordpress.org/support/topic/288487) and [here](http://wordpress.org/support/topic/290753) that made it impossible to disable Sociable on a per post/page basis (for real, now).
134
 
 
 
135
  = 3.4.2 =
 
136
  * Added a site specific id to each links anchor tag.
 
137
  * Fixed the bug mentioned [here](http://wordpress.org/support/topic/288487) and [here](http://wordpress.org/support/topic/290753) that made it impossible to disable Sociable on a per post/page basis.
 
138
  * "Reintroduced" TwitThis as Twitter.
139
 
 
 
140
  = 3.4.1 =
 
141
  * Fixed the Sphinn submit link.
142
 
 
 
143
  = 3.4 =
 
144
  * Added the option to add a site to Sociable through a filter, read [How to add a site to Sociable](http://yoast.com/add-sites-to-sociable/).
145
 
 
 
146
  = 3.3.8 =
 
147
  * Fixed the option to disable Sociable on a per post / page basis.
148
 
 
 
149
  = 3.3.7 =
 
150
  * More bugfixery.
151
 
 
 
152
  = 3.3.6 =
 
153
  * Reverted plugin URL fix because of too many people on old WordPress installations complaining. (Upgrade, people, upgrade!)
 
154
  * Added PHPDoc throughout the plugins code.
155
 
 
 
156
  = 3.3.5 =
 
157
  * Added a Hyves button.
 
158
  * Fixed MSN Reporter button.
159
 
 
 
160
  = 3.3.4 =
 
161
  * Fixed RSS.
162
 
 
 
163
  = 3.3.3 =
 
164
  * Brought back Tumblr
 
165
  * Updated PDF link
 
166
  * Added Posterous
 
167
  * Smushed all images using [Smush.it](http://smush.it/), reducing the total image file size with 31.72 KB (42.03%)!
 
168
  * Removed pre - 2.6 compatibility code
169
 
 
 
170
  = 3.3.1 =
 
171
  * Added new option to use pure text links, instead of image links.
 
172
  * Fixed small issue with using target=blank links and the new awe.sm options.
 
173
  * Allowed for usage without an awe.sm API key, as awe.sm falls back to "default" awe.sm shortlinks.
 
174
  * Code cleanup for more efficiency in the backend on saving options.
 
175
  * General code cleanup.
 
176
  * Moved to the new default Changelog markup.
177
 
 
 
178
  = 3.3 =
 
179
  * Added awe.sm integration and some sites.
180
 
 
 
181
  = 3.2.3 =
 
182
  * Removed the last bit of non jQuery javascript.
 
183
  * Improved styling and visual feedback when selecting a site.
184
 
 
 
185
  = 3.2.2 =
 
186
  * Moved style loading to admin_print_styles and scripts to admin_print_scripts.
187
 
 
 
188
  = 3.2.1 =
 
189
  * Fixed a bug with printing styles in 2.8 beta.
190
 
 
 
191
  = 3.2 =
 
192
  This is a MAJOR update to Sociable. Major Thanks to Jean-Paul of [iPhoneclub](http://www.iphoneclub.nl/) for all his work in looking up all the sites. The full list of changes:
193
 
 
 
194
  * Restored sociable-admin.js, as it got accidentally removed.
 
195
  * Added `class="sociablefirst"` to the first site in the list and `class="sociablelast"` to the last one.
 
196
  * Added:
 
197
  * An RSS button, which links to your sites RSS feed
 
198
  * Printfriendly.com for both printing and creating a PDF, replacing the original "Print" function, which didn't work from RSS
 
199
  * Current
 
200
  * FriendFeed
 
201
  * MSN Reporter.nl
 
202
  * FS Daily
 
203
  * Hello TXT
 
204
  * Removed the following sites that were no longer working or active:
 
205
  * BlinkBits
 
206
  * Blogmemes.cn, .net, .jp
 
207
  * Blogsvine
 
208
  * Book.mark.hu
 
209
  * Bumpzee
 
210
  * Del.irio.us
 
211
  * Feed Me Links
 
212
  * Furl (replaced by Diigo)
 
213
  * GeenRedactie
 
214
  * Kick.ie
 
215
  * Leonaut
 
216
  * Magnolia
 
217
  * Plug IM
 
218
  * Pownce
 
219
  * Salesmarks
 
220
  * Scuttle
 
221
  * Shadows
 
222
  * Smarking
 
223
  * Spurl
 
224
  * Taggly
 
225
  * Tailrank
 
226
  * Tumblr (due to the change to a POST API, which we, unfortunately, can't support with Sociable)
 
227
  * Updated the following sites to include the excerpt when submitting:
 
228
  * Connotea
 
229
  * Delicious
 
230
  * Digg
 
231
  * Ekudos
 
232
  * Google Bookmarks
 
233
  * NuJij
 
234
  * Ping.fm
 
235
  * Otherwise updated:
 
236
  * Google Bookmarks (new icon)
 
237
  * Fleck (New URL)
 
238
  * Rec6 (new URL)
239
 
 
 
240
  = 3.1.1 =
 
241
  * Fixed bug with stylesheet introduced in 3.1.
242
 
 
 
243
  = 3.1 =
 
244
  * Converted all images to PNG.
 
245
  * Cleaned up usage of javascript in the backend and switched to the jquery library that comes with WordPress.
 
246
  * Allowed for usage of an external image directory.
 
247
  * Removed pre 2.6 compatibility fixes.
248
 
 
 
249
  = 3.0.6 =
 
250
  * Fixed xhtml bug in Netvibes integration.
 
251
  * Added Bitacoras.
252
 
 
 
253
  = 3.0.5 =
 
254
  * Added Identi.ca.
 
255
  * Fixed a bug in Yoast Posts widget.
256
 
 
 
257
  = 3.0.4 =
 
258
  * Added Netvibes.
259
 
 
 
260
  = 3.0.3 =
 
261
  * Security enhancements, thx to Mark Jaquith.
262
 
 
 
263
  = 3.0.2 =
 
264
  * Fixed CSS bug introduced in 3.0.
265
 
 
 
266
  = 3.0.1 =
 
267
  * Removed some other, now obsolete, code, reducing the code size by another 4KB.
268
 
 
 
269
  = 3.0 =
 
270
  * Fixed IE bug in admin.
 
271
  * Cleaned up Admin Area and changed support messages.
 
272
  * Removed directory checking for all images (speeds up incredibly).
 
273
  * Made display: inline !important to prevent vertical icon display.
 
274
  * Updated Wykop icon.
275
 
 
 
276
  = 2.9.15 =
 
277
  * Added a fallback for strip_shortcodes to maintain backwards compatibility with WordPress 2.3 and below.
278
 
 
 
279
  = 2.9.14 =
 
280
  * Made sure there are no tags or shortcodes in the excerpt.
 
281
  * Added ping.fm.
 
282
  * Removed indiagram (shut down).
283
 
 
 
284
  = 2.9.13 =
 
285
  * Changed Facebook link from sharer.php (meant for a popup window) to share.php (which has the actual menu on it etc.).
286
 
 
 
287
  = 2.9.12 =
 
288
  * Added Tip'd.
289
 
 
 
290
  = 2.9.11 =
 
291
  * Added settings link and Ozh admin menu icon.
292
 
 
 
293
  = 2.9.10 =
 
294
  * Fixes issue with excerpt not being urlencoded.
295
 
 
 
296
  = 2.9.9 =
 
297
  * Fixes for custom fields issues.
298
 
 
 
299
  = 2.9.8 =
 
300
  * Fixes for WP 2.7.
301
 
 
 
302
  = 2.9.6 =
 
303
  * Added Symbaloo and Tumblr.
304
 
 
 
305
  = 2.9.5 =
 
306
  * Fixed Fark & Propeller links.
 
307
  * Added missing i18n strings.
 
308
  * Added Yahoo Buzz.
309
 
 
 
310
  = 2.9.4 =
 
311
  * Removed PopCurrent and Rawsugar as they no longer exist.
 
312
  * Renamed BlueDot to Faves.
313
 
 
 
314
  = 2.9.3 =
 
315
  * Added Leonaut & MySpace.
 
316
  * Fixed plugin description.
 
317
  * Added option to disable Sociable on a per post basis.
 
318
  * Added option to display sociable on tag pages.
 
319
  * Added extra security to config page.
 
320
  * Fixed print button.
 
321
  * Fixed Twitter functionality.
322
 
 
 
323
  = 2.9.2 =
 
324
  * Added Swedish and Chinese localisations, thx to [Mikael Jorhult](http://www.mishkin.se/) and [Hugo Chen](http://take-ez.com/).
325
 
 
 
326
  = 2.9.1 =
 
327
  * Fixed bug where jQuery UI would be loaded twice.
328
 
 
 
329
  = 2.9 =
 
330
  * Removed Tool-Man in favor of jQuery, thx to Martin Joosse.
331
 
 
 
332
  = 2.8.4 =
 
333
  * General bugfixes.
334
 
 
 
335
  = 2.8.3 =
 
336
  * Added wikio.it, upnews.it, muti.co.za.
 
337
  * Made LinkedIn work even better.
 
338
  * Made opening in a new window optional.
339
 
 
 
340
  = 2.8.2 =
 
341
  * Now adds icons to feeds with excerpts too.
 
342
  * Added LinkedIn.
343
 
 
 
344
  = 2.8.1 =
 
345
  * Fixed some small issues.
 
346
  * Made sure tagline shows up again.
347
 
 
 
348
  = 2.8 =
 
349
  * Added option to show bookmark icons in feed.
 
350
  * Added Ratimarks.
 
351
  * Fixed xhtml compliance.
 
352
  * Fixed blue dot bug.
353
 
 
 
354
  = 2.6.9 =
 
355
  * Fixed WP 2.6 compatibility.
356
 
 
 
357
  = 2.6.8 =
 
358
  * Updated inline documentation.
359
 
 
 
360
  = 2.6.7 =
 
361
  * Renamed Sk*rt to Kirtsy.
 
362
  * Added designfloat.
 
363
  * Fixed description.
364
 
 
 
365
  = 2.5.4 =
 
366
  * Added HealthRanker, N4G, Meneame, BarraPunto, Laaik.it and E-mail option.
367
 
 
 
368
  = 2.5.3 =
 
369
  * Added Global Grind, Salesmarks, Webnews.de, Xerpi, Yigg.
370
 
 
 
371
  = 2.5.2 =
 
372
  * Added NuJIJ, eKudos, Sk-rt, Socialogs and MisterWong.de.
373
 
 
 
374
  = 2.5.1 =
 
375
  * Swapped Netscape for Propeller.
376
 
 
 
377
  Special thanks to [Robert Harm](http://www.die-truppe.com/) for coming up with loads of nice ideas.
378
 
 
 
379
  == Installation ==
380
 
 
 
381
  Download, Upgrading, Installation:
382
 
 
 
383
  Upgrade
384
 
 
 
385
  1. First deactivate Sociable
 
386
  1. Remove the `sociable` directory
387
 
 
 
388
  **Install**
389
 
 
 
390
  1. Unzip the `sociable.zip` file.
 
391
  1. Upload the the `sociable` folder (not just the files in it!) to your `wp-contents/plugins` folder. If you're using FTP, use 'binary' mode.
392
 
 
 
393
  **Activate**
394
 
 
 
395
  1. In your WordPress administration, go to the Plugins page
 
396
  1. Activate the Sociable plugin and a subpage for Sociable will appear
 
397
  in your Options menu.
398
 
 
 
399
  If you find any bugs or have any ideas, please mail me.
400
 
 
 
401
  **Advanced Users**
402
 
403
- For advanced use of the plugin, see the [Sociable](http://www.blogplay.com/sociable-for-wordpress) page on [Blogplay](http://www.blogplay.com/plugin)
 
 
 
1
+ === Sociable ===
2
+
3
  Author: sociable
4
+
5
  Tags: sociable, social bookmarking, social bookmarks, social icons, bookmarking, share, sharing, be sociable share, share and enjoy, digg, delicious, twitter, facebook, blinklist, stumbleupon, gmail, posterous, tumblr
6
+
7
  Requires Wordpress at least version: 2.6
8
+
9
  Tested up to version: 3.2.1
10
+
11
  Requires at least: 2.6
12
+
13
+
14
  Tested up to: 3.2.1
15
+
16
+ Stable tag: 4.1.6
17
+
18
  == Description ==
19
+ Sociable continues being the leader in the sharing space of WordPress plugins. Started more than 2 years ago, and with over 1,5mm downloads now, here comes the latest version 4.1.6, with everything you expect to get, and now introducing Sociable Skyscraper: the ultimate advanced packed plugin for setting up rating system on your WordPress blog. Sociable Skyscraper allows you to set up pages and comments with great degree of customization.
20
+ About Sociable Skyscraper
21
+ Sociable Skyscraper is the ultimate advanced and feature packed plugin for setting up rating system on your WordPress blog. Plugin allows you to set up different rating systems for posts, pages and comments with great degree of customization.
22
+ List of features is so smart, very long and non-stop growing:
23
+ You can get more Sociable with Sociable Skyscraper and easily getting Rating and Review of: posts, pages, comments, Facebook, G+, LinkedIN, Twitter. Multiple ratings for posts and pages. Latest twits, latests posts, follows, mentions. Visitor�s counter, visitor�s from Facebook and Twitter. As a plus you get an easy way to get TOP or HOME from Sociable Skyscraper.
24
+
25
+ About Sociable Classic
26
+ As you know, we've improved our visual interface, the default icons are now much more appealing, and a touch bit larger (you do want your readers to share your posts, don't you? :)
27
 
28
+ Enjoy it now!!!
29
+
30
+ Be Sociable, Share!!!
31
+
32
 
33
  [vimeo http://vimeo.com/31023294]
34
 
35
 
 
36
 
37
 
38
+
39
+ [vimeo http://vimeo.com/31023684]S
40
+
41
  Have technical support issues? Please leave them in the forum: http://wordpress.org/tags/sociable?forum_id=10
42
+
43
  Also use the forum for ideas, feedback, suggestions. We'll try to check the forum every day.
44
 
45
+
46
+
47
  What happened to the old icons? You can still use them in the new version, but they're not the default style anymore.
48
 
49
+
50
+
51
  Sociable finds its home outside of the WordPress environment on Blogplay.com-
52
 
53
+
54
+
55
+ *** Sociable 4.1.6 ***
56
+
57
+
58
+
59
 
60
  = Recent Updates =
61
+
62
+ * Changed the old motto "share and enjoy" for "Be Sociable, Share" much more attractive. Of course you can customize it to whatever you want.
63
+
64
  * Complete re-write to increase efficiency and speed of the plugin
65
 
66
+ * New Sociable Skyscraper version, the ultimate advanced packed plugin for setting up rating system on your WordPress blog. Sociable Skyscraper allows you to set up pages and comments with great degree of customization.
67
+
68
+
69
  = Recently Added Sites =
70
+
71
  * Posterous
72
+
73
  * Sphinn
74
+
75
  * Tumblr
76
 
77
+ * G+
78
+
79
+ * LinkedIN
80
+
81
+
82
  = Recently Deleted Sites =
83
+
84
  * Mixx.com, recently acquired, doesn't support share functions anymore
85
+
86
  * Netvibes stopped sharing
87
+
88
  * Slashdot: New bookmark creation is no longer supported
89
+
90
  * And we deleted a bunch of others that were really not used that much
91
 
92
+
93
+
94
  = Special Thanks =
95
+
96
  Sociable plugin wouldn't be what it is today if it weren't for these people that helped us along the way:
97
+
98
  * Thanks to [WPzoom](http://http://www.wpzoom.com/wpzoom/500-free-icons-wpzoom-social-networking-icon-set/) for letting us to use their awesome icons
99
+
100
  * Also special thanks to [Webtreats etc](http://http://webtreats.mysitemyway.com/) for allowing us to use their great icons
101
 
102
+
103
+
104
  == Screenshots ==
105
+
106
  1. The Sociable backend, easily select sites and drag & drop to change the order of appearance.
107
+
108
  2. Sociable with its new default styling.
109
+
110
  3. Pick the style you want
111
+
112
  4. Or you can pick your own style
113
 
114
+
115
+
116
+
117
  == Installation ==
118
+
119
  1. Upload the extracted archive to `wp-content/plugins/`
120
+
121
  2. Activate the plugin through the 'Plugins' menu
122
+
123
  3. Open the plugin settings page Settings -> Sociable
124
+
125
  4. Adjust settings to your liking
126
+
127
  4. Enjoy!
128
 
129
 
130
 
131
 
132
 
133
+
134
+
135
+
136
+
137
+
138
+
139
  == Frequently Asked Questions ==
140
+
141
  = What happened to the old icons? =
142
+
143
  You can still use them. It's just they're not the default anymore.
144
 
145
+
146
+
147
  = I want to reach you, but not for a technical question =
148
+
149
  Please send us an email to sociableblogplay [ at ] gmail.com
150
 
151
+
152
+
153
  == Changelog ==
154
 
155
+
156
+ = 4.1.6 =
157
+
158
+ * FIXED: Some Fixes
159
+
160
+
161
  = 4.1.5 =
162
+
163
  * FIXED: Some Fixes
164
 
165
+
166
+
167
  = 4.1.4 =
168
+
169
  * FIXED: Some Fixes
170
 
171
+
172
+
173
  = 4.1.3 =
174
+
175
  * FIXED: Some Fixes
176
 
177
+
178
+
179
  = 4.1.2 =
180
+
181
  * FIXED: Google plus problem
182
 
183
+
184
+
185
  = 4.1.1 =
186
+
187
  * ADDED: Facebook Like Counter, Twitter Counter, Google Plus Counter, Linkedin Counter,StumbleUpon Counter and Digg Counter
188
+
189
  * ADDED: Add Sociable at Top and Bottom of the post
190
 
191
+
192
+
193
  = 4.0.6 =
194
+
195
  * FIXED: Allow Sub Directory Blogs (http://domain.com/blog)
196
 
197
+
198
+
199
  = 4.0.5 =
200
+
201
  * FIXED: Other Upgrade issues
202
 
203
+
204
+
205
  = 4.0.4 =
206
+
207
  * FIXED: Upgrade issues
208
 
209
 
210
+
211
+
212
+
213
  = 4.0.3 =
214
+
215
  * Fix IIS 6.0 and PHP 5.3.x
216
 
217
+
218
+
219
  = 4.0.1 =
220
+
221
  * Changed the old motto "share and enjoy" for "Be Sociable, Share" much more attractive. Of cours you can customize it to whatever you want.
222
+
223
  * Complete re-write to increase efficiency and speed of the plugin
224
+
225
  * Updated it for up to Wordpress version 3.2.1
226
 
227
+
228
+
229
  = 3.5.2 =
230
+
231
+ * Added new services MOB, ??, ????, QQ??, LaTafanera, SheToldMe, viadeo FR, Diggita, Design Float
232
+
233
  * Removed ID properties from sociable anchor tags (share links)
234
+
235
  * FIXED: Having a custom image directory now disables sprite usage, and the icons of services are displayed on sociable configuration page.
236
 
237
+
238
+
239
  = 3.5.1 =
240
+
241
  * Fixed the xhtml validation issues
242
+
243
  * 'target=blank' (open link in new window) issue solved
244
+
245
  * Sprites can now be disabled, allowing for custom icons
246
+
247
  * Sprites have been disabled for RSS
248
+
249
  * You can now deactivate the blogplay widget from your wordpress dashboard
250
 
251
+
252
+
253
  = 3.5.0 =
254
+
255
  * The icons now load in a CSS Sprites, allowing for faster download times.
256
+
257
  * These services have been discontinued: BlogMeme FR, BlogMeme SP, co.mments, DesignFloat.com, PPNow.net, Symbaloo.com.
258
+
259
  * You can now add links to your browser favorites.
260
+
261
  * iFrames added for services that support them.
262
+
263
  * You can know unselect the transparency effect on the sociable icons.
264
 
265
+
266
+
267
  = 3.4.4 =
268
+
269
  * Another fix for the sociableoff dilemma's, no backwards compatibility unfortunately, so disable sociable again on pages where you want to disable it.
270
 
271
+
272
+
273
  = 3.4.3 =
274
+
275
  * Fixed the bug mentioned [here](http://wordpress.org/support/topic/288487) and [here](http://wordpress.org/support/topic/290753) that made it impossible to disable Sociable on a per post/page basis (for real, now).
276
 
277
+
278
+
279
  = 3.4.2 =
280
+
281
  * Added a site specific id to each links anchor tag.
282
+
283
  * Fixed the bug mentioned [here](http://wordpress.org/support/topic/288487) and [here](http://wordpress.org/support/topic/290753) that made it impossible to disable Sociable on a per post/page basis.
284
+
285
  * "Reintroduced" TwitThis as Twitter.
286
 
287
+
288
+
289
  = 3.4.1 =
290
+
291
  * Fixed the Sphinn submit link.
292
 
293
+
294
+
295
  = 3.4 =
296
+
297
  * Added the option to add a site to Sociable through a filter, read [How to add a site to Sociable](http://yoast.com/add-sites-to-sociable/).
298
 
299
+
300
+
301
  = 3.3.8 =
302
+
303
  * Fixed the option to disable Sociable on a per post / page basis.
304
 
305
+
306
+
307
  = 3.3.7 =
308
+
309
  * More bugfixery.
310
 
311
+
312
+
313
  = 3.3.6 =
314
+
315
  * Reverted plugin URL fix because of too many people on old WordPress installations complaining. (Upgrade, people, upgrade!)
316
+
317
  * Added PHPDoc throughout the plugins code.
318
 
319
+
320
+
321
  = 3.3.5 =
322
+
323
  * Added a Hyves button.
324
+
325
  * Fixed MSN Reporter button.
326
 
327
+
328
+
329
  = 3.3.4 =
330
+
331
  * Fixed RSS.
332
 
333
+
334
+
335
  = 3.3.3 =
336
+
337
  * Brought back Tumblr
338
+
339
  * Updated PDF link
340
+
341
  * Added Posterous
342
+
343
  * Smushed all images using [Smush.it](http://smush.it/), reducing the total image file size with 31.72 KB (42.03%)!
344
+
345
  * Removed pre - 2.6 compatibility code
346
 
347
+
348
+
349
  = 3.3.1 =
350
+
351
  * Added new option to use pure text links, instead of image links.
352
+
353
  * Fixed small issue with using target=blank links and the new awe.sm options.
354
+
355
  * Allowed for usage without an awe.sm API key, as awe.sm falls back to "default" awe.sm shortlinks.
356
+
357
  * Code cleanup for more efficiency in the backend on saving options.
358
+
359
  * General code cleanup.
360
+
361
  * Moved to the new default Changelog markup.
362
 
363
+
364
+
365
  = 3.3 =
366
+
367
  * Added awe.sm integration and some sites.
368
 
369
+
370
+
371
  = 3.2.3 =
372
+
373
  * Removed the last bit of non jQuery javascript.
374
+
375
  * Improved styling and visual feedback when selecting a site.
376
 
377
+
378
+
379
  = 3.2.2 =
380
+
381
  * Moved style loading to admin_print_styles and scripts to admin_print_scripts.
382
 
383
+
384
+
385
  = 3.2.1 =
386
+
387
  * Fixed a bug with printing styles in 2.8 beta.
388
 
389
+
390
+
391
  = 3.2 =
392
+
393
  This is a MAJOR update to Sociable. Major Thanks to Jean-Paul of [iPhoneclub](http://www.iphoneclub.nl/) for all his work in looking up all the sites. The full list of changes:
394
 
395
+
396
+
397
  * Restored sociable-admin.js, as it got accidentally removed.
398
+
399
  * Added `class="sociablefirst"` to the first site in the list and `class="sociablelast"` to the last one.
400
+
401
  * Added:
402
+
403
  * An RSS button, which links to your sites RSS feed
404
+
405
  * Printfriendly.com for both printing and creating a PDF, replacing the original "Print" function, which didn't work from RSS
406
+
407
  * Current
408
+
409
  * FriendFeed
410
+
411
  * MSN Reporter.nl
412
+
413
  * FS Daily
414
+
415
  * Hello TXT
416
+
417
  * Removed the following sites that were no longer working or active:
418
+
419
  * BlinkBits
420
+
421
  * Blogmemes.cn, .net, .jp
422
+
423
  * Blogsvine
424
+
425
  * Book.mark.hu
426
+
427
  * Bumpzee
428
+
429
  * Del.irio.us
430
+
431
  * Feed Me Links
432
+
433
  * Furl (replaced by Diigo)
434
+
435
  * GeenRedactie
436
+
437
  * Kick.ie
438
+
439
  * Leonaut
440
+
441
  * Magnolia
442
+
443
  * Plug IM
444
+
445
  * Pownce
446
+
447
  * Salesmarks
448
+
449
  * Scuttle
450
+
451
  * Shadows
452
+
453
  * Smarking
454
+
455
  * Spurl
456
+
457
  * Taggly
458
+
459
  * Tailrank
460
+
461
  * Tumblr (due to the change to a POST API, which we, unfortunately, can't support with Sociable)
462
+
463
  * Updated the following sites to include the excerpt when submitting:
464
+
465
  * Connotea
466
+
467
  * Delicious
468
+
469
  * Digg
470
+
471
  * Ekudos
472
+
473
  * Google Bookmarks
474
+
475
  * NuJij
476
+
477
  * Ping.fm
478
+
479
  * Otherwise updated:
480
+
481
  * Google Bookmarks (new icon)
482
+
483
  * Fleck (New URL)
484
+
485
  * Rec6 (new URL)
486
 
487
+
488
+
489
  = 3.1.1 =
490
+
491
  * Fixed bug with stylesheet introduced in 3.1.
492
 
493
+
494
+
495
  = 3.1 =
496
+
497
  * Converted all images to PNG.
498
+
499
  * Cleaned up usage of javascript in the backend and switched to the jquery library that comes with WordPress.
500
+
501
  * Allowed for usage of an external image directory.
502
+
503
  * Removed pre 2.6 compatibility fixes.
504
 
505
+
506
+
507
  = 3.0.6 =
508
+
509
  * Fixed xhtml bug in Netvibes integration.
510
+
511
  * Added Bitacoras.
512
 
513
+
514
+
515
  = 3.0.5 =
516
+
517
  * Added Identi.ca.
518
+
519
  * Fixed a bug in Yoast Posts widget.
520
 
521
+
522
+
523
  = 3.0.4 =
524
+
525
  * Added Netvibes.
526
 
527
+
528
+
529
  = 3.0.3 =
530
+
531
  * Security enhancements, thx to Mark Jaquith.
532
 
533
+
534
+
535
  = 3.0.2 =
536
+
537
  * Fixed CSS bug introduced in 3.0.
538
 
539
+
540
+
541
  = 3.0.1 =
542
+
543
  * Removed some other, now obsolete, code, reducing the code size by another 4KB.
544
 
545
+
546
+
547
  = 3.0 =
548
+
549
  * Fixed IE bug in admin.
550
+
551
  * Cleaned up Admin Area and changed support messages.
552
+
553
  * Removed directory checking for all images (speeds up incredibly).
554
+
555
  * Made display: inline !important to prevent vertical icon display.
556
+
557
  * Updated Wykop icon.
558
 
559
+
560
+
561
  = 2.9.15 =
562
+
563
  * Added a fallback for strip_shortcodes to maintain backwards compatibility with WordPress 2.3 and below.
564
 
565
+
566
+
567
  = 2.9.14 =
568
+
569
  * Made sure there are no tags or shortcodes in the excerpt.
570
+
571
  * Added ping.fm.
572
+
573
  * Removed indiagram (shut down).
574
 
575
+
576
+
577
  = 2.9.13 =
578
+
579
  * Changed Facebook link from sharer.php (meant for a popup window) to share.php (which has the actual menu on it etc.).
580
 
581
+
582
+
583
  = 2.9.12 =
584
+
585
  * Added Tip'd.
586
 
587
+
588
+
589
  = 2.9.11 =
590
+
591
  * Added settings link and Ozh admin menu icon.
592
 
593
+
594
+
595
  = 2.9.10 =
596
+
597
  * Fixes issue with excerpt not being urlencoded.
598
 
599
+
600
+
601
  = 2.9.9 =
602
+
603
  * Fixes for custom fields issues.
604
 
605
+
606
+
607
  = 2.9.8 =
608
+
609
  * Fixes for WP 2.7.
610
 
611
+
612
+
613
  = 2.9.6 =
614
+
615
  * Added Symbaloo and Tumblr.
616
 
617
+
618
+
619
  = 2.9.5 =
620
+
621
  * Fixed Fark & Propeller links.
622
+
623
  * Added missing i18n strings.
624
+
625
  * Added Yahoo Buzz.
626
 
627
+
628
+
629
  = 2.9.4 =
630
+
631
  * Removed PopCurrent and Rawsugar as they no longer exist.
632
+
633
  * Renamed BlueDot to Faves.
634
 
635
+
636
+
637
  = 2.9.3 =
638
+
639
  * Added Leonaut & MySpace.
640
+
641
  * Fixed plugin description.
642
+
643
  * Added option to disable Sociable on a per post basis.
644
+
645
  * Added option to display sociable on tag pages.
646
+
647
  * Added extra security to config page.
648
+
649
  * Fixed print button.
650
+
651
  * Fixed Twitter functionality.
652
 
653
+
654
+
655
  = 2.9.2 =
656
+
657
  * Added Swedish and Chinese localisations, thx to [Mikael Jorhult](http://www.mishkin.se/) and [Hugo Chen](http://take-ez.com/).
658
 
659
+
660
+
661
  = 2.9.1 =
662
+
663
  * Fixed bug where jQuery UI would be loaded twice.
664
 
665
+
666
+
667
  = 2.9 =
668
+
669
  * Removed Tool-Man in favor of jQuery, thx to Martin Joosse.
670
 
671
+
672
+
673
  = 2.8.4 =
674
+
675
  * General bugfixes.
676
 
677
+
678
+
679
  = 2.8.3 =
680
+
681
  * Added wikio.it, upnews.it, muti.co.za.
682
+
683
  * Made LinkedIn work even better.
684
+
685
  * Made opening in a new window optional.
686
 
687
+
688
+
689
  = 2.8.2 =
690
+
691
  * Now adds icons to feeds with excerpts too.
692
+
693
  * Added LinkedIn.
694
 
695
+
696
+
697
  = 2.8.1 =
698
+
699
  * Fixed some small issues.
700
+
701
  * Made sure tagline shows up again.
702
 
703
+
704
+
705
  = 2.8 =
706
+
707
  * Added option to show bookmark icons in feed.
708
+
709
  * Added Ratimarks.
710
+
711
  * Fixed xhtml compliance.
712
+
713
  * Fixed blue dot bug.
714
 
715
+
716
+
717
  = 2.6.9 =
718
+
719
  * Fixed WP 2.6 compatibility.
720
 
721
+
722
+
723
  = 2.6.8 =
724
+
725
  * Updated inline documentation.
726
 
727
+
728
+
729
  = 2.6.7 =
730
+
731
  * Renamed Sk*rt to Kirtsy.
732
+
733
  * Added designfloat.
734
+
735
  * Fixed description.
736
 
737
+
738
+
739
  = 2.5.4 =
740
+
741
  * Added HealthRanker, N4G, Meneame, BarraPunto, Laaik.it and E-mail option.
742
 
743
+
744
+
745
  = 2.5.3 =
746
+
747
  * Added Global Grind, Salesmarks, Webnews.de, Xerpi, Yigg.
748
 
749
+
750
+
751
  = 2.5.2 =
752
+
753
  * Added NuJIJ, eKudos, Sk-rt, Socialogs and MisterWong.de.
754
 
755
+
756
+
757
  = 2.5.1 =
758
+
759
  * Swapped Netscape for Propeller.
760
 
761
+
762
+
763
  Special thanks to [Robert Harm](http://www.die-truppe.com/) for coming up with loads of nice ideas.
764
 
765
+
766
+
767
  == Installation ==
768
 
769
+
770
+
771
  Download, Upgrading, Installation:
772
 
773
+
774
+
775
  Upgrade
776
 
777
+
778
+
779
  1. First deactivate Sociable
780
+
781
  1. Remove the `sociable` directory
782
 
783
+
784
+
785
  **Install**
786
 
787
+
788
+
789
  1. Unzip the `sociable.zip` file.
790
+
791
  1. Upload the the `sociable` folder (not just the files in it!) to your `wp-contents/plugins` folder. If you're using FTP, use 'binary' mode.
792
 
793
+
794
+
795
  **Activate**
796
 
797
+
798
+
799
  1. In your WordPress administration, go to the Plugins page
800
+
801
  1. Activate the Sociable plugin and a subpage for Sociable will appear
802
+
803
  in your Options menu.
804
 
805
+
806
+
807
  If you find any bugs or have any ideas, please mail me.
808
 
809
+
810
+
811
  **Advanced Users**
812
 
813
+
814
+
815
+ For advanced use of the plugin, see the [Sociable](http://www.blogplay.com/sociable-for-wordpress) page on [Blogplay](http://www.blogplay.com/plugin)
816
+
sociable.php CHANGED
@@ -1,326 +1,262 @@
1
  <?php
2
 
3
 
4
- /*
5
 
6
 
7
- Plugin Name: Sociable
8
 
9
 
10
- Plugin URI: http://blogplay.com/plugin
11
 
 
12
 
13
- Description: Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
14
 
15
 
16
- Version: 4.1.5
17
 
18
 
19
- Author: Blogplay
20
 
21
 
22
- Author URI: http://blogplay.com/
23
 
24
 
25
 
 
26
 
27
 
28
- Copyright 2006 Peter Harkins (ph@malaprop.org)
29
 
30
 
31
- Copyright 2008-2009 Joost de Valk (joost@yoast.com)
32
 
 
33
 
34
- Copyright 2009-Present Blogplay.com (info@blogplay.com)
35
 
36
 
37
 
38
 
 
39
 
40
 
41
- This program is free software; you can redistribute it and/or modify
42
 
43
 
44
- it under the terms of the GNU General Public License as published by
45
 
 
46
 
47
- the Free Software Foundation; either version 2 of the License, or
48
 
49
 
50
- (at your option) any later version.
51
 
52
 
 
53
 
54
 
55
 
56
- This program is distributed in the hope that it will be useful,
57
 
58
 
59
- but WITHOUT ANY WARRANTY; without even the implied warranty of
60
 
61
 
62
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
63
 
64
 
65
- GNU General Public License for more details.
66
 
67
 
 
68
 
69
 
70
 
71
- You should have received a copy of the GNU General Public License
72
 
73
 
74
- along with this program; if not, write to the Free Software
75
 
76
 
77
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
78
 
79
 
80
 
 
81
 
82
 
83
 
84
 
85
 
86
- */
87
 
88
 
89
 
90
 
91
 
92
- /*
93
 
94
 
95
- * Define Some Paths
96
 
 
97
 
98
- */
99
 
100
 
101
- define( 'SOCIABLE_HTTP_PATH' , WP_PLUGIN_URL . '/' . str_replace(basename( __FILE__) , "" , plugin_basename(__FILE__) ) );
102
 
103
 
104
- define( 'SOCIABLE_ABSPATH' , WP_PLUGIN_DIR . '/' . str_replace(basename( __FILE__) , "" , plugin_basename(__FILE__) ) );
105
 
106
 
107
 
108
 
109
 
110
- /*
111
 
112
 
113
- * Includes
114
 
115
 
116
- */
117
 
 
118
 
119
- include 'includes/class-sociable_Admin_Options.php';
120
 
121
 
122
- include 'includes/class-Sociable_Globals.php';
123
 
124
 
125
- include 'includes/sociable_output.php';
126
 
127
 
128
 
129
 
130
 
131
- /*
132
 
 
133
 
134
- * Global Variables
135
 
136
 
137
- */
138
 
139
 
140
- //$sociable_known_sites = Sociable_Globals::default_sites();
141
 
142
 
143
- $sociable_options = get_option( 'sociable_options' );
144
 
145
 
146
- //print_r($sociable_options);
147
 
 
148
 
149
- //$sociable_post_types = array(); //Set This blank here, won't work before init
150
 
151
 
152
- //$sociable_taxonomies = array(); //Same Here
153
 
154
 
 
155
 
156
 
157
 
158
- /*
159
 
160
 
161
- * General Init Function
162
 
163
 
164
- */
165
 
166
 
167
- function sociable_init(){
168
 
169
 
170
- global $sociable_post_types, $sociable_taxonomies, $sociable_options;
171
-
172
- if (!isset($sociable_options['icon_size']) || $sociable_options['icon_size'] == "" || !isset($sociable_options['version']) || $sociable_options['version'] != "4.1.5" ) sociable_reset();
173
- //echo dirname( plugin_basename( __FILE__ ) )."/includes"
174
 
175
- load_plugin_textdomain( 'sociable', false, dirname( plugin_basename( __FILE__ ) )."/languages" );
176
 
177
 
178
- $active_sites = ( isset( $sociable_options['active_sites'] ) ) ? $sociable_options['active_sites'] : array() ;
179
 
180
 
181
- //Set The Post Types
182
 
183
 
184
- $sociable_post_types = Sociable_Globals::sociable_get_post_types();
185
 
186
 
187
-
188
 
 
189
 
190
- //Set The Custom Taxonomies
191
 
192
 
193
- $sociable_taxonomies = Sociable_Globals::sociable_get_taxonomies();
194
 
195
 
196
-
197
 
198
- wp_enqueue_script( 'sociable' , SOCIABLE_HTTP_PATH . 'js/sociable.js' );
199
 
200
-
201
-
202
- wp_enqueue_script( 'addtofavourites' , SOCIABLE_HTTP_PATH . 'js/addtofavorites.js' );
203
 
204
 
205
- if( ! is_admin() ){
206
 
207
 
208
- //Load Up The Front Of Site CSS And JS
209
 
210
 
211
-
212
-
213
 
214
- if( array_key_exists( 'Add to favorites' , $active_sites ) ){
215
 
216
 
217
- // wp_enqueue_script( 'addtofavourites' , SOCIABLE_HTTP_PATH . 'js/addtofavorites.js' );
218
 
 
219
 
220
- }
221
-
222
 
223
 
224
-
225
 
226
 
227
- if( isset( $sociable_options['use_stylesheet'] ) ){
228
 
229
 
230
- wp_enqueue_style( 'sociablecss' , SOCIABLE_HTTP_PATH . 'css/sociable.css' );
231
 
232
 
233
- }
234
 
235
 
236
-
237
 
238
 
239
- }
240
 
241
 
242
-
243
 
 
244
 
245
-
246
 
247
 
248
- }
249
 
250
 
 
251
 
252
 
253
 
254
- /*
255
 
256
 
257
- * Hooks And Filters
258
 
 
259
 
260
- */
261
 
262
 
263
- add_action( 'admin_init' , array( 'sociable_Admin_Options' , 'init' ) );
264
 
265
 
266
- add_action( 'admin_menu' , array( 'sociable_Admin_Options' , 'add_menu_pages' ) );
267
 
268
 
269
- add_action( 'save_post' , array( 'sociable_Admin_Options' , 'save_post' ) );
270
 
271
 
272
- add_action( 'init' , 'sociable_init' );
273
 
274
 
275
 
276
 
277
 
278
- add_filter( 'the_content', 'auto_sociable' );
279
 
280
 
281
- add_filter( 'the_excerpt', 'auto_sociable' );
282
 
283
 
284
 
285
 
286
 
287
- register_activation_hook(__FILE__, 'sociable_activate' );
288
 
289
 
290
- register_deactivation_hook( __FILE__, 'sociable_deactivate' );
291
 
292
 
293
 
 
294
 
295
 
296
- /*
297
 
298
 
299
- * Activation Function
300
 
 
301
 
302
- */
303
 
 
304
 
305
- function sociable_activate(){
306
 
 
307
 
308
-
309
 
310
 
311
- if( ! get_option( 'sociable_options' ) ){
312
 
313
 
314
- return sociable_reset();
 
315
 
316
 
317
- }
318
 
319
 
320
-
321
 
322
 
323
- }
324
 
325
 
326
 
@@ -328,729 +264,1702 @@ function sociable_activate(){
328
  /*
329
 
330
 
331
- * Reset Function
332
 
333
 
334
- */
335
 
 
336
 
337
- function sociable_reset(){
338
 
339
 
340
- global $wpdb;
341
 
342
 
343
- //reset all data to factory defaults, install if is there.
344
 
345
 
346
- //Delete All Metadata From The Database ?
347
 
348
 
349
- $wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key = '_sociableoff'");
350
 
 
351
 
352
-
353
 
354
 
355
- $sociable_options = array(
356
- 'version' =>'4.1.5',
357
 
358
- 'automatic_mode' => 'on',
359
 
360
- 'tagline' => 'Be Sociable, Share!',
361
 
362
- 'custom_image_directory' => '',
363
 
364
- 'use_stylesheet' => 'on',
365
 
366
- 'use_images' => 'on',
 
367
 
368
-
369
 
370
- 'use_alphamask' => 'on',
371
 
372
- 'new_window' => 'on',
373
-
374
- 'help_grow' => 'on',
375
 
376
- 'locations' => array(
377
 
378
- 'is_single' => 'on',
379
 
380
- 'is_page' => 'on'
381
 
382
- ),
383
 
384
- 'active_sites' => array(
385
- 'Twitter' => 'on',
386
- 'Facebook' => 'on',
387
- 'email'=>'on',
388
- 'Add to favorites'=>'on',
389
- 'StumbleUpon' =>'on',
390
- 'Delicious' =>'on',
391
- 'Google Reader' =>'on',
392
- 'LinkedIn' => 'on',
393
- 'BlinkList' =>'on',
394
- 'More' => 'on',
395
- 'Twitter Counter' =>'on',
396
- 'Facebook Counter' =>'on',
397
- 'Google +' =>'on',
398
- 'LinkedIn Counter' =>'on',
399
- 'StumbleUpon Counter' =>'on'
400
-
401
-
402
- ),
403
 
404
- 'icon_size' => '32',
405
- 'icon_option' => 'option1',
406
-
407
 
408
- );
409
 
410
 
411
-
412
 
413
 
414
- $sociable_known_sites = array(
415
-
416
- 'Facebook' => array(
417
 
418
- 'favicon' => 'facebook.png',
419
 
420
- 'url' => 'http://www.facebook.com/share.php?u=PERMALINK&amp;t=TITLE',
421
 
422
- 'spriteCoordinates' => Array(
423
 
424
- '16' => array("-48px","0px"),
425
 
426
- '32' => array("-96px","0px"),
427
 
428
- '48' => array("-144px","0px"),
429
 
430
- '64' => array("-192px","0px")
431
 
432
- )
433
- ),
434
-
435
- 'Facebook Counter' => array(
436
- 'counter' =>1,
437
- 'favicon' => 'likecounter.png',
438
 
439
- 'url' => '<iframe src="//www.facebook.com/plugins/like.php?href=PERMALINKCOUNT&send=false&layout=button_count&show_faces=false&action=like&colorscheme=light&font" scrolling="no" frameborder="0" style="border:none; overflow:hidden;height:32px;width:100px" allowTransparency="true"></iframe>',
440
-
441
- 'spriteCoordinates' => Array(
442
 
443
- '16' => array("-48px","0px"),
444
 
445
- '32' => array("-96px","0px"),
446
 
447
- '48' => array("-144px","0px"),
448
 
449
- '64' => array("-192px","0px")
450
 
451
- )
452
- ),
453
 
454
- 'Myspace' => array(
455
 
456
- 'favicon' => 'myspace.png',
457
 
458
- 'url' => 'http://www.myspace.com/Modules/PostTo/Pages/?u=PERMALINK&amp;t=TITLE',
459
 
460
- 'spriteCoordinates' => Array(
461
 
462
- '16' => array("0px","-16px"),
463
 
464
- '32' => array("0px","-32px"),
465
 
466
- '48' => array("0px","-48px"),
467
 
468
- '64' => array("0px","-64px")
469
 
470
- )
 
 
 
 
 
471
 
472
- ),
473
 
474
- 'Twitter' => array(
 
 
 
475
 
476
- 'favicon' => 'twitter.png',
477
 
478
- 'url' => 'http://twitter.com/intent/tweet?text=TITLE%20-%20PERMALINK%20(via%20@sociablesite)',
479
 
480
- 'spriteCoordinates' => Array(
481
 
482
- '16' => array("-144px","-16px"),
 
483
 
484
- '32' => array("-288px","-32px"),
 
485
 
486
- '48' => array("-432px","-48px"),
487
 
488
- '64' => array("-576px","-64px")
489
 
490
- )
 
491
 
492
- ),
493
 
494
- 'Twitter Counter' => array(
495
- 'counter' =>1,
496
- 'favicon' => 'twitter.png',
497
 
498
- 'url' => '<a href="https://twitter.com/share" data-text="TITLECOUNT - PERMALINKCOUNT (via #sociablesite)" data-url="PERMALINKCOUNT" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>',
 
 
 
499
 
500
- 'spriteCoordinates' => Array(
501
 
502
- '16' => array("-144px","-16px"),
503
 
504
- '32' => array("-288px","-32px"),
505
 
506
- '48' => array("-432px","-48px"),
507
 
508
- '64' => array("-576px","-64px")
509
 
510
- )
511
 
512
- ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
513
 
 
514
 
 
515
 
 
516
  'LinkedIn' => array(
517
 
 
 
518
  'favicon' => 'linkedin.png',
519
 
 
 
520
  'url' => 'http://www.linkedin.com/shareArticle?mini=true&amp;url=PERMALINK&amp;title=TITLE&amp;source=BLOGNAME&amp;summary=EXCERPT',
521
 
 
 
522
  'spriteCoordinates' => Array(
523
 
 
 
524
  '16' => array("-144px","0px"),
525
 
 
 
526
  '32' => array("-288px","0px"),
527
 
 
 
528
  '48' => array("-432px","0px"),
529
 
 
 
530
  '64' => array("-576px","0px")
531
 
 
 
532
  )
533
 
 
 
534
 
535
 
 
 
536
  ),
 
537
 
 
538
  'LinkedIn Counter' => array(
 
539
  'counter'=>1,
540
 
 
 
541
  'favicon' => 'linkedin.png',
542
 
 
 
543
  'url' => '<script src="http://platform.linkedin.com/in.js" type="text/javascript"></script><script type="IN/Share" data-url="PERMALINKCOUNT" data-counter="right"></script>',
544
 
 
 
545
  'spriteCoordinates' => Array(
546
 
 
 
547
  '16' => array("-144px","0px"),
548
 
 
 
549
  '32' => array("-288px","0px"),
550
 
 
 
551
  '48' => array("-432px","0px"),
552
 
 
 
553
  '64' => array("-576px","0px")
554
 
 
 
555
  )
556
 
 
 
557
 
558
 
 
 
559
  ),
560
 
 
 
561
 
562
 
 
 
563
  'Delicious' => array(
564
 
 
 
565
  'favicon' => 'delicious.png',
566
 
 
 
567
  'url' => 'http://delicious.com/post?url=PERMALINK&amp;title=TITLE&amp;notes=EXCERPT',
568
 
 
 
569
  'spriteCoordinates' => Array(
570
 
 
 
571
  '16' => array("-16px","0px"),
572
 
 
 
573
  '32' => array("-32px","0px"),
574
 
 
 
575
  '48' => array("-48px","0px"),
576
 
 
 
577
  '64' => array("-64px","0px")
578
 
 
 
579
  )
580
 
 
 
581
  ),
582
 
 
 
583
  'Digg' => array(
584
 
 
 
585
  'favicon' => 'digg.png',
586
 
 
 
587
  'url' => 'http://digg.com/submit?phase=2&amp;url=PERMALINK&amp;title=TITLE&amp;bodytext=EXCERPT',
588
 
 
 
589
  'spriteCoordinates' => Array(
590
 
 
 
591
  '16' => array("-32px","0px"),
592
 
 
 
593
  '32' => array("-64px","0px"),
594
 
 
 
595
  '48' => array("-96px","0px"),
596
 
 
 
597
  '64' => array("-128px","0px")
598
 
 
 
599
  )
600
 
 
 
601
  ),
602
 
 
 
603
  'Digg Counter' => array(
 
604
  'counter' =>1,
 
605
  'favicon' => 'digg.png',
606
 
 
 
607
  'url' => "<script type='text/javascript'>(function() {var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];s.type = 'text/javascript';s.async = true;s.src = 'http://widgets.digg.com/buttons.js';s1.parentNode.insertBefore(s, s1);})();</script><a href='http://digg.com/submit?url=PERMALINK&amp;title=TITLE' class='DiggThisButton DiggCompact'></a>",
608
 
 
 
609
  'spriteCoordinates' => Array(
610
 
 
 
611
  '16' => array("-32px","0px"),
612
 
 
 
613
  '32' => array("-64px","0px"),
614
 
 
 
615
  '48' => array("-96px","0px"),
616
 
 
 
617
  '64' => array("-128px","0px")
618
 
 
 
619
  )
620
 
 
 
621
  ),
622
 
 
 
623
 
 
624
 
 
625
 
 
626
 
 
627
  'Reddit' => array(
628
 
 
 
629
  'favicon' => 'reddit.png',
630
 
 
 
631
  'url' => 'http://reddit.com/submit?url=PERMALINK&amp;title=TITLE',
632
 
 
 
633
  'spriteCoordinates' => Array(
634
 
 
 
635
  '16' => array("-64px","-16px"),
636
 
 
 
637
  '32' => array("-128px","-32px"),
638
 
 
 
639
  '48' => array("-192px","-48px"),
640
 
 
 
641
  '64' => array("-256px","-64px")
642
 
 
 
643
  )
644
 
 
 
645
  ),
646
 
 
 
647
 
648
 
 
 
649
  'StumbleUpon' => array(
650
 
 
 
651
  'favicon' => 'stumbleupon.png',
652
 
 
 
653
  'url' => 'http://www.stumbleupon.com/submit?url=PERMALINK&title=TITLE',
654
 
 
 
655
  'spriteCoordinates' => Array(
656
 
 
 
657
  '16' => array("-112px","-16px"),
658
 
 
 
659
  '32' => array("-224px","-32px"),
660
 
 
 
661
  '48' => array("-336px","-48px"),
662
 
 
 
663
  '64' => array("-448px","-64px")
664
 
 
 
665
  )),
 
666
 
 
667
  'StumbleUpon Counter' => array(
 
668
  'counter' =>1,
 
669
  'favicon' => 'stumbleupon.png',
670
 
 
 
671
  'url' => '<script src="http://www.stumbleupon.com/hostedbadge.php?s=2&r=PERMALINKCOUNT"></script>',
672
 
 
 
673
  'spriteCoordinates' => Array(
674
 
675
- '16' => array("-112px","-16px"),
 
 
 
 
676
 
677
  '32' => array("-224px","-32px"),
678
 
 
 
679
  '48' => array("-336px","-48px"),
680
 
 
 
681
  '64' => array("-448px","-64px")
682
 
 
 
683
  )
684
 
 
 
685
  ),
 
686
  'Google Bookmarks' => Array (
687
 
 
 
688
  'favicon' => 'google.png',
689
 
 
 
690
  'url' => 'http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=PERMALINK&amp;title=TITLE&amp;annotation=EXCERPT',
691
 
 
 
692
  'description' => 'Google Bookmarks',
693
 
 
 
694
  'spriteCoordinates' => Array(
695
 
 
 
696
  '16' => array("-96px","0px"),
697
 
 
 
698
  '32' => array("-192px","0px"),
699
 
 
 
700
  '48' => array("-288px","0px"),
701
 
 
 
702
  '64' => array("-384px","0px")
703
 
 
 
704
  )
705
 
 
 
706
  ),
 
707
 
 
708
  'Google +' => Array (
 
709
 
 
710
  'counter' =>1,
711
 
 
 
712
  'favicon' => 'google.png',
713
 
 
 
714
  /* 'url' => '<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
 
715
  <g:plusone annotation="bubble" size="medium"></g:plusone>',*/
 
716
  'url' => '<g:plusone annotation="bubble" href="PERMALINKCOUNT" size="medium"></g:plusone>',
 
717
  /*
 
718
  <script type="text/javascript">
 
719
  window.___gcfg = {
 
720
  lang: \'en-US\'
 
721
  };
722
 
 
 
723
  (function() {
 
724
  var po = document.createElement(\'script\'); po.type = \'text/javascript\'; po.async = true;
 
725
  po.src = \'https://apis.google.com/js/plusone.js\';
 
726
  var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(po, s);
 
727
  })();
 
728
  </script>
 
729
  ',*/
730
 
 
 
731
  'description' => 'Google Bookmarks',
732
 
 
 
733
  'spriteCoordinates' => Array(
734
 
 
 
735
  '16' => array("-96px","0px"),
736
 
 
 
737
  '32' => array("-192px","0px"),
738
 
 
 
739
  '48' => array("-288px","0px"),
740
 
 
 
741
  '64' => array("-384px","0px")
742
 
 
 
743
  )
744
 
 
 
745
  ),
 
746
 
 
747
  'HackerNews' => Array(
748
 
 
 
749
  'favicon' => 'hacker_news.png',
750
 
 
 
751
  'url' => 'http://news.ycombinator.com/submitlink?u=PERMALINK&amp;t=TITLE',
752
 
 
 
753
  'spriteCoordinates' => Array(
754
 
 
 
755
  '16' => array("-128px","0px"),
756
 
 
 
757
  '32' => array("-256px","0px"),
758
 
 
 
759
  '48' => array("-384px","0px"),
760
 
 
 
761
  '64' => array("-512px","0px")
762
 
 
 
763
  )
764
 
 
 
765
  ),
 
766
  'MSNReporter' => Array(
767
 
 
 
768
  'favicon' => 'msn.png',
769
 
 
 
770
  'url' => 'http://reporter.es.msn.com/?fn=contribute&amp;Title=TITLE&amp;URL=PERMALINK&amp;cat_id=6&amp;tag_id=31&amp;Remark=EXCERPT',
771
 
 
 
772
  'description' => 'MSN Reporter',
773
 
 
 
774
  'spriteCoordinates' => Array(
775
 
 
 
776
  '16' => array("-176px","0px"),
777
 
 
 
778
  '32' => array("-352px","0px"),
779
 
 
 
780
  '48' => array("-528px","0px"),
781
 
 
 
782
  '64' => array("-704px","0px")
783
 
 
 
784
  )
785
 
 
 
786
  ),
787
 
 
 
788
 
 
789
  'BlinkList' => Array(
 
790
  'favicon' => 'blinklist.png',
 
791
  'url' => 'http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=PERMALINK&amp;Title=TITLE',
 
792
  'spriteCoordinates' => Array(
793
 
 
 
794
  '16' => array("0px","0px"),
795
 
 
 
796
  '32' => array("0px","0px"),
797
 
 
 
798
  '48' => array("0px","0px"),
799
 
 
 
800
  '64' => array("0px","0px")
801
 
 
 
802
  ),
 
803
  'supportsIframe' => false,
 
804
  ),
 
805
  'Sphinn' => Array(
 
806
  'favicon' => 'sphinn.png',
 
807
  'url' => 'http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=PERMALINK',
 
808
  'spriteCoordinates' => Array(
809
 
 
 
810
  '16' => array("-96px","-16px"),
811
 
 
 
812
  '32' => array("-192px","-32px"),
813
 
 
 
814
  '48' => array("-288px","-48px"),
815
 
 
 
816
  '64' => array("-384px","-64px")
817
 
 
 
818
  )
 
819
  ),
 
820
 
 
821
  'Posterous' => Array(
 
822
  'favicon' => 'posterous.png',
 
823
  'url' => 'http://posterous.com/share?linkto=PERMALINK&amp;title=TITLE&amp;selection=EXCERPT',
 
824
  'spriteCoordinates' => Array(
825
 
 
 
826
  '16' => array("-32px","-16px"),
827
 
 
 
828
  '32' => array("-64px","-32px"),
829
 
 
 
830
  '48' => array("-96px","-48px"),
831
 
 
 
832
  '64' => array("-128px","-64px")
833
 
 
 
834
  )
 
835
  ),
 
836
  'Tumblr' => Array(
 
837
  'favicon' => 'tumblr.png',
 
838
  'url' => 'http://www.tumblr.com/share?v=3&amp;u=PERMALINK&amp;t=TITLE&amp;s=EXCERPT',
 
839
  'spriteCoordinates' => Array(
840
 
 
 
841
  '16' => array("-128px","-16px"),
842
 
 
 
843
  '32' => array("-256px","-32px"),
844
 
 
 
845
  '48' => array("-384px","-48px"),
846
 
 
 
847
  '64' => array("-512px","-64px")
848
 
 
 
849
  ),
 
850
  'supportsIframe' => false
 
851
  ),
 
852
  'email' => Array(
 
853
  'favicon' => 'gmail.png',
 
854
  'url' => 'https://mail.google.com/mail/?view=cm&fs=1&to&su=TITLE&body=PERMALINK&ui=2&tf=1&shva=1',
 
855
  'spriteCoordinates' => Array(
856
 
 
 
857
  '16' => array("-80px","0px"),
858
 
 
 
859
  '32' => array("-160px","0px"),
860
 
 
 
861
  '48' => array("-240px","0px"),
862
 
 
 
863
  '64' => array("-320px","0px")
864
 
 
 
865
  ),
 
866
  'supportsIframe' => false
 
867
  ),
 
868
 
 
869
  'Google Reader' => array (
 
870
  'favicon' => 'googlebuzz.png',
 
871
  'url' => 'http://www.google.com/reader/link?url=PERMALINK&amp;title=TITLE&amp;srcURL=PERMALINK&amp;srcTitle=BLOGNAME',
 
872
  'spriteCoordinates' => Array(
873
 
 
 
874
  '16' => array("-112px","0px"),
875
 
 
 
876
  '32' => array("-224px","0px"),
877
 
 
 
878
  '48' => array("-336px","0px"),
879
 
 
 
880
  '64' => array("-448px","0px")
881
 
 
 
882
  )
 
883
  ),
 
884
  'Add to favorites' => array(
 
885
  'favicon' => 'favorites.png',
 
886
  'url' => 'javascript:AddToFavorites();',
 
887
  'spriteCoordinates' => Array(
888
 
 
 
889
  '16' => array("-64px","0px"),
890
 
 
 
891
  '32' => array("-128px","0px"),
892
 
 
 
893
  '48' => array("-192px","0px"),
894
 
 
 
895
  '64' => array("-256px","0px")
896
 
 
 
897
  )
 
898
  ),
 
899
  'More' => array(
 
900
  'favicon' => 'more.png',
 
901
  'url' => 'javascript:more();',
 
902
  'spriteCoordinates' => Array(
903
 
 
 
904
  '16' => array("0px","0px"),
905
 
 
 
906
  '32' => array("0px","0px"),
907
 
 
 
908
  '48' => array("0px","0px"),
909
 
910
- '64' => array("0px","0px")
911
 
912
- )
913
- ),
914
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
915
 
916
 
917
 
918
-
919
 
920
 
921
- //Update will create if it doesn't exist.
922
 
 
923
 
924
- update_option( 'sociable_known_sites' , $sociable_known_sites );
925
 
926
 
927
- update_option( 'sociable_options' , $sociable_options );
928
 
929
 
930
- update_option( 'sociable_helpus',1);
931
 
932
 
933
- }
934
 
935
 
936
 
 
937
 
938
 
939
- /*
940
 
941
 
942
- * De-Activate Function
943
 
 
944
 
945
- */
946
 
947
 
948
- function sociable_deactivate(){
949
 
950
 
951
  // global $wpdb;
952
 
953
 
 
 
 
954
  // //Delete The Metadata
955
 
956
 
 
 
 
957
  // $wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key = '_sociableoff'");
958
 
959
 
 
 
 
960
  // //delete The Options
961
 
962
 
 
 
 
963
  // return delete_option( 'sociable_options' );
964
 
965
 
 
 
 
966
  }
967
 
968
 
969
 
970
 
971
 
 
 
 
 
 
 
972
  /*
973
 
974
 
 
 
 
975
  * Function To Completely Remove The Options
976
 
977
 
 
 
 
978
  */
979
 
980
 
 
 
 
981
  function sociable_2_remove(){
982
 
983
 
 
 
 
984
  require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
985
 
986
 
 
 
 
987
 
988
 
989
 
 
 
 
990
  global $wpdb;
991
 
992
 
 
 
 
993
  //Delete The Metadata
994
 
995
 
 
 
 
996
  $wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key = '_sociableoff'");
997
 
998
 
 
 
 
999
  //delete The Options
1000
 
1001
 
 
 
 
1002
  delete_option( 'sociable_options' );
1003
 
1004
 
 
 
 
1005
 
1006
 
1007
 
 
 
 
1008
  deactivate_plugins( array( 'sociable-2/sociable-2.php' ) );
1009
 
1010
 
 
 
 
1011
  wp_redirect( '/wp-admin/plugins.php?deactivate=true' );
1012
 
1013
 
 
 
 
1014
  }
1015
 
1016
 
1017
 
1018
 
1019
 
 
 
 
 
 
 
1020
  /*
1021
 
1022
 
 
 
 
1023
  * Generic Plugin Wide Functions
1024
 
1025
 
 
 
 
1026
  */
1027
 
1028
 
1029
 
 
 
 
 
1030
  function _get_sociable_image_path(){
1031
 
 
 
1032
  global $sociable_options;
1033
 
 
 
1034
 
1035
 
 
 
1036
  if( empty( $sociable_options['custom_icons'] )){
 
1037
  if ($sociable_options['icon_option'] !="option6"){
 
1038
  $path = trailingslashit( SOCIABLE_HTTP_PATH . 'images/'.$sociable_options['icon_option']."/" . $sociable_options['icon_size'] );
 
1039
  }else{
 
1040
 
 
1041
  $path = trailingslashit( SOCIABLE_HTTP_PATH . 'images/original/');
 
1042
  }
1043
 
 
 
1044
  } else {
1045
 
 
 
1046
  $path = trailingslashit( SOCIABLE_HTTP_PATH . 'images/customIcons/');
1047
 
 
 
1048
  }
 
1049
 
 
1050
 
1051
 
 
 
1052
  return $path;
1053
 
 
 
1054
  }
1055
 
1056
 
@@ -1058,136 +1967,273 @@ function _get_sociable_image_path(){
1058
 
1059
 
1060
 
 
 
 
 
 
 
 
1061
  function _get_sociable_image( $site, $description ){
 
1062
  global $sociable_options;
1063
 
 
 
1064
  $imageclass = '';
1065
 
1066
 
 
 
 
1067
  $imagestyle = '';
1068
 
1069
 
 
 
 
1070
  $imagepath = _get_sociable_image_path();
1071
 
1072
 
 
 
 
1073
  //Get The Source Of The Image
1074
 
1075
 
 
 
 
1076
  if ( ! isset( $site['spriteCoordinates'] ) || ! isset( $sociable_options['use_sprites'] ) || is_feed() ) {
1077
 
1078
 
1079
 
1080
 
1081
 
 
 
 
 
 
 
1082
  if ( strpos( $site['favicon'], 'http' ) === 0 ) {
1083
 
1084
 
 
 
 
1085
  $imagesource = $site['favicon'];
1086
 
1087
 
 
 
 
1088
  } else {
1089
 
1090
 
 
 
 
1091
  $imagesource = $imagepath.$site['favicon'];
1092
 
1093
 
 
 
 
1094
  }
1095
 
1096
 
1097
 
1098
 
1099
 
 
 
 
 
 
 
1100
  } else {
1101
 
1102
 
1103
 
1104
 
1105
 
 
 
 
 
 
 
1106
  $imagesource = $imagepath . "services-sprite.gif";
1107
 
1108
 
 
 
 
1109
  $services_sprite_url = $imagepath . "sprite.png";
1110
 
1111
 
1112
 
1113
 
1114
 
 
 
 
 
 
 
1115
  $spriteCoords = $site['spriteCoordinates'];
1116
 
1117
 
 
 
 
1118
 
1119
 
1120
 
 
 
 
1121
  $size = $sociable_options['icon_size'];
1122
 
1123
 
1124
 
1125
 
1126
 
 
 
 
 
 
 
1127
  $imagestyle = 'width: ' . $size . 'px; height: ' . $size . 'px; background: transparent url(' . $services_sprite_url . ') no-repeat; background-position:' . $spriteCoords[$size] . 'px 0';
1128
 
1129
 
1130
 
1131
 
1132
 
 
 
 
 
 
 
1133
  }
1134
 
1135
 
1136
 
 
 
 
 
1137
 
1138
 
 
 
1139
  if( isset( $sociable_options['use_alphamask'] ) ){
1140
 
1141
 
 
 
 
1142
  $imageclass .= 'sociable-hovers';
1143
 
1144
 
 
 
 
1145
  }
1146
 
1147
 
1148
 
1149
 
1150
 
 
 
 
 
 
 
1151
  //If A Class Has Been Specified, Ensure It Is Added To The Class Attribute.
1152
 
1153
 
 
 
 
1154
  if ( isset( $site['class'] ) ) {
1155
 
1156
 
 
 
 
1157
  $imageclass .= 'sociable_' . $site['class'];
1158
 
1159
 
 
 
 
1160
  }
1161
 
1162
 
1163
 
1164
 
1165
 
 
 
 
 
 
 
1166
  if( $imagestyle != '' ){
1167
 
1168
 
 
 
 
1169
  $imagestyle = 'style="' . $imagestyle . '"';
1170
 
1171
 
 
 
 
1172
  }
1173
 
1174
 
1175
 
 
 
 
 
1176
  if ($sociable_options['icon_option'] !="option6"){
1177
 
 
 
1178
  $image = '<img src="' . $imagesource . '" title="' . $description . '" alt="' . $description . '"' . $imagestyle . ' />' ;
 
1179
  }else{
 
1180
  $image = '<img class="' . $imageclass . '" src="' . $imagesource . '" title="' . $description . '" alt="' . $description . '"' . $imagestyle . ' />' ;
 
1181
  }
1182
 
1183
 
 
 
 
1184
 
1185
 
1186
 
 
 
 
1187
  return $image;
1188
 
1189
 
 
 
 
1190
  }
1191
 
1192
 
 
1193
  ?>
1
  <?php
2
 
3
 
 
4
 
5
 
 
6
 
7
 
 
8
 
9
+ /*
10
 
 
11
 
12
 
 
13
 
14
 
15
+ Plugin Name: Sociable
16
 
17
 
 
18
 
19
 
20
 
21
+ Plugin URI: http://blogplay.com/plugin
22
 
23
 
 
24
 
25
 
 
26
 
27
+ Description: Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
28
 
 
29
 
30
 
31
 
32
 
33
+ Version: 4.1.6
34
 
35
 
 
36
 
37
 
 
38
 
39
+ Author: Blogplay
40
 
 
41
 
42
 
 
43
 
44
 
45
+ Author URI: http://blogplay.com/
46
 
47
 
48
 
 
49
 
50
 
 
51
 
52
 
 
53
 
54
 
 
55
 
56
 
57
+ Copyright 2006 Peter Harkins (ph@malaprop.org)
58
 
59
 
60
 
 
61
 
62
 
63
+ Copyright 2008-2009 Joost de Valk (joost@yoast.com)
64
 
65
 
 
66
 
67
 
68
 
69
+ Copyright 2009-Present Blogplay.com (info@blogplay.com)
70
 
71
 
72
 
73
 
74
 
 
75
 
76
 
77
 
78
 
79
 
 
80
 
81
 
 
82
 
83
+ This program is free software; you can redistribute it and/or modify
84
 
 
85
 
86
 
 
87
 
88
 
89
+ it under the terms of the GNU General Public License as published by
90
 
91
 
92
 
93
 
94
 
95
+ the Free Software Foundation; either version 2 of the License, or
96
 
97
 
 
98
 
99
 
 
100
 
101
+ (at your option) any later version.
102
 
 
103
 
104
 
 
105
 
106
 
 
107
 
108
 
109
 
110
 
111
 
 
112
 
113
+ This program is distributed in the hope that it will be useful,
114
 
 
115
 
116
 
 
117
 
118
 
119
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
120
 
121
 
 
122
 
123
 
 
124
 
125
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
126
 
 
127
 
128
 
 
129
 
130
 
131
+ GNU General Public License for more details.
132
 
133
 
134
 
 
135
 
136
 
 
137
 
138
 
 
139
 
140
 
 
141
 
142
 
143
+ You should have received a copy of the GNU General Public License
 
 
 
144
 
 
145
 
146
 
 
147
 
148
 
149
+ along with this program; if not, write to the Free Software
150
 
151
 
 
152
 
153
 
 
154
 
155
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
156
 
 
157
 
158
 
 
159
 
160
 
 
161
 
 
162
 
 
 
 
163
 
164
 
 
165
 
166
 
 
167
 
168
 
 
 
169
 
 
170
 
171
 
 
172
 
173
+ */
174
 
 
 
175
 
176
 
 
177
 
178
 
 
179
 
180
 
 
181
 
182
 
 
183
 
184
 
185
+ /*
186
 
187
 
 
188
 
189
 
 
190
 
191
+ * Define Some Paths
192
 
 
193
 
194
 
 
195
 
196
 
197
+ */
198
 
199
 
200
 
 
201
 
202
 
 
203
 
204
+ define( 'SOCIABLE_HTTP_PATH' , WP_PLUGIN_URL . '/' . str_replace(basename( __FILE__) , "" , plugin_basename(__FILE__) ) );
205
 
 
206
 
207
 
 
208
 
209
 
210
+ define( 'SOCIABLE_ABSPATH' , WP_PLUGIN_DIR . '/' . str_replace(basename( __FILE__) , "" , plugin_basename(__FILE__) ) );
211
 
212
 
 
213
 
214
 
 
215
 
216
 
217
 
218
 
219
 
 
220
 
221
 
222
+ /*
223
 
224
 
225
 
226
 
227
 
228
+ * Includes
229
 
230
 
 
231
 
232
 
233
 
234
+ */
235
 
236
 
 
237
 
238
 
 
239
 
240
+ include 'includes/class-sociable_Admin_Options.php';
241
 
 
242
 
243
+ include("includes/skyscraper_output.php");
244
 
 
245
 
246
+ include 'includes/class-Sociable_Globals.php';
247
 
 
248
 
249
 
 
250
 
251
 
252
+ include 'includes/sociable_output.php';
253
+
254
 
255
 
 
256
 
257
 
 
258
 
259
 
 
260
 
261
 
262
 
264
  /*
265
 
266
 
 
267
 
268
 
 
269
 
270
+ * Global Variables
271
 
 
272
 
273
 
 
274
 
275
 
276
+ */
277
 
278
 
 
279
 
280
 
 
281
 
282
+ //$sociable_known_sites = Sociable_Globals::default_sites();
283
 
 
284
 
285
 
 
 
286
 
 
287
 
288
+ $sociable_options = get_option( 'sociable_options' );
289
 
290
+ $skyscraper_options = get_option( 'skyscraper_options' );
291
 
292
+ $skyscraper_latest = get_option( 'skyscraper_latest' );
293
 
294
+ $skyscraper_mentions = get_option( 'skyscraper_mentions' );
295
+ //print_r($sociable_options);
296
 
 
297
 
 
298
 
 
 
 
299
 
 
300
 
301
+ //$sociable_post_types = array(); //Set This blank here, won't work before init
302
 
 
303
 
 
304
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
305
 
 
 
 
306
 
307
+ //$sociable_taxonomies = array(); //Same Here
308
 
309
 
 
310
 
311
 
 
 
 
312
 
 
313
 
 
314
 
 
315
 
 
316
 
 
317
 
 
318
 
319
+ /*
320
 
 
 
 
 
 
 
321
 
 
 
 
322
 
 
323
 
 
324
 
325
+ * General Init Function
326
 
 
327
 
 
 
328
 
 
329
 
 
330
 
331
+ */
332
 
 
333
 
 
334
 
 
335
 
 
336
 
337
+ function sociable_init(){
338
 
339
+ wp_enqueue_script('jquery');
340
+ wp_enqueue_script( 'oplugin' , SOCIABLE_HTTP_PATH . 'js/async_call.js' );
341
+ wp_enqueue_script( 'async_call' , SOCIABLE_HTTP_PATH . 'js/oPlugin.js' );
342
+ wp_enqueue_style("skyscraper_style_shape",SOCIABLE_HTTP_PATH."/css/shape.css");
343
+ wp_enqueue_style("skyscraper_style_toolbar", SOCIABLE_HTTP_PATH."/css/toolbar.css");
344
+ global $sociable_post_types, $sociable_taxonomies, $sociable_options, $skyscraper_options;
345
 
346
+ if (!isset($sociable_options['icon_size']) || $sociable_options['icon_size'] == "" || !isset($sociable_options['version'])) sociable_reset();
347
 
348
+
349
+ if ( $skyscraper_options['version'] != "1.0" ){
350
+ skyscraper_reset();
351
+ }
352
 
353
+ //echo dirname( plugin_basename( __FILE__ ) )."/includes"
354
 
355
+ load_plugin_textdomain( 'sociable', false, dirname( plugin_basename( __FILE__ ) )."/languages" );
356
 
357
+ $active_sites = ( isset( $sociable_options['active_sites'] ) ) ? $sociable_options['active_sites'] : array() ;
358
 
359
+ //Set The Post Types
360
+ $sociable_post_types = Sociable_Globals::sociable_get_post_types();
361
 
362
+ //Set The Custom Taxonomies
363
+ $sociable_taxonomies = Sociable_Globals::sociable_get_taxonomies();
364
 
365
+ wp_enqueue_script( 'sociable' , SOCIABLE_HTTP_PATH . 'js/sociable.js' );
366
 
367
+ wp_enqueue_script( 'addtofavourites' , SOCIABLE_HTTP_PATH . 'js/addtofavorites.js' );
368
 
369
+ if( ! is_admin() ){
370
+ //Load Up The Front Of Site CSS And JS
371
 
372
+ if( array_key_exists( 'Add to favorites' , $active_sites ) ){
373
 
374
+ // wp_enqueue_script( 'addtofavourites' , SOCIABLE_HTTP_PATH . 'js/addtofavorites.js' );
375
+ }
 
376
 
377
+ if( isset( $sociable_options['use_stylesheet'] ) ){
378
+ wp_enqueue_style( 'sociablecss' , SOCIABLE_HTTP_PATH . 'css/sociable.css' );
379
+ }
380
+ }
381
 
382
+ }
383
 
 
384
 
 
385
 
 
386
 
 
387
 
 
388
 
389
+
390
+
391
+
392
+
393
+
394
+ /*
395
+
396
+
397
+
398
+
399
+
400
+ * Hooks And Filters
401
+
402
+
403
+
404
+
405
+
406
+ */
407
+
408
+
409
+
410
+
411
+
412
+ add_action( 'admin_init' , array( 'sociable_Admin_Options' , 'init' ) );
413
+
414
+
415
+
416
+
417
+ add_action( 'admin_menu' , array( 'sociable_Admin_Options' , 'add_menu_pages' ) );
418
+
419
+
420
+
421
+
422
+
423
+ add_action( 'save_post' , array( 'sociable_Admin_Options' , 'save_post' ) );
424
+
425
+
426
+
427
+
428
+
429
+ add_action( 'init' , 'sociable_init' );
430
+
431
+
432
+
433
+
434
+
435
+
436
+
437
+
438
+
439
+
440
+ add_filter( 'the_content', 'auto_sociable' );
441
+
442
+ //add_filter( 'get_pages', 'auto_skyscraper' );
443
+
444
+ //add_filter( 'the_excerpt', 'auto_skyscraper' );
445
+
446
+ add_filter( 'the_excerpt', 'auto_sociable' );
447
+
448
+
449
+
450
+
451
+
452
+
453
+
454
+
455
+
456
+ register_activation_hook(__FILE__, 'sociable_activate' );
457
+
458
+
459
+
460
+
461
+
462
+
463
+ register_deactivation_hook( __FILE__, 'sociable_deactivate' );
464
+
465
+
466
+
467
+
468
+
469
+
470
+
471
+ /*
472
+
473
+
474
+
475
+
476
+
477
+ * Activation Function
478
+
479
+
480
+
481
+
482
+
483
+ */
484
+
485
+
486
+
487
+
488
+
489
+ function sociable_activate(){
490
+
491
+
492
+
493
+
494
+
495
+
496
+
497
+
498
+
499
+
500
+
501
+ if( ! get_option( 'sociable_options' ) ){
502
+
503
+
504
+
505
+
506
+
507
+ return sociable_reset();
508
+
509
+
510
+
511
+
512
+
513
+ }
514
+
515
+
516
+
517
+
518
+
519
+
520
+
521
+
522
+
523
+
524
+
525
+ }
526
+
527
+
528
+
529
+
530
+
531
+
532
+
533
+
534
+
535
+ /*
536
+
537
+
538
+
539
+
540
+
541
+ * Reset Function
542
+
543
+
544
+
545
+
546
+
547
+ */
548
+
549
+
550
+
551
+
552
+
553
+ function sociable_reset(){
554
+
555
+
556
+ global $wpdb;
557
+
558
+
559
+ //reset all data to factory defaults, install if is there.
560
+
561
+ //Delete All Metadata From The Database ?
562
+
563
+ $wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key = '_sociableoff'");
564
+
565
+
566
+ $sociable_options = array(
567
+
568
+ 'version' =>'4.1.6',
569
+
570
+
571
+
572
+ 'automatic_mode' => 'on',
573
+
574
+
575
+
576
+ 'tagline' => 'Be Sociable, Share!',
577
+
578
+
579
+
580
+ 'custom_image_directory' => '',
581
+
582
+
583
+
584
+ 'use_stylesheet' => 'on',
585
+
586
+
587
+
588
+ 'use_images' => 'on',
589
+
590
+
591
+ 'use_alphamask' => 'on',
592
+ 'new_window' => 'on',
593
+
594
+
595
+
596
+ 'help_grow' => 'on',
597
+
598
+
599
+
600
+ 'locations' => array(
601
+
602
+
603
+
604
+ 'is_single' => 'on',
605
+
606
+
607
+
608
+ 'is_page' => 'on'
609
+
610
+
611
+
612
+ ),
613
+
614
+
615
+
616
+ 'active_sites' => array(
617
+
618
+ 'Twitter' => 'on',
619
+
620
+ 'Facebook' => 'on',
621
+
622
+ 'email'=>'on',
623
+
624
+ 'Add to favorites'=>'on',
625
+
626
+ 'StumbleUpon' =>'on',
627
+
628
+ 'Delicious' =>'on',
629
+
630
+ 'Google Reader' =>'on',
631
+
632
+ 'LinkedIn' => 'on',
633
+
634
+ 'BlinkList' =>'on',
635
+
636
+ 'More' => 'on',
637
+
638
+ 'Twitter Counter' =>'on',
639
+
640
+ 'Facebook Counter' =>'on',
641
+
642
+ 'Google +' =>'on',
643
+
644
+ 'LinkedIn Counter' =>'on',
645
+
646
+ 'StumbleUpon Counter' =>'on'
647
+
648
+
649
+
650
+
651
+
652
+ ),
653
+
654
+
655
+
656
+ 'icon_size' => '32',
657
+
658
+ 'icon_option' => 'option1',
659
+
660
+ "active" => 1
661
+
662
+
663
+
664
+ );
665
+
666
+
667
+
668
+
669
+
670
+ $sociable_known_sites = array(
671
+
672
+
673
+
674
+ 'Facebook' => array(
675
+
676
+
677
+
678
+ 'favicon' => 'facebook.png',
679
+
680
+
681
+
682
+ 'url' => 'http://www.facebook.com/share.php?u=PERMALINK&amp;t=TITLE',
683
+
684
+
685
+
686
+ 'spriteCoordinates' => Array(
687
+
688
+
689
+
690
+ '16' => array("-48px","0px"),
691
+
692
+
693
+
694
+ '32' => array("-96px","0px"),
695
+
696
+
697
+
698
+ '48' => array("-144px","0px"),
699
+
700
+
701
+
702
+ '64' => array("-192px","0px")
703
+
704
+
705
+
706
+ )
707
+
708
+ ),
709
+
710
+
711
+
712
+ 'Facebook Counter' => array(
713
+
714
+ 'counter' =>1,
715
+
716
+ 'favicon' => 'likecounter.png',
717
+
718
+
719
+
720
+ 'url' => '<iframe src="//www.facebook.com/plugins/like.php?href=PERMALINKCOUNT&send=false&layout=button_count&show_faces=false&action=like&colorscheme=light&font" scrolling="no" frameborder="0" style="border:none; overflow:hidden;height:32px;width:100px" allowTransparency="true"></iframe>',
721
+
722
+
723
+
724
+ 'spriteCoordinates' => Array(
725
+
726
+
727
+
728
+ '16' => array("-48px","0px"),
729
+
730
+
731
+
732
+ '32' => array("-96px","0px"),
733
+
734
+
735
+
736
+ '48' => array("-144px","0px"),
737
+
738
+
739
+
740
+ '64' => array("-192px","0px")
741
+
742
+
743
+
744
+ )
745
+
746
+ ),
747
+
748
+
749
+
750
+ 'Myspace' => array(
751
+
752
+
753
+
754
+ 'favicon' => 'myspace.png',
755
+
756
+
757
+
758
+ 'url' => 'http://www.myspace.com/Modules/PostTo/Pages/?u=PERMALINK&amp;t=TITLE',
759
+
760
+
761
+
762
+ 'spriteCoordinates' => Array(
763
+
764
+
765
+
766
+ '16' => array("0px","-16px"),
767
+
768
+
769
+
770
+ '32' => array("0px","-32px"),
771
+
772
+
773
+
774
+ '48' => array("0px","-48px"),
775
+
776
+
777
+
778
+ '64' => array("0px","-64px")
779
+
780
+
781
+
782
+ )
783
+
784
+
785
+
786
+ ),
787
+
788
+
789
+
790
+ 'Twitter' => array(
791
+
792
+
793
+
794
+ 'favicon' => 'twitter.png',
795
+
796
+
797
+
798
+ 'url' => 'http://twitter.com/intent/tweet?text=TITLE%20-%20PERMALINK%20(via%20@sociablesite)',
799
+
800
+
801
+
802
+ 'spriteCoordinates' => Array(
803
+
804
+
805
+
806
+ '16' => array("-144px","-16px"),
807
+
808
+
809
+
810
+ '32' => array("-288px","-32px"),
811
+
812
+
813
+
814
+ '48' => array("-432px","-48px"),
815
+
816
+
817
+
818
+ '64' => array("-576px","-64px")
819
+
820
+
821
+
822
+ )
823
+
824
+
825
+
826
+ ),
827
+
828
+
829
+
830
+ 'Twitter Counter' => array(
831
+
832
+ 'counter' =>1,
833
+
834
+ 'favicon' => 'twitter.png',
835
+
836
+
837
+
838
+ 'url' => '<a href="https://twitter.com/share" data-text="TITLECOUNT - PERMALINKCOUNT (via #sociablesite)" data-url="PERMALINKCOUNT" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>',
839
+
840
+
841
+
842
+ 'spriteCoordinates' => Array(
843
+
844
+
845
+
846
+ '16' => array("-144px","-16px"),
847
+
848
+
849
+
850
+ '32' => array("-288px","-32px"),
851
+
852
+
853
+
854
+ '48' => array("-432px","-48px"),
855
+
856
+
857
+
858
+ '64' => array("-576px","-64px")
859
+
860
+
861
+
862
+ )
863
+
864
+
865
+
866
+ ),
867
+
868
 
869
+
870
 
871
+
872
 
873
+
874
  'LinkedIn' => array(
875
 
876
+
877
+
878
  'favicon' => 'linkedin.png',
879
 
880
+
881
+
882
  'url' => 'http://www.linkedin.com/shareArticle?mini=true&amp;url=PERMALINK&amp;title=TITLE&amp;source=BLOGNAME&amp;summary=EXCERPT',
883
 
884
+
885
+
886
  'spriteCoordinates' => Array(
887
 
888
+
889
+
890
  '16' => array("-144px","0px"),
891
 
892
+
893
+
894
  '32' => array("-288px","0px"),
895
 
896
+
897
+
898
  '48' => array("-432px","0px"),
899
 
900
+
901
+
902
  '64' => array("-576px","0px")
903
 
904
+
905
+
906
  )
907
 
908
+
909
+
910
 
911
 
912
+
913
+
914
  ),
915
+
916
 
917
+
918
  'LinkedIn Counter' => array(
919
+
920
  'counter'=>1,
921
 
922
+
923
+
924
  'favicon' => 'linkedin.png',
925
 
926
+
927
+
928
  'url' => '<script src="http://platform.linkedin.com/in.js" type="text/javascript"></script><script type="IN/Share" data-url="PERMALINKCOUNT" data-counter="right"></script>',
929
 
930
+
931
+
932
  'spriteCoordinates' => Array(
933
 
934
+
935
+
936
  '16' => array("-144px","0px"),
937
 
938
+
939
+
940
  '32' => array("-288px","0px"),
941
 
942
+
943
+
944
  '48' => array("-432px","0px"),
945
 
946
+
947
+
948
  '64' => array("-576px","0px")
949
 
950
+
951
+
952
  )
953
 
954
+
955
+
956
 
957
 
958
+
959
+
960
  ),
961
 
962
+
963
+
964
 
965
 
966
+
967
+
968
  'Delicious' => array(
969
 
970
+
971
+
972
  'favicon' => 'delicious.png',
973
 
974
+
975
+
976
  'url' => 'http://delicious.com/post?url=PERMALINK&amp;title=TITLE&amp;notes=EXCERPT',
977
 
978
+
979
+
980
  'spriteCoordinates' => Array(
981
 
982
+
983
+
984
  '16' => array("-16px","0px"),
985
 
986
+
987
+
988
  '32' => array("-32px","0px"),
989
 
990
+
991
+
992
  '48' => array("-48px","0px"),
993
 
994
+
995
+
996
  '64' => array("-64px","0px")
997
 
998
+
999
+
1000
  )
1001
 
1002
+
1003
+
1004
  ),
1005
 
1006
+
1007
+
1008
  'Digg' => array(
1009
 
1010
+
1011
+
1012
  'favicon' => 'digg.png',
1013
 
1014
+
1015
+
1016
  'url' => 'http://digg.com/submit?phase=2&amp;url=PERMALINK&amp;title=TITLE&amp;bodytext=EXCERPT',
1017
 
1018
+
1019
+
1020
  'spriteCoordinates' => Array(
1021
 
1022
+
1023
+
1024
  '16' => array("-32px","0px"),
1025
 
1026
+
1027
+
1028
  '32' => array("-64px","0px"),
1029
 
1030
+
1031
+
1032
  '48' => array("-96px","0px"),
1033
 
1034
+
1035
+
1036
  '64' => array("-128px","0px")
1037
 
1038
+
1039
+
1040
  )
1041
 
1042
+
1043
+
1044
  ),
1045
 
1046
+
1047
+
1048
  'Digg Counter' => array(
1049
+
1050
  'counter' =>1,
1051
+
1052
  'favicon' => 'digg.png',
1053
 
1054
+
1055
+
1056
  'url' => "<script type='text/javascript'>(function() {var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];s.type = 'text/javascript';s.async = true;s.src = 'http://widgets.digg.com/buttons.js';s1.parentNode.insertBefore(s, s1);})();</script><a href='http://digg.com/submit?url=PERMALINK&amp;title=TITLE' class='DiggThisButton DiggCompact'></a>",
1057
 
1058
+
1059
+
1060
  'spriteCoordinates' => Array(
1061
 
1062
+
1063
+
1064
  '16' => array("-32px","0px"),
1065
 
1066
+
1067
+
1068
  '32' => array("-64px","0px"),
1069
 
1070
+
1071
+
1072
  '48' => array("-96px","0px"),
1073
 
1074
+
1075
+
1076
  '64' => array("-128px","0px")
1077
 
1078
+
1079
+
1080
  )
1081
 
1082
+
1083
+
1084
  ),
1085
 
1086
+
1087
+
1088
 
1089
+
1090
 
1091
+
1092
 
1093
+
1094
 
1095
+
1096
  'Reddit' => array(
1097
 
1098
+
1099
+
1100
  'favicon' => 'reddit.png',
1101
 
1102
+
1103
+
1104
  'url' => 'http://reddit.com/submit?url=PERMALINK&amp;title=TITLE',
1105
 
1106
+
1107
+
1108
  'spriteCoordinates' => Array(
1109
 
1110
+
1111
+
1112
  '16' => array("-64px","-16px"),
1113
 
1114
+
1115
+
1116
  '32' => array("-128px","-32px"),
1117
 
1118
+
1119
+
1120
  '48' => array("-192px","-48px"),
1121
 
1122
+
1123
+
1124
  '64' => array("-256px","-64px")
1125
 
1126
+
1127
+
1128
  )
1129
 
1130
+
1131
+
1132
  ),
1133
 
1134
+
1135
+
1136
 
1137
 
1138
+
1139
+
1140
  'StumbleUpon' => array(
1141
 
1142
+
1143
+
1144
  'favicon' => 'stumbleupon.png',
1145
 
1146
+
1147
+
1148
  'url' => 'http://www.stumbleupon.com/submit?url=PERMALINK&title=TITLE',
1149
 
1150
+
1151
+
1152
  'spriteCoordinates' => Array(
1153
 
1154
+
1155
+
1156
  '16' => array("-112px","-16px"),
1157
 
1158
+
1159
+
1160
  '32' => array("-224px","-32px"),
1161
 
1162
+
1163
+
1164
  '48' => array("-336px","-48px"),
1165
 
1166
+
1167
+
1168
  '64' => array("-448px","-64px")
1169
 
1170
+
1171
+
1172
  )),
1173
+
1174
 
1175
+
1176
  'StumbleUpon Counter' => array(
1177
+
1178
  'counter' =>1,
1179
+
1180
  'favicon' => 'stumbleupon.png',
1181
 
1182
+
1183
+
1184
  'url' => '<script src="http://www.stumbleupon.com/hostedbadge.php?s=2&r=PERMALINKCOUNT"></script>',
1185
 
1186
+
1187
+
1188
  'spriteCoordinates' => Array(
1189
 
1190
+
1191
+
1192
+ '16' => array("-112px","-16px"),
1193
+
1194
+
1195
 
1196
  '32' => array("-224px","-32px"),
1197
 
1198
+
1199
+
1200
  '48' => array("-336px","-48px"),
1201
 
1202
+
1203
+
1204
  '64' => array("-448px","-64px")
1205
 
1206
+
1207
+
1208
  )
1209
 
1210
+
1211
+
1212
  ),
1213
+
1214
  'Google Bookmarks' => Array (
1215
 
1216
+
1217
+
1218
  'favicon' => 'google.png',
1219
 
1220
+
1221
+
1222
  'url' => 'http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=PERMALINK&amp;title=TITLE&amp;annotation=EXCERPT',
1223
 
1224
+
1225
+
1226
  'description' => 'Google Bookmarks',
1227
 
1228
+
1229
+
1230
  'spriteCoordinates' => Array(
1231
 
1232
+
1233
+
1234
  '16' => array("-96px","0px"),
1235
 
1236
+
1237
+
1238
  '32' => array("-192px","0px"),
1239
 
1240
+
1241
+
1242
  '48' => array("-288px","0px"),
1243
 
1244
+
1245
+
1246
  '64' => array("-384px","0px")
1247
 
1248
+
1249
+
1250
  )
1251
 
1252
+
1253
+
1254
  ),
1255
+
1256
 
1257
+
1258
  'Google +' => Array (
1259
+
1260
 
1261
+
1262
  'counter' =>1,
1263
 
1264
+
1265
+
1266
  'favicon' => 'google.png',
1267
 
1268
+
1269
+
1270
  /* 'url' => '<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
1271
+
1272
  <g:plusone annotation="bubble" size="medium"></g:plusone>',*/
1273
+
1274
  'url' => '<g:plusone annotation="bubble" href="PERMALINKCOUNT" size="medium"></g:plusone>',
1275
+
1276
  /*
1277
+
1278
  <script type="text/javascript">
1279
+
1280
  window.___gcfg = {
1281
+
1282
  lang: \'en-US\'
1283
+
1284
  };
1285
 
1286
+
1287
+
1288
  (function() {
1289
+
1290
  var po = document.createElement(\'script\'); po.type = \'text/javascript\'; po.async = true;
1291
+
1292
  po.src = \'https://apis.google.com/js/plusone.js\';
1293
+
1294
  var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(po, s);
1295
+
1296
  })();
1297
+
1298
  </script>
1299
+
1300
  ',*/
1301
 
1302
+
1303
+
1304
  'description' => 'Google Bookmarks',
1305
 
1306
+
1307
+
1308
  'spriteCoordinates' => Array(
1309
 
1310
+
1311
+
1312
  '16' => array("-96px","0px"),
1313
 
1314
+
1315
+
1316
  '32' => array("-192px","0px"),
1317
 
1318
+
1319
+
1320
  '48' => array("-288px","0px"),
1321
 
1322
+
1323
+
1324
  '64' => array("-384px","0px")
1325
 
1326
+
1327
+
1328
  )
1329
 
1330
+
1331
+
1332
  ),
1333
+
1334
 
1335
+
1336
  'HackerNews' => Array(
1337
 
1338
+
1339
+
1340
  'favicon' => 'hacker_news.png',
1341
 
1342
+
1343
+
1344
  'url' => 'http://news.ycombinator.com/submitlink?u=PERMALINK&amp;t=TITLE',
1345
 
1346
+
1347
+
1348
  'spriteCoordinates' => Array(
1349
 
1350
+
1351
+
1352
  '16' => array("-128px","0px"),
1353
 
1354
+
1355
+
1356
  '32' => array("-256px","0px"),
1357
 
1358
+
1359
+
1360
  '48' => array("-384px","0px"),
1361
 
1362
+
1363
+
1364
  '64' => array("-512px","0px")
1365
 
1366
+
1367
+
1368
  )
1369
 
1370
+
1371
+
1372
  ),
1373
+
1374
  'MSNReporter' => Array(
1375
 
1376
+
1377
+
1378
  'favicon' => 'msn.png',
1379
 
1380
+
1381
+
1382
  'url' => 'http://reporter.es.msn.com/?fn=contribute&amp;Title=TITLE&amp;URL=PERMALINK&amp;cat_id=6&amp;tag_id=31&amp;Remark=EXCERPT',
1383
 
1384
+
1385
+
1386
  'description' => 'MSN Reporter',
1387
 
1388
+
1389
+
1390
  'spriteCoordinates' => Array(
1391
 
1392
+
1393
+
1394
  '16' => array("-176px","0px"),
1395
 
1396
+
1397
+
1398
  '32' => array("-352px","0px"),
1399
 
1400
+
1401
+
1402
  '48' => array("-528px","0px"),
1403
 
1404
+
1405
+
1406
  '64' => array("-704px","0px")
1407
 
1408
+
1409
+
1410
  )
1411
 
1412
+
1413
+
1414
  ),
1415
 
1416
+
1417
+
1418
 
1419
+
1420
  'BlinkList' => Array(
1421
+
1422
  'favicon' => 'blinklist.png',
1423
+
1424
  'url' => 'http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=PERMALINK&amp;Title=TITLE',
1425
+
1426
  'spriteCoordinates' => Array(
1427
 
1428
+
1429
+
1430
  '16' => array("0px","0px"),
1431
 
1432
+
1433
+
1434
  '32' => array("0px","0px"),
1435
 
1436
+
1437
+
1438
  '48' => array("0px","0px"),
1439
 
1440
+
1441
+
1442
  '64' => array("0px","0px")
1443
 
1444
+
1445
+
1446
  ),
1447
+
1448
  'supportsIframe' => false,
1449
+
1450
  ),
1451
+
1452
  'Sphinn' => Array(
1453
+
1454
  'favicon' => 'sphinn.png',
1455
+
1456
  'url' => 'http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=PERMALINK',
1457
+
1458
  'spriteCoordinates' => Array(
1459
 
1460
+
1461
+
1462
  '16' => array("-96px","-16px"),
1463
 
1464
+
1465
+
1466
  '32' => array("-192px","-32px"),
1467
 
1468
+
1469
+
1470
  '48' => array("-288px","-48px"),
1471
 
1472
+
1473
+
1474
  '64' => array("-384px","-64px")
1475
 
1476
+
1477
+
1478
  )
1479
+
1480
  ),
1481
+
1482
 
1483
+
1484
  'Posterous' => Array(
1485
+
1486
  'favicon' => 'posterous.png',
1487
+
1488
  'url' => 'http://posterous.com/share?linkto=PERMALINK&amp;title=TITLE&amp;selection=EXCERPT',
1489
+
1490
  'spriteCoordinates' => Array(
1491
 
1492
+
1493
+
1494
  '16' => array("-32px","-16px"),
1495
 
1496
+
1497
+
1498
  '32' => array("-64px","-32px"),
1499
 
1500
+
1501
+
1502
  '48' => array("-96px","-48px"),
1503
 
1504
+
1505
+
1506
  '64' => array("-128px","-64px")
1507
 
1508
+
1509
+
1510
  )
1511
+
1512
  ),
1513
+
1514
  'Tumblr' => Array(
1515
+
1516
  'favicon' => 'tumblr.png',
1517
+
1518
  'url' => 'http://www.tumblr.com/share?v=3&amp;u=PERMALINK&amp;t=TITLE&amp;s=EXCERPT',
1519
+
1520
  'spriteCoordinates' => Array(
1521
 
1522
+
1523
+
1524
  '16' => array("-128px","-16px"),
1525
 
1526
+
1527
+
1528
  '32' => array("-256px","-32px"),
1529
 
1530
+
1531
+
1532
  '48' => array("-384px","-48px"),
1533
 
1534
+
1535
+
1536
  '64' => array("-512px","-64px")
1537
 
1538
+
1539
+
1540
  ),
1541
+
1542
  'supportsIframe' => false
1543
+
1544
  ),
1545
+
1546
  'email' => Array(
1547
+
1548
  'favicon' => 'gmail.png',
1549
+
1550
  'url' => 'https://mail.google.com/mail/?view=cm&fs=1&to&su=TITLE&body=PERMALINK&ui=2&tf=1&shva=1',
1551
+
1552
  'spriteCoordinates' => Array(
1553
 
1554
+
1555
+
1556
  '16' => array("-80px","0px"),
1557
 
1558
+
1559
+
1560
  '32' => array("-160px","0px"),
1561
 
1562
+
1563
+
1564
  '48' => array("-240px","0px"),
1565
 
1566
+
1567
+
1568
  '64' => array("-320px","0px")
1569
 
1570
+
1571
+
1572
  ),
1573
+
1574
  'supportsIframe' => false
1575
+
1576
  ),
1577
+
1578
 
1579
+
1580
  'Google Reader' => array (
1581
+
1582
  'favicon' => 'googlebuzz.png',
1583
+
1584
  'url' => 'http://www.google.com/reader/link?url=PERMALINK&amp;title=TITLE&amp;srcURL=PERMALINK&amp;srcTitle=BLOGNAME',
1585
+
1586
  'spriteCoordinates' => Array(
1587
 
1588
+
1589
+
1590
  '16' => array("-112px","0px"),
1591
 
1592
+
1593
+
1594
  '32' => array("-224px","0px"),
1595
 
1596
+
1597
+
1598
  '48' => array("-336px","0px"),
1599
 
1600
+
1601
+
1602
  '64' => array("-448px","0px")
1603
 
1604
+
1605
+
1606
  )
1607
+
1608
  ),
1609
+
1610
  'Add to favorites' => array(
1611
+
1612
  'favicon' => 'favorites.png',
1613
+
1614
  'url' => 'javascript:AddToFavorites();',
1615
+
1616
  'spriteCoordinates' => Array(
1617
 
1618
+
1619
+
1620
  '16' => array("-64px","0px"),
1621
 
1622
+
1623
+
1624
  '32' => array("-128px","0px"),
1625
 
1626
+
1627
+
1628
  '48' => array("-192px","0px"),
1629
 
1630
+
1631
+
1632
  '64' => array("-256px","0px")
1633
 
1634
+
1635
+
1636
  )
1637
+
1638
  ),
1639
+
1640
  'More' => array(
1641
+
1642
  'favicon' => 'more.png',
1643
+
1644
  'url' => 'javascript:more();',
1645
+
1646
  'spriteCoordinates' => Array(
1647
 
1648
+
1649
+
1650
  '16' => array("0px","0px"),
1651
 
1652
+
1653
+
1654
  '32' => array("0px","0px"),
1655
 
1656
+
1657
+
1658
  '48' => array("0px","0px"),
1659
 
 
1660
 
1661
+
1662
+ '64' => array("0px","0px")
1663
+
1664
+
1665
+
1666
+ )
1667
+
1668
+ ),
1669
+
1670
+ );
1671
+
1672
+
1673
+ //Update will create if it doesn't exist.
1674
+
1675
+
1676
+ update_option( 'sociable_known_sites' , $sociable_known_sites );
1677
+ update_option( 'sociable_options' , $sociable_options );
1678
+ update_option( 'sociable_helpus' , 1);
1679
+ }
1680
+
1681
+ function skyscraper_reset(){
1682
+
1683
+ $skyscraper_options = array(
1684
+ "version" => "1.0",
1685
+ "widget_width" => "60px",
1686
+ "widget_position" => "1",
1687
+ "background_color" => "#fefefe",
1688
+ "labels_color" => "#f7f7f7",
1689
+ "text_size" => "10px",
1690
+ "counters" => array("check" => "0",
1691
+ "folded" => "0"),
1692
+ "share" => array("check" => "0",
1693
+ "folded" => "0"),
1694
+ "num_tweets" => 3,
1695
+ "num_rss" =>3,
1696
+ "locations" => array("is_front_page" => 1,
1697
+ "is_home" => 1,
1698
+ "is_single" => 1,
1699
+ "is_page" => 1,
1700
+ "is_category" => 1,
1701
+ "is_date" => 1,
1702
+ "is_tag" => 1,
1703
+ "is_author" => 1,
1704
+ "is_search" => 1,
1705
+ "is_rss" => 1 ),
1706
+
1707
+ "counters" => array("check" => 1,
1708
+ "folded" => 1),
1709
+ "share" => array("check" => 1,
1710
+ "folded" => 1),
1711
+ "active" => 1
1712
+
1713
+ );
1714
+
1715
+ update_option( 'skyscraper_options' , $skyscraper_options );
1716
+
1717
+
1718
+ $skyscraper_latest = array();
1719
+ update_option("skyscraper_latest",$skyscraper_latest );
1720
+
1721
+ $skyscraper_mentions = array();
1722
+ update_option("skyscraper_mentions",$skyscraper_mentions );
1723
+ }
1724
+
1725
+
1726
+
1727
 
1728
 
1729
 
 
1730
 
1731
 
 
1732
 
1733
+ /*
1734
 
 
1735
 
1736
 
 
1737
 
1738
 
1739
+ * De-Activate Function
1740
 
1741
 
 
1742
 
1743
 
1744
 
1745
+ */
1746
 
1747
 
 
1748
 
1749
 
 
1750
 
1751
+ function sociable_deactivate(){
1752
 
 
1753
 
1754
 
 
1755
 
1756
 
1757
  // global $wpdb;
1758
 
1759
 
1760
+
1761
+
1762
+
1763
  // //Delete The Metadata
1764
 
1765
 
1766
+
1767
+
1768
+
1769
  // $wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key = '_sociableoff'");
1770
 
1771
 
1772
+
1773
+
1774
+
1775
  // //delete The Options
1776
 
1777
 
1778
+
1779
+
1780
+
1781
  // return delete_option( 'sociable_options' );
1782
 
1783
 
1784
+
1785
+
1786
+
1787
  }
1788
 
1789
 
1790
 
1791
 
1792
 
1793
+
1794
+
1795
+
1796
+
1797
+
1798
+
1799
  /*
1800
 
1801
 
1802
+
1803
+
1804
+
1805
  * Function To Completely Remove The Options
1806
 
1807
 
1808
+
1809
+
1810
+
1811
  */
1812
 
1813
 
1814
+
1815
+
1816
+
1817
  function sociable_2_remove(){
1818
 
1819
 
1820
+
1821
+
1822
+
1823
  require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
1824
 
1825
 
1826
+
1827
+
1828
+
1829
 
1830
 
1831
 
1832
+
1833
+
1834
+
1835
  global $wpdb;
1836
 
1837
 
1838
+
1839
+
1840
+
1841
  //Delete The Metadata
1842
 
1843
 
1844
+
1845
+
1846
+
1847
  $wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key = '_sociableoff'");
1848
 
1849
 
1850
+
1851
+
1852
+
1853
  //delete The Options
1854
 
1855
 
1856
+
1857
+
1858
+
1859
  delete_option( 'sociable_options' );
1860
 
1861
 
1862
+
1863
+
1864
+
1865
 
1866
 
1867
 
1868
+
1869
+
1870
+
1871
  deactivate_plugins( array( 'sociable-2/sociable-2.php' ) );
1872
 
1873
 
1874
+
1875
+
1876
+
1877
  wp_redirect( '/wp-admin/plugins.php?deactivate=true' );
1878
 
1879
 
1880
+
1881
+
1882
+
1883
  }
1884
 
1885
 
1886
 
1887
 
1888
 
1889
+
1890
+
1891
+
1892
+
1893
+
1894
+
1895
  /*
1896
 
1897
 
1898
+
1899
+
1900
+
1901
  * Generic Plugin Wide Functions
1902
 
1903
 
1904
+
1905
+
1906
+
1907
  */
1908
 
1909
 
1910
 
1911
+
1912
+
1913
+
1914
+
1915
  function _get_sociable_image_path(){
1916
 
1917
+
1918
+
1919
  global $sociable_options;
1920
 
1921
+
1922
+
1923
 
1924
 
1925
+
1926
+
1927
  if( empty( $sociable_options['custom_icons'] )){
1928
+
1929
  if ($sociable_options['icon_option'] !="option6"){
1930
+
1931
  $path = trailingslashit( SOCIABLE_HTTP_PATH . 'images/'.$sociable_options['icon_option']."/" . $sociable_options['icon_size'] );
1932
+
1933
  }else{
1934
+
1935
 
1936
+
1937
  $path = trailingslashit( SOCIABLE_HTTP_PATH . 'images/original/');
1938
+
1939
  }
1940
 
1941
+
1942
+
1943
  } else {
1944
 
1945
+
1946
+
1947
  $path = trailingslashit( SOCIABLE_HTTP_PATH . 'images/customIcons/');
1948
 
1949
+
1950
+
1951
  }
1952
+
1953
 
1954
+
1955
 
1956
 
1957
+
1958
+
1959
  return $path;
1960
 
1961
+
1962
+
1963
  }
1964
 
1965
 
1967
 
1968
 
1969
 
1970
+
1971
+
1972
+
1973
+
1974
+
1975
+
1976
+
1977
  function _get_sociable_image( $site, $description ){
1978
+
1979
  global $sociable_options;
1980
 
1981
+
1982
+
1983
  $imageclass = '';
1984
 
1985
 
1986
+
1987
+
1988
+
1989
  $imagestyle = '';
1990
 
1991
 
1992
+
1993
+
1994
+
1995
  $imagepath = _get_sociable_image_path();
1996
 
1997
 
1998
+
1999
+
2000
+
2001
  //Get The Source Of The Image
2002
 
2003
 
2004
+
2005
+
2006
+
2007
  if ( ! isset( $site['spriteCoordinates'] ) || ! isset( $sociable_options['use_sprites'] ) || is_feed() ) {
2008
 
2009
 
2010
 
2011
 
2012
 
2013
+
2014
+
2015
+
2016
+
2017
+
2018
+
2019
  if ( strpos( $site['favicon'], 'http' ) === 0 ) {
2020
 
2021
 
2022
+
2023
+
2024
+
2025
  $imagesource = $site['favicon'];
2026
 
2027
 
2028
+
2029
+
2030
+
2031
  } else {
2032
 
2033
 
2034
+
2035
+
2036
+
2037
  $imagesource = $imagepath.$site['favicon'];
2038
 
2039
 
2040
+
2041
+
2042
+
2043
  }
2044
 
2045
 
2046
 
2047
 
2048
 
2049
+
2050
+
2051
+
2052
+
2053
+
2054
+
2055
  } else {
2056
 
2057
 
2058
 
2059
 
2060
 
2061
+
2062
+
2063
+
2064
+
2065
+
2066
+
2067
  $imagesource = $imagepath . "services-sprite.gif";
2068
 
2069
 
2070
+
2071
+
2072
+
2073
  $services_sprite_url = $imagepath . "sprite.png";
2074
 
2075
 
2076
 
2077
 
2078
 
2079
+
2080
+
2081
+
2082
+
2083
+
2084
+
2085
  $spriteCoords = $site['spriteCoordinates'];
2086
 
2087
 
2088
+
2089
+
2090
+
2091
 
2092
 
2093
 
2094
+
2095
+
2096
+
2097
  $size = $sociable_options['icon_size'];
2098
 
2099
 
2100
 
2101
 
2102
 
2103
+
2104
+
2105
+
2106
+
2107
+
2108
+
2109
  $imagestyle = 'width: ' . $size . 'px; height: ' . $size . 'px; background: transparent url(' . $services_sprite_url . ') no-repeat; background-position:' . $spriteCoords[$size] . 'px 0';
2110
 
2111
 
2112
 
2113
 
2114
 
2115
+
2116
+
2117
+
2118
+
2119
+
2120
+
2121
  }
2122
 
2123
 
2124
 
2125
+
2126
+
2127
+
2128
+
2129
 
2130
 
2131
+
2132
+
2133
  if( isset( $sociable_options['use_alphamask'] ) ){
2134
 
2135
 
2136
+
2137
+
2138
+
2139
  $imageclass .= 'sociable-hovers';
2140
 
2141
 
2142
+
2143
+
2144
+
2145
  }
2146
 
2147
 
2148
 
2149
 
2150
 
2151
+
2152
+
2153
+
2154
+
2155
+
2156
+
2157
  //If A Class Has Been Specified, Ensure It Is Added To The Class Attribute.
2158
 
2159
 
2160
+
2161
+
2162
+
2163
  if ( isset( $site['class'] ) ) {
2164
 
2165
 
2166
+
2167
+
2168
+
2169
  $imageclass .= 'sociable_' . $site['class'];
2170
 
2171
 
2172
+
2173
+
2174
+
2175
  }
2176
 
2177
 
2178
 
2179
 
2180
 
2181
+
2182
+
2183
+
2184
+
2185
+
2186
+
2187
  if( $imagestyle != '' ){
2188
 
2189
 
2190
+
2191
+
2192
+
2193
  $imagestyle = 'style="' . $imagestyle . '"';
2194
 
2195
 
2196
+
2197
+
2198
+
2199
  }
2200
 
2201
 
2202
 
2203
+
2204
+
2205
+
2206
+
2207
  if ($sociable_options['icon_option'] !="option6"){
2208
 
2209
+
2210
+
2211
  $image = '<img src="' . $imagesource . '" title="' . $description . '" alt="' . $description . '"' . $imagestyle . ' />' ;
2212
+
2213
  }else{
2214
+
2215
  $image = '<img class="' . $imageclass . '" src="' . $imagesource . '" title="' . $description . '" alt="' . $description . '"' . $imagestyle . ' />' ;
2216
+
2217
  }
2218
 
2219
 
2220
+
2221
+
2222
+
2223
 
2224
 
2225
 
2226
+
2227
+
2228
+
2229
  return $image;
2230
 
2231
 
2232
+
2233
+
2234
+
2235
  }
2236
 
2237
 
2238
+
2239
  ?>