Platinum SEO Pack - Version 2.0.4

Version Description

  • 2020-02-12 - Changed a style setting to apply to this plugin admin pages alone thereby avoiding conflict with wordpress admin and other plugin style settings. Created options for users to specify Facebook OG type and Twitter card type for each individual post or page in Basic social settings.
Download this release

Release Info

Developer Rajesh Babu
Plugin Icon 128x128 Platinum SEO Pack
Version 2.0.4
Comparing to
See all releases

Code changes from version 2.0.3 to 2.0.4

Changelog.txt CHANGED
@@ -1,5 +1,8 @@
 
 
 
1
  = 2.0.3 =
2
- * 2020-02-09 - Made some changes to UI to improve usability. Also fixed a small superficial bug in snippet preview. Colors codes have been used. Blue is neutral or normal and can be positive or negative depending on the situation. Green indicates positive and recommended. Red indicates negative and not recommended. Users have to be doubly sure to make an option red. Orange indicates a warning and the users need to be careful.
3
 
4
  = 2.0.2 =
5
  * 2020-02-07 - Fixed an issue that was causing featured image not to be set for Posts and Pages.
1
+ = 2.0.4 =
2
+ * 2020-02-12 - Changed a style setting to apply to this plugin admin pages alone thereby avoiding conflict with wordpress admin and other plugin style settings. Created options for users to specify Facebook OG type and Twitter card type for each individual post or page in Basic social settings.
3
+
4
  = 2.0.3 =
5
+ * 2020-02-11 - Made some changes to UI to improve usability. Also fixed a small superficial bug in snippet preview. Colors codes have been used. Blue is neutral or normal and can be positive or negative depending on the situation. Green indicates positive and recommended. Red indicates negative and not recommended. Users have to be doubly sure to make an option red. Orange indicates a warning and the users need to be careful.
6
 
7
  = 2.0.2 =
8
  * 2020-02-07 - Fixed an issue that was causing featured image not to be set for Posts and Pages.
platinum-seo-pack.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Platinum SEO Pack
5
  Plugin URI: https://techblissonline.com/platinum-wordpress-seo-plugin/
6
  Description: Complete SEO and Social optimization solution for your Wordpress blog/site. It is Simple, Uncomplicated and User friendly with several useful features.
7
- Version: 2.0.3
8
  Author: Techblissonline.com (Rajesh)
9
  Author URI: https://techblissonline.com/
10
  Text Domain: platinum-seo-pack
4
  Plugin Name: Platinum SEO Pack
5
  Plugin URI: https://techblissonline.com/platinum-wordpress-seo-plugin/
6
  Description: Complete SEO and Social optimization solution for your Wordpress blog/site. It is Simple, Uncomplicated and User friendly with several useful features.
7
+ Version: 2.0.4
8
  Author: Techblissonline.com (Rajesh)
9
  Author URI: https://techblissonline.com/
10
  Text Domain: platinum-seo-pack
psp-include/settings/css/psp-settings.css CHANGED
@@ -1,6 +1,15 @@
1
  .psp-separator{
2
  width: 100%;
3
  }
 
 
 
 
 
 
 
 
 
4
 
5
  .psp-separator input{
6
  margin:0;padding:0;
1
  .psp-separator{
2
  width: 100%;
3
  }
4
+
5
+ label {
6
+ font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
7
+ font-size: 14 px;
8
+ }
9
+
10
+ body {
11
+ font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif !important;
12
+ }
13
 
14
  .psp-separator input{
15
  margin:0;padding:0;
psp-include/settings/psp_advanced_metabox_renderer.php CHANGED
@@ -6,12 +6,12 @@ Author: Rajesh - Techblissonline
6
  Author URI: https://techblissonline.com/
7
  */
8
  ?>
9
- <p class="description"><?php esc_html_e( 'These are some settings specific to this page (post). If these are not set, appropriate defaults will be used.' , 'platinum-seo-pack'); ?> </p>
10
  <table class="form-table">
11
  <tr class="form-field">
12
  <th scope="row" valign="top"><label for="psp_index"><?php esc_html_e('Add index/noindex:', 'platinum_seo_pack') ?> </label></th>
13
  <td><?php if ( !empty($psp_seo_meta['noindex'])) { $noindex_checked = ' checked="checked" '; } else { $noindex_checked =""; }
14
- echo "<div class='psp-bs'><input ".esc_attr($noindex_checked)." id='psp_seo_meta[noindex]' name='psp_seo_meta[noindex]' type='checkbox' data-toggle='toggle' data-on='NoIndex' data-off='Index' data-onstyle='danger' data-offstyle='primary' data-width='100' /></div><br />";
15
  ?>
16
  <p class="description"><?php esc_html_e('noindex - Tells search engines to not include this page in the index or to not have a copy of this page in their database. It thus tells search engines to not consider this page for showing to their users on their SERPS.', 'platinum-seo-pack'); ?></p>
17
  </td>
@@ -20,7 +20,7 @@ Author URI: https://techblissonline.com/
20
  <tr class="form-field">
21
  <th scope="row" valign="top"><label for="psp_index"><?php esc_html_e('Add follow/nofollow:', 'platinum_seo_pack') ?> </label></th>
22
  <td><?php if ( !empty($psp_seo_meta['nofollow'])) { $nofollow_checked = ' checked="checked" '; } else { $nofollow_checked =""; }
23
- echo "<div class='psp-bs'><input ".esc_attr($nofollow_checked)." id='psp_seo_meta[nofollow]' name='psp_seo_meta[nofollow]' type='checkbox' data-toggle='toggle' data-on='NoFollow' data-off='Follow' data-onstyle='warning' data-offstyle='primary' data-width='100' /></div><br />";
24
  ?>
25
  <p class="description"><?php esc_html_e('nofollow - Tells search engines to not follow links on this page, meaning to not pass on link credits, if any, assigned by the search engines to the link assignee.', 'platinum-seo-pack'); ?></p>
26
  </td>
6
  Author URI: https://techblissonline.com/
7
  */
8
  ?>
9
+ <p class="description"><?php esc_html_e( 'These are some settings specific to this page (post). If these are not set, appropriate defaults will be used for meta tags.However, you need to manually set the combined Json Schema for this page in the below mentioned option for Json schema support. ' , 'platinum-seo-pack'); ?> </p>
10
  <table class="form-table">
11
  <tr class="form-field">
12
  <th scope="row" valign="top"><label for="psp_index"><?php esc_html_e('Add index/noindex:', 'platinum_seo_pack') ?> </label></th>
13
  <td><?php if ( !empty($psp_seo_meta['noindex'])) { $noindex_checked = ' checked="checked" '; } else { $noindex_checked =""; }
14
+ echo "<div class='psp-bs'><input ".esc_attr($noindex_checked)." id='psp_seo_meta[noindex]' name='psp_seo_meta[noindex]' type='checkbox' data-toggle='toggle' data-on='NoIndex' data-off='Index' data-onstyle='danger' data-offstyle='primary' data-width='100' /></div>";
15
  ?>
16
  <p class="description"><?php esc_html_e('noindex - Tells search engines to not include this page in the index or to not have a copy of this page in their database. It thus tells search engines to not consider this page for showing to their users on their SERPS.', 'platinum-seo-pack'); ?></p>
17
  </td>
20
  <tr class="form-field">
21
  <th scope="row" valign="top"><label for="psp_index"><?php esc_html_e('Add follow/nofollow:', 'platinum_seo_pack') ?> </label></th>
22
  <td><?php if ( !empty($psp_seo_meta['nofollow'])) { $nofollow_checked = ' checked="checked" '; } else { $nofollow_checked =""; }
23
+ echo "<div class='psp-bs'><input ".esc_attr($nofollow_checked)." id='psp_seo_meta[nofollow]' name='psp_seo_meta[nofollow]' type='checkbox' data-toggle='toggle' data-on='NoFollow' data-off='Follow' data-onstyle='warning' data-offstyle='primary' data-width='100' /></div>";
24
  ?>
25
  <p class="description"><?php esc_html_e('nofollow - Tells search engines to not follow links on this page, meaning to not pass on link credits, if any, assigned by the search engines to the link assignee.', 'platinum-seo-pack'); ?></p>
26
  </td>
psp-include/settings/psp_basic_metabox_renderer.php CHANGED
@@ -46,6 +46,12 @@ Author URI: http://techblissonline.com/
46
  wp_enqueue_style("'psp-bs-toggler-css", plugins_url( '/css/psp-bs-toggle.css', __FILE__ ));
47
  wp_enqueue_style("psp-settings-bs-css", plugins_url( '/css/psp-settings-bs.css', __FILE__ ));
48
  ?></span>
 
 
 
 
 
 
49
  <table class="form-table">
50
  <tr class="form-field">
51
  <th style="width:20%;" scope="row" valign="top"><label for="psp_seo_meta[title]"><?php esc_html_e('SEO Title: ', 'platinum-seo-pack'); ?></label><br /><?php if ($psp_type == "posttype" && (!$psp_posttype_metabox_advanced_hidden || is_super_admin())) { ?><?php if( isset($psp_seo_meta['disable_title']) && $psp_seo_meta['disable_title']) { $distit_checked = ' checked="checked" '; } else { $distit_checked = ""; }
@@ -118,7 +124,7 @@ Author URI: http://techblissonline.com/
118
  <tr class="form-field">
119
  <th style="width:20%;" scope="row" valign="top"><label for="psp_seo_meta[disable_psp]"><?php esc_html_e('Platinum SEO Settings: ', 'platinum-seo-pack'); ?></label></th>
120
  <td><?php if ( isset($psp_seo_meta['disable_psp']) && $psp_seo_meta['disable_psp']) { $dispsp_checked = ' checked="checked" '; } else { $dispsp_checked = ""; }
121
- echo "<div class='psp-bs'><input ".esc_attr($dispsp_checked)." id='psp_seo_meta[disable_psp]' name='psp_seo_meta[disable_psp]' type='checkbox' data-toggle='toggle' data-on='Off' data-onstyle='default' data-off='On' data-offstyle='success' data-width='100' /></div><br />";
122
  ?>
123
  <p class="description"><?php esc_html_e('Switching this Off Disables ALL Platinum SEO settings for this page.', 'platinum-seo-pack'); ?></p>
124
  </td>
46
  wp_enqueue_style("'psp-bs-toggler-css", plugins_url( '/css/psp-bs-toggle.css', __FILE__ ));
47
  wp_enqueue_style("psp-settings-bs-css", plugins_url( '/css/psp-settings-bs.css', __FILE__ ));
48
  ?></span>
49
+ <style>
50
+ label {
51
+ font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
52
+ font-size: 14 px;
53
+ }
54
+ </style>
55
  <table class="form-table">
56
  <tr class="form-field">
57
  <th style="width:20%;" scope="row" valign="top"><label for="psp_seo_meta[title]"><?php esc_html_e('SEO Title: ', 'platinum-seo-pack'); ?></label><br /><?php if ($psp_type == "posttype" && (!$psp_posttype_metabox_advanced_hidden || is_super_admin())) { ?><?php if( isset($psp_seo_meta['disable_title']) && $psp_seo_meta['disable_title']) { $distit_checked = ' checked="checked" '; } else { $distit_checked = ""; }
124
  <tr class="form-field">
125
  <th style="width:20%;" scope="row" valign="top"><label for="psp_seo_meta[disable_psp]"><?php esc_html_e('Platinum SEO Settings: ', 'platinum-seo-pack'); ?></label></th>
126
  <td><?php if ( isset($psp_seo_meta['disable_psp']) && $psp_seo_meta['disable_psp']) { $dispsp_checked = ' checked="checked" '; } else { $dispsp_checked = ""; }
127
+ echo "<div class='psp-bs'><input ".esc_attr($dispsp_checked)." id='psp_seo_meta[disable_psp]' name='psp_seo_meta[disable_psp]' type='checkbox' data-toggle='toggle' data-on='Off' data-onstyle='default' data-off='On' data-offstyle='success' data-width='100' /></div>";
128
  ?>
129
  <p class="description"><?php esc_html_e('Switching this Off Disables ALL Platinum SEO settings for this page.', 'platinum-seo-pack'); ?></p>
130
  </td>
psp-include/settings/psp_basic_social_metabox_renderer.php CHANGED
@@ -10,22 +10,45 @@ Author URI: http://techblissonline.com/
10
  <th scope="row" valign="top"><h3><strong><?php esc_html_e('Meta Tags for Social Media - Facebook, Twitter, Pinterest and LinkedIn: ', 'platinum-seo-pack'); ?></strong></h3></th></tr>
11
  <p class="description"><?php echo esc_html__('If the following title and description fields are not filled in, corresponding Techblissonline Platinum SEO meta data will be used to render social meta tags for social sites. For more advanced control on social meta tags i.e open graph, twitter cards and schema.org tags for individual social sites, use the advanced social tab.', 'platinum-seo-pack').'<a href="https://techblissonline.com/facebook-optimization/" target="_blank">'.esc_html__('Facebook Optimization Guide', 'platinum-seo-pack').'</a>'.' | '.' <a href="https://techblissonline.com/twitter-card-optimization/" target="_blank">'.esc_html__('Twitter Card Optimization Guide', 'platinum-seo-pack').'</a>'; ?></p>
12
  <table class="form-table">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  <tr class="form-field">
14
- <th style="width:20%;" scope="row" valign="top"><label for="fb_title"><?php esc_html_e('Title for Social media (Facebook): ', 'platinum-seo-pack'); ?></label></th>
15
  <td><input type="text" name="psp_social_meta[fb_title]" id="fb_title" value="<?php echo (isset($psp_social_meta['fb_title']) ? html_entity_decode(stripcslashes(esc_attr($psp_social_meta['fb_title']))) : ''); ?>"><br />
16
  <p class="description"><?php esc_html_e('Set title to be used when this page is shared on faceook and other social media sites.', 'platinum-seo-pack'); ?></p>
17
  </td>
18
  </tr>
19
  <tr class="form-field">
20
- <th style="width:20%;" scope="row" valign="top"><label for="fb_description"><?php esc_html_e('Description for Social media( Facebook): ', 'platinum-seo-pack'); ?></label></th>
21
  <td><textarea name="psp_social_meta[fb_description]" id="fb_description"><?php echo (isset($psp_social_meta['fb_description']) ? html_entity_decode(stripcslashes(esc_textarea($psp_social_meta['fb_description']))) : ''); ?></textarea><br />
22
  <p class="description"><?php esc_html_e('Set description to be used when this page is shared on faceook and other social media sites.', 'platinum-seo-pack'); ?></p>
23
  </td>
24
  </tr>
25
  <tr class="form-field">
26
- <th style="width:20%;" scope="row" valign="top"><label for="fb_image"><?php esc_html_e('Images for Social media (Facebook): ', 'platinum-seo-pack'); ?></label></th>
27
  <td><input style="width:75%;" type="text" name="psp_social_meta[fb_image]" id="fb_image" value="<?php echo (isset($psp_social_meta['fb_image']) ? esc_url($psp_social_meta['fb_image']) : ''); ?>"><input style="width:20%;" id="fb_image_btn" class="upload_image_button" type="button" value="Upload" /><br />
28
  <p class="description"><?php echo esc_html__('Enter an URL to an image or upload an image to be used when this page is shared on faceook and other social media sites.', 'platinum-seo-pack').'<a href="https://techblissonline.com/facebook-optimization/#image" target="_blank">'.esc_html__('Image Guidelines','platinum-seo-pack').'</a>'; ?></p>
29
  </td>
30
- </tr>
31
  </table>
10
  <th scope="row" valign="top"><h3><strong><?php esc_html_e('Meta Tags for Social Media - Facebook, Twitter, Pinterest and LinkedIn: ', 'platinum-seo-pack'); ?></strong></h3></th></tr>
11
  <p class="description"><?php echo esc_html__('If the following title and description fields are not filled in, corresponding Techblissonline Platinum SEO meta data will be used to render social meta tags for social sites. For more advanced control on social meta tags i.e open graph, twitter cards and schema.org tags for individual social sites, use the advanced social tab.', 'platinum-seo-pack').'<a href="https://techblissonline.com/facebook-optimization/" target="_blank">'.esc_html__('Facebook Optimization Guide', 'platinum-seo-pack').'</a>'.' | '.' <a href="https://techblissonline.com/twitter-card-optimization/" target="_blank">'.esc_html__('Twitter Card Optimization Guide', 'platinum-seo-pack').'</a>'; ?></p>
12
  <table class="form-table">
13
+ <?php if ($psp_premium_valid && $psp_premium_status) {
14
+ //do nothing;
15
+ } else { ?>
16
+ <tr class="form-field">
17
+ <th style="width:20%;" scope="row" valign="top"><label for="facebook_og_type_id"><?php esc_html_e('Open Graph Object Type: ', 'platinum-seo-premium'); ?></label></th>
18
+ <td><select id="facebook_og_type_id" name="psp_social_meta[fb_og_type]"><?php $dditems = array ('' => 'Select an OG type', 'website' => 'website', 'article' => 'article', 'books.author' => 'books.author', 'books.book' => 'books.book', 'books.genre' => 'books.genre', 'business.business' => 'business.business', 'fitness.course' => 'fitness.course', 'game.achievement' => 'game.achievement', 'music.album' => 'music.album', 'music.playlist' => 'music.playlist', 'music.radio_station' => 'music.radio_station', 'music.song' => 'music.song', 'place' => 'place', 'product' => 'product', 'product.group' => 'product.group', 'product.item' => 'product.item', 'profile' => 'profile', 'restaurant.menu' => 'restaurant.menu', 'restaurant.menu_item' => 'restaurant.menu_item', 'restaurant.menu_section' => 'restaurant.menu_section', 'restaurant.restaurant' => 'restaurant.restaurant', 'video.episode' => 'video.episode', 'video.movie' => 'video.movie', 'video.other' => 'video.other', 'video.tv_show' => 'video.tv_show');
19
+ foreach($dditems as $key => $val) {
20
+ $selected = (isset($psp_social_meta['fb_og_type']) && $psp_social_meta['fb_og_type']==$key) ? 'selected="selected"' : '';
21
+ echo "<option value='".esc_attr($key)."' ".esc_attr($selected).">".esc_attr($val)."</option>";
22
+ } ?></select><p class="description"><?php echo esc_html__(' Select the facebook Open Graph object type to be used for this page. If nothing is selected here, sitewide default setting will be used provided Open Graph tags for facebook had been enabled in Social settings and the sitewide default setting is not empty.', 'platinum-seo-premium').' - <a href="https://indiafascinates.com/wp-admin/admin.php?page=psp-social-by-techblissonline">Social</a>';; ?></p>
23
+ </td>
24
+ </tr>
25
+ <tr class="form-field">
26
+ <th style="width:20%;" scope="row" valign="top"><label for="twitter_card_type_id"><?php esc_html_e('Twitter Card Type: ', 'platinum-seo-premium'); ?></label></th>
27
+ <td><select id="twitter_card_type_id" name="psp_social_meta[tw_card_type]"><?php $dditems = array ('' => 'Select a card type', 'summary' => 'summary', 'summary_large_image' => 'summary with large image');
28
+ foreach($dditems as $key => $val) {
29
+ $selected = (isset($psp_social_meta['tw_card_type']) && $psp_social_meta['tw_card_type']==$key) ? 'selected="selected"' : '';
30
+ //echo "<option value='$key' $selected>$val</option>";
31
+ echo "<option value='".esc_attr($key)."' ".esc_attr($selected).">".esc_attr($val)."</option>";
32
+ } ?></select><p class="description"><?php echo esc_html__(' Select the twitter card type to be used for this page. If nothing is selected here, sitewide default setting will be used only when twitter card had been enabled in Social settings.', 'platinum-seo-premium').' - <a href="https://indiafascinates.com/wp-admin/admin.php?page=psp-social-by-techblissonline">Social</a>'; ?></p>
33
+ </td>
34
+ </tr>
35
+ <?php } ?>
36
  <tr class="form-field">
37
+ <th style="width:20%;" scope="row" valign="top"><label for="fb_title"><?php esc_html_e('Title for Social media : ', 'platinum-seo-pack'); ?></label></th>
38
  <td><input type="text" name="psp_social_meta[fb_title]" id="fb_title" value="<?php echo (isset($psp_social_meta['fb_title']) ? html_entity_decode(stripcslashes(esc_attr($psp_social_meta['fb_title']))) : ''); ?>"><br />
39
  <p class="description"><?php esc_html_e('Set title to be used when this page is shared on faceook and other social media sites.', 'platinum-seo-pack'); ?></p>
40
  </td>
41
  </tr>
42
  <tr class="form-field">
43
+ <th style="width:20%;" scope="row" valign="top"><label for="fb_description"><?php esc_html_e('Description for Social media : ', 'platinum-seo-pack'); ?></label></th>
44
  <td><textarea name="psp_social_meta[fb_description]" id="fb_description"><?php echo (isset($psp_social_meta['fb_description']) ? html_entity_decode(stripcslashes(esc_textarea($psp_social_meta['fb_description']))) : ''); ?></textarea><br />
45
  <p class="description"><?php esc_html_e('Set description to be used when this page is shared on faceook and other social media sites.', 'platinum-seo-pack'); ?></p>
46
  </td>
47
  </tr>
48
  <tr class="form-field">
49
+ <th style="width:20%;" scope="row" valign="top"><label for="fb_image"><?php esc_html_e('Images for Social media : ', 'platinum-seo-pack'); ?></label></th>
50
  <td><input style="width:75%;" type="text" name="psp_social_meta[fb_image]" id="fb_image" value="<?php echo (isset($psp_social_meta['fb_image']) ? esc_url($psp_social_meta['fb_image']) : ''); ?>"><input style="width:20%;" id="fb_image_btn" class="upload_image_button" type="button" value="Upload" /><br />
51
  <p class="description"><?php echo esc_html__('Enter an URL to an image or upload an image to be used when this page is shared on faceook and other social media sites.', 'platinum-seo-pack').'<a href="https://techblissonline.com/facebook-optimization/#image" target="_blank">'.esc_html__('Image Guidelines','platinum-seo-pack').'</a>'; ?></p>
52
  </td>
53
+ </tr>
54
  </table>
psp-include/settings/psp_settings.php CHANGED
@@ -194,7 +194,8 @@ class PspSettings {
194
  $tab = isset( $_GET['psptab'] ) ? sanitize_key($_GET['psptab']) : $this->psp_general_settings_group;
195
 
196
  global $pagenow;
197
- if ( $pagenow == 'admin.php' && ((sanitize_key($_GET['page']) == 'platinum-seo-social-pack-by-techblissonline') || (sanitize_key($_GET['page']) == 'psp-social-by-techblissonline'))) {
 
198
 
199
  wp_enqueue_style("psp-settings-css", plugins_url( '/css/psp-settings.css', __FILE__ ));
200
 
@@ -989,7 +990,7 @@ class PspSettings {
989
  );
990
 
991
  $comment_excerpt_nohtml_kses_id = 'psp_'.$setting_name.'_comment_excerpt_nohtml_kses';
992
- $comment_excerpt_nohtml_kses_title = esc_html__( 'Strip HTNL in comment Excerpt: ', 'platinum-seo-pack' );
993
 
994
  add_settings_field( $comment_excerpt_nohtml_kses_id, $comment_excerpt_nohtml_kses_title, array( &$this, 'psp_add_field_checkbox' ), $this->psp_general_settings_group, $section_id, $comment_excerpt_nohtml_kses_field );
995
 
@@ -1738,7 +1739,8 @@ class PspSettings {
1738
 
1739
  $psp_settings = get_option($psp_settings_name);
1740
  global $pagenow;
1741
- if ( $pagenow == 'admin.php' && (sanitize_key($_GET['page']) == ('platinum-seo-social-pack-by-techblissonline' || 'psp-social-by-techblissonline' || 'psp-tools-by-techblissonline' || 'pspp-licenses'))) {
 
1742
  wp_enqueue_media();
1743
  wp_enqueue_script( 'psp-bs-toggler-js', plugins_url( '/js/pspbstoggler.js', __FILE__ ) );
1744
  wp_enqueue_style("'psp-bs-toggler-css", plugins_url( '/css/psp-bs-toggle.css', __FILE__ ));
194
  $tab = isset( $_GET['psptab'] ) ? sanitize_key($_GET['psptab']) : $this->psp_general_settings_group;
195
 
196
  global $pagenow;
197
+ $psp_pages = array('platinum-seo-social-pack-by-techblissonline', 'psp-social-by-techblissonline', 'psp-tools-by-techblissonline', 'pspp-licenses');
198
+ if ( $pagenow == 'admin.php' && in_array(sanitize_key($_GET['page']), $psp_pages)) {
199
 
200
  wp_enqueue_style("psp-settings-css", plugins_url( '/css/psp-settings.css', __FILE__ ));
201
 
990
  );
991
 
992
  $comment_excerpt_nohtml_kses_id = 'psp_'.$setting_name.'_comment_excerpt_nohtml_kses';
993
+ $comment_excerpt_nohtml_kses_title = esc_html__( 'Strip HTML in comment Excerpt: ', 'platinum-seo-pack' );
994
 
995
  add_settings_field( $comment_excerpt_nohtml_kses_id, $comment_excerpt_nohtml_kses_title, array( &$this, 'psp_add_field_checkbox' ), $this->psp_general_settings_group, $section_id, $comment_excerpt_nohtml_kses_field );
996
 
1739
 
1740
  $psp_settings = get_option($psp_settings_name);
1741
  global $pagenow;
1742
+ $psp_pages = array('platinum-seo-social-pack-by-techblissonline', 'psp-social-by-techblissonline', 'psp-tools-by-techblissonline', 'pspp-licenses');
1743
+ if ( $pagenow == 'admin.php' && in_array(sanitize_key($_GET['page']), $psp_pages)) {
1744
  wp_enqueue_media();
1745
  wp_enqueue_script( 'psp-bs-toggler-js', plugins_url( '/js/pspbstoggler.js', __FILE__ ) );
1746
  wp_enqueue_style("'psp-bs-toggler-css", plugins_url( '/css/psp-bs-toggle.css', __FILE__ ));
psp-include/settings/psp_social_settings.php CHANGED
@@ -73,7 +73,7 @@ class PspSocialSettings extends PspSettings {
73
 
74
  //Facebook Section
75
  $section_id = 'psp_facebook_section';
76
- $section_title = esc_html__('Techblissonline Platinum Social Facebook Open Graph Settings', 'platinum-seo-pack');
77
 
78
  add_settings_section( $section_id, $section_title, array( &$this, 'section_fb_desc' ), $this->psp_social_settings_group );
79
 
@@ -231,7 +231,7 @@ class PspSocialSettings extends PspSettings {
231
 
232
  //Twitter Section
233
  $section_id = 'psp_twitter_section';
234
- $section_title = esc_html__('Techblissonline Platinum Social Twitter Card Settings', 'platinum-seo-pack');
235
 
236
  add_settings_section( $section_id, $section_title, array( &$this, 'section_twitter_desc' ), $this->psp_social_settings_group );
237
 
@@ -292,7 +292,7 @@ class PspSocialSettings extends PspSettings {
292
 
293
  //Schema.org Section
294
  $section_id = 'psp_schema_org_section';
295
- $section_title = esc_html__('Techblissonline Platinum Social Schema.org Settings', 'platinum-seo-pack');
296
 
297
  add_settings_section( $section_id, $section_title, array( &$this, 'section_schema_org_desc' ), $this->psp_social_settings_group );
298
 
@@ -301,11 +301,11 @@ class PspSocialSettings extends PspSettings {
301
  'label_for' => 'psp_schemaorg_markup_enabled',
302
  'option_name' => $psp_settings_name.'[psp_schemaorg_markup_enabled]',
303
  'option_value' => isset($psp_settings['psp_schemaorg_markup_enabled']) ? esc_attr($psp_settings['psp_schemaorg_markup_enabled']) : '',
304
- 'checkbox_label' => esc_html__('Enable Schema.org markup for Pinterest and Linkedin.', 'platinum-seo-pack')
305
  );
306
 
307
  $schema_org_field_id = 'psp_schemaorg_markup_enabled';
308
- $schema_org_field_title = esc_html__('Schema.org Markup: ', 'platinum-seo-pack');
309
 
310
  add_settings_field( $schema_org_field_id, $schema_org_field_title, array( &$this, 'psp_add_field_checkbox' ), $this->psp_social_settings_group, $section_id, $schema_org_field );
311
 
73
 
74
  //Facebook Section
75
  $section_id = 'psp_facebook_section';
76
+ $section_title = esc_html__('Facebook Open Graph Sitewide Settings', 'platinum-seo-pack');
77
 
78
  add_settings_section( $section_id, $section_title, array( &$this, 'section_fb_desc' ), $this->psp_social_settings_group );
79
 
231
 
232
  //Twitter Section
233
  $section_id = 'psp_twitter_section';
234
+ $section_title = esc_html__('Twitter Card Sitewide Settings', 'platinum-seo-pack');
235
 
236
  add_settings_section( $section_id, $section_title, array( &$this, 'section_twitter_desc' ), $this->psp_social_settings_group );
237
 
292
 
293
  //Schema.org Section
294
  $section_id = 'psp_schema_org_section';
295
+ $section_title = esc_html__('Pinterest and Linkedin Settings', 'platinum-seo-pack');
296
 
297
  add_settings_section( $section_id, $section_title, array( &$this, 'section_schema_org_desc' ), $this->psp_social_settings_group );
298
 
301
  'label_for' => 'psp_schemaorg_markup_enabled',
302
  'option_name' => $psp_settings_name.'[psp_schemaorg_markup_enabled]',
303
  'option_value' => isset($psp_settings['psp_schemaorg_markup_enabled']) ? esc_attr($psp_settings['psp_schemaorg_markup_enabled']) : '',
304
+ 'checkbox_label' => esc_html__('Enable markup for Pinterest and Linkedin.', 'platinum-seo-pack')
305
  );
306
 
307
  $schema_org_field_id = 'psp_schemaorg_markup_enabled';
308
+ $schema_org_field_title = esc_html__('Enable Markup: ', 'platinum-seo-pack');
309
 
310
  add_settings_field( $schema_org_field_id, $schema_org_field_title, array( &$this, 'psp_add_field_checkbox' ), $this->psp_social_settings_group, $section_id, $schema_org_field );
311
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: seo, wordpress seo, plugin, google seo, platinum seo, schema, schema marku
5
  Requires at least: 4.0
6
  Tested up to: 5.3.2
7
  Requires PHP: 5.6
8
- Stable tag: 2.0.3
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -62,8 +62,11 @@ Please read these **[FAQs](https://techblissonline.com/platinum-seo-pack-faq/)**
62
  4. Social Settings for Facebook, Twitter, Pinterest and LinkedIn. Generates Open Grah Tags and Twitter compatible Tags.
63
 
64
  == Changelog ==
 
 
 
65
  = 2.0.3 =
66
- * 2020-02-09 - Made some changes to UI to improve usability. Also fixed a small superficial bug in snippet preview. Colors codes have been used. Blue is neutral or normal and can be positive or negative depending on the situation. Green indicates positive and recommended. Red indicates negative and not recommended. Users have to be doubly sure to make an option red. Orange indicates a warning and the users need to be careful.
67
 
68
  = 2.0.2 =
69
  * 2020-02-07 - Fixed an issue that was causing featured image not to be set for Posts and Pages.
5
  Requires at least: 4.0
6
  Tested up to: 5.3.2
7
  Requires PHP: 5.6
8
+ Stable tag: 2.0.4
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
62
  4. Social Settings for Facebook, Twitter, Pinterest and LinkedIn. Generates Open Grah Tags and Twitter compatible Tags.
63
 
64
  == Changelog ==
65
+ = 2.0.4 =
66
+ * 2020-02-12 - Changed a style setting to apply to this plugin admin pages alone thereby avoiding conflict with wordpress admin and other plugin style settings. Created options for users to specify Facebook OG type and Twitter card type for each individual post or page in Basic social settings.
67
+
68
  = 2.0.3 =
69
+ * 2020-02-11 - Made some changes to UI to improve usability. Also fixed a small superficial bug in snippet preview. Colors codes have been used. Blue is neutral or normal and can be positive or negative depending on the situation. Green indicates positive and recommended. Red indicates negative and not recommended. Users have to be doubly sure to make an option red. Orange indicates a warning and the users need to be careful.
70
 
71
  = 2.0.2 =
72
  * 2020-02-07 - Fixed an issue that was causing featured image not to be set for Posts and Pages.