Version Description
- Privacy options
Download this release
Release Info
Developer | sociable |
Plugin | Sociable |
Version | 4.2.4 |
Comparing to | |
See all releases |
Code changes from version 4.2.3 to 4.2.4
- includes/class-sociable_Admin_Options.php +488 -31
- includes/skyscraper_output.php +229 -54
- readme.txt +6 -2
- sociable.php +1957 -551
includes/class-sociable_Admin_Options.php
CHANGED
@@ -1,8 +1,23 @@
|
|
1 |
<?php
|
2 |
|
3 |
|
|
|
4 |
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
* Administration Options Class For Sociable 2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
*/
|
7 |
|
8 |
|
@@ -11,21 +26,74 @@ class sociable_Admin_Options{
|
|
11 |
|
12 |
|
13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
/**
|
15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
* A Function To Hook To Admin Init.
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
*/
|
19 |
|
20 |
|
21 |
|
|
|
|
|
|
|
|
|
22 |
function init(){
|
23 |
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
register_setting( 'sociable_options_group' , 'sociable_options' );
|
26 |
|
27 |
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
//Add The Settings Sections
|
30 |
|
31 |
|
@@ -38,21 +106,102 @@ class sociable_Admin_Options{
|
|
38 |
|
39 |
|
40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
// add_settings_section( 'sociable_options', __( 'General Options' ), array( 'sociable_Admin_Options' , 'general_options_callback' ) , 'sociable_options' );
|
42 |
|
43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
register_setting( 'skyscraper_options_group' , 'skyscraper_options' );
|
46 |
|
47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
// add_settings_section( 'sociable_locations', __( 'Locations' ), array( 'sociable_Admin_Options' , 'location_options_callback' ) , 'skyscraper_options' );
|
49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
}
|
51 |
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
function skyscraper_init(){
|
54 |
|
55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
register_setting( 'skyscraper_options_group' , 'skyscraper_options' );
|
57 |
|
58 |
|
@@ -61,56 +210,242 @@ class sociable_Admin_Options{
|
|
61 |
|
62 |
|
63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
//Add All The Settings Fields
|
65 |
|
66 |
|
|
|
|
|
|
|
|
|
|
|
67 |
//self::add_settings_fields();
|
68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
}
|
70 |
|
71 |
|
72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
function Select_Sociable_Page(){
|
74 |
|
75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
global $sociable_options;
|
77 |
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
?>
|
79 |
|
80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
<div class="wrap" style="margin-top:25px">
|
82 |
|
83 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
<div style="width: 80%; margin-left: 25px; color: rgb(147, 147, 147); font-weight: bold; font-size: 15px;">
|
85 |
|
86 |
|
|
|
|
|
|
|
|
|
|
|
87 |
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 />
|
88 |
|
89 |
|
|
|
|
|
|
|
|
|
|
|
90 |
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 />
|
91 |
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
</div>
|
93 |
|
94 |
|
95 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
<div class="wrap" style="width:42%;float:left">
|
97 |
|
98 |
|
|
|
|
|
|
|
|
|
|
|
99 |
<?php //wp_nonce_field('sociable-config'); ?>
|
100 |
|
101 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
<TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px">
|
103 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
<TR>
|
105 |
|
106 |
|
|
|
|
|
|
|
|
|
|
|
107 |
<TD class="Border-Left" ></TD><TD class="BG-Middle" >Skyscraper Sociable</TD><TD class="Border-Right"></TD>
|
108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
</TR>
|
110 |
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
<TR>
|
112 |
|
113 |
|
|
|
|
|
|
|
|
|
|
|
114 |
<TD colspan="3" >
|
115 |
|
116 |
|
@@ -783,28 +1118,12 @@ share your posts, don't you? :) Get it now!
|
|
783 |
|
784 |
|
785 |
|
786 |
-
|
787 |
-
|
788 |
-
|
789 |
-
|
790 |
-
|
791 |
-
|
792 |
-
|
793 |
-
|
794 |
-
|
795 |
-
|
796 |
-
|
797 |
-
|
798 |
function Create_Options_Page_Skycraper(){
|
799 |
|
800 |
-
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
global $skyscraper_options;
|
805 |
|
806 |
|
807 |
-
|
808 |
?>
|
809 |
|
810 |
|
@@ -831,7 +1150,7 @@ share your posts, don't you? :) Get it now!
|
|
831 |
|
832 |
|
833 |
|
834 |
-
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://blogplay.com" data-text="Check the sociable plugin [
|
835 |
|
836 |
|
837 |
|
@@ -1210,16 +1529,31 @@ share your posts, don't you? :) Get it now!
|
|
1210 |
|
1211 |
|
1212 |
</DIV>
|
1213 |
-
|
1214 |
-
|
1215 |
-
|
1216 |
-
|
1217 |
-
|
1218 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1219 |
|
1220 |
<BR/>
|
1221 |
-
|
1222 |
-
|
1223 |
|
1224 |
|
1225 |
|
@@ -1348,7 +1682,26 @@ share your posts, don't you? :) Get it now!
|
|
1348 |
</DIV>
|
1349 |
|
1350 |
|
1351 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1352 |
|
1353 |
|
1354 |
|
@@ -1563,8 +1916,12 @@ share your posts, don't you? :) Get it now!
|
|
1563 |
|
1564 |
</DIV>
|
1565 |
|
1566 |
-
|
1567 |
-
|
|
|
|
|
|
|
|
|
1568 |
|
1569 |
|
1570 |
|
@@ -6065,27 +6422,71 @@ share your posts, don't you? :) Get it now!
|
|
6065 |
|
6066 |
|
6067 |
|
|
|
|
|
|
|
|
|
6068 |
global $sociable_options;
|
6069 |
|
6070 |
|
6071 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6072 |
?>
|
6073 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6074 |
<div class="wrap">
|
6075 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6076 |
<DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >
|
6077 |
|
6078 |
|
6079 |
|
6080 |
|
6081 |
-
|
6082 |
|
6083 |
|
6084 |
<iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblogplay.com%2F&send=false&layout=standard&width=450&show_faces=true&action=recommend&colorscheme=light&font&height=80&appId=133479460071366" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:40px;" allowTransparency="true"></iframe><br />
|
6085 |
|
6086 |
|
6087 |
|
6088 |
-
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://blogplay.com" data-text="Check the sociable plugin [
|
6089 |
|
6090 |
|
6091 |
|
@@ -9007,8 +9408,18 @@ share your posts, don't you? :) Get it now!
|
|
9007 |
|
9008 |
|
9009 |
|
|
|
|
|
|
|
|
|
9010 |
<span style="margin:30px;"><?php _e("Save Changes","sociable");?></span>
|
9011 |
|
|
|
|
|
|
|
|
|
|
|
|
|
9012 |
</DIV>
|
9013 |
|
9014 |
|
@@ -9091,9 +9502,55 @@ share your posts, don't you? :) Get it now!
|
|
9091 |
|
9092 |
<br>
|
9093 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9094 |
<?php //do_settings_sections( 'sociable_options' ); ?>
|
9095 |
|
9096 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9097 |
|
9098 |
<form id="sociable_reset_form" action="" method="POST">
|
9099 |
|
1 |
<?php
|
2 |
|
3 |
|
4 |
+
|
5 |
/*
|
6 |
+
|
7 |
+
|
8 |
+
|
9 |
+
|
10 |
+
|
11 |
+
|
12 |
+
|
13 |
* Administration Options Class For Sociable 2
|
14 |
+
|
15 |
+
|
16 |
+
|
17 |
+
|
18 |
+
|
19 |
+
|
20 |
+
|
21 |
*/
|
22 |
|
23 |
|
26 |
|
27 |
|
28 |
|
29 |
+
|
30 |
+
|
31 |
+
|
32 |
+
|
33 |
+
|
34 |
+
|
35 |
+
|
36 |
+
|
37 |
+
|
38 |
+
|
39 |
+
|
40 |
+
|
41 |
/**
|
42 |
|
43 |
+
|
44 |
+
|
45 |
+
|
46 |
+
|
47 |
+
|
48 |
+
|
49 |
* A Function To Hook To Admin Init.
|
50 |
|
51 |
+
|
52 |
+
|
53 |
+
|
54 |
+
|
55 |
+
|
56 |
+
|
57 |
*/
|
58 |
|
59 |
|
60 |
|
61 |
+
|
62 |
+
|
63 |
+
|
64 |
+
|
65 |
function init(){
|
66 |
|
67 |
|
68 |
+
|
69 |
+
|
70 |
+
|
71 |
+
|
72 |
+
|
73 |
+
|
74 |
+
|
75 |
+
|
76 |
+
|
77 |
+
|
78 |
+
|
79 |
+
|
80 |
+
|
81 |
register_setting( 'sociable_options_group' , 'sociable_options' );
|
82 |
|
83 |
|
84 |
|
85 |
+
|
86 |
+
|
87 |
+
|
88 |
+
|
89 |
+
|
90 |
+
|
91 |
+
|
92 |
+
|
93 |
+
|
94 |
+
|
95 |
+
|
96 |
+
|
97 |
//Add The Settings Sections
|
98 |
|
99 |
|
106 |
|
107 |
|
108 |
|
109 |
+
|
110 |
+
|
111 |
+
|
112 |
+
|
113 |
+
|
114 |
+
|
115 |
+
|
116 |
+
|
117 |
+
|
118 |
+
|
119 |
+
|
120 |
+
|
121 |
// add_settings_section( 'sociable_options', __( 'General Options' ), array( 'sociable_Admin_Options' , 'general_options_callback' ) , 'sociable_options' );
|
122 |
|
123 |
|
124 |
+
|
125 |
+
|
126 |
+
|
127 |
+
|
128 |
+
|
129 |
+
|
130 |
+
|
131 |
+
|
132 |
+
|
133 |
+
|
134 |
+
|
135 |
+
|
136 |
+
|
137 |
+
|
138 |
+
|
139 |
+
|
140 |
+
|
141 |
+
|
142 |
+
|
143 |
+
|
144 |
|
145 |
register_setting( 'skyscraper_options_group' , 'skyscraper_options' );
|
146 |
|
147 |
|
148 |
+
|
149 |
+
|
150 |
+
|
151 |
+
|
152 |
+
|
153 |
+
|
154 |
+
|
155 |
+
|
156 |
+
|
157 |
+
|
158 |
+
|
159 |
+
|
160 |
+
|
161 |
// add_settings_section( 'sociable_locations', __( 'Locations' ), array( 'sociable_Admin_Options' , 'location_options_callback' ) , 'skyscraper_options' );
|
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 |
+
|
192 |
+
|
193 |
function skyscraper_init(){
|
194 |
|
195 |
|
196 |
+
|
197 |
+
|
198 |
+
|
199 |
+
|
200 |
+
|
201 |
+
|
202 |
+
|
203 |
+
|
204 |
+
|
205 |
register_setting( 'skyscraper_options_group' , 'skyscraper_options' );
|
206 |
|
207 |
|
210 |
|
211 |
|
212 |
|
213 |
+
|
214 |
+
|
215 |
+
|
216 |
+
|
217 |
+
|
218 |
+
|
219 |
+
|
220 |
+
|
221 |
+
|
222 |
+
|
223 |
+
|
224 |
+
|
225 |
//Add All The Settings Fields
|
226 |
|
227 |
|
228 |
+
|
229 |
+
|
230 |
+
|
231 |
+
|
232 |
+
|
233 |
//self::add_settings_fields();
|
234 |
|
235 |
+
|
236 |
+
|
237 |
+
|
238 |
+
|
239 |
+
|
240 |
+
|
241 |
}
|
242 |
|
243 |
|
244 |
|
245 |
+
|
246 |
+
|
247 |
+
|
248 |
+
|
249 |
+
|
250 |
+
|
251 |
+
|
252 |
+
|
253 |
+
|
254 |
+
|
255 |
+
|
256 |
+
|
257 |
function Select_Sociable_Page(){
|
258 |
|
259 |
|
260 |
+
|
261 |
+
|
262 |
+
|
263 |
+
|
264 |
+
|
265 |
+
|
266 |
+
|
267 |
+
|
268 |
+
|
269 |
+
|
270 |
+
|
271 |
+
|
272 |
+
|
273 |
global $sociable_options;
|
274 |
|
275 |
+
|
276 |
+
|
277 |
+
|
278 |
+
|
279 |
+
|
280 |
+
|
281 |
?>
|
282 |
|
283 |
|
284 |
+
|
285 |
+
|
286 |
+
|
287 |
+
|
288 |
+
|
289 |
+
|
290 |
+
|
291 |
+
|
292 |
+
|
293 |
+
|
294 |
+
|
295 |
+
|
296 |
+
|
297 |
+
|
298 |
+
|
299 |
+
|
300 |
+
|
301 |
+
|
302 |
+
|
303 |
+
|
304 |
+
|
305 |
+
|
306 |
+
|
307 |
+
|
308 |
+
|
309 |
+
|
310 |
+
|
311 |
+
|
312 |
+
|
313 |
<div class="wrap" style="margin-top:25px">
|
314 |
|
315 |
|
316 |
+
|
317 |
+
|
318 |
+
|
319 |
+
|
320 |
+
|
321 |
+
|
322 |
+
|
323 |
+
|
324 |
+
|
325 |
+
|
326 |
+
|
327 |
+
|
328 |
+
|
329 |
<div style="width: 80%; margin-left: 25px; color: rgb(147, 147, 147); font-weight: bold; font-size: 15px;">
|
330 |
|
331 |
|
332 |
+
|
333 |
+
|
334 |
+
|
335 |
+
|
336 |
+
|
337 |
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 />
|
338 |
|
339 |
|
340 |
+
|
341 |
+
|
342 |
+
|
343 |
+
|
344 |
+
|
345 |
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 />
|
346 |
|
347 |
+
|
348 |
+
|
349 |
+
|
350 |
+
|
351 |
+
|
352 |
+
|
353 |
</div>
|
354 |
|
355 |
|
356 |
|
357 |
+
|
358 |
+
|
359 |
+
|
360 |
+
|
361 |
+
|
362 |
+
|
363 |
+
|
364 |
+
|
365 |
+
|
366 |
+
|
367 |
+
|
368 |
+
|
369 |
<div class="wrap" style="width:42%;float:left">
|
370 |
|
371 |
|
372 |
+
|
373 |
+
|
374 |
+
|
375 |
+
|
376 |
+
|
377 |
<?php //wp_nonce_field('sociable-config'); ?>
|
378 |
|
379 |
|
380 |
+
|
381 |
+
|
382 |
+
|
383 |
+
|
384 |
+
|
385 |
+
|
386 |
+
|
387 |
+
|
388 |
+
|
389 |
+
|
390 |
+
|
391 |
+
|
392 |
+
|
393 |
<TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px">
|
394 |
|
395 |
+
|
396 |
+
|
397 |
+
|
398 |
+
|
399 |
+
|
400 |
+
|
401 |
+
|
402 |
+
|
403 |
+
|
404 |
+
|
405 |
+
|
406 |
+
|
407 |
+
|
408 |
+
|
409 |
+
|
410 |
+
|
411 |
+
|
412 |
+
|
413 |
+
|
414 |
+
|
415 |
+
|
416 |
+
|
417 |
<TR>
|
418 |
|
419 |
|
420 |
+
|
421 |
+
|
422 |
+
|
423 |
+
|
424 |
+
|
425 |
<TD class="Border-Left" ></TD><TD class="BG-Middle" >Skyscraper Sociable</TD><TD class="Border-Right"></TD>
|
426 |
|
427 |
+
|
428 |
+
|
429 |
+
|
430 |
+
|
431 |
+
|
432 |
+
|
433 |
</TR>
|
434 |
|
435 |
+
|
436 |
+
|
437 |
+
|
438 |
+
|
439 |
+
|
440 |
+
|
441 |
<TR>
|
442 |
|
443 |
|
444 |
+
|
445 |
+
|
446 |
+
|
447 |
+
|
448 |
+
|
449 |
<TD colspan="3" >
|
450 |
|
451 |
|
1118 |
|
1119 |
|
1120 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1121 |
function Create_Options_Page_Skycraper(){
|
1122 |
|
1123 |
+
|
|
|
|
|
|
|
1124 |
global $skyscraper_options;
|
1125 |
|
1126 |
|
|
|
1127 |
?>
|
1128 |
|
1129 |
|
1150 |
|
1151 |
|
1152 |
|
1153 |
+
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://blogplay.com" data-text="Check the sociable plugin [sociable]" data-via="sociablesite" data-hashtags="sociable">Tweet</a>
|
1154 |
|
1155 |
|
1156 |
|
1529 |
|
1530 |
|
1531 |
</DIV>
|
1532 |
+
|
1533 |
+
<DIV style="border: 1px solid rgb(223, 223, 223); margin-left: 22px; font-size: 10px; font-style: italic; width: 327px; padding: 0px 11px;">
|
1534 |
+
<p>This feature will read your latest tweets and mentions posted by other users and show them on skyscraper sociable.
|
1535 |
+
<p>Sociable will save and use your twitter username only to read tweets. </p>
|
1536 |
+
|
1537 |
+
<p>Your visitors can read the information that you are sharing.</p>
|
1538 |
+
<p>If you agree check here:
|
1539 |
+
|
1540 |
+
<?php
|
1541 |
+
|
1542 |
+
$sel = "";
|
1543 |
+
if (isset($skyscraper_options["accept_read_twitter"])){
|
1544 |
+
|
1545 |
+
if ($skyscraper_options["accept_read_twitter"] == 1){
|
1546 |
+
|
1547 |
+
$sel = "checked";
|
1548 |
+
}
|
1549 |
+
}
|
1550 |
+
?>
|
1551 |
+
<input type="checkbox" <?php echo $sel?> name="skyscraper_options[accept_read_twitter]" value="1"/>
|
1552 |
+
</p>
|
1553 |
+
</DIV>
|
1554 |
|
1555 |
<BR/>
|
1556 |
+
<BR/>
|
|
|
1557 |
|
1558 |
|
1559 |
|
1682 |
</DIV>
|
1683 |
|
1684 |
|
1685 |
+
<DIV style="border: 1px solid rgb(223, 223, 223); margin-left: 22px; font-size: 10px; font-style: italic; width: 327px; padding: 0px 11px;">
|
1686 |
+
<p>This feature will read your rss posts and show them on skyscraper sociable. </p>
|
1687 |
+
<p>Sociable will save and use the rss url only to read posts.</p>
|
1688 |
+
<p>Your visitors can read the information that you are sharing.</p>
|
1689 |
+
<p>If you agree check here:
|
1690 |
+
|
1691 |
+
<?php
|
1692 |
+
|
1693 |
+
$sel = "";
|
1694 |
+
if (isset($skyscraper_options["accept_read_rss"])){
|
1695 |
+
|
1696 |
+
if ($skyscraper_options["accept_read_rss"] == 1){
|
1697 |
+
|
1698 |
+
$sel = "checked";
|
1699 |
+
}
|
1700 |
+
}
|
1701 |
+
?>
|
1702 |
+
|
1703 |
+
<input type="checkbox" <?php echo $sel?> name="skyscraper_options[accept_read_rss]" value="1"/> </p>
|
1704 |
+
</DIV>
|
1705 |
|
1706 |
|
1707 |
|
1916 |
|
1917 |
</DIV>
|
1918 |
|
1919 |
+
<BR/>
|
1920 |
+
<DIV style="border: 1px solid rgb(223, 223, 223); margin-left: 22px; font-size: 10px; font-style: italic; width: 327px; padding: 0px 11px;">
|
1921 |
+
<p>This feature load Facebook Counter, Twitter Counter and Google Plus Counter.</p>
|
1922 |
+
<p>Will load scripts from each site and show information of yours visitors.</p>
|
1923 |
+
</p>
|
1924 |
+
</DIV>
|
1925 |
|
1926 |
|
1927 |
|
6422 |
|
6423 |
|
6424 |
|
6425 |
+
|
6426 |
+
|
6427 |
+
|
6428 |
+
|
6429 |
global $sociable_options;
|
6430 |
|
6431 |
|
6432 |
|
6433 |
+
|
6434 |
+
|
6435 |
+
|
6436 |
+
|
6437 |
+
|
6438 |
+
|
6439 |
+
|
6440 |
+
|
6441 |
+
|
6442 |
+
|
6443 |
+
|
6444 |
+
|
6445 |
?>
|
6446 |
|
6447 |
+
|
6448 |
+
|
6449 |
+
|
6450 |
+
|
6451 |
+
|
6452 |
+
|
6453 |
+
|
6454 |
+
|
6455 |
+
|
6456 |
+
|
6457 |
+
|
6458 |
+
|
6459 |
+
|
6460 |
+
|
6461 |
<div class="wrap">
|
6462 |
|
6463 |
+
|
6464 |
+
|
6465 |
+
|
6466 |
+
|
6467 |
+
|
6468 |
+
|
6469 |
+
|
6470 |
+
|
6471 |
+
|
6472 |
+
|
6473 |
+
|
6474 |
+
|
6475 |
+
|
6476 |
+
|
6477 |
<DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >
|
6478 |
|
6479 |
|
6480 |
|
6481 |
|
6482 |
+
|
6483 |
|
6484 |
|
6485 |
<iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblogplay.com%2F&send=false&layout=standard&width=450&show_faces=true&action=recommend&colorscheme=light&font&height=80&appId=133479460071366" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:40px;" allowTransparency="true"></iframe><br />
|
6486 |
|
6487 |
|
6488 |
|
6489 |
+
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://blogplay.com" data-text="Check the sociable plugin [sociable]" data-via="sociablesite" data-hashtags="sociable">Tweet</a>
|
6490 |
|
6491 |
|
6492 |
|
9408 |
|
9409 |
|
9410 |
|
9411 |
+
|
9412 |
+
|
9413 |
+
|
9414 |
+
|
9415 |
<span style="margin:30px;"><?php _e("Save Changes","sociable");?></span>
|
9416 |
|
9417 |
+
|
9418 |
+
|
9419 |
+
|
9420 |
+
|
9421 |
+
|
9422 |
+
|
9423 |
</DIV>
|
9424 |
|
9425 |
|
9502 |
|
9503 |
<br>
|
9504 |
|
9505 |
+
|
9506 |
+
|
9507 |
+
|
9508 |
+
|
9509 |
+
|
9510 |
+
|
9511 |
+
|
9512 |
+
|
9513 |
+
|
9514 |
+
|
9515 |
+
|
9516 |
+
|
9517 |
+
|
9518 |
+
|
9519 |
+
|
9520 |
+
|
9521 |
+
|
9522 |
+
|
9523 |
+
|
9524 |
+
|
9525 |
+
|
9526 |
+
|
9527 |
+
|
9528 |
+
|
9529 |
+
|
9530 |
+
|
9531 |
<?php //do_settings_sections( 'sociable_options' ); ?>
|
9532 |
|
9533 |
|
9534 |
+
|
9535 |
+
|
9536 |
+
|
9537 |
+
|
9538 |
+
|
9539 |
+
|
9540 |
+
|
9541 |
+
|
9542 |
+
|
9543 |
+
|
9544 |
+
|
9545 |
+
|
9546 |
+
|
9547 |
+
|
9548 |
+
|
9549 |
+
|
9550 |
+
|
9551 |
+
|
9552 |
+
|
9553 |
+
|
9554 |
|
9555 |
<form id="sociable_reset_form" action="" method="POST">
|
9556 |
|
includes/skyscraper_output.php
CHANGED
@@ -1,12 +1,27 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
2 |
/*
|
|
|
|
|
|
|
3 |
* The Output And Shortcode Functions For sociable
|
|
|
|
|
|
|
4 |
*/
|
5 |
|
6 |
|
7 |
|
8 |
/*
|
|
|
|
|
|
|
9 |
* Returns The Skyscraper Output For The Global $post Object Do Not
|
|
|
|
|
|
|
10 |
*/
|
11 |
|
12 |
|
@@ -57,6 +72,14 @@ function skyscraper_html( $where = "" ){
|
|
57 |
|
58 |
|
59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
// echo "<script type='text/javascript'>";
|
61 |
|
62 |
|
@@ -164,74 +187,145 @@ function skyscraper_html( $where = "" ){
|
|
164 |
}
|
165 |
|
166 |
|
|
|
|
|
|
|
|
|
|
|
167 |
$url_site= $_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
|
168 |
|
169 |
|
|
|
|
|
|
|
|
|
|
|
170 |
$script = "
|
171 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
if (!document.getElementById('fb-root')){
|
173 |
|
|
|
|
|
174 |
var div = document.createElement('div');
|
175 |
|
|
|
|
|
176 |
div.id = 'fb-root';
|
177 |
|
|
|
|
|
178 |
document.body.appendChild(div);
|
179 |
|
|
|
|
|
180 |
}
|
181 |
|
182 |
|
|
|
183 |
(function(d, s, id) {
|
184 |
|
|
|
|
|
185 |
var js, fjs = d.getElementsByTagName(s)[0];
|
186 |
|
|
|
|
|
187 |
if (d.getElementById(id)) return;
|
188 |
|
|
|
|
|
189 |
js = d.createElement(s); js.id = id;
|
190 |
|
|
|
|
|
191 |
js.src = \"http://connect.facebook.net/en_US/all.js#xfbml=1\";
|
192 |
|
|
|
|
|
193 |
fjs.parentNode.insertBefore(js, fjs);
|
194 |
|
195 |
|
196 |
|
197 |
}(document, 'script', 'facebook-jssdk'));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
198 |
|
199 |
|
200 |
".$addWhere."
|
201 |
-
|
|
|
|
|
202 |
jQuery(document).ready(function(){
|
203 |
|
204 |
|
|
|
205 |
oPlugin.toolbarStart('skyscraper', ".$widget_position.",230,".$widget_width.",'".$background_color."','".$labels_color."',false,'#6A6A6A',".$text_size.",'#587cc8');
|
206 |
-
|
|
|
207 |
|
208 |
".get_share_node()."
|
209 |
|
|
|
|
|
210 |
".get_counters_node()."
|
211 |
|
|
|
|
|
212 |
".get_social_banner_node()."
|
213 |
|
|
|
|
|
214 |
".get_latest_node()."
|
215 |
|
|
|
|
|
216 |
".get_mentions_node()."
|
217 |
|
|
|
|
|
218 |
".get_follow_us_node()."
|
219 |
|
|
|
|
|
220 |
".get_rss_node()."
|
221 |
|
|
|
|
|
222 |
oPlugin.CreateGoToTop('New_Id_12','Top','<img src=\"".SOCIABLE_HTTP_PATH."images/toolbar/gototop.png\" style=\"width:30px;\" />');
|
223 |
|
224 |
|
225 |
|
226 |
oPlugin.CreateGoToHome('New_Id_13','Go Home','<img src=\"".SOCIABLE_HTTP_PATH."images/toolbar/gotohome.png\" style=\"width:30px;\" />');
|
227 |
|
228 |
-
|
229 |
-
|
230 |
-
|
|
|
|
|
|
|
231 |
";
|
232 |
|
|
|
|
|
233 |
echo $script;
|
|
|
234 |
}
|
|
|
|
|
|
|
235 |
}
|
236 |
|
237 |
|
@@ -302,7 +396,7 @@ function get_social_banner_node(){
|
|
302 |
|
303 |
counter += ' <li>';
|
304 |
|
305 |
-
counter += '<iframe scrolling=\"no\" frameborder=\"0\" allowtransparency=\"true\" src=\"
|
306 |
|
307 |
counter += ' </li>';
|
308 |
|
@@ -411,7 +505,17 @@ function get_rss_node(){
|
|
411 |
global $skyscraper_options;
|
412 |
|
413 |
|
|
|
414 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
415 |
|
416 |
|
417 |
|
@@ -656,7 +760,17 @@ function get_latest_node(){
|
|
656 |
|
657 |
|
658 |
|
|
|
|
|
|
|
659 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
660 |
|
661 |
|
662 |
|
@@ -733,23 +847,28 @@ function get_latest_node(){
|
|
733 |
|
734 |
|
735 |
function get_mentions_node(){
|
736 |
-
|
737 |
-
|
738 |
|
739 |
$mentions_node = "";
|
740 |
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
global $skyscraper_options;
|
748 |
|
|
|
|
|
|
|
749 |
|
750 |
-
|
751 |
-
|
752 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
753 |
|
754 |
|
755 |
if ( isset($skyscraper_options["twitter_username"])){
|
@@ -839,9 +958,6 @@ function get_counters_node(){
|
|
839 |
$counters_node = "";
|
840 |
|
841 |
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
if ((!empty($skyscraper_options["counters"]["check"]))){
|
846 |
|
847 |
|
@@ -869,9 +985,10 @@ function get_counters_node(){
|
|
869 |
|
870 |
|
871 |
counter +=' <li style=\"margin-left:0px\"><iframe width=\"100%\" scrolling=\"no\" frameborder=\"0\" title=\"+1\" vspace=\"0\" tabindex=\"-1\" style=\"position: static; left: 0pt; top: 0pt; width: 60px; margin: 0px; border-style: none; visibility: visible; height: 60px;\" src=\"https://plusone.google.com/_/+1/fastbutton?url='+url+'&size=tall&count=true&hl=en-US&jsh=m%3B%2F_%2Fapps-static%2F_%2Fjs%2Fgapi%2F__features__%2Frt%3Dj%2Fver%3Dt1NEBxIt2Qs.es_419.%2Fsv%3D1%2Fam%3D!Xq7AzNfn9_-I0e5PyA%2Fd%3D1%2F#id=I1_1328906079806&parent='+url+'&rpctoken=615138222&_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe%2C_renderstart\" name=\"I1_1328906079806\" marginwidth=\"0\" marginheight=\"0\" id=\"I1_1328906079806\" hspace=\"0\" allowtransparency=\"true\"></iframe></li>';
|
872 |
-
|
873 |
|
874 |
-
|
|
|
|
|
875 |
|
876 |
|
877 |
|
@@ -903,10 +1020,26 @@ function get_share_node(){
|
|
903 |
|
904 |
|
905 |
|
|
|
|
|
|
|
|
|
906 |
global $skyscraper_options;
|
907 |
|
|
|
|
|
|
|
|
|
|
|
|
|
908 |
$share_node = "";
|
909 |
|
|
|
|
|
|
|
|
|
|
|
|
|
910 |
if (!empty($skyscraper_options["share"]["check"])){
|
911 |
|
912 |
|
@@ -920,9 +1053,17 @@ function get_share_node(){
|
|
920 |
|
921 |
|
922 |
}
|
|
|
|
|
|
|
923 |
|
|
|
|
|
|
|
924 |
return $share_node;
|
925 |
|
|
|
|
|
926 |
}
|
927 |
|
928 |
|
@@ -946,21 +1087,43 @@ function get_follow_us_node(){
|
|
946 |
if (isset($skyscraper_options["follow_us"])){
|
947 |
|
948 |
|
|
|
|
|
|
|
|
|
|
|
949 |
$follow_info = empty_accounts();
|
950 |
|
|
|
|
|
|
|
|
|
|
|
|
|
951 |
if ( $follow_info["active"] > 0 && ($follow_info["empty"] < $follow_info["active"])){
|
952 |
|
|
|
|
|
953 |
$follow_buttons = sc_follow_links();
|
954 |
|
|
|
|
|
955 |
$follow_us_node = "oPlugin.CreateNode('New_Id_6','Follow', '', '".$follow_buttons["follow_buttons"]."','Plano',40,140)";
|
956 |
|
957 |
|
|
|
958 |
}
|
|
|
|
|
|
|
959 |
}
|
960 |
|
961 |
|
|
|
962 |
return $follow_us_node;
|
963 |
|
|
|
|
|
964 |
}
|
965 |
|
966 |
|
@@ -1117,6 +1280,10 @@ function share_links(){
|
|
1117 |
|
1118 |
|
1119 |
|
|
|
|
|
|
|
|
|
1120 |
$url = addslashes(get_bloginfo('wpurl'));
|
1121 |
|
1122 |
|
@@ -1165,12 +1332,11 @@ function share_links(){
|
|
1165 |
|
1166 |
|
1167 |
|
1168 |
-
'url' => 'http://twitter.com/intent/tweet?text='.urlencode($title).' - '.urlencode($url).' '.urlencode("{
|
1169 |
|
1170 |
|
1171 |
|
1172 |
-
'title' => "Share on Twitter",
|
1173 |
-
'blank' => '_blank' ),
|
1174 |
|
1175 |
|
1176 |
|
@@ -1186,8 +1352,7 @@ function share_links(){
|
|
1186 |
|
1187 |
|
1188 |
|
1189 |
-
'title' => "Share on Facebook",
|
1190 |
-
'blank' => '_blank' ),
|
1191 |
|
1192 |
|
1193 |
|
@@ -1203,8 +1368,7 @@ function share_links(){
|
|
1203 |
|
1204 |
|
1205 |
|
1206 |
-
'title' => "Share on Gmail",
|
1207 |
-
'blank' => '_blank' ),
|
1208 |
|
1209 |
|
1210 |
|
@@ -1220,8 +1384,7 @@ function share_links(){
|
|
1220 |
|
1221 |
|
1222 |
|
1223 |
-
'title' => "Share on inbound.org",
|
1224 |
-
'blank' => '_blank' ),
|
1225 |
|
1226 |
|
1227 |
|
@@ -1237,8 +1400,7 @@ function share_links(){
|
|
1237 |
|
1238 |
|
1239 |
|
1240 |
-
'title' => "Share on StumpleUpon",
|
1241 |
-
'blank' => '_blank' ),
|
1242 |
|
1243 |
|
1244 |
|
@@ -1254,8 +1416,7 @@ function share_links(){
|
|
1254 |
|
1255 |
|
1256 |
|
1257 |
-
"title" => "Share on delicious",
|
1258 |
-
'blank' => '_blank' ),
|
1259 |
|
1260 |
|
1261 |
|
@@ -1271,8 +1432,7 @@ function share_links(){
|
|
1271 |
|
1272 |
|
1273 |
|
1274 |
-
"title" => "Share on Google Reader",
|
1275 |
-
'blank' => '_blank' ),
|
1276 |
|
1277 |
|
1278 |
|
@@ -1288,49 +1448,54 @@ function share_links(){
|
|
1288 |
|
1289 |
|
1290 |
|
1291 |
-
"title" => "Share on LinkedIn"
|
1292 |
-
|
|
|
1293 |
|
1294 |
|
1295 |
-
"pinterest" => array('favicon' => 'pinterest.png',
|
1296 |
|
1297 |
|
1298 |
|
1299 |
-
|
1300 |
|
1301 |
|
1302 |
|
1303 |
-
|
1304 |
-
'blank' => '_blank' ),
|
1305 |
-
|
1306 |
-
"favorites" => array('favicon' => 'fv.png',
|
1307 |
-
'url' => 'javascript:AddToFavorites();',
|
1308 |
-
'title' => "Add to favorites - doesn\"t work in Chrome",
|
1309 |
-
'blank' => '_self' )
|
1310 |
-
|
1311 |
|
1312 |
-
);
|
1313 |
|
1314 |
|
|
|
1315 |
|
1316 |
-
|
1317 |
|
1318 |
|
|
|
1319 |
|
1320 |
-
$share_buttons = "";
|
1321 |
|
1322 |
|
1323 |
foreach($share_links as $link){
|
1324 |
-
|
|
|
|
|
1325 |
|
1326 |
-
|
|
|
|
|
|
|
1327 |
|
1328 |
|
1329 |
|
1330 |
}
|
1331 |
|
1332 |
|
|
|
|
|
|
|
|
|
|
|
1333 |
return $share_buttons;
|
|
|
|
|
|
|
1334 |
}
|
1335 |
|
1336 |
|
@@ -1427,6 +1592,16 @@ function auto_skyscraper($content, $admin = false){
|
|
1427 |
|
1428 |
}
|
1429 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1430 |
|
1431 |
|
1432 |
|
1 |
<?php
|
2 |
+
|
3 |
+
|
4 |
+
|
5 |
/*
|
6 |
+
|
7 |
+
|
8 |
+
|
9 |
* The Output And Shortcode Functions For sociable
|
10 |
+
|
11 |
+
|
12 |
+
|
13 |
*/
|
14 |
|
15 |
|
16 |
|
17 |
/*
|
18 |
+
|
19 |
+
|
20 |
+
|
21 |
* Returns The Skyscraper Output For The Global $post Object Do Not
|
22 |
+
|
23 |
+
|
24 |
+
|
25 |
*/
|
26 |
|
27 |
|
72 |
|
73 |
|
74 |
|
75 |
+
|
76 |
+
|
77 |
+
|
78 |
+
|
79 |
+
|
80 |
+
|
81 |
+
|
82 |
+
|
83 |
// echo "<script type='text/javascript'>";
|
84 |
|
85 |
|
187 |
}
|
188 |
|
189 |
|
190 |
+
|
191 |
+
|
192 |
+
|
193 |
+
|
194 |
+
|
195 |
$url_site= $_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
|
196 |
|
197 |
|
198 |
+
|
199 |
+
|
200 |
+
|
201 |
+
|
202 |
+
|
203 |
$script = "
|
204 |
|
205 |
+
|
206 |
+
|
207 |
+
|
208 |
+
|
209 |
+
|
210 |
+
|
211 |
+
|
212 |
+
|
213 |
if (!document.getElementById('fb-root')){
|
214 |
|
215 |
+
|
216 |
+
|
217 |
var div = document.createElement('div');
|
218 |
|
219 |
+
|
220 |
+
|
221 |
div.id = 'fb-root';
|
222 |
|
223 |
+
|
224 |
+
|
225 |
document.body.appendChild(div);
|
226 |
|
227 |
+
|
228 |
+
|
229 |
}
|
230 |
|
231 |
|
232 |
+
|
233 |
(function(d, s, id) {
|
234 |
|
235 |
+
|
236 |
+
|
237 |
var js, fjs = d.getElementsByTagName(s)[0];
|
238 |
|
239 |
+
|
240 |
+
|
241 |
if (d.getElementById(id)) return;
|
242 |
|
243 |
+
|
244 |
+
|
245 |
js = d.createElement(s); js.id = id;
|
246 |
|
247 |
+
|
248 |
+
|
249 |
js.src = \"http://connect.facebook.net/en_US/all.js#xfbml=1\";
|
250 |
|
251 |
+
|
252 |
+
|
253 |
fjs.parentNode.insertBefore(js, fjs);
|
254 |
|
255 |
|
256 |
|
257 |
}(document, 'script', 'facebook-jssdk'));
|
258 |
+
|
259 |
+
|
260 |
+
|
261 |
+
|
262 |
+
|
263 |
+
|
264 |
+
|
265 |
|
266 |
|
267 |
".$addWhere."
|
268 |
+
|
269 |
+
|
270 |
+
|
271 |
jQuery(document).ready(function(){
|
272 |
|
273 |
|
274 |
+
|
275 |
oPlugin.toolbarStart('skyscraper', ".$widget_position.",230,".$widget_width.",'".$background_color."','".$labels_color."',false,'#6A6A6A',".$text_size.",'#587cc8');
|
276 |
+
|
277 |
+
|
278 |
|
279 |
".get_share_node()."
|
280 |
|
281 |
+
|
282 |
+
|
283 |
".get_counters_node()."
|
284 |
|
285 |
+
|
286 |
+
|
287 |
".get_social_banner_node()."
|
288 |
|
289 |
+
|
290 |
+
|
291 |
".get_latest_node()."
|
292 |
|
293 |
+
|
294 |
+
|
295 |
".get_mentions_node()."
|
296 |
|
297 |
+
|
298 |
+
|
299 |
".get_follow_us_node()."
|
300 |
|
301 |
+
|
302 |
+
|
303 |
".get_rss_node()."
|
304 |
|
305 |
+
|
306 |
+
|
307 |
oPlugin.CreateGoToTop('New_Id_12','Top','<img src=\"".SOCIABLE_HTTP_PATH."images/toolbar/gototop.png\" style=\"width:30px;\" />');
|
308 |
|
309 |
|
310 |
|
311 |
oPlugin.CreateGoToHome('New_Id_13','Go Home','<img src=\"".SOCIABLE_HTTP_PATH."images/toolbar/gotohome.png\" style=\"width:30px;\" />');
|
312 |
|
313 |
+
|
314 |
+
|
315 |
+
});
|
316 |
+
|
317 |
+
|
318 |
+
|
319 |
";
|
320 |
|
321 |
+
|
322 |
+
|
323 |
echo $script;
|
324 |
+
|
325 |
}
|
326 |
+
|
327 |
+
|
328 |
+
|
329 |
}
|
330 |
|
331 |
|
396 |
|
397 |
counter += ' <li>';
|
398 |
|
399 |
+
counter += '<iframe scrolling=\"no\" frameborder=\"0\" allowtransparency=\"true\" src=\"http://platform.twitter.com/widgets/tweet_button.1326407570.html#_=1328815234500&_version=2&count=vertical&enableNewSizing=false&id=twitter-widget-0&lang=en&original_referer=+url+&&size=m&text='+title+' <sociable> blogplay.com&url='+url+'&via=sociablesite\" class=\"twitter-share-button twitter-count-vertical\" style=\"width: 55px; height: 62px;\" title=\"Twitter Tweet Button\"></iframe>';
|
400 |
|
401 |
counter += ' </li>';
|
402 |
|
505 |
global $skyscraper_options;
|
506 |
|
507 |
|
508 |
+
if (!empty($skyscraper_options["accept_read_rss"])){
|
509 |
|
510 |
+
if ($skyscraper_options["accept_read_rss"] != 1){
|
511 |
+
|
512 |
+
return $latest_posts;
|
513 |
+
}
|
514 |
+
}
|
515 |
+
else{
|
516 |
+
|
517 |
+
return $latest_posts;
|
518 |
+
}
|
519 |
|
520 |
|
521 |
|
760 |
|
761 |
|
762 |
|
763 |
+
if (!empty($skyscraper_options["accept_read_twitter"])){
|
764 |
+
|
765 |
+
if ($skyscraper_options["accept_read_twitter"] != 1){
|
766 |
|
767 |
+
return $latest_node;
|
768 |
+
}
|
769 |
+
}
|
770 |
+
else{
|
771 |
+
|
772 |
+
return $latest_node;
|
773 |
+
}
|
774 |
|
775 |
|
776 |
|
847 |
|
848 |
|
849 |
function get_mentions_node(){
|
850 |
+
|
|
|
851 |
|
852 |
$mentions_node = "";
|
853 |
|
|
|
|
|
|
|
|
|
|
|
|
|
854 |
global $skyscraper_options;
|
855 |
|
856 |
+
//echo "<pre>";
|
857 |
+
// print_r ($skyscraper_options);
|
858 |
+
// echo "</pre>";
|
859 |
|
860 |
+
if (!empty($skyscraper_options["accept_read_twitter"])){
|
861 |
+
// echo "entra 1";
|
862 |
+
if ($skyscraper_options["accept_read_twitter"] != 1){
|
863 |
+
// echo "entra 2";
|
864 |
+
return $mentions_node;
|
865 |
+
}
|
866 |
+
}
|
867 |
+
else{
|
868 |
+
//echo "entra 3";
|
869 |
+
return $mentions_node;
|
870 |
+
die();
|
871 |
+
}
|
872 |
|
873 |
|
874 |
if ( isset($skyscraper_options["twitter_username"])){
|
958 |
$counters_node = "";
|
959 |
|
960 |
|
|
|
|
|
|
|
961 |
if ((!empty($skyscraper_options["counters"]["check"]))){
|
962 |
|
963 |
|
985 |
|
986 |
|
987 |
counter +=' <li style=\"margin-left:0px\"><iframe width=\"100%\" scrolling=\"no\" frameborder=\"0\" title=\"+1\" vspace=\"0\" tabindex=\"-1\" style=\"position: static; left: 0pt; top: 0pt; width: 60px; margin: 0px; border-style: none; visibility: visible; height: 60px;\" src=\"https://plusone.google.com/_/+1/fastbutton?url='+url+'&size=tall&count=true&hl=en-US&jsh=m%3B%2F_%2Fapps-static%2F_%2Fjs%2Fgapi%2F__features__%2Frt%3Dj%2Fver%3Dt1NEBxIt2Qs.es_419.%2Fsv%3D1%2Fam%3D!Xq7AzNfn9_-I0e5PyA%2Fd%3D1%2F#id=I1_1328906079806&parent='+url+'&rpctoken=615138222&_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe%2C_renderstart\" name=\"I1_1328906079806\" marginwidth=\"0\" marginheight=\"0\" id=\"I1_1328906079806\" hspace=\"0\" allowtransparency=\"true\"></iframe></li>';
|
|
|
988 |
|
989 |
+
|
990 |
+
|
991 |
+
counter += '<li style=\"margin-left:-2px\"><iframe scrolling=\"no\" frameborder=\"0\" allowtransparency=\"true\" src=\"http://platform.twitter.com/widgets/tweet_button.1326407570.html#_=1328815234500&_version=2&count=vertical&enableNewSizing=false&id=twitter-widget-0&lang=en&original_referer=+url+&size=m&text='+title+' (sociable) blogplay.com&url='+url+'&via=sociablesite\" class=\"twitter-share-button twitter-count-vertical\" style=\"width: 55px; height: 62px;\" title=\"Twitter Tweet Button\"></iframe></li>';
|
992 |
|
993 |
|
994 |
|
1020 |
|
1021 |
|
1022 |
|
1023 |
+
|
1024 |
+
|
1025 |
+
|
1026 |
+
|
1027 |
global $skyscraper_options;
|
1028 |
|
1029 |
+
|
1030 |
+
|
1031 |
+
|
1032 |
+
|
1033 |
+
|
1034 |
+
|
1035 |
$share_node = "";
|
1036 |
|
1037 |
+
|
1038 |
+
|
1039 |
+
|
1040 |
+
|
1041 |
+
|
1042 |
+
|
1043 |
if (!empty($skyscraper_options["share"]["check"])){
|
1044 |
|
1045 |
|
1053 |
|
1054 |
|
1055 |
}
|
1056 |
+
|
1057 |
+
|
1058 |
+
|
1059 |
|
1060 |
+
|
1061 |
+
|
1062 |
+
|
1063 |
return $share_node;
|
1064 |
|
1065 |
+
|
1066 |
+
|
1067 |
}
|
1068 |
|
1069 |
|
1087 |
if (isset($skyscraper_options["follow_us"])){
|
1088 |
|
1089 |
|
1090 |
+
|
1091 |
+
|
1092 |
+
|
1093 |
+
|
1094 |
+
|
1095 |
$follow_info = empty_accounts();
|
1096 |
|
1097 |
+
|
1098 |
+
|
1099 |
+
|
1100 |
+
|
1101 |
+
|
1102 |
+
|
1103 |
if ( $follow_info["active"] > 0 && ($follow_info["empty"] < $follow_info["active"])){
|
1104 |
|
1105 |
+
|
1106 |
+
|
1107 |
$follow_buttons = sc_follow_links();
|
1108 |
|
1109 |
+
|
1110 |
+
|
1111 |
$follow_us_node = "oPlugin.CreateNode('New_Id_6','Follow', '', '".$follow_buttons["follow_buttons"]."','Plano',40,140)";
|
1112 |
|
1113 |
|
1114 |
+
|
1115 |
}
|
1116 |
+
|
1117 |
+
|
1118 |
+
|
1119 |
}
|
1120 |
|
1121 |
|
1122 |
+
|
1123 |
return $follow_us_node;
|
1124 |
|
1125 |
+
|
1126 |
+
|
1127 |
}
|
1128 |
|
1129 |
|
1280 |
|
1281 |
|
1282 |
|
1283 |
+
|
1284 |
+
|
1285 |
+
|
1286 |
+
|
1287 |
$url = addslashes(get_bloginfo('wpurl'));
|
1288 |
|
1289 |
|
1332 |
|
1333 |
|
1334 |
|
1335 |
+
'url' => 'http://twitter.com/intent/tweet?text='.urlencode($title).' - '.urlencode($url).' '.urlencode("{sociable}").' blogplay.com&via=sociablesite',
|
1336 |
|
1337 |
|
1338 |
|
1339 |
+
'title' => "Share on Twitter"),
|
|
|
1340 |
|
1341 |
|
1342 |
|
1352 |
|
1353 |
|
1354 |
|
1355 |
+
'title' => "Share on Facebook"),
|
|
|
1356 |
|
1357 |
|
1358 |
|
1368 |
|
1369 |
|
1370 |
|
1371 |
+
'title' => "Share on Gmail"),
|
|
|
1372 |
|
1373 |
|
1374 |
|
1384 |
|
1385 |
|
1386 |
|
1387 |
+
'title' => "Share on inbound.org"),
|
|
|
1388 |
|
1389 |
|
1390 |
|
1400 |
|
1401 |
|
1402 |
|
1403 |
+
'title' => "Share on StumpleUpon"),
|
|
|
1404 |
|
1405 |
|
1406 |
|
1416 |
|
1417 |
|
1418 |
|
1419 |
+
"title" => "Share on delicious"),
|
|
|
1420 |
|
1421 |
|
1422 |
|
1432 |
|
1433 |
|
1434 |
|
1435 |
+
"title" => "Share on Google Reader"),
|
|
|
1436 |
|
1437 |
|
1438 |
|
1448 |
|
1449 |
|
1450 |
|
1451 |
+
"title" => "Share on LinkedIn")
|
1452 |
+
|
1453 |
+
|
1454 |
|
1455 |
|
|
|
1456 |
|
1457 |
|
1458 |
|
1459 |
+
);
|
1460 |
|
1461 |
|
1462 |
|
1463 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1464 |
|
|
|
1465 |
|
1466 |
|
1467 |
+
$share_buttons = "";
|
1468 |
|
|
|
1469 |
|
1470 |
|
1471 |
+
|
1472 |
|
|
|
1473 |
|
1474 |
|
1475 |
foreach($share_links as $link){
|
1476 |
+
|
1477 |
+
|
1478 |
+
|
1479 |
|
1480 |
+
|
1481 |
+
|
1482 |
+
|
1483 |
+
$share_buttons .= "<a target=\'_blank\' rel=\'nofollow\' href=\'".addslashes($link["url"])."\' title=\'".addslashes($link["title"])."\'><img src=\'".SOCIABLE_HTTP_PATH."images/toolbar/".addslashes($link["favicon"])."\' /></a>";
|
1484 |
|
1485 |
|
1486 |
|
1487 |
}
|
1488 |
|
1489 |
|
1490 |
+
|
1491 |
+
|
1492 |
+
|
1493 |
+
|
1494 |
+
|
1495 |
return $share_buttons;
|
1496 |
+
|
1497 |
+
|
1498 |
+
|
1499 |
}
|
1500 |
|
1501 |
|
1592 |
|
1593 |
}
|
1594 |
|
1595 |
+
|
1596 |
+
|
1597 |
+
echo "<pre>";
|
1598 |
+
|
1599 |
+
print_r ($skyscraper_options["locations"]);
|
1600 |
+
|
1601 |
+
echo "</pre>";
|
1602 |
+
|
1603 |
+
|
1604 |
+
|
1605 |
|
1606 |
|
1607 |
|
readme.txt
CHANGED
@@ -10,7 +10,7 @@ Requires at least: 2.6
|
|
10 |
|
11 |
Tested up to: 3.3.1
|
12 |
|
13 |
-
Stable tag: 4.2.
|
14 |
|
15 |
|
16 |
|
@@ -94,7 +94,7 @@ Sociable finds its home outside of the WordPress environment on Blogplay.com-
|
|
94 |
|
95 |
|
96 |
|
97 |
-
*** Sociable 4.2.
|
98 |
|
99 |
|
100 |
|
@@ -297,6 +297,10 @@ Please send us an email to sociableblogplay [ at ] gmail.com
|
|
297 |
|
298 |
== Changelog ==
|
299 |
|
|
|
|
|
|
|
|
|
300 |
= 4.2.3 =
|
301 |
|
302 |
|
10 |
|
11 |
Tested up to: 3.3.1
|
12 |
|
13 |
+
Stable tag: 4.2.4
|
14 |
|
15 |
|
16 |
|
94 |
|
95 |
|
96 |
|
97 |
+
*** Sociable 4.2.4 ***
|
98 |
|
99 |
|
100 |
|
297 |
|
298 |
== Changelog ==
|
299 |
|
300 |
+
= 4.2.4 =
|
301 |
+
|
302 |
+
* Privacy options
|
303 |
+
|
304 |
= 4.2.3 =
|
305 |
|
306 |
|
sociable.php
CHANGED
@@ -1,23 +1,13 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/*
|
4 |
-
|
5 |
Plugin Name: Sociable
|
6 |
-
|
7 |
Plugin URI: http://blogplay.com/plugin
|
8 |
-
|
9 |
Description: Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
|
10 |
-
|
11 |
-
Version: 4.2.3
|
12 |
-
|
13 |
Author: Blogplay
|
14 |
-
|
15 |
Author URI: http://blogplay.com/
|
16 |
-
|
17 |
Copyright 2006 Peter Harkins (ph@malaprop.org)
|
18 |
-
|
19 |
Copyright 2008-2009 Joost de Valk (joost@yoast.com)
|
20 |
-
|
21 |
Copyright 2009-Present Blogplay.com (info@blogplay.com)
|
22 |
|
23 |
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
|
@@ -25,1392 +15,2782 @@ This program is free software; you can redistribute it and/or modify it under th
|
|
25 |
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
26 |
|
27 |
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
28 |
-
|
29 |
*/
|
30 |
|
|
|
|
|
31 |
/*
|
32 |
|
|
|
|
|
33 |
* Define Some Paths
|
34 |
|
|
|
|
|
35 |
*/
|
36 |
|
|
|
|
|
37 |
define( 'SOCIABLE_HTTP_PATH' , WP_PLUGIN_URL . '/' . str_replace(basename( __FILE__) , "" , plugin_basename(__FILE__) ) );
|
38 |
|
39 |
|
40 |
|
|
|
|
|
|
|
|
|
41 |
define( 'SOCIABLE_ABSPATH' , WP_PLUGIN_DIR . '/' . str_replace(basename( __FILE__) , "" , plugin_basename(__FILE__) ) );
|
42 |
|
43 |
|
44 |
|
|
|
|
|
|
|
|
|
45 |
/*
|
46 |
|
|
|
|
|
47 |
* Includes
|
48 |
|
|
|
|
|
49 |
*/
|
50 |
|
|
|
|
|
51 |
include 'includes/class-sociable_Admin_Options.php';
|
52 |
|
|
|
|
|
53 |
include("includes/skyscraper_output.php");
|
54 |
|
|
|
|
|
55 |
include 'includes/class-Sociable_Globals.php';
|
56 |
|
|
|
|
|
57 |
include 'includes/sociable_output.php';
|
58 |
|
|
|
|
|
59 |
/*
|
60 |
|
|
|
|
|
61 |
* Global Variables
|
62 |
|
|
|
|
|
63 |
*/
|
64 |
|
65 |
|
66 |
|
|
|
|
|
|
|
|
|
67 |
//$sociable_known_sites = Sociable_Globals::default_sites();
|
68 |
|
|
|
|
|
69 |
$sociable_options = get_option( 'sociable_options' );
|
70 |
|
|
|
|
|
71 |
$skyscraper_options = get_option( 'skyscraper_options' );
|
72 |
|
|
|
|
|
73 |
$skyscraper_latest = get_option( 'skyscraper_latest' );
|
74 |
|
|
|
|
|
75 |
$skyscraper_mentions = get_option( 'skyscraper_mentions' );
|
76 |
|
|
|
|
|
77 |
//$sociable_post_types = array(); //Set This blank here, won't work before init
|
78 |
|
79 |
-
//$sociable_taxonomies = array(); //Same Here
|
80 |
|
81 |
|
|
|
82 |
|
83 |
-
/*
|
84 |
|
85 |
-
* General Init Function
|
86 |
|
87 |
-
*/
|
88 |
|
89 |
|
90 |
|
91 |
-
function sociable_init(){
|
92 |
|
93 |
-
|
94 |
|
95 |
-
global $sociable_post_types, $sociable_taxonomies, $sociable_options, $skyscraper_options;
|
96 |
|
97 |
-
$import_call_asyn = true;
|
98 |
|
99 |
-
|
100 |
|
101 |
|
102 |
|
103 |
-
|
104 |
|
105 |
-
if (strpos($url_shares, "wp-admin") && !strpos($url_shares, "page=skyscraper_options")){
|
106 |
|
107 |
|
108 |
|
109 |
-
$import_call_asyn = false;
|
110 |
|
111 |
-
}
|
112 |
|
113 |
-
}
|
114 |
|
115 |
-
|
116 |
|
117 |
|
118 |
|
119 |
-
|
120 |
|
121 |
|
122 |
|
123 |
-
|
124 |
|
125 |
-
}
|
126 |
|
127 |
-
}
|
128 |
|
129 |
-
|
130 |
|
131 |
|
132 |
|
133 |
-
|
134 |
|
135 |
-
wp_enqueue_script( 'oplugin' , SOCIABLE_HTTP_PATH . 'js/oPlugin.js' );
|
136 |
|
137 |
-
wp_enqueue_style( "skyscraper_style_shape",SOCIABLE_HTTP_PATH."css/shape.css");
|
138 |
|
139 |
-
wp_enqueue_style( "skyscraper_style_toolbar", SOCIABLE_HTTP_PATH."css/toolbar.css");
|
140 |
-
|
141 |
|
142 |
-
}
|
143 |
|
144 |
-
if (!isset($sociable_options['icon_size']) || $sociable_options['icon_size'] == "" || !isset($sociable_options['version'])) sociable_reset();
|
145 |
|
146 |
-
if ( !isset($skyscraper_options['sociable_banner_timer']) ){
|
147 |
|
|
|
148 |
|
149 |
|
150 |
-
skyscraper_reset();
|
151 |
|
|
|
152 |
|
153 |
|
154 |
-
}
|
155 |
|
156 |
|
157 |
|
158 |
-
load_plugin_textdomain( 'sociable', false, dirname( plugin_basename( __FILE__ ) )."/languages" );
|
159 |
|
160 |
-
$active_sites = ( isset( $sociable_options['active_sites'] ) ) ? $sociable_options['active_sites'] : array() ;
|
161 |
|
162 |
-
|
163 |
|
164 |
|
165 |
|
166 |
-
|
167 |
|
168 |
|
169 |
|
170 |
-
|
171 |
|
172 |
|
173 |
|
174 |
-
|
175 |
|
176 |
|
177 |
|
178 |
-
wp_enqueue_script( 'sociable' , SOCIABLE_HTTP_PATH . 'js/sociable.js' );
|
179 |
|
180 |
-
wp_enqueue_script( 'addtofavourites' , SOCIABLE_HTTP_PATH . 'js/addtofavorites.js' );
|
181 |
|
182 |
-
if( ! is_admin() ){
|
183 |
|
184 |
|
|
|
185 |
|
186 |
-
//Load Up The Front Of Site CSS And JS
|
187 |
|
188 |
|
189 |
|
190 |
-
if( array_key_exists( 'Add to favorites' , $active_sites ) ){
|
191 |
|
192 |
|
193 |
|
194 |
-
|
195 |
|
196 |
-
}
|
197 |
|
198 |
-
if( isset( $sociable_options['use_stylesheet'] ) ){
|
199 |
|
|
|
200 |
|
201 |
|
202 |
-
wp_enqueue_style( 'sociablecss' , SOCIABLE_HTTP_PATH . 'css/sociable.css' );
|
203 |
|
204 |
-
|
205 |
|
206 |
-
}
|
207 |
|
208 |
-
}
|
209 |
|
|
|
210 |
|
211 |
|
212 |
-
/*
|
213 |
|
214 |
-
* Hooks And Filters
|
215 |
|
216 |
-
*/
|
217 |
|
218 |
|
219 |
|
220 |
-
|
221 |
|
222 |
-
add_action( 'admin_menu' , array( 'sociable_Admin_Options' , 'add_menu_pages' ) );
|
223 |
|
224 |
-
add_action( 'save_post' , array( 'sociable_Admin_Options' , 'save_post' ) );
|
225 |
|
226 |
-
|
227 |
|
228 |
-
add_action( 'wp_head' , 'sociable_init_async' );
|
229 |
|
230 |
-
function sociable_init_async(){
|
231 |
|
|
|
232 |
|
233 |
|
234 |
-
echo "<script type='text/javascript'>";
|
235 |
|
236 |
-
|
237 |
|
238 |
-
|
239 |
|
240 |
-
}
|
241 |
|
242 |
|
|
|
243 |
|
244 |
-
add_filter( 'the_content', 'auto_sociable' );
|
245 |
|
246 |
|
|
|
247 |
|
248 |
-
//add_filter( 'get_pages', 'auto_skyscraper' );
|
249 |
|
250 |
-
//add_filter( 'the_excerpt', 'auto_skyscraper' );
|
251 |
|
252 |
-
|
253 |
|
254 |
-
register_activation_hook(__FILE__, 'sociable_activate' );
|
255 |
|
256 |
-
register_deactivation_hook( __FILE__, 'sociable_deactivate' );
|
257 |
|
258 |
-
/*
|
259 |
|
260 |
-
* Activation Function
|
261 |
|
262 |
-
*/
|
263 |
|
264 |
|
|
|
265 |
|
266 |
-
function sociable_activate(){
|
267 |
|
268 |
-
if( ! get_option( 'sociable_options' ) ){
|
269 |
|
270 |
|
271 |
|
272 |
-
return sociable_reset();
|
273 |
|
274 |
-
}
|
275 |
|
276 |
-
}
|
277 |
|
278 |
|
279 |
|
280 |
-
/*
|
281 |
|
282 |
-
* Reset Function
|
283 |
|
284 |
-
*/
|
285 |
|
286 |
|
|
|
287 |
|
288 |
-
function sociable_reset(){
|
289 |
|
290 |
|
|
|
291 |
|
292 |
-
global $wpdb;
|
293 |
|
294 |
|
|
|
295 |
|
296 |
-
//reset all data to factory defaults, install if is there.
|
297 |
|
298 |
-
//Delete All Metadata From The Database ?
|
299 |
|
300 |
|
301 |
|
302 |
-
$wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key = '_sociableoff'");
|
303 |
|
304 |
|
|
|
305 |
|
306 |
-
$sociable_options = array(
|
307 |
|
308 |
|
309 |
|
310 |
-
'version' =>'4.2.3',
|
311 |
|
312 |
-
'automatic_mode' => 'on',
|
313 |
|
314 |
-
'tagline' => 'Be Sociable, Share!',
|
315 |
|
316 |
-
|
317 |
|
318 |
-
'use_stylesheet' => 'on',
|
319 |
|
320 |
-
'use_images' => 'on',
|
321 |
|
322 |
-
'use_alphamask' => 'on',
|
323 |
|
324 |
-
'new_window' => 'on',
|
325 |
|
326 |
-
'help_grow' => 'on',
|
327 |
|
328 |
-
'locations' => array(
|
329 |
|
330 |
-
|
331 |
|
332 |
-
'is_page' => 'on'
|
333 |
|
334 |
-
),
|
335 |
|
336 |
-
'active_sites' => array(
|
337 |
|
338 |
-
'Twitter' => 'on',
|
339 |
|
340 |
-
'Facebook' => 'on',
|
341 |
|
342 |
-
'email'=>'on',
|
343 |
|
344 |
-
|
345 |
|
346 |
-
'StumbleUpon' =>'on',
|
347 |
|
348 |
-
'Delicious' =>'on',
|
349 |
|
350 |
-
|
351 |
|
352 |
-
'LinkedIn' => 'on',
|
353 |
|
354 |
-
'BlinkList' =>'on',
|
355 |
|
356 |
-
|
357 |
|
358 |
-
'Twitter Counter' =>'on',
|
359 |
|
360 |
-
'Facebook Counter' =>'on',
|
361 |
|
362 |
-
'Google +' =>'on',
|
363 |
|
364 |
-
'LinkedIn Counter' =>'on',
|
365 |
|
366 |
-
'StumbleUpon Counter' =>'on'
|
367 |
|
368 |
-
),
|
369 |
|
370 |
-
|
371 |
|
372 |
-
'icon_option' => 'option1',
|
373 |
|
374 |
-
"active" => 1
|
375 |
|
376 |
-
);
|
377 |
|
378 |
|
379 |
|
380 |
-
$sociable_known_sites = array(
|
381 |
|
|
|
382 |
|
383 |
|
384 |
-
'Facebook' => array(
|
385 |
|
386 |
-
'favicon' => 'facebook.png',
|
387 |
|
388 |
-
'url' => 'http://www.facebook.com/share.php?u=PERMALINK&t=TITLE',
|
389 |
|
390 |
-
'spriteCoordinates' => Array(
|
391 |
|
392 |
-
'16' => array("-48px","0px"),
|
393 |
|
394 |
-
|
395 |
|
396 |
-
'48' => array("-144px","0px"),
|
397 |
|
398 |
-
'64' => array("-192px","0px")
|
399 |
|
400 |
-
|
401 |
|
402 |
-
),
|
403 |
|
404 |
-
'Facebook Counter' => array(
|
405 |
|
406 |
-
|
407 |
|
408 |
-
'favicon' => 'likecounter.png',
|
409 |
|
410 |
-
'url' => '<iframe src="http://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>',
|
411 |
|
412 |
-
'spriteCoordinates' => Array(
|
413 |
|
414 |
-
'16' => array("-48px","0px"),
|
415 |
|
416 |
-
'32' => array("-96px","0px"),
|
417 |
|
418 |
-
'48' => array("-144px","0px"),
|
419 |
|
420 |
-
|
421 |
|
422 |
-
)
|
423 |
|
424 |
-
),
|
425 |
|
|
|
426 |
|
427 |
|
428 |
-
'Myspace' => array(
|
429 |
|
430 |
-
|
431 |
|
432 |
-
'url' => 'http://www.myspace.com/Modules/PostTo/Pages/?u=PERMALINK&t=TITLE',
|
433 |
|
434 |
-
'spriteCoordinates' => Array(
|
435 |
|
436 |
-
|
437 |
|
438 |
-
'32' => array("0px","-32px"),
|
439 |
|
440 |
-
'48' => array("0px","-48px"),
|
441 |
|
442 |
-
'64' => array("0px","-64px")
|
443 |
|
444 |
-
)
|
445 |
|
446 |
-
),
|
447 |
|
448 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
449 |
|
450 |
-
'Twitter' => array(
|
451 |
|
452 |
'favicon' => 'twitter.png',
|
453 |
|
454 |
-
'url' => 'http://twitter.com/intent/tweet?text=TITLE%20-%20PERMALINK%20(via%20@sociablesite)%20/sociable/%20blogplay.com',
|
455 |
|
456 |
-
'spriteCoordinates' => Array(
|
457 |
|
458 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
459 |
|
460 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
461 |
|
462 |
-
'48' => array("-432px","-48px"),
|
463 |
|
464 |
-
'64' => array("-576px","-64px")
|
465 |
|
466 |
)
|
467 |
|
468 |
-
),
|
469 |
|
470 |
|
|
|
471 |
|
472 |
-
'Twitter Counter' => array(
|
473 |
|
474 |
-
'counter' =>1,
|
475 |
|
476 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
477 |
|
478 |
-
'url' => '<a href="https://twitter.com/share" data-text="TITLECOUNT - PERMALINKCOUNT (via #sociablesite) *sociable* blogplay.com" data-url="PERMALINKCOUNT" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>',
|
479 |
|
480 |
-
'spriteCoordinates' => Array(
|
481 |
|
482 |
-
'16' => array("-144px","-16px"),
|
483 |
|
484 |
-
'32' => array("-288px","-32px"),
|
485 |
|
486 |
-
'48' => array("-432px","-48px"),
|
487 |
|
488 |
-
|
489 |
|
490 |
-
)
|
491 |
|
492 |
-
),
|
493 |
|
494 |
-
'LinkedIn' => array(
|
495 |
|
496 |
-
'favicon' => 'linkedin.png',
|
497 |
|
498 |
-
'url' => 'http://www.linkedin.com/shareArticle?mini=true&url=PERMALINK&title=TITLE&source=BLOGNAME&summary=EXCERPT',
|
499 |
|
500 |
-
'spriteCoordinates' => Array(
|
501 |
|
502 |
-
|
503 |
|
504 |
-
'32' => array("-288px","0px"),
|
505 |
|
506 |
-
'48' => array("-432px","0px"),
|
507 |
|
508 |
-
'64' => array("-576px","0px")
|
509 |
|
510 |
-
)
|
511 |
|
512 |
-
),
|
513 |
|
514 |
|
|
|
515 |
|
516 |
-
'LinkedIn Counter' => array(
|
517 |
|
518 |
-
'counter'=>1,
|
519 |
|
520 |
-
'favicon' => 'linkedin.png',
|
521 |
|
522 |
-
'url' => '<script src="http://platform.linkedin.com/in.js" type="text/javascript"></script><script type="IN/Share" data-url="PERMALINKCOUNT" data-counter="right"></script>',
|
523 |
|
524 |
-
'spriteCoordinates' => Array(
|
525 |
|
526 |
|
|
|
527 |
|
528 |
-
'16' => array("-144px","0px"),
|
529 |
|
530 |
-
'32' => array("-288px","0px"),
|
531 |
|
532 |
-
'48' => array("-432px","0px"),
|
533 |
|
534 |
-
'64' => array("-576px","0px")
|
535 |
|
536 |
-
)
|
537 |
|
538 |
-
),
|
539 |
|
|
|
540 |
|
541 |
|
542 |
-
'Delicious' => array(
|
543 |
|
544 |
|
545 |
|
546 |
-
'favicon' => 'delicious.png',
|
547 |
|
548 |
-
'url' => 'http://delicious.com/post?url=PERMALINK&title=TITLE&notes=EXCERPT',
|
549 |
|
550 |
-
|
551 |
|
552 |
-
'16' => array("-16px","0px"),
|
553 |
|
554 |
-
'32' => array("-32px","0px"),
|
555 |
|
556 |
-
'48' => array("-48px","0px"),
|
557 |
|
558 |
-
'64' => array("-64px","0px")
|
559 |
|
560 |
-
)
|
561 |
|
562 |
-
),
|
563 |
|
|
|
564 |
|
565 |
|
566 |
-
'Digg' => array(
|
567 |
|
568 |
|
569 |
|
570 |
-
'favicon' => 'digg.png',
|
571 |
|
572 |
-
'url' => 'http://digg.com/submit?phase=2&url=PERMALINK&title=TITLE&bodytext=EXCERPT',
|
573 |
|
574 |
-
|
575 |
|
576 |
-
'16' => array("-32px","0px"),
|
577 |
|
578 |
-
'32' => array("-64px","0px"),
|
579 |
|
580 |
-
'48' => array("-96px","0px"),
|
581 |
|
582 |
-
'64' => array("-128px","0px")
|
583 |
|
584 |
-
)
|
585 |
|
586 |
-
),
|
587 |
|
588 |
-
|
589 |
|
590 |
-
'counter' =>1,
|
591 |
|
592 |
-
'favicon' => 'digg.png',
|
593 |
|
594 |
-
'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&title=TITLE' class='DiggThisButton DiggCompact'></a>",
|
595 |
|
596 |
|
597 |
|
598 |
-
'spriteCoordinates' => Array(
|
599 |
|
600 |
-
|
601 |
|
602 |
-
|
603 |
|
604 |
-
|
605 |
|
606 |
-
|
607 |
|
608 |
-
|
609 |
|
610 |
-
|
611 |
|
|
|
612 |
|
|
|
613 |
|
614 |
-
|
615 |
|
|
|
616 |
|
|
|
617 |
|
618 |
-
|
619 |
|
620 |
-
|
621 |
|
622 |
-
|
|
|
|
|
|
|
|
|
623 |
|
624 |
-
|
|
|
625 |
|
626 |
-
'16' => array("-64px","-16px"),
|
627 |
|
628 |
-
'32' => array("-128px","-32px"),
|
629 |
|
630 |
-
|
631 |
|
632 |
-
'64' => array("-256px","-64px")
|
633 |
|
634 |
-
)
|
635 |
|
636 |
-
),
|
637 |
|
638 |
-
|
639 |
|
640 |
-
'StumbleUpon' => array(
|
641 |
|
642 |
-
'favicon' => 'stumbleupon.png',
|
643 |
|
644 |
-
|
645 |
|
646 |
-
'spriteCoordinates' => Array(
|
647 |
|
648 |
-
'16' => array("-112px","-16px"),
|
649 |
|
650 |
-
'32' => array("-224px","-32px"),
|
651 |
|
652 |
-
'48' => array("-336px","-48px"),
|
653 |
|
654 |
-
'64' => array("-448px","-64px")
|
655 |
|
656 |
-
)),
|
657 |
|
658 |
-
|
659 |
|
660 |
-
'StumbleUpon Counter' => array(
|
661 |
|
662 |
-
'counter' =>1,
|
663 |
|
664 |
-
'favicon' => 'stumbleupon.png',
|
665 |
|
666 |
-
'url' => '<script src="http://www.stumbleupon.com/hostedbadge.php?s=2&r=PERMALINKCOUNT"></script>',
|
667 |
|
668 |
-
'spriteCoordinates' => Array(
|
669 |
|
670 |
-
'16' => array("-112px","-16px"),
|
671 |
|
672 |
-
|
673 |
|
674 |
-
'48' => array("-336px","-48px"),
|
675 |
|
676 |
-
'64' => array("-448px","-64px")
|
677 |
|
678 |
-
)
|
679 |
|
680 |
-
),
|
681 |
|
682 |
-
'Google Bookmarks' => Array (
|
683 |
|
684 |
-
'favicon' => 'google.png',
|
685 |
|
686 |
-
|
687 |
|
688 |
-
'description' => 'Google Bookmarks',
|
689 |
|
690 |
-
'spriteCoordinates' => Array(
|
691 |
|
692 |
-
'16' => array("-96px","0px"),
|
693 |
|
694 |
-
'32' => array("-192px","0px"),
|
695 |
|
696 |
-
'48' => array("-288px","0px"),
|
697 |
|
698 |
-
'64' => array("-384px","0px")
|
699 |
|
700 |
-
|
701 |
|
702 |
-
),
|
703 |
|
704 |
-
|
705 |
|
706 |
-
'Google +' => Array (
|
707 |
|
708 |
-
|
709 |
|
710 |
-
'counter' =>1,
|
711 |
|
712 |
-
'favicon' => 'google.png',
|
713 |
|
714 |
-
|
715 |
|
716 |
|
717 |
|
718 |
-
<g:plusone annotation="bubble" size="medium"></g:plusone>',*/
|
719 |
|
720 |
-
'url' => '<g:plusone annotation="bubble" href="PERMALINKCOUNT" size="medium"></g:plusone>',
|
721 |
|
722 |
-
/*
|
723 |
|
724 |
-
<script type="text/javascript">
|
725 |
|
726 |
-
|
727 |
|
728 |
-
lang: \'en-US\'
|
729 |
|
730 |
-
};
|
731 |
|
732 |
-
(function() {
|
733 |
|
734 |
-
var po = document.createElement(\'script\'); po.type = \'text/javascript\'; po.async = true;
|
735 |
|
736 |
-
po.src = \'https://apis.google.com/js/plusone.js\';
|
737 |
|
738 |
-
var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(po, s);
|
739 |
|
740 |
-
|
741 |
|
742 |
-
</script>
|
743 |
|
744 |
-
',*/
|
745 |
|
746 |
-
|
747 |
|
748 |
-
'spriteCoordinates' => Array(
|
749 |
|
750 |
-
'16' => array("-96px","0px"),
|
751 |
|
752 |
-
'32' => array("-192px","0px"),
|
753 |
|
754 |
-
'48' => array("-288px","0px"),
|
755 |
|
756 |
-
'64' => array("-384px","0px")
|
757 |
|
758 |
-
)
|
759 |
|
760 |
-
|
761 |
|
762 |
-
|
763 |
|
764 |
-
'HackerNews' => Array(
|
765 |
|
766 |
-
'favicon' => 'hacker_news.png',
|
767 |
|
768 |
-
'url' => 'http://news.ycombinator.com/submitlink?u=PERMALINK&t=TITLE',
|
769 |
|
770 |
-
'spriteCoordinates' => Array(
|
771 |
|
772 |
-
'16' => array("-128px","0px"),
|
773 |
|
774 |
-
|
775 |
|
776 |
-
'48' => array("-384px","0px"),
|
777 |
|
778 |
-
'64' => array("-512px","0px")
|
779 |
|
780 |
-
)
|
781 |
|
782 |
-
),
|
783 |
|
784 |
-
'MSNReporter' => Array(
|
785 |
|
786 |
-
'favicon' => 'msn.png',
|
787 |
|
788 |
-
|
789 |
|
790 |
-
'description' => 'MSN Reporter',
|
791 |
|
792 |
-
'spriteCoordinates' => Array(
|
793 |
|
794 |
-
'16' => array("-176px","0px"),
|
795 |
|
796 |
-
'32' => array("-352px","0px"),
|
797 |
|
798 |
-
'48' => array("-528px","0px"),
|
799 |
|
800 |
-
'64' => array("-704px","0px")
|
801 |
|
802 |
-
|
803 |
|
804 |
-
),
|
805 |
|
806 |
-
|
807 |
|
808 |
-
'BlinkList' => Array(
|
809 |
|
810 |
-
'favicon' => 'blinklist.png',
|
811 |
|
812 |
-
'url' => 'http://www.blinklist.com/index.php?Action=Blink/addblink.php&Url=PERMALINK&Title=TITLE',
|
813 |
|
814 |
-
'spriteCoordinates' => Array(
|
815 |
|
816 |
-
|
817 |
|
818 |
-
'32' => array("0px","0px"),
|
819 |
|
820 |
-
'48' => array("0px","0px"),
|
821 |
|
822 |
-
'64' => array("0px","0px")
|
823 |
|
824 |
-
),
|
825 |
|
826 |
-
'supportsIframe' => false,
|
827 |
|
828 |
-
),
|
829 |
|
830 |
-
|
831 |
|
832 |
-
'favicon' => 'sphinn.png',
|
833 |
|
834 |
-
'url' => 'http://sphinn.com/index.php?c=post&m=submit&link=PERMALINK',
|
835 |
|
836 |
-
'spriteCoordinates' => Array(
|
837 |
|
838 |
-
'16' => array("-96px","-16px"),
|
839 |
|
840 |
-
'32' => array("-192px","-32px"),
|
841 |
|
842 |
-
'48' => array("-288px","-48px"),
|
843 |
|
844 |
-
|
845 |
|
846 |
-
)
|
847 |
|
848 |
-
),
|
849 |
|
850 |
-
|
851 |
|
852 |
-
'Posterous' => Array(
|
853 |
|
854 |
-
'favicon' => 'posterous.png',
|
855 |
|
856 |
-
'url' => 'http://posterous.com/share?linkto=PERMALINK&title=TITLE&selection=EXCERPT',
|
857 |
|
858 |
-
|
859 |
|
860 |
-
'16' => array("-32px","-16px"),
|
861 |
|
862 |
-
'32' => array("-64px","-32px"),
|
863 |
|
864 |
-
'48' => array("-96px","-48px"),
|
865 |
|
866 |
-
'64' => array("-128px","-64px")
|
867 |
|
868 |
-
)
|
869 |
|
870 |
-
),
|
871 |
|
872 |
-
|
873 |
|
874 |
-
'favicon' => 'tumblr.png',
|
875 |
|
876 |
-
'url' => 'http://www.tumblr.com/share?v=3&u=PERMALINK&t=TITLE&s=EXCERPT',
|
877 |
|
878 |
-
|
879 |
|
880 |
-
'16' => array("-128px","-16px"),
|
881 |
|
882 |
-
'32' => array("-256px","-32px"),
|
883 |
|
884 |
-
'48' => array("-384px","-48px"),
|
885 |
|
886 |
-
'64' => array("-512px","-64px")
|
887 |
|
888 |
-
),
|
889 |
|
890 |
-
'supportsIframe' => false
|
891 |
|
892 |
-
|
893 |
|
894 |
-
'email' => Array(
|
895 |
|
896 |
-
'favicon' => 'gmail.png',
|
897 |
|
898 |
-
'url' => 'https://mail.google.com/mail/?view=cm&fs=1&to&su=TITLE&body=PERMALINK&ui=2&tf=1&shva=1',
|
899 |
|
900 |
-
'spriteCoordinates' => Array(
|
901 |
|
902 |
-
'16' => array("-80px","0px"),
|
903 |
|
904 |
-
'32' => array("-160px","0px"),
|
905 |
|
906 |
-
|
907 |
|
908 |
-
'64' => array("-320px","0px")
|
909 |
|
910 |
-
),
|
911 |
|
912 |
-
'supportsIframe' => false
|
913 |
|
914 |
-
),
|
915 |
|
916 |
-
|
917 |
|
918 |
-
'Google Reader' => array (
|
919 |
|
920 |
-
|
921 |
|
922 |
-
'url' => 'http://www.google.com/reader/link?url=PERMALINK&title=TITLE&srcURL=PERMALINK&srcTitle=BLOGNAME',
|
923 |
|
924 |
-
'spriteCoordinates' => Array(
|
925 |
|
926 |
-
'16' => array("-112px","0px"),
|
927 |
|
928 |
-
'32' => array("-224px","0px"),
|
929 |
|
930 |
-
'48' => array("-336px","0px"),
|
931 |
|
932 |
-
'64' => array("-448px","0px")
|
933 |
|
934 |
-
|
935 |
|
936 |
-
),
|
937 |
|
938 |
-
'Add to favorites' => array(
|
939 |
|
940 |
-
'favicon' => 'favorites.png',
|
941 |
|
942 |
-
'url' => 'javascript:AddToFavorites();',
|
943 |
|
944 |
-
'spriteCoordinates' => Array(
|
945 |
|
946 |
-
'16' => array("-64px","0px"),
|
947 |
|
948 |
-
|
949 |
|
950 |
-
'48' => array("-192px","0px"),
|
951 |
|
952 |
-
'64' => array("-256px","0px")
|
953 |
|
954 |
-
)
|
955 |
|
956 |
-
),
|
957 |
|
958 |
-
'More' => array(
|
959 |
|
960 |
-
'favicon' => 'more.png',
|
961 |
|
962 |
-
|
963 |
|
964 |
-
'spriteCoordinates' => Array(
|
965 |
|
966 |
-
'16' => array("0px","0px"),
|
967 |
|
968 |
-
'32' => array("0px","0px"),
|
969 |
|
970 |
-
'48' => array("0px","0px"),
|
971 |
|
972 |
-
'64' => array("0px","0px")
|
973 |
|
974 |
-
)
|
975 |
|
976 |
-
|
977 |
|
978 |
-
);
|
979 |
|
980 |
|
981 |
|
982 |
-
|
983 |
|
984 |
|
985 |
|
986 |
-
|
987 |
|
988 |
|
989 |
|
990 |
-
//Update will create if it doesn't exist.
|
991 |
|
992 |
-
|
993 |
|
994 |
|
995 |
|
996 |
-
|
997 |
|
998 |
|
999 |
|
1000 |
-
update_option( 'sociable_options' , $sociable_options );
|
1001 |
|
1002 |
|
1003 |
|
1004 |
-
update_option( 'sociable_helpus' , 1);
|
1005 |
|
|
|
1006 |
|
1007 |
|
1008 |
-
}
|
1009 |
|
1010 |
-
function skyscraper_reset(){
|
1011 |
|
1012 |
-
$skyscraper_options = array(
|
1013 |
|
1014 |
|
1015 |
|
1016 |
-
|
1017 |
|
1018 |
|
1019 |
|
1020 |
-
"widget_width" => "60px",
|
1021 |
|
1022 |
|
1023 |
|
1024 |
-
"widget_position" => "1",
|
1025 |
|
|
|
1026 |
|
1027 |
|
1028 |
-
"background_color" => "#fefefe",
|
1029 |
|
1030 |
|
1031 |
|
1032 |
-
"labels_color" => "#f7f7f7",
|
1033 |
|
1034 |
|
|
|
1035 |
|
1036 |
-
"text_size" => "10px",
|
1037 |
|
1038 |
|
|
|
1039 |
|
1040 |
-
"counters" => array("check" => "0",
|
1041 |
|
1042 |
|
1043 |
|
1044 |
-
"folded" => "0"),
|
1045 |
|
1046 |
|
1047 |
|
1048 |
-
|
1049 |
|
1050 |
|
1051 |
|
1052 |
-
"folded" => "0"),
|
1053 |
|
1054 |
|
1055 |
|
1056 |
-
"num_tweets" => 3,
|
1057 |
|
|
|
1058 |
|
1059 |
|
1060 |
-
"num_rss" =>3,
|
1061 |
|
|
|
1062 |
|
1063 |
|
1064 |
-
"locations" => array("is_front_page" => 1,
|
1065 |
|
1066 |
|
1067 |
|
1068 |
-
"is_home" => 1,
|
1069 |
|
1070 |
|
|
|
1071 |
|
1072 |
-
"is_single" => 1,
|
1073 |
|
1074 |
|
1075 |
|
1076 |
-
"is_page" => 1,
|
1077 |
|
1078 |
|
1079 |
|
1080 |
-
|
1081 |
|
1082 |
|
1083 |
|
1084 |
-
"is_date" => 1,
|
1085 |
|
1086 |
|
1087 |
|
1088 |
-
"is_tag" => 1,
|
1089 |
|
|
|
1090 |
|
1091 |
|
1092 |
-
"is_author" => 1,
|
1093 |
|
|
|
1094 |
|
1095 |
|
1096 |
-
"is_search" => 1,
|
1097 |
|
|
|
1098 |
|
1099 |
|
1100 |
-
"is_rss" => 1 ),
|
1101 |
|
|
|
1102 |
|
1103 |
|
1104 |
-
|
1105 |
|
|
|
1106 |
|
1107 |
|
1108 |
-
"counters" => array("check" => 1,
|
1109 |
|
|
|
1110 |
|
1111 |
|
1112 |
-
"folded" => 1),
|
1113 |
|
|
|
1114 |
|
1115 |
|
1116 |
-
"share" => array("check" => 1,
|
1117 |
|
|
|
1118 |
|
1119 |
|
1120 |
-
"folded" => 1),
|
1121 |
-
"sociable_banner" => "",
|
1122 |
-
|
1123 |
-
"sociable_banner_timer" => 15,
|
1124 |
-
|
1125 |
-
"sociable_banner_text" => 'Please spread the word: Be Sociable, Share!',
|
1126 |
-
|
1127 |
-
"sociable_banner_colorBack" => '#FFFFFF',
|
1128 |
-
|
1129 |
-
"sociable_banner_fontSize" => '9px',
|
1130 |
-
|
1131 |
-
"sociable_banner_colorLabel" => '#F7F7F7',
|
1132 |
-
|
1133 |
-
"sociable_banner_colorFont" => '#6A6A6A'
|
1134 |
-
|
1135 |
-
);
|
1136 |
|
1137 |
-
|
1138 |
|
1139 |
|
1140 |
|
1141 |
-
|
1142 |
|
1143 |
|
1144 |
|
1145 |
-
|
1146 |
|
1147 |
|
1148 |
|
1149 |
-
|
1150 |
|
1151 |
|
1152 |
|
1153 |
-
|
1154 |
|
1155 |
|
1156 |
|
1157 |
-
|
1158 |
|
1159 |
|
1160 |
|
1161 |
-
|
1162 |
|
1163 |
|
1164 |
|
1165 |
-
|
1166 |
|
1167 |
|
1168 |
|
1169 |
}
|
1170 |
|
1171 |
-
/*
|
1172 |
-
|
1173 |
|
1174 |
|
1175 |
-
|
1176 |
|
1177 |
|
1178 |
|
1179 |
-
|
1180 |
|
1181 |
|
1182 |
|
1183 |
-
|
1184 |
|
1185 |
|
1186 |
|
1187 |
-
// global $wpdb;
|
1188 |
|
1189 |
|
1190 |
|
1191 |
-
// //Delete The Metadata
|
1192 |
|
|
|
1193 |
|
1194 |
|
1195 |
-
// $wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key = '_sociableoff'");
|
1196 |
|
1197 |
|
1198 |
|
1199 |
-
// //delete The Options
|
1200 |
|
1201 |
|
|
|
1202 |
|
1203 |
-
// return delete_option( 'sociable_options' );
|
1204 |
|
1205 |
|
1206 |
|
1207 |
-
}
|
1208 |
|
1209 |
-
/*
|
1210 |
|
1211 |
|
|
|
1212 |
|
1213 |
-
* Function To Completely Remove The Options
|
1214 |
|
1215 |
|
1216 |
|
1217 |
-
*/
|
1218 |
|
1219 |
|
1220 |
|
1221 |
-
|
1222 |
|
1223 |
|
1224 |
|
1225 |
-
|
1226 |
|
1227 |
|
1228 |
|
1229 |
-
|
1230 |
|
1231 |
|
1232 |
|
1233 |
-
global $wpdb;
|
1234 |
|
|
|
1235 |
|
1236 |
|
1237 |
-
//Delete The Metadata
|
1238 |
|
1239 |
|
1240 |
|
1241 |
-
$wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key = '_sociableoff'");
|
1242 |
|
1243 |
|
|
|
1244 |
|
1245 |
-
//delete The Options
|
1246 |
|
1247 |
|
1248 |
|
1249 |
-
delete_option( 'sociable_options' );
|
1250 |
|
1251 |
|
1252 |
|
1253 |
-
|
1254 |
|
1255 |
|
1256 |
|
1257 |
-
|
1258 |
|
1259 |
|
1260 |
|
1261 |
-
|
1262 |
|
1263 |
-
|
1264 |
|
1265 |
|
1266 |
|
1267 |
-
|
1268 |
|
1269 |
|
1270 |
|
1271 |
-
|
1272 |
|
1273 |
-
/*
|
1274 |
|
1275 |
|
1276 |
|
1277 |
-
* Generic Plugin Wide Functions
|
1278 |
|
1279 |
|
1280 |
|
1281 |
-
|
1282 |
|
1283 |
|
1284 |
|
1285 |
-
|
1286 |
|
1287 |
-
global $sociable_options;
|
1288 |
|
1289 |
-
|
1290 |
|
1291 |
-
if( empty( $sociable_options['custom_icons'] )){
|
1292 |
|
1293 |
-
if ($sociable_options['icon_option'] !="option6"){
|
1294 |
|
1295 |
-
$path = trailingslashit( SOCIABLE_HTTP_PATH . 'images/'.$sociable_options['icon_option']."/" . $sociable_options['icon_size'] );
|
1296 |
|
1297 |
-
}else{
|
1298 |
|
1299 |
-
|
1300 |
|
1301 |
-
$path = trailingslashit( SOCIABLE_HTTP_PATH . 'images/original/');
|
1302 |
|
1303 |
-
}
|
1304 |
|
1305 |
-
} else {
|
1306 |
|
1307 |
-
$path = trailingslashit( SOCIABLE_HTTP_PATH . 'images/customIcons/');
|
1308 |
|
1309 |
-
}
|
1310 |
|
1311 |
-
|
1312 |
|
1313 |
-
|
1314 |
|
1315 |
-
return $path;
|
1316 |
|
1317 |
-
}
|
1318 |
|
1319 |
-
|
1320 |
|
1321 |
-
global $sociable_options;
|
1322 |
|
1323 |
-
$imageclass = '';
|
1324 |
|
|
|
1325 |
|
1326 |
|
1327 |
-
$imagestyle = '';
|
1328 |
|
1329 |
|
1330 |
|
1331 |
-
$imagepath = _get_sociable_image_path();
|
1332 |
|
1333 |
|
|
|
1334 |
|
1335 |
-
//Get The Source Of The Image
|
1336 |
|
1337 |
|
|
|
1338 |
|
1339 |
-
if ( ! isset( $site['spriteCoordinates'] ) || ! isset( $sociable_options['use_sprites'] ) || is_feed() ) {
|
1340 |
|
1341 |
-
if ( strpos( $site['favicon'], 'http' ) === 0 ) {
|
1342 |
|
1343 |
|
1344 |
|
1345 |
-
$imagesource = $site['favicon'];
|
1346 |
|
1347 |
|
|
|
1348 |
|
1349 |
-
} else {
|
1350 |
|
1351 |
|
1352 |
|
1353 |
-
$imagesource = $imagepath.$site['favicon'];
|
1354 |
|
1355 |
|
1356 |
|
1357 |
-
|
1358 |
|
1359 |
-
} else {
|
1360 |
|
1361 |
-
$imagesource = $imagepath . "services-sprite.gif";
|
1362 |
|
|
|
1363 |
|
1364 |
|
1365 |
-
$services_sprite_url = $imagepath . "sprite.png";
|
1366 |
|
1367 |
-
$spriteCoords = $site['spriteCoordinates'];
|
1368 |
|
1369 |
|
1370 |
|
1371 |
-
|
1372 |
|
|
|
1373 |
|
1374 |
|
1375 |
-
$size = $sociable_options['icon_size'];
|
1376 |
|
1377 |
-
$imagestyle = 'width: ' . $size . 'px; height: ' . $size . 'px; background: transparent url(' . $services_sprite_url . ') no-repeat; background-position:' . $spriteCoords[$size] . 'px 0';
|
1378 |
|
1379 |
-
}
|
1380 |
|
1381 |
|
1382 |
|
1383 |
-
|
1384 |
|
1385 |
-
if( isset( $sociable_options['use_alphamask'] ) ){
|
1386 |
|
1387 |
|
1388 |
|
1389 |
-
$imageclass .= 'sociable-hovers';
|
1390 |
|
1391 |
|
1392 |
|
1393 |
}
|
1394 |
|
1395 |
-
//If A Class Has Been Specified, Ensure It Is Added To The Class Attribute.
|
1396 |
|
1397 |
|
|
|
1398 |
|
1399 |
-
if ( isset( $site['class'] ) ) {
|
1400 |
|
1401 |
|
1402 |
|
1403 |
-
$imageclass .= 'sociable_' . $site['class'];
|
1404 |
|
1405 |
|
1406 |
|
1407 |
-
|
1408 |
|
1409 |
-
if( $imagestyle != '' ){
|
1410 |
|
1411 |
|
1412 |
|
1413 |
-
$imagestyle = 'style="' . $imagestyle . '"';
|
1414 |
|
1415 |
|
1416 |
|
@@ -1418,26 +2798,52 @@ global $sociable_options;
|
|
1418 |
|
1419 |
|
1420 |
|
|
|
|
|
|
|
|
|
1421 |
if ($sociable_options['icon_option'] !="option6"){
|
1422 |
|
|
|
|
|
1423 |
$image = '<img src="' . $imagesource . '" title="' . $description . '" alt="' . $description . '"' . $imagestyle . ' />' ;
|
1424 |
|
|
|
|
|
1425 |
}else{
|
1426 |
|
|
|
|
|
1427 |
$image = '<img class="' . $imageclass . '" src="' . $imagesource . '" title="' . $description . '" alt="' . $description . '"' . $imagestyle . ' />' ;
|
1428 |
|
|
|
|
|
1429 |
}
|
1430 |
|
1431 |
|
1432 |
|
|
|
|
|
|
|
|
|
1433 |
|
1434 |
|
1435 |
|
1436 |
|
|
|
|
|
|
|
|
|
1437 |
return $image;
|
1438 |
|
1439 |
|
1440 |
|
|
|
|
|
|
|
|
|
1441 |
}
|
1442 |
|
|
|
|
|
1443 |
?>
|
1 |
<?php
|
|
|
2 |
/*
|
|
|
3 |
Plugin Name: Sociable
|
|
|
4 |
Plugin URI: http://blogplay.com/plugin
|
|
|
5 |
Description: Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
|
6 |
+
Version: 4.2.4
|
|
|
|
|
7 |
Author: Blogplay
|
|
|
8 |
Author URI: http://blogplay.com/
|
|
|
9 |
Copyright 2006 Peter Harkins (ph@malaprop.org)
|
|
|
10 |
Copyright 2008-2009 Joost de Valk (joost@yoast.com)
|
|
|
11 |
Copyright 2009-Present Blogplay.com (info@blogplay.com)
|
12 |
|
13 |
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
|
15 |
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
16 |
|
17 |
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
18 |
*/
|
19 |
|
20 |
+
|
21 |
+
|
22 |
/*
|
23 |
|
24 |
+
|
25 |
+
|
26 |
* Define Some Paths
|
27 |
|
28 |
+
|
29 |
+
|
30 |
*/
|
31 |
|
32 |
+
|
33 |
+
|
34 |
define( 'SOCIABLE_HTTP_PATH' , WP_PLUGIN_URL . '/' . str_replace(basename( __FILE__) , "" , plugin_basename(__FILE__) ) );
|
35 |
|
36 |
|
37 |
|
38 |
+
|
39 |
+
|
40 |
+
|
41 |
+
|
42 |
define( 'SOCIABLE_ABSPATH' , WP_PLUGIN_DIR . '/' . str_replace(basename( __FILE__) , "" , plugin_basename(__FILE__) ) );
|
43 |
|
44 |
|
45 |
|
46 |
+
|
47 |
+
|
48 |
+
|
49 |
+
|
50 |
/*
|
51 |
|
52 |
+
|
53 |
+
|
54 |
* Includes
|
55 |
|
56 |
+
|
57 |
+
|
58 |
*/
|
59 |
|
60 |
+
|
61 |
+
|
62 |
include 'includes/class-sociable_Admin_Options.php';
|
63 |
|
64 |
+
|
65 |
+
|
66 |
include("includes/skyscraper_output.php");
|
67 |
|
68 |
+
|
69 |
+
|
70 |
include 'includes/class-Sociable_Globals.php';
|
71 |
|
72 |
+
|
73 |
+
|
74 |
include 'includes/sociable_output.php';
|
75 |
|
76 |
+
|
77 |
+
|
78 |
/*
|
79 |
|
80 |
+
|
81 |
+
|
82 |
* Global Variables
|
83 |
|
84 |
+
|
85 |
+
|
86 |
*/
|
87 |
|
88 |
|
89 |
|
90 |
+
|
91 |
+
|
92 |
+
|
93 |
+
|
94 |
//$sociable_known_sites = Sociable_Globals::default_sites();
|
95 |
|
96 |
+
|
97 |
+
|
98 |
$sociable_options = get_option( 'sociable_options' );
|
99 |
|
100 |
+
|
101 |
+
|
102 |
$skyscraper_options = get_option( 'skyscraper_options' );
|
103 |
|
104 |
+
|
105 |
+
|
106 |
$skyscraper_latest = get_option( 'skyscraper_latest' );
|
107 |
|
108 |
+
|
109 |
+
|
110 |
$skyscraper_mentions = get_option( 'skyscraper_mentions' );
|
111 |
|
112 |
+
|
113 |
+
|
114 |
//$sociable_post_types = array(); //Set This blank here, won't work before init
|
115 |
|
|
|
116 |
|
117 |
|
118 |
+
//$sociable_taxonomies = array(); //Same Here
|
119 |
|
|
|
120 |
|
|
|
121 |
|
|
|
122 |
|
123 |
|
124 |
|
|
|
125 |
|
126 |
+
/*
|
127 |
|
|
|
128 |
|
|
|
129 |
|
130 |
+
* General Init Function
|
131 |
|
132 |
|
133 |
|
134 |
+
*/
|
135 |
|
|
|
136 |
|
137 |
|
138 |
|
|
|
139 |
|
|
|
140 |
|
|
|
141 |
|
142 |
+
function sociable_init(){
|
143 |
|
144 |
|
145 |
|
146 |
+
wp_enqueue_script('jquery');
|
147 |
|
148 |
|
149 |
|
150 |
+
global $sociable_post_types, $sociable_taxonomies, $sociable_options, $skyscraper_options;
|
151 |
|
|
|
152 |
|
|
|
153 |
|
154 |
+
$import_call_asyn = true;
|
155 |
|
156 |
|
157 |
|
158 |
+
$url_shares = $_SERVER["REQUEST_URI"];
|
159 |
|
|
|
160 |
|
|
|
161 |
|
|
|
|
|
162 |
|
|
|
163 |
|
|
|
164 |
|
|
|
165 |
|
166 |
+
if (strpos($url_shares, "wp-admin")){
|
167 |
|
168 |
|
|
|
169 |
|
170 |
+
if (strpos($url_shares, "wp-admin") && !strpos($url_shares, "page=skyscraper_options")){
|
171 |
|
172 |
|
|
|
173 |
|
174 |
|
175 |
|
|
|
176 |
|
|
|
177 |
|
178 |
+
$import_call_asyn = false;
|
179 |
|
180 |
|
181 |
|
182 |
+
}
|
183 |
|
184 |
|
185 |
|
186 |
+
}
|
187 |
|
188 |
|
189 |
|
190 |
+
else{
|
191 |
|
192 |
|
193 |
|
|
|
194 |
|
|
|
195 |
|
|
|
196 |
|
197 |
|
198 |
+
if (!isset($skyscraper_options["active"])){
|
199 |
|
|
|
200 |
|
201 |
|
202 |
|
|
|
203 |
|
204 |
|
205 |
|
206 |
+
$import_call_asyn = false;
|
207 |
|
|
|
208 |
|
|
|
209 |
|
210 |
+
}
|
211 |
|
212 |
|
|
|
213 |
|
214 |
+
}
|
215 |
|
|
|
216 |
|
|
|
217 |
|
218 |
+
if ($import_call_asyn){
|
219 |
|
220 |
|
|
|
221 |
|
|
|
222 |
|
|
|
223 |
|
224 |
|
225 |
|
226 |
+
wp_enqueue_script( 'async_call' , SOCIABLE_HTTP_PATH . 'js/async_call.js' );
|
227 |
|
|
|
228 |
|
|
|
229 |
|
230 |
+
wp_enqueue_script( 'oplugin' , SOCIABLE_HTTP_PATH . 'js/oPlugin.js' );
|
231 |
|
|
|
232 |
|
|
|
233 |
|
234 |
+
wp_enqueue_style( "skyscraper_style_shape",SOCIABLE_HTTP_PATH."css/shape.css");
|
235 |
|
236 |
|
|
|
237 |
|
238 |
+
wp_enqueue_style( "skyscraper_style_toolbar", SOCIABLE_HTTP_PATH."css/toolbar.css");
|
239 |
|
240 |
+
|
241 |
|
|
|
242 |
|
243 |
|
244 |
+
}
|
245 |
|
|
|
246 |
|
247 |
|
248 |
+
if (!isset($sociable_options['icon_size']) || $sociable_options['icon_size'] == "" || !isset($sociable_options['version'])) sociable_reset();
|
249 |
|
|
|
250 |
|
|
|
251 |
|
252 |
+
if ( !isset($skyscraper_options['accept_read_twitter']) ){
|
253 |
|
|
|
254 |
|
|
|
255 |
|
|
|
256 |
|
|
|
257 |
|
|
|
258 |
|
259 |
|
260 |
+
skyscraper_reset();
|
261 |
|
|
|
262 |
|
|
|
263 |
|
264 |
|
265 |
|
|
|
266 |
|
|
|
267 |
|
268 |
+
}
|
269 |
|
270 |
|
271 |
|
|
|
272 |
|
|
|
273 |
|
|
|
274 |
|
275 |
|
276 |
+
load_plugin_textdomain( 'sociable', false, dirname( plugin_basename( __FILE__ ) )."/languages" );
|
277 |
|
|
|
278 |
|
279 |
|
280 |
+
$active_sites = ( isset( $sociable_options['active_sites'] ) ) ? $sociable_options['active_sites'] : array() ;
|
281 |
|
|
|
282 |
|
283 |
|
284 |
+
//Set The Post Types
|
285 |
|
|
|
286 |
|
|
|
287 |
|
288 |
|
289 |
|
|
|
290 |
|
291 |
|
292 |
+
$sociable_post_types = Sociable_Globals::sociable_get_post_types();
|
293 |
|
|
|
294 |
|
295 |
|
296 |
|
|
|
297 |
|
|
|
298 |
|
|
|
299 |
|
300 |
+
//Set The Custom Taxonomies
|
301 |
|
|
|
302 |
|
|
|
303 |
|
|
|
304 |
|
|
|
305 |
|
|
|
306 |
|
|
|
307 |
|
308 |
+
$sociable_taxonomies = Sociable_Globals::sociable_get_taxonomies();
|
309 |
|
|
|
310 |
|
|
|
311 |
|
|
|
312 |
|
|
|
313 |
|
|
|
314 |
|
|
|
315 |
|
316 |
+
wp_enqueue_script( 'sociable' , SOCIABLE_HTTP_PATH . 'js/sociable.js' );
|
317 |
|
|
|
318 |
|
|
|
319 |
|
320 |
+
wp_enqueue_script( 'addtofavourites' , SOCIABLE_HTTP_PATH . 'js/addtofavorites.js' );
|
321 |
|
|
|
322 |
|
|
|
323 |
|
324 |
+
if( ! is_admin() ){
|
325 |
|
|
|
326 |
|
|
|
327 |
|
|
|
328 |
|
|
|
329 |
|
|
|
330 |
|
|
|
331 |
|
332 |
+
//Load Up The Front Of Site CSS And JS
|
333 |
|
|
|
334 |
|
|
|
335 |
|
|
|
336 |
|
337 |
|
338 |
|
|
|
339 |
|
340 |
+
if( array_key_exists( 'Add to favorites' , $active_sites ) ){
|
341 |
|
342 |
|
|
|
343 |
|
|
|
344 |
|
|
|
345 |
|
|
|
346 |
|
|
|
347 |
|
348 |
+
// wp_enqueue_script( 'addtofavourites' , SOCIABLE_HTTP_PATH . 'js/addtofavorites.js' );
|
349 |
|
|
|
350 |
|
|
|
351 |
|
352 |
+
}
|
353 |
|
|
|
354 |
|
|
|
355 |
|
356 |
+
if( isset( $sociable_options['use_stylesheet'] ) ){
|
357 |
|
|
|
358 |
|
|
|
359 |
|
|
|
360 |
|
|
|
361 |
|
|
|
362 |
|
|
|
363 |
|
364 |
+
wp_enqueue_style( 'sociablecss' , SOCIABLE_HTTP_PATH . 'css/sociable.css' );
|
365 |
|
|
|
366 |
|
|
|
367 |
|
368 |
+
}
|
369 |
|
370 |
|
|
|
371 |
|
372 |
+
}
|
373 |
|
|
|
374 |
|
|
|
375 |
|
376 |
+
}
|
377 |
|
|
|
378 |
|
|
|
379 |
|
|
|
380 |
|
|
|
381 |
|
|
|
382 |
|
383 |
|
384 |
+
/*
|
385 |
+
|
386 |
+
|
387 |
+
|
388 |
+
* Hooks And Filters
|
389 |
+
|
390 |
+
|
391 |
+
|
392 |
+
*/
|
393 |
+
|
394 |
+
|
395 |
+
|
396 |
+
|
397 |
+
|
398 |
+
|
399 |
+
|
400 |
+
add_action( 'admin_init' , array( 'sociable_Admin_Options' , 'init' ) );
|
401 |
+
|
402 |
+
|
403 |
+
|
404 |
+
add_action( 'admin_menu' , array( 'sociable_Admin_Options' , 'add_menu_pages' ) );
|
405 |
+
|
406 |
+
|
407 |
+
|
408 |
+
add_action( 'save_post' , array( 'sociable_Admin_Options' , 'save_post' ) );
|
409 |
+
|
410 |
+
|
411 |
+
|
412 |
+
add_action( 'init' , 'sociable_init' );
|
413 |
+
|
414 |
+
|
415 |
+
|
416 |
+
add_action( 'wp_head' , 'sociable_init_async' );
|
417 |
+
|
418 |
+
|
419 |
+
|
420 |
+
function sociable_init_async(){
|
421 |
+
|
422 |
+
|
423 |
+
|
424 |
+
|
425 |
+
|
426 |
+
|
427 |
+
|
428 |
+
echo "<script type='text/javascript'>";
|
429 |
+
|
430 |
+
|
431 |
+
|
432 |
+
echo "var base_url_sociable = '".SOCIABLE_HTTP_PATH."'";
|
433 |
+
|
434 |
+
|
435 |
+
|
436 |
+
echo "</script><script type='text/javascript' src='http://apis.google.com/js/plusone.js'></script>";
|
437 |
+
|
438 |
+
|
439 |
+
|
440 |
+
}
|
441 |
+
|
442 |
+
|
443 |
+
|
444 |
+
|
445 |
+
|
446 |
+
|
447 |
+
|
448 |
+
add_filter( 'the_content', 'auto_sociable' );
|
449 |
+
|
450 |
+
|
451 |
+
|
452 |
+
|
453 |
+
|
454 |
+
|
455 |
+
|
456 |
+
//add_filter( 'get_pages', 'auto_skyscraper' );
|
457 |
+
|
458 |
+
|
459 |
+
|
460 |
+
//add_filter( 'the_excerpt', 'auto_skyscraper' );
|
461 |
+
|
462 |
+
|
463 |
+
|
464 |
+
add_filter( 'the_excerpt', 'auto_sociable' );
|
465 |
+
|
466 |
+
|
467 |
+
|
468 |
+
register_activation_hook(__FILE__, 'sociable_activate' );
|
469 |
+
|
470 |
+
|
471 |
+
|
472 |
+
register_deactivation_hook( __FILE__, 'sociable_deactivate' );
|
473 |
+
|
474 |
+
|
475 |
+
|
476 |
+
/*
|
477 |
+
|
478 |
+
|
479 |
+
|
480 |
+
* Activation Function
|
481 |
+
|
482 |
+
|
483 |
+
|
484 |
+
*/
|
485 |
+
|
486 |
+
|
487 |
+
|
488 |
+
|
489 |
+
|
490 |
+
|
491 |
+
|
492 |
+
function sociable_activate(){
|
493 |
+
|
494 |
+
|
495 |
+
|
496 |
+
if( ! get_option( 'sociable_options' ) ){
|
497 |
+
|
498 |
+
|
499 |
+
|
500 |
+
|
501 |
+
|
502 |
+
|
503 |
+
|
504 |
+
return sociable_reset();
|
505 |
+
|
506 |
+
|
507 |
+
|
508 |
+
}
|
509 |
+
|
510 |
+
|
511 |
+
|
512 |
+
}
|
513 |
+
|
514 |
+
|
515 |
+
|
516 |
+
|
517 |
+
|
518 |
+
|
519 |
+
|
520 |
+
/*
|
521 |
+
|
522 |
+
|
523 |
+
|
524 |
+
* Reset Function
|
525 |
+
|
526 |
+
|
527 |
+
|
528 |
+
*/
|
529 |
+
|
530 |
+
|
531 |
+
|
532 |
+
|
533 |
+
|
534 |
+
|
535 |
+
|
536 |
+
function sociable_reset(){
|
537 |
+
|
538 |
+
|
539 |
+
|
540 |
+
|
541 |
+
|
542 |
+
|
543 |
+
|
544 |
+
global $wpdb;
|
545 |
+
|
546 |
+
|
547 |
+
|
548 |
+
|
549 |
+
|
550 |
+
|
551 |
+
|
552 |
+
//reset all data to factory defaults, install if is there.
|
553 |
+
|
554 |
+
|
555 |
+
|
556 |
+
//Delete All Metadata From The Database ?
|
557 |
+
|
558 |
+
|
559 |
+
|
560 |
+
|
561 |
+
|
562 |
+
|
563 |
+
|
564 |
+
$wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key = '_sociableoff'");
|
565 |
+
|
566 |
+
|
567 |
+
|
568 |
+
|
569 |
+
|
570 |
+
|
571 |
+
|
572 |
+
$sociable_options = array(
|
573 |
+
|
574 |
+
|
575 |
+
|
576 |
+
|
577 |
+
|
578 |
+
|
579 |
+
|
580 |
+
'version' =>'4.2.2',
|
581 |
+
|
582 |
+
|
583 |
+
|
584 |
+
'automatic_mode' => 'on',
|
585 |
+
|
586 |
+
|
587 |
+
|
588 |
+
'tagline' => 'Be Sociable, Share!',
|
589 |
+
|
590 |
+
|
591 |
+
|
592 |
+
'custom_image_directory' => '',
|
593 |
+
|
594 |
+
|
595 |
+
|
596 |
+
'use_stylesheet' => 'on',
|
597 |
+
|
598 |
+
|
599 |
+
|
600 |
+
'use_images' => 'on',
|
601 |
+
|
602 |
+
|
603 |
+
|
604 |
+
'use_alphamask' => 'on',
|
605 |
+
|
606 |
+
|
607 |
+
|
608 |
+
'new_window' => 'on',
|
609 |
+
|
610 |
+
|
611 |
+
|
612 |
+
'help_grow' => 'on',
|
613 |
+
|
614 |
+
|
615 |
+
|
616 |
+
'locations' => array(
|
617 |
+
|
618 |
+
|
619 |
+
|
620 |
+
'is_single' => 'on',
|
621 |
+
|
622 |
+
|
623 |
+
|
624 |
+
'is_page' => 'on'
|
625 |
+
|
626 |
+
|
627 |
+
|
628 |
+
),
|
629 |
+
|
630 |
+
|
631 |
+
|
632 |
+
'active_sites' => array(
|
633 |
+
|
634 |
+
|
635 |
+
|
636 |
+
'Twitter' => 'on',
|
637 |
+
|
638 |
+
|
639 |
+
|
640 |
+
'Facebook' => 'on',
|
641 |
+
|
642 |
+
|
643 |
+
|
644 |
+
'email'=>'on',
|
645 |
+
|
646 |
+
|
647 |
+
|
648 |
+
'Add to favorites'=>'on',
|
649 |
+
|
650 |
+
|
651 |
+
|
652 |
+
'StumbleUpon' =>'on',
|
653 |
+
|
654 |
+
|
655 |
+
|
656 |
+
'Delicious' =>'on',
|
657 |
+
|
658 |
+
|
659 |
+
|
660 |
+
'Google Reader' =>'on',
|
661 |
+
|
662 |
+
|
663 |
+
|
664 |
+
'LinkedIn' => 'on',
|
665 |
+
|
666 |
+
|
667 |
+
|
668 |
+
'BlinkList' =>'on',
|
669 |
+
|
670 |
+
|
671 |
+
|
672 |
+
'More' => 'on',
|
673 |
+
|
674 |
+
|
675 |
+
|
676 |
+
'Twitter Counter' =>'on',
|
677 |
+
|
678 |
+
|
679 |
+
|
680 |
+
'Facebook Counter' =>'on',
|
681 |
+
|
682 |
+
|
683 |
+
|
684 |
+
'Google +' =>'on',
|
685 |
+
|
686 |
+
|
687 |
+
|
688 |
+
'LinkedIn Counter' =>'on',
|
689 |
+
|
690 |
+
|
691 |
+
|
692 |
+
'StumbleUpon Counter' =>'on'
|
693 |
+
|
694 |
+
|
695 |
+
|
696 |
+
),
|
697 |
+
|
698 |
+
|
699 |
+
|
700 |
+
'icon_size' => '32',
|
701 |
+
|
702 |
+
|
703 |
+
|
704 |
+
'icon_option' => 'option1',
|
705 |
+
|
706 |
+
|
707 |
+
|
708 |
+
"active" => 1
|
709 |
+
|
710 |
+
|
711 |
+
|
712 |
+
);
|
713 |
+
|
714 |
+
|
715 |
+
|
716 |
+
|
717 |
+
|
718 |
+
|
719 |
+
|
720 |
+
$sociable_known_sites = array(
|
721 |
+
|
722 |
+
|
723 |
+
|
724 |
+
|
725 |
+
|
726 |
+
|
727 |
+
|
728 |
+
'Facebook' => array(
|
729 |
+
|
730 |
+
|
731 |
+
|
732 |
+
'favicon' => 'facebook.png',
|
733 |
+
|
734 |
+
|
735 |
+
|
736 |
+
'url' => 'http://www.facebook.com/share.php?u=PERMALINK&t=TITLE',
|
737 |
+
|
738 |
+
|
739 |
+
|
740 |
+
'spriteCoordinates' => Array(
|
741 |
+
|
742 |
+
|
743 |
+
|
744 |
+
'16' => array("-48px","0px"),
|
745 |
+
|
746 |
+
|
747 |
+
|
748 |
+
'32' => array("-96px","0px"),
|
749 |
+
|
750 |
+
|
751 |
+
|
752 |
+
'48' => array("-144px","0px"),
|
753 |
+
|
754 |
+
|
755 |
+
|
756 |
+
'64' => array("-192px","0px")
|
757 |
+
|
758 |
+
|
759 |
+
|
760 |
+
)
|
761 |
+
|
762 |
+
|
763 |
+
|
764 |
+
),
|
765 |
+
|
766 |
+
|
767 |
+
|
768 |
+
'Facebook Counter' => array(
|
769 |
+
|
770 |
+
|
771 |
+
|
772 |
+
'counter' =>1,
|
773 |
+
|
774 |
+
|
775 |
+
|
776 |
+
'favicon' => 'likecounter.png',
|
777 |
+
|
778 |
+
|
779 |
+
|
780 |
+
'url' => '<iframe src="http://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>',
|
781 |
+
|
782 |
+
|
783 |
+
|
784 |
+
'spriteCoordinates' => Array(
|
785 |
+
|
786 |
+
|
787 |
+
|
788 |
+
'16' => array("-48px","0px"),
|
789 |
+
|
790 |
+
|
791 |
+
|
792 |
+
'32' => array("-96px","0px"),
|
793 |
+
|
794 |
+
|
795 |
+
|
796 |
+
'48' => array("-144px","0px"),
|
797 |
+
|
798 |
+
|
799 |
+
|
800 |
+
'64' => array("-192px","0px")
|
801 |
+
|
802 |
+
|
803 |
+
|
804 |
+
)
|
805 |
+
|
806 |
+
|
807 |
+
|
808 |
+
),
|
809 |
+
|
810 |
+
|
811 |
+
|
812 |
+
|
813 |
+
|
814 |
+
|
815 |
+
|
816 |
+
'Myspace' => array(
|
817 |
+
|
818 |
+
|
819 |
+
|
820 |
+
'favicon' => 'myspace.png',
|
821 |
+
|
822 |
+
|
823 |
+
|
824 |
+
'url' => 'http://www.myspace.com/Modules/PostTo/Pages/?u=PERMALINK&t=TITLE',
|
825 |
+
|
826 |
+
|
827 |
+
|
828 |
+
'spriteCoordinates' => Array(
|
829 |
+
|
830 |
+
|
831 |
+
|
832 |
+
'16' => array("0px","-16px"),
|
833 |
+
|
834 |
+
|
835 |
+
|
836 |
+
'32' => array("0px","-32px"),
|
837 |
+
|
838 |
+
|
839 |
+
|
840 |
+
'48' => array("0px","-48px"),
|
841 |
+
|
842 |
+
|
843 |
+
|
844 |
+
'64' => array("0px","-64px")
|
845 |
+
|
846 |
+
|
847 |
+
|
848 |
+
)
|
849 |
+
|
850 |
+
|
851 |
+
|
852 |
+
),
|
853 |
+
|
854 |
+
|
855 |
+
|
856 |
+
|
857 |
+
|
858 |
+
|
859 |
+
|
860 |
+
'Twitter' => array(
|
861 |
+
|
862 |
+
|
863 |
+
|
864 |
+
'favicon' => 'twitter.png',
|
865 |
+
|
866 |
+
|
867 |
+
|
868 |
+
'url' => 'http://twitter.com/intent/tweet?text=TITLE%20-%20PERMALINK%20(via%20@sociablesite)%20/sociable/%20blogplay.com',
|
869 |
+
|
870 |
+
|
871 |
+
|
872 |
+
'spriteCoordinates' => Array(
|
873 |
+
|
874 |
+
|
875 |
+
|
876 |
+
'16' => array("-144px","-16px"),
|
877 |
+
|
878 |
+
|
879 |
+
|
880 |
+
'32' => array("-288px","-32px"),
|
881 |
+
|
882 |
+
|
883 |
+
|
884 |
+
'48' => array("-432px","-48px"),
|
885 |
+
|
886 |
+
|
887 |
+
|
888 |
+
'64' => array("-576px","-64px")
|
889 |
+
|
890 |
+
|
891 |
+
|
892 |
+
)
|
893 |
+
|
894 |
+
|
895 |
+
|
896 |
+
),
|
897 |
+
|
898 |
+
|
899 |
+
|
900 |
+
|
901 |
+
|
902 |
+
|
903 |
+
|
904 |
+
'Twitter Counter' => array(
|
905 |
+
|
906 |
+
|
907 |
+
|
908 |
+
'counter' =>1,
|
909 |
+
|
910 |
|
|
|
911 |
|
912 |
'favicon' => 'twitter.png',
|
913 |
|
|
|
914 |
|
|
|
915 |
|
916 |
+
'url' => '<a href="https://twitter.com/share" data-text="TITLECOUNT - PERMALINKCOUNT (via #sociablesite) *sociable* blogplay.com" data-url="PERMALINKCOUNT" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>',
|
917 |
+
|
918 |
+
|
919 |
+
|
920 |
+
'spriteCoordinates' => Array(
|
921 |
+
|
922 |
+
|
923 |
+
|
924 |
+
'16' => array("-144px","-16px"),
|
925 |
+
|
926 |
+
|
927 |
+
|
928 |
+
'32' => array("-288px","-32px"),
|
929 |
+
|
930 |
+
|
931 |
+
|
932 |
+
'48' => array("-432px","-48px"),
|
933 |
+
|
934 |
+
|
935 |
+
|
936 |
+
'64' => array("-576px","-64px")
|
937 |
+
|
938 |
+
|
939 |
+
|
940 |
+
)
|
941 |
+
|
942 |
+
|
943 |
+
|
944 |
+
),
|
945 |
+
|
946 |
+
|
947 |
+
|
948 |
+
'LinkedIn' => array(
|
949 |
+
|
950 |
+
|
951 |
+
|
952 |
+
'favicon' => 'linkedin.png',
|
953 |
+
|
954 |
+
|
955 |
+
|
956 |
+
'url' => 'http://www.linkedin.com/shareArticle?mini=true&url=PERMALINK&title=TITLE&source=BLOGNAME&summary=EXCERPT',
|
957 |
+
|
958 |
+
|
959 |
+
|
960 |
+
'spriteCoordinates' => Array(
|
961 |
+
|
962 |
+
|
963 |
+
|
964 |
+
'16' => array("-144px","0px"),
|
965 |
+
|
966 |
+
|
967 |
+
|
968 |
+
'32' => array("-288px","0px"),
|
969 |
+
|
970 |
+
|
971 |
+
|
972 |
+
'48' => array("-432px","0px"),
|
973 |
+
|
974 |
+
|
975 |
+
|
976 |
+
'64' => array("-576px","0px")
|
977 |
+
|
978 |
+
|
979 |
+
|
980 |
+
)
|
981 |
+
|
982 |
+
|
983 |
+
|
984 |
+
),
|
985 |
+
|
986 |
+
|
987 |
+
|
988 |
+
|
989 |
+
|
990 |
+
|
991 |
+
|
992 |
+
'LinkedIn Counter' => array(
|
993 |
+
|
994 |
+
|
995 |
+
|
996 |
+
'counter'=>1,
|
997 |
+
|
998 |
+
|
999 |
+
|
1000 |
+
'favicon' => 'linkedin.png',
|
1001 |
+
|
1002 |
+
|
1003 |
+
|
1004 |
+
'url' => '<script src="http://platform.linkedin.com/in.js" type="text/javascript"></script><script type="IN/Share" data-url="PERMALINKCOUNT" data-counter="right"></script>',
|
1005 |
+
|
1006 |
+
|
1007 |
+
|
1008 |
+
'spriteCoordinates' => Array(
|
1009 |
+
|
1010 |
+
|
1011 |
+
|
1012 |
+
|
1013 |
+
|
1014 |
+
|
1015 |
+
|
1016 |
+
'16' => array("-144px","0px"),
|
1017 |
+
|
1018 |
+
|
1019 |
+
|
1020 |
+
'32' => array("-288px","0px"),
|
1021 |
+
|
1022 |
+
|
1023 |
+
|
1024 |
+
'48' => array("-432px","0px"),
|
1025 |
+
|
1026 |
+
|
1027 |
+
|
1028 |
+
'64' => array("-576px","0px")
|
1029 |
+
|
1030 |
+
|
1031 |
+
|
1032 |
+
)
|
1033 |
+
|
1034 |
+
|
1035 |
+
|
1036 |
+
),
|
1037 |
+
|
1038 |
+
|
1039 |
+
|
1040 |
+
|
1041 |
+
|
1042 |
+
|
1043 |
+
|
1044 |
+
'Delicious' => array(
|
1045 |
+
|
1046 |
+
|
1047 |
+
|
1048 |
+
|
1049 |
+
|
1050 |
+
|
1051 |
+
|
1052 |
+
'favicon' => 'delicious.png',
|
1053 |
+
|
1054 |
+
|
1055 |
+
|
1056 |
+
'url' => 'http://delicious.com/post?url=PERMALINK&title=TITLE&notes=EXCERPT',
|
1057 |
+
|
1058 |
+
|
1059 |
+
|
1060 |
+
'spriteCoordinates' => Array(
|
1061 |
+
|
1062 |
+
|
1063 |
+
|
1064 |
+
'16' => array("-16px","0px"),
|
1065 |
+
|
1066 |
+
|
1067 |
+
|
1068 |
+
'32' => array("-32px","0px"),
|
1069 |
+
|
1070 |
+
|
1071 |
+
|
1072 |
+
'48' => array("-48px","0px"),
|
1073 |
+
|
1074 |
+
|
1075 |
+
|
1076 |
+
'64' => array("-64px","0px")
|
1077 |
+
|
1078 |
+
|
1079 |
+
|
1080 |
+
)
|
1081 |
+
|
1082 |
+
|
1083 |
+
|
1084 |
+
),
|
1085 |
+
|
1086 |
+
|
1087 |
+
|
1088 |
+
|
1089 |
+
|
1090 |
+
|
1091 |
+
|
1092 |
+
'Digg' => array(
|
1093 |
+
|
1094 |
+
|
1095 |
+
|
1096 |
+
|
1097 |
+
|
1098 |
+
|
1099 |
+
|
1100 |
+
'favicon' => 'digg.png',
|
1101 |
+
|
1102 |
+
|
1103 |
+
|
1104 |
+
'url' => 'http://digg.com/submit?phase=2&url=PERMALINK&title=TITLE&bodytext=EXCERPT',
|
1105 |
+
|
1106 |
+
|
1107 |
+
|
1108 |
+
'spriteCoordinates' => Array(
|
1109 |
+
|
1110 |
+
|
1111 |
+
|
1112 |
+
'16' => array("-32px","0px"),
|
1113 |
+
|
1114 |
+
|
1115 |
+
|
1116 |
+
'32' => array("-64px","0px"),
|
1117 |
+
|
1118 |
+
|
1119 |
+
|
1120 |
+
'48' => array("-96px","0px"),
|
1121 |
+
|
1122 |
+
|
1123 |
+
|
1124 |
+
'64' => array("-128px","0px")
|
1125 |
+
|
1126 |
+
|
1127 |
+
|
1128 |
+
)
|
1129 |
+
|
1130 |
+
|
1131 |
+
|
1132 |
+
),
|
1133 |
+
|
1134 |
+
|
1135 |
+
|
1136 |
+
'Digg Counter' => array(
|
1137 |
+
|
1138 |
+
|
1139 |
+
|
1140 |
+
'counter' =>1,
|
1141 |
+
|
1142 |
+
|
1143 |
+
|
1144 |
+
'favicon' => 'digg.png',
|
1145 |
+
|
1146 |
+
|
1147 |
+
|
1148 |
+
'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&title=TITLE' class='DiggThisButton DiggCompact'></a>",
|
1149 |
+
|
1150 |
+
|
1151 |
+
|
1152 |
+
|
1153 |
+
|
1154 |
+
|
1155 |
+
|
1156 |
+
'spriteCoordinates' => Array(
|
1157 |
+
|
1158 |
+
|
1159 |
+
|
1160 |
+
'16' => array("-32px","0px"),
|
1161 |
+
|
1162 |
+
|
1163 |
+
|
1164 |
+
'32' => array("-64px","0px"),
|
1165 |
+
|
1166 |
+
|
1167 |
+
|
1168 |
+
'48' => array("-96px","0px"),
|
1169 |
+
|
1170 |
+
|
1171 |
+
|
1172 |
+
'64' => array("-128px","0px")
|
1173 |
+
|
1174 |
+
|
1175 |
+
|
1176 |
+
)
|
1177 |
+
|
1178 |
+
|
1179 |
+
|
1180 |
+
),
|
1181 |
+
|
1182 |
+
|
1183 |
+
|
1184 |
+
|
1185 |
+
|
1186 |
+
|
1187 |
+
|
1188 |
+
'Reddit' => array(
|
1189 |
+
|
1190 |
+
|
1191 |
+
|
1192 |
+
|
1193 |
+
|
1194 |
+
|
1195 |
+
|
1196 |
+
'favicon' => 'reddit.png',
|
1197 |
+
|
1198 |
+
|
1199 |
+
|
1200 |
+
|
1201 |
+
|
1202 |
+
|
1203 |
+
|
1204 |
+
'url' => 'http://reddit.com/submit?url=PERMALINK&title=TITLE',
|
1205 |
+
|
1206 |
+
|
1207 |
+
|
1208 |
+
'spriteCoordinates' => Array(
|
1209 |
+
|
1210 |
+
|
1211 |
+
|
1212 |
+
'16' => array("-64px","-16px"),
|
1213 |
+
|
1214 |
+
|
1215 |
+
|
1216 |
+
'32' => array("-128px","-32px"),
|
1217 |
+
|
1218 |
+
|
1219 |
+
|
1220 |
+
'48' => array("-192px","-48px"),
|
1221 |
+
|
1222 |
+
|
1223 |
+
|
1224 |
+
'64' => array("-256px","-64px")
|
1225 |
+
|
1226 |
+
|
1227 |
+
|
1228 |
+
)
|
1229 |
+
|
1230 |
+
|
1231 |
+
|
1232 |
+
),
|
1233 |
+
|
1234 |
+
|
1235 |
+
|
1236 |
+
|
1237 |
+
|
1238 |
+
|
1239 |
+
|
1240 |
+
'StumbleUpon' => array(
|
1241 |
+
|
1242 |
+
|
1243 |
+
|
1244 |
+
'favicon' => 'stumbleupon.png',
|
1245 |
+
|
1246 |
+
|
1247 |
+
|
1248 |
+
'url' => 'http://www.stumbleupon.com/submit?url=PERMALINK&title=TITLE',
|
1249 |
+
|
1250 |
+
|
1251 |
+
|
1252 |
+
'spriteCoordinates' => Array(
|
1253 |
+
|
1254 |
+
|
1255 |
+
|
1256 |
+
'16' => array("-112px","-16px"),
|
1257 |
+
|
1258 |
+
|
1259 |
+
|
1260 |
+
'32' => array("-224px","-32px"),
|
1261 |
+
|
1262 |
+
|
1263 |
+
|
1264 |
+
'48' => array("-336px","-48px"),
|
1265 |
+
|
1266 |
+
|
1267 |
+
|
1268 |
+
'64' => array("-448px","-64px")
|
1269 |
+
|
1270 |
+
|
1271 |
+
|
1272 |
+
)),
|
1273 |
+
|
1274 |
+
|
1275 |
+
|
1276 |
+
|
1277 |
+
|
1278 |
+
|
1279 |
+
|
1280 |
+
'StumbleUpon Counter' => array(
|
1281 |
+
|
1282 |
+
|
1283 |
+
|
1284 |
+
'counter' =>1,
|
1285 |
+
|
1286 |
+
|
1287 |
+
|
1288 |
+
'favicon' => 'stumbleupon.png',
|
1289 |
+
|
1290 |
+
|
1291 |
+
|
1292 |
+
'url' => '<script src="http://www.stumbleupon.com/hostedbadge.php?s=2&r=PERMALINKCOUNT"></script>',
|
1293 |
+
|
1294 |
+
|
1295 |
+
|
1296 |
+
'spriteCoordinates' => Array(
|
1297 |
+
|
1298 |
+
|
1299 |
+
|
1300 |
+
'16' => array("-112px","-16px"),
|
1301 |
+
|
1302 |
+
|
1303 |
+
|
1304 |
+
'32' => array("-224px","-32px"),
|
1305 |
+
|
1306 |
+
|
1307 |
+
|
1308 |
+
'48' => array("-336px","-48px"),
|
1309 |
+
|
1310 |
+
|
1311 |
+
|
1312 |
+
'64' => array("-448px","-64px")
|
1313 |
+
|
1314 |
+
|
1315 |
+
|
1316 |
+
)
|
1317 |
+
|
1318 |
+
|
1319 |
+
|
1320 |
+
),
|
1321 |
+
|
1322 |
+
|
1323 |
+
|
1324 |
+
'Google Bookmarks' => Array (
|
1325 |
+
|
1326 |
+
|
1327 |
+
|
1328 |
+
'favicon' => 'google.png',
|
1329 |
+
|
1330 |
+
|
1331 |
+
|
1332 |
+
'url' => 'http://www.google.com/bookmarks/mark?op=edit&bkmk=PERMALINK&title=TITLE&annotation=EXCERPT',
|
1333 |
+
|
1334 |
+
|
1335 |
+
|
1336 |
+
'description' => 'Google Bookmarks',
|
1337 |
+
|
1338 |
+
|
1339 |
+
|
1340 |
+
'spriteCoordinates' => Array(
|
1341 |
+
|
1342 |
+
|
1343 |
+
|
1344 |
+
'16' => array("-96px","0px"),
|
1345 |
+
|
1346 |
+
|
1347 |
+
|
1348 |
+
'32' => array("-192px","0px"),
|
1349 |
+
|
1350 |
+
|
1351 |
+
|
1352 |
+
'48' => array("-288px","0px"),
|
1353 |
+
|
1354 |
+
|
1355 |
+
|
1356 |
+
'64' => array("-384px","0px")
|
1357 |
+
|
1358 |
+
|
1359 |
+
|
1360 |
+
)
|
1361 |
+
|
1362 |
+
|
1363 |
+
|
1364 |
+
),
|
1365 |
+
|
1366 |
+
|
1367 |
+
|
1368 |
+
|
1369 |
+
|
1370 |
+
|
1371 |
+
|
1372 |
+
'Google +' => Array (
|
1373 |
+
|
1374 |
+
|
1375 |
+
|
1376 |
+
|
1377 |
+
|
1378 |
+
|
1379 |
+
|
1380 |
+
'counter' =>1,
|
1381 |
+
|
1382 |
+
|
1383 |
+
|
1384 |
+
'favicon' => 'google.png',
|
1385 |
+
|
1386 |
+
|
1387 |
+
|
1388 |
+
/* 'url' => '<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
|
1389 |
+
|
1390 |
+
|
1391 |
+
|
1392 |
+
|
1393 |
+
|
1394 |
+
|
1395 |
+
|
1396 |
+
<g:plusone annotation="bubble" size="medium"></g:plusone>',*/
|
1397 |
+
|
1398 |
+
|
1399 |
+
|
1400 |
+
'url' => '<g:plusone annotation="bubble" href="PERMALINKCOUNT" size="medium"></g:plusone>',
|
1401 |
+
|
1402 |
+
|
1403 |
+
|
1404 |
+
/*
|
1405 |
+
|
1406 |
+
|
1407 |
+
|
1408 |
+
<script type="text/javascript">
|
1409 |
+
|
1410 |
+
|
1411 |
+
|
1412 |
+
window.___gcfg = {
|
1413 |
+
|
1414 |
+
|
1415 |
+
|
1416 |
+
lang: \'en-US\'
|
1417 |
+
|
1418 |
+
|
1419 |
+
|
1420 |
+
};
|
1421 |
+
|
1422 |
+
|
1423 |
+
|
1424 |
+
(function() {
|
1425 |
+
|
1426 |
+
|
1427 |
+
|
1428 |
+
var po = document.createElement(\'script\'); po.type = \'text/javascript\'; po.async = true;
|
1429 |
+
|
1430 |
+
|
1431 |
+
|
1432 |
+
po.src = \'https://apis.google.com/js/plusone.js\';
|
1433 |
+
|
1434 |
+
|
1435 |
+
|
1436 |
+
var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(po, s);
|
1437 |
+
|
1438 |
+
|
1439 |
+
|
1440 |
+
})();
|
1441 |
+
|
1442 |
+
|
1443 |
+
|
1444 |
+
</script>
|
1445 |
+
|
1446 |
+
|
1447 |
+
|
1448 |
+
',*/
|
1449 |
+
|
1450 |
+
|
1451 |
+
|
1452 |
+
'description' => 'Google Bookmarks',
|
1453 |
+
|
1454 |
+
|
1455 |
+
|
1456 |
+
'spriteCoordinates' => Array(
|
1457 |
+
|
1458 |
+
|
1459 |
+
|
1460 |
+
'16' => array("-96px","0px"),
|
1461 |
+
|
1462 |
+
|
1463 |
+
|
1464 |
+
'32' => array("-192px","0px"),
|
1465 |
+
|
1466 |
+
|
1467 |
+
|
1468 |
+
'48' => array("-288px","0px"),
|
1469 |
+
|
1470 |
+
|
1471 |
+
|
1472 |
+
'64' => array("-384px","0px")
|
1473 |
+
|
1474 |
+
|
1475 |
+
|
1476 |
+
)
|
1477 |
+
|
1478 |
+
|
1479 |
+
|
1480 |
+
),
|
1481 |
+
|
1482 |
+
|
1483 |
+
|
1484 |
+
|
1485 |
+
|
1486 |
+
|
1487 |
+
|
1488 |
+
'HackerNews' => Array(
|
1489 |
+
|
1490 |
+
|
1491 |
+
|
1492 |
+
'favicon' => 'hacker_news.png',
|
1493 |
+
|
1494 |
+
|
1495 |
+
|
1496 |
+
'url' => 'http://news.ycombinator.com/submitlink?u=PERMALINK&t=TITLE',
|
1497 |
+
|
1498 |
+
|
1499 |
+
|
1500 |
+
'spriteCoordinates' => Array(
|
1501 |
+
|
1502 |
+
|
1503 |
+
|
1504 |
+
'16' => array("-128px","0px"),
|
1505 |
+
|
1506 |
+
|
1507 |
+
|
1508 |
+
'32' => array("-256px","0px"),
|
1509 |
+
|
1510 |
+
|
1511 |
+
|
1512 |
+
'48' => array("-384px","0px"),
|
1513 |
+
|
1514 |
+
|
1515 |
+
|
1516 |
+
'64' => array("-512px","0px")
|
1517 |
+
|
1518 |
+
|
1519 |
+
|
1520 |
+
)
|
1521 |
+
|
1522 |
+
|
1523 |
+
|
1524 |
+
),
|
1525 |
+
|
1526 |
+
|
1527 |
+
|
1528 |
+
'MSNReporter' => Array(
|
1529 |
+
|
1530 |
+
|
1531 |
+
|
1532 |
+
'favicon' => 'msn.png',
|
1533 |
+
|
1534 |
+
|
1535 |
+
|
1536 |
+
'url' => 'http://reporter.es.msn.com/?fn=contribute&Title=TITLE&URL=PERMALINK&cat_id=6&tag_id=31&Remark=EXCERPT',
|
1537 |
+
|
1538 |
+
|
1539 |
+
|
1540 |
+
'description' => 'MSN Reporter',
|
1541 |
+
|
1542 |
+
|
1543 |
+
|
1544 |
+
'spriteCoordinates' => Array(
|
1545 |
+
|
1546 |
+
|
1547 |
+
|
1548 |
+
'16' => array("-176px","0px"),
|
1549 |
+
|
1550 |
+
|
1551 |
+
|
1552 |
+
'32' => array("-352px","0px"),
|
1553 |
+
|
1554 |
+
|
1555 |
+
|
1556 |
+
'48' => array("-528px","0px"),
|
1557 |
+
|
1558 |
+
|
1559 |
+
|
1560 |
+
'64' => array("-704px","0px")
|
1561 |
+
|
1562 |
+
|
1563 |
+
|
1564 |
+
)
|
1565 |
+
|
1566 |
+
|
1567 |
+
|
1568 |
+
),
|
1569 |
+
|
1570 |
+
|
1571 |
+
|
1572 |
+
|
1573 |
+
|
1574 |
+
|
1575 |
+
|
1576 |
+
'BlinkList' => Array(
|
1577 |
+
|
1578 |
+
|
1579 |
+
|
1580 |
+
'favicon' => 'blinklist.png',
|
1581 |
+
|
1582 |
+
|
1583 |
+
|
1584 |
+
'url' => 'http://www.blinklist.com/index.php?Action=Blink/addblink.php&Url=PERMALINK&Title=TITLE',
|
1585 |
+
|
1586 |
+
|
1587 |
+
|
1588 |
+
'spriteCoordinates' => Array(
|
1589 |
+
|
1590 |
+
|
1591 |
+
|
1592 |
+
'16' => array("0px","0px"),
|
1593 |
+
|
1594 |
+
|
1595 |
+
|
1596 |
+
'32' => array("0px","0px"),
|
1597 |
+
|
1598 |
+
|
1599 |
+
|
1600 |
+
'48' => array("0px","0px"),
|
1601 |
+
|
1602 |
+
|
1603 |
+
|
1604 |
+
'64' => array("0px","0px")
|
1605 |
+
|
1606 |
+
|
1607 |
+
|
1608 |
+
),
|
1609 |
+
|
1610 |
+
|
1611 |
+
|
1612 |
+
'supportsIframe' => false,
|
1613 |
+
|
1614 |
+
|
1615 |
+
|
1616 |
+
),
|
1617 |
+
|
1618 |
+
|
1619 |
+
|
1620 |
+
'Sphinn' => Array(
|
1621 |
+
|
1622 |
+
|
1623 |
+
|
1624 |
+
'favicon' => 'sphinn.png',
|
1625 |
+
|
1626 |
+
|
1627 |
+
|
1628 |
+
'url' => 'http://sphinn.com/index.php?c=post&m=submit&link=PERMALINK',
|
1629 |
+
|
1630 |
+
|
1631 |
+
|
1632 |
+
'spriteCoordinates' => Array(
|
1633 |
+
|
1634 |
+
|
1635 |
+
|
1636 |
+
'16' => array("-96px","-16px"),
|
1637 |
+
|
1638 |
+
|
1639 |
+
|
1640 |
+
'32' => array("-192px","-32px"),
|
1641 |
+
|
1642 |
+
|
1643 |
+
|
1644 |
+
'48' => array("-288px","-48px"),
|
1645 |
+
|
1646 |
+
|
1647 |
+
|
1648 |
+
'64' => array("-384px","-64px")
|
1649 |
+
|
1650 |
+
|
1651 |
+
|
1652 |
+
)
|
1653 |
+
|
1654 |
+
|
1655 |
+
|
1656 |
+
),
|
1657 |
+
|
1658 |
+
|
1659 |
+
|
1660 |
+
|
1661 |
+
|
1662 |
+
|
1663 |
+
|
1664 |
+
'Posterous' => Array(
|
1665 |
+
|
1666 |
+
|
1667 |
+
|
1668 |
+
'favicon' => 'posterous.png',
|
1669 |
+
|
1670 |
+
|
1671 |
+
|
1672 |
+
'url' => 'http://posterous.com/share?linkto=PERMALINK&title=TITLE&selection=EXCERPT',
|
1673 |
+
|
1674 |
+
|
1675 |
+
|
1676 |
+
'spriteCoordinates' => Array(
|
1677 |
+
|
1678 |
+
|
1679 |
+
|
1680 |
+
'16' => array("-32px","-16px"),
|
1681 |
+
|
1682 |
+
|
1683 |
+
|
1684 |
+
'32' => array("-64px","-32px"),
|
1685 |
+
|
1686 |
+
|
1687 |
+
|
1688 |
+
'48' => array("-96px","-48px"),
|
1689 |
+
|
1690 |
+
|
1691 |
+
|
1692 |
+
'64' => array("-128px","-64px")
|
1693 |
+
|
1694 |
+
|
1695 |
+
|
1696 |
+
)
|
1697 |
+
|
1698 |
+
|
1699 |
+
|
1700 |
+
),
|
1701 |
+
|
1702 |
+
|
1703 |
+
|
1704 |
+
'Tumblr' => Array(
|
1705 |
+
|
1706 |
+
|
1707 |
+
|
1708 |
+
'favicon' => 'tumblr.png',
|
1709 |
+
|
1710 |
+
|
1711 |
+
|
1712 |
+
'url' => 'http://www.tumblr.com/share?v=3&u=PERMALINK&t=TITLE&s=EXCERPT',
|
1713 |
+
|
1714 |
+
|
1715 |
+
|
1716 |
+
'spriteCoordinates' => Array(
|
1717 |
+
|
1718 |
+
|
1719 |
+
|
1720 |
+
'16' => array("-128px","-16px"),
|
1721 |
+
|
1722 |
+
|
1723 |
+
|
1724 |
+
'32' => array("-256px","-32px"),
|
1725 |
+
|
1726 |
+
|
1727 |
+
|
1728 |
+
'48' => array("-384px","-48px"),
|
1729 |
+
|
1730 |
+
|
1731 |
+
|
1732 |
+
'64' => array("-512px","-64px")
|
1733 |
+
|
1734 |
+
|
1735 |
+
|
1736 |
+
),
|
1737 |
+
|
1738 |
+
|
1739 |
+
|
1740 |
+
'supportsIframe' => false
|
1741 |
+
|
1742 |
+
|
1743 |
+
|
1744 |
+
),
|
1745 |
+
|
1746 |
+
|
1747 |
+
|
1748 |
+
'email' => Array(
|
1749 |
+
|
1750 |
+
|
1751 |
+
|
1752 |
+
'favicon' => 'gmail.png',
|
1753 |
+
|
1754 |
+
|
1755 |
+
|
1756 |
+
'url' => 'https://mail.google.com/mail/?view=cm&fs=1&to&su=TITLE&body=PERMALINK&ui=2&tf=1&shva=1',
|
1757 |
+
|
1758 |
+
|
1759 |
+
|
1760 |
+
'spriteCoordinates' => Array(
|
1761 |
+
|
1762 |
+
|
1763 |
+
|
1764 |
+
'16' => array("-80px","0px"),
|
1765 |
+
|
1766 |
+
|
1767 |
+
|
1768 |
+
'32' => array("-160px","0px"),
|
1769 |
+
|
1770 |
+
|
1771 |
+
|
1772 |
+
'48' => array("-240px","0px"),
|
1773 |
+
|
1774 |
+
|
1775 |
+
|
1776 |
+
'64' => array("-320px","0px")
|
1777 |
+
|
1778 |
+
|
1779 |
+
|
1780 |
+
),
|
1781 |
+
|
1782 |
+
|
1783 |
+
|
1784 |
+
'supportsIframe' => false
|
1785 |
+
|
1786 |
+
|
1787 |
+
|
1788 |
+
),
|
1789 |
+
|
1790 |
+
|
1791 |
+
|
1792 |
+
|
1793 |
+
|
1794 |
+
|
1795 |
+
|
1796 |
+
'Google Reader' => array (
|
1797 |
+
|
1798 |
+
|
1799 |
+
|
1800 |
+
'favicon' => 'googlebuzz.png',
|
1801 |
+
|
1802 |
+
|
1803 |
+
|
1804 |
+
'url' => 'http://www.google.com/reader/link?url=PERMALINK&title=TITLE&srcURL=PERMALINK&srcTitle=BLOGNAME',
|
1805 |
+
|
1806 |
+
|
1807 |
+
|
1808 |
+
'spriteCoordinates' => Array(
|
1809 |
+
|
1810 |
+
|
1811 |
+
|
1812 |
+
'16' => array("-112px","0px"),
|
1813 |
+
|
1814 |
+
|
1815 |
+
|
1816 |
+
'32' => array("-224px","0px"),
|
1817 |
+
|
1818 |
+
|
1819 |
+
|
1820 |
+
'48' => array("-336px","0px"),
|
1821 |
+
|
1822 |
+
|
1823 |
+
|
1824 |
+
'64' => array("-448px","0px")
|
1825 |
+
|
1826 |
+
|
1827 |
+
|
1828 |
+
)
|
1829 |
+
|
1830 |
+
|
1831 |
+
|
1832 |
+
),
|
1833 |
+
|
1834 |
+
|
1835 |
+
|
1836 |
+
'Add to favorites' => array(
|
1837 |
+
|
1838 |
+
|
1839 |
+
|
1840 |
+
'favicon' => 'favorites.png',
|
1841 |
+
|
1842 |
+
|
1843 |
+
|
1844 |
+
'url' => 'javascript:AddToFavorites();',
|
1845 |
+
|
1846 |
+
|
1847 |
+
|
1848 |
+
'spriteCoordinates' => Array(
|
1849 |
+
|
1850 |
+
|
1851 |
+
|
1852 |
+
'16' => array("-64px","0px"),
|
1853 |
+
|
1854 |
+
|
1855 |
+
|
1856 |
+
'32' => array("-128px","0px"),
|
1857 |
+
|
1858 |
+
|
1859 |
+
|
1860 |
+
'48' => array("-192px","0px"),
|
1861 |
+
|
1862 |
+
|
1863 |
+
|
1864 |
+
'64' => array("-256px","0px")
|
1865 |
+
|
1866 |
+
|
1867 |
|
1868 |
+
)
|
1869 |
+
|
1870 |
+
|
1871 |
+
|
1872 |
+
),
|
1873 |
+
|
1874 |
+
|
1875 |
+
|
1876 |
+
'More' => array(
|
1877 |
+
|
1878 |
+
|
1879 |
+
|
1880 |
+
'favicon' => 'more.png',
|
1881 |
+
|
1882 |
+
|
1883 |
+
|
1884 |
+
'url' => 'javascript:more();',
|
1885 |
+
|
1886 |
+
|
1887 |
+
|
1888 |
+
'spriteCoordinates' => Array(
|
1889 |
+
|
1890 |
+
|
1891 |
+
|
1892 |
+
'16' => array("0px","0px"),
|
1893 |
+
|
1894 |
+
|
1895 |
+
|
1896 |
+
'32' => array("0px","0px"),
|
1897 |
+
|
1898 |
+
|
1899 |
+
|
1900 |
+
'48' => array("0px","0px"),
|
1901 |
+
|
1902 |
+
|
1903 |
+
|
1904 |
+
'64' => array("0px","0px")
|
1905 |
|
|
|
1906 |
|
|
|
1907 |
|
1908 |
)
|
1909 |
|
|
|
1910 |
|
1911 |
|
1912 |
+
),
|
1913 |
|
|
|
1914 |
|
|
|
1915 |
|
1916 |
+
);
|
1917 |
+
|
1918 |
+
|
1919 |
+
|
1920 |
+
|
1921 |
+
|
1922 |
+
|
1923 |
+
|
1924 |
+
|
1925 |
+
|
1926 |
+
|
1927 |
+
|
1928 |
+
|
1929 |
+
|
1930 |
+
|
1931 |
+
|
1932 |
+
|
1933 |
+
|
1934 |
+
|
1935 |
+
|
1936 |
+
|
1937 |
+
|
1938 |
+
|
1939 |
+
|
1940 |
+
//Update will create if it doesn't exist.
|
1941 |
+
|
1942 |
+
|
1943 |
+
|
1944 |
+
|
1945 |
+
|
1946 |
+
|
1947 |
+
|
1948 |
+
|
1949 |
+
|
1950 |
+
|
1951 |
+
|
1952 |
+
update_option( 'sociable_known_sites' , $sociable_known_sites );
|
1953 |
+
|
1954 |
+
|
1955 |
+
|
1956 |
+
|
1957 |
+
|
1958 |
+
|
1959 |
+
|
1960 |
+
update_option( 'sociable_options' , $sociable_options );
|
1961 |
+
|
1962 |
+
|
1963 |
+
|
1964 |
+
|
1965 |
+
|
1966 |
+
|
1967 |
+
|
1968 |
+
update_option( 'sociable_helpus' , 1);
|
1969 |
+
|
1970 |
+
|
1971 |
+
|
1972 |
+
|
1973 |
+
|
1974 |
+
|
1975 |
+
|
1976 |
+
}
|
1977 |
+
|
1978 |
+
|
1979 |
+
|
1980 |
+
function skyscraper_reset(){
|
1981 |
+
|
1982 |
+
|
1983 |
+
|
1984 |
+
$skyscraper_options = array(
|
1985 |
+
|
1986 |
+
|
1987 |
+
|
1988 |
+
|
1989 |
+
|
1990 |
+
|
1991 |
+
|
1992 |
+
"version" => "1.0",
|
1993 |
+
|
1994 |
+
|
1995 |
+
|
1996 |
+
|
1997 |
+
|
1998 |
+
|
1999 |
+
|
2000 |
+
"widget_width" => "60px",
|
2001 |
+
|
2002 |
+
|
2003 |
+
|
2004 |
+
|
2005 |
+
|
2006 |
+
|
2007 |
+
|
2008 |
+
"widget_position" => "1",
|
2009 |
+
|
2010 |
+
|
2011 |
+
|
2012 |
+
|
2013 |
+
|
2014 |
+
|
2015 |
+
|
2016 |
+
"background_color" => "#fefefe",
|
2017 |
+
|
2018 |
+
|
2019 |
+
|
2020 |
+
|
2021 |
+
|
2022 |
+
|
2023 |
+
|
2024 |
+
"labels_color" => "#f7f7f7",
|
2025 |
+
|
2026 |
+
|
2027 |
+
|
2028 |
+
|
2029 |
+
|
2030 |
+
|
2031 |
+
|
2032 |
+
"text_size" => "10px",
|
2033 |
+
|
2034 |
+
|
2035 |
+
|
2036 |
+
|
2037 |
+
|
2038 |
+
|
2039 |
+
|
2040 |
+
"counters" => array("check" => "0",
|
2041 |
+
|
2042 |
+
|
2043 |
+
|
2044 |
+
|
2045 |
+
|
2046 |
+
|
2047 |
+
|
2048 |
+
"folded" => "0"),
|
2049 |
+
|
2050 |
+
|
2051 |
+
|
2052 |
+
|
2053 |
+
|
2054 |
+
|
2055 |
+
|
2056 |
+
"share" => array("check" => "0",
|
2057 |
+
|
2058 |
+
|
2059 |
+
|
2060 |
+
|
2061 |
+
|
2062 |
+
|
2063 |
+
|
2064 |
+
"folded" => "0"),
|
2065 |
+
|
2066 |
+
|
2067 |
+
|
2068 |
+
|
2069 |
+
|
2070 |
+
|
2071 |
+
|
2072 |
+
"num_tweets" => 3,
|
2073 |
+
|
2074 |
+
|
2075 |
+
|
2076 |
+
|
2077 |
+
|
2078 |
+
|
2079 |
+
|
2080 |
+
"num_rss" =>3,
|
2081 |
+
|
2082 |
+
|
2083 |
+
|
2084 |
+
|
2085 |
+
|
2086 |
+
|
2087 |
+
|
2088 |
+
"locations" => array("is_front_page" => 1,
|
2089 |
+
|
2090 |
+
|
2091 |
+
|
2092 |
+
|
2093 |
+
|
2094 |
+
|
2095 |
+
|
2096 |
+
"is_home" => 1,
|
2097 |
+
|
2098 |
+
|
2099 |
+
|
2100 |
+
|
2101 |
+
|
2102 |
+
|
2103 |
+
|
2104 |
+
"is_single" => 1,
|
2105 |
+
|
2106 |
+
|
2107 |
+
|
2108 |
+
|
2109 |
+
|
2110 |
+
|
2111 |
+
|
2112 |
+
"is_page" => 1,
|
2113 |
+
|
2114 |
+
|
2115 |
+
|
2116 |
+
|
2117 |
+
|
2118 |
+
|
2119 |
+
|
2120 |
+
"is_category" => 1,
|
2121 |
+
|
2122 |
|
|
|
2123 |
|
|
|
2124 |
|
|
|
2125 |
|
|
|
2126 |
|
|
|
2127 |
|
2128 |
+
"is_date" => 1,
|
2129 |
|
|
|
2130 |
|
|
|
2131 |
|
|
|
2132 |
|
|
|
2133 |
|
|
|
2134 |
|
|
|
2135 |
|
2136 |
+
"is_tag" => 1,
|
2137 |
|
|
|
2138 |
|
|
|
2139 |
|
|
|
2140 |
|
|
|
2141 |
|
|
|
2142 |
|
2143 |
|
2144 |
+
"is_author" => 1,
|
2145 |
|
|
|
2146 |
|
|
|
2147 |
|
|
|
2148 |
|
|
|
2149 |
|
|
|
2150 |
|
2151 |
|
2152 |
+
"is_search" => 1,
|
2153 |
|
|
|
2154 |
|
|
|
2155 |
|
|
|
2156 |
|
|
|
2157 |
|
|
|
2158 |
|
|
|
2159 |
|
2160 |
+
"is_rss" => 1 ),
|
2161 |
|
2162 |
|
|
|
2163 |
|
2164 |
|
2165 |
|
|
|
2166 |
|
|
|
2167 |
|
2168 |
+
|
2169 |
|
|
|
2170 |
|
|
|
2171 |
|
|
|
2172 |
|
|
|
2173 |
|
|
|
2174 |
|
|
|
2175 |
|
2176 |
+
"counters" => array("check" => 1,
|
2177 |
|
2178 |
|
|
|
2179 |
|
2180 |
|
2181 |
|
|
|
2182 |
|
|
|
2183 |
|
2184 |
+
"folded" => 1),
|
2185 |
|
|
|
2186 |
|
|
|
2187 |
|
|
|
2188 |
|
|
|
2189 |
|
|
|
2190 |
|
|
|
2191 |
|
2192 |
+
"share" => array("check" => 1,
|
2193 |
|
|
|
2194 |
|
|
|
2195 |
|
|
|
2196 |
|
2197 |
|
2198 |
|
|
|
2199 |
|
2200 |
+
"folded" => 1),
|
2201 |
|
2202 |
+
"sociable_banner" => "",
|
2203 |
|
2204 |
+
|
2205 |
|
2206 |
+
"sociable_banner_timer" => 15,
|
2207 |
|
2208 |
+
|
2209 |
|
2210 |
+
"sociable_banner_text" => 'Please spread the word: Be Sociable, Share!',
|
2211 |
|
2212 |
+
|
2213 |
|
2214 |
+
"sociable_banner_colorBack" => '#FFFFFF',
|
2215 |
|
2216 |
+
|
2217 |
|
2218 |
+
"sociable_banner_fontSize" => '9px',
|
2219 |
|
2220 |
+
|
2221 |
|
2222 |
+
"sociable_banner_colorLabel" => '#F7F7F7',
|
2223 |
|
2224 |
+
|
2225 |
|
2226 |
+
"sociable_banner_colorFont" => '#6A6A6A',
|
2227 |
+
|
2228 |
+
"accept_read_twitter" => '',
|
2229 |
+
|
2230 |
+
"accept_read_rss" => ''
|
2231 |
|
2232 |
+
|
2233 |
+
);
|
2234 |
|
|
|
2235 |
|
|
|
2236 |
|
2237 |
+
update_option( 'skyscraper_options' , $skyscraper_options );
|
2238 |
|
|
|
2239 |
|
|
|
2240 |
|
|
|
2241 |
|
|
|
2242 |
|
|
|
2243 |
|
|
|
2244 |
|
2245 |
+
|
2246 |
|
|
|
2247 |
|
|
|
2248 |
|
|
|
2249 |
|
|
|
2250 |
|
|
|
2251 |
|
|
|
2252 |
|
2253 |
+
|
2254 |
|
|
|
2255 |
|
|
|
2256 |
|
|
|
2257 |
|
|
|
2258 |
|
|
|
2259 |
|
|
|
2260 |
|
2261 |
+
$skyscraper_latest = array();
|
2262 |
|
|
|
2263 |
|
|
|
2264 |
|
|
|
2265 |
|
|
|
2266 |
|
|
|
2267 |
|
|
|
2268 |
|
2269 |
+
update_option("skyscraper_latest",$skyscraper_latest );
|
2270 |
|
|
|
2271 |
|
|
|
2272 |
|
|
|
2273 |
|
|
|
2274 |
|
|
|
2275 |
|
|
|
2276 |
|
2277 |
+
|
2278 |
|
|
|
2279 |
|
|
|
2280 |
|
|
|
2281 |
|
|
|
2282 |
|
|
|
2283 |
|
|
|
2284 |
|
2285 |
+
$skyscraper_mentions = array();
|
2286 |
|
2287 |
|
2288 |
|
|
|
2289 |
|
|
|
2290 |
|
|
|
2291 |
|
|
|
2292 |
|
2293 |
+
update_option("skyscraper_mentions",$skyscraper_mentions );
|
2294 |
|
|
|
2295 |
|
|
|
2296 |
|
|
|
2297 |
|
|
|
2298 |
|
|
|
2299 |
|
|
|
2300 |
|
2301 |
+
}
|
2302 |
|
|
|
2303 |
|
|
|
2304 |
|
2305 |
+
/*
|
2306 |
|
|
|
2307 |
|
|
|
2308 |
|
|
|
2309 |
|
|
|
2310 |
|
|
|
2311 |
|
|
|
2312 |
|
2313 |
+
* De-Activate Function
|
2314 |
|
|
|
2315 |
|
|
|
2316 |
|
|
|
2317 |
|
|
|
2318 |
|
|
|
2319 |
|
|
|
2320 |
|
2321 |
+
*/
|
2322 |
|
|
|
2323 |
|
|
|
2324 |
|
|
|
2325 |
|
|
|
2326 |
|
|
|
2327 |
|
|
|
2328 |
|
2329 |
+
function sociable_deactivate(){
|
2330 |
|
|
|
2331 |
|
|
|
2332 |
|
|
|
2333 |
|
|
|
2334 |
|
|
|
2335 |
|
|
|
2336 |
|
2337 |
+
// global $wpdb;
|
2338 |
|
|
|
2339 |
|
|
|
2340 |
|
|
|
2341 |
|
|
|
2342 |
|
|
|
2343 |
|
|
|
2344 |
|
2345 |
+
// //Delete The Metadata
|
2346 |
|
|
|
2347 |
|
|
|
2348 |
|
|
|
2349 |
|
|
|
2350 |
|
|
|
2351 |
|
|
|
2352 |
|
2353 |
+
// $wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key = '_sociableoff'");
|
2354 |
|
|
|
2355 |
|
|
|
2356 |
|
|
|
2357 |
|
|
|
2358 |
|
|
|
2359 |
|
|
|
2360 |
|
2361 |
+
// //delete The Options
|
2362 |
|
|
|
2363 |
|
|
|
2364 |
|
|
|
2365 |
|
|
|
2366 |
|
|
|
2367 |
|
|
|
2368 |
|
2369 |
+
// return delete_option( 'sociable_options' );
|
2370 |
|
|
|
2371 |
|
|
|
2372 |
|
|
|
2373 |
|
|
|
2374 |
|
|
|
2375 |
|
|
|
2376 |
|
2377 |
+
}
|
2378 |
|
|
|
2379 |
|
|
|
2380 |
|
2381 |
+
/*
|
2382 |
|
|
|
2383 |
|
|
|
2384 |
|
|
|
2385 |
|
|
|
2386 |
|
|
|
2387 |
|
|
|
2388 |
|
2389 |
+
* Function To Completely Remove The Options
|
2390 |
|
|
|
2391 |
|
|
|
2392 |
|
|
|
2393 |
|
|
|
2394 |
|
|
|
2395 |
|
|
|
2396 |
|
2397 |
+
*/
|
2398 |
|
|
|
2399 |
|
|
|
2400 |
|
|
|
2401 |
|
|
|
2402 |
|
|
|
2403 |
|
|
|
2404 |
|
2405 |
+
function sociable_2_remove(){
|
2406 |
|
|
|
2407 |
|
|
|
2408 |
|
|
|
2409 |
|
|
|
2410 |
|
|
|
2411 |
|
|
|
2412 |
|
2413 |
+
require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
|
2414 |
|
|
|
2415 |
|
|
|
2416 |
|
|
|
2417 |
|
|
|
2418 |
|
|
|
2419 |
|
|
|
2420 |
|
2421 |
+
|
2422 |
|
|
|
2423 |
|
|
|
2424 |
|
|
|
2425 |
|
|
|
2426 |
|
|
|
2427 |
|
|
|
2428 |
|
2429 |
+
global $wpdb;
|
2430 |
|
|
|
2431 |
|
|
|
2432 |
|
|
|
2433 |
|
|
|
2434 |
|
|
|
2435 |
|
|
|
2436 |
|
2437 |
+
//Delete The Metadata
|
2438 |
|
|
|
2439 |
|
2440 |
|
2441 |
|
|
|
2442 |
|
2443 |
|
2444 |
|
2445 |
+
$wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key = '_sociableoff'");
|
2446 |
|
2447 |
|
2448 |
|
|
|
2449 |
|
|
|
2450 |
|
2451 |
|
2452 |
|
2453 |
+
//delete The Options
|
2454 |
|
2455 |
|
2456 |
|
|
|
2457 |
|
2458 |
|
2459 |
|
|
|
2460 |
|
2461 |
+
delete_option( 'sociable_options' );
|
2462 |
|
2463 |
|
|
|
2464 |
|
|
|
2465 |
|
|
|
2466 |
|
2467 |
|
2468 |
|
2469 |
+
delete_option( 'skyscraper_options' );
|
2470 |
|
2471 |
|
2472 |
|
|
|
2473 |
|
2474 |
|
2475 |
|
|
|
2476 |
|
2477 |
+
|
2478 |
|
2479 |
|
|
|
2480 |
|
2481 |
|
2482 |
|
|
|
2483 |
|
2484 |
|
2485 |
+
|
2486 |
|
|
|
2487 |
|
2488 |
|
2489 |
+
deactivate_plugins( array( 'sociable/sociable.php' ) );
|
2490 |
|
|
|
2491 |
|
2492 |
|
2493 |
|
|
|
2494 |
|
2495 |
|
2496 |
|
2497 |
+
wp_redirect( '/wp-admin/plugins.php?deactivate=true' );
|
2498 |
|
2499 |
|
2500 |
|
|
|
2501 |
|
2502 |
|
2503 |
|
|
|
2504 |
|
2505 |
+
}
|
2506 |
|
2507 |
|
|
|
2508 |
|
2509 |
+
/*
|
2510 |
|
2511 |
|
|
|
2512 |
|
2513 |
|
2514 |
|
|
|
2515 |
|
2516 |
|
2517 |
+
* Generic Plugin Wide Functions
|
2518 |
|
|
|
2519 |
|
2520 |
|
2521 |
|
|
|
2522 |
|
2523 |
|
2524 |
|
2525 |
+
*/
|
2526 |
|
2527 |
|
2528 |
|
|
|
2529 |
|
2530 |
|
2531 |
|
|
|
2532 |
|
2533 |
+
function _get_sociable_image_path(){
|
2534 |
|
2535 |
|
|
|
2536 |
|
2537 |
+
global $sociable_options;
|
2538 |
|
2539 |
|
|
|
2540 |
|
2541 |
+
|
2542 |
|
2543 |
|
|
|
2544 |
|
2545 |
+
if( empty( $sociable_options['custom_icons'] )){
|
2546 |
|
2547 |
|
|
|
2548 |
|
2549 |
+
if ($sociable_options['icon_option'] !="option6"){
|
2550 |
|
2551 |
|
|
|
2552 |
|
2553 |
+
$path = trailingslashit( SOCIABLE_HTTP_PATH . 'images/'.$sociable_options['icon_option']."/" . $sociable_options['icon_size'] );
|
2554 |
|
2555 |
|
|
|
2556 |
|
2557 |
+
}else{
|
2558 |
|
2559 |
|
|
|
2560 |
|
2561 |
+
|
2562 |
|
2563 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2564 |
|
2565 |
+
$path = trailingslashit( SOCIABLE_HTTP_PATH . 'images/original/');
|
2566 |
|
2567 |
|
2568 |
|
2569 |
+
}
|
2570 |
|
2571 |
|
2572 |
|
2573 |
+
} else {
|
2574 |
|
2575 |
|
2576 |
|
2577 |
+
$path = trailingslashit( SOCIABLE_HTTP_PATH . 'images/customIcons/');
|
2578 |
|
2579 |
|
2580 |
|
2581 |
+
}
|
2582 |
|
2583 |
|
2584 |
|
2585 |
+
|
2586 |
|
2587 |
|
2588 |
|
2589 |
+
|
2590 |
|
2591 |
|
2592 |
|
2593 |
+
return $path;
|
2594 |
|
2595 |
|
2596 |
|
2597 |
}
|
2598 |
|
|
|
|
|
2599 |
|
2600 |
|
2601 |
+
function _get_sociable_image( $site, $description ){
|
2602 |
|
2603 |
|
2604 |
|
2605 |
+
global $sociable_options;
|
2606 |
|
2607 |
|
2608 |
|
2609 |
+
$imageclass = '';
|
2610 |
|
2611 |
|
2612 |
|
|
|
2613 |
|
2614 |
|
2615 |
|
|
|
2616 |
|
2617 |
+
$imagestyle = '';
|
2618 |
|
2619 |
|
|
|
2620 |
|
2621 |
|
2622 |
|
|
|
2623 |
|
2624 |
|
2625 |
+
$imagepath = _get_sociable_image_path();
|
2626 |
|
|
|
2627 |
|
2628 |
|
2629 |
|
|
|
2630 |
|
|
|
2631 |
|
2632 |
|
2633 |
+
//Get The Source Of The Image
|
2634 |
|
|
|
2635 |
|
2636 |
|
2637 |
|
|
|
2638 |
|
2639 |
|
2640 |
|
2641 |
+
if ( ! isset( $site['spriteCoordinates'] ) || ! isset( $sociable_options['use_sprites'] ) || is_feed() ) {
|
2642 |
|
2643 |
|
2644 |
|
2645 |
+
if ( strpos( $site['favicon'], 'http' ) === 0 ) {
|
2646 |
|
2647 |
|
2648 |
|
|
|
2649 |
|
2650 |
|
2651 |
|
|
|
2652 |
|
2653 |
+
$imagesource = $site['favicon'];
|
2654 |
|
2655 |
|
|
|
2656 |
|
2657 |
|
2658 |
|
|
|
2659 |
|
2660 |
|
2661 |
+
} else {
|
2662 |
|
|
|
2663 |
|
2664 |
|
2665 |
|
|
|
2666 |
|
2667 |
|
2668 |
|
2669 |
+
$imagesource = $imagepath.$site['favicon'];
|
2670 |
|
2671 |
|
2672 |
|
|
|
2673 |
|
2674 |
|
2675 |
|
|
|
2676 |
|
2677 |
+
}
|
2678 |
|
2679 |
|
2680 |
|
2681 |
+
} else {
|
2682 |
|
2683 |
|
2684 |
|
2685 |
+
$imagesource = $imagepath . "services-sprite.gif";
|
2686 |
|
|
|
2687 |
|
2688 |
|
2689 |
|
|
|
2690 |
|
2691 |
|
2692 |
|
2693 |
+
$services_sprite_url = $imagepath . "sprite.png";
|
2694 |
|
2695 |
|
2696 |
|
2697 |
+
$spriteCoords = $site['spriteCoordinates'];
|
2698 |
|
|
|
2699 |
|
|
|
2700 |
|
|
|
2701 |
|
|
|
2702 |
|
|
|
2703 |
|
|
|
2704 |
|
2705 |
+
|
2706 |
|
|
|
2707 |
|
|
|
2708 |
|
|
|
2709 |
|
|
|
2710 |
|
|
|
2711 |
|
|
|
2712 |
|
2713 |
+
$size = $sociable_options['icon_size'];
|
2714 |
|
|
|
2715 |
|
|
|
2716 |
|
2717 |
+
$imagestyle = 'width: ' . $size . 'px; height: ' . $size . 'px; background: transparent url(' . $services_sprite_url . ') no-repeat; background-position:' . $spriteCoords[$size] . 'px 0';
|
2718 |
|
|
|
2719 |
|
|
|
2720 |
|
2721 |
+
}
|
2722 |
|
2723 |
|
|
|
2724 |
|
2725 |
|
2726 |
|
|
|
2727 |
|
2728 |
|
2729 |
+
|
2730 |
|
|
|
2731 |
|
2732 |
|
2733 |
+
if( isset( $sociable_options['use_alphamask'] ) ){
|
2734 |
|
|
|
2735 |
|
|
|
2736 |
|
2737 |
|
2738 |
|
|
|
2739 |
|
2740 |
|
2741 |
+
$imageclass .= 'sociable-hovers';
|
2742 |
|
|
|
2743 |
|
2744 |
|
2745 |
|
|
|
2746 |
|
2747 |
|
2748 |
|
2749 |
+
}
|
2750 |
|
|
|
2751 |
|
|
|
2752 |
|
2753 |
+
//If A Class Has Been Specified, Ensure It Is Added To The Class Attribute.
|
2754 |
|
2755 |
|
|
|
2756 |
|
|
|
2757 |
|
2758 |
|
2759 |
|
|
|
2760 |
|
2761 |
+
if ( isset( $site['class'] ) ) {
|
2762 |
|
2763 |
|
|
|
2764 |
|
|
|
2765 |
|
|
|
2766 |
|
2767 |
|
2768 |
|
2769 |
+
$imageclass .= 'sociable_' . $site['class'];
|
2770 |
|
|
|
2771 |
|
2772 |
|
2773 |
|
|
|
2774 |
|
2775 |
|
2776 |
|
2777 |
}
|
2778 |
|
|
|
2779 |
|
2780 |
|
2781 |
+
if( $imagestyle != '' ){
|
2782 |
|
|
|
2783 |
|
2784 |
|
2785 |
|
|
|
2786 |
|
2787 |
|
2788 |
|
2789 |
+
$imagestyle = 'style="' . $imagestyle . '"';
|
2790 |
|
|
|
2791 |
|
2792 |
|
2793 |
|
|
|
2794 |
|
2795 |
|
2796 |
|
2798 |
|
2799 |
|
2800 |
|
2801 |
+
|
2802 |
+
|
2803 |
+
|
2804 |
+
|
2805 |
if ($sociable_options['icon_option'] !="option6"){
|
2806 |
|
2807 |
+
|
2808 |
+
|
2809 |
$image = '<img src="' . $imagesource . '" title="' . $description . '" alt="' . $description . '"' . $imagestyle . ' />' ;
|
2810 |
|
2811 |
+
|
2812 |
+
|
2813 |
}else{
|
2814 |
|
2815 |
+
|
2816 |
+
|
2817 |
$image = '<img class="' . $imageclass . '" src="' . $imagesource . '" title="' . $description . '" alt="' . $description . '"' . $imagestyle . ' />' ;
|
2818 |
|
2819 |
+
|
2820 |
+
|
2821 |
}
|
2822 |
|
2823 |
|
2824 |
|
2825 |
+
|
2826 |
+
|
2827 |
+
|
2828 |
+
|
2829 |
|
2830 |
|
2831 |
|
2832 |
|
2833 |
+
|
2834 |
+
|
2835 |
+
|
2836 |
+
|
2837 |
return $image;
|
2838 |
|
2839 |
|
2840 |
|
2841 |
+
|
2842 |
+
|
2843 |
+
|
2844 |
+
|
2845 |
}
|
2846 |
|
2847 |
+
|
2848 |
+
|
2849 |
?>
|