WP Facebook Auto Publish - Version 1.4.7

Version Description

= Facebook Auto Publish 1.0.1 = If you had issues with default image used for auto publishing, you may apply this upgrade.

= Facebook Auto Publish 1.0 = First official launch.

Download this release

Release Info

Developer f1logic
Plugin Icon 128x128 WP Facebook Auto Publish
Version 1.4.7
Comparing to
See all releases

Code changes from version 1.4.6 to 1.4.7

admin/about.php CHANGED
@@ -1,36 +1,18 @@
1
  <?php
2
  if( !defined('ABSPATH') ){ exit();}
3
  ?>
4
- <style>
5
- .buy-button {
6
- display:block;
7
- color:white;
8
- padding:5px 21px;
9
- background: #545454;
10
- border: 0;
11
- border-bottom: 2px solid #545454;
12
- cursor: pointer;
13
- -webkit-box-shadow: inset 0 -2px #545454;
14
- box-shadow: inset 0 -2px #545454;
15
- text-decoration: none;
16
- font-size: 14px;
17
- font-weight: bold;
18
- border-radius:3px;
19
- }
20
- </style>
21
-
22
  <h1 style="visibility: visible;">Facebook Auto Publish (V <?php echo xyz_fbap_plugin_get_version(); ?>)</h1>
23
 
24
  <div style="width: 99%">
25
  <p style="text-align: justify">
26
  Facebook Auto Publish automatically publishes posts from your blog to your Facebook pages. It allows you to filter posts based on post-types and categories.
27
- Facebook Auto Publish is developed and maintained by <a href="http://xyzscripts.com">xyzscripts</a>.</p>
28
 
29
 
30
 
31
  <p style="text-align: justify">
32
  If you would like to have more features , please try <a
33
- href="http://xyzscripts.com/wordpress-plugins/facebook-auto-publish/features"
34
  target="_blank">XYZ Social Media Auto Publish</a> which is a premium version of this
35
  plugin. We have included a quick comparison of the free and premium
36
  plugins for your reference.
@@ -46,135 +28,162 @@ Facebook Auto Publish automatically publishes posts from your blog to your Face
46
  </tr>
47
  <!-- Supported Media -->
48
  <tr>
49
- <td rowspan="5"><h4>Supported Media</h4></td>
50
  <td>Facebook</td>
51
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
52
  </td>
53
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
54
  </td>
55
  </tr>
56
 
57
  <tr>
58
  <td>Twitter</td>
59
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
60
  </td>
61
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
62
  </td>
63
  </tr>
64
  <tr>
65
  <td>LinkedIn</td>
66
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
 
 
 
 
 
 
 
67
  </td>
68
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
69
  </td>
70
  </tr>
71
  <tr>
72
  <td>Pinterest<span style="color: #FF8000;font-size: 14px;font-weight: bold;">*</span></td>
73
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
74
  </td>
75
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
76
  </td>
77
  </tr>
78
  <tr>
79
  <td>Google Plus<span style="color: #FF8000;font-size: 14px;font-weight: bold;">*</span></td>
80
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
81
  </td>
82
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
83
  </td>
84
  </tr>
85
  <!-- Posting Options -->
86
  <tr>
87
- <td rowspan="12"><h4>Posting Options</h4></td>
88
  <td>Publish to facebook profile/pages</td>
89
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
90
  </td>
91
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
 
 
 
 
 
 
 
92
  </td>
93
  </tr>
94
-
95
  <tr>
96
  <td>Publish to twitter profile</td>
97
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
98
  </td>
99
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
100
  </td>
101
  </tr>
102
 
103
  <tr>
104
  <td>Publish to linkedin profile/company pages</td>
105
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
 
 
 
 
 
 
 
 
106
  </td>
107
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
108
  </td>
109
  </tr>
110
 
111
  <tr>
112
  <td>Publish to pinterest boards</td>
113
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
114
  </td>
115
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
116
  </td>
117
  </tr>
118
 
119
  <tr>
120
  <td>Publish to google plus profile/pages</td>
121
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
122
  </td>
123
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
 
 
 
 
 
 
 
124
  </td>
125
  </tr>
126
-
127
  <tr>
128
  <td>Option to republish existing posts</td>
129
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
130
  </td>
131
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
132
  </td>
133
  </tr>
134
 
135
  <tr>
136
  <td>Publish to multiple social media accounts</td>
137
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
138
  </td>
139
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
140
  </td>
141
  </tr>
142
 
143
  <tr>
144
  <td>Seperate message formats for publishing to multiple social media accounts</td>
145
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
146
  </td>
147
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
148
  </td>
149
  </tr>
150
 
151
  <tr>
152
  <td>Save auto publish settings of individual posts</td>
153
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
154
  </td>
155
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
156
  </td>
157
  </tr>
158
 
159
  <tr>
160
  <td>Hash Tags support for Facebook, Twitter, Linkedin, Pinterest and Google plus</td>
161
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
162
  </td>
163
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
164
  </td>
165
  </tr>
166
  <tr>
167
  <td>Option to use post tags as hash tags</td>
168
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
169
  </td>
170
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
171
  </td>
172
  </tr>
173
  <tr>
174
  <td>Enable/Disable SSL peer verification</td>
175
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
176
  </td>
177
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
178
  </td>
179
  </tr>
180
 
@@ -184,58 +193,72 @@ Facebook Auto Publish automatically publishes posts from your blog to your Face
184
  <tr>
185
  <td rowspan="5"><h4>Image Options</h4></td>
186
  <td>Publish images along with post content</td>
187
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
188
  </td>
189
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
190
  </td>
191
  </tr>
192
 
193
 
194
  <tr>
195
  <td>Separate default image url for publishing to multiple social media accounts</td>
196
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
197
  </td>
198
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
199
  </td>
200
  </tr>
201
 
202
  <tr>
203
  <td>Option to specify preference from featured image, post content, post meta and open graph tags</td>
204
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
205
  </td>
206
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
207
  </td>
208
  </tr>
209
  <tr>
210
- <td>Publish multiple images to facebook and twitter along with post content</td>
211
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
212
  </td>
213
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
214
  </td>
215
  </tr>
216
  <tr>
217
  <td>Option to specify multiphoto preference from post content and post meta</td>
218
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
219
  </td>
220
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
221
  </td>
222
  </tr>
223
 
224
  <!-- Video Options -->
225
  <tr>
226
- <td rowspan="2"><h4>Video Options</h4></td>
227
- <td>Publish video to facebook and twitter along with post content</td>
228
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
229
  </td>
230
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
231
  </td>
232
  </tr>
233
 
234
  <tr>
235
  <td>Option to specify preference from post content, post meta and open graph tags</td>
236
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
 
 
 
 
 
 
 
237
  </td>
238
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
 
 
 
 
 
 
 
239
  </td>
240
  </tr>
241
  <!-- Filter Options -->
@@ -243,84 +266,91 @@ Facebook Auto Publish automatically publishes posts from your blog to your Face
243
  <tr>
244
  <td rowspan="7"><h4>Filter Options</h4></td>
245
  <td>Filter posts to publish based on categories</td>
246
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
247
  </td>
248
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
249
  </td>
250
  </tr>
251
 
252
  <tr>
253
  <td>Filter posts to publish based on custom post types</td>
254
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
255
  </td>
256
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
257
  </td>
258
  </tr>
259
 
260
  <tr>
261
  <td>Configuration to enable/disable page publishing</td>
262
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
263
  </td>
264
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
265
  </td>
266
  </tr>
267
 
268
  <tr>
269
  <td>Category filter for individual accounts</td>
270
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
271
  </td>
272
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
273
  </td>
274
  </tr>
275
 
276
  <tr>
277
  <td>Custom post type filter for individual accounts</td>
278
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
279
  </td>
280
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
281
  </td>
282
  </tr>
283
 
284
  <tr>
285
  <td>Enable/Disable page publishing for individual accounts</td>
286
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
287
  </td>
288
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
289
  </td>
290
  </tr>
291
  <tr>
292
  <td>Override auto publish scheduling for individual accounts</td>
293
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
294
  </td>
295
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
296
  </td>
297
  </tr>
298
 
299
  <!-- Scheduling -->
300
 
301
  <tr>
302
- <td rowspan="3"><h4>Scheduling</h4></td>
303
  <td>Instantaneous post publishing</td>
304
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
305
  </td>
306
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
307
  </td>
308
  </tr>
309
 
310
  <tr>
311
  <td>Scheduled post publishing using cron</td>
312
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
313
  </td>
314
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
315
  </td>
316
  </tr>
317
 
 
 
 
 
 
 
 
318
 
319
  <tr>
320
  <td>Configurable auto publishing time interval</td>
321
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
322
  </td>
323
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
324
  </td>
325
  </tr>
326
 
@@ -331,71 +361,71 @@ Facebook Auto Publish automatically publishes posts from your blog to your Face
331
  <tr>
332
  <td rowspan="4"><h4>Publishing History</h4></td>
333
  <td>View auto publish history</td>
334
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
335
  </td>
336
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
337
  </td>
338
  </tr>
339
  <tr>
340
  <td>View auto publish error logs</td>
341
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
342
  </td>
343
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
344
  </td>
345
  </tr>
346
 
347
  <tr>
348
  <td>Option to republish post</td>
349
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
350
  </td>
351
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
352
  </td>
353
  </tr>
354
 
355
  <tr>
356
  <td>Option to reschedule publishing</td>
357
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
358
  </td>
359
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
360
  </td>
361
  </tr>
362
  <!-- Installation and Support -->
363
  <tr>
364
  <td rowspan="2"><h4>Installation and Support</h4></td>
365
  <td>Free Installation</td>
366
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
367
  </td>
368
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
369
  </td>
370
  </tr>
371
  <tr>
372
  <td>Privilege customer support</td>
373
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
374
  </td>
375
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
376
  </td>
377
  </tr>
378
  <!-- Addons and Support -->
379
  <tr>
380
  <td rowspan="3"><h4>Addon Features</h4></td>
381
  <td>Advanced Autopublish Scheduler</td>
382
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
383
  </td>
384
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
385
  </td>
386
  </tr>
387
  <tr>
388
  <td>URL-Shortener</td>
389
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
390
  </td>
391
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
392
  </td>
393
  </tr>
394
  <tr>
395
  <td>Privilege Management</td>
396
- <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
397
  </td>
398
- <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
399
  </td>
400
  </tr>
401
  <tr>
@@ -407,7 +437,7 @@ Facebook Auto Publish automatically publishes posts from your blog to your Face
407
  <tr>
408
  <td>Purchase</td>
409
  <td></td>
410
- <td style="padding: 2px" ><a target="_blank"href="https://xyzscripts.com/members/product/purchase/XYZWPSMPPRE" class="buy-button">Buy Now</a>
411
  </td>
412
  </tr>
413
 
1
  <?php
2
  if( !defined('ABSPATH') ){ exit();}
3
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  <h1 style="visibility: visible;">Facebook Auto Publish (V <?php echo xyz_fbap_plugin_get_version(); ?>)</h1>
5
 
6
  <div style="width: 99%">
7
  <p style="text-align: justify">
8
  Facebook Auto Publish automatically publishes posts from your blog to your Facebook pages. It allows you to filter posts based on post-types and categories.
9
+ Facebook Auto Publish is developed and maintained by <a href="https://xyzscripts.com">xyzscripts</a>.</p>
10
 
11
 
12
 
13
  <p style="text-align: justify">
14
  If you would like to have more features , please try <a
15
+ href="https://xyzscripts.com/wordpress-plugins/social-media-auto-publish/features"
16
  target="_blank">XYZ Social Media Auto Publish</a> which is a premium version of this
17
  plugin. We have included a quick comparison of the free and premium
18
  plugins for your reference.
28
  </tr>
29
  <!-- Supported Media -->
30
  <tr>
31
+ <td rowspan="6"><h4>Supported Media</h4></td>
32
  <td>Facebook</td>
33
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
34
  </td>
35
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
36
  </td>
37
  </tr>
38
 
39
  <tr>
40
  <td>Twitter</td>
41
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
42
  </td>
43
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
44
  </td>
45
  </tr>
46
  <tr>
47
  <td>LinkedIn</td>
48
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
49
+ </td>
50
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
51
+ </td>
52
+ </tr>
53
+ <tr>
54
+ <td>Tumblr</td>
55
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
56
  </td>
57
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
58
  </td>
59
  </tr>
60
  <tr>
61
  <td>Pinterest<span style="color: #FF8000;font-size: 14px;font-weight: bold;">*</span></td>
62
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
63
  </td>
64
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
65
  </td>
66
  </tr>
67
  <tr>
68
  <td>Google Plus<span style="color: #FF8000;font-size: 14px;font-weight: bold;">*</span></td>
69
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
70
  </td>
71
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
72
  </td>
73
  </tr>
74
  <!-- Posting Options -->
75
  <tr>
76
+ <td rowspan="15"><h4>Posting Options</h4></td>
77
  <td>Publish to facebook profile/pages</td>
78
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
79
  </td>
80
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
81
+ </td>
82
+ </tr>
83
+ <tr>
84
+ <td>Publish to facebook groups/events</td>
85
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
86
+ </td>
87
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
88
  </td>
89
  </tr>
 
90
  <tr>
91
  <td>Publish to twitter profile</td>
92
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
93
  </td>
94
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
95
  </td>
96
  </tr>
97
 
98
  <tr>
99
  <td>Publish to linkedin profile/company pages</td>
100
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
101
+ </td>
102
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
103
+ </td>
104
+ </tr>
105
+
106
+ <tr>
107
+ <td>Publish to tumblr profile</td>
108
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
109
  </td>
110
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
111
  </td>
112
  </tr>
113
 
114
  <tr>
115
  <td>Publish to pinterest boards</td>
116
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
117
  </td>
118
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
119
  </td>
120
  </tr>
121
 
122
  <tr>
123
  <td>Publish to google plus profile/pages</td>
124
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
125
  </td>
126
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
127
+ </td>
128
+ </tr>
129
+ <tr>
130
+ <td>Option to add twitter image description for visually impaired people</td>
131
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
132
+ </td>
133
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
134
  </td>
135
  </tr>
 
136
  <tr>
137
  <td>Option to republish existing posts</td>
138
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
139
  </td>
140
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
141
  </td>
142
  </tr>
143
 
144
  <tr>
145
  <td>Publish to multiple social media accounts</td>
146
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
147
  </td>
148
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
149
  </td>
150
  </tr>
151
 
152
  <tr>
153
  <td>Seperate message formats for publishing to multiple social media accounts</td>
154
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
155
  </td>
156
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
157
  </td>
158
  </tr>
159
 
160
  <tr>
161
  <td>Save auto publish settings of individual posts</td>
162
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
163
  </td>
164
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
165
  </td>
166
  </tr>
167
 
168
  <tr>
169
  <td>Hash Tags support for Facebook, Twitter, Linkedin, Pinterest and Google plus</td>
170
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
171
  </td>
172
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
173
  </td>
174
  </tr>
175
  <tr>
176
  <td>Option to use post tags as hash tags</td>
177
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
178
  </td>
179
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
180
  </td>
181
  </tr>
182
  <tr>
183
  <td>Enable/Disable SSL peer verification</td>
184
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
185
  </td>
186
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
187
  </td>
188
  </tr>
189
 
193
  <tr>
194
  <td rowspan="5"><h4>Image Options</h4></td>
195
  <td>Publish images along with post content</td>
196
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
197
  </td>
198
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
199
  </td>
200
  </tr>
201
 
202
 
203
  <tr>
204
  <td>Separate default image url for publishing to multiple social media accounts</td>
205
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
206
  </td>
207
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
208
  </td>
209
  </tr>
210
 
211
  <tr>
212
  <td>Option to specify preference from featured image, post content, post meta and open graph tags</td>
213
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
214
  </td>
215
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
216
  </td>
217
  </tr>
218
  <tr>
219
+ <td>Publish multiple images to facebook, tumblr and twitter along with post content</td>
220
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
221
  </td>
222
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
223
  </td>
224
  </tr>
225
  <tr>
226
  <td>Option to specify multiphoto preference from post content and post meta</td>
227
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
228
  </td>
229
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
230
  </td>
231
  </tr>
232
 
233
  <!-- Video Options -->
234
  <tr>
235
+ <td rowspan="4"><h4>Video/Audio Options</h4></td>
236
+ <td>Publish video to facebook, tumblr and twitter along with post content</td>
237
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
238
  </td>
239
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
240
  </td>
241
  </tr>
242
 
243
  <tr>
244
  <td>Option to specify preference from post content, post meta and open graph tags</td>
245
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
246
+ </td>
247
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
248
+ </td>
249
+ </tr>
250
+ <tr>
251
+ <td>Publish audio to tumblr along with post content</td>
252
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
253
  </td>
254
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
255
+ </td>
256
+ </tr>
257
+ <tr>
258
+ <td>Option to specify audio preference from post content, post meta and open graph tags</td>
259
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
260
+ </td>
261
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
262
  </td>
263
  </tr>
264
  <!-- Filter Options -->
266
  <tr>
267
  <td rowspan="7"><h4>Filter Options</h4></td>
268
  <td>Filter posts to publish based on categories</td>
269
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
270
  </td>
271
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
272
  </td>
273
  </tr>
274
 
275
  <tr>
276
  <td>Filter posts to publish based on custom post types</td>
277
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
278
  </td>
279
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
280
  </td>
281
  </tr>
282
 
283
  <tr>
284
  <td>Configuration to enable/disable page publishing</td>
285
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
286
  </td>
287
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
288
  </td>
289
  </tr>
290
 
291
  <tr>
292
  <td>Category filter for individual accounts</td>
293
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
294
  </td>
295
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
296
  </td>
297
  </tr>
298
 
299
  <tr>
300
  <td>Custom post type filter for individual accounts</td>
301
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
302
  </td>
303
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
304
  </td>
305
  </tr>
306
 
307
  <tr>
308
  <td>Enable/Disable page publishing for individual accounts</td>
309
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
310
  </td>
311
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
312
  </td>
313
  </tr>
314
  <tr>
315
  <td>Override auto publish scheduling for individual accounts</td>
316
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
317
  </td>
318
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
319
  </td>
320
  </tr>
321
 
322
  <!-- Scheduling -->
323
 
324
  <tr>
325
+ <td rowspan="4"><h4>Scheduling</h4></td>
326
  <td>Instantaneous post publishing</td>
327
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
328
  </td>
329
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
330
  </td>
331
  </tr>
332
 
333
  <tr>
334
  <td>Scheduled post publishing using cron</td>
335
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
336
  </td>
337
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
338
  </td>
339
  </tr>
340
 
341
+ <tr>
342
+ <td>Status summary of auto publish tasks by mail</td>
343
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
344
+ </td>
345
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
346
+ </td>
347
+ </tr>
348
 
349
  <tr>
350
  <td>Configurable auto publishing time interval</td>
351
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
352
  </td>
353
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
354
  </td>
355
  </tr>
356
 
361
  <tr>
362
  <td rowspan="4"><h4>Publishing History</h4></td>
363
  <td>View auto publish history</td>
364
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
365
  </td>
366
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
367
  </td>
368
  </tr>
369
  <tr>
370
  <td>View auto publish error logs</td>
371
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
372
  </td>
373
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
374
  </td>
375
  </tr>
376
 
377
  <tr>
378
  <td>Option to republish post</td>
379
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
380
  </td>
381
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
382
  </td>
383
  </tr>
384
 
385
  <tr>
386
  <td>Option to reschedule publishing</td>
387
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
388
  </td>
389
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
390
  </td>
391
  </tr>
392
  <!-- Installation and Support -->
393
  <tr>
394
  <td rowspan="2"><h4>Installation and Support</h4></td>
395
  <td>Free Installation</td>
396
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
397
  </td>
398
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
399
  </td>
400
  </tr>
401
  <tr>
402
  <td>Privilege customer support</td>
403
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
404
  </td>
405
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
406
  </td>
407
  </tr>
408
  <!-- Addons and Support -->
409
  <tr>
410
  <td rowspan="3"><h4>Addon Features</h4></td>
411
  <td>Advanced Autopublish Scheduler</td>
412
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
413
  </td>
414
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
415
  </td>
416
  </tr>
417
  <tr>
418
  <td>URL-Shortener</td>
419
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
420
  </td>
421
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
422
  </td>
423
  </tr>
424
  <tr>
425
  <td>Privilege Management</td>
426
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
427
  </td>
428
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
429
  </td>
430
  </tr>
431
  <tr>
437
  <tr>
438
  <td>Purchase</td>
439
  <td></td>
440
+ <td style="padding: 2px" ><a target="_blank"href="https://xyzscripts.com/members/product/purchase/XYZWPSMPPRE" class="xyz-fbap-buy-button">Buy Now</a>
441
  </td>
442
  </tr>
443
 
admin/admin-notices.php CHANGED
@@ -22,29 +22,36 @@ function wp_fbap_admin_notice()
22
  );
23
  $sharelink_text_fb = array_rand($sharelink_text_array_fb, 1);
24
  $sharelink_text_fb = $sharelink_text_array_fb[$sharelink_text_fb];
25
-
26
-
27
- echo '<div id="fb_notice_td" class="error" style="color: #c1c1c1;margin-left: 2px;background: none repeat scroll 0pt 0pt infobackground; border: 1px solid inactivecaption; padding: 5px;line-height:16px;">
28
- <p>It looks like you have been enjoying using <a href="https://wordpress.org/plugins/facebook-auto-publish/" target="_blank"> Facebook Auto Publish </a> plugin from Xyzscripts for atleast 30 days.Would you consider supporting us with the continued development of the plugin using any of the below methods?</p>
 
 
 
 
 
 
 
 
29
  <p>
30
- <a href="https://wordpress.org/support/view/plugin-reviews/facebook-auto-publish" class="button" style="color:black;text-decoration:none;padding:5px;margin-right:4px;" target="_blank">Rate it 5★\'s on wordpress</a>
31
- <a href="http://xyzscripts.com/wordpress-plugins/social-media-auto-publish/purchase" class="button" style="color:black;text-decoration:none;padding:5px;margin-right:4px;" target="_blank">Purchase premium version</a>';
32
  if(get_option('xyz_credit_link')=="0")
33
- echo '<a class="button xyz_fbap_backlink" style="color:black;text-decoration:none;padding:5px;margin-right:4px;" target="_blank">Enable Backlink</a>';
34
 
35
- echo '<a href="#TB_inline?width=250&height=75&inlineId=show_share_icons_fb" class="button thickbox" style="color:black;text-decoration:none;padding:5px;margin-right:4px;" target="_blank">Share on</a>
 
36
 
37
- <a href="admin.php?page=facebook-auto-publish-settings&fbap_notice=hide" class="button" style="color:black;text-decoration:none;padding:5px;margin-right:4px;">Don\'t Show This Again</a>
38
  </p>
39
-
40
  <div id="show_share_icons_fb" style="display: none;">
41
- <a class="button" style="background-color:#3b5998;color:white;margin-right:4px;margin-left:100px;margin-top: 25px;" href="http://www.facebook.com/sharer/sharer.php?u=https://wordpress.org/plugins/facebook-auto-publish/&text='.$sharelink_text_fb.'" target="_blank">Facebook</a>
42
- <a class="button" style="background-color:#00aced;color:white;margin-right:4px;margin-left:20px;margin-top: 25px;" href="http://twitter.com/share?url=https://wordpress.org/plugins/facebook-auto-publish/&text='.$sharelink_text_fb.'" target="_blank">Twitter</a>
43
- <a class="button" style="background-color:#007bb6;color:white;margin-right:4px;margin-left:20px;margin-top: 25px;" href="http://www.linkedin.com/shareArticle?mini=true&url=https://wordpress.org/plugins/facebook-auto-publish/" target="_blank">LinkedIn</a>
44
- <a class="button" style="background-color:#dd4b39;color:white;margin-right:4px;margin-left:20px;margin-top: 25px;" href="https://plus.google.com/share?&hl=en&url=https://wordpress.org/plugins/facebook-auto-publish/" target="_blank">google+</a>
45
  </div>
46
- </div>';
47
-
48
  }
49
  $fbap_installed_date = get_option('fbap_installed_date');
50
  if ($fbap_installed_date=="") {
22
  );
23
  $sharelink_text_fb = array_rand($sharelink_text_array_fb, 1);
24
  $sharelink_text_fb = $sharelink_text_array_fb[$sharelink_text_fb];
25
+ $xyz_fbap_link = admin_url('admin.php?page=facebook-auto-publish-settings&fbap_blink=en');
26
+ $xyz_fbap_link = wp_nonce_url($xyz_fbap_link,'fbap-blk');
27
+ $xyz_fbap_notice = admin_url('admin.php?page=facebook-auto-publish-settings&fbap_notice=hide');
28
+ $xyz_fbap_notice = wp_nonce_url($xyz_fbap_notice,'fbap-shw');
29
+ echo '
30
+ <script type="text/javascript">
31
+ function xyz_fbap_shareon_tckbox(){
32
+ tb_show("Share on","#TB_inline?width=500&amp;height=75&amp;inlineId=show_share_icons_fb&class=thickbox");
33
+ }
34
+ </script>
35
+ <div id="fbap_notice_td" class="error" style="color: #666666;margin-left: 2px; padding: 5px;line-height:16px;">
36
+ <p>Thank you for using <a href="https://wordpress.org/plugins/facebook-auto-publish/" target="_blank"> Facebook Auto Publish </a> plugin from <a href="https://xyzscripts.com/" target="_blank">xyzscripts.com</a>. Would you consider supporting us with the continued development of the plugin using any of the below methods?</p>
37
  <p>
38
+ <a href="https://wordpress.org/support/plugin/facebook-auto-publish/reviews" class="button xyz_rate_btn" target="_blank">Rate it 5★\'s on wordpress</a>';
 
39
  if(get_option('xyz_credit_link')=="0")
40
+ echo '<a href="'.$xyz_fbap_link.'" class="button xyz_backlink_btn xyz_blink">Enable Backlink</a>';
41
 
42
+ echo '<a class="button xyz_share_btn" onclick=xyz_fbap_shareon_tckbox();>Share on</a>
43
+ <a href="https://xyzscripts.com/donate/5" class="button xyz_donate_btn" target="_blank">Donate</a>
44
 
45
+ <a href="'.$xyz_fbap_notice.'" class="button xyz_show_btn">Don\'t Show This Again</a>
46
  </p>
47
+
48
  <div id="show_share_icons_fb" style="display: none;">
49
+ <a class="button" style="background-color:#3b5998;color:white;margin-right:4px;margin-left:100px;margin-top: 25px;" href="http://www.facebook.com/sharer/sharer.php?u=https://xyzscripts.com/wordpress-plugins/Facebook-auto-publish/" target="_blank">Facebook</a>
50
+ <a class="button" style="background-color:#00aced;color:white;margin-right:4px;margin-left:20px;margin-top: 25px;" href="http://Twitter.com/share?url=https://xyzscripts.com/wordpress-plugins/Facebook-auto-publish/&text='.$sharelink_text_fb.'" target="_blank">Twitter</a>
51
+ <a class="button" style="background-color:#007bb6;color:white;margin-right:4px;margin-left:20px;margin-top: 25px;" href="http://www.linkedin.com/shareArticle?mini=true&url=https://xyzscripts.com/wordpress-plugins/Facebook-auto-publish/" target="_blank">LinkedIn</a>
52
+ <a class="button" style="background-color:#dd4b39;color:white;margin-right:4px;margin-left:20px;margin-top: 25px;" href="https://plus.google.com/share?&hl=en&url=https://xyzscripts.com/wordpress-plugins/Facebook-auto-publish/" target="_blank">google+</a>
53
  </div>
54
+ </div>';
 
55
  }
56
  $fbap_installed_date = get_option('fbap_installed_date');
57
  if ($fbap_installed_date=="") {
admin/ajax-backlink.php CHANGED
@@ -4,23 +4,27 @@ add_action('wp_ajax_xyz_fbap_ajax_backlink', 'xyz_fbap_ajax_backlink_call');
4
 
5
  function xyz_fbap_ajax_backlink_call() {
6
 
7
-
8
  global $wpdb;
9
-
10
  if($_POST){
11
- if (! isset( $_POST['_wpnonce'] )
12
- || ! wp_verify_nonce( $_POST['_wpnonce'],'backlink' )
13
- ) {
14
  echo 1;die;
15
- // wp_nonce_ays( 'backlink' );
16
- //exit();
17
-
18
- }
19
-
20
- update_option('xyz_credit_link','fbap');
 
 
 
 
 
 
 
 
21
  }
22
  die();
23
  }
24
 
25
-
26
  ?>
4
 
5
  function xyz_fbap_ajax_backlink_call() {
6
 
 
7
  global $wpdb;
 
8
  if($_POST){
9
+ if (! isset( $_POST['_wpnonce'] )|| ! wp_verify_nonce( $_POST['_wpnonce'],'backlink' ))
10
+ {
 
11
  echo 1;die;
12
+ }
13
+ if(current_user_can('administrator')){
14
+ global $wpdb;
15
+ if(isset($_POST)){
16
+ if(intval($_POST['enable'])==1){
17
+ update_option('xyz_credit_link','fbap');
18
+ echo "fbap";
19
+ }
20
+ if(intval($_POST['enable'])==-1){
21
+ update_option('xyz_fbap_credit_dismiss', "hide");
22
+ echo -1;
23
+ }
24
+ }
25
+ }
26
  }
27
  die();
28
  }
29
 
 
30
  ?>
admin/destruction.php CHANGED
@@ -50,10 +50,11 @@ function fbap_free_destroy()
50
  delete_option('xyz_fbap_post_logs');
51
  delete_option('xyz_twap_premium_version_ads');
52
  delete_option('xyz_fbap_default_selection_edit');
53
- delete_option('xyz_fbap_utf_decode_enable');
54
  delete_option('xyz_fbap_fb_numericid');
55
  delete_option('fbap_installed_date');
56
  delete_option('xyz_fbap_dnt_shw_notice');
 
57
  }
58
 
59
  register_uninstall_hook(XYZ_FBAP_PLUGIN_FILE,'fbap_free_network_destroy');
50
  delete_option('xyz_fbap_post_logs');
51
  delete_option('xyz_twap_premium_version_ads');
52
  delete_option('xyz_fbap_default_selection_edit');
53
+ // delete_option('xyz_fbap_utf_decode_enable');
54
  delete_option('xyz_fbap_fb_numericid');
55
  delete_option('fbap_installed_date');
56
  delete_option('xyz_fbap_dnt_shw_notice');
57
+ delete_option('xyz_fbap_credit_dismiss');
58
  }
59
 
60
  register_uninstall_hook(XYZ_FBAP_PLUGIN_FILE,'fbap_free_network_destroy');
admin/footer.php CHANGED
@@ -1,177 +1,166 @@
1
- <?php
2
- if( !defined('ABSPATH') ){ exit();}
3
- if(get_option('xyz_fbap_premium_version_ads')==1){?>
4
- <div id="xyz-wp-fbap-premium">
5
-
6
- <div style="float: left; padding: 0 5px">
7
- <h2 style="vertical-align: middle;">
8
- <a target="_blank"
9
- href="http://xyzscripts.com/wordpress-plugins/social-media-auto-publish/features">Fully
10
- Featured XYZ WP SMAP Premium Plugin</a> - Just 39 USD
11
- </h2>
12
- </div>
13
- <div style="float: left; margin-top: 3px">
14
- <a target="_blank"
15
- href="http://xyzscripts.com/members/product/purchase/XYZWPSMPPRE"><img class="hoverImages"
16
- src="<?php echo plugins_url("facebook-auto-publish/admin/images/orange_buynow.png"); ?>">
17
- </a>
18
- </div>
19
- <div style="float: left; padding: 0 5px">
20
- <h2 style="vertical-align: middle;text-shadow: 1px 1px 1px #686868">
21
- ( <a href="<?php echo admin_url('admin.php?page=facebook-auto-publish-about');?>">Compare Features</a> )
22
- </h2>
23
- </div>
24
- </div>
25
- <?php }?>
26
-
27
- <div style="clear: both;"></div>
28
-
29
-
30
- <p></p>
31
-
32
- <div style="width: 100%">
33
-
34
- <div class="xyz_feedback">
35
-
36
-
37
- <a target="_blank" href="http://xyzscripts.com/donate/1" class="xyz_donate">Donate a dollar</a>
38
- <a target="_blank" href="http://wordpress.org/support/view/plugin-reviews/facebook-auto-publish" class="xyz_star">Rate this plugin</a>
39
- <a target="_blank" href="http://xyzscripts.com/support/" class="xyz_suggest">Suggestions</a>
40
- <a target="_blank" href="http://facebook.com/xyzscripts" class="xyz_fbook">Like us on facebook</a>
41
- <a target="_blank" href="http://twitter.com/xyzscripts" class="xyz_twitt">Follow us on twitter</a>
42
- <a target="_blank" href="https://plus.google.com/+Xyzscripts" class="xyz_gplus">+1 us on Google+</a>
43
-
44
-
45
- </div>
46
-
47
- <p></p>
48
-
49
- <div class="xyz_subscribe">
50
-
51
- <script language="javascript">
52
- function check_email(emailString)
53
- {
54
- var mailPattern = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,})$/;
55
- var matchArray = emailString.match(mailPattern);
56
- if (emailString.length == 0)
57
- return false;
58
-
59
- if (matchArray == null) {
60
- return false;
61
- }else{
62
- return true;
63
- }
64
- }
65
-
66
-
67
- function verify_lists(form)
68
- {
69
-
70
- var total=0;
71
- var checkBox=form['chk[]'];
72
-
73
- if(checkBox.length){
74
-
75
- for(var i=0;i<checkBox.length;i++){
76
- checkBox[i].checked?total++:null;
77
- }
78
- }else{
79
-
80
- checkBox.checked?total++:null;
81
-
82
- }
83
- if(total>0){
84
- return true;
85
- }else{
86
- return false;
87
- }
88
-
89
- }
90
-
91
- function verify_fields()
92
- {
93
-
94
- if(check_email(document.email_subscription.email.value) == false){
95
- alert("Please check whether the email is correct.");
96
- document.email_subscription.email.select();
97
- return false;
98
- }else if(verify_lists(document.email_subscription)==false){
99
- alert("Select atleast one list.");
100
- }
101
- else{
102
- document.email_subscription.submit();
103
- }
104
-
105
- }
106
- </script>
107
- <?php global $current_user; wp_get_current_user(); ?>
108
- <form action=http://xyzscripts.com/newsletter/index.php?page=list/subscribe method="post" name="email_subscription" id="email_subscription" >
109
- <input type="hidden" name="fieldNameIds" value="1,">
110
- <input type="hidden" name="redirActive" value="http://xyzscripts.com/subscription/pending/XYZWPSMPPRE">
111
- <input type="hidden" name="redirPending" value="http://xyzscripts.com/subscription/active/XYZWPSMPPRE">
112
- <input type="hidden" name="mode" value="1">
113
-
114
- <b>Stay tuned to our updates :</b>
115
- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
116
-
117
- Name :
118
- <input style="border: 1px solid #3fafe3; margin-right:10px;padding:5px;" type="text" name="field1" value="<?php
119
- if ($current_user->user_firstname != "" || $current_user->user_lastname != "")
120
- {
121
- echo esc_html($current_user->user_firstname) . " " . esc_html($current_user->user_lastname);
122
- }
123
- else if (strcasecmp($current_user->display_name, 'admin')!=0 && strcasecmp($current_user->display_name , "administrator")!=0 )
124
- {
125
- echo esc_html($current_user->display_name);
126
- }
127
- else if (strcasecmp($current_user->user_login ,"admin")!=0 && strcasecmp($current_user->user_login , "administrator")!=0 )
128
- {
129
- echo esc_html($current_user->user_login);
130
- }
131
- ?>" >
132
-
133
- Email Address :
134
- <input style="border: 1px solid #3fafe3;padding:5px;" name="email"
135
- type="text" value="<?php echo esc_html($current_user->user_email); ?>" /><span style="color:#FF0000">*</span>
136
-
137
- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
138
- <input class="submit_fbap" type="submit" value="Subscribe" name="Submit" onclick="javascript: if(!verify_fields()) return false; " />
139
-
140
- <input type="hidden" name="listName" value="7,1,"/>
141
- </form>
142
-
143
-
144
-
145
- </div>
146
-
147
-
148
- <p></p>
149
-
150
- <div style="padding-top: ;" class="xyz_plugins">
151
- Our Plugins :
152
-
153
- <a target="_blank" href="http://wordpress.org/plugins/contact-form-manager/">Contact Form Manager</a>
154
- <a target="_blank" href="http://wordpress.org/plugins/facebook-auto-publish/">Facebook Auto Publish</a>
155
- <a target="_blank" href="http://wordpress.org/plugins/full-screen-popup/">Full Screen Popup</a>
156
- <a target="_blank" href="http://wordpress.org/plugins/insert-html-snippet/">Insert HTML Snippet</a>
157
- <a target="_blank" href="http://wordpress.org/plugins/insert-php-code-snippet/">Insert PHP Code Snippet</a>
158
- <a target="_blank" href="http://wordpress.org/plugins/lightbox-pop/">Lightbox Pop</a>
159
- <a target="_blank" href="http://wordpress.org/plugins/linkedin-auto-publish/">LinkedIn Auto Publish</a>
160
- <a target="_blank" href="http://wordpress.org/plugins/newsletter-manager/">Newsletter Manager</a>★
161
- <a target="_blank" href="http://wordpress.org/plugins/popup-dialog-box/">Popup Dialog Box</a>
162
- <a target="_blank" href="http://wordpress.org/plugins/quick-bar/">Quick Bar</a> ★
163
- <a target="_blank" href="http://wordpress.org/plugins/quick-box-popup/">Quick Box Popup</a>
164
- <a target="_blank" href="http://wordpress.org/plugins/social-media-auto-publish/">Social Media Auto Publish</a>
165
- <a target="_blank" href="http://wordpress.org/plugins/twitter-auto-publish/">Twitter Auto Publish</a> ★
166
- <a target="_blank" href="http://wordpress.org/plugins/custom-field-manager/">Custom Field Manager</a> ★
167
- <a target="_blank" href="http://wordpress.org/plugins/wp-filter-posts/">WP Filter Posts</a> ★
168
- <a target="_blank" href="https://wordpress.org/plugins/wp-gallery-manager/">WP Gallery Manager</a>
169
- </div>
170
-
171
- <div style="padding-top: 10px;text-align: center;">
172
- Powered by <a href="http://xyzscripts.com" target="_blank">XYZScripts</a>
173
- </div>
174
-
175
- <div style="clear: both;"></div>
176
-
177
- </div>
1
+ <?php
2
+ if( !defined('ABSPATH') ){ exit();}
3
+ if(get_option('xyz_fbap_premium_version_ads')==1){?>
4
+ <div id="xyz-wp-fbap-premium">
5
+
6
+ <div style="float: left; padding: 0 5px">
7
+ <h2 style="vertical-align: middle;">
8
+ <a target="_blank" href="https://xyzscripts.com/wordpress-plugins/social-media-auto-publish/features">Fully
9
+ Featured XYZ WP SMAP Premium Plugin</a> - Just 39 USD
10
+ </h2>
11
+ </div>
12
+ <div class="xyz-fbap-buy-now">
13
+ <a target="_blank" href="https://xyzscripts.com/members/product/purchase/XYZWPSMPPRE"><img
14
+ src="<?php echo plugins_url("images/orange_buynow.png",XYZ_FBAP_PLUGIN_FILE); ?>">
15
+ </a>
16
+ </div>
17
+ <div style="float: left; padding: 0 5px">
18
+ <h2 style="vertical-align: middle;text-shadow: 1px 1px 1px #686868">
19
+ ( <a href="<?php echo admin_url('admin.php?page=facebook-auto-publish-about');?>">Compare Features</a> )
20
+ </h2>
21
+ </div>
22
+ </div>
23
+ <?php }?>
24
+
25
+ <div style="clear: both;"></div>
26
+ <div style="width: 100%">
27
+ <div class="xyz_fbap_social_media">
28
+ <h3 class="xyz_fbap_inner_head">Follow Us </h3>
29
+ <a target="_blank" href="http://facebook.com/xyzscripts" class="xyz_home_fbook"></a>
30
+ <a target="_blank" href="http://twitter.com/xyzscripts" class="xyz_home_twitt"></a>
31
+ <a target="_blank" href="https://plus.google.com/+Xyzscripts/" class="xyz_home_gplus"></a>
32
+ <a style="margin-right:0px;" target="_blank" href="https://www.linkedin.com/company/xyzscripts" class="xyz_home_linkedin"></a>
33
+ </div>
34
+
35
+ <div class="xyz_fbap_sugession">
36
+ <h3 class="xyz_fbap_inner_head">Support</h3>
37
+ <p style="width:100%;"><a target="_blank" href="https://xyzscripts.com/donate/5" >Donate</a></p>
38
+ <p style="width:100%;"><a target="_blank" href="https://xyzscripts.com/support/" >Contact Us</a></p>
39
+ <p><a target="_blank" href="https://wordpress.org/support/plugin/facebook-auto-publish/reviews/" >Please Rate Us
40
+ </a></p>
41
+ <a target="_blank" href="https://wordpress.org/support/plugin/facebook-auto-publish/reviews/" ><span class="xyz_new_star"></span></a>
42
+
43
+ <p style="width:100%;"><a target="_blank" href="https://wordpress.org/support/plugin/facebook-auto-publish/" >Create a ticket at Wordpress forum</a></p>
44
+ </div>
45
+ <div class="xyz_fbap_new_subscribe">
46
+ <h3 class="xyz_fbap_inner_head">Stay tuned for our updates</h3>
47
+
48
+ <script language="javascript">
49
+ function check_email(emailString)
50
+ {
51
+ var mailPattern = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,})$/;
52
+ var matchArray = emailString.match(mailPattern);
53
+ if (emailString.length == 0)
54
+ return false;
55
+
56
+ if (matchArray == null) {
57
+ return false;
58
+ }else{
59
+ return true;
60
+ }
61
+ }
62
+
63
+
64
+ function verify_lists(form)
65
+ {
66
+
67
+ var total=0;
68
+ var checkBox=form['chk[]'];
69
+
70
+ if(checkBox.length){
71
+
72
+ for(var i=0;i<checkBox.length;i++){
73
+ checkBox[i].checked?total++:null;
74
+ }
75
+ }else{
76
+
77
+ checkBox.checked?total++:null;
78
+
79
+ }
80
+ if(total>0){
81
+ return true;
82
+ }else{
83
+ return false;
84
+ }
85
+
86
+ }
87
+
88
+ function verify_fields()
89
+ {
90
+
91
+ if(check_email(document.email_subscription.email.value) == false){
92
+ alert("Please check whether the email is correct.");
93
+ document.email_subscription.email.select();
94
+ return false;
95
+ }else if(verify_lists(document.email_subscription)==false){
96
+ alert("Select atleast one list.");
97
+ }
98
+ else{
99
+ document.email_subscription.submit();
100
+ }
101
+
102
+ }
103
+ </script>
104
+ <?php global $current_user; wp_get_current_user(); ?>
105
+ <form action="https://xyzscripts.com/newsletter/index.php?page=list/subscribe" method="post" name="email_subscription" id="email_subscription" target="_blank">
106
+ <input type="hidden" name="fieldNameIds" value="1,">
107
+ <input type="hidden" name="redirActive" value="https://xyzscripts.com/subscription/pending/XYZWPSMPPRE">
108
+ <input type="hidden" name="redirPending" value="https://xyzscripts.com/subscription/active/XYZWPSMPPRE">
109
+ <input type="hidden" name="mode" value="1">
110
+ <input class="xyz_fbap_name" type="text" placeholder="Name" name="field1" value="<?php
111
+ if ($current_user->user_firstname != "" || $current_user->user_lastname != "")
112
+ {
113
+ echo esc_html($current_user->user_firstname) . " " . esc_html($current_user->user_lastname);
114
+ }
115
+ else if (strcasecmp($current_user->display_name, 'admin')!=0 && strcasecmp($current_user->display_name , "administrator")!=0 )
116
+ {
117
+ echo esc_html($current_user->display_name);
118
+ }
119
+ else if (strcasecmp($current_user->user_login ,"admin")!=0 && strcasecmp($current_user->user_login , "administrator")!=0 )
120
+ {
121
+ echo esc_html($current_user->user_login);
122
+ }
123
+ ?>" >
124
+ <input class="xyz_fbap_email" name="email"
125
+ type="text" placeholder="Email" style="" value="<?php echo $current_user->user_email; ?>" />
126
+
127
+ <input id="xyz_fbap_submit_fbap" class="sbmt_btn" type="submit" value="Subscribe" name="Submit" onclick="javascript: if(!verify_fields()) return false; " />
128
+
129
+ <input type="hidden" name="listName" value="6,1,"/>
130
+ </form>
131
+ </div>
132
+
133
+ <div class="xyz_fbap_inmotion">
134
+ <a target="_blank" href="http://inmotion-hosting.evyy.net/c/1150074/260033/4222">
135
+ <img src="<?php echo plugins_url()?>/facebook-auto-publish/images/xyz.png" class="xyz_fbap_inmotion_label"></a></div>
136
+ </div>
137
+
138
+ <div style="clear: both;"></div>
139
+ <div style="width: 100%">
140
+
141
+ <div class="xyz_fbap_our_plugins_new">
142
+ <p class="xyz_fbap_plugin_head">Our Plugins : </p>
143
+
144
+ <a target="_blank" href="https://wordpress.org/plugins/social-media-auto-publish/"><span>1</span>Social Media Auto Publish</a>
145
+ <a target="_blank" href="https://wordpress.org/plugins/facebook-auto-publish/"><span>2</span>Facebook Auto Publish</a>
146
+ <a target="_blank" href="https://wordpress.org/plugins/twitter-auto-publish/"><span>3</span>Twitter Auto Publish</a>
147
+ <a target="_blank" href="https://wordpress.org/plugins/linkedin-auto-publish/"><span>4</span>LinkedIn Auto Publish</a>
148
+ <a target="_blank" href="https://wordpress.org/plugins/insert-html-snippet/"><span>5</span>Insert HTML Snippet</a>
149
+ <a target="_blank" href="https://wordpress.org/plugins/insert-php-code-snippet/"><span>6</span>Insert PHP Code Snippet</a>
150
+ <a target="_blank" href="https://wordpress.org/plugins/contact-form-manager/"><span>7</span>Contact Form Manager</a>
151
+ <a target="_blank" href="https://wordpress.org/plugins/newsletter-manager/"><span>8</span>Newsletter Manager</a>
152
+ <a target="_blank" href="https://wordpress.org/plugins/lightbox-pop/"><span>9</span>Lightbox Pop</a>
153
+ <a target="_blank" href="https://wordpress.org/plugins/full-screen-popup/"><span>10</span>Full Screen Popup</a>
154
+ <a target="_blank" href="https://wordpress.org/plugins/popup-dialog-box/"><span>11</span>Popup Dialog Box</a>
155
+ <a target="_blank" href="https://wordpress.org/plugins/quick-bar/"><span>12</span>Quick Bar</a>
156
+ <a target="_blank" href="https://wordpress.org/plugins/quick-box-popup/"><span>13</span>Quick Box Popup</a>
157
+ <a target="_blank" href="https://wordpress.org/plugins/custom-field-manager/"><span>14</span> Custom Field Manager</a>
158
+ <a target="_blank" href="https://wordpress.org/plugins/wp-filter-posts/"><span>15</span> WP Filter Posts</a>
159
+ <a target="_blank" href="https://wordpress.org/plugins/wp-gallery-manager/"><span>16</span> WP Gallery Manager</a>
160
+ </div>
161
+ </div>
162
+ <div class="xyz_fbap_poweredBy">
163
+ Powered by <a href="http://xyzscripts.com" target="_blank">XYZScripts</a>
164
+ </div>
165
+ <div style="clear: both;"></div>
166
+ <p style="clear: both;"></p>
 
 
 
 
 
 
 
 
 
 
 
admin/header.php CHANGED
@@ -1,34 +1,16 @@
1
  <?php
2
  if( !defined('ABSPATH') ){ exit();}
3
-
4
- if(get_option('xyz_fbap_premium_version_ads')==1){?>
5
- <div id="xyz-wp-fbap-premium">
6
-
7
- <div style="float: left; padding: 0 5px">
8
- <h2 style="vertical-align: middle;">
9
- <a target="_blank"
10
- href="http://xyzscripts.com/wordpress-plugins/social-media-auto-publish/features">Fully
11
- Featured XYZ WP SMAP Premium Plugin</a> - Just 39 USD
12
- </h2>
13
- </div>
14
- <div style="float: left; margin-top: 3px">
15
- <a target="_blank"
16
- href="http://xyzscripts.com/members/product/purchase/XYZWPSMPPRE"><img class="hoverImages"
17
- src="<?php echo plugins_url("facebook-auto-publish/admin/images/orange_buynow.png"); ?>">
18
- </a>
19
- </div>
20
- <div style="float: left; padding: 0 5px">
21
- <h2 style="vertical-align: middle;text-shadow: 1px 1px 1px #686868">
22
- ( <a href="<?php echo admin_url('admin.php?page=facebook-auto-publish-about');?>">Compare Features</a> )
23
- </h2>
24
- </div>
25
- </div>
26
- <?php }?>
27
-
28
- <?php
29
  if($_POST && isset($_POST['xyz_credit_link']))
30
  {
31
-
 
 
 
32
  $xyz_credit_link=$_POST['xyz_credit_link'];
33
 
34
  update_option('xyz_credit_link', $xyz_credit_link);
@@ -37,24 +19,50 @@ if($_POST && isset($_POST['xyz_credit_link']))
37
  Settings updated successfully. &nbsp;&nbsp;&nbsp;<span id="system_notice_area_dismiss">Dismiss</span>
38
  </div>
39
  <?php
40
- }?>
41
 
 
 
 
 
 
 
 
 
 
 
 
42
 
43
- <?php
 
 
 
 
44
 
45
- if(get_option('xyz_credit_link')=="0"){
 
 
46
  ?>
47
  <div style="float:left;background-color: #FFECB3;border-radius:5px;padding: 0px 5px;margin-top: 10px;border: 1px solid #E0AB1B" id="xyz_backlink_div">
48
 
49
- Please do a favour by enabling backlink to our site. <a class="xyz_fbap_backlink" style="cursor: pointer;" >Okay, Enable</a>.
 
50
  <script type="text/javascript">
51
  jQuery(document).ready(function() {
52
 
53
- jQuery('.xyz_fbap_backlink').click(function() {
 
 
 
 
 
 
 
 
54
  var backlink_nonce= '<?php echo wp_create_nonce('backlink');?>';
55
  var dataString = {
56
  action: 'xyz_fbap_ajax_backlink',
57
- enable: 1,
58
  _wpnonce: backlink_nonce
59
  };
60
 
@@ -62,15 +70,18 @@ jQuery(document).ready(function() {
62
 
63
  if(response==1)
64
  alert("You do not have sufficient permissions");
65
- else{
66
  jQuery('.xyz_fbap_backlink').hide();
67
  jQuery("#xyz_backlink_div").html('Thank you for enabling backlink !');
68
  jQuery("#xyz_backlink_div").css('background-color', '#D8E8DA');
69
  jQuery("#xyz_backlink_div").css('border', '1px solid #0F801C');
70
- }
71
- });
 
 
72
 
73
  });
 
74
  });
75
  </script>
76
  </div>
@@ -87,19 +98,19 @@ jQuery(document).ready(function() {
87
  <table style="float:right; ">
88
  <tr>
89
  <td style="float:right;">
90
- <a title="Please help us to keep this plugin free forever by donating a dollar" class="xyz_fbap_link" style="margin-right:12px;" target="_blank" href="http://xyzscripts.com/donate/1">Donate</a>
91
  </td>
92
  <td style="float:right;">
93
- <a class="xyz_fbap_link" target="_blank" href="http://help.xyzscripts.com/docs/facebook-auto-publish/faq/">FAQ</a> |
94
  </td>
95
  <td style="float:right;">
96
- <a class="xyz_fbap_link" target="_blank" href="http://help.xyzscripts.com/docs/facebook-auto-publish/">Readme</a> |
97
  </td>
98
  <td style="float:right;">
99
- <a class="xyz_fbap_link" target="_blank" href="http://xyzscripts.com/wordpress-plugins/facebook-auto-publish/details">About</a> |
100
  </td>
101
  <td style="float:right;">
102
- <a class="xyz_fbap_link" target="_blank" href="http://xyzscripts.com">XYZScripts</a> |
103
  </td>
104
 
105
  </tr>
1
  <?php
2
  if( !defined('ABSPATH') ){ exit();}
3
+ ?><style>
4
+ a.xyz_header_link:hover{text-decoration:underline;}
5
+ .xyz_header_link{text-decoration:none;}
6
+ </style>
7
+ <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  if($_POST && isset($_POST['xyz_credit_link']))
9
  {
10
+ if (! isset( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'xyz_smap_basic_settings_form_nonce' )) {
11
+ wp_nonce_ays( 'xyz_smap_basic_settings_form_nonce' );
12
+ exit;
13
+ }
14
  $xyz_credit_link=$_POST['xyz_credit_link'];
15
 
16
  update_option('xyz_credit_link', $xyz_credit_link);
19
  Settings updated successfully. &nbsp;&nbsp;&nbsp;<span id="system_notice_area_dismiss">Dismiss</span>
20
  </div>
21
  <?php
22
+ }
23
 
24
+ if(!$_POST && isset($_GET['fbap_blink'])&&isset($_GET['fbap_blink'])=='en'){
25
+ if (! isset( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'],'fbap-blk')){
26
+ wp_nonce_ays( 'fbap-blk');
27
+ exit;
28
+ }
29
+ update_option('xyz_credit_link',"fbap");
30
+ ?>
31
+ <div class="system_notice_area_style1" id="system_notice_area">
32
+ Thank you for enabling backlink.
33
+ &nbsp;&nbsp;&nbsp;<span id="system_notice_area_dismiss">Dismiss</span>
34
+ </div>
35
 
36
+ <style type="text/css">
37
+ .xyz_blink{
38
+ display:none !important;
39
+ }
40
+ </style>
41
 
42
+ <?php
43
+ }
44
+ if(get_option('xyz_credit_link')=="0" &&(get_option('xyz_fbap_credit_dismiss')=="0")){
45
  ?>
46
  <div style="float:left;background-color: #FFECB3;border-radius:5px;padding: 0px 5px;margin-top: 10px;border: 1px solid #E0AB1B" id="xyz_backlink_div">
47
 
48
+ Please do a favour by enabling backlink to our site. <a id="xyz_fbap_backlink" class="xyz_fbap_backlink" style="cursor: pointer;" >Okay, Enable</a>.
49
+ <a id="xyz_fbap_dismiss" style="cursor: pointer;" >Dismiss</a>.
50
  <script type="text/javascript">
51
  jQuery(document).ready(function() {
52
 
53
+ jQuery('#xyz_fbap_backlink').click(function(){
54
+ xyz_filter_blink(1)
55
+ });
56
+
57
+ jQuery('#xyz_fbap_dismiss').click(function(){
58
+ xyz_filter_blink(-1)
59
+ });
60
+
61
+ function xyz_filter_blink(stat){
62
  var backlink_nonce= '<?php echo wp_create_nonce('backlink');?>';
63
  var dataString = {
64
  action: 'xyz_fbap_ajax_backlink',
65
+ enable: stat ,
66
  _wpnonce: backlink_nonce
67
  };
68
 
70
 
71
  if(response==1)
72
  alert("You do not have sufficient permissions");
73
+ if(response=="fbap"){
74
  jQuery('.xyz_fbap_backlink').hide();
75
  jQuery("#xyz_backlink_div").html('Thank you for enabling backlink !');
76
  jQuery("#xyz_backlink_div").css('background-color', '#D8E8DA');
77
  jQuery("#xyz_backlink_div").css('border', '1px solid #0F801C');
78
+ }
79
+ if(response==-1){
80
+ jQuery("#xyz_backlink_div").remove();
81
+ }
82
 
83
  });
84
+ };
85
  });
86
  </script>
87
  </div>
98
  <table style="float:right; ">
99
  <tr>
100
  <td style="float:right;">
101
+ <a class="xyz_header_link" style="margin-left:8px;margin-right:12px;" target="_blank" href="https://xyzscripts.com/donate/5">Donate</a>
102
  </td>
103
  <td style="float:right;">
104
+ <a class="xyz_header_link" style="margin-left:8px;" target="_blank" href="http://help.xyzscripts.com/docs/facebook-auto-publish/faq/">FAQ</a> |
105
  </td>
106
  <td style="float:right;">
107
+ <a class="xyz_header_link" style="margin-left:8px;" target="_blank" href="http://help.xyzscripts.com/docs/facebook-auto-publish/">Readme</a> |
108
  </td>
109
  <td style="float:right;">
110
+ <a class="xyz_header_link" style="margin-left:8px;" target="_blank" href="https://xyzscripts.com/wordpress-plugins/facebook-auto-publish/details">About</a> |
111
  </td>
112
  <td style="float:right;">
113
+ <a class="xyz_header_link" target="_blank" href="https://xyzscripts.com">XYZScripts</a> |
114
  </td>
115
 
116
  </tr>
admin/install.php CHANGED
@@ -70,7 +70,10 @@ function fbap_install_free()
70
  add_option('xyz_fbap_post_logs', '');
71
  add_option('xyz_fbap_premium_version_ads', '1');
72
  add_option('xyz_fbap_default_selection_edit', '0');
73
- add_option('xyz_fbap_utf_decode_enable', '0');
 
 
 
74
  }
75
 
76
 
70
  add_option('xyz_fbap_post_logs', '');
71
  add_option('xyz_fbap_premium_version_ads', '1');
72
  add_option('xyz_fbap_default_selection_edit', '0');
73
+ // add_option('xyz_fbap_utf_decode_enable', '0');
74
+ add_option('xyz_fbap_dnt_shw_notice','0');
75
+ if(get_option('xyz_fbap_credit_dismiss') == "")
76
+ add_option("xyz_fbap_credit_dismiss",0);
77
  }
78
 
79
 
admin/menu.php CHANGED
@@ -6,10 +6,10 @@ function xyz_fbap_add_admin_scripts()
6
  {
7
  wp_enqueue_script('jquery');
8
 
9
- wp_register_script( 'xyz_notice_script', plugins_url('facebook-auto-publish/js/notice.js') );
10
- wp_enqueue_script( 'xyz_notice_script' );
11
 
12
- wp_register_style('xyz_fbap_style', plugins_url('facebook-auto-publish/admin/style.css'));
13
  wp_enqueue_style('xyz_fbap_style');
14
  }
15
 
@@ -19,7 +19,7 @@ add_action("admin_enqueue_scripts","xyz_fbap_add_admin_scripts");
19
 
20
  function xyz_fbap_menu()
21
  {
22
- add_menu_page('Facebook Auto Publish - Manage settings', 'Facebook Auto Publish', 'manage_options', 'facebook-auto-publish-settings', 'xyz_fbap_settings');
23
  add_submenu_page('facebook-auto-publish-settings', 'Facebook Auto Publish - Manage settings', ' Settings', 'manage_options', 'facebook-auto-publish-settings' ,'xyz_fbap_settings'); // 8 for admin
24
  add_submenu_page('facebook-auto-publish-settings', 'Facebook Auto Publish - Logs', 'Logs', 'manage_options', 'facebook-auto-publish-log' ,'xyz_fbap_logs');
25
  add_submenu_page('facebook-auto-publish-settings', 'Facebook Auto Publish - About', 'About', 'manage_options', 'facebook-auto-publish-about' ,'xyz_fbap_about'); // 8 for admin
6
  {
7
  wp_enqueue_script('jquery');
8
 
9
+ wp_register_script( 'xyz_notice_script_fbap', plugins_url('facebook-auto-publish/js/notice.js') );
10
+ wp_enqueue_script( 'xyz_notice_script_fbap' );
11
 
12
+ wp_register_style('xyz_fbap_style', plugins_url('facebook-auto-publish/css/style.css'));
13
  wp_enqueue_style('xyz_fbap_style');
14
  }
15
 
19
 
20
  function xyz_fbap_menu()
21
  {
22
+ add_menu_page('Facebook Auto Publish - Manage settings', 'Facebook Auto Publish', 'manage_options', 'facebook-auto-publish-settings', 'xyz_fbap_settings',plugin_dir_url( XYZ_FBAP_PLUGIN_FILE ) . 'images/facebook.png');
23
  add_submenu_page('facebook-auto-publish-settings', 'Facebook Auto Publish - Manage settings', ' Settings', 'manage_options', 'facebook-auto-publish-settings' ,'xyz_fbap_settings'); // 8 for admin
24
  add_submenu_page('facebook-auto-publish-settings', 'Facebook Auto Publish - Logs', 'Logs', 'manage_options', 'facebook-auto-publish-log' ,'xyz_fbap_logs');
25
  add_submenu_page('facebook-auto-publish-settings', 'Facebook Auto Publish - About', 'About', 'manage_options', 'facebook-auto-publish-about' ,'xyz_fbap_about'); // 8 for admin
admin/metabox.php CHANGED
@@ -55,23 +55,25 @@ if(isset($_GET['action']) && $_GET['action']=="edit" && !empty($_GET['post']))
55
  }
56
  function xyz_fbap_addpostmetatags()
57
  {
58
- $imgpath= plugins_url()."/facebook-auto-publish/admin/images/";
59
  $heimg=$imgpath."support.png";
60
  $xyz_fbap_catlist=get_option('xyz_fbap_include_categories');
 
 
61
  ?>
62
  <script>
63
 
64
  function displaycheck_fbap()
65
  {
 
66
 
67
- var fcheckid=document.getElementById("xyz_fbap_post_permission").value;
68
  if(fcheckid==1)
69
  {
70
  document.getElementById("fpabpmd").style.display='';
71
  document.getElementById("fpabpmf").style.display='';
72
  document.getElementById("fpabpmftarea").style.display='';
73
 
74
-
75
  }
76
  else
77
  {
@@ -97,22 +99,24 @@ function dethide_fbap(id)
97
 
98
 
99
  jQuery(document).ready(function() {
100
-
 
 
101
  jQuery('#category-all').bind("DOMSubtreeModified",function(){
102
- get_categorylist(1);
103
  });
104
 
105
- get_categorylist(1);
106
  jQuery('#category-all').on("click",'input[name="post_category[]"]',function() {
107
- get_categorylist(1);
108
  });
109
 
110
  jQuery('#category-pop').on("click",'input[type="checkbox"]',function() {
111
- get_categorylist(2);
112
  });
113
  });
114
 
115
- function get_categorylist(val)
116
  {
117
  var cat_list="";var chkdArray=new Array();var cat_list_array=new Array();
118
  var posttype="<?php echo get_post_type() ;?>";
@@ -139,7 +143,6 @@ function get_categorylist(val)
139
  var show_flag=1;
140
  var chkdcatvals=jQuery('#cat_list').val();
141
  chkdArray=chkdcatvals.split(',');
142
-
143
  for(var x=0;x<chkdArray.length;x++) {
144
 
145
  if(inArray(chkdArray[x], cat_list_array))
@@ -154,7 +157,6 @@ function get_categorylist(val)
154
  }
155
 
156
  }
157
-
158
  if(show_flag==0 && posttype=="post")
159
  jQuery('#xyz_fbMetabox').hide();
160
  else
@@ -190,12 +192,10 @@ function inArray(needle, haystack) {
190
  <tr valign="top">
191
  <td class="xyz_fbap_pleft15" width="60%">Enable auto publish post to my facebook account
192
  </td>
193
- <td width="40%"><select id="xyz_fbap_post_permission" name="xyz_fbap_post_permission"
194
- onchange="displaycheck_fbap()"><option value="0" >
195
- No</option>
196
- <option value="1"
197
- <?php echo 'selected';?>>Yes</option>
198
- </select>
199
  </td>
200
  </tr>
201
  <tr valign="top" id="fpabpmd">
@@ -225,8 +225,8 @@ function inArray(needle, haystack) {
225
  </tr>
226
  <tr valign="top" id="fpabpmf">
227
  <td class="xyz_fbap_pleft15">Message format for posting <img src="<?php echo $heimg?>"
228
- onmouseover="detdisplay_fbap('xyz_fbap')" onmouseout="dethide_fbap('xyz_fbap')">
229
- <div id="xyz_fbap" class="informationdiv" style="display: none;">
230
  {POST_TITLE} - Insert the title of your post.<br />{PERMALINK} -
231
  Insert the URL where your post is displayed.<br />{POST_EXCERPT}
232
  - Insert the excerpt of your post.<br />{POST_CONTENT} - Insert
@@ -262,7 +262,7 @@ function inArray(needle, haystack) {
262
 
263
  </table>
264
  <script type="text/javascript">
265
- displaycheck_fbap();
266
 
267
  var edit_flag="<?php echo $GLOBALS['edit_flag'];?>";
268
  if(edit_flag==1)
@@ -276,14 +276,9 @@ function inArray(needle, haystack) {
276
  xyz_fbap_default_selection_edit=0;
277
  if(xyz_fbap_default_selection_edit==1)
278
  return;
 
 
279
 
280
- if(document.getElementById("xyz_fbap_post_permission"))
281
- {
282
- document.getElementById("xyz_fbap_post_permission").value=0;
283
- document.getElementById("fpabpmd").style.display='none';
284
- document.getElementById("fpabpmf").style.display='none';
285
- document.getElementById("fpabpmftarea").style.display='none';
286
- }
287
  }
288
  function xyz_fbap_info_insert(inf){
289
 
@@ -297,6 +292,14 @@ function inArray(needle, haystack) {
297
  jQuery("textarea#xyz_fbap_message").focus();
298
 
299
  }
 
 
 
 
 
 
 
 
300
  </script>
301
  <?php
302
  }
55
  }
56
  function xyz_fbap_addpostmetatags()
57
  {
58
+ $imgpath= plugins_url()."/facebook-auto-publish/images/";
59
  $heimg=$imgpath."support.png";
60
  $xyz_fbap_catlist=get_option('xyz_fbap_include_categories');
61
+ if (is_array($xyz_fbap_catlist))
62
+ $xyz_fbap_catlist=implode(',', $xyz_fbap_catlist);
63
  ?>
64
  <script>
65
 
66
  function displaycheck_fbap()
67
  {
68
+ var fcheckid=jQuery("input[name='xyz_fbap_post_permission']:checked").val();
69
 
70
+ // var fcheckid=document.getElementsByName("xyz_fbap_post_permission")[1].value;alert(fcheckid);
71
  if(fcheckid==1)
72
  {
73
  document.getElementById("fpabpmd").style.display='';
74
  document.getElementById("fpabpmf").style.display='';
75
  document.getElementById("fpabpmftarea").style.display='';
76
 
 
77
  }
78
  else
79
  {
99
 
100
 
101
  jQuery(document).ready(function() {
102
+ displaycheck_fbap();
103
+ var xyz_fbap_post_permission=jQuery("input[name='xyz_fbap_post_permission']:checked").val();
104
+ XyzFbapToggleRadio(xyz_fbap_post_permission,'xyz_fbap_post_permission');
105
  jQuery('#category-all').bind("DOMSubtreeModified",function(){
106
+ fbap_get_categorylist(1);
107
  });
108
 
109
+ fbap_get_categorylist(1);
110
  jQuery('#category-all').on("click",'input[name="post_category[]"]',function() {
111
+ fbap_get_categorylist(1);
112
  });
113
 
114
  jQuery('#category-pop').on("click",'input[type="checkbox"]',function() {
115
+ fbap_get_categorylist(2);
116
  });
117
  });
118
 
119
+ function fbap_get_categorylist(val)
120
  {
121
  var cat_list="";var chkdArray=new Array();var cat_list_array=new Array();
122
  var posttype="<?php echo get_post_type() ;?>";
143
  var show_flag=1;
144
  var chkdcatvals=jQuery('#cat_list').val();
145
  chkdArray=chkdcatvals.split(',');
 
146
  for(var x=0;x<chkdArray.length;x++) {
147
 
148
  if(inArray(chkdArray[x], cat_list_array))
157
  }
158
 
159
  }
 
160
  if(show_flag==0 && posttype=="post")
161
  jQuery('#xyz_fbMetabox').hide();
162
  else
192
  <tr valign="top">
193
  <td class="xyz_fbap_pleft15" width="60%">Enable auto publish post to my facebook account
194
  </td>
195
+ <td class="switch-field">
196
+ <label id="xyz_fbap_post_permission_yes"><input type="radio" name="xyz_fbap_post_permission" id="xyz_fbap_post_permission_1" value="1" checked/>Yes</label>
197
+ <label id="xyz_fbap_post_permission_no"><input type="radio" name="xyz_fbap_post_permission" id="xyz_fbap_post_permission_0" value="0" />No</label>
198
+
 
 
199
  </td>
200
  </tr>
201
  <tr valign="top" id="fpabpmd">
225
  </tr>
226
  <tr valign="top" id="fpabpmf">
227
  <td class="xyz_fbap_pleft15">Message format for posting <img src="<?php echo $heimg?>"
228
+ onmouseover="detdisplay_fbap('xyz_fbap')" onmouseout="dethide_fbap('xyz_fbap')" style="width:13px;height:auto;">
229
+ <div id="xyz_fbap" class="fbap_informationdiv" style="display: none;">
230
  {POST_TITLE} - Insert the title of your post.<br />{PERMALINK} -
231
  Insert the URL where your post is displayed.<br />{POST_EXCERPT}
232
  - Insert the excerpt of your post.<br />{POST_CONTENT} - Insert
262
 
263
  </table>
264
  <script type="text/javascript">
265
+
266
 
267
  var edit_flag="<?php echo $GLOBALS['edit_flag'];?>";
268
  if(edit_flag==1)
276
  xyz_fbap_default_selection_edit=0;
277
  if(xyz_fbap_default_selection_edit==1)
278
  return;
279
+ jQuery('#xyz_fbap_post_permission_0').attr('checked',true);
280
+ displaycheck_fbap();
281
 
 
 
 
 
 
 
 
282
  }
283
  function xyz_fbap_info_insert(inf){
284
 
292
  jQuery("textarea#xyz_fbap_message").focus();
293
 
294
  }
295
+ jQuery("#xyz_fbap_post_permission_no").click(function(){
296
+ displaycheck_fbap();
297
+ XyzFbapToggleRadio(0,'xyz_fbap_post_permission');
298
+ });
299
+ jQuery("#xyz_fbap_post_permission_yes").click(function(){
300
+ displaycheck_fbap();
301
+ XyzFbapToggleRadio(1,'xyz_fbap_post_permission');
302
+ });
303
  </script>
304
  <?php
305
  }
admin/publish.php CHANGED
@@ -425,7 +425,7 @@ function xyz_fbap_link_publish($post_ID) {
425
  if($posting_method==1 || $posting_method==2)
426
  {
427
 
428
- $attachment=xyz_wp_fbap_attachment_metas($attachment,$link);
429
  update_post_meta($post_ID, "xyz_fbap_insert_og", "1");
430
  }
431
  try{
425
  if($posting_method==1 || $posting_method==2)
426
  {
427
 
428
+ //$attachment=xyz_wp_fbap_attachment_metas($attachment,$link);
429
  update_post_meta($post_ID, "xyz_fbap_insert_og", "1");
430
  }
431
  try{
admin/settings.php CHANGED
@@ -3,27 +3,26 @@ if( !defined('ABSPATH') ){ exit();}
3
  global $current_user;
4
  $auth_varble=0;
5
  wp_get_current_user();
6
- $imgpath= plugins_url()."/facebook-auto-publish/admin/images/";
7
  $heimg=$imgpath."support.png";
8
  $ms0="";
9
  $ms1="";
10
  $ms2="";
11
  $ms3="";
12
- $ms4="";
13
  $redirecturl=admin_url('admin.php?page=facebook-auto-publish-settings&auth=1');
14
-
15
-
16
  require( dirname( __FILE__ ) . '/authorization.php' );
17
-
18
-
19
- if(isset($_GET['fbap_notice'])&& $_GET['fbap_notice'] == 'hide')
20
  {
 
 
 
 
21
  update_option('xyz_fbap_dnt_shw_notice', "hide");
22
  ?>
23
  <style type='text/css'>
24
  #fb_notice_td
25
  {
26
- display:none;
27
  }
28
  </style>
29
  <div class="system_notice_area_style1" id="system_notice_area">
@@ -34,21 +33,15 @@ Thanks again for using the plugin. We will never show the message again.
34
  <?php
35
  }
36
 
37
-
38
  $erf=0;
39
  if(isset($_POST['fb']))
40
  {
41
- if (
42
- ! isset( $_REQUEST['_wpnonce'] )
43
  || ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'xyz_smap_fb_settings_form_nonce' )
44
  ) {
45
-
46
  wp_nonce_ays( 'xyz_smap_fb_settings_form_nonce' );
47
-
48
  exit();
49
-
50
  }
51
-
52
  $ss=array();
53
  if(isset($_POST['fbap_pages_list']))
54
  $ss=$_POST['fbap_pages_list'];
@@ -71,19 +64,14 @@ if(isset($_POST['fb']))
71
 
72
 
73
  update_option('xyz_fbap_pages_ids',$fbap_pages_list_ids);
74
-
75
-
76
  $applidold=get_option('xyz_fbap_application_id');
77
  $applsecretold=get_option('xyz_fbap_application_secret');
78
- //$fbidold=get_option('xyz_fbap_fb_id');
79
-
80
  $posting_method=intval($_POST['xyz_fbap_po_method']);
81
  $posting_permission=intval($_POST['xyz_fbap_post_permission']);
82
  $app_name=sanitize_text_field($_POST['xyz_fbap_application_name']);
83
  $appid=sanitize_text_field($_POST['xyz_fbap_application_id']);
84
  $appsecret=sanitize_text_field($_POST['xyz_fbap_application_secret']);
85
  $messagetopost=$_POST['xyz_fbap_message'];
86
- //$fbid=$_POST['xyz_fbap_fb_id'];
87
  if($app_name=="" && $posting_permission==1)
88
  {
89
  $ms0="Please fill facebook application name.";
@@ -99,16 +87,6 @@ if(isset($_POST['fb']))
99
  $ms2="Please fill facebook application secret.";
100
  $erf=1;
101
  }
102
- /*elseif($fbid=="" && $posting_permission==1)
103
- {
104
- $ms3="Please fill facebook user id.";
105
- $erf=1;
106
- }*/
107
- elseif($messagetopost=="" && $posting_permission==1)
108
- {
109
- $ms4="Please fill message format for posting.";
110
- $erf=1;
111
- }
112
  else
113
  {
114
  $erf=0;
@@ -117,10 +95,6 @@ if(isset($_POST['fb']))
117
  update_option('xyz_fbap_af',1);
118
  update_option('xyz_fbap_fb_token','');
119
  }
120
- if($messagetopost=="")
121
- {
122
- $messagetopost="New post added at {BLOG_TITLE} - {POST_TITLE}";
123
- }
124
  update_option('xyz_fbap_application_name',$app_name);
125
  update_option('xyz_fbap_application_id',$appid);
126
  update_option('xyz_fbap_post_permission',$posting_permission);
@@ -128,18 +102,11 @@ if(isset($_POST['fb']))
128
  //update_option('xyz_fbap_fb_id',$fbid);
129
  update_option('xyz_fbap_po_method',$posting_method);
130
  update_option('xyz_fbap_message',$messagetopost);
131
-
132
-
133
-
134
  }
135
  }
136
-
137
-
138
-
139
  if(isset($_POST['fb']) && $erf==0)
140
  {
141
  ?>
142
-
143
  <div class="system_notice_area_style1" id="system_notice_area">
144
  Settings updated successfully. &nbsp;&nbsp;&nbsp;<span
145
  id="system_notice_area_dismiss">Dismiss</span>
@@ -171,28 +138,27 @@ if(isset($_POST['fb']) && $erf==1)
171
  <?php
172
  if(isset($_POST['fb']))
173
  {
174
- echo esc_html($ms0);echo esc_html($ms1);echo esc_html($ms2);echo esc_html($ms3);echo esc_html($ms4);
175
  }
176
  ?>
177
  &nbsp;&nbsp;&nbsp;<span id="system_notice_area_dismiss">Dismiss</span>
178
  </div>
179
  <?php } ?>
180
  <script type="text/javascript">
181
- function detdisplay(id)
182
  {
183
  document.getElementById(id).style.display='';
184
  }
185
- function dethide(id)
186
  {
187
  document.getElementById(id).style.display='none';
188
  }
189
-
190
  </script>
191
 
192
  <div style="width: 100%">
193
 
194
  <h2>
195
- <img src="<?php echo plugins_url()?>/facebook-auto-publish/admin/images/facebook-logo.png" height="16px"> Facebook Settings
196
  </h2>
197
  <?php
198
  $af=get_option('xyz_fbap_af');
@@ -222,27 +188,20 @@ function dethide(id)
222
 
223
  </form>
224
  <?php }
225
-
226
-
227
  if(isset($_GET['auth']) && $_GET['auth']==1 && get_option("xyz_fbap_fb_token")!="")
228
  {
229
  ?>
230
-
231
  <span style="color: green;">Application is authorized, go posting.
232
  </span><br>
233
 
234
  <?php
235
  }
236
  ?>
237
-
238
-
239
  <table class="widefat" style="width: 99%;background-color: #FFFBCC">
240
  <tr>
241
- <td id="bottomBorderNone">
242
 
243
  <div>
244
-
245
-
246
  <b>Note :</b> You have to create a Facebook application before filling the following details.
247
  <b><a href="https://developers.facebook.com/apps" target="_blank">Click here</a></b> to create new Facebook application.
248
  <br>In the application page in facebook, navigate to <b>Apps >Add Product > Facebook Login >Quickstart >Web > Site URL</b>. Set the site url as :
@@ -260,10 +219,6 @@ function dethide(id)
260
 
261
  <input type="hidden" value="config">
262
 
263
-
264
-
265
-
266
-
267
  <div style="font-weight: bold;padding: 3px;">All fields given below are mandatory</div>
268
  <table class="widefat xyz_fbap_widefat_table" style="width: 99%">
269
  <tr valign="top">
@@ -293,18 +248,10 @@ function dethide(id)
293
  value="<?php if($ms2=="") {echo $apsecret; }?>" />
294
  </td>
295
  </tr>
296
- <!-- <tr valign="top">
297
- <td>Facebook user id
298
- </td>
299
- <td><input id="xyz_fbap_fb_id" name="xyz_fbap_fb_id" type="text"
300
- value="<?php if($ms3=="") {echo esc_html(get_option('xyz_fbap_fb_id'));}?>" />
301
- <a href="http://kb.xyzscripts.com/how-can-i-find-my-facebook-user-id" target="_blank">How can I find my Facebook user id?</a>
302
- </td>
303
- </tr>-->
304
  <tr valign="top">
305
  <td>Message format for posting <img src="<?php echo $heimg?>"
306
- onmouseover="detdisplay('xyz_fb')" onmouseout="dethide('xyz_fb')">
307
- <div id="xyz_fb" class="informationdiv" style="display: none;">
308
  {POST_TITLE} - Insert the title of your post.<br />{PERMALINK} -
309
  Insert the URL where your post is displayed.<br />{POST_EXCERPT}
310
  - Insert the excerpt of your post.<br />{POST_CONTENT} - Insert
@@ -313,25 +260,24 @@ function dethide(id)
313
  of the author.<br />{POST_ID} - Insert the ID of your post.
314
  <br />{POST_PUBLISH_DATE} - Insert the publish date of your post.
315
  <br />{USER_DISPLAY_NAME} - Insert the display name of the author.
316
- </div></td>
317
- <td>
318
- <select name="xyz_fbap_info" id="xyz_fbap_info" onchange="xyz_fbap_info_insert(this)">
319
- <option value ="0" selected="selected">--Select--</option>
320
- <option value ="1">{POST_TITLE} </option>
321
- <option value ="2">{PERMALINK} </option>
322
- <option value ="3">{POST_EXCERPT} </option>
323
- <option value ="4">{POST_CONTENT} </option>
324
- <option value ="5">{BLOG_TITLE} </option>
325
- <option value ="6">{USER_NICENAME} </option>
326
- <option value ="7">{POST_ID} </option>
327
- <option value ="8">{POST_PUBLISH_DATE} </option>
328
- <option value= "9">{USER_DISPLAY_NAME}</option>
329
- </select> </td></tr><tr><td>&nbsp;</td><td>
330
- <textarea id="xyz_fbap_message" name="xyz_fbap_message" style="height:80px !important;" ><?php if($ms4==""){
331
- echo esc_textarea(get_option('xyz_fbap_message'));}?></textarea>
332
- </td></tr>
333
-
334
-
335
  <tr valign="top">
336
  <td>Posting method
337
  </td>
@@ -359,25 +305,18 @@ function dethide(id)
359
  </td>
360
  </tr>
361
  <tr valign="top">
362
- <td>Enable auto publish post to my facebook account
363
- </td>
364
- <td><select id="xyz_fbap_post_permission"
365
- name="xyz_fbap_post_permission"><option value="0"
366
- <?php if(get_option('xyz_fbap_post_permission')==0) echo 'selected';?>>
367
- No</option>
368
- <option value="1"
369
- <?php if(get_option('xyz_fbap_post_permission')==1) echo 'selected';?>>Yes</option>
370
- </select>
371
- </td>
372
- </tr>
373
  <?php
374
-
375
  $xyz_acces_token=get_option('xyz_fbap_fb_token');
376
-
377
  if($xyz_acces_token!=""){
378
 
379
  $offset=0;$limit=100;$data=array();
380
- //$fbid=get_option('xyz_fbap_fb_id');
381
  do
382
  {
383
  $result1="";$pagearray1="";
@@ -397,11 +336,7 @@ function dethide(id)
397
  // break;
398
  // }while(array_key_exists("next", $pagearray1->paging));
399
  }while(isset($pagearray1->paging->next));
400
-
401
-
402
-
403
  $count=count($data);
404
-
405
  $fbap_pages_ids1=get_option('xyz_fbap_pages_ids');
406
  $fbap_pages_ids0=array();
407
  if($fbap_pages_ids1!="")
@@ -419,31 +354,27 @@ function dethide(id)
419
  //$data[$i]->id."-".$data[$i]->access_token
420
  ?>
421
 
422
- <tr valign="top">
423
- <td>Select facebook pages for auto publish
424
- </td>
425
- <td><select name="fbap_pages_list[]" multiple="multiple" style="height:auto !important;">
426
- <option value="-1"
427
- <?php if(in_array(-1, $fbap_pages_ids)) echo "selected" ?>>Profile Page</option>
428
- <?php
429
- for($i=0;$i<$count;$i++)
430
- {
431
- ?>
432
- <option
433
- value="<?php echo $data[$i]->id."-".$data[$i]->access_token;?>"
434
- <?php
435
-
436
-
437
- if(in_array($data[$i]->id, $fbap_pages_ids)) echo "selected" ?>>
438
-
439
- <?php echo $data[$i]->name; ?>
440
- </option>
441
- <?php }?>
442
- </select>
443
- </td>
444
- </tr>
445
-
446
 
 
 
 
 
 
 
 
 
 
 
 
 
447
  <?php
448
  }?>
449
  <tr><td id="bottomBorderNone"></td>
@@ -454,11 +385,8 @@ function dethide(id)
454
  </td>
455
  </tr>
456
  </table>
457
-
458
  </form>
459
 
460
-
461
-
462
  <?php
463
 
464
  if(isset($_POST['bsettngs']))
@@ -466,34 +394,29 @@ function dethide(id)
466
  if (! isset( $_REQUEST['_wpnonce'] )
467
  || ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'xyz_smap_basic_settings_form_nonce' )
468
  ) {
469
-
470
  wp_nonce_ays( 'xyz_smap_basic_settings_form_nonce' );
471
-
472
  exit();
473
-
474
  }
475
-
476
  $xyz_fbap_include_pages=intval($_POST['xyz_fbap_include_pages']);
477
  $xyz_fbap_include_posts=intval($_POST['xyz_fbap_include_posts']);
478
 
479
  if($_POST['xyz_fbap_cat_all']=="All")
480
  $fbap_category_ids=$_POST['xyz_fbap_cat_all'];//radio btn name
481
- else
482
- $fbap_category_ids=$_POST['xyz_fbap_sel_cat'];//dropdown
483
-
484
- $xyz_customtypes="";
 
485
 
 
486
  if(isset($_POST['post_types']))
487
  $xyz_customtypes=$_POST['post_types'];
488
 
489
  $xyz_fbap_peer_verification=intval($_POST['xyz_fbap_peer_verification']);
490
  $xyz_fbap_premium_version_ads=intval($_POST['xyz_fbap_premium_version_ads']);
491
  $xyz_fbap_default_selection_edit=intval($_POST['xyz_fbap_default_selection_edit']);
492
- $xyz_fbap_utf_decode_enable=intval($_POST['xyz_fbap_utf_decode_enable']);
493
-
494
- //$xyz_fbap_future_to_publish=$_POST['xyz_fbap_future_to_publish'];
495
  $fbap_customtype_ids="";
496
-
497
  $xyz_fbap_applyfilters="";
498
  if(isset($_POST['xyz_fbap_applyfilters']))
499
  $xyz_fbap_applyfilters=$_POST['xyz_fbap_applyfilters'];
@@ -529,115 +452,96 @@ function dethide(id)
529
  update_option('xyz_fbap_peer_verification',$xyz_fbap_peer_verification);
530
  update_option('xyz_fbap_premium_version_ads',$xyz_fbap_premium_version_ads);
531
  update_option('xyz_fbap_default_selection_edit',$xyz_fbap_default_selection_edit);
532
- update_option('xyz_fbap_utf_decode_enable',$xyz_fbap_utf_decode_enable);
533
- // update_option('xyz_fbap_future_to_publish',$xyz_fbap_future_to_publish);
534
  }
535
- //$xyz_fbap_future_to_publish=get_option('xyz_fbap_future_to_publish');
536
  $xyz_credit_link=get_option('xyz_credit_link');
537
  $xyz_fbap_include_pages=get_option('xyz_fbap_include_pages');
538
  $xyz_fbap_include_posts=get_option('xyz_fbap_include_posts');
539
  $xyz_fbap_include_categories=get_option('xyz_fbap_include_categories');
 
 
540
  $xyz_fbap_include_customposttypes=get_option('xyz_fbap_include_customposttypes');
541
  $xyz_fbap_apply_filters=get_option('xyz_fbap_apply_filters');
542
  $xyz_fbap_peer_verification=get_option('xyz_fbap_peer_verification');
543
  $xyz_fbap_premium_version_ads=get_option('xyz_fbap_premium_version_ads');
544
  $xyz_fbap_default_selection_edit=get_option('xyz_fbap_default_selection_edit');
545
- $xyz_fbap_utf_decode_enable=get_option('xyz_fbap_utf_decode_enable');
546
-
547
  ?>
548
  <h2>Basic Settings</h2>
549
-
550
-
551
  <form method="post">
552
  <?php wp_nonce_field( 'xyz_smap_basic_settings_form_nonce' );?>
553
  <table class="widefat xyz_fbap_widefat_table" style="width: 99%">
554
 
555
  <tr valign="top">
556
-
557
- <td colspan="1" width="50%">Publish wordpress `pages` to facebook
558
- </td>
559
- <td><select name="xyz_fbap_include_pages">
560
-
561
- <option value="1"
562
- <?php if($xyz_fbap_include_pages=='1') echo 'selected'; ?>>Yes</option>
563
-
564
- <option value="0"
565
- <?php if($xyz_fbap_include_pages!='1') echo 'selected'; ?>>No</option>
566
- </select>
567
- </td>
568
  </tr>
569
 
570
  <tr valign="top">
571
-
572
  <td colspan="1">Publish wordpress `posts` to facebook
573
  </td>
574
- <td><select name="xyz_fbap_include_posts" onchange="xyz_fbap_show_postCategory(this.value);">
575
-
576
- <option value="1"
577
- <?php if($xyz_fbap_include_posts=='1') echo 'selected'; ?>>Yes</option>
578
-
579
- <option value="0"
580
- <?php if($xyz_fbap_include_posts!='1') echo 'selected'; ?>>No</option>
581
- </select>
582
- </td>
583
- </tr>
584
 
585
  <tr valign="top" id="selPostCat">
586
-
587
  <td colspan="1">Select post categories for auto publish
588
  </td>
589
- <td><input type="hidden"
590
- value="<?php echo esc_html($xyz_fbap_include_categories);?>"
591
- name="xyz_fbap_sel_cat" id="xyz_fbap_sel_cat"> <input type="radio"
592
- name="xyz_fbap_cat_all" id="xyz_fbap_cat_all" value="All"
593
- onchange="rd_cat_chn(1,-1)"
594
- <?php if($xyz_fbap_include_categories=="All") echo "checked"?>>All<font
595
- style="padding-left: 10px;"></font><input type="radio"
596
- name="xyz_fbap_cat_all" id="xyz_fbap_cat_all" value=""
597
- onchange="rd_cat_chn(1,1)"
598
- <?php if($xyz_fbap_include_categories!="All") echo "checked"?>>Specific
599
-
600
- <span id="cat_dropdown_span"><br /> <br /> <?php
601
-
602
-
603
- $args = array(
604
- 'show_option_all' => '',
605
- 'show_option_none' => '',
606
- 'orderby' => 'name',
607
- 'order' => 'ASC',
608
- 'show_last_update' => 0,
609
- 'show_count' => 0,
610
- 'hide_empty' => 0,
611
- 'child_of' => 0,
612
- 'exclude' => '',
613
- 'echo' => 0,
614
- 'selected' => '1 3',
615
- 'hierarchical' => 1,
616
- 'id' => 'xyz_fbap_catlist',
617
- 'class' => 'postform',
618
- 'depth' => 0,
619
- 'tab_index' => 0,
620
- 'taxonomy' => 'category',
621
- 'hide_if_empty' => false );
622
-
623
- if(count(get_categories($args))>0)
624
  {
625
- $args['name']='xyz_fbap_catlist';
626
- echo str_replace( "<select", "<select multiple onClick=setcat(this) style='width:200px;height:auto !important;border:1px solid #cccccc;'", wp_dropdown_categories($args));
627
- }
628
- else
629
- echo "NIL";
630
-
631
- ?><br /> <br /> </span>
632
- </td>
 
 
633
  </tr>
634
 
635
 
636
  <tr valign="top">
637
-
638
  <td colspan="1">Select wordpress custom post types for auto publish</td>
639
  <td><?php
640
-
641
  $args=array(
642
  'public' => true,
643
  '_builtin' => false
@@ -668,26 +572,22 @@ function dethide(id)
668
  </tr>
669
 
670
  <tr valign="top">
671
-
672
- <td scope="row" colspan="1" width="50%">Default selection of auto publish while editing posts/pages
673
- </td><td><select name="xyz_fbap_default_selection_edit" >
674
-
675
- <option value ="1" <?php if($xyz_fbap_default_selection_edit=='1') echo 'selected'; ?> >Yes </option>
676
-
677
- <option value ="0" <?php if($xyz_fbap_default_selection_edit=='0') echo 'selected'; ?> >No </option>
678
- </select>
679
  </td>
680
  </tr>
681
 
682
  <tr valign="top">
683
-
684
- <td scope="row" colspan="1" width="50%">SSL peer verification </td><td><select name="xyz_fbap_peer_verification" >
685
-
686
- <option value ="1" <?php if($xyz_fbap_peer_verification=='1') echo 'selected'; ?> >Enable </option>
687
-
688
- <option value ="0" <?php if($xyz_fbap_peer_verification=='0') echo 'selected'; ?> >Disable </option>
689
- </select>
690
- </td></tr>
691
 
692
  <tr valign="top">
693
  <td scope="row" colspan="1">Apply filters during publishing </td>
@@ -716,72 +616,39 @@ function dethide(id)
716
  echo '<label>'.$filName.'</label><br/>';
717
 
718
  }
719
-
720
  ?>
721
  </td>
722
  </tr>
723
- <tr valign="top">
724
 
725
- <td scope="row" colspan="1" width="50%">Enable utf-8 decoding before publishing
726
- </td><td><select name="xyz_fbap_utf_decode_enable" >
727
-
728
- <option value ="1" <?php if($xyz_fbap_utf_decode_enable=='1') echo 'selected'; ?> >Yes </option>
729
-
730
- <option value ="0" <?php if($xyz_fbap_utf_decode_enable=='0') echo 'selected'; ?> >No </option>
731
- </select>
732
- </td>
733
- </tr>
734
- <!-- <tr valign="top">
735
-
736
- <td scope="row" colspan="1">Enable "future_to_publish" hook </td>
737
- <td><select name="xyz_fbap_future_to_publish" id="xyz_fbap_future_to_publish" >
738
-
739
- <option value ="1" <?php //if($xyz_fbap_future_to_publish=='1') echo 'selected'; ?> >Yes </option>
740
-
741
- <option value ="2" <?php //if($xyz_fbap_future_to_publish=='2') echo 'selected'; ?> >No </option>
742
- </select>
743
  </td>
744
- </tr>-->
745
 
746
  <tr valign="top">
747
 
748
  <td colspan="1">Enable credit link to author
749
  </td>
750
- <td><select name="xyz_credit_link" id="xyz_fbap_credit_link">
751
-
752
- <option value="fbap"
753
- <?php if($xyz_credit_link=='fbap') echo 'selected'; ?>>Yes</option>
754
-
755
- <option
756
- value="<?php echo $xyz_credit_link!='fbap'?$xyz_credit_link:0;?>"
757
- <?php if($xyz_credit_link!='fbap') echo 'selected'; ?>>No</option>
758
- </select>
759
  </td>
760
  </tr>
761
 
762
  <tr valign="top">
763
-
764
  <td colspan="1">Enable premium version ads
765
  </td>
766
- <td><select name="xyz_fbap_premium_version_ads" id="xyz_fbap_premium_version_ads">
767
-
768
- <option value="1"
769
- <?php if($xyz_fbap_premium_version_ads=='1') echo 'selected'; ?>>Yes</option>
770
-
771
- <option
772
- value="0"
773
- <?php if($xyz_fbap_premium_version_ads=='0') echo 'selected'; ?>>No</option>
774
- </select>
775
  </td>
776
  </tr>
777
-
778
-
779
-
780
  <tr>
781
-
782
  <td id="bottomBorderNone">
783
-
784
-
785
  </td>
786
 
787
 
@@ -791,13 +658,16 @@ function dethide(id)
791
 
792
  </table>
793
  </form>
794
-
795
-
796
  </div>
797
-
 
 
 
 
798
  <script type="text/javascript">
799
  //drpdisplay();
800
- var catval='<?php echo esc_html($xyz_fbap_include_categories); ?>';
 
801
  var custtypeval='<?php echo esc_html($xyz_fbap_include_customposttypes); ?>';
802
  var get_opt_cats='<?php echo esc_html(get_option('xyz_fbap_include_posts'));?>';
803
  jQuery(document).ready(function() {
@@ -810,8 +680,41 @@ jQuery(document).ready(function() {
810
  jQuery('#selPostCat').hide();
811
  else
812
  jQuery('#selPostCat').show();
813
-
814
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
815
 
816
  function setcat(obj)
817
  {
@@ -822,25 +725,16 @@ if(obj.options[k].selected)
822
  sel_str+=obj.options[k].value+",";
823
  }
824
 
825
-
826
  var l = sel_str.length;
827
  var lastChar = sel_str.substring(l-1, l);
828
  if (lastChar == ",") {
829
  sel_str = sel_str.substring(0, l-1);
830
  }
831
-
832
  document.getElementById('xyz_fbap_sel_cat').value=sel_str;
833
-
834
  }
835
 
836
- var d1='<?php echo esc_html($xyz_fbap_include_categories);?>';
837
- splitText = d1.split(",");
838
- jQuery.each(splitText, function(k,v) {
839
- jQuery("#xyz_fbap_catlist").children("option[value="+v+"]").attr("selected","selected");
840
- });
841
-
842
  function rd_cat_chn(val,act)
843
- {//xyz_fbap_cat_all xyz_fbap_cust_all
844
  if(val==1)
845
  {
846
  if(act==-1)
@@ -848,7 +742,6 @@ function rd_cat_chn(val,act)
848
  else
849
  jQuery("#cat_dropdown_span").show();
850
  }
851
-
852
  }
853
 
854
  function xyz_fbap_info_insert(inf){
@@ -870,6 +763,28 @@ function xyz_fbap_show_postCategory(val)
870
  else
871
  jQuery('#selPostCat').show();
872
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
873
  </script>
874
  <?php
875
- ?>
3
  global $current_user;
4
  $auth_varble=0;
5
  wp_get_current_user();
6
+ $imgpath= plugins_url()."/facebook-auto-publish/images/";
7
  $heimg=$imgpath."support.png";
8
  $ms0="";
9
  $ms1="";
10
  $ms2="";
11
  $ms3="";
 
12
  $redirecturl=admin_url('admin.php?page=facebook-auto-publish-settings&auth=1');
 
 
13
  require( dirname( __FILE__ ) . '/authorization.php' );
14
+ if(!$_POST && isset($_GET['fbap_notice'])&& $_GET['fbap_notice'] == 'hide')
 
 
15
  {
16
+ if (! isset( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'],'fbap-shw')){
17
+ wp_nonce_ays( 'fbap-shw');
18
+ exit;
19
+ }
20
  update_option('xyz_fbap_dnt_shw_notice', "hide");
21
  ?>
22
  <style type='text/css'>
23
  #fb_notice_td
24
  {
25
+ display:none !important;
26
  }
27
  </style>
28
  <div class="system_notice_area_style1" id="system_notice_area">
33
  <?php
34
  }
35
 
 
36
  $erf=0;
37
  if(isset($_POST['fb']))
38
  {
39
+ if (! isset( $_REQUEST['_wpnonce'] )
 
40
  || ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'xyz_smap_fb_settings_form_nonce' )
41
  ) {
 
42
  wp_nonce_ays( 'xyz_smap_fb_settings_form_nonce' );
 
43
  exit();
 
44
  }
 
45
  $ss=array();
46
  if(isset($_POST['fbap_pages_list']))
47
  $ss=$_POST['fbap_pages_list'];
64
 
65
 
66
  update_option('xyz_fbap_pages_ids',$fbap_pages_list_ids);
 
 
67
  $applidold=get_option('xyz_fbap_application_id');
68
  $applsecretold=get_option('xyz_fbap_application_secret');
 
 
69
  $posting_method=intval($_POST['xyz_fbap_po_method']);
70
  $posting_permission=intval($_POST['xyz_fbap_post_permission']);
71
  $app_name=sanitize_text_field($_POST['xyz_fbap_application_name']);
72
  $appid=sanitize_text_field($_POST['xyz_fbap_application_id']);
73
  $appsecret=sanitize_text_field($_POST['xyz_fbap_application_secret']);
74
  $messagetopost=$_POST['xyz_fbap_message'];
 
75
  if($app_name=="" && $posting_permission==1)
76
  {
77
  $ms0="Please fill facebook application name.";
87
  $ms2="Please fill facebook application secret.";
88
  $erf=1;
89
  }
 
 
 
 
 
 
 
 
 
 
90
  else
91
  {
92
  $erf=0;
95
  update_option('xyz_fbap_af',1);
96
  update_option('xyz_fbap_fb_token','');
97
  }
 
 
 
 
98
  update_option('xyz_fbap_application_name',$app_name);
99
  update_option('xyz_fbap_application_id',$appid);
100
  update_option('xyz_fbap_post_permission',$posting_permission);
102
  //update_option('xyz_fbap_fb_id',$fbid);
103
  update_option('xyz_fbap_po_method',$posting_method);
104
  update_option('xyz_fbap_message',$messagetopost);
 
 
 
105
  }
106
  }
 
 
 
107
  if(isset($_POST['fb']) && $erf==0)
108
  {
109
  ?>
 
110
  <div class="system_notice_area_style1" id="system_notice_area">
111
  Settings updated successfully. &nbsp;&nbsp;&nbsp;<span
112
  id="system_notice_area_dismiss">Dismiss</span>
138
  <?php
139
  if(isset($_POST['fb']))
140
  {
141
+ echo esc_html($ms0);echo esc_html($ms1);echo esc_html($ms2);echo esc_html($ms3);
142
  }
143
  ?>
144
  &nbsp;&nbsp;&nbsp;<span id="system_notice_area_dismiss">Dismiss</span>
145
  </div>
146
  <?php } ?>
147
  <script type="text/javascript">
148
+ function detdisplay_fbap(id)
149
  {
150
  document.getElementById(id).style.display='';
151
  }
152
+ function dethide_fbap(id)
153
  {
154
  document.getElementById(id).style.display='none';
155
  }
 
156
  </script>
157
 
158
  <div style="width: 100%">
159
 
160
  <h2>
161
+ <img src="<?php echo plugins_url()?>/facebook-auto-publish/images/facebook-logo.png" height="16px"> Facebook Settings
162
  </h2>
163
  <?php
164
  $af=get_option('xyz_fbap_af');
188
 
189
  </form>
190
  <?php }
 
 
191
  if(isset($_GET['auth']) && $_GET['auth']==1 && get_option("xyz_fbap_fb_token")!="")
192
  {
193
  ?>
 
194
  <span style="color: green;">Application is authorized, go posting.
195
  </span><br>
196
 
197
  <?php
198
  }
199
  ?>
 
 
200
  <table class="widefat" style="width: 99%;background-color: #FFFBCC">
201
  <tr>
202
+ <td id="bottomBorderNone" style="border: 1px solid #FCC328;">
203
 
204
  <div>
 
 
205
  <b>Note :</b> You have to create a Facebook application before filling the following details.
206
  <b><a href="https://developers.facebook.com/apps" target="_blank">Click here</a></b> to create new Facebook application.
207
  <br>In the application page in facebook, navigate to <b>Apps >Add Product > Facebook Login >Quickstart >Web > Site URL</b>. Set the site url as :
219
 
220
  <input type="hidden" value="config">
221
 
 
 
 
 
222
  <div style="font-weight: bold;padding: 3px;">All fields given below are mandatory</div>
223
  <table class="widefat xyz_fbap_widefat_table" style="width: 99%">
224
  <tr valign="top">
248
  value="<?php if($ms2=="") {echo $apsecret; }?>" />
249
  </td>
250
  </tr>
 
 
 
 
 
 
 
 
251
  <tr valign="top">
252
  <td>Message format for posting <img src="<?php echo $heimg?>"
253
+ onmouseover="detdisplay_fbap('xyz_fb')" onmouseout="dethide_fbap('xyz_fb')" style="width:13px;height:auto;">
254
+ <div id="xyz_fb" class="fbap_informationdiv" style="display: none;">
255
  {POST_TITLE} - Insert the title of your post.<br />{PERMALINK} -
256
  Insert the URL where your post is displayed.<br />{POST_EXCERPT}
257
  - Insert the excerpt of your post.<br />{POST_CONTENT} - Insert
260
  of the author.<br />{POST_ID} - Insert the ID of your post.
261
  <br />{POST_PUBLISH_DATE} - Insert the publish date of your post.
262
  <br />{USER_DISPLAY_NAME} - Insert the display name of the author.
263
+ </div><br/><span style="color: #0073aa;">[Optional in the case of <b>Text message with attached link</b><br/> or <b>Text message with image</b> posting methods]</span></td>
264
+ <td>
265
+ <select name="xyz_fbap_info" id="xyz_fbap_info" onchange="xyz_fbap_info_insert(this)">
266
+ <option value ="0" selected="selected">--Select--</option>
267
+ <option value ="1">{POST_TITLE} </option>
268
+ <option value ="2">{PERMALINK} </option>
269
+ <option value ="3">{POST_EXCERPT} </option>
270
+ <option value ="4">{POST_CONTENT} </option>
271
+ <option value ="5">{BLOG_TITLE} </option>
272
+ <option value ="6">{USER_NICENAME} </option>
273
+ <option value ="7">{POST_ID} </option>
274
+ <option value ="8">{POST_PUBLISH_DATE} </option>
275
+ <option value= "9">{USER_DISPLAY_NAME}</option>
276
+ </select> </td></tr><tr><td>&nbsp;</td><td>
277
+ <textarea id="xyz_fbap_message" name="xyz_fbap_message" style="height:80px !important;" ><?php
278
+ echo esc_textarea(get_option('xyz_fbap_message'));?></textarea>
279
+ </td></tr>
280
+
 
281
  <tr valign="top">
282
  <td>Posting method
283
  </td>
305
  </td>
306
  </tr>
307
  <tr valign="top">
308
+ <td>Enable auto publish post to my facebook account
309
+ </td>
310
+ <td class="switch-field">
311
+ <label id="xyz_fbap_post_permission_yes"><input type="radio" name="xyz_fbap_post_permission" value="1" <?php if(get_option('xyz_fbap_post_permission')==1) echo 'checked';?>/>Yes</label>
312
+ <label id="xyz_fbap_post_permission_no"><input type="radio" name="xyz_fbap_post_permission" value="0" <?php if(get_option('xyz_fbap_post_permission')==0) echo 'checked';?>/>No</label>
313
+ </td>
314
+ </tr>
 
 
 
 
315
  <?php
 
316
  $xyz_acces_token=get_option('xyz_fbap_fb_token');
 
317
  if($xyz_acces_token!=""){
318
 
319
  $offset=0;$limit=100;$data=array();
 
320
  do
321
  {
322
  $result1="";$pagearray1="";
336
  // break;
337
  // }while(array_key_exists("next", $pagearray1->paging));
338
  }while(isset($pagearray1->paging->next));
 
 
 
339
  $count=count($data);
 
340
  $fbap_pages_ids1=get_option('xyz_fbap_pages_ids');
341
  $fbap_pages_ids0=array();
342
  if($fbap_pages_ids1!="")
354
  //$data[$i]->id."-".$data[$i]->access_token
355
  ?>
356
 
357
+ <tr valign="top"><td>
358
+ Select facebook pages for auto publish
359
+ </td>
360
+ <td>
361
+
362
+ <div class="scroll_checkbox">
363
+ <input type="checkbox" id="select_all_pages" >Select All
364
+ <br><input type="checkbox" class="selpages" name="fbap_pages_list[]" value="-1" <?php if(in_array(-1, $fbap_pages_ids)) echo "checked" ?>>Profile Page
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
365
 
366
+ <?php
367
+ for($i=0;$i<$count;$i++)
368
+ {
369
+ $pgid=$data[$i]->id;
370
+ $page_name[$pgid]=$data[$i]->name;
371
+ ?>
372
+ <br><input type="checkbox" class="selpages" name="fbap_pages_list[]" value="<?php echo $data[$i]->id."-".$data[$i]->access_token;?>" <?php if(in_array($data[$i]->id, $fbap_pages_ids)) echo "checked" ?>><?php echo $data[$i]->name; ?>
373
+ <?php }
374
+ // $page_name=base64_encode(serialize($page_name));?>
375
+ <input type="hidden" value="<?php echo $page_name;?>" name="hidden_page_name" >
376
+ </div>
377
+ </td></tr>
378
  <?php
379
  }?>
380
  <tr><td id="bottomBorderNone"></td>
385
  </td>
386
  </tr>
387
  </table>
 
388
  </form>
389
 
 
 
390
  <?php
391
 
392
  if(isset($_POST['bsettngs']))
394
  if (! isset( $_REQUEST['_wpnonce'] )
395
  || ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'xyz_smap_basic_settings_form_nonce' )
396
  ) {
 
397
  wp_nonce_ays( 'xyz_smap_basic_settings_form_nonce' );
 
398
  exit();
 
399
  }
 
400
  $xyz_fbap_include_pages=intval($_POST['xyz_fbap_include_pages']);
401
  $xyz_fbap_include_posts=intval($_POST['xyz_fbap_include_posts']);
402
 
403
  if($_POST['xyz_fbap_cat_all']=="All")
404
  $fbap_category_ids=$_POST['xyz_fbap_cat_all'];//radio btn name
405
+ else if (isset($_POST['xyz_fbap_catlist']))
406
+ {
407
+ $fbap_category_ids=$_POST['xyz_fbap_catlist'];//dropdown
408
+ $fbap_category_ids=implode(',', $fbap_category_ids);
409
+ }
410
 
411
+ $xyz_customtypes="";
412
  if(isset($_POST['post_types']))
413
  $xyz_customtypes=$_POST['post_types'];
414
 
415
  $xyz_fbap_peer_verification=intval($_POST['xyz_fbap_peer_verification']);
416
  $xyz_fbap_premium_version_ads=intval($_POST['xyz_fbap_premium_version_ads']);
417
  $xyz_fbap_default_selection_edit=intval($_POST['xyz_fbap_default_selection_edit']);
418
+ // $xyz_fbap_utf_decode_enable=intval($_POST['xyz_fbap_utf_decode_enable']);
 
 
419
  $fbap_customtype_ids="";
 
420
  $xyz_fbap_applyfilters="";
421
  if(isset($_POST['xyz_fbap_applyfilters']))
422
  $xyz_fbap_applyfilters=$_POST['xyz_fbap_applyfilters'];
452
  update_option('xyz_fbap_peer_verification',$xyz_fbap_peer_verification);
453
  update_option('xyz_fbap_premium_version_ads',$xyz_fbap_premium_version_ads);
454
  update_option('xyz_fbap_default_selection_edit',$xyz_fbap_default_selection_edit);
455
+ // update_option('xyz_fbap_utf_decode_enable',$xyz_fbap_utf_decode_enable);
 
456
  }
 
457
  $xyz_credit_link=get_option('xyz_credit_link');
458
  $xyz_fbap_include_pages=get_option('xyz_fbap_include_pages');
459
  $xyz_fbap_include_posts=get_option('xyz_fbap_include_posts');
460
  $xyz_fbap_include_categories=get_option('xyz_fbap_include_categories');
461
+ if ($xyz_fbap_include_categories!='All')
462
+ $xyz_fbap_include_categories=explode(',', $xyz_fbap_include_categories);
463
  $xyz_fbap_include_customposttypes=get_option('xyz_fbap_include_customposttypes');
464
  $xyz_fbap_apply_filters=get_option('xyz_fbap_apply_filters');
465
  $xyz_fbap_peer_verification=get_option('xyz_fbap_peer_verification');
466
  $xyz_fbap_premium_version_ads=get_option('xyz_fbap_premium_version_ads');
467
  $xyz_fbap_default_selection_edit=get_option('xyz_fbap_default_selection_edit');
468
+ // $xyz_fbap_utf_decode_enable=get_option('xyz_fbap_utf_decode_enable');
 
469
  ?>
470
  <h2>Basic Settings</h2>
 
 
471
  <form method="post">
472
  <?php wp_nonce_field( 'xyz_smap_basic_settings_form_nonce' );?>
473
  <table class="widefat xyz_fbap_widefat_table" style="width: 99%">
474
 
475
  <tr valign="top">
476
+ <td colspan="1" width="50%">Publish wordpress `pages` to facebook
477
+ </td>
478
+ <td class="switch-field">
479
+ <label id="xyz_fbap_include_pages_yes"><input type="radio" name="xyz_fbap_include_pages" value="1" <?php if($xyz_fbap_include_pages==1) echo 'checked';?>/>Yes</label>
480
+ <label id="xyz_fbap_include_pages_no"><input type="radio" name="xyz_fbap_include_pages" value="0" <?php if($xyz_fbap_include_pages==0) echo 'checked';?>/>No</label>
481
+ </td>
 
 
 
 
 
 
482
  </tr>
483
 
484
  <tr valign="top">
 
485
  <td colspan="1">Publish wordpress `posts` to facebook
486
  </td>
487
+ <td class="switch-field">
488
+ <label id="xyz_fbap_include_posts_yes"><input type="radio" name="xyz_fbap_include_posts" value="1" <?php if($xyz_fbap_include_posts==1) echo 'checked';?>/>Yes</label>
489
+ <label id="xyz_fbap_include_posts_no"><input type="radio" name="xyz_fbap_include_posts" value="0" <?php if($xyz_fbap_include_posts==0) echo 'checked';?>/>No</label>
490
+ </td>
491
+ </tr>
 
 
 
 
 
492
 
493
  <tr valign="top" id="selPostCat">
 
494
  <td colspan="1">Select post categories for auto publish
495
  </td>
496
+ <td class="switch-field">
497
+ <input type="hidden" value="<?php echo esc_html($xyz_fbap_include_categories);?>" name="xyz_fbap_sel_cat" id="xyz_fbap_sel_cat">
498
+ <label id="xyz_fbap_include_categories_no">
499
+ <input type="radio" name="xyz_fbap_cat_all" id="xyz_fbap_cat_all" value="All" onchange="rd_cat_chn(1,-1)" <?php if($xyz_fbap_include_categories=="All") echo "checked"?>>All<font style="padding-left: 10px;"></font></label>
500
+ <label id="xyz_fbap_include_categories_yes">
501
+ <input type="radio" name="xyz_fbap_cat_all" id="xyz_fbap_cat_all" value="" onchange="rd_cat_chn(1,1)" <?php if($xyz_fbap_include_categories!="All") echo "checked"?>>Specific</label>
502
+ <br /> <br /> <div class="scroll_checkbox" id="cat_dropdown_span">
503
+ <?php
504
+ $args = array(
505
+ 'show_option_all' => '',
506
+ 'show_option_none' => '',
507
+ 'orderby' => 'name',
508
+ 'order' => 'ASC',
509
+ 'show_last_update' => 0,
510
+ 'show_count' => 0,
511
+ 'hide_empty' => 0,
512
+ 'child_of' => 0,
513
+ 'exclude' => '',
514
+ 'echo' => 0,
515
+ 'selected' => '1 3',
516
+ 'hierarchical' => 1,
517
+ 'id' => 'xyz_fbap_catlist',
518
+ 'class' => 'postform',
519
+ 'depth' => 0,
520
+ 'tab_index' => 0,
521
+ 'taxonomy' => 'category',
522
+ 'hide_if_empty' => false );
523
+
524
+ if(count(get_categories($args))>0)
525
+ {
526
+ $fbap_categories=get_categories();
527
+ foreach ($fbap_categories as $fbap_cat)
 
 
 
528
  {
529
+ $cat_id[]=$fbap_cat->cat_ID;
530
+ $cat_name[]=$fbap_cat->cat_name;
531
+ ?>
532
+ <input type="checkbox" name="xyz_fbap_catlist[]" value="<?php echo $fbap_cat->cat_ID;?>" <?php if(is_array($xyz_fbap_include_categories)) { if(in_array($fbap_cat->cat_ID, $xyz_fbap_include_categories)) echo "checked";} ?>/><?php echo $fbap_cat->cat_name; ?>
533
+ <br/><?php }
534
+ }
535
+ else
536
+ echo "NIL";
537
+ ?><br /> <br /> </div>
538
+ </td>
539
  </tr>
540
 
541
 
542
  <tr valign="top">
 
543
  <td colspan="1">Select wordpress custom post types for auto publish</td>
544
  <td><?php
 
545
  $args=array(
546
  'public' => true,
547
  '_builtin' => false
572
  </tr>
573
 
574
  <tr valign="top">
575
+ <td scope="row" colspan="1" width="50%">Default selection of auto publish while editing posts/pages/custom post types
576
+ </td>
577
+ <td class="switch-field">
578
+ <label id="xyz_fbap_default_selection_edit_yes"><input type="radio" name="xyz_fbap_default_selection_edit" value="1" <?php if($xyz_fbap_default_selection_edit==1) echo 'checked';?>/>Enabled</label>
579
+ <label id="xyz_fbap_default_selection_edit_no"><input type="radio" name="xyz_fbap_default_selection_edit" value="0" <?php if($xyz_fbap_default_selection_edit==0) echo 'checked';?>/>Disabled</label>
580
+
 
 
581
  </td>
582
  </tr>
583
 
584
  <tr valign="top">
585
+ <td scope="row" colspan="1" width="50%">Enable SSL peer verification in remote requests</td>
586
+ <td class="switch-field">
587
+ <label id="xyz_fbap_peer_verification_yes"><input type="radio" name="xyz_fbap_peer_verification" value="1" <?php if($xyz_fbap_peer_verification==1) echo 'checked';?>/>Yes</label>
588
+ <label id="xyz_fbap_peer_verification_no"><input type="radio" name="xyz_fbap_peer_verification" value="0" <?php if($xyz_fbap_peer_verification==0) echo 'checked';?>/>No</label>
589
+ </td>
590
+ </tr>
 
 
591
 
592
  <tr valign="top">
593
  <td scope="row" colspan="1">Apply filters during publishing </td>
616
  echo '<label>'.$filName.'</label><br/>';
617
 
618
  }
 
619
  ?>
620
  </td>
621
  </tr>
622
+ <!-- <tr valign="top">
623
 
624
+ <td scope="row" colspan="1" width="50%">Enable utf-8 decoding before publishing </td>
625
+ <td class="switch-field">
626
+ <label id="xyz_fbap_utf_decode_enable_yes"><input type="radio" name="xyz_fbap_utf_decode_enable" value="1" <?php //if($xyz_fbap_utf_decode_enable==1) echo 'checked';?>/>Yes</label>
627
+ <label id="xyz_fbap_utf_decode_enable_no"><input type="radio" name="xyz_fbap_utf_decode_enable" value="0" <?php //if($xyz_fbap_utf_decode_enable==0) echo 'checked';?>/>No</label>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
628
  </td>
629
+ </tr> -->
630
 
631
  <tr valign="top">
632
 
633
  <td colspan="1">Enable credit link to author
634
  </td>
635
+ <td class="switch-field">
636
+ <label id="xyz_credit_link_yes"><input type="radio" name="xyz_credit_link" value="fbap" <?php if($xyz_credit_link=='fbap') echo 'checked';?>/>Yes</label>
637
+ <label id="xyz_credit_link_no"><input type="radio" name="xyz_credit_link" value="<?php echo $xyz_credit_link!='fbap'?$xyz_credit_link:0;?>" <?php if($xyz_credit_link!='fbap') echo 'checked';?>/>No</label>
 
 
 
 
 
 
638
  </td>
639
  </tr>
640
 
641
  <tr valign="top">
 
642
  <td colspan="1">Enable premium version ads
643
  </td>
644
+ <td class="switch-field">
645
+ <label id="xyz_fbap_premium_version_ads_yes"><input type="radio" name="xyz_fbap_premium_version_ads" value="1" <?php if($xyz_fbap_premium_version_ads==1) echo 'checked';?>/>Yes</label>
646
+ <label id="xyz_fbap_premium_version_ads_no"><input type="radio" name="xyz_fbap_premium_version_ads" value="0" <?php if($xyz_fbap_premium_version_ads==0) echo 'checked';?>/>No</label>
647
+
 
 
 
 
 
648
  </td>
649
  </tr>
 
 
 
650
  <tr>
 
651
  <td id="bottomBorderNone">
 
 
652
  </td>
653
 
654
 
658
 
659
  </table>
660
  </form>
 
 
661
  </div>
662
+ <?php if (is_array($xyz_fbap_include_categories))
663
+ $xyz_fbap_include_categories1=implode(',', $xyz_fbap_include_categories);
664
+ else
665
+ $xyz_fbap_include_categories1=$xyz_fbap_include_categories;
666
+ ?>
667
  <script type="text/javascript">
668
  //drpdisplay();
669
+
670
+ var catval='<?php echo $xyz_fbap_include_categories1; ?>';
671
  var custtypeval='<?php echo esc_html($xyz_fbap_include_customposttypes); ?>';
672
  var get_opt_cats='<?php echo esc_html(get_option('xyz_fbap_include_posts'));?>';
673
  jQuery(document).ready(function() {
680
  jQuery('#selPostCat').hide();
681
  else
682
  jQuery('#selPostCat').show();
683
+
684
+ var xyz_credit_link=jQuery("input[name='xyz_credit_link']:checked").val();
685
+ if(xyz_credit_link=='fbap')
686
+ xyz_credit_link=1;
687
+ else
688
+ xyz_credit_link=0;
689
+ XyzFbapToggleRadio(xyz_credit_link,'xyz_credit_link');
690
+
691
+ var xyz_fbap_cat_all=jQuery("input[name='xyz_fbap_cat_all']:checked").val();
692
+ if (xyz_fbap_cat_all == 'All')
693
+ xyz_fbap_cat_all=0;
694
+ else
695
+ xyz_fbap_cat_all=1;
696
+ XyzFbapToggleRadio(xyz_fbap_cat_all,'xyz_fbap_include_categories');
697
+
698
+ var fbap_toggle_element_ids=['xyz_fbap_post_permission','xyz_fbap_include_pages',
699
+ 'xyz_fbap_include_posts','xyz_fbap_default_selection_edit',
700
+ 'xyz_fbap_peer_verification','xyz_fbap_premium_version_ads'];
701
+ jQuery.each(fbap_toggle_element_ids, function( index, value ) {
702
+ checkedval= jQuery("input[name='"+value+"']:checked").val();
703
+ XyzFbapToggleRadio(checkedval,value);
704
+ });
705
+ });
706
+
707
+ function toggleRadio(value,buttonId)
708
+ {
709
+ if (value == '1') {
710
+ jQuery("#"+buttonId+"_no").css({"background-color": "#dddddd", "color": "#888888", "font-weight": "normal"});
711
+ jQuery("#"+buttonId+"_yes").css({"background-color": "#28A6A2","color":"#1e1b1b", "font-weight": "bold"});
712
+ }
713
+ else if (value == '0') {
714
+ jQuery("#"+buttonId+"_yes").css({"background-color": "#dddddd", "color": "#888888", "font-weight": "normal"});
715
+ jQuery("#"+buttonId+"_no").css({"background-color": "#28A6A2","color":"#1e1b1b", "font-weight": "bold"});
716
+ }
717
+ }
718
 
719
  function setcat(obj)
720
  {
725
  sel_str+=obj.options[k].value+",";
726
  }
727
 
 
728
  var l = sel_str.length;
729
  var lastChar = sel_str.substring(l-1, l);
730
  if (lastChar == ",") {
731
  sel_str = sel_str.substring(0, l-1);
732
  }
 
733
  document.getElementById('xyz_fbap_sel_cat').value=sel_str;
 
734
  }
735
 
 
 
 
 
 
 
736
  function rd_cat_chn(val,act)
737
+ {
738
  if(val==1)
739
  {
740
  if(act==-1)
742
  else
743
  jQuery("#cat_dropdown_span").show();
744
  }
 
745
  }
746
 
747
  function xyz_fbap_info_insert(inf){
763
  else
764
  jQuery('#selPostCat').show();
765
  }
766
+ jQuery("#select_all_pages").click(function(){
767
+
768
+ jQuery(".selpages").prop("checked",jQuery("#select_all_pages").prop("checked"));
769
+ });
770
+
771
+ var fbap_toggle_element_ids=['xyz_fbap_post_permission','xyz_fbap_include_pages',
772
+ 'xyz_fbap_include_posts','xyz_fbap_default_selection_edit',
773
+ 'xyz_fbap_peer_verification','xyz_credit_link','xyz_fbap_premium_version_ads','xyz_fbap_include_categories'];
774
+
775
+ jQuery.each(fbap_toggle_element_ids, function( index, value ) {
776
+ jQuery("#"+value+"_no").click(function(){
777
+ XyzFbapToggleRadio(0,value);
778
+ if(value=='xyz_fbap_include_posts')
779
+ xyz_fbap_show_postCategory(0);
780
+ });
781
+ jQuery("#"+value+"_yes").click(function(){
782
+ XyzFbapToggleRadio(1,value);
783
+ if(value=='xyz_fbap_include_posts')
784
+ xyz_fbap_show_postCategory(1);
785
+ });
786
+ });
787
+
788
  </script>
789
  <?php
790
+ ?>
admin/style.css DELETED
@@ -1,318 +0,0 @@
1
- #system_notice_area {
2
- position: fixed;
3
- margin-bottom:40px;
4
- left:25%;
5
- width:50%;
6
- height:30px;
7
- border-radius:5px;
8
- -moz-border-radius:5px;
9
- -webkit-border-radius:5px;
10
- font-weight:bold;
11
- display:none;
12
- padding:3px;
13
- color: #000000;
14
- text-align: center;
15
- top: 0px;
16
- z-index: 100000;
17
- padding-top: 10px;
18
-
19
-
20
- }
21
-
22
-
23
- .xyz_suggest,.xyz_star,.xyz_donate,.xyz_fbook,.xyz_support,.xyz_twitt,.xyz_gplus,.xyz_linkdin{
24
- height:16px;
25
- background-repeat: no-repeat;
26
- background-position: left center;
27
- padding-left: 18px;
28
- text-decoration: none;
29
-
30
- vertical-align: middle;
31
- display: inline-block;
32
-
33
- }
34
- .xyz_suggest{
35
-
36
- background-image: url('images/suggest.png');
37
- }
38
-
39
- .xyz_star{
40
- background-image: url('images/star.png');
41
- }
42
-
43
- .xyz_donate{
44
-
45
- background-image: url('images/donate.png');
46
- }
47
-
48
-
49
- .xyz_fbook{
50
-
51
- background-image: url('images/fb.gif');
52
- }
53
- .xyz_support{
54
-
55
- background-image: url('images/support.png');
56
- }
57
- .xyz_twitt{
58
-
59
- background-image: url('images/tw.gif');
60
- }
61
- .xyz_gplus{
62
-
63
- background-image: url('images/gp.gif');
64
- }
65
-
66
- .xyz_linkdin{
67
-
68
- background-image: url('images/linkedin.gif');
69
- }
70
-
71
-
72
- #facebook-auto-publish .xyz_fbook{
73
- margin-left: 3px;
74
- }
75
-
76
- #facebook-auto-publish .xyz_twitt{
77
- margin-left: 3px;
78
- }
79
-
80
- #facebook-auto-publish .xyz_gplus{
81
- margin-left: 3px;
82
- }
83
-
84
- #facebook-auto-publish .xyz_linkdin{
85
- margin-left: 3px;
86
- }
87
-
88
- #facebook-auto-publish .xyz_support{
89
- margin-left: 3px;margin-right: -3px;
90
- }
91
-
92
- #facebook-auto-publish .plugin-version-author-uri {
93
-
94
- background-color: #F4F4F4;
95
- min-height:16px;
96
- border-radius:5px;
97
- margin-bottom: 10px;
98
- font-weight:bold;
99
- padding: 5px;
100
- color: #111111;
101
-
102
- -webkit-box-shadow: 0 8px 6px -6px black;
103
- -moz-box-shadow: 0 8px 6px -6px black;
104
- box-shadow: 0 8px 6px -6px black;
105
-
106
- }
107
-
108
- #facebook-auto-publish th,#facebook-auto-publish td{
109
- background: #a9e8f5; /* Old browsers */
110
- background: linear-gradient( #ffffff,#a9e8f5 ); /* W3C */
111
-
112
-
113
- }
114
-
115
- #facebook-auto-publish .plugin-version-author-uri a,
116
- #facebook-auto-publish .plugin-version-author-uri a:link,
117
- #facebook-auto-publish .plugin-version-author-uri a:hover,
118
- #facebook-auto-publish .plugin-version-author-uri a:active,
119
- #facebook-auto-publish .plugin-version-author-uri a:visited{
120
-
121
-
122
- color: #111111;
123
- text-decoration: none;
124
-
125
- }
126
- #facebook-auto-publish .plugin-version-author-uri a:hover{
127
-
128
- color:#cc811a;
129
- }
130
- #facebook-auto-publish .plugin-title{
131
-
132
- background: url('images/xyz_logo.png'),linear-gradient( #ffffff,#a9e8f5 );
133
- background-repeat: no-repeat;
134
- background-position: left bottom;
135
-
136
- }
137
-
138
- .xyz-premium-comparison
139
- {
140
- width: 99%;
141
- padding:0px;
142
- border: 1px solid #CCCCCC;
143
- border-radius:3px;
144
- }
145
- .xyz-premium-comparison td
146
- {
147
- padding: 1px;
148
- border: 1px solid #CCCCCC;
149
- height: 25px;
150
- }
151
-
152
- /* Buy Now - button bounce style*/
153
- img.hoverImages {
154
- margin-bottom:20px;
155
- -webkit-transition: margin 0.2s ease-out;
156
- -moz-transition: margin 0.2s ease-out;
157
- -o-transition: margin 0.2s ease-out;
158
- }
159
- img.hoverImages:hover {
160
- cursor:pointer;
161
- margin-top: 5px;
162
- }
163
-
164
-
165
- #system_notice_area_dismiss{
166
- color: #FFFFFF;
167
- cursor: pointer;
168
- }
169
- .system_notice_area_style1 {
170
- background: #00C348;
171
- border: 1px solid green;
172
- }
173
-
174
- .system_notice_area_style0 {
175
- background: #FA5A6A;
176
- border: 1px solid brown;
177
- }
178
-
179
- .submit_fbap_new{
180
- background:#25A6E1;
181
- background:-moz-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
182
- background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#25A6E1),color-stop(100%,#188BC0));
183
- background:-webkit-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
184
- background:-o-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
185
- background:-ms-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
186
- background:linear-gradient(top,#25A6E1 0%,#188BC0 100%);
187
- filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#25A6E1",endColorstr="#188BC0",GradientType=0);
188
- color:#ffffff !important;
189
- border-radius: 4px !important; border: 1px solid #1A87B9 !important;
190
- font-family:"Helvetica Neue",sans-serif;
191
- font-size:13px;
192
- cursor:pointer;height: 30px;
193
- padding-left: 15px;
194
- padding-right: 15px;
195
- }
196
-
197
- .informationdiv {
198
- background: none repeat scroll 0 0 #9FDAEE;
199
- border: 1px solid #209BD4;
200
- border-radius: 5px 5px 5px 5px;
201
- box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
202
- float: left;
203
- padding: 10px;
204
- position: absolute;
205
- z-index: 1200;
206
- }
207
- .xyz_feedback{
208
- background: #CEEAF7; /* Old browsers */
209
- border: 1px solid #64cfe8;
210
- border-radius:3px;
211
- width: 98%;
212
- min-height:40px;
213
- height:auto;
214
- padding-left: 10px;
215
- padding-top: 10px;
216
- font-weight: bold;
217
- line-height: 20px;
218
-
219
- }
220
-
221
-
222
- .xyz_feedback a{
223
- text-decoration: none
224
- }
225
-
226
- .xyz_subscribe{
227
- background: #bae598; /* Old browsers */
228
- border: 1px solid #4d8a1d;
229
- border-radius:3px;
230
- width: 98%;
231
- line-height:20px;
232
- min-height:45px;
233
- height:auto;
234
- padding-left: 10px;
235
- padding-top: 10px;
236
-
237
- }
238
- .xyz_subscribe td{
239
- padding:0;
240
- }
241
-
242
- .xyz_plugins{
243
- background: #F2F2F2; /* Old browsers */
244
- border: 1px solid #DFDFDF;
245
- border-radius:3px;
246
- width: 98%;
247
- padding-left: 10px;
248
- padding-top:10px;
249
- min-height:50px;
250
- height:auto;
251
- margin-top:13px;
252
- line-height: 20px;
253
-
254
- }
255
-
256
-
257
- .submit_fbap{
258
- background:#25A6E1;
259
- background:-moz-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
260
- background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#25A6E1),color-stop(100%,#188BC0));
261
- background:-webkit-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
262
- background:-o-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
263
- background:-ms-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
264
- background:linear-gradient(top,#25A6E1 0%,#188BC0 100%);
265
- filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#25A6E1",endColorstr="#188BC0",GradientType=0);
266
- color:#ffffff;
267
- font-family:"Helvetica Neue",sans-serif;
268
- font-size:13px;
269
- cursor:pointer;
270
- color:#FFFFFF !important;border-radius:4px !important;
271
- border:1px solid #1A87B9;height: 30px;
272
- padding-left: 15px;
273
- padding-right: 15px;
274
- }
275
- #xyz-wp-fbap-premium {
276
- border: 1px solid #FCC328;
277
- margin-bottom: 20px;
278
- margin-top: 20px;
279
- background-color: #FFF6D6;
280
- height: 50px;
281
- padding: 5px;
282
- width: 98%;
283
- border-radius:3px;
284
- }
285
- a.xyz_fbap_link:hover{text-decoration:underline;}
286
- .xyz_fbap_link{text-decoration:none;font-weight: bold;margin-left:8px;}
287
-
288
- .xyz_fbap_widefat_table input[type="text"], .xyz_fbap_widefat_table input[type="password"], .xyz_fbap_widefat_table input[type="email"], .xyz_fbap_widefat_table input[type="number"], .xyz_fbap_widefat_table input[type="search"], .xyz_fbap_widefat_table input[type="tel"], .xyz_fbap_widefat_table input[type="url"], .xyz_fbap_widefat_table select {
289
- width: 200px;padding: 5px !important;height: 2.35em !important;
290
- }
291
- .xyz_fbap_widefat_table textarea
292
- {
293
- width: 200px;padding: 5px !important;height: 80px !important;
294
- }
295
-
296
- .xyz_fbap_metalist_table{
297
- width: 100%;
298
- }
299
-
300
- .xyz_fbap_pleft15{
301
- padding-left: 15px;
302
- }
303
-
304
- .xyz_fbap_meta_acclist_table{
305
- width: 100%;border: 1px solid #DFDFDF;border-radius:3px; margin-top: 8px;padding-bottom: 5px;
306
- }
307
- .xyz_fbap_meta_acclist_table_td{
308
- background: linear-gradient(to top, #ECECEC, #F9F9F9) repeat scroll 0 0 #F1F1F1;border-bottom: 1px solid #DFDFDF;height: 25px;
309
- }
310
-
311
- .xyz_fbap_meta_acclist_table select ,.xyz_fbap_meta_acclist_table textarea{
312
- width: 200px;padding: 5px !important;height: 2.35em !important;
313
- }
314
-
315
-
316
- a {
317
- text-decoration: none;
318
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/style.css ADDED
@@ -0,0 +1,710 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #system_notice_area {
2
+ position: fixed;
3
+ margin-bottom:40px;
4
+ left:25%;
5
+ width:50%;
6
+ height:20px;
7
+ border-radius:5px;
8
+ -moz-border-radius:5px;
9
+ -webkit-border-radius:5px;
10
+ font-weight:bold;
11
+ display:none;
12
+ padding:3px;
13
+ color: #000000;
14
+ text-align: center;
15
+ top: 0px;
16
+ z-index: 100000;
17
+
18
+ }
19
+ .xyz_suggest,.xyz_star,.xyz_donate,.xyz_fbook,.xyz_support,.xyz_twitt,.xyz_gplus,.xyz_linkdin{
20
+ height:16px;
21
+ background-repeat: no-repeat;
22
+ background-size: contain;
23
+ padding-left: 20px;
24
+ text-decoration: none;
25
+
26
+ vertical-align: middle;
27
+ display: inline-block;
28
+
29
+ }
30
+ .xyz_suggest{
31
+
32
+ background-image: url('../images/suggest.png');
33
+ }
34
+
35
+ .xyz_star{
36
+ background-image: url('../images/star.png');
37
+ }
38
+
39
+ .xyz_donate{
40
+
41
+ background-image: url('../images/donate.png');
42
+ }
43
+
44
+ .xyz_support{
45
+
46
+ background-image: url('../images/support.png');
47
+ }
48
+ .xyz_home_fbook {
49
+
50
+ background-image: url('../images/facebook.png');
51
+ }
52
+
53
+
54
+ .xyz_home_twitt {
55
+
56
+ background-image: url('../images/twitter.png');
57
+ }
58
+ .xyz_home_gplus {
59
+
60
+ background-image: url('../images/gplus.png');
61
+ }
62
+ .xyz_home_linkedin {
63
+
64
+ background-image: url('../images/linkedin.png');
65
+ }
66
+ .xyz_fbook{
67
+
68
+ background-image: url('../images/facebook.png');
69
+ }
70
+ .xyz_twitt{
71
+
72
+ background-image: url('../images/twitter.png');
73
+ }
74
+ .xyz_gplus{
75
+
76
+ background-image: url('../images/gplus.png');
77
+ }
78
+
79
+ .xyz_linkdin{
80
+
81
+ background-image: url('../images/linkedin.png');
82
+ }
83
+
84
+
85
+ #facebook-auto-publish .xyz_fbook{
86
+ margin-left: 3px;
87
+ }
88
+
89
+ #facebook-auto-publish .xyz_twitt{
90
+ margin-left: 3px;
91
+ }
92
+
93
+ #facebook-auto-publish .xyz_gplus{
94
+ margin-left: 3px;
95
+ }
96
+
97
+ #facebook-auto-publish .xyz_linkdin{
98
+ margin-left: 3px;
99
+ }
100
+
101
+ #facebook-auto-publish .xyz_support{
102
+ margin-left: 3px;margin-right: -3px;
103
+ }
104
+
105
+ #facebook-auto-publish .plugin-version-author-uri {
106
+
107
+ background-color: #F4F4F4;
108
+ min-height:16px;
109
+ border-radius:5px;
110
+ margin-bottom: 10px;
111
+ font-weight:bold;
112
+ padding: 5px;
113
+ color: #111111;
114
+
115
+ -webkit-box-shadow: 0 8px 6px -6px black;
116
+ -moz-box-shadow: 0 8px 6px -6px black;
117
+ box-shadow: 0 8px 6px -6px black;
118
+
119
+ }
120
+
121
+ #facebook-auto-publish th,#facebook-auto-publish td{
122
+ background: #a9e8f5; /* Old browsers */
123
+ background: linear-gradient( #ffffff,#a9e8f5 ); /* W3C */
124
+ }
125
+ #facebook-auto-publish .plugin-version-author-uri a,
126
+ #facebook-auto-publish .plugin-version-author-uri a:link,
127
+ #facebook-auto-publish .plugin-version-author-uri a:hover,
128
+ #facebook-auto-publish .plugin-version-author-uri a:active,
129
+ #facebook-auto-publish .plugin-version-author-uri a:visited{
130
+ color: #111111;
131
+ text-decoration: none;
132
+
133
+ }
134
+ #facebook-auto-publish .plugin-version-author-uri a:hover{
135
+
136
+ color:#cc811a;
137
+ }
138
+ #facebook-auto-publish .plugin-title{
139
+
140
+ background: url('images/xyz_logo.png'),linear-gradient( #ffffff,#a9e8f5 );
141
+ background-repeat: no-repeat;
142
+ background-position: left bottom;
143
+
144
+ }
145
+
146
+ .xyz-premium-comparison
147
+ {
148
+ width: 99%;
149
+ padding:0px;
150
+ border: 1px solid #CCCCCC;
151
+ border-radius:3px;
152
+ }
153
+ .xyz-premium-comparison td
154
+ {
155
+ padding: 1px;
156
+ border: 1px solid #CCCCCC;
157
+ height: 25px;
158
+ }
159
+
160
+ /* Buy Now - button bounce style*/
161
+ img.hoverImages {
162
+ margin-bottom:20px;
163
+ -webkit-transition: margin 0.2s ease-out;
164
+ -moz-transition: margin 0.2s ease-out;
165
+ -o-transition: margin 0.2s ease-out;
166
+ }
167
+ img.hoverImages:hover {
168
+ cursor:pointer;
169
+ margin-top: 5px;
170
+ }
171
+
172
+
173
+ #system_notice_area_dismiss{
174
+ color: #FFFFFF;
175
+ cursor: pointer;
176
+ }
177
+ .system_notice_area_style1 {
178
+ background: #00C348;
179
+ border: 1px solid green;
180
+ }
181
+
182
+ .system_notice_area_style0 {
183
+ background: #FA5A6A;
184
+ border: 1px solid brown;
185
+ }
186
+
187
+ .submit_fbap_new{
188
+ background:#25A6E1;
189
+ background:-moz-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
190
+ background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#25A6E1),color-stop(100%,#188BC0));
191
+ background:-webkit-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
192
+ background:-o-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
193
+ background:-ms-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
194
+ background:linear-gradient(top,#25A6E1 0%,#188BC0 100%);
195
+ filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#25A6E1",endColorstr="#188BC0",GradientType=0);
196
+ color:#ffffff !important;
197
+ border-radius: 4px !important; border: 1px solid #1A87B9 !important;
198
+ font-family:"Helvetica Neue",sans-serif;
199
+ font-size:13px;
200
+ cursor:pointer;height: 30px;
201
+ padding-left: 15px;
202
+ padding-right: 15px;
203
+ }
204
+
205
+ .fbap_informationdiv {
206
+ background: none repeat scroll 0 0 #9FDAEE;
207
+ border: 1px solid #209BD4;
208
+ border-radius: 5px 5px 5px 5px;
209
+ box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
210
+ float: left;
211
+ padding: 10px;
212
+ position: absolute;
213
+ z-index: 1200;
214
+ }
215
+ .xyz_feedback{
216
+ background: #CEEAF7; /* Old browsers */
217
+ border: 1px solid #64cfe8;
218
+ border-radius:3px;
219
+ width: 98%;
220
+ min-height:40px;
221
+ height:auto;
222
+ padding-left: 10px;
223
+ padding-top: 10px;
224
+ font-weight: bold;
225
+ line-height: 20px;
226
+
227
+ }
228
+
229
+ .xyz_feedback a{
230
+ text-decoration: none
231
+ }
232
+
233
+ .xyz_subscribe{
234
+ background: #bae598; /* Old browsers */
235
+ border: 1px solid #4d8a1d;
236
+ border-radius:3px;
237
+ width: 98%;
238
+ line-height:20px;
239
+ min-height:45px;
240
+ height:auto;
241
+ padding-left: 10px;
242
+ padding-top: 10px;
243
+
244
+ }
245
+ .xyz_subscribe td{
246
+ padding:0;
247
+ }
248
+
249
+ .xyz_plugins{
250
+ background: #F2F2F2; /* Old browsers */
251
+ border: 1px solid #DFDFDF;
252
+ border-radius:3px;
253
+ width: 98%;
254
+ padding-left: 10px;
255
+ padding-top:10px;
256
+ min-height:50px;
257
+ height:auto;
258
+ margin-top:13px;
259
+ line-height: 20px;
260
+
261
+ }
262
+ .xyz_fbap_poweredBy{
263
+ padding-top: 10px;float:left; text-align: center; width: 100%;
264
+ }
265
+
266
+ .xyz_fbap_poweredBy a{
267
+ text-decoration: none;
268
+ }
269
+
270
+ .submit_fbap{
271
+ background:#25A6E1;
272
+ background:-moz-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
273
+ background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#25A6E1),color-stop(100%,#188BC0));
274
+ background:-webkit-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
275
+ background:-o-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
276
+ background:-ms-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
277
+ background:linear-gradient(top,#25A6E1 0%,#188BC0 100%);
278
+ filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#25A6E1",endColorstr="#188BC0",GradientType=0);
279
+ color:#ffffff;
280
+ font-family:"Helvetica Neue",sans-serif;
281
+ font-size:13px;
282
+ cursor:pointer;
283
+ color:#FFFFFF !important;border-radius:4px !important;
284
+ border:1px solid #1A87B9;height: 30px;
285
+ padding-left: 15px;
286
+ padding-right: 15px;
287
+ }
288
+ #xyz-wp-fbap-premium {
289
+ border: 1px solid #FCC328;
290
+ margin-bottom: 20px;
291
+ margin-top: 20px;
292
+ background-color: #FFF6D6;
293
+ padding: 3px;
294
+ width: 98%;
295
+ border-radius:3px;
296
+ float: left;
297
+ }
298
+ a.xyz_fbap_link:hover{text-decoration:underline;}
299
+ .xyz_fbap_link{text-decoration:none;font-weight: bold;margin-left:8px;}
300
+
301
+ .xyz_fbap_widefat_table input[type="text"], .xyz_fbap_widefat_table input[type="password"], .xyz_fbap_widefat_table input[type="email"], .xyz_fbap_widefat_table input[type="number"], .xyz_fbap_widefat_table input[type="search"], .xyz_fbap_widefat_table input[type="tel"], .xyz_fbap_widefat_table input[type="url"], .xyz_fbap_widefat_table select {
302
+ width: 200px;padding: 5px !important;height: 2.35em !important;
303
+ }
304
+ .xyz_fbap_widefat_table textarea
305
+ {
306
+ width: 200px;padding: 5px !important;height: 80px !important;
307
+ }
308
+
309
+ .xyz_fbap_metalist_table{
310
+ width: 100%;
311
+ }
312
+
313
+ .xyz_fbap_pleft15{
314
+ padding-left: 15px;
315
+ }
316
+
317
+ .xyz_fbap_meta_acclist_table{
318
+ width: 100%;border: 1px solid #DFDFDF;border-radius:3px; margin-top: 8px;padding-bottom: 5px;
319
+ }
320
+ .xyz_fbap_meta_acclist_table_td{
321
+ background: linear-gradient(to top, #ECECEC, #F9F9F9) repeat scroll 0 0 #F1F1F1;border-bottom: 1px solid #DFDFDF;height: 25px;
322
+ }
323
+
324
+ .xyz_fbap_meta_acclist_table select ,.xyz_fbap_meta_acclist_table textarea{
325
+ width: 200px;padding: 5px !important;height: 2.35em !important;
326
+ }
327
+
328
+ a {
329
+ text-decoration: none;
330
+ }
331
+ /*new design start*/
332
+ .xyz_fbap_social_media {
333
+ background-color: #456a72;
334
+ width: 22%;
335
+ float: left;
336
+ min-height: 130px;
337
+ margin: 10px 10px 10px 0px;
338
+ padding: 10px;
339
+ border: 1px solid #456a72;
340
+ border-radius: 3px;
341
+ }
342
+ .xyz_fbap_sugession {
343
+ background-color: #571B35;
344
+ width: 20%;
345
+ float: left;
346
+ min-height: 130px;
347
+ margin: 10px 10px 10px 0px;
348
+ padding: 10px;
349
+ border: 1px solid #731C47;
350
+ border-radius: 3px;
351
+ font-size: 12px;
352
+ color: #ffffff;
353
+ }
354
+ .xyz_fbap_new_subscribe {
355
+ background-color: #c82e53;
356
+ width: 27%;
357
+ float: left;
358
+ min-height: 130px;
359
+ margin: 10px 10px 10px 0px;
360
+ padding: 10px;
361
+ border: 1px solid #BE2963;
362
+ border-radius: 3px;
363
+ }
364
+ .xyz_fbap_inmotion {
365
+
366
+ width: 21%;
367
+ float: left;
368
+ min-height: 130px;
369
+ margin: 0px 0px 0px 0px;
370
+ }
371
+ .xyz_fbap_sugession a {
372
+ color: #D7B740;
373
+ text-decoration: underline;
374
+ }
375
+
376
+ .xyz_fbap_sugession a:hover{color:#fafa66; text-decoration:underline;}
377
+ .xyz_fbap_sugession p{
378
+ display: block;
379
+ float: left;
380
+ line-height: 20px;
381
+ width: 100%;
382
+ margin: 0px; width:50%;}
383
+
384
+ .xyz_new_star{background-image: url(../images/new_star.png);
385
+ width: 80px;
386
+ height: 20px;
387
+ display: block;
388
+ background-repeat: no-repeat;
389
+ float: left;
390
+ }
391
+
392
+ .sbmt_btn{ border: none;
393
+ color: #ffffff;
394
+ background-color: #4e0013;
395
+ padding: 5px 10px;
396
+ border-radius: 3px;
397
+ cursor: pointer;}
398
+
399
+ .xyz_fbap_inmotion a:hover{color:#94dbff; text-decoration:underline;}
400
+
401
+ .xyz_fbap_inmotion_label{
402
+ height: 169px !important;
403
+ display: block;
404
+ margin: auto;
405
+ width:auto !important;}
406
+
407
+ .xyz_fbap_new_subscribe input{font-size:11px;margin: 5px;}
408
+
409
+ .xyz_fbap_social_media a{
410
+ margin: 0px 13px 5px 0px;
411
+ border: 1px solid #ddd;
412
+ width: 30px;
413
+ height: 30px;
414
+ padding-left: 0px;
415
+ display: block;
416
+ float: left;}
417
+
418
+ .xyz_fbap_inner_head{ color: #ffffff;
419
+ font-weight: 300;
420
+ border-bottom: 1px solid #eee;
421
+ margin: 0px 0px 10px;
422
+ padding-bottom: 10px;}
423
+
424
+ .xyz_fbap_plugin_head{margin: 0px;
425
+ font-size: 22px;
426
+ font-weight: 300;
427
+ padding: 0px 10px 5px;}
428
+
429
+ .xyz_fbap_name{border:none !important; width:46% !important;}
430
+ .xyz_fbap_email{border:none !important; width:46% !important;}
431
+
432
+ .xyz_fbap_our_plugins_new a{
433
+ text-decoration: none;
434
+ display: block;
435
+ background-color: #ddd;
436
+ float: left;
437
+ width: 23%;
438
+ margin: 1px;
439
+ padding: 0px 10px 0px 0px;
440
+ color: #094969;
441
+ outline: 0 !important;
442
+ line-height: 27px;
443
+ }
444
+ .xyz_fbap_our_plugins_new a:hover{text-decoration:underline;}
445
+
446
+ .xyz_fbap_our_plugins_new a:active{box-shadow:none !important;}
447
+
448
+ .xyz_fbap_our_plugins_new a span{
449
+ background-color: #00a0d2;
450
+ color: #FFFFFF;
451
+ width: 30px;
452
+ min-height: 28px;
453
+ display: block;
454
+ float: left;
455
+ text-align: center;
456
+ margin-right: 10px;
457
+ border-right: 2px solid #fff;}
458
+
459
+ .xyz_rate_btn{color: #E77E22 !important;
460
+ text-decoration: none !important;
461
+ margin-right: 4px !important;
462
+ font-weight: bold;
463
+ background-color: #fff1d6 !important;
464
+ border: 1px solid #E77E22 !important;
465
+ box-shadow:none !important;}
466
+
467
+ .xyz_backlink_btn{color: #00a016 !important;
468
+ text-decoration: none !important;
469
+ margin-right: 4px !important;
470
+ font-weight: bold;
471
+ background-color: #f0fff2 !important;
472
+ border: 1px solid #00a016 !important;
473
+ box-shadow:none !important;}
474
+
475
+ .xyz_share_btn{color: #177ABD !important;
476
+ text-decoration: none !important;
477
+ margin-right: 4px !important;
478
+ font-weight: bold;
479
+ border: 1px solid #177ABD !important;
480
+ background-color: #edf8ff !important;
481
+ box-shadow:none !important;}
482
+
483
+ .xyz_donate_btn{color: #C12AA2 !important;
484
+ text-decoration: none !important;
485
+ margin-right: 4px !important;
486
+ font-weight: bold;
487
+ border: 1px solid #C12AA2 !important;
488
+ background-color: #feeafa !important;
489
+ box-shadow:none !important;}
490
+
491
+ .xyz_show_btn{color: #F15E77 !important;
492
+ text-decoration: none !important;
493
+ margin-right: 4px !important;
494
+ font-weight: bold;
495
+ border: 1px solid #F15E77 !important;
496
+ background-color: #ffeddf !important;
497
+ box-shadow: none !important;}
498
+
499
+ @media screen and (max-width: 1351px) {
500
+
501
+ .xyz_fbap_social_media{width:21%;}
502
+
503
+ .xyz_fbap_new_subscribe{width:24%;}
504
+
505
+ .xyz_fbap_inmotion{width:21%;}
506
+
507
+ .xyz_fbap_sugession{width:20%;}
508
+
509
+ .xyz_fbap_name{border:none !important; width:45% !important;}
510
+
511
+ .xyz_fbap_email{border:none !important; width:45% !important;}
512
+
513
+ .xyz_fbap_our_plugins_new a{width:23%;}
514
+
515
+ }
516
+
517
+ @media screen and (max-width: 1251px) {
518
+
519
+ .xyz_fbap_social_media{width:21%;}
520
+
521
+ .xyz_fbap_new_subscribe{width:24%;}
522
+
523
+ .xyz_fbap_inmotion{width:21%;}
524
+
525
+ .xyz_fbap_sugession{width:22%;}
526
+
527
+ .xyz_fbap_name{border:none !important; width:45% !important;}
528
+
529
+ .xyz_fbap_email{border:none !important; width:45% !important;}
530
+
531
+ #xyz_fbap_submit_fbap{line-height:20px;}
532
+
533
+
534
+ .xyz_fbap_our_plugins_new a{width:23.6%;}
535
+ }
536
+
537
+ @media screen and (max-width:1155px)
538
+ {
539
+ .xyz_fbap_social_media{width:45%;}
540
+ .xyz_fbap_new_subscribe{width:45%;}
541
+ .xyz_fbap_inmotion{width:45%;}
542
+ .xyz_fbap_sugession{width:45%;}
543
+ .xyz_fbap_our_plugins_new a{width:31%;}
544
+ }
545
+
546
+
547
+ @media screen and (max-width: 782px)
548
+ {
549
+ .xyz_fbap_social_media{width:44%;}
550
+
551
+ .xyz_fbap_new_subscribe{width:44%;}
552
+
553
+ .xyz_fbap_inmotion{width:44%;}
554
+
555
+ .xyz_fbap_sugession{width:44%;}
556
+
557
+ .xyz_fbap_our_plugins_new a{width:30%;}
558
+
559
+ .xyz_fbap_name{border:none !important; width:46% !important;}
560
+
561
+ .xyz_fbap_email{border:none !important; width:46% !important;}
562
+ }
563
+
564
+
565
+ @media screen and (max-width: 768px)
566
+ {
567
+ #xyz_fbap_submit_fbap{line-height:20px;}
568
+ .xyz_fbap_our_plugins_new a{width:30%; font-size:11px;}
569
+ }
570
+
571
+
572
+ @media screen and (max-width: 675px)
573
+ {
574
+ .xyz_fbap_our_plugins_new a{width:45%; font-size:11px;}
575
+ .xyz_fbap_name{border:none !important; width:95% !important;}
576
+ .xyz_fbap_email {
577
+ border: none !important;
578
+ width: 95% !important;
579
+ }
580
+ .xyz_fbap_inmotion_label {
581
+ height: 185px;
582
+ display: block;
583
+ margin: auto;
584
+ }
585
+ }
586
+
587
+
588
+ @media screen and (max-width: 562px)
589
+ {
590
+ .xyz_fbap_sugession{width:92.5%;}
591
+
592
+
593
+ .xyz_fbap_new_subscribe{width:92.5%;}
594
+
595
+
596
+ .xyz_fbap_social_media{width:92.5%;}
597
+ .xyz_fbap_inmotion{width:92.5%;}
598
+ .xyz_fbap_email {
599
+ border: none !important;
600
+ width: 95% !important;
601
+ }
602
+ }
603
+
604
+
605
+ @media screen and (max-width: 532px){
606
+
607
+
608
+ .xyz_fbap_social_media{width:92.5%;}
609
+
610
+ .xyz_fbap_new_subscribe{width:92.5%;}
611
+
612
+ .xyz_fbap_inmotion{width:92.5%;}
613
+
614
+ .xyz_fbap_sugession{width:92.5%;}
615
+
616
+ .xyz_fbap_our_plugins_new a{width:92.5%;}
617
+
618
+ .xyz_fbap_name{border:none !important; width:95% !important;}
619
+
620
+ .xyz_fbap_email{border:none !important; width:95% !important;}
621
+ }
622
+
623
+
624
+ /*new design end*/
625
+ .switch-field input[type=radio] {
626
+ position: absolute !important;
627
+ clip: rect(0, 0, 0, 0);
628
+ height: 1px;
629
+ width: 1px;
630
+ border: 0;
631
+ overflow: hidden;
632
+ }
633
+
634
+ .switch-field label {
635
+ float: left;
636
+ }
637
+
638
+ .switch-field label {
639
+ display: inline-block;
640
+ color: rgba(0, 0, 0, 0.6);
641
+ width: 50px;
642
+ font-weight: normal;
643
+ text-align: center;
644
+ text-shadow: none;
645
+ padding: 6px 14px;
646
+ -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
647
+ box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
648
+ -webkit-transition: all 0.1s ease-in-out;
649
+ -moz-transition: all 0.1s ease-in-out;
650
+ -ms-transition: all 0.1s ease-in-out;
651
+ -o-transition: all 0.1s ease-in-out;
652
+ transition: all 0.1s ease-in-out;
653
+ }
654
+ .switch-field label:hover {
655
+ cursor: pointer;
656
+ }
657
+ .switch-field label:first-of-type {
658
+ border-radius: 4px 0 0 4px;min-width: 50px;width:auto;
659
+ }
660
+ .switch-field label:last-of-type {
661
+ border-radius: 0 4px 4px 0;min-width: 50px;width:auto;
662
+ }
663
+ .scroll_checkbox
664
+ {
665
+ border: 2px solid #ccc;
666
+ width: 200px;
667
+ height: 150px;
668
+ overflow-y: scroll;
669
+ overflow-x: visible;
670
+ }
671
+ .toplevel_page_facebook-auto-publish-settings img{
672
+ width:20px;
673
+ height:auto;
674
+ }
675
+ .xyz_fbap_toggle_off
676
+ {
677
+ background-color:#dddddd !important;
678
+ color:#888888 !important;
679
+ font-weight:normal !important;
680
+ }
681
+ .xyz_fbap_toggle_on
682
+ {
683
+ background-color:#28A6A2 !important;
684
+ color:#1e1b1b !important;
685
+ font-weight:bold !important;
686
+ }
687
+ .xyz-fbap-buy-now{
688
+ float: left;
689
+ margin-top: 3px;
690
+ }
691
+ .xyz-fbap-buy-now img{
692
+ width:148px !important;
693
+ height:38px !important;
694
+ }
695
+ .xyz-fbap-buy-button {
696
+ display:block;
697
+ color:white;
698
+ padding:5px 21px;
699
+ background: #545454;
700
+ border: 0;
701
+ border-bottom: 2px solid #545454;
702
+ cursor: pointer;
703
+ -webkit-box-shadow: inset 0 -2px #545454;
704
+ box-shadow: inset 0 -2px #545454;
705
+ text-decoration: none;
706
+ font-size: 14px;
707
+ font-weight: bold;
708
+ border-radius:3px;
709
+ text-align: center;
710
+ }
facebook-auto-publish.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php
2
  /*
3
  Plugin Name: Facebook Auto Publish
4
- Plugin URI: http://xyzscripts.com/wordpress-plugins/facebook-auto-publish/
5
  Description: Publish posts automatically from your blog to Facebook social media. You can publish your posts to Facebook as simple text message, text message with image or as attached link to your blog. The plugin supports filtering posts by custom post-types and categories.
6
- Version: 1.4.6
7
  Author: xyzscripts.com
8
- Author URI: http://xyzscripts.com/
9
  License: GPLv2 or later
10
  */
11
 
@@ -29,7 +29,7 @@ if ( !function_exists( 'add_action' ) ) {
29
  echo "Hi there! I'm just a plugin, not much I can do when called directly.";
30
  exit;
31
  }
32
- //ob_start();
33
  //error_reporting(E_ALL);
34
  define('XYZ_FBAP_PLUGIN_FILE',__FILE__);
35
  define('XYZ_FBAP_FB_API_VERSION','v2.6');
@@ -43,7 +43,7 @@ define('XYZ_FBAP_FB_API_VERSION','v2.6');
43
 
44
  global $wpdb;
45
  //$wpdb->query('SET SQL_MODE=""');
46
- if(isset($_POST) && isset($_POST['fb_auth'] ))
47
  {
48
  ob_start();
49
  }
@@ -65,7 +65,7 @@ if(get_option('xyz_credit_link')=="fbap"){
65
 
66
  }
67
  function xyz_fbap_credit() {
68
- $content = '<div style="clear:both;width:100%;text-align:center; font-size:11px; "><a target="_blank" title="Facebook Auto Publish" href="http://xyzscripts.com/wordpress-plugins/facebook-auto-publish/details" >Facebook Auto Publish</a> Powered By : <a target="_blank" title="PHP Scripts & Programs" href="http://www.xyzscripts.com" >XYZScripts.com</a></div>';
69
  echo $content;
70
  }
71
  if(!function_exists('get_post_thumbnail_id'))
1
  <?php
2
  /*
3
  Plugin Name: Facebook Auto Publish
4
+ Plugin URI: https://xyzscripts.com/wordpress-plugins/facebook-auto-publish/
5
  Description: Publish posts automatically from your blog to Facebook social media. You can publish your posts to Facebook as simple text message, text message with image or as attached link to your blog. The plugin supports filtering posts by custom post-types and categories.
6
+ Version: 1.4.7
7
  Author: xyzscripts.com
8
+ Author URI: https://xyzscripts.com/
9
  License: GPLv2 or later
10
  */
11
 
29
  echo "Hi there! I'm just a plugin, not much I can do when called directly.";
30
  exit;
31
  }
32
+
33
  //error_reporting(E_ALL);
34
  define('XYZ_FBAP_PLUGIN_FILE',__FILE__);
35
  define('XYZ_FBAP_FB_API_VERSION','v2.6');
43
 
44
  global $wpdb;
45
  //$wpdb->query('SET SQL_MODE=""');
46
+ if(isset($_POST) && isset($_POST['fb_auth'] ) || (isset($_GET['page']) && ($_GET['page']=='facebook-auto-publish-settings')) )
47
  {
48
  ob_start();
49
  }
65
 
66
  }
67
  function xyz_fbap_credit() {
68
+ $content = '<div style="clear:both;width:100%;text-align:center; font-size:11px; "><a target="_blank" title="Facebook Auto Publish" href="https://xyzscripts.com/wordpress-plugins/facebook-auto-publish/details" >Facebook Auto Publish</a> Powered By : <a target="_blank" title="PHP Scripts & Programs" href="http://www.xyzscripts.com" >XYZScripts.com</a></div>';
69
  echo $content;
70
  }
71
  if(!function_exists('get_post_thumbnail_id'))
images/activate.png ADDED
Binary file
{admin/images → images}/cross.png RENAMED
File without changes
images/delete.png ADDED
Binary file
{admin/images → images}/donate.png RENAMED
File without changes
images/edit.png ADDED
Binary file
{admin/images → images}/facebook-logo.png RENAMED
File without changes
images/facebook.png ADDED
Binary file
{admin/images → images}/fb.gif RENAMED
File without changes
{admin/images → images}/gp.gif RENAMED
File without changes
images/gplus.png ADDED
Binary file
{admin/images → images}/linkedin.gif RENAMED
File without changes
images/linkedin.png ADDED
Binary file
images/logo.png ADDED
Binary file
images/new_star.png ADDED
Binary file
{admin/images → images}/orange_buynow.png RENAMED
File without changes
images/pause.png ADDED
Binary file
{admin/images → images}/star.png RENAMED
File without changes
{admin/images → images}/suggest.png RENAMED
File without changes
{admin/images → images}/support.png RENAMED
File without changes
images/tb.png ADDED
Binary file
{admin/images → images}/tick.png RENAMED
File without changes
{admin/images → images}/tw.gif RENAMED
File without changes
{admin/images → images}/twitter-logo.png RENAMED
File without changes
images/twitter.png ADDED
Binary file
images/xyz.png ADDED
Binary file
{admin/images → images}/xyz_logo.png RENAMED
File without changes
js/notice.js CHANGED
@@ -13,3 +13,15 @@
13
  });
14
 
15
  });
 
 
 
 
 
 
 
 
 
 
 
 
13
  });
14
 
15
  });
16
+ function XyzFbapToggleRadio(value,buttonId)
17
+ {
18
+ if (value == '1') {
19
+ jQuery("#"+buttonId+"_no").removeClass( "xyz_fbap_toggle_on" ).addClass( "xyz_fbap_toggle_off" );
20
+ jQuery("#"+buttonId+"_yes").removeClass( "xyz_fbap_toggle_off" ).addClass( "xyz_fbap_toggle_on" );
21
+ }
22
+ else if (value == '0') {
23
+ jQuery("#"+buttonId+"_yes").removeClass( "xyz_fbap_toggle_on" ).addClass( "xyz_fbap_toggle_off" );
24
+ jQuery("#"+buttonId+"_no").removeClass( "xyz_fbap_toggle_off" ).addClass( "xyz_fbap_toggle_on" );
25
+
26
+ }
27
+ }
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Facebook Auto Publish ===
2
  Contributors: f1logic
3
- Donate link: http://xyzscripts.com/donate/
4
  Tags: facebook, facebook auto publish, publish post to facebook, add link to facebook, facebook publishing, post to facebook, post to fb, social media auto publish, social media publishing, social network auto publish, social media, social network
5
  Requires at least: 3.0
6
- Tested up to: 4.9.1
7
- Stable tag: 1.4.6
8
  License: GPLv2 or later
9
 
10
  Publish posts automatically to Facebook page or profile.
@@ -62,7 +62,7 @@ The supported post elements which can be published are given below.
62
 
63
  = About =
64
 
65
- Facebook Auto Publish is developed and maintained by [XYZScripts](http://xyzscripts.com/ "xyzscripts.com"). For any support, you may [contact us](http://xyzscripts.com/support/ "XYZScripts Support").
66
 
67
  ★ [Facebook Auto Publish User Guide](http://help.xyzscripts.com/docs/facebook-auto-publish/user-guide/ "Facebook Auto Publish User Guide")
68
  ★ [Facebook Auto Publish FAQ](http://help.xyzscripts.com/docs/facebook-auto-publish/faq/ "Facebook Auto Publish FAQ")
@@ -77,7 +77,7 @@ Facebook Auto Publish is developed and maintained by [XYZScripts](http://xyzscri
77
  3. You can configure the settings from Facebook Auto Publish menu. (Make sure to Authorize Facebook application after saving the settings.)
78
  4. Once these are done, posts should get automatically published based on your filter settings.
79
 
80
- If you need any further help, you may contact our [support desk](http://xyzscripts.com/support/ "XYZScripts Support").
81
 
82
  == Frequently Asked Questions ==
83
 
@@ -116,7 +116,7 @@ SSL peer verification may not be functioning in your server. Please turn off SSL
116
 
117
  = More questions ? =
118
 
119
- [Drop a mail](http://xyzscripts.com/support/ "XYZScripts Support") and we shall get back to you with the answers.
120
 
121
 
122
  == Screenshots ==
@@ -126,6 +126,11 @@ SSL peer verification may not be functioning in your server. Please turn off SSL
126
 
127
  == Changelog ==
128
 
 
 
 
 
 
129
  = Facebook Auto Publish 1.4.6 =
130
  * Added USER_DISPLAY_NAME in message formats
131
  * Minor security issues fixed
@@ -241,4 +246,4 @@ Please read the FAQ first if you are having problems.
241
 
242
  = Feedback =
243
 
244
- We would like to receive your feedback and suggestions about Facebook Auto Publish plugin. You may submit them at our [support desk](http://xyzscripts.com/support/ "XYZScripts Support").
1
  === Facebook Auto Publish ===
2
  Contributors: f1logic
3
+ Donate link: https://xyzscripts.com/donate/
4
  Tags: facebook, facebook auto publish, publish post to facebook, add link to facebook, facebook publishing, post to facebook, post to fb, social media auto publish, social media publishing, social network auto publish, social media, social network
5
  Requires at least: 3.0
6
+ Tested up to: 4.9.4
7
+ Stable tag: 1.4.7
8
  License: GPLv2 or later
9
 
10
  Publish posts automatically to Facebook page or profile.
62
 
63
  = About =
64
 
65
+ Facebook Auto Publish is developed and maintained by [XYZScripts](https://xyzscripts.com/ "xyzscripts.com"). For any support, you may [contact us](https://xyzscripts.com/support/ "XYZScripts Support").
66
 
67
  ★ [Facebook Auto Publish User Guide](http://help.xyzscripts.com/docs/facebook-auto-publish/user-guide/ "Facebook Auto Publish User Guide")
68
  ★ [Facebook Auto Publish FAQ](http://help.xyzscripts.com/docs/facebook-auto-publish/faq/ "Facebook Auto Publish FAQ")
77
  3. You can configure the settings from Facebook Auto Publish menu. (Make sure to Authorize Facebook application after saving the settings.)
78
  4. Once these are done, posts should get automatically published based on your filter settings.
79
 
80
+ If you need any further help, you may contact our [support desk](https://xyzscripts.com/support/ "XYZScripts Support").
81
 
82
  == Frequently Asked Questions ==
83
 
116
 
117
  = More questions ? =
118
 
119
+ [Drop a mail](https://xyzscripts.com/support/ "XYZScripts Support") and we shall get back to you with the answers.
120
 
121
 
122
  == Screenshots ==
126
 
127
  == Changelog ==
128
 
129
+ = Facebook Auto Publish 1.4.7 =
130
+ * Fixed facebook authorisation issue
131
+ * Minor bug fixes
132
+ * UI updated
133
+
134
  = Facebook Auto Publish 1.4.6 =
135
  * Added USER_DISPLAY_NAME in message formats
136
  * Minor security issues fixed
246
 
247
  = Feedback =
248
 
249
+ We would like to receive your feedback and suggestions about Facebook Auto Publish plugin. You may submit them at our [support desk](https://xyzscripts.com/support/ "XYZScripts Support").
xyz-functions.php CHANGED
@@ -50,11 +50,11 @@ if(!function_exists('xyz_fbap_links')){
50
 
51
  $links[] = '<a href="http://help.xyzscripts.com/docs/facebook-auto-publish/faq/" title="FAQ">FAQ</a>';
52
  $links[] = '<a href="http://help.xyzscripts.com/docs/facebook-auto-publish/" title="Read Me">README</a>';
53
- $links[] = '<a href="http://xyzscripts.com/support/" class="xyz_support" title="Support"></a>';
54
- $links[] = '<a href="http://twitter.com/xyzscripts" class="xyz_twitt" title="Follow us on twitter"></a>';
55
  $links[] = '<a href="https://www.facebook.com/xyzscripts" class="xyz_fbook" title="Facebook"></a>';
56
  $links[] = '<a href="https://plus.google.com/+Xyzscripts" class="xyz_gplus" title="+1"></a>';
57
- $links[] = '<a href="http://www.linkedin.com/company/xyzscripts" class="xyz_linkdin" title="Follow us on linkedIn"></a>';
58
  }
59
  return $links;
60
  }
@@ -65,14 +65,26 @@ if(!function_exists('xyz_fbap_string_limit')){
65
  function xyz_fbap_string_limit($string, $limit) {
66
 
67
  $space=" ";$appendstr=" ...";
68
- if(mb_strlen($string) <= $limit) return $string;
69
- if(mb_strlen($appendstr) >= $limit) return '';
70
- $string = mb_substr($string, 0, $limit-mb_strlen($appendstr));
71
- $rpos = mb_strripos($string, $space);
72
- if ($rpos===false)
73
- return $string.$appendstr;
74
- else
75
- return mb_substr($string, 0, $rpos).$appendstr;
 
 
 
 
 
 
 
 
 
 
 
 
76
  }
77
 
78
  }
@@ -129,7 +141,7 @@ function xyz_fbap_is_session_started()
129
  }
130
  }
131
 
132
- if (!function_exists("xyz_wp_fbap_attachment_metas")) {
133
  function xyz_wp_fbap_attachment_metas($attachment,$url)
134
  {
135
  $name='';$description_li='';$content_img='';$utf="UTF-8";
@@ -158,7 +170,7 @@ if (!function_exists("xyz_wp_fbap_attachment_metas")) {
158
  // $content_title=utf8_decode($content_title);
159
  if($name!='')
160
  $attachment['name']=$name;
161
- } */
162
  if(isset($attachment['actions']))
163
  {
164
  if(isset($attachment['actions']['name']))
@@ -203,13 +215,13 @@ if (!function_exists("xyz_wp_fbap_attachment_metas")) {
203
  if($content_img!='')
204
  $attachment['picture']=$content_img;
205
  }*/
206
-
207
  if(isset($attachment['link']))
208
  $attachment['link']=$url;
209
 
210
  return $attachment;
211
  }
212
- }
213
 
214
 
215
 
50
 
51
  $links[] = '<a href="http://help.xyzscripts.com/docs/facebook-auto-publish/faq/" title="FAQ">FAQ</a>';
52
  $links[] = '<a href="http://help.xyzscripts.com/docs/facebook-auto-publish/" title="Read Me">README</a>';
53
+ $links[] = '<a href="https://xyzscripts.com/support/" class="xyz_support" title="Support"></a>';
54
+ $links[] = '<a href="https://twitter.com/xyzscripts" class="xyz_twitt" title="Follow us on twitter"></a>';
55
  $links[] = '<a href="https://www.facebook.com/xyzscripts" class="xyz_fbook" title="Facebook"></a>';
56
  $links[] = '<a href="https://plus.google.com/+Xyzscripts" class="xyz_gplus" title="+1"></a>';
57
+ $links[] = '<a href="https://www.linkedin.com/company/xyzscripts" class="xyz_linkdin" title="Follow us on linkedIn"></a>';
58
  }
59
  return $links;
60
  }
65
  function xyz_fbap_string_limit($string, $limit) {
66
 
67
  $space=" ";$appendstr=" ...";
68
+
69
+ if (function_exists('mb_strlen')) {
70
+ if(mb_strlen($string) <= $limit) return $string;
71
+ if(mb_strlen($appendstr) >= $limit) return '';
72
+ $string = mb_substr($string, 0, $limit-mb_strlen($appendstr));
73
+ $rpos = mb_strripos($string, $space);
74
+ if ($rpos===false)
75
+ return $string.$appendstr;
76
+ else
77
+ return mb_substr($string, 0, $rpos).$appendstr;
78
+ } else {
79
+ if(strlen($string) <= $limit) return $string;
80
+ if(strlen($appendstr) >= $limit) return '';
81
+ $string = substr($string, 0, $limit-strlen($appendstr));
82
+ $rpos = strripos($string, $space);
83
+ if ($rpos===false)
84
+ return $string.$appendstr;
85
+ else
86
+ return substr($string, 0, $rpos).$appendstr;
87
+ }
88
  }
89
 
90
  }
141
  }
142
  }
143
 
144
+ /*if (!function_exists("xyz_wp_fbap_attachment_metas")) {
145
  function xyz_wp_fbap_attachment_metas($attachment,$url)
146
  {
147
  $name='';$description_li='';$content_img='';$utf="UTF-8";
170
  // $content_title=utf8_decode($content_title);
171
  if($name!='')
172
  $attachment['name']=$name;
173
+ } */ /*
174
  if(isset($attachment['actions']))
175
  {
176
  if(isset($attachment['actions']['name']))
215
  if($content_img!='')
216
  $attachment['picture']=$content_img;
217
  }*/
218
+ /*
219
  if(isset($attachment['link']))
220
  $attachment['link']=$url;
221
 
222
  return $attachment;
223
  }
224
+ }*/
225
 
226
 
227