Version Description
Download this release
Release Info
Developer | Rajesh Babu |
Plugin | Platinum SEO Pack |
Version | 2.3.3 |
Comparing to | |
See all releases |
Code changes from version 2.3.1 to 2.3.3
- Changelog.txt +4 -1
- platinum-seo-pack.php +1 -1
- psp-include/importers/psp_import.php +3 -3
- psp-include/settings/js/cm-bulkeditor.js +1 -22
- psp-include/settings/js/psp-bulkedit.js +1 -140
- psp-include/settings/psp_bulk_edit_renderer.php +2 -2
- psp-include/settings/psp_rolecap_settings.php +3 -3
- psp-include/settings/psp_settings.php +5 -5
- psp-include/settings/psp_tools_renderer.php +1 -1
- psp-include/settings/psp_tools_settings.php +76 -16
- psp-include/utilities/psp_helper.php +1 -1
- psp_main.php +3 -3
- readme.txt +8 -2
Changelog.txt
CHANGED
@@ -1,4 +1,7 @@
|
|
1 |
-
= 2.3.
|
|
|
|
|
|
|
2 |
2021-01-15 - Bulk Editor now lets you add JSON Schema to all Post types in bulk.
|
3 |
|
4 |
= 2.3.0=
|
1 |
+
= 2.3.3=
|
2 |
+
2021-02-01 - consolidated the Platinum SEO menus. made changes to Role Manager for more granular control on Platinum SEO menus to various roles.
|
3 |
+
|
4 |
+
= 2.3.2=
|
5 |
2021-01-15 - Bulk Editor now lets you add JSON Schema to all Post types in bulk.
|
6 |
|
7 |
= 2.3.0=
|
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.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.3.2
|
8 |
Author: Techblissonline.com (Rajesh)
|
9 |
Author URI: https://techblissonline.com/
|
10 |
Text Domain: platinum-seo-pack
|
psp-include/importers/psp_import.php
CHANGED
@@ -28,7 +28,7 @@ class PspImporter {
|
|
28 |
//$psp_helper_instance = PspHelper::get_instance();
|
29 |
//$this->psp_helper = $psp_helper_instance;
|
30 |
|
31 |
-
add_action('admin_menu', array(&$this, 'psp_importer_admin_menu'));
|
32 |
add_action( 'wp_ajax_import_yoast_data', array($this, 'import_yoast_data' ), 1);
|
33 |
|
34 |
//add_action( 'wp_ajax_psp_rm_importer', array(&$this, 'psp_rm_importer') );
|
@@ -49,8 +49,8 @@ class PspImporter {
|
|
49 |
|
50 |
public function psp_importer_admin_menu() {
|
51 |
|
52 |
-
|
53 |
-
|
54 |
//$psp_importer_page_2 = 'platinum-seo-and-social-pack_page_pspimporter';
|
55 |
//error_log('redir '. $psp_importer_page);
|
56 |
|
28 |
//$psp_helper_instance = PspHelper::get_instance();
|
29 |
//$this->psp_helper = $psp_helper_instance;
|
30 |
|
31 |
+
//add_action('admin_menu', array(&$this, 'psp_importer_admin_menu'));
|
32 |
add_action( 'wp_ajax_import_yoast_data', array($this, 'import_yoast_data' ), 1);
|
33 |
|
34 |
//add_action( 'wp_ajax_psp_rm_importer', array(&$this, 'psp_rm_importer') );
|
49 |
|
50 |
public function psp_importer_admin_menu() {
|
51 |
|
52 |
+
//$psp_importer_page = add_management_page('Data Import Manager', 'Platinum SEO Importer', 'manage_options', 'pspimporter', array($this, 'pspimport_mgmtpage'));
|
53 |
+
//$psp_importer_page_2 = add_submenu_page($this->psp_plugin_options_key, esc_html__('Techblissonline Platinum SEO Importer', 'platinum-seo-pack'), '<span class="dashicons dashicons-admin-tools"></span> '.esc_html__('Importer', 'platinum-seo-pack'), 'manage_options', 'importer', array($this, 'pspimport_mgmtpage'));
|
54 |
//$psp_importer_page_2 = 'platinum-seo-and-social-pack_page_pspimporter';
|
55 |
//error_log('redir '. $psp_importer_page);
|
56 |
|
psp-include/settings/js/cm-bulkeditor.js
CHANGED
@@ -1,22 +1 @@
|
|
1 |
-
jQuery(document).ready(function(
|
2 |
-
if( $('.pspjsoneditor').length ) {
|
3 |
-
//if (typeof psp_cm_bulkeditor_json_settings != "undefined") {
|
4 |
-
var editorSchemaSettings = wp.codeEditor.defaultSettings ? _.clone( wp.codeEditor.defaultSettings ) : {};
|
5 |
-
editorSchemaSettings.codemirror = _.extend(
|
6 |
-
{},
|
7 |
-
editorSchemaSettings.codemirror,
|
8 |
-
{
|
9 |
-
autorefresh: true,
|
10 |
-
matchBrackets: true,
|
11 |
-
autoCloseBrackets: true,
|
12 |
-
mode: "application/ld+json",
|
13 |
-
lineWrapping: true
|
14 |
-
}
|
15 |
-
);
|
16 |
-
$(".pspjsoneditor").each(function() {
|
17 |
-
var cm_json_editor = wp.codeEditor.initialize( $(this), editorSchemaSettings );
|
18 |
-
});
|
19 |
-
|
20 |
-
//}
|
21 |
-
}
|
22 |
-
});
|
1 |
+
jQuery(document).ready(function(e){if(e(".pspjsoneditor").length){var o=wp.codeEditor.defaultSettings?_.clone(wp.codeEditor.defaultSettings):{};o.codemirror=_.extend({},o.codemirror,{autorefresh:!0,matchBrackets:!0,autoCloseBrackets:!0,mode:"application/ld+json",lineWrapping:!0}),e(".pspjsoneditor").each(function(){wp.codeEditor.initialize(e(this),o)})}});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
psp-include/settings/js/psp-bulkedit.js
CHANGED
@@ -1,140 +1 @@
|
|
1 |
-
function psp_update_seo_data(
|
2 |
-
//alert(title);
|
3 |
-
var psp_data = {
|
4 |
-
action: 'psp_update_meta_data',
|
5 |
-
pspbedit_ajax_nonce: psp_ajax_bulkeditor_object.pspbeditnonce,
|
6 |
-
title: title,
|
7 |
-
pspvalue: value,
|
8 |
-
pspid: id,
|
9 |
-
};
|
10 |
-
|
11 |
-
jQuery.ajax({
|
12 |
-
type : "post",
|
13 |
-
dataType : "json",
|
14 |
-
url : psp_ajax_bulkeditor_object.bedit_ajax_url,
|
15 |
-
data : psp_data,
|
16 |
-
success: function(response) {
|
17 |
-
//jQuery(loader).addClass('hidden');
|
18 |
-
|
19 |
-
if(response.type === "success") {
|
20 |
-
//write to html
|
21 |
-
jQuery("#updatedmsg-"+id).html(response.message);
|
22 |
-
setTimeout(
|
23 |
-
function()
|
24 |
-
{
|
25 |
-
//do something special
|
26 |
-
jQuery(".pspmsg").addClass('hidden');
|
27 |
-
}, 1000);
|
28 |
-
//alert(response.message);
|
29 |
-
} else if(response.type === "error") {
|
30 |
-
//write to html
|
31 |
-
jQuery("#updatedmsg-"+id).html(response.message);
|
32 |
-
setTimeout(
|
33 |
-
function()
|
34 |
-
{
|
35 |
-
//do something special
|
36 |
-
jQuery(".pspmsg").addClass('hidden');
|
37 |
-
}, 1000);
|
38 |
-
//alert(response.message);
|
39 |
-
}
|
40 |
-
|
41 |
-
jQuery(loader).addClass('hidden');
|
42 |
-
}
|
43 |
-
});
|
44 |
-
/***
|
45 |
-
jQuery.post(psp_ajax_bulkeditor_object.bedit_ajax_url, psp_data, function(response) {
|
46 |
-
jQuery(loader).addClass('hidden');
|
47 |
-
alert(response.type);
|
48 |
-
alert(JSON.stringify(response));
|
49 |
-
if(response.type === "success") {
|
50 |
-
//write to html
|
51 |
-
alert('Update Status: ' + response.message);
|
52 |
-
}
|
53 |
-
//alert('Update Status: ' + response);
|
54 |
-
});
|
55 |
-
***/
|
56 |
-
/***
|
57 |
-
jQuery.post( psp_ajax_bulkeditor_object.bedit_ajax_url, psp_data ).error(
|
58 |
-
function() {
|
59 |
-
jQuery(loader).addClass('hidden');
|
60 |
-
//alert('error');
|
61 |
-
}).success( function(response) {
|
62 |
-
JSON.stringify(response);
|
63 |
-
jQuery(loader).addClass('hidden');
|
64 |
-
if(response.type == "success") {
|
65 |
-
//write to html
|
66 |
-
alert('Update Status: ' + response.message);
|
67 |
-
}
|
68 |
-
//alert('Update Status: ' + response);
|
69 |
-
//alert('success');
|
70 |
-
});
|
71 |
-
|
72 |
-
***/
|
73 |
-
return false;
|
74 |
-
|
75 |
-
}
|
76 |
-
|
77 |
-
jQuery(document).ready(function($) {
|
78 |
-
jQuery('#psp_filter').on('change', function (){
|
79 |
-
if($('#psp_filter').val() === '' ) {
|
80 |
-
$( "#pspsearchfield" ).addClass('hidden');
|
81 |
-
} else {
|
82 |
-
$( "#pspsearchfield" ).removeClass('hidden');
|
83 |
-
}
|
84 |
-
});
|
85 |
-
if($('#psp_filter').val() === '' ) {
|
86 |
-
$( "#pspsearchfield" ).addClass('hidden');
|
87 |
-
} else {
|
88 |
-
$( "#pspsearchfield" ).removeClass('hidden');
|
89 |
-
}
|
90 |
-
jQuery('.psp_meta_updater_btn').keypress(function (e) {
|
91 |
-
var key = e.which;
|
92 |
-
if(key == 13) // the enter key code
|
93 |
-
{
|
94 |
-
$(this).click();
|
95 |
-
return false;
|
96 |
-
}
|
97 |
-
});
|
98 |
-
jQuery('#psp_action').on('change', function (){
|
99 |
-
|
100 |
-
if($(this).val() == 'delete' || $(this).val() == 'deleteall') {
|
101 |
-
|
102 |
-
$("#psp-delete-div").removeClass('hidden');
|
103 |
-
|
104 |
-
} else {
|
105 |
-
|
106 |
-
$("#psp-delete-div").addClass('hidden');
|
107 |
-
|
108 |
-
}
|
109 |
-
|
110 |
-
|
111 |
-
});
|
112 |
-
|
113 |
-
jQuery('.psp_meta_updater_btn').on('click', function (){
|
114 |
-
//jQuery(".psp-titles-loader").show();
|
115 |
-
jQuery(".pspmsg").html("");
|
116 |
-
jQuery(".pspmsg").removeClass('hidden');
|
117 |
-
$btn = $(".psp_data_update-loader");
|
118 |
-
$id = $(this).closest('tr').attr('id');
|
119 |
-
|
120 |
-
if (this.name == "psp_schema") {
|
121 |
-
$('.CodeMirror').each(function(i, el){
|
122 |
-
el.CodeMirror.save();
|
123 |
-
});
|
124 |
-
}
|
125 |
-
|
126 |
-
//if (window['cm_json_editor'+$id]) window['cm_json_editor'+$id].codemirror.save();
|
127 |
-
|
128 |
-
if (this.name == "psp_title") {
|
129 |
-
//alert ("title " + this.name);
|
130 |
-
$value = $("input#editabletext-"+$id).val();
|
131 |
-
} else {
|
132 |
-
//alert ("desc " + this.name);
|
133 |
-
$value = $("textarea#editabletextarea-"+$id).val();
|
134 |
-
}
|
135 |
-
|
136 |
-
$("#loader-"+$id).removeClass('hidden');
|
137 |
-
//$(".psp_data_update-loader").removeClass('hidden');
|
138 |
-
psp_update_seo_data($id, this.name, $value, $btn);
|
139 |
-
});
|
140 |
-
});
|
1 |
+
function psp_update_seo_data(e,s,a,t){var d={action:"psp_update_meta_data",pspbedit_ajax_nonce:psp_ajax_bulkeditor_object.pspbeditnonce,title:s,pspvalue:a,pspid:e};return jQuery.ajax({type:"post",dataType:"json",url:psp_ajax_bulkeditor_object.bedit_ajax_url,data:d,success:function(s){"success"===s.type?(jQuery("#updatedmsg-"+e).html(s.message),setTimeout(function(){jQuery(".pspmsg").addClass("hidden")},1e3)):"error"===s.type&&(jQuery("#updatedmsg-"+e).html(s.message),setTimeout(function(){jQuery(".pspmsg").addClass("hidden")},1e3)),jQuery(t).addClass("hidden")}}),!1}jQuery(document).ready(function(e){jQuery("#psp_filter").on("change",function(){""===e("#psp_filter").val()?e("#pspsearchfield").addClass("hidden"):e("#pspsearchfield").removeClass("hidden")}),""===e("#psp_filter").val()?e("#pspsearchfield").addClass("hidden"):e("#pspsearchfield").removeClass("hidden"),jQuery(".psp_meta_updater_btn").keypress(function(s){if(13==s.which)return e(this).click(),!1}),jQuery("#psp_action").on("change",function(){"delete"==e(this).val()||"deleteall"==e(this).val()?e("#psp-delete-div").removeClass("hidden"):e("#psp-delete-div").addClass("hidden")}),jQuery(".psp_meta_updater_btn").on("click",function(){jQuery(".pspmsg").html(""),jQuery(".pspmsg").removeClass("hidden"),$btn=e(".psp_data_update-loader"),$id=e(this).closest("tr").attr("id"),"psp_schema"==this.name&&e(".CodeMirror").each(function(e,s){s.CodeMirror.save()}),"psp_title"==this.name?$value=e("input#editabletext-"+$id).val():$value=e("textarea#editabletextarea-"+$id).val(),e("#loader-"+$id).removeClass("hidden"),psp_update_seo_data($id,this.name,$value,$btn)})});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
psp-include/settings/psp_bulk_edit_renderer.php
CHANGED
@@ -9,11 +9,11 @@ Author URI: http://techblissonline.com/
|
|
9 |
<?php
|
10 |
if ($psp_meta_type == "schema" ) {
|
11 |
$psp_cm_bulkeditor_json_settings['codeEditor'] = wp_enqueue_code_editor(array('type' => 'json', 'codemirror'=> array('autoRefresh' => true)));
|
12 |
-
wp_enqueue_script( 'psp-bulkeditor-cm-editors', plugins_url( '/js/cm-bulkeditor.js', __FILE__ ),array( 'jquery' ), '2.3.
|
13 |
wp_localize_script('psp-bulkeditor-cm-editors', 'psp_cm_bulkeditor_json_settings', $psp_cm_bulkeditor_json_settings);
|
14 |
}
|
15 |
$psp_bulkedit_meta_nonce = wp_create_nonce( 'psp_bulkedit_meta_nonce' );
|
16 |
-
wp_enqueue_script( 'psp-ajax-bulkedit-script', plugins_url( 'settings/js/psp-bulkedit.js', PSP_PLUGIN_SETTINGS_URL ), array('jquery'), '2.2
|
17 |
wp_localize_script( 'psp-ajax-bulkedit-script', 'psp_ajax_bulkeditor_object', array( 'bedit_ajax_url' => admin_url( 'admin-ajax.php'), 'pspbeditnonce' => $psp_bulkedit_meta_nonce) );
|
18 |
// wp_enqueue_script( 'psp-bulkedit', plugins_url( '/js/psp-bulkedit.js', __FILE__ ), array( 'jquery' ) );
|
19 |
//wp_enqueue_style("psp-settings-css", plugins_url( '/css/psp-settings.css', __FILE__ ));
|
9 |
<?php
|
10 |
if ($psp_meta_type == "schema" ) {
|
11 |
$psp_cm_bulkeditor_json_settings['codeEditor'] = wp_enqueue_code_editor(array('type' => 'json', 'codemirror'=> array('autoRefresh' => true)));
|
12 |
+
wp_enqueue_script( 'psp-bulkeditor-cm-editors', plugins_url( '/js/cm-bulkeditor.js', __FILE__ ),array( 'jquery' ), '2.3.2', true);
|
13 |
wp_localize_script('psp-bulkeditor-cm-editors', 'psp_cm_bulkeditor_json_settings', $psp_cm_bulkeditor_json_settings);
|
14 |
}
|
15 |
$psp_bulkedit_meta_nonce = wp_create_nonce( 'psp_bulkedit_meta_nonce' );
|
16 |
+
wp_enqueue_script( 'psp-ajax-bulkedit-script', plugins_url( 'settings/js/psp-bulkedit.js', PSP_PLUGIN_SETTINGS_URL ), array('jquery'), '2.3.2' );
|
17 |
wp_localize_script( 'psp-ajax-bulkedit-script', 'psp_ajax_bulkeditor_object', array( 'bedit_ajax_url' => admin_url( 'admin-ajax.php'), 'pspbeditnonce' => $psp_bulkedit_meta_nonce) );
|
18 |
// wp_enqueue_script( 'psp-bulkedit', plugins_url( '/js/psp-bulkedit.js', __FILE__ ), array( 'jquery' ) );
|
19 |
//wp_enqueue_style("psp-settings-css", plugins_url( '/css/psp-settings.css', __FILE__ ));
|
psp-include/settings/psp_rolecap_settings.php
CHANGED
@@ -109,10 +109,10 @@ class PspRcapSettings extends PspSettings {
|
|
109 |
|
110 |
if ($psp_premium_valid) {
|
111 |
|
112 |
-
$psp_capabilities = array( 'metabox' => 'Platinum SEO MetaBox', 'analysis' => 'SEO Analysis', 'advancedseo' => 'Advanced SEO', 'basicsocial' => 'Basic Social', 'advancedsocial' => 'Advanced social', 'internallinks' => 'Internal Links', 'psp_general' => 'Platinum SEO & Social Pack', 'psp_home' => 'SEO - Home', 'psp_pt' => 'SEO - PostType', 'psp_taxonomy' => 'SEO - Taxonomy', 'psp_archive' => 'SEO - Archives', 'psp_permalink' => 'SEO - Permalinks', 'psp_sitemap' => 'SEO - Sitemaps', 'psp_others' => 'SEO - Others', 'psp_breadcrumb' => 'SEO - Breadcrumbs', 'psp_social' => 'Social', 'psp_robotstxt' => '
|
113 |
} else {
|
114 |
|
115 |
-
$psp_capabilities = array( 'metabox' => 'Platinum SEO MetaBox', 'analysis' => 'SEO Analysis', 'advancedseo' => 'Advanced SEO', 'basicsocial' => 'Basic Social', 'advancedsocial' => 'Advanced social', 'internallinks' => 'Internal Links', 'psp_general' => 'Platinum SEO & Social Pack', 'psp_home' => 'SEO - Home', 'psp_pt' => 'SEO - PostType', 'psp_taxonomy' => 'SEO - Taxonomy', 'psp_archive' => 'SEO - Archives', 'psp_permalink' => 'SEO - Permalinks', 'psp_sitemap' => 'SEO - Sitemaps', 'psp_others' => 'SEO - Others', 'psp_breadcrumb' => 'SEO - Breadcrumbs', 'psp_social' => 'Social', 'psp_robotstxt' => '
|
116 |
|
117 |
}
|
118 |
|
@@ -195,7 +195,7 @@ class PspRcapSettings extends PspSettings {
|
|
195 |
|
196 |
//$psp_capabilities = array( 'metabox', 'basicseo', 'analysis', 'advancedseo', 'basicsocial', 'advancedsocial', 'internallinks', 'seosettings', 'general', 'home', 'posttype', 'taxonomy', 'archives', 'permalinks', 'sitemaps', 'others', 'breadcrumbs', 'socialsettings', 'editors', 'importer', 'redirections', 'manager404', 'license', 'auditsettings', 'auditreports' );
|
197 |
|
198 |
-
$psp_capabilities = array( 'metabox', 'basicseo', 'analysis', 'advancedseo', 'basicsocial', 'advancedsocial', 'internallinks', 'psp_general', 'psp_home', 'psp_pt', 'psp_taxonomy', 'psp_archive', 'psp_permalink', 'psp_sitemap', 'psp_others', 'psp_breadcrumb', 'psp_social', 'psp_robotstxt', '
|
199 |
|
200 |
$capabilities = array();
|
201 |
$role_capability_arr = array();
|
109 |
|
110 |
if ($psp_premium_valid) {
|
111 |
|
112 |
+
$psp_capabilities = array( 'metabox' => 'Platinum SEO MetaBox', 'analysis' => 'SEO Analysis', 'advancedseo' => 'Advanced SEO', 'basicsocial' => 'Basic Social', 'advancedsocial' => 'Advanced social', 'internallinks' => 'Internal Links', 'psp_general' => 'Platinum SEO & Social Pack', 'psp_home' => 'SEO - Home', 'psp_pt' => 'SEO - PostType', 'psp_taxonomy' => 'SEO - Taxonomy', 'psp_archive' => 'SEO - Archives', 'psp_permalink' => 'SEO - Permalinks', 'psp_sitemap' => 'SEO - Sitemaps', 'psp_others' => 'SEO - Others', 'psp_breadcrumb' => 'SEO - Breadcrumbs', 'psp_social' => 'Social', 'psp_tools' => 'Tools', 'psp_bulkeditor' => 'Bulk Editor', 'psp_robotstxt' => 'Robots.txt Editor', 'psp_analytics' => 'GA Tracking Code Editor', 'psp_htaccess' => '.htaccess Editor', 'psp_importer' => 'Import from other Plugins', 'psp_pluginsettings' => 'Export/Import Settings & Meta Data', 'redirections' => 'Redirections', 'manager404' => '404 manager', 'adminbarmenu' => 'AdminBar Menu', 'auditsettings' => 'Audit Settings', 'auditreports' => 'Audit Reports');
|
113 |
} else {
|
114 |
|
115 |
+
$psp_capabilities = array( 'metabox' => 'Platinum SEO MetaBox', 'analysis' => 'SEO Analysis', 'advancedseo' => 'Advanced SEO', 'basicsocial' => 'Basic Social', 'advancedsocial' => 'Advanced social', 'internallinks' => 'Internal Links', 'psp_general' => 'Platinum SEO & Social Pack', 'psp_home' => 'SEO - Home', 'psp_pt' => 'SEO - PostType', 'psp_taxonomy' => 'SEO - Taxonomy', 'psp_archive' => 'SEO - Archives', 'psp_permalink' => 'SEO - Permalinks', 'psp_sitemap' => 'SEO - Sitemaps', 'psp_others' => 'SEO - Others', 'psp_breadcrumb' => 'SEO - Breadcrumbs', 'psp_social' => 'Social', 'psp_tools' => 'Tools', 'psp_bulkeditor' => 'Bulk Editor', 'psp_robotstxt' => 'Robots.txt Editor', 'psp_analytics' => 'GA Tracking Code Editor', 'psp_htaccess' => '.htaccess Editor', 'psp_importer' => 'Import from other Plugins', 'psp_pluginsettings' => 'Export/Import Settings & Meta Data', 'redirections' => 'Redirections', 'manager404' => '404 manager', 'adminbarmenu' => 'AdminBar Menu');
|
116 |
|
117 |
}
|
118 |
|
195 |
|
196 |
//$psp_capabilities = array( 'metabox', 'basicseo', 'analysis', 'advancedseo', 'basicsocial', 'advancedsocial', 'internallinks', 'seosettings', 'general', 'home', 'posttype', 'taxonomy', 'archives', 'permalinks', 'sitemaps', 'others', 'breadcrumbs', 'socialsettings', 'editors', 'importer', 'redirections', 'manager404', 'license', 'auditsettings', 'auditreports' );
|
197 |
|
198 |
+
$psp_capabilities = array( 'metabox', 'basicseo', 'analysis', 'advancedseo', 'basicsocial', 'advancedsocial', 'internallinks', 'psp_general', 'psp_home', 'psp_pt', 'psp_taxonomy', 'psp_archive', 'psp_permalink', 'psp_sitemap', 'psp_others', 'psp_breadcrumb', 'psp_social', 'psp_tools', 'psp_bulkeditor', 'psp_htaccess', 'psp_analytics', 'psp_robotstxt', 'psp_pluginsettings', 'psp_importer', 'redirections', 'manager404', 'adminbarmenu', 'psp_pre_credentials', 'auditsettings', 'auditreports' );
|
199 |
|
200 |
$capabilities = array();
|
201 |
$role_capability_arr = array();
|
psp-include/settings/psp_settings.php
CHANGED
@@ -2947,15 +2947,15 @@ class PspSettings {
|
|
2947 |
}
|
2948 |
//add_submenu_page($this->psp_plugin_options_key, __('Techblissonline Platinum SEO Premium Pack', 'platinum-seo-pack'), __('SEO - Advanced', 'platinum-seo-pack'), 'manage_options', 'webmastertools', array($this->psp_wmt_instance, 'psp_wmt_options_page'));
|
2949 |
//add_submenu_page($this->psp_plugin_options_key, __('Techblissonline Platinum SEO Analytics', 'platinum-seo-pack'), __('SEO - Analytics', 'platinum-seo-pack'), 'manage_options', 'psp-gatracking-by-techblissonline', array($this->psp_ga_instance, 'psp_ga_options_page'));
|
2950 |
-
if ($this->psp_helper->user_has_access('
|
2951 |
-
add_submenu_page($this->psp_plugin_options_key, esc_html__('Techblissonline Platinum SEO Tools', 'platinum-seo-pack'), '<span class="dashicons dashicons-edit"></span> '.esc_html__('
|
2952 |
}
|
2953 |
-
add_submenu_page($this->psp_plugin_options_key, esc_html__('Techblissonline Platinum SEO Premium Pack', 'platinum-seo-pack'), '<span class="dashicons dashicons-admin-tools"></span> '.esc_html__(' SEO Tools', 'platinum-seo-pack'), 'edit_posts', 'psp-seo-tools-by-techblissonline', array( &$this, 'psp_pre_tools_display_page'));
|
2954 |
if ($this->psp_helper->user_has_access('redirections')) {
|
2955 |
-
$psp_redir_page = add_submenu_page($this->psp_plugin_options_key, esc_html__('Techblissonline Platinum SEO Redirections', 'platinum-seo-pack'), '<span class="dashicons dashicons-
|
2956 |
}
|
2957 |
if ($this->psp_helper->user_has_access('manager404')) {
|
2958 |
-
$psp_404_page = add_submenu_page($this->psp_plugin_options_key, esc_html__('Techblissonline Platinum SEO 404 Manager', 'platinum-seo-pack'), '<span class="dashicons dashicons-
|
2959 |
}
|
2960 |
add_submenu_page($this->psp_plugin_options_key, esc_html__('Techblissonline Platinum SEO Premium Pack', 'platinum-seo-pack'), '<span class="dashicons dashicons-admin-network"></span> '.esc_html__('Role Manager', 'platinum-seo-pack'), 'manage_options', 'pspp-caps', array($this->psp_rcap_instance, 'psp_rolecap_options_page'));
|
2961 |
//add_submenu_page($this->psp_plugin_options_key, esc_html__('Techblissonline Platinum SEO Premium Pack', 'platinum-seo-pack'), __('Techblissonline - SEO Tools', 'platinum-seo-pack'), 'manage_options', 'psp-seo-tools-by-techblissonline', array($this->psp_pre_instance, 'psp_pre_options_page'));
|
2947 |
}
|
2948 |
//add_submenu_page($this->psp_plugin_options_key, __('Techblissonline Platinum SEO Premium Pack', 'platinum-seo-pack'), __('SEO - Advanced', 'platinum-seo-pack'), 'manage_options', 'webmastertools', array($this->psp_wmt_instance, 'psp_wmt_options_page'));
|
2949 |
//add_submenu_page($this->psp_plugin_options_key, __('Techblissonline Platinum SEO Analytics', 'platinum-seo-pack'), __('SEO - Analytics', 'platinum-seo-pack'), 'manage_options', 'psp-gatracking-by-techblissonline', array($this->psp_ga_instance, 'psp_ga_options_page'));
|
2950 |
+
if ($this->psp_helper->user_has_access('psp_tools')) {
|
2951 |
+
add_submenu_page($this->psp_plugin_options_key, esc_html__('Techblissonline Platinum SEO Tools', 'platinum-seo-pack'), '<span class="dashicons dashicons-edit"></span> '.esc_html__('Tools', 'platinum-seo-pack'), 'edit_posts', 'psp-tools-by-techblissonline', array($this->psp_tools_instance, 'psp_tools_options_page'));
|
2952 |
}
|
2953 |
+
//add_submenu_page($this->psp_plugin_options_key, esc_html__('Techblissonline Platinum SEO Premium Pack', 'platinum-seo-pack'), '<span class="dashicons dashicons-admin-tools"></span> '.esc_html__(' SEO Tools', 'platinum-seo-pack'), 'edit_posts', 'psp-seo-tools-by-techblissonline', array( &$this, 'psp_pre_tools_display_page'));
|
2954 |
if ($this->psp_helper->user_has_access('redirections')) {
|
2955 |
+
$psp_redir_page = add_submenu_page($this->psp_plugin_options_key, esc_html__('Techblissonline Platinum SEO Redirections', 'platinum-seo-pack'), '<span class="dashicons dashicons-randomize"></span> '.esc_html__('Redirections', 'platinum-seo-pack'), 'edit_posts', 'redirectionmanager', array($this->psp_redirect_instance, 'redir_mgmtpage'));
|
2956 |
}
|
2957 |
if ($this->psp_helper->user_has_access('manager404')) {
|
2958 |
+
$psp_404_page = add_submenu_page($this->psp_plugin_options_key, esc_html__('Techblissonline Platinum SEO 404 Manager', 'platinum-seo-pack'), '<span class="dashicons dashicons-editor-unlink"></span> '.esc_html__('Manage 404 Errors', 'platinum-seo-pack'), 'edit_posts', 'manager404', array($this->psp_redirect_instance, 'manage_404_page'));
|
2959 |
}
|
2960 |
add_submenu_page($this->psp_plugin_options_key, esc_html__('Techblissonline Platinum SEO Premium Pack', 'platinum-seo-pack'), '<span class="dashicons dashicons-admin-network"></span> '.esc_html__('Role Manager', 'platinum-seo-pack'), 'manage_options', 'pspp-caps', array($this->psp_rcap_instance, 'psp_rolecap_options_page'));
|
2961 |
//add_submenu_page($this->psp_plugin_options_key, esc_html__('Techblissonline Platinum SEO Premium Pack', 'platinum-seo-pack'), __('Techblissonline - SEO Tools', 'platinum-seo-pack'), 'manage_options', 'psp-seo-tools-by-techblissonline', array($this->psp_pre_instance, 'psp_pre_options_page'));
|
psp-include/settings/psp_tools_renderer.php
CHANGED
@@ -242,7 +242,7 @@ settings_errors( 'psp_tools_renderer' );
|
|
242 |
<div class="row m-2 p-1"><div class="h3 col-sm-12">
|
243 |
<a class="bookmarkme" href="<?php echo 'https://techblissonline.com/tools/'; ?>" target="_blank"><img src="<?php echo esc_url(PSP_PLUGIN_URL).'images/techblissonline-logo.png'; ?>" class="img-responsive" alt="Techblissonline Platinum SEO Wordpress Tools"/></a></div></div>
|
244 |
</div><!-- end of #logo -->
|
245 |
-
<?php if ($this->psp_helper->user_has_access('
|
246 |
<div class="clearfix"></div>
|
247 |
<div class="container bg-info" id="header" style="width:90%">
|
248 |
<h2 class="btn-success"> <?php esc_html_e('Import Platinum SEO Data', 'platinum-seo-pack'); ?> </h2>
|
242 |
<div class="row m-2 p-1"><div class="h3 col-sm-12">
|
243 |
<a class="bookmarkme" href="<?php echo 'https://techblissonline.com/tools/'; ?>" target="_blank"><img src="<?php echo esc_url(PSP_PLUGIN_URL).'images/techblissonline-logo.png'; ?>" class="img-responsive" alt="Techblissonline Platinum SEO Wordpress Tools"/></a></div></div>
|
244 |
</div><!-- end of #logo -->
|
245 |
+
<?php if ($this->psp_helper->user_has_access('psp_pluginsettings')) { ?>
|
246 |
<div class="clearfix"></div>
|
247 |
<div class="container bg-info" id="header" style="width:90%">
|
248 |
<h2 class="btn-success"> <?php esc_html_e('Import Platinum SEO Data', 'platinum-seo-pack'); ?> </h2>
|
psp-include/settings/psp_tools_settings.php
CHANGED
@@ -24,6 +24,9 @@ class PspToolSettings extends PspSettings {
|
|
24 |
private $psp_htaccess_settings_group = 'psp_htaccess';
|
25 |
private $psp_ga_settings_group = 'psp_analytics';
|
26 |
private $psp_bulk_editor_group = 'psp_bulkeditor';
|
|
|
|
|
|
|
27 |
|
28 |
protected $psp_plugin_options_key = 'psp-tools-by-techblissonline';
|
29 |
private $psp_settings_tabs = array();
|
@@ -53,9 +56,17 @@ class PspToolSettings extends PspSettings {
|
|
53 |
$this->sitename = $psp_helper_instance->get_sitename();
|
54 |
|
55 |
$this->psp_settings_tabs[$this->psp_bulk_editor_group] = 'Bulk Editor';
|
|
|
|
|
56 |
$this->psp_settings_tabs[$this->psp_ga_settings_group] = 'GA Tracking Code Editor';
|
57 |
$this->psp_settings_tabs[$this->psp_robots_settings_group] = 'Robots.txt Editor';
|
58 |
-
$this->psp_settings_tabs[$this->psp_htaccess_settings_group] = '.htaccess Editor';
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
|
60 |
add_action( 'admin_init', array( &$this, 'psp_tools_settings_init' ) );
|
61 |
add_action( 'admin_menu', array( &$this, 'psp_tools_admin_menu' ) );
|
@@ -519,6 +530,7 @@ class PspToolSettings extends PspSettings {
|
|
519 |
*/
|
520 |
function psp_tools_options_page() {
|
521 |
$tab = isset( $_GET['psptools'] ) ? sanitize_key($_GET['psptools']) : $this->psp_bulk_editor_group;
|
|
|
522 |
if ($tab == $this->psp_robots_settings_group) {
|
523 |
$psp_button = "submitrobotstxt";
|
524 |
$psp_nonce_field = "psp-robotstxt-nonce";
|
@@ -542,10 +554,16 @@ class PspToolSettings extends PspSettings {
|
|
542 |
wp_enqueue_script( 'psp-cmjs', plugins_url( '/js/cmjs.js', __FILE__ ),array( 'jquery' ), false, true);
|
543 |
} elseif ($tab == $this->psp_bulk_editor_group) {
|
544 |
$psp_nonce_field = "psp-bulkedit-nonce";
|
545 |
-
$psp_nonce_name = "psp-be";
|
546 |
-
|
547 |
-
|
548 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
549 |
}
|
550 |
/**
|
551 |
//if ( isset( $_POST['submitrobotstxt'] ) ) {
|
@@ -616,8 +634,9 @@ class PspToolSettings extends PspSettings {
|
|
616 |
<div class="wrap">
|
617 |
<h1 style='line-height:30px;'><?php esc_html_e('Techblissonline Platinum SEO Pack Tools', 'platinum-seo-pack') ?></h1>
|
618 |
<p style="color: red"><?php esc_html_e('You need to click the "Save Settings" button to save the changes you made to each individual tab before moving on to the next tab.', 'platinum-seo-pack') ?></p>
|
619 |
-
<?php $this->psp_tools_tabs();
|
620 |
-
|
|
|
621 |
?>
|
622 |
|
623 |
<form name="platinum-seo-form" method="post" action="options.php">
|
@@ -625,9 +644,15 @@ class PspToolSettings extends PspSettings {
|
|
625 |
<?php settings_fields( $tab ); ?>
|
626 |
<?php settings_errors(); ?>
|
627 |
<?php do_settings_sections( $tab ); ?>
|
628 |
-
|
|
|
|
|
|
|
629 |
</form>
|
630 |
-
|
|
|
|
|
|
|
631 |
<div class="sidebar-cta">
|
632 |
<h2>
|
633 |
<a class="bookmarkme" href="<?php echo 'https://techblissonline.com/tools/'; ?>" target="_blank"><img src="<?php echo esc_url(PSP_PLUGIN_URL).'images/techblissonline-logo.png'; ?>" class="img-responsive" alt="Techblissonline Platinum SEO Wordpress Tools"/></a>
|
@@ -997,6 +1022,8 @@ class PspToolSettings extends PspSettings {
|
|
997 |
*/
|
998 |
function psp_tools_tabs() {
|
999 |
$current_tab = isset( $_GET['psptools'] ) ? sanitize_key($_GET['psptools']) : $this->psp_bulk_editor_group;
|
|
|
|
|
1000 |
//$current_tab = $active_tab;
|
1001 |
if ($current_tab !== $this->psp_bulk_editor_group) {
|
1002 |
//wp_enqueue_style("psp-settings-bs-css", plugins_url( '/css/psp-settings-bs.css', __FILE__ ));
|
@@ -1011,24 +1038,57 @@ class PspToolSettings extends PspSettings {
|
|
1011 |
foreach ( $this->psp_settings_tabs as $tab_key => $tab_caption ) {
|
1012 |
$active = $current_tab == $tab_key ? 'nav-tab-active' : '';
|
1013 |
$psp_icon = '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1014 |
if ($tab_key == $this->psp_bulk_editor_group) {
|
1015 |
-
$psp_icon = '<span class="dashicons dashicons-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1016 |
}
|
1017 |
if ($tab_key == $this->psp_ga_settings_group) {
|
1018 |
-
$psp_icon = '<span class="dashicons dashicons-
|
1019 |
}
|
1020 |
if ($tab_key == $this->psp_robots_settings_group) {
|
1021 |
-
$psp_icon = '<span class="dashicons dashicons-
|
1022 |
}
|
1023 |
if ($tab_key == $this->psp_htaccess_settings_group) {
|
1024 |
-
$psp_icon = '<span class="dashicons dashicons-
|
1025 |
-
}
|
1026 |
-
|
|
|
|
|
|
|
|
|
|
|
1027 |
|
1028 |
}
|
1029 |
echo '</h2>';
|
1030 |
-
|
|
|
1031 |
$this->bulkedit_mgmtpage();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1032 |
}
|
|
|
|
|
|
|
|
|
1033 |
}
|
1034 |
}
|
24 |
private $psp_htaccess_settings_group = 'psp_htaccess';
|
25 |
private $psp_ga_settings_group = 'psp_analytics';
|
26 |
private $psp_bulk_editor_group = 'psp_bulkeditor';
|
27 |
+
private $psp_importer_group = 'psp_importer';
|
28 |
+
private $psp_plugin_settings_group = 'psp_pluginsettings';
|
29 |
+
private $psp_wizard_group = 'psp_wizard';
|
30 |
|
31 |
protected $psp_plugin_options_key = 'psp-tools-by-techblissonline';
|
32 |
private $psp_settings_tabs = array();
|
56 |
$this->sitename = $psp_helper_instance->get_sitename();
|
57 |
|
58 |
$this->psp_settings_tabs[$this->psp_bulk_editor_group] = 'Bulk Editor';
|
59 |
+
$this->psp_settings_tabs[$this->psp_importer_group] = 'Import from Other Plugins';
|
60 |
+
$this->psp_settings_tabs[$this->psp_plugin_settings_group] = 'Export/import Settings & Meta Data';
|
61 |
$this->psp_settings_tabs[$this->psp_ga_settings_group] = 'GA Tracking Code Editor';
|
62 |
$this->psp_settings_tabs[$this->psp_robots_settings_group] = 'Robots.txt Editor';
|
63 |
+
$this->psp_settings_tabs[$this->psp_htaccess_settings_group] = '.htaccess Editor';
|
64 |
+
$this->psp_settings_tabs[$this->psp_wizard_group] = 'SetUp wizard';
|
65 |
+
|
66 |
+
$this->psp_import_instance = PspImporter::get_instance();
|
67 |
+
|
68 |
+
$this->psp_wizard_instance = PspWizardSettings::get_instance();
|
69 |
+
$this->psp_wizard_instance->psp_settings_instance = $this;
|
70 |
|
71 |
add_action( 'admin_init', array( &$this, 'psp_tools_settings_init' ) );
|
72 |
add_action( 'admin_menu', array( &$this, 'psp_tools_admin_menu' ) );
|
530 |
*/
|
531 |
function psp_tools_options_page() {
|
532 |
$tab = isset( $_GET['psptools'] ) ? sanitize_key($_GET['psptools']) : $this->psp_bulk_editor_group;
|
533 |
+
//if( $this->psp_helper->user_has_access( $tab ) ) $tab = '';
|
534 |
if ($tab == $this->psp_robots_settings_group) {
|
535 |
$psp_button = "submitrobotstxt";
|
536 |
$psp_nonce_field = "psp-robotstxt-nonce";
|
554 |
wp_enqueue_script( 'psp-cmjs', plugins_url( '/js/cmjs.js', __FILE__ ),array( 'jquery' ), false, true);
|
555 |
} elseif ($tab == $this->psp_bulk_editor_group) {
|
556 |
$psp_nonce_field = "psp-bulkedit-nonce";
|
557 |
+
$psp_nonce_name = "psp-be";
|
558 |
+
} elseif ($tab == $this->psp_importer_group) {
|
559 |
+
$psp_nonce_field = "psp-bimportert-nonce";
|
560 |
+
$psp_nonce_name = "psp-importer";
|
561 |
+
} elseif ($tab == $this->psp_plugin_settings_group) {
|
562 |
+
$psp_nonce_field = "psp-plugin-settings-nonce";
|
563 |
+
$psp_nonce_name = "psp-settings-importer";
|
564 |
+
} elseif ($tab == $this->psp_wizard_group) {
|
565 |
+
$psp_nonce_field = "psp-wizard-nonce";
|
566 |
+
$psp_nonce_name = "psp-wizard";
|
567 |
}
|
568 |
/**
|
569 |
//if ( isset( $_POST['submitrobotstxt'] ) ) {
|
634 |
<div class="wrap">
|
635 |
<h1 style='line-height:30px;'><?php esc_html_e('Techblissonline Platinum SEO Pack Tools', 'platinum-seo-pack') ?></h1>
|
636 |
<p style="color: red"><?php esc_html_e('You need to click the "Save Settings" button to save the changes you made to each individual tab before moving on to the next tab.', 'platinum-seo-pack') ?></p>
|
637 |
+
<?php $this->psp_tools_tabs(); ?>
|
638 |
+
<?php if ($this->psp_helper->user_has_access( $tab )) {
|
639 |
+
//if ($tab !== $this->psp_bulk_editor_group && $tab !== $this->psp_importer_group && $tab !== $this->psp_plugin_settings_group && $tab !== $this->psp_wizard_group ) {
|
640 |
?>
|
641 |
|
642 |
<form name="platinum-seo-form" method="post" action="options.php">
|
644 |
<?php settings_fields( $tab ); ?>
|
645 |
<?php settings_errors(); ?>
|
646 |
<?php do_settings_sections( $tab ); ?>
|
647 |
+
|
648 |
+
<?php if ($tab == $this->psp_robots_settings_group || $tab == $this->psp_htaccess_settings_group || $tab == $this->psp_ga_settings_group) {
|
649 |
+
submit_button('Save Settings', 'primary', $psp_button); } ?>
|
650 |
+
|
651 |
</form>
|
652 |
+
<?php } else { ?>
|
653 |
+
<p style="color: red"><?php esc_html_e('You do not have access to this Options (Settings) tab of Techblissonline Platinum SEO Tools', 'platinum-seo-pack') ?></p>
|
654 |
+
<?php } ?>
|
655 |
+
<?php if ($tab == $this->psp_robots_settings_group || $tab == $this->psp_htaccess_settings_group || $tab == $this->psp_ga_settings_group) { ?>
|
656 |
<div class="sidebar-cta">
|
657 |
<h2>
|
658 |
<a class="bookmarkme" href="<?php echo 'https://techblissonline.com/tools/'; ?>" target="_blank"><img src="<?php echo esc_url(PSP_PLUGIN_URL).'images/techblissonline-logo.png'; ?>" class="img-responsive" alt="Techblissonline Platinum SEO Wordpress Tools"/></a>
|
1022 |
*/
|
1023 |
function psp_tools_tabs() {
|
1024 |
$current_tab = isset( $_GET['psptools'] ) ? sanitize_key($_GET['psptools']) : $this->psp_bulk_editor_group;
|
1025 |
+
//$current_tab = isset( $_GET['psptools'] ) ? sanitize_key($_GET['psptools']) : '';
|
1026 |
+
//if( !$this->psp_helper->user_has_access( $current_tab ) ) $current_tab = '';
|
1027 |
//$current_tab = $active_tab;
|
1028 |
if ($current_tab !== $this->psp_bulk_editor_group) {
|
1029 |
//wp_enqueue_style("psp-settings-bs-css", plugins_url( '/css/psp-settings-bs.css', __FILE__ ));
|
1038 |
foreach ( $this->psp_settings_tabs as $tab_key => $tab_caption ) {
|
1039 |
$active = $current_tab == $tab_key ? 'nav-tab-active' : '';
|
1040 |
$psp_icon = '';
|
1041 |
+
if (($tab_key !== $this->psp_wizard_group && $tab_key !== $this->psp_bulk_editor_group && $tab_key !== $this->psp_plugin_settings_group) && ! $this->psp_helper->user_has_access( $tab_key ) ) {
|
1042 |
+
continue;
|
1043 |
+
}
|
1044 |
+
if ( ($tab_key == $this->psp_wizard_group) && ! current_user_can( 'manage_options' ) ) {
|
1045 |
+
continue;
|
1046 |
+
}
|
1047 |
+
|
1048 |
if ($tab_key == $this->psp_bulk_editor_group) {
|
1049 |
+
$psp_icon = '<span class="dashicons dashicons-edit-large"></span> ';
|
1050 |
+
}
|
1051 |
+
if ($tab_key == $this->psp_importer_group) {
|
1052 |
+
$psp_icon = '<span class="dashicons dashicons-database-import"></span> ';
|
1053 |
+
}
|
1054 |
+
if ($tab_key == $this->psp_wizard_group) {
|
1055 |
+
$psp_icon = '<span class="dashicons dashicons-admin-settings"></span> ';
|
1056 |
+
}
|
1057 |
+
if ($tab_key == $this->psp_plugin_settings_group) {
|
1058 |
+
$psp_icon = '<span class="dashicons dashicons-database-export"></span> ';
|
1059 |
}
|
1060 |
if ($tab_key == $this->psp_ga_settings_group) {
|
1061 |
+
$psp_icon = '<span class="dashicons dashicons-edit-page"></span> ';
|
1062 |
}
|
1063 |
if ($tab_key == $this->psp_robots_settings_group) {
|
1064 |
+
$psp_icon = '<span class="dashicons dashicons-edit-page"></span> ';
|
1065 |
}
|
1066 |
if ($tab_key == $this->psp_htaccess_settings_group) {
|
1067 |
+
$psp_icon = '<span class="dashicons dashicons-edit-page"></span> ';
|
1068 |
+
}
|
1069 |
+
if ($tab_key == $this->psp_wizard_group) {
|
1070 |
+
echo '<a style="text-decoration:none" class="nav-tab ' . esc_attr($active) . '" href="?page=' . esc_attr('wizard') . '">' . $psp_icon. esc_attr($tab_caption) .'</a>';
|
1071 |
+
|
1072 |
+
} else {
|
1073 |
+
echo '<a style="text-decoration:none" class="nav-tab ' . esc_attr($active) . '" href="?page=' . esc_attr($this->psp_plugin_options_key) . '&psptools=' . esc_attr($tab_key) . '">' . $psp_icon. esc_attr($tab_caption) . '</a>';
|
1074 |
+
}
|
1075 |
|
1076 |
}
|
1077 |
echo '</h2>';
|
1078 |
+
|
1079 |
+
if ($current_tab == $this->psp_bulk_editor_group && $this->psp_helper->user_has_access( $current_tab )) {
|
1080 |
$this->bulkedit_mgmtpage();
|
1081 |
+
}
|
1082 |
+
if ($current_tab == $this->psp_importer_group && $this->psp_helper->user_has_access( $current_tab )) {
|
1083 |
+
$this->psp_import_instance->pspimport_mgmtpage();
|
1084 |
+
}
|
1085 |
+
if ($current_tab == $this->psp_plugin_settings_group) {
|
1086 |
+
wp_enqueue_style("psp-settings-bswide-css", plugins_url( '/css/psp-settings-bswide.css', __FILE__ ));
|
1087 |
+
include( 'psp_tools_renderer.php' );
|
1088 |
}
|
1089 |
+
if ($current_tab == $this->psp_wizard_group && current_user_can( 'manage_options' )) {
|
1090 |
+
$this->psp_wizard_instance->psp_wizard_page();
|
1091 |
+
|
1092 |
+
}
|
1093 |
}
|
1094 |
}
|
psp-include/utilities/psp_helper.php
CHANGED
@@ -19,7 +19,7 @@ class PspHelper {
|
|
19 |
* as description. Touch only if you know what you're doing
|
20 |
*/
|
21 |
private $min_description_length = 1;
|
22 |
-
private $version = "2.3.
|
23 |
|
24 |
public $sitename = "";
|
25 |
public $sitedescription = "";
|
19 |
* as description. Touch only if you know what you're doing
|
20 |
*/
|
21 |
private $min_description_length = 1;
|
22 |
+
private $version = "2.3.2";
|
23 |
|
24 |
public $sitename = "";
|
25 |
public $sitedescription = "";
|
psp_main.php
CHANGED
@@ -287,14 +287,14 @@ class PspMain {
|
|
287 |
$user_id = get_current_user_id();
|
288 |
// Add the meta so that the notice is permanently dismissed.
|
289 |
//delete_user_meta( $user_id, 'psp_ignore_notice_v_209' );
|
290 |
-
update_user_meta( $user_id, 'psp_ignore_notice', "
|
291 |
};
|
292 |
};
|
293 |
}
|
294 |
|
295 |
public function platinum_seo_admin_notice__success() {
|
296 |
$user_id = get_current_user_id();
|
297 |
-
if ( "
|
298 |
global $pagenow;
|
299 |
$psp_pages = array('platinum-seo-social-pack-by-techblissonline', 'psp-social-by-techblissonline', 'psp-tools-by-techblissonline', 'pspp-licenses');
|
300 |
if ('index.php' === $pagenow || ( $pagenow == 'admin.php' && in_array(sanitize_key($_GET['page']), $psp_pages))) {
|
@@ -304,7 +304,7 @@ class PspMain {
|
|
304 |
'psp_ignore_notice' => '1',
|
305 |
'action' => 'psp_delete_adminnotice',
|
306 |
'nonce' => wp_create_nonce('psp_delete_adminnotice'),
|
307 |
-
] ) ) .'" style="float:right; display:block; border:none;">'.esc_html__( 'Dismiss permanently', 'platinum-seo-pack' ) .'</a>'.'<br>'. esc_html__( 'See What has Changed in this', 'platinum-seo-pack' ).'<a href="https://techblissonline.com/platinum-wordpress-seo-plugin/#what-is-new" target="_blank" rel="noopener"> '.esc_html__( ' Version ', 'platinum-seo-pack' ).'2.3.
|
308 |
</div>
|
309 |
<?php
|
310 |
}
|
287 |
$user_id = get_current_user_id();
|
288 |
// Add the meta so that the notice is permanently dismissed.
|
289 |
//delete_user_meta( $user_id, 'psp_ignore_notice_v_209' );
|
290 |
+
update_user_meta( $user_id, 'psp_ignore_notice', "v_232" );
|
291 |
};
|
292 |
};
|
293 |
}
|
294 |
|
295 |
public function platinum_seo_admin_notice__success() {
|
296 |
$user_id = get_current_user_id();
|
297 |
+
if ( "v_232" === trim(get_user_meta( $user_id, 'psp_ignore_notice', true ) )) return;
|
298 |
global $pagenow;
|
299 |
$psp_pages = array('platinum-seo-social-pack-by-techblissonline', 'psp-social-by-techblissonline', 'psp-tools-by-techblissonline', 'pspp-licenses');
|
300 |
if ('index.php' === $pagenow || ( $pagenow == 'admin.php' && in_array(sanitize_key($_GET['page']), $psp_pages))) {
|
304 |
'psp_ignore_notice' => '1',
|
305 |
'action' => 'psp_delete_adminnotice',
|
306 |
'nonce' => wp_create_nonce('psp_delete_adminnotice'),
|
307 |
+
] ) ) .'" style="float:right; display:block; border:none;">'.esc_html__( 'Dismiss permanently', 'platinum-seo-pack' ) .'</a>'.'<br>'. esc_html__( 'See What has Changed in this', 'platinum-seo-pack' ).'<a href="https://techblissonline.com/platinum-wordpress-seo-plugin/#what-is-new" target="_blank" rel="noopener"> '.esc_html__( ' Version ', 'platinum-seo-pack' ).'2.3.2'.esc_html__( ' and earlier Versions!', 'platinum-seo-pack' ) .'</a>'.'<br>'.esc_html__( 'Like this Plugin? Pls. give it a rating on WordPress', 'platinum-seo-pack' ).'<a href="https://wordpress.org/support/plugin/platinum-seo-pack/reviews/#new-post" target="_blank" rel="noopener">'.esc_html__(' here','platinum-seo-pack' ).'</a>'; ?></p></strong>
|
308 |
</div>
|
309 |
<?php
|
310 |
}
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Tags: seo, wordpress seo, plugin, google seo, platinum seo, schema, schema marku
|
|
6 |
Requires at least: 4.0
|
7 |
Tested up to: 5.6
|
8 |
Requires PHP: 5.6
|
9 |
-
Stable tag: 2.3.
|
10 |
License: GPLv2 or later
|
11 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -52,7 +52,7 @@ Some features:
|
|
52 |
25) supports import of SEO Data from other plugins like Yoast (both new and old versions), RankMath and All in One SEO Pack.
|
53 |
26) Role Manager that lets the admin configure which user role has access to which settings page or report in Platinum SEO.
|
54 |
27) An easy and user friendly setup wizard that lets new users of plugin to migrate/import SEO data from other plugins and also configure the essential sitewide settings. The setup wizard is also accesible via the menu Platinum SEO and social Pack -> Setup wizard.
|
55 |
-
28) Bulk Editor for Techblissonline SEO Title and
|
56 |
|
57 |
== Installation ==
|
58 |
|
@@ -76,6 +76,12 @@ Please read these **[FAQs](https://techblissonline.com/platinum-seo-pack-faq/)**
|
|
76 |
4. Social Settings for Facebook, Twitter, Pinterest and LinkedIn. Generates Open Grah Tags and Twitter compatible Tags.
|
77 |
|
78 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
= 2.3.1=
|
80 |
2021-01-15 - Bulk Editor now lets you add JSON Schema to all Post types in bulk.
|
81 |
|
6 |
Requires at least: 4.0
|
7 |
Tested up to: 5.6
|
8 |
Requires PHP: 5.6
|
9 |
+
Stable tag: 2.3.3
|
10 |
License: GPLv2 or later
|
11 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
52 |
25) supports import of SEO Data from other plugins like Yoast (both new and old versions), RankMath and All in One SEO Pack.
|
53 |
26) Role Manager that lets the admin configure which user role has access to which settings page or report in Platinum SEO.
|
54 |
27) An easy and user friendly setup wizard that lets new users of plugin to migrate/import SEO data from other plugins and also configure the essential sitewide settings. The setup wizard is also accesible via the menu Platinum SEO and social Pack -> Setup wizard.
|
55 |
+
28) Bulk Editor for Techblissonline SEO Title, Meta Description and JSON Schemas.
|
56 |
|
57 |
== Installation ==
|
58 |
|
76 |
4. Social Settings for Facebook, Twitter, Pinterest and LinkedIn. Generates Open Grah Tags and Twitter compatible Tags.
|
77 |
|
78 |
== Changelog ==
|
79 |
+
= 2.3.3=
|
80 |
+
2021-02-01 - consolidated the Platinum SEO menus. made changes to Role Manager for more granular control on Platinum SEO menus to various roles.
|
81 |
+
|
82 |
+
= 2.3.2=
|
83 |
+
2021-01-15 - Bulk Editor now lets you add JSON Schema to all Post types in bulk.
|
84 |
+
|
85 |
= 2.3.1=
|
86 |
2021-01-15 - Bulk Editor now lets you add JSON Schema to all Post types in bulk.
|
87 |
|