Sociable - Version 4.2.2

Version Description

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

Release Info

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

Code changes from version 4.2.1 to 4.2.2

css/sociable-admin.css CHANGED
@@ -1,78 +1,159 @@
1
.sociablemenu li {
2
3
}
4
#sociable_site_list {
5
list-style-type: none;
6
margin: 0 auto;
7
padding: 0;
8
font-size: 80%;
9
10
}
11
#sociable_site_list li {
12
list-style-type: none;
13
cursor: move;
14
float: left;
15
margin: 2px 2px 0 0;
16
width: 153px;
17
height:45px;
18
text-align: left;
19
font-size: 10px;
20
padding: 4px;
21
22
}
23
#sociable_site_list li img {
24
margin-right:6px;
25
}
26
#sociable_site_list .active {
27
28
behavior: url('../wp-content/plugins/sociable/css/pie.htc');
29
-moz-border-radius: 5px;
30
-webkit-border-radius: 5px;
31
border-radius: 5px 5px 5px 5px;
32
background:#6da6d1;
33
34
}
35
#sociable_site_list .active img {
36
opacity: 1;
37
-moz-opacity: 1;
38
filter:alpha(opacity=100);
39
40
}
41
#sociable_site_list .inactive {
42
43
behavior: url('../wp-content/plugins/sociable/css/pie.htc');
44
-moz-border-radius: 5px;
45
-webkit-border-radius: 5px;
46
border-radius: 5px 5px 5px 5px;
47
background:#dddddd;
48
49
50
}
51
#sociable_site_list .inactive img {
52
opacity: .4;
53
-moz-opacity: .4;
54
filter:alpha(opacity=40);
55
56
}
57
#sociable_site_list li input {
58
height: 12px;
59
margin: 0 5px 8px 0;
60
padding: 0;
61
background: transparent;
62
border: none;
63
}
64
65
.soc_clear{
66
clear:both;
67
}
68
69
.items_li{
70
font-size:16px;
71
}
72
.sub_item_li {
73
74
margin-bottom: 16px;
75
margin-left: 54px;
76
margin-top: 6px;
77
font-size: 14px;
78
}
1
.sociablemenu li {
2
+
3
4
+
5
}
6
+
7
#sociable_site_list {
8
+
9
list-style-type: none;
10
+
11
margin: 0 auto;
12
+
13
padding: 0;
14
+
15
font-size: 80%;
16
+
17
18
+
19
}
20
+
21
#sociable_site_list li {
22
+
23
list-style-type: none;
24
+
25
cursor: move;
26
+
27
float: left;
28
+
29
margin: 2px 2px 0 0;
30
+
31
width: 153px;
32
+
33
height:45px;
34
+
35
text-align: left;
36
+
37
font-size: 10px;
38
+
39
padding: 4px;
40
+
41
42
+
43
}
44
+
45
#sociable_site_list li img {
46
+
47
margin-right:6px;
48
+
49
}
50
+
51
#sociable_site_list .active {
52
+
53
54
+
55
behavior: url('../wp-content/plugins/sociable/css/pie.htc');
56
+
57
-moz-border-radius: 5px;
58
+
59
-webkit-border-radius: 5px;
60
+
61
border-radius: 5px 5px 5px 5px;
62
+
63
background:#6da6d1;
64
+
65
66
+
67
}
68
+
69
#sociable_site_list .active img {
70
+
71
opacity: 1;
72
+
73
-moz-opacity: 1;
74
+
75
filter:alpha(opacity=100);
76
+
77
78
+
79
}
80
+
81
#sociable_site_list .inactive {
82
83
+
84
+
85
behavior: url('../wp-content/plugins/sociable/css/pie.htc');
86
+
87
-moz-border-radius: 5px;
88
+
89
-webkit-border-radius: 5px;
90
+
91
border-radius: 5px 5px 5px 5px;
92
+
93
background:#dddddd;
94
+
95
96
+
97
98
+
99
}
100
+
101
#sociable_site_list .inactive img {
102
+
103
opacity: .4;
104
+
105
-moz-opacity: .4;
106
+
107
filter:alpha(opacity=40);
108
+
109
110
+
111
}
112
+
113
#sociable_site_list li input {
114
+
115
height: 12px;
116
+
117
margin: 0 5px 8px 0;
118
+
119
padding: 0;
120
+
121
background: transparent;
122
+
123
border: none;
124
+
125
}
126
127
+
128
+
129
.soc_clear{
130
+
131
clear:both;
132
+
133
}
134
135
+
136
+
137
.items_li{
138
+
139
font-size:16px;
140
+
141
}
142
+
143
.sub_item_li {
144
145
margin-bottom: 16px;
146
+
147
margin-left: 54px;
148
+
149
margin-top: 6px;
150
+
151
font-size: 14px;
152
+
153
+ }
154
+
155
+ .default_values{
156
+ font-size: 9px;
157
+ color: #000000;
158
+ text-decoration: none;
159
}
css/toolbar.css CHANGED
@@ -1,159 +1,424 @@
1
-
2
- .wpSocciableSmall-top{
3
- background-image:url('../images/toolbar/slide-sociable-top.png');
4
- width:62px;
5
- height:17px;
6
- background-repeat:no-repeat;
7
- border-left:solid 0px #ffffff;
8
- background-color:transparent;
9
- cursor:pointer;
10
- }
11
- .wpSocciableSmall-top-c{
12
- background-image:url('../images/toolbar/slide-sociable-top-c.png');
13
- width:70px;
14
- background-color:transparent;
15
- height:20px;
16
- border:solid 0px #ffffff;
17
- border-bottom:0px;
18
- cursor:pointer;
19
- }
20
-
21
-
22
-
23
- .wpSocciableSmall{/*
24
- background-image:url('../images/toolbar/slide-sociable.png');*/
25
- width:19px;
26
- height:66px;
27
- background-color:transparent;
28
- margin-left:-19px;
29
- /*width:30px;*/
30
- /*height:104px;*/
31
- /*margin-left:-27px;*/
32
- position:absolute;
33
- margin-top:120px;
34
- cursor:pointer;
35
- }
36
-
37
-
38
- .wpSocciableSmall-c{/*
39
- background-image:url('../images/toolbar/slide-sociable-c.png');*/
40
- width:19px;
41
- background-color:transparent;
42
- height:66px;
43
- margin-left:-18px;
44
- position:absolute;
45
- margin-top:120px;
46
- cursor:pointer;
47
- }
48
-
49
-
50
-
51
- .wpSocciableClose{
52
- /*background-image:url('../images/toolbar/slide-close.png');*/
53
- width:19px;
54
- height:17px;
55
- background-color:transparent;
56
- margin-left:-19px;
57
-
58
- position:absolute;
59
- margin-top:90px;
60
- cursor:pointer;
61
- }
62
-
63
- .wpSocciableClose-c{
64
- background-image:url('../images/toolbar/slide-close-c.png');
65
- width:19px;
66
- background-color:transparent;
67
- height:17px;
68
- margin-left:-18px;
69
- position:absolute;
70
- margin-top:90px;
71
- cursor:pointer;
72
- }
73
- .wpSocciableBig{
74
- background-image:url('../images/toolbar/slide-sociableBig.png');
75
- width:30px;
76
- background-color:transparent;
77
- height:104px;
78
- margin-left:-19px;
79
- position:absolute;
80
- margin-top:120px;
81
- cursor:pointer;
82
- }
83
-
84
- .wpSocciableBig-c{
85
- background-image:url('../images/toolbar/slide-sociableBig-c.png');
86
- width:30px;
87
- height:104px;
88
- background-color:transparent;
89
- margin-left:-19px;
90
- position:absolute;
91
- margin-top:120px;
92
- cursor:pointer;
93
- }
94
- a{
95
- text-decoration:none;
96
- }
97
-
98
- a:hover{
99
- text-decoration:underline;
100
- }
101
- ul.toolbar{
102
- margin:0px;
103
- padding:0px;
104
- list-style:none;
105
- font-family:arial;
106
- letter-spacing:-1.3px;
107
- font-weight:bold;
108
-
109
- }
110
- ul.toolbar li{
111
- margin:0px;
112
- padding:0px;
113
- }
114
- .wpPlugin-MainFrame{
115
- }
116
-
117
- ul.toolbar li.item div{
118
- margin:0px;
119
- padding:0px;
120
- }
121
- ul.toolbar li.item div.title{
122
- padding-top:2px;
123
- padding-bottom:2px;
124
- padding-left:2px;
125
- cursor:pointer;
126
- margin-bottom:2px;
127
- }
128
- ul.toolbar li.item div.boxTitle{ }
129
-
130
- ul.toolbar li.item div.boxTitleContent{
131
- padding-top:5px;
132
- padding-bottom:5px;
133
- padding-right:5px;
134
- }
135
-
136
-
137
-
138
- ul.toolbar li.item div.content{
139
- margin-bottom:5px;
140
-
141
- }
142
-
143
-
144
- ul.toolbar li.item div.title img{
145
- float:right;
146
- }
147
-
148
- ul.toolbar li div img{
149
- margin:1px;
150
- padding:0px;
151
- }
152
- .boxDialog{
153
- letter-spacing:0px;
154
- background:transparent;
155
- margin:0px;
156
- padding:0px;
157
- position:absolute;
158
-
159
- }
1
+
2
+
3
+
4
+ .wpSocciableSmall-top{
5
+
6
+
7
+ background-image:url('../images/toolbar/slide-sociable-top.png');
8
+
9
+
10
+ width:62px;
11
+
12
+
13
+ height:17px;
14
+
15
+
16
+ background-repeat:no-repeat;
17
+
18
+
19
+ border-left:solid 0px #ffffff;
20
+
21
+
22
+ background-color:transparent;
23
+
24
+
25
+ cursor:pointer;
26
+
27
+
28
+ }
29
+
30
+
31
+ .wpSocciableSmall-top-c{
32
+
33
+
34
+ background-image:url('../images/toolbar/slide-sociable-top-c.png');
35
+
36
+
37
+ width:70px;
38
+
39
+
40
+ background-color:transparent;
41
+
42
+
43
+ height:20px;
44
+
45
+
46
+ border:solid 0px #ffffff;
47
+
48
+
49
+ border-bottom:0px;
50
+
51
+
52
+ cursor:pointer;
53
+
54
+
55
+ }
56
+
57
+ .wpSocciableSmall{/*
58
+
59
+
60
+ background-image:url('../images/toolbar/slide-sociable.png');*/
61
+
62
+
63
+ width:19px;
64
+
65
+
66
+ height:66px;
67
+
68
+
69
+ background-color:transparent;
70
+
71
+
72
+ margin-left:-19px;
73
+
74
+
75
+ /*width:30px;*/
76
+
77
+
78
+ /*height:104px;*/
79
+
80
+
81
+ /*margin-left:-27px;*/
82
+
83
+
84
+ position:absolute;
85
+
86
+
87
+ margin-top:120px;
88
+
89
+
90
+ cursor:pointer;
91
+
92
+
93
+ }
94
+
95
+
96
+ .wpSocciableSmall-c{/*
97
+
98
+
99
+ background-image:url('../images/toolbar/slide-sociable-c.png');*/
100
+
101
+
102
+ width:19px;
103
+
104
+
105
+ background-color:transparent;
106
+
107
+
108
+ height:66px;
109
+
110
+
111
+ margin-left:-18px;
112
+
113
+
114
+ position:absolute;
115
+
116
+
117
+ margin-top:120px;
118
+
119
+
120
+ cursor:pointer;
121
+
122
+
123
+ }
124
+
125
+ .wpSocciableClose{
126
+
127
+
128
+ /*background-image:url('../images/toolbar/slide-close.png');*/
129
+
130
+
131
+ width:19px;
132
+
133
+
134
+ height:17px;
135
+
136
+
137
+ background-color:transparent;
138
+
139
+
140
+ margin-left:-19px;
141
+
142
+ position:absolute;
143
+
144
+
145
+ margin-top:90px;
146
+
147
+
148
+ cursor:pointer;
149
+
150
+
151
+ }
152
+
153
+
154
+ .wpSocciableClose-c{
155
+
156
+
157
+ background-image:url('../images/toolbar/slide-close-c.png');
158
+
159
+
160
+ width:19px;
161
+
162
+
163
+ background-color:transparent;
164
+
165
+
166
+ height:17px;
167
+
168
+
169
+ margin-left:-18px;
170
+
171
+
172
+ position:absolute;
173
+
174
+
175
+ margin-top:90px;
176
+
177
+
178
+ cursor:pointer;
179
+
180
+
181
+ }
182
+
183
+
184
+ .wpSocciableBig{
185
+
186
+
187
+ background-image:url('../images/toolbar/slide-sociableBig.png');
188
+
189
+
190
+ width:30px;
191
+
192
+
193
+ background-color:transparent;
194
+
195
+
196
+ height:104px;
197
+
198
+
199
+ margin-left:-19px;
200
+
201
+
202
+ position:absolute;
203
+
204
+
205
+ margin-top:120px;
206
+
207
+
208
+ cursor:pointer;
209
+
210
+
211
+ }
212
+
213
+ .wpSocciableBig-c{
214
+
215
+
216
+ background-image:url('../images/toolbar/slide-sociableBig-c.png');
217
+
218
+
219
+ width:30px;
220
+
221
+
222
+ height:104px;
223
+
224
+
225
+ background-color:transparent;
226
+
227
+
228
+ margin-left:-19px;
229
+
230
+
231
+ position:absolute;
232
+
233
+
234
+ margin-top:120px;
235
+
236
+
237
+ cursor:pointer;
238
+
239
+
240
+ }
241
+
242
+
243
+ a{
244
+
245
+ text-decoration:none;
246
+
247
+ }
248
+
249
+
250
+ a:hover{
251
+
252
+
253
+ text-decoration:underline;
254
+
255
+ }
256
+
257
+
258
+ ul.toolbar{
259
+
260
+
261
+ margin:0px;
262
+
263
+
264
+ padding:0px;
265
+
266
+
267
+ list-style:none;
268
+
269
+
270
+ font-family:arial;
271
+
272
+
273
+ letter-spacing:-1.3px;
274
+
275
+
276
+ font-weight:bold;
277
+
278
+ }
279
+
280
+
281
+ ul.toolbar li{
282
+
283
+
284
+ margin:0px;
285
+
286
+
287
+ padding:0px;
288
+
289
+ }
290
+
291
+
292
+ .wpPlugin-MainFrame{
293
+
294
+
295
+ }
296
+
297
+
298
+ ul.toolbar li.item div{
299
+
300
+
301
+ margin:0px;
302
+
303
+
304
+ padding:0px;
305
+ }
306
+
307
+
308
+ ul.toolbar li.item div.title{
309
+
310
+
311
+ padding-top:2px;
312
+
313
+ padding-bottom:2px;
314
+
315
+ padding-left:2px;
316
+
317
+ cursor:pointer;
318
+
319
+
320
+ margin-bottom:2px;
321
+
322
+
323
+ }
324
+
325
+
326
+ ul.toolbar li.item div.boxTitle{ }
327
+
328
+
329
+ ul.toolbar li.item div.boxTitleContent{
330
+
331
+ padding-top:5px;
332
+
333
+ padding-bottom:5px;
334
+
335
+ padding-right:5px;
336
+ }
337
+
338
+
339
+ ul.toolbar li.item div.content{
340
+
341
+
342
+ margin-bottom:5px;
343
+ }
344
+
345
+
346
+
347
+ ul.toolbar li.item div.title img{
348
+
349
+
350
+ float:right;
351
+
352
+
353
+ }
354
+
355
+
356
+
357
+ ul.toolbar li div img{
358
+
359
+
360
+ margin:1px;
361
+ border:0;
362
+
363
+ padding:0px;
364
+ }
365
+
366
+
367
+ .boxDialog{
368
+
369
+
370
+ letter-spacing:0px;
371
+
372
+
373
+ background:transparent;
374
+
375
+
376
+ margin:0px;
377
+
378
+
379
+ padding:0px;
380
+
381
+
382
+ position:absolute;
383
+
384
+ }
385
+
386
+ .boxBanner_ul{
387
+
388
+ float: left;
389
+ list-style: none outside none;
390
+ margin-right: 12px;
391
+ margin-left: 10px;
392
+ width: auto;
393
+ padding:0;
394
+ }
395
+
396
+ .boxCounters_ul{
397
+ list-style: none outside none;
398
+ margin: 10px 0 0;
399
+ text-align: justify;
400
+ width: 50px;
401
+ padding:0;
402
+ }
403
+
404
+ .boxCounters_ul li{
405
+ display: table;
406
+ height: auto;
407
+ margin-bottom: 8px !important;
408
+ }
409
+
410
+ .boxBanner_ul li{
411
+
412
+ float: left;
413
+ margin-right: 5px !important;
414
+ }
415
+
416
+ .boxBanner_ul_margin{
417
+
418
+ border-right: 1px solid #6A6A6A;
419
+ float: left;
420
+ height: 60px;
421
+ list-style: none outside none;
422
+ margin: 0;
423
+ padding:0;
424
+ }
images/toolbar/48f.png ADDED
Binary file
images/toolbar/48i.png ADDED
Binary file
images/toolbar/48rss.png ADDED
Binary file
images/toolbar/48t.png ADDED
Binary file
images/toolbar/inbound.png ADDED
Binary file
includes/class-sociable_Admin_Options.php CHANGED
@@ -1,355 +1,664 @@
1
<?php
2
/*
3
4
* Administration Options Class For Sociable 2
5
6
*/
7
class sociable_Admin_Options{
8
9
10
11
/**
12
13
* A Function To Hook To Admin Init.
14
15
*/
16
17
function init(){
18
19
20
21
register_setting( 'sociable_options_group' , 'sociable_options' );
22
23
24
25
//Add The Settings Sections
26
27
// add_settings_section( 'sociable_locations', __( 'Locations' ), array( 'sociable_Admin_Options' , 'location_options_callback' ) , 'sociable_options' );
28
29
30
31
// add_settings_section( 'sociable_options', __( 'General Options' ), array( 'sociable_Admin_Options' , 'general_options_callback' ) , 'sociable_options' );
32
33
34
35
36
37
register_setting( 'skyscraper_options_group' , 'skyscraper_options' );
38
39
40
41
// add_settings_section( 'sociable_locations', __( 'Locations' ), array( 'sociable_Admin_Options' , 'location_options_callback' ) , 'skyscraper_options' );
42
43
44
45
}
46
47
48
49
function skyscraper_init(){
50
51
52
register_setting( 'skyscraper_options_group' , 'skyscraper_options' );
53
add_settings_section( 'sociable_locations', __( 'Locations' ), array( 'sociable_Admin_Options' , 'location_options_callback' ) , 'skyscraper_options' );
54
55
56
57
//Add All The Settings Fields
58
59
//self::add_settings_fields();
60
61
}
62
63
64
65
function Select_Sociable_Page(){
66
67
68
69
global $sociable_options;
70
71
?>
72
73
74
75
76
77
78
79
<div class="wrap" style="margin-top:25px">
80
81
82
83
<div style="width: 80%; margin-left: 25px; color: rgb(147, 147, 147); font-weight: bold; font-size: 15px;">
84
85
Congrats! You are joining the leader in the sharing space of WordPress plugins. Started more than 2 years ago, and with over 1,5mm downloads now, here comes the latest version 4.1 <br /><br />
86
87
You can select Sociable Classic and/or Sociable Skyscraper to spread the World, increase your traffic and your reader's ability to share your posts! <br /> <br />
88
89
</div>
90
91
92
93
<div class="wrap" style="width:42%;float:left">
94
95
<?php //wp_nonce_field('sociable-config'); ?>
96
97
98
99
<TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px">
100
101
102
103
104
105
<TR>
106
107
<TD class="Border-Left" ></TD><TD class="BG-Middle" >Skyscraper Sociable</TD><TD class="Border-Right"></TD>
108
109
</TR>
110
111
<TR>
112
113
<TD colspan="3" >
114
115
<table>
116
117
<tr>
118
119
<td>
120
121
<img src="<?php echo SOCIABLE_HTTP_PATH ?>images/skyphoto.png" style="margin-left:-5px;margin-top:20px;" />
122
123
</td>
124
125
<td valign="top" >
126
127
<br/><br/>
128
129
<span style="font-size:18px;color:#18305e;font-weight:bold;">Skyscraper Sociable</span>
130
131
<p style="font-size:12px;color:#939393;font-weight:bold;" >
132
133
Now introducing the ultimate advanced and feature packed plugin for setting up rating system on your WordPress blog.
134
135
<br/ ><br/ >
136
137
Sociable Skyscraper allows you to set up different rating systems for posts, pages and comments with great degree of customization.
138
139
<br/ ><br/ >
140
141
List of features is so smart and non-stop growing:
142
143
<br/ ><br/ >
144
145
You can get more "Sociable" with Sociable Skyscraper and easily getting
146
147
Rating and Review of: posts, pages, comments, Facebook, G+, LinkedIN,
148
149
Twitter as well as multiple ratings for posts and pages. Visitor's counter,
150
151
visitor's from Facebook and Twitter... As a plus you get an easy way to get
152
153
TOP or HOME from Sociable Skyscraper.
154
155
<br/ ><br/ >
156
157
Enjoy it now!!!
158
159
<br/ ><br/ >
160
161
Be Sociable, Share!!!
162
163
</p>
164
165
166
167
<a href="?page=skyscraper_options" style="color:#ffffff;text-decoration:none;" ><img src="<?php echo SOCIABLE_HTTP_PATH ?>images/button_newsky.png" ></a>
168
169
170
171
</td>
172
173
</tr>
174
175
</table>
176
177
</TD>
178
179
180
181
182
183
</TR>
184
185
</TABLE>
186
187
<BR/>
188
189
190
191
</div>
192
193
<div class="wrap" style="margin-left:30px;width:48%;float:left">
194
195
<TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px">
196
197
<TR>
198
199
<TD class="Border-Left" ></TD><TD class="BG-Middle" >Classic Sociable</TD><TD class="Border-Right"></TD>
200
201
</TR>
202
203
<TR>
204
205
<TD colspan="3" >
206
207
<div style="margin-left:5px;">
208
209
<br /><br />
210
211
<span style="font-size:18px;color:#18305e;font-weight:bold;">Classic Sociable</span>
212
213
214
215
<p style="font-size:12px;color:#939393;font-weight:bold;" >
216
217
We've improved our visual interface, the default icons are now much
218
219
<br/ >
220
221
more appealing, and a touch bit larger (you do want your readers to
222
223
<br/ >
224
225
share your posts, don't you? :) Get it now!
226
227
</p>
228
229
<img src="<?php echo SOCIABLE_HTTP_PATH ?>images/socciable_old.png" ><br/>
230
231
<div style="height: 176px;"></div>
232
233
<a href="?page=sociable_options" style="color:#ffffff;text-decoration:none;" ><img src="<?php echo SOCIABLE_HTTP_PATH ?>images/button_sociabb.png" ></a>
234
235
</div>
236
237
</TD>
238
239
240
241
</TR>
242
243
</TABLE>
244
245
<BR/>
246
247
248
249
</div>
250
251
</div>
252
<?php }
253
254
255
256
function create_select_options($value){
257
258
-
259
260
for($i=3; $i<=9; ){
261
262
263
264
$sel = "";
265
266
if ($value == $i){
267
268
$sel = "selected";
269
270
}
271
272
echo "<option ".$sel." value='".$i."'> latest ".$i."</option>";
273
274
275
276
$i = $i+3;
277
278
}
279
}
280
281
282
283
284
function Create_Options_Page_Skycraper(){
285
286
-
287
288
global $skyscraper_options;
289
290
-
291
-
292
?>
293
294
<div class="wrap" style="width:48%;float:left">
295
296
-
297
298
<DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >
299
300
<iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblogplay.com%2F&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=true&amp;action=recommend&amp;colorscheme=light&amp;font&amp;height=80&amp;appId=133479460071366" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:40px;" allowTransparency="true"></iframe>
301
302
- <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://blogplay.com/" data-via="sociablesite" data-hashtags="sociable">Tweet</a>
303
304
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
305
306
<br />
307
308
</div>
309
310
- <form method="post" action="options.php" id="form1" autocomplete="off">
311
312
-
313
314
<?php wp_nonce_field('sociable-config'); ?>
315
316
<INPUT type="hidden" class="version-INPUT" id="version" name="skyscraper_options[version]" value="<?php echo $skyscraper_options["version"];?>" />
317
318
<TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px">
319
320
<TR>
321
322
<TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Style Options","sociable");?></TD><TD class="Border-Right"></TD>
323
324
</TR>
325
326
</TABLE>
327
328
<BR/>
329
330
<DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >
331
332
<?php _e("Text Size","sociable");?>:
333
334
<select id="text_size" name="skyscraper_options[text_size]" style="margin-left:73px">
335
336
<?php
337
338
- for($px=10; $px <= 20; $px++) {
339
340
-
341
342
$sel = "";
343
344
if($px== $skyscraper_options["text_size"])$sel = "selected";
345
346
?>
347
348
<option <?php echo $sel?> value="<?php echo $px?>"><?php echo $px?>px</option>
349
350
- <?php
351
352
-
353
354
}?>
355
@@ -357,66 +666,60 @@ share your posts, don't you? :) Get it now!
357
358
</DIV>
359
360
-
361
362
<DIV style="margin:0 0 0 24px" class="Post-subTXT" id="Post-subTXT" ><?php _e("Widget Width","sociable");?>:
363
364
<select id="text_size" id="widget_width" name="skyscraper_options[widget_width]" style="margin-left:50px">
365
366
- <?php
367
368
- for($wi=70; $wi <= 90; ) {
369
370
-
371
372
$sel = "";
373
374
- if($wi== $skyscraper_options["widget_width"])$sel = "selected";
375
376
- ?>
377
378
<option <?php echo $sel?> value="<?php echo $wi?>"><?php echo $wi?>px</option>
379
-
380
<?php
381
382
$wi +=5;
383
384
}?>
385
386
- </select>
387
388
-
389
390
- </DIV>
391
392
-
393
394
<DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" ><?php _e("Background Color","sociable");?>:
395
396
-
397
398
<input value="<?php echo $skyscraper_options['background_color']?>" style="margin-left:22px" id="background_color" name="skyscraper_options[background_color]" type="text" /> ( #fefefe default color)
399
400
-
401
-
402
</DIV>
403
404
-
405
406
<DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" ><?php _e("Labels Color","sociable");?>:
407
408
-
409
410
<input value="<?php echo $skyscraper_options['labels_color']?>" style="margin-left:49px" id="background_color" name="skyscraper_options[labels_color]" type="text" /> ( #f7f7f7 default color)
411
412
-
413
414
</DIV>
415
416
-
417
-
418
<BR/>
419
420
<TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Tagline-Title">
421
422
<TR>
@@ -439,8 +742,6 @@ share your posts, don't you? :) Get it now!
439
440
<?php _e("Your Twitter username","sociable");?>:<?php
441
442
-
443
-
444
if (!empty($skyscraper_options["twitter_username"])){
445
446
$twitter_username = $skyscraper_options["twitter_username"];
@@ -452,2162 +753,4553 @@ share your posts, don't you? :) Get it now!
452
$twitter_username = "@";
453
454
}
455
-
456
?>
457
458
<input type="text" name="skyscraper_options[twitter_username]" value="<?php echo $twitter_username?>" />
459
460
<select name="skyscraper_options[num_tweets]" id="num_tweets">
461
462
<?php self:: create_select_options($skyscraper_options["num_tweets"]) ?>
463
464
</select>
465
466
</DIV>
467
468
<BR/>
469
470
<DIV style="margin:0 0 0 25px" class="Post-subTXT">
471
472
<?php _e("Your RSS feed","sociable");?>:
473
474
<?php
475
476
477
478
if (!empty($skyscraper_options["rss_feed"])){
479
480
$rss_feed = $skyscraper_options["rss_feed"];
481
482
}
483
484
else{
485
486
$rss_feed = "http://";
487
488
}
489
490
?>
491
492
<input type="text" name="skyscraper_options[rss_feed]" style="margin-left: 46px;" value="<?php echo $rss_feed?>" />
493
494
<select name="skyscraper_options[num_rss]" id="num_rss">
495
496
<?php self:: create_select_options($skyscraper_options["num_rss"]) ?>
497
498
</select>
499
500
</DIV>
501
502
<BR/>
503
504
<DIV style="margin:0 0 0 25px" class="Post-subTXT">
505
506
<?php
507
508
$checked = "";
509
510
if (isset($skyscraper_options["counters"]["check"])){
511
512
$checked = "checked";
513
514
}
515
516
517
518
$folded = "";
519
520
$unfolded= "";
521
522
if (isset($skyscraper_options["counters"]["folded"])){
523
524
if($skyscraper_options["counters"]["folded"] == "1"){
525
526
$folded = "checked";
527
528
$unfolded= "";
529
530
}else{
531
532
$unfolded = "checked";
533
534
$folded= "";
535
536
}
537
538
}
539
540
541
542
543
544
?>
545
546
<input type="checkbox" <?php echo $checked ?> name="skyscraper_options[counters][check]" id="" />
547
548
Counters
549
550
<input name="skyscraper_options[counters][folded]" <?php echo $unfolded?> value="0" type="radio">Folded
551
552
<input name="skyscraper_options[counters][folded]" <?php echo $folded?> value="1" type="radio">Unfolded
553
554
</DIV>
555
556
<BR/>
557
558
<DIV style="margin:0 0 0 25px" class="Post-subTXT">
559
560
<?php
561
562
$checked = "";
563
564
if (isset($skyscraper_options["share"]["check"])){
565
566
$checked = "checked";
567
568
}
569
570
571
572
if (isset($skyscraper_options["share"]["folded"])){
573
574
if($skyscraper_options["share"]["folded"] == "1"){
575
576
$folded = "checked";
577
578
$unfolded= "";
579
580
}else{
581
582
$unfolded = "checked";
583
584
$folded= "";
585
586
}
587
588
}
589
590
591
592
593
594
?>
595
596
597
598
<input type="checkbox" <?php echo $checked ?> name="skyscraper_options[share][check]" /> Share
599
600
<input style="margin-left:19px" <?php echo $unfolded?> value="0" name="skyscraper_options[share][folded]" type="radio">Folded
601
602
- <input name="skyscraper_options[share][folded]" <?php echo $folded?> value="1" type="radio">Unfolded
603
604
- </DIV>
605
606
- <DIV class="Content-Box" id="Preview-Content">
607
608
-
609
610
</DIV>
611
612
<div style="clear:both"></div>
613
614
615
616
<BR/>
617
618
<DIV class="Content-Box" id="Preview-Content">
619
620
<ul class="items_li">
621
622
<li>
623
624
<?php
625
626
$checked = "";
627
628
if (isset($skyscraper_options['follow_us_check']) && $skyscraper_options['follow_us_check'] == "on"){
629
630
$checked = "checked";
631
632
}
633
634
?>
635
636
Follow Us
637
638
<ul class="sub_item_li">
639
640
<li>
641
642
<?php
643
644
$checked = "";
645
646
if (isset($skyscraper_options['follow_us']['twitter']["active"]) && $skyscraper_options['follow_us']['twitter']["active"] == "on"){
647
648
$checked = "checked";
649
650
}
651
652
?>
653
654
<input <?php echo $checked ?> name="skyscraper_options[follow_us][twitter][active]" type="checkbox" style="padding-bottom:5px" />
655
656
<?php
657
658
$account = "http://twitter.com/";
659
660
if(!empty($skyscraper_options["follow_us"]["twitter"]["account"])){
661
662
$account = $skyscraper_options["follow_us"]["twitter"]["account"];
663
664
}
665
666
?>
667
668
<input type="hidden" value="t.png" name="skyscraper_options[follow_us][twitter][logo]" />
669
670
<img style="padding-bottom:5px" src="<?php echo SOCIABLE_HTTP_PATH ?>images/toolbar/t.png"/>
671
672
<input size="40" name="skyscraper_options[follow_us][twitter][account]" value="<?php echo $account?>" type="text" />
673
674
</li>
675
676
<li>
677
678
<?php
679
680
$checked = "";
681
682
if ( isset($skyscraper_options['follow_us']['feed']["active"]) && $skyscraper_options['follow_us']['feed']["active"] == "on"){
683
684
$checked = "checked";
685
686
}
687
688
?>
689
690
<input <?php echo $checked ?> name="skyscraper_options[follow_us][feed][active]" type="checkbox" style="padding-bottom:5px" />
691
692
<input type="hidden" value="rss.png" name="skyscraper_options[follow_us][feed][logo]" />
693
694
<?php
695
696
$rss = "http://";
697
698
if(!empty($skyscraper_options["follow_us"]["feed"]["account"])){
699
700
701
702
$rss = $skyscraper_options["follow_us"]["feed"]["account"];
703
704
}
705
706
?>
707
708
<img style="padding-bottom:5px" src="<?php echo SOCIABLE_HTTP_PATH ?>images/toolbar/rss.png"/>
709
710
<input size="40" value="<?php echo $rss?>" name="skyscraper_options[follow_us][feed][account]" type="text" />
711
712
</li>
713
714
<li>
715
716
<?php
717
718
$checked = "";
719
720
if ( isset($skyscraper_options['follow_us']['fb']["active"]) && $skyscraper_options['follow_us']['fb']["active"] == "on"){
721
722
$checked = "checked";
723
724
}
725
726
?>
727
728
<input <?php echo $checked ?> name="skyscraper_options[follow_us][fb][active]" type="checkbox" style="padding-bottom:5px" />
729
730
<input type="hidden" value="f.png" name="skyscraper_options[follow_us][fb][logo]" />
731
732
733
734
<?php
735
736
$fb = "http://facebook.com/";
737
738
if(!empty($skyscraper_options["follow_us"]["fb"]["account"])){
739
740
741
742
$fb = $skyscraper_options["follow_us"]["fb"]["account"];
743
744
}
745
746
?>
747
748
<img style="padding-bottom:5px" src="<?php echo SOCIABLE_HTTP_PATH ?>images/toolbar/f.png"/>
749
750
<input size="40" value="<?php echo $fb?>" name="skyscraper_options[follow_us][fb][account]" type="text" />
751
752
</li>
753
754
755
756
<li>
757
758
<?php
759
760
$checked = "";
761
762
if ( isset($skyscraper_options['follow_us']['li']["active"]) && $skyscraper_options['follow_us']['li']["active"] == "on"){
763
764
$checked = "checked";
765
766
}
767
768
?>
769
770
<input <?php echo $checked ?> name="skyscraper_options[follow_us][li][active]" type="checkbox" style="padding-bottom:5px" />
771
772
<input type="hidden" value="i.png" name="skyscraper_options[follow_us][li][logo]" />
773
774
<input type="hidden" value="linkedin.com/in/" name="skyscraper_options[follow_us][li][url]" />
775
776
<?php
777
778
$li = "http://linkedin.com/";
779
780
if(!empty($skyscraper_options["follow_us"]["li"]["account"])){
781
782
783
784
$li = $skyscraper_options["follow_us"]["li"]["account"];
785
786
}
787
788
?>
789
790
<img style="padding-bottom:5px" src="<?php echo SOCIABLE_HTTP_PATH ?>images/toolbar/i.png"/>
791
792
<input size="40" value="<?php echo $li?>" name="skyscraper_options[follow_us][li][account]" type="text" />
793
794
</li>
795
796
</ul>
797
798
</li>
799
800
</ul>
801
802
</DIV>
803
804
<br />
805
806
<!-- general options -->
807
808
<TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('GeneralOptions');">
809
810
<TR>
811
812
<TD class="Border-Left" ></TD><TD class="BG-Middle" id="GeneralOptions-Title" ><span id="GeneralOptions-Tab"> + </span> <?php _e("General Options","sociable");?></TD><TD class="Border-Right"></TD>
813
814
</TR>
815
816
</TABLE>
817
818
<BR/>
819
820
821
822
<DIV class="Content-Box" id="GeneralOptions-Content" style="display:none;" >
823
824
825
826
<BR/>
827
828
<DIV align="center" style="width:100%;">
829
830
<TABLE align="center" class="GeneralOptions-List" cellspacing="0" border=0 cellpadding ="10" >
831
832
833
834
<TR valign="top" >
835
836
<TD align="right" class="Title" ><?php _e("Widget Position","sociable")?></TD>
837
838
<TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["widget_position"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[widget_position]" id="widget_position" /></TD>
839
840
<TD align="left" class="Content">
841
842
<SPAN class="TXT"><?php _e("Check if you want Sociable Fixed on the screen","sociable");?> </SPAN>
843
844
<BR/>
845
846
847
848
</TD>
849
850
</TR>
851
852
</TABLE>
853
854
<BR/><BR/>
855
856
</DIV>
857
858
</DIV>
859
860
<TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Locations');" >
861
862
<TR>
863
864
<TD class="Border-Left" ></TD><TD class="BG-Middle" id="Locations-Title" ><span id="Locations-Tab">+ </span><?php _e("Locations","sociable");?></TD><TD class="Border-Right"></TD>
865
866
</TR>
867
868
</TABLE>
869
870
<BR/>
871
872
873
874
<DIV class="Content-Box" id="Locations-Content" style="display:none;" >
875
876
<DIV class="Locations-TXT" id="Locations-TXT" ><?php _e("Please select the locations that you wish to allow the Sociable plugin to insert itself.","sociable");?></DIV>
877
878
879
880
<BR/>
881
882
<DIV align="center" style="width:100%;">
883
884
<TABLE align="center" class="Locations-List" cellspacing="0" border=0 cellpadding="10">
885
886
<TR valign="top" >
887
888
<TD align="right" class="Title" ><?php _e("Home page","sociable");?></TD>
889
890
<TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_front_page"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_front_page]" id="HomePage" /></TD>
891
892
<TD align="left" class="Content">
893
894
<SPAN class="TXT"><?php _e("The front page of the blog (if set to a static page), or the main blog page (if set to your latest posts).","sociable");?></SPAN>
895
896
897
898
</TD>
899
900
</TR>
901
902
903
904
<TR valign="top" >
905
906
<TD align="right" class="Title" ><?php _e("Blog page","sociable");?></TD>
907
908
<TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_home"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_home]" id="BlogPage" /></TD>
909
910
<TD align="left" class="Content">
911
912
<SPAN class="TXT"><?php _e("The home page of the blog if is set to your latest posts, or the posts page if the home page is set to a static page","sociable");?></SPAN>
913
914
915
916
</TD>
917
918
</TR>
919
920
921
922
<TR valign="top" >
923
924
<TD align="right" class="Title" ><?php _e("Posts","sociable");?></TD>
925
926
<TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_single"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_single]" id="Posts" /></TD>
927
928
<TD align="left" class="Content">
929
930
<SPAN class="TXT"><?php _e("Single post pages","sociable");?></SPAN>
931
932
933
934
</TD>
935
936
</TR>
937
938
939
940
<TR valign="top" >
941
942
<TD align="right" class="Title" ><?php _e("Pages","sociable");?></TD>
943
944
<TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_page"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_page]" id="Pages" /></TD>
945
946
<TD align="left" class="Content">
947
948
<SPAN class="TXT"><?php _e("Individual Wordpress pages","sociable");?></SPAN>
949
950
951
952
</TD>
953
954
</TR>
955
956
957
958
<TR valign="top" >
959
960
<TD align="right" class="Title" ><?php _e("Category archives","sociable");?></TD>
961
962
<TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_category"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_category]" id="CategoryArchives" /></TD>
963
964
<TD align="left" class="Content">
965
966
<SPAN class="TXT"><?php _e("Category archive pages","sociable");?></SPAN>
967
968
969
970
</TD>
971
972
</TR>
973
974
975
976
<TR valign="top" >
977
<TD align="right" class="Title" ><?php _e("Date archives","sociable");?></TD>
978
979
<TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_date"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_date]" id="DateArchives" /></TD>
980
981
<TD align="left" class="Content">
982
983
<SPAN class="TXT"><?php _e("Date archive pages","sociable");?> </SPAN>
984
985
986
987
</TD>
988
989
</TR>
990
991
992
993
<TR valign="top" >
994
995
<TD align="right" class="Title" ><?php _e("Tag archives","sociable");?></TD>
996
997
<TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_tag"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_tag]" id="TagArchives" /></TD>
998
999
<TD align="left" class="Content">
1000
1001
<SPAN class="TXT"><?php _e("Tag archive pages","sociable");?> </SPAN>
1002
1003
1004
1005
</TD>
1006
1007
</TR>
1008
1009
1010
1011
<TR valign="top" >
1012
1013
<TD align="right" class="Title" ><?php _e("Author archives","sociable");?></TD>
1014
1015
<TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_author"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_author]" id="AuthorArchives" /></TD>
1016
1017
<TD align="left" class="Content">
1018
1019
<SPAN class="TXT"><?php _e("Author archive pages","sociable");?></SPAN>
1020
1021
1022
1023
</TD>
1024
1025
</TR>
1026
1027
1028
1029
<TR valign="top" >
1030
1031
<TD align="right" class="Title" ><?php _e("Search results","sociable");?></TD>
1032
1033
<TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_search"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_search]" id="SearchResults" /></TD>
1034
1035
<TD align="left" class="Content">
1036
1037
<SPAN class="TXT"><?php _e("Search results pages","sociable");?></SPAN>
1038
1039
1040
1041
</TD>
1042
1043
</TR>
1044
1045
1046
1047
<TR valign="top" >
1048
1049
<TD align="right" class="Title" ><?php _e("RSS feeds","sociable");?></TD>
1050
1051
<TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_rss"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_rss]" id="RssFeeds" /></TD>
1052
1053
<TD align="left" class="Content">
1054
1055
<SPAN class="TXT"><?php _e("RSS feeds","sociable");?></SPAN>
1056
1057
1058
1059
</TD>
1060
1061
</TR>
1062
1063
1064
1065
</TABLE>
1066
1067
<BR/><BR/>
1068
1069
</DIV>
1070
1071
</DIV>
1072
1073
1074
1075
<TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Active');" >
1076
1077
<TR>
1078
1079
<TD class="Border-Left" ></TD><TD class="BG-Middle" id="Active-Title" ><span id="Active-Tab">+ </span><?php _e("Active Skyscraper","sociable");?></TD><TD class="Border-Right"></TD>
1080
1081
</TR>
1082
1083
</TABLE>
1084
1085
1086
1087
<div style="display: block;" id="Active-Content" class="Content-Box">
1088
1089
1090
1091
<br>
1092
1093
- <div align="center" style="width:100%;">
1094
1095
<table align="center" cellspacing="0" cellpadding="10" border="0" class="GeneralOptions-List">
1096
1097
1098
1099
<tbody><tr valign="top">
1100
1101
<td align="right" class="Title">Active Skyscraper</td>
1102
1103
<td align="left" style="width:5px;">
1104
1105
<input <?php if(isset($skyscraper_options["active"])) echo "checked='checked'"?> type="checkbox" id="active" name="skyscraper_options[active]" ></td>
1106
1107
<td align="left" class="Content">
1108
1109
<span class="TXT">Check if you want Sociable Skyscraper enable </span>
1110
1111
<br>
1112
1113
1114
1115
</td>
1116
1117
</tr>
1118
1119
</tbody></table>
1120
1121
<br><br>
1122
1123
</div>
1124
1125
</div>
1126
1127
<br/><br/>
1128
1129
<?php settings_fields( 'skyscraper_options_group' ); ?>
1130
1131
</form>
1132
1133
<div class="Content-Box">
1134
1135
1136
1137
<form id="sociable_reset_form" action="" method="POST">
1138
1139
<?php wp_nonce_field('sociable-reset'); ?>
1140
1141
<input type="hidden" id="skyscraper_reset" name="skyscraper_reset" value="1">
1142
1143
<?php //submit_button( __( 'Reset Sociable' ) , 'primary', 'sociable_reset', false ); ?>
1144
1145
</form>
1146
1147
1148
1149
<div id="ActionsBar">
1150
1151
<div style="cursor:pointer;line-height:15px;" onclick="document.getElementById('form1').submit();" class="SaveChanges"><br>
1152
1153
<span style="margin:30px;">Save Changes</span>
1154
1155
</div>
1156
1157
<div style="cursor:pointer;line-height:15px;font-size:12px;" onclick="document.getElementById('sociable_reset_form').submit();" name="sociable_reset" id="sociable_reset" class="ResetSociable"><br>
1158
1159
<span style="margin:40px;margin-left:35px;">Reset Skyscraper</span>
1160
1161
</div>
1162
1163
</div>
1164
1165
</div>
1166
1167
1168
1169
</div>
1170
1171
<div style="float:left;width:49%;margin-left:15px" name="skyscraper" id="skyscraper">
1172
1173
<script type="text/javascript">
1174
var base_url_sociable = "<?php echo SOCIABLE_HTTP_PATH?>";
1175
</script>
1176
1177
</div>
1178
<?php
1179
1180
}
1181
1182
1183
1184
/**
1185
1186
* Add The Menu Pages To The Administration Options
1187
1188
*/
1189
1190
1191
1192
function add_menu_pages(){
1193
1194
1195
1196
global $sociable_post_types;
1197
1198
1199
1200
$url = $_SERVER["QUERY_STRING"];
1201
1202
// $page[] = add_options_page( __( 'Sociable Options' ), __( 'Sociable Plugin' ), 'manage_options', 'sociable_select' , array( 'sociable_Admin_Options' , 'Select_Sociable_Page' ) );
1203
1204
//$page[]= add_plugins_page( __( 'Sociable Options' ), __( 'Sociable Plugin' ), 'manage_options', 'Create_Options_Page_Skycraper' );
1205
1206
//$page[]= add_plugins_page( 'sociable_options', 'sociable_options', 'read', 'Create_Options_Page' );
1207
1208
$page[] = add_options_page( "","", 'manage_options', 'sociable_select' , array( 'sociable_Admin_Options' , 'Select_Sociable_Page' ) );
1209
1210
$page[] = add_options_page( "","", 'manage_options', 'sociable_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page' ) );
1211
1212
$page[] = add_options_page( "","", 'manage_options', 'skyscraper_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page_Skycraper' ) );
1213
1214
// Add a new submenu under Settings:
1215
1216
// $page[] = add_options_page(__( 'Sociable Options' ),__( 'Sociable Plugin' ), 'manage_options', 'sociable_select', 'Select_Sociable_Page');
1217
// Add a new top-level menu (ill-advised):
1218
1219
add_menu_page(__( 'Sociable Options' ), __( 'Select Sociable Plugin' ), 'manage_options', '/options-general.php?page=sociable_select' );
1220
// Add a submenu to the custom top-level menu:
1221
1222
add_submenu_page('options-general.php?page=sociable_select', __( 'Sociable Options' ), __( 'Sociable Options' ), 'manage_options', 'sociable_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page' ) );
1223
// Add a second submenu to the custom top-level menu:
1224
1225
add_submenu_page('options-general.php?page=sociable_select', __( 'Skyscraper Options' ), __( 'Skyscraper Options' ), 'manage_options', 'skyscraper_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page_Skycraper' ) );
1226
1227
1228
//Add CSS And Javascript Specific To This Options Pages
1229
1230
add_action( 'admin_print_styles-' . $page[0] , array( 'sociable_Admin_Options' , 'enqueue_styles' ) );
1231
1232
add_action( 'admin_print_scripts-' . $page[0] , array( 'sociable_Admin_Options' , 'enqueue_scripts' ) );
1233
1234
1235
1236
add_action( 'admin_print_styles-' . $page[1] , array( 'sociable_Admin_Options' , 'enqueue_styles' ) );
1237
1238
add_action( 'admin_print_scripts-' . $page[1] , array( 'sociable_Admin_Options' , 'enqueue_scripts' ) );
1239
add_action( 'admin_print_styles-' . $page[2] , array( 'sociable_Admin_Options' , 'enqueue_styles' ) );
1240
1241
add_action( 'admin_print_scripts-' . $page[2] , array( 'sociable_Admin_Options' , 'enqueue_scripts' ) );
1242
1243
1244
1245
if( isset( $_POST['sociable_reset'] ) ){
1246
1247
check_admin_referer( 'sociable-reset' );
1248
1249
1250
1251
sociable_reset();
1252
1253
wp_redirect( $_SERVER['HTTP_REFERER' ] );
1254
1255
}
1256
1257
1258
1259
if( isset( $_POST['skyscraper_reset'] ) ){
1260
1261
check_admin_referer( 'sociable-reset' );
1262
1263
1264
1265
skyscraper_reset();
1266
1267
wp_redirect( $_SERVER['HTTP_REFERER' ] );
1268
1269
}
1270
1271
1272
1273
1274
1275
/*
1276
1277
* We can create The Meta Boxes Here
1278
1279
*/
1280
1281
foreach( $sociable_post_types as $type => $data ){
1282
1283
self::add_meta_box( $type );
1284
1285
}
1286
1287
//Also on posts and pages
1288
1289
self::add_meta_box( 'post' );
1290
1291
self::add_meta_box( 'page' );
1292
1293
1294
1295
}
1296
1297
1298
1299
/*
1300
1301
* Function to Enqueue The Styles For The Options Page
1302
1303
*/
1304
1305
function enqueue_styles(){
1306
1307
wp_enqueue_style( 'style-admin-css', SOCIABLE_HTTP_PATH . 'css/style-admin.css' );
1308
1309
wp_enqueue_style( 'sociable-admin-css', SOCIABLE_HTTP_PATH . 'css/sociable-admin.css' );
1310
1311
wp_enqueue_style( 'sociablecss' , SOCIABLE_HTTP_PATH . 'css/sociable.css' );
1312
1313
}
1314
1315
1316
1317
/*
1318
1319
* Function To Enqueue The Scripts For The Options Page
1320
1321
*/
1322
1323
function enqueue_scripts(){
1324
1325
wp_enqueue_script('jquery');
1326
1327
wp_enqueue_script('jquery-ui-core',false,array('jquery'));
1328
1329
wp_enqueue_script('jquery-ui-sortable',false,array('jquery','jquery-ui-core'));
1330
1331
- wp_enqueue_script( 'sociable-admin-js', SOCIABLE_HTTP_PATH . 'js/sociable-admin.js' , array( 'jquery','jquery-ui-core' , 'jquery-ui-sortable' ) );
1332
1333
- wp_enqueue_script( 'admin-fn-js', SOCIABLE_HTTP_PATH . 'js/admin-fn.js' , array( 'jquery','jquery-ui-core' , 'jquery-ui-sortable' ) );
1334
1335
-
1336
1337
- }
1338
1339
1340
1341
-
1342
1343
-
1344
1345
/*
1346
1347
* Function To Add The Settings Fields.
1348
1349
*/
1350
function do_site_selection_list($plugin = 'sociable'){
1351
1352
1353
1354
if ($plugin == 'sociable'){
1355
1356
1357
1358
global $sociable_options;
1359
1360
$option_plugin = $sociable_options;
1361
1362
$name_plugin = "sociable_options";
1363
1364
}
1365
1366
else{
1367
1368
1369
1370
global $skyscraper_options;
1371
1372
$option_plugin = $skyscraper_options;
1373
1374
$name_plugin = "skyscraper_options";
1375
1376
}
1377
1378
1379
1380
1381
1382
$sociable_known_sites = get_option( 'sociable_known_sites' );
1383
/*
1384
1385
* Sort The List Based On The Active Sites So That They Display Correctly.
1386
1387
*/
1388
1389
$active_sites = isset( $option_plugin['active_sites'] ) && is_array( $option_plugin['active_sites'] ) ? $option_plugin['active_sites'] : array() ;
1390
1391
1392
1393
//Start Blank
1394
1395
$active = Array();
1396
1397
1398
1399
//Disabled Untill Proven Active
1400
1401
$disabled = $sociable_known_sites;
1402
1403
1404
1405
//Loop Through The Active Sites, sorting into 2 arrays
1406
1407
foreach( $active_sites as $siten