Blog2Social: Social Media Auto Post & Scheduler - Version 6.9.8

Version Description

Additional Security Update

Download this release

Release Info

Developer PR-Gateway
Plugin Icon 128x128 Blog2Social: Social Media Auto Post & Scheduler
Version 6.9.8
Comparing to
See all releases

Code changes from version 6.9.7 to 6.9.8

blog2social.php CHANGED
@@ -6,12 +6,12 @@
6
  * Author: Blog2Social, Adenion
7
  * Text Domain: blog2social
8
  * Domain Path: /languages
9
- * Version: 6.9.7
10
  * Author URI: https://www.blog2social.com
11
  * License: GPL2+
12
  */
13
 
14
- define('B2S_PLUGIN_VERSION', '697');
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: 6.9.8
10
  * Author URI: https://www.blog2social.com
11
  * License: GPL2+
12
  */
13
 
14
+ define('B2S_PLUGIN_VERSION', '698');
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/B2S/AutoPost/Item.php CHANGED
@@ -245,7 +245,7 @@ class B2S_AutoPost_Item {
245
  $maxNetworkAccount = ($this->networkAuthCount !== false && is_array($this->networkAuthCount)) ? ((isset($this->networkAuthCount[$v])) ? $this->networkAuthCount[$v] : $this->networkAuthCount[0]) : false;
246
  $html .='<li class="list-group-item">';
247
  $html .='<div class="media">';
248
- $html .='<img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr($networkName[$v]) . '" src="' . plugins_url('/assets/images/portale/' . $v . '_flat.png', B2S_PLUGIN_FILE) . '">';
249
  $html .='<div class="media-body network">';
250
  $html .='<h4>' . esc_html(ucfirst($networkName[$v]));
251
  if ($maxNetworkAccount !== false) {
245
  $maxNetworkAccount = ($this->networkAuthCount !== false && is_array($this->networkAuthCount)) ? ((isset($this->networkAuthCount[$v])) ? $this->networkAuthCount[$v] : $this->networkAuthCount[0]) : false;
246
  $html .='<li class="list-group-item">';
247
  $html .='<div class="media">';
248
+ $html .='<img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr($networkName[$v]) . '" src="' . esc_url(plugins_url('/assets/images/portale/' . $v . '_flat.png', B2S_PLUGIN_FILE)) . '">';
249
  $html .='<div class="media-body network">';
250
  $html .='<h4>' . esc_html(ucfirst($networkName[$v]));
251
  if ($maxNetworkAccount !== false) {
includes/B2S/Curation/View.php CHANGED
@@ -127,7 +127,7 @@ class B2S_Curation_View {
127
  <div class="panel-body">
128
  <div class="b2s-post-item-area">
129
  <div class="b2s-post-item-thumb hidden-xs">
130
- <img alt="" class="img-responsive b2s-post-item-network-image" src="' . plugins_url('/assets/images/portale/' . $v['networkId'] . '_flat.png', B2S_PLUGIN_FILE) . '">
131
  </div>
132
  <div class="b2s-post-item-details">
133
  <h4 class="pull-left b2s-post-item-details-network-display-name">' . esc_html($v['networkDisplayName']) . '</h4>
127
  <div class="panel-body">
128
  <div class="b2s-post-item-area">
129
  <div class="b2s-post-item-thumb hidden-xs">
130
+ <img alt="" class="img-responsive b2s-post-item-network-image" src="' . esc_url(plugins_url('/assets/images/portale/' . $v['networkId'] . '_flat.png', B2S_PLUGIN_FILE)) . '">
131
  </div>
132
  <div class="b2s-post-item-details">
133
  <h4 class="pull-left b2s-post-item-details-network-display-name">' . esc_html($v['networkDisplayName']) . '</h4>
includes/B2S/Network/Item.php CHANGED
@@ -94,8 +94,8 @@ class B2S_Network_Item {
94
  }
95
  $html .= '</form>';
96
  $html .= '</div>';
97
- echo $html;
98
- // return $html;
99
  }
100
 
101
  public function getItemHtml($mandant, $mandantenData, $convertAuthData, $portale, $auth_count) {
@@ -869,8 +869,8 @@ class B2S_Network_Item {
869
  $content .= '<br>';
870
  }
871
  if ((int) $limit != 0) {
872
- $content .= '<input type="hidden" class="b2s-edit-template-limit" value="' . $limit . '">';
873
- $content .= '<i class="glyphicon glyphicon-info-sign"></i> ' . esc_html(__('Network limit', 'blog2social') . ': ' . $limit . ' ' . __('characters', 'blog2social'));
874
  }
875
  $content .= '</div>';
876
  $content .= '</div>';
@@ -895,7 +895,7 @@ class B2S_Network_Item {
895
  $content .= '<br>';
896
  $content .= '<div class="row">';
897
  $content .= '<div class="col-md-12">';
898
- $content .= esc_html__('Frame colour:', 'blog2social') . ' <input id="b2s-edit-template-colorpicker" type="text" class="b2s-edit-template-colorpicker" value="' . ((isset($schema[$networkType]['frameColor']) && !empty($schema[$networkType]['frameColor'])) ? $schema[$networkType]['frameColor'] : '#ffffff') . '">';
899
  $content .= '</div>';
900
  $content .= '</div>';
901
  }
94
  }
95
  $html .= '</form>';
96
  $html .= '</div>';
97
+
98
+ return $html;
99
  }
100
 
101
  public function getItemHtml($mandant, $mandantenData, $convertAuthData, $portale, $auth_count) {
869
  $content .= '<br>';
870
  }
871
  if ((int) $limit != 0) {
872
+ $content .= '<input type="hidden" class="b2s-edit-template-limit" value="' . esc_attr($limit) . '">';
873
+ $content .= '<i class="glyphicon glyphicon-info-sign"></i> ' . esc_html(__('Network limit', 'blog2social') . ': ' . esc_html($limit) . ' ' . __('characters', 'blog2social'));
874
  }
875
  $content .= '</div>';
876
  $content .= '</div>';
895
  $content .= '<br>';
896
  $content .= '<div class="row">';
897
  $content .= '<div class="col-md-12">';
898
+ $content .= esc_html__('Frame colour:', 'blog2social') . ' <input id="b2s-edit-template-colorpicker" type="text" class="b2s-edit-template-colorpicker" value="' . ((isset($schema[$networkType]['frameColor']) && !empty($schema[$networkType]['frameColor'])) ? esc_attr($schema[$networkType]['frameColor']) : '#ffffff') . '">';
899
  $content .= '</div>';
900
  $content .= '</div>';
901
  }
includes/B2S/Post/Item.php CHANGED
@@ -975,7 +975,7 @@ class B2S_Post_Item {
975
 
976
  $schedInProcess = ($var->sched_date_utc <= gmdate('Y-m-d H:i:s')) ? ' <span class="glyphicon glyphicon-exclamation-sign glyphicon-info"></span> ' . esc_html__('is currently being processed by the network', 'blog2social') : '';
977
 
978
- $content .= '<img class="pull-left hidden-xs" src="' . plugins_url('/assets/images/portale/' . $var->network_id . '_flat.png', B2S_PLUGIN_FILE) . '" alt="posttype">
979
  <div class="media-body">
980
  <strong>' . esc_html($networkName[$var->network_id]) . $schedInProcess . '</strong>
981
  <p class="info">' . esc_html($networkType[$var->network_type] . (!empty($var->network_display_name) ? (': ' . $var->network_display_name) : '' )) . ' | ' . sprintf(esc_html__('scheduled by %s', 'blog2social'), ' <a href="' . esc_url(get_author_posts_url($var->blog_user_id)) . '">' . esc_html((!empty($userInfoName) ? $userInfoName : '-')) . '</a>') . ' <span class="b2s-post-sched-area-sched-time" data-post-id="' . esc_attr($var->id) . '">' . $lastEdit . esc_html(B2S_Util::getCustomDateFormat($var->sched_date, substr(B2S_LANGUAGE, 0, 2))) . '</span> ' . $specialPosting . '</p>
975
 
976
  $schedInProcess = ($var->sched_date_utc <= gmdate('Y-m-d H:i:s')) ? ' <span class="glyphicon glyphicon-exclamation-sign glyphicon-info"></span> ' . esc_html__('is currently being processed by the network', 'blog2social') : '';
977
 
978
+ $content .= '<img class="pull-left hidden-xs" src="' . esc_url(plugins_url('/assets/images/portale/' . $var->network_id . '_flat.png', B2S_PLUGIN_FILE)) . '" alt="posttype">
979
  <div class="media-body">
980
  <strong>' . esc_html($networkName[$var->network_id]) . $schedInProcess . '</strong>
981
  <p class="info">' . esc_html($networkType[$var->network_type] . (!empty($var->network_display_name) ? (': ' . $var->network_display_name) : '' )) . ' | ' . sprintf(esc_html__('scheduled by %s', 'blog2social'), ' <a href="' . esc_url(get_author_posts_url($var->blog_user_id)) . '">' . esc_html((!empty($userInfoName) ? $userInfoName : '-')) . '</a>') . ' <span class="b2s-post-sched-area-sched-time" data-post-id="' . esc_attr($var->id) . '">' . $lastEdit . esc_html(B2S_Util::getCustomDateFormat($var->sched_date, substr(B2S_LANGUAGE, 0, 2))) . '</span> ' . $specialPosting . '</p>
includes/B2S/PostBox.php CHANGED
@@ -259,25 +259,25 @@ class B2S_PostBox {
259
  </div>
260
  <div class="b2s-meta-box-modal-body">
261
  <div class="b2s-network-imgs">
262
- <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('Facebook') . '" src="' . plugins_url('/assets/images/portale/1_flat.png', B2S_PLUGIN_FILE) . '">
263
- <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('Twitter') . '" src="' . plugins_url('/assets/images/portale/2_flat.png', B2S_PLUGIN_FILE) . '">
264
- <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('LinkedIn') . '" src="' . plugins_url('/assets/images/portale/3_flat.png', B2S_PLUGIN_FILE) . '">
265
- <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('Tumblr') . '" src="' . plugins_url('/assets/images/portale/4_flat.png', B2S_PLUGIN_FILE) . '">
266
- <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('Pinterest') . '" src="' . plugins_url('/assets/images/portale/6_flat.png', B2S_PLUGIN_FILE) . '">
267
- <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('Flickr') . '" src="' . plugins_url('/assets/images/portale/7_flat.png', B2S_PLUGIN_FILE) . '">
268
- <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('Diigo') . '" src="' . plugins_url('/assets/images/portale/9_flat.png', B2S_PLUGIN_FILE) . '">
269
- <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('Medium') . '" src="' . plugins_url('/assets/images/portale/11_flat.png', B2S_PLUGIN_FILE) . '">
270
- <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('Instagram') . '" src="' . plugins_url('/assets/images/portale/12_flat.png', B2S_PLUGIN_FILE) . '">
271
- <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('Torial') . '" src="' . plugins_url('/assets/images/portale/14_flat.png', B2S_PLUGIN_FILE) . '">
272
- <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('Reddit') . '" src="' . plugins_url('/assets/images/portale/15_flat.png', B2S_PLUGIN_FILE) . '">
273
- <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('Bloglovin') . '" src="' . plugins_url('/assets/images/portale/16_flat.png', B2S_PLUGIN_FILE) . '">
274
- <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('VKontakte') . '" src="' . plugins_url('/assets/images/portale/17_flat.png', B2S_PLUGIN_FILE) . '">
275
- <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('XING') . '" src="' . plugins_url('/assets/images/portale/19_flat.png', B2S_PLUGIN_FILE) . '">
276
- <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('Imgur') . '" src="' . plugins_url('/assets/images/portale/21_flat.png', B2S_PLUGIN_FILE) . '">
277
- <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('Google My Business') . '" src="' . plugins_url('/assets/images/portale/18_flat.png', B2S_PLUGIN_FILE) . '">
278
  </div>
279
  <br>
280
- <p class="b2s-bold">' . sprintf(__('Under <a href="%s">Network Settings</a> you can define which network selection is used. <a href="%s" target="_blank">Create a network selection.</a>', 'blog2social'), 'admin.php?page=blog2social-network', B2S_Tools::getSupportLink('network_grouping')) . '</p>
281
  <h4>' . esc_html__('Available networks', 'blog2social') . '</h4>
282
  <span class="b2s-bold">' . esc_html('Facebook (Profile & Seiten)') . '</span><br>
283
  <span class="b2s-bold">' . esc_html('Twitter (1 Profil)') . '</span><br>
259
  </div>
260
  <div class="b2s-meta-box-modal-body">
261
  <div class="b2s-network-imgs">
262
+ <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('Facebook') . '" src="' . esc_url(plugins_url('/assets/images/portale/1_flat.png', B2S_PLUGIN_FILE)) . '">
263
+ <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('Twitter') . '" src="' . esc_url(plugins_url('/assets/images/portale/2_flat.png', B2S_PLUGIN_FILE)) . '">
264
+ <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('LinkedIn') . '" src="' . esc_url(plugins_url('/assets/images/portale/3_flat.png', B2S_PLUGIN_FILE)) . '">
265
+ <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('Tumblr') . '" src="' . esc_url(plugins_url('/assets/images/portale/4_flat.png', B2S_PLUGIN_FILE)) . '">
266
+ <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('Pinterest') . '" src="' . esc_url(plugins_url('/assets/images/portale/6_flat.png', B2S_PLUGIN_FILE)) . '">
267
+ <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('Flickr') . '" src="' . esc_url(plugins_url('/assets/images/portale/7_flat.png', B2S_PLUGIN_FILE)) . '">
268
+ <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('Diigo') . '" src="' . esc_url(plugins_url('/assets/images/portale/9_flat.png', B2S_PLUGIN_FILE)) . '">
269
+ <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('Medium') . '" src="' . esc_url(plugins_url('/assets/images/portale/11_flat.png', B2S_PLUGIN_FILE)) . '">
270
+ <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('Instagram') . '" src="' . esc_url(plugins_url('/assets/images/portale/12_flat.png', B2S_PLUGIN_FILE)) . '">
271
+ <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('Torial') . '" src="' . esc_url(plugins_url('/assets/images/portale/14_flat.png', B2S_PLUGIN_FILE)) . '">
272
+ <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('Reddit') . '" src="' . esc_url(plugins_url('/assets/images/portale/15_flat.png', B2S_PLUGIN_FILE)) . '">
273
+ <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('Bloglovin') . '" src="' . esc_url(plugins_url('/assets/images/portale/16_flat.png', B2S_PLUGIN_FILE)) . '">
274
+ <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('VKontakte') . '" src="' . esc_url(plugins_url('/assets/images/portale/17_flat.png', B2S_PLUGIN_FILE)) . '">
275
+ <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('XING') . '" src="' . esc_url(plugins_url('/assets/images/portale/19_flat.png', B2S_PLUGIN_FILE)) . '">
276
+ <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('Imgur') . '" src="' . esc_url(plugins_url('/assets/images/portale/21_flat.png', B2S_PLUGIN_FILE)) . '">
277
+ <img class="pull-left hidden-xs b2s-img-network" alt="' . esc_attr('Google My Business') . '" src="' . esc_url(plugins_url('/assets/images/portale/18_flat.png', B2S_PLUGIN_FILE)) . '">
278
  </div>
279
  <br>
280
+ <p class="b2s-bold">' . sprintf(__('Under <a href="%s">Network Settings</a> you can define which network selection is used. <a href="%s" target="_blank">Create a network selection.</a>', 'blog2social'), 'admin.php?page=blog2social-network', esc_url(B2S_Tools::getSupportLink('network_grouping'))) . '</p>
281
  <h4>' . esc_html__('Available networks', 'blog2social') . '</h4>
282
  <span class="b2s-bold">' . esc_html('Facebook (Profile & Seiten)') . '</span><br>
283
  <span class="b2s-bold">' . esc_html('Twitter (1 Profil)') . '</span><br>
includes/B2S/Settings/Item.php CHANGED
@@ -76,7 +76,7 @@ class B2S_Settings_Item {
76
  $content .='<hr>';
77
  $content .='<h4>' . esc_html__('Content', 'blog2social') . '</h4>';
78
  $content .='<strong>' . esc_html__('Url Shortener', 'blog2social') . '</strong><br>';
79
- $content .='<div class="alert alert-warning">' . sprintf(__('You can use Bit.ly, Rebrandly or Sniply links to shorten the URL of your links and to track the performance of your links in your social networks. Activate one of the URL shorteners you like to use and link it to your account. Your social media posts will then be shared with your links of Bit.ly, Rebrandly or Sniply. You can then monitor the success of your posts in these accounts. Please note: Some networks do not allow shortlinks. Blog2Social will apply the regular URL for these social platforms. You find more information on the support of URL shortener by the different social platforms in the <a href="%s" target="_blank">link shortener guide</a>.', 'blog2social'), B2S_Tools::getSupportLink('url_shortener_faq')) . '</div>';
80
  $content .='<input type="radio" value="0" class="b2s-user-network-settings-short-url" id="b2s-user-network-settings-short-url-0" name="b2s-user-network-settings-short-url" ' . (($isCheckedShortener == -1) ? 'checked="checked"' : '') . ' data-provider-id="-1"/><label for="b2s-user-network-settings-short-url-0"> '.esc_html__('no URL Shortener', 'blog2social').'</label>';
81
  $content .= '<br>';
82
  $content .= '<input type="hidden" id="brandName" value="'.esc_html__('Brand', 'blog2social').'">';
@@ -146,21 +146,6 @@ class B2S_Settings_Item {
146
  $content .='<button class="btn btn-primary pull-right" type="submit" '.(B2S_PLUGIN_ADMIN ? '' : 'disabled="true"').'>'.esc_html__('save', 'blog2social').'</button>';
147
  $content .='<div class="clearfix"></div><hr>';
148
 
149
- /* $content .='<h4>' . __('Authorship Settings', 'blog2social');
150
- if (B2S_PLUGIN_USER_VERSION < 1) {
151
- $content .=' <span class="label label-success label-sm"><a href="#" class="btn-label-premium b2sPreFeatureModalBtn">' . __("PREMIUM", "blog2social") . '</a></span>';
152
- }
153
- $content .='</h4>';
154
- $content .='<div class="' . ( (B2S_PLUGIN_USER_VERSION >= 1) ? "" : "b2s-disabled-div") . '">';
155
- $content .='<p>' . __('Add authorship tags to your articles. When somesone shares your links on Facebook or Twitter, you will be automatically linked as the author.', 'blog2social') . '</p>';
156
- $content .='<div class="col-md-8">';
157
- $content .='<div class="form-group"><label for="b2s_og_article_author"><img alt="" class="b2s-post-item-network-image" src="' . plugins_url('/assets/images/portale/1_flat.png', B2S_PLUGIN_FILE) . '"> <strong>' . __("Facebook author link", "blog2social") . ':</strong></label><input type="text" placeholder="' . __("Enter your Facebook link profile here (e.g. https://www.facebook.com/Blog2Social/)", "blog2social") . '" ' . ((B2S_PLUGIN_USER_VERSION >= 1) ? "" : "readonly") . ' value="' . (($user_meta_author_data !== false && isset($user_meta_author_data['og_article_author'])) ? $user_meta_author_data['og_article_author'] : "") . '" name="b2s_og_article_author" class="form-control" id="b2s_og_article_author"></div>';
158
- $content .='<div class="form-group"><label for="b2s_card_twitter_creator"><img alt="" class="b2s-post-item-network-image" src="' . plugins_url('/assets/images/portale/2_flat.png', B2S_PLUGIN_FILE) . '"> <strong>' . __("Twitter Username", "blog2social") . ':</strong></label><input type="text" placeholder="' . __("Enter your Twitter Username here (e.g. @blog2social)", "blog2social") . '" ' . ((B2S_PLUGIN_USER_VERSION >= 1) ? "" : "readonly") . ' value="' . (($user_meta_author_data !== false && isset($user_meta_author_data['card_twitter_creator'])) ? $user_meta_author_data['card_twitter_creator'] : "") . '" name="b2s_card_twitter_creator" class="form-control" id="b2s_card_twitter_creator"></div>';
159
- $content .='</div>';
160
- $content .='</div>';
161
- $content .='<div class="clearfix"></div>';
162
- $content .='<hr>'; */
163
-
164
 
165
  $content .='<strong>' . esc_html__('This is a global feature for your blog, which can only be edited by users with admin rights.', 'blog2social') . '</strong>';
166
  $content .='<div class="' . ( (B2S_PLUGIN_ADMIN) ? "" : "b2s-disabled-div") . '">';
76
  $content .='<hr>';
77
  $content .='<h4>' . esc_html__('Content', 'blog2social') . '</h4>';
78
  $content .='<strong>' . esc_html__('Url Shortener', 'blog2social') . '</strong><br>';
79
+ $content .='<div class="alert alert-warning">' . sprintf(__('You can use Bit.ly, Rebrandly or Sniply links to shorten the URL of your links and to track the performance of your links in your social networks. Activate one of the URL shorteners you like to use and link it to your account. Your social media posts will then be shared with your links of Bit.ly, Rebrandly or Sniply. You can then monitor the success of your posts in these accounts. Please note: Some networks do not allow shortlinks. Blog2Social will apply the regular URL for these social platforms. You find more information on the support of URL shortener by the different social platforms in the <a href="%s" target="_blank">link shortener guide</a>.', 'blog2social'), esc_url(B2S_Tools::getSupportLink('url_shortener_faq'))) . '</div>';
80
  $content .='<input type="radio" value="0" class="b2s-user-network-settings-short-url" id="b2s-user-network-settings-short-url-0" name="b2s-user-network-settings-short-url" ' . (($isCheckedShortener == -1) ? 'checked="checked"' : '') . ' data-provider-id="-1"/><label for="b2s-user-network-settings-short-url-0"> '.esc_html__('no URL Shortener', 'blog2social').'</label>';
81
  $content .= '<br>';
82
  $content .= '<input type="hidden" id="brandName" value="'.esc_html__('Brand', 'blog2social').'">';
146
  $content .='<button class="btn btn-primary pull-right" type="submit" '.(B2S_PLUGIN_ADMIN ? '' : 'disabled="true"').'>'.esc_html__('save', 'blog2social').'</button>';
147
  $content .='<div class="clearfix"></div><hr>';
148
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
149
 
150
  $content .='<strong>' . esc_html__('This is a global feature for your blog, which can only be edited by users with admin rights.', 'blog2social') . '</strong>';
151
  $content .='<div class="' . ( (B2S_PLUGIN_ADMIN) ? "" : "b2s-disabled-div") . '">';
includes/B2S/Ship/Image.php CHANGED
@@ -31,7 +31,7 @@ class B2S_Ship_Image {
31
  $content .= ' <a target="_blank" href="' . esc_url(B2S_Tools::getSupportLink('affiliate')) . '">' . esc_html__('please upgrade', 'blog2social') . '</a>';
32
  $content .= '</div></div>';
33
  $content .= '<div class="col-xs-12 del-padding-left del-padding-right"><div class="alert alert-info b2s-gif-support-info" style="display:none;">' . esc_html__('The networks Diigo, Bloglovin’ and Google My Business do not support the GIF image format and will display your standard image instead.', 'blog2social') . '</div></div>';
34
- $content .= '<div class="col-xs-12 del-padding-left del-padding-right"><div class="alert alert-primary b2s-change-meta-image-info" style="display:none;">' . esc_html__('By changing your image in the link post format it will be changed for all networks listed below. This also applies for all scheduled posts in this post format. ', 'blog2social') . '<a href="'.B2S_Tools::getSupportLink('open_graph_tags').'" target="_blank">' . esc_html__('More Information', 'blog2social') . '</a><br><br><div class="b2s-change-meta-image-networks"></div></div></div>';
35
 
36
  $content .= '<div class="row b2s-image-size-info">';
37
  $content .='<div class="col-xs-12 hidden-xs hidden-sm">';
31
  $content .= ' <a target="_blank" href="' . esc_url(B2S_Tools::getSupportLink('affiliate')) . '">' . esc_html__('please upgrade', 'blog2social') . '</a>';
32
  $content .= '</div></div>';
33
  $content .= '<div class="col-xs-12 del-padding-left del-padding-right"><div class="alert alert-info b2s-gif-support-info" style="display:none;">' . esc_html__('The networks Diigo, Bloglovin’ and Google My Business do not support the GIF image format and will display your standard image instead.', 'blog2social') . '</div></div>';
34
+ $content .= '<div class="col-xs-12 del-padding-left del-padding-right"><div class="alert alert-primary b2s-change-meta-image-info" style="display:none;">' . esc_html__('By changing your image in the link post format it will be changed for all networks listed below. This also applies for all scheduled posts in this post format. ', 'blog2social') . '<a href="'.esc_url(B2S_Tools::getSupportLink('open_graph_tags')).'" target="_blank">' . esc_html__('More Information', 'blog2social') . '</a><br><br><div class="b2s-change-meta-image-networks"></div></div></div>';
35
 
36
  $content .= '<div class="row b2s-image-size-info">';
37
  $content .='<div class="col-xs-12 hidden-xs hidden-sm">';
includes/B2S/Ship/Item.php CHANGED
@@ -460,11 +460,8 @@ class B2S_Ship_Item {
460
  $content .= '<input type="hidden" data-network-auth-id="' . esc_attr($data->networkAuthId) . '" class="b2s-network-default-image" value="' . esc_url($this->defaultImage) . '">';
461
 
462
  $content .= '</div>';
463
- if($this->viewMode == 'modal') {
464
- echo $content;
465
- } else {
466
- return $content;
467
- }
468
  }
469
 
470
  public function getCustomEditArea($networkId, $networkAuthId, $networkType, $message, $isRequiredTextarea, $textareaOnKeyUp, $limit, $limitValue, $imageUrl = null, $multi_images = array(), $postFormat = 0) {
@@ -494,7 +491,7 @@ class B2S_Ship_Item {
494
 
495
  if ($networkId == 1) {
496
  $edit = '<div class="b2s-post-item-details-item-message-area" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '">';
497
- $edit .= '<textarea class="form-control fb-textarea-input b2s-post-item-details-item-message-input ' . (in_array($networkId, $this->allowHtml) ? 'b2s-post-item-details-item-message-input-allow-html' : '') . '"data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-text-limit="' . esc_attr($limitValue) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '" placeholder="' . esc_attr__('Write something about your post...', 'blog2social') . '" name="b2s[' . esc_attr($networkAuthId) . '][content]" ' . $isRequiredTextarea . ' ' . $textareaOnKeyUp . '>' . esc_html($message) . '</textarea>';
498
  if (!in_array($networkId, $this->allowNoEmoji)) {
499
  $edit .= '<button type="button" class="btn btn-sm b2s-post-item-details-item-message-emoji-btn" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '"><img src="' . esc_url(plugins_url('/assets/images/b2s-emoji.png', B2S_PLUGIN_FILE)) . '"/></button>';
500
  }
@@ -554,7 +551,7 @@ class B2S_Ship_Item {
554
 
555
  if ($networkId == 2) {
556
  $edit = '<div class="b2s-post-item-details-item-message-area" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '">';
557
- $edit .= '<textarea class="form-control tw-textarea-input b2s-post-item-details-item-message-input ' . (in_array($networkId, $this->allowHtml) ? 'b2s-post-item-details-item-message-input-allow-html' : '') . '"data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-text-limit="' . esc_attr($limitValue) . '" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '" placeholder="' . esc_attr__('Write something about your post...', 'blog2social') . '" unique="currency" name="b2s[' . esc_attr($networkAuthId) . '][content]" ' . $isRequiredTextarea . ' ' . $textareaOnKeyUp . '>' . esc_html($message) . '</textarea>';
558
  if (!in_array($networkId, $this->allowNoEmoji)) {
559
  $edit .= '<button type="button" class="btn btn-sm b2s-post-item-details-item-message-emoji-btn" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '"><img src="' . esc_url(plugins_url('/assets/images/b2s-emoji.png', B2S_PLUGIN_FILE)) . '"/></button>';
560
  }
@@ -614,7 +611,7 @@ class B2S_Ship_Item {
614
 
615
  if ($networkId == 3) {
616
  $edit = '<div class="b2s-post-item-details-item-message-area" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '">';
617
- $edit .= '<textarea class="form-control linkedin-textarea-input b2s-post-item-details-item-message-input ' . (in_array($networkId, $this->allowHtml) ? 'b2s-post-item-details-item-message-input-allow-html' : '') . '"data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-text-limit="' . esc_attr($limitValue) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '" placeholder="' . esc_attr__('Write something about your post...', 'blog2social') . '" name="b2s[' . esc_attr($networkAuthId) . '][content]" ' . $isRequiredTextarea . ' ' . $textareaOnKeyUp . '>' . esc_html($message) . '</textarea>';
618
  if (!in_array($networkId, $this->allowNoEmoji)) {
619
  $edit .= '<button type="button" class="btn btn-sm b2s-post-item-details-item-message-emoji-btn" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '"><img src="' . esc_url(plugins_url('/assets/images/b2s-emoji.png', B2S_PLUGIN_FILE)) . '"/></button>';
620
  }
@@ -673,7 +670,7 @@ class B2S_Ship_Item {
673
 
674
  if ($networkId == 4) {
675
  $edit = '<div class="b2s-post-item-details-item-message-area" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '">';
676
- $edit .= '<textarea class="form-control tumblr-textarea-input b2s-post-item-details-item-message-input ' . (in_array($networkId, $this->allowHtml) ? 'b2s-post-item-details-item-message-input-allow-html' : '') . '"data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-text-limit="' . esc_attr($limitValue) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '" placeholder="' . esc_attr__('Write something about your post...', 'blog2social') . '" name="b2s[' . esc_attr($networkAuthId) . '][content]" ' . $isRequiredTextarea . ' ' . $textareaOnKeyUp . '>' . esc_html($message) . '</textarea>';
677
  if (!in_array($networkId, $this->allowNoEmoji)) {
678
  $edit .= '<button type="button" class="btn btn-sm b2s-post-item-details-item-message-emoji-btn" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '"><img src="' . esc_url(plugins_url('/assets/images/b2s-emoji.png', B2S_PLUGIN_FILE)) . '"/></button>';
679
  }
@@ -694,7 +691,7 @@ class B2S_Ship_Item {
694
 
695
  if (($networkId == 8 || $networkId == 19)) {
696
  $edit = '<div class="b2s-post-item-details-item-message-area" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '">';
697
- $edit .= '<textarea class="form-control xing-textarea-input b2s-post-item-details-item-message-input ' . (in_array($networkId, $this->allowHtml) ? 'b2s-post-item-details-item-message-input-allow-html' : '') . '"data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-text-limit="' . esc_attr($limitValue) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '" placeholder="' . esc_attr__('Write something about your post...', 'blog2social') . '" name="b2s[' . esc_attr($networkAuthId) . '][content]" ' . $isRequiredTextarea . ' ' . $textareaOnKeyUp . '>' . esc_html($message) . '</textarea>';
698
  if (!in_array($networkId, $this->allowNoEmoji)) {
699
  $edit .= '<button type="button" class="btn btn-sm b2s-post-item-details-item-message-emoji-btn" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '"><img src="' . esc_url(plugins_url('/assets/images/b2s-emoji.png', B2S_PLUGIN_FILE)) . '"/></button>';
700
  }
@@ -723,7 +720,7 @@ class B2S_Ship_Item {
723
  }
724
  if (($networkId == 15)) {
725
  $edit = '<div class="b2s-post-item-details-item-message-area" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '">';
726
- $edit .= '<textarea class="form-control reddit-textarea-input b2s-post-item-details-item-message-input ' . (in_array($networkId, $this->allowHtml) ? 'b2s-post-item-details-item-message-input-allow-html' : '') . '"data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-text-limit="' . esc_attr($limitValue) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '" placeholder="' . esc_attr__('Write something about your post...', 'blog2social') . '" name="b2s[' . esc_attr($networkAuthId) . '][content]" ' . $isRequiredTextarea . ' ' . $textareaOnKeyUp . '>' . esc_html($message) . '</textarea>';
727
  if (!in_array($networkId, $this->allowNoEmoji)) {
728
  $edit .= '<button type="button" class="btn btn-sm b2s-post-item-details-item-message-emoji-btn" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '"><img src="' . esc_url(plugins_url('/assets/images/b2s-emoji.png', B2S_PLUGIN_FILE)) . '"/></button>';
729
  }
@@ -751,7 +748,7 @@ class B2S_Ship_Item {
751
  }
752
  if ($networkId == 17) {
753
  $edit = '<div class="b2s-post-item-details-item-message-area" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '">';
754
- $edit .= '<textarea class="form-control vk-textarea-input b2s-post-item-details-item-message-input ' . (in_array($networkId, $this->allowHtml) ? 'b2s-post-item-details-item-message-input-allow-html' : '') . '"data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-text-limit="' . esc_attr($limitValue) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '" placeholder="' . esc_attr__('Write something about your post...', 'blog2social') . '" name="b2s[' . esc_attr($networkAuthId) . '][content]" ' . $isRequiredTextarea . ' ' . $textareaOnKeyUp . '>' . esc_html($message) . '</textarea>';
755
  if (!in_array($networkId, $this->allowNoEmoji)) {
756
  $edit .= '<button type="button" class="btn btn-sm b2s-post-item-details-item-message-emoji-btn" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '"><img src="' . esc_url(plugins_url('/assets/images/b2s-emoji.png', B2S_PLUGIN_FILE)) . '"/></button>';
757
  }
@@ -779,7 +776,7 @@ class B2S_Ship_Item {
779
  }
780
  if ($networkId == 24) {
781
  $edit = '<div class="b2s-post-item-details-item-message-area" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '">';
782
- $edit .= '<textarea class="form-control telegram-textarea-input b2s-post-item-details-item-message-input ' . (in_array($networkId, $this->allowHtml) ? 'b2s-post-item-details-item-message-input-allow-html' : '') . '"data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-text-limit="' . esc_attr($limitValue) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '" placeholder="' . esc_attr__('Write something about your post...', 'blog2social') . '" name="b2s[' . esc_attr($networkAuthId) . '][content]" ' . $isRequiredTextarea . ' ' . $textareaOnKeyUp . '>' . esc_html($message) . '</textarea>';
783
  if (!in_array($networkId, $this->allowNoEmoji)) {
784
  $edit .= '<button type="button" class="btn btn-sm b2s-post-item-details-item-message-emoji-btn" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '"><img src="' . esc_url(plugins_url('/assets/images/b2s-emoji.png', B2S_PLUGIN_FILE)) . '"/></button>';
785
  }
@@ -807,7 +804,7 @@ class B2S_Ship_Item {
807
  }
808
  } else {
809
  $edit = '<div class="b2s-post-item-details-item-message-area" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '">';
810
- $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-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-text-limit="' . esc_attr($limitValue) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '" placeholder="' . esc_attr__('Write something about your post...', 'blog2social') . '" name="b2s[' . esc_attr($networkAuthId) . '][content]" ' . $isRequiredTextarea . ' ' . $textareaOnKeyUp . ' ' . (($networkId == 12) ? 'unique="currency"' : '') . '>' . esc_html($message) . '</textarea>';
811
  if (!in_array($networkId, $this->allowNoEmoji)) {
812
  $edit .= '<button type="button" class="btn btn-sm b2s-post-item-details-item-message-emoji-btn" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '"><img src="' . esc_url(plugins_url('/assets/images/b2s-emoji.png', B2S_PLUGIN_FILE)) . '"/></button>';
813
  }
460
  $content .= '<input type="hidden" data-network-auth-id="' . esc_attr($data->networkAuthId) . '" class="b2s-network-default-image" value="' . esc_url($this->defaultImage) . '">';
461
 
462
  $content .= '</div>';
463
+
464
+ return $content;
 
 
 
465
  }
466
 
467
  public function getCustomEditArea($networkId, $networkAuthId, $networkType, $message, $isRequiredTextarea, $textareaOnKeyUp, $limit, $limitValue, $imageUrl = null, $multi_images = array(), $postFormat = 0) {
491
 
492
  if ($networkId == 1) {
493
  $edit = '<div class="b2s-post-item-details-item-message-area" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '">';
494
+ $edit .= '<textarea class="form-control fb-textarea-input b2s-post-item-details-item-message-input ' . (in_array($networkId, $this->allowHtml) ? 'b2s-post-item-details-item-message-input-allow-html' : '') . '" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-text-limit="' . esc_attr($limitValue) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '" placeholder="' . esc_attr__('Write something about your post...', 'blog2social') . '" name="b2s[' . esc_attr($networkAuthId) . '][content]" ' . $isRequiredTextarea . ' ' . $textareaOnKeyUp . '>' . esc_html($message) . '</textarea>';
495
  if (!in_array($networkId, $this->allowNoEmoji)) {
496
  $edit .= '<button type="button" class="btn btn-sm b2s-post-item-details-item-message-emoji-btn" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '"><img src="' . esc_url(plugins_url('/assets/images/b2s-emoji.png', B2S_PLUGIN_FILE)) . '"/></button>';
497
  }
551
 
552
  if ($networkId == 2) {
553
  $edit = '<div class="b2s-post-item-details-item-message-area" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '">';
554
+ $edit .= '<textarea class="form-control tw-textarea-input b2s-post-item-details-item-message-input ' . (in_array($networkId, $this->allowHtml) ? 'b2s-post-item-details-item-message-input-allow-html' : '') . '" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-text-limit="' . esc_attr($limitValue) . '" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '" placeholder="' . esc_attr__('Write something about your post...', 'blog2social') . '" unique="currency" name="b2s[' . esc_attr($networkAuthId) . '][content]" ' . $isRequiredTextarea . ' ' . $textareaOnKeyUp . '>' . esc_html($message) . '</textarea>';
555
  if (!in_array($networkId, $this->allowNoEmoji)) {
556
  $edit .= '<button type="button" class="btn btn-sm b2s-post-item-details-item-message-emoji-btn" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '"><img src="' . esc_url(plugins_url('/assets/images/b2s-emoji.png', B2S_PLUGIN_FILE)) . '"/></button>';
557
  }
611
 
612
  if ($networkId == 3) {
613
  $edit = '<div class="b2s-post-item-details-item-message-area" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '">';
614
+ $edit .= '<textarea class="form-control linkedin-textarea-input b2s-post-item-details-item-message-input ' . (in_array($networkId, $this->allowHtml) ? 'b2s-post-item-details-item-message-input-allow-html' : '') . '" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-text-limit="' . esc_attr($limitValue) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '" placeholder="' . esc_attr__('Write something about your post...', 'blog2social') . '" name="b2s[' . esc_attr($networkAuthId) . '][content]" ' . $isRequiredTextarea . ' ' . $textareaOnKeyUp . '>' . esc_html($message) . '</textarea>';
615
  if (!in_array($networkId, $this->allowNoEmoji)) {
616
  $edit .= '<button type="button" class="btn btn-sm b2s-post-item-details-item-message-emoji-btn" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '"><img src="' . esc_url(plugins_url('/assets/images/b2s-emoji.png', B2S_PLUGIN_FILE)) . '"/></button>';
617
  }
670
 
671
  if ($networkId == 4) {
672
  $edit = '<div class="b2s-post-item-details-item-message-area" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '">';
673
+ $edit .= '<textarea class="form-control tumblr-textarea-input b2s-post-item-details-item-message-input ' . (in_array($networkId, $this->allowHtml) ? 'b2s-post-item-details-item-message-input-allow-html' : '') . '" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-text-limit="' . esc_attr($limitValue) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '" placeholder="' . esc_attr__('Write something about your post...', 'blog2social') . '" name="b2s[' . esc_attr($networkAuthId) . '][content]" ' . $isRequiredTextarea . ' ' . $textareaOnKeyUp . '>' . esc_html($message) . '</textarea>';
674
  if (!in_array($networkId, $this->allowNoEmoji)) {
675
  $edit .= '<button type="button" class="btn btn-sm b2s-post-item-details-item-message-emoji-btn" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '"><img src="' . esc_url(plugins_url('/assets/images/b2s-emoji.png', B2S_PLUGIN_FILE)) . '"/></button>';
676
  }
691
 
692
  if (($networkId == 8 || $networkId == 19)) {
693
  $edit = '<div class="b2s-post-item-details-item-message-area" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '">';
694
+ $edit .= '<textarea class="form-control xing-textarea-input b2s-post-item-details-item-message-input ' . (in_array($networkId, $this->allowHtml) ? 'b2s-post-item-details-item-message-input-allow-html' : '') . '" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-text-limit="' . esc_attr($limitValue) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '" placeholder="' . esc_attr__('Write something about your post...', 'blog2social') . '" name="b2s[' . esc_attr($networkAuthId) . '][content]" ' . $isRequiredTextarea . ' ' . $textareaOnKeyUp . '>' . esc_html($message) . '</textarea>';
695
  if (!in_array($networkId, $this->allowNoEmoji)) {
696
  $edit .= '<button type="button" class="btn btn-sm b2s-post-item-details-item-message-emoji-btn" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '"><img src="' . esc_url(plugins_url('/assets/images/b2s-emoji.png', B2S_PLUGIN_FILE)) . '"/></button>';
697
  }
720
  }
721
  if (($networkId == 15)) {
722
  $edit = '<div class="b2s-post-item-details-item-message-area" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '">';
723
+ $edit .= '<textarea class="form-control reddit-textarea-input b2s-post-item-details-item-message-input ' . (in_array($networkId, $this->allowHtml) ? 'b2s-post-item-details-item-message-input-allow-html' : '') . '" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-text-limit="' . esc_attr($limitValue) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '" placeholder="' . esc_attr__('Write something about your post...', 'blog2social') . '" name="b2s[' . esc_attr($networkAuthId) . '][content]" ' . $isRequiredTextarea . ' ' . $textareaOnKeyUp . '>' . esc_html($message) . '</textarea>';
724
  if (!in_array($networkId, $this->allowNoEmoji)) {
725
  $edit .= '<button type="button" class="btn btn-sm b2s-post-item-details-item-message-emoji-btn" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '"><img src="' . esc_url(plugins_url('/assets/images/b2s-emoji.png', B2S_PLUGIN_FILE)) . '"/></button>';
726
  }
748
  }
749
  if ($networkId == 17) {
750
  $edit = '<div class="b2s-post-item-details-item-message-area" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '">';
751
+ $edit .= '<textarea class="form-control vk-textarea-input b2s-post-item-details-item-message-input ' . (in_array($networkId, $this->allowHtml) ? 'b2s-post-item-details-item-message-input-allow-html' : '') . '" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-text-limit="' . esc_attr($limitValue) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '" placeholder="' . esc_attr__('Write something about your post...', 'blog2social') . '" name="b2s[' . esc_attr($networkAuthId) . '][content]" ' . $isRequiredTextarea . ' ' . $textareaOnKeyUp . '>' . esc_html($message) . '</textarea>';
752
  if (!in_array($networkId, $this->allowNoEmoji)) {
753
  $edit .= '<button type="button" class="btn btn-sm b2s-post-item-details-item-message-emoji-btn" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '"><img src="' . esc_url(plugins_url('/assets/images/b2s-emoji.png', B2S_PLUGIN_FILE)) . '"/></button>';
754
  }
776
  }
777
  if ($networkId == 24) {
778
  $edit = '<div class="b2s-post-item-details-item-message-area" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '">';
779
+ $edit .= '<textarea class="form-control telegram-textarea-input b2s-post-item-details-item-message-input ' . (in_array($networkId, $this->allowHtml) ? 'b2s-post-item-details-item-message-input-allow-html' : '') . '" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-text-limit="' . esc_attr($limitValue) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '" placeholder="' . esc_attr__('Write something about your post...', 'blog2social') . '" name="b2s[' . esc_attr($networkAuthId) . '][content]" ' . $isRequiredTextarea . ' ' . $textareaOnKeyUp . '>' . esc_html($message) . '</textarea>';
780
  if (!in_array($networkId, $this->allowNoEmoji)) {
781
  $edit .= '<button type="button" class="btn btn-sm b2s-post-item-details-item-message-emoji-btn" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '"><img src="' . esc_url(plugins_url('/assets/images/b2s-emoji.png', B2S_PLUGIN_FILE)) . '"/></button>';
782
  }
804
  }
805
  } else {
806
  $edit = '<div class="b2s-post-item-details-item-message-area" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '">';
807
+ $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-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-text-limit="' . esc_attr($limitValue) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '" placeholder="' . esc_attr__('Write something about your post...', 'blog2social') . '" name="b2s[' . esc_attr($networkAuthId) . '][content]" ' . $isRequiredTextarea . ' ' . $textareaOnKeyUp . ' ' . (($networkId == 12) ? 'unique="currency"' : '') . '>' . esc_html($message) . '</textarea>';
808
  if (!in_array($networkId, $this->allowNoEmoji)) {
809
  $edit .= '<button type="button" class="btn btn-sm b2s-post-item-details-item-message-emoji-btn" data-network-count="-1" data-network-id="' . esc_attr($networkId) . '" data-network-auth-id="' . esc_attr($networkAuthId) . '"><img src="' . esc_url(plugins_url('/assets/images/b2s-emoji.png', B2S_PLUGIN_FILE)) . '"/></button>';
810
  }
includes/B2S/Ship/Save.php CHANGED
@@ -501,7 +501,7 @@ class B2S_Ship_Save {
501
  }
502
 
503
  if($network_id == 12 && $error == 'DEFAULT') {
504
- $networkError12 = sprintf(__('Your post could not be posted. More information in this <a href="%s" target="_blank">Instagram troubleshoot checklist</a>.', 'blog2social'), B2S_Tools::getSupportLink('instagram_error_business'));
505
  $html .= '<br><span class="text-danger"><i class="glyphicon glyphicon-remove-circle glyphicon-danger"></i> ' . $networkError12 . $add . '</span>';
506
  } else {
507
  $html .= '<br><span class="text-danger"><i class="glyphicon glyphicon-remove-circle glyphicon-danger"></i> ' . $errorText[$error] . $add . '</span>';
501
  }
502
 
503
  if($network_id == 12 && $error == 'DEFAULT') {
504
+ $networkError12 = sprintf(__('Your post could not be posted. More information in this <a href="%s" target="_blank">Instagram troubleshoot checklist</a>.', 'blog2social'), esc_url(B2S_Tools::getSupportLink('instagram_error_business')));
505
  $html .= '<br><span class="text-danger"><i class="glyphicon glyphicon-remove-circle glyphicon-danger"></i> ' . $networkError12 . $add . '</span>';
506
  } else {
507
  $html .= '<br><span class="text-danger"><i class="glyphicon glyphicon-remove-circle glyphicon-danger"></i> ' . $errorText[$error] . $add . '</span>';
includes/Loader.php CHANGED
@@ -1082,7 +1082,7 @@ class B2S_Loader {
1082
  public function createMenu() {
1083
  $subPages = array();
1084
  //pageTitle,menutitle,$capability, $menu_slug, $function, $icon_url, $position
1085
- add_menu_page('Blog2Social', 'Blog2Social', 'blog2social_access', 'blog2social', null, plugins_url('/assets/images/b2s_icon.png', B2S_PLUGIN_FILE));
1086
  //$parent_slug, $page_title, $menu_title, $capability, $menu_slug, $function
1087
  $subPages[] = add_submenu_page('blog2social', esc_html__('Dashboard', 'blog2social'), esc_html__('Dashboard', 'blog2social'), 'blog2social_access', 'blog2social', array($this, 'b2sstart'));
1088
  $subPages[] = add_submenu_page('blog2social', esc_html__('Networks', 'blog2social'), esc_html__('Networks', 'blog2social'), 'blog2social_access', 'blog2social-network', array($this, 'b2sNetwork'));
@@ -1123,7 +1123,7 @@ class B2S_Loader {
1123
  }
1124
  global $wp_admin_bar;
1125
  $seo_url = strtolower(get_admin_url(null, 'admin.php?page='));
1126
- $title = '<div id="blog2social-ab-icon" class="ab-item" style="padding-left: 25px; background-repeat: no-repeat; background-size: 16px auto; background-position: left center; background-image: url(\'' . plugins_url('/assets/images/b2s_icon.png', B2S_PLUGIN_FILE) . '\');">' . esc_html__('Blog2Social', 'blog2social') . '</div>';
1127
  $wp_admin_bar->add_node(array(
1128
  'id' => 'blog2social',
1129
  'title' => $title,
1082
  public function createMenu() {
1083
  $subPages = array();
1084
  //pageTitle,menutitle,$capability, $menu_slug, $function, $icon_url, $position
1085
+ add_menu_page('Blog2Social', 'Blog2Social', 'blog2social_access', 'blog2social', null, esc_url(plugins_url('/assets/images/b2s_icon.png', B2S_PLUGIN_FILE)));
1086
  //$parent_slug, $page_title, $menu_title, $capability, $menu_slug, $function
1087
  $subPages[] = add_submenu_page('blog2social', esc_html__('Dashboard', 'blog2social'), esc_html__('Dashboard', 'blog2social'), 'blog2social_access', 'blog2social', array($this, 'b2sstart'));
1088
  $subPages[] = add_submenu_page('blog2social', esc_html__('Networks', 'blog2social'), esc_html__('Networks', 'blog2social'), 'blog2social_access', 'blog2social-network', array($this, 'b2sNetwork'));
1123
  }
1124
  global $wp_admin_bar;
1125
  $seo_url = strtolower(get_admin_url(null, 'admin.php?page='));
1126
+ $title = '<div id="blog2social-ab-icon" class="ab-item" style="padding-left: 25px; background-repeat: no-repeat; background-size: 16px auto; background-position: left center; background-image: url(\'' . esc_url(plugins_url('/assets/images/b2s_icon.png', B2S_PLUGIN_FILE)) . '\');">' . esc_html__('Blog2Social', 'blog2social') . '</div>';
1127
  $wp_admin_bar->add_node(array(
1128
  'id' => 'blog2social',
1129
  'title' => $title,
includes/Meta.php CHANGED
@@ -174,7 +174,7 @@ class B2S_Meta {
174
  if (!is_home()) {
175
  $parts = parse_url($url);
176
  if (is_array($parts) && isset($parts['scheme']) && isset($parts['host'])) {
177
- $url = $parts['scheme'] . '://' . $parts['host'] . $_SERVER['REQUEST_URI'];
178
  }
179
  }
180
  echo '<meta property="og:url" content="' . esc_url(apply_filters('b2s_og_meta_url', $url)) . '"/>' . "\n";
174
  if (!is_home()) {
175
  $parts = parse_url($url);
176
  if (is_array($parts) && isset($parts['scheme']) && isset($parts['host'])) {
177
+ $url = esc_url_raw($parts['scheme'] . '://' . $parts['host'] . $_SERVER['REQUEST_URI']);
178
  }
179
  }
180
  echo '<meta property="og:url" content="' . esc_url(apply_filters('b2s_og_meta_url', $url)) . '"/>' . "\n";
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: auto post, auto publish, social media scheduling, social media calendar, s
5
  Donate link: https://paypal.me/adenion
6
  Requires at least: 4.7.0
7
  Tested up to: 5.9
8
- Stable tag: 6.9.7
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -234,6 +234,8 @@ To get started with the basics of Blog2Social and maybe find some useful tips an
234
  7. Keep track of your shared posts and scheduling plan with the Social Media Calendar.
235
 
236
  == Changelog ==
 
 
237
  = 6.9.7 =
238
  Additional Security Update
239
  = 6.9.6 =
@@ -322,6 +324,8 @@ Usability Optimization, Rebrandly integration, url parameter settings
322
  New Image Posts, Imgur, Animated Gifs and Emojis
323
 
324
  == Upgrade Notice ==
 
 
325
  = 6.9.7 =
326
  Additional Security Update
327
  = 6.9.6 =
5
  Donate link: https://paypal.me/adenion
6
  Requires at least: 4.7.0
7
  Tested up to: 5.9
8
+ Stable tag: 6.9.8
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
234
  7. Keep track of your shared posts and scheduling plan with the Social Media Calendar.
235
 
236
  == Changelog ==
237
+ = 6.9.8 =
238
+ Additional Security Update
239
  = 6.9.7 =
240
  Additional Security Update
241
  = 6.9.6 =
324
  New Image Posts, Imgur, Animated Gifs and Emojis
325
 
326
  == Upgrade Notice ==
327
+ = 6.9.8 =
328
+ Additional Security Update
329
  = 6.9.7 =
330
  Additional Security Update
331
  = 6.9.6 =
views/b2s/autopost.php CHANGED
@@ -131,7 +131,7 @@ $autoPostItem = new B2S_AutoPost_Item();
131
  )
132
  )); ?>
133
  </div>
134
- <input type="hidden" id="b2s_user_version" value="<?php echo B2S_PLUGIN_USER_VERSION; ?>" />
135
  <?php
136
  $noLegend = 1;
137
  require_once (B2S_PLUGIN_DIR . 'views/b2s/html/footer.php');
@@ -174,7 +174,7 @@ $autoPostItem = new B2S_AutoPost_Item();
174
  <h4 class="modal-title"><?php esc_html_e('Select Twitter profile:', 'blog2social') ?></h4>
175
  </div>
176
  <div class="modal-body">
177
- <?php esc_html_e('To comply with the Twitter TOS and to avoid duplicate posts, autoposts will be sent to your primary Twitter profile.', 'blog2social') ?> <a target="_blank" href="<?php echo B2S_Tools::getSupportLink('network_tos_faq_032018') ?>"><?php esc_html_e('More information', 'blog2social') ?></a>
178
  </div>
179
  </div>
180
  </div>
@@ -188,10 +188,10 @@ $autoPostItem = new B2S_AutoPost_Item();
188
  <h4 class="modal-title"><?php esc_html_e('Apply best times', 'blog2social') ?></h4>
189
  </div>
190
  <div class="modal-body">
191
- <?php echo sprintf(__('The time of publishing a post can play a decisive role in achieving more likes, shares and comments as well as a wide reach. Each social media network has it\'s "best times". Blog2Social provides you with predefined best times. When you activate the "best times" for your Auto-Poster, your WordPress posts and pages will be shared automatically at the "best times". Get more information about the "best times" in the guide "<a href="%s" target="_blank">The Best Times to Post on Social Media</a>".', 'blog2social'), B2S_Tools::getSupportLink('besttimes_blogpost')); ?>
192
  <br>
193
  <br>
194
- <?php echo sprintf(__('Please note: You can also set up your own "best times". You will learn how to set up your own "best times" in this <a href="%s" target="_blank">guide</a>.', 'blog2social'), B2S_Tools::getSupportLink('besttimes_faq')); ?>
195
  </div>
196
  </div>
197
  </div>
@@ -209,16 +209,16 @@ $autoPostItem = new B2S_AutoPost_Item();
209
  <?php esc_html_e('If you like to share your WordPress content (blogposts, pages, and products) automatically, you can use the following checklists where you get all information on the different setting panels for the Auto-Poster for WordPress content:', 'blog2social'); ?>
210
  <br>
211
  <br>
212
- <?php echo sprintf(__('<a href="%s" target="_blank">How to set up the Auto-Poster for your own WordPress content</a>', 'blog2social'), B2S_Tools::getSupportLink('autopost_checklist_wp')); ?>
213
  <br>
214
- <?php echo sprintf(__('<a href="%s" target="_blank">Sharing with the Auto-Poster- Things to check for Troubleshooting</a>', 'blog2social'), B2S_Tools::getSupportLink('auto_post_troubleshoot')); ?>
215
  <br>
216
  <br>
217
  <?php esc_html_e('All settings and social networks for the Auto-Poster can be defined for each WordPress user individually.', 'blog2social'); ?>
218
  <br>
219
  <?php esc_html_e('Please make sure that each WordPress user or author whose posts should be auto-posted', 'blog2social'); ?>
220
  <br>
221
- <?php echo sprintf(__('1. is activated with a valid Blog2Social Premium license (<a href="%s" target="_blank">How do I activate my license key?</a>)', 'blog2social'), B2S_Tools::getSupportLink('license_key')); ?>
222
  <br>
223
  <?php esc_html_e('2. has the selected social media networks connected or assigned (Blog2Social -> Networks)', 'blog2social'); ?>
224
  <br>
@@ -241,16 +241,16 @@ $autoPostItem = new B2S_AutoPost_Item();
241
  <?php esc_html_e('If you like to share imported (imported RSS feeds or posts created/ imported with another plugin) posts automatically, you can use the following checklists where you get all information on the different setting panels for the Auto-Poster for imported posts:', 'blog2social'); ?>
242
  <br>
243
  <br>
244
- <?php echo sprintf(__('<a href="%s" target="_blank">How to set up the Auto-Poster for imported content</a>', 'blog2social'), B2S_Tools::getSupportLink('autopost_checklist_rss')); ?>
245
  <br>
246
- <?php echo sprintf(__('<a href="%s" target="_blank">Sharing imported posts with the Auto-Poster- Things to check for Troubleshooting</a>', 'blog2social'), B2S_Tools::getSupportLink('auto_post_troubleshoot')); ?>
247
  <br>
248
  <br>
249
  <?php esc_html_e('All settings and social networks for the Auto-Poster can be defined for each WordPress user individually.', 'blog2social'); ?>
250
  <br>
251
  <?php esc_html_e('Please make sure that each WordPress user or author whose posts should be auto-posted', 'blog2social'); ?>
252
  <br>
253
- <?php echo sprintf(__('1. is activated with a valid Blog2Social Premium license (<a href="%s" target="_blank">How do I activate my license key?</a>)', 'blog2social'), B2S_Tools::getSupportLink('license_key')); ?>
254
  <br>
255
  <?php esc_html_e('2. has the selected social media networks connected or assigned (Blog2Social -> Networks)', 'blog2social'); ?>
256
  <br>
131
  )
132
  )); ?>
133
  </div>
134
+ <input type="hidden" id="b2s_user_version" value="<?php echo esc_attr(B2S_PLUGIN_USER_VERSION); ?>" />
135
  <?php
136
  $noLegend = 1;
137
  require_once (B2S_PLUGIN_DIR . 'views/b2s/html/footer.php');
174
  <h4 class="modal-title"><?php esc_html_e('Select Twitter profile:', 'blog2social') ?></h4>
175
  </div>
176
  <div class="modal-body">
177
+ <?php esc_html_e('To comply with the Twitter TOS and to avoid duplicate posts, autoposts will be sent to your primary Twitter profile.', 'blog2social') ?> <a target="_blank" href="<?php echo esc_url(B2S_Tools::getSupportLink('network_tos_faq_032018')) ?>"><?php esc_html_e('More information', 'blog2social') ?></a>
178
  </div>
179
  </div>
180
  </div>
188
  <h4 class="modal-title"><?php esc_html_e('Apply best times', 'blog2social') ?></h4>
189
  </div>
190
  <div class="modal-body">
191
+ <?php echo sprintf(__('The time of publishing a post can play a decisive role in achieving more likes, shares and comments as well as a wide reach. Each social media network has it\'s "best times". Blog2Social provides you with predefined best times. When you activate the "best times" for your Auto-Poster, your WordPress posts and pages will be shared automatically at the "best times". Get more information about the "best times" in the guide "<a href="%s" target="_blank">The Best Times to Post on Social Media</a>".', 'blog2social'), esc_url(B2S_Tools::getSupportLink('besttimes_blogpost'))); ?>
192
  <br>
193
  <br>
194
+ <?php echo sprintf(__('Please note: You can also set up your own "best times". You will learn how to set up your own "best times" in this <a href="%s" target="_blank">guide</a>.', 'blog2social'), esc_url(B2S_Tools::getSupportLink('besttimes_faq'))); ?>
195
  </div>
196
  </div>
197
  </div>
209
  <?php esc_html_e('If you like to share your WordPress content (blogposts, pages, and products) automatically, you can use the following checklists where you get all information on the different setting panels for the Auto-Poster for WordPress content:', 'blog2social'); ?>
210
  <br>
211
  <br>
212
+ <?php echo sprintf(__('<a href="%s" target="_blank">How to set up the Auto-Poster for your own WordPress content</a>', 'blog2social'), esc_url(B2S_Tools::getSupportLink('autopost_checklist_wp'))); ?>
213
  <br>
214
+ <?php echo sprintf(__('<a href="%s" target="_blank">Sharing with the Auto-Poster- Things to check for Troubleshooting</a>', 'blog2social'), esc_url(B2S_Tools::getSupportLink('auto_post_troubleshoot'))); ?>
215
  <br>
216
  <br>
217
  <?php esc_html_e('All settings and social networks for the Auto-Poster can be defined for each WordPress user individually.', 'blog2social'); ?>
218
  <br>
219
  <?php esc_html_e('Please make sure that each WordPress user or author whose posts should be auto-posted', 'blog2social'); ?>
220
  <br>
221
+ <?php echo sprintf(__('1. is activated with a valid Blog2Social Premium license (<a href="%s" target="_blank">How do I activate my license key?</a>)', 'blog2social'), esc_url(B2S_Tools::getSupportLink('license_key'))); ?>
222
  <br>
223
  <?php esc_html_e('2. has the selected social media networks connected or assigned (Blog2Social -> Networks)', 'blog2social'); ?>
224
  <br>
241
  <?php esc_html_e('If you like to share imported (imported RSS feeds or posts created/ imported with another plugin) posts automatically, you can use the following checklists where you get all information on the different setting panels for the Auto-Poster for imported posts:', 'blog2social'); ?>
242
  <br>
243
  <br>
244
+ <?php echo sprintf(__('<a href="%s" target="_blank">How to set up the Auto-Poster for imported content</a>', 'blog2social'), esc_url(B2S_Tools::getSupportLink('autopost_checklist_rss'))); ?>
245
  <br>
246
+ <?php echo sprintf(__('<a href="%s" target="_blank">Sharing imported posts with the Auto-Poster- Things to check for Troubleshooting</a>', 'blog2social'), esc_url(B2S_Tools::getSupportLink('auto_post_troubleshoot'))); ?>
247
  <br>
248
  <br>
249
  <?php esc_html_e('All settings and social networks for the Auto-Poster can be defined for each WordPress user individually.', 'blog2social'); ?>
250
  <br>
251
  <?php esc_html_e('Please make sure that each WordPress user or author whose posts should be auto-posted', 'blog2social'); ?>
252
  <br>
253
+ <?php echo sprintf(__('1. is activated with a valid Blog2Social Premium license (<a href="%s" target="_blank">How do I activate my license key?</a>)', 'blog2social'), esc_url(B2S_Tools::getSupportLink('license_key'))); ?>
254
  <br>
255
  <?php esc_html_e('2. has the selected social media networks connected or assigned (Blog2Social -> Networks)', 'blog2social'); ?>
256
  <br>
views/b2s/curation.draft.php CHANGED
@@ -89,8 +89,8 @@ require_once (B2S_PLUGIN_DIR . 'includes/Util.php');
89
  </div>
90
  </div>
91
 
92
- <input type="hidden" id="b2sLang" value="<?php echo substr(B2S_LANGUAGE, 0, 2); ?>">
93
- <input type="hidden" id="b2sUserLang" value="<?php echo strtolower(substr(get_locale(), 0, 2)); ?>">
94
 
95
 
96
 
89
  </div>
90
  </div>
91
 
92
+ <input type="hidden" id="b2sLang" value="<?php echo esc_attr(substr(B2S_LANGUAGE, 0, 2)); ?>">
93
+ <input type="hidden" id="b2sUserLang" value="<?php echo esc_attr(strtolower(substr(get_locale(), 0, 2))); ?>">
94
 
95
 
96
 
views/b2s/curation.php CHANGED
@@ -89,7 +89,7 @@ $selSchedDate = (isset($_GET['schedDate']) && !empty($_GET['schedDate'])) ? date
89
  <div class="b2s-curation-form-area">
90
  <div class="col-xs-12 col-sm-5 col-lg-3">
91
  <button class="btn btn-primary btn-circle b2s-image-remove-btn" style="display:none;" type="button"><i class="glyphicon glyphicon-trash"></i></button>
92
- <img src="<?php echo plugins_url('/assets/images/no-image.png', B2S_PLUGIN_FILE); ?>" class="b2s-post-item-details-url-image center-block img-responsive">
93
  <input type="hidden" class="b2s-image-url-hidden-field form-control" value="" name="image_url">
94
  <input type="hidden" class="b2s-image-id-hidden-field form-control" value="" name="image_id">
95
  <div class="clearfix"></div>
@@ -132,11 +132,11 @@ $selSchedDate = (isset($_GET['schedDate']) && !empty($_GET['schedDate'])) ? date
132
  </div>
133
  </div>
134
  </div>
135
- <input type="hidden" id="b2sSelSchedDate" value="<?php echo (($selSchedDate != "") ? strtotime($selSchedDate) . '000' : ''); ?>">
136
- <input type="hidden" id="b2sServerUrl" value="<?php echo B2S_PLUGIN_SERVER_URL; ?>">
137
  <input type="hidden" id="b2sJsTextPublish" value="<?php esc_html_e('published', 'blog2social') ?>">
138
- <input type="hidden" id="b2sEmojiTranslation" value='<?php echo json_encode(B2S_Tools::getEmojiTranslationList()); ?>'>
139
- <input type="hidden" id="b2sDefaultNoImage" value="<?php echo plugins_url('/assets/images/no-image.png', B2S_PLUGIN_FILE); ?>">
140
  </div>
141
  </div>
142
  </div>
@@ -236,7 +236,7 @@ $selSchedDate = (isset($_GET['schedDate']) && !empty($_GET['schedDate'])) ? date
236
  <span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Share pure text messages and personal comments with your followers and readers.', 'blog2social') ?><br>
237
  <span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Use hashtags, @mentions, or emojis to share your feelings.', 'blog2social') ?><br>
238
  <br>
239
- <?php echo sprintf(__('Learn more about how to share social media posts in the <a href="%s" target="_blank">social media posts guide</a>.', 'blog2social'), B2S_Tools::getSupportLink('cc_info_faq')); ?>
240
  <br>
241
  <a target="_blank" href="<?php echo esc_url(B2S_Tools::getSupportLink('affiliate')); ?>" class="btn btn-success center-block"><?php esc_html_e('Upgrade to PRO and above', 'blog2social') ?></a>
242
  <br>
@@ -256,24 +256,24 @@ $selSchedDate = (isset($_GET['schedDate']) && !empty($_GET['schedDate'])) ? date
256
  </div>
257
  <div class="modal-body">
258
  <div class="b2s-network-imgs">
259
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Facebook') ?>" src="<?php echo plugins_url('/assets/images/portale/1_flat.png', B2S_PLUGIN_FILE) ?>">
260
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Twitter') ?>" src="<?php echo plugins_url('/assets/images/portale/2_flat.png', B2S_PLUGIN_FILE) ?>">
261
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('LinkedIn') ?>" src="<?php echo plugins_url('/assets/images/portale/3_flat.png', B2S_PLUGIN_FILE) ?>">
262
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('VKontakte') ?>" src="<?php echo plugins_url('/assets/images/portale/17_flat.png', B2S_PLUGIN_FILE) ?>">
263
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('XING') ?>" src="<?php echo plugins_url('/assets/images/portale/19_flat.png', B2S_PLUGIN_FILE) ?>">
264
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Google My Business') ?>" src="<?php echo plugins_url('/assets/images/portale/18_flat.png', B2S_PLUGIN_FILE) ?>">
265
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Telegram') ?>" src="<?php echo plugins_url('/assets/images/portale/24_flat.png', B2S_PLUGIN_FILE) ?>">
266
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Tumblr') ?>" src="<?php echo plugins_url('/assets/images/portale/4_flat.png', B2S_PLUGIN_FILE) ?>">
267
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Torial') ?>" src="<?php echo plugins_url('/assets/images/portale/14_flat.png', B2S_PLUGIN_FILE) ?>">
268
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Bloglovin') ?>" src="<?php echo plugins_url('/assets/images/portale/16_flat.png', B2S_PLUGIN_FILE) ?>">
269
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Blogger') ?>" src="<?php echo plugins_url('/assets/images/portale/25_flat.png', B2S_PLUGIN_FILE) ?>">
270
 
271
- <img class="pull-right hidden-xs b2s-network-info-img-disabled" alt="<?php esc_attr_e('Flickr') ?>" src="<?php echo plugins_url('/assets/images/portale/7_flat.png', B2S_PLUGIN_FILE) ?>">
272
- <img class="pull-right hidden-xs b2s-network-info-img-disabled" alt="<?php esc_attr_e('Diigo') ?>" src="<?php echo plugins_url('/assets/images/portale/9_flat.png', B2S_PLUGIN_FILE) ?>">
273
- <img class="pull-right hidden-xs b2s-network-info-img-disabled" alt="<?php esc_attr_e('Pinterest') ?>" src="<?php echo plugins_url('/assets/images/portale/6_flat.png', B2S_PLUGIN_FILE) ?>">
274
- <img class="pull-right hidden-xs b2s-network-info-img-disabled" alt="<?php esc_attr_e('Instagram') ?>" src="<?php echo plugins_url('/assets/images/portale/12_flat.png', B2S_PLUGIN_FILE) ?>">
275
- <img class="pull-right hidden-xs b2s-network-info-img-disabled" alt="<?php esc_attr_e('Reddit') ?>" src="<?php echo plugins_url('/assets/images/portale/15_flat.png', B2S_PLUGIN_FILE) ?>">
276
- <img class="pull-right hidden-xs b2s-network-info-img-disabled" alt="<?php esc_attr_e('Medium') ?>" src="<?php echo plugins_url('/assets/images/portale/11_flat.png', B2S_PLUGIN_FILE) ?>">
277
  </div>
278
  <br>
279
  <p><?php esc_html_e('Text posts enable you to share pure text messages and personal comments with your followers and readers. You can also customize your posts with individual hashtags, @mentions, or emojis.', 'blog2social') ?></p>
@@ -290,11 +290,11 @@ $selSchedDate = (isset($_GET['schedDate']) && !empty($_GET['schedDate'])) ? date
290
  <p class="b2s-bold"><?php esc_attr_e('Bloglovin') ?></p>
291
  <p class="b2s-bold"><?php esc_attr_e('Blogger') ?></p>
292
  <br>
293
- <p><?php echo sprintf(__('Get more information on how to share a text post with hashtags, @mentions and emojis in the <a href="%s" target="_blank">social media posts guide</a>.', 'blog2social'), B2S_Tools::getSupportLink('cc_text_post_info')); ?></p>
294
  <br>
295
  <p><?php echo sprintf(__('In the <a href="%s">Network Settings</a> you can define one or more network selections for your posts.', 'blog2social'), 'admin.php?page=blog2social-network'); ?>
296
  <br>
297
- <?php echo sprintf(__('More information on how to create a network selection in the guide <a href="%s" target="_blank">"How can I save a specific selection of networks?"</a>', 'blog2social'), B2S_Tools::getSupportLink('network_grouping')); ?></p>
298
  </div>
299
  </div>
300
  </div>
@@ -372,24 +372,24 @@ $selSchedDate = (isset($_GET['schedDate']) && !empty($_GET['schedDate'])) ? date
372
  </div>
373
  <div class="modal-body">
374
  <div class="b2s-network-imgs">
375
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Facebook') ?>" src="<?php echo plugins_url('/assets/images/portale/1_flat.png', B2S_PLUGIN_FILE) ?>">
376
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Twitter') ?>" src="<?php echo plugins_url('/assets/images/portale/2_flat.png', B2S_PLUGIN_FILE) ?>">
377
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('LinkedIn') ?>" src="<?php echo plugins_url('/assets/images/portale/3_flat.png', B2S_PLUGIN_FILE) ?>">
378
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Pinterest') ?>" src="<?php echo plugins_url('/assets/images/portale/6_flat.png', B2S_PLUGIN_FILE) ?>">
379
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Flickr') ?>" src="<?php echo plugins_url('/assets/images/portale/7_flat.png', B2S_PLUGIN_FILE) ?>">
380
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Diigo') ?>" src="<?php echo plugins_url('/assets/images/portale/9_flat.png', B2S_PLUGIN_FILE) ?>">
381
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Instagram') ?>" src="<?php echo plugins_url('/assets/images/portale/12_flat.png', B2S_PLUGIN_FILE) ?>">
382
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Reddit') ?>" src="<?php echo plugins_url('/assets/images/portale/15_flat.png', B2S_PLUGIN_FILE) ?>">
383
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('VKontakte') ?>" src="<?php echo plugins_url('/assets/images/portale/17_flat.png', B2S_PLUGIN_FILE) ?>">
384
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('XING') ?>" src="<?php echo plugins_url('/assets/images/portale/19_flat.png', B2S_PLUGIN_FILE) ?>">
385
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Google My Business') ?>" src="<?php echo plugins_url('/assets/images/portale/18_flat.png', B2S_PLUGIN_FILE) ?>">
386
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Telegram') ?>" src="<?php echo plugins_url('/assets/images/portale/24_flat.png', B2S_PLUGIN_FILE) ?>">
387
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Tumblr') ?>" src="<?php echo plugins_url('/assets/images/portale/4_flat.png', B2S_PLUGIN_FILE) ?>">
388
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Torial') ?>" src="<?php echo plugins_url('/assets/images/portale/14_flat.png', B2S_PLUGIN_FILE) ?>">
389
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Bloglovin') ?>" src="<?php echo plugins_url('/assets/images/portale/16_flat.png', B2S_PLUGIN_FILE) ?>">
390
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Blogger') ?>" src="<?php echo plugins_url('/assets/images/portale/25_flat.png', B2S_PLUGIN_FILE) ?>">
391
 
392
- <img class="pull-right hidden-xs b2s-network-info-img-disabled" alt="<?php esc_attr_e('Medium') ?>" src="<?php echo plugins_url('/assets/images/portale/11_flat.png', B2S_PLUGIN_FILE) ?>">
393
  </div>
394
  <br>
395
  <p><?php esc_html_e('With Blog2Social you can share social media posts consisting of text, links, images, and videos automatically with your followers and readers and customize your posts with individual hashtags, @mentions, or emojis.', 'blog2social') ?></p>
@@ -413,7 +413,7 @@ $selSchedDate = (isset($_GET['schedDate']) && !empty($_GET['schedDate'])) ? date
413
  <br>
414
  <p><?php echo sprintf(__('In the <a href="%s">Network Settings</a> you can define network selections to select and save your most-used networks for specific posts or campaigns.', 'blog2social'), 'admin.php?page=blog2social-network'); ?>
415
  <br>
416
- <?php echo sprintf(__('More information on how to create a network selection in the guide <a href="%s" target="_blank">"How can I save a specific selection of networks?"</a>', 'blog2social'), B2S_Tools::getSupportLink('network_grouping')); ?></p>
417
  </div>
418
  </div>
419
  </div>
89
  <div class="b2s-curation-form-area">
90
  <div class="col-xs-12 col-sm-5 col-lg-3">
91
  <button class="btn btn-primary btn-circle b2s-image-remove-btn" style="display:none;" type="button"><i class="glyphicon glyphicon-trash"></i></button>
92
+ <img src="<?php echo esc_url(plugins_url('/assets/images/no-image.png', B2S_PLUGIN_FILE)); ?>" class="b2s-post-item-details-url-image center-block img-responsive">
93
  <input type="hidden" class="b2s-image-url-hidden-field form-control" value="" name="image_url">
94
  <input type="hidden" class="b2s-image-id-hidden-field form-control" value="" name="image_id">
95
  <div class="clearfix"></div>
132
  </div>
133
  </div>
134
  </div>
135
+ <input type="hidden" id="b2sSelSchedDate" value="<?php echo esc_attr((($selSchedDate != "") ? strtotime($selSchedDate) . '000' : '')); ?>">
136
+ <input type="hidden" id="b2sServerUrl" value="<?php echo esc_attr(B2S_PLUGIN_SERVER_URL); ?>">
137
  <input type="hidden" id="b2sJsTextPublish" value="<?php esc_html_e('published', 'blog2social') ?>">
138
+ <input type="hidden" id="b2sEmojiTranslation" value='<?php echo esc_attr(json_encode(B2S_Tools::getEmojiTranslationList())); ?>'>
139
+ <input type="hidden" id="b2sDefaultNoImage" value="<?php echo esc_url(plugins_url('/assets/images/no-image.png', B2S_PLUGIN_FILE)); ?>">
140
  </div>
141
  </div>
142
  </div>
236
  <span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Share pure text messages and personal comments with your followers and readers.', 'blog2social') ?><br>
237
  <span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Use hashtags, @mentions, or emojis to share your feelings.', 'blog2social') ?><br>
238
  <br>
239
+ <?php echo sprintf(__('Learn more about how to share social media posts in the <a href="%s" target="_blank">social media posts guide</a>.', 'blog2social'), esc_url(B2S_Tools::getSupportLink('cc_info_faq'))); ?>
240
  <br>
241
  <a target="_blank" href="<?php echo esc_url(B2S_Tools::getSupportLink('affiliate')); ?>" class="btn btn-success center-block"><?php esc_html_e('Upgrade to PRO and above', 'blog2social') ?></a>
242
  <br>
256
  </div>
257
  <div class="modal-body">
258
  <div class="b2s-network-imgs">
259
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Facebook') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/1_flat.png', B2S_PLUGIN_FILE)) ?>">
260
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Twitter') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/2_flat.png', B2S_PLUGIN_FILE)) ?>">
261
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('LinkedIn') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/3_flat.png', B2S_PLUGIN_FILE)) ?>">
262
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('VKontakte') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/17_flat.png', B2S_PLUGIN_FILE)) ?>">
263
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('XING') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/19_flat.png', B2S_PLUGIN_FILE)) ?>">
264
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Google My Business') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/18_flat.png', B2S_PLUGIN_FILE)) ?>">
265
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Telegram') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/24_flat.png', B2S_PLUGIN_FILE)) ?>">
266
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Tumblr') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/4_flat.png', B2S_PLUGIN_FILE)) ?>">
267
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Torial') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/14_flat.png', B2S_PLUGIN_FILE)) ?>">
268
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Bloglovin') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/16_flat.png', B2S_PLUGIN_FILE)) ?>">
269
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Blogger') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/25_flat.png', B2S_PLUGIN_FILE)) ?>">
270
 
271
+ <img class="pull-right hidden-xs b2s-network-info-img-disabled" alt="<?php esc_attr_e('Flickr') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/7_flat.png', B2S_PLUGIN_FILE)) ?>">
272
+ <img class="pull-right hidden-xs b2s-network-info-img-disabled" alt="<?php esc_attr_e('Diigo') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/9_flat.png', B2S_PLUGIN_FILE)) ?>">
273
+ <img class="pull-right hidden-xs b2s-network-info-img-disabled" alt="<?php esc_attr_e('Pinterest') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/6_flat.png', B2S_PLUGIN_FILE)) ?>">
274
+ <img class="pull-right hidden-xs b2s-network-info-img-disabled" alt="<?php esc_attr_e('Instagram') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/12_flat.png', B2S_PLUGIN_FILE)) ?>">
275
+ <img class="pull-right hidden-xs b2s-network-info-img-disabled" alt="<?php esc_attr_e('Reddit') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/15_flat.png', B2S_PLUGIN_FILE)) ?>">
276
+ <img class="pull-right hidden-xs b2s-network-info-img-disabled" alt="<?php esc_attr_e('Medium') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/11_flat.png', B2S_PLUGIN_FILE)) ?>">
277
  </div>
278
  <br>
279
  <p><?php esc_html_e('Text posts enable you to share pure text messages and personal comments with your followers and readers. You can also customize your posts with individual hashtags, @mentions, or emojis.', 'blog2social') ?></p>
290
  <p class="b2s-bold"><?php esc_attr_e('Bloglovin') ?></p>
291
  <p class="b2s-bold"><?php esc_attr_e('Blogger') ?></p>
292
  <br>
293
+ <p><?php echo sprintf(__('Get more information on how to share a text post with hashtags, @mentions and emojis in the <a href="%s" target="_blank">social media posts guide</a>.', 'blog2social'), esc_url(B2S_Tools::getSupportLink('cc_text_post_info'))); ?></p>
294
  <br>
295
  <p><?php echo sprintf(__('In the <a href="%s">Network Settings</a> you can define one or more network selections for your posts.', 'blog2social'), 'admin.php?page=blog2social-network'); ?>
296
  <br>
297
+ <?php echo sprintf(__('More information on how to create a network selection in the guide <a href="%s" target="_blank">"How can I save a specific selection of networks?"</a>', 'blog2social'), esc_url(B2S_Tools::getSupportLink('network_grouping'))); ?></p>
298
  </div>
299
  </div>
300
  </div>
372
  </div>
373
  <div class="modal-body">
374
  <div class="b2s-network-imgs">
375
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Facebook') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/1_flat.png', B2S_PLUGIN_FILE)) ?>">
376
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Twitter') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/2_flat.png', B2S_PLUGIN_FILE)) ?>">
377
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('LinkedIn') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/3_flat.png', B2S_PLUGIN_FILE)) ?>">
378
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Pinterest') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/6_flat.png', B2S_PLUGIN_FILE)) ?>">
379
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Flickr') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/7_flat.png', B2S_PLUGIN_FILE)) ?>">
380
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Diigo') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/9_flat.png', B2S_PLUGIN_FILE)) ?>">
381
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Instagram') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/12_flat.png', B2S_PLUGIN_FILE)) ?>">
382
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Reddit') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/15_flat.png', B2S_PLUGIN_FILE)) ?>">
383
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('VKontakte') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/17_flat.png', B2S_PLUGIN_FILE)) ?>">
384
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('XING') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/19_flat.png', B2S_PLUGIN_FILE)) ?>">
385
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Google My Business') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/18_flat.png', B2S_PLUGIN_FILE)) ?>">
386
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Telegram') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/24_flat.png', B2S_PLUGIN_FILE)) ?>">
387
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Tumblr') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/4_flat.png', B2S_PLUGIN_FILE)) ?>">
388
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Torial') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/14_flat.png', B2S_PLUGIN_FILE)) ?>">
389
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Bloglovin') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/16_flat.png', B2S_PLUGIN_FILE)) ?>">
390
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Blogger') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/25_flat.png', B2S_PLUGIN_FILE)) ?>">
391
 
392
+ <img class="pull-right hidden-xs b2s-network-info-img-disabled" alt="<?php esc_attr_e('Medium') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/11_flat.png', B2S_PLUGIN_FILE)) ?>">
393
  </div>
394
  <br>
395
  <p><?php esc_html_e('With Blog2Social you can share social media posts consisting of text, links, images, and videos automatically with your followers and readers and customize your posts with individual hashtags, @mentions, or emojis.', 'blog2social') ?></p>
413
  <br>
414
  <p><?php echo sprintf(__('In the <a href="%s">Network Settings</a> you can define network selections to select and save your most-used networks for specific posts or campaigns.', 'blog2social'), 'admin.php?page=blog2social-network'); ?>
415
  <br>
416
+ <?php echo sprintf(__('More information on how to create a network selection in the guide <a href="%s" target="_blank">"How can I save a specific selection of networks?"</a>', 'blog2social'), esc_url(B2S_Tools::getSupportLink('network_grouping'))); ?></p>
417
  </div>
418
  </div>
419
  </div>
views/b2s/dashboard.php CHANGED
@@ -59,11 +59,11 @@ $b2sGeneralOptions = get_option('B2S_PLUGIN_GENERAL_OPTIONS');
59
  <div class="pull-right">
60
  <div class="form-inline">
61
  <label class="b2s-text-xl b2s-color-grey"><?php esc_html_e("Follow us", "blog2social") ?></label>
62
- <a href="https://www.facebook.com/Blog2Social/" target="_blank" rel="nofollow"><img src="<?php echo plugins_url('/assets/images/portale/1_flat.png', B2S_PLUGIN_FILE); ?>" width="28" alt="Facebook"></a>
63
- <a href="https://twitter.com/Blog2Social" target="_blank" rel="nofollow"><img src="<?php echo plugins_url('/assets/images/portale/2_flat.png', B2S_PLUGIN_FILE); ?>" width="28" alt="Twitter"></a>
64
- <a href="https://www.linkedin.com/showcase/blog2social-com/" target="_blank" rel="nofollow"><img src="<?php echo plugins_url('/assets/images/portale/3_flat.png', B2S_PLUGIN_FILE); ?>" width="28" alt="Linkedin"></a>
65
- <a href="https://www.instagram.com/adenion_gmbh/" target="_blank" rel="nofollow"><img src="<?php echo plugins_url('/assets/images/portale/12_flat.png', B2S_PLUGIN_FILE); ?>" width="28" alt="Instagram"></a>
66
- <a href="https://www.pinterest.de/adeniongmbh/" target="_blank" rel="nofollow"><img src="<?php echo plugins_url('/assets/images/portale/20_flat.png', B2S_PLUGIN_FILE); ?>" width="28" alt="Pinterest"></a>
67
  </div>
68
  </div>
69
  </div>
@@ -204,7 +204,7 @@ $b2sGeneralOptions = get_option('B2S_PLUGIN_GENERAL_OPTIONS');
204
  <div class="col-md-6 col-xs-12">
205
  <div class="b2s-post-type-area text-center">
206
  <div class="image">
207
- <img class="img-width-150" src="<?php echo plugins_url('/assets/images/b2s/blog-post-icon.png', B2S_PLUGIN_FILE); ?>" alt="blog post">
208
  </div>
209
  <div class="text">
210
  <?php esc_html_e("Share your WordPress posts, pages or products", "blog2social") ?>
@@ -217,7 +217,7 @@ $b2sGeneralOptions = get_option('B2S_PLUGIN_GENERAL_OPTIONS');
217
  <div class="col-md-6 col-xs-12">
218
  <div class="b2s-post-type-area text-center">
219
  <div class="image">
220
- <img class="img-width-150" src="<?php echo plugins_url('/assets/images/b2s/content-curation-icon.png', B2S_PLUGIN_FILE); ?>" alt="content curation">
221
  </div>
222
  <div class="text">
223
  <?php esc_html_e("Create or share content from other sources", "blog2social") ?>
59
  <div class="pull-right">
60
  <div class="form-inline">
61
  <label class="b2s-text-xl b2s-color-grey"><?php esc_html_e("Follow us", "blog2social") ?></label>
62
+ <a href="https://www.facebook.com/Blog2Social/" target="_blank" rel="nofollow"><img src="<?php echo esc_url(plugins_url('/assets/images/portale/1_flat.png', B2S_PLUGIN_FILE)); ?>" width="28" alt="Facebook"></a>
63
+ <a href="https://twitter.com/Blog2Social" target="_blank" rel="nofollow"><img src="<?php echo esc_url(plugins_url('/assets/images/portale/2_flat.png', B2S_PLUGIN_FILE)); ?>" width="28" alt="Twitter"></a>
64
+ <a href="https://www.linkedin.com/showcase/blog2social-com/" target="_blank" rel="nofollow"><img src="<?php echo esc_url(plugins_url('/assets/images/portale/3_flat.png', B2S_PLUGIN_FILE)); ?>" width="28" alt="Linkedin"></a>
65
+ <a href="https://www.instagram.com/adenion_gmbh/" target="_blank" rel="nofollow"><img src="<?php echo esc_url(plugins_url('/assets/images/portale/12_flat.png', B2S_PLUGIN_FILE)); ?>" width="28" alt="Instagram"></a>
66
+ <a href="https://www.pinterest.de/adeniongmbh/" target="_blank" rel="nofollow"><img src="<?php echo esc_url(plugins_url('/assets/images/portale/20_flat.png', B2S_PLUGIN_FILE)); ?>" width="28" alt="Pinterest"></a>
67
  </div>
68
  </div>
69
  </div>
204
  <div class="col-md-6 col-xs-12">
205
  <div class="b2s-post-type-area text-center">
206
  <div class="image">
207
+ <img class="img-width-150" src="<?php echo esc_url(plugins_url('/assets/images/b2s/blog-post-icon.png', B2S_PLUGIN_FILE)); ?>" alt="blog post">
208
  </div>
209
  <div class="text">
210
  <?php esc_html_e("Share your WordPress posts, pages or products", "blog2social") ?>
217
  <div class="col-md-6 col-xs-12">
218
  <div class="b2s-post-type-area text-center">
219
  <div class="image">
220
+ <img class="img-width-150" src="<?php echo esc_url(plugins_url('/assets/images/b2s/content-curation-icon.png', B2S_PLUGIN_FILE)); ?>" alt="content curation">
221
  </div>
222
  <div class="text">
223
  <?php esc_html_e("Create or share content from other sources", "blog2social") ?>
views/b2s/html/footer.php CHANGED
@@ -7,10 +7,10 @@
7
  </div>
8
  <div class="pull-right hidden-xs <?php echo isset($noLegend) || isset($noLegendCalender) ? 'hide' : ''; ?>">
9
  <small>
10
- <img class="img-width-9" src="<?php echo plugins_url('/assets/images/b2s/post-icon.png', B2S_PLUGIN_FILE); ?>" alt="beitrag"> <?php esc_html_e('Post', 'blog2social') ?>
11
- <img class="img-width-9" src="<?php echo plugins_url('/assets/images/b2s/job-icon.png', B2S_PLUGIN_FILE); ?>" alt="job"> <?php esc_html_e('Job', 'blog2social') ?>
12
- <img class="img-width-9" src="<?php echo plugins_url('/assets/images/b2s/event-icon.png', B2S_PLUGIN_FILE); ?>" alt="event"> <?php esc_html_e('Event', 'blog2social') ?>
13
- <img class="img-width-9" src="<?php echo plugins_url('/assets/images/b2s/product-icon.png', B2S_PLUGIN_FILE); ?>" alt="product"> <?php esc_html_e('Product', 'blog2social') ?>
14
  </small>
15
  </div>
16
  </div>
@@ -39,7 +39,7 @@
39
  <span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Select individual images per post', 'blog2social') ?><br>
40
  <span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Reporting & calendar: keep track of your published and scheduled social media posts', 'blog2social') ?><br>
41
  <br>
42
- <a target="_blank" href="<?php echo B2S_Tools::getSupportLink('affiliate'); ?>" class="btn btn-success center-block"><?php esc_html_e('Upgrade to SMART and above', 'blog2social') ?></a>
43
  <br>
44
  <center> <?php echo sprintf(__('or <a target="_blank" href="%s">start with free 30-days-trial of Blog2Social Premium</a> (no payment information needed)', 'blog2social'), esc_url('https://service.blog2social.com/trial')); ?> </center>
45
  </div>
7
  </div>
8
  <div class="pull-right hidden-xs <?php echo isset($noLegend) || isset($noLegendCalender) ? 'hide' : ''; ?>">
9
  <small>
10
+ <img class="img-width-9" src="<?php echo esc_url(plugins_url('/assets/images/b2s/post-icon.png', B2S_PLUGIN_FILE)); ?>" alt="beitrag"> <?php esc_html_e('Post', 'blog2social') ?>
11
+ <img class="img-width-9" src="<?php echo esc_url(plugins_url('/assets/images/b2s/job-icon.png', B2S_PLUGIN_FILE)); ?>" alt="job"> <?php esc_html_e('Job', 'blog2social') ?>
12
+ <img class="img-width-9" src="<?php echo esc_url(plugins_url('/assets/images/b2s/event-icon.png', B2S_PLUGIN_FILE)); ?>" alt="event"> <?php esc_html_e('Event', 'blog2social') ?>
13
+ <img class="img-width-9" src="<?php echo esc_url(plugins_url('/assets/images/b2s/product-icon.png', B2S_PLUGIN_FILE)); ?>" alt="product"> <?php esc_html_e('Product', 'blog2social') ?>
14
  </small>
15
  </div>
16
  </div>
39
  <span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Select individual images per post', 'blog2social') ?><br>
40
  <span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Reporting & calendar: keep track of your published and scheduled social media posts', 'blog2social') ?><br>
41
  <br>
42
+ <a target="_blank" href="<?php echo esc_url(B2S_Tools::getSupportLink('affiliate')); ?>" class="btn btn-success center-block"><?php esc_html_e('Upgrade to SMART and above', 'blog2social') ?></a>
43
  <br>
44
  <center> <?php echo sprintf(__('or <a target="_blank" href="%s">start with free 30-days-trial of Blog2Social Premium</a> (no payment information needed)', 'blog2social'), esc_url('https://service.blog2social.com/trial')); ?> </center>
45
  </div>
views/b2s/html/header.php CHANGED
@@ -110,7 +110,7 @@ $hideFinalTrailModal = $options->_getOption('hide_final_trail');
110
  <br>
111
  <?php echo esc_html__('Please make sure that you only use one plugin for setting meta tags so that the networks can display the link preview of your post correctly.', 'blog2social'); ?>
112
  <br>
113
- <?php echo sprintf(__('You will find a checklist for setting Open Graph tags in the <a href="%s" target="_blank">Open Graph Tag guide</a>.', 'blog2social'), B2S_Tools::getSupportLink('yoast_warning_og_guide')); ?>
114
  </div>
115
  </div>
116
 
@@ -403,7 +403,7 @@ if (!B2S_System::isblockedArea('B2S_MENU_MODUL_RATING', B2S_PLUGIN_ADMIN)) {
403
  <span class="glyphicon glyphicon-info-sign glyphicon-primary"></span> <?php esc_html_e('No credit card required', 'blog2social'); ?>
404
  </div>
405
  <div class="pull-right">
406
- <input type="hidden" name="trial_url" id="trial_url" value="<?php echo get_option('home'); ?>" />
407
  <input class="btn btn-success pull-right b2s-trail-btn-start" type="submit" value="<?php esc_html_e('Get Started', 'blog2social'); ?>">
408
  </div>
409
  </div>
@@ -503,7 +503,7 @@ if (!B2S_System::isblockedArea('B2S_MENU_MODUL_RATING', B2S_PLUGIN_ADMIN)) {
503
  <div class="modal-content">
504
  <div class="modal-header">
505
  <button type="button" class="close" data-dismiss="modal">&times;</button>
506
- <h4 class="modal-title"> <img src="<?php echo plugins_url('/assets/images/b2s@32.png', B2S_PLUGIN_FILE); ?>" alt="blog2social"> <?php esc_html_e('We updated our Privacy Policy', 'blog2social') ?></h4>
507
  </div>
508
  <div class="modal-body b2s-scroll-modal-body b2s-modal-privacy-policy-scroll-content">
509
  <p>
@@ -531,7 +531,7 @@ if (!B2S_System::isblockedArea('B2S_MENU_MODUL_RATING', B2S_PLUGIN_ADMIN)) {
531
  <div class="modal-content">
532
  <div class="modal-body text-center" style="background-color: #f4f4f4;">
533
  <button type="button" class="close b2s-metrics-banner-close" data-dismiss="modal">&times;</button>
534
- <img src="<?php echo plugins_url('/assets/images/metrics/social-symbols.png', B2S_PLUGIN_FILE); ?>" style="width: 80px; float: right; margin-left: -65px;" alt="blog2social">
535
  <br>
536
  <h3><?php echo esc_html__('Social Media Metrics', 'blog2social') . ' <span class="label label-success label-sm">' . esc_html__("BETA", "blog2social") . '</span>' ?></h3>
537
  <br>
@@ -541,7 +541,7 @@ if (!B2S_System::isblockedArea('B2S_MENU_MODUL_RATING', B2S_PLUGIN_ADMIN)) {
541
  <?php esc_html_e('Benefit from the new Social Media Metrics and use the analysis of your social media posts for your further social media strategy.', 'blog2social'); ?>
542
  <br>
543
  <br>
544
- <img src="<?php echo plugins_url('/assets/images/metrics/banner.png', B2S_PLUGIN_FILE); ?>" alt="blog2social">
545
  <br>
546
  <br>
547
  <a href="admin.php?page=blog2social-metrics&metrics_banner=1" class="btn btn-lg btn-success"><?php esc_html_e('Start your free trial for Social Media Metrics', 'blog2social'); ?></a>
@@ -563,7 +563,7 @@ $trial_days = round($datediff / (60 * 60 * 24)); ?>
563
  <div class="modal-content modal-lg">
564
  <div class="modal-body text-center" style="background-color: #f4f4f4;">
565
  <button type="button" class="close b2s-trial-seven-day-modal-close" data-dismiss="modal">&times;</button>
566
- <img src="<?php echo plugins_url('/assets/images/b2s/trial_popup.png', B2S_PLUGIN_FILE); ?>" style="width: 80px; float: right; margin-left: -65px;" alt="blog2social">
567
  <br>
568
  <div class="col-md-8 col-md-push-2">
569
  <h3 class="b2s-bold"><?php echo sprintf(__('Your free trial of Blog2Social Premium expires in %d days. Don’t miss to upgrade before your trial expires to keep all your benefits and individual settings.', 'blog2social'), esc_html($trial_days)); ?></h3>
@@ -625,7 +625,7 @@ $trial_days = round($datediff / (60 * 60 * 24)); ?>
625
  <div class="modal-content modal-lg">
626
  <div class="modal-body text-center" style="background-color: #f4f4f4;">
627
  <button type="button" class="close b2s-final-trail-modal-close" data-dismiss="modal">&times;</button>
628
- <img src="<?php echo plugins_url('/assets/images/b2s/trial_popup.png', B2S_PLUGIN_FILE); ?>" style="width: 80px; float: right; margin-left: -65px;" alt="blog2social">
629
  <br>
630
  <div class="col-md-8 col-md-push-2">
631
  <h3 class="b2s-bold"><?php esc_html_e('Your free trial of Blog2Social Premium has expired. We hope you explored and enjoyed all the Premium options.', 'blog2social'); ?></h3>
@@ -666,7 +666,7 @@ $trial_days = round($datediff / (60 * 60 * 24)); ?>
666
  <i><?php esc_html_e('"Blog2Social is the master tool any blogger or marketer needs to automate your social media activity. It removes so much work and stress that\'s involved in posting to your networks manually. Also, the scheduling and reposting features are terrific. Blog2Social simplifies my life immensely!"', 'blog2social'); ?></i>
667
  - <?php esc_html_e('jerryj1 per WordPress', 'blog2social') ?>
668
  <hr class="b2s-dash">
669
- <?php echo sprintf(__('Interested in reading more reviews? <a href="%s" target="_blank">Check out what others think about Blog2Social.</a>', 'blog2social'), B2S_Tools::getSupportLink('b2s_reviews')); ?>
670
  <br>
671
  <br>
672
  <?php esc_html_e('Get all Premium benefits starting from just $7 per month.', 'blog2social'); ?>
110
  <br>
111
  <?php echo esc_html__('Please make sure that you only use one plugin for setting meta tags so that the networks can display the link preview of your post correctly.', 'blog2social'); ?>
112
  <br>
113
+ <?php echo sprintf(__('You will find a checklist for setting Open Graph tags in the <a href="%s" target="_blank">Open Graph Tag guide</a>.', 'blog2social'), esc_url(B2S_Tools::getSupportLink('yoast_warning_og_guide'))); ?>
114
  </div>
115
  </div>
116
 
403
  <span class="glyphicon glyphicon-info-sign glyphicon-primary"></span> <?php esc_html_e('No credit card required', 'blog2social'); ?>
404
  </div>
405
  <div class="pull-right">
406
+ <input type="hidden" name="trial_url" id="trial_url" value="<?php echo esc_attr(get_option('home')); ?>" />
407
  <input class="btn btn-success pull-right b2s-trail-btn-start" type="submit" value="<?php esc_html_e('Get Started', 'blog2social'); ?>">
408
  </div>
409
  </div>
503
  <div class="modal-content">
504
  <div class="modal-header">
505
  <button type="button" class="close" data-dismiss="modal">&times;</button>
506
+ <h4 class="modal-title"> <img src="<?php echo esc_url(plugins_url('/assets/images/b2s@32.png', B2S_PLUGIN_FILE)); ?>" alt="blog2social"> <?php esc_html_e('We updated our Privacy Policy', 'blog2social') ?></h4>
507
  </div>
508
  <div class="modal-body b2s-scroll-modal-body b2s-modal-privacy-policy-scroll-content">
509
  <p>
531
  <div class="modal-content">
532
  <div class="modal-body text-center" style="background-color: #f4f4f4;">
533
  <button type="button" class="close b2s-metrics-banner-close" data-dismiss="modal">&times;</button>
534
+ <img src="<?php echo esc_url(plugins_url('/assets/images/metrics/social-symbols.png', B2S_PLUGIN_FILE)); ?>" style="width: 80px; float: right; margin-left: -65px;" alt="blog2social">
535
  <br>
536
  <h3><?php echo esc_html__('Social Media Metrics', 'blog2social') . ' <span class="label label-success label-sm">' . esc_html__("BETA", "blog2social") . '</span>' ?></h3>
537
  <br>
541
  <?php esc_html_e('Benefit from the new Social Media Metrics and use the analysis of your social media posts for your further social media strategy.', 'blog2social'); ?>
542
  <br>
543
  <br>
544
+ <img src="<?php echo esc_url(plugins_url('/assets/images/metrics/banner.png', B2S_PLUGIN_FILE)); ?>" alt="blog2social">
545
  <br>
546
  <br>
547
  <a href="admin.php?page=blog2social-metrics&metrics_banner=1" class="btn btn-lg btn-success"><?php esc_html_e('Start your free trial for Social Media Metrics', 'blog2social'); ?></a>
563
  <div class="modal-content modal-lg">
564
  <div class="modal-body text-center" style="background-color: #f4f4f4;">
565
  <button type="button" class="close b2s-trial-seven-day-modal-close" data-dismiss="modal">&times;</button>
566
+ <img src="<?php echo esc_url(plugins_url('/assets/images/b2s/trial_popup.png', B2S_PLUGIN_FILE)); ?>" style="width: 80px; float: right; margin-left: -65px;" alt="blog2social">
567
  <br>
568
  <div class="col-md-8 col-md-push-2">
569
  <h3 class="b2s-bold"><?php echo sprintf(__('Your free trial of Blog2Social Premium expires in %d days. Don’t miss to upgrade before your trial expires to keep all your benefits and individual settings.', 'blog2social'), esc_html($trial_days)); ?></h3>
625
  <div class="modal-content modal-lg">
626
  <div class="modal-body text-center" style="background-color: #f4f4f4;">
627
  <button type="button" class="close b2s-final-trail-modal-close" data-dismiss="modal">&times;</button>
628
+ <img src="<?php echo esc_url(plugins_url('/assets/images/b2s/trial_popup.png', B2S_PLUGIN_FILE)); ?>" style="width: 80px; float: right; margin-left: -65px;" alt="blog2social">
629
  <br>
630
  <div class="col-md-8 col-md-push-2">
631
  <h3 class="b2s-bold"><?php esc_html_e('Your free trial of Blog2Social Premium has expired. We hope you explored and enjoyed all the Premium options.', 'blog2social'); ?></h3>
666
  <i><?php esc_html_e('"Blog2Social is the master tool any blogger or marketer needs to automate your social media activity. It removes so much work and stress that\'s involved in posting to your networks manually. Also, the scheduling and reposting features are terrific. Blog2Social simplifies my life immensely!"', 'blog2social'); ?></i>
667
  - <?php esc_html_e('jerryj1 per WordPress', 'blog2social') ?>
668
  <hr class="b2s-dash">
669
+ <?php echo sprintf(__('Interested in reading more reviews? <a href="%s" target="_blank">Check out what others think about Blog2Social.</a>', 'blog2social'), esc_url(B2S_Tools::getSupportLink('b2s_reviews'))); ?>
670
  <br>
671
  <br>
672
  <?php esc_html_e('Get all Premium benefits starting from just $7 per month.', 'blog2social'); ?>
views/b2s/html/sidebar.php CHANGED
@@ -18,7 +18,7 @@ $getPage = (isset($_GET['page']) && !empty($_GET['page'])) ? sanitize_text_field
18
  <?php } else { ?>
19
  <div class="col-md-2 del-padding-left">
20
  <a class="" href="https://www.blog2social.com" target="_blank">
21
- <img class="img-responsive b2s-img-logo" src="<?php echo plugins_url('/assets/images/b2s@64.png', B2S_PLUGIN_FILE); ?>" alt="logo">
22
  </a>
23
  </div>
24
  <div class="col-md-10 del-padding-left">
@@ -44,9 +44,9 @@ $getPage = (isset($_GET['page']) && !empty($_GET['page'])) ? sanitize_text_field
44
  if (B2S_PLUGIN_USER_VERSION == 0) {
45
  echo "<br>";
46
  if ((defined("B2S_PLUGIN_TRAIL_END") && strtotime(B2S_PLUGIN_TRAIL_END) < time()) || get_option('B2S_PLUGIN_DISABLE_TRAIL') == true) {
47
- echo '<a class="btn-link b2s-free-link" target="_blank" href="' . B2S_Tools::getSupportLink('affiliate') . '">' . esc_html__('Upgrade to Premium', 'blog2social') . '</a>';
48
  } else {
49
- echo '<a class="btn-link b2s-free-link" target="_blank" href="' . B2S_Tools::getSupportLink('feature') . '">' . esc_html__('Start your 30-day free Premium trial', 'blog2social') . '</a>';
50
  }
51
  }
52
  ?>
@@ -121,7 +121,7 @@ $getPage = (isset($_GET['page']) && !empty($_GET['page'])) ? sanitize_text_field
121
  <?php } ?>
122
  <?php if (!B2S_System::isblockedArea('B2S_MENU_ITEM_PLANS', B2S_PLUGIN_ADMIN)) { ?>
123
  <li class="b2s-list-margin-left-10">
124
- <i class="glyphicon glyphicon-signal glyphicon-success"></i> <a href="<?php echo B2S_Tools::getSupportLink('affiliate'); ?>" target="_blank" class="b2s-sidebar-menu-item"><?php esc_html_e("Plans & Prices", "blog2social") ?></a>
125
  </li>
126
  <?php } ?>
127
  </ul>
18
  <?php } else { ?>
19
  <div class="col-md-2 del-padding-left">
20
  <a class="" href="https://www.blog2social.com" target="_blank">
21
+ <img class="img-responsive b2s-img-logo" src="<?php echo esc_url(plugins_url('/assets/images/b2s@64.png', B2S_PLUGIN_FILE)); ?>" alt="logo">
22
  </a>
23
  </div>
24
  <div class="col-md-10 del-padding-left">
44
  if (B2S_PLUGIN_USER_VERSION == 0) {
45
  echo "<br>";
46
  if ((defined("B2S_PLUGIN_TRAIL_END") && strtotime(B2S_PLUGIN_TRAIL_END) < time()) || get_option('B2S_PLUGIN_DISABLE_TRAIL') == true) {
47
+ echo '<a class="btn-link b2s-free-link" target="_blank" href="' . esc_url(B2S_Tools::getSupportLink('affiliate')) . '">' . esc_html__('Upgrade to Premium', 'blog2social') . '</a>';
48
  } else {
49
+ echo '<a class="btn-link b2s-free-link" target="_blank" href="' . esc_url(B2S_Tools::getSupportLink('feature')) . '">' . esc_html__('Start your 30-day free Premium trial', 'blog2social') . '</a>';
50
  }
51
  }
52
  ?>
121
  <?php } ?>
122
  <?php if (!B2S_System::isblockedArea('B2S_MENU_ITEM_PLANS', B2S_PLUGIN_ADMIN)) { ?>
123
  <li class="b2s-list-margin-left-10">
124
+ <i class="glyphicon glyphicon-signal glyphicon-success"></i> <a href="<?php echo esc_url(B2S_Tools::getSupportLink('affiliate')); ?>" target="_blank" class="b2s-sidebar-menu-item"><?php esc_html_e("Plans & Prices", "blog2social") ?></a>
125
  </li>
126
  <?php } ?>
127
  </ul>
views/b2s/html/sidebar.ship.php CHANGED
@@ -15,7 +15,7 @@ $customizeArea = B2S_System::customizeArea();
15
  <?php } else { ?>
16
  <div class="col-md-2 del-padding-left">
17
  <a class="" href="https://www.blog2social.com" target="_blank">
18
- <img class="img-responsive b2s-img-logo" src="<?php echo plugins_url('/assets/images/b2s@64.png', B2S_PLUGIN_FILE); ?>" alt="logo">
19
  </a>
20
  </div>
21
  <div class="col-md-10 del-padding-left">
@@ -41,9 +41,9 @@ $customizeArea = B2S_System::customizeArea();
41
  if(B2S_PLUGIN_USER_VERSION == 0) {
42
  echo "<br>";
43
  if((defined("B2S_PLUGIN_TRAIL_END") && strtotime(B2S_PLUGIN_TRAIL_END) < time()) || get_option('B2S_PLUGIN_DISABLE_TRAIL') == true){
44
- echo '<a class="btn-link b2s-free-link" target="_blank" href="'.B2S_Tools::getSupportLink('affiliate').'">' . esc_html__('Upgrade to Premium', 'blog2social') . '</a>';
45
  } else {
46
- echo '<a class="btn-link b2s-free-link" target="_blank" href="'.B2S_Tools::getSupportLink('feature').'">' . esc_html__('Start your 30-day free Premium trial', 'blog2social') . '</a>';
47
  }
48
  }
49
  ?>
15
  <?php } else { ?>
16
  <div class="col-md-2 del-padding-left">
17
  <a class="" href="https://www.blog2social.com" target="_blank">
18
+ <img class="img-responsive b2s-img-logo" src="<?php echo esc_url(plugins_url('/assets/images/b2s@64.png', B2S_PLUGIN_FILE)); ?>" alt="logo">
19
  </a>
20
  </div>
21
  <div class="col-md-10 del-padding-left">
41
  if(B2S_PLUGIN_USER_VERSION == 0) {
42
  echo "<br>";
43
  if((defined("B2S_PLUGIN_TRAIL_END") && strtotime(B2S_PLUGIN_TRAIL_END) < time()) || get_option('B2S_PLUGIN_DISABLE_TRAIL') == true){
44
+ echo '<a class="btn-link b2s-free-link" target="_blank" href="'.esc_url(B2S_Tools::getSupportLink('affiliate')).'">' . esc_html__('Upgrade to Premium', 'blog2social') . '</a>';
45
  } else {
46
+ echo '<a class="btn-link b2s-free-link" target="_blank" href="'.esc_url(B2S_Tools::getSupportLink('feature')).'">' . esc_html__('Start your 30-day free Premium trial', 'blog2social') . '</a>';
47
  }
48
  }
49
  ?>
views/b2s/metrics.php CHANGED
@@ -48,8 +48,8 @@ if(isset($_GET['metrics_banner']) && (int) $_GET['metrics_banner'] == 1) {
48
  <div class="col-md-10 b2s-calendar-filter form-inline del-padding-left del-padding-right">
49
  <div class="b2s-calendar-filter-network-list" style="display: block ruby;">
50
  <label><input type="radio" class="b2s-calendar-filter-network-btn" checked="" name="b2s-calendar-filter-network-btn" value="all"><span><?php esc_html_e('all', 'blog2social') ?></span></label>
51
- <label><input type="radio" class="b2s-calendar-filter-network-btn" name="b2s-calendar-filter-network-btn" value="1"><span><img class="b2s-calendar-filter-img" alt="Facebook" src="<?php echo plugins_url('/assets/images/portale/1_flat.png', B2S_PLUGIN_FILE); ?>"></span></label>
52
- <label><input type="radio" class="b2s-calendar-filter-network-btn" name="b2s-calendar-filter-network-btn" value="2"><span><img class="b2s-calendar-filter-img" alt="Twitter" src="<?php echo plugins_url('/assets/images/portale/2_flat.png', B2S_PLUGIN_FILE); ?>"></span></label>
53
  </div>
54
  </div>
55
  <div class="col-md-2 padding-right-0">
@@ -76,7 +76,7 @@ if(isset($_GET['metrics_banner']) && (int) $_GET['metrics_banner'] == 1) {
76
  <?php
77
  foreach($networkCount as $networkId => $networkCount) {
78
  echo '<div style="display: inline-flex; margin-right: 30px;">
79
- <img style="margin-right: 10px;" alt="'.esc_attr(unserialize(B2S_PLUGIN_NETWORK)[$networkId]).'" src="'.plugins_url('/assets/images/portale/'.esc_attr($networkId).'_flat.png', B2S_PLUGIN_FILE).'">
80
  <div style="text-align: center;">
81
  <b>'.esc_html(unserialize(B2S_PLUGIN_NETWORK)[$networkId]).'</b><br>
82
  '.esc_html($networkCount).'<br>
@@ -191,7 +191,7 @@ if(isset($_GET['metrics_banner']) && (int) $_GET['metrics_banner'] == 1) {
191
  <div class="modal-content">
192
  <div class="modal-body">
193
  <span class="b2s-bold text-success" style="font-size: 24px;"><?php esc_html_e('Welcome to the trial of the beta version "Social Media Metrics"!', 'blog2social') ?></span>
194
- <img src="<?php echo plugins_url('/assets/images/metrics/social-symbols.png', B2S_PLUGIN_FILE); ?>" style="width: 80px; float: right;" alt="blog2social">
195
  <br>
196
  <br>
197
  <?php esc_html_e('You can now track the performance of your posts directly in Blog2Social, starting with Facebook and Twitter, as well as other networks to follow. And you can test it exclusively and for free!', 'blog2social') ?>
48
  <div class="col-md-10 b2s-calendar-filter form-inline del-padding-left del-padding-right">
49
  <div class="b2s-calendar-filter-network-list" style="display: block ruby;">
50
  <label><input type="radio" class="b2s-calendar-filter-network-btn" checked="" name="b2s-calendar-filter-network-btn" value="all"><span><?php esc_html_e('all', 'blog2social') ?></span></label>
51
+ <label><input type="radio" class="b2s-calendar-filter-network-btn" name="b2s-calendar-filter-network-btn" value="1"><span><img class="b2s-calendar-filter-img" alt="Facebook" src="<?php echo esc_url(plugins_url('/assets/images/portale/1_flat.png', B2S_PLUGIN_FILE)); ?>"></span></label>
52
+ <label><input type="radio" class="b2s-calendar-filter-network-btn" name="b2s-calendar-filter-network-btn" value="2"><span><img class="b2s-calendar-filter-img" alt="Twitter" src="<?php echo esc_url(plugins_url('/assets/images/portale/2_flat.png', B2S_PLUGIN_FILE)); ?>"></span></label>
53
  </div>
54
  </div>
55
  <div class="col-md-2 padding-right-0">
76
  <?php
77
  foreach($networkCount as $networkId => $networkCount) {
78
  echo '<div style="display: inline-flex; margin-right: 30px;">
79
+ <img style="margin-right: 10px;" alt="'.esc_attr(unserialize(B2S_PLUGIN_NETWORK)[$networkId]).'" src="'.esc_url(plugins_url('/assets/images/portale/'.esc_attr($networkId).'_flat.png', B2S_PLUGIN_FILE)).'">
80
  <div style="text-align: center;">
81
  <b>'.esc_html(unserialize(B2S_PLUGIN_NETWORK)[$networkId]).'</b><br>
82
  '.esc_html($networkCount).'<br>
191
  <div class="modal-content">
192
  <div class="modal-body">
193
  <span class="b2s-bold text-success" style="font-size: 24px;"><?php esc_html_e('Welcome to the trial of the beta version "Social Media Metrics"!', 'blog2social') ?></span>
194
+ <img src="<?php echo esc_url(plugins_url('/assets/images/metrics/social-symbols.png', B2S_PLUGIN_FILE)); ?>" style="width: 80px; float: right;" alt="blog2social">
195
  <br>
196
  <br>
197
  <?php esc_html_e('You can now track the performance of your posts directly in Blog2Social, starting with Facebook and Twitter, as well as other networks to follow. And you can test it exclusively and for free!', 'blog2social') ?>
views/b2s/network.php CHANGED
@@ -58,7 +58,7 @@ $networkData = $networkItem->getData();
58
  <span class="glyphicon glyphicon-trash"></span> <?php esc_html_e('Delete', 'blog2social') ?>
59
  </button>
60
 
61
- <a target="_blank" href="<?php echo B2S_Tools::getSupportLink('network_mandant') ?>"><?php esc_html_e('Info', 'blog2social') ?></a>
62
  </div>
63
  <div class="form-group b2s-network-time-manager-area pull-right hidden-xs">
64
  <?php if (B2S_PLUGIN_USER_VERSION > 0) { ?>
@@ -72,7 +72,80 @@ $networkData = $networkItem->getData();
72
  </div>
73
  </div>
74
  <div class="row b2s-network-auth-area">
75
- <?php $networkItem->getPortale($networkData['mandanten'], $networkData['auth'], $networkData['portale'], $networkData['auth_count'], $networkData['addon_count']); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  </div>
77
  <div class="row b2s-loading-area width-100" style="display: none">
78
  <div class="b2s-loader-impulse b2s-loader-impulse-md"></div>
@@ -89,7 +162,7 @@ $networkData = $networkItem->getData();
89
  </div>
90
  </div>
91
  </div>
92
- <input type="hidden" id="lang" value="<?php echo substr(B2S_LANGUAGE, 0, 2); ?>">
93
 
94
  <div class="modal fade" id="b2s-network-add-mandant" tabindex="-1" role="dialog" aria-labelledby="b2s-network-add-mandant" aria-hidden="true" data-backdrop="false" style="display:none;">
95
  <div class="modal-dialog" role="document">
@@ -229,25 +302,25 @@ $networkData = $networkItem->getData();
229
  <div class="modal-content">
230
  <div class="modal-header">
231
  <button type="button" class="b2s-modal-close close" data-modal-name="#b2s-edit-template" aria-label="Close"><span aria-hidden="true">&times;</span></button>
232
- <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-1" alt="Facebook" src="<?php echo plugins_url('/assets/images/portale/1_flat.png', B2S_PLUGIN_FILE); ?>" style="display: none;">
233
- <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-2" alt="Twitter" src="<?php echo plugins_url('/assets/images/portale/2_flat.png', B2S_PLUGIN_FILE); ?>" style="display: none;">
234
- <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-3" alt="LinkedIn" src="<?php echo plugins_url('/assets/images/portale/3_flat.png', B2S_PLUGIN_FILE); ?>" style="display: none;">
235
- <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-4" alt="Tumblr" src="<?php echo plugins_url('/assets/images/portale/4_flat.png', B2S_PLUGIN_FILE); ?>" style="display: none;">
236
- <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-6" alt="Pinterest" src="<?php echo plugins_url('/assets/images/portale/6_flat.png', B2S_PLUGIN_FILE); ?>" style="display: none;">
237
- <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-7" alt="Flickr" src="<?php echo plugins_url('/assets/images/portale/7_flat.png', B2S_PLUGIN_FILE); ?>" style="display: none;">
238
- <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-9" alt="Diigo" src="<?php echo plugins_url('/assets/images/portale/9_flat.png', B2S_PLUGIN_FILE); ?>" style="display: none;">
239
- <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-11" alt="Medium" src="<?php echo plugins_url('/assets/images/portale/11_flat.png', B2S_PLUGIN_FILE); ?>" style="display: none;">
240
- <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-12" alt="Instagram" src="<?php echo plugins_url('/assets/images/portale/12_flat.png', B2S_PLUGIN_FILE); ?>" style="display: none;">
241
- <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-14" alt="Torial" src="<?php echo plugins_url('/assets/images/portale/14_flat.png', B2S_PLUGIN_FILE); ?>" style="display: none;">
242
- <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-15" alt="Reddit" src="<?php echo plugins_url('/assets/images/portale/15_flat.png', B2S_PLUGIN_FILE); ?>" style="display: none;">
243
- <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-16" alt="Bloglovin" src="<?php echo plugins_url('/assets/images/portale/16_flat.png', B2S_PLUGIN_FILE); ?>" style="display: none;">
244
- <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-17" alt="VKontakte" src="<?php echo plugins_url('/assets/images/portale/17_flat.png', B2S_PLUGIN_FILE); ?>" style="display: none;">
245
- <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-18" alt="Google My Business" src="<?php echo plugins_url('/assets/images/portale/18_flat.png', B2S_PLUGIN_FILE); ?>" style="display: none;">
246
- <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-19" alt="Xing" src="<?php echo plugins_url('/assets/images/portale/19_flat.png', B2S_PLUGIN_FILE); ?>" style="display: none;">
247
- <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-24" alt="Telegram" src="<?php echo plugins_url('/assets/images/portale/24_flat.png', B2S_PLUGIN_FILE); ?>" style="display: none;">
248
- <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-25" alt="Blogger" src="<?php echo plugins_url('/assets/images/portale/25_flat.png', B2S_PLUGIN_FILE); ?>" style="display: none;">
249
- <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-26" alt="Ravelry" src="<?php echo plugins_url('/assets/images/portale/26_flat.png', B2S_PLUGIN_FILE); ?>" style="display: none;">
250
- <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-27" alt="Instapaper" src="<?php echo plugins_url('/assets/images/portale/27_flat.png', B2S_PLUGIN_FILE); ?>" style="display: none;">
251
  <h4 class="modal-title b2s-edit-template-title"><?php esc_html_e('Edit Post Template', 'blog2social') ?></h4> <?php echo ((B2S_PLUGIN_USER_VERSION == 0) ? '<span class="label label-success">' . esc_html__('SMART', 'blog2social') . '</span>' : '') ?>
252
  </div>
253
  <div class="row b2s-loading-area width-100">
@@ -361,8 +434,8 @@ $networkData = $networkItem->getData();
361
  <div class="alert alert-danger b2s-auth-network-6-extension-error" data-info="default"><?php esc_html_e('The login failed. To connect your Pinterest account to Blog2Social, please sign in to Pinterest using the Blog2Social browser extension.', 'blog2social'); ?></div>
362
  <h3>1. <?php esc_html_e('Download and activate the Blog2Social extension', 'blog2social'); ?></h3>
363
  <div class="b2s-auth-network-6-extension-download-area">
364
- <a class="b2s-auth-network-6-extension-download-link" href="https://addons.mozilla.org/en-US/firefox/addon/blog2social/" target="_blank"><img src="<?php echo plugins_url('/assets/images/firefox-extension.png', B2S_PLUGIN_FILE); ?>"></a>
365
- <a class="b2s-auth-network-6-extension-download-link" href="https://chrome.google.com/webstore/detail/blog2social-social-media/hobhidjecjjgknjpnclnmfgkajdjlaml" target="_blank"><img src="<?php echo plugins_url('/assets/images/chrome-extension.png', B2S_PLUGIN_FILE); ?>"></a>
366
  </div>
367
  <h3>2. <?php esc_html_e('Click on "continue"', 'blog2social'); ?></h3>
368
  </div>
@@ -397,8 +470,8 @@ $networkData = $networkItem->getData();
397
  <div class="modal-body b2s-auth-network-6-login-area">
398
  <div class="alert alert-info"><?php esc_html_e('Please make sure to use your original Pinterest login data (email and password). Social Login via Facebook or Google login data will not work here. Please also check if the two-factor authentication in Pinterest is deactivated to ensure a stable connection to Blog2Social.', 'blog2social'); ?></div>
399
  <div class="alert alert-danger b2s-auth-network-6-info" data-info="default" style="display:none;"><?php esc_html_e('An error occurred! Please try again.', 'blog2social'); ?></div>
400
- <div class="alert alert-danger b2s-auth-network-6-info" data-info="version" style="display:none;"><?php sprintf(__('You want to connect an additional account? <a target="_blank" href="%s">Upgrade to Blog2Social Premium</a>', 'blog2social'), B2S_Tools::getSupportLink('affiliate')); ?></div>
401
- <div class="alert alert-danger b2s-auth-network-6-info" data-info="limit" style="display:none;"><?php echo sprintf(__('You want to connect an additional account? <a target="_blank" href="%s">Upgrade to Blog2Social Premium</a>', 'blog2social'), B2S_Tools::getSupportLink('affiliate')); ?></div>
402
  <div class="alert alert-danger b2s-auth-network-6-info" data-info="invalid" style="display:none;"><?php esc_html_e('Invalid Data! Please try again.', 'blog2social'); ?></div>
403
  <div class="alert alert-danger b2s-auth-network-6-info" data-info="board" style="display:none;"><?php echo esc_html_e('You have not yet created any pinboards in your Pinterest account. Please set up at least one pinboard to pin on your Pinterest account!', 'blog2social'); ?></div>
404
  <div class="alert alert-danger b2s-auth-network-6-info" data-info="login" style="display:none;"><?php echo sprintf(__('Login failed. Please check your login data for typos and please check your Pinterest settings, if the two-factor authentication is turned off for this account: <a target="_blank" href="%s">%s</a>', 'blog2social'), esc_url('https://www.pinterest.com/settings/security/'), esc_url('https://www.pinterest.com/settings/security/')); ?></div>
58
  <span class="glyphicon glyphicon-trash"></span> <?php esc_html_e('Delete', 'blog2social') ?>
59
  </button>
60
 
61
+ <a target="_blank" href="<?php echo esc_url(B2S_Tools::getSupportLink('network_mandant')) ?>"><?php esc_html_e('Info', 'blog2social') ?></a>
62
  </div>
63
  <div class="form-group b2s-network-time-manager-area pull-right hidden-xs">
64
  <?php if (B2S_PLUGIN_USER_VERSION > 0) { ?>
72
  </div>
73
  </div>
74
  <div class="row b2s-network-auth-area">
75
+ <?php echo wp_kses($networkItem->getPortale($networkData['mandanten'], $networkData['auth'], $networkData['portale'], $networkData['auth_count'], $networkData['addon_count']), array(
76
+ 'div' => array(
77
+ 'class' => array(),
78
+ 'data-b2s-auth-info' => array(),
79
+ ),
80
+ 'form' => array(
81
+ 'id' => array(),
82
+ 'method' => array(),
83
+ ),
84
+ 'input' => array(
85
+ 'id' => array(),
86
+ 'type' => array(),
87
+ 'value' => array(),
88
+ 'name' => array(),
89
+ 'class' => array(),
90
+ 'readonly' => array(),
91
+ 'data-network-auth-id' => array(),
92
+ 'data-network-mandant-id' => array(),
93
+ 'data-network-id' => array(),
94
+ 'data-network-type' => array(),
95
+ 'data-network-container-mandant-id' => array(),
96
+ ),
97
+ 'ul' => array(
98
+ 'class' => array(),
99
+ 'data-mandant-id' => array(),
100
+ 'style' => array(),
101
+ 'data-network-id' => array(),
102
+ 'data-network-count' => array(),
103
+ 'data-network-mandant-id' => array(),
104
+ ),
105
+ 'li' => array(
106
+ 'class' => array(),
107
+ 'data-network-id' => array(),
108
+ 'data-network-mandant-id' => array(),
109
+ 'data-view' => array(),
110
+ 'data-network-auth-id' => array(),
111
+ 'data-network-type' => array(),
112
+ ),
113
+ 'img' => array(
114
+ 'class' => array(),
115
+ 'alt' => array(),
116
+ 'src' => array(),
117
+ ),
118
+ 'h4' => array(),
119
+ 'a' => array(
120
+ 'href' => array(),
121
+ 'target' => array(),
122
+ 'class' => array(),
123
+ 'onclick' => array(),
124
+ 'data-network-type' => array(),
125
+ 'data-network-id' => array(),
126
+ 'data-network-auth-id' => array(),
127
+ 'data-network-mandant-id' => array(),
128
+ 'data-connection-owner' => array(),
129
+ 'data-auth-method' => array(),
130
+ ),
131
+ 'span' => array(
132
+ 'class' => array(),
133
+ 'data-network-count-trigger' => array(),
134
+ 'data-network-id' => array(),
135
+ 'data-network-mandant-id' => array(),
136
+ 'data-network-auth-id' => array(),
137
+ 'style' => array(),
138
+ ),
139
+ 'i' => array(
140
+ 'class' => array(),
141
+ ),
142
+ 'button' => array(
143
+ 'class' => array(),
144
+ 'data-b2s-auth-url' => array(),
145
+ 'onclick' => array(),
146
+ 'data-network-id' => array(),
147
+ ),
148
+ )); ?>
149
  </div>
150
  <div class="row b2s-loading-area width-100" style="display: none">
151
  <div class="b2s-loader-impulse b2s-loader-impulse-md"></div>
162
  </div>
163
  </div>
164
  </div>
165
+ <input type="hidden" id="lang" value="<?php echo esc_attr(substr(B2S_LANGUAGE, 0, 2)); ?>">
166
 
167
  <div class="modal fade" id="b2s-network-add-mandant" tabindex="-1" role="dialog" aria-labelledby="b2s-network-add-mandant" aria-hidden="true" data-backdrop="false" style="display:none;">
168
  <div class="modal-dialog" role="document">
302
  <div class="modal-content">
303
  <div class="modal-header">
304
  <button type="button" class="b2s-modal-close close" data-modal-name="#b2s-edit-template" aria-label="Close"><span aria-hidden="true">&times;</span></button>
305
+ <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-1" alt="Facebook" src="<?php echo esc_url(plugins_url('/assets/images/portale/1_flat.png', B2S_PLUGIN_FILE)); ?>" style="display: none;">
306
+ <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-2" alt="Twitter" src="<?php echo esc_url(plugins_url('/assets/images/portale/2_flat.png', B2S_PLUGIN_FILE)); ?>" style="display: none;">
307
+ <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-3" alt="LinkedIn" src="<?php echo esc_url(plugins_url('/assets/images/portale/3_flat.png', B2S_PLUGIN_FILE)); ?>" style="display: none;">
308
+ <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-4" alt="Tumblr" src="<?php echo esc_url(plugins_url('/assets/images/portale/4_flat.png', B2S_PLUGIN_FILE)); ?>" style="display: none;">
309
+ <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-6" alt="Pinterest" src="<?php echo esc_url(plugins_url('/assets/images/portale/6_flat.png', B2S_PLUGIN_FILE)); ?>" style="display: none;">
310
+ <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-7" alt="Flickr" src="<?php echo esc_url(plugins_url('/assets/images/portale/7_flat.png', B2S_PLUGIN_FILE)); ?>" style="display: none;">
311
+ <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-9" alt="Diigo" src="<?php echo esc_url(plugins_url('/assets/images/portale/9_flat.png', B2S_PLUGIN_FILE)); ?>" style="display: none;">
312
+ <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-11" alt="Medium" src="<?php echo esc_url(plugins_url('/assets/images/portale/11_flat.png', B2S_PLUGIN_FILE)); ?>" style="display: none;">
313
+ <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-12" alt="Instagram" src="<?php echo esc_url(plugins_url('/assets/images/portale/12_flat.png', B2S_PLUGIN_FILE)); ?>" style="display: none;">
314
+ <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-14" alt="Torial" src="<?php echo esc_url(plugins_url('/assets/images/portale/14_flat.png', B2S_PLUGIN_FILE)); ?>" style="display: none;">
315
+ <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-15" alt="Reddit" src="<?php echo esc_url(plugins_url('/assets/images/portale/15_flat.png', B2S_PLUGIN_FILE)); ?>" style="display: none;">
316
+ <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-16" alt="Bloglovin" src="<?php echo esc_url(plugins_url('/assets/images/portale/16_flat.png', B2S_PLUGIN_FILE)); ?>" style="display: none;">
317
+ <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-17" alt="VKontakte" src="<?php echo esc_url(plugins_url('/assets/images/portale/17_flat.png', B2S_PLUGIN_FILE)); ?>" style="display: none;">
318
+ <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-18" alt="Google My Business" src="<?php echo esc_url(plugins_url('/assets/images/portale/18_flat.png', B2S_PLUGIN_FILE)); ?>" style="display: none;">
319
+ <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-19" alt="Xing" src="<?php echo esc_url(plugins_url('/assets/images/portale/19_flat.png', B2S_PLUGIN_FILE)); ?>" style="display: none;">
320
+ <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-24" alt="Telegram" src="<?php echo esc_url(plugins_url('/assets/images/portale/24_flat.png', B2S_PLUGIN_FILE)); ?>" style="display: none;">
321
+ <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-25" alt="Blogger" src="<?php echo esc_url(plugins_url('/assets/images/portale/25_flat.png', B2S_PLUGIN_FILE)); ?>" style="display: none;">
322
+ <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-26" alt="Ravelry" src="<?php echo esc_url(plugins_url('/assets/images/portale/26_flat.png', B2S_PLUGIN_FILE)); ?>" style="display: none;">
323
+ <img class="pull-left hidden-xs b2s-img-network b2s-edit-template-network-img" id="b2s-edit-template-network-img-27" alt="Instapaper" src="<?php echo esc_url(plugins_url('/assets/images/portale/27_flat.png', B2S_PLUGIN_FILE)); ?>" style="display: none;">
324
  <h4 class="modal-title b2s-edit-template-title"><?php esc_html_e('Edit Post Template', 'blog2social') ?></h4> <?php echo ((B2S_PLUGIN_USER_VERSION == 0) ? '<span class="label label-success">' . esc_html__('SMART', 'blog2social') . '</span>' : '') ?>
325
  </div>
326
  <div class="row b2s-loading-area width-100">
434
  <div class="alert alert-danger b2s-auth-network-6-extension-error" data-info="default"><?php esc_html_e('The login failed. To connect your Pinterest account to Blog2Social, please sign in to Pinterest using the Blog2Social browser extension.', 'blog2social'); ?></div>
435
  <h3>1. <?php esc_html_e('Download and activate the Blog2Social extension', 'blog2social'); ?></h3>
436
  <div class="b2s-auth-network-6-extension-download-area">
437
+ <a class="b2s-auth-network-6-extension-download-link" href="https://addons.mozilla.org/en-US/firefox/addon/blog2social/" target="_blank"><img src="<?php echo esc_url(plugins_url('/assets/images/firefox-extension.png', B2S_PLUGIN_FILE)); ?>"></a>
438
+ <a class="b2s-auth-network-6-extension-download-link" href="https://chrome.google.com/webstore/detail/blog2social-social-media/hobhidjecjjgknjpnclnmfgkajdjlaml" target="_blank"><img src="<?php echo esc_url(plugins_url('/assets/images/chrome-extension.png', B2S_PLUGIN_FILE)); ?>"></a>
439
  </div>
440
  <h3>2. <?php esc_html_e('Click on "continue"', 'blog2social'); ?></h3>
441
  </div>
470
  <div class="modal-body b2s-auth-network-6-login-area">
471
  <div class="alert alert-info"><?php esc_html_e('Please make sure to use your original Pinterest login data (email and password). Social Login via Facebook or Google login data will not work here. Please also check if the two-factor authentication in Pinterest is deactivated to ensure a stable connection to Blog2Social.', 'blog2social'); ?></div>
472
  <div class="alert alert-danger b2s-auth-network-6-info" data-info="default" style="display:none;"><?php esc_html_e('An error occurred! Please try again.', 'blog2social'); ?></div>
473
+ <div class="alert alert-danger b2s-auth-network-6-info" data-info="version" style="display:none;"><?php sprintf(__('You want to connect an additional account? <a target="_blank" href="%s">Upgrade to Blog2Social Premium</a>', 'blog2social'), esc_url(B2S_Tools::getSupportLink('affiliate'))); ?></div>
474
+ <div class="alert alert-danger b2s-auth-network-6-info" data-info="limit" style="display:none;"><?php echo sprintf(__('You want to connect an additional account? <a target="_blank" href="%s">Upgrade to Blog2Social Premium</a>', 'blog2social'), esc_url(B2S_Tools::getSupportLink('affiliate'))); ?></div>
475
  <div class="alert alert-danger b2s-auth-network-6-info" data-info="invalid" style="display:none;"><?php esc_html_e('Invalid Data! Please try again.', 'blog2social'); ?></div>
476
  <div class="alert alert-danger b2s-auth-network-6-info" data-info="board" style="display:none;"><?php echo esc_html_e('You have not yet created any pinboards in your Pinterest account. Please set up at least one pinboard to pin on your Pinterest account!', 'blog2social'); ?></div>
477
  <div class="alert alert-danger b2s-auth-network-6-info" data-info="login" style="display:none;"><?php echo sprintf(__('Login failed. Please check your login data for typos and please check your Pinterest settings, if the two-factor authentication is turned off for this account: <a target="_blank" href="%s">%s</a>', 'blog2social'), esc_url('https://www.pinterest.com/settings/security/'), esc_url('https://www.pinterest.com/settings/security/')); ?></div>
views/b2s/partials/post-edit-modal.php CHANGED
@@ -36,7 +36,95 @@
36
  </div>
37
  <?php } ?>
38
 
39
- <?php $item->getEditHtml(); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  <div class="pull-right">
41
  <a href="#" class="btn btn-primary btn-xs b2s-get-settings-sched-time-user"><?php esc_html_e('Load My Times Settings', 'blog2social') ?></a>
42
  <a href="#" class="btn btn-primary btn-xs b2s-get-settings-sched-time-default"><?php esc_html_e('Load Best Times', 'blog2social') ?></a>
36
  </div>
37
  <?php } ?>
38
 
39
+ <?php echo wp_kses($item->getEditHtml(), array(
40
+ 'div' => array(
41
+ 'class' => array(),
42
+ 'data-network-auth-id' => array(),
43
+ 'data-network-id' => array(),
44
+ 'style' => array(),
45
+ 'data-network-count' => array(),
46
+ ),
47
+ 'img' => array(
48
+ 'class' => array(),
49
+ 'alt' => array(),
50
+ 'src' => array(),
51
+ 'style' => array(),
52
+ 'data-network-auth-id' => array(),
53
+ 'data-network-count' => array(),
54
+ 'data-network-id' => array(),
55
+ 'data-network-image-change' => array(),
56
+ 'data-image-count' => array(),
57
+ ),
58
+ 'h4' => array(
59
+ 'class' => array(),
60
+ 'data-network-auth-id' => array(),
61
+ ),
62
+ 'p' => array(
63
+ 'class' => array(),
64
+ ),
65
+ 'i' => array(
66
+ 'class' => array(),
67
+ ),
68
+ 'span' => array(
69
+ 'class' => array(),
70
+ 'data-network-auth-id' => array(),
71
+ 'data-network-id' => array(),
72
+ 'data-network-type' => array(),
73
+ 'data-network-auth-id' => array(),
74
+ 'data-post-format-type' => array(),
75
+ 'data-network-count' => array(),
76
+ 'aria-hidden' => array(),
77
+ ),
78
+ 'button' => array(
79
+ 'type' => array(),
80
+ 'class' => array(),
81
+ 'style' => array(),
82
+ 'data-post-wp-type' => array(),
83
+ 'data-post-format-type' => array(),
84
+ 'data-network-auth-id' => array(),
85
+ 'data-network-type' => array(),
86
+ 'data-network-id' => array(),
87
+ 'data-network-count' => array(),
88
+ 'data-meta-type' => array(),
89
+ 'data-post-id' => array(),
90
+ 'data-image-url' => array(),
91
+ 'data-meta-origin' => array(),
92
+ 'data-image-count' => array(),
93
+ ),
94
+ 'input' => array(
95
+ 'type' => array(),
96
+ 'name' => array(),
97
+ 'value' => array(),
98
+ 'class' => array(),
99
+ 'data-network-auth-id' => array(),
100
+ 'data-network-id' => array(),
101
+ 'data-network-type' => array(),
102
+ 'data-meta' => array(),
103
+ 'data-meta-type' => array(),
104
+ 'dir' => array(),
105
+ 'onkeyup' => array(),
106
+ 'placeholder' => array(),
107
+ 'data-network-count' => array(),
108
+ 'data-image-count' => array(),
109
+ ),
110
+ 'textarea' => array(
111
+ 'class' => array(),
112
+ 'data-network-count' => array(),
113
+ 'data-network-id' => array(),
114
+ 'data-network-text-limit' => array(),
115
+ 'data-network-auth-id' => array(),
116
+ 'placeholder' => array(),
117
+ 'name' => array(),
118
+ 'onkeyup' => array(),
119
+ ),
120
+ 'a' => array(
121
+ 'class' => array(),
122
+ 'style' => array(),
123
+ 'data-image-count' => array(),
124
+ 'data-network-count' => array(),
125
+ 'data-network-auth-id' => array(),
126
+ ),
127
+ )); ?>
128
  <div class="pull-right">
129
  <a href="#" class="btn btn-primary btn-xs b2s-get-settings-sched-time-user"><?php esc_html_e('Load My Times Settings', 'blog2social') ?></a>
130
  <a href="#" class="btn btn-primary btn-xs b2s-get-settings-sched-time-default"><?php esc_html_e('Load Best Times', 'blog2social') ?></a>
views/b2s/post.calendar.php CHANGED
@@ -1,4 +1,3 @@
1
- <<<<<<< .mine
2
  <?php
3
  wp_nonce_field('b2s_security_nonce', 'b2s_security_nonce');
4
  /* Data */
@@ -138,7 +137,7 @@ $metaSettings = get_option('B2S_PLUGIN_GENERAL_OPTIONS');
138
  <input type="hidden" id="b2sUserLang" value="<?php echo esc_attr(strtolower(substr(get_locale(), 0, 2))); ?>">
139
  <input type='hidden' id="user_timezone" name="user_timezone" value="<?php echo esc_attr($userTimeZoneOffset); ?>">
140
  <input type="hidden" id="user_version" name="user_version" value="<?php echo esc_attr(B2S_PLUGIN_USER_VERSION); ?>">
141
- <input type="hidden" id="b2sDefaultNoImage" value="<?php echo plugins_url('/assets/images/no-image.png', B2S_PLUGIN_FILE); ?>">
142
  <input type="hidden" id="b2sPostId" value="">
143
  <input type="hidden" id="b2sInsertImageType" value="0">
144
  <input type="hidden" id="isOgMetaChecked" value="<?php echo (isset($metaSettings['og_active']) ? (int) $metaSettings['og_active'] : 0); ?>">
@@ -271,7 +270,7 @@ $metaSettings = get_option('B2S_PLUGIN_GENERAL_OPTIONS');
271
  <div class="col-md-6 col-xs-12">
272
  <div class="b2s-post-type-area text-center">
273
  <div class="image">
274
- <img class="img-width-150" src="<?php echo plugins_url('/assets/images/b2s/blog-post-icon.png', B2S_PLUGIN_FILE); ?>" alt="blog post">
275
  </div>
276
  <div class="text">
277
  <?php esc_html_e("Share your WordPress posts, pages or products", "blog2social") ?>
@@ -284,7 +283,7 @@ $metaSettings = get_option('B2S_PLUGIN_GENERAL_OPTIONS');
284
  <div class="col-md-6 col-xs-12">
285
  <div class="b2s-post-type-area text-center">
286
  <div class="image">
287
- <img class="img-width-150" src="<?php echo plugins_url('/assets/images/b2s/content-curation-icon.png', B2S_PLUGIN_FILE); ?>" alt="content curation">
288
  </div>
289
  <div class="text">
290
  <?php esc_html_e("Create or share content from other sources", "blog2social") ?>
@@ -451,737 +450,4 @@ $metaSettings = get_option('B2S_PLUGIN_GENERAL_OPTIONS');
451
  </div>
452
  </div>
453
  </div>
454
- ||||||| .r2712118
455
- <?php
456
- wp_nonce_field('b2s_security_nonce', 'b2s_security_nonce');
457
- /* Data */
458
- require_once (B2S_PLUGIN_DIR . 'includes/B2S/Calendar/Filter.php');
459
- require_once (B2S_PLUGIN_DIR . 'includes/B2S/Post/Filter.php');
460
- require_once (B2S_PLUGIN_DIR . 'includes/B2S/Ship/Image.php');
461
- require_once (B2S_PLUGIN_DIR . 'includes/B2S/Settings/Item.php');
462
- require_once (B2S_PLUGIN_DIR . 'includes/Util.php');
463
-
464
- $options = new B2S_Options(B2S_PLUGIN_BLOG_USER_ID);
465
- $optionUserTimeZone = $options->_getOption('user_time_zone');
466
- $userTimeZone = ($optionUserTimeZone !== false) ? $optionUserTimeZone : get_option('timezone_string');
467
- $userTimeZoneOffset = (empty($userTimeZone)) ? get_option('gmt_offset') : B2S_Util::getOffsetToUtcByTimeZone($userTimeZone);
468
- $optionUserTimeFormat = $options->_getOption('user_time_format');
469
- if($optionUserTimeFormat == false) {
470
- $optionUserTimeFormat = (substr(B2S_LANGUAGE, 0, 2) == 'de') ? 0 : 1;
471
- }
472
- $metaSettings = get_option('B2S_PLUGIN_GENERAL_OPTIONS');
473
- ?>
474
-
475
-
476
- <div class="b2s-container">
477
- <div class="b2s-inbox">
478
- <div class="col-md-12 del-padding-left">
479
- <?php require_once (B2S_PLUGIN_DIR . 'views/b2s/html/sidebar.php'); ?>
480
- <div class="col-md-9 del-padding-left del-padding-right">
481
- <!--Header|Start - Include-->
482
- <?php require_once (B2S_PLUGIN_DIR . 'views/b2s/html/header.php'); ?>
483
- <!--Header|End-->
484
- <div class="clearfix"></div>
485
- <!--Navbar|Start-->
486
- <div class="panel panel-default">
487
- <div class="panel-body">
488
- <?php require_once (B2S_PLUGIN_DIR . 'views/b2s/html/post.navbar.php'); ?>
489
- </div>
490
- </div>
491
- <!--Navbar|End-->
492
- <div class="clearfix"></div>
493
- <!--Content|Start-->
494
- <div class="panel panel-default">
495
- <div class="panel-body">
496
- <div>
497
- <div class="grid-body">
498
- <div class="clearfix"></div>
499
- <div class="col-md-12 b2s-calendar-filter form-inline del-padding-left del-padding-right">
500
- <div class="b2s-calendar-filter-network-legend-text">
501
- <?php esc_html_e('Sort by network', 'blog2social'); ?>
502
- <select id="b2s-calendar-filter-status" class="form-control pull-right">
503
- <option selected value="0"><?php esc_html_e('show all', 'blog2social'); ?></option>
504
- <option value="1"><?php esc_html_e('published', 'blog2social'); ?></option>
505
- <option value="2"><?php esc_html_e('scheduled', 'blog2social'); ?></option>
506
- </select>
507
- </div>
508
- <div class="clearfix"></div>
509
- <?php
510
- $filter = new B2S_Calendar_Filter();
511
- $filterNetwork = $filter->getNetworkHtml();
512
- if (!empty($filterNetwork)) {
513
- ?>
514
- <div class="b2s-calendar-filter-network-list">
515
- <?php echo $filterNetwork ?>
516
- </div>
517
- <div class="b2s-calendar-filter-network-account-list"></div>
518
- <?php }
519
- ?>
520
- </div>
521
- <div class="clearfix"></div><hr>
522
- <div class="b2s-loading-area">
523
- <br>
524
- <div class="b2s-loader-impulse b2s-loader-impulse-md"></div>
525
- <div class="clearfix"></div>
526
- <div class="text-center b2s-loader-text"><?php esc_html_e("Loading...", "blog2social"); ?></div>
527
- </div>
528
- <div id='b2s_calendar'></div>
529
- <br>
530
- <script>
531
- var b2s_calendar_locale = '<?php echo esc_js(strtolower(substr(get_locale(), 0, 2))); ?>';
532
- var b2s_calendar_date = '<?php echo esc_js(B2S_Util::getbyIdentLocalDate($userTimeZoneOffset, "Y-m-d")); ?>';
533
- var b2s_calendar_datetime = '<?php echo esc_js(B2S_Util::getbyIdentLocalDate($userTimeZoneOffset)); ?>';
534
- var b2s_has_premium = <?php echo esc_js(((B2S_PLUGIN_USER_VERSION > 0) ? "true" : "false")); ?>;
535
- var b2s_plugin_url = '<?php echo esc_url(B2S_PLUGIN_URL); ?>';
536
- var b2s_calendar_formats = <?php echo json_encode(array('post' => array(esc_html__('Link Post', 'blog2social'), esc_html__('Image Post', 'blog2social')), 'image' => array(esc_html__('Image with frame', 'blog2social'), esc_html__('Image cut out', 'blog2social')))); ?>;
537
- var b2s_is_calendar = true;
538
- </script>
539
- </div>
540
- </div>
541
- <?php
542
- $noLegendCalender=1;
543
- require_once (B2S_PLUGIN_DIR . 'views/b2s/html/footer.php');
544
- ?>
545
- </div>
546
- </div>
547
- </div>
548
- </div>
549
- </div>
550
- </div>
551
-
552
- <input type="hidden" id="b2sLang" value="<?php echo esc_attr(substr(B2S_LANGUAGE, 0, 2)); ?>">
553
- <input type="hidden" id="b2sUserTimeFormat" value="<?php echo esc_attr($optionUserTimeFormat); ?>">
554
- <input type="hidden" id="b2sJSTextAddPost" value="<?php esc_html_e("add post", "blog2social"); ?>">
555
- <input type="hidden" id="b2sUserLang" value="<?php echo esc_attr(strtolower(substr(get_locale(), 0, 2))); ?>">
556
- <input type='hidden' id="user_timezone" name="user_timezone" value="<?php echo esc_attr($userTimeZoneOffset); ?>">
557
- <input type="hidden" id="user_version" name="user_version" value="<?php echo esc_attr(B2S_PLUGIN_USER_VERSION); ?>">
558
- <input type="hidden" id="b2sDefaultNoImage" value="<?php echo plugins_url('/assets/images/no-image.png', B2S_PLUGIN_FILE); ?>">
559
- <input type="hidden" id="b2sPostId" value="">
560
- <input type="hidden" id="b2sInsertImageType" value="0">
561
- <input type="hidden" id="isOgMetaChecked" value="<?php echo (isset($metaSettings['og_active']) ? (int) $metaSettings['og_active'] : 0); ?>">
562
- <input type="hidden" id="isCardMetaChecked" value="<?php echo (isset($metaSettings['card_active']) ? (int) $metaSettings['card_active'] : 0); ?>">
563
- <input type="hidden" id="b2sRedirectUrlContentCuration" value="<?php echo esc_url(get_option('siteurl') . ((substr(get_option('siteurl'), -1, 1) == '/') ? '' : '/') . 'wp-admin/admin.php?page=blog2social-curation'); ?>">
564
- <input type="hidden" id="b2sNotAllowGif" value="<?php echo esc_attr(implode(";", json_decode(B2S_PLUGIN_NETWORK_NOT_ALLOW_GIF, true))); ?>">
565
- <input type="hidden" id="b2sAnimateGif" value='<?php echo esc_attr(B2S_PLUGIN_NETWORK_ANIMATE_GIF); ?>'>
566
- <input type="hidden" id="ogMetaNetworks" value="<?php echo esc_attr(implode(';', json_decode(B2S_PLUGIN_NETWORK_META_TAGS, true)['og'])); ?>">
567
- <input type="hidden" id="b2sEmojiTranslation" value='<?php echo esc_attr(json_encode(B2S_Tools::getEmojiTranslationList())); ?>'>
568
- <!--Routing from dashboard-->
569
- <input type="hidden" id="b2s_rfd" value="<?php echo (isset($_GET['rfd'])) ? 1 : 0; ?>">
570
- <input type="hidden" id="b2s_rfd_b2s_id" value="<?php echo (isset($_GET['b2s_id'])) ? esc_attr($_GET['b2s_id']) : ""; ?>">
571
-
572
- <div id="b2s-post-ship-item-post-format-modal" class="modal fade" role="dialog" aria-labelledby="b2s-post-ship-item-post-format-modal" aria-hidden="true" data-backdrop="false" style="display:none;z-index: 1070;">
573
- <div class="modal-dialog modal-lg">
574
- <div class="modal-content">
575
- <div class="modal-header">
576
- <button type="button" class="b2s-modal-close close" data-modal-name="#b2s-post-ship-item-post-format-modal">&times;</button>
577
- <h4 class="modal-title"><?php esc_html_e('Choose your', 'blog2social') ?> <span id="b2s-post-ship-item-post-format-network-title"></span> <?php esc_html_e('Post Format', 'blog2social') ?>
578
- <?php if (B2S_PLUGIN_USER_VERSION >= 2) { ?>
579
- <?php esc_html_e('for:', 'blog2social') ?> <span id="b2s-post-ship-item-post-format-network-display-name"></span>
580
- <?php } ?>
581
- </h4>
582
- </div>
583
- <div class="modal-body">
584
- <div class="row">
585
- <div class="col-xs-12">
586
- <?php
587
- $settingsItem = new B2S_Settings_Item();
588
- echo $settingsItem->setNetworkSettingsHtml();
589
- echo $settingsItem->getNetworkSettingsHtml();
590
- ?>
591
- </div>
592
- </div>
593
- <div class="row">
594
- <div class="col-xs-12">
595
- <div class="text-center">
596
- <br>
597
- <div class="b2s-post-format-settings-info" data-network-id="1" style="display:none;">
598
- <b><?php esc_html_e('Define the default settings for the custom post format for all of your Facebook accounts in the Blog2Social settings.', 'blog2social'); ?></b>
599
- </div>
600
- <div class="b2s-post-format-settings-info" data-network-id="2" style="display:none;">
601
- <b><?php esc_html_e('Define the default settings for the custom post format for all of your Twitter accounts in the Blog2Social settings.', 'blog2social'); ?></b>
602
- </div>
603
- <div class="b2s-post-format-settings-info" data-network-id="3" style="display:none;">
604
- <b><?php esc_html_e('Define the default settings for the custom post format for all of your LinkedIn accounts in the Blog2Social settings.', 'blog2social'); ?></b>
605
- </div>
606
- <div class="b2s-post-format-settings-info" data-network-id="12" style="display:none;">
607
- <b><?php esc_html_e('Define the default settings for the custom post format for all of your Instagram accounts in the Blog2Social settings.', 'blog2social'); ?></b>
608
- </div>
609
- </div>
610
- </div>
611
- </div>
612
- </div>
613
- </div>
614
- </div>
615
- </div>
616
-
617
- <div id="b2s-network-select-image" class="modal fade" role="dialog" aria-labelledby="b2s-network-select-image" aria-hidden="true" data-backdrop="false" style="display:none;z-index: 1070;">
618
- <div class="modal-dialog modal-lg">
619
- <div class="modal-content">
620
- <div class="modal-header">
621
- <button type="button" class="b2s-modal-close close" data-modal-name="#b2s-network-select-image">&times;</button>
622
- <h4 class="modal-title"><?php esc_html_e('Select image for', 'blog2social') ?> <span class="b2s-selected-network-for-image-info"></span></h4>
623
- </div>
624
- <div class="modal-body">
625
- <div class="row">
626
- <div class="col-xs-12">
627
- <div class="b2s-network-select-image-content"></div>
628
- </div>
629
- </div>
630
- </div>
631
- </div>
632
- </div>
633
- </div>
634
-
635
- <div id="b2s-show-post-type-modal" class="modal fade" role="dialog" aria-labelledby="b2s-show-post-type-modal" aria-hidden="true" data-backdrop="false" style="display:none;z-index: 1070;">
636
- <div class="modal-dialog modal-lg">
637
- <div class="modal-content">
638
- <div class="modal-header">
639
- <button type="button" class="b2s-modal-close close" data-modal-name="#b2s-show-post-type-modal">&times;</button>
640
- <h4 class="modal-title"><?php esc_html_e('What would you like to share?', 'blog2social') ?></h4>
641
- </div>
642
- <div class="modal-body">
643
- <div class="row">
644
- <div class="col-md-6 col-xs-12">
645
- <div class="b2s-post-type-area text-center">
646
- <div class="image">
647
- <img class="img-width-150" src="<?php echo plugins_url('/assets/images/b2s/blog-post-icon.png', B2S_PLUGIN_FILE); ?>" alt="blog post">
648
- </div>
649
- <div class="text">
650
- <?php esc_html_e("Share your WordPress posts, pages or products", "blog2social") ?>
651
- </div>
652
- <div class="action">
653
- <button class="btn btn-primary" id="b2s-btn-select-blog-post"><?php esc_html_e("select", "blog2social"); ?></button>
654
- </div>
655
- </div>
656
- </div>
657
- <div class="col-md-6 col-xs-12">
658
- <div class="b2s-post-type-area text-center">
659
- <div class="image">
660
- <img class="img-width-150" src="<?php echo plugins_url('/assets/images/b2s/content-curation-icon.png', B2S_PLUGIN_FILE); ?>" alt="content curation">
661
- </div>
662
- <div class="text">
663
- <?php esc_html_e("Create or share content from other sources", "blog2social") ?>
664
- </div>
665
- <div class="action">
666
- <button class="btn btn-primary" id="b2s-btn-select-content-curation"><?php esc_html_e("select", "blog2social"); ?></button>
667
- </div>
668
- </div>
669
- </div>
670
- <input type="hidden" id="b2sSelSchedDate" value="">
671
-
672
- </div>
673
- </div>
674
- </div>
675
- </div>
676
- </div>
677
-
678
-
679
- <div id="b2s-show-post-all-modal" class="modal fade" role="dialog" aria-labelledby="b2s-post-all-modal" aria-hidden="true" data-backdrop="false" style="display:none;z-index: 1070;">
680
- <div class="modal-dialog modal-lg">
681
- <div class="modal-content">
682
- <div class="modal-header">
683
- <button type="button" class="b2s-modal-close close" data-modal-name="#b2s-show-post-all-modal">&times;</button>
684
- <h4 class="modal-title"><?php esc_html_e('Select a post', 'blog2social') ?></h4>
685
- </div>
686
- <div class="modal-body">
687
- <div class="row">
688
- <div class="col-xs-12">
689
- <div class="b2s-all-post-content">
690
- <div class="b2s-post">
691
- <div class="grid-body">
692
- <div class="hidden-lg hidden-md hidden-sm filterShow"><a href="#" onclick="showFilter('show');return false;"><i class="glyphicon glyphicon-chevron-down"></i><?php esc_html_e('filter', 'blog2social') ?></a></div>
693
- <div class="hidden-lg hidden-md hidden-sm filterHide"><a href="#" onclick="showFilter('hide');return false;"><i class="glyphicon glyphicon-chevron-up"></i><?php esc_html_e('filter', 'blog2social') ?></a></div>
694
- <form class="b2sSortForm form-inline pull-left" action="#">
695
- <input id="b2sType" type="hidden" value="all" name="b2sType">
696
- <input id="b2sShowByDate" type="hidden" value="" name="b2sShowByDate">
697
- <input id="b2sPagination" type="hidden" value="1" name="b2sPagination">
698
- <?php
699
- $postFilter = new B2S_Post_Filter('all');
700
- echo $postFilter->getItemHtml();
701
- ?>
702
- </form>
703
- </div>
704
- </div>
705
- <div class="clearfix"></div>
706
- <div class="b2s-loading-area" style="display:none">
707
- <br>
708
- <div class="b2s-loader-impulse b2s-loader-impulse-md"></div>
709
- <div class="clearfix"></div>
710
- <div class="text-center b2s-loader-text"><?php esc_html_e("Loading...", "blog2social"); ?></div>
711
- </div>
712
- <div class="clearfix"></div>
713
- <br>
714
- <ul class="list-group b2s-sort-result-item-area"></ul>
715
- <br>
716
- <nav class="b2s-sort-pagination-area text-center"></nav>
717
- </div>
718
- </div>
719
- </div>
720
- </div>
721
- </div>
722
- </div>
723
- </div>
724
-
725
-
726
- <div id="b2s-sched-post-modal" class="modal fade" role="dialog" aria-labelledby="b2s-sched-post-modal" aria-hidden="true" data-backdrop="false" style="display:none;z-index: 1070;">
727
- <div class="modal-dialog">
728
- <div class="modal-content">
729
- <div class="modal-header">
730
- <button type="button" class="b2s-modal-close close" data-modal-name="#b2s-sched-post-modal">&times;</button>
731
- <h4 class="modal-title"><?php esc_html_e('Need to schedule your posts?', 'blog2social') ?></h4>
732
- </div>
733
- <div class="modal-body">
734
- <p><?php esc_html_e('Blog2Social Premium covers everything you need.', 'blog2social') ?></p>
735
- <br>
736
- <div class="clearfix"></div>
737
- <b><?php esc_html_e('Schedule for specific dates', 'blog2social') ?></b>
738
- <p><?php esc_html_e('You want to publish a post on a specific date? No problem! Just enter your desired date and you are ready to go!', 'blog2social') ?></p>
739
- <br>
740
- <b><?php esc_html_e('Schedule post recurrently', 'blog2social') ?></b>
741
- <p><?php esc_html_e('You have evergreen content you want to re-share from time to time in your timeline? Schedule your evergreen content to be shared once, multiple times or recurringly at specific times.', 'blog2social') ?></p>
742
- <br>
743
- <b><?php esc_html_e('Best Time Scheduler', 'blog2social') ?></b>
744
- <p><?php esc_html_e('Whenever you publish a post, only a fraction of your followers will actually see your post. Use the Blog2Social Best Times Scheduler to share your post at the best times for each social network. Get more outreach and extend the lifespan of your posts.', 'blog2social') ?></p>
745
- <br>
746
- <?php if (B2S_PLUGIN_USER_VERSION == 0) { ?>
747
- <hr>
748
- <?php esc_html_e('With Blog2Social Premium you can:', 'blog2social') ?>
749
- <br>
750
- <br>
751
- <span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Post on pages and groups', 'blog2social') ?><br>
752
- <span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Share on multiple profiles, pages and groups', 'blog2social') ?><br>
753
- <span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Auto-post and auto-schedule new and updated blog posts', 'blog2social') ?><br>
754
- <span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Schedule your posts at the best times on each network', 'blog2social') ?><br>
755
- <span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Best Time Manager: use predefined best time scheduler to auto-schedule your social media posts', 'blog2social') ?><br>
756
- <span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Schedule your post for one time, multiple times or recurrently', 'blog2social') ?><br>
757
- <span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Schedule and re-share old posts', 'blog2social') ?><br>
758
- <span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Select link format or image format for your posts', 'blog2social') ?><br>
759
- <span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Select individual images per post', 'blog2social') ?><br>
760
- <span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Reporting & calendar: keep track of your published and scheduled social media posts', 'blog2social') ?><br>
761
- <br>
762
- <a target="_blank" href="<?php echo esc_url(B2S_Tools::getSupportLink('affiliate')); ?>" class="btn btn-success center-block"><?php esc_html_e('Upgrade to SMART and above', 'blog2social') ?></a>
763
- <br>
764
- <center> <?php echo sprintf(__('or <a target="_blank" href="%s">start with free 30-days-trial of Blog2Social Premium</a> (no payment information needed)', 'blog2social'), esc_url('https://service.blog2social.com/trial')); ?> </center>
765
- <?php } ?>
766
- </div>
767
- </div>
768
- </div>
769
- </div>
770
-
771
- <div id="b2s-show-error-modal" class="modal fade" role="dialog" aria-labelledby="b2s-show-error-modal" aria-hidden="true" data-backdrop="false" style="display:none;z-index: 1070;">
772
- <div class="modal-dialog modal-lg">
773
- <div class="modal-content">
774
- <div class="modal-header">
775
- <button type="button" class="b2s-modal-close close" data-modal-name="#b2s-show-error-modal">&times;</button>
776
- <h4 class="modal-title"><?php esc_html_e('Notification', 'blog2social') ?></h4>
777
- </div>
778
- <div class="modal-body">
779
- <div class="row">
780
- <div class="col-xs-12">
781
- <div class="alert alert-danger b2s-error-text"></div>
782
- </div>
783
- </div>
784
- </div>
785
- </div>
786
- </div>
787
- </div>
788
-
789
- <div id="b2sImageZoomModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="b2sImageZoomModal" aria-hidden="true" data-backdrop="false" style="display:none;">
790
- <div class="modal-dialog">
791
- <div class="modal-content">
792
- <div class="modal-body">
793
- <button type="button" class="btn btn-primary btn-circle b2sImageZoomModalClose b2s-modal-close close" data-modal-name="#b2sImageZoomModal" aria-label="Close"><i class="glyphicon glyphicon-remove"></i></button>
794
- <img id="b2sImageZoom">
795
- </div>
796
- </div>
797
- </div>
798
- =======
799
- <?php
800
- wp_nonce_field('b2s_security_nonce', 'b2s_security_nonce');
801
- /* Data */
802
- require_once (B2S_PLUGIN_DIR . 'includes/B2S/Calendar/Filter.php');
803
- require_once (B2S_PLUGIN_DIR . 'includes/B2S/Post/Filter.php');
804
- require_once (B2S_PLUGIN_DIR . 'includes/B2S/Ship/Image.php');
805
- require_once (B2S_PLUGIN_DIR . 'includes/B2S/Settings/Item.php');
806
- require_once (B2S_PLUGIN_DIR . 'includes/Util.php');
807
-
808
- $options = new B2S_Options(B2S_PLUGIN_BLOG_USER_ID);
809
- $optionUserTimeZone = $options->_getOption('user_time_zone');
810
- $userTimeZone = ($optionUserTimeZone !== false) ? $optionUserTimeZone : get_option('timezone_string');
811
- $userTimeZoneOffset = (empty($userTimeZone)) ? get_option('gmt_offset') : B2S_Util::getOffsetToUtcByTimeZone($userTimeZone);
812
- $optionUserTimeFormat = $options->_getOption('user_time_format');
813
- if($optionUserTimeFormat == false) {
814
- $optionUserTimeFormat = (substr(B2S_LANGUAGE, 0, 2) == 'de') ? 0 : 1;
815
- }
816
- $metaSettings = get_option('B2S_PLUGIN_GENERAL_OPTIONS');
817
- ?>
818
-
819
-
820
- <div class="b2s-container">
821
- <div class="b2s-inbox">
822
- <div class="col-md-12 del-padding-left">
823
- <?php require_once (B2S_PLUGIN_DIR . 'views/b2s/html/sidebar.php'); ?>
824
- <div class="col-md-9 del-padding-left del-padding-right">
825
- <!--Header|Start - Include-->
826
- <?php require_once (B2S_PLUGIN_DIR . 'views/b2s/html/header.php'); ?>
827
- <!--Header|End-->
828
- <div class="clearfix"></div>
829
- <!--Navbar|Start-->
830
- <div class="panel panel-default">
831
- <div class="panel-body">
832
- <?php require_once (B2S_PLUGIN_DIR . 'views/b2s/html/post.navbar.php'); ?>
833
- </div>
834
- </div>
835
- <!--Navbar|End-->
836
- <div class="clearfix"></div>
837
- <!--Content|Start-->
838
- <div class="panel panel-default">
839
- <div class="panel-body">
840
- <div>
841
- <div class="grid-body">
842
- <div class="clearfix"></div>
843
- <div class="col-md-12 b2s-calendar-filter form-inline del-padding-left del-padding-right">
844
- <div class="b2s-calendar-filter-network-legend-text">
845
- <?php esc_html_e('Sort by network', 'blog2social'); ?>
846
- <select id="b2s-calendar-filter-status" class="form-control pull-right">
847
- <option selected value="0"><?php esc_html_e('show all', 'blog2social'); ?></option>
848
- <option value="1"><?php esc_html_e('published', 'blog2social'); ?></option>
849
- <option value="2"><?php esc_html_e('scheduled', 'blog2social'); ?></option>
850
- </select>
851
- </div>
852
- <div class="clearfix"></div>
853
- <?php
854
- $filter = new B2S_Calendar_Filter();
855
- $filterNetwork = $filter->getNetworkHtml();
856
- if (!empty($filterNetwork)) {
857
- ?>
858
- <div class="b2s-calendar-filter-network-list">
859
- <?php echo $filterNetwork ?>
860
- </div>
861
- <div class="b2s-calendar-filter-network-account-list"></div>
862
- <?php }
863
- ?>
864
- </div>
865
- <div class="clearfix"></div><hr>
866
- <div class="b2s-loading-area">
867
- <br>
868
- <div class="b2s-loader-impulse b2s-loader-impulse-md"></div>
869
- <div class="clearfix"></div>
870
- <div class="text-center b2s-loader-text"><?php esc_html_e("Loading...", "blog2social"); ?></div>
871
- </div>
872
- <div id='b2s_calendar'></div>
873
- <br>
874
- <script>
875
- var b2s_calendar_locale = '<?php echo esc_js(strtolower(substr(get_locale(), 0, 2))); ?>';
876
- var b2s_calendar_date = '<?php echo esc_js(B2S_Util::getbyIdentLocalDate($userTimeZoneOffset, "Y-m-d")); ?>';
877
- var b2s_calendar_datetime = '<?php echo esc_js(B2S_Util::getbyIdentLocalDate($userTimeZoneOffset)); ?>';
878
- var b2s_has_premium = <?php echo esc_js(((B2S_PLUGIN_USER_VERSION > 0) ? "true" : "false")); ?>;
879
- var b2s_plugin_url = '<?php echo esc_url(B2S_PLUGIN_URL); ?>';
880
- var b2s_calendar_formats = <?php echo json_encode(array('post' => array(esc_html__('Link Post', 'blog2social'), esc_html__('Image Post', 'blog2social')), 'image' => array(esc_html__('Image with frame', 'blog2social'), esc_html__('Image cut out', 'blog2social')))); ?>;
881
- var b2s_is_calendar = true;
882
- </script>
883
- </div>
884
- </div>
885
- <?php
886
- $noLegendCalender=1;
887
- require_once (B2S_PLUGIN_DIR . 'views/b2s/html/footer.php');
888
- ?>
889
- </div>
890
- </div>
891
- </div>
892
- </div>
893
- </div>
894
- </div>
895
-
896
- <input type="hidden" id="b2sLang" value="<?php echo esc_attr(substr(B2S_LANGUAGE, 0, 2)); ?>">
897
- <input type="hidden" id="b2sUserTimeFormat" value="<?php echo esc_attr($optionUserTimeFormat); ?>">
898
- <input type="hidden" id="b2sJSTextAddPost" value="<?php esc_html_e("add post", "blog2social"); ?>">
899
- <input type="hidden" id="b2sUserLang" value="<?php echo esc_attr(strtolower(substr(get_locale(), 0, 2))); ?>">
900
- <input type='hidden' id="user_timezone" name="user_timezone" value="<?php echo esc_attr($userTimeZoneOffset); ?>">
901
- <input type="hidden" id="user_version" name="user_version" value="<?php echo esc_attr(B2S_PLUGIN_USER_VERSION); ?>">
902
- <input type="hidden" id="b2sDefaultNoImage" value="<?php echo plugins_url('/assets/images/no-image.png', B2S_PLUGIN_FILE); ?>">
903
- <input type="hidden" id="b2sPostId" value="">
904
- <input type="hidden" id="b2sInsertImageType" value="0">
905
- <input type="hidden" id="isOgMetaChecked" value="<?php echo (isset($metaSettings['og_active']) ? (int) $metaSettings['og_active'] : 0); ?>">
906
- <input type="hidden" id="isCardMetaChecked" value="<?php echo (isset($metaSettings['card_active']) ? (int) $metaSettings['card_active'] : 0); ?>">
907
- <input type="hidden" id="b2sRedirectUrlContentCuration" value="<?php echo esc_url(get_option('siteurl') . ((substr(get_option('siteurl'), -1, 1) == '/') ? '' : '/') . 'wp-admin/admin.php?page=blog2social-curation'); ?>">
908
- <input type="hidden" id="b2sNotAllowGif" value="<?php echo esc_attr(implode(";", json_decode(B2S_PLUGIN_NETWORK_NOT_ALLOW_GIF, true))); ?>">
909
- <input type="hidden" id="b2sAnimateGif" value='<?php echo esc_attr(B2S_PLUGIN_NETWORK_ANIMATE_GIF); ?>'>
910
- <input type="hidden" id="ogMetaNetworks" value="<?php echo esc_attr(implode(';', json_decode(B2S_PLUGIN_NETWORK_META_TAGS, true)['og'])); ?>">
911
- <input type="hidden" id="b2sEmojiTranslation" value='<?php echo esc_attr(json_encode(B2S_Tools::getEmojiTranslationList())); ?>'>
912
- <!--Routing from dashboard-->
913
- <input type="hidden" id="b2s_rfd" value="<?php echo (isset($_GET['rfd'])) ? 1 : 0; ?>">
914
- <input type="hidden" id="b2s_rfd_b2s_id" value="<?php echo (isset($_GET['b2s_id'])) ? esc_attr($_GET['b2s_id']) : ""; ?>">
915
-
916
- <div id="b2s-post-ship-item-post-format-modal" class="modal fade" role="dialog" aria-labelledby="b2s-post-ship-item-post-format-modal" aria-hidden="true" data-backdrop="false" style="display:none;z-index: 1070;">
917
- <div class="modal-dialog modal-lg">
918
- <div class="modal-content">
919
- <div class="modal-header">
920
- <button type="button" class="b2s-modal-close close" data-modal-name="#b2s-post-ship-item-post-format-modal">&times;</button>
921
- <h4 class="modal-title"><?php esc_html_e('Choose your', 'blog2social') ?> <span id="b2s-post-ship-item-post-format-network-title"></span> <?php esc_html_e('Post Format', 'blog2social') ?>
922
- <?php if (B2S_PLUGIN_USER_VERSION >= 2) { ?>
923
- <?php esc_html_e('for:', 'blog2social') ?> <span id="b2s-post-ship-item-post-format-network-display-name"></span>
924
- <?php } ?>
925
- </h4>
926
- </div>
927
- <div class="modal-body">
928
- <div class="row">
929
- <div class="col-xs-12">
930
- <?php
931
- $settingsItem = new B2S_Settings_Item();
932
- echo wp_kses($settingsItem->setNetworkSettingsHtml(), array(
933
- 'input' => array(
934
- 'type' => array(),
935
- 'class' => array(),
936
- 'value' => array(),
937
- 'data-post-format-type' => array(),
938
- 'data-network-id' => array(),
939
- 'data-network-type' => array()
940
- )
941
- ));
942
- echo wp_kses($settingsItem->getNetworkSettingsHtml(), array(
943
- 'div' => array(
944
- 'class' => array(),
945
- 'data-post-format-type' => array(),
946
- 'data-network-type' => array(),
947
- 'data-network-id' => array(),
948
- 'data-network-title' => array(),
949
- 'style' => array()
950
- ),
951
- 'b' => array(),
952
- 'br' => array(),
953
- 'a' => array(
954
- 'target' => array(),
955
- 'href' => array()
956
- ),
957
- 'hr' => array(),
958
- 'span' => array(
959
- 'class' => array()
960
- ),
961
- 'label' => array(),
962
- 'input' => array(
963
- 'type' => array(),
964
- 'name' => array(),
965
- 'value' => array(),
966
- 'class' => array(),
967
- 'data-post-wp-type' => array(),
968
- 'data-post-format-type' => array(),
969
- 'data-network-type' => array(),
970
- 'data-network-id' => array(),
971
- 'data-post-format' => array()
972
- ),
973
- 'img' => array(
974
- 'class' => array(),
975
- 'src' => array()
976
- )
977
- ));
978
- ?>
979
- </div>
980
- </div>
981
- <div class="row">
982
- <div class="col-xs-12">
983
- <div class="text-center">
984
- <br>
985
- <div class="b2s-post-format-settings-info" data-network-id="1" style="display:none;">
986
- <b><?php esc_html_e('Define the default settings for the custom post format for all of your Facebook accounts in the Blog2Social settings.', 'blog2social'); ?></b>
987
- </div>
988
- <div class="b2s-post-format-settings-info" data-network-id="2" style="display:none;">
989
- <b><?php esc_html_e('Define the default settings for the custom post format for all of your Twitter accounts in the Blog2Social settings.', 'blog2social'); ?></b>
990
- </div>
991
- <div class="b2s-post-format-settings-info" data-network-id="3" style="display:none;">
992
- <b><?php esc_html_e('Define the default settings for the custom post format for all of your LinkedIn accounts in the Blog2Social settings.', 'blog2social'); ?></b>
993
- </div>
994
- <div class="b2s-post-format-settings-info" data-network-id="12" style="display:none;">
995
- <b><?php esc_html_e('Define the default settings for the custom post format for all of your Instagram accounts in the Blog2Social settings.', 'blog2social'); ?></b>
996
- </div>
997
- </div>
998
- </div>
999
- </div>
1000
- </div>
1001
- </div>
1002
- </div>
1003
- </div>
1004
-
1005
- <div id="b2s-network-select-image" class="modal fade" role="dialog" aria-labelledby="b2s-network-select-image" aria-hidden="true" data-backdrop="false" style="display:none;z-index: 1070;">
1006
- <div class="modal-dialog modal-lg">
1007
- <div class="modal-content">
1008
- <div class="modal-header">
1009
- <button type="button" class="b2s-modal-close close" data-modal-name="#b2s-network-select-image">&times;</button>
1010
- <h4 class="modal-title"><?php esc_html_e('Select image for', 'blog2social') ?> <span class="b2s-selected-network-for-image-info"></span></h4>
1011
- </div>
1012
- <div class="modal-body">
1013
- <div class="row">
1014
- <div class="col-xs-12">
1015
- <div class="b2s-network-select-image-content"></div>
1016
- </div>
1017
- </div>
1018
- </div>
1019
- </div>
1020
- </div>
1021
- </div>
1022
-
1023
- <div id="b2s-show-post-type-modal" class="modal fade" role="dialog" aria-labelledby="b2s-show-post-type-modal" aria-hidden="true" data-backdrop="false" style="display:none;z-index: 1070;">
1024
- <div class="modal-dialog modal-lg">
1025
- <div class="modal-content">
1026
- <div class="modal-header">
1027
- <button type="button" class="b2s-modal-close close" data-modal-name="#b2s-show-post-type-modal">&times;</button>
1028
- <h4 class="modal-title"><?php esc_html_e('What would you like to share?', 'blog2social') ?></h4>
1029
- </div>
1030
- <div class="modal-body">
1031
- <div class="row">
1032
- <div class="col-md-6 col-xs-12">
1033
- <div class="b2s-post-type-area text-center">
1034
- <div class="image">
1035
- <img class="img-width-150" src="<?php echo plugins_url('/assets/images/b2s/blog-post-icon.png', B2S_PLUGIN_FILE); ?>" alt="blog post">
1036
- </div>
1037
- <div class="text">
1038
- <?php esc_html_e("Share your WordPress posts, pages or products", "blog2social") ?>
1039
- </div>
1040
- <div class="action">
1041
- <button class="btn btn-primary" id="b2s-btn-select-blog-post"><?php esc_html_e("select", "blog2social"); ?></button>
1042
- </div>
1043
- </div>
1044
- </div>
1045
- <div class="col-md-6 col-xs-12">
1046
- <div class="b2s-post-type-area text-center">
1047
- <div class="image">
1048
- <img class="img-width-150" src="<?php echo plugins_url('/assets/images/b2s/content-curation-icon.png', B2S_PLUGIN_FILE); ?>" alt="content curation">
1049
- </div>
1050
- <div class="text">
1051
- <?php esc_html_e("Create or share content from other sources", "blog2social") ?>
1052
- </div>
1053
- <div class="action">
1054
- <button class="btn btn-primary" id="b2s-btn-select-content-curation"><?php esc_html_e("select", "blog2social"); ?></button>
1055
- </div>
1056
- </div>
1057
- </div>
1058
- <input type="hidden" id="b2sSelSchedDate" value="">
1059
-
1060
- </div>
1061
- </div>
1062
- </div>
1063
- </div>
1064
- </div>
1065
-
1066
-
1067
- <div id="b2s-show-post-all-modal" class="modal fade" role="dialog" aria-labelledby="b2s-post-all-modal" aria-hidden="true" data-backdrop="false" style="display:none;z-index: 1070;">
1068
- <div class="modal-dialog modal-lg">
1069
- <div class="modal-content">
1070
- <div class="modal-header">
1071
- <button type="button" class="b2s-modal-close close" data-modal-name="#b2s-show-post-all-modal">&times;</button>
1072
- <h4 class="modal-title"><?php esc_html_e('Select a post', 'blog2social') ?></h4>
1073
- </div>
1074
- <div class="modal-body">
1075
- <div class="row">
1076
- <div class="col-xs-12">
1077
- <div class="b2s-all-post-content">
1078
- <div class="b2s-post">
1079
- <div class="grid-body">
1080
- <div class="hidden-lg hidden-md hidden-sm filterShow"><a href="#" onclick="showFilter('show');return false;"><i class="glyphicon glyphicon-chevron-down"></i><?php esc_html_e('filter', 'blog2social') ?></a></div>
1081
- <div class="hidden-lg hidden-md hidden-sm filterHide"><a href="#" onclick="showFilter('hide');return false;"><i class="glyphicon glyphicon-chevron-up"></i><?php esc_html_e('filter', 'blog2social') ?></a></div>
1082
- <form class="b2sSortForm form-inline pull-left" action="#">
1083
- <input id="b2sType" type="hidden" value="all" name="b2sType">
1084
- <input id="b2sShowByDate" type="hidden" value="" name="b2sShowByDate">
1085
- <input id="b2sPagination" type="hidden" value="1" name="b2sPagination">
1086
- <?php
1087
- $postFilter = new B2S_Post_Filter('all');
1088
- echo $postFilter->getItemHtml();
1089
- ?>
1090
- </form>
1091
- </div>
1092
- </div>
1093
- <div class="clearfix"></div>
1094
- <div class="b2s-loading-area" style="display:none">
1095
- <br>
1096
- <div class="b2s-loader-impulse b2s-loader-impulse-md"></div>
1097
- <div class="clearfix"></div>
1098
- <div class="text-center b2s-loader-text"><?php esc_html_e("Loading...", "blog2social"); ?></div>
1099
- </div>
1100
- <div class="clearfix"></div>
1101
- <br>
1102
- <ul class="list-group b2s-sort-result-item-area"></ul>
1103
- <br>
1104
- <nav class="b2s-sort-pagination-area text-center"></nav>
1105
- </div>
1106
- </div>
1107
- </div>
1108
- </div>
1109
- </div>
1110
- </div>
1111
- </div>
1112
-
1113
-
1114
- <div id="b2s-sched-post-modal" class="modal fade" role="dialog" aria-labelledby="b2s-sched-post-modal" aria-hidden="true" data-backdrop="false" style="display:none;z-index: 1070;">
1115
- <div class="modal-dialog">
1116
- <div class="modal-content">
1117
- <div class="modal-header">
1118
- <button type="button" class="b2s-modal-close close" data-modal-name="#b2s-sched-post-modal">&times;</button>
1119
- <h4 class="modal-title"><?php esc_html_e('Need to schedule your posts?', 'blog2social') ?></h4>
1120
- </div>
1121
- <div class="modal-body">
1122
- <p><?php esc_html_e('Blog2Social Premium covers everything you need.', 'blog2social') ?></p>
1123
- <br>
1124
- <div class="clearfix"></div>
1125
- <b><?php esc_html_e('Schedule for specific dates', 'blog2social') ?></b>
1126
- <p><?php esc_html_e('You want to publish a post on a specific date? No problem! Just enter your desired date and you are ready to go!', 'blog2social') ?></p>
1127
- <br>
1128
- <b><?php esc_html_e('Schedule post recurrently', 'blog2social') ?></b>
1129
- <p><?php esc_html_e('You have evergreen content you want to re-share from time to time in your timeline? Schedule your evergreen content to be shared once, multiple times or recurringly at specific times.', 'blog2social') ?></p>
1130
- <br>
1131
- <b><?php esc_html_e('Best Time Scheduler', 'blog2social') ?></b>
1132
- <p><?php esc_html_e('Whenever you publish a post, only a fraction of your followers will actually see your post. Use the Blog2Social Best Times Scheduler to share your post at the best times for each social network. Get more outreach and extend the lifespan of your posts.', 'blog2social') ?></p>
1133
- <br>
1134
- <?php if (B2S_PLUGIN_USER_VERSION == 0) { ?>
1135
- <hr>
1136
- <?php esc_html_e('With Blog2Social Premium you can:', 'blog2social') ?>
1137
- <br>
1138
- <br>
1139
- <span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Post on pages and groups', 'blog2social') ?><br>
1140
- <span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Share on multiple profiles, pages and groups', 'blog2social') ?><br>
1141
- <span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Auto-post and auto-schedule new and updated blog posts', 'blog2social') ?><br>
1142
- <span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Schedule your posts at the best times on each network', 'blog2social') ?><br>
1143
- <span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Best Time Manager: use predefined best time scheduler to auto-schedule your social media posts', 'blog2social') ?><br>
1144
- <span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Schedule your post for one time, multiple times or recurrently', 'blog2social') ?><br>
1145
- <span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Schedule and re-share old posts', 'blog2social') ?><br>
1146
- <span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Select link format or image format for your posts', 'blog2social') ?><br>
1147
- <span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Select individual images per post', 'blog2social') ?><br>
1148
- <span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Reporting & calendar: keep track of your published and scheduled social media posts', 'blog2social') ?><br>
1149
- <br>
1150
- <a target="_blank" href="<?php echo esc_url(B2S_Tools::getSupportLink('affiliate')); ?>" class="btn btn-success center-block"><?php esc_html_e('Upgrade to SMART and above', 'blog2social') ?></a>
1151
- <br>
1152
- <center> <?php echo sprintf(__('or <a target="_blank" href="%s">start with free 30-days-trial of Blog2Social Premium</a> (no payment information needed)', 'blog2social'), esc_url('https://service.blog2social.com/trial')); ?> </center>
1153
- <?php } ?>
1154
- </div>
1155
- </div>
1156
- </div>
1157
- </div>
1158
-
1159
- <div id="b2s-show-error-modal" class="modal fade" role="dialog" aria-labelledby="b2s-show-error-modal" aria-hidden="true" data-backdrop="false" style="display:none;z-index: 1070;">
1160
- <div class="modal-dialog modal-lg">
1161
- <div class="modal-content">
1162
- <div class="modal-header">
1163
- <button type="button" class="b2s-modal-close close" data-modal-name="#b2s-show-error-modal">&times;</button>
1164
- <h4 class="modal-title"><?php esc_html_e('Notification', 'blog2social') ?></h4>
1165
- </div>
1166
- <div class="modal-body">
1167
- <div class="row">
1168
- <div class="col-xs-12">
1169
- <div class="alert alert-danger b2s-error-text"></div>
1170
- </div>
1171
- </div>
1172
- </div>
1173
- </div>
1174
- </div>
1175
- </div>
1176
-
1177
- <div id="b2sImageZoomModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="b2sImageZoomModal" aria-hidden="true" data-backdrop="false" style="display:none;">
1178
- <div class="modal-dialog">
1179
- <div class="modal-content">
1180
- <div class="modal-body">
1181
- <button type="button" class="btn btn-primary btn-circle b2sImageZoomModalClose b2s-modal-close close" data-modal-name="#b2sImageZoomModal" aria-label="Close"><i class="glyphicon glyphicon-remove"></i></button>
1182
- <img id="b2sImageZoom">
1183
- </div>
1184
- </div>
1185
- </div>
1186
- >>>>>>> .r2714722
1187
  </div>
 
1
  <?php
2
  wp_nonce_field('b2s_security_nonce', 'b2s_security_nonce');
3
  /* Data */
137
  <input type="hidden" id="b2sUserLang" value="<?php echo esc_attr(strtolower(substr(get_locale(), 0, 2))); ?>">
138
  <input type='hidden' id="user_timezone" name="user_timezone" value="<?php echo esc_attr($userTimeZoneOffset); ?>">
139
  <input type="hidden" id="user_version" name="user_version" value="<?php echo esc_attr(B2S_PLUGIN_USER_VERSION); ?>">
140
+ <input type="hidden" id="b2sDefaultNoImage" value="<?php echo esc_url(plugins_url('/assets/images/no-image.png', B2S_PLUGIN_FILE)); ?>">
141
  <input type="hidden" id="b2sPostId" value="">
142
  <input type="hidden" id="b2sInsertImageType" value="0">
143
  <input type="hidden" id="isOgMetaChecked" value="<?php echo (isset($metaSettings['og_active']) ? (int) $metaSettings['og_active'] : 0); ?>">
270
  <div class="col-md-6 col-xs-12">
271
  <div class="b2s-post-type-area text-center">
272
  <div class="image">
273
+ <img class="img-width-150" src="<?php echo esc_url(plugins_url('/assets/images/b2s/blog-post-icon.png', B2S_PLUGIN_FILE)); ?>" alt="blog post">
274
  </div>
275
  <div class="text">
276
  <?php esc_html_e("Share your WordPress posts, pages or products", "blog2social") ?>
283
  <div class="col-md-6 col-xs-12">
284
  <div class="b2s-post-type-area text-center">
285
  <div class="image">
286
+ <img class="img-width-150" src="<?php echo esc_url(plugins_url('/assets/images/b2s/content-curation-icon.png', B2S_PLUGIN_FILE)); ?>" alt="content curation">
287
  </div>
288
  <div class="text">
289
  <?php esc_html_e("Create or share content from other sources", "blog2social") ?>
450
  </div>
451
  </div>
452
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
453
  </div>
views/b2s/post.sched.php CHANGED
@@ -263,24 +263,24 @@ $metaSettings = get_option('B2S_PLUGIN_GENERAL_OPTIONS');
263
  </div>
264
 
265
 
266
- <input type="hidden" id="b2sLang" value="<?php echo substr(B2S_LANGUAGE, 0, 2); ?>">
267
  <input type="hidden" id="b2sUserTimeFormat" value="<?php echo esc_attr($optionUserTimeFormat); ?>">
268
  <input type="hidden" id="b2sJSTextAddPost" value="<?php echo esc_html_e("add post", "blog2social"); ?>">
269
- <input type="hidden" id="b2sUserLang" value="<?php echo strtolower(substr(get_locale(), 0, 2)); ?>">
270
  <input type='hidden' id="user_timezone" name="user_timezone" value="<?php echo esc_attr($userTimeZoneOffset); ?>">
271
- <input type="hidden" id="user_version" name="user_version" value="<?php echo B2S_PLUGIN_USER_VERSION; ?>">
272
- <input type="hidden" id="b2sDefaultNoImage" value="<?php echo plugins_url('/assets/images/no-image.png', B2S_PLUGIN_FILE); ?>">
273
  <input type="hidden" id="b2sPostId" value="">
274
  <input type="hidden" id="b2sInsertImageType" value="0">
275
  <input type="hidden" id="isOgMetaChecked" value="<?php echo (isset($metaSettings['og_active']) ? (int) $metaSettings['og_active'] : 0); ?>">
276
  <input type="hidden" id="isCardMetaChecked" value="<?php echo (isset($metaSettings['card_active']) ? (int) $metaSettings['card_active'] : 0); ?>">
277
- <input type="hidden" id="b2sNotAllowGif" value="<?php echo implode(";", json_decode(B2S_PLUGIN_NETWORK_NOT_ALLOW_GIF, true)); ?>">
278
- <input type="hidden" id="b2sAnimateGif" value='<?php echo B2S_PLUGIN_NETWORK_ANIMATE_GIF; ?>'>
279
- <input type="hidden" id="ogMetaNetworks" value="<?php echo implode(';', json_decode(B2S_PLUGIN_NETWORK_META_TAGS, true)['og']); ?>">
280
- <input type="hidden" id="b2sEmojiTranslation" value='<?php echo json_encode(B2S_Tools::getEmojiTranslationList()); ?>'>
281
 
282
  <script>
283
- var b2s_has_premium = <?php echo B2S_PLUGIN_USER_VERSION > 0 ? "true" : "false"; ?>;
284
  var b2s_plugin_url = '<?php echo esc_url(B2S_PLUGIN_URL); ?>';
285
  var b2s_post_formats = <?php echo json_encode(array('post' => array(esc_html__('Link Post', 'blog2social'), esc_html__('Image Post', 'blog2social')), 'image' => array(esc_html__('Image with frame', 'blog2social'), esc_html__('Image cut out','blog2social')))); ?>;
286
  var b2s_is_calendar = true;
263
  </div>
264
 
265
 
266
+ <input type="hidden" id="b2sLang" value="<?php echo esc_attr(substr(B2S_LANGUAGE, 0, 2)); ?>">
267
  <input type="hidden" id="b2sUserTimeFormat" value="<?php echo esc_attr($optionUserTimeFormat); ?>">
268
  <input type="hidden" id="b2sJSTextAddPost" value="<?php echo esc_html_e("add post", "blog2social"); ?>">
269
+ <input type="hidden" id="b2sUserLang" value="<?php echo esc_attr(strtolower(substr(get_locale(), 0, 2))); ?>">
270
  <input type='hidden' id="user_timezone" name="user_timezone" value="<?php echo esc_attr($userTimeZoneOffset); ?>">
271
+ <input type="hidden" id="user_version" name="user_version" value="<?php echo esc_attr(B2S_PLUGIN_USER_VERSION); ?>">
272
+ <input type="hidden" id="b2sDefaultNoImage" value="<?php echo esc_url(plugins_url('/assets/images/no-image.png', B2S_PLUGIN_FILE)); ?>">
273
  <input type="hidden" id="b2sPostId" value="">
274
  <input type="hidden" id="b2sInsertImageType" value="0">
275
  <input type="hidden" id="isOgMetaChecked" value="<?php echo (isset($metaSettings['og_active']) ? (int) $metaSettings['og_active'] : 0); ?>">
276
  <input type="hidden" id="isCardMetaChecked" value="<?php echo (isset($metaSettings['card_active']) ? (int) $metaSettings['card_active'] : 0); ?>">
277
+ <input type="hidden" id="b2sNotAllowGif" value="<?php echo esc_attr(implode(";", json_decode(B2S_PLUGIN_NETWORK_NOT_ALLOW_GIF, true))); ?>">
278
+ <input type="hidden" id="b2sAnimateGif" value='<?php echo esc_attr(B2S_PLUGIN_NETWORK_ANIMATE_GIF); ?>'>
279
+ <input type="hidden" id="ogMetaNetworks" value="<?php echo esc_attr(implode(';', json_decode(B2S_PLUGIN_NETWORK_META_TAGS, true)['og'])); ?>">
280
+ <input type="hidden" id="b2sEmojiTranslation" value='<?php echo esc_attr(json_encode(B2S_Tools::getEmojiTranslationList())); ?>'>
281
 
282
  <script>
283
+ var b2s_has_premium = <?php echo esc_attr(B2S_PLUGIN_USER_VERSION) > 0 ? "true" : "false"; ?>;
284
  var b2s_plugin_url = '<?php echo esc_url(B2S_PLUGIN_URL); ?>';
285
  var b2s_post_formats = <?php echo json_encode(array('post' => array(esc_html__('Link Post', 'blog2social'), esc_html__('Image Post', 'blog2social')), 'image' => array(esc_html__('Image with frame', 'blog2social'), esc_html__('Image cut out','blog2social')))); ?>;
286
  var b2s_is_calendar = true;
views/b2s/premium.php CHANGED
@@ -24,23 +24,28 @@
24
  ?>
25
  </span>
26
  <?php if (B2S_PLUGIN_USER_VERSION == 0 && !defined("B2S_PLUGIN_TRAIL_END") && !get_option('B2S_PLUGIN_DISABLE_TRAIL')) { ?>
27
- <a class="btn btn-sm btn-primary pull-right" href="<?php echo B2S_Tools::getSupportLink('feature'); ?>" target="_blank"> <?php esc_html_e('Start your 30-day free Premium trial', 'blog2social') ?></a>
28
  <?php } ?>
29
  </h2>
30
  <?php if (defined("B2S_PLUGIN_TRAIL_END") && strtotime(B2S_PLUGIN_TRAIL_END) > time()) { ?>
31
- <p> <span class="b2s-text-bold"><?php esc_html_e("End of Trial", "blog2social") ?></span>: <?php echo B2S_Util::getCustomDateFormat(B2S_PLUGIN_TRAIL_END, trim(strtolower(substr(B2S_LANGUAGE, 0, 2))), false); ?>
32
  <a class="b2s-text-bold" href="<?php echo esc_url(B2S_Tools::getSupportLink('affiliate')); ?>" target="_blank"> <?php esc_html_e('Upgrade', 'blog2social') ?></a>
33
  </p>
34
  <br>
35
  <?php } ?>
36
  <p><?php esc_html_e('Use Blog2Social Premium for even smarter social media automation: schedule your posts automatically with the Best Time Manager, choose specific dates or schedule your posts recurringly. Keep track of your posts with the social media calendar. Publish posts to pages, groups and multiple accounts per network and much more.', 'blog2social') ?>
37
- <a target="_blank" class="b2s-btn-link" href="<?php echo B2S_Tools::getSupportLink('affiliate'); ?>"><?php esc_html_e('Get more information about the benefits of Blog2Social Premium', 'blog2social') ?></a></p>
38
  <div class="clearfix"></div>
39
  <br>
40
  <div class="b2s-key-area">
41
  <div id="b2s-license-user-area" class="col-md-4 col-sm-12 col-xs-12">
42
  <select id="b2s-license-user-select" class="form-control" data-placeholder="<?php esc_html_e('Select a user', 'blog2social'); ?>">
43
- <?php echo B2S_Tools::searchUser(wp_get_current_user()->display_name, B2S_PLUGIN_BLOG_USER_ID); ?>
 
 
 
 
 
44
  </select>
45
  <input type="hidden" id="b2s-license-user" value="<?php echo esc_attr(get_current_user_id()); ?>">
46
  <input type="hidden" id="b2s-no-user-found" value="<?php esc_html_e('No User found', 'blog2social'); ?>">
@@ -65,7 +70,7 @@
65
  <div class="row">
66
  <div class="col-md-3 col-hide-padding-left">
67
  <div class="thumbnail text-center">
68
- <img class="b2s-feature-img-with-90" src="<?php echo plugins_url('/assets/images/features/pages-groups.png', B2S_PLUGIN_FILE); ?>" alt="Pages & Groups">
69
  </div>
70
  <p class="text-center">
71
  <span class="b2s-text-bold"><?php esc_html_e('Pages and groups', 'blog2social') ?></span><br>
@@ -74,7 +79,7 @@
74
  </div>
75
  <div class="col-md-3 col-hide-padding-left">
76
  <div class="thumbnail text-center">
77
- <img class="b2s-feature-img-with-90" src="<?php echo plugins_url('/assets/images/features/licenses.png', B2S_PLUGIN_FILE); ?>" alt="Licenses">
78
  </div>
79
  <p class="text-center">
80
  <span class="b2s-text-bold"><?php esc_html_e('More users and accounts', 'blog2social') ?></span><br>
@@ -83,7 +88,7 @@
83
  </div>
84
  <div class="col-md-3 col-hide-padding-left">
85
  <div class="thumbnail text-center">
86
- <img class="b2s-feature-img-with-90" src="<?php echo plugins_url('/assets/images/features/social-media-calendar.png', B2S_PLUGIN_FILE); ?>" alt="Social Media Calendar">
87
  </div>
88
  <p class="text-center">
89
  <span class="b2s-text-bold"><?php esc_html_e('Social Media Calendar', 'blog2social') ?></span><br>
@@ -92,7 +97,7 @@
92
  </div>
93
  <div class="col-md-3 col-hide-padding-left">
94
  <div class="thumbnail text-center">
95
- <img class="b2s-feature-img-with-90" src="<?php echo plugins_url('/assets/images/features/best-times-manager.png', B2S_PLUGIN_FILE); ?>" alt="Best Time Manager">
96
  </div>
97
  <p class="text-center">
98
  <span class="b2s-text-bold"><?php esc_html_e('Best Times Manager', 'blog2social') ?></span><br>
@@ -104,7 +109,7 @@
104
  <div class="row">
105
  <div class="col-md-3 col-hide-padding-left">
106
  <div class="thumbnail text-center">
107
- <img class="b2s-feature-img-with-90" src="<?php echo plugins_url('/assets/images/features/auto-posting.png', B2S_PLUGIN_FILE); ?>" alt="Auto Posting">
108
  </div>
109
  <p class="text-center">
110
  <span class="b2s-text-bold"><?php esc_html_e('Auto-Posting', 'blog2social') ?></span><br>
@@ -113,7 +118,7 @@
113
  </div>
114
  <div class="col-md-3 col-hide-padding-left">
115
  <div class="thumbnail text-center">
116
- <img class="b2s-feature-img-with-90" src="<?php echo plugins_url('/assets/images/features/rss-feed.png', B2S_PLUGIN_FILE); ?>" alt="RSS Feed">
117
  </div>
118
  <p class="text-center">
119
  <span class="b2s-text-bold"><?php esc_html_e('RSS import & auto-post', 'blog2social') ?></span><br>
@@ -122,7 +127,7 @@
122
  </div>
123
  <div class="col-md-3 col-hide-padding-left">
124
  <div class="thumbnail text-center">
125
- <img class="b2s-feature-img-with-90" src="<?php echo plugins_url('/assets/images/features/gmb-post.png', B2S_PLUGIN_FILE); ?>" alt="GMB Post">
126
  </div>
127
  <p class="text-center">
128
  <span class="b2s-text-bold"><?php esc_html_e('Google My Business', 'blog2social') ?></span><br>
@@ -131,7 +136,7 @@
131
  </div>
132
  <div class="col-md-3 col-hide-padding-left">
133
  <div class="thumbnail text-center">
134
- <img class="b2s-feature-img-with-90" src="<?php echo plugins_url('/assets/images/features/content-curation.png', B2S_PLUGIN_FILE); ?>" alt="Content Curation">
135
  </div>
136
  <p class="text-center">
137
  <span class="b2s-text-bold"><?php esc_html_e('Schedule curated content', 'blog2social') ?></span><br>
@@ -143,7 +148,7 @@
143
  <div class="row">
144
  <div class="col-md-3 col-hide-padding-left">
145
  <div class="thumbnail text-center">
146
- <img class="b2s-feature-img-with-90" src="<?php echo plugins_url('/assets/images/features/media-library.png', B2S_PLUGIN_FILE); ?>" alt="Media Library">
147
  </div>
148
  <p class="text-center">
149
  <span class="b2s-text-bold"><?php esc_html_e('Custom image', 'blog2social') ?></span><br>
@@ -152,7 +157,7 @@
152
  </div>
153
  <div class="col-md-3 col-hide-padding-left">
154
  <div class="thumbnail text-center">
155
- <img class="b2s-feature-img-with-90" src="<?php echo plugins_url('/assets/images/features/link-image-post.png', B2S_PLUGIN_FILE); ?>" alt="Post Format">
156
  </div>
157
  <p class="text-center">
158
  <span class="b2s-text-bold"><?php esc_html_e('Custom format', 'blog2social') ?></span><br>
@@ -161,7 +166,7 @@
161
  </div>
162
  <div class="col-md-3 col-hide-padding-left">
163
  <div class="thumbnail text-center">
164
- <img class="b2s-feature-img-with-90" src="<?php echo plugins_url('/assets/images/features/tags.png', B2S_PLUGIN_FILE); ?>" alt="Tags">
165
  </div>
166
  <p class="text-center">
167
  <span class="b2s-text-bold"><?php esc_html_e('Open Graph and Twitter Card Tags', 'blog2social') ?></span><br>
@@ -170,7 +175,7 @@
170
  </div>
171
  <div class="col-md-3 col-hide-padding-left">
172
  <div class="thumbnail text-center">
173
- <img class="b2s-feature-img-with-90" src="<?php echo plugins_url('/assets/images/features/support.png', B2S_PLUGIN_FILE); ?>" alt="Support">
174
  </div>
175
  <p class="text-center">
176
  <span class="b2s-text-bold"><?php esc_html_e('Premium support', 'blog2social') ?></span><br>
24
  ?>
25
  </span>
26
  <?php if (B2S_PLUGIN_USER_VERSION == 0 && !defined("B2S_PLUGIN_TRAIL_END") && !get_option('B2S_PLUGIN_DISABLE_TRAIL')) { ?>
27
+ <a class="btn btn-sm btn-primary pull-right" href="<?php echo esc_url(B2S_Tools::getSupportLink('feature')); ?>" target="_blank"> <?php esc_html_e('Start your 30-day free Premium trial', 'blog2social') ?></a>
28
  <?php } ?>
29
  </h2>
30
  <?php if (defined("B2S_PLUGIN_TRAIL_END") && strtotime(B2S_PLUGIN_TRAIL_END) > time()) { ?>
31
+ <p> <span class="b2s-text-bold"><?php esc_html_e("End of Trial", "blog2social") ?></span>: <?php echo esc_html(B2S_Util::getCustomDateFormat(B2S_PLUGIN_TRAIL_END, trim(strtolower(substr(B2S_LANGUAGE, 0, 2))), false)); ?>
32
  <a class="b2s-text-bold" href="<?php echo esc_url(B2S_Tools::getSupportLink('affiliate')); ?>" target="_blank"> <?php esc_html_e('Upgrade', 'blog2social') ?></a>
33
  </p>
34
  <br>
35
  <?php } ?>
36
  <p><?php esc_html_e('Use Blog2Social Premium for even smarter social media automation: schedule your posts automatically with the Best Time Manager, choose specific dates or schedule your posts recurringly. Keep track of your posts with the social media calendar. Publish posts to pages, groups and multiple accounts per network and much more.', 'blog2social') ?>
37
+ <a target="_blank" class="b2s-btn-link" href="<?php echo esc_url(B2S_Tools::getSupportLink('affiliate')); ?>"><?php esc_html_e('Get more information about the benefits of Blog2Social Premium', 'blog2social') ?></a></p>
38
  <div class="clearfix"></div>
39
  <br>
40
  <div class="b2s-key-area">
41
  <div id="b2s-license-user-area" class="col-md-4 col-sm-12 col-xs-12">
42
  <select id="b2s-license-user-select" class="form-control" data-placeholder="<?php esc_html_e('Select a user', 'blog2social'); ?>">
43
+ <?php echo wp_kses(B2S_Tools::searchUser(wp_get_current_user()->display_name, B2S_PLUGIN_BLOG_USER_ID), array(
44
+ 'option' => array(
45
+ 'value' => array(),
46
+ 'selected' => array()
47
+ )
48
+ )); ?>
49
  </select>
50
  <input type="hidden" id="b2s-license-user" value="<?php echo esc_attr(get_current_user_id()); ?>">
51
  <input type="hidden" id="b2s-no-user-found" value="<?php esc_html_e('No User found', 'blog2social'); ?>">
70
  <div class="row">
71
  <div class="col-md-3 col-hide-padding-left">
72
  <div class="thumbnail text-center">
73
+ <img class="b2s-feature-img-with-90" src="<?php echo esc_url(plugins_url('/assets/images/features/pages-groups.png', B2S_PLUGIN_FILE)); ?>" alt="Pages & Groups">
74
  </div>
75
  <p class="text-center">
76
  <span class="b2s-text-bold"><?php esc_html_e('Pages and groups', 'blog2social') ?></span><br>
79
  </div>
80
  <div class="col-md-3 col-hide-padding-left">
81
  <div class="thumbnail text-center">
82
+ <img class="b2s-feature-img-with-90" src="<?php echo esc_url(plugins_url('/assets/images/features/licenses.png', B2S_PLUGIN_FILE)); ?>" alt="Licenses">
83
  </div>
84
  <p class="text-center">
85
  <span class="b2s-text-bold"><?php esc_html_e('More users and accounts', 'blog2social') ?></span><br>
88
  </div>
89
  <div class="col-md-3 col-hide-padding-left">
90
  <div class="thumbnail text-center">
91
+ <img class="b2s-feature-img-with-90" src="<?php echo esc_url(plugins_url('/assets/images/features/social-media-calendar.png', B2S_PLUGIN_FILE)); ?>" alt="Social Media Calendar">
92
  </div>
93
  <p class="text-center">
94
  <span class="b2s-text-bold"><?php esc_html_e('Social Media Calendar', 'blog2social') ?></span><br>
97
  </div>
98
  <div class="col-md-3 col-hide-padding-left">
99
  <div class="thumbnail text-center">
100
+ <img class="b2s-feature-img-with-90" src="<?php echo esc_url(plugins_url('/assets/images/features/best-times-manager.png', B2S_PLUGIN_FILE)); ?>" alt="Best Time Manager">
101
  </div>
102
  <p class="text-center">
103
  <span class="b2s-text-bold"><?php esc_html_e('Best Times Manager', 'blog2social') ?></span><br>
109
  <div class="row">
110
  <div class="col-md-3 col-hide-padding-left">
111
  <div class="thumbnail text-center">
112
+ <img class="b2s-feature-img-with-90" src="<?php echo esc_url(plugins_url('/assets/images/features/auto-posting.png', B2S_PLUGIN_FILE)); ?>" alt="Auto Posting">
113
  </div>
114
  <p class="text-center">
115
  <span class="b2s-text-bold"><?php esc_html_e('Auto-Posting', 'blog2social') ?></span><br>
118
  </div>
119
  <div class="col-md-3 col-hide-padding-left">
120
  <div class="thumbnail text-center">
121
+ <img class="b2s-feature-img-with-90" src="<?php echo esc_url(plugins_url('/assets/images/features/rss-feed.png', B2S_PLUGIN_FILE)); ?>" alt="RSS Feed">
122
  </div>
123
  <p class="text-center">
124
  <span class="b2s-text-bold"><?php esc_html_e('RSS import & auto-post', 'blog2social') ?></span><br>
127
  </div>
128
  <div class="col-md-3 col-hide-padding-left">
129
  <div class="thumbnail text-center">
130
+ <img class="b2s-feature-img-with-90" src="<?php echo esc_url(plugins_url('/assets/images/features/gmb-post.png', B2S_PLUGIN_FILE)); ?>" alt="GMB Post">
131
  </div>
132
  <p class="text-center">
133
  <span class="b2s-text-bold"><?php esc_html_e('Google My Business', 'blog2social') ?></span><br>
136
  </div>
137
  <div class="col-md-3 col-hide-padding-left">
138
  <div class="thumbnail text-center">
139
+ <img class="b2s-feature-img-with-90" src="<?php echo esc_url(plugins_url('/assets/images/features/content-curation.png', B2S_PLUGIN_FILE)); ?>" alt="Content Curation">
140
  </div>
141
  <p class="text-center">
142
  <span class="b2s-text-bold"><?php esc_html_e('Schedule curated content', 'blog2social') ?></span><br>
148
  <div class="row">
149
  <div class="col-md-3 col-hide-padding-left">
150
  <div class="thumbnail text-center">
151
+ <img class="b2s-feature-img-with-90" src="<?php echo esc_url(plugins_url('/assets/images/features/media-library.png', B2S_PLUGIN_FILE)); ?>" alt="Media Library">
152
  </div>
153
  <p class="text-center">
154
  <span class="b2s-text-bold"><?php esc_html_e('Custom image', 'blog2social') ?></span><br>
157
  </div>
158
  <div class="col-md-3 col-hide-padding-left">
159
  <div class="thumbnail text-center">
160
+ <img class="b2s-feature-img-with-90" src="<?php echo esc_url(plugins_url('/assets/images/features/link-image-post.png', B2S_PLUGIN_FILE)); ?>" alt="Post Format">
161
  </div>
162
  <p class="text-center">
163
  <span class="b2s-text-bold"><?php esc_html_e('Custom format', 'blog2social') ?></span><br>
166
  </div>
167
  <div class="col-md-3 col-hide-padding-left">
168
  <div class="thumbnail text-center">
169
+ <img class="b2s-feature-img-with-90" src="<?php echo esc_url(plugins_url('/assets/images/features/tags.png', B2S_PLUGIN_FILE)); ?>" alt="Tags">
170
  </div>
171
  <p class="text-center">
172
  <span class="b2s-text-bold"><?php esc_html_e('Open Graph and Twitter Card Tags', 'blog2social') ?></span><br>
175
  </div>
176
  <div class="col-md-3 col-hide-padding-left">
177
  <div class="thumbnail text-center">
178
+ <img class="b2s-feature-img-with-90" src="<?php echo esc_url(plugins_url('/assets/images/features/support.png', B2S_PLUGIN_FILE)); ?>" alt="Support">
179
  </div>
180
  <p class="text-center">
181
  <span class="b2s-text-bold"><?php esc_html_e('Premium support', 'blog2social') ?></span><br>
views/b2s/repost.php CHANGED
@@ -185,7 +185,7 @@ $metaSettings = get_option('B2S_PLUGIN_GENERAL_OPTIONS');
185
  <input type="hidden" id="b2sUserLang" value="<?php echo esc_attr(strtolower(substr(get_locale(), 0, 2))); ?>">
186
  <input type='hidden' id="user_timezone" name="user_timezone" value="<?php echo esc_attr($userTimeZoneOffset); ?>">
187
  <input type="hidden" id="user_version" name="user_version" value="<?php echo esc_attr(B2S_PLUGIN_USER_VERSION); ?>">
188
- <input type="hidden" id="b2sDefaultNoImage" value="<?php echo plugins_url('/assets/images/no-image.png', B2S_PLUGIN_FILE); ?>">
189
  <input type="hidden" id="b2sPostId" value="">
190
  <input type="hidden" id="b2sInsertImageType" value="0">
191
  <input type="hidden" id="isOgMetaChecked" value="<?php echo (isset($metaSettings['og_active']) ? (int) $metaSettings['og_active'] : 0); ?>">
@@ -339,7 +339,7 @@ $metaSettings = get_option('B2S_PLUGIN_GENERAL_OPTIONS');
339
  <h4 class="modal-title"><?php esc_html_e('Select Twitter profile:', 'blog2social') ?></h4>
340
  </div>
341
  <div class="modal-body">
342
- <?php esc_html_e('To comply with the Twitter TOS and to avoid duplicate posts, autoposts will be sent to your primary Twitter profile.', 'blog2social') ?> <a target="_blank" href="<?php echo B2S_Tools::getSupportLink('network_tos_faq_032018') ?>"><?php esc_html_e('More information', 'blog2social') ?></a>
343
  </div>
344
  </div>
345
  </div>
@@ -354,25 +354,25 @@ $metaSettings = get_option('B2S_PLUGIN_GENERAL_OPTIONS');
354
  </div>
355
  <div class="modal-body">
356
  <div class="b2s-network-imgs">
357
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Facebook') ?>" src="<?php echo plugins_url('/assets/images/portale/1_flat.png', B2S_PLUGIN_FILE) ?>">
358
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Twitter') ?>" src="<?php echo plugins_url('/assets/images/portale/2_flat.png', B2S_PLUGIN_FILE) ?>">
359
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('LinkedIn') ?>" src="<?php echo plugins_url('/assets/images/portale/3_flat.png', B2S_PLUGIN_FILE) ?>">
360
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Pinterest') ?>" src="<?php echo plugins_url('/assets/images/portale/6_flat.png', B2S_PLUGIN_FILE) ?>">
361
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Flickr') ?>" src="<?php echo plugins_url('/assets/images/portale/7_flat.png', B2S_PLUGIN_FILE) ?>">
362
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Diigo') ?>" src="<?php echo plugins_url('/assets/images/portale/9_flat.png', B2S_PLUGIN_FILE) ?>">
363
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Instagram') ?>" src="<?php echo plugins_url('/assets/images/portale/12_flat.png', B2S_PLUGIN_FILE) ?>">
364
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Reddit') ?>" src="<?php echo plugins_url('/assets/images/portale/15_flat.png', B2S_PLUGIN_FILE) ?>">
365
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('VKontakte') ?>" src="<?php echo plugins_url('/assets/images/portale/17_flat.png', B2S_PLUGIN_FILE) ?>">
366
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('XING') ?>" src="<?php echo plugins_url('/assets/images/portale/19_flat.png', B2S_PLUGIN_FILE) ?>">
367
- <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Imgur') ?>" src="<?php echo plugins_url('/assets/images/portale/21_flat.png', B2S_PLUGIN_FILE) ?>">
368
 
369
- <img class="pull-right hidden-xs b2s-network-info-img-disabled" alt="<?php esc_attr_e('Google My Business') ?>" src="<?php echo plugins_url('/assets/images/portale/18_flat.png', B2S_PLUGIN_FILE) ?>">
370
- <img class="pull-right hidden-xs b2s-network-info-img-disabled" alt="<?php esc_attr_e('Medium') ?>" src="<?php echo plugins_url('/assets/images/portale/11_flat.png', B2S_PLUGIN_FILE) ?>">
371
- <img class="pull-right hidden-xs b2s-network-info-img-disabled" alt="<?php esc_attr_e('Tumblr') ?>" src="<?php echo plugins_url('/assets/images/portale/4_flat.png', B2S_PLUGIN_FILE) ?>">
372
- <img class="pull-right hidden-xs b2s-network-info-img-disabled" alt="<?php esc_attr_e('Torial') ?>" src="<?php echo plugins_url('/assets/images/portale/14_flat.png', B2S_PLUGIN_FILE) ?>">
373
- <img class="pull-right hidden-xs b2s-network-info-img-disabled" alt="<?php esc_attr_e('Bloglovin') ?>" src="<?php echo plugins_url('/assets/images/portale/16_flat.png', B2S_PLUGIN_FILE) ?>">
374
  </div>
375
- <p class="b2s-bold"><?php echo sprintf(__('Under <a href="%s">Network Settings</a> you define which network selection is used. <a href="%s" target="_blank">To create a network grouping.</a>', 'blog2social'), 'admin.php?page=blog2social-network', B2S_Tools::getSupportLink('network_grouping')) ?></p>
376
  <h4><?php esc_html_e('Available networks', 'blog2social') ?></h4>
377
  <p class="b2s-bold"><?php esc_attr_e('Facebook (Profile & Seiten)') ?></p>
378
  <p class="b2s-bold"><?php esc_attr_e('Twitter (1 Profil)') ?></p>
185
  <input type="hidden" id="b2sUserLang" value="<?php echo esc_attr(strtolower(substr(get_locale(), 0, 2))); ?>">
186
  <input type='hidden' id="user_timezone" name="user_timezone" value="<?php echo esc_attr($userTimeZoneOffset); ?>">
187
  <input type="hidden" id="user_version" name="user_version" value="<?php echo esc_attr(B2S_PLUGIN_USER_VERSION); ?>">
188
+ <input type="hidden" id="b2sDefaultNoImage" value="<?php echo esc_url(plugins_url('/assets/images/no-image.png', B2S_PLUGIN_FILE)); ?>">
189
  <input type="hidden" id="b2sPostId" value="">
190
  <input type="hidden" id="b2sInsertImageType" value="0">
191
  <input type="hidden" id="isOgMetaChecked" value="<?php echo (isset($metaSettings['og_active']) ? (int) $metaSettings['og_active'] : 0); ?>">
339
  <h4 class="modal-title"><?php esc_html_e('Select Twitter profile:', 'blog2social') ?></h4>
340
  </div>
341
  <div class="modal-body">
342
+ <?php esc_html_e('To comply with the Twitter TOS and to avoid duplicate posts, autoposts will be sent to your primary Twitter profile.', 'blog2social') ?> <a target="_blank" href="<?php echo esc_url(B2S_Tools::getSupportLink('network_tos_faq_032018')) ?>"><?php esc_html_e('More information', 'blog2social') ?></a>
343
  </div>
344
  </div>
345
  </div>
354
  </div>
355
  <div class="modal-body">
356
  <div class="b2s-network-imgs">
357
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Facebook') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/1_flat.png', B2S_PLUGIN_FILE)) ?>">
358
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Twitter') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/2_flat.png', B2S_PLUGIN_FILE)) ?>">
359
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('LinkedIn') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/3_flat.png', B2S_PLUGIN_FILE)) ?>">
360
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Pinterest') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/6_flat.png', B2S_PLUGIN_FILE)) ?>">
361
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Flickr') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/7_flat.png', B2S_PLUGIN_FILE)) ?>">
362
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Diigo') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/9_flat.png', B2S_PLUGIN_FILE)) ?>">
363
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Instagram') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/12_flat.png', B2S_PLUGIN_FILE)) ?>">
364
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Reddit') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/15_flat.png', B2S_PLUGIN_FILE)) ?>">
365
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('VKontakte') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/17_flat.png', B2S_PLUGIN_FILE)) ?>">
366
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('XING') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/19_flat.png', B2S_PLUGIN_FILE)) ?>">
367
+ <img class="pull-left hidden-xs b2s-network-info-img" alt="<?php esc_attr_e('Imgur') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/21_flat.png', B2S_PLUGIN_FILE)) ?>">
368
 
369
+ <img class="pull-right hidden-xs b2s-network-info-img-disabled" alt="<?php esc_attr_e('Google My Business') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/18_flat.png', B2S_PLUGIN_FILE)) ?>">
370
+ <img class="pull-right hidden-xs b2s-network-info-img-disabled" alt="<?php esc_attr_e('Medium') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/11_flat.png', B2S_PLUGIN_FILE)) ?>">
371
+ <img class="pull-right hidden-xs b2s-network-info-img-disabled" alt="<?php esc_attr_e('Tumblr') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/4_flat.png', B2S_PLUGIN_FILE)) ?>">
372
+ <img class="pull-right hidden-xs b2s-network-info-img-disabled" alt="<?php esc_attr_e('Torial') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/14_flat.png', B2S_PLUGIN_FILE)) ?>">
373
+ <img class="pull-right hidden-xs b2s-network-info-img-disabled" alt="<?php esc_attr_e('Bloglovin') ?>" src="<?php echo esc_url(plugins_url('/assets/images/portale/16_flat.png', B2S_PLUGIN_FILE)) ?>">
374
  </div>
375
+ <p class="b2s-bold"><?php echo sprintf(__('Under <a href="%s">Network Settings</a> you define which network selection is used. <a href="%s" target="_blank">To create a network grouping.</a>', 'blog2social'), 'admin.php?page=blog2social-network', esc_url(B2S_Tools::getSupportLink('network_grouping'))) ?></p>
376
  <h4><?php esc_html_e('Available networks', 'blog2social') ?></h4>
377
  <p class="b2s-bold"><?php esc_attr_e('Facebook (Profile & Seiten)') ?></p>
378
  <p class="b2s-bold"><?php esc_attr_e('Twitter (1 Profil)') ?></p>
views/b2s/settings.php CHANGED
@@ -175,7 +175,7 @@ if($optionUserTimeFormat == false) {
175
  echo 'disabled="true"';
176
  } ?>><?php esc_html_e('save', 'blog2social') ?></button>
177
  <input type="hidden" name="is_admin" value="<?php echo ((B2S_PLUGIN_ADMIN) ? 1 : 0) ?>">
178
- <input type="hidden" name="version" value="<?php echo B2S_PLUGIN_USER_VERSION ?>">
179
  <input type="hidden" name="action" value="b2s_save_social_meta_tags">
180
  </form>
181
  </div>
@@ -183,36 +183,36 @@ if($optionUserTimeFormat == false) {
183
  <p><strong><?php esc_html_e("Connect Blog2Social with 16 different social media networks you like to share your WordPress blog posts and pages as well as imported posts and social media posts on. The following networks are available:", "blog2social") ?></strong></p>
184
  <br>
185
  <ul class="list-group">
186
- <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Facebook" src="<?php echo plugins_url('/assets/images/portale/1_flat.png', B2S_PLUGIN_FILE) ?>"> Facebook</li></a>
187
- <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Twitter" src="<?php echo plugins_url('/assets/images/portale/2_flat.png', B2S_PLUGIN_FILE) ?>"> Twitter</li></a>
188
- <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Instagram" src="<?php echo plugins_url('/assets/images/portale/12_flat.png', B2S_PLUGIN_FILE) ?>"> Instagram</li></a>
189
- <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Google My Business" src="<?php echo plugins_url('/assets/images/portale/18_flat.png', B2S_PLUGIN_FILE) ?>"> Google My Business</li></a>
190
- <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="LinkedIn" src="<?php echo plugins_url('/assets/images/portale/3_flat.png', B2S_PLUGIN_FILE) ?>"> LinkedIn</li></a>
191
- <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="XING" src="<?php echo plugins_url('/assets/images/portale/19_flat.png', B2S_PLUGIN_FILE) ?>"> XING</li></a>
192
- <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Pinterest" src="<?php echo plugins_url('/assets/images/portale/6_flat.png', B2S_PLUGIN_FILE) ?>"> Pinterest</li></a>
193
- <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Reddit" src="<?php echo plugins_url('/assets/images/portale/15_flat.png', B2S_PLUGIN_FILE) ?>"> Reddit</li></a>
194
- <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Torial" src="<?php echo plugins_url('/assets/images/portale/14_flat.png', B2S_PLUGIN_FILE) ?>"> Torial</li></a>
195
- <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Medium" src="<?php echo plugins_url('/assets/images/portale/11_flat.png', B2S_PLUGIN_FILE) ?>"> Medium</li></a>
196
- <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Tumblr" src="<?php echo plugins_url('/assets/images/portale/4_flat.png', B2S_PLUGIN_FILE) ?>"> Tumblr</li></a>
197
- <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Flickr" src="<?php echo plugins_url('/assets/images/portale/7_flat.png', B2S_PLUGIN_FILE) ?>"> Flickr</li></a>
198
- <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Diigo" src="<?php echo plugins_url('/assets/images/portale/9_flat.png', B2S_PLUGIN_FILE) ?>"> Diigo</li></a>
199
- <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Bloglovin" src="<?php echo plugins_url('/assets/images/portale/16_flat.png', B2S_PLUGIN_FILE) ?>"> Bloglovin</li></a>
200
- <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="VK" src="<?php echo plugins_url('/assets/images/portale/17_flat.png', B2S_PLUGIN_FILE) ?>"> VK</li></a>
201
- <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Telegram" src="<?php echo plugins_url('/assets/images/portale/24_flat.png', B2S_PLUGIN_FILE) ?>"> Telegram</li></a>
202
- <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Blogger" src="<?php echo plugins_url('/assets/images/portale/25_flat.png', B2S_PLUGIN_FILE) ?>"> Blogger</li></a>
203
- <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Ravelry" src="<?php echo plugins_url('/assets/images/portale/26_flat.png', B2S_PLUGIN_FILE) ?>"> Ravelry</li></a>
204
- <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Instapaper" src="<?php echo plugins_url('/assets/images/portale/27_flat.png', B2S_PLUGIN_FILE) ?>"> Instapaper</li></a>
205
  </ul>
206
- <p><?php echo sprintf(__('You will find more information on how to connect your social media networks in the <a href="%s" target="_blank">connecting social media network guide</a>.', 'blog2social'), B2S_Tools::getSupportLink('faq_network')); ?></p>
207
  <br>
208
  <a href="admin.php?page=blog2social-network" class="btn btn-sm btn-primary"><i class="glyphicon glyphicon-user"></i> <?php esc_html_e('Connect your social media networks', 'blog2social') ?></a>
209
  </div>
210
  <div class="tab-pane" id="b2s-times">
211
  <p><?php esc_html_e('Use the pre-defined best time settings or define your own best time settings for sharing your posts . Posting at the right time can be essential to make sure your content is most likely be seen.', 'blog2social') ?></p>
212
  <br>
213
- <p><?php echo sprintf(__('You will find more information about the pre-defined best time settings by Blog2Social in this <a href="%s" target="_blank">best time guide</a>.', 'blog2social'), B2S_Tools::getSupportLink('besttimes_blogpost')); ?></p>
214
  <br>
215
- <p><?php echo sprintf(__('An instruction on how to define your own best times is explained in the guide "<a href="%s" target="_blank">How do I set my own time setting to post on social media?</a>".', 'blog2social'), B2S_Tools::getSupportLink('besttimes_faq')); ?></p>
216
  <br>
217
  <a href="admin.php?page=blog2social-network" class="btn btn-sm btn-primary"><i class="glyphicon glyphicon-time"></i> <?php esc_html_e('Check, edit or define your social media time settings', 'blog2social') ?></a>
218
  </div>
@@ -227,13 +227,13 @@ if($optionUserTimeFormat == false) {
227
  <li class="list-group-item"><?php esc_html_e('Author: The author of the post.', 'blog2social') ?></li>
228
  <li class="list-group-item"><?php esc_html_e('Price: The price of your product, if you have installed WooCommerce on your website/ blog.', 'blog2social') ?></li>
229
  </ul>
230
- <p><?php echo sprintf(__('You will find more information on how to use post templates for your social media posts in this <a href="%s" target="_blank">post template guide</a>.', 'blog2social'), B2S_Tools::getSupportLink('template_faq')); ?></p>
231
  <br>
232
  <a href="admin.php?page=blog2social-network" class="btn btn-sm btn-primary"><i class="glyphicon glyphicon-pencil"></i> <?php esc_html_e('Define your post templates for each social media network', 'blog2social') ?></a>
233
  </div>
234
  </div>
235
  </div>
236
- <input type="hidden" id="b2s_user_version" value="<?php echo B2S_PLUGIN_USER_VERSION; ?>" />
237
  <?php
238
  $noLegend = 1;
239
  require_once (B2S_PLUGIN_DIR . 'views/b2s/html/footer.php');
@@ -263,7 +263,7 @@ require_once (B2S_PLUGIN_DIR . 'views/b2s/html/footer.php');
263
  <h4 class="modal-title"><?php esc_html_e('Allow shortcodes in my social media posts (e.g. Page Builder)', 'blog2social') ?></h4>
264
  </div>
265
  <div class="modal-body">
266
- <?php echo sprintf(__('Some WordPress plugins use short codes, e.g. Page Builder plugins. When a shortcode is inserted in a WordPress post or WordPress page, WordPress calls the function that is included in the shortcode and performs the corresponding actions as soon as you publish your post on your Wordpress website. If you like Blog2Social to consider shortcodes when posting to social media and automatically insert the defined content in your social media post, activate this feature. You will find more information about the function of shortcodes and which plugins are supported by Blog2Social in the following <a href="%s" target="_blank">shortcode guide</a>.', 'blog2social'), B2S_Tools::getSupportLink('allow_shortcodes')); ?>
267
  </div>
268
  </div>
269
  </div>
175
  echo 'disabled="true"';
176
  } ?>><?php esc_html_e('save', 'blog2social') ?></button>
177
  <input type="hidden" name="is_admin" value="<?php echo ((B2S_PLUGIN_ADMIN) ? 1 : 0) ?>">
178
+ <input type="hidden" name="version" value="<?php echo esc_attr(B2S_PLUGIN_USER_VERSION) ?>">
179
  <input type="hidden" name="action" value="b2s_save_social_meta_tags">
180
  </form>
181
  </div>
183
  <p><strong><?php esc_html_e("Connect Blog2Social with 16 different social media networks you like to share your WordPress blog posts and pages as well as imported posts and social media posts on. The following networks are available:", "blog2social") ?></strong></p>
184
  <br>
185
  <ul class="list-group">
186
+ <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Facebook" src="<?php echo esc_url(plugins_url('/assets/images/portale/1_flat.png', B2S_PLUGIN_FILE)) ?>"> Facebook</li></a>
187
+ <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Twitter" src="<?php echo esc_url(plugins_url('/assets/images/portale/2_flat.png', B2S_PLUGIN_FILE)) ?>"> Twitter</li></a>
188
+ <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Instagram" src="<?php echo esc_url(plugins_url('/assets/images/portale/12_flat.png', B2S_PLUGIN_FILE)) ?>"> Instagram</li></a>
189
+ <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Google My Business" src="<?php echo esc_url(plugins_url('/assets/images/portale/18_flat.png', B2S_PLUGIN_FILE)) ?>"> Google My Business</li></a>
190
+ <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="LinkedIn" src="<?php echo esc_url(plugins_url('/assets/images/portale/3_flat.png', B2S_PLUGIN_FILE)) ?>"> LinkedIn</li></a>
191
+ <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="XING" src="<?php echo esc_url(plugins_url('/assets/images/portale/19_flat.png', B2S_PLUGIN_FILE)) ?>"> XING</li></a>
192
+ <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Pinterest" src="<?php echo esc_url(plugins_url('/assets/images/portale/6_flat.png', B2S_PLUGIN_FILE)) ?>"> Pinterest</li></a>
193
+ <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Reddit" src="<?php echo esc_url(plugins_url('/assets/images/portale/15_flat.png', B2S_PLUGIN_FILE)) ?>"> Reddit</li></a>
194
+ <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Torial" src="<?php echo esc_url(plugins_url('/assets/images/portale/14_flat.png', B2S_PLUGIN_FILE)) ?>"> Torial</li></a>
195
+ <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Medium" src="<?php echo esc_url(plugins_url('/assets/images/portale/11_flat.png', B2S_PLUGIN_FILE)) ?>"> Medium</li></a>
196
+ <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Tumblr" src="<?php echo esc_url(plugins_url('/assets/images/portale/4_flat.png', B2S_PLUGIN_FILE)) ?>"> Tumblr</li></a>
197
+ <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Flickr" src="<?php echo esc_url(plugins_url('/assets/images/portale/7_flat.png', B2S_PLUGIN_FILE)) ?>"> Flickr</li></a>
198
+ <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Diigo" src="<?php echo esc_url(plugins_url('/assets/images/portale/9_flat.png', B2S_PLUGIN_FILE)) ?>"> Diigo</li></a>
199
+ <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Bloglovin" src="<?php echo esc_url(plugins_url('/assets/images/portale/16_flat.png', B2S_PLUGIN_FILE)) ?>"> Bloglovin</li></a>
200
+ <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="VK" src="<?php echo esc_url(plugins_url('/assets/images/portale/17_flat.png', B2S_PLUGIN_FILE)) ?>"> VK</li></a>
201
+ <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Telegram" src="<?php echo esc_url(plugins_url('/assets/images/portale/24_flat.png', B2S_PLUGIN_FILE)) ?>"> Telegram</li></a>
202
+ <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Blogger" src="<?php echo esc_url(plugins_url('/assets/images/portale/25_flat.png', B2S_PLUGIN_FILE)) ?>"> Blogger</li></a>
203
+ <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Ravelry" src="<?php echo esc_url(plugins_url('/assets/images/portale/26_flat.png', B2S_PLUGIN_FILE)) ?>"> Ravelry</li></a>
204
+ <a href="admin.php?page=blog2social-network"><li class="list-group-item"><img class="b2s-network-image" alt="Instapaper" src="<?php echo esc_url(plugins_url('/assets/images/portale/27_flat.png', B2S_PLUGIN_FILE)) ?>"> Instapaper</li></a>
205
  </ul>
206
+ <p><?php echo sprintf(__('You will find more information on how to connect your social media networks in the <a href="%s" target="_blank">connecting social media network guide</a>.', 'blog2social'), esc_url(B2S_Tools::getSupportLink('faq_network'))); ?></p>
207
  <br>
208
  <a href="admin.php?page=blog2social-network" class="btn btn-sm btn-primary"><i class="glyphicon glyphicon-user"></i> <?php esc_html_e('Connect your social media networks', 'blog2social') ?></a>
209
  </div>
210
  <div class="tab-pane" id="b2s-times">
211
  <p><?php esc_html_e('Use the pre-defined best time settings or define your own best time settings for sharing your posts . Posting at the right time can be essential to make sure your content is most likely be seen.', 'blog2social') ?></p>
212
  <br>
213
+ <p><?php echo sprintf(__('You will find more information about the pre-defined best time settings by Blog2Social in this <a href="%s" target="_blank">best time guide</a>.', 'blog2social'), esc_url(B2S_Tools::getSupportLink('besttimes_blogpost'))); ?></p>
214
  <br>
215
+ <p><?php echo sprintf(__('An instruction on how to define your own best times is explained in the guide "<a href="%s" target="_blank">How do I set my own time setting to post on social media?</a>".', 'blog2social'), esc_url(B2S_Tools::getSupportLink('besttimes_faq'))); ?></p>
216
  <br>
217
  <a href="admin.php?page=blog2social-network" class="btn btn-sm btn-primary"><i class="glyphicon glyphicon-time"></i> <?php esc_html_e('Check, edit or define your social media time settings', 'blog2social') ?></a>
218
  </div>
227
  <li class="list-group-item"><?php esc_html_e('Author: The author of the post.', 'blog2social') ?></li>
228
  <li class="list-group-item"><?php esc_html_e('Price: The price of your product, if you have installed WooCommerce on your website/ blog.', 'blog2social') ?></li>
229
  </ul>
230
+ <p><?php echo sprintf(__('You will find more information on how to use post templates for your social media posts in this <a href="%s" target="_blank">post template guide</a>.', 'blog2social'), esc_url(B2S_Tools::getSupportLink('template_faq'))); ?></p>
231
  <br>
232
  <a href="admin.php?page=blog2social-network" class="btn btn-sm btn-primary"><i class="glyphicon glyphicon-pencil"></i> <?php esc_html_e('Define your post templates for each social media network', 'blog2social') ?></a>
233
  </div>
234
  </div>
235
  </div>
236
+ <input type="hidden" id="b2s_user_version" value="<?php echo esc_attr(B2S_PLUGIN_USER_VERSION); ?>" />
237
  <?php
238
  $noLegend = 1;
239
  require_once (B2S_PLUGIN_DIR . 'views/b2s/html/footer.php');
263
  <h4 class="modal-title"><?php esc_html_e('Allow shortcodes in my social media posts (e.g. Page Builder)', 'blog2social') ?></h4>
264
  </div>
265
  <div class="modal-body">
266
+ <?php echo sprintf(__('Some WordPress plugins use short codes, e.g. Page Builder plugins. When a shortcode is inserted in a WordPress post or WordPress page, WordPress calls the function that is included in the shortcode and performs the corresponding actions as soon as you publish your post on your Wordpress website. If you like Blog2Social to consider shortcodes when posting to social media and automatically insert the defined content in your social media post, activate this feature. You will find more information about the function of shortcodes and which plugins are supported by Blog2Social in the following <a href="%s" target="_blank">shortcode guide</a>.', 'blog2social'), esc_url(B2S_Tools::getSupportLink('allow_shortcodes'))); ?>
267
  </div>
268
  </div>
269
  </div>
views/b2s/ship.php CHANGED
@@ -233,7 +233,7 @@ $draftIncompleteModal = false;
233
 
234
  </li>
235
  </ul>
236
- <input type="hidden" class="b2s-network-navbar-order" value='<?php echo json_encode($orderArray) ?>'>
237
  </div>
238
 
239
  <div id="b2s-content-wrapper" class="b2s-content-wrapper-content-default">
@@ -247,7 +247,7 @@ $draftIncompleteModal = false;
247
  <div class="b2s-info-blog-url-area">
248
  <div class="b2s-post-area col-md-9 del-padding-left">
249
  <div class="panel panel-group text-center">
250
- <div class="panel-body" style="margin:15px;height:500px;background:url('<?php echo plugins_url('/assets/images/no-network-selected.png', B2S_PLUGIN_FILE); ?>') no-repeat;background-position:center;">
251
  <div class="panel panel-no-shadow">
252
  <div class="panel-body panel-no-padding">
253
  <h4><br><p><?php esc_html_e('Notice: Please make sure, that your website address is reachable. The Social Networks do not allow postings from local installations.', 'blog2social') ?></p></h4>
@@ -266,7 +266,7 @@ $draftIncompleteModal = false;
266
  <div class="b2s-post-area col-md-9 del-padding-left">
267
  <div class="b2s-empty-area" style="display:none;">
268
  <div class="panel panel-group text-center">
269
- <div class="panel-body" style="margin:15px;height:500px;background:url('<?php echo plugins_url('/assets/images/no-network-selected.png', B2S_PLUGIN_FILE); ?>') no-repeat;background-position:center;">
270
  <div class="panel panel-no-shadow">
271
  <div class="panel-body panel-no-padding">
272
  <h3><?php esc_html_e('First, connect or select network before posting', 'blog2social') ?></h3>
@@ -291,19 +291,19 @@ $draftIncompleteModal = false;
291
  </div>
292
  </div>
293
  <input type="hidden" id="publish_date" name="publish_date" value="">
294
- <input type="hidden" id="user_version" name="user_version" value="<?php echo B2S_PLUGIN_USER_VERSION; ?>">
295
  <input type="hidden" id="action" name="action" value="b2s_save_ship_data">
296
  <input type='hidden' id='post_id' name="post_id" value='<?php echo (int) esc_attr(sanitize_text_field($_GET['postId'])); ?>'>
297
  <input type='hidden' id='user_timezone' name="user_timezone" value="<?php echo esc_attr($userTimeZoneOffset); ?>">
298
  <input type='hidden' id='user_timezone_text' name="user_timezone_text" value="<?php echo esc_html_e('Time zone', 'blog2social') . ': (UTC ' . B2S_Util::humanReadableOffset($userTimeZoneOffset) . ') ' . $userTimeZone ?>">
299
- <input type='hidden' id="default_titel" name="default_titel" value="<?php echo addslashes(B2S_Util::getTitleByLanguage($postData->post_title, $userLang)); ?>">
300
  <input type="hidden" id="b2sChangeOgMeta" name="change_og_meta" value="0">
301
- <input type="hidden" id="b2sRelayAccountData" name="relay_account_data" value="<?php echo base64_encode($relayAccountDataHtml); ?>">
302
- <input type="hidden" id="b2sRelayCount" name="relay_count" value="<?php echo count($relayAccountData); ?>">
303
  <input type="hidden" id="b2sChangeCardMeta" name="change_card_meta" value="0">
304
- <input type="hidden" id="b2sNotAllowGif" value="<?php echo implode(";", json_decode(B2S_PLUGIN_NETWORK_NOT_ALLOW_GIF, true)); ?>">
305
- <input type="hidden" id="b2sAnimateGif" value='<?php echo B2S_PLUGIN_NETWORK_ANIMATE_GIF; ?>'>
306
- <input type="hidden" id="b2sEmojiTranslation" value='<?php echo json_encode(B2S_Tools::getEmojiTranslationList()); ?>'>
307
 
308
  <div class="b2s-reporting-btn-area col-md-9 del-padding-left" style="display: none;">
309
  <div class="panel panel-group">
@@ -783,8 +783,8 @@ $draftIncompleteModal = false;
783
  <div class="modal-body b2s-auth-network-6-login-area">
784
  <div class="alert alert-info"><?php esc_html_e('Please make sure to use your original Pinterest login data (email and password). Social Login via Facebook or Google login data will not work here. Please also check if the two-factor authentication in Pinterest is deactivated to ensure a stable connection to Blog2Social.', 'blog2social'); ?></div>
785
  <div class="alert alert-danger b2s-auth-network-6-info" data-info="default" style="display:none;"><?php esc_html_e('An error occurred! Please try again.', 'blog2social'); ?></div>
786
- <div class="alert alert-danger b2s-auth-network-6-info" data-info="version" style="display:none;"><?php sprintf(__('You want to connect an additional account? <a target="_blank" href="%s">Upgrade to Blog2Social Premium</a>', 'blog2social'), B2S_Tools::getSupportLink('affiliate')); ?></div>
787
- <div class="alert alert-danger b2s-auth-network-6-info" data-info="limit" style="display:none;"><?php echo sprintf(__('You want to connect an additional account? <a target="_blank" href="%s">Upgrade to Blog2Social Premium</a>', 'blog2social'), B2S_Tools::getSupportLink('affiliate')); ?></div>
788
  <div class="alert alert-danger b2s-auth-network-6-info" data-info="invalid" style="display:none;"><?php esc_html_e('Invalid Data! Please try again.', 'blog2social'); ?></div>
789
  <div class="alert alert-danger b2s-auth-network-6-info" data-info="board" style="display:none;"><?php echo esc_html_e('You have not yet created any pinboards in your Pinterest account. Please set up at least one pinboard to pin on your Pinterest account!', 'blog2social'); ?></div>
790
  <div class="alert alert-danger b2s-auth-network-6-info" data-info="login" style="display:none;"><?php echo sprintf(__('Login failed. Please check your login data for typos and please check your Pinterest settings, if the two-factor authentication is turned off for this account: <a target="_blank" href="%s">%s</a>', 'blog2social'), esc_url('https://www.pinterest.com/settings/security/'), esc_url('https://www.pinterest.com/settings/security/')); ?></div>
@@ -982,7 +982,7 @@ $draftIncompleteModal = false;
982
  <input type="hidden" id="selProfile" value="<?php echo esc_attr($selProfile); ?>">
983
  <input type="hidden" id="b2sPostType" value="<?php echo (isset($_GET['b2sPostType']) && sanitize_text_field($_GET['b2sPostType']) == 'ex') ? 'ex' : ''; ?>">
984
  <input type="hidden" id="b2sDefault_url" name="default_url" value="<?php echo esc_attr((isset($_GET['b2sPostType']) && sanitize_text_field($_GET['b2sPostType']) == 'ex') ? (($exPostFormat == 0) ? $postData->guid : '') : (get_permalink($postData->ID) !== false ? get_permalink($postData->ID) : $postData->guid)); ?>">
985
- <input type="hidden" id="b2sPortalImagePath" value="<?php echo plugins_url('/assets/images/portale/', B2S_PLUGIN_FILE); ?>">
986
  <input type="hidden" id="b2sTosXingGroupCrosspostingLimit" value="<?php echo esc_attr($tosCrossPosting[19][2]); ?>">
987
  <input type="hidden" id="b2sServerUrl" value="<?php echo esc_url(B2S_PLUGIN_SERVER_URL); ?>">
988
  <input type="hidden" id="b2sTwitterOrginalPost" value="">
@@ -993,7 +993,7 @@ $draftIncompleteModal = false;
993
  <input type="hidden" id="b2sJsTextConnectionFailLinkText" value="<?php esc_html_e('Give me more information', 'blog2social') ?>">
994
  <input type="hidden" id="b2sSelectedNetworkAuthId" value="<?php echo (isset($_GET['network_auth_id']) && (int) $_GET['network_auth_id'] > 0) ? (int) esc_attr(sanitize_text_field($_GET['network_auth_id'])) : ''; ?>">
995
  <input type="hidden" id="b2sMultiSelectedNetworkAuthId" value="<?php echo (isset($_GET['multi_network_auth_id']) && !empty($_GET['multi_network_auth_id'])) ? esc_attr(sanitize_text_field($_GET['multi_network_auth_id'])) : ''; ?>">
996
- <input type="hidden" id="b2sDefaultNoImage" value="<?php echo plugins_url('/assets/images/no-image.png', B2S_PLUGIN_FILE); ?>">
997
  <input type="hidden" id="isMetaChecked" value="<?php echo esc_attr($postData->ID); ?>">
998
  <input type="hidden" id="isOgMetaChecked" value="<?php echo (isset($b2sGeneralOptions['og_active']) ? (int) $b2sGeneralOptions['og_active'] : 0); ?>">
999
  <input type="hidden" id="ogMetaNetworks" value="<?php echo esc_attr(implode(';', json_decode(B2S_PLUGIN_NETWORK_META_TAGS, true)['og'])); ?>">
233
 
234
  </li>
235
  </ul>
236
+ <input type="hidden" class="b2s-network-navbar-order" value='<?php echo esc_attr(json_encode($orderArray)) ?>'>
237
  </div>
238
 
239
  <div id="b2s-content-wrapper" class="b2s-content-wrapper-content-default">
247
  <div class="b2s-info-blog-url-area">
248
  <div class="b2s-post-area col-md-9 del-padding-left">
249
  <div class="panel panel-group text-center">
250
+ <div class="panel-body" style="margin:15px;height:500px;background:url('<?php echo esc_url(plugins_url('/assets/images/no-network-selected.png', B2S_PLUGIN_FILE)); ?>') no-repeat;background-position:center;">
251
  <div class="panel panel-no-shadow">
252
  <div class="panel-body panel-no-padding">
253
  <h4><br><p><?php esc_html_e('Notice: Please make sure, that your website address is reachable. The Social Networks do not allow postings from local installations.', 'blog2social') ?></p></h4>
266
  <div class="b2s-post-area col-md-9 del-padding-left">
267
  <div class="b2s-empty-area" style="display:none;">
268
  <div class="panel panel-group text-center">
269
+ <div class="panel-body" style="margin:15px;height:500px;background:url('<?php echo esc_url(plugins_url('/assets/images/no-network-selected.png', B2S_PLUGIN_FILE)); ?>') no-repeat;background-position:center;">
270
  <div class="panel panel-no-shadow">
271
  <div class="panel-body panel-no-padding">
272
  <h3><?php esc_html_e('First, connect or select network before posting', 'blog2social') ?></h3>
291
  </div>
292
  </div>
293
  <input type="hidden" id="publish_date" name="publish_date" value="">
294
+ <input type="hidden" id="user_version" name="user_version" value="<?php echo esc_attr(B2S_PLUGIN_USER_VERSION); ?>">
295
  <input type="hidden" id="action" name="action" value="b2s_save_ship_data">
296
  <input type='hidden' id='post_id' name="post_id" value='<?php echo (int) esc_attr(sanitize_text_field($_GET['postId'])); ?>'>
297
  <input type='hidden' id='user_timezone' name="user_timezone" value="<?php echo esc_attr($userTimeZoneOffset); ?>">
298
  <input type='hidden' id='user_timezone_text' name="user_timezone_text" value="<?php echo esc_html_e('Time zone', 'blog2social') . ': (UTC ' . B2S_Util::humanReadableOffset($userTimeZoneOffset) . ') ' . $userTimeZone ?>">
299
+ <input type='hidden' id="default_titel" name="default_titel" value="<?php echo esc_attr(addslashes(B2S_Util::getTitleByLanguage($postData->post_title, $userLang))); ?>">
300
  <input type="hidden" id="b2sChangeOgMeta" name="change_og_meta" value="0">
301
+ <input type="hidden" id="b2sRelayAccountData" name="relay_account_data" value="<?php echo esc_attr(base64_encode($relayAccountDataHtml)); ?>">
302
+ <input type="hidden" id="b2sRelayCount" name="relay_count" value="<?php echo (int) count($relayAccountData); ?>">
303
  <input type="hidden" id="b2sChangeCardMeta" name="change_card_meta" value="0">
304
+ <input type="hidden" id="b2sNotAllowGif" value="<?php echo esc_attr(implode(";", json_decode(B2S_PLUGIN_NETWORK_NOT_ALLOW_GIF, true))); ?>">
305
+ <input type="hidden" id="b2sAnimateGif" value='<?php echo esc_attr(B2S_PLUGIN_NETWORK_ANIMATE_GIF); ?>'>
306
+ <input type="hidden" id="b2sEmojiTranslation" value='<?php echo esc_attr(json_encode(B2S_Tools::getEmojiTranslationList())); ?>'>
307
 
308
  <div class="b2s-reporting-btn-area col-md-9 del-padding-left" style="display: none;">
309
  <div class="panel panel-group">
783
  <div class="modal-body b2s-auth-network-6-login-area">
784
  <div class="alert alert-info"><?php esc_html_e('Please make sure to use your original Pinterest login data (email and password). Social Login via Facebook or Google login data will not work here. Please also check if the two-factor authentication in Pinterest is deactivated to ensure a stable connection to Blog2Social.', 'blog2social'); ?></div>
785
  <div class="alert alert-danger b2s-auth-network-6-info" data-info="default" style="display:none;"><?php esc_html_e('An error occurred! Please try again.', 'blog2social'); ?></div>
786
+ <div class="alert alert-danger b2s-auth-network-6-info" data-info="version" style="display:none;"><?php sprintf(__('You want to connect an additional account? <a target="_blank" href="%s">Upgrade to Blog2Social Premium</a>', 'blog2social'), esc_url(B2S_Tools::getSupportLink('affiliate'))); ?></div>
787
+ <div class="alert alert-danger b2s-auth-network-6-info" data-info="limit" style="display:none;"><?php echo sprintf(__('You want to connect an additional account? <a target="_blank" href="%s">Upgrade to Blog2Social Premium</a>', 'blog2social'), esc_url(B2S_Tools::getSupportLink('affiliate'))); ?></div>
788
  <div class="alert alert-danger b2s-auth-network-6-info" data-info="invalid" style="display:none;"><?php esc_html_e('Invalid Data! Please try again.', 'blog2social'); ?></div>
789
  <div class="alert alert-danger b2s-auth-network-6-info" data-info="board" style="display:none;"><?php echo esc_html_e('You have not yet created any pinboards in your Pinterest account. Please set up at least one pinboard to pin on your Pinterest account!', 'blog2social'); ?></div>
790
  <div class="alert alert-danger b2s-auth-network-6-info" data-info="login" style="display:none;"><?php echo sprintf(__('Login failed. Please check your login data for typos and please check your Pinterest settings, if the two-factor authentication is turned off for this account: <a target="_blank" href="%s">%s</a>', 'blog2social'), esc_url('https://www.pinterest.com/settings/security/'), esc_url('https://www.pinterest.com/settings/security/')); ?></div>
982
  <input type="hidden" id="selProfile" value="<?php echo esc_attr($selProfile); ?>">
983
  <input type="hidden" id="b2sPostType" value="<?php echo (isset($_GET['b2sPostType']) && sanitize_text_field($_GET['b2sPostType']) == 'ex') ? 'ex' : ''; ?>">
984
  <input type="hidden" id="b2sDefault_url" name="default_url" value="<?php echo esc_attr((isset($_GET['b2sPostType']) && sanitize_text_field($_GET['b2sPostType']) == 'ex') ? (($exPostFormat == 0) ? $postData->guid : '') : (get_permalink($postData->ID) !== false ? get_permalink($postData->ID) : $postData->guid)); ?>">
985
+ <input type="hidden" id="b2sPortalImagePath" value="<?php echo esc_url(plugins_url('/assets/images/portale/', B2S_PLUGIN_FILE)); ?>">
986
  <input type="hidden" id="b2sTosXingGroupCrosspostingLimit" value="<?php echo esc_attr($tosCrossPosting[19][2]); ?>">
987
  <input type="hidden" id="b2sServerUrl" value="<?php echo esc_url(B2S_PLUGIN_SERVER_URL); ?>">
988
  <input type="hidden" id="b2sTwitterOrginalPost" value="">
993
  <input type="hidden" id="b2sJsTextConnectionFailLinkText" value="<?php esc_html_e('Give me more information', 'blog2social') ?>">
994
  <input type="hidden" id="b2sSelectedNetworkAuthId" value="<?php echo (isset($_GET['network_auth_id']) && (int) $_GET['network_auth_id'] > 0) ? (int) esc_attr(sanitize_text_field($_GET['network_auth_id'])) : ''; ?>">
995
  <input type="hidden" id="b2sMultiSelectedNetworkAuthId" value="<?php echo (isset($_GET['multi_network_auth_id']) && !empty($_GET['multi_network_auth_id'])) ? esc_attr(sanitize_text_field($_GET['multi_network_auth_id'])) : ''; ?>">
996
+ <input type="hidden" id="b2sDefaultNoImage" value="<?php echo esc_url(plugins_url('/assets/images/no-image.png', B2S_PLUGIN_FILE)); ?>">
997
  <input type="hidden" id="isMetaChecked" value="<?php echo esc_attr($postData->ID); ?>">
998
  <input type="hidden" id="isOgMetaChecked" value="<?php echo (isset($b2sGeneralOptions['og_active']) ? (int) $b2sGeneralOptions['og_active'] : 0); ?>">
999
  <input type="hidden" id="ogMetaNetworks" value="<?php echo esc_attr(implode(';', json_decode(B2S_PLUGIN_NETWORK_META_TAGS, true)['og'])); ?>">
views/b2s/support.php CHANGED
@@ -62,8 +62,8 @@
62
  <div class="alert alert-danger b2s-community-error" data-error-type="invalid_data" style="display: none;"><?php esc_html_e('Unknown error has occurred. Please try again.', 'blog2social') ?></div>
63
  <div class="alert alert-danger b2s-community-error" data-error-type="invalid_password" style="display: none;"><?php esc_html_e('Enter at least 8 characters', 'blog2social') ?></div>
64
  <div class="alert alert-danger b2s-community-error" data-error-type="invalid_email" style="display: none;"><?php esc_html_e('Invalid email address', 'blog2social') ?></div>
65
- <div class="alert alert-danger b2s-community-error" data-error-type="exists_email" style="display: none;"><?php esc_html_e('Email address is taken.', 'blog2social') ?> <a target="_blank" href="<?php echo B2S_Tools::getSupportLink('community_lostpw') ?>"><?php esc_html_e('Forgot Password?', 'blog2social') ?></a></div>
66
- <div class="alert alert-danger b2s-community-error" data-error-type="exists_username" style="display: none;"><?php esc_html_e('Username is taken.', 'blog2social') ?> <a target="_blank" href="<?php echo B2S_Tools::getSupportLink('community_lostpw') ?>"><?php esc_html_e('Forgot Password?', 'blog2social') ?></a></div>
67
  <div class="input-group form-group">
68
  <span class="input-group-addon btn-light"><i class="glyphicon glyphicon-user"></i></span>
69
  <input type="text" id="b2s-community-username" name="fullname" placeholder="<?php esc_html_e('User name', 'blog2social') ?>" class="form-control">
@@ -132,7 +132,7 @@
132
  </div>
133
  </div>
134
  <div class="tab-pane" id="b2s-support-check-system">
135
- <p class="b2s-bold"><?php esc_html_e('The Troubleshooting tool helps you with conflicts that can be caused by the system environment of your blog. So you can always check your settings on Wordpress.', 'blog2social'); ?> <a href="<?php echo B2S_Tools::getSupportLink('troubleshooting_tool_support'); ?>" target="_blank"><?php esc_html_e('How to use the Troubleshooting tool', 'blog2social') ?></a></p>
136
  <div class="row b2s-loading-area width-100">
137
  <br>
138
  <div class="b2s-loader-impulse b2s-loader-impulse-md"></div>
@@ -168,17 +168,17 @@
168
  <div class="row">
169
  <div class="col-md-12">
170
  <h3><?php esc_html_e("Enter a URL to see how your link preview will look on social media.", "blog2social"); ?></h3>
171
- <p class="b2s-bold"><?php esc_html_e("Are you are experiencing incorrect images and/or titles being pulled by Facebook or other social media platforms? Social Debugger or code validator tools show you a preview of what your social media post will look like when it's published and help you to fix inconsistencies and errors.", "blog2social"); ?> <a href="<?php echo B2S_Tools::getSupportLink('debugger_support'); ?>" target="_blank"><?php esc_html_e('More', 'blog2social') ?></a></p>
172
  <div class="b2s-sharing-debugger-result-area">
173
  <div class="clearfix"></div>
174
  <br>
175
  <div>
176
- <img class="b2s-feature-img-with-24" src="<?php echo plugins_url('/assets/images/portale/1_flat.png', B2S_PLUGIN_FILE); ?>" alt="Facebook"> <span class="b2s-text-bold"><?php esc_html_e("Facebook Open Graph Meta Tags", "blog2social") ?>
177
  | <a class="btn-link" href="<?php echo esc_url(B2S_Tools::getSupportLink("open_graph_tags")); ?>" target="_blank"><?php esc_html_e("Learn how to edit and adjust Open Graph tags.", "blog2social"); ?></a>
178
  </span>
179
  </div>
180
  <div class="input-group col-md-7 b2s-padding-top-8">
181
- <input type="text" name="b2s-debug-url" class="input-sm form-control" id="b2s-debug-url" value="<?php echo get_site_url(); ?>" data-network-id="1" placeholder="<?php esc_html_e("For example your Wordpress Home Page", "blog2social"); ?>">
182
  <span class="input-group-btn">
183
  <button class="btn btn-primary btn-sm b2s-btn-sharing-debugger" data-network-id="1" b2s-url-query="https://developers.facebook.com/tools/debug/sharing/?q="><?php esc_html_e("Debug & Preview", "blog2social") ?></button>
184
  </span>
@@ -186,10 +186,10 @@
186
  <div class="clearfix"></div>
187
  <br>
188
  <div>
189
- <img class="b2s-feature-img-with-24" src="<?php echo plugins_url('/assets/images/portale/3_flat.png', B2S_PLUGIN_FILE); ?>" alt="Linkedin"> <span class="b2s-text-bold"><?php esc_html_e("LinkedIn Post Inspector", "blog2social") ?></span>
190
  </div>
191
  <div class="input-group col-md-7 b2s-padding-top-8">
192
- <input type="text" name="b2s-debug-url" class="input-sm form-control" id="b2s-debug-url" value="<?php echo get_site_url(); ?>" data-network-id="3" placeholder="<?php esc_html_e("For example your Wordpress Home Page", "blog2social"); ?>">
193
  <span class="input-group-btn">
194
  <button class="btn btn-primary btn-sm b2s-btn-sharing-debugger" data-network-id="3" b2s-url-query="https://www.linkedin.com/post-inspector/inspect/"><?php esc_html_e("Inspect Post", "blog2social") ?></button>
195
  </span>
@@ -197,10 +197,10 @@
197
  <div class="clearfix"></div>
198
  <br>
199
  <div>
200
- <img class="b2s-feature-img-with-24" src="<?php echo plugins_url('/assets/images/portale/6_flat.png', B2S_PLUGIN_FILE); ?>" alt="Linkedin"> <span class="b2s-text-bold"><?php esc_html_e("Pinterest Rich Pins Validator", "blog2social") ?></span>
201
  </div>
202
  <div class="input-group col-md-7 b2s-padding-top-8">
203
- <input type="text" name="b2s-debug-url" class="input-sm form-control" id="b2s-debug-url" value="<?php echo get_site_url(); ?>" data-network-id="6" placeholder="<?php esc_html_e("For example your Wordpress Home Page", "blog2social"); ?>">
204
  <span class="input-group-btn">
205
  <button class="btn btn-primary btn-sm b2s-btn-sharing-debugger" data-network-id="6" b2s-url-query="https://developers.pinterest.com/tools/url-debugger/?link="><?php esc_html_e("validate", "blog2social") ?></button>
206
  </span>
@@ -208,7 +208,7 @@
208
  <div class="clearfix"></div>
209
  <br>
210
  <div>
211
- <img class="b2s-feature-img-with-24" src="<?php echo plugins_url('/assets/images/portale/2_flat.png', B2S_PLUGIN_FILE); ?>" alt="Twitter"> <span class="b2s-text-bold"><?php esc_html_e("Twitter Card Validator", "blog2social") ?>
212
  | <a class="btn-link" href="<?php echo esc_url(B2S_Tools::getSupportLink("twitter_cards")); ?>" target="_blank"><?php esc_html_e("Learn how to edit and adjust Twitter Card tags.", "blog2social"); ?></a>
213
  </span>
214
  </div>
62
  <div class="alert alert-danger b2s-community-error" data-error-type="invalid_data" style="display: none;"><?php esc_html_e('Unknown error has occurred. Please try again.', 'blog2social') ?></div>
63
  <div class="alert alert-danger b2s-community-error" data-error-type="invalid_password" style="display: none;"><?php esc_html_e('Enter at least 8 characters', 'blog2social') ?></div>
64
  <div class="alert alert-danger b2s-community-error" data-error-type="invalid_email" style="display: none;"><?php esc_html_e('Invalid email address', 'blog2social') ?></div>
65
+ <div class="alert alert-danger b2s-community-error" data-error-type="exists_email" style="display: none;"><?php esc_html_e('Email address is taken.', 'blog2social') ?> <a target="_blank" href="<?php echo esc_url(B2S_Tools::getSupportLink('community_lostpw')) ?>"><?php esc_html_e('Forgot Password?', 'blog2social') ?></a></div>
66
+ <div class="alert alert-danger b2s-community-error" data-error-type="exists_username" style="display: none;"><?php esc_html_e('Username is taken.', 'blog2social') ?> <a target="_blank" href="<?php echo esc_url(B2S_Tools::getSupportLink('community_lostpw')) ?>"><?php esc_html_e('Forgot Password?', 'blog2social') ?></a></div>
67
  <div class="input-group form-group">
68
  <span class="input-group-addon btn-light"><i class="glyphicon glyphicon-user"></i></span>
69
  <input type="text" id="b2s-community-username" name="fullname" placeholder="<?php esc_html_e('User name', 'blog2social') ?>" class="form-control">
132
  </div>
133
  </div>
134
  <div class="tab-pane" id="b2s-support-check-system">
135
+ <p class="b2s-bold"><?php esc_html_e('The Troubleshooting tool helps you with conflicts that can be caused by the system environment of your blog. So you can always check your settings on Wordpress.', 'blog2social'); ?> <a href="<?php echo esc_url(B2S_Tools::getSupportLink('troubleshooting_tool_support')); ?>" target="_blank"><?php esc_html_e('How to use the Troubleshooting tool', 'blog2social') ?></a></p>
136
  <div class="row b2s-loading-area width-100">
137
  <br>
138
  <div class="b2s-loader-impulse b2s-loader-impulse-md"></div>
168
  <div class="row">
169
  <div class="col-md-12">
170
  <h3><?php esc_html_e("Enter a URL to see how your link preview will look on social media.", "blog2social"); ?></h3>
171
+ <p class="b2s-bold"><?php esc_html_e("Are you are experiencing incorrect images and/or titles being pulled by Facebook or other social media platforms? Social Debugger or code validator tools show you a preview of what your social media post will look like when it's published and help you to fix inconsistencies and errors.", "blog2social"); ?> <a href="<?php echo esc_url(B2S_Tools::getSupportLink('debugger_support')); ?>" target="_blank"><?php esc_html_e('More', 'blog2social') ?></a></p>
172
  <div class="b2s-sharing-debugger-result-area">
173
  <div class="clearfix"></div>
174
  <br>
175
  <div>
176
+ <img class="b2s-feature-img-with-24" src="<?php echo esc_url(plugins_url('/assets/images/portale/1_flat.png', B2S_PLUGIN_FILE)); ?>" alt="Facebook"> <span class="b2s-text-bold"><?php esc_html_e("Facebook Open Graph Meta Tags", "blog2social") ?>
177
  | <a class="btn-link" href="<?php echo esc_url(B2S_Tools::getSupportLink("open_graph_tags")); ?>" target="_blank"><?php esc_html_e("Learn how to edit and adjust Open Graph tags.", "blog2social"); ?></a>
178
  </span>
179
  </div>
180
  <div class="input-group col-md-7 b2s-padding-top-8">
181
+ <input type="text" name="b2s-debug-url" class="input-sm form-control" id="b2s-debug-url" value="<?php echo esc_attr(get_site_url()); ?>" data-network-id="1" placeholder="<?php esc_html_e("For example your Wordpress Home Page", "blog2social"); ?>">
182
  <span class="input-group-btn">
183
  <button class="btn btn-primary btn-sm b2s-btn-sharing-debugger" data-network-id="1" b2s-url-query="https://developers.facebook.com/tools/debug/sharing/?q="><?php esc_html_e("Debug & Preview", "blog2social") ?></button>
184
  </span>
186
  <div class="clearfix"></div>
187
  <br>
188
  <div>
189
+ <img class="b2s-feature-img-with-24" src="<?php echo esc_url(plugins_url('/assets/images/portale/3_flat.png', B2S_PLUGIN_FILE)); ?>" alt="Linkedin"> <span class="b2s-text-bold"><?php esc_html_e("LinkedIn Post Inspector", "blog2social") ?></span>
190
  </div>
191
  <div class="input-group col-md-7 b2s-padding-top-8">
192
+ <input type="text" name="b2s-debug-url" class="input-sm form-control" id="b2s-debug-url" value="<?php echo esc_attr(get_site_url()); ?>" data-network-id="3" placeholder="<?php esc_html_e("For example your Wordpress Home Page", "blog2social"); ?>">
193
  <span class="input-group-btn">
194
  <button class="btn btn-primary btn-sm b2s-btn-sharing-debugger" data-network-id="3" b2s-url-query="https://www.linkedin.com/post-inspector/inspect/"><?php esc_html_e("Inspect Post", "blog2social") ?></button>
195
  </span>
197
  <div class="clearfix"></div>
198
  <br>
199
  <div>
200
+ <img class="b2s-feature-img-with-24" src="<?php echo esc_url(plugins_url('/assets/images/portale/6_flat.png', B2S_PLUGIN_FILE)); ?>" alt="Linkedin"> <span class="b2s-text-bold"><?php esc_html_e("Pinterest Rich Pins Validator", "blog2social") ?></span>
201
  </div>
202
  <div class="input-group col-md-7 b2s-padding-top-8">
203
+ <input type="text" name="b2s-debug-url" class="input-sm form-control" id="b2s-debug-url" value="<?php echo esc_attr(get_site_url()); ?>" data-network-id="6" placeholder="<?php esc_html_e("For example your Wordpress Home Page", "blog2social"); ?>">
204
  <span class="input-group-btn">
205
  <button class="btn btn-primary btn-sm b2s-btn-sharing-debugger" data-network-id="6" b2s-url-query="https://developers.pinterest.com/tools/url-debugger/?link="><?php esc_html_e("validate", "blog2social") ?></button>
206
  </span>
208
  <div class="clearfix"></div>
209
  <br>
210
  <div>
211
+ <img class="b2s-feature-img-with-24" src="<?php echo esc_url(plugins_url('/assets/images/portale/2_flat.png', B2S_PLUGIN_FILE)); ?>" alt="Twitter"> <span class="b2s-text-bold"><?php esc_html_e("Twitter Card Validator", "blog2social") ?>
212
  | <a class="btn-link" href="<?php echo esc_url(B2S_Tools::getSupportLink("twitter_cards")); ?>" target="_blank"><?php esc_html_e("Learn how to edit and adjust Twitter Card tags.", "blog2social"); ?></a>
213
  </span>
214
  </div>
views/b2s/widgets/calendar.php CHANGED
@@ -16,22 +16,22 @@ if($optionUserTimeFormat == false) {
16
  }
17
  $metaSettings = get_option('B2S_PLUGIN_GENERAL_OPTIONS');
18
  ?>
19
- <input type="hidden" id="b2sLang" value="<?php echo substr(B2S_LANGUAGE, 0, 2); ?>">
20
  <input type="hidden" id="b2sUserTimeFormat" value="<?php echo esc_attr($optionUserTimeFormat); ?>">
21
  <input type="hidden" id="b2sJSTextAddPost" value="<?php esc_html_e("add post", "blog2social"); ?>">
22
- <input type="hidden" id="b2sUserLang" value="<?php echo strtolower(substr(get_locale(), 0, 2)); ?>">
23
  <input type='hidden' id="user_timezone" name="user_timezone" value="<?php echo esc_attr($userTimeZoneOffset); ?>">
24
  <input type="hidden" id="user_version" name="user_version" value="<?php echo esc_attr(B2S_PLUGIN_USER_VERSION); ?>">
25
- <input type="hidden" id="b2sDefaultNoImage" value="<?php echo plugins_url('/assets/images/no-image.png', B2S_PLUGIN_FILE); ?>">
26
  <input type="hidden" id="b2sPostId" value="">
27
  <input type="hidden" id="b2sInsertImageType" value="0">
28
  <input type="hidden" id="isOgMetaChecked" value="<?php echo (isset($metaSettings['og_active']) ? (int) $metaSettings['og_active'] : 0); ?>">
29
  <input type="hidden" id="isCardMetaChecked" value="<?php echo (isset($metaSettings['card_active']) ? (int) $metaSettings['card_active'] : 0); ?>">
30
- <input type="hidden" id="b2sRedirectUrlContentCuration" value="<?php echo get_option('siteurl') . ((substr(get_option('siteurl'), -1, 1) == '/') ? '' : '/') . 'wp-admin/admin.php?page=blog2social-curation'; ?>">
31
- <input type="hidden" id="b2sNotAllowGif" value="<?php echo implode(";", json_decode(B2S_PLUGIN_NETWORK_NOT_ALLOW_GIF, true)); ?>">
32
- <input type="hidden" id="b2sAnimateGif" value='<?php echo B2S_PLUGIN_NETWORK_ANIMATE_GIF; ?>'>
33
- <input type="hidden" id="ogMetaNetworks" value="<?php echo implode(';', json_decode(B2S_PLUGIN_NETWORK_META_TAGS, true)['og']); ?>">
34
- <input type="hidden" id="b2sEmojiTranslation" value='<?php echo json_encode(B2S_Tools::getEmojiTranslationList()); ?>'>
35
  <!--Routing from dashboard-->
36
  <input type="hidden" id="b2s_rfd" value="<?php echo (isset($_GET['rfd'])) ? 1 : 0; ?>">
37
  <input type="hidden" id="b2s_rfd_b2s_id" value="<?php echo (isset($_GET['b2s_id'])) ? esc_attr(sanitize_text_field($_GET['b2s_id'])) : ""; ?>">
16
  }
17
  $metaSettings = get_option('B2S_PLUGIN_GENERAL_OPTIONS');
18
  ?>
19
+ <input type="hidden" id="b2sLang" value="<?php echo esc_attr(substr(B2S_LANGUAGE, 0, 2)); ?>">
20
  <input type="hidden" id="b2sUserTimeFormat" value="<?php echo esc_attr($optionUserTimeFormat); ?>">
21
  <input type="hidden" id="b2sJSTextAddPost" value="<?php esc_html_e("add post", "blog2social"); ?>">
22
+ <input type="hidden" id="b2sUserLang" value="<?php echo esc_attr(strtolower(substr(get_locale(), 0, 2))); ?>">
23
  <input type='hidden' id="user_timezone" name="user_timezone" value="<?php echo esc_attr($userTimeZoneOffset); ?>">
24
  <input type="hidden" id="user_version" name="user_version" value="<?php echo esc_attr(B2S_PLUGIN_USER_VERSION); ?>">
25
+ <input type="hidden" id="b2sDefaultNoImage" value="<?php echo esc_url(plugins_url('/assets/images/no-image.png', B2S_PLUGIN_FILE)); ?>">
26
  <input type="hidden" id="b2sPostId" value="">
27
  <input type="hidden" id="b2sInsertImageType" value="0">
28
  <input type="hidden" id="isOgMetaChecked" value="<?php echo (isset($metaSettings['og_active']) ? (int) $metaSettings['og_active'] : 0); ?>">
29
  <input type="hidden" id="isCardMetaChecked" value="<?php echo (isset($metaSettings['card_active']) ? (int) $metaSettings['card_active'] : 0); ?>">
30
+ <input type="hidden" id="b2sRedirectUrlContentCuration" value="<?php echo esc_attr(get_option('siteurl') . ((substr(get_option('siteurl'), -1, 1) == '/') ? '' : '/') . 'wp-admin/admin.php?page=blog2social-curation'); ?>">
31
+ <input type="hidden" id="b2sNotAllowGif" value="<?php echo esc_attr(implode(";", json_decode(B2S_PLUGIN_NETWORK_NOT_ALLOW_GIF, true))); ?>">
32
+ <input type="hidden" id="b2sAnimateGif" value='<?php echo esc_attr(B2S_PLUGIN_NETWORK_ANIMATE_GIF); ?>'>
33
+ <input type="hidden" id="ogMetaNetworks" value="<?php echo esc_attr(implode(';', json_decode(B2S_PLUGIN_NETWORK_META_TAGS, true)['og'])); ?>">
34
+ <input type="hidden" id="b2sEmojiTranslation" value='<?php echo esc_attr(json_encode(B2S_Tools::getEmojiTranslationList())); ?>'>
35
  <!--Routing from dashboard-->
36
  <input type="hidden" id="b2s_rfd" value="<?php echo (isset($_GET['rfd'])) ? 1 : 0; ?>">
37
  <input type="hidden" id="b2s_rfd_b2s_id" value="<?php echo (isset($_GET['b2s_id'])) ? esc_attr(sanitize_text_field($_GET['b2s_id'])) : ""; ?>">
views/b2s/widgets/newsletter.php CHANGED
@@ -11,7 +11,7 @@ $updateMail = get_option('B2S_UPDATE_MAIL_' . B2S_PLUGIN_BLOG_USER_ID);
11
  </span>
12
  </div>
13
  </div>
14
- <input type="hidden" id="user_lang" value="<?php echo substr(B2S_LANGUAGE, 0, 2) ?>">
15
  <?php
16
  }
17
 
11
  </span>
12
  </div>
13
  </div>
14
+ <input type="hidden" id="user_lang" value="<?php echo esc_attr(substr(B2S_LANGUAGE, 0, 2)) ?>">
15
  <?php
16
  }
17
 
views/b2s/widgets/posts.php CHANGED
@@ -71,5 +71,5 @@ $b2sShowByDate = isset($_GET['b2sShowByDate']) ? trim(sanitize_text_field(wp_uns
71
  </div>
72
  </div>
73
 
74
- <input type="hidden" id="b2sLang" value="<?php echo substr(B2S_LANGUAGE, 0, 2); ?>">
75
- <input type="hidden" id="b2sUserLang" value="<?php echo strtolower(substr(get_locale(), 0, 2)); ?>">
71
  </div>
72
  </div>
73
 
74
+ <input type="hidden" id="b2sLang" value="<?php echo esc_attr(substr(B2S_LANGUAGE, 0, 2)); ?>">
75
+ <input type="hidden" id="b2sUserLang" value="<?php echo esc_attr(strtolower(substr(get_locale(), 0, 2))); ?>">
views/prg/html/footer.php CHANGED
@@ -7,10 +7,10 @@
7
  </div>
8
  <div class="pull-right hidden-xs <?php echo isset($noLegend) ? 'hide' : ''; ?>">
9
  <small>
10
- <img class="img-width-9" src="<?php echo plugins_url('/assets/images/prg/post-icon.png', B2S_PLUGIN_FILE); ?>" alt="beitrag"> <?php esc_html_e('Post', 'blog2social') ?>
11
- <img class="img-width-9" src="<?php echo plugins_url('/assets/images/prg/job-icon.png', B2S_PLUGIN_FILE); ?>" alt="job"> <?php esc_html_e('Job', 'blog2social') ?>
12
- <img class="img-width-9" src="<?php echo plugins_url('/assets/images/prg/event-icon.png', B2S_PLUGIN_FILE); ?>" alt="event"> <?php esc_html_e('Event', 'blog2social') ?>
13
- <img class="img-width-9" src="<?php echo plugins_url('/assets/images/prg/product-icon.png', B2S_PLUGIN_FILE); ?>" alt="product"> <?php esc_html_e('Product', 'blog2social') ?>
14
  </small>
15
  </div>
16
  </div>
7
  </div>
8
  <div class="pull-right hidden-xs <?php echo isset($noLegend) ? 'hide' : ''; ?>">
9
  <small>
10
+ <img class="img-width-9" src="<?php echo esc_url(plugins_url('/assets/images/prg/post-icon.png', B2S_PLUGIN_FILE)); ?>" alt="beitrag"> <?php esc_html_e('Post', 'blog2social') ?>
11
+ <img class="img-width-9" src="<?php echo esc_url(plugins_url('/assets/images/prg/job-icon.png', B2S_PLUGIN_FILE)); ?>" alt="job"> <?php esc_html_e('Job', 'blog2social') ?>
12
+ <img class="img-width-9" src="<?php echo esc_url(plugins_url('/assets/images/prg/event-icon.png', B2S_PLUGIN_FILE)); ?>" alt="event"> <?php esc_html_e('Event', 'blog2social') ?>
13
+ <img class="img-width-9" src="<?php echo esc_url(plugins_url('/assets/images/prg/product-icon.png', B2S_PLUGIN_FILE)); ?>" alt="product"> <?php esc_html_e('Product', 'blog2social') ?>
14
  </small>
15
  </div>
16
  </div>
views/prg/login.php CHANGED
@@ -6,7 +6,7 @@
6
  <form method="post" action="#" id="prgLogin" enctype="multipart/form-data">
7
  <!--Logo-->
8
  <a target="_blank" href="https://www.pr-gateway.de">
9
- <img class="img-responsive" src="<?php echo plugins_url('/assets/images/prg/prg_logo.png', B2S_PLUGIN_FILE); ?>" alt="pr-gateway">
10
  </a>
11
  <!--Form-->
12
  <div id="prgLoginInfoFail" class="panel panel-group panel-danger" style="display: none;">
@@ -24,7 +24,7 @@
24
  <input type="text" name="username" id="username" placeholder="<?php esc_attr_e('E-Mail or Username', 'blog2social') ?>" required class="form-control input-lg"/>
25
  <input type="password" class="form-control input-lg" id="password" placeholder="<?php esc_attr_e('Password', 'blog2social') ?>" required />
26
  <input type="hidden" name="postId" id="postId" value="<?php echo (int) $_GET['postId']; ?>">
27
- <input type="hidden" name="token" value="<?php echo base64_encode(time()); ?>"/>
28
  <button type="submit" name="submit" id="prgLoginBtn" class="btn btn-lg btn-primary btn-block"><?php esc_html_e('Sign in', 'blog2social') ?></button>
29
  <div>
30
  <a target="_blank" href="http://prg.li/pr-gateway-connect-registration"><?php esc_html_e('create account', 'blog2social') ?></a> or <a target="_blank" href="https://www.pr-gateway.de/component/users/?view=reset"><?php esc_html_e('reset password', 'blog2social') ?></a>
6
  <form method="post" action="#" id="prgLogin" enctype="multipart/form-data">
7
  <!--Logo-->
8
  <a target="_blank" href="https://www.pr-gateway.de">
9
+ <img class="img-responsive" src="<?php echo esc_url(plugins_url('/assets/images/prg/prg_logo.png', B2S_PLUGIN_FILE)); ?>" alt="pr-gateway">
10
  </a>
11
  <!--Form-->
12
  <div id="prgLoginInfoFail" class="panel panel-group panel-danger" style="display: none;">
24
  <input type="text" name="username" id="username" placeholder="<?php esc_attr_e('E-Mail or Username', 'blog2social') ?>" required class="form-control input-lg"/>
25
  <input type="password" class="form-control input-lg" id="password" placeholder="<?php esc_attr_e('Password', 'blog2social') ?>" required />
26
  <input type="hidden" name="postId" id="postId" value="<?php echo (int) $_GET['postId']; ?>">
27
+ <input type="hidden" name="token" value="<?php echo esc_attr(base64_encode(time())); ?>"/>
28
  <button type="submit" name="submit" id="prgLoginBtn" class="btn btn-lg btn-primary btn-block"><?php esc_html_e('Sign in', 'blog2social') ?></button>
29
  <div>
30
  <a target="_blank" href="http://prg.li/pr-gateway-connect-registration"><?php esc_html_e('create account', 'blog2social') ?></a> or <a target="_blank" href="https://www.pr-gateway.de/component/users/?view=reset"><?php esc_html_e('reset password', 'blog2social') ?></a>