Sociable - Version 4.2.5

Version Description

  • Privacy options
Download this release

Release Info

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

Code changes from version 4.2.4 to 4.2.5

includes/class-sociable_Admin_Options.php CHANGED
@@ -1,10631 +1,1832 @@
1
  <?php
2
-
3
-
4
-
5
  /*
6
 
7
-
8
-
9
-
10
-
11
-
12
-
13
  * Administration Options Class For Sociable 2
14
 
15
-
16
-
17
-
18
-
19
-
20
-
21
  */
22
-
23
-
24
-
25
  class sociable_Admin_Options{
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
  /**
42
 
43
-
44
-
45
-
46
-
47
-
48
-
49
  * A Function To Hook To Admin Init.
50
 
51
-
52
-
53
-
54
-
55
-
56
-
57
  */
58
-
59
-
60
-
61
-
62
-
63
-
64
-
65
  function init(){
66
-
67
-
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
-
81
  register_setting( 'sociable_options_group' , 'sociable_options' );
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
  //Add The Settings Sections
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
  // add_settings_section( 'sociable_locations', __( 'Locations' ), array( 'sociable_Admin_Options' , 'location_options_callback' ) , 'sociable_options' );
 
 
 
106
 
 
 
 
 
 
 
107
 
 
 
 
108
 
 
 
 
 
 
109
 
 
 
 
 
110
 
 
 
111
 
 
112
 
113
-
114
-
 
 
115
 
 
 
 
 
 
 
 
 
116
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
117
 
 
 
 
 
 
 
 
 
 
 
 
 
118
 
 
 
 
 
 
 
 
 
 
119
 
 
 
 
 
 
 
 
 
 
 
 
120
 
121
- // add_settings_section( 'sociable_options', __( 'General Options' ), array( 'sociable_Admin_Options' , 'general_options_callback' ) , 'sociable_options' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
 
 
 
123
 
 
124
 
 
125
 
 
126
 
 
 
 
 
127
 
 
 
 
 
 
128
 
129
-
 
 
 
 
 
 
 
 
 
 
130
 
 
 
131
 
 
 
 
 
132
 
 
 
133
 
 
 
 
 
134
 
 
135
 
 
136
 
137
-
 
 
 
 
 
138
 
 
 
139
 
 
140
 
 
141
 
 
142
 
 
143
 
 
 
 
 
 
 
 
 
 
144
 
145
- register_setting( 'skyscraper_options_group' , 'skyscraper_options' );
146
-
147
-
148
-
 
 
 
 
149
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
150
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
151
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
152
 
 
 
 
 
153
 
 
 
 
 
 
 
 
 
 
 
 
 
154
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
155
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
156
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
157
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
158
 
159
 
 
 
 
 
 
160
 
161
- // add_settings_section( 'sociable_locations', __( 'Locations' ), array( 'sociable_Admin_Options' , 'location_options_callback' ) , 'skyscraper_options' );
162
 
 
163
 
 
164
 
 
165
 
 
166
 
 
167
 
 
168
 
169
-
170
 
 
171
 
 
172
 
 
173
 
 
174
 
 
175
 
 
176
 
177
- }
178
 
 
179
 
 
 
 
 
 
 
180
 
 
181
 
 
182
 
 
183
 
 
184
 
185
-
186
 
 
187
 
 
188
 
 
189
 
 
190
 
 
191
 
 
192
 
193
- function skyscraper_init(){
194
 
 
195
 
 
196
 
 
197
 
 
198
 
 
199
 
 
200
 
201
-
 
 
202
 
 
203
 
 
204
 
205
- register_setting( 'skyscraper_options_group' , 'skyscraper_options' );
206
 
 
207
 
 
208
 
209
- add_settings_section( 'sociable_locations', __( 'Locations' ), array( 'sociable_Admin_Options' , 'location_options_callback' ) , 'skyscraper_options' );
210
 
 
211
 
 
212
 
 
213
 
 
214
 
 
215
 
 
216
 
217
-
218
 
 
219
 
 
220
 
 
221
 
 
222
 
 
223
 
 
224
 
225
- //Add All The Settings Fields
226
 
 
227
 
 
228
 
 
229
 
 
230
 
 
231
 
 
232
 
233
- //self::add_settings_fields();
234
 
 
235
 
 
236
 
 
237
 
 
238
 
 
239
 
 
 
 
 
240
 
241
- }
242
 
 
243
 
 
244
 
 
245
 
 
246
 
 
247
 
 
248
 
249
-
250
 
 
251
 
 
252
 
 
253
 
 
254
 
 
255
 
 
256
 
257
- function Select_Sociable_Page(){
258
 
 
259
 
 
260
 
 
261
 
 
262
 
 
263
 
 
264
 
265
-
266
 
 
267
 
 
268
 
 
269
 
 
 
 
 
270
 
 
271
 
 
272
 
273
- global $sociable_options;
274
 
 
275
 
 
276
 
 
277
 
 
278
 
 
279
 
 
280
 
281
- ?>
282
 
 
283
 
 
284
 
 
285
 
 
286
 
 
287
 
 
288
 
289
-
290
 
 
291
 
 
292
 
 
293
 
 
294
 
 
295
 
 
296
 
297
-
298
 
 
299
 
 
300
 
 
301
 
 
302
 
 
303
 
 
304
 
305
-
306
 
 
307
 
 
308
 
 
309
 
 
310
 
 
311
 
 
312
 
313
- <div class="wrap" style="margin-top:25px">
314
 
 
315
 
 
316
 
 
317
 
 
318
 
 
319
 
 
320
 
321
-
322
 
 
323
 
 
324
 
 
325
 
 
326
 
 
327
 
 
328
 
329
- <div style="width: 80%; margin-left: 25px; color: rgb(147, 147, 147); font-weight: bold; font-size: 15px;">
330
 
 
331
 
 
332
 
 
333
 
 
334
 
 
335
 
 
336
 
337
- Congrats! You are joining the leader in the sharing space of WordPress plugins. Started more than 2 years ago, and with over 1,5mm downloads now, here comes the latest version 4.1 <br /><br />
338
 
 
339
 
 
340
 
 
341
 
 
 
 
342
 
 
343
 
 
344
 
345
- You can select Sociable Classic and/or Sociable Skyscraper to spread the World, increase your traffic and your reader's ability to share your posts! <br /> <br />
346
 
 
347
 
 
348
 
 
349
 
 
350
 
 
351
 
 
352
 
353
- </div>
354
 
 
355
 
 
356
 
 
357
 
 
358
 
 
359
 
 
360
 
361
-
362
 
 
363
 
 
364
 
 
365
 
 
366
 
 
367
 
 
368
 
369
- <div class="wrap" style="width:42%;float:left">
370
 
 
 
 
371
 
 
372
 
 
373
 
 
 
 
 
 
374
 
 
 
 
 
 
 
 
 
 
375
 
 
 
 
 
 
 
 
 
376
 
377
- <?php //wp_nonce_field('sociable-config'); ?>
378
-
379
-
380
-
381
-
382
-
383
-
384
-
385
-
386
-
387
-
388
-
389
-
390
-
391
-
392
-
393
- <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px">
394
-
395
-
396
-
397
-
398
-
399
-
400
-
401
-
402
-
403
-
404
-
405
 
 
 
 
 
 
 
 
 
 
 
406
 
 
 
 
 
 
 
 
 
 
407
 
 
 
 
 
 
 
 
 
 
 
 
408
 
409
-
 
 
 
 
 
 
 
 
 
410
 
 
 
 
 
 
 
 
 
 
 
411
 
 
 
 
 
 
 
 
 
 
 
412
 
 
 
 
 
 
 
 
 
 
413
 
 
 
 
 
 
 
 
 
 
414
 
 
 
 
 
 
 
 
 
 
 
415
 
 
 
 
 
 
 
 
 
 
 
 
416
 
 
 
 
 
 
 
 
 
417
  <TR>
418
-
419
-
420
-
421
-
422
-
423
-
424
-
425
- <TD class="Border-Left" ></TD><TD class="BG-Middle" >Skyscraper Sociable</TD><TD class="Border-Right"></TD>
426
-
427
-
428
-
429
-
430
-
431
-
432
-
433
  </TR>
434
 
 
 
 
 
 
 
 
 
 
 
 
435
 
436
-
437
-
438
-
439
-
440
-
441
- <TR>
442
-
443
-
444
-
445
-
446
-
447
-
448
-
449
- <TD colspan="3" >
450
-
451
-
452
-
453
-
454
-
455
-
456
-
457
- <table>
458
-
459
-
460
-
461
-
462
-
463
-
464
-
465
- <tr>
466
-
467
-
468
-
469
-
470
-
471
-
472
-
473
- <td>
474
-
475
-
476
-
477
-
478
-
479
-
480
-
481
- <img src="<?php echo SOCIABLE_HTTP_PATH ?>images/skyphoto.png" style="margin-left:-5px;margin-top:20px;" />
482
-
483
-
484
-
485
-
486
-
487
-
488
-
489
  </td>
 
 
 
490
 
 
 
 
 
 
 
 
 
 
 
491
 
 
 
 
 
 
 
 
 
 
492
 
493
-
494
-
495
-
496
-
497
- <td valign="top" >
498
-
499
-
500
-
501
-
502
-
503
-
504
-
505
- <br/><br/>
506
-
507
-
508
-
509
-
510
-
511
-
512
-
513
- <span style="font-size:18px;color:#18305e;font-weight:bold;">Skyscraper Sociable</span>
514
-
515
-
516
-
517
-
518
-
519
-
520
-
521
- <p style="font-size:12px;color:#939393;font-weight:bold;" >
522
-
523
-
524
-
525
-
526
-
527
-
528
-
529
- Now introducing the ultimate advanced and feature packed plugin for setting up rating system on your WordPress blog.
530
-
531
-
532
-
533
-
534
-
535
-
536
-
537
- <br/ ><br/ >
538
-
539
-
540
-
541
-
542
-
543
-
544
-
545
- Sociable Skyscraper allows you to set up different rating systems for posts, pages and comments with great degree of customization.
546
-
547
-
548
-
549
-
550
-
551
-
552
-
553
- <br/ ><br/ >
554
-
555
-
556
-
557
-
558
-
559
-
560
-
561
- List of features is so smart and non-stop growing:
562
-
563
-
564
-
565
-
566
-
567
-
568
-
569
- <br/ ><br/ >
570
-
571
-
572
-
573
-
574
-
575
-
576
-
577
- You can get more "Sociable" with Sociable Skyscraper and easily getting
578
-
579
-
580
-
581
-
582
-
583
-
584
-
585
- Rating and Review of: posts, pages, comments, Facebook, G+, LinkedIN,
586
-
587
-
588
-
589
-
590
-
591
-
592
-
593
- Twitter as well as multiple ratings for posts and pages. Visitor's counter,
594
-
595
-
596
-
597
-
598
-
599
-
600
-
601
- visitor's from Facebook and Twitter... As a plus you get an easy way to get
602
-
603
-
604
-
605
-
606
-
607
-
608
-
609
- TOP or HOME from Sociable Skyscraper.
610
-
611
-
612
-
613
-
614
-
615
-
616
-
617
- <br/ ><br/ >
618
-
619
-
620
-
621
-
622
-
623
-
624
-
625
- Enjoy it now!!!
626
-
627
-
628
-
629
-
630
-
631
-
632
-
633
- <br/ ><br/ >
634
-
635
-
636
-
637
-
638
-
639
-
640
-
641
- Be Sociable, Share!!!
642
-
643
-
644
-
645
-
646
-
647
-
648
-
649
- </p>
650
-
651
-
652
-
653
-
654
-
655
-
656
-
657
-
658
-
659
-
660
-
661
-
662
-
663
-
664
-
665
- <a href="?page=skyscraper_options" style="color:#ffffff;text-decoration:none;" ><img src="<?php echo SOCIABLE_HTTP_PATH ?>images/button_newsky.png" ></a>
666
-
667
-
668
-
669
-
670
-
671
-
672
-
673
-
674
-
675
-
676
-
677
-
678
-
679
-
680
-
681
- </td>
682
-
683
-
684
-
685
-
686
-
687
-
688
-
689
- </tr>
690
-
691
-
692
-
693
-
694
-
695
-
696
-
697
- </table>
698
-
699
-
700
-
701
-
702
-
703
-
704
-
705
- </TD>
706
-
707
-
708
-
709
-
710
-
711
-
712
-
713
-
714
-
715
-
716
-
717
-
718
-
719
-
720
-
721
-
722
-
723
-
724
-
725
-
726
-
727
-
728
-
729
- </TR>
730
-
731
-
732
-
733
-
734
-
735
-
736
-
737
- </TABLE>
738
-
739
-
740
-
741
-
742
-
743
-
744
-
745
- <BR/>
746
-
747
-
748
-
749
-
750
-
751
-
752
-
753
-
754
-
755
-
756
-
757
-
758
-
759
-
760
-
761
  </div>
762
-
763
-
764
-
765
-
766
-
767
-
768
-
769
- <div class="wrap" style="margin-left:30px;width:48%;float:left">
770
-
771
-
772
-
773
-
774
-
775
-
776
-
777
- <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px">
778
-
779
-
780
-
781
-
782
-
783
-
784
-
785
- <TR>
786
-
787
-
788
-
789
-
790
-
791
-
792
-
793
- <TD class="Border-Left" ></TD><TD class="BG-Middle" >Classic Sociable</TD><TD class="Border-Right"></TD>
794
-
795
-
796
-
797
-
798
-
799
-
800
-
801
- </TR>
802
-
803
-
804
-
805
-
806
-
807
-
808
-
809
- <TR>
810
-
811
-
812
-
813
-
814
-
815
-
816
-
817
- <TD colspan="3" >
818
-
819
-
820
-
821
-
822
-
823
-
824
-
825
- <div style="margin-left:5px;">
826
-
827
-
828
-
829
-
830
-
831
-
832
-
833
- <br /><br />
834
-
835
-
836
-
837
-
838
-
839
-
840
-
841
- <span style="font-size:18px;color:#18305e;font-weight:bold;">Classic Sociable</span>
842
-
843
-
844
-
845
-
846
-
847
-
848
-
849
-
850
-
851
-
852
-
853
-
854
-
855
-
856
-
857
- <p style="font-size:12px;color:#939393;font-weight:bold;" >
858
-
859
-
860
-
861
-
862
-
863
-
864
-
865
- We've improved our visual interface, the default icons are now much
866
-
867
-
868
-
869
-
870
-
871
-
872
-
873
- <br/ >
874
-
875
-
876
-
877
-
878
-
879
-
880
-
881
- more appealing, and a touch bit larger (you do want your readers to
882
-
883
-
884
-
885
-
886
-
887
-
888
-
889
- <br/ >
890
-
891
-
892
-
893
-
894
-
895
-
896
-
897
- share your posts, don't you? :) Get it now!
898
-
899
-
900
-
901
-
902
-
903
-
904
-
905
- </p>
906
-
907
-
908
-
909
-
910
-
911
-
912
-
913
- <img src="<?php echo SOCIABLE_HTTP_PATH ?>images/socciable_old.png" ><br/>
914
-
915
-
916
-
917
-
918
-
919
-
920
-
921
- <div style="height: 176px;"></div>
922
-
923
-
924
-
925
-
926
-
927
-
928
-
929
- <a href="?page=sociable_options" style="color:#ffffff;text-decoration:none;" ><img src="<?php echo SOCIABLE_HTTP_PATH ?>images/button_sociabb.png" ></a>
930
-
931
-
932
-
933
-
934
-
935
-
936
-
937
- </div>
938
-
939
-
940
-
941
-
942
-
943
-
944
-
945
- </TD>
946
-
947
-
948
-
949
-
950
-
951
-
952
-
953
-
954
-
955
-
956
-
957
-
958
-
959
-
960
-
961
- </TR>
962
-
963
-
964
-
965
-
966
-
967
-
968
-
969
- </TABLE>
970
-
971
-
972
-
973
-
974
-
975
-
976
-
977
- <BR/>
978
-
979
-
980
-
981
-
982
-
983
-
984
-
985
-
986
-
987
-
988
-
989
-
990
-
991
-
992
-
993
  </div>
994
-
995
-
996
-
997
-
998
-
999
-
1000
-
1001
  </div>
1002
-
1003
-
1004
-
1005
- <?php }
1006
-
1007
-
1008
-
1009
-
1010
-
1011
-
1012
-
1013
 
1014
-
1015
-
1016
-
1017
-
1018
-
1019
-
1020
-
1021
- function create_select_options($value){
1022
-
1023
-
1024
-
1025
-
1026
-
1027
-
1028
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1029
 
1030
-
1031
-
1032
-
1033
-
1034
-
1035
-
1036
-
1037
- for($i=3; $i<=9; ){
1038
-
1039
-
1040
-
1041
-
1042
-
1043
-
1044
-
1045
-
1046
-
1047
-
1048
-
1049
-
1050
-
1051
-
1052
-
1053
- $sel = "";
1054
-
1055
-
1056
-
1057
-
1058
-
1059
-
1060
-
1061
- if ($value == $i){
1062
-
1063
-
1064
-
1065
-
1066
-
1067
-
1068
-
1069
- $sel = "selected";
1070
-
1071
-
1072
-
1073
-
1074
-
1075
-
1076
-
1077
- }
1078
-
1079
-
1080
-
1081
-
1082
-
1083
-
1084
-
1085
- echo "<option ".$sel." value='".$i."'> latest ".$i."</option>";
1086
-
1087
-
1088
-
1089
-
1090
-
1091
-
1092
-
1093
-
1094
-
1095
-
1096
-
1097
-
1098
-
1099
-
1100
-
1101
- $i = $i+3;
1102
-
1103
-
1104
-
1105
-
1106
-
1107
-
1108
-
1109
- }
1110
-
1111
-
1112
-
1113
- }
1114
-
1115
-
1116
-
1117
-
1118
-
1119
-
1120
-
1121
- function Create_Options_Page_Skycraper(){
1122
-
1123
-
1124
- global $skyscraper_options;
1125
-
1126
-
1127
- ?>
1128
-
1129
-
1130
-
1131
-
1132
-
1133
- <div class="wrap" style="width:48%;float:left">
1134
-
1135
-
1136
-
1137
-
1138
-
1139
- <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >
1140
-
1141
-
1142
-
1143
-
1144
-
1145
- <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>
1146
-
1147
-
1148
-
1149
-
1150
-
1151
-
1152
-
1153
- <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://blogplay.com" data-text="Check the sociable plugin [sociable]" data-via="sociablesite" data-hashtags="sociable">Tweet</a>
1154
-
1155
-
1156
-
1157
-
1158
-
1159
-
1160
-
1161
-
1162
-
1163
- <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>
1164
-
1165
-
1166
-
1167
-
1168
-
1169
-
1170
-
1171
- <br />
1172
-
1173
-
1174
-
1175
- </div>
1176
-
1177
-
1178
-
1179
-
1180
-
1181
- <form method="post" action="options.php" id="form1" autocomplete="off">
1182
-
1183
-
1184
-
1185
- <?php wp_nonce_field('sociable-config'); ?>
1186
-
1187
-
1188
-
1189
-
1190
-
1191
-
1192
-
1193
- <INPUT type="hidden" class="version-INPUT" id="version" name="skyscraper_options[version]" value="<?php echo $skyscraper_options["version"];?>" />
1194
-
1195
-
1196
-
1197
-
1198
-
1199
-
1200
-
1201
- <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px">
1202
-
1203
-
1204
-
1205
-
1206
-
1207
-
1208
-
1209
- <TR>
1210
-
1211
-
1212
-
1213
-
1214
-
1215
-
1216
-
1217
- <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Style Options","sociable");?></TD><TD class="Border-Right"></TD>
1218
-
1219
-
1220
-
1221
-
1222
-
1223
-
1224
-
1225
- </TR>
1226
-
1227
-
1228
-
1229
-
1230
-
1231
-
1232
-
1233
- </TABLE>
1234
-
1235
-
1236
-
1237
-
1238
-
1239
-
1240
-
1241
- <BR/>
1242
-
1243
-
1244
-
1245
-
1246
-
1247
-
1248
-
1249
- <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >
1250
-
1251
-
1252
-
1253
-
1254
-
1255
-
1256
-
1257
- <?php _e("Text Size","sociable");?>:
1258
-
1259
-
1260
-
1261
-
1262
-
1263
-
1264
-
1265
- <select id="text_size" name="skyscraper_options[text_size]" style="margin-left:73px">
1266
-
1267
-
1268
-
1269
-
1270
-
1271
-
1272
-
1273
- <?php
1274
-
1275
-
1276
-
1277
-
1278
-
1279
-
1280
-
1281
- for($px=10; $px <= 20; $px++) {
1282
-
1283
-
1284
-
1285
- $sel = "";
1286
-
1287
-
1288
-
1289
- if($px== $skyscraper_options["text_size"])$sel = "selected";
1290
-
1291
-
1292
-
1293
-
1294
-
1295
- ?>
1296
-
1297
-
1298
-
1299
- <option <?php echo $sel?> value="<?php echo $px?>"><?php echo $px?>px</option>
1300
-
1301
-
1302
-
1303
-
1304
-
1305
- <?php
1306
-
1307
-
1308
-
1309
- }?>
1310
-
1311
-
1312
-
1313
- </select>
1314
-
1315
-
1316
-
1317
- </DIV>
1318
-
1319
-
1320
-
1321
-
1322
-
1323
- <DIV style="margin:0 0 0 24px" class="Post-subTXT" id="Post-subTXT" ><?php _e("Widget Width","sociable");?>:
1324
-
1325
-
1326
-
1327
-
1328
-
1329
-
1330
-
1331
- <select id="text_size" id="widget_width" name="skyscraper_options[widget_width]" style="margin-left:50px">
1332
-
1333
-
1334
-
1335
-
1336
-
1337
- <?php
1338
-
1339
-
1340
-
1341
- for($wi=70; $wi <= 90; ) {
1342
-
1343
-
1344
-
1345
- $sel = "";
1346
-
1347
-
1348
-
1349
-
1350
-
1351
-
1352
-
1353
- if($wi== $skyscraper_options["widget_width"])$sel = "selected";
1354
-
1355
- ?>
1356
-
1357
- <option <?php echo $sel?> value="<?php echo $wi?>"><?php echo $wi?>px</option>
1358
-
1359
- <?php
1360
-
1361
-
1362
-
1363
-
1364
-
1365
-
1366
-
1367
- $wi +=5;
1368
-
1369
-
1370
-
1371
-
1372
-
1373
-
1374
-
1375
- }?>
1376
-
1377
-
1378
-
1379
-
1380
-
1381
-
1382
-
1383
- </select>
1384
-
1385
-
1386
-
1387
- </DIV>
1388
-
1389
-
1390
-
1391
- <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" ><?php _e("Background Color","sociable");?>:
1392
-
1393
-
1394
-
1395
-
1396
-
1397
- <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)
1398
-
1399
-
1400
-
1401
- </DIV>
1402
-
1403
-
1404
-
1405
-
1406
-
1407
- <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" ><?php _e("Labels Color","sociable");?>:
1408
-
1409
-
1410
-
1411
-
1412
-
1413
- <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)
1414
-
1415
-
1416
-
1417
-
1418
-
1419
- </DIV>
1420
-
1421
-
1422
-
1423
- <BR/>
1424
-
1425
-
1426
-
1427
-
1428
-
1429
- <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Tagline-Title">
1430
-
1431
-
1432
-
1433
- <TR>
1434
-
1435
-
1436
-
1437
- <TD class="Border-Left" ></TD><TD class="BG-Middle" >
1438
-
1439
-
1440
-
1441
- Social Options
1442
-
1443
-
1444
-
1445
- </TD>
1446
-
1447
-
1448
-
1449
- <TD class="Border-Right"></TD>
1450
-
1451
-
1452
-
1453
- </TR>
1454
-
1455
-
1456
-
1457
- </TABLE>
1458
-
1459
-
1460
-
1461
- <BR/>
1462
-
1463
-
1464
-
1465
- <DIV style="margin:0 0 0 25px" class="Post-subTXT">
1466
-
1467
-
1468
-
1469
- <?php _e("Your Twitter username","sociable");?>:<?php
1470
-
1471
-
1472
-
1473
- if (!empty($skyscraper_options["twitter_username"])){
1474
-
1475
-
1476
-
1477
- $twitter_username = $skyscraper_options["twitter_username"];
1478
-
1479
-
1480
-
1481
- }
1482
-
1483
-
1484
-
1485
- else{
1486
-
1487
-
1488
-
1489
- $twitter_username = "@";
1490
-
1491
-
1492
-
1493
- }
1494
-
1495
- ?>
1496
-
1497
-
1498
-
1499
- <input type="text" name="skyscraper_options[twitter_username]" value="<?php echo $twitter_username?>" />
1500
-
1501
-
1502
-
1503
-
1504
-
1505
-
1506
-
1507
- <select name="skyscraper_options[num_tweets]" id="num_tweets">
1508
-
1509
-
1510
-
1511
-
1512
-
1513
-
1514
-
1515
- <?php self:: create_select_options($skyscraper_options["num_tweets"]) ?>
1516
-
1517
-
1518
-
1519
-
1520
-
1521
-
1522
-
1523
- </select>
1524
-
1525
-
1526
-
1527
-
1528
-
1529
-
1530
-
1531
- </DIV>
1532
-
1533
- <DIV style="border: 1px solid rgb(223, 223, 223); margin-left: 22px; font-size: 10px; font-style: italic; width: 327px; padding: 0px 11px;">
1534
- <p>This feature will read your latest tweets and mentions posted by other users and show them on skyscraper sociable.
1535
- <p>Sociable will save and use your twitter username only to read tweets. </p>
1536
-
1537
- <p>Your visitors can read the information that you are sharing.</p>
1538
- <p>If you agree check here:
1539
-
1540
- <?php
1541
-
1542
- $sel = "";
1543
- if (isset($skyscraper_options["accept_read_twitter"])){
1544
-
1545
- if ($skyscraper_options["accept_read_twitter"] == 1){
1546
-
1547
- $sel = "checked";
1548
- }
1549
- }
1550
- ?>
1551
- <input type="checkbox" <?php echo $sel?> name="skyscraper_options[accept_read_twitter]" value="1"/>
1552
- </p>
1553
- </DIV>
1554
-
1555
- <BR/>
1556
- <BR/>
1557
-
1558
-
1559
-
1560
-
1561
-
1562
- <DIV style="margin:0 0 0 25px" class="Post-subTXT">
1563
-
1564
-
1565
-
1566
-
1567
-
1568
-
1569
-
1570
- <?php _e("Your RSS feed","sociable");?>:
1571
-
1572
-
1573
-
1574
-
1575
-
1576
-
1577
-
1578
- <?php
1579
-
1580
-
1581
-
1582
-
1583
-
1584
-
1585
-
1586
-
1587
-
1588
-
1589
-
1590
-
1591
-
1592
-
1593
-
1594
- if (!empty($skyscraper_options["rss_feed"])){
1595
-
1596
-
1597
-
1598
-
1599
-
1600
-
1601
-
1602
- $rss_feed = $skyscraper_options["rss_feed"];
1603
-
1604
-
1605
-
1606
-
1607
-
1608
-
1609
-
1610
- }
1611
-
1612
-
1613
-
1614
-
1615
-
1616
-
1617
-
1618
- else{
1619
-
1620
-
1621
-
1622
-
1623
-
1624
-
1625
-
1626
- $rss_feed = "http://";
1627
-
1628
-
1629
-
1630
-
1631
-
1632
-
1633
-
1634
- }
1635
-
1636
-
1637
-
1638
-
1639
-
1640
-
1641
-
1642
- ?>
1643
-
1644
-
1645
-
1646
-
1647
-
1648
-
1649
-
1650
- <input type="text" name="skyscraper_options[rss_feed]" style="margin-left: 46px;" value="<?php echo $rss_feed?>" />
1651
-
1652
-
1653
-
1654
-
1655
-
1656
-
1657
-
1658
- <select name="skyscraper_options[num_rss]" id="num_rss">
1659
-
1660
-
1661
-
1662
-
1663
-
1664
-
1665
-
1666
- <?php self:: create_select_options($skyscraper_options["num_rss"]) ?>
1667
-
1668
-
1669
-
1670
-
1671
-
1672
-
1673
-
1674
- </select>
1675
-
1676
-
1677
-
1678
-
1679
-
1680
-
1681
-
1682
- </DIV>
1683
-
1684
-
1685
- <DIV style="border: 1px solid rgb(223, 223, 223); margin-left: 22px; font-size: 10px; font-style: italic; width: 327px; padding: 0px 11px;">
1686
- <p>This feature will read your rss posts and show them on skyscraper sociable. </p>
1687
- <p>Sociable will save and use the rss url only to read posts.</p>
1688
- <p>Your visitors can read the information that you are sharing.</p>
1689
- <p>If you agree check here:
1690
-
1691
- <?php
1692
-
1693
- $sel = "";
1694
- if (isset($skyscraper_options["accept_read_rss"])){
1695
-
1696
- if ($skyscraper_options["accept_read_rss"] == 1){
1697
-
1698
- $sel = "checked";
1699
- }
1700
- }
1701
- ?>
1702
-
1703
- <input type="checkbox" <?php echo $sel?> name="skyscraper_options[accept_read_rss]" value="1"/> </p>
1704
- </DIV>
1705
-
1706
-
1707
-
1708
-
1709
- <BR/>
1710
-
1711
-
1712
-
1713
-
1714
-
1715
-
1716
-
1717
- <DIV style="margin:0 0 0 25px" class="Post-subTXT">
1718
-
1719
-
1720
-
1721
-
1722
-
1723
-
1724
-
1725
- <?php
1726
-
1727
-
1728
-
1729
-
1730
-
1731
-
1732
-
1733
- $checked = "";
1734
-
1735
-
1736
-
1737
-
1738
-
1739
-
1740
-
1741
- if (isset($skyscraper_options["counters"]["check"])){
1742
-
1743
-
1744
-
1745
-
1746
-
1747
-
1748
-
1749
- $checked = "checked";
1750
-
1751
-
1752
-
1753
-
1754
-
1755
-
1756
-
1757
- }
1758
-
1759
-
1760
-
1761
-
1762
-
1763
-
1764
-
1765
-
1766
-
1767
-
1768
-
1769
-
1770
-
1771
-
1772
-
1773
- $folded = "";
1774
-
1775
-
1776
-
1777
-
1778
-
1779
-
1780
-
1781
- $unfolded= "";
1782
-
1783
-
1784
-
1785
-
1786
-
1787
-
1788
-
1789
- if (isset($skyscraper_options["counters"]["folded"])){
1790
-
1791
-
1792
-
1793
-
1794
-
1795
-
1796
-
1797
- if($skyscraper_options["counters"]["folded"] == "1"){
1798
-
1799
-
1800
-
1801
-
1802
-
1803
-
1804
-
1805
- $folded = "checked";
1806
-
1807
-
1808
-
1809
-
1810
-
1811
-
1812
-
1813
- $unfolded= "";
1814
-
1815
-
1816
-
1817
-
1818
-
1819
-
1820
-
1821
- }else{
1822
-
1823
-
1824
-
1825
-
1826
-
1827
-
1828
-
1829
- $unfolded = "checked";
1830
-
1831
-
1832
-
1833
-
1834
-
1835
-
1836
-
1837
- $folded= "";
1838
-
1839
-
1840
-
1841
-
1842
-
1843
-
1844
-
1845
- }
1846
-
1847
-
1848
-
1849
-
1850
-
1851
-
1852
-
1853
- }
1854
-
1855
-
1856
-
1857
-
1858
-
1859
-
1860
-
1861
-
1862
-
1863
-
1864
-
1865
-
1866
-
1867
-
1868
-
1869
-
1870
-
1871
-
1872
-
1873
-
1874
-
1875
-
1876
-
1877
- ?>
1878
-
1879
-
1880
-
1881
-
1882
-
1883
-
1884
-
1885
- <input type="checkbox" <?php echo $checked ?> name="skyscraper_options[counters][check]" id="" />
1886
-
1887
-
1888
-
1889
-
1890
-
1891
-
1892
-
1893
- Counters
1894
-
1895
-
1896
-
1897
-
1898
-
1899
-
1900
-
1901
- <input name="skyscraper_options[counters][folded]" <?php echo $unfolded?> value="0" type="radio">Folded
1902
-
1903
-
1904
-
1905
-
1906
-
1907
-
1908
-
1909
- <input name="skyscraper_options[counters][folded]" <?php echo $folded?> value="1" type="radio">Unfolded
1910
-
1911
-
1912
-
1913
-
1914
-
1915
-
1916
-
1917
- </DIV>
1918
-
1919
- <BR/>
1920
- <DIV style="border: 1px solid rgb(223, 223, 223); margin-left: 22px; font-size: 10px; font-style: italic; width: 327px; padding: 0px 11px;">
1921
- <p>This feature load Facebook Counter, Twitter Counter and Google Plus Counter.</p>
1922
- <p>Will load scripts from each site and show information of yours visitors.</p>
1923
- </p>
1924
- </DIV>
1925
-
1926
-
1927
-
1928
-
1929
- <BR/>
1930
-
1931
-
1932
-
1933
-
1934
-
1935
-
1936
-
1937
- <DIV style="margin:0 0 0 25px" class="Post-subTXT">
1938
-
1939
-
1940
-
1941
-
1942
-
1943
-
1944
-
1945
- <?php
1946
-
1947
-
1948
-
1949
-
1950
-
1951
-
1952
-
1953
- $checked = "";
1954
-
1955
-
1956
-
1957
-
1958
-
1959
-
1960
-
1961
- if (isset($skyscraper_options["share"]["check"])){
1962
-
1963
-
1964
-
1965
-
1966
-
1967
-
1968
-
1969
- $checked = "checked";
1970
-
1971
-
1972
-
1973
-
1974
-
1975
-
1976
-
1977
- }
1978
-
1979
-
1980
-
1981
-
1982
-
1983
-
1984
-
1985
-
1986
-
1987
-
1988
-
1989
-
1990
-
1991
-
1992
-
1993
- if (isset($skyscraper_options["share"]["folded"])){
1994
-
1995
-
1996
-
1997
-
1998
-
1999
-
2000
-
2001
- if($skyscraper_options["share"]["folded"] == "1"){
2002
-
2003
-
2004
-
2005
-
2006
-
2007
-
2008
-
2009
- $folded = "checked";
2010
-
2011
-
2012
-
2013
-
2014
-
2015
-
2016
-
2017
- $unfolded= "";
2018
-
2019
-
2020
-
2021
-
2022
-
2023
-
2024
-
2025
- }else{
2026
-
2027
-
2028
-
2029
-
2030
-
2031
-
2032
-
2033
- $unfolded = "checked";
2034
-
2035
-
2036
-
2037
-
2038
-
2039
-
2040
-
2041
- $folded= "";
2042
-
2043
-
2044
-
2045
-
2046
-
2047
-
2048
-
2049
- }
2050
-
2051
-
2052
-
2053
-
2054
-
2055
-
2056
-
2057
- }
2058
-
2059
-
2060
-
2061
-
2062
-
2063
-
2064
-
2065
-
2066
-
2067
-
2068
-
2069
-
2070
-
2071
-
2072
-
2073
-
2074
-
2075
-
2076
-
2077
-
2078
-
2079
-
2080
-
2081
- ?>
2082
-
2083
-
2084
-
2085
-
2086
-
2087
-
2088
-
2089
-
2090
-
2091
-
2092
-
2093
-
2094
-
2095
-
2096
-
2097
- <input type="checkbox" <?php echo $checked ?> name="skyscraper_options[share][check]" /> Share
2098
-
2099
-
2100
-
2101
-
2102
-
2103
-
2104
-
2105
- <input style="margin-left:19px" <?php echo $unfolded?> value="0" name="skyscraper_options[share][folded]" type="radio">Folded
2106
-
2107
-
2108
-
2109
-
2110
-
2111
-
2112
-
2113
- <input name="skyscraper_options[share][folded]" <?php echo $folded?> value="1" type="radio">Unfolded
2114
-
2115
-
2116
-
2117
-
2118
-
2119
-
2120
-
2121
- </DIV>
2122
-
2123
-
2124
-
2125
-
2126
-
2127
-
2128
-
2129
- <DIV class="Content-Box" id="Preview-Content">
2130
-
2131
-
2132
-
2133
-
2134
-
2135
-
2136
-
2137
-
2138
-
2139
-
2140
-
2141
-
2142
-
2143
-
2144
-
2145
- </DIV>
2146
-
2147
-
2148
-
2149
-
2150
-
2151
-
2152
-
2153
- <div style="clear:both"></div>
2154
-
2155
-
2156
-
2157
-
2158
-
2159
-
2160
-
2161
-
2162
-
2163
-
2164
-
2165
-
2166
-
2167
-
2168
-
2169
- <BR/>
2170
-
2171
-
2172
-
2173
-
2174
-
2175
-
2176
-
2177
- <DIV class="Content-Box" id="Preview-Content">
2178
-
2179
-
2180
-
2181
-
2182
-
2183
-
2184
-
2185
- <ul class="items_li">
2186
-
2187
-
2188
-
2189
-
2190
-
2191
-
2192
-
2193
- <li>
2194
-
2195
-
2196
-
2197
-
2198
-
2199
-
2200
-
2201
- <?php
2202
-
2203
-
2204
-
2205
-
2206
-
2207
-
2208
-
2209
- $checked = "";
2210
-
2211
-
2212
-
2213
-
2214
-
2215
-
2216
-
2217
- if (isset($skyscraper_options['follow_us_check']) && $skyscraper_options['follow_us_check'] == "on"){
2218
-
2219
-
2220
-
2221
-
2222
-
2223
-
2224
-
2225
- $checked = "checked";
2226
-
2227
-
2228
-
2229
-
2230
-
2231
-
2232
-
2233
- }
2234
-
2235
-
2236
-
2237
-
2238
-
2239
-
2240
-
2241
- ?>
2242
-
2243
-
2244
-
2245
-
2246
-
2247
-
2248
-
2249
- Follow Us
2250
-
2251
-
2252
-
2253
-
2254
-
2255
-
2256
-
2257
- <ul class="sub_item_li">
2258
-
2259
-
2260
-
2261
-
2262
-
2263
-
2264
-
2265
- <li>
2266
-
2267
-
2268
-
2269
-
2270
-
2271
-
2272
-
2273
- <?php
2274
-
2275
-
2276
-
2277
-
2278
-
2279
-
2280
-
2281
- $checked = "";
2282
-
2283
-
2284
-
2285
-
2286
-
2287
-
2288
-
2289
- if (isset($skyscraper_options['follow_us']['twitter']["active"]) && $skyscraper_options['follow_us']['twitter']["active"] == "on"){
2290
-
2291
-
2292
-
2293
-
2294
-
2295
-
2296
-
2297
- $checked = "checked";
2298
-
2299
-
2300
-
2301
-
2302
-
2303
-
2304
-
2305
- }
2306
-
2307
-
2308
-
2309
-
2310
-
2311
-
2312
-
2313
- ?>
2314
-
2315
-
2316
-
2317
-
2318
-
2319
-
2320
-
2321
- <input <?php echo $checked ?> name="skyscraper_options[follow_us][twitter][active]" type="checkbox" style="padding-bottom:5px" />
2322
-
2323
-
2324
-
2325
-
2326
-
2327
-
2328
-
2329
- <?php
2330
-
2331
-
2332
-
2333
-
2334
-
2335
-
2336
-
2337
- $account = "http://twitter.com/";
2338
-
2339
-
2340
-
2341
-
2342
-
2343
-
2344
-
2345
- if(!empty($skyscraper_options["follow_us"]["twitter"]["account"])){
2346
-
2347
-
2348
-
2349
-
2350
-
2351
-
2352
-
2353
- $account = $skyscraper_options["follow_us"]["twitter"]["account"];
2354
-
2355
-
2356
-
2357
-
2358
-
2359
-
2360
-
2361
- }
2362
-
2363
-
2364
-
2365
-
2366
-
2367
-
2368
-
2369
- ?>
2370
-
2371
-
2372
-
2373
-
2374
-
2375
-
2376
-
2377
- <input type="hidden" value="t.png" name="skyscraper_options[follow_us][twitter][logo]" />
2378
-
2379
-
2380
-
2381
-
2382
-
2383
-
2384
-
2385
- <img style="padding-bottom:5px" src="<?php echo SOCIABLE_HTTP_PATH ?>images/toolbar/t.png"/>
2386
-
2387
-
2388
-
2389
-
2390
-
2391
-
2392
-
2393
- <input size="40" name="skyscraper_options[follow_us][twitter][account]" value="<?php echo $account?>" type="text" />
2394
-
2395
-
2396
-
2397
-
2398
-
2399
-
2400
-
2401
- </li>
2402
-
2403
-
2404
-
2405
-
2406
-
2407
-
2408
-
2409
- <li>
2410
-
2411
-
2412
-
2413
-
2414
-
2415
-
2416
-
2417
- <?php
2418
-
2419
-
2420
-
2421
-
2422
-
2423
-
2424
-
2425
- $checked = "";
2426
-
2427
-
2428
-
2429
-
2430
-
2431
-
2432
-
2433
- if ( isset($skyscraper_options['follow_us']['feed']["active"]) && $skyscraper_options['follow_us']['feed']["active"] == "on"){
2434
-
2435
-
2436
-
2437
-
2438
-
2439
-
2440
-
2441
- $checked = "checked";
2442
-
2443
-
2444
-
2445
-
2446
-
2447
-
2448
-
2449
- }
2450
-
2451
-
2452
-
2453
-
2454
-
2455
-
2456
-
2457
- ?>
2458
-
2459
-
2460
-
2461
-
2462
-
2463
-
2464
-
2465
- <input <?php echo $checked ?> name="skyscraper_options[follow_us][feed][active]" type="checkbox" style="padding-bottom:5px" />
2466
-
2467
-
2468
-
2469
-
2470
-
2471
-
2472
-
2473
- <input type="hidden" value="rss.png" name="skyscraper_options[follow_us][feed][logo]" />
2474
-
2475
-
2476
-
2477
-
2478
-
2479
-
2480
-
2481
- <?php
2482
-
2483
-
2484
-
2485
-
2486
-
2487
-
2488
-
2489
- $rss = "http://";
2490
-
2491
-
2492
-
2493
-
2494
-
2495
-
2496
-
2497
- if(!empty($skyscraper_options["follow_us"]["feed"]["account"])){
2498
-
2499
-
2500
-
2501
-
2502
-
2503
-
2504
-
2505
-
2506
-
2507
-
2508
-
2509
-
2510
-
2511
-
2512
-
2513
- $rss = $skyscraper_options["follow_us"]["feed"]["account"];
2514
-
2515
-
2516
-
2517
-
2518
-
2519
-
2520
-
2521
- }
2522
-
2523
-
2524
-
2525
-
2526
-
2527
-
2528
-
2529
- ?>
2530
-
2531
-
2532
-
2533
-
2534
-
2535
-
2536
-
2537
- <img style="padding-bottom:5px" src="<?php echo SOCIABLE_HTTP_PATH ?>images/toolbar/rss.png"/>
2538
-
2539
-
2540
-
2541
-
2542
-
2543
-
2544
-
2545
- <input size="40" value="<?php echo $rss?>" name="skyscraper_options[follow_us][feed][account]" type="text" />
2546
-
2547
-
2548
-
2549
-
2550
-
2551
-
2552
-
2553
- </li>
2554
-
2555
-
2556
-
2557
-
2558
-
2559
-
2560
-
2561
- <li>
2562
-
2563
-
2564
-
2565
-
2566
-
2567
-
2568
-
2569
- <?php
2570
-
2571
-
2572
-
2573
-
2574
-
2575
-
2576
-
2577
- $checked = "";
2578
-
2579
-
2580
-
2581
-
2582
-
2583
-
2584
-
2585
- if ( isset($skyscraper_options['follow_us']['fb']["active"]) && $skyscraper_options['follow_us']['fb']["active"] == "on"){
2586
-
2587
-
2588
-
2589
-
2590
-
2591
-
2592
-
2593
- $checked = "checked";
2594
-
2595
-
2596
-
2597
-
2598
-
2599
-
2600
-
2601
- }
2602
-
2603
-
2604
-
2605
-
2606
-
2607
-
2608
-
2609
- ?>
2610
-
2611
-
2612
-
2613
-
2614
-
2615
-
2616
-
2617
- <input <?php echo $checked ?> name="skyscraper_options[follow_us][fb][active]" type="checkbox" style="padding-bottom:5px" />
2618
-
2619
-
2620
-
2621
-
2622
-
2623
-
2624
-
2625
- <input type="hidden" value="f.png" name="skyscraper_options[follow_us][fb][logo]" />
2626
-
2627
-
2628
-
2629
-
2630
-
2631
-
2632
-
2633
-
2634
-
2635
-
2636
-
2637
-
2638
-
2639
-
2640
-
2641
- <?php
2642
-
2643
-
2644
-
2645
-
2646
-
2647
-
2648
-
2649
- $fb = "http://facebook.com/";
2650
-
2651
-
2652
-
2653
-
2654
-
2655
-
2656
-
2657
- if(!empty($skyscraper_options["follow_us"]["fb"]["account"])){
2658
-
2659
-
2660
-
2661
-
2662
-
2663
-
2664
-
2665
-
2666
-
2667
-
2668
-
2669
-
2670
-
2671
-
2672
-
2673
- $fb = $skyscraper_options["follow_us"]["fb"]["account"];
2674
-
2675
-
2676
-
2677
-
2678
-
2679
-
2680
-
2681
- }
2682
-
2683
-
2684
-
2685
-
2686
-
2687
-
2688
-
2689
- ?>
2690
-
2691
-
2692
-
2693
-
2694
-
2695
-
2696
-
2697
- <img style="padding-bottom:5px" src="<?php echo SOCIABLE_HTTP_PATH ?>images/toolbar/f.png"/>
2698
-
2699
-
2700
-
2701
-
2702
-
2703
-
2704
-
2705
- <input size="40" value="<?php echo $fb?>" name="skyscraper_options[follow_us][fb][account]" type="text" />
2706
-
2707
-
2708
-
2709
-
2710
-
2711
-
2712
-
2713
- </li>
2714
-
2715
-
2716
-
2717
-
2718
-
2719
-
2720
-
2721
-
2722
-
2723
-
2724
-
2725
-
2726
-
2727
-
2728
-
2729
- <li>
2730
-
2731
-
2732
-
2733
-
2734
-
2735
-
2736
-
2737
- <?php
2738
-
2739
-
2740
-
2741
-
2742
-
2743
-
2744
-
2745
- $checked = "";
2746
-
2747
-
2748
-
2749
-
2750
-
2751
-
2752
-
2753
- if ( isset($skyscraper_options['follow_us']['li']["active"]) && $skyscraper_options['follow_us']['li']["active"] == "on"){
2754
-
2755
-
2756
-
2757
-
2758
-
2759
-
2760
-
2761
- $checked = "checked";
2762
-
2763
-
2764
-
2765
-
2766
-
2767
-
2768
-
2769
- }
2770
-
2771
-
2772
-
2773
-
2774
-
2775
-
2776
-
2777
- ?>
2778
-
2779
-
2780
-
2781
-
2782
-
2783
-
2784
-
2785
- <input <?php echo $checked ?> name="skyscraper_options[follow_us][li][active]" type="checkbox" style="padding-bottom:5px" />
2786
-
2787
-
2788
-
2789
-
2790
-
2791
-
2792
-
2793
- <input type="hidden" value="i.png" name="skyscraper_options[follow_us][li][logo]" />
2794
-
2795
-
2796
-
2797
-
2798
-
2799
-
2800
-
2801
- <input type="hidden" value="linkedin.com/in/" name="skyscraper_options[follow_us][li][url]" />
2802
-
2803
-
2804
-
2805
-
2806
-
2807
-
2808
-
2809
- <?php
2810
-
2811
-
2812
-
2813
-
2814
-
2815
-
2816
-
2817
- $li = "http://linkedin.com/";
2818
-
2819
-
2820
-
2821
-
2822
-
2823
-
2824
-
2825
- if(!empty($skyscraper_options["follow_us"]["li"]["account"])){
2826
-
2827
-
2828
-
2829
-
2830
-
2831
-
2832
-
2833
-
2834
-
2835
-
2836
-
2837
-
2838
-
2839
-
2840
-
2841
- $li = $skyscraper_options["follow_us"]["li"]["account"];
2842
-
2843
-
2844
-
2845
-
2846
-
2847
-
2848
-
2849
- }
2850
-
2851
-
2852
-
2853
-
2854
-
2855
-
2856
-
2857
- ?>
2858
-
2859
-
2860
-
2861
-
2862
-
2863
-
2864
-
2865
- <img style="padding-bottom:5px" src="<?php echo SOCIABLE_HTTP_PATH ?>images/toolbar/i.png"/>
2866
-
2867
-
2868
-
2869
-
2870
-
2871
-
2872
-
2873
- <input size="40" value="<?php echo $li?>" name="skyscraper_options[follow_us][li][account]" type="text" />
2874
-
2875
-
2876
-
2877
-
2878
-
2879
-
2880
-
2881
- </li>
2882
-
2883
-
2884
-
2885
-
2886
-
2887
-
2888
-
2889
- </ul>
2890
-
2891
-
2892
-
2893
-
2894
-
2895
-
2896
-
2897
- </li>
2898
-
2899
-
2900
-
2901
-
2902
-
2903
-
2904
-
2905
- </ul>
2906
-
2907
-
2908
-
2909
-
2910
-
2911
-
2912
-
2913
- </DIV>
2914
-
2915
-
2916
-
2917
-
2918
-
2919
-
2920
-
2921
- <br />
2922
-
2923
-
2924
-
2925
-
2926
-
2927
- <div class="Content-Box" id="Active-Content" style="display: block;">
2928
-
2929
-
2930
-
2931
- <br>
2932
-
2933
-
2934
-
2935
- <div align="center" style="width:100%;">
2936
-
2937
-
2938
-
2939
- <table align="center" cellspacing="0" cellpadding="10" border="0" class="GeneralOptions-List">
2940
-
2941
-
2942
-
2943
- <tbody><tr valign="top">
2944
-
2945
- <td align="right" class="Title">Active Sociable Banner</td>
2946
-
2947
- <td align="left" style="width:5px;">
2948
-
2949
- <?php
2950
-
2951
-
2952
-
2953
- $sel = "";
2954
-
2955
-
2956
-
2957
- if (isset($skyscraper_options["sociable_banner"])){
2958
-
2959
-
2960
-
2961
- if (!empty($skyscraper_options["sociable_banner"])){
2962
-
2963
- $sel = "checked";
2964
-
2965
- }
2966
-
2967
-
2968
-
2969
- }
2970
-
2971
-
2972
-
2973
- ?>
2974
-
2975
-
2976
-
2977
- <input type="checkbox" name="skyscraper_options[sociable_banner]" id="sociable_banner" <?php echo $sel?>></td>
2978
-
2979
-
2980
-
2981
- <td align="left" class="Content">
2982
-
2983
-
2984
-
2985
- <span class="TXT">Active Sociable "Reminder to Share" Banner / Check if you want to remind your readers Share your content.</span>
2986
-
2987
-
2988
-
2989
- <br>
2990
-
2991
-
2992
-
2993
- </td>
2994
-
2995
-
2996
-
2997
- </tr>
2998
-
2999
-
3000
-
3001
- <tr valign="top">
3002
-
3003
-
3004
-
3005
- <td align="right" class="Title">Banner's label (35 char Max.)</td>
3006
-
3007
-
3008
-
3009
- <td align="left" style="width:5px;">
3010
-
3011
- <?php
3012
-
3013
- $sel = 'Please spread the word: Be Sociable, Share!';
3014
-
3015
- if (isset($skyscraper_options["sociable_banner_text"])){
3016
-
3017
- if (!empty($skyscraper_options["sociable_banner_text"])){
3018
-
3019
- $sel = $skyscraper_options["sociable_banner_text"];
3020
-
3021
- }
3022
-
3023
- }
3024
-
3025
- ?>
3026
-
3027
- </td>
3028
-
3029
- <td align="left" class="Content">
3030
-
3031
-
3032
-
3033
- <span class="TXT"> <input style="width:245px !important" type="text" name="skyscraper_options[sociable_banner_text]" value="<?php echo $sel?>"></span>
3034
-
3035
-
3036
-
3037
- <br>
3038
-
3039
-
3040
-
3041
- </td>
3042
-
3043
-
3044
-
3045
- </tr>
3046
-
3047
-
3048
-
3049
- <tr valign="top">
3050
-
3051
-
3052
-
3053
- <td align="right" class="Title">Banners Timer (sec.)</td>
3054
-
3055
-
3056
-
3057
- <td align="left" style="width:5px;">
3058
-
3059
-
3060
-
3061
- </td>
3062
-
3063
- <td align="left" class="Content">
3064
-
3065
- <span class="TXT">
3066
-
3067
-
3068
-
3069
- <select name="skyscraper_options[sociable_banner_timer]" id="banner_timer" >
3070
-
3071
- <?php
3072
-
3073
- for($timer=10; $timer <= 120; $timer++){
3074
-
3075
-
3076
-
3077
- $sel = "";
3078
-
3079
-
3080
-
3081
- if (!empty($skyscraper_options["sociable_banner_timer"])){
3082
-
3083
-
3084
-
3085
- if ($skyscraper_options["sociable_banner_timer"] == $timer){
3086
-
3087
-
3088
-
3089
- $sel = "selected";
3090
-
3091
- }
3092
-
3093
- }
3094
-
3095
- ?>
3096
-
3097
- <option value="<?php echo $timer?>" <?php echo $sel ?> ><?php echo $timer?></option>
3098
-
3099
- <?php
3100
-
3101
-
3102
-
3103
- $timer = $timer + 4;
3104
-
3105
- } ?>
3106
-
3107
- </select>
3108
-
3109
-
3110
-
3111
- </span>
3112
-
3113
-
3114
-
3115
- <br>
3116
-
3117
-
3118
-
3119
- </td>
3120
-
3121
-
3122
-
3123
- </tr>
3124
-
3125
-
3126
-
3127
- <tr valign="top">
3128
-
3129
-
3130
-
3131
- <td align="right" class="Title">Font Color <a title="default color #6A6A6A" class="default_values">(#6A6A6A)</a></td>
3132
-
3133
-
3134
-
3135
- <td align="left" style="width:5px;">
3136
-
3137
-
3138
-
3139
- </td>
3140
-
3141
- <td align="left" class="Content">
3142
-
3143
-
3144
-
3145
- <span class="TXT">
3146
-
3147
-
3148
-
3149
- <?php
3150
-
3151
- $sel = '#6A6A6A';
3152
-
3153
-
3154
-
3155
- if (isset($skyscraper_options["sociable_banner_colorFont"])){
3156
-
3157
-
3158
-
3159
- if (!empty($skyscraper_options["sociable_banner_colorFont"])){
3160
-
3161
-
3162
-
3163
- $sel = $skyscraper_options["sociable_banner_colorFont"];
3164
-
3165
- }
3166
-
3167
- }
3168
-
3169
- ?>
3170
-
3171
-
3172
-
3173
- <input type="text" value="<?php echo $sel?>" name="skyscraper_options[sociable_banner_colorFont]" style="width:81px !important">
3174
-
3175
- </span>
3176
-
3177
-
3178
-
3179
- <br>
3180
-
3181
-
3182
-
3183
- </td>
3184
-
3185
-
3186
-
3187
- </tr>
3188
-
3189
- <!-- Font Size -->
3190
-
3191
- <tr valign="top">
3192
-
3193
-
3194
-
3195
- <td align="right" class="Title">Font Size <a title="default size 9px" class="default_values">(9px)</a></td>
3196
-
3197
-
3198
-
3199
- <td align="left" style="width:5px;">
3200
-
3201
-
3202
-
3203
- </td>
3204
-
3205
- <td align="left" class="Content">
3206
-
3207
- <span class="TXT">
3208
-
3209
-
3210
-
3211
- <select name="skyscraper_options[sociable_banner_fontSize]" id="banner_fontSize" >
3212
-
3213
- <?php
3214
-
3215
- for($fontSize=8; $fontSize <= 16; $fontSize++){
3216
-
3217
-
3218
-
3219
- $sel = "";
3220
-
3221
-
3222
-
3223
- if (!empty($skyscraper_options["sociable_banner_fontSize"])){
3224
-
3225
-
3226
-
3227
- if ($skyscraper_options["sociable_banner_fontSize"] == $fontSize){
3228
-
3229
-
3230
-
3231
- $sel = "selected";
3232
-
3233
- }
3234
-
3235
- }
3236
-
3237
- ?>
3238
-
3239
- <option value="<?php echo $fontSize?>px" <?php echo $sel ?> ><?php echo $fontSize?>px</option>
3240
-
3241
- <?php
3242
-
3243
- } ?>
3244
-
3245
- </select>
3246
-
3247
-
3248
-
3249
-
3250
-
3251
- </span>
3252
-
3253
- <br>
3254
-
3255
- </td>
3256
-
3257
- </tr>
3258
-
3259
-
3260
-
3261
- <!-- color label -->
3262
-
3263
- <tr valign="top">
3264
-
3265
-
3266
-
3267
- <td align="right" class="Title">Label Color <a title="default color #F7F7F7" class="default_values">(#F7F7F7)</a></td>
3268
-
3269
-
3270
-
3271
- <td align="left" style="width:5px;">
3272
-
3273
-
3274
-
3275
- </td>
3276
-
3277
- <td align="left" class="Content">
3278
-
3279
-
3280
-
3281
- <span class="TXT">
3282
-
3283
-
3284
-
3285
- <?php
3286
-
3287
- $sel = '#F7F7F7';
3288
-
3289
-
3290
-
3291
- if (isset($skyscraper_options["sociable_banner_colorLabel"])){
3292
-
3293
-
3294
-
3295
- if (!empty($skyscraper_options["sociable_banner_colorLabel"])){
3296
-
3297
-
3298
-
3299
- $sel = $skyscraper_options["sociable_banner_colorLabel"];
3300
-
3301
- }
3302
-
3303
- }
3304
-
3305
- ?>
3306
-
3307
-
3308
-
3309
- <input type="text" value="<?php echo $sel?>" name="skyscraper_options[sociable_banner_colorLabel]" style="width:81px !important">
3310
-
3311
- </span>
3312
-
3313
-
3314
-
3315
- <br>
3316
-
3317
-
3318
-
3319
- </td>
3320
-
3321
-
3322
-
3323
- </tr>
3324
-
3325
- <!-- color font -->
3326
-
3327
- <tr valign="top">
3328
-
3329
-
3330
-
3331
- <td align="right" class="Title">Background Color <a title="default color #F7F7F7" class="default_values">(#F7F7F7)</a></td>
3332
-
3333
-
3334
-
3335
- <td align="left" style="width:5px;">
3336
-
3337
-
3338
-
3339
- </td>
3340
-
3341
- <td align="left" class="Content">
3342
-
3343
- <span class="TXT">
3344
-
3345
- <?php
3346
-
3347
- $sel = '#F7F7F7';
3348
-
3349
-
3350
-
3351
- if (isset($skyscraper_options["sociable_banner_colorBack"])){
3352
-
3353
-
3354
-
3355
- if (!empty($skyscraper_options["sociable_banner_colorBack"])){
3356
-
3357
-
3358
-
3359
- $sel = $skyscraper_options["sociable_banner_colorBack"];
3360
-
3361
- }
3362
-
3363
- }
3364
-
3365
- ?>
3366
-
3367
- <input type="text" value="<?php echo $sel?>" name="skyscraper_options[sociable_banner_colorBack]" style="width:81px !important">
3368
-
3369
-
3370
-
3371
- </span>
3372
-
3373
-
3374
-
3375
- <br>
3376
-
3377
-
3378
-
3379
- </td>
3380
-
3381
-
3382
-
3383
- </tr>
3384
-
3385
-
3386
-
3387
- </tbody></table>
3388
-
3389
-
3390
-
3391
-
3392
-
3393
- <br><br>
3394
-
3395
-
3396
-
3397
- </div>
3398
-
3399
-
3400
-
3401
- </div>
3402
-
3403
-
3404
-
3405
-
3406
-
3407
-
3408
-
3409
- <!-- general options -->
3410
-
3411
-
3412
-
3413
-
3414
-
3415
-
3416
-
3417
- <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('GeneralOptions');">
3418
-
3419
-
3420
-
3421
-
3422
-
3423
-
3424
-
3425
- <TR>
3426
-
3427
-
3428
-
3429
-
3430
-
3431
-
3432
-
3433
- <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>
3434
-
3435
-
3436
-
3437
-
3438
-
3439
-
3440
-
3441
- </TR>
3442
-
3443
-
3444
-
3445
-
3446
-
3447
-
3448
-
3449
- </TABLE>
3450
-
3451
-
3452
-
3453
-
3454
-
3455
-
3456
-
3457
- <BR/>
3458
-
3459
-
3460
-
3461
-
3462
-
3463
-
3464
-
3465
-
3466
-
3467
-
3468
-
3469
-
3470
-
3471
-
3472
-
3473
- <DIV class="Content-Box" id="GeneralOptions-Content" style="display:none;" >
3474
-
3475
-
3476
-
3477
-
3478
-
3479
-
3480
-
3481
-
3482
-
3483
-
3484
-
3485
-
3486
-
3487
-
3488
-
3489
- <BR/>
3490
-
3491
-
3492
-
3493
-
3494
-
3495
-
3496
-
3497
- <DIV align="center" style="width:100%;">
3498
-
3499
-
3500
-
3501
-
3502
-
3503
-
3504
-
3505
- <TABLE align="center" class="GeneralOptions-List" cellspacing="0" border=0 cellpadding ="10" >
3506
-
3507
-
3508
-
3509
-
3510
-
3511
-
3512
-
3513
-
3514
-
3515
-
3516
-
3517
-
3518
-
3519
-
3520
-
3521
- <TR valign="top" >
3522
-
3523
-
3524
-
3525
-
3526
-
3527
-
3528
-
3529
- <TD align="right" class="Title" ><?php _e("Widget Position","sociable")?></TD>
3530
-
3531
-
3532
-
3533
-
3534
-
3535
-
3536
-
3537
- <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>
3538
-
3539
-
3540
-
3541
-
3542
-
3543
-
3544
-
3545
- <TD align="left" class="Content">
3546
-
3547
-
3548
-
3549
-
3550
-
3551
-
3552
-
3553
- <SPAN class="TXT"><?php _e("Check if you want Sociable Fixed on the screen","sociable");?> </SPAN>
3554
-
3555
-
3556
-
3557
-
3558
-
3559
-
3560
-
3561
- <BR/>
3562
-
3563
-
3564
-
3565
-
3566
-
3567
-
3568
-
3569
-
3570
-
3571
-
3572
-
3573
-
3574
-
3575
-
3576
-
3577
- </TD>
3578
-
3579
-
3580
-
3581
-
3582
-
3583
-
3584
-
3585
- </TR>
3586
-
3587
-
3588
-
3589
-
3590
-
3591
-
3592
-
3593
- </TABLE>
3594
-
3595
-
3596
-
3597
-
3598
-
3599
-
3600
-
3601
- <BR/><BR/>
3602
-
3603
-
3604
-
3605
-
3606
-
3607
-
3608
-
3609
- </DIV>
3610
-
3611
-
3612
-
3613
-
3614
-
3615
-
3616
-
3617
- </DIV>
3618
-
3619
-
3620
-
3621
-
3622
-
3623
-
3624
-
3625
- <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Locations');" >
3626
-
3627
-
3628
-
3629
-
3630
-
3631
-
3632
-
3633
- <TR>
3634
-
3635
-
3636
-
3637
-
3638
-
3639
-
3640
-
3641
- <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>
3642
-
3643
-
3644
-
3645
-
3646
-
3647
-
3648
-
3649
- </TR>
3650
-
3651
-
3652
-
3653
-
3654
-
3655
-
3656
-
3657
- </TABLE>
3658
-
3659
-
3660
-
3661
-
3662
-
3663
-
3664
-
3665
- <BR/>
3666
-
3667
-
3668
-
3669
-
3670
-
3671
-
3672
-
3673
-
3674
-
3675
-
3676
-
3677
-
3678
-
3679
-
3680
-
3681
- <DIV class="Content-Box" id="Locations-Content" style="display:none;" >
3682
-
3683
-
3684
-
3685
-
3686
-
3687
-
3688
-
3689
- <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>
3690
-
3691
-
3692
-
3693
-
3694
-
3695
-
3696
-
3697
-
3698
-
3699
-
3700
-
3701
-
3702
-
3703
-
3704
-
3705
- <BR/>
3706
-
3707
-
3708
-
3709
-
3710
-
3711
-
3712
-
3713
- <DIV align="center" style="width:100%;">
3714
-
3715
-
3716
-
3717
-
3718
-
3719
-
3720
-
3721
- <TABLE align="center" class="Locations-List" cellspacing="0" border=0 cellpadding="10">
3722
-
3723
-
3724
-
3725
-
3726
-
3727
-
3728
-
3729
- <TR valign="top" >
3730
-
3731
-
3732
-
3733
-
3734
-
3735
-
3736
-
3737
- <TD align="right" class="Title" ><?php _e("Home page","sociable");?></TD>
3738
-
3739
-
3740
-
3741
-
3742
-
3743
-
3744
-
3745
- <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>
3746
-
3747
-
3748
-
3749
-
3750
-
3751
-
3752
-
3753
- <TD align="left" class="Content">
3754
-
3755
-
3756
-
3757
-
3758
-
3759
-
3760
-
3761
- <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>
3762
-
3763
-
3764
-
3765
-
3766
-
3767
-
3768
-
3769
-
3770
-
3771
-
3772
-
3773
-
3774
-
3775
-
3776
-
3777
- </TD>
3778
-
3779
-
3780
-
3781
-
3782
-
3783
-
3784
-
3785
- </TR>
3786
-
3787
-
3788
-
3789
-
3790
-
3791
-
3792
-
3793
-
3794
-
3795
-
3796
-
3797
-
3798
-
3799
-
3800
-
3801
- <TR valign="top" >
3802
-
3803
-
3804
-
3805
-
3806
-
3807
-
3808
-
3809
- <TD align="right" class="Title" ><?php _e("Blog page","sociable");?></TD>
3810
-
3811
-
3812
-
3813
-
3814
-
3815
-
3816
-
3817
- <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>
3818
-
3819
-
3820
-
3821
-
3822
-
3823
-
3824
-
3825
- <TD align="left" class="Content">
3826
-
3827
-
3828
-
3829
-
3830
-
3831
-
3832
-
3833
- <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>
3834
-
3835
-
3836
-
3837
-
3838
-
3839
-
3840
-
3841
-
3842
-
3843
-
3844
-
3845
-
3846
-
3847
-
3848
-
3849
- </TD>
3850
-
3851
-
3852
-
3853
-
3854
-
3855
-
3856
-
3857
- </TR>
3858
-
3859
-
3860
-
3861
-
3862
-
3863
-
3864
-
3865
-
3866
-
3867
-
3868
-
3869
-
3870
-
3871
-
3872
-
3873
- <TR valign="top" >
3874
-
3875
-
3876
-
3877
-
3878
-
3879
-
3880
-
3881
- <TD align="right" class="Title" ><?php _e("Posts","sociable");?></TD>
3882
-
3883
-
3884
-
3885
-
3886
-
3887
-
3888
-
3889
- <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>
3890
-
3891
-
3892
-
3893
-
3894
-
3895
-
3896
-
3897
- <TD align="left" class="Content">
3898
-
3899
-
3900
-
3901
-
3902
-
3903
-
3904
-
3905
- <SPAN class="TXT"><?php _e("Single post pages","sociable");?></SPAN>
3906
-
3907
-
3908
-
3909
-
3910
-
3911
-
3912
-
3913
-
3914
-
3915
-
3916
-
3917
-
3918
-
3919
-
3920
-
3921
- </TD>
3922
-
3923
-
3924
-
3925
-
3926
-
3927
-
3928
-
3929
- </TR>
3930
-
3931
-
3932
-
3933
-
3934
-
3935
-
3936
-
3937
-
3938
-
3939
-
3940
-
3941
-
3942
-
3943
-
3944
-
3945
- <TR valign="top" >
3946
-
3947
-
3948
-
3949
-
3950
-
3951
-
3952
-
3953
- <TD align="right" class="Title" ><?php _e("Pages","sociable");?></TD>
3954
-
3955
-
3956
-
3957
-
3958
-
3959
-
3960
-
3961
- <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>
3962
-
3963
-
3964
-
3965
-
3966
-
3967
-
3968
-
3969
- <TD align="left" class="Content">
3970
-
3971
-
3972
-
3973
-
3974
-
3975
-
3976
-
3977
- <SPAN class="TXT"><?php _e("Individual Wordpress pages","sociable");?></SPAN>
3978
-
3979
-
3980
-
3981
-
3982
-
3983
-
3984
-
3985
-
3986
-
3987
-
3988
-
3989
-
3990
-
3991
-
3992
-
3993
- </TD>
3994
-
3995
-
3996
-
3997
-
3998
-
3999
-
4000
-
4001
- </TR>
4002
-
4003
-
4004
-
4005
-
4006
-
4007
-
4008
-
4009
-
4010
-
4011
-
4012
-
4013
-
4014
-
4015
-
4016
-
4017
- <TR valign="top" >
4018
-
4019
-
4020
-
4021
-
4022
-
4023
-
4024
-
4025
- <TD align="right" class="Title" ><?php _e("Category archives","sociable");?></TD>
4026
-
4027
-
4028
-
4029
-
4030
-
4031
-
4032
-
4033
- <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>
4034
-
4035
-
4036
-
4037
-
4038
-
4039
-
4040
-
4041
- <TD align="left" class="Content">
4042
-
4043
-
4044
-
4045
-
4046
-
4047
-
4048
-
4049
- <SPAN class="TXT"><?php _e("Category archive pages","sociable");?></SPAN>
4050
-
4051
-
4052
-
4053
-
4054
-
4055
-
4056
-
4057
-
4058
-
4059
-
4060
-
4061
-
4062
-
4063
-
4064
-
4065
- </TD>
4066
-
4067
-
4068
-
4069
-
4070
-
4071
-
4072
-
4073
- </TR>
4074
-
4075
-
4076
-
4077
-
4078
-
4079
-
4080
-
4081
-
4082
-
4083
-
4084
-
4085
-
4086
-
4087
-
4088
-
4089
- <TR valign="top" >
4090
-
4091
-
4092
-
4093
- <TD align="right" class="Title" ><?php _e("Date archives","sociable");?></TD>
4094
-
4095
-
4096
-
4097
-
4098
-
4099
-
4100
-
4101
- <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>
4102
-
4103
-
4104
-
4105
-
4106
-
4107
-
4108
-
4109
- <TD align="left" class="Content">
4110
-
4111
-
4112
-
4113
-
4114
-
4115
-
4116
-
4117
- <SPAN class="TXT"><?php _e("Date archive pages","sociable");?> </SPAN>
4118
-
4119
-
4120
-
4121
-
4122
-
4123
-
4124
-
4125
-
4126
-
4127
-
4128
-
4129
-
4130
-
4131
-
4132
-
4133
- </TD>
4134
-
4135
-
4136
-
4137
-
4138
-
4139
-
4140
-
4141
- </TR>
4142
-
4143
-
4144
-
4145
-
4146
-
4147
-
4148
-
4149
-
4150
-
4151
-
4152
-
4153
-
4154
-
4155
-
4156
-
4157
- <TR valign="top" >
4158
-
4159
-
4160
-
4161
-
4162
-
4163
-
4164
-
4165
- <TD align="right" class="Title" ><?php _e("Tag archives","sociable");?></TD>
4166
-
4167
-
4168
-
4169
-
4170
-
4171
-
4172
-
4173
- <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>
4174
-
4175
-
4176
-
4177
-
4178
-
4179
-
4180
-
4181
- <TD align="left" class="Content">
4182
-
4183
-
4184
-
4185
-
4186
-
4187
-
4188
-
4189
- <SPAN class="TXT"><?php _e("Tag archive pages","sociable");?> </SPAN>
4190
-
4191
-
4192
-
4193
-
4194
-
4195
-
4196
-
4197
-
4198
-
4199
-
4200
-
4201
-
4202
-
4203
-
4204
-
4205
- </TD>
4206
-
4207
-
4208
-
4209
-
4210
-
4211
-
4212
-
4213
- </TR>
4214
-
4215
-
4216
-
4217
-
4218
-
4219
-
4220
-
4221
-
4222
-
4223
-
4224
-
4225
-
4226
-
4227
-
4228
-
4229
- <TR valign="top" >
4230
-
4231
-
4232
-
4233
-
4234
-
4235
-
4236
-
4237
- <TD align="right" class="Title" ><?php _e("Author archives","sociable");?></TD>
4238
-
4239
-
4240
-
4241
-
4242
-
4243
-
4244
-
4245
- <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>
4246
-
4247
-
4248
-
4249
-
4250
-
4251
-
4252
-
4253
- <TD align="left" class="Content">
4254
-
4255
-
4256
-
4257
-
4258
-
4259
-
4260
-
4261
- <SPAN class="TXT"><?php _e("Author archive pages","sociable");?></SPAN>
4262
-
4263
-
4264
-
4265
-
4266
-
4267
-
4268
-
4269
-
4270
-
4271
-
4272
-
4273
-
4274
-
4275
-
4276
-
4277
- </TD>
4278
-
4279
-
4280
-
4281
-
4282
-
4283
-
4284
-
4285
- </TR>
4286
-
4287
-
4288
-
4289
-
4290
-
4291
-
4292
-
4293
-
4294
-
4295
-
4296
-
4297
-
4298
-
4299
-
4300
-
4301
- <TR valign="top" >
4302
-
4303
-
4304
-
4305
-
4306
-
4307
-
4308
-
4309
- <TD align="right" class="Title" ><?php _e("Search results","sociable");?></TD>
4310
-
4311
-
4312
-
4313
-
4314
-
4315
-
4316
-
4317
- <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>
4318
-
4319
-
4320
-
4321
-
4322
-
4323
-
4324
-
4325
- <TD align="left" class="Content">
4326
-
4327
-
4328
-
4329
-
4330
-
4331
-
4332
-
4333
- <SPAN class="TXT"><?php _e("Search results pages","sociable");?></SPAN>
4334
-
4335
-
4336
-
4337
-
4338
-
4339
-
4340
-
4341
-
4342
-
4343
-
4344
-
4345
-
4346
-
4347
-
4348
-
4349
- </TD>
4350
-
4351
-
4352
-
4353
-
4354
-
4355
-
4356
-
4357
- </TR>
4358
-
4359
-
4360
-
4361
-
4362
-
4363
-
4364
-
4365
-
4366
-
4367
-
4368
-
4369
-
4370
-
4371
-
4372
-
4373
- <TR valign="top" >
4374
-
4375
-
4376
-
4377
-
4378
-
4379
-
4380
-
4381
- <TD align="right" class="Title" ><?php _e("RSS feeds","sociable");?></TD>
4382
-
4383
-
4384
-
4385
-
4386
-
4387
-
4388
-
4389
- <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>
4390
-
4391
-
4392
-
4393
-
4394
-
4395
-
4396
-
4397
- <TD align="left" class="Content">
4398
-
4399
-
4400
-
4401
-
4402
-
4403
-
4404
-
4405
- <SPAN class="TXT"><?php _e("RSS feeds","sociable");?></SPAN>
4406
-
4407
-
4408
-
4409
-
4410
-
4411
-
4412
-
4413
-
4414
-
4415
-
4416
-
4417
-
4418
-
4419
-
4420
-
4421
- </TD>
4422
-
4423
-
4424
-
4425
-
4426
-
4427
-
4428
-
4429
- </TR>
4430
-
4431
-
4432
-
4433
-
4434
-
4435
-
4436
-
4437
-
4438
-
4439
-
4440
-
4441
-
4442
-
4443
-
4444
-
4445
- </TABLE>
4446
-
4447
-
4448
-
4449
-
4450
-
4451
-
4452
-
4453
- <BR/><BR/>
4454
-
4455
-
4456
-
4457
-
4458
-
4459
-
4460
-
4461
- </DIV>
4462
-
4463
-
4464
-
4465
-
4466
-
4467
-
4468
-
4469
- </DIV>
4470
-
4471
-
4472
-
4473
-
4474
-
4475
-
4476
-
4477
-
4478
-
4479
-
4480
-
4481
-
4482
-
4483
-
4484
-
4485
- <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Active');" >
4486
-
4487
-
4488
-
4489
-
4490
-
4491
-
4492
-
4493
- <TR>
4494
-
4495
-
4496
-
4497
-
4498
-
4499
-
4500
-
4501
- <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>
4502
-
4503
-
4504
-
4505
-
4506
-
4507
-
4508
-
4509
- </TR>
4510
-
4511
-
4512
-
4513
-
4514
-
4515
-
4516
-
4517
- </TABLE>
4518
-
4519
-
4520
-
4521
-
4522
-
4523
-
4524
-
4525
-
4526
-
4527
-
4528
-
4529
-
4530
-
4531
-
4532
-
4533
- <div style="display: block;" id="Active-Content" class="Content-Box">
4534
-
4535
-
4536
-
4537
-
4538
-
4539
-
4540
-
4541
-
4542
-
4543
-
4544
-
4545
-
4546
-
4547
-
4548
-
4549
- <br>
4550
-
4551
-
4552
-
4553
-
4554
-
4555
-
4556
-
4557
- <div align="center" style="width:100%;">
4558
-
4559
-
4560
-
4561
-
4562
-
4563
-
4564
-
4565
- <table align="center" cellspacing="0" cellpadding="10" border="0" class="GeneralOptions-List">
4566
-
4567
-
4568
-
4569
-
4570
-
4571
-
4572
-
4573
-
4574
-
4575
-
4576
-
4577
-
4578
-
4579
-
4580
-
4581
- <tbody><tr valign="top">
4582
-
4583
-
4584
-
4585
-
4586
-
4587
-
4588
-
4589
- <td align="right" class="Title">Active Skyscraper</td>
4590
-
4591
-
4592
-
4593
-
4594
-
4595
-
4596
-
4597
- <td align="left" style="width:5px;">
4598
-
4599
-
4600
-
4601
-
4602
-
4603
-
4604
-
4605
- <input <?php if(isset($skyscraper_options["active"])) echo "checked='checked'"?> type="checkbox" id="active" name="skyscraper_options[active]" ></td>
4606
-
4607
-
4608
-
4609
-
4610
-
4611
-
4612
-
4613
- <td align="left" class="Content">
4614
-
4615
-
4616
-
4617
-
4618
-
4619
-
4620
-
4621
- <span class="TXT">Check if you want Sociable Skyscraper enable </span>
4622
-
4623
-
4624
-
4625
-
4626
-
4627
-
4628
-
4629
- <br>
4630
-
4631
-
4632
-
4633
-
4634
-
4635
-
4636
-
4637
-
4638
-
4639
-
4640
-
4641
-
4642
-
4643
-
4644
-
4645
- </td>
4646
-
4647
-
4648
-
4649
-
4650
-
4651
-
4652
-
4653
- </tr>
4654
-
4655
-
4656
-
4657
-
4658
-
4659
-
4660
-
4661
- </tbody></table>
4662
-
4663
-
4664
-
4665
-
4666
-
4667
-
4668
-
4669
- <br><br>
4670
-
4671
-
4672
-
4673
-
4674
-
4675
-
4676
-
4677
- </div>
4678
-
4679
-
4680
-
4681
-
4682
-
4683
-
4684
-
4685
- </div>
4686
-
4687
-
4688
-
4689
-
4690
-
4691
-
4692
-
4693
- <br/><br/>
4694
-
4695
-
4696
-
4697
-
4698
-
4699
-
4700
-
4701
- <?php settings_fields( 'skyscraper_options_group' ); ?>
4702
-
4703
-
4704
-
4705
-
4706
-
4707
-
4708
-
4709
- </form>
4710
-
4711
-
4712
-
4713
-
4714
-
4715
-
4716
-
4717
- <div class="Content-Box">
4718
-
4719
-
4720
-
4721
-
4722
-
4723
-
4724
-
4725
-
4726
-
4727
-
4728
-
4729
-
4730
-
4731
-
4732
-
4733
- <form id="sociable_reset_form" action="" method="POST">
4734
-
4735
-
4736
-
4737
-
4738
-
4739
-
4740
-
4741
- <?php wp_nonce_field('sociable-reset'); ?>
4742
-
4743
-
4744
-
4745
-
4746
-
4747
-
4748
-
4749
- <input type="hidden" id="skyscraper_reset" name="skyscraper_reset" value="1">
4750
-
4751
-
4752
-
4753
-
4754
-
4755
-
4756
-
4757
- <?php //submit_button( __( 'Reset Sociable' ) , 'primary', 'sociable_reset', false ); ?>
4758
-
4759
-
4760
-
4761
-
4762
-
4763
-
4764
-
4765
- </form>
4766
-
4767
-
4768
-
4769
-
4770
-
4771
-
4772
-
4773
-
4774
-
4775
-
4776
-
4777
-
4778
-
4779
-
4780
-
4781
- <div id="ActionsBar">
4782
-
4783
-
4784
-
4785
-
4786
-
4787
-
4788
-
4789
- <div style="cursor:pointer;line-height:15px;" onclick="document.getElementById('form1').submit();" class="SaveChanges"><br>
4790
-
4791
-
4792
-
4793
-
4794
-
4795
-
4796
-
4797
- <span style="margin:30px;">Save Changes</span>
4798
-
4799
-
4800
-
4801
-
4802
-
4803
-
4804
-
4805
- </div>
4806
-
4807
-
4808
-
4809
-
4810
-
4811
-
4812
-
4813
- <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>
4814
-
4815
-
4816
-
4817
-
4818
-
4819
-
4820
-
4821
- <span style="margin:40px;margin-left:35px;">Reset Skyscraper</span>
4822
-
4823
-
4824
-
4825
-
4826
-
4827
-
4828
-
4829
- </div>
4830
-
4831
-
4832
-
4833
-
4834
-
4835
-
4836
-
4837
- </div>
4838
-
4839
-
4840
-
4841
-
4842
-
4843
-
4844
-
4845
- </div>
4846
-
4847
-
4848
-
4849
-
4850
-
4851
-
4852
-
4853
-
4854
-
4855
-
4856
-
4857
-
4858
-
4859
-
4860
-
4861
- </div>
4862
-
4863
-
4864
-
4865
-
4866
-
4867
-
4868
-
4869
- <div style="float:left;width:49%;margin-left:15px" name="skyscraper" id="skyscraper">
4870
-
4871
-
4872
-
4873
-
4874
-
4875
-
4876
-
4877
- <script type="text/javascript">
4878
-
4879
-
4880
-
4881
- var base_url_sociable = "<?php echo SOCIABLE_HTTP_PATH?>";
4882
-
4883
-
4884
-
4885
- </script>
4886
-
4887
-
4888
-
4889
-
4890
-
4891
-
4892
-
4893
- </div>
4894
-
4895
-
4896
-
4897
- <?php
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
- * Add The Menu Pages To The Administration Options
4930
-
4931
-
4932
-
4933
-
4934
-
4935
-
4936
-
4937
- */
4938
-
4939
-
4940
-
4941
-
4942
-
4943
-
4944
-
4945
-
4946
-
4947
-
4948
-
4949
-
4950
-
4951
-
4952
-
4953
- function add_menu_pages(){
4954
-
4955
-
4956
-
4957
-
4958
-
4959
-
4960
-
4961
-
4962
-
4963
-
4964
-
4965
-
4966
-
4967
-
4968
-
4969
- global $sociable_post_types;
4970
-
4971
-
4972
-
4973
-
4974
-
4975
-
4976
-
4977
-
4978
-
4979
-
4980
-
4981
-
4982
-
4983
-
4984
-
4985
- $url = $_SERVER["QUERY_STRING"];
4986
-
4987
-
4988
-
4989
-
4990
-
4991
-
4992
-
4993
- // $page[] = add_options_page( __( 'Sociable Options' ), __( 'Sociable Plugin' ), 'manage_options', 'sociable_select' , array( 'sociable_Admin_Options' , 'Select_Sociable_Page' ) );
4994
-
4995
-
4996
-
4997
-
4998
-
4999
-
5000
-
5001
- //$page[]= add_plugins_page( __( 'Sociable Options' ), __( 'Sociable Plugin' ), 'manage_options', 'Create_Options_Page_Skycraper' );
5002
-
5003
-
5004
-
5005
-
5006
-
5007
-
5008
-
5009
- //$page[]= add_plugins_page( 'sociable_options', 'sociable_options', 'read', 'Create_Options_Page' );
5010
-
5011
-
5012
-
5013
-
5014
-
5015
-
5016
-
5017
- $page[] = add_options_page( "","", 'manage_options', 'sociable_select' , array( 'sociable_Admin_Options' , 'Select_Sociable_Page' ) );
5018
-
5019
-
5020
-
5021
-
5022
-
5023
-
5024
-
5025
- $page[] = add_options_page( "","", 'manage_options', 'sociable_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page' ) );
5026
-
5027
-
5028
-
5029
-
5030
-
5031
-
5032
-
5033
- $page[] = add_options_page( "","", 'manage_options', 'skyscraper_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page_Skycraper' ) );
5034
-
5035
-
5036
-
5037
-
5038
-
5039
-
5040
-
5041
- // Add a new submenu under Settings:
5042
-
5043
-
5044
-
5045
-
5046
-
5047
-
5048
-
5049
- // $page[] = add_options_page(__( 'Sociable Options' ),__( 'Sociable Plugin' ), 'manage_options', 'sociable_select', 'Select_Sociable_Page');
5050
-
5051
-
5052
-
5053
- // Add a new top-level menu (ill-advised):
5054
-
5055
-
5056
-
5057
-
5058
-
5059
-
5060
-
5061
- add_menu_page(__( 'Sociable Options' ), __( 'Select Sociable Plugin' ), 'manage_options', '/options-general.php?page=sociable_select' );
5062
-
5063
-
5064
-
5065
- // Add a submenu to the custom top-level menu:
5066
-
5067
-
5068
-
5069
-
5070
-
5071
-
5072
-
5073
- add_submenu_page('options-general.php?page=sociable_select', __( 'Sociable Options' ), __( 'Sociable Options' ), 'manage_options', 'sociable_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page' ) );
5074
-
5075
-
5076
-
5077
- // Add a second submenu to the custom top-level menu:
5078
-
5079
-
5080
-
5081
-
5082
-
5083
-
5084
-
5085
- 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' ) );
5086
-
5087
-
5088
-
5089
-
5090
-
5091
-
5092
-
5093
-
5094
-
5095
-
5096
-
5097
- //Add CSS And Javascript Specific To This Options Pages
5098
-
5099
-
5100
-
5101
-
5102
-
5103
-
5104
-
5105
- add_action( 'admin_print_styles-' . $page[0] , array( 'sociable_Admin_Options' , 'enqueue_styles' ) );
5106
-
5107
-
5108
-
5109
-
5110
-
5111
-
5112
-
5113
- add_action( 'admin_print_scripts-' . $page[0] , array( 'sociable_Admin_Options' , 'enqueue_scripts' ) );
5114
-
5115
-
5116
-
5117
-
5118
-
5119
-
5120
-
5121
-
5122
-
5123
-
5124
-
5125
-
5126
-
5127
-
5128
-
5129
- add_action( 'admin_print_styles-' . $page[1] , array( 'sociable_Admin_Options' , 'enqueue_styles' ) );
5130
-
5131
-
5132
-
5133
-
5134
-
5135
-
5136
-
5137
- add_action( 'admin_print_scripts-' . $page[1] , array( 'sociable_Admin_Options' , 'enqueue_scripts' ) );
5138
-
5139
-
5140
-
5141
- add_action( 'admin_print_styles-' . $page[2] , array( 'sociable_Admin_Options' , 'enqueue_styles' ) );
5142
-
5143
-
5144
-
5145
-
5146
-
5147
-
5148
-
5149
- add_action( 'admin_print_scripts-' . $page[2] , array( 'sociable_Admin_Options' , 'enqueue_scripts' ) );
5150
-
5151
-
5152
-
5153
-
5154
-
5155
-
5156
-
5157
-
5158
-
5159
-
5160
-
5161
-
5162
-
5163
-
5164
-
5165
- if( isset( $_POST['sociable_reset'] ) ){
5166
-
5167
-
5168
-
5169
-
5170
-
5171
-
5172
-
5173
- check_admin_referer( 'sociable-reset' );
5174
-
5175
-
5176
-
5177
-
5178
-
5179
-
5180
-
5181
-
5182
-
5183
-
5184
-
5185
-
5186
-
5187
-
5188
-
5189
- sociable_reset();
5190
-
5191
-
5192
-
5193
-
5194
-
5195
-
5196
-
5197
- wp_redirect( $_SERVER['HTTP_REFERER' ] );
5198
-
5199
-
5200
-
5201
-
5202
-
5203
-
5204
-
5205
- }
5206
-
5207
-
5208
-
5209
-
5210
-
5211
-
5212
-
5213
-
5214
-
5215
-
5216
-
5217
-
5218
-
5219
-
5220
-
5221
- if( isset( $_POST['skyscraper_reset'] ) ){
5222
-
5223
-
5224
-
5225
-
5226
-
5227
-
5228
-
5229
- check_admin_referer( 'sociable-reset' );
5230
-
5231
-
5232
-
5233
-
5234
-
5235
-
5236
-
5237
-
5238
-
5239
-
5240
-
5241
-
5242
-
5243
-
5244
-
5245
- skyscraper_reset();
5246
-
5247
-
5248
-
5249
-
5250
-
5251
-
5252
-
5253
- wp_redirect( $_SERVER['HTTP_REFERER' ] );
5254
-
5255
-
5256
-
5257
-
5258
-
5259
-
5260
-
5261
- }
5262
-
5263
-
5264
-
5265
-
5266
-
5267
-
5268
-
5269
-
5270
-
5271
-
5272
-
5273
-
5274
-
5275
-
5276
-
5277
-
5278
-
5279
-
5280
-
5281
-
5282
-
5283
-
5284
-
5285
- /*
5286
-
5287
-
5288
-
5289
-
5290
-
5291
-
5292
-
5293
- * We can create The Meta Boxes Here
5294
-
5295
-
5296
-
5297
-
5298
-
5299
-
5300
-
5301
- */
5302
-
5303
-
5304
-
5305
-
5306
-
5307
-
5308
-
5309
- foreach( $sociable_post_types as $type => $data ){
5310
-
5311
-
5312
-
5313
-
5314
-
5315
-
5316
-
5317
- self::add_meta_box( $type );
5318
-
5319
-
5320
-
5321
-
5322
-
5323
-
5324
-
5325
- }
5326
-
5327
-
5328
-
5329
-
5330
-
5331
-
5332
-
5333
- //Also on posts and pages
5334
-
5335
-
5336
-
5337
-
5338
-
5339
-
5340
-
5341
- self::add_meta_box( 'post' );
5342
-
5343
-
5344
-
5345
-
5346
-
5347
-
5348
-
5349
- self::add_meta_box( 'page' );
5350
-
5351
-
5352
-
5353
-
5354
-
5355
-
5356
-
5357
-
5358
-
5359
-
5360
-
5361
-
5362
-
5363
-
5364
-
5365
- }
5366
-
5367
-
5368
-
5369
-
5370
-
5371
-
5372
-
5373
-
5374
-
5375
-
5376
-
5377
-
5378
-
5379
-
5380
-
5381
- /*
5382
-
5383
-
5384
-
5385
-
5386
-
5387
-
5388
-
5389
- * Function to Enqueue The Styles For The Options Page
5390
-
5391
-
5392
-
5393
-
5394
-
5395
-
5396
-
5397
- */
5398
-
5399
-
5400
-
5401
-
5402
-
5403
-
5404
-
5405
- function enqueue_styles(){
5406
-
5407
-
5408
-
5409
-
5410
-
5411
-
5412
-
5413
- wp_enqueue_style( 'style-admin-css', SOCIABLE_HTTP_PATH . 'css/style-admin.css' );
5414
-
5415
-
5416
-
5417
-
5418
-
5419
-
5420
-
5421
- wp_enqueue_style( 'sociable-admin-css', SOCIABLE_HTTP_PATH . 'css/sociable-admin.css' );
5422
-
5423
-
5424
-
5425
-
5426
-
5427
-
5428
-
5429
- wp_enqueue_style( 'sociablecss' , SOCIABLE_HTTP_PATH . 'css/sociable.css' );
5430
-
5431
-
5432
-
5433
-
5434
-
5435
-
5436
-
5437
- }
5438
-
5439
-
5440
-
5441
-
5442
-
5443
-
5444
-
5445
-
5446
-
5447
-
5448
-
5449
-
5450
-
5451
-
5452
-
5453
- /*
5454
-
5455
-
5456
-
5457
-
5458
-
5459
-
5460
-
5461
- * Function To Enqueue The Scripts For The Options Page
5462
-
5463
-
5464
-
5465
-
5466
-
5467
-
5468
-
5469
- */
5470
-
5471
-
5472
-
5473
-
5474
-
5475
-
5476
-
5477
- function enqueue_scripts(){
5478
-
5479
-
5480
-
5481
-
5482
-
5483
-
5484
-
5485
- wp_enqueue_script('jquery');
5486
-
5487
-
5488
-
5489
-
5490
-
5491
-
5492
-
5493
- wp_enqueue_script('jquery-ui-core',false,array('jquery'));
5494
-
5495
-
5496
-
5497
-
5498
-
5499
-
5500
-
5501
- wp_enqueue_script('jquery-ui-sortable',false,array('jquery','jquery-ui-core'));
5502
-
5503
-
5504
-
5505
-
5506
-
5507
-
5508
-
5509
- wp_enqueue_script( 'sociable-admin-js', SOCIABLE_HTTP_PATH . 'js/sociable-admin.js' , array( 'jquery','jquery-ui-core' , 'jquery-ui-sortable' ) );
5510
-
5511
-
5512
-
5513
-
5514
-
5515
-
5516
-
5517
- wp_enqueue_script( 'admin-fn-js', SOCIABLE_HTTP_PATH . 'js/admin-fn.js' , array( 'jquery','jquery-ui-core' , 'jquery-ui-sortable' ) );
5518
-
5519
-
5520
-
5521
-
5522
-
5523
-
5524
-
5525
-
5526
-
5527
-
5528
-
5529
-
5530
-
5531
-
5532
-
5533
- }
5534
-
5535
-
5536
-
5537
-
5538
-
5539
-
5540
-
5541
-
5542
-
5543
-
5544
-
5545
-
5546
-
5547
-
5548
-
5549
-
5550
-
5551
-
5552
-
5553
-
5554
-
5555
-
5556
-
5557
-
5558
-
5559
-
5560
-
5561
-
5562
-
5563
-
5564
-
5565
- /*
5566
-
5567
-
5568
-
5569
-
5570
-
5571
-
5572
-
5573
- * Function To Add The Settings Fields.
5574
-
5575
-
5576
-
5577
-
5578
-
5579
-
5580
-
5581
- */
5582
-
5583
-
5584
-
5585
- function do_site_selection_list($plugin = 'sociable'){
5586
-
5587
-
5588
-
5589
-
5590
-
5591
-
5592
-
5593
-
5594
-
5595
-
5596
-
5597
-
5598
-
5599
-
5600
-
5601
- if ($plugin == 'sociable'){
5602
-
5603
-
5604
-
5605
-
5606
-
5607
-
5608
-
5609
-
5610
-
5611
-
5612
-
5613
-
5614
-
5615
-
5616
-
5617
- global $sociable_options;
5618
-
5619
-
5620
-
5621
-
5622
-
5623
-
5624
-
5625
- $option_plugin = $sociable_options;
5626
-
5627
-
5628
-
5629
-
5630
-
5631
-
5632
-
5633
- $name_plugin = "sociable_options";
5634
-
5635
-
5636
-
5637
-
5638
-
5639
-
5640
-
5641
- }
5642
-
5643
-
5644
-
5645
-
5646
-
5647
-
5648
-
5649
- else{
5650
-
5651
-
5652
-
5653
-
5654
-
5655
-
5656
-
5657
-
5658
-
5659
-
5660
-
5661
-
5662
-
5663
-
5664
-
5665
- global $skyscraper_options;
5666
-
5667
-
5668
-
5669
-
5670
-
5671
-
5672
-
5673
- $option_plugin = $skyscraper_options;
5674
-
5675
-
5676
-
5677
-
5678
-
5679
-
5680
-
5681
- $name_plugin = "skyscraper_options";
5682
-
5683
-
5684
-
5685
-
5686
-
5687
-
5688
-
5689
- }
5690
-
5691
-
5692
-
5693
-
5694
-
5695
-
5696
-
5697
-
5698
-
5699
-
5700
-
5701
-
5702
-
5703
-
5704
-
5705
-
5706
-
5707
-
5708
-
5709
-
5710
-
5711
-
5712
-
5713
- $sociable_known_sites = get_option( 'sociable_known_sites' );
5714
-
5715
-
5716
-
5717
- /*
5718
-
5719
-
5720
-
5721
-
5722
-
5723
-
5724
-
5725
- * Sort The List Based On The Active Sites So That They Display Correctly.
5726
-
5727
-
5728
-
5729
-
5730
-
5731
-
5732
-
5733
- */
5734
-
5735
-
5736
-
5737
-
5738
-
5739
-
5740
-
5741
- $active_sites = isset( $option_plugin['active_sites'] ) && is_array( $option_plugin['active_sites'] ) ? $option_plugin['active_sites'] : array() ;
5742
-
5743
-
5744
-
5745
-
5746
-
5747
-
5748
-
5749
-
5750
-
5751
-
5752
-
5753
-
5754
-
5755
-
5756
-
5757
- //Start Blank
5758
-
5759
-
5760
-
5761
-
5762
-
5763
-
5764
-
5765
- $active = Array();
5766
-
5767
-
5768
-
5769
-
5770
-
5771
-
5772
-
5773
-
5774
-
5775
-
5776
-
5777
-
5778
-
5779
-
5780
-
5781
- //Disabled Untill Proven Active
5782
-
5783
-
5784
-
5785
-
5786
-
5787
-
5788
-
5789
- $disabled = $sociable_known_sites;
5790
-
5791
-
5792
-
5793
-
5794
-
5795
-
5796
-
5797
-
5798
-
5799
-
5800
-
5801
-
5802
-
5803
-
5804
-
5805
- //Loop Through The Active Sites, sorting into 2 arrays
5806
-
5807
-
5808
-
5809
-
5810
-
5811
-
5812
-
5813
- foreach( $active_sites as $sitename => $value ) {
5814
-
5815
-
5816
-
5817
-
5818
-
5819
-
5820
-
5821
- $active[$sitename] = $disabled[$sitename];
5822
-
5823
-
5824
-
5825
-
5826
-
5827
-
5828
-
5829
- unset( $disabled[$sitename] );
5830
-
5831
-
5832
-
5833
-
5834
-
5835
-
5836
-
5837
- }
5838
-
5839
-
5840
-
5841
-
5842
-
5843
-
5844
-
5845
-
5846
-
5847
-
5848
-
5849
-
5850
-
5851
-
5852
-
5853
- uksort($disabled, "strnatcasecmp");
5854
-
5855
-
5856
-
5857
-
5858
-
5859
-
5860
-
5861
-
5862
-
5863
-
5864
-
5865
-
5866
-
5867
-
5868
-
5869
- $sites = array_merge( $active, $disabled );
5870
-
5871
-
5872
-
5873
-
5874
-
5875
-
5876
-
5877
-
5878
-
5879
-
5880
-
5881
-
5882
-
5883
-
5884
-
5885
- $imagepath = isset( $option_plugin['sociable_imagedir'] ) ? $option_plugin['sociable_imagedir'] : '' ;
5886
-
5887
-
5888
-
5889
-
5890
-
5891
-
5892
-
5893
-
5894
-
5895
-
5896
-
5897
-
5898
-
5899
-
5900
-
5901
- if ($imagepath == "") {
5902
-
5903
-
5904
-
5905
-
5906
-
5907
-
5908
-
5909
- $imagepath = trailingslashit( SOCIABLE_HTTP_PATH ) . 'images/';
5910
-
5911
-
5912
-
5913
-
5914
-
5915
-
5916
-
5917
- } else {
5918
-
5919
-
5920
-
5921
-
5922
-
5923
-
5924
-
5925
- $imagepath .= trailingslashit( $imagepath );
5926
-
5927
-
5928
-
5929
-
5930
-
5931
-
5932
-
5933
- }
5934
-
5935
-
5936
-
5937
-
5938
-
5939
-
5940
-
5941
-
5942
-
5943
-
5944
-
5945
-
5946
-
5947
-
5948
-
5949
- $out ='<ul id="sociable_site_list" >' ;
5950
-
5951
-
5952
-
5953
-
5954
-
5955
-
5956
-
5957
- $io = 0;
5958
-
5959
-
5960
-
5961
-
5962
-
5963
-
5964
-
5965
- foreach( $sites as $sitename => $site ){
5966
-
5967
-
5968
-
5969
-
5970
-
5971
-
5972
-
5973
-
5974
-
5975
-
5976
-
5977
-
5978
-
5979
-
5980
-
5981
-
5982
-
5983
-
5984
-
5985
-
5986
-
5987
-
5988
-
5989
- //Set Checked And Active If Relevant
5990
-
5991
-
5992
-
5993
-
5994
-
5995
-
5996
-
5997
- if( array_key_exists( $sitename, $active_sites ) ){
5998
-
5999
-
6000
-
6001
-
6002
-
6003
-
6004
-
6005
- $checked = 'checked="checked"';
6006
-
6007
-
6008
-
6009
-
6010
-
6011
-
6012
-
6013
- $active = 'active';
6014
-
6015
-
6016
-
6017
-
6018
-
6019
-
6020
-
6021
- } else {
6022
-
6023
-
6024
-
6025
-
6026
-
6027
-
6028
-
6029
- $checked = '';
6030
-
6031
-
6032
-
6033
-
6034
-
6035
-
6036
-
6037
- $active = 'inactive';
6038
-
6039
-
6040
-
6041
-
6042
-
6043
-
6044
-
6045
- }
6046
-
6047
-
6048
-
6049
-
6050
-
6051
-
6052
-
6053
- if ( $sitename != "More"){
6054
-
6055
-
6056
-
6057
-
6058
-
6059
-
6060
-
6061
- if (isset($site["counter"])){
6062
-
6063
-
6064
-
6065
-
6066
-
6067
-
6068
-
6069
- //$image = "<img src='".SOCIABLE_HTTP_PATH."images/".$site["favicon"]."'>";
6070
-
6071
-
6072
-
6073
-
6074
-
6075
-
6076
-
6077
- $image = $site["url"];
6078
-
6079
-
6080
-
6081
-
6082
-
6083
-
6084
-
6085
- }else{
6086
-
6087
-
6088
-
6089
-
6090
-
6091
-
6092
-
6093
- $image = _get_sociable_image( $site, '' );
6094
-
6095
-
6096
-
6097
-
6098
-
6099
-
6100
-
6101
- }
6102
-
6103
-
6104
-
6105
-
6106
-
6107
-
6108
-
6109
- }else{
6110
-
6111
-
6112
-
6113
-
6114
-
6115
-
6116
-
6117
- $image = "<img src='".SOCIABLE_HTTP_PATH."images/more.png'>";
6118
-
6119
-
6120
-
6121
-
6122
-
6123
-
6124
-
6125
- }
6126
-
6127
-
6128
-
6129
-
6130
-
6131
-
6132
-
6133
-
6134
-
6135
-
6136
-
6137
-
6138
-
6139
-
6140
-
6141
- // if ( ! isset( $site['spriteCoordinates']) || isset( $sociable_options['sociable_disablesprite'] ) ) {
6142
-
6143
-
6144
-
6145
-
6146
-
6147
-
6148
-
6149
- // if (strpos($site['favicon'], 'http') === 0) {
6150
-
6151
-
6152
-
6153
-
6154
-
6155
-
6156
-
6157
- // $imgsrc = $site['favicon'];
6158
-
6159
-
6160
-
6161
-
6162
-
6163
-
6164
-
6165
- // } else {
6166
-
6167
-
6168
-
6169
-
6170
-
6171
-
6172
-
6173
- // $imgsrc = $imagepath.$site['favicon'];
6174
-
6175
-
6176
-
6177
-
6178
-
6179
-
6180
-
6181
- // }
6182
-
6183
-
6184
-
6185
-
6186
-
6187
-
6188
-
6189
- // $img = '<img src="' . $imgsrc . '" width="16" height="16" />';
6190
-
6191
-
6192
-
6193
-
6194
-
6195
-
6196
-
6197
- // } else {
6198
-
6199
-
6200
-
6201
-
6202
-
6203
-
6204
-
6205
- // $imgsrc = $imagepath."services-sprite.gif";
6206
-
6207
-
6208
-
6209
-
6210
-
6211
-
6212
-
6213
- // $services_sprite_url = $imagepath . "services-sprite.png";
6214
-
6215
-
6216
-
6217
-
6218
-
6219
-
6220
-
6221
- // $spriteCoords = $site['spriteCoordinates'];
6222
-
6223
-
6224
-
6225
-
6226
-
6227
-
6228
-
6229
- // $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" />';
6230
-
6231
-
6232
-
6233
-
6234
-
6235
-
6236
-
6237
- // }
6238
-
6239
-
6240
-
6241
-
6242
-
6243
-
6244
-
6245
-
6246
-
6247
-
6248
-
6249
-
6250
-
6251
-
6252
-
6253
- $out .= '<li id="' . $sitename . '" class="' . $active . '">';
6254
-
6255
-
6256
-
6257
-
6258
-
6259
-
6260
-
6261
-
6262
-
6263
-
6264
-
6265
-
6266
-
6267
-
6268
-
6269
- $out .= '<input type="checkbox" id="cb_' . $sitename . '" name="'.$name_plugin.'[active_sites][' . $sitename . ']" ' . $checked . ' />';
6270
-
6271
-
6272
-
6273
-
6274
-
6275
-
6276
-
6277
-
6278
-
6279
-
6280
-
6281
-
6282
-
6283
-
6284
-
6285
- $out .= $image;
6286
-
6287
-
6288
-
6289
-
6290
-
6291
-
6292
-
6293
- if (!isset($site["counter"])){
6294
-
6295
-
6296
-
6297
-
6298
-
6299
-
6300
-
6301
- $out .= $sitename;
6302
-
6303
-
6304
-
6305
-
6306
-
6307
-
6308
-
6309
- }
6310
-
6311
-
6312
-
6313
-
6314
-
6315
-
6316
-
6317
-
6318
-
6319
-
6320
-
6321
-
6322
-
6323
-
6324
-
6325
- $out .= '</li>';
6326
-
6327
-
6328
-
6329
-
6330
-
6331
-
6332
-
6333
-
6334
-
6335
-
6336
-
6337
-
6338
-
6339
-
6340
-
6341
- }
6342
-
6343
-
6344
-
6345
-
6346
-
6347
-
6348
-
6349
-
6350
-
6351
-
6352
-
6353
-
6354
-
6355
-
6356
-
6357
-
6358
-
6359
-
6360
-
6361
-
6362
-
6363
-
6364
-
6365
- echo $out."</ul>";
6366
-
6367
-
6368
-
6369
-
6370
-
6371
-
6372
-
6373
-
6374
-
6375
-
6376
-
6377
-
6378
-
6379
-
6380
-
6381
- }
6382
-
6383
-
6384
-
6385
-
6386
-
6387
-
6388
-
6389
-
6390
-
6391
-
6392
-
6393
-
6394
-
6395
-
6396
-
6397
- /*
6398
-
6399
-
6400
-
6401
-
6402
-
6403
-
6404
-
6405
- * Create The HTML For The Options Page
6406
-
6407
-
6408
-
6409
-
6410
-
6411
-
6412
-
6413
- */
6414
-
6415
-
6416
-
6417
-
6418
-
6419
-
6420
-
6421
- function Create_Options_Page(){
6422
-
6423
-
6424
-
6425
-
6426
-
6427
-
6428
-
6429
- global $sociable_options;
6430
-
6431
-
6432
-
6433
-
6434
-
6435
-
6436
-
6437
-
6438
-
6439
-
6440
-
6441
-
6442
-
6443
-
6444
-
6445
- ?>
6446
-
6447
-
6448
-
6449
-
6450
-
6451
-
6452
-
6453
-
6454
-
6455
-
6456
-
6457
-
6458
-
6459
-
6460
-
6461
- <div class="wrap">
6462
-
6463
-
6464
-
6465
-
6466
-
6467
-
6468
-
6469
-
6470
-
6471
-
6472
-
6473
-
6474
-
6475
-
6476
-
6477
- <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >
6478
-
6479
-
6480
-
6481
-
6482
-
6483
-
6484
-
6485
- <iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblogplay.com%2F&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 />
6486
-
6487
-
6488
-
6489
- <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://blogplay.com" data-text="Check the sociable plugin [sociable]" data-via="sociablesite" data-hashtags="sociable">Tweet</a>
6490
-
6491
-
6492
-
6493
-
6494
-
6495
- <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>
6496
-
6497
-
6498
-
6499
-
6500
-
6501
-
6502
-
6503
- <br />
6504
-
6505
-
6506
-
6507
-
6508
-
6509
-
6510
-
6511
- </div>
6512
-
6513
-
6514
-
6515
- <h2 style="clear:both;"><?php _e( 'Sociable Options' ); ?></h2>
6516
-
6517
-
6518
-
6519
- <form method="post" action="options.php" id="form1" autocomplete="off">
6520
-
6521
-
6522
-
6523
-
6524
-
6525
-
6526
-
6527
-
6528
-
6529
-
6530
-
6531
-
6532
-
6533
-
6534
-
6535
- <?php wp_nonce_field('sociable-config'); ?>
6536
-
6537
-
6538
-
6539
-
6540
-
6541
-
6542
-
6543
- <INPUT type="hidden" class="version-INPUT" id="version" name="sociable_options[version]" value="<?php echo$sociable_options["version"];?>" />
6544
-
6545
-
6546
-
6547
-
6548
-
6549
-
6550
-
6551
- <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px">
6552
-
6553
-
6554
-
6555
-
6556
-
6557
-
6558
-
6559
- <TR>
6560
-
6561
-
6562
-
6563
-
6564
-
6565
-
6566
-
6567
- <TD class="Border-Left" ></TD><TD class="BG-Middle" >Preview</TD><TD class="Border-Right"></TD>
6568
-
6569
-
6570
-
6571
-
6572
-
6573
-
6574
-
6575
- </TR>
6576
-
6577
-
6578
-
6579
-
6580
-
6581
-
6582
-
6583
- </TABLE>
6584
-
6585
-
6586
-
6587
-
6588
-
6589
-
6590
-
6591
- <BR/>
6592
-
6593
-
6594
-
6595
-
6596
-
6597
-
6598
-
6599
-
6600
-
6601
-
6602
-
6603
-
6604
-
6605
-
6606
-
6607
- <DIV class="Content-Box" id="Preview-Content">
6608
-
6609
-
6610
-
6611
-
6612
-
6613
-
6614
-
6615
- <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>
6616
-
6617
-
6618
-
6619
-
6620
-
6621
-
6622
-
6623
-
6624
-
6625
-
6626
-
6627
-
6628
-
6629
-
6630
-
6631
- <BR/>
6632
-
6633
-
6634
-
6635
-
6636
-
6637
-
6638
-
6639
-
6640
-
6641
-
6642
-
6643
-
6644
-
6645
-
6646
-
6647
- <DIV style="margin:0 0 0 25px" class="Post-TXT" id="Post-TXT" ><?php _e("This is your post here...","sociable")?></DIV>
6648
-
6649
-
6650
-
6651
-
6652
-
6653
-
6654
-
6655
-
6656
-
6657
-
6658
-
6659
-
6660
-
6661
-
6662
-
6663
- <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >Lorem ipsum dolor sit amet, consectetur adipiscing elit.</DIV>
6664
-
6665
-
6666
-
6667
-
6668
-
6669
-
6670
-
6671
-
6672
-
6673
-
6674
-
6675
-
6676
-
6677
-
6678
-
6679
- <BR/>
6680
-
6681
-
6682
-
6683
-
6684
-
6685
-
6686
-
6687
- <DIV style="margin:0 0 0 25px" id="ShareAndEnjoy" > <?php do_sociable(); ?></DIV>
6688
-
6689
-
6690
-
6691
-
6692
-
6693
-
6694
-
6695
- </DIV>
6696
-
6697
-
6698
-
6699
-
6700
-
6701
-
6702
-
6703
- <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Tagline-Title">
6704
-
6705
-
6706
-
6707
-
6708
-
6709
-
6710
-
6711
- <TR>
6712
-
6713
-
6714
-
6715
-
6716
-
6717
-
6718
-
6719
- <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Tagline","sociable");?></TD><TD class="Border-Right"></TD>
6720
-
6721
-
6722
-
6723
-
6724
-
6725
-
6726
-
6727
- </TR>
6728
-
6729
-
6730
-
6731
-
6732
-
6733
-
6734
-
6735
- </TABLE>
6736
-
6737
-
6738
-
6739
-
6740
-
6741
-
6742
-
6743
- <BR/>
6744
-
6745
-
6746
-
6747
-
6748
-
6749
-
6750
-
6751
-
6752
-
6753
-
6754
-
6755
-
6756
-
6757
-
6758
-
6759
- <DIV class="Content-Box" id="Tagline-Content">
6760
-
6761
-
6762
-
6763
-
6764
-
6765
-
6766
-
6767
- <DIV class="Tagline-TXT" id="Tagline-TXT" ><?php _e('Previously we used "Share and Enjoy", remember the good old days?',"sociable");?></DIV>
6768
-
6769
-
6770
-
6771
-
6772
-
6773
-
6774
-
6775
-
6776
-
6777
-
6778
-
6779
-
6780
-
6781
-
6782
-
6783
- <BR/>
6784
-
6785
-
6786
-
6787
-
6788
-
6789
-
6790
-
6791
- <DIV style="width:100%;height:60px;">
6792
-
6793
-
6794
-
6795
-
6796
-
6797
-
6798
-
6799
- <INPUT type="text" class="Tagline-INPUT" id="tagline" name="sociable_options[tagline]" value="<?php echo$sociable_options["tagline"];?>" />
6800
-
6801
-
6802
-
6803
-
6804
-
6805
-
6806
-
6807
-
6808
-
6809
-
6810
-
6811
-
6812
-
6813
-
6814
-
6815
- <DIV class="ToSociable" >
6816
-
6817
-
6818
-
6819
-
6820
-
6821
-
6822
-
6823
- <INPUT type="checkbox" <?php if (!empty($sociable_options["help_grow"])) echo "checked = 'checked'";?> name="sociable_options[help_grow]" id="LinkToSociable" />
6824
-
6825
-
6826
-
6827
-
6828
-
6829
-
6830
-
6831
- <?php _e("Link to Sociable","sociable");?><BR/>
6832
-
6833
-
6834
-
6835
-
6836
-
6837
-
6838
-
6839
- <SPAN style="font-size:14px;"><?php _e("(Help us grow, please leave the link so others discover Sociable from your blog)","sociable");?></SPAN>
6840
-
6841
-
6842
-
6843
-
6844
-
6845
-
6846
-
6847
- </DIV>
6848
-
6849
-
6850
-
6851
-
6852
-
6853
-
6854
-
6855
- </DIV>
6856
-
6857
-
6858
-
6859
-
6860
-
6861
-
6862
-
6863
- </DIV>
6864
-
6865
-
6866
-
6867
-
6868
-
6869
-
6870
-
6871
-
6872
-
6873
-
6874
-
6875
-
6876
-
6877
-
6878
-
6879
-
6880
-
6881
-
6882
-
6883
-
6884
-
6885
-
6886
-
6887
- <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Tagline-Title">
6888
-
6889
-
6890
-
6891
-
6892
-
6893
-
6894
-
6895
- <TR>
6896
-
6897
-
6898
-
6899
-
6900
-
6901
-
6902
-
6903
- <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Icons to Include","sociable");?></TD><TD class="Border-Right"></TD>
6904
-
6905
-
6906
-
6907
-
6908
-
6909
-
6910
-
6911
- </TR>
6912
-
6913
-
6914
-
6915
-
6916
-
6917
-
6918
-
6919
- </TABLE>
6920
-
6921
-
6922
-
6923
-
6924
-
6925
-
6926
-
6927
- <BR/>
6928
-
6929
-
6930
-
6931
-
6932
-
6933
-
6934
-
6935
-
6936
-
6937
-
6938
-
6939
-
6940
-
6941
-
6942
-
6943
- <DIV class="Content-Box" id="IconsToInclude-Box" style="">
6944
-
6945
-
6946
-
6947
-
6948
-
6949
-
6950
-
6951
- <DIV class="IconsToInclude-TXT" id="IconsToInclude-TXT" >
6952
-
6953
-
6954
-
6955
-
6956
-
6957
-
6958
-
6959
- <?php _e("Check the sites you want to appear on your blog.","sociable");?>
6960
-
6961
-
6962
-
6963
-
6964
-
6965
-
6966
-
6967
- </DIV>
6968
-
6969
-
6970
-
6971
-
6972
-
6973
-
6974
-
6975
-
6976
-
6977
-
6978
-
6979
-
6980
-
6981
-
6982
-
6983
- <BR/>
6984
-
6985
-
6986
-
6987
-
6988
-
6989
-
6990
-
6991
-
6992
-
6993
-
6994
-
6995
-
6996
-
6997
-
6998
-
6999
- <?php self::do_site_selection_list(); ?>
7000
-
7001
-
7002
-
7003
-
7004
-
7005
-
7006
-
7007
- </DIV>
7008
-
7009
-
7010
-
7011
-
7012
-
7013
-
7014
-
7015
-
7016
-
7017
-
7018
-
7019
-
7020
-
7021
-
7022
-
7023
- <div class="soc_clear"></div>
7024
-
7025
-
7026
-
7027
-
7028
-
7029
-
7030
-
7031
-
7032
-
7033
-
7034
-
7035
-
7036
-
7037
-
7038
-
7039
- <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="IconSize-Title" style="margin-top:20px;">
7040
-
7041
-
7042
-
7043
-
7044
-
7045
-
7046
-
7047
- <TR>
7048
-
7049
-
7050
-
7051
-
7052
-
7053
-
7054
-
7055
- <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Icons Size","sociable");?></TD><TD class="Border-Right"></TD>
7056
-
7057
-
7058
-
7059
-
7060
-
7061
-
7062
-
7063
- </TR>
7064
-
7065
-
7066
-
7067
-
7068
-
7069
-
7070
-
7071
- </TABLE>
7072
-
7073
-
7074
-
7075
-
7076
-
7077
-
7078
-
7079
- <BR/>
7080
-
7081
-
7082
-
7083
-
7084
-
7085
-
7086
-
7087
-
7088
-
7089
-
7090
-
7091
-
7092
-
7093
-
7094
-
7095
- <DIV class="Content-Box" style="margin-left:-3px" id="IconSize-Content">
7096
-
7097
-
7098
-
7099
-
7100
-
7101
-
7102
-
7103
- <?php
7104
-
7105
-
7106
-
7107
-
7108
-
7109
-
7110
-
7111
- $checked16 = "";
7112
-
7113
-
7114
-
7115
-
7116
-
7117
-
7118
-
7119
- $checked32 = "";
7120
-
7121
-
7122
-
7123
-
7124
-
7125
-
7126
-
7127
- $checked48 = "";
7128
-
7129
-
7130
-
7131
-
7132
-
7133
-
7134
-
7135
- $checked64 = "";
7136
-
7137
-
7138
-
7139
-
7140
-
7141
-
7142
-
7143
- if ($sociable_options["icon_size"] == 16) $checked16 = "checked='checked'";
7144
-
7145
-
7146
-
7147
-
7148
-
7149
-
7150
-
7151
- if ($sociable_options["icon_size"] == 32) $checked32 = "checked='checked'";
7152
-
7153
-
7154
-
7155
-
7156
-
7157
-
7158
-
7159
- if ($sociable_options["icon_size"] == 48) $checked48 = "checked='checked'";
7160
-
7161
-
7162
-
7163
-
7164
-
7165
-
7166
-
7167
- if ($sociable_options["icon_size"] == 64) $checked64 = "checked='checked'";
7168
-
7169
-
7170
-
7171
-
7172
-
7173
-
7174
-
7175
- //echo $checked16;
7176
-
7177
-
7178
-
7179
-
7180
-
7181
-
7182
-
7183
- ?>
7184
-
7185
-
7186
-
7187
-
7188
-
7189
-
7190
-
7191
- <SPAN class="IconSize-Item"> <INPUT value="16" type="radio" name="sociable_options[icon_size]" <?php echo $checked16;?> />16x16 Pixels </SPAN>
7192
-
7193
-
7194
-
7195
-
7196
-
7197
-
7198
-
7199
-
7200
-
7201
-
7202
-
7203
-
7204
-
7205
-
7206
-
7207
- <SPAN class="IconSize-Item"> <INPUT <?php echo$checked32;?> value="32" type="radio" name="sociable_options[icon_size]" />32x32 Pixels </SPAN>
7208
-
7209
-
7210
-
7211
-
7212
-
7213
-
7214
-
7215
-
7216
-
7217
-
7218
-
7219
-
7220
-
7221
-
7222
-
7223
- <SPAN class="IconSize-Item"> <INPUT <?php echo$checked48;?> value="48" type="radio" name="sociable_options[icon_size]"/>48x48 Pixels </SPAN>
7224
-
7225
-
7226
-
7227
-
7228
-
7229
-
7230
-
7231
-
7232
-
7233
-
7234
-
7235
-
7236
-
7237
-
7238
-
7239
- <SPAN class="IconSize-Item"> <INPUT <?php echo$checked64;?> value="64" type="radio" name="sociable_options[icon_size]" />64x64 Pixels </SPAN>
7240
-
7241
-
7242
-
7243
-
7244
-
7245
-
7246
-
7247
-
7248
-
7249
-
7250
-
7251
-
7252
-
7253
-
7254
-
7255
-
7256
-
7257
-
7258
-
7259
-
7260
-
7261
-
7262
-
7263
- </DIV>
7264
-
7265
-
7266
-
7267
-
7268
-
7269
-
7270
-
7271
-
7272
-
7273
-
7274
-
7275
-
7276
-
7277
-
7278
-
7279
- <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="IconSize-Title" style="margin-top:20px;">
7280
-
7281
-
7282
-
7283
-
7284
-
7285
-
7286
-
7287
- <TR>
7288
-
7289
-
7290
-
7291
-
7292
-
7293
-
7294
-
7295
- <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Icons Style","sociable");?></TD><TD class="Border-Right"></TD>
7296
-
7297
-
7298
-
7299
-
7300
-
7301
-
7302
-
7303
- </TR>
7304
-
7305
-
7306
-
7307
-
7308
-
7309
-
7310
-
7311
- </TABLE>
7312
-
7313
-
7314
-
7315
-
7316
-
7317
-
7318
-
7319
- <BR/>
7320
-
7321
-
7322
-
7323
-
7324
-
7325
-
7326
-
7327
-
7328
-
7329
-
7330
-
7331
-
7332
-
7333
-
7334
-
7335
- <DIV class="Content-Box" id="IconSize-Content" style="padding:20px;">
7336
-
7337
-
7338
-
7339
-
7340
-
7341
-
7342
-
7343
-
7344
-
7345
-
7346
-
7347
-
7348
-
7349
-
7350
-
7351
- <?php
7352
-
7353
-
7354
-
7355
-
7356
-
7357
-
7358
-
7359
- $checked1 = "";
7360
-
7361
-
7362
-
7363
-
7364
-
7365
-
7366
-
7367
- $checked2 = "";
7368
-
7369
-
7370
-
7371
-
7372
-
7373
-
7374
-
7375
- $checked3 = "";
7376
-
7377
-
7378
-
7379
-
7380
-
7381
-
7382
-
7383
- $checked4 = "";
7384
-
7385
-
7386
-
7387
-
7388
-
7389
-
7390
-
7391
- $checked5 = "";
7392
-
7393
-
7394
-
7395
-
7396
-
7397
-
7398
-
7399
- $checked6 = "";
7400
-
7401
-
7402
-
7403
-
7404
-
7405
-
7406
-
7407
- if ($sociable_options["icon_option"] == "option1") $checked1 = "checked='checked'";
7408
-
7409
-
7410
-
7411
-
7412
-
7413
-
7414
-
7415
- if ($sociable_options["icon_option"] == "option2") $checked2 = "checked='checked'";
7416
-
7417
-
7418
-
7419
-
7420
-
7421
-
7422
-
7423
- if ($sociable_options["icon_option"] == "option3") $checked3 = "checked='checked'";
7424
-
7425
-
7426
-
7427
-
7428
-
7429
-
7430
-
7431
- if ($sociable_options["icon_option"] == "option4") $checked4 = "checked='checked'";
7432
-
7433
-
7434
-
7435
-
7436
-
7437
-
7438
-
7439
- if ($sociable_options["icon_option"] == "option5") $checked5 = "checked='checked'";
7440
-
7441
-
7442
-
7443
-
7444
-
7445
-
7446
-
7447
- if ($sociable_options["icon_option"] == "option6") $checked6 = "checked='checked'";
7448
-
7449
-
7450
-
7451
-
7452
-
7453
-
7454
-
7455
-
7456
-
7457
-
7458
-
7459
-
7460
-
7461
-
7462
-
7463
- $imagepath = isset( $sociable_options['sociable_imagedir'] ) ? $sociable_options['sociable_imagedir'] : '' ;
7464
-
7465
-
7466
-
7467
-
7468
-
7469
-
7470
-
7471
-
7472
-
7473
-
7474
-
7475
-
7476
-
7477
-
7478
-
7479
- if ($imagepath == "") {
7480
-
7481
-
7482
-
7483
-
7484
-
7485
-
7486
-
7487
- $imagepath = trailingslashit( SOCIABLE_HTTP_PATH ) . 'images/';
7488
-
7489
-
7490
-
7491
-
7492
-
7493
-
7494
-
7495
- } else {
7496
-
7497
-
7498
-
7499
-
7500
-
7501
-
7502
-
7503
- $imagepath .= trailingslashit( $imagepath );
7504
-
7505
-
7506
-
7507
-
7508
-
7509
-
7510
-
7511
- }
7512
-
7513
-
7514
-
7515
-
7516
-
7517
-
7518
-
7519
- //echo $imagepath;
7520
-
7521
-
7522
-
7523
-
7524
-
7525
-
7526
-
7527
- ?>
7528
-
7529
-
7530
-
7531
-
7532
-
7533
-
7534
-
7535
-
7536
-
7537
-
7538
-
7539
-
7540
-
7541
-
7542
-
7543
- <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>
7544
-
7545
-
7546
-
7547
-
7548
-
7549
-
7550
-
7551
- <BR/><BR/>
7552
-
7553
-
7554
-
7555
-
7556
-
7557
-
7558
-
7559
- <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>
7560
-
7561
-
7562
-
7563
-
7564
-
7565
-
7566
-
7567
- <BR/><BR/>
7568
-
7569
-
7570
-
7571
-
7572
-
7573
-
7574
-
7575
- <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>
7576
-
7577
-
7578
-
7579
-
7580
-
7581
-
7582
-
7583
- <BR/><BR/>
7584
-
7585
-
7586
-
7587
-
7588
-
7589
-
7590
-
7591
- <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>
7592
-
7593
-
7594
-
7595
-
7596
-
7597
-
7598
-
7599
- <BR/><BR/>
7600
-
7601
-
7602
-
7603
-
7604
-
7605
-
7606
-
7607
- <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>
7608
-
7609
-
7610
-
7611
-
7612
-
7613
-
7614
-
7615
- <BR/><BR/>
7616
-
7617
-
7618
-
7619
-
7620
-
7621
-
7622
-
7623
- <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>
7624
-
7625
-
7626
-
7627
-
7628
-
7629
-
7630
-
7631
- <BR/><BR/>
7632
-
7633
-
7634
-
7635
-
7636
-
7637
-
7638
-
7639
- </DIV>
7640
-
7641
-
7642
-
7643
-
7644
-
7645
-
7646
-
7647
-
7648
-
7649
-
7650
-
7651
-
7652
-
7653
-
7654
-
7655
- <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Locations');" >
7656
-
7657
-
7658
-
7659
-
7660
-
7661
-
7662
-
7663
- <TR>
7664
-
7665
-
7666
-
7667
-
7668
-
7669
-
7670
-
7671
- <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>
7672
-
7673
-
7674
-
7675
-
7676
-
7677
-
7678
-
7679
- </TR>
7680
-
7681
-
7682
-
7683
-
7684
-
7685
-
7686
-
7687
- </TABLE>
7688
-
7689
-
7690
-
7691
-
7692
-
7693
-
7694
-
7695
- <BR/>
7696
-
7697
-
7698
-
7699
-
7700
-
7701
-
7702
-
7703
-
7704
-
7705
-
7706
-
7707
-
7708
-
7709
-
7710
-
7711
- <DIV class="Content-Box" id="Locations-Content" style="display:none;" >
7712
-
7713
-
7714
-
7715
-
7716
-
7717
-
7718
-
7719
- <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>
7720
-
7721
-
7722
-
7723
-
7724
-
7725
-
7726
-
7727
-
7728
-
7729
-
7730
-
7731
-
7732
-
7733
-
7734
-
7735
- <BR/>
7736
-
7737
-
7738
-
7739
-
7740
-
7741
-
7742
-
7743
- <DIV align="center" style="width:100%;">
7744
-
7745
-
7746
-
7747
-
7748
-
7749
-
7750
-
7751
- <TABLE align="center" class="Locations-List" cellspacing="0" border=0 cellpadding="10">
7752
-
7753
-
7754
-
7755
-
7756
-
7757
-
7758
-
7759
- <TR valign="top" >
7760
-
7761
-
7762
-
7763
-
7764
-
7765
-
7766
-
7767
- <TD align="right" class="Title" ><?php _e("Home page","sociable");?></TD>
7768
-
7769
-
7770
-
7771
-
7772
-
7773
-
7774
-
7775
- <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>
7776
-
7777
-
7778
-
7779
-
7780
-
7781
-
7782
-
7783
- <TD align="left" class="Content">
7784
-
7785
-
7786
-
7787
-
7788
-
7789
-
7790
-
7791
- <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>
7792
-
7793
-
7794
-
7795
-
7796
-
7797
-
7798
-
7799
-
7800
-
7801
-
7802
-
7803
-
7804
-
7805
-
7806
-
7807
- </TD>
7808
-
7809
-
7810
-
7811
-
7812
-
7813
-
7814
-
7815
- </TR>
7816
-
7817
-
7818
-
7819
-
7820
-
7821
-
7822
-
7823
-
7824
-
7825
-
7826
-
7827
-
7828
-
7829
-
7830
-
7831
- <TR valign="top" >
7832
-
7833
-
7834
-
7835
-
7836
-
7837
-
7838
-
7839
- <TD align="right" class="Title" ><?php _e("Blog page","sociable");?></TD>
7840
-
7841
-
7842
-
7843
-
7844
-
7845
-
7846
-
7847
- <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>
7848
-
7849
-
7850
-
7851
-
7852
-
7853
-
7854
-
7855
- <TD align="left" class="Content">
7856
-
7857
-
7858
-
7859
-
7860
-
7861
-
7862
-
7863
- <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>
7864
-
7865
-
7866
-
7867
-
7868
-
7869
-
7870
-
7871
-
7872
-
7873
-
7874
-
7875
-
7876
-
7877
-
7878
-
7879
- </TD>
7880
-
7881
-
7882
-
7883
-
7884
-
7885
-
7886
-
7887
- </TR>
7888
-
7889
-
7890
-
7891
-
7892
-
7893
-
7894
-
7895
-
7896
-
7897
-
7898
-
7899
-
7900
-
7901
-
7902
-
7903
- <TR valign="top" >
7904
-
7905
-
7906
-
7907
-
7908
-
7909
-
7910
-
7911
- <TD align="right" class="Title" ><?php _e("Posts","sociable");?></TD>
7912
-
7913
-
7914
-
7915
-
7916
-
7917
-
7918
-
7919
- <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>
7920
-
7921
-
7922
-
7923
-
7924
-
7925
-
7926
-
7927
- <TD align="left" class="Content">
7928
-
7929
-
7930
-
7931
-
7932
-
7933
-
7934
-
7935
- <SPAN class="TXT"><?php _e("Single post pages","sociable");?></SPAN>
7936
-
7937
-
7938
-
7939
-
7940
-
7941
-
7942
-
7943
-
7944
-
7945
-
7946
-
7947
-
7948
-
7949
-
7950
-
7951
- </TD>
7952
-
7953
-
7954
-
7955
-
7956
-
7957
-
7958
-
7959
- </TR>
7960
-
7961
-
7962
-
7963
-
7964
-
7965
-
7966
-
7967
-
7968
-
7969
-
7970
-
7971
-
7972
-
7973
-
7974
-
7975
- <TR valign="top" >
7976
-
7977
-
7978
-
7979
-
7980
-
7981
-
7982
-
7983
- <TD align="right" class="Title" ><?php _e("Pages","sociable");?></TD>
7984
-
7985
-
7986
-
7987
-
7988
-
7989
-
7990
-
7991
- <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>
7992
-
7993
-
7994
-
7995
-
7996
-
7997
-
7998
-
7999
- <TD align="left" class="Content">
8000
-
8001
-
8002
-
8003
-
8004
-
8005
-
8006
-
8007
- <SPAN class="TXT"><?php _e("Individual Wordpress pages","sociable");?></SPAN>
8008
-
8009
-
8010
-
8011
-
8012
-
8013
-
8014
-
8015
-
8016
-
8017
-
8018
-
8019
-
8020
-
8021
-
8022
-
8023
- </TD>
8024
-
8025
-
8026
-
8027
-
8028
-
8029
-
8030
-
8031
- </TR>
8032
-
8033
-
8034
-
8035
-
8036
-
8037
-
8038
-
8039
-
8040
-
8041
-
8042
-
8043
-
8044
-
8045
-
8046
-
8047
- <TR valign="top" >
8048
-
8049
-
8050
-
8051
-
8052
-
8053
-
8054
-
8055
- <TD align="right" class="Title" ><?php _e("Category archives","sociable");?></TD>
8056
-
8057
-
8058
-
8059
-
8060
-
8061
-
8062
-
8063
- <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>
8064
-
8065
-
8066
-
8067
-
8068
-
8069
-
8070
-
8071
- <TD align="left" class="Content">
8072
-
8073
-
8074
-
8075
-
8076
-
8077
-
8078
-
8079
- <SPAN class="TXT"><?php _e("Category archive pages","sociable");?></SPAN>
8080
-
8081
-
8082
-
8083
-
8084
-
8085
-
8086
-
8087
-
8088
-
8089
-
8090
-
8091
-
8092
-
8093
-
8094
-
8095
- </TD>
8096
-
8097
-
8098
-
8099
-
8100
-
8101
-
8102
-
8103
- </TR>
8104
-
8105
-
8106
-
8107
-
8108
-
8109
-
8110
-
8111
-
8112
-
8113
-
8114
-
8115
-
8116
-
8117
-
8118
-
8119
- <TR valign="top" >
8120
-
8121
-
8122
-
8123
-
8124
-
8125
-
8126
-
8127
- <TD align="right" class="Title" ><?php _e("Date archives","sociable");?></TD>
8128
-
8129
-
8130
-
8131
-
8132
-
8133
-
8134
-
8135
- <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>
8136
-
8137
-
8138
-
8139
-
8140
-
8141
-
8142
-
8143
- <TD align="left" class="Content">
8144
-
8145
-
8146
-
8147
-
8148
-
8149
-
8150
-
8151
- <SPAN class="TXT"><?php _e("Date archive pages","sociable");?> </SPAN>
8152
-
8153
-
8154
-
8155
-
8156
-
8157
-
8158
-
8159
-
8160
-
8161
-
8162
-
8163
-
8164
-
8165
-
8166
-
8167
- </TD>
8168
-
8169
-
8170
-
8171
-
8172
-
8173
-
8174
-
8175
- </TR>
8176
-
8177
-
8178
-
8179
-
8180
-
8181
-
8182
-
8183
-
8184
-
8185
-
8186
-
8187
-
8188
-
8189
-
8190
-
8191
- <TR valign="top" >
8192
-
8193
-
8194
-
8195
-
8196
-
8197
-
8198
-
8199
- <TD align="right" class="Title" ><?php _e("Tag archives","sociable");?></TD>
8200
-
8201
-
8202
-
8203
-
8204
-
8205
-
8206
-
8207
- <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>
8208
-
8209
-
8210
-
8211
-
8212
-
8213
-
8214
-
8215
- <TD align="left" class="Content">
8216
-
8217
-
8218
-
8219
-
8220
-
8221
-
8222
-
8223
- <SPAN class="TXT"><?php _e("Tag archive pages","sociable");?> </SPAN>
8224
-
8225
-
8226
-
8227
-
8228
-
8229
-
8230
-
8231
-
8232
-
8233
-
8234
-
8235
-
8236
-
8237
-
8238
-
8239
- </TD>
8240
-
8241
-
8242
-
8243
-
8244
-
8245
-
8246
-
8247
- </TR>
8248
-
8249
-
8250
-
8251
-
8252
-
8253
-
8254
-
8255
-
8256
-
8257
-
8258
-
8259
-
8260
-
8261
-
8262
-
8263
- <TR valign="top" >
8264
-
8265
-
8266
-
8267
-
8268
-
8269
-
8270
-
8271
- <TD align="right" class="Title" ><?php _e("Author archives","sociable");?></TD>
8272
-
8273
-
8274
-
8275
-
8276
-
8277
-
8278
-
8279
- <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>
8280
-
8281
-
8282
-
8283
-
8284
-
8285
-
8286
-
8287
- <TD align="left" class="Content">
8288
-
8289
-
8290
-
8291
-
8292
-
8293
-
8294
-
8295
- <SPAN class="TXT"><?php _e("Author archive pages","sociable");?></SPAN>
8296
-
8297
-
8298
-
8299
-
8300
-
8301
-
8302
-
8303
-
8304
-
8305
-
8306
-
8307
-
8308
-
8309
-
8310
-
8311
- </TD>
8312
-
8313
-
8314
-
8315
-
8316
-
8317
-
8318
-
8319
- </TR>
8320
-
8321
-
8322
-
8323
-
8324
-
8325
-
8326
-
8327
-
8328
-
8329
-
8330
-
8331
-
8332
-
8333
-
8334
-
8335
- <TR valign="top" >
8336
-
8337
-
8338
-
8339
-
8340
-
8341
-
8342
-
8343
- <TD align="right" class="Title" ><?php _e("Search results","sociable");?></TD>
8344
-
8345
-
8346
-
8347
-
8348
-
8349
-
8350
-
8351
- <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>
8352
-
8353
-
8354
-
8355
-
8356
-
8357
-
8358
-
8359
- <TD align="left" class="Content">
8360
-
8361
-
8362
-
8363
-
8364
-
8365
-
8366
-
8367
- <SPAN class="TXT"><?php _e("Search results pages","sociable");?></SPAN>
8368
-
8369
-
8370
-
8371
-
8372
-
8373
-
8374
-
8375
-
8376
-
8377
-
8378
-
8379
-
8380
-
8381
-
8382
-
8383
- </TD>
8384
-
8385
-
8386
-
8387
-
8388
-
8389
-
8390
-
8391
- </TR>
8392
-
8393
-
8394
-
8395
-
8396
-
8397
-
8398
-
8399
-
8400
-
8401
-
8402
-
8403
-
8404
-
8405
-
8406
-
8407
- <TR valign="top" >
8408
-
8409
-
8410
-
8411
-
8412
-
8413
-
8414
-
8415
- <TD align="right" class="Title" ><?php _e("RSS feeds","sociable");?></TD>
8416
-
8417
-
8418
-
8419
-
8420
-
8421
-
8422
-
8423
- <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>
8424
-
8425
-
8426
-
8427
-
8428
-
8429
-
8430
-
8431
- <TD align="left" class="Content">
8432
-
8433
-
8434
-
8435
-
8436
-
8437
-
8438
-
8439
- <SPAN class="TXT"><?php _e("RSS feeds","sociable");?></SPAN>
8440
-
8441
-
8442
-
8443
-
8444
-
8445
-
8446
-
8447
-
8448
-
8449
-
8450
-
8451
-
8452
-
8453
-
8454
-
8455
- </TD>
8456
-
8457
-
8458
-
8459
-
8460
-
8461
-
8462
-
8463
- </TR>
8464
-
8465
-
8466
-
8467
-
8468
-
8469
-
8470
-
8471
-
8472
-
8473
-
8474
-
8475
-
8476
-
8477
-
8478
-
8479
-
8480
-
8481
-
8482
-
8483
-
8484
-
8485
-
8486
-
8487
- </TABLE>
8488
-
8489
-
8490
-
8491
-
8492
-
8493
-
8494
-
8495
- <BR/><BR/>
8496
-
8497
-
8498
-
8499
-
8500
-
8501
-
8502
-
8503
- </DIV>
8504
-
8505
-
8506
-
8507
-
8508
-
8509
-
8510
-
8511
- </DIV>
8512
-
8513
-
8514
-
8515
-
8516
-
8517
-
8518
-
8519
-
8520
-
8521
-
8522
-
8523
-
8524
-
8525
-
8526
-
8527
- <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('GeneralOptions');">
8528
-
8529
-
8530
-
8531
-
8532
-
8533
-
8534
-
8535
- <TR>
8536
-
8537
-
8538
-
8539
-
8540
-
8541
-
8542
-
8543
- <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>
8544
-
8545
-
8546
-
8547
-
8548
-
8549
-
8550
-
8551
- </TR>
8552
-
8553
-
8554
-
8555
-
8556
-
8557
-
8558
-
8559
- </TABLE>
8560
-
8561
-
8562
-
8563
-
8564
-
8565
-
8566
-
8567
- <BR/>
8568
-
8569
-
8570
-
8571
-
8572
-
8573
-
8574
-
8575
-
8576
-
8577
-
8578
-
8579
-
8580
-
8581
-
8582
-
8583
- <DIV class="Content-Box" id="GeneralOptions-Content" style="display:none;" >
8584
-
8585
-
8586
-
8587
-
8588
-
8589
-
8590
-
8591
-
8592
-
8593
-
8594
-
8595
-
8596
-
8597
-
8598
-
8599
- <BR/>
8600
-
8601
-
8602
-
8603
-
8604
-
8605
-
8606
-
8607
- <DIV align="center" style="width:100%;">
8608
-
8609
-
8610
-
8611
-
8612
-
8613
-
8614
-
8615
- <TABLE align="center" class="GeneralOptions-List" cellspacing="0" border=0 cellpadding ="10" >
8616
-
8617
-
8618
-
8619
-
8620
-
8621
-
8622
-
8623
- <TR valign="top" >
8624
-
8625
-
8626
-
8627
-
8628
-
8629
-
8630
-
8631
- <TD align="right" class="Title" ><?php _e("Automatic mode","sociable")?></TD>
8632
-
8633
-
8634
-
8635
-
8636
-
8637
-
8638
-
8639
- <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>
8640
-
8641
-
8642
-
8643
-
8644
-
8645
-
8646
-
8647
- <TD align="left" class="Content">
8648
-
8649
-
8650
-
8651
-
8652
-
8653
-
8654
-
8655
- <SPAN class="TXT"><?php _e("Do you want to automatically use Sociable on the locations specified?","sociable");?> </SPAN>
8656
-
8657
-
8658
-
8659
-
8660
-
8661
-
8662
-
8663
- <BR/>
8664
-
8665
-
8666
-
8667
-
8668
-
8669
-
8670
-
8671
- <SPAN class="sTXT">
8672
-
8673
-
8674
-
8675
-
8676
-
8677
-
8678
-
8679
- <?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(); }
8680
-
8681
-
8682
-
8683
-
8684
-
8685
-
8686
-
8687
- </SPAN>
8688
-
8689
-
8690
-
8691
-
8692
-
8693
-
8694
-
8695
-
8696
-
8697
-
8698
-
8699
-
8700
-
8701
-
8702
-
8703
- </TD>
8704
-
8705
-
8706
-
8707
-
8708
-
8709
-
8710
-
8711
- </TR>
8712
-
8713
-
8714
-
8715
-
8716
-
8717
-
8718
-
8719
-
8720
-
8721
-
8722
-
8723
-
8724
-
8725
-
8726
-
8727
-
8728
-
8729
-
8730
-
8731
-
8732
-
8733
-
8734
-
8735
- </TR>
8736
-
8737
-
8738
-
8739
-
8740
-
8741
-
8742
-
8743
- <TR valign="top" >
8744
-
8745
-
8746
-
8747
-
8748
-
8749
-
8750
-
8751
- <TD align="right" class="Title" ><?php _e("Use styleSheet","sociable");?></TD>
8752
-
8753
-
8754
-
8755
-
8756
-
8757
-
8758
-
8759
- <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>
8760
-
8761
-
8762
-
8763
-
8764
-
8765
-
8766
-
8767
- <TD align="left" class="Content">
8768
-
8769
-
8770
-
8771
-
8772
-
8773
-
8774
-
8775
- <SPAN class="TXT"><?php _e("Do you want to use the default stylesheet for sociable?","sociable");?></SPAN>
8776
-
8777
-
8778
-
8779
-
8780
-
8781
-
8782
-
8783
- </TD>
8784
-
8785
-
8786
-
8787
-
8788
-
8789
-
8790
-
8791
- </TR>
8792
-
8793
-
8794
-
8795
-
8796
-
8797
-
8798
-
8799
- <TR valign="top" >
8800
-
8801
-
8802
-
8803
-
8804
-
8805
-
8806
-
8807
- <TD align="right" class="Title" ><?php _e("Use your own icons","sociable");?></TD>
8808
-
8809
-
8810
-
8811
-
8812
-
8813
-
8814
-
8815
- <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>
8816
-
8817
-
8818
-
8819
-
8820
-
8821
-
8822
-
8823
- <TD align="left" class="Content">
8824
-
8825
-
8826
-
8827
-
8828
-
8829
-
8830
-
8831
- <SPAN class="TXT"><?php _e("Do you want to use your own icons for sociable?","sociable");?></SPAN>
8832
-
8833
-
8834
-
8835
-
8836
-
8837
-
8838
-
8839
- </TD>
8840
-
8841
-
8842
-
8843
-
8844
-
8845
-
8846
-
8847
- </TR>
8848
-
8849
-
8850
-
8851
-
8852
-
8853
-
8854
-
8855
- <TR valign="top" >
8856
-
8857
-
8858
-
8859
-
8860
-
8861
-
8862
-
8863
- <TD align="right" class="Title" ><?php _e("Use images","sociable");?></TD>
8864
-
8865
-
8866
-
8867
-
8868
-
8869
-
8870
-
8871
- <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>
8872
-
8873
-
8874
-
8875
-
8876
-
8877
-
8878
-
8879
- <TD align="left" class="Content">
8880
-
8881
-
8882
-
8883
-
8884
-
8885
-
8886
-
8887
- <SPAN class="TXT"><?php _e("Do you want to use the Sociable images? If not, the plugin will insert plain text links.","sociable");?></SPAN>
8888
-
8889
-
8890
-
8891
-
8892
-
8893
-
8894
-
8895
- </TD>
8896
-
8897
-
8898
-
8899
-
8900
-
8901
-
8902
-
8903
- </TR>
8904
-
8905
-
8906
-
8907
-
8908
-
8909
-
8910
-
8911
-
8912
-
8913
-
8914
-
8915
-
8916
-
8917
-
8918
-
8919
-
8920
-
8921
-
8922
-
8923
-
8924
-
8925
-
8926
-
8927
- <TR valign="top" >
8928
-
8929
-
8930
-
8931
-
8932
-
8933
-
8934
-
8935
- <TD align="right" class="Title" ><?php _e("Use alpha mask","sociable");?></TD>
8936
-
8937
-
8938
-
8939
-
8940
-
8941
-
8942
-
8943
- <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>
8944
-
8945
-
8946
-
8947
-
8948
-
8949
-
8950
-
8951
- <TD align="left" class="Content">
8952
-
8953
-
8954
-
8955
-
8956
-
8957
-
8958
-
8959
- <SPAN class="TXT"><?php _e("Do you want to use alpha masks on the images (available only on the Original Sociable)?","sociable");?></SPAN>
8960
-
8961
-
8962
-
8963
-
8964
-
8965
-
8966
-
8967
- </TD>
8968
-
8969
-
8970
-
8971
-
8972
-
8973
-
8974
-
8975
- </TR>
8976
-
8977
-
8978
-
8979
-
8980
-
8981
-
8982
-
8983
- <TR valign="top" >
8984
-
8985
-
8986
-
8987
-
8988
-
8989
-
8990
-
8991
- <TD align="right" class="Title" ><?php _e("Bottom and Top","sociable");?></TD>
8992
-
8993
-
8994
-
8995
-
8996
-
8997
-
8998
-
8999
- <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>
9000
-
9001
-
9002
-
9003
-
9004
-
9005
-
9006
-
9007
- <TD align="left" class="Content">
9008
-
9009
-
9010
-
9011
-
9012
-
9013
-
9014
-
9015
- <SPAN class="TXT"><?php _e("Do you want to use Sociable plugin to show up at the top and bottom?","sociable");?></SPAN>
9016
-
9017
-
9018
-
9019
-
9020
-
9021
-
9022
-
9023
- </TD>
9024
-
9025
-
9026
-
9027
-
9028
-
9029
-
9030
-
9031
- </TR>
9032
-
9033
-
9034
-
9035
-
9036
-
9037
-
9038
-
9039
- <TR valign="top" >
9040
-
9041
-
9042
-
9043
-
9044
-
9045
-
9046
-
9047
- <TD align="right" class="Title" ><?php _e("Open in new window","sociable");?></TD>
9048
-
9049
-
9050
-
9051
-
9052
-
9053
-
9054
-
9055
- <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>
9056
-
9057
-
9058
-
9059
-
9060
-
9061
-
9062
-
9063
- <TD align="left" class="Content">
9064
-
9065
-
9066
-
9067
-
9068
-
9069
-
9070
-
9071
- <SPAN class="TXT"><?php _e("do you want to open the links in a new window?","sociable");?></SPAN>
9072
-
9073
-
9074
-
9075
-
9076
-
9077
-
9078
-
9079
- </TD>
9080
-
9081
-
9082
-
9083
-
9084
-
9085
-
9086
-
9087
- </TR>
9088
-
9089
-
9090
-
9091
-
9092
-
9093
-
9094
-
9095
-
9096
-
9097
-
9098
-
9099
-
9100
-
9101
-
9102
-
9103
-
9104
-
9105
-
9106
-
9107
-
9108
-
9109
-
9110
-
9111
-
9112
-
9113
-
9114
-
9115
-
9116
-
9117
-
9118
-
9119
- </TABLE>
9120
-
9121
-
9122
-
9123
-
9124
-
9125
-
9126
-
9127
-
9128
-
9129
-
9130
-
9131
-
9132
-
9133
-
9134
-
9135
- <BR/><BR/>
9136
-
9137
-
9138
-
9139
-
9140
-
9141
-
9142
-
9143
- </DIV>
9144
-
9145
-
9146
-
9147
-
9148
-
9149
-
9150
-
9151
- </DIV>
9152
-
9153
-
9154
-
9155
-
9156
-
9157
-
9158
-
9159
- <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Active');" >
9160
-
9161
-
9162
-
9163
-
9164
-
9165
-
9166
-
9167
- <TR>
9168
-
9169
-
9170
-
9171
-
9172
-
9173
-
9174
-
9175
- <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>
9176
-
9177
-
9178
-
9179
-
9180
-
9181
-
9182
-
9183
- </TR>
9184
-
9185
-
9186
-
9187
-
9188
-
9189
-
9190
-
9191
- </TABLE>
9192
-
9193
-
9194
-
9195
-
9196
-
9197
-
9198
-
9199
 
9200
-
9201
-
9202
-
9203
-
9204
-
9205
-
9206
-
9207
- <div style="display: block;" id="Active-Content" class="Content-Box">
9208
-
9209
-
9210
-
9211
-
9212
-
9213
-
9214
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9215
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9216
 
 
9217
 
 
 
 
 
9218
 
9219
-
9220
-
9221
-
9222
-
9223
- <br>
9224
-
9225
-
9226
-
9227
-
9228
-
9229
-
9230
-
9231
- <div align="center" style="width:100%;">
9232
-
9233
-
9234
-
9235
-
9236
-
9237
-
9238
-
9239
- <table align="center" cellspacing="0" cellpadding="10" border="0" class="GeneralOptions-List">
9240
-
9241
-
9242
-
9243
-
9244
-
9245
-
9246
-
9247
-
9248
-
9249
-
9250
-
9251
-
9252
-
9253
-
9254
-
9255
- <tbody><tr valign="top">
9256
-
9257
-
9258
-
9259
-
9260
-
9261
-
9262
-
9263
- <td align="right" class="Title">Active Sociable Classic</td>
9264
-
9265
-
9266
-
9267
-
9268
-
9269
-
9270
-
9271
- <td align="left" style="width:5px;">
9272
-
9273
-
9274
-
9275
-
9276
-
9277
-
9278
-
9279
- <input <?php if(isset($sociable_options["active"])) echo "checked='checked'"?> type="checkbox" id="active" name="sociable_options[active]" /></td>
9280
-
9281
-
9282
-
9283
-
9284
-
9285
-
9286
-
9287
- <td align="left" class="Content">
9288
-
9289
-
9290
-
9291
-
9292
-
9293
-
9294
-
9295
- <span class="TXT">Check if you want Sociable Classic enable </span>
9296
-
9297
-
9298
-
9299
-
9300
-
9301
-
9302
-
9303
- <br>
9304
-
9305
-
9306
-
9307
-
9308
-
9309
-
9310
-
9311
-
9312
-
9313
-
9314
-
9315
-
9316
-
9317
-
9318
-
9319
- </td>
9320
-
9321
-
9322
-
9323
-
9324
-
9325
-
9326
-
9327
- </tr>
9328
-
9329
-
9330
-
9331
-
9332
-
9333
-
9334
-
9335
- </tbody></table>
9336
-
9337
-
9338
-
9339
-
9340
-
9341
-
9342
-
9343
- <br><br>
9344
-
9345
-
9346
-
9347
-
9348
-
9349
-
9350
-
9351
- </div>
9352
-
9353
-
9354
-
9355
-
9356
-
9357
-
9358
-
9359
  </div>
 
 
9360
 
 
 
 
 
 
 
 
 
 
 
 
9361
 
 
 
 
 
 
 
 
 
 
 
 
 
9362
 
 
 
 
 
 
 
 
 
 
 
 
9363
 
9364
-
9365
-
9366
-
9367
- <?php //<HR style="height:10px;background:#18305d;"/>?>
9368
-
9369
-
9370
-
9371
-
9372
-
9373
-
9374
-
9375
- <?php settings_fields( 'sociable_options_group' ); ?>
9376
-
9377
-
9378
-
9379
-
9380
-
9381
-
9382
-
9383
- </FORM>
9384
-
9385
-
9386
-
9387
-
9388
-
9389
-
9390
-
9391
- <DIV class="Content-Box" >
9392
-
9393
-
9394
-
9395
-
9396
-
9397
-
9398
-
9399
- <DIV id="ActionsBar">
9400
-
9401
-
9402
-
9403
-
9404
-
9405
-
9406
-
9407
- <DIV class="SaveChanges" onClick="document.getElementById('form1').submit();" style="cursor:pointer;line-height:15px;"><br/>
9408
-
9409
-
9410
-
9411
-
9412
-
9413
-
9414
-
9415
- <span style="margin:30px;"><?php _e("Save Changes","sociable");?></span>
9416
-
9417
-
9418
-
9419
-
9420
-
9421
-
9422
-
9423
- </DIV>
9424
-
9425
-
9426
-
9427
-
9428
-
9429
-
9430
-
9431
- <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/>
9432
-
9433
-
9434
-
9435
-
9436
-
9437
-
9438
-
9439
- <span style="margin:40px;margin-left:35px;"><?php _e("Reset Sociable","sociable");?></span>
9440
-
9441
-
9442
-
9443
-
9444
-
9445
-
9446
-
9447
- </DIV>
9448
-
9449
-
9450
-
9451
-
9452
-
9453
-
9454
-
9455
- <DIV class="UninstallSociable" onClick="document.getElementById('sociable_remove_form').submit();" style="cursor:pointer;line-height:15px;font-size:12px;"><br/>
9456
-
9457
-
9458
-
9459
-
9460
-
9461
-
9462
-
9463
- <span style="margin:25px;margin-left:20px;"><?php _e("Completly Uninstall Sociable","sociable");?></span>
9464
-
9465
-
9466
-
9467
-
9468
-
9469
-
9470
-
9471
  </DIV>
9472
-
9473
-
9474
-
9475
-
9476
-
9477
-
9478
-
9479
  </DIV>
 
 
 
9480
 
 
 
 
 
 
 
 
 
 
 
9481
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9482
 
9483
-
9484
-
9485
-
9486
-
9487
- </DIV>
9488
-
9489
-
9490
-
9491
-
9492
-
9493
-
9494
-
9495
- <br>
9496
-
9497
-
9498
-
9499
-
9500
-
9501
-
9502
-
9503
- <br>
9504
-
9505
-
9506
-
9507
-
9508
-
9509
-
9510
-
9511
-
9512
-
9513
-
9514
-
9515
-
9516
-
9517
-
9518
-
9519
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9520
 
 
 
 
 
 
 
 
 
 
 
 
9521
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9522
 
 
 
 
 
9523
 
 
 
 
 
 
 
 
 
9524
 
 
 
 
 
 
 
 
 
 
 
9525
 
 
 
 
 
 
 
 
 
 
9526
 
9527
-
 
 
 
 
 
 
 
 
 
9528
 
 
 
 
 
 
 
 
 
 
 
 
9529
 
 
 
 
 
 
 
 
 
 
 
9530
 
9531
- <?php //do_settings_sections( 'sociable_options' ); ?>
 
 
 
 
 
 
 
 
 
9532
 
 
 
 
 
 
 
 
 
 
9533
 
 
 
 
 
 
 
 
 
 
9534
 
9535
-
 
 
 
 
 
 
 
 
 
9536
 
 
 
 
 
 
 
 
 
 
 
9537
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9538
 
9539
-
 
 
 
 
 
 
 
 
 
 
9540
 
 
 
 
 
 
 
 
 
 
9541
 
 
 
 
 
 
 
 
 
 
 
9542
 
 
 
 
 
 
 
 
 
9543
 
 
 
 
 
 
 
 
 
 
 
9544
 
 
 
 
 
 
 
 
 
9545
 
 
 
 
 
 
 
 
 
9546
 
9547
-
 
 
 
 
 
 
 
 
 
 
 
 
9548
 
 
 
 
 
 
 
 
 
 
 
9549
 
 
 
 
 
 
 
 
 
9550
 
 
 
 
 
 
 
 
 
 
 
 
9551
 
 
 
 
9552
 
 
 
 
 
 
9553
 
 
 
 
 
 
 
9554
 
 
9555
  <form id="sociable_reset_form" action="" method="POST">
9556
 
9557
-
9558
-
9559
-
9560
-
9561
-
9562
-
9563
  <?php wp_nonce_field('sociable-reset'); ?>
9564
-
9565
-
9566
-
9567
-
9568
-
9569
-
9570
-
9571
  <input type="hidden" id="sociable_reset" name="sociable_reset" value="1">
9572
-
9573
-
9574
-
9575
-
9576
-
9577
-
9578
-
9579
  <?php //submit_button( __( 'Reset Sociable' ) , 'primary', 'sociable_reset', false ); ?>
9580
-
9581
-
9582
-
9583
-
9584
-
9585
-
9586
-
9587
  </form>
9588
-
9589
-
9590
-
9591
-
9592
-
9593
-
9594
-
9595
 
9596
-
9597
-
9598
-
9599
-
9600
-
9601
-
9602
-
9603
 
9604
-
9605
-
9606
-
9607
  </div>
9608
-
9609
-
9610
-
9611
  <?php }
9612
-
9613
-
9614
-
9615
-
9616
-
9617
-
9618
-
9619
 
9620
-
9621
-
9622
-
9623
-
9624
-
9625
-
9626
-
9627
  function add_meta_box( $page ){
9628
-
9629
-
9630
-
9631
-
9632
-
9633
-
9634
-
9635
  add_meta_box( 'sociable_off' , __( 'Disable sociable' ), array( 'sociable_Admin_Options' , 'create_meta_box' ) , $page, 'side', 'default' );
9636
-
9637
-
9638
-
9639
-
9640
-
9641
-
9642
-
9643
  }
9644
-
9645
-
9646
-
9647
-
9648
-
9649
-
9650
-
9651
 
9652
-
9653
-
9654
-
9655
-
9656
-
9657
-
9658
-
9659
  function create_meta_box(){
9660
-
9661
-
9662
-
9663
-
9664
-
9665
-
9666
-
9667
  global $post;
9668
-
9669
-
9670
-
9671
-
9672
-
9673
-
9674
-
9675
  $sociableoff = false;
9676
-
9677
-
9678
-
9679
-
9680
-
9681
-
9682
-
9683
  $checked = '';
9684
-
9685
-
9686
-
9687
-
9688
-
9689
-
9690
-
9691
  if ( get_post_meta( $post->ID,'_sociableoff',true ) ) {
9692
-
9693
-
9694
-
9695
-
9696
-
9697
-
9698
-
9699
  $checked = 'checked="checked"';
9700
-
9701
-
9702
-
9703
-
9704
-
9705
-
9706
-
9707
  }
9708
-
9709
-
9710
-
9711
-
9712
-
9713
-
9714
-
9715
  wp_nonce_field( 'update_sociable_off' , 'sociable_nonce' );
9716
-
9717
-
9718
-
9719
-
9720
-
9721
-
9722
-
9723
  echo '<input type="checkbox" id="sociableoff" name="sociableoff" ' . $checked . ' /> <p class="description">' . __('Check This To Disable Sociable 2 On This Post Only.') . '</p>';
9724
-
9725
-
9726
-
9727
-
9728
-
9729
-
9730
-
9731
 
9732
-
9733
-
9734
-
9735
-
9736
-
9737
-
9738
-
9739
  }
9740
-
9741
-
9742
-
9743
-
9744
-
9745
-
9746
-
9747
-
9748
-
9749
-
9750
-
9751
-
9752
-
9753
-
9754
-
9755
- function save_post( $post_id ){
9756
-
9757
-
9758
-
9759
-
9760
-
9761
-
9762
-
9763
 
9764
-
9765
-
9766
-
9767
-
9768
-
9769
-
9770
-
9771
  if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
9772
-
9773
-
9774
-
9775
-
9776
-
9777
-
9778
-
9779
  return $post_id;
9780
-
9781
-
9782
-
9783
  // verify this came from the our screen and with proper authorization,
9784
-
9785
-
9786
-
9787
-
9788
-
9789
-
9790
-
9791
  // because save_post can be triggered at other times
9792
-
9793
-
9794
-
9795
-
9796
-
9797
-
9798
-
9799
 
9800
-
9801
-
9802
-
9803
-
9804
-
9805
-
9806
-
9807
  $nonce = ( isset( $_POST['sociable_nonce'] ) ) ? $_POST['sociable_nonce'] : false ;
9808
-
9809
-
9810
-
9811
  if ( ! $nonce || ! wp_verify_nonce( $nonce, 'update_sociable_off' ) )
9812
-
9813
-
9814
-
9815
-
9816
-
9817
-
9818
-
9819
  return $post_id;
9820
-
9821
-
9822
-
9823
-
9824
-
9825
-
9826
-
9827
  // Check permissions
9828
-
9829
-
9830
-
9831
-
9832
-
9833
-
9834
-
9835
  if ( 'page' == $_POST['post_type'] ){
9836
-
9837
-
9838
-
9839
-
9840
-
9841
-
9842
-
9843
  if ( !current_user_can( 'edit_page', $post_id ) )
9844
-
9845
-
9846
-
9847
-
9848
-
9849
-
9850
-
9851
  return;
9852
-
9853
-
9854
-
9855
-
9856
-
9857
-
9858
-
9859
  } else {
9860
-
9861
-
9862
-
9863
-
9864
-
9865
-
9866
-
9867
  if ( !current_user_can( 'edit_post', $post_id ) )
9868
-
9869
-
9870
-
9871
-
9872
-
9873
-
9874
-
9875
  return;
9876
-
9877
-
9878
-
9879
-
9880
-
9881
-
9882
-
9883
  }
9884
-
9885
-
9886
-
9887
-
9888
-
9889
-
9890
-
9891
 
9892
-
9893
-
9894
-
9895
-
9896
-
9897
-
9898
-
9899
  //Lets Do This
9900
-
9901
-
9902
-
9903
-
9904
-
9905
-
9906
-
9907
  if( isset( $_POST['sociableoff'] ) ){
9908
-
9909
-
9910
-
9911
-
9912
-
9913
-
9914
-
9915
  update_post_meta( $post_id, '_sociableoff' , $_POST['sociableoff'] );
9916
-
9917
-
9918
-
9919
-
9920
-
9921
-
9922
-
9923
  } else {
9924
-
9925
-
9926
-
9927
-
9928
-
9929
-
9930
-
9931
  delete_post_meta( $post_id, '_sociableoff' );
9932
-
9933
-
9934
-
9935
-
9936
-
9937
-
9938
-
9939
  }
9940
-
9941
-
9942
-
9943
-
9944
-
9945
-
9946
-
9947
 
9948
-
9949
-
9950
-
9951
-
9952
-
9953
-
9954
-
9955
  return $post_id;
9956
-
9957
-
9958
-
9959
-
9960
-
9961
-
9962
-
9963
  }
9964
-
9965
-
9966
-
9967
-
9968
-
9969
-
9970
-
9971
 
9972
-
9973
-
9974
-
9975
-
9976
-
9977
-
9978
-
9979
  /**
9980
-
9981
-
9982
-
9983
-
9984
-
9985
-
9986
-
9987
  * This Function Runs Before The Options Are Printed Out.
9988
-
9989
-
9990
-
9991
-
9992
-
9993
-
9994
-
9995
  */
9996
-
9997
-
9998
-
9999
-
10000
-
10001
-
10002
-
10003
  function general_options_callback(){
10004
-
10005
-
10006
-
10007
-
10008
-
10009
-
10010
-
10011
 
10012
-
10013
-
10014
-
10015
-
10016
-
10017
-
10018
-
10019
  return true;
10020
-
10021
-
10022
-
10023
-
10024
-
10025
-
10026
-
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
  * This Function Runs Before The Location Options Are Echoed Out.
10052
-
10053
-
10054
-
10055
-
10056
-
10057
-
10058
-
10059
  */
10060
-
10061
-
10062
-
10063
-
10064
-
10065
-
10066
-
10067
  function location_options_callback(){
10068
-
10069
-
10070
-
10071
-
10072
-
10073
-
10074
-
10075
  echo '<p>' . __( 'Please Select The Locations That You Wish To Allow The Sociable 2 Plugin To Insert The Links.' ) . '</p>';
10076
-
10077
-
10078
-
10079
-
10080
-
10081
-
10082
-
10083
  }
10084
-
10085
-
10086
-
10087
-
10088
-
10089
-
10090
-
10091
 
10092
-
10093
-
10094
-
10095
-
10096
-
10097
-
10098
-
10099
  /**
10100
-
10101
-
10102
-
10103
-
10104
-
10105
-
10106
-
10107
  * Adds A Function For The add_settings_field(); function
10108
-
10109
-
10110
-
10111
-
10112
-
10113
-
10114
-
10115
  *
10116
-
10117
-
10118
-
10119
-
10120
-
10121
-
10122
-
10123
  * should be passed:
10124
-
10125
-
10126
-
10127
-
10128
-
10129
-
10130
-
10131
  * $data = array(
10132
-
10133
-
10134
-
10135
-
10136
-
10137
-
10138
-
10139
  * 'id' => 'field_id_and_name',
10140
-
10141
-
10142
-
10143
-
10144
-
10145
-
10146
-
10147
  * 'description' => 'field Description Should Go Here, This is Not The Title, Rather The Description'
10148
-
10149
-
10150
-
10151
-
10152
-
10153
-
10154
-
10155
  * );
10156
-
10157
-
10158
-
10159
-
10160
-
10161
-
10162
-
10163
  */
10164
-
10165
-
10166
-
10167
-
10168
-
10169
-
10170
-
10171
  function Checkbox( $data ){
10172
-
10173
-
10174
-
10175
-
10176
-
10177
-
10178
-
10179
  global $sociable_options;
10180
-
10181
-
10182
-
10183
-
10184
-
10185
-
10186
-
10187
 
10188
-
10189
-
10190
-
10191
-
10192
-
10193
-
10194
-
10195
  //Save The Locations As a seperate array option
10196
 
10197
-
10198
-
10199
-
10200
-
10201
-
10202
-
10203
  if( isset( $data['locations'] ) ){
10204
-
10205
-
10206
-
10207
-
10208
-
10209
-
10210
-
10211
  $name = 'sociable_options[locations][' . $data['id'] . ']';
10212
-
10213
-
10214
-
10215
-
10216
-
10217
-
10218
-
10219
  $checked = ( isset( $sociable_options['locations'][$data['id']] ) ) ? 'checked="checked"' : '' ;
10220
-
10221
-
10222
-
10223
-
10224
-
10225
-
10226
-
10227
  } else {
10228
-
10229
-
10230
-
10231
-
10232
-
10233
-
10234
-
10235
  $name = 'sociable_options[' . $data['id'] . ']';
10236
-
10237
-
10238
-
10239
-
10240
-
10241
-
10242
-
10243
  $checked = ( isset( $sociable_options[$data['id']] ) ) ? 'checked="checked"' : '' ;
10244
-
10245
-
10246
-
10247
-
10248
-
10249
-
10250
-
10251
  }
10252
-
10253
-
10254
-
10255
-
10256
-
10257
-
10258
-
10259
 
10260
-
10261
-
10262
-
10263
-
10264
-
10265
-
10266
-
10267
 
10268
-
10269
-
10270
-
10271
  echo '<input ' . $checked . ' id="' . $data['id'] . '" name="' . $name . '" type="checkbox" /> <span class="description">' . $data['description'] . '</span>';
10272
-
10273
-
10274
-
10275
  }
10276
-
10277
-
10278
-
10279
-
10280
-
10281
-
10282
-
10283
 
10284
-
10285
-
10286
-
10287
-
10288
-
10289
-
10290
-
10291
  function TextInput( $data ){
10292
-
10293
-
10294
-
10295
-
10296
-
10297
-
10298
-
10299
  global $sociable_options;
10300
-
10301
-
10302
-
10303
-
10304
-
10305
-
10306
-
10307
-
10308
-
10309
-
10310
-
10311
-
10312
-
10313
-
10314
-
10315
- $value = ( isset( $sociable_options[$data['id']] ) ) ? $sociable_options[$data['id']] : '';
10316
-
10317
-
10318
-
10319
-
10320
-
10321
-
10322
-
10323
-
10324
-
10325
-
10326
-
10327
- 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>';
10328
-
10329
-
10330
-
10331
 
10332
-
10333
-
10334
-
10335
-
10336
-
10337
-
10338
-
10339
  }
10340
-
10341
-
10342
-
10343
-
10344
-
10345
-
10346
-
10347
 
10348
-
10349
-
10350
-
10351
-
10352
-
10353
-
10354
-
10355
  function TextArea( $data ){
10356
-
10357
-
10358
-
10359
-
10360
-
10361
-
10362
-
10363
  global $sociable_options;
10364
-
10365
-
10366
-
10367
-
10368
-
10369
-
10370
-
10371
 
10372
-
10373
-
10374
-
10375
-
10376
-
10377
-
10378
-
10379
  $value = ( isset( $sociable_options[$data['id']] ) ) ? $sociable_options[$data['id']] : '';
10380
-
10381
-
10382
-
10383
-
10384
-
10385
-
10386
-
10387
 
10388
-
10389
-
10390
-
10391
  echo '<textarea id="' . $data['id'] . '" name="sociable_options[' . $data['id'] . ']" >' . $value . '</textarea> <br /><span class="description">' . $data['description'] . '</span>';
10392
-
10393
-
10394
-
10395
 
10396
-
10397
-
10398
-
10399
-
10400
-
10401
-
10402
-
10403
  }
10404
-
10405
-
10406
-
10407
-
10408
-
10409
-
10410
-
10411
 
10412
-
10413
-
10414
-
10415
-
10416
-
10417
-
10418
-
10419
  function radio( $data ){
10420
-
10421
-
10422
-
10423
-
10424
-
10425
-
10426
-
10427
  global $sociable_options;
10428
-
10429
-
10430
-
10431
-
10432
-
10433
-
10434
-
10435
 
10436
-
10437
-
10438
-
10439
-
10440
-
10441
-
10442
-
10443
  $cur_val = ( isset( $sociable_options[$data['id']] ) ) ? $sociable_options[$data['id']] : 0 ;
10444
-
10445
-
10446
-
10447
-
10448
-
10449
-
10450
-
10451
 
10452
-
10453
-
10454
-
10455
-
10456
-
10457
-
10458
-
10459
  echo '<span class="description">' . $data['description'] . '</span><br />';
10460
-
10461
-
10462
-
10463
-
10464
-
10465
-
10466
-
10467
  foreach( $data['options'] as $value => $option ){
10468
-
10469
-
10470
-
10471
-
10472
-
10473
-
10474
-
10475
  $selected = ( $value == $cur_val ) ? 'checked="checked"' : '' ;
10476
-
10477
-
10478
-
10479
-
10480
-
10481
-
10482
-
10483
  echo '<input type="radio" name="sociable_options[' . $data['id'] . ']" value="' . $value . '" ' . $selected . ' /> <span>' . $option . '</span><br />';
10484
-
10485
-
10486
-
10487
-
10488
-
10489
-
10490
-
10491
  }
10492
-
10493
-
10494
-
10495
-
10496
-
10497
-
10498
-
10499
  }
10500
-
10501
-
10502
-
10503
-
10504
-
10505
-
10506
-
10507
 
10508
-
10509
-
10510
-
10511
-
10512
-
10513
-
10514
-
10515
 
10516
-
10517
-
10518
-
10519
-
10520
-
10521
-
10522
-
10523
  }
10524
-
10525
-
10526
-
10527
  function add_ie7() {
10528
-
10529
-
10530
-
10531
  echo'<!--[if lt IE 7]>
10532
-
10533
-
10534
-
10535
-
10536
-
10537
-
10538
-
10539
  <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js"
10540
-
10541
-
10542
-
10543
-
10544
-
10545
-
10546
-
10547
  type="text/javascript"></script>
10548
-
10549
-
10550
-
10551
-
10552
-
10553
-
10554
-
10555
  <![endif]-->
10556
 
10557
-
10558
-
10559
-
10560
-
10561
-
10562
-
10563
  <!--[if lt IE 8]>
10564
-
10565
-
10566
-
10567
-
10568
-
10569
-
10570
-
10571
  <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js"
10572
-
10573
-
10574
-
10575
-
10576
-
10577
-
10578
-
10579
  type="text/javascript"></script>
10580
-
10581
-
10582
-
10583
-
10584
-
10585
-
10586
-
10587
  <![endif]-->
10588
-
10589
-
10590
-
10591
-
10592
-
10593
-
10594
-
10595
  <!--[if lt IE 9]>
10596
-
10597
-
10598
-
10599
-
10600
-
10601
-
10602
-
10603
  <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
10604
-
10605
-
10606
-
10607
-
10608
-
10609
-
10610
-
10611
  <![endif]-->';
10612
-
10613
-
10614
-
10615
  }
10616
-
10617
-
10618
-
10619
-
10620
-
10621
-
10622
-
10623
  //add_action('admin_head', 'add_ie7' );
10624
-
10625
-
10626
-
10627
-
10628
-
10629
-
10630
-
10631
  ?>
1
  <?php
 
 
 
2
  /*
3
 
 
 
 
 
 
 
4
  * Administration Options Class For Sociable 2
5
 
 
 
 
 
 
 
6
  */
 
 
 
7
  class sociable_Admin_Options{
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  /**
9
 
 
 
 
 
 
 
10
  * A Function To Hook To Admin Init.
11
 
 
 
 
 
 
 
12
  */
 
 
 
 
 
 
 
13
  function init(){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  register_setting( 'sociable_options_group' , 'sociable_options' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  //Add The Settings Sections
 
 
 
 
 
 
 
16
  // add_settings_section( 'sociable_locations', __( 'Locations' ), array( 'sociable_Admin_Options' , 'location_options_callback' ) , 'sociable_options' );
17
+ // add_settings_section( 'sociable_options', __( 'General Options' ), array( 'sociable_Admin_Options' , 'general_options_callback' ) , 'sociable_options' );
18
+ register_setting( 'skyscraper_options_group' , 'skyscraper_options' );
19
+ // add_settings_section( 'sociable_locations', __( 'Locations' ), array( 'sociable_Admin_Options' , 'location_options_callback' ) , 'skyscraper_options' );
20
 
21
+ }
22
+ function skyscraper_init(){
23
+ register_setting( 'skyscraper_options_group' , 'skyscraper_options' );
24
+ add_settings_section( 'sociable_locations', __( 'Locations' ), array( 'sociable_Admin_Options' , 'location_options_callback' ) , 'skyscraper_options' );
25
+ //Add All The Settings Fields
26
+ //self::add_settings_fields();
27
 
28
+ }
29
+ function Select_Sociable_Page(){
30
+ global $sociable_options;
31
 
32
+ ?>
33
+ <div class="wrap" style="margin-top:25px">
34
+ <div style="width: 80%; margin-left: 25px; color: rgb(147, 147, 147); font-weight: bold; font-size: 15px;">
35
+ 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 />
36
+ 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 />
37
 
38
+ </div>
39
+ <div class="wrap" style="width:42%;float:left">
40
+ <?php //wp_nonce_field('sociable-config'); ?>
41
+ <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px">
42
 
43
+ <TR>
44
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" >Skyscraper Sociable</TD><TD class="Border-Right"></TD>
45
 
46
+ </TR>
47
 
48
+ <TR>
49
+ <TD colspan="3" >
50
+ <table>
51
+ <tr>
52
 
53
+ <td>
54
+ <img src="<?php echo SOCIABLE_HTTP_PATH ?>images/skyphoto.png" style="margin-left:-5px;margin-top:20px;" />
55
+ </td>
56
+ <td valign="top" >
57
+ <br/><br/>
58
+ <span style="font-size:18px;color:#18305e;font-weight:bold;">Skyscraper Sociable</span>
59
+ <p style="font-size:12px;color:#939393;font-weight:bold;" >
60
+ Now introducing the ultimate advanced and feature packed plugin for setting up rating system on your WordPress blog.
61
 
62
+ <br/ ><br/ >
63
+ Sociable Skyscraper allows you to set up different rating systems for posts, pages and comments with great degree of customization.
64
+ <br/ ><br/ >
65
+ List of features is so smart and non-stop growing:
66
+ <br/ ><br/ >
67
+ You can get more "Sociable" with Sociable Skyscraper and easily getting
68
+ Rating and Review of: posts, pages, comments, Facebook, G+, LinkedIN,
69
+ Twitter as well as multiple ratings for posts and pages. Visitor's counter,
70
+ visitor's from Facebook and Twitter... As a plus you get an easy way to get
71
+ TOP or HOME from Sociable Skyscraper.
72
+ <br/ ><br/ >
73
+ Enjoy it now!!!
74
+ <br/ ><br/ >
75
+ Be Sociable, Share!!!
76
+ </p>
77
+
78
+ <a href="?page=skyscraper_options" style="color:#ffffff;text-decoration:none;" ><img src="<?php echo SOCIABLE_HTTP_PATH ?>images/button_newsky.png" ></a>
79
+
80
+ </td>
81
+ </tr>
82
 
83
+ </table>
84
+ </TD>
85
+
86
+
87
+ </TR>
88
+ </TABLE>
89
+ <BR/>
90
+
91
+ </div>
92
+ <div class="wrap" style="margin-left:30px;width:48%;float:left">
93
+ <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px">
94
+ <TR>
95
 
96
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" >Classic Sociable</TD><TD class="Border-Right"></TD>
97
+ </TR>
98
+ <TR>
99
+ <TD colspan="3" >
100
+ <div style="margin-left:5px;">
101
+ <br /><br />
102
+ <span style="font-size:18px;color:#18305e;font-weight:bold;">Classic Sociable</span>
103
+
104
+ <p style="font-size:12px;color:#939393;font-weight:bold;" >
105
 
106
+ We've improved our visual interface, the default icons are now much
107
+ <br/ >
108
+ more appealing, and a touch bit larger (you do want your readers to
109
+ <br/ >
110
+ share your posts, don't you? :) Get it now!
111
+ </p>
112
+ <img src="<?php echo SOCIABLE_HTTP_PATH ?>images/socciable_old.png" ><br/>
113
+ <div style="height: 176px;"></div>
114
+ <a href="?page=sociable_options" style="color:#ffffff;text-decoration:none;" ><img src="<?php echo SOCIABLE_HTTP_PATH ?>images/button_sociabb.png" ></a>
115
+ </div>
116
+ </TD>
117
 
118
+
119
+ </TR>
120
+ </TABLE>
121
+ <BR/>
122
+
123
+ </div>
124
+ </div>
125
+ <?php }
126
+
127
+ function create_select_options($value){
128
+
129
+ for($i=3; $i<=9; ){
130
+
131
+ $sel = "";
132
+ if ($value == $i){
133
+ $sel = "selected";
134
+ }
135
+ echo "<option ".$sel." value='".$i."'> latest ".$i."</option>";
136
+
137
+ $i = $i+3;
138
+ }
139
+ }
140
+
141
+
142
+ function Create_Options_Page_Skycraper(){
143
 
144
+ global $skyscraper_options;
145
+ ?>
146
 
147
+ <div class="wrap" style="width:48%;float:left">
148
 
149
+ <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >
150
 
151
+ <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>
152
 
153
+ <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>
154
+ <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>
155
+ <br />
156
+ </div>
157
 
158
+ <form method="post" action="options.php" id="form1" autocomplete="off">
159
+ <?php wp_nonce_field('sociable-config'); ?>
160
+ <INPUT type="hidden" class="version-INPUT" id="version" name="skyscraper_options[version]" value="<?php echo $skyscraper_options["version"];?>" />
161
+ <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px">
162
+ <TR>
163
 
164
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Style Options","sociable");?></TD><TD class="Border-Right"></TD>
165
+ </TR>
166
+ </TABLE>
167
+ <BR/>
168
+ <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >
169
+ <?php _e("Text Size","sociable");?>:
170
+ <select id="text_size" name="skyscraper_options[text_size]" style="margin-left:73px">
171
+ <?php
172
+ for($px=10; $px <= 20; $px++) {
173
+ $sel = "";
174
+ if($px== $skyscraper_options["text_size"])$sel = "selected";
175
 
176
+ ?>
177
+ <option <?php echo $sel?> value="<?php echo $px?>"><?php echo $px?>px</option>
178
 
179
+ <?php
180
+ }?>
181
+ </select>
182
+ </DIV>
183
 
184
+ <DIV style="margin:0 0 0 24px" class="Post-subTXT" id="Post-subTXT" ><?php _e("Widget Width","sociable");?>:
185
+ <select id="text_size" id="widget_width" name="skyscraper_options[widget_width]" style="margin-left:50px">
186
 
187
+ <?php
188
+ for($wi=70; $wi <= 90; ) {
189
+ $sel = "";
190
+ if($wi== $skyscraper_options["widget_width"])$sel = "selected";
191
 
192
+ ?>
193
 
194
+ <option <?php echo $sel?> value="<?php echo $wi?>"><?php echo $wi?>px</option>
195
 
196
+ <?php
197
+ $wi +=5;
198
+ }?>
199
+ </select>
200
+ </DIV>
201
+ <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" ><?php _e("Background Color","sociable");?>:
202
 
203
+ <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)
204
+ </DIV>
205
 
206
+ <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" ><?php _e("Labels Color","sociable");?>:
207
 
208
+ <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)
209
 
210
+ </DIV>
211
 
212
+ <BR/>
213
 
214
+ <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Tagline-Title">
215
+ <TR>
216
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" >
217
+ Social Options
218
+ </TD>
219
+ <TD class="Border-Right"></TD>
220
+ </TR>
221
+ </TABLE>
222
+ <BR/>
223
 
224
+ <DIV style="margin:0 0 0 25px" class="Post-subTXT">
225
+ <?php _e("Your Twitter username","sociable");?>:<?php
226
+ if (!empty($skyscraper_options["twitter_username"])){
227
+ $twitter_username = $skyscraper_options["twitter_username"];
228
+ }
229
+ else{
230
+ $twitter_username = "@";
231
+ }
232
 
233
+ ?>
234
+ <input type="text" name="skyscraper_options[twitter_username]" value="<?php echo $twitter_username?>" />
235
+ <select name="skyscraper_options[num_tweets]" id="num_tweets">
236
+ <?php self:: create_select_options($skyscraper_options["num_tweets"]) ?>
237
+ </select>
238
+ </DIV>
239
+ <BR/>
240
+ <DIV style="border: 1px solid rgb(223, 223, 223); margin-left: 22px; font-size: 10px; font-style: italic; width: 327px; padding: 0px 11px;">
241
+ <p>This feature will read your latest tweets and mentions posted by other users and show them on skyscraper sociable.
242
+ <p>Sociable will save and use your twitter username only to read tweets. </p>
243
+
244
+ <p>Your visitors can read the information that you are sharing.</p>
245
+ <p>If you agree check here:
246
+
247
+ <?php
248
+
249
+ $sel = "";
250
+ if (isset($skyscraper_options["accept_read_twitter"])){
251
+
252
+ if ($skyscraper_options["accept_read_twitter"] == 1){
253
+
254
+ $sel = "checked";
255
+ }
256
+ }
257
+ ?>
258
+ <input type="checkbox" <?php echo $sel?> name="skyscraper_options[accept_read_twitter]" value="1"/>
259
+ </p>
260
+ </DIV>
261
+ <BR/>
262
+ <BR/>
263
+ <DIV style="margin:0 0 0 25px" class="Post-subTXT">
264
 
265
+ <?php _e("Your RSS feed","sociable");?>:
266
+ <?php
267
+
268
+ if (!empty($skyscraper_options["rss_feed"])){
269
+ $rss_feed = $skyscraper_options["rss_feed"];
270
+ }
271
+ else{
272
+ $rss_feed = "http://";
273
+ }
274
+ ?>
275
+ <input type="text" name="skyscraper_options[rss_feed]" style="margin-left: 46px;" value="<?php echo $rss_feed?>" />
276
+ <select name="skyscraper_options[num_rss]" id="num_rss">
277
+ <?php self:: create_select_options($skyscraper_options["num_rss"]) ?>
278
+ </select>
279
+ </DIV><BR/>
280
+ <DIV style="border: 1px solid rgb(223, 223, 223); margin-left: 22px; font-size: 10px; font-style: italic; width: 327px; padding: 0px 11px;">
281
+ <p>This feature will read your rss posts and show them on skyscraper sociable. </p>
282
+ <p>Sociable will save and use the rss url only to read posts.</p>
283
+ <p>Your visitors can read the information that you are sharing.</p>
284
+ <p>If you agree check here:
285
+
286
+ <?php
287
+
288
+ $sel = "";
289
+ if (isset($skyscraper_options["accept_read_rss"])){
290
+
291
+ if ($skyscraper_options["accept_read_rss"] == 1){
292
+
293
+ $sel = "checked";
294
+ }
295
+ }
296
+ ?>
297
+ <input type="checkbox" <?php echo $sel?> name="skyscraper_options[accept_read_rss]" value="1"/></p>
298
+ </DIV>
299
+ <BR/><BR/>
300
+ <DIV style="margin:0 0 0 25px" class="Post-subTXT">
301
 
302
+ <?php
303
+ $checked = "";
304
+ if (isset($skyscraper_options["counters"]["check"])){
305
+ $checked = "checked";
306
+ }
307
+
308
+ $folded = "";
309
+ $unfolded= "";
310
+ if (isset($skyscraper_options["counters"]["folded"])){
311
+ if($skyscraper_options["counters"]["folded"] == "1"){
312
+ $folded = "checked";
313
+ $unfolded= "";
314
+ }else{
315
+ $unfolded = "checked";
316
+ $folded= "";
317
+ }
318
+ }
319
+
320
+
321
+ ?>
322
+ <input type="checkbox" <?php echo $checked ?> name="skyscraper_options[counters][check]" id="" />
323
+ Counters
324
+ <input name="skyscraper_options[counters][folded]" <?php echo $unfolded?> value="0" type="radio">Folded
325
+ <input name="skyscraper_options[counters][folded]" <?php echo $folded?> value="1" type="radio">Unfolded
326
+ </DIV><BR/>
327
+ <DIV style="border: 1px solid rgb(223, 223, 223); margin-left: 22px; font-size: 10px; font-style: italic; width: 327px; padding: 0px 11px;">
328
+ <p>This feature load Facebook Counter, Twitter Counter and Google Plus Counter.</p>
329
+ <p>Will load scripts from each site and show information of yours visitors and maybe and could delay the load of the page.</p>
330
+ </p>
331
+ </DIV>
332
+ <BR/> <BR/>
333
+ <DIV style="margin:0 0 0 25px" class="Post-subTXT">
334
+ <?php
335
+ $checked = "";
336
+ if (isset($skyscraper_options["share"]["check"])){
337
+ $checked = "checked";
338
+ }
339
+
340
+ if (isset($skyscraper_options["share"]["folded"])){
341
+ if($skyscraper_options["share"]["folded"] == "1"){
342
+ $folded = "checked";
343
+ $unfolded= "";
344
+ }else{
345
+ $unfolded = "checked";
346
+ $folded= "";
347
+ }
348
+ }
349
+
350
+
351
+ ?>
352
+
353
+ <input type="checkbox" <?php echo $checked ?> name="skyscraper_options[share][check]" /> Share
354
+ <input style="margin-left:19px" <?php echo $unfolded?> value="0" name="skyscraper_options[share][folded]" type="radio">Folded
355
+ <input name="skyscraper_options[share][folded]" <?php echo $folded?> value="1" type="radio">Unfolded
356
+ </DIV>
357
 
358
+ <DIV class="Content-Box" id="Preview-Content">
359
+
360
+ </DIV>
361
+ <div style="clear:both"></div>
362
 
363
+ <BR/>
364
+ <DIV class="Content-Box" id="Preview-Content">
365
+ <ul class="items_li">
366
+ <li>
367
+ <?php
368
+ $checked = "";
369
+ if (isset($skyscraper_options['follow_us_check']) && $skyscraper_options['follow_us_check'] == "on"){
370
+ $checked = "checked";
371
+ }
372
+ ?>
373
+ Follow Us
374
+ <ul class="sub_item_li">
375
 
376
+ <li>
377
+ <?php
378
+ $checked = "";
379
+ if (isset($skyscraper_options['follow_us']['twitter']["active"]) && $skyscraper_options['follow_us']['twitter']["active"] == "on"){
380
+ $checked = "checked";
381
+ }
382
+ ?>
383
+ <input <?php echo $checked ?> name="skyscraper_options[follow_us][twitter][active]" type="checkbox" style="padding-bottom:5px" />
384
+ <?php
385
+ $account = "http://twitter.com/";
386
+ if(!empty($skyscraper_options["follow_us"]["twitter"]["account"])){
387
+ $account = $skyscraper_options["follow_us"]["twitter"]["account"];
388
+ }
389
+ ?>
390
+ <input type="hidden" value="t.png" name="skyscraper_options[follow_us][twitter][logo]" />
391
+ <img style="padding-bottom:5px" src="<?php echo SOCIABLE_HTTP_PATH ?>images/toolbar/t.png"/>
392
+ <input size="40" name="skyscraper_options[follow_us][twitter][account]" value="<?php echo $account?>" type="text" />
393
+ </li>
394
+ <li>
395
 
396
+ <?php
397
+ $checked = "";
398
+ if ( isset($skyscraper_options['follow_us']['feed']["active"]) && $skyscraper_options['follow_us']['feed']["active"] == "on"){
399
+ $checked = "checked";
400
+ }
401
+ ?>
402
+ <input <?php echo $checked ?> name="skyscraper_options[follow_us][feed][active]" type="checkbox" style="padding-bottom:5px" />
403
+ <input type="hidden" value="rss.png" name="skyscraper_options[follow_us][feed][logo]" />
404
+ <?php
405
+ $rss = "http://";
406
+ if(!empty($skyscraper_options["follow_us"]["feed"]["account"])){
407
+
408
+ $rss = $skyscraper_options["follow_us"]["feed"]["account"];
409
+ }
410
+ ?>
411
+ <img style="padding-bottom:5px" src="<?php echo SOCIABLE_HTTP_PATH ?>images/toolbar/rss.png"/>
412
+ <input size="40" value="<?php echo $rss?>" name="skyscraper_options[follow_us][feed][account]" type="text" />
413
+ </li>
414
+ <li>
415
+ <?php
416
+ $checked = "";
417
+ if ( isset($skyscraper_options['follow_us']['fb']["active"]) && $skyscraper_options['follow_us']['fb']["active"] == "on"){
418
+ $checked = "checked";
419
+ }
420
+ ?>
421
 
422
+ <input <?php echo $checked ?> name="skyscraper_options[follow_us][fb][active]" type="checkbox" style="padding-bottom:5px" />
423
+ <input type="hidden" value="f.png" name="skyscraper_options[follow_us][fb][logo]" />
424
+
425
+ <?php
426
+ $fb = "http://facebook.com/";
427
+ if(!empty($skyscraper_options["follow_us"]["fb"]["account"])){
428
+
429
+ $fb = $skyscraper_options["follow_us"]["fb"]["account"];
430
+ }
431
+ ?>
432
+ <img style="padding-bottom:5px" src="<?php echo SOCIABLE_HTTP_PATH ?>images/toolbar/f.png"/>
433
+ <input size="40" value="<?php echo $fb?>" name="skyscraper_options[follow_us][fb][account]" type="text" />
434
+ </li>
435
+
436
+ <li>
437
+ <?php
438
+ $checked = "";
439
+ if ( isset($skyscraper_options['follow_us']['li']["active"]) && $skyscraper_options['follow_us']['li']["active"] == "on"){
440
+ $checked = "checked";
441
+ }
442
+ ?>
443
+ <input <?php echo $checked ?> name="skyscraper_options[follow_us][li][active]" type="checkbox" style="padding-bottom:5px" />
444
+ <input type="hidden" value="i.png" name="skyscraper_options[follow_us][li][logo]" />
445
 
446
+ <input type="hidden" value="linkedin.com/in/" name="skyscraper_options[follow_us][li][url]" />
447
+ <?php
448
+ $li = "http://linkedin.com/";
449
+ if(!empty($skyscraper_options["follow_us"]["li"]["account"])){
450
+
451
+ $li = $skyscraper_options["follow_us"]["li"]["account"];
452
+ }
453
+ ?>
454
+ <img style="padding-bottom:5px" src="<?php echo SOCIABLE_HTTP_PATH ?>images/toolbar/i.png"/>
455
+ <input size="40" value="<?php echo $li?>" name="skyscraper_options[follow_us][li][account]" type="text" />
456
+ </li>
457
+ </ul>
458
+ </li>
459
+ </ul>
460
+ </DIV>
461
+ <br />
462
 
463
 
464
+ <div class="Content-Box" id="Active-Content" style="display: block;">
465
+ <br>
466
+ <div align="center" style="width:100%;">
467
+ <table align="center" cellspacing="0" cellpadding="10" border="0" class="GeneralOptions-List">
468
+ <tbody><tr valign="top">
469
 
470
+ <td align="right" class="Title">Active Sociable Banner</td>
471
 
472
+ <td align="left" style="width:5px;">
473
 
474
+ <?php
475
 
476
+
477
 
478
+ $sel = "";
479
 
480
+
481
 
482
+ if (isset($skyscraper_options["sociable_banner"])){
483
 
484
+
485
 
486
+ if (!empty($skyscraper_options["sociable_banner"])){
487
 
488
+ $sel = "checked";
489
 
490
+ }
491
 
492
+
493
 
494
+ }
495
 
496
+
497
 
498
+ ?>
499
 
500
+
501
 
502
+ <input type="checkbox" name="skyscraper_options[sociable_banner]" id="sociable_banner" <?php echo $sel?>></td>
503
+ <td align="left" class="Content">
504
+ <span class="TXT">Active Sociable "Reminder to Share" Banner / Check if you want to remind your readers Share your content.</span>
505
+ <br>
506
+ </td>
507
+ </tr>
508
 
509
+
510
 
511
+ <tr valign="top">
512
 
513
+
514
 
515
+ <td align="right" class="Title">Banner's label (35 char Max.)</td>
516
 
517
+
518
 
519
+ <td align="left" style="width:5px;">
520
 
521
+ <?php
522
 
523
+ $sel = 'Please spread the word: Be Sociable, Share!';
524
 
525
+ if (isset($skyscraper_options["sociable_banner_text"])){
526
 
527
+ if (!empty($skyscraper_options["sociable_banner_text"])){
528
 
529
+ $sel = $skyscraper_options["sociable_banner_text"];
530
 
531
+ }
532
 
533
+ }
534
 
535
+ ?>
536
 
537
+ </td>
538
 
539
+ <td align="left" class="Content">
540
 
541
+
542
 
543
+ <span class="TXT"> <input style="width:245px !important" type="text" name="skyscraper_options[sociable_banner_text]" value="<?php echo $sel?>"></span>
544
 
545
+ <br>
546
+ </td>
547
+ </tr>
548
 
549
+
550
 
551
+ <tr valign="top">
552
 
553
+
554
 
555
+ <td align="right" class="Title">Banners Timer (sec.)</td>
556
 
557
+
558
 
559
+ <td align="left" style="width:5px;">
560
 
561
+
562
 
563
+ </td>
564
 
565
+ <td align="left" class="Content">
566
 
567
+ <span class="TXT">
568
 
569
+
570
 
571
+ <select name="skyscraper_options[sociable_banner_timer]" id="banner_timer" >
572
 
573
+ <?php
574
 
575
+ for($timer=10; $timer <= 120; $timer++){
576
 
577
+
578
 
579
+ $sel = "";
580
 
581
+
582
 
583
+ if (!empty($skyscraper_options["sociable_banner_timer"])){
584
 
585
+
586
 
587
+ if ($skyscraper_options["sociable_banner_timer"] == $timer){
588
 
589
+
590
 
591
+ $sel = "selected";
592
 
593
+ }
594
 
595
+ }
596
 
597
+ ?>
598
 
599
+ <option value="<?php echo $timer?>" <?php echo $sel ?> ><?php echo $timer?></option>
600
 
601
+ <?php
602
 
603
+
604
 
605
+ $timer = $timer + 4;
606
 
607
+ } ?>
608
 
609
+ </select>
610
 
611
+
612
 
613
+ </span>
614
+ <br>
615
+ </td>
616
+ </tr>
617
 
618
+
619
 
620
+ <tr valign="top">
621
 
622
+
623
 
624
+ <td align="right" class="Title">Font Color <a title="default color #6A6A6A" class="default_values">(#6A6A6A)</a></td>
625
 
626
+
627
 
628
+ <td align="left" style="width:5px;">
629
 
630
+
631
 
632
+ </td>
633
 
634
+ <td align="left" class="Content">
635
 
636
+
637
 
638
+ <span class="TXT">
639
 
640
+
641
 
642
+ <?php
643
 
644
+ $sel = '#6A6A6A';
645
 
646
+
647
 
648
+ if (isset($skyscraper_options["sociable_banner_colorFont"])){
649
 
650
+
651
 
652
+ if (!empty($skyscraper_options["sociable_banner_colorFont"])){
653
 
654
+
655
 
656
+ $sel = $skyscraper_options["sociable_banner_colorFont"];
657
 
658
+ }
659
 
660
+ }
661
 
662
+ ?>
663
 
664
+
665
 
666
+ <input type="text" value="<?php echo $sel?>" name="skyscraper_options[sociable_banner_colorFont]" style="width:81px !important">
667
 
668
+ </span>
669
+ <br>
670
+ </td>
671
+ </tr>
672
 
673
+ <!-- Font Size -->
674
 
675
+ <tr valign="top">
676
 
677
+
678
 
679
+ <td align="right" class="Title">Font Size <a title="default size 9px" class="default_values">(9px)</a></td>
680
 
681
+
682
 
683
+ <td align="left" style="width:5px;">
684
 
685
+
686
 
687
+ </td>
688
 
689
+ <td align="left" class="Content">
690
 
691
+ <span class="TXT">
692
 
693
+
694
 
695
+ <select name="skyscraper_options[sociable_banner_fontSize]" id="banner_fontSize" >
696
 
697
+ <?php
698
 
699
+ for($fontSize=8; $fontSize <= 16; $fontSize++){
700
 
701
+
702
 
703
+ $sel = "";
704
 
705
+
706
 
707
+ if (!empty($skyscraper_options["sociable_banner_fontSize"])){
708
 
709
+
710
 
711
+ if ($skyscraper_options["sociable_banner_fontSize"] == $fontSize){
712
 
713
+
714
 
715
+ $sel = "selected";
716
 
717
+ }
718
 
719
+ }
720
 
721
+ ?>
722
 
723
+ <option value="<?php echo $fontSize?>px" <?php echo $sel ?> ><?php echo $fontSize?>px</option>
724
 
725
+ <?php
726
 
727
+ } ?>
728
 
729
+ </select>
730
 
731
+
732
 
733
+
734
 
735
+ </span>
736
 
737
+ <br>
738
 
739
+ </td>
740
 
741
+ </tr>
742
 
743
+
744
 
745
+ <!-- color label -->
746
 
747
+ <tr valign="top">
748
 
749
+
750
 
751
+ <td align="right" class="Title">Label Color <a title="default color #F7F7F7" class="default_values">(#F7F7F7)</a></td>
752
 
753
+
754
 
755
+ <td align="left" style="width:5px;">
756
 
757
+
758
 
759
+ </td>
760
 
761
+ <td align="left" class="Content">
762
 
763
+
764
 
765
+ <span class="TXT">
766
 
767
+
768
 
769
+ <?php
770
 
771
+ $sel = '#F7F7F7';
772
 
773
+
774
 
775
+ if (isset($skyscraper_options["sociable_banner_colorLabel"])){
776
 
777
+
778
 
779
+ if (!empty($skyscraper_options["sociable_banner_colorLabel"])){
780
 
781
+
782
 
783
+ $sel = $skyscraper_options["sociable_banner_colorLabel"];
784
 
785
+ }
786
 
787
+ }
788
 
789
+ ?>
790
 
791
+
792
 
793
+ <input type="text" value="<?php echo $sel?>" name="skyscraper_options[sociable_banner_colorLabel]" style="width:81px !important">
794
 
795
+ </span>
796
 
797
+ <br>
798
+ </td>
799
+ </tr>
800
 
801
+ <!-- color font -->
802
 
803
+ <tr valign="top">
804
 
805
+
806
 
807
+ <td align="right" class="Title">Background Color <a title="default color #F7F7F7" class="default_values">(#F7F7F7)</a></td>
808
 
809
+
810
 
811
+ <td align="left" style="width:5px;">
812
 
813
+
814
 
815
+ </td>
816
 
817
+ <td align="left" class="Content">
818
 
819
+ <span class="TXT">
820
 
821
+ <?php
822
 
823
+ $sel = '#F7F7F7';
824
 
825
+
826
 
827
+ if (isset($skyscraper_options["sociable_banner_colorBack"])){
828
 
829
+
830
 
831
+ if (!empty($skyscraper_options["sociable_banner_colorBack"])){
832
 
833
+
834
 
835
+ $sel = $skyscraper_options["sociable_banner_colorBack"];
836
 
837
+ }
838
 
839
+ }
840
 
841
+ ?>
842
 
843
+ <input type="text" value="<?php echo $sel?>" name="skyscraper_options[sociable_banner_colorBack]" style="width:81px !important">
844
 
845
+
846
 
847
+ </span>
848
 
849
+ <br>
850
+ </td>
851
+ </tr>
852
 
853
+
854
 
855
+ </tbody></table>
856
 
857
+ <br><br>
858
+ </div>
859
+ </div>
860
+ <!-- general options -->
861
+ <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('GeneralOptions');">
862
 
863
+ <TR>
864
+ <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>
865
+ </TR>
866
+ </TABLE>
867
+ <BR/>
868
+
869
+ <DIV class="Content-Box" id="GeneralOptions-Content" style="display:none;" >
870
+
871
+ <BR/>
872
 
873
+ <DIV align="center" style="width:100%;">
874
+ <TABLE align="center" class="GeneralOptions-List" cellspacing="0" border=0 cellpadding ="10" >
875
+
876
+ <TR valign="top" >
877
+ <TD align="right" class="Title" ><?php _e("Widget Position","sociable")?></TD>
878
+ <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>
879
+ <TD align="left" class="Content">
880
+ <SPAN class="TXT"><?php _e("Check if you want Sociable Fixed on the screen","sociable");?> </SPAN>
881
 
882
+ <BR/>
883
+
884
+ </TD>
885
+ </TR>
886
+ </TABLE>
887
+ <BR/><BR/>
888
+ </DIV>
889
+ </DIV>
890
+ <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Locations');" >
891
+ <TR>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
892
 
893
+ <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>
894
+ </TR>
895
+ </TABLE>
896
+ <BR/>
897
+
898
+ <DIV class="Content-Box" id="Locations-Content" style="display:none;" >
899
+ <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>
900
+
901
+ <BR/>
902
+ <DIV align="center" style="width:100%;">
903
 
904
+ <TABLE align="center" class="Locations-List" cellspacing="0" border=0 cellpadding="10">
905
+ <TR valign="top" >
906
+ <TD align="right" class="Title" ><?php _e("Home page","sociable");?></TD>
907
+ <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>
908
+ <TD align="left" class="Content">
909
+ <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>
910
+
911
+ </TD>
912
+ </TR>
913
 
914
+
915
+ <TR valign="top" >
916
+ <TD align="right" class="Title" ><?php _e("Blog page","sociable");?></TD>
917
+ <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>
918
+ <TD align="left" class="Content">
919
+ <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>
920
+
921
+ </TD>
922
+ </TR>
923
+
924
+ <TR valign="top" >
925
 
926
+ <TD align="right" class="Title" ><?php _e("Posts","sociable");?></TD>
927
+ <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>
928
+ <TD align="left" class="Content">
929
+ <SPAN class="TXT"><?php _e("Single post pages","sociable");?></SPAN>
930
+
931
+ </TD>
932
+ </TR>
933
+
934
+ <TR valign="top" >
935
+ <TD align="right" class="Title" ><?php _e("Pages","sociable");?></TD>
936
 
937
+ <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>
938
+ <TD align="left" class="Content">
939
+ <SPAN class="TXT"><?php _e("Individual Wordpress pages","sociable");?></SPAN>
940
+
941
+ </TD>
942
+ </TR>
943
+
944
+ <TR valign="top" >
945
+ <TD align="right" class="Title" ><?php _e("Category archives","sociable");?></TD>
946
+ <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>
947
 
948
+ <TD align="left" class="Content">
949
+ <SPAN class="TXT"><?php _e("Category archive pages","sociable");?></SPAN>
950
+
951
+ </TD>
952
+ </TR>
953
+
954
+ <TR valign="top" >
955
+ <TD align="right" class="Title" ><?php _e("Date archives","sociable");?></TD>
956
+ <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>
957
+ <TD align="left" class="Content">
958
 
959
+ <SPAN class="TXT"><?php _e("Date archive pages","sociable");?> </SPAN>
960
+
961
+ </TD>
962
+ </TR>
963
+
964
+ <TR valign="top" >
965
+ <TD align="right" class="Title" ><?php _e("Tag archives","sociable");?></TD>
966
+ <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>
967
+ <TD align="left" class="Content">
968
 
969
+ <SPAN class="TXT"><?php _e("Tag archive pages","sociable");?> </SPAN>
970
+
971
+ </TD>
972
+ </TR>
973
+
974
+ <TR valign="top" >
975
+ <TD align="right" class="Title" ><?php _e("Author archives","sociable");?></TD>
976
+ <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>
977
+ <TD align="left" class="Content">
978
 
979
+ <SPAN class="TXT"><?php _e("Author archive pages","sociable");?></SPAN>
980
+
981
+ </TD>
982
+ </TR>
983
+
984
+ <TR valign="top" >
985
+ <TD align="right" class="Title" ><?php _e("Search results","sociable");?></TD>
986
+ <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>
987
+ <TD align="left" class="Content">
988
+ <SPAN class="TXT"><?php _e("Search results pages","sociable");?></SPAN>
989
 
990
+
991
+ </TD>
992
+ </TR>
993
+
994
+ <TR valign="top" >
995
+ <TD align="right" class="Title" ><?php _e("RSS feeds","sociable");?></TD>
996
+ <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>
997
+ <TD align="left" class="Content">
998
+ <SPAN class="TXT"><?php _e("RSS feeds","sociable");?></SPAN>
999
+
1000
+ </TD>
1001
 
1002
+ </TR>
1003
+
1004
+ </TABLE>
1005
+ <BR/><BR/>
1006
+ </DIV>
1007
+ </DIV>
1008
+
1009
+ <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Active');" >
1010
  <TR>
1011
+ <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>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1012
  </TR>
1013
 
1014
+ </TABLE>
1015
+
1016
+ <div style="display: block;" id="Active-Content" class="Content-Box">
1017
+
1018
+ <br>
1019
+ <div align="center" style="width:100%;">
1020
+ <table align="center" cellspacing="0" cellpadding="10" border="0" class="GeneralOptions-List">
1021
+
1022
+ <tbody><tr valign="top">
1023
+ <td align="right" class="Title">Active Skyscraper</td>
1024
+ <td align="left" style="width:5px;">
1025
 
1026
+ <input <?php if(isset($skyscraper_options["active"])) echo "checked='checked'"?> type="checkbox" id="active" name="skyscraper_options[active]" ></td>
1027
+ <td align="left" class="Content">
1028
+ <span class="TXT">Check if you want Sociable Skyscraper enable </span>
1029
+ <br>
1030
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1031
  </td>
1032
+ </tr>
1033
+ </tbody></table>
1034
+ <br><br>
1035
 
1036
+ </div>
1037
+ </div>
1038
+ <br/><br/>
1039
+ <?php settings_fields( 'skyscraper_options_group' ); ?>
1040
+ </form>
1041
+ <div class="Content-Box">
1042
+
1043
+ <form id="sociable_reset_form" action="" method="POST">
1044
+ <?php wp_nonce_field('sociable-reset'); ?>
1045
+ <input type="hidden" id="skyscraper_reset" name="skyscraper_reset" value="1">
1046
 
1047
+ <?php //submit_button( __( 'Reset Sociable' ) , 'primary', 'sociable_reset', false ); ?>
1048
+ </form>
1049
+
1050
+ <div id="ActionsBar">
1051
+ <div style="cursor:pointer;line-height:15px;" onclick="document.getElementById('form1').submit();" class="SaveChanges"><br>
1052
+ <span style="margin:30px;">Save Changes</span>
1053
+ </div>
1054
+ <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>
1055
+ <span style="margin:40px;margin-left:35px;">Reset Skyscraper</span>
1056
 
1057
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1058
  </div>
1059
+ </div>
1060
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1061
  </div>
1062
+ <div style="float:left;width:49%;margin-left:15px" name="skyscraper" id="skyscraper">
1063
+ <script type="text/javascript">
1064
+ var base_url_sociable = "<?php echo SOCIABLE_HTTP_PATH?>";
1065
+ </script>
 
 
 
1066
  </div>
1067
+ <?php
1068
+ }
 
 
 
 
 
 
 
 
 
1069
 
1070
+ /**
1071
+ * Add The Menu Pages To The Administration Options
1072
+ */
1073
+
1074
+ function add_menu_pages(){
1075
+
1076
+ global $sociable_post_types;
1077
+
1078
+ $url = $_SERVER["QUERY_STRING"];
1079
+ // $page[] = add_options_page( __( 'Sociable Options' ), __( 'Sociable Plugin' ), 'manage_options', 'sociable_select' , array( 'sociable_Admin_Options' , 'Select_Sociable_Page' ) );
1080
+ //$page[]= add_plugins_page( __( 'Sociable Options' ), __( 'Sociable Plugin' ), 'manage_options', 'Create_Options_Page_Skycraper' );
1081
+ //$page[]= add_plugins_page( 'sociable_options', 'sociable_options', 'read', 'Create_Options_Page' );
1082
+ $page[] = add_options_page( "","", 'manage_options', 'sociable_select' , array( 'sociable_Admin_Options' , 'Select_Sociable_Page' ) );
1083
+ $page[] = add_options_page( "","", 'manage_options', 'sociable_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page' ) );
1084
+ $page[] = add_options_page( "","", 'manage_options', 'skyscraper_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page_Skycraper' ) );
1085
+ // Add a new submenu under Settings:
1086
+ // $page[] = add_options_page(__( 'Sociable Options' ),__( 'Sociable Plugin' ), 'manage_options', 'sociable_select', 'Select_Sociable_Page');
1087
+ // Add a new top-level menu (ill-advised):
1088
+ add_menu_page(__( 'Sociable Options' ), __( 'Select Sociable Plugin' ), 'manage_options', '/options-general.php?page=sociable_select' );
1089
+ // Add a submenu to the custom top-level menu:
1090
+ add_submenu_page('options-general.php?page=sociable_select', __( 'Sociable Options' ), __( 'Sociable Options' ), 'manage_options', 'sociable_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page' ) );
1091
+ // Add a second submenu to the custom top-level menu:
1092
+ 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' ) );
1093
+
1094
+ //Add CSS And Javascript Specific To This Options Pages
1095
+ add_action( 'admin_print_styles-' . $page[0] , array( 'sociable_Admin_Options' , 'enqueue_styles' ) );
1096
+ add_action( 'admin_print_scripts-' . $page[0] , array( 'sociable_Admin_Options' , 'enqueue_scripts' ) );
1097
+
1098
+ add_action( 'admin_print_styles-' . $page[1] , array( 'sociable_Admin_Options' , 'enqueue_styles' ) );
1099
+ add_action( 'admin_print_scripts-' . $page[1] , array( 'sociable_Admin_Options' , 'enqueue_scripts' ) );
1100
+ add_action( 'admin_print_styles-' . $page[2] , array( 'sociable_Admin_Options' , 'enqueue_styles' ) );
1101
+ add_action( 'admin_print_scripts-' . $page[2] , array( 'sociable_Admin_Options' , 'enqueue_scripts' ) );
1102
 
1103
+ if( isset( $_POST['sociable_reset'] ) ){
1104
+ check_admin_referer( 'sociable-reset' );
1105
+
1106
+ sociable_reset();
1107
+ wp_redirect( $_SERVER['HTTP_REFERER' ] );
1108
+ }
1109
+
1110
+ if( isset( $_POST['skyscraper_reset'] ) ){
1111
+ check_admin_referer( 'sociable-reset' );
1112
+
1113
+ skyscraper_reset();
1114
+ wp_redirect( $_SERVER['HTTP_REFERER' ] );
1115
+ }
1116
+
1117
+
1118
+ /*
1119
+ * We can create The Meta Boxes Here
1120
+ */
1121
+ foreach( $sociable_post_types as $type => $data ){
1122
+ self::add_meta_box( $type );
1123
+ }
1124
+ //Also on posts and pages
1125
+ self::add_meta_box( 'post' );
1126
+ self::add_meta_box( 'page' );
1127
+
1128
+ }
1129
+
1130
+ /*
1131
+ * Function to Enqueue The Styles For The Options Page
1132
+ */
1133
+ function enqueue_styles(){
1134
+ wp_enqueue_style( 'style-admin-css', SOCIABLE_HTTP_PATH . 'css/style-admin.css' );
1135
+ wp_enqueue_style( 'sociable-admin-css', SOCIABLE_HTTP_PATH . 'css/sociable-admin.css' );
1136
+ wp_enqueue_style( 'sociablecss' , SOCIABLE_HTTP_PATH . 'css/sociable.css' );
1137
+ }
1138
+
1139
+ /*
1140
+ * Function To Enqueue The Scripts For The Options Page
1141
+ */
1142
+ function enqueue_scripts(){
1143
+ wp_enqueue_script('jquery');
1144
+ wp_enqueue_script('jquery-ui-core',false,array('jquery'));
1145
+ wp_enqueue_script('jquery-ui-sortable',false,array('jquery','jquery-ui-core'));
1146
+ wp_enqueue_script( 'sociable-admin-js', SOCIABLE_HTTP_PATH . 'js/sociable-admin.js' , array( 'jquery','jquery-ui-core' , 'jquery-ui-sortable' ) );
1147
+ wp_enqueue_script( 'admin-fn-js', SOCIABLE_HTTP_PATH . 'js/admin-fn.js' , array( 'jquery','jquery-ui-core' , 'jquery-ui-sortable' ) );
1148
+
1149
+ }
1150
+
1151
+
1152
+
1153
+ /*
1154
+ * Function To Add The Settings Fields.
1155
+ */
1156
+ function do_site_selection_list($plugin = 'sociable'){
1157
+
1158
+ if ($plugin == 'sociable'){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1159
 
1160
+ global $sociable_options;
1161
+ $option_plugin = $sociable_options;
1162
+ $name_plugin = "sociable_options";
1163
+ }
1164
+ else{
1165
+
1166
+ global $skyscraper_options;
1167
+ $option_plugin = $skyscraper_options;
1168
+ $name_plugin = "skyscraper_options";
1169
+ }
1170
+
1171
+
1172
+ $sociable_known_sites = get_option( 'sociable_known_sites' );
1173
+ /*
1174
+ * Sort The List Based On The Active Sites So That They Display Correctly.
1175
+ */
1176
+ $active_sites = isset( $option_plugin['active_sites'] ) && is_array( $option_plugin['active_sites'] ) ? $option_plugin['active_sites'] : array() ;
1177
+
1178
+ //Start Blank
1179
+ $active = Array();
1180
+
1181
+ //Disabled Untill Proven Active
1182
+ $disabled = $sociable_known_sites;
1183
+
1184
+ //Loop Through The Active Sites, sorting into 2 arrays
1185
+ foreach( $active_sites as $sitename => $value ) {
1186
+ $active[$sitename] = $disabled[$sitename];
1187
+ unset( $disabled[$sitename] );
1188
+ }
1189
+
1190
+ uksort($disabled, "strnatcasecmp");
1191
+
1192
+ $sites = array_merge( $active, $disabled );
1193
+
1194
+ $imagepath = isset( $option_plugin['sociable_imagedir'] ) ? $option_plugin['sociable_imagedir'] : '' ;
1195
+
1196
+ if ($imagepath == "") {
1197
+ $imagepath = trailingslashit( SOCIABLE_HTTP_PATH ) . 'images/';
1198
+ } else {
1199
+ $imagepath .= trailingslashit( $imagepath );
1200
+ }
1201
+
1202
+ $out ='<ul id="sociable_site_list" >' ;
1203
+ $io = 0;
1204
+ foreach( $sites as $sitename => $site ){
1205
 
1206
+
1207
+ //Set Checked And Active If Relevant
1208
+ if( array_key_exists( $sitename, $active_sites ) ){
1209
+ $checked = 'checked="checked"';
1210
+ $active = 'active';
1211
+ } else {
1212
+ $checked = '';
1213
+ $active = 'inactive';
1214
+ }
1215
+ if ( $sitename != "More"){
1216
+ if (isset($site["counter"])){
1217
+ //$image = "<img src='".SOCIABLE_HTTP_PATH."images/".$site["favicon"]."'>";
1218
+ $image = $site["url"];
1219
+ }else{
1220
+ $image = _get_sociable_image( $site, '' );
1221
+ }
1222
+ }else{
1223
+ $image = "<img src='".SOCIABLE_HTTP_PATH."images/more.png'>";
1224
+ }
1225
+
1226
+ // if ( ! isset( $site['spriteCoordinates']) || isset( $sociable_options['sociable_disablesprite'] ) ) {
1227
+ // if (strpos($site['favicon'], 'http') === 0) {
1228
+ // $imgsrc = $site['favicon'];
1229
+ // } else {
1230
+ // $imgsrc = $imagepath.$site['favicon'];
1231
+ // }
1232
+ // $img = '<img src="' . $imgsrc . '" width="16" height="16" />';
1233
+ // } else {
1234
+ // $imgsrc = $imagepath."services-sprite.gif";
1235
+ // $services_sprite_url = $imagepath . "services-sprite.png";
1236
+ // $spriteCoords = $site['spriteCoordinates'];
1237
+ // $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" />';
1238
+ // }
1239
+
1240
+ $out .= '<li id="' . $sitename . '" class="' . $active . '">';
1241
+
1242
+ $out .= '<input type="checkbox" id="cb_' . $sitename . '" name="'.$name_plugin.'[active_sites][' . $sitename . ']" ' . $checked . ' />';
1243
+
1244
+ $out .= $image;
1245
+ if (!isset($site["counter"])){
1246
+ $out .= $sitename;
1247
+ }
1248
+
1249
+ $out .= '</li>';
1250
+
1251
+ }
1252
+
1253
+
1254
+ echo $out."</ul>";
1255
+
1256
+ }
1257
+
1258
+ /*
1259
+ * Create The HTML For The Options Page
1260
+ */
1261
+ function Create_Options_Page(){
1262
+ global $sociable_options;
1263
+ ?>
1264
 
1265
+ <div class="wrap">
1266
 
1267
+ <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >
1268
+
1269
+ <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 />
1270
+ <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>
1271
 
1272
+ <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>
1273
+ <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1274
  </div>
1275
+ <h2 style="clear:both;"><?php _e( 'Sociable Options' ); ?></h2>
1276
+ <form method="post" action="options.php" id="form1" autocomplete="off">
1277
 
1278
+
1279
+ <?php wp_nonce_field('sociable-config'); ?>
1280
+ <INPUT type="hidden" class="version-INPUT" id="version" name="sociable_options[version]" value="<?php echo$sociable_options["version"];?>" />
1281
+ <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px">
1282
+ <TR>
1283
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" >Preview</TD><TD class="Border-Right"></TD>
1284
+ </TR>
1285
+ </TABLE>
1286
+ <BR/>
1287
+
1288
+ <DIV class="Content-Box" id="Preview-Content">
1289
 
1290
+ <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>
1291
+
1292
+ <BR/>
1293
+
1294
+ <DIV style="margin:0 0 0 25px" class="Post-TXT" id="Post-TXT" ><?php _e("This is your post here...","sociable")?></DIV>
1295
+
1296
+ <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >Lorem ipsum dolor sit amet, consectetur adipiscing elit.</DIV>
1297
+
1298
+ <BR/>
1299
+ <DIV style="margin:0 0 0 25px" id="ShareAndEnjoy" > <?php do_sociable(); ?></DIV>
1300
+ </DIV>
1301
+ <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Tagline-Title">
1302
 
1303
+ <TR>
1304
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Tagline","sociable");?></TD><TD class="Border-Right"></TD>
1305
+ </TR>
1306
+ </TABLE>
1307
+ <BR/>
1308
+
1309
+ <DIV class="Content-Box" id="Tagline-Content">
1310
+ <DIV class="Tagline-TXT" id="Tagline-TXT" ><?php _e('Previously we used "Share and Enjoy", remember the good old days?',"sociable");?></DIV>
1311
+
1312
+ <BR/>
1313
+ <DIV style="width:100%;height:60px;">
1314
 
1315
+ <INPUT type="text" class="Tagline-INPUT" id="tagline" name="sociable_options[tagline]" value="<?php echo$sociable_options["tagline"];?>" />
1316
+
1317
+ <DIV class="ToSociable" >
1318
+ <INPUT type="checkbox" <?php if (!empty($sociable_options["help_grow"])) echo "checked = 'checked'";?> name="sociable_options[help_grow]" id="LinkToSociable" />
1319
+ <?php _e("Link to Sociable","sociable");?><BR/>
1320
+ <SPAN style="font-size:14px;"><?php _e("(Help us grow, please leave the link so others discover Sociable from your blog)","sociable");?></SPAN>
1321
+ </DIV>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1322
  </DIV>
 
 
 
 
 
 
 
1323
  </DIV>
1324
+
1325
+
1326
+ <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Tagline-Title">
1327
 
1328
+ <TR>
1329
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Icons to Include","sociable");?></TD><TD class="Border-Right"></TD>
1330
+ </TR>
1331
+ </TABLE>
1332
+ <BR/>
1333
+
1334
+ <DIV class="Content-Box" id="IconsToInclude-Box" style="">
1335
+ <DIV class="IconsToInclude-TXT" id="IconsToInclude-TXT" >
1336
+ <?php _e("Check the sites you want to appear on your blog.","sociable");?>
1337
+ </DIV>
1338
 
1339
+
1340
+ <BR/>
1341
+
1342
+ <?php self::do_site_selection_list(); ?>
1343
+ </DIV>
1344
+
1345
+ <div class="soc_clear"></div>
1346
+
1347
+ <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="IconSize-Title" style="margin-top:20px;">
1348
+ <TR>
1349
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Icons Size","sociable");?></TD><TD class="Border-Right"></TD>
1350
+ </TR>
1351
+ </TABLE>
1352
 
1353
+ <BR/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1354
 
1355
+ <DIV class="Content-Box" style="margin-left:-3px" id="IconSize-Content">
1356
+ <?php
1357
+ $checked16 = "";
1358
+ $checked32 = "";
1359
+ $checked48 = "";
1360
+ $checked64 = "";
1361
+ if ($sociable_options["icon_size"] == 16) $checked16 = "checked='checked'";
1362
+ if ($sociable_options["icon_size"] == 32) $checked32 = "checked='checked'";
1363
+ if ($sociable_options["icon_size"] == 48) $checked48 = "checked='checked'";
1364
+ if ($sociable_options["icon_size"] == 64) $checked64 = "checked='checked'";
1365
+ //echo $checked16;
1366
+ ?>
1367
+ <SPAN class="IconSize-Item"> <INPUT value="16" type="radio" name="sociable_options[icon_size]" <?php echo $checked16;?> />16x16 Pixels </SPAN>
1368
+
1369
+ <SPAN class="IconSize-Item"> <INPUT <?php echo$checked32;?> value="32" type="radio" name="sociable_options[icon_size]" />32x32 Pixels </SPAN>
1370
+
1371
+ <SPAN class="IconSize-Item"> <INPUT <?php echo$checked48;?> value="48" type="radio" name="sociable_options[icon_size]"/>48x48 Pixels </SPAN>
1372
 
1373
+
1374
+ <SPAN class="IconSize-Item"> <INPUT <?php echo$checked64;?> value="64" type="radio" name="sociable_options[icon_size]" />64x64 Pixels </SPAN>
1375
+
1376
+
1377
+ </DIV>
1378
+
1379
+ <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="IconSize-Title" style="margin-top:20px;">
1380
+ <TR>
1381
+ <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Icons Style","sociable");?></TD><TD class="Border-Right"></TD>
1382
+ </TR>
1383
+ </TABLE>
1384
 
1385
+ <BR/>
1386
+
1387
+ <DIV class="Content-Box" id="IconSize-Content" style="padding:20px;">
1388
+
1389
+ <?php
1390
+ $checked1 = "";
1391
+ $checked2 = "";
1392
+ $checked3 = "";
1393
+ $checked4 = "";
1394
+ $checked5 = "";
1395
+ $checked6 = "";
1396
+ if ($sociable_options["icon_option"] == "option1") $checked1 = "checked='checked'";
1397
+ if ($sociable_options["icon_option"] == "option2") $checked2 = "checked='checked'";
1398
+ if ($sociable_options["icon_option"] == "option3") $checked3 = "checked='checked'";
1399
+ if ($sociable_options["icon_option"] == "option4") $checked4 = "checked='checked'";
1400
+ if ($sociable_options["icon_option"] == "option5") $checked5 = "checked='checked'";
1401
+ if ($sociable_options["icon_option"] == "option6") $checked6 = "checked='checked'";
1402
+
1403
+ $imagepath = isset( $sociable_options['sociable_imagedir'] ) ? $sociable_options['sociable_imagedir'] : '' ;
1404
+
1405
+ if ($imagepath == "") {
1406
+ $imagepath = trailingslashit( SOCIABLE_HTTP_PATH ) . 'images/';
1407
+ } else {
1408
+ $imagepath .= trailingslashit( $imagepath );
1409
+ }
1410
+ //echo $imagepath;
1411
+ ?>
1412
+
1413
+ <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>
1414
+ <BR/><BR/>
1415
+ <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>
1416
 
1417
+ <BR/><BR/>
1418
+ <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>
1419
+ <BR/><BR/>
1420
+ <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>
1421
 
1422
+ <BR/><BR/>
1423
+ <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>
1424
+ <BR/><BR/>
1425
+ <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>
1426
+ <BR/><BR/>
1427
+ </DIV>
1428
+
1429
+ <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Locations');" >
1430
 
1431
+ <TR>
1432
+ <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>
1433
+ </TR>
1434
+ </TABLE>
1435
+ <BR/>
1436
+
1437
+ <DIV class="Content-Box" id="Locations-Content" style="display:none;" >
1438
+ <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>
1439
+
1440
+ <BR/>
1441
 
1442
+ <DIV align="center" style="width:100%;">
1443
+ <TABLE align="center" class="Locations-List" cellspacing="0" border=0 cellpadding="10">
1444
+ <TR valign="top" >
1445
+ <TD align="right" class="Title" ><?php _e("Home page","sociable");?></TD>
1446
+ <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>
1447
+ <TD align="left" class="Content">
1448
+ <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>
1449
+
1450
+ </TD>
1451
 
1452
+ </TR>
1453
+
1454
+ <TR valign="top" >
1455
+ <TD align="right" class="Title" ><?php _e("Blog page","sociable");?></TD>
1456
+ <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>
1457
+ <TD align="left" class="Content">
1458
+ <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>
1459
+
1460
+ </TD>
1461
+ </TR>
1462
 
1463
+
1464
+ <TR valign="top" >
1465
+ <TD align="right" class="Title" ><?php _e("Posts","sociable");?></TD>
1466
+ <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>
1467
+ <TD align="left" class="Content">
1468
+ <SPAN class="TXT"><?php _e("Single post pages","sociable");?></SPAN>
1469
+
1470
+ </TD>
1471
+ </TR>
1472
+
1473
+ <TR valign="top" >
1474
 
1475
+ <TD align="right" class="Title" ><?php _e("Pages","sociable");?></TD>
1476
+ <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>
1477
+ <TD align="left" class="Content">
1478
+ <SPAN class="TXT"><?php _e("Individual Wordpress pages","sociable");?></SPAN>
1479
+
1480
+ </TD>
1481
+ </TR>
1482
+
1483
+ <TR valign="top" >
1484
+ <TD align="right" class="Title" ><?php _e("Category archives","sociable");?></TD>
1485
 
1486
+ <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>
1487
+ <TD align="left" class="Content">
1488
+ <SPAN class="TXT"><?php _e("Category archive pages","sociable");?></SPAN>
1489
+
1490
+ </TD>
1491
+ </TR>
1492
+
1493
+ <TR valign="top" >
1494
+ <TD align="right" class="Title" ><?php _e("Date archives","sociable");?></TD>
1495
+ <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>
1496
 
1497
+ <TD align="left" class="Content">
1498
+ <SPAN class="TXT"><?php _e("Date archive pages","sociable");?> </SPAN>
1499
+
1500
+ </TD>
1501
+ </TR>
1502
+
1503
+ <TR valign="top" >
1504
+ <TD align="right" class="Title" ><?php _e("Tag archives","sociable");?></TD>
1505
+ <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>
1506
 
1507
+ <TD align="left" class="Content">
1508
+ <SPAN class="TXT"><?php _e("Tag archive pages","sociable");?> </SPAN>
1509
+
1510
+ </TD>
1511
+ </TR>
1512
+
1513
+ <TR valign="top" >
1514
+ <TD align="right" class="Title" ><?php _e("Author archives","sociable");?></TD>
1515
+ <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>
1516
 
1517
+ <TD align="left" class="Content">
1518
+ <SPAN class="TXT"><?php _e("Author archive pages","sociable");?></SPAN>
1519
+
1520
+ </TD>
1521
+ </TR>
1522
+
1523
+ <TR valign="top" >
1524
+ <TD align="right" class="Title" ><?php _e("Search results","sociable");?></TD>
1525
+ <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>
1526
+ <TD align="left" class="Content">
1527
 
1528
+ <SPAN class="TXT"><?php _e("Search results pages","sociable");?></SPAN>
1529
+
1530
+ </TD>
1531
+ </TR>
1532
+
1533
+ <TR valign="top" >
1534
+ <TD align="right" class="Title" ><?php _e("RSS feeds","sociable");?></TD>
1535
+ <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>
1536
+ <TD align="left" class="Content">
1537
+ <SPAN class="TXT"><?php _e("RSS feeds","sociable");?></SPAN>
1538
 
1539
+
1540
+ </TD>
1541
+ </TR>
1542
+
1543
+
1544
+ </TABLE>
1545
+ <BR/><BR/>
1546
+ </DIV>
1547
+ </DIV>
1548
+
1549
+ <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('GeneralOptions');">
1550
+ <TR>
1551
+ <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>
1552
 
1553
+ </TR>
1554
+ </TABLE>
1555
+ <BR/>
1556
+
1557
+ <DIV class="Content-Box" id="GeneralOptions-Content" style="display:none;" >
1558
+
1559
+ <BR/>
1560
+ <DIV align="center" style="width:100%;">
1561
+ <TABLE align="center" class="GeneralOptions-List" cellspacing="0" border=0 cellpadding ="10" >
1562
+ <TR valign="top" >
1563
+ <TD align="right" class="Title" ><?php _e("Automatic mode","sociable")?></TD>
1564
 
1565
+ <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>
1566
+ <TD align="left" class="Content">
1567
+ <SPAN class="TXT"><?php _e("Do you want to automatically use Sociable on the locations specified?","sociable");?> </SPAN>
1568
+ <BR/>
1569
+ <SPAN class="sTXT">
1570
+ <?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(); }
1571
+ </SPAN>
1572
+
1573
+ </TD>
1574
 
1575
+ </TR>
1576
+
1577
+
1578
+ </TR>
1579
+ <TR valign="top" >
1580
+ <TD align="right" class="Title" ><?php _e("Use styleSheet","sociable");?></TD>
1581
+ <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>
1582
+ <TD align="left" class="Content">
1583
+ <SPAN class="TXT"><?php _e("Do you want to use the default stylesheet for sociable?","sociable");?></SPAN>
1584
+ </TD>
1585
 
1586
+ </TR>
1587
+ <TR valign="top" >
1588
+ <TD align="right" class="Title" ><?php _e("Use your own icons","sociable");?></TD>
1589
+ <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>
1590
+ <TD align="left" class="Content">
1591
+ <SPAN class="TXT"><?php _e("Do you want to use your own icons for sociable?","sociable");?></SPAN>
1592
+ </TD>
1593
+ </TR>
1594
 
1595
+ <TR valign="top" >
1596
+ <TD align="right" class="Title" ><?php _e("Use images","sociable");?></TD>
1597
+ <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>
1598
+ <TD align="left" class="Content">
1599
+ <SPAN class="TXT"><?php _e("Do you want to use the Sociable images? If not, the plugin will insert plain text links.","sociable");?></SPAN>
1600
+ </TD>
1601
+ </TR>
1602
+
1603
+
1604
+ <TR valign="top" >
1605
 
1606
+ <TD align="right" class="Title" ><?php _e("Use alpha mask","sociable");?></TD>
1607
+ <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>
1608
+ <TD align="left" class="Content">
1609
+ <SPAN class="TXT"><?php _e("Do you want to use alpha masks on the images (available only on the Original Sociable)?","sociable");?></SPAN>
1610
+ </TD>
1611
+ </TR>
1612
+ <TR valign="top" >
1613
+ <TD align="right" class="Title" ><?php _e("Bottom and Top","sociable");?></TD>
1614
 
1615
+ <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>
1616
+ <TD align="left" class="Content">
1617
+ <SPAN class="TXT"><?php _e("Do you want to use Sociable plugin to show up at the top and bottom?","sociable");?></SPAN>
1618
+ </TD>
1619
+ </TR>
1620
+ <TR valign="top" >
1621
+ <TD align="right" class="Title" ><?php _e("Open in new window","sociable");?></TD>
1622
+ <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>
1623
 
1624
+ <TD align="left" class="Content">
1625
+ <SPAN class="TXT"><?php _e("do you want to open the links in a new window?","sociable");?></SPAN>
1626
+ </TD>
1627
+ </TR>
1628
+
1629
+
1630
+
1631
+ </TABLE>
1632
+
1633
+ <BR/><BR/>
1634
+ </DIV>
1635
+ </DIV>
1636
+ <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Active');" >
1637
 
1638
+ <TR>
1639
+ <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>
1640
+ </TR>
1641
+ </TABLE>
1642
+
1643
+ <div style="display: block;" id="Active-Content" class="Content-Box">
1644
+
1645
+ <br>
1646
+ <div align="center" style="width:100%;">
1647
+ <table align="center" cellspacing="0" cellpadding="10" border="0" class="GeneralOptions-List">
1648
 
1649
+
1650
+ <tbody><tr valign="top">
1651
+ <td align="right" class="Title">Active Sociable Classic</td>
1652
+ <td align="left" style="width:5px;">
1653
+ <input <?php if(isset($sociable_options["active"])) echo "checked='checked'"?> type="checkbox" id="active" name="sociable_options[active]" /></td>
1654
+ <td align="left" class="Content">
1655
+ <span class="TXT">Check if you want Sociable Classic enable </span>
1656
+ <br>
1657
 
1658
+
1659
+ </td>
1660
+ </tr>
1661
+ </tbody></table>
1662
+ <br><br>
1663
+ </div>
1664
+ </div>
1665
+ <?php //<HR style="height:10px;background:#18305d;"/>?>
1666
+ <?php settings_fields( 'sociable_options_group' ); ?>
1667
+ </FORM>
1668
+ <DIV class="Content-Box" >
1669
 
1670
+ <DIV id="ActionsBar">
1671
+ <DIV class="SaveChanges" onClick="document.getElementById('form1').submit();" style="cursor:pointer;line-height:15px;"><br/>
1672
+ <span style="margin:30px;"><?php _e("Save Changes","sociable");?></span>
1673
 
1674
+ </DIV>
1675
+ <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/>
1676
+ <span style="margin:40px;margin-left:35px;"><?php _e("Reset Sociable","sociable");?></span>
1677
+ </DIV>
1678
+ <DIV class="UninstallSociable" onClick="document.getElementById('sociable_remove_form').submit();" style="cursor:pointer;line-height:15px;font-size:12px;"><br/>
1679
 
1680
+ <span style="margin:25px;margin-left:20px;"><?php _e("Completly Uninstall Sociable","sociable");?></span>
1681
+ </DIV>
1682
+ </DIV>
1683
+ </DIV>
1684
+ <br>
1685
+ <br>
1686
 
1687
+ <?php //do_settings_sections( 'sociable_options' ); ?>
1688
  <form id="sociable_reset_form" action="" method="POST">
1689
 
 
 
 
 
 
 
1690
  <?php wp_nonce_field('sociable-reset'); ?>
 
 
 
 
 
 
 
1691
  <input type="hidden" id="sociable_reset" name="sociable_reset" value="1">
 
 
 
 
 
 
 
1692
  <?php //submit_button( __( 'Reset Sociable' ) , 'primary', 'sociable_reset', false ); ?>
 
 
 
 
 
 
 
1693
  </form>
 
 
 
 
 
 
 
1694
 
 
 
 
 
 
 
 
1695
 
 
 
 
1696
  </div>
 
 
 
1697
  <?php }
 
 
 
 
 
 
 
1698
 
 
 
 
 
 
 
 
1699
  function add_meta_box( $page ){
 
 
 
 
 
 
 
1700
  add_meta_box( 'sociable_off' , __( 'Disable sociable' ), array( 'sociable_Admin_Options' , 'create_meta_box' ) , $page, 'side', 'default' );
 
 
 
 
 
 
 
1701
  }
 
 
 
 
 
 
 
1702
 
 
 
 
 
 
 
 
1703
  function create_meta_box(){
 
 
 
 
 
 
 
1704
  global $post;
 
 
 
 
 
 
 
1705
  $sociableoff = false;
 
 
 
 
 
 
 
1706
  $checked = '';
 
 
 
 
 
 
 
1707
  if ( get_post_meta( $post->ID,'_sociableoff',true ) ) {
 
 
 
 
 
 
 
1708
  $checked = 'checked="checked"';
 
 
 
 
 
 
 
1709
  }
 
 
 
 
 
 
 
1710
  wp_nonce_field( 'update_sociable_off' , 'sociable_nonce' );
 
 
 
 
 
 
 
1711
  echo '<input type="checkbox" id="sociableoff" name="sociableoff" ' . $checked . ' /> <p class="description">' . __('Check This To Disable Sociable 2 On This Post Only.') . '</p>';
 
 
 
 
 
 
 
1712
 
 
 
 
 
 
 
 
1713
  }
1714
+
1715
+ function save_post( $post_id ){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1716
 
 
 
 
 
 
 
 
1717
  if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
 
 
 
 
 
 
 
1718
  return $post_id;
 
 
 
1719
  // verify this came from the our screen and with proper authorization,
 
 
 
 
 
 
 
1720
  // because save_post can be triggered at other times
 
 
 
 
 
 
 
1721
 
 
 
 
 
 
 
 
1722
  $nonce = ( isset( $_POST['sociable_nonce'] ) ) ? $_POST['sociable_nonce'] : false ;
 
 
 
1723
  if ( ! $nonce || ! wp_verify_nonce( $nonce, 'update_sociable_off' ) )
 
 
 
 
 
 
 
1724
  return $post_id;
 
 
 
 
 
 
 
1725
  // Check permissions
 
 
 
 
 
 
 
1726
  if ( 'page' == $_POST['post_type'] ){
 
 
 
 
 
 
 
1727
  if ( !current_user_can( 'edit_page', $post_id ) )
 
 
 
 
 
 
 
1728
  return;
 
 
 
 
 
 
 
1729
  } else {
 
 
 
 
 
 
 
1730
  if ( !current_user_can( 'edit_post', $post_id ) )
 
 
 
 
 
 
 
1731
  return;
 
 
 
 
 
 
 
1732
  }
 
 
 
 
 
 
 
1733
 
 
 
 
 
 
 
 
1734
  //Lets Do This
 
 
 
 
 
 
 
1735
  if( isset( $_POST['sociableoff'] ) ){
 
 
 
 
 
 
 
1736
  update_post_meta( $post_id, '_sociableoff' , $_POST['sociableoff'] );
 
 
 
 
 
 
 
1737
  } else {
 
 
 
 
 
 
 
1738
  delete_post_meta( $post_id, '_sociableoff' );
 
 
 
 
 
 
 
1739
  }
 
 
 
 
 
 
 
1740
 
 
 
 
 
 
 
 
1741
  return $post_id;
 
 
 
 
 
 
 
1742
  }
 
 
 
 
 
 
 
1743
 
 
 
 
 
 
 
 
1744
  /**
 
 
 
 
 
 
 
1745
  * This Function Runs Before The Options Are Printed Out.
 
 
 
 
 
 
 
1746
  */
 
 
 
 
 
 
 
1747
  function general_options_callback(){
 
 
 
 
 
 
 
1748
 
 
 
 
 
 
 
 
1749
  return true;
1750
+ }
1751
+
1752
+ /**
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1753
  * This Function Runs Before The Location Options Are Echoed Out.
 
 
 
 
 
 
 
1754
  */
 
 
 
 
 
 
 
1755
  function location_options_callback(){
 
 
 
 
 
 
 
1756
  echo '<p>' . __( 'Please Select The Locations That You Wish To Allow The Sociable 2 Plugin To Insert The Links.' ) . '</p>';
 
 
 
 
 
 
 
1757
  }
 
 
 
 
 
 
 
1758
 
 
 
 
 
 
 
 
1759
  /**
 
 
 
 
 
 
 
1760
  * Adds A Function For The add_settings_field(); function
 
 
 
 
 
 
 
1761
  *
 
 
 
 
 
 
 
1762
  * should be passed:
 
 
 
 
 
 
 
1763
  * $data = array(
 
 
 
 
 
 
 
1764
  * 'id' => 'field_id_and_name',
 
 
 
 
 
 
 
1765
  * 'description' => 'field Description Should Go Here, This is Not The Title, Rather The Description'
 
 
 
 
 
 
 
1766
  * );
 
 
 
 
 
 
 
1767
  */
 
 
 
 
 
 
 
1768
  function Checkbox( $data ){
 
 
 
 
 
 
 
1769
  global $sociable_options;
 
 
 
 
 
 
 
1770
 
 
 
 
 
 
 
 
1771
  //Save The Locations As a seperate array option
1772
 
 
 
 
 
 
 
1773
  if( isset( $data['locations'] ) ){
 
 
 
 
 
 
 
1774
  $name = 'sociable_options[locations][' . $data['id'] . ']';
 
 
 
 
 
 
 
1775
  $checked = ( isset( $sociable_options['locations'][$data['id']] ) ) ? 'checked="checked"' : '' ;
 
 
 
 
 
 
 
1776
  } else {
 
 
 
 
 
 
 
1777
  $name = 'sociable_options[' . $data['id'] . ']';
 
 
 
 
 
 
 
1778
  $checked = ( isset( $sociable_options[$data['id']] ) ) ? 'checked="checked"' : '' ;
 
 
 
 
 
 
 
1779
  }
 
 
 
 
 
 
 
1780
 
 
 
 
 
 
 
 
1781
 
 
 
 
1782
  echo '<input ' . $checked . ' id="' . $data['id'] . '" name="' . $name . '" type="checkbox" /> <span class="description">' . $data['description'] . '</span>';
 
 
 
1783
  }
 
 
 
 
 
 
 
1784
 
 
 
 
 
 
 
 
1785
  function TextInput( $data ){
 
 
 
 
 
 
 
1786
  global $sociable_options;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1787
 
1788
+ $value = ( isset( $sociable_options[$data['id']] ) ) ? $sociable_options[$data['id']] : '';
1789
+
1790
+ 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>';
1791
+
 
 
 
1792
  }
 
 
 
 
 
 
 
1793
 
 
 
 
 
 
 
 
1794
  function TextArea( $data ){
 
 
 
 
 
 
 
1795
  global $sociable_options;
 
 
 
 
 
 
 
1796
 
 
 
 
 
 
 
 
1797
  $value = ( isset( $sociable_options[$data['id']] ) ) ? $sociable_options[$data['id']] : '';
 
 
 
 
 
 
 
1798
 
 
 
 
1799
  echo '<textarea id="' . $data['id'] . '" name="sociable_options[' . $data['id'] . ']" >' . $value . '</textarea> <br /><span class="description">' . $data['description'] . '</span>';
 
 
 
1800
 
 
 
 
 
 
 
 
1801
  }
 
 
 
 
 
 
 
1802
 
 
 
 
 
 
 
 
1803
  function radio( $data ){
 
 
 
 
 
 
 
1804
  global $sociable_options;
 
 
 
 
 
 
 
1805
 
 
 
 
 
 
 
 
1806
  $cur_val = ( isset( $sociable_options[$data['id']] ) ) ? $sociable_options[$data['id']] : 0 ;
 
 
 
 
 
 
 
1807
 
 
 
 
 
 
 
 
1808
  echo '<span class="description">' . $data['description'] . '</span><br />';
 
 
 
 
 
 
 
1809
  foreach( $data['options'] as $value => $option ){
 
 
 
 
 
 
 
1810
  $selected = ( $value == $cur_val ) ? 'checked="checked"' : '' ;
 
 
 
 
 
 
 
1811
  echo '<input type="radio" name="sociable_options[' . $data['id'] . ']" value="' . $value . '" ' . $selected . ' /> <span>' . $option . '</span><br />';
 
 
 
 
 
 
 
1812
  }
 
 
 
 
 
 
 
1813
  }
 
 
 
 
 
 
 
1814
 
 
 
 
 
 
 
 
1815
 
 
 
 
 
 
 
 
1816
  }
 
 
 
1817
  function add_ie7() {
 
 
 
1818
  echo'<!--[if lt IE 7]>
 
 
 
 
 
 
 
1819
  <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js"
 
 
 
 
 
 
 
1820
  type="text/javascript"></script>
 
 
 
 
 
 
 
1821
  <![endif]-->
1822
 
 
 
 
 
 
 
1823
  <!--[if lt IE 8]>
 
 
 
 
 
 
 
1824
  <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js"
 
 
 
 
 
 
 
1825
  type="text/javascript"></script>
 
 
 
 
 
 
 
1826
  <![endif]-->
 
 
 
 
 
 
 
1827
  <!--[if lt IE 9]>
 
 
 
 
 
 
 
1828
  <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
 
 
 
 
 
 
 
1829
  <![endif]-->';
 
 
 
1830
  }
 
 
 
 
 
 
 
1831
  //add_action('admin_head', 'add_ie7' );
 
 
 
 
 
 
 
1832
  ?>
includes/skyscraper_output.php CHANGED
@@ -1,335 +1,122 @@
1
  <?php
2
 
3
-
4
-
5
  /*
6
 
7
-
8
-
9
  * The Output And Shortcode Functions For sociable
10
 
11
-
12
-
13
  */
14
-
15
-
16
-
17
  /*
18
 
19
-
20
-
21
  * Returns The Skyscraper Output For The Global $post Object Do Not
22
 
23
-
24
-
25
  */
26
-
27
-
28
-
29
  function diff_date($date1, $date2){
30
 
31
-
32
-
33
-
34
-
35
  $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));
36
-
37
-
38
-
39
  $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));
40
 
41
-
42
-
43
-
44
-
45
  $diff_time = ceil((($date2 - $date1)/60));
46
-
47
-
48
-
49
  return $diff_time;
50
 
51
  }
52
-
53
-
54
-
55
 
56
-
57
-
58
-
59
 
60
-
61
-
62
-
63
  function skyscraper_html( $where = "" ){
64
-
65
-
66
-
67
  global $skyscraper_options, $wp_query;
68
-
69
-
70
-
71
  if (!is_admin() || 1==1){
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
-
81
-
82
-
83
  // echo "<script type='text/javascript'>";
84
-
85
-
86
-
87
  // echo "var skyscraper_dir = '".SOCIABLE_HTTP_PATH."' ;";
88
-
89
-
90
-
91
  // echo "</script>";
92
-
93
-
94
-
95
  echo " var skyscraper_dir = document.createElement('input');
96
-
97
-
98
-
99
  skyscraper_dir.id = 'skyscraper_dir';
100
-
101
-
102
-
103
  skyscraper_dir.type = 'hidden';
104
-
105
-
106
-
107
  skyscraper_dir.value = '".SOCIABLE_HTTP_PATH."';
108
-
109
-
110
-
111
  document.body.appendChild(skyscraper_dir); ";
112
-
113
-
114
-
115
 
116
-
117
-
118
-
119
  $widget_width = str_replace("px", "", $skyscraper_options["widget_width"]);
120
-
121
-
122
-
123
 
124
-
125
-
126
-
127
  $widget_position = "null";
128
-
129
-
130
-
131
  if (isset($skyscraper_options["widget_position"])){
132
-
133
-
134
-
135
  $widget_position = 1;
136
-
137
-
138
-
139
  }
140
-
141
-
142
-
143
 
144
-
145
-
146
-
147
  $labels_color = $skyscraper_options["labels_color"];
148
-
149
-
150
-
151
  $text_size = str_replace("px", "", $skyscraper_options["text_size"]);
152
-
153
-
154
-
155
  $background_color = $skyscraper_options["background_color"];
156
-
157
-
158
-
159
 
160
-
161
-
162
-
163
  $addWhere = "";
164
-
165
-
166
-
167
 
168
-
169
-
170
-
171
  if ($where == ""){
172
-
173
-
174
-
175
  $addWhere = "var div = document.createElement('div');
176
-
177
-
178
-
179
  div.id = 'skyscraper';
180
-
181
-
182
-
183
  document.body.appendChild(div);";
184
-
185
-
186
-
187
  }
188
-
189
-
190
-
191
-
192
-
193
-
194
-
195
  $url_site= $_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
  $script = "
204
 
205
-
206
-
207
-
208
-
209
-
210
-
211
-
212
-
213
  if (!document.getElementById('fb-root')){
214
 
215
-
216
-
217
  var div = document.createElement('div');
218
 
219
-
220
-
221
  div.id = 'fb-root';
222
 
223
-
224
-
225
  document.body.appendChild(div);
226
 
227
-
228
-
229
  }
230
-
231
-
232
-
233
  (function(d, s, id) {
234
 
235
-
236
-
237
  var js, fjs = d.getElementsByTagName(s)[0];
238
 
239
-
240
-
241
  if (d.getElementById(id)) return;
242
 
243
-
244
-
245
  js = d.createElement(s); js.id = id;
246
 
247
-
248
-
249
  js.src = \"http://connect.facebook.net/en_US/all.js#xfbml=1\";
250
 
251
-
252
-
253
  fjs.parentNode.insertBefore(js, fjs);
254
-
255
-
256
-
257
  }(document, 'script', 'facebook-jssdk'));
258
 
259
-
260
-
261
-
262
-
263
-
264
-
265
 
266
 
267
  ".$addWhere."
268
 
269
-
270
 
271
  jQuery(document).ready(function(){
272
-
273
-
274
-
275
  oPlugin.toolbarStart('skyscraper', ".$widget_position.",230,".$widget_width.",'".$background_color."','".$labels_color."',false,'#6A6A6A',".$text_size.",'#587cc8');
276
 
277
-
278
 
279
  ".get_share_node()."
280
 
281
-
282
-
283
  ".get_counters_node()."
284
 
285
-
286
-
287
  ".get_social_banner_node()."
288
 
289
-
290
-
291
  ".get_latest_node()."
292
 
293
-
294
-
295
  ".get_mentions_node()."
296
 
297
-
298
-
299
  ".get_follow_us_node()."
300
 
301
-
302
-
303
  ".get_rss_node()."
304
 
305
-
306
-
307
  oPlugin.CreateGoToTop('New_Id_12','Top','<img src=\"".SOCIABLE_HTTP_PATH."images/toolbar/gototop.png\" style=\"width:30px;\" />');
308
-
309
-
310
-
311
  oPlugin.CreateGoToHome('New_Id_13','Go Home','<img src=\"".SOCIABLE_HTTP_PATH."images/toolbar/gotohome.png\" style=\"width:30px;\" />');
312
 
 
313
 
 
314
 
315
- });
316
-
317
-
318
 
319
  ";
320
 
321
-
322
-
323
  echo $script;
324
 
325
  }
326
 
327
-
328
-
329
  }
330
-
331
-
332
-
333
  function get_social_banner_node(){
334
 
335
 
@@ -337,13 +124,7 @@ function get_social_banner_node(){
337
 
338
 
339
  global $skyscraper_options;
340
-
341
-
342
-
343
  global $title_shared;
344
-
345
-
346
-
347
  global $url_shares;
348
 
349
 
@@ -396,7 +177,7 @@ function get_social_banner_node(){
396
 
397
  counter += ' <li>';
398
 
399
- counter += '<iframe scrolling=\"no\" frameborder=\"0\" allowtransparency=\"true\" src=\"http://platform.twitter.com/widgets/tweet_button.1326407570.html#_=1328815234500&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>';
400
 
401
  counter += ' </li>';
402
 
@@ -487,279 +268,88 @@ function get_social_banner_node(){
487
  return $social_banner_node;
488
 
489
  }
490
-
491
-
492
-
493
  function get_rss_node(){
494
 
495
-
496
-
497
  $rss_node = "";
498
-
499
-
500
-
501
  $latest_posts = "";
502
-
503
-
504
-
505
  global $skyscraper_options;
506
-
507
-
508
  if (!empty($skyscraper_options["accept_read_rss"])){
509
 
510
  if ($skyscraper_options["accept_read_rss"] != 1){
511
 
512
- return $latest_posts;
513
  }
514
  }
515
  else{
516
 
517
- return $latest_posts;
518
  }
519
-
520
-
521
-
522
-
523
  $version = phpversion();
524
-
525
-
526
-
527
 
528
-
529
-
530
-
531
  if ( substr($version,0,1) == 5 && isset($skyscraper_options["rss_feed"]) && $skyscraper_options["rss_feed"]!="http://"){
532
-
533
-
534
-
535
 
536
-
537
-
538
-
539
  include("rss_php.php");
540
-
541
-
542
-
543
 
544
-
545
-
546
-
547
  $rss = new rss_php;
548
-
549
-
550
-
551
  $rss->load($skyscraper_options["rss_feed"]);
552
-
553
-
554
-
555
  $items = $rss->getItems();
556
-
557
-
558
-
559
 
560
-
561
-
562
-
563
  if (!empty($skyscraper_options["rss_feed"])){
564
-
565
-
566
-
567
 
568
-
569
-
570
-
571
  if (count($items) > 0){
572
-
573
-
574
-
575
 
576
-
577
-
578
-
579
  $cant = 0;
580
-
581
-
582
-
583
  foreach($items as $item){
584
-
585
-
586
-
587
 
588
-
589
-
590
-
591
  if ($cant <= $skyscraper_options["num_rss"]){
592
-
593
-
594
-
595
 
596
-
597
-
598
-
599
  $title="";
600
-
601
-
602
-
603
  if (isset($item["title"])){
604
-
605
-
606
-
607
  $title = addslashes($item["title"]);
608
-
609
-
610
-
611
  }
612
-
613
-
614
-
615
  $description="";
616
-
617
-
618
-
619
  if (isset($item["description"])){
620
-
621
-
622
-
623
  $description = addslashes($item["description"]);
624
-
625
-
626
-
627
  }
628
-
629
-
630
-
631
  $guid="";
632
-
633
-
634
-
635
  if (isset($item["link"])){
636
-
637
-
638
-
639
  $guid = addslashes($item["link"]);
640
-
641
-
642
-
643
  }
644
-
645
-
646
-
647
  $pubDate="";
648
-
649
-
650
-
651
  if (isset($item["pubDate"])){
652
-
653
-
654
-
655
  $pubDate = ago(strtotime($item["pubDate"]));
656
-
657
-
658
-
659
  }
660
-
661
-
662
-
663
 
664
-
665
-
666
-
667
  $latest_posts .= "['".$title."','','".$description."','".$guid."','".$pubDate."'],";
668
-
669
-
670
-
671
  }
672
-
673
-
674
-
675
  else{
676
-
677
-
678
-
679
  break;
680
-
681
-
682
-
683
  }
684
-
685
-
686
-
687
  $cant++;
688
-
689
-
690
-
691
  }
692
-
693
-
694
-
695
  $latest_posts = trim($latest_posts, ",");
696
-
697
-
698
-
699
  }
700
-
701
-
702
-
703
  }
704
-
705
-
706
-
707
  }
708
-
709
-
710
-
711
 
712
-
713
-
714
-
715
  if ($latest_posts != ""){
716
-
717
-
718
-
719
 
720
-
721
-
722
-
723
  $rss_node = "var LatestBlogPostContent = [
724
-
725
-
726
-
727
  ".$latest_posts."
728
-
729
-
730
-
731
  ];
732
-
733
-
734
-
735
  oPlugin.CreateNode('New_Id_5','Posts','',LatestBlogPostContent,'Notice',220,460);";
736
-
737
-
738
-
739
- }
740
-
741
-
742
-
743
  return $rss_node;
744
-
745
-
746
-
747
  }
748
-
749
-
750
-
751
  function get_latest_node(){
752
 
753
-
754
-
755
  $latest_node = "";
756
-
757
-
758
-
759
  global $skyscraper_options;
760
-
761
-
762
-
763
  if (!empty($skyscraper_options["accept_read_twitter"])){
764
 
765
  if ($skyscraper_options["accept_read_twitter"] != 1){
@@ -771,205 +361,75 @@ function get_latest_node(){
771
 
772
  return $latest_node;
773
  }
774
-
775
-
776
-
777
  if ( isset($skyscraper_options["twitter_username"])){
778
-
779
-
780
-
781
 
782
-
783
-
784
-
785
  $latest_tweets = get_option_tweets("skyscraper_latest");
786
-
787
-
788
-
789
  if ($skyscraper_options["twitter_username"] != ""){
790
-
791
-
792
-
793
 
794
-
795
-
796
-
797
  if ($latest_tweets != ""){
798
-
799
-
800
-
801
 
802
-
803
-
804
-
805
  $latest_node = "
806
 
807
 
808
 
809
  var LastestTwittsContent = [
810
-
811
-
812
-
813
  ".$latest_tweets."
814
-
815
-
816
-
817
  ];
818
-
819
-
820
-
821
 
822
-
823
-
824
-
825
  oPlugin.CreateNode('New_Id_3','Latest','',LastestTwittsContent,'Notice',220,460);";
826
-
827
-
828
-
829
  }
830
-
831
-
832
-
833
  }
834
-
835
-
836
-
837
  }
838
-
839
-
840
-
841
  return $latest_node;
842
-
843
-
844
-
845
  }
846
-
847
-
848
-
849
- function get_mentions_node(){
850
 
 
851
 
852
  $mentions_node = "";
853
-
854
  global $skyscraper_options;
855
-
856
- //echo "<pre>";
857
- // print_r ($skyscraper_options);
858
- // echo "</pre>";
859
-
860
  if (!empty($skyscraper_options["accept_read_twitter"])){
861
- // echo "entra 1";
862
  if ($skyscraper_options["accept_read_twitter"] != 1){
863
- // echo "entra 2";
864
  return $mentions_node;
865
  }
866
  }
867
  else{
868
- //echo "entra 3";
869
  return $mentions_node;
870
- die();
871
  }
872
-
873
-
874
  if ( isset($skyscraper_options["twitter_username"])){
875
-
876
-
877
-
878
 
879
-
880
-
881
-
882
  $mentions_tweets = get_option_tweets("skyscraper_mentions");
883
-
884
-
885
-
886
  if ($skyscraper_options["twitter_username"] != ""){
887
-
888
-
889
-
890
 
891
-
892
-
893
-
894
  if ($mentions_tweets != "" ){
895
-
896
-
897
-
898
 
899
-
900
-
901
-
902
  $mentions_node = "var TweetsMentionsContent = [
903
-
904
-
905
-
906
  ".$mentions_tweets."
907
-
908
-
909
-
910
  ];
911
-
912
-
913
-
914
  oPlugin.CreateNode('New_Id_4','Mentions','',TweetsMentionsContent,'Notice',220,460);";
915
-
916
-
917
-
918
  }
919
-
920
-
921
-
922
  }
923
-
924
-
925
-
926
  }
927
-
928
-
929
-
930
  return $mentions_node;
931
-
932
-
933
-
934
  }
935
-
936
-
937
-
938
  function get_counters_node(){
939
-
940
-
941
-
942
 
943
-
944
-
945
-
946
  global $skyscraper_options;
947
-
948
-
949
-
950
  global $title_shared;
951
-
952
-
953
-
954
  global $url_shares;
955
-
956
-
957
-
958
  $counters_node = "";
959
 
960
-
961
  if ((!empty($skyscraper_options["counters"]["check"]))){
962
-
963
-
964
-
965
 
966
-
967
-
968
-
969
  $counters_node = " var url = '". addslashes(trim($url_shares))."';
970
-
971
-
972
-
973
  var title = '".addslashes(trim($title_shared)) ."'; ";
974
 
975
 
@@ -981,233 +441,75 @@ function get_counters_node(){
981
 
982
 
983
  counter += '<li style=\"margin-left:2px\"><fb:like send=\"false\" layout=\"box_count\" show_faces=\"false\" font=\"\"></fb:like></li>';
984
-
985
-
986
-
987
  counter +=' <li style=\"margin-left:0px\"><iframe width=\"100%\" scrolling=\"no\" frameborder=\"0\" title=\"+1\" vspace=\"0\" tabindex=\"-1\" style=\"position: static; left: 0pt; top: 0pt; width: 60px; margin: 0px; border-style: none; visibility: visible; height: 60px;\" src=\"https://plusone.google.com/_/+1/fastbutton?url='+url+'&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>';
988
 
989
-
990
-
991
- counter += '<li style=\"margin-left:-2px\"><iframe scrolling=\"no\" frameborder=\"0\" allowtransparency=\"true\" src=\"http://platform.twitter.com/widgets/tweet_button.1326407570.html#_=1328815234500&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>';
992
-
993
-
994
 
 
995
  counter += '</ul>';";
996
 
997
  }
998
-
999
-
1000
-
1001
-
1002
-
1003
-
1004
-
1005
  $counters_node .= "oPlugin.CreateSimpleNode('New_Id_2','Counters<br/>', counter ,".$skyscraper_options["counters"]["folded"].");
1006
 
1007
  ";
1008
-
1009
-
1010
-
1011
  return $counters_node;
1012
-
1013
-
1014
-
1015
  }
1016
-
1017
-
1018
-
1019
  function get_share_node(){
1020
-
1021
-
1022
-
1023
-
1024
-
1025
-
1026
-
1027
  global $skyscraper_options;
1028
 
1029
-
1030
-
1031
-
1032
-
1033
-
1034
-
1035
  $share_node = "";
1036
 
1037
-
1038
-
1039
-
1040
-
1041
-
1042
-
1043
  if (!empty($skyscraper_options["share"]["check"])){
1044
-
1045
-
1046
-
1047
  $share_buttons = share_links();
1048
-
1049
-
1050
-
1051
  $share_node = "oPlugin.CreateSimpleNode('New_Id_1','Share', '".$share_buttons."',".$skyscraper_options["share"]["folded"].");";
1052
-
1053
-
1054
-
1055
  }
1056
 
1057
-
1058
-
1059
 
1060
 
1061
-
1062
-
1063
  return $share_node;
1064
 
1065
-
1066
-
1067
  }
1068
-
1069
-
1070
-
1071
  function get_follow_us_node(){
1072
-
1073
-
1074
-
1075
  $follow_us_node = "";
1076
-
1077
-
1078
-
1079
  global $skyscraper_options;
1080
-
1081
-
1082
-
1083
 
1084
-
1085
-
1086
-
1087
  if (isset($skyscraper_options["follow_us"])){
1088
-
1089
-
1090
-
1091
-
1092
-
1093
-
1094
-
1095
  $follow_info = empty_accounts();
1096
 
1097
-
1098
-
1099
-
1100
-
1101
-
1102
-
1103
  if ( $follow_info["active"] > 0 && ($follow_info["empty"] < $follow_info["active"])){
1104
 
1105
-
1106
-
1107
  $follow_buttons = sc_follow_links();
1108
 
1109
-
1110
-
1111
  $follow_us_node = "oPlugin.CreateNode('New_Id_6','Follow', '', '".$follow_buttons["follow_buttons"]."','Plano',40,140)";
1112
 
1113
 
1114
 
1115
  }
1116
 
1117
-
1118
-
1119
  }
1120
-
1121
-
1122
-
1123
  return $follow_us_node;
1124
 
1125
-
1126
-
1127
  }
1128
-
1129
-
1130
-
1131
  function empty_accounts(){
1132
-
1133
-
1134
-
1135
  $empty = 0;
1136
-
1137
-
1138
-
1139
  $active = 0;
1140
-
1141
-
1142
-
1143
  global $skyscraper_options;
1144
-
1145
-
1146
-
1147
 
1148
-
1149
-
1150
-
1151
  foreach($skyscraper_options["follow_us"] as $follow_us){
1152
-
1153
-
1154
-
1155
 
1156
-
1157
-
1158
-
1159
  if (empty($follow_us["account"])){
1160
-
1161
-
1162
-
1163
  $empty++;
1164
-
1165
-
1166
-
1167
  }
1168
-
1169
-
1170
-
1171
 
1172
-
1173
-
1174
-
1175
  if (isset($follow_us["active"])){
1176
-
1177
-
1178
-
1179
  $active++;
1180
-
1181
-
1182
-
1183
  }
1184
-
1185
-
1186
-
1187
  }
1188
-
1189
-
1190
-
1191
 
1192
-
1193
-
1194
-
1195
  return array("empty" =>$empty, "active"=>$active);
1196
-
1197
-
1198
-
1199
  }
1200
-
1201
-
1202
-
1203
  function sc_follow_links($banner = 0){
1204
-
1205
-
1206
-
1207
  global $skyscraper_options;
1208
-
1209
-
1210
-
1211
  $follow_buttons = "<ul class=\'boxBanner_ul\'>";
1212
 
1213
  $count_follow = 0;
@@ -1215,25 +517,10 @@ function sc_follow_links($banner = 0){
1215
 
1216
 
1217
  foreach($skyscraper_options["follow_us"] as $follow_us){
1218
-
1219
-
1220
-
1221
  $follow_us["account"]= trim($follow_us["account"]);
1222
-
1223
-
1224
-
1225
  if (!empty($follow_us["active"]) && !empty($follow_us["account"]) ){
1226
-
1227
-
1228
-
1229
  $follow_us["account"] = str_replace("http://", "", $follow_us["account"]);
1230
-
1231
-
1232
-
1233
  $follow_us["account"] = "http://".$follow_us["account"];
1234
-
1235
-
1236
-
1237
  if ($banner==1){
1238
 
1239
 
@@ -1241,9 +528,6 @@ function sc_follow_links($banner = 0){
1241
  $follow_us["logo"] = "48".$follow_us["logo"];
1242
 
1243
  }
1244
-
1245
-
1246
-
1247
  $follow_buttons .= "<li><a target=\'_blank\' rel=\'nofollow\' href=\'".$follow_us["account"]."\'><img src=\'".SOCIABLE_HTTP_PATH."images/toolbar/".$follow_us["logo"]."\' /></a></li>";
1248
 
1249
 
@@ -1251,17 +535,11 @@ function sc_follow_links($banner = 0){
1251
  $count_follow++;
1252
 
1253
  }
1254
-
1255
-
1256
-
1257
  }
1258
 
1259
 
1260
 
1261
  $follow_buttons .= "</ul>";
1262
-
1263
-
1264
-
1265
  $return = array();
1266
 
1267
  $return["count"] = $count_follow;
@@ -1273,1249 +551,353 @@ function sc_follow_links($banner = 0){
1273
  return $return;
1274
 
1275
  }
1276
-
1277
-
1278
-
1279
  function share_links(){
1280
-
1281
-
1282
-
1283
-
1284
-
1285
-
1286
-
1287
  $url = addslashes(get_bloginfo('wpurl'));
1288
-
1289
-
1290
-
1291
  $blogname = addslashes(get_bloginfo('name'));
1292
-
1293
-
1294
-
1295
  global $title_shared;
1296
-
1297
-
1298
-
1299
  global $url_shares;
1300
 
1301
 
1302
-
1303
-
1304
-
1305
  $page = trim(addslashes($url_shares));
1306
-
1307
-
1308
-
1309
  $permalink = trim(addslashes($url_shares));
1310
-
1311
-
1312
-
1313
  $title = trim(addslashes($title_shared));
1314
-
1315
-
1316
-
1317
 
1318
-
1319
-
1320
-
1321
  $share_links = array();
1322
-
1323
-
1324
-
1325
  $share_links = array(
1326
 
1327
-
1328
-
1329
-
1330
-
1331
  "twitter" => array('favicon' => 't.png',
 
 
1332
 
1333
-
1334
-
1335
- 'url' => 'http://twitter.com/intent/tweet?text='.urlencode($title).' - '.urlencode($url).' '.urlencode("{sociable}").' blogplay.com&via=sociablesite',
1336
-
1337
-
1338
-
1339
- 'title' => "Share on Twitter"),
1340
-
1341
-
1342
-
1343
 
1344
-
1345
-
1346
-
1347
  "facebook" => array('favicon' => 'f.png',
1348
-
1349
-
1350
-
1351
  'url' => 'http://www.facebook.com/share.php?u='.$permalink.'&amp;t='.$title.'',
 
1352
 
1353
-
1354
-
1355
- 'title' => "Share on Facebook"),
1356
-
1357
-
1358
-
1359
 
1360
-
1361
-
1362
-
1363
  "google" => array('favicon' => 'g.png',
1364
-
1365
-
1366
-
1367
  'url' => 'https://mail.google.com/mail/?view=cm&fs=1&to&su='.$title.'&body='.$permalink.'&ui=2&tf=1&shva=1',
 
1368
 
1369
-
1370
-
1371
- 'title' => "Share on Gmail"),
1372
-
1373
-
1374
-
1375
 
1376
-
1377
-
1378
-
1379
  "inbound" => array('favicon' => 'inbound.png',
1380
-
1381
-
1382
-
1383
  'url' => 'http://inbound.org/?url='.$permalink.'&title='.$title.'',
 
1384
 
1385
-
1386
-
1387
- 'title' => "Share on inbound.org"),
1388
-
1389
-
1390
-
1391
 
1392
-
1393
-
1394
-
1395
  "stumble" => array('favicon' => 's.png',
1396
-
1397
-
1398
-
1399
  'url' => 'http://www.stumbleupon.com/submit?url='.$permalink.'&title='.$title.'',
 
1400
 
1401
-
1402
-
1403
- 'title' => "Share on StumpleUpon"),
1404
-
1405
-
1406
-
1407
 
1408
-
1409
-
1410
-
1411
  "delicious" => array('favicon' => 'o.png',
1412
-
1413
-
1414
-
1415
  'url' => 'http://delicious.com/post?url='.$permalink.'&amp;title='.$title.'&amp;notes=EXCERPT',
 
1416
 
1417
-
1418
-
1419
- "title" => "Share on delicious"),
1420
-
1421
-
1422
-
1423
 
1424
-
1425
-
1426
-
1427
  "reader" => array('favicon' => 'n.png',
1428
-
1429
-
1430
-
1431
  'url' => 'http://www.google.com/reader/link?url='.$permalink.'&amp;title='.$title.'&amp;srcURL='.$permalink.'&amp;srcTitle='.$blogname.'',
 
1432
 
1433
-
1434
-
1435
- "title" => "Share on Google Reader"),
1436
-
1437
-
1438
-
1439
 
1440
-
1441
-
1442
-
1443
  "linkedin" => array('favicon' => 'i.png',
1444
-
1445
-
1446
-
1447
  'url' => 'http://www.linkedin.com/shareArticle?mini=true&amp;url='.$permalink.'&amp;title='.$title.'&amp;source='.$blogname.'&amp;summary=EXCERPT',
 
1448
 
1449
-
1450
-
1451
- "title" => "Share on LinkedIn")
1452
-
1453
-
1454
 
1455
 
1456
 
 
 
 
1457
 
 
1458
 
1459
- );
1460
 
 
1461
 
 
1462
 
1463
-
1464
 
 
1465
 
 
1466
 
 
 
1467
  $share_buttons = "";
1468
-
1469
-
1470
-
1471
-
1472
-
1473
-
1474
-
1475
  foreach($share_links as $link){
1476
 
1477
-
1478
 
1479
 
1480
 
1481
-
1482
-
1483
- $share_buttons .= "<a target=\'_blank\' rel=\'nofollow\' href=\'".addslashes($link["url"])."\' title=\'".addslashes($link["title"])."\'><img src=\'".SOCIABLE_HTTP_PATH."images/toolbar/".addslashes($link["favicon"])."\' /></a>";
1484
-
1485
-
1486
-
1487
  }
1488
-
1489
-
1490
-
1491
-
1492
-
1493
-
1494
-
1495
  return $share_buttons;
1496
 
1497
-
1498
-
1499
  }
1500
-
1501
-
1502
-
1503
  /*
1504
-
1505
-
1506
-
1507
  * Template Tag To Echo The Sociable 2 HTML
1508
-
1509
-
1510
-
1511
  */
1512
-
1513
-
1514
-
1515
  function do_skyscraper(){
1516
-
1517
-
1518
-
1519
  echo skyscraper_html();
1520
-
1521
-
1522
-
1523
  }
1524
-
1525
-
1526
-
1527
  /*
1528
-
1529
-
1530
-
1531
  * Sociable 2 Shortcode
1532
-
1533
-
1534
-
1535
  */
1536
-
1537
-
1538
-
1539
  function skyscraper_shortcode(){
1540
-
1541
-
1542
-
1543
  return skyscraper_html();
1544
-
1545
-
1546
-
1547
  }
1548
-
1549
-
1550
-
1551
  function auto_skyscraper($content, $admin = false){
1552
-
1553
-
1554
-
1555
  global $skyscraper_options;
1556
 
1557
-
1558
-
1559
-
1560
-
1561
  if ($admin){
1562
-
1563
-
1564
-
1565
  $content = skyscraper_html();
1566
-
1567
-
1568
-
1569
  return $content;
1570
-
1571
-
1572
-
1573
  }
1574
-
1575
-
1576
-
1577
 
1578
-
1579
-
1580
-
1581
  if( ! isset( $skyscraper_options['active'] )){
1582
-
1583
-
1584
-
1585
  $content = "";
1586
-
1587
-
1588
-
1589
  return $content;
1590
-
1591
-
1592
-
1593
  }
1594
 
1595
-
1596
-
1597
- echo "<pre>";
1598
-
1599
- print_r ($skyscraper_options["locations"]);
1600
-
1601
- echo "</pre>";
1602
-
1603
-
1604
-
1605
 
1606
-
1607
-
1608
-
1609
  if( ! isset( $skyscraper_options['locations'] ) || ! is_array( $skyscraper_options['locations'] ) || empty( $skyscraper_options['locations'] ) ){
1610
-
1611
-
1612
-
1613
 
1614
-
1615
-
1616
-
1617
  $content = "";
1618
-
1619
-
1620
-
1621
  } else {
1622
-
1623
-
1624
-
1625
 
1626
-
1627
-
1628
-
1629
  $locations = $skyscraper_options['locations'];
1630
-
1631
-
1632
-
1633
  }
1634
-
1635
-
1636
-
1637
  /*
1638
-
1639
-
1640
-
1641
  * Determine if we are supposed to be displaying the output here.
1642
-
1643
-
1644
-
1645
  */
1646
-
1647
-
1648
-
1649
  $display = false;
1650
-
1651
-
1652
-
1653
 
1654
-
1655
-
1656
-
1657
  /*
1658
-
1659
-
1660
-
1661
  * is_single is a unique case it still returning true
1662
-
1663
-
1664
-
1665
  */
1666
-
1667
-
1668
-
1669
 
1670
-
1671
-
1672
-
1673
  //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.
1674
-
1675
-
1676
-
1677
  foreach( $locations as $location => $val ){
1678
-
1679
-
1680
-
1681
 
1682
-
1683
-
1684
-
1685
  //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
1686
-
1687
-
1688
-
1689
  if( $location == 'is_single' ){
1690
-
1691
-
1692
-
1693
  //If we are not in a post, lets ignore this one for now
1694
-
1695
-
1696
-
1697
-
1698
-
1699
-
1700
-
1701
  if( is_single() && get_post_type() == 'post' ){
1702
-
1703
-
1704
-
1705
  $display = true;
1706
-
1707
-
1708
-
1709
  break;
1710
-
1711
-
1712
-
1713
  } else {
1714
-
1715
-
1716
-
1717
  continue; // So not to trigger is_single later in this loop, but still be allowed to handle others
1718
-
1719
-
1720
-
1721
  }
1722
-
1723
-
1724
-
1725
 
1726
-
1727
-
1728
-
1729
  } 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.
1730
-
1731
-
1732
-
1733
 
1734
-
1735
-
1736
-
1737
  //Single Custom Post Type
1738
-
1739
-
1740
-
1741
  $post_type = str_replace( 'is_single_posttype_' , '' , $location );
1742
-
1743
-
1744
-
1745
  if( is_single() && get_post_type() == $post_type ){
1746
-
1747
-
1748
-
1749
  $display = true;
1750
-
1751
-
1752
-
1753
  break;
1754
-
1755
-
1756
-
1757
  }
1758
-
1759
-
1760
-
1761
 
1762
-
1763
-
1764
-
1765
  } elseif( strpos( $location , 'is_posttype_archive_' ) === 0 ){
1766
-
1767
-
1768
-
1769
 
1770
-
1771
-
1772
-
1773
  //Custom Post Type Archive
1774
-
1775
-
1776
-
1777
  $post_type = str_replace( 'is_posttype_archive_' , '' , $location );
1778
-
1779
-
1780
-
1781
  if( is_post_type_archive( $post_type ) ){
1782
-
1783
-
1784
-
1785
  $display = true;
1786
-
1787
-
1788
-
1789
  break;
1790
-
1791
-
1792
-
1793
  }
1794
-
1795
-
1796
-
1797
 
1798
-
1799
-
1800
-
1801
  } elseif( strpos( $location , 'is_taxonomy_archive_' ) === 0 ) {
1802
-
1803
-
1804
-
1805
 
1806
-
1807
-
1808
-
1809
  //Taxonomy Archive
1810
-
1811
-
1812
-
1813
  $taxonomy = str_replace( 'is_taxonomy_archive_' , '' , $location );
1814
-
1815
-
1816
-
1817
  if( is_tax( $taxonomy ) ){
1818
-
1819
-
1820
-
1821
  $display = true;
1822
-
1823
-
1824
-
1825
  break;
1826
-
1827
-
1828
-
1829
  }
1830
-
1831
-
1832
-
1833
 
1834
-
1835
-
1836
-
1837
  } elseif( function_exists( $location ) ) {
1838
-
1839
-
1840
-
1841
 
1842
-
1843
-
1844
-
1845
  //Standard conditional tag, these will return BOOL
1846
-
1847
-
1848
-
1849
  if( call_user_func( $location ) === true ){
1850
-
1851
-
1852
-
1853
  $display = true;
1854
-
1855
-
1856
-
1857
  break;
1858
-
1859
-
1860
-
1861
  }
1862
-
1863
-
1864
-
1865
 
1866
-
1867
-
1868
-
1869
  } else {
1870
-
1871
-
1872
-
1873
  continue;
1874
-
1875
-
1876
-
1877
  }
1878
-
1879
-
1880
-
1881
 
1882
-
1883
-
1884
-
1885
 
1886
-
1887
-
1888
-
1889
  }
1890
-
1891
-
1892
-
1893
 
1894
-
1895
-
1896
-
1897
  //If We have passed all the checks and are looking in the right place lets do this thang
1898
-
1899
-
1900
-
1901
  if( isset( $skyscraper_options['automatic_mode'] ) && $display === true ){
1902
-
1903
-
1904
-
1905
  if (isset($skyscraper_options["topandbottom"])){
1906
-
1907
-
1908
-
1909
  $content = skyscraper_html();
1910
-
1911
-
1912
-
1913
  }else{
1914
-
1915
-
1916
-
1917
  $content = skyscraper_html();
1918
-
1919
-
1920
-
1921
  }
1922
-
1923
-
1924
-
1925
  }
1926
-
1927
-
1928
-
1929
  else{
1930
-
1931
-
1932
-
1933
  $content = skyscraper_html();
1934
-
1935
-
1936
-
1937
  }
1938
-
1939
-
1940
-
1941
 
1942
-
1943
-
1944
-
1945
 
1946
-
1947
-
1948
-
1949
 
1950
-
1951
-
1952
-
1953
  return $content;
1954
-
1955
-
1956
-
1957
  }
1958
-
1959
-
1960
-
1961
  function get_tweets_username($username_complete){
1962
-
1963
-
1964
-
1965
 
1966
-
1967
-
1968
-
1969
  if (function_exists('curl_init')) {
1970
-
1971
-
1972
-
1973
 
1974
-
1975
-
1976
-
1977
  // last tweets
1978
-
1979
-
1980
-
1981
  $username = str_replace("@", "", $username_complete);
1982
-
1983
-
1984
-
1985
  $url = "https://api.twitter.com/1/statuses/user_timeline/".$username.".json";
1986
-
1987
-
1988
-
1989
  $latest = curl_call($url);
1990
-
1991
-
1992
-
1993
  $latest_row = parser_twitter_results($latest,0);
1994
-
1995
-
1996
-
1997
  update_option( "skyscraper_latest", $latest_row );
1998
-
1999
-
2000
-
2001
 
2002
-
2003
-
2004
-
2005
  // last mentions
2006
-
2007
-
2008
-
2009
  $url = "http://search.twitter.com/search.json?q=@".$username."&rpp=5&include_entities=true&result_type=mixed";
2010
-
2011
-
2012
-
2013
  $mentions = curl_call($url);
2014
-
2015
-
2016
-
2017
 
2018
-
2019
-
2020
-
2021
  if (count($mentions["results"]) > 1){
2022
-
2023
-
2024
-
2025
 
2026
-
2027
-
2028
-
2029
  $mentions_row = parser_twitter_results($mentions["results"],1);
2030
-
2031
-
2032
-
2033
  update_option( "skyscraper_mentions", $mentions_row );
2034
-
2035
-
2036
-
2037
  }
2038
-
2039
-
2040
-
2041
  }
2042
-
2043
-
2044
-
2045
  }
2046
-
2047
-
2048
-
2049
  function ago($time){
2050
-
2051
-
2052
-
2053
  $periods = array("second", "minute", "hour", "day", "week", "month", "year", "decade");
2054
-
2055
-
2056
-
2057
  $lengths = array("60","60","24","7","4.35","12","10");
2058
-
2059
-
2060
-
2061
  $now = time();
2062
-
2063
-
2064
-
2065
  $difference = $now - $time;
2066
-
2067
-
2068
-
2069
  $tense = "ago";
2070
-
2071
-
2072
-
2073
  for($j = 0; $difference >= $lengths[$j] && $j < count($lengths)-1; $j++) {
2074
-
2075
-
2076
-
2077
  $difference /= $lengths[$j];
2078
-
2079
-
2080
-
2081
  }
2082
-
2083
-
2084
-
2085
  $difference = round($difference);
2086
-
2087
-
2088
-
2089
  if($difference != 1) {
2090
-
2091
-
2092
-
2093
  $periods[$j].= "s";
2094
-
2095
-
2096
-
2097
  }
2098
-
2099
-
2100
-
2101
  return $difference." ".$periods[$j]."ago";
2102
-
2103
-
2104
-
2105
  }
2106
-
2107
-
2108
-
2109
  function parser_twitter_results($results = array(), $mention){
2110
-
2111
-
2112
-
2113
 
2114
-
2115
-
2116
-
2117
  $options_latest = array();
2118
-
2119
-
2120
-
2121
  $options_latest = array("date" => date("YmdHis"));
2122
-
2123
-
2124
-
2125
  global $skyscraper_options;
2126
-
2127
-
2128
-
2129
  $i = 0;
2130
-
2131
-
2132
-
2133
 
2134
-
2135
-
2136
-
2137
  if (is_array($results)){
2138
-
2139
-
2140
-
2141
 
2142
-
2143
-
2144
-
2145
  foreach($results as $tweet){
2146
-
2147
-
2148
-
2149
 
2150
-
2151
-
2152
-
2153
  $options_latest[$i] = array();
2154
-
2155
-
2156
-
2157
  $options_latest[$i]["text"] = $tweet["text"];
2158
-
2159
-
2160
-
2161
  $options_latest[$i]["created_at"] = ago(strtotime($tweet["created_at"]));
2162
-
2163
-
2164
-
2165
 
2166
-
2167
-
2168
-
2169
  if ($mention){
2170
-
2171
-
2172
-
2173
  $options_latest[$i]["name"] = $tweet["from_user_name"];
2174
-
2175
-
2176
-
2177
- }
2178
-
2179
-
2180
-
2181
  else{
2182
-
2183
-
2184
-
2185
  $options_latest[$i]["name"] = $tweet["user"]["name"];
2186
-
2187
-
2188
-
2189
  }
2190
-
2191
-
2192
-
2193
 
2194
-
2195
-
2196
-
2197
  $i++;
2198
-
2199
-
2200
-
2201
  if ($i == $skyscraper_options["num_tweets"]){
2202
-
2203
-
2204
-
2205
  break;
2206
-
2207
-
2208
-
2209
  }
2210
-
2211
-
2212
-
2213
  }
2214
-
2215
-
2216
-
2217
  }
2218
-
2219
-
2220
-
2221
 
2222
-
2223
-
2224
-
2225
  return $options_latest;
2226
-
2227
-
2228
-
2229
  }
2230
-
2231
-
2232
-
2233
  function curl_call($url){
2234
-
2235
-
2236
-
2237
 
2238
-
2239
-
2240
-
2241
  $ch = curl_init();
2242
-
2243
-
2244
-
2245
  curl_setopt($ch, CURLOPT_URL, $url);
2246
-
2247
-
2248
-
2249
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
2250
-
2251
-
2252
-
2253
  curl_setopt($ch, CURLOPT_TIMEOUT, 3);
2254
-
2255
-
2256
-
2257
  curl_setopt($ch, CURLINFO_HEADER_OUT, true);
2258
-
2259
-
2260
-
2261
  $output = curl_exec($ch);
2262
-
2263
-
2264
-
2265
  $info = curl_getinfo($ch);
2266
-
2267
-
2268
-
2269
  curl_close($ch);
2270
-
2271
-
2272
-
2273
 
2274
-
2275
-
2276
-
2277
  if ($info["http_code"] == "200"){
2278
-
2279
-
2280
-
2281
 
2282
-
2283
-
2284
-
2285
  $return = json_decode($output,1);
2286
-
2287
-
2288
-
2289
  }
2290
-
2291
-
2292
-
2293
  else{
2294
-
2295
-
2296
-
2297
  $return = false;
2298
-
2299
-
2300
-
2301
  }
2302
-
2303
-
2304
-
2305
 
2306
-
2307
-
2308
-
2309
  return $return;
2310
-
2311
-
2312
-
2313
  }
2314
-
2315
-
2316
-
2317
  function get_option_tweets($option){
2318
-
2319
-
2320
-
2321
 
2322
-
2323
-
2324
-
2325
  global $skyscraper_options;
2326
-
2327
-
2328
-
2329
  $skyscraper_latest = get_option($option);
2330
-
2331
-
2332
-
2333
 
2334
-
2335
-
2336
-
2337
  if (empty($skyscraper_latest)){
2338
-
2339
-
2340
-
2341
 
2342
-
2343
-
2344
-
2345
  get_tweets_username($skyscraper_options["twitter_username"]);
2346
-
2347
-
2348
-
2349
  $skyscraper_latest = get_option($option);
2350
-
2351
-
2352
-
2353
  }
2354
-
2355
-
2356
-
2357
  else{
2358
-
2359
-
2360
-
2361
 
2362
-
2363
-
2364
-
2365
  // 5 minutes
2366
-
2367
-
2368
-
2369
  if (diff_date($skyscraper_latest["date"], date("YmdHis")) > 5){
2370
-
2371
-
2372
-
2373
 
2374
-
2375
-
2376
-
2377
  get_tweets_username($skyscraper_options["twitter_username"]);
2378
-
2379
-
2380
-
2381
  $skyscraper_latest = get_option($option);
2382
-
2383
-
2384
-
2385
  }
2386
-
2387
-
2388
-
2389
  }
2390
-
2391
-
2392
-
2393
 
2394
-
2395
-
2396
-
2397
 
2398
-
2399
-
2400
-
2401
  return generate_tweets_box_content($skyscraper_latest);
2402
-
2403
-
2404
-
2405
  }
2406
-
2407
-
2408
-
2409
  function generate_tweets_box_content($tweets){
2410
-
2411
-
2412
-
2413
  $content = "";
2414
-
2415
-
2416
-
2417
  if (isset($tweets["date"])){
2418
-
2419
-
2420
-
2421
  unset($tweets["date"]);
2422
-
2423
-
2424
-
2425
  }
2426
-
2427
-
2428
-
2429
 
2430
-
2431
-
2432
-
2433
 
2434
-
2435
-
2436
-
2437
  foreach($tweets as $tweet){
2438
-
2439
-
2440
-
2441
 
2442
-
2443
-
2444
-
2445
  $tweet["name"] = addslashes($tweet["name"]);
2446
-
2447
-
2448
-
2449
  $tweet["text"] = addslashes($tweet["text"]);
2450
-
2451
-
2452
-
2453
 
2454
-
2455
-
2456
-
2457
  $content .= "['".$tweet["name"]."','".$tweet["name"]."','".$tweet["text"]."','','".$tweet["created_at"]."'],";
2458
-
2459
-
2460
-
2461
  }
2462
-
2463
-
2464
-
2465
  $content = trim(trim(trim($content), ","));
2466
-
2467
-
2468
-
2469
 
2470
-
2471
-
2472
-
2473
  return $content;
2474
-
2475
-
2476
-
2477
  }
2478
-
2479
-
2480
-
2481
  if (!empty($_GET["sky"])){
2482
-
2483
-
2484
-
2485
  add_action('wp_ajax_my_action', 'my_action_callback');
2486
-
2487
-
2488
-
2489
  function my_action_callback() {
2490
-
2491
-
2492
-
2493
  global $wpdb; global $skyscraper_options; // this is how you get access to the database
2494
-
2495
-
2496
-
2497
  $whatever = intval( $_POST['whatever'] );
2498
-
2499
-
2500
-
2501
  $whatever += 10;
2502
-
2503
-
2504
-
2505
  echo $whatever;
2506
-
2507
-
2508
-
2509
  die(); // this is required to return a proper result
2510
-
2511
-
2512
-
2513
  }
2514
-
2515
-
2516
-
2517
  }
2518
-
2519
-
2520
-
2521
  ?>
1
  <?php
2
 
 
 
3
  /*
4
 
 
 
5
  * The Output And Shortcode Functions For sociable
6
 
 
 
7
  */
 
 
 
8
  /*
9
 
 
 
10
  * Returns The Skyscraper Output For The Global $post Object Do Not
11
 
 
 
12
  */
 
 
 
13
  function diff_date($date1, $date2){
14
 
 
 
 
 
15
  $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));
 
 
 
16
  $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));
17
 
 
 
 
 
18
  $diff_time = ceil((($date2 - $date1)/60));
 
 
 
19
  return $diff_time;
20
 
21
  }
 
 
 
22
 
 
 
 
23
 
 
 
 
24
  function skyscraper_html( $where = "" ){
 
 
 
25
  global $skyscraper_options, $wp_query;
 
 
 
26
  if (!is_admin() || 1==1){
 
 
 
 
 
 
 
 
 
 
 
27
  // echo "<script type='text/javascript'>";
 
 
 
28
  // echo "var skyscraper_dir = '".SOCIABLE_HTTP_PATH."' ;";
 
 
 
29
  // echo "</script>";
 
 
 
30
  echo " var skyscraper_dir = document.createElement('input');
 
 
 
31
  skyscraper_dir.id = 'skyscraper_dir';
 
 
 
32
  skyscraper_dir.type = 'hidden';
 
 
 
33
  skyscraper_dir.value = '".SOCIABLE_HTTP_PATH."';
 
 
 
34
  document.body.appendChild(skyscraper_dir); ";
 
 
 
35
 
 
 
 
36
  $widget_width = str_replace("px", "", $skyscraper_options["widget_width"]);
 
 
 
37
 
 
 
 
38
  $widget_position = "null";
 
 
 
39
  if (isset($skyscraper_options["widget_position"])){
 
 
 
40
  $widget_position = 1;
 
 
 
41
  }
 
 
 
42
 
 
 
 
43
  $labels_color = $skyscraper_options["labels_color"];
 
 
 
44
  $text_size = str_replace("px", "", $skyscraper_options["text_size"]);
 
 
 
45
  $background_color = $skyscraper_options["background_color"];
 
 
 
46
 
 
 
 
47
  $addWhere = "";
 
 
 
48
 
 
 
 
49
  if ($where == ""){
 
 
 
50
  $addWhere = "var div = document.createElement('div');
 
 
 
51
  div.id = 'skyscraper';
 
 
 
52
  document.body.appendChild(div);";
 
 
 
53
  }
 
 
 
 
 
 
 
54
  $url_site= $_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
 
 
 
 
 
 
 
55
  $script = "
56
 
 
 
 
 
 
 
 
 
57
  if (!document.getElementById('fb-root')){
58
 
 
 
59
  var div = document.createElement('div');
60
 
 
 
61
  div.id = 'fb-root';
62
 
 
 
63
  document.body.appendChild(div);
64
 
 
 
65
  }
 
 
 
66
  (function(d, s, id) {
67
 
 
 
68
  var js, fjs = d.getElementsByTagName(s)[0];
69
 
 
 
70
  if (d.getElementById(id)) return;
71
 
 
 
72
  js = d.createElement(s); js.id = id;
73
 
 
 
74
  js.src = \"http://connect.facebook.net/en_US/all.js#xfbml=1\";
75
 
 
 
76
  fjs.parentNode.insertBefore(js, fjs);
 
 
 
77
  }(document, 'script', 'facebook-jssdk'));
78
 
 
 
 
 
 
 
79
 
80
 
81
  ".$addWhere."
82
 
83
+
84
 
85
  jQuery(document).ready(function(){
 
 
 
86
  oPlugin.toolbarStart('skyscraper', ".$widget_position.",230,".$widget_width.",'".$background_color."','".$labels_color."',false,'#6A6A6A',".$text_size.",'#587cc8');
87
 
88
+
89
 
90
  ".get_share_node()."
91
 
 
 
92
  ".get_counters_node()."
93
 
 
 
94
  ".get_social_banner_node()."
95
 
 
 
96
  ".get_latest_node()."
97
 
 
 
98
  ".get_mentions_node()."
99
 
 
 
100
  ".get_follow_us_node()."
101
 
 
 
102
  ".get_rss_node()."
103
 
 
 
104
  oPlugin.CreateGoToTop('New_Id_12','Top','<img src=\"".SOCIABLE_HTTP_PATH."images/toolbar/gototop.png\" style=\"width:30px;\" />');
 
 
 
105
  oPlugin.CreateGoToHome('New_Id_13','Go Home','<img src=\"".SOCIABLE_HTTP_PATH."images/toolbar/gotohome.png\" style=\"width:30px;\" />');
106
 
107
+ });
108
 
109
+ jQuery('.title').css('font-size', '".$text_size."px');
110
 
111
+
 
 
112
 
113
  ";
114
 
 
 
115
  echo $script;
116
 
117
  }
118
 
 
 
119
  }
 
 
 
120
  function get_social_banner_node(){
121
 
122
 
124
 
125
 
126
  global $skyscraper_options;
 
 
 
127
  global $title_shared;
 
 
 
128
  global $url_shares;
129
 
130
 
177
 
178
  counter += ' <li>';
179
 
180
+ 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>';
181
 
182
  counter += ' </li>';
183
 
268
  return $social_banner_node;
269
 
270
  }
 
 
 
271
  function get_rss_node(){
272
 
 
 
273
  $rss_node = "";
 
 
 
274
  $latest_posts = "";
 
 
 
275
  global $skyscraper_options;
276
+
277
+
278
  if (!empty($skyscraper_options["accept_read_rss"])){
279
 
280
  if ($skyscraper_options["accept_read_rss"] != 1){
281
 
282
+ return $rss_node;
283
  }
284
  }
285
  else{
286
 
287
+ return $rss_node;
288
  }
289
+
 
 
 
290
  $version = phpversion();
 
 
 
291
 
 
 
 
292
  if ( substr($version,0,1) == 5 && isset($skyscraper_options["rss_feed"]) && $skyscraper_options["rss_feed"]!="http://"){
 
 
 
293
 
 
 
 
294
  include("rss_php.php");
 
 
 
295
 
 
 
 
296
  $rss = new rss_php;
 
 
 
297
  $rss->load($skyscraper_options["rss_feed"]);
 
 
 
298
  $items = $rss->getItems();
 
 
 
299
 
 
 
 
300
  if (!empty($skyscraper_options["rss_feed"])){
 
 
 
301
 
 
 
 
302
  if (count($items) > 0){
 
 
 
303
 
 
 
 
304
  $cant = 0;
 
 
 
305
  foreach($items as $item){
 
 
 
306
 
 
 
 
307
  if ($cant <= $skyscraper_options["num_rss"]){
 
 
 
308
 
 
 
 
309
  $title="";
 
 
 
310
  if (isset($item["title"])){
 
 
 
311
  $title = addslashes($item["title"]);
 
 
 
312
  }
 
 
 
313
  $description="";
 
 
 
314
  if (isset($item["description"])){
 
 
 
315
  $description = addslashes($item["description"]);
 
 
 
316
  }
 
 
 
317
  $guid="";
 
 
 
318
  if (isset($item["link"])){
 
 
 
319
  $guid = addslashes($item["link"]);
 
 
 
320
  }
 
 
 
321
  $pubDate="";
 
 
 
322
  if (isset($item["pubDate"])){
 
 
 
323
  $pubDate = ago(strtotime($item["pubDate"]));
 
 
 
324
  }
 
 
 
325
 
 
 
 
326
  $latest_posts .= "['".$title."','','".$description."','".$guid."','".$pubDate."'],";
 
 
 
327
  }
 
 
 
328
  else{
 
 
 
329
  break;
 
 
 
330
  }
 
 
 
331
  $cant++;
 
 
 
332
  }
 
 
 
333
  $latest_posts = trim($latest_posts, ",");
 
 
 
334
  }
 
 
 
335
  }
 
 
 
336
  }
 
 
 
337
 
 
 
 
338
  if ($latest_posts != ""){
 
 
 
339
 
 
 
 
340
  $rss_node = "var LatestBlogPostContent = [
 
 
 
341
  ".$latest_posts."
 
 
 
342
  ];
 
 
 
343
  oPlugin.CreateNode('New_Id_5','Posts','',LatestBlogPostContent,'Notice',220,460);";
344
+ }
345
+
 
 
 
 
 
346
  return $rss_node;
 
 
 
347
  }
 
 
 
348
  function get_latest_node(){
349
 
 
 
350
  $latest_node = "";
 
 
 
351
  global $skyscraper_options;
352
+
 
 
353
  if (!empty($skyscraper_options["accept_read_twitter"])){
354
 
355
  if ($skyscraper_options["accept_read_twitter"] != 1){
361
 
362
  return $latest_node;
363
  }
364
+
365
+
 
366
  if ( isset($skyscraper_options["twitter_username"])){
 
 
 
367
 
 
 
 
368
  $latest_tweets = get_option_tweets("skyscraper_latest");
 
 
 
369
  if ($skyscraper_options["twitter_username"] != ""){
 
 
 
370
 
 
 
 
371
  if ($latest_tweets != ""){
 
 
 
372
 
 
 
 
373
  $latest_node = "
374
 
375
 
376
 
377
  var LastestTwittsContent = [
 
 
 
378
  ".$latest_tweets."
 
 
 
379
  ];
 
 
 
380
 
 
 
 
381
  oPlugin.CreateNode('New_Id_3','Latest','',LastestTwittsContent,'Notice',220,460);";
 
 
 
382
  }
 
 
 
383
  }
 
 
 
384
  }
 
 
 
385
  return $latest_node;
 
 
 
386
  }
 
 
 
 
387
 
388
+ function get_mentions_node(){
389
 
390
  $mentions_node = "";
391
+
392
  global $skyscraper_options;
393
+
 
 
 
 
394
  if (!empty($skyscraper_options["accept_read_twitter"])){
395
+
396
  if ($skyscraper_options["accept_read_twitter"] != 1){
397
+
398
  return $mentions_node;
399
  }
400
  }
401
  else{
402
+
403
  return $mentions_node;
 
404
  }
405
+
406
+
407
  if ( isset($skyscraper_options["twitter_username"])){
 
 
 
408
 
 
 
 
409
  $mentions_tweets = get_option_tweets("skyscraper_mentions");
 
 
 
410
  if ($skyscraper_options["twitter_username"] != ""){
 
 
 
411
 
 
 
 
412
  if ($mentions_tweets != "" ){
 
 
 
413
 
 
 
 
414
  $mentions_node = "var TweetsMentionsContent = [
 
 
 
415
  ".$mentions_tweets."
 
 
 
416
  ];
 
 
 
417
  oPlugin.CreateNode('New_Id_4','Mentions','',TweetsMentionsContent,'Notice',220,460);";
 
 
 
418
  }
 
 
 
419
  }
 
 
 
420
  }
 
 
 
421
  return $mentions_node;
 
 
 
422
  }
 
 
 
423
  function get_counters_node(){
 
 
 
424
 
 
 
 
425
  global $skyscraper_options;
 
 
 
426
  global $title_shared;
 
 
 
427
  global $url_shares;
 
 
 
428
  $counters_node = "";
429
 
 
430
  if ((!empty($skyscraper_options["counters"]["check"]))){
 
 
 
431
 
 
 
 
432
  $counters_node = " var url = '". addslashes(trim($url_shares))."';
 
 
 
433
  var title = '".addslashes(trim($title_shared)) ."'; ";
434
 
435
 
441
 
442
 
443
  counter += '<li style=\"margin-left:2px\"><fb:like send=\"false\" layout=\"box_count\" show_faces=\"false\" font=\"\"></fb:like></li>';
 
 
 
444
  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>';
445
 
446
+
 
 
 
 
447
 
448
+ 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>';
449
  counter += '</ul>';";
450
 
451
  }
 
 
 
 
 
 
 
452
  $counters_node .= "oPlugin.CreateSimpleNode('New_Id_2','Counters<br/>', counter ,".$skyscraper_options["counters"]["folded"].");
453
 
454
  ";
 
 
 
455
  return $counters_node;
 
 
 
456
  }
 
 
 
457
  function get_share_node(){
 
 
 
 
 
 
 
458
  global $skyscraper_options;
459
 
 
 
 
 
 
 
460
  $share_node = "";
461
 
 
 
 
 
 
 
462
  if (!empty($skyscraper_options["share"]["check"])){
 
 
 
463
  $share_buttons = share_links();
 
 
 
464
  $share_node = "oPlugin.CreateSimpleNode('New_Id_1','Share', '".$share_buttons."',".$skyscraper_options["share"]["folded"].");";
 
 
 
465
  }
466
 
 
 
467
 
468
 
 
 
469
  return $share_node;
470
 
 
 
471
  }
 
 
 
472
  function get_follow_us_node(){
 
 
 
473
  $follow_us_node = "";
 
 
 
474
  global $skyscraper_options;
 
 
 
475
 
 
 
 
476
  if (isset($skyscraper_options["follow_us"])){
 
 
 
 
 
 
 
477
  $follow_info = empty_accounts();
478
 
 
 
 
 
 
 
479
  if ( $follow_info["active"] > 0 && ($follow_info["empty"] < $follow_info["active"])){
480
 
 
 
481
  $follow_buttons = sc_follow_links();
482
 
 
 
483
  $follow_us_node = "oPlugin.CreateNode('New_Id_6','Follow', '', '".$follow_buttons["follow_buttons"]."','Plano',40,140)";
484
 
485
 
486
 
487
  }
488
 
 
 
489
  }
 
 
 
490
  return $follow_us_node;
491
 
 
 
492
  }
 
 
 
493
  function empty_accounts(){
 
 
 
494
  $empty = 0;
 
 
 
495
  $active = 0;
 
 
 
496
  global $skyscraper_options;
 
 
 
497
 
 
 
 
498
  foreach($skyscraper_options["follow_us"] as $follow_us){
 
 
 
499
 
 
 
 
500
  if (empty($follow_us["account"])){
 
 
 
501
  $empty++;
 
 
 
502
  }
 
 
 
503
 
 
 
 
504
  if (isset($follow_us["active"])){
 
 
 
505
  $active++;
 
 
 
506
  }
 
 
 
507
  }
 
 
 
508
 
 
 
 
509
  return array("empty" =>$empty, "active"=>$active);
 
 
 
510
  }
 
 
 
511
  function sc_follow_links($banner = 0){
 
 
 
512
  global $skyscraper_options;
 
 
 
513
  $follow_buttons = "<ul class=\'boxBanner_ul\'>";
514
 
515
  $count_follow = 0;
517
 
518
 
519
  foreach($skyscraper_options["follow_us"] as $follow_us){
 
 
 
520
  $follow_us["account"]= trim($follow_us["account"]);
 
 
 
521
  if (!empty($follow_us["active"]) && !empty($follow_us["account"]) ){
 
 
 
522
  $follow_us["account"] = str_replace("http://", "", $follow_us["account"]);
 
 
 
523
  $follow_us["account"] = "http://".$follow_us["account"];
 
 
 
524
  if ($banner==1){
525
 
526
 
528
  $follow_us["logo"] = "48".$follow_us["logo"];
529
 
530
  }
 
 
 
531
  $follow_buttons .= "<li><a target=\'_blank\' rel=\'nofollow\' href=\'".$follow_us["account"]."\'><img src=\'".SOCIABLE_HTTP_PATH."images/toolbar/".$follow_us["logo"]."\' /></a></li>";
532
 
533
 
535
  $count_follow++;
536
 
537
  }
 
 
 
538
  }
539
 
540
 
541
 
542
  $follow_buttons .= "</ul>";
 
 
 
543
  $return = array();
544
 
545
  $return["count"] = $count_follow;
551
  return $return;
552
 
553
  }
 
 
 
554
  function share_links(){
 
 
 
 
 
 
 
555
  $url = addslashes(get_bloginfo('wpurl'));
 
 
 
556
  $blogname = addslashes(get_bloginfo('name'));
 
 
 
557
  global $title_shared;
 
 
 
558
  global $url_shares;
559
 
560
 
 
 
 
561
  $page = trim(addslashes($url_shares));
 
 
 
562
  $permalink = trim(addslashes($url_shares));
 
 
 
563
  $title = trim(addslashes($title_shared));
 
 
 
564
 
 
 
 
565
  $share_links = array();
 
 
 
566
  $share_links = array(
567
 
 
 
 
 
568
  "twitter" => array('favicon' => 't.png',
569
+ 'url' => 'http://twitter.com/intent/tweet?text='.urlencode($title).' - '.urlencode($url).' '.urlencode("{blogplay.com}").' ',
570
+ 'title' => "Share on Twitter",
571
 
572
+ 'blank' => '_blank' ),
 
 
 
 
 
 
 
 
 
573
 
 
 
 
574
  "facebook" => array('favicon' => 'f.png',
 
 
 
575
  'url' => 'http://www.facebook.com/share.php?u='.$permalink.'&amp;t='.$title.'',
576
+ 'title' => "Share on Facebook",
577
 
578
+ 'blank' => '_blank' ),
 
 
 
 
 
579
 
 
 
 
580
  "google" => array('favicon' => 'g.png',
 
 
 
581
  'url' => 'https://mail.google.com/mail/?view=cm&fs=1&to&su='.$title.'&body='.$permalink.'&ui=2&tf=1&shva=1',
582
+ 'title' => "Share on Gmail",
583
 
584
+ 'blank' => '_blank' ),
 
 
 
 
 
585
 
 
 
 
586
  "inbound" => array('favicon' => 'inbound.png',
 
 
 
587
  'url' => 'http://inbound.org/?url='.$permalink.'&title='.$title.'',
588
+ 'title' => "Share on inbound.org",
589
 
590
+ 'blank' => '_blank' ),
 
 
 
 
 
591
 
 
 
 
592
  "stumble" => array('favicon' => 's.png',
 
 
 
593
  'url' => 'http://www.stumbleupon.com/submit?url='.$permalink.'&title='.$title.'',
594
+ 'title' => "Share on StumpleUpon",
595
 
596
+ 'blank' => '_blank' ),
 
 
 
 
 
597
 
 
 
 
598
  "delicious" => array('favicon' => 'o.png',
 
 
 
599
  'url' => 'http://delicious.com/post?url='.$permalink.'&amp;title='.$title.'&amp;notes=EXCERPT',
600
+ "title" => "Share on delicious",
601
 
602
+ 'blank' => '_blank' ),
 
 
 
 
 
603
 
 
 
 
604
  "reader" => array('favicon' => 'n.png',
 
 
 
605
  'url' => 'http://www.google.com/reader/link?url='.$permalink.'&amp;title='.$title.'&amp;srcURL='.$permalink.'&amp;srcTitle='.$blogname.'',
606
+ "title" => "Share on Google Reader",
607
 
608
+ 'blank' => '_blank' ),
 
 
 
 
 
609
 
 
 
 
610
  "linkedin" => array('favicon' => 'i.png',
 
 
 
611
  'url' => 'http://www.linkedin.com/shareArticle?mini=true&amp;url='.$permalink.'&amp;title='.$title.'&amp;source='.$blogname.'&amp;summary=EXCERPT',
612
+ "title" => "Share on LinkedIn",
613
 
614
+ 'blank' => '_blank' ),
 
 
 
 
615
 
616
 
617
 
618
+ "pinterest" => array('favicon' => 'pinterest.png',
619
+ 'url' => 'http://pinterest.com/pin/create/button/?url='.$permalink.'',
620
+ "title" => "Share on Pinterest",
621
 
622
+ 'blank' => '_blank' ),
623
 
624
+
625
 
626
+ "favorites" => array('favicon' => 'fv.png',
627
 
628
+ 'url' => 'javascript:AddToFavorites();',
629
 
630
+ 'title' => "Add to favorites - doesn\"t work in Chrome",
631
 
632
+ 'blank' => '_self' )
633
 
634
+
635
 
636
+ );
637
+
638
  $share_buttons = "";
 
 
 
 
 
 
 
639
  foreach($share_links as $link){
640
 
641
+
642
 
643
 
644
 
645
+ $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>";
 
 
 
 
 
646
  }
 
 
 
 
 
 
 
647
  return $share_buttons;
648
 
 
 
649
  }
 
 
 
650
  /*
 
 
 
651
  * Template Tag To Echo The Sociable 2 HTML
 
 
 
652
  */
 
 
 
653
  function do_skyscraper(){
 
 
 
654
  echo skyscraper_html();
 
 
 
655
  }
 
 
 
656
  /*
 
 
 
657
  * Sociable 2 Shortcode
 
 
 
658
  */
 
 
 
659
  function skyscraper_shortcode(){
 
 
 
660
  return skyscraper_html();
 
 
 
661
  }
 
 
 
662
  function auto_skyscraper($content, $admin = false){
 
 
 
663
  global $skyscraper_options;
664
 
 
 
 
 
665
  if ($admin){
 
 
 
666
  $content = skyscraper_html();
 
 
 
667
  return $content;
 
 
 
668
  }
 
 
 
669
 
 
 
 
670
  if( ! isset( $skyscraper_options['active'] )){
 
 
 
671
  $content = "";
 
 
 
672
  return $content;
 
 
 
673
  }
674
 
 
 
 
 
 
 
 
 
 
 
675
 
 
 
 
676
  if( ! isset( $skyscraper_options['locations'] ) || ! is_array( $skyscraper_options['locations'] ) || empty( $skyscraper_options['locations'] ) ){
 
 
 
677
 
 
 
 
678
  $content = "";
 
 
 
679
  } else {
 
 
 
680
 
 
 
 
681
  $locations = $skyscraper_options['locations'];
 
 
 
682
  }
 
 
 
683
  /*
 
 
 
684
  * Determine if we are supposed to be displaying the output here.
 
 
 
685
  */
 
 
 
686
  $display = false;
 
 
 
687
 
 
 
 
688
  /*
 
 
 
689
  * is_single is a unique case it still returning true
 
 
 
690
  */
 
 
 
691
 
 
 
 
692
  //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.
 
 
 
693
  foreach( $locations as $location => $val ){
 
 
 
694
 
 
 
 
695
  //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
 
 
 
696
  if( $location == 'is_single' ){
 
 
 
697
  //If we are not in a post, lets ignore this one for now
 
 
 
 
 
 
 
698
  if( is_single() && get_post_type() == 'post' ){
 
 
 
699
  $display = true;
 
 
 
700
  break;
 
 
 
701
  } else {
 
 
 
702
  continue; // So not to trigger is_single later in this loop, but still be allowed to handle others
 
 
 
703
  }
 
 
 
704
 
 
 
 
705
  } 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.
 
 
 
706
 
 
 
 
707
  //Single Custom Post Type
 
 
 
708
  $post_type = str_replace( 'is_single_posttype_' , '' , $location );
 
 
 
709
  if( is_single() && get_post_type() == $post_type ){
 
 
 
710
  $display = true;
 
 
 
711
  break;
 
 
 
712
  }
 
 
 
713
 
 
 
 
714
  } elseif( strpos( $location , 'is_posttype_archive_' ) === 0 ){
 
 
 
715
 
 
 
 
716
  //Custom Post Type Archive
 
 
 
717
  $post_type = str_replace( 'is_posttype_archive_' , '' , $location );
 
 
 
718
  if( is_post_type_archive( $post_type ) ){
 
 
 
719
  $display = true;
 
 
 
720
  break;
 
 
 
721
  }
 
 
 
722
 
 
 
 
723
  } elseif( strpos( $location , 'is_taxonomy_archive_' ) === 0 ) {
 
 
 
724
 
 
 
 
725
  //Taxonomy Archive
 
 
 
726
  $taxonomy = str_replace( 'is_taxonomy_archive_' , '' , $location );
 
 
 
727
  if( is_tax( $taxonomy ) ){
 
 
 
728
  $display = true;
 
 
 
729
  break;
 
 
 
730
  }
 
 
 
731
 
 
 
 
732
  } elseif( function_exists( $location ) ) {
 
 
 
733
 
 
 
 
734
  //Standard conditional tag, these will return BOOL
 
 
 
735
  if( call_user_func( $location ) === true ){
 
 
 
736
  $display = true;
 
 
 
737
  break;
 
 
 
738
  }
 
 
 
739
 
 
 
 
740
  } else {
 
 
 
741
  continue;
 
 
 
742
  }
 
 
 
743
 
 
 
 
744
 
 
 
 
745
  }
 
 
 
746
 
 
 
 
747
  //If We have passed all the checks and are looking in the right place lets do this thang
 
 
 
748
  if( isset( $skyscraper_options['automatic_mode'] ) && $display === true ){
 
 
 
749
  if (isset($skyscraper_options["topandbottom"])){
 
 
 
750
  $content = skyscraper_html();
 
 
 
751
  }else{
 
 
 
752
  $content = skyscraper_html();
 
 
 
753
  }
 
 
 
754
  }
 
 
 
755
  else{
 
 
 
756
  $content = skyscraper_html();
 
 
 
757
  }
 
 
 
758
 
 
 
 
759
 
 
 
 
760
 
 
 
 
761
  return $content;
 
 
 
762
  }
 
 
 
763
  function get_tweets_username($username_complete){
 
 
 
764
 
 
 
 
765
  if (function_exists('curl_init')) {
 
 
 
766
 
 
 
 
767
  // last tweets
 
 
 
768
  $username = str_replace("@", "", $username_complete);
 
 
 
769
  $url = "https://api.twitter.com/1/statuses/user_timeline/".$username.".json";
 
 
 
770
  $latest = curl_call($url);
 
 
 
771
  $latest_row = parser_twitter_results($latest,0);
 
 
 
772
  update_option( "skyscraper_latest", $latest_row );
 
 
 
773
 
 
 
 
774
  // last mentions
 
 
 
775
  $url = "http://search.twitter.com/search.json?q=@".$username."&rpp=5&include_entities=true&result_type=mixed";
 
 
 
776
  $mentions = curl_call($url);
 
 
 
777
 
 
 
 
778
  if (count($mentions["results"]) > 1){
 
 
 
779
 
 
 
 
780
  $mentions_row = parser_twitter_results($mentions["results"],1);
 
 
 
781
  update_option( "skyscraper_mentions", $mentions_row );
 
 
 
782
  }
 
 
 
783
  }
 
 
 
784
  }
 
 
 
785
  function ago($time){
 
 
 
786
  $periods = array("second", "minute", "hour", "day", "week", "month", "year", "decade");
 
 
 
787
  $lengths = array("60","60","24","7","4.35","12","10");
 
 
 
788
  $now = time();
 
 
 
789
  $difference = $now - $time;
 
 
 
790
  $tense = "ago";
 
 
 
791
  for($j = 0; $difference >= $lengths[$j] && $j < count($lengths)-1; $j++) {
 
 
 
792
  $difference /= $lengths[$j];
 
 
 
793
  }
 
 
 
794
  $difference = round($difference);
 
 
 
795
  if($difference != 1) {
 
 
 
796
  $periods[$j].= "s";
 
 
 
797
  }
 
 
 
798
  return $difference." ".$periods[$j]."ago";
 
 
 
799
  }
 
 
 
800
  function parser_twitter_results($results = array(), $mention){
 
 
 
801
 
 
 
 
802
  $options_latest = array();
 
 
 
803
  $options_latest = array("date" => date("YmdHis"));
 
 
 
804
  global $skyscraper_options;
 
 
 
805
  $i = 0;
 
 
 
806
 
 
 
 
807
  if (is_array($results)){
 
 
 
808
 
 
 
 
809
  foreach($results as $tweet){
 
 
 
810
 
 
 
 
811
  $options_latest[$i] = array();
 
 
 
812
  $options_latest[$i]["text"] = $tweet["text"];
 
 
 
813
  $options_latest[$i]["created_at"] = ago(strtotime($tweet["created_at"]));
 
 
 
814
 
 
 
 
815
  if ($mention){
 
 
 
816
  $options_latest[$i]["name"] = $tweet["from_user_name"];
817
+ }
 
 
 
 
 
 
818
  else{
 
 
 
819
  $options_latest[$i]["name"] = $tweet["user"]["name"];
 
 
 
820
  }
 
 
 
821
 
 
 
 
822
  $i++;
 
 
 
823
  if ($i == $skyscraper_options["num_tweets"]){
 
 
 
824
  break;
 
 
 
825
  }
 
 
 
826
  }
 
 
 
827
  }
 
 
 
828
 
 
 
 
829
  return $options_latest;
 
 
 
830
  }
 
 
 
831
  function curl_call($url){
 
 
 
832
 
 
 
 
833
  $ch = curl_init();
 
 
 
834
  curl_setopt($ch, CURLOPT_URL, $url);
 
 
 
835
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 
 
 
836
  curl_setopt($ch, CURLOPT_TIMEOUT, 3);
 
 
 
837
  curl_setopt($ch, CURLINFO_HEADER_OUT, true);
 
 
 
838
  $output = curl_exec($ch);
 
 
 
839
  $info = curl_getinfo($ch);
 
 
 
840
  curl_close($ch);
 
 
 
841
 
 
 
 
842
  if ($info["http_code"] == "200"){
 
 
 
843
 
 
 
 
844
  $return = json_decode($output,1);
 
 
 
845
  }
 
 
 
846
  else{
 
 
 
847
  $return = false;
 
 
 
848
  }
 
 
 
849
 
 
 
 
850
  return $return;
 
 
 
851
  }
 
 
 
852
  function get_option_tweets($option){
 
 
 
853
 
 
 
 
854
  global $skyscraper_options;
 
 
 
855
  $skyscraper_latest = get_option($option);
 
 
 
856
 
 
 
 
857
  if (empty($skyscraper_latest)){
 
 
 
858
 
 
 
 
859
  get_tweets_username($skyscraper_options["twitter_username"]);
 
 
 
860
  $skyscraper_latest = get_option($option);
 
 
 
861
  }
 
 
 
862
  else{
 
 
 
863
 
 
 
 
864
  // 5 minutes
 
 
 
865
  if (diff_date($skyscraper_latest["date"], date("YmdHis")) > 5){
 
 
 
866
 
 
 
 
867
  get_tweets_username($skyscraper_options["twitter_username"]);
 
 
 
868
  $skyscraper_latest = get_option($option);
 
 
 
869
  }
 
 
 
870
  }
 
 
 
871
 
 
 
 
872
 
 
 
 
873
  return generate_tweets_box_content($skyscraper_latest);
 
 
 
874
  }
 
 
 
875
  function generate_tweets_box_content($tweets){
 
 
 
876
  $content = "";
 
 
 
877
  if (isset($tweets["date"])){
 
 
 
878
  unset($tweets["date"]);
 
 
 
879
  }
 
 
 
880
 
 
 
 
881
 
 
 
 
882
  foreach($tweets as $tweet){
 
 
 
883
 
 
 
 
884
  $tweet["name"] = addslashes($tweet["name"]);
 
 
 
885
  $tweet["text"] = addslashes($tweet["text"]);
 
 
 
886
 
 
 
 
887
  $content .= "['".$tweet["name"]."','".$tweet["name"]."','".$tweet["text"]."','','".$tweet["created_at"]."'],";
 
 
 
888
  }
 
 
 
889
  $content = trim(trim(trim($content), ","));
 
 
 
890
 
 
 
 
891
  return $content;
 
 
 
892
  }
 
 
 
893
  if (!empty($_GET["sky"])){
 
 
 
894
  add_action('wp_ajax_my_action', 'my_action_callback');
 
 
 
895
  function my_action_callback() {
 
 
 
896
  global $wpdb; global $skyscraper_options; // this is how you get access to the database
 
 
 
897
  $whatever = intval( $_POST['whatever'] );
 
 
 
898
  $whatever += 10;
 
 
 
899
  echo $whatever;
 
 
 
900
  die(); // this is required to return a proper result
 
 
 
901
  }
 
 
 
902
  }
 
 
 
903
  ?>
includes/sociable_output.php CHANGED
@@ -5,1982 +5,334 @@
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
-
24
-
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
-
109
-
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
-
193
-
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
-
265
  break;
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
-
632
  }else{
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
-
1817
  }
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
-
1986
  ?>
5
  * The Output And Shortcode Functions For sociable
6
 
7
  */
 
 
 
8
  /*
 
 
9
  * Returns The Sociable Output For The Global $post Object Do Not
 
 
10
  */
 
 
 
11
  function sociable_html( $display = array(),$location = "" ){
 
 
 
12
  global $sociable_options, $wp_query, $post;
 
 
13
  //ra( $sociable_options );
14
 
15
  $sociable_known_sites = get_option( 'sociable_known_sites' );
 
 
 
16
  if( ! $post ){
 
 
 
 
 
 
 
17
  $post = get_post( $post_id = 1 );
 
 
 
 
 
 
 
18
  }
 
 
 
19
  if ( get_post_meta($post->ID,'_sociableoff',true)) {
20
 
21
  return "";
 
 
22
  }
 
 
 
23
  $active_sites = $sociable_options['active_sites'];
 
 
 
24
  // Get The Image Path
 
 
25
  //$imagepath = _get_sociable_image_path();
 
 
 
26
  // if no sites are specified, display all active
 
 
27
  // have to check $active_sites has content because WP
 
 
28
  // won't save an empty array as an option
 
 
 
 
 
 
 
29
  if ( empty($display) && isset( $active_sites ) )
 
 
30
  $display = $active_sites;
 
 
31
  // if no sites are active, display nothing
 
 
 
 
32
  if ( empty($display) )
 
 
33
  return "";
 
 
 
34
  // Load the post's and blog's data
 
 
 
35
  $blogname = urlencode(get_bloginfo('name')." ".get_bloginfo('description'));
 
 
36
  $blogrss = get_bloginfo('rss2_url');
 
 
 
 
37
  // Grab the excerpt, if there is no excerpt, create one
 
 
 
 
 
 
 
38
  $excerpt = urlencode(strip_tags(strip_shortcodes($post->post_excerpt)));
 
 
 
 
 
 
 
39
  if ($excerpt == "") {
 
 
 
 
 
 
 
40
  $excerpt = urlencode(substr(strip_tags(strip_shortcodes($post->post_content)),0,250));
 
 
41
  }
 
 
42
  // Clean the excerpt for use with links
 
 
43
  $excerpt = str_replace('+','%20',$excerpt);
 
 
44
  $permalink = urlencode(get_permalink($post->ID));
 
 
 
 
45
  $permalinkCOUNT = get_permalink($post->ID);
 
 
46
  $title = str_replace('+','%20',urlencode($post->post_title));
 
 
47
  $titleCOUNT = $post->post_title;
 
 
 
48
  $rss = urlencode(get_bloginfo('ref_url'));
 
 
 
49
  // Start preparing the output
50
 
51
  $html = '<!-- Start Sociable --><div class="sociable">';
 
 
 
52
  // If a tagline is set, display it above the links list
 
 
53
  $tagline = isset( $sociable_options['tagline'] ) ? $sociable_options['tagline'] : '' ;
 
 
54
  if ($tagline != '') {
 
 
55
  $html .= '<div class="sociable_tagline">';
56
 
57
  if (isset( $sociable_options['help_grow'] )) {
 
 
 
58
  $addSize = "";
 
 
59
  if ($sociable_options['icon_size'] ==16) $addSize = "font-size:11px;";
 
 
60
  $html .= "<a class='sociable_tagline' target='_blank' href='http://blogplay.com' style='".$addSize."color:#333333;text-decoration:none'>".$tagline."</a>";
 
 
61
  }else{
 
 
62
  $html .= $tagline;
63
 
64
  }
 
 
65
  $html .= "</div>";
 
 
66
  }
 
 
 
67
  /**
68
 
69
  * Start the list of links
 
 
70
  */
 
 
 
71
  $html .= "<ul class='clearfix'>";
 
 
 
72
  $i = 0;
73
 
74
  $totalsites = count($display);
 
 
 
 
 
 
 
75
  $margin = "0px";
 
 
76
  switch ($sociable_options['icon_size']){
77
 
78
  case "16": $margin = "padding-top: 0;margin-top:-2px";
 
 
 
 
 
 
 
79
  break;
 
 
80
  case "32": $margin = "margin-top:9px";
 
 
 
 
 
 
 
81
  break;
 
 
 
 
 
 
 
82
  case "48": $margin = "margin-top:24px";
 
 
 
 
 
 
 
83
  break;
 
 
 
 
 
 
 
84
  case "64": $margin = "margin-top:38px";
 
 
 
 
 
 
 
85
  break;
 
 
 
 
 
 
 
86
  }
 
 
 
 
 
 
 
87
 
 
 
 
 
 
 
 
88
  // print_r($display);
89
 
 
 
 
 
90
  if (isset($display["More"])){
 
 
 
 
 
 
 
91
  unset($display["More"]);
 
 
 
 
 
 
 
92
  array_push($display,"More");
 
 
 
 
 
 
 
93
  $display["More"] = "On";
 
 
 
 
 
 
 
94
  }
 
 
 
 
 
 
 
95
  //print_r($display);
 
 
 
 
 
 
 
96
  foreach($display as $sitename => $val ) {
 
 
 
97
  if ( ! array_key_exists($sitename, $active_sites) || isset($sociable_known_sites[$sitename]["counter"]))
 
 
 
98
  continue;
 
 
99
  $site = $sociable_known_sites[$sitename];
 
 
 
 
 
 
 
100
  $url = ( isset( $site['script'] ) ) ? $site['script'] : $site['url'];
 
 
 
 
 
 
 
101
  $url = str_replace('TITLECOUNT', $titleCOUNT, $url);
 
 
 
 
 
 
 
102
  $url = str_replace('TITLE', $title, $url);
 
 
 
 
 
 
 
103
  $url = str_replace('RSS', $rss, $url);
 
 
 
 
 
 
 
104
  $url = str_replace('BLOGNAME', $blogname, $url);
 
 
 
 
 
 
 
105
  $url = str_replace('EXCERPT', $excerpt, $url);
 
 
 
 
 
 
 
106
  $url = str_replace('FEEDLINK', $blogrss, $url);
 
 
 
 
 
 
 
107
  $url = str_replace('PERMALINKCOUNT', $permalinkCOUNT, $url);
 
 
 
108
  $url = str_replace('PERMALINK', $permalink, $url);
 
 
 
109
  if (isset($site['description']) && $site['description'] != "") {
 
 
 
 
 
 
 
110
  $description = $site['description'];
 
 
 
 
 
 
 
111
  } else {
 
 
 
 
 
 
 
112
  $description = $sitename;
 
 
 
 
 
 
 
113
  }
 
 
 
114
  $link = '<li>';
 
 
 
 
 
 
 
115
  if (!empty($sociable_options["custom_icons"])){
 
 
 
 
 
 
 
116
  $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description );
 
 
 
 
117
  }else{
 
 
 
 
 
 
 
118
  if ($description != "More"){
 
 
 
 
 
 
 
119
  $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description );
 
 
 
 
 
 
 
120
  }else{
 
 
 
 
121
  $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : "<img style='".$margin."' src='".SOCIABLE_HTTP_PATH."images/more.png'>";
 
 
 
122
  }
 
 
 
123
  }
 
 
 
 
 
 
 
124
  $posX = $site["spriteCoordinates"][$sociable_options['icon_size']]["0"];
 
 
 
 
 
 
 
125
  $posY = $site["spriteCoordinates"][$sociable_options['icon_size']]["1"];
 
 
 
 
 
 
 
126
  $backgroundFile = $sociable_options['icon_option']."_".$sociable_options['icon_size'].".png";
 
 
 
 
 
 
 
127
  $style = "background-position:".$posX." ".$posY;
 
 
 
 
 
 
 
128
  $href = $url;
 
 
 
 
 
 
 
129
  $target = isset( $sociable_options['new_window'] ) ? 'target="_blank"' : '' ;
 
 
 
 
 
 
 
130
  if ($sitename == "Add to favorites" || $sitename=="More"){
 
 
 
 
 
 
 
131
  if ($sitename == "More"){
 
 
 
 
 
 
 
132
  $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>' ;
 
 
 
 
 
 
 
133
  }else{
 
 
 
 
 
 
 
134
  $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>' ;
 
 
 
135
  }
 
 
 
136
  }else{
 
 
 
137
  if($sociable_options["icon_option"] == "option6" || !empty($sociable_options["custom_icons"])){
 
 
 
 
 
 
 
138
  $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>' ;
 
 
 
 
 
 
 
139
  }else{
 
 
 
 
 
 
 
140
  if (count(split("Counter",$sitename))>1){
 
 
 
 
 
 
 
141
  $link.= $href;
 
 
 
 
 
 
 
142
  }else{
 
 
 
143
  $link .= '<a title="'.$sitename.'" class="'.$sociable_options['icon_option'].'_'.$sociable_options['icon_size'].'" style="'.$style.'" rel="nofollow" ' . $target . ' href="' . $href . '">' . "" . '</a></li>' ;
 
 
144
  }
 
 
 
 
 
 
 
145
  }
 
 
 
 
 
 
 
146
  }
 
 
 
 
147
  $html .= apply_filters( 'sociable_link' , $link );
 
 
148
  $i++;
149
 
150
  }
 
 
 
 
 
 
 
151
  //return $html;
 
 
 
 
152
  //if ($sociable_options['icon_option'] !="option6"){
 
 
 
 
 
 
 
153
  $inner = "<ul>";
 
 
 
 
 
 
 
154
  foreach ($sociable_known_sites as $sitename => $val){
 
 
 
 
 
 
 
155
  if (array_key_exists($sitename, $display) || isset($sociable_known_sites[$sitename]["counter"]) )
 
 
 
 
 
 
 
156
  continue;
 
 
 
 
 
 
 
157
  $site = $sociable_known_sites[$sitename];
 
 
 
 
 
 
 
158
  $url = ( isset( $site['script'] ) ) ? $site['script'] : $site['url'];
 
 
 
 
 
 
 
159
  $url = str_replace('TITLECOUNT', $titleCOUNT, $url);
 
 
 
160
  $url = str_replace('TITLE', $title, $url);
 
 
 
 
 
 
 
161
  $url = str_replace('RSS', $rss, $url);
 
 
 
 
 
 
 
162
  $url = str_replace('BLOGNAME', $blogname, $url);
 
 
 
 
 
 
 
163
  $url = str_replace('EXCERPT', $excerpt, $url);
 
 
 
 
 
 
 
164
  $url = str_replace('FEEDLINK', $blogrss, $url);
 
 
 
 
 
 
 
165
  $url = str_replace('PERMALINKCOUNT', $permalinkCOUNT, $url);
 
 
 
166
  $url = str_replace('PERMALINK', $permalink, $url);
 
 
167
  $link = '<li style="heigth:'.$sociable_options['icon_size'].'px;width:'.$sociable_options['icon_size'].'px">';
 
 
 
 
 
 
 
168
  if (!empty($sociable_options["custom_icons"])){
 
 
 
 
 
 
 
169
  $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description );
 
 
 
 
 
 
 
170
  }else{
 
 
171
  if (isset($description) && $description!= "More"){
 
 
 
 
 
 
 
172
  $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description );
 
 
 
 
 
 
 
173
  }else{
 
 
 
 
 
 
 
174
  $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : "<img style='".$margin."' src='".SOCIABLE_HTTP_PATH."images/more.png'>";
 
 
 
 
 
 
 
175
  }
 
 
 
 
 
 
 
176
  }
 
 
 
177
  $posX = $site["spriteCoordinates"][$sociable_options['icon_size']]["0"];
 
 
 
 
 
 
 
178
  $posY = $site["spriteCoordinates"][$sociable_options['icon_size']]["1"];
 
 
 
 
 
 
 
179
  $backgroundFile = $sociable_options['icon_option']."_".$sociable_options['icon_size'].".png";
 
 
 
 
 
 
 
180
  $style = "background-position:".$posX." ".$posY;
 
 
 
 
 
 
 
181
  $href = $url;
 
 
 
 
 
 
 
182
  $target = isset( $sociable_options['new_window'] ) ? 'target="_blank"' : '' ;
 
 
 
 
 
 
 
183
  if ($sitename == "Add to favorites" || $sitename=="More"){
 
 
 
 
 
 
 
184
  if ($sitename == "More"){
 
 
 
 
 
 
 
185
  $link .= '<a style="cursor:poainter" rel="nofollow" onMouseOver="more(this,\'post'.$location.'-' . $post->ID . '\')">' . $linkitem . '</a></li>' ;
 
 
 
 
 
 
 
186
  }else{
 
 
 
 
 
 
 
187
  $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>' ;
 
 
 
 
 
 
 
188
  }
 
 
 
 
 
 
 
189
  }else{
 
 
 
 
 
 
 
190
  if($sociable_options["icon_option"] == "option6" || !empty($sociable_options["custom_icons"])){
 
 
 
 
 
 
 
191
  $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>' ;
 
 
 
 
 
 
 
192
  }else{
 
 
 
 
 
 
 
193
  $link .= '<a title="'.$sitename.'" class="'.$sociable_options['icon_option'].'_'.$sociable_options['icon_size'].'" style="'.$style.'" rel="nofollow" ' . $target . ' href="' . $href . '">' . "" . '</a></li>' ;
 
 
 
 
 
 
 
194
  }
 
 
 
 
 
 
 
195
  }
 
 
 
196
  $inner .= apply_filters( 'sociable_link' , $link );
 
 
 
197
  $i++;
 
 
198
  }
 
 
199
  $inner .="</ul>";
 
 
200
  $html .='</ul><div onMouseout="fixOnMouseOut(this,event,\'post'.$location.'-'.$post->ID.'\')" id="sociable-post'.$location.'-'.$post->ID.'" style="display:none;">
 
 
 
 
 
 
 
201
  <div style="top: auto; left: auto; display: block;" id="sociable">
202
 
 
 
 
 
 
 
203
  <div class="popup">
 
 
 
 
 
 
 
204
  <div class="content">
 
 
 
 
 
 
 
205
  '.$inner.'
 
 
 
 
 
 
 
206
  </div>
 
 
 
 
 
 
 
207
  <a style="cursor:pointer" onclick="hide_sociable(\'post'.$location.'-'.$post->ID.'\',true)" class="close">
 
 
 
208
  <img onclick="hide_sociable(\'post'.$location.'-'.$post->ID.'\',true)" title="close" src="'.SOCIABLE_HTTP_PATH . 'images/closelabel.png">
 
 
 
 
 
 
 
209
  </a>
 
 
 
 
 
 
 
210
  </div>
 
 
 
 
 
 
 
211
  </div>
 
 
 
 
 
 
 
212
  </div>HereGoCounters</div><!-- End Sociable -->';
 
 
 
 
 
 
 
213
  //$margin =
 
 
 
 
 
 
 
214
  //$html .= "<li class='sociablelast' style='".$margin."'><img src='".SOCIABLE_HTTP_PATH."images/more.jpg'></li></ul><div class='soc_clear'></div></div>";
 
 
 
 
 
 
 
215
  //}
 
 
 
 
 
 
 
216
  //return "";
 
 
 
 
 
 
 
217
  $counters ="";
 
 
 
 
 
 
 
218
  /*if ($location == "bottom" && (is_single() || is_admin())){ */
 
 
219
  $counters = "</div><div class='sociable' style='float:none'><ul class='clearfix'>";
 
 
220
  foreach ($display as $sitename => $val){
 
 
221
  //echo $sitename."<br>";
 
 
 
 
 
 
 
222
  if (!array_key_exists($sitename, $display) || !isset($sociable_known_sites[$sitename]["counter"]) )
 
 
 
 
 
 
 
223
  continue;
 
 
 
224
  //echo $sitename."<br>";
 
 
 
 
 
 
 
225
  $link = '<li id="'.str_replace("+","p",str_replace(" ","_",$sitename)).'">';
 
 
 
226
  $site = $sociable_known_sites[$sitename];
 
 
 
 
 
 
 
227
  $url = ( isset( $site['script'] ) ) ? $site['script'] : $site['url'];
 
 
 
 
 
 
 
228
  $url = str_replace('TITLECOUNT', $titleCOUNT, $url);
 
 
 
229
  $url = str_replace('TITLE', $title, $url);
 
 
 
 
 
 
 
230
  $url = str_replace('RSS', $rss, $url);
 
 
 
 
 
 
 
231
  $url = str_replace('BLOGNAME', $blogname, $url);
 
 
 
 
 
 
 
232
  $url = str_replace('EXCERPT', $excerpt, $url);
 
 
 
 
 
 
 
233
  $url = str_replace('FEEDLINK', $blogrss, $url);
 
 
 
234
  $url = str_replace('PERMALINKCOUNT', $permalinkCOUNT, $url);
 
 
 
 
 
 
 
235
  $url = str_replace('PERMALINK', $permalink, $url);
 
 
 
 
236
  $link.= $url."</li>";
 
 
 
 
 
 
 
237
  $counters .= apply_filters( 'sociable_link' , $link );
 
 
 
 
 
 
 
238
  }
 
 
 
 
 
 
 
239
  $counters .="</ul>";
 
 
 
 
 
 
 
240
  $html = str_replace("HereGoCounters",$counters,$html);
 
 
 
241
  /*}else{
 
 
 
 
 
 
 
242
  $html = str_replace("HereGoCounters",$counters,$html);
 
 
 
 
 
 
 
243
  }*/
 
 
 
 
244
  return $html;
 
 
245
  }
 
 
 
246
  /*
 
 
 
 
 
 
 
247
  * Template Tag To Echo The Sociable 2 HTML
 
 
 
 
 
 
 
248
  */
 
 
 
 
 
 
 
249
  function do_sociable(){
 
 
 
 
 
 
 
250
  echo sociable_html();
 
 
 
 
 
 
 
251
  }
 
 
 
252
  /*
 
 
 
 
 
 
 
253
  * Hook For the_content to automatically output the sociable HTML If The Option To Disable Has Not Been Unchecked
 
 
 
 
 
 
 
254
  */
 
 
 
 
 
 
 
255
  function auto_sociable( $content ){
 
 
 
 
 
 
 
256
  global $sociable_options;
 
 
 
257
  if (!isset($sociable_options["active"])){
 
 
258
  return $content;
 
 
 
 
 
 
 
259
  }
 
 
 
 
260
  if( ! isset( $sociable_options['locations'] ) || ! is_array( $sociable_options['locations'] ) || empty( $sociable_options['locations'] ) ){
 
 
 
 
 
 
 
261
  return $content;
 
 
 
 
 
 
 
262
  } else {
 
 
 
 
 
 
 
263
  $locations = $sociable_options['locations'];
 
 
 
 
 
 
 
264
  }
 
 
 
265
  /*
 
 
 
266
  * Determine if we are supposed to be displaying the output here.
 
 
 
267
  */
 
 
 
 
 
 
 
268
  $display = false;
269
 
270
  /*
 
 
 
 
 
 
 
271
  * is_single is a unique case it still returning true
 
 
 
 
 
 
 
272
  */
 
 
 
 
273
  //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.
 
 
 
 
 
 
 
274
  foreach( $locations as $location => $val ){
 
 
 
275
  //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
 
 
 
 
 
 
 
276
  if( $location == 'is_single' ){
 
 
 
 
 
 
 
277
  //If we are not in a post, lets ignore this one for now
 
 
 
 
 
 
 
278
  if( is_single() && get_post_type() == 'post' ){
 
 
 
 
 
 
 
279
  $display = true;
 
 
 
 
 
 
 
280
  break;
 
 
 
 
 
 
 
281
  } else {
 
 
 
 
 
 
 
282
  continue; // So not to trigger is_single later in this loop, but still be allowed to handle others
 
 
 
 
 
 
 
283
  }
 
 
 
 
284
  } 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.
 
 
 
 
285
  //Single Custom Post Type
 
 
 
 
 
 
 
286
  $post_type = str_replace( 'is_single_posttype_' , '' , $location );
 
 
 
 
 
 
 
287
  if( is_single() && get_post_type() == $post_type ){
 
 
 
 
 
 
 
288
  $display = true;
 
 
 
 
 
 
 
289
  break;
290
+ }
 
 
 
 
 
 
 
 
 
 
291
  } elseif( strpos( $location , 'is_posttype_archive_' ) === 0 ){
 
 
 
 
292
  //Custom Post Type Archive
 
 
 
 
 
 
 
293
  $post_type = str_replace( 'is_posttype_archive_' , '' , $location );
 
 
 
 
 
 
 
294
  if( is_post_type_archive( $post_type ) ){
 
 
 
 
 
 
 
295
  $display = true;
 
 
 
 
 
 
 
296
  break;
 
 
 
 
 
 
 
297
  }
 
 
 
298
  } elseif( strpos( $location , 'is_taxonomy_archive_' ) === 0 ) {
 
 
299
  //Taxonomy Archive
 
 
 
 
 
 
 
300
  $taxonomy = str_replace( 'is_taxonomy_archive_' , '' , $location );
 
 
 
 
 
 
 
301
  if( is_tax( $taxonomy ) ){
 
 
 
 
 
 
 
302
  $display = true;
 
 
 
 
 
 
 
303
  break;
 
 
 
 
 
 
 
304
  }
 
 
 
305
  } elseif( function_exists( $location ) ) {
 
 
 
 
306
  //Standard conditional tag, these will return BOOL
 
 
 
 
 
 
 
307
  if( call_user_func( $location ) === true ){
 
 
 
 
 
 
 
308
  $display = true;
 
 
 
 
 
 
 
309
  break;
 
 
 
 
 
 
 
310
  }
311
 
 
 
 
 
312
  } else {
 
 
 
 
 
 
 
313
  continue;
 
 
 
 
 
 
 
314
  }
 
 
 
 
315
  }
 
 
316
  //If We have passed all the checks and are looking in the right place lets do this thang
 
 
 
 
 
 
 
317
  if( isset( $sociable_options['automatic_mode'] ) && $display === true ){
 
 
 
 
 
 
 
318
  if (isset($sociable_options["topandbottom"])){
 
 
 
 
 
 
 
319
  $content = sociable_html(array(),"top").$content . sociable_html(array(),"bottom");
 
 
 
 
 
 
 
320
  }else{
 
 
 
 
 
 
 
321
  $content = "".$content . sociable_html(array());
 
 
 
 
 
 
 
322
  }
 
 
 
 
 
 
 
323
  }
324
 
 
 
 
 
325
  return $content;
 
 
 
 
 
 
 
326
  }
 
 
 
327
  /*
 
 
 
 
 
 
 
328
  * Sociable 2 Shortcode
 
 
 
 
 
 
 
329
  */
 
 
 
 
 
 
 
330
  function sociable_shortcode(){
 
 
331
  return sociable_html();
332
 
333
  }
 
 
 
 
 
 
 
334
  function add_googleplus() {
 
 
 
335
  //echo'<script type="text/javascript" src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>';
 
 
 
 
 
 
 
336
  }
 
 
 
 
 
 
 
337
  //add_action('wp_head', 'add_googleplus' );
 
 
 
 
 
 
 
338
  ?>
readme.txt CHANGED
@@ -10,21 +10,12 @@ Requires at least: 2.6
10
 
11
  Tested up to: 3.3.1
12
 
13
- Stable tag: 4.2.4
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
- Sociable continues being the leader in the sharing space of WordPress plugins. Started more than 2 years ago, and with over 1,5mm downloads.
22
-
23
 
 
24
 
25
  == Description ==
26
 
27
-
28
  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.
@@ -40,1641 +31,561 @@ You can get even more Sociable with Sociable Skyscraper and: Rating and Review o
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
-
45
  = About Sociable Classic =
46
 
47
  As you know, we've recently improved our visual interface. The default icons are now much more appealing, and a tad bit larger (you want your readers to share your posts, don't you?)
48
 
49
  Enjoy it now!
50
-
51
  Be Sociable, Share!
52
 
53
-
54
-
55
-
56
-
57
  [vimeo http://vimeo.com/31023294]
58
-
59
-
60
-
61
-
62
-
63
  [vimeo http://vimeo.com/31023684]
64
 
65
-
66
-
67
-
68
-
69
  Have technical support issues? Please leave them in the forum: http://wordpress.org/tags/sociable?forum_id=10
70
 
71
-
72
-
73
  Also use the forum for ideas, feedback, suggestions. We'll try to check the forum every day.
 
 
74
 
 
 
75
 
 
76
 
 
77
 
 
 
78
 
 
79
 
 
 
80
 
81
- What happened to the old icons? You can still use them in the new version, but they're not the default style anymore.
82
 
 
83
 
 
84
 
 
85
 
 
86
 
 
87
 
 
88
 
89
- Sociable finds its home outside of the WordPress environment on Blogplay.com-
90
 
 
91
 
 
92
 
 
93
 
 
94
 
 
 
95
 
 
96
 
97
- *** Sociable 4.2.4 ***
98
 
 
 
99
 
 
100
 
 
101
 
 
102
 
 
103
 
 
 
104
 
 
105
 
 
106
 
107
- = Recent Updates =
108
 
109
- * Add inbound.org share icon
110
 
 
111
 
112
- * Changed the old motto "share and enjoy" for "Be Sociable, Share" much more attractive. Of course you can customize it to whatever you want.
113
 
 
114
 
 
 
115
 
116
- * Complete re-write to increase efficiency and speed of the plugin
 
117
 
 
118
 
 
119
 
120
- * New Sociable Skyscraper version, the ultimate advanced packed plugin for setting up rating system on your WordPress blog. Sociable Skyscraper allows you to set up pages and comments with great degree of customization.
121
 
 
122
 
 
 
 
 
 
 
 
 
123
 
 
124
 
 
125
 
126
- = Recently Added Sites =
127
 
 
128
 
 
129
 
130
- * Posterous
131
 
 
132
 
 
133
 
134
- * Sphinn
135
 
 
136
 
 
 
137
 
138
- * Tumblr
 
139
 
 
 
140
 
 
 
141
 
142
- * G+
 
143
 
 
144
 
 
 
145
 
146
- * LinkedIN
 
147
 
 
 
148
 
 
149
 
150
- * Inbound
151
 
 
 
152
 
 
153
 
154
- = Recently Deleted Sites =
155
 
 
 
156
 
 
157
 
158
- * Mixx.com, recently acquired, doesn't support share functions anymore
159
 
 
 
160
 
 
161
 
162
- * Netvibes stopped sharing
163
 
 
164
 
 
165
 
166
- * Slashdot: New bookmark creation is no longer supported
 
167
 
 
168
 
 
169
 
170
- * And we deleted a bunch of others that were really not used that much
171
 
 
172
 
 
 
173
 
 
 
174
 
 
 
175
 
 
176
 
 
177
 
178
- = Special Thanks =
 
179
 
 
 
180
 
 
 
181
 
182
- Sociable plugin wouldn't be what it is today if it weren't for these people that helped us along the way:
 
183
 
 
 
184
 
 
185
 
186
- * Thanks to [WPzoom](http://http://www.wpzoom.com/wpzoom/500-free-icons-wpzoom-social-networking-icon-set/) for letting us to use their awesome icons
 
187
 
 
188
 
 
 
189
 
190
- * Also special thanks to [Webtreats etc](http://http://webtreats.mysitemyway.com/) for allowing us to use their great icons
 
191
 
 
192
 
 
193
 
 
194
 
 
195
 
 
 
196
 
 
197
 
198
- == Screenshots ==
199
 
 
200
 
 
201
 
202
- 1. The Sociable backend, easily select sites and drag & drop to change the order of appearance.
203
 
 
 
204
 
 
 
205
 
206
- 2. Sociable with its new default styling.
207
 
 
 
208
 
 
 
209
 
210
- 3. Pick the style you want
 
211
 
 
 
212
 
 
213
 
214
- 4. Or you can pick your own style
215
 
 
216
 
 
217
 
218
- 5. Select which plugin want to customize
219
 
 
220
 
 
221
 
 
222
 
 
223
 
 
224
 
 
225
 
226
- == Installation ==
227
 
 
228
 
 
229
 
230
- 1. Upload the extracted archive to `wp-content/plugins/`
231
 
 
232
 
 
233
 
234
- 2. Activate the plugin through the 'Plugins' menu
235
 
 
236
 
 
237
 
238
- 3. Open the plugin settings page Settings -> Sociable
239
 
 
240
 
 
241
 
242
- 4. Adjust settings to your liking
243
 
 
244
 
 
245
 
246
- 4. Enjoy!
247
 
 
248
 
 
249
 
 
250
 
 
251
 
 
252
 
 
253
 
 
254
 
 
255
 
 
256
 
 
257
 
 
258
 
 
259
 
 
260
 
 
261
 
 
262
 
 
263
 
 
 
264
 
 
 
265
 
 
266
 
 
267
 
 
268
 
 
 
269
 
270
- == Frequently Asked Questions ==
271
-
272
-
273
-
274
- = What happened to the old icons? =
275
-
276
-
277
-
278
- You can still use them. It's just they're not the default anymore.
279
-
280
-
281
-
282
-
283
-
284
-
285
-
286
- = I want to reach you, but not for a technical question =
287
-
288
-
289
-
290
- Please send us an email to sociableblogplay [ at ] gmail.com
291
-
292
-
293
-
294
-
295
-
296
-
297
-
298
- == Changelog ==
299
-
300
- = 4.2.4 =
301
-
302
- * Privacy options
303
-
304
- = 4.2.3 =
305
-
306
-
307
- * Pinterest
308
- * Tags
309
-
310
-
311
- = 4.2.2 =
312
-
313
-
314
- * Social Banner and settings
315
- * Inbound icon
316
- * FIXED: Some Fixes
317
-
318
-
319
- = 4.2.1 =
320
-
321
-
322
-
323
- * FIXED: Some Fixes
324
-
325
-
326
-
327
- = 4.2.0 =
328
-
329
-
330
-
331
- * FIXED: Some Fixes
332
-
333
-
334
-
335
- = 4.1.9 =
336
-
337
-
338
-
339
- * FIXED: Some Fixes
340
-
341
-
342
-
343
- = 4.1.8 =
344
-
345
-
346
-
347
- * FIXED: Some Fixes
348
-
349
-
350
-
351
- = 4.1.7 =
352
-
353
-
354
-
355
- * FIXED: Some Fixes
356
-
357
-
358
-
359
- = 4.1.6 =
360
-
361
-
362
-
363
- * FIXED: Some Fixes
364
-
365
-
366
-
367
-
368
-
369
- = 4.1.5 =
370
-
371
-
372
-
373
- * FIXED: Some Fixes
374
-
375
-
376
-
377
-
378
-
379
-
380
-
381
- = 4.1.4 =
382
-
383
-
384
-
385
- * FIXED: Some Fixes
386
-
387
-
388
-
389
-
390
-
391
-
392
-
393
- = 4.1.3 =
394
-
395
-
396
-
397
- * FIXED: Some Fixes
398
-
399
-
400
-
401
-
402
-
403
-
404
-
405
- = 4.1.2 =
406
-
407
-
408
-
409
- * FIXED: Google plus problem
410
-
411
-
412
-
413
-
414
-
415
-
416
-
417
- = 4.1.1 =
418
-
419
-
420
-
421
- * ADDED: Facebook Like Counter, Twitter Counter, Google Plus Counter, Linkedin Counter,StumbleUpon Counter and Digg Counter
422
-
423
-
424
-
425
- * ADDED: Add Sociable at Top and Bottom of the post
426
-
427
-
428
-
429
-
430
-
431
-
432
-
433
- = 4.0.6 =
434
-
435
-
436
-
437
- * FIXED: Allow Sub Directory Blogs (http://domain.com/blog)
438
-
439
-
440
-
441
-
442
-
443
-
444
-
445
- = 4.0.5 =
446
-
447
-
448
-
449
- * FIXED: Other Upgrade issues
450
-
451
-
452
-
453
-
454
-
455
-
456
-
457
- = 4.0.4 =
458
-
459
-
460
-
461
- * FIXED: Upgrade issues
462
-
463
-
464
-
465
-
466
-
467
-
468
-
469
-
470
-
471
-
472
-
473
- = 4.0.3 =
474
-
475
-
476
-
477
- * Fix IIS 6.0 and PHP 5.3.x
478
-
479
-
480
-
481
-
482
-
483
-
484
-
485
- = 4.0.1 =
486
-
487
-
488
-
489
- * Changed the old motto "share and enjoy" for "Be Sociable, Share" much more attractive. Of cours you can customize it to whatever you want.
490
-
491
-
492
-
493
- * Complete re-write to increase efficiency and speed of the plugin
494
-
495
-
496
-
497
- * Updated it for up to Wordpress version 3.2.1
498
-
499
-
500
-
501
-
502
-
503
-
504
-
505
- = 3.5.2 =
506
-
507
-
508
-
509
- * Added new services MOB, ??, ????, QQ??, LaTafanera, SheToldMe, viadeo FR, Diggita, Design Float
510
-
511
-
512
-
513
- * Removed ID properties from sociable anchor tags (share links)
514
-
515
-
516
-
517
- * FIXED: Having a custom image directory now disables sprite usage, and the icons of services are displayed on sociable configuration page.
518
-
519
-
520
-
521
-
522
-
523
-
524
-
525
- = 3.5.1 =
526
-
527
-
528
-
529
- * Fixed the xhtml validation issues
530
-
531
-
532
-
533
- * 'target=blank' (open link in new window) issue solved
534
-
535
-
536
-
537
- * Sprites can now be disabled, allowing for custom icons
538
-
539
-
540
-
541
- * Sprites have been disabled for RSS
542
-
543
-
544
-
545
- * You can now deactivate the blogplay widget from your wordpress dashboard
546
-
547
-
548
-
549
-
550
-
551
-
552
-
553
- = 3.5.0 =
554
-
555
-
556
-
557
- * The icons now load in a CSS Sprites, allowing for faster download times.
558
-
559
-
560
-
561
- * These services have been discontinued: BlogMeme FR, BlogMeme SP, co.mments, DesignFloat.com, PPNow.net, Symbaloo.com.
562
-
563
-
564
-
565
- * You can now add links to your browser favorites.
566
-
567
-
568
-
569
- * iFrames added for services that support them.
570
-
571
-
572
-
573
- * You can know unselect the transparency effect on the sociable icons.
574
-
575
-
576
-
577
-
578
-
579
-
580
-
581
- = 3.4.4 =
582
-
583
-
584
-
585
- * Another fix for the sociableoff dilemma's, no backwards compatibility unfortunately, so disable sociable again on pages where you want to disable it.
586
-
587
-
588
-
589
-
590
-
591
-
592
-
593
- = 3.4.3 =
594
-
595
-
596
-
597
- * Fixed the bug mentioned [here](http://wordpress.org/support/topic/288487) and [here](http://wordpress.org/support/topic/290753) that made it impossible to disable Sociable on a per post/page basis (for real, now).
598
-
599
-
600
-
601
-
602
-
603
-
604
-
605
- = 3.4.2 =
606
-
607
-
608
-
609
- * Added a site specific id to each links anchor tag.
610
-
611
-
612
-
613
- * Fixed the bug mentioned [here](http://wordpress.org/support/topic/288487) and [here](http://wordpress.org/support/topic/290753) that made it impossible to disable Sociable on a per post/page basis.
614
-
615
-
616
-
617
- * "Reintroduced" TwitThis as Twitter.
618
-
619
-
620
-
621
-
622
-
623
-
624
-
625
- = 3.4.1 =
626
-
627
-
628
-
629
- * Fixed the Sphinn submit link.
630
-
631
-
632
-
633
-
634
-
635
-
636
-
637
- = 3.4 =
638
-
639
-
640
-
641
- * Added the option to add a site to Sociable through a filter, read [How to add a site to Sociable](http://yoast.com/add-sites-to-sociable/).
642
-
643
-
644
-
645
-
646
-
647
-
648
-
649
- = 3.3.8 =
650
-
651
-
652
-
653
- * Fixed the option to disable Sociable on a per post / page basis.
654
-
655
-
656
-
657
-
658
-
659
-
660
-
661
- = 3.3.7 =
662
-
663
-
664
-
665
- * More bugfixery.
666
-
667
-
668
-
669
-
670
-
671
-
672
-
673
- = 3.3.6 =
674
-
675
-
676
-
677
- * Reverted plugin URL fix because of too many people on old WordPress installations complaining. (Upgrade, people, upgrade!)
678
-
679
-
680
-
681
- * Added PHPDoc throughout the plugins code.
682
-
683
-
684
-
685
-
686
-
687
-
688
-
689
- = 3.3.5 =
690
-
691
-
692
-
693
- * Added a Hyves button.
694
-
695
-
696
-
697
- * Fixed MSN Reporter button.
698
-
699
-
700
-
701
-
702
-
703
-
704
-
705
- = 3.3.4 =
706
-
707
-
708
-
709
- * Fixed RSS.
710
-
711
-
712
-
713
-
714
-
715
-
716
-
717
- = 3.3.3 =
718
-
719
-
720
-
721
- * Brought back Tumblr
722
-
723
-
724
-
725
- * Updated PDF link
726
-
727
-
728
-
729
- * Added Posterous
730
-
731
-
732
-
733
- * Smushed all images using [Smush.it](http://smush.it/), reducing the total image file size with 31.72 KB (42.03%)!
734
-
735
-
736
-
737
- * Removed pre - 2.6 compatibility code
738
-
739
-
740
-
741
-
742
-
743
-
744
-
745
- = 3.3.1 =
746
-
747
-
748
-
749
- * Added new option to use pure text links, instead of image links.
750
-
751
-
752
-
753
- * Fixed small issue with using target=blank links and the new awe.sm options.
754
-
755
-
756
-
757
- * Allowed for usage without an awe.sm API key, as awe.sm falls back to "default" awe.sm shortlinks.
758
-
759
-
760
-
761
- * Code cleanup for more efficiency in the backend on saving options.
762
-
763
-
764
-
765
- * General code cleanup.
766
-
767
-
768
-
769
- * Moved to the new default Changelog markup.
770
-
771
-
772
-
773
-
774
-
775
-
776
-
777
- = 3.3 =
778
-
779
-
780
-
781
- * Added awe.sm integration and some sites.
782
-
783
-
784
-
785
-
786
-
787
-
788
-
789
- = 3.2.3 =
790
-
791
-
792
-
793
- * Removed the last bit of non jQuery javascript.
794
-
795
-
796
-
797
- * Improved styling and visual feedback when selecting a site.
798
-
799
-
800
-
801
-
802
-
803
-
804
-
805
- = 3.2.2 =
806
-
807
-
808
-
809
- * Moved style loading to admin_print_styles and scripts to admin_print_scripts.
810
-
811
-
812
-
813
-
814
-
815
-
816
-
817
- = 3.2.1 =
818
-
819
-
820
-
821
- * Fixed a bug with printing styles in 2.8 beta.
822
-
823
-
824
-
825
-
826
-
827
-
828
-
829
- = 3.2 =
830
-
831
-
832
-
833
- This is a MAJOR update to Sociable. Major Thanks to Jean-Paul of [iPhoneclub](http://www.iphoneclub.nl/) for all his work in looking up all the sites. The full list of changes:
834
-
835
-
836
-
837
-
838
-
839
-
840
-
841
- * Restored sociable-admin.js, as it got accidentally removed.
842
-
843
-
844
-
845
- * Added `class="sociablefirst"` to the first site in the list and `class="sociablelast"` to the last one.
846
-
847
-
848
-
849
- * Added:
850
-
851
-
852
-
853
- * An RSS button, which links to your sites RSS feed
854
-
855
-
856
-
857
- * Printfriendly.com for both printing and creating a PDF, replacing the original "Print" function, which didn't work from RSS
858
-
859
-
860
-
861
- * Current
862
-
863
-
864
-
865
- * FriendFeed
866
-
867
-
868
-
869
- * MSN Reporter.nl
870
-
871
-
872
-
873
- * FS Daily
874
-
875
-
876
-
877
- * Hello TXT
878
-
879
-
880
-
881
- * Removed the following sites that were no longer working or active:
882
-
883
-
884
-
885
- * BlinkBits
886
-
887
-
888
-
889
- * Blogmemes.cn, .net, .jp
890
-
891
-
892
-
893
- * Blogsvine
894
-
895
-
896
-
897
- * Book.mark.hu
898
-
899
-
900
-
901
- * Bumpzee
902
-
903
-
904
-
905
- * Del.irio.us
906
-
907
-
908
-
909
- * Feed Me Links
910
-
911
-
912
-
913
- * Furl (replaced by Diigo)
914
-
915
-
916
-
917
- * GeenRedactie
918
-
919
-
920
-
921
- * Kick.ie
922
-
923
-
924
-
925
- * Leonaut
926
-
927
-
928
-
929
- * Magnolia
930
-
931
-
932
-
933
- * Plug IM
934
-
935
-
936
-
937
- * Pownce
938
-
939
-
940
-
941
- * Salesmarks
942
-
943
-
944
-
945
- * Scuttle
946
-
947
-
948
-
949
- * Shadows
950
-
951
-
952
-
953
- * Smarking
954
-
955
-
956
-
957
- * Spurl
958
-
959
-
960
-
961
- * Taggly
962
-
963
-
964
-
965
- * Tailrank
966
-
967
-
968
-
969
- * Tumblr (due to the change to a POST API, which we, unfortunately, can't support with Sociable)
970
-
971
-
972
-
973
- * Updated the following sites to include the excerpt when submitting:
974
-
975
-
976
-
977
- * Connotea
978
-
979
-
980
-
981
- * Delicious
982
-
983
-
984
-
985
- * Digg
986
-
987
-
988
-
989
- * Ekudos
990
-
991
-
992
-
993
- * Google Bookmarks
994
-
995
-
996
-
997
- * NuJij
998
-
999
-
1000
-
1001
- * Ping.fm
1002
-
1003
-
1004
-
1005
- * Otherwise updated:
1006
-
1007
-
1008
-
1009
- * Google Bookmarks (new icon)
1010
-
1011
-
1012
-
1013
- * Fleck (New URL)
1014
-
1015
-
1016
-
1017
- * Rec6 (new URL)
1018
-
1019
-
1020
-
1021
-
1022
-
1023
-
1024
-
1025
- = 3.1.1 =
1026
-
1027
-
1028
-
1029
- * Fixed bug with stylesheet introduced in 3.1.
1030
-
1031
-
1032
-
1033
-
1034
-
1035
-
1036
-
1037
- = 3.1 =
1038
-
1039
-
1040
-
1041
- * Converted all images to PNG.
1042
-
1043
-
1044
-
1045
- * Cleaned up usage of javascript in the backend and switched to the jquery library that comes with WordPress.
1046
-
1047
-
1048
-
1049
- * Allowed for usage of an external image directory.
1050
-
1051
-
1052
-
1053
- * Removed pre 2.6 compatibility fixes.
1054
-
1055
-
1056
-
1057
-
1058
-
1059
-
1060
-
1061
- = 3.0.6 =
1062
-
1063
-
1064
-
1065
- * Fixed xhtml bug in Netvibes integration.
1066
-
1067
-
1068
-
1069
- * Added Bitacoras.
1070
-
1071
-
1072
-
1073
-
1074
-
1075
-
1076
-
1077
- = 3.0.5 =
1078
-
1079
-
1080
-
1081
- * Added Identi.ca.
1082
-
1083
-
1084
-
1085
- * Fixed a bug in Yoast Posts widget.
1086
-
1087
-
1088
-
1089
-
1090
-
1091
-
1092
-
1093
- = 3.0.4 =
1094
-
1095
-
1096
-
1097
- * Added Netvibes.
1098
-
1099
-
1100
-
1101
-
1102
-
1103
-
1104
-
1105
- = 3.0.3 =
1106
-
1107
-
1108
-
1109
- * Security enhancements, thx to Mark Jaquith.
1110
-
1111
-
1112
-
1113
-
1114
-
1115
-
1116
-
1117
- = 3.0.2 =
1118
-
1119
-
1120
-
1121
- * Fixed CSS bug introduced in 3.0.
1122
-
1123
-
1124
-
1125
-
1126
-
1127
-
1128
-
1129
- = 3.0.1 =
1130
-
1131
-
1132
-
1133
- * Removed some other, now obsolete, code, reducing the code size by another 4KB.
1134
-
1135
-
1136
-
1137
-
1138
-
1139
-
1140
-
1141
- = 3.0 =
1142
-
1143
-
1144
-
1145
- * Fixed IE bug in admin.
1146
-
1147
-
1148
-
1149
- * Cleaned up Admin Area and changed support messages.
1150
-
1151
-
1152
-
1153
- * Removed directory checking for all images (speeds up incredibly).
1154
-
1155
-
1156
-
1157
- * Made display: inline !important to prevent vertical icon display.
1158
-
1159
-
1160
-
1161
- * Updated Wykop icon.
1162
-
1163
-
1164
-
1165
-
1166
-
1167
-
1168
-
1169
- = 2.9.15 =
1170
-
1171
-
1172
-
1173
- * Added a fallback for strip_shortcodes to maintain backwards compatibility with WordPress 2.3 and below.
1174
-
1175
-
1176
-
1177
-
1178
-
1179
-
1180
-
1181
- = 2.9.14 =
1182
-
1183
-
1184
-
1185
- * Made sure there are no tags or shortcodes in the excerpt.
1186
-
1187
-
1188
-
1189
- * Added ping.fm.
1190
-
1191
-
1192
-
1193
- * Removed indiagram (shut down).
1194
-
1195
-
1196
-
1197
-
1198
-
1199
-
1200
-
1201
- = 2.9.13 =
1202
-
1203
-
1204
-
1205
- * Changed Facebook link from sharer.php (meant for a popup window) to share.php (which has the actual menu on it etc.).
1206
-
1207
-
1208
-
1209
-
1210
-
1211
-
1212
-
1213
- = 2.9.12 =
1214
-
1215
-
1216
-
1217
- * Added Tip'd.
1218
-
1219
-
1220
-
1221
-
1222
-
1223
-
1224
-
1225
- = 2.9.11 =
1226
-
1227
-
1228
-
1229
- * Added settings link and Ozh admin menu icon.
1230
-
1231
-
1232
-
1233
-
1234
-
1235
-
1236
-
1237
- = 2.9.10 =
1238
-
1239
-
1240
-
1241
- * Fixes issue with excerpt not being urlencoded.
1242
-
1243
-
1244
-
1245
-
1246
-
1247
-
1248
-
1249
- = 2.9.9 =
1250
-
1251
-
1252
-
1253
- * Fixes for custom fields issues.
1254
-
1255
-
1256
-
1257
-
1258
-
1259
-
1260
-
1261
- = 2.9.8 =
1262
-
1263
-
1264
-
1265
- * Fixes for WP 2.7.
1266
-
1267
-
1268
-
1269
-
1270
-
1271
-
1272
-
1273
- = 2.9.6 =
1274
-
1275
-
1276
-
1277
- * Added Symbaloo and Tumblr.
1278
-
1279
-
1280
-
1281
-
1282
-
1283
-
1284
-
1285
- = 2.9.5 =
1286
-
1287
-
1288
-
1289
- * Fixed Fark & Propeller links.
1290
-
1291
-
1292
-
1293
- * Added missing i18n strings.
1294
-
1295
-
1296
-
1297
- * Added Yahoo Buzz.
1298
-
1299
-
1300
-
1301
-
1302
-
1303
-
1304
-
1305
- = 2.9.4 =
1306
-
1307
-
1308
-
1309
- * Removed PopCurrent and Rawsugar as they no longer exist.
1310
-
1311
-
1312
-
1313
- * Renamed BlueDot to Faves.
1314
-
1315
-
1316
-
1317
-
1318
-
1319
-
1320
-
1321
- = 2.9.3 =
1322
-
1323
-
1324
-
1325
- * Added Leonaut & MySpace.
1326
-
1327
-
1328
-
1329
- * Fixed plugin description.
1330
-
1331
-
1332
-
1333
- * Added option to disable Sociable on a per post basis.
1334
-
1335
-
1336
-
1337
- * Added option to display sociable on tag pages.
1338
-
1339
-
1340
-
1341
- * Added extra security to config page.
1342
-
1343
-
1344
-
1345
- * Fixed print button.
1346
-
1347
-
1348
-
1349
- * Fixed Twitter functionality.
1350
-
1351
-
1352
-
1353
-
1354
-
1355
-
1356
-
1357
- = 2.9.2 =
1358
-
1359
-
1360
-
1361
- * Added Swedish and Chinese localisations, thx to [Mikael Jorhult](http://www.mishkin.se/) and [Hugo Chen](http://take-ez.com/).
1362
-
1363
-
1364
-
1365
-
1366
-
1367
-
1368
-
1369
- = 2.9.1 =
1370
-
1371
-
1372
-
1373
- * Fixed bug where jQuery UI would be loaded twice.
1374
-
1375
-
1376
-
1377
-
1378
-
1379
-
1380
-
1381
- = 2.9 =
1382
-
1383
-
1384
-
1385
- * Removed Tool-Man in favor of jQuery, thx to Martin Joosse.
1386
-
1387
-
1388
-
1389
-
1390
-
1391
-
1392
-
1393
- = 2.8.4 =
1394
-
1395
-
1396
-
1397
- * General bugfixes.
1398
-
1399
-
1400
-
1401
 
 
 
1402
 
 
1403
 
 
 
1404
 
1405
- = 2.8.3 =
 
1406
 
 
 
1407
 
 
 
1408
 
1409
- * Added wikio.it, upnews.it, muti.co.za.
 
1410
 
 
1411
 
 
1412
 
1413
- * Made LinkedIn work even better.
1414
 
 
1415
 
 
 
1416
 
1417
- * Made opening in a new window optional.
 
1418
 
 
1419
 
 
1420
 
 
 
1421
 
 
 
1422
 
 
 
1423
 
 
 
1424
 
1425
- = 2.8.2 =
 
1426
 
 
 
1427
 
 
 
1428
 
1429
- * Now adds icons to feeds with excerpts too.
 
1430
 
 
1431
 
 
1432
 
1433
- * Added LinkedIn.
 
1434
 
 
1435
 
 
 
1436
 
 
1437
 
 
1438
 
 
1439
 
 
1440
 
1441
- = 2.8.1 =
1442
 
 
1443
 
 
 
1444
 
1445
- * Fixed some small issues.
 
1446
 
 
 
1447
 
 
 
1448
 
1449
- * Made sure tagline shows up again.
 
1450
 
 
1451
 
 
1452
 
 
 
1453
 
 
1454
 
 
 
1455
 
 
1456
 
 
1457
  = 2.8 =
1458
 
1459
-
1460
-
1461
  * Added option to show bookmark icons in feed.
1462
 
1463
-
1464
-
1465
  * Added Ratimarks.
1466
 
1467
-
1468
-
1469
  * Fixed xhtml compliance.
1470
 
1471
-
1472
-
1473
  * Fixed blue dot bug.
1474
-
1475
-
1476
-
1477
-
1478
-
1479
-
1480
-
1481
  = 2.6.9 =
1482
 
1483
-
1484
-
1485
  * Fixed WP 2.6 compatibility.
1486
-
1487
-
1488
-
1489
-
1490
-
1491
-
1492
-
1493
  = 2.6.8 =
1494
 
1495
-
1496
-
1497
  * Updated inline documentation.
1498
-
1499
-
1500
-
1501
-
1502
-
1503
-
1504
-
1505
  = 2.6.7 =
1506
 
1507
-
1508
-
1509
  * Renamed Sk*rt to Kirtsy.
1510
 
1511
-
1512
-
1513
  * Added designfloat.
1514
 
1515
-
1516
-
1517
  * Fixed description.
1518
-
1519
-
1520
-
1521
-
1522
-
1523
-
1524
-
1525
  = 2.5.4 =
1526
 
1527
-
1528
-
1529
  * Added HealthRanker, N4G, Meneame, BarraPunto, Laaik.it and E-mail option.
1530
-
1531
-
1532
-
1533
-
1534
-
1535
-
1536
-
1537
  = 2.5.3 =
1538
 
1539
-
1540
-
1541
  * Added Global Grind, Salesmarks, Webnews.de, Xerpi, Yigg.
1542
-
1543
-
1544
-
1545
-
1546
-
1547
-
1548
-
1549
  = 2.5.2 =
1550
 
1551
-
1552
-
1553
  * Added NuJIJ, eKudos, Sk-rt, Socialogs and MisterWong.de.
1554
-
1555
-
1556
-
1557
-
1558
-
1559
-
1560
-
1561
  = 2.5.1 =
1562
 
1563
-
1564
-
1565
  * Swapped Netscape for Propeller.
1566
-
1567
-
1568
-
1569
-
1570
-
1571
-
1572
-
1573
  Special thanks to [Robert Harm](http://www.die-truppe.com/) for coming up with loads of nice ideas.
1574
 
1575
-
1576
-
1577
-
1578
-
1579
-
1580
-
1581
  == Installation ==
1582
-
1583
-
1584
-
1585
-
1586
-
1587
-
1588
-
1589
  Download, Upgrading, Installation:
1590
-
1591
-
1592
-
1593
-
1594
-
1595
-
1596
-
1597
  Upgrade
1598
-
1599
-
1600
-
1601
-
1602
-
1603
-
1604
-
1605
  1. First deactivate Sociable
1606
 
1607
-
1608
-
1609
  1. Remove the `sociable` directory
1610
-
1611
-
1612
-
1613
-
1614
-
1615
-
1616
-
1617
  **Install**
1618
-
1619
-
1620
-
1621
-
1622
-
1623
-
1624
-
1625
  1. Unzip the `sociable.zip` file.
1626
 
1627
-
1628
-
1629
  1. Upload the the `sociable` folder (not just the files in it!) to your `wp-contents/plugins` folder. If you're using FTP, use 'binary' mode.
1630
-
1631
-
1632
-
1633
-
1634
-
1635
-
1636
-
1637
  **Activate**
1638
-
1639
-
1640
-
1641
-
1642
-
1643
-
1644
-
1645
  1. In your WordPress administration, go to the Plugins page
1646
 
1647
-
1648
-
1649
  1. Activate the Sociable plugin and a subpage for Sociable will appear
1650
 
1651
-
1652
-
1653
  in your Options menu.
1654
-
1655
-
1656
-
1657
-
1658
-
1659
-
1660
-
1661
  If you find any bugs or have any ideas, please mail me.
1662
-
1663
-
1664
-
1665
-
1666
-
1667
-
1668
-
1669
  **Advanced Users**
1670
-
1671
-
1672
-
1673
-
1674
-
1675
-
1676
-
1677
  For advanced use of the plugin, see the [Sociable](http://www.blogplay.com/sociable-for-wordpress) page on [Blogplay](http://www.blogplay.com/plugin)
1678
 
1679
-
1680
-
10
 
11
  Tested up to: 3.3.1
12
 
13
+ Stable tag: 4.2.5
 
 
 
 
 
 
 
 
 
14
 
15
+ Congrats for joining the leader in the sharing space of WordPress plugins. "Sociable" is totally FREE, has over 1,5 million downloads and is experiencing an exponential growth and amazing new features. Your feedback is much apreciated. Enjoy!
16
 
17
  == Description ==
18
 
 
19
  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.
20
 
21
  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
  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.
32
 
33
  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.
 
 
34
  = About Sociable Classic =
35
 
36
  As you know, we've recently improved our visual interface. The default icons are now much more appealing, and a tad bit larger (you want your readers to share your posts, don't you?)
37
 
38
  Enjoy it now!
39
+
40
  Be Sociable, Share!
41
 
 
 
 
 
42
  [vimeo http://vimeo.com/31023294]
 
 
 
 
 
43
  [vimeo http://vimeo.com/31023684]
44
 
 
 
 
 
45
  Have technical support issues? Please leave them in the forum: http://wordpress.org/tags/sociable?forum_id=10
46
 
 
 
47
  Also use the forum for ideas, feedback, suggestions. We'll try to check the forum every day.
48
+ What happened to the old icons? You can still use them in the new version, but they're not the default style anymore.
49
+ Sociable finds its home outside of the WordPress environment on Blogplay.com-
50
 
51
+ *** Sociable 4.2.5 ***
52
+ = Recent Updates =
53
 
54
+ * Add Private Options
55
 
56
+ * Add Pinterest share icon
57
 
58
+ * Add inbound.org share icon
59
+ * Changed the old motto "share and enjoy" for "Be Sociable, Share" much more attractive. Of course you can customize it to whatever you want.
60
 
61
+ * Complete re-write to increase efficiency and speed of the plugin
62
 
63
+ * New Sociable Skyscraper version, the ultimate advanced packed plugin for setting up rating system on your WordPress blog. Sociable Skyscraper allows you to set up pages and comments with great degree of customization.
64
+ = Recently Added Sites =
65
 
66
+ * Pinterest
67
 
68
+ * Inbound.org
69
 
70
+ * Posterous
71
 
72
+ * Sphinn
73
 
74
+ * Tumblr
75
 
76
+ * G+
77
 
78
+ * LinkedIN
79
 
80
+ * Inbound
81
 
82
+ = Recently Deleted Sites =
83
 
84
+ * Mixx.com, recently acquired, doesn't support share functions anymore
85
 
86
+ * Netvibes stopped sharing
87
 
88
+ * Slashdot: New bookmark creation is no longer supported
89
 
90
+ * And we deleted a bunch of others that were really not used that much
91
+ = Special Thanks =
92
 
93
+ Sociable plugin wouldn't be what it is today if it weren't for these people that helped us along the way:
94
 
95
+ * Thanks to [WPzoom](http://http://www.wpzoom.com/wpzoom/500-free-icons-wpzoom-social-networking-icon-set/) for letting us to use their awesome icons
96
 
97
+ * Also special thanks to [Webtreats etc](http://http://webtreats.mysitemyway.com/) for allowing us to use their great icons
98
+ == Screenshots ==
99
 
100
+ 1. The Sociable backend, easily select sites and drag & drop to change the order of appearance.
101
 
102
+ 2. Sociable with its new default styling.
103
 
104
+ 3. Pick the style you want
105
 
106
+ 4. Or you can pick your own style
107
 
108
+ 5. Select which plugin want to customize
109
+ == Installation ==
110
 
111
+ 1. Upload the extracted archive to `wp-content/plugins/`
112
 
113
+ 2. Activate the plugin through the 'Plugins' menu
114
 
115
+ 3. Open the plugin settings page Settings -> Sociable
116
 
117
+ 4. Adjust settings to your liking
118
 
119
+ 4. Enjoy!
120
 
121
+ == Frequently Asked Questions ==
122
 
123
+ = What happened to the old icons? =
124
 
125
+ You can still use them. It's just they're not the default anymore.
126
+ = I want to reach you, but not for a technical question =
127
 
128
+ Please send us an email to sociableblogplay [ at ] gmail.com
129
+ == Changelog ==
130
 
131
+ = 4.2.5 =
132
 
133
+ * Privacy options
134
 
135
+ = 4.2.4 =
136
 
137
+ * Privacy options
138
 
139
+ = 4.2.3 =
140
+ * Pinterest
141
+ * Tags
142
+ = 4.2.2 =
143
+ * Social Banner and settings
144
+ * Inbound icon
145
+ * FIXED: Some Fixes
146
+ = 4.2.1 =
147
 
148
+ * FIXED: Some Fixes
149
 
150
+ = 4.2.0 =
151
 
152
+ * FIXED: Some Fixes
153
 
154
+ = 4.1.9 =
155
 
156
+ * FIXED: Some Fixes
157
 
158
+ = 4.1.8 =
159
 
160
+ * FIXED: Some Fixes
161
 
162
+ = 4.1.7 =
163
 
164
+ * FIXED: Some Fixes
165
 
166
+ = 4.1.6 =
167
 
168
+ * FIXED: Some Fixes
169
+ = 4.1.5 =
170
 
171
+ * FIXED: Some Fixes
172
+ = 4.1.4 =
173
 
174
+ * FIXED: Some Fixes
175
+ = 4.1.3 =
176
 
177
+ * FIXED: Some Fixes
178
+ = 4.1.2 =
179
 
180
+ * FIXED: Google plus problem
181
+ = 4.1.1 =
182
 
183
+ * ADDED: Facebook Like Counter, Twitter Counter, Google Plus Counter, Linkedin Counter,StumbleUpon Counter and Digg Counter
184
 
185
+ * ADDED: Add Sociable at Top and Bottom of the post
186
+ = 4.0.6 =
187
 
188
+ * FIXED: Allow Sub Directory Blogs (http://domain.com/blog)
189
+ = 4.0.5 =
190
 
191
+ * FIXED: Other Upgrade issues
192
+ = 4.0.4 =
193
 
194
+ * FIXED: Upgrade issues
195
 
196
+ = 4.0.3 =
197
 
198
+ * Fix IIS 6.0 and PHP 5.3.x
199
+ = 4.0.1 =
200
 
201
+ * Changed the old motto "share and enjoy" for "Be Sociable, Share" much more attractive. Of cours you can customize it to whatever you want.
202
 
203
+ * Complete re-write to increase efficiency and speed of the plugin
204
 
205
+ * Updated it for up to Wordpress version 3.2.1
206
+ = 3.5.2 =
207
 
208
+ * Added new services MOB, ??, ????, QQ??, LaTafanera, SheToldMe, viadeo FR, Diggita, Design Float
209
 
210
+ * Removed ID properties from sociable anchor tags (share links)
211
 
212
+ * FIXED: Having a custom image directory now disables sprite usage, and the icons of services are displayed on sociable configuration page.
213
+ = 3.5.1 =
214
 
215
+ * Fixed the xhtml validation issues
216
 
217
+ * 'target=blank' (open link in new window) issue solved
218
 
219
+ * Sprites can now be disabled, allowing for custom icons
220
 
221
+ * Sprites have been disabled for RSS
222
 
223
+ * You can now deactivate the blogplay widget from your wordpress dashboard
224
+ = 3.5.0 =
225
 
226
+ * The icons now load in a CSS Sprites, allowing for faster download times.
227
 
228
+ * These services have been discontinued: BlogMeme FR, BlogMeme SP, co.mments, DesignFloat.com, PPNow.net, Symbaloo.com.
229
 
230
+ * You can now add links to your browser favorites.
231
 
232
+ * iFrames added for services that support them.
233
 
234
+ * You can know unselect the transparency effect on the sociable icons.
235
+ = 3.4.4 =
236
 
237
+ * Another fix for the sociableoff dilemma's, no backwards compatibility unfortunately, so disable sociable again on pages where you want to disable it.
238
+ = 3.4.3 =
239
 
240
+ * Fixed the bug mentioned [here](http://wordpress.org/support/topic/288487) and [here](http://wordpress.org/support/topic/290753) that made it impossible to disable Sociable on a per post/page basis (for real, now).
241
+ = 3.4.2 =
242
 
243
+ * Added a site specific id to each links anchor tag.
244
 
245
+ * Fixed the bug mentioned [here](http://wordpress.org/support/topic/288487) and [here](http://wordpress.org/support/topic/290753) that made it impossible to disable Sociable on a per post/page basis.
246
 
247
+ * "Reintroduced" TwitThis as Twitter.
248
+ = 3.4.1 =
249
 
250
+ * Fixed the Sphinn submit link.
251
+ = 3.4 =
252
 
253
+ * Added the option to add a site to Sociable through a filter, read [How to add a site to Sociable](http://yoast.com/add-sites-to-sociable/).
254
+ = 3.3.8 =
255
 
256
+ * Fixed the option to disable Sociable on a per post / page basis.
257
+ = 3.3.7 =
258
 
259
+ * More bugfixery.
260
+ = 3.3.6 =
261
 
262
+ * Reverted plugin URL fix because of too many people on old WordPress installations complaining. (Upgrade, people, upgrade!)
263
 
264
+ * Added PHPDoc throughout the plugins code.
265
+ = 3.3.5 =
266
 
267
+ * Added a Hyves button.
268
 
269
+ * Fixed MSN Reporter button.
270
+ = 3.3.4 =
271
 
272
+ * Fixed RSS.
273
+ = 3.3.3 =
274
 
275
+ * Brought back Tumblr
276
 
277
+ * Updated PDF link
278
 
279
+ * Added Posterous
280
 
281
+ * Smushed all images using [Smush.it](http://smush.it/), reducing the total image file size with 31.72 KB (42.03%)!
282
 
283
+ * Removed pre - 2.6 compatibility code
284
+ = 3.3.1 =
285
 
286
+ * Added new option to use pure text links, instead of image links.
287
 
288
+ * Fixed small issue with using target=blank links and the new awe.sm options.
289
 
290
+ * Allowed for usage without an awe.sm API key, as awe.sm falls back to "default" awe.sm shortlinks.
291
 
292
+ * Code cleanup for more efficiency in the backend on saving options.
293
 
294
+ * General code cleanup.
295
 
296
+ * Moved to the new default Changelog markup.
297
+ = 3.3 =
298
 
299
+ * Added awe.sm integration and some sites.
300
+ = 3.2.3 =
301
 
302
+ * Removed the last bit of non jQuery javascript.
303
 
304
+ * Improved styling and visual feedback when selecting a site.
305
+ = 3.2.2 =
306
 
307
+ * Moved style loading to admin_print_styles and scripts to admin_print_scripts.
308
+ = 3.2.1 =
309
 
310
+ * Fixed a bug with printing styles in 2.8 beta.
311
+ = 3.2 =
312
 
313
+ This is a MAJOR update to Sociable. Major Thanks to Jean-Paul of [iPhoneclub](http://www.iphoneclub.nl/) for all his work in looking up all the sites. The full list of changes:
314
+ * Restored sociable-admin.js, as it got accidentally removed.
315
 
316
+ * Added `class="sociablefirst"` to the first site in the list and `class="sociablelast"` to the last one.
317
 
318
+ * Added:
319
 
320
+ * An RSS button, which links to your sites RSS feed
321
 
322
+ * Printfriendly.com for both printing and creating a PDF, replacing the original "Print" function, which didn't work from RSS
323
 
324
+ * Current
325
 
326
+ * FriendFeed
327
 
328
+ * MSN Reporter.nl
329
 
330
+ * FS Daily
331
 
332
+ * Hello TXT
333
 
334
+ * Removed the following sites that were no longer working or active:
335
 
336
+ * BlinkBits
337
 
338
+ * Blogmemes.cn, .net, .jp
339
 
340
+ * Blogsvine
341
 
342
+ * Book.mark.hu
343
 
344
+ * Bumpzee
345
 
346
+ * Del.irio.us
347
 
348
+ * Feed Me Links
349
 
350
+ * Furl (replaced by Diigo)
351
 
352
+ * GeenRedactie
353
 
354
+ * Kick.ie
355
 
356
+ * Leonaut
357
 
358
+ * Magnolia
359
 
360
+ * Plug IM
361
 
362
+ * Pownce
363
 
364
+ * Salesmarks
365
 
366
+ * Scuttle
367
 
368
+ * Shadows
369
 
370
+ * Smarking
371
 
372
+ * Spurl
373
 
374
+ * Taggly
375
 
376
+ * Tailrank
377
 
378
+ * Tumblr (due to the change to a POST API, which we, unfortunately, can't support with Sociable)
379
 
380
+ * Updated the following sites to include the excerpt when submitting:
381
 
382
+ * Connotea
383
 
384
+ * Delicious
385
 
386
+ * Digg
387
 
388
+ * Ekudos
389
 
390
+ * Google Bookmarks
391
 
392
+ * NuJij
393
 
394
+ * Ping.fm
395
 
396
+ * Otherwise updated:
397
 
398
+ * Google Bookmarks (new icon)
399
 
400
+ * Fleck (New URL)
401
 
402
+ * Rec6 (new URL)
403
+ = 3.1.1 =
404
 
405
+ * Fixed bug with stylesheet introduced in 3.1.
406
+ = 3.1 =
407
 
408
+ * Converted all images to PNG.
409
 
410
+ * Cleaned up usage of javascript in the backend and switched to the jquery library that comes with WordPress.
411
 
412
+ * Allowed for usage of an external image directory.
413
 
414
+ * Removed pre 2.6 compatibility fixes.
415
+ = 3.0.6 =
416
 
417
+ * Fixed xhtml bug in Netvibes integration.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
418
 
419
+ * Added Bitacoras.
420
+ = 3.0.5 =
421
 
422
+ * Added Identi.ca.
423
 
424
+ * Fixed a bug in Yoast Posts widget.
425
+ = 3.0.4 =
426
 
427
+ * Added Netvibes.
428
+ = 3.0.3 =
429
 
430
+ * Security enhancements, thx to Mark Jaquith.
431
+ = 3.0.2 =
432
 
433
+ * Fixed CSS bug introduced in 3.0.
434
+ = 3.0.1 =
435
 
436
+ * Removed some other, now obsolete, code, reducing the code size by another 4KB.
437
+ = 3.0 =
438
 
439
+ * Fixed IE bug in admin.
440
 
441
+ * Cleaned up Admin Area and changed support messages.
442
 
443
+ * Removed directory checking for all images (speeds up incredibly).
444
 
445
+ * Made display: inline !important to prevent vertical icon display.
446
 
447
+ * Updated Wykop icon.
448
+ = 2.9.15 =
449
 
450
+ * Added a fallback for strip_shortcodes to maintain backwards compatibility with WordPress 2.3 and below.
451
+ = 2.9.14 =
452
 
453
+ * Made sure there are no tags or shortcodes in the excerpt.
454
 
455
+ * Added ping.fm.
456
 
457
+ * Removed indiagram (shut down).
458
+ = 2.9.13 =
459
 
460
+ * Changed Facebook link from sharer.php (meant for a popup window) to share.php (which has the actual menu on it etc.).
461
+ = 2.9.12 =
462
 
463
+ * Added Tip'd.
464
+ = 2.9.11 =
465
 
466
+ * Added settings link and Ozh admin menu icon.
467
+ = 2.9.10 =
468
 
469
+ * Fixes issue with excerpt not being urlencoded.
470
+ = 2.9.9 =
471
 
472
+ * Fixes for custom fields issues.
473
+ = 2.9.8 =
474
 
475
+ * Fixes for WP 2.7.
476
+ = 2.9.6 =
477
 
478
+ * Added Symbaloo and Tumblr.
479
+ = 2.9.5 =
480
 
481
+ * Fixed Fark & Propeller links.
482
 
483
+ * Added missing i18n strings.
484
 
485
+ * Added Yahoo Buzz.
486
+ = 2.9.4 =
487
 
488
+ * Removed PopCurrent and Rawsugar as they no longer exist.
489
 
490
+ * Renamed BlueDot to Faves.
491
+ = 2.9.3 =
492
 
493
+ * Added Leonaut & MySpace.
494
 
495
+ * Fixed plugin description.
496
 
497
+ * Added option to disable Sociable on a per post basis.
498
 
499
+ * Added option to display sociable on tag pages.
500
 
501
+ * Added extra security to config page.
502
 
503
+ * Fixed print button.
504
 
505
+ * Fixed Twitter functionality.
506
+ = 2.9.2 =
507
 
508
+ * Added Swedish and Chinese localisations, thx to [Mikael Jorhult](http://www.mishkin.se/) and [Hugo Chen](http://take-ez.com/).
509
+ = 2.9.1 =
510
 
511
+ * Fixed bug where jQuery UI would be loaded twice.
512
+ = 2.9 =
513
 
514
+ * Removed Tool-Man in favor of jQuery, thx to Martin Joosse.
515
+ = 2.8.4 =
516
 
517
+ * General bugfixes.
518
+ = 2.8.3 =
519
 
520
+ * Added wikio.it, upnews.it, muti.co.za.
521
 
522
+ * Made LinkedIn work even better.
523
 
524
+ * Made opening in a new window optional.
525
+ = 2.8.2 =
526
 
527
+ * Now adds icons to feeds with excerpts too.
528
 
529
+ * Added LinkedIn.
530
+ = 2.8.1 =
531
 
532
+ * Fixed some small issues.
533
 
534
+ * Made sure tagline shows up again.
535
  = 2.8 =
536
 
 
 
537
  * Added option to show bookmark icons in feed.
538
 
 
 
539
  * Added Ratimarks.
540
 
 
 
541
  * Fixed xhtml compliance.
542
 
 
 
543
  * Fixed blue dot bug.
 
 
 
 
 
 
 
544
  = 2.6.9 =
545
 
 
 
546
  * Fixed WP 2.6 compatibility.
 
 
 
 
 
 
 
547
  = 2.6.8 =
548
 
 
 
549
  * Updated inline documentation.
 
 
 
 
 
 
 
550
  = 2.6.7 =
551
 
 
 
552
  * Renamed Sk*rt to Kirtsy.
553
 
 
 
554
  * Added designfloat.
555
 
 
 
556
  * Fixed description.
 
 
 
 
 
 
 
557
  = 2.5.4 =
558
 
 
 
559
  * Added HealthRanker, N4G, Meneame, BarraPunto, Laaik.it and E-mail option.
 
 
 
 
 
 
 
560
  = 2.5.3 =
561
 
 
 
562
  * Added Global Grind, Salesmarks, Webnews.de, Xerpi, Yigg.
 
 
 
 
 
 
 
563
  = 2.5.2 =
564
 
 
 
565
  * Added NuJIJ, eKudos, Sk-rt, Socialogs and MisterWong.de.
 
 
 
 
 
 
 
566
  = 2.5.1 =
567
 
 
 
568
  * Swapped Netscape for Propeller.
 
 
 
 
 
 
 
569
  Special thanks to [Robert Harm](http://www.die-truppe.com/) for coming up with loads of nice ideas.
570
 
 
 
 
 
 
 
571
  == Installation ==
 
 
 
 
 
 
 
572
  Download, Upgrading, Installation:
 
 
 
 
 
 
 
573
  Upgrade
 
 
 
 
 
 
 
574
  1. First deactivate Sociable
575
 
 
 
576
  1. Remove the `sociable` directory
 
 
 
 
 
 
 
577
  **Install**
 
 
 
 
 
 
 
578
  1. Unzip the `sociable.zip` file.
579
 
 
 
580
  1. Upload the the `sociable` folder (not just the files in it!) to your `wp-contents/plugins` folder. If you're using FTP, use 'binary' mode.
 
 
 
 
 
 
 
581
  **Activate**
 
 
 
 
 
 
 
582
  1. In your WordPress administration, go to the Plugins page
583
 
 
 
584
  1. Activate the Sociable plugin and a subpage for Sociable will appear
585
 
 
 
586
  in your Options menu.
 
 
 
 
 
 
 
587
  If you find any bugs or have any ideas, please mail me.
 
 
 
 
 
 
 
588
  **Advanced Users**
 
 
 
 
 
 
 
589
  For advanced use of the plugin, see the [Sociable](http://www.blogplay.com/sociable-for-wordpress) page on [Blogplay](http://www.blogplay.com/plugin)
590
 
591
+
 
sociable.php CHANGED
@@ -1,13 +1,23 @@
1
  <?php
 
2
  /*
 
3
  Plugin Name: Sociable
 
4
  Plugin URI: http://blogplay.com/plugin
 
5
  Description: Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
6
- Version: 4.2.4
 
 
7
  Author: Blogplay
 
8
  Author URI: http://blogplay.com/
 
9
  Copyright 2006 Peter Harkins (ph@malaprop.org)
 
10
  Copyright 2008-2009 Joost de Valk (joost@yoast.com)
 
11
  Copyright 2009-Present Blogplay.com (info@blogplay.com)
12
 
13
  This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
@@ -15,2835 +25,1002 @@ This program is free software; you can redistribute it and/or modify it under th
15
  This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16
 
17
  You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
- */
19
-
20
 
 
21
 
22
  /*
23
 
24
-
25
-
26
  * Define Some Paths
27
 
28
-
29
-
30
  */
31
 
32
-
33
-
34
  define( 'SOCIABLE_HTTP_PATH' , WP_PLUGIN_URL . '/' . str_replace(basename( __FILE__) , "" , plugin_basename(__FILE__) ) );
 
 
 
 
35
 
 
36
 
 
37
 
 
38
 
 
39
 
 
40
 
 
41
 
42
- define( 'SOCIABLE_ABSPATH' , WP_PLUGIN_DIR . '/' . str_replace(basename( __FILE__) , "" , plugin_basename(__FILE__) ) );
43
 
 
 
44
 
 
45
 
 
46
 
 
47
 
 
48
 
 
49
 
 
50
  /*
51
 
 
52
 
 
 
53
 
54
- * Includes
55
 
 
56
 
 
57
 
58
- */
 
59
 
 
 
60
 
 
61
 
62
- include 'includes/class-sociable_Admin_Options.php';
63
 
 
 
 
64
 
 
65
 
66
- include("includes/skyscraper_output.php");
67
 
 
 
68
 
 
69
 
70
- include 'includes/class-Sociable_Globals.php';
71
 
 
72
 
 
73
 
74
- include 'includes/sociable_output.php';
75
 
 
 
 
76
 
 
 
 
 
 
77
 
78
- /*
79
 
 
 
 
 
 
80
 
 
81
 
82
- * Global Variables
 
 
 
83
 
 
84
 
 
 
85
 
86
- */
87
 
 
88
 
 
 
89
 
 
90
 
 
 
91
 
 
92
 
 
93
 
94
- //$sociable_known_sites = Sociable_Globals::default_sites();
95
 
 
96
 
 
 
97
 
98
- $sociable_options = get_option( 'sociable_options' );
99
 
 
100
 
 
 
 
101
 
102
- $skyscraper_options = get_option( 'skyscraper_options' );
103
 
 
104
 
 
105
 
106
- $skyscraper_latest = get_option( 'skyscraper_latest' );
107
 
 
108
 
 
109
 
110
- $skyscraper_mentions = get_option( 'skyscraper_mentions' );
 
111
 
 
 
112
 
 
113
 
114
- //$sociable_post_types = array(); //Set This blank here, won't work before init
 
115
 
 
116
 
 
 
 
 
117
 
118
- //$sociable_taxonomies = array(); //Same Here
 
 
 
119
 
 
120
 
 
121
 
 
122
 
 
123
 
 
124
 
 
125
 
126
- /*
127
 
 
128
 
 
129
 
130
- * General Init Function
131
 
 
132
 
 
133
 
134
- */
135
 
 
136
 
 
137
 
 
138
 
 
139
 
 
140
 
 
141
 
142
- function sociable_init(){
143
 
 
144
 
 
145
 
146
- wp_enqueue_script('jquery');
147
 
 
148
 
 
149
 
150
- global $sociable_post_types, $sociable_taxonomies, $sociable_options, $skyscraper_options;
151
 
 
152
 
 
153
 
154
- $import_call_asyn = true;
155
 
 
156
 
 
157
 
158
- $url_shares = $_SERVER["REQUEST_URI"];
159
 
 
 
 
160
 
 
161
 
 
162
 
 
163
 
 
164
 
 
165
 
166
- if (strpos($url_shares, "wp-admin")){
167
 
 
168
 
 
169
 
170
- if (strpos($url_shares, "wp-admin") && !strpos($url_shares, "page=skyscraper_options")){
171
 
 
172
 
 
173
 
 
174
 
 
175
 
 
176
 
 
177
 
178
- $import_call_asyn = false;
179
 
 
180
 
 
181
 
182
- }
183
 
 
 
184
 
 
185
 
186
- }
187
 
 
188
 
 
189
 
190
- else{
191
 
 
192
 
 
193
 
 
194
 
 
 
195
 
 
196
 
 
197
 
198
- if (!isset($skyscraper_options["active"])){
199
 
 
200
 
 
201
 
 
202
 
 
203
 
 
204
 
 
 
205
 
206
- $import_call_asyn = false;
207
 
 
208
 
 
209
 
210
- }
211
 
 
212
 
 
213
 
214
- }
215
 
 
216
 
 
217
 
218
- if ($import_call_asyn){
219
 
 
220
 
 
221
 
 
222
 
 
223
 
 
224
 
 
225
 
226
- wp_enqueue_script( 'async_call' , SOCIABLE_HTTP_PATH . 'js/async_call.js' );
227
 
 
228
 
 
229
 
230
- wp_enqueue_script( 'oplugin' , SOCIABLE_HTTP_PATH . 'js/oPlugin.js' );
 
231
 
 
232
 
 
233
 
234
- wp_enqueue_style( "skyscraper_style_shape",SOCIABLE_HTTP_PATH."css/shape.css");
235
 
 
 
236
 
 
237
 
238
- wp_enqueue_style( "skyscraper_style_toolbar", SOCIABLE_HTTP_PATH."css/toolbar.css");
239
 
240
-
241
 
 
242
 
 
 
 
243
 
244
- }
245
 
 
246
 
 
247
 
248
- if (!isset($sociable_options['icon_size']) || $sociable_options['icon_size'] == "" || !isset($sociable_options['version'])) sociable_reset();
249
 
 
250
 
 
251
 
252
- if ( !isset($skyscraper_options['accept_read_twitter']) ){
253
 
 
 
 
254
 
 
255
 
 
256
 
 
257
 
 
258
 
 
259
 
260
- skyscraper_reset();
261
 
 
262
 
 
263
 
 
264
 
 
265
 
 
266
 
 
 
267
 
268
- }
269
 
 
270
 
 
271
 
 
272
 
 
273
 
 
 
 
274
 
 
275
 
276
- load_plugin_textdomain( 'sociable', false, dirname( plugin_basename( __FILE__ ) )."/languages" );
277
 
 
278
 
 
279
 
280
- $active_sites = ( isset( $sociable_options['active_sites'] ) ) ? $sociable_options['active_sites'] : array() ;
281
 
 
282
 
 
283
 
284
- //Set The Post Types
285
 
 
286
 
 
287
 
 
288
 
 
289
 
 
290
 
 
291
 
292
- $sociable_post_types = Sociable_Globals::sociable_get_post_types();
293
 
 
294
 
 
295
 
 
296
 
 
297
 
 
298
 
 
299
 
300
- //Set The Custom Taxonomies
301
 
 
302
 
 
303
 
 
304
 
 
305
 
 
306
 
 
307
 
308
- $sociable_taxonomies = Sociable_Globals::sociable_get_taxonomies();
309
 
 
310
 
 
311
 
 
312
 
 
313
 
 
314
 
 
315
 
316
- wp_enqueue_script( 'sociable' , SOCIABLE_HTTP_PATH . 'js/sociable.js' );
317
 
 
318
 
 
319
 
320
- wp_enqueue_script( 'addtofavourites' , SOCIABLE_HTTP_PATH . 'js/addtofavorites.js' );
321
 
 
322
 
 
323
 
324
- if( ! is_admin() ){
325
 
 
326
 
 
327
 
 
328
 
 
329
 
 
330
 
 
331
 
332
- //Load Up The Front Of Site CSS And JS
333
 
 
334
 
 
335
 
 
336
 
 
337
 
 
338
 
 
339
 
340
- if( array_key_exists( 'Add to favorites' , $active_sites ) ){
341
 
 
342
 
 
343
 
 
344
 
 
345
 
 
346
 
 
347
 
348
- // wp_enqueue_script( 'addtofavourites' , SOCIABLE_HTTP_PATH . 'js/addtofavorites.js' );
349
 
 
350
 
 
351
 
352
- }
353
 
 
354
 
 
355
 
356
- if( isset( $sociable_options['use_stylesheet'] ) ){
357
 
 
358
 
 
359
 
 
360
 
 
361
 
 
362
 
 
363
 
364
- wp_enqueue_style( 'sociablecss' , SOCIABLE_HTTP_PATH . 'css/sociable.css' );
365
 
 
366
 
 
367
 
368
- }
369
 
 
370
 
 
371
 
372
- }
373
 
 
374
 
 
375
 
376
- }
377
 
 
378
 
 
379
 
 
380
 
 
381
 
 
382
 
 
383
 
384
- /*
385
 
 
386
 
 
387
 
388
- * Hooks And Filters
389
 
 
390
 
 
391
 
392
- */
393
 
 
394
 
 
395
 
 
396
 
 
397
 
 
398
 
 
399
 
400
- add_action( 'admin_init' , array( 'sociable_Admin_Options' , 'init' ) );
401
 
 
402
 
 
403
 
404
- add_action( 'admin_menu' , array( 'sociable_Admin_Options' , 'add_menu_pages' ) );
405
 
 
406
 
 
407
 
408
- add_action( 'save_post' , array( 'sociable_Admin_Options' , 'save_post' ) );
409
 
 
410
 
 
411
 
412
- add_action( 'init' , 'sociable_init' );
413
 
 
414
 
 
415
 
416
- add_action( 'wp_head' , 'sociable_init_async' );
417
 
 
418
 
 
419
 
420
- function sociable_init_async(){
421
 
 
422
 
 
423
 
 
424
 
 
425
 
 
426
 
 
427
 
428
- echo "<script type='text/javascript'>";
429
 
 
430
 
 
431
 
432
- echo "var base_url_sociable = '".SOCIABLE_HTTP_PATH."'";
433
 
 
434
 
 
435
 
436
- echo "</script><script type='text/javascript' src='http://apis.google.com/js/plusone.js'></script>";
437
 
 
438
 
 
439
 
440
- }
441
 
 
442
 
 
443
 
 
444
 
 
445
 
 
446
 
 
447
 
448
- add_filter( 'the_content', 'auto_sociable' );
449
 
 
450
 
 
451
 
 
452
 
 
453
 
 
454
 
 
455
 
456
- //add_filter( 'get_pages', 'auto_skyscraper' );
457
 
 
458
 
 
459
 
460
- //add_filter( 'the_excerpt', 'auto_skyscraper' );
461
 
 
462
 
 
463
 
464
- add_filter( 'the_excerpt', 'auto_sociable' );
465
 
 
466
 
 
467
 
468
- register_activation_hook(__FILE__, 'sociable_activate' );
469
 
 
470
 
 
471
 
472
- register_deactivation_hook( __FILE__, 'sociable_deactivate' );
473
 
 
474
 
 
475
 
476
- /*
477
 
 
478
 
 
479
 
480
- * Activation Function
481
 
 
482
 
 
483
 
484
- */
485
-
486
-
487
-
488
-
489
-
490
-
491
-
492
- function sociable_activate(){
493
-
494
-
495
-
496
- if( ! get_option( 'sociable_options' ) ){
497
-
498
-
499
-
500
-
501
-
502
-
503
-
504
- return sociable_reset();
505
-
506
-
507
-
508
- }
509
-
510
-
511
-
512
- }
513
-
514
-
515
-
516
-
517
-
518
-
519
-
520
- /*
521
-
522
-
523
-
524
- * Reset Function
525
-
526
-
527
-
528
- */
529
-
530
-
531
-
532
-
533
-
534
-
535
-
536
- function sociable_reset(){
537
-
538
-
539
-
540
-
541
-
542
-
543
-
544
- global $wpdb;
545
-
546
-
547
-
548
-
549
-
550
-
551
-
552
- //reset all data to factory defaults, install if is there.
553
-
554
-
555
-
556
- //Delete All Metadata From The Database ?
557
-
558
-
559
-
560
-
561
-
562
-
563
-
564
- $wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key = '_sociableoff'");
565
-
566
-
567
-
568
-
569
-
570
-
571
-
572
- $sociable_options = array(
573
-
574
-
575
-
576
-
577
-
578
-
579
-
580
- 'version' =>'4.2.2',
581
-
582
-
583
-
584
- 'automatic_mode' => 'on',
585
-
586
-
587
-
588
- 'tagline' => 'Be Sociable, Share!',
589
-
590
-
591
-
592
- 'custom_image_directory' => '',
593
-
594
-
595
-
596
- 'use_stylesheet' => 'on',
597
-
598
-
599
-
600
- 'use_images' => 'on',
601
-
602
-
603
-
604
- 'use_alphamask' => 'on',
605
-
606
-
607
-
608
- 'new_window' => 'on',
609
-
610
-
611
-
612
- 'help_grow' => 'on',
613
-
614
-
615
-
616
- 'locations' => array(
617
-
618
-
619
-
620
- 'is_single' => 'on',
621
-
622
-
623
-
624
- 'is_page' => 'on'
625
-
626
-
627
-
628
- ),
629
-
630
-
631
-
632
- 'active_sites' => array(
633
-
634
-
635
-
636
- 'Twitter' => 'on',
637
-
638
-
639
-
640
- 'Facebook' => 'on',
641
-
642
-
643
-
644
- 'email'=>'on',
645
-
646
-
647
-
648
- 'Add to favorites'=>'on',
649
-
650
-
651
-
652
- 'StumbleUpon' =>'on',
653
-
654
-
655
-
656
- 'Delicious' =>'on',
657
-
658
-
659
-
660
- 'Google Reader' =>'on',
661
-
662
-
663
-
664
- 'LinkedIn' => 'on',
665
-
666
-
667
-
668
- 'BlinkList' =>'on',
669
-
670
-
671
-
672
- 'More' => 'on',
673
-
674
-
675
-
676
- 'Twitter Counter' =>'on',
677
-
678
-
679
-
680
- 'Facebook Counter' =>'on',
681
-
682
-
683
-
684
- 'Google +' =>'on',
685
-
686
-
687
-
688
- 'LinkedIn Counter' =>'on',
689
-
690
-
691
-
692
- 'StumbleUpon Counter' =>'on'
693
-
694
-
695
-
696
- ),
697
-
698
-
699
-
700
- 'icon_size' => '32',
701
-
702
-
703
-
704
- 'icon_option' => 'option1',
705
-
706
-
707
-
708
- "active" => 1
709
-
710
-
711
-
712
- );
713
-
714
-
715
-
716
-
717
-
718
-
719
-
720
- $sociable_known_sites = array(
721
-
722
-
723
-
724
-
725
-
726
-
727
-
728
- 'Facebook' => array(
729
-
730
-
731
-
732
- 'favicon' => 'facebook.png',
733
-
734
-
735
-
736
- 'url' => 'http://www.facebook.com/share.php?u=PERMALINK&amp;t=TITLE',
737
-
738
-
739
-
740
- 'spriteCoordinates' => Array(
741
-
742
-
743
-
744
- '16' => array("-48px","0px"),
745
-
746
-
747
-
748
- '32' => array("-96px","0px"),
749
-
750
-
751
-
752
- '48' => array("-144px","0px"),
753
-
754
-
755
-
756
- '64' => array("-192px","0px")
757
-
758
-
759
-
760
- )
761
-
762
-
763
-
764
- ),
765
-
766
-
767
-
768
- 'Facebook Counter' => array(
769
-
770
-
771
-
772
- 'counter' =>1,
773
-
774
-
775
-
776
- 'favicon' => 'likecounter.png',
777
-
778
-
779
-
780
- 'url' => '<iframe src="http://www.facebook.com/plugins/like.php?href=PERMALINKCOUNT&send=false&layout=button_count&show_faces=false&action=like&colorscheme=light&font" scrolling="no" frameborder="0" style="border:none; overflow:hidden;height:32px;width:100px" allowTransparency="true"></iframe>',
781
-
782
-
783
-
784
- 'spriteCoordinates' => Array(
785
-
786
-
787
-
788
- '16' => array("-48px","0px"),
789
-
790
-
791
-
792
- '32' => array("-96px","0px"),
793
-
794
-
795
-
796
- '48' => array("-144px","0px"),
797
-
798
-
799
-
800
- '64' => array("-192px","0px")
801
-
802
-
803
-
804
- )
805
-
806
-
807
-
808
- ),
809
-
810
-
811
-
812
-
813
-
814
-
815
-
816
- 'Myspace' => array(
817
-
818
-
819
-
820
- 'favicon' => 'myspace.png',
821
-
822
-
823
-
824
- 'url' => 'http://www.myspace.com/Modules/PostTo/Pages/?u=PERMALINK&amp;t=TITLE',
825
-
826
-
827
-
828
- 'spriteCoordinates' => Array(
829
-
830
-
831
-
832
- '16' => array("0px","-16px"),
833
-
834
-
835
-
836
- '32' => array("0px","-32px"),
837
-
838
-
839
-
840
- '48' => array("0px","-48px"),
841
-
842
-
843
-
844
- '64' => array("0px","-64px")
845
-
846
-
847
-
848
- )
849
-
850
-
851
-
852
- ),
853
-
854
-
855
-
856
-
857
-
858
-
859
-
860
- 'Twitter' => array(
861
-
862
-
863
-
864
- 'favicon' => 'twitter.png',
865
-
866
-
867
-
868
- 'url' => 'http://twitter.com/intent/tweet?text=TITLE%20-%20PERMALINK%20(via%20@sociablesite)%20/sociable/%20blogplay.com',
869
-
870
-
871
-
872
- 'spriteCoordinates' => Array(
873
-
874
-
875
-
876
- '16' => array("-144px","-16px"),
877
-
878
-
879
-
880
- '32' => array("-288px","-32px"),
881
-
882
-
883
-
884
- '48' => array("-432px","-48px"),
885
-
886
-
887
-
888
- '64' => array("-576px","-64px")
889
-
890
-
891
-
892
- )
893
-
894
-
895
-
896
- ),
897
-
898
-
899
-
900
-
901
-
902
-
903
-
904
- 'Twitter Counter' => array(
905
-
906
-
907
-
908
- 'counter' =>1,
909
-
910
-
911
-
912
- 'favicon' => 'twitter.png',
913
-
914
-
915
-
916
- 'url' => '<a href="https://twitter.com/share" data-text="TITLECOUNT - PERMALINKCOUNT (via #sociablesite) *sociable* blogplay.com" data-url="PERMALINKCOUNT" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>',
917
-
918
-
919
-
920
- 'spriteCoordinates' => Array(
921
-
922
-
923
-
924
- '16' => array("-144px","-16px"),
925
-
926
-
927
-
928
- '32' => array("-288px","-32px"),
929
-
930
-
931
-
932
- '48' => array("-432px","-48px"),
933
-
934
-
935
-
936
- '64' => array("-576px","-64px")
937
-
938
-
939
-
940
- )
941
-
942
-
943
-
944
- ),
945
-
946
-
947
-
948
- 'LinkedIn' => array(
949
-
950
-
951
-
952
- 'favicon' => 'linkedin.png',
953
-
954
-
955
-
956
- 'url' => 'http://www.linkedin.com/shareArticle?mini=true&amp;url=PERMALINK&amp;title=TITLE&amp;source=BLOGNAME&amp;summary=EXCERPT',
957
-
958
-
959
-
960
- 'spriteCoordinates' => Array(
961
-
962
-
963
-
964
- '16' => array("-144px","0px"),
965
-
966
-
967
-
968
- '32' => array("-288px","0px"),
969
-
970
-
971
-
972
- '48' => array("-432px","0px"),
973
-
974
-
975
-
976
- '64' => array("-576px","0px")
977
-
978
-
979
-
980
- )
981
-
982
-
983
-
984
- ),
985
-
986
-
987
-
988
-
989
-
990
-
991
-
992
- 'LinkedIn Counter' => array(
993
-
994
-
995
-
996
- 'counter'=>1,
997
-
998
-
999
-
1000
- 'favicon' => 'linkedin.png',
1001
-
1002
-
1003
-
1004
- 'url' => '<script src="http://platform.linkedin.com/in.js" type="text/javascript"></script><script type="IN/Share" data-url="PERMALINKCOUNT" data-counter="right"></script>',
1005
-
1006
-
1007
-
1008
- 'spriteCoordinates' => Array(
1009
-
1010
-
1011
-
1012
-
1013
-
1014
-
1015
-
1016
- '16' => array("-144px","0px"),
1017
-
1018
-
1019
-
1020
- '32' => array("-288px","0px"),
1021
-
1022
-
1023
-
1024
- '48' => array("-432px","0px"),
1025
-
1026
-
1027
-
1028
- '64' => array("-576px","0px")
1029
-
1030
-
1031
-
1032
- )
1033
-
1034
-
1035
-
1036
- ),
1037
-
1038
-
1039
-
1040
-
1041
-
1042
-
1043
-
1044
- 'Delicious' => array(
1045
-
1046
-
1047
-
1048
-
1049
-
1050
-
1051
-
1052
- 'favicon' => 'delicious.png',
1053
-
1054
-
1055
-
1056
- 'url' => 'http://delicious.com/post?url=PERMALINK&amp;title=TITLE&amp;notes=EXCERPT',
1057
-
1058
-
1059
-
1060
- 'spriteCoordinates' => Array(
1061
-
1062
-
1063
-
1064
- '16' => array("-16px","0px"),
1065
-
1066
-
1067
-
1068
- '32' => array("-32px","0px"),
1069
-
1070
-
1071
-
1072
- '48' => array("-48px","0px"),
1073
-
1074
-
1075
-
1076
- '64' => array("-64px","0px")
1077
-
1078
-
1079
-
1080
- )
1081
-
1082
-
1083
-
1084
- ),
1085
-
1086
-
1087
-
1088
-
1089
-
1090
-
1091
-
1092
- 'Digg' => array(
1093
-
1094
-
1095
-
1096
-
1097
-
1098
-
1099
-
1100
- 'favicon' => 'digg.png',
1101
-
1102
-
1103
-
1104
- 'url' => 'http://digg.com/submit?phase=2&amp;url=PERMALINK&amp;title=TITLE&amp;bodytext=EXCERPT',
1105
-
1106
-
1107
-
1108
- 'spriteCoordinates' => Array(
1109
-
1110
-
1111
-
1112
- '16' => array("-32px","0px"),
1113
-
1114
-
1115
-
1116
- '32' => array("-64px","0px"),
1117
-
1118
-
1119
-
1120
- '48' => array("-96px","0px"),
1121
-
1122
-
1123
-
1124
- '64' => array("-128px","0px")
1125
-
1126
-
1127
-
1128
- )
1129
-
1130
-
1131
-
1132
- ),
1133
-
1134
-
1135
-
1136
- 'Digg Counter' => array(
1137
-
1138
-
1139
-
1140
- 'counter' =>1,
1141
-
1142
-
1143
-
1144
- 'favicon' => 'digg.png',
1145
-
1146
-
1147
-
1148
- 'url' => "<script type='text/javascript'>(function() {var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];s.type = 'text/javascript';s.async = true;s.src = 'http://widgets.digg.com/buttons.js';s1.parentNode.insertBefore(s, s1);})();</script><a href='http://digg.com/submit?url=PERMALINK&amp;title=TITLE' class='DiggThisButton DiggCompact'></a>",
1149
-
1150
-
1151
-
1152
-
1153
-
1154
-
1155
-
1156
- 'spriteCoordinates' => Array(
1157
-
1158
-
1159
-
1160
- '16' => array("-32px","0px"),
1161
-
1162
-
1163
-
1164
- '32' => array("-64px","0px"),
1165
-
1166
-
1167
-
1168
- '48' => array("-96px","0px"),
1169
-
1170
-
1171
-
1172
- '64' => array("-128px","0px")
1173
-
1174
-
1175
-
1176
- )
1177
-
1178
-
1179
-
1180
- ),
1181
-
1182
-
1183
-
1184
-
1185
-
1186
-
1187
-
1188
- 'Reddit' => array(
1189
-
1190
-
1191
-
1192
-
1193
-
1194
-
1195
-
1196
- 'favicon' => 'reddit.png',
1197
-
1198
-
1199
-
1200
-
1201
-
1202
-
1203
-
1204
- 'url' => 'http://reddit.com/submit?url=PERMALINK&amp;title=TITLE',
1205
-
1206
-
1207
-
1208
- 'spriteCoordinates' => Array(
1209
-
1210
-
1211
-
1212
- '16' => array("-64px","-16px"),
1213
-
1214
-
1215
-
1216
- '32' => array("-128px","-32px"),
1217
-
1218
-
1219
-
1220
- '48' => array("-192px","-48px"),
1221
-
1222
-
1223
-
1224
- '64' => array("-256px","-64px")
1225
-
1226
-
1227
-
1228
- )
1229
-
1230
-
1231
-
1232
- ),
1233
-
1234
-
1235
-
1236
-
1237
-
1238
-
1239
-
1240
- 'StumbleUpon' => array(
1241
-
1242
-
1243
-
1244
- 'favicon' => 'stumbleupon.png',
1245
-
1246
-
1247
-
1248
- 'url' => 'http://www.stumbleupon.com/submit?url=PERMALINK&title=TITLE',
1249
-
1250
-
1251
-
1252
- 'spriteCoordinates' => Array(
1253
-
1254
-
1255
-
1256
- '16' => array("-112px","-16px"),
1257
-
1258
-
1259
-
1260
- '32' => array("-224px","-32px"),
1261
-
1262
-
1263
-
1264
- '48' => array("-336px","-48px"),
1265
-
1266
-
1267
-
1268
- '64' => array("-448px","-64px")
1269
-
1270
-
1271
-
1272
- )),
1273
-
1274
-
1275
-
1276
-
1277
-
1278
-
1279
-
1280
- 'StumbleUpon Counter' => array(
1281
-
1282
-
1283
-
1284
- 'counter' =>1,
1285
-
1286
-
1287
-
1288
- 'favicon' => 'stumbleupon.png',
1289
-
1290
-
1291
-
1292
- 'url' => '<script src="http://www.stumbleupon.com/hostedbadge.php?s=2&r=PERMALINKCOUNT"></script>',
1293
-
1294
-
1295
-
1296
- 'spriteCoordinates' => Array(
1297
-
1298
-
1299
-
1300
- '16' => array("-112px","-16px"),
1301
-
1302
-
1303
-
1304
- '32' => array("-224px","-32px"),
1305
-
1306
-
1307
-
1308
- '48' => array("-336px","-48px"),
1309
-
1310
-
1311
-
1312
- '64' => array("-448px","-64px")
1313
-
1314
-
1315
-
1316
- )
1317
-
1318
-
1319
-
1320
- ),
1321
-
1322
-
1323
-
1324
- 'Google Bookmarks' => Array (
1325
-
1326
-
1327
-
1328
- 'favicon' => 'google.png',
1329
-
1330
-
1331
-
1332
- 'url' => 'http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=PERMALINK&amp;title=TITLE&amp;annotation=EXCERPT',
1333
-
1334
-
1335
-
1336
- 'description' => 'Google Bookmarks',
1337
-
1338
-
1339
-
1340
- 'spriteCoordinates' => Array(
1341
-
1342
-
1343
-
1344
- '16' => array("-96px","0px"),
1345
-
1346
-
1347
-
1348
- '32' => array("-192px","0px"),
1349
-
1350
-
1351
-
1352
- '48' => array("-288px","0px"),
1353
-
1354
-
1355
-
1356
- '64' => array("-384px","0px")
1357
-
1358
-
1359
-
1360
- )
1361
-
1362
-
1363
-
1364
- ),
1365
-
1366
-
1367
-
1368
-
1369
-
1370
-
1371
-
1372
- 'Google +' => Array (
1373
-
1374
-
1375
-
1376
-
1377
-
1378
-
1379
-
1380
- 'counter' =>1,
1381
-
1382
-
1383
-
1384
- 'favicon' => 'google.png',
1385
-
1386
-
1387
-
1388
- /* 'url' => '<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
1389
-
1390
-
1391
-
1392
-
1393
-
1394
-
1395
-
1396
- <g:plusone annotation="bubble" size="medium"></g:plusone>',*/
1397
-
1398
-
1399
-
1400
- 'url' => '<g:plusone annotation="bubble" href="PERMALINKCOUNT" size="medium"></g:plusone>',
1401
-
1402
-
1403
-
1404
- /*
1405
-
1406
-
1407
-
1408
- <script type="text/javascript">
1409
-
1410
-
1411
-
1412
- window.___gcfg = {
1413
-
1414
-
1415
-
1416
- lang: \'en-US\'
1417
-
1418
-
1419
-
1420
- };
1421
-
1422
-
1423
-
1424
- (function() {
1425
-
1426
-
1427
-
1428
- var po = document.createElement(\'script\'); po.type = \'text/javascript\'; po.async = true;
1429
-
1430
-
1431
-
1432
- po.src = \'https://apis.google.com/js/plusone.js\';
1433
-
1434
-
1435
-
1436
- var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(po, s);
1437
-
1438
-
1439
-
1440
- })();
1441
-
1442
-
1443
-
1444
- </script>
1445
-
1446
-
1447
-
1448
- ',*/
1449
-
1450
-
1451
-
1452
- 'description' => 'Google Bookmarks',
1453
-
1454
-
1455
-
1456
- 'spriteCoordinates' => Array(
1457
-
1458
-
1459
-
1460
- '16' => array("-96px","0px"),
1461
-
1462
-
1463
-
1464
- '32' => array("-192px","0px"),
1465
-
1466
-
1467
-
1468
- '48' => array("-288px","0px"),
1469
-
1470
-
1471
-
1472
- '64' => array("-384px","0px")
1473
-
1474
-
1475
-
1476
- )
1477
-
1478
-
1479
-
1480
- ),
1481
-
1482
-
1483
-
1484
-
1485
-
1486
-
1487
-
1488
- 'HackerNews' => Array(
1489
-
1490
-
1491
-
1492
- 'favicon' => 'hacker_news.png',
1493
-
1494
-
1495
-
1496
- 'url' => 'http://news.ycombinator.com/submitlink?u=PERMALINK&amp;t=TITLE',
1497
-
1498
-
1499
-
1500
- 'spriteCoordinates' => Array(
1501
-
1502
-
1503
-
1504
- '16' => array("-128px","0px"),
1505
-
1506
-
1507
-
1508
- '32' => array("-256px","0px"),
1509
-
1510
-
1511
-
1512
- '48' => array("-384px","0px"),
1513
-
1514
-
1515
-
1516
- '64' => array("-512px","0px")
1517
-
1518
-
1519
-
1520
- )
1521
-
1522
-
1523
-
1524
- ),
1525
-
1526
-
1527
-
1528
- 'MSNReporter' => Array(
1529
-
1530
-
1531
-
1532
- 'favicon' => 'msn.png',
1533
-
1534
-
1535
-
1536
- 'url' => 'http://reporter.es.msn.com/?fn=contribute&amp;Title=TITLE&amp;URL=PERMALINK&amp;cat_id=6&amp;tag_id=31&amp;Remark=EXCERPT',
1537
-
1538
-
1539
-
1540
- 'description' => 'MSN Reporter',
1541
-
1542
-
1543
-
1544
- 'spriteCoordinates' => Array(
1545
-
1546
-
1547
-
1548
- '16' => array("-176px","0px"),
1549
-
1550
-
1551
-
1552
- '32' => array("-352px","0px"),
1553
-
1554
-
1555
-
1556
- '48' => array("-528px","0px"),
1557
-
1558
-
1559
-
1560
- '64' => array("-704px","0px")
1561
-
1562
-
1563
-
1564
- )
1565
-
1566
-
1567
-
1568
- ),
1569
-
1570
-
1571
-
1572
-
1573
-
1574
-
1575
-
1576
- 'BlinkList' => Array(
1577
-
1578
-
1579
-
1580
- 'favicon' => 'blinklist.png',
1581
-
1582
-
1583
-
1584
- 'url' => 'http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=PERMALINK&amp;Title=TITLE',
1585
-
1586
-
1587
-
1588
- 'spriteCoordinates' => Array(
1589
-
1590
-
1591
-
1592
- '16' => array("0px","0px"),
1593
-
1594
-
1595
-
1596
- '32' => array("0px","0px"),
1597
-
1598
-
1599
-
1600
- '48' => array("0px","0px"),
1601
-
1602
-
1603
-
1604
- '64' => array("0px","0px")
1605
-
1606
-
1607
-
1608
- ),
1609
-
1610
-
1611
-
1612
- 'supportsIframe' => false,
1613
-
1614
-
1615
-
1616
- ),
1617
-
1618
-
1619
-
1620
- 'Sphinn' => Array(
1621
-
1622
-
1623
-
1624
- 'favicon' => 'sphinn.png',
1625
-
1626
-
1627
-
1628
- 'url' => 'http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=PERMALINK',
1629
-
1630
-
1631
-
1632
- 'spriteCoordinates' => Array(
1633
-
1634
-
1635
-
1636
- '16' => array("-96px","-16px"),
1637
-
1638
-
1639
-
1640
- '32' => array("-192px","-32px"),
1641
-
1642
-
1643
-
1644
- '48' => array("-288px","-48px"),
1645
-
1646
-
1647
-
1648
- '64' => array("-384px","-64px")
1649
-
1650
-
1651
-
1652
- )
1653
-
1654
-
1655
-
1656
- ),
1657
-
1658
-
1659
-
1660
-
1661
-
1662
-
1663
-
1664
- 'Posterous' => Array(
1665
-
1666
-
1667
-
1668
- 'favicon' => 'posterous.png',
1669
-
1670
-
1671
-
1672
- 'url' => 'http://posterous.com/share?linkto=PERMALINK&amp;title=TITLE&amp;selection=EXCERPT',
1673
-
1674
-
1675
-
1676
- 'spriteCoordinates' => Array(
1677
-
1678
-
1679
-
1680
- '16' => array("-32px","-16px"),
1681
-
1682
-
1683
-
1684
- '32' => array("-64px","-32px"),
1685
-
1686
-
1687
-
1688
- '48' => array("-96px","-48px"),
1689
-
1690
-
1691
-
1692
- '64' => array("-128px","-64px")
1693
-
1694
-
1695
-
1696
- )
1697
-
1698
-
1699
-
1700
- ),
1701
-
1702
-
1703
-
1704
- 'Tumblr' => Array(
1705
-
1706
-
1707
-
1708
- 'favicon' => 'tumblr.png',
1709
-
1710
-
1711
-
1712
- 'url' => 'http://www.tumblr.com/share?v=3&amp;u=PERMALINK&amp;t=TITLE&amp;s=EXCERPT',
1713
-
1714
-
1715
-
1716
- 'spriteCoordinates' => Array(
1717
-
1718
-
1719
-
1720
- '16' => array("-128px","-16px"),
1721
-
1722
-
1723
-
1724
- '32' => array("-256px","-32px"),
1725
-
1726
-
1727
-
1728
- '48' => array("-384px","-48px"),
1729
-
1730
-
1731
-
1732
- '64' => array("-512px","-64px")
1733
-
1734
-
1735
-
1736
- ),
1737
-
1738
-
1739
-
1740
- 'supportsIframe' => false
1741
-
1742
-
1743
-
1744
- ),
1745
-
1746
-
1747
-
1748
- 'email' => Array(
1749
-
1750
-
1751
-
1752
- 'favicon' => 'gmail.png',
1753
-
1754
-
1755
-
1756
- 'url' => 'https://mail.google.com/mail/?view=cm&fs=1&to&su=TITLE&body=PERMALINK&ui=2&tf=1&shva=1',
1757
-
1758
-
1759
-
1760
- 'spriteCoordinates' => Array(
1761
-
1762
-
1763
-
1764
- '16' => array("-80px","0px"),
1765
-
1766
-
1767
-
1768
- '32' => array("-160px","0px"),
1769
-
1770
-
1771
-
1772
- '48' => array("-240px","0px"),
1773
-
1774
-
1775
-
1776
- '64' => array("-320px","0px")
1777
-
1778
-
1779
-
1780
- ),
1781
-
1782
-
1783
-
1784
- 'supportsIframe' => false
1785
-
1786
-
1787
-
1788
- ),
1789
-
1790
-
1791
-
1792
-
1793
-
1794
-
1795
-
1796
- 'Google Reader' => array (
1797
-
1798
-
1799
-
1800
- 'favicon' => 'googlebuzz.png',
1801
-
1802
-
1803
-
1804
- 'url' => 'http://www.google.com/reader/link?url=PERMALINK&amp;title=TITLE&amp;srcURL=PERMALINK&amp;srcTitle=BLOGNAME',
1805
-
1806
-
1807
-
1808
- 'spriteCoordinates' => Array(
1809
-
1810
-
1811
-
1812
- '16' => array("-112px","0px"),
1813
-
1814
-
1815
-
1816
- '32' => array("-224px","0px"),
1817
-
1818
-
1819
-
1820
- '48' => array("-336px","0px"),
1821
-
1822
-
1823
-
1824
- '64' => array("-448px","0px")
1825
-
1826
-
1827
-
1828
- )
1829
-
1830
-
1831
-
1832
- ),
1833
-
1834
-
1835
-
1836
- 'Add to favorites' => array(
1837
-
1838
-
1839
-
1840
- 'favicon' => 'favorites.png',
1841
-
1842
-
1843
-
1844
- 'url' => 'javascript:AddToFavorites();',
1845
-
1846
-
1847
-
1848
- 'spriteCoordinates' => Array(
1849
-
1850
-
1851
-
1852
- '16' => array("-64px","0px"),
1853
-
1854
-
1855
-
1856
- '32' => array("-128px","0px"),
1857
-
1858
-
1859
-
1860
- '48' => array("-192px","0px"),
1861
-
1862
-
1863
-
1864
- '64' => array("-256px","0px")
1865
-
1866
-
1867
-
1868
- )
1869
-
1870
-
1871
-
1872
- ),
1873
-
1874
-
1875
-
1876
- 'More' => array(
1877
-
1878
-
1879
-
1880
- 'favicon' => 'more.png',
1881
-
1882
-
1883
-
1884
- 'url' => 'javascript:more();',
1885
-
1886
-
1887
-
1888
- 'spriteCoordinates' => Array(
1889
-
1890
-
1891
-
1892
- '16' => array("0px","0px"),
1893
-
1894
-
1895
-
1896
- '32' => array("0px","0px"),
1897
-
1898
-
1899
-
1900
- '48' => array("0px","0px"),
1901
-
1902
-
1903
-
1904
- '64' => array("0px","0px")
1905
-
1906
-
1907
-
1908
- )
1909
-
1910
-
1911
-
1912
- ),
1913
-
1914
-
1915
 
1916
- );
1917
 
 
1918
 
 
1919
 
 
1920
 
 
1921
 
 
1922
 
 
1923
 
 
1924
 
1925
-
1926
-
1927
-
1928
-
1929
-
1930
-
1931
-
1932
 
1933
-
1934
-
1935
-
1936
-
1937
-
1938
-
1939
-
1940
  //Update will create if it doesn't exist.
1941
 
1942
-
1943
-
1944
 
1945
-
1946
-
1947
-
1948
-
1949
-
1950
-
1951
-
1952
  update_option( 'sociable_known_sites' , $sociable_known_sites );
1953
-
1954
-
1955
-
1956
-
1957
-
1958
-
1959
-
1960
  update_option( 'sociable_options' , $sociable_options );
1961
-
1962
-
1963
-
1964
-
1965
-
1966
-
1967
-
1968
  update_option( 'sociable_helpus' , 1);
1969
-
1970
-
1971
-
1972
-
1973
-
1974
-
1975
-
1976
  }
1977
 
1978
-
1979
-
1980
  function skyscraper_reset(){
1981
 
1982
-
1983
-
1984
  $skyscraper_options = array(
1985
-
1986
-
1987
-
1988
-
1989
-
1990
-
1991
-
1992
  "version" => "1.0",
1993
-
1994
-
1995
-
1996
-
1997
-
1998
-
1999
-
2000
  "widget_width" => "60px",
2001
-
2002
-
2003
-
2004
-
2005
-
2006
-
2007
-
2008
  "widget_position" => "1",
2009
-
2010
-
2011
-
2012
-
2013
-
2014
-
2015
-
2016
  "background_color" => "#fefefe",
2017
-
2018
-
2019
-
2020
-
2021
-
2022
-
2023
-
2024
  "labels_color" => "#f7f7f7",
2025
-
2026
-
2027
-
2028
-
2029
-
2030
-
2031
-
2032
  "text_size" => "10px",
2033
-
2034
-
2035
-
2036
-
2037
-
2038
-
2039
-
2040
  "counters" => array("check" => "0",
2041
-
2042
-
2043
-
2044
-
2045
-
2046
-
2047
-
2048
  "folded" => "0"),
2049
-
2050
-
2051
-
2052
-
2053
-
2054
-
2055
-
2056
  "share" => array("check" => "0",
2057
-
2058
-
2059
-
2060
-
2061
-
2062
-
2063
-
2064
  "folded" => "0"),
2065
-
2066
-
2067
-
2068
-
2069
-
2070
-
2071
-
2072
  "num_tweets" => 3,
2073
-
2074
-
2075
-
2076
-
2077
-
2078
-
2079
-
2080
  "num_rss" =>3,
2081
-
2082
-
2083
-
2084
-
2085
-
2086
-
2087
-
2088
  "locations" => array("is_front_page" => 1,
2089
-
2090
-
2091
-
2092
-
2093
-
2094
-
2095
-
2096
  "is_home" => 1,
2097
-
2098
-
2099
-
2100
-
2101
-
2102
-
2103
-
2104
  "is_single" => 1,
2105
-
2106
-
2107
-
2108
-
2109
-
2110
-
2111
-
2112
  "is_page" => 1,
2113
-
2114
-
2115
-
2116
-
2117
-
2118
-
2119
-
2120
  "is_category" => 1,
2121
-
2122
-
2123
-
2124
-
2125
-
2126
-
2127
-
2128
  "is_date" => 1,
2129
-
2130
-
2131
-
2132
-
2133
-
2134
-
2135
-
2136
  "is_tag" => 1,
2137
-
2138
-
2139
-
2140
-
2141
-
2142
-
2143
-
2144
  "is_author" => 1,
2145
-
2146
-
2147
-
2148
-
2149
-
2150
-
2151
-
2152
  "is_search" => 1,
2153
-
2154
-
2155
-
2156
-
2157
-
2158
-
2159
-
2160
- "is_rss" => 1 ),
2161
-
2162
-
2163
-
2164
-
2165
-
2166
-
2167
-
2168
-
2169
-
2170
-
2171
-
2172
-
2173
-
2174
-
2175
-
2176
- "counters" => array("check" => 1,
2177
-
2178
-
2179
-
2180
-
2181
-
2182
-
2183
-
2184
- "folded" => 1),
2185
-
2186
-
2187
-
2188
-
2189
-
2190
-
2191
-
2192
- "share" => array("check" => 1,
2193
-
2194
-
2195
-
2196
-
2197
-
2198
-
2199
-
2200
  "folded" => 1),
2201
 
2202
  "sociable_banner" => "",
2203
 
2204
-
2205
-
2206
  "sociable_banner_timer" => 15,
2207
 
2208
-
2209
-
2210
  "sociable_banner_text" => 'Please spread the word: Be Sociable, Share!',
2211
 
2212
-
2213
-
2214
- "sociable_banner_colorBack" => '#FFFFFF',
2215
-
2216
-
2217
 
2218
  "sociable_banner_fontSize" => '9px',
2219
 
2220
-
2221
-
2222
  "sociable_banner_colorLabel" => '#F7F7F7',
2223
-
2224
 
2225
-
2226
  "sociable_banner_colorFont" => '#6A6A6A',
2227
 
2228
  "accept_read_twitter" => '',
2229
 
2230
  "accept_read_rss" => ''
2231
-
2232
-
2233
  );
2234
 
2235
-
2236
-
2237
  update_option( 'skyscraper_options' , $skyscraper_options );
2238
-
2239
-
2240
-
2241
-
2242
-
2243
-
2244
-
2245
 
2246
-
2247
-
2248
-
2249
-
2250
-
2251
-
2252
-
2253
 
2254
-
2255
-
2256
-
2257
-
2258
-
2259
-
2260
-
2261
  $skyscraper_latest = array();
2262
-
2263
-
2264
-
2265
-
2266
-
2267
-
2268
-
2269
  update_option("skyscraper_latest",$skyscraper_latest );
2270
-
2271
-
2272
-
2273
-
2274
-
2275
-
2276
-
2277
 
2278
-
2279
-
2280
-
2281
-
2282
-
2283
-
2284
-
2285
  $skyscraper_mentions = array();
2286
-
2287
-
2288
-
2289
-
2290
-
2291
-
2292
-
2293
  update_option("skyscraper_mentions",$skyscraper_mentions );
2294
-
2295
-
2296
-
2297
-
2298
-
2299
-
2300
-
2301
  }
2302
 
2303
-
2304
-
2305
  /*
2306
-
2307
-
2308
-
2309
-
2310
-
2311
-
2312
-
2313
  * De-Activate Function
2314
-
2315
-
2316
-
2317
-
2318
-
2319
-
2320
-
2321
  */
2322
-
2323
-
2324
-
2325
-
2326
-
2327
-
2328
-
2329
  function sociable_deactivate(){
2330
-
2331
-
2332
-
2333
-
2334
-
2335
-
2336
-
2337
  // global $wpdb;
2338
-
2339
-
2340
-
2341
-
2342
-
2343
-
2344
-
2345
  // //Delete The Metadata
2346
-
2347
-
2348
-
2349
-
2350
-
2351
-
2352
-
2353
  // $wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key = '_sociableoff'");
2354
-
2355
-
2356
-
2357
-
2358
-
2359
-
2360
-
2361
  // //delete The Options
2362
-
2363
-
2364
-
2365
-
2366
-
2367
-
2368
-
2369
  // return delete_option( 'sociable_options' );
2370
-
2371
-
2372
-
2373
-
2374
-
2375
-
2376
-
2377
  }
2378
 
2379
-
2380
-
2381
  /*
2382
-
2383
-
2384
-
2385
-
2386
-
2387
-
2388
-
2389
  * Function To Completely Remove The Options
2390
-
2391
-
2392
-
2393
-
2394
-
2395
-
2396
-
2397
  */
2398
-
2399
-
2400
-
2401
-
2402
-
2403
-
2404
-
2405
  function sociable_2_remove(){
2406
-
2407
-
2408
-
2409
-
2410
-
2411
-
2412
-
2413
  require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
2414
-
2415
-
2416
-
2417
-
2418
-
2419
-
2420
-
2421
 
2422
-
2423
-
2424
-
2425
-
2426
-
2427
-
2428
-
2429
  global $wpdb;
2430
-
2431
-
2432
-
2433
-
2434
-
2435
-
2436
-
2437
  //Delete The Metadata
2438
-
2439
-
2440
-
2441
-
2442
-
2443
-
2444
-
2445
  $wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key = '_sociableoff'");
2446
-
2447
-
2448
-
2449
-
2450
-
2451
-
2452
-
2453
  //delete The Options
 
 
 
 
2454
 
2455
-
2456
-
2457
-
2458
-
2459
-
2460
-
2461
- delete_option( 'sociable_options' );
2462
-
2463
-
2464
-
2465
-
2466
-
2467
-
2468
-
2469
- delete_option( 'skyscraper_options' );
2470
-
2471
-
2472
-
2473
-
2474
-
2475
-
2476
-
2477
-
2478
-
2479
-
2480
-
2481
-
2482
-
2483
-
2484
-
2485
-
2486
-
2487
-
2488
-
2489
- deactivate_plugins( array( 'sociable/sociable.php' ) );
2490
-
2491
-
2492
-
2493
-
2494
-
2495
-
2496
-
2497
- wp_redirect( '/wp-admin/plugins.php?deactivate=true' );
2498
-
2499
-
2500
-
2501
-
2502
-
2503
-
2504
-
2505
  }
2506
 
2507
-
2508
-
2509
  /*
2510
-
2511
-
2512
-
2513
-
2514
-
2515
-
2516
-
2517
  * Generic Plugin Wide Functions
2518
-
2519
-
2520
-
2521
-
2522
-
2523
-
2524
-
2525
  */
2526
-
2527
-
2528
-
2529
-
2530
-
2531
-
2532
-
2533
  function _get_sociable_image_path(){
2534
 
2535
-
2536
-
2537
  global $sociable_options;
2538
 
2539
-
2540
-
2541
 
2542
 
2543
-
2544
-
2545
  if( empty( $sociable_options['custom_icons'] )){
2546
 
2547
-
2548
-
2549
  if ($sociable_options['icon_option'] !="option6"){
2550
 
2551
-
2552
-
2553
  $path = trailingslashit( SOCIABLE_HTTP_PATH . 'images/'.$sociable_options['icon_option']."/" . $sociable_options['icon_size'] );
2554
 
2555
-
2556
-
2557
  }else{
2558
 
2559
-
2560
-
2561
 
2562
 
2563
-
2564
-
2565
  $path = trailingslashit( SOCIABLE_HTTP_PATH . 'images/original/');
2566
 
2567
-
2568
-
2569
  }
2570
 
2571
-
2572
-
2573
  } else {
2574
 
2575
-
2576
-
2577
  $path = trailingslashit( SOCIABLE_HTTP_PATH . 'images/customIcons/');
2578
 
2579
-
2580
-
2581
  }
2582
 
2583
-
2584
-
2585
 
2586
 
2587
-
2588
-
2589
 
2590
 
2591
-
2592
-
2593
  return $path;
2594
 
2595
-
2596
-
2597
  }
2598
 
2599
-
2600
-
2601
  function _get_sociable_image( $site, $description ){
2602
 
2603
-
2604
-
2605
  global $sociable_options;
2606
 
2607
-
2608
-
2609
  $imageclass = '';
2610
-
2611
-
2612
-
2613
-
2614
-
2615
-
2616
-
2617
  $imagestyle = '';
2618
-
2619
-
2620
-
2621
-
2622
-
2623
-
2624
-
2625
  $imagepath = _get_sociable_image_path();
2626
-
2627
-
2628
-
2629
-
2630
-
2631
-
2632
-
2633
  //Get The Source Of The Image
2634
-
2635
-
2636
-
2637
-
2638
-
2639
-
2640
-
2641
  if ( ! isset( $site['spriteCoordinates'] ) || ! isset( $sociable_options['use_sprites'] ) || is_feed() ) {
2642
 
2643
-
2644
-
2645
  if ( strpos( $site['favicon'], 'http' ) === 0 ) {
2646
-
2647
-
2648
-
2649
-
2650
-
2651
-
2652
-
2653
  $imagesource = $site['favicon'];
2654
-
2655
-
2656
-
2657
-
2658
-
2659
-
2660
-
2661
  } else {
2662
-
2663
-
2664
-
2665
-
2666
-
2667
-
2668
-
2669
  $imagesource = $imagepath.$site['favicon'];
2670
-
2671
-
2672
-
2673
-
2674
-
2675
-
2676
-
2677
  }
2678
 
2679
-
2680
-
2681
  } else {
2682
 
2683
-
2684
-
2685
  $imagesource = $imagepath . "services-sprite.gif";
2686
-
2687
-
2688
-
2689
-
2690
-
2691
-
2692
-
2693
  $services_sprite_url = $imagepath . "sprite.png";
2694
 
2695
-
2696
-
2697
  $spriteCoords = $site['spriteCoordinates'];
2698
-
2699
-
2700
-
2701
-
2702
-
2703
-
2704
-
2705
 
2706
-
2707
-
2708
-
2709
-
2710
-
2711
-
2712
-
2713
  $size = $sociable_options['icon_size'];
2714
 
2715
-
2716
-
2717
  $imagestyle = 'width: ' . $size . 'px; height: ' . $size . 'px; background: transparent url(' . $services_sprite_url . ') no-repeat; background-position:' . $spriteCoords[$size] . 'px 0';
2718
 
2719
-
2720
-
2721
  }
2722
-
2723
-
2724
-
2725
-
2726
-
2727
-
2728
-
2729
 
2730
 
2731
-
2732
-
2733
  if( isset( $sociable_options['use_alphamask'] ) ){
2734
-
2735
-
2736
-
2737
-
2738
-
2739
-
2740
-
2741
  $imageclass .= 'sociable-hovers';
2742
-
2743
-
2744
-
2745
-
2746
-
2747
-
2748
-
2749
  }
2750
 
2751
-
2752
-
2753
  //If A Class Has Been Specified, Ensure It Is Added To The Class Attribute.
2754
-
2755
-
2756
-
2757
-
2758
-
2759
-
2760
-
2761
  if ( isset( $site['class'] ) ) {
2762
-
2763
-
2764
-
2765
-
2766
-
2767
-
2768
-
2769
  $imageclass .= 'sociable_' . $site['class'];
2770
-
2771
-
2772
-
2773
-
2774
-
2775
-
2776
-
2777
  }
2778
 
2779
-
2780
-
2781
  if( $imagestyle != '' ){
2782
-
2783
-
2784
-
2785
-
2786
-
2787
-
2788
-
2789
  $imagestyle = 'style="' . $imagestyle . '"';
2790
-
2791
-
2792
-
2793
-
2794
-
2795
-
2796
-
2797
  }
2798
-
2799
-
2800
-
2801
-
2802
-
2803
-
2804
-
2805
  if ($sociable_options['icon_option'] !="option6"){
2806
 
2807
-
2808
-
2809
  $image = '<img src="' . $imagesource . '" title="' . $description . '" alt="' . $description . '"' . $imagestyle . ' />' ;
2810
 
2811
-
2812
-
2813
  }else{
2814
 
2815
-
2816
-
2817
  $image = '<img class="' . $imageclass . '" src="' . $imagesource . '" title="' . $description . '" alt="' . $description . '"' . $imagestyle . ' />' ;
2818
 
2819
-
2820
-
2821
  }
2822
-
2823
-
2824
-
2825
-
2826
-
2827
-
2828
-
2829
 
2830
-
2831
-
2832
-
2833
-
2834
-
2835
-
2836
-
2837
  return $image;
2838
-
2839
-
2840
-
2841
-
2842
-
2843
-
2844
-
2845
  }
2846
 
2847
-
2848
-
2849
  ?>
1
  <?php
2
+
3
  /*
4
+
5
  Plugin Name: Sociable
6
+
7
  Plugin URI: http://blogplay.com/plugin
8
+
9
  Description: Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
10
+
11
+ Version: 4.2.5
12
+
13
  Author: Blogplay
14
+
15
  Author URI: http://blogplay.com/
16
+
17
  Copyright 2006 Peter Harkins (ph@malaprop.org)
18
+
19
  Copyright 2008-2009 Joost de Valk (joost@yoast.com)
20
+
21
  Copyright 2009-Present Blogplay.com (info@blogplay.com)
22
 
23
  This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
25
  This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
26
 
27
  You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
 
28
 
29
+ */
30
 
31
  /*
32
 
 
 
33
  * Define Some Paths
34
 
 
 
35
  */
36
 
 
 
37
  define( 'SOCIABLE_HTTP_PATH' , WP_PLUGIN_URL . '/' . str_replace(basename( __FILE__) , "" , plugin_basename(__FILE__) ) );
38
+ define( 'SOCIABLE_ABSPATH' , WP_PLUGIN_DIR . '/' . str_replace(basename( __FILE__) , "" , plugin_basename(__FILE__) ) );
39
+ /*
40
+
41
+ * Includes
42
 
43
+ */
44
 
45
+ include 'includes/class-sociable_Admin_Options.php';
46
 
47
+ include("includes/skyscraper_output.php");
48
 
49
+ include 'includes/class-Sociable_Globals.php';
50
 
51
+ include 'includes/sociable_output.php';
52
 
53
+ /*
54
 
55
+ * Global Variables
56
 
57
+ */
58
+ //$sociable_known_sites = Sociable_Globals::default_sites();
59
 
60
+ $sociable_options = get_option( 'sociable_options' );
61
 
62
+ $skyscraper_options = get_option( 'skyscraper_options' );
63
 
64
+ $skyscraper_latest = get_option( 'skyscraper_latest' );
65
 
66
+ $skyscraper_mentions = get_option( 'skyscraper_mentions' );
67
 
68
+ //$sociable_post_types = array(); //Set This blank here, won't work before init
69
 
70
+ //$sociable_taxonomies = array(); //Same Here
71
  /*
72
 
73
+ * General Init Function
74
 
75
+ */
76
+ function sociable_init(){
77
 
78
+ wp_enqueue_script('jquery');
79
 
80
+ global $sociable_post_types, $sociable_taxonomies, $sociable_options, $skyscraper_options;
81
 
82
+ $import_call_asyn = true;
83
 
84
+ $url_shares = $_SERVER["REQUEST_URI"];
85
+ if (strpos($url_shares, "wp-admin")){
86
 
87
+ if (strpos($url_shares, "wp-admin") && !strpos($url_shares, "page=skyscraper_options")){
88
+ $import_call_asyn = false;
89
 
90
+ }
91
 
92
+ }
93
 
94
+ else{
95
+ if (!isset($skyscraper_options["active"])){
96
+ $import_call_asyn = false;
97
 
98
+ }
99
 
100
+ }
101
 
102
+ if ($import_call_asyn){
103
+ wp_enqueue_script( 'async_call' , SOCIABLE_HTTP_PATH . 'js/async_call.js' );
104
 
105
+ wp_enqueue_script( 'oplugin' , SOCIABLE_HTTP_PATH . 'js/oPlugin.js' );
106
 
107
+ wp_enqueue_style( "skyscraper_style_shape",SOCIABLE_HTTP_PATH."css/shape.css");
108
 
109
+ wp_enqueue_style( "skyscraper_style_toolbar", SOCIABLE_HTTP_PATH."css/toolbar.css");
110
 
111
+
112
 
113
+ }
114
 
115
+ if (!isset($sociable_options['icon_size']) || $sociable_options['icon_size'] == "" || !isset($sociable_options['version'])) sociable_reset();
116
+
117
+ if (!isset($skyscraper_options['accept_read_twitter'])){
118
 
119
+ skyscraper_reset();
120
+ }
121
+
122
+
123
+ load_plugin_textdomain( 'sociable', false, dirname( plugin_basename( __FILE__ ) )."/languages" );
124
 
125
+ $active_sites = ( isset( $sociable_options['active_sites'] ) ) ? $sociable_options['active_sites'] : array() ;
126
 
127
+ //Set The Post Types
128
+ $sociable_post_types = Sociable_Globals::sociable_get_post_types();
129
+ //Set The Custom Taxonomies
130
+ $sociable_taxonomies = Sociable_Globals::sociable_get_taxonomies();
131
+ wp_enqueue_script( 'sociable' , SOCIABLE_HTTP_PATH . 'js/sociable.js' );
132
 
133
+ wp_enqueue_script( 'addtofavourites' , SOCIABLE_HTTP_PATH . 'js/addtofavorites.js' );
134
 
135
+ if( ! is_admin() ){
136
+ //Load Up The Front Of Site CSS And JS
137
+ if( array_key_exists( 'Add to favorites' , $active_sites ) ){
138
+ // wp_enqueue_script( 'addtofavourites' , SOCIABLE_HTTP_PATH . 'js/addtofavorites.js' );
139
 
140
+ }
141
 
142
+ if( isset( $sociable_options['use_stylesheet'] ) ){
143
+ wp_enqueue_style( 'sociablecss' , SOCIABLE_HTTP_PATH . 'css/sociable.css' );
144
 
145
+ }
146
 
147
+ }
148
 
149
+ }
150
+ /*
151
 
152
+ * Hooks And Filters
153
 
154
+ */
155
+ add_action( 'admin_init' , array( 'sociable_Admin_Options' , 'init' ) );
156
 
157
+ add_action( 'admin_menu' , array( 'sociable_Admin_Options' , 'add_menu_pages' ) );
158
 
159
+ add_action( 'save_post' , array( 'sociable_Admin_Options' , 'save_post' ) );
160
 
161
+ add_action( 'init' , 'sociable_init' );
162
 
163
+ add_action( 'wp_head' , 'sociable_init_async' );
164
 
165
+ function sociable_init_async(){
166
+ echo "<script type='text/javascript'>";
167
 
168
+ echo "var base_url_sociable = '".SOCIABLE_HTTP_PATH."'";
169
 
170
+ echo "</script><script type='text/javascript' src='http://apis.google.com/js/plusone.js'></script>";
171
 
172
+ }
173
+ add_filter( 'the_content', 'auto_sociable' );
174
+ //add_filter( 'get_pages', 'auto_skyscraper' );
175
 
176
+ //add_filter( 'the_excerpt', 'auto_skyscraper' );
177
 
178
+ add_filter( 'the_excerpt', 'auto_sociable' );
179
 
180
+ register_activation_hook(__FILE__, 'sociable_activate' );
181
 
182
+ register_deactivation_hook( __FILE__, 'sociable_deactivate' );
183
 
184
+ /*
185
 
186
+ * Activation Function
187
 
188
+ */
189
+ function sociable_activate(){
190
 
191
+ if( ! get_option( 'sociable_options' ) ){
192
+ return sociable_reset();
193
 
194
+ }
195
 
196
+ }
197
+ /*
198
 
199
+ * Reset Function
200
 
201
+ */
202
+ function sociable_reset(){
203
+ global $wpdb;
204
+ //reset all data to factory defaults, install if is there.
205
 
206
+ //Delete All Metadata From The Database ?
207
+ $wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key = '_sociableoff'");
208
+ $sociable_options = array(
209
+ 'version' =>'4.2.5',
210
 
211
+ 'automatic_mode' => 'on',
212
 
213
+ 'tagline' => 'Be Sociable, Share!',
214
 
215
+ 'custom_image_directory' => '',
216
 
217
+ 'use_stylesheet' => 'on',
218
 
219
+ 'use_images' => 'on',
220
 
221
+ 'use_alphamask' => 'on',
222
 
223
+ 'new_window' => 'on',
224
 
225
+ 'help_grow' => 'on',
226
 
227
+ 'locations' => array(
228
 
229
+ 'is_single' => 'on',
230
 
231
+ 'is_page' => 'on'
232
 
233
+ ),
234
 
235
+ 'active_sites' => array(
236
 
237
+ 'Twitter' => 'on',
238
 
239
+ 'Facebook' => 'on',
240
 
241
+ 'email'=>'on',
242
 
243
+ 'Add to favorites'=>'on',
244
 
245
+ 'StumbleUpon' =>'on',
246
 
247
+ 'Delicious' =>'on',
248
 
249
+ 'Google Reader' =>'on',
250
 
251
+ 'LinkedIn' => 'on',
252
 
253
+ 'BlinkList' =>'on',
254
 
255
+ 'More' => 'on',
256
 
257
+ 'Twitter Counter' =>'on',
258
 
259
+ 'Facebook Counter' =>'on',
260
 
261
+ 'Google +' =>'on',
262
 
263
+ 'LinkedIn Counter' =>'on',
264
 
265
+ 'StumbleUpon Counter' =>'on'
266
 
267
+ ),
268
 
269
+ 'icon_size' => '32',
270
 
271
+ 'icon_option' => 'option1',
272
 
273
+ "active" => 1
274
 
275
+ );
276
+ $sociable_known_sites = array(
277
+ 'Facebook' => array(
278
 
279
+ 'favicon' => 'facebook.png',
280
 
281
+ 'url' => 'http://www.facebook.com/share.php?u=PERMALINK&amp;t=TITLE',
282
 
283
+ 'spriteCoordinates' => Array(
284
 
285
+ '16' => array("-48px","0px"),
286
 
287
+ '32' => array("-96px","0px"),
288
 
289
+ '48' => array("-144px","0px"),
290
 
291
+ '64' => array("-192px","0px")
292
 
293
+ )
294
 
295
+ ),
296
 
297
+ 'Facebook Counter' => array(
298
 
299
+ 'counter' =>1,
300
 
301
+ 'favicon' => 'likecounter.png',
302
 
303
+ 'url' => '<iframe src="http://www.facebook.com/plugins/like.php?href=PERMALINKCOUNT&send=false&layout=button_count&show_faces=false&action=like&colorscheme=light&font" scrolling="no" frameborder="0" style="border:none; overflow:hidden;height:32px;width:100px" allowTransparency="true"></iframe>',
304
 
305
+ 'spriteCoordinates' => Array(
306
 
307
+ '16' => array("-48px","0px"),
308
 
309
+ '32' => array("-96px","0px"),
310
 
311
+ '48' => array("-144px","0px"),
312
 
313
+ '64' => array("-192px","0px")
314
 
315
+ )
316
 
317
+ ),
318
+ 'Myspace' => array(
319
 
320
+ 'favicon' => 'myspace.png',
321
 
322
+ 'url' => 'http://www.myspace.com/Modules/PostTo/Pages/?u=PERMALINK&amp;t=TITLE',
323
 
324
+ 'spriteCoordinates' => Array(
325
 
326
+ '16' => array("0px","-16px"),
327
 
328
+ '32' => array("0px","-32px"),
329
 
330
+ '48' => array("0px","-48px"),
331
 
332
+ '64' => array("0px","-64px")
333
 
334
+ )
335
 
336
+ ),
337
+ 'Twitter' => array(
338
 
339
+ 'favicon' => 'twitter.png',
340
 
341
+ 'url' => 'http://twitter.com/intent/tweet?text=TITLE%20-%20PERMALINK%20 /blogplay.com/',
342
 
343
+ 'spriteCoordinates' => Array(
344
 
345
+ '16' => array("-144px","-16px"),
346
 
347
+ '32' => array("-288px","-32px"),
348
 
349
+ '48' => array("-432px","-48px"),
350
 
351
+ '64' => array("-576px","-64px")
352
 
353
+ )
354
 
355
+ ),
356
+ 'Twitter Counter' => array(
357
 
358
+ 'counter' =>1,
359
 
360
+ 'favicon' => 'twitter.png',
361
 
362
+ 'url' => '<a href="https://twitter.com/share" data-text="TITLECOUNT - PERMALINKCOUNT (via #sociablesite) *blogplay.com*" data-url="PERMALINKCOUNT" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>',
363
 
364
+ 'spriteCoordinates' => Array(
365
 
366
+ '16' => array("-144px","-16px"),
367
 
368
+ '32' => array("-288px","-32px"),
369
 
370
+ '48' => array("-432px","-48px"),
371
 
372
+ '64' => array("-576px","-64px")
373
 
374
+ )
375
 
376
+ ),
377
 
378
+ 'LinkedIn' => array(
379
 
380
+ 'favicon' => 'linkedin.png',
381
 
382
+ 'url' => 'http://www.linkedin.com/shareArticle?mini=true&amp;url=PERMALINK&amp;title=TITLE&amp;source=BLOGNAME&amp;summary=EXCERPT',
383
 
384
+ 'spriteCoordinates' => Array(
385
 
386
+ '16' => array("-144px","0px"),
387
 
388
+ '32' => array("-288px","0px"),
389
 
390
+ '48' => array("-432px","0px"),
391
 
392
+ '64' => array("-576px","0px")
393
 
394
+ )
395
 
396
+ ),
397
+ 'LinkedIn Counter' => array(
398
 
399
+ 'counter'=>1,
400
 
401
+ 'favicon' => 'linkedin.png',
402
 
403
+ 'url' => '<script src="http://platform.linkedin.com/in.js" type="text/javascript"></script><script type="IN/Share" data-url="PERMALINKCOUNT" data-counter="right"></script>',
404
 
405
+ 'spriteCoordinates' => Array(
406
+ '16' => array("-144px","0px"),
407
 
408
+ '32' => array("-288px","0px"),
409
 
410
+ '48' => array("-432px","0px"),
411
 
412
+ '64' => array("-576px","0px")
413
 
414
+ )
415
 
416
+ ),
417
+ 'Delicious' => array(
418
+ 'favicon' => 'delicious.png',
419
 
420
+ 'url' => 'http://delicious.com/post?url=PERMALINK&amp;title=TITLE&amp;notes=EXCERPT',
421
 
422
+ 'spriteCoordinates' => Array(
423
 
424
+ '16' => array("-16px","0px"),
425
 
426
+ '32' => array("-32px","0px"),
427
 
428
+ '48' => array("-48px","0px"),
429
 
430
+ '64' => array("-64px","0px")
431
 
432
+ )
433
 
434
+ ),
435
+ 'Digg' => array(
436
+ 'favicon' => 'digg.png',
437
 
438
+ 'url' => 'http://digg.com/submit?phase=2&amp;url=PERMALINK&amp;title=TITLE&amp;bodytext=EXCERPT',
439
 
440
+ 'spriteCoordinates' => Array(
441
 
442
+ '16' => array("-32px","0px"),
443
 
444
+ '32' => array("-64px","0px"),
445
 
446
+ '48' => array("-96px","0px"),
447
 
448
+ '64' => array("-128px","0px")
449
 
450
+ )
451
 
452
+ ),
453
 
454
+ 'Digg Counter' => array(
455
 
456
+ 'counter' =>1,
457
 
458
+ 'favicon' => 'digg.png',
459
 
460
+ 'url' => "<script type='text/javascript'>(function() {var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];s.type = 'text/javascript';s.async = true;s.src = 'http://widgets.digg.com/buttons.js';s1.parentNode.insertBefore(s, s1);})();</script><a href='http://digg.com/submit?url=PERMALINK&amp;title=TITLE' class='DiggThisButton DiggCompact'></a>",
461
+ 'spriteCoordinates' => Array(
462
 
463
+ '16' => array("-32px","0px"),
464
 
465
+ '32' => array("-64px","0px"),
466
 
467
+ '48' => array("-96px","0px"),
468
 
469
+ '64' => array("-128px","0px")
470
 
471
+ )
472
 
473
+ ),
474
+ 'Reddit' => array(
475
+ 'favicon' => 'reddit.png',
476
 
477
+
478
 
479
+ 'url' => 'http://reddit.com/submit?url=PERMALINK&amp;title=TITLE',
480
 
481
+ 'spriteCoordinates' => Array(
482
 
483
+ '16' => array("-64px","-16px"),
484
 
485
+ '32' => array("-128px","-32px"),
486
 
487
+ '48' => array("-192px","-48px"),
488
 
489
+ '64' => array("-256px","-64px")
490
 
491
+ )
492
 
493
+ ),
494
 
495
+
496
 
497
+ 'StumbleUpon' => array(
498
 
499
+ 'favicon' => 'stumbleupon.png',
500
 
501
+ 'url' => 'http://www.stumbleupon.com/submit?url=PERMALINK&title=TITLE',
502
 
503
+ 'spriteCoordinates' => Array(
504
 
505
+ '16' => array("-112px","-16px"),
506
 
507
+ '32' => array("-224px","-32px"),
508
 
509
+ '48' => array("-336px","-48px"),
510
 
511
+ '64' => array("-448px","-64px")
512
 
513
+ )),
514
 
515
+
516
 
517
+ 'StumbleUpon Counter' => array(
518
 
519
+ 'counter' =>1,
520
 
521
+ 'favicon' => 'stumbleupon.png',
522
 
523
+ 'url' => '<script src="http://www.stumbleupon.com/hostedbadge.php?s=2&r=PERMALINKCOUNT"></script>',
524
 
525
+ 'spriteCoordinates' => Array(
526
 
527
+ '16' => array("-112px","-16px"),
528
 
529
+ '32' => array("-224px","-32px"),
530
 
531
+ '48' => array("-336px","-48px"),
532
 
533
+ '64' => array("-448px","-64px")
534
 
535
+ )
536
 
537
+ ),
538
 
539
+ 'Google Bookmarks' => Array (
540
 
541
+ 'favicon' => 'google.png',
542
 
543
+ 'url' => 'http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=PERMALINK&amp;title=TITLE&amp;annotation=EXCERPT',
544
 
545
+ 'description' => 'Google Bookmarks',
546
 
547
+ 'spriteCoordinates' => Array(
548
 
549
+ '16' => array("-96px","0px"),
550
 
551
+ '32' => array("-192px","0px"),
552
 
553
+ '48' => array("-288px","0px"),
554
 
555
+ '64' => array("-384px","0px")
556
 
557
+ )
558
 
559
+ ),
560
 
561
+
562
 
563
+ 'Google +' => Array (
564
 
565
+
566
 
567
+ 'counter' =>1,
568
 
569
+ 'favicon' => 'google.png',
570
 
571
+ /* 'url' => '<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
572
 
573
+ <g:plusone annotation="bubble" size="medium"></g:plusone>',*/
574
 
575
+ 'url' => '<g:plusone annotation="bubble" href="PERMALINKCOUNT" size="medium"></g:plusone>',
576
 
577
+ /*
578
 
579
+ <script type="text/javascript">
580
 
581
+ window.___gcfg = {
582
 
583
+ lang: \'en-US\'
584
 
585
+ };
586
 
587
+ (function() {
588
 
589
+ var po = document.createElement(\'script\'); po.type = \'text/javascript\'; po.async = true;
590
 
591
+ po.src = \'https://apis.google.com/js/plusone.js\';
592
 
593
+ var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(po, s);
594
 
595
+ })();
596
 
597
+ </script>
598
 
599
+ ',*/
600
 
601
+ 'description' => 'Google Bookmarks',
602
 
603
+ 'spriteCoordinates' => Array(
604
 
605
+ '16' => array("-96px","0px"),
606
 
607
+ '32' => array("-192px","0px"),
608
 
609
+ '48' => array("-288px","0px"),
610
 
611
+ '64' => array("-384px","0px")
612
 
613
+ )
614
 
615
+ ),
616
 
617
+
618
 
619
+ 'HackerNews' => Array(
620
 
621
+ 'favicon' => 'hacker_news.png',
622
 
623
+ 'url' => 'http://news.ycombinator.com/submitlink?u=PERMALINK&amp;t=TITLE',
624
 
625
+ 'spriteCoordinates' => Array(
626
 
627
+ '16' => array("-128px","0px"),
628
 
629
+ '32' => array("-256px","0px"),
630
 
631
+ '48' => array("-384px","0px"),
632
 
633
+ '64' => array("-512px","0px")
634
 
635
+ )
636
 
637
+ ),
638
 
639
+ 'MSNReporter' => Array(
640
 
641
+ 'favicon' => 'msn.png',
642
 
643
+ 'url' => 'http://reporter.es.msn.com/?fn=contribute&amp;Title=TITLE&amp;URL=PERMALINK&amp;cat_id=6&amp;tag_id=31&amp;Remark=EXCERPT',
644
 
645
+ 'description' => 'MSN Reporter',
646
 
647
+ 'spriteCoordinates' => Array(
648
 
649
+ '16' => array("-176px","0px"),
650
 
651
+ '32' => array("-352px","0px"),
652
 
653
+ '48' => array("-528px","0px"),
654
 
655
+ '64' => array("-704px","0px")
656
 
657
+ )
658
 
659
+ ),
660
 
661
+
662
 
663
+ 'BlinkList' => Array(
664
 
665
+ 'favicon' => 'blinklist.png',
666
 
667
+ 'url' => 'http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=PERMALINK&amp;Title=TITLE',
668
 
669
+ 'spriteCoordinates' => Array(
670
 
671
+ '16' => array("0px","0px"),
672
 
673
+ '32' => array("0px","0px"),
674
 
675
+ '48' => array("0px","0px"),
676
 
677
+ '64' => array("0px","0px")
678
 
679
+ ),
680
 
681
+ 'supportsIframe' => false,
682
 
683
+ ),
684
 
685
+ 'Sphinn' => Array(
686
 
687
+ 'favicon' => 'sphinn.png',
688
 
689
+ 'url' => 'http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=PERMALINK',
690
 
691
+ 'spriteCoordinates' => Array(
692
 
693
+ '16' => array("-96px","-16px"),
694
 
695
+ '32' => array("-192px","-32px"),
696
 
697
+ '48' => array("-288px","-48px"),
698
 
699
+ '64' => array("-384px","-64px")
700
 
701
+ )
702
 
703
+ ),
704
 
705
+
706
 
707
+ 'Posterous' => Array(
708
 
709
+ 'favicon' => 'posterous.png',
710
 
711
+ 'url' => 'http://posterous.com/share?linkto=PERMALINK&amp;title=TITLE&amp;selection=EXCERPT',
712
 
713
+ 'spriteCoordinates' => Array(
714
 
715
+ '16' => array("-32px","-16px"),
716
 
717
+ '32' => array("-64px","-32px"),
718
 
719
+ '48' => array("-96px","-48px"),
720
 
721
+ '64' => array("-128px","-64px")
722
 
723
+ )
724
 
725
+ ),
726
 
727
+ 'Tumblr' => Array(
728
 
729
+ 'favicon' => 'tumblr.png',
730
 
731
+ 'url' => 'http://www.tumblr.com/share?v=3&amp;u=PERMALINK&amp;t=TITLE&amp;s=EXCERPT',
732
 
733
+ 'spriteCoordinates' => Array(
734
 
735
+ '16' => array("-128px","-16px"),
736
 
737
+ '32' => array("-256px","-32px"),
738
 
739
+ '48' => array("-384px","-48px"),
740
 
741
+ '64' => array("-512px","-64px")
742
 
743
+ ),
744
 
745
+ 'supportsIframe' => false
746
 
747
+ ),
748
 
749
+ 'email' => Array(
750
 
751
+ 'favicon' => 'gmail.png',
752
 
753
+ 'url' => 'https://mail.google.com/mail/?view=cm&fs=1&to&su=TITLE&body=PERMALINK&ui=2&tf=1&shva=1',
754
 
755
+ 'spriteCoordinates' => Array(
756
 
757
+ '16' => array("-80px","0px"),
758
 
759
+ '32' => array("-160px","0px"),
760
 
761
+ '48' => array("-240px","0px"),
762
 
763
+ '64' => array("-320px","0px")
764
 
765
+ ),
766
 
767
+ 'supportsIframe' => false
768
 
769
+ ),
770
 
771
+
772
 
773
+ 'Google Reader' => array (
774
 
775
+ 'favicon' => 'googlebuzz.png',
776
 
777
+ 'url' => 'http://www.google.com/reader/link?url=PERMALINK&amp;title=TITLE&amp;srcURL=PERMALINK&amp;srcTitle=BLOGNAME',
778
 
779
+ 'spriteCoordinates' => Array(
780
 
781
+ '16' => array("-112px","0px"),
782
 
783
+ '32' => array("-224px","0px"),
784
 
785
+ '48' => array("-336px","0px"),
786
 
787
+ '64' => array("-448px","0px")
788
 
789
+ )
790
 
791
+ ),
792
 
793
+ 'Add to favorites' => array(
794
 
795
+ 'favicon' => 'favorites.png',
796
 
797
+ 'url' => 'javascript:AddToFavorites();',
798
 
799
+ 'spriteCoordinates' => Array(
800
 
801
+ '16' => array("-64px","0px"),
802
 
803
+ '32' => array("-128px","0px"),
804
 
805
+ '48' => array("-192px","0px"),
806
 
807
+ '64' => array("-256px","0px")
808
 
809
+ )
810
 
811
+ ),
812
 
813
+ 'More' => array(
814
 
815
+ 'favicon' => 'more.png',
816
 
817
+ 'url' => 'javascript:more();',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
818
 
819
+ 'spriteCoordinates' => Array(
820
 
821
+ '16' => array("0px","0px"),
822
 
823
+ '32' => array("0px","0px"),
824
 
825
+ '48' => array("0px","0px"),
826
 
827
+ '64' => array("0px","0px")
828
 
829
+ )
830
 
831
+ ),
832
 
833
+ );
834
 
 
 
 
 
 
 
 
835
 
 
 
 
 
 
 
 
836
  //Update will create if it doesn't exist.
837
 
 
 
838
 
 
 
 
 
 
 
 
839
  update_option( 'sociable_known_sites' , $sociable_known_sites );
 
 
 
 
 
 
 
840
  update_option( 'sociable_options' , $sociable_options );
 
 
 
 
 
 
 
841
  update_option( 'sociable_helpus' , 1);
 
 
 
 
 
 
 
842
  }
843
 
 
 
844
  function skyscraper_reset(){
845
 
 
 
846
  $skyscraper_options = array(
 
 
 
 
 
 
 
847
  "version" => "1.0",
 
 
 
 
 
 
 
848
  "widget_width" => "60px",
 
 
 
 
 
 
 
849
  "widget_position" => "1",
 
 
 
 
 
 
 
850
  "background_color" => "#fefefe",
 
 
 
 
 
 
 
851
  "labels_color" => "#f7f7f7",
 
 
 
 
 
 
 
852
  "text_size" => "10px",
 
 
 
 
 
 
 
853
  "counters" => array("check" => "0",
 
 
 
 
 
 
 
854
  "folded" => "0"),
 
 
 
 
 
 
 
855
  "share" => array("check" => "0",
 
 
 
 
 
 
 
856
  "folded" => "0"),
 
 
 
 
 
 
 
857
  "num_tweets" => 3,
 
 
 
 
 
 
 
858
  "num_rss" =>3,
 
 
 
 
 
 
 
859
  "locations" => array("is_front_page" => 1,
 
 
 
 
 
 
 
860
  "is_home" => 1,
 
 
 
 
 
 
 
861
  "is_single" => 1,
 
 
 
 
 
 
 
862
  "is_page" => 1,
 
 
 
 
 
 
 
863
  "is_category" => 1,
 
 
 
 
 
 
 
864
  "is_date" => 1,
 
 
 
 
 
 
 
865
  "is_tag" => 1,
 
 
 
 
 
 
 
866
  "is_author" => 1,
 
 
 
 
 
 
 
867
  "is_search" => 1,
868
+ "is_rss" => 1 ),
869
+
870
+ "counters" => array("check" => 1,
871
+ "folded" => 1),
872
+ "share" => array("check" => 1,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
873
  "folded" => 1),
874
 
875
  "sociable_banner" => "",
876
 
 
 
877
  "sociable_banner_timer" => 15,
878
 
 
 
879
  "sociable_banner_text" => 'Please spread the word: Be Sociable, Share!',
880
 
881
+ "sociable_banner_colorBack" => '#FFFFFF',
 
 
 
 
882
 
883
  "sociable_banner_fontSize" => '9px',
884
 
 
 
885
  "sociable_banner_colorLabel" => '#F7F7F7',
 
886
 
 
887
  "sociable_banner_colorFont" => '#6A6A6A',
888
 
889
  "accept_read_twitter" => '',
890
 
891
  "accept_read_rss" => ''
 
 
892
  );
893
 
 
 
894
  update_option( 'skyscraper_options' , $skyscraper_options );
 
 
 
 
 
 
 
895
 
 
 
 
 
 
 
 
896
 
 
 
 
 
 
 
 
897
  $skyscraper_latest = array();
 
 
 
 
 
 
 
898
  update_option("skyscraper_latest",$skyscraper_latest );
 
 
 
 
 
 
 
899
 
 
 
 
 
 
 
 
900
  $skyscraper_mentions = array();
 
 
 
 
 
 
 
901
  update_option("skyscraper_mentions",$skyscraper_mentions );
 
 
 
 
 
 
 
902
  }
903
 
 
 
904
  /*
 
 
 
 
 
 
 
905
  * De-Activate Function
 
 
 
 
 
 
 
906
  */
 
 
 
 
 
 
 
907
  function sociable_deactivate(){
 
 
 
 
 
 
 
908
  // global $wpdb;
 
 
 
 
 
 
 
909
  // //Delete The Metadata
 
 
 
 
 
 
 
910
  // $wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key = '_sociableoff'");
 
 
 
 
 
 
 
911
  // //delete The Options
 
 
 
 
 
 
 
912
  // return delete_option( 'sociable_options' );
 
 
 
 
 
 
 
913
  }
914
 
 
 
915
  /*
 
 
 
 
 
 
 
916
  * Function To Completely Remove The Options
 
 
 
 
 
 
 
917
  */
 
 
 
 
 
 
 
918
  function sociable_2_remove(){
 
 
 
 
 
 
 
919
  require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
 
 
 
 
 
 
 
920
 
 
 
 
 
 
 
 
921
  global $wpdb;
 
 
 
 
 
 
 
922
  //Delete The Metadata
 
 
 
 
 
 
 
923
  $wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key = '_sociableoff'");
 
 
 
 
 
 
 
924
  //delete The Options
925
+ delete_option( 'sociable_options' );
926
+ delete_option( 'skyscraper_options' );
927
+
928
+
929
 
930
+ deactivate_plugins( array( 'sociable/sociable.php' ) );
931
+ wp_redirect( '/wp-admin/plugins.php?deactivate=true' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
932
  }
933
 
 
 
934
  /*
 
 
 
 
 
 
 
935
  * Generic Plugin Wide Functions
 
 
 
 
 
 
 
936
  */
 
 
 
 
 
 
 
937
  function _get_sociable_image_path(){
938
 
 
 
939
  global $sociable_options;
940
 
 
 
941
 
942
 
 
 
943
  if( empty( $sociable_options['custom_icons'] )){
944
 
 
 
945
  if ($sociable_options['icon_option'] !="option6"){
946
 
 
 
947
  $path = trailingslashit( SOCIABLE_HTTP_PATH . 'images/'.$sociable_options['icon_option']."/" . $sociable_options['icon_size'] );
948
 
 
 
949
  }else{
950
 
 
 
951
 
952
 
 
 
953
  $path = trailingslashit( SOCIABLE_HTTP_PATH . 'images/original/');
954
 
 
 
955
  }
956
 
 
 
957
  } else {
958
 
 
 
959
  $path = trailingslashit( SOCIABLE_HTTP_PATH . 'images/customIcons/');
960
 
 
 
961
  }
962
 
 
 
963
 
964
 
 
 
965
 
966
 
 
 
967
  return $path;
968
 
 
 
969
  }
970
 
 
 
971
  function _get_sociable_image( $site, $description ){
972
 
 
 
973
  global $sociable_options;
974
 
 
 
975
  $imageclass = '';
 
 
 
 
 
 
 
976
  $imagestyle = '';
 
 
 
 
 
 
 
977
  $imagepath = _get_sociable_image_path();
 
 
 
 
 
 
 
978
  //Get The Source Of The Image
 
 
 
 
 
 
 
979
  if ( ! isset( $site['spriteCoordinates'] ) || ! isset( $sociable_options['use_sprites'] ) || is_feed() ) {
980
 
 
 
981
  if ( strpos( $site['favicon'], 'http' ) === 0 ) {
 
 
 
 
 
 
 
982
  $imagesource = $site['favicon'];
 
 
 
 
 
 
 
983
  } else {
 
 
 
 
 
 
 
984
  $imagesource = $imagepath.$site['favicon'];
 
 
 
 
 
 
 
985
  }
986
 
 
 
987
  } else {
988
 
 
 
989
  $imagesource = $imagepath . "services-sprite.gif";
 
 
 
 
 
 
 
990
  $services_sprite_url = $imagepath . "sprite.png";
991
 
 
 
992
  $spriteCoords = $site['spriteCoordinates'];
 
 
 
 
 
 
 
993
 
 
 
 
 
 
 
 
994
  $size = $sociable_options['icon_size'];
995
 
 
 
996
  $imagestyle = 'width: ' . $size . 'px; height: ' . $size . 'px; background: transparent url(' . $services_sprite_url . ') no-repeat; background-position:' . $spriteCoords[$size] . 'px 0';
997
 
 
 
998
  }
 
 
 
 
 
 
 
999
 
1000
 
 
 
1001
  if( isset( $sociable_options['use_alphamask'] ) ){
 
 
 
 
 
 
 
1002
  $imageclass .= 'sociable-hovers';
 
 
 
 
 
 
 
1003
  }
1004
 
 
 
1005
  //If A Class Has Been Specified, Ensure It Is Added To The Class Attribute.
 
 
 
 
 
 
 
1006
  if ( isset( $site['class'] ) ) {
 
 
 
 
 
 
 
1007
  $imageclass .= 'sociable_' . $site['class'];
 
 
 
 
 
 
 
1008
  }
1009
 
 
 
1010
  if( $imagestyle != '' ){
 
 
 
 
 
 
 
1011
  $imagestyle = 'style="' . $imagestyle . '"';
 
 
 
 
 
 
 
1012
  }
 
 
 
 
 
 
 
1013
  if ($sociable_options['icon_option'] !="option6"){
1014
 
 
 
1015
  $image = '<img src="' . $imagesource . '" title="' . $description . '" alt="' . $description . '"' . $imagestyle . ' />' ;
1016
 
 
 
1017
  }else{
1018
 
 
 
1019
  $image = '<img class="' . $imageclass . '" src="' . $imagesource . '" title="' . $description . '" alt="' . $description . '"' . $imagestyle . ' />' ;
1020
 
 
 
1021
  }
 
 
 
 
 
 
 
1022
 
 
 
 
 
 
 
 
1023
  return $image;
 
 
 
 
 
 
 
1024
  }
1025
 
 
 
1026
  ?>