Blog2Social: Social Media Auto Post & Scheduler - Version 4.1.0

Version Description

Usabilitiy and Performance Optimization. Select link format or image format individual per posts

Download this release

Release Info

Developer Blog2Social
Plugin Icon 128x128 Blog2Social: Social Media Auto Post & Scheduler
Version 4.1.0
Comparing to
See all releases

Code changes from version 4.0.0 to 4.1.0

assets/css/b2s/settings.css CHANGED
@@ -38,19 +38,6 @@ hr{
38
margin-top: 0px!important;
39
}
40
41
- .b2s-user-network-settings-post-format-area label > input{
42
- visibility: hidden;
43
- position: absolute;
44
- }
45
- .b2s-user-network-settings-post-format-area label > input + img{
46
- cursor:pointer;
47
- border:2px solid transparent;
48
- }
49
-
50
- .b2s-settings-checked + img{
51
- border:3px solid #79b232 !important
52
- }
53
-
54
.b2s-display-inline{
55
display: inline !important;
56
}
@@ -77,4 +64,16 @@ hr{
77
78
.b2s-post-type-select-btn{
79
padding: 0 0 1px !important;
80
- }
38
margin-top: 0px!important;
39
}
40
41
.b2s-display-inline{
42
display: inline !important;
43
}
64
65
.b2s-post-type-select-btn{
66
padding: 0 0 1px !important;
67
+ }
68
+
69
+ .btn-label-premium {
70
+ color: #fff !important;
71
+ }
72
+
73
+ .b2s-input-margin-bottom-5{
74
+ margin-bottom: 5px;
75
+ }
76
+
77
+ .font-gray{
78
+ color: #9B9B9B !important;
79
+ }
assets/css/b2s/start.css CHANGED
@@ -74,4 +74,4 @@
74
75
.b2s-dashoard-btn-phone{
76
cursor: default !important;
77
- }
74
75
.b2s-dashoard-btn-phone{
76
cursor: default !important;
77
+ }
assets/css/general.css CHANGED
@@ -6754,6 +6754,10 @@ p {
6754
.glyphicon-info{
6755
color: #337ab7;
6756
}
6757
.glyphicon-primary{
6758
color: #2e6da4;
6759
}
@@ -6968,6 +6972,10 @@ p {
6968
padding-left: 0px !important;
6969
}
6970
6971
.del-padding-right {
6972
padding-right: 0px !important;
6973
}
6754
.glyphicon-info{
6755
color: #337ab7;
6756
}
6757
+ .glyphicon-grey{
6758
+ color: #76777b;
6759
+ }
6760
+
6761
.glyphicon-primary{
6762
color: #2e6da4;
6763
}
6972
padding-left: 0px !important;
6973
}
6974
6975
+ .add-padding-left{
6976
+ padding: 0 15px;
6977
+ }
6978
+
6979
.del-padding-right {
6980
padding-right: 0px !important;
6981
}
assets/js/b2s/settings.js CHANGED
@@ -222,7 +222,81 @@ jQuery('#b2s-save-time-settings-btn-trigger').on('click', function () {
222
jQuery('#b2s-save-time-settings-btn').trigger('click');
223
});
224
225
- jQuery(document).on('change', '.b2s-user-network-settings-post-format', function () {
226
jQuery('.b2s-settings-user-success').hide();
227
jQuery('.b2s-settings-user-error').hide();
228
jQuery('.b2s-server-connection-fail').hide();
@@ -258,7 +332,8 @@ jQuery(document).on('change', '.b2s-user-network-settings-post-format', function
258
}
259
});
260
return false;
261
- });
262
jQuery(document).on('click', '.b2s-get-settings-sched-time-default', function () {
263
jQuery('.b2s-server-connection-fail').hide();
264
jQuery.ajax({
222
jQuery('#b2s-save-time-settings-btn').trigger('click');
223
});
224
225
+
226
+ jQuery('.b2sSaveUserSettingsPostFormatFb').validate({
227
+ ignore: "",
228
+ errorPlacement: function () {
229
+ return false;
230
+ },
231
+ submitHandler: function (form) {
232
+ jQuery('.b2s-settings-user-success').hide();
233
+ jQuery('.b2s-settings-user-error').hide();
234
+ jQuery(".b2s-loading-area").show();
235
+ jQuery(".b2s-user-settings-area").hide();
236
+ jQuery('.b2s-server-connection-fail').hide();
237
+ jQuery.ajax({
238
+ processData: false,
239
+ url: ajaxurl,
240
+ type: "POST",
241
+ dataType: "json",
242
+ cache: false,
243
+ data: jQuery(form).serialize(),
244
+ error: function () {
245
+ jQuery('.b2s-server-connection-fail').show();
246
+ return false;
247
+ },
248
+ success: function (data) {
249
+ jQuery(".b2s-loading-area").hide();
250
+ jQuery(".b2s-user-settings-area").show();
251
+ if (data.result == true) {
252
+ jQuery('.b2s-settings-user-success').show();
253
+ } else {
254
+ jQuery('.b2s-settings-user-error').show();
255
+ }
256
+ }
257
+ });
258
+ return false;
259
+ }
260
+ });
261
+
262
+ jQuery('.b2sSaveUserSettingsPostFormatTw').validate({
263
+ ignore: "",
264
+ errorPlacement: function () {
265
+ return false;
266
+ },
267
+ submitHandler: function (form) {
268
+ jQuery('.b2s-settings-user-success').hide();
269
+ jQuery('.b2s-settings-user-error').hide();
270
+ jQuery(".b2s-loading-area").show();
271
+ jQuery(".b2s-user-settings-area").hide();
272
+ jQuery('.b2s-server-connection-fail').hide();
273
+ jQuery.ajax({
274
+ processData: false,
275
+ url: ajaxurl,
276
+ type: "POST",
277
+ dataType: "json",
278
+ cache: false,
279
+ data: jQuery(form).serialize(),
280
+ error: function () {
281
+ jQuery('.b2s-server-connection-fail').show();
282
+ return false;
283
+ },
284
+ success: function (data) {
285
+ jQuery(".b2s-loading-area").hide();
286
+ jQuery(".b2s-user-settings-area").show();
287
+ if (data.result == true) {
288
+ jQuery('.b2s-settings-user-success').show();
289
+ } else {
290
+ jQuery('.b2s-settings-user-error').show();
291
+ }
292
+ }
293
+ });
294
+ return false;
295
+ }
296
+ });
297
+
298
+
299
+ /*jQuery(document).on('change', '.b2s-user-network-settings-post-format', function () {
300
jQuery('.b2s-settings-user-success').hide();
301
jQuery('.b2s-settings-user-error').hide();
302
jQuery('.b2s-server-connection-fail').hide();
332
}
333
});
334
return false;
335
+ });*/
336
+
337
jQuery(document).on('click', '.b2s-get-settings-sched-time-default', function () {
338
jQuery('.b2s-server-connection-fail').hide();
339
jQuery.ajax({
assets/js/b2s/ship.js CHANGED
@@ -273,15 +273,21 @@ jQuery(document).on("click", ".b2s-user-network-settings-post-format", function
273
jQuery('.b2s-server-connection-fail').hide();
274
275
var networkId = jQuery(this).attr("data-network-id");
276
var postFormat = jQuery(this).val();
277
278
- jQuery('.b2sNetworkSettingsPostFormatCurrent[data-network-id="' + networkId + '"]').val(postFormat);
279
//PostFormat
280
- if (jQuery('.b2s-post-ship-item-post-format-text[data-network-id="' + networkId + '"]').length > 0) {
281
var postFormatText = JSON.parse(jQuery('.b2sNetworkSettingsPostFormatText').val());
282
- jQuery('.b2s-post-ship-item-post-format-text[data-network-id="' + networkId + '"]').html(postFormatText[postFormat]);
283
}
284
-
285
//Change View For Twitter
286
if (postFormat == '0' && networkId == '2') {
287
jQuery('.b2s-image-remove-btn[data-network-id="' + networkId + '"]').hide();
@@ -297,33 +303,10 @@ jQuery(document).on("click", ".b2s-user-network-settings-post-format", function
297
}
298
}
299
300
- jQuery('.b2s-user-network-settings-post-format[data-network-id="' + networkId + '"]').removeClass('b2s-settings-checked');
301
jQuery(this).addClass('b2s-settings-checked');
302
jQuery('#b2s-post-ship-item-post-format-modal').modal('hide');
303
304
- jQuery.ajax({
305
- url: ajaxurl,
306
- type: "POST",
307
- dataType: "json",
308
- cache: false,
309
- data: {
310
- 'action': 'b2s_user_network_settings',
311
- 'post_format': postFormat,
312
- 'network_id': networkId
313
- },
314
- error: function () {
315
- jQuery('.b2s-server-connection-fail').show();
316
- return false;
317
- },
318
- success: function (data) {
319
- jQuery(".b2s-loading-area").hide();
320
- if (data.result == true) {
321
- jQuery('.b2s-settings-user-success').show();
322
- } else {
323
- jQuery('.b2s-settings-user-error').show();
324
- }
325
- }
326
- });
327
return false;
328
});
329
@@ -368,6 +351,7 @@ jQuery(document).on("click", ".b2s-post-ship-item-message-delete", function () {
368
jQuery(document).on("click", ".b2s-network-select-btn", function () {
369
var networkAuthId = jQuery(this).attr('data-network-auth-id');
370
var networkId = jQuery(this).attr('data-network-id');
371
//doppelklick Schutz
372
if (!jQuery(this).hasClass('b2s-network-select-btn-deactivate')) {
373
//aktiv?
@@ -376,9 +360,15 @@ jQuery(document).on("click", ".b2s-network-select-btn", function () {
376
if (jQuery('.b2s-post-item[data-network-auth-id="' + networkAuthId + '"]').length > 0 && !jQuery('.b2s-post-item[data-network-auth-id="' + networkAuthId + '"]').hasClass('b2s-post-item-connection-fail-dummy')) {
377
activatePortal(networkAuthId);
378
//PostFormat
379
- if (jQuery('.b2s-post-ship-item-post-format-text[data-network-id="' + networkId + '"]').length > 0) {
380
var postFormatText = JSON.parse(jQuery('.b2sNetworkSettingsPostFormatText').val());
381
- jQuery('.b2s-post-ship-item-post-format-text[data-network-id="' + networkId + '"]').html(postFormatText[jQuery('.b2sNetworkSettingsPostFormatCurrent[data-network-id="' + networkId + '"]').val()]);
382
}
383
} else {
384
jQuery(this).addClass('b2s-network-select-btn-deactivate');
@@ -543,19 +533,27 @@ jQuery(document).on("click", ".b2s-network-select-btn", function () {
543
jQuery('.b2s-post-item-details-release-input-date-select[data-network-auth-id="' + data.networkAuthId + '"]').trigger("change");
544
initSceditor(data.networkAuthId);
545
//Bild setzen
546
- if (jQuery('.b2s-post-item-details-url-image[data-network-auth-id="' + data.networkAuthId + '"]').length > 0 && jQuery('#b2s_blog_default_image').val() != "") {
547
- jQuery('.b2s-post-item-details-url-image[data-network-auth-id="' + data.networkAuthId + '"]').attr('src', jQuery('#b2s_blog_default_image').val());
548
- jQuery('.b2s-image-remove-btn[data-network-auth-id="' + data.networkAuthId + '"]').show();
549
jQuery('.b2s-image-url-hidden-field').val(jQuery('#b2s_blog_default_image').val());
550
}
551
-
552
//Time zone
553
jQuery('.b2s-settings-time-zone-text').html(jQuery('#user_timezone_text').val());
554
555
//PostFormat
556
- if (jQuery('.b2s-post-ship-item-post-format-text[data-network-id="' + data.networkId + '"]').length > 0) {
557
var postFormatText = JSON.parse(jQuery('.b2sNetworkSettingsPostFormatText').val());
558
- jQuery('.b2s-post-ship-item-post-format-text[data-network-id="' + data.networkId + '"]').html(postFormatText[jQuery('.b2sNetworkSettingsPostFormatCurrent[data-network-id="' + data.networkId + '"]').val()]);
559
//Change View For Twitter
560
if (jQuery('.b2sNetworkSettingsPostFormatCurrent[data-network-id="' + data.networkId + '"]').val() == '0' && data.networkId == '2') {
561
jQuery('.b2s-image-remove-btn[data-network-id="' + data.networkId + '"]').hide();
@@ -588,8 +586,13 @@ jQuery(document).on('click', '.b2s-submit-btn-scroll', function () {
588
589
jQuery(document).on('click', '.b2s-post-ship-item-post-format', function () {
590
jQuery('.b2s-user-network-settings-post-format-area').hide();
591
- jQuery('.b2s-user-network-settings-post-format-area[data-network-id="' + jQuery(this).attr('data-network-id') + '"]').show();
592
jQuery('#b2s-post-ship-item-post-format-network-title').html(jQuery('.b2s-user-network-settings-post-format-area[data-network-id="' + jQuery(this).attr('data-network-id') + '"]').attr('data-network-title'));
593
jQuery('#b2s-post-ship-item-post-format-modal').modal('show');
594
return false;
595
});
@@ -831,6 +834,8 @@ jQuery(document).on('click', '.b2s-image-change-this-network', function () {
831
if (jQuery('#b2sInsertImageType').val() == '1') { //HTML-Network
832
var sceditor = jQuery('.b2s-post-item-details-item-message-input-allow-html[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').sceditor('instance');
833
sceditor.insert("<br /><img src='" + jQuery('input[name=image_url]:checked').val() + "'/><br />");
834
} else {
835
jQuery('.b2s-post-item-details-url-image[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').attr('src', jQuery('input[name=image_url]:checked').val());
836
jQuery('.b2s-post-item-details-url-image[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').removeClass('b2s-img-required');
273
jQuery('.b2s-server-connection-fail').hide();
274
275
var networkId = jQuery(this).attr("data-network-id");
276
+ var networkType = jQuery(this).attr("data-network-type");
277
var postFormat = jQuery(this).val();
278
279
+ jQuery('.b2sNetworkSettingsPostFormatCurrent[data-network-type="' + networkType + '"][data-network-id="' + networkId + '"]').val(postFormat);
280
//PostFormat
281
+ if (jQuery('.b2s-post-ship-item-post-format-text[data-network-type="' + networkType + '"][data-network-id="' + networkId + '"]').length > 0) {
282
var postFormatText = JSON.parse(jQuery('.b2sNetworkSettingsPostFormatText').val());
283
+ if (jQuery('#user_version').val() >= 2) {
284
+ jQuery('.b2s-post-ship-item-post-format-text[data-network-type="' + networkType + '"][data-network-id="' + networkId + '"]').html(postFormatText[postFormat]);
285
+ jQuery('.b2s-post-item-details-post-format[data-network-type="' + networkType + '"][data-network-id="' + networkId + '"]').val(postFormat);
286
+ } else {
287
+ jQuery('.b2s-post-ship-item-post-format-text[data-network-id="' + networkId + '"]').html(postFormatText[postFormat]);
288
+ jQuery('.b2s-post-item-details-post-format[data-network-id="' + networkId + '"]').val(postFormat);
289
+ }
290
}
291
//Change View For Twitter
292
if (postFormat == '0' && networkId == '2') {
293
jQuery('.b2s-image-remove-btn[data-network-id="' + networkId + '"]').hide();
303
}
304
}
305
306
+ jQuery('.b2s-user-network-settings-post-format[data-network-type="' + networkType + '"][data-network-id="' + networkId + '"]').removeClass('b2s-settings-checked');
307
jQuery(this).addClass('b2s-settings-checked');
308
jQuery('#b2s-post-ship-item-post-format-modal').modal('hide');
309
310
return false;
311
});
312
351
jQuery(document).on("click", ".b2s-network-select-btn", function () {
352
var networkAuthId = jQuery(this).attr('data-network-auth-id');
353
var networkId = jQuery(this).attr('data-network-id');
354
+ var networkType = jQuery(this).attr('data-network-type');
355
//doppelklick Schutz
356
if (!jQuery(this).hasClass('b2s-network-select-btn-deactivate')) {
357
//aktiv?
360
if (jQuery('.b2s-post-item[data-network-auth-id="' + networkAuthId + '"]').length > 0 && !jQuery('.b2s-post-item[data-network-auth-id="' + networkAuthId + '"]').hasClass('b2s-post-item-connection-fail-dummy')) {
361
activatePortal(networkAuthId);
362
//PostFormat
363
+ if (jQuery('.b2s-post-ship-item-post-format-text[data-network-type="' + networkType + '"][data-network-id="' + networkId + '"]').length > 0) {
364
var postFormatText = JSON.parse(jQuery('.b2sNetworkSettingsPostFormatText').val());
365
+ if (jQuery('#user_version').val() >= 2) {
366
+ jQuery('.b2s-post-ship-item-post-format-text[data-network-type="' + networkType + '"][data-network-id="' + networkId + '"]').html(postFormatText[jQuery('.b2sNetworkSettingsPostFormatCurrent[data-network-type="' + networkType + '"][data-network-id="' + networkId + '"]').val()]);
367
+ jQuery('.b2s-post-item-details-post-format[data-network-type="' + networkType + '"][data-network-id="' + networkId + '"]').val(jQuery('.b2sNetworkSettingsPostFormatCurrent[data-network-type="' + networkType + '"][data-network-id="' + networkId + '"]').val());
368
+ } else {
369
+ jQuery('.b2s-post-ship-item-post-format-text[data-network-id="' + networkId + '"]').html(postFormatText[jQuery('.b2sNetworkSettingsPostFormatCurrent[data-network-type="' + networkType + '"][data-network-id="' + networkId + '"]').val()]);
370
+ jQuery('.b2s-post-item-details-post-format[data-network-id="' + networkId + '"]').val(jQuery('.b2sNetworkSettingsPostFormatCurrent[data-network-type="' + networkType + '"][data-network-id="' + networkId + '"]').val());
371
+ }
372
}
373
} else {
374
jQuery(this).addClass('b2s-network-select-btn-deactivate');
533
jQuery('.b2s-post-item-details-release-input-date-select[data-network-auth-id="' + data.networkAuthId + '"]').trigger("change");
534
initSceditor(data.networkAuthId);
535
//Bild setzen
536
+ if (jQuery('#b2s_blog_default_image').val() != "") {
537
+ if (jQuery('.b2s-post-item-details-url-image[data-network-auth-id="' + data.networkAuthId + '"]').length > 0) {
538
+ jQuery('.b2s-post-item-details-url-image[data-network-auth-id="' + data.networkAuthId + '"]').attr('src', jQuery('#b2s_blog_default_image').val());
539
+ jQuery('.b2s-image-remove-btn[data-network-auth-id="' + data.networkAuthId + '"]').show();
540
+ }
541
jQuery('.b2s-image-url-hidden-field').val(jQuery('#b2s_blog_default_image').val());
542
}
543
+
544
//Time zone
545
jQuery('.b2s-settings-time-zone-text').html(jQuery('#user_timezone_text').val());
546
547
//PostFormat
548
+ if (jQuery('.b2s-post-ship-item-post-format-text[data-network-type="' + data.networkType + '"][data-network-id="' + data.networkId + '"]').length > 0) {
549
var postFormatText = JSON.parse(jQuery('.b2sNetworkSettingsPostFormatText').val());
550
+ if (jQuery('#user_version').val() >= 2) {
551
+ jQuery('.b2s-post-ship-item-post-format-text[data-network-type="' + data.networkType + '"][data-network-id="' + data.networkId + '"]').html(postFormatText[jQuery('.b2sNetworkSettingsPostFormatCurrent[data-network-type="' + data.networkType + '"][data-network-id="' + data.networkId + '"]').val()]);
552
+ jQuery('.b2s-post-item-details-post-format[data-network-type="' + data.networkType + '"][data-network-id="' + data.networkId + '"]').val(jQuery('.b2sNetworkSettingsPostFormatCurrent[data-network-type="' + data.networkType + '"][data-network-id="' + data.networkId + '"]').val());
553
+ } else {
554
+ jQuery('.b2s-post-ship-item-post-format-text[data-network-id="' + data.networkId + '"]').html(postFormatText[jQuery('.b2sNetworkSettingsPostFormatCurrent[data-network-type="' + data.networkType + '"][data-network-id="' + data.networkId + '"]').val()]);
555
+ jQuery('.b2s-post-item-details-post-format[data-network-id="' + data.networkId + '"]').val(jQuery('.b2sNetworkSettingsPostFormatCurrent[data-network-type="' + data.networkType + '"][data-network-id="' + data.networkId + '"]').val());
556
+ }
557
//Change View For Twitter
558
if (jQuery('.b2sNetworkSettingsPostFormatCurrent[data-network-id="' + data.networkId + '"]').val() == '0' && data.networkId == '2') {
559
jQuery('.b2s-image-remove-btn[data-network-id="' + data.networkId + '"]').hide();
586
587
jQuery(document).on('click', '.b2s-post-ship-item-post-format', function () {
588
jQuery('.b2s-user-network-settings-post-format-area').hide();
589
+ jQuery('.b2s-user-network-settings-post-format-area[data-network-type="' + jQuery(this).attr('data-network-type') + '"][data-network-id="' + jQuery(this).attr('data-network-id') + '"]').show();
590
jQuery('#b2s-post-ship-item-post-format-network-title').html(jQuery('.b2s-user-network-settings-post-format-area[data-network-id="' + jQuery(this).attr('data-network-id') + '"]').attr('data-network-title'));
591
+ if (jQuery('#user_version').val() >= 2) {
592
+ jQuery('#b2s-post-ship-item-post-format-network-display-name').html(jQuery('.b2s-post-item-details-network-display-name[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').text().toUpperCase());
593
+ }
594
+ jQuery('.b2s-post-format-settings-info').hide();
595
+ jQuery('.b2s-post-format-settings-info[data-network-id="' + jQuery(this).attr('data-network-id') + '"]').show();
596
jQuery('#b2s-post-ship-item-post-format-modal').modal('show');
597
return false;
598
});
834
if (jQuery('#b2sInsertImageType').val() == '1') { //HTML-Network
835
var sceditor = jQuery('.b2s-post-item-details-item-message-input-allow-html[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').sceditor('instance');
836
sceditor.insert("<br /><img src='" + jQuery('input[name=image_url]:checked').val() + "'/><br />");
837
+ jQuery('.b2s-image-url-hidden-field[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').val(jQuery('input[name=image_url]:checked').val()); //Torial
838
+
839
} else {
840
jQuery('.b2s-post-item-details-url-image[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').attr('src', jQuery('input[name=image_url]:checked').val());
841
jQuery('.b2s-post-item-details-url-image[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').removeClass('b2s-img-required');
assets/js/b2s/wp/post-meta-box.js CHANGED
@@ -168,7 +168,6 @@ jQuery(document).on('change', '#b2s-post-meta-box-profil-dropdown', function ()
168
}
169
});
170
171
-
172
function b2sIsValidUrl(str) {
173
var pattern = new RegExp(/^(https?:\/\/)?[a-zA-Z0-99ÄÖÜöäü-]+([\-\.]{1}[a-zA-Z0-99ÄÖÜöäü-]+)*\.[a-zA-Z0-9-]{2,20}(:[0-9]{1,5})?(\/.*)?#x2F;);
174
if (!pattern.test(str)) {
168
}
169
});
170
171
function b2sIsValidUrl(str) {
172
var pattern = new RegExp(/^(https?:\/\/)?[a-zA-Z0-99ÄÖÜöäü-]+([\-\.]{1}[a-zA-Z0-99ÄÖÜöäü-]+)*\.[a-zA-Z0-9-]{2,20}(:[0-9]{1,5})?(\/.*)?#x2F;);
173
if (!pattern.test(str)) {
assets/js/b2s/wp/post-sched-heartbeat.js ADDED
@@ -0,0 +1,4 @@
1
+ jQuery(document).on('heartbeat-send', function (e, data) {
2
+ data['b2s_heartbeat'] = 'b2s_listener';
3
+ data['b2s_heartbeat_action'] = 'b2s_delete_sched_post';
4
+ });
includes/Ajax/Get.php CHANGED
@@ -96,7 +96,7 @@ class Ajax_Get {
96
'network_display_name' => strip_tags(stripslashes($_POST['networkDisplayName'])),
97
'networkType' => (int) $_POST['networkType']);
98
$item = new B2S_Ship_Item((int) $_POST['postId'], $userLang);
99
- echo json_encode(array('result' => true, 'networkAuthId' => (int) $_POST['networkAuthId'], 'networkId' => (int) $_POST['networkId'], 'content' => $item->getItemHtml((object) $itemData)));
100
} else {
101
echo json_encode(array('result' => false));
102
}
96
'network_display_name' => strip_tags(stripslashes($_POST['networkDisplayName'])),
97
'networkType' => (int) $_POST['networkType']);
98
$item = new B2S_Ship_Item((int) $_POST['postId'], $userLang);
99
+ echo json_encode(array('result' => true, 'networkAuthId' => (int) $_POST['networkAuthId'],'networkType' => (int) $_POST['networkType'], 'networkId' => (int) $_POST['networkId'], 'content' => $item->getItemHtml((object) $itemData)));
100
} else {
101
echo json_encode(array('result' => false));
102
}
includes/Ajax/Post.php CHANGED
@@ -122,6 +122,7 @@ class Ajax_Post {
122
}
123
124
public function saveShipData() {
125
require_once (B2S_PLUGIN_DIR . 'includes/B2S/Ship/Save.php');
126
$post = $_POST;
127
if (!isset($post['b2s']) || !is_array($post['b2s'])) {
@@ -156,10 +157,11 @@ class Ajax_Post {
156
'network_type' => isset($data['network_type']) ? $data['network_type'] : '',
157
'network_display_name' => isset($data['network_display_name']) ? $data['network_display_name'] : '',
158
'network_auth_id' => $networkAuthId,
159
'user_timezone' => isset($post['user_timezone']) ? $post['user_timezone'] : 0,
160
'publish_date' => isset($post['publish_date']) ? date('Y-m-d H:i:s', strtotime($post['publish_date'])) : date('Y-m-d H:i:s', current_time('timestamp'))
161
);
162
-
163
$oneSchedTimeRemove = false;
164
if (isset($data['releaseSelect']) && (int) $data['releaseSelect'] == 1 && isset($data['date'][0]) && isset($data['time'][0])) {
165
if ((int) strtotime(B2S_Util::getUTCForDate($data['date'][0] . ' ' . $data['time'][0], $sendData['user_timezone'] * (-1))) < (int) strtotime(gmdate('Y-m-d H:i:s'))) {
@@ -213,26 +215,22 @@ class Ajax_Post {
213
echo json_encode(array('result' => true, 'content' => (isset($_POST['short_url']) ? (int) $_POST['short_url'] : 0)));
214
wp_die();
215
}
216
- /* if (isset($_POST['auto_share'])) {
217
- if ((int) $_POST['auto_share'] == 1) {
218
- delete_option('B2S_PLUGIN_USER_AUTO_SHARE_' . B2S_PLUGIN_BLOG_USER_ID);
219
- } else {
220
- update_option('B2S_PLUGIN_USER_AUTO_SHARE_' . B2S_PLUGIN_BLOG_USER_ID, 1);
221
- }
222
- echo json_encode(array('result' => true, 'content' => (((int) $_POST['auto_share'] == 1) ? 0 : 1)));
223
- wp_die();
224
- } */
225
-
226
- if (isset($_POST['post_format']) && isset($_POST['network_id'])) {
227
- $post = array('token' => B2S_PLUGIN_TOKEN,
228
- 'action' => 'saveSettings',
229
- 'network_id' => (int) $_POST['network_id'],
230
- 'post_format' => (int) $_POST['post_format']);
231
- $result = json_decode(B2S_Api_Post::post(B2S_PLUGIN_API_ENDPOINT, $post));
232
- if ($result->result == true) {
233
- echo json_encode(array('result' => true));
234
- wp_die();
235
}
236
}
237
238
if (isset($_POST['allow_shortcode'])) {
122
}
123
124
public function saveShipData() {
125
+
126
require_once (B2S_PLUGIN_DIR . 'includes/B2S/Ship/Save.php');
127
$post = $_POST;
128
if (!isset($post['b2s']) || !is_array($post['b2s'])) {
157
'network_type' => isset($data['network_type']) ? $data['network_type'] : '',
158
'network_display_name' => isset($data['network_display_name']) ? $data['network_display_name'] : '',
159
'network_auth_id' => $networkAuthId,
160
+ 'post_format' => isset($data['post_format']) ? (int)$data['post_format'] : '',
161
'user_timezone' => isset($post['user_timezone']) ? $post['user_timezone'] : 0,
162
'publish_date' => isset($post['publish_date']) ? date('Y-m-d H:i:s', strtotime($post['publish_date'])) : date('Y-m-d H:i:s', current_time('timestamp'))
163
);
164
+
165
$oneSchedTimeRemove = false;
166
if (isset($data['releaseSelect']) && (int) $data['releaseSelect'] == 1 && isset($data['date'][0]) && isset($data['time'][0])) {
167
if ((int) strtotime(B2S_Util::getUTCForDate($data['date'][0] . ' ' . $data['time'][0], $sendData['user_timezone'] * (-1))) < (int) strtotime(gmdate('Y-m-d H:i:s'))) {
215
echo json_encode(array('result' => true, 'content' => (isset($_POST['short_url']) ? (int) $_POST['short_url'] : 0)));
216
wp_die();
217
}
218
+
219
+ if (isset($_POST['type']) && $_POST['type'] == 'post_format') {
220
+ $options = new B2S_Options(B2S_PLUGIN_BLOG_USER_ID);
221
+ $post_format = $options->_getOption('post_format');
222
+
223
+ $post_format[(int) $_POST['network_id']] = array();
224
+
225
+ if (isset($_POST['type-format']) && is_array($_POST['type-format'])) {
226
+ $post_format[(int) $_POST['network_id']] = $_POST['type-format'];
227
+ } else {
228
+ $post_format[(int) $_POST['network_id']] = array('all' => $_POST['all']);
229
}
230
+
231
+ $options->_setOption('post_format', $post_format);
232
+ echo json_encode(array('result' => true));
233
+ wp_die();
234
}
235
236
if (isset($_POST['allow_shortcode'])) {
includes/AutoShare.php CHANGED
@@ -13,31 +13,39 @@ class B2S_AutoShare {
13
private $myTimeSettings = array();
14
private $current_user_date;
15
private $setPreFillText;
16
17
- function __construct($postId = 0, $blogPostData = array(), $current_user_date = '0000-00-00 00:00:00', $myTimeSettings = false, $title = '', $content = '', $url = '', $imageUrl = '', $keywords = '',$b2sPostLang = 'en') {
18
$this->postId = $postId;
19
$this->blogPostData = $blogPostData;
20
$this->current_user_date = $current_user_date;
21
$this->myTimeSettings = $myTimeSettings;
22
- $this->title =$title;
23
- $this->content = B2S_Util::prepareContent($postId, $content, $url, false,true,$b2sPostLang);
24
- $this->contentHtml = B2S_Util::prepareContent($postId, $content, $url, '<p><h1><h2><br><i><b><a><img>',true,$b2sPostLang);
25
$this->url = $url;
26
$this->imageUrl = $imageUrl;
27
$this->keywords = $keywords;
28
$this->setPreFillText = array(0 => array(1 => 239, 2 => 116, 3 => 239, 6 => 300, 8 => 239, 10 => 442, 12 => 240, 9 => 200), 1 => array(1 => 239, 3 => 239, 8 => 1200, 10 => 442), 2 => array(1 => 239, 8 => 239, 10 => 442));
29
}
30
31
public function prepareShareData($networkAuthId = 0, $networkId = 0, $networkType = 0) {
32
if ((int) $networkId > 0 && (int) $networkAuthId > 0) {
33
$postData = array('content' => '', 'custom_title' => '', 'tags' => array(), 'network_auth_id' => (int) $networkAuthId);
34
35
//Special
36
if ($networkId == 1 || $networkId == 3) {
37
- $postData['content'] = (isset($this->setPreFillText[$networkType][$networkId])) ? B2S_Util::getExcerpt($this->content, (int) $this->setPreFillText[$networkType][$networkId]) : $this->content;
38
}
39
if ($networkId == 2) {
40
- $postData['content'] = (isset($this->setPreFillText[$networkType][$networkId])) ? B2S_Util::getExcerpt(strip_tags($this->title), (int) $this->setPreFillText[$networkType][$networkId]) : strip_tags($this->title);
41
}
42
if ($networkId == 4) {
43
$postData['custom_title'] = strip_tags($this->title);
@@ -51,7 +59,7 @@ class B2S_AutoShare {
51
52
if ($networkId == 6 || $networkId == 12) {
53
if ($this->imageUrl !== false) {
54
- $postData['content'] = (isset($this->setPreFillText[$networkType][$networkId])) ? B2S_Util::getExcerpt($this->content, (int) $this->setPreFillText[$networkType][$networkId]) : $this->content;
55
$postData['content'] .= $this->getHashTagsString();
56
} else {
57
return false;
@@ -66,14 +74,14 @@ class B2S_AutoShare {
66
}
67
}
68
if ($networkId == 8) {
69
- $postData['content'] = (isset($this->setPreFillText[$networkType][$networkId])) ? B2S_Util::getExcerpt($this->content, (int) $this->setPreFillText[$networkType][$networkId]) : $this->content;
70
if ($networkType != 0) {
71
$postData['custom_title'] = strip_tags($this->title);
72
}
73
}
74
if ($networkId == 9) {
75
$postData['custom_title'] = $this->title;
76
- $postData['content'] = (isset($this->setPreFillText[$networkType][$networkId])) ? B2S_Util::getExcerpt($this->content, (int) $this->setPreFillText[$networkType][$networkId]) : $this->content;
77
if (is_array($this->keywords) && !empty($this->keywords)) {
78
foreach ($this->keywords as $tag) {
79
$postData['tags'][] = $tag->name;
@@ -82,7 +90,7 @@ class B2S_AutoShare {
82
}
83
84
if ($networkId == 10) {
85
- $postData['content'] = (isset($this->setPreFillText[$networkType][$networkId])) ? B2S_Util::getExcerpt($this->content, (int) $this->setPreFillText[$networkType][$networkId]) : $this->content;
86
$postData['content'] .= $this->getHashTagsString();
87
}
88
13
private $myTimeSettings = array();
14
private $current_user_date;
15
private $setPreFillText;
16
+ private $optionPostFormat;
17
18
+ function __construct($postId = 0, $blogPostData = array(), $current_user_date = '0000-00-00 00:00:00', $myTimeSettings = false, $title = '', $content = '', $url = '', $imageUrl = '', $keywords = '', $b2sPostLang = 'en', $optionPostFormat = array()) {
19
$this->postId = $postId;
20
$this->blogPostData = $blogPostData;
21
$this->current_user_date = $current_user_date;
22
$this->myTimeSettings = $myTimeSettings;
23
+ $this->title = $title;
24
+ $this->content = B2S_Util::prepareContent($postId, $content, $url, false, true, $b2sPostLang);
25
+ $this->contentHtml = B2S_Util::prepareContent($postId, $content, $url, '<p><h1><h2><br><i><b><a><img>', true, $b2sPostLang);
26
$this->url = $url;
27
$this->imageUrl = $imageUrl;
28
$this->keywords = $keywords;
29
+ $this->optionPostFormat = $optionPostFormat;
30
$this->setPreFillText = array(0 => array(1 => 239, 2 => 116, 3 => 239, 6 => 300, 8 => 239, 10 => 442, 12 => 240, 9 => 200), 1 => array(1 => 239, 3 => 239, 8 => 1200, 10 => 442), 2 => array(1 => 239, 8 => 239, 10 => 442));
31
+ $this->setPreFillTextLimit = array(0 => array(1 => 400, 2 => 116, 3 => 400, 6 => 400, 8 => 400, 10 => 500, 12 => 400, 9 => 200), 1 => array(1 => 400, 3 => 400, 8 => 1200, 10 => 500), 2 => array(1 => 400, 8 => 400, 10 => 500));
32
}
33
34
public function prepareShareData($networkAuthId = 0, $networkId = 0, $networkType = 0) {
35
if ((int) $networkId > 0 && (int) $networkAuthId > 0) {
36
$postData = array('content' => '', 'custom_title' => '', 'tags' => array(), 'network_auth_id' => (int) $networkAuthId);
37
38
+ //PostFormat
39
+ if ($networkId == 1 || $networkId == 2) {
40
+ $postData['post_format'] = ((isset($this->optionPostFormat[$networkId]) && is_array($this->optionPostFormat[$networkId]) && ((isset($this->optionPostFormat[$networkId]['all']) && (int)$this->optionPostFormat[$networkId]['all'] == 0) || (isset($this->optionPostFormat[$networkId][$networkType]) && (int) $this->optionPostFormat[$networkId][$networkType] == 0)) ) ? 0 : (!isset($this->optionPostFormat[$networkId]) ? 0 : 1 ));
41
+ }
42
+
43
//Special
44
if ($networkId == 1 || $networkId == 3) {
45
+ $postData['content'] = (isset($this->setPreFillText[$networkType][$networkId])) ? B2S_Util::getExcerpt($this->content, (int) $this->setPreFillText[$networkType][$networkId], (int) $this->setPreFillTextLimit[$networkType][$networkId]) : $this->content;
46
}
47
if ($networkId == 2) {
48
+ $postData['content'] = (isset($this->setPreFillText[$networkType][$networkId])) ? B2S_Util::getExcerpt(strip_tags($this->title), (int) $this->setPreFillText[$networkType][$networkId], (int) $this->setPreFillTextLimit[$networkType][$networkId]) : strip_tags($this->title);
49
}
50
if ($networkId == 4) {
51
$postData['custom_title'] = strip_tags($this->title);
59
60
if ($networkId == 6 || $networkId == 12) {
61
if ($this->imageUrl !== false) {
62
+ $postData['content'] = (isset($this->setPreFillText[$networkType][$networkId])) ? B2S_Util::getExcerpt($this->content, (int) $this->setPreFillText[$networkType][$networkId], (int) $this->setPreFillTextLimit[$networkType][$networkId]) : $this->content;
63
$postData['content'] .= $this->getHashTagsString();
64
} else {
65
return false;
74
}
75
}
76
if ($networkId == 8) {
77
+ $postData['content'] = (isset($this->setPreFillText[$networkType][$networkId])) ? B2S_Util::getExcerpt($this->content, (int) $this->setPreFillText[$networkType][$networkId], (int) $this->setPreFillTextLimit[$networkType][$networkId]) : $this->content;
78
if ($networkType != 0) {
79
$postData['custom_title'] = strip_tags($this->title);
80
}
81
}
82
if ($networkId == 9) {
83
$postData['custom_title'] = $this->title;
84
+ $postData['content'] = (isset($this->setPreFillText[$networkType][$networkId])) ? B2S_Util::getExcerpt($this->content, (int) $this->setPreFillText[$networkType][$networkId], (int) $this->setPreFillTextLimit[$networkType][$networkId]) : $this->content;
85
if (is_array($this->keywords) && !empty($this->keywords)) {
86
foreach ($this->keywords as $tag) {
87
$postData['tags'][] = $tag->name;
90
}
91
92
if ($networkId == 10) {
93
+ $postData['content'] = (isset($this->setPreFillText[$networkType][$networkId])) ? B2S_Util::getExcerpt($this->content, (int) $this->setPreFillText[$networkType][$networkId], (int) $this->setPreFillTextLimit[$networkType][$networkId]) : $this->content;
94
$postData['content'] .= $this->getHashTagsString();
95
}
96
includes/B2S/Heartbeat.php CHANGED
@@ -12,9 +12,12 @@ class B2S_Heartbeat {
12
}
13
14
public function init($response, $data) {
15
if (isset($data['b2s_heartbeat']) && $data['b2s_heartbeat'] == 'b2s_listener') {
16
if (isset($data['b2s_heartbeat_action']) && $data['b2s_heartbeat_action'] == 'b2s_auto_posting') {
17
$this->postSchedToServer();
18
} else {
19
$this->postSchedToServer();
20
$this->updateUserSchedTimePost();
12
}
13
14
public function init($response, $data) {
15
+
16
if (isset($data['b2s_heartbeat']) && $data['b2s_heartbeat'] == 'b2s_listener') {
17
if (isset($data['b2s_heartbeat_action']) && $data['b2s_heartbeat_action'] == 'b2s_auto_posting') {
18
$this->postSchedToServer();
19
+ } if (isset($data['b2s_heartbeat_action']) && $data['b2s_heartbeat_action'] == 'b2s_delete_sched_post') {
20
+ $this->deleteUserSchedPost();
21
} else {
22
$this->postSchedToServer();
23
$this->updateUserSchedTimePost();
includes/B2S/Network/Item.php CHANGED
@@ -88,7 +88,7 @@ class B2S_Network_Item {
88
$html .='<div class="media-body network">';
89
$html .= '<h4>' . ucfirst($networkName);
90
if ($maxNetworkAccount !== false) {
91
- $html .=' <span class="b2s-network-auth-count">(' . __('max. accounts', 'blog2social') . ': ' . $maxNetworkAccount . ' <a target="_blank" class="b2s-network-get-more-btn" href="' . $priceBtn . '">' . __('get more', 'blog2social') . '</a>)</span>';
92
}
93
$html .= '<span class="pull-right">';
94
@@ -96,10 +96,10 @@ class B2S_Network_Item {
96
$html .= in_array($networkId, $this->allowProfil) ? '<a href="#" onclick="wop(\'' . $b2sAuthUrl . '&choose=profile\', \'Blog2Social Network\'); return false;" class="btn btn-primary btn-sm b2s-network-auth-btn">+ ' . __('Profile', 'blog2social') . '</a>' : '';
97
98
if (in_array($networkId, $this->allowPage)) {
99
- $html .= (B2S_PLUGIN_USER_VERSION > 1 || (B2S_PLUGIN_USER_VERSION == 0 && $networkId == 1) || (B2S_PLUGIN_USER_VERSION == 1 && ($networkId == 1 || $networkId == 10))) ? '<button onclick="wop(\'' . $b2sAuthUrl . '&choose=page\', \'Blog2Social Network\'); return false;" class="btn btn-primary btn-sm b2s-network-auth-btn">+ ' . __('Page', 'blog2social') . '</button>' : '<a href="#" class="btn btn-primary btn-sm b2s-network-auth-btn" data-title="' . __('You want to connect a network page?', 'blog2social') . '" data-toggle="modal" data-type="auth-network" data-target="#'.((B2S_PLUGIN_USER_VERSION ==0) ? 'b2sPreFeatureModal' :'b2sProFeatureModal').'">+ ' . __('Page', 'blog2social') . '</a>';
100
}
101
if (in_array($networkId, $this->allowGroup)) {
102
- $html .= (B2S_PLUGIN_USER_VERSION > 1 || (B2S_PLUGIN_USER_VERSION == 1 && $networkId != 8)) ? '<button onclick="wop(\'' . $b2sAuthUrl . '&choose=group\', \'Blog2Social Network\'); return false;" class="btn btn-primary btn-sm b2s-network-auth-btn">+ ' . __('Group', 'blog2social') . '</button>' : '<a href="#" class="btn btn-primary btn-sm b2s-network-auth-btn" data-toggle="modal" data-title="' . __('You want to connect a social media group?', 'blog2social') . '" data-type="auth-network" data-target="#'.((B2S_PLUGIN_USER_VERSION ==0) ? 'b2sPreFeatureModal' :'b2sProFeatureModal').'">+ ' . __('Group', 'blog2social') . '</a>';
103
}
104
105
$html .= '</span></h4>';
@@ -114,11 +114,13 @@ class B2S_Network_Item {
114
$html .= __('Profile', 'blog2social') . ': ' . stripslashes($v['networkUserName']) . '</span> ';
115
}
116
117
- $html .= '<a class="b2s-network-item-auth-list-btn-delete" data-network-auth-id="' . $v['networkAuthId'] . '" href="#">' . __('Delete', 'blog2social') . '</a>';
118
- $html .= ($v['expiredDate'] != '0000-00-00' && $v['expiredDate'] <= date('Y-m-d')) ? ' <a href="#" onclick="wop(\'' . $b2sAuthUrl . '&choose=profil&update=' . $v['networkAuthId'] . '\', \'Blog2Social Network\'); return false;" class="b2s-network-auth-btn b2s-network-auth-update-btn" data-network-auth-id="' . $v['networkAuthId'] . '">' . __('Reconnect', 'blog2social') . '</a>' : '';
119
$html .= ($v['expiredDate'] != '0000-00-00' && $v['expiredDate'] <= date('Y-m-d')) ? ' <span class="label label-danger b2s-network-auth-update-label" data-network-auth-id="' . $v['networkAuthId'] . '">' . __('Authorization is interrupted since', 'blog2social') . ' ' . ($sprache == 'en' ? $v['expiredDate'] : date('d.m.Y', strtotime($v['expiredDate']))) . '</span>' : '';
120
if ($v['notAllow'] !== false) {
121
- $html .='<span class="no-allow-info-text">' . __('To reactivate this social media connection,', 'blog2social') . ' <a href="' . B2S_Tools::getSupportLink('affiliate') . '"target="_blank">' . __('please upgrade', 'blog2social') . '</a></s>';
122
}
123
124
$html .= '</li>';
@@ -134,8 +136,10 @@ class B2S_Network_Item {
134
$html .= __('Page', 'blog2social') . ': ' . stripslashes($v['networkUserName']) . '</span> ';
135
}
136
137
- $html .= '<a class="b2s-network-item-auth-list-btn-delete" data-network-auth-id="' . $v['networkAuthId'] . '" href="#">' . __('Delete', 'blog2social') . '</a>';
138
- $html .= ($v['expiredDate'] != '0000-00-00' && $v['expiredDate'] <= date('Y-m-d')) ? ' <a href="#" onclick="wop(\'' . $b2sAuthUrl . '&choose=page&update=' . $v['networkAuthId'] . '\', \'Blog2Social Network\'); return false;" class="b2s-network-auth-btn b2s-network-auth-update-btn" data-network-auth-id="' . $v['networkAuthId'] . '">' . __('Reconnect', 'blog2social') . '</a>' : '';
139
$html .= ($v['expiredDate'] != '0000-00-00' && $v['expiredDate'] <= date('Y-m-d')) ? ' <span class="label label-danger b2s-network-auth-update-label" data-network-auth-id="' . $v['networkAuthId'] . '">' . __('Authorization is interrupted since', 'blog2social') . ' ' . ($sprache == 'en' ? $v['expiredDate'] : date('d.m.Y', strtotime($v['expiredDate']))) . '</span>' : '';
140
141
if ($v['notAllow'] !== false) {
@@ -153,8 +157,11 @@ class B2S_Network_Item {
153
} else {
154
$html .= __('Group', 'blog2social') . ': ' . stripslashes($v['networkUserName']) . '</span> ';
155
}
156
- $html .= '<a class="b2s-network-item-auth-list-btn-delete" data-network-auth-id="' . $v['networkAuthId'] . '" href="#">' . __('Delete', 'blog2social') . '</a>';
157
- $html .= ($v['expiredDate'] != '0000-00-00' && $v['expiredDate'] <= date('Y-m-d')) ? ' <a href="#" onclick="wop(\'' . $b2sAuthUrl . '&choose=group&update=' . $v['networkAuthId'] . '\', \'Blog2Social Network\'); return false;" class="b2s-network-auth-btn b2s-network-auth-update-btn" data-network-auth-id="' . $v['networkAuthId'] . '">' . __('Reconnect', 'blog2social') . '</a>' : '';
158
$html .= ($v['expiredDate'] != '0000-00-00' && $v['expiredDate'] <= date('Y-m-d')) ? ' <span class="label label-danger b2s-network-auth-update-label" data-network-auth-id="' . $v['networkAuthId'] . '">' . __('Authorization is interrupted since', 'blog2social') . ' ' . ($sprache == 'en' ? $v['expiredDate'] : date('d.m.Y', strtotime($v['expiredDate']))) . '</span>' : '';
159
160
if ($v['notAllow'] !== false) {
88
$html .='<div class="media-body network">';
89
$html .= '<h4>' . ucfirst($networkName);
90
if ($maxNetworkAccount !== false) {
91
+ $html .=' <span class="b2s-network-auth-count">(' . __('max. accounts', 'blog2social') . ': ' . $maxNetworkAccount . ' <a target="_blank" class="b2s-network-get-more-btn" href="' . $priceBtn . '">' . __('need more', 'blog2social') . '?</a>)</span>';
92
}
93
$html .= '<span class="pull-right">';
94
96
$html .= in_array($networkId, $this->allowProfil) ? '<a href="#" onclick="wop(\'' . $b2sAuthUrl . '&choose=profile\', \'Blog2Social Network\'); return false;" class="btn btn-primary btn-sm b2s-network-auth-btn">+ ' . __('Profile', 'blog2social') . '</a>' : '';
97
98
if (in_array($networkId, $this->allowPage)) {
99
+ $html .= (B2S_PLUGIN_USER_VERSION > 1 || (B2S_PLUGIN_USER_VERSION == 0 && $networkId == 1) || (B2S_PLUGIN_USER_VERSION == 1 && ($networkId == 1 || $networkId == 10))) ? '<button onclick="wop(\'' . $b2sAuthUrl . '&choose=page\', \'Blog2Social Network\'); return false;" class="btn btn-primary btn-sm b2s-network-auth-btn">+ ' . __('Page', 'blog2social') . '</button>' : '<a href="#" class="btn btn-primary btn-sm b2s-network-auth-btn" data-title="' . __('You want to connect a network page?', 'blog2social') . '" data-toggle="modal" data-type="auth-network" data-target="#' . ((B2S_PLUGIN_USER_VERSION == 0) ? 'b2sPreFeatureModal' : 'b2sProFeatureModal') . '">+ ' . __('Page', 'blog2social') . '</a>';
100
}
101
if (in_array($networkId, $this->allowGroup)) {
102
+ $html .= (B2S_PLUGIN_USER_VERSION > 1 || (B2S_PLUGIN_USER_VERSION == 1 && $networkId != 8)) ? '<button onclick="wop(\'' . $b2sAuthUrl . '&choose=group\', \'Blog2Social Network\'); return false;" class="btn btn-primary btn-sm b2s-network-auth-btn">+ ' . __('Group', 'blog2social') . '</button>' : '<a href="#" class="btn btn-primary btn-sm b2s-network-auth-btn" data-toggle="modal" data-title="' . __('You want to connect a social media group?', 'blog2social') . '" data-type="auth-network" data-target="#' . ((B2S_PLUGIN_USER_VERSION == 0) ? 'b2sPreFeatureModal' : 'b2sProFeatureModal') . '">+ ' . __('Group', 'blog2social') . '</a>';
103
}
104
105
$html .= '</span></h4>';
114
$html .= __('Profile', 'blog2social') . ': ' . stripslashes($v['networkUserName']) . '</span> ';
115
}
116
117
+ if ($v['notAllow'] === false) {
118
+ $html .= '<a href="#" onclick="wop(\'' . $b2sAuthUrl . '&choose=profil&update=' . $v['networkAuthId'] . '\', \'Blog2Social Network\'); return false;" class="b2s-network-auth-btn b2s-network-auth-update-btn add-padding-left" data-network-auth-id="' . $v['networkAuthId'] . '"><span class="glyphicon glyphicon-refresh glyphicon-grey"></span></a>';
119
+ }
120
+ $html .= '<a class="b2s-network-item-auth-list-btn-delete" data-network-auth-id="' . $v['networkAuthId'] . '" href="#"><span class="glyphicon glyphicon-trash glyphicon-grey"></span></a>';
121
$html .= ($v['expiredDate'] != '0000-00-00' && $v['expiredDate'] <= date('Y-m-d')) ? ' <span class="label label-danger b2s-network-auth-update-label" data-network-auth-id="' . $v['networkAuthId'] . '">' . __('Authorization is interrupted since', 'blog2social') . ' ' . ($sprache == 'en' ? $v['expiredDate'] : date('d.m.Y', strtotime($v['expiredDate']))) . '</span>' : '';
122
if ($v['notAllow'] !== false) {
123
+ $html .='<div class="no-allow-info-text">' . __('To reactivate this social media connection,', 'blog2social') . ' <a href="' . B2S_Tools::getSupportLink('affiliate') . '"target="_blank">' . __('please upgrade', 'blog2social') . '</a></div>';
124
}
125
126
$html .= '</li>';
136
$html .= __('Page', 'blog2social') . ': ' . stripslashes($v['networkUserName']) . '</span> ';
137
}
138
139
+ if ($v['notAllow'] === false) {
140
+ $html .= '<a href="#" onclick="wop(\'' . $b2sAuthUrl . '&choose=page&update=' . $v['networkAuthId'] . '\', \'Blog2Social Network\'); return false;" class="b2s-network-auth-btn b2s-network-auth-update-btn add-padding-left" data-network-auth-id="' . $v['networkAuthId'] . '"><span class="glyphicon glyphicon-refresh glyphicon-grey"></span></a>';
141
+ }
142
+ $html .= '<a class="b2s-network-item-auth-list-btn-delete" data-network-auth-id="' . $v['networkAuthId'] . '" href="#"><span class="glyphicon glyphicon-trash glyphicon-grey"></span></a>';
143
$html .= ($v['expiredDate'] != '0000-00-00' && $v['expiredDate'] <= date('Y-m-d')) ? ' <span class="label label-danger b2s-network-auth-update-label" data-network-auth-id="' . $v['networkAuthId'] . '">' . __('Authorization is interrupted since', 'blog2social') . ' ' . ($sprache == 'en' ? $v['expiredDate'] : date('d.m.Y', strtotime($v['expiredDate']))) . '</span>' : '';
144
145
if ($v['notAllow'] !== false) {
157
} else {
158
$html .= __('Group', 'blog2social') . ': ' . stripslashes($v['networkUserName']) . '</span> ';
159
}
160
+
161
+ if ($v['notAllow'] === false) {
162
+ $html .= '<a href="#" onclick="wop(\'' . $b2sAuthUrl . '&choose=group&update=' . $v['networkAuthId'] . '\', \'Blog2Social Network\'); return false;" class="b2s-network-auth-btn b2s-network-auth-update-btn add-padding-left" data-network-auth-id="' . $v['networkAuthId'] . '"><span class="glyphicon glyphicon-refresh glyphicon-grey"></span></a>';
163
+ }
164
+ $html .= '<a class="b2s-network-item-auth-list-btn-delete" data-network-auth-id="' . $v['networkAuthId'] . '" href="#"><span class="glyphicon glyphicon-trash glyphicon-grey"></span></a>';
165
$html .= ($v['expiredDate'] != '0000-00-00' && $v['expiredDate'] <= date('Y-m-d')) ? ' <span class="label label-danger b2s-network-auth-update-label" data-network-auth-id="' . $v['networkAuthId'] . '">' . __('Authorization is interrupted since', 'blog2social') . ' ' . ($sprache == 'en' ? $v['expiredDate'] : date('d.m.Y', strtotime($v['expiredDate']))) . '</span>' : '';
166
167
if ($v['notAllow'] !== false) {
includes/B2S/Post/Item.php CHANGED
@@ -283,7 +283,7 @@ class B2S_Post_Item {
283
$addLeftJoinWhere = ((int) $this->searchUserAuthId != 0) ? ' details.`network_auth_id` =' . $this->searchUserAuthId . ' AND ' : '';
284
$where = ($this->type == 'publish') ? " (posts.`sched_date`= '0000-00-00 00:00:00' OR posts.`sched_type` = 3) " : " posts.`sched_type` != 3 AND posts.`publish_date` = '0000-00-00 00:00:00'";
285
$sqlPostsTotal = "SELECT COUNT(posts.`post_id`) FROM `b2s_posts` posts $addLeftJoin WHERE $addLeftJoinWhere $where $addNotAdmin $addSearchShowByDate AND posts.`hide` = 0 AND posts.`post_id` = " . $post_id;
286
- return $wpdb->get_var($sqlPostsTotal);
287
}
288
return 0;
289
}
@@ -418,12 +418,12 @@ class B2S_Post_Item {
418
return false;
419
}
420
421
- public function getSchedPostDataHtml($post_id = 0, $showByDate = '',$userAuthId=0) {
422
if ($post_id > 0) {
423
global $wpdb;
424
$addNotAdminPosts = (B2S_PLUGIN_ADMIN == false) ? $wpdb->prepare(' AND `b2s_posts`.`blog_user_id` = %d', B2S_PLUGIN_BLOG_USER_ID) : '';
425
$addSearchShowByDate = (!empty($showByDate)) ? " AND DATE_FORMAT(`b2s_posts`.`sched_date`,'%%Y-%%m-%%d') = '" . $showByDate . "' " : '';
426
- $addSearchUserAuthId = ($userAuthId != 0) ? " AND `b2s_posts_network_details`.`network_auth_id` =".$userAuthId." " : '';
427
$sqlData = $wpdb->prepare("SELECT `b2s_posts`.`id`,`blog_user_id`,`v2_id`, `sched_date`,`b2s_posts_network_details`.`network_id`,`b2s_posts_network_details`.`network_type`,`b2s_posts_network_details`.`network_display_name` FROM `b2s_posts` LEFT JOIN `b2s_posts_network_details` ON `b2s_posts`.`network_details_id` = `b2s_posts_network_details`.`id` WHERE `b2s_posts`.`hide` = 0 AND `b2s_posts`.`sched_type` != 3 AND `b2s_posts`.`publish_date` = '0000-00-00 00:00:00' $addNotAdminPosts $addSearchShowByDate $addSearchUserAuthId AND `b2s_posts`.`post_id` = %d ORDER BY `b2s_posts`.`sched_date` ASC ", $post_id);
428
$result = $wpdb->get_results($sqlData);
429
if (!empty($result) && is_array($result)) {
@@ -444,8 +444,7 @@ class B2S_Post_Item {
444
<p class="info">' . $networkType[$var->network_type] . (!empty($var->network_display_name) ? (': ' . $var->network_display_name) : '' ) . ' | ' . __('scheduled by', 'blog2social') . ' <a href="' . get_author_posts_url($var->blog_user_id) . '">' . (isset($userInfo['nickname'][0]) ? $userInfo['nickname'][0] : '-') . '</a> <span class="b2s-post-sched-area-sched-time" data-post-id="' . $var->id . '">' . B2S_Util::getCustomDateFormat($var->sched_date, substr(B2S_LANGUAGE, 0, 2)) . '</span></p>
445
<p class="info">';
446
447
- $content .= (B2S_PLUGIN_USER_VERSION > 0) ? '<a href="#" class="b2s-post-sched-area-drop-btn" data-post-id="' . $var->id . '">' : '<a href="#" data-toggle="modal" data-title="' . __('You want to delete an scheduled post entry?', 'blog2social') . '" data-target="#b2sPreFeatureModal" >';
448
- $content .= __('delete scheduling', 'blog2social') . '</a> ';
449
450
if ((int) $var->v2_id == 0) {
451
$content .= '|';
@@ -457,9 +456,9 @@ class B2S_Post_Item {
457
</div>
458
</li>';
459
}
460
- $content .='<li class="list-group-item"><label class="checkbox-inline checkbox-all-label-btn"><span class="glyphicon glyphicon glyphicon-trash "></span> ';
461
- $content .= (B2S_PLUGIN_USER_VERSION > 0) ? '<a class="checkbox-post-sched-all-btn" data-blog-post-id="' . $post_id . '" href="#">' : '<a href="#" data-toggle="modal" data-title="' . __('You want to delete an scheduled post entry?', 'blog2social') . '" data-target="#b2sPreFeatureModal" >';
462
- $content .= __('delete scheduling', 'blog2social') . '</a></label></li>';
463
$content .= '</ul></div></div>';
464
return $content;
465
}
283
$addLeftJoinWhere = ((int) $this->searchUserAuthId != 0) ? ' details.`network_auth_id` =' . $this->searchUserAuthId . ' AND ' : '';
284
$where = ($this->type == 'publish') ? " (posts.`sched_date`= '0000-00-00 00:00:00' OR posts.`sched_type` = 3) " : " posts.`sched_type` != 3 AND posts.`publish_date` = '0000-00-00 00:00:00'";
285
$sqlPostsTotal = "SELECT COUNT(posts.`post_id`) FROM `b2s_posts` posts $addLeftJoin WHERE $addLeftJoinWhere $where $addNotAdmin $addSearchShowByDate AND posts.`hide` = 0 AND posts.`post_id` = " . $post_id;
286
+ return $wpdb->get_var($sqlPostsTotal);
287
}
288
return 0;
289
}
418
return false;
419
}
420
421
+ public function getSchedPostDataHtml($post_id = 0, $showByDate = '', $userAuthId = 0) {
422
if ($post_id > 0) {
423
global $wpdb;
424
$addNotAdminPosts = (B2S_PLUGIN_ADMIN == false) ? $wpdb->prepare(' AND `b2s_posts`.`blog_user_id` = %d', B2S_PLUGIN_BLOG_USER_ID) : '';
425
$addSearchShowByDate = (!empty($showByDate)) ? " AND DATE_FORMAT(`b2s_posts`.`sched_date`,'%%Y-%%m-%%d') = '" . $showByDate . "' " : '';
426
+ $addSearchUserAuthId = ($userAuthId != 0) ? " AND `b2s_posts_network_details`.`network_auth_id` =" . $userAuthId . " " : '';
427
$sqlData = $wpdb->prepare("SELECT `b2s_posts`.`id`,`blog_user_id`,`v2_id`, `sched_date`,`b2s_posts_network_details`.`network_id`,`b2s_posts_network_details`.`network_type`,`b2s_posts_network_details`.`network_display_name` FROM `b2s_posts` LEFT JOIN `b2s_posts_network_details` ON `b2s_posts`.`network_details_id` = `b2s_posts_network_details`.`id` WHERE `b2s_posts`.`hide` = 0 AND `b2s_posts`.`sched_type` != 3 AND `b2s_posts`.`publish_date` = '0000-00-00 00:00:00' $addNotAdminPosts $addSearchShowByDate $addSearchUserAuthId AND `b2s_posts`.`post_id` = %d ORDER BY `b2s_posts`.`sched_date` ASC ", $post_id);
428
$result = $wpdb->get_results($sqlData);
429
if (!empty($result) && is_array($result)) {
444
<p class="info">' . $networkType[$var->network_type] . (!empty($var->network_display_name) ? (': ' . $var->network_display_name) : '' ) . ' | ' . __('scheduled by', 'blog2social') . ' <a href="' . get_author_posts_url($var->blog_user_id) . '">' . (isset($userInfo['nickname'][0]) ? $userInfo['nickname'][0] : '-') . '</a> <span class="b2s-post-sched-area-sched-time" data-post-id="' . $var->id . '">' . B2S_Util::getCustomDateFormat($var->sched_date, substr(B2S_LANGUAGE, 0, 2)) . '</span></p>
445
<p class="info">';
446
447
+ $content .= '<a href="#" class="b2s-post-sched-area-drop-btn" data-post-id="' . $var->id . '"> ' . __('delete scheduling', 'blog2social') . '</a> ';
448
449
if ((int) $var->v2_id == 0) {
450
$content .= '|';
456
</div>
457
</li>';
458
}
459
+ $content .= '<li class="list-group-item"><label class="checkbox-inline checkbox-all-label-btn"><span class="glyphicon glyphicon glyphicon-trash "></span> ';
460
+ $content .= '<a class="checkbox-post-sched-all-btn" data-blog-post-id="' . $post_id . '" href="#"> ' . __('delete scheduling', 'blog2social');
461
+ $content .= '</a></label></li>';
462
$content .= '</ul></div></div>';
463
return $content;
464
}
includes/B2S/Settings/Item.php CHANGED
@@ -7,12 +7,14 @@ class B2S_Settings_Item {
7
private $settings = array();
8
private $lang;
9
private $allowPage;
10
private $allowGroup;
11
private $timeInfo;
12
13
public function __construct() {
14
$this->getSettings();
15
$this->getSchedDataByUser();
16
$this->lang = substr(B2S_LANGUAGE, 0, 2);
17
$this->allowPage = unserialize(B2S_PLUGIN_NETWORK_ALLOW_PAGE);
18
$this->allowGroup = unserialize(B2S_PLUGIN_NETWORK_ALLOW_GROUP);
@@ -52,13 +54,11 @@ class B2S_Settings_Item {
52
public function getGeneralSettingsHtml() {
53
54
$isCheckedAllowShortcode = (get_option('B2S_PLUGIN_USER_ALLOW_SHORTCODE_' . B2S_PLUGIN_BLOG_USER_ID) !== false) ? 1 : 0;
55
- $options = new B2S_Options(B2S_PLUGIN_BLOG_USER_ID);
56
- $optionAutoPost = $options->_getOption('auto_post');
57
- $optionUserTimeZone = $options->_getOption('user_time_zone');
58
$userTimeZone = ($optionUserTimeZone !== false) ? $optionUserTimeZone : get_option('timezone_string');
59
$userTimeZoneOffset = (empty($userTimeZone)) ? get_option('gmt_offset') : B2S_Util::getOffsetToUtcByTimeZone($userTimeZone);
60
$userInfo = get_user_meta(B2S_PLUGIN_BLOG_USER_ID);
61
-
62
$isChecked = (isset($this->settings->short_url) && (int) $this->settings->short_url == 0) ? 1 : 0;
63
64
$content = '';
@@ -71,7 +71,7 @@ class B2S_Settings_Item {
71
$content .= '</select>';
72
$content .= '<a href="#" data-toggle="modal" data-target="#b2sInfoTimeZoneModal" class="btn btn-link btn-lg hidden-xs"><span class="glyphicon glyphicon-info-sign glyphicon-success"></span></a>';
73
$content .='</div>';
74
- $content .='<br><div class="b2s-settings-time-zone-info">' . __('Timezone for Scheduling', 'blog2social') . ' ('.__('User', 'blog2social').': '.(isset($userInfo['nickname'][0]) ? $userInfo['nickname'][0] : '-').') <code id="b2s-user-time">' . B2S_Util::getLocalDate($userTimeZoneOffset, substr(B2S_LANGUAGE, 0, 2)) . '</code></span></div>';
75
$content .='</div>';
76
$content .='<div class="clearfix"></div>';
77
$content .= '<br>';
@@ -122,71 +122,125 @@ class B2S_Settings_Item {
122
return $content;
123
}
124
125
- public function getNetworkSettingsHtml($view = 'general') { //view=ship (Modal)
126
- $content ='';
127
- if ($view != 'ship') {
128
- $content .= '<h4>' . __('Facebook post format', 'blog2social') . ' <a href="#" data-toggle="modal" data-target="#b2sInfoFormatModal" class="btn btn-link btn-lg del-padding-left"><span class="glyphicon glyphicon-info-sign glyphicon-success"></span></a></h4>';
129
}
130
131
- $content .='<div class="b2s-user-network-settings-post-format-area col-md-12" ' . (($view != 'ship') ? '' : 'data-network-id="1" data-network-title="Facebook" style="display:none;"') . '>';
132
133
- $content .='<div class="col-md-' . (($view != 'ship') ? 4 : 6) . ' col-xs-12">';
134
- $content .= '<b>1) ' . __('Link Post', 'blog2social') . ' <span class="glyphicon glyphicon-link b2s-color-green"></span></b><br><br>';
135
- $content .= '<label><input type="radio" name="b2s-user-network-settings-post-format-1" class="b2s-user-network-settings-post-format ' . (((isset($this->settings->network_post_format_1) && (int) $this->settings->network_post_format_1 == 0) || !isset($this->settings->network_post_format_1)) ? 'b2s-settings-checked' : '') . '" data-network-id="1" value="0"/><img class="img-responsive b2s-display-inline" src="' . plugins_url('/assets/images/settings/b2s-post-format-1-1-' . (($this->lang == 'de') ? $this->lang : 'en') . '.png', B2S_PLUGIN_FILE) . '">';
136
- $content .='</label>';
137
- if ($view == 'ship') {
138
- $content .='<br><br>';
139
- $content .= __('The link post format displays posts title, link address and the first one or two sentences of the post. The networks scan this information from your META or OpenGraph. Link posts display the post image, you selected in your WordPress. In case, you have not selected a post image, some networks display the first image detected on your page. The image links to your blog post.', 'blog2social');
140
- }
141
- $content .='</div>';
142
143
- $content .='<div class="col-md-' . (($view != 'ship') ? 4 : 6) . ' col-xs-12">';
144
- $content .= '<b>2) ' . __('Photo Post', 'blog2social') . ' <span class="glyphicon glyphicon-picture b2s-color-green"></span></b><br><br>';
145
- $content .= '<label><input type="radio" name="b2s-user-network-settings-post-format-1" class="b2s-user-network-settings-post-format ' . ((isset($this->settings->network_post_format_1) && (int) $this->settings->network_post_format_1 == 1) ? 'b2s-settings-checked' : '') . '" data-network-id="1" value="1" /><img class="img-responsive b2s-display-inline" src="' . plugins_url('/assets/images/settings/b2s-post-format-1-2-' . (($this->lang == 'de') ? $this->lang : 'en') . '.png', B2S_PLUGIN_FILE) . '">';
146
- $content .='</label>';
147
- if ($view == 'ship') {
148
- $content .='<br><br>';
149
- $content .= __('A photo or image post displays the selected image in the one-page preview of Blog2Social and your comment above the image. The image links to the image view on your image gallery in the respective network. Blog2Social adds the link to your post in your comment. The main benefit of photo posts is that your image is uploaded to your personal image albums or gallery. In Facebook you can edit the album’s name with a description of your choice.', 'blog2social');
150
}
151
- $content .='</div>';
152
- $content .='</div>';
153
154
- if ($view != 'ship') {
155
- $content .='<br>';
156
- $content .= '<h4>' . __('Twitter post format', 'blog2social') . ' <a href="#" data-toggle="modal" data-target="#b2sInfoFormatModal" class="btn btn-link btn-lg del-padding-left"><span class="glyphicon glyphicon-info-sign glyphicon-success"></span></a></h4>';
157
}
158
159
- $content .='<div class="b2s-user-network-settings-post-format-area col-md-12" ' . (($view != 'ship') ? '' : 'data-network-id="2" data-network-title="Twitter" style="display:none;"') . '>';
160
161
- $content .='<div class="col-md-' . (($view != 'ship') ? 4 : 6) . ' col-xs-12">';
162
$content .= '<b>1) ' . __('Link Post', 'blog2social') . ' <span class="glyphicon glyphicon-link b2s-color-green"></span></b><br><br>';
163
- $content .= '<label><input type="radio" name="b2s-user-network-settings-post-format-2" class="b2s-user-network-settings-post-format ' . (((isset($this->settings->network_post_format_2) && (int) $this->settings->network_post_format_2 == 0) || !isset($this->settings->network_post_format_2)) ? 'b2s-settings-checked' : '') . '" data-network-id="2" value="0"/><img class="img-responsive b2s-display-inline" src="' . plugins_url('/assets/images/settings/b2s-post-format-2-1-' . (($this->lang == 'de') ? $this->lang : 'en') . '.png', B2S_PLUGIN_FILE) . '">';
164
- $content .='</label>';
165
- if ($view == 'ship') {
166
- $content .='<br><br>';
167
- $content .= __('The link post format displays posts title, link address and the first one or two sentences of the post. The networks scan this information from your META or OpenGraph. Link posts display the post image, you selected in your WordPress. In case, you have not selected a post image, some networks display the first image detected on your page. The image links to your blog post.', 'blog2social');
168
}
169
$content .='</div>';
170
171
- $content .='<div class="col-md-' . (($view != 'ship') ? 4 : 6) . ' col-xs-12">';
172
$content .= '<b>2) ' . __('Photo Post', 'blog2social') . ' <span class="glyphicon glyphicon-picture b2s-color-green"></span></b><br><br>';
173
- $content .= '<label><input type="radio" name="b2s-user-network-settings-post-format-2" class="b2s-user-network-settings-post-format ' . ((isset($this->settings->network_post_format_2) && (int) $this->settings->network_post_format_2 == 1) ? 'b2s-settings-checked' : '') . '" data-network-id="2" value="1" /><img class="img-responsive b2s-display-inline" src="' . plugins_url('/assets/images/settings/b2s-post-format-2-2-' . (($this->lang == 'de') ? $this->lang : 'en') . '.png', B2S_PLUGIN_FILE) . '">';
174
- $content .='</label>';
175
- if ($view == 'ship') {
176
- $content .='<br><br>';
177
- $content .= __('A photo or image post displays the selected image in the one-page preview of Blog2Social and your comment above the image. The image links to the image view on your image gallery in the respective network. Blog2Social adds the link to your post in your comment. The main benefit of photo posts is that your image is uploaded to your personal image albums or gallery. In Facebook you can edit the album’s name with a description of your choice.', 'blog2social');
178
}
179
$content .='</div>';
180
$content .='</div>';
181
-
182
return $content;
183
}
184
185
//view=ship
186
public function setNetworkSettingsHtml() {
187
- $content = "<input type='hidden' class='b2sNetworkSettingsPostFormatCurrent' data-network-id='1' value='" . (int) $this->settings->network_post_format_1 . "' />";
188
- $content .="<input type='hidden' class='b2sNetworkSettingsPostFormatCurrent' data-network-id='2' value='" . (int) $this->settings->network_post_format_2 . "' />";
189
- $content .="<input type='hidden' class='b2sNetworkSettingsPostFormatText' value='" . json_encode(array(__('Link Post', 'blog2social'), __('Photo Post', 'blog2social'))) . "'/>";
190
return $content;
191
}
192
7
private $settings = array();
8
private $lang;
9
private $allowPage;
10
+ private $options;
11
private $allowGroup;
12
private $timeInfo;
13
14
public function __construct() {
15
$this->getSettings();
16
$this->getSchedDataByUser();
17
+ $this->options = new B2S_Options(B2S_PLUGIN_BLOG_USER_ID);
18
$this->lang = substr(B2S_LANGUAGE, 0, 2);
19
$this->allowPage = unserialize(B2S_PLUGIN_NETWORK_ALLOW_PAGE);
20
$this->allowGroup = unserialize(B2S_PLUGIN_NETWORK_ALLOW_GROUP);
54
public function getGeneralSettingsHtml() {
55
56
$isCheckedAllowShortcode = (get_option('B2S_PLUGIN_USER_ALLOW_SHORTCODE_' . B2S_PLUGIN_BLOG_USER_ID) !== false) ? 1 : 0;
57
+ $optionAutoPost = $this->options->_getOption('auto_post');
58
+ $optionUserTimeZone = $this->options->_getOption('user_time_zone');
59
$userTimeZone = ($optionUserTimeZone !== false) ? $optionUserTimeZone : get_option('timezone_string');
60
$userTimeZoneOffset = (empty($userTimeZone)) ? get_option('gmt_offset') : B2S_Util::getOffsetToUtcByTimeZone($userTimeZone);
61
$userInfo = get_user_meta(B2S_PLUGIN_BLOG_USER_ID);
62
$isChecked = (isset($this->settings->short_url) && (int) $this->settings->short_url == 0) ? 1 : 0;
63
64
$content = '';
71
$content .= '</select>';
72
$content .= '<a href="#" data-toggle="modal" data-target="#b2sInfoTimeZoneModal" class="btn btn-link btn-lg hidden-xs"><span class="glyphicon glyphicon-info-sign glyphicon-success"></span></a>';
73
$content .='</div>';
74
+ $content .='<br><div class="b2s-settings-time-zone-info">' . __('Timezone for Scheduling', 'blog2social') . ' (' . __('User', 'blog2social') . ': ' . (isset($userInfo['nickname'][0]) ? $userInfo['nickname'][0] : '-') . ') <code id="b2s-user-time">' . B2S_Util::getLocalDate($userTimeZoneOffset, substr(B2S_LANGUAGE, 0, 2)) . '</code></span></div>';
75
$content .='</div>';
76
$content .='<div class="clearfix"></div>';
77
$content .= '<br>';
122
return $content;
123
}
124
125
+ public function getNetworkSettingsHtml() {
126
+ $optionPostFormat = $this->options->_getOption('post_format');
127
+ $content = '';
128
+
129
+ if (B2S_PLUGIN_USER_VERSION < 2) {
130
+ $content .='<div class="alert alert-default">';
131
+ $content .= '<b>' . __('Did you know?', 'blog2social') . '</b><br>';
132
+ $content .= __('Beginning with Premium Pro, you can change the custom post format photo post or link post for each individual social media post and channel (profile, page, group), deviate from the default settings.', 'blog2social') . ' <a target="_blank" href="' . B2S_Tools::getSupportLink('affiliate') . '">' . __('Upgrade to Premium Pro now.', 'blog2social') . '</a>';
133
+ $content .='<hr></div>';
134
}
135
136
+ foreach (array(1, 2) as $n => $networkId) { //FB,TW
137
+ $type = ($networkId == 1) ? array(0, 1, 2) : array(0);
138
+ foreach ($type as $t => $typeId) { //Profile,Page,Group
139
+ $networkName = ($networkId == 1) ? 'Facebook' : 'Twitter';
140
141
+ $linkPost = ((isset($optionPostFormat[$networkId]) && is_array($optionPostFormat[$networkId]) && ((isset($optionPostFormat[$networkId]['all']) && (int) $optionPostFormat[$networkId]['all'] == 0) || (isset($optionPostFormat[$networkId][$typeId]) && (int) $optionPostFormat[$networkId][$typeId] == 0)) ) ? 'b2s-settings-checked' : (!isset($optionPostFormat[$networkId]) ? 'b2s-settings-checked' : '' ));
142
+ $photoPost = empty($linkPost) ? 'b2s-settings-checked' : '';
143
144
+ $content .='<div class="b2s-user-network-settings-post-format-area col-md-12" data-network-type="' . $typeId . '" data-network-id="' . $networkId . '" data-network-title="' . $networkName . '" style="display:none;" >';
145
+ $content .='<div class="col-md-6 col-xs-12">';
146
+ $content .= '<b>1) ' . __('Link Post', 'blog2social') . ' <span class="glyphicon glyphicon-link b2s-color-green"></span></b><br><br>';
147
+ $content .= '<label><input type="radio" name="b2s-user-network-settings-post-format-' . $networkId . '" class="b2s-user-network-settings-post-format ' . $linkPost . '" data-network-type="' . $typeId . '" data-network-id="' . $networkId . '" value="0"/><img class="img-responsive b2s-display-inline" src="' . plugins_url('/assets/images/settings/b2s-post-format-' . $networkId . '-1-' . (($this->lang == 'de') ? $this->lang : 'en') . '.png', B2S_PLUGIN_FILE) . '">';
148
+ $content .='</label>';
149
+ $content .='<br><br>';
150
+ $content .= __('The link post format displays posts title, link address and the first one or two sentences of the post. The networks scan this information from your META or OpenGraph. Link posts display the post image, you selected in your WordPress. In case, you have not selected a post image, some networks display the first image detected on your page. The image links to your blog post.', 'blog2social');
151
+ $content .='</div>';
152
+ $content .='<div class="col-md-6 col-xs-12">';
153
+ $content .= '<b>2) ' . __('Photo Post', 'blog2social') . ' <span class="glyphicon glyphicon-picture b2s-color-green"></span></b><br><br>';
154
+ $content .= '<label><input type="radio" name="b2s-user-network-settings-post-format-' . $networkId . '" class="b2s-user-network-settings-post-format ' . $photoPost . '" data-network-type="' . $typeId . '" data-network-id="' . $networkId . '" value="1" /><img class="img-responsive b2s-display-inline" src="' . plugins_url('/assets/images/settings/b2s-post-format-' . $networkId . '-2-' . (($this->lang == 'de') ? $this->lang : 'en') . '.png', B2S_PLUGIN_FILE) . '">';
155
+ $content .='</label>';
156
+ $content .='<br><br>';
157
+ $content .= __('A photo or image post displays the selected image in the one-page preview of Blog2Social and your comment above the image. The image links to the image view on your image gallery in the respective network. Blog2Social adds the link to your post in your comment. The main benefit of photo posts is that your image is uploaded to your personal image albums or gallery. In Facebook you can edit the album’s name with a description of your choice.', 'blog2social');
158
+ $content .='</div>';
159
+ $content .='</div>';
160
+ }
161
}
162
+ return $content;
163
+ }
164
+
165
+ public function getNetworkSettingsPostFormatHtml($networkId = 1) {
166
+
167
+ $optionPostFormat = $this->options->_getOption('post_format');
168
169
+ //Take old settings
170
+ if (!isset($optionPostFormat[$networkId])) {
171
+ $oldPostFormatSettings = ($networkId == 1) ? (isset($this->settings->network_post_format_1) ? (int) $this->settings->network_post_format_1 : 0) : (isset($this->settings->network_post_format_2) ? (int) $this->settings->network_post_format_2 : 1); // Twitter Default Photopost
172
+ $post_format[$networkId] = array();
173
+ $post_format[$networkId] = array('all' => $oldPostFormatSettings);
174
+ $optionPostFormat = $post_format;
175
+ $this->options->_setOption('post_format', $post_format);
176
}
177
178
+ $premiumInfoType = (B2S_PLUGIN_USER_VERSION < 2) ? '<div class="col-lg-3 col-md-4 col-xs-5 del-padding-left del-padding-right"><span class="label label-success"><a target="_blank" class="btn-label-premium" href="' . B2S_Tools::getSupportLink('affiliate') . '">PREMIUM</a></span></div>' : '';
179
+ $premiumInfoAll = (B2S_PLUGIN_USER_VERSION == 0) ? '<div class="col-lg-3 col-md-4 col-xs-5 del-padding-left del-padding-right"><span class="label label-success"><a target="_blank" class="btn-label-premium" href="' . B2S_Tools::getSupportLink('affiliate') . '">PREMIUM</a></span></div>' : '';
180
+ $disabledInputType = (B2S_PLUGIN_USER_VERSION < 2) ? 'disabled' : '';
181
+ $disabledInputAll = (B2S_PLUGIN_USER_VERSION == 0) ? 'disabled' : '';
182
+ $disabledTextType = (B2S_PLUGIN_USER_VERSION < 2) ? 'font-gray' : '';
183
+ $disabledTextAll = (B2S_PLUGIN_USER_VERSION == 0) ? 'font-gray' : '';
184
+ $textAll = ($networkId == 1) ? __('All', 'blog2social') : __('Profile', 'blog2social');
185
186
+ $content = '';
187
+ $content .='<div class="col-md-6 col-xs-12">';
188
$content .= '<b>1) ' . __('Link Post', 'blog2social') . ' <span class="glyphicon glyphicon-link b2s-color-green"></span></b><br><br>';
189
+ $content .= '<img class="img-responsive b2s-display-inline" src="' . plugins_url('/assets/images/settings/b2s-post-format-' . $networkId . '-1-' . (($this->lang == 'de') ? $this->lang : 'en') . '.png', B2S_PLUGIN_FILE) . '">';
190
+ $content .= '<br><br>';
191
+ $content .='<div class="padding-left-15">';
192
+
193
+ if ((B2S_PLUGIN_USER_VERSION < 2 && $networkId == 1) || $networkId == 2) {
194
+ $content .= '<div class="col-lg-3 col-md-4 col-xs-5 del-padding-left del-padding-right b2s-input-margin-bottom-5"><input type="radio" ' . $disabledInputAll . ' id="all-' . $networkId . '-1" ' . ( (isset($optionPostFormat[$networkId]) && is_array($optionPostFormat[$networkId]) && isset($optionPostFormat[$networkId]['all']) && (int) $optionPostFormat[$networkId]['all'] == 0) ? 'checked' : ((!isset($optionPostFormat[$networkId])) ? 'checked' : '' )) . ' name="all" value="0"><label class="' . $disabledTextAll . '" for="all-' . $networkId . '-1">' . $textAll . '</label></div> ' . $premiumInfoAll . '<div class="clearfix"></div>';
195
+ }
196
+ if ($networkId == 1) {
197
+ $content .= '<div class="col-lg-3 col-md-4 col-xs-5 del-padding-left del-padding-right"><input type="radio" ' . $disabledInputType . ' id="type[0]-' . $networkId . '-1" ' . ((isset($optionPostFormat[$networkId][0]) && (int) $optionPostFormat[$networkId][0] == 0) ? 'checked' : ( isset($optionPostFormat[$networkId]['all']) && (int) $optionPostFormat[$networkId]['all'] == 0 && !isset($optionPostFormat[$networkId][0])) ? 'checked' : '') . ' name="type-format[0]" value="0"><label class="' . $disabledTextType . '" for="type[0]-' . $networkId . '-1">' . __('Profile', 'blog2social') . '</label></div> ' . $premiumInfoType . '<div class="clearfix"></div>';
198
+ $content .= '<div class="col-lg-3 col-md-4 col-xs-5 del-padding-left del-padding-right"><input type="radio" ' . $disabledInputType . ' id="type[1]-' . $networkId . '-1" ' . ( (isset($optionPostFormat[$networkId][1]) && (int) $optionPostFormat[$networkId][1] == 0) ? 'checked' : ( isset($optionPostFormat[$networkId]['all']) && (int) $optionPostFormat[$networkId]['all'] == 0 && !isset($optionPostFormat[$networkId][0])) ? 'checked' : '') . ' name="type-format[1]" value="0"><label class="' . $disabledTextType . '" for="type[1]-' . $networkId . '-1">' . __('Page', 'blog2social') . '</label></div> ' . $premiumInfoType . '<div class="clearfix"></div>';
199
+ $content .= '<div class="col-lg-3 col-md-4 col-xs-5 del-padding-left del-padding-right"><input type="radio" ' . $disabledInputType . ' id="type[2]-' . $networkId . '-1" ' . ( (isset($optionPostFormat[$networkId][2]) && (int) $optionPostFormat[$networkId][2] == 0) ? 'checked' : ( isset($optionPostFormat[$networkId]['all']) && (int) $optionPostFormat[$networkId]['all'] == 0 && !isset($optionPostFormat[$networkId][0])) ? 'checked' : '') . ' name="type-format[2]" value="0"><label class="' . $disabledTextType . '" for="type[2]-' . $networkId . '-1">' . __('Group', 'blog2social') . '</label></div> ' . $premiumInfoType . '<div class="clearfix"></div>';
200
}
201
$content .='</div>';
202
+ $content .='</div>';
203
204
+ $content .='<div class="col-md-6 col-xs-12">';
205
$content .= '<b>2) ' . __('Photo Post', 'blog2social') . ' <span class="glyphicon glyphicon-picture b2s-color-green"></span></b><br><br>';
206
+ $content .= '<img class="img-responsive b2s-display-inline" src="' . plugins_url('/assets/images/settings/b2s-post-format-' . $networkId . '-2-' . (($this->lang == 'de') ? $this->lang : 'en') . '.png', B2S_PLUGIN_FILE) . '">';
207
+ $content .= '<br><br>';
208
+ $content .='<div class="padding-left-15">';
209
+
210
+ if ((B2S_PLUGIN_USER_VERSION < 2 && $networkId == 1) || $networkId == 2) {
211
+ $content .= '<div class="col-lg-3 col-md-4 col-xs-5 del-padding-left del-padding-right b2s-input-margin-bottom-5"><input type="radio" ' . $disabledInputAll . ' id="all-' . $networkId . '-2" ' . ((isset($optionPostFormat[$networkId]) && is_array($optionPostFormat[$networkId]) && isset($optionPostFormat[$networkId]['all']) && (int) $optionPostFormat[$networkId]['all'] == 1) ? 'checked' : '') . ' name="all" value="1"><label class="' . $disabledTextAll . '" for="all-' . $networkId . '-2">' . $textAll . '</label></div> ' . $premiumInfoAll . '<div class="clearfix"></div>';
212
+ }
213
+ if ($networkId == 1) {
214
+ $content .= '<div class="col-lg-3 col-md-4 col-xs-5 del-padding-left del-padding-right"><input type="radio" ' . $disabledInputType . ' id="type[0]-' . $networkId . '-2" ' . ( (isset($optionPostFormat[$networkId][0]) && (int) $optionPostFormat[$networkId][0] == 1) ? 'checked' : ( isset($optionPostFormat[$networkId]['all']) && (int) $optionPostFormat[$networkId]['all'] == 1 && !isset($optionPostFormat[$networkId][0])) ? 'checked' : '') . ' name="type-format[0]" value="1"><label class="' . $disabledTextType . '" for="type[0]-' . $networkId . '-2">' . __('Profile', 'blog2social') . '</label></div> ' . $premiumInfoType . '<div class="clearfix"></div>';
215
+ $content .= '<div class="col-lg-3 col-md-4 col-xs-5 del-padding-left del-padding-right"><input type="radio" ' . $disabledInputType . ' id="type[1]-' . $networkId . '-2" ' . ( (isset($optionPostFormat[$networkId][1]) && (int) $optionPostFormat[$networkId][1] == 1) ? 'checked' : ( isset($optionPostFormat[$networkId]['all']) && (int) $optionPostFormat[$networkId]['all'] == 1 && !isset($optionPostFormat[$networkId][1])) ? 'checked' : '') . ' name="type-format[1]" value="1"><label class="' . $disabledTextType . '" for="type[1]-' . $networkId . '-2">' . __('Page', 'blog2social') . '</label></div> ' . $premiumInfoType . '<div class="clearfix"></div>';
216
+ $content .= '<div class="col-lg-3 col-md-4 col-xs-5 del-padding-left del-padding-right"><input type="radio" ' . $disabledInputType . ' id="type[2]-' . $networkId . '-2" ' . ( (isset($optionPostFormat[$networkId][2]) && (int) $optionPostFormat[$networkId][2] == 1) ? 'checked' : ( isset($optionPostFormat[$networkId]['all']) && (int) $optionPostFormat[$networkId]['all'] == 1 && !isset($optionPostFormat[$networkId][1])) ? 'checked' : '') . ' name="type-format[2]" value="1"><label class="' . $disabledTextType . '" for="type[2]-' . $networkId . '-2">' . __('Group', 'blog2social') . '</label></div> ' . $premiumInfoType . '<div class="clearfix"></div>';
217
}
218
$content .='</div>';
219
$content .='</div>';
220
return $content;
221
}
222
223
//view=ship
224
public function setNetworkSettingsHtml() {
225
+ $optionPostFormat = $this->options->_getOption('post_format');
226
+
227
+ $content = "<input type='hidden' class='b2sNetworkSettingsPostFormatText' value='" . json_encode(array(__('Link Post', 'blog2social'), __('Photo Post', 'blog2social'))) . "'/>";
228
+ foreach (array(1, 2) as $n => $networkId) { //FB,TW
229
+ //Take old settings
230
+ if (!isset($optionPostFormat[$networkId])) {
231
+ $oldPostFormatSettings = ($networkId == 1) ? (isset($this->settings->network_post_format_1) ? (int) $this->settings->network_post_format_1 : 0) : (isset($this->settings->network_post_format_2) ? (int) $this->settings->network_post_format_2 : 1); // Twitter Default Photopost
232
+ $post_format[$networkId] = array();
233
+ $post_format[$networkId] = array('all' => $oldPostFormatSettings);
234
+ $optionPostFormat = $post_format;
235
+ $this->options->_setOption('post_format', $post_format);
236
+ }
237
+
238
+ $type = ($networkId == 1) ? array(0, 1, 2) : array(0);
239
+ foreach ($type as $t => $typeId) { //Profile,Page,Group
240
+ $value = ((isset($optionPostFormat[$networkId]) && is_array($optionPostFormat[$networkId]) && ((isset($optionPostFormat[$networkId]['all']) && (int) $optionPostFormat[$networkId]['all'] == 0) || (isset($optionPostFormat[$networkId][$typeId]) && (int) $optionPostFormat[$networkId][$typeId] == 0)) ) ? 0 : (!isset($optionPostFormat[$networkId]) ? 0 : 1 ));
241
+ $content .= "<input type='hidden' class='b2sNetworkSettingsPostFormatCurrent' data-network-id='" . $networkId . "' data-network-type='" . $typeId . "' value='" . (int) $value . "' />";
242
+ }
243
+ }
244
return $content;
245
}
246
includes/B2S/Ship/Item.php CHANGED
@@ -24,8 +24,11 @@ class B2S_Ship_Item {
24
private $showGroups = array(8, 15);
25
private $hideGroupName = array(8);
26
private $setShortTextProfile = array(1 => 239, 2 => 116, 3 => 239, 6 => 300, 8 => 239, 10 => 442, 12 => 240, 9 => 200);
27
private $setShortTextPage = array(1 => 239, 3 => 239, 8 => 1200, 10 => 442);
28
private $setShortTextGroup = array(1 => 239, 8 => 239, 10 => 442);
29
private $allowHashTags = array(6, 10, 12);
30
private $limitCharacterProfile = array(2 => 140, 3 => 600, 6 => 500, 8 => 420, 9 => 250, 15 => 300, 12 => 2000);
31
private $showImageArea = array(6, 7, 10, 12);
@@ -83,7 +86,7 @@ class B2S_Ship_Item {
83
//ShortText
84
if (isset($this->setShortTextProfile[$data->networkId]) && (int) $this->setShortTextProfile[$data->networkId] > 0) {
85
$preContent = ($data->networkId == 2) ? B2S_Util::getTitleByLanguage($this->postData->post_title, $this->userLang) : B2S_Util::prepareContent($this->postId, $this->postData->post_content, $this->postUrl, false, (in_array($data->networkId, $this->allowNoEmoji) ? false : true), $this->userLang);
86
- $message = B2S_Util::getExcerpt($preContent, (int) $this->setShortTextProfile[$data->networkId]);
87
} else {
88
$message = (in_array($data->networkId, $this->allowTitleProfile) ? (in_array($data->networkId, $this->allowNoEmoji) ? B2S_Util::remove4byte(B2S_Util::getTitleByLanguage($this->postData->post_title, $this->userLang)) : B2S_Util::getTitleByLanguage($this->postData->post_title, $this->userLang)) : B2S_Util::prepareContent($this->postId, $this->postData->post_content, $this->postUrl, (in_array($data->networkId, $this->allowHtml) ? '<p><h1><h2><br><i><b><a><img>' : false), (in_array($data->networkId, $this->allowNoEmoji) ? false : true), $this->userLang));
89
}
@@ -127,7 +130,7 @@ class B2S_Ship_Item {
127
if ($data->networkId == 8) { //Xing -1 Leerzeichen
128
$this->setShortTextPage[$data->networkId] = (int) $this->setShortTextPage[$data->networkId] - mb_strlen($this->postUrl, 'UTF-8') - 1;
129
}
130
- $message = B2S_Util::getExcerpt(B2S_Util::prepareContent($this->postId, $this->postData->post_content, $this->postUrl, false, (in_array($data->networkId, $this->allowNoEmoji) ? false : true), $this->userLang), (int) $this->setShortTextPage[$data->networkId]);
131
} else {
132
$message = (in_array($data->networkId, $this->allowTitlePage) ? (in_array($data->networkId, $this->allowNoEmoji) ? B2S_Util::remove4byte(B2S_Util::getTitleByLanguage($this->postData->post_title, $this->userLang)) : B2S_Util::getTitleByLanguage($this->postData->post_title, $this->userLang)) : B2S_Util::prepareContent($this->postId, $this->postData->post_content, $this->postUrl, (in_array($data->networkId, $this->allowHtml) ? '<p><h1><h2><br><i><b><a><img>' : false), (in_array($data->networkId, $this->allowNoEmoji) ? false : true), $this->userLang));
133
}
@@ -153,7 +156,7 @@ class B2S_Ship_Item {
153
//group
154
//ShortText
155
if (isset($this->setShortTextGroup[$data->networkId]) && (int) $this->setShortTextGroup[$data->networkId] > 0) {
156
- $message = B2S_Util::getExcerpt(B2S_Util::prepareContent($this->postId, $this->postData->post_content, $this->postUrl, false, (in_array($data->networkId, $this->allowNoEmoji) ? false : true), $this->userLang), (int) $this->setShortTextGroup[$data->networkId]);
157
} else {
158
$message = (in_array($data->networkId, $this->allowTitleGroup) ? (in_array($data->networkId, $this->allowNoEmoji) ? B2S_Util::remove4byte(B2S_Util::getTitleByLanguage($this->postData->post_title, $this->userLang)) : B2S_Util::getTitleByLanguage($this->postData->post_title, $this->userLang)) : B2S_Util::prepareContent($this->postId, $this->postData->post_content, $this->postUrl, (in_array($data->networkId, $this->allowHtml) ? '<p><h1><h2><br><i><b><a><img>' : false), (in_array($data->networkId, $this->allowNoEmoji) ? false : true), $this->userLang));
159
}
@@ -197,7 +200,8 @@ class B2S_Ship_Item {
197
$content .= '<div class="pull-right hidden-xs b2s-post-item-info-area">';
198
199
if (in_array($data->networkId, $this->setPostFormat) && B2S_PLUGIN_USER_VERSION > 0) {
200
- $content .= '<button class="btn btn-xs btn-link b2s-post-ship-item-post-format" data-network-id="' . $data->networkId . '" >' . __('post format', 'blog2social') . ': <span class="b2s-post-ship-item-post-format-text" data-network-id="' . $data->networkId . '" ></span></button> | ';
201
}
202
if (in_array($data->networkId, $this->getText)) {
203
$content .= '<button class="btn btn-xs btn-link b2s-post-ship-item-full-text" data-network-auth-id="' . $data->networkAuthId . '" >' . __('Insert full-text', 'blog2social') . '</button> | ';
@@ -307,7 +311,11 @@ class B2S_Ship_Item {
307
}
308
} else {
309
$edit = '<textarea class="form-control b2s-post-item-details-item-message-input ' . (in_array($networkId, $this->allowHtml) ? 'b2s-post-item-details-item-message-input-allow-html' : '') . '" data-network-text-limit="' . $limitValue . '" data-network-auth-id="' . $networkAuthId . '" placeholder="' . __('Write something about your post...', 'blog2social') . '" name="b2s[' . $networkAuthId . '][content]" ' . $isRequiredTextarea . ' ' . $textareaOnKeyUp . '>' . $message . '</textarea>';
310
$edit .= $this->getUrlHtml($networkId, $networkAuthId, $limit, $limitValue);
311
}
312
return $edit;
313
}
24
private $showGroups = array(8, 15);
25
private $hideGroupName = array(8);
26
private $setShortTextProfile = array(1 => 239, 2 => 116, 3 => 239, 6 => 300, 8 => 239, 10 => 442, 12 => 240, 9 => 200);
27
+ private $setShortTextProfileLimit = array(1 => 400, 2 => 116, 3 => 400, 6 => 400, 8 => 400, 10 => 500, 12 => 400, 9 => 200);
28
private $setShortTextPage = array(1 => 239, 3 => 239, 8 => 1200, 10 => 442);
29
+ private $setShortTextPageLimit = array(1 => 400, 3 => 400, 8 => 1200, 10 => 500);
30
private $setShortTextGroup = array(1 => 239, 8 => 239, 10 => 442);
31
+ private $setShortTextGroupLimit = array(1 => 400, 8 => 400, 10 => 500);
32
private $allowHashTags = array(6, 10, 12);
33
private $limitCharacterProfile = array(2 => 140, 3 => 600, 6 => 500, 8 => 420, 9 => 250, 15 => 300, 12 => 2000);
34
private $showImageArea = array(6, 7, 10, 12);
86
//ShortText
87
if (isset($this->setShortTextProfile[$data->networkId]) && (int) $this->setShortTextProfile[$data->networkId] > 0) {
88
$preContent = ($data->networkId == 2) ? B2S_Util::getTitleByLanguage($this->postData->post_title, $this->userLang) : B2S_Util::prepareContent($this->postId, $this->postData->post_content, $this->postUrl, false, (in_array($data->networkId, $this->allowNoEmoji) ? false : true), $this->userLang);
89
+ $message = B2S_Util::getExcerpt($preContent, (int) $this->setShortTextProfile[$data->networkId], (int) $this->setShortTextProfileLimit[$data->networkId]);
90
} else {
91
$message = (in_array($data->networkId, $this->allowTitleProfile) ? (in_array($data->networkId, $this->allowNoEmoji) ? B2S_Util::remove4byte(B2S_Util::getTitleByLanguage($this->postData->post_title, $this->userLang)) : B2S_Util::getTitleByLanguage($this->postData->post_title, $this->userLang)) : B2S_Util::prepareContent($this->postId, $this->postData->post_content, $this->postUrl, (in_array($data->networkId, $this->allowHtml) ? '<p><h1><h2><br><i><b><a><img>' : false), (in_array($data->networkId, $this->allowNoEmoji) ? false : true), $this->userLang));
92
}
130
if ($data->networkId == 8) { //Xing -1 Leerzeichen
131
$this->setShortTextPage[$data->networkId] = (int) $this->setShortTextPage[$data->networkId] - mb_strlen($this->postUrl, 'UTF-8') - 1;
132
}
133
+ $message = B2S_Util::getExcerpt(B2S_Util::prepareContent($this->postId, $this->postData->post_content, $this->postUrl, false, (in_array($data->networkId, $this->allowNoEmoji) ? false : true), $this->userLang), (int) $this->setShortTextPage[$data->networkId], (int) $this->setShortTextPageLimit[$data->networkId]);
134
} else {
135
$message = (in_array($data->networkId, $this->allowTitlePage) ? (in_array($data->networkId, $this->allowNoEmoji) ? B2S_Util::remove4byte(B2S_Util::getTitleByLanguage($this->postData->post_title, $this->userLang)) : B2S_Util::getTitleByLanguage($this->postData->post_title, $this->userLang)) : B2S_Util::prepareContent($this->postId, $this->postData->post_content, $this->postUrl, (in_array($data->networkId, $this->allowHtml) ? '<p><h1><h2><br><i><b><a><img>' : false), (in_array($data->networkId, $this->allowNoEmoji) ? false : true), $this->userLang));
136
}
156
//group
157
//ShortText
158
if (isset($this->setShortTextGroup[$data->networkId]) && (int) $this->setShortTextGroup[$data->networkId] > 0) {
159
+ $message = B2S_Util::getExcerpt(B2S_Util::prepareContent($this->postId, $this->postData->post_content, $this->postUrl, false, (in_array($data->networkId, $this->allowNoEmoji) ? false : true), $this->userLang), (int) $this->setShortTextGroup[$data->networkId], (int) $this->setShortTextGroupLimit[$data->networkId]);
160
} else {
161
$message = (in_array($data->networkId, $this->allowTitleGroup) ? (in_array($data->networkId, $this->allowNoEmoji) ? B2S_Util::remove4byte(B2S_Util::getTitleByLanguage($this->postData->post_title, $this->userLang)) : B2S_Util::getTitleByLanguage($this->postData->post_title, $this->userLang)) : B2S_Util::prepareContent($this->postId, $this->postData->post_content, $this->postUrl, (in_array($data->networkId, $this->allowHtml) ? '<p><h1><h2><br><i><b><a><img>' : false), (in_array($data->networkId, $this->allowNoEmoji) ? false : true), $this->userLang));
162
}
200
$content .= '<div class="pull-right hidden-xs b2s-post-item-info-area">';
201
202
if (in_array($data->networkId, $this->setPostFormat) && B2S_PLUGIN_USER_VERSION > 0) {
203
+ $content .= '<button class="btn btn-xs btn-link b2s-post-ship-item-post-format" data-network-auth-id="' . $data->networkAuthId . '" data-network-type="'.$data->networkType.'" data-network-id="' . $data->networkId . '" >' . __('post format', 'blog2social') . ': <span class="b2s-post-ship-item-post-format-text" data-network-type="'.$data->networkType.'" data-network-id="' . $data->networkId . '" ></span></button> | ';
204
+ $content .= '<input type="hidden" class="b2s-post-item-details-post-format" name="b2s[' . $data->networkAuthId . '][post_format]" data-network-auth-id="' . $data->networkAuthId . '" data-network-id="' . $data->networkId . '" data-network-type="' . $data->networkType . '" value="0" />';
205
}
206
if (in_array($data->networkId, $this->getText)) {
207
$content .= '<button class="btn btn-xs btn-link b2s-post-ship-item-full-text" data-network-auth-id="' . $data->networkAuthId . '" >' . __('Insert full-text', 'blog2social') . '</button> | ';
311
}
312
} else {
313
$edit = '<textarea class="form-control b2s-post-item-details-item-message-input ' . (in_array($networkId, $this->allowHtml) ? 'b2s-post-item-details-item-message-input-allow-html' : '') . '" data-network-text-limit="' . $limitValue . '" data-network-auth-id="' . $networkAuthId . '" placeholder="' . __('Write something about your post...', 'blog2social') . '" name="b2s[' . $networkAuthId . '][content]" ' . $isRequiredTextarea . ' ' . $textareaOnKeyUp . '>' . $message . '</textarea>';
314
+
315
$edit .= $this->getUrlHtml($networkId, $networkAuthId, $limit, $limitValue);
316
+ if ($networkId == 14) { //FeatureImage Network Torial (Portfolio)
317
+ $edit .= '<input type="hidden" class="b2s-image-url-hidden-field form-control" data-network-id="' . $networkId . '" data-network-auth-id="' . $networkAuthId . '" value="" name="b2s[' . $networkAuthId . '][image_url]">';
318
+ }
319
}
320
return $edit;
321
}
includes/Init.php CHANGED
@@ -34,7 +34,6 @@ class B2S_Init {
34
define('B2S_PLUGIN_API_ENDPOINT_AUTH', 'https://developer.blog2social.com/wp/v3/network/auth.php');
35
define('B2S_PLUGIN_PRG_API_ENDPOINT', 'http://developer.pr-gateway.de/wp/v3/');
36
define('B2S_PLUGIN_SERVER_URL', 'https://developer.blog2social.com');
37
- //define('B2S_PLUGIN_VERSION_TYPE', serialize(array(0 => 'Free', 1 => 'PRO', 2 => 'Business', 3 => 'Premium', 7 => 'PRO', 8 => 'PRO', 9 => 'Business', 10 => 'Premium', 11 => 'Smart')));
38
define('B2S_PLUGIN_VERSION_TYPE', serialize(array(0 => 'Free', 1 => 'Smart', 2 => 'Pro', 3 => 'Business', 4 => 'Premium')));
39
define('B2S_PLUGIN_NETWORK', serialize(array(1 => 'Facebook', 2 => 'Twitter', 3 => 'Linkedin', 4 => 'Tumblr', 5 => 'Storify', 6 => 'Pinterest', 7 => 'Flickr', 8 => 'Xing', 9 => 'Diigo', 10 => 'Google+', 11 => 'Medium', 12 => 'Instagram', 13 => 'Delicious', 14 => 'Torial', 15 => 'Reddit')));
40
define('B2S_PLUGIN_SCHED_DEFAULT_TIMES', serialize(array(1 => array(18, 22), 2 => array(8, 10), 3 => array(8, 10), 4 => array(16, 22), 5 => array(), 6 => array(19, 22), 7 => array(7, 9), 8 => array(7, 10), 9 => array(16, 19), 10 => array(7, 10), 11 => array(16, 19), 12 => array(19, 22), 13 => array(11, 13), 14 => array(18, 22), 15 => array(8, 11))));
@@ -50,25 +49,45 @@ class B2S_Init {
50
add_action('admin_init', array($this, 'registerAssets'));
51
add_action('admin_enqueue_scripts', array($this, 'addBootAssets'));
52
add_action('admin_menu', array($this, 'createMenu'));
53
- add_filter('heartbeat_received', array(B2S_Heartbeat::getInstance(), 'init'), 10, 2);
54
add_action('admin_notices', array('B2S_Notice', 'getProVersionNotice'));
55
add_action('admin_notices', array($this, 'b2s_save_post_alert_meta_box'));
56
add_action('add_meta_boxes', array($this, 'b2s_init_meta_box'));
57
add_action('save_post', array($this, 'b2s_save_meta_box'));
58
add_filter('wp_footer', array($this, 'b2s_get_full_content'), 99); //for shortcodes
59
- add_action('admin_bar_menu', array($this, 'createToolbarMenu'), 94);
60
61
Ajax_Get::getInstance();
62
Ajax_Post::getInstance();
63
if ((int) B2S_PLUGIN_BLOG_USER_ID > 0) {
64
$this->getToken();
65
$this->getUserDetails();
66
}
67
-
68
- add_filter('plugin_action_links_' . B2S_PLUGIN_BASENAME, array($this, 'plugin_activate_sublink'));
69
$this->plugin_init_language();
70
}
71
72
public function b2s_get_full_content() {
73
if (isset($_GET['b2s_get_full_content'])) {
74
$b2sPostContent = do_shortcode(get_the_content());
@@ -114,7 +133,7 @@ class B2S_Init {
114
$user_timezone = isset($_POST['b2s-user-timezone']) ? $_POST['b2s-user-timezone'] : 0;
115
$current_utc_date = gmdate('Y-m-d H:i:s');
116
$current_user_date = date('Y-m-d H:i:s', strtotime(B2S_Util::getUTCForDate($current_utc_date, $user_timezone)));
117
-
118
//WP User Sched Post + B2S Share NOW FRIST SAVE
119
$post_date = '';
120
if (isset($_POST['post_date']) && !empty($_POST['post_date'])) {
@@ -176,7 +195,11 @@ class B2S_Init {
176
'board' => '', 'group' => '', 'url' => $url, 'user_timezone' => $user_timezone); // 'publish_date' => $sched_date, OLD FOR Share Now?
177
178
$defaultBlogPostData = array('post_id' => (int) $_POST['post_ID'], 'blog_user_id' => (int) $_POST['user_ID'], 'user_timezone' => $user_timezone, 'sched_type' => $sched_type, 'sched_date' => $sched_date, 'sched_date_utc' => $sched_date_utc);
179
- $autoShare = new B2S_AutoShare((int) $_POST['post_ID'], $defaultBlogPostData, $current_user_date, $myTimeSettings, $title, $content, $url, $image_url, $keywords, $b2sPostLang);
180
define('B2S_SAVE_META_BOX_AUTO_SHARE', $_POST['post_ID']);
181
if (isset($_POST['b2s-user-last-selected-profile-id']) && (int) $_POST['b2s-user-last-selected-profile-id'] != (int) $_POST['b2s-post-meta-box-profil-dropdown'] && (int) $_POST['b2s-post-meta-box-profil-dropdown'] != 0) {
182
update_option('B2S_PLUGIN_SAVE_META_BOX_AUTO_SHARE_PROFILE_USER_' . $_POST['user_ID'], (int) $_POST['b2s-post-meta-box-profil-dropdown']);
@@ -396,6 +419,7 @@ class B2S_Init {
396
397
//PageFunktion
398
public function b2sstart() {
399
if (B2S_Tools::showNotice() == false) {
400
wp_enqueue_style('B2SSTARTCSS');
401
wp_enqueue_script('B2SSTARTJS');
@@ -542,6 +566,7 @@ class B2S_Init {
542
543
public function addBootAssets() {
544
wp_enqueue_script('B2SVALIDATEJS');
545
}
546
547
public function addAssets() {
@@ -578,6 +603,7 @@ class B2S_Init {
578
wp_register_script('PRGLOGINJS', plugins_url('assets/js/prg/login.js', B2S_PLUGIN_FILE), array(), B2S_PLUGIN_VERSION);
579
wp_register_script('B2SBOOTJS', plugins_url('assets/js/general.js', B2S_PLUGIN_FILE), array(), B2S_PLUGIN_VERSION);
580
wp_register_script('B2SVALIDATEJS', plugins_url('assets/js/validate.js', B2S_PLUGIN_FILE), array(), B2S_PLUGIN_VERSION);
581
wp_register_script('B2SGENERALJS', plugins_url('assets/js/b2s/general.js', B2S_PLUGIN_FILE), array(), B2S_PLUGIN_VERSION);
582
wp_register_script('B2SDATEPICKERJS', plugins_url('assets/lib/datepicker/js/bootstrap-datepicker.min.js', B2S_PLUGIN_FILE), array(), B2S_PLUGIN_VERSION);
583
wp_register_script('B2SDATEPICKERDEJS', plugins_url('assets/lib/datepicker/locales/bootstrap-datepicker.de_DE.min.js', B2S_PLUGIN_FILE), array(), B2S_PLUGIN_VERSION);
@@ -593,6 +619,7 @@ class B2S_Init {
593
wp_register_script('B2SWYSIWYGLANGDEJS', plugins_url('assets/lib/wysiwyg/languages/de.js', B2S_PLUGIN_FILE), array(), B2S_PLUGIN_VERSION);
594
wp_register_script('B2SWYSIWYGLANGENJS', plugins_url('assets/lib/wysiwyg/languages/en.js', B2S_PLUGIN_FILE), array(), B2S_PLUGIN_VERSION);
595
wp_register_script('B2SMETABOXJS', plugins_url('assets/js/b2s/wp/post-meta-box.js', B2S_PLUGIN_FILE), array(), B2S_PLUGIN_VERSION);
596
}
597
598
public function activatePlugin() {
34
define('B2S_PLUGIN_API_ENDPOINT_AUTH', 'https://developer.blog2social.com/wp/v3/network/auth.php');
35
define('B2S_PLUGIN_PRG_API_ENDPOINT', 'http://developer.pr-gateway.de/wp/v3/');
36
define('B2S_PLUGIN_SERVER_URL', 'https://developer.blog2social.com');
37
define('B2S_PLUGIN_VERSION_TYPE', serialize(array(0 => 'Free', 1 => 'Smart', 2 => 'Pro', 3 => 'Business', 4 => 'Premium')));
38
define('B2S_PLUGIN_NETWORK', serialize(array(1 => 'Facebook', 2 => 'Twitter', 3 => 'Linkedin', 4 => 'Tumblr', 5 => 'Storify', 6 => 'Pinterest', 7 => 'Flickr', 8 => 'Xing', 9 => 'Diigo', 10 => 'Google+', 11 => 'Medium', 12 => 'Instagram', 13 => 'Delicious', 14 => 'Torial', 15 => 'Reddit')));
39
define('B2S_PLUGIN_SCHED_DEFAULT_TIMES', serialize(array(1 => array(18, 22), 2 => array(8, 10), 3 => array(8, 10), 4 => array(16, 22), 5 => array(), 6 => array(19, 22), 7 => array(7, 9), 8 => array(7, 10), 9 => array(16, 19), 10 => array(7, 10), 11 => array(16, 19), 12 => array(19, 22), 13 => array(11, 13), 14 => array(18, 22), 15 => array(8, 11))));
49
add_action('admin_init', array($this, 'registerAssets'));
50
add_action('admin_enqueue_scripts', array($this, 'addBootAssets'));
51
add_action('admin_menu', array($this, 'createMenu'));
52
+ add_action('admin_bar_menu', array($this, 'createToolbarMenu'), 94);
53
+
54
add_action('admin_notices', array('B2S_Notice', 'getProVersionNotice'));
55
add_action('admin_notices', array($this, 'b2s_save_post_alert_meta_box'));
56
add_action('add_meta_boxes', array($this, 'b2s_init_meta_box'));
57
add_action('save_post', array($this, 'b2s_save_meta_box'));
58
+ add_action('trash_post', array($this, 'b2s_delete_sched_post'), 10);
59
+
60
+ add_filter('heartbeat_received', array(B2S_Heartbeat::getInstance(), 'init'), 10, 2);
61
+ add_filter('plugin_action_links_' . B2S_PLUGIN_BASENAME, array($this, 'plugin_activate_sublink'));
62
add_filter('wp_footer', array($this, 'b2s_get_full_content'), 99); //for shortcodes
63
+
64
65
Ajax_Get::getInstance();
66
Ajax_Post::getInstance();
67
+
68
if ((int) B2S_PLUGIN_BLOG_USER_ID > 0) {
69
$this->getToken();
70
$this->getUserDetails();
71
}
72
$this->plugin_init_language();
73
}
74
75
+ public function b2s_delete_sched_post($post_id) {
76
+ if ((int) $post_id > 0) {
77
+ global $wpdb;
78
+ //Heartbeat => b2s_delete_sched_post
79
+ $sql = "SELECT id FROM b2s_posts WHERE post_id = %s AND hook_action <= %s AND hide = %s AND sched_date_utc != %s AND publish_date = %s";
80
+ $deleteData = $wpdb->get_results($wpdb->prepare($sql, $post_id, 2, 0, "0000-00 00:00:00", "0000-00 00:00:00", ARRAY_A));
81
+ if (isset($deleteData[0])) {
82
+ foreach ($deleteData as $k => $value) {
83
+ $data = array('hook_action' => '3', 'hide' => 1);
84
+ $where = array('id' => $value->id);
85
+ $wpdb->update('b2s_posts', $data, $where, array('%d'), array('%d'));
86
+ }
87
+ }
88
+ }
89
+ }
90
+
91
public function b2s_get_full_content() {
92
if (isset($_GET['b2s_get_full_content'])) {
93
$b2sPostContent = do_shortcode(get_the_content());
133
$user_timezone = isset($_POST['b2s-user-timezone']) ? $_POST['b2s-user-timezone'] : 0;
134
$current_utc_date = gmdate('Y-m-d H:i:s');
135
$current_user_date = date('Y-m-d H:i:s', strtotime(B2S_Util::getUTCForDate($current_utc_date, $user_timezone)));
136
+
137
//WP User Sched Post + B2S Share NOW FRIST SAVE
138
$post_date = '';
139
if (isset($_POST['post_date']) && !empty($_POST['post_date'])) {
195
'board' => '', 'group' => '', 'url' => $url, 'user_timezone' => $user_timezone); // 'publish_date' => $sched_date, OLD FOR Share Now?
196
197
$defaultBlogPostData = array('post_id' => (int) $_POST['post_ID'], 'blog_user_id' => (int) $_POST['user_ID'], 'user_timezone' => $user_timezone, 'sched_type' => $sched_type, 'sched_date' => $sched_date, 'sched_date_utc' => $sched_date_utc);
198
+
199
+ $options = new B2S_Options((int) $_POST['user_ID']);
200
+ $optionPostFormat = $options->_getOption('post_format');
201
+
202
+ $autoShare = new B2S_AutoShare((int) $_POST['post_ID'], $defaultBlogPostData, $current_user_date, $myTimeSettings, $title, $content, $url, $image_url, $keywords, $b2sPostLang, $optionPostFormat);
203
define('B2S_SAVE_META_BOX_AUTO_SHARE', $_POST['post_ID']);
204
if (isset($_POST['b2s-user-last-selected-profile-id']) && (int) $_POST['b2s-user-last-selected-profile-id'] != (int) $_POST['b2s-post-meta-box-profil-dropdown'] && (int) $_POST['b2s-post-meta-box-profil-dropdown'] != 0) {
205
update_option('B2S_PLUGIN_SAVE_META_BOX_AUTO_SHARE_PROFILE_USER_' . $_POST['user_ID'], (int) $_POST['b2s-post-meta-box-profil-dropdown']);
419
420
//PageFunktion
421
public function b2sstart() {
422
+
423
if (B2S_Tools::showNotice() == false) {
424
wp_enqueue_style('B2SSTARTCSS');
425
wp_enqueue_script('B2SSTARTJS');
566
567
public function addBootAssets() {
568
wp_enqueue_script('B2SVALIDATEJS');
569
+ wp_enqueue_script('B2SPOSTSCHEDHEARTBEATJS');
570
}
571
572
public function addAssets() {
603
wp_register_script('PRGLOGINJS', plugins_url('assets/js/prg/login.js', B2S_PLUGIN_FILE), array(), B2S_PLUGIN_VERSION);
604
wp_register_script('B2SBOOTJS', plugins_url('assets/js/general.js', B2S_PLUGIN_FILE), array(), B2S_PLUGIN_VERSION);
605
wp_register_script('B2SVALIDATEJS', plugins_url('assets/js/validate.js', B2S_PLUGIN_FILE), array(), B2S_PLUGIN_VERSION);
606
+
607
wp_register_script('B2SGENERALJS', plugins_url('assets/js/b2s/general.js', B2S_PLUGIN_FILE), array(), B2S_PLUGIN_VERSION);
608
wp_register_script('B2SDATEPICKERJS', plugins_url('assets/lib/datepicker/js/bootstrap-datepicker.min.js', B2S_PLUGIN_FILE), array(), B2S_PLUGIN_VERSION);
609
wp_register_script('B2SDATEPICKERDEJS', plugins_url('assets/lib/datepicker/locales/bootstrap-datepicker.de_DE.min.js', B2S_PLUGIN_FILE), array(), B2S_PLUGIN_VERSION);
619
wp_register_script('B2SWYSIWYGLANGDEJS', plugins_url('assets/lib/wysiwyg/languages/de.js', B2S_PLUGIN_FILE), array(), B2S_PLUGIN_VERSION);
620
wp_register_script('B2SWYSIWYGLANGENJS', plugins_url('assets/lib/wysiwyg/languages/en.js', B2S_PLUGIN_FILE), array(), B2S_PLUGIN_VERSION);
621
wp_register_script('B2SMETABOXJS', plugins_url('assets/js/b2s/wp/post-meta-box.js', B2S_PLUGIN_FILE), array(), B2S_PLUGIN_VERSION);
622
+ wp_register_script('B2SPOSTSCHEDHEARTBEATJS', plugins_url('assets/js/b2s/wp/post-sched-heartbeat.js', B2S_PLUGIN_FILE), array(), B2S_PLUGIN_VERSION);
623
}
624
625
public function activatePlugin() {
includes/MetaBox.php CHANGED
@@ -21,7 +21,8 @@ class B2S_MetaBox {
21
$userTimeZone = ($optionUserTimeZone !== false) ? $optionUserTimeZone : get_option('timezone_string');
22
$userTimeZoneOffset = (empty($userTimeZone)) ? get_option('gmt_offset') : B2S_Util::getOffsetToUtcByTimeZone($userTimeZone);
23
$selectedProfileID = get_option('B2S_PLUGIN_SAVE_META_BOX_AUTO_SHARE_PROFILE_USER_' . B2S_PLUGIN_BLOG_USER_ID);
24
-
25
if (B2S_PLUGIN_USER_VERSION > 0) {
26
if ($postId > 0) {
27
global $wpdb;
@@ -48,10 +49,9 @@ class B2S_MetaBox {
48
<input type="hidden" id="b2sPostLang" name="b2s-post-lang" value="' . substr($this->postLang, 0, 2) . '">
49
<input type="hidden" id="b2s-user-timezone" name="b2s-user-timezone" value="' . $userTimeZoneOffset . '"/>
50
<input type="hidden" id="b2s-post-status" name="b2s-post-status" value="' . trim(strtolower($postStatus)) . '"/>
51
- <input type="hidden" id="b2s-user-publish-date" name="b2s-user-publish-date" value=""/>
52
<input type="hidden" id="b2s-redirect-url-custom-share" name="b2s-redirect-url-custom-share" value="' . $this->b2sSiteUrl . 'wp-admin/admin.php?page=blog2social-ship&postId=' . $postId . '"/>
53
<div id="b2s-server-connection-fail" class="b2s-info-error"><button class="b2s-btn-close-meta-box b2s-close-icon" data-area-id="b2s-server-connection-fail" title="close notice"></button>' . __('The connection to the server failed. Try again!', 'blog2social') . '</div>
54
- <div id="b2s-heartbeat-fail" class="b2s-info-error"><button class="b2s-btn-close-meta-box b2s-close-icon" data-area-id="b2s-heartbeat-fail" title="close notice"></button>' . __('WordPress uses heartbeats by default, Blog2Social as well. Please enable heartbeats for using Blog2Social!', 'blog2social') . '</div>
55
<div id="b2s-post-meta-box-state-no-auth" class="b2s-info-error"><button class="b2s-btn-close-meta-box b2s-close-icon" data-area-id="b2s-post-meta-box-state-no-auth" title="close notice"></button>' . __('There are no authorizations for your selected profile. Please, authorize with a social network or select a other profile.', 'blog2social') . '<a href="' . $this->b2sSiteUrl . 'wp-admin/admin.php?page=blog2social-network' . '" target="_bank">' . __('Network settings', 'blog2social') . '</a></div>
56
<div id="b2s-post-meta-box-state-no-publish-future" class="b2s-info-error"><button class="b2s-btn-close-meta-box b2s-close-icon" data-area-id="b2s-post-meta-box-state-no-publish-future" title="close notice"></button>' . __('Your post is still on draft or pending status. Please make sure that your post is published or scheduled to be published on this blog. You can then auto-post or schedule and customize your social media posts with Blog2Social.', 'blog2social') . '</div>
57
<div id="b2s-url-valid-warning" class="b2s-info-warning"><button class="b2s-btn-close-meta-box b2s-close-icon" data-area-id="b2s-url-valid-warning" title="close notice"></button>' . __('Notice: Please make sure, that your website address is reachable. The Social Networks do not allow postings from local installations.', 'blog2social') . '</div>
@@ -153,7 +153,7 @@ class B2S_MetaBox {
153
</select>';
154
155
$content .='<div id="b2s-post-meta-box-note-premium" class="b2s-info-success"><button class="b2s-btn-close-meta-box b2s-close-icon" data-area-id="b2s-post-meta-box-note-premium" title="close notice"></button><b>' . __('You want to sched your blog post with Auto-Poster?', 'blog2social') . '</b><br> <a class="" target="_blank" href="' . B2S_Tools::getSupportLink('affiliate') . '">' . __('Upgrade to PREMIUM PRO', 'blog2social') . '</a></div>';
156
-
157
$content .='<div class="b2s-post-meta-box-sched-once" style="display:none;">';
158
//Opt: CustomDatePicker
159
$dateFormat = (substr(B2S_LANGUAGE, 0, 2) == 'de') ? 'dd.mm.yyyy' : 'yyyy-mm-dd';
21
$userTimeZone = ($optionUserTimeZone !== false) ? $optionUserTimeZone : get_option('timezone_string');
22
$userTimeZoneOffset = (empty($userTimeZone)) ? get_option('gmt_offset') : B2S_Util::getOffsetToUtcByTimeZone($userTimeZone);
23
$selectedProfileID = get_option('B2S_PLUGIN_SAVE_META_BOX_AUTO_SHARE_PROFILE_USER_' . B2S_PLUGIN_BLOG_USER_ID);
24
+ $b2sHeartbeatFaqLink = '<a target="_blank" href="'.((substr(B2S_LANGUAGE, 0, 2) == 'de' || (isset($_GET['lang']) && $_GET['lang'] == 'de')) ? 'https://www.blog2social.com/de/faq/content/1/63/de/systemvoraussetzungen-fuer-die-installation-von-blog2social.html' : 'https://www.blog2social.com/en/faq/content/1/58/en/system-requirements-for-installing-blog2social.html').'">'.__('Please see FAQ','blog2social').'</a>';
25
+
26
if (B2S_PLUGIN_USER_VERSION > 0) {
27
if ($postId > 0) {
28
global $wpdb;
49
<input type="hidden" id="b2sPostLang" name="b2s-post-lang" value="' . substr($this->postLang, 0, 2) . '">
50
<input type="hidden" id="b2s-user-timezone" name="b2s-user-timezone" value="' . $userTimeZoneOffset . '"/>
51
<input type="hidden" id="b2s-post-status" name="b2s-post-status" value="' . trim(strtolower($postStatus)) . '"/>
52
<input type="hidden" id="b2s-redirect-url-custom-share" name="b2s-redirect-url-custom-share" value="' . $this->b2sSiteUrl . 'wp-admin/admin.php?page=blog2social-ship&postId=' . $postId . '"/>
53
<div id="b2s-server-connection-fail" class="b2s-info-error"><button class="b2s-btn-close-meta-box b2s-close-icon" data-area-id="b2s-server-connection-fail" title="close notice"></button>' . __('The connection to the server failed. Try again!', 'blog2social') . '</div>
54
+ <div id="b2s-heartbeat-fail" class="b2s-info-error"><button class="b2s-btn-close-meta-box b2s-close-icon" data-area-id="b2s-heartbeat-fail" title="close notice"></button>' . __('WordPress uses heartbeats by default, Blog2Social as well. Please enable heartbeats for using Blog2Social!', 'blog2social') . $b2sHeartbeatFaqLink . ' </div>
55
<div id="b2s-post-meta-box-state-no-auth" class="b2s-info-error"><button class="b2s-btn-close-meta-box b2s-close-icon" data-area-id="b2s-post-meta-box-state-no-auth" title="close notice"></button>' . __('There are no authorizations for your selected profile. Please, authorize with a social network or select a other profile.', 'blog2social') . '<a href="' . $this->b2sSiteUrl . 'wp-admin/admin.php?page=blog2social-network' . '" target="_bank">' . __('Network settings', 'blog2social') . '</a></div>
56
<div id="b2s-post-meta-box-state-no-publish-future" class="b2s-info-error"><button class="b2s-btn-close-meta-box b2s-close-icon" data-area-id="b2s-post-meta-box-state-no-publish-future" title="close notice"></button>' . __('Your post is still on draft or pending status. Please make sure that your post is published or scheduled to be published on this blog. You can then auto-post or schedule and customize your social media posts with Blog2Social.', 'blog2social') . '</div>
57
<div id="b2s-url-valid-warning" class="b2s-info-warning"><button class="b2s-btn-close-meta-box b2s-close-icon" data-area-id="b2s-url-valid-warning" title="close notice"></button>' . __('Notice: Please make sure, that your website address is reachable. The Social Networks do not allow postings from local installations.', 'blog2social') . '</div>
153
</select>';
154
155
$content .='<div id="b2s-post-meta-box-note-premium" class="b2s-info-success"><button class="b2s-btn-close-meta-box b2s-close-icon" data-area-id="b2s-post-meta-box-note-premium" title="close notice"></button><b>' . __('You want to sched your blog post with Auto-Poster?', 'blog2social') . '</b><br> <a class="" target="_blank" href="' . B2S_Tools::getSupportLink('affiliate') . '">' . __('Upgrade to PREMIUM PRO', 'blog2social') . '</a></div>';
156
+
157
$content .='<div class="b2s-post-meta-box-sched-once" style="display:none;">';
158
//Opt: CustomDatePicker
159
$dateFormat = (substr(B2S_LANGUAGE, 0, 2) == 'de') ? 'dd.mm.yyyy' : 'yyyy-mm-dd';
includes/PRG/Post/Filter.php CHANGED
@@ -11,11 +11,12 @@ class PRG_Post_Filter {
11
protected $searchSchedDate;
12
protected $postAuthor;
13
14
- function __construct($type, $title = "", $authorId = "", $postType = "", $publishDate = "", $schedDate = "") { //type=all,publish,sched
15
$this->type = $type;
16
$this->searchPostTitle = $title;
17
$this->searchAuthorId = $authorId;
18
$this->searchPostType = $postType;
19
$this->searchPublishDate = $publishDate;
20
$this->searchSchedDate = $schedDate;
21
}
@@ -36,18 +37,37 @@ class PRG_Post_Filter {
36
return $autor;
37
}
38
39
- private function getPostTypeHtml() {
40
- $typeData = array(array('key' => 'publish', 'value' => __('published', 'blog2social')), array('key' => 'future', 'value' => __('scheduled', 'blog2social')), array('key' => 'pending', 'value' => __('draft', 'blog2social')));
41
- $type = '<div class="form-group"><select name="prgSortPostType" class="form-control b2s-select"><option value="">'. __('All Types', 'blog2social').'</option>';
42
foreach ($typeData as $var) {
43
$var = (object) $var;
44
- $selected = (!empty($this->searchPostType) && $var->key == $this->searchPostType) ? 'selected' : '';
45
$type.='<option ' . $selected . ' value="' . $var->key . '">' . $var->value . '</option>';
46
}
47
$type .='</select></div>';
48
return $type;
49
}
50
-
51
public function getItemHtml() {
52
$this->getAutorData();
53
$this->postFilter .= '<div class="form-group">
@@ -58,6 +78,7 @@ class PRG_Post_Filter {
58
}
59
if ($this->type == 'all') {
60
$this->postFilter .= $this->getPostTypeHtml();
61
}
62
63
$this->postFilter .='<div class="form-group">
11
protected $searchSchedDate;
12
protected $postAuthor;
13
14
+ function __construct($type, $title = "", $authorId = "", $postType = "",$postStatus="", $publishDate = "", $schedDate = "") { //type=all,publish,sched
15
$this->type = $type;
16
$this->searchPostTitle = $title;
17
$this->searchAuthorId = $authorId;
18
$this->searchPostType = $postType;
19
+ $this->searchPostStatus = $postStatus;
20
$this->searchPublishDate = $publishDate;
21
$this->searchSchedDate = $schedDate;
22
}
37
return $autor;
38
}
39
40
+ private function getPostStatusHtml() {
41
+ $typeData = array(array('key' => 'publish', 'value' => __('published', 'blog2social')), array('key' => 'future', 'value' => __('scheduled', 'blog2social')));
42
+ $type = '<div class="form-group"><select name="prgSortPostStatus" class="form-control b2s-select"><option value="">'. __('All Types', 'blog2social').'</option>';
43
foreach ($typeData as $var) {
44
$var = (object) $var;
45
+ $selected = (!empty($this->searchPostStatus) && $var->key == $this->searchPostStatus) ? 'selected' : '';
46
$type.='<option ' . $selected . ' value="' . $var->key . '">' . $var->value . '</option>';
47
}
48
$type .='</select></div>';
49
return $type;
50
}
51
+
52
+ private function getPostTypeHtml() {
53
+ $type = '<div class="form-group"><select id="prgSortPostType" name="prgSortPostType" class="form-control b2s-select"><option value="">' . __('all post types', 'blog2social') . '</option>';
54
+ $post_types = get_post_types(array('public' => true));
55
+ if (is_array($post_types) && !empty($post_types)) {
56
+ foreach ($post_types as $k => $v) {
57
+ if ($v != 'attachment' && $v != 'nav_menu_item' && $v != 'revision') {
58
+ $selected = (!empty($this->searchPostType) && $v == $this->searchPostType) ? 'selected' : '';
59
+ //Bug: Converting json + PHP Extension
60
+ if (function_exists('mb_strlen') && function_exists('mb_substr')) {
61
+ $v = mb_strlen($v,'UTF-8') > 27 ? mb_substr($v, 0, 27,'UTF-8') . '...' : $v;
62
+ }
63
+ $type .= '<option ' . $selected . ' value="' . $v . '">' . ucfirst($v) . '</option>';
64
+ }
65
+ }
66
+ }
67
+ $type .= '</select></div>';
68
+ return $type;
69
+ }
70
+
71
public function getItemHtml() {
72
$this->getAutorData();
73
$this->postFilter .= '<div class="form-group">
78
}
79
if ($this->type == 'all') {
80
$this->postFilter .= $this->getPostTypeHtml();
81
+ $this->postFilter .= $this->getPostStatusHtml();
82
}
83
84
$this->postFilter .='<div class="form-group">
includes/PRG/Post/Item.php CHANGED
@@ -16,11 +16,12 @@ class PRG_Post_Item {
16
public $currentPage = 0;
17
public $type;
18
19
- function __construct($type = 'all', $title = "", $authorId = "", $postType = "", $publishDate = '', $schedDate = '', $currentPage = 0, $userLang = 'en') {
20
$this->type = $type;
21
$this->searchPostTitle = $title;
22
$this->searchAuthorId = $authorId;
23
$this->searchPostType = $postType;
24
$this->searchPublishDate = $publishDate;
25
$this->searchSchedDate = $schedDate;
26
$this->currentPage = $currentPage;
@@ -48,14 +49,30 @@ class PRG_Post_Item {
48
$addSearchAuthorId = $wpdb->prepare(' AND `post_author` = %d', $this->searchAuthorId);
49
}
50
51
- if (!empty($this->searchPostType)) {
52
- $addSearchType = $wpdb->prepare(' `post_status` = %s', $this->searchPostType);
53
} else {
54
- $addSearchType = " (`post_status` = 'publish' OR `post_status` = 'pending' OR `post_status` = 'future') ";
55
}
56
57
- $postTypes = " `post_content` != '' AND (`post_type` LIKE '%article%' OR `post_type` LIKE '%job%' OR `post_type` LIKE '%event%' OR `post_type` = 'post' OR `post_type` = 'page') ";
58
-
59
60
$addNotAdmin = (B2S_PLUGIN_ADMIN == false) ? $wpdb->prepare(' AND `post_author` = %d', B2S_PLUGIN_BLOG_USER_ID) : '';
61
16
public $currentPage = 0;
17
public $type;
18
19
+ function __construct($type = 'all', $title = "", $authorId = "", $postType = "", $postStatus = "", $publishDate = '', $schedDate = '', $currentPage = 0, $userLang = 'en') {
20
$this->type = $type;
21
$this->searchPostTitle = $title;
22
$this->searchAuthorId = $authorId;
23
$this->searchPostType = $postType;
24
+ $this->searchPostStatus = $postStatus;
25
$this->searchPublishDate = $publishDate;
26
$this->searchSchedDate = $schedDate;
27
$this->currentPage = $currentPage;
49
$addSearchAuthorId = $wpdb->prepare(' AND `post_author` = %d', $this->searchAuthorId);
50
}
51
52
+ if (!empty($this->searchPostStatus)) {
53
+ $addSearchType = $wpdb->prepare(' `post_status` = %s', $this->searchPostStatus);
54
} else {
55
+ $addSearchType = " (`post_status` = 'publish' OR `post_status` = 'future') ";
56
}
57
58
+ $postTypes = " ";
59
+ if (!empty($this->searchPostType)) {
60
+ $postTypes .= " `post_type` LIKE '%" . $this->searchPostType . "%' ";
61
+ } else {
62
+ $post_types = get_post_types(array('public' => true));
63
+ if (is_array($post_types) && !empty($post_types)) {
64
+ $postTypes .= " `post_type` IN("; // AND
65
+ foreach ($post_types as $k => $v) {
66
+ if ($v != 'attachment' && $v != 'nav_menu_item' && $v != 'revision') {
67
+ $postTypes .= "'" . $v . "',";
68
+ }
69
+ }
70
+ $postTypes = rtrim($postTypes, ',');
71
+ $postTypes .= " ) ";
72
+ } else {
73
+ $postTypes .= " (`post_type` LIKE '%product%' OR `post_type` LIKE '%book%' OR `post_type` LIKE '%article%' OR `post_type` LIKE '%job%' OR `post_type` LIKE '%event%' OR `post_type` = 'post' OR `post_type` = 'page') ";
74
+ }
75
+ }
76
77
$addNotAdmin = (B2S_PLUGIN_ADMIN == false) ? $wpdb->prepare(' AND `post_author` = %d', B2S_PLUGIN_BLOG_USER_ID) : '';
78
includes/Util.php CHANGED
@@ -377,19 +377,21 @@ class B2S_Util {
377
return date($slug, strtotime(date('Y-m-d ' . $time . ':00:00')));
378
}
379
380
- public static function getExcerpt($text, $count = 400, $add = false) {
381
//Bug: Converting json + PHP Extension
382
if (function_exists('mb_strlen') && function_exists('mb_substr')) {
383
if (mb_strlen($text, 'UTF-8') < $count) {
384
return trim($text);
385
}
386
- $stops = array('.', ';', ':', ',', ' ');
387
$min = (int) $count / 2;
388
- $sub = mb_substr($text, $min, $min - 1, 'UTF-8');
389
for ($i = 0; $i < count($stops); $i++) {
390
if (count($subArray = explode($stops[$i], $sub)) > 1) {
391
$subArray[count($subArray) - 1] = ' ';
392
$sub = implode($stops[$i], $subArray);
393
break;
394
}
395
}
@@ -457,7 +459,7 @@ class B2S_Util {
457
return $result[$postLang];
458
}
459
460
- public static function createTimezoneList($selected = '',$region = DateTimeZone::ALL) {
461
$timezones = timezone_identifiers_list($region);
462
if (!$timezones) {
463
return false;
377
return date($slug, strtotime(date('Y-m-d ' . $time . ':00:00')));
378
}
379
380
+ public static function getExcerpt($text, $count = 400, $max = false, $add = false) {
381
//Bug: Converting json + PHP Extension
382
if (function_exists('mb_strlen') && function_exists('mb_substr')) {
383
if (mb_strlen($text, 'UTF-8') < $count) {
384
return trim($text);
385
}
386
+ $stops = array('.', ':');
387
$min = (int) $count / 2;
388
+ $max = ($max !== false) ? ($max - $min) : ($min - 1);
389
+ $sub = mb_substr($text, $min, $max, 'UTF-8');
390
for ($i = 0; $i < count($stops); $i++) {
391
if (count($subArray = explode($stops[$i], $sub)) > 1) {
392
$subArray[count($subArray) - 1] = ' ';
393
$sub = implode($stops[$i], $subArray);
394
+ $add = false;
395
break;
396
}
397
}
459
return $result[$postLang];
460
}
461
462
+ public static function createTimezoneList($selected = '', $region = DateTimeZone::ALL) {
463
$timezones = timezone_identifiers_list($region);
464
if (!$timezones) {
465
return false;
index.php CHANGED
@@ -7,13 +7,13 @@
7
* Author: Blog2Social, Adenion
8
* Text Domain: blog2social
9
* Domain Path: /languages
10
- * Version: 4.0.0
11
* Author URI: https://www.blog2social.com
12
* License: GPL2+
13
*/
14
-
15
//B2SDefine
16
- define('B2S_PLUGIN_VERSION', '400');
17
define('B2S_PLUGIN_LANGUAGE', serialize(array('de_DE', 'en_US')));
18
define('B2S_PLUGIN_DIR', plugin_dir_path(__FILE__));
19
define('B2S_PLUGIN_URL', plugin_dir_url(__FILE__));
7
* Author: Blog2Social, Adenion
8
* Text Domain: blog2social
9
* Domain Path: /languages
10
+ * Version: 4.1.0
11
* Author URI: https://www.blog2social.com
12
* License: GPL2+
13
*/
14
+
15
//B2SDefine
16
+ define('B2S_PLUGIN_VERSION', '410');
17
define('B2S_PLUGIN_LANGUAGE', serialize(array('de_DE', 'en_US')));
18
define('B2S_PLUGIN_DIR', plugin_dir_path(__FILE__));
19
define('B2S_PLUGIN_URL', plugin_dir_url(__FILE__));
languages/blog2social-de_DE.mo CHANGED
Binary file
languages/blog2social-de_DE.po CHANGED
@@ -4,7 +4,7 @@ msgstr ""
4
"Stable (latest release)\n"
5
"Report-Msgid-Bugs-To: \n"
6
"POT-Creation-Date: Thu May 18 2017 09:57:01 GMT+0200\n"
7
- "PO-Revision-Date: Thu May 18 2017 11:11:20 GMT+0200\n"
8
"Last-Translator: admin <s.buerger@adenion.de>\n"
9
"Language-Team: \n"
10
"Language: German\n"
@@ -23,6 +23,73 @@ msgstr ""
23
"esc_html_x:1,2c;comments_number_link:2,3;t:1;st:1;trans:1;transChoice:1,2\n"
24
"X-Loco-Target-Locale: de_DE"
25
26
#: ../../plugins/blog2social-v-3/includes/B2S/Network/Item.php:42 ../..
27
#: /plugins/blog2social-v-3/includes/B2S/Ship/Navbar.php:32
28
msgid "Default"
@@ -32,26 +99,27 @@ msgstr "Standard"
32
msgid "max. accounts"
33
msgstr "max. Accounts"
34
35
- #: ../../plugins/blog2social-v-3/includes/B2S/Network/Item.php:91
36
- msgid "get more"
37
- msgstr "mehr"
38
-
39
#: ../../plugins/blog2social-v-3/includes/B2S/Network/Item.php:96 ../..
40
#: /plugins/blog2social-v-3/includes/B2S/Network/Item.php:112 ../..
41
#: /plugins/blog2social-v-3/includes/B2S/Network/Item.php:114 ../..
42
- #: /plugins/blog2social-v-3/includes/B2S/Settings/Item.php:207 ../..
43
#: /plugins/blog2social-v-3/includes/B2S/Ship/Portale.php:35 ../..
44
- #: /plugins/blog2social-v-3/includes/Init.php:263
45
msgid "Profile"
46
msgstr "Profil"
47
48
#: ../../plugins/blog2social-v-3/includes/B2S/Network/Item.php:99 ../..
49
#: /plugins/blog2social-v-3/includes/B2S/Network/Item.php:99 ../..
50
- #: /plugins/blog2social-v-3/includes/B2S/Network/Item.php:132 ../..
51
#: /plugins/blog2social-v-3/includes/B2S/Network/Item.php:134 ../..
52
- #: /plugins/blog2social-v-3/includes/B2S/Settings/Item.php:210 ../..
53
#: /plugins/blog2social-v-3/includes/B2S/Ship/Portale.php:33 ../..
54
- #: /plugins/blog2social-v-3/includes/Init.php:263
55
msgid "Page"
56
msgstr "Seite"
57
@@ -62,11 +130,13 @@ msgstr "Du möchtest eine Netzwerk-Seite verbinden?"
62
63
#: ../../plugins/blog2social-v-3/includes/B2S/Network/Item.php:102 ../..
64
#: /plugins/blog2social-v-3/includes/B2S/Network/Item.php:102 ../..
65
- #: /plugins/blog2social-v-3/includes/B2S/Network/Item.php:152 ../..
66
- #: /plugins/blog2social-v-3/includes/B2S/Network/Item.php:154 ../..
67
- #: /plugins/blog2social-v-3/includes/B2S/Settings/Item.php:214 ../..
68
#: /plugins/blog2social-v-3/includes/B2S/Ship/Portale.php:29 ../..
69
- #: /plugins/blog2social-v-3/includes/Init.php:263
70
msgid "Group"
71
msgstr "Gruppe"
72
@@ -75,37 +145,25 @@ msgstr "Gruppe"
75
msgid "You want to connect a social media group?"
76
msgstr "Du möchtest eine Social-Media-Gruppe verbinden?"
77
78
- #: ../../plugins/blog2social-v-3/includes/B2S/Network/Item.php:117 ../..
79
- #: /plugins/blog2social-v-3/includes/B2S/Network/Item.php:137 ../..
80
- #: /plugins/blog2social-v-3/includes/B2S/Network/Item.php:156
81
- msgid "Delete"
82
- msgstr "Löschen"
83
-
84
- #: ../../plugins/blog2social-v-3/includes/B2S/Network/Item.php:118 ../..
85
- #: /plugins/blog2social-v-3/includes/B2S/Network/Item.php:138 ../..
86
- #: /plugins/blog2social-v-3/includes/B2S/Network/Item.php:157
87
- msgid "Reconnect"
88
- msgstr "Erneut verbinden"
89
-
90
- #: ../../plugins/blog2social-v-3/includes/B2S/Network/Item.php:119 ../..
91
- #: /plugins/blog2social-v-3/includes/B2S/Network/Item.php:158
92
msgid "Authorization is interrupted since"
93
msgstr "Autorisierung ist unterbrochen seit"
94
95
- #: ../../plugins/blog2social-v-3/includes/B2S/Network/Item.php:121 ../..
96
- #: /plugins/blog2social-v-3/includes/B2S/Network/Item.php:142 ../..
97
- #: /plugins/blog2social-v-3/includes/B2S/Network/Item.php:161
98
msgid "To reactivate this social media connection,"
99
msgstr "Um diese Social Media Verbindung zu reaktivieren,"
100
101
- #: ../../plugins/blog2social-v-3/includes/B2S/Network/Item.php:121 ../..
102
- #: /plugins/blog2social-v-3/includes/B2S/Network/Item.php:142 ../..
103
- #: /plugins/blog2social-v-3/includes/B2S/Network/Item.php:161 ../..
104
#: /plugins/blog2social-v-3/includes/B2S/Ship/Image.php:19
105
msgid "please upgrade"
106
msgstr "Bitte upgraden"
107
108
- #: ../../plugins/blog2social-v-3/includes/B2S/Network/Item.php:139
109
msgid "Authorization is interrupted since"
110
msgstr "Autorisierung ist unterbrochen seit"
111
@@ -116,24 +174,23 @@ msgstr "alle Autoren"
116
#: ../../plugins/blog2social-v-3/includes/B2S/Post/Filter.php:49 ../..
117
#: /plugins/blog2social-v-3/includes/B2S/Post/Item.php:185 ../..
118
#: /plugins/blog2social-v-3/includes/B2S/Ship/Save.php:174 ../..
119
- #: /plugins/blog2social-v-3/includes/PRG/Post/Filter.php:40 ../..
120
- #: /plugins/blog2social-v-3/includes/PRG/Post/Item.php:80 ../..
121
#: /plugins/blog2social-v-3/views/b2s/ship.php:12
122
msgid "published"
123
msgstr "veröffentlicht"
124
125
#: ../../plugins/blog2social-v-3/includes/B2S/Post/Filter.php:49 ../..
126
#: /plugins/blog2social-v-3/includes/B2S/Post/Item.php:185 ../..
127
- #: /plugins/blog2social-v-3/includes/PRG/Post/Filter.php:40 ../..
128
- #: /plugins/blog2social-v-3/includes/PRG/Post/Item.php:80 ../..
129
#: /plugins/blog2social-v-3/views/b2s/ship.php:12
130
msgid "scheduled"
131
msgstr "geplant"
132
133
#: ../../plugins/blog2social-v-3/includes/B2S/Post/Filter.php:49 ../..
134
#: /plugins/blog2social-v-3/includes/B2S/Post/Item.php:185 ../..
135
- #: /plugins/blog2social-v-3/includes/PRG/Post/Filter.php:40 ../..
136
- #: /plugins/blog2social-v-3/includes/PRG/Post/Item.php:80 ../..
137
#: /plugins/blog2social-v-3/views/b2s/ship.php:12
138
msgid "draft"
139
msgstr "Entwurf"
@@ -156,12 +213,13 @@ msgstr "älteste zuerst"
156
msgid "all categories & tags"
157
msgstr "alle Kategorien & Schlagwörter"
158
159
- #: ../../plugins/blog2social-v-3/includes/B2S/Post/Filter.php:108
160
msgid "all post types"
161
msgstr "alle Typen"
162
163
#: ../../plugins/blog2social-v-3/includes/B2S/Post/Filter.php:129 ../..
164
- #: /plugins/blog2social-v-3/includes/PRG/Post/Filter.php:54
165
msgid "Search Title"
166
msgstr "Suche nach Titel"
167
@@ -175,12 +233,12 @@ msgid "show calendar"
175
msgstr "Planungskalender anzeigen"
176
177
#: ../../plugins/blog2social-v-3/includes/B2S/Post/Filter.php:152 ../..
178
- #: /plugins/blog2social-v-3/includes/PRG/Post/Filter.php:64
179
msgid "sort"
180
msgstr "sortieren"
181
182
#: ../../plugins/blog2social-v-3/includes/B2S/Post/Filter.php:153 ../..
183
- #: /plugins/blog2social-v-3/includes/PRG/Post/Filter.php:65
184
msgid "reset"
185
msgstr "zurücksetzen"
186
@@ -201,12 +259,12 @@ msgid "last shared on social media"
201
msgstr "zuletzt auf Social Media geteilt"
202
203
#: ../../plugins/blog2social-v-3/includes/B2S/Post/Item.php:218 ../..
204
- #: /plugins/blog2social-v-3/includes/Init.php:84
205
msgid "Share on Social Media"
206
msgstr "auf Social Media teilen"
207
208
#: ../../plugins/blog2social-v-3/includes/B2S/Post/Item.php:220 ../..
209
- #: /plugins/blog2social-v-3/includes/PRG/Post/Item.php:112
210
msgid "Author"
211
msgstr "Autor"
212
@@ -216,8 +274,8 @@ msgid "on blog"
216
msgstr "auf dem Blog"
217
218
#: ../../plugins/blog2social-v-3/includes/B2S/Post/Item.php:237 ../..
219
- #: /plugins/blog2social-v-3/views/b2s/ship.php:214 ../../plugins/blog2social-v-
220
- #: 3/views/b2s/ship.php:216
221
msgid "Re-share this post"
222
msgstr "Diesen Beitrag nochmal teilen"
223
@@ -284,20 +342,15 @@ msgid "scheduled by"
284
msgstr "geplant von "
285
286
#: ../../plugins/blog2social-v-3/includes/B2S/Post/Item.php:447 ../..
287
- #: /plugins/blog2social-v-3/includes/B2S/Post/Item.php:461
288
- msgid "You want to delete an scheduled post entry?"
289
- msgstr "Du möchtest einen geplanten Beitrag löschen?"
290
-
291
- #: ../../plugins/blog2social-v-3/includes/B2S/Post/Item.php:448 ../..
292
- #: /plugins/blog2social-v-3/includes/B2S/Post/Item.php:462
293
msgid "delete scheduling"
294
msgstr "Planung löschen"
295
296
- #: ../../plugins/blog2social-v-3/includes/B2S/Post/Item.php:452
297
msgid "You want to change the time for your scheduled post?"
298
msgstr "Du möchtest die Zeit zu einem geplanten Beitrag ändern?"
299
300
- #: ../../plugins/blog2social-v-3/includes/B2S/Post/Item.php:453
301
msgid "change time"
302
msgstr "Zeitpunkt ändern"
303
@@ -306,7 +359,7 @@ msgid "Account"
306
msgstr "Konto"
307
308
#: ../../plugins/blog2social-v-3/includes/B2S/Settings/Item.php:68 ../..
309
- #: /plugins/blog2social-v-3/views/b2s/settings.php:117
310
msgid "Personal Time Zone"
311
msgstr "Persönliche Zeitzone"
312
@@ -356,20 +409,15 @@ msgstr "b2s.pm Link Shortener aktivieren"
356
msgid "allow shortcodes in my post"
357
msgstr "berücksichtige Shortcodes in meinen Beiträgen"
358
359
- #: ../../plugins/blog2social-v-3/includes/B2S/Settings/Item.php:128
360
- msgid "Facebook post format"
361
- msgstr "Facebook postformat"
362
-
363
- #: ../../plugins/blog2social-v-3/includes/B2S/Settings/Item.php:134 ../..
364
- #: /plugins/blog2social-v-3/includes/B2S/Settings/Item.php:162 ../..
365
- #: /plugins/blog2social-v-3/includes/B2S/Settings/Item.php:189 ../..
366
- #: /plugins/blog2social-v-3/views/b2s/settings.php:84
367
msgid "Link Post"
368
msgstr "Link-Beitrag"
369
370
- #: ../../plugins/blog2social-v-3/includes/B2S/Settings/Item.php:139 ../..
371
- #: /plugins/blog2social-v-3/includes/B2S/Settings/Item.php:167 ../..
372
- #: /plugins/blog2social-v-3/views/b2s/settings.php:85
373
msgid ""
374
"The link post format displays posts title, link address and the first one or "
375
"two sentences of the post. The networks scan this information from your META "
@@ -384,15 +432,14 @@ msgstr ""
384
"falls du kein Beitragsbild in WordPress ausgewählt hast. Das Bild verlinkt "
385
"automatisch auf Deinen Blogbeitrag."
386
387
- #: ../../plugins/blog2social-v-3/includes/B2S/Settings/Item.php:144 ../..
388
- #: /plugins/blog2social-v-3/includes/B2S/Settings/Item.php:172 ../..
389
- #: /plugins/blog2social-v-3/includes/B2S/Settings/Item.php:189 ../..
390
- #: /plugins/blog2social-v-3/views/b2s/settings.php:89
391
msgid "Photo Post"
392
msgstr "Bild-Beitrag"
393
394
- #: ../../plugins/blog2social-v-3/includes/B2S/Settings/Item.php:149 ../..
395
- #: /plugins/blog2social-v-3/includes/B2S/Settings/Item.php:177
396
msgid ""
397
"A photo or image post displays the selected image in the one-page preview of "
398
"Blog2Social and your comment above the image. The image links to the image "
@@ -409,36 +456,33 @@ msgstr ""
409
"Fotoalben oder Deiner persönlichen Galerie im Netzwerk gespeichert wird. In "
410
"Facebook kannst du den Namen Deiner Alben beliebig anpassen."
411
412
- #: ../../plugins/blog2social-v-3/includes/B2S/Settings/Item.php:156
413
- msgid "Twitter post format"
414
- msgstr "Twitter postformat"
415
-
416
- #: ../../plugins/blog2social-v-3/includes/B2S/Settings/Item.php:221 ../..
417
#: /plugins/blog2social-v-3/views/b2s/post.sched.php:24
418
msgid "Uhr"
419
msgstr "Uhr"
420
421
- #: ../../plugins/blog2social-v-3/includes/B2S/Settings/Item.php:225
422
msgid "Best times to post"
423
msgstr "Beste Zeiten"
424
425
- #: ../../plugins/blog2social-v-3/includes/B2S/Settings/Item.php:238 ../..
426
#: /plugins/blog2social-v-3/views/b2s/settings.php:44 ../../plugins/blog2social-v-
427
- #: 3/views/b2s/ship.php:49 ../../plugins/blog2social-v-3/views/b2s/ship.php:359 ..
428
#: /../plugins/blog2social-v-3/views/b2s/html/footer.phtml:135
429
msgid "You want to schedule your posts and use the Best Time Scheduler?"
430
msgstr ""
431
"Du möchtest die Veröffentlichung Deiner Posts planen und den Beste Zeiten "
432
"Manager benutzen?"
433
434
- #: ../../plugins/blog2social-v-3/includes/B2S/Settings/Item.php:240 ../..
435
#: /plugins/blog2social-v-3/views/b2s/post.sched.php:90 ../../plugins/blog2social-
436
- #: v-3/views/b2s/settings.php:46 ../../plugins/blog2social-v-3/views/b2s/ship.php:
437
- #: 409
438
msgid "save"
439
msgstr "speichern"
440
441
- #: ../../plugins/blog2social-v-3/includes/B2S/Settings/Item.php:245
442
msgid "Sorry, we can not load your data at the moment..."
443
msgstr "Sorry, derzeit können wir Deine Daten nicht laden. Versuche es erneut."
444
@@ -537,126 +581,126 @@ msgstr "Netzwerk unterstützt keine Bilder für Seiten"
537
msgid "post format"
538
msgstr "Postformat"
539
540
- #: ../../plugins/blog2social-v-3/includes/B2S/Ship/Item.php:206
541
msgid "Insert full-text"
542
msgstr "ganzen Text einfügen"
543
544
- #: ../../plugins/blog2social-v-3/includes/B2S/Ship/Item.php:208
545
msgid "Delete text"
546
msgstr "Text löschen"
547
548
- #: ../../plugins/blog2social-v-3/includes/B2S/Ship/Item.php:243 ../..
549
- #: /plugins/blog2social-v-3/includes/B2S/Ship/Item.php:261 ../..
550
- #: /plugins/blog2social-v-3/includes/B2S/Ship/Item.php:279 ../..
551
- #: /plugins/blog2social-v-3/includes/B2S/Ship/Item.php:297 ../..
552
- #: /plugins/blog2social-v-3/includes/B2S/Ship/Item.php:312
553
msgid "Write something about your post..."
554
msgstr "Schreibe etwas..."
555
556
- #: ../../plugins/blog2social-v-3/includes/B2S/Ship/Item.php:250 ../..
557
- #: /plugins/blog2social-v-3/includes/B2S/Ship/Item.php:268 ../..
558
- #: /plugins/blog2social-v-3/includes/B2S/Ship/Item.php:286 ../..
559
- #: /plugins/blog2social-v-3/includes/B2S/Ship/Item.php:335
560
msgid "Change image for this network"
561
msgstr "Bild für dieses Netzwerk ändern"
562
563
- #: ../../plugins/blog2social-v-3/includes/B2S/Ship/Item.php:322
564
msgid "required"
565
msgstr "erforderlich"
566
567
- #: ../../plugins/blog2social-v-3/includes/B2S/Ship/Item.php:342 ../..
568
- #: /plugins/blog2social-v-3/includes/B2S/Ship/Item.php:344
569
msgid "Link"
570
msgstr "Link"
571
572
- #: ../../plugins/blog2social-v-3/includes/B2S/Ship/Item.php:392
573
msgid "The Headline..."
574
msgstr "Die Überschrift..."
575
576
- #: ../../plugins/blog2social-v-3/includes/B2S/Ship/Item.php:397
577
msgid "Hashtags"
578
msgstr "Hashtags"
579
580
- #: ../../plugins/blog2social-v-3/includes/B2S/Ship/Item.php:427
581
msgid "Share Now"
582
msgstr "Sofort teilen"
583
584
- #: ../../plugins/blog2social-v-3/includes/B2S/Ship/Item.php:429
585
msgid "Schedule post once"
586
msgstr "Beitrag einmal planen"
587
588
- #: ../../plugins/blog2social-v-3/includes/B2S/Ship/Item.php:431
589
msgid "Schedule post recurrently"
590
msgstr "Beitrag mehrfach planen"
591
592
- #: ../../plugins/blog2social-v-3/includes/B2S/Ship/Item.php:456
593
msgid "Duration"
594
msgstr "Dauer"
595
596
- #: ../../plugins/blog2social-v-3/includes/B2S/Ship/Item.php:457 ../..
597
- #: /plugins/blog2social-v-3/includes/B2S/Ship/Item.php:472
598
msgid "Date"
599
msgstr "Startdatum"
600
601
- #: ../../plugins/blog2social-v-3/includes/B2S/Ship/Item.php:458 ../..
602
- #: /plugins/blog2social-v-3/includes/B2S/Ship/Item.php:473
603
msgid "Time"
604
msgstr "Zeit"
605
606
- #: ../../plugins/blog2social-v-3/includes/B2S/Ship/Item.php:459
607
msgid "Days"
608
msgstr "Tage"
609
610
- #: ../../plugins/blog2social-v-3/includes/B2S/Ship/Item.php:467
611
msgid "Week"
612
msgstr "Woche"
613
614
- #: ../../plugins/blog2social-v-3/includes/B2S/Ship/Item.php:467
615
msgid "Weeks"
616
msgstr "Wochen"
617
618
- #: ../../plugins/blog2social-v-3/includes/B2S/Ship/Item.php:477
619
msgid "Mon"
620
msgstr "Mo"
621
622
- #: ../../plugins/blog2social-v-3/includes/B2S/Ship/Item.php:478
623
msgid "Tue"
624
msgstr "Di"
625
626
- #: ../../plugins/blog2social-v-3/includes/B2S/Ship/Item.php:479
627
msgid "Wed"
628
msgstr "Mi"
629
630
- #: ../../plugins/blog2social-v-3/includes/B2S/Ship/Item.php:480
631
msgid "Thu"
632
msgstr "Do"
633
634
- #: ../../plugins/blog2social-v-3/includes/B2S/Ship/Item.php:481
635
msgid "Fri"
636
msgstr "Fr"
637
638
- #: ../../plugins/blog2social-v-3/includes/B2S/Ship/Item.php:482
639
msgid "Sat"
640
msgstr "Sa"
641
642
- #: ../../plugins/blog2social-v-3/includes/B2S/Ship/Item.php:483
643
msgid "Sun"
644
msgstr "So"
645
646
- #: ../../plugins/blog2social-v-3/includes/B2S/Ship/Item.php:488 ../..
647
#: /plugins/blog2social-v-3/views/b2s/network.php:170
648
msgid "delete"
649
msgstr "löschen"
650
651
- #: ../../plugins/blog2social-v-3/includes/B2S/Ship/Item.php:489
652
msgid "Add Posting Time"
653
msgstr "neue Terminserie anlegen"
654
655
- #: ../../plugins/blog2social-v-3/includes/B2S/Ship/Item.php:495
656
msgid "Apply Settings To All Networks"
657
msgstr "Planung für alle Netzwerke übernehmen"
658
659
- #: ../../plugins/blog2social-v-3/includes/B2S/Ship/Item.php:496
660
msgid "Save Settings As Default"
661
msgstr "Planung dauerhaft speichern"
662
@@ -676,20 +720,20 @@ msgstr "Anzahl geteilter Beiträge"
676
msgid "Number of scheduled posts"
677
msgstr "Anzahl der geplanten Posts"
678
679
- #: ../../plugins/blog2social-v-3/includes/Init.php:235
680
msgid "This post will be shared into your social media on"
681
msgstr "Dein Beitrag ist zur Veröffentlichung in den Social Media geplant ab dem"
682
683
- #: ../../plugins/blog2social-v-3/includes/Init.php:235 ../../plugins/blog2social-
684
- #: v-3/includes/Init.php:237
685
msgid "show details"
686
msgstr "siehe Details"
687
688
- #: ../../plugins/blog2social-v-3/includes/Init.php:237
689
msgid "This post will be shared on social media in 2-3 minutes!"
690
msgstr "Dein Beitrag wird in ca. 2-3 Minuten in die Social Media eingestellt!"
691
692
- #: ../../plugins/blog2social-v-3/includes/Init.php:241
693
msgid ""
694
"Please, make sure that your post are publish on this blog on this moment. "
695
"Then you can auto post your post with Blog2social."
@@ -697,8 +741,8 @@ msgstr ""
697
"Bitte stelle sicher, dass Dein Beitrag in diesem Moment veröffentlicht wurde."
698
" Dann kannst Du Deinen Beitrag automatisch mit Blog2Social posten."
699
700
- #: ../../plugins/blog2social-v-3/includes/Init.php:244 ../../plugins/blog2social-
701
- #: v-3/includes/MetaBox.php:56
702
msgid ""
703
"There are no authorizations for your selected profile. Please, authorize "
704
"with a social network or select a other profile."
@@ -706,23 +750,23 @@ msgstr ""
706
"Dein ausgewähltes Profil hat keine Autorisierungen. Bitte, verbinde Dich "
707
"mit einem Netzwerk oder wähle ein anderes Profil aus. "
708
709
- #: ../../plugins/blog2social-v-3/includes/Init.php:256
710
msgid "Upgrade to Premium"
711
msgstr "Premium freischalten"
712
713
- #: ../../plugins/blog2social-v-3/includes/Init.php:264
714
msgid "Your post could not be posted."
715
msgstr "Dein Post ist nicht vom Netzwerk veröffentlicht worden."
716
717
- #: ../../plugins/blog2social-v-3/includes/Init.php:265
718
msgid "Your authorization has expired. Please check your authorization."
719
msgstr "Deine Autorisierung ist abgelaufen. Bitte überprüfe deine Autorisierung."
720
721
- #: ../../plugins/blog2social-v-3/includes/Init.php:266
722
msgid "The network has marked the post as spam or abusive."
723
msgstr "Das Netzwerk hat Deinen Post als Spam oder missbräuchlich markiert."
724
725
- #: ../../plugins/blog2social-v-3/includes/Init.php:267
726
msgid ""
727
"We don't have the permission to publish your post. Please check your "
728
"authorization."
@@ -730,7 +774,7 @@ msgstr ""
730
"Wir haben nicht Deine Erlaubnis, den Post zu veröffentlichen. Bitte "
731
"überprüfe deine Autorisierung."
732
733
- #: ../../plugins/blog2social-v-3/includes/Init.php:268
734
msgid ""
735
"Your authorization is interrupted. Please check your authorization. Please "
736
"see <a target=\"_blank\" href=\"https://www.blog2social."
@@ -740,15 +784,15 @@ msgstr ""
740
"Siehe <a target=\"_blank\" href=\"https://www.blog2social."
741
"com/de/faq/category/9/fehlermeldungen-und-loesungen.html\">FAQ</a>."
742
743
- #: ../../plugins/blog2social-v-3/includes/Init.php:269
744
msgid "Your limit is reached for today."
745
msgstr "Du hast das Veröffentlichungs-Limit mit Deinem Account für Heute erreicht."
746
747
- #: ../../plugins/blog2social-v-3/includes/Init.php:270
748
msgid "Your post could not be posted, because your image is not available."
749
msgstr "Das Netzwerk kann Dein Bild nicht verarbeiten."
750
751
- #: ../../plugins/blog2social-v-3/includes/Init.php:271
752
msgid ""
753
"The network has blocked your account. Please see <a target=\"_blank\" "
754
"href=\"https://www.blog2social.com/en/faq/category/9/troubleshooting-for-"
@@ -758,7 +802,7 @@ msgstr ""
758
"href=\"https://www.blog2social.com/de/faq/category/9/fehlermeldungen-und-"
759
"loesungen.html\">FAQ</a>."
760
761
- #: ../../plugins/blog2social-v-3/includes/Init.php:272
762
msgid ""
763
"The number of images is reached. Please see <a target=\"_blank\" href=\"https:"
764
"//www.blog2social.com/en/faq/category/9/troubleshooting-for-error-messages."
@@ -768,11 +812,11 @@ msgstr ""
768
"href=\"https://www.blog2social.com/de/faq/category/9/fehlermeldungen-und-"
769
"loesungen.html\">FAQ</a>."
770
771
- #: ../../plugins/blog2social-v-3/includes/Init.php:273
772
msgid "Your limit has temporarily reached for this network."
773
msgstr "Du hast das Veröffentlichungs-Limit mit Deinem Account kurzzeitig erreicht."
774
775
- #: ../../plugins/blog2social-v-3/includes/Init.php:274
776
msgid ""
777
"The network can not publish special characters such as Emoji. Please see <a "
778
"target=\"_blank\" href=\"https://www.blog2social."
@@ -782,57 +826,57 @@ msgstr ""
782
"//www.blog2social.com/de/faq/category/9/fehlermeldungen-und-loesungen."
783
"html\">FAQ</a>."
784
785
- #: ../../plugins/blog2social-v-3/includes/Init.php:275
786
msgid "Your post is a duplicate."
787
msgstr "Du kannst auf dem Netzwerke keine Duplikate veröffentlichen."
788
789
- #: ../../plugins/blog2social-v-3/includes/Init.php:276
790
msgid "The network are required a public url to your post."
791
msgstr "Das Netzwerk fordert, dass Dein Link zu Deinem Beitrag erreichbar ist."
792
793
- #: ../../plugins/blog2social-v-3/includes/Init.php:277
794
msgid "The network says, that your group is not exisits."
795
msgstr "Das Netzwerk konnte Deine angegebene Gruppe nicht finden."
796
797
- #: ../../plugins/blog2social-v-3/includes/Init.php:334 ../../plugins/blog2social-
798
- #: v-3/includes/Init.php:364
799
msgid "Dashboard"
800
msgstr "Dashboard"
801
802
- #: ../../plugins/blog2social-v-3/includes/Init.php:335 ../../plugins/blog2social-
803
- #: v-3/includes/Init.php:335 ../../plugins/blog2social-v-3/includes/Init.php:371
804
msgid "Posts & Sharing"
805
msgstr "Beiträge"
806
807
- #: ../../plugins/blog2social-v-3/includes/Init.php:336 ../../plugins/blog2social-
808
- #: v-3/includes/Init.php:336 ../../plugins/blog2social-v-3/includes/Init.php:378 .
809
#: ./../plugins/blog2social-v-3/views/b2s/network.php:17
810
msgid "Networks"
811
msgstr "Netzwerke"
812
813
- #: ../../plugins/blog2social-v-3/includes/Init.php:337 ../../plugins/blog2social-
814
- #: v-3/includes/Init.php:337 ../../plugins/blog2social-v-3/includes/Init.php:384 .
815
#: ./../plugins/blog2social-v-3/views/b2s/ship.php:53 ../../plugins/blog2social-v-
816
- #: 3/views/b2s/ship.php:262
817
msgid "Settings"
818
msgstr "Einstellungen"
819
820
- #: ../../plugins/blog2social-v-3/includes/Init.php:338 ../../plugins/blog2social-
821
- #: v-3/includes/Init.php:338 ../../plugins/blog2social-v-3/includes/Init.php:390
822
msgid "PR-Service"
823
msgstr "PR-Service"
824
825
- #: ../../plugins/blog2social-v-3/includes/Init.php:355
826
msgid "Blog2Social"
827
msgstr "Blog2Social"
828
829
- #: ../../plugins/blog2social-v-3/includes/Init.php:603 ../../plugins/blog2social-
830
- #: v-3/includes/Init.php:756
831
msgid "or"
832
msgstr "oder"
833
834
- #: ../../plugins/blog2social-v-3/includes/Init.php:603 ../../plugins/blog2social-
835
- #: v-3/includes/Init.php:756
836
msgid "back to install plugins"
837
msgstr "zurück zur Pluginübersicht"
838
@@ -840,16 +884,16 @@ msgstr "zurück zur Pluginübersicht"
840
msgid "last auto-post:"
841
msgstr "letzter Auto-Post:"
842
843
- #: ../../plugins/blog2social-v-3/includes/MetaBox.php:54 ../..
844
- #: /plugins/blog2social-v-3/views/b2s/ship.php:452 ../../plugins/blog2social-v-
845
- #: 3/views/b2s/html/header.phtml:18
846
msgid "The connection to the server failed. Try again!"
847
msgstr ""
848
"Eine Verbindung zum Server konnte nicht hergestellt werden. Versuche es "
849
"erneut!"
850
851
- #: ../../plugins/blog2social-v-3/includes/MetaBox.php:55 ../..
852
- #: /plugins/blog2social-v-3/views/b2s/html/header.phtml:13
853
msgid ""
854
"WordPress uses heartbeats by default, Blog2Social as well. Please enable "
855
"heartbeats for using Blog2Social!"
@@ -857,12 +901,12 @@ msgstr ""
857
"WordPress verwendet standardmäßig den Heartbeat und Blog2Social auch. "
858
"Aktiviere den Heartbeat damit Du Blog2Social problemlos nutzen kannst."
859
860
- #: ../../plugins/blog2social-v-3/includes/MetaBox.php:56 ../..
861
- #: /plugins/blog2social-v-3/includes/MetaBox.php:134
862
msgid "Network settings"
863
msgstr "Netzwerkeinstellungen"
864
865
- #: ../../plugins/blog2social-v-3/includes/MetaBox.php:57
866
msgid ""
867
"Your post is still on draft or pending status. Please make sure that your "
868
"post is published or scheduled to be published on this blog. You can then "
@@ -872,7 +916,7 @@ msgstr ""
872
"geplant ist. Dann kannst Du Deinen Beitrag mit Blog2Social anpassen und "
873
"planen."
874
875
- #: ../../plugins/blog2social-v-3/includes/MetaBox.php:58
876
msgid ""
877
"Notice: Please make sure, that your website address is reachable. The Social "
878
"Networks do not allow postings from local installations."
@@ -880,60 +924,60 @@ msgstr ""
880
"Hinweis: Bitte stelle sicher, dass Dein Blog von außen erreichbar ist. Bei "
881
"Fragen wende Dich bitte an unseren Support."
882
883
- #: ../../plugins/blog2social-v-3/includes/MetaBox.php:59
884
msgid "You want to auto post your blog post?"
885
msgstr "Du möchtest Deinen Beitrag automatisch posten?"
886
887
- #: ../../plugins/blog2social-v-3/includes/MetaBox.php:59 ../..
888
- #: /plugins/blog2social-v-3/includes/MetaBox.php:108 ../../plugins/blog2social-v-
889
#: 3/views/b2s/network.php:116 ../../plugins/blog2social-v-3/views/b2s/ship.php:
890
- #: 293 ../../plugins/blog2social-v-3/views/b2s/ship.php:327 ../..
891
- #: /plugins/blog2social-v-3/views/b2s/ship.php:374 ../../plugins/blog2social-v-
892
#: 3/views/b2s/html/footer.phtml:38 ../../plugins/blog2social-v-
893
#: 3/views/b2s/html/footer.phtml:150 ../../plugins/blog2social-v-
894
#: 3/views/b2s/html/footer.phtml:208 ../../plugins/blog2social-v-
895
- #: 3/views/b2s/html/header.phtml:137
896
msgid "Upgrade to PREMIUM"
897
msgstr "Jetzt auf Premium upgraden"
898
899
- #: ../../plugins/blog2social-v-3/includes/MetaBox.php:60
900
msgid "Custom Sharing & Scheduling"
901
msgstr "Anpassen & Planen"
902
903
- #: ../../plugins/blog2social-v-3/includes/MetaBox.php:60 ../..
904
- #: /plugins/blog2social-v-3/includes/MetaBox.php:64
905
msgid "Info"
906
msgstr "Info"
907
908
- #: ../../plugins/blog2social-v-3/includes/MetaBox.php:61
909
msgid "Customize & Schedule Social Media Posts"
910
msgstr "Social Media Posts anpassen & planen"
911
912
- #: ../../plugins/blog2social-v-3/includes/MetaBox.php:64 ../..
913
- #: /plugins/blog2social-v-3/views/b2s/html/header.phtml:188
914
msgid "Social Media Auto-Posting"
915
msgstr "Social Media Auto-Posting"
916
917
- #: ../../plugins/blog2social-v-3/includes/MetaBox.php:67
918
msgid "enable Auto-Posting"
919
msgstr "Auto-Posting aktivieren"
920
921
- #: ../../plugins/blog2social-v-3/includes/MetaBox.php:73 ../..
922
#: /plugins/blog2social-v-3/views/b2s/network.php:51 ../../plugins/blog2social-v-
923
#: 3/views/b2s/network.php:153 ../../plugins/blog2social-v-3/views/b2s/post.php:
924
#: 37 ../../plugins/blog2social-v-3/views/b2s/post.publish.php:40 ../..
925
#: /plugins/blog2social-v-3/views/b2s/post.sched.php:48 ../../plugins/blog2social-
926
#: v-3/views/b2s/ship.php:153 ../../plugins/blog2social-v-3/views/b2s/ship.php:
927
- #: 451 ../../plugins/blog2social-v-3/views/prg/html/header.phtml:81
928
msgid "Loading..."
929
msgstr "Lade Daten..."
930
931
- #: ../../plugins/blog2social-v-3/includes/MetaBox.php:81 ../..
932
#: /plugins/blog2social-v-3/views/b2s/html/footer.phtml:180
933
msgid "Blog2Social: Social Media Auto-Posting"
934
msgstr "Blog2Social: Social Media Auto-Posting"
935
936
- #: ../../plugins/blog2social-v-3/includes/MetaBox.php:85 ../..
937
#: /plugins/blog2social-v-3/views/b2s/html/footer.phtml:184
938
msgid ""
939
"You have 2 general options to define the date and time to share your blog "
@@ -942,12 +986,12 @@ msgstr ""
942
"Dir stehen grundsätzlich 2 Möglichkeiten zur Verfügung, per Auto-Posting "
943
"Deine Blogbeiträge auf Social Media zu teilen: "
944
945
- #: ../../plugins/blog2social-v-3/includes/MetaBox.php:86 ../..
946
#: /plugins/blog2social-v-3/views/b2s/html/footer.phtml:185
947
msgid "1. Immediately after publishing your blog post"
948
msgstr "Sofort nach Veröffentlichung Deines Blogbeitrags "
949
950
- #: ../../plugins/blog2social-v-3/includes/MetaBox.php:87 ../..
951
#: /plugins/blog2social-v-3/views/b2s/html/footer.phtml:186
952
msgid ""
953
"Published blog posts: If you publish your blog post with click on publish in "
@@ -958,7 +1002,7 @@ msgstr ""
958
"auf “veröffentlichen” im Beitrags-Editor Deines Blogs sofort veröffentlichst,"
959
" teilt Blog2Social Deinen Blogbeitrag unmittelbar auf Social Media."
960
961
- #: ../../plugins/blog2social-v-3/includes/MetaBox.php:88 ../..
962
#: /plugins/blog2social-v-3/views/b2s/html/footer.phtml:187
963
msgid ""
964
"Scheduled blog posts: If you schedule your blog post with click on schedule "
@@ -970,7 +1014,7 @@ msgstr ""
970
"Deines Blogs klickst, teilt Blog2Social Deinen Blogbeitrag direkt nach der "
971
"Veröffentlichung auf Social Media. "
972
973
- #: ../../plugins/blog2social-v-3/includes/MetaBox.php:89 ../..
974
#: /plugins/blog2social-v-3/views/b2s/html/footer.phtml:188
975
msgid ""
976
"2. Schedule your social media posts for a specific date and time If you want "
@@ -983,50 +1027,50 @@ msgstr ""
983
"abweichen, wähle die Option “zu bestimmten Zeiten” und lege das Datum und "
984
"die Uhrzeit fest. "
985
986
- #: ../../plugins/blog2social-v-3/includes/MetaBox.php:93 ../..
987
#: /plugins/blog2social-v-3/views/b2s/html/footer.phtml:193
988
msgid "You want to auto-post your blog post?"
989
msgstr "Du möchtest Deinen Beitrag automatisch posten?"
990
991
- #: ../../plugins/blog2social-v-3/includes/MetaBox.php:94 ../..
992
#: /plugins/blog2social-v-3/includes/Notice.php:29 ../../plugins/blog2social-v-
993
#: 3/views/b2s/network.php:102 ../../plugins/blog2social-v-3/views/b2s/ship.php:
994
- #: 279 ../../plugins/blog2social-v-3/views/b2s/ship.php:313 ../..
995
- #: /plugins/blog2social-v-3/views/b2s/ship.php:360 ../../plugins/blog2social-v-
996
#: 3/views/b2s/html/footer.phtml:24 ../../plugins/blog2social-v-
997
#: 3/views/b2s/html/footer.phtml:136 ../../plugins/blog2social-v-
998
#: 3/views/b2s/html/footer.phtml:194
999
msgid "With Blog2Social Premium you can:"
1000
msgstr "Mit Blog2Social kannst Du:"
1001
1002
- #: ../../plugins/blog2social-v-3/includes/MetaBox.php:97 ../..
1003
#: /plugins/blog2social-v-3/includes/Notice.php:30 ../../plugins/blog2social-v-
1004
#: 3/views/b2s/network.php:105 ../../plugins/blog2social-v-3/views/b2s/ship.php:
1005
- #: 282 ../../plugins/blog2social-v-3/views/b2s/ship.php:316 ../..
1006
- #: /plugins/blog2social-v-3/views/b2s/ship.php:363 ../../plugins/blog2social-v-
1007
#: 3/views/b2s/html/footer.phtml:27 ../../plugins/blog2social-v-
1008
#: 3/views/b2s/html/footer.phtml:139 ../../plugins/blog2social-v-
1009
#: 3/views/b2s/html/footer.phtml:197 ../../plugins/blog2social-v-
1010
- #: 3/views/b2s/html/header.phtml:189
1011
msgid "Post on pages and groups"
1012
msgstr "Poste auf Seiten und in Gruppen"
1013
1014
- #: ../../plugins/blog2social-v-3/includes/MetaBox.php:98 ../..
1015
#: /plugins/blog2social-v-3/includes/Notice.php:31 ../../plugins/blog2social-v-
1016
#: 3/views/b2s/network.php:106 ../../plugins/blog2social-v-3/views/b2s/ship.php:
1017
- #: 283 ../../plugins/blog2social-v-3/views/b2s/ship.php:317 ../..
1018
- #: /plugins/blog2social-v-3/views/b2s/ship.php:364 ../../plugins/blog2social-v-
1019
#: 3/views/b2s/html/footer.phtml:28 ../../plugins/blog2social-v-
1020
#: 3/views/b2s/html/footer.phtml:140 ../../plugins/blog2social-v-
1021
#: 3/views/b2s/html/footer.phtml:198
1022
msgid "Share on multiple profiles, pages and groups"
1023
msgstr "Auf mehreren Profilen, Seiten und Gruppen teilen"
1024
1025
- #: ../../plugins/blog2social-v-3/includes/MetaBox.php:99 ../..
1026
#: /plugins/blog2social-v-3/includes/Notice.php:32 ../../plugins/blog2social-v-
1027
#: 3/views/b2s/network.php:107 ../../plugins/blog2social-v-3/views/b2s/ship.php:
1028
- #: 284 ../../plugins/blog2social-v-3/views/b2s/ship.php:318 ../..
1029
- #: /plugins/blog2social-v-3/views/b2s/ship.php:365 ../../plugins/blog2social-v-
1030
#: 3/views/b2s/html/footer.phtml:29 ../../plugins/blog2social-v-
1031
#: 3/views/b2s/html/footer.phtml:63 ../../plugins/blog2social-v-
1032
#: 3/views/b2s/html/footer.phtml:141 ../../plugins/blog2social-v-
@@ -1036,22 +1080,22 @@ msgstr ""
1036
" Auto-posten und Auto-planen: Beiträge automatisch bei Veröffentlichung oder "
1037
"Aktualisierung posten und zeitversetzt planen"
1038
1039
- #: ../../plugins/blog2social-v-3/includes/MetaBox.php:100 ../..
1040
#: /plugins/blog2social-v-3/includes/Notice.php:33 ../../plugins/blog2social-v-
1041
#: 3/views/b2s/network.php:108 ../../plugins/blog2social-v-3/views/b2s/ship.php:
1042
- #: 285 ../../plugins/blog2social-v-3/views/b2s/ship.php:319 ../..
1043
- #: /plugins/blog2social-v-3/views/b2s/ship.php:366 ../../plugins/blog2social-v-
1044
#: 3/views/b2s/html/footer.phtml:30 ../../plugins/blog2social-v-
1045
#: 3/views/b2s/html/footer.phtml:142 ../../plugins/blog2social-v-
1046
#: 3/views/b2s/html/footer.phtml:200
1047
msgid "Schedule your posts at the best times on each network"
1048
msgstr "Plane Deine Beiträge zu den besten Zeiten für jedes Netzwerk"
1049
1050
- #: ../../plugins/blog2social-v-3/includes/MetaBox.php:101 ../..
1051
#: /plugins/blog2social-v-3/includes/Notice.php:34 ../../plugins/blog2social-v-
1052
#: 3/views/b2s/network.php:109 ../../plugins/blog2social-v-3/views/b2s/ship.php:
1053
- #: 286 ../../plugins/blog2social-v-3/views/b2s/ship.php:320 ../..
1054
- #: /plugins/blog2social-v-3/views/b2s/ship.php:367 ../../plugins/blog2social-v-
1055
#: 3/views/b2s/html/footer.phtml:31 ../../plugins/blog2social-v-
1056
#: 3/views/b2s/html/footer.phtml:143 ../../plugins/blog2social-v-
1057
#: 3/views/b2s/html/footer.phtml:201
@@ -1060,11 +1104,11 @@ msgid ""
1060
"social media posts"
1061
msgstr " Beste Zeiten Manager: vordefinierte Zeiten für Deine Beiträge nutzen"
1062
1063
- #: ../../plugins/blog2social-v-3/includes/MetaBox.php:102 ../..
1064
#: /plugins/blog2social-v-3/includes/Notice.php:35 ../../plugins/blog2social-v-
1065
#: 3/views/b2s/network.php:110 ../../plugins/blog2social-v-3/views/b2s/ship.php:
1066
- #: 287 ../../plugins/blog2social-v-3/views/b2s/ship.php:321 ../..
1067
- #: /plugins/blog2social-v-3/views/b2s/ship.php:368 ../../plugins/blog2social-v-
1068
#: 3/views/b2s/html/footer.phtml:32 ../../plugins/blog2social-v-
1069
#: 3/views/b2s/html/footer.phtml:144 ../../plugins/blog2social-v-
1070
#: 3/views/b2s/html/footer.phtml:202
@@ -1073,22 +1117,22 @@ msgstr ""
1073
"Veröffentlichungen zur besten Zeit pro Netzwerk planen: einmalig, mehrmalig "
1074
"oder nach einem regelmäßigen Muster"
1075
1076
- #: ../../plugins/blog2social-v-3/includes/MetaBox.php:103 ../..
1077
#: /plugins/blog2social-v-3/includes/Notice.php:36 ../../plugins/blog2social-v-
1078
#: 3/views/b2s/network.php:111 ../../plugins/blog2social-v-3/views/b2s/ship.php:
1079
- #: 288 ../../plugins/blog2social-v-3/views/b2s/ship.php:322 ../..
1080
- #: /plugins/blog2social-v-3/views/b2s/ship.php:369 ../../plugins/blog2social-v-
1081
#: 3/views/b2s/html/footer.phtml:33 ../../plugins/blog2social-v-
1082
#: 3/views/b2s/html/footer.phtml:145 ../../plugins/blog2social-v-
1083
#: 3/views/b2s/html/footer.phtml:203
1084
msgid "Schedule and re-share old posts"
1085
msgstr "Plane und teile alte Beiträge"
1086
1087
- #: ../../plugins/blog2social-v-3/includes/MetaBox.php:104 ../..
1088
#: /plugins/blog2social-v-3/includes/Notice.php:37 ../../plugins/blog2social-v-
1089
#: 3/views/b2s/network.php:112 ../../plugins/blog2social-v-3/views/b2s/ship.php:
1090
- #: 289 ../../plugins/blog2social-v-3/views/b2s/ship.php:323 ../..
1091
- #: /plugins/blog2social-v-3/views/b2s/ship.php:370 ../../plugins/blog2social-v-
1092
#: 3/views/b2s/html/footer.phtml:34 ../../plugins/blog2social-v-
1093
#: 3/views/b2s/html/footer.phtml:65 ../../plugins/blog2social-v-
1094
#: 3/views/b2s/html/footer.phtml:146 ../../plugins/blog2social-v-
@@ -1096,11 +1140,11 @@ msgstr "Plane und teile alte Beiträge"
1096
msgid "Select link format or image format for your posts"
1097
msgstr "Link-Posts oder Bild-Posts als Posting-Format für Deine Beiträge auswählen"
1098
1099
- #: ../../plugins/blog2social-v-3/includes/MetaBox.php:105 ../..
1100
#: /plugins/blog2social-v-3/includes/Notice.php:38 ../../plugins/blog2social-v-
1101
#: 3/views/b2s/network.php:113 ../../plugins/blog2social-v-3/views/b2s/ship.php:
1102
- #: 290 ../../plugins/blog2social-v-3/views/b2s/ship.php:324 ../..
1103
- #: /plugins/blog2social-v-3/views/b2s/ship.php:371 ../../plugins/blog2social-v-
1104
#: 3/views/b2s/html/footer.phtml:35 ../../plugins/blog2social-v-
1105
#: 3/views/b2s/html/footer.phtml:66 ../../plugins/blog2social-v-
1106
#: 3/views/b2s/html/footer.phtml:147 ../../plugins/blog2social-v-
@@ -1108,11 +1152,11 @@ msgstr "Link-Posts oder Bild-Posts als Posting-Format für Deine Beiträge ausw
1108
msgid "Select individual images per post"
11