Sociable - Version 4.2.3

Version Description

  • Pinterest
  • Tags
Download this release

Release Info

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

Code changes from version 4.2.2 to 4.2.3

debig_output.txt DELETED
@@ -1,267 +0,0 @@
1
- This Text File Contains All The Gathered Data On Conditionals.
2
-
3
- On of the problems I found while rewriting this plugin was that in different situations some conditional tags were firing,
4
- this meant that the function to output the sociable links was being skewed. So I wrote a small function to test for most of the conditional tags in wordpress and
5
- report the reults.
6
-
7
- Here Are My Findings.
8
-
9
- Wordpress 3.2 RC2
10
-
11
- Home Page - Front Page Displays set to "Your Latest Posts"
12
- Array
13
- (
14
- [is_home] => TRUE
15
- [is_front_page] => TRUE
16
- [is_single] => FALSE
17
- [is_page] => FALSE
18
- [is_date] => FALSE
19
- [is_year] => FALSE
20
- [is_month] => FALSE
21
- [is_day] => FALSE
22
- [is_time] => FALSE
23
- [is_category] => FALSE
24
- [is_tag] => FALSE
25
- [is_tax] => FALSE
26
- [is_author] => FALSE
27
- [is_search] => FALSE
28
- [is_404] => FALSE
29
- [is_paged] => FALSE
30
- [is_attachment] => FALSE
31
- [is_singular] => FALSE
32
- [is_trackback] => FALSE
33
- [is_post_type_archive] => FALSE
34
- )
35
-
36
- Home Page - Front Page Displays set to A Page
37
- Array
38
- (
39
- [is_home] => FALSE
40
- [is_front_page] => TRUE
41
- [is_single] => FALSE
42
- [is_page] => TRUE
43
- [is_date] => FALSE
44
- [is_year] => FALSE
45
- [is_month] => FALSE
46
- [is_day] => FALSE
47
- [is_time] => FALSE
48
- [is_category] => FALSE
49
- [is_tag] => FALSE
50
- [is_tax] => FALSE
51
- [is_author] => FALSE
52
- [is_search] => FALSE
53
- [is_404] => FALSE
54
- [is_paged] => FALSE
55
- [is_attachment] => FALSE
56
- [is_singular] => TRUE
57
- [is_trackback] => FALSE
58
- [is_post_type_archive] => FALSE
59
- )
60
-
61
- Main Posts Page - With Front Page Set To A Page
62
- Array
63
- (
64
- [is_home] => TRUE
65
- [is_front_page] => FALSE
66
- [is_single] => FALSE
67
- [is_page] => FALSE
68
- [is_date] => FALSE
69
- [is_year] => FALSE
70
- [is_month] => FALSE
71
- [is_day] => FALSE
72
- [is_time] => FALSE
73
- [is_category] => FALSE
74
- [is_tag] => FALSE
75
- [is_tax] => FALSE
76
- [is_author] => FALSE
77
- [is_search] => FALSE
78
- [is_404] => FALSE
79
- [is_paged] => FALSE
80
- [is_attachment] => FALSE
81
- [is_singular] => FALSE
82
- [is_trackback] => FALSE
83
- [is_post_type_archive] => FALSE
84
- )
85
-
86
- Category Archives
87
- Array
88
- (
89
- [is_home] => FALSE
90
- [is_front_page] => FALSE
91
- [is_single] => FALSE
92
- [is_page] => FALSE
93
- [is_date] => FALSE
94
- [is_year] => FALSE
95
- [is_month] => FALSE
96
- [is_day] => FALSE
97
- [is_time] => FALSE
98
- [is_category] => TRUE
99
- [is_tag] => FALSE
100
- [is_tax] => FALSE
101
- [is_author] => FALSE
102
- [is_search] => FALSE
103
- [is_404] => FALSE
104
- [is_paged] => FALSE
105
- [is_attachment] => FALSE
106
- [is_singular] => FALSE
107
- [is_trackback] => FALSE
108
- [is_archive] => TRUE
109
- [is_post_type_archive] => FALSE
110
- )
111
-
112
- Tag Archive
113
- Array
114
- (
115
- [is_home] => FALSE
116
- [is_front_page] => FALSE
117
- [is_single] => FALSE
118
- [is_page] => FALSE
119
- [is_date] => FALSE
120
- [is_year] => FALSE
121
- [is_month] => FALSE
122
- [is_day] => FALSE
123
- [is_time] => FALSE
124
- [is_category] => FALSE
125
- [is_tag] => TRUE
126
- [is_tax] => FALSE
127
- [is_author] => FALSE
128
- [is_search] => FALSE
129
- [is_404] => FALSE
130
- [is_paged] => FALSE
131
- [is_attachment] => FALSE
132
- [is_singular] => FALSE
133
- [is_trackback] => FALSE
134
- [is_archive] => TRUE
135
- [is_post_type_archive] => FALSE
136
- )
137
-
138
- Monthly Archive
139
- Array
140
- (
141
- [is_home] => FALSE
142
- [is_front_page] => FALSE
143
- [is_single] => FALSE
144
- [is_page] => FALSE
145
- [is_date] => TRUE
146
- [is_year] => FALSE
147
- [is_month] => TRUE
148
- [is_day] => FALSE
149
- [is_time] => FALSE
150
- [is_category] => FALSE
151
- [is_tag] => FALSE
152
- [is_tax] => FALSE
153
- [is_author] => FALSE
154
- [is_search] => FALSE
155
- [is_404] => FALSE
156
- [is_paged] => FALSE
157
- [is_attachment] => FALSE
158
- [is_singular] => FALSE
159
- [is_trackback] => FALSE
160
- [is_archive] => TRUE
161
- [is_post_type_archive] => FALSE
162
- )
163
-
164
-
165
- Post Type Archive
166
- Array
167
- (
168
- [is_home] => FALSE
169
- [is_front_page] => FALSE
170
- [is_single] => FALSE
171
- [is_page] => FALSE
172
- [is_date] => FALSE
173
- [is_year] => FALSE
174
- [is_month] => FALSE
175
- [is_day] => FALSE
176
- [is_time] => FALSE
177
- [is_category] => FALSE
178
- [is_tag] => FALSE
179
- [is_tax] => FALSE
180
- [is_author] => FALSE
181
- [is_search] => FALSE
182
- [is_404] => FALSE
183
- [is_paged] => FALSE
184
- [is_attachment] => FALSE
185
- [is_singular] => FALSE
186
- [is_trackback] => FALSE
187
- [is_archive] => TRUE
188
- [is_post_type_archive] => TRUE
189
- )
190
-
191
- Search Results
192
- Array
193
- (
194
- [is_home] => FALSE
195
- [is_front_page] => FALSE
196
- [is_single] => FALSE
197
- [is_page] => FALSE
198
- [is_date] => FALSE
199
- [is_year] => FALSE
200
- [is_month] => FALSE
201
- [is_day] => FALSE
202
- [is_time] => FALSE
203
- [is_category] => FALSE
204
- [is_tag] => FALSE
205
- [is_tax] => FALSE
206
- [is_author] => FALSE
207
- [is_search] => TRUE
208
- [is_404] => FALSE
209
- [is_paged] => FALSE
210
- [is_attachment] => FALSE
211
- [is_singular] => FALSE
212
- [is_trackback] => FALSE
213
- [is_archive] => FALSE
214
- [is_post_type_archive] => FALSE
215
- )
216
-
217
- Taxonomy Archive
218
- Array
219
- (
220
- [is_home] => FALSE
221
- [is_front_page] => FALSE
222
- [is_single] => FALSE
223
- [is_page] => FALSE
224
- [is_date] => FALSE
225
- [is_year] => FALSE
226
- [is_month] => FALSE
227
- [is_day] => FALSE
228
- [is_time] => FALSE
229
- [is_category] => FALSE
230
- [is_tag] => FALSE
231
- [is_tax] => TRUE
232
- [is_author] => FALSE
233
- [is_search] => FALSE
234
- [is_404] => FALSE
235
- [is_paged] => FALSE
236
- [is_attachment] => FALSE
237
- [is_singular] => FALSE
238
- [is_trackback] => FALSE
239
- [is_archive] => TRUE
240
- [is_post_type_archive] => FALSE
241
- )
242
-
243
- Single Post Type:
244
- Array
245
- (
246
- [is_home] => FALSE
247
- [is_front_page] => FALSE
248
- [is_single] => TRUE
249
- [is_page] => FALSE
250
- [is_date] => FALSE
251
- [is_year] => FALSE
252
- [is_month] => FALSE
253
- [is_day] => FALSE
254
- [is_time] => FALSE
255
- [is_category] => FALSE
256
- [is_tag] => FALSE
257
- [is_tax] => FALSE
258
- [is_author] => FALSE
259
- [is_search] => FALSE
260
- [is_404] => FALSE
261
- [is_paged] => FALSE
262
- [is_attachment] => FALSE
263
- [is_singular] => TRUE
264
- [is_trackback] => FALSE
265
- [is_archive] => FALSE
266
- [is_post_type_archive] => FALSE
267
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
images/toolbar/pinterest.png ADDED
Binary file
includes/class-sociable_Admin_Options.php CHANGED
@@ -1,31 +1,20 @@
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
 
@@ -33,272 +22,252 @@ class sociable_Admin_Options{
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
 
@@ -306,11 +275,7 @@ TOP or HOME from Sociable Skyscraper.
306
 
307
 
308
 
309
- <br/ ><br/ >
310
-
311
-
312
 
313
- Enjoy it now!!!
314
 
315
 
316
 
@@ -318,1384 +283,6603 @@ Enjoy it now!!!
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
 
665
- </select>
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>
726
 
727
- <TD class="Border-Left" ></TD><TD class="BG-Middle" >
728
 
729
- Social Options
730
 
731
- </TD>
732
 
733
- <TD class="Border-Right"></TD>
734
 
735
- </TR>
736
 
737
- </TABLE>
738
 
739
- <BR/>
740
 
741
- <DIV style="margin:0 0 0 25px" class="Post-subTXT">
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"];
748
 
749
- }
750
 
751
- else{
752
 
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
 
@@ -1703,7 +6887,15 @@ share your posts, don't you? :) Get it now!
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
 
@@ -1711,19 +6903,39 @@ share your posts, don't you? :) Get it now!
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
 
@@ -1731,369 +6943,479 @@ share your posts, don't you? :) Get it now!
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
 
@@ -2101,63 +7423,55 @@ share your posts, don't you? :) Get it now!
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
 
@@ -2165,815 +7479,695 @@ share your posts, don't you? :) Get it now!
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
 
@@ -2981,1908 +8175,1635 @@ share your posts, don't you? :) Get it now!
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
 
@@ -4890,45 +9811,39 @@ share your posts, don't you? :) Get it now!
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
 
@@ -4936,27 +9851,23 @@ share your posts, don't you? :) Get it now!
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
 
@@ -4964,119 +9875,103 @@ share your posts, don't you? :) Get it now!
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
 
@@ -5084,183 +9979,151 @@ share your posts, don't you? :) Get it now!
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
 
@@ -5268,38 +10131,44 @@ echo'<!--[if lt IE 7]>
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
  ?>
1
  <?php
2
 
 
 
 
3
 
4
+ /*
5
  * Administration Options Class For Sociable 2
 
 
 
6
  */
7
 
 
 
8
 
9
 
10
+ class sociable_Admin_Options{
11
 
12
 
13
 
14
  /**
15
 
 
 
16
  * A Function To Hook To Admin Init.
17
 
 
 
18
  */
19
 
20
 
22
  function init(){
23
 
24
 
25
+ register_setting( 'sociable_options_group' , 'sociable_options' );
26
 
 
27
 
28
 
29
+ //Add The Settings Sections
30
 
 
31
 
32
 
33
 
 
34
 
35
 
36
 
37
+ // add_settings_section( 'sociable_locations', __( 'Locations' ), array( 'sociable_Admin_Options' , 'location_options_callback' ) , 'sociable_options' );
38
 
39
 
40
 
41
+ // add_settings_section( 'sociable_options', __( 'General Options' ), array( 'sociable_Admin_Options' , 'general_options_callback' ) , 'sociable_options' );
42
 
43
 
44
 
45
+ register_setting( 'skyscraper_options_group' , 'skyscraper_options' );
46
 
47
 
48
+ // add_settings_section( 'sociable_locations', __( 'Locations' ), array( 'sociable_Admin_Options' , 'location_options_callback' ) , 'skyscraper_options' );
49
 
50
+ }
51
 
52
 
53
+ function skyscraper_init(){
54
 
 
55
 
56
+ register_setting( 'skyscraper_options_group' , 'skyscraper_options' );
57
 
58
 
 
59
 
60
+ add_settings_section( 'sociable_locations', __( 'Locations' ), array( 'sociable_Admin_Options' , 'location_options_callback' ) , 'skyscraper_options' );
61
 
62
 
 
63
 
64
+ //Add All The Settings Fields
65
 
66
 
67
+ //self::add_settings_fields();
68
 
69
+ }
70
 
71
 
 
72
 
73
+ function Select_Sociable_Page(){
74
 
75
 
76
+ global $sociable_options;
77
 
78
+ ?>
79
 
80
 
81
+ <div class="wrap" style="margin-top:25px">
82
 
83
 
84
+ <div style="width: 80%; margin-left: 25px; color: rgb(147, 147, 147); font-weight: bold; font-size: 15px;">
85
 
 
86
 
87
+ Congrats! You are joining the leader in the sharing space of WordPress plugins. Started more than 2 years ago, and with over 1,5mm downloads now, here comes the latest version 4.1 <br /><br />
88
 
89
 
90
+ You can select Sociable Classic and/or Sociable Skyscraper to spread the World, increase your traffic and your reader's ability to share your posts! <br /> <br />
91
 
92
+ </div>
93
 
94
 
 
95
 
96
+ <div class="wrap" style="width:42%;float:left">
97
 
 
98
 
99
+ <?php //wp_nonce_field('sociable-config'); ?>
100
 
101
 
102
+ <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px">
103
 
104
+ <TR>
105
 
106
 
107
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" >Skyscraper Sociable</TD><TD class="Border-Right"></TD>
108
 
109
+ </TR>
110
 
111
+ <TR>
112
 
 
113
 
114
+ <TD colspan="3" >
115
 
116
 
 
117
 
118
 
119
 
 
120
 
121
 
122
+ <table>
123
 
 
124
 
125
 
126
 
 
127
 
128
 
129
 
130
+ <tr>
131
 
132
 
133
 
 
134
 
135
 
136
 
 
137
 
138
+ <td>
139
 
140
 
 
141
 
142
 
143
 
 
144
 
145
 
146
+ <img src="<?php echo SOCIABLE_HTTP_PATH ?>images/skyphoto.png" style="margin-left:-5px;margin-top:20px;" />
147
 
 
148
 
149
 
150
 
 
151
 
152
 
153
 
154
+ </td>
155
 
156
 
157
 
 
158
 
159
 
160
 
 
161
 
162
+ <td valign="top" >
163
 
164
 
 
165
 
166
 
167
 
 
168
 
169
 
170
+ <br/><br/>
171
 
 
172
 
173
 
174
 
 
175
 
176
 
177
 
178
+ <span style="font-size:18px;color:#18305e;font-weight:bold;">Skyscraper Sociable</span>
179
 
180
 
181
 
 
182
 
183
 
184
 
 
185
 
186
+ <p style="font-size:12px;color:#939393;font-weight:bold;" >
187
 
188
 
 
189
 
190
 
191
 
 
192
 
193
 
194
+ Now introducing the ultimate advanced and feature packed plugin for setting up rating system on your WordPress blog.
195
 
 
196
 
197
 
198
 
 
199
 
200
 
201
 
202
+ <br/ ><br/ >
203
 
204
 
205
 
 
206
 
207
 
208
 
 
209
 
210
+ Sociable Skyscraper allows you to set up different rating systems for posts, pages and comments with great degree of customization.
211
 
212
 
 
213
 
214
 
215
 
 
216
 
217
 
218
+ <br/ ><br/ >
219
 
 
220
 
221
 
222
 
 
223
 
224
 
225
 
226
+ List of features is so smart and non-stop growing:
227
 
228
 
229
 
 
230
 
231
 
232
 
 
233
 
234
+ <br/ ><br/ >
235
 
236
 
 
237
 
238
 
239
 
 
240
 
241
 
242
+ You can get more "Sociable" with Sociable Skyscraper and easily getting
243
 
 
244
 
245
 
246
 
 
247
 
248
 
249
 
250
+ Rating and Review of: posts, pages, comments, Facebook, G+, LinkedIN,
251
 
252
 
253
 
 
254
 
255
 
256
 
 
257
 
258
+ Twitter as well as multiple ratings for posts and pages. Visitor's counter,
259
 
260
 
 
261
 
262
 
263
 
 
264
 
265
 
266
+ visitor's from Facebook and Twitter... As a plus you get an easy way to get
267
 
 
268
 
269
 
270
 
 
271
 
272
 
273
 
275
 
276
 
277
 
 
 
 
278
 
 
279
 
280
 
281
 
283
 
284
 
285
 
 
286
 
287
 
288
 
 
289
 
290
+ Enjoy it now!!!
291
 
292
 
 
293
 
294
 
295
 
 
296
 
297
 
298
+ <br/ ><br/ >
299
 
 
300
 
301
 
302
 
 
303
 
304
 
305
 
306
+ Be Sociable, Share!!!
307
 
308
 
309
 
 
310
 
311
 
312
 
 
313
 
314
+ </p>
315
 
316
 
 
317
 
318
 
319
 
 
320
 
321
 
322
+
323
 
 
324
 
325
 
326
 
 
327
 
328
 
329
 
330
+ <a href="?page=skyscraper_options" style="color:#ffffff;text-decoration:none;" ><img src="<?php echo SOCIABLE_HTTP_PATH ?>images/button_newsky.png" ></a>
331
 
332
 
333
 
 
334
 
335
 
336
 
 
337
 
338
+
339
 
340
 
 
341
 
342
 
343
 
 
344
 
345
 
346
+ </td>
347
 
 
348
 
349
 
350
 
 
351
 
352
 
353
 
354
+ </tr>
355
 
356
 
357
 
 
358
 
359
 
360
 
 
361
 
362
+ </table>
363
 
364
 
 
365
 
366
 
367
 
 
368
 
369
 
370
+ </TD>
371
 
 
372
 
373
 
374
 
 
375
 
376
 
377
 
378
+
379
 
380
 
381
 
 
382
 
383
 
384
 
 
385
 
386
+
387
 
388
 
 
389
 
390
 
391
 
 
392
 
393
 
394
+ </TR>
395
 
 
396
 
397
 
398
 
 
399
 
400
 
401
 
402
+ </TABLE>
403
 
404
 
405
 
 
406
 
407
 
408
 
 
409
 
410
+ <BR/>
411
 
412
 
 
413
 
414
 
415
 
 
416
 
417
 
418
+
419
 
 
420
 
421
 
422
 
 
423
 
424
 
425
 
426
+ </div>
427
 
428
 
429
 
 
430
 
431
 
432
 
 
433
 
434
+ <div class="wrap" style="margin-left:30px;width:48%;float:left">
435
 
436
 
 
437
 
438
 
439
 
 
440
 
 
441
 
442
+ <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px">
443
 
444
 
 
445
 
446
 
447
 
 
448
 
449
 
450
+ <TR>
451
 
 
452
 
453
 
454
 
 
455
 
456
 
457
 
458
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" >Classic Sociable</TD><TD class="Border-Right"></TD>
459
 
460
 
461
 
 
462
 
463
 
464
 
 
465
 
466
+ </TR>
467
 
468
 
 
469
 
470
 
471
 
 
472
 
473
 
474
+ <TR>
475
 
 
476
 
477
 
478
 
 
479
 
480
 
481
 
482
+ <TD colspan="3" >
483
 
484
 
485
 
 
486
 
 
487
 
488
 
489
 
490
+ <div style="margin-left:5px;">
491
 
 
492
 
493
 
494
 
 
495
 
496
 
 
497
 
498
+ <br /><br />
499
 
500
 
 
501
 
502
 
 
503
 
504
 
 
505
 
506
+ <span style="font-size:18px;color:#18305e;font-weight:bold;">Classic Sociable</span>
507
 
508
 
 
509
 
510
 
511
 
512
 
 
513
 
514
+
515
 
516
 
 
517
 
 
518
 
519
 
 
520
 
 
521
 
522
+ <p style="font-size:12px;color:#939393;font-weight:bold;" >
523
 
524
 
 
525
 
526
 
527
 
 
528
 
529
 
530
+ We've improved our visual interface, the default icons are now much
531
 
 
532
 
533
 
534
 
 
535
 
536
 
537
 
538
+ <br/ >
539
 
540
 
541
 
 
542
 
543
 
544
 
 
545
 
546
+ more appealing, and a touch bit larger (you do want your readers to
547
 
548
 
 
549
 
550
 
551
 
 
552
 
553
 
554
+ <br/ >
555
 
 
556
 
557
 
558
 
 
559
 
560
 
561
 
562
+ share your posts, don't you? :) Get it now!
563
 
 
564
 
 
565
 
566
 
 
567
 
 
568
 
569
 
570
+ </p>
571
 
 
572
 
 
573
 
 
574
 
575
 
 
576
 
577
 
578
+ <img src="<?php echo SOCIABLE_HTTP_PATH ?>images/socciable_old.png" ><br/>
579
 
 
580
 
581
 
 
582
 
 
583
 
 
584
 
585
 
586
+ <div style="height: 176px;"></div>
587
 
 
 
 
 
588
 
589
 
590
 
 
591
 
592
 
593
 
594
+ <a href="?page=sociable_options" style="color:#ffffff;text-decoration:none;" ><img src="<?php echo SOCIABLE_HTTP_PATH ?>images/button_sociabb.png" ></a>
595
 
596
 
597
 
 
598
 
 
599
 
 
600
 
601
 
602
+ </div>
603
 
 
604
 
605
 
 
606
 
607
 
 
608
 
609
 
610
+ </TD>
611
 
 
612
 
613
 
 
614
 
 
615
 
 
616
 
 
617
 
618
+
619
 
 
620
 
 
621
 
 
622
 
 
623
 
 
624
 
 
625
 
626
+ </TR>
627
 
 
628
 
 
629
 
 
630
 
 
631
 
 
 
632
 
 
633
 
634
+ </TABLE>
635
 
636
 
 
637
 
638
 
639
 
 
640
 
641
 
642
+ <BR/>
643
 
 
644
 
645
 
646
 
 
647
 
648
 
649
 
650
+
651
 
652
 
653
 
 
654
 
655
 
656
 
 
657
 
658
+ </div>
659
 
660
 
 
661
 
662
 
663
 
 
664
 
665
 
666
+ </div>
667
 
 
668
 
669
 
670
+ <?php }
671
 
 
672
 
673
 
674
 
 
675
 
676
 
677
 
678
+
679
 
680
 
681
 
 
682
 
683
 
684
 
 
685
 
686
+ function create_select_options($value){
687
 
688
 
 
689
 
690
 
691
 
 
692
 
693
 
694
+
695
 
 
696
 
697
 
698
 
 
699
 
700
 
701
 
702
+ for($i=3; $i<=9; ){
703
 
704
 
705
 
 
706
 
707
 
708
 
 
709
 
710
+
711
 
712
 
 
713
 
714
 
715
 
 
716
 
717
 
718
+ $sel = "";
719
 
 
720
 
721
 
722
 
 
723
 
724
 
725
 
726
+ if ($value == $i){
727
 
728
 
729
 
 
730
 
731
 
732
 
 
733
 
734
+ $sel = "selected";
735
 
736
 
 
737
 
738
 
739
 
 
740
 
741
 
742
+ }
743
 
 
744
 
745
 
746
 
 
747
 
748
 
749
 
750
+ echo "<option ".$sel." value='".$i."'> latest ".$i."</option>";
751
 
752
 
753
 
 
754
 
755
 
756
 
 
757
 
758
+
759
 
760
 
 
761
 
762
 
763
 
 
764
 
765
 
766
+ $i = $i+3;
767
 
 
768
 
769
 
770
 
 
771
 
772
 
773
 
774
+ }
775
 
776
 
777
 
778
+ }
779
 
780
 
781
 
 
782
 
783
 
784
 
 
785
 
786
+
787
 
788
 
 
789
 
790
+
791
 
792
 
 
793
 
794
 
795
 
 
796
 
797
 
798
+ function Create_Options_Page_Skycraper(){
799
 
 
800
 
801
 
802
 
 
803
 
804
+ global $skyscraper_options;
805
 
806
 
 
807
 
808
+ ?>
809
 
810
 
 
811
 
812
 
813
 
814
+ <div class="wrap" style="width:48%;float:left">
815
 
816
 
817
 
 
818
 
819
 
820
+ <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >
821
 
 
822
 
823
 
824
 
 
825
 
826
+ <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>
827
 
828
 
 
829
 
830
 
831
 
 
832
 
833
 
834
+ <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://blogplay.com" data-text="Check the sociable plugin [blogplay.com]" >Tweet</a>
835
 
 
836
 
837
 
838
 
 
839
 
840
 
841
 
 
842
 
843
 
844
+ <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>
845
 
 
846
 
847
 
848
 
 
849
 
850
 
851
 
852
+ <br />
853
 
854
 
855
 
856
+ </div>
857
 
858
 
859
 
 
860
 
861
 
862
+ <form method="post" action="options.php" id="form1" autocomplete="off">
863
 
 
864
 
865
 
866
+ <?php wp_nonce_field('sociable-config'); ?>
867
 
 
868
 
869
 
870
 
 
871
 
872
 
873
 
874
+ <INPUT type="hidden" class="version-INPUT" id="version" name="skyscraper_options[version]" value="<?php echo $skyscraper_options["version"];?>" />
875
 
876
 
877
 
 
878
 
879
 
880
 
 
881
 
882
+ <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px">
883
 
884
 
 
885
 
886
 
887
 
 
888
 
889
 
890
+ <TR>
891
 
 
892
 
893
 
894
 
 
895
 
896
 
897
 
898
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Style Options","sociable");?></TD><TD class="Border-Right"></TD>
899
 
900
 
901
 
 
902
 
903
 
904
 
 
905
 
906
+ </TR>
907
 
908
 
 
909
 
910
 
911
 
 
912
 
913
 
914
+ </TABLE>
915
 
 
916
 
917
 
918
 
 
919
 
920
 
921
 
922
+ <BR/>
923
 
924
 
925
 
 
926
 
927
 
928
 
 
929
 
930
+ <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >
931
 
932
 
 
933
 
934
 
935
 
 
936
 
937
 
938
+ <?php _e("Text Size","sociable");?>:
939
 
 
940
 
941
 
942
 
 
943
 
944
 
945
 
946
+ <select id="text_size" name="skyscraper_options[text_size]" style="margin-left:73px">
947
 
948
 
949
 
 
950
 
951
 
952
 
 
953
 
954
+ <?php
955
 
956
 
 
957
 
958
 
959
 
 
960
 
961
 
962
+ for($px=10; $px <= 20; $px++) {
963
 
 
964
 
965
 
966
+ $sel = "";
967
 
 
968
 
969
 
970
+ if($px== $skyscraper_options["text_size"])$sel = "selected";
971
 
 
972
 
973
 
974
 
 
975
 
976
+ ?>
977
 
978
 
 
979
 
980
+ <option <?php echo $sel?> value="<?php echo $px?>"><?php echo $px?>px</option>
981
 
982
 
 
983
 
984
 
985
 
986
+ <?php
987
 
988
 
989
 
990
+ }?>
991
 
992
 
993
 
994
+ </select>
995
 
996
 
997
 
998
+ </DIV>
999
 
1000
 
1001
 
 
1002
 
1003
 
1004
+ <DIV style="margin:0 0 0 24px" class="Post-subTXT" id="Post-subTXT" ><?php _e("Widget Width","sociable");?>:
1005
 
 
1006
 
1007
 
1008
 
 
1009
 
1010
 
1011
 
1012
+ <select id="text_size" id="widget_width" name="skyscraper_options[widget_width]" style="margin-left:50px">
1013
 
1014
 
1015
 
 
1016
 
1017
 
1018
+ <?php
1019
 
 
1020
 
1021
 
1022
+ for($wi=70; $wi <= 90; ) {
1023
 
 
1024
 
1025
 
1026
+ $sel = "";
1027
 
 
1028
 
1029
 
1030
 
 
1031
 
1032
 
1033
 
1034
+ if($wi== $skyscraper_options["widget_width"])$sel = "selected";
1035
 
1036
+ ?>
1037
 
1038
+ <option <?php echo $sel?> value="<?php echo $wi?>"><?php echo $wi?>px</option>
1039
 
1040
+ <?php
1041
 
1042
 
1043
 
 
1044
 
1045
 
1046
 
 
1047
 
1048
+ $wi +=5;
1049
 
1050
 
 
1051
 
1052
 
1053
 
 
1054
 
1055
 
1056
+ }?>
1057
 
 
1058
 
1059
 
1060
 
 
1061
 
1062
 
1063
 
1064
+ </select>
1065
 
1066
 
1067
 
1068
+ </DIV>
1069
 
1070
 
1071
 
1072
+ <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" ><?php _e("Background Color","sociable");?>:
1073
 
1074
 
1075
 
 
1076
 
1077
 
1078
+ <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)
1079
 
 
1080
 
1081
 
1082
+ </DIV>
1083
 
 
1084
 
1085
 
1086
 
 
1087
 
1088
+ <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" ><?php _e("Labels Color","sociable");?>:
1089
 
1090
 
 
1091
 
1092
 
1093
 
1094
+ <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)
1095
 
1096
 
1097
 
 
1098
 
1099
 
1100
+ </DIV>
1101
 
 
1102
 
1103
 
1104
+ <BR/>
1105
 
 
1106
 
1107
 
1108
 
 
1109
 
1110
+ <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Tagline-Title">
1111
 
1112
 
 
1113
 
1114
+ <TR>
1115
 
1116
 
 
1117
 
1118
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" >
1119
 
1120
 
 
1121
 
1122
+ Social Options
1123
 
1124
 
 
1125
 
1126
+ </TD>
1127
 
1128
 
 
1129
 
1130
+ <TD class="Border-Right"></TD>
1131
 
1132
 
 
1133
 
1134
+ </TR>
1135
 
1136
 
 
1137
 
1138
+ </TABLE>
1139
 
1140
 
 
1141
 
1142
+ <BR/>
1143
 
1144
 
 
1145
 
1146
+ <DIV style="margin:0 0 0 25px" class="Post-subTXT">
1147
 
1148
 
 
1149
 
1150
+ <?php _e("Your Twitter username","sociable");?>:<?php
1151
 
1152
 
 
1153
 
1154
+ if (!empty($skyscraper_options["twitter_username"])){
1155
 
1156
 
 
1157
 
1158
+ $twitter_username = $skyscraper_options["twitter_username"];
1159
 
1160
 
 
1161
 
1162
+ }
1163
 
1164
 
 
1165
 
1166
+ else{
1167
 
1168
 
 
1169
 
1170
+ $twitter_username = "@";
1171
 
1172
 
 
1173
 
1174
+ }
1175
 
1176
+ ?>
1177
 
 
1178
 
1179
 
1180
+ <input type="text" name="skyscraper_options[twitter_username]" value="<?php echo $twitter_username?>" />
1181
 
 
1182
 
1183
 
1184
 
 
1185
 
1186
 
1187
 
1188
+ <select name="skyscraper_options[num_tweets]" id="num_tweets">
1189
 
1190
 
1191
 
 
1192
 
1193
 
1194
 
 
1195
 
1196
+ <?php self:: create_select_options($skyscraper_options["num_tweets"]) ?>
1197
 
1198
 
 
1199
 
1200
 
1201
 
 
1202
 
1203
 
1204
+ </select>
1205
 
 
1206
 
1207
 
1208
 
 
1209
 
1210
 
1211
 
1212
+ </DIV>
1213
 
1214
 
1215
 
 
1216
 
1217
 
1218
 
 
1219
 
1220
+ <BR/>
1221
 
1222
 
 
1223
 
1224
 
1225
 
 
1226
 
1227
 
1228
+ <DIV style="margin:0 0 0 25px" class="Post-subTXT">
1229
 
 
1230
 
1231
 
1232
 
 
1233
 
1234
 
1235
 
1236
+ <?php _e("Your RSS feed","sociable");?>:
1237
 
1238
 
1239
 
 
1240
 
1241
 
1242
 
 
1243
 
1244
+ <?php
1245
 
1246
 
 
1247
 
1248
 
1249
 
 
1250
 
1251
 
1252
+
1253
 
 
1254
 
1255
 
 
1256
 
 
1257
 
 
1258
 
 
1259
 
1260
+ if (!empty($skyscraper_options["rss_feed"])){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1261
 
 
1262
 
 
1263
 
 
1264
 
 
1265
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1266
 
 
1267
 
1268
+ $rss_feed = $skyscraper_options["rss_feed"];
1269
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1270
 
 
1271
 
 
1272
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1273
 
 
1274
 
 
1275
 
1276
+ }
1277
+
1278
+
1279
+
1280
+
1281
+
1282
+
1283
+
1284
+ else{
1285
+
1286
+
1287
+
1288
+
1289
+
1290
+
1291
+
1292
+ $rss_feed = "http://";
1293
+
1294
+
1295
+
1296
+
1297
+
1298
+
1299
+
1300
+ }
1301
+
1302
+
1303
+
1304
+
1305
+
1306
+
1307
+
1308
+ ?>
1309
+
1310
+
1311
+
1312
+
1313
+
1314
+
1315
+
1316
+ <input type="text" name="skyscraper_options[rss_feed]" style="margin-left: 46px;" value="<?php echo $rss_feed?>" />
1317
+
1318
+
1319
+
1320
+
1321
+
1322
+
1323
+
1324
+ <select name="skyscraper_options[num_rss]" id="num_rss">
1325
+
1326
+
1327
+
1328
+
1329
+
1330
+
1331
+
1332
+ <?php self:: create_select_options($skyscraper_options["num_rss"]) ?>
1333
+
1334
+
1335
+
1336
+
1337
+
1338
+
1339
+
1340
+ </select>
1341
+
1342
+
1343
+
1344
+
1345
+
1346
+
1347
+
1348
+ </DIV>
1349
+
1350
+
1351
+
1352
+
1353
+
1354
+
1355
+
1356
+ <BR/>
1357
+
1358
+
1359
+
1360
+
1361
+
1362
+
1363
+
1364
+ <DIV style="margin:0 0 0 25px" class="Post-subTXT">
1365
+
1366
+
1367
+
1368
+
1369
+
1370
+
1371
+
1372
+ <?php
1373
+
1374
+
1375
+
1376
+
1377
+
1378
+
1379
+
1380
+ $checked = "";
1381
+
1382
+
1383
+
1384
+
1385
+
1386
+
1387
+
1388
+ if (isset($skyscraper_options["counters"]["check"])){
1389
+
1390
+
1391
+
1392
+
1393
+
1394
+
1395
+
1396
+ $checked = "checked";
1397
+
1398
+
1399
+
1400
+
1401
+
1402
+
1403
+
1404
+ }
1405
+
1406
+
1407
+
1408
+
1409
 
 
1410
 
 
1411
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1412
 
1413
+
1414
+
1415
+
1416
+
1417
+
1418
+
1419
+
1420
+ $folded = "";
1421
+
1422
+
1423
+
1424
+
1425
+
1426
+
1427
+
1428
+ $unfolded= "";
1429
+
1430
+
1431
+
1432
+
1433
+
1434
+
1435
+
1436
+ if (isset($skyscraper_options["counters"]["folded"])){
1437
+
1438
+
1439
+
1440
+
1441
+
1442
+
1443
+
1444
+ if($skyscraper_options["counters"]["folded"] == "1"){
1445
+
1446
+
1447
+
1448
+
1449
+
1450
+
1451
+
1452
+ $folded = "checked";
1453
+
1454
+
1455
+
1456
+
1457
+
1458
+
1459
+
1460
+ $unfolded= "";
1461
+
1462
+
1463
+
1464
+
1465
+
1466
+
1467
+
1468
+ }else{
1469
+
1470
+
1471
+
1472
+
1473
+
1474
+
1475
+
1476
+ $unfolded = "checked";
1477
+
1478
+
1479
+
1480
+
1481
+
1482
+
1483
+
1484
+ $folded= "";
1485
+
1486
+
1487
+
1488
+
1489
+
1490
+
1491
+
1492
+ }
1493
+
1494
+
1495
+
1496
+
1497
+
1498
+
1499
+
1500
  }
1501
+
1502
+
1503
+
1504
+
1505
+
1506
+
1507
+
1508
+
1509
+
1510
+
1511
+
1512
+
1513
+
1514
+
1515
+
1516
 
 
1517
 
 
1518
 
 
1519
 
 
 
 
1520
 
1521
 
 
1522
 
 
1523
 
1524
+ ?>
1525
+
1526
+
1527
+
1528
+
1529
+
1530
+
1531
+
1532
+ <input type="checkbox" <?php echo $checked ?> name="skyscraper_options[counters][check]" id="" />
1533
+
1534
+
1535
+
1536
+
1537
+
1538
+
1539
+
1540
+ Counters
1541
+
1542
+
1543
+
1544
+
1545
+
1546
+
1547
+
1548
+ <input name="skyscraper_options[counters][folded]" <?php echo $unfolded?> value="0" type="radio">Folded
1549
+
1550
+
1551
+
1552
+
1553
+
1554
+
1555
+
1556
+ <input name="skyscraper_options[counters][folded]" <?php echo $folded?> value="1" type="radio">Unfolded
1557
+
1558
+
1559
+
1560
+
1561
+
1562
+
1563
+
1564
+ </DIV>
1565
+
1566
+
1567
+
1568
+
1569
+
1570
+
1571
+
1572
+ <BR/>
1573
+
1574
+
1575
+
1576
+
1577
+
1578
+
1579
+
1580
+ <DIV style="margin:0 0 0 25px" class="Post-subTXT">
1581
+
1582
+
1583
+
1584
+
1585
+
1586
+
1587
+
1588
+ <?php
1589
+
1590
+
1591
+
1592
+
1593
+
1594
+
1595
+
1596
+ $checked = "";
1597
+
1598
+
1599
+
1600
+
1601
+
1602
+
1603
+
1604
+ if (isset($skyscraper_options["share"]["check"])){
1605
+
1606
+
1607
+
1608
+
1609
+
1610
+
1611
+
1612
+ $checked = "checked";
1613
+
1614
+
1615
+
1616
+
1617
+
1618
+
1619
+
1620
+ }
1621
+
1622
+
1623
+
1624
+
1625
+
1626
+
1627
+
1628
+
1629
+
1630
+
1631
+
1632
+
1633
+
1634
+
1635
+
1636
+ if (isset($skyscraper_options["share"]["folded"])){
1637
+
1638
+
1639
+
1640
+
1641
+
1642
+
1643
+
1644
+ if($skyscraper_options["share"]["folded"] == "1"){
1645
+
1646
+
1647
+
1648
+
1649
+
1650
+
1651
+
1652
+ $folded = "checked";
1653
+
1654
+
1655
+
1656
+
1657
+
1658
+
1659
+
1660
+ $unfolded= "";
1661
+
1662
+
1663
+
1664
+
1665
+
1666
+
1667
+
1668
+ }else{
1669
+
1670
+
1671
+
1672
+
1673
+
1674
+
1675
+
1676
+ $unfolded = "checked";
1677
+
1678
+
1679
+
1680
+
1681
+
1682
+
1683
+
1684
+ $folded= "";
1685
+
1686
+
1687
+
1688
+
1689
+
1690
+
1691
+
1692
+ }
1693
+
1694
+
1695
+
1696
+
1697
+
1698
+
1699
+
1700
+ }
1701
+
1702
+
1703
+
1704
+
1705
+
1706
+
1707
+
1708
+
1709
+
1710
+
1711
+
1712
+
1713
+
1714
+
1715
+
1716
+
1717
+
1718
+
1719
+
1720
+
1721
+
1722
+
1723
+
1724
+ ?>
1725
+
1726
+
1727
+
1728
+
1729
+
1730
+
1731
+
1732
+
1733
+
1734
+
1735
+
1736
+
1737
+
1738
+
1739
+
1740
+ <input type="checkbox" <?php echo $checked ?> name="skyscraper_options[share][check]" /> Share
1741
+
1742
+
1743
+
1744
+
1745
+
1746
+
1747
+
1748
+ <input style="margin-left:19px" <?php echo $unfolded?> value="0" name="skyscraper_options[share][folded]" type="radio">Folded
1749
+
1750
+
1751
+
1752
+
1753
+
1754
+
1755
+
1756
+ <input name="skyscraper_options[share][folded]" <?php echo $folded?> value="1" type="radio">Unfolded
1757
+
1758
+
1759
+
1760
+
1761
+
1762
+
1763
+
1764
+ </DIV>
1765
+
1766
+
1767
+
1768
+
1769
+
1770
+
1771
+
1772
+ <DIV class="Content-Box" id="Preview-Content">
1773
+
1774
+
1775
+
1776
+
1777
+
1778
+
1779
+
1780
+
1781
+
1782
+
1783
+
1784
+
1785
+
1786
+
1787
+
1788
+ </DIV>
1789
+
1790
+
1791
+
1792
+
1793
+
1794
+
1795
+
1796
+ <div style="clear:both"></div>
1797
+
1798
+
1799
+
1800
+
1801
+
1802
+
1803
+
1804
+
1805
+
1806
+
1807
+
1808
+
1809
+
1810
+
1811
+
1812
+ <BR/>
1813
+
1814
+
1815
+
1816
+
1817
+
1818
+
1819
+
1820
+ <DIV class="Content-Box" id="Preview-Content">
1821
+
1822
+
1823
+
1824
+
1825
+
1826
+
1827
+
1828
+ <ul class="items_li">
1829
+
1830
+
1831
+
1832
+
1833
+
1834
+
1835
+
1836
+ <li>
1837
+
1838
+
1839
+
1840
+
1841
+
1842
+
1843
+
1844
+ <?php
1845
+
1846
+
1847
+
1848
+
1849
+
1850
+
1851
+
1852
+ $checked = "";
1853
+
1854
+
1855
+
1856
+
1857
+
1858
+
1859
+
1860
+ if (isset($skyscraper_options['follow_us_check']) && $skyscraper_options['follow_us_check'] == "on"){
1861
+
1862
+
1863
+
1864
+
1865
+
1866
+
1867
+
1868
+ $checked = "checked";
1869
+
1870
+
1871
+
1872
+
1873
+
1874
+
1875
+
1876
+ }
1877
+
1878
+
1879
+
1880
+
1881
+
1882
+
1883
+
1884
+ ?>
1885
+
1886
+
1887
+
1888
+
1889
+
1890
+
1891
+
1892
+ Follow Us
1893
+
1894
+
1895
+
1896
+
1897
+
1898
+
1899
+
1900
+ <ul class="sub_item_li">
1901
+
1902
+
1903
+
1904
+
1905
+
1906
+
1907
+
1908
+ <li>
1909
+
1910
+
1911
+
1912
+
1913
+
1914
+
1915
+
1916
+ <?php
1917
+
1918
+
1919
+
1920
+
1921
+
1922
+
1923
+
1924
+ $checked = "";
1925
+
1926
+
1927
+
1928
+
1929
+
1930
+
1931
+
1932
+ if (isset($skyscraper_options['follow_us']['twitter']["active"]) && $skyscraper_options['follow_us']['twitter']["active"] == "on"){
1933
+
1934
+
1935
+
1936
+
1937
+
1938
+
1939
+
1940
+ $checked = "checked";
1941
+
1942
+
1943
+
1944
+
1945
+
1946
+
1947
+
1948
+ }
1949
+
1950
+
1951
+
1952
+
1953
+
1954
+
1955
+
1956
+ ?>
1957
+
1958
+
1959
+
1960
+
1961
+
1962
+
1963
+
1964
+ <input <?php echo $checked ?> name="skyscraper_options[follow_us][twitter][active]" type="checkbox" style="padding-bottom:5px" />
1965
+
1966
+
1967
+
1968
+
1969
+
1970
+
1971
+
1972
+ <?php
1973
+
1974
+
1975
+
1976
+
1977
+
1978
+
1979
+
1980
+ $account = "http://twitter.com/";
1981
+
1982
+
1983
+
1984
+
1985
+
1986
+
1987
+
1988
+ if(!empty($skyscraper_options["follow_us"]["twitter"]["account"])){
1989
+
1990
+
1991
+
1992
+
1993
+
1994
+
1995
+
1996
+ $account = $skyscraper_options["follow_us"]["twitter"]["account"];
1997
+
1998
+
1999
+
2000
+
2001
+
2002
+
2003
+
2004
+ }
2005
+
2006
+
2007
+
2008
+
2009
+
2010
+
2011
+
2012
+ ?>
2013
+
2014
+
2015
+
2016
+
2017
+
2018
+
2019
+
2020
+ <input type="hidden" value="t.png" name="skyscraper_options[follow_us][twitter][logo]" />
2021
+
2022
+
2023
+
2024
+
2025
+
2026
+
2027
+
2028
+ <img style="padding-bottom:5px" src="<?php echo SOCIABLE_HTTP_PATH ?>images/toolbar/t.png"/>
2029
+
2030
+
2031
+
2032
+
2033
+
2034
+
2035
+
2036
+ <input size="40" name="skyscraper_options[follow_us][twitter][account]" value="<?php echo $account?>" type="text" />
2037
+
2038
+
2039
+
2040
+
2041
+
2042
+
2043
+
2044
+ </li>
2045
+
2046
+
2047
+
2048
+
2049
+
2050
+
2051
+
2052
+ <li>
2053
+
2054
+
2055
+
2056
+
2057
+
2058
+
2059
+
2060
+ <?php
2061
+
2062
+
2063
+
2064
+
2065
+
2066
+
2067
+
2068
+ $checked = "";
2069
+
2070
+
2071
+
2072
+
2073
+
2074
+
2075
+
2076
+ if ( isset($skyscraper_options['follow_us']['feed']["active"]) && $skyscraper_options['follow_us']['feed']["active"] == "on"){
2077
+
2078
+
2079
+
2080
+
2081
+
2082
+
2083
+
2084
+ $checked = "checked";
2085
+
2086
+
2087
+
2088
+
2089
+
2090
+
2091
+
2092
+ }
2093
+
2094
+
2095
+
2096
+
2097
+
2098
+
2099
+
2100
+ ?>
2101
+
2102
+
2103
+
2104
+
2105
+
2106
+
2107
+
2108
+ <input <?php echo $checked ?> name="skyscraper_options[follow_us][feed][active]" type="checkbox" style="padding-bottom:5px" />
2109
+
2110
+
2111
+
2112
+
2113
+
2114
+
2115
+
2116
+ <input type="hidden" value="rss.png" name="skyscraper_options[follow_us][feed][logo]" />
2117
+
2118
+
2119
+
2120
+
2121
+
2122
+
2123
+
2124
+ <?php
2125
+
2126
+
2127
+
2128
+
2129
+
2130
+
2131
+
2132
+ $rss = "http://";
2133
+
2134
+
2135
+
2136
+
2137
+
2138
+
2139
+
2140
+ if(!empty($skyscraper_options["follow_us"]["feed"]["account"])){
2141
+
2142
+
2143
+
2144
+
2145
+
2146
+
2147
+
2148
+
2149
+
2150
+
2151
+
2152
+
2153
+
2154
+
2155
+
2156
+ $rss = $skyscraper_options["follow_us"]["feed"]["account"];
2157
+
2158
+
2159
+
2160
+
2161
+
2162
+
2163
+
2164
+ }
2165
+
2166
+
2167
+
2168
+
2169
+
2170
+
2171
+
2172
+ ?>
2173
+
2174
+
2175
+
2176
+
2177
+
2178
+
2179
+
2180
+ <img style="padding-bottom:5px" src="<?php echo SOCIABLE_HTTP_PATH ?>images/toolbar/rss.png"/>
2181
+
2182
+
2183
+
2184
+
2185
+
2186
+
2187
+
2188
+ <input size="40" value="<?php echo $rss?>" name="skyscraper_options[follow_us][feed][account]" type="text" />
2189
+
2190
+
2191
+
2192
+
2193
+
2194
+
2195
+
2196
+ </li>
2197
+
2198
+
2199
+
2200
+
2201
+
2202
+
2203
+
2204
+ <li>
2205
+
2206
+
2207
+
2208
+
2209
+
2210
+
2211
+
2212
+ <?php
2213
+
2214
+
2215
+
2216
+
2217
+
2218
+
2219
+
2220
+ $checked = "";
2221
+
2222
+
2223
+
2224
+
2225
+
2226
+
2227
+
2228
+ if ( isset($skyscraper_options['follow_us']['fb']["active"]) && $skyscraper_options['follow_us']['fb']["active"] == "on"){
2229
+
2230
+
2231
+
2232
+
2233
+
2234
+
2235
+
2236
+ $checked = "checked";
2237
+
2238
+
2239
+
2240
+
2241
+
2242
+
2243
+
2244
+ }
2245
+
2246
+
2247
+
2248
+
2249
+
2250
+
2251
+
2252
+ ?>
2253
+
2254
+
2255
+
2256
+
2257
+
2258
+
2259
+
2260
+ <input <?php echo $checked ?> name="skyscraper_options[follow_us][fb][active]" type="checkbox" style="padding-bottom:5px" />
2261
+
2262
+
2263
+
2264
+
2265
+
2266
+
2267
+
2268
+ <input type="hidden" value="f.png" name="skyscraper_options[follow_us][fb][logo]" />
2269
+
2270
+
2271
+
2272
+
2273
+
2274
+
2275
+
2276
+
2277
+
2278
+
2279
+
2280
+
2281
+
2282
+
2283
+
2284
+ <?php
2285
+
2286
+
2287
+
2288
+
2289
+
2290
+
2291
+
2292
+ $fb = "http://facebook.com/";
2293
+
2294
+
2295
+
2296
+
2297
+
2298
+
2299
+
2300
+ if(!empty($skyscraper_options["follow_us"]["fb"]["account"])){
2301
+
2302
+
2303
+
2304
+
2305
+
2306
+
2307
+
2308
+
2309
+
2310
+
2311
+
2312
+
2313
+
2314
+
2315
+
2316
+ $fb = $skyscraper_options["follow_us"]["fb"]["account"];
2317
+
2318
+
2319
+
2320
+
2321
+
2322
+
2323
+
2324
+ }
2325
+
2326
+
2327
+
2328
+
2329
+
2330
+
2331
+
2332
+ ?>
2333
+
2334
+
2335
+
2336
+
2337
+
2338
+
2339
+
2340
+ <img style="padding-bottom:5px" src="<?php echo SOCIABLE_HTTP_PATH ?>images/toolbar/f.png"/>
2341
+
2342
+
2343
+
2344
+
2345
+
2346
+
2347
+
2348
+ <input size="40" value="<?php echo $fb?>" name="skyscraper_options[follow_us][fb][account]" type="text" />
2349
+
2350
+
2351
+
2352
+
2353
+
2354
+
2355
+
2356
+ </li>
2357
+
2358
+
2359
+
2360
+
2361
+
2362
+
2363
+
2364
+
2365
+
2366
+
2367
+
2368
+
2369
+
2370
+
2371
+
2372
+ <li>
2373
+
2374
+
2375
+
2376
+
2377
+
2378
+
2379
+
2380
+ <?php
2381
+
2382
+
2383
+
2384
+
2385
+
2386
+
2387
+
2388
+ $checked = "";
2389
+
2390
+
2391
+
2392
+
2393
+
2394
+
2395
+
2396
+ if ( isset($skyscraper_options['follow_us']['li']["active"]) && $skyscraper_options['follow_us']['li']["active"] == "on"){
2397
+
2398
+
2399
+
2400
+
2401
+
2402
+
2403
+
2404
+ $checked = "checked";
2405
+
2406
+
2407
+
2408
+
2409
+
2410
+
2411
+
2412
+ }
2413
+
2414
+
2415
+
2416
+
2417
+
2418
+
2419
+
2420
+ ?>
2421
+
2422
+
2423
+
2424
+
2425
+
2426
+
2427
+
2428
+ <input <?php echo $checked ?> name="skyscraper_options[follow_us][li][active]" type="checkbox" style="padding-bottom:5px" />
2429
+
2430
+
2431
+
2432
+
2433
+
2434
+
2435
+
2436
+ <input type="hidden" value="i.png" name="skyscraper_options[follow_us][li][logo]" />
2437
+
2438
+
2439
+
2440
+
2441
+
2442
+
2443
+
2444
+ <input type="hidden" value="linkedin.com/in/" name="skyscraper_options[follow_us][li][url]" />
2445
+
2446
+
2447
+
2448
+
2449
+
2450
+
2451
+
2452
+ <?php
2453
+
2454
+
2455
+
2456
+
2457
+
2458
+
2459
+
2460
+ $li = "http://linkedin.com/";
2461
+
2462
+
2463
+
2464
+
2465
+
2466
+
2467
+
2468
+ if(!empty($skyscraper_options["follow_us"]["li"]["account"])){
2469
+
2470
+
2471
+
2472
+
2473
+
2474
+
2475
+
2476
+
2477
+
2478
+
2479
+
2480
+
2481
+
2482
+
2483
+
2484
+ $li = $skyscraper_options["follow_us"]["li"]["account"];
2485
+
2486
+
2487
+
2488
+
2489
+
2490
+
2491
+
2492
+ }
2493
+
2494
+
2495
+
2496
+
2497
+
2498
+
2499
+
2500
+ ?>
2501
+
2502
+
2503
+
2504
+
2505
+
2506
+
2507
+
2508
+ <img style="padding-bottom:5px" src="<?php echo SOCIABLE_HTTP_PATH ?>images/toolbar/i.png"/>
2509
+
2510
+
2511
+
2512
+
2513
+
2514
+
2515
+
2516
+ <input size="40" value="<?php echo $li?>" name="skyscraper_options[follow_us][li][account]" type="text" />
2517
+
2518
+
2519
+
2520
+
2521
+
2522
+
2523
+
2524
+ </li>
2525
+
2526
+
2527
+
2528
+
2529
+
2530
+
2531
+
2532
+ </ul>
2533
+
2534
+
2535
+
2536
+
2537
+
2538
+
2539
+
2540
+ </li>
2541
+
2542
+
2543
+
2544
+
2545
+
2546
+
2547
+
2548
+ </ul>
2549
+
2550
+
2551
+
2552
+
2553
+
2554
+
2555
+
2556
+ </DIV>
2557
+
2558
+
2559
+
2560
+
2561
+
2562
+
2563
+
2564
+ <br />
2565
+
2566
+
2567
+
2568
+
2569
+
2570
+ <div class="Content-Box" id="Active-Content" style="display: block;">
2571
+
2572
+
2573
+
2574
+ <br>
2575
+
2576
+
2577
+
2578
+ <div align="center" style="width:100%;">
2579
+
2580
+
2581
+
2582
+ <table align="center" cellspacing="0" cellpadding="10" border="0" class="GeneralOptions-List">
2583
+
2584
+
2585
+
2586
+ <tbody><tr valign="top">
2587
+
2588
+ <td align="right" class="Title">Active Sociable Banner</td>
2589
+
2590
+ <td align="left" style="width:5px;">
2591
+
2592
+ <?php
2593
+
2594
+
2595
+
2596
+ $sel = "";
2597
+
2598
+
2599
+
2600
+ if (isset($skyscraper_options["sociable_banner"])){
2601
+
2602
+
2603
+
2604
+ if (!empty($skyscraper_options["sociable_banner"])){
2605
+
2606
+ $sel = "checked";
2607
+
2608
+ }
2609
+
2610
+
2611
+
2612
+ }
2613
+
2614
+
2615
+
2616
+ ?>
2617
+
2618
+
2619
+
2620
+ <input type="checkbox" name="skyscraper_options[sociable_banner]" id="sociable_banner" <?php echo $sel?>></td>
2621
+
2622
+
2623
+
2624
+ <td align="left" class="Content">
2625
+
2626
+
2627
+
2628
+ <span class="TXT">Active Sociable "Reminder to Share" Banner / Check if you want to remind your readers Share your content.</span>
2629
+
2630
+
2631
+
2632
+ <br>
2633
+
2634
+
2635
+
2636
+ </td>
2637
+
2638
+
2639
+
2640
+ </tr>
2641
+
2642
+
2643
+
2644
+ <tr valign="top">
2645
+
2646
+
2647
+
2648
+ <td align="right" class="Title">Banner's label (35 char Max.)</td>
2649
+
2650
+
2651
+
2652
+ <td align="left" style="width:5px;">
2653
+
2654
+ <?php
2655
+
2656
+ $sel = 'Please spread the word: Be Sociable, Share!';
2657
+
2658
+ if (isset($skyscraper_options["sociable_banner_text"])){
2659
+
2660
+ if (!empty($skyscraper_options["sociable_banner_text"])){
2661
+
2662
+ $sel = $skyscraper_options["sociable_banner_text"];
2663
+
2664
+ }
2665
+
2666
+ }
2667
+
2668
+ ?>
2669
+
2670
+ </td>
2671
+
2672
+ <td align="left" class="Content">
2673
+
2674
+
2675
+
2676
+ <span class="TXT"> <input style="width:245px !important" type="text" name="skyscraper_options[sociable_banner_text]" value="<?php echo $sel?>"></span>
2677
+
2678
+
2679
+
2680
+ <br>
2681
+
2682
+
2683
+
2684
+ </td>
2685
+
2686
+
2687
+
2688
+ </tr>
2689
+
2690
+
2691
+
2692
+ <tr valign="top">
2693
+
2694
+
2695
+
2696
+ <td align="right" class="Title">Banners Timer (sec.)</td>
2697
+
2698
+
2699
+
2700
+ <td align="left" style="width:5px;">
2701
+
2702
+
2703
+
2704
+ </td>
2705
+
2706
+ <td align="left" class="Content">
2707
+
2708
+ <span class="TXT">
2709
+
2710
+
2711
+
2712
+ <select name="skyscraper_options[sociable_banner_timer]" id="banner_timer" >
2713
+
2714
+ <?php
2715
+
2716
+ for($timer=10; $timer <= 120; $timer++){
2717
+
2718
+
2719
+
2720
+ $sel = "";
2721
+
2722
+
2723
+
2724
+ if (!empty($skyscraper_options["sociable_banner_timer"])){
2725
+
2726
+
2727
+
2728
+ if ($skyscraper_options["sociable_banner_timer"] == $timer){
2729
+
2730
+
2731
+
2732
+ $sel = "selected";
2733
+
2734
+ }
2735
+
2736
+ }
2737
+
2738
+ ?>
2739
+
2740
+ <option value="<?php echo $timer?>" <?php echo $sel ?> ><?php echo $timer?></option>
2741
+
2742
+ <?php
2743
+
2744
+
2745
+
2746
+ $timer = $timer + 4;
2747
+
2748
+ } ?>
2749
+
2750
+ </select>
2751
+
2752
+
2753
+
2754
+ </span>
2755
+
2756
+
2757
+
2758
+ <br>
2759
+
2760
+
2761
+
2762
+ </td>
2763
+
2764
+
2765
+
2766
+ </tr>
2767
+
2768
+
2769
+
2770
+ <tr valign="top">
2771
+
2772
+
2773
+
2774
+ <td align="right" class="Title">Font Color <a title="default color #6A6A6A" class="default_values">(#6A6A6A)</a></td>
2775
+
2776
+
2777
+
2778
+ <td align="left" style="width:5px;">
2779
+
2780
+
2781
+
2782
+ </td>
2783
+
2784
+ <td align="left" class="Content">
2785
+
2786
+
2787
+
2788
+ <span class="TXT">
2789
+
2790
+
2791
+
2792
+ <?php
2793
+
2794
+ $sel = '#6A6A6A';
2795
+
2796
+
2797
+
2798
+ if (isset($skyscraper_options["sociable_banner_colorFont"])){
2799
+
2800
+
2801
+
2802
+ if (!empty($skyscraper_options["sociable_banner_colorFont"])){
2803
+
2804
+
2805
+
2806
+ $sel = $skyscraper_options["sociable_banner_colorFont"];
2807
+
2808
+ }
2809
+
2810
+ }
2811
+
2812
+ ?>
2813
+
2814
+
2815
+
2816
+ <input type="text" value="<?php echo $sel?>" name="skyscraper_options[sociable_banner_colorFont]" style="width:81px !important">
2817
+
2818
+ </span>
2819
+
2820
+
2821
+
2822
+ <br>
2823
+
2824
+
2825
+
2826
+ </td>
2827
+
2828
+
2829
+
2830
+ </tr>
2831
+
2832
+ <!-- Font Size -->
2833
+
2834
+ <tr valign="top">
2835
+
2836
+
2837
+
2838
+ <td align="right" class="Title">Font Size <a title="default size 9px" class="default_values">(9px)</a></td>
2839
+
2840
+
2841
+
2842
+ <td align="left" style="width:5px;">
2843
+
2844
+
2845
+
2846
+ </td>
2847
+
2848
+ <td align="left" class="Content">
2849
+
2850
+ <span class="TXT">
2851
+
2852
+
2853
+
2854
+ <select name="skyscraper_options[sociable_banner_fontSize]" id="banner_fontSize" >
2855
+
2856
+ <?php
2857
+
2858
+ for($fontSize=8; $fontSize <= 16; $fontSize++){
2859
+
2860
+
2861
+
2862
+ $sel = "";
2863
+
2864
+
2865
+
2866
+ if (!empty($skyscraper_options["sociable_banner_fontSize"])){
2867
+
2868
+
2869
+
2870
+ if ($skyscraper_options["sociable_banner_fontSize"] == $fontSize){
2871
+
2872
+
2873
+
2874
+ $sel = "selected";
2875
+
2876
+ }
2877
+
2878
+ }
2879
+
2880
+ ?>
2881
+
2882
+ <option value="<?php echo $fontSize?>px" <?php echo $sel ?> ><?php echo $fontSize?>px</option>
2883
+
2884
+ <?php
2885
+
2886
+ } ?>
2887
+
2888
+ </select>
2889
+
2890
+
2891
+
2892
+
2893
+
2894
+ </span>
2895
+
2896
+ <br>
2897
+
2898
+ </td>
2899
+
2900
+ </tr>
2901
+
2902
+
2903
+
2904
+ <!-- color label -->
2905
+
2906
+ <tr valign="top">
2907
+
2908
+
2909
+
2910
+ <td align="right" class="Title">Label Color <a title="default color #F7F7F7" class="default_values">(#F7F7F7)</a></td>
2911
+
2912
+
2913
+
2914
+ <td align="left" style="width:5px;">
2915
+
2916
+
2917
+
2918
+ </td>
2919
+
2920
+ <td align="left" class="Content">
2921
+
2922
+
2923
+
2924
+ <span class="TXT">
2925
+
2926
+
2927
+
2928
+ <?php
2929
+
2930
+ $sel = '#F7F7F7';
2931
+
2932
+
2933
+
2934
+ if (isset($skyscraper_options["sociable_banner_colorLabel"])){
2935
+
2936
+
2937
+
2938
+ if (!empty($skyscraper_options["sociable_banner_colorLabel"])){
2939
+
2940
+
2941
+
2942
+ $sel = $skyscraper_options["sociable_banner_colorLabel"];
2943
+
2944
+ }
2945
+
2946
+ }
2947
+
2948
+ ?>
2949
+
2950
+
2951
+
2952
+ <input type="text" value="<?php echo $sel?>" name="skyscraper_options[sociable_banner_colorLabel]" style="width:81px !important">
2953
+
2954
+ </span>
2955
+
2956
+
2957
+
2958
+ <br>
2959
+
2960
+
2961
+
2962
+ </td>
2963
+
2964
+
2965
+
2966
+ </tr>
2967
+
2968
+ <!-- color font -->
2969
+
2970
+ <tr valign="top">
2971
+
2972
+
2973
+
2974
+ <td align="right" class="Title">Background Color <a title="default color #F7F7F7" class="default_values">(#F7F7F7)</a></td>
2975
+
2976
+
2977
+
2978
+ <td align="left" style="width:5px;">
2979
+
2980
+
2981
+
2982
+ </td>
2983
+
2984
+ <td align="left" class="Content">
2985
+
2986
+ <span class="TXT">
2987
+
2988
+ <?php
2989
+
2990
+ $sel = '#F7F7F7';
2991
+
2992
+
2993
+
2994
+ if (isset($skyscraper_options["sociable_banner_colorBack"])){
2995
+
2996
+
2997
+
2998
+ if (!empty($skyscraper_options["sociable_banner_colorBack"])){
2999
+
3000
+
3001
+
3002
+ $sel = $skyscraper_options["sociable_banner_colorBack"];
3003
+
3004
+ }
3005
+
3006
+ }
3007
+
3008
+ ?>
3009
+
3010
+ <input type="text" value="<?php echo $sel?>" name="skyscraper_options[sociable_banner_colorBack]" style="width:81px !important">
3011
+
3012
+
3013
+
3014
+ </span>
3015
+
3016
+
3017
+
3018
+ <br>
3019
+
3020
+
3021
+
3022
+ </td>
3023
+
3024
+
3025
+
3026
+ </tr>
3027
+
3028
+
3029
+
3030
+ </tbody></table>
3031
+
3032
+
3033
+
3034
+
3035
+
3036
+ <br><br>
3037
+
3038
+
3039
+
3040
+ </div>
3041
+
3042
+
3043
+
3044
+ </div>
3045
+
3046
+
3047
+
3048
+
3049
+
3050
+
3051
+
3052
+ <!-- general options -->
3053
+
3054
+
3055
+
3056
+
3057
+
3058
+
3059
+
3060
+ <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('GeneralOptions');">
3061
+
3062
+
3063
+
3064
+
3065
+
3066
+
3067
+
3068
+ <TR>
3069
+
3070
+
3071
+
3072
+
3073
+
3074
+
3075
+
3076
+ <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>
3077
+
3078
+
3079
+
3080
+
3081
+
3082
+
3083
+
3084
+ </TR>
3085
+
3086
+
3087
+
3088
+
3089
+
3090
+
3091
+
3092
+ </TABLE>
3093
+
3094
+
3095
+
3096
+
3097
+
3098
+
3099
+
3100
+ <BR/>
3101
+
3102
+
3103
+
3104
+
3105
+
3106
+
3107
+
3108
+
3109
+
3110
+
3111
+
3112
+
3113
+
3114
+
3115
+
3116
+ <DIV class="Content-Box" id="GeneralOptions-Content" style="display:none;" >
3117
+
3118
+
3119
+
3120
+
3121
+
3122
+
3123
+
3124
+
3125
+
3126
+
3127
+
3128
+
3129
+
3130
+
3131
+
3132
+ <BR/>
3133
+
3134
+
3135
+
3136
+
3137
+
3138
+
3139
+
3140
+ <DIV align="center" style="width:100%;">
3141
+
3142
+
3143
+
3144
+
3145
+
3146
+
3147
+
3148
+ <TABLE align="center" class="GeneralOptions-List" cellspacing="0" border=0 cellpadding ="10" >
3149
+
3150
+
3151
+
3152
+
3153
+
3154
+
3155
+
3156
+
3157
+
3158
+
3159
+
3160
+
3161
+
3162
+
3163
+
3164
+ <TR valign="top" >
3165
+
3166
+
3167
+
3168
+
3169
+
3170
+
3171
+
3172
+ <TD align="right" class="Title" ><?php _e("Widget Position","sociable")?></TD>
3173
+
3174
+
3175
+
3176
+
3177
+
3178
+
3179
+
3180
+ <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>
3181
+
3182
+
3183
+
3184
+
3185
+
3186
+
3187
+
3188
+ <TD align="left" class="Content">
3189
+
3190
+
3191
+
3192
+
3193
+
3194
+
3195
+
3196
+ <SPAN class="TXT"><?php _e("Check if you want Sociable Fixed on the screen","sociable");?> </SPAN>
3197
+
3198
+
3199
+
3200
+
3201
+
3202
+
3203
+
3204
+ <BR/>
3205
+
3206
+
3207
+
3208
+
3209
+
3210
+
3211
+
3212
+
3213
+
3214
+
3215
+
3216
+
3217
+
3218
+
3219
+
3220
+ </TD>
3221
+
3222
+
3223
+
3224
+
3225
+
3226
+
3227
+
3228
+ </TR>
3229
+
3230
+
3231
+
3232
+
3233
+
3234
+
3235
+
3236
+ </TABLE>
3237
+
3238
+
3239
+
3240
+
3241
+
3242
+
3243
+
3244
+ <BR/><BR/>
3245
+
3246
+
3247
+
3248
+
3249
+
3250
+
3251
+
3252
+ </DIV>
3253
+
3254
+
3255
+
3256
+
3257
+
3258
+
3259
+
3260
+ </DIV>
3261
+
3262
+
3263
+
3264
+
3265
+
3266
+
3267
+
3268
+ <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Locations');" >
3269
+
3270
+
3271
+
3272
+
3273
+
3274
+
3275
+
3276
+ <TR>
3277
+
3278
+
3279
+
3280
+
3281
+
3282
+
3283
+
3284
+ <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>
3285
+
3286
+
3287
+
3288
+
3289
+
3290
+
3291
+
3292
+ </TR>
3293
+
3294
+
3295
+
3296
+
3297
+
3298
+
3299
+
3300
+ </TABLE>
3301
+
3302
+
3303
+
3304
+
3305
+
3306
+
3307
+
3308
+ <BR/>
3309
+
3310
+
3311
+
3312
+
3313
+
3314
+
3315
+
3316
+
3317
+
3318
+
3319
+
3320
+
3321
+
3322
+
3323
+
3324
+ <DIV class="Content-Box" id="Locations-Content" style="display:none;" >
3325
+
3326
+
3327
+
3328
+
3329
+
3330
+
3331
+
3332
+ <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>
3333
+
3334
+
3335
+
3336
+
3337
+
3338
+
3339
+
3340
+
3341
+
3342
+
3343
+
3344
+
3345
+
3346
+
3347
+
3348
+ <BR/>
3349
+
3350
+
3351
+
3352
+
3353
+
3354
+
3355
+
3356
+ <DIV align="center" style="width:100%;">
3357
+
3358
+
3359
+
3360
+
3361
+
3362
+
3363
+
3364
+ <TABLE align="center" class="Locations-List" cellspacing="0" border=0 cellpadding="10">
3365
+
3366
+
3367
+
3368
+
3369
+
3370
+
3371
+
3372
+ <TR valign="top" >
3373
+
3374
+
3375
+
3376
+
3377
+
3378
+
3379
+
3380
+ <TD align="right" class="Title" ><?php _e("Home page","sociable");?></TD>
3381
+
3382
+
3383
+
3384
+
3385
+
3386
+
3387
+
3388
+ <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>
3389
+
3390
+
3391
+
3392
+
3393
+
3394
+
3395
+
3396
+ <TD align="left" class="Content">
3397
+
3398
+
3399
+
3400
+
3401
+
3402
+
3403
+
3404
+ <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>
3405
+
3406
+
3407
+
3408
+
3409
+
3410
+
3411
+
3412
+
3413
+
3414
+
3415
+
3416
+
3417
+
3418
+
3419
+
3420
+ </TD>
3421
+
3422
+
3423
+
3424
+
3425
+
3426
+
3427
+
3428
+ </TR>
3429
+
3430
+
3431
+
3432
+
3433
+
3434
+
3435
+
3436
+
3437
+
3438
+
3439
+
3440
+
3441
+
3442
+
3443
+
3444
+ <TR valign="top" >
3445
+
3446
+
3447
+
3448
+
3449
+
3450
+
3451
+
3452
+ <TD align="right" class="Title" ><?php _e("Blog page","sociable");?></TD>
3453
+
3454
+
3455
+
3456
+
3457
+
3458
+
3459
+
3460
+ <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>
3461
+
3462
+
3463
+
3464
+
3465
+
3466
+
3467
+
3468
+ <TD align="left" class="Content">
3469
+
3470
+
3471
+
3472
+
3473
+
3474
+
3475
+
3476
+ <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>
3477
+
3478
+
3479
+
3480
+
3481
+
3482
+
3483
+
3484
+
3485
+
3486
+
3487
+
3488
+
3489
+
3490
+
3491
+
3492
+ </TD>
3493
+
3494
+
3495
+
3496
+
3497
+
3498
+
3499
+
3500
+ </TR>
3501
+
3502
+
3503
+
3504
+
3505
+
3506
+
3507
+
3508
+
3509
+
3510
+
3511
+
3512
+
3513
+
3514
+
3515
+
3516
+ <TR valign="top" >
3517
+
3518
+
3519
+
3520
+
3521
+
3522
+
3523
+
3524
+ <TD align="right" class="Title" ><?php _e("Posts","sociable");?></TD>
3525
+
3526
+
3527
+
3528
+
3529
+
3530
+
3531
+
3532
+ <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>
3533
+
3534
+
3535
+
3536
+
3537
+
3538
+
3539
+
3540
+ <TD align="left" class="Content">
3541
+
3542
+
3543
+
3544
+
3545
+
3546
+
3547
+
3548
+ <SPAN class="TXT"><?php _e("Single post pages","sociable");?></SPAN>
3549
+
3550
+
3551
+
3552
+
3553
+
3554
+
3555
+
3556
+
3557
+
3558
+
3559
+
3560
+
3561
+
3562
+
3563
+
3564
+ </TD>
3565
+
3566
+
3567
+
3568
+
3569
+
3570
+
3571
+
3572
+ </TR>
3573
+
3574
+
3575
+
3576
+
3577
+
3578
+
3579
+
3580
+
3581
+
3582
+
3583
+
3584
+
3585
+
3586
+
3587
+
3588
+ <TR valign="top" >
3589
+
3590
+
3591
+
3592
+
3593
+
3594
+
3595
+
3596
+ <TD align="right" class="Title" ><?php _e("Pages","sociable");?></TD>
3597
+
3598
+
3599
+
3600
+
3601
+
3602
+
3603
+
3604
+ <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>
3605
+
3606
+
3607
+
3608
+
3609
+
3610
+
3611
+
3612
+ <TD align="left" class="Content">
3613
+
3614
+
3615
+
3616
+
3617
+
3618
+
3619
+
3620
+ <SPAN class="TXT"><?php _e("Individual Wordpress pages","sociable");?></SPAN>
3621
+
3622
+
3623
+
3624
+
3625
+
3626
+
3627
+
3628
+
3629
+
3630
+
3631
+
3632
+
3633
+
3634
+
3635
+
3636
+ </TD>
3637
+
3638
+
3639
+
3640
+
3641
+
3642
+
3643
+
3644
+ </TR>
3645
+
3646
+
3647
+
3648
+
3649
+
3650
+
3651
+
3652
+
3653
+
3654
+
3655
+
3656
+
3657
+
3658
+
3659
+
3660
+ <TR valign="top" >
3661
+
3662
+
3663
+
3664
+
3665
+
3666
+
3667
+
3668
+ <TD align="right" class="Title" ><?php _e("Category archives","sociable");?></TD>
3669
+
3670
+
3671
+
3672
+
3673
+
3674
+
3675
+
3676
+ <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>
3677
+
3678
+
3679
+
3680
+
3681
+
3682
+
3683
+
3684
+ <TD align="left" class="Content">
3685
+
3686
+
3687
+
3688
+
3689
+
3690
+
3691
+
3692
+ <SPAN class="TXT"><?php _e("Category archive pages","sociable");?></SPAN>
3693
+
3694
+
3695
+
3696
+
3697
+
3698
+
3699
+
3700
+
3701
+
3702
+
3703
+
3704
+
3705
+
3706
+
3707
+
3708
+ </TD>
3709
+
3710
+
3711
+
3712
+
3713
+
3714
+
3715
+
3716
+ </TR>
3717
+
3718
+
3719
+
3720
+
3721
+
3722
+
3723
+
3724
+
3725
+
3726
+
3727
+
3728
+
3729
+
3730
+
3731
+
3732
+ <TR valign="top" >
3733
+
3734
+
3735
+
3736
+ <TD align="right" class="Title" ><?php _e("Date archives","sociable");?></TD>
3737
+
3738
+
3739
+
3740
+
3741
+
3742
+
3743
+
3744
+ <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>
3745
+
3746
+
3747
+
3748
+
3749
+
3750
+
3751
+
3752
+ <TD align="left" class="Content">
3753
+
3754
+
3755
+
3756
+
3757
+
3758
+
3759
+
3760
+ <SPAN class="TXT"><?php _e("Date archive pages","sociable");?> </SPAN>
3761
+
3762
+
3763
+
3764
+
3765
+
3766
+
3767
+
3768
+
3769
+
3770
+
3771
+
3772
+
3773
+
3774
+
3775
+
3776
+ </TD>
3777
+
3778
+
3779
+
3780
+
3781
+
3782
+
3783
+
3784
+ </TR>
3785
+
3786
+
3787
+
3788
+
3789
+
3790
+
3791
+
3792
+
3793
+
3794
+
3795
+
3796
+
3797
+
3798
+
3799
+
3800
+ <TR valign="top" >
3801
+
3802
+
3803
+
3804
+
3805
+
3806
+
3807
+
3808
+ <TD align="right" class="Title" ><?php _e("Tag archives","sociable");?></TD>
3809
+
3810
+
3811
+
3812
+
3813
+
3814
+
3815
+
3816
+ <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>
3817
+
3818
+
3819
+
3820
+
3821
+
3822
+
3823
+
3824
+ <TD align="left" class="Content">
3825
+
3826
+
3827
+
3828
+
3829
+
3830
+
3831
+
3832
+ <SPAN class="TXT"><?php _e("Tag archive pages","sociable");?> </SPAN>
3833
+
3834
+
3835
+
3836
+
3837
+
3838
+
3839
+
3840
+
3841
+
3842
+
3843
+
3844
+
3845
+
3846
+
3847
+
3848
+ </TD>
3849
+
3850
+
3851
+
3852
+
3853
+
3854
+
3855
+
3856
+ </TR>
3857
+
3858
+
3859
+
3860
+
3861
+
3862
+
3863
+
3864
+
3865
+
3866
+
3867
+
3868
+
3869
+
3870
+
3871
+
3872
+ <TR valign="top" >
3873
+
3874
+
3875
+
3876
+
3877
+
3878
+
3879
+
3880
+ <TD align="right" class="Title" ><?php _e("Author archives","sociable");?></TD>
3881
+
3882
+
3883
+
3884
+
3885
+
3886
+
3887
+
3888
+ <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>
3889
+
3890
+
3891
+
3892
+
3893
+
3894
+
3895
+
3896
+ <TD align="left" class="Content">
3897
+
3898
+
3899
+
3900
+
3901
+
3902
+
3903
+
3904
+ <SPAN class="TXT"><?php _e("Author archive pages","sociable");?></SPAN>
3905
+
3906
+
3907
+
3908
+
3909
+
3910
+
3911
+
3912
+
3913
+
3914
+
3915
+
3916
+
3917
+
3918
+
3919
+
3920
+ </TD>
3921
+
3922
+
3923
+
3924
+
3925
+
3926
+
3927
+
3928
+ </TR>
3929
+
3930
+
3931
+
3932
+
3933
+
3934
+
3935
+
3936
+
3937
+
3938
+
3939
+
3940
+
3941
+
3942
+
3943
+
3944
+ <TR valign="top" >
3945
+
3946
+
3947
+
3948
+
3949
+
3950
+
3951
+
3952
+ <TD align="right" class="Title" ><?php _e("Search results","sociable");?></TD>
3953
+
3954
+
3955
+
3956
+
3957
+
3958
+
3959
+
3960
+ <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>
3961
+
3962
+
3963
+
3964
+
3965
+
3966
+
3967
+
3968
+ <TD align="left" class="Content">
3969
+
3970
+
3971
+
3972
+
3973
+
3974
+
3975
+
3976
+ <SPAN class="TXT"><?php _e("Search results pages","sociable");?></SPAN>
3977
+
3978
+
3979
+
3980
+
3981
+
3982
+
3983
+
3984
+
3985
+
3986
+
3987
+
3988
+
3989
+
3990
+
3991
+
3992
+ </TD>
3993
+
3994
+
3995
+
3996
+
3997
+
3998
+
3999
+
4000
+ </TR>
4001
+
4002
+
4003
+
4004
+
4005
+
4006
+
4007
+
4008
+
4009
+
4010
+
4011
+
4012
+
4013
+
4014
+
4015
+
4016
+ <TR valign="top" >
4017
+
4018
+
4019
+
4020
+
4021
+
4022
+
4023
+
4024
+ <TD align="right" class="Title" ><?php _e("RSS feeds","sociable");?></TD>
4025
+
4026
+
4027
+
4028
+
4029
+
4030
+
4031
+
4032
+ <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>
4033
+
4034
+
4035
+
4036
+
4037
+
4038
+
4039
+
4040
+ <TD align="left" class="Content">
4041
+
4042
+
4043
+
4044
+
4045
+
4046
+
4047
+
4048
+ <SPAN class="TXT"><?php _e("RSS feeds","sociable");?></SPAN>
4049
+
4050
+
4051
+
4052
+
4053
+
4054
+
4055
+
4056
+
4057
+
4058
+
4059
+
4060
+
4061
+
4062
+
4063
+
4064
+ </TD>
4065
+
4066
+
4067
+
4068
+
4069
+
4070
+
4071
+
4072
+ </TR>
4073
+
4074
+
4075
+
4076
+
4077
+
4078
+
4079
+
4080
+
4081
+
4082
+
4083
+
4084
+
4085
+
4086
+
4087
+
4088
+ </TABLE>
4089
+
4090
+
4091
+
4092
+
4093
+
4094
+
4095
+
4096
+ <BR/><BR/>
4097
+
4098
+
4099
+
4100
+
4101
+
4102
+
4103
+
4104
+ </DIV>
4105
+
4106
+
4107
+
4108
+
4109
+
4110
+
4111
+
4112
+ </DIV>
4113
+
4114
+
4115
+
4116
+
4117
+
4118
+
4119
+
4120
+
4121
+
4122
+
4123
+
4124
+
4125
+
4126
+
4127
+
4128
+ <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Active');" >
4129
+
4130
+
4131
+
4132
+
4133
+
4134
+
4135
+
4136
+ <TR>
4137
+
4138
+
4139
+
4140
+
4141
+
4142
+
4143
+
4144
+ <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>
4145
+
4146
+
4147
+
4148
+
4149
+
4150
+
4151
+
4152
+ </TR>
4153
+
4154
+
4155
+
4156
+
4157
+
4158
+
4159
+
4160
+ </TABLE>
4161
+
4162
+
4163
+
4164
+
4165
+
4166
+
4167
+
4168
+
4169
+
4170
+
4171
+
4172
+
4173
+
4174
+
4175
+
4176
+ <div style="display: block;" id="Active-Content" class="Content-Box">
4177
+
4178
+
4179
+
4180
+
4181
+
4182
+
4183
+
4184
+
4185
+
4186
+
4187
+
4188
+
4189
+
4190
+
4191
+
4192
+ <br>
4193
+
4194
+
4195
+
4196
+
4197
+
4198
+
4199
+
4200
+ <div align="center" style="width:100%;">
4201
+
4202
+
4203
+
4204
+
4205
+
4206
+
4207
+
4208
+ <table align="center" cellspacing="0" cellpadding="10" border="0" class="GeneralOptions-List">
4209
+
4210
+
4211
+
4212
+
4213
+
4214
+
4215
+
4216
+
4217
+
4218
+
4219
+
4220
+
4221
+
4222
+
4223
+
4224
+ <tbody><tr valign="top">
4225
+
4226
+
4227
+
4228
+
4229
+
4230
+
4231
+
4232
+ <td align="right" class="Title">Active Skyscraper</td>
4233
+
4234
+
4235
+
4236
+
4237
+
4238
+
4239
+
4240
+ <td align="left" style="width:5px;">
4241
+
4242
+
4243
+
4244
+
4245
+
4246
+
4247
+
4248
+ <input <?php if(isset($skyscraper_options["active"])) echo "checked='checked'"?> type="checkbox" id="active" name="skyscraper_options[active]" ></td>
4249
+
4250
+
4251
+
4252
+
4253
+
4254
+
4255
+
4256
+ <td align="left" class="Content">
4257
+
4258
+
4259
+
4260
+
4261
+
4262
+
4263
+
4264
+ <span class="TXT">Check if you want Sociable Skyscraper enable </span>
4265
+
4266
+
4267
+
4268
+
4269
+
4270
+
4271
+
4272
+ <br>
4273
+
4274
+
4275
+
4276
+
4277
+
4278
+
4279
+
4280
+
4281
+
4282
+
4283
+
4284
+
4285
+
4286
+
4287
+
4288
+ </td>
4289
+
4290
+
4291
+
4292
+
4293
+
4294
+
4295
+
4296
+ </tr>
4297
+
4298
+
4299
+
4300
+
4301
+
4302
+
4303
+
4304
+ </tbody></table>
4305
+
4306
+
4307
+
4308
+
4309
+
4310
+
4311
+
4312
+ <br><br>
4313
+
4314
+
4315
+
4316
+
4317
+
4318
+
4319
+
4320
+ </div>
4321
+
4322
+
4323
+
4324
+
4325
+
4326
+
4327
+
4328
+ </div>
4329
+
4330
+
4331
+
4332
+
4333
+
4334
+
4335
+
4336
+ <br/><br/>
4337
+
4338
+
4339
+
4340
+
4341
+
4342
+
4343
+
4344
+ <?php settings_fields( 'skyscraper_options_group' ); ?>
4345
+
4346
+
4347
+
4348
+
4349
+
4350
+
4351
+
4352
+ </form>
4353
+
4354
+
4355
+
4356
+
4357
+
4358
+
4359
+
4360
+ <div class="Content-Box">
4361
+
4362
+
4363
+
4364
+
4365
+
4366
+
4367
+
4368
+
4369
+
4370
+
4371
+
4372
+
4373
+
4374
+
4375
+
4376
+ <form id="sociable_reset_form" action="" method="POST">
4377
+
4378
+
4379
+
4380
+
4381
+
4382
+
4383
+
4384
+ <?php wp_nonce_field('sociable-reset'); ?>
4385
+
4386
+
4387
+
4388
+
4389
+
4390
+
4391
+
4392
+ <input type="hidden" id="skyscraper_reset" name="skyscraper_reset" value="1">
4393
+
4394
+
4395
+
4396
+
4397
+
4398
+
4399
+
4400
+ <?php //submit_button( __( 'Reset Sociable' ) , 'primary', 'sociable_reset', false ); ?>
4401
+
4402
+
4403
+
4404
+
4405
+
4406
+
4407
+
4408
+ </form>
4409
+
4410
+
4411
+
4412
+
4413
+
4414
+
4415
+
4416
+
4417
+
4418
+
4419
+
4420
+
4421
+
4422
+
4423
+
4424
+ <div id="ActionsBar">
4425
+
4426
+
4427
+
4428
+
4429
+
4430
+
4431
+
4432
+ <div style="cursor:pointer;line-height:15px;" onclick="document.getElementById('form1').submit();" class="SaveChanges"><br>
4433
+
4434
+
4435
+
4436
+
4437
+
4438
+
4439
+
4440
+ <span style="margin:30px;">Save Changes</span>
4441
+
4442
+
4443
+
4444
+
4445
+
4446
+
4447
+
4448
+ </div>
4449
+
4450
+
4451
+
4452
+
4453
+
4454
+
4455
+
4456
+ <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>
4457
+
4458
+
4459
+
4460
+
4461
+
4462
+
4463
+
4464
+ <span style="margin:40px;margin-left:35px;">Reset Skyscraper</span>
4465
+
4466
+
4467
+
4468
+
4469
+
4470
+
4471
+
4472
+ </div>
4473
+
4474
+
4475
+
4476
+
4477
+
4478
+
4479
+
4480
+ </div>
4481
+
4482
+
4483
+
4484
+
4485
+
4486
+
4487
+
4488
+ </div>
4489
+
4490
+
4491
+
4492
+
4493
+
4494
+
4495
+
4496
+
4497
+
4498
+
4499
+
4500
+
4501
+
4502
+
4503
+
4504
+ </div>
4505
+
4506
+
4507
+
4508
+
4509
+
4510
+
4511
+
4512
+ <div style="float:left;width:49%;margin-left:15px" name="skyscraper" id="skyscraper">
4513
+
4514
+
4515
+
4516
+
4517
+
4518
+
4519
+
4520
+ <script type="text/javascript">
4521
+
4522
+
4523
+
4524
+ var base_url_sociable = "<?php echo SOCIABLE_HTTP_PATH?>";
4525
+
4526
+
4527
+
4528
+ </script>
4529
+
4530
+
4531
+
4532
+
4533
+
4534
+
4535
+
4536
+ </div>
4537
+
4538
+
4539
+
4540
+ <?php
4541
+
4542
+
4543
+
4544
+
4545
+
4546
+
4547
+
4548
+ }
4549
+
4550
+
4551
+
4552
+
4553
+
4554
+
4555
+
4556
+
4557
+
4558
+
4559
+
4560
+
4561
+
4562
+
4563
+
4564
+ /**
4565
+
4566
+
4567
+
4568
+
4569
+
4570
+
4571
+
4572
+ * Add The Menu Pages To The Administration Options
4573
+
4574
+
4575
+
4576
+
4577
+
4578
+
4579
+
4580
+ */
4581
+
4582
+
4583
+
4584
+
4585
+
4586
+
4587
+
4588
+
4589
+
4590
+
4591
+
4592
+
4593
+
4594
+
4595
+
4596
+ function add_menu_pages(){
4597
+
4598
+
4599
+
4600
+
4601
+
4602
+
4603
+
4604
+
4605
+
4606
+
4607
+
4608
+
4609
+
4610
+
4611
+
4612
+ global $sociable_post_types;
4613
+
4614
+
4615
+
4616
+
4617
+
4618
+
4619
+
4620
+
4621
+
4622
+
4623
+
4624
+
4625
+
4626
+
4627
+
4628
+ $url = $_SERVER["QUERY_STRING"];
4629
+
4630
+
4631
+
4632
+
4633
+
4634
+
4635
+
4636
+ // $page[] = add_options_page( __( 'Sociable Options' ), __( 'Sociable Plugin' ), 'manage_options', 'sociable_select' , array( 'sociable_Admin_Options' , 'Select_Sociable_Page' ) );
4637
+
4638
+
4639
+
4640
+
4641
+
4642
+
4643
+
4644
+ //$page[]= add_plugins_page( __( 'Sociable Options' ), __( 'Sociable Plugin' ), 'manage_options', 'Create_Options_Page_Skycraper' );
4645
+
4646
+
4647
+
4648
+
4649
+
4650
+
4651
+
4652
+ //$page[]= add_plugins_page( 'sociable_options', 'sociable_options', 'read', 'Create_Options_Page' );
4653
+
4654
+
4655
+
4656
+
4657
+
4658
+
4659
+
4660
+ $page[] = add_options_page( "","", 'manage_options', 'sociable_select' , array( 'sociable_Admin_Options' , 'Select_Sociable_Page' ) );
4661
+
4662
+
4663
+
4664
+
4665
+
4666
+
4667
+
4668
+ $page[] = add_options_page( "","", 'manage_options', 'sociable_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page' ) );
4669
+
4670
+
4671
+
4672
+
4673
+
4674
+
4675
+
4676
+ $page[] = add_options_page( "","", 'manage_options', 'skyscraper_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page_Skycraper' ) );
4677
+
4678
+
4679
+
4680
+
4681
+
4682
+
4683
+
4684
+ // Add a new submenu under Settings:
4685
+
4686
+
4687
+
4688
+
4689
+
4690
+
4691
+
4692
+ // $page[] = add_options_page(__( 'Sociable Options' ),__( 'Sociable Plugin' ), 'manage_options', 'sociable_select', 'Select_Sociable_Page');
4693
+
4694
+
4695
+
4696
+ // Add a new top-level menu (ill-advised):
4697
+
4698
+
4699
+
4700
+
4701
+
4702
+
4703
+
4704
+ add_menu_page(__( 'Sociable Options' ), __( 'Select Sociable Plugin' ), 'manage_options', '/options-general.php?page=sociable_select' );
4705
+
4706
+
4707
+
4708
+ // Add a submenu to the custom top-level menu:
4709
+
4710
+
4711
+
4712
+
4713
+
4714
+
4715
+
4716
+ add_submenu_page('options-general.php?page=sociable_select', __( 'Sociable Options' ), __( 'Sociable Options' ), 'manage_options', 'sociable_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page' ) );
4717
+
4718
+
4719
+
4720
+ // Add a second submenu to the custom top-level menu:
4721
+
4722
+
4723
+
4724
+
4725
+
4726
+
4727
+
4728
+ 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' ) );
4729
+
4730
+
4731
+
4732
+
4733
+
4734
+
4735
+
4736
+
4737
+
4738
+
4739
+
4740
+ //Add CSS And Javascript Specific To This Options Pages
4741
+
4742
+
4743
+
4744
+
4745
+
4746
+
4747
+
4748
+ add_action( 'admin_print_styles-' . $page[0] , array( 'sociable_Admin_Options' , 'enqueue_styles' ) );
4749
+
4750
+
4751
+
4752
+
4753
+
4754
+
4755
+
4756
+ add_action( 'admin_print_scripts-' . $page[0] , array( 'sociable_Admin_Options' , 'enqueue_scripts' ) );
4757
+
4758
+
4759
+
4760
+
4761
+
4762
+
4763
+
4764
+
4765
+
4766
+
4767
+
4768
+
4769
+
4770
+
4771
+
4772
+ add_action( 'admin_print_styles-' . $page[1] , array( 'sociable_Admin_Options' , 'enqueue_styles' ) );
4773
+
4774
+
4775
+
4776
+
4777
+
4778
+
4779
+
4780
+ add_action( 'admin_print_scripts-' . $page[1] , array( 'sociable_Admin_Options' , 'enqueue_scripts' ) );
4781
+
4782
+
4783
+
4784
+ add_action( 'admin_print_styles-' . $page[2] , array( 'sociable_Admin_Options' , 'enqueue_styles' ) );
4785
+
4786
+
4787
+
4788
+
4789
+
4790
+
4791
+
4792
+ add_action( 'admin_print_scripts-' . $page[2] , array( 'sociable_Admin_Options' , 'enqueue_scripts' ) );
4793
+
4794
+
4795
+
4796
+
4797
+
4798
+
4799
+
4800
+
4801
+
4802
+
4803
+
4804
+
4805
+
4806
+
4807
+
4808
+ if( isset( $_POST['sociable_reset'] ) ){
4809
+
4810
+
4811
+
4812
+
4813
+
4814
+
4815
+
4816
+ check_admin_referer( 'sociable-reset' );
4817
+
4818
+
4819
+
4820
+
4821
+
4822
+
4823
+
4824
+
4825
+
4826
+
4827
+
4828
+
4829
+
4830
+
4831
+
4832
+ sociable_reset();
4833
+
4834
+
4835
+
4836
+
4837
+
4838
+
4839
+
4840
+ wp_redirect( $_SERVER['HTTP_REFERER' ] );
4841
+
4842
+
4843
+
4844
+
4845
+
4846
+
4847
+
4848
+ }
4849
+
4850
+
4851
+
4852
+
4853
+
4854
+
4855
+
4856
+
4857
+
4858
+
4859
+
4860
+
4861
+
4862
+
4863
+
4864
+ if( isset( $_POST['skyscraper_reset'] ) ){
4865
+
4866
+
4867
+
4868
+
4869
+
4870
+
4871
+
4872
+ check_admin_referer( 'sociable-reset' );
4873
+
4874
+
4875
+
4876
+
4877
+
4878
+
4879
+
4880
+
4881
+
4882
+
4883
+
4884
+
4885
+
4886
+
4887
+
4888
+ skyscraper_reset();
4889
+
4890
+
4891
+
4892
+
4893
+
4894
+
4895
+
4896
+ wp_redirect( $_SERVER['HTTP_REFERER' ] );
4897
+
4898
+
4899
+
4900
+
4901
+
4902
+
4903
+
4904
+ }
4905
+
4906
+
4907
+
4908
+
4909
+
4910
+
4911
+
4912
+
4913
+
4914
+
4915
+
4916
+
4917
+
4918
+
4919
+
4920
+
4921
+
4922
+
4923
+
4924
+
4925
+
4926
+
4927
+
4928
+ /*
4929
+
4930
+
4931
+
4932
+
4933
+
4934
+
4935
+
4936
+ * We can create The Meta Boxes Here
4937
+
4938
+
4939
+
4940
+
4941
+
4942
+
4943
+
4944
+ */
4945
+
4946
+
4947
+
4948
+
4949
+
4950
+
4951
+
4952
+ foreach( $sociable_post_types as $type => $data ){
4953
+
4954
+
4955
+
4956
+
4957
+
4958
+
4959
+
4960
+ self::add_meta_box( $type );
4961
+
4962
+
4963
+
4964
+
4965
+
4966
+
4967
+
4968
+ }
4969
+
4970
+
4971
+
4972
+
4973
+
4974
+
4975
+
4976
+ //Also on posts and pages
4977
+
4978
+
4979
+
4980
+
4981
+
4982
+
4983
+
4984
+ self::add_meta_box( 'post' );
4985
+
4986
+
4987
+
4988
+
4989
+
4990
+
4991
+
4992
+ self::add_meta_box( 'page' );
4993
+
4994
+
4995
+
4996
+
4997
+
4998
+
4999
+
5000
+
5001
+
5002
+
5003
+
5004
+
5005
+
5006
+
5007
+
5008
+ }
5009
+
5010
+
5011
+
5012
+
5013
+
5014
+
5015
+
5016
+
5017
+
5018
+
5019
+
5020
+
5021
+
5022
+
5023
+
5024
+ /*
5025
+
5026
+
5027
+
5028
+
5029
+
5030
+
5031
+
5032
+ * Function to Enqueue The Styles For The Options Page
5033
+
5034
+
5035
+
5036
+
5037
+
5038
+
5039
+
5040
+ */
5041
+
5042
+
5043
+
5044
+
5045
+
5046
+
5047
+
5048
+ function enqueue_styles(){
5049
+
5050
+
5051
+
5052
+
5053
+
5054
+
5055
+
5056
+ wp_enqueue_style( 'style-admin-css', SOCIABLE_HTTP_PATH . 'css/style-admin.css' );
5057
+
5058
+
5059
+
5060
+
5061
+
5062
+
5063
+
5064
+ wp_enqueue_style( 'sociable-admin-css', SOCIABLE_HTTP_PATH . 'css/sociable-admin.css' );
5065
+
5066
+
5067
+
5068
+
5069
+
5070
+
5071
+
5072
+ wp_enqueue_style( 'sociablecss' , SOCIABLE_HTTP_PATH . 'css/sociable.css' );
5073
+
5074
+
5075
+
5076
+
5077
+
5078
+
5079
+
5080
+ }
5081
+
5082
+
5083
+
5084
+
5085
+
5086
+
5087
+
5088
+
5089
+
5090
+
5091
+
5092
+
5093
+
5094
+
5095
+
5096
+ /*
5097
+
5098
+
5099
+
5100
+
5101
+
5102
+
5103
+
5104
+ * Function To Enqueue The Scripts For The Options Page
5105
+
5106
+
5107
+
5108
+
5109
+
5110
+
5111
+
5112
+ */
5113
+
5114
+
5115
+
5116
+
5117
+
5118
+
5119
+
5120
+ function enqueue_scripts(){
5121
+
5122
+
5123
+
5124
+
5125
+
5126
+
5127
+
5128
+ wp_enqueue_script('jquery');
5129
+
5130
+
5131
+
5132
+
5133
+
5134
+
5135
+
5136
+ wp_enqueue_script('jquery-ui-core',false,array('jquery'));
5137
+
5138
+
5139
+
5140
+
5141
+
5142
+
5143
+
5144
+ wp_enqueue_script('jquery-ui-sortable',false,array('jquery','jquery-ui-core'));
5145
+
5146
+
5147
+
5148
+
5149
+
5150
+
5151
+
5152
+ wp_enqueue_script( 'sociable-admin-js', SOCIABLE_HTTP_PATH . 'js/sociable-admin.js' , array( 'jquery','jquery-ui-core' , 'jquery-ui-sortable' ) );
5153
+
5154
+
5155
+
5156
+
5157
+
5158
+
5159
+
5160
+ wp_enqueue_script( 'admin-fn-js', SOCIABLE_HTTP_PATH . 'js/admin-fn.js' , array( 'jquery','jquery-ui-core' , 'jquery-ui-sortable' ) );
5161
+
5162
+
5163
+
5164
+
5165
+
5166
+
5167
+
5168
+
5169
+
5170
+
5171
+
5172
+
5173
+
5174
+
5175
+
5176
+ }
5177
+
5178
+
5179
+
5180
+
5181
+
5182
+
5183
+
5184
+
5185
+
5186
+
5187
+
5188
+
5189
+
5190
+
5191
+
5192
+
5193
+
5194
+
5195
+
5196
+
5197
+
5198
+
5199
+
5200
+
5201
+
5202
+
5203
+
5204
+
5205
+
5206
+
5207
+
5208
+ /*
5209
+
5210
+
5211
+
5212
+
5213
+
5214
+
5215
+
5216
+ * Function To Add The Settings Fields.
5217
+
5218
+
5219
+
5220
+
5221
+
5222
+
5223
+
5224
+ */
5225
+
5226
+
5227
+
5228
+ function do_site_selection_list($plugin = 'sociable'){
5229
+
5230
+
5231
+
5232
+
5233
+
5234
+
5235
+
5236
+
5237
+
5238
+
5239
+
5240
+
5241
+
5242
+
5243
+
5244
+ if ($plugin == 'sociable'){
5245
+
5246
+
5247
+
5248
+
5249
+
5250
+
5251
+
5252
+
5253
+
5254
+
5255
+
5256
+
5257
+
5258
+
5259
+
5260
+ global $sociable_options;
5261
+
5262
+
5263
+
5264
+
5265
+
5266
+
5267
+
5268
+ $option_plugin = $sociable_options;
5269
+
5270
+
5271
+
5272
+
5273
+
5274
+
5275
+
5276
+ $name_plugin = "sociable_options";
5277
+
5278
+
5279
+
5280
+
5281
+
5282
+
5283
+
5284
+ }
5285
+
5286
+
5287
+
5288
+
5289
+
5290
+
5291
+
5292
+ else{
5293
+
5294
+
5295
+
5296
+
5297
+
5298
+
5299
+
5300
+
5301
+
5302
+
5303
+
5304
+
5305
+
5306
+
5307
+
5308
+ global $skyscraper_options;
5309
+
5310
+
5311
+
5312
+
5313
+
5314
+
5315
+
5316
+ $option_plugin = $skyscraper_options;
5317
+
5318
+
5319
+
5320
+
5321
+
5322
+
5323
+
5324
+ $name_plugin = "skyscraper_options";
5325
+
5326
+
5327
+
5328
+
5329
+
5330
+
5331
+
5332
+ }
5333
+
5334
+
5335
+
5336
+
5337
+
5338
+
5339
+
5340
+
5341
+
5342
+
5343
+
5344
+
5345
+
5346
+
5347
+
5348
+
5349
+
5350
+
5351
+
5352
+
5353
+
5354
+
5355
+
5356
+ $sociable_known_sites = get_option( 'sociable_known_sites' );
5357
+
5358
+
5359
+
5360
+ /*
5361
+
5362
+
5363
+
5364
+
5365
+
5366
+
5367
+
5368
+ * Sort The List Based On The Active Sites So That They Display Correctly.
5369
+
5370
+
5371
+
5372
+
5373
+
5374
+
5375
+
5376
+ */
5377
+
5378
+
5379
+
5380
+
5381
+
5382
+
5383
+
5384
+ $active_sites = isset( $option_plugin['active_sites'] ) && is_array( $option_plugin['active_sites'] ) ? $option_plugin['active_sites'] : array() ;
5385
+
5386
+
5387
+
5388
+
5389
+
5390
+
5391
+
5392
+
5393
+
5394
+
5395
+
5396
+
5397
+
5398
+
5399
+
5400
+ //Start Blank
5401
+
5402
+
5403
+
5404
+
5405
+
5406
+
5407
+
5408
+ $active = Array();
5409
+
5410
+
5411
+
5412
+
5413
+
5414
+
5415
+
5416
+
5417
+
5418
+
5419
+
5420
+
5421
+
5422
+
5423
+
5424
+ //Disabled Untill Proven Active
5425
+
5426
+
5427
+
5428
+
5429
+
5430
+
5431
+
5432
+ $disabled = $sociable_known_sites;
5433
+
5434
+
5435
+
5436
+
5437
+
5438
+
5439
+
5440
+
5441
+
5442
+
5443
+
5444
+
5445
+
5446
+
5447
+
5448
+ //Loop Through The Active Sites, sorting into 2 arrays
5449
+
5450
+
5451
+
5452
+
5453
+
5454
+
5455
+
5456
+ foreach( $active_sites as $sitename => $value ) {
5457
+
5458
+
5459
+
5460
+
5461
+
5462
+
5463
+
5464
+ $active[$sitename] = $disabled[$sitename];
5465
+
5466
+
5467
+
5468
+
5469
+
5470
+
5471
+
5472
+ unset( $disabled[$sitename] );
5473
+
5474
+
5475
+
5476
+
5477
+
5478
+
5479
+
5480
+ }
5481
+
5482
+
5483
+
5484
+
5485
+
5486
+
5487
+
5488
+
5489
+
5490
+
5491
+
5492
+
5493
+
5494
+
5495
+
5496
+ uksort($disabled, "strnatcasecmp");
5497
+
5498
+
5499
+
5500
+
5501
+
5502
+
5503
+
5504
+
5505
+
5506
+
5507
+
5508
+
5509
+
5510
+
5511
+
5512
+ $sites = array_merge( $active, $disabled );
5513
+
5514
+
5515
+
5516
+
5517
+
5518
+
5519
+
5520
+
5521
+
5522
+
5523
+
5524
+
5525
+
5526
+
5527
+
5528
+ $imagepath = isset( $option_plugin['sociable_imagedir'] ) ? $option_plugin['sociable_imagedir'] : '' ;
5529
+
5530
+
5531
+
5532
+
5533
+
5534
+
5535
+
5536
+
5537
+
5538
+
5539
+
5540
+
5541
+
5542
+
5543
+
5544
+ if ($imagepath == "") {
5545
+
5546
+
5547
+
5548
+
5549
+
5550
+
5551
+
5552
+ $imagepath = trailingslashit( SOCIABLE_HTTP_PATH ) . 'images/';
5553
+
5554
+
5555
+
5556
+
5557
+
5558
+
5559
+
5560
+ } else {
5561
+
5562
+
5563
+
5564
+
5565
+
5566
+
5567
+
5568
+ $imagepath .= trailingslashit( $imagepath );
5569
+
5570
+
5571
+
5572
+
5573
+
5574
+
5575
+
5576
+ }
5577
+
5578
+
5579
+
5580
+
5581
+
5582
+
5583
+
5584
+
5585
+
5586
+
5587
+
5588
+
5589
+
5590
+
5591
+
5592
+ $out ='<ul id="sociable_site_list" >' ;
5593
+
5594
+
5595
+
5596
+
5597
+
5598
+
5599
+
5600
+ $io = 0;
5601
+
5602
+
5603
+
5604
+
5605
+
5606
+
5607
+
5608
+ foreach( $sites as $sitename => $site ){
5609
+
5610
+
5611
+
5612
+
5613
+
5614
+
5615
+
5616
+
5617
+
5618
+
5619
+
5620
+
5621
+
5622
+
5623
+
5624
+
5625
+
5626
+
5627
+
5628
+
5629
+
5630
+
5631
+
5632
+ //Set Checked And Active If Relevant
5633
+
5634
+
5635
+
5636
+
5637
+
5638
+
5639
+
5640
+ if( array_key_exists( $sitename, $active_sites ) ){
5641
+
5642
+
5643
+
5644
+
5645
+
5646
+
5647
+
5648
+ $checked = 'checked="checked"';
5649
+
5650
+
5651
+
5652
+
5653
+
5654
+
5655
+
5656
+ $active = 'active';
5657
+
5658
+
5659
+
5660
+
5661
+
5662
+
5663
+
5664
+ } else {
5665
+
5666
+
5667
+
5668
+
5669
+
5670
+
5671
+
5672
+ $checked = '';
5673
+
5674
+
5675
+
5676
+
5677
+
5678
+
5679
+
5680
+ $active = 'inactive';
5681
+
5682
+
5683
+
5684
+
5685
+
5686
+
5687
+
5688
+ }
5689
+
5690
+
5691
+
5692
+
5693
+
5694
+
5695
+
5696
+ if ( $sitename != "More"){
5697
+
5698
+
5699
+
5700
+
5701
+
5702
+
5703
+
5704
+ if (isset($site["counter"])){
5705
+
5706
+
5707
+
5708
+
5709
+
5710
+
5711
+
5712
+ //$image = "<img src='".SOCIABLE_HTTP_PATH."images/".$site["favicon"]."'>";
5713
+
5714
+
5715
+
5716
+
5717
+
5718
+
5719
+
5720
+ $image = $site["url"];
5721
+
5722
+
5723
+
5724
+
5725
+
5726
+
5727
+
5728
+ }else{
5729
+
5730
+
5731
+
5732
+
5733
+
5734
+
5735
+
5736
+ $image = _get_sociable_image( $site, '' );
5737
+
5738
+
5739
+
5740
+
5741
+
5742
+
5743
+
5744
+ }
5745
+
5746
+
5747
+
5748
+
5749
+
5750
+
5751
+
5752
+ }else{
5753
+
5754
+
5755
+
5756
+
5757
+
5758
+
5759
+
5760
+ $image = "<img src='".SOCIABLE_HTTP_PATH."images/more.png'>";
5761
+
5762
+
5763
+
5764
+
5765
+
5766
+
5767
+
5768
+ }
5769
+
5770
+
5771
+
5772
+
5773
+
5774
+
5775
+
5776
+
5777
+
5778
+
5779
+
5780
+
5781
+
5782
+
5783
+
5784
+ // if ( ! isset( $site['spriteCoordinates']) || isset( $sociable_options['sociable_disablesprite'] ) ) {
5785
+
5786
+
5787
+
5788
+
5789
+
5790
+
5791
+
5792
+ // if (strpos($site['favicon'], 'http') === 0) {
5793
+
5794
+
5795
+
5796
+
5797
+
5798
+
5799
+
5800
+ // $imgsrc = $site['favicon'];
5801
+
5802
+
5803
+
5804
+
5805
+
5806
+
5807
+
5808
+ // } else {
5809
+
5810
+
5811
+
5812
+
5813
+
5814
+
5815
+
5816
+ // $imgsrc = $imagepath.$site['favicon'];
5817
+
5818
+
5819
+
5820
+
5821
+
5822
+
5823
+
5824
+ // }
5825
+
5826
+
5827
+
5828
+
5829
+
5830
+
5831
+
5832
+ // $img = '<img src="' . $imgsrc . '" width="16" height="16" />';
5833
+
5834
+
5835
+
5836
+
5837
+
5838
+
5839
+
5840
+ // } else {
5841
+
5842
+
5843
+
5844
+
5845
+
5846
+
5847
+
5848
+ // $imgsrc = $imagepath."services-sprite.gif";
5849
+
5850
+
5851
+
5852
+
5853
+
5854
+
5855
+
5856
+ // $services_sprite_url = $imagepath . "services-sprite.png";
5857
+
5858
+
5859
+
5860
+
5861
+
5862
+
5863
+
5864
+ // $spriteCoords = $site['spriteCoordinates'];
5865
+
5866
+
5867
+
5868
+
5869
+
5870
+
5871
+
5872
+ // $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" />';
5873
+
5874
+
5875
+
5876
+
5877
+
5878
+
5879
+
5880
+ // }
5881
+
5882
+
5883
+
5884
+
5885
+
5886
+
5887
+
5888
+
5889
+
5890
+
5891
+
5892
+
5893
+
5894
+
5895
+
5896
+ $out .= '<li id="' . $sitename . '" class="' . $active . '">';
5897
+
5898
+
5899
+
5900
+
5901
+
5902
+
5903
+
5904
+
5905
+
5906
+
5907
+
5908
+
5909
+
5910
+
5911
+
5912
+ $out .= '<input type="checkbox" id="cb_' . $sitename . '" name="'.$name_plugin.'[active_sites][' . $sitename . ']" ' . $checked . ' />';
5913
+
5914
+
5915
+
5916
+
5917
+
5918
+
5919
+
5920
+
5921
+
5922
+
5923
+
5924
+
5925
+
5926
+
5927
+
5928
+ $out .= $image;
5929
+
5930
+
5931
+
5932
+
5933
+
5934
+
5935
+
5936
+ if (!isset($site["counter"])){
5937
+
5938
+
5939
+
5940
+
5941
+
5942
+
5943
+
5944
+ $out .= $sitename;
5945
+
5946
+
5947
+
5948
+
5949
+
5950
+
5951
+
5952
+ }
5953
+
5954
+
5955
+
5956
+
5957
+
5958
+
5959
+
5960
+
5961
+
5962
+
5963
+
5964
+
5965
+
5966
+
5967
+
5968
+ $out .= '</li>';
5969
+
5970
+
5971
+
5972
+
5973
+
5974
+
5975
+
5976
+
5977
+
5978
+
5979
+
5980
+
5981
+
5982
+
5983
+
5984
+ }
5985
+
5986
+
5987
+
5988
+
5989
+
5990
+
5991
+
5992
+
5993
+
5994
+
5995
+
5996
+
5997
+
5998
+
5999
+
6000
+
6001
+
6002
+
6003
+
6004
+
6005
+
6006
+
6007
+
6008
+ echo $out."</ul>";
6009
+
6010
+
6011
+
6012
+
6013
+
6014
+
6015
+
6016
+
6017
+
6018
+
6019
+
6020
+
6021
+
6022
+
6023
+
6024
+ }
6025
+
6026
+
6027
+
6028
+
6029
+
6030
+
6031
+
6032
+
6033
+
6034
+
6035
+
6036
+
6037
+
6038
+
6039
+
6040
+ /*
6041
+
6042
+
6043
+
6044
+
6045
+
6046
+
6047
+
6048
+ * Create The HTML For The Options Page
6049
+
6050
+
6051
+
6052
+
6053
+
6054
+
6055
+
6056
+ */
6057
+
6058
+
6059
+
6060
+
6061
+
6062
+
6063
+
6064
+ function Create_Options_Page(){
6065
+
6066
+
6067
+
6068
+ global $sociable_options;
6069
+
6070
+
6071
+
6072
+ ?>
6073
+
6074
+ <div class="wrap">
6075
+
6076
+ <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >
6077
+
6078
+
6079
+
6080
+
6081
+
6082
+
6083
+
6084
+ <iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblogplay.com%2F&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 />
6085
+
6086
+
6087
+
6088
+ <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://blogplay.com" data-text="Check the sociable plugin [blogplay.com]" >Tweet</a>
6089
+
6090
+
6091
+
6092
+
6093
+
6094
+ <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>
6095
+
6096
+
6097
+
6098
+
6099
+
6100
+
6101
+
6102
+ <br />
6103
+
6104
+
6105
+
6106
+
6107
+
6108
+
6109
+
6110
+ </div>
6111
+
6112
+
6113
+
6114
+ <h2 style="clear:both;"><?php _e( 'Sociable Options' ); ?></h2>
6115
+
6116
+
6117
+
6118
+ <form method="post" action="options.php" id="form1" autocomplete="off">
6119
+
6120
+
6121
+
6122
+
6123
+
6124
+
6125
+
6126
+
6127
+
6128
+
6129
+
6130
+
6131
+
6132
+
6133
+
6134
+ <?php wp_nonce_field('sociable-config'); ?>
6135
+
6136
+
6137
+
6138
+
6139
+
6140
+
6141
+
6142
+ <INPUT type="hidden" class="version-INPUT" id="version" name="sociable_options[version]" value="<?php echo$sociable_options["version"];?>" />
6143
+
6144
+
6145
+
6146
+
6147
+
6148
+
6149
+
6150
+ <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px">
6151
+
6152
+
6153
+
6154
+
6155
+
6156
+
6157
+
6158
+ <TR>
6159
+
6160
+
6161
+
6162
+
6163
+
6164
+
6165
+
6166
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" >Preview</TD><TD class="Border-Right"></TD>
6167
+
6168
+
6169
+
6170
+
6171
+
6172
+
6173
+
6174
+ </TR>
6175
+
6176
+
6177
+
6178
+
6179
+
6180
+
6181
+
6182
+ </TABLE>
6183
+
6184
+
6185
+
6186
+
6187
+
6188
+
6189
+
6190
+ <BR/>
6191
+
6192
+
6193
+
6194
+
6195
+
6196
+
6197
+
6198
+
6199
+
6200
+
6201
+
6202
+
6203
+
6204
+
6205
+
6206
+ <DIV class="Content-Box" id="Preview-Content">
6207
+
6208
+
6209
+
6210
+
6211
+
6212
+
6213
+
6214
+ <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>
6215
+
6216
+
6217
+
6218
+
6219
+
6220
+
6221
+
6222
+
6223
+
6224
+
6225
+
6226
+
6227
+
6228
+
6229
+
6230
+ <BR/>
6231
+
6232
+
6233
+
6234
+
6235
+
6236
+
6237
+
6238
+
6239
+
6240
+
6241
+
6242
+
6243
+
6244
+
6245
+
6246
+ <DIV style="margin:0 0 0 25px" class="Post-TXT" id="Post-TXT" ><?php _e("This is your post here...","sociable")?></DIV>
6247
+
6248
+
6249
+
6250
+
6251
+
6252
+
6253
+
6254
+
6255
+
6256
+
6257
+
6258
+
6259
+
6260
+
6261
+
6262
+ <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >Lorem ipsum dolor sit amet, consectetur adipiscing elit.</DIV>
6263
+
6264
+
6265
+
6266
+
6267
+
6268
+
6269
+
6270
+
6271
+
6272
+
6273
+
6274
+
6275
+
6276
+
6277
+
6278
+ <BR/>
6279
+
6280
+
6281
+
6282
+
6283
+
6284
+
6285
+
6286
+ <DIV style="margin:0 0 0 25px" id="ShareAndEnjoy" > <?php do_sociable(); ?></DIV>
6287
+
6288
+
6289
+
6290
+
6291
+
6292
+
6293
+
6294
+ </DIV>
6295
+
6296
+
6297
+
6298
+
6299
+
6300
+
6301
+
6302
+ <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Tagline-Title">
6303
+
6304
+
6305
+
6306
+
6307
+
6308
+
6309
+
6310
+ <TR>
6311
+
6312
+
6313
+
6314
+
6315
+
6316
+
6317
+
6318
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Tagline","sociable");?></TD><TD class="Border-Right"></TD>
6319
+
6320
+
6321
+
6322
+
6323
+
6324
+
6325
+
6326
+ </TR>
6327
+
6328
+
6329
+
6330
+
6331
+
6332
+
6333
+
6334
+ </TABLE>
6335
+
6336
+
6337
+
6338
+
6339
+
6340
+
6341
+
6342
+ <BR/>
6343
+
6344
+
6345
+
6346
+
6347
+
6348
+
6349
+
6350
+
6351
+
6352
+
6353
+
6354
+
6355
+
6356
+
6357
+
6358
+ <DIV class="Content-Box" id="Tagline-Content">
6359
+
6360
+
6361
+
6362
+
6363
+
6364
+
6365
+
6366
+ <DIV class="Tagline-TXT" id="Tagline-TXT" ><?php _e('Previously we used "Share and Enjoy", remember the good old days?',"sociable");?></DIV>
6367
+
6368
+
6369
+
6370
+
6371
+
6372
+
6373
+
6374
+
6375
+
6376
+
6377
+
6378
+
6379
+
6380
+
6381
+
6382
+ <BR/>
6383
+
6384
+
6385
+
6386
+
6387
+
6388
+
6389
+
6390
+ <DIV style="width:100%;height:60px;">
6391
+
6392
+
6393
+
6394
+
6395
+
6396
+
6397
+
6398
+ <INPUT type="text" class="Tagline-INPUT" id="tagline" name="sociable_options[tagline]" value="<?php echo$sociable_options["tagline"];?>" />
6399
+
6400
+
6401
+
6402
+
6403
+
6404
+
6405
+
6406
+
6407
+
6408
+
6409
+
6410
+
6411
+
6412
+
6413
+
6414
+ <DIV class="ToSociable" >
6415
+
6416
+
6417
+
6418
+
6419
+
6420
+
6421
+
6422
+ <INPUT type="checkbox" <?php if (!empty($sociable_options["help_grow"])) echo "checked = 'checked'";?> name="sociable_options[help_grow]" id="LinkToSociable" />
6423
+
6424
+
6425
+
6426
+
6427
+
6428
+
6429
+
6430
+ <?php _e("Link to Sociable","sociable");?><BR/>
6431
+
6432
+
6433
+
6434
+
6435
+
6436
+
6437
+
6438
+ <SPAN style="font-size:14px;"><?php _e("(Help us grow, please leave the link so others discover Sociable from your blog)","sociable");?></SPAN>
6439
+
6440
+
6441
+
6442
+
6443
+
6444
+
6445
+
6446
+ </DIV>
6447
+
6448
+
6449
+
6450
+
6451
+
6452
+
6453
+
6454
+ </DIV>
6455
+
6456
+
6457
+
6458
+
6459
+
6460
+
6461
+
6462
+ </DIV>
6463
+
6464
+
6465
+
6466
+
6467
+
6468
+
6469
+
6470
+
6471
+
6472
+
6473
+
6474
+
6475
+
6476
+
6477
+
6478
+
6479
+
6480
+
6481
+
6482
+
6483
+
6484
+
6485
+
6486
+ <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Tagline-Title">
6487
+
6488
+
6489
+
6490
+
6491
+
6492
+
6493
+
6494
+ <TR>
6495
+
6496
+
6497
+
6498
+
6499
+
6500
+
6501
+
6502
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Icons to Include","sociable");?></TD><TD class="Border-Right"></TD>
6503
+
6504
+
6505
+
6506
+
6507
+
6508
+
6509
+
6510
+ </TR>
6511
+
6512
+
6513
+
6514
+
6515
+
6516
+
6517
+
6518
+ </TABLE>
6519
+
6520
+
6521
+
6522
+
6523
+
6524
+
6525
+
6526
+ <BR/>
6527
+
6528
+
6529
+
6530
+
6531
+
6532
+
6533
+
6534
+
6535
+
6536
+
6537
+
6538
+
6539
+
6540
+
6541
+
6542
+ <DIV class="Content-Box" id="IconsToInclude-Box" style="">
6543
+
6544
+
6545
+
6546
+
6547
+
6548
+
6549
+
6550
+ <DIV class="IconsToInclude-TXT" id="IconsToInclude-TXT" >
6551
+
6552
+
6553
+
6554
+
6555
+
6556
+
6557
+
6558
+ <?php _e("Check the sites you want to appear on your blog.","sociable");?>
6559
+
6560
+
6561
+
6562
+
6563
+
6564
+
6565
+
6566
+ </DIV>
6567
+
6568
+
6569
+
6570
+
6571
+
6572
+
6573
+
6574
+
6575
+
6576
+
6577
+
6578
+
6579
+
6580
+
6581
+
6582
+ <BR/>
6583
+
6584
+
6585
+
6586
+
6587
+
6588
+
6589
+
6590
+
6591
+
6592
+
6593
+
6594
+
6595
+
6596
+
6597
+
6598
+ <?php self::do_site_selection_list(); ?>
6599
+
6600
+
6601
+
6602
+
6603
+
6604
+
6605
+
6606
+ </DIV>
6607
+
6608
+
6609
+
6610
+
6611
+
6612
+
6613
+
6614
+
6615
+
6616
+
6617
+
6618
+
6619
+
6620
+
6621
+
6622
+ <div class="soc_clear"></div>
6623
+
6624
+
6625
+
6626
+
6627
+
6628
+
6629
+
6630
+
6631
+
6632
+
6633
+
6634
+
6635
+
6636
+
6637
+
6638
+ <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="IconSize-Title" style="margin-top:20px;">
6639
+
6640
+
6641
+
6642
+
6643
+
6644
+
6645
+
6646
+ <TR>
6647
+
6648
+
6649
+
6650
+
6651
+
6652
+
6653
+
6654
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Icons Size","sociable");?></TD><TD class="Border-Right"></TD>
6655
+
6656
+
6657
+
6658
+
6659
+
6660
+
6661
+
6662
+ </TR>
6663
+
6664
+
6665
+
6666
+
6667
+
6668
+
6669
+
6670
+ </TABLE>
6671
+
6672
+
6673
+
6674
+
6675
+
6676
+
6677
+
6678
+ <BR/>
6679
+
6680
+
6681
+
6682
+
6683
+
6684
+
6685
+
6686
+
6687
+
6688
+
6689
+
6690
+
6691
+
6692
+
6693
+
6694
+ <DIV class="Content-Box" style="margin-left:-3px" id="IconSize-Content">
6695
+
6696
+
6697
+
6698
+
6699
+
6700
+
6701
+
6702
+ <?php
6703
+
6704
+
6705
+
6706
+
6707
+
6708
+
6709
+
6710
+ $checked16 = "";
6711
+
6712
+
6713
+
6714
+
6715
+
6716
+
6717
+
6718
+ $checked32 = "";
6719
+
6720
+
6721
+
6722
+
6723
+
6724
+
6725
+
6726
+ $checked48 = "";
6727
+
6728
+
6729
+
6730
+
6731
+
6732
+
6733
+
6734
+ $checked64 = "";
6735
+
6736
+
6737
+
6738
+
6739
+
6740
+
6741
+
6742
+ if ($sociable_options["icon_size"] == 16) $checked16 = "checked='checked'";
6743
+
6744
+
6745
+
6746
+
6747
+
6748
+
6749
+
6750
+ if ($sociable_options["icon_size"] == 32) $checked32 = "checked='checked'";
6751
+
6752
+
6753
+
6754
+
6755
+
6756
+
6757
+
6758
+ if ($sociable_options["icon_size"] == 48) $checked48 = "checked='checked'";
6759
+
6760
+
6761
+
6762
+
6763
+
6764
+
6765
+
6766
+ if ($sociable_options["icon_size"] == 64) $checked64 = "checked='checked'";
6767
+
6768
+
6769
+
6770
+
6771
+
6772
+
6773
+
6774
+ //echo $checked16;
6775
+
6776
+
6777
+
6778
+
6779
+
6780
+
6781
+
6782
+ ?>
6783
+
6784
+
6785
+
6786
+
6787
+
6788
+
6789
+
6790
+ <SPAN class="IconSize-Item"> <INPUT value="16" type="radio" name="sociable_options[icon_size]" <?php echo $checked16;?> />16x16 Pixels </SPAN>
6791
+
6792
+
6793
+
6794
+
6795
+
6796
+
6797
+
6798
+
6799
+
6800
+
6801
+
6802
+
6803
+
6804
+
6805
+
6806
+ <SPAN class="IconSize-Item"> <INPUT <?php echo$checked32;?> value="32" type="radio" name="sociable_options[icon_size]" />32x32 Pixels </SPAN>
6807
+
6808
+
6809
+
6810
+
6811
+
6812
+
6813
+
6814
+
6815
+
6816
+
6817
+
6818
+
6819
+
6820
+
6821
+
6822
+ <SPAN class="IconSize-Item"> <INPUT <?php echo$checked48;?> value="48" type="radio" name="sociable_options[icon_size]"/>48x48 Pixels </SPAN>
6823
+
6824
+
6825
+
6826
+
6827
+
6828
+
6829
+
6830
+
6831
+
6832
+
6833
+
6834
+
6835
+
6836
+
6837
+
6838
+ <SPAN class="IconSize-Item"> <INPUT <?php echo$checked64;?> value="64" type="radio" name="sociable_options[icon_size]" />64x64 Pixels </SPAN>
6839
 
6840
 
6841
 
 
6842
 
6843
 
6844
 
6845
+
6846
+
6847
+
6848
+
6849
+
6850
+
6851
+
6852
+
6853
+
6854
+
6855
+
6856
+
6857
+
6858
+
6859
+
6860
+
6861
+
6862
+ </DIV>
6863
+
6864
+
6865
+
6866
+
6867
+
6868
+
6869
+
6870
+
6871
+
6872
+
6873
+
6874
+
6875
+
6876
+
6877
+
6878
+ <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="IconSize-Title" style="margin-top:20px;">
6879
+
6880
+
6881
+
6882
+
6883
 
6884
 
6885
 
6887
 
6888
 
6889
 
6890
+
6891
+
6892
+
6893
+
6894
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Icons Style","sociable");?></TD><TD class="Border-Right"></TD>
6895
+
6896
+
6897
+
6898
+
6899
 
6900
 
6901
 
6903
 
6904
 
6905
 
6906
+
6907
+
6908
+
6909
+
6910
  </TABLE>
6911
 
6912
 
6913
 
6914
+
6915
+
6916
+
6917
+
6918
  <BR/>
6919
 
6920
 
6921
 
6922
+
6923
+
6924
+
6925
+
6926
 
6927
 
6928
 
6929
 
6930
+
6931
+
6932
+
6933
+
6934
+ <DIV class="Content-Box" id="IconSize-Content" style="padding:20px;">
6935
+
6936
+
6937
+
6938
+
6939
 
6940
 
6941
 
6943
 
6944
 
6945
 
 
6946
 
6947
 
6948
 
 
6949
 
6950
+ <?php
6951
 
6952
 
 
6953
 
6954
 
6955
 
 
6956
 
6957
 
6958
+ $checked1 = "";
6959
 
 
6960
 
6961
 
6962
 
 
6963
 
6964
 
6965
 
6966
+ $checked2 = "";
6967
+
6968
+
6969
+
6970
+
6971
+
6972
+
6973
+
6974
+ $checked3 = "";
6975
+
6976
+
6977
+
6978
+
6979
+
6980
+
6981
+
6982
+ $checked4 = "";
6983
+
6984
+
6985
+
6986
+
6987
+
6988
+
6989
+
6990
+ $checked5 = "";
6991
+
6992
+
6993
+
6994
+
6995
+
6996
+
6997
+
6998
+ $checked6 = "";
6999
+
7000
+
7001
+
7002
+
7003
+
7004
+
7005
+
7006
+ if ($sociable_options["icon_option"] == "option1") $checked1 = "checked='checked'";
7007
+
7008
+
7009
+
7010
+
7011
+
7012
+
7013
+
7014
+ if ($sociable_options["icon_option"] == "option2") $checked2 = "checked='checked'";
7015
+
7016
+
7017
+
7018
+
7019
+
7020
+
7021
+
7022
+ if ($sociable_options["icon_option"] == "option3") $checked3 = "checked='checked'";
7023
+
7024
+
7025
+
7026
+
7027
+
7028
+
7029
+
7030
+ if ($sociable_options["icon_option"] == "option4") $checked4 = "checked='checked'";
7031
+
7032
+
7033
+
7034
+
7035
+
7036
+
7037
+
7038
+ if ($sociable_options["icon_option"] == "option5") $checked5 = "checked='checked'";
7039
+
7040
+
7041
+
7042
+
7043
+
7044
+
7045
+
7046
+ if ($sociable_options["icon_option"] == "option6") $checked6 = "checked='checked'";
7047
+
7048
+
7049
+
7050
+
7051
+
7052
+
7053
+
7054
+
7055
+
7056
+
7057
+
7058
+
7059
+
7060
+
7061
+
7062
+ $imagepath = isset( $sociable_options['sociable_imagedir'] ) ? $sociable_options['sociable_imagedir'] : '' ;
7063
+
7064
+
7065
+
7066
+
7067
+
7068
+
7069
+
7070
+
7071
+
7072
+
7073
+
7074
+
7075
+
7076
+
7077
+
7078
+ if ($imagepath == "") {
7079
+
7080
+
7081
+
7082
+
7083
+
7084
+
7085
+
7086
+ $imagepath = trailingslashit( SOCIABLE_HTTP_PATH ) . 'images/';
7087
+
7088
+
7089
+
7090
+
7091
+
7092
+
7093
+
7094
+ } else {
7095
+
7096
+
7097
+
7098
+
7099
+
7100
+
7101
+
7102
+ $imagepath .= trailingslashit( $imagepath );
7103
+
7104
+
7105
+
7106
+
7107
+
7108
+
7109
+
7110
+ }
7111
+
7112
+
7113
+
7114
+
7115
+
7116
+
7117
+
7118
+ //echo $imagepath;
7119
+
7120
+
7121
+
7122
+
7123
+
7124
+
7125
+
7126
+ ?>
7127
 
7128
 
7129
 
 
7130
 
7131
 
7132
 
7133
+
7134
+
7135
+
7136
+
7137
 
7138
 
7139
 
 
7140
 
7141
 
7142
+ <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>
7143
 
 
7144
 
7145
 
7146
 
 
7147
 
7148
 
7149
 
7150
+ <BR/><BR/>
7151
 
7152
 
7153
 
 
7154
 
7155
 
7156
 
 
7157
 
7158
+ <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>
7159
 
7160
 
 
7161
 
7162
 
7163
 
 
7164
 
7165
 
7166
+ <BR/><BR/>
7167
 
 
7168
 
7169
 
7170
 
 
7171
 
7172
 
7173
 
7174
+ <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>
7175
 
7176
 
7177
 
 
7178
 
7179
 
7180
 
 
7181
 
7182
+ <BR/><BR/>
7183
 
7184
 
 
7185
 
7186
 
7187
 
 
7188
 
7189
 
7190
+ <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>
7191
 
 
7192
 
7193
 
7194
 
 
7195
 
7196
 
7197
 
7198
+ <BR/><BR/>
7199
 
7200
 
7201
 
 
7202
 
7203
 
7204
 
 
7205
 
7206
+ <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>
7207
 
7208
 
 
7209
 
7210
 
7211
 
 
7212
 
7213
 
7214
+ <BR/><BR/>
7215
 
 
7216
 
7217
 
7218
 
 
7219
 
7220
 
7221
 
7222
+ <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>
7223
 
7224
 
7225
 
 
7226
 
7227
 
7228
 
 
7229
 
7230
+ <BR/><BR/>
7231
 
7232
 
 
7233
 
7234
 
7235
 
 
7236
 
7237
 
7238
+ </DIV>
7239
 
 
7240
 
7241
 
7242
 
 
7243
 
7244
 
7245
 
7246
+
7247
 
7248
 
7249
 
 
7250
 
7251
 
7252
 
 
7253
 
7254
+ <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Locations');" >
7255
 
7256
 
 
7257
 
7258
 
7259
 
 
7260
 
7261
 
7262
+ <TR>
7263
 
 
7264
 
7265
 
7266
 
 
7267
 
7268
 
7269
 
7270
+ <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>
7271
 
7272
 
7273
 
 
7274
 
7275
 
7276
 
 
7277
 
7278
+ </TR>
7279
 
7280
 
 
7281
 
7282
 
7283
 
 
7284
 
7285
 
7286
+ </TABLE>
7287
 
 
7288
 
7289
 
7290
 
 
7291
 
7292
 
7293
 
7294
+ <BR/>
7295
 
7296
 
7297
 
 
7298
 
7299
 
7300
 
 
7301
 
7302
+
7303
 
7304
 
 
7305
 
7306
 
7307
 
 
7308
 
7309
 
7310
+ <DIV class="Content-Box" id="Locations-Content" style="display:none;" >
7311
 
 
7312
 
7313
 
7314
 
 
7315
 
7316
 
7317
 
7318
+ <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>
7319
 
7320
 
7321
 
 
7322
 
7323
 
7324
 
 
7325
 
7326
+
7327
 
7328
 
 
7329
 
7330
 
7331
 
 
7332
 
7333
 
7334
+ <BR/>
7335
 
 
7336
 
7337
 
7338
 
 
7339
 
7340
 
7341
 
7342
+ <DIV align="center" style="width:100%;">
7343
 
7344
 
7345
 
 
7346
 
7347
 
7348
 
 
7349
 
7350
+ <TABLE align="center" class="Locations-List" cellspacing="0" border=0 cellpadding="10">
7351
 
7352
 
 
7353
 
7354
 
7355
 
 
7356
 
7357
 
7358
+ <TR valign="top" >
7359
 
 
7360
 
7361
 
7362
 
 
7363
 
7364
 
7365
 
7366
+ <TD align="right" class="Title" ><?php _e("Home page","sociable");?></TD>
7367
 
 
7368
 
7369
 
7370
 
 
7371
 
7372
 
7373
 
7374
+ <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>
7375
 
7376
 
7377
 
 
7378
 
7379
 
7380
 
 
7381
 
7382
+ <TD align="left" class="Content">
7383
 
7384
 
 
7385
 
7386
 
7387
 
 
7388
 
7389
 
7390
+ <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>
7391
 
 
7392
 
7393
 
7394
 
 
7395
 
7396
 
7397
 
7398
+
7399
 
7400
 
7401
 
 
7402
 
7403
 
7404
 
 
7405
 
7406
+ </TD>
7407
 
7408
 
 
7409
 
7410
 
7411
 
 
7412
 
7413
 
7414
+ </TR>
7415
 
 
7416
 
7417
 
7418
 
 
7419
 
7420
 
7421
 
7423
 
7424
 
7425
 
 
7426
 
7427
 
7428
 
 
7429
 
7430
+ <TR valign="top" >
7431
 
7432
 
 
7433
 
7434
 
7435
 
 
7436
 
7437
 
7438
+ <TD align="right" class="Title" ><?php _e("Blog page","sociable");?></TD>
7439
 
 
7440
 
7441
 
7442
 
 
7443
 
7444
 
7445
 
7446
+ <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>
7447
 
7448
 
7449
 
 
7450
 
7451
 
7452
 
 
7453
 
7454
+ <TD align="left" class="Content">
7455
 
7456
 
 
7457
 
7458
 
7459
 
 
7460
 
7461
 
7462
+ <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>
7463
 
 
7464
 
7465
 
7466
 
 
7467
 
7468
 
7469
 
7470
+
7471
+
7472
 
7473
 
7474
 
 
7475
 
7476
 
7477
 
7479
 
7480
 
7481
 
 
7482
 
7483
 
7484
 
 
7485
 
7486
+ </TR>
7487
 
7488
 
 
7489
 
7490
 
7491
 
 
7492
 
7493
 
7494
+
7495
 
 
7496
 
7497
 
7498
 
 
7499
 
7500
 
7501
 
7502
+ <TR valign="top" >
7503
 
7504
 
7505
 
 
7506
 
7507
 
7508
 
 
7509
 
7510
+ <TD align="right" class="Title" ><?php _e("Posts","sociable");?></TD>
7511
 
7512
 
 
7513
 
7514
 
7515
 
 
7516
 
7517
 
7518
+ <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>
7519
 
 
7520
 
7521
 
7522
 
 
7523
 
7524
 
7525
 
7526
+ <TD align="left" class="Content">
7527
 
7528
 
7529
 
 
7530
 
7531
 
7532
 
 
7533
 
7534
+ <SPAN class="TXT"><?php _e("Single post pages","sociable");?></SPAN>
7535
 
7536
 
 
7537
 
7538
 
7539
 
 
7540
 
7541
 
7542
+
7543
 
 
7544
 
7545
 
7546
 
 
7547
 
7548
 
7549
 
7550
+ </TD>
7551
 
7552
 
7553
 
 
7554
 
7555
 
7556
 
 
7557
 
7558
+ </TR>
7559
 
7560
 
 
7561
 
7562
 
7563
 
 
7564
 
7565
 
7566
+
7567
 
 
7568
 
7569
 
7570
 
 
7571
 
7572
 
7573
 
7574
+ <TR valign="top" >
7575
 
7576
 
7577
 
 
7578
 
7579
 
7580
 
 
7581
 
7582
+ <TD align="right" class="Title" ><?php _e("Pages","sociable");?></TD>
7583
 
7584
 
 
7585
 
7586
 
7587
 
 
7588
 
7589
 
7590
+ <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>
7591
 
 
7592
 
7593
 
7594
 
 
7595
 
7596
 
7597
 
7598
+ <TD align="left" class="Content">
7599
 
7600
 
7601
 
 
7602
 
7603
 
7604
 
 
7605
 
7606
+ <SPAN class="TXT"><?php _e("Individual Wordpress pages","sociable");?></SPAN>
7607
 
7608
 
 
7609
 
7610
 
7611
 
 
7612
 
7613
 
7614
+
7615
 
 
7616
 
7617
 
7618
 
 
7619
 
7620
 
7621
 
7622
+ </TD>
7623
 
7624
 
7625
 
 
7626
 
7627
 
7628
 
 
7629
 
7630
+ </TR>
7631
 
7632
 
 
7633
 
7634
 
7635
 
 
7636
 
7637
 
7638
+
7639
 
 
7640
 
7641
 
7642
 
 
7643
 
7644
 
7645
 
7646
+ <TR valign="top" >
7647
 
7648
 
7649
 
 
7650
 
7651
 
7652
 
 
7653
 
7654
+ <TD align="right" class="Title" ><?php _e("Category archives","sociable");?></TD>
7655
 
7656
 
 
7657
 
7658
 
7659
 
 
7660
 
7661
 
7662
+ <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>
7663
 
 
7664
 
7665
 
7666
 
 
7667
 
7668
 
7669
 
7670
+ <TD align="left" class="Content">
7671
 
7672
 
7673
 
 
7674
 
7675
 
7676
 
7677
+
7678
+ <SPAN class="TXT"><?php _e("Category archive pages","sociable");?></SPAN>
7679
 
7680
 
7681
 
 
7682
 
7683
 
7684
 
 
7685
 
7686
+
7687
 
7688
 
 
7689
 
7690
 
7691
 
 
7692
 
7693
 
7694
+ </TD>
7695
 
 
7696
 
7697
 
7698
 
 
7699
 
7700
 
7701
 
7702
+ </TR>
7703
 
7704
 
7705
 
 
7706
 
 
7707
 
 
7708
 
7709
 
7710
+
7711
 
 
7712
 
 
7713
 
7714
 
7715
 
 
7716
 
7717
 
7718
+ <TR valign="top" >
7719
 
 
7720
 
7721
 
7722
 
 
7723
 
7724
 
7725
 
7726
+ <TD align="right" class="Title" ><?php _e("Date archives","sociable");?></TD>
7727
 
7728
 
7729
 
 
7730
 
7731
 
7732
 
 
7733
 
7734
+ <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>
7735
 
7736
 
 
7737
 
7738
 
7739
 
 
7740
 
7741
 
7742
+ <TD align="left" class="Content">
7743
+
7744
 
 
7745
 
7746
 
7747
 
 
7748
 
7749
 
7750
+ <SPAN class="TXT"><?php _e("Date archive pages","sociable");?> </SPAN>
7751
 
 
7752
 
7753
 
7754
 
 
7755
 
7756
 
7757
 
7758
+
7759
 
7760
 
7761
 
 
7762
 
7763
 
7764
 
 
7765
 
7766
+ </TD>
7767
 
7768
 
 
7769
 
7770
 
7771
 
 
7772
 
7773
 
7774
+ </TR>
7775
 
 
7776
 
7777
 
7778
 
 
7779
 
 
7780
 
7781
 
7782
+
7783
 
 
7784
 
 
7785
 
7786
 
7787
 
 
7788
 
 
7789
 
7790
+ <TR valign="top" >
7791
 
7792
 
 
7793
 
 
7794
 
7795
 
7796
 
 
7797
 
7798
+ <TD align="right" class="Title" ><?php _e("Tag archives","sociable");?></TD>
7799
 
7800
 
 
7801
 
7802
 
7803
 
 
7804
 
7805
 
7806
+ <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>
7807
 
 
7808
 
7809
 
7810
 
 
7811
 
7812
 
7813
 
7814
+ <TD align="left" class="Content">
7815
 
 
7816
 
7817
 
7818
 
 
7819
 
7820
 
7821
 
7822
+ <SPAN class="TXT"><?php _e("Tag archive pages","sociable");?> </SPAN>
7823
 
7824
 
7825
 
 
7826
 
7827
 
7828
 
 
7829
 
7830
+
7831
 
7832
 
 
7833
 
7834
 
7835
 
 
7836
 
7837
 
7838
+ </TD>
7839
 
 
7840
 
7841
 
7842
 
 
7843
 
7844
 
7845
 
7846
+ </TR>
7847
 
7848
 
7849
 
 
7850
 
7851
 
7852
 
 
7853
 
7854
+
7855
 
7856
 
 
7857
 
7858
 
7859
 
 
7860
 
7861
 
7862
+ <TR valign="top" >
7863
 
 
7864
 
7865
 
7866
 
 
7867
 
7868
 
7869
 
7870
+ <TD align="right" class="Title" ><?php _e("Author archives","sociable");?></TD>
7871
 
7872
 
7873
 
 
7874
 
7875
 
7876
 
 
7877
 
7878
+ <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>
7879
 
7880
 
 
7881
 
7882
 
7883
 
 
7884
 
7885
 
7886
+ <TD align="left" class="Content">
7887
 
 
7888
 
7889
 
7890
 
 
7891
 
7892
 
7893
 
7894
+ <SPAN class="TXT"><?php _e("Author archive pages","sociable");?></SPAN>
7895
 
7896
 
7897
 
 
7898
 
7899
 
7900
 
 
7901
 
7902
+
7903
 
7904
 
 
7905
 
7906
 
7907
 
 
7908
 
7909
 
7910
+ </TD>
7911
 
 
7912
 
7913
 
7914
 
 
7915
 
7916
 
7917
 
7918
+ </TR>
7919
 
7920
 
7921
 
 
7922
 
7923
 
7924
 
 
7925
 
7926
+
7927
 
7928
 
 
7929
 
7930
 
7931
 
 
7932
 
7933
 
7934
+ <TR valign="top" >
7935
 
 
7936
 
7937
 
7938
 
 
7939
 
7940
 
7941
 
7942
+ <TD align="right" class="Title" ><?php _e("Search results","sociable");?></TD>
7943
 
7944
 
7945
 
 
7946
 
7947
 
7948
 
 
7949
 
7950
+ <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>
7951
 
7952
 
 
7953
 
7954
 
7955
 
 
7956
 
7957
 
7958
+ <TD align="left" class="Content">
7959
 
 
7960
 
7961
 
7962
 
 
7963
 
7964
 
7965
 
7966
+ <SPAN class="TXT"><?php _e("Search results pages","sociable");?></SPAN>
7967
 
7968
 
7969
 
 
7970
 
7971
 
7972
 
 
7973
 
7974
+
7975
 
7976
 
 
7977
 
7978
 
7979
 
 
7980
 
7981
 
7982
+ </TD>
7983
 
 
7984
 
7985
 
7986
 
 
7987
 
7988
 
7989
 
7990
+ </TR>
7991
 
7992
 
7993
 
 
7994
 
7995
 
7996
 
 
7997
 
7998
+
7999
 
8000
 
 
8001
 
8002
 
8003
 
 
8004
 
 
8005
 
8006
+ <TR valign="top" >
8007
 
8008
 
 
8009
 
8010
 
8011
 
 
8012
 
8013
 
8014
+ <TD align="right" class="Title" ><?php _e("RSS feeds","sociable");?></TD>
8015
 
 
8016
 
8017
 
8018
 
 
8019
 
8020
 
8021
 
8022
+ <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>
8023
 
8024
 
8025
 
 
8026
 
8027
 
8028
 
 
8029
 
8030
+ <TD align="left" class="Content">
8031
 
8032
 
 
8033
 
8034
 
8035
 
 
8036
 
8037
 
8038
+ <SPAN class="TXT"><?php _e("RSS feeds","sociable");?></SPAN>
8039
 
 
8040
 
8041
 
8042
 
 
8043
 
8044
 
8045
 
8046
+
8047
 
8048
 
8049
 
 
8050
 
8051
 
8052
 
 
8053
 
8054
+ </TD>
8055
 
8056
 
 
8057
 
8058
 
8059
 
 
8060
 
 
8061
 
8062
+ </TR>
8063
 
8064
 
 
8065
 
8066
 
8067
 
 
8068
 
8069
 
8070
+
8071
 
 
8072
 
8073
 
8074
 
 
8075
 
8076
 
8077
 
8078
+
8079
 
8080
 
8081
 
 
8082
 
8083
 
8084
 
 
8085
 
8086
+ </TABLE>
8087
 
8088
 
 
8089
 
8090
 
8091
 
 
8092
 
8093
 
8094
+ <BR/><BR/>
8095
 
 
8096
 
8097
 
8098
 
 
8099
 
8100
 
8101
 
8102
+ </DIV>
8103
 
8104
 
8105
 
 
8106
 
8107
 
8108
 
 
8109
 
8110
+ </DIV>
8111
 
8112
 
 
8113
 
8114
 
8115
 
 
8116
 
8117
 
8118
+
8119
 
 
8120
 
8121
 
8122
 
 
8123
 
8124
 
8125
 
8126
+ <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('GeneralOptions');">
8127
 
8128
 
8129
 
 
8130
 
8131
 
8132
 
 
8133
 
8134
+ <TR>
8135
 
8136
 
 
8137
 
8138
 
8139
 
 
8140
 
8141
 
8142
+ <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>
8143
 
 
8144
 
8145
 
8146
 
 
8147
 
8148
 
8149
 
8150
+ </TR>
8151
 
8152
 
8153
 
 
8154
 
8155
 
8156
 
 
8157
 
8158
+ </TABLE>
8159
 
8160
 
 
8161
 
8162
 
8163
 
 
8164
 
8165
 
8166
+ <BR/>
8167
 
 
8168
 
8169
 
8170
 
 
8171
 
8172
 
8173
 
8175
 
8176
 
8177
 
 
8178
 
8179
 
8180
 
 
8181
 
8182
+ <DIV class="Content-Box" id="GeneralOptions-Content" style="display:none;" >
8183
 
8184
 
 
8185
 
8186
 
8187
 
 
8188
 
8189
 
8190
+
8191
 
 
8192
 
8193
 
8194
 
 
8195
 
8196
 
8197
 
8198
+ <BR/>
8199
 
8200
 
8201
 
 
8202
 
8203
 
8204
 
 
8205
 
8206
+ <DIV align="center" style="width:100%;">
8207
 
8208
 
 
8209
 
8210
 
8211
 
 
8212
 
8213
 
8214
+ <TABLE align="center" class="GeneralOptions-List" cellspacing="0" border=0 cellpadding ="10" >
8215
 
 
8216
 
8217
 
8218
 
 
8219
 
8220
 
8221
 
8222
+ <TR valign="top" >
8223
 
8224
 
8225
 
 
8226
 
8227
 
8228
 
 
8229
 
8230
+ <TD align="right" class="Title" ><?php _e("Automatic mode","sociable")?></TD>
8231
 
8232
 
 
8233
 
8234
 
8235
 
 
8236
 
8237
 
8238
+ <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>
8239
 
 
8240
 
8241
 
8242
 
 
8243
 
8244
 
8245
 
8246
+ <TD align="left" class="Content">
8247
 
8248
 
8249
 
 
8250
 
8251
 
8252
 
 
8253
 
8254
+ <SPAN class="TXT"><?php _e("Do you want to automatically use Sociable on the locations specified?","sociable");?> </SPAN>
8255
 
8256
 
 
8257
 
8258
 
8259
 
 
8260
 
8261
 
8262
+ <BR/>
8263
 
 
8264
 
8265
 
8266
 
 
8267
 
8268
 
8269
 
8270
+ <SPAN class="sTXT">
8271
 
8272
 
8273
 
 
8274
 
8275
 
8276
 
 
8277
 
8278
+ <?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(); }
8279
 
8280
 
 
8281
 
8282
 
8283
 
 
8284
 
8285
 
8286
+ </SPAN>
8287
 
 
8288
 
8289
 
8290
 
 
8291
 
8292
 
8293
 
8294
+
8295
 
8296
 
8297
 
 
8298
 
8299
 
8300
 
 
8301
 
8302
+ </TD>
8303
 
8304
 
 
8305
 
8306
 
8307
 
 
8308
 
8309
 
8310
+ </TR>
8311
 
 
8312
 
8313
 
8314
 
 
8315
 
8316
 
8317
 
8318
+
8319
 
8320
 
8321
 
 
8322
 
8323
 
8324
 
 
8325
 
8326
+
8327
 
8328
 
 
8329
 
8330
 
8331
 
 
8332
 
8333
 
8334
+ </TR>
8335
 
 
8336
 
8337
 
8338
 
 
8339
 
8340
 
8341
 
8342
+ <TR valign="top" >
8343
 
8344
 
8345
 
 
8346
 
8347
 
8348
 
 
8349
 
8350
+ <TD align="right" class="Title" ><?php _e("Use styleSheet","sociable");?></TD>
8351
 
8352
 
 
8353
 
8354
 
8355
 
 
8356
 
8357
 
8358
+ <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>
8359
 
 
8360
 
8361
 
8362
 
 
8363
 
8364
 
8365
 
8366
+ <TD align="left" class="Content">
8367
 
8368
 
8369
 
 
8370
 
8371
 
8372
 
 
8373
 
8374
+ <SPAN class="TXT"><?php _e("Do you want to use the default stylesheet for sociable?","sociable");?></SPAN>
8375
 
8376
 
 
8377
 
8378
 
8379
 
 
8380
 
8381
 
8382
+ </TD>
8383
 
 
8384
 
8385
 
8386
 
 
8387
 
8388
 
8389
 
8390
+ </TR>
8391
 
 
8392
 
8393
 
 
8394
 
8395
 
8396
 
 
8397
 
8398
+ <TR valign="top" >
8399
 
8400
 
 
8401
 
 
8402
 
 
8403
 
8404
 
8405
 
8406
+ <TD align="right" class="Title" ><?php _e("Use your own icons","sociable");?></TD>
8407
 
8408
 
8409
 
 
8410
 
8411
 
8412
 
 
8413
 
8414
+ <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>
8415
 
8416
 
 
8417
 
8418
 
8419
 
 
8420
 
8421
 
8422
+ <TD align="left" class="Content">
8423
 
 
8424
 
8425
 
8426
 
 
8427
 
8428
 
8429
 
8430
+ <SPAN class="TXT"><?php _e("Do you want to use your own icons for sociable?","sociable");?></SPAN>
8431
 
8432
 
8433
 
 
8434
 
8435
 
8436
 
 
8437
 
8438
+ </TD>
8439
 
8440
 
 
8441
 
8442
 
8443
 
 
8444
 
8445
 
8446
+ </TR>
8447
 
 
8448
 
8449
 
8450
 
 
8451
 
8452
 
8453
 
8454
+ <TR valign="top" >
8455
 
8456
 
8457
 
 
8458
 
8459
 
8460
 
 
8461
 
8462
+ <TD align="right" class="Title" ><?php _e("Use images","sociable");?></TD>
8463
 
8464
 
 
8465
 
8466
 
8467
 
 
8468
 
8469
 
8470
+ <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>
8471
 
 
8472
 
8473
 
8474
 
 
8475
 
8476
 
8477
 
8478
+ <TD align="left" class="Content">
8479
 
8480
 
8481
 
 
8482
 
8483
 
8484
 
 
8485
 
8486
+ <SPAN class="TXT"><?php _e("Do you want to use the Sociable images? If not, the plugin will insert plain text links.","sociable");?></SPAN>
8487
 
8488
 
 
8489
 
8490
 
8491
 
 
8492
 
8493
 
8494
+ </TD>
8495
 
 
8496
 
8497
 
8498
 
 
8499
 
8500
 
8501
 
8502
+ </TR>
8503
 
8504
 
8505
 
 
8506
 
8507
 
8508
 
 
8509
 
8510
+
8511
 
8512
 
 
8513
 
8514
 
8515
 
 
8516
 
8517
 
8518
+
8519
 
 
8520
 
8521
 
8522
 
 
8523
 
8524
 
8525
 
8526
+ <TR valign="top" >
8527
 
8528
 
8529
 
 
8530
 
8531
 
8532
 
 
8533
 
8534
+ <TD align="right" class="Title" ><?php _e("Use alpha mask","sociable");?></TD>
8535
 
8536
 
 
8537
 
8538
 
8539
 
 
8540
 
8541
 
8542
+ <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>
8543
 
 
8544
 
8545
 
8546
 
 
8547
 
8548
 
8549
 
8550
+ <TD align="left" class="Content">
8551
 
8552
 
8553
 
 
8554
 
8555
 
8556
 
 
8557
 
8558
+ <SPAN class="TXT"><?php _e("Do you want to use alpha masks on the images (available only on the Original Sociable)?","sociable");?></SPAN>
8559
 
8560
 
 
8561
 
8562
 
8563
 
 
8564
 
8565
 
8566
+ </TD>
8567
 
 
8568
 
8569
 
8570
 
 
8571
 
8572
 
8573
 
8574
+ </TR>
8575
 
8576
 
8577
 
 
8578
 
8579
 
8580
 
 
8581
 
8582
+ <TR valign="top" >
8583
 
8584
 
 
8585
 
8586
 
8587
 
 
8588
 
8589
 
8590
+ <TD align="right" class="Title" ><?php _e("Bottom and Top","sociable");?></TD>
8591
 
 
8592
 
8593
 
8594
 
 
8595
 
8596
 
8597
 
8598
+ <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>
8599
 
8600
 
8601
 
 
8602
 
8603
 
8604
 
 
8605
 
8606
+ <TD align="left" class="Content">
8607
 
8608
 
 
8609
 
8610
 
8611
 
 
8612
 
8613
 
8614
+ <SPAN class="TXT"><?php _e("Do you want to use Sociable plugin to show up at the top and bottom?","sociable");?></SPAN>
8615
 
 
8616
 
8617
 
8618
 
 
8619
 
8620
 
8621
 
8622
+ </TD>
8623
 
8624
 
8625
 
 
8626
 
8627
 
8628
 
 
8629
 
8630
+ </TR>
8631
 
8632
 
 
8633
 
8634
 
8635
 
 
8636
 
8637
 
8638
+ <TR valign="top" >
8639
 
 
8640
 
8641
 
8642
 
 
8643
 
8644
 
8645
 
8646
+ <TD align="right" class="Title" ><?php _e("Open in new window","sociable");?></TD>
8647
 
8648
 
8649
 
 
8650
 
8651
 
8652
 
 
8653
 
8654
+ <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>
8655
 
8656
 
 
8657
 
8658
 
8659
 
 
8660
 
8661
 
8662
+ <TD align="left" class="Content">
8663
 
 
8664
 
8665
 
8666
 
 
8667
 
8668
 
8669
 
8670
+ <SPAN class="TXT"><?php _e("do you want to open the links in a new window?","sociable");?></SPAN>
8671
 
8672
 
8673
 
 
8674
 
8675
 
8676
 
 
8677
 
8678
+ </TD>
8679
 
8680
 
 
8681
 
8682
 
8683
 
 
8684
 
8685
 
8686
+ </TR>
8687
 
 
8688
 
8689
 
8690
 
 
8691
 
8692
 
8693
 
8694
+
8695
 
8696
 
8697
 
 
8698
 
8699
 
8700
 
 
8701
 
8702
+
8703
 
8704
 
 
8705
 
8706
 
8707
 
 
8708
 
8709
 
8710
+
8711
 
 
8712
 
8713
 
8714
 
 
8715
 
8716
 
8717
 
8718
+ </TABLE>
8719
 
8720
 
8721
 
 
8722
 
8723
 
8724
 
 
8725
 
8726
+
8727
 
8728
 
 
8729
 
8730
 
8731
 
 
8732
 
8733
 
8734
+ <BR/><BR/>
8735
 
 
8736
 
8737
 
8738
 
 
8739
 
8740
 
8741
 
8742
+ </DIV>
8743
 
8744
 
8745
 
 
8746
 
8747
 
8748
 
 
8749
 
8750
+ </DIV>
8751
 
8752
 
 
8753
 
8754
 
8755
 
 
8756
 
8757
 
8758
+ <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Active');" >
8759
 
 
8760
 
8761
 
8762
 
 
8763
 
8764
 
8765
 
8766
+ <TR>
8767
 
8768
 
8769
 
 
8770
 
8771
 
8772
 
 
8773
 
8774
+ <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>
8775
 
8776
 
 
8777
 
8778
 
8779
 
 
8780
 
8781
 
8782
+ </TR>
8783
 
 
8784
 
8785
 
8786
 
 
8787
 
8788
 
8789
 
8790
+ </TABLE>
8791
 
8792
 
8793
 
 
8794
 
8795
 
8796
 
 
8797
 
8798
+
8799
 
8800
 
 
8801
 
8802
 
8803
 
 
8804
 
8805
 
8806
+ <div style="display: block;" id="Active-Content" class="Content-Box">
8807
 
 
8808
 
8809
 
8810
 
 
8811
 
8812
 
8813
 
8814
+
8815
 
8816
 
8817
 
 
8818
 
8819
 
8820
 
 
8821
 
8822
+ <br>
8823
 
8824
 
 
8825
 
8826
 
8827
 
 
8828
 
8829
 
8830
+ <div align="center" style="width:100%;">
8831
 
 
8832
 
8833
 
8834
 
 
8835
 
8836
 
8837
 
8838
+ <table align="center" cellspacing="0" cellpadding="10" border="0" class="GeneralOptions-List">
8839
 
8840
 
8841
 
 
8842
 
8843
 
8844
 
 
8845
 
8846
+
8847
 
8848
 
 
8849
 
8850
 
8851
 
 
8852
 
8853
 
8854
+ <tbody><tr valign="top">
8855
 
 
8856
 
8857
 
8858
 
 
8859
 
8860
 
8861
 
8862
+ <td align="right" class="Title">Active Sociable Classic</td>
8863
 
8864
 
8865
 
 
8866
 
8867
 
8868
 
 
8869
 
8870
+ <td align="left" style="width:5px;">
8871
 
8872
 
 
8873
 
8874
 
8875
 
 
8876
 
8877
 
8878
+ <input <?php if(isset($sociable_options["active"])) echo "checked='checked'"?> type="checkbox" id="active" name="sociable_options[active]" /></td>
8879
 
 
8880
 
8881
 
8882
 
 
8883
 
8884
 
8885
 
8886
+ <td align="left" class="Content">
8887
 
8888
 
8889
 
 
8890
 
8891
 
8892
 
 
8893
 
8894
+ <span class="TXT">Check if you want Sociable Classic enable </span>
8895
 
8896
 
 
8897
 
8898
 
8899
 
 
8900
 
8901
 
8902
+ <br>
8903
 
 
8904
 
8905
 
8906
 
 
8907
 
8908
 
8909
 
8910
+
8911
 
8912
 
8913
 
 
8914
 
8915
 
8916
 
 
8917
 
8918
+ </td>
8919
 
8920
 
 
8921
 
8922
 
8923
 
 
8924
 
8925
 
8926
+ </tr>
8927
 
 
8928
 
8929
 
8930
 
 
8931
 
8932
 
8933
 
8934
+ </tbody></table>
8935
 
8936
 
8937
 
 
8938
 
8939
 
8940
 
 
8941
 
8942
+ <br><br>
8943
 
8944
 
 
8945
 
8946
 
8947
 
 
8948
 
8949
 
8950
+ </div>
8951
 
 
8952
 
8953
 
8954
 
 
8955
 
8956
 
8957
 
8958
+ </div>
8959
 
8960
 
8961
 
 
8962
 
8963
 
8964
 
 
8965
 
8966
+ <?php //<HR style="height:10px;background:#18305d;"/>?>
8967
 
8968
 
 
8969
 
8970
 
8971
 
 
8972
 
8973
 
8974
+ <?php settings_fields( 'sociable_options_group' ); ?>
8975
 
 
8976
 
8977
 
8978
 
 
8979
 
8980
 
8981
 
8982
+ </FORM>
8983
 
8984
 
8985
 
 
8986
 
8987
 
8988
 
 
8989
 
8990
+ <DIV class="Content-Box" >
8991
 
8992
 
 
8993
 
8994
 
8995
 
 
8996
 
8997
 
8998
+ <DIV id="ActionsBar">
8999
 
 
9000
 
9001
 
9002
 
 
9003
 
9004
 
9005
 
9006
+ <DIV class="SaveChanges" onClick="document.getElementById('form1').submit();" style="cursor:pointer;line-height:15px;"><br/>
9007
 
9008
 
9009
 
9010
+ <span style="margin:30px;"><?php _e("Save Changes","sociable");?></span>
9011
 
9012
+ </DIV>
9013
 
9014
 
 
9015
 
9016
 
9017
 
 
9018
 
9019
 
9020
+ <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/>
9021
 
 
9022
 
9023
 
9024
 
 
9025
 
9026
 
9027
 
9028
+ <span style="margin:40px;margin-left:35px;"><?php _e("Reset Sociable","sociable");?></span>
9029
 
9030
 
9031
 
 
9032
 
9033
 
9034
 
 
9035
 
9036
+ </DIV>
9037
 
9038
 
 
9039
 
9040
 
9041
 
 
9042
 
9043
 
9044
+ <DIV class="UninstallSociable" onClick="document.getElementById('sociable_remove_form').submit();" style="cursor:pointer;line-height:15px;font-size:12px;"><br/>
9045
 
 
9046
 
9047
 
9048
 
 
9049
 
9050
 
9051
 
9052
+ <span style="margin:25px;margin-left:20px;"><?php _e("Completly Uninstall Sociable","sociable");?></span>
9053
 
9054
 
9055
 
 
9056
 
9057
 
9058
 
 
9059
 
9060
+ </DIV>
9061
 
9062
 
 
9063
 
9064
 
9065
 
 
9066
 
9067
 
9068
+ </DIV>
9069
 
 
9070
 
9071
 
9072
 
 
9073
 
9074
 
9075
 
9076
+ </DIV>
9077
 
9078
 
9079
 
 
9080
 
9081
 
9082
 
 
9083
 
9084
+ <br>
9085
 
9086
 
 
9087
 
9088
 
9089
 
 
9090
 
9091
 
9092
+ <br>
9093
 
9094
+ <?php //do_settings_sections( 'sociable_options' ); ?>
9095
 
9096
 
9097
 
9098
+ <form id="sociable_reset_form" action="" method="POST">
9099
 
9100
 
9101
 
 
9102
 
9103
 
9104
 
 
9105
 
9106
+ <?php wp_nonce_field('sociable-reset'); ?>
9107
 
9108
 
 
9109
 
9110
 
9111
 
 
9112
 
9113
 
9114
+ <input type="hidden" id="sociable_reset" name="sociable_reset" value="1">
9115
 
 
9116
 
9117
 
9118
 
 
9119
 
9120
 
9121
 
9122
+ <?php //submit_button( __( 'Reset Sociable' ) , 'primary', 'sociable_reset', false ); ?>
9123
 
9124
 
9125
 
 
9126
 
9127
 
9128
 
 
9129
 
9130
+ </form>
9131
 
9132
 
 
9133
 
9134
 
9135
 
 
9136
 
9137
 
9138
+
9139
 
 
9140
 
9141
 
9142
 
 
9143
 
9144
 
9145
 
9146
+
9147
 
9148
 
9149
 
9150
+ </div>
9151
 
9152
 
9153
 
9154
+ <?php }
9155
 
9156
 
9157
 
 
9158
 
9159
 
9160
 
 
9161
 
9162
+
9163
 
9164
 
 
9165
 
9166
 
9167
 
 
9168
 
9169
 
9170
+ function add_meta_box( $page ){
9171
 
 
9172
 
9173
 
9174
 
 
9175
 
9176
 
9177
 
9178
+ add_meta_box( 'sociable_off' , __( 'Disable sociable' ), array( 'sociable_Admin_Options' , 'create_meta_box' ) , $page, 'side', 'default' );
9179
 
9180
 
9181
 
 
9182
 
9183
 
9184
 
 
9185
 
9186
+ }
9187
 
9188
 
 
9189
 
9190
 
9191
 
 
9192
 
9193
 
9194
+
9195
 
 
9196
 
9197
 
9198
 
 
9199
 
9200
 
9201
 
9202
+ function create_meta_box(){
9203
 
9204
 
9205
 
 
9206
 
9207
 
9208
 
 
9209
 
9210
+ global $post;
9211
 
9212
 
 
9213
 
9214
 
9215
 
 
9216
 
9217
 
9218
+ $sociableoff = false;
9219
 
 
9220
 
9221
 
9222
 
 
9223
 
9224
 
9225
 
9226
+ $checked = '';
9227
 
9228
 
9229
 
 
9230
 
9231
 
9232
 
 
9233
 
9234
+ if ( get_post_meta( $post->ID,'_sociableoff',true ) ) {
9235
 
9236
 
 
9237
 
9238
 
9239
 
 
9240
 
9241
 
9242
+ $checked = 'checked="checked"';
9243
 
 
9244
 
9245
 
9246
 
 
9247
 
9248
 
9249
 
9250
+ }
9251
 
9252
 
9253
 
 
9254
 
9255
 
9256
 
 
9257
 
9258
+ wp_nonce_field( 'update_sociable_off' , 'sociable_nonce' );
9259
 
9260
 
 
9261
 
9262
 
9263
 
 
9264
 
9265
 
9266
+ echo '<input type="checkbox" id="sociableoff" name="sociableoff" ' . $checked . ' /> <p class="description">' . __('Check This To Disable Sociable 2 On This Post Only.') . '</p>';
9267
 
 
9268
 
9269
 
9270
 
 
9271
 
9272
 
9273
 
9274
+
9275
 
9276
 
9277
 
 
9278
 
9279
 
9280
 
 
9281
 
9282
+ }
9283
 
9284
 
 
9285
 
9286
 
9287
 
 
9288
 
9289
 
9290
+
9291
 
 
9292
 
9293
 
9294
 
 
9295
 
9296
 
9297
 
9298
+ function save_post( $post_id ){
9299
 
9300
 
9301
 
 
9302
 
9303
 
9304
 
 
9305
 
9306
+
9307
 
9308
 
 
9309
 
9310
 
9311
 
 
9312
 
9313
 
9314
+ if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
9315
 
 
9316
 
9317
 
9318
 
 
9319
 
9320
 
9321
 
9322
+ return $post_id;
9323
 
9324
 
9325
 
9326
+ // verify this came from the our screen and with proper authorization,
9327
 
9328
 
9329
 
 
9330
 
9331
 
9332
 
 
9333
 
9334
+ // because save_post can be triggered at other times
9335
 
9336
 
 
9337
 
9338
 
9339
 
 
9340
 
9341
 
9342
+
9343
 
 
9344
 
9345
 
9346
 
 
9347
 
9348
 
9349
 
9350
+ $nonce = ( isset( $_POST['sociable_nonce'] ) ) ? $_POST['sociable_nonce'] : false ;
9351
 
9352
 
9353
 
9354
+ if ( ! $nonce || ! wp_verify_nonce( $nonce, 'update_sociable_off' ) )
9355
 
9356
 
9357
 
 
9358
 
9359
 
9360
 
 
9361
 
9362
+ return $post_id;
9363
 
9364
 
 
9365
 
9366
 
9367
 
 
9368
 
9369
 
9370
+ // Check permissions
9371
 
 
9372
 
9373
 
9374
 
 
9375
 
9376
 
9377
 
9378
+ if ( 'page' == $_POST['post_type'] ){
9379
 
9380
 
9381
 
 
9382
 
9383
 
9384
 
 
9385
 
9386
+ if ( !current_user_can( 'edit_page', $post_id ) )
9387
 
9388
 
 
9389
 
9390
 
9391
 
 
9392
 
9393
 
9394
+ return;
9395
 
 
9396
 
9397
 
9398
 
 
9399
 
9400
 
9401
 
9402
+ } else {
9403
 
9404
 
9405
 
 
9406
 
9407
 
9408
 
 
9409
 
9410
+ if ( !current_user_can( 'edit_post', $post_id ) )
9411
 
9412
 
 
9413
 
9414
 
9415
 
 
9416
 
9417
 
9418
+ return;
9419
 
 
9420
 
9421
 
9422
 
 
9423
 
9424
 
9425
 
9426
+ }
9427
 
9428
 
9429
 
 
9430
 
9431
 
9432
 
 
9433
 
9434
+
9435
 
9436
 
 
9437
 
9438
 
9439
 
 
9440
 
9441
 
9442
+ //Lets Do This
9443
 
 
9444
 
9445
 
9446
 
 
9447
 
9448
 
9449
 
9450
+ if( isset( $_POST['sociableoff'] ) ){
9451
 
9452
 
9453
 
 
9454
 
9455
 
9456
 
 
9457
 
9458
+ update_post_meta( $post_id, '_sociableoff' , $_POST['sociableoff'] );
9459
 
9460
 
 
9461
 
9462
 
9463
 
 
9464
 
9465
 
9466
+ } else {
9467
 
 
9468
 
9469
 
9470
 
 
9471
 
9472
 
9473
 
9474
+ delete_post_meta( $post_id, '_sociableoff' );
9475
 
9476
 
9477
 
 
9478
 
9479
 
9480
 
 
9481
 
9482
+ }
9483
 
9484
 
 
9485
 
9486
 
9487
 
 
9488
 
9489
 
9490
+
9491
 
 
9492
 
9493
 
9494
 
 
9495
 
9496
 
9497
 
9498
+ return $post_id;
9499
 
9500
 
9501
 
 
9502
 
9503
 
9504
 
 
9505
 
9506
+ }
9507
 
9508
 
 
9509
 
9510
 
9511
 
 
9512
 
9513
 
9514
+
9515
 
 
9516
 
9517
 
9518
 
 
9519
 
9520
 
9521
 
9522
+ /**
9523
 
9524
 
9525
 
 
9526
 
9527
 
9528
 
 
9529
 
9530
+ * This Function Runs Before The Options Are Printed Out.
9531
 
9532
 
 
9533
 
9534
 
9535
 
 
9536
 
9537
 
9538
+ */
9539
 
 
9540
 
9541
 
9542
 
 
9543
 
9544
 
9545
 
9546
+ function general_options_callback(){
9547
 
9548
 
9549
 
 
9550
 
9551
 
9552
 
 
9553
 
9554
+
9555
 
9556
 
 
9557
 
9558
 
9559
 
 
9560
 
9561
 
9562
+ return true;
9563
 
 
9564
 
9565
 
9566
 
 
9567
 
9568
 
9569
 
9570
+ }
9571
 
9572
 
9573
 
 
9574
 
9575
 
9576
 
 
9577
 
9578
+
9579
 
9580
 
 
9581
 
9582
 
9583
 
 
9584
 
9585
 
9586
+ /**
9587
 
 
9588
 
9589
 
9590
 
 
9591
 
9592
 
9593
 
9594
+ * This Function Runs Before The Location Options Are Echoed Out.
9595
 
9596
 
9597
 
 
9598
 
9599
 
9600
 
 
9601
 
9602
+ */
9603
 
9604
 
 
9605
 
9606
 
9607
 
 
9608
 
9609
 
9610
+ function location_options_callback(){
9611
 
 
9612
 
9613
 
9614
 
 
9615
 
9616
 
9617
 
9618
+ echo '<p>' . __( 'Please Select The Locations That You Wish To Allow The Sociable 2 Plugin To Insert The Links.' ) . '</p>';
9619
 
9620
 
9621
 
 
9622
 
9623
 
9624
 
 
9625
 
9626
+ }
9627
 
9628
 
 
9629
 
9630
 
9631
 
 
9632
 
9633
 
9634
+
9635
 
 
9636
 
9637
 
9638
 
 
9639
 
9640
 
9641
 
9642
+ /**
9643
 
9644
 
9645
 
 
9646
 
9647
 
9648
 
 
9649
 
9650
+ * Adds A Function For The add_settings_field(); function
9651
 
9652
 
 
9653
 
9654
 
9655
 
 
9656
 
9657
 
9658
+ *
9659
 
 
9660
 
9661
 
9662
 
 
9663
 
9664
 
9665
 
9666
+ * should be passed:
9667
 
9668
 
9669
 
 
9670
 
9671
 
9672
 
 
9673
 
9674
+ * $data = array(
9675
 
9676
 
 
9677
 
9678
 
9679
 
 
9680
 
9681
 
9682
+ * 'id' => 'field_id_and_name',
9683
 
 
9684
 
9685
 
9686
 
 
9687
 
9688
 
9689
 
9690
+ * 'description' => 'field Description Should Go Here, This is Not The Title, Rather The Description'
9691
 
9692
 
9693
 
 
9694
 
9695
 
9696
 
 
9697
 
9698
+ * );
9699
 
 
9700
 
 
9701
 
9702
 
9703
 
 
9704
 
9705
 
9706
+ */
9707
 
 
9708
 
9709
 
9710
 
 
9711
 
9712
 
9713
 
9714
+ function Checkbox( $data ){
9715
 
9716
 
9717
 
 
9718
 
9719
 
9720
 
 
9721
 
9722
+ global $sociable_options;
9723
 
9724
 
 
9725
 
9726
 
9727
 
 
9728
 
 
9729
 
9730
+
9731
 
9732
 
9733
 
 
9734
 
9735
 
9736
 
 
9737
 
9738
+ //Save The Locations As a seperate array option
9739
 
9740
 
 
9741
 
9742
 
9743
 
 
9744
 
9745
 
9746
+ if( isset( $data['locations'] ) ){
9747
 
 
9748
 
9749
 
9750
 
 
9751
 
9752
 
9753
 
9754
+ $name = 'sociable_options[locations][' . $data['id'] . ']';
9755
 
9756
 
9757
 
 
9758
 
9759
 
9760
 
 
9761
 
9762
+ $checked = ( isset( $sociable_options['locations'][$data['id']] ) ) ? 'checked="checked"' : '' ;
9763
 
9764
 
 
9765
 
9766
 
9767
 
 
9768
 
9769
 
9770
+ } else {
9771
 
 
9772
 
9773
 
9774
 
 
9775
 
9776
 
9777
 
9778
+ $name = 'sociable_options[' . $data['id'] . ']';
9779
 
9780
 
9781
 
 
9782
 
9783
 
9784
 
 
9785
 
9786
+ $checked = ( isset( $sociable_options[$data['id']] ) ) ? 'checked="checked"' : '' ;
9787
 
9788
 
 
9789
 
9790
 
9791
 
 
9792
 
9793
 
9794
+ }
9795
 
 
9796
 
9797
 
9798
 
 
9799
 
9800
 
9801
 
9802
+
9803
 
 
9804
 
9805
 
9806
 
 
9807
 
9808
 
9809
 
9811
 
9812
 
9813
 
9814
+ echo '<input ' . $checked . ' id="' . $data['id'] . '" name="' . $name . '" type="checkbox" /> <span class="description">' . $data['description'] . '</span>';
9815
 
 
9816
 
9817
 
9818
+ }
9819
 
 
9820
 
9821
 
9822
 
 
9823
 
9824
 
9825
 
9826
+
9827
 
9828
 
9829
 
 
9830
 
9831
 
9832
 
 
9833
 
9834
+ function TextInput( $data ){
9835
 
9836
 
 
9837
 
9838
 
9839
 
 
9840
 
9841
 
9842
+ global $sociable_options;
9843
 
 
9844
 
9845
 
9846
 
 
9847
 
9848
 
9849
 
9851
 
9852
 
9853
 
 
 
9854
 
9855
 
 
9856
 
9857
 
9858
+ $value = ( isset( $sociable_options[$data['id']] ) ) ? $sociable_options[$data['id']] : '';
9859
 
 
9860
 
9861
 
9862
 
 
9863
 
9864
 
9865
 
9866
+
9867
 
9868
 
9869
 
9870
+ 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>';
9871
 
9872
 
9873
 
9875
 
9876
 
9877
 
 
9878
 
9879
 
9880
 
 
9881
 
9882
+ }
9883
 
9884
 
 
9885
 
9886
 
9887
 
 
9888
 
9889
 
9890
+
9891
 
 
9892
 
9893
 
9894
 
 
9895
 
9896
 
9897
 
9898
+ function TextArea( $data ){
9899
 
9900
 
9901
 
 
9902
 
9903
 
9904
 
 
9905
 
9906
+ global $sociable_options;
9907
 
9908
 
 
9909
 
9910
 
9911
 
 
9912
 
9913
 
9914
+
9915
 
 
9916
 
9917
 
9918
 
 
9919
 
9920
 
9921
 
9922
+ $value = ( isset( $sociable_options[$data['id']] ) ) ? $sociable_options[$data['id']] : '';
9923
 
9924
 
9925
 
 
9926
 
9927
 
9928
 
 
9929
 
9930
+
9931
 
9932
 
 
9933
 
9934
+ echo '<textarea id="' . $data['id'] . '" name="sociable_options[' . $data['id'] . ']" >' . $value . '</textarea> <br /><span class="description">' . $data['description'] . '</span>';
9935
 
9936
 
 
9937
 
9938
+
9939
 
9940
 
 
9941
 
9942
 
9943
 
 
9944
 
9945
 
9946
+ }
9947
 
 
9948
 
9949
 
9950
 
 
9951
 
9952
 
9953
 
9954
+
9955
 
9956
 
9957
 
 
9958
 
9959
 
9960
 
 
9961
 
9962
+ function radio( $data ){
9963
 
9964
 
 
9965
 
9966
 
9967
 
 
9968
 
9969
 
9970
+ global $sociable_options;
9971
 
 
9972
 
9973
 
9974
 
 
9975
 
9976
 
9977
 
9979
 
9980
 
9981
 
 
 
9982
 
9983
 
 
 
9984
 
9985
 
9986
+ $cur_val = ( isset( $sociable_options[$data['id']] ) ) ? $sociable_options[$data['id']] : 0 ;
9987
 
9988
 
9989
 
 
9990
 
9991
 
9992
 
 
9993
 
9994
+
9995
 
9996
 
 
9997
 
9998
 
9999
 
 
10000
 
10001
 
10002
+ echo '<span class="description">' . $data['description'] . '</span><br />';
10003
 
 
10004
 
10005
 
10006
 
 
10007
 
10008
 
10009
 
10010
+ foreach( $data['options'] as $value => $option ){
10011
 
 
10012
 
 
10013
 
10014
 
10015
 
 
10016
 
10017
 
10018
+ $selected = ( $value == $cur_val ) ? 'checked="checked"' : '' ;
10019
 
 
10020
 
10021
 
10022
 
 
10023
 
10024
 
10025
 
10026
+ echo '<input type="radio" name="sociable_options[' . $data['id'] . ']" value="' . $value . '" ' . $selected . ' /> <span>' . $option . '</span><br />';
10027
 
10028
 
10029
 
 
10030
 
10031
 
10032
 
 
10033
 
10034
+ }
10035
 
 
10036
 
10037
 
10038
 
 
10039
 
10040
 
10041
 
10042
+ }
10043
 
10044
 
10045
 
 
10046
 
10047
 
10048
 
 
10049
 
10050
+
10051
 
10052
 
 
10053
 
10054
 
10055
 
 
10056
 
10057
 
10058
+
10059
 
 
10060
 
 
10061
 
 
10062
 
10063
 
10064
 
 
10065
 
10066
+ }
10067
 
10068
 
 
10069
 
10070
+ function add_ie7() {
10071
 
10072
 
 
10073
 
10074
+ echo'<!--[if lt IE 7]>
10075
 
10076
 
 
10077
 
10078
 
10079
 
 
10080
 
10081
 
10082
+ <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js"
10083
 
 
10084
 
10085
 
10086
 
 
10087
 
10088
 
10089
 
10090
+ type="text/javascript"></script>
10091
 
10092
 
10093
 
 
10094
 
10095
 
10096
 
 
10097
 
10098
+ <![endif]-->
10099
 
10100
 
 
10101
 
10102
 
10103
 
 
10104
 
10105
 
10106
+ <!--[if lt IE 8]>
10107
 
 
10108
 
10109
 
10110
 
 
10111
 
10112
 
10113
 
10114
+ <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js"
10115
 
10116
 
10117
 
 
10118
 
 
10119
 
 
10120
 
10121
 
10122
+ type="text/javascript"></script>
10123
 
 
10124
 
10125
 
10126
 
 
10127
 
10128
 
10129
 
10131
 
10132
 
10133
 
 
10134
 
10135
 
10136
 
 
10137
 
10138
+ <!--[if lt IE 9]>
10139
 
10140
 
 
10141
 
10142
 
10143
 
 
10144
 
10145
 
10146
+ <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
10147
 
 
10148
 
10149
 
10150
 
 
10151
 
10152
 
10153
 
10154
  <![endif]-->';
10155
 
10156
+
10157
+
10158
  }
10159
 
10160
 
10161
 
10162
+
10163
+
10164
+
10165
+
10166
  //add_action('admin_head', 'add_ie7' );
10167
 
10168
 
10169
 
10170
+
10171
+
10172
+
10173
+
10174
  ?>
includes/skyscraper_output.php CHANGED
@@ -1,109 +1,174 @@
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');
@@ -114,6 +179,7 @@ function skyscraper_html( $where = "" ){
114
 
115
  }
116
 
 
117
  (function(d, s, id) {
118
 
119
  var js, fjs = d.getElementsByTagName(s)[0];
@@ -126,17 +192,19 @@ function skyscraper_html( $where = "" ){
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()."
@@ -148,1103 +216,2131 @@ function skyscraper_html( $where = "" ){
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
  ?>
1
  <?php
 
2
  /*
 
3
  * The Output And Shortcode Functions For sociable
 
4
  */
5
 
 
6
 
 
7
 
8
+ /*
9
+ * Returns The Skyscraper Output For The Global $post Object Do Not
10
  */
11
 
12
+
13
+
14
  function diff_date($date1, $date2){
15
 
16
 
17
+
18
+
19
+
20
  $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));
21
 
22
+
23
+
24
  $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));
25
 
26
 
27
+
28
+
29
+
30
  $diff_time = ceil((($date2 - $date1)/60));
31
 
32
+
33
+
34
  return $diff_time;
35
+
36
  }
37
 
38
+
39
+
40
 
41
 
42
+
43
+
44
 
45
 
46
+
47
+
48
  function skyscraper_html( $where = "" ){
49
 
50
+
51
+
52
  global $skyscraper_options, $wp_query;
53
 
54
+
55
+
56
  if (!is_admin() || 1==1){
57
 
 
58
 
 
59
 
60
  // echo "<script type='text/javascript'>";
61
 
62
+
63
+
64
  // echo "var skyscraper_dir = '".SOCIABLE_HTTP_PATH."' ;";
65
 
66
+
67
+
68
  // echo "</script>";
69
 
70
+
71
+
72
  echo " var skyscraper_dir = document.createElement('input');
73
 
74
+
75
+
76
  skyscraper_dir.id = 'skyscraper_dir';
77
 
78
+
79
+
80
  skyscraper_dir.type = 'hidden';
81
 
82
+
83
+
84
  skyscraper_dir.value = '".SOCIABLE_HTTP_PATH."';
85
 
86
+
87
+
88
  document.body.appendChild(skyscraper_dir); ";
89
 
90
+
91
+
92
 
93
 
94
+
95
+
96
  $widget_width = str_replace("px", "", $skyscraper_options["widget_width"]);
97
 
98
+
99
+
100
 
101
 
102
+
103
+
104
  $widget_position = "null";
105
 
106
+
107
+
108
  if (isset($skyscraper_options["widget_position"])){
109
 
110
+
111
+
112
  $widget_position = 1;
113
 
114
+
115
+
116
  }
117
 
118
+
119
+
120
 
121
 
122
+
123
+
124
  $labels_color = $skyscraper_options["labels_color"];
125
 
126
+
127
+
128
  $text_size = str_replace("px", "", $skyscraper_options["text_size"]);
129
 
130
+
131
+
132
  $background_color = $skyscraper_options["background_color"];
133
 
134
+
135
+
136
 
137
 
138
+
139
+
140
  $addWhere = "";
141
 
142
+
143
+
144
 
145
 
146
+
147
+
148
  if ($where == ""){
149
 
150
+
151
+
152
  $addWhere = "var div = document.createElement('div');
153
 
154
+
155
+
156
  div.id = 'skyscraper';
157
 
158
+
159
+
160
  document.body.appendChild(div);";
161
 
162
+
163
+
164
  }
165
 
 
166
 
167
  $url_site= $_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
168
 
 
169
 
170
  $script = "
171
+
 
 
 
172
  if (!document.getElementById('fb-root')){
173
 
174
  var div = document.createElement('div');
179
 
180
  }
181
 
182
+
183
  (function(d, s, id) {
184
 
185
  var js, fjs = d.getElementsByTagName(s)[0];
192
 
193
  fjs.parentNode.insertBefore(js, fjs);
194
 
 
 
195
 
196
 
197
+ }(document, 'script', 'facebook-jssdk'));
198
 
 
199
 
200
+ ".$addWhere."
201
+
202
  jQuery(document).ready(function(){
203
 
204
+
205
  oPlugin.toolbarStart('skyscraper', ".$widget_position.",230,".$widget_width.",'".$background_color."','".$labels_color."',false,'#6A6A6A',".$text_size.",'#587cc8');
206
+
207
+
208
  ".get_share_node()."
209
 
210
  ".get_counters_node()."
216
  ".get_mentions_node()."
217
 
218
  ".get_follow_us_node()."
219
+
220
  ".get_rss_node()."
221
+
222
  oPlugin.CreateGoToTop('New_Id_12','Top','<img src=\"".SOCIABLE_HTTP_PATH."images/toolbar/gototop.png\" style=\"width:30px;\" />');
223
 
224
+
225
+
226
  oPlugin.CreateGoToHome('New_Id_13','Go Home','<img src=\"".SOCIABLE_HTTP_PATH."images/toolbar/gotohome.png\" style=\"width:30px;\" />');
227
 
228
+ });
229
+ jQuery('.title').css('font-size', '".$text_size."px');
230
+
231
  ";
232
 
233
  echo $script;
234
  }
 
235
  }
236
 
237
+
238
+
239
  function get_social_banner_node(){
240
+
241
 
242
+
243
 
244
+
245
  global $skyscraper_options;
246
 
247
+
248
+
249
  global $title_shared;
250
 
251
+
252
+
253
  global $url_shares;
254
+
255
 
256
+
257
  $social_banner_node = "";
258
+
259
 
260
+
261
 
262
+
263
  if(!empty($skyscraper_options["sociable_banner"])){
264
+
265
 
266
+
267
  $follow_us = sc_follow_links(1);
268
+
269
 
270
+
271
  $follow_buttons = $follow_us["follow_buttons"];
272
+
273
 
274
+
275
  $follow_us_count = $follow_us["count"];
276
+
277
 
278
+
279
  $width_banner = 200;
280
+
281
 
282
+
283
  $social_banner_node = " var url = '". addslashes(trim($url_shares))."';
284
+
285
  var title = '".addslashes(trim($title_shared)) ."';
286
+
287
  var counter = '<ul class=\"boxBanner_ul\">';
288
+
289
  counter += ' <li>';
290
+
291
  counter += ' <div class=\"fb-like\" data-send=\"false\" data-layout=\"box_count\" data-width=\"50\" data-href=\"'+url+'\" data-show-faces=\"false\"></div>';
292
+
293
 
294
+
295
  counter += ' </li>';
296
+
297
  counter += ' <li>';
298
+
299
  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>';
300
+
301
  counter += ' </li>';
302
+
303
  counter += ' <li>';
304
+
305
+ counter += '<iframe scrolling=\"no\" frameborder=\"0\" allowtransparency=\"true\" src=\"https://platform.twitter.com/widgets/tweet_button.html?_version=2&amp;count=vertical&amp;enableNewSizing=false&amp;id=twitter-widget-6&amp;lang=en&amp;original_referer='+url+'&amp;size=m&amp;text='+title+' <blogplay.com> &amp;url='+url+'\" class=\"twitter-share-button twitter-count-vertical\" style=\"width: 55px; height: 62px;\" title=\"Twitter Tweet Button\"></iframe>';
306
+
307
  counter += ' </li>';
308
+
309
  counter += '</ul>';";
310
+
311
 
312
+
313
  if ($follow_us_count > 0){
314
+
315
 
316
+
317
  $social_banner_node .= "
318
+
319
  counter += '<ul class=\"boxBanner_ul_margin\">';
320
+
321
  counter += '<li>';
322
+
323
  counter += '</li>';
324
+
325
  counter += '</ul>';";
326
+
327
 
328
+
329
  $social_banner_node .= " counter += '".$follow_buttons."'; ";
330
+
331
 
332
+
333
  if ($follow_us_count > 1){
334
+
335
 
336
+
337
  $width_banner = $width_banner + (70 * $follow_us_count);
338
+
339
  }
340
+
341
  else{
342
+
343
  $width_banner = $width_banner + (90 * $follow_us_count);
344
+
345
  }
346
+
347
 
348
+
349
 
350
+
351
  }
352
+
353
 
354
+
355
  $label_text = trim($skyscraper_options["sociable_banner_text"]);
356
+
357
 
358
+
359
  if (strlen($label_text) > 35){
360
+
361
  // $label_text = substr($label_text,0,35);
362
+
363
  }
364
+
365
  $label_text = addslashes($label_text);
366
+
367
 
368
+
369
  $social_banner_node .= "oPlugin.CreateNode('New_Id_14','".$label_text."', '', counter,'banner',80,".$width_banner.");";
370
+
371
  $timer = ($skyscraper_options["sociable_banner_timer"] * 1000);
372
+
373
 
374
+
375
  $colorBack = $skyscraper_options["sociable_banner_colorBack"];
376
+
377
  $colorFont = $skyscraper_options["sociable_banner_colorFont"];
378
+
379
  $colorLabel = $skyscraper_options["sociable_banner_colorLabel"];
380
+
381
  $fontSize = $skyscraper_options["sociable_banner_fontSize"];
382
+
383
 
384
+
385
  $social_banner_node .="setTimeout('showBanner(".$timer.",\"".$colorBack."\", \"".$colorLabel."\", \"".$colorFont."\", \"".$fontSize."\")', ".$timer.");";
386
+
387
 
388
+
389
  }
390
+
391
 
392
+
393
  return $social_banner_node;
394
+
395
  }
396
 
397
+
398
+
399
  function get_rss_node(){
400
 
401
+
402
+
403
  $rss_node = "";
404
 
405
+
406
+
407
  $latest_posts = "";
408
 
409
+
410
+
411
  global $skyscraper_options;
412
 
413
+
414
+
415
 
416
 
417
+
418
+
419
  $version = phpversion();
420
 
421
+
422
+
423
 
424
 
425
+
426
+
427
  if ( substr($version,0,1) == 5 && isset($skyscraper_options["rss_feed"]) && $skyscraper_options["rss_feed"]!="http://"){
428
 
429
+
430
+
431
 
432
 
433
+
434
+
435
  include("rss_php.php");
436
 
437
+
438
+
439
 
440
 
441
+
442
+
443
  $rss = new rss_php;
444
 
445
+
446
+
447
  $rss->load($skyscraper_options["rss_feed"]);
448
 
449
+
450
+
451
  $items = $rss->getItems();
452
 
453
+
454
+
455
 
456
 
457
+
458
+
459
  if (!empty($skyscraper_options["rss_feed"])){
460
 
461
+
462
+
463
 
464
 
465
+
466
+
467
  if (count($items) > 0){
468
 
469
+
470
+
471
 
472
 
473
+
474
+
475
  $cant = 0;
476
 
477
+
478
+
479
  foreach($items as $item){
480
 
481
+
482
+
483
 
484
 
485
+
486
+
487
  if ($cant <= $skyscraper_options["num_rss"]){
488
 
489
+
490
+
491
 
492
 
493
+
494
+
495
  $title="";
496
 
497
+
498
+
499
  if (isset($item["title"])){
500
 
501
+
502
+
503
  $title = addslashes($item["title"]);
504
 
505
+
506
+
507
  }
508
 
509
+
510
+
511
  $description="";
512
 
513
+
514
+
515
  if (isset($item["description"])){
516
 
 
517
 
 
518
 
519
+ $description = addslashes($item["description"]);
520
 
 
521
 
 
522
 
523
  }
524
 
 
525
 
 
526
 
527
+ $guid="";
528
+
529
+
530
+
531
+ if (isset($item["link"])){
532
+
533
+
534
+
535
+ $guid = addslashes($item["link"]);
536
+
537
+
538
+
539
+ }
540
+
541
+
542
+
543
+ $pubDate="";
544
+
545
+
546
+
547
+ if (isset($item["pubDate"])){
548
+
549
+
550
+
551
+ $pubDate = ago(strtotime($item["pubDate"]));
552
+
553
+
554
 
555
  }
556
 
557
+
558
+
559
 
560
 
561
+
562
+
563
  $latest_posts .= "['".$title."','','".$description."','".$guid."','".$pubDate."'],";
564
 
565
+
566
+
567
  }
568
 
569
+
570
+
571
  else{
572
 
573
+
574
+
575
  break;
576
 
577
+
578
+
579
  }
580
 
581
+
582
+
583
  $cant++;
584
 
585
+
586
+
587
  }
588
 
589
+
590
+
591
  $latest_posts = trim($latest_posts, ",");
592
 
593
+
594
+
595
  }
596
 
597
+
598
+
599
  }
600
 
601
+
602
+
603
  }
604
 
605
+
606
+
607
 
608
 
609
+
610
+
611
  if ($latest_posts != ""){
612
 
613
+
614
+
615
 
616
 
617
+
618
+
619
  $rss_node = "var LatestBlogPostContent = [
620
 
621
+
622
+
623
  ".$latest_posts."
624
 
625
+
626
+
627
  ];
628
 
629
+
630
+
631
  oPlugin.CreateNode('New_Id_5','Posts','',LatestBlogPostContent,'Notice',220,460);";
632
 
633
+
634
+
635
  }
636
 
637
+
638
+
639
  return $rss_node;
640
 
641
+
642
+
643
  }
644
 
645
+
646
+
647
  function get_latest_node(){
648
 
649
+
650
+
651
  $latest_node = "";
652
 
653
+
654
+
655
  global $skyscraper_options;
656
 
657
+
658
+
659
 
660
 
661
+
662
+
663
  if ( isset($skyscraper_options["twitter_username"])){
664
 
665
+
666
+
667
 
668
 
669
+
670
+
671
  $latest_tweets = get_option_tweets("skyscraper_latest");
672
 
673
+
674
+
675
  if ($skyscraper_options["twitter_username"] != ""){
676
 
677
+
678
+
679
 
680
 
681
+
682
+
683
  if ($latest_tweets != ""){
684
 
685
+
686
+
687
 
688
 
689
+
690
+
691
  $latest_node = "
692
+
693
 
694
+
695
  var LastestTwittsContent = [
696
 
697
+
698
+
699
  ".$latest_tweets."
700
 
701
+
702
+
703
  ];
704
 
705
+
706
+
707
 
708
 
709
+
710
+
711
  oPlugin.CreateNode('New_Id_3','Latest','',LastestTwittsContent,'Notice',220,460);";
712
 
713
+
714
+
715
  }
716
 
717
+
718
+
719
  }
720
 
721
+
722
+
723
  }
724
 
725
+
726
+
727
  return $latest_node;
728
 
729
+
730
+
731
  }
732
 
733
+
734
+
735
  function get_mentions_node(){
736
 
737
+
738
+
739
  $mentions_node = "";
740
 
741
+
742
+
743
 
744
 
745
+
746
+
747
  global $skyscraper_options;
748
 
749
+
750
+
751
 
752
 
753
+
754
+
755
  if ( isset($skyscraper_options["twitter_username"])){
756
 
757
+
758
+
759
 
760
 
761
+
762
+
763
  $mentions_tweets = get_option_tweets("skyscraper_mentions");
764
 
765
+
766
+
767
  if ($skyscraper_options["twitter_username"] != ""){
768
 
769
+
770
+
771
 
772
 
773
+
774
+
775
  if ($mentions_tweets != "" ){
776
 
777
+
778
+
779
 
780
 
781
+
782
+
783
  $mentions_node = "var TweetsMentionsContent = [
784
 
785
+
786
+
787
  ".$mentions_tweets."
788
 
789
+
790
+
791
  ];
792
 
793
+
794
+
795
  oPlugin.CreateNode('New_Id_4','Mentions','',TweetsMentionsContent,'Notice',220,460);";
796
 
797
+
798
+
799
  }
800
 
801
+
802
+
803
  }
804
 
805
+
806
+
807
  }
808
 
809
+
810
+
811
  return $mentions_node;
812
 
813
+
814
+
815
  }
816
 
817
+
818
+
819
  function get_counters_node(){
820
 
821
+
822
+
823
 
824
 
825
+
826
+
827
  global $skyscraper_options;
828
 
829
+
830
+
831
  global $title_shared;
832
 
833
+
834
+
835
  global $url_shares;
836
 
837
+
838
+
839
  $counters_node = "";
840
 
841
 
842
+
843
+
844
+
845
  if ((!empty($skyscraper_options["counters"]["check"]))){
846
 
847
+
848
+
849
 
850
 
851
+
852
+
853
  $counters_node = " var url = '". addslashes(trim($url_shares))."';
854
 
855
+
856
+
857
  var title = '".addslashes(trim($title_shared)) ."'; ";
858
+
859
 
860
+
861
  $counters_node .= "
862
+
863
  var counter = '<ul class= \"boxCounters_ul\">';
864
+
865
 
866
+
867
  counter += '<li style=\"margin-left:2px\"><fb:like send=\"false\" layout=\"box_count\" show_faces=\"false\" font=\"\"></fb:like></li>';
868
 
869
+
870
+
871
  counter +=' <li style=\"margin-left:0px\"><iframe width=\"100%\" scrolling=\"no\" frameborder=\"0\" title=\"+1\" vspace=\"0\" tabindex=\"-1\" style=\"position: static; left: 0pt; top: 0pt; width: 60px; margin: 0px; border-style: none; visibility: visible; height: 60px;\" src=\"https://plusone.google.com/_/+1/fastbutton?url='+url+'&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>';
872
+
873
+
874
+ counter += '<li style=\"margin-left:-2px\"><iframe scrolling=\"no\" frameborder=\"0\" allowtransparency=\"true\" src=\"https://platform.twitter.com/widgets/tweet_button.html?_version=2&amp;count=vertical&amp;enableNewSizing=false&amp;id=twitter-widget-6&amp;lang=en&amp;original_referer='+url+'&amp;size=m&amp;text='+title+' (blogplay.com)&amp;url='+url+'\" class=\"twitter-share-button twitter-count-vertical\" style=\"width: 55px; height: 62px;\" title=\"Twitter Tweet Button\"></iframe></li>';
875
+
876
+
877
 
878
  counter += '</ul>';";
879
+
880
  }
881
 
882
 
883
 
884
+
885
+
886
+
887
+
888
  $counters_node .= "oPlugin.CreateSimpleNode('New_Id_2','Counters<br/>', counter ,".$skyscraper_options["counters"]["folded"].");
889
+
890
  ";
891
 
892
+
893
+
894
  return $counters_node;
895
 
896
+
897
+
898
  }
899
 
900
+
901
+
902
  function get_share_node(){
903
 
 
904
 
 
905
 
906
+ global $skyscraper_options;
907
 
908
  $share_node = "";
909
 
 
 
910
  if (!empty($skyscraper_options["share"]["check"])){
911
 
912
+
913
+
914
  $share_buttons = share_links();
915
 
916
+
917
+
918
  $share_node = "oPlugin.CreateSimpleNode('New_Id_1','Share', '".$share_buttons."',".$skyscraper_options["share"]["folded"].");";
919
 
 
920
 
 
921
 
922
+ }
923
+
924
  return $share_node;
925
 
926
  }
927
 
928
+
929
+
930
  function get_follow_us_node(){
931
 
932
+
933
+
934
  $follow_us_node = "";
935
 
936
+
937
+
938
  global $skyscraper_options;
939
 
940
+
941
+
942
 
943
 
944
+
945
+
946
  if (isset($skyscraper_options["follow_us"])){
947
 
 
948
 
949
  $follow_info = empty_accounts();
950
 
 
 
951
  if ( $follow_info["active"] > 0 && ($follow_info["empty"] < $follow_info["active"])){
952
 
953
  $follow_buttons = sc_follow_links();
954
 
955
  $follow_us_node = "oPlugin.CreateNode('New_Id_6','Follow', '', '".$follow_buttons["follow_buttons"]."','Plano',40,140)";
956
+
957
 
958
  }
 
959
  }
960
 
961
+
962
  return $follow_us_node;
963
 
964
  }
965
 
966
+
967
+
968
  function empty_accounts(){
969
 
970
+
971
+
972
  $empty = 0;
973
 
974
+
975
+
976
  $active = 0;
977
 
978
+
979
+
980
  global $skyscraper_options;
981
 
982
+
983
+
984
 
985
 
986
+
987
+
988
  foreach($skyscraper_options["follow_us"] as $follow_us){
989
 
990
+
991
+
992
 
993
 
994
+
995
+
996
  if (empty($follow_us["account"])){
997
 
 
998
 
 
999
 
1000
+ $empty++;
1001
 
 
1002
 
 
1003
 
1004
  }
1005
 
 
1006
 
 
1007
 
1008
+
1009
+
1010
+
1011
+
1012
+ if (isset($follow_us["active"])){
1013
+
1014
+
1015
+
1016
+ $active++;
1017
+
1018
+
1019
+
1020
+ }
1021
+
1022
+
1023
+
1024
+ }
1025
+
1026
+
1027
+
1028
+
1029
+
1030
+
1031
+
1032
+ return array("empty" =>$empty, "active"=>$active);
1033
+
1034
+
1035
 
1036
  }
1037
 
1038
+
1039
+
1040
  function sc_follow_links($banner = 0){
1041
 
1042
+
1043
+
1044
  global $skyscraper_options;
1045
 
1046
+
1047
+
1048
  $follow_buttons = "<ul class=\'boxBanner_ul\'>";
1049
+
1050
  $count_follow = 0;
1051
+
1052
 
1053
+
1054
  foreach($skyscraper_options["follow_us"] as $follow_us){
1055
 
1056
+
1057
+
1058
  $follow_us["account"]= trim($follow_us["account"]);
1059
 
1060
+
1061
+
1062
  if (!empty($follow_us["active"]) && !empty($follow_us["account"]) ){
1063
 
1064
+
1065
+
1066
  $follow_us["account"] = str_replace("http://", "", $follow_us["account"]);
1067
 
1068
+
1069
+
1070
  $follow_us["account"] = "http://".$follow_us["account"];
1071
 
1072
+
1073
+
1074
  if ($banner==1){
1075
+
1076
 
1077
+
1078
  $follow_us["logo"] = "48".$follow_us["logo"];
1079
+
1080
  }
1081
 
1082
+
1083
+
1084
  $follow_buttons .= "<li><a target=\'_blank\' rel=\'nofollow\' href=\'".$follow_us["account"]."\'><img src=\'".SOCIABLE_HTTP_PATH."images/toolbar/".$follow_us["logo"]."\' /></a></li>";
1085
+
1086
 
1087
+
1088
  $count_follow++;
1089
+
1090
  }
1091
 
1092
+
1093
+
1094
  }
1095
+
1096
 
1097
+
1098
  $follow_buttons .= "</ul>";
1099
 
1100
+
1101
+
1102
  $return = array();
1103
+
1104
  $return["count"] = $count_follow;
1105
+
1106
  $return["follow_buttons"] = $follow_buttons;
1107
+
1108
 
1109
+
1110
  return $return;
1111
+
1112
  }
1113
 
1114
+
1115
+
1116
  function share_links(){
1117
 
1118
+
1119
 
1120
  $url = addslashes(get_bloginfo('wpurl'));
1121
 
1122
+
1123
+
1124
  $blogname = addslashes(get_bloginfo('name'));
1125
 
1126
+
1127
+
1128
  global $title_shared;
1129
 
1130
+
1131
+
1132
  global $url_shares;
1133
+
1134
 
1135
 
1136
+
1137
+
1138
  $page = trim(addslashes($url_shares));
1139
 
1140
+
1141
+
1142
  $permalink = trim(addslashes($url_shares));
1143
 
1144
+
1145
+
1146
  $title = trim(addslashes($title_shared));
1147
 
1148
+
1149
+
1150
 
1151
 
1152
+
1153
+
1154
  $share_links = array();
1155
 
1156
+
1157
+
1158
  $share_links = array(
1159
 
1160
 
1161
+
1162
+
1163
+
1164
  "twitter" => array('favicon' => 't.png',
1165
 
 
1166
 
1167
+
1168
+ 'url' => 'http://twitter.com/intent/tweet?text='.urlencode($title).' - '.urlencode($url).' '.urlencode("{blogplay.com}").' ',
1169
+
1170
+
1171
+
1172
+ 'title' => "Share on Twitter",
1173
+ 'blank' => '_blank' ),
1174
+
1175
+
1176
 
1177
 
1178
 
1179
+
1180
+
1181
  "facebook" => array('favicon' => 'f.png',
1182
 
1183
+
1184
+
1185
  'url' => 'http://www.facebook.com/share.php?u='.$permalink.'&amp;t='.$title.'',
1186
 
1187
+
1188
+
1189
+ 'title' => "Share on Facebook",
1190
+ 'blank' => '_blank' ),
1191
+
1192
+
1193
 
1194
 
1195
 
1196
+
1197
+
1198
  "google" => array('favicon' => 'g.png',
1199
 
1200
+
1201
+
1202
  'url' => 'https://mail.google.com/mail/?view=cm&fs=1&to&su='.$title.'&body='.$permalink.'&ui=2&tf=1&shva=1',
1203
 
1204
+
1205
+
1206
+ 'title' => "Share on Gmail",
1207
+ 'blank' => '_blank' ),
1208
+
1209
+
1210
 
1211
 
1212
 
1213
+
1214
+
1215
  "inbound" => array('favicon' => 'inbound.png',
1216
 
1217
+
1218
+
1219
  'url' => 'http://inbound.org/?url='.$permalink.'&title='.$title.'',
1220
 
1221
+
1222
+
1223
+ 'title' => "Share on inbound.org",
1224
+ 'blank' => '_blank' ),
1225
+
1226
+
1227
 
1228
 
1229
 
1230
+
1231
+
1232
  "stumble" => array('favicon' => 's.png',
1233
 
1234
+
1235
+
1236
  'url' => 'http://www.stumbleupon.com/submit?url='.$permalink.'&title='.$title.'',
1237
 
1238
+
1239
+
1240
+ 'title' => "Share on StumpleUpon",
1241
+ 'blank' => '_blank' ),
1242
+
1243
+
1244
 
1245
 
1246
 
1247
+
1248
+
1249
  "delicious" => array('favicon' => 'o.png',
1250
 
1251
+
1252
+
1253
  'url' => 'http://delicious.com/post?url='.$permalink.'&amp;title='.$title.'&amp;notes=EXCERPT',
1254
 
1255
+
1256
+
1257
+ "title" => "Share on delicious",
1258
+ 'blank' => '_blank' ),
1259
+
1260
+
1261
 
1262
 
1263
 
1264
+
1265
+
1266
  "reader" => array('favicon' => 'n.png',
1267
 
1268
+
1269
+
1270
  'url' => 'http://www.google.com/reader/link?url='.$permalink.'&amp;title='.$title.'&amp;srcURL='.$permalink.'&amp;srcTitle='.$blogname.'',
1271
 
1272
+
1273
+
1274
+ "title" => "Share on Google Reader",
1275
+ 'blank' => '_blank' ),
1276
+
1277
+
1278
 
1279
 
1280
 
1281
+
1282
+
1283
  "linkedin" => array('favicon' => 'i.png',
1284
 
1285
+
1286
+
1287
  'url' => 'http://www.linkedin.com/shareArticle?mini=true&amp;url='.$permalink.'&amp;title='.$title.'&amp;source='.$blogname.'&amp;summary=EXCERPT',
1288
 
1289
+
1290
+
1291
+ "title" => "Share on LinkedIn",
1292
+ 'blank' => '_blank' ),
1293
 
1294
 
1295
+ "pinterest" => array('favicon' => 'pinterest.png',
1296
+
1297
+
1298
+
1299
+ 'url' => 'http://pinterest.com/pin/create/button/?url='.$permalink.'',
1300
+
1301
+
1302
+
1303
+ "title" => "Share on Pinterest",
1304
+ 'blank' => '_blank' ),
1305
+
1306
+ "favorites" => array('favicon' => 'fv.png',
1307
+ 'url' => 'javascript:AddToFavorites();',
1308
+ 'title' => "Add to favorites - doesn\"t work in Chrome",
1309
+ 'blank' => '_self' )
1310
+
1311
 
1312
  );
1313
 
1314
+
1315
+
1316
+
1317
+
1318
+
1319
 
1320
  $share_buttons = "";
1321
 
 
1322
 
1323
  foreach($share_links as $link){
1324
+
1325
 
1326
+ $share_buttons .= "<a target=\'".$link["blank"]."\' rel=\'nofollow\' href=\'".addslashes($link["url"])."\' title=\'".addslashes($link["title"])."\'><img src=\'".SOCIABLE_HTTP_PATH."images/toolbar/".addslashes($link["favicon"])."\' /></a>";
1327
+
1328
 
 
1329
 
1330
  }
1331
 
 
1332
 
1333
  return $share_buttons;
 
1334
  }
1335
 
1336
+
1337
+
1338
  /*
1339
 
1340
+
1341
+
1342
  * Template Tag To Echo The Sociable 2 HTML
1343
 
1344
+
1345
+
1346
  */
1347
 
1348
+
1349
+
1350
  function do_skyscraper(){
1351
 
1352
+
1353
+
1354
  echo skyscraper_html();
1355
 
1356
+
1357
+
1358
  }
1359
 
1360
+
1361
+
1362
  /*
1363
 
1364
+
1365
+
1366
  * Sociable 2 Shortcode
1367
 
1368
+
1369
+
1370
  */
1371
 
1372
+
1373
+
1374
  function skyscraper_shortcode(){
1375
 
1376
+
1377
+
1378
  return skyscraper_html();
1379
 
1380
+
1381
+
1382
  }
1383
 
1384
+
1385
+
1386
  function auto_skyscraper($content, $admin = false){
1387
 
1388
+
1389
+
1390
  global $skyscraper_options;
1391
 
1392
 
1393
+
1394
+
1395
+
1396
  if ($admin){
1397
 
1398
+
1399
+
1400
  $content = skyscraper_html();
1401
 
1402
+
1403
+
1404
  return $content;
1405
 
1406
+
1407
+
1408
  }
1409
 
1410
+
1411
+
1412
 
1413
 
1414
+
1415
+
1416
  if( ! isset( $skyscraper_options['active'] )){
1417
 
1418
+
1419
+
1420
  $content = "";
1421
 
1422
+
1423
+
1424
  return $content;
1425
 
1426
+
1427
+
1428
  }
1429
 
 
 
 
 
1430
 
1431
 
1432
+
1433
+
1434
  if( ! isset( $skyscraper_options['locations'] ) || ! is_array( $skyscraper_options['locations'] ) || empty( $skyscraper_options['locations'] ) ){
1435
 
1436
+
1437
+
1438
 
1439
 
1440
+
1441
+
1442
  $content = "";
1443
 
1444
+
1445
+
1446
  } else {
1447
 
1448
+
1449
+
1450
 
1451
 
1452
+
1453
+
1454
  $locations = $skyscraper_options['locations'];
1455
 
1456
+
1457
+
1458
  }
1459
 
1460
+
1461
+
1462
  /*
1463
 
1464
+
1465
+
1466
  * Determine if we are supposed to be displaying the output here.
1467
 
1468
+
1469
+
1470
  */
1471
 
1472
+
1473
+
1474
  $display = false;
1475
 
1476
+
1477
+
1478
 
1479
 
1480
+
1481
+
1482
  /*
1483
 
1484
+
1485
+
1486
  * is_single is a unique case it still returning true
1487
 
1488
+
1489
+
1490
  */
1491
 
1492
+
1493
+
1494
 
1495
 
1496
+
1497
+
1498
  //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.
1499
 
1500
+
1501
+
1502
  foreach( $locations as $location => $val ){
1503
 
1504
+
1505
+
1506
 
1507
 
1508
+
1509
+
1510
  //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
1511
 
1512
+
1513
+
1514
  if( $location == 'is_single' ){
1515
 
1516
+
1517
+
1518
  //If we are not in a post, lets ignore this one for now
1519
 
1520
 
1521
 
1522
+
1523
+
1524
+
1525
+
1526
  if( is_single() && get_post_type() == 'post' ){
1527
 
1528
+
1529
+
1530
  $display = true;
1531
 
1532
+
1533
+
1534
  break;
1535
 
1536
+
1537
+
1538
  } else {
1539
 
1540
+
1541
+
1542
  continue; // So not to trigger is_single later in this loop, but still be allowed to handle others
1543
 
1544
+
1545
+
1546
  }
1547
 
1548
+
1549
+
1550
 
1551
 
1552
+
1553
+
1554
  } 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.
1555
 
1556
+
1557
+
1558
 
1559
 
1560
+
1561
+
1562
  //Single Custom Post Type
1563
 
1564
+
1565
+
1566
  $post_type = str_replace( 'is_single_posttype_' , '' , $location );
1567
 
1568
+
1569
+
1570
  if( is_single() && get_post_type() == $post_type ){
1571
 
1572
+
1573
+
1574
  $display = true;
1575
 
1576
+
1577
+
1578
  break;
1579
 
1580
+
1581
+
1582
  }
1583
 
1584
+
1585
+
1586
 
1587
 
1588
+
1589
+
1590
  } elseif( strpos( $location , 'is_posttype_archive_' ) === 0 ){
1591
 
1592
+
1593
+
1594
 
1595
 
1596
+
1597
+
1598
  //Custom Post Type Archive
1599
 
1600
+
1601
+
1602
  $post_type = str_replace( 'is_posttype_archive_' , '' , $location );
1603
 
1604
+
1605
+
1606
  if( is_post_type_archive( $post_type ) ){
1607
 
1608
+
1609
+
1610
  $display = true;
1611
 
1612
+
1613
+
1614
  break;
1615
 
1616
+
1617
+
1618
  }
1619
 
1620
+
1621
+
1622
 
1623
 
1624
+
1625
+
1626
  } elseif( strpos( $location , 'is_taxonomy_archive_' ) === 0 ) {
1627
 
1628
+
1629
+
1630
 
1631
 
1632
+
1633
+
1634
  //Taxonomy Archive
1635
 
1636
+
1637
+
1638
  $taxonomy = str_replace( 'is_taxonomy_archive_' , '' , $location );
1639
 
1640
+
1641
+
1642
  if( is_tax( $taxonomy ) ){
1643
 
1644
+
1645
+
1646
  $display = true;
1647
 
1648
+
1649
+
1650
  break;
1651
 
1652
+
1653
+
1654
  }
1655
 
1656
+
1657
+
1658
 
1659
 
1660
+
1661
+
1662
  } elseif( function_exists( $location ) ) {
1663
 
1664
+
1665
+
1666
 
1667
 
1668
+
1669
+
1670
  //Standard conditional tag, these will return BOOL
1671
 
1672
+
1673
+
1674
  if( call_user_func( $location ) === true ){
1675
 
1676
+
1677
+
1678
  $display = true;
1679
 
1680
+
1681
+
1682
  break;
1683
 
1684
+
1685
+
1686
  }
1687
 
1688
+
1689
+
1690
 
1691
 
1692
+
1693
+
1694
  } else {
1695
 
1696
+
1697
+
1698
  continue;
1699
 
1700
+
1701
+
1702
  }
1703
 
1704
+
1705
+
1706
 
1707
 
1708
+
1709
+
1710
 
1711
 
1712
+
1713
+
1714
  }
1715
 
1716
+
1717
+
1718
 
1719
 
1720
+
1721
+
1722
  //If We have passed all the checks and are looking in the right place lets do this thang
1723
 
1724
+
1725
+
1726
  if( isset( $skyscraper_options['automatic_mode'] ) && $display === true ){
1727
 
1728
+
1729
+
1730
  if (isset($skyscraper_options["topandbottom"])){
1731
 
1732
+
1733
+
1734
  $content = skyscraper_html();
1735
 
1736
+
1737
+
1738
  }else{
1739
 
1740
+
1741
+
1742
  $content = skyscraper_html();
1743
 
1744
+
1745
+
1746
  }
1747
 
1748
+
1749
+
1750
  }
1751
 
1752
+
1753
+
1754
  else{
1755
 
1756
+
1757
+
1758
  $content = skyscraper_html();
1759
 
1760
+
1761
+
1762
  }
1763
 
1764
+
1765
+
1766
 
1767
 
1768
+
1769
+
1770
 
1771
 
1772
+
1773
+
1774
 
1775
 
1776
+
1777
+
1778
  return $content;
1779
 
1780
+
1781
+
1782
  }
1783
 
1784
+
1785
+
1786
  function get_tweets_username($username_complete){
1787
 
1788
+
1789
+
1790
 
1791
 
1792
+
1793
+
1794
  if (function_exists('curl_init')) {
1795
 
1796
+
1797
+
1798
 
1799
 
1800
+
1801
+
1802
  // last tweets
1803
 
1804
+
1805
+
1806
  $username = str_replace("@", "", $username_complete);
1807
 
1808
+
1809
+
1810
  $url = "https://api.twitter.com/1/statuses/user_timeline/".$username.".json";
1811
 
1812
+
1813
+
1814
  $latest = curl_call($url);
1815
 
 
1816
 
1817
+
1818
+ $latest_row = parser_twitter_results($latest,0);
1819
+
1820
+
1821
+
1822
+ update_option( "skyscraper_latest", $latest_row );
1823
+
1824
+
1825
+
1826
+
1827
+
1828
+
1829
+
1830
+ // last mentions
1831
+
1832
+
1833
+
1834
+ $url = "http://search.twitter.com/search.json?q=@".$username."&rpp=5&include_entities=true&result_type=mixed";
1835
+
1836
+
1837
+
1838
+ $mentions = curl_call($url);
1839
+
1840
+
1841
 
1842
 
1843
 
 
1844
 
 
1845
 
1846
+ if (count($mentions["results"]) > 1){
1847
 
 
1848
 
 
1849
 
1850
 
1851
 
1852
+
1853
+
1854
  $mentions_row = parser_twitter_results($mentions["results"],1);
1855
 
1856
+
1857
+
1858
  update_option( "skyscraper_mentions", $mentions_row );
1859
 
1860
+
1861
+
1862
  }
1863
 
1864
+
1865
+
1866
  }
1867
 
1868
+
1869
+
1870
  }
1871
 
1872
+
1873
+
1874
  function ago($time){
1875
 
1876
+
1877
+
1878
  $periods = array("second", "minute", "hour", "day", "week", "month", "year", "decade");
1879
 
1880
+
1881
+
1882
  $lengths = array("60","60","24","7","4.35","12","10");
1883
 
1884
+
1885
+
1886
  $now = time();
1887
 
1888
+
1889
+
1890
  $difference = $now - $time;
1891
 
1892
+
1893
+
1894
  $tense = "ago";
1895
 
1896
+
1897
+
1898
  for($j = 0; $difference >= $lengths[$j] && $j < count($lengths)-1; $j++) {
1899
 
1900
+
1901
+
1902
  $difference /= $lengths[$j];
1903
 
1904
+
1905
+
1906
  }
1907
 
1908
+
1909
+
1910
  $difference = round($difference);
1911
 
1912
+
1913
+
1914
  if($difference != 1) {
1915
 
1916
+
1917
+
1918
  $periods[$j].= "s";
1919
 
1920
+
1921
+
1922
  }
1923
 
1924
+
1925
+
1926
  return $difference." ".$periods[$j]."ago";
1927
 
1928
+
1929
+
1930
  }
1931
 
1932
+
1933
+
1934
  function parser_twitter_results($results = array(), $mention){
1935
 
1936
+
1937
+
1938
 
1939
 
1940
+
1941
+
1942
  $options_latest = array();
1943
 
1944
+
1945
+
1946
  $options_latest = array("date" => date("YmdHis"));
1947
 
1948
+
1949
+
1950
  global $skyscraper_options;
1951
 
1952
+
1953
+
1954
  $i = 0;
1955
 
1956
+
1957
+
1958
 
1959
 
1960
+
1961
+
1962
  if (is_array($results)){
1963
 
1964
+
1965
+
1966
 
1967
 
1968
+
1969
+
1970
  foreach($results as $tweet){
1971
 
1972
+
1973
+
1974
 
1975
 
1976
+
1977
+
1978
  $options_latest[$i] = array();
1979
 
1980
+
1981
+
1982
  $options_latest[$i]["text"] = $tweet["text"];
1983
 
1984
+
1985
+
1986
  $options_latest[$i]["created_at"] = ago(strtotime($tweet["created_at"]));
1987
 
1988
+
1989
+
1990
 
1991
 
1992
+
1993
+
1994
  if ($mention){
1995
 
1996
+
1997
+
1998
  $options_latest[$i]["name"] = $tweet["from_user_name"];
1999
 
2000
+
2001
+
2002
  }
2003
 
2004
+
2005
+
2006
  else{
2007
 
2008
+
2009
+
2010
  $options_latest[$i]["name"] = $tweet["user"]["name"];
2011
 
2012
+
2013
+
2014
  }
2015
 
2016
+
2017
+
2018
 
2019
 
2020
+
2021
+
2022
  $i++;
2023
 
2024
+
2025
+
2026
  if ($i == $skyscraper_options["num_tweets"]){
2027
 
2028
+
2029
+
2030
  break;
2031
 
2032
+
2033
+
2034
  }
2035
 
2036
+
2037
+
2038
  }
2039
 
2040
+
2041
+
2042
  }
2043
 
2044
+
2045
+
2046
 
2047
 
2048
+
2049
+
2050
  return $options_latest;
2051
 
2052
+
2053
+
2054
  }
2055
 
2056
+
2057
+
2058
  function curl_call($url){
2059
 
2060
+
2061
+
2062
 
2063
 
2064
+
2065
+
2066
  $ch = curl_init();
2067
 
2068
+
2069
+
2070
  curl_setopt($ch, CURLOPT_URL, $url);
2071
 
2072
+
2073
+
2074
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
2075
 
2076
+
2077
+
2078
  curl_setopt($ch, CURLOPT_TIMEOUT, 3);
2079
 
2080
+
2081
+
2082
  curl_setopt($ch, CURLINFO_HEADER_OUT, true);
2083
 
2084
+
2085
+
2086
  $output = curl_exec($ch);
2087
 
2088
+
2089
+
2090
  $info = curl_getinfo($ch);
2091
 
2092
+
2093
+
2094
  curl_close($ch);
2095
 
2096
+
2097
+
2098
 
2099
 
2100
+
2101
+
2102
  if ($info["http_code"] == "200"){
2103
 
2104
+
2105
+
2106
 
2107
 
2108
+
2109
+
2110
  $return = json_decode($output,1);
2111
 
2112
+
2113
+
2114
  }
2115
 
2116
+
2117
+
2118
  else{
2119
 
2120
+
2121
+
2122
  $return = false;
2123
 
2124
+
2125
+
2126
  }
2127
 
2128
+
2129
+
2130
 
2131
 
2132
+
2133
+
2134
  return $return;
2135
 
2136
+
2137
+
2138
  }
2139
 
2140
+
2141
+
2142
  function get_option_tweets($option){
2143
 
2144
+
2145
+
2146
 
2147
 
2148
+
2149
+
2150
  global $skyscraper_options;
2151
 
2152
+
2153
+
2154
  $skyscraper_latest = get_option($option);
2155
 
2156
+
2157
+
2158
 
2159
 
2160
+
2161
+
2162
  if (empty($skyscraper_latest)){
2163
 
2164
+
2165
+
2166
 
2167
 
2168
+
2169
+
2170
  get_tweets_username($skyscraper_options["twitter_username"]);
2171
 
2172
+
2173
+
2174
  $skyscraper_latest = get_option($option);
2175
 
2176
+
2177
+
2178
  }
2179
 
2180
+
2181
+
2182
  else{
2183
 
2184
+
2185
+
2186
 
2187
 
2188
+
2189
+
2190
  // 5 minutes
2191
 
2192
+
2193
+
2194
  if (diff_date($skyscraper_latest["date"], date("YmdHis")) > 5){
2195
 
2196
+
2197
+
2198
 
2199
 
2200
+
2201
+
2202
  get_tweets_username($skyscraper_options["twitter_username"]);
2203
 
2204
+
2205
+
2206
  $skyscraper_latest = get_option($option);
2207
 
2208
+
2209
+
2210
  }
2211
 
2212
+
2213
+
2214
  }
2215
 
2216
+
2217
+
2218
 
2219
 
2220
+
2221
+
2222
 
2223
 
2224
+
2225
+
2226
  return generate_tweets_box_content($skyscraper_latest);
2227
 
2228
+
2229
+
2230
  }
2231
 
2232
+
2233
+
2234
  function generate_tweets_box_content($tweets){
2235
 
2236
+
2237
+
2238
  $content = "";
2239
 
2240
+
2241
+
2242
  if (isset($tweets["date"])){
2243
 
2244
+
2245
+
2246
  unset($tweets["date"]);
2247
 
2248
+
2249
+
2250
  }
2251
 
2252
+
2253
+
2254
 
2255
 
2256
+
2257
+
2258
 
2259
 
2260
+
2261
+
2262
  foreach($tweets as $tweet){
2263
 
2264
+
2265
+
2266
 
2267
 
2268
+
2269
+
2270
  $tweet["name"] = addslashes($tweet["name"]);
2271
 
2272
+
2273
+
2274
  $tweet["text"] = addslashes($tweet["text"]);
2275
 
2276
+
2277
+
2278
 
2279
 
2280
+
2281
+
2282
  $content .= "['".$tweet["name"]."','".$tweet["name"]."','".$tweet["text"]."','','".$tweet["created_at"]."'],";
2283
 
2284
+
2285
+
2286
  }
2287
 
2288
+
2289
+
2290
  $content = trim(trim(trim($content), ","));
2291
 
2292
+
2293
+
2294
 
2295
 
2296
+
2297
+
2298
  return $content;
2299
 
2300
+
2301
+
2302
  }
2303
 
2304
+
2305
+
2306
  if (!empty($_GET["sky"])){
2307
 
2308
+
2309
+
2310
  add_action('wp_ajax_my_action', 'my_action_callback');
2311
 
2312
+
2313
+
2314
  function my_action_callback() {
2315
 
2316
+
2317
+
2318
  global $wpdb; global $skyscraper_options; // this is how you get access to the database
2319
 
2320
+
2321
+
2322
  $whatever = intval( $_POST['whatever'] );
2323
 
2324
+
2325
+
2326
  $whatever += 10;
2327
 
2328
+
2329
+
2330
  echo $whatever;
2331
 
2332
+
2333
+
2334
  die(); // this is required to return a proper result
2335
 
2336
+
2337
+
2338
  }
2339
 
2340
+
2341
+
2342
  }
2343
 
2344
+
2345
+
2346
  ?>
includes/sociable_output.php CHANGED
@@ -1,39 +1,23 @@
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
 
@@ -41,87 +25,84 @@ function sociable_html( $display = array(),$location = "" ){
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
 
@@ -129,101 +110,83 @@ function sociable_html( $display = array(),$location = "" ){
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
 
@@ -231,90 +194,71 @@ function sociable_html( $display = array(),$location = "" ){
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
 
@@ -322,419 +266,366 @@ function sociable_html( $display = array(),$location = "" ){
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
 
@@ -742,587 +633,1184 @@ function sociable_html( $display = array(),$location = "" ){
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
 
@@ -1330,187 +1818,168 @@ function auto_sociable( $content ){
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
 
1
  <?php
2
 
 
 
3
  /*
4
 
 
 
5
  * The Output And Shortcode Functions For sociable
6
 
7
+ */
8
 
9
 
 
10
 
11
  /*
12
 
13
 
 
14
  * Returns The Sociable Output For The Global $post Object Do Not
15
 
16
 
 
17
  */
18
 
19
 
20
 
 
 
 
 
 
 
 
 
 
 
21
  function sociable_html( $display = array(),$location = "" ){
22
 
23
 
25
  global $sociable_options, $wp_query, $post;
26
 
27
 
 
28
  //ra( $sociable_options );
29
 
 
 
30
  $sociable_known_sites = get_option( 'sociable_known_sites' );
31
 
32
 
33
 
34
+ if( ! $post ){
35
 
36
 
37
 
 
38
 
39
 
40
 
 
41
 
42
+ $post = get_post( $post_id = 1 );
43
 
44
 
 
45
 
46
 
47
 
 
48
 
49
 
50
+ }
51
 
 
52
 
53
 
54
+ if ( get_post_meta($post->ID,'_sociableoff',true)) {
55
 
56
  return "";
57
 
58
 
 
59
  }
60
 
 
 
61
 
62
 
63
  $active_sites = $sociable_options['active_sites'];
64
 
 
65
 
66
 
67
+ // Get The Image Path
68
+
69
 
70
  //$imagepath = _get_sociable_image_path();
71
 
 
72
 
73
 
74
+ // if no sites are specified, display all active
75
+
76
 
77
  // have to check $active_sites has content because WP
78
 
79
 
 
80
  // won't save an empty array as an option
81
 
82
 
83
 
 
84
 
85
 
86
 
87
+
88
+ if ( empty($display) && isset( $active_sites ) )
89
 
90
 
91
+ $display = $active_sites;
92
+
93
 
94
  // if no sites are active, display nothing
95
 
96
 
97
 
 
98
 
99
+ if ( empty($display) )
100
 
101
 
102
  return "";
103
 
104
+
105
+
106
  // Load the post's and blog's data
107
 
108
 
110
  $blogname = urlencode(get_bloginfo('name')." ".get_bloginfo('description'));
111
 
112
 
 
113
  $blogrss = get_bloginfo('rss2_url');
114
 
115
 
116
 
 
117
 
118
+ // Grab the excerpt, if there is no excerpt, create one
119
 
120
 
 
121
 
122
 
123
 
 
124
 
125
 
126
+ $excerpt = urlencode(strip_tags(strip_shortcodes($post->post_excerpt)));
127
 
 
128
 
129
 
130
 
 
131
 
132
 
133
 
134
+ if ($excerpt == "") {
135
 
136
 
137
 
 
138
 
139
 
140
 
 
141
 
142
+ $excerpt = urlencode(substr(strip_tags(strip_shortcodes($post->post_content)),0,250));
143
 
144
 
145
+ }
146
 
147
 
148
+ // Clean the excerpt for use with links
149
 
 
150
 
151
+ $excerpt = str_replace('+','%20',$excerpt);
152
 
153
 
154
+ $permalink = urlencode(get_permalink($post->ID));
155
 
156
 
157
 
 
158
 
159
+ $permalinkCOUNT = get_permalink($post->ID);
160
 
161
 
162
  $title = str_replace('+','%20',urlencode($post->post_title));
163
 
164
 
 
165
  $titleCOUNT = $post->post_title;
166
 
167
 
168
 
 
 
 
 
169
  $rss = urlencode(get_bloginfo('ref_url'));
170
 
 
171
 
172
 
173
+ // Start preparing the output
174
 
175
  $html = '<!-- Start Sociable --><div class="sociable">';
176
 
177
 
178
 
 
 
 
 
179
  // If a tagline is set, display it above the links list
180
 
181
 
 
182
  $tagline = isset( $sociable_options['tagline'] ) ? $sociable_options['tagline'] : '' ;
183
 
184
 
 
185
  if ($tagline != '') {
186
 
187
 
 
188
  $html .= '<div class="sociable_tagline">';
189
 
 
 
190
  if (isset( $sociable_options['help_grow'] )) {
191
 
192
 
194
  $addSize = "";
195
 
196
 
 
197
  if ($sociable_options['icon_size'] ==16) $addSize = "font-size:11px;";
198
 
199
 
 
200
  $html .= "<a class='sociable_tagline' target='_blank' href='http://blogplay.com' style='".$addSize."color:#333333;text-decoration:none'>".$tagline."</a>";
201
 
202
 
 
203
  }else{
204
 
205
 
 
206
  $html .= $tagline;
207
 
 
 
208
  }
209
 
210
 
 
211
  $html .= "</div>";
212
 
213
 
 
214
  }
215
 
216
 
217
 
 
 
 
 
218
  /**
219
 
 
 
220
  * Start the list of links
221
 
222
 
 
223
  */
224
 
225
 
226
 
227
  $html .= "<ul class='clearfix'>";
228
 
 
229
 
230
 
231
+ $i = 0;
232
 
233
  $totalsites = count($display);
234
 
235
 
236
 
 
 
237
 
238
 
 
 
239
 
240
 
241
+ $margin = "0px";
242
 
243
 
244
+ switch ($sociable_options['icon_size']){
245
 
246
  case "16": $margin = "padding-top: 0;margin-top:-2px";
247
 
248
 
249
 
 
250
 
251
 
252
 
 
253
 
254
+ break;
255
 
256
 
257
+ case "32": $margin = "margin-top:9px";
258
+
259
 
260
 
261
 
 
262
 
263
 
264
 
266
 
267
 
268
 
 
269
 
270
 
271
 
 
272
 
273
+ case "48": $margin = "margin-top:24px";
274
 
275
 
 
276
 
277
 
278
 
 
279
 
280
 
281
+ break;
282
 
 
283
 
284
 
285
 
 
286
 
287
 
288
 
289
+ case "64": $margin = "margin-top:38px";
290
 
291
 
292
 
 
293
 
294
 
295
 
 
296
 
297
+ break;
298
 
299
 
 
300
 
301
 
302
 
 
303
 
304
 
305
+ }
306
 
 
307
 
308
 
309
 
 
310
 
311
 
312
 
313
+
314
 
315
 
316
 
 
317
 
318
 
319
 
 
320
 
321
+ // print_r($display);
322
 
323
 
 
324
 
325
 
326
 
327
+ if (isset($display["More"])){
328
 
329
 
330
 
 
331
 
332
 
333
 
 
334
 
335
+ unset($display["More"]);
336
 
337
 
 
338
 
339
 
340
 
 
341
 
342
 
343
+ array_push($display,"More");
344
 
 
345
 
346
 
347
 
 
348
 
349
 
350
 
351
+ $display["More"] = "On";
352
 
353
 
354
 
 
355
 
356
 
357
 
 
358
 
359
+ }
360
 
361
 
 
362
 
363
 
364
 
 
365
 
366
 
367
+ //print_r($display);
368
 
 
369
 
370
 
371
 
 
372
 
373
 
374
 
375
+ foreach($display as $sitename => $val ) {
376
 
377
 
378
 
379
+ if ( ! array_key_exists($sitename, $active_sites) || isset($sociable_known_sites[$sitename]["counter"]))
380
 
381
 
382
 
383
+ continue;
384
 
385
 
386
+ $site = $sociable_known_sites[$sitename];
387
 
 
388
 
389
 
390
 
 
391
 
392
 
393
 
394
+ $url = ( isset( $site['script'] ) ) ? $site['script'] : $site['url'];
395
 
396
 
397
 
 
398
 
399
 
400
 
 
401
 
402
+ $url = str_replace('TITLECOUNT', $titleCOUNT, $url);
403
 
404
 
 
405
 
406
 
407
 
 
408
 
409
 
410
+ $url = str_replace('TITLE', $title, $url);
411
 
 
412
 
413
 
414
 
 
415
 
416
 
417
 
418
+ $url = str_replace('RSS', $rss, $url);
419
 
420
 
421
 
 
422
 
423
 
424
 
 
425
 
426
+ $url = str_replace('BLOGNAME', $blogname, $url);
427
 
428
 
 
429
 
430
 
431
 
 
432
 
433
 
434
+ $url = str_replace('EXCERPT', $excerpt, $url);
435
 
 
436
 
437
 
438
 
 
439
 
440
 
441
 
442
+ $url = str_replace('FEEDLINK', $blogrss, $url);
443
 
444
 
445
 
 
446
 
447
 
448
 
 
449
 
450
+ $url = str_replace('PERMALINKCOUNT', $permalinkCOUNT, $url);
451
 
452
 
 
453
 
454
+ $url = str_replace('PERMALINK', $permalink, $url);
455
 
456
 
457
+
458
+ if (isset($site['description']) && $site['description'] != "") {
459
 
460
 
461
 
 
462
 
463
 
464
 
 
465
 
466
+ $description = $site['description'];
467
 
468
 
 
469
 
470
 
471
 
 
472
 
473
 
474
+ } else {
475
 
 
476
 
477
 
478
 
 
479
 
480
 
481
 
482
+ $description = $sitename;
483
 
484
 
485
 
 
486
 
487
 
488
 
 
489
 
490
+ }
491
 
492
 
 
493
 
494
+ $link = '<li>';
495
 
496
 
 
497
 
498
 
499
 
 
500
 
501
 
502
+ if (!empty($sociable_options["custom_icons"])){
503
 
 
504
 
505
 
506
 
 
507
 
508
 
509
 
510
+ $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description );
511
 
512
 
513
 
 
514
 
515
+ }else{
516
 
517
 
 
518
 
519
 
520
 
 
521
 
522
 
523
+ if ($description != "More"){
524
 
 
525
 
526
 
527
 
 
528
 
529
 
530
 
531
+ $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description );
532
 
533
 
534
 
 
535
 
536
 
537
 
 
538
 
539
+ }else{
540
 
541
 
 
542
 
543
 
544
+ $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : "<img style='".$margin."' src='".SOCIABLE_HTTP_PATH."images/more.png'>";
545
 
 
546
 
547
 
548
+ }
549
 
 
550
 
551
 
552
+ }
553
 
 
554
 
555
 
556
 
 
557
 
558
 
559
 
560
+ $posX = $site["spriteCoordinates"][$sociable_options['icon_size']]["0"];
561
 
562
 
563
 
 
564
 
565
 
566
 
 
567
 
568
+ $posY = $site["spriteCoordinates"][$sociable_options['icon_size']]["1"];
569
 
570
 
 
571
 
572
 
573
 
 
574
 
575
 
576
+ $backgroundFile = $sociable_options['icon_option']."_".$sociable_options['icon_size'].".png";
577
 
 
578
 
579
 
580
 
 
581
 
582
 
583
 
584
+ $style = "background-position:".$posX." ".$posY;
585
 
586
 
587
 
 
588
 
589
 
590
 
 
591
 
592
+ $href = $url;
593
 
594
 
 
595
 
596
 
597
 
 
598
 
599
 
600
+ $target = isset( $sociable_options['new_window'] ) ? 'target="_blank"' : '' ;
601
 
 
602
 
603
 
604
 
 
605
 
606
 
607
 
608
+ if ($sitename == "Add to favorites" || $sitename=="More"){
609
 
610
 
611
 
 
612
 
613
 
614
 
 
615
 
616
+ if ($sitename == "More"){
617
 
618
 
 
619
 
620
 
621
 
 
622
 
623
 
624
+ $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>' ;
625
 
 
626
 
627
 
628
 
 
629
 
630
 
631
 
633
 
634
 
635
 
 
636
 
637
 
638
 
639
+
640
+ $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>' ;
641
+
642
+
643
+
644
+ }
645
+
646
+
647
+
648
+ }else{
649
+
650
+
651
+
652
+ if($sociable_options["icon_option"] == "option6" || !empty($sociable_options["custom_icons"])){
653
+
654
+
655
+
656
+
657
+
658
+
659
+
660
+ $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>' ;
661
+
662
+
663
+
664
+
665
+
666
+
667
+
668
+ }else{
669
+
670
+
671
+
672
+
673
+
674
+
675
+
676
+ if (count(split("Counter",$sitename))>1){
677
+
678
+
679
+
680
+
681
+
682
+
683
+
684
+ $link.= $href;
685
+
686
+
687
+
688
+
689
+
690
+
691
+
692
+ }else{
693
+
694
+
695
+
696
+ $link .= '<a title="'.$sitename.'" class="'.$sociable_options['icon_option'].'_'.$sociable_options['icon_size'].'" style="'.$style.'" rel="nofollow" ' . $target . ' href="' . $href . '">' . "" . '</a></li>' ;
697
+
698
+
699
+ }
700
+
701
+
702
+
703
+
704
+
705
+
706
+
707
+ }
708
+
709
+
710
+
711
+
712
 
713
 
714
 
715
  }
716
 
 
717
 
718
 
719
 
720
+ $html .= apply_filters( 'sociable_link' , $link );
721
 
722
 
723
+ $i++;
724
 
725
+ }
726
 
727
 
728
 
 
729
 
730
 
731
 
732
+
733
+ //return $html;
734
+
735
+
736
+
737
+
738
+ //if ($sociable_options['icon_option'] !="option6"){
739
+
740
+
741
+
742
+
743
+
744
+
745
+
746
+ $inner = "<ul>";
747
+
748
+
749
+
750
+
751
+
752
+
753
+
754
+ foreach ($sociable_known_sites as $sitename => $val){
755
+
756
+
757
+
758
+
759
+
760
+
761
+
762
+ if (array_key_exists($sitename, $display) || isset($sociable_known_sites[$sitename]["counter"]) )
763
+
764
+
765
+
766
+
767
+
768
+
769
+
770
+ continue;
771
+
772
+
773
+
774
+
775
+
776
+
777
+
778
+ $site = $sociable_known_sites[$sitename];
779
+
780
+
781
+
782
+
783
+
784
+
785
+
786
+ $url = ( isset( $site['script'] ) ) ? $site['script'] : $site['url'];
787
+
788
+
789
+
790
+
791
+
792
+
793
+
794
+ $url = str_replace('TITLECOUNT', $titleCOUNT, $url);
795
+
796
+
797
+
798
+ $url = str_replace('TITLE', $title, $url);
799
+
800
+
801
+
802
+
803
+
804
+
805
+
806
+ $url = str_replace('RSS', $rss, $url);
807
+
808
+
809
+
810
+
811
+
812
+
813
+
814
+ $url = str_replace('BLOGNAME', $blogname, $url);
815
+
816
+
817
+
818
+
819
+
820
+
821
+
822
+ $url = str_replace('EXCERPT', $excerpt, $url);
823
+
824
+
825
+
826
+
827
+
828
+
829
+
830
+ $url = str_replace('FEEDLINK', $blogrss, $url);
831
+
832
+
833
+
834
+
835
+
836
+
837
+
838
+ $url = str_replace('PERMALINKCOUNT', $permalinkCOUNT, $url);
839
+
840
+
841
+
842
+ $url = str_replace('PERMALINK', $permalink, $url);
843
+
844
+
845
+ $link = '<li style="heigth:'.$sociable_options['icon_size'].'px;width:'.$sociable_options['icon_size'].'px">';
846
+
847
+
848
+
849
+
850
+
851
+
852
+
853
+ if (!empty($sociable_options["custom_icons"])){
854
+
855
+
856
+
857
+
858
+
859
+
860
+
861
+ $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description );
862
+
863
+
864
+
865
+
866
+
867
+
868
+
869
+ }else{
870
+
871
+
872
+ if (isset($description) && $description!= "More"){
873
+
874
+
875
+
876
+
877
+
878
+
879
+
880
+ $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description );
881
+
882
+
883
+
884
+
885
+
886
+
887
+
888
+ }else{
889
+
890
+
891
+
892
+
893
+
894
+
895
+
896
+ $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : "<img style='".$margin."' src='".SOCIABLE_HTTP_PATH."images/more.png'>";
897
+
898
+
899
+
900
+
901
+
902
+
903
+
904
+ }
905
+
906
+
907
+
908
+
909
+
910
+
911
+
912
+ }
913
+
914
+
915
+
916
+ $posX = $site["spriteCoordinates"][$sociable_options['icon_size']]["0"];
917
+
918
+
919
+
920
+
921
+
922
+
923
+
924
+ $posY = $site["spriteCoordinates"][$sociable_options['icon_size']]["1"];
925
+
926
+
927
+
928
+
929
+
930
+
931
+
932
+ $backgroundFile = $sociable_options['icon_option']."_".$sociable_options['icon_size'].".png";
933
+
934
+
935
+
936
+
937
+
938
+
939
+
940
+ $style = "background-position:".$posX." ".$posY;
941
+
942
+
943
+
944
+
945
+
946
+
947
+
948
+ $href = $url;
949
+
950
+
951
+
952
+
953
+
954
+
955
+
956
+ $target = isset( $sociable_options['new_window'] ) ? 'target="_blank"' : '' ;
957
+
958
+
959
+
960
+
961
+
962
+
963
+
964
+ if ($sitename == "Add to favorites" || $sitename=="More"){
965
+
966
+
967
+
968
+
969
+
970
+
971
+
972
+ if ($sitename == "More"){
973
+
974
+
975
+
976
+
977
+
978
+
979
+
980
+ $link .= '<a style="cursor:poainter" rel="nofollow" onMouseOver="more(this,\'post'.$location.'-' . $post->ID . '\')">' . $linkitem . '</a></li>' ;
981
+
982
+
983
+
984
+
985
+
986
+
987
+
988
+ }else{
989
+
990
+
991
+
992
+
993
+
994
+
995
+
996
+ $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>' ;
997
+
998
+
999
+
1000
+
1001
+
1002
+
1003
+
1004
+ }
1005
+
1006
+
1007
+
1008
+
1009
+
1010
+
1011
+
1012
+ }else{
1013
+
1014
+
1015
+
1016
+
1017
+
1018
+
1019
+
1020
+ if($sociable_options["icon_option"] == "option6" || !empty($sociable_options["custom_icons"])){
1021
+
1022
+
1023
+
1024
+
1025
+
1026
+
1027
+
1028
+ $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>' ;
1029
+
1030
+
1031
+
1032
+
1033
+
1034
+
1035
+
1036
+ }else{
1037
+
1038
+
1039
+
1040
+
1041
+
1042
+
1043
+
1044
+ $link .= '<a title="'.$sitename.'" class="'.$sociable_options['icon_option'].'_'.$sociable_options['icon_size'].'" style="'.$style.'" rel="nofollow" ' . $target . ' href="' . $href . '">' . "" . '</a></li>' ;
1045
+
1046
+
1047
+
1048
+
1049
+
1050
+
1051
+
1052
+ }
1053
+
1054
+
1055
+
1056
+
1057
+
1058
+
1059
+
1060
+ }
1061
+
1062
+
1063
+
1064
+ $inner .= apply_filters( 'sociable_link' , $link );
1065
+
1066
+
1067
+
1068
+ $i++;
1069
+
1070
+
1071
+ }
1072
+
1073
+
1074
+ $inner .="</ul>";
1075
+
1076
+
1077
+ $html .='</ul><div onMouseout="fixOnMouseOut(this,event,\'post'.$location.'-'.$post->ID.'\')" id="sociable-post'.$location.'-'.$post->ID.'" style="display:none;">
1078
+
1079
+
1080
+
1081
+
1082
+
1083
+
1084
+
1085
+ <div style="top: auto; left: auto; display: block;" id="sociable">
1086
+
1087
+
1088
+
1089
+
1090
+
1091
+
1092
+
1093
+ <div class="popup">
1094
+
1095
+
1096
+
1097
+
1098
+
1099
+
1100
+
1101
+ <div class="content">
1102
+
1103
+
1104
+
1105
+
1106
+
1107
+
1108
+
1109
+ '.$inner.'
1110
+
1111
+
1112
+
1113
+
1114
+
1115
+
1116
+
1117
+ </div>
1118
+
1119
+
1120
+
1121
+
1122
+
1123
+
1124
+
1125
+ <a style="cursor:pointer" onclick="hide_sociable(\'post'.$location.'-'.$post->ID.'\',true)" class="close">
1126
+
1127
+
1128
+
1129
+ <img onclick="hide_sociable(\'post'.$location.'-'.$post->ID.'\',true)" title="close" src="'.SOCIABLE_HTTP_PATH . 'images/closelabel.png">
1130
+
1131
+
1132
+
1133
+
1134
+
1135
+
1136
+
1137
+ </a>
1138
+
1139
+
1140
+
1141
+
1142
+
1143
+
1144
+
1145
+ </div>
1146
+
1147
+
1148
+
1149
+
1150
+
1151
+
1152
+
1153
+ </div>
1154
+
1155
+
1156
+
1157
+
1158
+
1159
+
1160
+
1161
+ </div>HereGoCounters</div><!-- End Sociable -->';
1162
+
1163
+
1164
+
1165
+
1166
+
1167
+
1168
+
1169
+ //$margin =
1170
+
1171
+
1172
+
1173
+
1174
+
1175
+
1176
+
1177
+ //$html .= "<li class='sociablelast' style='".$margin."'><img src='".SOCIABLE_HTTP_PATH."images/more.jpg'></li></ul><div class='soc_clear'></div></div>";
1178
+
1179
+
1180
+
1181
+
1182
+
1183
+
1184
+
1185
+ //}
1186
+
1187
+
1188
+
1189
+
1190
+
1191
+
1192
+
1193
+ //return "";
1194
+
1195
+
1196
+
1197
+
1198
+
1199
+
1200
+
1201
+ $counters ="";
1202
+
1203
+
1204
+
1205
+
1206
+
1207
+
1208
+
1209
+ /*if ($location == "bottom" && (is_single() || is_admin())){ */
1210
+
1211
+
1212
+ $counters = "</div><div class='sociable' style='float:none'><ul class='clearfix'>";
1213
+
1214
+
1215
+ foreach ($display as $sitename => $val){
1216
+
1217
+
1218
+ //echo $sitename."<br>";
1219
+
1220
+
1221
+
1222
+
1223
+
1224
+
1225
+
1226
+ if (!array_key_exists($sitename, $display) || !isset($sociable_known_sites[$sitename]["counter"]) )
1227
+
1228
+
1229
+
1230
+
1231
+
1232
+
1233
+
1234
+ continue;
1235
+
1236
+
1237
+
1238
+ //echo $sitename."<br>";
1239
+
1240
+
1241
+
1242
+
1243
+
1244
+
1245
+
1246
+ $link = '<li id="'.str_replace("+","p",str_replace(" ","_",$sitename)).'">';
1247
+
1248
+
1249
+
1250
+ $site = $sociable_known_sites[$sitename];
1251
+
1252
+
1253
+
1254
+
1255
+
1256
+
1257
+
1258
+ $url = ( isset( $site['script'] ) ) ? $site['script'] : $site['url'];
1259
+
1260
+
1261
+
1262
+
1263
+
1264
+
1265
+
1266
+ $url = str_replace('TITLECOUNT', $titleCOUNT, $url);
1267
+
1268
+
1269
+
1270
+ $url = str_replace('TITLE', $title, $url);
1271
+
1272
+
1273
+
1274
+
1275
+
1276
+
1277
+
1278
+ $url = str_replace('RSS', $rss, $url);
1279
+
1280
+
1281
+
1282
+
1283
+
1284
+
1285
+
1286
+ $url = str_replace('BLOGNAME', $blogname, $url);
1287
+
1288
+
1289
+
1290
+
1291
+
1292
+
1293
+
1294
+ $url = str_replace('EXCERPT', $excerpt, $url);
1295
+
1296
+
1297
+
1298
+
1299
+
1300
+
1301
+
1302
+ $url = str_replace('FEEDLINK', $blogrss, $url);
1303
+
1304
+
1305
+
1306
+ $url = str_replace('PERMALINKCOUNT', $permalinkCOUNT, $url);
1307
+
1308
+
1309
+
1310
+
1311
+
1312
+
1313
+
1314
+ $url = str_replace('PERMALINK', $permalink, $url);
1315
+
1316
+
1317
+
1318
+
1319
+ $link.= $url."</li>";
1320
+
1321
+
1322
+
1323
+
1324
+
1325
+
1326
+
1327
+ $counters .= apply_filters( 'sociable_link' , $link );
1328
+
1329
 
1330
 
1331
 
 
1332
 
1333
 
1334
 
1335
+ }
1336
 
1337
 
1338
 
 
1339
 
1340
 
1341
 
 
1342
 
1343
+ $counters .="</ul>";
1344
 
1345
 
 
1346
 
1347
 
1348
 
 
1349
 
1350
 
1351
+ $html = str_replace("HereGoCounters",$counters,$html);
1352
 
 
1353
 
1354
 
1355
+ /*}else{
1356
 
 
1357
 
1358
 
1359
 
 
1360
 
1361
 
1362
 
1363
+ $html = str_replace("HereGoCounters",$counters,$html);
1364
 
1365
 
1366
 
 
1367
 
1368
 
1369
 
 
1370
 
1371
+ }*/
1372
 
1373
 
 
1374
 
1375
 
1376
+ return $html;
1377
 
 
1378
 
1379
+ }
1380
 
1381
 
 
1382
 
1383
+ /*
1384
 
1385
 
 
1386
 
1387
 
1388
 
 
1389
 
1390
 
1391
+ * Template Tag To Echo The Sociable 2 HTML
1392
 
 
1393
 
1394
 
1395
 
 
1396
 
1397
 
1398
 
1399
+ */
1400
 
1401
 
1402
 
 
1403
 
1404
 
1405
 
 
1406
 
1407
+ function do_sociable(){
1408
 
1409
 
 
1410
 
1411
 
1412
 
 
1413
 
1414
 
1415
+ echo sociable_html();
1416
 
 
1417
 
1418
 
1419
 
 
1420
 
1421
 
1422
 
1423
+ }
1424
 
1425
 
1426
 
1427
+ /*
1428
 
1429
 
1430
 
 
1431
 
 
1432
 
1433
 
1434
 
1435
+ * Hook For the_content to automatically output the sociable HTML If The Option To Disable Has Not Been Unchecked
1436
 
1437
 
1438
 
 
1439
 
1440
 
1441
 
 
1442
 
1443
+ */
1444
 
1445
 
 
1446
 
1447
 
1448
 
 
1449
 
1450
 
1451
+ function auto_sociable( $content ){
1452
 
 
1453
 
1454
 
1455
 
 
1456
 
1457
 
1458
 
1459
+ global $sociable_options;
1460
 
1461
 
1462
 
1463
+ if (!isset($sociable_options["active"])){
1464
 
1465
 
1466
+ return $content;
1467
 
 
1468
 
1469
 
1470
 
 
1471
 
1472
 
1473
 
1474
+ }
1475
 
1476
 
1477
 
 
1478
 
1479
+ if( ! isset( $sociable_options['locations'] ) || ! is_array( $sociable_options['locations'] ) || empty( $sociable_options['locations'] ) ){
1480
 
1481
 
 
1482
 
1483
 
1484
 
 
1485
 
1486
 
1487
+ return $content;
1488
 
 
1489
 
1490
 
1491
 
 
1492
 
1493
 
1494
 
1495
+ } else {
1496
 
1497
 
1498
 
 
1499
 
1500
 
1501
 
 
1502
 
1503
+ $locations = $sociable_options['locations'];
1504
 
1505
 
 
1506
 
1507
 
1508
 
 
1509
 
1510
 
1511
+ }
1512
 
 
1513
 
1514
 
1515
+ /*
1516
 
 
1517
 
1518
 
1519
+ * Determine if we are supposed to be displaying the output here.
1520
 
 
1521
 
1522
 
1523
+ */
1524
 
 
1525
 
1526
 
1527
 
 
1528
 
1529
 
1530
 
1531
+ $display = false;
1532
 
1533
+ /*
1534
 
1535
 
 
1536
 
1537
 
1538
 
 
1539
 
1540
 
1541
+ * is_single is a unique case it still returning true
1542
 
 
1543
 
1544
 
1545
 
 
1546
 
1547
 
1548
 
1549
+ */
1550
 
1551
 
1552
 
 
1553
 
1554
+ //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.
1555
 
1556
 
 
1557
 
1558
 
1559
 
 
1560
 
1561
 
1562
+ foreach( $locations as $location => $val ){
1563
 
 
1564
 
1565
 
1566
+ //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
1567
 
 
1568
 
1569
 
1570
 
 
1571
 
1572
 
1573
 
1574
+ if( $location == 'is_single' ){
1575
 
1576
 
1577
 
 
1578
 
1579
 
1580
 
 
1581
 
1582
+ //If we are not in a post, lets ignore this one for now
1583
 
1584
 
 
1585
 
1586
 
1587
 
 
1588
 
1589
 
1590
+ if( is_single() && get_post_type() == 'post' ){
1591
 
 
1592
 
1593
 
1594
 
 
1595
 
1596
 
1597
 
1598
+ $display = true;
1599
 
1600
 
1601
 
 
1602
 
1603
 
1604
 
 
1605
 
1606
+ break;
1607
 
1608
 
1609
 
 
1610
 
1611
 
1612
 
 
1613
 
1614
+ } else {
1615
 
1616
 
 
1617
 
1618
 
1619
 
 
1620
 
1621
 
1622
+ continue; // So not to trigger is_single later in this loop, but still be allowed to handle others
1623
 
 
1624
 
 
1625
 
1626
 
1627
 
 
1628
 
1629
 
1630
+ }
1631
 
 
1632
 
1633
 
1634
 
1635
+ } 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.
1636
 
1637
 
1638
 
 
1639
 
1640
+ //Single Custom Post Type
1641
 
1642
 
 
1643
 
1644
 
1645
 
 
1646
 
1647
 
1648
+ $post_type = str_replace( 'is_single_posttype_' , '' , $location );
1649
 
 
1650
 
1651
 
1652
 
 
1653
 
1654
 
1655
 
1656
+ if( is_single() && get_post_type() == $post_type ){
1657
 
1658
 
1659
 
 
1660
 
1661
 
1662
 
 
1663
 
1664
+ $display = true;
1665
 
1666
 
 
1667
 
1668
 
1669
 
 
1670
 
1671
 
1672
+ break;
1673
 
 
1674
 
1675
 
1676
 
 
1677
 
1678
 
1679
 
1680
+ }
1681
 
1682
 
1683
 
1684
+ } elseif( strpos( $location , 'is_posttype_archive_' ) === 0 ){
1685
 
1686
 
1687
 
 
1688
 
1689
+ //Custom Post Type Archive
1690
 
1691
 
 
1692
 
1693
 
1694
 
 
1695
 
1696
 
1697
+ $post_type = str_replace( 'is_posttype_archive_' , '' , $location );
1698
 
 
1699
 
1700
 
1701
 
 
1702
 
1703
 
1704
 
1705
+ if( is_post_type_archive( $post_type ) ){
1706
 
1707
 
1708
 
 
1709
 
1710
 
1711
 
 
1712
 
1713
+ $display = true;
1714
 
1715
 
 
1716
 
1717
 
1718
 
 
1719
 
1720
 
1721
+ break;
1722
 
 
1723
 
1724
 
1725
 
 
1726
 
1727
 
1728
 
1729
+ }
1730
 
1731
 
1732
 
1733
+ } elseif( strpos( $location , 'is_taxonomy_archive_' ) === 0 ) {
1734
 
1735
 
1736
+ //Taxonomy Archive
1737
 
 
1738
 
1739
 
1740
 
 
1741
 
1742
 
1743
 
1744
+ $taxonomy = str_replace( 'is_taxonomy_archive_' , '' , $location );
1745
 
1746
 
1747
 
 
1748
 
1749
 
1750
 
 
1751
 
1752
+ if( is_tax( $taxonomy ) ){
1753
 
1754
 
 
1755
 
1756
 
1757
 
 
1758
 
1759
 
1760
+ $display = true;
1761
 
 
1762
 
1763
 
1764
 
 
1765
 
1766
 
1767
 
1768
+ break;
1769
 
1770
 
1771
 
 
1772
 
1773
 
1774
 
 
1775
 
1776
+ }
1777
 
1778
 
 
1779
 
1780
+ } elseif( function_exists( $location ) ) {
1781
 
1782
 
 
1783
 
1784
 
1785
+ //Standard conditional tag, these will return BOOL
1786
 
 
1787
 
1788
 
1789
 
 
1790
 
1791
 
1792
 
1793
+ if( call_user_func( $location ) === true ){
1794
 
1795
 
1796
 
 
1797
 
1798
 
1799
 
 
1800
 
1801
+ $display = true;
1802
 
1803
 
 
1804
 
1805
 
1806
 
 
1807
 
1808
 
1809
+ break;
1810
 
 
1811
 
1812
 
1813
 
 
1814
 
1815
 
1816
 
1818
 
1819
 
1820
 
 
1821
 
1822
 
1823
+ } else {
1824
 
 
1825
 
1826
 
1827
 
 
1828
 
1829
 
1830
 
1831
+ continue;
1832
 
1833
 
1834
 
 
1835
 
1836
 
1837
 
 
1838
 
1839
+ }
1840
 
1841
 
 
1842
 
1843
 
1844
+ }
1845
 
 
1846
 
1847
+ //If We have passed all the checks and are looking in the right place lets do this thang
1848
 
1849
 
 
1850
 
1851
 
1852
 
 
1853
 
1854
 
1855
+ if( isset( $sociable_options['automatic_mode'] ) && $display === true ){
1856
 
 
1857
 
1858
 
1859
 
 
1860
 
1861
 
1862
 
1863
+ if (isset($sociable_options["topandbottom"])){
1864
 
1865
 
1866
 
 
1867
 
1868
 
1869
 
 
1870
 
1871
+ $content = sociable_html(array(),"top").$content . sociable_html(array(),"bottom");
1872
 
1873
 
 
1874
 
1875
 
1876
 
 
1877
 
1878
 
1879
+ }else{
1880
 
 
1881
 
1882
 
1883
 
 
1884
 
1885
 
1886
 
1887
+ $content = "".$content . sociable_html(array());
1888
+
1889
 
1890
 
1891
 
 
1892
 
1893
 
1894
 
1895
+ }
1896
 
1897
 
1898
 
 
1899
 
1900
 
1901
 
 
1902
 
1903
+ }
1904
 
1905
 
 
1906
 
1907
 
1908
 
1909
+ return $content;
1910
 
1911
 
1912
 
 
1913
 
1914
 
1915
 
 
1916
 
1917
+ }
1918
 
1919
 
 
1920
 
1921
+ /*
1922
 
1923
 
 
1924
 
1925
 
1926
 
 
1927
 
1928
 
1929
+ * Sociable 2 Shortcode
1930
+
1931
 
 
1932
 
1933
 
1934
 
 
1935
 
1936
 
1937
+ */
1938
 
 
1939
 
1940
 
1941
 
 
1942
 
1943
 
1944
 
1945
+ function sociable_shortcode(){
1946
 
1947
 
1948
+ return sociable_html();
1949
 
1950
  }
1951
 
 
1952
 
1953
 
1954
 
 
1955
 
1956
 
1957
 
1958
+ function add_googleplus() {
1959
 
1960
 
1961
 
1962
+ //echo'<script type="text/javascript" src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>';
1963
 
1964
 
1965
 
 
1966
 
1967
 
1968
 
 
1969
 
1970
+ }
1971
 
1972
 
 
1973
 
 
1974
 
1975
 
1976
 
1977
+
1978
+ //add_action('wp_head', 'add_googleplus' );
1979
+
1980
 
1981
 
1982
 
 
1983
 
1984
 
1985
 
readme.txt CHANGED
@@ -10,7 +10,7 @@ Requires at least: 2.6
10
 
11
  Tested up to: 3.3.1
12
 
13
- Stable tag: 4.2.2
14
 
15
 
16
 
@@ -25,9 +25,11 @@ Sociable continues being the leader in the sharing space of WordPress plugins. S
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
 
@@ -37,7 +39,6 @@ You can get even more Sociable with Sociable Skyscraper and: Rating and Review o
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
 
@@ -93,7 +94,7 @@ Sociable finds its home outside of the WordPress environment on Blogplay.com-
93
 
94
 
95
 
96
- *** Sociable 4.2.2 ***
97
 
98
 
99
 
@@ -296,6 +297,12 @@ Please send us an email to sociableblogplay [ at ] gmail.com
296
 
297
  == Changelog ==
298
 
 
 
 
 
 
 
299
 
300
  = 4.2.2 =
301
 
10
 
11
  Tested up to: 3.3.1
12
 
13
+ Stable tag: 4.2.3
14
 
15
 
16
 
25
  == Description ==
26
 
27
 
28
+ As you know, Sociable continues being the fastest growing leader in the sharing space of WordPress plugins. We really appreciate your feedback, so, here you are lastest version including Pinterest icon, font changes you suggested and other terrific features you get totally Free.
 
29
 
30
+ 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. Sociable Skyscraper allows you to set up pages and comments with a great degree of customization.
31
+
32
+ Sociable Plug-in is totally free and continues leading digital arena with over 1.5 million downloads now. We're working hard making you happy and your feedback and suggestions allow us to keep growing, so, let's enjoy co-creation, collaboration and sharing. Be Sociable. Share!
33
 
34
  = About Sociable Skyscraper =
35
 
39
 
40
  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.
41
 
 
42
  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.
43
 
44
 
94
 
95
 
96
 
97
+ *** Sociable 4.2.3 ***
98
 
99
 
100
 
297
 
298
  == Changelog ==
299
 
300
+ = 4.2.3 =
301
+
302
+
303
+ * Pinterest
304
+ * Tags
305
+
306
 
307
  = 4.2.2 =
308
 
sociable.php CHANGED
@@ -8,7 +8,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
 
@@ -307,7 +307,7 @@ function sociable_reset(){
307
 
308
 
309
 
310
- 'version' =>'4.2.2',
311
 
312
  'automatic_mode' => 'on',
313
 
8
 
9
  Description: Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
10
 
11
+ Version: 4.2.3
12
 
13
  Author: Blogplay
14
 
307
 
308
 
309
 
310
+ 'version' =>'4.2.3',
311
 
312
  'automatic_mode' => 'on',
313