Version Description
Usability Optimization, calendar Optimization
Download this release
Release Info
Developer | Blog2Social |
Plugin | Blog2Social: Social Media Auto Post & Scheduler |
Version | 5.0.4 |
Comparing to | |
See all releases |
Code changes from version 5.0.3 to 5.0.4
- assets/js/b2s/calendar.js +6 -2
- assets/js/b2s/post.js +4 -0
- assets/js/b2s/ship.js +30 -3
- blog2social.php +2 -2
- includes/Ajax/Post.php +1 -3
- includes/B2S/Ship/Item.php +3 -3
- includes/Loader.php +1 -1
- readme.txt +6 -2
assets/js/b2s/calendar.js
CHANGED
@@ -16,8 +16,8 @@ jQuery(document).ready(function () {
|
|
16 |
$header = jQuery("<div>").addClass("b2s-calendar-header").attr('data-b2s-id', event.b2s_id);
|
17 |
$isRelayPost = '';
|
18 |
$isCuratedPost = '';
|
19 |
-
if(event.post_type == 'b2s_ex_post'){
|
20 |
-
|
21 |
}
|
22 |
if (event.relay_primary_post_id > 0) {
|
23 |
$isRelayPost = ' (Retweet)';
|
@@ -159,6 +159,8 @@ function showEditSchedCalendarPost(b2s_id, post_id, network_auth_id, network_typ
|
|
159 |
//Facebook TOS 072018 - Instant Sharing - Image post without Text > set to readonly
|
160 |
if (network_id == 1 && network_type == 0) {
|
161 |
jQuery('.b2s-post-item-details-item-message-input[data-network-auth-id="' + network_auth_id + '"]').prop("readonly", false);
|
|
|
|
|
162 |
jQuery('.b2s-post-approve-info[data-network-auth-id="' + network_auth_id + '"]').hide();
|
163 |
}
|
164 |
|
@@ -171,6 +173,8 @@ function showEditSchedCalendarPost(b2s_id, post_id, network_auth_id, network_typ
|
|
171 |
//Facebook TOS 072018 - Instant Sharing - Image post without Text > set to readonly
|
172 |
if (network_id == 1 && network_type == 0) {
|
173 |
jQuery('.b2s-post-item-details-item-message-input[data-network-auth-id="' + network_auth_id + '"]').prop("readonly", true);
|
|
|
|
|
174 |
jQuery('.b2s-post-approve-info[data-network-auth-id="' + network_auth_id + '"]').show();
|
175 |
}
|
176 |
}
|
16 |
$header = jQuery("<div>").addClass("b2s-calendar-header").attr('data-b2s-id', event.b2s_id);
|
17 |
$isRelayPost = '';
|
18 |
$isCuratedPost = '';
|
19 |
+
if (event.post_type == 'b2s_ex_post') {
|
20 |
+
$isCuratedPost = ' (Curated Post)';
|
21 |
}
|
22 |
if (event.relay_primary_post_id > 0) {
|
23 |
$isRelayPost = ' (Retweet)';
|
159 |
//Facebook TOS 072018 - Instant Sharing - Image post without Text > set to readonly
|
160 |
if (network_id == 1 && network_type == 0) {
|
161 |
jQuery('.b2s-post-item-details-item-message-input[data-network-auth-id="' + network_auth_id + '"]').prop("readonly", false);
|
162 |
+
jQuery('.b2s-post-item-details-item-message-input[data-network-auth-id="' + network_auth_id + '"]').show();
|
163 |
+
jQuery('.b2s-post-item-info-area[data-network-auth-id="' + network_auth_id + '"]').show();
|
164 |
jQuery('.b2s-post-approve-info[data-network-auth-id="' + network_auth_id + '"]').hide();
|
165 |
}
|
166 |
|
173 |
//Facebook TOS 072018 - Instant Sharing - Image post without Text > set to readonly
|
174 |
if (network_id == 1 && network_type == 0) {
|
175 |
jQuery('.b2s-post-item-details-item-message-input[data-network-auth-id="' + network_auth_id + '"]').prop("readonly", true);
|
176 |
+
jQuery('.b2s-post-item-details-item-message-input[data-network-auth-id="' + network_auth_id + '"]').hide();
|
177 |
+
jQuery('.b2s-post-item-info-area[data-network-auth-id="' + network_auth_id + '"]').hide();
|
178 |
jQuery('.b2s-post-approve-info[data-network-auth-id="' + network_auth_id + '"]').show();
|
179 |
}
|
180 |
}
|
assets/js/b2s/post.js
CHANGED
@@ -568,6 +568,8 @@ function showEditSchedPost(b2s_id, post_id, network_auth_id, network_type, netwo
|
|
568 |
//Facebook TOS 072018 - Instant Sharing - Image post without Text > set to readonly
|
569 |
if (network_id == 1 && network_type == 0) {
|
570 |
jQuery('.b2s-post-item-details-item-message-input[data-network-auth-id="' + network_auth_id + '"]').prop("readonly", false);
|
|
|
|
|
571 |
jQuery('.b2s-post-approve-info[data-network-auth-id="' + network_auth_id + '"]').hide();
|
572 |
}
|
573 |
|
@@ -579,6 +581,8 @@ function showEditSchedPost(b2s_id, post_id, network_auth_id, network_type, netwo
|
|
579 |
//Facebook TOS 072018 - Instant Sharing - Image post without Text > set to readonly
|
580 |
if (network_id == 1 && network_type == 0) {
|
581 |
jQuery('.b2s-post-item-details-item-message-input[data-network-auth-id="' + network_auth_id + '"]').prop("readonly", true);
|
|
|
|
|
582 |
jQuery('.b2s-post-approve-info[data-network-auth-id="' + network_auth_id + '"]').show();
|
583 |
}
|
584 |
}
|
568 |
//Facebook TOS 072018 - Instant Sharing - Image post without Text > set to readonly
|
569 |
if (network_id == 1 && network_type == 0) {
|
570 |
jQuery('.b2s-post-item-details-item-message-input[data-network-auth-id="' + network_auth_id + '"]').prop("readonly", false);
|
571 |
+
jQuery('.b2s-post-item-details-item-message-input[data-network-auth-id="' + network_auth_id + '"]').show();
|
572 |
+
jQuery('.b2s-post-item-info-area[data-network-auth-id="' + network_auth_id + '"]').show();
|
573 |
jQuery('.b2s-post-approve-info[data-network-auth-id="' + network_auth_id + '"]').hide();
|
574 |
}
|
575 |
|
581 |
//Facebook TOS 072018 - Instant Sharing - Image post without Text > set to readonly
|
582 |
if (network_id == 1 && network_type == 0) {
|
583 |
jQuery('.b2s-post-item-details-item-message-input[data-network-auth-id="' + network_auth_id + '"]').prop("readonly", true);
|
584 |
+
jQuery('.b2s-post-item-details-item-message-input[data-network-auth-id="' + network_auth_id + '"]').hide();
|
585 |
+
jQuery('.b2s-post-item-info-area[data-network-auth-id="' + network_auth_id + '"]').hide();
|
586 |
jQuery('.b2s-post-approve-info[data-network-auth-id="' + network_auth_id + '"]').show();
|
587 |
}
|
588 |
}
|
assets/js/b2s/ship.js
CHANGED
@@ -566,9 +566,12 @@ jQuery(document).on("click", ".b2s-user-network-settings-post-format", function
|
|
566 |
jQuery('.b2s-post-item-details-preview-url-reload[data-network-auth-id="' + networkAuthId + '"]').trigger("click");
|
567 |
|
568 |
//Facebook TOS 072018 - Instant Sharing - Image post without Text > set to readonly
|
569 |
-
if (networkId == 1 && networkType == 0) {
|
570 |
jQuery('.b2s-post-item-details-item-message-input[data-network-auth-id="' + networkAuthId + '"]').prop("readonly", false);
|
|
|
|
|
571 |
jQuery('.b2s-post-approve-info[data-network-auth-id="' + networkAuthId + '"]').hide();
|
|
|
572 |
}
|
573 |
|
574 |
} else {
|
@@ -579,6 +582,8 @@ jQuery(document).on("click", ".b2s-user-network-settings-post-format", function
|
|
579 |
//Facebook TOS 072018 - Instant Sharing - Image post without Text > set to readonly
|
580 |
if (networkId == 1 && networkType == 0) {
|
581 |
jQuery('.b2s-post-item-details-item-message-input[data-network-auth-id="' + networkAuthId + '"]').prop("readonly", true);
|
|
|
|
|
582 |
jQuery('.b2s-post-approve-info[data-network-auth-id="' + networkAuthId + '"]').show();
|
583 |
}
|
584 |
|
@@ -725,9 +730,13 @@ jQuery(document).on("click", ".b2s-network-select-btn", function () {
|
|
725 |
if (networkId == 1 && networkType == 0) {
|
726 |
if (jQuery('.b2s-post-item-details-post-format[data-network-auth-id="' + networkAuthId + '"]').val() == "1") {
|
727 |
jQuery('.b2s-post-item-details-item-message-input[data-network-auth-id="' + networkAuthId + '"]').prop("readonly", true);
|
|
|
|
|
728 |
jQuery('.b2s-post-approve-info[data-network-auth-id="' + networkAuthId + '"]').show();
|
729 |
} else {
|
730 |
jQuery('.b2s-post-item-details-item-message-input[data-network-auth-id="' + networkAuthId + '"]').prop("readonly", false);
|
|
|
|
|
731 |
jQuery('.b2s-post-approve-info[data-network-auth-id="' + networkAuthId + '"]').hide();
|
732 |
}
|
733 |
}
|
@@ -955,9 +964,13 @@ jQuery(document).on("click", ".b2s-network-select-btn", function () {
|
|
955 |
if (data.networkId == 1 && data.networkType == 0) {
|
956 |
if (jQuery('.b2s-post-item-details-post-format[data-network-auth-id="' + data.networkAuthId + '"]').val() == "1") {
|
957 |
jQuery('.b2s-post-item-details-item-message-input[data-network-auth-id="' + data.networkAuthId + '"]').prop("readonly", true);
|
|
|
|
|
958 |
jQuery('.b2s-post-approve-info[data-network-auth-id="' + data.networkAuthId + '"]').show();
|
959 |
} else {
|
960 |
jQuery('.b2s-post-item-details-item-message-input[data-network-auth-id="' + data.networkAuthId + '"]').prop("readonly", false);
|
|
|
|
|
961 |
jQuery('.b2s-post-approve-info[data-network-auth-id="' + data.networkAuthId + '"]').hide();
|
962 |
}
|
963 |
}
|
@@ -2269,7 +2282,14 @@ function releaseChoose(choose, dataNetworkAuthId, dataNetworkCount) {
|
|
2269 |
//since 4.8.0 customize content
|
2270 |
if (jQuery('.b2s-post-item-details-release-input-date-select' + selectorInput).attr('data-network-customize-content') == "1") {
|
2271 |
jQuery('.b2s-post-item-details-item-message-input' + selectorInput + '[data-network-count="-1"]').removeAttr('disabled');
|
2272 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2273 |
jQuery('.b2s-post-item-details-url-image' + selectorInput + '[data-network-count="-1"]').show();
|
2274 |
jQuery('.b2s-select-image-modal-open' + selectorInput + '[data-network-count="-1"]').show();
|
2275 |
jQuery('.b2s-image-remove-btn' + selectorInput + '[data-network-count="-1"]').show();
|
@@ -2400,7 +2420,14 @@ function releaseChoose(choose, dataNetworkAuthId, dataNetworkCount) {
|
|
2400 |
//since 4.8.0 customize content
|
2401 |
if (jQuery('.b2s-post-item-details-release-input-date-select' + selectorInput).attr('data-network-customize-content') == "1") {
|
2402 |
jQuery('.b2s-post-item-details-item-message-input' + selectorInput + '[data-network-count="-1"]').removeAttr('disabled');
|
2403 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2404 |
jQuery('.b2s-post-item-details-url-image' + selectorInput + '[data-network-count="-1"]').show();
|
2405 |
jQuery('.b2s-select-image-modal-open' + selectorInput + '[data-network-count="-1"]').show();
|
2406 |
jQuery('.b2s-image-remove-btn' + selectorInput + '[data-network-count="-1"]').show();
|
566 |
jQuery('.b2s-post-item-details-preview-url-reload[data-network-auth-id="' + networkAuthId + '"]').trigger("click");
|
567 |
|
568 |
//Facebook TOS 072018 - Instant Sharing - Image post without Text > set to readonly
|
569 |
+
if (networkId == 1 && networkType == 0 && jQuery('.b2s-post-item-details-release-input-date-select[data-network-auth-id="'+networkAuthId+'"]').val() != "1") {
|
570 |
jQuery('.b2s-post-item-details-item-message-input[data-network-auth-id="' + networkAuthId + '"]').prop("readonly", false);
|
571 |
+
jQuery('.b2s-post-item-details-item-message-input[data-network-auth-id="' + networkAuthId + '"]').show();
|
572 |
+
jQuery('.b2s-post-item-info-area[data-network-auth-id="' + networkAuthId + '"]').show();
|
573 |
jQuery('.b2s-post-approve-info[data-network-auth-id="' + networkAuthId + '"]').hide();
|
574 |
+
|
575 |
}
|
576 |
|
577 |
} else {
|
582 |
//Facebook TOS 072018 - Instant Sharing - Image post without Text > set to readonly
|
583 |
if (networkId == 1 && networkType == 0) {
|
584 |
jQuery('.b2s-post-item-details-item-message-input[data-network-auth-id="' + networkAuthId + '"]').prop("readonly", true);
|
585 |
+
jQuery('.b2s-post-item-details-item-message-input[data-network-auth-id="' + networkAuthId + '"]').hide();
|
586 |
+
jQuery('.b2s-post-item-info-area[data-network-auth-id="' + networkAuthId + '"]').hide();
|
587 |
jQuery('.b2s-post-approve-info[data-network-auth-id="' + networkAuthId + '"]').show();
|
588 |
}
|
589 |
|
730 |
if (networkId == 1 && networkType == 0) {
|
731 |
if (jQuery('.b2s-post-item-details-post-format[data-network-auth-id="' + networkAuthId + '"]').val() == "1") {
|
732 |
jQuery('.b2s-post-item-details-item-message-input[data-network-auth-id="' + networkAuthId + '"]').prop("readonly", true);
|
733 |
+
jQuery('.b2s-post-item-details-item-message-input[data-network-auth-id="' + networkAuthId + '"]').hide();
|
734 |
+
jQuery('.b2s-post-item-info-area[data-network-auth-id="' + networkAuthId + '"]').hide();
|
735 |
jQuery('.b2s-post-approve-info[data-network-auth-id="' + networkAuthId + '"]').show();
|
736 |
} else {
|
737 |
jQuery('.b2s-post-item-details-item-message-input[data-network-auth-id="' + networkAuthId + '"]').prop("readonly", false);
|
738 |
+
jQuery('.b2s-post-item-details-item-message-input[data-network-auth-id="' + networkAuthId + '"]').show();
|
739 |
+
jQuery('.b2s-post-item-info-area[data-network-auth-id="' + networkAuthId + '"]').show();
|
740 |
jQuery('.b2s-post-approve-info[data-network-auth-id="' + networkAuthId + '"]').hide();
|
741 |
}
|
742 |
}
|
964 |
if (data.networkId == 1 && data.networkType == 0) {
|
965 |
if (jQuery('.b2s-post-item-details-post-format[data-network-auth-id="' + data.networkAuthId + '"]').val() == "1") {
|
966 |
jQuery('.b2s-post-item-details-item-message-input[data-network-auth-id="' + data.networkAuthId + '"]').prop("readonly", true);
|
967 |
+
jQuery('.b2s-post-item-details-item-message-input[data-network-auth-id="' + networkAuthId + '"]').hide();
|
968 |
+
jQuery('.b2s-post-item-info-area[data-network-auth-id="' + networkAuthId + '"]').hide();
|
969 |
jQuery('.b2s-post-approve-info[data-network-auth-id="' + data.networkAuthId + '"]').show();
|
970 |
} else {
|
971 |
jQuery('.b2s-post-item-details-item-message-input[data-network-auth-id="' + data.networkAuthId + '"]').prop("readonly", false);
|
972 |
+
jQuery('.b2s-post-item-details-item-message-input[data-network-auth-id="' + networkAuthId + '"]').show();
|
973 |
+
jQuery('.b2s-post-item-info-area[data-network-auth-id="' + networkAuthId + '"]').show();
|
974 |
jQuery('.b2s-post-approve-info[data-network-auth-id="' + data.networkAuthId + '"]').hide();
|
975 |
}
|
976 |
}
|
2282 |
//since 4.8.0 customize content
|
2283 |
if (jQuery('.b2s-post-item-details-release-input-date-select' + selectorInput).attr('data-network-customize-content') == "1") {
|
2284 |
jQuery('.b2s-post-item-details-item-message-input' + selectorInput + '[data-network-count="-1"]').removeAttr('disabled');
|
2285 |
+
|
2286 |
+
//Facebook TOS
|
2287 |
+
if (jQuery('.b2s-post-item-details-item-message-input' + selectorInput + '[data-network-count="-1"]').attr('readonly')) {
|
2288 |
+
jQuery('.b2s-post-item-details-item-message-input' + selectorInput + '[data-network-count="-1"]').hide();
|
2289 |
+
} else {
|
2290 |
+
jQuery('.b2s-post-item-details-item-message-input' + selectorInput + '[data-network-count="-1"]').show();
|
2291 |
+
}
|
2292 |
+
|
2293 |
jQuery('.b2s-post-item-details-url-image' + selectorInput + '[data-network-count="-1"]').show();
|
2294 |
jQuery('.b2s-select-image-modal-open' + selectorInput + '[data-network-count="-1"]').show();
|
2295 |
jQuery('.b2s-image-remove-btn' + selectorInput + '[data-network-count="-1"]').show();
|
2420 |
//since 4.8.0 customize content
|
2421 |
if (jQuery('.b2s-post-item-details-release-input-date-select' + selectorInput).attr('data-network-customize-content') == "1") {
|
2422 |
jQuery('.b2s-post-item-details-item-message-input' + selectorInput + '[data-network-count="-1"]').removeAttr('disabled');
|
2423 |
+
|
2424 |
+
//Facebook TOS
|
2425 |
+
if (jQuery('.b2s-post-item-details-item-message-input' + selectorInput + '[data-network-count="-1"]').attr('readonly')) {
|
2426 |
+
jQuery('.b2s-post-item-details-item-message-input' + selectorInput + '[data-network-count="-1"]').hide();
|
2427 |
+
} else {
|
2428 |
+
jQuery('.b2s-post-item-details-item-message-input' + selectorInput + '[data-network-count="-1"]').show();
|
2429 |
+
}
|
2430 |
+
|
2431 |
jQuery('.b2s-post-item-details-url-image' + selectorInput + '[data-network-count="-1"]').show();
|
2432 |
jQuery('.b2s-select-image-modal-open' + selectorInput + '[data-network-count="-1"]').show();
|
2433 |
jQuery('.b2s-image-remove-btn' + selectorInput + '[data-network-count="-1"]').show();
|
blog2social.php
CHANGED
@@ -6,12 +6,12 @@
|
|
6 |
* Author: Blog2Social, Adenion
|
7 |
* Text Domain: blog2social
|
8 |
* Domain Path: /languages
|
9 |
-
* Version: 5.0.
|
10 |
* Author URI: https://www.blog2social.com
|
11 |
* License: GPL2+
|
12 |
*/
|
13 |
//B2SDefine
|
14 |
-
define('B2S_PLUGIN_VERSION', '
|
15 |
define('B2S_PLUGIN_LANGUAGE', serialize(array('de_DE', 'en_US')));
|
16 |
define('B2S_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
17 |
define('B2S_PLUGIN_URL', plugin_dir_url(__FILE__));
|
6 |
* Author: Blog2Social, Adenion
|
7 |
* Text Domain: blog2social
|
8 |
* Domain Path: /languages
|
9 |
+
* Version: 5.0.4
|
10 |
* Author URI: https://www.blog2social.com
|
11 |
* License: GPL2+
|
12 |
*/
|
13 |
//B2SDefine
|
14 |
+
define('B2S_PLUGIN_VERSION', '504');
|
15 |
define('B2S_PLUGIN_LANGUAGE', serialize(array('de_DE', 'en_US')));
|
16 |
define('B2S_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
17 |
define('B2S_PLUGIN_URL', plugin_dir_url(__FILE__));
|
includes/Ajax/Post.php
CHANGED
@@ -379,8 +379,6 @@ class Ajax_Post {
|
|
379 |
'user_timezone' => isset($post['user_timezone']) ? $post['user_timezone'] : 0,
|
380 |
'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'))
|
381 |
);
|
382 |
-
|
383 |
-
|
384 |
//since V4.8.0 Check Relay and prepare Data
|
385 |
$relayData = array();
|
386 |
if ((int) $data['network_id'] == 2 && isset($data['post_relay_account'][0]) && !empty($data['post_relay_account'][0]) && isset($data['post_relay_delay'][0]) && !empty($data['post_relay_delay'][0])) {
|
@@ -947,7 +945,7 @@ class Ajax_Post {
|
|
947 |
require_once (B2S_PLUGIN_DIR . '/includes/B2S/Post/Tools.php');
|
948 |
global $wpdb;
|
949 |
if (isset($_POST['b2s_id']) && (int) $_POST['b2s_id'] > 0 && isset($_POST['post_id']) && (int) $_POST['post_id'] > 0) {
|
950 |
-
$sql = $wpdb->prepare("SELECT id,post_id,post_for_relay FROM b2s_posts WHERE id =%d AND publish_date = %s", (int) $_POST['b2s_id'], "0000-00-00 00:00:00");
|
951 |
$row = $wpdb->get_row($sql);
|
952 |
if (isset($row->id) && (int) $row->id == (int) $_POST['b2s_id']) {
|
953 |
$hookAction = (isset($row->post_for_approve) && (int) $row->post_for_approve == 0) ? 3 : 0; //since 4.9.1 Facebook Instant Sharing
|
379 |
'user_timezone' => isset($post['user_timezone']) ? $post['user_timezone'] : 0,
|
380 |
'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'))
|
381 |
);
|
|
|
|
|
382 |
//since V4.8.0 Check Relay and prepare Data
|
383 |
$relayData = array();
|
384 |
if ((int) $data['network_id'] == 2 && isset($data['post_relay_account'][0]) && !empty($data['post_relay_account'][0]) && isset($data['post_relay_delay'][0]) && !empty($data['post_relay_delay'][0])) {
|
945 |
require_once (B2S_PLUGIN_DIR . '/includes/B2S/Post/Tools.php');
|
946 |
global $wpdb;
|
947 |
if (isset($_POST['b2s_id']) && (int) $_POST['b2s_id'] > 0 && isset($_POST['post_id']) && (int) $_POST['post_id'] > 0) {
|
948 |
+
$sql = $wpdb->prepare("SELECT id,post_id,post_for_approve,post_for_relay FROM b2s_posts WHERE id =%d AND publish_date = %s", (int) $_POST['b2s_id'], "0000-00-00 00:00:00");
|
949 |
$row = $wpdb->get_row($sql);
|
950 |
if (isset($row->id) && (int) $row->id == (int) $_POST['b2s_id']) {
|
951 |
$hookAction = (isset($row->post_for_approve) && (int) $row->post_for_approve == 0) ? 3 : 0; //since 4.9.1 Facebook Instant Sharing
|
includes/B2S/Ship/Item.php
CHANGED
@@ -32,11 +32,11 @@ class B2S_Ship_Item {
|
|
32 |
private $setShortTextGroup = array(1 => 239, 8 => 239, 10 => 442, 17 => 442);
|
33 |
private $setShortTextGroupLimit = array(1 => 400, 8 => 400, 10 => 500);
|
34 |
private $allowHashTags = array(1, 2, 3, 6, 10, 12, 17);
|
35 |
-
private $limitCharacterProfile = array(2 => 280, 3 =>
|
36 |
private $showImageAreaProfile = array(6, 7, 10, 12, 16, 17, 18);
|
37 |
private $showImageAreaPage = array(10, 17);
|
38 |
private $showImageAreaGroup = array(8, 10, 17);
|
39 |
-
private $limitCharacterPage = array(3 =>
|
40 |
private $requiredUrl = array(1, 3, 8, 9, 10, 15);
|
41 |
private $getText = array(1, 7, 10, 12, 16, 17, 18);
|
42 |
private $allowSchedCustomizeContent = array(1, 2, 3, 6, 7, 8, 9, 10, 12, 15, 17, 18);
|
@@ -843,7 +843,7 @@ class B2S_Ship_Item {
|
|
843 |
$textareaLimitInfo = '<span class="b2s-post-item-countChar" data-network-count="' . $schedcount . '" data-network-auth-id="' . $networkAuthId . '">' . (int) $countCharacter . '</span> ' . __('characters', 'blog2social') . '</span>';
|
844 |
}
|
845 |
|
846 |
-
$edit = '<div class="pull-right hidden-xs b2s-post-item-info-area">';
|
847 |
$edit .= '<button class="btn btn-xs btn-link b2s-post-ship-item-copy-original-text" data-network-id="' . $networkId . '" data-network-count="' . $schedcount . '" data-network-auth-id="' . $networkAuthId . '" >' . __('Copy from original', 'blog2social') . '</button> | ';
|
848 |
if (in_array($networkId, $this->getText)) {
|
849 |
$edit .= '<button class="btn btn-xs btn-link b2s-post-ship-item-full-text" data-network-count="' . $schedcount . '" data-network-auth-id="' . $networkAuthId . '" >' . __('Insert full-text', 'blog2social') . '</button> | ';
|
32 |
private $setShortTextGroup = array(1 => 239, 8 => 239, 10 => 442, 17 => 442);
|
33 |
private $setShortTextGroupLimit = array(1 => 400, 8 => 400, 10 => 500);
|
34 |
private $allowHashTags = array(1, 2, 3, 6, 10, 12, 17);
|
35 |
+
private $limitCharacterProfile = array(2 => 280, 3 => 1300, 6 => 500, 8 => 420, 9 => 250, 15 => 300, 12 => 2000, 18 => 1500);
|
36 |
private $showImageAreaProfile = array(6, 7, 10, 12, 16, 17, 18);
|
37 |
private $showImageAreaPage = array(10, 17);
|
38 |
private $showImageAreaGroup = array(8, 10, 17);
|
39 |
+
private $limitCharacterPage = array(3 => 1300, 8 => 1200);
|
40 |
private $requiredUrl = array(1, 3, 8, 9, 10, 15);
|
41 |
private $getText = array(1, 7, 10, 12, 16, 17, 18);
|
42 |
private $allowSchedCustomizeContent = array(1, 2, 3, 6, 7, 8, 9, 10, 12, 15, 17, 18);
|
843 |
$textareaLimitInfo = '<span class="b2s-post-item-countChar" data-network-count="' . $schedcount . '" data-network-auth-id="' . $networkAuthId . '">' . (int) $countCharacter . '</span> ' . __('characters', 'blog2social') . '</span>';
|
844 |
}
|
845 |
|
846 |
+
$edit = '<div class="pull-right hidden-xs b2s-post-item-info-area" data-network-id="' . $networkId . '" data-network-count="' . $schedcount . '" data-network-auth-id="' . $networkAuthId . '">';
|
847 |
$edit .= '<button class="btn btn-xs btn-link b2s-post-ship-item-copy-original-text" data-network-id="' . $networkId . '" data-network-count="' . $schedcount . '" data-network-auth-id="' . $networkAuthId . '" >' . __('Copy from original', 'blog2social') . '</button> | ';
|
848 |
if (in_array($networkId, $this->getText)) {
|
849 |
$edit .= '<button class="btn btn-xs btn-link b2s-post-ship-item-full-text" data-network-count="' . $schedcount . '" data-network-auth-id="' . $networkAuthId . '" >' . __('Insert full-text', 'blog2social') . '</button> | ';
|
includes/Loader.php
CHANGED
@@ -304,7 +304,7 @@ class B2S_Loader {
|
|
304 |
|
305 |
wp_nonce_field("b2s-meta-box-nonce-post-area", "b2s-meta-box-nonce");
|
306 |
$postId = (isset($_GET['post']) && (int) $_GET['post'] > 0) ? (int) $_GET['post'] : 0;
|
307 |
-
$postType = (isset($_GET['post_type']) && !empty($_GET['post_type'])) ? $_GET['post_type'] :
|
308 |
$postStatus = ($postId != 0) ? get_post_status($postId) : '';
|
309 |
$postBox = new B2S_PostBox();
|
310 |
echo $postBox->getPostBox($postId, $postType, $postStatus);
|
304 |
|
305 |
wp_nonce_field("b2s-meta-box-nonce-post-area", "b2s-meta-box-nonce");
|
306 |
$postId = (isset($_GET['post']) && (int) $_GET['post'] > 0) ? (int) $_GET['post'] : 0;
|
307 |
+
$postType = (isset($_GET['post_type']) && !empty($_GET['post_type'])) ? $_GET['post_type'] : get_post_type($postId) ;
|
308 |
$postStatus = ($postId != 0) ? get_post_status($postId) : '';
|
309 |
$postBox = new B2S_PostBox();
|
310 |
echo $postBox->getPostBox($postId, $postType, $postStatus);
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: Blog2Social, Adenion
|
|
3 |
Tags: auto post, auto publish, social media scheduling, social media calendar, social media automation, social media share, auto-publish, scheduling, social media post, social url share, social network share, share tweet, share links, share this, sharethis, social tools, admin, api, auto share to, autopost, auto-Posting, auto-schedule, auto-schedule social media posts, automatic social sharing plugin, blog marketing, blog2social, blogger, buffer, crossposting, cross-promotion, cross-promoting, bloglovin, bloglovin auto post, facebook, facebook auto post, facebook pages, google auto post, google plus, google plus pages, instagram, instagram auto post, jetpack, jetpack sharing, linkedin, linkedin auto post, medium, medium auto post, multiposting, path, pinterest, re-post, scheduling, scheduling plugin, social media, social media auto publish, social media automation, social media button, social media manager, social media plugin, social media post, social media publishing, social media share, social media scheduling tool, social media sharing, social media tool, social network auto publish, social network icon, social network widget, socialmedia, timing, torial, torial auto post, tumblr, twitter, twitter auto post, xing, xing auto post, xing groups, xing gruppen, xing personal profiles, xing company profiles, xing business pages, xing pages, xing seiten, auto post scheduler, repost, social media management, facebook fan page auto post, facebook profile auto post, social auto post, social autoposting, flickr, flickr auto posting, linkedin, linkedin auto posting, linkedin profile, facebook group, facebook gruppen, reddit, reddit auto posting, reddit auto post, social media calendar, editorial calendar, calendar plugin, Social Media Automatisierung, Social Media Management, Kalender, Planungs Kalender, Social Media Kalender, Content Marketing
|
4 |
Donate link: http://www.blog2social.com
|
5 |
Requires at least: 4.2.2
|
6 |
-
Tested up to:
|
7 |
-
Stable tag: 5.0.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -334,6 +334,8 @@ We use the official authentication oAUTH methods to third-party applications pro
|
|
334 |
9. Adjust the best times to schedule in the best time scheduler.
|
335 |
|
336 |
== Changelog ==
|
|
|
|
|
337 |
= 5.0.3 =
|
338 |
Usability Optimization
|
339 |
= 5.0.2 =
|
@@ -388,6 +390,8 @@ Usabilitiy and Performance Optimization. Select link format or image format indi
|
|
388 |
Usabilitiy and Performance Optimization. NEW: Select individual images per post. Select link format or image format for your posts. Select your own time zone for scheduling posts. Emoji support.
|
389 |
|
390 |
== Upgrade Notice ==
|
|
|
|
|
391 |
= 5.0.3 =
|
392 |
Usability Optimization
|
393 |
= 5.0.2 =
|
3 |
Tags: auto post, auto publish, social media scheduling, social media calendar, social media automation, social media share, auto-publish, scheduling, social media post, social url share, social network share, share tweet, share links, share this, sharethis, social tools, admin, api, auto share to, autopost, auto-Posting, auto-schedule, auto-schedule social media posts, automatic social sharing plugin, blog marketing, blog2social, blogger, buffer, crossposting, cross-promotion, cross-promoting, bloglovin, bloglovin auto post, facebook, facebook auto post, facebook pages, google auto post, google plus, google plus pages, instagram, instagram auto post, jetpack, jetpack sharing, linkedin, linkedin auto post, medium, medium auto post, multiposting, path, pinterest, re-post, scheduling, scheduling plugin, social media, social media auto publish, social media automation, social media button, social media manager, social media plugin, social media post, social media publishing, social media share, social media scheduling tool, social media sharing, social media tool, social network auto publish, social network icon, social network widget, socialmedia, timing, torial, torial auto post, tumblr, twitter, twitter auto post, xing, xing auto post, xing groups, xing gruppen, xing personal profiles, xing company profiles, xing business pages, xing pages, xing seiten, auto post scheduler, repost, social media management, facebook fan page auto post, facebook profile auto post, social auto post, social autoposting, flickr, flickr auto posting, linkedin, linkedin auto posting, linkedin profile, facebook group, facebook gruppen, reddit, reddit auto posting, reddit auto post, social media calendar, editorial calendar, calendar plugin, Social Media Automatisierung, Social Media Management, Kalender, Planungs Kalender, Social Media Kalender, Content Marketing
|
4 |
Donate link: http://www.blog2social.com
|
5 |
Requires at least: 4.2.2
|
6 |
+
Tested up to: 5.0
|
7 |
+
Stable tag: 5.0.4
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
334 |
9. Adjust the best times to schedule in the best time scheduler.
|
335 |
|
336 |
== Changelog ==
|
337 |
+
= 5.0.4 =
|
338 |
+
Usability Optimization, calendar Optimization
|
339 |
= 5.0.3 =
|
340 |
Usability Optimization
|
341 |
= 5.0.2 =
|
390 |
Usabilitiy and Performance Optimization. NEW: Select individual images per post. Select link format or image format for your posts. Select your own time zone for scheduling posts. Emoji support.
|
391 |
|
392 |
== Upgrade Notice ==
|
393 |
+
= 5.0.4 =
|
394 |
+
Usability Optimization, calendar Optimization
|
395 |
= 5.0.3 =
|
396 |
Usability Optimization
|
397 |
= 5.0.2 =
|