Platinum SEO Pack - Version 2.1.0

Version Description

  • 2020-05-16 - Platinum SEO Plugin will now have its own SEO meta table _platinumseometa. All the SEO meta data used by the plugin will now be in this table. Importers for Yoast, Yoast Indexables and RankMath WordPress SEO Plugins have now been included to make it easy for users using those plugins to migrate to Platinum SEO WordPress Plugin.
Download this release

Release Info

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

Code changes from version 2.0.8 to 2.1.0

Changelog.txt CHANGED
@@ -1,7 +1,13 @@
 
 
 
 
 
 
1
  = 2.0.8 =
2
- * 2020-04-11 - Fixed a bug that prevented Redirectinon from getting created when "Create Redirection" was clicked in Platinum SEO 404 Manager. However, the ability to create Redirection through "Bulk Updates" dropdown was working as expected.
3
  Modified a Javascript related to snippet preview. Hence it is essential for users to clear browser cache after updating the plugin to V2.0.8. Otherwise, browsers will continue to use the old Javascript file stored in its cache. causing issues
4
- Platinum SEO Plugin now enables its users to disable 404 Permalink guessing that WordPress does as part of its canonical redirec function. Though this function does several useful SEO related functionlaities, this guessing may prove to be harmful in certain cases and it is always better to let the WordPress user determine the URL to redirect to by monitoring the 404 Error Log.This can be done easily using Platinum SEO WordPress Plugin. For more details, read Techblissonline.
5
 
6
  = 2.0.7 =
7
  * 2020-04-05 - Updation to help file links in Redirections Settings.
1
+ = 2.1.0 =
2
+ * 2020-05-16 - Platinum SEO Plugin will now have its own SEO meta table _platinumseometa. All the SEO meta data used by the plugin will now be in this table. Importers for Yoast, Yoast Indexables and RankMath WordPress SEO Plugins have now been included to make it easy for users using those plugins to migrate to Platinum SEO WordPress Plugin.
3
+
4
+ = 2.0.9 =
5
+ * 2020-04-16 - Redirection can now be created using Request URI, Request Path or Request URL as the source URL.
6
+
7
  = 2.0.8 =
8
+ * 2020-04-12 - Fixed a bug that prevented Redirection from getting created when "Create Redirection" was clicked in Platinum SEO 404 Manager. However, the ability to create Redirection through "Bulk Updates" dropdown was working as expected.
9
  Modified a Javascript related to snippet preview. Hence it is essential for users to clear browser cache after updating the plugin to V2.0.8. Otherwise, browsers will continue to use the old Javascript file stored in its cache. causing issues
10
+ Platinum SEO Plugin now enables its users to disable 404 Permalink guessing that WordPress does as part of its canonical redirect function. Though this function does several useful SEO related functionalities, this guessing may prove to be harmful in certain cases and it is always better to let the WordPress user determine the URL to redirect to by monitoring the 404 Error Log.This can be done easily using Platinum SEO WordPress Plugin. For more details, read Techblissonline.
11
 
12
  = 2.0.7 =
13
  * 2020-04-05 - Updation to help file links in Redirections Settings.
images/techblissonline-video-loader.gif ADDED
Binary file
languages/platinum-seo-pack.pot ADDED
@@ -0,0 +1,2306 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
+ # This file is distributed under the same license as the PACKAGE package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ #: psp-include/settings/psp_pre_settings.php:793
7
+ #: psp-include/settings/psp_pre_settings.php:810
8
+ #: psp-include/settings/psp_settings.php:1685
9
+ #: psp-include/settings/psp_settings.php:1699
10
+ #: psp-include/settings/psp_settings.php:1727
11
+ #: psp-include/settings/psp_settings.php:1750
12
+ #: psp-include/settings/psp_settings.php:1763
13
+ #: psp-include/settings/psp_settings.php:1776
14
+ #, fuzzy
15
+ msgid ""
16
+ msgstr ""
17
+ "Project-Id-Version: Package Name\n"
18
+ "Report-Msgid-Bugs-To: \n"
19
+ "POT-Creation-Date: 2020-04-17 19:12+0530\n"
20
+ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
21
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
22
+ "Language-Team: LANGUAGE <LL@li.org>\n"
23
+ "Language: \n"
24
+ "MIME-Version: 1.0\n"
25
+ "Content-Type: text/plain; charset=CHARSET\n"
26
+ "Content-Transfer-Encoding: 8bit\n"
27
+
28
+ #: psp_main.php:265
29
+ msgid "Thank you for using Platinum SEO Plugin!"
30
+ msgstr ""
31
+
32
+ #: psp_main.php:265
33
+ msgid "See What has Changed in this Version 2.0.9 and V2.0.8!"
34
+ msgstr ""
35
+
36
+ #: psp_main.php:267
37
+ msgid "Dismiss permanently"
38
+ msgstr ""
39
+
40
+ #: psp_main.php:267
41
+ msgid "Make sure to clear browser cache after you update to this version!"
42
+ msgstr ""
43
+
44
+ #: psp_main.php:818
45
+ msgid "Platinum SEO"
46
+ msgstr ""
47
+
48
+ #: psp_main.php:825
49
+ msgid "Keyword Research"
50
+ msgstr ""
51
+
52
+ #: psp_main.php:841
53
+ msgid "AdWords External"
54
+ msgstr ""
55
+
56
+ #: psp_main.php:849
57
+ msgid "Google Insights"
58
+ msgstr ""
59
+
60
+ #: psp_main.php:889
61
+ msgid "Analyze this page"
62
+ msgstr ""
63
+
64
+ #: psp_main.php:897
65
+ msgid "Analyze your onpage SEO"
66
+ msgstr ""
67
+
68
+ #: psp_main.php:905
69
+ msgid "Check Keyword Density"
70
+ msgstr ""
71
+
72
+ #: psp_main.php:913
73
+ msgid "Check Inlinks (OSE)"
74
+ msgstr ""
75
+
76
+ #: psp_main.php:921
77
+ msgid "Check Google Cache"
78
+ msgstr ""
79
+
80
+ #: psp_main.php:929
81
+ msgid "Check Headers"
82
+ msgstr ""
83
+
84
+ #: psp_main.php:937
85
+ msgid "Check Rich Snippets"
86
+ msgstr ""
87
+
88
+ #: psp_main.php:945
89
+ msgid "Facebook Debugger"
90
+ msgstr ""
91
+
92
+ #: psp_main.php:953
93
+ msgid "Pinterest Rich Pins Validator"
94
+ msgstr ""
95
+
96
+ #: psp_main.php:961
97
+ msgid "HTML Validator"
98
+ msgstr ""
99
+
100
+ #: psp_main.php:969
101
+ msgid "CSS Validator"
102
+ msgstr ""
103
+
104
+ #: psp_main.php:977
105
+ msgid "Google Page Speed Test"
106
+ msgstr ""
107
+
108
+ #: psp_main.php:985
109
+ msgid "Modern IE Site Scan"
110
+ msgstr ""
111
+
112
+ #: psp_main.php:993
113
+ msgid "Mobile-Friendly Test"
114
+ msgstr ""
115
+
116
+ #: psp_main.php:1020
117
+ msgid "Platinum SEO Settings"
118
+ msgstr ""
119
+
120
+ #: psp_main.php:1027 psp-include/settings/psp_settings.php:2792
121
+ msgid "SEO"
122
+ msgstr ""
123
+
124
+ #: psp_main.php:1034
125
+ msgid "SEO - Tools"
126
+ msgstr ""
127
+
128
+ #: psp-include/generators/breadcrumbs.php:178
129
+ msgid "Browse:"
130
+ msgstr ""
131
+
132
+ #: psp-include/generators/breadcrumbs.php:179
133
+ msgid "Home"
134
+ msgstr ""
135
+
136
+ #: psp-include/generators/breadcrumbs.php:180
137
+ msgid "404 Not Found"
138
+ msgstr ""
139
+
140
+ #: psp-include/generators/breadcrumbs.php:181
141
+ msgid "Archives"
142
+ msgstr ""
143
+
144
+ #: psp-include/generators/breadcrumbs.php:183
145
+ #, php-format
146
+ msgid "Search results for &#8220;%s&#8221;"
147
+ msgstr ""
148
+
149
+ #: psp-include/generators/breadcrumbs.php:185
150
+ #, php-format
151
+ msgid "Page %s"
152
+ msgstr ""
153
+
154
+ #: psp-include/generators/breadcrumbs.php:187
155
+ #, php-format
156
+ msgid "Minute %s"
157
+ msgstr ""
158
+
159
+ #: psp-include/generators/breadcrumbs.php:189
160
+ #, php-format
161
+ msgid "Week %s"
162
+ msgstr ""
163
+
164
+ #: psp-include/generators/breadcrumbs.php:717
165
+ msgctxt "minute and hour archives time format"
166
+ msgid "g:i a"
167
+ msgstr ""
168
+
169
+ #: psp-include/generators/breadcrumbs.php:734
170
+ msgctxt "minute archives time format"
171
+ msgid "i"
172
+ msgstr ""
173
+
174
+ #: psp-include/generators/breadcrumbs.php:751
175
+ msgctxt "hour archives time format"
176
+ msgid "g a"
177
+ msgstr ""
178
+
179
+ #: psp-include/generators/breadcrumbs.php:767
180
+ #: psp-include/generators/breadcrumbs.php:796
181
+ #: psp-include/generators/breadcrumbs.php:823
182
+ #: psp-include/generators/breadcrumbs.php:850
183
+ #: psp-include/generators/breadcrumbs.php:1037
184
+ msgctxt "yearly archives date format"
185
+ msgid "Y"
186
+ msgstr ""
187
+
188
+ #: psp-include/generators/breadcrumbs.php:768
189
+ #: psp-include/generators/breadcrumbs.php:824
190
+ #: psp-include/generators/breadcrumbs.php:1041
191
+ msgctxt "monthly archives date format"
192
+ msgid "F"
193
+ msgstr ""
194
+
195
+ #: psp-include/generators/breadcrumbs.php:769
196
+ #: psp-include/generators/breadcrumbs.php:1045
197
+ msgctxt "daily archives date format"
198
+ msgid "j"
199
+ msgstr ""
200
+
201
+ #: psp-include/generators/breadcrumbs.php:797
202
+ msgctxt "weekly archives date format"
203
+ msgid "W"
204
+ msgstr ""
205
+
206
+ #: psp-include/generators/breadcrumbs.php:1136
207
+ #: psp-include/generators/breadcrumbs.php:1172
208
+ #: psp-include/generators/breadcrumbs.php:1189
209
+ #: psp-include/generators/breadcrumbs.php:1220
210
+ msgid "Edit"
211
+ msgstr ""
212
+
213
+ #: psp-include/generators/breadcrumbs.php:1164
214
+ msgid "Split"
215
+ msgstr ""
216
+
217
+ #: psp-include/generators/breadcrumbs.php:1168
218
+ msgid "Merge"
219
+ msgstr ""
220
+
221
+ #: psp-include/settings/psp_404_list_renderer.php:69
222
+ msgid "Source ID: "
223
+ msgstr ""
224
+
225
+ #: psp-include/settings/psp_404_list_renderer.php:74
226
+ msgid "Source URI: "
227
+ msgstr ""
228
+
229
+ #: psp-include/settings/psp_404_list_renderer.php:75
230
+ #: psp-include/settings/psp_redirect_list_renderer.php:81
231
+ msgid "Enter the source URI or URL "
232
+ msgstr ""
233
+
234
+ #: psp-include/settings/psp_404_list_renderer.php:79
235
+ #: psp-include/settings/psp_redirect_list_renderer.php:85
236
+ msgid "Redirect to: "
237
+ msgstr ""
238
+
239
+ #: psp-include/settings/psp_404_list_renderer.php:80
240
+ #: psp-include/settings/psp_redirect_list_renderer.php:86
241
+ msgid "Enter a valid Destination URL "
242
+ msgstr ""
243
+
244
+ #: psp-include/settings/psp_404_list_renderer.php:83
245
+ #: psp-include/settings/psp_redirect_list_renderer.php:89
246
+ msgid "Redirection Method: "
247
+ msgstr ""
248
+
249
+ #: psp-include/settings/psp_404_list_renderer.php:83
250
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:105
251
+ #: psp-include/settings/psp_redirect_list_renderer.php:89
252
+ msgid "What to Select?"
253
+ msgstr ""
254
+
255
+ #: psp-include/settings/psp_404_list_renderer.php:93
256
+ #: psp-include/settings/psp_redirect_list_renderer.php:103
257
+ msgid "Add New"
258
+ msgstr ""
259
+
260
+ #: psp-include/settings/psp_404_list_renderer.php:95
261
+ #: psp-include/settings/psp_404_list_renderer.php:194
262
+ #: psp-include/settings/psp_redirect_list_renderer.php:105
263
+ msgid "Cancel"
264
+ msgstr ""
265
+
266
+ #: psp-include/settings/psp_404_list_renderer.php:118
267
+ #: psp-include/settings/psp_redirect_list_renderer.php:153
268
+ msgid "Delete"
269
+ msgstr ""
270
+
271
+ #: psp-include/settings/psp_404_list_renderer.php:131
272
+ #: psp-include/settings/psp_redirect_list_renderer.php:101
273
+ msgid "Update"
274
+ msgstr ""
275
+
276
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:9
277
+ msgid ""
278
+ "These are some settings specific to this page (post). If these are not set, "
279
+ "appropriate defaults will be used for meta tags.However, you need to "
280
+ "manually set the combined Json Schema for this page in the below mentioned "
281
+ "option for Json schema support. "
282
+ msgstr ""
283
+
284
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:12
285
+ msgid "Add index/noindex:"
286
+ msgstr ""
287
+
288
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:16
289
+ msgid ""
290
+ "noindex - Tells search engines to not include this page in the index or to "
291
+ "not have a copy of this page in their database. It thus tells search engines "
292
+ "to not consider this page for showing to their users on their SERPS."
293
+ msgstr ""
294
+
295
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:21
296
+ msgid "Add follow/nofollow:"
297
+ msgstr ""
298
+
299
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:25
300
+ msgid ""
301
+ "nofollow - Tells search engines to not follow links on this page, meaning to "
302
+ "not pass on link credits, if any, assigned by the search engines to the link "
303
+ "assignee."
304
+ msgstr ""
305
+
306
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:29
307
+ msgid "Add noarchive: "
308
+ msgstr ""
309
+
310
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:34
311
+ msgid ""
312
+ "noarchive - Tells search engines to not show Cached link in SERPS (Search "
313
+ "Engine Result Pages) for this page. It thus tells search engines not to "
314
+ "store a cached copy of the page."
315
+ msgstr ""
316
+
317
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:38
318
+ msgid "Add nosnippet: "
319
+ msgstr ""
320
+
321
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:43
322
+ msgid ""
323
+ "nosnippet - Tells search engines to not show snippet (description) in SERPS "
324
+ "(Search Engine Result Pages) for this page. It also tells search engines not "
325
+ "to show a cached link in SERPS for this page."
326
+ msgstr ""
327
+
328
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:47
329
+ msgid "Add noimageindex: "
330
+ msgstr ""
331
+
332
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:52
333
+ msgid ""
334
+ "noimageindex - Tells search engines like google to not index any image on "
335
+ "this page. It must however be remembered that if any of the image is linked "
336
+ "to by some other page, it will get indexed."
337
+ msgstr ""
338
+
339
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:56
340
+ msgid "Max Video Preview: "
341
+ msgstr ""
342
+
343
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:57
344
+ msgid " Seconds. [Optional]"
345
+ msgstr ""
346
+
347
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:58
348
+ msgid "Set max video preview length directive to Google for this post/page."
349
+ msgstr ""
350
+
351
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:58
352
+ #: psp-include/settings/psp_basic_metabox_renderer.php:163
353
+ msgid "Read more"
354
+ msgstr ""
355
+
356
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:62
357
+ msgid "Max Image Preview [optional]: "
358
+ msgstr ""
359
+
360
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:67
361
+ msgid " Select the max image preview directive to Google for this post/page."
362
+ msgstr ""
363
+
364
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:71
365
+ msgid "Canonical URL: "
366
+ msgstr ""
367
+
368
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:75
369
+ msgid ""
370
+ "Set the canonical URL to be used for this page. Leave this empty for "
371
+ "canonical URL to default to permalink of this page. Cross domain canonical "
372
+ "URL may also be set here to handle duplicates.When this is switched Off, "
373
+ "Canonical meta tag will not be generated by Platinum SEO for this page. "
374
+ msgstr ""
375
+
376
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:79
377
+ msgid "Exclude from sitemap: "
378
+ msgstr ""
379
+
380
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:84
381
+ msgid ""
382
+ "Switching this ON Tells sitemap generator to not include this page in the "
383
+ "sitemap."
384
+ msgstr ""
385
+
386
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:88
387
+ msgid "JSON_LD Schema String: "
388
+ msgstr ""
389
+
390
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:88
391
+ msgid "Techblissonline Json Schema Generator Tool"
392
+ msgstr ""
393
+
394
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:88
395
+ msgid "How to combine several Json schema?"
396
+ msgstr ""
397
+
398
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:90
399
+ msgid ""
400
+ "Set JSON_LD Schema String (without the script tag) for this post/page. Use"
401
+ msgstr ""
402
+
403
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:90
404
+ msgid "Techblissonline Schema Generator Tool"
405
+ msgstr ""
406
+
407
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:95
408
+ msgid "Redirect Settings "
409
+ msgstr ""
410
+
411
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:99
412
+ #: psp-include/settings/psp_settings.php:1603
413
+ msgid "Redirect To: "
414
+ msgstr ""
415
+
416
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:101
417
+ msgid "Set the URL to redirect users and crawlers landing on this page."
418
+ msgstr ""
419
+
420
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:105
421
+ msgid "Use: "
422
+ msgstr ""
423
+
424
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:110
425
+ #: psp-include/settings/psp_settings.php:1584
426
+ msgid ""
427
+ " Set the HTTP status code to use for this redirection. It is highly "
428
+ "recommended to use 301 redirects in most cases, except where the redirection "
429
+ "is of temporary nature."
430
+ msgstr ""
431
+
432
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:116
433
+ #: psp-include/settings/psp_basic_metabox_renderer.php:169
434
+ msgid "Preferred Taxonomy for Breadcrumb Trail: "
435
+ msgstr ""
436
+
437
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:121
438
+ #: psp-include/settings/psp_basic_metabox_renderer.php:174
439
+ msgid ""
440
+ " Select the preferred taxonomy whose term you prefer to use for this page, "
441
+ "if the page is tagged to multiple taxonomies."
442
+ msgstr ""
443
+
444
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:127
445
+ msgid "Disable Settings "
446
+ msgstr ""
447
+
448
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:131
449
+ msgid "Platinum SEO Title: "
450
+ msgstr ""
451
+
452
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:135
453
+ msgid "Switching this Off Disables Platinum SEO title for this page."
454
+ msgstr ""
455
+
456
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:139
457
+ msgid "Platinum SEO Meta Description: "
458
+ msgstr ""
459
+
460
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:143
461
+ msgid ""
462
+ "Switching this Off Disables Platinum SEO meta description for this page."
463
+ msgstr ""
464
+
465
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:147
466
+ msgid "Platinum SEO Meta Keywords: "
467
+ msgstr ""
468
+
469
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:151
470
+ msgid "Switching this Off Disables Platinum SEO meta keywords for this page."
471
+ msgstr ""
472
+
473
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:155
474
+ msgid "Platinum SEO Canonical URL: "
475
+ msgstr ""
476
+
477
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:159
478
+ msgid ""
479
+ "Switching this Off Disables canonical URL generated by Platinum SEO for this "
480
+ "page."
481
+ msgstr ""
482
+
483
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:163
484
+ msgid "Platinum SEO Title Format Settings: "
485
+ msgstr ""
486
+
487
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:167
488
+ msgid ""
489
+ "Switching this Off Disables Platinum SEO title format settings for this page."
490
+ msgstr ""
491
+
492
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:171
493
+ msgid "Platinum SEO Description Format Settings: "
494
+ msgstr ""
495
+
496
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:175
497
+ msgid ""
498
+ "Switching this Off Disables Platinum SEO meta description format settings "
499
+ "for this page."
500
+ msgstr ""
501
+
502
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:179
503
+ #: psp-include/settings/psp_basic_metabox_renderer.php:180
504
+ msgid "Platinum SEO Settings: "
505
+ msgstr ""
506
+
507
+ #: psp-include/settings/psp_advanced_metabox_renderer.php:183
508
+ #: psp-include/settings/psp_basic_metabox_renderer.php:184
509
+ msgid "Switching this Off Disables ALL Platinum SEO settings for this page."
510
+ msgstr ""
511
+
512
+ #: psp-include/settings/psp_analysis_metabox_renderer.php:13
513
+ msgid "Keywords: "
514
+ msgstr ""
515
+
516
+ #: psp-include/settings/psp_analysis_metabox_renderer.php:17
517
+ msgid ""
518
+ "Set comma separated meta keywords to be used for this post/page.Meta "
519
+ "Keywords tag should also be switched on sitewide in Platinum SEO General "
520
+ "setthings. These are also used as the Focus keywords for Platinum SEO "
521
+ "Analysis of this page,"
522
+ msgstr ""
523
+
524
+ #: psp-include/settings/psp_analysis_metabox_renderer.php:18
525
+ msgid ""
526
+ "Enter comma separated focus keywords in the input above and find the "
527
+ "analysis below"
528
+ msgstr ""
529
+
530
+ #: psp-include/settings/psp_basic_metabox_renderer.php:17
531
+ #: psp-include/settings/psp_basic_metabox_renderer.php:18
532
+ #: psp-include/settings/psp_settings.php:2893
533
+ #: psp-include/settings/psp_settings.php:2894
534
+ #: psp-include/settings/psp_settings.php:3113
535
+ #: psp-include/settings/psp_settings.php:3114
536
+ #: psp-include/settings/psp_settings.php:3568
537
+ #: psp-include/settings/psp_settings.php:3569
538
+ msgid " "
539
+ msgstr ""
540
+
541
+ #: psp-include/settings/psp_basic_metabox_renderer.php:29
542
+ msgid "Desktop Metrics: "
543
+ msgstr ""
544
+
545
+ #: psp-include/settings/psp_basic_metabox_renderer.php:29
546
+ #: psp-include/settings/psp_basic_metabox_renderer.php:40
547
+ msgid "Permalink Metrics: "
548
+ msgstr ""
549
+
550
+ #: psp-include/settings/psp_basic_metabox_renderer.php:29
551
+ #: psp-include/settings/psp_basic_metabox_renderer.php:40
552
+ msgid "Title Metrics: "
553
+ msgstr ""
554
+
555
+ #: psp-include/settings/psp_basic_metabox_renderer.php:29
556
+ #: psp-include/settings/psp_basic_metabox_renderer.php:40
557
+ msgid "Meta Description Metrics: "
558
+ msgstr ""
559
+
560
+ #: psp-include/settings/psp_basic_metabox_renderer.php:30
561
+ #: psp-include/settings/psp_basic_metabox_renderer.php:41
562
+ msgid "Techblissonline Json Schema Editor"
563
+ msgstr ""
564
+
565
+ #: psp-include/settings/psp_basic_metabox_renderer.php:30
566
+ #: psp-include/settings/psp_basic_metabox_renderer.php:41
567
+ msgid "Techblissonline Onpage SEO analysis Tool"
568
+ msgstr ""
569
+
570
+ #: psp-include/settings/psp_basic_metabox_renderer.php:40
571
+ msgid "Mobile Metrics: "
572
+ msgstr ""
573
+
574
+ #: psp-include/settings/psp_basic_metabox_renderer.php:120
575
+ msgid "SEO Title: "
576
+ msgstr ""
577
+
578
+ #: psp-include/settings/psp_basic_metabox_renderer.php:124
579
+ msgid ""
580
+ "Set SEO Title to be used for this page. Switching this off will mean the "
581
+ "default WordPress title will be used."
582
+ msgstr ""
583
+
584
+ #: psp-include/settings/psp_basic_metabox_renderer.php:128
585
+ #: psp-include/settings/psp_settings.php:1449
586
+ #: psp-include/settings/psp_settings.php:1596
587
+ #: psp-include/settings/psp_settings.php:2268
588
+ #: psp-include/settings/psp_settings.php:2454
589
+ msgid "Title Format: "
590
+ msgstr ""
591
+
592
+ #: psp-include/settings/psp_basic_metabox_renderer.php:132
593
+ msgid ""
594
+ "Set SEO Title Format to be used for this post/page.Default is sitewide "
595
+ "format set for this post type."
596
+ msgstr ""
597
+
598
+ #: psp-include/settings/psp_basic_metabox_renderer.php:134
599
+ #: psp-include/settings/psp_settings.php:2614
600
+ msgid "Available tags:"
601
+ msgstr ""
602
+
603
+ #: psp-include/settings/psp_basic_metabox_renderer.php:153
604
+ msgid "Description: "
605
+ msgstr ""
606
+
607
+ #: psp-include/settings/psp_basic_metabox_renderer.php:156
608
+ msgid ""
609
+ "Write a unique description that is short enough to fit search results "
610
+ "snippet for this page. An ideal meta description is one that has a brief "
611
+ "content matching what the user is searching for and inducing him to click "
612
+ "through."
613
+ msgstr ""
614
+
615
+ #: psp-include/settings/psp_basic_metabox_renderer.php:157
616
+ msgid ""
617
+ "Set meta desciption to be used for this post/page.Switching this Off will "
618
+ "mean this description will not be used and an auto-generated description "
619
+ "will be used, if that had been turned on sitewide in Platinum SEO General "
620
+ "Settings."
621
+ msgstr ""
622
+
623
+ #: psp-include/settings/psp_basic_metabox_renderer.php:161
624
+ msgid "Max Snippet: "
625
+ msgstr ""
626
+
627
+ #: psp-include/settings/psp_basic_metabox_renderer.php:162
628
+ msgid " Characters. [Optional]"
629
+ msgstr ""
630
+
631
+ #: psp-include/settings/psp_basic_metabox_renderer.php:163
632
+ msgid "Set max snippet length directive to Google for this post/page."
633
+ msgstr ""
634
+
635
+ #: psp-include/settings/psp_basic_social_metabox_renderer.php:10
636
+ msgid ""
637
+ "Meta Tags for Social Media - Facebook, Twitter, Pinterest and LinkedIn: "
638
+ msgstr ""
639
+
640
+ #: psp-include/settings/psp_basic_social_metabox_renderer.php:11
641
+ msgid ""
642
+ "If the following title and description fields are not filled in, "
643
+ "corresponding Techblissonline Platinum SEO meta data will be used to render "
644
+ "social meta tags for social sites. For more advanced control on social meta "
645
+ "tags i.e open graph, twitter cards and schema.org tags for individual social "
646
+ "sites, use the advanced social tab."
647
+ msgstr ""
648
+
649
+ #: psp-include/settings/psp_basic_social_metabox_renderer.php:11
650
+ msgid "Facebook Optimization Guide"
651
+ msgstr ""
652
+
653
+ #: psp-include/settings/psp_basic_social_metabox_renderer.php:11
654
+ msgid "Twitter Card Optimization Guide"
655
+ msgstr ""
656
+
657
+ #: psp-include/settings/psp_basic_social_metabox_renderer.php:17
658
+ msgid "Open Graph Object Type: "
659
+ msgstr ""
660
+
661
+ #: psp-include/settings/psp_basic_social_metabox_renderer.php:22
662
+ msgid ""
663
+ " Select the facebook Open Graph object type to be used for this page. If "
664
+ "nothing is selected here, sitewide default setting will be used provided "
665
+ "Open Graph tags for facebook had been enabled in Social settings and the "
666
+ "sitewide default setting is not empty."
667
+ msgstr ""
668
+
669
+ #: psp-include/settings/psp_basic_social_metabox_renderer.php:26
670
+ msgid "Twitter Card Type: "
671
+ msgstr ""
672
+
673
+ #: psp-include/settings/psp_basic_social_metabox_renderer.php:32
674
+ msgid ""
675
+ " Select the twitter card type to be used for this page. If nothing is "
676
+ "selected here, sitewide default setting will be used only when twitter card "
677
+ "had been enabled in Social settings."
678
+ msgstr ""
679
+
680
+ #: psp-include/settings/psp_basic_social_metabox_renderer.php:37
681
+ msgid "Title for Social media : "
682
+ msgstr ""
683
+
684
+ #: psp-include/settings/psp_basic_social_metabox_renderer.php:39
685
+ msgid ""
686
+ "Set title to be used when this page is shared on faceook and other social "
687
+ "media sites."
688
+ msgstr ""
689
+
690
+ #: psp-include/settings/psp_basic_social_metabox_renderer.php:43
691
+ msgid "Description for Social media : "
692
+ msgstr ""
693
+
694
+ #: psp-include/settings/psp_basic_social_metabox_renderer.php:45
695
+ msgid ""
696
+ "Set description to be used when this page is shared on faceook and other "
697
+ "social media sites."
698
+ msgstr ""
699
+
700
+ #: psp-include/settings/psp_basic_social_metabox_renderer.php:49
701
+ msgid "Images for Social media : "
702
+ msgstr ""
703
+
704
+ #: psp-include/settings/psp_basic_social_metabox_renderer.php:51
705
+ msgid ""
706
+ "Enter an URL to an image or upload an image to be used when this page is "
707
+ "shared on faceook and other social media sites."
708
+ msgstr ""
709
+
710
+ #: psp-include/settings/psp_basic_social_metabox_renderer.php:51
711
+ msgid "Image Guidelines"
712
+ msgstr ""
713
+
714
+ #: psp-include/settings/psp_pre_settings.php:168
715
+ msgid "Platinum SEO and Social Premium Pack License"
716
+ msgstr ""
717
+
718
+ #: psp-include/settings/psp_pre_settings.php:174
719
+ msgid ""
720
+ "Enter your Platinum SEO and Social Premium Pack License Key. The license key "
721
+ "is used for access to premium features and their upgrades."
722
+ msgstr ""
723
+
724
+ #: psp-include/settings/psp_pre_settings.php:176
725
+ msgid "Techblissonline Platinum SEO Premium License Key "
726
+ msgstr ""
727
+
728
+ #: psp-include/settings/psp_pre_settings.php:182
729
+ msgid "Enter your Platinum SEO and Social Premium Pack Client ID."
730
+ msgstr ""
731
+
732
+ #: psp-include/settings/psp_pre_settings.php:184
733
+ msgid "Techblissonline Platinum SEO Premium Client ID "
734
+ msgstr ""
735
+
736
+ #: psp-include/settings/psp_pre_settings.php:282
737
+ #: psp-include/settings/psp_pre_settings.php:365
738
+ #: psp-include/settings/psp_pre_settings.php:563
739
+ msgid "An error occurred, please try again."
740
+ msgstr ""
741
+
742
+ #: psp-include/settings/psp_pre_settings.php:296
743
+ #, php-format
744
+ msgid "Your license key expired on %s."
745
+ msgstr ""
746
+
747
+ #: psp-include/settings/psp_pre_settings.php:303
748
+ msgid "Your license key has been disabled."
749
+ msgstr ""
750
+
751
+ #: psp-include/settings/psp_pre_settings.php:314
752
+ msgid "lience key is empty."
753
+ msgstr ""
754
+
755
+ #: psp-include/settings/psp_pre_settings.php:319
756
+ #: psp-include/settings/psp_pre_settings.php:516
757
+ msgid "Client ID is Imvalid."
758
+ msgstr ""
759
+
760
+ #: psp-include/settings/psp_pre_settings.php:324
761
+ msgid "Invalid license."
762
+ msgstr ""
763
+
764
+ #: psp-include/settings/psp_pre_settings.php:329
765
+ #: psp-include/settings/psp_pre_settings.php:526
766
+ msgid "Request was empty. Try again."
767
+ msgstr ""
768
+
769
+ #: psp-include/settings/psp_pre_settings.php:334
770
+ #: psp-include/settings/psp_pre_settings.php:531
771
+ msgid "Request was invalid."
772
+ msgstr ""
773
+
774
+ #: psp-include/settings/psp_pre_settings.php:339
775
+ #: psp-include/settings/psp_pre_settings.php:536
776
+ msgid "Client ID was empty. Try again."
777
+ msgstr ""
778
+
779
+ #: psp-include/settings/psp_pre_settings.php:344
780
+ #: psp-include/settings/psp_pre_settings.php:541
781
+ msgid "Domain name was empty."
782
+ msgstr ""
783
+
784
+ #: psp-include/settings/psp_pre_settings.php:350
785
+ #: psp-include/settings/psp_pre_settings.php:547
786
+ msgid "Your license is not active for this URL."
787
+ msgstr ""
788
+
789
+ #: psp-include/settings/psp_pre_settings.php:355
790
+ #: psp-include/settings/psp_pre_settings.php:552
791
+ #, php-format
792
+ msgid "This appears to be an invalid license key for %s."
793
+ msgstr ""
794
+
795
+ #: psp-include/settings/psp_pre_settings.php:360
796
+ msgid "Your license key has reached its activation limit."
797
+ msgstr ""
798
+
799
+ #: psp-include/settings/psp_pre_settings.php:399
800
+ msgid "License key successfully activated for this domain!"
801
+ msgstr ""
802
+
803
+ #: psp-include/settings/psp_pre_settings.php:412
804
+ msgid "Some unknown error occured during activation, Pls. try Again!"
805
+ msgstr ""
806
+
807
+ #: psp-include/settings/psp_pre_settings.php:477
808
+ msgid "An error occurred while deactivating, please try again."
809
+ msgstr ""
810
+
811
+ #: psp-include/settings/psp_pre_settings.php:511
812
+ msgid "lience key was empty."
813
+ msgstr ""
814
+
815
+ #: psp-include/settings/psp_pre_settings.php:601
816
+ msgid "License key successfully deactivated for this domain!"
817
+ msgstr ""
818
+
819
+ #: psp-include/settings/psp_pre_settings.php:616
820
+ msgid "Some unknown error occured during deactivation, Pls. try Again!"
821
+ msgstr ""
822
+
823
+ #: psp-include/settings/psp_pre_settings.php:777
824
+ #: psp-include/settings/psp_settings.php:2805
825
+ #: psp-include/settings/psp_settings.php:2809
826
+ msgid "Techblissonline Platinum SEO Premium Pack"
827
+ msgstr ""
828
+
829
+ #: psp-include/settings/psp_pre_settings.php:778
830
+ #: psp-include/settings/psp_settings.php:4673
831
+ #: psp-include/settings/psp_social_settings.php:441
832
+ #: psp-include/settings/psp_tools_settings.php:529
833
+ msgid ""
834
+ "You need to click the \"Save Settings\" button to save the changes you made "
835
+ "to each individual tab before moving on to the next tab."
836
+ msgstr ""
837
+
838
+ #: psp-include/settings/psp_pre_settings.php:797
839
+ msgid "active"
840
+ msgstr ""
841
+
842
+ #: psp-include/settings/psp_pre_settings.php:799
843
+ msgid "Deactivate License"
844
+ msgstr ""
845
+
846
+ #: psp-include/settings/psp_pre_settings.php:803
847
+ #: psp-include/settings/psp_pre_settings.php:816
848
+ msgid "Activate License"
849
+ msgstr ""
850
+
851
+ #: psp-include/settings/psp_pre_settings.php:814
852
+ msgid "inactive"
853
+ msgstr ""
854
+
855
+ #: psp-include/settings/psp_redirect_404.php:72
856
+ #: psp-include/settings/psp_redirect_404.php:81
857
+ msgid "Rows per page"
858
+ msgstr ""
859
+
860
+ #: psp-include/settings/psp_redirect_404.php:214
861
+ #: psp-include/settings/psp_redirect_404.php:442
862
+ msgid "You are not allowed to Delete."
863
+ msgstr ""
864
+
865
+ #: psp-include/settings/psp_redirect_404.php:239
866
+ #: psp-include/settings/psp_redirect_404.php:489
867
+ msgid "You are not allowed to Truncate."
868
+ msgstr ""
869
+
870
+ #: psp-include/settings/psp_redirect_404.php:261
871
+ #: psp-include/settings/psp_redirect_404.php:509
872
+ msgid "You are not allowed to update."
873
+ msgstr ""
874
+
875
+ #: psp-include/settings/psp_redirect_list_renderer.php:80
876
+ msgid "Source URL: "
877
+ msgstr ""
878
+
879
+ #: psp-include/settings/psp_redirect_list_renderer.php:209
880
+ #: psp-include/settings/psp_redirect_list_renderer.php:280
881
+ #, php-format
882
+ msgid "Edit \"%s\""
883
+ msgstr ""
884
+
885
+ #: psp-include/settings/psp_settings.php:354
886
+ msgid "Home Page SEO Settings"
887
+ msgstr ""
888
+
889
+ #: psp-include/settings/psp_settings.php:394
890
+ msgid ""
891
+ "Here you may add all the webmaster tools verification meta tag codes for "
892
+ "google, bing, yandex, alexa and for any other search engine.If you had "
893
+ "already verified with the webmaster tools, you might choose to ignore adding "
894
+ "them here. Check "
895
+ msgstr ""
896
+
897
+ #: psp-include/settings/psp_settings.php:409
898
+ msgid "Here you may add all the JSON Schemas for the Home page"
899
+ msgstr ""
900
+
901
+ #: psp-include/settings/psp_settings.php:418
902
+ msgid "Home Page Title: "
903
+ msgstr ""
904
+
905
+ #: psp-include/settings/psp_settings.php:419
906
+ msgid "Home Page Meta Description: "
907
+ msgstr ""
908
+
909
+ #: psp-include/settings/psp_settings.php:420
910
+ msgid "Home Page Meta Keywords: "
911
+ msgstr ""
912
+
913
+ #: psp-include/settings/psp_settings.php:421
914
+ msgid "Additional Home Page Headers: "
915
+ msgstr ""
916
+
917
+ #: psp-include/settings/psp_settings.php:422
918
+ msgid "Schemas >> "
919
+ msgstr ""
920
+
921
+ #: psp-include/settings/psp_settings.php:422
922
+ msgid "Generate here"
923
+ msgstr ""
924
+
925
+ #: psp-include/settings/psp_settings.php:482
926
+ msgid "Sitewide Title Settings"
927
+ msgstr ""
928
+
929
+ #: psp-include/settings/psp_settings.php:496
930
+ msgid " Can be used in title and description formats by specifying "
931
+ msgstr ""
932
+
933
+ #: psp-include/settings/psp_settings.php:509
934
+ msgid "Do rewrite titles using Platinum SEO"
935
+ msgstr ""
936
+
937
+ #: psp-include/settings/psp_settings.php:510
938
+ msgid ""
939
+ "This should always remain checked if you want to rewrite titles using "
940
+ "Platinum SEO"
941
+ msgstr ""
942
+
943
+ #: psp-include/settings/psp_settings.php:514
944
+ msgid "Use title rewriter: "
945
+ msgstr ""
946
+
947
+ #: psp-include/settings/psp_settings.php:523
948
+ msgid "Force rewrite titles using Platinum SEO"
949
+ msgstr ""
950
+
951
+ #: psp-include/settings/psp_settings.php:524
952
+ msgid ""
953
+ "This should remain unchecked by default and should only be checked if you "
954
+ "have issues with Platinum SEO plugin Title rewriting, despite the above "
955
+ "option \"Use title rewriter\" remaining checked."
956
+ msgstr ""
957
+
958
+ #: psp-include/settings/psp_settings.php:528
959
+ msgid "Force Rewrite Title: "
960
+ msgstr ""
961
+
962
+ #: psp-include/settings/psp_settings.php:537
963
+ msgid ""
964
+ " - Page number. \"Page\" is the pagination base and it can be changed to "
965
+ "anything you want."
966
+ msgstr ""
967
+
968
+ #: psp-include/settings/psp_settings.php:541
969
+ msgid "Paged title Format: "
970
+ msgstr ""
971
+
972
+ #: psp-include/settings/psp_settings.php:548
973
+ #, php-format
974
+ msgid "Other %s Settings"
975
+ msgstr ""
976
+
977
+ #: psp-include/settings/psp_settings.php:562
978
+ msgid "Subpages of Home, taxonomies and all archves: "
979
+ msgstr ""
980
+
981
+ #: psp-include/settings/psp_settings.php:575
982
+ msgid "All RSS Feeds: "
983
+ msgstr ""
984
+
985
+ #: psp-include/settings/psp_settings.php:588
986
+ msgid "Comment pages of all post types: "
987
+ msgstr ""
988
+
989
+ #: psp-include/settings/psp_settings.php:601
990
+ msgid "Subpages of all post types created using Next Page quicktag: "
991
+ msgstr ""
992
+
993
+ #: psp-include/settings/psp_settings.php:610
994
+ #: psp-include/settings/psp_settings.php:623
995
+ msgid "Use meta robots tag "
996
+ msgstr ""
997
+
998
+ #: psp-include/settings/psp_settings.php:614
999
+ msgid "Use noodp: "
1000
+ msgstr ""
1001
+
1002
+ #: psp-include/settings/psp_settings.php:627
1003
+ msgid "Use noydir: "
1004
+ msgstr ""
1005
+
1006
+ #: psp-include/settings/psp_settings.php:636
1007
+ msgid ""
1008
+ "Autogenerate description for all post types, if no SEO description is set "
1009
+ "for any post."
1010
+ msgstr ""
1011
+
1012
+ #: psp-include/settings/psp_settings.php:640
1013
+ msgid "Use description autogenerator: "
1014
+ msgstr ""
1015
+
1016
+ #: psp-include/settings/psp_settings.php:649
1017
+ msgid "Use canonical tags generated by Platinum SEO"
1018
+ msgstr ""
1019
+
1020
+ #: psp-include/settings/psp_settings.php:653
1021
+ msgid "Use canonical tags: "
1022
+ msgstr ""
1023
+
1024
+ #: psp-include/settings/psp_settings.php:662
1025
+ msgid "Use meta keywords tag."
1026
+ msgstr ""
1027
+
1028
+ #: psp-include/settings/psp_settings.php:666
1029
+ msgid "Use meta keywords tag: "
1030
+ msgstr ""
1031
+
1032
+ #: psp-include/settings/psp_settings.php:675
1033
+ msgid "Use Platinum SEO template placeholder script for meta tags"
1034
+ msgstr ""
1035
+
1036
+ #: psp-include/settings/psp_settings.php:676
1037
+ msgid ""
1038
+ "Place the template acript in the theme <code>header.php</code> file where "
1039
+ "you want the Platinum SEO plugin meta tags to appear."
1040
+ msgstr ""
1041
+
1042
+ #: psp-include/settings/psp_settings.php:680
1043
+ msgid "Use Template Script: "
1044
+ msgstr ""
1045
+
1046
+ #: psp-include/settings/psp_settings.php:689
1047
+ msgid "Disable advanced tab"
1048
+ msgstr ""
1049
+
1050
+ #: psp-include/settings/psp_settings.php:690
1051
+ msgid ""
1052
+ "Checking this will disable Techblissonline Platinum SEO and Social Meta Box, "
1053
+ "on Post/Page Editor, for all users other than the users with administrative "
1054
+ "privileges ."
1055
+ msgstr ""
1056
+
1057
+ #: psp-include/settings/psp_settings.php:694
1058
+ msgid "Platinum Seo and Social Meta Box Advanced Tab: "
1059
+ msgstr ""
1060
+
1061
+ #: psp-include/settings/psp_settings.php:701
1062
+ msgid " Settings"
1063
+ msgstr ""
1064
+
1065
+ #: psp-include/settings/psp_settings.php:726
1066
+ msgid "Links to tag pages: "
1067
+ msgstr ""
1068
+
1069
+ #: psp-include/settings/psp_settings.php:752
1070
+ msgid "Login and registration links: "
1071
+ msgstr ""
1072
+
1073
+ #: psp-include/settings/psp_settings.php:801
1074
+ msgid "Credits:"
1075
+ msgstr ""
1076
+
1077
+ #: psp-include/settings/psp_settings.php:809
1078
+ msgid "Link To Platinum SEO"
1079
+ msgstr ""
1080
+
1081
+ #: psp-include/settings/psp_settings.php:813
1082
+ msgid "Credits: "
1083
+ msgstr ""
1084
+
1085
+ #: psp-include/settings/psp_settings.php:828
1086
+ msgid "Clean Up HTML Head Section"
1087
+ msgstr ""
1088
+
1089
+ #: psp-include/settings/psp_settings.php:838
1090
+ msgid "Remove extra feed links from head section"
1091
+ msgstr ""
1092
+
1093
+ #: psp-include/settings/psp_settings.php:842
1094
+ msgid "Extra Feed Links: "
1095
+ msgstr ""
1096
+
1097
+ #: psp-include/settings/psp_settings.php:851
1098
+ msgid "Remove RSD link from head section"
1099
+ msgstr ""
1100
+
1101
+ #: psp-include/settings/psp_settings.php:855
1102
+ msgid "RSD Link: "
1103
+ msgstr ""
1104
+
1105
+ #: psp-include/settings/psp_settings.php:864
1106
+ msgid "Remove wordpress shortlink from head section"
1107
+ msgstr ""
1108
+
1109
+ #: psp-include/settings/psp_settings.php:868
1110
+ msgid "WP shortlink: "
1111
+ msgstr ""
1112
+
1113
+ #: psp-include/settings/psp_settings.php:877
1114
+ msgid "Remove wlwmanifest link from head section"
1115
+ msgstr ""
1116
+
1117
+ #: psp-include/settings/psp_settings.php:881
1118
+ msgid "WLWmanifest link: "
1119
+ msgstr ""
1120
+
1121
+ #: psp-include/settings/psp_settings.php:890
1122
+ msgid "Remove index rel link from head section"
1123
+ msgstr ""
1124
+
1125
+ #: psp-include/settings/psp_settings.php:894
1126
+ msgid "Index rel Link: "
1127
+ msgstr ""
1128
+
1129
+ #: psp-include/settings/psp_settings.php:903
1130
+ msgid "Remove adjacent posts rel link from head section"
1131
+ msgstr ""
1132
+
1133
+ #: psp-include/settings/psp_settings.php:907
1134
+ msgid "Adjacent posts rel Link: "
1135
+ msgstr ""
1136
+
1137
+ #: psp-include/settings/psp_settings.php:916
1138
+ msgid "Remove parent post rel link from head section"
1139
+ msgstr ""
1140
+
1141
+ #: psp-include/settings/psp_settings.php:920
1142
+ msgid "Parent post rel Link: "
1143
+ msgstr ""
1144
+
1145
+ #: psp-include/settings/psp_settings.php:929
1146
+ msgid "Remove start post rel link from head section"
1147
+ msgstr ""
1148
+
1149
+ #: psp-include/settings/psp_settings.php:933
1150
+ msgid "Start post rel Link: "
1151
+ msgstr ""
1152
+
1153
+ #: psp-include/settings/psp_settings.php:942
1154
+ msgid "Remove wordpress version information from head section"
1155
+ msgstr ""
1156
+
1157
+ #: psp-include/settings/psp_settings.php:946
1158
+ msgid "WP generator: "
1159
+ msgstr ""
1160
+
1161
+ #: psp-include/settings/psp_settings.php:959
1162
+ msgid "Clean Up Comments Section"
1163
+ msgstr ""
1164
+
1165
+ #: psp-include/settings/psp_settings.php:969
1166
+ msgid "Strip HTML in comment text"
1167
+ msgstr ""
1168
+
1169
+ #: psp-include/settings/psp_settings.php:973
1170
+ msgid "Strip HTML in comment text: "
1171
+ msgstr ""
1172
+
1173
+ #: psp-include/settings/psp_settings.php:982
1174
+ msgid "Strip HTML from comment text RSS"
1175
+ msgstr ""
1176
+
1177
+ #: psp-include/settings/psp_settings.php:986
1178
+ msgid "Strip HTML in comment text RSS: "
1179
+ msgstr ""
1180
+
1181
+ #: psp-include/settings/psp_settings.php:995
1182
+ msgid "Strip HTML from comment Excerpt"
1183
+ msgstr ""
1184
+
1185
+ #: psp-include/settings/psp_settings.php:999
1186
+ msgid "Strip HTML in comment Excerpt: "
1187
+ msgstr ""
1188
+
1189
+ #: psp-include/settings/psp_settings.php:1008
1190
+ msgid "Make links in comments not clickable i.e remove links"
1191
+ msgstr ""
1192
+
1193
+ #: psp-include/settings/psp_settings.php:1012
1194
+ msgid "Anchor tags in comments "
1195
+ msgstr ""
1196
+
1197
+ #: psp-include/settings/psp_settings.php:1174
1198
+ msgid "Breadcrumb Settings"
1199
+ msgstr ""
1200
+
1201
+ #: psp-include/settings/psp_settings.php:1182
1202
+ msgid "Use default settings"
1203
+ msgstr ""
1204
+
1205
+ #: psp-include/settings/psp_settings.php:1183
1206
+ msgid ""
1207
+ "If this is checked, all the user defined settings on this page will be "
1208
+ "ignored and default settings will be used."
1209
+ msgstr ""
1210
+
1211
+ #: psp-include/settings/psp_settings.php:1187
1212
+ msgid "Use Default Settings: "
1213
+ msgstr ""
1214
+
1215
+ #: psp-include/settings/psp_settings.php:1201
1216
+ msgid " Used to specify the separator between breadcrumbs."
1217
+ msgstr ""
1218
+
1219
+ #: psp-include/settings/psp_settings.php:1214
1220
+ msgid ""
1221
+ "The default tag used for the breadcrumb trail container is <code>div</code>. "
1222
+ "You might also use <code>span</code> or <code>li</code> as per your stying "
1223
+ "needs."
1224
+ msgstr ""
1225
+
1226
+ #: psp-include/settings/psp_settings.php:1218
1227
+ msgid "Breadcrumb Trail Container Tag: "
1228
+ msgstr ""
1229
+
1230
+ #: psp-include/settings/psp_settings.php:1227
1231
+ msgid ""
1232
+ "Show <code>Browse</code> or any other user defined text in front of the "
1233
+ "breadcrumb trail"
1234
+ msgstr ""
1235
+
1236
+ #: psp-include/settings/psp_settings.php:1228
1237
+ msgid ""
1238
+ "This should be checked if you want to show <code>Browse</code> or any other "
1239
+ "user defined text in front of the breadcrumb trail."
1240
+ msgstr ""
1241
+
1242
+ #: psp-include/settings/psp_settings.php:1232
1243
+ msgid "Show Browse: "
1244
+ msgstr ""
1245
+
1246
+ #: psp-include/settings/psp_settings.php:1241
1247
+ msgid "Show on front"
1248
+ msgstr ""
1249
+
1250
+ #: psp-include/settings/psp_settings.php:1242
1251
+ msgid ""
1252
+ "This should always remain checked if you want to show the front items like "
1253
+ "network home link, site home link or home title in the breadcrumb trail of "
1254
+ "the site front page using Platinum SEO"
1255
+ msgstr ""
1256
+
1257
+ #: psp-include/settings/psp_settings.php:1246
1258
+ msgid "Show on Front: "
1259
+ msgstr ""
1260
+
1261
+ #: psp-include/settings/psp_settings.php:1255
1262
+ msgid "Do trail back to main site in the case of a multisite."
1263
+ msgstr ""
1264
+
1265
+ #: psp-include/settings/psp_settings.php:1256
1266
+ msgid ""
1267
+ "This should be checked if you want to create trail back to the main site if "
1268
+ "this site is part of a multisite."
1269
+ msgstr ""
1270
+
1271
+ #: psp-include/settings/psp_settings.php:1260
1272
+ msgid "Create trail back to Main Site: "
1273
+ msgstr ""
1274
+
1275
+ #: psp-include/settings/psp_settings.php:1269
1276
+ msgid "Show title as part of the breadcrumb trail"
1277
+ msgstr ""
1278
+
1279
+ #: psp-include/settings/psp_settings.php:1270
1280
+ msgid ""
1281
+ "This should be checked if you want to show the title of the page in the "
1282
+ "breadcrumb trail.Title will be in plain text and not have an anchor tag"
1283
+ msgstr ""
1284
+
1285
+ #: psp-include/settings/psp_settings.php:1274
1286
+ msgid "Show Title: "
1287
+ msgstr ""
1288
+
1289
+ #: psp-include/settings/psp_settings.php:1283
1290
+ msgid "Enable the breadcrumbs"
1291
+ msgstr ""
1292
+
1293
+ #: psp-include/settings/psp_settings.php:1284
1294
+ msgid "This should be checked if you want to display the breadcrumb trail."
1295
+ msgstr ""
1296
+
1297
+ #: psp-include/settings/psp_settings.php:1289
1298
+ msgid "Display the breadcrumb trail: "
1299
+ msgstr ""
1300
+
1301
+ #: psp-include/settings/psp_settings.php:1298
1302
+ msgid ""
1303
+ "The default label used if <code>Show Browse</code> is checked is "
1304
+ "<code>Browse</code>. This text is used at the start of the breadcrumb trail "
1305
+ "if <code>Show Browse</code> is checked."
1306
+ msgstr ""
1307
+
1308
+ #: psp-include/settings/psp_settings.php:1302
1309
+ msgid "Text label to use in place of the default"
1310
+ msgstr ""
1311
+
1312
+ #: psp-include/settings/psp_settings.php:1312
1313
+ msgid "The default label used to represent home page is <code>Home</code>."
1314
+ msgstr ""
1315
+
1316
+ #: psp-include/settings/psp_settings.php:1316
1317
+ msgid "Label for Home: "
1318
+ msgstr ""
1319
+
1320
+ #: psp-include/settings/psp_settings.php:1325
1321
+ msgid ""
1322
+ "The default label used is <code>404 Not Found</code>. This is the label to "
1323
+ "use as page title in breadcrumb trail on 404 Error page if <code>Show Title</"
1324
+ "code> is checked."
1325
+ msgstr ""
1326
+
1327
+ #: psp-include/settings/psp_settings.php:1329
1328
+ msgid "Label to use as Title in breadcrumb trail on 404 Error page: "
1329
+ msgstr ""
1330
+
1331
+ #: psp-include/settings/psp_settings.php:1412
1332
+ #: psp-include/settings/psp_settings.php:1513
1333
+ #: psp-include/settings/psp_settings.php:2256
1334
+ #: psp-include/settings/psp_settings.php:2438
1335
+ #, php-format
1336
+ msgid "%s Settings"
1337
+ msgstr ""
1338
+
1339
+ #: psp-include/settings/psp_settings.php:1424
1340
+ msgid "search keyword/keyphrase"
1341
+ msgstr ""
1342
+
1343
+ #: psp-include/settings/psp_settings.php:1424
1344
+ #: psp-include/settings/psp_settings.php:1430
1345
+ #: psp-include/settings/psp_settings.php:1518
1346
+ #: psp-include/settings/psp_settings.php:1522
1347
+ #: psp-include/settings/psp_settings.php:1526
1348
+ #: psp-include/settings/psp_settings.php:2188
1349
+ #: psp-include/settings/psp_settings.php:2191
1350
+ #: psp-include/settings/psp_settings.php:2199
1351
+ #: psp-include/settings/psp_settings.php:2201
1352
+ #: psp-include/settings/psp_settings.php:2208
1353
+ #: psp-include/settings/psp_settings.php:2210
1354
+ #: psp-include/settings/psp_settings.php:2217
1355
+ #: psp-include/settings/psp_settings.php:2219
1356
+ #: psp-include/settings/psp_settings.php:2352
1357
+ #: psp-include/settings/psp_settings.php:2354
1358
+ msgid "site name"
1359
+ msgstr ""
1360
+
1361
+ #: psp-include/settings/psp_settings.php:1424
1362
+ #: psp-include/settings/psp_settings.php:1518
1363
+ #: psp-include/settings/psp_settings.php:1522
1364
+ #: psp-include/settings/psp_settings.php:1526
1365
+ #: psp-include/settings/psp_settings.php:2188
1366
+ #: psp-include/settings/psp_settings.php:2191
1367
+ #: psp-include/settings/psp_settings.php:2199
1368
+ #: psp-include/settings/psp_settings.php:2201
1369
+ #: psp-include/settings/psp_settings.php:2208
1370
+ #: psp-include/settings/psp_settings.php:2210
1371
+ #: psp-include/settings/psp_settings.php:2217
1372
+ #: psp-include/settings/psp_settings.php:2219
1373
+ #: psp-include/settings/psp_settings.php:2352
1374
+ #: psp-include/settings/psp_settings.php:2354
1375
+ msgid "site description"
1376
+ msgstr ""
1377
+
1378
+ #: psp-include/settings/psp_settings.php:1424
1379
+ #: psp-include/settings/psp_settings.php:1430
1380
+ #: psp-include/settings/psp_settings.php:1518
1381
+ #: psp-include/settings/psp_settings.php:1522
1382
+ #: psp-include/settings/psp_settings.php:1526
1383
+ #: psp-include/settings/psp_settings.php:2188
1384
+ #: psp-include/settings/psp_settings.php:2191
1385
+ #: psp-include/settings/psp_settings.php:2199
1386
+ #: psp-include/settings/psp_settings.php:2201
1387
+ #: psp-include/settings/psp_settings.php:2208
1388
+ #: psp-include/settings/psp_settings.php:2210
1389
+ #: psp-include/settings/psp_settings.php:2217
1390
+ #: psp-include/settings/psp_settings.php:2219
1391
+ #: psp-include/settings/psp_settings.php:2352
1392
+ #: psp-include/settings/psp_settings.php:2354
1393
+ msgid "Separator chosen in General Settings"
1394
+ msgstr ""
1395
+
1396
+ #: psp-include/settings/psp_settings.php:1430
1397
+ msgid "\"404 Not Found\""
1398
+ msgstr ""
1399
+
1400
+ #: psp-include/settings/psp_settings.php:1456
1401
+ #: psp-include/settings/psp_settings.php:1545
1402
+ msgid " Do not index and show this page in SERPS (Search Engine Result Pages)."
1403
+ msgstr ""
1404
+
1405
+ #: psp-include/settings/psp_settings.php:1460
1406
+ #: psp-include/settings/psp_settings.php:1598
1407
+ #: psp-include/settings/psp_settings.php:2270
1408
+ #: psp-include/settings/psp_settings.php:2457
1409
+ msgid "Meta Robots: "
1410
+ msgstr ""
1411
+
1412
+ #: psp-include/settings/psp_settings.php:1467
1413
+ #: psp-include/settings/psp_settings.php:1553
1414
+ msgid ""
1415
+ " Do not show Cached link in SERPS (Search Engine Result Pages) for this "
1416
+ "page. It thus tells search engines not to store a cached copy of the page."
1417
+ msgstr ""
1418
+
1419
+ #: psp-include/settings/psp_settings.php:1478
1420
+ #: psp-include/settings/psp_settings.php:1561
1421
+ msgid ""
1422
+ " Do not show snippet (description) in SERPS (Search Engine Result Pages) for "
1423
+ "this page. It also tells search engines not to show a cached link in SERPS "
1424
+ "for this page."
1425
+ msgstr ""
1426
+
1427
+ #: psp-include/settings/psp_settings.php:1518
1428
+ msgid "Date"
1429
+ msgstr ""
1430
+
1431
+ #: psp-include/settings/psp_settings.php:1522
1432
+ msgid "Author Name"
1433
+ msgstr ""
1434
+
1435
+ #: psp-include/settings/psp_settings.php:1526
1436
+ msgid "Post type archive Title"
1437
+ msgstr ""
1438
+
1439
+ #: psp-include/settings/psp_settings.php:1575
1440
+ msgid ""
1441
+ " Set the URL to which users landing on this page should be redirected to. "
1442
+ "This is equivalent to disabling this archive page. You may redirect this "
1443
+ "page to the most appropriate page on your site, which might be the Front "
1444
+ "page or Home page of this site."
1445
+ msgstr ""
1446
+
1447
+ #: psp-include/settings/psp_settings.php:1675
1448
+ #: psp-include/settings/psp_settings.php:2806
1449
+ msgid "Redirections"
1450
+ msgstr ""
1451
+
1452
+ #: psp-include/settings/psp_settings.php:1686
1453
+ msgid ""
1454
+ "Turn ON to enable redirections created using Platinum SEO (Recommended)."
1455
+ msgstr ""
1456
+
1457
+ #: psp-include/settings/psp_settings.php:1691
1458
+ msgid "Redirection: "
1459
+ msgstr ""
1460
+
1461
+ #: psp-include/settings/psp_settings.php:1691
1462
+ msgid "what does this do?"
1463
+ msgstr ""
1464
+
1465
+ #: psp-include/settings/psp_settings.php:1700
1466
+ msgid ""
1467
+ "Turn ON to enable automatics redirection of all Posts using Platinum SEO. "
1468
+ "this will automatically take care of changes in permalink format "
1469
+ "(Recommended)."
1470
+ msgstr ""
1471
+
1472
+ #: psp-include/settings/psp_settings.php:1705
1473
+ msgid "Automatically Redirect Posts: "
1474
+ msgstr ""
1475
+
1476
+ #: psp-include/settings/psp_settings.php:1705
1477
+ msgid "How does this help?"
1478
+ msgstr ""
1479
+
1480
+ #: psp-include/settings/psp_settings.php:1713
1481
+ #: psp-include/settings/psp_settings.php:1792
1482
+ msgid "Rows"
1483
+ msgstr ""
1484
+
1485
+ #: psp-include/settings/psp_settings.php:1714
1486
+ msgid "Set the max number of entries in Redirection log.(Highly Recommended)"
1487
+ msgstr ""
1488
+
1489
+ #: psp-include/settings/psp_settings.php:1718
1490
+ msgid "Limit Redirection Log to: "
1491
+ msgstr ""
1492
+
1493
+ #: psp-include/settings/psp_settings.php:1728
1494
+ msgid ""
1495
+ "Turn ON to disable WordPress 404 Canonical Redirect Guessing (Recommended)."
1496
+ msgstr ""
1497
+
1498
+ #: psp-include/settings/psp_settings.php:1732
1499
+ msgid "Disable WP 404 Redirect Guessing: "
1500
+ msgstr ""
1501
+
1502
+ #: psp-include/settings/psp_settings.php:1732
1503
+ #: psp-include/settings/psp_settings.php:1782
1504
+ msgid "How does this work?"
1505
+ msgstr ""
1506
+
1507
+ #: psp-include/settings/psp_settings.php:1740
1508
+ msgid "404 Errors"
1509
+ msgstr ""
1510
+
1511
+ #: psp-include/settings/psp_settings.php:1751
1512
+ msgid "Turn ON to monitor 404 errors using Platinum SEO."
1513
+ msgstr ""
1514
+
1515
+ #: psp-include/settings/psp_settings.php:1755
1516
+ msgid "Track 404 errors: "
1517
+ msgstr ""
1518
+
1519
+ #: psp-include/settings/psp_settings.php:1764
1520
+ msgid ""
1521
+ "Turn ON to track only 404 errors that occur due to a bad link reference from "
1522
+ "the site linking to your site."
1523
+ msgstr ""
1524
+
1525
+ #: psp-include/settings/psp_settings.php:1768
1526
+ msgid "Log 404s with referrers only: "
1527
+ msgstr ""
1528
+
1529
+ #: psp-include/settings/psp_settings.php:1777
1530
+ msgid ""
1531
+ "Turn ON to log 404/410 errors encountered on your site by Search Engine Bots "
1532
+ "only - Eg. Googlebot and Bingbot (Recommended)."
1533
+ msgstr ""
1534
+
1535
+ #: psp-include/settings/psp_settings.php:1782
1536
+ msgid "Log errors for Search Engine Bots only: "
1537
+ msgstr ""
1538
+
1539
+ #: psp-include/settings/psp_settings.php:1793
1540
+ msgid "Set the max number of entries in 404 log.(Highly Recommended)"
1541
+ msgstr ""
1542
+
1543
+ #: psp-include/settings/psp_settings.php:1797
1544
+ msgid "Limit 404 Log to: "
1545
+ msgstr ""
1546
+
1547
+ #: psp-include/settings/psp_settings.php:1803
1548
+ msgid "Permalink Structure for Taxonomies"
1549
+ msgstr ""
1550
+
1551
+ #: psp-include/settings/psp_settings.php:1813
1552
+ #: psp-include/settings/psp_settings.php:1829
1553
+ msgid "Remove Base"
1554
+ msgstr ""
1555
+
1556
+ #: psp-include/settings/psp_settings.php:1817
1557
+ msgid "Category: "
1558
+ msgstr ""
1559
+
1560
+ #: psp-include/settings/psp_settings.php:1936
1561
+ msgid "Settings for generating Json-LD Schemas"
1562
+ msgstr ""
1563
+
1564
+ #: psp-include/settings/psp_settings.php:1942
1565
+ msgid "Site name for Google"
1566
+ msgstr ""
1567
+
1568
+ #: psp-include/settings/psp_settings.php:1950
1569
+ msgid "Sitelinks Search Box in Google"
1570
+ msgstr ""
1571
+
1572
+ #: psp-include/settings/psp_settings.php:1958
1573
+ msgid "Enable"
1574
+ msgstr ""
1575
+
1576
+ #: psp-include/settings/psp_settings.php:1962
1577
+ msgid "Sitelinks Searchbox: "
1578
+ msgstr ""
1579
+
1580
+ #: psp-include/settings/psp_settings.php:1971
1581
+ msgid ""
1582
+ "Here you can specify a search URL pattern for sending queries to your site "
1583
+ "search engine. You need to change this only if the URL is different from "
1584
+ "what is defined above. For most wordpress sites, leaving this unchanged "
1585
+ "would work."
1586
+ msgstr ""
1587
+
1588
+ #: psp-include/settings/psp_settings.php:1975
1589
+ msgid "Sitelinks Search box Target URL: "
1590
+ msgstr ""
1591
+
1592
+ #: psp-include/settings/psp_settings.php:1981
1593
+ msgid "Knowledge Graph Settings for Google Search"
1594
+ msgstr ""
1595
+
1596
+ #: psp-include/settings/psp_settings.php:1991
1597
+ msgid "Enable Knowledge Graph Tags for Google"
1598
+ msgstr ""
1599
+
1600
+ #: psp-include/settings/psp_settings.php:1995
1601
+ msgid "Knowledge Graph Tags: "
1602
+ msgstr ""
1603
+
1604
+ #: psp-include/settings/psp_settings.php:2007
1605
+ msgid ""
1606
+ "Select a profile type to be used for Knowledge Graph. For complete reference "
1607
+ "of knowledge graph profile types refer "
1608
+ msgstr ""
1609
+
1610
+ #: psp-include/settings/psp_settings.php:2011
1611
+ msgid "Profile Type for Knowledge Graph: "
1612
+ msgstr ""
1613
+
1614
+ #: psp-include/settings/psp_settings.php:2020
1615
+ msgid ""
1616
+ "Enter the name of the organization/person to be used on knowledge graph for "
1617
+ "this domain. For eg: \"Tehblissonline\" is the organization name used for "
1618
+ "the site http://techblissonline.com/."
1619
+ msgstr ""
1620
+
1621
+ #: psp-include/settings/psp_settings.php:2024
1622
+ msgid "Name: "
1623
+ msgstr ""
1624
+
1625
+ #: psp-include/settings/psp_settings.php:2034
1626
+ msgid ""
1627
+ "Enter the URL to the company/organization logo or upload a logo to use on "
1628
+ "Knowledge Graph"
1629
+ msgstr ""
1630
+
1631
+ #: psp-include/settings/psp_settings.php:2039
1632
+ msgid "Company/Organization logo to use on knowledge graph: "
1633
+ msgstr ""
1634
+
1635
+ #: psp-include/settings/psp_settings.php:2045
1636
+ msgid "Social Profiles"
1637
+ msgstr ""
1638
+
1639
+ #: psp-include/settings/psp_settings.php:2054
1640
+ msgid "Enter the facebook profile URL to be associated with this domain/site."
1641
+ msgstr ""
1642
+
1643
+ #: psp-include/settings/psp_settings.php:2058
1644
+ msgid "Facebook profile URL: "
1645
+ msgstr ""
1646
+
1647
+ #: psp-include/settings/psp_settings.php:2067
1648
+ msgid "Enter the twitter profile URL to be associated with this domain/site."
1649
+ msgstr ""
1650
+
1651
+ #: psp-include/settings/psp_settings.php:2071
1652
+ msgid "Twitter profile URL: "
1653
+ msgstr ""
1654
+
1655
+ #: psp-include/settings/psp_settings.php:2080
1656
+ msgid "Enter the google+ profile URL to be associated with this domain/site."
1657
+ msgstr ""
1658
+
1659
+ #: psp-include/settings/psp_settings.php:2084
1660
+ msgid "Google+ profile URL: "
1661
+ msgstr ""
1662
+
1663
+ #: psp-include/settings/psp_settings.php:2093
1664
+ msgid "Enter the instagram profile URL to be associated with this domain/site."
1665
+ msgstr ""
1666
+
1667
+ #: psp-include/settings/psp_settings.php:2097
1668
+ msgid "Instagram profile URL: "
1669
+ msgstr ""
1670
+
1671
+ #: psp-include/settings/psp_settings.php:2106
1672
+ msgid "Enter the linkedin profile URL to be associated with this domain/site."
1673
+ msgstr ""
1674
+
1675
+ #: psp-include/settings/psp_settings.php:2110
1676
+ msgid "LinkedIn profile URL: "
1677
+ msgstr ""
1678
+
1679
+ #: psp-include/settings/psp_settings.php:2119
1680
+ msgid "Enter the youtube profile URL to be associated with this domain/site."
1681
+ msgstr ""
1682
+
1683
+ #: psp-include/settings/psp_settings.php:2123
1684
+ msgid "Youtube profile URL: "
1685
+ msgstr ""
1686
+
1687
+ #: psp-include/settings/psp_settings.php:2188
1688
+ #: psp-include/settings/psp_settings.php:2191
1689
+ #: psp-include/settings/psp_settings.php:2199
1690
+ #: psp-include/settings/psp_settings.php:2201
1691
+ #: psp-include/settings/psp_settings.php:2208
1692
+ #: psp-include/settings/psp_settings.php:2210
1693
+ #: psp-include/settings/psp_settings.php:2217
1694
+ #: psp-include/settings/psp_settings.php:2219
1695
+ #: psp-include/settings/psp_settings.php:2352
1696
+ #: psp-include/settings/psp_settings.php:2354
1697
+ msgid "Platinum SEO title"
1698
+ msgstr ""
1699
+
1700
+ #: psp-include/settings/psp_settings.php:2188
1701
+ #: psp-include/settings/psp_settings.php:2191
1702
+ msgid "Term name"
1703
+ msgstr ""
1704
+
1705
+ #: psp-include/settings/psp_settings.php:2191
1706
+ msgid "Term description"
1707
+ msgstr ""
1708
+
1709
+ #: psp-include/settings/psp_settings.php:2191
1710
+ #: psp-include/settings/psp_settings.php:2201
1711
+ #: psp-include/settings/psp_settings.php:2210
1712
+ #: psp-include/settings/psp_settings.php:2219
1713
+ #: psp-include/settings/psp_settings.php:2354
1714
+ msgid "Platinum SEO Description"
1715
+ msgstr ""
1716
+
1717
+ #: psp-include/settings/psp_settings.php:2199
1718
+ #: psp-include/settings/psp_settings.php:2201
1719
+ msgid "Category name"
1720
+ msgstr ""
1721
+
1722
+ #: psp-include/settings/psp_settings.php:2201
1723
+ msgid "Category description"
1724
+ msgstr ""
1725
+
1726
+ #: psp-include/settings/psp_settings.php:2208
1727
+ #: psp-include/settings/psp_settings.php:2210
1728
+ msgid "Tag name"
1729
+ msgstr ""
1730
+
1731
+ #: psp-include/settings/psp_settings.php:2210
1732
+ msgid "Tag description"
1733
+ msgstr ""
1734
+
1735
+ #: psp-include/settings/psp_settings.php:2217
1736
+ #: psp-include/settings/psp_settings.php:2219
1737
+ msgid "Post Format name"
1738
+ msgstr ""
1739
+
1740
+ #: psp-include/settings/psp_settings.php:2219
1741
+ msgid "Post Format description"
1742
+ msgstr ""
1743
+
1744
+ #: psp-include/settings/psp_settings.php:2251
1745
+ #: psp-include/settings/psp_settings.php:2425
1746
+ msgid "Hide for all users other than Admin"
1747
+ msgstr ""
1748
+
1749
+ #: psp-include/settings/psp_settings.php:2269
1750
+ #: psp-include/settings/psp_settings.php:2455
1751
+ msgid "Meta Description Format: "
1752
+ msgstr ""
1753
+
1754
+ #: psp-include/settings/psp_settings.php:2271
1755
+ #: psp-include/settings/psp_settings.php:2458
1756
+ #, php-format
1757
+ msgid "Hide %s Metabox:"
1758
+ msgstr ""
1759
+
1760
+ #: psp-include/settings/psp_settings.php:2352
1761
+ #: psp-include/settings/psp_settings.php:2354
1762
+ msgid "Wordpress Title"
1763
+ msgstr ""
1764
+
1765
+ #: psp-include/settings/psp_settings.php:2352
1766
+ msgid "Taxonomy"
1767
+ msgstr ""
1768
+
1769
+ #: psp-include/settings/psp_settings.php:2433
1770
+ msgid ""
1771
+ "Select a default taxonomy to be used for this post type in breadcrumb trail. "
1772
+ "Make sure that all posts of this post type are tagged with terms falling "
1773
+ "under this taxonomy,"
1774
+ msgstr ""
1775
+
1776
+ #: psp-include/settings/psp_settings.php:2439
1777
+ #, php-format
1778
+ msgid "%s (Media) Settings"
1779
+ msgstr ""
1780
+
1781
+ #: psp-include/settings/psp_settings.php:2459
1782
+ msgid "Taxonomy for breadcrumb trail: "
1783
+ msgstr ""
1784
+
1785
+ #: psp-include/settings/psp_settings.php:2554
1786
+ msgid "These settings are applied throughout the site wherever appropriate."
1787
+ msgstr ""
1788
+
1789
+ #: psp-include/settings/psp_settings.php:2555
1790
+ msgid ""
1791
+ "The Title separator can be used in all Title formats and Description formats "
1792
+ "by specifying the tag - "
1793
+ msgstr ""
1794
+
1795
+ #: psp-include/settings/psp_settings.php:2556
1796
+ msgid "Home page SEO settings"
1797
+ msgstr ""
1798
+
1799
+ #: psp-include/settings/psp_settings.php:2556
1800
+ msgid ""
1801
+ "Set the title and meta description tags used on home page of your site here."
1802
+ msgstr ""
1803
+
1804
+ #: psp-include/settings/psp_settings.php:2557
1805
+ msgid ""
1806
+ "Set the title and description formats for some default and all custom "
1807
+ "taxonomies."
1808
+ msgstr ""
1809
+
1810
+ #: psp-include/settings/psp_settings.php:2558
1811
+ msgid ""
1812
+ "Set the title and description formats for some default and all custom post "
1813
+ "types."
1814
+ msgstr ""
1815
+
1816
+ #: psp-include/settings/psp_settings.php:2559
1817
+ msgid "Set the title format for search result pages."
1818
+ msgstr ""
1819
+
1820
+ #: psp-include/settings/psp_settings.php:2560
1821
+ msgid "Set the title format for 404 page."
1822
+ msgstr ""
1823
+
1824
+ #: psp-include/settings/psp_settings.php:2561
1825
+ msgid ""
1826
+ "These Nofollow settings are applied throughout the site wherever appropriate."
1827
+ msgstr ""
1828
+
1829
+ #: psp-include/settings/psp_settings.php:2562
1830
+ msgid ""
1831
+ "These settings, if checked, will remove the base from taxonomies like "
1832
+ "Category and other custom taxonomies, if any. If \"Remove base\" is chosen "
1833
+ "for Category then the corresponding base will be removed from the permalink "
1834
+ "structure for categories."
1835
+ msgstr ""
1836
+
1837
+ #: psp-include/settings/psp_settings.php:2563
1838
+ msgid "Manage your Redirecions "
1839
+ msgstr ""
1840
+
1841
+ #: psp-include/settings/psp_settings.php:2563
1842
+ #: psp-include/settings/psp_settings.php:2564
1843
+ msgid "here "
1844
+ msgstr ""
1845
+
1846
+ #: psp-include/settings/psp_settings.php:2564
1847
+ msgid "Manage your 404 errors "
1848
+ msgstr ""
1849
+
1850
+ #: psp-include/settings/psp_settings.php:2565
1851
+ msgid "Remove unwanted links from HTML"
1852
+ msgstr ""
1853
+
1854
+ #: psp-include/settings/psp_settings.php:2566
1855
+ msgid ""
1856
+ "Many of these links might not be needed in the head section for most sites "
1857
+ "and removing these might help reduce page size and also improve crawlability "
1858
+ "of more imortant links. So you may choose to remove those that are not "
1859
+ "needed for you site."
1860
+ msgstr ""
1861
+
1862
+ #: psp-include/settings/psp_settings.php:2567
1863
+ msgid ""
1864
+ "Strip HTML and anchor tags embedded in comments. Note that these remove the "
1865
+ "HTML and links embedded in the comments and not the comment author links."
1866
+ msgstr ""
1867
+
1868
+ #: psp-include/settings/psp_settings.php:2568
1869
+ msgid ""
1870
+ "Here you can enable the markup for \"Google Sitelinks Search Box\" on your "
1871
+ "site frontpage. For more information on this refer"
1872
+ msgstr ""
1873
+
1874
+ #: psp-include/settings/psp_settings.php:2568
1875
+ msgid ""
1876
+ "However, you must remember that though you might chose to implement this "
1877
+ "markup by enabling this, google algorithms determine whether or not to show "
1878
+ "a sitelink search box in Google SERPS for any given domain."
1879
+ msgstr ""
1880
+
1881
+ #: psp-include/settings/psp_settings.php:2578
1882
+ msgid ""
1883
+ "These breadcrumb settings are for displaying breadcrumbs on the Post. It is "
1884
+ "built on top of Justin Tadlock's @BreadcrumbTrail package. Place the code"
1885
+ msgstr ""
1886
+
1887
+ #: psp-include/settings/psp_settings.php:2578
1888
+ msgid ""
1889
+ " in your theme's single.php, at an apppropriate location, to display the "
1890
+ "generated breadcrumb trail. You may add the breadcrumb Json-LD schema (along "
1891
+ "with other schemas) in the Techblissonline Platinum SEO metabox for the Post."
1892
+ msgstr ""
1893
+
1894
+ #: psp-include/settings/psp_settings.php:2579
1895
+ msgid ""
1896
+ "The following settings are not necessary if you had added these schemas in "
1897
+ "the Home page and/or Contacts Page JSON Schema Editor settings of this "
1898
+ "plugin."
1899
+ msgstr ""
1900
+
1901
+ #: psp-include/settings/psp_settings.php:2579
1902
+ msgid "Schema for enabling Sitelink Search Box in Google and"
1903
+ msgstr ""
1904
+
1905
+ #: psp-include/settings/psp_settings.php:2579
1906
+ msgid "Schema for Knowledge Graph"
1907
+ msgstr ""
1908
+
1909
+ #: psp-include/settings/psp_settings.php:2791
1910
+ #: psp-include/settings/psp_settings.php:2792
1911
+ msgid "Techblissonline Platinum SEO and social Pack"
1912
+ msgstr ""
1913
+
1914
+ #: psp-include/settings/psp_settings.php:2791
1915
+ msgid "Platinum SEO and Social Pack"
1916
+ msgstr ""
1917
+
1918
+ #: psp-include/settings/psp_settings.php:2801
1919
+ msgid "Techblissonline Platinum SEO Social"
1920
+ msgstr ""
1921
+
1922
+ #: psp-include/settings/psp_settings.php:2801
1923
+ msgid "Social"
1924
+ msgstr ""
1925
+
1926
+ #: psp-include/settings/psp_settings.php:2804
1927
+ msgid "Techblissonline Platinum SEO Tools"
1928
+ msgstr ""
1929
+
1930
+ #: psp-include/settings/psp_settings.php:2804
1931
+ msgid "SEO - Editors"
1932
+ msgstr ""
1933
+
1934
+ #: psp-include/settings/psp_settings.php:2805
1935
+ msgid " SEO Tools"
1936
+ msgstr ""
1937
+
1938
+ #: psp-include/settings/psp_settings.php:2806
1939
+ msgid "Techblissonline Platinum SEO Redirections"
1940
+ msgstr ""
1941
+
1942
+ #: psp-include/settings/psp_settings.php:2807
1943
+ msgid "Techblissonline Platinum SEO 404 Manager"
1944
+ msgstr ""
1945
+
1946
+ #: psp-include/settings/psp_settings.php:2807
1947
+ msgid "Manage 404 Errors"
1948
+ msgstr ""
1949
+
1950
+ #: psp-include/settings/psp_settings.php:2809
1951
+ msgid "Premium - Licenses"
1952
+ msgstr ""
1953
+
1954
+ #: psp-include/settings/psp_settings.php:2890
1955
+ #: psp-include/settings/psp_settings.php:3110
1956
+ msgid " Techblissonline Platinum SEO and Social Meta Box "
1957
+ msgstr ""
1958
+
1959
+ #: psp-include/settings/psp_settings.php:2900
1960
+ #: psp-include/settings/psp_settings.php:3120
1961
+ #: psp-include/settings/psp_settings.php:3574
1962
+ msgid " SEO"
1963
+ msgstr ""
1964
+
1965
+ #: psp-include/settings/psp_settings.php:2902
1966
+ #: psp-include/settings/psp_settings.php:3121
1967
+ #: psp-include/settings/psp_settings.php:3575
1968
+ msgid " Analysis"
1969
+ msgstr ""
1970
+
1971
+ #: psp-include/settings/psp_settings.php:2903
1972
+ #: psp-include/settings/psp_settings.php:2905
1973
+ #: psp-include/settings/psp_settings.php:3123
1974
+ #: psp-include/settings/psp_settings.php:3125
1975
+ #: psp-include/settings/psp_settings.php:3577
1976
+ #: psp-include/settings/psp_settings.php:3579
1977
+ msgid " Advanced"
1978
+ msgstr ""
1979
+
1980
+ #: psp-include/settings/psp_settings.php:2904
1981
+ #: psp-include/settings/psp_settings.php:3124
1982
+ #: psp-include/settings/psp_settings.php:3578
1983
+ msgid " Basic"
1984
+ msgstr ""
1985
+
1986
+ #: psp-include/settings/psp_settings.php:3279
1987
+ #: psp-include/settings/psp_settings.php:3286
1988
+ #: psp-include/settings/psp_settings.php:3300
1989
+ msgid " Techblissonline Platinum SEO and Social Meta Box"
1990
+ msgstr ""
1991
+
1992
+ #: psp-include/settings/psp_settings.php:4672
1993
+ msgid "Techblissonline Platinum SEO and Social Settings"
1994
+ msgstr ""
1995
+
1996
+ #: psp-include/settings/psp_social_settings.php:76
1997
+ msgid "Facebook Open Graph Sitewide Settings"
1998
+ msgstr ""
1999
+
2000
+ #: psp-include/settings/psp_social_settings.php:86
2001
+ msgid "Enable Opengraph Tags for Facebook"
2002
+ msgstr ""
2003
+
2004
+ #: psp-include/settings/psp_social_settings.php:90
2005
+ msgid "Open Graph Tags: "
2006
+ msgstr ""
2007
+
2008
+ #: psp-include/settings/psp_social_settings.php:99
2009
+ msgid ""
2010
+ "Enter the site name to use while sharing pages from this domain/site. For "
2011
+ "eg: \"Tehblissonline\" is the sitename used for the site http://"
2012
+ "techblissonline.com/. If this is left blank, then the default wordpress site "
2013
+ "name will be used."
2014
+ msgstr ""
2015
+
2016
+ #: psp-include/settings/psp_social_settings.php:103
2017
+ msgid "Site Name: "
2018
+ msgstr ""
2019
+
2020
+ #: psp-include/settings/psp_social_settings.php:112
2021
+ msgid ""
2022
+ "Enter the user ID of one or more admins for the FB app/page, if any, of your "
2023
+ "domain/website. You can enter Facebook username rather than the numeric ID, "
2024
+ "which is probably easier to debug and manage. You can find your user name on "
2025
+ "your profile page in the page URL. For eg., if you page is <code>facebook."
2026
+ "com/johndoe</code> then your username is <code>johndoe</code>. If you want "
2027
+ "to get and use your numeric ID, you can find it by visiting <code>http://"
2028
+ "graph.facebook.com/johndoe</code>"
2029
+ msgstr ""
2030
+
2031
+ #: psp-include/settings/psp_social_settings.php:116
2032
+ msgid "fb:admins (optional): "
2033
+ msgstr ""
2034
+
2035
+ #: psp-include/settings/psp_social_settings.php:139
2036
+ msgid ""
2037
+ "Enter the Facebook App ID for the FB app,if any, created for your domain. "
2038
+ "This would help to get facebook domain insights about the page(s) on which "
2039
+ "it is added by way of a open graph meta tag."
2040
+ msgstr ""
2041
+
2042
+ #: psp-include/settings/psp_social_settings.php:143
2043
+ msgid "Facebook Application ID: "
2044
+ msgstr ""
2045
+
2046
+ #: psp-include/settings/psp_social_settings.php:152
2047
+ msgid ""
2048
+ "Enter the Facebook App Secret ID for the FB app,if any, created for your "
2049
+ "domain. This would help to get facebook engagement metrics for the page(s) "
2050
+ "on which Facebook share buttons is/are added."
2051
+ msgstr ""
2052
+
2053
+ #: psp-include/settings/psp_social_settings.php:156
2054
+ msgid "Facebook Application Secret: "
2055
+ msgstr ""
2056
+
2057
+ #: psp-include/settings/psp_social_settings.php:165
2058
+ msgid ""
2059
+ "Enter the Facebook profile ID of a user that can be followed. Here you may "
2060
+ "even enter the page id of a facebook page that is set up for this domain/"
2061
+ "site."
2062
+ msgstr ""
2063
+
2064
+ #: psp-include/settings/psp_social_settings.php:169
2065
+ msgid "Facebook Profile ID (Optional): "
2066
+ msgstr ""
2067
+
2068
+ #: psp-include/settings/psp_social_settings.php:178
2069
+ msgid ""
2070
+ "Enter the Facebook URL to the page set up for this site. For eg: https://www."
2071
+ "facebook.com/Techblissonline"
2072
+ msgstr ""
2073
+
2074
+ #: psp-include/settings/psp_social_settings.php:182
2075
+ msgid "Facebook Publisher: "
2076
+ msgstr ""
2077
+
2078
+ #: psp-include/settings/psp_social_settings.php:194
2079
+ msgid ""
2080
+ "Select an open graph type to be used by default for individual posts/pages "
2081
+ "of your site. For eg., if your site is a blog, you can enter <code>article</"
2082
+ "code> as the default open graph type. Note that this can be overridden "
2083
+ "through <code>Social</code> settings for your individual post in "
2084
+ "\"Techblissonline Platinum SEO and Social Meta Box\" on your post editor. "
2085
+ "For complete reference of open graph types refer <a href=\"https://ogp.me/"
2086
+ "#object-type\" target=\"_blank\">facebook developer docs reference.</a>"
2087
+ msgstr ""
2088
+
2089
+ #: psp-include/settings/psp_social_settings.php:198
2090
+ msgid "Facebook Open Graph Type: "
2091
+ msgstr ""
2092
+
2093
+ #: psp-include/settings/psp_social_settings.php:210
2094
+ msgid ""
2095
+ "Enter the locale that the facebook object tags are marked up in. Default is "
2096
+ "en_US. For valid values refer <a href=\"https://techblissonline.com/facebook-"
2097
+ "locales-and-languages/\" target=\"_blank\">Techblissonline</a>"
2098
+ msgstr ""
2099
+
2100
+ #: psp-include/settings/psp_social_settings.php:214
2101
+ msgid "Open Graph Locale: "
2102
+ msgstr ""
2103
+
2104
+ #: psp-include/settings/psp_social_settings.php:223
2105
+ msgid ""
2106
+ "Enter the image URL or upload an image to be used as a default image while "
2107
+ "sharing any post/page on facebook. This will be used if a post/page does not "
2108
+ "have any image"
2109
+ msgstr ""
2110
+
2111
+ #: psp-include/settings/psp_social_settings.php:228
2112
+ msgid "Default image for sharing on facebook: "
2113
+ msgstr ""
2114
+
2115
+ #: psp-include/settings/psp_social_settings.php:234
2116
+ msgid "Twitter Card Sitewide Settings"
2117
+ msgstr ""
2118
+
2119
+ #: psp-include/settings/psp_social_settings.php:242
2120
+ msgid "Enable Twitter Card"
2121
+ msgstr ""
2122
+
2123
+ #: psp-include/settings/psp_social_settings.php:246
2124
+ msgid "Twitter Card: "
2125
+ msgstr ""
2126
+
2127
+ #: psp-include/settings/psp_social_settings.php:258
2128
+ msgid ""
2129
+ "Enter the twitter card type to be used by default for individual posts/pages "
2130
+ "of your site. For eg., if your site is a blog, you can enter <code>summary</"
2131
+ "code> as the default twitter card type. Note that this can be overridden "
2132
+ "through <code>Social</code> settings for your individual post in "
2133
+ "\"Techblissonline Platinum SEO and Social Meta Box\" on your post editor. "
2134
+ "For complete reference of twitter card types refer <a href=\"https://"
2135
+ "developer.twitter.com/en/docs/tweets/optimize-with-cards/guides/getting-"
2136
+ "started\" target=\"_blank\">twitter development document reference.</a>"
2137
+ msgstr ""
2138
+
2139
+ #: psp-include/settings/psp_social_settings.php:262
2140
+ msgid "Twitter CardType: "
2141
+ msgstr ""
2142
+
2143
+ #: psp-include/settings/psp_social_settings.php:271
2144
+ msgid ""
2145
+ "The Twitter <code>@username</code> the card should be attributed to. This is "
2146
+ "usually the twitter handle created for your domain /website. However, You "
2147
+ "might even choose to use your personal twitter user id here. If you twitter "
2148
+ "user id is <code>@johndoe</code>, enter <code>johndoe</code> as the user id "
2149
+ "here. This user id is required for <a href=\"https://analytics.twitter.com/"
2150
+ "\" target=\"_blank\">Twitter Card analytics</a>"
2151
+ msgstr ""
2152
+
2153
+ #: psp-include/settings/psp_social_settings.php:275
2154
+ msgid "Twitter User: "
2155
+ msgstr ""
2156
+
2157
+ #: psp-include/settings/psp_social_settings.php:284
2158
+ msgid ""
2159
+ "Enter the image URL or upload an image to be used as a default image while "
2160
+ "sharing any post/page on twitter. This will be used if a post/page does not "
2161
+ "have any image"
2162
+ msgstr ""
2163
+
2164
+ #: psp-include/settings/psp_social_settings.php:289
2165
+ msgid "Default image for sharing on twitter: "
2166
+ msgstr ""
2167
+
2168
+ #: psp-include/settings/psp_social_settings.php:295
2169
+ msgid "Pinterest and Linkedin Settings"
2170
+ msgstr ""
2171
+
2172
+ #: psp-include/settings/psp_social_settings.php:304
2173
+ msgid "Enable markup for Pinterest and Linkedin."
2174
+ msgstr ""
2175
+
2176
+ #: psp-include/settings/psp_social_settings.php:308
2177
+ msgid "Enable Markup: "
2178
+ msgstr ""
2179
+
2180
+ #: psp-include/settings/psp_social_settings.php:439
2181
+ msgid ""
2182
+ "Techblissonline Platinum SEO Pack - \n"
2183
+ "\t\t\tSocial"
2184
+ msgstr ""
2185
+
2186
+ #: psp-include/settings/psp_tools_settings.php:91
2187
+ msgid "Google analytics Tracking"
2188
+ msgstr ""
2189
+
2190
+ #: psp-include/settings/psp_tools_settings.php:99
2191
+ msgid "Yes"
2192
+ msgstr ""
2193
+
2194
+ #: psp-include/settings/psp_tools_settings.php:100
2195
+ msgid ""
2196
+ "Check to add Google analytics Tracking Code with this plugin. If this is not "
2197
+ "checked, trscking code will not be added by this plugin."
2198
+ msgstr ""
2199
+
2200
+ #: psp-include/settings/psp_tools_settings.php:104
2201
+ msgid "Add Tracking Code: "
2202
+ msgstr ""
2203
+
2204
+ #: psp-include/settings/psp_tools_settings.php:113
2205
+ msgid ""
2206
+ "Here you may enter the google analytics tracking code for adding it across "
2207
+ "all pages of the site."
2208
+ msgstr ""
2209
+
2210
+ #: psp-include/settings/psp_tools_settings.php:116
2211
+ msgid "Tracking Code:"
2212
+ msgstr ""
2213
+
2214
+ #: psp-include/settings/psp_tools_settings.php:167
2215
+ msgid "Robots.txt Editor"
2216
+ msgstr ""
2217
+
2218
+ #: psp-include/settings/psp_tools_settings.php:184
2219
+ msgid "Yes, use a virtual robots.txt file"
2220
+ msgstr ""
2221
+
2222
+ #: psp-include/settings/psp_tools_settings.php:185
2223
+ msgid ""
2224
+ "Checking this will not create a physical robots.txt file but your robots.txt "
2225
+ "content will be visible to all visitors including search engine bots when "
2226
+ "they try to access the robots.txt file in the root. Even if you keep this "
2227
+ "unchecked, a physical robots.txt file will be created by Techblissonline "
2228
+ "platinum seo when you hit the \"Save Settings\" button.However, This will "
2229
+ "happen only if the file is writeable to root. If the file is not writeable "
2230
+ "to root, the content that you see here will be presented as a virtual rotots."
2231
+ "txt file & this is done by wordpress by default."
2232
+ msgstr ""
2233
+
2234
+ #: psp-include/settings/psp_tools_settings.php:189
2235
+ msgid "Do you want to use the virtual robots.txt file created by wordpress? "
2236
+ msgstr ""
2237
+
2238
+ #: psp-include/settings/psp_tools_settings.php:213
2239
+ msgid ""
2240
+ "Robots.txt file exists in the root but it is not writeable. Make sure that "
2241
+ "it is writeable for you to write into it here."
2242
+ msgstr ""
2243
+
2244
+ #: psp-include/settings/psp_tools_settings.php:226
2245
+ msgid "Robots.txt Content: "
2246
+ msgstr ""
2247
+
2248
+ #: psp-include/settings/psp_tools_settings.php:244
2249
+ msgid "A physical robots.txt file does not exist in the root."
2250
+ msgstr ""
2251
+
2252
+ #: psp-include/settings/psp_tools_settings.php:247
2253
+ msgid ""
2254
+ "A physical robots.txt file exists in the root but it is not writeable. "
2255
+ "Ensure that it is writeable for you to edit it here."
2256
+ msgstr ""
2257
+
2258
+ #: psp-include/settings/psp_tools_settings.php:332
2259
+ msgid ".htaccess Editor"
2260
+ msgstr ""
2261
+
2262
+ #: psp-include/settings/psp_tools_settings.php:361
2263
+ msgid ""
2264
+ ".htaccess file exists in the root but it is not writeable. Make sure that it "
2265
+ "is writeable for you to write into it here."
2266
+ msgstr ""
2267
+
2268
+ #: psp-include/settings/psp_tools_settings.php:372
2269
+ msgid ".htaccess Content: "
2270
+ msgstr ""
2271
+
2272
+ #: psp-include/settings/psp_tools_settings.php:388
2273
+ msgid ""
2274
+ "A .htaccess file does not exist in the root! Ensure that you have not "
2275
+ "accidentally deleted it!"
2276
+ msgstr ""
2277
+
2278
+ #: psp-include/settings/psp_tools_settings.php:391
2279
+ msgid ""
2280
+ "A .htaccess file exists in the root but it is not writeable. Ensure that it "
2281
+ "is writeable for you to edit it here."
2282
+ msgstr ""
2283
+
2284
+ #: psp-include/settings/psp_tools_settings.php:467
2285
+ msgid "You cannot edit the robots.txt file."
2286
+ msgstr ""
2287
+
2288
+ #: psp-include/settings/psp_tools_settings.php:489
2289
+ msgid "Updated Robots.txt"
2290
+ msgstr ""
2291
+
2292
+ #: psp-include/settings/psp_tools_settings.php:496
2293
+ msgid "Created Robots.txt"
2294
+ msgstr ""
2295
+
2296
+ #: psp-include/settings/psp_tools_settings.php:505
2297
+ msgid "You cannot edit the .htaccess file."
2298
+ msgstr ""
2299
+
2300
+ #: psp-include/settings/psp_tools_settings.php:519
2301
+ msgid "Updated .htaccess file"
2302
+ msgstr ""
2303
+
2304
+ #: psp-include/settings/psp_tools_settings.php:528
2305
+ msgid "Techblissonline Platinum SEO Pack Tools"
2306
+ msgstr ""
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.8
8
  Author: Techblissonline.com (Rajesh)
9
  Author URI: https://techblissonline.com/
10
  Text Domain: platinum-seo-pack
@@ -42,9 +42,10 @@ add_action( 'plugins_loaded', 'psp_load_textdomain' );
42
 
43
  // Set the plugin URL root.
44
  define( 'PSP_PLUGIN_URL', plugins_url( '/', __FILE__ ) );
 
45
 
46
  function psp_load_textdomain() {
47
- load_plugin_textdomain( 'platinum-seo-pack', false, PSP_PLUGIN_HOME . 'languages' );
48
  }
49
 
50
  // Load early WordPress files.
@@ -60,12 +61,13 @@ include_once( PSP_PLUGIN_HOME . PSPINC . '/settings/psp_pre_settings.php' );
60
  include_once( PSP_PLUGIN_HOME . PSPINC . '/settings/psp_social_settings.php' );
61
  include_once( PSP_PLUGIN_HOME . PSPINC . '/settings/psp_tools_settings.php' );
62
  include_once( PSP_PLUGIN_HOME . PSPINC . '/settings/psp_redirect_404.php' );
 
63
 
64
  global $psp;
65
  $psp = PspMain::get_instance();
66
 
67
  global $psp_db_version;
68
- $psp_db_version = '2.0.6';
69
 
70
  register_activation_hook ( __FILE__, array ($psp, 'psp_activate' ) );
71
  register_deactivation_hook ( __FILE__, array ($psp, 'psp_deactivate' ) );
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.1.0
8
  Author: Techblissonline.com (Rajesh)
9
  Author URI: https://techblissonline.com/
10
  Text Domain: platinum-seo-pack
42
 
43
  // Set the plugin URL root.
44
  define( 'PSP_PLUGIN_URL', plugins_url( '/', __FILE__ ) );
45
+ define( 'PSP_PLUGIN_SETTINGS_URL', PSP_PLUGIN_HOME. PSPINC. '/settings' );
46
 
47
  function psp_load_textdomain() {
48
+ load_plugin_textdomain( 'platinum-seo-pack', false, PSP_PLUGIN_HOME . 'languages/' );
49
  }
50
 
51
  // Load early WordPress files.
61
  include_once( PSP_PLUGIN_HOME . PSPINC . '/settings/psp_social_settings.php' );
62
  include_once( PSP_PLUGIN_HOME . PSPINC . '/settings/psp_tools_settings.php' );
63
  include_once( PSP_PLUGIN_HOME . PSPINC . '/settings/psp_redirect_404.php' );
64
+ include_once( PSP_PLUGIN_HOME . PSPINC . '/importers/psp_import.php' );
65
 
66
  global $psp;
67
  $psp = PspMain::get_instance();
68
 
69
  global $psp_db_version;
70
+ $psp_db_version = '2.1.0';
71
 
72
  register_activation_hook ( __FILE__, array ($psp, 'psp_activate' ) );
73
  register_deactivation_hook ( __FILE__, array ($psp, 'psp_deactivate' ) );
psp-include/generators/breadcrumbs.php CHANGED
@@ -175,18 +175,18 @@ class PSP_Breadcrumb_Trail {
175
  public function default_labels() {
176
 
177
  $labels = array(
178
- 'browse' => __( 'Browse:', 'breadcrumb-trail' ),
179
- 'home' => __( 'Home', 'breadcrumb-trail' ),
180
- 'error_404' => __( '404 Not Found', 'breadcrumb-trail' ),
181
- 'archives' => __( 'Archives', 'breadcrumb-trail' ),
182
  /* Translators: %s is the search query. The HTML entities are opening and closing curly quotes. */
183
- 'search' => __( 'Search results for &#8220;%s&#8221;', 'breadcrumb-trail' ),
184
  /* Translators: %s is the page number. */
185
- 'paged' => __( 'Page %s', 'breadcrumb-trail' ),
186
  /* Translators: Minute archive title. %s is the minute time format. */
187
- 'archive_minute' => __( 'Minute %s', 'breadcrumb-trail' ),
188
  /* Translators: Weekly archive title. %s is the week date format. */
189
- 'archive_week' => __( 'Week %s', 'breadcrumb-trail' ),
190
 
191
  /* "%s" is replaced with the translated date/time format. */
192
  'archive_minute_hour' => '%s',
@@ -714,7 +714,7 @@ class PSP_Breadcrumb_Trail {
714
 
715
  /* Add the minute + hour item. */
716
  if ( true === $this->args['show_title'] )
717
- $this->items[] = sprintf( $this->args['labels']['archive_minute_hour'], get_the_time( _x( 'g:i a', 'minute and hour archives time format', 'breadcrumb-trail' ) ) );
718
  }
719
 
720
  /**
@@ -731,7 +731,7 @@ class PSP_Breadcrumb_Trail {
731
 
732
  /* Add the minute item. */
733
  if ( true === $this->args['show_title'] )
734
- $this->items[] = sprintf( $this->args['labels']['archive_minute'], get_the_time( _x( 'i', 'minute archives time format', 'breadcrumb-trail' ) ) );
735
  }
736
 
737
  /**
@@ -748,7 +748,7 @@ class PSP_Breadcrumb_Trail {
748
 
749
  /* Add the hour item. */
750
  if ( true === $this->args['show_title'] )
751
- $this->items[] = sprintf( $this->args['labels']['archive_hour'], get_the_time( _x( 'g a', 'hour archives time format', 'breadcrumb-trail' ) ) );
752
  }
753
 
754
  /**
@@ -764,9 +764,9 @@ class PSP_Breadcrumb_Trail {
764
  $this->do_rewrite_front_items();
765
 
766
  /* Get year, month, and day. */
767
- $year = sprintf( $this->args['labels']['archive_year'], get_the_time( _x( 'Y', 'yearly archives date format', 'breadcrumb-trail' ) ) );
768
- $month = sprintf( $this->args['labels']['archive_month'], get_the_time( _x( 'F', 'monthly archives date format', 'breadcrumb-trail' ) ) );
769
- $day = sprintf( $this->args['labels']['archive_day'], get_the_time( _x( 'j', 'daily archives date format', 'breadcrumb-trail' ) ) );
770
 
771
  /* Add the year and month items. */
772
  $this->items[] = '<a href="' . get_year_link( get_the_time( 'Y' ) ) . '" title="' . esc_attr( $year ) . '">' . $year . '</a>';
@@ -793,8 +793,8 @@ class PSP_Breadcrumb_Trail {
793
  $this->do_rewrite_front_items();
794
 
795
  /* Get the year and week. */
796
- $year = sprintf( $this->args['labels']['archive_year'], get_the_time( _x( 'Y', 'yearly archives date format', 'breadcrumb-trail' ) ) );
797
- $week = sprintf( $this->args['labels']['archive_week'], get_the_time( _x( 'W', 'weekly archives date format', 'breadcrumb-trail' ) ) );
798
 
799
  /* Add the year item. */
800
  $this->items[] = '<a href="' . get_year_link( get_the_time( 'Y' ) ) . '" title="' . esc_attr( $year ) . '">' . $year . '</a>';
@@ -820,8 +820,8 @@ class PSP_Breadcrumb_Trail {
820
  $this->do_rewrite_front_items();
821
 
822
  /* Get the year and month. */
823
- $year = sprintf( $this->args['labels']['archive_year'], get_the_time( _x( 'Y', 'yearly archives date format', 'breadcrumb-trail' ) ) );
824
- $month = sprintf( $this->args['labels']['archive_month'], get_the_time( _x( 'F', 'monthly archives date format', 'breadcrumb-trail' ) ) );
825
 
826
  /* Add the year item. */
827
  $this->items[] = '<a href="' . get_year_link( get_the_time( 'Y' ) ) . '" title="' . esc_attr( $year ) . '">' . $year . '</a>';
@@ -847,7 +847,7 @@ class PSP_Breadcrumb_Trail {
847
  $this->do_rewrite_front_items();
848
 
849
  /* Get the year. */
850
- $year = sprintf( $this->args['labels']['archive_year'], get_the_time( _x( 'Y', 'yearly archives date format', 'breadcrumb-trail' ) ) );
851
 
852
  /* Add the year item. */
853
  if ( is_paged() )
@@ -1034,15 +1034,15 @@ class PSP_Breadcrumb_Trail {
1034
 
1035
  /* If using the %year% tag, add a link to the yearly archive. */
1036
  if ( '%year%' == $tag )
1037
- $this->items[] = '<a href="' . get_year_link( get_the_time( 'Y', $post_id ) ) . '">' . sprintf( $this->args['labels']['archive_year'], get_the_time( _x( 'Y', 'yearly archives date format', 'breadcrumb-trail' ) ) ) . '</a>';
1038
 
1039
  /* If using the %monthnum% tag, add a link to the monthly archive. */
1040
  elseif ( '%monthnum%' == $tag )
1041
- $this->items[] = '<a href="' . get_month_link( get_the_time( 'Y', $post_id ), get_the_time( 'm', $post_id ) ) . '">' . sprintf( $this->args['labels']['archive_month'], get_the_time( _x( 'F', 'monthly archives date format', 'breadcrumb-trail' ) ) ) . '</a>';
1042
 
1043
  /* If using the %day% tag, add a link to the daily archive. */
1044
  elseif ( '%day%' == $tag )
1045
- $this->items[] = '<a href="' . get_day_link( get_the_time( 'Y', $post_id ), get_the_time( 'm', $post_id ), get_the_time( 'd', $post_id ) ) . '">' . sprintf( $this->args['labels']['archive_day'], get_the_time( _x( 'j', 'daily archives date format', 'breadcrumb-trail' ) ) ) . '</a>';
1046
 
1047
  /* If using the %author% tag, add a link to the post author archive. */
1048
  elseif ( '%author%' == $tag )
@@ -1133,7 +1133,7 @@ class PSP_bbPress_Breadcrumb_Trail extends PSP_Breadcrumb_Trail {
1133
  $this->items[] = '<a href="' . bbp_get_topic_tag_link() . '">' . bbp_get_topic_tag_name() . '</a>';
1134
 
1135
  if ( true === $this->args['show_title'] )
1136
- $this->items[] = __( 'Edit', 'breadcrumb-trail' );
1137
  }
1138
 
1139
  /* If viewing a "view" page. */
@@ -1161,15 +1161,15 @@ class PSP_bbPress_Breadcrumb_Trail extends PSP_Breadcrumb_Trail {
1161
 
1162
  /* If viewing a topic split page. */
1163
  if ( bbp_is_topic_split() && true === $this->args['show_title'] )
1164
- $this->items[] = __( 'Split', 'breadcrumb-trail' );
1165
 
1166
  /* If viewing a topic merge page. */
1167
  elseif ( bbp_is_topic_merge() && true === $this->args['show_title'] )
1168
- $this->items[] = __( 'Merge', 'breadcrumb-trail' );
1169
 
1170
  /* If viewing a topic edit page. */
1171
  elseif ( bbp_is_topic_edit() && true === $this->args['show_title'] )
1172
- $this->items[] = __( 'Edit', 'breadcrumb-trail' );
1173
  }
1174
 
1175
  /* If viewing a single reply page. */
@@ -1186,7 +1186,7 @@ class PSP_bbPress_Breadcrumb_Trail extends PSP_Breadcrumb_Trail {
1186
  $this->items[] = '<a href="' . bbp_get_reply_url( $reply_id ) . '">' . bbp_get_reply_title( $reply_id ) . '</a>';
1187
 
1188
  if ( true === $this->args['show_title'] )
1189
- $this->items[] = __( 'Edit', 'breadcrumb-trail' );
1190
 
1191
  } elseif ( true === $this->args['show_title'] ) {
1192
  $this->items[] = bbp_get_reply_title( $reply_id );
@@ -1217,7 +1217,7 @@ class PSP_bbPress_Breadcrumb_Trail extends PSP_Breadcrumb_Trail {
1217
  $this->items[] = '<a href="' . bbp_get_user_profile_url() . '">' . bbp_get_displayed_user_field( 'display_name' ) . '</a>';
1218
 
1219
  if ( true === $this->args['show_title'] )
1220
- $this->items[] = __( 'Edit', 'breadcrumb-trail' );
1221
  } elseif ( true === $this->args['show_title'] ) {
1222
  $this->items[] = bbp_get_displayed_user_field( 'display_name' );
1223
  }
175
  public function default_labels() {
176
 
177
  $labels = array(
178
+ 'browse' => __( 'Browse:', 'platinum-seo-pack' ),
179
+ 'home' => __( 'Home', 'platinum-seo-pack' ),
180
+ 'error_404' => __( '404 Not Found', 'platinum-seo-pack' ),
181
+ 'archives' => __( 'Archives', 'platinum-seo-pack' ),
182
  /* Translators: %s is the search query. The HTML entities are opening and closing curly quotes. */
183
+ 'search' => __( 'Search results for &#8220;%s&#8221;', 'platinum-seo-pack' ),
184
  /* Translators: %s is the page number. */
185
+ 'paged' => __( 'Page %s', 'platinum-seo-pack' ),
186
  /* Translators: Minute archive title. %s is the minute time format. */
187
+ 'archive_minute' => __( 'Minute %s', 'platinum-seo-pack' ),
188
  /* Translators: Weekly archive title. %s is the week date format. */
189
+ 'archive_week' => __( 'Week %s', 'platinum-seo-pack' ),
190
 
191
  /* "%s" is replaced with the translated date/time format. */
192
  'archive_minute_hour' => '%s',
714
 
715
  /* Add the minute + hour item. */
716
  if ( true === $this->args['show_title'] )
717
+ $this->items[] = sprintf( $this->args['labels']['archive_minute_hour'], get_the_time( _x( 'g:i a', 'minute and hour archives time format', 'platinum-seo-pack' ) ) );
718
  }
719
 
720
  /**
731
 
732
  /* Add the minute item. */
733
  if ( true === $this->args['show_title'] )
734
+ $this->items[] = sprintf( $this->args['labels']['archive_minute'], get_the_time( _x( 'i', 'minute archives time format', 'platinum-seo-pack' ) ) );
735
  }
736
 
737
  /**
748
 
749
  /* Add the hour item. */
750
  if ( true === $this->args['show_title'] )
751
+ $this->items[] = sprintf( $this->args['labels']['archive_hour'], get_the_time( _x( 'g a', 'hour archives time format', 'platinum-seo-pack' ) ) );
752
  }
753
 
754
  /**
764
  $this->do_rewrite_front_items();
765
 
766
  /* Get year, month, and day. */
767
+ $year = sprintf( $this->args['labels']['archive_year'], get_the_time( _x( 'Y', 'yearly archives date format', 'platinum-seo-pack' ) ) );
768
+ $month = sprintf( $this->args['labels']['archive_month'], get_the_time( _x( 'F', 'monthly archives date format', 'platinum-seo-pack' ) ) );
769
+ $day = sprintf( $this->args['labels']['archive_day'], get_the_time( _x( 'j', 'daily archives date format', 'platinum-seo-pack' ) ) );
770
 
771
  /* Add the year and month items. */
772
  $this->items[] = '<a href="' . get_year_link( get_the_time( 'Y' ) ) . '" title="' . esc_attr( $year ) . '">' . $year . '</a>';
793
  $this->do_rewrite_front_items();
794
 
795
  /* Get the year and week. */
796
+ $year = sprintf( $this->args['labels']['archive_year'], get_the_time( _x( 'Y', 'yearly archives date format', 'platinum-seo-pack' ) ) );
797
+ $week = sprintf( $this->args['labels']['archive_week'], get_the_time( _x( 'W', 'weekly archives date format', 'platinum-seo-pack' ) ) );
798
 
799
  /* Add the year item. */
800
  $this->items[] = '<a href="' . get_year_link( get_the_time( 'Y' ) ) . '" title="' . esc_attr( $year ) . '">' . $year . '</a>';
820
  $this->do_rewrite_front_items();
821
 
822
  /* Get the year and month. */
823
+ $year = sprintf( $this->args['labels']['archive_year'], get_the_time( _x( 'Y', 'yearly archives date format', 'platinum-seo-pack' ) ) );
824
+ $month = sprintf( $this->args['labels']['archive_month'], get_the_time( _x( 'F', 'monthly archives date format', 'platinum-seo-pack' ) ) );
825
 
826
  /* Add the year item. */
827
  $this->items[] = '<a href="' . get_year_link( get_the_time( 'Y' ) ) . '" title="' . esc_attr( $year ) . '">' . $year . '</a>';
847
  $this->do_rewrite_front_items();
848
 
849
  /* Get the year. */
850
+ $year = sprintf( $this->args['labels']['archive_year'], get_the_time( _x( 'Y', 'yearly archives date format', 'platinum-seo-pack' ) ) );
851
 
852
  /* Add the year item. */
853
  if ( is_paged() )
1034
 
1035
  /* If using the %year% tag, add a link to the yearly archive. */
1036
  if ( '%year%' == $tag )
1037
+ $this->items[] = '<a href="' . get_year_link( get_the_time( 'Y', $post_id ) ) . '">' . sprintf( $this->args['labels']['archive_year'], get_the_time( _x( 'Y', 'yearly archives date format', 'platinum-seo-pack' ) ) ) . '</a>';
1038
 
1039
  /* If using the %monthnum% tag, add a link to the monthly archive. */
1040
  elseif ( '%monthnum%' == $tag )
1041
+ $this->items[] = '<a href="' . get_month_link( get_the_time( 'Y', $post_id ), get_the_time( 'm', $post_id ) ) . '">' . sprintf( $this->args['labels']['archive_month'], get_the_time( _x( 'F', 'monthly archives date format', 'platinum-seo-pack' ) ) ) . '</a>';
1042
 
1043
  /* If using the %day% tag, add a link to the daily archive. */
1044
  elseif ( '%day%' == $tag )
1045
+ $this->items[] = '<a href="' . get_day_link( get_the_time( 'Y', $post_id ), get_the_time( 'm', $post_id ), get_the_time( 'd', $post_id ) ) . '">' . sprintf( $this->args['labels']['archive_day'], get_the_time( _x( 'j', 'daily archives date format', 'platinum-seo-pack' ) ) ) . '</a>';
1046
 
1047
  /* If using the %author% tag, add a link to the post author archive. */
1048
  elseif ( '%author%' == $tag )
1133
  $this->items[] = '<a href="' . bbp_get_topic_tag_link() . '">' . bbp_get_topic_tag_name() . '</a>';
1134
 
1135
  if ( true === $this->args['show_title'] )
1136
+ $this->items[] = __( 'Edit', 'platinum-seo-pack' );
1137
  }
1138
 
1139
  /* If viewing a "view" page. */
1161
 
1162
  /* If viewing a topic split page. */
1163
  if ( bbp_is_topic_split() && true === $this->args['show_title'] )
1164
+ $this->items[] = __( 'Split', 'platinum-seo-pack' );
1165
 
1166
  /* If viewing a topic merge page. */
1167
  elseif ( bbp_is_topic_merge() && true === $this->args['show_title'] )
1168
+ $this->items[] = __( 'Merge', 'platinum-seo-pack' );
1169
 
1170
  /* If viewing a topic edit page. */
1171
  elseif ( bbp_is_topic_edit() && true === $this->args['show_title'] )
1172
+ $this->items[] = __( 'Edit', 'platinum-seo-pack' );
1173
  }
1174
 
1175
  /* If viewing a single reply page. */
1186
  $this->items[] = '<a href="' . bbp_get_reply_url( $reply_id ) . '">' . bbp_get_reply_title( $reply_id ) . '</a>';
1187
 
1188
  if ( true === $this->args['show_title'] )
1189
+ $this->items[] = __( 'Edit', 'platinum-seo-pack' );
1190
 
1191
  } elseif ( true === $this->args['show_title'] ) {
1192
  $this->items[] = bbp_get_reply_title( $reply_id );
1217
  $this->items[] = '<a href="' . bbp_get_user_profile_url() . '">' . bbp_get_displayed_user_field( 'display_name' ) . '</a>';
1218
 
1219
  if ( true === $this->args['show_title'] )
1220
+ $this->items[] = __( 'Edit', 'platinum-seo-pack' );
1221
  } elseif ( true === $this->args['show_title'] ) {
1222
  $this->items[] = bbp_get_displayed_user_field( 'display_name' );
1223
  }
psp-include/generators/psp_home_others_seo_metas.php CHANGED
@@ -14,7 +14,7 @@ class PspHomeOthersSeoMetas {
14
  private static $obj_handle = null;
15
 
16
  protected $index_tag = "index,follow";
17
- protected $noindex_tag = "noindex";
18
  protected $noindex_nofollow_tag = "noindex,nofollow";
19
  protected $noodp_tag = "noodp";
20
  protected $noydir_tag = "noydir";
@@ -680,11 +680,14 @@ class PspHomeOthersSeoMetas {
680
  if (empty($this->psp_search_result_settings)) $this->psp_search_result_settings = get_option("psp_search_result_settings");
681
 
682
  if (is_search() && isset($s) && !empty($s)) {
 
683
  if (function_exists('attribute_escape')) {
684
  $search = attribute_escape($s);
685
  } else {
686
  $search = esc_attr($s);
687
  }
 
 
688
  $search = str_replace('+', ' ', $search);
689
  //$search = $this->capitalize($search);
690
  $search = ucwords($this->psp_helper->internationalize($search));
14
  private static $obj_handle = null;
15
 
16
  protected $index_tag = "index,follow";
17
+ protected $noindex_tag = "noindex,follow";
18
  protected $noindex_nofollow_tag = "noindex,nofollow";
19
  protected $noodp_tag = "noodp";
20
  protected $noydir_tag = "noydir";
680
  if (empty($this->psp_search_result_settings)) $this->psp_search_result_settings = get_option("psp_search_result_settings");
681
 
682
  if (is_search() && isset($s) && !empty($s)) {
683
+ /***
684
  if (function_exists('attribute_escape')) {
685
  $search = attribute_escape($s);
686
  } else {
687
  $search = esc_attr($s);
688
  }
689
+ ***/
690
+ $search = esc_attr($s);
691
  $search = str_replace('+', ' ', $search);
692
  //$search = $this->capitalize($search);
693
  $search = ucwords($this->psp_helper->internationalize($search));
psp-include/generators/psp_pts_seo_metas.php CHANGED
@@ -786,7 +786,12 @@ class PspPtsSeoMetas {
786
  $psp_post_meta = $this->psp_current_ptype_meta;
787
  } else {
788
  //$psp_post_meta = get_post_meta($post_id, '_psp_post_seo_meta', true);
789
- $wp_post_meta_data_arr = get_post_meta($post->ID);
 
 
 
 
 
790
  /************
791
  foreach ($wp_post_meta_data_arr as $key => $value) {
792
 
@@ -851,9 +856,10 @@ class PspPtsSeoMetas {
851
  $psp_social_meta['tw_card_type'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_card_type'][0]) ? $wp_post_meta_data_arr['_techblissonline_psp_tw_card_type'][0] : '';
852
  $psp_social_meta['tw_title'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_title'][0]) ? $wp_post_meta_data_arr['_techblissonline_psp_tw_title'][0] : '';
853
  $psp_social_meta['tw_description'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_description'][0]) ? $wp_post_meta_data_arr['_techblissonline_psp_tw_description'][0] : '';
 
854
 
855
- $psp_post_tw_data_images = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_images'][0]) ? unserialize($wp_post_meta_data_arr['_techblissonline_psp_tw_images'][0]) : array();
856
- $psp_post_social_tw_label_data = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_label_data'][0]) ? unserialize($wp_post_meta_data_arr['_techblissonline_psp_tw_label_data'][0]) : array();
857
 
858
  $psp_social_meta['tw_creator'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_creator'][0]) ? $wp_post_meta_data_arr['_techblissonline_psp_tw_creator'][0] : '';
859
  $psp_social_meta['tw_imagealt'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_imagealt'][0]) ? $wp_post_meta_data_arr['_techblissonline_psp_tw_imagealt'][0] : '';
@@ -877,7 +883,7 @@ class PspPtsSeoMetas {
877
  $psp_social_meta['sc_description'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_sc_description'][0]) ? $wp_post_meta_data_arr['_techblissonline_psp_sc_description'][0] : '';
878
  $psp_social_meta['sc_image'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_sc_image'][0]) ? $wp_post_meta_data_arr['_techblissonline_psp_sc_image'][0] : '';
879
 
880
- $psp_social_meta = array_merge((array)$psp_social_meta, (array)$psp_post_tw_data_images, (array)$psp_post_social_tw_label_data);
881
  $this->psp_current_ptype_social_meta = $psp_social_meta;
882
 
883
  $psp_post_meta = array_merge((array)$psp_post_meta_data, (array)$psp_post_disablers);
@@ -1014,13 +1020,14 @@ class PspPtsSeoMetas {
1014
  if ($psparr) {
1015
 
1016
  $sitedescription = !empty($sitedescription) ? $sitedescription : '';
 
1017
  $sitename = !empty($sitename) ? $sitename : '';
1018
  $categoryname = !empty($categoryname) ? $categoryname : '';
1019
  $title = !empty($title) ? $title : '';
1020
  $original_wp_title = !empty($original_wp_title) ? $original_wp_title : '';
1021
  $psp_title_separator = !empty($psp_title_separator) ? $psp_title_separator : '';
1022
 
1023
- $psp_post_format_arr = array('site_name' => $sitename, 'site_description' => $sitedescription, 'category' => $categoryname, 'title' => $title, 'seo_title' => $title, 'wp_title' => $original_wp_title, 'sep' => $psp_title_separator);
1024
 
1025
  return $psp_post_format_arr;
1026
 
@@ -1168,7 +1175,12 @@ class PspPtsSeoMetas {
1168
  } else {
1169
  //$psp_post_meta = get_post_meta($post_id, '_psp_post_seo_meta', true);
1170
 
1171
- $wp_post_meta_data_arr = get_post_meta($post->ID);
 
 
 
 
 
1172
  /**********
1173
  foreach ($wp_post_meta_data_arr as $key => $value) {
1174
 
@@ -1233,9 +1245,10 @@ class PspPtsSeoMetas {
1233
  $psp_social_meta['tw_card_type'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_card_type'][0]) ? $wp_post_meta_data_arr['_techblissonline_psp_tw_card_type'][0] : '';
1234
  $psp_social_meta['tw_title'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_title'][0]) ? $wp_post_meta_data_arr['_techblissonline_psp_tw_title'][0] : '';
1235
  $psp_social_meta['tw_description'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_description'][0]) ? $wp_post_meta_data_arr['_techblissonline_psp_tw_description'][0] : '';
 
1236
 
1237
- $psp_post_tw_data_images = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_images'][0]) ? unserialize($wp_post_meta_data_arr['_techblissonline_psp_tw_images'][0]) : array();
1238
- $psp_post_social_tw_label_data = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_label_data'][0]) ? unserialize($wp_post_meta_data_arr['_techblissonline_psp_tw_label_data'][0]) : array();
1239
 
1240
  $psp_social_meta['tw_creator'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_creator'][0]) ? $wp_post_meta_data_arr['_techblissonline_psp_tw_creator'][0] : '';
1241
  $psp_social_meta['tw_imagealt'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_imagealt'][0]) ? $wp_post_meta_data_arr['_techblissonline_psp_tw_imagealt'][0] : '';
@@ -1259,7 +1272,7 @@ class PspPtsSeoMetas {
1259
  $psp_social_meta['sc_description'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_sc_description'][0]) ? $wp_post_meta_data_arr['_techblissonline_psp_sc_description'][0] : '';
1260
  $psp_social_meta['sc_image'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_sc_image'][0]) ? $wp_post_meta_data_arr['_techblissonline_psp_sc_image'][0] : '';
1261
 
1262
- $psp_social_meta = array_merge((array)$psp_social_meta, (array)$psp_post_tw_data_images, (array)$psp_post_social_tw_label_data);
1263
  $this->psp_current_ptype_social_meta = $psp_social_meta;
1264
 
1265
  $psp_post_meta = array_merge((array)$psp_post_meta_data, (array)$psp_post_disablers);
786
  $psp_post_meta = $this->psp_current_ptype_meta;
787
  } else {
788
  //$psp_post_meta = get_post_meta($post_id, '_psp_post_seo_meta', true);
789
+ $wp_post_meta_data_arr = get_metadata( 'platinumseo', $post->ID, '', false );
790
+
791
+ if(!$wp_post_meta_data_arr) {
792
+ $wp_post_meta_data_arr = get_post_meta($post->ID);
793
+ }
794
+ //$wp_post_meta_data_arr = get_post_meta($post->ID);
795
  /************
796
  foreach ($wp_post_meta_data_arr as $key => $value) {
797
 
856
  $psp_social_meta['tw_card_type'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_card_type'][0]) ? $wp_post_meta_data_arr['_techblissonline_psp_tw_card_type'][0] : '';
857
  $psp_social_meta['tw_title'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_title'][0]) ? $wp_post_meta_data_arr['_techblissonline_psp_tw_title'][0] : '';
858
  $psp_social_meta['tw_description'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_description'][0]) ? $wp_post_meta_data_arr['_techblissonline_psp_tw_description'][0] : '';
859
+ $psp_social_meta['tw_image'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_image'][0]) ? $wp_post_meta_data_arr['_techblissonline_psp_tw_image'][0] : '';
860
 
861
+ //$psp_post_tw_data_images = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_images'][0]) ? unserialize($wp_post_meta_data_arr['_techblissonline_psp_tw_images'][0]) : array();
862
+ //$psp_post_social_tw_label_data = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_label_data'][0]) ? unserialize($wp_post_meta_data_arr['_techblissonline_psp_tw_label_data'][0]) : array();
863
 
864
  $psp_social_meta['tw_creator'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_creator'][0]) ? $wp_post_meta_data_arr['_techblissonline_psp_tw_creator'][0] : '';
865
  $psp_social_meta['tw_imagealt'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_imagealt'][0]) ? $wp_post_meta_data_arr['_techblissonline_psp_tw_imagealt'][0] : '';
883
  $psp_social_meta['sc_description'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_sc_description'][0]) ? $wp_post_meta_data_arr['_techblissonline_psp_sc_description'][0] : '';
884
  $psp_social_meta['sc_image'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_sc_image'][0]) ? $wp_post_meta_data_arr['_techblissonline_psp_sc_image'][0] : '';
885
 
886
+ //$psp_social_meta = array_merge((array)$psp_social_meta, (array)$psp_post_tw_data_images, (array)$psp_post_social_tw_label_data);
887
  $this->psp_current_ptype_social_meta = $psp_social_meta;
888
 
889
  $psp_post_meta = array_merge((array)$psp_post_meta_data, (array)$psp_post_disablers);
1020
  if ($psparr) {
1021
 
1022
  $sitedescription = !empty($sitedescription) ? $sitedescription : '';
1023
+ $autogendesc = !empty($this->psp_sitewide_settings['autogenerate_description']) ? $this->psp_sitewide_settings['autogenerate_description'] : '';
1024
  $sitename = !empty($sitename) ? $sitename : '';
1025
  $categoryname = !empty($categoryname) ? $categoryname : '';
1026
  $title = !empty($title) ? $title : '';
1027
  $original_wp_title = !empty($original_wp_title) ? $original_wp_title : '';
1028
  $psp_title_separator = !empty($psp_title_separator) ? $psp_title_separator : '';
1029
 
1030
+ $psp_post_format_arr = array('autogendesc' => $autogendesc, 'site_name' => $sitename, 'site_description' => $sitedescription, 'category' => $categoryname, 'title' => $title, 'seo_title' => $title, 'wp_title' => $original_wp_title, 'sep' => $psp_title_separator);
1031
 
1032
  return $psp_post_format_arr;
1033
 
1175
  } else {
1176
  //$psp_post_meta = get_post_meta($post_id, '_psp_post_seo_meta', true);
1177
 
1178
+ $wp_post_meta_data_arr = get_metadata( 'platinumseo', $post->ID, '', false );
1179
+
1180
+ if(!$wp_post_meta_data_arr) {
1181
+ $wp_post_meta_data_arr = get_post_meta($post->ID);
1182
+ }
1183
+
1184
  /**********
1185
  foreach ($wp_post_meta_data_arr as $key => $value) {
1186
 
1245
  $psp_social_meta['tw_card_type'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_card_type'][0]) ? $wp_post_meta_data_arr['_techblissonline_psp_tw_card_type'][0] : '';
1246
  $psp_social_meta['tw_title'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_title'][0]) ? $wp_post_meta_data_arr['_techblissonline_psp_tw_title'][0] : '';
1247
  $psp_social_meta['tw_description'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_description'][0]) ? $wp_post_meta_data_arr['_techblissonline_psp_tw_description'][0] : '';
1248
+ $psp_social_meta['tw_image'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_image'][0]) ? $wp_post_meta_data_arr['_techblissonline_psp_tw_image'][0] : '';
1249
 
1250
+ //$psp_post_tw_data_images = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_images'][0]) ? unserialize($wp_post_meta_data_arr['_techblissonline_psp_tw_images'][0]) : array();
1251
+ //$psp_post_social_tw_label_data = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_label_data'][0]) ? unserialize($wp_post_meta_data_arr['_techblissonline_psp_tw_label_data'][0]) : array();
1252
 
1253
  $psp_social_meta['tw_creator'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_creator'][0]) ? $wp_post_meta_data_arr['_techblissonline_psp_tw_creator'][0] : '';
1254
  $psp_social_meta['tw_imagealt'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_imagealt'][0]) ? $wp_post_meta_data_arr['_techblissonline_psp_tw_imagealt'][0] : '';
1272
  $psp_social_meta['sc_description'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_sc_description'][0]) ? $wp_post_meta_data_arr['_techblissonline_psp_sc_description'][0] : '';
1273
  $psp_social_meta['sc_image'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_sc_image'][0]) ? $wp_post_meta_data_arr['_techblissonline_psp_sc_image'][0] : '';
1274
 
1275
+ //$psp_social_meta = array_merge((array)$psp_social_meta, (array)$psp_post_tw_data_images, (array)$psp_post_social_tw_label_data);
1276
  $this->psp_current_ptype_social_meta = $psp_social_meta;
1277
 
1278
  $psp_post_meta = array_merge((array)$psp_post_meta_data, (array)$psp_post_disablers);
psp-include/generators/psp_tax_seo_metas.php CHANGED
@@ -332,6 +332,7 @@ class PspTaxSeoMetas {
332
  $description = str_replace('%category_name%', single_cat_title( '', false ), $description);
333
  $description = str_replace('%term_name%', single_cat_title( '', false ), $description);
334
  $description = str_replace('%title%', single_cat_title( '', false ), $description);
 
335
  $description = str_replace('%seo_title%', $psp_seo_title, $description);
336
  $description = str_replace('%sep%', $psp_settings['separator'], $description);
337
  }
@@ -456,6 +457,7 @@ class PspTaxSeoMetas {
456
  $description = str_replace('%tag_name%', single_tag_title( '', false ), $description);
457
  $description = str_replace('%term_name%', single_tag_title( '', false ), $description);
458
  $description = str_replace('%title%', single_tag_title( '', false ), $description);
 
459
  $description = str_replace('%seo_title%', $psp_seo_title, $description);
460
  $description = str_replace('%sep%', $psp_settings['separator'], $description);
461
 
@@ -584,6 +586,7 @@ class PspTaxSeoMetas {
584
  $description = str_replace('%term_name%', $term->name, $description);
585
  $description = str_replace('%seo_title%', $psp_seo_title, $description);
586
  $description = str_replace('%title%', $term->name, $description);
 
587
  $description = str_replace('%sep%', $psp_settings['separator'], $description);
588
 
589
  }
@@ -753,15 +756,23 @@ class PspTaxSeoMetas {
753
 
754
  $term_meta_option_name = "psp_category_seo_metas_".$cat_id;
755
  //$term_meta = get_option("$cat_name_$cat_id_metas");
756
- if (!empty($cat_id)) $term_meta = get_option( "psp_category_seo_metas_$cat_id");
757
-
 
 
 
758
  $this->psp_cat_meta = $term_meta;
759
  } else {
760
  $term_meta = $this->psp_cat_meta;
761
  }
762
 
763
  if (empty($this->term_social_meta)) {
764
- if (!empty($cat_id)) $this->term_social_meta = get_option( "psp_category_social_metas_$cat_id");
 
 
 
 
 
765
  }
766
 
767
  $title = isset($term_meta['title']) ? $this->psp_helper->internationalize($term_meta['title']) : "";
@@ -787,6 +798,7 @@ class PspTaxSeoMetas {
787
  } else {
788
  $title = str_replace('%seo_title%', $title, $title_format);
789
  $title = str_replace('%title%', $category_name, $title);
 
790
  $title = str_replace('%category_name%', $category_name, $title);
791
  $title = str_replace('%term_name%', $category_name, $title);
792
  //$title = str_replace('%sep%', htmlentities($psp_settings['separator']), $title);
@@ -843,14 +855,22 @@ class PspTaxSeoMetas {
843
 
844
  $term_meta_option_name = "psp_taxonomy_seo_metas_".$term_id;
845
  //$term_meta = get_option("$cat_name_$cat_id_metas");
846
- if (!empty($term_id)) $term_meta = get_option( "psp_taxonomy_seo_metas_$term_id");
 
 
 
 
847
  $this->psp_tag_meta = $term_meta;
848
  } else {
849
  $term_meta = $this->psp_tag_meta;
850
  }
851
  //$psp_term_social_meta = isset($this->term_social_meta) : $this->term_social_meta : "";
852
  if (empty($this->term_social_meta)) {
853
- if (!empty($term_id)) $this->term_social_meta = get_option( "psp_taxonomy_social_metas_$term_id");
 
 
 
 
854
  }
855
 
856
  $title = isset($term_meta['title']) ? $this->psp_helper->internationalize($term_meta['title']) : "";
@@ -878,6 +898,7 @@ class PspTaxSeoMetas {
878
 
879
  $title = str_replace('%seo_title%', $title, $title_format);
880
  $title = str_replace('%title%', $term_name, $title);
 
881
  $title = str_replace('%tag_name%', $term_name, $title);
882
  $title = str_replace('%term_name%', $term_name, $title);
883
  //$title = str_replace('%sep%', htmlentities($psp_settings['separator']), $title);
@@ -946,7 +967,11 @@ class PspTaxSeoMetas {
946
 
947
  $term_meta_option_name = "psp_taxonomy_seo_metas_".$term_id;
948
  //$term_meta = get_option("$cat_name_$cat_id_metas");
949
- if (!empty($term_id)) $term_meta = get_option( "psp_taxonomy_seo_metas_$term_id");
 
 
 
 
950
  $this->psp_term_meta = $term_meta;
951
 
952
  } else {
@@ -954,7 +979,12 @@ class PspTaxSeoMetas {
954
  }
955
  $psp_term_social_meta = isset($this->term_social_meta) ? $this->term_social_meta : "";
956
  if (empty($psp_term_social_meta)) {
957
- if (!empty($term_id)) $this->term_social_meta = get_option( "psp_taxonomy_social_metas_$term_id");
 
 
 
 
 
958
  }
959
  //continue
960
  //$title = $this->psp_helper->internationalize($term_meta->title);
@@ -983,6 +1013,7 @@ class PspTaxSeoMetas {
983
  $new_title = is_tax() ? str_replace('%seo_title%', $title, $title_format) : $title_format ;
984
  //$new_title = str_replace('%seo_title%', $title, $title_format);
985
  $new_title = str_replace('%title%', $term_name, $new_title);
 
986
  $new_title = str_replace('%term_name%', $term_name, $new_title);
987
  // $new_title = str_replace('%sep%', htmlentities($psp_settings['separator']), $new_title);
988
  $new_title = str_replace('%sep%', $psp_settings['separator'], $new_title);
@@ -1062,15 +1093,23 @@ class PspTaxSeoMetas {
1062
 
1063
  $term_meta_option_name = "psp_category_seo_metas_".$cat_id;
1064
  //$term_meta = get_option("$cat_name_$cat_id_metas");
1065
- if (!empty($cat_id)) $term_meta = get_option( "psp_category_seo_metas_$cat_id");
1066
-
 
 
 
1067
  $this->psp_cat_meta = $term_meta;
1068
  } else {
1069
  $term_meta = $this->psp_cat_meta;
1070
  }
1071
 
1072
  if (empty($this->term_social_meta)) {
1073
- if (!empty($cat_id)) $this->term_social_meta = get_option( "psp_category_social_metas_$cat_id");
 
 
 
 
 
1074
  }
1075
 
1076
  $robots_meta_string = $this->get_tax_robots_meta($term_meta);
@@ -1141,14 +1180,23 @@ class PspTaxSeoMetas {
1141
 
1142
  $term_meta_option_name = "psp_taxonomy_seo_metas_".$term_id;
1143
  //$term_meta = get_option("$cat_name_$cat_id_metas");
1144
- if (!empty($term_id)) $term_meta = get_option( "psp_taxonomy_seo_metas_$term_id");
 
 
 
 
1145
  $this->psp_tag_meta = $term_meta;
1146
  } else {
1147
  $term_meta = $this->psp_tag_meta;
1148
  }
1149
 
1150
  if (empty($this->term_social_meta)) {
1151
- if (!empty($term_id)) $this->term_social_meta = get_option( "psp_taxonomy_social_metas_$term_id");
 
 
 
 
 
1152
  }
1153
 
1154
  $robots_meta_string = $this->get_tax_robots_meta($term_meta);
@@ -1227,7 +1275,11 @@ class PspTaxSeoMetas {
1227
 
1228
  $term_meta_option_name = "psp_taxonomy_seo_metas_".$term_id;
1229
  //$term_meta = get_option("$cat_name_$cat_id_metas");
1230
- if (!empty($term_id)) $term_meta = get_option( "psp_taxonomy_seo_metas_$term_id");
 
 
 
 
1231
  $this->psp_term_meta = $term_meta;
1232
 
1233
  } else {
@@ -1235,7 +1287,12 @@ class PspTaxSeoMetas {
1235
  }
1236
 
1237
  if (empty($this->term_social_meta)) {
1238
- if (!empty($term_id)) $this->term_social_meta = get_option( "psp_taxonomy_social_metas_$term_id");
 
 
 
 
 
1239
  }
1240
 
1241
  $robots_meta_string = $this->get_tax_robots_meta($term_meta);
332
  $description = str_replace('%category_name%', single_cat_title( '', false ), $description);
333
  $description = str_replace('%term_name%', single_cat_title( '', false ), $description);
334
  $description = str_replace('%title%', single_cat_title( '', false ), $description);
335
+ $description = str_replace('%wp_title%', single_cat_title( '', false ), $description);
336
  $description = str_replace('%seo_title%', $psp_seo_title, $description);
337
  $description = str_replace('%sep%', $psp_settings['separator'], $description);
338
  }
457
  $description = str_replace('%tag_name%', single_tag_title( '', false ), $description);
458
  $description = str_replace('%term_name%', single_tag_title( '', false ), $description);
459
  $description = str_replace('%title%', single_tag_title( '', false ), $description);
460
+ $description = str_replace('%wp_title%', single_tag_title( '', false ), $description);
461
  $description = str_replace('%seo_title%', $psp_seo_title, $description);
462
  $description = str_replace('%sep%', $psp_settings['separator'], $description);
463
 
586
  $description = str_replace('%term_name%', $term->name, $description);
587
  $description = str_replace('%seo_title%', $psp_seo_title, $description);
588
  $description = str_replace('%title%', $term->name, $description);
589
+ $description = str_replace('%wp_title%', $term->name, $description);
590
  $description = str_replace('%sep%', $psp_settings['separator'], $description);
591
 
592
  }
756
 
757
  $term_meta_option_name = "psp_category_seo_metas_".$cat_id;
758
  //$term_meta = get_option("$cat_name_$cat_id_metas");
759
+ if (!empty($cat_id)) {
760
+ $term_meta = get_term_meta( $cat_id, "psp_category_seo_metas_$cat_id");
761
+ if ($term_meta) $term_meta = $term_meta[0];
762
+ if (!$term_meta) $term_meta = get_option( "psp_category_seo_metas_$cat_id");
763
+ }
764
  $this->psp_cat_meta = $term_meta;
765
  } else {
766
  $term_meta = $this->psp_cat_meta;
767
  }
768
 
769
  if (empty($this->term_social_meta)) {
770
+ if (!empty($cat_id)) {
771
+ $term_social_meta = get_term_meta( $cat_id, "psp_category_social_metas_$cat_id");
772
+ if ($term_social_meta) $this->term_social_meta = $term_social_meta[0];
773
+ if (!$this->term_social_meta) $this->term_social_meta = get_option( "psp_category_social_metas_$cat_id");
774
+ }
775
+ //if (!empty($cat_id)) $this->term_social_meta = get_option( "psp_category_social_metas_$cat_id");
776
  }
777
 
778
  $title = isset($term_meta['title']) ? $this->psp_helper->internationalize($term_meta['title']) : "";
798
  } else {
799
  $title = str_replace('%seo_title%', $title, $title_format);
800
  $title = str_replace('%title%', $category_name, $title);
801
+ $title = str_replace('%wp_title%', $category_name, $title);
802
  $title = str_replace('%category_name%', $category_name, $title);
803
  $title = str_replace('%term_name%', $category_name, $title);
804
  //$title = str_replace('%sep%', htmlentities($psp_settings['separator']), $title);
855
 
856
  $term_meta_option_name = "psp_taxonomy_seo_metas_".$term_id;
857
  //$term_meta = get_option("$cat_name_$cat_id_metas");
858
+ if (!empty($term_id)) {
859
+ $term_meta = get_term_meta( $term_id, "psp_taxonomy_seo_metas_$term_id");
860
+ if($term_meta) $term_meta = $term_meta[0];
861
+ if(!$term_meta) $term_meta = get_option( "psp_taxonomy_seo_metas_$term_id");
862
+ }
863
  $this->psp_tag_meta = $term_meta;
864
  } else {
865
  $term_meta = $this->psp_tag_meta;
866
  }
867
  //$psp_term_social_meta = isset($this->term_social_meta) : $this->term_social_meta : "";
868
  if (empty($this->term_social_meta)) {
869
+ if (!empty($term_id)) {
870
+ $term_social_meta = get_term_meta( $term_id, "psp_taxonomy_social_metas_$term_id");
871
+ if($term_social_meta) $this->term_social_meta = $term_social_meta[0];
872
+ if (!$this->term_social_meta) $this->term_social_meta = get_option( "psp_taxonomy_social_metas_$term_id");
873
+ }
874
  }
875
 
876
  $title = isset($term_meta['title']) ? $this->psp_helper->internationalize($term_meta['title']) : "";
898
 
899
  $title = str_replace('%seo_title%', $title, $title_format);
900
  $title = str_replace('%title%', $term_name, $title);
901
+ $title = str_replace('%wp_title%', $term_name, $title);
902
  $title = str_replace('%tag_name%', $term_name, $title);
903
  $title = str_replace('%term_name%', $term_name, $title);
904
  //$title = str_replace('%sep%', htmlentities($psp_settings['separator']), $title);
967
 
968
  $term_meta_option_name = "psp_taxonomy_seo_metas_".$term_id;
969
  //$term_meta = get_option("$cat_name_$cat_id_metas");
970
+ if (!empty($term_id)) {
971
+ $term_meta = get_term_meta( $term_id, "psp_taxonomy_seo_metas_$term_id");
972
+ if ($term_meta) $term_meta = $term_meta[0];
973
+ if (!$term_meta) $term_meta = get_option( "psp_taxonomy_seo_metas_$term_id");
974
+ }
975
  $this->psp_term_meta = $term_meta;
976
 
977
  } else {
979
  }
980
  $psp_term_social_meta = isset($this->term_social_meta) ? $this->term_social_meta : "";
981
  if (empty($psp_term_social_meta)) {
982
+ if (!empty($term_id)) {
983
+ $term_social_meta = get_term_meta( $term_id, "psp_taxonomy_social_metas_$term_id");
984
+ if ($term_social_meta) $this->term_social_meta = $term_social_meta[0];
985
+ if (!$this->term_social_meta) $this->term_social_meta = get_option( "psp_taxonomy_social_metas_$term_id");
986
+ }
987
+ //if (!empty($term_id)) $this->term_social_meta = get_option( "psp_taxonomy_social_metas_$term_id");
988
  }
989
  //continue
990
  //$title = $this->psp_helper->internationalize($term_meta->title);
1013
  $new_title = is_tax() ? str_replace('%seo_title%', $title, $title_format) : $title_format ;
1014
  //$new_title = str_replace('%seo_title%', $title, $title_format);
1015
  $new_title = str_replace('%title%', $term_name, $new_title);
1016
+ $new_title = str_replace('%wp_title%', $term_name, $new_title);
1017
  $new_title = str_replace('%term_name%', $term_name, $new_title);
1018
  // $new_title = str_replace('%sep%', htmlentities($psp_settings['separator']), $new_title);
1019
  $new_title = str_replace('%sep%', $psp_settings['separator'], $new_title);
1093
 
1094
  $term_meta_option_name = "psp_category_seo_metas_".$cat_id;
1095
  //$term_meta = get_option("$cat_name_$cat_id_metas");
1096
+ if (!empty($cat_id)) {
1097
+ $term_meta = get_term_meta( $cat_id, "psp_category_seo_metas_$cat_id");
1098
+ if ($term_meta) $term_meta = $term_meta[0];
1099
+ if (!$term_meta) $term_meta = get_option( "psp_category_seo_metas_$cat_id");
1100
+ }
1101
  $this->psp_cat_meta = $term_meta;
1102
  } else {
1103
  $term_meta = $this->psp_cat_meta;
1104
  }
1105
 
1106
  if (empty($this->term_social_meta)) {
1107
+ if (!empty($cat_id)) {
1108
+ $term_social_meta = get_term_meta( $cat_id, "psp_category_social_metas_$cat_id");
1109
+ if ($term_social_meta) $this->term_social_meta = $term_social_meta[0];
1110
+ if (!$this->term_social_meta) $this->term_social_meta = get_option( "psp_category_social_metas_$cat_id");
1111
+ }
1112
+ //if (!empty($cat_id)) $this->term_social_meta = get_option( "psp_category_social_metas_$cat_id");
1113
  }
1114
 
1115
  $robots_meta_string = $this->get_tax_robots_meta($term_meta);
1180
 
1181
  $term_meta_option_name = "psp_taxonomy_seo_metas_".$term_id;
1182
  //$term_meta = get_option("$cat_name_$cat_id_metas");
1183
+ if (!empty($term_id)) {
1184
+ $term_meta = get_term_meta( $term_id, "psp_taxonomy_seo_metas_$term_id");
1185
+ if ($term_meta) $term_meta = $term_meta[0];
1186
+ if (!$term_meta) $term_meta = get_option( "psp_taxonomy_seo_metas_$term_id");
1187
+ }
1188
  $this->psp_tag_meta = $term_meta;
1189
  } else {
1190
  $term_meta = $this->psp_tag_meta;
1191
  }
1192
 
1193
  if (empty($this->term_social_meta)) {
1194
+ if (!empty($term_id)) {
1195
+ $term_social_meta = get_term_meta( $term_id, "psp_taxonomy_social_metas_$term_id");
1196
+ if ($term_social_meta) $this->term_social_meta = $term_social_meta[0];
1197
+ if (!$this->term_social_meta) $this->term_social_meta = get_option( "psp_taxonomy_social_metas_$term_id");
1198
+ }
1199
+ //if (!empty($term_id)) $this->term_social_meta = get_option( "psp_taxonomy_social_metas_$term_id");
1200
  }
1201
 
1202
  $robots_meta_string = $this->get_tax_robots_meta($term_meta);
1275
 
1276
  $term_meta_option_name = "psp_taxonomy_seo_metas_".$term_id;
1277
  //$term_meta = get_option("$cat_name_$cat_id_metas");
1278
+ if (!empty($term_id)) {
1279
+ $term_meta = get_term_meta( $term_id, "psp_taxonomy_seo_metas_$term_id");
1280
+ if ($term_meta) $term_meta = $term_meta[0];
1281
+ if (!$term_meta) $term_meta = get_option( "psp_taxonomy_seo_metas_$term_id");
1282
+ }
1283
  $this->psp_term_meta = $term_meta;
1284
 
1285
  } else {
1287
  }
1288
 
1289
  if (empty($this->term_social_meta)) {
1290
+ if (!empty($term_id)) {
1291
+ $term_social_meta = get_term_meta( $term_id, "psp_taxonomy_social_metas_$term_id");
1292
+ if ($term_social_meta) $this->term_social_meta = $term_social_meta[0];
1293
+ if (!$this->term_social_meta) $this->term_social_meta = get_option( "psp_taxonomy_social_metas_$term_id");
1294
+ }
1295
+ //if (!empty($term_id)) $this->term_social_meta = get_option( "psp_taxonomy_social_metas_$term_id");
1296
  }
1297
 
1298
  $robots_meta_string = $this->get_tax_robots_meta($term_meta);
psp-include/importers/psp_data_importer.php ADDED
@@ -0,0 +1,259 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Platinum SEO Pack
4
+ Plugin URI: https://techblissonline.com/platinum-wordpress-seo-plugin/
5
+ Author: Rajesh - Techblissonline
6
+ Author URI: http://techblissonline.com/
7
+ */
8
+ ?>
9
+ <?php
10
+ $import_yoast_data_nonce = wp_create_nonce( 'import_yoast_data_nonce' );
11
+ // in JavaScript, object properties are accessed as ajax_object.ajax_url,
12
+ //wp_enqueue_script( 'psp-ajax-import-script', plugins_url( '/js/psp-importer.js', __FILE__ ), array('jquery') );
13
+ wp_enqueue_script( 'psp-ajax-import-script', plugins_url( 'settings/js/psp-importer.js', PSP_PLUGIN_SETTINGS_URL ), array('jquery'), '2.1' );
14
+ wp_localize_script( 'psp-ajax-import-script', 'psp_ajax_importer_object', array( 'ajax_url' => admin_url( 'admin-ajax.php'), 'pspnonce' => $import_yoast_data_nonce) );
15
+ //wp_enqueue_style("psp-settings-bs-css", plugins_url( '/css/psp-settings-bs.css', __FILE__ ));
16
+ wp_enqueue_style("psp-settings-bs-css", plugins_url( 'settings/css/psp-settings-bs.css', PSP_PLUGIN_SETTINGS_URL ));
17
+ ?>
18
+ <style>
19
+ /*.psp-sidebar{width:15%;background-color:#fff;position:fixed!important;z-index:1;overflow:auto}*/
20
+ .psp-sidebar{background-color:#fff;position:fixed!important;z-index:1;overflow:auto}
21
+ .psp-bar-block .psp-dropdown-hover .psp-button,.psp-bar-block .psp-dropdown-click .psp-button{width:100%;text-align:left;padding:8px 16px}
22
+ .psp-bar-block .psp-bar-item{width:100%;display:block;padding:8px 16px;text-align:left;border:none;white-space:normal;float:none;outline:0;cursor:pointer;}
23
+ .psp-bar-block.psp-center .psp-bar-item{text-align:center}.psp-block{display:block;width:100%}
24
+ .psp-card,.psp-card-2{box-shadow:0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12)}
25
+ .psp-card-4,.psp-hover-shadow:hover{box-shadow:0 4px 10px 0 rgba(0,0,0,0.2),0 4px 20px 0 rgba(0,0,0,0.19)}
26
+ .psp-black,.psp-hover-black:hover{color:#fff!important;background-color:#000!important}
27
+ .psp-grey,.psp-hover-grey:hover,.psp-gray,.psp-hover-gray:hover{color:#000!important;background-color:#9e9e9e!important}
28
+ .psp-light-grey,.psp-hover-light-grey:hover,.psp-light-gray,.psp-hover-light-gray:hover{color:#000!important;background-color:#f1f1f1!important}
29
+ .psp-container:after,.psp-container:before,.psp-panel:after,.psp-panel:before,.psp-row:after,.psp-row:before,.psp-row-padding:after,.psp-row-padding:before,
30
+ /***animate***/
31
+ .psp-spin{animation:psp-spin 2s infinite linear}@keyframes psp-spin{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}
32
+ .psp-animate-fading{animation:fading 10s infinite}@keyframes fading{0%{opacity:0}50%{opacity:1}100%{opacity:0}}
33
+ .psp-animate-opacity{animation:opac 0.8s}@keyframes opac{from{opacity:0} to{opacity:1}}
34
+ .psp-animate-top{position:relative;animation:animatetop 0.4s}@keyframes animatetop{from{top:-300px;opacity:0} to{top:0;opacity:1}}
35
+ .psp-animate-left{position:relative;animation:animateleft 0.4s}@keyframes animateleft{from{left:-300px;opacity:0} to{left:0;opacity:1}}
36
+ .psp-animate-right{position:relative;animation:animateright 0.4s}@keyframes animateright{from{right:-300px;opacity:0} to{right:0;opacity:1}}
37
+ .psp-animate-bottom{position:relative;animation:animatebottom 0.4s}@keyframes animatebottom{from{bottom:-300px;opacity:0} to{bottom:0;opacity:1}}
38
+ .psp-animate-zoom {animation:animatezoom 0.6s}@keyframes animatezoom{from{transform:scale(0)} to{transform:scale(1)}}
39
+ .psp-animate-input{transition:width 0.4s ease-in-out}.psp-animate-input:focus{width:100%!important}
40
+ .psp-opacity,.psp-hover-opacity:hover{opacity:0.60}.psp-opacity-off,.psp-hover-opacity-off:hover{opacity:1}
41
+ .psp-opacity-max{opacity:0.25}.psp-opacity-min{opacity:0.75}
42
+ /* Colors */
43
+ .psp-amber,.psp-hover-amber:hover{color:#000!important;background-color:#ffc107!important}
44
+ .psp-aqua,.psp-hover-aqua:hover{color:#000!important;background-color:#00ffff!important}
45
+ .psp-blue,.psp-hover-blue:hover{color:#fff!important;background-color:#2196F3!important}
46
+ .psp-light-blue,.psp-hover-light-blue:hover{color:#000!important;background-color:#87CEEB!important}
47
+ .psp-brown,.psp-hover-brown:hover{color:#fff!important;background-color:#795548!important}
48
+ .psp-cyan,.psp-hover-cyan:hover{color:#000!important;background-color:#00bcd4!important}
49
+ .psp-blue-grey,.psp-hover-blue-grey:hover,.psp-blue-gray,.psp-hover-blue-gray:hover{color:#fff!important;background-color:#607d8b!important}
50
+ .psp-green,.psp-hover-green:hover{color:#fff!important;background-color:#4CAF50!important}
51
+ .psp-light-green,.psp-hover-light-green:hover{color:#000!important;background-color:#8bc34a!important}
52
+ .psp-indigo,.psp-hover-indigo:hover{color:#fff!important;background-color:#3f51b5!important}
53
+ .psp-khaki,.psp-hover-khaki:hover{color:#000!important;background-color:#f0e68c!important}
54
+ .psp-lime,.psp-hover-lime:hover{color:#000!important;background-color:#cddc39!important}
55
+ .psp-orange,.psp-hover-orange:hover{color:#000!important;background-color:#ff9800!important}
56
+ .psp-deep-orange,.psp-hover-deep-orange:hover{color:#fff!important;background-color:#ff5722!important}
57
+ .psp-pink,.psp-hover-pink:hover{color:#fff!important;background-color:#e91e63!important}
58
+ </style>
59
+ <h1><?php esc_html_e('Techblissonline Platinum SEO Importer', 'platinum-seo-pack'); ?></h1>
60
+ <div class="wrap">
61
+
62
+ <div class="row">
63
+ <div class="psp-sidebar psp-bar-block psp-light-grey psp-card col-sm-1" style="width:10%">
64
+ <button class="psp-bar-item psp-button psp-tab psp-cyan" onclick="openLink(event, 'Fade')">Yoast</button>
65
+ <button class="psp-bar-item psp-button psp-tab" onclick="openLink(event, 'Right')">RankMath</button>
66
+ <button class="psp-bar-item psp-button psp-tab" onclick="openLink(event, 'Bottom')">Yoast Indexable</button>
67
+ <button class="psp-bar-item psp-button psp-tab" onclick="openLink(event, 'Zoom')">Platinum SEO</button>
68
+ </div>
69
+
70
+ <div class="col-sm-10" style="margin-left:15%">
71
+ <div id="Fade" class="psp-container plugin psp-animate-opacity">
72
+
73
+ <h2><?php esc_html_e('Import Yoast SEO Data into Platinum SEO:', 'platinum-seo-pack'); ?></h2>
74
+ <a href="<?php echo get_admin_url(get_current_blog_id())."admin.php?page=platinum-seo-social-pack-by-techblissonline" ?>"> <?php esc_html_e('Settings', 'platinum-seo-pack') ?></a> | <a href="https://techblissonline.com/platinum-wordpress-seo-plugin/#what-is-new" target="_blank" rel="noopener"><?php esc_html_e('Platinum SEO WordPress Plugin', 'platinum-seo-pack') ?></a>
75
+
76
+ <br class="clear" />
77
+ <div id="pspimporter-1">
78
+ <table class="form-table">
79
+ <tr class="form-field">
80
+ <th style="width:70%;" scope="row" valign="top"><label><?php esc_html_e('Import Titles and Descriptions: ', 'platinum-seo-pack'); ?></label>
81
+ <p class="description"><?php esc_html_e('This will import all your Titles and Descriptions from your current SEO Plugin into Platinum SEO Plugin', 'platinum-seo-pack'); ?></p></th>
82
+ <td><div class="psp-bs alignright"><input style="display:block;margin:auto" name="yoast_title" id="import_yoast_title_data_btn" class="psp_importer btn btn-success" type="btn" value="Import" /><p class="yoast-titles-loader hidden"><img src="<?php echo esc_url(PSP_PLUGIN_URL).'images/techblissonline-video-loader.gif'; ?>" class="img-responsive" alt="Loading..."/></p>
83
+ </div>
84
+ </td>
85
+ </tr>
86
+ <tr class="form-field">
87
+ <th style="width:70%;" scope="row" valign="top"><label><?php esc_html_e('Import Basic Robots Meta Data: ', 'platinum-seo-pack'); ?></label>
88
+ <p class="description"><?php esc_html_e('This will import all your basic robots meta data (noindex, nofollow) from your current SEO Plugin into Platinum SEO Plugin', 'platinum-seo-pack'); ?></p></th>
89
+ <td><div class="psp-bs alignright"><input style="display:block;margin:auto" name="yoast_basicrobots" id="import_yoast_brobots_data_btn" class="psp_importer btn btn-success" type="btn" value="Import" /><p class="yoast-basicrobots-loader hidden"><img src="<?php echo esc_url(PSP_PLUGIN_URL).'images/techblissonline-video-loader.gif'; ?>" class="img-responsive" alt="Loading..."/></p>
90
+ </div>
91
+ </td>
92
+ </tr>
93
+ <tr class="form-field">
94
+ <th style="width:70%;" scope="row" valign="top"><label><?php esc_html_e('Import Advanced Robots Meta Data: ', 'platinum-seo-pack'); ?></label>
95
+ <p class="description"><?php esc_html_e('This will import all your advanced robots meta data from your current SEO Plugin into Platinum SEO Plugin', 'platinum-seo-pack'); ?></p></th>
96
+ <td><div class="psp-bs alignright"><input style="display:block;margin:auto" name="yoast_robots" id="import_yoast_robots_data_btn" class="psp_importer btn btn-success" type="btn" value="Import" /><p class="yoast-robots-loader hidden"><img src="<?php echo esc_url(PSP_PLUGIN_URL).'images/techblissonline-video-loader.gif'; ?>" class="img-responsive" alt="Loading..."/></p>
97
+ </div>
98
+ </td>
99
+ </tr>
100
+ <tr class="form-field">
101
+ <th style="width:70%;" scope="row" valign="top"><label><?php esc_html_e('Import other SEO and Social Meta Data: ', 'platinum-seo-pack'); ?></label>
102
+ <p class="description"><?php esc_html_e('This will import all your other SEO and Social meta data from your current SEO Plugin into Platinum SEO Plugin', 'platinum-seo-pack'); ?></p></th>
103
+ <td><div class="psp-bs alignright"><input style="display:block;margin:auto" name="yoast_others" id="import_yoast_others_data_btn" class="psp_importer btn btn-success" type="btn" value="Import" /><p class="yoast-others-loader hidden"><img src="<?php echo esc_url(PSP_PLUGIN_URL).'images/techblissonline-video-loader.gif'; ?>" class="img-responsive" alt="Loading..."/></p>
104
+ </div>
105
+ </td>
106
+ </tr>
107
+ <tr class="form-field">
108
+ <th style="width:70%;" scope="row" valign="top"><label><?php esc_html_e('Import SEO and Social Meta Data for Terms: ', 'platinum-seo-pack'); ?></label>
109
+ <p class="description"><?php esc_html_e('This will import all your SEO and Social meta data for Terms (Categories and other Taxonomies) from your current SEO Plugin into Platinum SEO Plugin', 'platinum-seo-pack'); ?></p></th>
110
+ <td><div class="psp-bs alignright"><input style="display:block;margin:auto" name="yoast_terms" id="import_yoast_terms_data_btn" class="psp_importer btn btn-success" type="btn" value="Import" /><p class="yoast-terms-loader hidden"><img src="<?php echo esc_url(PSP_PLUGIN_URL).'images/techblissonline-video-loader.gif'; ?>" class="img-responsive" alt="Loading..."/></p>
111
+ </div>
112
+ </td>
113
+ </tr>
114
+ <tr class="form-field">
115
+ <th style="width:70%;" scope="row" valign="top"><label><?php esc_html_e('Import Yoast Premium Meta Data: ', 'platinum-seo-pack'); ?></label>
116
+ <p class="description"><?php esc_html_e('This will import all your Premium focus Keywords from your current Yoast Premium Plugin into Platinum SEO Plugin', 'platinum-seo-pack'); ?></p></th>
117
+ <td><div class="psp-bs alignright"><input style="display:block;margin:auto" name="yoast_premium" id="import_yoast_premium_data_btn" class="psp_importer btn btn-success" type="btn" value="Import" /><p class="yoast-premium-loader hidden"><img src="<?php echo esc_url(PSP_PLUGIN_URL).'images/techblissonline-video-loader.gif'; ?>" class="img-responsive" alt="Loading..."/></p>
118
+ </div>
119
+ </td>
120
+ </tr>
121
+ <tr class="form-field">
122
+ <th style="width:100%;" scope="row" valign="top"><label><?php esc_html_e('Set up the One time Configuration for Platinum SEO: ', 'platinum-seo-pack'); ?></label>
123
+ <p class="description"><?php esc_html_e('Platinum SEO sets up the default configuration on installation and activation. If you are done with Importing, you may go to SEO Settings and Social Settings to review and make any necessary changes', 'platinum-seo-pack'); ?></p><p><a href="<?php echo get_admin_url(get_current_blog_id())."admin.php?page=platinum-seo-social-pack-by-techblissonline" ?>"> <?php esc_html_e('SEO Settings', 'platinum-seo-pack') ?></a> | <a href="<?php echo get_admin_url(get_current_blog_id())."admin.php?page=psp-social-by-techblissonline" ?>"> <?php esc_html_e('Social Settings', 'platinum-seo-pack') ?></a></p></th>
124
+ </tr>
125
+ </table>
126
+ </div>
127
+
128
+ <br class="clear" />
129
+
130
+ </div>
131
+ <div id="Right" class="psp-container plugin psp-animate-right" style="display:none">
132
+
133
+ <h2><?php esc_html_e('Import RankMath SEO Data into Platinum SEO:', 'platinum-seo-pack'); ?></h2>
134
+ <a href="<?php echo get_admin_url(get_current_blog_id())."admin.php?page=platinum-seo-social-pack-by-techblissonline" ?>"> <?php esc_html_e('Settings', 'platinum-seo-pack') ?></a> | <a href="https://techblissonline.com/platinum-wordpress-seo-plugin/#what-is-new" target="_blank" rel="noopener"><?php esc_html_e('Platinum SEO WordPress Plugin', 'platinum-seo-pack') ?></a>
135
+
136
+ <br class="clear" />
137
+ <div id="pspimporter-2">
138
+ <table class="form-table">
139
+ <tr class="form-field">
140
+ <th style="width:70%;" scope="row" valign="top"><label><?php esc_html_e('Import Titles and Descriptions: ', 'platinum-seo-pack'); ?></label>
141
+ <p class="description"><?php esc_html_e('This will import all your Titles and Descriptions from your current SEO Plugin into Platinum SEO Plugin', 'platinum-seo-pack'); ?></p></th>
142
+ <td><div class="psp-bs alignright"><input style="display:block;margin:auto" name="rankmath_title" id="import_rm_title_data_btn" class="psp_importer btn btn-success" type="btn" value="Import" /><p class="rm-titles-loader hidden"><img src="<?php echo esc_url(PSP_PLUGIN_URL).'images/techblissonline-video-loader.gif'; ?>" class="img-responsive" alt="Loading..."/></p></div>
143
+ </td>
144
+ </tr>
145
+ <tr class="form-field">
146
+ <th style="width:70%;" scope="row" valign="top"><label><?php esc_html_e('Import Robots Meta Data: ', 'platinum-seo-pack'); ?></label>
147
+ <p class="description"><?php esc_html_e('This will import all your robots meta data from your current SEO Plugin into Platinum SEO Plugin', 'platinum-seo-pack'); ?></p></th>
148
+ <td><div class="psp-bs alignright"><input style="display:block;margin:auto" name="rankmath_robots" id="import_rm_robots_data_btn" class="psp_importer btn btn-success" type="btn" value="Import" /><p class="rm-robots-loader hidden"><img src="<?php echo esc_url(PSP_PLUGIN_URL).'images/techblissonline-video-loader.gif'; ?>" class="img-responsive" alt="Loading..."/></p></div>
149
+ </td>
150
+ </tr>
151
+ <tr class="form-field">
152
+ <th style="width:70%;" scope="row" valign="top"><label><?php esc_html_e('Import other SEO and Social Meta Data: ', 'platinum-seo-pack'); ?></label>
153
+ <p class="description"><?php esc_html_e('This will import all your other SEO and Social meta data from your current SEO Plugin into Platinum SEO Plugin', 'platinum-seo-pack'); ?></p></th>
154
+ <td><div class="psp-bs alignright"><input style="display:block;margin:auto" name="rankmath_others" id="import_rm_others_data_btn" class="psp_importer btn btn-success" type="btn" value="Import" /><p class="rm-others-loader hidden"><img src="<?php echo esc_url(PSP_PLUGIN_URL).'images/techblissonline-video-loader.gif'; ?>" class="img-responsive" alt="Loading..."/></p>
155
+ </div>
156
+ </td>
157
+ </tr>
158
+ <tr class="form-field">
159
+ <th style="width:70%;" scope="row" valign="top"><label><?php esc_html_e('Import SEO and Social Meta Data for Terms: ', 'platinum-seo-pack'); ?></label>
160
+ <p class="description"><?php esc_html_e('This will import all your SEO and Social meta data for Terms (Categories and other Taxonomies) from your current SEO Plugin into Platinum SEO Plugin', 'platinum-seo-pack'); ?></p></th>
161
+ <td><div class="psp-bs alignright"><input style="display:block;margin:auto" name="rankmath_terms" id="import_rm_terms_data_btn" class="psp_importer btn btn-success" type="btn" value="Import" /><p class="rm-terms-loader hidden"><img src="<?php echo esc_url(PSP_PLUGIN_URL).'images/techblissonline-video-loader.gif'; ?>" class="img-responsive" alt="Loading..."/></p>
162
+ </div>
163
+ </td>
164
+ </tr>
165
+ <tr class="form-field">
166
+ <th style="width:100%;" scope="row" valign="top"><label><?php esc_html_e('Set up the One time Configuration for Platinum SEO: ', 'platinum-seo-pack'); ?></label>
167
+ <p class="description"><?php esc_html_e('Platinum SEO sets up the default configuration on installation and activation. If you are done with Importing, you may go to SEO Settings and Social Settings to review and make any necessary changes', 'platinum-seo-pack'); ?></p><p><a href="<?php echo get_admin_url(get_current_blog_id())."admin.php?page=platinum-seo-social-pack-by-techblissonline" ?>"> <?php esc_html_e('SEO Settings', 'platinum-seo-pack') ?></a> | <a href="<?php echo get_admin_url(get_current_blog_id())."admin.php?page=psp-social-by-techblissonline" ?>"> <?php esc_html_e('Social Settings', 'platinum-seo-pack') ?></a></p></th>
168
+ </tr>
169
+ </table>
170
+ </div>
171
+
172
+ <br class="clear" />
173
+
174
+ </div>
175
+ <div id="Bottom" class="psp-container plugin psp-animate-bottom" style="display:none">
176
+
177
+ <h2><?php esc_html_e('Import Yoast Indexable SEO Data into Platinum SEO:', 'platinum-seo-pack'); ?></h2>
178
+ <a href="<?php echo get_admin_url(get_current_blog_id())."admin.php?page=platinum-seo-social-pack-by-techblissonline" ?>"> <?php esc_html_e('Settings', 'platinum-seo-pack') ?></a> | <a href="https://techblissonline.com/platinum-wordpress-seo-plugin/#what-is-new" target="_blank" rel="noopener"><?php esc_html_e('Platinum SEO WordPress Plugin', 'platinum-seo-pack') ?></a>
179
+
180
+ <br class="clear" />
181
+ <div id="pspimporter-3">
182
+ <table class="form-table">
183
+ <tr class="form-field">
184
+ <th style="width:70%;" scope="row" valign="top"><label><?php esc_html_e('Import Titles and Descriptions: ', 'platinum-seo-pack'); ?></label>
185
+ <p class="description"><?php esc_html_e('This will import all your Titles and Descriptions from your current SEO Plugin into Platinum SEO Plugin', 'platinum-seo-pack'); ?></p></th>
186
+ <td><div class="psp-bs alignright"><input style="display:block;margin:auto" name="yoastnew_title" id="import_yoastnew_title_data_btn" class="psp_importer btn btn-success" type="btn" value="Import" /><p class="yoastnew-titles-loader hidden"><img src="<?php echo esc_url(PSP_PLUGIN_URL).'images/techblissonline-video-loader.gif'; ?>" class="img-responsive" alt="Loading..."/></p>
187
+ </div>
188
+ </td>
189
+ </tr>
190
+ <tr class="form-field">
191
+ <th style="width:70%;" scope="row" valign="top"><label><?php esc_html_e('Import Robots Meta Data: ', 'platinum-seo-pack'); ?></label>
192
+ <p class="description"><?php esc_html_e('This will import all your robots meta data from your current SEO Plugin into Platinum SEO Plugin', 'platinum-seo-pack'); ?></p></th>
193
+ <td><div class="psp-bs alignright"><input style="display:block;margin:auto" name="yoastnew_robots" id="import_yoastnew_robots_data_btn" class="psp_importer btn btn-success" type="btn" value="Import" /><p class="yoastnew-robots-loader hidden"><img src="<?php echo esc_url(PSP_PLUGIN_URL).'images/techblissonline-video-loader.gif'; ?>" class="img-responsive" alt="Loading..."/></p>
194
+ </div>
195
+ </td>
196
+ </tr>
197
+ <tr class="form-field">
198
+ <th style="width:70%;" scope="row" valign="top"><label><?php esc_html_e('Import other SEO and Social Meta Data: ', 'platinum-seo-pack'); ?></label>
199
+ <p class="description"><?php esc_html_e('This will import all your other SEO and Social meta data from your current SEO Plugin into Platinum SEO Plugin', 'platinum-seo-pack'); ?></p></th>
200
+ <td><div class="psp-bs alignright"><input style="display:block;margin:auto" name="yoastnew_others" id="import_yoastnew_others_data_btn" class="psp_importer btn btn-success" type="btn" value="Import" /><p class="yoastnew-others-loader hidden"><img src="<?php echo esc_url(PSP_PLUGIN_URL).'images/techblissonline-video-loader.gif'; ?>" class="img-responsive" alt="Loading..."/></p>
201
+ </div>
202
+ </td>
203
+ </tr>
204
+ <tr class="form-field">
205
+ <th style="width:70%;" scope="row" valign="top"><label><?php esc_html_e('Import SEO and Social Meta Data for Terms: ', 'platinum-seo-pack'); ?></label>
206
+ <p class="description"><?php esc_html_e('This will import all your SEO and Social meta data for Terms (Categories and other Taxonomies) from your current SEO Plugin into Platinum SEO Plugin', 'platinum-seo-pack'); ?></p></th>
207
+ <td><div class="psp-bs alignright"><input style="display:block;margin:auto" name="yoastnew_terms" id="import_yoastnew_terms_data_btn" class="psp_importer btn btn-success" type="btn" value="Import" /><p class="yoastnew-terms-loader hidden"><img src="<?php echo esc_url(PSP_PLUGIN_URL).'images/techblissonline-video-loader.gif'; ?>" class="img-responsive" alt="Loading..."/></p>
208
+ </div>
209
+ </td>
210
+ </tr>
211
+ <tr class="form-field">
212
+ <th style="width:100%;" scope="row" valign="top"><label><?php esc_html_e('Set up the One time Configuration for Platinum SEO: ', 'platinum-seo-pack'); ?></label>
213
+ <p class="description"><?php esc_html_e('Platinum SEO sets up the default configuration on installation and activation. If you are done with Importing, you may go to SEO Settings and Social Settings to review and make any necessary changes', 'platinum-seo-pack'); ?></p><p><a href="<?php echo get_admin_url(get_current_blog_id())."admin.php?page=platinum-seo-social-pack-by-techblissonline" ?>"> <?php esc_html_e('SEO Settings', 'platinum-seo-pack') ?></a> | <a href="<?php echo get_admin_url(get_current_blog_id())."admin.php?page=psp-social-by-techblissonline" ?>"> <?php esc_html_e('Social Settings', 'platinum-seo-pack') ?></a></p></th>
214
+ </tr>
215
+ </table>
216
+ </div>
217
+
218
+ <br class="clear" />
219
+
220
+ </div>
221
+ <div id="Zoom" class="psp-container plugin psp-animate-zoom" style="display:none">
222
+
223
+ <h2><?php esc_html_e('Import Platinum SEO Data into Platinum SEO V2.1.0 :', 'platinum-seo-pack'); ?></h2>
224
+ <a href="<?php echo get_admin_url(get_current_blog_id())."admin.php?page=platinum-seo-social-pack-by-techblissonline" ?>"> <?php esc_html_e('Settings', 'platinum-seo-pack') ?></a> | <a href="https://techblissonline.com/platinum-wordpress-seo-plugin/#what-is-new" target="_blank" rel="noopener"><?php esc_html_e('Platinum SEO WordPress Plugin', 'platinum-seo-pack') ?></a>
225
+
226
+ <br class="clear" />
227
+ <div id="pspimporter-4">
228
+ <table class="form-table">
229
+ <tr class="form-field">
230
+ <th style="width:70%;" scope="row" valign="top"><label><?php esc_html_e('Import Robots Meta Data: ', 'platinum-seo-pack'); ?></label>
231
+ <p class="description"><?php esc_html_e('This will import all your robots meta data from into Platinum SEO PluginV2.1.0', 'platinum-seo-pack'); ?></p></th>
232
+ <td><div class="psp-bs alignright"><input style="display:block;margin:auto" name="psp_robots" id="import_psp_robots_data_btn" class="psp_importer btn btn-success" type="btn" value="Import" /><p class="psp-robots-loader hidden"><img src="<?php echo esc_url(PSP_PLUGIN_URL).'images/techblissonline-video-loader.gif'; ?>" class="img-responsive" alt="Loading..."/></p>
233
+ </div>
234
+ </td>
235
+ </tr>
236
+ <tr class="form-field">
237
+ <th style="width:70%;" scope="row" valign="top"><label><?php esc_html_e('Import All SEO and Social Meta Data: ', 'platinum-seo-pack'); ?></label>
238
+ <p class="description"><?php esc_html_e('This will import all your other SEO and Social meta data from your current SEO Plugin into Platinum SEO Plugin', 'platinum-seo-pack'); ?></p></th>
239
+ <td><div class="psp-bs alignright"><input style="display:block;margin:auto" name="psp_others" id="import_psp_others_data_btn" class="psp_importer btn btn-success" type="btn" value="Import" /><p class="psp-others-loader hidden"><img src="<?php echo esc_url(PSP_PLUGIN_URL).'images/techblissonline-video-loader.gif'; ?>" class="img-responsive" alt="Loading..."/></p>
240
+ </div>
241
+ </td>
242
+ </tr>
243
+ <tr class="form-field">
244
+ <th style="width:70%;" scope="row" valign="top"><label><?php esc_html_e('Import SEO and Social Meta Data for Terms: ', 'platinum-seo-pack'); ?></label>
245
+ <p class="description"><?php esc_html_e('This will import all your SEO and Social meta data for Terms (Categories and other Taxonomies) into Platinum SEO Plugin V2.1.0', 'platinum-seo-pack'); ?></p></th>
246
+ <td><div class="psp-bs alignright"><input style="display:block;margin:auto" name="psp_terms" id="import_psp_terms_data_btn" class="psp_importer btn btn-success" type="btn" value="Import" /><p class="psp-terms-loader hidden"><img src="<?php echo esc_url(PSP_PLUGIN_URL).'images/techblissonline-video-loader.gif'; ?>" class="img-responsive" alt="Loading..."/></p>
247
+ </div>
248
+ </td>
249
+ </tr>
250
+ </table>
251
+ </div>
252
+
253
+ <br class="clear" />
254
+
255
+ </div>
256
+ </div>
257
+
258
+ </div>
259
+ </div>
psp-include/importers/psp_import.php ADDED
@@ -0,0 +1,1289 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Platinum SEO Pack
4
+ Plugin URI: https://techblissonline.com/platinum-wordpress-seo-plugin/
5
+ Author: Rajesh - Techblissonline
6
+ Author URI: http://techblissonline.com/
7
+ */
8
+ class PspImporter {
9
+
10
+ private static $obj_handle = null;
11
+
12
+ protected $psp_helper;
13
+
14
+ protected $psp_plugin_options_key = 'platinum-seo-social-pack-by-techblissonline';
15
+
16
+ public static function get_instance() {
17
+
18
+ if ( null == self::$obj_handle ) {
19
+ self::$obj_handle = new self;
20
+ }
21
+
22
+ return self::$obj_handle;
23
+
24
+ } // end get_instance;
25
+ //can be made private for singleton pattern
26
+ public function __construct() {
27
+
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') );
35
+
36
+ //add_action( 'admin_enqueue_scripts', array(&$this, 'psp_importer_enqueue') );
37
+
38
+ }
39
+
40
+ public function psp_importer_enqueue($hook) {
41
+
42
+ $import_yoast_data_nonce = wp_create_nonce( 'import_yoast_data_nonce' );
43
+ // in JavaScript, object properties are accessed as ajax_object.ajax_url, ajax_object.we_value
44
+ wp_enqueue_script( 'psp-ajax-import-script', plugins_url( '/js/psp-importer.js', __FILE__ ), array('jquery') );
45
+
46
+ wp_localize_script( 'psp-ajax-import-script', 'psp_ajax_importer_object', array( 'ajax_url' => admin_url( 'admin-ajax.php'), 'nonce' => $import_yoast_data_nonce) );
47
+
48
+ }
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
+
57
+ }
58
+
59
+ public function pspimport_mgmtpage() {
60
+
61
+ include_once( 'psp_data_importer.php' );
62
+
63
+ }
64
+
65
+ public function import_yoast_data() {
66
+
67
+ //error_log("psp_yoast_importer");
68
+ check_ajax_referer( 'import_yoast_data_nonce', 'ajax_nonce');
69
+ //$this->import_yoast_post_meta();
70
+ $whattoimport = isset($_POST['title']) ? sanitize_key( $_POST['title'] ) : '';
71
+ $meta = substr($whattoimport, strpos($whattoimport, "_") + 1); //yoast_titles, rankmath_titles
72
+ $plugin = substr($whattoimport, 0, strpos($whattoimport, "_"));
73
+
74
+ //error_log($meta);
75
+ //error_log($plugin);
76
+
77
+ if($meta == "title") {
78
+ //$this->import_yoast_rm_post_meta($meta, $plugin);
79
+ //$this->import_yoast_rm_post_meta("description", $plugin);
80
+ if($plugin == "yoastnew") {
81
+ $import_error = $this->import_yoast_new_post_meta($meta, $plugin);
82
+ if($import_error) {
83
+ esc_html_e($import_error);
84
+ wp_die();
85
+ }
86
+ $this->import_yoast_new_post_meta("description", $plugin);
87
+ } else {
88
+ $this->import_yoast_rm_post_meta($meta, $plugin);
89
+ $this->import_yoast_rm_post_meta("description", $plugin);
90
+ }
91
+ echo ucwords($plugin). esc_html(' Meta Titles and Descriptions successfully Imported', 'platinum-seo-pack');
92
+ //echo ucwords($plugin)." Meta Titles and Descriptions successfully Imported";
93
+ wp_die();
94
+ }
95
+
96
+ if($meta == "basicrobots") {
97
+ $this->import_yoast_rm_post_meta('noindex', $plugin);
98
+ $this->import_yoast_rm_post_meta('nofollow', $plugin);
99
+ echo ucwords($plugin). esc_html(' Basic Robots Data successfully Imported', 'platinum-seo-pack');
100
+ //echo ucwords($plugin)." Basic Robots Data successfully Imported";
101
+ wp_die();
102
+ }
103
+
104
+ if($meta == "robots") {
105
+
106
+ if($plugin == "yoastnew") {
107
+ $import_error = $this->import_yoast_new_post_meta($meta, $plugin);
108
+ if($import_error) {
109
+ esc_html_e($import_error);
110
+ } else {
111
+ echo ucwords($plugin). esc_html(' All Robots Meta Data successfully Imported', 'platinum-seo-pack');
112
+ }
113
+ wp_die();
114
+ } else {
115
+ $this->import_yoast_rm_post_meta($meta, $plugin);
116
+ }
117
+ if ($plugin == "rankmath") {
118
+ $this->import_yoast_rm_post_meta('advrobots', $plugin);
119
+ }
120
+ echo ucwords($plugin). esc_html(' Advanced Robots Meta Data successfully Imported', 'platinum-seo-pack');
121
+ //Advanced Robots Meta Data successfully Imported";
122
+ wp_die();
123
+ }
124
+
125
+ if($meta == "advrobots") {
126
+ $this->import_yoast_rm_post_meta($meta, $plugin);
127
+
128
+ echo ucwords($plugin). esc_html(' Advanced Robots Meta Data successfully Imported', 'platinum-seo-pack');
129
+ //Advanced Robots Meta Data successfully Imported";
130
+ wp_die();
131
+
132
+ }
133
+
134
+ if($meta == "premium") {
135
+ $this->import_yoast_rm_post_meta('focuskeywords', $plugin);
136
+
137
+ echo ucwords($plugin). esc_html(' Premium Focus Keywords Meta Data successfully Imported', 'platinum-seo-pack');
138
+ //echo ucwords($plugin)." Premium Focus Keywords Meta Data successfully Imported";
139
+ wp_die();
140
+
141
+ }
142
+
143
+ if($meta == "others") {
144
+ $import_error = $this->import_yoast_post_meta_others($plugin);
145
+
146
+ if($import_error) {
147
+ esc_html_e($import_error);
148
+ wp_die();
149
+ } else {
150
+ echo ucwords($plugin). esc_html(' Other SEO and social Data successfully Imported', 'platinum-seo-pack');
151
+ //echo ucwords($plugin)." Other SEO and social Data successfully Imported";
152
+ wp_die();
153
+ }
154
+ }
155
+
156
+ if($meta == "terms" && $plugin == "yoast") {
157
+ $import_error = $this->import_yoast_term_meta();
158
+ if($import_error) {
159
+ esc_html_e($import_error);
160
+ wp_die();
161
+ } else {
162
+ esc_html_e('Yoast SEO and social Data for Terms successfully Imported', 'platinum-seo-pack');
163
+ //echo "Yoast SEO and social Data for Terms successfully Imported";
164
+ wp_die();
165
+ }
166
+ }
167
+
168
+ if($meta == "terms" && $plugin == "yoastnew") {
169
+ $import_error = $this->import_yoastnew_term_meta($plugin);
170
+ if($import_error) {
171
+ esc_html_e($import_error);
172
+ wp_die();
173
+ } else {
174
+ esc_html_e('Yoast Indexable SEO and social Data for Terms successfully Imported', 'platinum-seo-pack');
175
+ //echo "Yoast SEO and social Data for Terms successfully Imported";
176
+ wp_die();
177
+ }
178
+ }
179
+
180
+ if($meta == "terms" && $plugin == "rankmath") {
181
+ $import_error = $this->import_rm_term_meta();
182
+
183
+ if($import_error) {
184
+ esc_html_e($import_error);
185
+ wp_die();
186
+ } else {
187
+ esc_html_e('RankMath SEO and social Data for Terms successfully Imported', 'platinum-seo-pack');
188
+ //echo "Yoast SEO and social Data for Terms successfully Imported";
189
+ wp_die();
190
+ }
191
+ }
192
+
193
+ if($meta == "terms" && $plugin == "psp") {
194
+ $import_error = $this->import_psp_term_meta();
195
+
196
+ if($import_error) {
197
+ esc_html_e($import_error);
198
+ wp_die();
199
+ } else {
200
+ esc_html_e('Platinum SEO SEO and social Data for Terms successfully Imported to new Tables', 'platinum-seo-pack');
201
+ //echo "Yoast SEO and social Data for Terms successfully Imported";
202
+ wp_die();
203
+ }
204
+ }
205
+
206
+
207
+ //echo "Yoast Data successfully Imported";
208
+
209
+ wp_die(); // terminate
210
+ }
211
+
212
+ private function import_yoast_rm_post_meta($meta = "", $plugin = "") {
213
+
214
+ //error_log("import_yoast_rm_post_meta_1");
215
+
216
+ global $wpdb;
217
+
218
+ $psp_post_meta_tbl = $wpdb->prefix . "postmeta";
219
+ $psp_post_seo_tbl = $wpdb->prefix . "platinumseometa";
220
+
221
+ $max_metas_per_page = 100;
222
+ $meta_to_import = "";
223
+
224
+ if($plugin == "yoast") {
225
+
226
+ if($meta == "title") {
227
+
228
+ //$meta_to_import = "title";
229
+ $meta_to_import = "_yoast_wpseo_title";
230
+ $psp_meta = "_techblissonline_psp_title";
231
+
232
+ } else if ($meta == "description") {
233
+
234
+ //$meta_to_import = "description";
235
+ $meta_to_import = "_yoast_wpseo_metadesc";
236
+ $psp_meta = "_techblissonline_psp_description";
237
+
238
+ } else if ($meta == "noindex") {
239
+
240
+ $meta_to_import = "_yoast_wpseo_meta-robots-noindex";
241
+ $psp_meta = "_techblissonline_psp_noindex";
242
+
243
+ } else if ($meta == "nofollow") {
244
+
245
+ $meta_to_import = "_yoast_wpseo_meta-robots-nofollow";
246
+ $psp_meta = "_techblissonline_psp_nofollow";
247
+
248
+ } else if ($meta == "focuskeywords") {
249
+
250
+ $meta_to_import = "_yoast_wpseo_focuskeywords";
251
+ $psp_meta = "_techblissonline_psp_focuswords";
252
+
253
+ } else if ($meta == "robots") {
254
+
255
+ $meta_to_import = "_yoast_wpseo_meta-robots-adv";
256
+ //$meta_to_import = "robotsmeta";
257
+ $psp_meta = "_techblissonline_psp_advmeta";
258
+
259
+ }
260
+ }
261
+ if($plugin == "rankmath") {
262
+
263
+ if($meta == "title") {
264
+ $meta_to_import = "rank_math_title";
265
+ //$meta_to_import = "title";
266
+ $psp_meta = "_techblissonline_psp_title";
267
+ } else if ($meta == "description") {
268
+ $meta_to_import = "rank_math_description";
269
+ //$meta_to_import = "description";
270
+ $psp_meta = "_techblissonline_psp_description";
271
+ } else if ($meta == "robots") {
272
+ $meta_to_import = "rank_math_robots";
273
+ //$meta_to_import = "robotsmeta";
274
+ $psp_meta = "_techblissonline_psp_advmeta";
275
+ } else if ($meta == "advrobots") {
276
+ $meta_to_import = "rank_math_advanced_robots";
277
+ $psp_meta = "_techblissonline_psp_advmetarobots";
278
+ }
279
+ }
280
+
281
+ if($plugin == "psp") {
282
+
283
+ if ($meta == "robots") {
284
+ //$meta_to_import = "rank_math_robots";
285
+ $meta_to_import = "robotsmeta";
286
+ $psp_meta = "_techblissonline_psp_advmeta";
287
+ }
288
+
289
+ }
290
+
291
+ $counter = 0;
292
+ //While ($counter < 20) {
293
+ $last_post_id = 0;
294
+ $rows_exist = true;
295
+
296
+ // $counter = $counter + 1;
297
+ While ($rows_exist) {
298
+
299
+ //$yoast_meta_sql = $wpdb->prepare("Select post_id, meta_key, meta_value from {$psp_post_meta_tbl} WHERE post_id > %d and meta_key = %s ORDER by post_id LIMIT %d", $last_post_id, $meta_to_import, $max_metas_per_page);
300
+
301
+ if ($psp_meta == "_techblissonline_psp_advmeta") {
302
+
303
+ if($plugin == "yoast") {
304
+
305
+ $yoast_meta_sql = $wpdb->prepare("Select post_id, meta_key, meta_value from {$psp_post_meta_tbl} WHERE post_id > %d and meta_key = %s and post_id not in (Select platinumseo_id from {$psp_post_seo_tbl} WHERE platinumseo_id > %d and meta_key in (%s, %s, %s)) ORDER by post_id LIMIT %d", $last_post_id, $meta_to_import, $last_post_id, '_techblissonline_psp_noarchive', '_techblissonline_psp_nosnippet', '_techblissonline_psp_noimageidx', $max_metas_per_page);
306
+
307
+ } else if($plugin == "rankmath") {
308
+
309
+ $yoast_meta_sql = $wpdb->prepare("Select post_id, meta_key, meta_value from {$psp_post_meta_tbl} WHERE post_id > %d and meta_key = %s and post_id not in (Select platinumseo_id from {$psp_post_seo_tbl} WHERE platinumseo_id > %d and meta_key in (%s, %s, %s, %s, %s)) ORDER by post_id LIMIT %d", $last_post_id, $meta_to_import, $last_post_id, '_techblissonline_psp_noindex', '_techblissonline_psp_nofollow','_techblissonline_psp_noarchive', '_techblissonline_psp_nosnippet', '_techblissonline_psp_noimageidx', $max_metas_per_page);
310
+
311
+ } else if($plugin == "psp") {
312
+
313
+ $yoast_meta_sql = $wpdb->prepare("Select post_id, meta_key, meta_value from {$psp_post_meta_tbl} WHERE post_id > %d and meta_key = %s and post_id not in (Select platinumseo_id from {$psp_post_seo_tbl} WHERE platinumseo_id > %d and meta_key in (%s, %s)) ORDER by post_id LIMIT %d", $last_post_id, $meta_to_import, $last_post_id, '_techblissonline_psp_noindex', '_techblissonline_psp_nofollow',$max_metas_per_page);
314
+
315
+ }
316
+
317
+ } else if ($plugin == "rankmath" && $psp_meta == "_techblissonline_psp_advmetarobots") {
318
+
319
+ $yoast_meta_sql = $wpdb->prepare("Select post_id, meta_key, meta_value from {$psp_post_meta_tbl} WHERE post_id > %d and meta_key = %s and post_id not in (Select platinumseo_id from {$psp_post_seo_tbl} WHERE platinumseo_id > %d and meta_key in (%s, %s, %s)) ORDER by post_id LIMIT %d", $last_post_id, $meta_to_import, $last_post_id, '_techblissonline_psp_maxsnippet', '_techblissonline_psp_maxvideo','_techblissonline_psp_maximage', $max_metas_per_page);
320
+
321
+ } else {
322
+
323
+ $yoast_meta_sql = $wpdb->prepare("Select post_id, meta_key, meta_value from {$psp_post_meta_tbl} WHERE post_id > %d and meta_key = %s and post_id not in (Select platinumseo_id from {$psp_post_seo_tbl} WHERE platinumseo_id > %d and meta_key = %s) ORDER by post_id LIMIT %d", $last_post_id, $meta_to_import, $last_post_id, $psp_meta, $max_metas_per_page);
324
+
325
+ }
326
+
327
+ //error_log($yoast_meta_sql);
328
+
329
+ //$yoast_title_sql = $wpdb->prepare("Select post_id, meta_key, meta_value from $psp_post_meta_tbl WHERE post_id > %d and meta_key in(%s, %s, %s) ORDER by post_id LIMIT %d", $last_post_id, 'title', '_techblissonline_psp_title', '_yoast_wpseo_title', $max_titles_per_page);
330
+
331
+ //$yoast_meta_sql = $wpdb->prepare("Select post_id, meta_key, meta_value from $psp_post_meta_tbl WHERE post_id > %d and meta_key in (%s, %s, %s) ORDER by post_id LIMIT %d", $last_post_id, $meta_to_import, $max_metas_per_page);
332
+
333
+ //error_log($yoast_meta_sql);
334
+
335
+ $yoast_metas = $wpdb->get_results($yoast_meta_sql, OBJECT);
336
+
337
+ if (!$yoast_metas) {
338
+
339
+ $rows_exist = false;
340
+
341
+ } else {
342
+
343
+ $values = "";
344
+
345
+ $psp_values = array();
346
+ $place_holders = array();
347
+ $psp_query = "INSERT INTO {$psp_post_seo_tbl} (platinumseo_id, meta_key, meta_value) VALUES ";
348
+
349
+ foreach ($yoast_metas as $yoast_meta) {
350
+
351
+ if($meta == "description" || $meta == "title") {
352
+
353
+ if($plugin == "yoast") {
354
+
355
+ $yoast_meta_value = "";
356
+ $yoast_meta_value = preg_replace('/%%[^%]+%%/',"", $yoast_meta->meta_value);
357
+ $yoast_meta_value = preg_replace('/\s+/', ' ', $yoast_meta_value);
358
+ } else if ($plugin == "rankmath") {
359
+
360
+ $yoast_meta_value = "";
361
+ $yoast_meta_value = preg_replace('/%[^%]+%/',"", $yoast_meta->meta_value);
362
+ $yoast_meta_value = preg_replace('/\s+/', ' ', $yoast_meta_value);
363
+
364
+ }
365
+ //$yoast_meta_value = preg_replace('/\'/', '&#039;', $yoast_meta_value);
366
+ //$yoast_meta_value = preg_replace('/\"/', '', $yoast_meta_value);
367
+
368
+ } else if($meta == "noindex") {
369
+
370
+ if( $yoast_meta->meta_value == 1) {
371
+ $yoast_meta_value = 'on';
372
+ } /***else {
373
+ $yoast_meta_value = 0;
374
+ } ***/
375
+
376
+ } else if($meta == "nofollow") {
377
+ if( $yoast_meta->meta_value == 1) {
378
+ $yoast_meta_value = 'on';
379
+ } /***else {
380
+ $yoast_meta_value = 0;
381
+ } ***/
382
+ } else if($meta == "focuskeywords") {
383
+ $yoast_meta_value = $yoast_meta->meta_value;
384
+ $yoast_meta_value = json_decode( $yoast_meta_value, true );
385
+ if(!$yoast_meta_value) {
386
+ $yoast_meta_value = implode( ', ', array_map( [ &$this, 'psp_get_focus_keyword' ], $yoast_meta_value ) );
387
+ //$yoast_meta_value = implode( ', ', array_map( array( &$this, 'psp_get_focus_keyword' ), $yoast_meta_value ) );
388
+ }
389
+ } else if($meta == "robots") {
390
+
391
+ //$yoast_meta_value = $yoast_meta->meta_value;
392
+
393
+ if ($plugin == "rankmath" || $plugin == "psp") {
394
+
395
+ if (strpos($yoast_meta->meta_value, 'noindex') !== FALSE) {
396
+ $place_holders[] = "(%d, %s, %s)";
397
+ array_push($psp_values, $yoast_meta->post_id, '_techblissonline_psp_noindex', 'on');
398
+ } /***else {
399
+ $place_holders[] = "(%d, %s, %s)";
400
+ array_push($psp_values, $yoast_meta->post_id, '_techblissonline_psp_noindex', 0);
401
+ }***/
402
+ if (strpos($yoast_meta->meta_value, 'nofollow') !== FALSE) {
403
+ $place_holders[] = "(%d, %s, %s)";
404
+ array_push($psp_values, $yoast_meta->post_id, '_techblissonline_psp_nofollow', 'on');
405
+ } /***else {
406
+ $place_holders[] = "(%d, %s, %s)";
407
+ array_push($psp_values, $yoast_meta->post_id, '_techblissonline_psp_nofollow', 0);
408
+ }***/
409
+
410
+ }
411
+
412
+ if (strpos($yoast_meta->meta_value, 'noarchive') !== FALSE) {
413
+ $place_holders[] = "(%d, %s, %s)";
414
+ array_push($psp_values, $yoast_meta->post_id, '_techblissonline_psp_noarchive', 'on');
415
+ }
416
+ if (strpos($yoast_meta->meta_value, 'nosnippet') !== FALSE) {
417
+ $place_holders[] = "(%d, %s, %s)";
418
+ array_push($psp_values, $yoast_meta->post_id, '_techblissonline_psp_nosnippet', 'on');
419
+ }
420
+ if (strpos($yoast_meta->meta_value, 'noimageindex') !== FALSE) {
421
+ $place_holders[] = "(%d, %s, %s)";
422
+ array_push($psp_values, $yoast_meta->post_id, '_techblissonline_psp_noimageidx', 'on');
423
+ }
424
+ } else if($meta == "advrobots") {
425
+ //rankmath adv robots
426
+ $rm_robots_arr = unserialize($yoast_meta->meta_value);
427
+ $place_holders[] = "(%d, %s, %s)";
428
+ array_push($psp_values, $yoast_meta->post_id, '_techblissonline_psp_maxsnippet', $rm_robots_arr["max-snippet"]);
429
+ $place_holders[] = "(%d, %s, %s)";
430
+ array_push($psp_values, $yoast_meta->post_id, '_techblissonline_psp_maxvideo', $rm_robots_arr["max-video-preview"]);
431
+ $place_holders[] = "(%d, %s, %s)";
432
+ array_push($psp_values, $yoast_meta->post_id, '_techblissonline_psp_maximage', $rm_robots_arr["max-image-preview"]);
433
+ }
434
+
435
+ if(!empty($yoast_meta_value)) {
436
+
437
+ //$values =$values. "($yoast_meta->post_id, '$psp_meta', '$yoast_meta_value'),";
438
+
439
+ $place_holders[] = "(%d, %s, %s)";
440
+ array_push($psp_values, $yoast_meta->post_id, $psp_meta, $yoast_meta_value);
441
+
442
+ }
443
+
444
+ }
445
+ //$values = rtrim($values, ",");
446
+ //error_log($values);
447
+ $last_post_id = $yoast_meta->post_id;
448
+
449
+ if ($psp_values) {
450
+ $psp_query .= implode(', ', $place_holders);
451
+ $wpdb->query( $wpdb->prepare("$psp_query", $psp_values));
452
+ }
453
+
454
+ if ($values) {
455
+
456
+ //$wpdb->query("INSERT INTO {$psp_post_seo_tbl} (post_id, meta_key, meta_value) VALUES {$values}");
457
+
458
+ }
459
+ }
460
+ }
461
+
462
+ //}
463
+
464
+ return '';
465
+ }
466
+
467
+ private function psp_get_focus_keyword( $focus ) {
468
+ return $focus['keyword'];
469
+ }
470
+
471
+ private function import_yoast_new_post_meta($meta = "", $plugin = "") {
472
+
473
+ //error_log("import_yoast_new_post_meta");
474
+
475
+ global $wpdb;
476
+
477
+ $psp_post_meta_tbl = $wpdb->prefix . "yoast_indexable";
478
+ $psp_post_seo_tbl = $wpdb->prefix . "platinumseometa";
479
+
480
+ $wpdb->yoast_indexable = $psp_post_meta_tbl;
481
+
482
+ if($wpdb->get_var("show tables like '$psp_post_meta_tbl'") != $psp_post_meta_tbl) {
483
+ $import_error = esc_html('Yoast Indexable does not exist.', 'platinum-seo-pack');
484
+ return $import_error;
485
+ }
486
+
487
+ $max_metas_per_page = 100;
488
+ $meta_to_import = "";
489
+
490
+ if($plugin == "yoastnew") {
491
+
492
+ //$psp_post_meta_tbl = $wpdb->prefix . "yoast_indexable";
493
+
494
+ if($meta == "title") {
495
+
496
+ $meta_to_import = "title";
497
+ $psp_meta = "_techblissonline_psp_title";
498
+
499
+ } else if ($meta == "description") {
500
+
501
+ $meta_to_import = "description";
502
+ $psp_meta = "_techblissonline_psp_description";
503
+
504
+ } else if ($meta == "robots") {
505
+
506
+ //$meta_to_import = "is_robots_noindex";
507
+ //$psp_meta = "_techblissonline_psp_advmeta";
508
+
509
+ }
510
+ }
511
+
512
+ $counter = 0;
513
+
514
+ $last_post_id = 0;
515
+ $rows_exist = true;
516
+
517
+ While ($rows_exist) {
518
+
519
+ //$yoast_meta_sql = $wpdb->prepare("Select object_id, {$meta_to_import} as meta_value, object_type from {$psp_post_meta_tbl} WHERE object_id > %d and object_type = %s and object_id not in (Select platinumseo_id from {$psp_post_seo_tbl} WHERE platinumseo_id > %d and meta_key = %s) ORDER by object_id LIMIT %d", $last_post_id, 'post', $last_post_id, $psp_meta, $max_metas_per_page);
520
+
521
+ if ($meta == "robots") {
522
+
523
+ $yoast_meta_sql = $wpdb->prepare("Select object_id, is_robots_noindex as noindex, is_robots_nofollow as nofollow, is_robots_noarchive as noarchive, is_robots_nosnippet as nosnippet, is_robots_noimageindex as noimageidx from {$psp_post_meta_tbl} WHERE object_id > %d and object_type = %s and object_id not in (Select platinumseo_id from {$psp_post_seo_tbl} WHERE platinumseo_id > %d and meta_key in (%s, %s, %s, %s, %s)) ORDER by object_id LIMIT %d", $last_post_id, 'post', $last_post_id, '_techblissonline_psp_noindex', '_techblissonline_psp_nofollow','_techblissonline_psp_noarchive', '_techblissonline_psp_nosnippet', '_techblissonline_psp_noimageidx', $max_metas_per_page);
524
+
525
+ } else {
526
+ $yoast_meta_sql = $wpdb->prepare("Select object_id, {$meta_to_import} as meta_value, object_type from {$psp_post_meta_tbl} WHERE object_id > %d and object_type = %s and object_id not in (Select platinumseo_id from {$psp_post_seo_tbl} WHERE platinumseo_id > %d and meta_key = %s) ORDER by object_id LIMIT %d", $last_post_id, 'post', $last_post_id, $psp_meta, $max_metas_per_page);
527
+ }
528
+
529
+ $yoast_metas = $wpdb->get_results($yoast_meta_sql, OBJECT);
530
+
531
+ if (!$yoast_metas) {
532
+
533
+ $rows_exist = false;
534
+
535
+ } else {
536
+
537
+ $values = "";
538
+
539
+ $psp_values = array();
540
+ $place_holders = array();
541
+ $psp_query = "INSERT INTO {$psp_post_seo_tbl} (platinumseo_id, meta_key, meta_value) VALUES ";
542
+
543
+ foreach ($yoast_metas as $yoast_meta) {
544
+
545
+ if($meta == "description" || $meta == "title") {
546
+
547
+ $yoast_meta_value = "";
548
+ $yoast_meta_value = preg_replace('/%%[^%]+%%/',"", $yoast_meta->meta_value);
549
+ $yoast_meta_value = preg_replace('/\s+/', ' ', $yoast_meta_value);
550
+
551
+ } else if ($meta == "robots") {
552
+
553
+ if ($yoast_meta->noindex) {
554
+ //error_log("noindex ".$yoast_meta->noindex);
555
+ $place_holders[] = "(%d, %s, %s)";
556
+ array_push($psp_values, $yoast_meta->object_id, '_techblissonline_psp_noindex', 'on');
557
+
558
+ }
559
+
560
+ if ($yoast_meta->nofollow) {
561
+
562
+ $place_holders[] = "(%d, %s, %s)";
563
+ array_push($psp_values, $yoast_meta->object_id, '_techblissonline_psp_nofollow', 'on');
564
+
565
+ }
566
+
567
+ if ($yoast_meta->noarchive) {
568
+
569
+ $place_holders[] = "(%d, %s, %s)";
570
+ array_push($psp_values, $yoast_meta->object_id, '_techblissonline_psp_noarchive', 'on');
571
+
572
+ }
573
+
574
+ if ($yoast_meta->nosnippet) {
575
+
576
+ $place_holders[] = "(%d, %s, %s)";
577
+ array_push($psp_values, $yoast_meta->object_id, '_techblissonline_psp_nosnippet', 'on');
578
+
579
+ }
580
+
581
+ if ($yoast_meta->noimageidx) {
582
+
583
+ $place_holders[] = "(%d, %s, %s)";
584
+ array_push($psp_values, $yoast_meta->object_id, '_techblissonline_psp_noimageidx', 'on');
585
+
586
+ }
587
+
588
+ }
589
+
590
+ if(!empty($yoast_meta_value)) {
591
+
592
+ //$values =$values. "($yoast_meta->post_id, '$psp_meta', '$yoast_meta_value'),";
593
+
594
+ $place_holders[] = "(%d, %s, %s)";
595
+ array_push($psp_values, $yoast_meta->object_id, $psp_meta, $yoast_meta_value);
596
+
597
+ }
598
+ }
599
+
600
+ $last_post_id = $yoast_meta->object_id;
601
+
602
+ if ($psp_values) {
603
+ $psp_query .= implode(', ', $place_holders);
604
+ $wpdb->query( $wpdb->prepare("$psp_query", $psp_values));
605
+ }
606
+
607
+ }
608
+
609
+ }
610
+
611
+ return '';
612
+
613
+ }
614
+
615
+ private function import_yoast_post_meta_others($plugin = "") {
616
+
617
+ global $wpdb;
618
+
619
+ $psp_post_meta_tbl = $wpdb->prefix . "postmeta";
620
+ $psp_post_seo_tbl = $wpdb->prefix . "platinumseometa";
621
+ $yoast_post_seo_tbl = $wpdb->prefix . "tempmeta";
622
+
623
+ if($plugin == "yoast") {
624
+
625
+ //error_log("yoast");
626
+
627
+ $yoast_post_meta = array(
628
+ //'_techblissonline_psp_title' => 'title',
629
+ //'_techblissonline_psp_description' => 'description',
630
+ '_techblissonline_psp_keywords' => '_yoast_wpseo_focuskw',
631
+ '_techblissonline_psp_canonical_url' => '_yoast_wpseo_canonical',
632
+ '_techblissonline_psp_fb_title' => '_yoast_wpseo_opengraph-title',
633
+ '_techblissonline_psp_fb_description' => '_yoast_wpseo_opengraph-description',
634
+ '_techblissonline_psp_fb_image' => '_yoast_wpseo_opengraph-image',
635
+ '_techblissonline_psp_tw_title' => '_yoast_wpseo_twitter-title',
636
+ '_techblissonline_psp_tw_description' => '_yoast_wpseo_twitter-description',
637
+ '_techblissonline_psp_tw_image' => '_yoast_wpseo_twitter-image',
638
+ '_techblissonline_psp_preferred_term' => '_yoast_wpseo_primary_category',
639
+ '_techblissonline_psp_bc_title' => '_yoast_wpseo_bctitle',
640
+
641
+ );
642
+
643
+ };
644
+
645
+ if($plugin == "yoastnew") {
646
+
647
+ $psp_post_meta_tbl = $wpdb->prefix . "yoast_indexable"; //for Yoast 14.0+
648
+ $yoast_primary_term_rbl = $wpdb->prefix . "yoast_primary_term";
649
+ $wpdb->yoast_indexable = $psp_post_meta_tbl;
650
+ $wpdb->yoast_primary_term = $yoast_primary_term_rbl;
651
+
652
+ if($wpdb->get_var("show tables like '$psp_post_meta_tbl'") != $psp_post_meta_tbl) {
653
+ $import_error = esc_html('Yoast Indexable does not exist.', 'platinum-seo-pack');
654
+ return $import_error;
655
+ }
656
+
657
+ $yoast_post_meta = array(
658
+ //'_techblissonline_psp_title' => 'title',
659
+ //'_techblissonline_psp_description' => 'description',
660
+ '_techblissonline_psp_preferred_term' => 'term_id',
661
+ '_techblissonline_psp_bc_title' => 'breadcrumb_title',
662
+ '_techblissonline_psp_keywords' => 'primary_focus_keyword',
663
+ '_techblissonline_psp_canonical_url' => 'canonical',
664
+ '_techblissonline_psp_fb_title' => 'open_graph_title',
665
+ '_techblissonline_psp_fb_description' => 'open_graph_description',
666
+ '_techblissonline_psp_fb_image' => 'open_graph_image',
667
+ '_techblissonline_psp_tw_title' => 'twitter_title',
668
+ '_techblissonline_psp_tw_description' => 'twitter_description',
669
+ '_techblissonline_psp_tw_image' => 'twitter_image',
670
+
671
+ );
672
+
673
+ };
674
+
675
+ if($plugin == "rankmath") {
676
+
677
+ $yoast_post_meta = array(
678
+
679
+ '_techblissonline_psp_keywords' => 'rank_math_focus_keyword',
680
+ '_techblissonline_psp_canonical_url' => 'rank_math_canonical_url',
681
+ '_techblissonline_psp_fb_title' => 'rank_math_facebook_title',
682
+ '_techblissonline_psp_fb_description' => 'rank_math_facebook_description',
683
+ '_techblissonline_psp_fb_image' => 'rank_math_facebook_image',
684
+ '_techblissonline_psp_tw_title' => 'rank_math_twitter_title',
685
+ '_techblissonline_psp_tw_description' => 'rank_math_twitter_description',
686
+ '_techblissonline_psp_tw_image' => 'rank_math_twitter_image',
687
+ '_techblissonline_psp_preferred_term' => 'rank_math_primary_category',
688
+ '_techblissonline_psp_bc_title' => 'rank_math_breadcrumb_title',
689
+ );
690
+
691
+ };
692
+
693
+ if($plugin == "psp") {
694
+
695
+ $yoast_post_meta = array(
696
+ '_techblissonline_psp_title' => '_techblissonline_psp_title',
697
+ '_techblissonline_psp_description' => '_techblissonline_psp_description',
698
+ '_techblissonline_psp_titleformat' => '_techblissonline_psp_titleformat',
699
+ '_techblissonline_psp_noindex' => '_techblissonline_psp_noindex',
700
+ '_techblissonline_psp_nofollow' => '_techblissonline_psp_nofollow',
701
+ '_techblissonline_psp_noarchive' => '_techblissonline_psp_noarchive',
702
+ '_techblissonline_psp_nosnippet' => '_techblissonline_psp_nosnippet',
703
+ '_techblissonline_psp_noimageidx' => '_techblissonline_psp_noimageidx',
704
+ '_techblissonline_psp_maxvideo' => '_techblissonline_psp_maxvideo',
705
+ '_techblissonline_psp_maximage' => '_techblissonline_psp_maximage',
706
+ '_techblissonline_psp_schema_string' => '_techblissonline_psp_schema_string',
707
+ '_techblissonline_psp_redirect_to_url' => '_techblissonline_psp_redirect_to_url',
708
+ '_techblissonline_psp_redirect_status_code' => '_techblissonline_psp_redirect_status_code',
709
+ '_techblissonline_psp_preferred_taxonomy' => '_techblissonline_psp_preferred_taxonomy',
710
+ '_techblissonline_psp_disable_flags' => '_techblissonline_psp_disable_flags',
711
+ '_techblissonline_psp_fb_og_type' => '_techblissonline_psp_fb_og_type',
712
+ '_techblissonline_psp_tw_card_type' => '_techblissonline_psp_tw_card_type',
713
+ '_techblissonline_psp_keywords' => '_techblissonline_psp_keywords',
714
+ '_techblissonline_psp_canonical_url' => '_techblissonline_psp_canonical_url',
715
+ '_techblissonline_psp_fb_title' => '_techblissonline_psp_fb_title',
716
+ '_techblissonline_psp_fb_description' => '_techblissonline_psp_fb_description',
717
+ '_techblissonline_psp_fb_image' => '_techblissonline_psp_fb_image',
718
+ '_techblissonline_psp_tw_title' => '_techblissonline_psp_tw_title',
719
+ '_techblissonline_psp_tw_description' => '_techblissonline_psp_tw_description',
720
+ '_techblissonline_psp_tw_image' => '_techblissonline_psp_tw_image',
721
+ '_techblissonline_psp_noarchive' => 'psp_noarchive',
722
+ '_techblissonline_psp_nosnippet' => 'psp_nosnippet',
723
+ '_techblissonline_psp_title' => 'title',
724
+ '_techblissonline_psp_description' => 'description',
725
+ '_techblissonline_psp_keywords' => 'keywords',
726
+ );
727
+
728
+ };
729
+
730
+ $counter = 1;
731
+
732
+ foreach($yoast_post_meta as $key => $value) {
733
+
734
+ //$loops = 0;
735
+ //While ($loops < 100) {
736
+ //
737
+ $counter = $counter + 1;
738
+
739
+ $last_id = 0;
740
+ $max_rows_to_insert = 1000;
741
+ $rows_exist = true;
742
+
743
+ //$yoast_sql_$counter = $wpdb->prepare("Insert into {$yoast_post_seo_tbl} (post_id, meta_key, meta_value) Select post_id, %s, meta_value from {$psp_post_meta_tbl} where post_id > %d and meta_key = %s order by post_id Limit 1000", $key, $last_id, $value);
744
+
745
+ While ($rows_exist) {
746
+
747
+ //$yoast_sql_{$counter} = $wpdb->prepare("Insert into {$yoast_post_seo_tbl} (post_id, meta_key, meta_value) Select post_id, %s, meta_value from {$psp_post_meta_tbl} where meta_key = %s", $key, $value);
748
+
749
+ $rows_inserted = 0;
750
+ //error_log("last post id ".$last_id);
751
+
752
+ //$yoast_sql_{$counter} = $wpdb->prepare("Insert into {$yoast_post_seo_tbl} (post_id, meta_key, meta_value) Select post_id, %s, meta_value from {$psp_post_meta_tbl} where post_id > %d and meta_key = %s ORDER by post_id LIMIT %d", $key, $last_id, $value, $max_rows_to_insert);
753
+
754
+ if($plugin == "yoastnew") {
755
+
756
+ if ($key == '_techblissonline_psp_preferred_term') {
757
+
758
+ $yoast_sql_{$counter} = $wpdb->prepare("Insert into {$yoast_post_seo_tbl} (post_id, meta_key, meta_value) Select post_id, %s, term_id from {$yoast_primary_term_rbl} WHERE post_id > %d and post_id not in (Select platinumseo_id from {$psp_post_seo_tbl} WHERE platinumseo_id > %d and meta_key = %s) ORDER by post_id LIMIT %d", $key, $last_id, $last_id, $key, $max_rows_to_insert);
759
+
760
+ } else if($key == '_techblissonline_psp_fb_image') {
761
+
762
+ $yoast_sql_{$counter} = $wpdb->prepare("Insert into {$yoast_post_seo_tbl} (post_id, meta_key, meta_value) Select object_id, %s, {$value} from {$psp_post_meta_tbl} WHERE {$value} IS NOT NULL and open_graph_image_source = 'set-by-user' and object_id > %d and object_type = %s and object_id not in (Select platinumseo_id from {$psp_post_seo_tbl} WHERE platinumseo_id > %d and meta_key = %s) ORDER by object_id LIMIT %d", $key, $last_id, 'post', $last_id, $key, $max_rows_to_insert);
763
+
764
+ } else if($key == '_techblissonline_psp_tw_image') {
765
+
766
+ $yoast_sql_{$counter} = $wpdb->prepare("Insert into {$yoast_post_seo_tbl} (post_id, meta_key, meta_value) Select object_id, %s, {$value} from {$psp_post_meta_tbl} WHERE {$value} IS NOT NULL and twitter_image_source = 'set-by-user' and object_id > %d and object_type = %s and object_id not in (Select platinumseo_id from {$psp_post_seo_tbl} WHERE platinumseo_id > %d and meta_key = %s) ORDER by object_id LIMIT %d", $key, $last_id, 'post', $last_id, $key, $max_rows_to_insert);
767
+
768
+ } else {
769
+ $yoast_sql_{$counter} = $wpdb->prepare("Insert into {$yoast_post_seo_tbl} (post_id, meta_key, meta_value) Select object_id, %s, {$value} from {$psp_post_meta_tbl} WHERE {$value} IS NOT NULL and object_id > %d and object_type = %s and object_id not in (Select platinumseo_id from {$psp_post_seo_tbl} WHERE platinumseo_id > %d and meta_key = %s) ORDER by object_id LIMIT %d", $key, $last_id, 'post', $last_id, $key, $max_rows_to_insert);
770
+ }
771
+
772
+ } else {
773
+
774
+ if($plugin == "psp") {
775
+ $yoast_sql_{$counter} = $wpdb->prepare("Insert into {$yoast_post_seo_tbl} (post_id, meta_key, meta_value) Select post_id, %s, meta_value from {$psp_post_meta_tbl} WHERE (meta_value IS NOT NULL AND meta_value != '' AND meta_value != '0') and post_id > %d and meta_key = %s and post_id not in (Select platinumseo_id from {$psp_post_seo_tbl} WHERE platinumseo_id > %d and meta_key = %s) ORDER by post_id LIMIT %d", $key, $last_id, $value, $last_id, $key, $max_rows_to_insert);
776
+ } else {
777
+ $yoast_sql_{$counter} = $wpdb->prepare("Insert into {$yoast_post_seo_tbl} (post_id, meta_key, meta_value) Select post_id, %s, meta_value from {$psp_post_meta_tbl} WHERE (meta_value IS NOT NULL AND meta_value != '') and post_id > %d and meta_key = %s and post_id not in (Select platinumseo_id from {$psp_post_seo_tbl} WHERE platinumseo_id > %d and meta_key = %s) ORDER by post_id LIMIT %d", $key, $last_id, $value, $last_id, $key, $max_rows_to_insert);
778
+ }
779
+ //$yoast_sql_{$counter} = $wpdb->prepare("Insert into {$yoast_post_seo_tbl} (post_id, meta_key, meta_value) Select post_id, %s, meta_value from {$psp_post_meta_tbl} WHERE post_id > %d and meta_key = %s and post_id not in (Select platinumseo_id from {$psp_post_seo_tbl} WHERE meta_key = %s) ORDER by post_id LIMIT %d", $key, $last_id, $value, $key, $max_rows_to_insert);
780
+ }
781
+
782
+ //error_log($yoast_sql_{$counter});
783
+
784
+ $rows_inserted = $wpdb->query($yoast_sql_{$counter});
785
+
786
+ //error_log("rows_inserted ".$rows_inserted);
787
+
788
+ if (!$rows_inserted) {
789
+ $rows_exist = false;
790
+ } else {
791
+
792
+ //$max_post_id_query = $wpdb->prepare("SELECT max(post_id) from {$yoast_post_seo_tbl}");
793
+
794
+ $max_post_id_query = "SELECT max(post_id) from {$yoast_post_seo_tbl}";
795
+
796
+ $last_id = $wpdb->get_var($max_post_id_query);
797
+ //error_log("last post id ".$last_id);
798
+
799
+ //$yoast_to_psp_sql = $wpdb->prepare("Insert into {$psp_post_seo_tbl} (post_id, meta_key, meta_value) Select post_id, meta_key, meta_value from {$yoast_post_seo_tbl}");
800
+
801
+ $yoast_to_psp_sql = "Insert into {$psp_post_seo_tbl} (platinumseo_id, meta_key, meta_value) Select post_id, meta_key, meta_value from {$yoast_post_seo_tbl}";
802
+
803
+ $wpdb->query($yoast_to_psp_sql);
804
+
805
+ $wpdb->query("TRUNCATE TABLE {$yoast_post_seo_tbl}");
806
+
807
+ }
808
+
809
+ }
810
+
811
+ //$loops = $loops + 1;
812
+
813
+ // } //loops
814
+
815
+ //$wpdb->query("TRUNCATE TABLE {$yoast_post_seo_tbl}");
816
+
817
+ }
818
+
819
+ return "";
820
+
821
+ }
822
+
823
+ private function import_yoast_term_meta() {
824
+
825
+ $yoast_taxonomy_meta = get_option( 'wpseo_taxonomy_meta' );
826
+
827
+ $import_error = "";
828
+
829
+ if ( empty( $yoast_taxonomy_meta ) ) {
830
+ //$import_error = "No Category or taxonomy terms to import";
831
+ $import_error = esc_html('No Category or taxonomy terms to import', 'platinum-seo-pack');
832
+ return $import_error;
833
+ }
834
+
835
+
836
+ //$psp_term_meta_seo_keys = array('_techblissonline_psp_title', '_techblissonline_psp_description', '_techblissonline_psp_keywords', '_techblissonline_psp_noindex', '_techblissonline_psp_canonical_url', '_techblissonline_psp_bctitle' );
837
+
838
+ $psp_term_meta_seo_keys = array('wpseo_title', 'wpseo_desc', 'wpseo_metadesc', 'wpseo_focuskw', 'wpseo_noindex', 'wpseo_canonical', 'wpseo_bctitle' );
839
+
840
+ //$psp_term_meta_social_keys = array('_techblissonline_psp_fb_title', '_techblissonline_psp_fb_description', '_techblissonline_psp_fb_image', '_techblissonline_psp_tw_title', '_techblissonline_psp_tw_description', '_techblissonline_psp_tw_image' );
841
+
842
+ $psp_term_meta_social_keys = array('wpseo_opengraph-title', 'wpseo_opengraph-description', 'wpseo_opengraph-image', 'wpseo_twitter-title', 'wpseo_twitter-description', 'wpseo_twitter-image' );
843
+
844
+ $yoast_term_meta = array(
845
+ 'wpseo_title' => 'title',
846
+ 'wpseo_desc' => 'description',
847
+ 'wpseo_metadesc' => 'description',
848
+ 'wpseo_focuskw' => 'keywords',
849
+ 'wpseo_noindex' => 'noindex',
850
+ 'wpseo_canonical' => 'canonical_url',
851
+ 'wpseo_opengraph-title' => 'fb_title',
852
+ 'wpseo_opengraph-description' => 'fb_description',
853
+ 'wpseo_opengraph-image' => 'fb_image',
854
+ 'wpseo_twitter-title' => 'tw_title',
855
+ 'wpseo_twitter-description' => 'tw_description',
856
+ 'wpseo_twitter-image' => 'tw_image',
857
+ 'wpseo_bctitle' => 'bc_title',
858
+ );
859
+
860
+ foreach ( $yoast_taxonomy_meta as $taxonomy => $terms) {
861
+
862
+ //error_log($taxonomy);
863
+
864
+ foreach ( $terms as $term_id => $yoast_term_data ) {
865
+
866
+ if ($taxonomy == "category") {
867
+ $taxname = "category";
868
+ } else {
869
+ $taxname = "taxonomy";
870
+ }
871
+ //error_log($taxname);
872
+ //error_log($term_id);
873
+ /***
874
+ if (get_option( "psp_{$taxname}_seo_metas_{$term_id}")) {
875
+ $import_error = "A few category or taxonomy terms have already been imported and only the remaining, if any, have been imported.";
876
+ //continue;
877
+ }
878
+ ***/
879
+ if (get_term_meta( $term_id, "psp_{$taxname}_seo_metas_{$term_id}")) {
880
+ //$import_error = "A few category or taxonomy terms have already been imported and only the remaining, if any, have been imported.";
881
+ $import_error = esc_html('A few category terms have already been imported and only the remaining, if any, have been imported.', 'platinum-seo-pack');
882
+ continue;
883
+ }
884
+
885
+
886
+ foreach($yoast_term_data as $key => $term_value) {
887
+
888
+ if (in_array($key, $psp_term_meta_seo_keys)) {
889
+
890
+ //$psp_term_seo_meta[$key] = $yoast_term_data[$value];
891
+
892
+ if($key == 'wpseo_noindex') {
893
+ if ($term_value == "noindex") {
894
+ $psp_term_seo_meta[$yoast_term_meta[$key]] = 'on';
895
+ }
896
+ } else if ($key == 'wpseo_title') {
897
+ $yoast_title = preg_replace('/%%[^%]+%%/', '', $term_value);
898
+ $yoast_title = preg_replace('/Archives/',"", $yoast_title);
899
+ $yoast_title = preg_replace('/\s+/', ' ', $yoast_title);
900
+ $psp_term_seo_meta[$yoast_term_meta[$key]] = $yoast_title;
901
+ } else if ($key == 'wpseo_desc') {
902
+ $yoast_description = preg_replace('/%%[^%]+%%/', '', $term_value);
903
+ $yoast_description = preg_replace('/\s+/', ' ', $yoast_description);
904
+ $psp_term_seo_meta[$yoast_term_meta[$key]] = $yoast_description;
905
+ } else {
906
+ $psp_term_seo_meta[$yoast_term_meta[$key]] = $term_value;
907
+ }
908
+
909
+
910
+ } else if (in_array($key, $psp_term_meta_social_keys)) {
911
+
912
+ $psp_term_social_meta[$yoast_term_meta[$key]] = $term_value;
913
+ $psp_term_social_meta[$yoast_term_meta[$key]] = $term_value;
914
+ /***
915
+ if ($key == "_techblissonline_psp_tw_images") {
916
+
917
+ $psp_tw_image = "";
918
+ $psp_tw_image = $yoast_term_data[$value];
919
+ if($psp_tw_image) {
920
+ $psp_term_social_meta[$key] = array("tw_image" => $psp_tw_image);
921
+ }
922
+
923
+ } else {
924
+ $psp_term_social_meta[$key] = $yoast_term_data[$value];
925
+ }
926
+ ***/
927
+ }
928
+
929
+ }
930
+
931
+ $psp_tax_seo_metas = "psp_".$taxname."_seo_metas_".$term_id;
932
+ $psp_tax_social_metas = "psp_".$taxname."_social_metas_".$term_id;
933
+
934
+
935
+ //update_option( $psp_tax_seo_metas, $psp_term_seo_meta, false );
936
+ //update_option( $psp_tax_social_metas, $psp_term_social_meta, false );
937
+ update_term_meta($term_id, $psp_tax_seo_metas, $psp_term_seo_meta);
938
+ update_term_meta($term_id, $psp_tax_social_metas, $psp_term_social_meta);
939
+
940
+
941
+
942
+ //error_log("seo meta key ".$psp_tax_seo_metas);
943
+ //error_log("seo meta value ".print_r($psp_term_seo_meta, true));
944
+
945
+ //error_log("social meta key ".$psp_tax_social_metas);
946
+ //error_log("social meta value ".print_r($psp_term_social_meta, true));
947
+
948
+
949
+
950
+ }
951
+ }
952
+
953
+ return $import_error;
954
+ }
955
+
956
+ private function import_rm_term_meta() {
957
+
958
+ $rm_term_data_arr = array();
959
+
960
+ $rm_robots_arr = array();
961
+ $rm_robots = "";
962
+
963
+ $import_error = "";
964
+
965
+ //$term_query = new WP_Term_Query();
966
+
967
+ //error_log("import_rm_term_meta");
968
+
969
+ $terms = get_terms();
970
+
971
+
972
+
973
+ $rm_term_meta = array(
974
+ 'rank_math_title' => 'title',
975
+ 'rank_math_description' => 'description',
976
+ 'rank_math_focus_keyword' => 'keywords',
977
+ 'rank_math_robots' => 'robots',
978
+ 'rank_math_canonical_url' => 'canonical_url',
979
+ 'rank_math_facebook_title' => 'fb_title',
980
+ 'rank_math_facebook_description' => 'fb_description',
981
+ 'rank_math_facebook_image' => 'fb_image',
982
+ 'rank_math_twitter_title' => 'tw_title',
983
+ 'rank_math_twitter_description' => 'tw_description',
984
+ 'rank_math_twitter_image' => 'tw_image',
985
+ 'rank_math_breadcrumb_title' => 'bc_title',
986
+ );
987
+
988
+ $psp_term_meta_seo_keys = array('rank_math_title', 'rank_math_description', 'rank_math_focus_keyword', 'rank_math_robots', 'rank_math_canonical_url', 'rank_math_breadcrumb_title' );
989
+
990
+ $psp_term_meta_social_keys = array('rank_math_facebook_title', 'rank_math_facebook_description', 'rank_math_facebook_image', 'rank_math_twitter_title', 'rank_math_twitter_description', 'rank_math_twitter_image' );
991
+
992
+ foreach ( $terms as $term ) {
993
+
994
+ //error_log("term id ".$term->term_id);
995
+ $term_id = $term->term_id;
996
+
997
+ if ($term->taxonomy = "category") {
998
+ $taxname = "category";
999
+ } else {
1000
+ $taxname = "taxonomy";
1001
+ }
1002
+
1003
+ $rm_term_data_arr = get_term_meta($term_id);
1004
+
1005
+ //error_log(print_r($rm_term_data_arr, true));
1006
+
1007
+ if(!$rm_term_data_arr) continue;
1008
+ /***
1009
+ if (get_option( "psp_{$taxname}_seo_metas_{$term_id}")) {
1010
+ $import_error = "A few category or taxonomy terms have already been imported and only the remaining, if any, have been imported now.";
1011
+ continue;
1012
+ }
1013
+ ***/
1014
+ if (get_term_meta( $term_id, "psp_{$taxname}_seo_metas_{$term_id}")) {
1015
+ //$import_error = "A few category or taxonomy terms have already been imported and only the remaining, if any, have been imported.";
1016
+ $import_error = esc_html('A few category terms have already been imported and only the remaining, if any, have been imported.', 'platinum-seo-pack');
1017
+ continue;
1018
+ }
1019
+
1020
+ foreach($rm_term_data_arr as $key => $value) {
1021
+
1022
+ $term_value = $value[0];
1023
+
1024
+ //error_log($key);
1025
+
1026
+ if (in_array($key, $psp_term_meta_seo_keys)) {
1027
+
1028
+ if($key == 'rank_math_robots') {
1029
+
1030
+ $rm_robots_arr = unserialize($term_value);
1031
+ $rm_robots = implode(", ", $rm_robots_arr);
1032
+
1033
+ if (strpos($rm_robots, 'noindex') !== FALSE) {
1034
+ $psp_term_seo_meta['noindex'] = 'on';
1035
+ }
1036
+ if (strpos($rm_robots, 'nofollow') !== FALSE) {
1037
+ $psp_term_seo_meta['nofollow'] = 'on';
1038
+ }
1039
+ if (strpos($rm_robots, 'noarchive') !== FALSE) {
1040
+ $psp_term_seo_meta['noarchive'] = 'on';
1041
+ }
1042
+ if (strpos($rm_robots, 'nosnippet') !== FALSE) {
1043
+ $psp_term_seo_meta['nosnippet'] = 'on';
1044
+ }
1045
+ if (strpos($rm_robots, 'noimageindex') !== FALSE) {
1046
+ $psp_term_seo_meta['noimageindex'] = 'on';
1047
+ }
1048
+ } else if ($key == 'rank_math_advanced_robots') {
1049
+
1050
+ $rm_adv_robots_arr = unserialize($term_value);
1051
+ if($rm_adv_robots_ar["max-snippet"]) {
1052
+ $psp_term_seo_meta['maxsnippet'] = $rm_adv_robots_ar["max-snippet"];
1053
+ }
1054
+ if($rm_adv_robots_ar["max-video-preview"]) {
1055
+ $psp_term_seo_meta['maxvideo'] = $rm_adv_robots_ar["max-video-preview"];
1056
+ }
1057
+ if($rm_adv_robots_ar["max-image-preview"]) {
1058
+ $psp_term_seo_meta['maximage'] = $rm_adv_robots_ar["max-image-preview"];
1059
+ }
1060
+
1061
+ } else if ($key == 'rank_math_title') {
1062
+ $rm_title = preg_replace('/%[^%]+%/', '', $term_value);
1063
+ $rm_title = preg_replace('/Archives/',"", $rm_title);
1064
+ $rm_title = preg_replace('/\s+/', ' ', $rm_title);
1065
+ $psp_term_seo_meta[$rm_term_meta[$key]] = $rm_title;
1066
+ } else if ($key == 'rank_math_description') {
1067
+ $rank_math_description = preg_replace('/%[^%]+%/', '', $term_value);
1068
+ $rank_math_description = preg_replace('/\s+/', ' ', $rank_math_description);
1069
+ $psp_term_seo_meta[$rm_term_meta[$key]] = $rank_math_description;
1070
+ } else {
1071
+ $psp_term_seo_meta[$rm_term_meta[$key]] = $term_value;
1072
+ }
1073
+
1074
+
1075
+ } else if (in_array($key, $psp_term_meta_social_keys)) {
1076
+
1077
+ $psp_term_social_meta[$rm_term_meta[$key]] = $term_value;
1078
+ $psp_term_social_meta[$rm_term_meta[$key]] = $term_value;
1079
+
1080
+ }
1081
+
1082
+ }
1083
+
1084
+ $psp_tax_seo_metas = "psp_".$taxname."_seo_metas_".$term_id;
1085
+ $psp_tax_social_metas = "psp_".$taxname."_social_metas_".$term_id;
1086
+
1087
+ //update_option( $psp_tax_seo_metas, $psp_term_seo_meta, false );
1088
+ //update_option( $psp_tax_social_metas, $psp_term_social_meta, false );
1089
+ //migrating to term_meta table
1090
+ update_term_meta($term_id, $psp_tax_seo_metas, $psp_term_seo_meta);
1091
+ update_term_meta($term_id, $psp_tax_social_metas, $psp_term_social_meta);
1092
+
1093
+ //error_log("seo meta key ".$psp_tax_seo_metas);
1094
+ //error_log("seo meta value ".print_r($psp_term_seo_meta, true));
1095
+
1096
+ //error_log("social meta key ".$psp_tax_social_metas);
1097
+ //error_log("social meta value ".print_r($psp_term_social_meta, true));
1098
+
1099
+ }
1100
+
1101
+ return $import_error;
1102
+
1103
+ }
1104
+
1105
+ private function import_psp_term_meta() {
1106
+
1107
+ $terms = get_terms();
1108
+ $import_error = "";
1109
+
1110
+ foreach ( $terms as $term ) {
1111
+
1112
+ //error_log("term id ".$term->term_id);
1113
+ $term_id = $term->term_id;
1114
+ $psp_category_seo_data = array();
1115
+ $psp_category_social_data = array();
1116
+
1117
+ if ($term->taxonomy = "category") {
1118
+ $psp_category_seo_data = get_option( "psp_category_seo_metas_$term_id");
1119
+ $psp_category_social_data = get_option( "psp_category_social_metas_$term_id");
1120
+
1121
+ if(!$psp_category_seo_data && !$psp_category_social_data ) continue;
1122
+
1123
+ if (get_term_meta( $term_id, "psp_category_seo_metas_$term_id") && get_term_meta( $term_id, "psp_category_social_metas_$term_id")) {
1124
+ //$import_error = "A few category terms have already been imported and only the remaining, if any, have been imported.";
1125
+ $import_error = esc_html('A few taxonomy terms have already been imported and only the remaining, if any, have been imported.', 'platinum-seo-pack');
1126
+ continue;
1127
+ }
1128
+
1129
+ if ($psp_category_seo_data) {
1130
+ update_term_meta($term_id, "psp_category_seo_metas_$term_id", $psp_category_seo_data);
1131
+ }
1132
+
1133
+ if ($psp_category_social_data) {
1134
+ update_term_meta($term_id, "psp_category_social_metas_$term_id", $psp_category_social_data);
1135
+ }
1136
+ } else {
1137
+ $psp_category_seo_data = get_option( "psp_taxonomy_seo_metas_$term_id");
1138
+ $psp_category_social_data = get_option( "psp_taxonomy_social_metas_$term_id");
1139
+
1140
+ if(!$psp_category_seo_data && !$psp_category_social_data ) continue;
1141
+
1142
+ if (get_term_meta( $term_id, "psp_taxonomy_seo_metas_$term_id") && get_term_meta( $term_id, "psp_taxonomy_social_metas_$term_id")) {
1143
+ //$import_error = "A few taxonomy terms have already been imported and only the remaining, if any, have been imported.";
1144
+ $import_error = esc_html('A few taxonomy terms have already been imported and only the remaining, if any, have been imported.', 'platinum-seo-pack');
1145
+ continue;
1146
+ }
1147
+
1148
+ if ($psp_category_seo_data) {
1149
+ update_term_meta($term_id, "psp_taxonomy_seo_metas_$term_id", $psp_category_seo_data);
1150
+ }
1151
+
1152
+ if ($psp_category_social_data) {
1153
+ update_term_meta($term_id, "psp_taxonomy_social_metas_$term_id", $psp_category_social_data);
1154
+ }
1155
+ }
1156
+
1157
+
1158
+ }
1159
+
1160
+ return $import_error;
1161
+ }
1162
+
1163
+ private function import_yoastnew_term_meta($plugin = "") {
1164
+
1165
+ global $wpdb;
1166
+
1167
+ $psp_post_meta_tbl = $wpdb->prefix . "yoast_indexable"; //for Yoast 14.0+
1168
+ $wpdb->yoast_indexable = $psp_post_meta_tbl;
1169
+
1170
+ if($wpdb->get_var("show tables like '$psp_post_meta_tbl'") != $psp_post_meta_tbl) {
1171
+ $import_error = esc_html('Yoast Indexable does not exist.', 'platinum-seo-pack');
1172
+ return $import_error;
1173
+ }
1174
+
1175
+ $max_metas_per_page = 100;
1176
+ $last_id = 0;
1177
+ $term_id = 0;
1178
+ $rows_exist = true;
1179
+
1180
+ $import_error = "";
1181
+
1182
+ While ($rows_exist) {
1183
+
1184
+ $yoast_meta_sql = $wpdb->prepare("Select object_id, object_type, object_sub_type, title, description, breadcrumb_title, canonical, primary_focus_keyword, is_robots_noindex, is_robots_nofollow, is_robots_noarchive, is_robots_noimageindex, is_robots_nosnippet, twitter_title, twitter_description, twitter_image, twitter_image_source, open_graph_title, open_graph_description, open_graph_image, open_graph_image_source from {$psp_post_meta_tbl} WHERE object_id > %d and object_type = %s ORDER by object_id LIMIT %d", $last_id, 'term', $max_metas_per_page);
1185
+
1186
+ //error_log($yoast_meta_sql);
1187
+
1188
+ $yoast_metas = $wpdb->get_results($yoast_meta_sql, OBJECT);
1189
+
1190
+ if (!$yoast_metas) {
1191
+
1192
+ $rows_exist = false;
1193
+
1194
+ } else {
1195
+
1196
+ foreach($yoast_metas as $yoast_meta) {
1197
+
1198
+ $term_id = $yoast_meta->object_id;
1199
+
1200
+ if ($yoast_meta->object_sub_type == "category") {
1201
+
1202
+ if (get_term_meta( $term_id, "psp_category_seo_metas_$term_id") && get_term_meta( $term_id, "psp_category_seo_metas_$term_id")) {
1203
+ //$import_error = "A few taxonomy terms have already been imported and only the remaining, if any, have been imported.";
1204
+ $import_error = esc_html('A few taxonomy terms have already been imported and only the remaining, if any, have been imported.', 'platinum-seo-pack');
1205
+ continue;
1206
+ }
1207
+
1208
+ } else {
1209
+
1210
+ if (get_term_meta( $term_id, "psp_taxonomy_seo_metas_$term_id") && get_term_meta( $term_id, "psp_taxonomy_social_metas_$term_id")) {
1211
+ //$import_error = "A few taxonomy terms have already been imported and only the remaining, if any, have been imported.";
1212
+ $import_error = esc_html('A few taxonomy terms have already been imported and only the remaining, if any, have been imported.', 'platinum-seo-pack');
1213
+ continue;
1214
+ }
1215
+
1216
+ }
1217
+ $yoast_title = preg_replace('/%%[^%]+%%/', '', $yoast_meta->title);
1218
+ $yoast_title = preg_replace('/Archives/',"", $yoast_title);
1219
+ $yoast_title = preg_replace('/\s+/', ' ', $yoast_title);
1220
+ $psp_term_seo_meta['title'] = !empty($yoast_title) ? $yoast_title : '';
1221
+
1222
+ $yoast_description = preg_replace('/%%[^%]+%%/', '', $yoast_meta->description);
1223
+ $yoast_description = preg_replace('/\s+/', ' ', $yoast_description);
1224
+ $psp_term_seo_meta['description'] = !empty($yoast_description) ? $yoast_description : '';
1225
+
1226
+ if ($yoast_meta->is_robots_noindex) {
1227
+ $psp_term_seo_meta['noindex'] = 'on';
1228
+ }
1229
+ if ($yoast_meta->is_robots_nofollow) {
1230
+ $psp_term_seo_meta['nofollow'] = 'on';
1231
+ }
1232
+
1233
+ if ($yoast_meta->is_robots_noarchive) {
1234
+ $psp_term_seo_meta['noarchive'] = 'on';
1235
+ }
1236
+
1237
+ if ($yoast_meta->is_robots_nosnippet) {
1238
+ $psp_term_seo_meta['nosnippet'] = 'on';
1239
+ }
1240
+
1241
+ if ($yoast_meta->is_robots_noimageindex) {
1242
+ $psp_term_seo_meta['noimageindex'] = 'on';
1243
+ }
1244
+
1245
+ if ($yoast_meta->twitter_image_source == 'set-by-user') {
1246
+
1247
+ $psp_term_social_meta['tw_image'] = $yoast_meta->twitter_image;
1248
+ }
1249
+
1250
+ if ($yoast_meta->open_graph_image_source == 'set-by-user') {
1251
+
1252
+ $psp_term_social_meta['fb_image'] = $yoast_meta->open_graph_image;
1253
+ }
1254
+
1255
+ $psp_term_seo_meta['keywords'] = !empty($yoast_meta->primary_focus_keyword) ? $yoast_meta->primary_focus_keyword : '';
1256
+ $psp_term_seo_meta['canonical_url'] = !empty($yoast_meta->canonical) ? $yoast_meta->canonical : '';
1257
+ $psp_term_seo_meta['bc_title'] = !empty($yoast_meta->breadcrumb_title) ? $yoast_meta->breadcrumb_title : '';
1258
+
1259
+ $psp_term_social_meta['fb_title'] = !empty($yoast_meta->open_graph_title) ? $yoast_meta->open_graph_title : '';
1260
+ $psp_term_social_meta['fb_description'] = !empty($yoast_meta->open_graph_description) ? $yoast_meta->open_graph_description : '';
1261
+
1262
+ $psp_term_social_meta['tw_title'] = !empty($yoast_meta->twitter_title) ? $yoast_meta->twitter_title : '';
1263
+ $psp_term_social_meta['tw_description'] = !empty($yoast_meta->twitter_description) ? $yoast_meta->twitter_description : '';
1264
+
1265
+ if ($yoast_meta->object_sub_type == "category") {
1266
+
1267
+ update_term_meta($term_id, "psp_category_seo_metas_$term_id", $psp_term_seo_meta);
1268
+ update_term_meta($term_id, "psp_category_social_metas_$term_id", $psp_term_social_meta);
1269
+
1270
+ } else {
1271
+
1272
+ update_term_meta($term_id, "psp_taxonomy_seo_metas_$term_id", $psp_term_seo_meta);
1273
+ update_term_meta($term_id, "psp_taxonomy_social_metas_$term_id", $psp_term_social_meta);
1274
+
1275
+ }
1276
+ }
1277
+
1278
+ $last_id = $term_id;
1279
+
1280
+ }
1281
+
1282
+ }
1283
+
1284
+ return $import_error;
1285
+
1286
+ }
1287
+
1288
+ }
1289
+ ?>
psp-include/settings/js/psp-importer.js ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ function openLink(evt, animName) {
2
+ var i, x, psptabs;
3
+ x = document.getElementsByClassName("plugin");
4
+ for (i = 0; i < x.length; i++) {
5
+ x[i].style.display = "none";
6
+ }
7
+ psptabs = document.getElementsByClassName("psp-tab");
8
+ for (i = 0; i < x.length; i++) {
9
+ psptabs[i].className = psptabs[i].className.replace(" psp-cyan", "");
10
+ }
11
+ document.getElementById(animName).style.display = "block";
12
+ evt.currentTarget.className += " psp-cyan";
13
+ }
14
+
15
+ function import_seo_data(title, loader) {
16
+ //alert(title);
17
+ var yoast_data = {
18
+ action: 'import_yoast_data',
19
+ ajax_nonce: psp_ajax_importer_object.pspnonce,
20
+ title: title,
21
+ };
22
+
23
+ jQuery.post(psp_ajax_importer_object.ajax_url, yoast_data, function(response) {
24
+ jQuery(loader).addClass('hidden');
25
+ alert('Import Status: ' + response);
26
+ });
27
+ /**
28
+ jQuery.post( psp_ajax_importer_object.ajax_url, yoast_data ).error(
29
+ function() {
30
+ alert('error');
31
+ }).success( function() {
32
+ alert('success');
33
+ });
34
+
35
+ **/
36
+ return false;
37
+
38
+ }
39
+
40
+ function import_rankmath_data() {
41
+
42
+ var rm_data = {
43
+ action: 'psp_rm_importer',
44
+ ajax_nonce: psp_ajax_importer_object.nonce,
45
+ };
46
+ jQuery.post( psp_ajax_importer_object.ajax_url, rm_data ).error(
47
+ function() {
48
+ alert('error');
49
+ }).success( function() {
50
+ alert('success');
51
+ });
52
+ return false;
53
+
54
+ }
55
+
56
+ jQuery(document).ready(function($) {
57
+ jQuery('#import_yoast_title_data_btn').on('click', function (){
58
+ //jQuery(".psp-titles-loader").show();
59
+ $btn = $(".yoast-titles-loader");
60
+ $(".yoast-titles-loader").removeClass('hidden');
61
+ import_seo_data(this.name, $btn);
62
+ });
63
+ jQuery('#import_yoast_brobots_data_btn').on('click', function (){
64
+ //jQuery(".psp-titles-loader").show();
65
+ $btn = $(".yoast-basicrobots-loader");
66
+ $(".yoast-basicrobots-loader").removeClass('hidden');
67
+ import_seo_data(this.name, $btn);
68
+ });
69
+ jQuery('#import_yoast_robots_data_btn').on('click', function (){
70
+ $btn = $(".yoast-robots-loader");
71
+ $(".yoast-robots-loader").removeClass('hidden');
72
+ import_seo_data(this.name, $btn);
73
+ });
74
+ jQuery('#import_yoast_others_data_btn').on('click', function (){
75
+ $btn = $(".yoast-others-loader");
76
+ $(".yoast-others-loader").removeClass('hidden');
77
+ import_seo_data(this.name, $btn);
78
+ });
79
+ jQuery('#import_yoast_terms_data_btn').on('click', function (){
80
+ $btn = $(".yoast-terms-loader");
81
+ $(".yoast-terms-loader").removeClass('hidden');
82
+ import_seo_data(this.name, $btn);
83
+ });
84
+ jQuery('#import_yoast_premium_data_btn').on('click', function (){
85
+ $btn = $(".yoast-premium-loader");
86
+ $(".yoast-premium-loader").removeClass('hidden');
87
+ import_seo_data(this.name, $btn);
88
+ });
89
+
90
+ jQuery('#import_rm_title_data_btn').on('click', function (){
91
+ $btn = $(".rm-titles-loader");
92
+ $(".rm-titles-loader").removeClass('hidden');
93
+ import_seo_data(this.name, $btn);
94
+ });
95
+ jQuery('#import_rm_others_data_btn').on('click', function (){
96
+ $btn = $(".rm-others-loader");
97
+ $(".rm-others-loader").removeClass('hidden');
98
+ import_seo_data(this.name, $btn);
99
+ });
100
+ jQuery('#import_rm_robots_data_btn').on('click', function (){
101
+ $btn = $(".rm-robots-loader");
102
+ $(".rm-robots-loader").removeClass('hidden');
103
+ import_seo_data(this.name, $btn);
104
+ });
105
+ jQuery('#import_rm_terms_data_btn').on('click', function (){
106
+ $btn = $(".rm-terms-loader");
107
+ $(".rm-terms-loader").removeClass('hidden');
108
+ import_seo_data(this.name, $btn);
109
+ });
110
+ jQuery('#import_yoastnew_title_data_btn').on('click', function (){
111
+ //jQuery(".psp-titles-loader").show();
112
+ $btn = $(".yoastnew-titles-loader");
113
+ $(".yoastnew-titles-loader").removeClass('hidden');
114
+ import_seo_data(this.name, $btn);
115
+ });
116
+ jQuery('#import_yoastnew_robots_data_btn').on('click', function (){
117
+ $btn = $(".yoastnew-robots-loader");
118
+ $(".yoastnew-robots-loader").removeClass('hidden');
119
+ import_seo_data(this.name, $btn);
120
+ });
121
+ jQuery('#import_yoastnew_others_data_btn').on('click', function (){
122
+ $btn = $(".yoastnew-others-loader");
123
+ $(".yoastnew-others-loader").removeClass('hidden');
124
+ import_seo_data(this.name, $btn);
125
+ });
126
+ jQuery('#import_yoastnew_terms_data_btn').on('click', function (){
127
+ $btn = $(".yoastnew-terms-loader");
128
+ $(".yoastnew-terms-loader").removeClass('hidden');
129
+ import_seo_data(this.name, $btn);
130
+ });
131
+ jQuery('#import_psp_robots_data_btn').on('click', function (){
132
+ $btn = $(".psp-robots-loader");
133
+ $(".psp-robots-loader").removeClass('hidden');
134
+ import_seo_data(this.name, $btn);
135
+ });
136
+ jQuery('#import_psp_others_data_btn').on('click', function (){
137
+ $btn = $(".psp-others-loader");
138
+ $(".psp-others-loader").removeClass('hidden');
139
+ import_seo_data(this.name, $btn);
140
+ });
141
+ jQuery('#import_psp_terms_data_btn').on('click', function (){
142
+ $btn = $(".psp-terms-loader");
143
+ $(".psp-terms-loader").removeClass('hidden');
144
+ import_seo_data(this.name, $btn);
145
+ });
146
+ });
psp-include/settings/js/snippetpreview.js CHANGED
@@ -1 +1 @@
1
- function escapeRegExp(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function wordCount(e){var t=e.match(/\S+/g);return t?t.length:0}function pspSortArray(e,t){var s=[],i=[];for(let r=0;r<e.length;r++)i=[],void 0!==(i=wp.data.select("core").getEntityRecord("taxonomy",t,e[r]))&&(s[r]=i.name);return s?(s.sort(),s[0]):"%"+t+"%"}function pspSortClassicArray(e,t){var s=[];return jQuery('input[name="'+e+'"]:checked').each(function(){s.push(jQuery(this).parent("label").text())}),s&&s.length?(s.sort(),s[0]):"%"+t+"%"}function boldWords(e){var t=e,s=jQuery("#psp_seo_meta\\[keywords\\]").val().match(/\S+/g);if(s)for(i=0;i<s.length;i++)t=(t=t.replace(new RegExp("(^|[\\W])("+escapeRegExp(s[i])+")([\\W]|$)","gi"),"$1<b>$2</b>$3")).replace(new RegExp("(^|[\\W])("+escapeRegExp(s[i])+")([\\W]|$)","gi"),"$1<b>$2</b>$3");return t}function boldText(e){var t=e,s=jQuery("#psp_seo_meta\\[keywords\\]").val().match(/\S+/g);if(s)for(i=0;i<s.length;i++)t=t.replace(new RegExp("("+escapeRegExp(s[i])+")","gi"),"<b>$1</b>");return t}function htmlEncode(e){return jQuery("<div/>").text(e).html()}function setGtbUrlPreview(e){var t=htmlEncode(e),s=(t=t.replace(/\/$/,"")).length;jQuery("#permalinkSizer").html(t);var i=t=t.replace(/([^https?:\/\/])(\/)/g,"$1 > ");jQuery("#urlSizer").html(t),jQuery("#murlSizer").html(i);var r=new RegExp("W(.*)$");for(trimmed=!1;jQuery("#urlSizer").width()>566;){var n=t;n=(n=(n=(n=n.substring(0,n.length-1)).trim()).replace(/\>$/,"")).trim(),jQuery("#urlSizer").html(n),t=n,trimmed=!0}trimmed&&(t+=" ...",jQuery("#urlSizer").html(t)),info=s+" characters, ",jQuery("#urlInfo").html(t.length+" characters, "+jQuery("#urlSizer").width()+" pixels"),jQuery("#urlSizer").width()<=584?jQuery("#urlInfo").html(info+'<span style="color:green;">'+jQuery("#urlSizer").width()+"/584 pixels</span>"):jQuery("#urlInfo").html(info+'<span style="color:red;">'+jQuery("#urlSizer").width()+"/584 pixels</span>"),jQuery("#techblissonlineSnippetUrl").html(t),mtrimmed=!1;for(var a=i;i.length>42;)i=jQuery.trim(i.replace(" ...","")),(a=(a=(a=jQuery.trim(a.replace(r,""))).trim()).replace(/\>$/,"")).length>=42&&(a=(a=jQuery.trim(i.replace(" ...",""))).substring(0,a.length-1)),a=a.trim(),i=a+=" ...",mtrimmed=!0;mtrimmed&&jQuery("#murlSizer").html(i),info=i.length+" characters, ",jQuery("#murlInfo").html(i.length+" characters, "+jQuery("#murlSizer").width()+" pixels"),jQuery("#murlSizer").width()<=282?jQuery("#murlInfo").html(info+'<span style="color:green;">'+jQuery("#urlSizer").width()+" pixels</span>"):jQuery("#murlInfo").html(info+'<span style="color:red;">'+jQuery("#murlSizer").width()+" pixels</span>"),jQuery("#techblissonlineMSnippetUrl").html(i)}function setUrlPreview(){var e="",t=!1;if(window.wpEditorL10n&&wpEditorL10n.tinymce&&wpEditorL10n.tinymce.settings&&(t=wpEditorL10n.tinymce.settings),jQuery("#editable-post-name").length){e=jQuery.trim(jQuery("#sample-permalink").text());var s=jQuery.trim(jQuery("#editable-post-name").text());e=(e=e.replace(s,"")).replace(/\/$/g,"")}else jQuery("#name").length?e=jQuery.trim(jQuery("#pspPostPermalink").text()):jQuery("#slug").length?e=jQuery.trim(jQuery("#pspPostPermalink").text()):t&&wp.data&&wp.data.select&&(e=wp.data.select("core/editor").getPermalink(),wp.data.subscribe(function(){setGtbUrlPreview(wp.data.select("core/editor").getPermalink())}));jQuery("#new-post-slug").length>0&&(e+=jQuery("#new-post-slug").val());jQuery("#editable-post-name-full").length&&(e+=jQuery("#editable-post-name-full").text());var i=htmlEncode(e),r=i.length;r=(i=i.replace(/\/$/,"")).length;jQuery("#permalinkSizer").html(i);var n=i=i.replace(/([^https?:\/\/])(\/)/g,"$1 > ");e=i,jQuery("#urlSizer").html(i),jQuery("#murlSizer").html(n);var a=new RegExp("W(.*)$");for(trimmed=!1;jQuery("#urlSizer").width()>584;){var l=i;l=(l=(l=(l=l.substring(0,l.length-1)).trim()).replace(/\>$/,"")).trim(),jQuery("#urlSizer").html(l),i=l,trimmed=!0}trimmed&&(i+=" ..."),info=r+" characters, ",jQuery("#urlInfo").html(r+" characters, "+jQuery("#urlSizer").width()+" pixels"),jQuery("#urlSizer").width()<=584?jQuery("#urlInfo").html(info+'<span style="color:green;">'+jQuery("#urlSizer").width()+"/584 pixels</span>"):jQuery("#urlInfo").html(info+'<span style="color:red;">'+jQuery("#urlSizer").width()+"/584 pixels</span>"),jQuery("#techblissonlineSnippetUrl").html(i),mtrimmed=!1;for(var o=n;o.length>42;)n=jQuery.trim(n.replace(" ...","")),(o=(o=(o=jQuery.trim(o.replace(a,""))).trim()).replace(/\>$/,"")).length>=42&&(o=(o=jQuery.trim(n.replace(" ...",""))).substring(0,o.length-1)),o=o.trim(),n=o+=" ...",mtrimmed=!0;mtrimmed&&jQuery("#murlSizer").html(n),info=n.length+" characters, ",jQuery("#murlInfo").html(n.length+" characters, "+jQuery("#murlSizer").width()+" pixels"),jQuery("#murlSizer").width()<=282?jQuery("#murlInfo").html(info+'<span style="color:green;">'+jQuery("#urlSizer").width()+" pixels</span>"):jQuery("#murlInfo").html(info+'<span style="color:red;">'+jQuery("#murlSizer").width()+" pixels</span>"),jQuery("#techblissonlineMSnippetUrl").html(n)}function stripTrailingSlash(e){return"/"==e.substr(-1)?e.substr(0,e.length-1):e}function setGtbTitlePreview(e,t){var s=jQuery("#psp_seo_meta\\[titleformat\\]").val(),i=!1,r=!1;jQuery("#psp_seo_meta\\[disable_title_format\\]:checked").length>0&&(i=!0),jQuery("#psp_seo_meta\\[disable_psp\\]:checked").length>0&&(r=!0),i&&(s="%seo_title%"),r&&(s="%wp_title%");var n=jQuery("#pspPostTypeArrayFormat").text(),a=JSON.parse(n),l=jQuery("#psp_seo_meta\\[title\\]"),o=s.replace("%seo_title%",e);if(o=(o=(o=(o=(o=(o=o.replace("%wp_title%",a.wp_title)).replace("%site_name%",a.site_name)).replace("%site_description%",a.site_description)).replace("%category%",t)).replace("%taxonomy%",t)).replace(/%sep%/g,a.sep),""!==(o=(o=jQuery.trim(o)).trim(a.sep))){placeholder_title=e,l.attr("placeholder",placeholder_title);var p=htmlEncode(o),c=p;jQuery("#titleSizer").html(p),jQuery("#actualTitleSizer").html(p);var d=new RegExp("sw+(.*)$");trimmed=!1;for(var u=p;jQuery("#titleSizer").width()>584;)p=jQuery.trim(p.replace(" ...","")),(u=jQuery.trim(u.replace(d,""))).length>=p.length&&(u=u.substring(0,u.length-1)),p=u+" ...",jQuery("#titleSizer").html(p),trimmed=!0;trimmed,jQuery("#titleSizer").html(p),mtrimmed=!1;for(var h=c;h.length>78;)c=jQuery.trim(c.replace(" ...","")),(h=jQuery.trim(h.replace(d,""))).length>=78&&(h=(h=jQuery.trim(h.replace(" ...",""))).substring(0,h.length-1)),c=h+=" ...",mtrimmed=!0;mtrimmed,jQuery("#mtitleSizer").html(c),info=jQuery("<textarea />").html(p).text().length+" characters, "+wordCount(p)+" words ",jQuery("#titleInfo").html(p.length+" characters, "+jQuery("#titleSizer").width()+" pixels, "+wordCount(p)+" words"),jQuery("#titleSizer").width()<=584?jQuery("#titleInfo").html(info+'<span style="color:green;">'+jQuery("#titleSizer").width()+"/584 pixels</span>"):jQuery("#titleInfo").html(info+'<span style="color:red;">'+jQuery("#titleSizer").width()+"/584 pixels</span>"),minfo=jQuery("<textarea />").html(c).text().length+" characters/ 78 characters "+wordCount(c)+" words ",jQuery("#mtitleInfo").html(c.length+" characters, "+jQuery("#mtitleSizer").width()+" pixels, "+wordCount(c)+" words"),c.length<=78?jQuery("#mtitleInfo").html('<span style="color:green;">'+minfo+"</span> "+jQuery("#mtitleSizer").width()+" pixels"):jQuery("#mtitleInfo").html('<span style="color:red;">'+minfo+"</span> "+jQuery("#mtitleSizer").width()+" pixels"),jQuery("#techblissonlineSnippetTitle").html(p),jQuery("#techblissonlineMSnippetTitle").html(c),setPSPSeoAnalysis()}}function setTitlePreview(){var e,t,s,i="",r="",n="",a=!1,l="";window.wpEditorL10n&&wpEditorL10n.tinymce&&wpEditorL10n.tinymce.settings&&(a=wpEditorL10n.tinymce.settings);var o=jQuery("#pspPostTypeArrayFormat").text(),p=JSON.parse(o),c=jQuery("#psp_seo_meta\\[titleformat\\]").val(),d=!1,u=!1,h=!1;jQuery("#psp_seo_meta\\[disable_title_format\\]:checked").length>0&&(d=!0),jQuery("#psp_seo_meta\\[disable_title\\]:checked").length>0&&(u=!0),jQuery("#psp_seo_meta\\[disable_psp\\]:checked").length>0&&(h=!0);l=p.category,c.toLowerCase().indexOf("%wp_title%");var m=jQuery("#title"),y=jQuery("#psp_seo_meta\\[title\\]"),g=jQuery("#psp_seo_meta\\[preferred_tax\\]"),j="categories",Q="post_category[]",f="category";if(g&&g.val()&&"category"!==(f=jQuery("#psp_seo_meta\\[preferred_tax\\] option:selected").text())&&(j=f,Q="tax_input["+f+"][]"),m&&(l=pspSortClassicArray(Q,f)),!y.val()||u||h?(jQuery("#title").val()?r=jQuery.trim(jQuery("#title").val()):jQuery("#name").val()?r=jQuery.trim(jQuery("#name").val()):a&&wp.data&&wp.data.select&&(r=wp.data.select("core/editor").getEditedPostAttribute("title"),s=wp.data.select("core/editor").getEditedPostAttribute(j),l="%"+f+"%",void 0!==s&&s.length>0&&(l=pspSortArray(s,f)),wp.data.subscribe(function(){r=wp.data.select("core/editor").getEditedPostAttribute("title"),s=wp.data.select("core/editor").getEditedPostAttribute(j),l="%"+f+"%",void 0!==s&&s.length>0&&(l=pspSortArray(s,f)),r&&l&&setGtbTitlePreview(r,l)})),i=r,(d||h)&&(c="%wp_title%"),i=(i=(i=(i=(i=(i=(i=c.replace("%seo_title%",r)).replace("%wp_title%",r)).replace("%site_name%",p.site_name)).replace("%site_description%",p.site_description)).replace("%taxonomy%",l)).replace("%category%",l)).replace(/%sep%/g,p.sep),i=(i=jQuery.trim(i)).trim(p.sep)):(i=y.val(),n=y.val(),jQuery("#title").val()?r=jQuery.trim(jQuery("#title").val()):jQuery("#name").val()?r=jQuery.trim(jQuery("#name").val()):a&&wp.data&&wp.data.select&&(r=wp.data.select("core/editor").getEditedPostAttribute("title"),t=wp.data.select("core/editor").getEditedPostAttribute(j),l="%"+f+"%",void 0!==t&&t.length>0&&(l=pspSortArray(t,f)),wp.data.subscribe(function(){r=wp.data.select("core/editor").getEditedPostAttribute("title"),t=wp.data.select("core/editor").getEditedPostAttribute(j),l="%"+f+"%",void 0!==t&&t.length>0&&(l=pspSortArray(t,f)),n&&l&&setGtbTitlePreview(n,l)})),d&&(c="%seo_title%"),i=(i=(i=(i=(i=(i=(i=c.replace("%seo_title%",n)).replace("%wp_title%",r)).replace("%site_name%",p.site_name)).replace("%site_description%",p.site_description)).replace("%taxonomy%",l)).replace("%category%",l)).replace(/%sep%/g,p.sep),i=(i=jQuery.trim(i)).trim(p.sep)),""!==i){e=r,y.attr("placeholder",e);var w=htmlEncode(i),v=w;jQuery("#titleSizer").html(w),jQuery("#actualTitleSizer").html(w);var S=new RegExp("sw+(.*)$"),_=w;for(trimmed=!1;jQuery("#titleSizer").width()>584;)w=jQuery.trim(w.replace(" ...","")),(_=jQuery.trim(_.replace(S,""))).length>=w.length&&(_=_.substring(0,_.length-1)),w=_+" ...",jQuery("#titleSizer").text(w),trimmed=!0;trimmed,jQuery("#titleSizer").text(w),jQuery("body").append(jQuery("#titleSizer")).width(),jQuery("body#titleSizer").remove(),info=jQuery("<textarea />").html(w).text().length+" characters, "+wordCount(w)+" words ",jQuery("#titleInfo").html(w.length+" characters, "+jQuery("#titleSizer").width()+" pixels, "+wordCount(w)+" words"),jQuery("#titleSizer").width()<=584?jQuery("#titleInfo").html(info+'<span style="color:green;">'+jQuery("#titleSizer").width()+"/584 pixels</span>"):jQuery("#titleInfo").html(info+'<span style="color:red;">'+jQuery("#titleSizer").width()+"/584 pixels</span>"),jQuery("#techblissonlineSnippetTitle").html(w);var x=v;for(mtrimmed=!1;x.length>78;)v=jQuery.trim(v.replace(" ...","")),(x=jQuery.trim(x.replace(S,""))).length>=78&&(x=(x=jQuery.trim(x.replace(" ...",""))).substring(0,x.length-1)),v=x+=" ...",mtrimmed=!0;mtrimmed,jQuery("#mtitleSizer").text(v),jQuery("body").append(jQuery("#mtitleSizer")).width(),jQuery("body#mtitleSizer").remove(),minfo=jQuery("<textarea />").html(v).text().length+" characters/ 78 characters "+wordCount(v)+" words ",jQuery("#mtitleInfo").html(v.length+" characters, "+jQuery("#mtitleSizer").width()+" pixels, "+wordCount(v)+" words"),v.length<=78?jQuery("#mtitleInfo").html('<span style="color:green;">'+minfo+"</span> "+jQuery("#mtitleSizer").width()+" pixels"):jQuery("#mtitleInfo").html('<span style="color:red;">'+minfo+"</span> "+jQuery("#mtitleSizer").width()+" pixels"),jQuery("#techblissonlineMSnippetTitle").html(v),setPSPSeoAnalysis()}}function setDescriptionPreview(){var e=!1,t=jQuery("#psp_seo_meta\\[description\\]");window.wpEditorL10n&&wpEditorL10n.tinymce&&wpEditorL10n.tinymce.settings&&(e=wpEditorL10n.tinymce.settings);var s=jQuery.trim(jQuery("#psp_seo_meta\\[maxsnippet\\]").val()),i=s;parseInt(s)<0&&(s=230,i=285),jQuery.inArray(parseInt(s),[-1,0,1,2,3,4])>-1&&(s=230,i=285),""===s&&(s=230,i=285),s=parseInt(s),i=parseInt(i);var r="",n=!1,a=!1;if(jQuery("#psp_seo_meta\\[disable_psp\\]:checked").length>0&&(n=!0),jQuery("#psp_seo_meta\\[disable_description\\]:checked").length>0&&(a=!0),""!==r||n||a||(r=jQuery.trim(jQuery("#psp_seo_meta\\[description\\]").val())),""===r){if(""===r&&e&&wp.data&&wp.data.select)return(r=(r=wp.data.select("core/editor").getEditedPostContent().replace(/(<([^>]+)>)/gi,"")).substring(0,i))&&t.attr("placeholder",r),r||(r=t.attr("placeholder")),void setGTBDescPreview(r);var l=jQuery.trim(jQuery("#content").val());if(!t.val()||n||a)return r=(r=l.replace(/(<([^>]+)>)/gi,"")).substring(0,i),t.attr("placeholder",r),void setGTBDescPreview(r)}return r?void setGTBDescPreview(r):void 0}function setGTBDescPreview(e){var t=jQuery("#psp_seo_meta\\[description\\]"),s=e;placeholder_desc=e,t.attr("placeholder",placeholder_desc);var i=jQuery.trim(jQuery("#psp_seo_meta\\[maxsnippet\\]").val()),r=i;parseInt(i)<0&&(i=230,r=285),jQuery.inArray(parseInt(i),[-1,0,1,2,3,4])>-1&&(i=230,r=285),""===i&&(i=230,r=285),i=parseInt(i),r=parseInt(r);var n=htmlEncode(s),a=n+=" ...";jQuery("#descriptionSizer").html(n),jQuery("#mdescriptionSizer").html(a);for(var l=new RegExp("sw+(.*)$"),o=n;o.length>i;)n=jQuery.trim(n.replace(" ...","")),o=jQuery.trim(o.replace(l,"")),s=jQuery.trim(s.replace(l,"")),o.length>=i&&(o=(o=jQuery.trim(o.replace(" ...",""))).substring(0,o.length-1),s=s.substring(0,s.length-1)),o+=" ...";n=o,jQuery("#descriptionSizer").html(n);for(var p=a;p.length>r;)a=jQuery.trim(a.replace(" ...","")),(p=jQuery.trim(p.replace(l,""))).length>=r&&(p=(p=jQuery.trim(p.replace(" ...",""))).substring(0,p.length-1)),p+=" ...";a=p,jQuery("#descriptionSizer").html(a),jQuery("body").append(jQuery("#descriptionSizer")).width(),jQuery("body").append(jQuery("#mdescriptionSizer")).width(),jQuery("body").remove("#descriptionSizer"),jQuery("body").remove("#mdescriptionSizer"),jQuery("#descriptionInfo").html(n.length+" characters, "+jQuery("#descriptionSizer").width()+" pixels, "+wordCount(n)+" words"),info=jQuery("#descriptionSizer").width()+" pixels, "+wordCount(n)+" words ",jQuery("#mdescriptionInfo").html(a.length+" characters, "+jQuery("#mdescriptionSizer").width()+" pixels, "+wordCount(a)+" words"),minfo=jQuery("#mdescriptionSizer").width()+" pixels, "+wordCount(a)+" words ",n.length<=146?jQuery("#descriptionInfo").html(info+'<span style="color:green;">'+n.length+"/~170 characters"):n.length<=160?jQuery("#descriptionInfo").html(info+'<span style="color:orange;">'+n.length+"/~170 characters</span>"):n.length<=166?jQuery("#descriptionInfo").html(info+'<span style="color:purple;">'+n.length+"/~170 characters</span>"):jQuery("#descriptionInfo").html(info+'<span style="color:red;">'+n.length+"/~170 characters</span>"),a.length<=146?jQuery("#mdescriptionInfo").html(minfo+'<span style="color:green;">'+a.length+"/~170 characters"):a.length<=160?jQuery("#mdescriptionInfo").html(minfo+'<span style="color:orange;">'+a.length+"/~170 characters</span>"):a.length<=166?jQuery("#mdescriptionInfo").html(minfo+'<span style="color:purple;">'+a.length+"/~170 characters</span>"):jQuery("#mdescriptionInfo").html(minfo+'<span style="color:red;">'+a.length+"/~170 characters</span>"),jQuery("#techblissonlineSnippetDescription").html(n),jQuery("#techblissonlineMSnippetDescription").html(a)}function updateDateText(){var e=htmlEncode(jQuery.trim(jQuery("#DateText").val()));e.length>0?jQuery("#resultDateText").html(e+" - "):jQuery("#resultDateText").html("")}function setPSPSeoAnalysis(){var e,t=!1,s="",i="";window.wpEditorL10n&&wpEditorL10n.tinymce&&wpEditorL10n.tinymce.settings&&(t=wpEditorL10n.tinymce.settings),t&&wp.data&&wp.data.select?(""==(i=wp.data.select("core/editor").getEditedPostContent())&&(i=wp.data.select("core/editor").getEditedPostAttribute("content")),s=wp.data.select("core/editor").getEditedPostAttribute("title")):(i=jQuery.trim(jQuery("#content").val()),s=jQuery.trim(jQuery("#title").val()));var r=[],n=0;e=i,""!=i&&(i=(i=(i=(i=i.replace(/(<([^>]+)>)/gi,"")).replace(/['"]+/g,"")).replace(/[^a-zA-Z]+/g," ")).toLowerCase(),r=i.split(/[\/\s]+/),n=r.length);var a,l=window.location.hostname,o=!1,p=!1;a=jQuery("<div />",{html:e}).find("a").map(function(){if(jQuery(this).attr("href")&&(-1==jQuery(this).attr("href").indexOf(l)&&(o=!0),-1!==jQuery(this).attr("href").indexOf(l)&&(p=!0)),""!==jQuery(this).text())return jQuery(this).text()}).get();var c;c=jQuery(e).find("img").map(function(){if(jQuery(this).attr("alt")&&""!==jQuery(this).attr("alt"))return jQuery(this).attr("alt")}).get();var d=!1,u=jQuery(e).find("img");void 0!==u&&u.length>0&&(d=!0);var h=!1,m=jQuery("<div />",{html:e}).find("h2, h3, h4, h5, h6");void 0!==m&&m.length>0&&(h=!0);var y;y=jQuery("<div />",{html:e}).find("h1").map(function(){if(""!==jQuery(this).text())return jQuery(this).text()}).get();var g;g=jQuery("<div />",{html:e}).find("h2").map(function(){if(""!==jQuery(this).text())return jQuery(this).text()}).get();var j=jQuery("#urlSizer").html(),Q=jQuery("#techblissonlineSnippetTitle").html(),f=jQuery("#techblissonlineSnippetDescription").val(),w=jQuery("#psp_seo_meta\\[description\\]").val(),v=jQuery("#psp_seo_meta\\[schema_string\\]").val(),S=!1,_=!1;""!==w&&(_=!0),""!==v&&"Invalid JSON Schema"!==v&&(S=!0);var x=jQuery.trim(jQuery("#permalinkSizer").html()),b=jQuery.trim(jQuery("#actualTitleSizer").html());jQuery("#actualTitleSizers").html(b);var z=0,P=0,E=0;""!==x&&(z=x.length),""!==x&&jQuery("#permalinkSizer").width(),""!==b&&(P=jQuery("<textarea />").html(b).text().length),""!==b&&(E=jQuery("#actualTitleSizer").width()),0==E&&(E=jQuery("#actualTitleSizers").width()-1),""!==j&&(j=j.trim());var T=0,k=0,I=0,C=0,A="",L=[0,2,4],U=[1,3,4],D=[],$=jQuery("#psp_seo_meta\\[keywords\\]").val();if(void 0!==$&&(D=$.split(",")),A+='<div class="psp-bs">',A+='<div class="container-fluid">',A+="<h1>Platinum SEO Analysis</h1>",A+='<p>This is a basic content analysis of this page and your focus keywords. Assigning a score does not mean anything and so we do not do that. Rather, make sure that all these basic recommendations are adhered to. We also recommend you to try our <a href="https://techblissonline.com/tools/" target="_blank">Techblissonline SEO Tools</a> for a detailed analysis of your pages and your competitor pages for your focus keywords, co-occuring words (related entities) and improve your content accordingly. </p>',A+='<div class="panel-group">',A+='<div class="row"><div class="col-sm-12">',A+='<div class="panel panel-primary">',A+='<div class="panel-heading">General</div>',A+='<div class="panel-body">',A+="<ul>",z>0&&z<75?A=A+'<li><span class="dashicons dashicons-yes-alt"></span> URL Length is '+z+" characters </li>":z>75&&(A=A+'<li><span class="dashicons dashicons-dismiss"></span> URL lLength is '+z+' characters <a href="#" class="psptip" data-toggle="tooltip" data-placement="top" title="URL might get truncated in Google SERPS if it is more than 75 characters wide. "><sup><span class="dashicons dashicons-info"></span></sup></a></li>'),P>0&&P<70?A=A+'<li><span class="dashicons dashicons-yes-alt"></span> SEO Title lLength is '+P+" characters </li>":P>70&&(A=A+'<li><span class="dashicons dashicons-dismiss"></span> Actual SEO Title lLength is '+P+' characters. <a href="#" class="psptip" data-toggle="tooltip" data-placement="top" title="Title might get truncated in Google SERPS if it is more than 70 characters wide. "><sup><span class="dashicons dashicons-info"></span></sup></a></li>'),E>0&&E<574?A=A+'<li><span class="dashicons dashicons-yes-alt"></span> SEO Title pixel width is '+E+" pixels </li>":E>574&&(A=A+'<li><span class="dashicons dashicons-dismiss"></span> SEO Title pixel width is '+E+' pixels including Title format. <a href="#" class="psptip" data-toggle="tooltip" data-placement="top" title="Title might get truncated in Google SERPS if it is more than 574 pixels wide. "><sup><span class="dashicons dashicons-info"></span></sup></a></li>'),A+=_?'<li><span class="dashicons dashicons-yes-alt"></span> Platinum SEO Description is used </li>':'<li><span class="dashicons dashicons-dismiss"></span> Platinum SEO Description field is not filled in. You may be using auto-generated description. <a href="#" class="psptip" data-toggle="tooltip" data-placement="top" title="Using optimized description improves CTR from search and social engines"><sup><span class="dashicons dashicons-info"></span></sup></a></li>',A+=S?'<li><span class="dashicons dashicons-yes-alt"></span> Json Schema is used on this page using Platinum SEO </li>':'<li><span class="dashicons dashicons-dismiss"></span> Json Schema is not used on this page using Platinum SEO <a href="#" class="psptip" data-toggle="tooltip" data-placement="top" title="Using Json Schema has a positive impact on Google. Use our Schema generator tool to generate and add one in the Advanced SEO section."><sup><span class="dashicons dashicons-info"></span></sup></a></li>',""!=i&&(A=n>0&&n>500?A+'<li><span class="dashicons dashicons-yes-alt"></span> Total number of words in Content is '+n+' <a href="#" class="psptip" data-toggle="tooltip" data-placement="top" title="Content length does not matter as long as user intent is matched for the topic covered. Write related articles and link them internally "><sup><span class="dashicons dashicons-info"></span></sup></a></li>':A+'<li><span class="dashicons dashicons-dismiss"></span> Total number of words in Content is '+n+' <a href="#" class="psptip" data-toggle="tooltip" data-placement="top" title="Content length does not matter as long as user intent is matched for the topic covered. Write related articles and link them internally "><sup><span class="dashicons dashicons-info"></span></sup></a></li>',A+=d?'<li><span class="dashicons dashicons-yes-alt"></span> Images used in Content </li>':'<li><span class="dashicons dashicons-dismiss"></span> Images not used in Content <a href="#" class="psptip" data-toggle="tooltip" data-placement="top" title="Using relevant high quality images can increase user engagement and bring in more traffic"><sup><span class="dashicons dashicons-info"></span></sup></a></li>',A+=p?'<li><span class="dashicons dashicons-yes-alt"></span> Internal links used in content. </li>':'<li><span class="dashicons dashicons-dismiss"></span> Internal links not used in Content <a href="#" class="psptip" data-toggle="tooltip" data-placement="top" title="Linking to other relevant internal resources improves Time on site. "><sup><span class="dashicons dashicons-info"></span></sup></a></li>',A+=o?'<li><span class="dashicons dashicons-yes-alt"></span> External links found in content. </li>':'<li><span class="dashicons dashicons-dismiss"></span> External links not found in Content <a href="#" class="psptip" data-toggle="tooltip" data-placement="top" title="Linking to other relevant external resources as references improves trust on content. "><sup><span class="dashicons dashicons-info"></span></sup></a></li>',h&&(A+='<li><span class="dashicons dashicons-yes-alt"></span> Subheaders like h2 are used in Content </li>')),A+="</ul>",A+="</div>",A+="</div>",A+="</div></div>",(void 0!==D||D.length<1)&&""==$)return A+="</div>",A+="</div></div>",void jQuery("#techblissonlineseoanalysis").html(A);jQuery.each(D,function(e,t){if(T=0,k=0,I=0,C=0,searchlc=t.toLowerCase().trim(),!(""==searchlc||e>4)){if(jQuery.each([y,g,c,a],function(e,t){jQuery.each(t,function(t,s){-1!==s.toLowerCase().trim().indexOf(searchlc)&&(0==e&&(T+=1),1==e&&(k+=1),2==e&&(I+=1),3==e&&(C+=1))})}),jQuery.inArray(parseInt(e),L)>-1&&(A+='<div class="row">'),A+='<div class="col-sm-6">',A=(A+='<div class="panel panel-primary">')+'<div class="panel-heading">'+t+"</div>",A+='<div class="panel-body">',A+="<ul>",j&&(searchlcurl=searchlc.replace(/ /g,"-"),-1!==j.search(searchlcurl)?A+='<li><span class="dashicons dashicons-yes-alt"></span> Used in URL </li>':A+='<li><span class="dashicons dashicons-dismiss"></span> Not used in URL </li>'),Q&&(psplctitle=Q.toLowerCase().trim(),-1!==psplctitle.search(searchlc)?(A+='<li><span class="dashicons dashicons-yes-alt"></span> Used in Title </li>',psplctitle.indexOf(searchlc)<20?A+='<li><span class="dashicons dashicons-yes-alt"></span> Found in the beginning of Title </li>':A+='<li><span class="dashicons dashicons-dismiss"></span> Not found in the beginning of Title </li>'):A+='<li><span class="dashicons dashicons-dismiss"></span> Not used in Title </li>'),f&&(psplcdesc=f.toLowerCase().trim(),-1!==psplcdesc.search(searchlc)?(psplcdesc,A+='<li><span class="dashicons dashicons-yes-alt"></span> Used in Meta Description </li>'):A+='<li><span class="dashicons dashicons-dismiss"></span> Not used in Meta Description </li>'),s&&(psplcwptitle=s.toLowerCase().trim(),-1!==psplcwptitle.search(searchlc)?A+='<li><span class="dashicons dashicons-yes-alt"></span> Used in h1 tag (Wordpress Title) </li>':A+='<li><span class="dashicons dashicons-dismiss"></span> Not used in h1 tag (Wordpress Title) </li>'),A+="</ul>",""==i)return A+="</div>",A+="</div>",A+="</div>",void(jQuery.inArray(parseInt(e),U)>-1&&(A+="</div>"));var l,o=[];o=(l=pspGetCounOfIndices(searchlc,r,!1))[1],pspkd=0,pspkeycounter=0,n>0&&o&&(pspkd=o.length/n*100);var p=l[0];p&&(pspkeycounter=p.length),A+="<ul>",o.length>0?(A=pspkd.toFixed(2)<3?A+'<li><span class="dashicons dashicons-yes-alt"></span> Used in content '+o.length+" time(s) </li>":A+'<li><span class="dashicons dashicons-dismiss"></span> Used in content '+o.length+" time(s) </li>",pspkeycounter>0&&pspkeycounter<6?A=A+'<li><li><span class="dashicons dashicons-yes-alt"></span> Found in first 100 words of content '+pspkeycounter+" time(s) </li>":0==pspkeycounter?A+='<li><span class="dashicons dashicons-dismiss"></span> Not found in first 100 words of content </li>':A=A+'<li><span class="dashicons dashicons-dismiss"></span> Found in first 100 words of content '+pspkeycounter+" time(s) </li>",A=pspkd.toFixed(2)<3?A+'<li><span class="dashicons dashicons-yes-alt"></span> Keyword Density of '+t+" is "+pspkd.toFixed(2):A+'<li><span class="dashicons dashicons-dismiss"></span> Keyword Density of '+t+" is "+pspkd.toFixed(2)):A+='<li><span class="dashicons dashicons-dismiss"></span> Not used in Content </li>',T>0&&(A=A+'<li><span class="dashicons dashicons-yes-alt"></span> Used in other h1 tags '+T+" time(s) </li>"),k>0?A=A+'<li><span class="dashicons dashicons-yes-alt"></span> Used in h2 tags '+k+" time(s) </li>":A+='<li><span class="dashicons dashicons-dismiss"></span> Not used in h2 tags </li>',I>0?A=A+'<li><span class="dashicons dashicons-yes-alt"></span> Used in image alt attributes '+I+" time(s) </li>":A+='<li><span class="dashicons dashicons-dismiss"></span> Not used in image alt attributes </li>',C>0?A=A+'<li><span class="dashicons dashicons-yes-alt"></span> Used in anchor texts '+C+" time(s) </li>":A+='<li><span class="dashicons dashicons-dismiss"></span> Not used in anchor texts </li>',A+="</ul>",A+="</div>",A+="</div>",A+="</div>",jQuery.inArray(parseInt(e),U)>-1&&(A+="</div>")}}),A+="</div>",A+="</div></div>",jQuery("#techblissonlineseoanalysis").html(A)}function pspGetCounOfIndices(e,t,s){if(0==e.length)return[];var i,r=[],n=[],a=[];s||(e=e.toLowerCase()),i=t.length;for(let a=0;a<i;a++)str=t[a],str&&(s||(str=str.toLowerCase()),str.indexOf(e,0)>-1&&(n.push(str),a<100&&r.push(str)));return a.push(r),a.push(n),a}function updateAll(){setUrlPreview(),setTitlePreview(),setDescriptionPreview()}String.prototype.trimEnd=function(e){e=e||" ";for(var t=this.length-1;t>=0&&this.charAt(t)==e;t--);return this.substring(0,t+1)},jQuery(document).ready(function(){jQuery("#URL").keyup(function(){setUrlPreview()}),jQuery(document).on("keyup","#new-post-slug",function(){setUrlPreview()}),jQuery(document).on("click",".cancel, .save",function(){setUrlPreview()}),jQuery('input[name="post_category[]"]').click(function(){setTitlePreview()}),jQuery("input[name^='tax_input[']").click(function(){setTitlePreview()}),jQuery("#psp_seo_meta\\[title\\]").keyup(function(){setTitlePreview()}),jQuery("#title").keyup(function(){setTitlePreview()}),jQuery("#name").keyup(function(){setTitlePreview()}),jQuery("#psp_seo_meta\\[titleformat\\]").bind("change",function(){setTitlePreview()}),jQuery("#psp_seo_meta\\[titleformat\\]").on("change",function(){setTitlePreview()}),jQuery("#psp_seo_meta\\[preferred_tax\\]").on("change",function(){setTitlePreview()}),jQuery("#psp_seo_meta\\[disable_title_format\\]").on("change",function(){setTitlePreview()}),jQuery("#psp_seo_meta\\[disable_title\\]").on("change",function(){setTitlePreview()}),jQuery("#psp_seo_meta\\[disable_psp\\]").on("change",function(){setTitlePreview(),setDescriptionPreview()}),jQuery("#psp_seo_meta\\[disable_description\\]").on("change",function(){setDescriptionPreview()}),jQuery("#psp_seo_meta\\[description\\]").keyup(function(){setDescriptionPreview()}),jQuery("#content").keyup(function(){setDescriptionPreview()}),jQuery("#psp_seo_meta\\[maxsnippet\\]").on("change",function(){setDescriptionPreview()}),jQuery("#DateText").keyup(function(){updateDateText()}),jQuery("#psp_seo_meta\\[keywords\\]").keyup(function(){setPSPSeoAnalysis()}),jQuery("#psp_analyse_btn").on("click",function(){updateAll()}),updateAll()});
1
+ function escapeRegExp(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function wordCount(e){var t=e.match(/\S+/g);return t?t.length:0}function pspSortArray(e,t){var s=[],i=[];for(let r=0;r<e.length;r++)i=[],void 0!==(i=wp.data.select("core").getEntityRecord("taxonomy",t,e[r]))&&(s[r]=i.name);return s?(s.sort(),s[0]):"%"+t+"%"}function pspSortClassicArray(e,t){var s=[];return jQuery('input[name="'+e+'"]:checked').each(function(){s.push(jQuery(this).parent("label").text())}),s&&s.length?(s.sort(),s[0]):"%"+t+"%"}function boldWords(e){var t=e,s=jQuery("#psp_seo_meta\\[keywords\\]").val().match(/\S+/g);if(s)for(i=0;i<s.length;i++)t=(t=t.replace(new RegExp("(^|[\\W])("+escapeRegExp(s[i])+")([\\W]|$)","gi"),"$1<b>$2</b>$3")).replace(new RegExp("(^|[\\W])("+escapeRegExp(s[i])+")([\\W]|$)","gi"),"$1<b>$2</b>$3");return t}function boldText(e){var t=e,s=jQuery("#psp_seo_meta\\[keywords\\]").val().match(/\S+/g);if(s)for(i=0;i<s.length;i++)t=t.replace(new RegExp("("+escapeRegExp(s[i])+")","gi"),"<b>$1</b>");return t}function htmlEncode(e){return jQuery("<div/>").text(e).html()}function setGtbUrlPreview(e){var t="";(t=e)&&(t=t.replace(/^https?\:\/\//i,""));var s=htmlEncode(t),i=(s=s.replace(/\/$/,"")).length;jQuery("#permalinkSizer").html(s);var r=s=s.replace(/([^https?:\/\/])(\/)/g,"$1 > ");t=s,jQuery("#urlSizer").html(s),jQuery("#murlSizer").html(r);var n=new RegExp("W(.*)$");for(trimmed=!1;jQuery("#urlSizer").width()>566;){var a=s;a=(a=(a=(a=a.substring(0,a.length-1)).trim()).replace(/\>$/,"")).trim(),jQuery("#urlSizer").html(a),s=a,trimmed=!0}trimmed&&(s+=" ...",jQuery("#urlSizer").html(s)),info=i+" characters, ",jQuery("#urlInfo").html(s.length+" characters, "+jQuery("#urlSizer").width()+" pixels"),jQuery("#urlSizer").width()<=584?jQuery("#urlInfo").html(info+'<span style="color:green;">'+jQuery("#urlSizer").width()+"/584 pixels</span>"):jQuery("#urlInfo").html(info+'<span style="color:red;">'+jQuery("#urlSizer").width()+"/584 pixels</span>"),jQuery("#techblissonlineSnippetUrl").html(s),mtrimmed=!1;for(var l=r;r.length>42;)r=jQuery.trim(r.replace(" ...","")),(l=(l=(l=jQuery.trim(l.replace(n,""))).trim()).replace(/\>$/,"")).length>=42&&(l=(l=jQuery.trim(r.replace(" ...",""))).substring(0,l.length-1)),l=l.trim(),r=l+=" ...",mtrimmed=!0;mtrimmed&&jQuery("#murlSizer").html(r),info=r.length+" characters, ",jQuery("#murlInfo").html(r.length+" characters, "+jQuery("#murlSizer").width()+" pixels"),jQuery("#murlSizer").width()<=282?jQuery("#murlInfo").html(info+'<span style="color:green;">'+jQuery("#urlSizer").width()+" pixels</span>"):jQuery("#murlInfo").html(info+'<span style="color:red;">'+jQuery("#murlSizer").width()+" pixels</span>"),jQuery("#techblissonlineMSnippetUrl").html(r)}function setUrlPreview(){var e=jQuery.trim(jQuery("#pspHomePermalink").text())+"slug-name/",t=!1;if(window.wpEditorL10n&&wpEditorL10n.tinymce&&wpEditorL10n.tinymce.settings&&(t=wpEditorL10n.tinymce.settings),jQuery("#editable-post-name").length){e=jQuery.trim(jQuery("#sample-permalink").text());var s=jQuery.trim(jQuery("#editable-post-name").text());e=(e=e.replace(s,"")).replace(/\/$/g,"")}else jQuery("#name").length?e=jQuery.trim(jQuery("#pspPostPermalink").text()):jQuery("#slug").length?e=jQuery.trim(jQuery("#pspPostPermalink").text()):t&&wp.data&&wp.data.select&&(e=wp.data.select("core/editor").getPermalink(),wp.data.subscribe(function(){setGtbUrlPreview(wp.data.select("core/editor").getPermalink())}));if(jQuery("#new-post-slug").length>0)e+=jQuery("#new-post-slug").val();else if(jQuery("#editable-post-name-full").length){e+=jQuery("#editable-post-name-full").text()}e&&(e=e.replace(/^https?\:\/\//i,""));var i=htmlEncode(e),r=i.length;r=(i=i.replace(/\/$/,"")).length;jQuery("#permalinkSizer").html(i);var n=i=i.replace(/([^https?:\/\/])(\/)/g,"$1 > ");e=i,jQuery("#urlSizer").html(i),jQuery("#murlSizer").html(n);var a=new RegExp("W(.*)$");for(trimmed=!1;jQuery("#urlSizer").width()>584;){var l=i;l=(l=(l=(l=l.substring(0,l.length-1)).trim()).replace(/\>$/,"")).trim(),jQuery("#urlSizer").html(l),i=l,trimmed=!0}trimmed&&(i+=" ..."),info=r+" characters, ",jQuery("#urlInfo").html(r+" characters, "+jQuery("#urlSizer").width()+" pixels"),jQuery("#urlSizer").width()<=584?jQuery("#urlInfo").html(info+'<span style="color:green;">'+jQuery("#urlSizer").width()+"/584 pixels</span>"):jQuery("#urlInfo").html(info+'<span style="color:red;">'+jQuery("#urlSizer").width()+"/584 pixels</span>"),jQuery("#techblissonlineSnippetUrl").html(i),mtrimmed=!1;for(var o=n;o.length>42;)n=jQuery.trim(n.replace(" ...","")),(o=(o=(o=jQuery.trim(o.replace(a,""))).trim()).replace(/\>$/,"")).length>=42&&(o=(o=jQuery.trim(n.replace(" ...",""))).substring(0,o.length-1)),o=o.trim(),n=o+=" ...",mtrimmed=!0;mtrimmed&&jQuery("#murlSizer").html(n),info=n.length+" characters, ",jQuery("#murlInfo").html(n.length+" characters, "+jQuery("#murlSizer").width()+" pixels"),jQuery("#murlSizer").width()<=282?jQuery("#murlInfo").html(info+'<span style="color:green;">'+jQuery("#urlSizer").width()+" pixels</span>"):jQuery("#murlInfo").html(info+'<span style="color:red;">'+jQuery("#murlSizer").width()+" pixels</span>"),jQuery("#techblissonlineMSnippetUrl").html(n)}function stripTrailingSlash(e){return"/"==e.substr(-1)?e.substr(0,e.length-1):e}function setGtbTitlePreview(e,t){var s=jQuery("#psp_seo_meta\\[titleformat\\]").val(),i=!1,r=!1;jQuery("#psp_seo_meta\\[disable_title_format\\]:checked").length>0&&(i=!0),jQuery("#psp_seo_meta\\[disable_psp\\]:checked").length>0&&(r=!0),i&&(s="%seo_title%"),r&&(s="%wp_title%");var n=jQuery("#pspPostTypeArrayFormat").text(),a=JSON.parse(n),l=jQuery("#psp_seo_meta\\[title\\]"),o=s.replace("%seo_title%",e);if(""===e&&(o=o.replace("%seo_title%",l.attr("placeholder"))),o=(o=(o=(o=(o=(o=o.replace("%wp_title%",a.wp_title)).replace("%site_name%",a.site_name)).replace("%site_description%",a.site_description)).replace("%category%",t)).replace("%taxonomy%",t)).replace(/%sep%/g,a.sep),""!==(o=(o=jQuery.trim(o)).trim(a.sep))){var p=htmlEncode(o),c=p;jQuery("#titleSizer").html(p),jQuery("#actualTitleSizer").html(p);var d=new RegExp("sw+(.*)$");trimmed=!1;for(var u=p;jQuery("#titleSizer").width()>584;)p=jQuery.trim(p.replace(" ...","")),(u=jQuery.trim(u.replace(d,""))).length>=p.length&&(u=u.substring(0,u.length-1)),p=u+" ...",jQuery("#titleSizer").html(p),trimmed=!0;trimmed,jQuery("#titleSizer").html(p),mtrimmed=!1;for(var h=c;h.length>78;)c=jQuery.trim(c.replace(" ...","")),(h=jQuery.trim(h.replace(d,""))).length>=78&&(h=(h=jQuery.trim(h.replace(" ...",""))).substring(0,h.length-1)),c=h+=" ...",mtrimmed=!0;mtrimmed,jQuery("#mtitleSizer").html(c),info=jQuery("<textarea />").html(p).text().length+" characters, "+wordCount(p)+" words ",jQuery("#titleInfo").html(p.length+" characters, "+jQuery("#titleSizer").width()+" pixels, "+wordCount(p)+" words"),jQuery("#titleSizer").width()<=584?jQuery("#titleInfo").html(info+'<span style="color:green;">'+jQuery("#titleSizer").width()+"/584 pixels</span>"):jQuery("#titleInfo").html(info+'<span style="color:red;">'+jQuery("#titleSizer").width()+"/584 pixels</span>"),minfo=jQuery("<textarea />").html(c).text().length+" characters/ 78 characters "+wordCount(c)+" words ",jQuery("#mtitleInfo").html(c.length+" characters, "+jQuery("#mtitleSizer").width()+" pixels, "+wordCount(c)+" words"),c.length<=78?jQuery("#mtitleInfo").html('<span style="color:green;">'+minfo+"</span> "+jQuery("#mtitleSizer").width()+" pixels"):jQuery("#mtitleInfo").html('<span style="color:red;">'+minfo+"</span> "+jQuery("#mtitleSizer").width()+" pixels"),jQuery("#techblissonlineSnippetTitle").html(p),jQuery("#techblissonlineMSnippetTitle").html(c),setPSPSeoAnalysis()}}function setTitlePreview(){var e,t,s="",i="",r="",n=!1,a="";window.wpEditorL10n&&wpEditorL10n.tinymce&&wpEditorL10n.tinymce.settings&&(n=wpEditorL10n.tinymce.settings);var l=jQuery("#pspPostTypeArrayFormat").text(),o=JSON.parse(l),p=jQuery("#psp_seo_meta\\[titleformat\\]").val(),c=!1,d=!1,u=!1;jQuery("#psp_seo_meta\\[disable_title_format\\]:checked").length>0&&(c=!0),jQuery("#psp_seo_meta\\[disable_title\\]:checked").length>0&&(d=!0),jQuery("#psp_seo_meta\\[disable_psp\\]:checked").length>0&&(u=!0);a=o.category,p.toLowerCase().indexOf("%wp_title%");var h=jQuery("#title"),m=jQuery("#psp_seo_meta\\[title\\]");i=m.attr("placeholder");var y=jQuery("#psp_seo_meta\\[preferred_tax\\]"),g="categories",j="post_category[]",Q="category";if(y&&y.val()&&"category"!==(Q=jQuery("#psp_seo_meta\\[preferred_tax\\] option:selected").text())&&(g=Q,j="tax_input["+Q+"][]"),h&&(a=pspSortClassicArray(j,Q)),!m.val()||d||u?(jQuery("#title").val()?i=jQuery.trim(jQuery("#title").val()):jQuery("#name").val()?i=jQuery.trim(jQuery("#name").val()):n&&wp.data&&wp.data.select&&(i=wp.data.select("core/editor").getEditedPostAttribute("title"),t=wp.data.select("core/editor").getEditedPostAttribute(g),a="%"+Q+"%",void 0!==t&&t.length>0&&(a=pspSortArray(t,Q)),wp.data.subscribe(function(){i=wp.data.select("core/editor").getEditedPostAttribute("title"),t=wp.data.select("core/editor").getEditedPostAttribute(g),a="%"+Q+"%",void 0!==t&&t.length>0&&(a=pspSortArray(t,Q)),void 0===i&&(m=jQuery("#psp_seo_meta\\[title\\]")),""===i&&(m=jQuery("#psp_seo_meta\\[title\\]"),i=m.attr("placeholder")),a&&setGtbTitlePreview(i,a)})),s=i,(c||u)&&(p="%wp_title%"),s=(s=(s=(s=(s=(s=(s=p.replace("%seo_title%",i)).replace("%wp_title%",i)).replace("%site_name%",o.site_name)).replace("%site_description%",o.site_description)).replace("%taxonomy%",a)).replace("%category%",a)).replace(/%sep%/g,o.sep),s=(s=jQuery.trim(s)).trim(o.sep)):(s=m.val(),r=m.val(),jQuery("#title").val()?i=jQuery.trim(jQuery("#title").val()):jQuery("#name").val()?i=jQuery.trim(jQuery("#name").val()):n&&wp.data&&wp.data.select&&(i=wp.data.select("core/editor").getEditedPostAttribute("title"),e=wp.data.select("core/editor").getEditedPostAttribute(g),a="%"+Q+"%",void 0!==e&&e.length>0&&(a=pspSortArray(e,Q)),wp.data.subscribe(function(){i=wp.data.select("core/editor").getEditedPostAttribute("title"),e=wp.data.select("core/editor").getEditedPostAttribute(g),a="%"+Q+"%",r=m.val(),void 0!==e&&e.length>0&&(a=pspSortArray(e,Q)),r&&a&&setGtbTitlePreview(r,a)})),c&&(p="%seo_title%"),s=(s=(s=(s=(s=(s=(s=p.replace("%seo_title%",r)).replace("%wp_title%",i)).replace("%site_name%",o.site_name)).replace("%site_description%",o.site_description)).replace("%taxonomy%",a)).replace("%category%",a)).replace(/%sep%/g,o.sep),s=(s=jQuery.trim(s)).trim(o.sep)),""!==s){""===i||n||i;var f=htmlEncode(s),w=f;jQuery("#titleSizer").html(f),jQuery("#actualTitleSizer").html(f);var v=new RegExp("sw+(.*)$"),S=f;for(trimmed=!1;jQuery("#titleSizer").width()>584;)f=jQuery.trim(f.replace(" ...","")),(S=jQuery.trim(S.replace(v,""))).length>=f.length&&(S=S.substring(0,S.length-1)),f=S+" ...",jQuery("#titleSizer").text(f),trimmed=!0;trimmed,jQuery("#titleSizer").text(f),jQuery("body").append(jQuery("#titleSizer")).width(),jQuery("body#titleSizer").remove(),info=jQuery("<textarea />").html(f).text().length+" characters, "+wordCount(f)+" words ",jQuery("#titleInfo").html(f.length+" characters, "+jQuery("#titleSizer").width()+" pixels, "+wordCount(f)+" words"),jQuery("#titleSizer").width()<=584?jQuery("#titleInfo").html(info+'<span style="color:green;">'+jQuery("#titleSizer").width()+"/584 pixels</span>"):jQuery("#titleInfo").html(info+'<span style="color:red;">'+jQuery("#titleSizer").width()+"/584 pixels</span>"),jQuery("#techblissonlineSnippetTitle").html(f);var _=w;for(mtrimmed=!1;_.length>78;)w=jQuery.trim(w.replace(" ...","")),(_=jQuery.trim(_.replace(v,""))).length>=78&&(_=(_=jQuery.trim(_.replace(" ...",""))).substring(0,_.length-1)),w=_+=" ...",mtrimmed=!0;mtrimmed,jQuery("#mtitleSizer").text(w),jQuery("body").append(jQuery("#mtitleSizer")).width(),jQuery("body#mtitleSizer").remove(),minfo=jQuery("<textarea />").html(w).text().length+" characters/ 78 characters "+wordCount(w)+" words ",jQuery("#mtitleInfo").html(w.length+" characters, "+jQuery("#mtitleSizer").width()+" pixels, "+wordCount(w)+" words"),w.length<=78?jQuery("#mtitleInfo").html('<span style="color:green;">'+minfo+"</span> "+jQuery("#mtitleSizer").width()+" pixels"):jQuery("#mtitleInfo").html('<span style="color:red;">'+minfo+"</span> "+jQuery("#mtitleSizer").width()+" pixels"),jQuery("#techblissonlineMSnippetTitle").html(w),setPSPSeoAnalysis()}}function setDescriptionPreview(){var e,t=!1,s=jQuery("#psp_seo_meta\\[description\\]");window.wpEditorL10n&&wpEditorL10n.tinymce&&wpEditorL10n.tinymce.settings&&(t=wpEditorL10n.tinymce.settings);var i=jQuery.trim(jQuery("#psp_seo_meta\\[maxsnippet\\]").val()),r=i;parseInt(i)<0&&(i=230,r=285),jQuery.inArray(parseInt(i),[-1,0,1,2,3,4])>-1&&(i=230,r=285),""===i&&(i=230,r=285),i=parseInt(i),r=parseInt(r);var n="",a=!1,l=!1,o=jQuery("#pspPostTypeArrayFormat").text();if(e=JSON.parse(o).autogendesc,jQuery("#psp_seo_meta\\[disable_psp\\]:checked").length>0&&(a=!0),jQuery("#psp_seo_meta\\[disable_description\\]:checked").length>0&&(l=!0),""!==n||a||l||(n=jQuery.trim(jQuery("#psp_seo_meta\\[description\\]").val())),""===n){if(""===n&&t&&wp.data&&wp.data.select){var p=wp.data.select("core/editor").getEditedPostContent();return""!==e&&(n=(n=p.replace(/(<([^>]+)>)/gi,"")).substring(0,r)),n||(n=s.attr("placeholder")),void setGTBDescPreview(n)}var c=jQuery.trim(jQuery("#content").val());if(!s.val()||a||l)return""!==e&&(n=(n=c.replace(/(<([^>]+)>)/gi,"")).substring(0,r)),n||(n=s.attr("placeholder")),void setGTBDescPreview(n)}return n?void setGTBDescPreview(n):void 0}function setGTBDescPreview(e){jQuery("#psp_seo_meta\\[description\\]");var t=e;placeholder_desc=e;var s=jQuery.trim(jQuery("#psp_seo_meta\\[maxsnippet\\]").val()),i=s;parseInt(s)<0&&(s=230,i=285),jQuery.inArray(parseInt(s),[-1,0,1,2,3,4])>-1&&(s=230,i=285),""===s&&(s=230,i=285),s=parseInt(s),i=parseInt(i);var r=htmlEncode(t),n=r+=" ...";jQuery("#descriptionSizer").html(r),jQuery("#mdescriptionSizer").html(n);for(var a=new RegExp("sw+(.*)$"),l=r;l.length>s;)r=jQuery.trim(r.replace(" ...","")),l=jQuery.trim(l.replace(a,"")),t=jQuery.trim(t.replace(a,"")),l.length>=s&&(l=(l=jQuery.trim(l.replace(" ...",""))).substring(0,l.length-1),t=t.substring(0,t.length-1)),l+=" ...";r=l,jQuery("#descriptionSizer").html(r);for(var o=n;o.length>i;)n=jQuery.trim(n.replace(" ...","")),(o=jQuery.trim(o.replace(a,""))).length>=i&&(o=(o=jQuery.trim(o.replace(" ...",""))).substring(0,o.length-1)),o+=" ...";n=o,jQuery("#descriptionSizer").html(n),jQuery("body").append(jQuery("#descriptionSizer")).width(),jQuery("body").append(jQuery("#mdescriptionSizer")).width(),jQuery("body").remove("#descriptionSizer"),jQuery("body").remove("#mdescriptionSizer"),jQuery("#descriptionInfo").html(r.length+" characters, "+jQuery("#descriptionSizer").width()+" pixels, "+wordCount(r)+" words"),info=jQuery("#descriptionSizer").width()+" pixels, "+wordCount(r)+" words ",jQuery("#mdescriptionInfo").html(n.length+" characters, "+jQuery("#mdescriptionSizer").width()+" pixels, "+wordCount(n)+" words"),minfo=jQuery("#mdescriptionSizer").width()+" pixels, "+wordCount(n)+" words ",r.length<=146?jQuery("#descriptionInfo").html(info+'<span style="color:green;">'+r.length+"/~170 characters"):r.length<=160?jQuery("#descriptionInfo").html(info+'<span style="color:orange;">'+r.length+"/~170 characters</span>"):r.length<=166?jQuery("#descriptionInfo").html(info+'<span style="color:purple;">'+r.length+"/~170 characters</span>"):jQuery("#descriptionInfo").html(info+'<span style="color:red;">'+r.length+"/~170 characters</span>"),n.length<=146?jQuery("#mdescriptionInfo").html(minfo+'<span style="color:green;">'+n.length+"/~170 characters"):n.length<=160?jQuery("#mdescriptionInfo").html(minfo+'<span style="color:orange;">'+n.length+"/~170 characters</span>"):n.length<=166?jQuery("#mdescriptionInfo").html(minfo+'<span style="color:purple;">'+n.length+"/~170 characters</span>"):jQuery("#mdescriptionInfo").html(minfo+'<span style="color:red;">'+n.length+"/~170 characters</span>"),jQuery("#techblissonlineSnippetDescription").html(r),jQuery("#techblissonlineMSnippetDescription").html(n)}function updateDateText(){var e=htmlEncode(jQuery.trim(jQuery("#DateText").val()));e.length>0?jQuery("#resultDateText").html(e+" - "):jQuery("#resultDateText").html("")}function setPSPSeoAnalysis(){var e,t=!1,s="",i="";window.wpEditorL10n&&wpEditorL10n.tinymce&&wpEditorL10n.tinymce.settings&&(t=wpEditorL10n.tinymce.settings),t&&wp.data&&wp.data.select?(""==(i=wp.data.select("core/editor").getEditedPostContent())&&(i=wp.data.select("core/editor").getEditedPostAttribute("content")),s=wp.data.select("core/editor").getEditedPostAttribute("title")):(i=jQuery.trim(jQuery("#content").val()),s=jQuery.trim(jQuery("#title").val()));var r=[],n=0;e=i,""!=i&&(i=(i=(i=(i=i.replace(/(<([^>]+)>)/gi,"")).replace(/['"]+/g,"")).replace(/[^a-zA-Z]+/g," ")).toLowerCase(),r=i.split(/[\/\s]+/),n=r.length);var a,l=window.location.hostname,o=!1,p=!1;a=jQuery("<div />",{html:e}).find("a").map(function(){if(jQuery(this).attr("href")&&(-1==jQuery(this).attr("href").indexOf(l)&&(o=!0),-1!==jQuery(this).attr("href").indexOf(l)&&(p=!0)),""!==jQuery(this).text())return jQuery(this).text()}).get();var c;c=jQuery(e).find("img").map(function(){if(jQuery(this).attr("alt")&&""!==jQuery(this).attr("alt"))return jQuery(this).attr("alt")}).get();var d=!1,u=jQuery(e).find("img");void 0!==u&&u.length>0&&(d=!0);var h=!1,m=jQuery("<div />",{html:e}).find("h2, h3, h4, h5, h6");void 0!==m&&m.length>0&&(h=!0);var y;y=jQuery("<div />",{html:e}).find("h1").map(function(){if(""!==jQuery(this).text())return jQuery(this).text()}).get();var g;g=jQuery("<div />",{html:e}).find("h2").map(function(){if(""!==jQuery(this).text())return jQuery(this).text()}).get();var j=jQuery("#urlSizer").html(),Q=jQuery("#techblissonlineSnippetTitle").html(),f=jQuery("#techblissonlineSnippetDescription").val(),w=jQuery("#psp_seo_meta\\[description\\]").val(),v=jQuery("#psp_seo_meta\\[schema_string\\]").val(),S=!1,_=!1;""!==w&&(_=!0),""!==v&&"Invalid JSON Schema"!==v&&(S=!0);var x=jQuery.trim(jQuery("#permalinkSizer").html()),b=jQuery.trim(jQuery("#actualTitleSizer").html());jQuery("#actualTitleSizers").html(b);var z=0,P=0,E=0;""!==x&&(z=x.length),""!==x&&jQuery("#permalinkSizer").width(),""!==b&&(P=jQuery("<textarea />").html(b).text().length),""!==b&&(E=jQuery("#actualTitleSizer").width()),0==E&&(E=jQuery("#actualTitleSizers").width()-1),""!==j&&(j=j.trim());var T=0,k=0,I=0,C=0,A="",L=[0,2,4],U=[1,3,4],D=[],$=jQuery("#psp_seo_meta\\[keywords\\]").val();if(void 0!==$&&(D=$.split(",")),A+='<div class="psp-bs">',A+='<div class="container-fluid">',A+="<h1>Platinum SEO Analysis</h1>",A+='<p>This is a basic content analysis of this page and your focus keywords. Assigning a score does not mean anything and so we do not do that. Rather, make sure that all these basic recommendations are adhered to. We also recommend you to try our <a href="https://techblissonline.com/tools/" target="_blank">Techblissonline SEO Tools</a> for a detailed analysis of your pages and your competitor pages for your focus keywords, co-occuring words (related entities) and improve your content accordingly. </p>',A+='<div class="panel-group">',A+='<div class="row"><div class="col-sm-12">',A+='<div class="panel panel-primary">',A+='<div class="panel-heading">General</div>',A+='<div class="panel-body">',A+="<ul>",z>0&&z<75?A=A+'<li><span class="dashicons dashicons-yes-alt"></span> URL Length is '+z+" characters </li>":z>75&&(A=A+'<li><span class="dashicons dashicons-dismiss"></span> URL lLength is '+z+' characters <a href="#" class="psptip" data-toggle="tooltip" data-placement="top" title="URL might get truncated in Google SERPS if it is more than 75 characters wide. "><sup><span class="dashicons dashicons-info"></span></sup></a></li>'),P>0&&P<70?A=A+'<li><span class="dashicons dashicons-yes-alt"></span> SEO Title lLength is '+P+" characters </li>":P>70&&(A=A+'<li><span class="dashicons dashicons-dismiss"></span> Actual SEO Title lLength is '+P+' characters. <a href="#" class="psptip" data-toggle="tooltip" data-placement="top" title="Title might get truncated in Google SERPS if it is more than 70 characters wide. "><sup><span class="dashicons dashicons-info"></span></sup></a></li>'),E>0&&E<574?A=A+'<li><span class="dashicons dashicons-yes-alt"></span> SEO Title pixel width is '+E+" pixels </li>":E>574&&(A=A+'<li><span class="dashicons dashicons-dismiss"></span> SEO Title pixel width is '+E+' pixels including Title format. <a href="#" class="psptip" data-toggle="tooltip" data-placement="top" title="Title might get truncated in Google SERPS if it is more than 574 pixels wide. "><sup><span class="dashicons dashicons-info"></span></sup></a></li>'),A+=_?'<li><span class="dashicons dashicons-yes-alt"></span> Platinum SEO Description is used </li>':'<li><span class="dashicons dashicons-dismiss"></span> Platinum SEO Description field is not filled in. You may be using auto-generated description. <a href="#" class="psptip" data-toggle="tooltip" data-placement="top" title="Using optimized description improves CTR from search and social engines"><sup><span class="dashicons dashicons-info"></span></sup></a></li>',A+=S?'<li><span class="dashicons dashicons-yes-alt"></span> Json Schema is used on this page using Platinum SEO </li>':'<li><span class="dashicons dashicons-dismiss"></span> Json Schema is not used on this page using Platinum SEO <a href="#" class="psptip" data-toggle="tooltip" data-placement="top" title="Using Json Schema has a positive impact on Google. Use our Schema generator tool to generate and add one in the Advanced SEO section."><sup><span class="dashicons dashicons-info"></span></sup></a></li>',""!=i&&(A=n>0&&n>500?A+'<li><span class="dashicons dashicons-yes-alt"></span> Total number of words in Content is '+n+' <a href="#" class="psptip" data-toggle="tooltip" data-placement="top" title="Content length does not matter as long as user intent is matched for the topic covered. Write related articles and link them internally "><sup><span class="dashicons dashicons-info"></span></sup></a></li>':A+'<li><span class="dashicons dashicons-dismiss"></span> Total number of words in Content is '+n+' <a href="#" class="psptip" data-toggle="tooltip" data-placement="top" title="Content length does not matter as long as user intent is matched for the topic covered. Write related articles and link them internally "><sup><span class="dashicons dashicons-info"></span></sup></a></li>',A+=d?'<li><span class="dashicons dashicons-yes-alt"></span> Images used in Content </li>':'<li><span class="dashicons dashicons-dismiss"></span> Images not used in Content <a href="#" class="psptip" data-toggle="tooltip" data-placement="top" title="Using relevant high quality images can increase user engagement and bring in more traffic"><sup><span class="dashicons dashicons-info"></span></sup></a></li>',A+=p?'<li><span class="dashicons dashicons-yes-alt"></span> Internal links used in content. </li>':'<li><span class="dashicons dashicons-dismiss"></span> Internal links not used in Content <a href="#" class="psptip" data-toggle="tooltip" data-placement="top" title="Linking to other relevant internal resources improves Time on site. "><sup><span class="dashicons dashicons-info"></span></sup></a></li>',A+=o?'<li><span class="dashicons dashicons-yes-alt"></span> External links found in content. </li>':'<li><span class="dashicons dashicons-dismiss"></span> External links not found in Content <a href="#" class="psptip" data-toggle="tooltip" data-placement="top" title="Linking to other relevant external resources as references improves trust on content. "><sup><span class="dashicons dashicons-info"></span></sup></a></li>',h&&(A+='<li><span class="dashicons dashicons-yes-alt"></span> Subheaders like h2 are used in Content </li>')),A+="</ul>",A+="</div>",A+="</div>",A+="</div></div>",(void 0!==D||D.length<1)&&""==$)return A+="</div>",A+="</div></div>",void jQuery("#techblissonlineseoanalysis").html(A);jQuery.each(D,function(e,t){if(T=0,k=0,I=0,C=0,searchlc=t.toLowerCase().trim(),!(""==searchlc||e>4)){if(jQuery.each([y,g,c,a],function(e,t){jQuery.each(t,function(t,s){-1!==s.toLowerCase().trim().indexOf(searchlc)&&(0==e&&(T+=1),1==e&&(k+=1),2==e&&(I+=1),3==e&&(C+=1))})}),jQuery.inArray(parseInt(e),L)>-1&&(A+='<div class="row">'),A+='<div class="col-sm-6">',A=(A+='<div class="panel panel-primary">')+'<div class="panel-heading">'+t+"</div>",A+='<div class="panel-body">',A+="<ul>",j&&(searchlcurl=searchlc.replace(/ /g,"-"),-1!==j.search(searchlcurl)?A+='<li><span class="dashicons dashicons-yes-alt"></span> Used in URL </li>':A+='<li><span class="dashicons dashicons-dismiss"></span> Not used in URL </li>'),Q&&(psplctitle=Q.toLowerCase().trim(),-1!==psplctitle.search(searchlc)?(A+='<li><span class="dashicons dashicons-yes-alt"></span> Used in Title </li>',psplctitle.indexOf(searchlc)<20?A+='<li><span class="dashicons dashicons-yes-alt"></span> Found in the beginning of Title </li>':A+='<li><span class="dashicons dashicons-dismiss"></span> Not found in the beginning of Title </li>'):A+='<li><span class="dashicons dashicons-dismiss"></span> Not used in Title </li>'),f&&(psplcdesc=f.toLowerCase().trim(),-1!==psplcdesc.search(searchlc)?(psplcdesc,A+='<li><span class="dashicons dashicons-yes-alt"></span> Used in Meta Description </li>'):A+='<li><span class="dashicons dashicons-dismiss"></span> Not used in Meta Description </li>'),s&&(psplcwptitle=s.toLowerCase().trim(),-1!==psplcwptitle.search(searchlc)?A+='<li><span class="dashicons dashicons-yes-alt"></span> Used in h1 tag (Wordpress Title) </li>':A+='<li><span class="dashicons dashicons-dismiss"></span> Not used in h1 tag (Wordpress Title) </li>'),A+="</ul>",""==i)return A+="</div>",A+="</div>",A+="</div>",void(jQuery.inArray(parseInt(e),U)>-1&&(A+="</div>"));var l,o=[];o=(l=pspGetCounOfIndices(searchlc,r,!1))[1],pspkd=0,pspkeycounter=0,n>0&&o&&(pspkd=o.length/n*100);var p=l[0];p&&(pspkeycounter=p.length),A+="<ul>",o.length>0?(A=pspkd.toFixed(2)<3?A+'<li><span class="dashicons dashicons-yes-alt"></span> Used in content '+o.length+" time(s) </li>":A+'<li><span class="dashicons dashicons-dismiss"></span> Used in content '+o.length+" time(s) </li>",pspkeycounter>0&&pspkeycounter<6?A=A+'<li><li><span class="dashicons dashicons-yes-alt"></span> Found in first 100 words of content '+pspkeycounter+" time(s) </li>":0==pspkeycounter?A+='<li><span class="dashicons dashicons-dismiss"></span> Not found in first 100 words of content </li>':A=A+'<li><span class="dashicons dashicons-dismiss"></span> Found in first 100 words of content '+pspkeycounter+" time(s) </li>",A=pspkd.toFixed(2)<3?A+'<li><span class="dashicons dashicons-yes-alt"></span> Keyword Density of '+t+" is "+pspkd.toFixed(2):A+'<li><span class="dashicons dashicons-dismiss"></span> Keyword Density of '+t+" is "+pspkd.toFixed(2)):A+='<li><span class="dashicons dashicons-dismiss"></span> Not used in Content </li>',T>0&&(A=A+'<li><span class="dashicons dashicons-yes-alt"></span> Used in other h1 tags '+T+" time(s) </li>"),k>0?A=A+'<li><span class="dashicons dashicons-yes-alt"></span> Used in h2 tags '+k+" time(s) </li>":A+='<li><span class="dashicons dashicons-dismiss"></span> Not used in h2 tags </li>',I>0?A=A+'<li><span class="dashicons dashicons-yes-alt"></span> Used in image alt attributes '+I+" time(s) </li>":A+='<li><span class="dashicons dashicons-dismiss"></span> Not used in image alt attributes </li>',C>0?A=A+'<li><span class="dashicons dashicons-yes-alt"></span> Used in anchor texts '+C+" time(s) </li>":A+='<li><span class="dashicons dashicons-dismiss"></span> Not used in anchor texts </li>',A+="</ul>",A+="</div>",A+="</div>",A+="</div>",jQuery.inArray(parseInt(e),U)>-1&&(A+="</div>")}}),A+="</div>",A+="</div></div>",jQuery("#techblissonlineseoanalysis").html(A)}function pspGetCounOfIndices(e,t,s){if(0==e.length)return[];var i,r=[],n=[],a=[];s||(e=e.toLowerCase()),i=t.length;for(let a=0;a<i;a++)str=t[a],str&&(s||(str=str.toLowerCase()),str.indexOf(e,0)>-1&&(n.push(str),a<100&&r.push(str)));return a.push(r),a.push(n),a}function updateAll(){setUrlPreview(),setTitlePreview(),setDescriptionPreview()}String.prototype.trimEnd=function(e){e=e||" ";for(var t=this.length-1;t>=0&&this.charAt(t)==e;t--);return this.substring(0,t+1)},jQuery(document).ready(function(){jQuery("#URL").keyup(function(){setUrlPreview()}),jQuery(document).on("keyup","#new-post-slug",function(){setUrlPreview()}),jQuery(document).on("click",".cancel, .save",function(){setUrlPreview()}),jQuery('input[name="post_category[]"]').click(function(){setTitlePreview()}),jQuery("input[name^='tax_input[']").click(function(){setTitlePreview()}),jQuery("#psp_seo_meta\\[title\\]").keyup(function(){setTitlePreview()}),jQuery("#title").keyup(function(){setTitlePreview()}),jQuery("#name").keyup(function(){setTitlePreview()}),jQuery("#psp_seo_meta\\[titleformat\\]").bind("change",function(){setTitlePreview()}),jQuery("#psp_seo_meta\\[titleformat\\]").on("change",function(){setTitlePreview()}),jQuery("#psp_seo_meta\\[preferred_tax\\]").on("change",function(){setTitlePreview()}),jQuery("#psp_seo_meta\\[disable_title_format\\]").on("change",function(){setTitlePreview()}),jQuery("#psp_seo_meta\\[disable_title\\]").on("change",function(){setTitlePreview()}),jQuery("#psp_seo_meta\\[disable_psp\\]").on("change",function(){setTitlePreview(),setDescriptionPreview()}),jQuery("#psp_seo_meta\\[disable_description\\]").on("change",function(){setDescriptionPreview()}),jQuery("#psp_seo_meta\\[description\\]").keyup(function(){setDescriptionPreview()}),jQuery("#content").keyup(function(){setDescriptionPreview()}),jQuery("#psp_seo_meta\\[maxsnippet\\]").on("change",function(){setDescriptionPreview()}),jQuery("#DateText").keyup(function(){updateDateText()}),jQuery("#psp_seo_meta\\[keywords\\]").keyup(function(){setPSPSeoAnalysis()}),jQuery("#psp_analyse_btn").on("click",function(){updateAll()}),updateAll()});
psp-include/settings/psp_404_list_renderer.php CHANGED
@@ -31,10 +31,10 @@ a.page-numbers:hover {
31
 
32
  <div class="wrap">
33
 
34
- <h2>Manage 404 Errors:</h2>
35
- <a href="/wp-admin/admin.php?page=platinum-seo-social-pack-by-techblissonline&psptab=psp_permalink#psp_301_limit">404 Settings</a> | <a href="https://techblissonline.com/http-404-error/" target="_blank" rel="noopener">How to handle 404 Errors</a>
36
  <form id="psp-search" action="" method="get">
37
- <div class="tablenav top">
38
  <div class="alignleft actions">
39
 
40
  <input type="hidden" name="page" id="page" value="manager404">
@@ -66,12 +66,12 @@ a.page-numbers:hover {
66
  <table class="form-table">
67
 
68
  <tr id="id-tr" class="form-field hidden">
69
- <th style="width:20%;" scope="row" valign="top"><label for="id-input"><?php esc_html_e('Source ID: ', 'platinum-seo-pack'); ?></label></div></th>
70
  <td><input type="hidden" id="id-input" name="id-input" value="" /></td>
71
  </tr>
72
 
73
  <tr id="source-tr" class="form-field">
74
- <th style="width:20%;" scope="row" valign="top"><label for="source-url-input"><?php esc_html_e('Source URI: ', 'platinum-seo-pack'); ?></label></div></th>
75
  <td><input type="text" id="source-url-input" name="source-url-input" value="" placeholder="<?php esc_html_e('Enter the source URI or URL ', 'platinum-seo-pack'); ?>" /></td>
76
  </tr>
77
 
31
 
32
  <div class="wrap">
33
 
34
+ <h2><?php esc_html_e('Manage 404 Errors:', 'platinum-seo-pack'); ?></h2>
35
+ <a href="<?php echo get_admin_url(get_current_blog_id())."admin.php?page=platinum-seo-social-pack-by-techblissonline&psptab=psp_permalink#psp_301_limit" ?>"> <?php esc_html_e('404 Settings', 'platinum-seo-pack') ?></a> | <a href="https://techblissonline.com/http-404-error/" target="_blank" rel="noopener"><?php esc_html_e('How to handle 404 Errors', 'platinum-seo-pack'); ?></a>
36
  <form id="psp-search" action="" method="get">
37
+ <div class="form-table top">
38
  <div class="alignleft actions">
39
 
40
  <input type="hidden" name="page" id="page" value="manager404">
66
  <table class="form-table">
67
 
68
  <tr id="id-tr" class="form-field hidden">
69
+ <th style="width:20%;" scope="row" valign="top"><label for="id-input"><?php esc_html_e('Source ID: ', 'platinum-seo-pack'); ?></label></th>
70
  <td><input type="hidden" id="id-input" name="id-input" value="" /></td>
71
  </tr>
72
 
73
  <tr id="source-tr" class="form-field">
74
+ <th style="width:20%;" scope="row" valign="top"><label for="source-url-input"><?php esc_html_e('Source URI: ', 'platinum-seo-pack'); ?></label></th>
75
  <td><input type="text" id="source-url-input" name="source-url-input" value="" placeholder="<?php esc_html_e('Enter the source URI or URL ', 'platinum-seo-pack'); ?>" /></td>
76
  </tr>
77
 
psp-include/settings/psp_advanced_metabox_renderer.php CHANGED
@@ -9,7 +9,7 @@ Author URI: https://techblissonline.com/
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
  ?>
@@ -18,7 +18,7 @@ Author URI: https://techblissonline.com/
18
  </tr>
19
 
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
  ?>
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
  ?>
18
  </tr>
19
 
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
  ?>
psp-include/settings/psp_basic_metabox_renderer.php CHANGED
@@ -20,11 +20,11 @@ Author URI: http://techblissonline.com/
20
  </ul>
21
  <br /><br />
22
  <div id="desktop" class="psptab">
23
- <div id="TechblissonlineGoogleSnippet"><div style="max-width:600px;font-family: arial, sans-serif;padding-left: 2px; padding-top:5px;padding-bottom:10px;text-overflow:ellipsis;">
24
  <div style="xcolor:#093; color: #202124; padding-bottom: 2px; font-size: 14px !important;font-style: normal; xline-height: 1.2;line-height: 1.3;text-overflow: ellipsis; overflow: hidden;white-space: nowrap;"><img style="margin: 0 0 0 0; padding: 0 0 0 0px; margin-right: 9px;height='16';width='16';" src="<?php $domainurl = home_url(); echo "https://www.google.com/s2/favicons?domain=".esc_url($domainurl); ?>" /></span><span id="techblissonlineSnippetUrl"></span><img style="margin: 0 0 -2px 0; padding: 0 0 0 4px;" src="<?php $imgurl = plugins_url('snippet-cache.png', __FILE__); echo esc_url($imgurl); ?>" /></div>
25
- <a href="#TB_inline?height=600&amp;width=750&amp;inlineId=psp-preview-box-tbx" class="tbpsp thickbox" style="text-decoration:none;" title="Platinum SEO Preview"><div style="xtext-decoration: underline; text-decoration: none; xcolor: #1a0dab; color: #1a0dab; margin-bottom: 3px;padding-top: 2px; xfont-size: medium; font-size: 20px !important; xline-height: 1.3;line-height: 1.3 !important;"><span id="techblissonlineSnippetTitle"></span></div></a>
26
  <div id="authorPhoto"></div>
27
- <div style="xfont-size: small; font-size: 14px !important; xcolor: #545454;color: #3c4043; xline-height: 1.24;line-height: 1.57;"><span style="color: #808080;" id="techblissonlineSnippetDate"></span><span id="techblissonlineSnippetDescription"></span></div>
28
  </div>
29
  <div style="float:left;margin-top:5px;max-width:600px;"><div class="serpInfo" style="font-size: 13px !important; font-weight: bold;"><?php esc_html_e('Desktop Metrics: ', 'platinum-seo-pack'); ?></div><div class="serpInfo"><?php esc_html_e('Permalink Metrics: ', 'platinum-seo-pack'); ?> <span id="urlInfo"></span></div><div class="serpInfo"><?php esc_html_e('Title Metrics: ', 'platinum-seo-pack'); ?> <span id="titleInfo"></span></div><div class="serpInfo"><?php esc_html_e('Meta Description Metrics: ', 'platinum-seo-pack'); ?> <span id="descriptionInfo"></span></div><a class="permalink" id="tools" href="https://techblissonline.com/tools/" target="_blank">All SEO Tools</a> -
30
  <a class="permalink" id="schemagenerator" href="https://techblissonline.com/tools/json-schema-generator/" target="_blank"><?php esc_html_e('Techblissonline Json Schema Editor', 'platinum-seo-pack'); ?></a>| <a class="permalink" id="seoanalysis" href="https://techblissonline.com/tools/seo-analysis/" target="_blank"><?php esc_html_e('Techblissonline Onpage SEO analysis Tool', 'platinum-seo-pack'); ?></a></div>
@@ -120,7 +120,7 @@ label {
120
  <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 = ""; }
121
  echo "<div class='psp-bs'><input ".esc_attr($distit_checked)." id='psp_seo_meta[disable_title]' name='psp_seo_meta[disable_title]' type='checkbox' data-toggle='toggle' data-on='Off' data-onstyle='default' data-off='On' data-offstyle='success' data-style='ios'/></div>";
122
  ?><?php } ?></th>
123
- <td><input type="text" name="psp_seo_meta[title]" id="psp_seo_meta[title]" value="<?php echo ( isset($psp_seo_meta['title']) ? html_entity_decode(stripcslashes(esc_attr($psp_seo_meta['title']))) : ''); ?>"><br />
124
  <p class="description"><?php esc_html_e('Set SEO Title to be used for this page. Switching this off will mean the default WordPress title will be used.', 'platinum-seo-pack'); ?></p>
125
  </td>
126
  </tr>
@@ -186,4 +186,4 @@ label {
186
  </tr>
187
  <?php } ?>
188
  </table>
189
- </div></div><?php /***psp basic***/ ?>
20
  </ul>
21
  <br /><br />
22
  <div id="desktop" class="psptab">
23
+ <div id="TechblissonlineGoogleSnippet"><div style="max-width:600px;font-family: arial, sans-serif;padding-left: 2px; padding-top:5px;padding-bottom:10px;overflow-x:auto;">
24
  <div style="xcolor:#093; color: #202124; padding-bottom: 2px; font-size: 14px !important;font-style: normal; xline-height: 1.2;line-height: 1.3;text-overflow: ellipsis; overflow: hidden;white-space: nowrap;"><img style="margin: 0 0 0 0; padding: 0 0 0 0px; margin-right: 9px;height='16';width='16';" src="<?php $domainurl = home_url(); echo "https://www.google.com/s2/favicons?domain=".esc_url($domainurl); ?>" /></span><span id="techblissonlineSnippetUrl"></span><img style="margin: 0 0 -2px 0; padding: 0 0 0 4px;" src="<?php $imgurl = plugins_url('snippet-cache.png', __FILE__); echo esc_url($imgurl); ?>" /></div>
25
+ <a href="#TB_inline?height=600&amp;width=750&amp;inlineId=psp-preview-box-tbx" class="tbpsp thickbox" style="text-decoration:none;" title="Platinum SEO Preview"><div style="xtext-decoration: underline; text-decoration: none; xcolor: #1a0dab; color: #1a0dab; margin-bottom: 3px;padding-top: 2px; xfont-size: medium; font-size: 20px !important; xline-height: 1.3;line-height: 1.3 !important;max-width:584px;text-overflow: ellipsis;white-space: nowrap;"><span id="techblissonlineSnippetTitle"></span></div></a>
26
  <div id="authorPhoto"></div>
27
+ <div style="xfont-size: small; font-size: 14px !important; xcolor: #545454;color: #3c4043; xline-height: 1.24;line-height: 1.57;width:584px;"><span style="color: #808080;" id="techblissonlineSnippetDate"></span><span id="techblissonlineSnippetDescription"></span></div>
28
  </div>
29
  <div style="float:left;margin-top:5px;max-width:600px;"><div class="serpInfo" style="font-size: 13px !important; font-weight: bold;"><?php esc_html_e('Desktop Metrics: ', 'platinum-seo-pack'); ?></div><div class="serpInfo"><?php esc_html_e('Permalink Metrics: ', 'platinum-seo-pack'); ?> <span id="urlInfo"></span></div><div class="serpInfo"><?php esc_html_e('Title Metrics: ', 'platinum-seo-pack'); ?> <span id="titleInfo"></span></div><div class="serpInfo"><?php esc_html_e('Meta Description Metrics: ', 'platinum-seo-pack'); ?> <span id="descriptionInfo"></span></div><a class="permalink" id="tools" href="https://techblissonline.com/tools/" target="_blank">All SEO Tools</a> -
30
  <a class="permalink" id="schemagenerator" href="https://techblissonline.com/tools/json-schema-generator/" target="_blank"><?php esc_html_e('Techblissonline Json Schema Editor', 'platinum-seo-pack'); ?></a>| <a class="permalink" id="seoanalysis" href="https://techblissonline.com/tools/seo-analysis/" target="_blank"><?php esc_html_e('Techblissonline Onpage SEO analysis Tool', 'platinum-seo-pack'); ?></a></div>
120
  <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 = ""; }
121
  echo "<div class='psp-bs'><input ".esc_attr($distit_checked)." id='psp_seo_meta[disable_title]' name='psp_seo_meta[disable_title]' type='checkbox' data-toggle='toggle' data-on='Off' data-onstyle='default' data-off='On' data-offstyle='success' data-style='ios'/></div>";
122
  ?><?php } ?></th>
123
+ <td><input type="text" name="psp_seo_meta[title]" placeholder="<?php esc_html_e('Write a brief unique title satisfying user query intent', 'platinum-seo-pack');?>" id="psp_seo_meta[title]" value="<?php echo ( isset($psp_seo_meta['title']) ? html_entity_decode(stripcslashes(esc_attr($psp_seo_meta['title']))) : ''); ?>"><br />
124
  <p class="description"><?php esc_html_e('Set SEO Title to be used for this page. Switching this off will mean the default WordPress title will be used.', 'platinum-seo-pack'); ?></p>
125
  </td>
126
  </tr>
186
  </tr>
187
  <?php } ?>
188
  </table>
189
+ </div></div><?php /***psp basic***/ ?>
psp-include/settings/psp_redirect_404.php CHANGED
@@ -149,9 +149,9 @@ class PspRedirections {
149
  $psp_action = 'addredirect';
150
 
151
  $psp_id = isset($_POST['id-input']) ? sanitize_key($_POST['id-input']) : '';
152
- $psp_source_url = isset($_POST['source-url-input']) ? sanitize_text_field(html_entity_decode($_POST['source-url-input'])) : '';
153
- $psp_redirect_to = isset($_POST['redirect-url-input']) ? esc_url_raw(html_entity_decode($_POST['redirect-url-input'])) : '';
154
- $psp_redirect_code = isset($_POST['psp-redirect-code']) ? sanitize_key($_POST['psp-redirect-code']) : '';
155
 
156
  if ($psp_action == 'addredirect' && !empty($psp_source_url) && !empty($psp_redirect_to) && !empty($psp_redirect_code)) {
157
 
@@ -181,9 +181,9 @@ class PspRedirections {
181
  $psp_id = sanitize_key($psp_id);
182
 
183
  //$psp_source_url = isset($_POST['source-url-input']) ? esc_url_raw(html_entity_decode($_POST['source-url-input'])) : '';
184
- $psp_source_url = isset($_POST["psp-".$psp_id]) ? sanitize_text_field(html_entity_decode($_POST["psp-".$psp_id])) : '';
185
- $psp_redirect_to = isset($_POST['redirect-url-input']) ? esc_url_raw(html_entity_decode($_POST['redirect-url-input'])) : '';
186
- $psp_redirect_code = isset($_POST['psp-redirect-code']) ? sanitize_key($_POST['psp-redirect-code']) : '';
187
 
188
  if ($psp_action == 'addredirect' && !empty($psp_source_url) && !empty($psp_redirect_to) && !empty($psp_redirect_code)) {
189
  //Add new redirect
@@ -397,7 +397,8 @@ class PspRedirections {
397
  //$psp_bad_links_table = $this->psp_bad_links_table;
398
 
399
  $tbl_posts = $wpdb->prefix . "posts";
400
- $tbl_postmeta = $wpdb->prefix . "postmeta";
 
401
  $psp_redirections_tbl = $wpdb->prefix . "psp_redirections";
402
  $psp_redirections_log = $wpdb->prefix . "psp_redirections_log";
403
 
@@ -413,9 +414,9 @@ class PspRedirections {
413
 
414
  $psp_action = isset($_POST['psp_action']) ? sanitize_key($_POST['psp_action']) : '';
415
 
416
- $psp_source_url = isset($_POST['source-url-input']) ? sanitize_text_field(html_entity_decode($_POST['source-url-input'])) : '';
417
- $psp_redirect_to = isset($_POST['redirect-url-input']) ? esc_url_raw(html_entity_decode($_POST['redirect-url-input'])) : '';
418
- $psp_redirect_code = isset($_POST['psp-redirect-code']) ? sanitize_key($_POST['psp-redirect-code']) : '';
419
  $psp_log = isset($_POST['psplog']) ? sanitize_key($_POST['psplog']) : '';
420
 
421
  if (!empty($psp_redir_type) && isset( $_POST['psp_urls_redirect_actions_nonce'] ) && wp_verify_nonce( sanitize_key($_POST['psp_urls_redirect_actions_nonce']), 'do_psp_urls_redirect_actions' )) {
@@ -451,7 +452,9 @@ class PspRedirections {
451
  if (empty($psp_redir_type) && isset( $_POST['psp_posts_redirect_actions_nonce'] ) && wp_verify_nonce( sanitize_key($_POST['psp_posts_redirect_actions_nonce']), 'do_psp_posts_redirect_actions' )) {
452
  if ($psp_action == 'delete' && !empty($psp_id) ) {
453
  delete_post_meta( $psp_id, '_techblissonline_psp_redirect_to_url');
 
454
  delete_post_meta( $psp_id, '_techblissonline_psp_redirect_status_code');
 
455
  }
456
  } else {
457
 
@@ -510,16 +513,18 @@ class PspRedirections {
510
 
511
  $psp_action = isset($_POST['psp_action']) ? sanitize_key($_POST['psp_action']) : '';
512
 
513
- $psp_redirect_to = isset($_POST['redirect-url-input']) ? esc_url_raw(html_entity_decode($_POST['redirect-url-input'])) : '';
514
- $psp_source_url = isset($_POST['source-url-input']) ? sanitize_text_field(html_entity_decode($_POST['source-url-input'])) : '';
515
- $psp_redirect_code = isset($_POST['psp-redirect-code']) ? sanitize_key($_POST['psp-redirect-code']) : '';
516
  $psp_log = isset($_POST['psplog']) ? sanitize_key($_POST['psplog']) : '';
517
 
518
  //Update or Delete SQL here
519
  if (empty($psp_redir_type) && isset( $_POST['psp_posts_redirect_actions_nonce'] ) && wp_verify_nonce( sanitize_key($_POST['psp_posts_redirect_actions_nonce']), 'do_psp_posts_redirect_actions' )) {
520
  if ($psp_action == 'edit' && !empty($psp_redirect_to) && !empty($psp_redirect_code)) {
521
- update_post_meta( $psp_id, '_techblissonline_psp_redirect_to_url', $psp_redirect_to);
522
- update_post_meta( $psp_id, '_techblissonline_psp_redirect_status_code', $psp_redirect_code);
 
 
523
  }
524
  } else if ($psp_redir_type == "pspurls" && isset( $_POST['psp_urls_redirect_actions_nonce'] ) && wp_verify_nonce( sanitize_key($_POST['psp_urls_redirect_actions_nonce']), 'do_psp_urls_redirect_actions' )) {
525
  if($wpdb->get_var("show tables like '$psp_redirections_tbl'") == $psp_redirections_tbl && $psp_action == 'edit') {
@@ -622,7 +627,7 @@ class PspRedirections {
622
 
623
  if (empty($psp_redir_type)) {
624
 
625
- $sql_posts_1 = $wpdb->prepare("SELECT a.ID AS psp_id, a.post_name AS psp_post_name, b.meta_value AS psp_redirect, c. meta_value AS psp_redirect_code FROM $tbl_posts a, $tbl_postmeta b, $tbl_postmeta c WHERE a.ID = b.post_id AND a.ID = c.post_id AND (b.meta_key=%s) AND (c.meta_key=%s)", array('_techblissonline_psp_redirect_to_url', '_techblissonline_psp_redirect_status_code') );
626
  } else {
627
 
628
  if($psp_redir_type == "pspurls") {
@@ -684,10 +689,12 @@ class PspRedirections {
684
  include_once( 'psp_redirect_list_renderer.php' );
685
  }
686
 
687
- public function psp_handle_404() {
688
 
689
  global $wp;
690
  global $wpdb;
 
 
691
 
692
  $req_uri = '';
693
  $req_url = '';
@@ -704,10 +711,19 @@ class PspRedirections {
704
  }
705
  ***/
706
  list( $req_uri ) = explode( '?', $_SERVER['REQUEST_URI'] );
 
707
  if($req_uri) $req_url = home_url($req_uri);
708
  $requested_url = filter_var( $req_url, FILTER_VALIDATE_URL, '' );
709
  //error_log("path to page ".$path_to_page);
710
  //error_log("requested url ".$requested_url);
 
 
 
 
 
 
 
 
711
 
712
  $redirections = array();
713
  $psp_redirections_tbl = $wpdb->prefix . "psp_redirections";
@@ -716,14 +732,16 @@ class PspRedirections {
716
  $do_auto_redirect = isset($psp_redirection_settings['auto_redirection']) ? ($psp_redirection_settings['auto_redirection']) : '';
717
 
718
  if ( is_404() ) {
719
-
720
  if ($do_auto_redirect) {
721
  $this->psp_auto_redirect();
722
  }
723
-
724
  if ( $do_redirect ) {
725
 
726
- $sql_redirections_1 = $wpdb->prepare("SELECT a.id AS psp_id, a.source_url AS psp_post_name, a.dest_url AS psp_redirect, a.redir_code AS psp_redirect_code, a.log_redirect AS psp_log_redirect FROM $psp_redirections_tbl a WHERE a.source_url = %s", $path_to_page );
 
 
727
 
728
  $sql_redirections_2 = $wpdb->prepare("SELECT a.id AS psp_id, a.source_url AS psp_post_name, a.dest_url AS psp_redirect, a.redir_code AS psp_redirect_code, a.log_redirect AS psp_log_redirect FROM $psp_redirections_tbl a WHERE a.source_url = %s", $requested_url );
729
 
@@ -732,7 +750,7 @@ class PspRedirections {
732
  //error_log("nothings exists for path ".$path_to_page);
733
  $redirections = $wpdb->get_results($sql_redirections_2, OBJECT);
734
  //error_log(print_r($redirections, true));
735
- }
736
 
737
  if (!$redirections) {
738
  //error_log("nothings exists for requested url ".$requested_url);
@@ -767,9 +785,9 @@ class PspRedirections {
767
  }
768
 
769
 
770
- //if ($do_auto_redirect) {
771
- // $this->psp_auto_redirect();
772
- //}
773
  //$this->psp_log_404();
774
 
775
  }
@@ -808,6 +826,10 @@ class PspRedirections {
808
  if($req_uri) $req_url = home_url($req_uri);
809
  $requested_url = filter_var( $req_url, FILTER_VALIDATE_URL, '' );
810
 
 
 
 
 
811
  $pspinsert['source_uri'] = !empty($req_uri) ? $req_uri : '';
812
  $pspinsert['source_url'] = !empty($requested_url) ? esc_url_raw($requested_url) : '';
813
 
@@ -865,17 +887,17 @@ class PspRedirections {
865
  ***/
866
  //$requested_url = trim(add_query_arg( $wp->query_vars, home_url( $wp->request ) ));
867
 
868
- //list( $req_uri ) = explode( '?', $_SERVER['REQUEST_URI'] );
869
- //if($req_uri) $req_url = home_url($req_uri);
870
- $req_url = home_url($_SERVER['REQUEST_URI']);
871
  $requested_url = filter_var( $req_url, FILTER_VALIDATE_URL, '' );
872
 
873
  if ( $bots_only ) {
874
  //$requested_url = trim(home_url( $wp->request ));
875
  }
876
 
877
- $pspinsert['source_uri'] = !empty($path_to_page) ? $path_to_page : '';
878
- $pspinsert['source_url'] = !empty($requested_url) ? esc_url_raw($requested_url) : '';
879
 
880
  if (empty($path_to_page) || empty($requested_url)) {
881
 
149
  $psp_action = 'addredirect';
150
 
151
  $psp_id = isset($_POST['id-input']) ? sanitize_key($_POST['id-input']) : '';
152
+ $psp_source_url = isset($_POST['source-url-input']) ? trim(sanitize_text_field(html_entity_decode($_POST['source-url-input']))) : '';
153
+ $psp_redirect_to = isset($_POST['redirect-url-input']) ? trim(esc_url_raw(html_entity_decode($_POST['redirect-url-input']))) : '';
154
+ $psp_redirect_code = isset($_POST['psp-redirect-code']) ? trim(sanitize_key($_POST['psp-redirect-code'])) : '';
155
 
156
  if ($psp_action == 'addredirect' && !empty($psp_source_url) && !empty($psp_redirect_to) && !empty($psp_redirect_code)) {
157
 
181
  $psp_id = sanitize_key($psp_id);
182
 
183
  //$psp_source_url = isset($_POST['source-url-input']) ? esc_url_raw(html_entity_decode($_POST['source-url-input'])) : '';
184
+ $psp_source_url = isset($_POST["psp-".$psp_id]) ? trim(sanitize_text_field(html_entity_decode($_POST["psp-".$psp_id]))) : '';
185
+ $psp_redirect_to = isset($_POST['redirect-url-input']) ? trim(esc_url_raw(html_entity_decode($_POST['redirect-url-input']))) : '';
186
+ $psp_redirect_code = isset($_POST['psp-redirect-code']) ? trim(sanitize_key($_POST['psp-redirect-code'])) : '';
187
 
188
  if ($psp_action == 'addredirect' && !empty($psp_source_url) && !empty($psp_redirect_to) && !empty($psp_redirect_code)) {
189
  //Add new redirect
397
  //$psp_bad_links_table = $this->psp_bad_links_table;
398
 
399
  $tbl_posts = $wpdb->prefix . "posts";
400
+ //$tbl_postmeta = $wpdb->prefix . "postmeta";
401
+ $tbl_postmeta = $wpdb->prefix . "platinumseometa";
402
  $psp_redirections_tbl = $wpdb->prefix . "psp_redirections";
403
  $psp_redirections_log = $wpdb->prefix . "psp_redirections_log";
404
 
414
 
415
  $psp_action = isset($_POST['psp_action']) ? sanitize_key($_POST['psp_action']) : '';
416
 
417
+ $psp_source_url = isset($_POST['source-url-input']) ? trim(sanitize_text_field(html_entity_decode($_POST['source-url-input']))) : '';
418
+ $psp_redirect_to = isset($_POST['redirect-url-input']) ? trim(esc_url_raw(html_entity_decode($_POST['redirect-url-input']))) : '';
419
+ $psp_redirect_code = isset($_POST['psp-redirect-code']) ? trim(sanitize_key($_POST['psp-redirect-code'])) : '';
420
  $psp_log = isset($_POST['psplog']) ? sanitize_key($_POST['psplog']) : '';
421
 
422
  if (!empty($psp_redir_type) && isset( $_POST['psp_urls_redirect_actions_nonce'] ) && wp_verify_nonce( sanitize_key($_POST['psp_urls_redirect_actions_nonce']), 'do_psp_urls_redirect_actions' )) {
452
  if (empty($psp_redir_type) && isset( $_POST['psp_posts_redirect_actions_nonce'] ) && wp_verify_nonce( sanitize_key($_POST['psp_posts_redirect_actions_nonce']), 'do_psp_posts_redirect_actions' )) {
453
  if ($psp_action == 'delete' && !empty($psp_id) ) {
454
  delete_post_meta( $psp_id, '_techblissonline_psp_redirect_to_url');
455
+ delete_metadata( 'platinumseo', $psp_id, '_techblissonline_psp_redirect_to_url');
456
  delete_post_meta( $psp_id, '_techblissonline_psp_redirect_status_code');
457
+ delete_metadata( 'platinumseo', $psp_id, '_techblissonline_psp_redirect_status_code');
458
  }
459
  } else {
460
 
513
 
514
  $psp_action = isset($_POST['psp_action']) ? sanitize_key($_POST['psp_action']) : '';
515
 
516
+ $psp_redirect_to = isset($_POST['redirect-url-input']) ? trim(esc_url_raw(html_entity_decode($_POST['redirect-url-input']))) : '';
517
+ $psp_source_url = isset($_POST['source-url-input']) ? trim(sanitize_text_field(html_entity_decode($_POST['source-url-input']))) : '';
518
+ $psp_redirect_code = isset($_POST['psp-redirect-code']) ? trim(sanitize_key($_POST['psp-redirect-code'])) : '';
519
  $psp_log = isset($_POST['psplog']) ? sanitize_key($_POST['psplog']) : '';
520
 
521
  //Update or Delete SQL here
522
  if (empty($psp_redir_type) && isset( $_POST['psp_posts_redirect_actions_nonce'] ) && wp_verify_nonce( sanitize_key($_POST['psp_posts_redirect_actions_nonce']), 'do_psp_posts_redirect_actions' )) {
523
  if ($psp_action == 'edit' && !empty($psp_redirect_to) && !empty($psp_redirect_code)) {
524
+ //update_post_meta( $psp_id, '_techblissonline_psp_redirect_to_url', $psp_redirect_to);
525
+ //update_post_meta( $psp_id, '_techblissonline_psp_redirect_status_code', $psp_redirect_code);
526
+ update_metadata( 'platinumseo', $psp_id, '_techblissonline_psp_redirect_to_url', $psp_redirect_to);
527
+ update_metadata( 'platinumseo', $psp_id, '_techblissonline_psp_redirect_status_code', $psp_redirect_code);
528
  }
529
  } else if ($psp_redir_type == "pspurls" && isset( $_POST['psp_urls_redirect_actions_nonce'] ) && wp_verify_nonce( sanitize_key($_POST['psp_urls_redirect_actions_nonce']), 'do_psp_urls_redirect_actions' )) {
530
  if($wpdb->get_var("show tables like '$psp_redirections_tbl'") == $psp_redirections_tbl && $psp_action == 'edit') {
627
 
628
  if (empty($psp_redir_type)) {
629
 
630
+ $sql_posts_1 = $wpdb->prepare("SELECT a.ID AS psp_id, a.post_name AS psp_post_name, b.meta_value AS psp_redirect, c. meta_value AS psp_redirect_code FROM $tbl_posts a, $tbl_postmeta b, $tbl_postmeta c WHERE a.ID = b.platinumseo_id AND a.ID = c.platinumseo_id AND (b.meta_key=%s) AND (c.meta_key=%s)", array('_techblissonline_psp_redirect_to_url', '_techblissonline_psp_redirect_status_code') );
631
  } else {
632
 
633
  if($psp_redir_type == "pspurls") {
689
  include_once( 'psp_redirect_list_renderer.php' );
690
  }
691
 
692
+ public function psp_handle_404() {
693
 
694
  global $wp;
695
  global $wpdb;
696
+
697
+ $psp_allowed_protocols = array('http','https');
698
 
699
  $req_uri = '';
700
  $req_url = '';
711
  }
712
  ***/
713
  list( $req_uri ) = explode( '?', $_SERVER['REQUEST_URI'] );
714
+ $req_uri = trim($req_uri);
715
  if($req_uri) $req_url = home_url($req_uri);
716
  $requested_url = filter_var( $req_url, FILTER_VALIDATE_URL, '' );
717
  //error_log("path to page ".$path_to_page);
718
  //error_log("requested url ".$requested_url);
719
+
720
+ if ( $requested_url ) {
721
+ $requested_url = trim(esc_url_raw( $requested_url, $psp_allowed_protocols ));
722
+ }
723
+
724
+ if ( !$requested_url ) {
725
+ return;
726
+ }
727
 
728
  $redirections = array();
729
  $psp_redirections_tbl = $wpdb->prefix . "psp_redirections";
732
  $do_auto_redirect = isset($psp_redirection_settings['auto_redirection']) ? ($psp_redirection_settings['auto_redirection']) : '';
733
 
734
  if ( is_404() ) {
735
+ /***commented in V2.0.9
736
  if ($do_auto_redirect) {
737
  $this->psp_auto_redirect();
738
  }
739
+ ***/
740
  if ( $do_redirect ) {
741
 
742
+ $sql_redirections_1 = $wpdb->prepare("SELECT a.id AS psp_id, a.source_url AS psp_post_name, a.dest_url AS psp_redirect, a.redir_code AS psp_redirect_code, a.log_redirect AS psp_log_redirect FROM $psp_redirections_tbl a WHERE a.source_url IN ( %s, %s)", $path_to_page, $req_uri );
743
+
744
+ //$sql_redirections_1 = $wpdb->prepare("SELECT a.id AS psp_id, a.source_url AS psp_post_name, a.dest_url AS psp_redirect, a.redir_code AS psp_redirect_code, a.log_redirect AS psp_log_redirect FROM $psp_redirections_tbl a WHERE a.source_url = %s", $path_to_page );
745
 
746
  $sql_redirections_2 = $wpdb->prepare("SELECT a.id AS psp_id, a.source_url AS psp_post_name, a.dest_url AS psp_redirect, a.redir_code AS psp_redirect_code, a.log_redirect AS psp_log_redirect FROM $psp_redirections_tbl a WHERE a.source_url = %s", $requested_url );
747
 
750
  //error_log("nothings exists for path ".$path_to_page);
751
  $redirections = $wpdb->get_results($sql_redirections_2, OBJECT);
752
  //error_log(print_r($redirections, true));
753
+ }
754
 
755
  if (!$redirections) {
756
  //error_log("nothings exists for requested url ".$requested_url);
785
  }
786
 
787
 
788
+ if ($do_auto_redirect) {
789
+ $this->psp_auto_redirect();
790
+ }
791
  //$this->psp_log_404();
792
 
793
  }
826
  if($req_uri) $req_url = home_url($req_uri);
827
  $requested_url = filter_var( $req_url, FILTER_VALIDATE_URL, '' );
828
 
829
+ if(!$requested_url) {
830
+ return;
831
+ }
832
+
833
  $pspinsert['source_uri'] = !empty($req_uri) ? $req_uri : '';
834
  $pspinsert['source_url'] = !empty($requested_url) ? esc_url_raw($requested_url) : '';
835
 
887
  ***/
888
  //$requested_url = trim(add_query_arg( $wp->query_vars, home_url( $wp->request ) ));
889
 
890
+ list( $req_uri ) = explode( '?', $_SERVER['REQUEST_URI'] );
891
+ if($req_uri) $req_url = home_url($req_uri);
892
+ //$req_url = home_url($_SERVER['REQUEST_URI']);
893
  $requested_url = filter_var( $req_url, FILTER_VALIDATE_URL, '' );
894
 
895
  if ( $bots_only ) {
896
  //$requested_url = trim(home_url( $wp->request ));
897
  }
898
 
899
+ $pspinsert['source_uri'] = !empty($path_to_page) ? trim($path_to_page) : '';
900
+ $pspinsert['source_url'] = !empty($requested_url) ? trim(esc_url_raw($requested_url)) : '';
901
 
902
  if (empty($path_to_page) || empty($requested_url)) {
903
 
psp-include/settings/psp_redirect_list_renderer.php CHANGED
@@ -38,10 +38,10 @@ a.check:hover {
38
 
39
  <div class="wrap">
40
 
41
- <h2>Redirection Management:</h2>
42
- <a href="/wp-admin/admin.php?page=platinum-seo-social-pack-by-techblissonline&psptab=psp_permalink">Redirection Settings</a> | <a href="https://techblissonline.com/redirection-in-wordpress/" target="_blank" rel="noopener">Manage Redirections in WordPress</a> | <a href="https://techblissonline.com/http-redirection-status-codes-301-302-307-308/" target="_blank" rel="noopener">HTTP Redirection Status Codes</a>
43
  <form id="psp-search" action="" method="get">
44
- <div class="tablenav top">
45
  <div class="alignleft actions">
46
 
47
  <input type="hidden" name="page" id="page" value="redirectionmanager">
@@ -77,7 +77,7 @@ a.check:hover {
77
  <table class="form-table">
78
 
79
  <tr id="source-tr" class="form-field hidden">
80
- <th style="width:20%;" scope="row" valign="top"><label for="source-url-input"><?php esc_html_e('Source URL: ', 'platinum-seo-pack'); ?></label></div></th>
81
  <td><input type="text" id="source-url-input" name="source-url-input" value="" placeholder="<?php esc_html_e('Enter the source URI or URL ', 'platinum-seo-pack'); ?>" /><input type="hidden" id="pspredirtype" name="pspredirtype" value="<?php echo $psp_redir_type ?>" /></td>
82
  </tr>
83
 
@@ -256,8 +256,10 @@ a.check:hover {
256
  $post_psp = get_post($post_psp_id);
257
  $title = !empty($post_ps) ? $post_psp->post_title : '';
258
  if ($psp_redir_type == '') {
259
- $psp_redirect = get_post_meta($post_psp_id, '_techblissonline_psp_redirect_to_url', true);
260
- $psp_redirect_code = get_post_meta($post_psp_id, '_techblissonline_psp_redirect_status_code', true);
 
 
261
  } else {
262
  $psp_redirect = $bad_link->psp_redirect;
263
  $psp_redirect_code = $bad_link->psp_redirect_code;
38
 
39
  <div class="wrap">
40
 
41
+ <h2><?php esc_html_e('Redirection Management:', 'platinum-seo-pack'); ?></h2>
42
+ <a href="<?php echo get_admin_url(get_current_blog_id())."admin.php?page=platinum-seo-social-pack-by-techblissonline&psptab=psp_permalink" ?>"> <?php esc_html_e('Redirection Settings', 'platinum-seo-pack') ?></a> | <a href="https://techblissonline.com/redirection-in-wordpress/" target="_blank" rel="noopener"><?php esc_html_e('Manage Redirections in WordPress', 'platinum-seo-pack'); ?></a> | <a href="https://techblissonline.com/http-redirection-status-codes-301-302-307-308/" target="_blank" rel="noopener"><?php esc_html_e('HTTP Redirection Status Codes', 'platinum-seo-pack'); ?></a>
43
  <form id="psp-search" action="" method="get">
44
+ <div class="form-table top">
45
  <div class="alignleft actions">
46
 
47
  <input type="hidden" name="page" id="page" value="redirectionmanager">
77
  <table class="form-table">
78
 
79
  <tr id="source-tr" class="form-field hidden">
80
+ <th style="width:20%;" scope="row" valign="top"><label for="source-url-input"><?php esc_html_e('Source URL: ', 'platinum-seo-pack'); ?></label></th>
81
  <td><input type="text" id="source-url-input" name="source-url-input" value="" placeholder="<?php esc_html_e('Enter the source URI or URL ', 'platinum-seo-pack'); ?>" /><input type="hidden" id="pspredirtype" name="pspredirtype" value="<?php echo $psp_redir_type ?>" /></td>
82
  </tr>
83
 
256
  $post_psp = get_post($post_psp_id);
257
  $title = !empty($post_ps) ? $post_psp->post_title : '';
258
  if ($psp_redir_type == '') {
259
+ $psp_redirect = get_metadata('platinumseo', $post_psp_id, '_techblissonline_psp_redirect_to_url', true);
260
+ if(!$psp_redirect) $psp_redirect = get_post_meta($post_psp_id, '_techblissonline_psp_redirect_to_url', true);
261
+ $psp_redirect_code = get_metadata('platinumseo', $post_psp_id, '_techblissonline_psp_redirect_status_code', true);
262
+ if(!$psp_redirect_code) $psp_redirect_code = get_post_meta($post_psp_id, '_techblissonline_psp_redirect_status_code', true);
263
  } else {
264
  $psp_redirect = $bad_link->psp_redirect;
265
  $psp_redirect_code = $bad_link->psp_redirect_code;
psp-include/settings/psp_settings.php CHANGED
@@ -20,6 +20,7 @@ class PspSettings {
20
  public $psp_pre_instance;
21
  public $psp_redirect_instance;
22
  public $psp_social_instance;
 
23
 
24
  private $psp_helper;
25
  private $sitename;
@@ -86,6 +87,8 @@ class PspSettings {
86
  $this->psp_redirect_instance = $psp_redirect_instance;
87
  $this->sitename = $psp_helper_instance->get_sitename();
88
 
 
 
89
  $psp_do_rewrite_rules = false;
90
 
91
  $cust_taxonomies = array();
@@ -137,7 +140,7 @@ class PspSettings {
137
  //$this->custom_post_types = get_post_types( array ( '_builtin' => FALSE ) );
138
 
139
  add_action( 'admin_init', array( &$this, 'psp_admin_settings_init' ) );
140
- add_action( 'admin_menu', array( &$this, 'add_admin_menus' ) );
141
 
142
  //Rajesh - 22/06/2017
143
  $psp_settings = get_option('psp_pre_setting');
@@ -479,14 +482,15 @@ class PspSettings {
479
 
480
  //Section
481
  $section_id = 'psp_separator_section';
482
- $section_title = esc_html__( 'Sitewide Title Settings', 'platinum_seo_pack' );
483
  add_settings_section( $section_id, $section_title, array( &$this, 'section_separator_desc' ), $this->psp_general_settings_group );
484
 
485
  //field
486
 
487
  //Separator (Can be used in title and Description formats by specifying %sep%)
488
  //$psp_separators = array ('&dash;', '&ndash;', '&mdash;', '&middot;', '&bull;', '*', '&#8902;', '|', '~', '&laquo;', '&raquo;', '&lt;', '&gt;'); &sstarf; &hyphen; &dash;
489
- $psp_separators = array ('' => 'None', '-' => '-', '&ndash;' => '&ndash;', '&mdash;' => '&mdash;', '&middot;' => '&middot;', '&bull;' => '&bull;', '*' => '*', '|' => '|', '~' => '~', '&laquo;' => '&laquo;', '&raquo;' => '&raquo;', '&lt;' => '&lt;', '&gt;' => '&gt;', '&tilde;' => '&tilde;', '&hearts;' => '&hearts;', '&clubs;' => '&clubs;');
 
490
 
491
  $psp_separator_field = array (
492
  'label_for' => 'psp_'.$setting_name.'_separator',
@@ -545,7 +549,7 @@ class PspSettings {
545
  //Section
546
  $section_id = 'psp_'.$setting_name.'_section';
547
  //$section_title = $setting_name_text.' Settings';
548
- $section_title = sprintf( esc_html__( 'Other %s Settings', 'platinum_seo_pack' ), $setting_name_text );
549
  add_settings_section( $section_id, $section_title, array( &$this, 'section_sitewidemeta_desc' ), $this->psp_general_settings_group );
550
 
551
  //Fields
@@ -767,7 +771,7 @@ class PspSettings {
767
  /************
768
  //sitelinks searchbox Section
769
  $section_id = 'psp_sitelinks_search_section';
770
- $section_title = __( 'Sitelinks Search Box in Google:', 'platinum_seo_pack' );
771
  add_settings_section( $section_id, $section_title, array( &$this, 'section_sitelinks_searchbox_desc' ), $this->psp_general_settings_group );
772
 
773
  //Enable sitelinks searchbox
@@ -798,7 +802,7 @@ class PspSettings {
798
  *******************/
799
  //Credits Section
800
  $section_id = 'psp_credit_section';
801
- $section_title = esc_html__( 'Credits:', 'platinum_seo_pack' );
802
  add_settings_section( $section_id, $section_title, array( &$this, 'section_empty_desc' ), $this->psp_general_settings_group );
803
 
804
  //Enable credits
@@ -825,7 +829,7 @@ class PspSettings {
825
 
826
  //Section
827
  $section_id = 'psp_cleanup_head_section';
828
- $section_title = esc_html__( 'Clean Up HTML Head Section', 'platinum_seo_pack' );
829
  add_settings_section( $section_id, $section_title, array( &$this, 'section_cleanup_head_desc' ), $this->psp_general_settings_group );
830
 
831
  //field
@@ -956,7 +960,7 @@ class PspSettings {
956
  $psp_settings_name = "psp_".$setting_name."_settings";
957
  //Section
958
  $section_id = 'psp_cleanup_comment_section';
959
- $section_title = esc_html__( 'Clean Up Comments Section', 'platinum_seo_pack' );
960
  add_settings_section( $section_id, $section_title, array( &$this, 'section_cleanup_comment_desc' ), $this->psp_general_settings_group );
961
 
962
  //fields
@@ -1021,7 +1025,8 @@ class PspSettings {
1021
 
1022
  $settings['separator'] = sanitize_text_field( htmlentities($settings['separator']) );
1023
 
1024
- $psp_separators = array ( '-', '&ndash;', '&mdash;', '&middot;', '&bull;', '*', '|', '~', '&laquo;', '&raquo;', '&lt;', '&gt;', '&tilde;', '&hearts;', '&clubs;');
 
1025
 
1026
  if (!in_array($settings['separator'], $psp_separators)) {
1027
  $settings['separator'] = '';
@@ -1171,7 +1176,7 @@ class PspSettings {
1171
 
1172
  //Section
1173
  $section_id = 'psp_breadcrumb_section';
1174
- $section_title = esc_html__( 'Breadcrumb Settings', 'platinum_seo_pack' );
1175
  add_settings_section( $section_id, $section_title, array( &$this, 'section_breadcrumb_desc' ), $this->psp_breadcrumb_settings_group );
1176
 
1177
  //yse default settings
@@ -1191,7 +1196,8 @@ class PspSettings {
1191
  //field
1192
 
1193
  //$psp_separators = array ('&dash;', '&ndash;', '&mdash;', '&middot;', '&bull;', '*', '&#8902;', '|', '~', '&laquo;', '&raquo;', '&lt;', '&gt;'); &sstarf; &hyphen; &dash;
1194
- $psp_separators = array ('' => 'None', '-' => '-', '&ndash;' => '&ndash;', '&mdash;' => '&mdash;', '&middot;' => '&middot;', '&bull;' => '&bull;', '*' => '*', '|' => '|', '~' => '~', '&laquo;' => '&laquo;', '&raquo;' => '&raquo;', '&lt;' => '&lt;', '&gt;' => '&gt;', '&tilde;' => '&tilde;', '&hearts;' => '&hearts;', '&clubs;' => '&clubs;');
 
1195
 
1196
  $psp_separator_field = array (
1197
  'label_for' => 'psp_'.$setting_name.'_separator',
@@ -1343,7 +1349,8 @@ class PspSettings {
1343
 
1344
  $settings['separator'] = sanitize_text_field( htmlentities($settings['separator']) );
1345
 
1346
- $psp_separators = array ( '-', '&ndash;', '&mdash;', '&middot;', '&bull;', '*', '|', '~', '&laquo;', '&raquo;', '&lt;', '&gt;', '&tilde;', '&hearts;', '&clubs;');
 
1347
 
1348
  if (!in_array($settings['separator'], $psp_separators)) {
1349
  $settings['separator'] = '';
@@ -1409,7 +1416,7 @@ class PspSettings {
1409
  //Section
1410
  $section_id = 'psp_'.$others_name.'_section';
1411
  //$section_title = $arc_name_text.' Settings';
1412
- $section_title = sprintf( esc_html__( '%s Settings', 'platinum_seo_pack' ), $arc_name_text );
1413
 
1414
  if ($others_name == "search_result") {
1415
 
@@ -1510,7 +1517,7 @@ class PspSettings {
1510
  //Section
1511
  $section_id = 'psp_'.$archive_name.'section';
1512
  //$section_title = $arc_name_text.' Settings';
1513
- $section_title = sprintf( esc_html__( '%s Settings', 'platinum_seo_pack' ), $arc_name_text );
1514
 
1515
  add_settings_section( $section_id, $section_title, array( &$this, 'section_archives_desc' ), $this->psp_archives_settings_group );
1516
 
@@ -1599,7 +1606,7 @@ class PspSettings {
1599
  $noarchive_field_title = "";//esc_html__('Do not show cached link in SERPS: ', 'platinum-seo-pack');
1600
  $nosnippet_field_title = "";//esc_html__('Do not show snippet in SERPS: ', 'platinum-seo-pack');
1601
  //$disable_field_title = 'Disable '.$arc_name_text. ' : ';
1602
- //$disable_field_title = sprintf( esc_html__( 'Disable %s :', 'platinum_seo_pack' ), $arc_name_text );
1603
  $redirect_field_title = esc_html__('Redirect To: ', 'platinum-seo-pack');
1604
  $redirectcode_field_title ="";// esc_html__('Use: ', 'platinum-seo-pack');
1605
 
@@ -1947,7 +1954,7 @@ class PspSettings {
1947
 
1948
  //sitelinks searchbox Section
1949
  $section_id = 'psp_sitelinks_search_section';
1950
- $section_title = esc_html__( 'Sitelinks Search Box in Google', 'platinum_seo_pack' );
1951
  add_settings_section( $section_id, $section_title, array( &$this, 'section_sitelinks_searchbox_desc' ), $this->psp_other_settings_group );
1952
 
1953
  //Enable sitelinks searchbox
@@ -2253,7 +2260,7 @@ class PspSettings {
2253
 
2254
  $section_id = 'psp_'.$tax_name.'_section';
2255
  //$section_title = $tax_name_text.' Settings';
2256
- $section_title = sprintf( esc_html__( '%s Settings', 'platinum_seo_pack' ), $tax_name_text );
2257
 
2258
  $title_field_id = 'psp_'.$tax_name.'_title';
2259
  $desc_field_id = 'psp_'.$tax_name.'_desc';
@@ -2268,7 +2275,7 @@ class PspSettings {
2268
  $title_field_title = esc_html__('Title Format: ', 'platinum-seo-pack');
2269
  $desc_field_title = esc_html__('Meta Description Format: ','platinum-seo-pack');
2270
  $robots_field_title = esc_html__('Meta Robots: ', 'platinum-seo-pack');
2271
- $metabox_field_title = sprintf( esc_html__( 'Hide %s Metabox:', 'platinum_seo_pack' ), $tax_name_text );
2272
 
2273
  //wp_register_script( 'psp-taxtags-js', plugins_url( '/js/psp_post_tags.js', __FILE__ ), array( 'jquery-ui-autocomplete', 'jquery' ) );
2274
  //wp_enqueue_script('psp-taxtags-js');
@@ -2435,8 +2442,8 @@ class PspSettings {
2435
 
2436
  $section_id = 'psp_'.$posttype_name.'_section';
2437
  //$section_title = $posttype_name_text.' Settings';
2438
- $section_title = sprintf( esc_html__( '%s Settings', 'platinum_seo_pack' ), $posttype_name_text );
2439
- if ($posttype_name == "attachment") $section_title = sprintf( esc_html__( '%s (Media) Settings', 'platinum_seo_pack' ), $posttype_name_text );
2440
 
2441
  $title_field_id = 'psp_'.$posttype_name.'_title';
2442
  $desc_field_id = 'psp_'.$posttype_name.'_desc';
@@ -2455,7 +2462,7 @@ class PspSettings {
2455
  $desc_field_title = esc_html__('Meta Description Format: ','platinum-seo-pack');
2456
  $header_field_title = 'Additional '.$posttype_name_text. ' Headers: ';
2457
  $robots_field_title = esc_html__('Meta Robots: ', 'platinum-seo-pack');
2458
- $metabox_field_title = sprintf( esc_html__( 'Hide %s Metabox:', 'platinum_seo_pack' ), $posttype_name_text );
2459
  $breadcrumb_tax_field_title = esc_html__('Taxonomy for breadcrumb trail: ', 'platinum-seo-pack');
2460
 
2461
  //wp_register_script( 'psp-posttags-js', plugins_url( '/js/psp_post_tags.js', __FILE__ ), array('psp-tagit-js') );
@@ -2560,8 +2567,8 @@ class PspSettings {
2560
  function section_404_desc() { esc_html_e('Set the title format for 404 page.', 'platinum-seo-pack'); }
2561
  function section_nofollow_desc() { esc_html_e('These Nofollow settings are applied throughout the site wherever appropriate.', 'platinum-seo-pack'); }
2562
  function section_permalinks_desc() { echo esc_html__('These settings, if checked, will remove the base from taxonomies like Category and other custom taxonomies, if any. If "Remove base" is chosen for Category then the corresponding base will be removed from the permalink structure for categories.', 'platinum-seo-pack'). ' i.e. <code>Category</code>'; }
2563
- function section_redirections_desc() {echo esc_html__('Manage your Redirecions ', 'platinum-seo-pack'). '<a href="/wp-admin/admin.php?page=redirectionmanager">'.esc_html__('here ', 'platinum-seo-pack').'</a>'; }
2564
- function section_404errors_desc() {echo esc_html__('Manage your 404 errors ', 'platinum-seo-pack'). '<a id="404errors" href="/wp-admin/admin.php?page=manager404">'.esc_html__('here ', 'platinum-seo-pack').'</a>'; }
2565
  function section_cleanup_head_desc() { echo esc_html__('Remove unwanted links from HTML', 'platinum-seo-pack'). ' <code>&lt;head&gt;&lt;&#47;head&gt;</code>'.
2566
  esc_html__('Many of these links might not be needed in the head section for most sites and removing these might help reduce page size and also improve crawlability of more imortant links. So you may choose to remove those that are not needed for you site.', 'platinum-seo-pack'); }
2567
  function section_cleanup_comment_desc() { esc_html_e('Strip HTML and anchor tags embedded in comments. Note that these remove the HTML and links embedded in the comments and not the comment author links.', 'platinum-seo-pack'); }
@@ -2789,7 +2796,7 @@ class PspSettings {
2789
  function add_admin_menus() {
2790
  //add_options_page( 'Platinum SEO New Settings', 'My Settings', 'manage_options', $this->psp_plugin_options_key, array( &$this, 'psp_options_page' ) );
2791
  add_menu_page(esc_html__('Techblissonline Platinum SEO and social Pack', 'platinum-seo-pack'), esc_html__('Platinum SEO and Social Pack', 'platinum-seo-pack'), 'manage_options', $this->psp_plugin_options_key, array($this, 'psp_options_page'), plugins_url( 'images/techblissonline-platinum-seo-pack.ico', dirname(dirname(__FILE__) )));
2792
- add_submenu_page($this->psp_plugin_options_key, esc_html__('Techblissonline Platinum SEO and social Pack', 'platinum_seo_pack'), '<span class="dashicons dashicons-admin-settings"></span> '.esc_html__('SEO', 'platinum_seo_pack'), 'manage_options', $this->psp_plugin_options_key);
2793
  $psp_settings = get_option('psp_pre_setting');
2794
  $psp_premium_valid = isset($psp_settings['premium']) ? $psp_settings['premium'] : '';
2795
  $psp_premium_status = isset($psp_settings['psp_premium_license_key_status']) ? $psp_settings['psp_premium_license_key_status'] : '';
@@ -2798,15 +2805,15 @@ class PspSettings {
2798
  //$psp_premium_valid = 1;
2799
  //$psp_premium_status = 1;
2800
  //if ($psp_premium_valid && $psp_premium_status)
2801
- add_submenu_page($this->psp_plugin_options_key, esc_html__('Techblissonline Platinum SEO Social', 'platinum_seo_pack'), '<span class="dashicons dashicons-admin-settings"></span> '.esc_html__('Social', 'platinum_seo_pack'), 'manage_options', 'psp-social-by-techblissonline', array($this->psp_social_instance, 'psp_social_options_page'));
2802
- //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'));
2803
- //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'));
2804
- 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__('SEO - Editors', 'platinum_seo_pack'), 'manage_options', 'psp-tools-by-techblissonline', array($this->psp_tools_instance, 'psp_tools_options_page'));
2805
- 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'), 'manage_options', 'psp-seo-tools-by-techblissonline', array( &$this, 'psp_pre_tools_display_page'));
2806
- $psp_redir_page = add_submenu_page($this->psp_plugin_options_key, esc_html__('Techblissonline Platinum SEO Redirections', 'platinum_seo_pack'), '<span class="dashicons dashicons-admin-tools"></span> '.esc_html__('Redirections', 'platinum_seo_pack'), 'manage_options', 'redirectionmanager', array($this->psp_redirect_instance, 'redir_mgmtpage'));
2807
- $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-admin-tools"></span> '.esc_html__('Manage 404 Errors', 'platinum_seo_pack'), 'manage_options', 'manager404', array($this->psp_redirect_instance, 'manage_404_page'));
2808
- //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'));
2809
- if ($psp_premium_valid) 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__('Premium - Licenses', 'platinum_seo_pack'), 'manage_options', 'pspp-licenses', array($this->psp_pre_instance, 'psp_premium_options_page'));
2810
  }
2811
 
2812
  function psp_pre_tools_display_page() {
@@ -2825,7 +2832,7 @@ class PspSettings {
2825
  wp_enqueue_media();
2826
  wp_enqueue_script( 'psp-meta-box', plugins_url( '/js/pspmetabox.js', __FILE__ ), array( 'jquery-ui-tabs') );
2827
  //wp_enqueue_script( 'psp-image-uploader', plugins_url( '/js/pspmediauploader.js', __FILE__ ), array( 'jquery' ) );
2828
- wp_enqueue_script( 'psp-meta-box-snippet', plugins_url( '/js/snippetpreview.js', __FILE__ ));
2829
  //wp_enqueue_script( 'psp-social', plugins_url( '/js/pspsocialhandler.js', __FILE__ ), array( 'jquery' ) );
2830
  //wp_enqueue_script( 'psp-cm', plugins_url( '/js/cm.js', __FILE__ ), array(), false, true);
2831
 
@@ -2868,7 +2875,9 @@ class PspSettings {
2868
  //available tags array
2869
  $pspavailableTags = ['sep', 'seo_title', 'wp_title', 'site_name', 'site_description'];
2870
  $pspavailableTagsDesc = ['sep', 'seo_title', 'wp_title', 'description', 'seo_description', 'site_name', 'site_description'];
2871
- $psp_seo_meta = get_option( "psp_category_seo_metas_$category_id");
 
 
2872
  $psp_seo_meta['titleformat'] = isset($psp_seo_meta['titleformat']) ? esc_attr($psp_seo_meta['titleformat']) : esc_attr($psp_taxonomy_metabox_title);
2873
  $psp_seo_meta['descformat'] = isset($psp_seo_meta['descformat']) ? esc_attr($psp_seo_meta['descformat']) :'';
2874
 
@@ -2883,7 +2892,9 @@ class PspSettings {
2883
 
2884
  //$psp_seo_meta = array_map( 'esc_attr', $psp_seo_meta );
2885
  $this->psp_taxonomy_meta_original = $psp_seo_meta;
2886
- $psp_social_meta = get_option( "psp_category_social_metas_$category_id");
 
 
2887
  //$psp_social_meta = array_map( 'esc_attr', $psp_social_meta );
2888
  $this->psp_taxonomy_social_meta_original = $psp_social_meta; ?>
2889
 
@@ -2967,7 +2978,9 @@ class PspSettings {
2967
  if (!empty($this->psp_taxonomy_meta_original)) {
2968
  $psp_seo_data_original = $this->psp_taxonomy_meta_original;
2969
  } else {
2970
- $psp_seo_data_original = get_option( "psp_category_seo_metas_$t_id");
 
 
2971
  }
2972
 
2973
  if(!empty($this->psp_taxonomy_social_meta_original)) {
@@ -2997,7 +3010,8 @@ class PspSettings {
2997
  // Sanitize SEO data.
2998
  //$psp_category_seo_data = $this->psp_sanitze_seo_data( $psp_category_seo_data );
2999
  //save the option array
3000
- update_option( "psp_category_seo_metas_$t_id", $psp_category_seo_data );
 
3001
 
3002
  //do not proceed further if only basic seo meta data had to be saved/
3003
  if ($psp_metabox_advanced_hidden) {
@@ -3025,7 +3039,8 @@ class PspSettings {
3025
  // Sanitize Social data.
3026
  //$psp_category_social_data = $this->psp_sanitze_social_data( $psp_category_social_data );
3027
  //save the option array
3028
- update_option( "psp_category_social_metas_$t_id", $psp_category_social_data );
 
3029
 
3030
  }
3031
 
@@ -3043,7 +3058,7 @@ class PspSettings {
3043
  //wp_enqueue_media();
3044
  wp_enqueue_script( 'psp-meta-box', plugins_url( '/js/pspmetabox.js', __FILE__ ), array( 'jquery-ui-tabs') );
3045
  //wp_enqueue_script( 'psp-image-uploader', plugins_url( '/js/pspmediauploader.js', __FILE__ ), array( 'jquery' ) );
3046
- wp_enqueue_script( 'psp-meta-box-snippet', plugins_url( '/js/snippetpreview.js', __FILE__ ));
3047
  //wp_enqueue_script( 'psp-social', plugins_url( '/js/pspsocialhandler.js', __FILE__ ), array( 'jquery' ) );
3048
 
3049
  $psp_cm_json_settings['codeEditor'] = wp_enqueue_code_editor(array('type' => 'json', 'codemirror'=> array('autoRefresh' => true)));
@@ -3089,7 +3104,9 @@ class PspSettings {
3089
  //available tags array
3090
  $pspavailableTags = ['sep', 'seo_title', 'wp_title', 'site_name', 'site_description'];
3091
  $pspavailableTagsDesc = ['sep', 'seo_title', 'wp_title', 'description', 'seo_description', 'site_name', 'site_description'];
3092
- $psp_seo_meta = get_option( "psp_taxonomy_seo_metas_$t_id");
 
 
3093
  $psp_seo_meta['titleformat'] = isset($psp_seo_meta['titleformat']) ? esc_attr($psp_seo_meta['titleformat']) : esc_attr($psp_taxonomy_metabox_title);
3094
  $psp_seo_meta['descformat'] = isset($psp_seo_meta['descformat']) ? esc_attr($psp_seo_meta['descformat']) : '';
3095
 
@@ -3104,7 +3121,10 @@ class PspSettings {
3104
 
3105
  //$psp_seo_meta = array_map( 'esc_attr', $psp_seo_meta );
3106
  $this->psp_taxonomy_meta_original = $psp_seo_meta;
3107
- $psp_social_meta = get_option( "psp_taxonomy_social_metas_$t_id");
 
 
 
3108
  //$psp_social_meta = array_map( 'esc_attr', $psp_social_meta );
3109
  $this->psp_taxonomy_social_meta_original = $psp_social_meta; ?>
3110
  <h3><?php echo '<img src="'.esc_url(plugins_url( 'images/techblissonline-platinum-seo-pack.ico', dirname(dirname(__FILE__) ))).'" />'; ?><?php esc_html_e(' Techblissonline Platinum SEO and Social Meta Box ', 'platinum-seo-pack'); ?></h3>
@@ -3187,7 +3207,9 @@ class PspSettings {
3187
  if (!empty($this->psp_taxonomy_meta_original)) {
3188
  $psp_seo_data_original = $this->psp_taxonomy_meta_original;
3189
  } else {
3190
- $psp_seo_data_original = get_option( "psp_taxonomy_seo_metas_$t_id");
 
 
3191
  }
3192
 
3193
  if(!empty($this->psp_taxonomy_social_meta_original)) {
@@ -3217,7 +3239,8 @@ class PspSettings {
3217
  // Sanitize SEO data.
3218
  //$psp_taxonomy_seo_data = $this->psp_sanitze_seo_data( $psp_taxonomy_seo_data );
3219
  //save the option array
3220
- update_option( "psp_taxonomy_seo_metas_$t_id", $psp_taxonomy_seo_data );
 
3221
 
3222
  //do not proceed further if only basic seo meta data had to be saved/
3223
  if ($psp_metabox_advanced_hidden) {
@@ -3245,7 +3268,8 @@ class PspSettings {
3245
  // Sanitize Social data.
3246
  //$psp_taxonomy_social_data = $this->psp_sanitze_social_data( $psp_taxonomy_social_data );
3247
  //save the option array
3248
- update_option( "psp_taxonomy_social_metas_$t_id", $psp_taxonomy_social_data );
 
3249
 
3250
  }
3251
 
@@ -3258,7 +3282,7 @@ class PspSettings {
3258
  //wp_enqueue_media();
3259
  wp_enqueue_script( 'psp-meta-box', plugins_url( '/js/pspmetabox.js', __FILE__ ), array('jquery', 'jquery-ui-tabs' ) );
3260
  //wp_enqueue_script( 'psp-image-uploader', plugins_url( '/js/pspmediauploader.js', __FILE__ ), array( 'jquery' ) );
3261
- wp_enqueue_script( 'psp-meta-box-snippet', plugins_url( '/js/snippetpreview.js', __FILE__ ));
3262
  //wp_enqueue_script( 'psp-social', plugins_url( '/js/pspsocialhandler.js', __FILE__ ), array( 'jquery' ) );
3263
 
3264
  $psp_cm_json_settings['codeEditor'] = wp_enqueue_code_editor(array('type' => 'json', 'codemirror'=> array('autoRefresh' => true)));
@@ -3331,7 +3355,12 @@ class PspSettings {
3331
 
3332
  $psp_post_meta = array();
3333
  $psp_social_meta = array();
3334
- $wp_post_meta_data_arr = get_post_meta($post->ID);
 
 
 
 
 
3335
  /**********
3336
  foreach ($wp_post_meta_data_arr as $key => $value) {
3337
 
@@ -3388,8 +3417,8 @@ class PspSettings {
3388
  $psp_posttype_noindex = 'on';
3389
  $psp_posttype_nofollow = '';
3390
  } else {
3391
- //$psp_posttype_noindex = '';
3392
- //$psp_posttype_nofollow = '';
3393
 
3394
  if (isset($wp_post_meta_data_arr['_techblissonline_psp_noindex'][0])) {
3395
  $psp_posttype_noindex = !empty($wp_post_meta_data_arr['_techblissonline_psp_noindex'][0]) ? esc_attr($wp_post_meta_data_arr['_techblissonline_psp_noindex'][0]) : '';
@@ -3489,6 +3518,7 @@ class PspSettings {
3489
  $psp_social_meta['tw_card_type'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_card_type'][0]) ? esc_attr($wp_post_meta_data_arr['_techblissonline_psp_tw_card_type'][0]) : '';
3490
  $psp_social_meta['tw_title'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_title'][0]) ? esc_attr($wp_post_meta_data_arr['_techblissonline_psp_tw_title'][0]) : '';
3491
  $psp_social_meta['tw_description'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_description'][0]) ? esc_attr($wp_post_meta_data_arr['_techblissonline_psp_tw_description'][0]) : '';
 
3492
  /**********
3493
  $psp_social_meta['tw_image'] = $wp_post_meta_data_arr['_techblissonline_psp_tw_image'][0];
3494
  $psp_social_meta['tw_image_1'] = $wp_post_meta_data_arr['_techblissonline_psp_tw_image_1'][0];
@@ -3537,7 +3567,7 @@ class PspSettings {
3537
  //$psp_post_meta = array_merge($psp_post_meta, $psp_post_disablers, $psp_social_meta);
3538
  $psp_seo_meta = array_merge((array)$psp_post_meta, (array)$psp_post_disablers);
3539
  $this->psp_post_meta_original = $psp_seo_meta;
3540
- $psp_social_meta = array_merge((array)$psp_social_meta, (array)$psp_post_tw_data_images, (array)$psp_post_social_tw_label_data);
3541
  //$psp_social_meta = array_merge($psp_social_meta, $psp_post_tw_data_images, $psp_post_social_tw_label_data, $psp_post_social_enablers);
3542
  $this->psp_post_social_meta_original = $psp_social_meta;
3543
  $psp_type = "posttype";
@@ -3719,41 +3749,53 @@ class PspSettings {
3719
  //Update the meta fields as separate records in the database.
3720
  if ($psp_metabox_advanced_hidden) {
3721
  if (!empty($psp_post_seo_data['title'])) {
3722
- update_post_meta( $post_id, '_techblissonline_psp_title', $psp_post_seo_data['title'] );
 
3723
  } else {
3724
- delete_post_meta( $post_id, '_techblissonline_psp_title');
 
3725
  }
3726
 
3727
  if (!empty($psp_post_seo_data['titleformat'])) {
3728
- update_post_meta( $post_id, '_techblissonline_psp_titleformat', $psp_post_seo_data['titleformat'] );
 
3729
  } else {
3730
  //update_post_meta( $post_id, '_techblissonline_psp_titleformat', "");
3731
- delete_post_meta( $post_id, '_techblissonline_psp_titleformat');
 
3732
  }
3733
 
3734
  if (!empty($psp_post_seo_data['description'])) {
3735
- update_post_meta( $post_id, '_techblissonline_psp_description', $psp_post_seo_data['description'] );
 
3736
  } else {
3737
- delete_post_meta( $post_id, '_techblissonline_psp_description');
 
3738
  }
3739
 
3740
  if (!empty($psp_post_seo_data['descformat'])) {
3741
- update_post_meta( $post_id, '_techblissonline_psp_descformat', $psp_post_seo_data['descformat'] );
 
3742
  } else {
3743
  //update_post_meta( $post_id, '_techblissonline_psp_descformat', "");
3744
- delete_post_meta( $post_id, '_techblissonline_psp_descformat');
 
3745
  }
3746
 
3747
  if (!empty($psp_post_seo_data['maxsnippet'])) {
3748
- update_post_meta( $post_id, '_techblissonline_psp_maxsnippet', $psp_post_seo_data['maxsnippet'] );
 
3749
  } else {
3750
- delete_post_meta( $post_id, '_techblissonline_psp_maxsnippet');
 
3751
  }
3752
 
3753
  if (!empty($psp_post_seo_data['keywords'])) {
3754
- update_post_meta( $post_id, '_techblissonline_psp_keywords', $psp_post_seo_data['keywords'] );
 
3755
  } else {
3756
- delete_post_meta( $post_id, '_techblissonline_psp_keywords');
 
3757
  }
3758
  return;
3759
  }
@@ -3816,6 +3858,7 @@ class PspSettings {
3816
 
3817
  if ( !empty( $psp_post_social_data['tw_image'] ) ) {
3818
  $psp_post_tw_data_images['tw_image'] = esc_url_raw($psp_post_social_data['tw_image']);
 
3819
  }
3820
  if ( !empty( $psp_post_social_data['tw_image_1'] ) ) {
3821
  $psp_post_tw_data_images['tw_image_1'] = esc_url_raw($psp_post_social_data['tw_image_1']);
@@ -3848,126 +3891,168 @@ class PspSettings {
3848
 
3849
  //Update the meta fields as separate records in the database.
3850
  if (!empty($psp_post_seo_data['title'])) {
3851
- update_post_meta( $post_id, '_techblissonline_psp_title', $psp_post_seo_data['title'] );
 
3852
  } else {
3853
- delete_post_meta( $post_id, '_techblissonline_psp_title');
 
3854
  }
3855
 
3856
  if (!empty($psp_post_seo_data['titleformat'])) {
3857
- update_post_meta( $post_id, '_techblissonline_psp_titleformat', $psp_post_seo_data['titleformat'] );
 
3858
  } else {
3859
  //update_post_meta( $post_id, '_techblissonline_psp_titleformat', "");
3860
- delete_post_meta( $post_id, '_techblissonline_psp_titleformat');
 
3861
  }
3862
 
3863
  if (!empty($psp_post_seo_data['description'])) {
3864
- update_post_meta( $post_id, '_techblissonline_psp_description', $psp_post_seo_data['description'] );
 
3865
  } else {
3866
- delete_post_meta( $post_id, '_techblissonline_psp_description');
 
3867
  }
3868
 
3869
  if (!empty($psp_post_seo_data['descformat'])) {
3870
- update_post_meta( $post_id, '_techblissonline_psp_descformat', $psp_post_seo_data['descformat'] );
 
3871
  } else {
3872
  //update_post_meta( $post_id, '_techblissonline_psp_descformat', "");
3873
- delete_post_meta( $post_id, '_techblissonline_psp_descformat');
 
3874
  }
3875
 
3876
  if (!empty($psp_post_seo_data['maxsnippet'])) {
3877
- update_post_meta( $post_id, '_techblissonline_psp_maxsnippet', $psp_post_seo_data['maxsnippet'] );
 
3878
  } else {
3879
- delete_post_meta( $post_id, '_techblissonline_psp_maxsnippet');
 
3880
  }
3881
 
3882
  if (!empty($psp_post_seo_data['keywords'])) {
3883
- update_post_meta( $post_id, '_techblissonline_psp_keywords', $psp_post_seo_data['keywords'] );
 
3884
  } else {
3885
- delete_post_meta( $post_id, '_techblissonline_psp_keywords');
 
3886
  }
3887
 
3888
  if (!empty($psp_post_seo_data['maxvideo'])) {
3889
- update_post_meta( $post_id, '_techblissonline_psp_maxvideo', $psp_post_seo_data['maxvideo'] );
 
3890
  } else {
3891
- delete_post_meta( $post_id, '_techblissonline_psp_maxvideo');
 
3892
  }
3893
 
3894
  if (!empty($psp_post_seo_data['maximage'])) {
3895
- update_post_meta( $post_id, '_techblissonline_psp_maximage', $psp_post_seo_data['maximage'] );
 
3896
  } else {
3897
- delete_post_meta( $post_id, '_techblissonline_psp_maximage');
 
3898
  }
3899
 
3900
  if (!empty($psp_post_seo_data['canonical_url'])) {
3901
- update_post_meta( $post_id, '_techblissonline_psp_canonical_url', $psp_post_seo_data['canonical_url'] );
 
3902
  } else {
3903
- delete_post_meta( $post_id, '_techblissonline_psp_canonical_url');
 
3904
  }
3905
 
3906
  if (!empty($psp_post_seo_data['schema_string'])) {
3907
- update_post_meta( $post_id, '_techblissonline_psp_schema_string', $psp_post_seo_data['schema_string'] );
 
3908
  } else {
3909
- delete_post_meta( $post_id, '_techblissonline_psp_schema_string');
 
3910
  }
3911
 
3912
  if (!empty($psp_post_seo_data['robots'])) {
3913
- update_post_meta( $post_id, '_techblissonline_psp_robots_meta', $psp_post_seo_data['robots'] );
 
3914
  } else {
3915
- delete_post_meta( $post_id, '_techblissonline_psp_robots_meta');
 
3916
  }
3917
 
3918
  if (!empty($psp_post_seo_data['noindex'])) {
3919
- update_post_meta( $post_id, '_techblissonline_psp_noindex', $psp_post_seo_data['noindex'] );
 
3920
  } else {
3921
  //delete_post_meta( $post_id, '_techblissonline_psp_noindex');
3922
- update_post_meta( $post_id, '_techblissonline_psp_noindex', 0 );
 
 
3923
  }
3924
  if (!empty($psp_post_seo_data['nofollow'])) {
3925
- update_post_meta( $post_id, '_techblissonline_psp_nofollow', $psp_post_seo_data['nofollow'] );
 
3926
  } else {
3927
  //delete_post_meta( $post_id, '_techblissonline_psp_nofollow');
3928
- update_post_meta( $post_id, '_techblissonline_psp_nofollow', 0 );
 
 
3929
  }
3930
 
3931
  if (!empty($psp_post_seo_data['nositemap'])) {
3932
- update_post_meta( $post_id, '_techblissonline_psp_nositemap', $psp_post_seo_data['nositemap'] );
 
3933
  } else {
3934
- delete_post_meta( $post_id, '_techblissonline_psp_nositemap');
 
3935
  }
3936
 
3937
  if (!empty($psp_post_seo_data['noarchive'])) {
3938
- update_post_meta( $post_id, '_techblissonline_psp_noarchive', $psp_post_seo_data['noarchive'] );
 
3939
  } else {
3940
- delete_post_meta( $post_id, '_techblissonline_psp_noarchive');
 
3941
  }
3942
 
3943
  if (!empty($psp_post_seo_data['nosnippet'])) {
3944
- update_post_meta( $post_id, '_techblissonline_psp_nosnippet', $psp_post_seo_data['nosnippet'] );
 
3945
  } else {
3946
- delete_post_meta( $post_id, '_techblissonline_psp_nosnippet');
 
3947
  }
3948
 
3949
  if (!empty($psp_post_seo_data['noimageindex'])) {
3950
- update_post_meta( $post_id, '_techblissonline_psp_noimageidx', $psp_post_seo_data['noimageindex'] );
 
3951
  } else {
3952
- delete_post_meta( $post_id, '_techblissonline_psp_noimageidx');
 
3953
  }
3954
 
3955
  if (!empty($psp_post_seo_data['redirect_to_url'])) {
3956
- update_post_meta( $post_id, '_techblissonline_psp_redirect_to_url', $psp_post_seo_data['redirect_to_url'] );
 
3957
  } else {
3958
- delete_post_meta( $post_id, '_techblissonline_psp_redirect_to_url');
 
3959
  }
3960
 
3961
  if (!empty($psp_post_seo_data['redirect_status_code'])) {
3962
- update_post_meta( $post_id, '_techblissonline_psp_redirect_status_code', $psp_post_seo_data['redirect_status_code'] );
 
3963
  } else {
3964
- delete_post_meta( $post_id, '_techblissonline_psp_redirect_status_code');
 
3965
  }
3966
 
3967
  if (!empty($psp_post_seo_data['preferred_tax'])) {
3968
- update_post_meta( $post_id, '_techblissonline_psp_preferred_taxonomy', $psp_post_seo_data['preferred_tax'] );
 
3969
  } else {
3970
- delete_post_meta( $post_id, '_techblissonline_psp_preferred_taxonomy');
 
3971
  }
3972
 
3973
  //update disable flags
@@ -3982,9 +4067,11 @@ class PspSettings {
3982
  if (!empty($psp_post_seo_data['disable_psp'])) $psp_post_seo_data_disablers['disable_psp'] = $psp_post_seo_data['disable_psp'];
3983
 
3984
  if (isset($psp_post_seo_data_disablers) && !empty($psp_post_seo_data_disablers)) {
3985
- update_post_meta( $post_id, '_techblissonline_psp_disable_flags', $psp_post_seo_data_disablers);
 
3986
  } else {
3987
- delete_post_meta( $post_id, '_techblissonline_psp_disable_flags');
 
3988
  }
3989
  //update social meta data
3990
 
@@ -4007,39 +4094,51 @@ class PspSettings {
4007
  //update_post_meta( $post_id, '_techblissonline_psp_social_enabled', $psp_post_social_enablers);
4008
 
4009
  if (!empty($psp_post_social_data['sc_title'])) {
4010
- update_post_meta( $post_id, '_techblissonline_psp_sc_title', $psp_post_social_data['sc_title'] );
 
4011
  } else {
4012
- delete_post_meta( $post_id, '_techblissonline_psp_sc_title');
 
4013
  }
4014
 
4015
  if (!empty($psp_post_social_data['sc_description'])) {
4016
- update_post_meta( $post_id, '_techblissonline_psp_sc_description', $psp_post_social_data['sc_description'] );
 
4017
  } else {
4018
- delete_post_meta( $post_id, '_techblissonline_psp_sc_description');
 
4019
  }
4020
 
4021
  if (!empty($psp_post_social_data['sc_image'])) {
4022
- update_post_meta( $post_id, '_techblissonline_psp_sc_image', $psp_post_social_data['sc_image'] );
 
4023
  } else {
4024
- delete_post_meta( $post_id, '_techblissonline_psp_sc_image');
 
4025
  }
4026
 
4027
  if (!empty($psp_post_social_data['tw_card_type'])) {
4028
- update_post_meta( $post_id, '_techblissonline_psp_tw_card_type', $psp_post_social_data['tw_card_type'] );
 
4029
  } else {
4030
- delete_post_meta( $post_id, '_techblissonline_psp_tw_card_type');
 
4031
  }
4032
 
4033
  if (!empty($psp_post_social_data['tw_title'])) {
4034
- update_post_meta( $post_id, '_techblissonline_psp_tw_title', $psp_post_social_data['tw_title'] );
 
4035
  } else {
4036
- delete_post_meta( $post_id, '_techblissonline_psp_tw_title');
 
4037
  }
4038
 
4039
  if (!empty($psp_post_social_data['tw_description'])) {
4040
- update_post_meta( $post_id, '_techblissonline_psp_tw_description', $psp_post_social_data['tw_description'] );
 
4041
  } else {
4042
- delete_post_meta( $post_id, '_techblissonline_psp_tw_description');
 
4043
  }
4044
 
4045
  /***********
@@ -4048,150 +4147,205 @@ class PspSettings {
4048
  if (!empty($psp_post_social_data['tw_image_2'])) update_post_meta( $post_id, '_techblissonline_psp_tw_image_2', $psp_post_social_data['tw_image_2'] );
4049
  if (!empty($psp_post_social_data['tw_image_3'])) update_post_meta( $post_id, '_techblissonline_psp_tw_image_3', $psp_post_social_data['tw_image_3'] );
4050
  ************/
4051
-
4052
  if (!empty($psp_post_tw_data_images)) {
4053
  update_post_meta( $post_id, '_techblissonline_psp_tw_images', $psp_post_tw_data_images);
 
4054
  } else {
4055
- delete_post_meta( $post_id, '_techblissonline_psp_tw_images');
 
 
 
 
 
 
 
 
 
4056
  }
4057
  /************
4058
  if (!empty($psp_post_social_data['tw_label_1'])) update_post_meta( $post_id, '_techblissonline_psp_tw_label_1', $psp_post_social_data['tw_label_1'] );
4059
  if (!empty($psp_post_social_data['tw_data_1'])) update_post_meta( $post_id, '_techblissonline_psp_tw_data_1', $psp_post_social_data['tw_data_1'] );
4060
  if (!empty($psp_post_social_data['tw_label_2'])) update_post_meta( $post_id, '_techblissonline_psp_tw_label_2', $psp_post_social_data['tw_label_2'] );
4061
  if (!empty($psp_post_social_data['tw_data_2'])) update_post_meta( $post_id, '_techblissonline_psp_tw_data_2', $psp_post_social_data['tw_data_2'] );
4062
- **********/
4063
 
4064
  if (!empty($psp_post_social_tw_label_data)) {
4065
  update_post_meta( $post_id, '_techblissonline_psp_tw_label_data', $psp_post_social_tw_label_data);
4066
  } else {
4067
  delete_post_meta( $post_id, '_techblissonline_psp_tw_label_data');
4068
  }
4069
-
4070
  if (!empty($psp_post_social_data['tw_creator'])) {
4071
- update_post_meta( $post_id, '_techblissonline_psp_tw_creator', $psp_post_social_data['tw_creator'] );
 
 
4072
  } else {
4073
- delete_post_meta( $post_id, '_techblissonline_psp_tw_creator');
 
4074
  }
4075
 
4076
  if (!empty($psp_post_social_data['tw_imagealt'])) {
4077
- update_post_meta( $post_id, '_techblissonline_psp_tw_imagealt', $psp_post_social_data['tw_imagealt'] );
 
4078
  } else {
4079
- delete_post_meta( $post_id, '_techblissonline_psp_tw_imagealt');
 
4080
  }
4081
 
4082
  if (!empty($psp_post_social_data['tw_player'])) {
4083
- update_post_meta( $post_id, '_techblissonline_psp_tw_player', $psp_post_social_data['tw_player'] );
 
4084
  } else {
4085
- delete_post_meta( $post_id, '_techblissonline_psp_tw_player');
 
4086
  }
4087
 
4088
  if (!empty($psp_post_social_data['tw_player_stream'])) {
4089
- update_post_meta( $post_id, '_techblissonline_psp_tw_player_stream', $psp_post_social_data['tw_player_stream'] );
 
4090
  } else {
4091
- delete_post_meta( $post_id, '_techblissonline_psp_tw_player_stream');
 
4092
  }
4093
 
4094
  if (!empty($psp_post_social_data['tw_player_width'])) {
4095
- update_post_meta( $post_id, '_techblissonline_psp_tw_player_width', $psp_post_social_data['tw_player_width']);
 
4096
  } else {
4097
- delete_post_meta( $post_id, '_techblissonline_psp_tw_player_width');
 
4098
  }
4099
 
4100
  if (!empty($psp_post_social_data['tw_player_height'])) {
4101
- update_post_meta( $post_id, '_techblissonline_psp_tw_player_height', $psp_post_social_data['tw_player_height']);
 
4102
  } else {
4103
- delete_post_meta( $post_id, '_techblissonline_psp_tw_player_height');
 
4104
  }
4105
 
4106
  if (!empty($psp_post_social_data['tw_app_country'])) {
4107
- update_post_meta( $post_id, '_techblissonline_psp_tw_app_country', $psp_post_social_data['tw_app_country']);
 
4108
  } else {
4109
- delete_post_meta( $post_id, '_techblissonline_psp_tw_app_country');
 
4110
  }
4111
 
4112
  if (!empty($psp_post_social_data['tw_app_name_iphone'])) {
4113
- update_post_meta( $post_id, '_techblissonline_psp_tw_app_name_iphone', $psp_post_social_data['tw_app_name_iphone']);
 
4114
  } else {
4115
- delete_post_meta( $post_id, '_techblissonline_psp_tw_app_name_iphone');
 
4116
  }
4117
 
4118
  if (!empty($psp_post_social_data['tw_app_id_iphone'])) {
4119
- update_post_meta( $post_id, '_techblissonline_psp_tw_app_id_iphone', $psp_post_social_data['tw_app_id_iphone']);
 
4120
  } else {
4121
- delete_post_meta( $post_id, '_techblissonline_psp_tw_app_id_iphone');
 
4122
  }
4123
 
4124
  if (!empty($psp_post_social_data['tw_app_url_iphone'])) {
4125
- update_post_meta( $post_id, '_techblissonline_psp_tw_app_url_iphone', $psp_post_social_data['tw_app_url_iphone']);
 
4126
  } else {
4127
- delete_post_meta( $post_id, '_techblissonline_psp_tw_app_url_iphone');
 
4128
  }
4129
 
4130
  if (!empty($psp_post_social_data['tw_app_name_ipad'])) {
4131
- update_post_meta( $post_id, '_techblissonline_psp_tw_app_name_ipad', $psp_post_social_data['tw_app_name_ipad']);
 
4132
  } else {
4133
- delete_post_meta( $post_id, '_techblissonline_psp_tw_app_name_ipad');
 
4134
  }
4135
  if (!empty($psp_post_social_data['tw_app_id_ipad'])) {
4136
- update_post_meta( $post_id, '_techblissonline_psp_tw_app_id_ipad', $psp_post_social_data['tw_app_id_ipad']);
 
4137
  } else {
4138
- delete_post_meta( $post_id, '_techblissonline_psp_tw_app_id_ipad');
 
4139
  }
4140
  if (!empty($psp_post_social_data['tw_app_url_ipad'])) {
4141
- update_post_meta( $post_id, '_techblissonline_psp_tw_app_url_ipad', $psp_post_social_data['tw_app_url_ipad']);
 
4142
  } else {
4143
- delete_post_meta( $post_id, '_techblissonline_psp_tw_app_url_ipad');
 
4144
  }
4145
 
4146
  if (!empty($psp_post_social_data['tw_app_name_googleplay'])) {
4147
- update_post_meta( $post_id, '_techblissonline_psp_tw_app_name_googleplay', $psp_post_social_data['tw_app_name_googleplay']);
 
4148
  } else {
4149
- delete_post_meta( $post_id, '_techblissonline_psp_tw_app_name_googleplay');
 
4150
  }
4151
  if (!empty($psp_post_social_data['tw_app_id_googleplay'])) {
4152
- update_post_meta( $post_id, '_techblissonline_psp_tw_app_id_googleplay', $psp_post_social_data['tw_app_id_googleplay']);
 
4153
  } else {
4154
- delete_post_meta( $post_id, '_techblissonline_psp_tw_app_id_googleplay');
 
4155
  }
4156
  if (!empty($psp_post_social_data['tw_app_url_googleplay'])) {
4157
- update_post_meta( $post_id, '_techblissonline_psp_tw_app_url_googleplay', $psp_post_social_data['tw_app_url_googleplay']);
 
4158
  } else {
4159
- delete_post_meta( $post_id, '_techblissonline_psp_tw_app_url_googleplay');
 
4160
  }
4161
 
4162
  if (!empty($psp_post_social_data['fb_og_type'])){
4163
- update_post_meta( $post_id, '_techblissonline_psp_fb_og_type', $psp_post_social_data['fb_og_type'] );
 
4164
  } else {
4165
- delete_post_meta( $post_id, '_techblissonline_psp_fb_og_type');
 
4166
  }
4167
 
4168
  if (!empty($psp_post_social_data['fb_title'])) {
4169
- update_post_meta( $post_id, '_techblissonline_psp_fb_title', $psp_post_social_data['fb_title'] );
 
4170
  } else {
4171
- delete_post_meta( $post_id, '_techblissonline_psp_fb_title');
 
4172
  }
4173
 
4174
  if (!empty($psp_post_social_data['fb_description'])) {
4175
- update_post_meta( $post_id, '_techblissonline_psp_fb_description', $psp_post_social_data['fb_description'] );
 
4176
  } else {
4177
- delete_post_meta( $post_id, '_techblissonline_psp_fb_description');
 
4178
  }
4179
  if (!empty($psp_post_social_data['fb_image'])) {
4180
- update_post_meta( $post_id, '_techblissonline_psp_fb_image', $psp_post_social_data['fb_image'] );
 
4181
  } else {
4182
- delete_post_meta( $post_id, '_techblissonline_psp_fb_image');
 
4183
  }
4184
  //if (isset($psp_post_social_data['fb_ogtype_properties'])) update_post_meta( $post_id, '_techblissonline_psp_fb_ogtype_properties', $psp_post_social_data['fb_ogtype_properties'] );
4185
  if (!empty($psp_post_fb_ogtype_properties)) {
4186
- update_post_meta( $post_id, '_techblissonline_psp_fb_ogtype_properties', $psp_post_fb_ogtype_properties );
 
4187
  } else {
4188
- delete_post_meta( $post_id, '_techblissonline_psp_fb_ogtype_properties');
 
4189
  }
4190
  //if (isset($psp_post_social_data['fb_media_properties'])) update_post_meta( $post_id, '_techblissonline_psp_fb_media_properties', $psp_post_social_data['fb_media_properties'] );
4191
  if (!empty($psp_post_fb_media_properties)) {
4192
- update_post_meta( $post_id, '_techblissonline_psp_fb_media_properties', $psp_post_fb_media_properties );
 
4193
  } else {
4194
- delete_post_meta( $post_id, '_techblissonline_psp_fb_media_properties');
 
4195
  }
4196
 
4197
  //update google sitemap generator
@@ -4894,7 +5048,7 @@ class PspSettings {
4894
  $psp_category_slugs[] = $category->slug;
4895
  } else {
4896
  //$psp_category_slugs[] = trim( get_category_parents( $category->cat_ID, false, '/', true ), '/' );
4897
- $psp_category_slugs[] = trim( get_term_parents_list( $category->term_id, $tax_name, array('separator' => '/', 'link' => false, 'format' => 'slug')) );
4898
  }
4899
  //}
4900
  }
20
  public $psp_pre_instance;
21
  public $psp_redirect_instance;
22
  public $psp_social_instance;
23
+ public $psp_import_instance;
24
 
25
  private $psp_helper;
26
  private $sitename;
87
  $this->psp_redirect_instance = $psp_redirect_instance;
88
  $this->sitename = $psp_helper_instance->get_sitename();
89
 
90
+ $this->psp_import_instance = PspImporter::get_instance();
91
+
92
  $psp_do_rewrite_rules = false;
93
 
94
  $cust_taxonomies = array();
140
  //$this->custom_post_types = get_post_types( array ( '_builtin' => FALSE ) );
141
 
142
  add_action( 'admin_init', array( &$this, 'psp_admin_settings_init' ) );
143
+ add_action( 'admin_menu', array( &$this, 'add_admin_menus' ), 9 );
144
 
145
  //Rajesh - 22/06/2017
146
  $psp_settings = get_option('psp_pre_setting');
482
 
483
  //Section
484
  $section_id = 'psp_separator_section';
485
+ $section_title = esc_html__( 'Sitewide Title Settings', 'platinum-seo-pack' );
486
  add_settings_section( $section_id, $section_title, array( &$this, 'section_separator_desc' ), $this->psp_general_settings_group );
487
 
488
  //field
489
 
490
  //Separator (Can be used in title and Description formats by specifying %sep%)
491
  //$psp_separators = array ('&dash;', '&ndash;', '&mdash;', '&middot;', '&bull;', '*', '&#8902;', '|', '~', '&laquo;', '&raquo;', '&lt;', '&gt;'); &sstarf; &hyphen; &dash;
492
+ //$psp_separators = array ('' => 'None', '-' => '-', '&ndash;' => '&ndash;', '&mdash;' => '&mdash;', '&middot;' => '&middot;', '&bull;' => '&bull;', '*' => '*', '|' => '|', '~' => '~', '&laquo;' => '&laquo;', '&raquo;' => '&raquo;', '&lt;' => '&lt;', '&gt;' => '&gt;', '&tilde;' => '&tilde;', '&hearts;' => '&hearts;', '&clubs;' => '&clubs;');
493
+ $psp_separators = array ('' => 'None', '-' => '-', '&ndash;' => '&ndash;', '&mdash;' => '&mdash;', '&middot;' => '&middot;', '&bull;' => '&bull;', '*' => '*', '|' => '|', '~' => '~', '&laquo;' => '&laquo;', '&raquo;' => '&raquo;', '&lt;' => '&lt;', '&gt;' => '&gt;', '&tilde;' => '&tilde;', '&hearts;' => '&hearts;', '&clubs;' => '&clubs;', ':' => ':', '★' => '★');
494
 
495
  $psp_separator_field = array (
496
  'label_for' => 'psp_'.$setting_name.'_separator',
549
  //Section
550
  $section_id = 'psp_'.$setting_name.'_section';
551
  //$section_title = $setting_name_text.' Settings';
552
+ $section_title = sprintf( esc_html__( 'Other %s Settings', 'platinum-seo-pack' ), $setting_name_text );
553
  add_settings_section( $section_id, $section_title, array( &$this, 'section_sitewidemeta_desc' ), $this->psp_general_settings_group );
554
 
555
  //Fields
771
  /************
772
  //sitelinks searchbox Section
773
  $section_id = 'psp_sitelinks_search_section';
774
+ $section_title = __( 'Sitelinks Search Box in Google:', 'platinum-seo-pack' );
775
  add_settings_section( $section_id, $section_title, array( &$this, 'section_sitelinks_searchbox_desc' ), $this->psp_general_settings_group );
776
 
777
  //Enable sitelinks searchbox
802
  *******************/
803
  //Credits Section
804
  $section_id = 'psp_credit_section';
805
+ $section_title = esc_html__( 'Credits:', 'platinum-seo-pack' );
806
  add_settings_section( $section_id, $section_title, array( &$this, 'section_empty_desc' ), $this->psp_general_settings_group );
807
 
808
  //Enable credits
829
 
830
  //Section
831
  $section_id = 'psp_cleanup_head_section';
832
+ $section_title = esc_html__( 'Clean Up HTML Head Section', 'platinum-seo-pack' );
833
  add_settings_section( $section_id, $section_title, array( &$this, 'section_cleanup_head_desc' ), $this->psp_general_settings_group );
834
 
835
  //field
960
  $psp_settings_name = "psp_".$setting_name."_settings";
961
  //Section
962
  $section_id = 'psp_cleanup_comment_section';
963
+ $section_title = esc_html__( 'Clean Up Comments Section', 'platinum-seo-pack' );
964
  add_settings_section( $section_id, $section_title, array( &$this, 'section_cleanup_comment_desc' ), $this->psp_general_settings_group );
965
 
966
  //fields
1025
 
1026
  $settings['separator'] = sanitize_text_field( htmlentities($settings['separator']) );
1027
 
1028
+ //$psp_separators = array ( '-', '&ndash;', '&mdash;', '&middot;', '&bull;', '*', '|', '~', '&laquo;', '&raquo;', '&lt;', '&gt;', '&tilde;', '&hearts;', '&clubs;');
1029
+ $psp_separators = array ( '-', '&ndash;', '&mdash;', '&middot;', '&bull;', '*', '|', '~', '&laquo;', '&raquo;', '&lt;', '&gt;', '&tilde;', '&hearts;', '&clubs;', ':', '★');
1030
 
1031
  if (!in_array($settings['separator'], $psp_separators)) {
1032
  $settings['separator'] = '';
1176
 
1177
  //Section
1178
  $section_id = 'psp_breadcrumb_section';
1179
+ $section_title = esc_html__( 'Breadcrumb Settings', 'platinum-seo-pack' );
1180
  add_settings_section( $section_id, $section_title, array( &$this, 'section_breadcrumb_desc' ), $this->psp_breadcrumb_settings_group );
1181
 
1182
  //yse default settings
1196
  //field
1197
 
1198
  //$psp_separators = array ('&dash;', '&ndash;', '&mdash;', '&middot;', '&bull;', '*', '&#8902;', '|', '~', '&laquo;', '&raquo;', '&lt;', '&gt;'); &sstarf; &hyphen; &dash;
1199
+ //$psp_separators = array ('' => 'None', '-' => '-', '&ndash;' => '&ndash;', '&mdash;' => '&mdash;', '&middot;' => '&middot;', '&bull;' => '&bull;', '*' => '*', '|' => '|', '~' => '~', '&laquo;' => '&laquo;', '&raquo;' => '&raquo;', '&lt;' => '&lt;', '&gt;' => '&gt;', '&tilde;' => '&tilde;', '&hearts;' => '&hearts;', '&clubs;' => '&clubs;');
1200
+ $psp_separators = array ('' => 'None', '-' => '-', '&ndash;' => '&ndash;', '&mdash;' => '&mdash;', '&middot;' => '&middot;', '&bull;' => '&bull;', '*' => '*', '|' => '|', '~' => '~', '&laquo;' => '&laquo;', '&raquo;' => '&raquo;', '&lt;' => '&lt;', '&gt;' => '&gt;', '&tilde;' => '&tilde;', '&hearts;' => '&hearts;', '&clubs;' => '&clubs;', ':' => ':', '★' => '★');
1201
 
1202
  $psp_separator_field = array (
1203
  'label_for' => 'psp_'.$setting_name.'_separator',
1349
 
1350
  $settings['separator'] = sanitize_text_field( htmlentities($settings['separator']) );
1351
 
1352
+ //$psp_separators = array ( '-', '&ndash;', '&mdash;', '&middot;', '&bull;', '*', '|', '~', '&laquo;', '&raquo;', '&lt;', '&gt;', '&tilde;', '&hearts;', '&clubs;');
1353
+ $psp_separators = array ( '-', '&ndash;', '&mdash;', '&middot;', '&bull;', '*', '|', '~', '&laquo;', '&raquo;', '&lt;', '&gt;', '&tilde;', '&hearts;', '&clubs;', ':', '★');
1354
 
1355
  if (!in_array($settings['separator'], $psp_separators)) {
1356
  $settings['separator'] = '';
1416
  //Section
1417
  $section_id = 'psp_'.$others_name.'_section';
1418
  //$section_title = $arc_name_text.' Settings';
1419
+ $section_title = sprintf( esc_html__( '%s Settings', 'platinum-seo-pack' ), $arc_name_text );
1420
 
1421
  if ($others_name == "search_result") {
1422
 
1517
  //Section
1518
  $section_id = 'psp_'.$archive_name.'section';
1519
  //$section_title = $arc_name_text.' Settings';
1520
+ $section_title = sprintf( esc_html__( '%s Settings', 'platinum-seo-pack' ), $arc_name_text );
1521
 
1522
  add_settings_section( $section_id, $section_title, array( &$this, 'section_archives_desc' ), $this->psp_archives_settings_group );
1523
 
1606
  $noarchive_field_title = "";//esc_html__('Do not show cached link in SERPS: ', 'platinum-seo-pack');
1607
  $nosnippet_field_title = "";//esc_html__('Do not show snippet in SERPS: ', 'platinum-seo-pack');
1608
  //$disable_field_title = 'Disable '.$arc_name_text. ' : ';
1609
+ //$disable_field_title = sprintf( esc_html__( 'Disable %s :', 'platinum-seo-pack' ), $arc_name_text );
1610
  $redirect_field_title = esc_html__('Redirect To: ', 'platinum-seo-pack');
1611
  $redirectcode_field_title ="";// esc_html__('Use: ', 'platinum-seo-pack');
1612
 
1954
 
1955
  //sitelinks searchbox Section
1956
  $section_id = 'psp_sitelinks_search_section';
1957
+ $section_title = esc_html__( 'Sitelinks Search Box in Google', 'platinum-seo-pack' );
1958
  add_settings_section( $section_id, $section_title, array( &$this, 'section_sitelinks_searchbox_desc' ), $this->psp_other_settings_group );
1959
 
1960
  //Enable sitelinks searchbox
2260
 
2261
  $section_id = 'psp_'.$tax_name.'_section';
2262
  //$section_title = $tax_name_text.' Settings';
2263
+ $section_title = sprintf( esc_html__( '%s Settings', 'platinum-seo-pack' ), $tax_name_text );
2264
 
2265
  $title_field_id = 'psp_'.$tax_name.'_title';
2266
  $desc_field_id = 'psp_'.$tax_name.'_desc';
2275
  $title_field_title = esc_html__('Title Format: ', 'platinum-seo-pack');
2276
  $desc_field_title = esc_html__('Meta Description Format: ','platinum-seo-pack');
2277
  $robots_field_title = esc_html__('Meta Robots: ', 'platinum-seo-pack');
2278
+ $metabox_field_title = sprintf( esc_html__( 'Hide %s Metabox:', 'platinum-seo-pack' ), $tax_name_text );
2279
 
2280
  //wp_register_script( 'psp-taxtags-js', plugins_url( '/js/psp_post_tags.js', __FILE__ ), array( 'jquery-ui-autocomplete', 'jquery' ) );
2281
  //wp_enqueue_script('psp-taxtags-js');
2442
 
2443
  $section_id = 'psp_'.$posttype_name.'_section';
2444
  //$section_title = $posttype_name_text.' Settings';
2445
+ $section_title = sprintf( esc_html__( '%s Settings', 'platinum-seo-pack' ), $posttype_name_text );
2446
+ if ($posttype_name == "attachment") $section_title = sprintf( esc_html__( '%s (Media) Settings', 'platinum-seo-pack' ), $posttype_name_text );
2447
 
2448
  $title_field_id = 'psp_'.$posttype_name.'_title';
2449
  $desc_field_id = 'psp_'.$posttype_name.'_desc';
2462
  $desc_field_title = esc_html__('Meta Description Format: ','platinum-seo-pack');
2463
  $header_field_title = 'Additional '.$posttype_name_text. ' Headers: ';
2464
  $robots_field_title = esc_html__('Meta Robots: ', 'platinum-seo-pack');
2465
+ $metabox_field_title = sprintf( esc_html__( 'Hide %s Metabox:', 'platinum-seo-pack' ), $posttype_name_text );
2466
  $breadcrumb_tax_field_title = esc_html__('Taxonomy for breadcrumb trail: ', 'platinum-seo-pack');
2467
 
2468
  //wp_register_script( 'psp-posttags-js', plugins_url( '/js/psp_post_tags.js', __FILE__ ), array('psp-tagit-js') );
2567
  function section_404_desc() { esc_html_e('Set the title format for 404 page.', 'platinum-seo-pack'); }
2568
  function section_nofollow_desc() { esc_html_e('These Nofollow settings are applied throughout the site wherever appropriate.', 'platinum-seo-pack'); }
2569
  function section_permalinks_desc() { echo esc_html__('These settings, if checked, will remove the base from taxonomies like Category and other custom taxonomies, if any. If "Remove base" is chosen for Category then the corresponding base will be removed from the permalink structure for categories.', 'platinum-seo-pack'). ' i.e. <code>Category</code>'; }
2570
+ function section_redirections_desc() {echo esc_html__('Manage your Redirection ', 'platinum-seo-pack'). '<a id="404errors" href="'.get_admin_url(get_current_blog_id()).'admin.php?page=redirectionmanager">'.esc_html__('here ', 'platinum-seo-pack').'</a>'; }
2571
+ function section_404errors_desc() {echo esc_html__('Manage your 404 errors ', 'platinum-seo-pack'). '<a id="404errors" href="'.get_admin_url(get_current_blog_id()).'admin.php?page=manager404">'.esc_html__('here ', 'platinum-seo-pack').'</a>'; }
2572
  function section_cleanup_head_desc() { echo esc_html__('Remove unwanted links from HTML', 'platinum-seo-pack'). ' <code>&lt;head&gt;&lt;&#47;head&gt;</code>'.
2573
  esc_html__('Many of these links might not be needed in the head section for most sites and removing these might help reduce page size and also improve crawlability of more imortant links. So you may choose to remove those that are not needed for you site.', 'platinum-seo-pack'); }
2574
  function section_cleanup_comment_desc() { esc_html_e('Strip HTML and anchor tags embedded in comments. Note that these remove the HTML and links embedded in the comments and not the comment author links.', 'platinum-seo-pack'); }
2796
  function add_admin_menus() {
2797
  //add_options_page( 'Platinum SEO New Settings', 'My Settings', 'manage_options', $this->psp_plugin_options_key, array( &$this, 'psp_options_page' ) );
2798
  add_menu_page(esc_html__('Techblissonline Platinum SEO and social Pack', 'platinum-seo-pack'), esc_html__('Platinum SEO and Social Pack', 'platinum-seo-pack'), 'manage_options', $this->psp_plugin_options_key, array($this, 'psp_options_page'), plugins_url( 'images/techblissonline-platinum-seo-pack.ico', dirname(dirname(__FILE__) )));
2799
+ add_submenu_page($this->psp_plugin_options_key, esc_html__('Techblissonline Platinum SEO and social Pack', 'platinum-seo-pack'), '<span class="dashicons dashicons-admin-settings"></span> '.esc_html__('SEO', 'platinum-seo-pack'), 'manage_options', $this->psp_plugin_options_key);
2800
  $psp_settings = get_option('psp_pre_setting');
2801
  $psp_premium_valid = isset($psp_settings['premium']) ? $psp_settings['premium'] : '';
2802
  $psp_premium_status = isset($psp_settings['psp_premium_license_key_status']) ? $psp_settings['psp_premium_license_key_status'] : '';
2805
  //$psp_premium_valid = 1;
2806
  //$psp_premium_status = 1;
2807
  //if ($psp_premium_valid && $psp_premium_status)
2808
+ add_submenu_page($this->psp_plugin_options_key, esc_html__('Techblissonline Platinum SEO Social', 'platinum-seo-pack'), '<span class="dashicons dashicons-admin-settings"></span> '.esc_html__('Social', 'platinum-seo-pack'), 'manage_options', 'psp-social-by-techblissonline', array($this->psp_social_instance, 'psp_social_options_page'));
2809
+ //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'));
2810
+ //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'));
2811
+ 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__('SEO - Editors', 'platinum-seo-pack'), 'manage_options', 'psp-tools-by-techblissonline', array($this->psp_tools_instance, 'psp_tools_options_page'));
2812
+ 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'), 'manage_options', 'psp-seo-tools-by-techblissonline', array( &$this, 'psp_pre_tools_display_page'));
2813
+ $psp_redir_page = add_submenu_page($this->psp_plugin_options_key, esc_html__('Techblissonline Platinum SEO Redirections', 'platinum-seo-pack'), '<span class="dashicons dashicons-admin-tools"></span> '.esc_html__('Redirections', 'platinum-seo-pack'), 'manage_options', 'redirectionmanager', array($this->psp_redirect_instance, 'redir_mgmtpage'));
2814
+ $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-admin-tools"></span> '.esc_html__('Manage 404 Errors', 'platinum-seo-pack'), 'manage_options', 'manager404', array($this->psp_redirect_instance, 'manage_404_page'));
2815
+ //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'));
2816
+ if ($psp_premium_valid) 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__('Premium - Licenses', 'platinum-seo-pack'), 'manage_options', 'pspp-licenses', array($this->psp_pre_instance, 'psp_premium_options_page'));
2817
  }
2818
 
2819
  function psp_pre_tools_display_page() {
2832
  wp_enqueue_media();
2833
  wp_enqueue_script( 'psp-meta-box', plugins_url( '/js/pspmetabox.js', __FILE__ ), array( 'jquery-ui-tabs') );
2834
  //wp_enqueue_script( 'psp-image-uploader', plugins_url( '/js/pspmediauploader.js', __FILE__ ), array( 'jquery' ) );
2835
+ wp_enqueue_script( 'psp-meta-box-snippet', plugins_url( '/js/snippetpreview.js', __FILE__ ),'', '2.1');
2836
  //wp_enqueue_script( 'psp-social', plugins_url( '/js/pspsocialhandler.js', __FILE__ ), array( 'jquery' ) );
2837
  //wp_enqueue_script( 'psp-cm', plugins_url( '/js/cm.js', __FILE__ ), array(), false, true);
2838
 
2875
  //available tags array
2876
  $pspavailableTags = ['sep', 'seo_title', 'wp_title', 'site_name', 'site_description'];
2877
  $pspavailableTagsDesc = ['sep', 'seo_title', 'wp_title', 'description', 'seo_description', 'site_name', 'site_description'];
2878
+ $psp_seo_meta = get_term_meta($category_id, "psp_category_seo_metas_$category_id");
2879
+ if($psp_seo_meta) $psp_seo_meta = $psp_seo_meta[0];
2880
+ if(!$psp_seo_meta) $psp_seo_meta = get_option( "psp_category_seo_metas_$category_id");
2881
  $psp_seo_meta['titleformat'] = isset($psp_seo_meta['titleformat']) ? esc_attr($psp_seo_meta['titleformat']) : esc_attr($psp_taxonomy_metabox_title);
2882
  $psp_seo_meta['descformat'] = isset($psp_seo_meta['descformat']) ? esc_attr($psp_seo_meta['descformat']) :'';
2883
 
2892
 
2893
  //$psp_seo_meta = array_map( 'esc_attr', $psp_seo_meta );
2894
  $this->psp_taxonomy_meta_original = $psp_seo_meta;
2895
+ $psp_social_meta = get_term_meta( $category_id, "psp_category_social_metas_$category_id");
2896
+ if ($psp_social_meta) $psp_social_meta = $psp_social_meta[0];
2897
+ if (!$psp_social_meta) $psp_social_meta = get_option( "psp_category_social_metas_$category_id");
2898
  //$psp_social_meta = array_map( 'esc_attr', $psp_social_meta );
2899
  $this->psp_taxonomy_social_meta_original = $psp_social_meta; ?>
2900
 
2978
  if (!empty($this->psp_taxonomy_meta_original)) {
2979
  $psp_seo_data_original = $this->psp_taxonomy_meta_original;
2980
  } else {
2981
+ $psp_seo_data_original = get_term_meta($t_id, "psp_category_seo_metas_$t_id");
2982
+ if($psp_seo_data_original) $psp_seo_data_original = $psp_seo_data_original[0];
2983
+ if(!$psp_seo_data_original) $psp_seo_data_original = get_option( "psp_category_seo_metas_$t_id");
2984
  }
2985
 
2986
  if(!empty($this->psp_taxonomy_social_meta_original)) {
3010
  // Sanitize SEO data.
3011
  //$psp_category_seo_data = $this->psp_sanitze_seo_data( $psp_category_seo_data );
3012
  //save the option array
3013
+ update_term_meta($t_id, "psp_category_seo_metas_$t_id", $psp_category_seo_data);
3014
+ //update_option( "psp_category_seo_metas_$t_id", $psp_category_seo_data );
3015
 
3016
  //do not proceed further if only basic seo meta data had to be saved/
3017
  if ($psp_metabox_advanced_hidden) {
3039
  // Sanitize Social data.
3040
  //$psp_category_social_data = $this->psp_sanitze_social_data( $psp_category_social_data );
3041
  //save the option array
3042
+ //update_option( "psp_category_social_metas_$t_id", $psp_category_social_data );
3043
+ update_term_meta( $t_id, "psp_category_social_metas_$t_id", $psp_category_social_data );
3044
 
3045
  }
3046
 
3058
  //wp_enqueue_media();
3059
  wp_enqueue_script( 'psp-meta-box', plugins_url( '/js/pspmetabox.js', __FILE__ ), array( 'jquery-ui-tabs') );
3060
  //wp_enqueue_script( 'psp-image-uploader', plugins_url( '/js/pspmediauploader.js', __FILE__ ), array( 'jquery' ) );
3061
+ wp_enqueue_script( 'psp-meta-box-snippet', plugins_url( '/js/snippetpreview.js', __FILE__ ), '', '2.1');
3062
  //wp_enqueue_script( 'psp-social', plugins_url( '/js/pspsocialhandler.js', __FILE__ ), array( 'jquery' ) );
3063
 
3064
  $psp_cm_json_settings['codeEditor'] = wp_enqueue_code_editor(array('type' => 'json', 'codemirror'=> array('autoRefresh' => true)));
3104
  //available tags array
3105
  $pspavailableTags = ['sep', 'seo_title', 'wp_title', 'site_name', 'site_description'];
3106
  $pspavailableTagsDesc = ['sep', 'seo_title', 'wp_title', 'description', 'seo_description', 'site_name', 'site_description'];
3107
+ $psp_seo_meta = get_term_meta($t_id, "psp_taxonomy_seo_metas_$t_id");
3108
+ if ($psp_seo_meta) $psp_seo_meta = $psp_seo_meta[0];
3109
+ if (!$psp_seo_meta) $psp_seo_meta = get_option( "psp_taxonomy_seo_metas_$t_id");
3110
  $psp_seo_meta['titleformat'] = isset($psp_seo_meta['titleformat']) ? esc_attr($psp_seo_meta['titleformat']) : esc_attr($psp_taxonomy_metabox_title);
3111
  $psp_seo_meta['descformat'] = isset($psp_seo_meta['descformat']) ? esc_attr($psp_seo_meta['descformat']) : '';
3112
 
3121
 
3122
  //$psp_seo_meta = array_map( 'esc_attr', $psp_seo_meta );
3123
  $this->psp_taxonomy_meta_original = $psp_seo_meta;
3124
+ $psp_social_meta = get_term_meta($t_id, "psp_taxonomy_social_metas_$t_id");
3125
+ if ($psp_social_meta) $psp_social_meta = $psp_social_meta[0];
3126
+ if (!$psp_social_meta) $psp_social_meta = get_option( "psp_taxonomy_social_metas_$t_id");
3127
+ //$psp_social_meta = get_option( "psp_taxonomy_social_metas_$t_id");
3128
  //$psp_social_meta = array_map( 'esc_attr', $psp_social_meta );
3129
  $this->psp_taxonomy_social_meta_original = $psp_social_meta; ?>
3130
  <h3><?php echo '<img src="'.esc_url(plugins_url( 'images/techblissonline-platinum-seo-pack.ico', dirname(dirname(__FILE__) ))).'" />'; ?><?php esc_html_e(' Techblissonline Platinum SEO and Social Meta Box ', 'platinum-seo-pack'); ?></h3>
3207
  if (!empty($this->psp_taxonomy_meta_original)) {
3208
  $psp_seo_data_original = $this->psp_taxonomy_meta_original;
3209
  } else {
3210
+ $psp_seo_data_original = get_term_meta($t_id, "psp_taxonomy_seo_metas_$t_id");
3211
+ if($psp_seo_data_original) $psp_seo_data_original = $psp_seo_data_original[0];
3212
+ if(!$psp_seo_data_original) $psp_seo_data_original = get_option( "psp_taxonomy_seo_metas_$t_id");
3213
  }
3214
 
3215
  if(!empty($this->psp_taxonomy_social_meta_original)) {
3239
  // Sanitize SEO data.
3240
  //$psp_taxonomy_seo_data = $this->psp_sanitze_seo_data( $psp_taxonomy_seo_data );
3241
  //save the option array
3242
+ //update_option( "psp_taxonomy_seo_metas_$t_id", $psp_taxonomy_seo_data );
3243
+ update_term_meta( $t_id, "psp_taxonomy_seo_metas_$t_id", $psp_taxonomy_seo_data );
3244
 
3245
  //do not proceed further if only basic seo meta data had to be saved/
3246
  if ($psp_metabox_advanced_hidden) {
3268
  // Sanitize Social data.
3269
  //$psp_taxonomy_social_data = $this->psp_sanitze_social_data( $psp_taxonomy_social_data );
3270
  //save the option array
3271
+ //update_option( "psp_taxonomy_social_metas_$t_id", $psp_taxonomy_social_data );
3272
+ update_term_meta( $t_id, "psp_taxonomy_social_metas_$t_id", $psp_taxonomy_social_data );
3273
 
3274
  }
3275
 
3282
  //wp_enqueue_media();
3283
  wp_enqueue_script( 'psp-meta-box', plugins_url( '/js/pspmetabox.js', __FILE__ ), array('jquery', 'jquery-ui-tabs' ) );
3284
  //wp_enqueue_script( 'psp-image-uploader', plugins_url( '/js/pspmediauploader.js', __FILE__ ), array( 'jquery' ) );
3285
+ wp_enqueue_script( 'psp-meta-box-snippet', plugins_url( '/js/snippetpreview.js', __FILE__ ), '', '2.1');
3286
  //wp_enqueue_script( 'psp-social', plugins_url( '/js/pspsocialhandler.js', __FILE__ ), array( 'jquery' ) );
3287
 
3288
  $psp_cm_json_settings['codeEditor'] = wp_enqueue_code_editor(array('type' => 'json', 'codemirror'=> array('autoRefresh' => true)));
3355
 
3356
  $psp_post_meta = array();
3357
  $psp_social_meta = array();
3358
+
3359
+ $wp_post_meta_data_arr = get_metadata( 'platinumseo', $post->ID, '', false );
3360
+
3361
+ if(!$wp_post_meta_data_arr) {
3362
+ $wp_post_meta_data_arr = get_post_meta($post->ID);
3363
+ }
3364
  /**********
3365
  foreach ($wp_post_meta_data_arr as $key => $value) {
3366
 
3417
  $psp_posttype_noindex = 'on';
3418
  $psp_posttype_nofollow = '';
3419
  } else {
3420
+ $psp_posttype_noindex = '';
3421
+ $psp_posttype_nofollow = '';
3422
 
3423
  if (isset($wp_post_meta_data_arr['_techblissonline_psp_noindex'][0])) {
3424
  $psp_posttype_noindex = !empty($wp_post_meta_data_arr['_techblissonline_psp_noindex'][0]) ? esc_attr($wp_post_meta_data_arr['_techblissonline_psp_noindex'][0]) : '';
3518
  $psp_social_meta['tw_card_type'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_card_type'][0]) ? esc_attr($wp_post_meta_data_arr['_techblissonline_psp_tw_card_type'][0]) : '';
3519
  $psp_social_meta['tw_title'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_title'][0]) ? esc_attr($wp_post_meta_data_arr['_techblissonline_psp_tw_title'][0]) : '';
3520
  $psp_social_meta['tw_description'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_description'][0]) ? esc_attr($wp_post_meta_data_arr['_techblissonline_psp_tw_description'][0]) : '';
3521
+ $psp_social_meta['tw_image'] = !empty($wp_post_meta_data_arr['_techblissonline_psp_tw_image'][0]) ? esc_attr($wp_post_meta_data_arr['_techblissonline_psp_tw_image'][0]) : '';
3522
  /**********
3523
  $psp_social_meta['tw_image'] = $wp_post_meta_data_arr['_techblissonline_psp_tw_image'][0];
3524
  $psp_social_meta['tw_image_1'] = $wp_post_meta_data_arr['_techblissonline_psp_tw_image_1'][0];
3567
  //$psp_post_meta = array_merge($psp_post_meta, $psp_post_disablers, $psp_social_meta);
3568
  $psp_seo_meta = array_merge((array)$psp_post_meta, (array)$psp_post_disablers);
3569
  $this->psp_post_meta_original = $psp_seo_meta;
3570
+ //$psp_social_meta = array_merge((array)$psp_social_meta, (array)$psp_post_tw_data_images, (array)$psp_post_social_tw_label_data);
3571
  //$psp_social_meta = array_merge($psp_social_meta, $psp_post_tw_data_images, $psp_post_social_tw_label_data, $psp_post_social_enablers);
3572
  $this->psp_post_social_meta_original = $psp_social_meta;
3573
  $psp_type = "posttype";
3749
  //Update the meta fields as separate records in the database.
3750
  if ($psp_metabox_advanced_hidden) {
3751
  if (!empty($psp_post_seo_data['title'])) {
3752
+ //update_post_meta( $post_id, '_techblissonline_psp_title', $psp_post_seo_data['title'] );
3753
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_title', $psp_post_seo_data['title'] );
3754
  } else {
3755
+ //delete_post_meta( $post_id, '_techblissonline_psp_title');
3756
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_title');
3757
  }
3758
 
3759
  if (!empty($psp_post_seo_data['titleformat'])) {
3760
+ //update_post_meta( $post_id, '_techblissonline_psp_titleformat', $psp_post_seo_data['titleformat'] );
3761
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_titleformat', $psp_post_seo_data['titleformat'] );
3762
  } else {
3763
  //update_post_meta( $post_id, '_techblissonline_psp_titleformat', "");
3764
+ //delete_post_meta( $post_id, '_techblissonline_psp_titleformat');
3765
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_titleformat');
3766
  }
3767
 
3768
  if (!empty($psp_post_seo_data['description'])) {
3769
+ //update_post_meta( $post_id, '_techblissonline_psp_description', $psp_post_seo_data['description'] );
3770
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_description', $psp_post_seo_data['description'] );
3771
  } else {
3772
+ //delete_post_meta( $post_id, '_techblissonline_psp_description');
3773
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_description');
3774
  }
3775
 
3776
  if (!empty($psp_post_seo_data['descformat'])) {
3777
+ //update_post_meta( $post_id, '_techblissonline_psp_descformat', $psp_post_seo_data['descformat'] );
3778
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_descformat', $psp_post_seo_data['descformat'] );
3779
  } else {
3780
  //update_post_meta( $post_id, '_techblissonline_psp_descformat', "");
3781
+ //delete_post_meta( $post_id, '_techblissonline_psp_descformat');
3782
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_descformat');
3783
  }
3784
 
3785
  if (!empty($psp_post_seo_data['maxsnippet'])) {
3786
+ //update_post_meta( $post_id, '_techblissonline_psp_maxsnippet', $psp_post_seo_data['maxsnippet'] );
3787
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_maxsnippet', $psp_post_seo_data['maxsnippet'] );
3788
  } else {
3789
+ //delete_post_meta( $post_id, '_techblissonline_psp_maxsnippet');
3790
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_maxsnippet');
3791
  }
3792
 
3793
  if (!empty($psp_post_seo_data['keywords'])) {
3794
+ //update_post_meta( $post_id, '_techblissonline_psp_keywords', $psp_post_seo_data['keywords'] );
3795
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_keywords', $psp_post_seo_data['keywords'] );
3796
  } else {
3797
+ //delete_post_meta( $post_id, '_techblissonline_psp_keywords');
3798
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_keywords');
3799
  }
3800
  return;
3801
  }
3858
 
3859
  if ( !empty( $psp_post_social_data['tw_image'] ) ) {
3860
  $psp_post_tw_data_images['tw_image'] = esc_url_raw($psp_post_social_data['tw_image']);
3861
+ $psp_post_social_data['tw_image'] = esc_url_raw($psp_post_social_data['tw_image']);
3862
  }
3863
  if ( !empty( $psp_post_social_data['tw_image_1'] ) ) {
3864
  $psp_post_tw_data_images['tw_image_1'] = esc_url_raw($psp_post_social_data['tw_image_1']);
3891
 
3892
  //Update the meta fields as separate records in the database.
3893
  if (!empty($psp_post_seo_data['title'])) {
3894
+ //update_post_meta( $post_id, '_techblissonline_psp_title', $psp_post_seo_data['title'] );
3895
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_title', $psp_post_seo_data['title'] );
3896
  } else {
3897
+ //delete_post_meta( $post_id, '_techblissonline_psp_title');
3898
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_title');
3899
  }
3900
 
3901
  if (!empty($psp_post_seo_data['titleformat'])) {
3902
+ //update_post_meta( $post_id, '_techblissonline_psp_titleformat', $psp_post_seo_data['titleformat'] );
3903
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_titleformat', $psp_post_seo_data['titleformat'] );
3904
  } else {
3905
  //update_post_meta( $post_id, '_techblissonline_psp_titleformat', "");
3906
+ //delete_post_meta( $post_id, '_techblissonline_psp_titleformat');
3907
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_titleformat');
3908
  }
3909
 
3910
  if (!empty($psp_post_seo_data['description'])) {
3911
+ //update_post_meta( $post_id, '_techblissonline_psp_description', $psp_post_seo_data['description'] );
3912
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_description', $psp_post_seo_data['description'] );
3913
  } else {
3914
+ //delete_post_meta( $post_id, '_techblissonline_psp_description');
3915
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_description');
3916
  }
3917
 
3918
  if (!empty($psp_post_seo_data['descformat'])) {
3919
+ //update_post_meta( $post_id, '_techblissonline_psp_descformat', $psp_post_seo_data['descformat'] );
3920
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_descformat', $psp_post_seo_data['descformat'] );
3921
  } else {
3922
  //update_post_meta( $post_id, '_techblissonline_psp_descformat', "");
3923
+ //delete_post_meta( $post_id, '_techblissonline_psp_descformat');
3924
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_descformat');
3925
  }
3926
 
3927
  if (!empty($psp_post_seo_data['maxsnippet'])) {
3928
+ //update_post_meta( $post_id, '_techblissonline_psp_maxsnippet', $psp_post_seo_data['maxsnippet'] );
3929
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_maxsnippet', $psp_post_seo_data['maxsnippet'] );
3930
  } else {
3931
+ //delete_post_meta( $post_id, '_techblissonline_psp_maxsnippet');
3932
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_maxsnippet');
3933
  }
3934
 
3935
  if (!empty($psp_post_seo_data['keywords'])) {
3936
+ //update_post_meta( $post_id, '_techblissonline_psp_keywords', $psp_post_seo_data['keywords'] );
3937
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_keywords', $psp_post_seo_data['keywords'] );
3938
  } else {
3939
+ //delete_post_meta( $post_id, '_techblissonline_psp_keywords');
3940
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_keywords');
3941
  }
3942
 
3943
  if (!empty($psp_post_seo_data['maxvideo'])) {
3944
+ //update_post_meta( $post_id, '_techblissonline_psp_maxvideo', $psp_post_seo_data['maxvideo'] );
3945
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_maxvideo', $psp_post_seo_data['maxvideo'] );
3946
  } else {
3947
+ //delete_post_meta( $post_id, '_techblissonline_psp_maxvideo');
3948
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_maxvideo');
3949
  }
3950
 
3951
  if (!empty($psp_post_seo_data['maximage'])) {
3952
+ //update_post_meta( $post_id, '_techblissonline_psp_maximage', $psp_post_seo_data['maximage'] );
3953
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_maximage', $psp_post_seo_data['maximage'] );
3954
  } else {
3955
+ //delete_post_meta( $post_id, '_techblissonline_psp_maximage');
3956
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_maximage');
3957
  }
3958
 
3959
  if (!empty($psp_post_seo_data['canonical_url'])) {
3960
+ //update_post_meta( $post_id, '_techblissonline_psp_canonical_url', $psp_post_seo_data['canonical_url'] );
3961
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_canonical_url', $psp_post_seo_data['canonical_url'] );
3962
  } else {
3963
+ //delete_post_meta( $post_id, '_techblissonline_psp_canonical_url');
3964
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_canonical_url');
3965
  }
3966
 
3967
  if (!empty($psp_post_seo_data['schema_string'])) {
3968
+ //update_post_meta( $post_id, '_techblissonline_psp_schema_string', $psp_post_seo_data['schema_string'] );
3969
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_schema_string', $psp_post_seo_data['schema_string'] );
3970
  } else {
3971
+ //delete_post_meta( $post_id, '_techblissonline_psp_schema_string');
3972
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_schema_string');
3973
  }
3974
 
3975
  if (!empty($psp_post_seo_data['robots'])) {
3976
+ //update_post_meta( $post_id, '_techblissonline_psp_robots_meta', $psp_post_seo_data['robots'] );
3977
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_robots_meta', $psp_post_seo_data['robots'] );
3978
  } else {
3979
+ //delete_post_meta( $post_id, '_techblissonline_psp_robots_meta');
3980
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_robots_meta');
3981
  }
3982
 
3983
  if (!empty($psp_post_seo_data['noindex'])) {
3984
+ //update_post_meta( $post_id, '_techblissonline_psp_noindex', $psp_post_seo_data['noindex'] );
3985
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_noindex', $psp_post_seo_data['noindex'] );
3986
  } else {
3987
  //delete_post_meta( $post_id, '_techblissonline_psp_noindex');
3988
+ //update_post_meta( $post_id, '_techblissonline_psp_noindex', 0 );
3989
+ //update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_noindex', 0 );
3990
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_noindex');
3991
  }
3992
  if (!empty($psp_post_seo_data['nofollow'])) {
3993
+ //update_post_meta( $post_id, '_techblissonline_psp_nofollow', $psp_post_seo_data['nofollow'] );
3994
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_nofollow', $psp_post_seo_data['nofollow'] );
3995
  } else {
3996
  //delete_post_meta( $post_id, '_techblissonline_psp_nofollow');
3997
+ //update_post_meta( $post_id, '_techblissonline_psp_nofollow', 0 );
3998
+ //update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_nofollow', 0 );
3999
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_nofollow');
4000
  }
4001
 
4002
  if (!empty($psp_post_seo_data['nositemap'])) {
4003
+ //update_post_meta( $post_id, '_techblissonline_psp_nositemap', $psp_post_seo_data['nositemap'] );
4004
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_nositemap', $psp_post_seo_data['nositemap'] );
4005
  } else {
4006
+ //delete_post_meta( $post_id, '_techblissonline_psp_nositemap');
4007
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_nositemap');
4008
  }
4009
 
4010
  if (!empty($psp_post_seo_data['noarchive'])) {
4011
+ //update_post_meta( $post_id, '_techblissonline_psp_noarchive', $psp_post_seo_data['noarchive'] );
4012
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_noarchive', $psp_post_seo_data['noarchive'] );
4013
  } else {
4014
+ //delete_post_meta( $post_id, '_techblissonline_psp_noarchive');
4015
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_noarchive');
4016
  }
4017
 
4018
  if (!empty($psp_post_seo_data['nosnippet'])) {
4019
+ //update_post_meta( $post_id, '_techblissonline_psp_nosnippet', $psp_post_seo_data['nosnippet'] );
4020
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_nosnippet', $psp_post_seo_data['nosnippet'] );
4021
  } else {
4022
+ //delete_post_meta( $post_id, '_techblissonline_psp_nosnippet');
4023
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_nosnippet');
4024
  }
4025
 
4026
  if (!empty($psp_post_seo_data['noimageindex'])) {
4027
+ //update_post_meta( $post_id, '_techblissonline_psp_noimageidx', $psp_post_seo_data['noimageindex'] );
4028
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_noimageidx', $psp_post_seo_data['noimageindex'] );
4029
  } else {
4030
+ //delete_post_meta( $post_id, '_techblissonline_psp_noimageidx');
4031
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_noimageidx');
4032
  }
4033
 
4034
  if (!empty($psp_post_seo_data['redirect_to_url'])) {
4035
+ //update_post_meta( $post_id, '_techblissonline_psp_redirect_to_url', $psp_post_seo_data['redirect_to_url'] );
4036
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_redirect_to_url', $psp_post_seo_data['redirect_to_url'] );
4037
  } else {
4038
+ //delete_post_meta( $post_id, '_techblissonline_psp_redirect_to_url');
4039
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_redirect_to_url');
4040
  }
4041
 
4042
  if (!empty($psp_post_seo_data['redirect_status_code'])) {
4043
+ //update_post_meta( $post_id, '_techblissonline_psp_redirect_status_code', $psp_post_seo_data['redirect_status_code'] );
4044
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_redirect_status_code', $psp_post_seo_data['redirect_status_code'] );
4045
  } else {
4046
+ //delete_post_meta( $post_id, '_techblissonline_psp_redirect_status_code');
4047
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_redirect_status_code');
4048
  }
4049
 
4050
  if (!empty($psp_post_seo_data['preferred_tax'])) {
4051
+ //update_post_meta( $post_id, '_techblissonline_psp_preferred_taxonomy', $psp_post_seo_data['preferred_tax'] );
4052
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_preferred_taxonomy', $psp_post_seo_data['preferred_tax'] );
4053
  } else {
4054
+ //delete_post_meta( $post_id, '_techblissonline_psp_preferred_taxonomy');
4055
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_preferred_taxonomy');
4056
  }
4057
 
4058
  //update disable flags
4067
  if (!empty($psp_post_seo_data['disable_psp'])) $psp_post_seo_data_disablers['disable_psp'] = $psp_post_seo_data['disable_psp'];
4068
 
4069
  if (isset($psp_post_seo_data_disablers) && !empty($psp_post_seo_data_disablers)) {
4070
+ //update_post_meta( $post_id, '_techblissonline_psp_disable_flags', $psp_post_seo_data_disablers);
4071
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_disable_flags', $psp_post_seo_data_disablers );
4072
  } else {
4073
+ //delete_post_meta( $post_id, '_techblissonline_psp_disable_flags');
4074
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_disable_flags');
4075
  }
4076
  //update social meta data
4077
 
4094
  //update_post_meta( $post_id, '_techblissonline_psp_social_enabled', $psp_post_social_enablers);
4095
 
4096
  if (!empty($psp_post_social_data['sc_title'])) {
4097
+ //update_post_meta( $post_id, '_techblissonline_psp_sc_title', $psp_post_social_data['sc_title'] );
4098
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_sc_title', $psp_post_social_data['sc_title'] );
4099
  } else {
4100
+ //delete_post_meta( $post_id, '_techblissonline_psp_sc_title');
4101
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_sc_title');
4102
  }
4103
 
4104
  if (!empty($psp_post_social_data['sc_description'])) {
4105
+ //update_post_meta( $post_id, '_techblissonline_psp_sc_description', $psp_post_social_data['sc_description'] );
4106
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_sc_description', $psp_post_social_data['sc_description'] );
4107
  } else {
4108
+ //delete_post_meta( $post_id, '_techblissonline_psp_sc_description');
4109
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_sc_description');
4110
  }
4111
 
4112
  if (!empty($psp_post_social_data['sc_image'])) {
4113
+ //update_post_meta( $post_id, '_techblissonline_psp_sc_image', $psp_post_social_data['sc_image'] );
4114
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_sc_image', $psp_post_social_data['sc_image'] );
4115
  } else {
4116
+ //delete_post_meta( $post_id, '_techblissonline_psp_sc_image');
4117
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_sc_image');
4118
  }
4119
 
4120
  if (!empty($psp_post_social_data['tw_card_type'])) {
4121
+ //update_post_meta( $post_id, '_techblissonline_psp_tw_card_type', $psp_post_social_data['tw_card_type'] );
4122
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_card_type', $psp_post_social_data['tw_card_type'] );
4123
  } else {
4124
+ //delete_post_meta( $post_id, '_techblissonline_psp_tw_card_type');
4125
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_card_type');
4126
  }
4127
 
4128
  if (!empty($psp_post_social_data['tw_title'])) {
4129
+ //update_post_meta( $post_id, '_techblissonline_psp_tw_title', $psp_post_social_data['tw_title'] );
4130
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_title', $psp_post_social_data['tw_title'] );
4131
  } else {
4132
+ //delete_post_meta( $post_id, '_techblissonline_psp_tw_title');
4133
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_title');
4134
  }
4135
 
4136
  if (!empty($psp_post_social_data['tw_description'])) {
4137
+ //update_post_meta( $post_id, '_techblissonline_psp_tw_description', $psp_post_social_data['tw_description'] );
4138
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_description', $psp_post_social_data['tw_description'] );
4139
  } else {
4140
+ //delete_post_meta( $post_id, '_techblissonline_psp_tw_description');
4141
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_description');
4142
  }
4143
 
4144
  /***********
4147
  if (!empty($psp_post_social_data['tw_image_2'])) update_post_meta( $post_id, '_techblissonline_psp_tw_image_2', $psp_post_social_data['tw_image_2'] );
4148
  if (!empty($psp_post_social_data['tw_image_3'])) update_post_meta( $post_id, '_techblissonline_psp_tw_image_3', $psp_post_social_data['tw_image_3'] );
4149
  ************/
4150
+ /**
4151
  if (!empty($psp_post_tw_data_images)) {
4152
  update_post_meta( $post_id, '_techblissonline_psp_tw_images', $psp_post_tw_data_images);
4153
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_images', $psp_post_tw_data_images );
4154
  } else {
4155
+ //delete_post_meta( $post_id, '_techblissonline_psp_tw_images');
4156
+ delete_metadata( $post_id, '_techblissonline_psp_tw_images');
4157
+ }
4158
+ **/
4159
+ if (!empty($psp_post_social_data['tw_image'])) {
4160
+ //update_post_meta( $post_id, '_techblissonline_psp_tw_image', $psp_post_social_data['tw_image'] );
4161
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_image', $psp_post_social_data['tw_image'] );
4162
+ } else {
4163
+ //delete_post_meta( $post_id, '_techblissonline_psp_tw_image');
4164
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_image');
4165
  }
4166
  /************
4167
  if (!empty($psp_post_social_data['tw_label_1'])) update_post_meta( $post_id, '_techblissonline_psp_tw_label_1', $psp_post_social_data['tw_label_1'] );
4168
  if (!empty($psp_post_social_data['tw_data_1'])) update_post_meta( $post_id, '_techblissonline_psp_tw_data_1', $psp_post_social_data['tw_data_1'] );
4169
  if (!empty($psp_post_social_data['tw_label_2'])) update_post_meta( $post_id, '_techblissonline_psp_tw_label_2', $psp_post_social_data['tw_label_2'] );
4170
  if (!empty($psp_post_social_data['tw_data_2'])) update_post_meta( $post_id, '_techblissonline_psp_tw_data_2', $psp_post_social_data['tw_data_2'] );
4171
+
4172
 
4173
  if (!empty($psp_post_social_tw_label_data)) {
4174
  update_post_meta( $post_id, '_techblissonline_psp_tw_label_data', $psp_post_social_tw_label_data);
4175
  } else {
4176
  delete_post_meta( $post_id, '_techblissonline_psp_tw_label_data');
4177
  }
4178
+ **********/
4179
  if (!empty($psp_post_social_data['tw_creator'])) {
4180
+ //update_post_meta( $post_id, '_techblissonline_psp_tw_creator', $psp_post_social_data['tw_creator'] );
4181
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_creator', $psp_post_social_data['tw_creator'] );
4182
+
4183
  } else {
4184
+ //delete_post_meta( $post_id, '_techblissonline_psp_tw_creator');
4185
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_creator');
4186
  }
4187
 
4188
  if (!empty($psp_post_social_data['tw_imagealt'])) {
4189
+ //update_post_meta( $post_id, '_techblissonline_psp_tw_imagealt', $psp_post_social_data['tw_imagealt'] );
4190
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_imagealt', $psp_post_social_data['tw_imagealt'] );
4191
  } else {
4192
+ //delete_post_meta( $post_id, '_techblissonline_psp_tw_imagealt');
4193
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_imagealt');
4194
  }
4195
 
4196
  if (!empty($psp_post_social_data['tw_player'])) {
4197
+ //update_post_meta( $post_id, '_techblissonline_psp_tw_player', $psp_post_social_data['tw_player'] );
4198
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_player', $psp_post_social_data['tw_player'] );
4199
  } else {
4200
+ //delete_post_meta( $post_id, '_techblissonline_psp_tw_player');
4201
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_player');
4202
  }
4203
 
4204
  if (!empty($psp_post_social_data['tw_player_stream'])) {
4205
+ //update_post_meta( $post_id, '_techblissonline_psp_tw_player_stream', $psp_post_social_data['tw_player_stream'] );
4206
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_player_stream', $psp_post_social_data['tw_player_stream'] );
4207
  } else {
4208
+ //delete_post_meta( $post_id, '_techblissonline_psp_tw_player_stream');
4209
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_player_stream');
4210
  }
4211
 
4212
  if (!empty($psp_post_social_data['tw_player_width'])) {
4213
+ //update_post_meta( $post_id, '_techblissonline_psp_tw_player_width', $psp_post_social_data['tw_player_width']);
4214
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_player_width', $psp_post_social_data['tw_player_width'] );
4215
  } else {
4216
+ //delete_post_meta( $post_id, '_techblissonline_psp_tw_player_width');
4217
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_player_width');
4218
  }
4219
 
4220
  if (!empty($psp_post_social_data['tw_player_height'])) {
4221
+ //update_post_meta( $post_id, '_techblissonline_psp_tw_player_height', $psp_post_social_data['tw_player_height']);
4222
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_player_height', $psp_post_social_data['tw_player_height'] );
4223
  } else {
4224
+ //delete_post_meta( $post_id, '_techblissonline_psp_tw_player_height');
4225
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_player_height');
4226
  }
4227
 
4228
  if (!empty($psp_post_social_data['tw_app_country'])) {
4229
+ //update_post_meta( $post_id, '_techblissonline_psp_tw_app_country', $psp_post_social_data['tw_app_country']);
4230
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_app_country', $psp_post_social_data['tw_app_country'] );
4231
  } else {
4232
+ //delete_post_meta( $post_id, '_techblissonline_psp_tw_app_country');
4233
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_app_country');
4234
  }
4235
 
4236
  if (!empty($psp_post_social_data['tw_app_name_iphone'])) {
4237
+ //update_post_meta( $post_id, '_techblissonline_psp_tw_app_name_iphone', $psp_post_social_data['tw_app_name_iphone']);
4238
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_app_name_iphone', $psp_post_social_data['tw_app_name_iphone'] );
4239
  } else {
4240
+ //delete_post_meta( $post_id, '_techblissonline_psp_tw_app_name_iphone');
4241
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_app_name_iphone');
4242
  }
4243
 
4244
  if (!empty($psp_post_social_data['tw_app_id_iphone'])) {
4245
+ //update_post_meta( $post_id, '_techblissonline_psp_tw_app_id_iphone', $psp_post_social_data['tw_app_id_iphone']);
4246
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_app_id_iphone', $psp_post_social_data['tw_app_id_iphone'] );
4247
  } else {
4248
+ //delete_post_meta( $post_id, '_techblissonline_psp_tw_app_id_iphone');
4249
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_app_id_iphone');
4250
  }
4251
 
4252
  if (!empty($psp_post_social_data['tw_app_url_iphone'])) {
4253
+ //update_post_meta( $post_id, '_techblissonline_psp_tw_app_url_iphone', $psp_post_social_data['tw_app_url_iphone']);
4254
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_app_url_iphone', $psp_post_social_data['tw_app_url_iphone'] );
4255
  } else {
4256
+ //delete_post_meta( $post_id, '_techblissonline_psp_tw_app_url_iphone');
4257
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_app_url_iphone');
4258
  }
4259
 
4260
  if (!empty($psp_post_social_data['tw_app_name_ipad'])) {
4261
+ //update_post_meta( $post_id, '_techblissonline_psp_tw_app_name_ipad', $psp_post_social_data['tw_app_name_ipad']);
4262
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_app_name_ipad', $psp_post_social_data['tw_app_name_ipad'] );
4263
  } else {
4264
+ //delete_post_meta( $post_id, '_techblissonline_psp_tw_app_name_ipad');
4265
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_app_name_ipad');
4266
  }
4267
  if (!empty($psp_post_social_data['tw_app_id_ipad'])) {
4268
+ //update_post_meta( $post_id, '_techblissonline_psp_tw_app_id_ipad', $psp_post_social_data['tw_app_id_ipad']);
4269
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_app_id_ipad', $psp_post_social_data['tw_app_id_ipad'] );
4270
  } else {
4271
+ //delete_post_meta( $post_id, '_techblissonline_psp_tw_app_id_ipad');
4272
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_app_id_ipad');
4273
  }
4274
  if (!empty($psp_post_social_data['tw_app_url_ipad'])) {
4275
+ //update_post_meta( $post_id, '_techblissonline_psp_tw_app_url_ipad', $psp_post_social_data['tw_app_url_ipad']);
4276
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_app_url_ipad', $psp_post_social_data['tw_app_url_ipad'] );
4277
  } else {
4278
+ //delete_post_meta( $post_id, '_techblissonline_psp_tw_app_url_ipad');
4279
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_app_url_ipad');
4280
  }
4281
 
4282
  if (!empty($psp_post_social_data['tw_app_name_googleplay'])) {
4283
+ //update_post_meta( $post_id, '_techblissonline_psp_tw_app_name_googleplay', $psp_post_social_data['tw_app_name_googleplay']);
4284
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_app_name_googleplay', $psp_post_social_data['tw_app_name_googleplay'] );
4285
  } else {
4286
+ //delete_post_meta( $post_id, '_techblissonline_psp_tw_app_name_googleplay');
4287
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_app_name_googleplay');
4288
  }
4289
  if (!empty($psp_post_social_data['tw_app_id_googleplay'])) {
4290
+ //update_post_meta( $post_id, '_techblissonline_psp_tw_app_id_googleplay', $psp_post_social_data['tw_app_id_googleplay']);
4291
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_app_id_googleplay', $psp_post_social_data['tw_app_id_googleplay'] );
4292
  } else {
4293
+ //delete_post_meta( $post_id, '_techblissonline_psp_tw_app_id_googleplay');
4294
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_app_id_googleplay');
4295
  }
4296
  if (!empty($psp_post_social_data['tw_app_url_googleplay'])) {
4297
+ //update_post_meta( $post_id, '_techblissonline_psp_tw_app_url_googleplay', $psp_post_social_data['tw_app_url_googleplay']);
4298
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_app_url_googleplay', $psp_post_social_data['tw_app_url_googleplay'] );
4299
  } else {
4300
+ //delete_post_meta( $post_id, '_techblissonline_psp_tw_app_url_googleplay');
4301
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_tw_app_url_googleplay');
4302
  }
4303
 
4304
  if (!empty($psp_post_social_data['fb_og_type'])){
4305
+ //update_post_meta( $post_id, '_techblissonline_psp_fb_og_type', $psp_post_social_data['fb_og_type'] );
4306
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_fb_og_type', $psp_post_social_data['fb_og_type'] );
4307
  } else {
4308
+ //delete_post_meta( $post_id, '_techblissonline_psp_fb_og_type');
4309
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_fb_og_type');
4310
  }
4311
 
4312
  if (!empty($psp_post_social_data['fb_title'])) {
4313
+ //update_post_meta( $post_id, '_techblissonline_psp_fb_title', $psp_post_social_data['fb_title'] );
4314
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_fb_title', $psp_post_social_data['fb_title'] );
4315
  } else {
4316
+ //delete_post_meta( $post_id, '_techblissonline_psp_fb_title');
4317
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_fb_title');
4318
  }
4319
 
4320
  if (!empty($psp_post_social_data['fb_description'])) {
4321
+ //update_post_meta( $post_id, '_techblissonline_psp_fb_description', $psp_post_social_data['fb_description'] );
4322
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_fb_description', $psp_post_social_data['fb_description'] );
4323
  } else {
4324
+ //delete_post_meta( $post_id, '_techblissonline_psp_fb_description');
4325
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_fb_description');
4326
  }
4327
  if (!empty($psp_post_social_data['fb_image'])) {
4328
+ //update_post_meta( $post_id, '_techblissonline_psp_fb_image', $psp_post_social_data['fb_image'] );
4329
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_fb_image', $psp_post_social_data['fb_image'] );
4330
  } else {
4331
+ //delete_post_meta( $post_id, '_techblissonline_psp_fb_image');
4332
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_fb_image');
4333
  }
4334
  //if (isset($psp_post_social_data['fb_ogtype_properties'])) update_post_meta( $post_id, '_techblissonline_psp_fb_ogtype_properties', $psp_post_social_data['fb_ogtype_properties'] );
4335
  if (!empty($psp_post_fb_ogtype_properties)) {
4336
+ //update_post_meta( $post_id, '_techblissonline_psp_fb_ogtype_properties', $psp_post_fb_ogtype_properties );
4337
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_fb_ogtype_properties', $psp_post_fb_ogtype_properties );
4338
  } else {
4339
+ //delete_post_meta( $post_id, '_techblissonline_psp_fb_ogtype_properties');
4340
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_fb_ogtype_properties');
4341
  }
4342
  //if (isset($psp_post_social_data['fb_media_properties'])) update_post_meta( $post_id, '_techblissonline_psp_fb_media_properties', $psp_post_social_data['fb_media_properties'] );
4343
  if (!empty($psp_post_fb_media_properties)) {
4344
+ //update_post_meta( $post_id, '_techblissonline_psp_fb_media_properties', $psp_post_fb_media_properties );
4345
+ update_metadata( 'platinumseo', $post_id, '_techblissonline_psp_fb_media_properties', $psp_post_fb_media_properties );
4346
  } else {
4347
+ //delete_post_meta( $post_id, '_techblissonline_psp_fb_media_properties');
4348
+ delete_metadata( 'platinumseo', $post_id, '_techblissonline_psp_fb_media_properties');
4349
  }
4350
 
4351
  //update google sitemap generator
5048
  $psp_category_slugs[] = $category->slug;
5049
  } else {
5050
  //$psp_category_slugs[] = trim( get_category_parents( $category->cat_ID, false, '/', true ), '/' );
5051
+ $psp_category_slugs[] = trim( get_term_parents_list( $category->term_id, $tax_name, array('separator' => '/', 'link' => false, 'format' => 'slug')), '/' );
5052
  }
5053
  //}
5054
  }
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.0";
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.1.0";
23
 
24
  public $sitename = "";
25
  public $sitedescription = "";
psp_main.php CHANGED
@@ -242,28 +242,38 @@ class PspMain {
242
  add_action('admin_init', array($this, 'platinum_seo_notice_dismissed'));
243
  //v2.0.8
244
  }
245
- //v2.0.8
246
  public function platinum_seo_notice_dismissed() {
247
- $user_id = get_current_user_id();
248
- if ( isset( $_GET['psp_ignore_notice'] ) &&
249
- '1' === $_GET['psp_ignore_notice'] ) {
250
- $user_id = get_current_user_id();
251
- // Add the meta so that the notice is permanently dismissed.
252
- add_user_meta( $user_id, 'psp_ignore_notice_v_208', true, true );
253
- };
254
- }
 
 
 
 
 
 
 
 
255
 
256
  public function platinum_seo_admin_notice__success() {
257
  $user_id = get_current_user_id();
258
- if ( get_user_meta( $user_id, 'psp_ignore_notice_v_208', true ) ) return;
259
  global $pagenow;
260
  $psp_pages = array('platinum-seo-social-pack-by-techblissonline', 'psp-social-by-techblissonline', 'psp-tools-by-techblissonline', 'pspp-licenses');
261
  if ('index.php' === $pagenow || ( $pagenow == 'admin.php' && in_array(sanitize_key($_GET['page']), $psp_pages))) {
262
  ?>
263
  <div class="notice notice-success is-dismissible">
264
- <strong><p><?php echo esc_html__( 'Thank you for using Platinum SEO Plugin!', 'platinum-seo-pack' ).'<a href="https://techblissonline.com/platinum-wordpress-seo-plugin/#what-is-new" target="_blank"> '.esc_html__( 'See What has Changed in this Version 2.0.8!', 'platinum-seo-pack' ).'</a>'.'<a href="'. esc_url( add_query_arg( [
265
  'psp_ignore_notice' => '1',
266
- ] ) ) .'" style="float:right; display:block; border:none;">'.esc_html__( 'Dismiss permanently', 'platinum-seo-pack' ) .'</a>'; ?><br><?php echo esc_html__( 'Make sure to clear browser cache after you update to this version!', 'platinum-seo-pack' ) ?></p></strong>
 
 
267
  </div>
268
  <?php
269
  }
@@ -499,7 +509,12 @@ class PspMain {
499
  global $post;
500
  $wp_post_meta_data_arr = array();
501
  if ($post) {
502
- $wp_post_meta_data_arr = get_post_meta($post->ID);
 
 
 
 
 
503
  }
504
  $psp_post_disablers = !empty($wp_post_meta_data_arr['_techblissonline_psp_disable_flags'][0]) ? unserialize($wp_post_meta_data_arr['_techblissonline_psp_disable_flags'][0]) : array();
505
 
@@ -532,7 +547,12 @@ class PspMain {
532
  global $post;
533
  $wp_post_meta_data_arr = array();
534
  if ($post) {
535
- $wp_post_meta_data_arr = get_post_meta($post->ID);
 
 
 
 
 
536
  }
537
  $psp_post_disablers = !empty($wp_post_meta_data_arr['_techblissonline_psp_disable_flags'][0]) ? unserialize($wp_post_meta_data_arr['_techblissonline_psp_disable_flags'][0]) : array();
538
 
@@ -567,26 +587,46 @@ class PspMain {
567
  }
568
  }
569
  if (!empty($post_id)) {
570
- $psp_redirect_to_url = get_post_meta($post_id, '_techblissonline_psp_redirect_to_url', true);
571
- $psp_redirect_status_code = get_post_meta($post_id, '_techblissonline_psp_redirect_status_code', true);
 
 
 
 
 
 
 
572
  }
573
  } else if (is_category()) {
574
  $current_cat_obj = get_category(get_query_var('cat'));
575
  if ( is_object( $current_cat_obj ) && isset( $current_cat_obj->cat_ID ) ) $cat_id = $current_cat_obj->cat_ID;
576
- if(!empty($cat_id)) $term_meta = get_option( "psp_category_seo_metas_$cat_id");
 
 
 
 
577
  $psp_redirect_to_url = isset($term_meta['redirect_to_url']) ? $term_meta['redirect_to_url'] : '';
578
  $psp_redirect_status_code = isset($term_meta['redirect_status_code']) ? $term_meta['redirect_status_code'] : '';
579
  } else if (is_tag()) {
580
  $current_tag_obj = get_term_by('slug',get_query_var('tag'),'post_tag');
581
  if ( is_object( $current_tag_obj ) && isset( $current_tag_obj->term_id ) ) $term_id = $current_tag_obj->term_id;
582
- if(!empty($term_id)) $term_meta = get_option( "psp_taxonomy_seo_metas_$term_id");
 
 
 
 
 
583
  $psp_redirect_to_url = isset($term_meta['redirect_to_url']) ? $term_meta['redirect_to_url'] : '';
584
  $psp_redirect_status_code = isset($term_meta['redirect_status_code']) ? $term_meta['redirect_status_code'] : '';
585
 
586
  } else if (is_tax()) {
587
  $term_object = get_term_by( 'slug', get_query_var('term'), get_query_var( 'taxonomy' ) );
588
  if ( is_object( $term_object ) && isset( $term_object->term_id ) ) $term_id = $term_object->term_id;
589
- if(!empty($term_id)) $term_meta = get_option( "psp_taxonomy_seo_metas_$term_id");
 
 
 
 
590
  $psp_redirect_to_url = isset($term_meta['redirect_to_url']) ? $term_meta['redirect_to_url'] : '';
591
  $psp_redirect_status_code = isset($term_meta['redirect_status_code']) ? $term_meta['redirect_status_code'] : '';
592
  } else if (is_author()) {
@@ -670,7 +710,8 @@ class PspMain {
670
  $seo_meta_string = $psp_tax_instance->get_cat_seo_metas($canonical);
671
  $this->psp_set_social_metas($psp_tax_instance);
672
  $social_meta_string = $this->psp_social_handle->psp_get_social_metas();
673
- if (!empty($social_meta_string)) $seo_meta_string .= "\r\n".$social_meta_string;
 
674
  } else if (is_tag()) {
675
  $seo_meta_string = $psp_tax_instance->get_tag_seo_metas($canonical);
676
  $this->psp_set_social_metas($psp_tax_instance);
@@ -1341,31 +1382,39 @@ class PspMain {
1341
  $psp_redirections_tbl = $wpdb->prefix . 'psp_redirections';
1342
  $psp_redirections_log = $wpdb->prefix . 'psp_redirections_log';
1343
  $psp_404_log = $wpdb->prefix . "psp_404_log";
 
 
 
 
 
 
1344
 
1345
  $charset_collate = $wpdb->get_charset_collate();
1346
  if ( get_site_option( 'psp_db_version' ) == $psp_db_version ) {
1347
  return;
1348
  }
1349
 
1350
- if($wpdb->get_var("show tables like '$psp_redirections_tbl'") != $psp_redirections_tbl)
1351
- {
1352
- $psp_sql = "CREATE TABLE $psp_redirections_tbl (
 
1353
  id mediumint(9) NOT NULL AUTO_INCREMENT,
1354
  source_url varchar(255) DEFAULT '' NOT NULL,
1355
  dest_url varchar(255) DEFAULT '' NOT NULL,
1356
  redir_code varchar(55) DEFAULT '' NOT NULL,
1357
  log_redirect varchar(10) DEFAULT '' NOT NULL,
1358
  created TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,
1359
- PRIMARY KEY (id)
 
1360
  ) $charset_collate;";
1361
 
1362
- require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
1363
- dbDelta( $psp_sql );
1364
- }
1365
 
1366
- if($wpdb->get_var("show tables like '$psp_redirections_log'") != $psp_redirections_log)
1367
- {
1368
- $psp_sql = "CREATE TABLE $psp_redirections_log (
1369
  id mediumint(9) NOT NULL AUTO_INCREMENT,
1370
  source_uri varchar(255) DEFAULT '' NOT NULL,
1371
  source_url varchar(255) DEFAULT '' NOT NULL,
@@ -1378,13 +1427,13 @@ class PspMain {
1378
  PRIMARY KEY (id)
1379
  ) $charset_collate;";
1380
 
1381
- require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
1382
- dbDelta( $psp_sql );
1383
- }
1384
 
1385
- if($wpdb->get_var("show tables like '$psp_404_log'") != $psp_404_log)
1386
- {
1387
- $psp_sql = "CREATE TABLE $psp_404_log (
1388
  id mediumint(9) NOT NULL AUTO_INCREMENT,
1389
  source_uri varchar(255) DEFAULT '' NOT NULL,
1390
  source_url varchar(255) DEFAULT '' NOT NULL,
@@ -1398,11 +1447,35 @@ class PspMain {
1398
  PRIMARY KEY (id)
1399
  ) $charset_collate;";
1400
 
1401
- require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
1402
- dbDelta( $psp_sql );
1403
- }
1404
-
1405
- add_option( 'psp_db_version', $psp_db_version );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1406
 
1407
  }
1408
  //same as redirect_canonical in WordPress Core but redirect_guess_404_permalink() has been disabled
242
  add_action('admin_init', array($this, 'platinum_seo_notice_dismissed'));
243
  //v2.0.8
244
  }
245
+ //v2.1.0
246
  public function platinum_seo_notice_dismissed() {
247
+ $user_id = get_current_user_id();
248
+ if (
249
+ isset($_GET['action']) &&
250
+ isset($_GET['nonce']) &&
251
+ $_GET['action'] === 'psp_delete_adminnotice' &&
252
+ wp_verify_nonce($_GET['nonce'], 'psp_delete_adminnotice')
253
+ ) {
254
+ if ( isset( $_GET['psp_ignore_notice'] ) &&
255
+ '1' === $_GET['psp_ignore_notice'] ) {
256
+ $user_id = get_current_user_id();
257
+ // Add the meta so that the notice is permanently dismissed.
258
+ delete_user_meta( $user_id, 'psp_ignore_notice_v_209' );
259
+ update_user_meta( $user_id, 'psp_ignore_notice', "v_210" );
260
+ };
261
+ };
262
+ }
263
 
264
  public function platinum_seo_admin_notice__success() {
265
  $user_id = get_current_user_id();
266
+ if ( "v_210" === trim(get_user_meta( $user_id, 'psp_ignore_notice', true ) )) return;
267
  global $pagenow;
268
  $psp_pages = array('platinum-seo-social-pack-by-techblissonline', 'psp-social-by-techblissonline', 'psp-tools-by-techblissonline', 'pspp-licenses');
269
  if ('index.php' === $pagenow || ( $pagenow == 'admin.php' && in_array(sanitize_key($_GET['page']), $psp_pages))) {
270
  ?>
271
  <div class="notice notice-success is-dismissible">
272
+ <strong><p><?php echo esc_html__( 'Thank you for using Platinum SEO Plugin! See What has Changed in this', 'platinum-seo-pack' ).'<a href="https://techblissonline.com/platinum-wordpress-seo-plugin/#what-is-new" target="_blank"> '.esc_html__( ' Version 2.1.0 and V2.0.9!', 'platinum-seo-pack' ).'</a>'.'<a href="'. esc_url( add_query_arg( [
273
  'psp_ignore_notice' => '1',
274
+ 'action' => 'psp_delete_adminnotice',
275
+ 'nonce' => wp_create_nonce('psp_delete_adminnotice'),
276
+ ] ) ) .'" style="float:right; display:block; border:none;">'.esc_html__( 'Dismiss permanently', 'platinum-seo-pack' ) .'</a>'; ?><br><?php echo esc_html__( "We are moving to a separate table. If you are an existing Platinum SEO Plugin User, import your existing Platinum SEO Data into the new table choosing Platinum SEO in the", "platinum-seo-pack" ).'<a href="'. get_admin_url(get_current_blog_id()).'admin.php?page=importer"> '.esc_html__( " Importer!", "platinum-seo-pack" ).'</a>' ?></p></strong>
277
  </div>
278
  <?php
279
  }
509
  global $post;
510
  $wp_post_meta_data_arr = array();
511
  if ($post) {
512
+ //$wp_post_meta_data_arr = get_post_meta($post->ID);
513
+ $wp_post_meta_data_arr = get_metadata( 'platinumseo', $post->ID, '', false );
514
+
515
+ if(!$wp_post_meta_data_arr) {
516
+ $wp_post_meta_data_arr = get_post_meta($post->ID);
517
+ }
518
  }
519
  $psp_post_disablers = !empty($wp_post_meta_data_arr['_techblissonline_psp_disable_flags'][0]) ? unserialize($wp_post_meta_data_arr['_techblissonline_psp_disable_flags'][0]) : array();
520
 
547
  global $post;
548
  $wp_post_meta_data_arr = array();
549
  if ($post) {
550
+ //$wp_post_meta_data_arr = get_post_meta($post->ID);
551
+ $wp_post_meta_data_arr = get_metadata( 'platinumseo', $post->ID, '', false );
552
+
553
+ if(!$wp_post_meta_data_arr) {
554
+ $wp_post_meta_data_arr = get_post_meta($post->ID);
555
+ }
556
  }
557
  $psp_post_disablers = !empty($wp_post_meta_data_arr['_techblissonline_psp_disable_flags'][0]) ? unserialize($wp_post_meta_data_arr['_techblissonline_psp_disable_flags'][0]) : array();
558
 
587
  }
588
  }
589
  if (!empty($post_id)) {
590
+
591
+ $psp_redirect_to_url = get_metadata('platinumseo', $post_id, '_techblissonline_psp_redirect_to_url', true);
592
+ if(empty($psp_redirect_to_url)) {
593
+ $psp_redirect_to_url = get_post_meta($post_id, '_techblissonline_psp_redirect_to_url', true);
594
+ }
595
+ $psp_redirect_status_code = get_metadata('platinumseo', $post_id, '_techblissonline_psp_redirect_status_code', true);
596
+ if(empty($psp_redirect_status_code)) {
597
+ $psp_redirect_status_code = get_post_meta($post_id, '_techblissonline_psp_redirect_status_code', true);
598
+ }
599
  }
600
  } else if (is_category()) {
601
  $current_cat_obj = get_category(get_query_var('cat'));
602
  if ( is_object( $current_cat_obj ) && isset( $current_cat_obj->cat_ID ) ) $cat_id = $current_cat_obj->cat_ID;
603
+ if(!empty($cat_id)) {
604
+ $term_meta = get_term_meta( $cat_id, "psp_category_seo_metas_$cat_id");
605
+ if ($term_meta) $term_meta = $term_meta[0];
606
+ if (!$term_meta) $term_meta = get_option( "psp_category_seo_metas_$cat_id");
607
+ }
608
  $psp_redirect_to_url = isset($term_meta['redirect_to_url']) ? $term_meta['redirect_to_url'] : '';
609
  $psp_redirect_status_code = isset($term_meta['redirect_status_code']) ? $term_meta['redirect_status_code'] : '';
610
  } else if (is_tag()) {
611
  $current_tag_obj = get_term_by('slug',get_query_var('tag'),'post_tag');
612
  if ( is_object( $current_tag_obj ) && isset( $current_tag_obj->term_id ) ) $term_id = $current_tag_obj->term_id;
613
+ if(!empty($term_id)) {
614
+ $term_meta = get_term_meta( $term_id, "psp_taxonomy_seo_metas_$term_id");
615
+ if ($term_meta) $term_meta = $term_meta[0];
616
+ if (!$term_meta) $term_meta = get_option( "psp_taxonomy_seo_metas_$term_id");
617
+ }
618
+
619
  $psp_redirect_to_url = isset($term_meta['redirect_to_url']) ? $term_meta['redirect_to_url'] : '';
620
  $psp_redirect_status_code = isset($term_meta['redirect_status_code']) ? $term_meta['redirect_status_code'] : '';
621
 
622
  } else if (is_tax()) {
623
  $term_object = get_term_by( 'slug', get_query_var('term'), get_query_var( 'taxonomy' ) );
624
  if ( is_object( $term_object ) && isset( $term_object->term_id ) ) $term_id = $term_object->term_id;
625
+ if(!empty($term_id)) {
626
+ $term_meta = get_term_meta( $term_id, "psp_taxonomy_seo_metas_$term_id");
627
+ if ($term_meta) $term_meta = $term_meta[0];
628
+ if (!$term_meta) $term_meta = get_option( "psp_taxonomy_seo_metas_$term_id");
629
+ }
630
  $psp_redirect_to_url = isset($term_meta['redirect_to_url']) ? $term_meta['redirect_to_url'] : '';
631
  $psp_redirect_status_code = isset($term_meta['redirect_status_code']) ? $term_meta['redirect_status_code'] : '';
632
  } else if (is_author()) {
710
  $seo_meta_string = $psp_tax_instance->get_cat_seo_metas($canonical);
711
  $this->psp_set_social_metas($psp_tax_instance);
712
  $social_meta_string = $this->psp_social_handle->psp_get_social_metas();
713
+ //if (!empty($social_meta_string)) $seo_meta_string .= "\r\n".$social_meta_string;
714
+ if (!empty($social_meta_string)) $seo_meta_string .= $social_meta_string;
715
  } else if (is_tag()) {
716
  $seo_meta_string = $psp_tax_instance->get_tag_seo_metas($canonical);
717
  $this->psp_set_social_metas($psp_tax_instance);
1382
  $psp_redirections_tbl = $wpdb->prefix . 'psp_redirections';
1383
  $psp_redirections_log = $wpdb->prefix . 'psp_redirections_log';
1384
  $psp_404_log = $wpdb->prefix . "psp_404_log";
1385
+
1386
+ $psp_meta = $wpdb->prefix . 'platinumseometa';
1387
+ $psp_tempmeta = $wpdb->prefix . 'tempmeta';
1388
+
1389
+ $wpdb->platinumseometa = $psp_meta;
1390
+ $wpdb->tempmeta = $psp_tempmeta;
1391
 
1392
  $charset_collate = $wpdb->get_charset_collate();
1393
  if ( get_site_option( 'psp_db_version' ) == $psp_db_version ) {
1394
  return;
1395
  }
1396
 
1397
+ require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
1398
+ //if($wpdb->get_var("show tables like '$psp_redirections_tbl'") != $psp_redirections_tbl)
1399
+ //{
1400
+ $psp_sql_1 = "CREATE TABLE $psp_redirections_tbl (
1401
  id mediumint(9) NOT NULL AUTO_INCREMENT,
1402
  source_url varchar(255) DEFAULT '' NOT NULL,
1403
  dest_url varchar(255) DEFAULT '' NOT NULL,
1404
  redir_code varchar(55) DEFAULT '' NOT NULL,
1405
  log_redirect varchar(10) DEFAULT '' NOT NULL,
1406
  created TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,
1407
+ PRIMARY KEY (id),
1408
+ KEY source_url (source_url)
1409
  ) $charset_collate;";
1410
 
1411
+ //require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
1412
+ dbDelta( $psp_sql_1 );
1413
+ //}
1414
 
1415
+ //if($wpdb->get_var("show tables like '$psp_redirections_log'") != $psp_redirections_log)
1416
+ //{
1417
+ $psp_sql_2 = "CREATE TABLE $psp_redirections_log (
1418
  id mediumint(9) NOT NULL AUTO_INCREMENT,
1419
  source_uri varchar(255) DEFAULT '' NOT NULL,
1420
  source_url varchar(255) DEFAULT '' NOT NULL,
1427
  PRIMARY KEY (id)
1428
  ) $charset_collate;";
1429
 
1430
+ //require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
1431
+ dbDelta( $psp_sql_2 );
1432
+ //}
1433
 
1434
+ //if($wpdb->get_var("show tables like '$psp_404_log'") != $psp_404_log)
1435
+ //{
1436
+ $psp_sql_3 = "CREATE TABLE $psp_404_log (
1437
  id mediumint(9) NOT NULL AUTO_INCREMENT,
1438
  source_uri varchar(255) DEFAULT '' NOT NULL,
1439
  source_url varchar(255) DEFAULT '' NOT NULL,
1447
  PRIMARY KEY (id)
1448
  ) $charset_collate;";
1449
 
1450
+ //require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
1451
+ dbDelta( $psp_sql_3 );
1452
+ //}
1453
+
1454
+ $psp_sql_4 = "CREATE TABLE $psp_meta (
1455
+ meta_id bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
1456
+ platinumseo_id bigint(20) UNSIGNED DEFAULT 0 NOT NULL,
1457
+ meta_key varchar(255) NULL DEFAULT NULL,
1458
+ meta_value longtext NULL,
1459
+ PRIMARY KEY (meta_id),
1460
+ KEY platinumseo_id (platinumseo_id),
1461
+ KEY meta_key (meta_key)
1462
+ ) $charset_collate;";
1463
+
1464
+ dbDelta( $psp_sql_4 );
1465
+
1466
+ $psp_sql_5 = "CREATE TABLE $psp_tempmeta (
1467
+ meta_id bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
1468
+ post_id bigint(20) UNSIGNED DEFAULT 0 NOT NULL,
1469
+ meta_key varchar(255) NULL DEFAULT NULL,
1470
+ meta_value longtext NULL,
1471
+ PRIMARY KEY (meta_id),
1472
+ KEY post_id (post_id),
1473
+ KEY meta_key (meta_key)
1474
+ ) $charset_collate;";
1475
+
1476
+ dbDelta( $psp_sql_5 );
1477
+
1478
+ update_option( 'psp_db_version', $psp_db_version );
1479
 
1480
  }
1481
  //same as redirect_canonical in WordPress Core but redirect_guess_404_permalink() has been disabled
readme.txt CHANGED
@@ -1,11 +1,12 @@
1
  === Platinum SEO ===
2
- Contributors: Techblissonline (Rajesh)
 
3
  Plugin link: https://techblissonline.com/platinum-wordpress-seo-plugin/
4
  Tags: seo, wordpress seo, plugin, google seo, platinum seo, schema, schema markup, Json schema
5
  Requires at least: 4.0
6
- Tested up to: 5.4
7
  Requires PHP: 5.6
8
- Stable tag: 2.0.8
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -22,30 +23,28 @@ Techblissonline's **[ WordPress SEO Plugin](https://techblissonline.com/platinum
22
 
23
  Some features:
24
 
25
- * Create and set any kind of Json-ld schema markup tag for any post, page or taxonomy. Thus Platinum SEO is now the easiest Plugin to add JSON Schema Markup. This can be generated using the free JSON Schema Markup Generator on Techblissonline.com.
26
- * Canonical URLs are set automatically. Users can also override default canonical URLs for any POST or Page by explicitly setting the Canonical URL in the Techblissonline Platinum SEO MetaBox. You may even set Cross site Canonical URLs.
27
- * Create social meta tags for facebook, twitter, pinterest and linkedin.
28
- * Optimized Post and Page Titles for search engines
29
- * Generates all SEO relevant META tags automatically
30
- * Option to specify meta description and meta keywords tag for categories and tag pages.
31
- * Option to turn off Page title or Post title rewrites for any particular post or page
32
- * Option to turn off Page title or Post title format for any particular post or page
33
- * Helps you avoid duplicate content
34
- * Lets you override any title and set any META description and META keywords, for any post or page
35
- * Support for custom post types
36
- * Support for custom taxonomies
37
- * Compatible with most other plugins. You can use Google XML Sitemap Generator to generate your sitemap. You can exclude any particular post/page/taxonomy from the sitemap through settings in the Techblissonline Platinum Wordpress SEO Plugin.
38
- * You have a 404 Manager.You can HTTP Redirect any Post or URL that returns a 404 Error. You can also set status to 410, if needed. [Fix 404 Errors](https://techblissonline.com/http-404-error/) using its 404 Monitor and doing [HTTP Redirect in WordPress](https://techblissonline.com/redirection-in-wordpress/)
39
- * WordPress Plugin to change HTTP status code from 404 to 410.
40
- * You now have a complete Redirection Manager.You can redirect any post or page to the desired location.
41
- * WordPress 301 Redirect Plugin using HTTP 301 Status Code
42
- * WordPress 302 Redirect Plugin using HTTP 302 Status Code
43
- * WordPress 307 Redirect Plugin using HTTP 307 Status Code
44
- * WordPress 303 Redirect Plugin using HTTP 303 Status Code
45
- * Add index, noindex, follow or nofollow, noodp, noydir, noarchive, nosnippet meta tags to any post/page.
46
- * Plenty of other features.
47
-
48
-
49
 
50
  == Installation ==
51
 
@@ -69,10 +68,16 @@ Please read these **[FAQs](https://techblissonline.com/platinum-seo-pack-faq/)**
69
  4. Social Settings for Facebook, Twitter, Pinterest and LinkedIn. Generates Open Grah Tags and Twitter compatible Tags.
70
 
71
  == Changelog ==
 
 
 
 
 
 
72
  = 2.0.8 =
73
- * 2020-04-11 - Fixed a bug that prevented Redirection from getting created when "Create Redirection" was clicked in Platinum SEO 404 Manager. However, the ability to create Redirection through "Bulk Updates" dropdown was working as expected.
74
  Modified a Javascript related to snippet preview. Hence it is essential for users to clear browser cache after updating the plugin to V2.0.8. Otherwise, browsers will continue to use the old Javascript file stored in its cache. causing issues
75
- Platinum SEO Plugin now enables its users to disable 404 Permalink guessing that WordPress does as part of its canonical redirec function. Though this function does several useful SEO related functionlaities, this guessing may prove to be harmful in certain cases and it is always better to let the WordPress user determine the URL to redirect to by monitoring the 404 Error Log.This can be done easily using Platinum SEO WordPress Plugin. For more details, read Techblissonline.
76
 
77
  = 2.0.7 =
78
  * 2020-04-05 - Updation to help file links in Redirections Settings.
1
  === Platinum SEO ===
2
+ Contributors: Rajesh Babu, Techblissonline (Rajesh)
3
+ Donate link: https://www.patreon.com/join/techblissonline
4
  Plugin link: https://techblissonline.com/platinum-wordpress-seo-plugin/
5
  Tags: seo, wordpress seo, plugin, google seo, platinum seo, schema, schema markup, Json schema
6
  Requires at least: 4.0
7
+ Tested up to: 5.4.1
8
  Requires PHP: 5.6
9
+ Stable tag: 2.1.0
10
  License: GPLv2 or later
11
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
12
 
23
 
24
  Some features:
25
 
26
+ 1) Create and set any kind of Json-ld schema markup tag for any post, page or taxonomy. Thus Platinum SEO is now the easiest Plugin to add JSON Schema Markup. This can be generated using the free JSON Schema Markup Generator on Techblissonline.com.
27
+ 2) Canonical URLs are set automatically. Users can also override default canonical URLs for any POST or Page by explicitly setting the Canonical URL in the Techblissonline Platinum SEO MetaBox. You may even set Cross site Canonical URLs.
28
+ 3) Create social meta tags for facebook, twitter, pinterest and linkedin.
29
+ 4) Optimized Post and Page Titles for search engines
30
+ 5) Generates all SEO relevant META tags automatically
31
+ 6) Option to specify meta description and meta keywords tag for categories and tag pages.
32
+ 7) Option to turn off Page title or Post title rewrites for any particular post or page
33
+ 8) Option to turn off Page title or Post title format for any particular post or page
34
+ 9) Helps you avoid duplicate content
35
+ 10) Lets you override any title and set any META description and META keywords, for any post or page
36
+ 11) Support for custom post types
37
+ 12) Support for custom taxonomies
38
+ 13) Compatible with most other plugins. You can use Google XML Sitemap Generator to generate your sitemap. You can exclude any particular post/page/taxonomy from the sitemap through settings in the Techblissonline Platinum Wordpress SEO Plugin.
39
+ 14) You have a 404 Manager.You can HTTP Redirect any Post or URL that returns a 404 Error. You can also set status to 410, if needed. [Fix 404 Errors](https://techblissonline.com/http-404-error/) using its 404 Monitor and doing [HTTP Redirect in WordPress](https://techblissonline.com/redirection-in-wordpress/)
40
+ 15) WordPress Plugin to change HTTP status code from 404 to 410.
41
+ 16) You now have a complete Redirection Manager.You can redirect any post or page to the desired location.
42
+ 17) WordPress 301 Redirect Plugin using HTTP 301 Status Code
43
+ 18) WordPress 302 Redirect Plugin using HTTP 302 Status Code
44
+ 19) WordPress 307 Redirect Plugin using HTTP 307 Status Code
45
+ 20) WordPress 303 Redirect Plugin using HTTP 303 Status Code
46
+ 21) Add index, noindex, follow or nofollow, noodp, noydir, noarchive, nosnippet meta tags to any post/page.
47
+ 22) Plenty of other features.
 
 
48
 
49
  == Installation ==
50
 
68
  4. Social Settings for Facebook, Twitter, Pinterest and LinkedIn. Generates Open Grah Tags and Twitter compatible Tags.
69
 
70
  == Changelog ==
71
+ = 2.1.0 =
72
+ * 2020-05-16 - Platinum SEO Plugin will now have its own SEO meta table _platinumseometa. All the SEO meta data used by the plugin will now be in this table. Importers for Yoast, Yoast Indexables and RankMath WordPress SEO Plugins have now been included to make it easy for users using those plugins to migrate to Platinum SEO WordPress Plugin.
73
+
74
+ = 2.0.9 =
75
+ * 2020-04-16 - Redirection can now be created using Request URI, Request Path or Request URL as the source URL.
76
+
77
  = 2.0.8 =
78
+ * 2020-04-12 - Fixed a bug that prevented Redirection from getting created when "Create Redirection" was clicked in Platinum SEO 404 Manager. However, the ability to create Redirection through "Bulk Updates" dropdown was working as expected.
79
  Modified a Javascript related to snippet preview. Hence it is essential for users to clear browser cache after updating the plugin to V2.0.8. Otherwise, browsers will continue to use the old Javascript file stored in its cache. causing issues
80
+ Platinum SEO Plugin now enables its users to disable 404 Permalink guessing that WordPress does as part of its canonical redirect function. Though this function does several useful SEO related functionalities, this guessing may prove to be harmful in certain cases and it is always better to let the WordPress user determine the URL to redirect to by monitoring the 404 Error Log.This can be done easily using Platinum SEO WordPress Plugin. For more details, read Techblissonline.
81
 
82
  = 2.0.7 =
83
  * 2020-04-05 - Updation to help file links in Redirections Settings.