Sociable - Version 4.2.2

Version Description

  • Social Banner and settings
  • Inbound icon
  • FIXED: Some Fixes
Download this release

Release Info

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

Code changes from version 4.2.1 to 4.2.2

css/sociable-admin.css CHANGED
@@ -1,78 +1,159 @@
1
  .sociablemenu li {
 
2
 
 
3
  }
 
4
  #sociable_site_list {
 
5
  list-style-type: none;
 
6
  margin: 0 auto;
 
7
  padding: 0;
 
8
  font-size: 80%;
 
9
 
 
10
  }
 
11
  #sociable_site_list li {
 
12
  list-style-type: none;
 
13
  cursor: move;
 
14
  float: left;
 
15
  margin: 2px 2px 0 0;
 
16
  width: 153px;
 
17
  height:45px;
 
18
  text-align: left;
 
19
  font-size: 10px;
 
20
  padding: 4px;
 
21
 
 
22
  }
 
23
  #sociable_site_list li img {
 
24
  margin-right:6px;
 
25
  }
 
26
  #sociable_site_list .active {
 
27
 
 
28
  behavior: url('../wp-content/plugins/sociable/css/pie.htc');
 
29
  -moz-border-radius: 5px;
 
30
  -webkit-border-radius: 5px;
 
31
  border-radius: 5px 5px 5px 5px;
 
32
  background:#6da6d1;
 
33
 
 
34
  }
 
35
  #sociable_site_list .active img {
 
36
  opacity: 1;
 
37
  -moz-opacity: 1;
 
38
  filter:alpha(opacity=100);
 
39
 
 
40
  }
 
41
  #sociable_site_list .inactive {
42
 
 
 
43
  behavior: url('../wp-content/plugins/sociable/css/pie.htc');
 
44
  -moz-border-radius: 5px;
 
45
  -webkit-border-radius: 5px;
 
46
  border-radius: 5px 5px 5px 5px;
 
47
  background:#dddddd;
 
48
 
 
49
 
 
50
  }
 
51
  #sociable_site_list .inactive img {
 
52
  opacity: .4;
 
53
  -moz-opacity: .4;
 
54
  filter:alpha(opacity=40);
 
55
 
 
56
  }
 
57
  #sociable_site_list li input {
 
58
  height: 12px;
 
59
  margin: 0 5px 8px 0;
 
60
  padding: 0;
 
61
  background: transparent;
 
62
  border: none;
 
63
  }
64
 
 
 
65
  .soc_clear{
 
66
  clear:both;
 
67
  }
68
 
 
 
69
  .items_li{
 
70
  font-size:16px;
 
71
  }
 
72
  .sub_item_li {
73
 
74
  margin-bottom: 16px;
 
75
  margin-left: 54px;
 
76
  margin-top: 6px;
 
77
  font-size: 14px;
 
 
 
 
 
 
 
78
  }
1
  .sociablemenu li {
2
+
3
 
4
+
5
  }
6
+
7
  #sociable_site_list {
8
+
9
  list-style-type: none;
10
+
11
  margin: 0 auto;
12
+
13
  padding: 0;
14
+
15
  font-size: 80%;
16
+
17
 
18
+
19
  }
20
+
21
  #sociable_site_list li {
22
+
23
  list-style-type: none;
24
+
25
  cursor: move;
26
+
27
  float: left;
28
+
29
  margin: 2px 2px 0 0;
30
+
31
  width: 153px;
32
+
33
  height:45px;
34
+
35
  text-align: left;
36
+
37
  font-size: 10px;
38
+
39
  padding: 4px;
40
+
41
 
42
+
43
  }
44
+
45
  #sociable_site_list li img {
46
+
47
  margin-right:6px;
48
+
49
  }
50
+
51
  #sociable_site_list .active {
52
+
53
 
54
+
55
  behavior: url('../wp-content/plugins/sociable/css/pie.htc');
56
+
57
  -moz-border-radius: 5px;
58
+
59
  -webkit-border-radius: 5px;
60
+
61
  border-radius: 5px 5px 5px 5px;
62
+
63
  background:#6da6d1;
64
+
65
 
66
+
67
  }
68
+
69
  #sociable_site_list .active img {
70
+
71
  opacity: 1;
72
+
73
  -moz-opacity: 1;
74
+
75
  filter:alpha(opacity=100);
76
+
77
 
78
+
79
  }
80
+
81
  #sociable_site_list .inactive {
82
 
83
+
84
+
85
  behavior: url('../wp-content/plugins/sociable/css/pie.htc');
86
+
87
  -moz-border-radius: 5px;
88
+
89
  -webkit-border-radius: 5px;
90
+
91
  border-radius: 5px 5px 5px 5px;
92
+
93
  background:#dddddd;
94
+
95
 
96
+
97
 
98
+
99
  }
100
+
101
  #sociable_site_list .inactive img {
102
+
103
  opacity: .4;
104
+
105
  -moz-opacity: .4;
106
+
107
  filter:alpha(opacity=40);
108
+
109
 
110
+
111
  }
112
+
113
  #sociable_site_list li input {
114
+
115
  height: 12px;
116
+
117
  margin: 0 5px 8px 0;
118
+
119
  padding: 0;
120
+
121
  background: transparent;
122
+
123
  border: none;
124
+
125
  }
126
 
127
+
128
+
129
  .soc_clear{
130
+
131
  clear:both;
132
+
133
  }
134
 
135
+
136
+
137
  .items_li{
138
+
139
  font-size:16px;
140
+
141
  }
142
+
143
  .sub_item_li {
144
 
145
  margin-bottom: 16px;
146
+
147
  margin-left: 54px;
148
+
149
  margin-top: 6px;
150
+
151
  font-size: 14px;
152
+
153
+ }
154
+
155
+ .default_values{
156
+ font-size: 9px;
157
+ color: #000000;
158
+ text-decoration: none;
159
  }
css/toolbar.css CHANGED
@@ -1,159 +1,424 @@
1
-
2
- .wpSocciableSmall-top{
3
- background-image:url('../images/toolbar/slide-sociable-top.png');
4
- width:62px;
5
- height:17px;
6
- background-repeat:no-repeat;
7
- border-left:solid 0px #ffffff;
8
- background-color:transparent;
9
- cursor:pointer;
10
- }
11
- .wpSocciableSmall-top-c{
12
- background-image:url('../images/toolbar/slide-sociable-top-c.png');
13
- width:70px;
14
- background-color:transparent;
15
- height:20px;
16
- border:solid 0px #ffffff;
17
- border-bottom:0px;
18
- cursor:pointer;
19
- }
20
-
21
-
22
-
23
- .wpSocciableSmall{/*
24
- background-image:url('../images/toolbar/slide-sociable.png');*/
25
- width:19px;
26
- height:66px;
27
- background-color:transparent;
28
- margin-left:-19px;
29
- /*width:30px;*/
30
- /*height:104px;*/
31
- /*margin-left:-27px;*/
32
- position:absolute;
33
- margin-top:120px;
34
- cursor:pointer;
35
- }
36
-
37
-
38
- .wpSocciableSmall-c{/*
39
- background-image:url('../images/toolbar/slide-sociable-c.png');*/
40
- width:19px;
41
- background-color:transparent;
42
- height:66px;
43
- margin-left:-18px;
44
- position:absolute;
45
- margin-top:120px;
46
- cursor:pointer;
47
- }
48
-
49
-
50
-
51
- .wpSocciableClose{
52
- /*background-image:url('../images/toolbar/slide-close.png');*/
53
- width:19px;
54
- height:17px;
55
- background-color:transparent;
56
- margin-left:-19px;
57
-
58
- position:absolute;
59
- margin-top:90px;
60
- cursor:pointer;
61
- }
62
-
63
- .wpSocciableClose-c{
64
- background-image:url('../images/toolbar/slide-close-c.png');
65
- width:19px;
66
- background-color:transparent;
67
- height:17px;
68
- margin-left:-18px;
69
- position:absolute;
70
- margin-top:90px;
71
- cursor:pointer;
72
- }
73
- .wpSocciableBig{
74
- background-image:url('../images/toolbar/slide-sociableBig.png');
75
- width:30px;
76
- background-color:transparent;
77
- height:104px;
78
- margin-left:-19px;
79
- position:absolute;
80
- margin-top:120px;
81
- cursor:pointer;
82
- }
83
-
84
- .wpSocciableBig-c{
85
- background-image:url('../images/toolbar/slide-sociableBig-c.png');
86
- width:30px;
87
- height:104px;
88
- background-color:transparent;
89
- margin-left:-19px;
90
- position:absolute;
91
- margin-top:120px;
92
- cursor:pointer;
93
- }
94
- a{
95
- text-decoration:none;
96
- }
97
-
98
- a:hover{
99
- text-decoration:underline;
100
- }
101
- ul.toolbar{
102
- margin:0px;
103
- padding:0px;
104
- list-style:none;
105
- font-family:arial;
106
- letter-spacing:-1.3px;
107
- font-weight:bold;
108
-
109
- }
110
- ul.toolbar li{
111
- margin:0px;
112
- padding:0px;
113
- }
114
- .wpPlugin-MainFrame{
115
- }
116
-
117
- ul.toolbar li.item div{
118
- margin:0px;
119
- padding:0px;
120
- }
121
- ul.toolbar li.item div.title{
122
- padding-top:2px;
123
- padding-bottom:2px;
124
- padding-left:2px;
125
- cursor:pointer;
126
- margin-bottom:2px;
127
- }
128
- ul.toolbar li.item div.boxTitle{ }
129
-
130
- ul.toolbar li.item div.boxTitleContent{
131
- padding-top:5px;
132
- padding-bottom:5px;
133
- padding-right:5px;
134
- }
135
-
136
-
137
-
138
- ul.toolbar li.item div.content{
139
- margin-bottom:5px;
140
-
141
- }
142
-
143
-
144
- ul.toolbar li.item div.title img{
145
- float:right;
146
- }
147
-
148
- ul.toolbar li div img{
149
- margin:1px;
150
- padding:0px;
151
- }
152
- .boxDialog{
153
- letter-spacing:0px;
154
- background:transparent;
155
- margin:0px;
156
- padding:0px;
157
- position:absolute;
158
-
159
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+
3
+
4
+ .wpSocciableSmall-top{
5
+
6
+
7
+ background-image:url('../images/toolbar/slide-sociable-top.png');
8
+
9
+
10
+ width:62px;
11
+
12
+
13
+ height:17px;
14
+
15
+
16
+ background-repeat:no-repeat;
17
+
18
+
19
+ border-left:solid 0px #ffffff;
20
+
21
+
22
+ background-color:transparent;
23
+
24
+
25
+ cursor:pointer;
26
+
27
+
28
+ }
29
+
30
+
31
+ .wpSocciableSmall-top-c{
32
+
33
+
34
+ background-image:url('../images/toolbar/slide-sociable-top-c.png');
35
+
36
+
37
+ width:70px;
38
+
39
+
40
+ background-color:transparent;
41
+
42
+
43
+ height:20px;
44
+
45
+
46
+ border:solid 0px #ffffff;
47
+
48
+
49
+ border-bottom:0px;
50
+
51
+
52
+ cursor:pointer;
53
+
54
+
55
+ }
56
+
57
+ .wpSocciableSmall{/*
58
+
59
+
60
+ background-image:url('../images/toolbar/slide-sociable.png');*/
61
+
62
+
63
+ width:19px;
64
+
65
+
66
+ height:66px;
67
+
68
+
69
+ background-color:transparent;
70
+
71
+
72
+ margin-left:-19px;
73
+
74
+
75
+ /*width:30px;*/
76
+
77
+
78
+ /*height:104px;*/
79
+
80
+
81
+ /*margin-left:-27px;*/
82
+
83
+
84
+ position:absolute;
85
+
86
+
87
+ margin-top:120px;
88
+
89
+
90
+ cursor:pointer;
91
+
92
+
93
+ }
94
+
95
+
96
+ .wpSocciableSmall-c{/*
97
+
98
+
99
+ background-image:url('../images/toolbar/slide-sociable-c.png');*/
100
+
101
+
102
+ width:19px;
103
+
104
+
105
+ background-color:transparent;
106
+
107
+
108
+ height:66px;
109
+
110
+
111
+ margin-left:-18px;
112
+
113
+
114
+ position:absolute;
115
+
116
+
117
+ margin-top:120px;
118
+
119
+
120
+ cursor:pointer;
121
+
122
+
123
+ }
124
+
125
+ .wpSocciableClose{
126
+
127
+
128
+ /*background-image:url('../images/toolbar/slide-close.png');*/
129
+
130
+
131
+ width:19px;
132
+
133
+
134
+ height:17px;
135
+
136
+
137
+ background-color:transparent;
138
+
139
+
140
+ margin-left:-19px;
141
+
142
+ position:absolute;
143
+
144
+
145
+ margin-top:90px;
146
+
147
+
148
+ cursor:pointer;
149
+
150
+
151
+ }
152
+
153
+
154
+ .wpSocciableClose-c{
155
+
156
+
157
+ background-image:url('../images/toolbar/slide-close-c.png');
158
+
159
+
160
+ width:19px;
161
+
162
+
163
+ background-color:transparent;
164
+
165
+
166
+ height:17px;
167
+
168
+
169
+ margin-left:-18px;
170
+
171
+
172
+ position:absolute;
173
+
174
+
175
+ margin-top:90px;
176
+
177
+
178
+ cursor:pointer;
179
+
180
+
181
+ }
182
+
183
+
184
+ .wpSocciableBig{
185
+
186
+
187
+ background-image:url('../images/toolbar/slide-sociableBig.png');
188
+
189
+
190
+ width:30px;
191
+
192
+
193
+ background-color:transparent;
194
+
195
+
196
+ height:104px;
197
+
198
+
199
+ margin-left:-19px;
200
+
201
+
202
+ position:absolute;
203
+
204
+
205
+ margin-top:120px;
206
+
207
+
208
+ cursor:pointer;
209
+
210
+
211
+ }
212
+
213
+ .wpSocciableBig-c{
214
+
215
+
216
+ background-image:url('../images/toolbar/slide-sociableBig-c.png');
217
+
218
+
219
+ width:30px;
220
+
221
+
222
+ height:104px;
223
+
224
+
225
+ background-color:transparent;
226
+
227
+
228
+ margin-left:-19px;
229
+
230
+
231
+ position:absolute;
232
+
233
+
234
+ margin-top:120px;
235
+
236
+
237
+ cursor:pointer;
238
+
239
+
240
+ }
241
+
242
+
243
+ a{
244
+
245
+ text-decoration:none;
246
+
247
+ }
248
+
249
+
250
+ a:hover{
251
+
252
+
253
+ text-decoration:underline;
254
+
255
+ }
256
+
257
+
258
+ ul.toolbar{
259
+
260
+
261
+ margin:0px;
262
+
263
+
264
+ padding:0px;
265
+
266
+
267
+ list-style:none;
268
+
269
+
270
+ font-family:arial;
271
+
272
+
273
+ letter-spacing:-1.3px;
274
+
275
+
276
+ font-weight:bold;
277
+
278
+ }
279
+
280
+
281
+ ul.toolbar li{
282
+
283
+
284
+ margin:0px;
285
+
286
+
287
+ padding:0px;
288
+
289
+ }
290
+
291
+
292
+ .wpPlugin-MainFrame{
293
+
294
+
295
+ }
296
+
297
+
298
+ ul.toolbar li.item div{
299
+
300
+
301
+ margin:0px;
302
+
303
+
304
+ padding:0px;
305
+ }
306
+
307
+
308
+ ul.toolbar li.item div.title{
309
+
310
+
311
+ padding-top:2px;
312
+
313
+ padding-bottom:2px;
314
+
315
+ padding-left:2px;
316
+
317
+ cursor:pointer;
318
+
319
+
320
+ margin-bottom:2px;
321
+
322
+
323
+ }
324
+
325
+
326
+ ul.toolbar li.item div.boxTitle{ }
327
+
328
+
329
+ ul.toolbar li.item div.boxTitleContent{
330
+
331
+ padding-top:5px;
332
+
333
+ padding-bottom:5px;
334
+
335
+ padding-right:5px;
336
+ }
337
+
338
+
339
+ ul.toolbar li.item div.content{
340
+
341
+
342
+ margin-bottom:5px;
343
+ }
344
+
345
+
346
+
347
+ ul.toolbar li.item div.title img{
348
+
349
+
350
+ float:right;
351
+
352
+
353
+ }
354
+
355
+
356
+
357
+ ul.toolbar li div img{
358
+
359
+
360
+ margin:1px;
361
+ border:0;
362
+
363
+ padding:0px;
364
+ }
365
+
366
+
367
+ .boxDialog{
368
+
369
+
370
+ letter-spacing:0px;
371
+
372
+
373
+ background:transparent;
374
+
375
+
376
+ margin:0px;
377
+
378
+
379
+ padding:0px;
380
+
381
+
382
+ position:absolute;
383
+
384
+ }
385
+
386
+ .boxBanner_ul{
387
+
388
+ float: left;
389
+ list-style: none outside none;
390
+ margin-right: 12px;
391
+ margin-left: 10px;
392
+ width: auto;
393
+ padding:0;
394
+ }
395
+
396
+ .boxCounters_ul{
397
+ list-style: none outside none;
398
+ margin: 10px 0 0;
399
+ text-align: justify;
400
+ width: 50px;
401
+ padding:0;
402
+ }
403
+
404
+ .boxCounters_ul li{
405
+ display: table;
406
+ height: auto;
407
+ margin-bottom: 8px !important;
408
+ }
409
+
410
+ .boxBanner_ul li{
411
+
412
+ float: left;
413
+ margin-right: 5px !important;
414
+ }
415
+
416
+ .boxBanner_ul_margin{
417
+
418
+ border-right: 1px solid #6A6A6A;
419
+ float: left;
420
+ height: 60px;
421
+ list-style: none outside none;
422
+ margin: 0;
423
+ padding:0;
424
+ }
images/toolbar/48f.png ADDED
Binary file
images/toolbar/48i.png ADDED
Binary file
images/toolbar/48rss.png ADDED
Binary file
images/toolbar/48t.png ADDED
Binary file
images/toolbar/inbound.png ADDED
Binary file
includes/class-sociable_Admin_Options.php CHANGED
@@ -1,355 +1,664 @@
1
  <?php
 
2
  /*
3
 
 
 
4
  * Administration Options Class For Sociable 2
5
 
 
 
6
  */
 
7
  class sociable_Admin_Options{
8
 
 
 
9
 
10
 
 
 
11
  /**
12
 
 
 
13
  * A Function To Hook To Admin Init.
14
 
 
 
15
  */
16
 
 
 
17
  function init(){
18
 
 
 
19
 
20
 
 
 
21
  register_setting( 'sociable_options_group' , 'sociable_options' );
22
 
 
 
23
 
24
 
 
 
25
  //Add The Settings Sections
26
 
 
 
27
  // add_settings_section( 'sociable_locations', __( 'Locations' ), array( 'sociable_Admin_Options' , 'location_options_callback' ) , 'sociable_options' );
28
 
 
 
29
 
30
 
 
 
31
  // add_settings_section( 'sociable_options', __( 'General Options' ), array( 'sociable_Admin_Options' , 'general_options_callback' ) , 'sociable_options' );
32
 
 
 
33
 
34
 
 
 
35
 
36
 
 
 
37
  register_setting( 'skyscraper_options_group' , 'skyscraper_options' );
38
 
 
 
39
 
40
 
 
 
41
  // add_settings_section( 'sociable_locations', __( 'Locations' ), array( 'sociable_Admin_Options' , 'location_options_callback' ) , 'skyscraper_options' );
42
 
 
 
43
 
44
 
 
 
45
  }
46
 
 
 
47
 
48
 
 
 
49
  function skyscraper_init(){
50
 
 
 
51
 
 
52
  register_setting( 'skyscraper_options_group' , 'skyscraper_options' );
 
53
  add_settings_section( 'sociable_locations', __( 'Locations' ), array( 'sociable_Admin_Options' , 'location_options_callback' ) , 'skyscraper_options' );
54
 
 
 
55
 
56
 
 
 
57
  //Add All The Settings Fields
58
 
 
 
59
  //self::add_settings_fields();
60
 
 
 
61
  }
62
 
 
 
63
 
64
 
 
 
65
  function Select_Sociable_Page(){
66
 
 
 
67
 
68
 
 
 
69
  global $sociable_options;
70
 
 
 
71
  ?>
72
 
 
 
73
 
74
 
 
 
75
 
76
 
 
 
77
 
78
 
 
 
79
  <div class="wrap" style="margin-top:25px">
80
 
 
 
81
 
82
 
 
 
83
  <div style="width: 80%; margin-left: 25px; color: rgb(147, 147, 147); font-weight: bold; font-size: 15px;">
84
 
 
 
85
  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 />
86
 
 
 
87
  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 />
88
 
 
 
89
  </div>
90
 
 
 
91
 
92
 
 
 
93
  <div class="wrap" style="width:42%;float:left">
94
 
 
 
95
  <?php //wp_nonce_field('sociable-config'); ?>
96
 
 
 
97
 
98
 
 
 
99
  <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px">
100
 
 
 
101
 
102
 
 
 
103
 
104
 
 
 
105
  <TR>
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
  <TD colspan="3" >
114
 
 
 
115
  <table>
116
 
 
 
117
  <tr>
118
 
 
 
119
  <td>
120
 
 
 
121
  <img src="<?php echo SOCIABLE_HTTP_PATH ?>images/skyphoto.png" style="margin-left:-5px;margin-top:20px;" />
122
 
 
 
123
  </td>
124
 
 
 
125
  <td valign="top" >
126
 
 
 
127
  <br/><br/>
128
 
 
 
129
  <span style="font-size:18px;color:#18305e;font-weight:bold;">Skyscraper Sociable</span>
130
 
 
 
131
  <p style="font-size:12px;color:#939393;font-weight:bold;" >
132
 
 
 
133
  Now introducing the ultimate advanced and feature packed plugin for setting up rating system on your WordPress blog.
134
 
 
 
135
  <br/ ><br/ >
136
 
 
 
137
  Sociable Skyscraper allows you to set up different rating systems for posts, pages and comments with great degree of customization.
138
 
 
 
139
  <br/ ><br/ >
140
 
 
 
141
  List of features is so smart and non-stop growing:
142
 
 
 
143
  <br/ ><br/ >
144
 
 
 
145
  You can get more "Sociable" with Sociable Skyscraper and easily getting
146
 
 
 
147
  Rating and Review of: posts, pages, comments, Facebook, G+, LinkedIN,
148
 
 
 
149
  Twitter as well as multiple ratings for posts and pages. Visitor's counter,
150
 
 
 
151
  visitor's from Facebook and Twitter... As a plus you get an easy way to get
152
 
 
 
153
  TOP or HOME from Sociable Skyscraper.
154
 
 
 
155
  <br/ ><br/ >
156
 
 
 
157
  Enjoy it now!!!
158
 
 
 
159
  <br/ ><br/ >
160
 
 
 
161
  Be Sociable, Share!!!
162
 
 
 
163
  </p>
164
 
 
 
165
 
166
 
 
 
167
  <a href="?page=skyscraper_options" style="color:#ffffff;text-decoration:none;" ><img src="<?php echo SOCIABLE_HTTP_PATH ?>images/button_newsky.png" ></a>
168
 
 
 
169
 
170
 
 
 
171
  </td>
172
 
 
 
173
  </tr>
174
 
 
 
175
  </table>
176
 
 
 
177
  </TD>
178
 
 
 
179
 
180
 
 
 
181
 
182
 
 
 
183
  </TR>
184
 
 
 
185
  </TABLE>
186
 
 
 
187
  <BR/>
188
 
 
 
189
 
190
 
 
 
191
  </div>
192
 
 
 
193
  <div class="wrap" style="margin-left:30px;width:48%;float:left">
194
 
 
 
195
  <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px">
196
 
 
 
197
  <TR>
198
 
 
 
199
  <TD class="Border-Left" ></TD><TD class="BG-Middle" >Classic Sociable</TD><TD class="Border-Right"></TD>
200
 
 
 
201
  </TR>
202
 
 
 
203
  <TR>
204
 
 
 
205
  <TD colspan="3" >
206
 
 
 
207
  <div style="margin-left:5px;">
208
 
 
 
209
  <br /><br />
210
 
 
 
211
  <span style="font-size:18px;color:#18305e;font-weight:bold;">Classic Sociable</span>
212
 
 
 
213
 
214
 
 
 
215
  <p style="font-size:12px;color:#939393;font-weight:bold;" >
216
 
 
 
217
  We've improved our visual interface, the default icons are now much
218
 
 
 
219
  <br/ >
220
 
 
 
221
  more appealing, and a touch bit larger (you do want your readers to
222
 
 
 
223
  <br/ >
224
 
 
 
225
  share your posts, don't you? :) Get it now!
226
 
 
 
227
  </p>
228
 
 
 
229
  <img src="<?php echo SOCIABLE_HTTP_PATH ?>images/socciable_old.png" ><br/>
230
 
 
 
231
  <div style="height: 176px;"></div>
232
 
 
 
233
  <a href="?page=sociable_options" style="color:#ffffff;text-decoration:none;" ><img src="<?php echo SOCIABLE_HTTP_PATH ?>images/button_sociabb.png" ></a>
234
 
 
 
235
  </div>
236
 
 
 
237
  </TD>
238
 
 
 
239
 
240
 
 
 
241
  </TR>
242
 
 
 
243
  </TABLE>
244
 
 
 
245
  <BR/>
246
 
 
 
247
 
248
 
 
 
249
  </div>
250
 
 
 
251
  </div>
 
252
  <?php }
253
 
 
 
254
 
255
 
 
 
256
  function create_select_options($value){
257
 
258
-
 
 
 
 
259
 
260
  for($i=3; $i<=9; ){
261
 
 
 
262
 
263
 
 
 
264
  $sel = "";
265
 
 
 
266
  if ($value == $i){
267
 
 
 
268
  $sel = "selected";
269
 
 
 
270
  }
271
 
 
 
272
  echo "<option ".$sel." value='".$i."'> latest ".$i."</option>";
273
 
 
 
274
 
275
 
 
 
276
  $i = $i+3;
277
 
 
 
278
  }
 
279
  }
280
 
 
 
281
 
 
282
 
283
 
 
 
284
  function Create_Options_Page_Skycraper(){
285
 
286
-
287
 
288
  global $skyscraper_options;
289
 
290
-
291
-
292
  ?>
293
 
 
294
  <div class="wrap" style="width:48%;float:left">
295
 
296
-
297
 
298
  <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >
299
 
 
300
  <iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblogplay.com%2F&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=true&amp;action=recommend&amp;colorscheme=light&amp;font&amp;height=80&amp;appId=133479460071366" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:40px;" allowTransparency="true"></iframe>
301
 
302
- <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://blogplay.com/" data-via="sociablesite" data-hashtags="sociable">Tweet</a>
 
 
 
 
 
303
 
304
  <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
305
 
 
 
306
  <br />
307
 
308
  </div>
309
 
310
- <form method="post" action="options.php" id="form1" autocomplete="off">
311
 
312
-
313
 
314
  <?php wp_nonce_field('sociable-config'); ?>
315
 
 
 
316
  <INPUT type="hidden" class="version-INPUT" id="version" name="skyscraper_options[version]" value="<?php echo $skyscraper_options["version"];?>" />
317
 
 
 
318
  <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px">
319
 
 
 
320
  <TR>
321
 
 
 
322
  <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Style Options","sociable");?></TD><TD class="Border-Right"></TD>
323
 
 
 
324
  </TR>
325
 
 
 
326
  </TABLE>
327
 
 
 
328
  <BR/>
329
 
 
 
330
  <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >
331
 
 
 
332
  <?php _e("Text Size","sociable");?>:
333
 
 
 
334
  <select id="text_size" name="skyscraper_options[text_size]" style="margin-left:73px">
335
 
 
 
336
  <?php
337
 
338
- for($px=10; $px <= 20; $px++) {
339
 
340
-
 
341
 
342
  $sel = "";
343
 
344
  if($px== $skyscraper_options["text_size"])$sel = "selected";
345
 
 
346
  ?>
347
 
348
  <option <?php echo $sel?> value="<?php echo $px?>"><?php echo $px?>px</option>
349
 
350
- <?php
351
 
352
-
353
 
354
  }?>
355
 
@@ -357,66 +666,60 @@ share your posts, don't you? :) Get it now!
357
 
358
  </DIV>
359
 
360
-
361
 
362
  <DIV style="margin:0 0 0 24px" class="Post-subTXT" id="Post-subTXT" ><?php _e("Widget Width","sociable");?>:
363
 
 
 
364
  <select id="text_size" id="widget_width" name="skyscraper_options[widget_width]" style="margin-left:50px">
365
 
366
- <?php
367
 
368
- for($wi=70; $wi <= 90; ) {
369
 
370
-
371
 
372
  $sel = "";
373
 
374
- if($wi== $skyscraper_options["widget_width"])$sel = "selected";
375
 
376
- ?>
377
 
 
 
378
  <option <?php echo $sel?> value="<?php echo $wi?>"><?php echo $wi?>px</option>
379
-
380
  <?php
381
 
 
 
382
  $wi +=5;
383
 
 
 
384
  }?>
385
 
386
- </select>
387
 
388
-
389
 
390
- </DIV>
391
 
392
-
393
 
394
  <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" ><?php _e("Background Color","sociable");?>:
395
 
396
-
397
 
398
  <input value="<?php echo $skyscraper_options['background_color']?>" style="margin-left:22px" id="background_color" name="skyscraper_options[background_color]" type="text" /> ( #fefefe default color)
399
 
400
-
401
-
402
  </DIV>
403
 
404
-
405
 
406
  <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" ><?php _e("Labels Color","sociable");?>:
407
 
408
-
409
 
410
  <input value="<?php echo $skyscraper_options['labels_color']?>" style="margin-left:49px" id="background_color" name="skyscraper_options[labels_color]" type="text" /> ( #f7f7f7 default color)
411
 
412
-
413
 
414
  </DIV>
415
 
416
-
417
-
418
  <BR/>
419
 
 
420
  <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Tagline-Title">
421
 
422
  <TR>
@@ -439,8 +742,6 @@ share your posts, don't you? :) Get it now!
439
 
440
  <?php _e("Your Twitter username","sociable");?>:<?php
441
 
442
-
443
-
444
  if (!empty($skyscraper_options["twitter_username"])){
445
 
446
  $twitter_username = $skyscraper_options["twitter_username"];
@@ -452,2162 +753,4553 @@ share your posts, don't you? :) Get it now!
452
  $twitter_username = "@";
453
 
454
  }
455
-
456
  ?>
457
 
458
  <input type="text" name="skyscraper_options[twitter_username]" value="<?php echo $twitter_username?>" />
459
 
 
 
460
  <select name="skyscraper_options[num_tweets]" id="num_tweets">
461
 
 
 
462
  <?php self:: create_select_options($skyscraper_options["num_tweets"]) ?>
463
 
 
 
464
  </select>
465
 
 
 
466
  </DIV>
467
 
 
 
468
  <BR/>
469
 
 
 
470
  <DIV style="margin:0 0 0 25px" class="Post-subTXT">
471
 
 
 
472
  <?php _e("Your RSS feed","sociable");?>:
473
 
 
 
474
  <?php
475
 
 
 
476
 
477
 
 
 
478
  if (!empty($skyscraper_options["rss_feed"])){
479
 
 
 
480
  $rss_feed = $skyscraper_options["rss_feed"];
481
 
 
 
482
  }
483
 
 
 
484
  else{
485
 
 
 
486
  $rss_feed = "http://";
487
 
 
 
488
  }
489
 
 
 
490
  ?>
491
 
 
 
492
  <input type="text" name="skyscraper_options[rss_feed]" style="margin-left: 46px;" value="<?php echo $rss_feed?>" />
493
 
 
 
494
  <select name="skyscraper_options[num_rss]" id="num_rss">
495
 
 
 
496
  <?php self:: create_select_options($skyscraper_options["num_rss"]) ?>
497
 
 
 
498
  </select>
499
 
 
 
500
  </DIV>
501
 
 
 
502
  <BR/>
503
 
 
 
504
  <DIV style="margin:0 0 0 25px" class="Post-subTXT">
505
 
 
 
506
  <?php
507
 
 
 
508
  $checked = "";
509
 
 
 
510
  if (isset($skyscraper_options["counters"]["check"])){
511
 
 
 
512
  $checked = "checked";
513
 
 
 
514
  }
515
 
 
 
516
 
517
 
 
 
518
  $folded = "";
519
 
 
 
520
  $unfolded= "";
521
 
 
 
522
  if (isset($skyscraper_options["counters"]["folded"])){
523
 
 
 
524
  if($skyscraper_options["counters"]["folded"] == "1"){
525
 
 
 
526
  $folded = "checked";
527
 
 
 
528
  $unfolded= "";
529
 
 
 
530
  }else{
531
 
 
 
532
  $unfolded = "checked";
533
 
 
 
534
  $folded= "";
535
 
 
 
536
  }
537
 
 
 
538
  }
539
 
 
 
540
 
541
 
 
 
542
 
543
 
 
 
544
  ?>
545
 
 
 
546
  <input type="checkbox" <?php echo $checked ?> name="skyscraper_options[counters][check]" id="" />
547
 
 
 
548
  Counters
549
 
 
 
550
  <input name="skyscraper_options[counters][folded]" <?php echo $unfolded?> value="0" type="radio">Folded
551
 
 
 
552
  <input name="skyscraper_options[counters][folded]" <?php echo $folded?> value="1" type="radio">Unfolded
553
 
 
 
554
  </DIV>
555
 
 
 
556
  <BR/>
557
 
 
 
558
  <DIV style="margin:0 0 0 25px" class="Post-subTXT">
559
 
 
 
560
  <?php
561
 
 
 
562
  $checked = "";
563
 
 
 
564
  if (isset($skyscraper_options["share"]["check"])){
565
 
 
 
566
  $checked = "checked";
567
 
 
 
568
  }
569
 
 
 
570
 
571
 
 
 
572
  if (isset($skyscraper_options["share"]["folded"])){
573
 
 
 
574
  if($skyscraper_options["share"]["folded"] == "1"){
575
 
 
 
576
  $folded = "checked";
577
 
 
 
578
  $unfolded= "";
579
 
 
 
580
  }else{
581
 
 
 
582
  $unfolded = "checked";
583
 
 
 
584
  $folded= "";
585
 
 
 
586
  }
587
 
 
 
588
  }
589
 
 
 
590
 
591
 
 
 
592
 
593
 
 
 
594
  ?>
595
 
 
 
596
 
597
 
 
 
598
  <input type="checkbox" <?php echo $checked ?> name="skyscraper_options[share][check]" /> Share
599
 
 
 
600
  <input style="margin-left:19px" <?php echo $unfolded?> value="0" name="skyscraper_options[share][folded]" type="radio">Folded
601
 
602
- <input name="skyscraper_options[share][folded]" <?php echo $folded?> value="1" type="radio">Unfolded
603
 
604
- </DIV>
605
 
606
- <DIV class="Content-Box" id="Preview-Content">
 
607
 
608
-
609
 
610
  </DIV>
611
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
612
  <div style="clear:both"></div>
613
 
 
 
614
 
615
 
 
 
616
  <BR/>
617
 
 
 
618
  <DIV class="Content-Box" id="Preview-Content">
619
 
 
 
620
  <ul class="items_li">
621
 
 
 
622
  <li>
623
 
 
 
624
  <?php
625
 
 
 
626
  $checked = "";
627
 
 
 
628
  if (isset($skyscraper_options['follow_us_check']) && $skyscraper_options['follow_us_check'] == "on"){
629
 
 
 
630
  $checked = "checked";
631
 
 
 
632
  }
633
 
 
 
634
  ?>
635
 
 
 
636
  Follow Us
637
 
 
 
638
  <ul class="sub_item_li">
639
 
 
 
640
  <li>
641
 
 
 
642
  <?php
643
 
 
 
644
  $checked = "";
645
 
 
 
646
  if (isset($skyscraper_options['follow_us']['twitter']["active"]) && $skyscraper_options['follow_us']['twitter']["active"] == "on"){
647
 
 
 
648
  $checked = "checked";
649
 
 
 
650
  }
651
 
 
 
652
  ?>
653
 
 
 
654
  <input <?php echo $checked ?> name="skyscraper_options[follow_us][twitter][active]" type="checkbox" style="padding-bottom:5px" />
655
 
 
 
656
  <?php
657
 
 
 
658
  $account = "http://twitter.com/";
659
 
 
 
660
  if(!empty($skyscraper_options["follow_us"]["twitter"]["account"])){
661
 
 
 
662
  $account = $skyscraper_options["follow_us"]["twitter"]["account"];
663
 
 
 
664
  }
665
 
 
 
666
  ?>
667
 
 
 
668
  <input type="hidden" value="t.png" name="skyscraper_options[follow_us][twitter][logo]" />
669
 
 
 
670
  <img style="padding-bottom:5px" src="<?php echo SOCIABLE_HTTP_PATH ?>images/toolbar/t.png"/>
671
 
 
 
672
  <input size="40" name="skyscraper_options[follow_us][twitter][account]" value="<?php echo $account?>" type="text" />
673
 
 
 
674
  </li>
675
 
 
 
676
  <li>
677
 
 
 
678
  <?php
679
 
 
 
680
  $checked = "";
681
 
 
 
682
  if ( isset($skyscraper_options['follow_us']['feed']["active"]) && $skyscraper_options['follow_us']['feed']["active"] == "on"){
683
 
 
 
684
  $checked = "checked";
685
 
 
 
686
  }
687
 
 
 
688
  ?>
689
 
 
 
690
  <input <?php echo $checked ?> name="skyscraper_options[follow_us][feed][active]" type="checkbox" style="padding-bottom:5px" />
691
 
 
 
692
  <input type="hidden" value="rss.png" name="skyscraper_options[follow_us][feed][logo]" />
693
 
 
 
694
  <?php
695
 
 
 
696
  $rss = "http://";
697
 
 
 
698
  if(!empty($skyscraper_options["follow_us"]["feed"]["account"])){
699
 
 
 
700
 
701
 
 
 
702
  $rss = $skyscraper_options["follow_us"]["feed"]["account"];
703
 
 
 
704
  }
705
 
 
 
706
  ?>
707
 
 
 
708
  <img style="padding-bottom:5px" src="<?php echo SOCIABLE_HTTP_PATH ?>images/toolbar/rss.png"/>
709
 
 
 
710
  <input size="40" value="<?php echo $rss?>" name="skyscraper_options[follow_us][feed][account]" type="text" />
711
 
 
 
712
  </li>
713
 
 
 
714
  <li>
715
 
 
 
716
  <?php
717
 
 
 
718
  $checked = "";
719
 
 
 
720
  if ( isset($skyscraper_options['follow_us']['fb']["active"]) && $skyscraper_options['follow_us']['fb']["active"] == "on"){
721
 
 
 
722
  $checked = "checked";
723
 
 
 
724
  }
725
 
 
 
726
  ?>
727
 
 
 
728
  <input <?php echo $checked ?> name="skyscraper_options[follow_us][fb][active]" type="checkbox" style="padding-bottom:5px" />
729
 
 
 
730
  <input type="hidden" value="f.png" name="skyscraper_options[follow_us][fb][logo]" />
731
 
 
 
732
 
733
 
 
 
734
  <?php
735
 
 
 
736
  $fb = "http://facebook.com/";
737
 
 
 
738
  if(!empty($skyscraper_options["follow_us"]["fb"]["account"])){
739
 
 
 
740
 
741
 
 
 
742
  $fb = $skyscraper_options["follow_us"]["fb"]["account"];
743
 
 
 
744
  }
745
 
 
 
746
  ?>
747
 
 
 
748
  <img style="padding-bottom:5px" src="<?php echo SOCIABLE_HTTP_PATH ?>images/toolbar/f.png"/>
749
 
 
 
750
  <input size="40" value="<?php echo $fb?>" name="skyscraper_options[follow_us][fb][account]" type="text" />
751
 
 
 
752
  </li>
753
 
 
 
754
 
755
 
 
 
756
  <li>
757
 
 
 
758
  <?php
759
 
 
 
760
  $checked = "";
761
 
 
 
762
  if ( isset($skyscraper_options['follow_us']['li']["active"]) && $skyscraper_options['follow_us']['li']["active"] == "on"){
763
 
 
 
764
  $checked = "checked";
765
 
 
 
766
  }
767
 
 
 
768
  ?>
769
 
 
 
770
  <input <?php echo $checked ?> name="skyscraper_options[follow_us][li][active]" type="checkbox" style="padding-bottom:5px" />
771
 
 
 
772
  <input type="hidden" value="i.png" name="skyscraper_options[follow_us][li][logo]" />
773
 
 
 
774
  <input type="hidden" value="linkedin.com/in/" name="skyscraper_options[follow_us][li][url]" />
775
 
 
 
776
  <?php
777
 
 
 
778
  $li = "http://linkedin.com/";
779
 
 
 
780
  if(!empty($skyscraper_options["follow_us"]["li"]["account"])){
781
 
 
 
782
 
783
 
 
 
784
  $li = $skyscraper_options["follow_us"]["li"]["account"];
785
 
 
 
786
  }
787
 
 
 
788
  ?>
789
 
 
 
790
  <img style="padding-bottom:5px" src="<?php echo SOCIABLE_HTTP_PATH ?>images/toolbar/i.png"/>
791
 
 
 
792
  <input size="40" value="<?php echo $li?>" name="skyscraper_options[follow_us][li][account]" type="text" />
793
 
 
 
794
  </li>
795
 
 
 
796
  </ul>
797
 
 
 
798
  </li>
799
 
 
 
800
  </ul>
801
 
 
 
802
  </DIV>
803
 
 
 
804
  <br />
805
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
806
  <!-- general options -->
807
 
 
 
808
  <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('GeneralOptions');">
809
 
 
 
810
  <TR>
811
 
 
 
812
  <TD class="Border-Left" ></TD><TD class="BG-Middle" id="GeneralOptions-Title" ><span id="GeneralOptions-Tab"> + </span> <?php _e("General Options","sociable");?></TD><TD class="Border-Right"></TD>
813
 
 
 
814
  </TR>
815
 
 
 
816
  </TABLE>
817
 
 
 
818
  <BR/>
819
 
 
 
820
 
821
 
 
 
822
  <DIV class="Content-Box" id="GeneralOptions-Content" style="display:none;" >
823
 
 
 
824
 
825
 
 
 
826
  <BR/>
827
 
 
 
828
  <DIV align="center" style="width:100%;">
829
 
 
 
830
  <TABLE align="center" class="GeneralOptions-List" cellspacing="0" border=0 cellpadding ="10" >
831
 
 
 
832
 
833
 
 
 
834
  <TR valign="top" >
835
 
 
 
836
  <TD align="right" class="Title" ><?php _e("Widget Position","sociable")?></TD>
837
 
 
 
838
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["widget_position"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[widget_position]" id="widget_position" /></TD>
839
 
 
 
840
  <TD align="left" class="Content">
841
 
 
 
842
  <SPAN class="TXT"><?php _e("Check if you want Sociable Fixed on the screen","sociable");?> </SPAN>
843
 
 
 
844
  <BR/>
845
 
 
 
846
 
847
 
 
 
848
  </TD>
849
 
 
 
850
  </TR>
851
 
 
 
852
  </TABLE>
853
 
 
 
854
  <BR/><BR/>
855
 
 
 
856
  </DIV>
857
 
 
 
858
  </DIV>
859
 
 
 
860
  <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Locations');" >
861
 
 
 
862
  <TR>
863
 
 
 
864
  <TD class="Border-Left" ></TD><TD class="BG-Middle" id="Locations-Title" ><span id="Locations-Tab">+ </span><?php _e("Locations","sociable");?></TD><TD class="Border-Right"></TD>
865
 
 
 
866
  </TR>
867
 
 
 
868
  </TABLE>
869
 
 
 
870
  <BR/>
871
 
 
 
872
 
873
 
 
 
874
  <DIV class="Content-Box" id="Locations-Content" style="display:none;" >
875
 
 
 
876
  <DIV class="Locations-TXT" id="Locations-TXT" ><?php _e("Please select the locations that you wish to allow the Sociable plugin to insert itself.","sociable");?></DIV>
877
 
 
 
878
 
879
 
 
 
880
  <BR/>
881
 
 
 
882
  <DIV align="center" style="width:100%;">
883
 
 
 
884
  <TABLE align="center" class="Locations-List" cellspacing="0" border=0 cellpadding="10">
885
 
 
 
886
  <TR valign="top" >
887
 
 
 
888
  <TD align="right" class="Title" ><?php _e("Home page","sociable");?></TD>
889
 
 
 
890
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_front_page"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_front_page]" id="HomePage" /></TD>
891
 
 
 
892
  <TD align="left" class="Content">
893
 
 
 
894
  <SPAN class="TXT"><?php _e("The front page of the blog (if set to a static page), or the main blog page (if set to your latest posts).","sociable");?></SPAN>
895
 
 
 
896
 
897
 
 
 
898
  </TD>
899
 
 
 
900
  </TR>
901
 
 
 
902
 
903
 
 
 
904
  <TR valign="top" >
905
 
 
 
906
  <TD align="right" class="Title" ><?php _e("Blog page","sociable");?></TD>
907
 
 
 
908
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_home"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_home]" id="BlogPage" /></TD>
909
 
 
 
910
  <TD align="left" class="Content">
911
 
 
 
912
  <SPAN class="TXT"><?php _e("The home page of the blog if is set to your latest posts, or the posts page if the home page is set to a static page","sociable");?></SPAN>
913
 
 
 
914
 
915
 
 
 
916
  </TD>
917
 
 
 
918
  </TR>
919
 
 
 
920
 
921
 
 
 
922
  <TR valign="top" >
923
 
 
 
924
  <TD align="right" class="Title" ><?php _e("Posts","sociable");?></TD>
925
 
 
 
926
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_single"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_single]" id="Posts" /></TD>
927
 
 
 
928
  <TD align="left" class="Content">
929
 
 
 
930
  <SPAN class="TXT"><?php _e("Single post pages","sociable");?></SPAN>
931
 
 
 
932
 
933
 
 
 
934
  </TD>
935
 
 
 
936
  </TR>
937
 
 
 
938
 
939
 
 
 
940
  <TR valign="top" >
941
 
 
 
942
  <TD align="right" class="Title" ><?php _e("Pages","sociable");?></TD>
943
 
 
 
944
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_page"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_page]" id="Pages" /></TD>
945
 
 
 
946
  <TD align="left" class="Content">
947
 
 
 
948
  <SPAN class="TXT"><?php _e("Individual Wordpress pages","sociable");?></SPAN>
949
 
 
 
950
 
951
 
 
 
952
  </TD>
953
 
 
 
954
  </TR>
955
 
 
 
956
 
957
 
 
 
958
  <TR valign="top" >
959
 
 
 
960
  <TD align="right" class="Title" ><?php _e("Category archives","sociable");?></TD>
961
 
 
 
962
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_category"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_category]" id="CategoryArchives" /></TD>
963
 
 
 
964
  <TD align="left" class="Content">
965
 
 
 
966
  <SPAN class="TXT"><?php _e("Category archive pages","sociable");?></SPAN>
967
 
 
 
968
 
969
 
 
 
970
  </TD>
971
 
 
 
972
  </TR>
973
 
 
 
974
 
975
 
 
 
976
  <TR valign="top" >
 
977
  <TD align="right" class="Title" ><?php _e("Date archives","sociable");?></TD>
978
 
 
 
979
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_date"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_date]" id="DateArchives" /></TD>
980
 
 
 
981
  <TD align="left" class="Content">
982
 
 
 
983
  <SPAN class="TXT"><?php _e("Date archive pages","sociable");?> </SPAN>
984
 
 
 
985
 
986
 
 
 
987
  </TD>
988
 
 
 
989
  </TR>
990
 
 
 
991
 
992
 
 
 
993
  <TR valign="top" >
994
 
 
 
995
  <TD align="right" class="Title" ><?php _e("Tag archives","sociable");?></TD>
996
 
 
 
997
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_tag"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_tag]" id="TagArchives" /></TD>
998
 
 
 
999
  <TD align="left" class="Content">
1000
 
 
 
1001
  <SPAN class="TXT"><?php _e("Tag archive pages","sociable");?> </SPAN>
1002
 
 
 
1003
 
1004
 
 
 
1005
  </TD>
1006
 
 
 
1007
  </TR>
1008
 
 
 
1009
 
1010
 
 
 
1011
  <TR valign="top" >
1012
 
 
 
1013
  <TD align="right" class="Title" ><?php _e("Author archives","sociable");?></TD>
1014
 
 
 
1015
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_author"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_author]" id="AuthorArchives" /></TD>
1016
 
 
 
1017
  <TD align="left" class="Content">
1018
 
 
 
1019
  <SPAN class="TXT"><?php _e("Author archive pages","sociable");?></SPAN>
1020
 
 
 
1021
 
1022
 
 
 
1023
  </TD>
1024
 
 
 
1025
  </TR>
1026
 
 
 
1027
 
1028
 
 
 
1029
  <TR valign="top" >
1030
 
 
 
1031
  <TD align="right" class="Title" ><?php _e("Search results","sociable");?></TD>
1032
 
 
 
1033
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_search"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_search]" id="SearchResults" /></TD>
1034
 
 
 
1035
  <TD align="left" class="Content">
1036
 
 
 
1037
  <SPAN class="TXT"><?php _e("Search results pages","sociable");?></SPAN>
1038
 
 
 
1039
 
1040
 
 
 
1041
  </TD>
1042
 
 
 
1043
  </TR>
1044
 
 
 
1045
 
1046
 
 
 
1047
  <TR valign="top" >
1048
 
 
 
1049
  <TD align="right" class="Title" ><?php _e("RSS feeds","sociable");?></TD>
1050
 
 
 
1051
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_rss"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_rss]" id="RssFeeds" /></TD>
1052
 
 
 
1053
  <TD align="left" class="Content">
1054
 
 
 
1055
  <SPAN class="TXT"><?php _e("RSS feeds","sociable");?></SPAN>
1056
 
 
 
1057
 
1058
 
 
 
1059
  </TD>
1060
 
 
 
1061
  </TR>
1062
 
 
 
1063
 
1064
 
 
 
1065
  </TABLE>
1066
 
 
 
1067
  <BR/><BR/>
1068
 
 
 
1069
  </DIV>
1070
 
 
 
1071
  </DIV>
1072
 
 
 
1073
 
1074
 
 
 
1075
  <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Active');" >
1076
 
 
 
1077
  <TR>
1078
 
 
 
1079
  <TD class="Border-Left" ></TD><TD class="BG-Middle" id="Active-Title" ><span id="Active-Tab">+ </span><?php _e("Active Skyscraper","sociable");?></TD><TD class="Border-Right"></TD>
1080
 
 
 
1081
  </TR>
1082
 
 
 
1083
  </TABLE>
1084
 
 
 
1085
 
1086
 
 
 
1087
  <div style="display: block;" id="Active-Content" class="Content-Box">
1088
 
 
 
1089
 
1090
 
 
 
1091
  <br>
1092
 
1093
- <div align="center" style="width:100%;">
 
 
 
 
1094
 
1095
  <table align="center" cellspacing="0" cellpadding="10" border="0" class="GeneralOptions-List">
1096
 
 
 
1097
 
1098
 
 
 
1099
  <tbody><tr valign="top">
1100
 
 
 
1101
  <td align="right" class="Title">Active Skyscraper</td>
1102
 
 
 
1103
  <td align="left" style="width:5px;">
1104
 
 
 
1105
  <input <?php if(isset($skyscraper_options["active"])) echo "checked='checked'"?> type="checkbox" id="active" name="skyscraper_options[active]" ></td>
1106
 
 
 
1107
  <td align="left" class="Content">
1108
 
 
 
1109
  <span class="TXT">Check if you want Sociable Skyscraper enable </span>
1110
 
 
 
1111
  <br>
1112
 
 
 
1113
 
1114
 
 
 
1115
  </td>
1116
 
 
 
1117
  </tr>
1118
 
 
 
1119
  </tbody></table>
1120
 
 
 
1121
  <br><br>
1122
 
 
 
1123
  </div>
1124
 
 
 
1125
  </div>
1126
 
 
 
1127
  <br/><br/>
1128
 
 
 
1129
  <?php settings_fields( 'skyscraper_options_group' ); ?>
1130
 
 
 
1131
  </form>
1132
 
 
 
1133
  <div class="Content-Box">
1134
 
 
 
1135
 
1136
 
 
 
1137
  <form id="sociable_reset_form" action="" method="POST">
1138
 
 
 
1139
  <?php wp_nonce_field('sociable-reset'); ?>
1140
 
 
 
1141
  <input type="hidden" id="skyscraper_reset" name="skyscraper_reset" value="1">
1142
 
 
 
1143
  <?php //submit_button( __( 'Reset Sociable' ) , 'primary', 'sociable_reset', false ); ?>
1144
 
 
 
1145
  </form>
1146
 
 
 
1147
 
1148
 
 
 
1149
  <div id="ActionsBar">
1150
 
 
 
1151
  <div style="cursor:pointer;line-height:15px;" onclick="document.getElementById('form1').submit();" class="SaveChanges"><br>
1152
 
 
 
1153
  <span style="margin:30px;">Save Changes</span>
1154
 
 
 
1155
  </div>
1156
 
 
 
1157
  <div style="cursor:pointer;line-height:15px;font-size:12px;" onclick="document.getElementById('sociable_reset_form').submit();" name="sociable_reset" id="sociable_reset" class="ResetSociable"><br>
1158
 
 
 
1159
  <span style="margin:40px;margin-left:35px;">Reset Skyscraper</span>
1160
 
 
 
1161
  </div>
1162
 
 
 
1163
  </div>
1164
 
 
 
1165
  </div>
1166
 
 
 
1167
 
1168
 
 
 
1169
  </div>
1170
 
 
 
1171
  <div style="float:left;width:49%;margin-left:15px" name="skyscraper" id="skyscraper">
1172
 
 
 
1173
  <script type="text/javascript">
 
1174
  var base_url_sociable = "<?php echo SOCIABLE_HTTP_PATH?>";
 
1175
  </script>
1176
 
 
 
1177
  </div>
 
1178
  <?php
1179
 
 
 
1180
  }
1181
 
 
 
1182
 
1183
 
 
 
1184
  /**
1185
 
 
 
1186
  * Add The Menu Pages To The Administration Options
1187
 
 
 
1188
  */
1189
 
 
 
1190
 
1191
 
 
 
1192
  function add_menu_pages(){
1193
 
 
 
1194
 
1195
 
 
 
1196
  global $sociable_post_types;
1197
 
 
 
1198
 
1199
 
 
 
1200
  $url = $_SERVER["QUERY_STRING"];
1201
 
 
 
1202
  // $page[] = add_options_page( __( 'Sociable Options' ), __( 'Sociable Plugin' ), 'manage_options', 'sociable_select' , array( 'sociable_Admin_Options' , 'Select_Sociable_Page' ) );
1203
 
 
 
1204
  //$page[]= add_plugins_page( __( 'Sociable Options' ), __( 'Sociable Plugin' ), 'manage_options', 'Create_Options_Page_Skycraper' );
1205
 
 
 
1206
  //$page[]= add_plugins_page( 'sociable_options', 'sociable_options', 'read', 'Create_Options_Page' );
1207
 
 
 
1208
  $page[] = add_options_page( "","", 'manage_options', 'sociable_select' , array( 'sociable_Admin_Options' , 'Select_Sociable_Page' ) );
1209
 
 
 
1210
  $page[] = add_options_page( "","", 'manage_options', 'sociable_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page' ) );
1211
 
 
 
1212
  $page[] = add_options_page( "","", 'manage_options', 'skyscraper_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page_Skycraper' ) );
1213
 
 
 
1214
  // Add a new submenu under Settings:
1215
 
 
 
1216
  // $page[] = add_options_page(__( 'Sociable Options' ),__( 'Sociable Plugin' ), 'manage_options', 'sociable_select', 'Select_Sociable_Page');
 
1217
  // Add a new top-level menu (ill-advised):
1218
 
 
 
1219
  add_menu_page(__( 'Sociable Options' ), __( 'Select Sociable Plugin' ), 'manage_options', '/options-general.php?page=sociable_select' );
 
1220
  // Add a submenu to the custom top-level menu:
1221
 
 
 
1222
  add_submenu_page('options-general.php?page=sociable_select', __( 'Sociable Options' ), __( 'Sociable Options' ), 'manage_options', 'sociable_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page' ) );
 
1223
  // Add a second submenu to the custom top-level menu:
1224
 
 
 
1225
  add_submenu_page('options-general.php?page=sociable_select', __( 'Skyscraper Options' ), __( 'Skyscraper Options' ), 'manage_options', 'skyscraper_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page_Skycraper' ) );
 
1226
 
1227
 
 
 
1228
  //Add CSS And Javascript Specific To This Options Pages
1229
 
 
 
1230
  add_action( 'admin_print_styles-' . $page[0] , array( 'sociable_Admin_Options' , 'enqueue_styles' ) );
1231
 
 
 
1232
  add_action( 'admin_print_scripts-' . $page[0] , array( 'sociable_Admin_Options' , 'enqueue_scripts' ) );
1233
 
 
 
1234
 
1235
 
 
 
1236
  add_action( 'admin_print_styles-' . $page[1] , array( 'sociable_Admin_Options' , 'enqueue_styles' ) );
1237
 
 
 
1238
  add_action( 'admin_print_scripts-' . $page[1] , array( 'sociable_Admin_Options' , 'enqueue_scripts' ) );
 
1239
  add_action( 'admin_print_styles-' . $page[2] , array( 'sociable_Admin_Options' , 'enqueue_styles' ) );
1240
 
 
 
1241
  add_action( 'admin_print_scripts-' . $page[2] , array( 'sociable_Admin_Options' , 'enqueue_scripts' ) );
1242
 
 
 
1243
 
1244
 
 
 
1245
  if( isset( $_POST['sociable_reset'] ) ){
1246
 
 
 
1247
  check_admin_referer( 'sociable-reset' );
1248
 
 
 
1249
 
1250
 
 
 
1251
  sociable_reset();
1252
 
 
 
1253
  wp_redirect( $_SERVER['HTTP_REFERER' ] );
1254
 
 
 
1255
  }
1256
 
 
 
1257
 
1258
 
 
 
1259
  if( isset( $_POST['skyscraper_reset'] ) ){
1260
 
 
 
1261
  check_admin_referer( 'sociable-reset' );
1262
 
 
 
1263
 
1264
 
 
 
1265
  skyscraper_reset();
1266
 
 
 
1267
  wp_redirect( $_SERVER['HTTP_REFERER' ] );
1268
 
 
 
1269
  }
1270
 
 
 
1271
 
1272
 
 
 
1273
 
1274
 
 
 
1275
  /*
1276
 
 
 
1277
  * We can create The Meta Boxes Here
1278
 
 
 
1279
  */
1280
 
 
 
1281
  foreach( $sociable_post_types as $type => $data ){
1282
 
 
 
1283
  self::add_meta_box( $type );
1284
 
 
 
1285
  }
1286
 
 
 
1287
  //Also on posts and pages
1288
 
 
 
1289
  self::add_meta_box( 'post' );
1290
 
 
 
1291
  self::add_meta_box( 'page' );
1292
 
 
 
1293
 
1294
 
 
 
1295
  }
1296
 
 
 
1297
 
1298
 
 
 
1299
  /*
1300
 
 
 
1301
  * Function to Enqueue The Styles For The Options Page
1302
 
 
 
1303
  */
1304
 
 
 
1305
  function enqueue_styles(){
1306
 
 
 
1307
  wp_enqueue_style( 'style-admin-css', SOCIABLE_HTTP_PATH . 'css/style-admin.css' );
1308
 
 
 
1309
  wp_enqueue_style( 'sociable-admin-css', SOCIABLE_HTTP_PATH . 'css/sociable-admin.css' );
1310
 
 
 
1311
  wp_enqueue_style( 'sociablecss' , SOCIABLE_HTTP_PATH . 'css/sociable.css' );
1312
 
 
 
1313
  }
1314
 
 
 
1315
 
1316
 
 
 
1317
  /*
1318
 
 
 
1319
  * Function To Enqueue The Scripts For The Options Page
1320
 
 
 
1321
  */
1322
 
 
 
1323
  function enqueue_scripts(){
1324
 
 
 
1325
  wp_enqueue_script('jquery');
1326
 
 
 
1327
  wp_enqueue_script('jquery-ui-core',false,array('jquery'));
1328
 
 
 
1329
  wp_enqueue_script('jquery-ui-sortable',false,array('jquery','jquery-ui-core'));
1330
 
1331
- wp_enqueue_script( 'sociable-admin-js', SOCIABLE_HTTP_PATH . 'js/sociable-admin.js' , array( 'jquery','jquery-ui-core' , 'jquery-ui-sortable' ) );
1332
 
1333
- wp_enqueue_script( 'admin-fn-js', SOCIABLE_HTTP_PATH . 'js/admin-fn.js' , array( 'jquery','jquery-ui-core' , 'jquery-ui-sortable' ) );
1334
 
1335
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1336
 
1337
- }
1338
 
1339
 
1340
 
1341
-
1342
 
1343
-
1344
 
1345
  /*
1346
 
 
 
1347
  * Function To Add The Settings Fields.
1348
 
 
 
1349
  */
 
1350
  function do_site_selection_list($plugin = 'sociable'){
1351
 
 
 
1352
 
1353
 
 
 
1354
  if ($plugin == 'sociable'){
1355
 
 
 
1356
 
1357
 
 
 
1358
  global $sociable_options;
1359
 
 
 
1360
  $option_plugin = $sociable_options;
1361
 
 
 
1362
  $name_plugin = "sociable_options";
1363
 
 
 
1364
  }
1365
 
 
 
1366
  else{
1367
 
 
 
1368
 
1369
 
 
 
1370
  global $skyscraper_options;
1371
 
 
 
1372
  $option_plugin = $skyscraper_options;
1373
 
 
 
1374
  $name_plugin = "skyscraper_options";
1375
 
 
 
1376
  }
1377
 
 
 
1378
 
1379
 
 
 
1380
 
1381
 
 
 
1382
  $sociable_known_sites = get_option( 'sociable_known_sites' );
 
1383
  /*
1384
 
 
 
1385
  * Sort The List Based On The Active Sites So That They Display Correctly.
1386
 
 
 
1387
  */
1388
 
 
 
1389
  $active_sites = isset( $option_plugin['active_sites'] ) && is_array( $option_plugin['active_sites'] ) ? $option_plugin['active_sites'] : array() ;
1390
 
 
 
1391
 
1392
 
 
 
1393
  //Start Blank
1394
 
 
 
1395
  $active = Array();
1396
 
 
 
1397
 
1398
 
 
 
1399
  //Disabled Untill Proven Active
1400
 
 
 
1401
  $disabled = $sociable_known_sites;
1402
 
 
 
1403
 
1404
 
 
 
1405
  //Loop Through The Active Sites, sorting into 2 arrays
1406
 
 
 
1407
  foreach( $active_sites as $sitename => $value ) {
1408
 
 
 
1409
  $active[$sitename] = $disabled[$sitename];
1410
 
 
 
1411
  unset( $disabled[$sitename] );
1412
 
 
 
1413
  }
1414
 
 
 
1415
 
1416
 
 
 
1417
  uksort($disabled, "strnatcasecmp");
1418
 
 
 
1419
 
1420
 
 
 
1421
  $sites = array_merge( $active, $disabled );
1422
 
 
 
1423
 
1424
 
 
 
1425
  $imagepath = isset( $option_plugin['sociable_imagedir'] ) ? $option_plugin['sociable_imagedir'] : '' ;
1426
 
 
 
1427
 
1428
 
 
 
1429
  if ($imagepath == "") {
1430
 
 
 
1431
  $imagepath = trailingslashit( SOCIABLE_HTTP_PATH ) . 'images/';
1432
 
 
 
1433
  } else {
1434
 
 
 
1435
  $imagepath .= trailingslashit( $imagepath );
1436
 
 
 
1437
  }
1438
 
 
 
1439
 
1440
 
 
 
1441
  $out ='<ul id="sociable_site_list" >' ;
1442
 
 
 
1443
  $io = 0;
1444
 
 
 
1445
  foreach( $sites as $sitename => $site ){
1446
 
 
 
1447
 
1448
 
 
 
1449
 
1450
 
 
 
1451
  //Set Checked And Active If Relevant
1452
 
 
 
1453
  if( array_key_exists( $sitename, $active_sites ) ){
1454
 
 
 
1455
  $checked = 'checked="checked"';
1456
 
 
 
1457
  $active = 'active';
1458
 
 
 
1459
  } else {
1460
 
 
 
1461
  $checked = '';
1462
 
 
 
1463
  $active = 'inactive';
1464
 
 
 
1465
  }
1466
 
 
 
1467
  if ( $sitename != "More"){
1468
 
 
 
1469
  if (isset($site["counter"])){
1470
 
 
 
1471
  //$image = "<img src='".SOCIABLE_HTTP_PATH."images/".$site["favicon"]."'>";
1472
 
 
 
1473
  $image = $site["url"];
1474
 
 
 
1475
  }else{
1476
 
 
 
1477
  $image = _get_sociable_image( $site, '' );
1478
 
 
 
1479
  }
1480
 
 
 
1481
  }else{
1482
 
 
 
1483
  $image = "<img src='".SOCIABLE_HTTP_PATH."images/more.png'>";
1484
 
 
 
1485
  }
1486
 
 
 
1487
 
1488
 
 
 
1489
  // if ( ! isset( $site['spriteCoordinates']) || isset( $sociable_options['sociable_disablesprite'] ) ) {
1490
 
 
 
1491
  // if (strpos($site['favicon'], 'http') === 0) {
1492
 
 
 
1493
  // $imgsrc = $site['favicon'];
1494
 
 
 
1495
  // } else {
1496
 
 
 
1497
  // $imgsrc = $imagepath.$site['favicon'];
1498
 
 
 
1499
  // }
1500
 
 
 
1501
  // $img = '<img src="' . $imgsrc . '" width="16" height="16" />';
1502
 
 
 
1503
  // } else {
1504
 
 
 
1505
  // $imgsrc = $imagepath."services-sprite.gif";
1506
 
 
 
1507
  // $services_sprite_url = $imagepath . "services-sprite.png";
1508
 
 
 
1509
  // $spriteCoords = $site['spriteCoordinates'];
1510
 
 
 
1511
  // $img = '<img src="' . $imgsrc . '" width="16" height="16" style="background: transparent url(' . $services_sprite_url . ') no-repeat; background-position:-' . $spriteCoords[0] . 'px -' . $spriteCoords[1] . 'px" />';
1512
 
 
 
1513
  // }
1514
 
 
 
1515
 
1516
 
 
 
1517
  $out .= '<li id="' . $sitename . '" class="' . $active . '">';
1518
 
 
 
1519
 
1520
 
 
 
1521
  $out .= '<input type="checkbox" id="cb_' . $sitename . '" name="'.$name_plugin.'[active_sites][' . $sitename . ']" ' . $checked . ' />';
1522
 
 
 
1523
 
1524
 
 
 
1525
  $out .= $image;
1526
 
 
 
1527
  if (!isset($site["counter"])){
1528
 
 
 
1529
  $out .= $sitename;
1530
 
 
 
1531
  }
1532
 
 
 
1533
 
1534
 
 
 
1535
  $out .= '</li>';
1536
 
 
 
1537
 
1538
 
 
 
1539
  }
1540
 
 
 
1541
 
1542
 
 
 
1543
 
1544
 
 
 
1545
  echo $out."</ul>";
1546
 
 
 
1547
 
1548
 
 
 
1549
  }
1550
 
 
 
1551
 
1552
 
 
 
1553
  /*
1554
 
 
 
1555
  * Create The HTML For The Options Page
1556
 
 
 
1557
  */
1558
 
 
 
1559
  function Create_Options_Page(){
1560
 
 
 
1561
  global $sociable_options;
1562
 
 
 
1563
 
1564
 
 
 
1565
  ?>
1566
 
 
 
1567
 
1568
 
 
 
1569
  <div class="wrap">
1570
 
 
 
1571
 
1572
 
 
 
1573
  <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >
1574
 
 
 
1575
  <iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblogplay.com%2F&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=true&amp;action=recommend&amp;colorscheme=light&amp;font&amp;height=80&amp;appId=133479460071366" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:40px;" allowTransparency="true"></iframe><br />
1576
 
1577
- <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://blogplay.com/" data-via="sociablesite" data-hashtags="sociable">Tweet</a>
 
1578
 
1579
  <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
1580
 
 
 
1581
  <br />
1582
 
 
 
1583
  </div>
 
1584
  <h2 style="clear:both;"><?php _e( 'Sociable Options' ); ?></h2>
 
1585
  <form method="post" action="options.php" id="form1" autocomplete="off">
1586
 
 
 
1587
 
1588
 
 
 
1589
  <?php wp_nonce_field('sociable-config'); ?>
1590
 
 
 
1591
  <INPUT type="hidden" class="version-INPUT" id="version" name="sociable_options[version]" value="<?php echo$sociable_options["version"];?>" />
1592
 
 
 
1593
  <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px">
1594
 
 
 
1595
  <TR>
1596
 
 
 
1597
  <TD class="Border-Left" ></TD><TD class="BG-Middle" >Preview</TD><TD class="Border-Right"></TD>
1598
 
 
 
1599
  </TR>
1600
 
 
 
1601
  </TABLE>
1602
 
 
 
1603
  <BR/>
1604
 
 
 
1605
 
1606
 
 
 
1607
  <DIV class="Content-Box" id="Preview-Content">
1608
 
 
 
1609
  <DIV style="margin:0 0 0 25px" align="left" class="Live-Preview" id="Live-Preview" ><?php _e("Live preview of how Sociable will appear on your blog.","sociable")?></DIV>
1610
 
 
 
1611
 
1612
 
 
 
1613
  <BR/>
1614
 
 
 
1615
 
1616
 
 
 
1617
  <DIV style="margin:0 0 0 25px" class="Post-TXT" id="Post-TXT" ><?php _e("This is your post here...","sociable")?></DIV>
1618
 
 
 
1619
 
1620
 
 
 
1621
  <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >Lorem ipsum dolor sit amet, consectetur adipiscing elit.</DIV>
1622
 
 
 
1623
 
1624
 
 
 
1625
  <BR/>
1626
 
 
 
1627
  <DIV style="margin:0 0 0 25px" id="ShareAndEnjoy" > <?php do_sociable(); ?></DIV>
1628
 
 
 
1629
  </DIV>
1630
 
 
 
1631
  <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Tagline-Title">
1632
 
 
 
1633
  <TR>
1634
 
 
 
1635
  <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Tagline","sociable");?></TD><TD class="Border-Right"></TD>
1636
 
 
 
1637
  </TR>
1638
 
 
 
1639
  </TABLE>
1640
 
 
 
1641
  <BR/>
1642
 
 
 
1643
 
1644
 
 
 
1645
  <DIV class="Content-Box" id="Tagline-Content">
1646
 
 
 
1647
  <DIV class="Tagline-TXT" id="Tagline-TXT" ><?php _e('Previously we used "Share and Enjoy", remember the good old days?',"sociable");?></DIV>
1648
 
 
 
1649
 
1650
 
 
 
1651
  <BR/>
1652
 
 
 
1653
  <DIV style="width:100%;height:60px;">
1654
 
 
 
1655
  <INPUT type="text" class="Tagline-INPUT" id="tagline" name="sociable_options[tagline]" value="<?php echo$sociable_options["tagline"];?>" />
1656
 
 
 
1657
 
1658
 
 
 
1659
  <DIV class="ToSociable" >
1660
 
 
 
1661
  <INPUT type="checkbox" <?php if (!empty($sociable_options["help_grow"])) echo "checked = 'checked'";?> name="sociable_options[help_grow]" id="LinkToSociable" />
1662
 
 
 
1663
  <?php _e("Link to Sociable","sociable");?><BR/>
1664
 
 
 
1665
  <SPAN style="font-size:14px;"><?php _e("(Help us grow, please leave the link so others discover Sociable from your blog)","sociable");?></SPAN>
1666
 
 
 
1667
  </DIV>
1668
 
 
 
1669
  </DIV>
1670
 
 
 
1671
  </DIV>
1672
 
 
 
1673
 
1674
 
 
 
1675
 
1676
 
 
 
1677
  <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Tagline-Title">
1678
 
 
 
1679
  <TR>
1680
 
 
 
1681
  <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Icons to Include","sociable");?></TD><TD class="Border-Right"></TD>
1682
 
 
 
1683
  </TR>
1684
 
 
 
1685
  </TABLE>
1686
 
 
 
1687
  <BR/>
1688
 
 
 
1689
 
1690
 
 
 
1691
  <DIV class="Content-Box" id="IconsToInclude-Box" style="">
1692
 
 
 
1693
  <DIV class="IconsToInclude-TXT" id="IconsToInclude-TXT" >
1694
 
 
 
1695
  <?php _e("Check the sites you want to appear on your blog.","sociable");?>
1696
 
 
 
1697
  </DIV>
1698
 
 
 
1699
 
1700
 
 
 
1701
  <BR/>
1702
 
 
 
1703
 
1704
 
 
 
1705
  <?php self::do_site_selection_list(); ?>
1706
 
 
 
1707
  </DIV>
1708
 
 
 
1709
 
1710
 
 
 
1711
  <div class="soc_clear"></div>
1712
 
 
 
1713
 
1714
 
 
 
1715
  <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="IconSize-Title" style="margin-top:20px;">
1716
 
 
 
1717
  <TR>
1718
 
 
 
1719
  <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Icons Size","sociable");?></TD><TD class="Border-Right"></TD>
1720
 
 
 
1721
  </TR>
1722
 
 
 
1723
  </TABLE>
1724
 
 
 
1725
  <BR/>
1726
 
 
 
1727
 
1728
 
 
 
1729
  <DIV class="Content-Box" style="margin-left:-3px" id="IconSize-Content">
1730
 
 
 
1731
  <?php
1732
 
 
 
1733
  $checked16 = "";
1734
 
 
 
1735
  $checked32 = "";
1736
 
 
 
1737
  $checked48 = "";
1738
 
 
 
1739
  $checked64 = "";
1740
 
 
 
1741
  if ($sociable_options["icon_size"] == 16) $checked16 = "checked='checked'";
1742
 
 
 
1743
  if ($sociable_options["icon_size"] == 32) $checked32 = "checked='checked'";
1744
 
 
 
1745
  if ($sociable_options["icon_size"] == 48) $checked48 = "checked='checked'";
1746
 
 
 
1747
  if ($sociable_options["icon_size"] == 64) $checked64 = "checked='checked'";
1748
 
 
 
1749
  //echo $checked16;
1750
 
 
 
1751
  ?>
1752
 
 
 
1753
  <SPAN class="IconSize-Item"> <INPUT value="16" type="radio" name="sociable_options[icon_size]" <?php echo $checked16;?> />16x16 Pixels </SPAN>
1754
 
 
 
1755
 
1756
 
 
 
1757
  <SPAN class="IconSize-Item"> <INPUT <?php echo$checked32;?> value="32" type="radio" name="sociable_options[icon_size]" />32x32 Pixels </SPAN>
1758
 
 
 
1759
 
1760
 
 
 
1761
  <SPAN class="IconSize-Item"> <INPUT <?php echo$checked48;?> value="48" type="radio" name="sociable_options[icon_size]"/>48x48 Pixels </SPAN>
1762
 
 
 
1763
 
1764
 
 
 
1765
  <SPAN class="IconSize-Item"> <INPUT <?php echo$checked64;?> value="64" type="radio" name="sociable_options[icon_size]" />64x64 Pixels </SPAN>
1766
 
 
 
1767
 
1768
 
 
 
1769
 
1770
 
 
 
1771
  </DIV>
1772
 
 
 
1773
 
1774
 
 
 
1775
  <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="IconSize-Title" style="margin-top:20px;">
1776
 
 
 
1777
  <TR>
1778
 
 
 
1779
  <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Icons Style","sociable");?></TD><TD class="Border-Right"></TD>
1780
 
 
 
1781
  </TR>
1782
 
 
 
1783
  </TABLE>
1784
 
 
 
1785
  <BR/>
1786
 
 
 
1787
 
1788
 
 
 
1789
  <DIV class="Content-Box" id="IconSize-Content" style="padding:20px;">
1790
 
 
 
1791
 
1792
 
 
 
1793
  <?php
1794
 
 
 
1795
  $checked1 = "";
1796
 
 
 
1797
  $checked2 = "";
1798
 
 
 
1799
  $checked3 = "";
1800
 
 
 
1801
  $checked4 = "";
1802
 
 
 
1803
  $checked5 = "";
1804
 
 
 
1805
  $checked6 = "";
1806
 
 
 
1807
  if ($sociable_options["icon_option"] == "option1") $checked1 = "checked='checked'";
1808
 
 
 
1809
  if ($sociable_options["icon_option"] == "option2") $checked2 = "checked='checked'";
1810
 
 
 
1811
  if ($sociable_options["icon_option"] == "option3") $checked3 = "checked='checked'";
1812
 
 
 
1813
  if ($sociable_options["icon_option"] == "option4") $checked4 = "checked='checked'";
1814
 
 
 
1815
  if ($sociable_options["icon_option"] == "option5") $checked5 = "checked='checked'";
1816
 
 
 
1817
  if ($sociable_options["icon_option"] == "option6") $checked6 = "checked='checked'";
1818
 
 
 
1819
 
1820
 
 
 
1821
  $imagepath = isset( $sociable_options['sociable_imagedir'] ) ? $sociable_options['sociable_imagedir'] : '' ;
1822
 
 
 
1823
 
1824
 
 
 
1825
  if ($imagepath == "") {
1826
 
 
 
1827
  $imagepath = trailingslashit( SOCIABLE_HTTP_PATH ) . 'images/';
1828
 
 
 
1829
  } else {
1830
 
 
 
1831
  $imagepath .= trailingslashit( $imagepath );
1832
 
 
 
1833
  }
1834
 
 
 
1835
  //echo $imagepath;
1836
 
 
 
1837
  ?>
1838
 
1839
-
1840
 
1841
- <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo$checked1?> value="option1" type="radio" /> <IMG src="<?php echo$imagepath?>icon_styles/<?php echo$sociable_options["icon_size"]?>/option1_<?php echo$sociable_options["icon_size"]?>.jpg" /> </SPAN>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1842
 
1843
  <BR/><BR/>
1844
 
1845
- <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo$checked2?> value="option2" type="radio" /> <IMG src="<?php echo$imagepath?>icon_styles/<?php echo$sociable_options["icon_size"]?>/option2_<?php echo$sociable_options["icon_size"]?>.jpg" /> </SPAN>
1846
 
1847
- <BR/><BR/>
1848
 
1849
  <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo$checked3?> value="option3" type="radio" /> <IMG src="<?php echo$imagepath?>icon_styles/<?php echo$sociable_options["icon_size"]?>/option3_<?php echo$sociable_options["icon_size"]?>.jpg" /> </SPAN>
1850
 
 
 
1851
  <BR/><BR/>
1852
 
 
 
1853
  <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo$checked4?> value="option4" type="radio" /> <IMG src="<?php echo$imagepath?>icon_styles/<?php echo$sociable_options["icon_size"]?>/option4_<?php echo$sociable_options["icon_size"]?>.jpg" /> </SPAN>
1854
 
 
 
1855
  <BR/><BR/>
1856
 
 
 
1857
  <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo$checked5?> value="option5" type="radio" /> <IMG src="<?php echo$imagepath?>icon_styles/<?php echo$sociable_options["icon_size"]?>/option5_<?php echo$sociable_options["icon_size"]?>.jpg" /> </SPAN>
1858
 
 
 
1859
  <BR/><BR/>
1860
 
 
 
1861
  <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo$checked6?> value="option6" type="radio" /> <IMG src="<?php echo$imagepath?>icon_styles/16/option_6_16.png" /> </SPAN>
1862
 
 
 
1863
  <BR/><BR/>
1864
 
 
 
1865
  </DIV>
1866
 
 
 
1867
 
1868
 
 
 
1869
  <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Locations');" >
1870
 
 
 
1871
  <TR>
1872
 
 
 
1873
  <TD class="Border-Left" ></TD><TD class="BG-Middle" id="Locations-Title" ><span id="Locations-Tab">+ </span><?php _e("Locations","sociable");?></TD><TD class="Border-Right"></TD>
1874
 
 
 
1875
  </TR>
1876
 
 
 
1877
  </TABLE>
1878
 
 
 
1879
  <BR/>
1880
 
 
 
1881
 
1882
 
 
 
1883
  <DIV class="Content-Box" id="Locations-Content" style="display:none;" >
1884
 
 
 
1885
  <DIV class="Locations-TXT" id="Locations-TXT" ><?php _e("Please select the locations that you wish to allow the Sociable plugin to insert itself.","sociable");?></DIV>
1886
 
 
 
1887
 
1888
 
 
 
1889
  <BR/>
1890
 
 
 
1891
  <DIV align="center" style="width:100%;">
1892
 
 
 
1893
  <TABLE align="center" class="Locations-List" cellspacing="0" border=0 cellpadding="10">
1894
 
 
 
1895
  <TR valign="top" >
1896
 
 
 
1897
  <TD align="right" class="Title" ><?php _e("Home page","sociable");?></TD>
1898
 
 
 
1899
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_front_page"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_front_page]" id="HomePage" /></TD>
1900
 
 
 
1901
  <TD align="left" class="Content">
1902
 
 
 
1903
  <SPAN class="TXT"><?php _e("The front page of the blog (if set to a static page), or the main blog page (if set to your latest posts).","sociable");?></SPAN>
1904
 
 
 
1905
 
1906
 
 
 
1907
  </TD>
1908
 
 
 
1909
  </TR>
1910
 
 
 
1911
 
1912
 
 
 
1913
  <TR valign="top" >
1914
 
 
 
1915
  <TD align="right" class="Title" ><?php _e("Blog page","sociable");?></TD>
1916
 
 
 
1917
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_home"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_home]" id="BlogPage" /></TD>
1918
 
 
 
1919
  <TD align="left" class="Content">
1920
 
 
 
1921
  <SPAN class="TXT"><?php _e("The home page of the blog if is set to your latest posts, or the posts page if the home page is set to a static page","sociable");?></SPAN>
1922
 
 
 
1923
 
1924
 
 
 
1925
  </TD>
1926
 
 
 
1927
  </TR>
1928
 
 
 
1929
 
1930
 
 
 
1931
  <TR valign="top" >
1932
 
 
 
1933
  <TD align="right" class="Title" ><?php _e("Posts","sociable");?></TD>
1934
 
 
 
1935
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_single"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_single]" id="Posts" /></TD>
1936
 
 
 
1937
  <TD align="left" class="Content">
1938
 
 
 
1939
  <SPAN class="TXT"><?php _e("Single post pages","sociable");?></SPAN>
1940
 
 
 
1941
 
1942
 
 
 
1943
  </TD>
1944
 
 
 
1945
  </TR>
1946
 
 
 
1947
 
1948
 
 
 
1949
  <TR valign="top" >
1950
 
 
 
1951
  <TD align="right" class="Title" ><?php _e("Pages","sociable");?></TD>
1952
 
 
 
1953
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_page"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_page]" id="Pages" /></TD>
1954
 
 
 
1955
  <TD align="left" class="Content">
1956
 
 
 
1957
  <SPAN class="TXT"><?php _e("Individual Wordpress pages","sociable");?></SPAN>
1958
 
 
 
1959
 
1960
 
 
 
1961
  </TD>
1962
 
 
 
1963
  </TR>
1964
 
 
 
1965
 
1966
 
 
 
1967
  <TR valign="top" >
1968
 
 
 
1969
  <TD align="right" class="Title" ><?php _e("Category archives","sociable");?></TD>
1970
 
 
 
1971
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_category"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_category]" id="CategoryArchives" /></TD>
1972
 
 
 
1973
  <TD align="left" class="Content">
1974
 
 
 
1975
  <SPAN class="TXT"><?php _e("Category archive pages","sociable");?></SPAN>
1976
 
 
 
1977
 
1978
 
 
 
1979
  </TD>
1980
 
 
 
1981
  </TR>
1982
 
 
 
1983
 
1984
 
 
 
1985
  <TR valign="top" >
1986
 
 
 
1987
  <TD align="right" class="Title" ><?php _e("Date archives","sociable");?></TD>
1988
 
 
 
1989
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_date"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_date]" id="DateArchives" /></TD>
1990
 
 
 
1991
  <TD align="left" class="Content">
1992
 
 
 
1993
  <SPAN class="TXT"><?php _e("Date archive pages","sociable");?> </SPAN>
1994
 
 
 
1995
 
1996
 
 
 
1997
  </TD>
1998
 
 
 
1999
  </TR>
2000
 
 
 
2001
 
2002
 
 
 
2003
  <TR valign="top" >
2004
 
 
 
2005
  <TD align="right" class="Title" ><?php _e("Tag archives","sociable");?></TD>
2006
 
 
 
2007
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_tag"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_tag]" id="TagArchives" /></TD>
2008
 
 
 
2009
  <TD align="left" class="Content">
2010
 
 
 
2011
  <SPAN class="TXT"><?php _e("Tag archive pages","sociable");?> </SPAN>
2012
 
 
 
2013
 
2014
 
 
 
2015
  </TD>
2016
 
 
 
2017
  </TR>
2018
 
 
 
2019
 
2020
 
 
 
2021
  <TR valign="top" >
2022
 
 
 
2023
  <TD align="right" class="Title" ><?php _e("Author archives","sociable");?></TD>
2024
 
 
 
2025
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_author"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_author]" id="AuthorArchives" /></TD>
2026
 
 
 
2027
  <TD align="left" class="Content">
2028
 
 
 
2029
  <SPAN class="TXT"><?php _e("Author archive pages","sociable");?></SPAN>
2030
 
 
 
2031
 
2032
 
 
 
2033
  </TD>
2034
 
 
 
2035
  </TR>
2036
 
 
 
2037
 
2038
 
 
 
2039
  <TR valign="top" >
2040
 
 
 
2041
  <TD align="right" class="Title" ><?php _e("Search results","sociable");?></TD>
2042
 
 
 
2043
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_search"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_search]" id="SearchResults" /></TD>
2044
 
 
 
2045
  <TD align="left" class="Content">
2046
 
 
 
2047
  <SPAN class="TXT"><?php _e("Search results pages","sociable");?></SPAN>
2048
 
 
 
2049
 
2050
 
 
 
2051
  </TD>
2052
 
 
 
2053
  </TR>
2054
 
 
 
2055
 
2056
 
 
 
2057
  <TR valign="top" >
2058
 
 
 
2059
  <TD align="right" class="Title" ><?php _e("RSS feeds","sociable");?></TD>
2060
 
 
 
2061
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_rss"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_rss]" id="RssFeeds" /></TD>
2062
 
 
 
2063
  <TD align="left" class="Content">
2064
 
 
 
2065
  <SPAN class="TXT"><?php _e("RSS feeds","sociable");?></SPAN>
2066
 
 
 
2067
 
2068
 
 
 
2069
  </TD>
2070
 
 
 
2071
  </TR>
2072
 
 
 
2073
 
2074
 
 
 
2075
 
2076
 
 
 
2077
  </TABLE>
2078
 
 
 
2079
  <BR/><BR/>
2080
 
 
 
2081
  </DIV>
2082
 
 
 
2083
  </DIV>
2084
 
 
 
2085
 
2086
 
 
 
2087
  <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('GeneralOptions');">
2088
 
 
 
2089
  <TR>
2090
 
 
 
2091
  <TD class="Border-Left" ></TD><TD class="BG-Middle" id="GeneralOptions-Title" ><span id="GeneralOptions-Tab"> + </span> <?php _e("General Options","sociable");?></TD><TD class="Border-Right"></TD>
2092
 
 
 
2093
  </TR>
2094
 
 
 
2095
  </TABLE>
2096
 
 
 
2097
  <BR/>
2098
 
 
 
2099
 
2100
 
 
 
2101
  <DIV class="Content-Box" id="GeneralOptions-Content" style="display:none;" >
2102
 
 
 
2103
 
2104
 
 
 
2105
  <BR/>
2106
 
 
 
2107
  <DIV align="center" style="width:100%;">
2108
 
 
 
2109
  <TABLE align="center" class="GeneralOptions-List" cellspacing="0" border=0 cellpadding ="10" >
2110
 
 
 
2111
  <TR valign="top" >
2112
 
 
 
2113
  <TD align="right" class="Title" ><?php _e("Automatic mode","sociable")?></TD>
2114
 
 
 
2115
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["automatic_mode"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[automatic_mode]" id="AutoMode" /></TD>
2116
 
 
 
2117
  <TD align="left" class="Content">
2118
 
 
 
2119
  <SPAN class="TXT"><?php _e("Do you want to automatically use Sociable on the locations specified?","sociable");?> </SPAN>
2120
 
 
 
2121
  <BR/>
2122
 
 
 
2123
  <SPAN class="sTXT">
2124
 
 
 
2125
  <?php _e("If this is unchecked, you will have to use the shortcode[sociable/] or template","sociable");?> tag ?php if( function_exists( do_sociable() ) ){ do_sociable(); }
2126
 
 
 
2127
  </SPAN>
2128
 
 
 
2129
 
2130
 
 
 
2131
  </TD>
2132
 
 
 
2133
  </TR>
2134
 
 
 
2135
 
2136
 
 
 
2137
 
2138
 
 
 
2139
  </TR>
2140
 
 
 
2141
  <TR valign="top" >
2142
 
 
 
2143
  <TD align="right" class="Title" ><?php _e("Use styleSheet","sociable");?></TD>
2144
 
 
 
2145
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["use_stylesheet"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[use_stylesheet]" id="UseStyleSheets" /></TD>
2146
 
 
 
2147
  <TD align="left" class="Content">
2148
 
 
 
2149
  <SPAN class="TXT"><?php _e("Do you want to use the default stylesheet for sociable?","sociable");?></SPAN>
2150
 
 
 
2151
  </TD>
2152
 
 
 
2153
  </TR>
2154
 
 
 
2155
  <TR valign="top" >
2156
 
 
 
2157
  <TD align="right" class="Title" ><?php _e("Use your own icons","sociable");?></TD>
2158
 
 
 
2159
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["custom_icons"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[custom_icons]" id="UseStyleSheets" /></TD>
2160
 
 
 
2161
  <TD align="left" class="Content">
2162
 
 
 
2163
  <SPAN class="TXT"><?php _e("Do you want to use your own icons for sociable?","sociable");?></SPAN>
2164
 
 
 
2165
  </TD>
2166
 
 
 
2167
  </TR>
2168
 
 
 
2169
  <TR valign="top" >
2170
 
 
 
2171
  <TD align="right" class="Title" ><?php _e("Use images","sociable");?></TD>
2172
 
 
 
2173
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["use_images"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[use_images]" id="UseImages" /></TD>
2174
 
 
 
2175
  <TD align="left" class="Content">
2176
 
 
 
2177
  <SPAN class="TXT"><?php _e("Do you want to use the Sociable images? If not, the plugin will insert plain text links.","sociable");?></SPAN>
2178
 
 
 
2179
  </TD>
2180
 
 
 
2181
  </TR>
2182
 
 
 
2183
 
2184
 
 
 
2185
 
2186
 
 
 
2187
  <TR valign="top" >
2188
 
 
 
2189
  <TD align="right" class="Title" ><?php _e("Use alpha mask","sociable");?></TD>
2190
 
 
 
2191
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["use_alphamask"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[use_alphamask]" id="AlphaMask" /></TD>
2192
 
 
 
2193
  <TD align="left" class="Content">
2194
 
 
 
2195
  <SPAN class="TXT"><?php _e("Do you want to use alpha masks on the images (available only on the Original Sociable)?","sociable");?></SPAN>
2196
 
 
 
2197
  </TD>
2198
 
 
 
2199
  </TR>
2200
 
 
 
2201
  <TR valign="top" >
2202
 
 
 
2203
  <TD align="right" class="Title" ><?php _e("Bottom and Top","sociable");?></TD>
2204
 
 
 
2205
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["topandbottom"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[topandbottom]" id="TopAndBottom" /></TD>
2206
 
 
 
2207
  <TD align="left" class="Content">
2208
 
 
 
2209
  <SPAN class="TXT"><?php _e("Do you want to use Sociable plugin to show up at the top and bottom?","sociable");?></SPAN>
2210
 
 
 
2211
  </TD>
2212
 
 
 
2213
  </TR>
2214
 
 
 
2215
  <TR valign="top" >
2216
 
 
 
2217
  <TD align="right" class="Title" ><?php _e("Open in new window","sociable");?></TD>
2218
 
 
 
2219
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["new_window"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[new_window]" id="OpenNewWindow" /></TD>
2220
 
 
 
2221
  <TD align="left" class="Content">
2222
 
 
 
2223
  <SPAN class="TXT"><?php _e("do you want to open the links in a new window?","sociable");?></SPAN>
2224
 
 
 
2225
  </TD>
2226
 
 
 
2227
  </TR>
2228
 
 
 
2229
 
2230
 
 
 
2231
 
2232
 
 
 
2233
 
2234
 
 
 
2235
  </TABLE>
2236
 
 
 
2237
 
2238
 
 
 
2239
  <BR/><BR/>
2240
 
 
 
2241
  </DIV>
2242
 
 
 
2243
  </DIV>
2244
 
 
 
2245
  <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Active');" >
2246
 
 
 
2247
  <TR>
2248
 
 
 
2249
  <TD class="Border-Left" ></TD><TD class="BG-Middle" id="Active-Title" ><span id="Active-Tab">+ </span><?php _e("Active Sociable Classic","sociable");?></TD><TD class="Border-Right"></TD>
2250
 
 
 
2251
  </TR>
2252
 
 
 
2253
  </TABLE>
2254
 
 
 
2255
 
2256
 
 
 
2257
  <div style="display: block;" id="Active-Content" class="Content-Box">
2258
 
 
 
2259
 
2260
 
 
 
2261
  <br>
2262
 
 
 
2263
  <div align="center" style="width:100%;">
2264
 
 
 
2265
  <table align="center" cellspacing="0" cellpadding="10" border="0" class="GeneralOptions-List">
2266
 
 
 
2267
 
2268
 
 
 
2269
  <tbody><tr valign="top">
2270
 
 
 
2271
  <td align="right" class="Title">Active Sociable Classic</td>
2272
 
 
 
2273
  <td align="left" style="width:5px;">
2274
 
 
 
2275
  <input <?php if(isset($sociable_options["active"])) echo "checked='checked'"?> type="checkbox" id="active" name="sociable_options[active]" /></td>
2276
 
 
 
2277
  <td align="left" class="Content">
2278
 
 
 
2279
  <span class="TXT">Check if you want Sociable Classic enable </span>
2280
 
 
 
2281
  <br>
2282
 
 
 
2283
 
2284
 
 
 
2285
  </td>
2286
 
 
 
2287
  </tr>
2288
 
 
 
2289
  </tbody></table>
2290
 
 
 
2291
  <br><br>
2292
 
 
 
2293
  </div>
2294
 
 
 
2295
  </div>
2296
 
 
 
2297
  <?php //<HR style="height:10px;background:#18305d;"/>?>
2298
 
 
 
2299
  <?php settings_fields( 'sociable_options_group' ); ?>
2300
 
 
 
2301
  </FORM>
2302
 
 
 
2303
  <DIV class="Content-Box" >
2304
 
 
 
2305
  <DIV id="ActionsBar">
2306
 
 
 
2307
  <DIV class="SaveChanges" onClick="document.getElementById('form1').submit();" style="cursor:pointer;line-height:15px;"><br/>
2308
 
 
 
2309
  <span style="margin:30px;"><?php _e("Save Changes","sociable");?></span>
2310
 
 
 
2311
  </DIV>
2312
 
 
 
2313
  <DIV class="ResetSociable" id="sociable_reset" name="sociable_reset" onClick="document.getElementById('sociable_reset_form').submit();" style="cursor:pointer;line-height:15px;font-size:12px;"><br/>
2314
 
 
 
2315
  <span style="margin:40px;margin-left:35px;"><?php _e("Reset Sociable","sociable");?></span>
2316
 
 
 
2317
  </DIV>
2318
 
 
 
2319
  <DIV class="UninstallSociable" onClick="document.getElementById('sociable_remove_form').submit();" style="cursor:pointer;line-height:15px;font-size:12px;"><br/>
2320
 
 
 
2321
  <span style="margin:25px;margin-left:20px;"><?php _e("Completly Uninstall Sociable","sociable");?></span>
2322
 
 
 
2323
  </DIV>
2324
 
 
 
2325
  </DIV>
2326
 
 
 
2327
  </DIV>
2328
 
 
 
2329
  <br>
2330
 
 
 
2331
  <br>
2332
 
 
 
2333
 
2334
 
 
 
2335
 
2336
 
 
 
2337
 
 
2338
  <?php //do_settings_sections( 'sociable_options' ); ?>
 
2339
 
 
2340
 
2341
 
 
 
2342
 
2343
 
 
 
2344
  <form id="sociable_reset_form" action="" method="POST">
2345
 
 
 
2346
  <?php wp_nonce_field('sociable-reset'); ?>
2347
 
 
 
2348
  <input type="hidden" id="sociable_reset" name="sociable_reset" value="1">
2349
 
 
 
2350
  <?php //submit_button( __( 'Reset Sociable' ) , 'primary', 'sociable_reset', false ); ?>
2351
 
 
 
2352
  </form>
2353
 
 
 
2354
 
2355
 
 
 
2356
 
 
2357
  </div>
 
2358
  <?php }
2359
 
 
 
2360
 
2361
 
 
 
2362
  function add_meta_box( $page ){
2363
 
 
 
2364
  add_meta_box( 'sociable_off' , __( 'Disable sociable' ), array( 'sociable_Admin_Options' , 'create_meta_box' ) , $page, 'side', 'default' );
2365
 
 
 
2366
  }
2367
 
 
 
2368
 
2369
 
 
 
2370
  function create_meta_box(){
2371
 
 
 
2372
  global $post;
2373
 
 
 
2374
  $sociableoff = false;
2375
 
 
 
2376
  $checked = '';
2377
 
 
 
2378
  if ( get_post_meta( $post->ID,'_sociableoff',true ) ) {
2379
 
 
 
2380
  $checked = 'checked="checked"';
2381
 
 
 
2382
  }
2383
 
 
 
2384
  wp_nonce_field( 'update_sociable_off' , 'sociable_nonce' );
2385
 
 
 
2386
  echo '<input type="checkbox" id="sociableoff" name="sociableoff" ' . $checked . ' /> <p class="description">' . __('Check This To Disable Sociable 2 On This Post Only.') . '</p>';
2387
 
 
 
2388
 
2389
 
 
 
2390
  }
2391
 
 
 
2392
 
2393
 
 
 
2394
  function save_post( $post_id ){
2395
 
 
 
2396
 
2397
 
 
 
2398
  if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
2399
 
 
 
2400
  return $post_id;
 
2401
  // verify this came from the our screen and with proper authorization,
2402
 
 
 
2403
  // because save_post can be triggered at other times
2404
 
 
 
2405
 
2406
 
 
 
2407
  $nonce = ( isset( $_POST['sociable_nonce'] ) ) ? $_POST['sociable_nonce'] : false ;
 
2408
  if ( ! $nonce || ! wp_verify_nonce( $nonce, 'update_sociable_off' ) )
2409
 
 
 
2410
  return $post_id;
2411
 
 
 
2412
  // Check permissions
2413
 
 
 
2414
  if ( 'page' == $_POST['post_type'] ){
2415
 
 
 
2416
  if ( !current_user_can( 'edit_page', $post_id ) )
2417
 
 
 
2418
  return;
2419
 
 
 
2420
  } else {
2421
 
 
 
2422
  if ( !current_user_can( 'edit_post', $post_id ) )
2423
 
 
 
2424
  return;
2425
 
 
 
2426
  }
2427
 
 
 
2428
 
2429
 
 
 
2430
  //Lets Do This
2431
 
 
 
2432
  if( isset( $_POST['sociableoff'] ) ){
2433
 
 
 
2434
  update_post_meta( $post_id, '_sociableoff' , $_POST['sociableoff'] );
2435
 
 
 
2436
  } else {
2437
 
 
 
2438
  delete_post_meta( $post_id, '_sociableoff' );
2439
 
 
 
2440
  }
2441
 
 
 
2442
 
2443
 
 
 
2444
  return $post_id;
2445
 
 
 
2446
  }
2447
 
 
 
2448
 
2449
 
 
 
2450
  /**
2451
 
 
 
2452
  * This Function Runs Before The Options Are Printed Out.
2453
 
 
 
2454
  */
2455
 
 
 
2456
  function general_options_callback(){
2457
 
 
 
2458
 
2459
 
 
 
2460
  return true;
2461
 
 
 
2462
  }
2463
 
 
 
2464
 
2465
 
 
 
2466
  /**
2467
 
 
 
2468
  * This Function Runs Before The Location Options Are Echoed Out.
2469
 
 
 
2470
  */
2471
 
 
 
2472
  function location_options_callback(){
2473
 
 
 
2474
  echo '<p>' . __( 'Please Select The Locations That You Wish To Allow The Sociable 2 Plugin To Insert The Links.' ) . '</p>';
2475
 
 
 
2476
  }
2477
 
 
 
2478
 
2479
 
 
 
2480
  /**
2481
 
 
 
2482
  * Adds A Function For The add_settings_field(); function
2483
 
 
 
2484
  *
2485
 
 
 
2486
  * should be passed:
2487
 
 
 
2488
  * $data = array(
2489
 
 
 
2490
  * 'id' => 'field_id_and_name',
2491
 
 
 
2492
  * 'description' => 'field Description Should Go Here, This is Not The Title, Rather The Description'
2493
 
 
 
2494
  * );
2495
 
 
 
2496
  */
2497
 
 
 
2498
  function Checkbox( $data ){
2499
 
 
 
2500
  global $sociable_options;
2501
 
 
 
2502
 
2503
 
 
 
2504
  //Save The Locations As a seperate array option
2505
 
 
 
2506
  if( isset( $data['locations'] ) ){
2507
 
 
 
2508
  $name = 'sociable_options[locations][' . $data['id'] . ']';
2509
 
 
 
2510
  $checked = ( isset( $sociable_options['locations'][$data['id']] ) ) ? 'checked="checked"' : '' ;
2511
 
 
 
2512
  } else {
2513
 
 
 
2514
  $name = 'sociable_options[' . $data['id'] . ']';
2515
 
 
 
2516
  $checked = ( isset( $sociable_options[$data['id']] ) ) ? 'checked="checked"' : '' ;
2517
 
 
 
2518
  }
2519
 
 
 
2520
 
2521
 
 
 
2522
 
 
2523
  echo '<input ' . $checked . ' id="' . $data['id'] . '" name="' . $name . '" type="checkbox" /> <span class="description">' . $data['description'] . '</span>';
 
2524
  }
2525
 
 
 
2526
 
2527
 
 
 
2528
  function TextInput( $data ){
2529
 
 
 
2530
  global $sociable_options;
2531
 
 
 
2532
 
2533
 
 
 
2534
  $value = ( isset( $sociable_options[$data['id']] ) ) ? $sociable_options[$data['id']] : '';
2535
 
 
 
2536
 
 
2537
  echo '<input id="' . $data['id'] . '" name="sociable_options[' . $data['id'] . ']" size="40" type="text" value="' . esc_attr( $value ) . '" /> <br /><span class="description">' . $data['description'] . '</span>';
 
2538
 
2539
 
 
 
2540
  }
2541
 
 
 
2542
 
2543
 
 
 
2544
  function TextArea( $data ){
2545
 
 
 
2546
  global $sociable_options;
2547
 
 
 
2548
 
2549
 
 
 
2550
  $value = ( isset( $sociable_options[$data['id']] ) ) ? $sociable_options[$data['id']] : '';
2551
 
 
 
2552
 
 
2553
  echo '<textarea id="' . $data['id'] . '" name="sociable_options[' . $data['id'] . ']" >' . $value . '</textarea> <br /><span class="description">' . $data['description'] . '</span>';
 
2554
 
2555
 
 
 
2556
  }
2557
 
 
 
2558
 
2559
 
 
 
2560
  function radio( $data ){
2561
 
 
 
2562
  global $sociable_options;
2563
 
 
 
2564
 
2565
 
 
 
2566
  $cur_val = ( isset( $sociable_options[$data['id']] ) ) ? $sociable_options[$data['id']] : 0 ;
2567
 
 
 
2568
 
2569
 
 
 
2570
  echo '<span class="description">' . $data['description'] . '</span><br />';
2571
 
 
 
2572
  foreach( $data['options'] as $value => $option ){
2573
 
 
 
2574
  $selected = ( $value == $cur_val ) ? 'checked="checked"' : '' ;
2575
 
 
 
2576
  echo '<input type="radio" name="sociable_options[' . $data['id'] . ']" value="' . $value . '" ' . $selected . ' /> <span>' . $option . '</span><br />';
2577
 
 
 
2578
  }
2579
 
 
 
2580
  }
2581
 
 
 
2582
 
2583
 
 
 
2584
 
2585
 
 
 
2586
  }
 
2587
  function add_ie7() {
 
2588
  echo'<!--[if lt IE 7]>
2589
 
 
 
2590
  <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js"
2591
 
 
 
2592
  type="text/javascript"></script>
2593
 
 
 
2594
  <![endif]-->
2595
 
 
 
2596
  <!--[if lt IE 8]>
2597
 
 
 
2598
  <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js"
2599
 
 
 
2600
  type="text/javascript"></script>
2601
 
 
 
2602
  <![endif]-->
2603
 
 
 
2604
  <!--[if lt IE 9]>
2605
 
 
 
2606
  <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
2607
 
 
 
2608
  <![endif]-->';
 
2609
  }
2610
 
 
 
2611
  //add_action('admin_head', 'add_ie7' );
2612
 
 
 
2613
  ?>
1
  <?php
2
+
3
  /*
4
 
5
+
6
+
7
  * Administration Options Class For Sociable 2
8
 
9
+
10
+
11
  */
12
+
13
  class sociable_Admin_Options{
14
 
15
+
16
+
17
 
18
 
19
+
20
+
21
  /**
22
 
23
+
24
+
25
  * A Function To Hook To Admin Init.
26
 
27
+
28
+
29
  */
30
 
31
+
32
+
33
  function init(){
34
 
35
+
36
+
37
 
38
 
39
+
40
+
41
  register_setting( 'sociable_options_group' , 'sociable_options' );
42
 
43
+
44
+
45
 
46
 
47
+
48
+
49
  //Add The Settings Sections
50
 
51
+
52
+
53
  // add_settings_section( 'sociable_locations', __( 'Locations' ), array( 'sociable_Admin_Options' , 'location_options_callback' ) , 'sociable_options' );
54
 
55
+
56
+
57
 
58
 
59
+
60
+
61
  // add_settings_section( 'sociable_options', __( 'General Options' ), array( 'sociable_Admin_Options' , 'general_options_callback' ) , 'sociable_options' );
62
 
63
+
64
+
65
 
66
 
67
+
68
+
69
 
70
 
71
+
72
+
73
  register_setting( 'skyscraper_options_group' , 'skyscraper_options' );
74
 
75
+
76
+
77
 
78
 
79
+
80
+
81
  // add_settings_section( 'sociable_locations', __( 'Locations' ), array( 'sociable_Admin_Options' , 'location_options_callback' ) , 'skyscraper_options' );
82
 
83
+
84
+
85
 
86
 
87
+
88
+
89
  }
90
 
91
+
92
+
93
 
94
 
95
+
96
+
97
  function skyscraper_init(){
98
 
99
+
100
+
101
 
102
+
103
  register_setting( 'skyscraper_options_group' , 'skyscraper_options' );
104
+
105
  add_settings_section( 'sociable_locations', __( 'Locations' ), array( 'sociable_Admin_Options' , 'location_options_callback' ) , 'skyscraper_options' );
106
 
107
+
108
+
109
 
110
 
111
+
112
+
113
  //Add All The Settings Fields
114
 
115
+
116
+
117
  //self::add_settings_fields();
118
 
119
+
120
+
121
  }
122
 
123
+
124
+
125
 
126
 
127
+
128
+
129
  function Select_Sociable_Page(){
130
 
131
+
132
+
133
 
134
 
135
+
136
+
137
  global $sociable_options;
138
 
139
+
140
+
141
  ?>
142
 
143
+
144
+
145
 
146
 
147
+
148
+
149
 
150
 
151
+
152
+
153
 
154
 
155
+
156
+
157
  <div class="wrap" style="margin-top:25px">
158
 
159
+
160
+
161
 
162
 
163
+
164
+
165
  <div style="width: 80%; margin-left: 25px; color: rgb(147, 147, 147); font-weight: bold; font-size: 15px;">
166
 
167
+
168
+
169
  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 />
170
 
171
+
172
+
173
  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 />
174
 
175
+
176
+
177
  </div>
178
 
179
+
180
+
181
 
182
 
183
+
184
+
185
  <div class="wrap" style="width:42%;float:left">
186
 
187
+
188
+
189
  <?php //wp_nonce_field('sociable-config'); ?>
190
 
191
+
192
+
193
 
194
 
195
+
196
+
197
  <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px">
198
 
199
+
200
+
201
 
202
 
203
+
204
+
205
 
206
 
207
+
208
+
209
  <TR>
210
 
211
+
212
+
213
  <TD class="Border-Left" ></TD><TD class="BG-Middle" >Skyscraper Sociable</TD><TD class="Border-Right"></TD>
214
 
215
+
216
+
217
  </TR>
218
 
219
+
220
+
221
  <TR>
222
 
223
+
224
+
225
  <TD colspan="3" >
226
 
227
+
228
+
229
  <table>
230
 
231
+
232
+
233
  <tr>
234
 
235
+
236
+
237
  <td>
238
 
239
+
240
+
241
  <img src="<?php echo SOCIABLE_HTTP_PATH ?>images/skyphoto.png" style="margin-left:-5px;margin-top:20px;" />
242
 
243
+
244
+
245
  </td>
246
 
247
+
248
+
249
  <td valign="top" >
250
 
251
+
252
+
253
  <br/><br/>
254
 
255
+
256
+
257
  <span style="font-size:18px;color:#18305e;font-weight:bold;">Skyscraper Sociable</span>
258
 
259
+
260
+
261
  <p style="font-size:12px;color:#939393;font-weight:bold;" >
262
 
263
+
264
+
265
  Now introducing the ultimate advanced and feature packed plugin for setting up rating system on your WordPress blog.
266
 
267
+
268
+
269
  <br/ ><br/ >
270
 
271
+
272
+
273
  Sociable Skyscraper allows you to set up different rating systems for posts, pages and comments with great degree of customization.
274
 
275
+
276
+
277
  <br/ ><br/ >
278
 
279
+
280
+
281
  List of features is so smart and non-stop growing:
282
 
283
+
284
+
285
  <br/ ><br/ >
286
 
287
+
288
+
289
  You can get more "Sociable" with Sociable Skyscraper and easily getting
290
 
291
+
292
+
293
  Rating and Review of: posts, pages, comments, Facebook, G+, LinkedIN,
294
 
295
+
296
+
297
  Twitter as well as multiple ratings for posts and pages. Visitor's counter,
298
 
299
+
300
+
301
  visitor's from Facebook and Twitter... As a plus you get an easy way to get
302
 
303
+
304
+
305
  TOP or HOME from Sociable Skyscraper.
306
 
307
+
308
+
309
  <br/ ><br/ >
310
 
311
+
312
+
313
  Enjoy it now!!!
314
 
315
+
316
+
317
  <br/ ><br/ >
318
 
319
+
320
+
321
  Be Sociable, Share!!!
322
 
323
+
324
+
325
  </p>
326
 
327
+
328
+
329
 
330
 
331
+
332
+
333
  <a href="?page=skyscraper_options" style="color:#ffffff;text-decoration:none;" ><img src="<?php echo SOCIABLE_HTTP_PATH ?>images/button_newsky.png" ></a>
334
 
335
+
336
+
337
 
338
 
339
+
340
+
341
  </td>
342
 
343
+
344
+
345
  </tr>
346
 
347
+
348
+
349
  </table>
350
 
351
+
352
+
353
  </TD>
354
 
355
+
356
+
357
 
358
 
359
+
360
+
361
 
362
 
363
+
364
+
365
  </TR>
366
 
367
+
368
+
369
  </TABLE>
370
 
371
+
372
+
373
  <BR/>
374
 
375
+
376
+
377
 
378
 
379
+
380
+
381
  </div>
382
 
383
+
384
+
385
  <div class="wrap" style="margin-left:30px;width:48%;float:left">
386
 
387
+
388
+
389
  <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px">
390
 
391
+
392
+
393
  <TR>
394
 
395
+
396
+
397
  <TD class="Border-Left" ></TD><TD class="BG-Middle" >Classic Sociable</TD><TD class="Border-Right"></TD>
398
 
399
+
400
+
401
  </TR>
402
 
403
+
404
+
405
  <TR>
406
 
407
+
408
+
409
  <TD colspan="3" >
410
 
411
+
412
+
413
  <div style="margin-left:5px;">
414
 
415
+
416
+
417
  <br /><br />
418
 
419
+
420
+
421
  <span style="font-size:18px;color:#18305e;font-weight:bold;">Classic Sociable</span>
422
 
423
+
424
+
425
 
426
 
427
+
428
+
429
  <p style="font-size:12px;color:#939393;font-weight:bold;" >
430
 
431
+
432
+
433
  We've improved our visual interface, the default icons are now much
434
 
435
+
436
+
437
  <br/ >
438
 
439
+
440
+
441
  more appealing, and a touch bit larger (you do want your readers to
442
 
443
+
444
+
445
  <br/ >
446
 
447
+
448
+
449
  share your posts, don't you? :) Get it now!
450
 
451
+
452
+
453
  </p>
454
 
455
+
456
+
457
  <img src="<?php echo SOCIABLE_HTTP_PATH ?>images/socciable_old.png" ><br/>
458
 
459
+
460
+
461
  <div style="height: 176px;"></div>
462
 
463
+
464
+
465
  <a href="?page=sociable_options" style="color:#ffffff;text-decoration:none;" ><img src="<?php echo SOCIABLE_HTTP_PATH ?>images/button_sociabb.png" ></a>
466
 
467
+
468
+
469
  </div>
470
 
471
+
472
+
473
  </TD>
474
 
475
+
476
+
477
 
478
 
479
+
480
+
481
  </TR>
482
 
483
+
484
+
485
  </TABLE>
486
 
487
+
488
+
489
  <BR/>
490
 
491
+
492
+
493
 
494
 
495
+
496
+
497
  </div>
498
 
499
+
500
+
501
  </div>
502
+
503
  <?php }
504
 
505
+
506
+
507
 
508
 
509
+
510
+
511
  function create_select_options($value){
512
 
513
+
514
+
515
+
516
+
517
+
518
 
519
  for($i=3; $i<=9; ){
520
 
521
+
522
+
523
 
524
 
525
+
526
+
527
  $sel = "";
528
 
529
+
530
+
531
  if ($value == $i){
532
 
533
+
534
+
535
  $sel = "selected";
536
 
537
+
538
+
539
  }
540
 
541
+
542
+
543
  echo "<option ".$sel." value='".$i."'> latest ".$i."</option>";
544
 
545
+
546
+
547
 
548
 
549
+
550
+
551
  $i = $i+3;
552
 
553
+
554
+
555
  }
556
+
557
  }
558
 
559
+
560
+
561
 
562
+
563
 
564
 
565
+
566
+
567
  function Create_Options_Page_Skycraper(){
568
 
 
569
 
570
  global $skyscraper_options;
571
 
 
 
572
  ?>
573
 
574
+
575
  <div class="wrap" style="width:48%;float:left">
576
 
 
577
 
578
  <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >
579
 
580
+
581
  <iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblogplay.com%2F&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=true&amp;action=recommend&amp;colorscheme=light&amp;font&amp;height=80&amp;appId=133479460071366" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:40px;" allowTransparency="true"></iframe>
582
 
583
+
584
+
585
+ <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>
586
+
587
+
588
+
589
 
590
  <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
591
 
592
+
593
+
594
  <br />
595
 
596
  </div>
597
 
 
598
 
599
+ <form method="post" action="options.php" id="form1" autocomplete="off">
600
 
601
  <?php wp_nonce_field('sociable-config'); ?>
602
 
603
+
604
+
605
  <INPUT type="hidden" class="version-INPUT" id="version" name="skyscraper_options[version]" value="<?php echo $skyscraper_options["version"];?>" />
606
 
607
+
608
+
609
  <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px">
610
 
611
+
612
+
613
  <TR>
614
 
615
+
616
+
617
  <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Style Options","sociable");?></TD><TD class="Border-Right"></TD>
618
 
619
+
620
+
621
  </TR>
622
 
623
+
624
+
625
  </TABLE>
626
 
627
+
628
+
629
  <BR/>
630
 
631
+
632
+
633
  <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >
634
 
635
+
636
+
637
  <?php _e("Text Size","sociable");?>:
638
 
639
+
640
+
641
  <select id="text_size" name="skyscraper_options[text_size]" style="margin-left:73px">
642
 
643
+
644
+
645
  <?php
646
 
 
647
 
648
+
649
+ for($px=10; $px <= 20; $px++) {
650
 
651
  $sel = "";
652
 
653
  if($px== $skyscraper_options["text_size"])$sel = "selected";
654
 
655
+
656
  ?>
657
 
658
  <option <?php echo $sel?> value="<?php echo $px?>"><?php echo $px?>px</option>
659
 
 
660
 
661
+ <?php
662
 
663
  }?>
664
 
666
 
667
  </DIV>
668
 
 
669
 
670
  <DIV style="margin:0 0 0 24px" class="Post-subTXT" id="Post-subTXT" ><?php _e("Widget Width","sociable");?>:
671
 
672
+
673
+
674
  <select id="text_size" id="widget_width" name="skyscraper_options[widget_width]" style="margin-left:50px">
675
 
 
676
 
677
+ <?php
678
 
679
+ for($wi=70; $wi <= 90; ) {
680
 
681
  $sel = "";
682
 
 
683
 
 
684
 
685
+ if($wi== $skyscraper_options["widget_width"])$sel = "selected";
686
+ ?>
687
  <option <?php echo $sel?> value="<?php echo $wi?>"><?php echo $wi?>px</option>
 
688
  <?php
689
 
690
+
691
+
692
  $wi +=5;
693
 
694
+
695
+
696
  }?>
697
 
 
698
 
 
699
 
700
+ </select>
701
 
702
+ </DIV>
703
 
704
  <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" ><?php _e("Background Color","sociable");?>:
705
 
 
706
 
707
  <input value="<?php echo $skyscraper_options['background_color']?>" style="margin-left:22px" id="background_color" name="skyscraper_options[background_color]" type="text" /> ( #fefefe default color)
708
 
 
 
709
  </DIV>
710
 
 
711
 
712
  <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" ><?php _e("Labels Color","sociable");?>:
713
 
 
714
 
715
  <input value="<?php echo $skyscraper_options['labels_color']?>" style="margin-left:49px" id="background_color" name="skyscraper_options[labels_color]" type="text" /> ( #f7f7f7 default color)
716
 
 
717
 
718
  </DIV>
719
 
 
 
720
  <BR/>
721
 
722
+
723
  <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Tagline-Title">
724
 
725
  <TR>
742
 
743
  <?php _e("Your Twitter username","sociable");?>:<?php
744
 
 
 
745
  if (!empty($skyscraper_options["twitter_username"])){
746
 
747
  $twitter_username = $skyscraper_options["twitter_username"];
753
  $twitter_username = "@";
754
 
755
  }
 
756
  ?>
757
 
758
  <input type="text" name="skyscraper_options[twitter_username]" value="<?php echo $twitter_username?>" />
759
 
760
+
761
+
762
  <select name="skyscraper_options[num_tweets]" id="num_tweets">
763
 
764
+
765
+
766
  <?php self:: create_select_options($skyscraper_options["num_tweets"]) ?>
767
 
768
+
769
+
770
  </select>
771
 
772
+
773
+
774
  </DIV>
775
 
776
+
777
+
778
  <BR/>
779
 
780
+
781
+
782
  <DIV style="margin:0 0 0 25px" class="Post-subTXT">
783
 
784
+
785
+
786
  <?php _e("Your RSS feed","sociable");?>:
787
 
788
+
789
+
790
  <?php
791
 
792
+
793
+
794
 
795
 
796
+
797
+
798
  if (!empty($skyscraper_options["rss_feed"])){
799
 
800
+
801
+
802
  $rss_feed = $skyscraper_options["rss_feed"];
803
 
804
+
805
+
806
  }
807
 
808
+
809
+
810
  else{
811
 
812
+
813
+
814
  $rss_feed = "http://";
815
 
816
+
817
+
818
  }
819
 
820
+
821
+
822
  ?>
823
 
824
+
825
+
826
  <input type="text" name="skyscraper_options[rss_feed]" style="margin-left: 46px;" value="<?php echo $rss_feed?>" />
827
 
828
+
829
+
830
  <select name="skyscraper_options[num_rss]" id="num_rss">
831
 
832
+
833
+
834
  <?php self:: create_select_options($skyscraper_options["num_rss"]) ?>
835
 
836
+
837
+
838
  </select>
839
 
840
+
841
+
842
  </DIV>
843
 
844
+
845
+
846
  <BR/>
847
 
848
+
849
+
850
  <DIV style="margin:0 0 0 25px" class="Post-subTXT">
851
 
852
+
853
+
854
  <?php
855
 
856
+
857
+
858
  $checked = "";
859
 
860
+
861
+
862
  if (isset($skyscraper_options["counters"]["check"])){
863
 
864
+
865
+
866
  $checked = "checked";
867
 
868
+
869
+
870
  }
871
 
872
+
873
+
874
 
875
 
876
+
877
+
878
  $folded = "";
879
 
880
+
881
+
882
  $unfolded= "";
883
 
884
+
885
+
886
  if (isset($skyscraper_options["counters"]["folded"])){
887
 
888
+
889
+
890
  if($skyscraper_options["counters"]["folded"] == "1"){
891
 
892
+
893
+
894
  $folded = "checked";
895
 
896
+
897
+
898
  $unfolded= "";
899
 
900
+
901
+
902
  }else{
903
 
904
+
905
+
906
  $unfolded = "checked";
907
 
908
+
909
+
910
  $folded= "";
911
 
912
+
913
+
914
  }
915
 
916
+
917
+
918
  }
919
 
920
+
921
+
922
 
923
 
924
+
925
+
926
 
927
 
928
+
929
+
930
  ?>
931
 
932
+
933
+
934
  <input type="checkbox" <?php echo $checked ?> name="skyscraper_options[counters][check]" id="" />
935
 
936
+
937
+
938
  Counters
939
 
940
+
941
+
942
  <input name="skyscraper_options[counters][folded]" <?php echo $unfolded?> value="0" type="radio">Folded
943
 
944
+
945
+
946
  <input name="skyscraper_options[counters][folded]" <?php echo $folded?> value="1" type="radio">Unfolded
947
 
948
+
949
+
950
  </DIV>
951
 
952
+
953
+
954
  <BR/>
955
 
956
+
957
+
958
  <DIV style="margin:0 0 0 25px" class="Post-subTXT">
959
 
960
+
961
+
962
  <?php
963
 
964
+
965
+
966
  $checked = "";
967
 
968
+
969
+
970
  if (isset($skyscraper_options["share"]["check"])){
971
 
972
+
973
+
974
  $checked = "checked";
975
 
976
+
977
+
978
  }
979
 
980
+
981
+
982
 
983
 
984
+
985
+
986
  if (isset($skyscraper_options["share"]["folded"])){
987
 
988
+
989
+
990
  if($skyscraper_options["share"]["folded"] == "1"){
991
 
992
+
993
+
994
  $folded = "checked";
995
 
996
+
997
+
998
  $unfolded= "";
999
 
1000
+
1001
+
1002
  }else{
1003
 
1004
+
1005
+
1006
  $unfolded = "checked";
1007
 
1008
+
1009
+
1010
  $folded= "";
1011
 
1012
+
1013
+
1014
  }
1015
 
1016
+
1017
+
1018
  }
1019
 
1020
+
1021
+
1022
 
1023
 
1024
+
1025
+
1026
 
1027
 
1028
+
1029
+
1030
  ?>
1031
 
1032
+
1033
+
1034
 
1035
 
1036
+
1037
+
1038
  <input type="checkbox" <?php echo $checked ?> name="skyscraper_options[share][check]" /> Share
1039
 
1040
+
1041
+
1042
  <input style="margin-left:19px" <?php echo $unfolded?> value="0" name="skyscraper_options[share][folded]" type="radio">Folded
1043
 
 
1044
 
 
1045
 
1046
+ <input name="skyscraper_options[share][folded]" <?php echo $folded?> value="1" type="radio">Unfolded
1047
+
1048
 
 
1049
 
1050
  </DIV>
1051
 
1052
+
1053
+
1054
+ <DIV class="Content-Box" id="Preview-Content">
1055
+
1056
+
1057
+
1058
+
1059
+
1060
+
1061
+
1062
+ </DIV>
1063
+
1064
+
1065
+
1066
  <div style="clear:both"></div>
1067
 
1068
+
1069
+
1070
 
1071
 
1072
+
1073
+
1074
  <BR/>
1075
 
1076
+
1077
+
1078
  <DIV class="Content-Box" id="Preview-Content">
1079
 
1080
+
1081
+
1082
  <ul class="items_li">
1083
 
1084
+
1085
+
1086
  <li>
1087
 
1088
+
1089
+
1090
  <?php
1091
 
1092
+
1093
+
1094
  $checked = "";
1095
 
1096
+
1097
+
1098
  if (isset($skyscraper_options['follow_us_check']) && $skyscraper_options['follow_us_check'] == "on"){
1099
 
1100
+
1101
+
1102
  $checked = "checked";
1103
 
1104
+
1105
+
1106
  }
1107
 
1108
+
1109
+
1110
  ?>
1111
 
1112
+
1113
+
1114
  Follow Us
1115
 
1116
+
1117
+
1118
  <ul class="sub_item_li">
1119
 
1120
+
1121
+
1122
  <li>
1123
 
1124
+
1125
+
1126
  <?php
1127
 
1128
+
1129
+
1130
  $checked = "";
1131
 
1132
+
1133
+
1134
  if (isset($skyscraper_options['follow_us']['twitter']["active"]) && $skyscraper_options['follow_us']['twitter']["active"] == "on"){
1135
 
1136
+
1137
+
1138
  $checked = "checked";
1139
 
1140
+
1141
+
1142
  }
1143
 
1144
+
1145
+
1146
  ?>
1147
 
1148
+
1149
+
1150
  <input <?php echo $checked ?> name="skyscraper_options[follow_us][twitter][active]" type="checkbox" style="padding-bottom:5px" />
1151
 
1152
+
1153
+
1154
  <?php
1155
 
1156
+
1157
+
1158
  $account = "http://twitter.com/";
1159
 
1160
+
1161
+
1162
  if(!empty($skyscraper_options["follow_us"]["twitter"]["account"])){
1163
 
1164
+
1165
+
1166
  $account = $skyscraper_options["follow_us"]["twitter"]["account"];
1167
 
1168
+
1169
+
1170
  }
1171
 
1172
+
1173
+
1174
  ?>
1175
 
1176
+
1177
+
1178
  <input type="hidden" value="t.png" name="skyscraper_options[follow_us][twitter][logo]" />
1179
 
1180
+
1181
+
1182
  <img style="padding-bottom:5px" src="<?php echo SOCIABLE_HTTP_PATH ?>images/toolbar/t.png"/>
1183
 
1184
+
1185
+
1186
  <input size="40" name="skyscraper_options[follow_us][twitter][account]" value="<?php echo $account?>" type="text" />
1187
 
1188
+
1189
+
1190
  </li>
1191
 
1192
+
1193
+
1194
  <li>
1195
 
1196
+
1197
+
1198
  <?php
1199
 
1200
+
1201
+
1202
  $checked = "";
1203
 
1204
+
1205
+
1206
  if ( isset($skyscraper_options['follow_us']['feed']["active"]) && $skyscraper_options['follow_us']['feed']["active"] == "on"){
1207
 
1208
+
1209
+
1210
  $checked = "checked";
1211
 
1212
+
1213
+
1214
  }
1215
 
1216
+
1217
+
1218
  ?>
1219
 
1220
+
1221
+
1222
  <input <?php echo $checked ?> name="skyscraper_options[follow_us][feed][active]" type="checkbox" style="padding-bottom:5px" />
1223
 
1224
+
1225
+
1226
  <input type="hidden" value="rss.png" name="skyscraper_options[follow_us][feed][logo]" />
1227
 
1228
+
1229
+
1230
  <?php
1231
 
1232
+
1233
+
1234
  $rss = "http://";
1235
 
1236
+
1237
+
1238
  if(!empty($skyscraper_options["follow_us"]["feed"]["account"])){
1239
 
1240
+
1241
+
1242
 
1243
 
1244
+
1245
+
1246
  $rss = $skyscraper_options["follow_us"]["feed"]["account"];
1247
 
1248
+
1249
+
1250
  }
1251
 
1252
+
1253
+
1254
  ?>
1255
 
1256
+
1257
+
1258
  <img style="padding-bottom:5px" src="<?php echo SOCIABLE_HTTP_PATH ?>images/toolbar/rss.png"/>
1259
 
1260
+
1261
+
1262
  <input size="40" value="<?php echo $rss?>" name="skyscraper_options[follow_us][feed][account]" type="text" />
1263
 
1264
+
1265
+
1266
  </li>
1267
 
1268
+
1269
+
1270
  <li>
1271
 
1272
+
1273
+
1274
  <?php
1275
 
1276
+
1277
+
1278
  $checked = "";
1279
 
1280
+
1281
+
1282
  if ( isset($skyscraper_options['follow_us']['fb']["active"]) && $skyscraper_options['follow_us']['fb']["active"] == "on"){
1283
 
1284
+
1285
+
1286
  $checked = "checked";
1287
 
1288
+
1289
+
1290
  }
1291
 
1292
+
1293
+
1294
  ?>
1295
 
1296
+
1297
+
1298
  <input <?php echo $checked ?> name="skyscraper_options[follow_us][fb][active]" type="checkbox" style="padding-bottom:5px" />
1299
 
1300
+
1301
+
1302
  <input type="hidden" value="f.png" name="skyscraper_options[follow_us][fb][logo]" />
1303
 
1304
+
1305
+
1306
 
1307
 
1308
+
1309
+
1310
  <?php
1311
 
1312
+
1313
+
1314
  $fb = "http://facebook.com/";
1315
 
1316
+
1317
+
1318
  if(!empty($skyscraper_options["follow_us"]["fb"]["account"])){
1319
 
1320
+
1321
+
1322
 
1323
 
1324
+
1325
+
1326
  $fb = $skyscraper_options["follow_us"]["fb"]["account"];
1327
 
1328
+
1329
+
1330
  }
1331
 
1332
+
1333
+
1334
  ?>
1335
 
1336
+
1337
+
1338
  <img style="padding-bottom:5px" src="<?php echo SOCIABLE_HTTP_PATH ?>images/toolbar/f.png"/>
1339
 
1340
+
1341
+
1342
  <input size="40" value="<?php echo $fb?>" name="skyscraper_options[follow_us][fb][account]" type="text" />
1343
 
1344
+
1345
+
1346
  </li>
1347
 
1348
+
1349
+
1350
 
1351
 
1352
+
1353
+
1354
  <li>
1355
 
1356
+
1357
+
1358
  <?php
1359
 
1360
+
1361
+
1362
  $checked = "";
1363
 
1364
+
1365
+
1366
  if ( isset($skyscraper_options['follow_us']['li']["active"]) && $skyscraper_options['follow_us']['li']["active"] == "on"){
1367
 
1368
+
1369
+
1370
  $checked = "checked";
1371
 
1372
+
1373
+
1374
  }
1375
 
1376
+
1377
+
1378
  ?>
1379
 
1380
+
1381
+
1382
  <input <?php echo $checked ?> name="skyscraper_options[follow_us][li][active]" type="checkbox" style="padding-bottom:5px" />
1383
 
1384
+
1385
+
1386
  <input type="hidden" value="i.png" name="skyscraper_options[follow_us][li][logo]" />
1387
 
1388
+
1389
+
1390
  <input type="hidden" value="linkedin.com/in/" name="skyscraper_options[follow_us][li][url]" />
1391
 
1392
+
1393
+
1394
  <?php
1395
 
1396
+
1397
+
1398
  $li = "http://linkedin.com/";
1399
 
1400
+
1401
+
1402
  if(!empty($skyscraper_options["follow_us"]["li"]["account"])){
1403
 
1404
+
1405
+
1406
 
1407
 
1408
+
1409
+
1410
  $li = $skyscraper_options["follow_us"]["li"]["account"];
1411
 
1412
+
1413
+
1414
  }
1415
 
1416
+
1417
+
1418
  ?>
1419
 
1420
+
1421
+
1422
  <img style="padding-bottom:5px" src="<?php echo SOCIABLE_HTTP_PATH ?>images/toolbar/i.png"/>
1423
 
1424
+
1425
+
1426
  <input size="40" value="<?php echo $li?>" name="skyscraper_options[follow_us][li][account]" type="text" />
1427
 
1428
+
1429
+
1430
  </li>
1431
 
1432
+
1433
+
1434
  </ul>
1435
 
1436
+
1437
+
1438
  </li>
1439
 
1440
+
1441
+
1442
  </ul>
1443
 
1444
+
1445
+
1446
  </DIV>
1447
 
1448
+
1449
+
1450
  <br />
1451
 
1452
+
1453
+ <div class="Content-Box" id="Active-Content" style="display: block;">
1454
+
1455
+ <br>
1456
+
1457
+ <div align="center" style="width:100%;">
1458
+
1459
+ <table align="center" cellspacing="0" cellpadding="10" border="0" class="GeneralOptions-List">
1460
+
1461
+ <tbody><tr valign="top">
1462
+ <td align="right" class="Title">Active Sociable Banner</td>
1463
+ <td align="left" style="width:5px;">
1464
+ <?php
1465
+
1466
+ $sel = "";
1467
+
1468
+ if (isset($skyscraper_options["sociable_banner"])){
1469
+
1470
+ if (!empty($skyscraper_options["sociable_banner"])){
1471
+ $sel = "checked";
1472
+ }
1473
+
1474
+ }
1475
+
1476
+ ?>
1477
+
1478
+ <input type="checkbox" name="skyscraper_options[sociable_banner]" id="sociable_banner" <?php echo $sel?>></td>
1479
+
1480
+ <td align="left" class="Content">
1481
+
1482
+ <span class="TXT">Active Sociable "Reminder to Share" Banner / Check if you want to remind your readers Share your content.</span>
1483
+
1484
+ <br>
1485
+
1486
+ </td>
1487
+
1488
+ </tr>
1489
+
1490
+ <tr valign="top">
1491
+
1492
+ <td align="right" class="Title">Banner's label (35 char Max.)</td>
1493
+
1494
+ <td align="left" style="width:5px;">
1495
+ <?php
1496
+ $sel = 'Please spread the word: Be Sociable, Share!';
1497
+ if (isset($skyscraper_options["sociable_banner_text"])){
1498
+ if (!empty($skyscraper_options["sociable_banner_text"])){
1499
+ $sel = $skyscraper_options["sociable_banner_text"];
1500
+ }
1501
+ }
1502
+ ?>
1503
+ </td>
1504
+ <td align="left" class="Content">
1505
+
1506
+ <span class="TXT"> <input style="width:245px !important" type="text" name="skyscraper_options[sociable_banner_text]" value="<?php echo $sel?>"></span>
1507
+
1508
+ <br>
1509
+
1510
+ </td>
1511
+
1512
+ </tr>
1513
+
1514
+ <tr valign="top">
1515
+
1516
+ <td align="right" class="Title">Banners Timer (sec.)</td>
1517
+
1518
+ <td align="left" style="width:5px;">
1519
+
1520
+ </td>
1521
+ <td align="left" class="Content">
1522
+ <span class="TXT">
1523
+
1524
+ <select name="skyscraper_options[sociable_banner_timer]" id="banner_timer" >
1525
+ <?php
1526
+ for($timer=10; $timer <= 120; $timer++){
1527
+
1528
+ $sel = "";
1529
+
1530
+ if (!empty($skyscraper_options["sociable_banner_timer"])){
1531
+
1532
+ if ($skyscraper_options["sociable_banner_timer"] == $timer){
1533
+
1534
+ $sel = "selected";
1535
+ }
1536
+ }
1537
+ ?>
1538
+ <option value="<?php echo $timer?>" <?php echo $sel ?> ><?php echo $timer?></option>
1539
+ <?php
1540
+
1541
+ $timer = $timer + 4;
1542
+ } ?>
1543
+ </select>
1544
+
1545
+ </span>
1546
+
1547
+ <br>
1548
+
1549
+ </td>
1550
+
1551
+ </tr>
1552
+
1553
+ <tr valign="top">
1554
+
1555
+ <td align="right" class="Title">Font Color <a title="default color #6A6A6A" class="default_values">(#6A6A6A)</a></td>
1556
+
1557
+ <td align="left" style="width:5px;">
1558
+
1559
+ </td>
1560
+ <td align="left" class="Content">
1561
+
1562
+ <span class="TXT">
1563
+
1564
+ <?php
1565
+ $sel = '#6A6A6A';
1566
+
1567
+ if (isset($skyscraper_options["sociable_banner_colorFont"])){
1568
+
1569
+ if (!empty($skyscraper_options["sociable_banner_colorFont"])){
1570
+
1571
+ $sel = $skyscraper_options["sociable_banner_colorFont"];
1572
+ }
1573
+ }
1574
+ ?>
1575
+
1576
+ <input type="text" value="<?php echo $sel?>" name="skyscraper_options[sociable_banner_colorFont]" style="width:81px !important">
1577
+ </span>
1578
+
1579
+ <br>
1580
+
1581
+ </td>
1582
+
1583
+ </tr>
1584
+ <!-- Font Size -->
1585
+ <tr valign="top">
1586
+
1587
+ <td align="right" class="Title">Font Size <a title="default size 9px" class="default_values">(9px)</a></td>
1588
+
1589
+ <td align="left" style="width:5px;">
1590
+
1591
+ </td>
1592
+ <td align="left" class="Content">
1593
+ <span class="TXT">
1594
+
1595
+ <select name="skyscraper_options[sociable_banner_fontSize]" id="banner_fontSize" >
1596
+ <?php
1597
+ for($fontSize=8; $fontSize <= 16; $fontSize++){
1598
+
1599
+ $sel = "";
1600
+
1601
+ if (!empty($skyscraper_options["sociable_banner_fontSize"])){
1602
+
1603
+ if ($skyscraper_options["sociable_banner_fontSize"] == $fontSize){
1604
+
1605
+ $sel = "selected";
1606
+ }
1607
+ }
1608
+ ?>
1609
+ <option value="<?php echo $fontSize?>px" <?php echo $sel ?> ><?php echo $fontSize?>px</option>
1610
+ <?php
1611
+ } ?>
1612
+ </select>
1613
+
1614
+
1615
+ </span>
1616
+ <br>
1617
+ </td>
1618
+ </tr>
1619
+
1620
+ <!-- color label -->
1621
+ <tr valign="top">
1622
+
1623
+ <td align="right" class="Title">Label Color <a title="default color #F7F7F7" class="default_values">(#F7F7F7)</a></td>
1624
+
1625
+ <td align="left" style="width:5px;">
1626
+
1627
+ </td>
1628
+ <td align="left" class="Content">
1629
+
1630
+ <span class="TXT">
1631
+
1632
+ <?php
1633
+ $sel = '#F7F7F7';
1634
+
1635
+ if (isset($skyscraper_options["sociable_banner_colorLabel"])){
1636
+
1637
+ if (!empty($skyscraper_options["sociable_banner_colorLabel"])){
1638
+
1639
+ $sel = $skyscraper_options["sociable_banner_colorLabel"];
1640
+ }
1641
+ }
1642
+ ?>
1643
+
1644
+ <input type="text" value="<?php echo $sel?>" name="skyscraper_options[sociable_banner_colorLabel]" style="width:81px !important">
1645
+ </span>
1646
+
1647
+ <br>
1648
+
1649
+ </td>
1650
+
1651
+ </tr>
1652
+ <!-- color font -->
1653
+ <tr valign="top">
1654
+
1655
+ <td align="right" class="Title">Background Color <a title="default color #F7F7F7" class="default_values">(#F7F7F7)</a></td>
1656
+
1657
+ <td align="left" style="width:5px;">
1658
+
1659
+ </td>
1660
+ <td align="left" class="Content">
1661
+ <span class="TXT">
1662
+ <?php
1663
+ $sel = '#F7F7F7';
1664
+
1665
+ if (isset($skyscraper_options["sociable_banner_colorBack"])){
1666
+
1667
+ if (!empty($skyscraper_options["sociable_banner_colorBack"])){
1668
+
1669
+ $sel = $skyscraper_options["sociable_banner_colorBack"];
1670
+ }
1671
+ }
1672
+ ?>
1673
+ <input type="text" value="<?php echo $sel?>" name="skyscraper_options[sociable_banner_colorBack]" style="width:81px !important">
1674
+
1675
+ </span>
1676
+
1677
+ <br>
1678
+
1679
+ </td>
1680
+
1681
+ </tr>
1682
+
1683
+ </tbody></table>
1684
+
1685
+
1686
+ <br><br>
1687
+
1688
+ </div>
1689
+
1690
+ </div>
1691
+
1692
+
1693
+
1694
  <!-- general options -->
1695
 
1696
+
1697
+
1698
  <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('GeneralOptions');">
1699
 
1700
+
1701
+
1702
  <TR>
1703
 
1704
+
1705
+
1706
  <TD class="Border-Left" ></TD><TD class="BG-Middle" id="GeneralOptions-Title" ><span id="GeneralOptions-Tab"> + </span> <?php _e("General Options","sociable");?></TD><TD class="Border-Right"></TD>
1707
 
1708
+
1709
+
1710
  </TR>
1711
 
1712
+
1713
+
1714
  </TABLE>
1715
 
1716
+
1717
+
1718
  <BR/>
1719
 
1720
+
1721
+
1722
 
1723
 
1724
+
1725
+
1726
  <DIV class="Content-Box" id="GeneralOptions-Content" style="display:none;" >
1727
 
1728
+
1729
+
1730
 
1731
 
1732
+
1733
+
1734
  <BR/>
1735
 
1736
+
1737
+
1738
  <DIV align="center" style="width:100%;">
1739
 
1740
+
1741
+
1742
  <TABLE align="center" class="GeneralOptions-List" cellspacing="0" border=0 cellpadding ="10" >
1743
 
1744
+
1745
+
1746
 
1747
 
1748
+
1749
+
1750
  <TR valign="top" >
1751
 
1752
+
1753
+
1754
  <TD align="right" class="Title" ><?php _e("Widget Position","sociable")?></TD>
1755
 
1756
+
1757
+
1758
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["widget_position"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[widget_position]" id="widget_position" /></TD>
1759
 
1760
+
1761
+
1762
  <TD align="left" class="Content">
1763
 
1764
+
1765
+
1766
  <SPAN class="TXT"><?php _e("Check if you want Sociable Fixed on the screen","sociable");?> </SPAN>
1767
 
1768
+
1769
+
1770
  <BR/>
1771
 
1772
+
1773
+
1774
 
1775
 
1776
+
1777
+
1778
  </TD>
1779
 
1780
+
1781
+
1782
  </TR>
1783
 
1784
+
1785
+
1786
  </TABLE>
1787
 
1788
+
1789
+
1790
  <BR/><BR/>
1791
 
1792
+
1793
+
1794
  </DIV>
1795
 
1796
+
1797
+
1798
  </DIV>
1799
 
1800
+
1801
+
1802
  <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Locations');" >
1803
 
1804
+
1805
+
1806
  <TR>
1807
 
1808
+
1809
+
1810
  <TD class="Border-Left" ></TD><TD class="BG-Middle" id="Locations-Title" ><span id="Locations-Tab">+ </span><?php _e("Locations","sociable");?></TD><TD class="Border-Right"></TD>
1811
 
1812
+
1813
+
1814
  </TR>
1815
 
1816
+
1817
+
1818
  </TABLE>
1819
 
1820
+
1821
+
1822
  <BR/>
1823
 
1824
+
1825
+
1826
 
1827
 
1828
+
1829
+
1830
  <DIV class="Content-Box" id="Locations-Content" style="display:none;" >
1831
 
1832
+
1833
+
1834
  <DIV class="Locations-TXT" id="Locations-TXT" ><?php _e("Please select the locations that you wish to allow the Sociable plugin to insert itself.","sociable");?></DIV>
1835
 
1836
+
1837
+
1838
 
1839
 
1840
+
1841
+
1842
  <BR/>
1843
 
1844
+
1845
+
1846
  <DIV align="center" style="width:100%;">
1847
 
1848
+
1849
+
1850
  <TABLE align="center" class="Locations-List" cellspacing="0" border=0 cellpadding="10">
1851
 
1852
+
1853
+
1854
  <TR valign="top" >
1855
 
1856
+
1857
+
1858
  <TD align="right" class="Title" ><?php _e("Home page","sociable");?></TD>
1859
 
1860
+
1861
+
1862
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_front_page"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_front_page]" id="HomePage" /></TD>
1863
 
1864
+
1865
+
1866
  <TD align="left" class="Content">
1867
 
1868
+
1869
+
1870
  <SPAN class="TXT"><?php _e("The front page of the blog (if set to a static page), or the main blog page (if set to your latest posts).","sociable");?></SPAN>
1871
 
1872
+
1873
+
1874
 
1875
 
1876
+
1877
+
1878
  </TD>
1879
 
1880
+
1881
+
1882
  </TR>
1883
 
1884
+
1885
+
1886
 
1887
 
1888
+
1889
+
1890
  <TR valign="top" >
1891
 
1892
+
1893
+
1894
  <TD align="right" class="Title" ><?php _e("Blog page","sociable");?></TD>
1895
 
1896
+
1897
+
1898
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_home"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_home]" id="BlogPage" /></TD>
1899
 
1900
+
1901
+
1902
  <TD align="left" class="Content">
1903
 
1904
+
1905
+
1906
  <SPAN class="TXT"><?php _e("The home page of the blog if is set to your latest posts, or the posts page if the home page is set to a static page","sociable");?></SPAN>
1907
 
1908
+
1909
+
1910
 
1911
 
1912
+
1913
+
1914
  </TD>
1915
 
1916
+
1917
+
1918
  </TR>
1919
 
1920
+
1921
+
1922
 
1923
 
1924
+
1925
+
1926
  <TR valign="top" >
1927
 
1928
+
1929
+
1930
  <TD align="right" class="Title" ><?php _e("Posts","sociable");?></TD>
1931
 
1932
+
1933
+
1934
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_single"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_single]" id="Posts" /></TD>
1935
 
1936
+
1937
+
1938
  <TD align="left" class="Content">
1939
 
1940
+
1941
+
1942
  <SPAN class="TXT"><?php _e("Single post pages","sociable");?></SPAN>
1943
 
1944
+
1945
+
1946
 
1947
 
1948
+
1949
+
1950
  </TD>
1951
 
1952
+
1953
+
1954
  </TR>
1955
 
1956
+
1957
+
1958
 
1959
 
1960
+
1961
+
1962
  <TR valign="top" >
1963
 
1964
+
1965
+
1966
  <TD align="right" class="Title" ><?php _e("Pages","sociable");?></TD>
1967
 
1968
+
1969
+
1970
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_page"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_page]" id="Pages" /></TD>
1971
 
1972
+
1973
+
1974
  <TD align="left" class="Content">
1975
 
1976
+
1977
+
1978
  <SPAN class="TXT"><?php _e("Individual Wordpress pages","sociable");?></SPAN>
1979
 
1980
+
1981
+
1982
 
1983
 
1984
+
1985
+
1986
  </TD>
1987
 
1988
+
1989
+
1990
  </TR>
1991
 
1992
+
1993
+
1994
 
1995
 
1996
+
1997
+
1998
  <TR valign="top" >
1999
 
2000
+
2001
+
2002
  <TD align="right" class="Title" ><?php _e("Category archives","sociable");?></TD>
2003
 
2004
+
2005
+
2006
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_category"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_category]" id="CategoryArchives" /></TD>
2007
 
2008
+
2009
+
2010
  <TD align="left" class="Content">
2011
 
2012
+
2013
+
2014
  <SPAN class="TXT"><?php _e("Category archive pages","sociable");?></SPAN>
2015
 
2016
+
2017
+
2018
 
2019
 
2020
+
2021
+
2022
  </TD>
2023
 
2024
+
2025
+
2026
  </TR>
2027
 
2028
+
2029
+
2030
 
2031
 
2032
+
2033
+
2034
  <TR valign="top" >
2035
+
2036
  <TD align="right" class="Title" ><?php _e("Date archives","sociable");?></TD>
2037
 
2038
+
2039
+
2040
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_date"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_date]" id="DateArchives" /></TD>
2041
 
2042
+
2043
+
2044
  <TD align="left" class="Content">
2045
 
2046
+
2047
+
2048
  <SPAN class="TXT"><?php _e("Date archive pages","sociable");?> </SPAN>
2049
 
2050
+
2051
+
2052
 
2053
 
2054
+
2055
+
2056
  </TD>
2057
 
2058
+
2059
+
2060
  </TR>
2061
 
2062
+
2063
+
2064
 
2065
 
2066
+
2067
+
2068
  <TR valign="top" >
2069
 
2070
+
2071
+
2072
  <TD align="right" class="Title" ><?php _e("Tag archives","sociable");?></TD>
2073
 
2074
+
2075
+
2076
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_tag"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_tag]" id="TagArchives" /></TD>
2077
 
2078
+
2079
+
2080
  <TD align="left" class="Content">
2081
 
2082
+
2083
+
2084
  <SPAN class="TXT"><?php _e("Tag archive pages","sociable");?> </SPAN>
2085
 
2086
+
2087
+
2088
 
2089
 
2090
+
2091
+
2092
  </TD>
2093
 
2094
+
2095
+
2096
  </TR>
2097
 
2098
+
2099
+
2100
 
2101
 
2102
+
2103
+
2104
  <TR valign="top" >
2105
 
2106
+
2107
+
2108
  <TD align="right" class="Title" ><?php _e("Author archives","sociable");?></TD>
2109
 
2110
+
2111
+
2112
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_author"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_author]" id="AuthorArchives" /></TD>
2113
 
2114
+
2115
+
2116
  <TD align="left" class="Content">
2117
 
2118
+
2119
+
2120
  <SPAN class="TXT"><?php _e("Author archive pages","sociable");?></SPAN>
2121
 
2122
+
2123
+
2124
 
2125
 
2126
+
2127
+
2128
  </TD>
2129
 
2130
+
2131
+
2132
  </TR>
2133
 
2134
+
2135
+
2136
 
2137
 
2138
+
2139
+
2140
  <TR valign="top" >
2141
 
2142
+
2143
+
2144
  <TD align="right" class="Title" ><?php _e("Search results","sociable");?></TD>
2145
 
2146
+
2147
+
2148
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_search"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_search]" id="SearchResults" /></TD>
2149
 
2150
+
2151
+
2152
  <TD align="left" class="Content">
2153
 
2154
+
2155
+
2156
  <SPAN class="TXT"><?php _e("Search results pages","sociable");?></SPAN>
2157
 
2158
+
2159
+
2160
 
2161
 
2162
+
2163
+
2164
  </TD>
2165
 
2166
+
2167
+
2168
  </TR>
2169
 
2170
+
2171
+
2172
 
2173
 
2174
+
2175
+
2176
  <TR valign="top" >
2177
 
2178
+
2179
+
2180
  <TD align="right" class="Title" ><?php _e("RSS feeds","sociable");?></TD>
2181
 
2182
+
2183
+
2184
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_rss"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_rss]" id="RssFeeds" /></TD>
2185
 
2186
+
2187
+
2188
  <TD align="left" class="Content">
2189
 
2190
+
2191
+
2192
  <SPAN class="TXT"><?php _e("RSS feeds","sociable");?></SPAN>
2193
 
2194
+
2195
+
2196
 
2197
 
2198
+
2199
+
2200
  </TD>
2201
 
2202
+
2203
+
2204
  </TR>
2205
 
2206
+
2207
+
2208
 
2209
 
2210
+
2211
+
2212
  </TABLE>
2213
 
2214
+
2215
+
2216
  <BR/><BR/>
2217
 
2218
+
2219
+
2220
  </DIV>
2221
 
2222
+
2223
+
2224
  </DIV>
2225
 
2226
+
2227
+
2228
 
2229
 
2230
+
2231
+
2232
  <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Active');" >
2233
 
2234
+
2235
+
2236
  <TR>
2237
 
2238
+
2239
+
2240
  <TD class="Border-Left" ></TD><TD class="BG-Middle" id="Active-Title" ><span id="Active-Tab">+ </span><?php _e("Active Skyscraper","sociable");?></TD><TD class="Border-Right"></TD>
2241
 
2242
+
2243
+
2244
  </TR>
2245
 
2246
+
2247
+
2248
  </TABLE>
2249
 
2250
+
2251
+
2252
 
2253
 
2254
+
2255
+
2256
  <div style="display: block;" id="Active-Content" class="Content-Box">
2257
 
2258
+
2259
+
2260
 
2261
 
2262
+
2263
+
2264
  <br>
2265
 
2266
+
2267
+
2268
+ <div align="center" style="width:100%;">
2269
+
2270
+
2271
 
2272
  <table align="center" cellspacing="0" cellpadding="10" border="0" class="GeneralOptions-List">
2273
 
2274
+
2275
+
2276
 
2277
 
2278
+
2279
+
2280
  <tbody><tr valign="top">
2281
 
2282
+
2283
+
2284
  <td align="right" class="Title">Active Skyscraper</td>
2285
 
2286
+
2287
+
2288
  <td align="left" style="width:5px;">
2289
 
2290
+
2291
+
2292
  <input <?php if(isset($skyscraper_options["active"])) echo "checked='checked'"?> type="checkbox" id="active" name="skyscraper_options[active]" ></td>
2293
 
2294
+
2295
+
2296
  <td align="left" class="Content">
2297
 
2298
+
2299
+
2300
  <span class="TXT">Check if you want Sociable Skyscraper enable </span>
2301
 
2302
+
2303
+
2304
  <br>
2305
 
2306
+
2307
+
2308
 
2309
 
2310
+
2311
+
2312
  </td>
2313
 
2314
+
2315
+
2316
  </tr>
2317
 
2318
+
2319
+
2320
  </tbody></table>
2321
 
2322
+
2323
+
2324
  <br><br>
2325
 
2326
+
2327
+
2328
  </div>
2329
 
2330
+
2331
+
2332
  </div>
2333
 
2334
+
2335
+
2336
  <br/><br/>
2337
 
2338
+
2339
+
2340
  <?php settings_fields( 'skyscraper_options_group' ); ?>
2341
 
2342
+
2343
+
2344
  </form>
2345
 
2346
+
2347
+
2348
  <div class="Content-Box">
2349
 
2350
+
2351
+
2352
 
2353
 
2354
+
2355
+
2356
  <form id="sociable_reset_form" action="" method="POST">
2357
 
2358
+
2359
+
2360
  <?php wp_nonce_field('sociable-reset'); ?>
2361
 
2362
+
2363
+
2364
  <input type="hidden" id="skyscraper_reset" name="skyscraper_reset" value="1">
2365
 
2366
+
2367
+
2368
  <?php //submit_button( __( 'Reset Sociable' ) , 'primary', 'sociable_reset', false ); ?>
2369
 
2370
+
2371
+
2372
  </form>
2373
 
2374
+
2375
+
2376
 
2377
 
2378
+
2379
+
2380
  <div id="ActionsBar">
2381
 
2382
+
2383
+
2384
  <div style="cursor:pointer;line-height:15px;" onclick="document.getElementById('form1').submit();" class="SaveChanges"><br>
2385
 
2386
+
2387
+
2388
  <span style="margin:30px;">Save Changes</span>
2389
 
2390
+
2391
+
2392
  </div>
2393
 
2394
+
2395
+
2396
  <div style="cursor:pointer;line-height:15px;font-size:12px;" onclick="document.getElementById('sociable_reset_form').submit();" name="sociable_reset" id="sociable_reset" class="ResetSociable"><br>
2397
 
2398
+
2399
+
2400
  <span style="margin:40px;margin-left:35px;">Reset Skyscraper</span>
2401
 
2402
+
2403
+
2404
  </div>
2405
 
2406
+
2407
+
2408
  </div>
2409
 
2410
+
2411
+
2412
  </div>
2413
 
2414
+
2415
+
2416
 
2417
 
2418
+
2419
+
2420
  </div>
2421
 
2422
+
2423
+
2424
  <div style="float:left;width:49%;margin-left:15px" name="skyscraper" id="skyscraper">
2425
 
2426
+
2427
+
2428
  <script type="text/javascript">
2429
+
2430
  var base_url_sociable = "<?php echo SOCIABLE_HTTP_PATH?>";
2431
+
2432
  </script>
2433
 
2434
+
2435
+
2436
  </div>
2437
+
2438
  <?php
2439
 
2440
+
2441
+
2442
  }
2443
 
2444
+
2445
+
2446
 
2447
 
2448
+
2449
+
2450
  /**
2451
 
2452
+
2453
+
2454
  * Add The Menu Pages To The Administration Options
2455
 
2456
+
2457
+
2458
  */
2459
 
2460
+
2461
+
2462
 
2463
 
2464
+
2465
+
2466
  function add_menu_pages(){
2467
 
2468
+
2469
+
2470
 
2471
 
2472
+
2473
+
2474
  global $sociable_post_types;
2475
 
2476
+
2477
+
2478
 
2479
 
2480
+
2481
+
2482
  $url = $_SERVER["QUERY_STRING"];
2483
 
2484
+
2485
+
2486
  // $page[] = add_options_page( __( 'Sociable Options' ), __( 'Sociable Plugin' ), 'manage_options', 'sociable_select' , array( 'sociable_Admin_Options' , 'Select_Sociable_Page' ) );
2487
 
2488
+
2489
+
2490
  //$page[]= add_plugins_page( __( 'Sociable Options' ), __( 'Sociable Plugin' ), 'manage_options', 'Create_Options_Page_Skycraper' );
2491
 
2492
+
2493
+
2494
  //$page[]= add_plugins_page( 'sociable_options', 'sociable_options', 'read', 'Create_Options_Page' );
2495
 
2496
+
2497
+
2498
  $page[] = add_options_page( "","", 'manage_options', 'sociable_select' , array( 'sociable_Admin_Options' , 'Select_Sociable_Page' ) );
2499
 
2500
+
2501
+
2502
  $page[] = add_options_page( "","", 'manage_options', 'sociable_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page' ) );
2503
 
2504
+
2505
+
2506
  $page[] = add_options_page( "","", 'manage_options', 'skyscraper_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page_Skycraper' ) );
2507
 
2508
+
2509
+
2510
  // Add a new submenu under Settings:
2511
 
2512
+
2513
+
2514
  // $page[] = add_options_page(__( 'Sociable Options' ),__( 'Sociable Plugin' ), 'manage_options', 'sociable_select', 'Select_Sociable_Page');
2515
+
2516
  // Add a new top-level menu (ill-advised):
2517
 
2518
+
2519
+
2520
  add_menu_page(__( 'Sociable Options' ), __( 'Select Sociable Plugin' ), 'manage_options', '/options-general.php?page=sociable_select' );
2521
+
2522
  // Add a submenu to the custom top-level menu:
2523
 
2524
+
2525
+
2526
  add_submenu_page('options-general.php?page=sociable_select', __( 'Sociable Options' ), __( 'Sociable Options' ), 'manage_options', 'sociable_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page' ) );
2527
+
2528
  // Add a second submenu to the custom top-level menu:
2529
 
2530
+
2531
+
2532
  add_submenu_page('options-general.php?page=sociable_select', __( 'Skyscraper Options' ), __( 'Skyscraper Options' ), 'manage_options', 'skyscraper_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page_Skycraper' ) );
2533
+
2534
 
2535
 
2536
+
2537
+
2538
  //Add CSS And Javascript Specific To This Options Pages
2539
 
2540
+
2541
+
2542
  add_action( 'admin_print_styles-' . $page[0] , array( 'sociable_Admin_Options' , 'enqueue_styles' ) );
2543
 
2544
+
2545
+
2546
  add_action( 'admin_print_scripts-' . $page[0] , array( 'sociable_Admin_Options' , 'enqueue_scripts' ) );
2547
 
2548
+
2549
+
2550
 
2551
 
2552
+
2553
+
2554
  add_action( 'admin_print_styles-' . $page[1] , array( 'sociable_Admin_Options' , 'enqueue_styles' ) );
2555
 
2556
+
2557
+
2558
  add_action( 'admin_print_scripts-' . $page[1] , array( 'sociable_Admin_Options' , 'enqueue_scripts' ) );
2559
+
2560
  add_action( 'admin_print_styles-' . $page[2] , array( 'sociable_Admin_Options' , 'enqueue_styles' ) );
2561
 
2562
+
2563
+
2564
  add_action( 'admin_print_scripts-' . $page[2] , array( 'sociable_Admin_Options' , 'enqueue_scripts' ) );
2565
 
2566
+
2567
+
2568
 
2569
 
2570
+
2571
+
2572
  if( isset( $_POST['sociable_reset'] ) ){
2573
 
2574
+
2575
+
2576
  check_admin_referer( 'sociable-reset' );
2577
 
2578
+
2579
+
2580
 
2581
 
2582
+
2583
+
2584
  sociable_reset();
2585
 
2586
+
2587
+
2588
  wp_redirect( $_SERVER['HTTP_REFERER' ] );
2589
 
2590
+
2591
+
2592
  }
2593
 
2594
+
2595
+
2596
 
2597
 
2598
+
2599
+
2600
  if( isset( $_POST['skyscraper_reset'] ) ){
2601
 
2602
+
2603
+
2604
  check_admin_referer( 'sociable-reset' );
2605
 
2606
+
2607
+
2608
 
2609
 
2610
+
2611
+
2612
  skyscraper_reset();
2613
 
2614
+
2615
+
2616
  wp_redirect( $_SERVER['HTTP_REFERER' ] );
2617
 
2618
+
2619
+
2620
  }
2621
 
2622
+
2623
+
2624
 
2625
 
2626
+
2627
+
2628
 
2629
 
2630
+
2631
+
2632
  /*
2633
 
2634
+
2635
+
2636
  * We can create The Meta Boxes Here
2637
 
2638
+
2639
+
2640
  */
2641
 
2642
+
2643
+
2644
  foreach( $sociable_post_types as $type => $data ){
2645
 
2646
+
2647
+
2648
  self::add_meta_box( $type );
2649
 
2650
+
2651
+
2652
  }
2653
 
2654
+
2655
+
2656
  //Also on posts and pages
2657
 
2658
+
2659
+
2660
  self::add_meta_box( 'post' );
2661
 
2662
+
2663
+
2664
  self::add_meta_box( 'page' );
2665
 
2666
+
2667
+
2668
 
2669
 
2670
+
2671
+
2672
  }
2673
 
2674
+
2675
+
2676
 
2677
 
2678
+
2679
+
2680
  /*
2681
 
2682
+
2683
+
2684
  * Function to Enqueue The Styles For The Options Page
2685
 
2686
+
2687
+
2688
  */
2689
 
2690
+
2691
+
2692
  function enqueue_styles(){
2693
 
2694
+
2695
+
2696
  wp_enqueue_style( 'style-admin-css', SOCIABLE_HTTP_PATH . 'css/style-admin.css' );
2697
 
2698
+
2699
+
2700
  wp_enqueue_style( 'sociable-admin-css', SOCIABLE_HTTP_PATH . 'css/sociable-admin.css' );
2701
 
2702
+
2703
+
2704
  wp_enqueue_style( 'sociablecss' , SOCIABLE_HTTP_PATH . 'css/sociable.css' );
2705
 
2706
+
2707
+
2708
  }
2709
 
2710
+
2711
+
2712
 
2713
 
2714
+
2715
+
2716
  /*
2717
 
2718
+
2719
+
2720
  * Function To Enqueue The Scripts For The Options Page
2721
 
2722
+
2723
+
2724
  */
2725
 
2726
+
2727
+
2728
  function enqueue_scripts(){
2729
 
2730
+
2731
+
2732
  wp_enqueue_script('jquery');
2733
 
2734
+
2735
+
2736
  wp_enqueue_script('jquery-ui-core',false,array('jquery'));
2737
 
2738
+
2739
+
2740
  wp_enqueue_script('jquery-ui-sortable',false,array('jquery','jquery-ui-core'));
2741
 
 
2742
 
 
2743
 
2744
+ wp_enqueue_script( 'sociable-admin-js', SOCIABLE_HTTP_PATH . 'js/sociable-admin.js' , array( 'jquery','jquery-ui-core' , 'jquery-ui-sortable' ) );
2745
+
2746
+
2747
+
2748
+ wp_enqueue_script( 'admin-fn-js', SOCIABLE_HTTP_PATH . 'js/admin-fn.js' , array( 'jquery','jquery-ui-core' , 'jquery-ui-sortable' ) );
2749
+
2750
+
2751
+
2752
+
2753
+
2754
+
2755
+
2756
+ }
2757
+
2758
+
2759
+
2760
+
2761
+
2762
+
2763
+
2764
+
2765
+
2766
 
 
2767
 
2768
 
2769
 
 
2770
 
 
2771
 
2772
  /*
2773
 
2774
+
2775
+
2776
  * Function To Add The Settings Fields.
2777
 
2778
+
2779
+
2780
  */
2781
+
2782
  function do_site_selection_list($plugin = 'sociable'){
2783
 
2784
+
2785
+
2786
 
2787
 
2788
+
2789
+
2790
  if ($plugin == 'sociable'){
2791
 
2792
+
2793
+
2794
 
2795
 
2796
+
2797
+
2798
  global $sociable_options;
2799
 
2800
+
2801
+
2802
  $option_plugin = $sociable_options;
2803
 
2804
+
2805
+
2806
  $name_plugin = "sociable_options";
2807
 
2808
+
2809
+
2810
  }
2811
 
2812
+
2813
+
2814
  else{
2815
 
2816
+
2817
+
2818
 
2819
 
2820
+
2821
+
2822
  global $skyscraper_options;
2823
 
2824
+
2825
+
2826
  $option_plugin = $skyscraper_options;
2827
 
2828
+
2829
+
2830
  $name_plugin = "skyscraper_options";
2831
 
2832
+
2833
+
2834
  }
2835
 
2836
+
2837
+
2838
 
2839
 
2840
+
2841
+
2842
 
2843
 
2844
+
2845
+
2846
  $sociable_known_sites = get_option( 'sociable_known_sites' );
2847
+
2848
  /*
2849
 
2850
+
2851
+
2852
  * Sort The List Based On The Active Sites So That They Display Correctly.
2853
 
2854
+
2855
+
2856
  */
2857
 
2858
+
2859
+
2860
  $active_sites = isset( $option_plugin['active_sites'] ) && is_array( $option_plugin['active_sites'] ) ? $option_plugin['active_sites'] : array() ;
2861
 
2862
+
2863
+
2864
 
2865
 
2866
+
2867
+
2868
  //Start Blank
2869
 
2870
+
2871
+
2872
  $active = Array();
2873
 
2874
+
2875
+
2876
 
2877
 
2878
+
2879
+
2880
  //Disabled Untill Proven Active
2881
 
2882
+
2883
+
2884
  $disabled = $sociable_known_sites;
2885
 
2886
+
2887
+
2888
 
2889
 
2890
+
2891
+
2892
  //Loop Through The Active Sites, sorting into 2 arrays
2893
 
2894
+
2895
+
2896
  foreach( $active_sites as $sitename => $value ) {
2897
 
2898
+
2899
+
2900
  $active[$sitename] = $disabled[$sitename];
2901
 
2902
+
2903
+
2904
  unset( $disabled[$sitename] );
2905
 
2906
+
2907
+
2908
  }
2909
 
2910
+
2911
+
2912
 
2913
 
2914
+
2915
+
2916
  uksort($disabled, "strnatcasecmp");
2917
 
2918
+
2919
+
2920
 
2921
 
2922
+
2923
+
2924
  $sites = array_merge( $active, $disabled );
2925
 
2926
+
2927
+
2928
 
2929
 
2930
+
2931
+
2932
  $imagepath = isset( $option_plugin['sociable_imagedir'] ) ? $option_plugin['sociable_imagedir'] : '' ;
2933
 
2934
+
2935
+
2936
 
2937
 
2938
+
2939
+
2940
  if ($imagepath == "") {
2941
 
2942
+
2943
+
2944
  $imagepath = trailingslashit( SOCIABLE_HTTP_PATH ) . 'images/';
2945
 
2946
+
2947
+
2948
  } else {
2949
 
2950
+
2951
+
2952
  $imagepath .= trailingslashit( $imagepath );
2953
 
2954
+
2955
+
2956
  }
2957
 
2958
+
2959
+
2960
 
2961
 
2962
+
2963
+
2964
  $out ='<ul id="sociable_site_list" >' ;
2965
 
2966
+
2967
+
2968
  $io = 0;
2969
 
2970
+
2971
+
2972
  foreach( $sites as $sitename => $site ){
2973
 
2974
+
2975
+
2976
 
2977
 
2978
+
2979
+
2980
 
2981
 
2982
+
2983
+
2984
  //Set Checked And Active If Relevant
2985
 
2986
+
2987
+
2988
  if( array_key_exists( $sitename, $active_sites ) ){
2989
 
2990
+
2991
+
2992
  $checked = 'checked="checked"';
2993
 
2994
+
2995
+
2996
  $active = 'active';
2997
 
2998
+
2999
+
3000
  } else {
3001
 
3002
+
3003
+
3004
  $checked = '';
3005
 
3006
+
3007
+
3008
  $active = 'inactive';
3009
 
3010
+
3011
+
3012
  }
3013
 
3014
+
3015
+
3016
  if ( $sitename != "More"){
3017
 
3018
+
3019
+
3020
  if (isset($site["counter"])){
3021
 
3022
+
3023
+
3024
  //$image = "<img src='".SOCIABLE_HTTP_PATH."images/".$site["favicon"]."'>";
3025
 
3026
+
3027
+
3028
  $image = $site["url"];
3029
 
3030
+
3031
+
3032
  }else{
3033
 
3034
+
3035
+
3036
  $image = _get_sociable_image( $site, '' );
3037
 
3038
+
3039
+
3040
  }
3041
 
3042
+
3043
+
3044
  }else{
3045
 
3046
+
3047
+
3048
  $image = "<img src='".SOCIABLE_HTTP_PATH."images/more.png'>";
3049
 
3050
+
3051
+
3052
  }
3053
 
3054
+
3055
+
3056
 
3057
 
3058
+
3059
+
3060
  // if ( ! isset( $site['spriteCoordinates']) || isset( $sociable_options['sociable_disablesprite'] ) ) {
3061
 
3062
+
3063
+
3064
  // if (strpos($site['favicon'], 'http') === 0) {
3065
 
3066
+
3067
+
3068
  // $imgsrc = $site['favicon'];
3069
 
3070
+
3071
+
3072
  // } else {
3073
 
3074
+
3075
+
3076
  // $imgsrc = $imagepath.$site['favicon'];
3077
 
3078
+
3079
+
3080
  // }
3081
 
3082
+
3083
+
3084
  // $img = '<img src="' . $imgsrc . '" width="16" height="16" />';
3085
 
3086
+
3087
+
3088
  // } else {
3089
 
3090
+
3091
+
3092
  // $imgsrc = $imagepath."services-sprite.gif";
3093
 
3094
+
3095
+
3096
  // $services_sprite_url = $imagepath . "services-sprite.png";
3097
 
3098
+
3099
+
3100
  // $spriteCoords = $site['spriteCoordinates'];
3101
 
3102
+
3103
+
3104
  // $img = '<img src="' . $imgsrc . '" width="16" height="16" style="background: transparent url(' . $services_sprite_url . ') no-repeat; background-position:-' . $spriteCoords[0] . 'px -' . $spriteCoords[1] . 'px" />';
3105
 
3106
+
3107
+
3108
  // }
3109
 
3110
+
3111
+
3112
 
3113
 
3114
+
3115
+
3116
  $out .= '<li id="' . $sitename . '" class="' . $active . '">';
3117
 
3118
+
3119
+
3120
 
3121
 
3122
+
3123
+
3124
  $out .= '<input type="checkbox" id="cb_' . $sitename . '" name="'.$name_plugin.'[active_sites][' . $sitename . ']" ' . $checked . ' />';
3125
 
3126
+
3127
+
3128
 
3129
 
3130
+
3131
+
3132
  $out .= $image;
3133
 
3134
+
3135
+
3136
  if (!isset($site["counter"])){
3137
 
3138
+
3139
+
3140
  $out .= $sitename;
3141
 
3142
+
3143
+
3144
  }
3145
 
3146
+
3147
+
3148
 
3149
 
3150
+
3151
+
3152
  $out .= '</li>';
3153
 
3154
+
3155
+
3156
 
3157
 
3158
+
3159
+
3160
  }
3161
 
3162
+
3163
+
3164
 
3165
 
3166
+
3167
+
3168
 
3169
 
3170
+
3171
+
3172
  echo $out."</ul>";
3173
 
3174
+
3175
+
3176
 
3177
 
3178
+
3179
+
3180
  }
3181
 
3182
+
3183
+
3184
 
3185
 
3186
+
3187
+
3188
  /*
3189
 
3190
+
3191
+
3192
  * Create The HTML For The Options Page
3193
 
3194
+
3195
+
3196
  */
3197
 
3198
+
3199
+
3200
  function Create_Options_Page(){
3201
 
3202
+
3203
+
3204
  global $sociable_options;
3205
 
3206
+
3207
+
3208
 
3209
 
3210
+
3211
+
3212
  ?>
3213
 
3214
+
3215
+
3216
 
3217
 
3218
+
3219
+
3220
  <div class="wrap">
3221
 
3222
+
3223
+
3224
 
3225
 
3226
+
3227
+
3228
  <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >
3229
 
3230
+
3231
+
3232
  <iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblogplay.com%2F&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=true&amp;action=recommend&amp;colorscheme=light&amp;font&amp;height=80&amp;appId=133479460071366" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:40px;" allowTransparency="true"></iframe><br />
3233
 
3234
+ <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>
3235
+
3236
 
3237
  <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
3238
 
3239
+
3240
+
3241
  <br />
3242
 
3243
+
3244
+
3245
  </div>
3246
+
3247
  <h2 style="clear:both;"><?php _e( 'Sociable Options' ); ?></h2>
3248
+
3249
  <form method="post" action="options.php" id="form1" autocomplete="off">
3250
 
3251
+
3252
+
3253
 
3254
 
3255
+
3256
+
3257
  <?php wp_nonce_field('sociable-config'); ?>
3258
 
3259
+
3260
+
3261
  <INPUT type="hidden" class="version-INPUT" id="version" name="sociable_options[version]" value="<?php echo$sociable_options["version"];?>" />
3262
 
3263
+
3264
+
3265
  <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px">
3266
 
3267
+
3268
+
3269
  <TR>
3270
 
3271
+
3272
+
3273
  <TD class="Border-Left" ></TD><TD class="BG-Middle" >Preview</TD><TD class="Border-Right"></TD>
3274
 
3275
+
3276
+
3277
  </TR>
3278
 
3279
+
3280
+
3281
  </TABLE>
3282
 
3283
+
3284
+
3285
  <BR/>
3286
 
3287
+
3288
+
3289
 
3290
 
3291
+
3292
+
3293
  <DIV class="Content-Box" id="Preview-Content">
3294
 
3295
+
3296
+
3297
  <DIV style="margin:0 0 0 25px" align="left" class="Live-Preview" id="Live-Preview" ><?php _e("Live preview of how Sociable will appear on your blog.","sociable")?></DIV>
3298
 
3299
+
3300
+
3301
 
3302
 
3303
+
3304
+
3305
  <BR/>
3306
 
3307
+
3308
+
3309
 
3310
 
3311
+
3312
+
3313
  <DIV style="margin:0 0 0 25px" class="Post-TXT" id="Post-TXT" ><?php _e("This is your post here...","sociable")?></DIV>
3314
 
3315
+
3316
+
3317
 
3318
 
3319
+
3320
+
3321
  <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >Lorem ipsum dolor sit amet, consectetur adipiscing elit.</DIV>
3322
 
3323
+
3324
+
3325
 
3326
 
3327
+
3328
+
3329
  <BR/>
3330
 
3331
+
3332
+
3333
  <DIV style="margin:0 0 0 25px" id="ShareAndEnjoy" > <?php do_sociable(); ?></DIV>
3334
 
3335
+
3336
+
3337
  </DIV>
3338
 
3339
+
3340
+
3341
  <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Tagline-Title">
3342
 
3343
+
3344
+
3345
  <TR>
3346
 
3347
+
3348
+
3349
  <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Tagline","sociable");?></TD><TD class="Border-Right"></TD>
3350
 
3351
+
3352
+
3353
  </TR>
3354
 
3355
+
3356
+
3357
  </TABLE>
3358
 
3359
+
3360
+
3361
  <BR/>
3362
 
3363
+
3364
+
3365
 
3366
 
3367
+
3368
+
3369
  <DIV class="Content-Box" id="Tagline-Content">
3370
 
3371
+
3372
+
3373
  <DIV class="Tagline-TXT" id="Tagline-TXT" ><?php _e('Previously we used "Share and Enjoy", remember the good old days?',"sociable");?></DIV>
3374
 
3375
+
3376
+
3377
 
3378
 
3379
+
3380
+
3381
  <BR/>
3382
 
3383
+
3384
+
3385
  <DIV style="width:100%;height:60px;">
3386
 
3387
+
3388
+
3389
  <INPUT type="text" class="Tagline-INPUT" id="tagline" name="sociable_options[tagline]" value="<?php echo$sociable_options["tagline"];?>" />
3390
 
3391
+
3392
+
3393
 
3394
 
3395
+
3396
+
3397
  <DIV class="ToSociable" >
3398
 
3399
+
3400
+
3401
  <INPUT type="checkbox" <?php if (!empty($sociable_options["help_grow"])) echo "checked = 'checked'";?> name="sociable_options[help_grow]" id="LinkToSociable" />
3402
 
3403
+
3404
+
3405
  <?php _e("Link to Sociable","sociable");?><BR/>
3406
 
3407
+
3408
+
3409
  <SPAN style="font-size:14px;"><?php _e("(Help us grow, please leave the link so others discover Sociable from your blog)","sociable");?></SPAN>
3410
 
3411
+
3412
+
3413
  </DIV>
3414
 
3415
+
3416
+
3417
  </DIV>
3418
 
3419
+
3420
+
3421
  </DIV>
3422
 
3423
+
3424
+
3425
 
3426
 
3427
+
3428
+
3429
 
3430
 
3431
+
3432
+
3433
  <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Tagline-Title">
3434
 
3435
+
3436
+
3437
  <TR>
3438
 
3439
+
3440
+
3441
  <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Icons to Include","sociable");?></TD><TD class="Border-Right"></TD>
3442
 
3443
+
3444
+
3445
  </TR>
3446
 
3447
+
3448
+
3449
  </TABLE>
3450
 
3451
+
3452
+
3453
  <BR/>
3454
 
3455
+
3456
+
3457
 
3458
 
3459
+
3460
+
3461
  <DIV class="Content-Box" id="IconsToInclude-Box" style="">
3462
 
3463
+
3464
+
3465
  <DIV class="IconsToInclude-TXT" id="IconsToInclude-TXT" >
3466
 
3467
+
3468
+
3469
  <?php _e("Check the sites you want to appear on your blog.","sociable");?>
3470
 
3471
+
3472
+
3473
  </DIV>
3474
 
3475
+
3476
+
3477
 
3478
 
3479
+
3480
+
3481
  <BR/>
3482
 
3483
+
3484
+
3485
 
3486
 
3487
+
3488
+
3489
  <?php self::do_site_selection_list(); ?>
3490
 
3491
+
3492
+
3493
  </DIV>
3494
 
3495
+
3496
+
3497
 
3498
 
3499
+
3500
+
3501
  <div class="soc_clear"></div>
3502
 
3503
+
3504
+
3505
 
3506
 
3507
+
3508
+
3509
  <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="IconSize-Title" style="margin-top:20px;">
3510
 
3511
+
3512
+
3513
  <TR>
3514
 
3515
+
3516
+
3517
  <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Icons Size","sociable");?></TD><TD class="Border-Right"></TD>
3518
 
3519
+
3520
+
3521
  </TR>
3522
 
3523
+
3524
+
3525
  </TABLE>
3526
 
3527
+
3528
+
3529
  <BR/>
3530
 
3531
+
3532
+
3533
 
3534
 
3535
+
3536
+
3537
  <DIV class="Content-Box" style="margin-left:-3px" id="IconSize-Content">
3538
 
3539
+
3540
+
3541
  <?php
3542
 
3543
+
3544
+
3545
  $checked16 = "";
3546
 
3547
+
3548
+
3549
  $checked32 = "";
3550
 
3551
+
3552
+
3553
  $checked48 = "";
3554
 
3555
+
3556
+
3557
  $checked64 = "";
3558
 
3559
+
3560
+
3561
  if ($sociable_options["icon_size"] == 16) $checked16 = "checked='checked'";
3562
 
3563
+
3564
+
3565
  if ($sociable_options["icon_size"] == 32) $checked32 = "checked='checked'";
3566
 
3567
+
3568
+
3569
  if ($sociable_options["icon_size"] == 48) $checked48 = "checked='checked'";
3570
 
3571
+
3572
+
3573
  if ($sociable_options["icon_size"] == 64) $checked64 = "checked='checked'";
3574
 
3575
+
3576
+
3577
  //echo $checked16;
3578
 
3579
+
3580
+
3581
  ?>
3582
 
3583
+
3584
+
3585
  <SPAN class="IconSize-Item"> <INPUT value="16" type="radio" name="sociable_options[icon_size]" <?php echo $checked16;?> />16x16 Pixels </SPAN>
3586
 
3587
+
3588
+
3589
 
3590
 
3591
+
3592
+
3593
  <SPAN class="IconSize-Item"> <INPUT <?php echo$checked32;?> value="32" type="radio" name="sociable_options[icon_size]" />32x32 Pixels </SPAN>
3594
 
3595
+
3596
+
3597
 
3598
 
3599
+
3600
+
3601
  <SPAN class="IconSize-Item"> <INPUT <?php echo$checked48;?> value="48" type="radio" name="sociable_options[icon_size]"/>48x48 Pixels </SPAN>
3602
 
3603
+
3604
+
3605
 
3606
 
3607
+
3608
+
3609
  <SPAN class="IconSize-Item"> <INPUT <?php echo$checked64;?> value="64" type="radio" name="sociable_options[icon_size]" />64x64 Pixels </SPAN>
3610
 
3611
+
3612
+
3613
 
3614
 
3615
+
3616
+
3617
 
3618
 
3619
+
3620
+
3621
  </DIV>
3622
 
3623
+
3624
+
3625
 
3626
 
3627
+
3628
+
3629
  <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="IconSize-Title" style="margin-top:20px;">
3630
 
3631
+
3632
+
3633
  <TR>
3634
 
3635
+
3636
+
3637
  <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Icons Style","sociable");?></TD><TD class="Border-Right"></TD>
3638
 
3639
+
3640
+
3641
  </TR>
3642
 
3643
+
3644
+
3645
  </TABLE>
3646
 
3647
+
3648
+
3649
  <BR/>
3650
 
3651
+
3652
+
3653
 
3654
 
3655
+
3656
+
3657
  <DIV class="Content-Box" id="IconSize-Content" style="padding:20px;">
3658
 
3659
+
3660
+
3661
 
3662
 
3663
+
3664
+
3665
  <?php
3666
 
3667
+
3668
+
3669
  $checked1 = "";
3670
 
3671
+
3672
+
3673
  $checked2 = "";
3674
 
3675
+
3676
+
3677
  $checked3 = "";
3678
 
3679
+
3680
+
3681
  $checked4 = "";
3682
 
3683
+
3684
+
3685
  $checked5 = "";
3686
 
3687
+
3688
+
3689
  $checked6 = "";
3690
 
3691
+
3692
+
3693
  if ($sociable_options["icon_option"] == "option1") $checked1 = "checked='checked'";
3694
 
3695
+
3696
+
3697
  if ($sociable_options["icon_option"] == "option2") $checked2 = "checked='checked'";
3698
 
3699
+
3700
+
3701
  if ($sociable_options["icon_option"] == "option3") $checked3 = "checked='checked'";
3702
 
3703
+
3704
+
3705
  if ($sociable_options["icon_option"] == "option4") $checked4 = "checked='checked'";
3706
 
3707
+
3708
+
3709
  if ($sociable_options["icon_option"] == "option5") $checked5 = "checked='checked'";
3710
 
3711
+
3712
+
3713
  if ($sociable_options["icon_option"] == "option6") $checked6 = "checked='checked'";
3714
 
3715
+
3716
+
3717
 
3718
 
3719
+
3720
+
3721
  $imagepath = isset( $sociable_options['sociable_imagedir'] ) ? $sociable_options['sociable_imagedir'] : '' ;
3722
 
3723
+
3724
+
3725
 
3726
 
3727
+
3728
+
3729
  if ($imagepath == "") {
3730
 
3731
+
3732
+
3733
  $imagepath = trailingslashit( SOCIABLE_HTTP_PATH ) . 'images/';
3734
 
3735
+
3736
+
3737
  } else {
3738
 
3739
+
3740
+
3741
  $imagepath .= trailingslashit( $imagepath );
3742
 
3743
+
3744
+
3745
  }
3746
 
3747
+
3748
+
3749
  //echo $imagepath;
3750
 
3751
+
3752
+
3753
  ?>
3754
 
 
3755
 
3756
+
3757
+
3758
+
3759
+
3760
+
3761
+ <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo$checked1?> value="option1" type="radio" /> <IMG src="<?php echo$imagepath?>icon_styles/<?php echo$sociable_options["icon_size"]?>/option1_<?php echo$sociable_options["icon_size"]?>.jpg" /> </SPAN>
3762
+
3763
+
3764
+
3765
+ <BR/><BR/>
3766
+
3767
+
3768
+
3769
+ <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo$checked2?> value="option2" type="radio" /> <IMG src="<?php echo$imagepath?>icon_styles/<?php echo$sociable_options["icon_size"]?>/option2_<?php echo$sociable_options["icon_size"]?>.jpg" /> </SPAN>
3770
+
3771
+
3772
 
3773
  <BR/><BR/>
3774
 
 
3775
 
 
3776
 
3777
  <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo$checked3?> value="option3" type="radio" /> <IMG src="<?php echo$imagepath?>icon_styles/<?php echo$sociable_options["icon_size"]?>/option3_<?php echo$sociable_options["icon_size"]?>.jpg" /> </SPAN>
3778
 
3779
+
3780
+
3781
  <BR/><BR/>
3782
 
3783
+
3784
+
3785
  <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo$checked4?> value="option4" type="radio" /> <IMG src="<?php echo$imagepath?>icon_styles/<?php echo$sociable_options["icon_size"]?>/option4_<?php echo$sociable_options["icon_size"]?>.jpg" /> </SPAN>
3786
 
3787
+
3788
+
3789
  <BR/><BR/>
3790
 
3791
+
3792
+
3793
  <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo$checked5?> value="option5" type="radio" /> <IMG src="<?php echo$imagepath?>icon_styles/<?php echo$sociable_options["icon_size"]?>/option5_<?php echo$sociable_options["icon_size"]?>.jpg" /> </SPAN>
3794
 
3795
+
3796
+
3797
  <BR/><BR/>
3798
 
3799
+
3800
+
3801
  <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo$checked6?> value="option6" type="radio" /> <IMG src="<?php echo$imagepath?>icon_styles/16/option_6_16.png" /> </SPAN>
3802
 
3803
+
3804
+
3805
  <BR/><BR/>
3806
 
3807
+
3808
+
3809
  </DIV>
3810
 
3811
+
3812
+
3813
 
3814
 
3815
+
3816
+
3817
  <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Locations');" >
3818
 
3819
+
3820
+
3821
  <TR>
3822
 
3823
+
3824
+
3825
  <TD class="Border-Left" ></TD><TD class="BG-Middle" id="Locations-Title" ><span id="Locations-Tab">+ </span><?php _e("Locations","sociable");?></TD><TD class="Border-Right"></TD>
3826
 
3827
+
3828
+
3829
  </TR>
3830
 
3831
+
3832
+
3833
  </TABLE>
3834
 
3835
+
3836
+
3837
  <BR/>
3838
 
3839
+
3840
+
3841
 
3842
 
3843
+
3844
+
3845
  <DIV class="Content-Box" id="Locations-Content" style="display:none;" >
3846
 
3847
+
3848
+
3849
  <DIV class="Locations-TXT" id="Locations-TXT" ><?php _e("Please select the locations that you wish to allow the Sociable plugin to insert itself.","sociable");?></DIV>
3850
 
3851
+
3852
+
3853
 
3854
 
3855
+
3856
+
3857
  <BR/>
3858
 
3859
+
3860
+
3861
  <DIV align="center" style="width:100%;">
3862
 
3863
+
3864
+
3865
  <TABLE align="center" class="Locations-List" cellspacing="0" border=0 cellpadding="10">
3866
 
3867
+
3868
+
3869
  <TR valign="top" >
3870
 
3871
+
3872
+
3873
  <TD align="right" class="Title" ><?php _e("Home page","sociable");?></TD>
3874
 
3875
+
3876
+
3877
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_front_page"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_front_page]" id="HomePage" /></TD>
3878
 
3879
+
3880
+
3881
  <TD align="left" class="Content">
3882
 
3883
+
3884
+
3885
  <SPAN class="TXT"><?php _e("The front page of the blog (if set to a static page), or the main blog page (if set to your latest posts).","sociable");?></SPAN>
3886
 
3887
+
3888
+
3889
 
3890
 
3891
+
3892
+
3893
  </TD>
3894
 
3895
+
3896
+
3897
  </TR>
3898
 
3899
+
3900
+
3901
 
3902
 
3903
+
3904
+
3905
  <TR valign="top" >
3906
 
3907
+
3908
+
3909
  <TD align="right" class="Title" ><?php _e("Blog page","sociable");?></TD>
3910
 
3911
+
3912
+
3913
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_home"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_home]" id="BlogPage" /></TD>
3914
 
3915
+
3916
+
3917
  <TD align="left" class="Content">
3918
 
3919
+
3920
+
3921
  <SPAN class="TXT"><?php _e("The home page of the blog if is set to your latest posts, or the posts page if the home page is set to a static page","sociable");?></SPAN>
3922
 
3923
+
3924
+
3925
 
3926
 
3927
+
3928
+
3929
  </TD>
3930
 
3931
+
3932
+
3933
  </TR>
3934
 
3935
+
3936
+
3937
 
3938
 
3939
+
3940
+
3941
  <TR valign="top" >
3942
 
3943
+
3944
+
3945
  <TD align="right" class="Title" ><?php _e("Posts","sociable");?></TD>
3946
 
3947
+
3948
+
3949
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_single"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_single]" id="Posts" /></TD>
3950
 
3951
+
3952
+
3953
  <TD align="left" class="Content">
3954
 
3955
+
3956
+
3957
  <SPAN class="TXT"><?php _e("Single post pages","sociable");?></SPAN>
3958
 
3959
+
3960
+
3961
 
3962
 
3963
+
3964
+
3965
  </TD>
3966
 
3967
+
3968
+
3969
  </TR>
3970
 
3971
+
3972
+
3973
 
3974
 
3975
+
3976
+
3977
  <TR valign="top" >
3978
 
3979
+
3980
+
3981
  <TD align="right" class="Title" ><?php _e("Pages","sociable");?></TD>
3982
 
3983
+
3984
+
3985
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_page"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_page]" id="Pages" /></TD>
3986
 
3987
+
3988
+
3989
  <TD align="left" class="Content">
3990
 
3991
+
3992
+
3993
  <SPAN class="TXT"><?php _e("Individual Wordpress pages","sociable");?></SPAN>
3994
 
3995
+
3996
+
3997
 
3998
 
3999
+
4000
+
4001
  </TD>
4002
 
4003
+
4004
+
4005
  </TR>
4006
 
4007
+
4008
+
4009
 
4010
 
4011
+
4012
+
4013
  <TR valign="top" >
4014
 
4015
+
4016
+
4017
  <TD align="right" class="Title" ><?php _e("Category archives","sociable");?></TD>
4018
 
4019
+
4020
+
4021
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_category"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_category]" id="CategoryArchives" /></TD>
4022
 
4023
+
4024
+
4025
  <TD align="left" class="Content">
4026
 
4027
+
4028
+
4029
  <SPAN class="TXT"><?php _e("Category archive pages","sociable");?></SPAN>
4030
 
4031
+
4032
+
4033
 
4034
 
4035
+
4036
+
4037
  </TD>
4038
 
4039
+
4040
+
4041
  </TR>
4042
 
4043
+
4044
+
4045
 
4046
 
4047
+
4048
+
4049
  <TR valign="top" >
4050
 
4051
+
4052
+
4053
  <TD align="right" class="Title" ><?php _e("Date archives","sociable");?></TD>
4054
 
4055
+
4056
+
4057
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_date"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_date]" id="DateArchives" /></TD>
4058
 
4059
+
4060
+
4061
  <TD align="left" class="Content">
4062
 
4063
+
4064
+
4065
  <SPAN class="TXT"><?php _e("Date archive pages","sociable");?> </SPAN>
4066
 
4067
+
4068
+
4069
 
4070
 
4071
+
4072
+
4073
  </TD>
4074
 
4075
+
4076
+
4077
  </TR>
4078
 
4079
+
4080
+
4081
 
4082
 
4083
+
4084
+
4085
  <TR valign="top" >
4086
 
4087
+
4088
+
4089
  <TD align="right" class="Title" ><?php _e("Tag archives","sociable");?></TD>
4090
 
4091
+
4092
+
4093
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_tag"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_tag]" id="TagArchives" /></TD>
4094
 
4095
+
4096
+
4097
  <TD align="left" class="Content">
4098
 
4099
+
4100
+
4101
  <SPAN class="TXT"><?php _e("Tag archive pages","sociable");?> </SPAN>
4102
 
4103
+
4104
+
4105
 
4106
 
4107
+
4108
+
4109
  </TD>
4110
 
4111
+
4112
+
4113
  </TR>
4114
 
4115
+
4116
+
4117
 
4118
 
4119
+
4120
+
4121
  <TR valign="top" >
4122
 
4123
+
4124
+
4125
  <TD align="right" class="Title" ><?php _e("Author archives","sociable");?></TD>
4126
 
4127
+
4128
+
4129
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_author"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_author]" id="AuthorArchives" /></TD>
4130
 
4131
+
4132
+
4133
  <TD align="left" class="Content">
4134
 
4135
+
4136
+
4137
  <SPAN class="TXT"><?php _e("Author archive pages","sociable");?></SPAN>
4138
 
4139
+
4140
+
4141
 
4142
 
4143
+
4144
+
4145
  </TD>
4146
 
4147
+
4148
+
4149
  </TR>
4150
 
4151
+
4152
+
4153
 
4154
 
4155
+
4156
+
4157
  <TR valign="top" >
4158
 
4159
+
4160
+
4161
  <TD align="right" class="Title" ><?php _e("Search results","sociable");?></TD>
4162
 
4163
+
4164
+
4165
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_search"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_search]" id="SearchResults" /></TD>
4166
 
4167
+
4168
+
4169
  <TD align="left" class="Content">
4170
 
4171
+
4172
+
4173
  <SPAN class="TXT"><?php _e("Search results pages","sociable");?></SPAN>
4174
 
4175
+
4176
+
4177
 
4178
 
4179
+
4180
+
4181
  </TD>
4182
 
4183
+
4184
+
4185
  </TR>
4186
 
4187
+
4188
+
4189
 
4190
 
4191
+
4192
+
4193
  <TR valign="top" >
4194
 
4195
+
4196
+
4197
  <TD align="right" class="Title" ><?php _e("RSS feeds","sociable");?></TD>
4198
 
4199
+
4200
+
4201
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_rss"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_rss]" id="RssFeeds" /></TD>
4202
 
4203
+
4204
+
4205
  <TD align="left" class="Content">
4206
 
4207
+
4208
+
4209
  <SPAN class="TXT"><?php _e("RSS feeds","sociable");?></SPAN>
4210
 
4211
+
4212
+
4213
 
4214
 
4215
+
4216
+
4217
  </TD>
4218
 
4219
+
4220
+
4221
  </TR>
4222
 
4223
+
4224
+
4225
 
4226
 
4227
+
4228
+
4229
 
4230
 
4231
+
4232
+
4233
  </TABLE>
4234
 
4235
+
4236
+
4237
  <BR/><BR/>
4238
 
4239
+
4240
+
4241
  </DIV>
4242
 
4243
+
4244
+
4245
  </DIV>
4246
 
4247
+
4248
+
4249
 
4250
 
4251
+
4252
+
4253
  <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('GeneralOptions');">
4254
 
4255
+
4256
+
4257
  <TR>
4258
 
4259
+
4260
+
4261
  <TD class="Border-Left" ></TD><TD class="BG-Middle" id="GeneralOptions-Title" ><span id="GeneralOptions-Tab"> + </span> <?php _e("General Options","sociable");?></TD><TD class="Border-Right"></TD>
4262
 
4263
+
4264
+
4265
  </TR>
4266
 
4267
+
4268
+
4269
  </TABLE>
4270
 
4271
+
4272
+
4273
  <BR/>
4274
 
4275
+
4276
+
4277
 
4278
 
4279
+
4280
+
4281
  <DIV class="Content-Box" id="GeneralOptions-Content" style="display:none;" >
4282
 
4283
+
4284
+
4285
 
4286
 
4287
+
4288
+
4289
  <BR/>
4290
 
4291
+
4292
+
4293
  <DIV align="center" style="width:100%;">
4294
 
4295
+
4296
+
4297
  <TABLE align="center" class="GeneralOptions-List" cellspacing="0" border=0 cellpadding ="10" >
4298
 
4299
+
4300
+
4301
  <TR valign="top" >
4302
 
4303
+
4304
+
4305
  <TD align="right" class="Title" ><?php _e("Automatic mode","sociable")?></TD>
4306
 
4307
+
4308
+
4309
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["automatic_mode"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[automatic_mode]" id="AutoMode" /></TD>
4310
 
4311
+
4312
+
4313
  <TD align="left" class="Content">
4314
 
4315
+
4316
+
4317
  <SPAN class="TXT"><?php _e("Do you want to automatically use Sociable on the locations specified?","sociable");?> </SPAN>
4318
 
4319
+
4320
+
4321
  <BR/>
4322
 
4323
+
4324
+
4325
  <SPAN class="sTXT">
4326
 
4327
+
4328
+
4329
  <?php _e("If this is unchecked, you will have to use the shortcode[sociable/] or template","sociable");?> tag ?php if( function_exists( do_sociable() ) ){ do_sociable(); }
4330
 
4331
+
4332
+
4333
  </SPAN>
4334
 
4335
+
4336
+
4337
 
4338
 
4339
+
4340
+
4341
  </TD>
4342
 
4343
+
4344
+
4345
  </TR>
4346
 
4347
+
4348
+
4349
 
4350
 
4351
+
4352
+
4353
 
4354
 
4355
+
4356
+
4357
  </TR>
4358
 
4359
+
4360
+
4361
  <TR valign="top" >
4362
 
4363
+
4364
+
4365
  <TD align="right" class="Title" ><?php _e("Use styleSheet","sociable");?></TD>
4366
 
4367
+
4368
+
4369
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["use_stylesheet"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[use_stylesheet]" id="UseStyleSheets" /></TD>
4370
 
4371
+
4372
+
4373
  <TD align="left" class="Content">
4374
 
4375
+
4376
+
4377
  <SPAN class="TXT"><?php _e("Do you want to use the default stylesheet for sociable?","sociable");?></SPAN>
4378
 
4379
+
4380
+
4381
  </TD>
4382
 
4383
+
4384
+
4385
  </TR>
4386
 
4387
+
4388
+
4389
  <TR valign="top" >
4390
 
4391
+
4392
+
4393
  <TD align="right" class="Title" ><?php _e("Use your own icons","sociable");?></TD>
4394
 
4395
+
4396
+
4397
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["custom_icons"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[custom_icons]" id="UseStyleSheets" /></TD>
4398
 
4399
+
4400
+
4401
  <TD align="left" class="Content">
4402
 
4403
+
4404
+
4405
  <SPAN class="TXT"><?php _e("Do you want to use your own icons for sociable?","sociable");?></SPAN>
4406
 
4407
+
4408
+
4409
  </TD>
4410
 
4411
+
4412
+
4413
  </TR>
4414
 
4415
+
4416
+
4417
  <TR valign="top" >
4418
 
4419
+
4420
+
4421
  <TD align="right" class="Title" ><?php _e("Use images","sociable");?></TD>
4422
 
4423
+
4424
+
4425
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["use_images"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[use_images]" id="UseImages" /></TD>
4426
 
4427
+
4428
+
4429
  <TD align="left" class="Content">
4430
 
4431
+
4432
+
4433
  <SPAN class="TXT"><?php _e("Do you want to use the Sociable images? If not, the plugin will insert plain text links.","sociable");?></SPAN>
4434
 
4435
+
4436
+
4437
  </TD>
4438
 
4439
+
4440
+
4441
  </TR>
4442
 
4443
+
4444
+
4445
 
4446
 
4447
+
4448
+
4449
 
4450
 
4451
+
4452
+
4453
  <TR valign="top" >
4454
 
4455
+
4456
+
4457
  <TD align="right" class="Title" ><?php _e("Use alpha mask","sociable");?></TD>
4458
 
4459
+
4460
+
4461
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["use_alphamask"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[use_alphamask]" id="AlphaMask" /></TD>
4462
 
4463
+
4464
+
4465
  <TD align="left" class="Content">
4466
 
4467
+
4468
+
4469
  <SPAN class="TXT"><?php _e("Do you want to use alpha masks on the images (available only on the Original Sociable)?","sociable");?></SPAN>
4470
 
4471
+
4472
+
4473
  </TD>
4474
 
4475
+
4476
+
4477
  </TR>
4478
 
4479
+
4480
+
4481
  <TR valign="top" >
4482
 
4483
+
4484
+
4485
  <TD align="right" class="Title" ><?php _e("Bottom and Top","sociable");?></TD>
4486
 
4487
+
4488
+
4489
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["topandbottom"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[topandbottom]" id="TopAndBottom" /></TD>
4490
 
4491
+
4492
+
4493
  <TD align="left" class="Content">
4494
 
4495
+
4496
+
4497
  <SPAN class="TXT"><?php _e("Do you want to use Sociable plugin to show up at the top and bottom?","sociable");?></SPAN>
4498
 
4499
+
4500
+
4501
  </TD>
4502
 
4503
+
4504
+
4505
  </TR>
4506
 
4507
+
4508
+
4509
  <TR valign="top" >
4510
 
4511
+
4512
+
4513
  <TD align="right" class="Title" ><?php _e("Open in new window","sociable");?></TD>
4514
 
4515
+
4516
+
4517
  <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["new_window"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[new_window]" id="OpenNewWindow" /></TD>
4518
 
4519
+
4520
+
4521
  <TD align="left" class="Content">
4522
 
4523
+
4524
+
4525
  <SPAN class="TXT"><?php _e("do you want to open the links in a new window?","sociable");?></SPAN>
4526
 
4527
+
4528
+
4529
  </TD>
4530
 
4531
+
4532
+
4533
  </TR>
4534
 
4535
+
4536
+
4537
 
4538
 
4539
+
4540
+
4541
 
4542
 
4543
+
4544
+
4545
 
4546
 
4547
+
4548
+
4549
  </TABLE>
4550
 
4551
+
4552
+
4553
 
4554
 
4555
+
4556
+
4557
  <BR/><BR/>
4558
 
4559
+
4560
+
4561
  </DIV>
4562
 
4563
+
4564
+
4565
  </DIV>
4566
 
4567
+
4568
+
4569
  <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Active');" >
4570
 
4571
+
4572
+
4573
  <TR>
4574
 
4575
+
4576
+
4577
  <TD class="Border-Left" ></TD><TD class="BG-Middle" id="Active-Title" ><span id="Active-Tab">+ </span><?php _e("Active Sociable Classic","sociable");?></TD><TD class="Border-Right"></TD>
4578
 
4579
+
4580
+
4581
  </TR>
4582
 
4583
+
4584
+
4585
  </TABLE>
4586
 
4587
+
4588
+
4589
 
4590
 
4591
+
4592
+
4593
  <div style="display: block;" id="Active-Content" class="Content-Box">
4594
 
4595
+
4596
+
4597
 
4598
 
4599
+
4600
+
4601
  <br>
4602
 
4603
+
4604
+
4605
  <div align="center" style="width:100%;">
4606
 
4607
+
4608
+
4609
  <table align="center" cellspacing="0" cellpadding="10" border="0" class="GeneralOptions-List">
4610
 
4611
+
4612
+
4613
 
4614
 
4615
+
4616
+
4617
  <tbody><tr valign="top">
4618
 
4619
+
4620
+
4621
  <td align="right" class="Title">Active Sociable Classic</td>
4622
 
4623
+
4624
+
4625
  <td align="left" style="width:5px;">
4626
 
4627
+
4628
+
4629
  <input <?php if(isset($sociable_options["active"])) echo "checked='checked'"?> type="checkbox" id="active" name="sociable_options[active]" /></td>
4630
 
4631
+
4632
+
4633
  <td align="left" class="Content">
4634
 
4635
+
4636
+
4637
  <span class="TXT">Check if you want Sociable Classic enable </span>
4638
 
4639
+
4640
+
4641
  <br>
4642
 
4643
+
4644
+
4645
 
4646
 
4647
+
4648
+
4649
  </td>
4650
 
4651
+
4652
+
4653
  </tr>
4654
 
4655
+
4656
+
4657
  </tbody></table>
4658
 
4659
+
4660
+
4661
  <br><br>
4662
 
4663
+
4664
+
4665
  </div>
4666
 
4667
+
4668
+
4669
  </div>
4670
 
4671
+
4672
+
4673
  <?php //<HR style="height:10px;background:#18305d;"/>?>
4674
 
4675
+
4676
+
4677
  <?php settings_fields( 'sociable_options_group' ); ?>
4678
 
4679
+
4680
+
4681
  </FORM>
4682
 
4683
+
4684
+
4685
  <DIV class="Content-Box" >
4686
 
4687
+
4688
+
4689
  <DIV id="ActionsBar">
4690
 
4691
+
4692
+
4693
  <DIV class="SaveChanges" onClick="document.getElementById('form1').submit();" style="cursor:pointer;line-height:15px;"><br/>
4694
 
4695
+
4696
+
4697
  <span style="margin:30px;"><?php _e("Save Changes","sociable");?></span>
4698
 
4699
+
4700
+
4701
  </DIV>
4702
 
4703
+
4704
+
4705
  <DIV class="ResetSociable" id="sociable_reset" name="sociable_reset" onClick="document.getElementById('sociable_reset_form').submit();" style="cursor:pointer;line-height:15px;font-size:12px;"><br/>
4706
 
4707
+
4708
+
4709
  <span style="margin:40px;margin-left:35px;"><?php _e("Reset Sociable","sociable");?></span>
4710
 
4711
+
4712
+
4713
  </DIV>
4714
 
4715
+
4716
+
4717
  <DIV class="UninstallSociable" onClick="document.getElementById('sociable_remove_form').submit();" style="cursor:pointer;line-height:15px;font-size:12px;"><br/>
4718
 
4719
+
4720
+
4721
  <span style="margin:25px;margin-left:20px;"><?php _e("Completly Uninstall Sociable","sociable");?></span>
4722
 
4723
+
4724
+
4725
  </DIV>
4726
 
4727
+
4728
+
4729
  </DIV>
4730
 
4731
+
4732
+
4733
  </DIV>
4734
 
4735
+
4736
+
4737
  <br>
4738
 
4739
+
4740
+
4741
  <br>
4742
 
4743
+
4744
+
4745
 
4746
 
4747
+
4748
+
4749
 
4750
 
4751
+
4752
+
4753
 
4754
+
4755
  <?php //do_settings_sections( 'sociable_options' ); ?>
4756
+
4757
 
4758
+
4759
 
4760
 
4761
+
4762
+
4763
 
4764
 
4765
+
4766
+
4767
  <form id="sociable_reset_form" action="" method="POST">
4768
 
4769
+
4770
+
4771
  <?php wp_nonce_field('sociable-reset'); ?>
4772
 
4773
+
4774
+
4775
  <input type="hidden" id="sociable_reset" name="sociable_reset" value="1">
4776
 
4777
+
4778
+
4779
  <?php //submit_button( __( 'Reset Sociable' ) , 'primary', 'sociable_reset', false ); ?>
4780
 
4781
+
4782
+
4783
  </form>
4784
 
4785
+
4786
+
4787
 
4788
 
4789
+
4790
+
4791
 
4792
+
4793
  </div>
4794
+
4795
  <?php }
4796
 
4797
+
4798
+
4799
 
4800
 
4801
+
4802
+
4803
  function add_meta_box( $page ){
4804
 
4805
+
4806
+
4807
  add_meta_box( 'sociable_off' , __( 'Disable sociable' ), array( 'sociable_Admin_Options' , 'create_meta_box' ) , $page, 'side', 'default' );
4808
 
4809
+
4810
+
4811
  }
4812
 
4813
+
4814
+
4815
 
4816
 
4817
+
4818
+
4819
  function create_meta_box(){
4820
 
4821
+
4822
+
4823
  global $post;
4824
 
4825
+
4826
+
4827
  $sociableoff = false;
4828
 
4829
+
4830
+
4831
  $checked = '';
4832
 
4833
+
4834
+
4835
  if ( get_post_meta( $post->ID,'_sociableoff',true ) ) {
4836
 
4837
+
4838
+
4839
  $checked = 'checked="checked"';
4840
 
4841
+
4842
+
4843
  }
4844
 
4845
+
4846
+
4847
  wp_nonce_field( 'update_sociable_off' , 'sociable_nonce' );
4848
 
4849
+
4850
+
4851
  echo '<input type="checkbox" id="sociableoff" name="sociableoff" ' . $checked . ' /> <p class="description">' . __('Check This To Disable Sociable 2 On This Post Only.') . '</p>';
4852
 
4853
+
4854
+
4855
 
4856
 
4857
+
4858
+
4859
  }
4860
 
4861
+
4862
+
4863
 
4864
 
4865
+
4866
+
4867
  function save_post( $post_id ){
4868
 
4869
+
4870
+
4871
 
4872
 
4873
+
4874
+
4875
  if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
4876
 
4877
+
4878
+
4879
  return $post_id;
4880
+
4881
  // verify this came from the our screen and with proper authorization,
4882
 
4883
+
4884
+
4885
  // because save_post can be triggered at other times
4886
 
4887
+
4888
+
4889
 
4890
 
4891
+
4892
+
4893
  $nonce = ( isset( $_POST['sociable_nonce'] ) ) ? $_POST['sociable_nonce'] : false ;
4894
+
4895
  if ( ! $nonce || ! wp_verify_nonce( $nonce, 'update_sociable_off' ) )
4896
 
4897
+
4898
+
4899
  return $post_id;
4900
 
4901
+
4902
+
4903
  // Check permissions
4904
 
4905
+
4906
+
4907
  if ( 'page' == $_POST['post_type'] ){
4908
 
4909
+
4910
+
4911
  if ( !current_user_can( 'edit_page', $post_id ) )
4912
 
4913
+
4914
+
4915
  return;
4916
 
4917
+
4918
+
4919
  } else {
4920
 
4921
+
4922
+
4923
  if ( !current_user_can( 'edit_post', $post_id ) )
4924
 
4925
+
4926
+
4927
  return;
4928
 
4929
+
4930
+
4931
  }
4932
 
4933
+
4934
+
4935
 
4936
 
4937
+
4938
+
4939
  //Lets Do This
4940
 
4941
+
4942
+
4943
  if( isset( $_POST['sociableoff'] ) ){
4944
 
4945
+
4946
+
4947
  update_post_meta( $post_id, '_sociableoff' , $_POST['sociableoff'] );
4948
 
4949
+
4950
+
4951
  } else {
4952
 
4953
+
4954
+
4955
  delete_post_meta( $post_id, '_sociableoff' );
4956
 
4957
+
4958
+
4959
  }
4960
 
4961
+
4962
+
4963
 
4964
 
4965
+
4966
+
4967
  return $post_id;
4968
 
4969
+
4970
+
4971
  }
4972
 
4973
+
4974
+
4975
 
4976
 
4977
+
4978
+
4979
  /**
4980
 
4981
+
4982
+
4983
  * This Function Runs Before The Options Are Printed Out.
4984
 
4985
+
4986
+
4987
  */
4988
 
4989
+
4990
+
4991
  function general_options_callback(){
4992
 
4993
+
4994
+
4995
 
4996
 
4997
+
4998
+
4999
  return true;
5000
 
5001
+
5002
+
5003
  }
5004
 
5005
+
5006
+
5007
 
5008
 
5009
+
5010
+
5011
  /**
5012
 
5013
+
5014
+
5015
  * This Function Runs Before The Location Options Are Echoed Out.
5016
 
5017
+
5018
+
5019
  */
5020
 
5021
+
5022
+
5023
  function location_options_callback(){
5024
 
5025
+
5026
+
5027
  echo '<p>' . __( 'Please Select The Locations That You Wish To Allow The Sociable 2 Plugin To Insert The Links.' ) . '</p>';
5028
 
5029
+
5030
+
5031
  }
5032
 
5033
+
5034
+
5035
 
5036
 
5037
+
5038
+
5039
  /**
5040
 
5041
+
5042
+
5043
  * Adds A Function For The add_settings_field(); function
5044
 
5045
+
5046
+
5047
  *
5048
 
5049
+
5050
+
5051
  * should be passed:
5052
 
5053
+
5054
+
5055
  * $data = array(
5056
 
5057
+
5058
+
5059
  * 'id' => 'field_id_and_name',
5060
 
5061
+
5062
+
5063
  * 'description' => 'field Description Should Go Here, This is Not The Title, Rather The Description'
5064
 
5065
+
5066
+
5067
  * );
5068
 
5069
+
5070
+
5071
  */
5072
 
5073
+
5074
+
5075
  function Checkbox( $data ){
5076
 
5077
+
5078
+
5079
  global $sociable_options;
5080
 
5081
+
5082
+
5083
 
5084
 
5085
+
5086
+
5087
  //Save The Locations As a seperate array option
5088
 
5089
+
5090
+
5091
  if( isset( $data['locations'] ) ){
5092
 
5093
+
5094
+
5095
  $name = 'sociable_options[locations][' . $data['id'] . ']';
5096
 
5097
+
5098
+
5099
  $checked = ( isset( $sociable_options['locations'][$data['id']] ) ) ? 'checked="checked"' : '' ;
5100
 
5101
+
5102
+
5103
  } else {
5104
 
5105
+
5106
+
5107
  $name = 'sociable_options[' . $data['id'] . ']';
5108
 
5109
+
5110
+
5111
  $checked = ( isset( $sociable_options[$data['id']] ) ) ? 'checked="checked"' : '' ;
5112
 
5113
+
5114
+
5115
  }
5116
 
5117
+
5118
+
5119
 
5120
 
5121
+
5122
+
5123
 
5124
+
5125
  echo '<input ' . $checked . ' id="' . $data['id'] . '" name="' . $name . '" type="checkbox" /> <span class="description">' . $data['description'] . '</span>';
5126
+
5127
  }
5128
 
5129
+
5130
+
5131
 
5132
 
5133
+
5134
+
5135
  function TextInput( $data ){
5136
 
5137
+
5138
+
5139
  global $sociable_options;
5140
 
5141
+
5142
+
5143
 
5144
 
5145
+
5146
+
5147
  $value = ( isset( $sociable_options[$data['id']] ) ) ? $sociable_options[$data['id']] : '';
5148
 
5149
+
5150
+
5151
 
5152
+
5153
  echo '<input id="' . $data['id'] . '" name="sociable_options[' . $data['id'] . ']" size="40" type="text" value="' . esc_attr( $value ) . '" /> <br /><span class="description">' . $data['description'] . '</span>';
5154
+
5155
 
5156
 
5157
+
5158
+
5159
  }
5160
 
5161
+
5162
+
5163
 
5164
 
5165
+
5166
+
5167
  function TextArea( $data ){
5168
 
5169
+
5170
+
5171
  global $sociable_options;
5172
 
5173
+
5174
+
5175
 
5176
 
5177
+
5178
+
5179
  $value = ( isset( $sociable_options[$data['id']] ) ) ? $sociable_options[$data['id']] : '';
5180
 
5181
+
5182
+
5183
 
5184
+
5185
  echo '<textarea id="' . $data['id'] . '" name="sociable_options[' . $data['id'] . ']" >' . $value . '</textarea> <br /><span class="description">' . $data['description'] . '</span>';
5186
+
5187
 
5188
 
5189
+
5190
+
5191
  }
5192
 
5193
+
5194
+
5195
 
5196
 
5197
+
5198
+
5199
  function radio( $data ){
5200
 
5201
+
5202
+
5203
  global $sociable_options;
5204
 
5205
+
5206
+
5207
 
5208
 
5209
+
5210
+
5211
  $cur_val = ( isset( $sociable_options[$data['id']] ) ) ? $sociable_options[$data['id']] : 0 ;
5212
 
5213
+
5214
+
5215
 
5216
 
5217
+
5218
+
5219
  echo '<span class="description">' . $data['description'] . '</span><br />';
5220
 
5221
+
5222
+
5223
  foreach( $data['options'] as $value => $option ){
5224
 
5225
+
5226
+
5227
  $selected = ( $value == $cur_val ) ? 'checked="checked"' : '' ;
5228
 
5229
+
5230
+
5231
  echo '<input type="radio" name="sociable_options[' . $data['id'] . ']" value="' . $value . '" ' . $selected . ' /> <span>' . $option . '</span><br />';
5232
 
5233
+
5234
+
5235
  }
5236
 
5237
+
5238
+
5239
  }
5240
 
5241
+
5242
+
5243
 
5244
 
5245
+
5246
+
5247
 
5248
 
5249
+
5250
+
5251
  }
5252
+
5253
  function add_ie7() {
5254
+
5255
  echo'<!--[if lt IE 7]>
5256
 
5257
+
5258
+
5259
  <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js"
5260
 
5261
+
5262
+
5263
  type="text/javascript"></script>
5264
 
5265
+
5266
+
5267
  <![endif]-->
5268
 
5269
+
5270
+
5271
  <!--[if lt IE 8]>
5272
 
5273
+
5274
+
5275
  <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js"
5276
 
5277
+
5278
+
5279
  type="text/javascript"></script>
5280
 
5281
+
5282
+
5283
  <![endif]-->
5284
 
5285
+
5286
+
5287
  <!--[if lt IE 9]>
5288
 
5289
+
5290
+
5291
  <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
5292
 
5293
+
5294
+
5295
  <![endif]-->';
5296
+
5297
  }
5298
 
5299
+
5300
+
5301
  //add_action('admin_head', 'add_ie7' );
5302
 
5303
+
5304
+
5305
  ?>
includes/skyscraper_output.php CHANGED
@@ -1,633 +1,1250 @@
1
  <?php
 
2
  /*
 
3
  * The Output And Shortcode Functions For sociable
 
4
  */
 
5
  /*
 
6
  * Returns The Skyscraper Output For The Global $post Object Do Not
 
7
  */
 
8
  function diff_date($date1, $date2){
9
-
10
-
11
  $date1 = mktime(substr($date1,8,2), substr($date1,10,2), substr($date1,12,2), substr($date1,4,2), substr($date1,6,2), substr($date1,0,4));
 
12
  $date2 = mktime(substr($date2,8,2), substr($date2,10,2), substr($date2,12,2), substr($date2,4,2), substr($date2,6,2), substr($date2,0,4));
13
-
 
14
  $diff_time = ceil((($date2 - $date1)/60));
 
15
  return $diff_time;
16
  }
 
17
 
 
18
 
 
19
  function skyscraper_html( $where = "" ){
 
20
  global $skyscraper_options, $wp_query;
 
21
  if (!is_admin() || 1==1){
 
22
 
 
23
 
 
24
  // echo "<script type='text/javascript'>";
 
25
  // echo "var skyscraper_dir = '".SOCIABLE_HTTP_PATH."' ;";
 
26
  // echo "</script>";
 
27
  echo " var skyscraper_dir = document.createElement('input');
 
28
  skyscraper_dir.id = 'skyscraper_dir';
 
29
  skyscraper_dir.type = 'hidden';
 
30
  skyscraper_dir.value = '".SOCIABLE_HTTP_PATH."';
 
31
  document.body.appendChild(skyscraper_dir); ";
 
32
 
 
33
  $widget_width = str_replace("px", "", $skyscraper_options["widget_width"]);
 
34
 
 
35
  $widget_position = "null";
 
36
  if (isset($skyscraper_options["widget_position"])){
 
37
  $widget_position = 1;
 
38
  }
 
39
 
 
40
  $labels_color = $skyscraper_options["labels_color"];
 
41
  $text_size = str_replace("px", "", $skyscraper_options["text_size"]);
 
42
  $background_color = $skyscraper_options["background_color"];
 
43
 
 
44
  $addWhere = "";
 
45
 
 
46
  if ($where == ""){
 
47
  $addWhere = "var div = document.createElement('div');
 
48
  div.id = 'skyscraper';
 
49
  document.body.appendChild(div);";
 
50
  }
 
51
 
 
52
  $url_site= $_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
 
53
 
54
- $script = "
 
 
 
 
55
 
56
- if (!document.getElementById('fb-root')){
 
57
  var div = document.createElement('div');
 
58
  div.id = 'fb-root';
 
59
  document.body.appendChild(div);
 
60
  }
61
-
62
  (function(d, s, id) {
 
63
  var js, fjs = d.getElementsByTagName(s)[0];
 
64
  if (d.getElementById(id)) return;
 
65
  js = d.createElement(s); js.id = id;
 
66
  js.src = \"http://connect.facebook.net/en_US/all.js#xfbml=1\";
 
67
  fjs.parentNode.insertBefore(js, fjs);
 
68
  }(document, 'script', 'facebook-jssdk'));
69
-
70
- (function() {
71
- var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
72
- po.src = 'https://apis.google.com/js/plusone.js';
73
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
74
- })();
75
 
76
-
77
- (function() {
78
- var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
79
- po.src = 'http://platform.twitter.com/widgets.js';
80
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
81
- })();
82
-
83
  ".$addWhere."
84
-
85
- jQuery(document).ready(function(){
86
-
87
  oPlugin.toolbarStart('skyscraper', ".$widget_position.",230,".$widget_width.",'".$background_color."','".$labels_color."',false,'#6A6A6A',".$text_size.",'#587cc8');
88
-
89
  ".get_share_node()."
90
-
91
  ".get_counters_node()."
92
-
93
- ".get_latest_node()."
94
-
95
- ".get_mentions_node()."
96
-
 
 
97
  ".get_follow_us_node()."
98
-
99
  ".get_rss_node()."
100
-
101
- oPlugin.CreateGoToTop('New_Id_12','Top','<img src=\"".SOCIABLE_HTTP_PATH."images/toolbar/gototop.png\" style=\"width:30px;\" />');
102
-
103
-
104
- oPlugin.CreateGoToHome('New_Id_13','Go Home','<img src=\"".SOCIABLE_HTTP_PATH."images/toolbar/gotohome.png\" style=\"width:30px;\" />');
105
-
106
  });
107
-
 
 
 
 
 
 
 
 
108
 
109
 
110
- ";
 
 
 
 
111
 
112
- echo $script;
113
 
114
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
  }
 
116
  function get_rss_node(){
 
117
  $rss_node = "";
 
118
  $latest_posts = "";
 
119
  global $skyscraper_options;
 
120
 
 
121
  $version = phpversion();
 
122
 
 
123
  if ( substr($version,0,1) == 5 && isset($skyscraper_options["rss_feed"]) && $skyscraper_options["rss_feed"]!="http://"){
 
124
 
 
125
  include("rss_php.php");
 
126
 
 
127
  $rss = new rss_php;
 
128
  $rss->load($skyscraper_options["rss_feed"]);
 
129
  $items = $rss->getItems();
 
130
 
 
131
  if (!empty($skyscraper_options["rss_feed"])){
 
132
 
 
133
  if (count($items) > 0){
 
134
 
 
135
  $cant = 0;
 
136
  foreach($items as $item){
 
137
 
 
138
  if ($cant <= $skyscraper_options["num_rss"]){
 
139
 
 
140
  $title="";
 
141
  if (isset($item["title"])){
 
142
  $title = addslashes($item["title"]);
 
143
  }
 
144
  $description="";
 
145
  if (isset($item["description"])){
 
146
  $description = addslashes($item["description"]);
 
147
  }
 
148
  $guid="";
 
149
  if (isset($item["link"])){
 
150
  $guid = addslashes($item["link"]);
 
151
  }
 
152
  $pubDate="";
 
153
  if (isset($item["pubDate"])){
 
154
  $pubDate = ago(strtotime($item["pubDate"]));
 
155
  }
 
156
 
 
157
  $latest_posts .= "['".$title."','','".$description."','".$guid."','".$pubDate."'],";
 
158
  }
 
159
  else{
 
160
  break;
 
161
  }
 
162
  $cant++;
 
163
  }
 
164
  $latest_posts = trim($latest_posts, ",");
 
165
  }
 
166
  }
 
167
  }
 
168
 
 
169
  if ($latest_posts != ""){
 
170
 
 
171
  $rss_node = "var LatestBlogPostContent = [
 
172
  ".$latest_posts."
 
173
  ];
 
174
  oPlugin.CreateNode('New_Id_5','Posts','',LatestBlogPostContent,'Notice',220,460);";
 
175
  }
 
176
  return $rss_node;
 
177
  }
 
178
  function get_latest_node(){
 
179
  $latest_node = "";
 
180
  global $skyscraper_options;
 
181
 
 
182
  if ( isset($skyscraper_options["twitter_username"])){
 
183
 
 
184
  $latest_tweets = get_option_tweets("skyscraper_latest");
 
185
  if ($skyscraper_options["twitter_username"] != ""){
 
186
 
 
187
  if ($latest_tweets != ""){
 
188
 
189
- $latest_node = "var LastestTwittsContent = [
 
 
 
 
190
  ".$latest_tweets."
 
191
  ];
 
192
 
 
193
  oPlugin.CreateNode('New_Id_3','Latest','',LastestTwittsContent,'Notice',220,460);";
 
194
  }
 
195
  }
 
196
  }
 
197
  return $latest_node;
 
198
  }
 
199
  function get_mentions_node(){
 
200
  $mentions_node = "";
 
201
 
 
202
  global $skyscraper_options;
 
203
 
 
204
  if ( isset($skyscraper_options["twitter_username"])){
 
205
 
 
206
  $mentions_tweets = get_option_tweets("skyscraper_mentions");
 
207
  if ($skyscraper_options["twitter_username"] != ""){
 
208
 
 
209
  if ($mentions_tweets != "" ){
 
210
 
 
211
  $mentions_node = "var TweetsMentionsContent = [
 
212
  ".$mentions_tweets."
 
213
  ];
 
214
  oPlugin.CreateNode('New_Id_4','Mentions','',TweetsMentionsContent,'Notice',220,460);";
 
215
  }
 
216
  }
 
217
  }
 
218
  return $mentions_node;
 
219
  }
 
220
  function get_counters_node(){
 
221
 
 
222
  global $skyscraper_options;
 
223
  global $title_shared;
224
- global $url_shares;
225
-
 
226
  $counters_node = "";
227
- /*
228
-
229
- <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script><span><a href="http://twitter.com/share" style="color:#ffffff" class="twitter-share-button" data-url="" data-text="" data-count="vertical" data-via="gBrowser" data-lang="en">Tweet</a></span>
230
-
231
- */
232
  if ((!empty($skyscraper_options["counters"]["check"]))){
 
233
 
 
234
  $counters_node = " var url = '". addslashes(trim($url_shares))."';
235
- var title = '".addslashes(trim($title_shared)) ."';
236
-
237
- var counter = '<table align=\"center\" cellspacing=\"0\" cellpadding=\"0\" ><tr><td style=\"height:72px;width:50px;\" align=\"center\">';
238
- counter += '<div class=\"fb-like\" data-send=\"false\" data-layout=\"box_count\" data-width=\"50\" data-href=\"'+url+'\" data-show-faces=\"false\"></div>';
239
- counter += '</td></tr>';
240
- counter += '<tr><td align=\"center\">';
241
- counter +=' <div class=\"g-plusone\" data-size=\"tall\" data-href=\"'+url+'\"></div>';
242
- counter += '</td></tr>';
243
- counter += '<tr><td align=\"center\" style=\"height:72px\">';
244
- counter += '<a href=\"https://twitter.com/share\" data-with=\"50\" data-text=\"'+ title +' (via @sociablesite) [skyscraper_counters] \" data-url=\"'+ url + '\" class=\"twitter-share-button\" data-count=\"vertical\">Tweet</a>';
245
- counter += '</td></tr>';
246
- counter += '</table>';
247
-
248
- oPlugin.CreateSimpleNode('New_Id_2','Counters<br/>', counter ,".$skyscraper_options["counters"]["folded"].");
249
- ";
250
  }
251
-
 
 
 
 
 
252
  return $counters_node;
 
253
  }
 
254
  function get_share_node(){
 
255
 
 
256
  global $skyscraper_options;
 
257
 
 
258
  $share_node = "";
 
259
 
 
260
  if (!empty($skyscraper_options["share"]["check"])){
 
261
  $share_buttons = share_links();
 
262
  $share_node = "oPlugin.CreateSimpleNode('New_Id_1','Share', '".$share_buttons."',".$skyscraper_options["share"]["folded"].");";
 
263
  }
 
264
 
 
265
  return $share_node;
 
266
  }
 
267
  function get_follow_us_node(){
 
268
  $follow_us_node = "";
 
269
  global $skyscraper_options;
 
270
 
 
271
  if (isset($skyscraper_options["follow_us"])){
 
272
 
 
273
  $follow_info = empty_accounts();
 
274
 
 
275
  if ( $follow_info["active"] > 0 && ($follow_info["empty"] < $follow_info["active"])){
 
 
 
 
276
 
277
- $follow_us_node = "oPlugin.CreateNode('New_Id_6','Follow', '', '".sc_follow_links()."','Plano',40,140)";
278
  }
 
279
  }
 
280
  return $follow_us_node;
 
281
  }
 
282
  function empty_accounts(){
 
283
  $empty = 0;
 
284
  $active = 0;
 
285
  global $skyscraper_options;
 
286
 
 
287
  foreach($skyscraper_options["follow_us"] as $follow_us){
 
288
 
 
289
  if (empty($follow_us["account"])){
 
290
  $empty++;
 
291
  }
 
292
 
 
293
  if (isset($follow_us["active"])){
 
294
  $active++;
 
295
  }
 
296
  }
 
297
 
 
298
  return array("empty" =>$empty, "active"=>$active);
 
299
  }
300
- function sc_follow_links(){
 
 
301
  global $skyscraper_options;
 
 
 
302
 
303
- $follow_buttons = "";
304
-
305
- foreach($skyscraper_options["follow_us"] as $follow_us){
306
-
307
  $follow_us["account"]= trim($follow_us["account"]);
308
-
309
  if (!empty($follow_us["active"]) && !empty($follow_us["account"]) ){
310
-
311
  $follow_us["account"] = str_replace("http://", "", $follow_us["account"]);
 
312
  $follow_us["account"] = "http://".$follow_us["account"];
 
 
 
 
 
 
 
313
 
314
- $follow_buttons .= "<a target=\'_blank\' rel=\'nofollow\' href=\'".$follow_us["account"]."\'><img src=\'".SOCIABLE_HTTP_PATH."images/toolbar/".$follow_us["logo"]."\' /></a>";
315
  }
 
316
  }
317
 
318
- return $follow_buttons;
 
 
 
 
 
 
319
  }
 
320
  function share_links(){
 
321
 
 
322
  $url = addslashes(get_bloginfo('wpurl'));
 
323
  $blogname = addslashes(get_bloginfo('name'));
 
324
  global $title_shared;
 
325
  global $url_shares;
326
 
327
-
328
  $page = trim(addslashes($url_shares));
329
- $permalink = trim(addslashes($url_shares));
 
 
330
  $title = trim(addslashes($title_shared));
 
331
 
 
332
  $share_links = array();
 
333
  $share_links = array(
334
-
335
-
336
  "twitter" => array('favicon' => 't.png',
337
- 'url' => 'http://twitter.com/intent/tweet?text='.$title.'%20-%20'.$permalink.'%20(via%20@sociablesite) %23sociable [skyscraper_share]',
 
 
338
  'title' => "Share on Twitter"),
 
339
 
 
340
  "facebook" => array('favicon' => 'f.png',
 
341
  'url' => 'http://www.facebook.com/share.php?u='.$permalink.'&amp;t='.$title.'',
 
342
  'title' => "Share on Facebook"),
 
343
 
 
344
  "google" => array('favicon' => 'g.png',
 
345
  'url' => 'https://mail.google.com/mail/?view=cm&fs=1&to&su='.$title.'&body='.$permalink.'&ui=2&tf=1&shva=1',
 
346
  'title' => "Share on Gmail"),
 
347
 
348
- "favorites" => array('favicon' => 'fv.png',
349
- 'url' => 'javascript:AddToFavorites();',
350
- 'title' => "Add to favorites - doesn\'t work in Chrome"),
 
 
 
 
351
 
 
352
  "stumble" => array('favicon' => 's.png',
 
353
  'url' => 'http://www.stumbleupon.com/submit?url='.$permalink.'&title='.$title.'',
 
354
  'title' => "Share on StumpleUpon"),
 
355
 
 
356
  "delicious" => array('favicon' => 'o.png',
 
357
  'url' => 'http://delicious.com/post?url='.$permalink.'&amp;title='.$title.'&amp;notes=EXCERPT',
 
358
  "title" => "Share on delicious"),
 
359
 
 
360
  "reader" => array('favicon' => 'n.png',
 
361
  'url' => 'http://www.google.com/reader/link?url='.$permalink.'&amp;title='.$title.'&amp;srcURL='.$permalink.'&amp;srcTitle='.$blogname.'',
 
362
  "title" => "Share on Google Reader"),
 
363
 
 
364
  "linkedin" => array('favicon' => 'i.png',
 
365
  'url' => 'http://www.linkedin.com/shareArticle?mini=true&amp;url='.$permalink.'&amp;title='.$title.'&amp;source='.$blogname.'&amp;summary=EXCERPT',
 
366
  "title" => "Share on LinkedIn")
 
367
 
 
368
  );
 
369
 
 
370
  $share_buttons = "";
 
371
 
 
372
  foreach($share_links as $link){
 
373
 
 
374
  $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>";
 
375
  }
 
376
 
 
377
  return $share_buttons;
 
378
  }
 
379
  /*
 
380
  * Template Tag To Echo The Sociable 2 HTML
 
381
  */
 
382
  function do_skyscraper(){
 
383
  echo skyscraper_html();
 
384
  }
 
385
  /*
 
386
  * Sociable 2 Shortcode
 
387
  */
 
388
  function skyscraper_shortcode(){
 
389
  return skyscraper_html();
 
390
  }
 
391
  function auto_skyscraper($content, $admin = false){
 
392
  global $skyscraper_options;
393
- // echo $_SERVER["REQUEST_URI"];
 
394
  if ($admin){
395
- // die("acaa22");
396
  $content = skyscraper_html();
 
397
  return $content;
 
398
  }
 
399
 
 
400
  if( ! isset( $skyscraper_options['active'] )){
 
401
  $content = "";
 
402
  return $content;
 
403
  }
 
 
 
 
404
 
 
 
405
  if( ! isset( $skyscraper_options['locations'] ) || ! is_array( $skyscraper_options['locations'] ) || empty( $skyscraper_options['locations'] ) ){
 
406
 
 
407
  $content = "";
 
408
  } else {
 
409
 
 
410
  $locations = $skyscraper_options['locations'];
 
411
  }
 
412
  /*
 
413
  * Determine if we are supposed to be displaying the output here.
 
414
  */
 
415
  $display = false;
 
416
 
 
417
  /*
 
418
  * is_single is a unique case it still returning true
 
419
  */
 
420
 
 
421
  //If We Can Verify That We are in the correct loaction, simply add something to the $display array, and test for a true result to continue.
 
422
  foreach( $locations as $location => $val ){
 
423
 
 
424
  //First We Handle is_single() so it returning true on Single Post Type Pages is not an issue, this is not the intended functionality of this plugin
 
425
  if( $location == 'is_single' ){
 
426
  //If we are not in a post, lets ignore this one for now
427
 
 
 
428
  if( is_single() && get_post_type() == 'post' ){
 
429
  $display = true;
 
430
  break;
 
431
  } else {
 
432
  continue; // So not to trigger is_single later in this loop, but still be allowed to handle others
 
433
  }
 
434
 
 
435
  } elseif( strpos( $location , 'is_single_posttype_' ) === 0 ){ //Now We Need To Check For The Variable Names, Taxonomy Archives, Post Type Archives and Single Custom Post Types.
 
436
 
 
437
  //Single Custom Post Type
 
438
  $post_type = str_replace( 'is_single_posttype_' , '' , $location );
 
439
  if( is_single() && get_post_type() == $post_type ){
 
440
  $display = true;
 
441
  break;
 
442
  }
 
443
 
 
444
  } elseif( strpos( $location , 'is_posttype_archive_' ) === 0 ){
 
445
 
 
446
  //Custom Post Type Archive
 
447
  $post_type = str_replace( 'is_posttype_archive_' , '' , $location );
 
448
  if( is_post_type_archive( $post_type ) ){
 
449
  $display = true;
 
450
  break;
 
451
  }
 
452
 
 
453
  } elseif( strpos( $location , 'is_taxonomy_archive_' ) === 0 ) {
 
454
 
 
455
  //Taxonomy Archive
 
456
  $taxonomy = str_replace( 'is_taxonomy_archive_' , '' , $location );
 
457
  if( is_tax( $taxonomy ) ){
 
458
  $display = true;
 
459
  break;
 
460
  }
 
461
 
 
462
  } elseif( function_exists( $location ) ) {
 
463
 
 
464
  //Standard conditional tag, these will return BOOL
 
465
  if( call_user_func( $location ) === true ){
 
466
  $display = true;
 
467
  break;
 
468
  }
 
469
 
 
470
  } else {
 
471
  continue;
 
472
  }
 
473
 
 
474
 
 
475
  }
 
476
 
 
477
  //If We have passed all the checks and are looking in the right place lets do this thang
 
478
  if( isset( $skyscraper_options['automatic_mode'] ) && $display === true ){
 
479
  if (isset($skyscraper_options["topandbottom"])){
 
480
  $content = skyscraper_html();
 
481
  }else{
 
482
  $content = skyscraper_html();
 
483
  }
 
484
  }
 
485
  else{
 
486
  $content = skyscraper_html();
 
487
  }
 
488
 
 
489
 
 
490
 
 
491
  return $content;
 
492
  }
 
493
  function get_tweets_username($username_complete){
 
494
 
 
495
  if (function_exists('curl_init')) {
 
496
 
 
497
  // last tweets
 
498
  $username = str_replace("@", "", $username_complete);
 
499
  $url = "https://api.twitter.com/1/statuses/user_timeline/".$username.".json";
 
500
  $latest = curl_call($url);
 
501
  $latest_row = parser_twitter_results($latest,0);
 
502
  update_option( "skyscraper_latest", $latest_row );
 
503
 
 
504
  // last mentions
 
505
  $url = "http://search.twitter.com/search.json?q=@".$username."&rpp=5&include_entities=true&result_type=mixed";
 
506
  $mentions = curl_call($url);
 
507
 
 
508
  if (count($mentions["results"]) > 1){
 
509
 
 
510
  $mentions_row = parser_twitter_results($mentions["results"],1);
 
511
  update_option( "skyscraper_mentions", $mentions_row );
 
512
  }
 
513
  }
 
514
  }
 
515
  function ago($time){
 
516
  $periods = array("second", "minute", "hour", "day", "week", "month", "year", "decade");
 
517
  $lengths = array("60","60","24","7","4.35","12","10");
 
518
  $now = time();
 
519
  $difference = $now - $time;
 
520
  $tense = "ago";
 
521
  for($j = 0; $difference >= $lengths[$j] && $j < count($lengths)-1; $j++) {
 
522
  $difference /= $lengths[$j];
 
523
  }
 
524
  $difference = round($difference);
 
525
  if($difference != 1) {
 
526
  $periods[$j].= "s";
 
527
  }
 
528
  return $difference." ".$periods[$j]."ago";
 
529
  }
 
530
  function parser_twitter_results($results = array(), $mention){
 
531
 
 
532
  $options_latest = array();
 
533
  $options_latest = array("date" => date("YmdHis"));
 
534
  global $skyscraper_options;
 
535
  $i = 0;
 
536
 
 
537
  if (is_array($results)){
 
538
 
 
539
  foreach($results as $tweet){
 
540
 
 
541
  $options_latest[$i] = array();
 
542
  $options_latest[$i]["text"] = $tweet["text"];
 
543
  $options_latest[$i]["created_at"] = ago(strtotime($tweet["created_at"]));
 
544
 
 
545
  if ($mention){
 
546
  $options_latest[$i]["name"] = $tweet["from_user_name"];
 
547
  }
 
548
  else{
 
549
  $options_latest[$i]["name"] = $tweet["user"]["name"];
 
550
  }
 
551
 
 
552
  $i++;
 
553
  if ($i == $skyscraper_options["num_tweets"]){
 
554
  break;
 
555
  }
 
556
  }
 
557
  }
 
558
 
 
559
  return $options_latest;
 
560
  }
 
561
  function curl_call($url){
 
562
 
 
563
  $ch = curl_init();
 
564
  curl_setopt($ch, CURLOPT_URL, $url);
 
565
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 
566
  curl_setopt($ch, CURLOPT_TIMEOUT, 3);
 
567
  curl_setopt($ch, CURLINFO_HEADER_OUT, true);
 
568
  $output = curl_exec($ch);
 
569
  $info = curl_getinfo($ch);
 
570
  curl_close($ch);
 
571
 
 
572
  if ($info["http_code"] == "200"){
 
573
 
 
574
  $return = json_decode($output,1);
 
575
  }
 
576
  else{
 
577
  $return = false;
 
578
  }
 
579
 
 
580
  return $return;
 
581
  }
 
582
  function get_option_tweets($option){
 
583
 
 
584
  global $skyscraper_options;
 
585
  $skyscraper_latest = get_option($option);
 
586
 
 
587
  if (empty($skyscraper_latest)){
 
588
 
 
589
  get_tweets_username($skyscraper_options["twitter_username"]);
 
590
  $skyscraper_latest = get_option($option);
 
591
  }
 
592
  else{
 
593
 
 
594
  // 5 minutes
 
595
  if (diff_date($skyscraper_latest["date"], date("YmdHis")) > 5){
 
596
 
 
597
  get_tweets_username($skyscraper_options["twitter_username"]);
 
598
  $skyscraper_latest = get_option($option);
 
599
  }
 
600
  }
 
601
 
 
602
 
 
603
  return generate_tweets_box_content($skyscraper_latest);
 
604
  }
 
605
  function generate_tweets_box_content($tweets){
 
606
  $content = "";
 
607
  if (isset($tweets["date"])){
 
608
  unset($tweets["date"]);
 
609
  }
 
610
 
 
611
 
 
612
  foreach($tweets as $tweet){
 
613
 
 
614
  $tweet["name"] = addslashes($tweet["name"]);
 
615
  $tweet["text"] = addslashes($tweet["text"]);
 
616
 
 
617
  $content .= "['".$tweet["name"]."','".$tweet["name"]."','".$tweet["text"]."','','".$tweet["created_at"]."'],";
 
618
  }
 
619
  $content = trim(trim(trim($content), ","));
 
620
 
 
621
  return $content;
 
622
  }
 
623
  if (!empty($_GET["sky"])){
 
624
  add_action('wp_ajax_my_action', 'my_action_callback');
 
625
  function my_action_callback() {
 
626
  global $wpdb; global $skyscraper_options; // this is how you get access to the database
 
627
  $whatever = intval( $_POST['whatever'] );
 
628
  $whatever += 10;
 
629
  echo $whatever;
 
630
  die(); // this is required to return a proper result
 
631
  }
 
632
  }
 
633
  ?>
1
  <?php
2
+
3
  /*
4
+
5
  * The Output And Shortcode Functions For sociable
6
+
7
  */
8
+
9
  /*
10
+
11
  * Returns The Skyscraper Output For The Global $post Object Do Not
12
+
13
  */
14
+
15
  function diff_date($date1, $date2){
16
+
17
+
18
  $date1 = mktime(substr($date1,8,2), substr($date1,10,2), substr($date1,12,2), substr($date1,4,2), substr($date1,6,2), substr($date1,0,4));
19
+
20
  $date2 = mktime(substr($date2,8,2), substr($date2,10,2), substr($date2,12,2), substr($date2,4,2), substr($date2,6,2), substr($date2,0,4));
21
+
22
+
23
  $diff_time = ceil((($date2 - $date1)/60));
24
+
25
  return $diff_time;
26
  }
27
+
28
 
29
+
30
 
31
+
32
  function skyscraper_html( $where = "" ){
33
+
34
  global $skyscraper_options, $wp_query;
35
+
36
  if (!is_admin() || 1==1){
37
+
38
 
39
+
40
 
41
+
42
  // echo "<script type='text/javascript'>";
43
+
44
  // echo "var skyscraper_dir = '".SOCIABLE_HTTP_PATH."' ;";
45
+
46
  // echo "</script>";
47
+
48
  echo " var skyscraper_dir = document.createElement('input');
49
+
50
  skyscraper_dir.id = 'skyscraper_dir';
51
+
52
  skyscraper_dir.type = 'hidden';
53
+
54
  skyscraper_dir.value = '".SOCIABLE_HTTP_PATH."';
55
+
56
  document.body.appendChild(skyscraper_dir); ";
57
+
58
 
59
+
60
  $widget_width = str_replace("px", "", $skyscraper_options["widget_width"]);
61
+
62
 
63
+
64
  $widget_position = "null";
65
+
66
  if (isset($skyscraper_options["widget_position"])){
67
+
68
  $widget_position = 1;
69
+
70
  }
71
+
72
 
73
+
74
  $labels_color = $skyscraper_options["labels_color"];
75
+
76
  $text_size = str_replace("px", "", $skyscraper_options["text_size"]);
77
+
78
  $background_color = $skyscraper_options["background_color"];
79
+
80
 
81
+
82
  $addWhere = "";
83
+
84
 
85
+
86
  if ($where == ""){
87
+
88
  $addWhere = "var div = document.createElement('div');
89
+
90
  div.id = 'skyscraper';
91
+
92
  document.body.appendChild(div);";
93
+
94
  }
95
+
96
 
97
+
98
  $url_site= $_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
99
+
100
 
101
+
102
+ $script = "
103
+
104
+
105
+
106
 
107
+ if (!document.getElementById('fb-root')){
108
+
109
  var div = document.createElement('div');
110
+
111
  div.id = 'fb-root';
112
+
113
  document.body.appendChild(div);
114
+
115
  }
116
+
117
  (function(d, s, id) {
118
+
119
  var js, fjs = d.getElementsByTagName(s)[0];
120
+
121
  if (d.getElementById(id)) return;
122
+
123
  js = d.createElement(s); js.id = id;
124
+
125
  js.src = \"http://connect.facebook.net/en_US/all.js#xfbml=1\";
126
+
127
  fjs.parentNode.insertBefore(js, fjs);
128
+
129
  }(document, 'script', 'facebook-jssdk'));
130
+
131
+
132
+
 
 
 
133
 
 
 
 
 
 
 
 
134
  ".$addWhere."
135
+
136
+ jQuery(document).ready(function(){
137
+
138
  oPlugin.toolbarStart('skyscraper', ".$widget_position.",230,".$widget_width.",'".$background_color."','".$labels_color."',false,'#6A6A6A',".$text_size.",'#587cc8');
139
+
140
  ".get_share_node()."
141
+
142
  ".get_counters_node()."
143
+
144
+ ".get_social_banner_node()."
145
+
146
+ ".get_latest_node()."
147
+
148
+ ".get_mentions_node()."
149
+
150
  ".get_follow_us_node()."
151
+
152
  ".get_rss_node()."
153
+
154
+ oPlugin.CreateGoToTop('New_Id_12','Top','<img src=\"".SOCIABLE_HTTP_PATH."images/toolbar/gototop.png\" style=\"width:30px;\" />');
155
+
156
+ oPlugin.CreateGoToHome('New_Id_13','Go Home','<img src=\"".SOCIABLE_HTTP_PATH."images/toolbar/gotohome.png\" style=\"width:30px;\" />');
157
+
 
158
  });
159
+
160
+ ";
161
+
162
+ echo $script;
163
+ }
164
+
165
+ }
166
+
167
+ function get_social_banner_node(){
168
 
169
 
170
+ global $skyscraper_options;
171
+
172
+ global $title_shared;
173
+
174
+ global $url_shares;
175
 
176
+ $social_banner_node = "";
177
 
178
+
179
+ if(!empty($skyscraper_options["sociable_banner"])){
180
+
181
+ $follow_us = sc_follow_links(1);
182
+
183
+ $follow_buttons = $follow_us["follow_buttons"];
184
+
185
+ $follow_us_count = $follow_us["count"];
186
+
187
+ $width_banner = 200;
188
+
189
+ $social_banner_node = " var url = '". addslashes(trim($url_shares))."';
190
+ var title = '".addslashes(trim($title_shared)) ."';
191
+ var counter = '<ul class=\"boxBanner_ul\">';
192
+ counter += ' <li>';
193
+ counter += ' <div class=\"fb-like\" data-send=\"false\" data-layout=\"box_count\" data-width=\"50\" data-href=\"'+url+'\" data-show-faces=\"false\"></div>';
194
+
195
+ counter += ' </li>';
196
+ counter += ' <li>';
197
+ counter += ' <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+'&amp;size=tall&amp;count=true&amp;hl=en-US&amp;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&amp;parent='+url+'&amp;rpctoken=615138222&amp;_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>';
198
+ counter += ' </li>';
199
+ counter += ' <li>';
200
+ counter += '<iframe scrolling=\"no\" frameborder=\"0\" allowtransparency=\"true\" src=\"http://platform.twitter.com/widgets/tweet_button.1326407570.html#_=1328815234500&amp;_version=2&amp;count=vertical&amp;enableNewSizing=false&amp;id=twitter-widget-0&amp;lang=en&amp;original_referer=+url+&amp;&amp;size=m&amp;text='+title+' <sociable> blogplay.com&amp;url='+url+'&amp;via=sociablesite\" class=\"twitter-share-button twitter-count-vertical\" style=\"width: 55px; height: 62px;\" title=\"Twitter Tweet Button\"></iframe>';
201
+ counter += ' </li>';
202
+ counter += '</ul>';";
203
+
204
+ if ($follow_us_count > 0){
205
+
206
+ $social_banner_node .= "
207
+ counter += '<ul class=\"boxBanner_ul_margin\">';
208
+ counter += '<li>';
209
+ counter += '</li>';
210
+ counter += '</ul>';";
211
+
212
+ $social_banner_node .= " counter += '".$follow_buttons."'; ";
213
+
214
+ if ($follow_us_count > 1){
215
+
216
+ $width_banner = $width_banner + (70 * $follow_us_count);
217
+ }
218
+ else{
219
+ $width_banner = $width_banner + (90 * $follow_us_count);
220
+ }
221
+
222
+
223
+ }
224
+
225
+ $label_text = trim($skyscraper_options["sociable_banner_text"]);
226
+
227
+ if (strlen($label_text) > 35){
228
+ // $label_text = substr($label_text,0,35);
229
+ }
230
+ $label_text = addslashes($label_text);
231
+
232
+ $social_banner_node .= "oPlugin.CreateNode('New_Id_14','".$label_text."', '', counter,'banner',80,".$width_banner.");";
233
+ $timer = ($skyscraper_options["sociable_banner_timer"] * 1000);
234
+
235
+ $colorBack = $skyscraper_options["sociable_banner_colorBack"];
236
+ $colorFont = $skyscraper_options["sociable_banner_colorFont"];
237
+ $colorLabel = $skyscraper_options["sociable_banner_colorLabel"];
238
+ $fontSize = $skyscraper_options["sociable_banner_fontSize"];
239
+
240
+ $social_banner_node .="setTimeout('showBanner(".$timer.",\"".$colorBack."\", \"".$colorLabel."\", \"".$colorFont."\", \"".$fontSize."\")', ".$timer.");";
241
+
242
+ }
243
+
244
+ return $social_banner_node;
245
  }
246
+
247
  function get_rss_node(){
248
+
249
  $rss_node = "";
250
+
251
  $latest_posts = "";
252
+
253
  global $skyscraper_options;
254
+
255
 
256
+
257
  $version = phpversion();
258
+
259
 
260
+
261
  if ( substr($version,0,1) == 5 && isset($skyscraper_options["rss_feed"]) && $skyscraper_options["rss_feed"]!="http://"){
262
+
263
 
264
+
265
  include("rss_php.php");
266
+
267
 
268
+
269
  $rss = new rss_php;
270
+
271
  $rss->load($skyscraper_options["rss_feed"]);
272
+
273
  $items = $rss->getItems();
274
+
275
 
276
+
277
  if (!empty($skyscraper_options["rss_feed"])){
278
+
279
 
280
+
281
  if (count($items) > 0){
282
+
283
 
284
+
285
  $cant = 0;
286
+
287
  foreach($items as $item){
288
+
289
 
290
+
291
  if ($cant <= $skyscraper_options["num_rss"]){
292
+
293
 
294
+
295
  $title="";
296
+
297
  if (isset($item["title"])){
298
+
299
  $title = addslashes($item["title"]);
300
+
301
  }
302
+
303
  $description="";
304
+
305
  if (isset($item["description"])){
306
+
307
  $description = addslashes($item["description"]);
308
+
309
  }
310
+
311
  $guid="";
312
+
313
  if (isset($item["link"])){
314
+
315
  $guid = addslashes($item["link"]);
316
+
317
  }
318
+
319
  $pubDate="";
320
+
321
  if (isset($item["pubDate"])){
322
+
323
  $pubDate = ago(strtotime($item["pubDate"]));
324
+
325
  }
326
+
327
 
328
+
329
  $latest_posts .= "['".$title."','','".$description."','".$guid."','".$pubDate."'],";
330
+
331
  }
332
+
333
  else{
334
+
335
  break;
336
+
337
  }
338
+
339
  $cant++;
340
+
341
  }
342
+
343
  $latest_posts = trim($latest_posts, ",");
344
+
345
  }
346
+
347
  }
348
+
349
  }
350
+
351
 
352
+
353
  if ($latest_posts != ""){
354
+
355
 
356
+
357
  $rss_node = "var LatestBlogPostContent = [
358
+
359
  ".$latest_posts."
360
+
361
  ];
362
+
363
  oPlugin.CreateNode('New_Id_5','Posts','',LatestBlogPostContent,'Notice',220,460);";
364
+
365
  }
366
+
367
  return $rss_node;
368
+
369
  }
370
+
371
  function get_latest_node(){
372
+
373
  $latest_node = "";
374
+
375
  global $skyscraper_options;
376
+
377
 
378
+
379
  if ( isset($skyscraper_options["twitter_username"])){
380
+
381
 
382
+
383
  $latest_tweets = get_option_tweets("skyscraper_latest");
384
+
385
  if ($skyscraper_options["twitter_username"] != ""){
386
+
387
 
388
+
389
  if ($latest_tweets != ""){
390
+
391
 
392
+
393
+ $latest_node = "
394
+
395
+ var LastestTwittsContent = [
396
+
397
  ".$latest_tweets."
398
+
399
  ];
400
+
401
 
402
+
403
  oPlugin.CreateNode('New_Id_3','Latest','',LastestTwittsContent,'Notice',220,460);";
404
+
405
  }
406
+
407
  }
408
+
409
  }
410
+
411
  return $latest_node;
412
+
413
  }
414
+
415
  function get_mentions_node(){
416
+
417
  $mentions_node = "";
418
+
419
 
420
+
421
  global $skyscraper_options;
422
+
423
 
424
+
425
  if ( isset($skyscraper_options["twitter_username"])){
426
+
427
 
428
+
429
  $mentions_tweets = get_option_tweets("skyscraper_mentions");
430
+
431
  if ($skyscraper_options["twitter_username"] != ""){
432
+
433
 
434
+
435
  if ($mentions_tweets != "" ){
436
+
437
 
438
+
439
  $mentions_node = "var TweetsMentionsContent = [
440
+
441
  ".$mentions_tweets."
442
+
443
  ];
444
+
445
  oPlugin.CreateNode('New_Id_4','Mentions','',TweetsMentionsContent,'Notice',220,460);";
446
+
447
  }
448
+
449
  }
450
+
451
  }
452
+
453
  return $mentions_node;
454
+
455
  }
456
+
457
  function get_counters_node(){
458
+
459
 
460
+
461
  global $skyscraper_options;
462
+
463
  global $title_shared;
464
+
465
+ global $url_shares;
466
+
467
  $counters_node = "";
468
+
469
+
 
 
 
470
  if ((!empty($skyscraper_options["counters"]["check"]))){
471
+
472
 
473
+
474
  $counters_node = " var url = '". addslashes(trim($url_shares))."';
475
+
476
+ var title = '".addslashes(trim($title_shared)) ."'; ";
477
+
478
+ $counters_node .= "
479
+ var counter = '<ul class= \"boxCounters_ul\">';
480
+
481
+ counter += '<li style=\"margin-left:2px\"><fb:like send=\"false\" layout=\"box_count\" show_faces=\"false\" font=\"\"></fb:like></li>';
482
+
483
+ 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+'&amp;size=tall&amp;count=true&amp;hl=en-US&amp;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&amp;parent='+url+'&amp;rpctoken=615138222&amp;_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>';
484
+
485
+ counter += '<li style=\"margin-left:-2px\"><iframe scrolling=\"no\" frameborder=\"0\" allowtransparency=\"true\" src=\"http://platform.twitter.com/widgets/tweet_button.1326407570.html#_=1328815234500&amp;_version=2&amp;count=vertical&amp;enableNewSizing=false&amp;id=twitter-widget-0&amp;lang=en&amp;original_referer=+url+&amp;size=m&amp;text='+title+' (sociable) blogplay.com&amp;url='+url+'&amp;via=sociablesite\" class=\"twitter-share-button twitter-count-vertical\" style=\"width: 55px; height: 62px;\" title=\"Twitter Tweet Button\"></iframe></li>';
486
+
487
+ counter += '</ul>';";
 
 
488
  }
489
+
490
+
491
+
492
+ $counters_node .= "oPlugin.CreateSimpleNode('New_Id_2','Counters<br/>', counter ,".$skyscraper_options["counters"]["folded"].");
493
+ ";
494
+
495
  return $counters_node;
496
+
497
  }
498
+
499
  function get_share_node(){
500
+
501
 
502
+
503
  global $skyscraper_options;
504
+
505
 
506
+
507
  $share_node = "";
508
+
509
 
510
+
511
  if (!empty($skyscraper_options["share"]["check"])){
512
+
513
  $share_buttons = share_links();
514
+
515
  $share_node = "oPlugin.CreateSimpleNode('New_Id_1','Share', '".$share_buttons."',".$skyscraper_options["share"]["folded"].");";
516
+
517
  }
518
+
519
 
520
+
521
  return $share_node;
522
+
523
  }
524
+
525
  function get_follow_us_node(){
526
+
527
  $follow_us_node = "";
528
+
529
  global $skyscraper_options;
530
+
531
 
532
+
533
  if (isset($skyscraper_options["follow_us"])){
534
+
535
 
536
+
537
  $follow_info = empty_accounts();
538
+
539
 
540
+
541
  if ( $follow_info["active"] > 0 && ($follow_info["empty"] < $follow_info["active"])){
542
+
543
+ $follow_buttons = sc_follow_links();
544
+
545
+ $follow_us_node = "oPlugin.CreateNode('New_Id_6','Follow', '', '".$follow_buttons["follow_buttons"]."','Plano',40,140)";
546
 
 
547
  }
548
+
549
  }
550
+
551
  return $follow_us_node;
552
+
553
  }
554
+
555
  function empty_accounts(){
556
+
557
  $empty = 0;
558
+
559
  $active = 0;
560
+
561
  global $skyscraper_options;
562
+
563
 
564
+
565
  foreach($skyscraper_options["follow_us"] as $follow_us){
566
+
567
 
568
+
569
  if (empty($follow_us["account"])){
570
+
571
  $empty++;
572
+
573
  }
574
+
575
 
576
+
577
  if (isset($follow_us["active"])){
578
+
579
  $active++;
580
+
581
  }
582
+
583
  }
584
+
585
 
586
+
587
  return array("empty" =>$empty, "active"=>$active);
588
+
589
  }
590
+
591
+ function sc_follow_links($banner = 0){
592
+
593
  global $skyscraper_options;
594
+
595
+ $follow_buttons = "<ul class=\'boxBanner_ul\'>";
596
+ $count_follow = 0;
597
 
598
+ foreach($skyscraper_options["follow_us"] as $follow_us){
599
+
 
 
600
  $follow_us["account"]= trim($follow_us["account"]);
601
+
602
  if (!empty($follow_us["active"]) && !empty($follow_us["account"]) ){
603
+
604
  $follow_us["account"] = str_replace("http://", "", $follow_us["account"]);
605
+
606
  $follow_us["account"] = "http://".$follow_us["account"];
607
+
608
+ if ($banner==1){
609
+
610
+ $follow_us["logo"] = "48".$follow_us["logo"];
611
+ }
612
+
613
+ $follow_buttons .= "<li><a target=\'_blank\' rel=\'nofollow\' href=\'".$follow_us["account"]."\'><img src=\'".SOCIABLE_HTTP_PATH."images/toolbar/".$follow_us["logo"]."\' /></a></li>";
614
 
615
+ $count_follow++;
616
  }
617
+
618
  }
619
 
620
+ $follow_buttons .= "</ul>";
621
+
622
+ $return = array();
623
+ $return["count"] = $count_follow;
624
+ $return["follow_buttons"] = $follow_buttons;
625
+
626
+ return $return;
627
  }
628
+
629
  function share_links(){
630
+
631
 
632
+
633
  $url = addslashes(get_bloginfo('wpurl'));
634
+
635
  $blogname = addslashes(get_bloginfo('name'));
636
+
637
  global $title_shared;
638
+
639
  global $url_shares;
640
 
641
+
642
  $page = trim(addslashes($url_shares));
643
+
644
+ $permalink = trim(addslashes($url_shares));
645
+
646
  $title = trim(addslashes($title_shared));
647
+
648
 
649
+
650
  $share_links = array();
651
+
652
  $share_links = array(
653
+
654
+
655
  "twitter" => array('favicon' => 't.png',
656
+
657
+ 'url' => 'http://twitter.com/intent/tweet?text='.urlencode($title).' - '.urlencode($url).' '.urlencode("{sociable}").' blogplay.com&via=sociablesite',
658
+
659
  'title' => "Share on Twitter"),
660
+
661
 
662
+
663
  "facebook" => array('favicon' => 'f.png',
664
+
665
  'url' => 'http://www.facebook.com/share.php?u='.$permalink.'&amp;t='.$title.'',
666
+
667
  'title' => "Share on Facebook"),
668
+
669
 
670
+
671
  "google" => array('favicon' => 'g.png',
672
+
673
  'url' => 'https://mail.google.com/mail/?view=cm&fs=1&to&su='.$title.'&body='.$permalink.'&ui=2&tf=1&shva=1',
674
+
675
  'title' => "Share on Gmail"),
676
+
677
 
678
+
679
+ "inbound" => array('favicon' => 'inbound.png',
680
+
681
+ 'url' => 'http://inbound.org/?url='.$permalink.'&title='.$title.'',
682
+
683
+ 'title' => "Share on inbound.org"),
684
+
685
 
686
+
687
  "stumble" => array('favicon' => 's.png',
688
+
689
  'url' => 'http://www.stumbleupon.com/submit?url='.$permalink.'&title='.$title.'',
690
+
691
  'title' => "Share on StumpleUpon"),
692
+
693
 
694
+
695
  "delicious" => array('favicon' => 'o.png',
696
+
697
  'url' => 'http://delicious.com/post?url='.$permalink.'&amp;title='.$title.'&amp;notes=EXCERPT',
698
+
699
  "title" => "Share on delicious"),
700
+
701
 
702
+
703
  "reader" => array('favicon' => 'n.png',
704
+
705
  'url' => 'http://www.google.com/reader/link?url='.$permalink.'&amp;title='.$title.'&amp;srcURL='.$permalink.'&amp;srcTitle='.$blogname.'',
706
+
707
  "title" => "Share on Google Reader"),
708
+
709
 
710
+
711
  "linkedin" => array('favicon' => 'i.png',
712
+
713
  'url' => 'http://www.linkedin.com/shareArticle?mini=true&amp;url='.$permalink.'&amp;title='.$title.'&amp;source='.$blogname.'&amp;summary=EXCERPT',
714
+
715
  "title" => "Share on LinkedIn")
716
+
717
 
718
+
719
  );
720
+
721
 
722
+
723
  $share_buttons = "";
724
+
725
 
726
+
727
  foreach($share_links as $link){
728
+
729
 
730
+
731
  $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>";
732
+
733
  }
734
+
735
 
736
+
737
  return $share_buttons;
738
+
739
  }
740
+
741
  /*
742
+
743
  * Template Tag To Echo The Sociable 2 HTML
744
+
745
  */
746
+
747
  function do_skyscraper(){
748
+
749
  echo skyscraper_html();
750
+
751
  }
752
+
753
  /*
754
+
755
  * Sociable 2 Shortcode
756
+
757
  */
758
+
759
  function skyscraper_shortcode(){
760
+
761
  return skyscraper_html();
762
+
763
  }
764
+
765
  function auto_skyscraper($content, $admin = false){
766
+
767
  global $skyscraper_options;
768
+
769
+
770
  if ($admin){
771
+
772
  $content = skyscraper_html();
773
+
774
  return $content;
775
+
776
  }
777
+
778
 
779
+
780
  if( ! isset( $skyscraper_options['active'] )){
781
+
782
  $content = "";
783
+
784
  return $content;
785
+
786
  }
787
+
788
+ echo "<pre>";
789
+ print_r ($skyscraper_options["locations"]);
790
+ echo "</pre>";
791
 
792
+
793
+
794
  if( ! isset( $skyscraper_options['locations'] ) || ! is_array( $skyscraper_options['locations'] ) || empty( $skyscraper_options['locations'] ) ){
795
+
796
 
797
+
798
  $content = "";
799
+
800
  } else {
801
+
802
 
803
+
804
  $locations = $skyscraper_options['locations'];
805
+
806
  }
807
+
808
  /*
809
+
810
  * Determine if we are supposed to be displaying the output here.
811
+
812
  */
813
+
814
  $display = false;
815
+
816
 
817
+
818
  /*
819
+
820
  * is_single is a unique case it still returning true
821
+
822
  */
823
+
824
 
825
+
826
  //If We Can Verify That We are in the correct loaction, simply add something to the $display array, and test for a true result to continue.
827
+
828
  foreach( $locations as $location => $val ){
829
+
830
 
831
+
832
  //First We Handle is_single() so it returning true on Single Post Type Pages is not an issue, this is not the intended functionality of this plugin
833
+
834
  if( $location == 'is_single' ){
835
+
836
  //If we are not in a post, lets ignore this one for now
837
 
838
+
839
+
840
  if( is_single() && get_post_type() == 'post' ){
841
+
842
  $display = true;
843
+
844
  break;
845
+
846
  } else {
847
+
848
  continue; // So not to trigger is_single later in this loop, but still be allowed to handle others
849
+
850
  }
851
+
852
 
853
+
854
  } elseif( strpos( $location , 'is_single_posttype_' ) === 0 ){ //Now We Need To Check For The Variable Names, Taxonomy Archives, Post Type Archives and Single Custom Post Types.
855
+
856
 
857
+
858
  //Single Custom Post Type
859
+
860
  $post_type = str_replace( 'is_single_posttype_' , '' , $location );
861
+
862
  if( is_single() && get_post_type() == $post_type ){
863
+
864
  $display = true;
865
+
866
  break;
867
+
868
  }
869
+
870
 
871
+
872
  } elseif( strpos( $location , 'is_posttype_archive_' ) === 0 ){
873
+
874
 
875
+
876
  //Custom Post Type Archive
877
+
878
  $post_type = str_replace( 'is_posttype_archive_' , '' , $location );
879
+
880
  if( is_post_type_archive( $post_type ) ){
881
+
882
  $display = true;
883
+
884
  break;
885
+
886
  }
887
+
888
 
889
+
890
  } elseif( strpos( $location , 'is_taxonomy_archive_' ) === 0 ) {
891
+
892
 
893
+
894
  //Taxonomy Archive
895
+
896
  $taxonomy = str_replace( 'is_taxonomy_archive_' , '' , $location );
897
+
898
  if( is_tax( $taxonomy ) ){
899
+
900
  $display = true;
901
+
902
  break;
903
+
904
  }
905
+
906
 
907
+
908
  } elseif( function_exists( $location ) ) {
909
+
910
 
911
+
912
  //Standard conditional tag, these will return BOOL
913
+
914
  if( call_user_func( $location ) === true ){
915
+
916
  $display = true;
917
+
918
  break;
919
+
920
  }
921
+
922
 
923
+
924
  } else {
925
+
926
  continue;
927
+
928
  }
929
+
930
 
931
+
932
 
933
+
934
  }
935
+
936
 
937
+
938
  //If We have passed all the checks and are looking in the right place lets do this thang
939
+
940
  if( isset( $skyscraper_options['automatic_mode'] ) && $display === true ){
941
+
942
  if (isset($skyscraper_options["topandbottom"])){
943
+
944
  $content = skyscraper_html();
945
+
946
  }else{
947
+
948
  $content = skyscraper_html();
949
+
950
  }
951
+
952
  }
953
+
954
  else{
955
+
956
  $content = skyscraper_html();
957
+
958
  }
959
+
960
 
961
+
962
 
963
+
964
 
965
+
966
  return $content;
967
+
968
  }
969
+
970
  function get_tweets_username($username_complete){
971
+
972
 
973
+
974
  if (function_exists('curl_init')) {
975
+
976
 
977
+
978
  // last tweets
979
+
980
  $username = str_replace("@", "", $username_complete);
981
+
982
  $url = "https://api.twitter.com/1/statuses/user_timeline/".$username.".json";
983
+
984
  $latest = curl_call($url);
985
+
986
  $latest_row = parser_twitter_results($latest,0);
987
+
988
  update_option( "skyscraper_latest", $latest_row );
989
+
990
 
991
+
992
  // last mentions
993
+
994
  $url = "http://search.twitter.com/search.json?q=@".$username."&rpp=5&include_entities=true&result_type=mixed";
995
+
996
  $mentions = curl_call($url);
997
+
998
 
999
+
1000
  if (count($mentions["results"]) > 1){
1001
+
1002
 
1003
+
1004
  $mentions_row = parser_twitter_results($mentions["results"],1);
1005
+
1006
  update_option( "skyscraper_mentions", $mentions_row );
1007
+
1008
  }
1009
+
1010
  }
1011
+
1012
  }
1013
+
1014
  function ago($time){
1015
+
1016
  $periods = array("second", "minute", "hour", "day", "week", "month", "year", "decade");
1017
+
1018
  $lengths = array("60","60","24","7","4.35","12","10");
1019
+
1020
  $now = time();
1021
+
1022
  $difference = $now - $time;
1023
+
1024
  $tense = "ago";
1025
+
1026
  for($j = 0; $difference >= $lengths[$j] && $j < count($lengths)-1; $j++) {
1027
+
1028
  $difference /= $lengths[$j];
1029
+
1030
  }
1031
+
1032
  $difference = round($difference);
1033
+
1034
  if($difference != 1) {
1035
+
1036
  $periods[$j].= "s";
1037
+
1038
  }
1039
+
1040
  return $difference." ".$periods[$j]."ago";
1041
+
1042
  }
1043
+
1044
  function parser_twitter_results($results = array(), $mention){
1045
+
1046
 
1047
+
1048
  $options_latest = array();
1049
+
1050
  $options_latest = array("date" => date("YmdHis"));
1051
+
1052
  global $skyscraper_options;
1053
+
1054
  $i = 0;
1055
+
1056
 
1057
+
1058
  if (is_array($results)){
1059
+
1060
 
1061
+
1062
  foreach($results as $tweet){
1063
+
1064
 
1065
+
1066
  $options_latest[$i] = array();
1067
+
1068
  $options_latest[$i]["text"] = $tweet["text"];
1069
+
1070
  $options_latest[$i]["created_at"] = ago(strtotime($tweet["created_at"]));
1071
+
1072
 
1073
+
1074
  if ($mention){
1075
+
1076
  $options_latest[$i]["name"] = $tweet["from_user_name"];
1077
+
1078
  }
1079
+
1080
  else{
1081
+
1082
  $options_latest[$i]["name"] = $tweet["user"]["name"];
1083
+
1084
  }
1085
+
1086
 
1087
+
1088
  $i++;
1089
+
1090
  if ($i == $skyscraper_options["num_tweets"]){
1091
+
1092
  break;
1093
+
1094
  }
1095
+
1096
  }
1097
+
1098
  }
1099
+
1100
 
1101
+
1102
  return $options_latest;
1103
+
1104
  }
1105
+
1106
  function curl_call($url){
1107
+
1108
 
1109
+
1110
  $ch = curl_init();
1111
+
1112
  curl_setopt($ch, CURLOPT_URL, $url);
1113
+
1114
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
1115
+
1116
  curl_setopt($ch, CURLOPT_TIMEOUT, 3);
1117
+
1118
  curl_setopt($ch, CURLINFO_HEADER_OUT, true);
1119
+
1120
  $output = curl_exec($ch);
1121
+
1122
  $info = curl_getinfo($ch);
1123
+
1124
  curl_close($ch);
1125
+
1126
 
1127
+
1128
  if ($info["http_code"] == "200"){
1129
+
1130
 
1131
+
1132
  $return = json_decode($output,1);
1133
+
1134
  }
1135
+
1136
  else{
1137
+
1138
  $return = false;
1139
+
1140
  }
1141
+
1142
 
1143
+
1144
  return $return;
1145
+
1146
  }
1147
+
1148
  function get_option_tweets($option){
1149
+
1150
 
1151
+
1152
  global $skyscraper_options;
1153
+
1154
  $skyscraper_latest = get_option($option);
1155
+
1156
 
1157
+
1158
  if (empty($skyscraper_latest)){
1159
+
1160
 
1161
+
1162
  get_tweets_username($skyscraper_options["twitter_username"]);
1163
+
1164
  $skyscraper_latest = get_option($option);
1165
+
1166
  }
1167
+
1168
  else{
1169
+
1170
 
1171
+
1172
  // 5 minutes
1173
+
1174
  if (diff_date($skyscraper_latest["date"], date("YmdHis")) > 5){
1175
+
1176
 
1177
+
1178
  get_tweets_username($skyscraper_options["twitter_username"]);
1179
+
1180
  $skyscraper_latest = get_option($option);
1181
+
1182
  }
1183
+
1184
  }
1185
+
1186
 
1187
+
1188
 
1189
+
1190
  return generate_tweets_box_content($skyscraper_latest);
1191
+
1192
  }
1193
+
1194
  function generate_tweets_box_content($tweets){
1195
+
1196
  $content = "";
1197
+
1198
  if (isset($tweets["date"])){
1199
+
1200
  unset($tweets["date"]);
1201
+
1202
  }
1203
+
1204
 
1205
+
1206
 
1207
+
1208
  foreach($tweets as $tweet){
1209
+
1210
 
1211
+
1212
  $tweet["name"] = addslashes($tweet["name"]);
1213
+
1214
  $tweet["text"] = addslashes($tweet["text"]);
1215
+
1216
 
1217
+
1218
  $content .= "['".$tweet["name"]."','".$tweet["name"]."','".$tweet["text"]."','','".$tweet["created_at"]."'],";
1219
+
1220
  }
1221
+
1222
  $content = trim(trim(trim($content), ","));
1223
+
1224
 
1225
+
1226
  return $content;
1227
+
1228
  }
1229
+
1230
  if (!empty($_GET["sky"])){
1231
+
1232
  add_action('wp_ajax_my_action', 'my_action_callback');
1233
+
1234
  function my_action_callback() {
1235
+
1236
  global $wpdb; global $skyscraper_options; // this is how you get access to the database
1237
+
1238
  $whatever = intval( $_POST['whatever'] );
1239
+
1240
  $whatever += 10;
1241
+
1242
  echo $whatever;
1243
+
1244
  die(); // this is required to return a proper result
1245
+
1246
  }
1247
+
1248
  }
1249
+
1250
  ?>
includes/sociable_output.php CHANGED
@@ -1,759 +1,1517 @@
1
  <?php
2
 
 
 
3
  /*
4
 
 
 
5
  * The Output And Shortcode Functions For sociable
6
 
 
 
7
  */
 
8
  /*
9
 
 
 
10
  * Returns The Sociable Output For The Global $post Object Do Not
11
 
 
 
12
  */
13
 
 
 
14
 
15
 
 
 
16
 
 
17
 
18
 
 
 
19
  function sociable_html( $display = array(),$location = "" ){
20
 
 
 
21
  global $sociable_options, $wp_query, $post;
22
 
 
 
23
  //ra( $sociable_options );
24
 
 
 
25
  $sociable_known_sites = get_option( 'sociable_known_sites' );
26
 
 
 
27
 
28
 
 
 
29
  if( ! $post ){
30
 
 
 
31
  $post = get_post( $post_id = 1 );
32
 
 
 
33
  }
34
 
 
 
35
 
36
 
 
 
37
  if ( get_post_meta($post->ID,'_sociableoff',true)) {
38
 
 
 
39
  return "";
40
 
 
 
41
  }
 
42
 
43
 
 
 
44
  $active_sites = $sociable_options['active_sites'];
 
45
  // Get The Image Path
46
 
 
 
47
  //$imagepath = _get_sociable_image_path();
 
48
  // if no sites are specified, display all active
49
 
 
 
50
  // have to check $active_sites has content because WP
51
 
 
 
52
  // won't save an empty array as an option
53
 
 
 
54
  if ( empty($display) && isset( $active_sites ) )
55
 
 
 
56
  $display = $active_sites;
57
 
 
 
58
  // if no sites are active, display nothing
59
 
 
 
60
  if ( empty($display) )
61
 
 
 
62
  return "";
 
63
  // Load the post's and blog's data
64
 
 
 
65
  $blogname = urlencode(get_bloginfo('name')." ".get_bloginfo('description'));
66
 
 
 
67
  $blogrss = get_bloginfo('rss2_url');
68
 
 
 
69
 
70
 
 
 
71
  // Grab the excerpt, if there is no excerpt, create one
72
 
 
 
73
  $excerpt = urlencode(strip_tags(strip_shortcodes($post->post_excerpt)));
74
 
 
 
75
  if ($excerpt == "") {
76
 
 
 
77
  $excerpt = urlencode(substr(strip_tags(strip_shortcodes($post->post_content)),0,250));
78
 
 
 
79
  }
80
 
 
 
81
 
82
 
 
 
83
  // Clean the excerpt for use with links
84
 
 
 
85
  $excerpt = str_replace('+','%20',$excerpt);
86
 
 
 
87
  $permalink = urlencode(get_permalink($post->ID));
88
 
 
 
89
 
90
 
 
 
91
  $permalinkCOUNT = get_permalink($post->ID);
92
 
 
 
93
  $title = str_replace('+','%20',urlencode($post->post_title));
94
 
 
 
95
  $titleCOUNT = $post->post_title;
96
 
 
 
97
 
98
 
 
 
99
  $rss = urlencode(get_bloginfo('ref_url'));
 
100
  // Start preparing the output
101
 
 
 
102
  $html = '<!-- Start Sociable --><div class="sociable">';
103
 
 
 
104
 
105
 
 
 
106
  // If a tagline is set, display it above the links list
107
 
 
 
108
  $tagline = isset( $sociable_options['tagline'] ) ? $sociable_options['tagline'] : '' ;
109
 
 
 
110
  if ($tagline != '') {
111
 
 
 
112
  $html .= '<div class="sociable_tagline">';
113
 
 
 
114
  if (isset( $sociable_options['help_grow'] )) {
115
 
 
 
116
  $addSize = "";
117
 
 
 
118
  if ($sociable_options['icon_size'] ==16) $addSize = "font-size:11px;";
119
 
 
 
120
  $html .= "<a class='sociable_tagline' target='_blank' href='http://blogplay.com' style='".$addSize."color:#333333;text-decoration:none'>".$tagline."</a>";
121
 
 
 
122
  }else{
123
 
 
 
124
  $html .= $tagline;
125
 
 
 
126
  }
127
 
 
 
128
  $html .= "</div>";
129
 
 
 
130
  }
131
 
 
 
132
 
133
 
 
 
134
  /**
135
 
 
 
136
  * Start the list of links
137
 
 
 
138
  */
139
 
 
 
140
  $html .= "<ul class='clearfix'>";
 
141
  $i = 0;
142
 
 
 
143
  $totalsites = count($display);
144
 
 
 
145
  $margin = "0px";
146
 
 
 
147
  switch ($sociable_options['icon_size']){
148
 
 
 
149
 
150
 
 
 
151
  case "16": $margin = "padding-top: 0;margin-top:-2px";
152
 
 
 
153
  break;
154
 
 
 
155
  case "32": $margin = "margin-top:9px";
156
 
 
 
157
  break;
158
 
 
 
159
  case "48": $margin = "margin-top:24px";
160
 
 
 
161
  break;
162
 
 
 
163
  case "64": $margin = "margin-top:38px";
164
 
 
 
165
  break;
166
 
 
 
167
  }
168
 
 
 
169
 
170
 
 
 
171
  // print_r($display);
172
 
 
 
173
 
174
 
 
 
175
  if (isset($display["More"])){
176
 
 
 
177
  unset($display["More"]);
178
 
 
 
179
  array_push($display,"More");
180
 
 
 
181
  $display["More"] = "On";
182
 
 
 
183
  }
184
 
 
 
185
  //print_r($display);
186
 
 
 
187
  foreach($display as $sitename => $val ) {
188
 
 
 
189
 
190
 
 
 
191
  if ( ! array_key_exists($sitename, $active_sites) || isset($sociable_known_sites[$sitename]["counter"]))
192
 
 
 
193
  continue;
194
 
 
 
195
 
196
 
 
 
197
  $site = $sociable_known_sites[$sitename];
198
 
 
 
199
  $url = ( isset( $site['script'] ) ) ? $site['script'] : $site['url'];
200
 
 
 
201
  $url = str_replace('TITLECOUNT', $titleCOUNT, $url);
202
 
 
 
203
  $url = str_replace('TITLE', $title, $url);
204
 
 
 
205
  $url = str_replace('RSS', $rss, $url);
206
 
 
 
207
  $url = str_replace('BLOGNAME', $blogname, $url);
208
 
 
 
209
  $url = str_replace('EXCERPT', $excerpt, $url);
210
 
 
 
211
  $url = str_replace('FEEDLINK', $blogrss, $url);
212
 
 
 
213
  $url = str_replace('PERMALINKCOUNT', $permalinkCOUNT, $url);
214
 
 
 
215
 
216
 
 
 
217
  $url = str_replace('PERMALINK', $permalink, $url);
218
 
 
 
219
 
220
 
 
 
221
 
222
 
 
 
223
 
224
 
 
 
225
  if (isset($site['description']) && $site['description'] != "") {
226
 
 
 
227
  $description = $site['description'];
228
 
 
 
229
  } else {
230
 
 
 
231
  $description = $sitename;
232
 
 
 
233
  }
234
 
 
 
235
 
236
 
 
 
237
  $link = '<li>';
238
 
 
 
239
  if (!empty($sociable_options["custom_icons"])){
240
 
 
 
241
  $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description );
242
 
 
 
243
  }else{
244
 
 
 
245
  if ($description != "More"){
246
 
 
 
247
  $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description );
248
 
 
 
249
  }else{
250
 
 
 
251
  $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : "<img style='".$margin."' src='".SOCIABLE_HTTP_PATH."images/more.png'>";
252
 
 
 
253
  }
254
 
 
 
255
  }
256
 
257
- $posX = $site["spriteCoordinates"][$sociable_options['icon_size']]["0"];
258
 
259
- $posY = $site["spriteCoordinates"][$sociable_options['icon_size']]["1"];
 
 
 
 
 
 
 
260
 
261
  $backgroundFile = $sociable_options['icon_option']."_".$sociable_options['icon_size'].".png";
262
 
 
 
263
  $style = "background-position:".$posX." ".$posY;
264
 
 
 
265
  $href = $url;
266
 
 
 
267
  $target = isset( $sociable_options['new_window'] ) ? 'target="_blank"' : '' ;
268
 
 
 
269
  if ($sitename == "Add to favorites" || $sitename=="More"){
270
 
 
 
271
  if ($sitename == "More"){
272
 
 
 
273
  $link .= '<a style="cursor:pointer" rel="nofollow" onMouseOut="fixOnMouseOut(document.getElementById(\'sociable-post'.$location.'-'.$post->ID.'\'), event, \'post'.$location.'-'.$post->ID.'\')" onMouseOver="more(this,\'post'.$location.'-' . $post->ID . '\')">' . $linkitem . '</a></li>' ;
274
 
 
 
275
  }else{
276
 
 
 
277
  $link .= '<a class="'.$sociable_options['icon_option'].'_'.$sociable_options['icon_size'].'" style="cursor:pointer;'.$style.'" rel="nofollow" title="'.$sitename.' - doesn\'t work in Chrome" onClick="' . $href . '">' ."" . '</a></li>' ;
278
 
 
 
279
  }
280
 
 
 
281
  }else{
282
 
 
 
283
  if($sociable_options["icon_option"] == "option6" || !empty($sociable_options["custom_icons"])){
284
 
 
 
285
  $link .= '<a title="'.$sitename.'" style="'.$description.$sociable_options['icon_size'].'_'.str_replace("option","",$sociable_options['icon_option']).'" rel="nofollow" ' . $target . ' href="' . $href . '">' . $linkitem . '</a></li>' ;
286
 
 
 
287
  }else{
288
 
 
 
289
  if (count(split("Counter",$sitename))>1){
290
 
 
 
291
  $link.= $href;
292
 
 
 
293
  }else{
294
 
 
 
295
 
296
 
 
 
297
  $link .= '<a title="'.$sitename.'" class="'.$sociable_options['icon_option'].'_'.$sociable_options['icon_size'].'" style="'.$style.'" rel="nofollow" ' . $target . ' href="' . $href . '">' . "" . '</a></li>' ;
298
 
 
 
299
  }
300
 
 
 
301
  }
302
 
 
 
303
  }
304
 
 
 
305
 
306
 
 
 
307
  $html .= apply_filters( 'sociable_link' , $link );
308
 
 
 
309
 
310
 
 
 
311
  $i++;
312
 
 
 
313
  }
314
 
 
 
315
  //return $html;
316
 
 
 
317
 
318
 
 
 
319
  //if ($sociable_options['icon_option'] !="option6"){
320
 
 
 
321
  $inner = "<ul>";
322
 
 
 
323
  foreach ($sociable_known_sites as $sitename => $val){
324
 
 
 
325
  if (array_key_exists($sitename, $display) || isset($sociable_known_sites[$sitename]["counter"]) )
326
 
 
 
327
  continue;
328
 
 
 
329
  $site = $sociable_known_sites[$sitename];
330
 
 
 
331
  $url = ( isset( $site['script'] ) ) ? $site['script'] : $site['url'];
332
 
 
 
333
  $url = str_replace('TITLECOUNT', $titleCOUNT, $url);
334
 
 
 
335
 
336
 
 
 
337
  $url = str_replace('TITLE', $title, $url);
338
 
 
 
339
  $url = str_replace('RSS', $rss, $url);
340
 
 
 
341
  $url = str_replace('BLOGNAME', $blogname, $url);
342
 
 
 
343
  $url = str_replace('EXCERPT', $excerpt, $url);
344
 
 
 
345
  $url = str_replace('FEEDLINK', $blogrss, $url);
346
 
 
 
347
  $url = str_replace('PERMALINKCOUNT', $permalinkCOUNT, $url);
348
 
 
 
349
 
350
 
 
 
351
  $url = str_replace('PERMALINK', $permalink, $url);
352
 
 
 
353
 
354
 
 
 
355
 
356
 
 
 
357
  $link = '<li style="heigth:'.$sociable_options['icon_size'].'px;width:'.$sociable_options['icon_size'].'px">';
358
 
 
 
359
  if (!empty($sociable_options["custom_icons"])){
360
 
 
 
361
  $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description );
362
 
 
 
363
  }else{
364
 
 
 
365
 
366
 
 
 
367
  if (isset($description) && $description!= "More"){
368
 
 
 
369
  $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description );
370
 
 
 
371
  }else{
372
 
 
 
373
  $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : "<img style='".$margin."' src='".SOCIABLE_HTTP_PATH."images/more.png'>";
374
 
 
 
375
  }
376
 
 
 
377
  }
 
378
  $posX = $site["spriteCoordinates"][$sociable_options['icon_size']]["0"];
379
 
 
 
380
  $posY = $site["spriteCoordinates"][$sociable_options['icon_size']]["1"];
381
 
 
 
382
  $backgroundFile = $sociable_options['icon_option']."_".$sociable_options['icon_size'].".png";
383
 
 
 
384
  $style = "background-position:".$posX." ".$posY;
385
 
 
 
386
  $href = $url;
387
 
 
 
388
  $target = isset( $sociable_options['new_window'] ) ? 'target="_blank"' : '' ;
389
 
 
 
390
  if ($sitename == "Add to favorites" || $sitename=="More"){
391
 
 
 
392
  if ($sitename == "More"){
393
 
 
 
394
  $link .= '<a style="cursor:poainter" rel="nofollow" onMouseOver="more(this,\'post'.$location.'-' . $post->ID . '\')">' . $linkitem . '</a></li>' ;
395
 
 
 
396
  }else{
397
 
 
 
398
  $link .= '<a class="'.$sociable_options['icon_option'].'_'.$sociable_options['icon_size'].'" style="cursor:pointer;'.$style.'" rel="nofollow" title="'.$sitename.' - doesn\'t work in Chrome" onClick="' . $href . '">' ."" . '</a></li>' ;
399
 
 
 
400
  }
401
 
 
 
402
  }else{
403
 
 
 
404
  if($sociable_options["icon_option"] == "option6" || !empty($sociable_options["custom_icons"])){
405
 
 
 
406
  $link .= '<a title="'.$sitename.'" style="'.$description.$sociable_options['icon_size'].'_'.str_replace("option","",$sociable_options['icon_option']).'" rel="nofollow" ' . $target . ' href="' . $href . '">' . $linkitem . '</a></li>' ;
407
 
 
 
408
  }else{
409
 
 
 
410
  $link .= '<a title="'.$sitename.'" class="'.$sociable_options['icon_option'].'_'.$sociable_options['icon_size'].'" style="'.$style.'" rel="nofollow" ' . $target . ' href="' . $href . '">' . "" . '</a></li>' ;
411
 
 
 
412
  }
413
 
 
 
414
  }
415
 
 
 
416
 
417
 
 
 
418
  $inner .= apply_filters( 'sociable_link' , $link );
419
 
 
 
420
 
421
 
 
 
422
  $i++;
423
 
 
 
424
 
425
 
 
 
426
  }
427
 
 
 
428
 
429
 
 
 
430
  $inner .="</ul>";
431
 
 
 
432
  $html .='</ul><div onMouseout="fixOnMouseOut(this,event,\'post'.$location.'-'.$post->ID.'\')" id="sociable-post'.$location.'-'.$post->ID.'" style="display:none;">
433
 
 
 
434
  <div style="top: auto; left: auto; display: block;" id="sociable">
435
 
 
 
436
  <div class="popup">
437
 
 
 
438
  <div class="content">
439
 
 
 
440
  '.$inner.'
441
 
 
 
442
  </div>
443
 
 
 
444
  <a style="cursor:pointer" onclick="hide_sociable(\'post'.$location.'-'.$post->ID.'\',true)" class="close">
 
445
  <img onclick="hide_sociable(\'post'.$location.'-'.$post->ID.'\',true)" title="close" src="'.SOCIABLE_HTTP_PATH . 'images/closelabel.png">
446
 
 
 
447
  </a>
448
 
 
 
449
  </div>
450
 
 
 
451
  </div>
452
 
 
 
453
  </div>HereGoCounters</div><!-- End Sociable -->';
454
 
 
 
455
  //$margin =
456
 
 
 
457
  //$html .= "<li class='sociablelast' style='".$margin."'><img src='".SOCIABLE_HTTP_PATH."images/more.jpg'></li></ul><div class='soc_clear'></div></div>";
458
 
 
 
459
  //}
460
 
 
 
461
  //return "";
462
 
 
 
463
  $counters ="";
464
 
 
 
465
  /*if ($location == "bottom" && (is_single() || is_admin())){ */
466
 
 
 
467
 
468
 
 
 
469
 
470
 
 
 
471
  $counters = "</div><div class='sociable' style='float:none'><ul class='clearfix'>";
472
 
 
 
473
 
474
 
 
 
475
  foreach ($display as $sitename => $val){
476
 
 
 
477
  //echo $sitename."<br>";
478
 
 
 
479
  if (!array_key_exists($sitename, $display) || !isset($sociable_known_sites[$sitename]["counter"]) )
480
 
 
 
481
  continue;
482
 
 
 
483
 
484
 
 
 
485
  //echo $sitename."<br>";
486
 
 
 
487
  $link = '<li id="'.str_replace("+","p",str_replace(" ","_",$sitename)).'">';
488
 
 
 
489
 
490
 
 
 
491
  $site = $sociable_known_sites[$sitename];
492
 
 
 
493
  $url = ( isset( $site['script'] ) ) ? $site['script'] : $site['url'];
494
 
 
 
495
  $url = str_replace('TITLECOUNT', $titleCOUNT, $url);
496
 
 
 
497
 
498
 
 
 
499
  $url = str_replace('TITLE', $title, $url);
500
 
 
 
501
  $url = str_replace('RSS', $rss, $url);
502
 
 
 
503
  $url = str_replace('BLOGNAME', $blogname, $url);
504
 
 
 
505
  $url = str_replace('EXCERPT', $excerpt, $url);
506
 
 
 
507
  $url = str_replace('FEEDLINK', $blogrss, $url);
508
 
 
 
509
 
510
 
 
 
511
  $url = str_replace('PERMALINKCOUNT', $permalinkCOUNT, $url);
512
 
 
 
513
  $url = str_replace('PERMALINK', $permalink, $url);
514
 
 
 
515
 
516
 
 
 
517
 
518
 
 
 
519
  $link.= $url."</li>";
520
 
 
 
521
  $counters .= apply_filters( 'sociable_link' , $link );
522
 
 
 
523
  }
524
 
 
 
525
  $counters .="</ul>";
526
 
 
 
527
  $html = str_replace("HereGoCounters",$counters,$html);
528
 
 
 
529
 
530
 
 
 
531
  /*}else{
532
 
 
 
533
  $html = str_replace("HereGoCounters",$counters,$html);
534
 
 
 
535
  }*/
536
 
 
 
537
 
538
 
 
 
539
  return $html;
540
 
 
 
541
 
542
 
 
 
543
  }
 
544
  /*
545
 
 
 
546
  * Template Tag To Echo The Sociable 2 HTML
547
 
 
 
548
  */
549
 
 
 
550
  function do_sociable(){
551
 
 
 
552
  echo sociable_html();
553
 
 
 
554
  }
 
555
  /*
556
 
 
 
557
  * Hook For the_content to automatically output the sociable HTML If The Option To Disable Has Not Been Unchecked
558
 
 
 
559
  */
560
 
 
 
561
  function auto_sociable( $content ){
562
 
 
 
563
  global $sociable_options;
564
 
 
 
565
 
566
 
 
 
567
  if (!isset($sociable_options["active"])){
568
 
 
 
569
 
570
 
 
 
571
  return $content;
572
 
 
 
573
  }
574
 
 
 
575
 
576
 
 
 
577
  if( ! isset( $sociable_options['locations'] ) || ! is_array( $sociable_options['locations'] ) || empty( $sociable_options['locations'] ) ){
578
 
 
 
579
  return $content;
580
 
 
 
581
  } else {
582
 
 
 
583
  $locations = $sociable_options['locations'];
584
 
 
 
585
  }
586
 
 
 
587
 
588
 
 
 
589
  /*
590
 
 
 
591
  * Determine if we are supposed to be displaying the output here.
592
 
 
 
593
  */
594
 
 
 
595
  $display = false;
596
 
 
 
597
 
598
 
 
 
599
  /*
600
 
 
 
601
  * is_single is a unique case it still returning true
602
 
 
 
603
  */
604
 
 
 
605
 
606
 
 
 
607
  //If We Can Verify That We are in the correct loaction, simply add something to the $display array, and test for a true result to continue.
608
 
 
 
609
  foreach( $locations as $location => $val ){
610
 
 
 
611
 
612
 
 
 
613
  //First We Handle is_single() so it returning true on Single Post Type Pages is not an issue, this is not the intended functionality of this plugin
614
 
 
 
615
  if( $location == 'is_single' ){
616
 
 
 
617
  //If we are not in a post, lets ignore this one for now
618
 
 
 
619
  if( is_single() && get_post_type() == 'post' ){
620
 
 
 
621
  $display = true;
622
 
 
 
623
  break;
624
 
 
 
625
  } else {
626
 
 
 
627
  continue; // So not to trigger is_single later in this loop, but still be allowed to handle others
628
 
 
 
629
  }
630
 
 
 
631
 
632
 
 
 
633
  } elseif( strpos( $location , 'is_single_posttype_' ) === 0 ){ //Now We Need To Check For The Variable Names, Taxonomy Archives, Post Type Archives and Single Custom Post Types.
634
 
 
 
635
 
636
 
 
 
637
  //Single Custom Post Type
638
 
 
 
639
  $post_type = str_replace( 'is_single_posttype_' , '' , $location );
640
 
 
 
641
  if( is_single() && get_post_type() == $post_type ){
642
 
 
 
643
  $display = true;
644
 
 
 
645
  break;
646
 
 
 
647
  }
648
 
 
 
649
 
650
 
 
 
651
  } elseif( strpos( $location , 'is_posttype_archive_' ) === 0 ){
652
 
 
 
653
 
654
 
 
 
655
  //Custom Post Type Archive
656
 
 
 
657
  $post_type = str_replace( 'is_posttype_archive_' , '' , $location );
658
 
 
 
659
  if( is_post_type_archive( $post_type ) ){
660
 
 
 
661
  $display = true;
662
 
 
 
663
  break;
664
 
 
 
665
  }
666
 
 
 
667
 
668
 
 
 
669
  } elseif( strpos( $location , 'is_taxonomy_archive_' ) === 0 ) {
670
 
 
 
671
 
672
 
 
 
673
  //Taxonomy Archive
674
 
 
 
675
  $taxonomy = str_replace( 'is_taxonomy_archive_' , '' , $location );
676
 
 
 
677
  if( is_tax( $taxonomy ) ){
678
 
 
 
679
  $display = true;
680
 
 
 
681
  break;
682
 
 
 
683
  }
684
 
 
 
685
 
686
 
 
 
687
  } elseif( function_exists( $location ) ) {
688
 
 
 
689
 
690
 
 
 
691
  //Standard conditional tag, these will return BOOL
692
 
 
 
693
  if( call_user_func( $location ) === true ){
694
 
 
 
695
  $display = true;
696
 
 
 
697
  break;
698
 
 
 
699
  }
700
 
 
 
701
 
702
 
 
 
703
  } else {
704
 
 
 
705
  continue;
706
 
 
 
707
  }
708
 
 
 
709
 
710
 
 
 
711
 
712
 
 
 
713
  }
714
 
 
 
715
 
716
 
 
 
717
  //If We have passed all the checks and are looking in the right place lets do this thang
718
 
 
 
719
  if( isset( $sociable_options['automatic_mode'] ) && $display === true ){
720
 
 
 
721
  if (isset($sociable_options["topandbottom"])){
722
 
 
 
723
  $content = sociable_html(array(),"top").$content . sociable_html(array(),"bottom");
724
 
 
 
725
  }else{
726
 
 
 
727
  $content = "".$content . sociable_html(array());
728
 
 
 
729
  }
730
 
 
 
731
  }
732
 
 
 
733
 
734
 
 
 
735
 
736
 
 
 
737
  return $content;
738
 
 
 
739
  }
 
740
  /*
741
 
 
 
742
  * Sociable 2 Shortcode
743
 
 
 
744
  */
745
 
 
 
746
  function sociable_shortcode(){
747
 
 
 
748
  return sociable_html();
749
 
 
 
750
  }
751
 
 
 
752
  function add_googleplus() {
753
- echo'<script type="text/javascript" src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>';
 
 
 
754
 
755
  }
756
 
 
 
757
  //add_action('wp_head', 'add_googleplus' );
758
 
 
 
759
  ?>
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
  * Returns The Sociable Output For The Global $post Object Do Not
20
 
21
+
22
+
23
  */
24
 
25
+
26
+
27
 
28
 
29
+
30
+
31
 
32
+
33
 
34
 
35
+
36
+
37
  function sociable_html( $display = array(),$location = "" ){
38
 
39
+
40
+
41
  global $sociable_options, $wp_query, $post;
42
 
43
+
44
+
45
  //ra( $sociable_options );
46
 
47
+
48
+
49
  $sociable_known_sites = get_option( 'sociable_known_sites' );
50
 
51
+
52
+
53
 
54
 
55
+
56
+
57
  if( ! $post ){
58
 
59
+
60
+
61
  $post = get_post( $post_id = 1 );
62
 
63
+
64
+
65
  }
66
 
67
+
68
+
69
 
70
 
71
+
72
+
73
  if ( get_post_meta($post->ID,'_sociableoff',true)) {
74
 
75
+
76
+
77
  return "";
78
 
79
+
80
+
81
  }
82
+
83
 
84
 
85
+
86
+
87
  $active_sites = $sociable_options['active_sites'];
88
+
89
  // Get The Image Path
90
 
91
+
92
+
93
  //$imagepath = _get_sociable_image_path();
94
+
95
  // if no sites are specified, display all active
96
 
97
+
98
+
99
  // have to check $active_sites has content because WP
100
 
101
+
102
+
103
  // won't save an empty array as an option
104
 
105
+
106
+
107
  if ( empty($display) && isset( $active_sites ) )
108
 
109
+
110
+
111
  $display = $active_sites;
112
 
113
+
114
+
115
  // if no sites are active, display nothing
116
 
117
+
118
+
119
  if ( empty($display) )
120
 
121
+
122
+
123
  return "";
124
+
125
  // Load the post's and blog's data
126
 
127
+
128
+
129
  $blogname = urlencode(get_bloginfo('name')." ".get_bloginfo('description'));
130
 
131
+
132
+
133
  $blogrss = get_bloginfo('rss2_url');
134
 
135
+
136
+
137
 
138
 
139
+
140
+
141
  // Grab the excerpt, if there is no excerpt, create one
142
 
143
+
144
+
145
  $excerpt = urlencode(strip_tags(strip_shortcodes($post->post_excerpt)));
146
 
147
+
148
+
149
  if ($excerpt == "") {
150
 
151
+
152
+
153
  $excerpt = urlencode(substr(strip_tags(strip_shortcodes($post->post_content)),0,250));
154
 
155
+
156
+
157
  }
158
 
159
+
160
+
161
 
162
 
163
+
164
+
165
  // Clean the excerpt for use with links
166
 
167
+
168
+
169
  $excerpt = str_replace('+','%20',$excerpt);
170
 
171
+
172
+
173
  $permalink = urlencode(get_permalink($post->ID));
174
 
175
+
176
+
177
 
178
 
179
+
180
+
181
  $permalinkCOUNT = get_permalink($post->ID);
182
 
183
+
184
+
185
  $title = str_replace('+','%20',urlencode($post->post_title));
186
 
187
+
188
+
189
  $titleCOUNT = $post->post_title;
190
 
191
+
192
+
193
 
194
 
195
+
196
+
197
  $rss = urlencode(get_bloginfo('ref_url'));
198
+
199
  // Start preparing the output
200
 
201
+
202
+
203
  $html = '<!-- Start Sociable --><div class="sociable">';
204
 
205
+
206
+
207
 
208
 
209
+
210
+
211
  // If a tagline is set, display it above the links list
212
 
213
+
214
+
215
  $tagline = isset( $sociable_options['tagline'] ) ? $sociable_options['tagline'] : '' ;
216
 
217
+
218
+
219
  if ($tagline != '') {
220
 
221
+
222
+
223
  $html .= '<div class="sociable_tagline">';
224
 
225
+
226
+
227
  if (isset( $sociable_options['help_grow'] )) {
228
 
229
+
230
+
231
  $addSize = "";
232
 
233
+
234
+
235
  if ($sociable_options['icon_size'] ==16) $addSize = "font-size:11px;";
236
 
237
+
238
+
239
  $html .= "<a class='sociable_tagline' target='_blank' href='http://blogplay.com' style='".$addSize."color:#333333;text-decoration:none'>".$tagline."</a>";
240
 
241
+
242
+
243
  }else{
244
 
245
+
246
+
247
  $html .= $tagline;
248
 
249
+
250
+
251
  }
252
 
253
+
254
+
255
  $html .= "</div>";
256
 
257
+
258
+
259
  }
260
 
261
+
262
+
263
 
264
 
265
+
266
+
267
  /**
268
 
269
+
270
+
271
  * Start the list of links
272
 
273
+
274
+
275
  */
276
 
277
+
278
+
279
  $html .= "<ul class='clearfix'>";
280
+
281
  $i = 0;
282
 
283
+
284
+
285
  $totalsites = count($display);
286
 
287
+
288
+
289
  $margin = "0px";
290
 
291
+
292
+
293
  switch ($sociable_options['icon_size']){
294
 
295
+
296
+
297
 
298
 
299
+
300
+
301
  case "16": $margin = "padding-top: 0;margin-top:-2px";
302
 
303
+
304
+
305
  break;
306
 
307
+
308
+
309
  case "32": $margin = "margin-top:9px";
310
 
311
+
312
+
313
  break;
314
 
315
+
316
+
317
  case "48": $margin = "margin-top:24px";
318
 
319
+
320
+
321
  break;
322
 
323
+
324
+
325
  case "64": $margin = "margin-top:38px";
326
 
327
+
328
+
329
  break;
330
 
331
+
332
+
333
  }
334
 
335
+
336
+
337
 
338
 
339
+
340
+
341
  // print_r($display);
342
 
343
+
344
+
345
 
346
 
347
+
348
+
349
  if (isset($display["More"])){
350
 
351
+
352
+
353
  unset($display["More"]);
354
 
355
+
356
+
357
  array_push($display,"More");
358
 
359
+
360
+
361
  $display["More"] = "On";
362
 
363
+
364
+
365
  }
366
 
367
+
368
+
369
  //print_r($display);
370
 
371
+
372
+
373
  foreach($display as $sitename => $val ) {
374
 
375
+
376
+
377
 
378
 
379
+
380
+
381
  if ( ! array_key_exists($sitename, $active_sites) || isset($sociable_known_sites[$sitename]["counter"]))
382
 
383
+
384
+
385
  continue;
386
 
387
+
388
+
389
 
390
 
391
+
392
+
393
  $site = $sociable_known_sites[$sitename];
394
 
395
+
396
+
397
  $url = ( isset( $site['script'] ) ) ? $site['script'] : $site['url'];
398
 
399
+
400
+
401
  $url = str_replace('TITLECOUNT', $titleCOUNT, $url);
402
 
403
+
404
+
405
  $url = str_replace('TITLE', $title, $url);
406
 
407
+
408
+
409
  $url = str_replace('RSS', $rss, $url);
410
 
411
+
412
+
413
  $url = str_replace('BLOGNAME', $blogname, $url);
414
 
415
+
416
+
417
  $url = str_replace('EXCERPT', $excerpt, $url);
418
 
419
+
420
+
421
  $url = str_replace('FEEDLINK', $blogrss, $url);
422
 
423
+
424
+
425
  $url = str_replace('PERMALINKCOUNT', $permalinkCOUNT, $url);
426
 
427
+
428
+
429
 
430
 
431
+
432
+
433
  $url = str_replace('PERMALINK', $permalink, $url);
434
 
435
+
436
+
437
 
438
 
439
+
440
+
441
 
442
 
443
+
444
+
445
 
446
 
447
+
448
+
449
  if (isset($site['description']) && $site['description'] != "") {
450
 
451
+
452
+
453
  $description = $site['description'];
454
 
455
+
456
+
457
  } else {
458
 
459
+
460
+
461
  $description = $sitename;
462
 
463
+
464
+
465
  }
466
 
467
+
468
+
469
 
470
 
471
+
472
+
473
  $link = '<li>';
474
 
475
+
476
+
477
  if (!empty($sociable_options["custom_icons"])){
478
 
479
+
480
+
481
  $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description );
482
 
483
+
484
+
485
  }else{
486
 
487
+
488
+
489
  if ($description != "More"){
490
 
491
+
492
+
493
  $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description );
494
 
495
+
496
+
497
  }else{
498
 
499
+
500
+
501
  $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : "<img style='".$margin."' src='".SOCIABLE_HTTP_PATH."images/more.png'>";
502
 
503
+
504
+
505
  }
506
 
507
+
508
+
509
  }
510
 
 
511
 
512
+
513
+ $posX = $site["spriteCoordinates"][$sociable_options['icon_size']]["0"];
514
+
515
+
516
+
517
+ $posY = $site["spriteCoordinates"][$sociable_options['icon_size']]["1"];
518
+
519
+
520
 
521
  $backgroundFile = $sociable_options['icon_option']."_".$sociable_options['icon_size'].".png";
522
 
523
+
524
+
525
  $style = "background-position:".$posX." ".$posY;
526
 
527
+
528
+
529
  $href = $url;
530
 
531
+
532
+
533
  $target = isset( $sociable_options['new_window'] ) ? 'target="_blank"' : '' ;
534
 
535
+
536
+
537
  if ($sitename == "Add to favorites" || $sitename=="More"){
538
 
539
+
540
+
541
  if ($sitename == "More"){
542
 
543
+
544
+
545
  $link .= '<a style="cursor:pointer" rel="nofollow" onMouseOut="fixOnMouseOut(document.getElementById(\'sociable-post'.$location.'-'.$post->ID.'\'), event, \'post'.$location.'-'.$post->ID.'\')" onMouseOver="more(this,\'post'.$location.'-' . $post->ID . '\')">' . $linkitem . '</a></li>' ;
546
 
547
+
548
+
549
  }else{
550
 
551
+
552
+
553
  $link .= '<a class="'.$sociable_options['icon_option'].'_'.$sociable_options['icon_size'].'" style="cursor:pointer;'.$style.'" rel="nofollow" title="'.$sitename.' - doesn\'t work in Chrome" onClick="' . $href . '">' ."" . '</a></li>' ;
554
 
555
+
556
+
557
  }
558
 
559
+
560
+
561
  }else{
562
 
563
+
564
+
565
  if($sociable_options["icon_option"] == "option6" || !empty($sociable_options["custom_icons"])){
566
 
567
+
568
+
569
  $link .= '<a title="'.$sitename.'" style="'.$description.$sociable_options['icon_size'].'_'.str_replace("option","",$sociable_options['icon_option']).'" rel="nofollow" ' . $target . ' href="' . $href . '">' . $linkitem . '</a></li>' ;
570
 
571
+
572
+
573
  }else{
574
 
575
+
576
+
577
  if (count(split("Counter",$sitename))>1){
578
 
579
+
580
+
581
  $link.= $href;
582
 
583
+
584
+
585
  }else{
586
 
587
+
588
+
589
 
590
 
591
+
592
+
593
  $link .= '<a title="'.$sitename.'" class="'.$sociable_options['icon_option'].'_'.$sociable_options['icon_size'].'" style="'.$style.'" rel="nofollow" ' . $target . ' href="' . $href . '">' . "" . '</a></li>' ;
594
 
595
+
596
+
597
  }
598
 
599
+
600
+
601
  }
602
 
603
+
604
+
605
  }
606
 
607
+
608
+
609
 
610
 
611
+
612
+
613
  $html .= apply_filters( 'sociable_link' , $link );
614
 
615
+
616
+
617
 
618
 
619
+
620
+
621
  $i++;
622
 
623
+
624
+
625
  }
626
 
627
+
628
+
629
  //return $html;
630
 
631
+
632
+
633
 
634
 
635
+
636
+
637
  //if ($sociable_options['icon_option'] !="option6"){
638
 
639
+
640
+
641
  $inner = "<ul>";
642
 
643
+
644
+
645
  foreach ($sociable_known_sites as $sitename => $val){
646
 
647
+
648
+
649
  if (array_key_exists($sitename, $display) || isset($sociable_known_sites[$sitename]["counter"]) )
650
 
651
+
652
+
653
  continue;
654
 
655
+
656
+
657
  $site = $sociable_known_sites[$sitename];
658
 
659
+
660
+
661
  $url = ( isset( $site['script'] ) ) ? $site['script'] : $site['url'];
662
 
663
+
664
+
665
  $url = str_replace('TITLECOUNT', $titleCOUNT, $url);
666
 
667
+
668
+
669
 
670
 
671
+
672
+
673
  $url = str_replace('TITLE', $title, $url);
674
 
675
+
676
+
677
  $url = str_replace('RSS', $rss, $url);
678
 
679
+
680
+
681
  $url = str_replace('BLOGNAME', $blogname, $url);
682
 
683
+
684
+
685
  $url = str_replace('EXCERPT', $excerpt, $url);
686
 
687
+
688
+
689
  $url = str_replace('FEEDLINK', $blogrss, $url);
690
 
691
+
692
+
693
  $url = str_replace('PERMALINKCOUNT', $permalinkCOUNT, $url);
694
 
695
+
696
+
697
 
698
 
699
+
700
+
701
  $url = str_replace('PERMALINK', $permalink, $url);
702
 
703
+
704
+
705
 
706
 
707
+
708
+
709
 
710
 
711
+
712
+
713
  $link = '<li style="heigth:'.$sociable_options['icon_size'].'px;width:'.$sociable_options['icon_size'].'px">';
714
 
715
+
716
+
717
  if (!empty($sociable_options["custom_icons"])){
718
 
719
+
720
+
721
  $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description );
722
 
723
+
724
+
725
  }else{
726
 
727
+
728
+
729
 
730
 
731
+
732
+
733
  if (isset($description) && $description!= "More"){
734
 
735
+
736
+
737
  $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description );
738
 
739
+
740
+
741
  }else{
742
 
743
+
744
+
745
  $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : "<img style='".$margin."' src='".SOCIABLE_HTTP_PATH."images/more.png'>";
746
 
747
+
748
+
749
  }
750
 
751
+
752
+
753
  }
754
+
755
  $posX = $site["spriteCoordinates"][$sociable_options['icon_size']]["0"];
756
 
757
+
758
+
759
  $posY = $site["spriteCoordinates"][$sociable_options['icon_size']]["1"];
760
 
761
+
762
+
763
  $backgroundFile = $sociable_options['icon_option']."_".$sociable_options['icon_size'].".png";
764
 
765
+
766
+
767
  $style = "background-position:".$posX." ".$posY;
768
 
769
+
770
+
771
  $href = $url;
772
 
773
+
774
+
775
  $target = isset( $sociable_options['new_window'] ) ? 'target="_blank"' : '' ;
776
 
777
+
778
+
779
  if ($sitename == "Add to favorites" || $sitename=="More"){
780
 
781
+
782
+
783
  if ($sitename == "More"){
784
 
785
+
786
+
787
  $link .= '<a style="cursor:poainter" rel="nofollow" onMouseOver="more(this,\'post'.$location.'-' . $post->ID . '\')">' . $linkitem . '</a></li>' ;
788
 
789
+
790
+
791
  }else{
792
 
793
+
794
+
795
  $link .= '<a class="'.$sociable_options['icon_option'].'_'.$sociable_options['icon_size'].'" style="cursor:pointer;'.$style.'" rel="nofollow" title="'.$sitename.' - doesn\'t work in Chrome" onClick="' . $href . '">' ."" . '</a></li>' ;
796
 
797
+
798
+
799
  }
800
 
801
+
802
+
803
  }else{
804
 
805
+
806
+
807
  if($sociable_options["icon_option"] == "option6" || !empty($sociable_options["custom_icons"])){
808
 
809
+
810
+
811
  $link .= '<a title="'.$sitename.'" style="'.$description.$sociable_options['icon_size'].'_'.str_replace("option","",$sociable_options['icon_option']).'" rel="nofollow" ' . $target . ' href="' . $href . '">' . $linkitem . '</a></li>' ;
812
 
813
+
814
+
815
  }else{
816
 
817
+
818
+
819
  $link .= '<a title="'.$sitename.'" class="'.$sociable_options['icon_option'].'_'.$sociable_options['icon_size'].'" style="'.$style.'" rel="nofollow" ' . $target . ' href="' . $href . '">' . "" . '</a></li>' ;
820
 
821
+
822
+
823
  }
824
 
825
+
826
+
827
  }
828
 
829
+
830
+
831
 
832
 
833
+
834
+
835
  $inner .= apply_filters( 'sociable_link' , $link );
836
 
837
+
838
+
839
 
840
 
841
+
842
+
843
  $i++;
844
 
845
+
846
+
847
 
848
 
849
+
850
+
851
  }
852
 
853
+
854
+
855
 
856
 
857
+
858
+
859
  $inner .="</ul>";
860
 
861
+
862
+
863
  $html .='</ul><div onMouseout="fixOnMouseOut(this,event,\'post'.$location.'-'.$post->ID.'\')" id="sociable-post'.$location.'-'.$post->ID.'" style="display:none;">
864
 
865
+
866
+
867
  <div style="top: auto; left: auto; display: block;" id="sociable">
868
 
869
+
870
+
871
  <div class="popup">
872
 
873
+
874
+
875
  <div class="content">
876
 
877
+
878
+
879
  '.$inner.'
880
 
881
+
882
+
883
  </div>
884
 
885
+
886
+
887
  <a style="cursor:pointer" onclick="hide_sociable(\'post'.$location.'-'.$post->ID.'\',true)" class="close">
888
+
889
  <img onclick="hide_sociable(\'post'.$location.'-'.$post->ID.'\',true)" title="close" src="'.SOCIABLE_HTTP_PATH . 'images/closelabel.png">
890
 
891
+
892
+
893
  </a>
894
 
895
+
896
+
897
  </div>
898
 
899
+
900
+
901
  </div>
902
 
903
+
904
+
905
  </div>HereGoCounters</div><!-- End Sociable -->';
906
 
907
+
908
+
909
  //$margin =
910
 
911
+
912
+
913
  //$html .= "<li class='sociablelast' style='".$margin."'><img src='".SOCIABLE_HTTP_PATH."images/more.jpg'></li></ul><div class='soc_clear'></div></div>";
914
 
915
+
916
+
917
  //}
918
 
919
+
920
+
921
  //return "";
922
 
923
+
924
+
925
  $counters ="";
926
 
927
+
928
+
929
  /*if ($location == "bottom" && (is_single() || is_admin())){ */
930
 
931
+
932
+
933
 
934
 
935
+
936
+
937
 
938
 
939
+
940
+
941
  $counters = "</div><div class='sociable' style='float:none'><ul class='clearfix'>";
942
 
943
+
944
+
945
 
946
 
947
+
948
+
949
  foreach ($display as $sitename => $val){
950
 
951
+
952
+
953
  //echo $sitename."<br>";
954
 
955
+
956
+
957
  if (!array_key_exists($sitename, $display) || !isset($sociable_known_sites[$sitename]["counter"]) )
958
 
959
+
960
+
961
  continue;
962
 
963
+
964
+
965
 
966
 
967
+
968
+
969
  //echo $sitename."<br>";
970
 
971
+
972
+
973
  $link = '<li id="'.str_replace("+","p",str_replace(" ","_",$sitename)).'">';
974
 
975
+
976
+
977
 
978
 
979
+
980
+
981
  $site = $sociable_known_sites[$sitename];
982
 
983
+
984
+
985
  $url = ( isset( $site['script'] ) ) ? $site['script'] : $site['url'];
986
 
987
+
988
+
989
  $url = str_replace('TITLECOUNT', $titleCOUNT, $url);
990
 
991
+
992
+
993
 
994
 
995
+
996
+
997
  $url = str_replace('TITLE', $title, $url);
998
 
999
+
1000
+
1001
  $url = str_replace('RSS', $rss, $url);
1002
 
1003
+
1004
+
1005
  $url = str_replace('BLOGNAME', $blogname, $url);
1006
 
1007
+
1008
+
1009
  $url = str_replace('EXCERPT', $excerpt, $url);
1010
 
1011
+
1012
+
1013
  $url = str_replace('FEEDLINK', $blogrss, $url);
1014
 
1015
+
1016
+
1017
 
1018
 
1019
+
1020
+
1021
  $url = str_replace('PERMALINKCOUNT', $permalinkCOUNT, $url);
1022
 
1023
+
1024
+
1025
  $url = str_replace('PERMALINK', $permalink, $url);
1026
 
1027
+
1028
+
1029
 
1030
 
1031
+
1032
+
1033
 
1034
 
1035
+
1036
+
1037
  $link.= $url."</li>";
1038
 
1039
+
1040
+
1041
  $counters .= apply_filters( 'sociable_link' , $link );
1042
 
1043
+
1044
+
1045
  }
1046
 
1047
+
1048
+
1049
  $counters .="</ul>";
1050
 
1051
+
1052
+
1053
  $html = str_replace("HereGoCounters",$counters,$html);
1054
 
1055
+
1056
+
1057
 
1058
 
1059
+
1060
+
1061
  /*}else{
1062
 
1063
+
1064
+
1065
  $html = str_replace("HereGoCounters",$counters,$html);
1066
 
1067
+
1068
+
1069
  }*/
1070
 
1071
+
1072
+
1073
 
1074
 
1075
+
1076
+
1077
  return $html;
1078
 
1079
+
1080
+
1081
 
1082
 
1083
+
1084
+
1085
  }
1086
+
1087
  /*
1088
 
1089
+
1090
+
1091
  * Template Tag To Echo The Sociable 2 HTML
1092
 
1093
+
1094
+
1095
  */
1096
 
1097
+
1098
+
1099
  function do_sociable(){
1100
 
1101
+
1102
+
1103
  echo sociable_html();
1104
 
1105
+
1106
+
1107
  }
1108
+
1109
  /*
1110
 
1111
+
1112
+
1113
  * Hook For the_content to automatically output the sociable HTML If The Option To Disable Has Not Been Unchecked
1114
 
1115
+
1116
+
1117
  */
1118
 
1119
+
1120
+
1121
  function auto_sociable( $content ){
1122
 
1123
+
1124
+
1125
  global $sociable_options;
1126
 
1127
+
1128
+
1129
 
1130
 
1131
+
1132
+
1133
  if (!isset($sociable_options["active"])){
1134
 
1135
+
1136
+
1137
 
1138
 
1139
+
1140
+
1141
  return $content;
1142
 
1143
+
1144
+
1145
  }
1146
 
1147
+
1148
+
1149
 
1150
 
1151
+
1152
+
1153
  if( ! isset( $sociable_options['locations'] ) || ! is_array( $sociable_options['locations'] ) || empty( $sociable_options['locations'] ) ){
1154
 
1155
+
1156
+
1157
  return $content;
1158
 
1159
+
1160
+
1161
  } else {
1162
 
1163
+
1164
+
1165
  $locations = $sociable_options['locations'];
1166
 
1167
+
1168
+
1169
  }
1170
 
1171
+
1172
+
1173
 
1174
 
1175
+
1176
+
1177
  /*
1178
 
1179
+
1180
+
1181
  * Determine if we are supposed to be displaying the output here.
1182
 
1183
+
1184
+
1185
  */
1186
 
1187
+
1188
+
1189
  $display = false;
1190
 
1191
+
1192
+
1193
 
1194
 
1195
+
1196
+
1197
  /*
1198
 
1199
+
1200
+
1201
  * is_single is a unique case it still returning true
1202
 
1203
+
1204
+
1205
  */
1206
 
1207
+
1208
+
1209
 
1210
 
1211
+
1212
+
1213
  //If We Can Verify That We are in the correct loaction, simply add something to the $display array, and test for a true result to continue.
1214
 
1215
+
1216
+
1217
  foreach( $locations as $location => $val ){
1218
 
1219
+
1220
+
1221
 
1222
 
1223
+
1224
+
1225
  //First We Handle is_single() so it returning true on Single Post Type Pages is not an issue, this is not the intended functionality of this plugin
1226
 
1227
+
1228
+
1229
  if( $location == 'is_single' ){
1230
 
1231
+
1232
+
1233
  //If we are not in a post, lets ignore this one for now
1234
 
1235
+
1236
+
1237
  if( is_single() && get_post_type() == 'post' ){
1238
 
1239
+
1240
+
1241
  $display = true;
1242
 
1243
+
1244
+
1245
  break;
1246
 
1247
+
1248
+
1249
  } else {
1250
 
1251
+
1252
+
1253
  continue; // So not to trigger is_single later in this loop, but still be allowed to handle others
1254
 
1255
+
1256
+
1257
  }
1258
 
1259
+
1260
+
1261
 
1262
 
1263
+
1264
+
1265
  } elseif( strpos( $location , 'is_single_posttype_' ) === 0 ){ //Now We Need To Check For The Variable Names, Taxonomy Archives, Post Type Archives and Single Custom Post Types.
1266
 
1267
+
1268
+
1269
 
1270
 
1271
+
1272
+
1273
  //Single Custom Post Type
1274
 
1275
+
1276
+
1277
  $post_type = str_replace( 'is_single_posttype_' , '' , $location );
1278
 
1279
+
1280
+
1281
  if( is_single() && get_post_type() == $post_type ){
1282
 
1283
+
1284
+
1285
  $display = true;
1286
 
1287
+
1288
+
1289
  break;
1290
 
1291
+
1292
+
1293
  }
1294
 
1295
+
1296
+
1297
 
1298
 
1299
+
1300
+
1301
  } elseif( strpos( $location , 'is_posttype_archive_' ) === 0 ){
1302
 
1303
+
1304
+
1305
 
1306
 
1307
+
1308
+
1309
  //Custom Post Type Archive
1310
 
1311
+
1312
+
1313
  $post_type = str_replace( 'is_posttype_archive_' , '' , $location );
1314
 
1315
+
1316
+
1317
  if( is_post_type_archive( $post_type ) ){
1318
 
1319
+
1320
+
1321
  $display = true;
1322
 
1323
+
1324
+
1325
  break;
1326
 
1327
+
1328
+
1329
  }
1330
 
1331
+
1332
+
1333
 
1334
 
1335
+
1336
+
1337
  } elseif( strpos( $location , 'is_taxonomy_archive_' ) === 0 ) {
1338
 
1339
+
1340
+
1341
 
1342
 
1343
+
1344
+
1345
  //Taxonomy Archive
1346
 
1347
+
1348
+
1349
  $taxonomy = str_replace( 'is_taxonomy_archive_' , '' , $location );
1350
 
1351
+
1352
+
1353
  if( is_tax( $taxonomy ) ){
1354
 
1355
+
1356
+
1357
  $display = true;
1358
 
1359
+
1360
+
1361
  break;
1362
 
1363
+
1364
+
1365
  }
1366
 
1367
+
1368
+
1369
 
1370
 
1371
+
1372
+
1373
  } elseif( function_exists( $location ) ) {
1374
 
1375
+
1376
+
1377
 
1378
 
1379
+
1380
+
1381
  //Standard conditional tag, these will return BOOL
1382
 
1383
+
1384
+
1385
  if( call_user_func( $location ) === true ){
1386
 
1387
+
1388
+
1389
  $display = true;
1390
 
1391
+
1392
+
1393
  break;
1394
 
1395
+
1396
+
1397
  }
1398
 
1399
+
1400
+
1401
 
1402
 
1403
+
1404
+
1405
  } else {
1406
 
1407
+
1408
+
1409
  continue;
1410
 
1411
+
1412
+
1413
  }
1414
 
1415
+
1416
+
1417
 
1418
 
1419
+
1420
+
1421
 
1422
 
1423
+
1424
+
1425
  }
1426
 
1427
+
1428
+
1429
 
1430
 
1431
+
1432
+
1433
  //If We have passed all the checks and are looking in the right place lets do this thang
1434
 
1435
+
1436
+
1437
  if( isset( $sociable_options['automatic_mode'] ) && $display === true ){
1438
 
1439
+
1440
+
1441
  if (isset($sociable_options["topandbottom"])){
1442
 
1443
+
1444
+
1445
  $content = sociable_html(array(),"top").$content . sociable_html(array(),"bottom");
1446
 
1447
+
1448
+
1449
  }else{
1450
 
1451
+
1452
+
1453
  $content = "".$content . sociable_html(array());
1454
 
1455
+
1456
+
1457
  }
1458
 
1459
+
1460
+
1461
  }
1462
 
1463
+
1464
+
1465
 
1466
 
1467
+
1468
+
1469
 
1470
 
1471
+
1472
+
1473
  return $content;
1474
 
1475
+
1476
+
1477
  }
1478
+
1479
  /*
1480
 
1481
+
1482
+
1483
  * Sociable 2 Shortcode
1484
 
1485
+
1486
+
1487
  */
1488
 
1489
+
1490
+
1491
  function sociable_shortcode(){
1492
 
1493
+
1494
+
1495
  return sociable_html();
1496
 
1497
+
1498
+
1499
  }
1500
 
1501
+
1502
+
1503
  function add_googleplus() {
1504
+
1505
+ //echo'<script type="text/javascript" src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>';
1506
+
1507
+
1508
 
1509
  }
1510
 
1511
+
1512
+
1513
  //add_action('wp_head', 'add_googleplus' );
1514
 
1515
+
1516
+
1517
  ?>
index.php ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Sociable - Blogplay.com
4
+ */
5
+ ?>
js/oPlugin.js CHANGED
@@ -1,1150 +1,630 @@
1
- oPlugin = {
2
-
3
- PluginWidth:80,
4
-
5
- PluginHeight:1,
6
-
7
- SlideBig:'Small',
8
-
9
- LabelBgColor:'#f7f7f7',
10
-
11
- BgColor:'#fefefe',
12
-
13
- Color:'#6A6A6A',
14
-
15
- FontSize:'11',
16
-
17
- LinkColor:'#587cc8',
18
-
19
- Timer:null,
20
-
21
- LastBox:null,
22
-
23
- Browser: {
24
-
25
- Explorer: !!(navigator.appName=='Microsoft Internet Explorer'),
26
-
27
- Other: !!!(navigator.appName=='Microsoft Internet Explorer'),
28
-
29
- Chrome: !!(navigator.userAgent.toLowerCase().indexOf('chrome') > -1)
30
-
31
- },
32
-
33
-
34
-
35
- boxDialog: function(sId){
36
-
37
- if(document.getElementById('content_'+sId).style.display=='block'){
38
-
39
- if(oPlugin.LastBox){
40
-
41
- if(document.getElementById('boxDialog_'+oPlugin.LastBox)){
42
-
43
- jQuery('#boxDialog_'+oPlugin.LastBox).hide('slow');
44
-
45
- document.getElementById('boxDialog_'+oPlugin.LastBox).style.zIndex=0;
46
-
47
- }
48
-
49
-
50
-
51
- jQuery('#content_'+oPlugin.LastBox).show('fast');
52
-
53
-
54
-
55
-
56
-
57
- document.getElementById('arrow_'+oPlugin.LastBox).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png';
58
-
59
- }
60
-
61
- if(document.getElementById('boxDialog_'+sId)){
62
-
63
- jQuery('#boxDialog_'+sId).show('slow');
64
-
65
- document.getElementById('boxDialog_'+sId).style.zIndex=10;
66
-
67
- }
68
-
69
- jQuery('#content_'+sId).hide('fast');
70
-
71
- oPlugin.LastBox=sId;
72
-
73
-
74
-
75
- document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow_s.png';
76
-
77
- }else{
78
-
79
-
80
-
81
- oPlugin.LastBox=null;
82
-
83
- if(document.getElementById('boxDialog_'+sId)){
84
-
85
- jQuery('#boxDialog_'+sId).hide('slow');
86
-
87
- }
88
-
89
-
90
-
91
-
92
-
93
- jQuery('#content_'+sId).show('fast');
94
-
95
-
96
-
97
- document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png';
98
-
99
- }
100
-
101
-
102
-
103
- },
104
-
105
- boxDialogShow: function(sId){
106
-
107
- if(document.getElementById('content_'+sId).style.display=='block'){
108
-
109
- if(oPlugin.LastBox){
110
-
111
- if(document.getElementById('boxDialog_'+oPlugin.LastBox)){
112
-
113
- jQuery('#boxDialog_'+oPlugin.LastBox).hide('slow');
114
-
115
- document.getElementById('boxDialog_'+oPlugin.LastBox).style.zIndex=0;
116
-
117
- }
118
-
119
-
120
-
121
- jQuery('#content_'+oPlugin.LastBox).show('fast');
122
-
123
-
124
-
125
-
126
-
127
- document.getElementById('arrow_'+oPlugin.LastBox).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png';
128
-
129
- }
130
-
131
- if(document.getElementById('boxDialog_'+sId)){
132
-
133
- jQuery('#boxDialog_'+sId).show('slow');
134
-
135
- document.getElementById('boxDialog_'+sId).style.zIndex=10;
136
-
137
- }
138
-
139
- jQuery('#content_'+sId).hide('fast');
140
-
141
- oPlugin.LastBox=sId;
142
-
143
-
144
-
145
- document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow_s.png';
146
-
147
- }
148
-
149
-
150
-
151
- },
152
-
153
- hideShowToolbar: function(){
154
-
155
- if(document.getElementById('wpPlugin-MainFrame').style.display=='none'){
156
-
157
- jQuery('#wpPlugin-MainFrame').show(1500);
158
-
159
- document.getElementById('wpSocciable').className= 'wpSocciable'+oPlugin.SlideBig+''; document.getElementById('wpSocciable').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-sociable.png)";
160
-
161
- document.getElementById('wpSocciableClose').className= 'wpSocciableClose'; document.getElementById('wpSocciableClose').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-close.png)";
162
- document.getElementById('wpSocciable').style.marginLeft = '-20px';
163
- document.getElementById('wpSocciableClose').style.marginLeft = '-20px';
164
-
165
-
166
-
167
- }else{
168
-
169
-
170
- document.getElementById('wpPlugin-MainFrame').style.display='none';
171
-
172
- document.getElementById('wpSocciable').className= 'wpSocciable'+oPlugin.SlideBig+'-c'; document.getElementById('wpSocciable').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-sociable-c.png)";
173
-
174
- document.getElementById('wpSocciableClose').className= 'wpSocciableClose-c'; document.getElementById('wpSocciableClose').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-close-c.png)";
175
-
176
-
177
-
178
- }
179
-
180
- },
181
-
182
- focus:function(obj){
183
-
184
- obj.style.opacity='1';
185
-
186
- obj.style.filter="alpha(opacity='100')";
187
-
188
- },
189
-
190
- blur:function(obj){
191
-
192
- obj.style.opacity='0.4';
193
-
194
- obj.style.filter="alpha(opacity='40')";
195
-
196
-
197
-
198
- },
199
-
200
- refreshPosition: function(){
201
-
202
-
203
-
204
- var scrolltop = jQuery('html,body').scrollTop();
205
-
206
-
207
-
208
- if (oPlugin.Browser.Chrome){
209
-
210
-
211
-
212
- scrolltop = document.body.scrollTop;
213
-
214
- }
215
-
216
-
217
-
218
-
219
-
220
- var div = jQuery('#wpPlugin-BOX');
221
-
222
- var start = jQuery(div).offset().top;
223
-
224
-
225
-
226
-
227
-
228
- var p = jQuery(window).scrollTop();
229
-
230
- jQuery(div).css('position','fixed');
231
-
232
-
233
-
234
-
235
-
236
-
237
-
238
- //document.getElementById('wpPlugin-BOX').style.top = (scrolltop+40) + 'px';
239
-
240
- /*if(parseInt(document.getElementById('wpPlugin-BOX').style.top.replace('px',''))!=(scrolltop+40)){
241
-
242
- document.getElementById('wpPlugin-BOX').style.display='none';
243
-
244
-
245
-
246
- document.getElementById('wpPlugin-BOX').style.top = (scrolltop+40) + 'px';
247
-
248
-
249
-
250
- if(parseInt(document.getElementById('wpPlugin-BOX').style.top.replace('px',''))>(scrolltop+40)){
251
-
252
- document.getElementById('wpPlugin-BOX').style.top = (parseInt(document.getElementById('wpPlugin-BOX').style.top.replace('px',''))-1) + 'px';
253
-
254
- }else{
255
-
256
- document.getElementById('wpPlugin-BOX').style.top = (parseInt(document.getElementById('wpPlugin-BOX').style.top.replace('px',''))+1) + 'px';
257
-
258
- }
259
-
260
-
261
-
262
- document.getElementById('wpPlugin-BOX').style.display='';
263
-
264
- }else{
265
-
266
- clearInterval(oPlugin.Timer);
267
-
268
- oPlugin.Timer=null;
269
-
270
- }
271
-
272
- */
273
-
274
- },
275
-
276
- toolbarStart: function(sID_Parent,sMove,sHeight,sWidth,sBgColor,sLabelBgColor,sSlideBig,sColor,sFontSize,sLinkColor){
277
-
278
-
279
-
280
-
281
-
282
- if(sLinkColor){
283
-
284
- oPlugin.LinkColor = sLinkColor;
285
-
286
- }
287
-
288
- if(sFontSize){
289
-
290
- oPlugin.FontSize = sFontSize;
291
-
292
- }
293
-
294
-
295
-
296
- if(sColor){
297
-
298
- oPlugin.Color = sColor;
299
-
300
- }
301
-
302
- if(sBgColor){
303
-
304
- oPlugin.BgColor = sBgColor;
305
-
306
- }
307
-
308
- if(sSlideBig){
309
-
310
- oPlugin.SlideBig = "Big";
311
-
312
- }//If Null == Small!
313
-
314
-
315
-
316
- if(sLabelBgColor){
317
-
318
- oPlugin.LabelBgColor = sLabelBgColor;
319
-
320
- }
321
-
322
- if(sWidth){
323
-
324
- oPlugin.PluginWidth = sWidth;
325
-
326
-
327
-
328
- }
329
-
330
- if(sHeight){
331
-
332
- oPlugin.PluginHeight = sHeight;
333
-
334
-
335
-
336
- }
337
-
338
-
339
-
340
- if(sMove){
341
-
342
- window.onscroll = function (e) {
343
-
344
- if(!oPlugin.Timer){
345
-
346
-
347
-
348
- oPlugin.Timer = setInterval("oPlugin.refreshPosition();", 50);
349
-
350
- }
351
-
352
- }
353
-
354
- }
355
-
356
- jQuery(document).ready(function(){
357
-
358
- document.getElementById('wpPlugin-BOX').style.marginLeft = (21 - jQuery("body").css("padding-left").replace('px','')) + 'px';
359
-
360
- });
361
-
362
-
363
- var Base =
364
-
365
- '<div align="center" class="wpPlugin-MainFrame" id="wpPlugin-BOX" style="width:'+(oPlugin.PluginWidth+2)+'px;position:absolute;margin-top:40px;display:block;height:'+oPlugin.PluginHeight+'px;" >'+
366
-
367
- '<a href="http://blogplay.com" target="_blank" ><div id="wpSocciable" class="wpSocciable'+oPlugin.SlideBig+'" ></div></a>'+
368
- '<div id="wpSocciableClose" class="wpSocciableClose" onclick="oPlugin.hideShowToolbar();"></div>'+
369
-
370
- '<table id="wpPlugin-MainFrame" class="shape" cellspacing="0" cellpadding="0" width="100%">'+
371
-
372
- '<tr>'+
373
-
374
- '<td class="top-left" /><td class="top" /><td class="top-right" />'+
375
-
376
- '</tr>'+
377
-
378
- '<tr valign="top" >'+
379
-
380
- '<td class="left" />'+
381
-
382
- '<td align="left" class="frame" style="background-color:'+oPlugin.BgColor+';width:'+(oPlugin.PluginWidth-7+7)+'px;" >'+
383
-
384
- '<ul class="toolbar" style="color:'+oPlugin.Color+';font-size:'+oPlugin.FontSize+'px;width:'+(oPlugin.PluginWidth-7+7)+'px;" id="toolbar" >'+
385
-
386
- '</ul>'+
387
-
388
- '</td>'+
389
-
390
- '<td class="right" />'+
391
-
392
- '</tr>'+
393
-
394
- '<tr>'+
395
-
396
- '<td class="bottom-left" /><td class="bottom" /><td class="bottom-right" />'+
397
-
398
- '</tr>'+
399
-
400
- '</table></div>';
401
-
402
-
403
-
404
- document.getElementById(sID_Parent).innerHTML = Base + document.getElementById(sID_Parent).innerHTML;
405
-
406
-
407
-
408
- oPlugin.InitializeShowObj = 'wpPlugin-MainFrame';
409
-
410
- document.getElementById(oPlugin.InitializeShowObj).style.display='none';
411
-
412
- oPlugin.InitializeShow = setInterval("jQuery('#'+oPlugin.InitializeShowObj).show(3000);clearInterval(oPlugin.InitializeShow);", 1000);
413
-
414
- //oPlugin.blur(document.getElementById(oPlugin.InitializeShowObj));
415
-
416
-
417
-
418
- //onmouseover="oPlugin.focus(this);" onmouseout="oPlugin.blur(this);" onmouseover"this.style.opacity=1;" onmouseout"this.style.opacity=0.4;"
419
-
420
- /*if(!oPlugin.Browser.Explorer){
421
-
422
-
423
-
424
- document.getElementById(sID_Parent).style.display='none';
425
-
426
- oPlugin.InitializeShowObj = sID_Parent;
427
-
428
- oPlugin.InitializeShow = setInterval("jQuery('#'+oPlugin.InitializeShowObj).show(3000);clearInterval(oPlugin.InitializeShow);", 1000);
429
-
430
-
431
-
432
-
433
-
434
- }else{
435
-
436
- document.getElementById('wpPlugin-MainFrame').style.filter='alpha(opacity=40)';
437
-
438
-
439
-
440
- }*/
441
-
442
-
443
-
444
- document.getElementById('wpPlugin-BOX').style.top = '20px'; document.getElementById('wpSocciable').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-sociable.png)"; document.getElementById('wpSocciableClose').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-close.png)";
445
-
446
- },
447
-
448
- CreateGoToTop:function(sId,sTitle,sContent){
449
-
450
-
451
-
452
- oLi = oPlugin.createElement('li',sId,'item',null,'',null);
453
-
454
-
455
-
456
-
457
-
458
-
459
-
460
- var oLi_Functions;
461
-
462
-
463
-
464
- oLi_Functions = Array();
465
-
466
- oLi_Functions[0]= new Array();
467
-
468
- oLi_Functions[0][0] = 'click';
469
-
470
- oLi_Functions[0][1] = function(){
471
-
472
- // var scrolltop = jQuery('html,body').scrollTop();
473
-
474
-
475
-
476
- if (oPlugin.Browser.Chrome){
477
-
478
-
479
-
480
- document.body.scrollTop = 0;
481
-
482
- }
483
-
484
- else{
485
-
486
- jQuery('html,body').scrollTop(0);
487
-
488
- }
489
-
490
-
491
-
492
- };
493
-
494
-
495
-
496
- oLabel = oPlugin.createElement('div','title_' +sId,'title',oLi_Functions,'<img id="arrow_'+sId+'" src="'+jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png" /><span>'+sTitle+'</span>',null);
497
-
498
- oLabel.style.background=oPlugin.LabelBgColor;
499
-
500
- oLi.appendChild(oLabel);
501
-
502
-
503
-
504
- oLi_Content = oPlugin.createElement('div','content_' +sId,'content',oLi_Functions,sContent,null);
505
-
506
- if(sContent==''){oLi_Content.style.lineHeight='1px';oLi_Content.style.height='1px';oLi_Content.innerHTML='';}
507
-
508
- oLi_Content.align='center';
509
-
510
- oLi_Content.style.display='block';
511
-
512
- oLi_Content.style.cursor='pointer';
513
-
514
- oLi.appendChild(oLi_Content);
515
-
516
-
517
-
518
- document.getElementById('toolbar').appendChild(oLi);
519
-
520
-
521
-
522
- },
523
-
524
-
525
-
526
- CreateSimpleNode:function(sId,sTitle,sContent,display){
527
-
528
-
529
-
530
- oLi = oPlugin.createElement('li',sId,'item',null,'',null);
531
-
532
-
533
-
534
-
535
-
536
-
537
-
538
- var oLi_Functions;
539
-
540
-
541
-
542
- oLi_Functions = Array();
543
-
544
- oLi_Functions[0]= new Array();
545
-
546
- oLi_Functions[0][0] = 'click';
547
-
548
- oLi_Functions[0][1] = function(){
549
-
550
- if(document.getElementById('content_'+sId).style.display=='none'){
551
-
552
-
553
-
554
- document.getElementById('content_'+sId).style.display='block';
555
-
556
- document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png';
557
-
558
-
559
-
560
- }else{
561
-
562
- document.getElementById('content_'+sId).style.display='none';
563
-
564
- document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow_s.png';
565
-
566
- }
567
-
568
- };
569
-
570
-
571
-
572
- if(display){
573
-
574
- arrow='';
575
-
576
- }else{
577
-
578
- arrow='_s';
579
-
580
- }
581
-
582
- oLabel = oPlugin.createElement('div','title_' +sId,'title',oLi_Functions,'<img id="arrow_'+sId+'" src="'+jQuery("#skyscraper_dir").val()+'images/toolbar/arrow'+arrow+'.png" /><span>'+sTitle+'</span>',null);
583
-
584
- oLabel.style.background=oPlugin.LabelBgColor;
585
-
586
- oLi.appendChild(oLabel);
587
-
588
-
589
-
590
- oLi_Content = oPlugin.createElement('div','content_' +sId,'content',oLi_Functions,sContent,null);
591
-
592
- if(sContent==''){oLi_Content.style.lineHeight='1px';oLi_Content.style.height='1px';oLi_Content.innerHTML='';}
593
-
594
- oLi_Content.align='center';
595
-
596
- if(display){
597
-
598
- oLi_Content.style.display='block';
599
-
600
- }else{
601
-
602
- oLi_Content.style.display='none';
603
-
604
- }
605
-
606
- oLi.appendChild(oLi_Content);
607
-
608
-
609
-
610
- document.getElementById('toolbar').appendChild(oLi);
611
-
612
-
613
-
614
- },
615
-
616
-
617
-
618
- CreateGoToHome:function(sId,sTitle,sContent){
619
-
620
-
621
-
622
- oLi = oPlugin.createElement('li',sId,'item',null,'',null);
623
-
624
-
625
-
626
-
627
-
628
-
629
-
630
- var oLi_Functions;
631
-
632
-
633
-
634
- oLi_Functions = Array();
635
-
636
- oLi_Functions[0]= new Array();
637
-
638
- oLi_Functions[0][0] = 'click';
639
-
640
- oLi_Functions[0][1] = function(){document.location.href ='http://'+ document.location.href.split("/")[2];};
641
-
642
-
643
-
644
- oLabel = oPlugin.createElement('div','title_' +sId,'title',oLi_Functions,'<img id="arrow_'+sId+'" src="'+jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png" /><span>'+sTitle+'</span>',null);
645
-
646
- oLabel.style.background=oPlugin.LabelBgColor;
647
-
648
- oLi.appendChild(oLabel);
649
-
650
-
651
-
652
- oLi_Content = oPlugin.createElement('div','content_' +sId,'content',oLi_Functions,sContent,null);
653
-
654
- if(sContent==''){oLi_Content.style.lineHeight='1px';oLi_Content.style.height='1px';oLi_Content.innerHTML='';}
655
-
656
- oLi_Content.align='center';
657
-
658
- oLi_Content.style.display='block';
659
-
660
- oLi_Content.style.cursor='pointer';
661
-
662
- oLi.appendChild(oLi_Content);
663
-
664
-
665
-
666
- document.getElementById('toolbar').appendChild(oLi);
667
-
668
-
669
-
670
- },
671
-
672
- CreateNode: function(sId,sTitle,sContent,sContentDialog,sContentDialogStyle,dialogHeight,dialogWidth){
673
-
674
-
675
-
676
- oLi = oPlugin.createElement('li',sId,'item',null,'',null);
677
-
678
-
679
-
680
-
681
-
682
-
683
-
684
- var oLi_Functions;
685
-
686
-
687
-
688
- oLi_Functions = Array();
689
-
690
- oLi_Functions[0]= new Array();
691
-
692
- oLi_Functions[0][0] = 'click';
693
-
694
- oLi_Functions[0][1] = function(){oPlugin.boxDialog(sId);};
695
-
696
-
697
-
698
-
699
-
700
-
701
-
702
-
703
-
704
-
705
-
706
- oLabel = oPlugin.createElement('div','title_' +sId,'title',oLi_Functions,'<img id="arrow_'+sId+'" src="'+jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png" /><span>'+sTitle+'</span>',null);
707
-
708
- oLabel.style.background=oPlugin.LabelBgColor;
709
-
710
- oLi.appendChild(oLabel);
711
-
712
-
713
-
714
-
715
-
716
-
717
-
718
- if(sContentDialog){
719
-
720
- var oLi_BoxShape = '<table class="shape" cellspacing="0" cellpadding="0" height="'+(dialogHeight)+'" width="100%" >'+
721
-
722
- '<tr>'+
723
-
724
- '<td class="top-left" /><td class="top" /><td class="top-right" />'+
725
-
726
- '</tr>'+
727
-
728
- '<tr valign="top">'+
729
-
730
- '<td class="left" style="font-size:10px;" >&nbsp;</td>'+
731
-
732
- '<td align="left" style="background-color:'+oPlugin.BgColor+';width:'+(dialogWidth+50)+'px;" class="frame" >';
733
-
734
- oLi_BoxShape += '';
735
-
736
- oLi_BoxShape += '<span style="color:'+oPlugin.Color+';position:absolute;margin-left:';
737
-
738
-
739
-
740
- if(oPlugin.Browser.Explorer){
741
-
742
- oLi_BoxShape += (oPlugin.PluginWidth+dialogWidth-oPlugin.PluginWidth-12)+'px;';
743
-
744
- }else{
745
-
746
- oLi_BoxShape += (oPlugin.PluginWidth+dialogWidth-oPlugin.PluginWidth)+'px;';
747
-
748
- }
749
-
750
-
751
-
752
-
753
-
754
- oLi_BoxShape += 'margin-top:5px;font-size:11px;font-weight:bold;cursor:pointer;border:solid 1px '+oPlugin.Color+';padding:2px;line-height:9px;padding-top:0px;padding-bottom:2px;" onclick="oPlugin.boxDialog(\''+sId+'\')" >x</span>';
755
-
756
- oLi_BoxShape += '<div class="boxTitleContent" style="font-size:'+(oPlugin.FontSize+2)+'px;color:'+oPlugin.Color+';font-weight:bold;background:'+oPlugin.LabelBgColor+';';
757
-
758
-
759
-
760
- if(oPlugin.Browser.Explorer){
761
-
762
- oLi_BoxShape += 'width:'+(dialogWidth+8)+'px;';
763
-
764
- }else{
765
-
766
- oLi_BoxShape += 'width:'+(dialogWidth+13)+'px;';
767
-
768
- }
769
-
770
-
771
-
772
- oLi_BoxShape += '" >&nbsp;&nbsp;&nbsp;&nbsp;'+sTitle+'</div>';
773
-
774
-
775
-
776
- switch(sContentDialogStyle){
777
-
778
- case 'List':
779
-
780
- oLi_BoxShape += '<div align="left" style="height:'+(dialogHeight)+'px;margin:10px;margin-bottom:0px;padding-bottom:0px;width:100%;float:none;clear:both;" >';
781
-
782
- oLi_BoxShape += '<ul align="left" >';
783
-
784
- for(i=0;i<sContentDialog.length;i++){
785
-
786
-
787
-
788
- oLi_BoxShape += '<li style="position:relative;color:#c1c1c1;margin-left:-20px;margin-bottom:5px;font-size:'+oPlugin.FontSize+'px;padding-bottom:5px;list-style:disc;font-weight:bold;">';
789
-
790
- oLi_BoxShape += '<span style="color:'+oPlugin.Color+';" >'+sContentDialog[i][0]+'</span>&nbsp;&nbsp;';
791
-
792
- oLi_BoxShape += '<span style="height:'+(oPlugin.FontSize+2)+'px;color:'+oPlugin.Color+';opacity:0.4;filter: alpha(opacity=40);" >'+sContentDialog[i][1]+'</span>&nbsp;&nbsp;';
793
-
794
- oLi_BoxShape += '<a style="color:'+oPlugin.LinkColor+';" >'+sContentDialog[i][2]+'</a>';
795
-
796
- oLi_BoxShape += '</li>';
797
-
798
-
799
-
800
- }
801
-
802
- oLi_BoxShape += '</ul>';
803
-
804
- oLi_BoxShape += '</div>';
805
-
806
- break;
807
-
808
- case 'Urls':
809
-
810
- oLi_BoxShape += '<div align="left" style="height:'+(dialogHeight)+'px;margin:10px;margin-bottom:0px;padding-bottom:0px;width:100%;float:none;clear:both;" >';
811
-
812
- oLi_BoxShape += '<ul align="left" >';
813
-
814
- for(i=0;i<sContentDialog.length;i++){
815
-
816
-
817
-
818
- oLi_BoxShape += '<li style="color:#c1c1c1;margin-left:-20px;margin-bottom:5px;font-size:'+oPlugin.FontSize+'px;padding-bottom:5px;list-style:disc;font-weight:bold;" >';
819
-
820
- oLi_BoxShape += '<a href="'+sContentDialog[i]+'" style="color:'+oPlugin.LinkColor+';" >'+sContentDialog[i]+'</a>';
821
-
822
- oLi_BoxShape += '</li>';
823
-
824
-
825
-
826
- }
827
-
828
- oLi_BoxShape += '</ul>';
829
-
830
- oLi_BoxShape += '</div>';
831
-
832
- break;
833
-
834
- case 'Notice':
835
-
836
- //oPlugin.Browser.Explorer
837
-
838
- oLi_BoxShape += '<ul style="margin-top:10px;margin-bottom:10px;margin-left:10px;padding-left:15px;width:'+(dialogWidth-50)+'px;" >';
839
-
840
- for(i=0;i<sContentDialog.length;i++){
841
-
842
-
843
-
844
- oLi_BoxShape += '<li style="font-size:'+oPlugin.FontSize+'px;';
845
-
846
- if(i != sContentDialog.length-1){
847
-
848
- oLi_BoxShape += 'padding-bottom:10px;border-bottom:solid 1px #c1c1c1;';
849
-
850
- }
851
-
852
- oLi_BoxShape +='list-style:disc;font-weight:bold;color:#c1c1c1;">';
853
-
854
- oLi_BoxShape += '<a style="color:'+oPlugin.LinkColor+';" >'+sContentDialog[i][0]+'</a> ';
855
-
856
- oLi_BoxShape += '<span style="height:'+(oPlugin.FontSize+2)+'px;color:'+oPlugin.Color+'; filter: alpha(opacity=40);opacity:0.4;" >'+sContentDialog[i][1]+'</span><br/>';
857
-
858
- oLi_BoxShape += '<span style="height:'+(oPlugin.FontSize+2)+'px;color:'+oPlugin.Color+';filter: alpha(opacity=70);opacity:0.7;" >'+sContentDialog[i][2]+'';
859
-
860
- oLi_BoxShape += ' - <a style="color:'+oPlugin.LinkColor+';" href="'+sContentDialog[i][3]+'" >'+sContentDialog[i][3]+'</a></span><br/>';
861
-
862
- oLi_BoxShape += '<span style="height:'+(oPlugin.FontSize+2)+'px;color:'+oPlugin.Color+';opacity:0.4;filter: alpha(opacity=40);" >'+sContentDialog[i][4]+'</span>';
863
-
864
- oLi_BoxShape += '</li>';
865
-
866
-
867
-
868
- }
869
-
870
- oLi_BoxShape += '</ul>';
871
-
872
- break;
873
-
874
- case 'Item':
875
-
876
- oLi_BoxShape += '<div align="left" style="opacity:0.8;filter: alpha(opacity=80);height:'+(dialogHeight)+'px;margin:10px;margin-bottom:0px;margin-top:5px;padding-bottom:0px;width:100%;float:none;clear:both;" >';
877
-
878
- oLi_BoxShape += '<ul align="left" >';
879
-
880
-
881
-
882
- oLi_BoxShape += '<li style="color:#c1c1c1;margin-left:-20px;font-size:'+oPlugin.FontSize+'px;padding-bottom:5px;list-style:disc;font-weight:bold;" >';
883
-
884
- oLi_BoxShape += '<span style="color:'+oPlugin.Color+';" >'+sContentDialog+'</span>';
885
-
886
- oLi_BoxShape += '</li>';
887
-
888
-
889
-
890
-
891
-
892
- oLi_BoxShape += '</ul>';
893
-
894
- oLi_BoxShape += '</div>';
895
-
896
-
897
-
898
- break;
899
-
900
- default:
901
-
902
- oLi_BoxShape += '<div align="center" style="height:'+(dialogHeight)+'px;width:100%;" ><div style="height:'+(dialogHeight)+'px;color:'+oPlugin.Color+';font-size:'+(oPlugin.FontSize-1)+'px;margin:5px;padding:0px;width:95%;float:none;clear:both;" >';
903
-
904
- oLi_BoxShape += sContentDialog ;
905
-
906
- oLi_BoxShape += '</div></div>';
907
-
908
- break;
909
-
910
-
911
-
912
- }
913
-
914
-
915
-
916
-
917
-
918
-
919
-
920
- oLi_BoxShape += '<td class="right" style="font-size:10px;" >&nbsp;</td>'+
921
-
922
- '</tr>'+
923
-
924
- '<tr>'+
925
-
926
- '<td class="bottom-left" /><td class="bottom" /><td class="bottom-right" />'+
927
-
928
- '</tr>'+
929
-
930
- '</table>';
931
-
932
-
933
-
934
-
935
-
936
- oLi_BoxDialog = oPlugin.createElement('div','boxDialog_' +sId,'boxDialog',null,oLi_BoxShape,null);
937
-
938
- oLi_BoxDialog.align='left';
939
-
940
-
941
-
942
-
943
-
944
-
945
-
946
- if(dialogWidth){
947
-
948
- oLi_BoxDialog.style.width=(dialogWidth+10)+'px';
949
-
950
- }
951
-
952
-
953
-
954
- if(dialogHeight){
955
-
956
- if(oPlugin.Browser.Explorer){
957
-
958
- oLi_BoxDialog.style.height=(dialogHeight+100)+'px';
959
-
960
- }else{
961
-
962
- oLi_BoxDialog.style.height=(dialogHeight+10)+'px';
963
-
964
- }
965
-
966
- }
967
-
968
-
969
-
970
- oLi_BoxDialog.style.display='none';
971
-
972
-
973
-
974
-
975
-
976
- oLi_BoxDialog.style.left=(oPlugin.PluginWidth-7+7)+'px';
977
-
978
- oLi_BoxDialog.style.marginTop='-35px';
979
-
980
-
981
-
982
-
983
-
984
-
985
-
986
- oLi.appendChild(oLi_BoxDialog);
987
-
988
- }
989
-
990
-
991
-
992
-
993
-
994
- oLi_Content = oPlugin.createElement('div','content_' +sId,'content',null,sContent,null);
995
-
996
- if(sContent==''){oLi_Content.style.lineHeight='1px';oLi_Content.style.height='1px';oLi_Content.innerHTML='';}
997
-
998
- oLi_Content.align='center';
999
-
1000
- oLi_Content.style.display='block';
1001
-
1002
- oLi.appendChild(oLi_Content);
1003
-
1004
-
1005
-
1006
-
1007
-
1008
- document.getElementById('toolbar').appendChild(oLi);
1009
-
1010
- },
1011
-
1012
-
1013
-
1014
-
1015
-
1016
- createElement: function(sType,sId,sClass,aFunctions,sHtml,oParent){
1017
-
1018
- var oElement;
1019
-
1020
-
1021
-
1022
- oElement=document.createElement(sType);
1023
-
1024
- oElement.setAttribute('id',sId);
1025
-
1026
- oElement.className=sClass;
1027
-
1028
-
1029
-
1030
- if(sHtml)
1031
-
1032
- {
1033
-
1034
- oElement.innerHTML=sHtml;
1035
-
1036
- }
1037
-
1038
-
1039
-
1040
- if (aFunctions)
1041
-
1042
- {
1043
-
1044
- for (iFunctions=0;iFunctions< aFunctions.length;iFunctions++)
1045
-
1046
- {
1047
-
1048
- if (oPlugin.Browser.Other)
1049
-
1050
- {
1051
-
1052
- oElement.addEventListener(aFunctions[iFunctions][0],eval(aFunctions[iFunctions][1]),false);
1053
-
1054
- }
1055
-
1056
- if (oPlugin.Browser.Explorer)
1057
-
1058
- {
1059
-
1060
- oElement['on' + aFunctions[iFunctions][0]]= aFunctions[iFunctions][1];
1061
-
1062
- }
1063
-
1064
- }
1065
-
1066
- }
1067
-
1068
-
1069
-
1070
- if (oParent)
1071
-
1072
- {
1073
-
1074
- oParent.appendChild(oElement);
1075
-
1076
- }else{
1077
-
1078
- return oElement;
1079
-
1080
- }
1081
-
1082
- }
1083
-
1084
- };
1085
-
1086
-
1087
-
1088
-
1089
-
1090
- function twitter(url,title){
1091
-
1092
- return '<a href="https://twitter.com/share" data-text="'+ title +' (via http://www.fueto.com)" data-url="'+ url + '" class="twitter-share-button" data-count="horizontal">Tweet</a><scr'+'ipt type="text/javascript" src="//platform.twitter.com/widgets.js"></scr'+'ipt>';
1093
-
1094
- }
1095
-
1096
- function facebook(url){
1097
-
1098
-
1099
-
1100
- return '<iframe src="//www.facebook.com/plugins/like.php?href='+url+'&send=false&layout=button_count&show_faces=false&action=like&colorscheme=light&font" scrolling="no" frameborder="0" style="border:none; overflow:hidden;height:32px;width:115px" allowTransparency="true"></iframe>'
1101
-
1102
- }
1103
-
1104
-
1105
-
1106
- function plus(url){
1107
-
1108
- return '<g:plusone annotation="bubble" href="'+url+'" size="medium"></g:plusone>';
1109
-
1110
-
1111
-
1112
- }
1113
-
1114
-
1115
-
1116
- function counters(){
1117
-
1118
-
1119
-
1120
- jQuery("span#socialstats").each(
1121
-
1122
-
1123
-
1124
- function(i) {
1125
-
1126
- var url = jQuery(this).attr("url");
1127
-
1128
- var title = jQuery(this).attr("title");
1129
-
1130
- var append = '<table border=0"><tr>';
1131
-
1132
- append += '<td valign="top">'+twitter(url,title)+'</td>' ;
1133
-
1134
- append += '<td valign="top">'+plus(url)+'</td>' ;
1135
-
1136
- append += '<td valign="baseline">'+facebook(url)+'</td>' ;
1137
-
1138
- append += '</tr></table>';
1139
-
1140
- jQuery(this).html(append);
1141
-
1142
-
1143
-
1144
-
1145
-
1146
- });
1147
-
1148
- }
1149
-
1150
-
1
+ oPlugin = {
2
+ PluginWidth:80,
3
+ PluginHeight:1,
4
+ SlideBig:'Small',
5
+ LabelBgColor:'#f7f7f7',
6
+ BgColor:'#fefefe',
7
+ Color:'#6A6A6A',
8
+ FontSize:'11',
9
+ LinkColor:'#587cc8',
10
+ Timer:null,
11
+ LastBox:null,
12
+ Browser: {
13
+ Explorer: !!(navigator.appName=='Microsoft Internet Explorer'),
14
+ Other: !!!(navigator.appName=='Microsoft Internet Explorer'),
15
+ Chrome: !!(navigator.userAgent.toLowerCase().indexOf('chrome') > -1)
16
+ },
17
+
18
+ boxDialog: function(sId){
19
+
20
+ if(document.getElementById('content_'+sId).style.display=='block'){
21
+
22
+ if(oPlugin.LastBox){
23
+
24
+ if(document.getElementById('boxDialog_'+oPlugin.LastBox)){
25
+
26
+ jQuery('#boxDialog_'+oPlugin.LastBox).hide('slow');
27
+ document.getElementById('boxDialog_'+oPlugin.LastBox).style.zIndex=0;
28
+ }
29
+
30
+ jQuery('#content_'+oPlugin.LastBox).show('fast');
31
+
32
+
33
+ document.getElementById('arrow_'+oPlugin.LastBox).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png';
34
+ }
35
+ if(document.getElementById('boxDialog_'+sId)){
36
+
37
+ jQuery('#boxDialog_'+sId).show('slow');
38
+ document.getElementById('boxDialog_'+sId).style.zIndex=10;
39
+ }
40
+
41
+ jQuery('#content_'+sId).hide('fast');
42
+ oPlugin.LastBox=sId;
43
+
44
+ document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow_s.png';
45
+
46
+ }else{
47
+
48
+ oPlugin.LastBox=null;
49
+
50
+ if(document.getElementById('boxDialog_'+sId)){
51
+
52
+ jQuery('#boxDialog_'+sId).hide('slow');
53
+ }
54
+
55
+
56
+ jQuery('#content_'+sId).show('fast');
57
+
58
+ document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png';
59
+ }
60
+
61
+ },
62
+ boxDialogShow: function(sId){
63
+ if(document.getElementById('content_'+sId).style.display=='block'){
64
+ if(oPlugin.LastBox){
65
+ if(document.getElementById('boxDialog_'+oPlugin.LastBox)){
66
+ jQuery('#boxDialog_'+oPlugin.LastBox).hide('slow');
67
+ document.getElementById('boxDialog_'+oPlugin.LastBox).style.zIndex=0;
68
+ }
69
+
70
+ jQuery('#content_'+oPlugin.LastBox).show('fast');
71
+
72
+
73
+ document.getElementById('arrow_'+oPlugin.LastBox).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png';
74
+ }
75
+ if(document.getElementById('boxDialog_'+sId)){
76
+ jQuery('#boxDialog_'+sId).show('slow');
77
+ document.getElementById('boxDialog_'+sId).style.zIndex=10;
78
+ }
79
+ jQuery('#content_'+sId).hide('fast');
80
+ oPlugin.LastBox=sId;
81
+
82
+ document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow_s.png';
83
+ }
84
+
85
+ },
86
+ hideShowToolbar: function(){
87
+ if(document.getElementById('wpPlugin-MainFrame').style.display=='none'){
88
+ jQuery('#wpPlugin-MainFrame').show(1500);
89
+ document.getElementById('wpSocciable').className= 'wpSocciable'+oPlugin.SlideBig+''; document.getElementById('wpSocciable').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-sociable.png)";
90
+ document.getElementById('wpSocciableClose').className= 'wpSocciableClose'; document.getElementById('wpSocciableClose').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-close.png)";
91
+ document.getElementById('wpSocciable').style.marginLeft = '-20px';
92
+ document.getElementById('wpSocciableClose').style.marginLeft = '-20px';
93
+
94
+ }else{
95
+
96
+ document.getElementById('wpPlugin-MainFrame').style.display='none';
97
+ document.getElementById('wpSocciable').className= 'wpSocciable'+oPlugin.SlideBig+'-c'; document.getElementById('wpSocciable').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-sociable-c.png)";
98
+
99
+ document.getElementById('wpSocciableClose').className= 'wpSocciableClose-c'; document.getElementById('wpSocciableClose').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-close-c.png)";
100
+
101
+
102
+ }
103
+ },
104
+ focus:function(obj){
105
+ obj.style.opacity='1';
106
+ obj.style.filter="alpha(opacity='100')";
107
+ },
108
+ blur:function(obj){
109
+ obj.style.opacity='0.4';
110
+ obj.style.filter="alpha(opacity='40')";
111
+
112
+ },
113
+ refreshPosition: function(){
114
+
115
+ var scrolltop = jQuery('html,body').scrollTop();
116
+
117
+ if (oPlugin.Browser.Chrome){
118
+
119
+ scrolltop = document.body.scrollTop;
120
+ }
121
+
122
+
123
+ var div = jQuery('#wpPlugin-BOX');
124
+ var start = jQuery(div).offset().top;
125
+
126
+
127
+ var p = jQuery(window).scrollTop();
128
+ jQuery(div).css('position','fixed');
129
+
130
+
131
+
132
+ //document.getElementById('wpPlugin-BOX').style.top = (scrolltop+40) + 'px';
133
+ /*if(parseInt(document.getElementById('wpPlugin-BOX').style.top.replace('px',''))!=(scrolltop+40)){
134
+ document.getElementById('wpPlugin-BOX').style.display='none';
135
+
136
+ document.getElementById('wpPlugin-BOX').style.top = (scrolltop+40) + 'px';
137
+
138
+ if(parseInt(document.getElementById('wpPlugin-BOX').style.top.replace('px',''))>(scrolltop+40)){
139
+ document.getElementById('wpPlugin-BOX').style.top = (parseInt(document.getElementById('wpPlugin-BOX').style.top.replace('px',''))-1) + 'px';
140
+ }else{
141
+ document.getElementById('wpPlugin-BOX').style.top = (parseInt(document.getElementById('wpPlugin-BOX').style.top.replace('px',''))+1) + 'px';
142
+ }
143
+
144
+ document.getElementById('wpPlugin-BOX').style.display='';
145
+ }else{
146
+ clearInterval(oPlugin.Timer);
147
+ oPlugin.Timer=null;
148
+ }
149
+ */
150
+ },
151
+ toolbarStart: function(sID_Parent,sMove,sHeight,sWidth,sBgColor,sLabelBgColor,sSlideBig,sColor,sFontSize,sLinkColor){
152
+
153
+
154
+ if(sLinkColor){
155
+ oPlugin.LinkColor = sLinkColor;
156
+ }
157
+ if(sFontSize){
158
+ oPlugin.FontSize = sFontSize;
159
+ }
160
+
161
+ if(sColor){
162
+ oPlugin.Color = sColor;
163
+ }
164
+ if(sBgColor){
165
+ oPlugin.BgColor = sBgColor;
166
+ }
167
+ if(sSlideBig){
168
+ oPlugin.SlideBig = "Big";
169
+ }//If Null == Small!
170
+
171
+ if(sLabelBgColor){
172
+ oPlugin.LabelBgColor = sLabelBgColor;
173
+ }
174
+ if(sWidth){
175
+ oPlugin.PluginWidth = sWidth;
176
+
177
+ }
178
+ if(sHeight){
179
+ oPlugin.PluginHeight = sHeight;
180
+
181
+ }
182
+
183
+ if(sMove){
184
+ window.onscroll = function (e) {
185
+ if(!oPlugin.Timer){
186
+
187
+ oPlugin.Timer = setInterval("oPlugin.refreshPosition();", 50);
188
+ }
189
+ }
190
+ }
191
+ jQuery(document).ready(function(){
192
+
193
+ document.getElementById('wpPlugin-BOX').style.marginLeft = (21 - jQuery("body").css("padding-left").replace('px','')) + 'px';
194
+
195
+ });
196
+
197
+ var Base =
198
+ '<div align="center" class="wpPlugin-MainFrame" id="wpPlugin-BOX" style="width:'+(oPlugin.PluginWidth+2)+'px;position:absolute;margin-top:40px;display:block;height:'+oPlugin.PluginHeight+'px;" >'+
199
+ '<a href="http://blogplay.com" target="_blank" ><div id="wpSocciable" class="wpSocciable'+oPlugin.SlideBig+'" ></div></a>'+
200
+ '<div id="wpSocciableClose" class="wpSocciableClose" onclick="oPlugin.hideShowToolbar();"></div>'+
201
+ '<table id="wpPlugin-MainFrame" class="shape" cellspacing="0" cellpadding="0" width="100%">'+
202
+ '<tr>'+
203
+ '<td class="top-left" /><td class="top" /><td class="top-right" />'+
204
+ '</tr>'+
205
+ '<tr valign="top" >'+
206
+ '<td class="left" />'+
207
+ '<td align="left" class="frame" style="background-color:'+oPlugin.BgColor+';width:'+(oPlugin.PluginWidth-7+7)+'px;" >'+
208
+ '<ul class="toolbar" style="color:'+oPlugin.Color+';font-size:'+oPlugin.FontSize+'px;width:'+(oPlugin.PluginWidth-7+7)+'px;" id="toolbar" >'+
209
+ '</ul>'+
210
+ '</td>'+
211
+ '<td class="right" />'+
212
+ '</tr>'+
213
+ '<tr>'+
214
+ '<td class="bottom-left" /><td class="bottom" /><td class="bottom-right" />'+
215
+ '</tr>'+
216
+ '</table></div>';
217
+
218
+ document.getElementById(sID_Parent).innerHTML = Base + document.getElementById(sID_Parent).innerHTML;
219
+
220
+ oPlugin.InitializeShowObj = 'wpPlugin-MainFrame';
221
+ document.getElementById(oPlugin.InitializeShowObj).style.display='none';
222
+ oPlugin.InitializeShow = setInterval("jQuery('#'+oPlugin.InitializeShowObj).show(3000);clearInterval(oPlugin.InitializeShow);", 1000);
223
+ //oPlugin.blur(document.getElementById(oPlugin.InitializeShowObj));
224
+
225
+ //onmouseover="oPlugin.focus(this);" onmouseout="oPlugin.blur(this);" onmouseover"this.style.opacity=1;" onmouseout"this.style.opacity=0.4;"
226
+ /*if(!oPlugin.Browser.Explorer){
227
+
228
+ document.getElementById(sID_Parent).style.display='none';
229
+ oPlugin.InitializeShowObj = sID_Parent;
230
+ oPlugin.InitializeShow = setInterval("jQuery('#'+oPlugin.InitializeShowObj).show(3000);clearInterval(oPlugin.InitializeShow);", 1000);
231
+
232
+
233
+ }else{
234
+ document.getElementById('wpPlugin-MainFrame').style.filter='alpha(opacity=40)';
235
+
236
+ }*/
237
+
238
+ document.getElementById('wpPlugin-BOX').style.top = '20px'; document.getElementById('wpSocciable').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-sociable.png)"; document.getElementById('wpSocciableClose').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-close.png)";
239
+
240
+ },
241
+ CreateGoToTop:function(sId,sTitle,sContent){
242
+
243
+ oLi = oPlugin.createElement('li',sId,'item',null,'',null);
244
+
245
+
246
+
247
+ var oLi_Functions;
248
+
249
+ oLi_Functions = Array();
250
+ oLi_Functions[0]= new Array();
251
+ oLi_Functions[0][0] = 'click';
252
+ oLi_Functions[0][1] = function(){
253
+ // var scrolltop = jQuery('html,body').scrollTop();
254
+
255
+ if (oPlugin.Browser.Chrome){
256
+
257
+ document.body.scrollTop = 0;
258
+ }
259
+ else{
260
+ jQuery('html,body').scrollTop(0);
261
+ }
262
+
263
+ };
264
+
265
+ oLabel = oPlugin.createElement('div','title_' +sId,'title',oLi_Functions,'<img id="arrow_'+sId+'" src="'+jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png" /><span>'+sTitle+'</span>',null);
266
+ oLabel.style.background=oPlugin.LabelBgColor;
267
+ oLi.appendChild(oLabel);
268
+
269
+ oLi_Content = oPlugin.createElement('div','content_' +sId,'content',oLi_Functions,sContent,null);
270
+ if(sContent==''){oLi_Content.style.lineHeight='1px';oLi_Content.style.height='1px';oLi_Content.innerHTML='';}
271
+ oLi_Content.align='center';
272
+ oLi_Content.style.display='block';
273
+ oLi_Content.style.cursor='pointer';
274
+ oLi.appendChild(oLi_Content);
275
+
276
+ document.getElementById('toolbar').appendChild(oLi);
277
+
278
+ },
279
+
280
+ CreateSimpleNode:function(sId,sTitle,sContent,display){
281
+
282
+ oLi = oPlugin.createElement('li',sId,'item',null,'',null);
283
+
284
+
285
+
286
+ var oLi_Functions;
287
+
288
+ oLi_Functions = Array();
289
+ oLi_Functions[0]= new Array();
290
+ oLi_Functions[0][0] = 'click';
291
+ oLi_Functions[0][1] = function(){
292
+ if(document.getElementById('content_'+sId).style.display=='none'){
293
+
294
+ document.getElementById('content_'+sId).style.display='block';
295
+ document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png';
296
+
297
+ }else{
298
+ document.getElementById('content_'+sId).style.display='none';
299
+ document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow_s.png';
300
+ }
301
+ };
302
+
303
+ if(display){
304
+ arrow='';
305
+ }else{
306
+ arrow='_s';
307
+ }
308
+ oLabel = oPlugin.createElement('div','title_' +sId,'title',oLi_Functions,'<img id="arrow_'+sId+'" src="'+jQuery("#skyscraper_dir").val()+'images/toolbar/arrow'+arrow+'.png" /><span>'+sTitle+'</span>',null);
309
+ oLabel.style.background=oPlugin.LabelBgColor;
310
+ oLi.appendChild(oLabel);
311
+
312
+ oLi_Content = oPlugin.createElement('div','content_' +sId,'content',oLi_Functions,sContent,null);
313
+ if(sContent==''){oLi_Content.style.lineHeight='1px';oLi_Content.style.height='1px';oLi_Content.innerHTML='';}
314
+
315
+
316
+ oLi_Content.align='center';
317
+ if(display){
318
+ oLi_Content.style.display='block';
319
+ }else{
320
+ oLi_Content.style.display='none';
321
+ }
322
+ oLi.appendChild(oLi_Content);
323
+
324
+ document.getElementById('toolbar').appendChild(oLi);
325
+
326
+ },
327
+
328
+ CreateGoToHome:function(sId,sTitle,sContent){
329
+
330
+ oLi = oPlugin.createElement('li',sId,'item',null,'',null);
331
+
332
+
333
+
334
+ var oLi_Functions;
335
+
336
+ oLi_Functions = Array();
337
+ oLi_Functions[0]= new Array();
338
+ oLi_Functions[0][0] = 'click';
339
+ oLi_Functions[0][1] = function(){document.location.href ='http://'+ document.location.href.split("/")[2];};
340
+
341
+ oLabel = oPlugin.createElement('div','title_' +sId,'title',oLi_Functions,'<img id="arrow_'+sId+'" src="'+jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png" /><span>'+sTitle+'</span>',null);
342
+ oLabel.style.background=oPlugin.LabelBgColor;
343
+ oLi.appendChild(oLabel);
344
+
345
+ oLi_Content = oPlugin.createElement('div','content_' +sId,'content',oLi_Functions,sContent,null);
346
+ if(sContent==''){oLi_Content.style.lineHeight='1px';oLi_Content.style.height='1px';oLi_Content.innerHTML='';}
347
+ oLi_Content.align='center';
348
+ oLi_Content.style.display='block';
349
+ oLi_Content.style.cursor='pointer';
350
+ oLi.appendChild(oLi_Content);
351
+
352
+ document.getElementById('toolbar').appendChild(oLi);
353
+
354
+ },
355
+ CreateNode: function(sId,sTitle,sContent,sContentDialog,sContentDialogStyle,dialogHeight,dialogWidth){
356
+
357
+ oLi = oPlugin.createElement('li',sId,'item',null,'',null);
358
+
359
+ var oLi_Functions;
360
+
361
+ oLi_Functions = Array();
362
+ oLi_Functions[0]= new Array();
363
+
364
+ if (sContentDialogStyle == "banner"){
365
+
366
+ oLi_Functions[0][0] = '';
367
+ oLi_Functions[0][1] = '';
368
+
369
+ oLabel = oPlugin.createElement('div','title_' +sId,'title',oLi_Functions,'<img style="display:none" id="arrow_'+sId+'" src="" />',null);
370
+ oLabel.style.display = 'none';
371
+ }
372
+ else{
373
+
374
+ oLi_Functions[0][0] = 'click';
375
+ oLi_Functions[0][1] = function(){oPlugin.boxDialog(sId);};
376
+
377
+ oLabel = oPlugin.createElement('div','title_' +sId,'title',oLi_Functions,'<img id="arrow_'+sId+'" src="'+jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png" /><span>'+sTitle+'</span>',null);
378
+ oLabel.style.background = oPlugin.LabelBgColor;
379
+ }
380
+
381
+
382
+ oLi.appendChild(oLabel);
383
+
384
+
385
+ if(sContentDialog){
386
+ var oLi_BoxShape = '<table class="shape" cellspacing="0" cellpadding="0" height="'+(dialogHeight)+'" width="100%" >'+
387
+ '<tr>'+
388
+ '<td class="top-left" /><td class="top" /><td class="top-right" />'+
389
+ '</tr>'+
390
+ '<tr valign="top">'+
391
+ '<td class="left" style="font-size:10px;" >&nbsp;</td>'+
392
+ '<td align="left" style="background-color:'+oPlugin.BgColor+';width:'+(dialogWidth+50)+'px;" class="frame" >';
393
+ oLi_BoxShape += '';
394
+ oLi_BoxShape += '<span style="color:'+oPlugin.Color+';position:absolute;margin-left:';
395
+
396
+ if(oPlugin.Browser.Explorer){
397
+ oLi_BoxShape += (oPlugin.PluginWidth+dialogWidth-oPlugin.PluginWidth-12)+'px;';
398
+ }else{
399
+ oLi_BoxShape += (oPlugin.PluginWidth+dialogWidth-oPlugin.PluginWidth)+'px;';
400
+ }
401
+
402
+
403
+ oLi_BoxShape += 'margin-top:5px;font-size:11px;font-weight:bold;cursor:pointer;border:solid 1px '+oPlugin.Color+';padding:2px;line-height:9px;padding-top:0px;padding-bottom:2px;" onclick="oPlugin.boxDialog(\''+sId+'\')" >x</span>';
404
+ oLi_BoxShape += '<div class="boxTitleContent" style="font-size:'+(oPlugin.FontSize+2)+'px;color:'+oPlugin.Color+';font-weight:bold;background:'+oPlugin.LabelBgColor+';';
405
+
406
+ if(oPlugin.Browser.Explorer){
407
+ oLi_BoxShape += 'width:'+(dialogWidth+8)+'px;';
408
+ }else{
409
+ oLi_BoxShape += 'width:'+(dialogWidth+13)+'px;';
410
+ }
411
+
412
+ oLi_BoxShape += '" >&nbsp;&nbsp;&nbsp;&nbsp;'+sTitle+'</div>';
413
+
414
+ switch(sContentDialogStyle){
415
+
416
+ case 'List':
417
+
418
+ oLi_BoxShape += '<div align="left" style="height:'+(dialogHeight)+'px;margin:10px;margin-bottom:0px;padding-bottom:0px;width:100%;float:none;clear:both;" >';
419
+ oLi_BoxShape += '<ul align="left" >';
420
+ for(i=0;i<sContentDialog.length;i++){
421
+
422
+ oLi_BoxShape += '<li style="position:relative;color:#c1c1c1;margin-left:-20px;margin-bottom:5px;font-size:'+oPlugin.FontSize+'px;padding-bottom:5px;list-style:disc;font-weight:bold;">';
423
+ oLi_BoxShape += '<span style="color:'+oPlugin.Color+';" >'+sContentDialog[i][0]+'</span>&nbsp;&nbsp;';
424
+ oLi_BoxShape += '<span style="height:'+(oPlugin.FontSize+2)+'px;color:'+oPlugin.Color+';opacity:0.4;filter: alpha(opacity=40);" >'+sContentDialog[i][1]+'</span>&nbsp;&nbsp;';
425
+ oLi_BoxShape += '<a style="color:'+oPlugin.LinkColor+';" >'+sContentDialog[i][2]+'</a>';
426
+ oLi_BoxShape += '</li>';
427
+
428
+ }
429
+ oLi_BoxShape += '</ul>';
430
+ oLi_BoxShape += '</div>';
431
+
432
+ break;
433
+
434
+ case 'Urls':
435
+
436
+ oLi_BoxShape += '<div align="left" style="height:'+(dialogHeight)+'px;margin:10px;margin-bottom:0px;padding-bottom:0px;width:100%;float:none;clear:both;" >';
437
+ oLi_BoxShape += '<ul align="left" >';
438
+ for(i=0;i<sContentDialog.length;i++){
439
+
440
+ oLi_BoxShape += '<li style="color:#c1c1c1;margin-left:-20px;margin-bottom:5px;font-size:'+oPlugin.FontSize+'px;padding-bottom:5px;list-style:disc;font-weight:bold;" >';
441
+ oLi_BoxShape += '<a href="'+sContentDialog[i]+'" style="color:'+oPlugin.LinkColor+';" >'+sContentDialog[i]+'</a>';
442
+ oLi_BoxShape += '</li>';
443
+
444
+ }
445
+ oLi_BoxShape += '</ul>';
446
+ oLi_BoxShape += '</div>';
447
+
448
+ break;
449
+
450
+ case 'Notice':
451
+
452
+ //oPlugin.Browser.Explorer
453
+ oLi_BoxShape += '<ul style="margin-top:10px;margin-bottom:10px;margin-left:10px;padding-left:15px;width:'+(dialogWidth-50)+'px;" >';
454
+ for(i=0;i<sContentDialog.length;i++){
455
+
456
+ oLi_BoxShape += '<li style="font-size:'+oPlugin.FontSize+'px;';
457
+
458
+ if(i != sContentDialog.length-1){
459
+
460
+ oLi_BoxShape += 'padding-bottom:10px;border-bottom:solid 1px #c1c1c1;';
461
+ }
462
+
463
+ oLi_BoxShape +='list-style:disc;font-weight:bold;color:#c1c1c1;">';
464
+ oLi_BoxShape += '<a style="color:'+oPlugin.LinkColor+';" >'+sContentDialog[i][0]+'</a> ';
465
+ oLi_BoxShape += '<span style="height:'+(oPlugin.FontSize+2)+'px;color:'+oPlugin.Color+'; filter: alpha(opacity=40);opacity:0.4;" >'+sContentDialog[i][1]+'</span><br/>';
466
+ oLi_BoxShape += '<span style="height:'+(oPlugin.FontSize+2)+'px;color:'+oPlugin.Color+';filter: alpha(opacity=70);opacity:0.7;" >'+sContentDialog[i][2]+'';
467
+ oLi_BoxShape += ' - <a style="color:'+oPlugin.LinkColor+';" href="'+sContentDialog[i][3]+'" >'+sContentDialog[i][3]+'</a></span><br/>';
468
+ oLi_BoxShape += '<span style="height:'+(oPlugin.FontSize+2)+'px;color:'+oPlugin.Color+';opacity:0.4;filter: alpha(opacity=40);" >'+sContentDialog[i][4]+'</span>';
469
+ oLi_BoxShape += '</li>';
470
+
471
+ }
472
+ oLi_BoxShape += '</ul>';
473
+ break;
474
+
475
+ case 'Item':
476
+
477
+ oLi_BoxShape += '<div align="left" style="opacity:0.8;filter: alpha(opacity=80);height:'+(dialogHeight)+'px;margin:10px;margin-bottom:0px;margin-top:5px;padding-bottom:0px;width:100%;float:none;clear:both;" >';
478
+ oLi_BoxShape += '<ul align="left" >';
479
+
480
+ oLi_BoxShape += '<li style="color:#c1c1c1;margin-left:-20px;font-size:'+oPlugin.FontSize+'px;padding-bottom:5px;list-style:disc;font-weight:bold;" >';
481
+ oLi_BoxShape += '<span style="color:'+oPlugin.Color+';" >'+sContentDialog+'</span>';
482
+ oLi_BoxShape += '</li>';
483
+
484
+
485
+ oLi_BoxShape += '</ul>';
486
+ oLi_BoxShape += '</div>';
487
+
488
+ break;
489
+
490
+ default:
491
+
492
+ oLi_BoxShape += '<div align="center" style="height:'+(dialogHeight)+'px;width:100%;" ><div style="height:'+(dialogHeight)+'px;color:'+oPlugin.Color+';font-size:'+(oPlugin.FontSize-1)+'px;margin:5px;padding:0px;width:95%;float:none;clear:both;" >';
493
+ oLi_BoxShape += sContentDialog ;
494
+ oLi_BoxShape += '</div></div>';
495
+ break;
496
+
497
+ }
498
+
499
+
500
+
501
+ oLi_BoxShape += '<td class="right" style="font-size:10px;" >&nbsp;</td>'+
502
+ '</tr>'+
503
+ '<tr>'+
504
+ '<td class="bottom-left" /><td class="bottom" /><td class="bottom-right" />'+
505
+ '</tr>'+
506
+ '</table>';
507
+
508
+
509
+ oLi_BoxDialog = oPlugin.createElement('div','boxDialog_' +sId,'boxDialog',null,oLi_BoxShape,null);
510
+ oLi_BoxDialog.align='left';
511
+
512
+
513
+ if(dialogWidth){
514
+ oLi_BoxDialog.style.width=(dialogWidth+10)+'px';
515
+ }
516
+
517
+ if(dialogHeight){
518
+ if(oPlugin.Browser.Explorer){
519
+ oLi_BoxDialog.style.height=(dialogHeight+100)+'px';
520
+ }else{
521
+ oLi_BoxDialog.style.height=(dialogHeight+10)+'px';
522
+ }
523
+ }
524
+
525
+ oLi_BoxDialog.style.display='none';
526
+
527
+
528
+ oLi_BoxDialog.style.left=(oPlugin.PluginWidth-7+7)+'px';
529
+ oLi_BoxDialog.style.marginTop='-35px';
530
+
531
+ oLi.appendChild(oLi_BoxDialog);
532
+ }
533
+
534
+
535
+ oLi_Content = oPlugin.createElement('div','content_' +sId,'content',null,sContent,null);
536
+ if(sContent==''){oLi_Content.style.lineHeight='1px';oLi_Content.style.height='1px';oLi_Content.innerHTML='';}
537
+ oLi_Content.align='center';
538
+ oLi_Content.style.display='block';
539
+ oLi.appendChild(oLi_Content);
540
+
541
+
542
+ document.getElementById('toolbar').appendChild(oLi);
543
+ },
544
+ createElement: function(sType,sId,sClass,aFunctions,sHtml,oParent){
545
+
546
+ var oElement;
547
+
548
+ oElement=document.createElement(sType);
549
+ oElement.setAttribute('id',sId);
550
+ oElement.className=sClass;
551
+
552
+ if(sHtml)
553
+ {
554
+ oElement.innerHTML=sHtml;
555
+ }
556
+
557
+ if (aFunctions)
558
+ {
559
+ for (iFunctions=0;iFunctions< aFunctions.length;iFunctions++)
560
+ {
561
+ if (oPlugin.Browser.Other)
562
+ {
563
+ oElement.addEventListener(aFunctions[iFunctions][0],eval(aFunctions[iFunctions][1]),false);
564
+ }
565
+ if (oPlugin.Browser.Explorer)
566
+ {
567
+ oElement['on' + aFunctions[iFunctions][0]]= aFunctions[iFunctions][1];
568
+ }
569
+ }
570
+ }
571
+
572
+ if (oParent)
573
+ {
574
+ oParent.appendChild(oElement);
575
+ }else{
576
+ return oElement;
577
+ }
578
+ }
579
+ };
580
+ function twitter(url,title){
581
+ return '<a href="https://twitter.com/share" data-text="'+ title +' (via http://www.fueto.com)" data-url="'+ url + '" class="twitter-share-button" data-count="horizontal">Tweet</a><scr'+'ipt type="text/javascript" src="//platform.twitter.com/widgets.js"></scr'+'ipt>';
582
+ }
583
+
584
+ function facebook(url){
585
+
586
+ return '<iframe src="//www.facebook.com/plugins/like.php?href='+url+'&send=false&layout=button_count&show_faces=false&action=like&colorscheme=light&font" scrolling="no" frameborder="0" style="border:none; overflow:hidden;height:32px;width:115px" allowTransparency="true"></iframe>'
587
+ }
588
+
589
+ function plus(url){
590
+ return '<g:plusone annotation="bubble" href="'+url+'" size="medium"></g:plusone>';
591
+
592
+ }
593
+
594
+ function counters(){
595
+
596
+ jQuery("span#socialstats").each(
597
+
598
+ function(i) {
599
+ var url = jQuery(this).attr("url");
600
+ var title = jQuery(this).attr("title");
601
+ var append = '<table border=0"><tr>';
602
+ append += '<td valign="top">'+twitter(url,title)+'</td>' ;
603
+ append += '<td valign="top">'+plus(url)+'</td>' ;
604
+ append += '<td valign="baseline">'+facebook(url)+'</td>' ;
605
+ append += '</tr></table>';
606
+ jQuery(this).html(append);
607
+
608
+
609
+ });
610
+ }
611
+
612
+ var repeatBanner = 0;
613
+
614
+ function showBanner(timer, colorBack, colorLabel, colorFont, fontSize){
615
+
616
+ if (repeatBanner < 2){
617
+
618
+ jQuery('#boxDialog_New_Id_14 .frame').css("background-color", colorBack);
619
+ jQuery('#boxDialog_New_Id_14 .boxTitleContent').css("background-color", colorLabel);
620
+ jQuery('#boxDialog_New_Id_14 .boxTitleContent').css("color", colorFont);
621
+ jQuery('#boxDialog_New_Id_14 .boxTitleContent').css("font-size", fontSize);
622
+
623
+ oPlugin.boxDialog('New_Id_14');
624
+
625
+ setTimeout('showBanner('+timer+')', timer);
626
+
627
+ repeatBanner ++;
628
+ }
629
+ }
630
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -1,125 +1,247 @@
1
  === Sociable ===
2
 
3
  Author: sociable
 
4
  Contributors: sociable
 
5
  Tags: sociable, social bookmarking, social bookmarks, social icons, bookmarking, share, sharing, be sociable share, share and enjoy, digg, delicious, twitter, facebook, blinklist, stumbleupon, gmail, posterous, tumblr
 
6
  Requires at least: 2.6
 
7
  Tested up to: 3.3.1
8
- Stable tag: 4.2.1
 
 
 
 
9
 
10
 
11
 
12
- Sociable continues being the leader in the sharing space of WordPress plugins. Started more than 2 years ago, and with over 1,5mm downloads now, here comes the latest version 4.2.1 .
 
 
 
13
 
14
  == Description ==
15
 
16
- Sociable continues being the leader in the sharing space of WordPress plugins. Started more than 2 years ago, and with over 1,5mm downloads now, here comes the latest version 4.2.1, with everything you expect to get, and now introducing Sociable Skyscraper: the ultimate advanced packed plugin for setting up rating system on your WordPress blog. Sociable Skyscraper allows you to set up pages and comments with great degree of customization.
17
- About Sociable Skyscraper
18
- Sociable Skyscraper is the ultimate advanced and feature packed plugin for setting up rating system on your WordPress blog. Plugin allows you to set up different rating systems for posts, pages and comments with great degree of customization.
19
- List of features is so smart, very long and non-stop growing:
20
- You can get more Sociable with Sociable Skyscraper and easily getting Rating and Review of: posts, pages, comments, Facebook, G+, LinkedIN, Twitter. Multiple ratings for posts and pages. Latest twits, latests posts, follows, mentions. Visitor's counter, visitor's from Facebook and Twitter. As a plus you get an easy way to get TOP or HOME from Sociable Skyscraper.
21
 
22
- About Sociable Classic
23
- As you know, we've improved our visual interface, the default icons are now much more appealing, and a touch bit larger (you do want your readers to share your posts, don't you? :)
 
 
 
 
 
 
 
 
 
 
 
 
24
 
25
- Enjoy it now!!!
26
 
27
- Be Sociable, Share!!!
 
 
 
 
 
 
 
28
 
29
 
 
 
30
  [vimeo http://vimeo.com/31023294]
31
 
32
 
 
 
 
33
  [vimeo http://vimeo.com/31023684]
34
 
35
 
 
 
 
36
  Have technical support issues? Please leave them in the forum: http://wordpress.org/tags/sociable?forum_id=10
37
 
 
 
38
  Also use the forum for ideas, feedback, suggestions. We'll try to check the forum every day.
39
 
40
 
41
 
 
 
 
 
42
  What happened to the old icons? You can still use them in the new version, but they're not the default style anymore.
43
 
44
 
45
 
 
 
 
 
46
  Sociable finds its home outside of the WordPress environment on Blogplay.com-
47
 
48
 
49
 
50
- *** Sociable 4.2.1 ***
 
 
 
 
 
 
 
 
 
51
 
52
 
53
 
54
 
55
  = Recent Updates =
56
 
 
 
 
57
  * Changed the old motto "share and enjoy" for "Be Sociable, Share" much more attractive. Of course you can customize it to whatever you want.
58
 
 
 
59
  * Complete re-write to increase efficiency and speed of the plugin
60
 
 
 
61
  * New Sociable Skyscraper version, the ultimate advanced packed plugin for setting up rating system on your WordPress blog. Sociable Skyscraper allows you to set up pages and comments with great degree of customization.
62
 
63
 
 
 
 
64
  = Recently Added Sites =
65
 
 
 
66
  * Posterous
67
 
 
 
68
  * Sphinn
69
 
 
 
70
  * Tumblr
71
 
 
 
72
  * G+
73
 
 
 
74
  * LinkedIN
75
 
76
 
 
 
 
 
 
77
  = Recently Deleted Sites =
78
 
 
 
79
  * Mixx.com, recently acquired, doesn't support share functions anymore
80
 
 
 
81
  * Netvibes stopped sharing
82
 
 
 
83
  * Slashdot: New bookmark creation is no longer supported
84
 
 
 
85
  * And we deleted a bunch of others that were really not used that much
86
 
87
 
88
 
 
 
 
 
89
  = Special Thanks =
90
 
 
 
91
  Sociable plugin wouldn't be what it is today if it weren't for these people that helped us along the way:
92
 
 
 
93
  * Thanks to [WPzoom](http://http://www.wpzoom.com/wpzoom/500-free-icons-wpzoom-social-networking-icon-set/) for letting us to use their awesome icons
94
 
 
 
95
  * Also special thanks to [Webtreats etc](http://http://webtreats.mysitemyway.com/) for allowing us to use their great icons
96
 
97
 
98
 
 
 
 
 
99
  == Screenshots ==
100
 
 
 
101
  1. The Sociable backend, easily select sites and drag & drop to change the order of appearance.
102
 
 
 
103
  2. Sociable with its new default styling.
104
 
 
 
105
  3. Pick the style you want
106
 
 
 
107
  4. Or you can pick your own style
108
 
 
 
109
  5. Select which plugin want to customize
110
 
111
 
112
 
 
 
 
 
113
  == Installation ==
114
 
 
 
115
  1. Upload the extracted archive to `wp-content/plugins/`
116
 
 
 
117
  2. Activate the plugin through the 'Plugins' menu
118
 
 
 
119
  3. Open the plugin settings page Settings -> Sociable
120
 
 
 
121
  4. Adjust settings to your liking
122
 
 
 
123
  4. Enjoy!
124
 
125
 
@@ -129,703 +251,1419 @@ Sociable plugin wouldn't be what it is today if it weren't for these people that
129
 
130
 
131
 
 
 
 
 
 
 
 
 
 
 
 
 
132
 
133
 
134
 
135
  == Frequently Asked Questions ==
136
 
 
 
137
  = What happened to the old icons? =
138
 
 
 
139
  You can still use them. It's just they're not the default anymore.
140
 
141
 
142
 
 
 
 
 
143
  = I want to reach you, but not for a technical question =
144
 
 
 
145
  Please send us an email to sociableblogplay [ at ] gmail.com
146
 
147
 
148
 
 
 
 
 
149
  == Changelog ==
150
 
 
 
 
 
 
 
 
 
 
151
  = 4.2.1 =
152
 
 
 
153
  * FIXED: Some Fixes
154
 
 
 
155
  = 4.2.0 =
156
 
 
 
157
  * FIXED: Some Fixes
158
 
 
 
159
  = 4.1.9 =
160
 
 
 
161
  * FIXED: Some Fixes
162
 
 
 
163
  = 4.1.8 =
164
 
 
 
165
  * FIXED: Some Fixes
166
 
 
 
167
  = 4.1.7 =
168
 
 
 
169
  * FIXED: Some Fixes
170
 
 
 
171
  = 4.1.6 =
172
 
 
 
173
  * FIXED: Some Fixes
174
 
175
 
 
 
 
176
  = 4.1.5 =
177
 
 
 
178
  * FIXED: Some Fixes
179
 
180
 
181
 
 
 
 
 
182
  = 4.1.4 =
183
 
 
 
184
  * FIXED: Some Fixes
185
 
186
 
187
 
 
 
 
 
188
  = 4.1.3 =
189
 
 
 
190
  * FIXED: Some Fixes
191
 
192
 
193
 
194
- = 4.1.2 =
195
 
196
- * FIXED: Google plus problem
197
 
198
 
199
 
200
- = 4.1.1 =
201
 
202
- * ADDED: Facebook Like Counter, Twitter Counter, Google Plus Counter, Linkedin Counter,StumbleUpon Counter and Digg Counter
203
 
204
- * ADDED: Add Sociable at Top and Bottom of the post
205
 
 
206
 
207
 
208
- = 4.0.6 =
209
 
210
- * FIXED: Allow Sub Directory Blogs (http://domain.com/blog)
211
 
212
 
213
 
214
- = 4.0.5 =
215
 
216
- * FIXED: Other Upgrade issues
217
 
218
 
219
 
220
- = 4.0.4 =
221
 
222
- * FIXED: Upgrade issues
223
 
224
 
 
225
 
226
 
227
 
228
- = 4.0.3 =
229
 
230
- * Fix IIS 6.0 and PHP 5.3.x
231
 
232
 
233
 
234
- = 4.0.1 =
235
 
236
- * Changed the old motto "share and enjoy" for "Be Sociable, Share" much more attractive. Of cours you can customize it to whatever you want.
237
 
238
- * Complete re-write to increase efficiency and speed of the plugin
239
 
240
- * Updated it for up to Wordpress version 3.2.1
241
 
242
 
243
 
244
- = 3.5.2 =
245
 
246
- * Added new services MOB, ??, ????, QQ??, LaTafanera, SheToldMe, viadeo FR, Diggita, Design Float
247
 
248
- * Removed ID properties from sociable anchor tags (share links)
249
 
250
- * FIXED: Having a custom image directory now disables sprite usage, and the icons of services are displayed on sociable configuration page.
251
 
 
252
 
253
 
254
- = 3.5.1 =
255
 
256
- * Fixed the xhtml validation issues
257
 
258
- * 'target=blank' (open link in new window) issue solved
259
 
260
- * Sprites can now be disabled, allowing for custom icons
261
 
262
- * Sprites have been disabled for RSS
263
 
264
- * You can now deactivate the blogplay widget from your wordpress dashboard
265
 
266
 
267
 
268
- = 3.5.0 =
269
 
270
- * The icons now load in a CSS Sprites, allowing for faster download times.
271
 
272
- * These services have been discontinued: BlogMeme FR, BlogMeme SP, co.mments, DesignFloat.com, PPNow.net, Symbaloo.com.
273
 
274
- * You can now add links to your browser favorites.
275
 
276
- * iFrames added for services that support them.
277
 
278
- * You can know unselect the transparency effect on the sociable icons.
279
 
280
 
281
 
282
- = 3.4.4 =
283
 
284
- * Another fix for the sociableoff dilemma's, no backwards compatibility unfortunately, so disable sociable again on pages where you want to disable it.
285
 
286
 
287
 
288
- = 3.4.3 =
289
 
290
- * Fixed the bug mentioned [here](http://wordpress.org/support/topic/288487) and [here](http://wordpress.org/support/topic/290753) that made it impossible to disable Sociable on a per post/page basis (for real, now).
291
 
 
292
 
293
 
294
- = 3.4.2 =
295
 
296
- * Added a site specific id to each links anchor tag.
297
 
298
- * Fixed the bug mentioned [here](http://wordpress.org/support/topic/288487) and [here](http://wordpress.org/support/topic/290753) that made it impossible to disable Sociable on a per post/page basis.
299
 
300
- * "Reintroduced" TwitThis as Twitter.
301
 
302
 
303
 
304
- = 3.4.1 =
305
 
306
- * Fixed the Sphinn submit link.
307
 
 
308
 
309
 
310
- = 3.4 =
311
 
312
- * Added the option to add a site to Sociable through a filter, read [How to add a site to Sociable](http://yoast.com/add-sites-to-sociable/).
313
 
314
 
315
 
316
- = 3.3.8 =
317
 
318
- * Fixed the option to disable Sociable on a per post / page basis.
319
 
320
 
 
321
 
322
- = 3.3.7 =
323
 
324
- * More bugfixery.
325
 
326
 
327
 
328
- = 3.3.6 =
329
 
330
- * Reverted plugin URL fix because of too many people on old WordPress installations complaining. (Upgrade, people, upgrade!)
331
 
332
- * Added PHPDoc throughout the plugins code.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
333
 
334
 
335
 
336
- = 3.3.5 =
337
 
338
- * Added a Hyves button.
339
 
340
- * Fixed MSN Reporter button.
341
 
 
342
 
343
 
344
- = 3.3.4 =
345
 
346
- * Fixed RSS.
347
 
348
 
349
 
350
- = 3.3.3 =
351
 
352
- * Brought back Tumblr
353
 
354
- * Updated PDF link
355
 
356
- * Added Posterous
357
 
358
- * Smushed all images using [Smush.it](http://smush.it/), reducing the total image file size with 31.72 KB (42.03%)!
359
 
360
- * Removed pre - 2.6 compatibility code
361
 
362
 
 
363
 
364
- = 3.3.1 =
365
 
366
- * Added new option to use pure text links, instead of image links.
367
 
368
- * Fixed small issue with using target=blank links and the new awe.sm options.
369
 
370
- * Allowed for usage without an awe.sm API key, as awe.sm falls back to "default" awe.sm shortlinks.
371
 
372
- * Code cleanup for more efficiency in the backend on saving options.
373
 
374
- * General code cleanup.
375
 
376
- * Moved to the new default Changelog markup.
377
 
378
 
 
379
 
380
- = 3.3 =
381
 
382
- * Added awe.sm integration and some sites.
383
 
 
384
 
385
 
386
- = 3.2.3 =
387
 
388
- * Removed the last bit of non jQuery javascript.
389
 
390
- * Improved styling and visual feedback when selecting a site.
391
 
392
 
393
 
394
- = 3.2.2 =
395
 
396
- * Moved style loading to admin_print_styles and scripts to admin_print_scripts.
397
 
398
 
 
399
 
400
- = 3.2.1 =
401
 
402
- * Fixed a bug with printing styles in 2.8 beta.
403
 
 
404
 
405
 
406
- = 3.2 =
407
 
408
- This is a MAJOR update to Sociable. Major Thanks to Jean-Paul of [iPhoneclub](http://www.iphoneclub.nl/) for all his work in looking up all the sites. The full list of changes:
409
 
410
 
411
 
412
- * Restored sociable-admin.js, as it got accidentally removed.
413
 
414
- * Added `class="sociablefirst"` to the first site in the list and `class="sociablelast"` to the last one.
415
 
416
- * Added:
417
 
418
- * An RSS button, which links to your sites RSS feed
419
 
420
- * Printfriendly.com for both printing and creating a PDF, replacing the original "Print" function, which didn't work from RSS
421
 
422
- * Current
423
 
424
- * FriendFeed
425
 
426
- * MSN Reporter.nl
427
 
428
- * FS Daily
429
 
430
- * Hello TXT
431
 
432
- * Removed the following sites that were no longer working or active:
433
 
434
- * BlinkBits
435
 
436
- * Blogmemes.cn, .net, .jp
437
 
438
- * Blogsvine
439
 
440
- * Book.mark.hu
441
 
442
- * Bumpzee
443
 
444
- * Del.irio.us
445
 
446
- * Feed Me Links
447
 
448
- * Furl (replaced by Diigo)
449
 
450
- * GeenRedactie
451
 
452
- * Kick.ie
453
 
454
- * Leonaut
455
 
456
- * Magnolia
457
 
458
- * Plug IM
459
 
460
- * Pownce
461
 
462
- * Salesmarks
463
 
464
- * Scuttle
465
 
466
- * Shadows
467
 
468
- * Smarking
469
 
470
- * Spurl
471
 
472
- * Taggly
473
 
474
- * Tailrank
475
 
476
- * Tumblr (due to the change to a POST API, which we, unfortunately, can't support with Sociable)
477
 
478
- * Updated the following sites to include the excerpt when submitting:
479
 
480
- * Connotea
481
 
482
- * Delicious
483
 
484
- * Digg
485
 
486
- * Ekudos
487
 
488
- * Google Bookmarks
489
 
490
- * NuJij
491
 
492
- * Ping.fm
493
 
494
- * Otherwise updated:
495
 
496
- * Google Bookmarks (new icon)
497
 
498
- * Fleck (New URL)
499
 
500
- * Rec6 (new URL)
501
 
502
 
503
 
504
- = 3.1.1 =
505
 
506
- * Fixed bug with stylesheet introduced in 3.1.
507
 
508
 
 
509
 
510
- = 3.1 =
511
 
512
- * Converted all images to PNG.
513
 
514
- * Cleaned up usage of javascript in the backend and switched to the jquery library that comes with WordPress.
515
 
516
- * Allowed for usage of an external image directory.
517
 
518
- * Removed pre 2.6 compatibility fixes.
519
 
520
 
521
 
522
- = 3.0.6 =
523
 
524
- * Fixed xhtml bug in Netvibes integration.
525
 
526
- * Added Bitacoras.
527
 
528
 
529
 
530
- = 3.0.5 =
531
 
532
- * Added Identi.ca.
533
 
534
- * Fixed a bug in Yoast Posts widget.
535
 
 
536
 
537
 
538
- = 3.0.4 =
539
 
540
- * Added Netvibes.
541
 
542
 
543
 
544
- = 3.0.3 =
545
 
546
- * Security enhancements, thx to Mark Jaquith.
547
 
548
 
549
 
550
- = 3.0.2 =
551
 
552
- * Fixed CSS bug introduced in 3.0.
553
 
554
 
 
555
 
556
- = 3.0.1 =
557
 
558
- * Removed some other, now obsolete, code, reducing the code size by another 4KB.
559
 
 
560
 
561
 
562
- = 3.0 =
563
 
564
- * Fixed IE bug in admin.
565
 
566
- * Cleaned up Admin Area and changed support messages.
567
 
568
- * Removed directory checking for all images (speeds up incredibly).
569
 
570
- * Made display: inline !important to prevent vertical icon display.
571
 
572
- * Updated Wykop icon.
573
 
574
 
575
 
576
- = 2.9.15 =
577
 
578
- * Added a fallback for strip_shortcodes to maintain backwards compatibility with WordPress 2.3 and below.
579
 
580
 
 
581
 
582
- = 2.9.14 =
583
 
584
- * Made sure there are no tags or shortcodes in the excerpt.
585
 
586
- * Added ping.fm.
587
 
588
- * Removed indiagram (shut down).
589
 
590
 
591
 
592
- = 2.9.13 =
593
 
594
- * Changed Facebook link from sharer.php (meant for a popup window) to share.php (which has the actual menu on it etc.).
595
 
596
 
 
597
 
598
- = 2.9.12 =
599
 
600
- * Added Tip'd.
601
 
602
 
603
 
604
- = 2.9.11 =
605
 
606
- * Added settings link and Ozh admin menu icon.
607
 
 
608
 
609
 
610
- = 2.9.10 =
611
 
612
- * Fixes issue with excerpt not being urlencoded.
613
 
614
 
615
 
616
- = 2.9.9 =
617
 
618
- * Fixes for custom fields issues.
619
 
620
 
 
621
 
622
- = 2.9.8 =
623
 
624
- * Fixes for WP 2.7.
625
 
626
 
627
 
628
- = 2.9.6 =
629
 
630
- * Added Symbaloo and Tumblr.
631
 
 
632
 
633
 
634
- = 2.9.5 =
635
 
636
- * Fixed Fark & Propeller links.
637
 
638
- * Added missing i18n strings.
639
 
640
- * Added Yahoo Buzz.
641
 
642
 
643
 
644
- = 2.9.4 =
645
 
646
- * Removed PopCurrent and Rawsugar as they no longer exist.
647
 
648
- * Renamed BlueDot to Faves.
649
 
650
 
651
 
652
- = 2.9.3 =
653
 
654
- * Added Leonaut & MySpace.
655
 
656
- * Fixed plugin description.
657
 
658
- * Added option to disable Sociable on a per post basis.
659
 
660
- * Added option to display sociable on tag pages.
661
 
662
- * Added extra security to config page.
663
 
664
- * Fixed print button.
665
 
666
- * Fixed Twitter functionality.
667
 
668
 
669
 
670
- = 2.9.2 =
671
 
672
- * Added Swedish and Chinese localisations, thx to [Mikael Jorhult](http://www.mishkin.se/) and [Hugo Chen](http://take-ez.com/).
673
 
674
 
675
 
676
- = 2.9.1 =
677
 
678
- * Fixed bug where jQuery UI would be loaded twice.
679
 
680
 
 
681
 
682
- = 2.9 =
683
 
684
- * Removed Tool-Man in favor of jQuery, thx to Martin Joosse.
685
 
 
686
 
687
 
688
- = 2.8.4 =
689
 
690
- * General bugfixes.
691
 
692
 
693
 
694
- = 2.8.3 =
695
 
696
- * Added wikio.it, upnews.it, muti.co.za.
697
 
698
- * Made LinkedIn work even better.
699
 
700
- * Made opening in a new window optional.
701
 
702
 
703
 
704
- = 2.8.2 =
705
 
706
- * Now adds icons to feeds with excerpts too.
707
 
708
- * Added LinkedIn.
709
 
710
 
711
 
712
- = 2.8.1 =
713
 
714
- * Fixed some small issues.
715
 
716
- * Made sure tagline shows up again.
717
 
718
 
 
719
 
720
- = 2.8 =
721
 
722
- * Added option to show bookmark icons in feed.
723
 
724
- * Added Ratimarks.
725
 
726
- * Fixed xhtml compliance.
727
 
728
- * Fixed blue dot bug.
729
 
730
 
 
731
 
732
- = 2.6.9 =
733
 
734
- * Fixed WP 2.6 compatibility.
735
 
736
 
737
 
738
- = 2.6.8 =
739
 
740
- * Updated inline documentation.
741
 
 
742
 
743
 
744
- = 2.6.7 =
745
 
746
- * Renamed Sk*rt to Kirtsy.
747
 
748
- * Added designfloat.
749
 
750
- * Fixed description.
751
 
752
 
753
 
754
- = 2.5.4 =
755
 
756
- * Added HealthRanker, N4G, Meneame, BarraPunto, Laaik.it and E-mail option.
757
 
 
758
 
759
 
760
- = 2.5.3 =
761
 
762
- * Added Global Grind, Salesmarks, Webnews.de, Xerpi, Yigg.
763
 
764
 
765
 
766
- = 2.5.2 =
767
 
768
- * Added NuJIJ, eKudos, Sk-rt, Socialogs and MisterWong.de.
769
 
770
 
771
 
772
- = 2.5.1 =
773
 
774
- * Swapped Netscape for Propeller.
775
 
776
 
777
 
778
- Special thanks to [Robert Harm](http://www.die-truppe.com/) for coming up with loads of nice ideas.
779
 
780
 
781
 
782
- == Installation ==
783
 
784
 
785
 
786
- Download, Upgrading, Installation:
787
 
788
 
789
 
790
- Upgrade
791
 
 
792
 
793
 
794
- 1. First deactivate Sociable
795
 
796
- 1. Remove the `sociable` directory
797
 
798
 
799
 
800
- **Install**
801
 
802
 
803
 
804
- 1. Unzip the `sociable.zip` file.
805
 
806
- 1. Upload the the `sociable` folder (not just the files in it!) to your `wp-contents/plugins` folder. If you're using FTP, use 'binary' mode.
807
 
808
 
809
 
810
- **Activate**
811
 
812
 
813
 
814
- 1. In your WordPress administration, go to the Plugins page
815
 
816
- 1. Activate the Sociable plugin and a subpage for Sociable will appear
817
 
818
- in your Options menu.
819
 
820
 
 
821
 
822
- If you find any bugs or have any ideas, please mail me.
823
 
824
 
825
 
826
- **Advanced Users**
827
 
828
 
829
 
830
  For advanced use of the plugin, see the [Sociable](http://www.blogplay.com/sociable-for-wordpress) page on [Blogplay](http://www.blogplay.com/plugin)
831
 
 
 
1
  === Sociable ===
2
 
3
  Author: sociable
4
+
5
  Contributors: sociable
6
+
7
  Tags: sociable, social bookmarking, social bookmarks, social icons, bookmarking, share, sharing, be sociable share, share and enjoy, digg, delicious, twitter, facebook, blinklist, stumbleupon, gmail, posterous, tumblr
8
+
9
  Requires at least: 2.6
10
+
11
  Tested up to: 3.3.1
12
+
13
+ Stable tag: 4.2.2
14
+
15
+
16
+
17
 
18
 
19
 
20
+
21
+ Sociable continues being the leader in the sharing space of WordPress plugins. Started more than 2 years ago, and with over 1,5mm downloads.
22
+
23
+
24
 
25
  == Description ==
26
 
 
 
 
 
 
27
 
28
+ Sociable continues being the fastest growing leader in the sharing space of WordPress plugins. Started more than 2 years ago, and with over 1.5 million downloads now, here comes the latest version: 4.2.2 After introducing Sociable Skyscraper, the ultimate advanced and feature-packed plugin for setting up a rating system on your WordPress blog, we've developed Sociable Slider. It is sort of banner that reminds your readers to spread the word. You can select and customize several features, such as text, color, and length in order to ensure your readers and their friends a great Sociable Experience.
29
+ Sociable Skyscraper allows you to set up pages and comments with a great degree of customization.
30
+
31
+
32
+ = About Sociable Skyscraper =
33
+
34
+ Sociable Skyscraper is the ultimate advanced and feature-packed plugin for setting up a rating system on your WordPress blog. This plugin allows you to set up different rating systems for posts, pages and comments with a great degree of customization.
35
+ Sociable Skyscraper's list of features is smart, extensive and ever-growing:
36
+ You can get even more Sociable with Sociable Skyscraper and: Rating and Review of: posts, pages, comments, Facebook, G+, LinkedIN, and Twitter. Multiple ratings for posts and pages. Latest tweets, latest posts, follows, and mentions. Visitor counter, visitors from Facebook and Twitter. As an added bonus, you also get an easy way to get to the TOP of the page or back HOME from Sociable Skyscraper.
37
+
38
+ And now the over 1.5 million WordPress Blogs with the Sociable Plugin can also use the Inbound.org icon. Inbound.org is a for-fun partnership of Rand from Moz and Dharmesh from HubSpot which offers community-curated marketing news. We like their idea so much and we hope you enjoy discovering and sharing great stuff from the inbound marketing fields of blogging, SEO, Social media, content marketing, conversion rate optimization, web analytics and more.
39
+
40
+
41
+ We're constantly interacting with you via our Forum and/or emails, which means we're enhancing our free tool faster and more accurately thanks to your feedback. Please tell us your comments so we can make it better together.
42
 
 
43
 
44
+ = About Sociable Classic =
45
+
46
+ As you know, we've recently improved our visual interface. The default icons are now much more appealing, and a tad bit larger (you want your readers to share your posts, don't you?)
47
+
48
+ Enjoy it now!
49
+
50
+ Be Sociable, Share!
51
+
52
 
53
 
54
+
55
+
56
  [vimeo http://vimeo.com/31023294]
57
 
58
 
59
+
60
+
61
+
62
  [vimeo http://vimeo.com/31023684]
63
 
64
 
65
+
66
+
67
+
68
  Have technical support issues? Please leave them in the forum: http://wordpress.org/tags/sociable?forum_id=10
69
 
70
+
71
+
72
  Also use the forum for ideas, feedback, suggestions. We'll try to check the forum every day.
73
 
74
 
75
 
76
+
77
+
78
+
79
+
80
  What happened to the old icons? You can still use them in the new version, but they're not the default style anymore.
81
 
82
 
83
 
84
+
85
+
86
+
87
+
88
  Sociable finds its home outside of the WordPress environment on Blogplay.com-
89
 
90
 
91
 
92
+
93
+
94
+
95
+
96
+ *** Sociable 4.2.2 ***
97
+
98
+
99
+
100
+
101
+
102
 
103
 
104
 
105
 
106
  = Recent Updates =
107
 
108
+ * Add inbound.org share icon
109
+
110
+
111
  * Changed the old motto "share and enjoy" for "Be Sociable, Share" much more attractive. Of course you can customize it to whatever you want.
112
 
113
+
114
+
115
  * Complete re-write to increase efficiency and speed of the plugin
116
 
117
+
118
+
119
  * New Sociable Skyscraper version, the ultimate advanced packed plugin for setting up rating system on your WordPress blog. Sociable Skyscraper allows you to set up pages and comments with great degree of customization.
120
 
121
 
122
+
123
+
124
+
125
  = Recently Added Sites =
126
 
127
+
128
+
129
  * Posterous
130
 
131
+
132
+
133
  * Sphinn
134
 
135
+
136
+
137
  * Tumblr
138
 
139
+
140
+
141
  * G+
142
 
143
+
144
+
145
  * LinkedIN
146
 
147
 
148
+
149
+ * Inbound
150
+
151
+
152
+
153
  = Recently Deleted Sites =
154
 
155
+
156
+
157
  * Mixx.com, recently acquired, doesn't support share functions anymore
158
 
159
+
160
+
161
  * Netvibes stopped sharing
162
 
163
+
164
+
165
  * Slashdot: New bookmark creation is no longer supported
166
 
167
+
168
+
169
  * And we deleted a bunch of others that were really not used that much
170
 
171
 
172
 
173
+
174
+
175
+
176
+
177
  = Special Thanks =
178
 
179
+
180
+
181
  Sociable plugin wouldn't be what it is today if it weren't for these people that helped us along the way:
182
 
183
+
184
+
185
  * Thanks to [WPzoom](http://http://www.wpzoom.com/wpzoom/500-free-icons-wpzoom-social-networking-icon-set/) for letting us to use their awesome icons
186
 
187
+
188
+
189
  * Also special thanks to [Webtreats etc](http://http://webtreats.mysitemyway.com/) for allowing us to use their great icons
190
 
191
 
192
 
193
+
194
+
195
+
196
+
197
  == Screenshots ==
198
 
199
+
200
+
201
  1. The Sociable backend, easily select sites and drag & drop to change the order of appearance.
202
 
203
+
204
+
205
  2. Sociable with its new default styling.
206
 
207
+
208
+
209
  3. Pick the style you want
210
 
211
+
212
+
213
  4. Or you can pick your own style
214
 
215
+
216
+
217
  5. Select which plugin want to customize
218
 
219
 
220
 
221
+
222
+
223
+
224
+
225
  == Installation ==
226
 
227
+
228
+
229
  1. Upload the extracted archive to `wp-content/plugins/`
230
 
231
+
232
+
233
  2. Activate the plugin through the 'Plugins' menu
234
 
235
+
236
+
237
  3. Open the plugin settings page Settings -> Sociable
238
 
239
+
240
+
241
  4. Adjust settings to your liking
242
 
243
+
244
+
245
  4. Enjoy!
246
 
247
 
251
 
252
 
253
 
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
 
267
 
268
 
269
  == Frequently Asked Questions ==
270
 
271
+
272
+
273
  = What happened to the old icons? =
274
 
275
+
276
+
277
  You can still use them. It's just they're not the default anymore.
278
 
279
 
280
 
281
+
282
+
283
+
284
+
285
  = I want to reach you, but not for a technical question =
286
 
287
+
288
+
289
  Please send us an email to sociableblogplay [ at ] gmail.com
290
 
291
 
292
 
293
+
294
+
295
+
296
+
297
  == Changelog ==
298
 
299
+
300
+ = 4.2.2 =
301
+
302
+
303
+ * Social Banner and settings
304
+ * Inbound icon
305
+ * FIXED: Some Fixes
306
+
307
+
308
  = 4.2.1 =
309
 
310
+
311
+
312
  * FIXED: Some Fixes
313
 
314
+
315
+
316
  = 4.2.0 =
317
 
318
+
319
+
320
  * FIXED: Some Fixes
321
 
322
+
323
+
324
  = 4.1.9 =
325
 
326
+
327
+
328
  * FIXED: Some Fixes
329
 
330
+
331
+
332
  = 4.1.8 =
333
 
334
+
335
+
336
  * FIXED: Some Fixes
337
 
338
+
339
+
340
  = 4.1.7 =
341
 
342
+
343
+
344
  * FIXED: Some Fixes
345
 
346
+
347
+
348
  = 4.1.6 =
349
 
350
+
351
+
352
  * FIXED: Some Fixes
353
 
354
 
355
+
356
+
357
+
358
  = 4.1.5 =
359
 
360
+
361
+
362
  * FIXED: Some Fixes
363
 
364
 
365
 
366
+
367
+
368
+
369
+
370
  = 4.1.4 =
371
 
372
+
373
+
374
  * FIXED: Some Fixes
375
 
376
 
377
 
378
+
379
+
380
+
381
+
382
  = 4.1.3 =
383
 
384
+
385
+
386
  * FIXED: Some Fixes
387
 
388
 
389
 
 
390
 
 
391
 
392
 
393
 
394
+ = 4.1.2 =
395
 
 
396
 
 
397
 
398
+ * FIXED: Google plus problem
399
 
400
 
 
401
 
 
402
 
403
 
404
 
 
405
 
406
+ = 4.1.1 =
407
 
408
 
409
 
410
+ * ADDED: Facebook Like Counter, Twitter Counter, Google Plus Counter, Linkedin Counter,StumbleUpon Counter and Digg Counter
411
 
 
412
 
413
 
414
+ * ADDED: Add Sociable at Top and Bottom of the post
415
 
416
 
417
 
 
418
 
 
419
 
420
 
421
 
422
+ = 4.0.6 =
423
 
 
424
 
 
425
 
426
+ * FIXED: Allow Sub Directory Blogs (http://domain.com/blog)
427
 
428
 
429
 
 
430
 
 
431
 
 
432
 
 
433
 
434
+ = 4.0.5 =
435
 
436
 
 
437
 
438
+ * FIXED: Other Upgrade issues
439
 
 
440
 
 
441
 
 
442
 
 
443
 
444
 
445
 
446
+ = 4.0.4 =
447
 
 
448
 
 
449
 
450
+ * FIXED: Upgrade issues
451
 
 
452
 
 
453
 
454
 
455
 
 
456
 
 
457
 
458
 
459
 
 
460
 
 
461
 
462
+ = 4.0.3 =
463
 
464
 
 
465
 
466
+ * Fix IIS 6.0 and PHP 5.3.x
467
 
 
468
 
 
469
 
470
 
471
 
 
472
 
 
473
 
474
+ = 4.0.1 =
475
 
476
 
 
477
 
478
+ * Changed the old motto "share and enjoy" for "Be Sociable, Share" much more attractive. Of cours you can customize it to whatever you want.
479
 
480
 
481
 
482
+ * Complete re-write to increase efficiency and speed of the plugin
483
 
 
484
 
485
 
486
+ * Updated it for up to Wordpress version 3.2.1
487
 
 
488
 
 
489
 
490
 
491
 
 
492
 
 
493
 
494
+ = 3.5.2 =
495
+
496
+
497
+
498
+ * Added new services MOB, ??, ????, QQ??, LaTafanera, SheToldMe, viadeo FR, Diggita, Design Float
499
+
500
+
501
+
502
+ * Removed ID properties from sociable anchor tags (share links)
503
+
504
+
505
+
506
+ * FIXED: Having a custom image directory now disables sprite usage, and the icons of services are displayed on sociable configuration page.
507
+
508
+
509
+
510
+
511
+
512
+
513
+
514
+ = 3.5.1 =
515
+
516
+
517
+
518
+ * Fixed the xhtml validation issues
519
+
520
+
521
+
522
+ * 'target=blank' (open link in new window) issue solved
523
+
524
+
525
+
526
+ * Sprites can now be disabled, allowing for custom icons
527
+
528
+
529
+
530
+ * Sprites have been disabled for RSS
531
+
532
+
533
+
534
+ * You can now deactivate the blogplay widget from your wordpress dashboard
535
+
536
+
537
+
538
+
539
+
540
+
541
+
542
+ = 3.5.0 =
543
+
544
+
545
+
546
+ * The icons now load in a CSS Sprites, allowing for faster download times.
547
+
548
+
549
+
550
+ * These services have been discontinued: BlogMeme FR, BlogMeme SP, co.mments, DesignFloat.com, PPNow.net, Symbaloo.com.
551
+
552
+
553
+
554
+ * You can now add links to your browser favorites.
555
+
556
+
557
+
558
+ * iFrames added for services that support them.
559
+
560
+
561
+
562
+ * You can know unselect the transparency effect on the sociable icons.
563
+
564
+
565
+
566
+
567
+
568
+
569
+
570
+ = 3.4.4 =
571
+
572
+
573
+
574
+ * Another fix for the sociableoff dilemma's, no backwards compatibility unfortunately, so disable sociable again on pages where you want to disable it.
575
+
576
+
577
+
578
+
579
+
580
+
581
+
582
+ = 3.4.3 =
583
+
584
+
585
+
586
+ * Fixed the bug mentioned [here](http://wordpress.org/support/topic/288487) and [here](http://wordpress.org/support/topic/290753) that made it impossible to disable Sociable on a per post/page basis (for real, now).
587
+
588
+
589
+
590
+
591
+
592
+
593
+
594
+ = 3.4.2 =
595
+
596
+
597
+
598
+ * Added a site specific id to each links anchor tag.
599
+
600
+
601
+
602
+ * Fixed the bug mentioned [here](http://wordpress.org/support/topic/288487) and [here](http://wordpress.org/support/topic/290753) that made it impossible to disable Sociable on a per post/page basis.
603
+
604
+
605
+
606
+ * "Reintroduced" TwitThis as Twitter.
607
+
608
+
609
+
610
+
611
+
612
+
613
+
614
+ = 3.4.1 =
615
+
616
+
617
+
618
+ * Fixed the Sphinn submit link.
619
+
620
+
621
+
622
+
623
+
624
+
625
+
626
+ = 3.4 =
627
+
628
+
629
+
630
+ * Added the option to add a site to Sociable through a filter, read [How to add a site to Sociable](http://yoast.com/add-sites-to-sociable/).
631
+
632
+
633
+
634
+
635
+
636
+
637
+
638
+ = 3.3.8 =
639
+
640
+
641
+
642
+ * Fixed the option to disable Sociable on a per post / page basis.
643
+
644
+
645
+
646
+
647
+
648
+
649
+
650
+ = 3.3.7 =
651
+
652
+
653
+
654
+ * More bugfixery.
655
+
656
+
657
+
658
+
659
+
660
+
661
+
662
+ = 3.3.6 =
663
+
664
+
665
+
666
+ * Reverted plugin URL fix because of too many people on old WordPress installations complaining. (Upgrade, people, upgrade!)
667
+
668
+
669
+
670
+ * Added PHPDoc throughout the plugins code.
671
+
672
+
673
+
674
+
675
+
676
+
677
+
678
+ = 3.3.5 =
679
+
680
+
681
+
682
+ * Added a Hyves button.
683
+
684
+
685
+
686
+ * Fixed MSN Reporter button.
687
+
688
+
689
+
690
+
691
+
692
+
693
+
694
+ = 3.3.4 =
695
+
696
+
697
+
698
+ * Fixed RSS.
699
+
700
+
701
+
702
+
703
+
704
+
705
+
706
+ = 3.3.3 =
707
+
708
+
709
+
710
+ * Brought back Tumblr
711
+
712
+
713
+
714
+ * Updated PDF link
715
+
716
+
717
+
718
+ * Added Posterous
719
+
720
+
721
+
722
+ * Smushed all images using [Smush.it](http://smush.it/), reducing the total image file size with 31.72 KB (42.03%)!
723
+
724
+
725
+
726
+ * Removed pre - 2.6 compatibility code
727
+
728
+
729
+
730
+
731
+
732
+
733
+
734
+ = 3.3.1 =
735
+
736
+
737
+
738
+ * Added new option to use pure text links, instead of image links.
739
+
740
+
741
+
742
+ * Fixed small issue with using target=blank links and the new awe.sm options.
743
+
744
+
745
+
746
+ * Allowed for usage without an awe.sm API key, as awe.sm falls back to "default" awe.sm shortlinks.
747
+
748
+
749
+
750
+ * Code cleanup for more efficiency in the backend on saving options.
751
+
752
+
753
+
754
+ * General code cleanup.
755
+
756
+
757
+
758
+ * Moved to the new default Changelog markup.
759
+
760
+
761
+
762
+
763
+
764
+
765
+
766
+ = 3.3 =
767
+
768
+
769
+
770
+ * Added awe.sm integration and some sites.
771
+
772
+
773
+
774
+
775
+
776
+
777
+
778
+ = 3.2.3 =
779
+
780
+
781
+
782
+ * Removed the last bit of non jQuery javascript.
783
+
784
+
785
+
786
+ * Improved styling and visual feedback when selecting a site.
787
+
788
+
789
+
790
+
791
+
792
+
793
+
794
+ = 3.2.2 =
795
+
796
+
797
+
798
+ * Moved style loading to admin_print_styles and scripts to admin_print_scripts.
799
+
800
+
801
+
802
+
803
+
804
+
805
+
806
+ = 3.2.1 =
807
+
808
+
809
+
810
+ * Fixed a bug with printing styles in 2.8 beta.
811
+
812
+
813
+
814
+
815
+
816
+
817
+
818
+ = 3.2 =
819
+
820
+
821
+
822
+ This is a MAJOR update to Sociable. Major Thanks to Jean-Paul of [iPhoneclub](http://www.iphoneclub.nl/) for all his work in looking up all the sites. The full list of changes:
823
+
824
+
825
+
826
+
827
+
828
+
829
+
830
+ * Restored sociable-admin.js, as it got accidentally removed.
831
+
832
+
833
+
834
+ * Added `class="sociablefirst"` to the first site in the list and `class="sociablelast"` to the last one.
835
+
836
+
837
+
838
+ * Added:
839
+
840
+
841
+
842
+ * An RSS button, which links to your sites RSS feed
843
+
844
+
845
+
846
+ * Printfriendly.com for both printing and creating a PDF, replacing the original "Print" function, which didn't work from RSS
847
+
848
+
849
+
850
+ * Current
851
+
852
+
853
+
854
+ * FriendFeed
855
+
856
+
857
+
858
+ * MSN Reporter.nl
859
+
860
+
861
+
862
+ * FS Daily
863
+
864
+
865
+
866
+ * Hello TXT
867
+
868
+
869
+
870
+ * Removed the following sites that were no longer working or active:
871
+
872
+
873
+
874
+ * BlinkBits
875
+
876
+
877
+
878
+ * Blogmemes.cn, .net, .jp
879
+
880
+
881
+
882
+ * Blogsvine
883
+
884
+
885
+
886
+ * Book.mark.hu
887
+
888
+
889
+
890
+ * Bumpzee
891
+
892
+
893
+
894
+ * Del.irio.us
895
+
896
+
897
+
898
+ * Feed Me Links
899
+
900
+
901
+
902
+ * Furl (replaced by Diigo)
903
+
904
+
905
+
906
+ * GeenRedactie
907
+
908
+
909
+
910
+ * Kick.ie
911
+
912
+
913
+
914
+ * Leonaut
915
+
916
+
917
+
918
+ * Magnolia
919
+
920
+
921
+
922
+ * Plug IM
923
+
924
+
925
+
926
+ * Pownce
927
+
928
+
929
+
930
+ * Salesmarks
931
+
932
+
933
+
934
+ * Scuttle
935
+
936
+
937
+
938
+ * Shadows
939
+
940
+
941
+
942
+ * Smarking
943
+
944
+
945
+
946
+ * Spurl
947
+
948
+
949
+
950
+ * Taggly
951
+
952
+
953
+
954
+ * Tailrank
955
+
956
+
957
+
958
+ * Tumblr (due to the change to a POST API, which we, unfortunately, can't support with Sociable)
959
+
960
+
961
+
962
+ * Updated the following sites to include the excerpt when submitting:
963
+
964
+
965
+
966
+ * Connotea
967
+
968
+
969
+
970
+ * Delicious
971
+
972
+
973
+
974
+ * Digg
975
+
976
+
977
+
978
+ * Ekudos
979
+
980
+
981
+
982
+ * Google Bookmarks
983
+
984
+
985
+
986
+ * NuJij
987
+
988
+
989
+
990
+ * Ping.fm
991
+
992
+
993
+
994
+ * Otherwise updated:
995
+
996
+
997
+
998
+ * Google Bookmarks (new icon)
999
+
1000
+
1001
+
1002
+ * Fleck (New URL)
1003
+
1004
+
1005
+
1006
+ * Rec6 (new URL)
1007
+
1008
+
1009
+
1010
+
1011
+
1012
+
1013
+
1014
+ = 3.1.1 =
1015
+
1016
+
1017
+
1018
+ * Fixed bug with stylesheet introduced in 3.1.
1019
+
1020
+
1021
+
1022
+
1023
+
1024
+
1025
+
1026
+ = 3.1 =
1027
+
1028
+
1029
+
1030
+ * Converted all images to PNG.
1031
+
1032
+
1033
+
1034
+ * Cleaned up usage of javascript in the backend and switched to the jquery library that comes with WordPress.
1035
+
1036
+
1037
+
1038
+ * Allowed for usage of an external image directory.
1039
+
1040
+
1041
+
1042
+ * Removed pre 2.6 compatibility fixes.
1043
+
1044
+
1045
+
1046
+
1047
+
1048
+
1049
+
1050
+ = 3.0.6 =
1051
+
1052
+
1053
+
1054
+ * Fixed xhtml bug in Netvibes integration.
1055
+
1056
+
1057
+
1058
+ * Added Bitacoras.
1059
+
1060
+
1061
+
1062
+
1063
+
1064
+
1065
+
1066
+ = 3.0.5 =
1067
+
1068
+
1069
+
1070
+ * Added Identi.ca.
1071
+
1072
+
1073
+
1074
+ * Fixed a bug in Yoast Posts widget.
1075
+
1076
+
1077
+
1078
+
1079
+
1080
+
1081
+
1082
+ = 3.0.4 =
1083
+
1084
+
1085
+
1086
+ * Added Netvibes.
1087
+
1088
+
1089
+
1090
+
1091
+
1092
+
1093
+
1094
+ = 3.0.3 =
1095
+
1096
+
1097
+
1098
+ * Security enhancements, thx to Mark Jaquith.
1099
+
1100
+
1101
+
1102
+
1103
+
1104
+
1105
+
1106
+ = 3.0.2 =
1107
+
1108
+
1109
+
1110
+ * Fixed CSS bug introduced in 3.0.
1111
+
1112
+
1113
+
1114
+
1115
+
1116
+
1117
+
1118
+ = 3.0.1 =
1119
+
1120
+
1121
+
1122
+ * Removed some other, now obsolete, code, reducing the code size by another 4KB.
1123
+
1124
+
1125
+
1126
+
1127
+
1128
+
1129
+
1130
+ = 3.0 =
1131
+
1132
+
1133
+
1134
+ * Fixed IE bug in admin.
1135
+
1136
+
1137
+
1138
+ * Cleaned up Admin Area and changed support messages.
1139
+
1140
+
1141
+
1142
+ * Removed directory checking for all images (speeds up incredibly).
1143
+
1144
+
1145
+
1146
+ * Made display: inline !important to prevent vertical icon display.
1147
+
1148
+
1149
+
1150
+ * Updated Wykop icon.
1151
+
1152
+
1153
+
1154
+
1155
+
1156
+
1157
+
1158
+ = 2.9.15 =
1159
+
1160
+
1161
+
1162
+ * Added a fallback for strip_shortcodes to maintain backwards compatibility with WordPress 2.3 and below.
1163
+
1164
+
1165
+
1166
+
1167
+
1168
+
1169
+
1170
+ = 2.9.14 =
1171
+
1172
+
1173
+
1174
+ * Made sure there are no tags or shortcodes in the excerpt.
1175
+
1176
+
1177
+
1178
+ * Added ping.fm.
1179
+
1180
+
1181
+
1182
+ * Removed indiagram (shut down).
1183
+
1184
+
1185
+
1186
+
1187
+
1188
+
1189
+
1190
+ = 2.9.13 =
1191
+
1192
+
1193
+
1194
+ * Changed Facebook link from sharer.php (meant for a popup window) to share.php (which has the actual menu on it etc.).
1195
+
1196
+
1197
+
1198
+
1199
+
1200
+
1201
+
1202
+ = 2.9.12 =
1203
+
1204
+
1205
+
1206
+ * Added Tip'd.
1207
+
1208
+
1209
+
1210
+
1211
+
1212
+
1213
+
1214
+ = 2.9.11 =
1215
+
1216
+
1217
+
1218
+ * Added settings link and Ozh admin menu icon.
1219
+
1220
+
1221
+
1222
+
1223
+
1224
+
1225
+
1226
+ = 2.9.10 =
1227
+
1228
+
1229
+
1230
+ * Fixes issue with excerpt not being urlencoded.
1231
+
1232
+
1233
+
1234
+
1235
+
1236
+
1237
+
1238
+ = 2.9.9 =
1239
+
1240
+
1241
+
1242
+ * Fixes for custom fields issues.
1243
+
1244
+
1245
+
1246
+
1247
+
1248
+
1249
+
1250
+ = 2.9.8 =
1251
+
1252
+
1253
+
1254
+ * Fixes for WP 2.7.
1255
+
1256
+
1257
+
1258
+
1259
+
1260
+
1261
+
1262
+ = 2.9.6 =
1263
+
1264
+
1265
+
1266
+ * Added Symbaloo and Tumblr.
1267
+
1268
+
1269
+
1270
+
1271
+
1272
+
1273
+
1274
+ = 2.9.5 =
1275
+
1276
+
1277
+
1278
+ * Fixed Fark & Propeller links.
1279
+
1280
+
1281
+
1282
+ * Added missing i18n strings.
1283
+
1284
+
1285
+
1286
+ * Added Yahoo Buzz.
1287
+
1288
+
1289
+
1290
+
1291
+
1292
+
1293
+
1294
+ = 2.9.4 =
1295
 
1296
 
1297
 
1298
+ * Removed PopCurrent and Rawsugar as they no longer exist.
1299
 
 
1300
 
 
1301
 
1302
+ * Renamed BlueDot to Faves.
1303
 
1304
 
 
1305
 
 
1306
 
1307
 
1308
 
 
1309
 
1310
+ = 2.9.3 =
1311
 
 
1312
 
 
1313
 
1314
+ * Added Leonaut & MySpace.
1315
 
 
1316
 
1317
 
1318
+ * Fixed plugin description.
1319
 
 
1320
 
 
1321
 
1322
+ * Added option to disable Sociable on a per post basis.
1323
 
 
1324
 
 
1325
 
1326
+ * Added option to display sociable on tag pages.
1327
 
 
1328
 
1329
 
1330
+ * Added extra security to config page.
1331
 
 
1332
 
 
1333
 
1334
+ * Fixed print button.
1335
 
1336
 
 
1337
 
1338
+ * Fixed Twitter functionality.
1339
 
 
1340
 
1341
 
1342
 
 
1343
 
 
1344
 
1345
 
1346
+ = 2.9.2 =
1347
 
 
1348
 
 
1349
 
1350
+ * Added Swedish and Chinese localisations, thx to [Mikael Jorhult](http://www.mishkin.se/) and [Hugo Chen](http://take-ez.com/).
1351
 
1352
 
 
1353
 
 
1354
 
1355
 
1356
 
 
1357
 
1358
+ = 2.9.1 =
1359
 
 
1360
 
 
1361
 
1362
+ * Fixed bug where jQuery UI would be loaded twice.
1363
 
 
1364
 
 
1365
 
 
1366
 
 
1367
 
 
1368
 
 
1369
 
1370
+ = 2.9 =
1371
 
 
1372
 
 
1373
 
1374
+ * Removed Tool-Man in favor of jQuery, thx to Martin Joosse.
1375
 
 
1376
 
 
1377
 
 
1378
 
 
1379
 
 
1380
 
 
1381
 
1382
+ = 2.8.4 =
1383
 
 
1384
 
 
1385
 
1386
+ * General bugfixes.
1387
 
 
1388
 
 
1389
 
 
1390
 
 
1391
 
 
1392
 
 
1393
 
1394
+ = 2.8.3 =
1395
 
 
1396
 
 
1397
 
1398
+ * Added wikio.it, upnews.it, muti.co.za.
1399
 
 
1400
 
 
1401
 
1402
+ * Made LinkedIn work even better.
1403
 
 
1404
 
 
1405
 
1406
+ * Made opening in a new window optional.
1407
 
 
1408
 
 
1409
 
 
1410
 
 
1411
 
1412
 
1413
 
1414
+ = 2.8.2 =
1415
 
 
1416
 
1417
 
1418
+ * Now adds icons to feeds with excerpts too.
1419
 
 
1420
 
 
1421
 
1422
+ * Added LinkedIn.
1423
 
 
1424
 
 
1425
 
1426
 
1427
 
 
1428
 
 
1429
 
1430
+ = 2.8.1 =
1431
 
1432
 
1433
 
1434
+ * Fixed some small issues.
1435
 
 
1436
 
 
1437
 
1438
+ * Made sure tagline shows up again.
1439
 
1440
 
 
1441
 
 
1442
 
1443
 
1444
 
 
1445
 
1446
+ = 2.8 =
1447
 
1448
 
1449
 
1450
+ * Added option to show bookmark icons in feed.
1451
 
 
1452
 
1453
 
1454
+ * Added Ratimarks.
1455
 
 
1456
 
 
1457
 
1458
+ * Fixed xhtml compliance.
1459
 
1460
 
 
1461
 
1462
+ * Fixed blue dot bug.
1463
 
 
1464
 
 
1465
 
 
1466
 
 
1467
 
1468
 
1469
 
1470
+ = 2.6.9 =
1471
 
 
1472
 
1473
 
1474
+ * Fixed WP 2.6 compatibility.
1475
 
 
1476
 
 
1477
 
 
1478
 
 
1479
 
1480
 
1481
 
1482
+ = 2.6.8 =
1483
 
 
1484
 
1485
 
1486
+ * Updated inline documentation.
1487
 
 
1488
 
 
1489
 
1490
 
1491
 
 
1492
 
 
1493
 
1494
+ = 2.6.7 =
1495
 
1496
 
 
1497
 
1498
+ * Renamed Sk*rt to Kirtsy.
1499
 
1500
 
1501
 
1502
+ * Added designfloat.
1503
 
 
1504
 
1505
 
1506
+ * Fixed description.
1507
 
 
1508
 
 
1509
 
1510
 
1511
 
 
1512
 
 
1513
 
1514
+ = 2.5.4 =
1515
 
1516
 
 
1517
 
1518
+ * Added HealthRanker, N4G, Meneame, BarraPunto, Laaik.it and E-mail option.
1519
 
 
1520
 
 
1521
 
1522
 
1523
 
 
1524
 
 
1525
 
1526
+ = 2.5.3 =
1527
 
1528
 
1529
 
1530
+ * Added Global Grind, Salesmarks, Webnews.de, Xerpi, Yigg.
1531
 
 
1532
 
 
1533
 
 
1534
 
 
1535
 
 
1536
 
 
1537
 
1538
+ = 2.5.2 =
1539
 
1540
 
1541
 
1542
+ * Added NuJIJ, eKudos, Sk-rt, Socialogs and MisterWong.de.
1543
 
 
1544
 
1545
 
1546
 
 
1547
 
 
1548
 
1549
 
1550
+ = 2.5.1 =
1551
 
 
1552
 
 
1553
 
1554
+ * Swapped Netscape for Propeller.
1555
 
1556
 
 
1557
 
 
1558
 
1559
 
1560
 
 
1561
 
1562
+ Special thanks to [Robert Harm](http://www.die-truppe.com/) for coming up with loads of nice ideas.
1563
 
 
1564
 
 
1565
 
1566
 
1567
 
 
1568
 
 
1569
 
1570
+ == Installation ==
1571
 
1572
 
1573
 
 
1574
 
 
1575
 
 
1576
 
1577
 
1578
+ Download, Upgrading, Installation:
1579
 
 
1580
 
 
1581
 
 
1582
 
 
1583
 
 
1584
 
1585
 
1586
+ Upgrade
1587
 
 
1588
 
 
1589
 
1590
 
1591
 
 
1592
 
 
1593
 
1594
+ 1. First deactivate Sociable
1595
 
1596
 
 
1597
 
1598
+ 1. Remove the `sociable` directory
1599
 
 
1600
 
 
1601
 
1602
 
1603
 
 
1604
 
 
1605
 
1606
+ **Install**
1607
 
1608
 
 
1609
 
 
1610
 
1611
 
1612
 
 
1613
 
1614
+ 1. Unzip the `sociable.zip` file.
1615
 
1616
 
1617
 
1618
+ 1. Upload the the `sociable` folder (not just the files in it!) to your `wp-contents/plugins` folder. If you're using FTP, use 'binary' mode.
1619
 
 
1620
 
1621
 
1622
 
 
1623
 
1624
 
1625
 
1626
+ **Activate**
1627
 
1628
 
1629
 
 
1630
 
1631
 
1632
 
 
1633
 
1634
+ 1. In your WordPress administration, go to the Plugins page
1635
 
1636
 
 
1637
 
1638
+ 1. Activate the Sociable plugin and a subpage for Sociable will appear
1639
 
1640
 
1641
 
1642
+ in your Options menu.
1643
 
1644
 
1645
 
 
1646
 
 
1647
 
1648
 
1649
 
1650
+ If you find any bugs or have any ideas, please mail me.
1651
 
1652
 
1653
 
 
1654
 
 
1655
 
 
1656
 
1657
 
1658
+ **Advanced Users**
1659
 
 
1660
 
1661
 
1662
 
 
1663
 
1664
 
1665
 
1666
  For advanced use of the plugin, see the [Sociable](http://www.blogplay.com/sociable-for-wordpress) page on [Blogplay](http://www.blogplay.com/plugin)
1667
 
1668
+
1669
+
sociable.php CHANGED
@@ -1,717 +1,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.1
 
 
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
  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.
 
13
  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.
 
14
  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
 
15
  */
 
16
  /*
 
17
  * Define Some Paths
 
18
  */
 
19
  define( 'SOCIABLE_HTTP_PATH' , WP_PLUGIN_URL . '/' . str_replace(basename( __FILE__) , "" , plugin_basename(__FILE__) ) );
20
 
 
 
21
  define( 'SOCIABLE_ABSPATH' , WP_PLUGIN_DIR . '/' . str_replace(basename( __FILE__) , "" , plugin_basename(__FILE__) ) );
22
 
 
 
23
  /*
 
24
  * Includes
 
25
  */
 
26
  include 'includes/class-sociable_Admin_Options.php';
 
27
  include("includes/skyscraper_output.php");
 
28
  include 'includes/class-Sociable_Globals.php';
 
29
  include 'includes/sociable_output.php';
 
30
  /*
 
31
  * Global Variables
 
32
  */
33
 
 
 
34
  //$sociable_known_sites = Sociable_Globals::default_sites();
 
35
  $sociable_options = get_option( 'sociable_options' );
 
36
  $skyscraper_options = get_option( 'skyscraper_options' );
 
37
  $skyscraper_latest = get_option( 'skyscraper_latest' );
 
38
  $skyscraper_mentions = get_option( 'skyscraper_mentions' );
 
39
  //$sociable_post_types = array(); //Set This blank here, won't work before init
 
40
  //$sociable_taxonomies = array(); //Same Here
41
 
 
 
42
  /*
 
43
  * General Init Function
 
44
  */
45
 
 
 
46
  function sociable_init(){
 
47
  wp_enqueue_script('jquery');
 
48
  global $sociable_post_types, $sociable_taxonomies, $sociable_options, $skyscraper_options;
 
49
  $import_call_asyn = true;
 
50
  $url_shares = $_SERVER["REQUEST_URI"];
51
 
 
 
52
  if (strpos($url_shares, "wp-admin")){
 
53
  if (strpos($url_shares, "wp-admin") && !strpos($url_shares, "page=skyscraper_options")){
54
 
 
 
55
  $import_call_asyn = false;
 
56
  }
 
57
  }
 
58
  else{
59
 
 
 
60
  if (!isset($skyscraper_options["active"])){
61
 
 
 
62
  $import_call_asyn = false;
 
63
  }
 
64
  }
 
65
  if ($import_call_asyn){
66
 
 
 
67
  wp_enqueue_script( 'async_call' , SOCIABLE_HTTP_PATH . 'js/async_call.js' );
 
68
  wp_enqueue_script( 'oplugin' , SOCIABLE_HTTP_PATH . 'js/oPlugin.js' );
 
69
  wp_enqueue_style( "skyscraper_style_shape",SOCIABLE_HTTP_PATH."css/shape.css");
70
- wp_enqueue_style( "skyscraper_style_toolbar", SOCIABLE_HTTP_PATH."css/toolbar.css");
 
 
 
71
  }
 
72
  if (!isset($sociable_options['icon_size']) || $sociable_options['icon_size'] == "" || !isset($sociable_options['version'])) sociable_reset();
73
- if ( $skyscraper_options['version'] != "1.0" ){
 
 
 
74
 
75
  skyscraper_reset();
76
 
 
 
77
  }
78
 
 
 
79
  load_plugin_textdomain( 'sociable', false, dirname( plugin_basename( __FILE__ ) )."/languages" );
 
80
  $active_sites = ( isset( $sociable_options['active_sites'] ) ) ? $sociable_options['active_sites'] : array() ;
 
81
  //Set The Post Types
82
 
 
 
83
  $sociable_post_types = Sociable_Globals::sociable_get_post_types();
84
 
 
 
85
  //Set The Custom Taxonomies
86
 
 
 
87
  $sociable_taxonomies = Sociable_Globals::sociable_get_taxonomies();
88
 
 
 
89
  wp_enqueue_script( 'sociable' , SOCIABLE_HTTP_PATH . 'js/sociable.js' );
 
90
  wp_enqueue_script( 'addtofavourites' , SOCIABLE_HTTP_PATH . 'js/addtofavorites.js' );
 
91
  if( ! is_admin() ){
92
 
 
 
93
  //Load Up The Front Of Site CSS And JS
94
 
 
 
95
  if( array_key_exists( 'Add to favorites' , $active_sites ) ){
96
 
 
 
97
  // wp_enqueue_script( 'addtofavourites' , SOCIABLE_HTTP_PATH . 'js/addtofavorites.js' );
 
98
  }
 
99
  if( isset( $sociable_options['use_stylesheet'] ) ){
100
 
 
 
101
  wp_enqueue_style( 'sociablecss' , SOCIABLE_HTTP_PATH . 'css/sociable.css' );
 
102
  }
 
103
  }
 
104
  }
105
 
 
 
106
  /*
 
107
  * Hooks And Filters
 
108
  */
109
 
 
 
110
  add_action( 'admin_init' , array( 'sociable_Admin_Options' , 'init' ) );
 
111
  add_action( 'admin_menu' , array( 'sociable_Admin_Options' , 'add_menu_pages' ) );
 
112
  add_action( 'save_post' , array( 'sociable_Admin_Options' , 'save_post' ) );
 
113
  add_action( 'init' , 'sociable_init' );
 
114
  add_action( 'wp_head' , 'sociable_init_async' );
 
115
  function sociable_init_async(){
116
 
 
 
117
  echo "<script type='text/javascript'>";
 
118
  echo "var base_url_sociable = '".SOCIABLE_HTTP_PATH."'";
119
- echo "</script>";
 
 
120
  }
121
 
 
 
122
  add_filter( 'the_content', 'auto_sociable' );
123
 
 
 
124
  //add_filter( 'get_pages', 'auto_skyscraper' );
 
125
  //add_filter( 'the_excerpt', 'auto_skyscraper' );
 
126
  add_filter( 'the_excerpt', 'auto_sociable' );
 
127
  register_activation_hook(__FILE__, 'sociable_activate' );
 
128
  register_deactivation_hook( __FILE__, 'sociable_deactivate' );
 
129
  /*
 
130
  * Activation Function
 
131
  */
132
 
 
 
133
  function sociable_activate(){
 
134
  if( ! get_option( 'sociable_options' ) ){
135
 
 
 
136
  return sociable_reset();
 
137
  }
 
138
  }
139
 
 
 
140
  /*
 
141
  * Reset Function
 
142
  */
143
 
 
 
144
  function sociable_reset(){
145
 
 
 
146
  global $wpdb;
147
 
 
 
148
  //reset all data to factory defaults, install if is there.
 
149
  //Delete All Metadata From The Database ?
150
 
 
 
151
  $wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key = '_sociableoff'");
152
 
 
 
153
  $sociable_options = array(
154
 
155
- 'version' =>'4.2.1',
 
 
 
156
  'automatic_mode' => 'on',
 
157
  'tagline' => 'Be Sociable, Share!',
 
158
  'custom_image_directory' => '',
 
159
  'use_stylesheet' => 'on',
 
160
  'use_images' => 'on',
 
161
  'use_alphamask' => 'on',
 
162
  'new_window' => 'on',
 
163
  'help_grow' => 'on',
 
164
  'locations' => array(
 
165
  'is_single' => 'on',
 
166
  'is_page' => 'on'
 
167
  ),
 
168
  'active_sites' => array(
 
169
  'Twitter' => 'on',
 
170
  'Facebook' => 'on',
 
171
  'email'=>'on',
 
172
  'Add to favorites'=>'on',
 
173
  'StumbleUpon' =>'on',
 
174
  'Delicious' =>'on',
 
175
  'Google Reader' =>'on',
 
176
  'LinkedIn' => 'on',
 
177
  'BlinkList' =>'on',
 
178
  'More' => 'on',
 
179
  'Twitter Counter' =>'on',
 
180
  'Facebook Counter' =>'on',
 
181
  'Google +' =>'on',
 
182
  'LinkedIn Counter' =>'on',
 
183
  'StumbleUpon Counter' =>'on'
 
184
  ),
 
185
  'icon_size' => '32',
 
186
  'icon_option' => 'option1',
 
187
  "active" => 1
 
188
  );
189
 
 
 
190
  $sociable_known_sites = array(
191
 
 
 
192
  'Facebook' => array(
 
193
  'favicon' => 'facebook.png',
 
194
  'url' => 'http://www.facebook.com/share.php?u=PERMALINK&amp;t=TITLE',
 
195
  'spriteCoordinates' => Array(
 
196
  '16' => array("-48px","0px"),
 
197
  '32' => array("-96px","0px"),
 
198
  '48' => array("-144px","0px"),
 
199
  '64' => array("-192px","0px")
 
200
  )
 
201
  ),
 
202
  'Facebook Counter' => array(
 
203
  'counter' =>1,
 
204
  'favicon' => 'likecounter.png',
 
205
  '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>',
 
206
  'spriteCoordinates' => Array(
 
207
  '16' => array("-48px","0px"),
 
208
  '32' => array("-96px","0px"),
 
209
  '48' => array("-144px","0px"),
 
210
  '64' => array("-192px","0px")
 
211
  )
 
212
  ),
213
 
 
 
214
  'Myspace' => array(
 
215
  'favicon' => 'myspace.png',
 
216
  'url' => 'http://www.myspace.com/Modules/PostTo/Pages/?u=PERMALINK&amp;t=TITLE',
 
217
  'spriteCoordinates' => Array(
 
218
  '16' => array("0px","-16px"),
 
219
  '32' => array("0px","-32px"),
 
220
  '48' => array("0px","-48px"),
 
221
  '64' => array("0px","-64px")
 
222
  )
 
223
  ),
224
 
 
 
225
  'Twitter' => array(
 
226
  'favicon' => 'twitter.png',
227
- 'url' => 'http://twitter.com/intent/tweet?text=TITLE%20-%20PERMALINK%20(via%20@sociablesite)',
 
 
228
  'spriteCoordinates' => Array(
 
229
  '16' => array("-144px","-16px"),
 
230
  '32' => array("-288px","-32px"),
 
231
  '48' => array("-432px","-48px"),
 
232
  '64' => array("-576px","-64px")
 
233
  )
 
234
  ),
235
 
 
 
236
  'Twitter Counter' => array(
 
237
  'counter' =>1,
 
238
  'favicon' => 'twitter.png',
239
- 'url' => '<a href="https://twitter.com/share" data-text="TITLECOUNT - PERMALINKCOUNT (via #sociablesite)" data-url="PERMALINKCOUNT" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>',
 
 
240
  'spriteCoordinates' => Array(
 
241
  '16' => array("-144px","-16px"),
 
242
  '32' => array("-288px","-32px"),
 
243
  '48' => array("-432px","-48px"),
 
244
  '64' => array("-576px","-64px")
 
245
  )
 
246
  ),
 
247
  'LinkedIn' => array(
 
248
  'favicon' => 'linkedin.png',
 
249
  'url' => 'http://www.linkedin.com/shareArticle?mini=true&amp;url=PERMALINK&amp;title=TITLE&amp;source=BLOGNAME&amp;summary=EXCERPT',
 
250
  'spriteCoordinates' => Array(
 
251
  '16' => array("-144px","0px"),
 
252
  '32' => array("-288px","0px"),
 
253
  '48' => array("-432px","0px"),
 
254
  '64' => array("-576px","0px")
 
255
  )
 
256
  ),
257
 
 
 
258
  'LinkedIn Counter' => array(
 
259
  'counter'=>1,
 
260
  'favicon' => 'linkedin.png',
 
261
  'url' => '<script src="http://platform.linkedin.com/in.js" type="text/javascript"></script><script type="IN/Share" data-url="PERMALINKCOUNT" data-counter="right"></script>',
 
262
  'spriteCoordinates' => Array(
263
 
 
 
264
  '16' => array("-144px","0px"),
 
265
  '32' => array("-288px","0px"),
 
266
  '48' => array("-432px","0px"),
 
267
  '64' => array("-576px","0px")
 
268
  )
 
269
  ),
270
 
 
 
271
  'Delicious' => array(
272
 
 
 
273
  'favicon' => 'delicious.png',
 
274
  'url' => 'http://delicious.com/post?url=PERMALINK&amp;title=TITLE&amp;notes=EXCERPT',
 
275
  'spriteCoordinates' => Array(
 
276
  '16' => array("-16px","0px"),
 
277
  '32' => array("-32px","0px"),
 
278
  '48' => array("-48px","0px"),
 
279
  '64' => array("-64px","0px")
 
280
  )
 
281
  ),
282
 
 
 
283
  'Digg' => array(
284
 
 
 
285
  'favicon' => 'digg.png',
 
286
  'url' => 'http://digg.com/submit?phase=2&amp;url=PERMALINK&amp;title=TITLE&amp;bodytext=EXCERPT',
 
287
  'spriteCoordinates' => Array(
 
288
  '16' => array("-32px","0px"),
 
289
  '32' => array("-64px","0px"),
 
290
  '48' => array("-96px","0px"),
 
291
  '64' => array("-128px","0px")
 
292
  )
 
293
  ),
 
294
  'Digg Counter' => array(
 
295
  'counter' =>1,
 
296
  'favicon' => 'digg.png',
 
297
  'url' => "<script type='text/javascript'>(function() {var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];s.type = 'text/javascript';s.async = true;s.src = 'http://widgets.digg.com/buttons.js';s1.parentNode.insertBefore(s, s1);})();</script><a href='http://digg.com/submit?url=PERMALINK&amp;title=TITLE' class='DiggThisButton DiggCompact'></a>",
298
 
 
 
299
  'spriteCoordinates' => Array(
 
300
  '16' => array("-32px","0px"),
 
301
  '32' => array("-64px","0px"),
 
302
  '48' => array("-96px","0px"),
 
303
  '64' => array("-128px","0px")
 
304
  )
 
305
  ),
306
 
 
 
307
  'Reddit' => array(
308
 
 
 
309
  'favicon' => 'reddit.png',
 
310
 
 
311
  'url' => 'http://reddit.com/submit?url=PERMALINK&amp;title=TITLE',
 
312
  'spriteCoordinates' => Array(
 
313
  '16' => array("-64px","-16px"),
 
314
  '32' => array("-128px","-32px"),
 
315
  '48' => array("-192px","-48px"),
 
316
  '64' => array("-256px","-64px")
 
317
  )
 
318
  ),
 
319
 
 
320
  'StumbleUpon' => array(
 
321
  'favicon' => 'stumbleupon.png',
 
322
  'url' => 'http://www.stumbleupon.com/submit?url=PERMALINK&title=TITLE',
 
323
  'spriteCoordinates' => Array(
 
324
  '16' => array("-112px","-16px"),
 
325
  '32' => array("-224px","-32px"),
 
326
  '48' => array("-336px","-48px"),
 
327
  '64' => array("-448px","-64px")
 
328
  )),
 
329
 
 
330
  'StumbleUpon Counter' => array(
 
331
  'counter' =>1,
 
332
  'favicon' => 'stumbleupon.png',
 
333
  'url' => '<script src="http://www.stumbleupon.com/hostedbadge.php?s=2&r=PERMALINKCOUNT"></script>',
 
334
  'spriteCoordinates' => Array(
 
335
  '16' => array("-112px","-16px"),
 
336
  '32' => array("-224px","-32px"),
 
337
  '48' => array("-336px","-48px"),
 
338
  '64' => array("-448px","-64px")
 
339
  )
 
340
  ),
 
341
  'Google Bookmarks' => Array (
 
342
  'favicon' => 'google.png',
 
343
  'url' => 'http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=PERMALINK&amp;title=TITLE&amp;annotation=EXCERPT',
 
344
  'description' => 'Google Bookmarks',
 
345
  'spriteCoordinates' => Array(
 
346
  '16' => array("-96px","0px"),
 
347
  '32' => array("-192px","0px"),
 
348
  '48' => array("-288px","0px"),
 
349
  '64' => array("-384px","0px")
 
350
  )
 
351
  ),
 
352
 
 
353
  'Google +' => Array (
 
354
 
 
355
  'counter' =>1,
 
356
  'favicon' => 'google.png',
 
357
  /* 'url' => '<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
358
 
 
 
359
  <g:plusone annotation="bubble" size="medium"></g:plusone>',*/
 
360
  'url' => '<g:plusone annotation="bubble" href="PERMALINKCOUNT" size="medium"></g:plusone>',
 
361
  /*
 
362
  <script type="text/javascript">
 
363
  window.___gcfg = {
 
364
  lang: \'en-US\'
 
365
  };
 
366
  (function() {
 
367
  var po = document.createElement(\'script\'); po.type = \'text/javascript\'; po.async = true;
 
368
  po.src = \'https://apis.google.com/js/plusone.js\';
 
369
  var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(po, s);
 
370
  })();
 
371
  </script>
 
372
  ',*/
 
373
  'description' => 'Google Bookmarks',
 
374
  'spriteCoordinates' => Array(
 
375
  '16' => array("-96px","0px"),
 
376
  '32' => array("-192px","0px"),
 
377
  '48' => array("-288px","0px"),
 
378
  '64' => array("-384px","0px")
 
379
  )
 
380
  ),
 
381
 
 
382
  'HackerNews' => Array(
 
383
  'favicon' => 'hacker_news.png',
 
384
  'url' => 'http://news.ycombinator.com/submitlink?u=PERMALINK&amp;t=TITLE',
 
385
  'spriteCoordinates' => Array(
 
386
  '16' => array("-128px","0px"),
 
387
  '32' => array("-256px","0px"),
 
388
  '48' => array("-384px","0px"),
 
389
  '64' => array("-512px","0px")
 
390
  )
 
391
  ),
 
392
  'MSNReporter' => Array(
 
393
  'favicon' => 'msn.png',
 
394
  'url' => 'http://reporter.es.msn.com/?fn=contribute&amp;Title=TITLE&amp;URL=PERMALINK&amp;cat_id=6&amp;tag_id=31&amp;Remark=EXCERPT',
 
395
  'description' => 'MSN Reporter',
 
396
  'spriteCoordinates' => Array(
 
397
  '16' => array("-176px","0px"),
 
398
  '32' => array("-352px","0px"),
 
399
  '48' => array("-528px","0px"),
 
400
  '64' => array("-704px","0px")
 
401
  )
 
402
  ),
 
403
 
 
404
  'BlinkList' => Array(
 
405
  'favicon' => 'blinklist.png',
 
406
  'url' => 'http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=PERMALINK&amp;Title=TITLE',
 
407
  'spriteCoordinates' => Array(
 
408
  '16' => array("0px","0px"),
 
409
  '32' => array("0px","0px"),
 
410
  '48' => array("0px","0px"),
 
411
  '64' => array("0px","0px")
 
412
  ),
 
413
  'supportsIframe' => false,
 
414
  ),
 
415
  'Sphinn' => Array(
 
416
  'favicon' => 'sphinn.png',
 
417
  'url' => 'http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=PERMALINK',
 
418
  'spriteCoordinates' => Array(
 
419
  '16' => array("-96px","-16px"),
 
420
  '32' => array("-192px","-32px"),
 
421
  '48' => array("-288px","-48px"),
 
422
  '64' => array("-384px","-64px")
 
423
  )
 
424
  ),
 
425
 
 
426
  'Posterous' => Array(
 
427
  'favicon' => 'posterous.png',
 
428
  'url' => 'http://posterous.com/share?linkto=PERMALINK&amp;title=TITLE&amp;selection=EXCERPT',
 
429
  'spriteCoordinates' => Array(
 
430
  '16' => array("-32px","-16px"),
 
431
  '32' => array("-64px","-32px"),
 
432
  '48' => array("-96px","-48px"),
 
433
  '64' => array("-128px","-64px")
 
434
  )
 
435
  ),
 
436
  'Tumblr' => Array(
 
437
  'favicon' => 'tumblr.png',
 
438
  'url' => 'http://www.tumblr.com/share?v=3&amp;u=PERMALINK&amp;t=TITLE&amp;s=EXCERPT',
 
439
  'spriteCoordinates' => Array(
 
440
  '16' => array("-128px","-16px"),
 
441
  '32' => array("-256px","-32px"),
 
442
  '48' => array("-384px","-48px"),
 
443
  '64' => array("-512px","-64px")
 
444
  ),
 
445
  'supportsIframe' => false
 
446
  ),
 
447
  'email' => Array(
 
448
  'favicon' => 'gmail.png',
 
449
  'url' => 'https://mail.google.com/mail/?view=cm&fs=1&to&su=TITLE&body=PERMALINK&ui=2&tf=1&shva=1',
 
450
  'spriteCoordinates' => Array(
 
451
  '16' => array("-80px","0px"),
 
452
  '32' => array("-160px","0px"),
 
453
  '48' => array("-240px","0px"),
 
454
  '64' => array("-320px","0px")
 
455
  ),
 
456
  'supportsIframe' => false
 
457
  ),
 
458
 
 
459
  'Google Reader' => array (
 
460
  'favicon' => 'googlebuzz.png',
 
461
  'url' => 'http://www.google.com/reader/link?url=PERMALINK&amp;title=TITLE&amp;srcURL=PERMALINK&amp;srcTitle=BLOGNAME',
 
462
  'spriteCoordinates' => Array(
 
463
  '16' => array("-112px","0px"),
 
464
  '32' => array("-224px","0px"),
 
465
  '48' => array("-336px","0px"),
 
466
  '64' => array("-448px","0px")
 
467
  )
 
468
  ),
 
469
  'Add to favorites' => array(
 
470
  'favicon' => 'favorites.png',
 
471
  'url' => 'javascript:AddToFavorites();',
 
472
  'spriteCoordinates' => Array(
 
473
  '16' => array("-64px","0px"),
 
474
  '32' => array("-128px","0px"),
 
475
  '48' => array("-192px","0px"),
 
476
  '64' => array("-256px","0px")
 
477
  )
 
478
  ),
 
479
  'More' => array(
 
480
  'favicon' => 'more.png',
 
481
  'url' => 'javascript:more();',
 
482
  'spriteCoordinates' => Array(
 
483
  '16' => array("0px","0px"),
 
484
  '32' => array("0px","0px"),
 
485
  '48' => array("0px","0px"),
 
486
  '64' => array("0px","0px")
 
487
  )
 
488
  ),
 
489
  );
490
 
 
 
491
 
492
 
 
 
493
 
494
 
 
 
495
  //Update will create if it doesn't exist.
 
496
 
497
 
 
 
498
  update_option( 'sociable_known_sites' , $sociable_known_sites );
499
 
 
 
500
  update_option( 'sociable_options' , $sociable_options );
501
 
 
 
502
  update_option( 'sociable_helpus' , 1);
503
 
 
 
504
  }
 
505
  function skyscraper_reset(){
 
506
  $skyscraper_options = array(
507
 
 
 
508
  "version" => "1.0",
509
 
 
 
510
  "widget_width" => "60px",
511
 
 
 
512
  "widget_position" => "1",
513
 
 
 
514
  "background_color" => "#fefefe",
515
 
 
 
516
  "labels_color" => "#f7f7f7",
517
 
 
 
518
  "text_size" => "10px",
519
 
 
 
520
  "counters" => array("check" => "0",
521
 
 
 
522
  "folded" => "0"),
523
 
 
 
524
  "share" => array("check" => "0",
525
 
 
 
526
  "folded" => "0"),
527
 
 
 
528
  "num_tweets" => 3,
529
 
 
 
530
  "num_rss" =>3,
531
 
 
 
532
  "locations" => array("is_front_page" => 1,
533
 
 
 
534
  "is_home" => 1,
535
 
 
 
536
  "is_single" => 1,
537
 
 
 
538
  "is_page" => 1,
539
 
 
 
540
  "is_category" => 1,
541
 
 
 
542
  "is_date" => 1,
543
 
 
 
544
  "is_tag" => 1,
545
 
 
 
546
  "is_author" => 1,
547
 
 
 
548
  "is_search" => 1,
549
 
 
 
550
  "is_rss" => 1 ),
551
 
 
 
552
 
553
 
 
 
554
  "counters" => array("check" => 1,
555
 
 
 
556
  "folded" => 1),
557
 
 
 
558
  "share" => array("check" => 1,
559
 
560
- "folded" => 1)
561
-
562
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
563
  );
 
564
  update_option( 'skyscraper_options' , $skyscraper_options );
565
 
 
 
566
 
567
 
 
 
568
 
569
 
 
 
570
  $skyscraper_latest = array();
571
 
 
 
572
  update_option("skyscraper_latest",$skyscraper_latest );
573
 
 
 
574
 
575
 
 
 
576
  $skyscraper_mentions = array();
577
 
 
 
578
  update_option("skyscraper_mentions",$skyscraper_mentions );
579
 
 
 
580
  }
 
581
  /*
582
 
 
 
583
  * De-Activate Function
584
 
 
 
585
  */
586
 
 
 
587
  function sociable_deactivate(){
588
 
 
 
589
  // global $wpdb;
590
 
 
 
591
  // //Delete The Metadata
592
 
 
 
593
  // $wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key = '_sociableoff'");
594
 
 
 
595
  // //delete The Options
596
 
 
 
597
  // return delete_option( 'sociable_options' );
598
 
 
 
599
  }
 
600
  /*
601
 
 
 
602
  * Function To Completely Remove The Options
603
 
 
 
604
  */
605
 
 
 
606
  function sociable_2_remove(){
607
 
 
 
608
  require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
609
 
 
 
610
 
611
 
 
 
612
  global $wpdb;
613
 
 
 
614
  //Delete The Metadata
615
 
 
 
616
  $wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key = '_sociableoff'");
617
 
 
 
618
  //delete The Options
619
 
 
 
620
  delete_option( 'sociable_options' );
621
 
 
 
622
  delete_option( 'skyscraper_options' );
623
 
 
 
624
 
625
 
 
 
626
 
 
627
  deactivate_plugins( array( 'sociable/sociable.php' ) );
628
 
 
 
629
  wp_redirect( '/wp-admin/plugins.php?deactivate=true' );
630
 
 
 
631
  }
 
632
  /*
633
 
 
 
634
  * Generic Plugin Wide Functions
635
 
 
 
636
  */
637
 
 
 
638
  function _get_sociable_image_path(){
 
639
  global $sociable_options;
 
640
 
 
641
  if( empty( $sociable_options['custom_icons'] )){
 
642
  if ($sociable_options['icon_option'] !="option6"){
 
643
  $path = trailingslashit( SOCIABLE_HTTP_PATH . 'images/'.$sociable_options['icon_option']."/" . $sociable_options['icon_size'] );
 
644
  }else{
 
645
 
 
646
  $path = trailingslashit( SOCIABLE_HTTP_PATH . 'images/original/');
 
647
  }
 
648
  } else {
 
649
  $path = trailingslashit( SOCIABLE_HTTP_PATH . 'images/customIcons/');
 
650
  }
 
651
 
 
652
 
 
653
  return $path;
 
654
  }
 
655
  function _get_sociable_image( $site, $description ){
 
656
  global $sociable_options;
 
657
  $imageclass = '';
658
 
 
 
659
  $imagestyle = '';
660
 
 
 
661
  $imagepath = _get_sociable_image_path();
662
 
 
 
663
  //Get The Source Of The Image
664
 
 
 
665
  if ( ! isset( $site['spriteCoordinates'] ) || ! isset( $sociable_options['use_sprites'] ) || is_feed() ) {
 
666
  if ( strpos( $site['favicon'], 'http' ) === 0 ) {
667
 
 
 
668
  $imagesource = $site['favicon'];
669
 
 
 
670
  } else {
671
 
 
 
672
  $imagesource = $imagepath.$site['favicon'];
673
 
 
 
674
  }
 
675
  } else {
 
676
  $imagesource = $imagepath . "services-sprite.gif";
677
 
 
 
678
  $services_sprite_url = $imagepath . "sprite.png";
 
679
  $spriteCoords = $site['spriteCoordinates'];
680
 
 
 
681
 
682
 
 
 
683
  $size = $sociable_options['icon_size'];
 
684
  $imagestyle = 'width: ' . $size . 'px; height: ' . $size . 'px; background: transparent url(' . $services_sprite_url . ') no-repeat; background-position:' . $spriteCoords[$size] . 'px 0';
 
685
  }
686
 
 
 
687
 
 
688
  if( isset( $sociable_options['use_alphamask'] ) ){
689
 
 
 
690
  $imageclass .= 'sociable-hovers';
691
 
 
 
692
  }
 
693
  //If A Class Has Been Specified, Ensure It Is Added To The Class Attribute.
694
 
 
 
695
  if ( isset( $site['class'] ) ) {
696
 
 
 
697
  $imageclass .= 'sociable_' . $site['class'];
698
 
 
 
699
  }
 
700
  if( $imagestyle != '' ){
701
 
 
 
702
  $imagestyle = 'style="' . $imagestyle . '"';
703
 
 
 
704
  }
705
 
 
 
706
  if ($sociable_options['icon_option'] !="option6"){
 
707
  $image = '<img src="' . $imagesource . '" title="' . $description . '" alt="' . $description . '"' . $imagestyle . ' />' ;
 
708
  }else{
 
709
  $image = '<img class="' . $imageclass . '" src="' . $imagesource . '" title="' . $description . '" alt="' . $description . '"' . $imagestyle . ' />' ;
 
710
  }
711
 
 
 
712
 
713
 
 
 
714
  return $image;
715
 
 
 
716
  }
 
717
  ?>
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.2
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.
24
+
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
  wp_enqueue_script('jquery');
94
+
95
  global $sociable_post_types, $sociable_taxonomies, $sociable_options, $skyscraper_options;
96
+
97
  $import_call_asyn = true;
98
+
99
  $url_shares = $_SERVER["REQUEST_URI"];
100
 
101
+
102
+
103
  if (strpos($url_shares, "wp-admin")){
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
  else{
116
 
117
+
118
+
119
  if (!isset($skyscraper_options["active"])){
120
 
121
+
122
+
123
  $import_call_asyn = false;
124
+
125
  }
126
+
127
  }
128
+
129
  if ($import_call_asyn){
130
 
131
+
132
+
133
  wp_enqueue_script( 'async_call' , SOCIABLE_HTTP_PATH . 'js/async_call.js' );
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
  //Set The Post Types
163
 
164
+
165
+
166
  $sociable_post_types = Sociable_Globals::sociable_get_post_types();
167
 
168
+
169
+
170
  //Set The Custom Taxonomies
171
 
172
+
173
+
174
  $sociable_taxonomies = Sociable_Globals::sociable_get_taxonomies();
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
  // wp_enqueue_script( 'addtofavourites' , SOCIABLE_HTTP_PATH . 'js/addtofavorites.js' );
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
  add_action( 'admin_init' , array( 'sociable_Admin_Options' , 'init' ) );
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
  add_action( 'init' , 'sociable_init' );
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
  echo "var base_url_sociable = '".SOCIABLE_HTTP_PATH."'";
237
+
238
+ echo "</script><script type='text/javascript' src='http://apis.google.com/js/plusone.js'></script>";
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
  add_filter( 'the_excerpt', 'auto_sociable' );
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.2',
311
+
312
  'automatic_mode' => 'on',
313
+
314
  'tagline' => 'Be Sociable, Share!',
315
+
316
  'custom_image_directory' => '',
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
  'is_single' => 'on',
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
  'Add to favorites'=>'on',
345
+
346
  'StumbleUpon' =>'on',
347
+
348
  'Delicious' =>'on',
349
+
350
  'Google Reader' =>'on',
351
+
352
  'LinkedIn' => 'on',
353
+
354
  'BlinkList' =>'on',
355
+
356
  'More' => 'on',
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
  'icon_size' => '32',
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&amp;t=TITLE',
389
+
390
  'spriteCoordinates' => Array(
391
+
392
  '16' => array("-48px","0px"),
393
+
394
  '32' => array("-96px","0px"),
395
+
396
  '48' => array("-144px","0px"),
397
+
398
  '64' => array("-192px","0px")
399
+
400
  )
401
+
402
  ),
403
+
404
  'Facebook Counter' => array(
405
+
406
  'counter' =>1,
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
  '64' => array("-192px","0px")
421
+
422
  )
423
+
424
  ),
425
 
426
+
427
+
428
  'Myspace' => array(
429
+
430
  'favicon' => 'myspace.png',
431
+
432
  'url' => 'http://www.myspace.com/Modules/PostTo/Pages/?u=PERMALINK&amp;t=TITLE',
433
+
434
  'spriteCoordinates' => Array(
435
+
436
  '16' => array("0px","-16px"),
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
  '16' => array("-144px","-16px"),
459
+
460
  '32' => array("-288px","-32px"),
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
  'favicon' => 'twitter.png',
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
  '64' => array("-576px","-64px")
489
+
490
  )
491
+
492
  ),
493
+
494
  'LinkedIn' => array(
495
+
496
  'favicon' => 'linkedin.png',
497
+
498
  'url' => 'http://www.linkedin.com/shareArticle?mini=true&amp;url=PERMALINK&amp;title=TITLE&amp;source=BLOGNAME&amp;summary=EXCERPT',
499
+
500
  'spriteCoordinates' => Array(
501
+
502
  '16' => array("-144px","0px"),
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&amp;title=TITLE&amp;notes=EXCERPT',
549
+
550
  'spriteCoordinates' => Array(
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&amp;url=PERMALINK&amp;title=TITLE&amp;bodytext=EXCERPT',
573
+
574
  'spriteCoordinates' => Array(
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
  'Digg Counter' => array(
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&amp;title=TITLE' class='DiggThisButton DiggCompact'></a>",
595
 
596
+
597
+
598
  'spriteCoordinates' => Array(
599
+
600
  '16' => array("-32px","0px"),
601
+
602
  '32' => array("-64px","0px"),
603
+
604
  '48' => array("-96px","0px"),
605
+
606
  '64' => array("-128px","0px")
607
+
608
  )
609
+
610
  ),
611
 
612
+
613
+
614
  'Reddit' => array(
615
 
616
+
617
+
618
  'favicon' => 'reddit.png',
619
+
620
 
621
+
622
  'url' => 'http://reddit.com/submit?url=PERMALINK&amp;title=TITLE',
623
+
624
  'spriteCoordinates' => Array(
625
+
626
  '16' => array("-64px","-16px"),
627
+
628
  '32' => array("-128px","-32px"),
629
+
630
  '48' => array("-192px","-48px"),
631
+
632
  '64' => array("-256px","-64px")
633
+
634
  )
635
+
636
  ),
637
+
638
 
639
+
640
  'StumbleUpon' => array(
641
+
642
  'favicon' => 'stumbleupon.png',
643
+
644
  'url' => 'http://www.stumbleupon.com/submit?url=PERMALINK&title=TITLE',
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
  '32' => array("-224px","-32px"),
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
  'url' => 'http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=PERMALINK&amp;title=TITLE&amp;annotation=EXCERPT',
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
  /* 'url' => '<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
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
  window.___gcfg = {
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
  'description' => 'Google Bookmarks',
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&amp;t=TITLE',
769
+
770
  'spriteCoordinates' => Array(
771
+
772
  '16' => array("-128px","0px"),
773
+
774
  '32' => array("-256px","0px"),
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
  'url' => 'http://reporter.es.msn.com/?fn=contribute&amp;Title=TITLE&amp;URL=PERMALINK&amp;cat_id=6&amp;tag_id=31&amp;Remark=EXCERPT',
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&amp;Url=PERMALINK&amp;Title=TITLE',
813
+
814
  'spriteCoordinates' => Array(
815
+
816
  '16' => array("0px","0px"),
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
  'Sphinn' => Array(
831
+
832
  'favicon' => 'sphinn.png',
833
+
834
  'url' => 'http://sphinn.com/index.php?c=post&amp;m=submit&amp;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
  '64' => array("-384px","-64px")
845
+
846
  )
847
+
848
  ),
849
+
850
 
851
+
852
  'Posterous' => Array(
853
+
854
  'favicon' => 'posterous.png',
855
+
856
  'url' => 'http://posterous.com/share?linkto=PERMALINK&amp;title=TITLE&amp;selection=EXCERPT',
857
+
858
  'spriteCoordinates' => Array(
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
  'Tumblr' => Array(
873
+
874
  'favicon' => 'tumblr.png',
875
+
876
  'url' => 'http://www.tumblr.com/share?v=3&amp;u=PERMALINK&amp;t=TITLE&amp;s=EXCERPT',
877
+
878
  'spriteCoordinates' => Array(
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
  '48' => array("-240px","0px"),
907
+
908
  '64' => array("-320px","0px")
909
+
910
  ),
911
+
912
  'supportsIframe' => false
913
+
914
  ),
915
+
916
 
917
+
918
  'Google Reader' => array (
919
+
920
  'favicon' => 'googlebuzz.png',
921
+
922
  'url' => 'http://www.google.com/reader/link?url=PERMALINK&amp;title=TITLE&amp;srcURL=PERMALINK&amp;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
  '32' => array("-128px","0px"),
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
  'url' => 'javascript:more();',
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
  update_option( 'sociable_known_sites' , $sociable_known_sites );
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
  "version" => "1.0",
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
  "share" => array("check" => "0",
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
  "is_category" => 1,
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
  update_option( 'skyscraper_options' , $skyscraper_options );
1138
 
1139
+
1140
+
1141
 
1142
 
1143
+
1144
+
1145
 
1146
 
1147
+
1148
+
1149
  $skyscraper_latest = array();
1150
 
1151
+
1152
+
1153
  update_option("skyscraper_latest",$skyscraper_latest );
1154
 
1155
+
1156
+
1157
 
1158
 
1159
+
1160
+
1161
  $skyscraper_mentions = array();
1162
 
1163
+
1164
+
1165
  update_option("skyscraper_mentions",$skyscraper_mentions );
1166
 
1167
+
1168
+
1169
  }
1170
+
1171
  /*
1172
 
1173
+
1174
+
1175
  * De-Activate Function
1176
 
1177
+
1178
+
1179
  */
1180
 
1181
+
1182
+
1183
  function sociable_deactivate(){
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
  function sociable_2_remove(){
1222
 
1223
+
1224
+
1225
  require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
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
  delete_option( 'skyscraper_options' );
1254
 
1255
+
1256
+
1257
 
1258
 
1259
+
1260
+
1261
 
1262
+
1263
  deactivate_plugins( array( 'sociable/sociable.php' ) );
1264
 
1265
+
1266
+
1267
  wp_redirect( '/wp-admin/plugins.php?deactivate=true' );
1268
 
1269
+
1270
+
1271
  }
1272
+
1273
  /*
1274
 
1275
+
1276
+
1277
  * Generic Plugin Wide Functions
1278
 
1279
+
1280
+
1281
  */
1282
 
1283
+
1284
+
1285
  function _get_sociable_image_path(){
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
  function _get_sociable_image( $site, $description ){
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
+
1417
  }
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
  ?>