SEOPress - Version 2.9

Version Description

  • NEW Video XML Sitemap (PRO Only)
  • NEW Add Google Suggest to find top 10 suggestions / keywords for your post (PRO Only)
  • NEW Add Romanian language (thanks to @antonio)
  • NEW Add Chinese language (thanks to @stanma)
  • NEW Add seopress_excerpt_length hook to filter excerpt length
  • NEW Add 'seopress_sitemaps_video_query' hook to filter video xml sitemap query
  • NEW og:image and twitter:image tags now automatically take the first image of the post if no post thumbnail
  • INFO Add og:title, og:description, og:image, twitter:title, twitter:description and twitter:image values from source code to placeholders
  • INFO Trim words for category, tag and term description on og:description and twitter:description meta (default: 50 words, use 'seopress_excerpt_length' hook to filter)
  • INFO add a check on "Discourage search engines from indexing this site" option before rendering meta robots
  • INFO Improve UI in notifications center
  • INFO Add useful information about og:image and twitter:image as image ratio, size etc when uploading
  • INFO Set meta robots to noindex if is a password protected page
  • INFO Detect relative urls in XML Image sitemap and fix them
  • FIX Export redirections file (thanks to Rmy Rouqual)
  • FIX Remove post type archive link in single XML sitemap if noindex set (thanks to Momo Zaza)
  • FIX Flush permalinks ajax
  • FIX XML Category sitemap if remove /category/ enabled
  • FIX Strip html comments in meta description / og:description / twitter:description / dc.description for excerpt/post content
  • FIX Fix translation in Local business
Download this release

Release Info

Developer rainbowgeek
Plugin Icon 128x128 SEOPress
Version 2.9
Comparing to
See all releases

Code changes from version 2.8.3 to 2.9

assets/css/seopress.css CHANGED
@@ -23,13 +23,27 @@
23
/*************************************************************************************************/
24
/* Metaboxe in CPT */
25
/*************************************************************************************************/
26
- #seopress_content_analysis .ui-tabs #seopress_suggestions.ui-tabs-nav {
27
display: inline-block;
28
width: 100%;
29
height: auto;
30
- margin: 20px 0;
31
}
32
- #seopress_content_analysis .ui-tabs #seopress_suggestions.ui-tabs-nav li {
33
list-style: square;
34
margin: 5px;
35
display: inline-block;
@@ -49,6 +63,7 @@
49
width: auto;
50
display: inline-block;
51
margin: 0 0 0 20px;
52
}
53
#seopress_content_analysis h3 {
54
border-bottom: 1px solid #ddd;
@@ -78,7 +93,7 @@
78
#seopress_cpt .ui-tabs .ui-tabs-nav,
79
#seopress_content_analysis .ui-tabs .ui-tabs-nav {
80
display: inline-block;
81
- height: 26px;
82
position: relative;
83
width: 100%;
84
z-index: 50;
@@ -138,10 +153,10 @@
138
#seopress_cpt #tabs-3 label,
139
#seopress_cpt #tabs-4 label,
140
#seopress_cpt #tabs-5 label,
141
#seopress_cpt .subsection-title,
142
#seopress_pro_cpt label,
143
#seopress_content_analysis label {
144
- border-bottom: 1px solid #DDDDDD;
145
display: block;
146
margin: 20px 0 5px;
147
font-weight: bold;
@@ -155,9 +170,18 @@
155
#seopress_cpt #tabs-3 input[type=text],
156
#seopress_cpt #tabs-4 input[type=text],
157
#seopress_cpt #tabs-5 input[type=text],
158
#seopress_content_analysis input[type=text] {
159
width:100%;
160
}
161
#seopress_cpt select {
162
width:300px;
163
}
@@ -169,12 +193,43 @@
169
width: calc(100% - 68px);
170
float: right;
171
}
172
#seopress_cpt #tabs-4 #seopress_redirections_enabled,
173
#seopress_cpt #tabs-5 #seopress_news_disabled,
174
- #seopress_cpt #tabs-5 #seopress_news_standout {
175
- border-bottom: none;
176
font-weight: normal;
177
}
178
#seopress_cpt .advise,
179
#seopress_pro_cpt .advise,
180
#seopress_content_analysis .advise {
@@ -183,6 +238,9 @@
183
color: red;
184
font-style: italic;
185
}
186
#seopress_cpt .mandatory,
187
#seopress_content_analysis .mandatory {
188
color: #cc0000;
@@ -228,8 +286,9 @@
228
#seopress_pro_cpt .wrap-seopress-counters {
229
text-align: right;
230
background: rgb(238, 238, 238) none repeat scroll 0% 0%;
231
- padding: 5px;
232
box-shadow: 0 1px 1px rgba(0,0,0,.2);
233
}
234
#seopress_cpt #seopress_titles_title_counters, #seopress_cpt #seopress_titles_desc_counters, #seopress_pro_cpt #seopress_rich_snippets_articles_counters, #seopress_pro_cpt #seopress_rich_snippets_courses_counters {
235
display: inline;
@@ -260,11 +319,13 @@
260
border: none;
261
font-family: inherit;
262
font-size: inherit;
263
}
264
#seopress_cpt .ui-tabs .ui-tabs-nav li,
265
#seopress_content_analysis .ui-tabs .ui-tabs-nav li {
266
list-style: none;
267
- float: left;
268
position: relative;
269
top: 0;
270
margin: -1px .2em 0 0;
@@ -276,13 +337,13 @@
276
}
277
#seopress_cpt .ui-tabs .ui-tabs-nav li a,
278
#seopress_content_analysis .ui-tabs .ui-tabs-nav li a {
279
- float: left;
280
padding: 0.38em 1em;
281
text-decoration: none;
282
}
283
#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-tabs-active,
284
#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-tabs-active {
285
- margin-bottom: -1px;
286
padding-bottom: 1px;
287
}
288
#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-tabs-active a,
@@ -307,7 +368,10 @@
307
#seopress_cpt .ui-tabs-vertical .ui-tabs-nav li a { display:block; }
308
#seopress_cpt .ui-tabs-vertical .ui-tabs-nav li.ui-tabs-active { padding-bottom: 0; padding-right: .1em; border-right-width: 1px; border-right-width: 1px; }
309
#seopress_cpt .ui-tabs-vertical .ui-tabs-panel { padding: 1em; float: right; width: 40em;}
310
-
311
#tab-panel-seopress_titles_help_tab li span {
312
font-weight: bold;
313
margin-right: 10px;
23
/*************************************************************************************************/
24
/* Metaboxe in CPT */
25
/*************************************************************************************************/
26
+ #seopress_content_analysis .wrap-seopress-analysis {
27
display: inline-block;
28
width: 100%;
29
+ }
30
+ #seopress_content_analysis .col-left {
31
+ width: calc(50% - 30px);
32
+ float: left;
33
+ margin-right: 30px;
34
+ }
35
+ #seopress_content_analysis .col-right {
36
+ float: right;
37
+ width: 50%;
38
+ }
39
+ #seopress_content_analysis #seopress_suggestions {
40
+ display: inline-block;
41
+ width: 100%;
42
+ margin: 0;
43
height: auto;
44
+ padding: 20px 0;
45
}
46
+ #seopress_content_analysis #seopress_suggestions li {
47
list-style: square;
48
margin: 5px;
49
display: inline-block;
63
width: auto;
64
display: inline-block;
65
margin: 0 0 0 20px;
66
+ clear: both;
67
}
68
#seopress_content_analysis h3 {
69
border-bottom: 1px solid #ddd;
93
#seopress_cpt .ui-tabs .ui-tabs-nav,
94
#seopress_content_analysis .ui-tabs .ui-tabs-nav {
95
display: inline-block;
96
+ min-height: 26px;
97
position: relative;
98
width: 100%;
99
z-index: 50;
153
#seopress_cpt #tabs-3 label,
154
#seopress_cpt #tabs-4 label,
155
#seopress_cpt #tabs-5 label,
156
+ #seopress_cpt #tabs-6 label,
157
#seopress_cpt .subsection-title,
158
#seopress_pro_cpt label,
159
#seopress_content_analysis label {
160
display: block;
161
margin: 20px 0 5px;
162
font-weight: bold;
170
#seopress_cpt #tabs-3 input[type=text],
171
#seopress_cpt #tabs-4 input[type=text],
172
#seopress_cpt #tabs-5 input[type=text],
173
+ #seopress_cpt #tabs-6 input[type=text],
174
+ #seopress_cpt #tabs-6 textarea,
175
#seopress_content_analysis input[type=text] {
176
width:100%;
177
}
178
+ #seopress_cpt #tabs-6 input[type=number] {
179
+ width: 30%;
180
+ min-width: 200px;
181
+ }
182
+ #seopress_cpt #tabs-6 #wrap-videos .video:first-child .remove-video {
183
+ display: none;
184
+ }
185
#seopress_cpt select {
186
width:300px;
187
}
193
width: calc(100% - 68px);
194
float: right;
195
}
196
+ #seopress_cpt #tabs-6 {
197
+ padding: 0;
198
+ }
199
+ #seopress_cpt #tabs-6 > p,
200
+ #seopress_cpt #tabs-6 #wrap-videos .video .accordion-section-content {
201
+ padding: 0em 1.4em;
202
+ }
203
+ #seopress_cpt #tabs-6 #wrap-videos .video .accordion-section-content {
204
+ padding: 0em 1.4em 1em;
205
+ }
206
+ #seopress_cpt #tabs-6 #wrap-videos .video {
207
+ border-top: 1px solid #eee;
208
+ }
209
+ #seopress_cpt #tabs-6 #wrap-videos .video .accordion-section-title {
210
+ border-left:none;
211
+ border-right:none;
212
+ font-size:1em;
213
+ padding: 1em 1.4em;
214
+ }
215
+ #seopress_cpt #tabs-6 #wrap-videos .video:last-child .accordion-section-title,
216
+ #seopress_cpt #tabs-6 #wrap-videos .video:last-child .accordion-section-content {
217
+ border-bottom: 1px solid #eee;
218
+ }
219
+ #seopress_cpt #tabs-6 #wrap-videos .video .inside {
220
+ padding: 0;
221
+ }
222
#seopress_cpt #tabs-4 #seopress_redirections_enabled,
223
#seopress_cpt #tabs-5 #seopress_news_disabled,
224
+ #seopress_cpt #tabs-5 #seopress_news_standout,
225
+ #seopress_cpt #tabs-6 #seopress_video_disabled,
226
+ #seopress_cpt #tabs-6 .internal_video label,
227
+ #seopress_cpt #tabs-6 .family-friendly label {
228
font-weight: normal;
229
}
230
+ #seopress_cpt #tabs-6 #wrap-videos .video:nth-child(odd) {
231
+ background: #fdfdfd;
232
+ }
233
#seopress_cpt .advise,
234
#seopress_pro_cpt .advise,
235
#seopress_content_analysis .advise {
238
color: red;
239
font-style: italic;
240
}
241
+ #seopress_cpt #tabs-6 #wrap-videos .video .advise {
242
+ color:#555;
243
+ }
244
#seopress_cpt .mandatory,
245
#seopress_content_analysis .mandatory {
246
color: #cc0000;
286
#seopress_pro_cpt .wrap-seopress-counters {
287
text-align: right;
288
background: rgb(238, 238, 238) none repeat scroll 0% 0%;
289
+ padding: 2px 5px;
290
box-shadow: 0 1px 1px rgba(0,0,0,.2);
291
+ font-size: 12px;
292
}
293
#seopress_cpt #seopress_titles_title_counters, #seopress_cpt #seopress_titles_desc_counters, #seopress_pro_cpt #seopress_rich_snippets_articles_counters, #seopress_pro_cpt #seopress_rich_snippets_courses_counters {
294
display: inline;
319
border: none;
320
font-family: inherit;
321
font-size: inherit;
322
+ display: inline-block;
323
+ width: 100%;
324
}
325
#seopress_cpt .ui-tabs .ui-tabs-nav li,
326
#seopress_content_analysis .ui-tabs .ui-tabs-nav li {
327
list-style: none;
328
+ display: inline-block;
329
position: relative;
330
top: 0;
331
margin: -1px .2em 0 0;
337
}
338
#seopress_cpt .ui-tabs .ui-tabs-nav li a,
339
#seopress_content_analysis .ui-tabs .ui-tabs-nav li a {
340
+ display: inline-block;
341
padding: 0.38em 1em;
342
text-decoration: none;
343
}
344
#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-tabs-active,
345
#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-tabs-active {
346
+ margin-bottom: -2px;
347
padding-bottom: 1px;
348
}
349
#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-tabs-active a,
368
#seopress_cpt .ui-tabs-vertical .ui-tabs-nav li a { display:block; }
369
#seopress_cpt .ui-tabs-vertical .ui-tabs-nav li.ui-tabs-active { padding-bottom: 0; padding-right: .1em; border-right-width: 1px; border-right-width: 1px; }
370
#seopress_cpt .ui-tabs-vertical .ui-tabs-panel { padding: 1em; float: right; width: 40em;}
371
+ #seopress_cpt .ui-tabs .ui-tabs-nav li a .dashicons,
372
+ #seopress_content_analysis .ui-tabs .ui-tabs-nav li a .dashicons {
373
+ margin-right: 2px;
374
+ }
375
#tab-panel-seopress_titles_help_tab li span {
376
font-weight: bold;
377
margin-right: 10px;
assets/css/seopress.min.css CHANGED
@@ -1 +1 @@
1
- #adminmenu div.wp-menu-image.dashicons-admin-seopress::before,#seopress-header #seopress-admin h1::before{content:"\e042";font-family:seopress}#seopress-header #seopress-admin h1::before,.seopress-page-list .seopress-feature h3,.seopress-styles .seopress-option h1{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}@font-face{font-family:seopress;src:url(../fonts/seopress.eot?8v0bs0);src:url(../fonts/seopress.eot?8v0bs0#iefix) format('embedded-opentype'),url(../fonts/seopress.ttf?8v0bs0) format('truetype'),url(../fonts/seopress.woff?8v0bs0) format('woff'),url(../fonts/seopress.svg?8v0bs0#seopress) format('svg');font-weight:400;font-style:normal}[class*=" icon-seopress"],[class^=icon-seopress-]{font-family:seopress!important}.icon-seopress-seopress:before{content:"\e042"}#seopress_content_analysis .ui-tabs #seopress_suggestions.ui-tabs-nav{display:inline-block;width:100%;height:auto;margin:20px 0}#seopress_content_analysis .ui-tabs #seopress_suggestions.ui-tabs-nav li{list-style:square;margin:5px;display:inline-block;background:#F1F1F1;padding:5px}#seopress_launch_analysis{float:left}#seopress_analysis_results_state{background:rgba(74,184,102,.75);color:#fff;padding:5px 25px 5px 20px;border-radius:100px;font-style:italic;position:relative;width:auto;display:inline-block;margin:0 0 0 20px}#seopress_content_analysis h3{border-bottom:1px solid #ddd;padding-bottom:10px}#seopress_content_analysis .wrap-analysis-img ul{display:flex}#seopress_content_analysis .wrap-analysis-img ul li{padding:0;text-align:left;cursor:default}#seopress_content_analysis .wrap-analysis-img h4{border-bottom:1px solid #ddd;padding-bottom:10px}#seopress_content_analysis .wrap-analysis-img ul li img{max-width:150px;max-height:150px;object-fit:cover;cursor:default}#seopress_cpt .notice{padding:10px 14px}#seopress_content_analysis .ui-tabs .ui-tabs-nav,#seopress_cpt .ui-tabs .ui-tabs-nav{display:inline-block;height:26px;position:relative;width:100%;z-index:50;margin:0;padding:0;background:0 0;border:none}#seopress_content_analysis .ui-tabs .ui-tabs-nav{margin-top:15px}#seopress_content_analysis .ui-helper-clearfix:after,#seopress_cpt .ui-helper-clearfix:after{content:none}.seopress_page_seopress-titles #seopress-tabs .form-table td,.seopress_page_seopress-titles #seopress_content_analysis .form-table td{padding:0}#seopress_content_analysis .ui-tabs .ui-tabs-panel,#seopress_cpt .ui-tabs .ui-tabs-panel{background:#FFF;border:1px solid #DDD;border-radius:0;display:inline-block;padding:1em 1.4em;width:100%;box-sizing:border-box}#seopress_content_analysis .ui-tabs .ui-tabs-panel .dashicons-info,#seopress_cpt .ui-tabs .ui-tabs-panel .dashicons-info,#seopress_pro_cpt .dashicons-info{font-size:16px;vertical-align:middle;height:16px;width:16px},#seopress_content_analysis .ui-tabs .ui-tabs-nav li,#seopress_content_analysis .ui-tabs-anchor,#seopress_cpt .ui-tabs .ui-tabs-nav li,#seopress_cpt .ui-tabs-anchor{cursor:pointer!important}#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-tabs-active,#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-tabs-active{background:#FFF;border-color:#DDD #DDD #FFF;border-image:none;border-style:solid;border-width:1px;position:relative;z-index:60;cursor:pointer;border-radius:0}#seopress_content_analysis label,#seopress_cpt #tabs-1 label,#seopress_cpt #tabs-2 label[for=seopress_robots_breadcrumbs_meta],#seopress_cpt #tabs-2 label[for=seopress_robots_canonical_meta],#seopress_cpt #tabs-3 label,#seopress_cpt #tabs-4 label,#seopress_cpt #tabs-5 label,#seopress_cpt .subsection-title,#seopress_pro_cpt label{border-bottom:1px solid #DDD;display:block;margin:20px 0 5px;font-weight:700}#seopress_cpt .wp-color-result{margin:0}#seopress_content_analysis input[type=text],#seopress_cpt #tabs-1 input,#seopress_cpt #tabs-2 input[type=text],#seopress_cpt #tabs-3 input[type=text],#seopress_cpt #tabs-3 textarea,#seopress_cpt #tabs-4 input[type=text],#seopress_cpt #tabs-5 input[type=text]{width:100%}#seopress_cpt select{width:300px}#seopress_cpt #tabs-4 select{width:60px;display:inline}#seopress_cpt #tabs-4 #seopress_redirections_value_meta{width:calc(100% - 68px);float:right}#seopress_cpt #tabs-4 #seopress_redirections_enabled,#seopress_cpt #tabs-5 #seopress_news_disabled,#seopress_cpt #tabs-5 #seopress_news_standout{border-bottom:none;font-weight:400}#seopress_content_analysis .advise,#seopress_cpt .advise,#seopress_pro_cpt .advise{margin:5px;display:block;color:red;font-style:italic}#seopress_content_analysis .mandatory,#seopress_cpt .mandatory{color:#c00}#seopress_cpt .box-left{float:left;width:49%;margin-right:1%}#seopress_cpt .box-right{float:left;width:49%;margin-left:1%}#seopress_cpt .google-snippet-preview{font-family:arial,sans-serif}#seopress_cpt .google-snippet-preview .snippet-title,#seopress_cpt .google-snippet-preview .snippet-title-custom,#seopress_cpt .google-snippet-preview .snippet-title-default{color:#1a0dab;font-size:18px;font-weight:400;line-height:21.6px}#seopress_cpt .google-snippet-preview .snippet-permalink{color:#006621;font-size:14px;font-style:normal;font-weight:400;line-height:16px}#seopress_cpt .google-snippet-preview .snippet-description,#seopress_cpt .google-snippet-preview .snippet-description-custom,#seopress_cpt .google-snippet-preview .snippet-description-default{color:#545454;font-size:13px;font-weight:400;line-height:18.2px;display:inline}#seopress_cpt .google-snippet-preview .snippet-date{color:grey;display:inline}#seopress_cpt .wrap-seopress-counters,#seopress_pro_cpt .wrap-seopress-counters{text-align:right;background:#eee;padding:5px;box-shadow:0 1px 1px rgba(0,0,0,.2)}#seopress_cpt #seopress_titles_desc_counters,#seopress_cpt #seopress_titles_title_counters,#seopress_pro_cpt #seopress_rich_snippets_articles_counters,#seopress_pro_cpt #seopress_rich_snippets_courses_counters{display:inline;margin-right:5px}#seopress_cpt #seopress_titles_desc_counters_val,#seopress_cpt #seopress_titles_title_counters_val,#seopress_pro_cpt #seopress_rich_snippets_articles_counters_val,#seopress_pro_cpt #seopress_rich_snippets_courses_counters_val{display:inline;font-weight:700}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-nav li a,#seopress_cpt .ui-tabs-vertical .ui-tabs-nav li a{display:block}#term-seopress #seopress_cpt{width:95%}.fixed .column-seopress_w3c,.fixed .column-seopress_words{width:5%}.fixed .column-seopress_nofollow,.fixed .column-seopress_noindex{width:10%}#seopress_content_analysis .ui-tabs,#seopress_cpt .ui-tabs{position:relative;padding:.2em;border:none;font-family:inherit;font-size:inherit}#seopress_content_analysis .ui-tabs .ui-tabs-nav li,#seopress_cpt .ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:-1px .2em 0 0;padding:0;white-space:nowrap;border:none;background:0 0}#seopress_content_analysis .ui-tabs .ui-tabs-nav li a,#seopress_cpt .ui-tabs .ui-tabs-nav li a{float:left;padding:.38em 1em}#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-tabs-active,#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px;padding-bottom:1px}#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-state-disabled a,#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-tabs-active a,#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-tabs-loading a,#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-state-disabled a,#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-tabs-active a,#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-tabs-loading a{cursor:text}#seopress_content_analysis .ui-tabs .ui-tabs-nav li a,#seopress_content_analysis .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a,#seopress_cpt .ui-tabs .ui-tabs-nav li a,#seopress_cpt .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a{cursor:pointer;color:#0073aa;text-decoration:none}#seopress_cpt .ui-tabs-vertical{width:55em}#seopress_cpt .ui-tabs-vertical .ui-tabs-nav{padding:.2em .1em .2em .2em;float:left;width:12em}#seopress_cpt .ui-tabs-vertical .ui-tabs-nav li{clear:left;width:100%;border-bottom-width:1px!important;border-right-width:0!important;margin:0 -1px .2em 0}#seopress_cpt .ui-tabs-vertical .ui-tabs-nav li.ui-tabs-active{padding-bottom:0;padding-right:.1em;border-right-width:1px}#seopress_cpt .ui-tabs-vertical .ui-tabs-panel{padding:1em;float:right;width:40em}#tab-panel-seopress_titles_help_tab li span{font-weight:700;margin-right:10px}#seopress_content_analysis .ui-tabs .dashicons-no-alt,#seopress_content_analysis .ui-tabs .dashicons-yes,#seopress_pro_cpt .dashicons-no-alt,#seopress_pro_cpt .dashicons-yes{color:#fff;background:#12BD10;border-radius:50px;margin-right:10px;padding:1px}#seopress_content_analysis .ui-tabs .dashicons-no-alt,#seopress_pro_cpt .dashicons-no-alt{background:#e25950}body.seopress-styles{background:#f8fafd}#seopress-content a{color:#3297d3}#seopress-content a:hover{color:#106598}#seopress-admin-tabs.ui-tabs{position:relative;padding:.2em;border:none;font-family:inherit;font-size:inherit}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:-1px .2em 0 0;padding:0;white-space:nowrap;border:none;background:0 0}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li a{float:left;padding:.38em 1em .75rem;outline:0;border-bottom:2px solid #fff}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-state-disabled a,#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-tabs-active a,#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-tabs-loading a{cursor:text;border-bottom:2px solid #23282D;color:#23282D}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li a,#seopress-admin-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a{cursor:pointer;color:#0073aa;text-decoration:none}#seopress-admin-tabs.ui-tabs-vertical{width:55em}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-nav{padding:.2em .1em .2em .2em;float:left;width:12em}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-nav li{clear:left;width:100%;border-bottom-width:1px!important;border-right-width:0!important;margin:0 -1px .2em 0}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-nav li.ui-tabs-active{padding-bottom:0;padding-right:.1em;border-right-width:1px}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-panel{padding:1em;float:right;width:40em}.seopress-styles .seopress-option{margin:10px auto 0;max-width:90%;padding:1rem;background:#fff;box-shadow:0 15px 35px rgba(50,50,93,.1),0 5px 15px rgba(0,0,0,.1);border-radius:4px}.seopress-styles .seopress-option h1{font-size:16px;font-weight:700;color:#3297d3;text-transform:uppercase;position:sticky;top:32px;background:#fff;z-index:100;padding:10px 0}.seopress-styles .seopress-option h1 .dashicons,.seopress-styles .seopress-option h2 .dashicons{margin:0 10px;font-size:40px;width:40px;height:40px;vertical-align:middle}.seopress-styles .seopress-option h1>.dashicons{font-size:30px;width:30px;height:30px;background:#c4f0ff;border-radius:50%;padding:10px;box-shadow:0 4px 6px rgba(50,50,93,.1),0 1px 3px rgba(0,0,0,.1);margin-left:20px}.seopress-styles .seopress-option .metabox-holder h2 .dashicons{font-size:16px}.seopress-option h1 .feature-state .dashicons{font-size:16px;width:16px;height:16px;vertical-align:middle;margin:0 10px 0 0}.seopress-styles .wrap{margin:0;position:relative}.seopress-styles .seopress-option .submit{background:#fff;text-align:center;border-top:1px solid #F1F1F1;padding-top:20px;padding-bottom:20px;margin:0}.seopress-styles .seopress-option #seopress-yoast-migrate,.seopress-styles .seopress-option #submit{color:#fff;text-decoration:none;border:none;border-radius:4px;padding-right:20px;padding-left:20px;line-height:34px;text-transform:uppercase;min-height:34px;transition:all .3s linear;text-shadow:none;box-shadow:0 7px 14px rgba(50,50,93,.1),0 3px 6px rgba(0,0,0,.1);margin-right:15px;background:RGB(106,124,148);position:relative;height:auto}.seopress-styles .seopress-option #seopress-yoast-migrate:hover,.seopress-styles .seopress-option #submit:hover{text-decoration:none;color:#FFF;background:#232323}.seopress-styles #wpcontent{padding-left:0;background:#F8FAFD}.seopress-styles #seopress-navbar{padding:10px 1.5rem;height:56px;margin:0 auto;width:53rem;box-sizing:border-box;position:relative}#seopress-header{margin:0 auto;position:relative;width:100%}#seopress-header #seopress-admin h1{line-height:50px;margin:0;display:inline-block;height:50px;width:36px;background-size:100%;background-repeat:no-repeat}#seopress-header #seopress-admin h1::before{font-size:40px;line-height:45px;position:absolute;font-weight:400}#seopress-header #seopress-admin h1:hover{cursor:pointer}#seopress-header #seopress-admin h1>a{text-decoration:none;color:inherit}#seopress-header #seopress-admin .seopress-quick-access{background:#fff;box-shadow:0 50px 100px rgba(50,50,93,.1),0 15px 35px rgba(50,50,93,.2),0 5px 15px rgba(0,0,0,.1);border-radius:4px;overflow:hidden;position:relative;font-size:17px;line-height:40px;white-space:nowrap;transform:rotate3d(1,1,0,-15deg);transform-origin:100% 0;opacity:0;will-change:transform,opacity;transition-property:transform,opacity;transition-duration:.25s;z-index:300;padding:0;display:block;width:53rem;top:0;visibility:hidden;cursor:auto}#seopress-header #seopress-admin h1:hover .seopress-quick-access{transform:none;opacity:1;pointer-events:auto;visibility:visible}#seopress-header #seopress-admin .seopress-quick-access>ul{padding:20px;margin:0;float:left;width:100%;box-sizing:border-box}#seopress-header #seopress-admin h1 .seopress-quick-access li{text-decoration:none;display:inline-block;width:50%;margin:0;float:left;padding:10px 0}#seopress-header #seopress-admin h1 .seopress-quick-access li .dashicons{vertical-align:middle;background:#B7E1F3;border-radius:50%;padding:5px;margin-right:15px}#seopress-header #seopress-admin h1 .seopress-quick-access li a{text-decoration:none;font-size:15px;line-height:30px;text-transform:uppercase;display:block;width:100%;transition:all .3s linear;color:#3297d3}#seopress-header #seopress-admin h1 .seopress-quick-access li a:hover{color:#647a88}#seopress-header #seopress-admin h1 .seopress-info-version{position:relative;left:50px;top:0;font-size:14px;width:100px;display:block}#seopress-header #seopress-admin .wpc-info-version{font-size:14px;left:310px;position:absolute;text-indent:0;top:85px}#seopress-header #seopress-notice{float:right;line-height:40px}#seopress-header #seopress-notice p{font-size:16px}#seopress-header #seopress-notice .dashicons{color:#444;text-decoration:none;line-height:40px}#seopress-header #seopress-notice div.small{font-size:13px;display:inline}#seopress-footer-credits{font-style:italic}#seopress-footer-credits .wporg-ratings{display:inline}#seopress-footer-credits .wporg-ratings a{text-decoration:none}.seopress-option .seopress-settings{float:left;max-width:750px;width:100%}.seopress-option #seopress-edd-license-btn,.seopress-option #seopress-refresh{float:left}.wp-admin-ui_page_seopress-import-export .postbox{margin-right:20px}.seopress-option #side-sortables .accordion-section-content{padding:0}.seopress-option .seopress-settings label{margin:0 0 0 10px}.wrap-seopress-tab-content{position:relative;display:block;width:100%;height:100%;max-width:53rem;margin:20px auto 0}#seopress-admin-tabs .seopress-tab{padding:1.5rem;visibility:hidden;overflow:hidden;opacity:0;transition:all .2s ease;transform:translateX(-15px);position:absolute;top:0}#seopress-admin-tabs .seopress-tab.active{visibility:visible;overflow:inherit;opacity:1;transform:translateX(0);display:inherit;position:relative}#seopress-tabs .seopress-tab{padding:1.5rem;display:none}#seopress-tabs .seopress-tab.active{display:block}.seopress-option input[type=text],.seopress-option input[type=password],.seopress-option textarea{min-width:485px}#seopress_htaccess_file{width:100%}.seopress-option textarea{min-height:100px}.seopress-option #side-sortables .highlight{border:1px dashed #ccc;display:block;width:382px;height:40px;background:0 0}.seopress-option #side-sortables .accordion-section{margin-bottom:9px;width:382px}.seopress-option #side-sortables .accordion-section h3{cursor:move;border:1px solid #E5E5E5;background:#FAFAFA}.seopress-option #side-sortables .accordion-section .inside{padding:10px 10px 24px;border-width:0 1px 1px;border-style:solid;box-shadow:0 1px 1px rgba(0,0,0,.04);border-color:#e5e5e5;display:inline-block;width:calc(100% - 22px);height:100%}.seopress-option #side-sortables .accordion-section .inside ul{padding-left:10px;margin-bottom:0;padding-top:2px;padding-bottom:2px}.seopress-option #side-sortables .accordion-section .inside ul li{border-left:2px solid #ccc;padding-left:10px;margin-bottom:10px}.seopress-option #side-sortables .accordion-section .inside ul li:first-child{border-bottom:1px dotted #E5E5E5;border-left:0;padding-bottom:10px;font-weight:700;margin-left:-15px;margin-bottom:10px}.seopress-notice #message{margin:5px 10px 2px 0}#seopress-notice a{position:relative;text-decoration:none}#seopress-notice a .tooltip{white-space:pre;z-index:200;padding:2px 5px;font-weight:500;font-size:12px;color:#aab7c4;background:#fff;box-shadow:0 1px 2px 0 rgba(49,49,93,.1),0 0 1px 0 rgba(0,0,0,.1);border-radius:2px;position:absolute;opacity:0;top:30px;transition:opacity .2s ease;visibility:hidden;line-height:20px;left:-100%;overflow:hidden}#seopress-notice a:hover .tooltip{opacity:1;visibility:visible}.seopress-page-list{margin:0}.seopress-option .dashicons,.seopress-page-list .dashicons{vertical-align:middle;margin-right:5px}#seopress-admin-tabs .ui-tabs-nav,#seopress-notifications-center,.seopress-page-list .seopress-feature,.seopress-useful-tools{background:linear-gradient(172deg,#f5f7fa,#f5f7fa 200px,#fff 0,#fff);margin:0 auto 20px;box-shadow:0 15px 35px rgba(50,50,93,.1),0 5px 15px rgba(0,0,0,.2);max-width:50rem;padding:1.5rem;width:100%;border-radius:4px}#seopress-notifications-center,.seopress-useful-tools{background:linear-gradient(172deg,#f5f7fa,#f5f7fa 400px,#fff 0,#fff)}.seopress-page-list .seopress-feature{padding:0 1.5rem;position:relative;overflow:hidden;transition-duration:.15s}.seopress-page-list .seopress-feature p{color:#6b7c93;font-size:14px;margin-bottom:30px}#seopress-notifications-center{margin-top:0}#seopress-admin-tabs .ui-tabs-nav{display:flex;padding-top:1rem;padding-bottom:0}.seopress-page-list .seopress-feature .img-tool{height:100px;width:100px;background:#c4f0ff;position:absolute;border-radius:50%;box-shadow:0 4px 6px rgba(50,50,93,.1),0 1px 3px rgba(0,0,0,.1);top:calc(50% - 50px);left:20px}.seopress-page-list .seopress-feature .img-tool .dashicons{color:#217AB7;font-size:60px;text-align:left;vertical-align:middle;width:100%;height:100%;position:absolute;top:calc(50% - 30px);left:calc(50% - 30px);margin:0}.seopress-page-list .seopress-feature .inner{margin:0;display:block;padding:2rem 0 2rem 120px}.seopress-page-list .seopress-feature h3{margin:0;font-size:16px;font-weight:700;color:#3297d3;text-transform:uppercase}.seopress-page-list .seopress-feature h3 .dashicons{font-size:16px;margin-left:5px;vertical-align:middle}#seopress-content .seopress-page-list .seopress-feature a,#seopress-notifications-center .seopress-alert .button-primary,.seopress-option .seopress-feature a,.seopress-useful-tools .widget .button-primary{color:#fff;text-decoration:none;border:none;border-radius:4px;padding-right:20px;padding-left:20px;line-height:34px;text-transform:uppercase;min-height:34px;transition:all .3s linear;text-shadow:none;box-shadow:0 7px 14px rgba(50,50,93,.1),0 3px 6px rgba(0,0,0,.1);margin-right:15px;background:#6A7C94;position:relative;height:auto}#seopress-content .seopress-page-list .seopress-feature a.button-secondary{padding-left:30px}#seopress-content .seopress-page-list .seopress-feature a.button-secondary::before,#seopress-notifications-center .seopress-alert .button-primary::after{content:"\f111";font-family:Dashicons;position:absolute;left:10px;top:1px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-size:16px}#seopress-content .seopress-page-list .seopress-feature a.view-redirects,#seopress-notifications-center .seopress-alert .button-primary,.seopress-option .button{background:#fff;border:none;color:#6b7c93;font-weight:500;transition:all .3s linear;text-shadow:none;text-transform:uppercase;padding-right:20px;padding-left:20px;line-height:34px;min-height:34px;margin-bottom:10px;border-radius:4px;box-shadow:0 7px 14px rgba(50,50,93,.1),0 3px 6px rgba(0,0,0,.1);vertical-align:baseline}.seopress-option .button .dashicons{font-size:16px}#seopress-content .seopress-page-list .seopress-feature a.view-redirects{padding-left:35px}#seopress-notifications-center .seopress-alert .button-primary::after{content:"\f344";left:inherit;right:10px}#seopress-content .seopress-page-list .seopress-feature a.view-redirects::before{content:"\f177"}#seopress-content .seopress-page-list .seopress-feature a:hover,#seopress-notifications-center .seopress-alert .button-primary:hover,.seopress-option .button:hover,.seopress-option .seopress-feature a:hover,.seopress-useful-tools .widget .button-primary:hover{text-decoration:none;color:#FFF;background:#232323}#seopress-content .seopress-page-list .seopress-feature .seopress-doc:focus,#seopress-content .seopress-page-list .seopress-feature a:focus,#seopress-content .seopress-page-list .seopress-feature a:focus.button-secondary,#seopress-content a:focus,#seopress-notifications-center .seopress-alert .button-primary:focus,.seopress-option #seopress-tabs .seopress-doc:focus,.seopress-option .seopress-feature a:focus,.seopress-styles .seopress-option #seopress-yoast-migrate:focus,.seopress-styles .seopress-option #submit:focus,.seopress-useful-tools .widget .button-primary:focus{box-shadow:0 1px 0 #0073aa,0 0 2px 1px #33b3db;background:#008ec2;border-color:#006799;color:#fff}#seopress-admin-tabs .nav-tab-wrapper a.nav-tab-active:focus{color:inherit}#seopress-notifications-center .seopress-alert .button-primary{float:right;margin:5px 0;padding-right:30px}#seopress-notifications-center h2,.seopress-useful-tools h2{margin:5px 0 15px 5px;display:inline-block;width:100%}#seopress-notifications-center .dashicons,.seopress-useful-tools .dashicons{margin-right:10px}#seopress-notifications-center .seopress-alert{padding:0;display:inline-block;margin:0 10px 10px 5px;border-bottom:1px solid #e6ebf1;width:calc(100% - 30px);position:relative;transition:all 150ms ease}#seopress-notifications-center .seopress-alert:hover{cursor:default}#seopress-notifications-center .seopress-alert p{display:inline-block}#seopress-notifications-center .seopress-alert .impact{padding:4px 5px;color:#fff;text-transform:uppercase;font-weight:700;font-size:10px;border-radius:4px}#seopress-notifications-center .seopress-alert .impact.low{background:#FFDE24;color:#6b6543}#seopress-notifications-center .seopress-alert .impact.medium{background:#e39f48}#seopress-notifications-center .seopress-alert .impact.high{background:#e25950}#seopress-notifications-center .seopress-alert .dashicons{color:#FFC82C}#seopress-notifications-center .dashicons.remove-notice{position:absolute;right:-55px;color:#6b7c93;font-size:30px;height:30px;width:30px;top:2px;padding:5px;transition:all .3s linear}#seopress-notifications-center .dashicons.remove-notice:hover{background:#e25950;color:#fff;cursor:pointer;border-radius:4px}#seopress-content .seopress-page-list .seopress-feature .seopress-doc,.seopress-option #seopress-tabs .seopress-doc{background:0 0;padding:0;width:inherit;height:inherit;text-decoration:none;color:inherit;box-shadow:none;position:absolute;right:0}#seopress-content .seopress-page-list .seopress-feature .seopress-doc:hover,.seopress-option #seopress-tabs .seopress-doc:hover{color:#747474;background:0 0}.seopress-option .seopress-table{background:#FFF;border:1px solid #ccc}.seopress-option .seopress-table th{padding:15px 10px;vertical-align:middle}.wp-admin-ui_page_seopress-roles .seopress-option .seopress-table th{min-width:200px}.seopress-option .seopress-table .seopress-settings-section{background:#f1f1f1}.seopress-option .seopress-table .seopress-table-head .seopress-feature{border-bottom:1px solid #ccc;font-weight:700;background:#f1f1f1}#seopress-content .feature-state,.seopress-option .feature-state{font-style:italic;font-size:12px;display:inline-block;background:rgba(0,140,135,.1);padding:5px 12px;border-radius:25px;color:#444;font-weight:400;text-transform:none;-moz-osx-font-smoothing:initial;-webkit-font-smoothing:initial}.seopress-button,.seopress-option .tag-title{cursor:pointer;font-weight:500;border-radius:4px;transition:all .3s linear}#seopress-content .feature-state-on,#seopress-content .feature-state.feature-state-on,.seopress-option .feature-state-on,.seopress-option .feature-state.feature-state-on{display:inline}#seopress-content .feature-state-off,.seopress-option .feature-state-off{display:none}.seopress-option .postbox .inside li{list-style:square inside;padding-left:5px}#tab_seopress_page_speed .inside li{list-style:none;padding-left:0;word-break:break-word}.seopress-option .log{margin:0;text-transform:uppercase;display:inline-block;vertical-align:middle;padding:5px;color:rgba(19,191,17,1);font-style:italic}.seopress-option input[type=text].seopress-admin-menu-input{min-width:inherit;width:100%}.seopress_page_seopress-import-export .postbox{width:calc(100% - 20px)}.seopress-option .wrap-tags{position:relative;display:inline-block;width:100%;margin-bottom:10px}.seopress-option .tag-title{padding:4px 8px;position:relative;top:5px;left:0;font-size:11px;float:left;margin-right:5px;user-select:none;margin-bottom:5px;background:#fff;color:#6b7c93;box-shadow:0 0 0 .5px rgba(50,50,93,.17),0 2px 5px 0 rgba(50,50,93,.12),0 3px 9px 0 rgba(50,50,93,.08),0 1px 1.5px 0 rgba(0,0,0,.08),0 1px 2px 0 rgba(0,0,0,.08)}.seopress-option .tag-title:active,.seopress-option .tag-title:focus,.seopress-option .tag-title:hover{background:#232323;color:#fff;user-select:none}.seopress-option .tag-title .dashicons{padding:0;height:16px;width:16px;font-size:16px;margin-right:5px;vertical-align:middle}.seopress-button{text-transform:uppercase;background:#fff;border-color:#c8d7e1;border-style:solid;border-width:1px 1px 2px;color:#2e4453;display:inline-block;margin:0;outline:0;overflow:hidden;text-overflow:ellipsis;text-decoration:none;vertical-align:top;box-sizing:border-box;font-size:14px;line-height:21px;padding:7px 14px 9px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.seopress-button:hover{border-color:#a8bece;color:#00a0d2}.seopress-button .dashicons{vertical-align:middle}#seopress-content #tab_seopress_seo_tools.seopress-useful-tools .widget{border-right:1px solid #e6ebf1;margin:0;padding:0 20px;width:calc(50% - 2px);box-sizing:border-box;display:inline-block;vertical-align:top}#seopress-content #tab_seopress_seo_tools.seopress-useful-tools .widget:first-child{width:100%;display:block;clear:both;border-right:none;border-bottom:1px solid #e6ebf1;padding-bottom:20px;margin-bottom:20px}#seopress-content #tab_seopress_seo_tools.seopress-useful-tools .widget:last-child{border-right:none}#seopress-content .seopress-useful-tools .widget-reverse ul{background:#fff}#seopress-content .seopress-useful-tools .widget-reverse li{padding:10px;margin:0;border-bottom:1px solid #e6ebf1}#seopress-content .seopress-useful-tools .widget-reverse li:hover{background:#F5F7FA}#seopress-content .seopress-useful-tools .widget-title{text-transform:uppercase;margin:0 0 10px;font-size:13px;padding:10px 0;color:#24b47e}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank{margin:0 0 10px;width:100%;box-sizing:border-box;display:block}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_reach{font-size:30px;font-weight:700;display:inline-block;width:100%;padding:0 0 20px;text-align:right}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_reach .highlight{display:inline-block;font-size:16px;background:inherit;width:100%;margin-bottom:10px}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_delta{font-size:14px;display:inline-block;vertical-align:top;text-align:left;margin:0 20px 0 0}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_delta{width:100%;text-align:right;font-size:18px;font-style:italic}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank{text-align:left}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country .highlight,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank .highlight{background:0 0;font-weight:700}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country{margin-right:0}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank{margin-left:5px}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .minus .dashicons,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .plus .dashicons{font-style:italic}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .plus{color:green}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .minus{color:red}#seopress-content .seopress-reverse label,#seopress-content .seopress-useful-tools .widget-whois ul li span{font-weight:700}#seopress-content #seopress-reverse-url{width:100%;margin:10px 0}#seopress-content .widget-reverse p{margin:0}.post-type-seopress_backlinks .wp-list-table .column-seopress_backlinks_url{width:35%}.post-type-seopress_backlinks .wp-list-table .column-seopress_backlinks_anchor_text{width:20%}.seopress-styles #screen-meta{margin:0;position:relative;background-color:#fff;border-bottom:0 solid #f2f2f2;border-top:none;-webkit-box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08);box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08);top:0}.seopress-styles #contextual-help-link-wrap,.seopress-styles #screen-options-link-wrap{float:right;height:28px;margin:0 0 0 6px;border:1px solid #f2f2f2;border-top:none;background:#fff;-webkit-box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08);box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08)}.seopress-styles #screen-meta-links .show-settings{box-shadow:none}.seopress-styles #screen-meta-links .screen-meta-toggle{position:relative;top:0;z-index:2000}.seopress-styles #contextual-help-back{background:#f8fafd}.seopress-styles .contextual-help-tabs .active{border-left:2px solid #3297d3;background:#f8fafd}#seopress-content input.toggle,.seopress-option input.toggle{max-height:0;max-width:0;opacity:0}#seopress-content input.toggle+label,.seopress-option input.toggle+label{display:inline-block;position:relative;box-shadow:inset 0 0 0 1px #d5d5d5;text-indent:-5000px;height:30px;width:50px;border-radius:15px}.wrap-toggle-checkboxes input.toggle+label{float:left;margin-right:10px}#seopress-content input.toggle+label:before,.seopress-option input.toggle+label:before{content:"";position:absolute;display:block;height:30px;width:30px;top:0;left:0;border-radius:15px;background:rgba(19,191,17,0);-moz-transition:.25s ease-in-out;-webkit-transition:.25s ease-in-out;transition:.25s ease-in-out}#seopress-content input.toggle+label:after,.seopress-option input.toggle+label:after{content:"";position:absolute;display:block;height:30px;width:30px;top:0;left:0;border-radius:15px;background:#fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2),0 2px 4px rgba(0,0,0,.2);-moz-transition:.25s ease-in-out;-webkit-transition:.25s ease-in-out;transition:.25s ease-in-out}#seopress-content input.toggle[data-toggle="1"]+label:before,.seopress-option input.toggle[data-toggle="1"]+label:before{width:50px;background:rgba(19,191,17,1)}#seopress-content input.toggle[data-toggle="1"]+label:after,.seopress-option input.toggle[data-toggle="1"]+label:after{left:20px;box-shadow:inset 0 0 0 1px rgba(19,191,17,1),0 2px 4px rgba(0,0,0,.2)}#seopress-content .seopress-page-list{position:relative}#seopress-notice-save{position:fixed;color:#fff;padding:15px 40px;font-size:14px;text-align:center;border-radius:50px;background:rgba(74,184,102,.75);top:50px;right:20px;z-index:500}.seopress_page_seopress-pro-page #wpcontent{background:#F4F7FA}.seopress-option .wrap div.nav-tab-wrapper{border-bottom:1px solid RGB(238,238,238);margin:0;padding:10px;line-height:inherit;position:sticky;top:100px;background:#fff;z-index:95;font-style:23px;font-weight:400}#seopress-admin-tabs.wrap div.nav-tab-wrapper{margin:20px auto 0;max-width:53rem;width:100%;border-bottom:0;padding:0;line-height:inherit;position:sticky;background:#f8fafd;z-index:100;top:31px;font-style:23px;font-weight:400}#seopress-admin-tabs #tab_seopress_notifications.seopress-tab{background:0 0;padding:0}#seopress-admin-tabs .nav-tab,.seopress-option .nav-tab{border:0 solid #ccc;background:0 0;opacity:.5;padding:5px 8px;transition:opacity .3s linear;color:#647a88;font-weight:300;float:none;display:inline-block}#seopress-admin-tabs .nav-tab-active,#seopress-admin-tabs .nav-tab-active:hover,.seopress-option .about-wrap h2 .nav-tab-active,.seopress-option .nav-tab-active,.seopress-option .nav-tab-active:hover{background-color:#fff}#seopress-admin-tabs .nav-tab-active,#seopress-admin-tabs .nav-tab-active:focus,#seopress-admin-tabs .nav-tab-active:focus:active,#seopress-admin-tabs .nav-tab-active:hover,#seopress-admin-tabs .nav-tab:focus,.nav-tab-active:focus,.seopress-option .nav-tab-active,.seopress-option .nav-tab-active:focus:active,.seopress-option .nav-tab-active:hover,.seopress-option .nav-tab:focus{background:0 0;opacity:1;outline:0;font-weight:600}#seopress-admin-tabs .nav-tab:hover,.seopress-option .nav-tab:hover{opacity:1}#seopress-admin-tabs .nav-tab:focus,.seopress-option .nav-tab:focus{outline:0;box-shadow:none}
1
+ #adminmenu div.wp-menu-image.dashicons-admin-seopress::before,#seopress-header #seopress-admin h1::before{content:"\e042";font-family:seopress}#seopress-header #seopress-admin h1::before,.seopress-page-list .seopress-feature h3,.seopress-styles .seopress-option h1{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}@font-face{font-family:seopress;src:url(../fonts/seopress.eot?8v0bs0);src:url(../fonts/seopress.eot?8v0bs0#iefix) format('embedded-opentype'),url(../fonts/seopress.ttf?8v0bs0) format('truetype'),url(../fonts/seopress.woff?8v0bs0) format('woff'),url(../fonts/seopress.svg?8v0bs0#seopress) format('svg');font-weight:400;font-style:normal}[class*=" icon-seopress"],[class^=icon-seopress-]{font-family:seopress!important}.icon-seopress-seopress:before{content:"\e042"}#seopress_content_analysis .wrap-seopress-analysis{display:inline-block;width:100%}#seopress_content_analysis .col-left{width:calc(50% - 30px);float:left;margin-right:30px}#seopress_content_analysis .col-right{float:right;width:50%}#seopress_content_analysis #seopress_suggestions{display:inline-block;width:100%;margin:0;height:auto;padding:20px 0}#seopress_content_analysis #seopress_suggestions li{list-style:square;margin:5px;display:inline-block;background:#F1F1F1;padding:5px}#seopress_launch_analysis{float:left}#seopress_analysis_results_state{background:rgba(74,184,102,.75);color:#fff;padding:5px 25px 5px 20px;border-radius:100px;font-style:italic;position:relative;width:auto;display:inline-block;margin:0 0 0 20px;clear:both}#seopress_content_analysis h3{border-bottom:1px solid #ddd;padding-bottom:10px}#seopress_content_analysis .wrap-analysis-img ul{display:flex}#seopress_content_analysis .wrap-analysis-img ul li{padding:0;text-align:left;cursor:default}#seopress_content_analysis .wrap-analysis-img h4{border-bottom:1px solid #ddd;padding-bottom:10px}#seopress_content_analysis .wrap-analysis-img ul li img{max-width:150px;max-height:150px;object-fit:cover;cursor:default}#seopress_cpt .notice{padding:10px 14px}#seopress_content_analysis .ui-tabs .ui-tabs-nav,#seopress_cpt .ui-tabs .ui-tabs-nav{display:inline-block;min-height:26px;position:relative;width:100%;z-index:50;margin:0;padding:0;background:0 0;border:none}#seopress_content_analysis .ui-tabs .ui-tabs-nav{margin-top:15px}#seopress_content_analysis .ui-helper-clearfix:after,#seopress_cpt .ui-helper-clearfix:after{content:none}.seopress_page_seopress-titles #seopress-tabs .form-table td,.seopress_page_seopress-titles #seopress_content_analysis .form-table td{padding:0}#seopress_content_analysis .ui-tabs .ui-tabs-panel,#seopress_cpt .ui-tabs .ui-tabs-panel{background:#FFF;border:1px solid #DDD;border-radius:0;display:inline-block;padding:1em 1.4em;width:100%;box-sizing:border-box}#seopress_content_analysis .ui-tabs .ui-tabs-panel .dashicons-info,#seopress_cpt .ui-tabs .ui-tabs-panel .dashicons-info,#seopress_pro_cpt .dashicons-info{font-size:16px;vertical-align:middle;height:16px;width:16px},#seopress_content_analysis .ui-tabs .ui-tabs-nav li,#seopress_content_analysis .ui-tabs-anchor,#seopress_cpt .ui-tabs .ui-tabs-nav li,#seopress_cpt .ui-tabs-anchor{cursor:pointer!important}#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-tabs-active,#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-tabs-active{background:#FFF;border-color:#DDD #DDD #FFF;border-image:none;border-style:solid;border-width:1px;position:relative;z-index:60;cursor:pointer;border-radius:0}#seopress_content_analysis label,#seopress_cpt #tabs-1 label,#seopress_cpt #tabs-2 label[for=seopress_robots_breadcrumbs_meta],#seopress_cpt #tabs-2 label[for=seopress_robots_canonical_meta],#seopress_cpt #tabs-3 label,#seopress_cpt #tabs-4 label,#seopress_cpt #tabs-5 label,#seopress_cpt #tabs-6 label,#seopress_cpt .subsection-title,#seopress_pro_cpt label{display:block;margin:20px 0 5px;font-weight:700}#seopress_cpt .wp-color-result{margin:0}#seopress_content_analysis input[type=text],#seopress_cpt #tabs-1 input,#seopress_cpt #tabs-2 input[type=text],#seopress_cpt #tabs-3 input[type=text],#seopress_cpt #tabs-3 textarea,#seopress_cpt #tabs-4 input[type=text],#seopress_cpt #tabs-5 input[type=text],#seopress_cpt #tabs-6 input[type=text],#seopress_cpt #tabs-6 textarea{width:100%}#seopress_cpt #tabs-6 input[type=number]{width:30%;min-width:200px}#seopress_cpt #tabs-6 #wrap-videos .video:first-child .remove-video{display:none}#seopress_cpt select{width:300px}#seopress_cpt #tabs-4 select{width:60px;display:inline}#seopress_cpt #tabs-4 #seopress_redirections_value_meta{width:calc(100% - 68px);float:right}#seopress_cpt #tabs-6{padding:0}#seopress_cpt #tabs-6 #wrap-videos .video .accordion-section-content,#seopress_cpt #tabs-6>p{padding:0 1.4em}#seopress_cpt #tabs-6 #wrap-videos .video .accordion-section-content{padding:0 1.4em 1em}#seopress_cpt #tabs-6 #wrap-videos .video{border-top:1px solid #eee}#seopress_cpt #tabs-6 #wrap-videos .video .accordion-section-title{border-left:none;border-right:none;font-size:1em;padding:1em 1.4em}#seopress_cpt #tabs-6 #wrap-videos .video:last-child .accordion-section-content,#seopress_cpt #tabs-6 #wrap-videos .video:last-child .accordion-section-title{border-bottom:1px solid #eee}#seopress_cpt #tabs-6 #wrap-videos .video .inside{padding:0}#seopress_cpt #tabs-4 #seopress_redirections_enabled,#seopress_cpt #tabs-5 #seopress_news_disabled,#seopress_cpt #tabs-5 #seopress_news_standout,#seopress_cpt #tabs-6 #seopress_video_disabled,#seopress_cpt #tabs-6 .family-friendly label,#seopress_cpt #tabs-6 .internal_video label{font-weight:400}#seopress_cpt #tabs-6 #wrap-videos .video:nth-child(odd){background:#fdfdfd}#seopress_content_analysis .advise,#seopress_cpt .advise,#seopress_pro_cpt .advise{margin:5px;display:block;color:red;font-style:italic}#seopress_cpt #tabs-6 #wrap-videos .video .advise{color:#555}#seopress_content_analysis .mandatory,#seopress_cpt .mandatory{color:#c00}#seopress_cpt .box-left{float:left;width:49%;margin-right:1%}#seopress_cpt .box-right{float:left;width:49%;margin-left:1%}#seopress_cpt .google-snippet-preview{font-family:arial,sans-serif}#seopress_cpt .google-snippet-preview .snippet-title,#seopress_cpt .google-snippet-preview .snippet-title-custom,#seopress_cpt .google-snippet-preview .snippet-title-default{color:#1a0dab;font-size:18px;font-weight:400;line-height:21.6px}#seopress_cpt .google-snippet-preview .snippet-permalink{color:#006621;font-size:14px;font-style:normal;font-weight:400;line-height:16px}#seopress_cpt .google-snippet-preview .snippet-description,#seopress_cpt .google-snippet-preview .snippet-description-custom,#seopress_cpt .google-snippet-preview .snippet-description-default{color:#545454;font-size:13px;font-weight:400;line-height:18.2px;display:inline}#seopress_cpt .google-snippet-preview .snippet-date{color:grey;display:inline}#seopress_cpt .wrap-seopress-counters,#seopress_pro_cpt .wrap-seopress-counters{text-align:right;background:#eee;padding:2px 5px;box-shadow:0 1px 1px rgba(0,0,0,.2);font-size:12px}#seopress_cpt #seopress_titles_desc_counters,#seopress_cpt #seopress_titles_title_counters,#seopress_pro_cpt #seopress_rich_snippets_articles_counters,#seopress_pro_cpt #seopress_rich_snippets_courses_counters{display:inline;margin-right:5px}#seopress_cpt #seopress_titles_desc_counters_val,#seopress_cpt #seopress_titles_title_counters_val,#seopress_pro_cpt #seopress_rich_snippets_articles_counters_val,#seopress_pro_cpt #seopress_rich_snippets_courses_counters_val{display:inline;font-weight:700}#term-seopress #seopress_cpt{width:95%}.fixed .column-seopress_w3c,.fixed .column-seopress_words{width:5%}.fixed .column-seopress_nofollow,.fixed .column-seopress_noindex{width:10%}#seopress_content_analysis .ui-tabs,#seopress_cpt .ui-tabs{position:relative;padding:.2em;border:none;font-family:inherit;font-size:inherit;display:inline-block;width:100%}#seopress_content_analysis .ui-tabs .ui-tabs-nav li,#seopress_cpt .ui-tabs .ui-tabs-nav li{list-style:none;display:inline-block;position:relative;top:0;margin:-1px .2em 0 0;padding:0;white-space:nowrap;border:none;background:0 0}#seopress_content_analysis .ui-tabs .ui-tabs-nav li a,#seopress_cpt .ui-tabs .ui-tabs-nav li a{display:inline-block;padding:.38em 1em}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-nav li a,#seopress_cpt .ui-tabs-vertical .ui-tabs-nav li a{display:block}#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-tabs-active,#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-2px;padding-bottom:1px}#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-state-disabled a,#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-tabs-active a,#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-tabs-loading a,#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-state-disabled a,#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-tabs-active a,#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-tabs-loading a{cursor:text}#seopress_content_analysis .ui-tabs .ui-tabs-nav li a,#seopress_content_analysis .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a,#seopress_cpt .ui-tabs .ui-tabs-nav li a,#seopress_cpt .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a{cursor:pointer;color:#0073aa;text-decoration:none}#seopress_cpt .ui-tabs-vertical{width:55em}#seopress_cpt .ui-tabs-vertical .ui-tabs-nav{padding:.2em .1em .2em .2em;float:left;width:12em}#seopress_cpt .ui-tabs-vertical .ui-tabs-nav li{clear:left;width:100%;border-bottom-width:1px!important;border-right-width:0!important;margin:0 -1px .2em 0}#seopress_cpt .ui-tabs-vertical .ui-tabs-nav li.ui-tabs-active{padding-bottom:0;padding-right:.1em;border-right-width:1px}#seopress_cpt .ui-tabs-vertical .ui-tabs-panel{padding:1em;float:right;width:40em}#seopress_content_analysis .ui-tabs .ui-tabs-nav li a .dashicons,#seopress_cpt .ui-tabs .ui-tabs-nav li a .dashicons{margin-right:2px}#tab-panel-seopress_titles_help_tab li span{font-weight:700;margin-right:10px}#seopress_content_analysis .ui-tabs .dashicons-no-alt,#seopress_content_analysis .ui-tabs .dashicons-yes,#seopress_pro_cpt .dashicons-no-alt,#seopress_pro_cpt .dashicons-yes{color:#fff;background:#12BD10;border-radius:50px;margin-right:10px;padding:1px}#seopress_content_analysis .ui-tabs .dashicons-no-alt,#seopress_pro_cpt .dashicons-no-alt{background:#e25950}body.seopress-styles{background:#f8fafd}#seopress-content a{color:#3297d3}#seopress-content a:hover{color:#106598}#seopress-admin-tabs.ui-tabs{position:relative;padding:.2em;border:none;font-family:inherit;font-size:inherit}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:-1px .2em 0 0;padding:0;white-space:nowrap;border:none;background:0 0}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li a{float:left;padding:.38em 1em .75rem;outline:0;border-bottom:2px solid #fff}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-state-disabled a,#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-tabs-active a,#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-tabs-loading a{cursor:text;border-bottom:2px solid #23282D;color:#23282D}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li a,#seopress-admin-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a{cursor:pointer;color:#0073aa;text-decoration:none}#seopress-admin-tabs.ui-tabs-vertical{width:55em}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-nav{padding:.2em .1em .2em .2em;float:left;width:12em}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-nav li{clear:left;width:100%;border-bottom-width:1px!important;border-right-width:0!important;margin:0 -1px .2em 0}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-nav li.ui-tabs-active{padding-bottom:0;padding-right:.1em;border-right-width:1px}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-panel{padding:1em;float:right;width:40em}.seopress-styles .seopress-option{margin:10px auto 0;max-width:90%;padding:1rem;background:#fff;box-shadow:0 15px 35px rgba(50,50,93,.1),0 5px 15px rgba(0,0,0,.1);border-radius:4px}.seopress-styles .seopress-option h1{font-size:16px;font-weight:700;color:#3297d3;text-transform:uppercase;position:sticky;top:32px;background:#fff;z-index:100;padding:10px 0}.seopress-styles .seopress-option h1 .dashicons,.seopress-styles .seopress-option h2 .dashicons{margin:0 10px;font-size:40px;width:40px;height:40px;vertical-align:middle}.seopress-styles .seopress-option h1>.dashicons{font-size:30px;width:30px;height:30px;background:#c4f0ff;border-radius:50%;padding:10px;box-shadow:0 4px 6px rgba(50,50,93,.1),0 1px 3px rgba(0,0,0,.1);margin-left:20px}.seopress-styles .seopress-option .metabox-holder h2 .dashicons{font-size:16px}.seopress-option h1 .feature-state .dashicons{font-size:16px;width:16px;height:16px;vertical-align:middle;margin:0 10px 0 0}.seopress-styles .wrap{margin:0;position:relative}.seopress-styles .seopress-option .submit{background:#fff;text-align:center;border-top:1px solid #F1F1F1;padding-top:20px;padding-bottom:20px;margin:0}.seopress-styles .seopress-option #seopress-yoast-migrate,.seopress-styles .seopress-option #submit{color:#fff;text-decoration:none;border:none;border-radius:4px;padding-right:20px;padding-left:20px;line-height:34px;text-transform:uppercase;min-height:34px;transition:all .3s linear;text-shadow:none;box-shadow:0 7px 14px rgba(50,50,93,.1),0 3px 6px rgba(0,0,0,.1);margin-right:15px;background:RGB(106,124,148);position:relative;height:auto}.seopress-styles .seopress-option #seopress-yoast-migrate:hover,.seopress-styles .seopress-option #submit:hover{text-decoration:none;color:#FFF;background:#232323}.seopress-styles #wpcontent{padding-left:0;background:#F8FAFD}.seopress-styles #seopress-navbar{padding:10px 1.5rem;height:56px;margin:0 auto;width:53rem;box-sizing:border-box;position:relative}#seopress-header{margin:0 auto;position:relative;width:100%}#seopress-header #seopress-admin h1{line-height:50px;margin:0;display:inline-block;height:50px;width:36px;background-size:100%;background-repeat:no-repeat}#seopress-header #seopress-admin h1::before{font-size:40px;line-height:45px;position:absolute;font-weight:400}#seopress-header #seopress-admin h1:hover{cursor:pointer}#seopress-header #seopress-admin h1>a{text-decoration:none;color:inherit}#seopress-header #seopress-admin .seopress-quick-access{background:#fff;box-shadow:0 50px 100px rgba(50,50,93,.1),0 15px 35px rgba(50,50,93,.2),0 5px 15px rgba(0,0,0,.1);border-radius:4px;overflow:hidden;position:relative;font-size:17px;line-height:40px;white-space:nowrap;transform:rotate3d(1,1,0,-15deg);transform-origin:100% 0;opacity:0;will-change:transform,opacity;transition-property:transform,opacity;transition-duration:.25s;z-index:300;padding:0;display:block;width:53rem;top:0;visibility:hidden;cursor:auto}#seopress-header #seopress-admin h1:hover .seopress-quick-access{transform:none;opacity:1;pointer-events:auto;visibility:visible}#seopress-header #seopress-admin .seopress-quick-access>ul{padding:20px;margin:0;float:left;width:100%;box-sizing:border-box}#seopress-header #seopress-admin h1 .seopress-quick-access li{text-decoration:none;display:inline-block;width:50%;margin:0;float:left;padding:10px 0}#seopress-header #seopress-admin h1 .seopress-quick-access li .dashicons{vertical-align:middle;background:#B7E1F3;border-radius:50%;padding:5px;margin-right:15px}#seopress-header #seopress-admin h1 .seopress-quick-access li a{text-decoration:none;font-size:15px;line-height:30px;text-transform:uppercase;display:block;width:100%;transition:all .3s linear;color:#3297d3}#seopress-header #seopress-admin h1 .seopress-quick-access li a:hover{color:#647a88}#seopress-header #seopress-admin h1 .seopress-info-version{position:relative;left:50px;top:0;font-size:14px;width:100px;display:block}#seopress-header #seopress-admin .wpc-info-version{font-size:14px;left:310px;position:absolute;text-indent:0;top:85px}#seopress-header #seopress-notice{float:right;line-height:40px}#seopress-header #seopress-notice p{font-size:16px}#seopress-header #seopress-notice .dashicons{color:#444;text-decoration:none;line-height:40px}#seopress-header #seopress-notice div.small{font-size:13px;display:inline}#seopress-footer-credits{font-style:italic}#seopress-footer-credits .wporg-ratings{display:inline}#seopress-footer-credits .wporg-ratings a{text-decoration:none}.seopress-option .seopress-settings{float:left;max-width:750px;width:100%}.seopress-option #seopress-edd-license-btn,.seopress-option #seopress-refresh{float:left}.wp-admin-ui_page_seopress-import-export .postbox{margin-right:20px}.seopress-option #side-sortables .accordion-section-content{padding:0}.seopress-option .seopress-settings label{margin:0 0 0 10px}.wrap-seopress-tab-content{position:relative;display:block;width:100%;height:100%;max-width:53rem;margin:20px auto 0}#seopress-admin-tabs .seopress-tab{padding:1.5rem;visibility:hidden;overflow:hidden;opacity:0;transition:all .2s ease;transform:translateX(-15px);position:absolute;top:0}#seopress-admin-tabs .seopress-tab.active{visibility:visible;overflow:inherit;opacity:1;transform:translateX(0);display:inherit;position:relative}#seopress-tabs .seopress-tab{padding:1.5rem;display:none}#seopress-tabs .seopress-tab.active{display:block}.seopress-option input[type=text],.seopress-option input[type=password],.seopress-option textarea{min-width:485px}#seopress_htaccess_file{width:100%}.seopress-option textarea{min-height:100px}.seopress-option #side-sortables .highlight{border:1px dashed #ccc;display:block;width:382px;height:40px;background:0 0}.seopress-option #side-sortables .accordion-section{margin-bottom:9px;width:382px}.seopress-option #side-sortables .accordion-section h3{cursor:move;border:1px solid #E5E5E5;background:#FAFAFA}.seopress-option #side-sortables .accordion-section .inside{padding:10px 10px 24px;border-width:0 1px 1px;border-style:solid;box-shadow:0 1px 1px rgba(0,0,0,.04);border-color:#e5e5e5;display:inline-block;width:calc(100% - 22px);height:100%}.seopress-option #side-sortables .accordion-section .inside ul{padding-left:10px;margin-bottom:0;padding-top:2px;padding-bottom:2px}.seopress-option #side-sortables .accordion-section .inside ul li{border-left:2px solid #ccc;padding-left:10px;margin-bottom:10px}.seopress-option #side-sortables .accordion-section .inside ul li:first-child{border-bottom:1px dotted #E5E5E5;border-left:0;padding-bottom:10px;font-weight:700;margin-left:-15px;margin-bottom:10px}.seopress-notice #message{margin:5px 10px 2px 0}#seopress-notice a{position:relative;text-decoration:none}#seopress-notice a .tooltip{white-space:pre;z-index:200;padding:2px 5px;font-weight:500;font-size:12px;color:#aab7c4;background:#fff;box-shadow:0 1px 2px 0 rgba(49,49,93,.1),0 0 1px 0 rgba(0,0,0,.1);border-radius:2px;position:absolute;opacity:0;top:30px;transition:opacity .2s ease;visibility:hidden;line-height:20px;left:-100%;overflow:hidden}#seopress-notice a:hover .tooltip{opacity:1;visibility:visible}.seopress-page-list{margin:0}.seopress-option .dashicons,.seopress-page-list .dashicons{vertical-align:middle;margin-right:5px}#seopress-admin-tabs .ui-tabs-nav,#seopress-notifications-center,.seopress-page-list .seopress-feature,.seopress-useful-tools{background:linear-gradient(172deg,#f5f7fa,#f5f7fa 200px,#fff 0,#fff);margin:0 auto 20px;box-shadow:0 15px 35px rgba(50,50,93,.1),0 5px 15px rgba(0,0,0,.2);max-width:50rem;padding:1.5rem;width:100%;border-radius:4px}#seopress-notifications-center,.seopress-useful-tools{background:linear-gradient(172deg,#f5f7fa,#f5f7fa 400px,#fff 0,#fff)}.seopress-page-list .seopress-feature{padding:0 1.5rem;position:relative;overflow:hidden;transition-duration:.15s}.seopress-page-list .seopress-feature p{color:#6b7c93;font-size:14px;margin-bottom:30px}#seopress-notifications-center{margin-top:0}#seopress-admin-tabs .ui-tabs-nav{display:flex;padding-top:1rem;padding-bottom:0}.seopress-page-list .seopress-feature .img-tool{height:100px;width:100px;background:#c4f0ff;position:absolute;border-radius:50%;box-shadow:0 4px 6px rgba(50,50,93,.1),0 1px 3px rgba(0,0,0,.1);top:calc(50% - 50px);left:20px}.seopress-page-list .seopress-feature .img-tool .dashicons{color:#217AB7;font-size:60px;text-align:left;vertical-align:middle;width:100%;height:100%;position:absolute;top:calc(50% - 30px);left:calc(50% - 30px);margin:0}.seopress-page-list .seopress-feature .inner{margin:0;display:block;padding:2rem 0 2rem 120px}.seopress-page-list .seopress-feature h3{margin:0;font-size:16px;font-weight:700;color:#3297d3;text-transform:uppercase}.seopress-page-list .seopress-feature h3 .dashicons{font-size:16px;margin-left:5px;vertical-align:middle}#seopress-content .seopress-page-list .seopress-feature a,#seopress-notifications-center .seopress-alert .button-primary,.seopress-option .seopress-feature a,.seopress-useful-tools .widget .button-primary{color:#fff;text-decoration:none;border:none;border-radius:4px;padding-right:20px;padding-left:20px;line-height:34px;text-transform:uppercase;min-height:34px;transition:all .3s linear;text-shadow:none;box-shadow:0 7px 14px rgba(50,50,93,.1),0 3px 6px rgba(0,0,0,.1);margin-right:15px;background:#6A7C94;position:relative;height:auto}#seopress-content .seopress-page-list .seopress-feature a.button-secondary{padding-left:30px}#seopress-content .seopress-page-list .seopress-feature a.button-secondary::before,#seopress-notifications-center .seopress-alert .button-primary::after{content:"\f111";font-family:Dashicons;position:absolute;left:10px;top:1px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-size:16px}#seopress-content .seopress-page-list .seopress-feature a.view-redirects,#seopress-notifications-center .seopress-alert .button-primary,.seopress-option .button{background:#fff;border:none;color:#6b7c93;font-weight:500;transition:all .3s linear;text-shadow:none;text-transform:uppercase;padding-right:20px;padding-left:20px;line-height:34px;min-height:34px;margin-bottom:10px;border-radius:4px;box-shadow:0 7px 14px rgba(50,50,93,.1),0 3px 6px rgba(0,0,0,.1);vertical-align:baseline}.seopress-option .button .dashicons{font-size:16px}#seopress-content .seopress-page-list .seopress-feature a.view-redirects{padding-left:35px}#seopress-notifications-center .seopress-alert .button-primary::after{content:"\f344";left:inherit;right:10px}#seopress-content .seopress-page-list .seopress-feature a.view-redirects::before{content:"\f177"}#seopress-content .seopress-page-list .seopress-feature a:hover,#seopress-notifications-center .seopress-alert .button-primary:hover,.seopress-option .button:hover,.seopress-option .seopress-feature a:hover,.seopress-useful-tools .widget .button-primary:hover{text-decoration:none;color:#FFF;background:#232323}#seopress-content .seopress-page-list .seopress-feature .seopress-doc:focus,#seopress-content .seopress-page-list .seopress-feature a:focus,#seopress-content .seopress-page-list .seopress-feature a:focus.button-secondary,#seopress-content a:focus,#seopress-notifications-center .seopress-alert .button-primary:focus,.seopress-option #seopress-tabs .seopress-doc:focus,.seopress-option .seopress-feature a:focus,.seopress-styles .seopress-option #seopress-yoast-migrate:focus,.seopress-styles .seopress-option #submit:focus,.seopress-useful-tools .widget .button-primary:focus{box-shadow:0 1px 0 #0073aa,0 0 2px 1px #33b3db;background:#008ec2;border-color:#006799;color:#fff}#seopress-admin-tabs .nav-tab-wrapper a.nav-tab-active:focus{color:inherit}#seopress-notifications-center .seopress-alert .button-primary{float:right;margin:5px 0;padding-right:30px}#seopress-notifications-center h2,.seopress-useful-tools h2{margin:5px 0 15px 5px;display:inline-block;width:100%}#seopress-notifications-center .dashicons,.seopress-useful-tools .dashicons{margin-right:10px}#seopress-notifications-center .seopress-alert{padding:0;display:inline-block;margin:0 10px 10px 5px;border-bottom:1px solid #e6ebf1;width:calc(100% - 30px);position:relative;transition:all 150ms ease}#seopress-notifications-center .seopress-alert:hover{cursor:default}#seopress-notifications-center .seopress-alert p{display:inline-block}#seopress-notifications-center .seopress-alert .impact{padding:4px 5px;color:#fff;text-transform:uppercase;font-weight:700;font-size:10px;border-radius:4px}#seopress-notifications-center .seopress-alert .impact.low{background:#FFDE24;color:#6b6543}#seopress-notifications-center .seopress-alert .impact.medium{background:#e39f48}#seopress-notifications-center .seopress-alert .impact.high{background:#e25950}#seopress-notifications-center .seopress-alert .dashicons{color:#FFC82C}#seopress-notifications-center .dashicons.remove-notice{position:absolute;right:-55px;color:#6b7c93;font-size:30px;height:30px;width:30px;top:2px;padding:5px;transition:all .3s linear}#seopress-notifications-center .dashicons.remove-notice:hover{background:#e25950;color:#fff;cursor:pointer;border-radius:4px}#seopress-content .seopress-page-list .seopress-feature .seopress-doc,.seopress-option #seopress-tabs .seopress-doc{background:0 0;padding:0;width:inherit;height:inherit;text-decoration:none;color:inherit;box-shadow:none;position:absolute;right:0}#seopress-content .seopress-page-list .seopress-feature .seopress-doc:hover,.seopress-option #seopress-tabs .seopress-doc:hover{color:#747474;background:0 0}.seopress-option .seopress-table{background:#FFF;border:1px solid #ccc}.seopress-option .seopress-table th{padding:15px 10px;vertical-align:middle}.wp-admin-ui_page_seopress-roles .seopress-option .seopress-table th{min-width:200px}.seopress-option .seopress-table .seopress-settings-section{background:#f1f1f1}.seopress-option .seopress-table .seopress-table-head .seopress-feature{border-bottom:1px solid #ccc;font-weight:700;background:#f1f1f1}#seopress-content .feature-state,.seopress-option .feature-state{font-style:italic;font-size:12px;display:inline-block;background:rgba(0,140,135,.1);padding:5px 12px;border-radius:25px;color:#444;font-weight:400;text-transform:none;-moz-osx-font-smoothing:initial;-webkit-font-smoothing:initial}.seopress-button,.seopress-option .tag-title{cursor:pointer;font-weight:500;border-radius:4px;transition:all .3s linear}#seopress-content .feature-state-on,#seopress-content .feature-state.feature-state-on,.seopress-option .feature-state-on,.seopress-option .feature-state.feature-state-on{display:inline}#seopress-content .feature-state-off,.seopress-option .feature-state-off{display:none}.seopress-option .postbox .inside li{list-style:square inside;padding-left:5px}#tab_seopress_page_speed .inside li{list-style:none;padding-left:0;word-break:break-word}.seopress-option .log{margin:0;text-transform:uppercase;display:inline-block;vertical-align:middle;padding:5px;color:rgba(19,191,17,1);font-style:italic}.seopress-option input[type=text].seopress-admin-menu-input{min-width:inherit;width:100%}.seopress_page_seopress-import-export .postbox{width:calc(100% - 20px)}.seopress-option .wrap-tags{position:relative;display:inline-block;width:100%;margin-bottom:10px}.seopress-option .tag-title{padding:4px 8px;position:relative;top:5px;left:0;font-size:11px;float:left;margin-right:5px;user-select:none;margin-bottom:5px;background:#fff;color:#6b7c93;box-shadow:0 0 0 .5px rgba(50,50,93,.17),0 2px 5px 0 rgba(50,50,93,.12),0 3px 9px 0 rgba(50,50,93,.08),0 1px 1.5px 0 rgba(0,0,0,.08),0 1px 2px 0 rgba(0,0,0,.08)}.seopress-option .tag-title:active,.seopress-option .tag-title:focus,.seopress-option .tag-title:hover{background:#232323;color:#fff;user-select:none}.seopress-option .tag-title .dashicons{padding:0;height:16px;width:16px;font-size:16px;margin-right:5px;vertical-align:middle}.seopress-button{text-transform:uppercase;background:#fff;border-color:#c8d7e1;border-style:solid;border-width:1px 1px 2px;color:#2e4453;display:inline-block;margin:0;outline:0;overflow:hidden;text-overflow:ellipsis;text-decoration:none;vertical-align:top;box-sizing:border-box;font-size:14px;line-height:21px;padding:7px 14px 9px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.seopress-button:hover{border-color:#a8bece;color:#00a0d2}.seopress-button .dashicons{vertical-align:middle}#seopress-content #tab_seopress_seo_tools.seopress-useful-tools .widget{border-right:1px solid #e6ebf1;margin:0;padding:0 20px;width:calc(50% - 2px);box-sizing:border-box;display:inline-block;vertical-align:top}#seopress-content #tab_seopress_seo_tools.seopress-useful-tools .widget:first-child{width:100%;display:block;clear:both;border-right:none;border-bottom:1px solid #e6ebf1;padding-bottom:20px;margin-bottom:20px}#seopress-content #tab_seopress_seo_tools.seopress-useful-tools .widget:last-child{border-right:none}#seopress-content .seopress-useful-tools .widget-reverse ul{background:#fff}#seopress-content .seopress-useful-tools .widget-reverse li{padding:10px;margin:0;border-bottom:1px solid #e6ebf1}#seopress-content .seopress-useful-tools .widget-reverse li:hover{background:#F5F7FA}#seopress-content .seopress-useful-tools .widget-title{text-transform:uppercase;margin:0 0 10px;font-size:13px;padding:10px 0;color:#24b47e}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank{margin:0 0 10px;width:100%;box-sizing:border-box;display:block}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_reach{font-size:30px;font-weight:700;display:inline-block;width:100%;padding:0 0 20px;text-align:right}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_reach .highlight{display:inline-block;font-size:16px;background:inherit;width:100%;margin-bottom:10px}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_delta{font-size:14px;display:inline-block;vertical-align:top;text-align:left;margin:0 20px 0 0}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_delta{width:100%;text-align:right;font-size:18px;font-style:italic}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank{text-align:left}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country .highlight,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank .highlight{background:0 0;font-weight:700}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country{margin-right:0}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank{margin-left:5px}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .minus .dashicons,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .plus .dashicons{font-style:italic}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .plus{color:green}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .minus{color:red}#seopress-content .seopress-reverse label,#seopress-content .seopress-useful-tools .widget-whois ul li span{font-weight:700}#seopress-content #seopress-reverse-url{width:100%;margin:10px 0}#seopress-content .widget-reverse p{margin:0}.post-type-seopress_backlinks .wp-list-table .column-seopress_backlinks_url{width:35%}.post-type-seopress_backlinks .wp-list-table .column-seopress_backlinks_anchor_text{width:20%}.seopress-styles #screen-meta{margin:0;position:relative;background-color:#fff;border-bottom:0 solid #f2f2f2;border-top:none;-webkit-box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08);box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08);top:0}.seopress-styles #contextual-help-link-wrap,.seopress-styles #screen-options-link-wrap{float:right;height:28px;margin:0 0 0 6px;border:1px solid #f2f2f2;border-top:none;background:#fff;-webkit-box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08);box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08)}.seopress-styles #screen-meta-links .show-settings{box-shadow:none}.seopress-styles #screen-meta-links .screen-meta-toggle{position:relative;top:0;z-index:2000}.seopress-styles #contextual-help-back{background:#f8fafd}.seopress-styles .contextual-help-tabs .active{border-left:2px solid #3297d3;background:#f8fafd}#seopress-content input.toggle,.seopress-option input.toggle{max-height:0;max-width:0;opacity:0}#seopress-content input.toggle+label,.seopress-option input.toggle+label{display:inline-block;position:relative;box-shadow:inset 0 0 0 1px #d5d5d5;text-indent:-5000px;height:30px;width:50px;border-radius:15px}.wrap-toggle-checkboxes input.toggle+label{float:left;margin-right:10px}#seopress-content input.toggle+label:before,.seopress-option input.toggle+label:before{content:"";position:absolute;display:block;height:30px;width:30px;top:0;left:0;border-radius:15px;background:rgba(19,191,17,0);-moz-transition:.25s ease-in-out;-webkit-transition:.25s ease-in-out;transition:.25s ease-in-out}#seopress-content input.toggle+label:after,.seopress-option input.toggle+label:after{content:"";position:absolute;display:block;height:30px;width:30px;top:0;left:0;border-radius:15px;background:#fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2),0 2px 4px rgba(0,0,0,.2);-moz-transition:.25s ease-in-out;-webkit-transition:.25s ease-in-out;transition:.25s ease-in-out}#seopress-content input.toggle[data-toggle="1"]+label:before,.seopress-option input.toggle[data-toggle="1"]+label:before{width:50px;background:rgba(19,191,17,1)}#seopress-content input.toggle[data-toggle="1"]+label:after,.seopress-option input.toggle[data-toggle="1"]+label:after{left:20px;box-shadow:inset 0 0 0 1px rgba(19,191,17,1),0 2px 4px rgba(0,0,0,.2)}#seopress-content .seopress-page-list{position:relative}#seopress-notice-save{position:fixed;color:#fff;padding:15px 40px;font-size:14px;text-align:center;border-radius:50px;background:rgba(74,184,102,.75);top:50px;right:20px;z-index:500}.seopress_page_seopress-pro-page #wpcontent{background:#F4F7FA}.seopress-option .wrap div.nav-tab-wrapper{border-bottom:1px solid RGB(238,238,238);margin:0;padding:10px;line-height:inherit;position:sticky;top:100px;background:#fff;z-index:95;font-style:23px;font-weight:400}#seopress-admin-tabs.wrap div.nav-tab-wrapper{margin:20px auto 0;max-width:53rem;width:100%;border-bottom:0;padding:0;line-height:inherit;position:sticky;background:#f8fafd;z-index:100;top:31px;font-style:23px;font-weight:400}#seopress-admin-tabs #tab_seopress_notifications.seopress-tab{background:0 0;padding:0}#seopress-admin-tabs .nav-tab,.seopress-option .nav-tab{border:0 solid #ccc;background:0 0;opacity:.5;padding:5px 8px;transition:opacity .3s linear;color:#647a88;font-weight:300;float:none;display:inline-block}#seopress-admin-tabs .nav-tab-active,#seopress-admin-tabs .nav-tab-active:hover,.seopress-option .about-wrap h2 .nav-tab-active,.seopress-option .nav-tab-active,.seopress-option .nav-tab-active:hover{background-color:#fff}#seopress-admin-tabs .nav-tab-active,#seopress-admin-tabs .nav-tab-active:focus,#seopress-admin-tabs .nav-tab-active:focus:active,#seopress-admin-tabs .nav-tab-active:hover,#seopress-admin-tabs .nav-tab:focus,.nav-tab-active:focus,.seopress-option .nav-tab-active,.seopress-option .nav-tab-active:focus:active,.seopress-option .nav-tab-active:hover,.seopress-option .nav-tab:focus{background:0 0;opacity:1;outline:0;font-weight:600}#seopress-admin-tabs .nav-tab:hover,.seopress-option .nav-tab:hover{opacity:1}#seopress-admin-tabs .nav-tab:focus,.seopress-option .nav-tab:focus{outline:0;box-shadow:none}
assets/js/seopress-counters.js CHANGED
@@ -13,8 +13,16 @@ jQuery(document).ready(function(){
13
success : function( data ) {
14
jQuery( '#seopress_cpt .google-snippet-preview .snippet-title' ).html(data.data.title);
15
jQuery( '#seopress_cpt .google-snippet-preview .snippet-title-default' ).html(data.data.title);
16
jQuery( '#seopress_cpt .google-snippet-preview .snippet-description' ).html(data.data.meta_desc);
17
jQuery( '#seopress_cpt .google-snippet-preview .snippet-description-default' ).html(data.data.meta_desc);
18
},
19
});
20
});
@@ -81,3 +89,122 @@ jQuery(document).ready(function(){
81
}
82
});
83
});
13
success : function( data ) {
14
jQuery( '#seopress_cpt .google-snippet-preview .snippet-title' ).html(data.data.title);
15
jQuery( '#seopress_cpt .google-snippet-preview .snippet-title-default' ).html(data.data.title);
16
+ jQuery( '#seopress_titles_title_meta' ).attr("placeholder", data.data.title);
17
jQuery( '#seopress_cpt .google-snippet-preview .snippet-description' ).html(data.data.meta_desc);
18
jQuery( '#seopress_cpt .google-snippet-preview .snippet-description-default' ).html(data.data.meta_desc);
19
+ jQuery( '#seopress_titles_desc_meta' ).attr("placeholder", data.data.meta_desc);
20
+ jQuery( '#seopress_cpt #seopress_social_fb_title_meta' ).attr("placeholder", data.data.og_title);
21
+ jQuery( '#seopress_cpt #seopress_social_fb_desc_meta' ).attr("placeholder", data.data.og_desc);
22
+ jQuery( '#seopress_cpt #seopress_social_fb_img_meta' ).attr("placeholder", data.data.og_img);
23
+ jQuery( '#seopress_cpt #seopress_social_twitter_title_meta' ).attr("placeholder", data.data.tw_title);
24
+ jQuery( '#seopress_cpt #seopress_social_twitter_desc_meta' ).attr("placeholder", data.data.tw_desc);
25
+ jQuery( '#seopress_cpt #seopress_social_twitter_img_meta' ).attr("placeholder", data.data.tw_img);
26
},
27
});
28
});
89
}
90
});
91
});
92
+
93
+ //Video Sitemap
94
+ jQuery(document).ready(function(){
95
+ function seopress_call_media_uploader() {
96
+ var mediaUploader;
97
+ var thumb;
98
+ jQuery('.seopress_video_thumbnail_upload').click(function(e) {
99
+ e.preventDefault();
100
+ $btn = jQuery(this);
101
+ // If the uploader object has already been created, reopen the dialog
102
+ if (mediaUploader) {
103
+ mediaUploader.open();
104
+ return;
105
+ }
106
+ thumb = jQuery(this).prev();
107
+ // Extend the wp.media object
108
+ mediaUploader = wp.media.frames.file_frame = wp.media({
109
+ title: 'Choose Image',
110
+ button: {
111
+ text: 'Choose Image'
112
+ }, multiple: false });
113
+
114
+ // When a file is selected, grab the URL and set it as the text field's value
115
+ mediaUploader.on('select', function() {
116
+ var attachment = mediaUploader.state().get('selection').first().toJSON();
117
+ $btn.prev().val(attachment.url);
118
+ });
119
+ // Open the uploader dialog
120
+ mediaUploader.open();
121
+ });
122
+ }
123
+ seopress_call_media_uploader();
124
+
125
+ var template = jQuery('#wrap-videos .video:last').clone();
126
+
127
+ //accordion
128
+ var stop = false;
129
+ jQuery("#wrap-videos .video h3").click(function(event) {
130
+ if (stop) {
131
+ event.stopImmediatePropagation();
132
+ event.preventDefault();
133
+ stop = false;
134
+ }
135
+ });
136
+ function seopress_call_video_accordion() {
137
+ jQuery( "#wrap-videos .video" ).accordion({
138
+ collapsible: true,
139
+ active: false,
140
+ heightStyle:"panel",
141
+ });
142
+ }
143
+ seopress_call_video_accordion();
144
+
145
+ //define counter
146
+ var sectionsCount = jQuery('#wrap-videos').attr('data-count');
147
+
148
+ //add new section
149
+ jQuery('#add-video').click(function() {
150
+
151
+ //increment
152
+ sectionsCount++;
153
+
154
+ //loop through each input
155
+ var section = template.clone().find(':input').each(function(){
156
+ //Stock input id
157
+ var input_id = this.id;
158
+
159
+ //Stock input name
160
+ var input_name = this.name;
161
+
162
+ //set id to store the updated section number
163
+ var newId = this.id.replace(/^(\w+)\[.*?\]/, '$1['+sectionsCount+']');
164
+
165
+ //Update input name
166
+ jQuery(this).attr('name', input_name.replace(/^(\w+)\[.*?\]/, '$1['+sectionsCount+']'));
167
+
168
+ //Clear input value
169
+ if (! jQuery(this).hasClass('seopress_video_thumbnail_upload')) {
170
+ jQuery(this).attr('value','');
171
+ }
172
+
173
+ //update for label
174
+ if (jQuery(this).is(':checkbox')) {
175
+ jQuery(this).parent().attr('for', input_id.replace(/^(\w+)\[.*?\]/, '$1['+sectionsCount+']'));
176
+ jQuery(this).parent().attr('id', input_name.replace(/^(\w+)\[.*?\]/, '$1['+sectionsCount+']'));
177
+ } else if(jQuery(this).hasClass('seopress_video_thumbnail_upload')) {
178
+ //do nothing
179
+ } else {
180
+ jQuery(this).prev().attr('for', input_id.replace(/^(\w+)\[.*?\]/, '$1['+sectionsCount+']'));
181
+ jQuery(this).prev().attr('id', input_name.replace(/^(\w+)\[.*?\]/, '$1['+sectionsCount+']'));
182
+ }
183
+
184
+ //update id
185
+ this.id = newId;
186
+
187
+ }).end()
188
+
189
+ //inject new section
190
+ .appendTo('#wrap-videos');
191
+ seopress_call_video_accordion();
192
+ jQuery( "#wrap-videos .video" ).accordion('destroy');
193
+ seopress_call_video_accordion();
194
+ jQuery("[id^=__wp-uploader-id-]").each(function() {
195
+ jQuery(this).remove();
196
+ });
197
+ seopress_call_media_uploader();
198
+ return false;
199
+ });
200
+
201
+ //remove section
202
+ jQuery('#wrap-videos').on('click', '.remove-video', function() {
203
+ //fade out section
204
+ jQuery(this).fadeOut(300, function(){
205
+ jQuery(this).parent().parent().parent().parent().remove();
206
+ return false;
207
+ });
208
+ return false;
209
+ });
210
+ });
assets/js/seopress-dashboard.js CHANGED
@@ -1,4 +1,9 @@
1
jQuery(document).ready(function(){
2
//Hide notices
3
//**Divide comments
4
jQuery('#notice-divide-comments').on('click', function() {
@@ -20,6 +25,26 @@ jQuery(document).ready(function(){
20
},
21
});
22
});
23
//**Trailingslash
24
jQuery('#notice-trailingslash').on('click', function() {
25
jQuery('#notice-trailingslash').attr('data-notice', jQuery('#notice-trailingslash').attr('data-notice') == '1' ? '0' : '1');
1
jQuery(document).ready(function(){
2
+ //If no notices
3
+ if (!jQuery.trim( jQuery("#seopress-notifications-center").html() )) {
4
+ jQuery('#seopress-notifications-center').remove();
5
+ }
6
+
7
//Hide notices
8
//**Divide comments
9
jQuery('#notice-divide-comments').on('click', function() {
25
},
26
});
27
});
28
+ //**Review SEOPress
29
+ jQuery('#notice-review').on('click', function() {
30
+ jQuery('#notice-review').attr('data-notice', jQuery('#notice-review').attr('data-notice') == '1' ? '0' : '1');
31
+ jQuery.ajax({
32
+ method : 'POST',
33
+ url : seopressAjaxHideNotices.seopress_hide_notices,
34
+ data : {
35
+ action: 'seopress_hide_notices',
36
+ notice: 'notice-review',
37
+ notice_value: jQuery('#notice-review').attr('data-notice'),
38
+ _ajax_nonce: seopressAjaxHideNotices.seopress_nonce,
39
+ },
40
+ success : function( data ) {
41
+ jQuery( '#seopress-notice-save' ).css('display', 'block');
42
+ jQuery( '#seopress-notice-save .html' ).html('Notice successfully removed');
43
+ jQuery( '#notice-review-alert' ).fadeOut();
44
+ jQuery( '#seopress-notice-save' ).delay(3500).fadeOut();
45
+ },
46
+ });
47
+ });
48
//**Trailingslash
49
jQuery('#notice-trailingslash').on('click', function() {
50
jQuery('#notice-trailingslash').attr('data-notice', jQuery('#notice-trailingslash').attr('data-notice') == '1' ? '0' : '1');
assets/js/seopress-media-uploader.js CHANGED
@@ -76,5 +76,4 @@ jQuery(document).ready(function($){
76
// Open the uploader dialog
77
mediaUploader.open();
78
});
79
- });
80
-
76
// Open the uploader dialog
77
mediaUploader.open();
78
});
79
+ });
assets/js/seopress-network-tabs.js CHANGED
@@ -66,7 +66,10 @@ jQuery(document).ready(function($) {
66
jQuery.ajax({
67
method : 'GET',
68
url : seopressAjaxResetPermalinks.seopress_flush_permalinks,
69
- _ajax_nonce: seopressAjaxResetPermalinks.seopress_nonce,
70
success : function( data ) {
71
window.location.reload(true);
72
},
66
jQuery.ajax({
67
method : 'GET',
68
url : seopressAjaxResetPermalinks.seopress_flush_permalinks,
69
+ data : {
70
+ action: 'seopress_flush_permalinks',
71
+ _ajax_nonce: seopressAjaxResetPermalinks.seopress_nonce,
72
+ },
73
success : function( data ) {
74
window.location.reload(true);
75
},
assets/js/seopress-sitemap-ajax.js CHANGED
@@ -4,6 +4,7 @@ jQuery(document).ready(function(){
4
method : 'GET',
5
url : seopressAjaxResetPermalinks.seopress_flush_permalinks,
6
data: {
7
_ajax_nonce: seopressAjaxResetPermalinks.seopress_nonce,
8
},
9
success : function( data ) {
4
method : 'GET',
5
url : seopressAjaxResetPermalinks.seopress_flush_permalinks,
6
data: {
7
+ action: 'seopress_flush_permalinks',
8
_ajax_nonce: seopressAjaxResetPermalinks.seopress_nonce,
9
},
10
success : function( data ) {
inc/admin/admin-metaboxes-content-analysis-form.php CHANGED
@@ -1,55 +1,129 @@
1
<?php
2
defined( 'ABSPATH' ) or die( 'Please don&rsquo;t call the plugin directly. Thanks :)' );
3
- echo '<div id="seopress-analysis-tabs">
4
<p>
5
'.__('Enter a few keywords for analysis and help you write optimized content.','wp-seopress').'
6
- <label for="seopress_analysis_target_kw_meta">'. __( 'Target keywords', 'wp-seopress' ) .'</label>
7
- <input id="seopress_analysis_target_kw_meta" type="text" name="seopress_analysis_target_kw" placeholder="'.esc_html__('Enter your target keywords','wp-seopress').'" aria-label="'.__('Target keywords','wp-seopress').'" value="'.$seopress_analysis_target_kw.'" />
8
- <span class="howto">'.__('Separate target keywords with commas, do not use space after comma unless it\'s wanted.','wp-seopress').'</span>
9
- </p>';
10
11
- if (empty($seopress_analysis_data)) {
12
- echo '<div id="seopress_launch_analysis" class="button" data_id="'.get_the_ID().'" data_post_type="'.get_current_screen()->post_type.'">'.__('Analyse my content','wp-seopress').'</div>';
13
- } else {
14
- echo '<div id="seopress_launch_analysis" class="button" data_id="'.get_the_ID().'" data_post_type="'.get_current_screen()->post_type.'">'.__('Refresh analysis','wp-seopress').'</div>';
15
- }
16
17
- echo '<div id="seopress_analysis_results_state" style="display:none"><span class="dashicons dashicons-yes"></span>'.__('Analysis completed','wp-seopress').'</div>';
18
19
- echo '<br><p><span class="howto">'.__('Save your post first, to get the most accurate analysis.','wp-seopress').'</span></p>';
20
21
- if (!empty($seopress_analysis_data)) {
22
- echo '<ul>
23
- <li><a href="#seopress-analysis-tabs-1"><span class="dashicons dashicons-admin-settings"></span>'. __( 'Optimisations', 'wp-seopress' ) .'</a></li>
24
- <li><a href="#seopress-analysis-tabs-2"><span class="dashicons dashicons-admin-generic"></span>'. __( 'Configuration', 'wp-seopress' ) .'</a></li>
25
- <li><a href="#seopress-analysis-tabs-3"><span class="dashicons dashicons-format-image"></span>'. __( 'Images', 'wp-seopress' ) .'</a></li>
26
- <li><a href="#seopress-analysis-tabs-4"><span class="dashicons dashicons-admin-links"></span>'. __( 'Links', 'wp-seopress' ) .'</a></li>
27
- </ul>
28
29
- <div id="seopress-analysis-tabs-1">';
30
- //Word counters
31
- if (isset($seopress_analysis_data['0']['words_counter']) || isset($seopress_analysis_data['0']['words_counter_unique'])) {
32
- echo '<h3>'.__('Words counter','wp-seopress').'</h3>
33
- <ul>
34
- <li>'.$seopress_analysis_data['0']['words_counter'].' '.__('words found.','wp-seopress').'</li>
35
- <li>'.$seopress_analysis_data['0']['words_counter_unique'].' '.__('unique words found.','wp-seopress').'</li>';
36
37
- if ($seopress_analysis_data['0']['words_counter'] >= 299) {
38
- echo '<li><span class="dashicons dashicons-yes"></span>'.__('Your content is composed of more than 300 words, which is the minimum for a post.','wp-seopress').'</li>';
39
} else {
40
- echo '<li><span class="dashicons dashicons-no-alt"></span>'.__('Your content lacks words. Add a few more paragraphs!','wp-seopress').'</li>';
41
}
42
- echo '</ul>';
43
- }
44
45
- //Post Title
46
- echo '<h3>'.__('Post title','wp-seopress').'</h3>';
47
- if (get_post_field('post_title', $post->ID) !='') {
48
- if (!empty($seopress_analysis_data['0']['post_title']['matches'])) {
49
- echo '<p><span class="dashicons dashicons-yes"></span>'.__('Target keywords were found in Post Title.','wp-seopress').'</p>';
50
echo '<ul>';
51
- $target_kws_post_title = $seopress_analysis_data['0']['post_title']['matches'];
52
- foreach ($target_kws_post_title as $key => $value) {
53
foreach ($value as $_key => $_value) {
54
$kw_count = count($_value);
55
}
@@ -58,64 +132,16 @@ echo '<div id="seopress-analysis-tabs">
58
}
59
echo '</ul>';
60
} else {
61
- echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('None of your target keywords were found in the Post Title.','wp-seopress').'</p>';
62
}
63
- } else {
64
- echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('No post title set for this post!','wp-seopress').'</p>';
65
- }
66
-
67
- //H1
68
- if (!empty($seopress_analysis_data['0']['h1']['matches'])) {
69
- echo '<h3>'.__('H1 (Heading 1)','wp-seopress').'</h3>';
70
- $count = count($seopress_analysis_data['0']['h1']['matches']);
71
- echo '<p><span class="dashicons dashicons-no-alt"></span>'.sprintf(esc_html__('We found %d Heading 1 (H1) in your content.','wp-seopress'), $count).'</p>';
72
- echo '<p>'.__('You should not use Heading 1 in your post content because your post title is already an H1. The rule is simple: 1 H1 for 1 web page.','wp-seopress').'</p>';
73
- }
74
-
75
- //H2
76
- echo '<h3>'.__('H2 (Heading 2)','wp-seopress').'</h3>';
77
- if (!empty($seopress_analysis_data['0']['h2']['matches'])) {
78
- echo '<p><span class="dashicons dashicons-yes"></span>'.__('Target keywords were found in Heading 2 (H2).','wp-seopress').'</p>';
79
- echo '<ul>';
80
- $target_kws_h2 = $seopress_analysis_data['0']['h2']['matches'];
81
- foreach ($target_kws_h2 as $key => $value) {
82
- foreach ($value as $_key => $_value) {
83
- $kw_count = count($_value);
84
- }
85
- $kw_name = $key;
86
- echo '<li><span class="dashicons dashicons-minus"></span>'.sprintf(esc_html__('%s was found %d times.','wp-seopress'), $kw_name, $kw_count).'</li>';
87
- }
88
- echo '</ul>';
89
- } else {
90
- echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('None of your target keywords were found in Heading 2 (H2).','wp-seopress').'</p>';
91
- }
92
-
93
- //H3
94
- echo '<h3>'.__('H3 (Heading 3)','wp-seopress').'</h3>';
95
- if (!empty($seopress_analysis_data['0']['h3']['matches'])) {
96
- echo '<p><span class="dashicons dashicons-yes"></span>'.__('Target keywords were found in Heading 3 (H3).','wp-seopress').'</p>';
97
- echo '<ul>';
98
- $target_kws_h3 = $seopress_analysis_data['0']['h3']['matches'];
99
- foreach ($target_kws_h3 as $key => $value) {
100
- foreach ($value as $_key => $_value) {
101
- $kw_count = count($_value);
102
- }
103
- $kw_name = $key;
104
- echo '<li><span class="dashicons dashicons-minus"></span>'.sprintf(esc_html__('%s was found %d times.','wp-seopress'), $kw_name, $kw_count).'</li>';
105
- }
106
- echo '</ul>';
107
- } else {
108
- echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('None of your target keywords were found in Heading 3 (H3).','wp-seopress').'</p>';
109
- }
110
111
- //Meta Title
112
- echo '<h3>'.__('Meta title','wp-seopress').'</h3>';
113
- if ($seopress_titles_title !='') {
114
- if (!empty($seopress_analysis_data['0']['title']['matches'])) {
115
- echo '<p><span class="dashicons dashicons-yes"></span>'.__('Target keywords were found in Meta Title.','wp-seopress').'</p>';
116
echo '<ul>';
117
- $target_kws_title = $seopress_analysis_data['0']['title']['matches'];
118
- foreach ($target_kws_title as $key => $value) {
119
foreach ($value as $_key => $_value) {
120
$kw_count = count($_value);
121
}
@@ -124,146 +150,166 @@ echo '<div id="seopress-analysis-tabs">
124
}
125
echo '</ul>';
126
} else {
127
- echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('None of your target keywords were found in Meta Title.','wp-seopress').'</p>';
128
}
129
130
- if (strlen($seopress_titles_title) > 65 ) {
131
- echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('You custom title is too long.','wp-seopress').'</p>';
132
} else {
133
- echo '<p><span class="dashicons dashicons-yes"></span>'.__('The length of your title is correct','wp-seopress').'</p>';
134
}
135
- } else {
136
- echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('No custom title set for this post.','wp-seopress').'</p>';
137
- }
138
139
- //Meta description
140
- echo '<h3>'.__('Meta description','wp-seopress').'</h3>';
141
142
- if ($seopress_titles_desc !='') {
143
- if (!empty($seopress_analysis_data['0']['desc']['matches'])) {
144
- echo '<p><span class="dashicons dashicons-yes"></span>'.__('Target keywords were found in Meta description.','wp-seopress').'</p>';
145
- echo '<ul>';
146
- $target_kws_desc = $seopress_analysis_data['0']['desc']['matches'];
147
- foreach ($target_kws_desc as $key => $value) {
148
- foreach ($value as $_key => $_value) {
149
- $kw_count = count($_value);
150
}
151
- $kw_name = $key;
152
- echo '<li><span class="dashicons dashicons-minus"></span>'.sprintf(esc_html__('%s was found %d times.','wp-seopress'), $kw_name, $kw_count).'</li>';
153
- }
154
- echo '</ul>';
155
- } else {
156
- echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('None of your target keywords were found in Meta description.','wp-seopress').'</p>';
157
- }
158
159
- if (strlen($seopress_titles_desc) > 320 ) {
160
- echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('You custom meta description is too long.','wp-seopress').'</p>';
161
} else {
162
- echo '<p><span class="dashicons dashicons-yes"></span>'.__('The length of your meta description is correct','wp-seopress').'</p>';
163
}
164
- } else {
165
- echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('No custom meta description set for this post.','wp-seopress').'</p>';
166
- }
167
168
- echo '</div>
169
170
- <div id="seopress-analysis-tabs-2">
171
- <h3>'.__('Robots','wp-seopress').'</h3>';
172
173
- //Robots
174
- if ($seopress_robots_index =='yes') {
175
- echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('noindex is on! Search engines can\'t index this page.','wp-seopress').'</p>';
176
- } else {
177
- echo '<p><span class="dashicons dashicons-yes"></span>'.__('noindex is off. Search engines will index this page.','wp-seopress').'</p>';
178
- }
179
180
- if ($seopress_robots_follow =='yes') {
181
- echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('nofollow is on! Search engines can\'t follow your links on this page.','wp-seopress').'</p>';
182
- } else {
183
- echo '<p><span class="dashicons dashicons-yes"></span>'.__('nofollow is off. Search engines will follow links on this page.','wp-seopress').'</p>';
184
- }
185
186
- if ($seopress_robots_imageindex =='yes') {
187
- echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('noimageindex is on! Google will not index your images on this page (but if someone makes a direct link to one of your image in this page, it will be indexed).','wp-seopress').'</p>';
188
- } else {
189
- echo '<p><span class="dashicons dashicons-yes"></span>'.__('noimageindex is off. Google will index your images on this page.','wp-seopress').'</p>';
190
- }
191
192
- if ($seopress_robots_archive =='yes') {
193
- echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('noarchive is on! Search engines will not cache your page.','wp-seopress').'</p>';
194
- } else {
195
- echo '<p><span class="dashicons dashicons-yes"></span>'.__('noarchive is off. Search engines will probably cache your page.','wp-seopress').'</p>';
196
- }
197
198
- if ($seopress_robots_snippet =='yes') {
199
- echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('nosnippet is on! Search engines will not display a snippet of this page in search results.','wp-seopress').'</p>';
200
- } else {
201
- echo '<p><span class="dashicons dashicons-yes"></span>'.__('nosnippet is off. Search engines will display a snippet of this page in search results.','wp-seopress').'</p>';
202
- }
203
- echo '</div>
204
- <div id="seopress-analysis-tabs-3">
205
- <div class="wrap-analysis-img">';
206
- if (!empty($seopress_analysis_data['0']['img'])) {
207
- $images = isset($seopress_analysis_data['0']['img']['images']) ? $seopress_analysis_data['0']['img']['images'] : NULL;
208
- $post_thumbnail = isset($seopress_analysis_data['0']['img']['post_thumbnail']) ? $seopress_analysis_data['0']['img']['post_thumbnail'] : NULL;
209
210
- $product_imgs = isset($seopress_analysis_data['0']['img']['product_img']) ? $seopress_analysis_data['0']['img']['product_img'] : NULL;
211
212
- if ((isset($images) && !empty($images)) || (isset($post_thumbnail) && !empty($post_thumbnail))) {
213
- echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('No alternative text found for these images. Alt tag are important for both SEO and accessibility.','wp-seopress').'</p>';
214
-
215
- //Standard images & galleries
216
- if (isset($images) && !empty($images)) {
217
- echo '<h4>'.__('Post Content','wp-seopress').'</h4>';
218
- echo '<ul class="attachments">';
219
- foreach($images as $img) {
220
- echo '<li class="attachment"><img src="'.$img.'"/></li>';
221
- }
222
- echo '</ul>';
223
- }
224
225
- //Post Thumbnail
226
- if (isset($post_thumbnail) && !empty($post_thumbnail)) {
227
- echo '<h4>'.__('Post Thumbnail','wp-seopress').'</h4>';
228
- echo '<ul class="attachments">';
229
- echo '<li class="attachment">'.$post_thumbnail.'</li>';
230
- echo '</ul>';
231
- }
232
233
- //WooCommerce galleries
234
- if (isset($product_imgs) && !empty($product_imgs)) {
235
- echo '<h4>'.__('Product gallery','wp-seopress').'</h4>';
236
- echo '<ul class="attachments">';
237
- foreach ($product_imgs as $product_img) {
238
- echo '<li class="attachment"><img src="'.$product_img.'"/></li>';
239
- }
240
- echo '</ul>';
241
}
242
} else {
243
- echo '<p><span class="dashicons dashicons-yes"></span>'.__('All alternative tags are filled in. Good work!','wp-seopress').'</p>';
244
}
245
} else {
246
- echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('We could not find any image in your content. Content with media is a plus for your SEO.','wp-seopress').'</p>';
247
}
248
- echo '</div>
249
- </div>
250
- <div id="seopress-analysis-tabs-4">';
251
- //Nofollow links
252
- echo '<h3>'.__('NoFollow Links','wp-seopress').'</h3>';
253
-
254
- if (!empty($seopress_analysis_data['0']['nofollow_links'])) {
255
-
256
- $count = count($seopress_analysis_data['0']['nofollow_links']);
257
-
258
- echo '<p>'.sprintf( esc_html__( 'We found %d links with nofollow attribute in your page. Do not overuse nofollow attribute in links. Below, the list:', 'wp-seopress' ), $count ).'</p>';
259
- echo '<ul>';
260
- foreach ($seopress_analysis_data['0']['nofollow_links'] as $link) {
261
- echo '<li><span class="dashicons dashicons-minus"></span>'.$link.'</li>';
262
- }
263
- echo '</ul>';
264
- } else {
265
- echo '<p><span class="dashicons dashicons-yes"></span>'.__('This page doesn\'t have any nofollow links.','wp-seopress').'</p>';
266
- }
267
- echo '</div>';
268
- }
269
- echo '</div>';
1
<?php
2
defined( 'ABSPATH' ) or die( 'Please don&rsquo;t call the plugin directly. Thanks :)' );
3
+ echo '<div class="wrap-seopress-analysis">
4
<p>
5
'.__('Enter a few keywords for analysis and help you write optimized content.','wp-seopress').'
6
+ </p>
7
+ <div class="col-left">
8
+ <p>
9
+ <label for="seopress_analysis_target_kw_meta">'. __( 'Target keywords', 'wp-seopress' ) .'</label>
10
+ <input id="seopress_analysis_target_kw_meta" type="text" name="seopress_analysis_target_kw" placeholder="'.esc_html__('Enter your target keywords','wp-seopress').'" aria-label="'.__('Target keywords','wp-seopress').'" value="'.$seopress_analysis_target_kw.'" />
11
+ <span class="howto">'.__('Separate target keywords with commas, do not use space after comma unless it\'s wanted.','wp-seopress').'</span>
12
+ </p>';
13
+ if (empty($seopress_analysis_data)) {
14
+ echo '<div id="seopress_launch_analysis" class="button" data_id="'.get_the_ID().'" data_post_type="'.get_current_screen()->post_type.'">'.__('Analyse my content','wp-seopress').'</div>';
15
+ } else {
16
+ echo '<div id="seopress_launch_analysis" class="button" data_id="'.get_the_ID().'" data_post_type="'.get_current_screen()->post_type.'">'.__('Refresh analysis','wp-seopress').'</div>';
17
+ }
18
+ echo '<div id="seopress_analysis_results_state" style="display:none"><span class="dashicons dashicons-yes"></span>'.__('Analysis completed','wp-seopress').'</div>';
19
20
+ echo '<br><p><span class="howto">'.__('Save your post first, to get the most accurate analysis.','wp-seopress').'</span></p>';
21
+ echo '</div>';
22
+ if ( is_plugin_active( 'wp-seopress-pro/seopress-pro.php' ) ) {
23
+ echo '<div class="col-right">
24
+ <label for="seopress_google_suggest_kw_meta">'. __( 'Google Suggest', 'wp-seopress' ) .'</label>
25
+ <input id="seopress_google_suggest_kw_meta" type="text" name="seopress_google_suggest_kw" placeholder="Get suggestions from Google" aria-label="Google suggestions" value="">
26
+ <span class="howto">'.__('Enter a keyword or phrase to find the top 10 Google suggestions instantly. Useful for working the long tail technique.','wp-seopress').'</span>
27
+ <br>
28
+ <button id="seopress_get_suggestions" class="button">'.__('Get suggestions!','wp-seopress').'</button>
29
+ ';
30
+ echo "<ul id='seopress_suggestions'></ul>";
31
32
+ if (get_locale() !='') {
33
+ $locale = substr(get_locale(), 0, 2);
34
+ } else {
35
+ $locale = 'en';
36
+ }
37
38
+ echo "<script>
39
+ function seopress_google_suggest(data){
40
+ var raw_suggestions = String(data);
41
+
42
+ var suggestions_array = raw_suggestions.split(',');
43
+
44
+ var i;
45
+ for (i = 0; i < suggestions_array.length; i++) {
46
+ document.getElementById('seopress_suggestions').innerHTML += '<li>'+suggestions_array[i]+'</li>';
47
+ }
48
+ }
49
+ jQuery('#seopress_get_suggestions').on('click', function(data) {
50
+ data.preventDefault();
51
+
52
+ document.getElementById('seopress_suggestions').innerHTML = '';
53
+
54
+ var kws = jQuery('#seopress_google_suggest_kw_meta').val();
55
56
+ if (kws) {
57
+ var script = document.createElement('script');
58
+ script.src = 'https://www.google.com/complete/search?client=firefox&hl=".$locale."&q='+kws+'&callback=seopress_google_suggest';
59
+ document.body.appendChild(script);
60
+ }
61
+ });
62
+ </script>
63
+ </div>";
64
+ }
65
+ echo '<div id="seopress-analysis-tabs">';
66
+ if (!empty($seopress_analysis_data)) {
67
+ echo '<ul class="wrap-analysis-results">
68
+ <li><a href="#seopress-analysis-tabs-1"><span class="dashicons dashicons-admin-settings"></span>'. __( 'Optimisations', 'wp-seopress' ) .'</a></li>
69
+ <li><a href="#seopress-analysis-tabs-2"><span class="dashicons dashicons-admin-generic"></span>'. __( 'Configuration', 'wp-seopress' ) .'</a></li>
70
+ <li><a href="#seopress-analysis-tabs-3"><span class="dashicons dashicons-format-image"></span>'. __( 'Images', 'wp-seopress' ) .'</a></li>
71
+ <li><a href="#seopress-analysis-tabs-4"><span class="dashicons dashicons-admin-links"></span>'. __( 'Links', 'wp-seopress' ) .'</a></li>
72
+ </ul>
73
+
74
+ <div id="seopress-analysis-tabs-1">';
75
+ //Word counters
76
+ if (isset($seopress_analysis_data['0']['words_counter']) || isset($seopress_analysis_data['0']['words_counter_unique'])) {
77
+ echo '<h3>'.__('Words counter','wp-seopress').'</h3>
78
+ <ul>
79
+ <li>'.$seopress_analysis_data['0']['words_counter'].' '.__('words found.','wp-seopress').'</li>
80
+ <li>'.$seopress_analysis_data['0']['words_counter_unique'].' '.__('unique words found.','wp-seopress').'</li>';
81
82
+ if ($seopress_analysis_data['0']['words_counter'] >= 299) {
83
+ echo '<li><span class="dashicons dashicons-yes"></span>'.__('Your content is composed of more than 300 words, which is the minimum for a post.','wp-seopress').'</li>';
84
+ } else {
85
+ echo '<li><span class="dashicons dashicons-no-alt"></span>'.__('Your content lacks words. Add a few more paragraphs!','wp-seopress').'</li>';
86
+ }
87
+ echo '</ul>';
88
+ }
89
90
+ //Post Title
91
+ echo '<h3>'.__('Post title','wp-seopress').'</h3>';
92
+ if (get_post_field('post_title', $post->ID) !='') {
93
+ if (!empty($seopress_analysis_data['0']['post_title']['matches'])) {
94
+ echo '<p><span class="dashicons dashicons-yes"></span>'.__('Target keywords were found in Post Title.','wp-seopress').'</p>';
95
+ echo '<ul>';
96
+ $target_kws_post_title = $seopress_analysis_data['0']['post_title']['matches'];
97
+ foreach ($target_kws_post_title as $key => $value) {
98
+ foreach ($value as $_key => $_value) {
99
+ $kw_count = count($_value);
100
+ }
101
+ $kw_name = $key;
102
+ echo '<li><span class="dashicons dashicons-minus"></span>'.sprintf(esc_html__('%s was found %d times.','wp-seopress'), $kw_name, $kw_count).'</li>';
103
+ }
104
+ echo '</ul>';
105
} else {
106
+ echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('None of your target keywords were found in the Post Title.','wp-seopress').'</p>';
107
}
108
+ } else {
109
+ echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('No post title set for this post!','wp-seopress').'</p>';
110
+ }
111
+
112
+ //H1
113
+ if (!empty($seopress_analysis_data['0']['h1']['matches'])) {
114
+ echo '<h3>'.__('H1 (Heading 1)','wp-seopress').'</h3>';
115
+ $count = count($seopress_analysis_data['0']['h1']['matches']);
116
+ echo '<p><span class="dashicons dashicons-no-alt"></span>'.sprintf(esc_html__('We found %d Heading 1 (H1) in your content.','wp-seopress'), $count).'</p>';
117
+ echo '<p>'.__('You should not use Heading 1 in your post content because your post title is already an H1. The rule is simple: 1 H1 for 1 web page.','wp-seopress').'</p>';
118
+ }
119
120
+ //H2
121
+ echo '<h3>'.__('H2 (Heading 2)','wp-seopress').'</h3>';
122
+ if (!empty($seopress_analysis_data['0']['h2']['matches'])) {
123
+ echo '<p><span class="dashicons dashicons-yes"></span>'.__('Target keywords were found in Heading 2 (H2).','wp-seopress').'</p>';
124
echo '<ul>';
125
+ $target_kws_h2 = $seopress_analysis_data['0']['h2']['matches'];
126
+ foreach ($target_kws_h2 as $key => $value) {
127
foreach ($value as $_key => $_value) {
128
$kw_count = count($_value);
129
}
132
}
133
echo '</ul>';
134
} else {
135
+ echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('None of your target keywords were found in Heading 2 (H2).','wp-seopress').'</p>';
136
}
137
138
+ //H3
139
+ echo '<h3>'.__('H3 (Heading 3)','wp-seopress').'</h3>';
140
+ if (!empty($seopress_analysis_data['0']['h3']['matches'])) {
141
+ echo '<p><span class="dashicons dashicons-yes"></span>'.__('Target keywords were found in Heading 3 (H3).','wp-seopress').'</p>';
142
echo '<ul>';
143
+ $target_kws_h3 = $seopress_analysis_data['0']['h3']['matches'];
144
+ foreach ($target_kws_h3 as $key => $value) {
145
foreach ($value as $_key => $_value) {
146
$kw_count = count($_value);
147
}
150
}
151
echo '</ul>';
152
} else {
153
+ echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('None of your target keywords were found in Heading 3 (H3).','wp-seopress').'</p>';
154
}
155
156
+ //Meta Title
157
+ echo '<h3>'.__('Meta title','wp-seopress').'</h3>';
158
+ if ($seopress_titles_title !='') {
159
+ if (!empty($seopress_analysis_data['0']['title']['matches'])) {
160
+ echo '<p><span class="dashicons dashicons-yes"></span>'.__('Target keywords were found in Meta Title.','wp-seopress').'</p>';
161
+ echo '<ul>';
162
+ $target_kws_title = $seopress_analysis_data['0']['title']['matches'];
163
+ foreach ($target_kws_title as $key => $value) {
164
+ foreach ($value as $_key => $_value) {
165
+ $kw_count = count($_value);
166
+ }
167
+ $kw_name = $key;
168
+ echo '<li><span class="dashicons dashicons-minus"></span>'.sprintf(esc_html__('%s was found %d times.','wp-seopress'), $kw_name, $kw_count).'</li>';
169
+ }
170
+ echo '</ul>';
171
+ } else {
172
+ echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('None of your target keywords were found in Meta Title.','wp-seopress').'</p>';
173
+ }
174
+
175
+ if (strlen($seopress_titles_title) > 65 ) {
176
+ echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('You custom title is too long.','wp-seopress').'</p>';
177
+ } else {
178
+ echo '<p><span class="dashicons dashicons-yes"></span>'.__('The length of your title is correct','wp-seopress').'</p>';
179
+ }
180
} else {
181
+ echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('No custom title set for this post.','wp-seopress').'</p>';
182
}
183
184
+ //Meta description
185
+ echo '<h3>'.__('Meta description','wp-seopress').'</h3>';
186
187
+ if ($seopress_titles_desc !='') {
188
+ if (!empty($seopress_analysis_data['0']['desc']['matches'])) {
189
+ echo '<p><span class="dashicons dashicons-yes"></span>'.__('Target keywords were found in Meta description.','wp-seopress').'</p>';
190
+ echo '<ul>';
191
+ $target_kws_desc = $seopress_analysis_data['0']['desc']['matches'];
192
+ foreach ($target_kws_desc as $key => $value) {
193
+ foreach ($value as $_key => $_value) {
194
+ $kw_count = count($_value);
195
+ }
196
+ $kw_name = $key;
197
+ echo '<li><span class="dashicons dashicons-minus"></span>'.sprintf(esc_html__('%s was found %d times.','wp-seopress'), $kw_name, $kw_count).'</li>';
198
}
199
+ echo '</ul>';
200
+ } else {
201
+ echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('None of your target keywords were found in Meta description.','wp-seopress').'</p>';
202
+ }
203
204
+ if (strlen($seopress_titles_desc) > 320 ) {
205
+ echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('You custom meta description is too long.','wp-seopress').'</p>';
206
+ } else {
207
+ echo '<p><span class="dashicons dashicons-yes"></span>'.__('The length of your meta description is correct','wp-seopress').'</p>';
208
+ }
209
} else {
210
+ echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('No custom meta description set for this post.','wp-seopress').'</p>';
211
}
212
213
+ echo '</div>
214
215
+ <div id="seopress-analysis-tabs-2">
216
+ <h3>'.__('Robots','wp-seopress').'</h3>';
217
218
+ //Robots
219
+ if ($seopress_robots_index =='yes') {
220
+ echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('noindex is on! Search engines can\'t index this page.','wp-seopress').'</p>';
221
+ } else {
222
+ echo '<p><span class="dashicons dashicons-yes"></span>'.__('noindex is off. Search engines will index this page.','wp-seopress').'</p>';
223
+ }
224
225
+ if ($seopress_robots_follow =='yes') {
226
+ echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('nofollow is on! Search engines can\'t follow your links on this page.','wp-seopress').'</p>';
227
+ } else {
228
+ echo '<p><span class="dashicons dashicons-yes"></span>'.__('nofollow is off. Search engines will follow links on this page.','wp-seopress').'</p>';
229
+ }
230
231
+ if ($seopress_robots_imageindex =='yes') {
232
+ echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('noimageindex is on! Google will not index your images on this page (but if someone makes a direct link to one of your image in this page, it will be indexed).','wp-seopress').'</p>';
233
+ } else {
234
+ echo '<p><span class="dashicons dashicons-yes"></span>'.__('noimageindex is off. Google will index your images on this page.','wp-seopress').'</p>';
235
+ }
236
237
+ if ($seopress_robots_archive =='yes') {
238
+ echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('noarchive is on! Search engines will not cache your page.','wp-seopress').'</p>';
239
+ } else {
240
+ echo '<p><span class="dashicons dashicons-yes"></span>'.__('noarchive is off. Search engines will probably cache your page.','wp-seopress').'</p>';
241
+ }
242
243
+ if ($seopress_robots_snippet =='yes') {
244
+ echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('nosnippet is on! Search engines will not display a snippet of this page in search results.','wp-seopress').'</p>';
245
+ } else {
246
+ echo '<p><span class="dashicons dashicons-yes"></span>'.__('nosnippet is off. Search engines will display a snippet of this page in search results.','wp-seopress').'</p>';
247
+ }
248
+ echo '</div>
249
+ <div id="seopress-analysis-tabs-3">
250
+ <div class="wrap-analysis-img">';
251
+ if (!empty($seopress_analysis_data['0']['img'])) {
252
+ $images = isset($seopress_analysis_data['0']['img']['images']) ? $seopress_analysis_data['0']['img']['images'] : NULL;
253
+ $post_thumbnail = isset($seopress_analysis_data['0']['img']['post_thumbnail']) ? $seopress_analysis_data['0']['img']['post_thumbnail'] : NULL;
254
255
+ $product_imgs = isset($seopress_analysis_data['0']['img']['product_img']) ? $seopress_analysis_data['0']['img']['product_img'] : NULL;
256
257
+ if ((isset($images) && !empty($images)) || (isset($post_thumbnail) && !empty($post_thumbnail))) {
258
+ echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('No alternative text found for these images. Alt tag are important for both SEO and accessibility.','wp-seopress').'</p>';
259
+
260
+ //Standard images & galleries
261
+ if (isset($images) && !empty($images)) {
262
+ echo '<h4>'.__('Post Content','wp-seopress').'</h4>';
263
+ echo '<ul class="attachments">';
264
+ foreach($images as $img) {
265
+ echo '<li class="attachment"><img src="'.$img.'"/></li>';
266
+ }
267
+ echo '</ul>';
268
+ }
269
270
+ //Post Thumbnail
271
+ if (isset($post_thumbnail) && !empty($post_thumbnail)) {
272
+ echo '<h4>'.__('Post Thumbnail','wp-seopress').'</h4>';
273
+ echo '<ul class="attachments">';
274
+ echo '<li class="attachment">'.$post_thumbnail.'</li>';
275
+ echo '</ul>';
276
+ }
277
278
+ //WooCommerce galleries
279
+ if (isset($product_imgs) && !empty($product_imgs)) {
280
+ echo '<h4>'.__('Product gallery','wp-seopress').'</h4>';
281
+ echo '<ul class="attachments">';
282
+ foreach ($product_imgs as $product_img) {
283
+ echo '<li class="attachment"><img src="'.$product_img.'"/></li>';
284
+ }
285
+ echo '</ul>';
286
+ }
287
+ } else {
288
+ echo '<p><span class="dashicons dashicons-yes"></span>'.__('All alternative tags are filled in. Good work!','wp-seopress').'</p>';
289
}
290
} else {
291
+ echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('We could not find any image in your content. Content with media is a plus for your SEO.','wp-seopress').'</p>';
292
}
293
+ echo '</div>
294
+ </div>
295
+ <div id="seopress-analysis-tabs-4">';
296
+ //Nofollow links
297
+ echo '<h3>'.__('NoFollow Links','wp-seopress').'</h3>';
298
+
299
+ if (!empty($seopress_analysis_data['0']['nofollow_links'])) {
300
+
301
+ $count = count($seopress_analysis_data['0']['nofollow_links']);
302
+
303
+ echo '<p>'.sprintf( esc_html__( 'We found %d links with nofollow attribute in your page. Do not overuse nofollow attribute in links. Below, the list:', 'wp-seopress' ), $count ).'</p>';
304
+ echo '<ul>';
305
+ foreach ($seopress_analysis_data['0']['nofollow_links'] as $link) {
306
+ echo '<li><span class="dashicons dashicons-minus"></span>'.$link.'</li>';
307
+ }
308
+ echo '</ul>';
309
} else {
310
+ echo '<p><span class="dashicons dashicons-yes"></span>'.__('This page doesn\'t have any nofollow links.','wp-seopress').'</p>';
311
}
312
+ echo '</div>';
313
+ }
314
+ echo '</div>
315
+ </div>';
inc/admin/admin-metaboxes-form.php CHANGED
@@ -34,39 +34,6 @@ if ( $pagenow == 'post-new.php' || $pagenow == 'post.php' ) {
34
$current_id = $tag->term_id;
35
$origin = 'term';
36
$data_tax = $tag->taxonomy;
37
- // function seopress_titles_title($seopress_titles_title) {
38
- // global $tag;
39
- // if ($seopress_titles_title !='') {
40
- // return $seopress_titles_title;
41
- // } elseif ($tag) {
42
- // return $tag->name.' - '.get_bloginfo('name');
43
- // } else {
44
- // return get_the_title().' - '.get_bloginfo('name');
45
- // }
46
- // }
47
-
48
- // function seopress_titles_single_desc_option() {
49
- // global $post;
50
- // $seopress_get_current_cpt = get_post_type($post);
51
-
52
- // $seopress_titles_single_desc_option = get_option("seopress_titles_option_name");
53
- // if ( ! empty ( $seopress_titles_single_desc_option ) ) {
54
- // foreach ($seopress_titles_single_desc_option as $key => $seopress_titles_single_desc_value)
55
- // $options[$key] = $seopress_titles_single_desc_value;
56
- // if (isset($seopress_titles_single_desc_option['seopress_titles_single_titles'][$seopress_get_current_cpt]['description'])) {
57
- // return $seopress_titles_single_desc_option['seopress_titles_single_titles'][$seopress_get_current_cpt]['description'];
58
- // }
59
- // }
60
- // }
61
-
62
- // function seopress_titles_desc($seopress_titles_desc) {
63
- // global $tag;
64
- // if ($seopress_titles_desc !='') {
65
- // return $seopress_titles_desc;
66
- // } elseif ($tag) {
67
- // return $tag->description;
68
- // }
69
- // }
70
}
71
72
function seopress_redirections_value($seopress_redirections_value) {
@@ -96,7 +63,8 @@ echo '<div id="seopress-tabs" data_id="'.$current_id.'" data_origin="'.$origin.'
96
if (seopress_get_toggle_news_option() =='1') {
97
if ( $pagenow == 'post-new.php' || $pagenow == 'post.php' ) {
98
if ("seopress_404" != $typenow) {
99
- echo '<li><a href="#tabs-5"><span class="dashicons dashicons-admin-post"></span>'. __( 'Google News', 'wp-seopress-pro' ) .'</a></li>';
100
}
101
}
102
}
@@ -114,7 +82,7 @@ echo '<div id="seopress-tabs" data_id="'.$current_id.'" data_origin="'.$origin.'
114
}
115
}
116
echo '<div class="box-left">
117
- <p>
118
<label for="seopress_titles_title_meta">'. __( 'Title', 'wp-seopress' ) .'</label>
119
<input id="seopress_titles_title_meta" type="text" name="seopress_titles_title" placeholder="'.esc_html__('Enter your title','wp-seopress').'" aria-label="'.__('Title','wp-seopress').'" value="'.$seopress_titles_title.'" />
120
</p>
@@ -122,7 +90,7 @@ echo '<div id="seopress-tabs" data_id="'.$current_id.'" data_origin="'.$origin.'
122
<div id="seopress_titles_title_counters"></div>
123
'.__('(maximum recommended limit)','wp-seopress').'
124
</div>
125
- <p>
126
<label for="seopress_titles_desc_meta">'. __( 'Meta description', 'wp-seopress' ) .'</label>
127
<textarea id="seopress_titles_desc_meta" style="width:100%" rows="8" name="seopress_titles_desc" placeholder="'.esc_html__('Enter your meta description','wp-seopress').'" aria-label="'.__('Meta description','wp-seopress').'" value="'.$seopress_titles_desc.'">'.$seopress_titles_desc.'</textarea>
128
</p>
@@ -219,8 +187,8 @@ echo '<div class="snippet-description">...</div>
219
</p>
220
<p>
221
<label for="seopress_social_fb_img_meta">'. __( 'Facebook Thumbnail', 'wp-seopress' ) .'</label>
222
- <span class="advise">'. __('Minimum size: 200x200px', 'wp-seopress') .'</span>
223
<input id="seopress_social_fb_img_meta" type="text" name="seopress_social_fb_img" placeholder="'.esc_html__('Select your default thumbnail','wp-seopress').'" aria-label="'.__('Facebook Thumbnail','wp-seopress').'" value="'.$seopress_social_fb_img.'" />
224
<input id="seopress_social_fb_img_upload" class="button" type="button" value="'.__('Upload an Image','wp-seopress').'" />
225
</p>
226
<br/>
@@ -237,8 +205,8 @@ echo '<div class="snippet-description">...</div>
237
</p>
238
<p>
239
<label for="seopress_social_twitter_img_meta">'. __( 'Twitter Thumbnail', 'wp-seopress' ) .'</label>
240
- <span class="advise">'. __('Minimum size: 160x160px', 'wp-seopress') .'</span>
241
<input id="seopress_social_twitter_img_meta" type="text" name="seopress_social_twitter_img" placeholder="'.esc_html__('Select your default thumbnail','wp-seopress').'" value="'.$seopress_social_twitter_img.'" />
242
<input id="seopress_social_twitter_img_upload" class="button" type="button" aria-label="'.__('Twitter Thumbnail','wp-seopress').'" value="'.__('Upload an Image','wp-seopress').'" />
243
</p>
244
</div>';
@@ -324,6 +292,110 @@ You haven\'t used standout on your own articles more than seven times in the pas
324
<input id="seopress_news_keyboard_meta" type="text" name="seopress_news_keyboard" placeholder="'.esc_html__('Enter your Google News Keywords','wp-seopress').'" aria-label="'.__('Google News Keywords <em>(max recommended limit: 12)</em>','wp-seopress').'" value="'.$seopress_news_keyboard.'" />
325
</p>
326
</div>';
327
}
328
}
329
}
34
$current_id = $tag->term_id;
35
$origin = 'term';
36
$data_tax = $tag->taxonomy;
37
}
38
39
function seopress_redirections_value($seopress_redirections_value) {
63
if (seopress_get_toggle_news_option() =='1') {
64
if ( $pagenow == 'post-new.php' || $pagenow == 'post.php' ) {
65
if ("seopress_404" != $typenow) {
66
+ echo '<li><a href="#tabs-5"><span class="dashicons dashicons-admin-post"></span>'. __( 'Google News', 'wp-seopress' ) .'</a></li>';
67
+ echo '<li><a href="#tabs-6"><span class="dashicons dashicons-format-video"></span>'. __( 'Video Sitemap', 'wp-seopress' ) .'</a></li>';
68
}
69
}
70
}
82
}
83
}
84
echo '<div class="box-left">
85
+ <p style="margin-bottom:0">
86
<label for="seopress_titles_title_meta">'. __( 'Title', 'wp-seopress' ) .'</label>
87
<input id="seopress_titles_title_meta" type="text" name="seopress_titles_title" placeholder="'.esc_html__('Enter your title','wp-seopress').'" aria-label="'.__('Title','wp-seopress').'" value="'.$seopress_titles_title.'" />
88
</p>
90
<div id="seopress_titles_title_counters"></div>
91
'.__('(maximum recommended limit)','wp-seopress').'
92
</div>
93
+ <p style="margin-bottom:0">
94
<label for="seopress_titles_desc_meta">'. __( 'Meta description', 'wp-seopress' ) .'</label>
95
<textarea id="seopress_titles_desc_meta" style="width:100%" rows="8" name="seopress_titles_desc" placeholder="'.esc_html__('Enter your meta description','wp-seopress').'" aria-label="'.__('Meta description','wp-seopress').'" value="'.$seopress_titles_desc.'">'.$seopress_titles_desc.'</textarea>
96
</p>
187
</p>
188
<p>
189
<label for="seopress_social_fb_img_meta">'. __( 'Facebook Thumbnail', 'wp-seopress' ) .'</label>
190
<input id="seopress_social_fb_img_meta" type="text" name="seopress_social_fb_img" placeholder="'.esc_html__('Select your default thumbnail','wp-seopress').'" aria-label="'.__('Facebook Thumbnail','wp-seopress').'" value="'.$seopress_social_fb_img.'" />
191
+ <span class="advise">'.__('Minimum size: 200x200px, ideal ratio 1.91:1, 8mb max.', 'wp-seopress').'</span>
192
<input id="seopress_social_fb_img_upload" class="button" type="button" value="'.__('Upload an Image','wp-seopress').'" />
193
</p>
194
<br/>
205
</p>
206
<p>
207
<label for="seopress_social_twitter_img_meta">'. __( 'Twitter Thumbnail', 'wp-seopress' ) .'</label>
208
<input id="seopress_social_twitter_img_meta" type="text" name="seopress_social_twitter_img" placeholder="'.esc_html__('Select your default thumbnail','wp-seopress').'" value="'.$seopress_social_twitter_img.'" />
209
+ <span class="advise">'. __('Minimum size: 144x144px (300x157px with large card enabled), ideal ratio 1:1 (2:1 with large card), 5mb max.', 'wp-seopress') .'</span>
210
<input id="seopress_social_twitter_img_upload" class="button" type="button" aria-label="'.__('Twitter Thumbnail','wp-seopress').'" value="'.__('Upload an Image','wp-seopress').'" />
211
</p>
212
</div>';
292
<input id="seopress_news_keyboard_meta" type="text" name="seopress_news_keyboard" placeholder="'.esc_html__('Enter your Google News Keywords','wp-seopress').'" aria-label="'.__('Google News Keywords <em>(max recommended limit: 12)</em>','wp-seopress').'" value="'.$seopress_news_keyboard.'" />
293
</p>
294
</div>';
295
+
296
+ //Init $seopress_video array if empty
297
+ if (empty($seopress_video)) {
298
+ $seopress_video = array('0' => array(''));
299
+ }
300
+
301
+ $count = $seopress_video[0];
302
+ end($count);
303
+ $total = key($count);
304
+
305
+ echo '<div id="tabs-6">
306
+ <p>
307
+ <label for="seopress_video_disabled_meta" id="seopress_video_disabled">
308
+ <input type="checkbox" name="seopress_video_disabled" id="seopress_video_disabled_meta" value="yes" '. checked( $seopress_video_disabled, 'yes', false ) .' />
309
+ '. __( 'Exclude this post from Video Sitemap?', 'wp-seopress' ) .'
310
+ </label>
311
+ <span class="advise">'. __('If your post is set to noindex, it will be automatically excluded from the sitemap.', 'wp-seopress') .'</span>
312
+ </p>
313
+ <div id="wrap-videos" data-count="'.$total.'">';
314
+ foreach ($seopress_video[0] as $key => $value) {
315
+
316
+ $check_url = isset($seopress_video[0][$key]["url"]) ? $seopress_video[0][$key]["url"] : NULL;
317
+ $check_internal_video = isset($seopress_video[0][$key]["internal_video"]) ? $seopress_video[0][$key]["internal_video"] : NULL;
318
+ $check_title = isset($seopress_video[0][$key]["title"]) ? $seopress_video[0][$key]["title"] : NULL;
319
+ $check_desc = isset($seopress_video[0][$key]["desc"]) ? $seopress_video[0][$key]["desc"] : NULL;
320
+ $check_thumbnail = isset($seopress_video[0][$key]["thumbnail"]) ? $seopress_video[0][$key]["thumbnail"] : NULL;
321
+ $check_duration = isset($seopress_video[0][$key]["duration"]) ? $seopress_video[0][$key]["duration"] : NULL;
322
+ $check_rating = isset($seopress_video[0][$key]["rating"]) ? $seopress_video[0][$key]["rating"] : NULL;
323
+ $check_view_count = isset($seopress_video[0][$key]["view_count"]) ? $seopress_video[0][$key]["view_count"] : NULL;
324
+ $check_view_count = isset($seopress_video[0][$key]["view_count"]) ? $seopress_video[0][$key]["view_count"] : NULL;
325
+ $check_tag = isset($seopress_video[0][$key]["tag"]) ? $seopress_video[0][$key]["tag"] : NULL;
326
+ $check_cat = isset($seopress_video[0][$key]["cat"]) ? $seopress_video[0][$key]["cat"] : NULL;
327
+ $check_family_friendly = isset($seopress_video[0][$key]["family_friendly"]) ? $seopress_video[0][$key]["family_friendly"] : NULL;
328
+
329
+ echo '<div class="video">
330
+ <h3 class="accordion-section-title" tabindex="0">'.__('Video ','wp-seopress').$check_title.'</h3>
331
+ <div class="accordion-section-content">
332
+ <div class="inside">
333
+ <p>
334
+ <label for="seopress_video['.$key.'][url_meta]">'. __( 'Video URL (required)', 'wp-seopress' ) .'</label>
335
+ <input id="seopress_video['.$key.'][url_meta]" type="text" name="seopress_video['.$key.'][url]" placeholder="'.esc_html__('Enter your video URL','wp-seopress').'" aria-label="'.__('Video URL','wp-seopress').'" value="'.$check_url.'" />
336
+ </p>
337
+ <p class="internal_video">
338
+ <label for="seopress_video['.$key.'][internal_video_meta]" id="seopress_video['.$key.'][internal_video]">
339
+ <input type="checkbox" name="seopress_video['.$key.'][internal_video]" id="seopress_video['.$key.'][internal_video_meta]" value="yes" '. checked( $check_internal_video, 'yes', false ) .' />
340
+ '. __( 'NOT an external video (eg: video hosting on YouTube, Vimeo, Wistia...)? Check this if your video is hosting on this server.', 'wp-seopress' ) .'
341
+ </label>
342
+ </p>
343
+ <p>
344
+ <label for="seopress_video['.$key.'][title_meta]">'. __( 'Video Title (required)', 'wp-seopress' ) .'</label>
345
+ <input id="seopress_video['.$key.'][title_meta]" type="text" name="seopress_video['.$key.'][title]" placeholder="'.esc_html__('Enter your video title','wp-seopress').'" aria-label="'.__('Video title','wp-seopress').'" value="'.$check_title.'" />
346
+ <span class="advise">'. __('Default: title tag, if not available, post title.', 'wp-seopress') .'</span>
347
+ </p>
348
+ <p>
349
+ <label for="seopress_video['.$key.'][desc_meta]">'. __( 'Video Description (required)', 'wp-seopress' ) .'</label>
350
+ <textarea id="seopress_video['.$key.'][desc_meta]" name="seopress_video['.$key.'][desc]" placeholder="'.esc_html__('Enter your video description','wp-seopress').'" aria-label="'.__('Video description','wp-seopress').'" value="'.$check_desc.'">'.$check_desc.'</textarea>
351
+ <span class="advise">'. __('2048 characters max., default: meta description, if not available, beginning of the post content.', 'wp-seopress') .'</span>
352
+ </p>
353
+ <p>
354
+ <label for="seopress_video['.$key.'][thumbnail_meta]">'. __( 'Video Thumbnail (required)', 'wp-seopress' ) .'</label>
355
+ <input id="seopress_video['.$key.'][thumbnail_meta]" class="seopress_video_thumbnail_meta" type="text" name="seopress_video['.$key.'][thumbnail]" placeholder="'.esc_html__('Select your video thumbnail','wp-seopress').'" value="'.$check_thumbnail.'" />
356
+ <input class="button seopress_video_thumbnail_upload" type="button" aria-label="'.__('Video Thumbnail','wp-seopress').'" value="'.__('Upload an Image','wp-seopress').'" />
357
+ <span class="advise">'. __('Minimum size: 160x90px (1920x1080 max), JPG, PNG or GIF formats. Default: your post featured image.', 'wp-seopress') .'</span>
358
+ </p>
359
+ <p>
360
+ <label for="seopress_video['.$key.'][duration_meta]">'. __( 'Video Duration (recommended)', 'wp-seopress' ) .'</label>
361
+ <input id="seopress_video['.$key.'][duration_meta]" type="number" step="1" min="0" max="28800" name="seopress_video['.$key.'][duration]" placeholder="'.esc_html__('Duration in seconds','wp-seopress').'" aria-label="'.__('Video duration','wp-seopress').'" value="'.$check_duration.'" />
362
+ <span class="advise">'. __('The duration of the video in seconds. Value must be between 0 and 28800 (8 hours).', 'wp-seopress') .'</span>
363
+ </p>
364
+ <p>
365
+ <label for="seopress_video['.$key.'][rating_meta]">'. __( 'Video Rating', 'wp-seopress' ) .'</label>
366
+ <input id="seopress_video['.$key.'][rating_meta]" type="number" step="0.1" min="0" max="5" name="seopress_video['.$key.'][rating]" placeholder="'.esc_html__('Video rating','wp-seopress').'" aria-label="'.__('Video rating','wp-seopress').'" value="'.$check_rating.'" />
367
+ <span class="advise">'. __('Allowed values are float numbers in the range 0.0 to 5.0.', 'wp-seopress') .'</span>
368
+ </p>
369
+ <p>
370
+ <label for="seopress_video['.$key.'][view_count_meta]">'. __( 'View count', 'wp-seopress' ) .'</label>
371
+ <input id="seopress_video['.$key.'][view_count_meta]" type="number" name="seopress_video['.$key.'][view_count]" placeholder="'.esc_html__('Number of views','wp-seopress').'" aria-label="'.__('View count','wp-seopress').'" value="'.$check_view_count.'" />
372
+ </p>
373
+ <p>
374
+ <label for="seopress_video['.$key.'][tag_meta]">'. __( 'Video tags', 'wp-seopress' ) .'</label>
375
+ <input id="seopress_video['.$key.'][tag_meta]" type="text" name="seopress_video['.$key.'][tag]" placeholder="'.esc_html__('Enter your video tags','wp-seopress').'" aria-label="'.__('Video tags','wp-seopress').'" value="'.$check_tag.'" />
376
+ <span class="advise">'. __('32 tags max., separate tags with commas. Default: target keywords + post tags if available.', 'wp-seopress') .'</span>
377
+ </p>
378
+ <p>
379
+ <label for="seopress_video['.$key.'][cat_meta]">'. __( 'Video categories', 'wp-seopress' ) .'</label>
380
+ <input id="seopress_video['.$key.'][cat_meta]" type="text" name="seopress_video['.$key.'][cat]" placeholder="'.esc_html__('Enter your video categories','wp-seopress').'" aria-label="'.__('Video categories','wp-seopress').'" value="'.$check_cat.'" />
381
+ <span class="advise">'. __('256 characters max., usually a video will belong to a single category, separate categories with commas. Default: first post category if available.', 'wp-seopress') .'</span>
382
+ </p>
383
+ <p class="family-friendly">
384
+ <label for="seopress_video['.$key.'][family_friendly_meta]" id="seopress_video['.$key.'][family_friendly]">
385
+ <input type="checkbox" name="seopress_video['.$key.'][family_friendly]" id="seopress_video['.$key.'][family_friendly_meta]" value="yes" '. checked( $check_family_friendly, 'yes', false ) .' />
386
+ '. __( 'NOT family friendly?', 'wp-seopress' ) .'
387
+ </label>
388
+ <span class="advise">'. __('The video will be available only to users with SafeSearch turned off.', 'wp-seopress') .'</span>
389
+ </p>
390
+ <p><a href="#" class="remove-video button">'.__('Remove video','wp-seopress').'</a></p>
391
+ </div>
392
+ </div>
393
+ </div>
394
+ ';
395
+ }
396
+ echo '</div>
397
+ <p><a href="#" id="add-video" class="add-video button button-primary">'.__('Add video','wp-seopress').'</a></p>
398
+ </div>';
399
}
400
}
401
}
inc/admin/admin-metaboxes.php CHANGED
@@ -53,9 +53,10 @@ function seopress_display_seo_metaboxe() {
53
}
54
55
function seopress_cpt($post){
56
wp_enqueue_script( 'seopress-cpt-tabs-js', plugins_url( 'assets/js/seopress-tabs2.js', dirname(dirname(__FILE__ ))), array( 'jquery-ui-tabs' ));
57
58
- wp_enqueue_script( 'seopress-cpt-counters-js', plugins_url( 'assets/js/seopress-counters.js', dirname(dirname( __FILE__ ))), array( 'jquery' ), '1.1' );
59
60
$seopress_real_preview = array(
61
'seopress_nonce' => wp_create_nonce('seopress_real_preview_nonce'),
@@ -88,10 +89,14 @@ function seopress_display_seo_metaboxe() {
88
$seopress_redirections_enabled = get_post_meta($post->ID,'_seopress_redirections_enabled',true);
89
$seopress_redirections_type = get_post_meta($post->ID,'_seopress_redirections_type',true);
90
$seopress_redirections_value = get_post_meta($post->ID,'_seopress_redirections_value',true);
91
- $seopress_news_disabled = get_post_meta($post->ID,'_seopress_news_disabled',true);
92
- $seopress_news_standout = get_post_meta($post->ID,'_seopress_news_standout',true);
93
- $seopress_news_genres = get_post_meta($post->ID,'_seopress_news_genres',true);
94
- $seopress_news_keyboard = get_post_meta($post->ID,'_seopress_news_keyboard',true);
95
96
require_once ( dirname( __FILE__ ) . '/admin-metaboxes-form.php'); //Metaboxe HTML
97
}
@@ -172,21 +177,31 @@ function seopress_display_seo_metaboxe() {
172
} else {
173
delete_post_meta( $post_id, '_seopress_redirections_enabled', '' );
174
}
175
- if( isset( $_POST[ 'seopress_news_disabled' ] ) ) {
176
- update_post_meta( $post_id, '_seopress_news_disabled', 'yes' );
177
- } else {
178
- delete_post_meta( $post_id, '_seopress_news_disabled', '' );
179
- }
180
- if( isset( $_POST[ 'seopress_news_standout' ] ) ) {
181
- update_post_meta( $post_id, '_seopress_news_standout', 'yes' );
182
- } else {
183
- delete_post_meta( $post_id, '_seopress_news_standout', '' );
184
- }
185
- if(isset($_POST['seopress_news_genres'])){
186
- update_post_meta($post_id, '_seopress_news_genres', $_POST['seopress_news_genres']);
187
- }
188
- if(isset($_POST['seopress_news_keyboard'])){
189
- update_post_meta($post_id, '_seopress_news_keyboard', esc_html($_POST['seopress_news_keyboard']));
190
}
191
}
192
}
53
}
54
55
function seopress_cpt($post){
56
+ wp_enqueue_script('jquery-ui-accordion');
57
wp_enqueue_script( 'seopress-cpt-tabs-js', plugins_url( 'assets/js/seopress-tabs2.js', dirname(dirname(__FILE__ ))), array( 'jquery-ui-tabs' ));
58
59
+ wp_enqueue_script( 'seopress-cpt-counters-js', plugins_url( 'assets/js/seopress-counters.js', dirname(dirname( __FILE__ ))), array( 'jquery', 'jquery-ui-accordion' ), '1.1' );
60
61
$seopress_real_preview = array(
62
'seopress_nonce' => wp_create_nonce('seopress_real_preview_nonce'),
89
$seopress_redirections_enabled = get_post_meta($post->ID,'_seopress_redirections_enabled',true);
90
$seopress_redirections_type = get_post_meta($post->ID,'_seopress_redirections_type',true);
91
$seopress_redirections_value = get_post_meta($post->ID,'_seopress_redirections_value',true);
92
+ if (is_plugin_active('wp-seopress-pro/seopress-pro.php')) {
93
+ $seopress_news_disabled = get_post_meta($post->ID,'_seopress_news_disabled',true);
94
+ $seopress_news_standout = get_post_meta($post->ID,'_seopress_news_standout',true);
95
+ $seopress_news_genres = get_post_meta($post->ID,'_seopress_news_genres',true);
96
+ $seopress_news_keyboard = get_post_meta($post->ID,'_seopress_news_keyboard',true);
97
+ $seopress_video_disabled = get_post_meta($post->ID,'_seopress_video_disabled',true);
98
+ $seopress_video = get_post_meta($post->ID,'_seopress_video');
99
+ }
100
101
require_once ( dirname( __FILE__ ) . '/admin-metaboxes-form.php'); //Metaboxe HTML
102
}
177
} else {
178
delete_post_meta( $post_id, '_seopress_redirections_enabled', '' );
179
}
180
+ if (is_plugin_active('wp-seopress-pro/seopress-pro.php')) {
181
+ if( isset( $_POST[ 'seopress_news_disabled' ] ) ) {
182
+ update_post_meta( $post_id, '_seopress_news_disabled', 'yes' );
183
+ } else {
184
+ delete_post_meta( $post_id, '_seopress_news_disabled', '' );
185
+ }
186
+ if( isset( $_POST[ 'seopress_news_standout' ] ) ) {
187
+ update_post_meta( $post_id, '_seopress_news_standout', 'yes' );
188
+ } else {
189
+ delete_post_meta( $post_id, '_seopress_news_standout', '' );
190
+ }
191
+ if(isset($_POST['seopress_news_genres'])){
192
+ update_post_meta($post_id, '_seopress_news_genres', $_POST['seopress_news_genres']);
193
+ }
194
+ if(isset($_POST['seopress_news_keyboard'])){
195
+ update_post_meta($post_id, '_seopress_news_keyboard', esc_html($_POST['seopress_news_keyboard']));
196
+ }
197
+ if( isset( $_POST[ 'seopress_video_disabled' ] ) ) {
198
+ update_post_meta( $post_id, '_seopress_video_disabled', 'yes' );
199
+ } else {
200
+ delete_post_meta( $post_id, '_seopress_video_disabled', '' );
201
+ }
202
+ if(isset($_POST['seopress_video'])){
203
+ update_post_meta($post_id, '_seopress_video', $_POST['seopress_video']);
204
+ }
205
}
206
}
207
}
inc/admin/admin.php CHANGED
@@ -943,6 +943,31 @@ class seopress_options
943
<?php }
944
}
945
?>
946
<?php
947
if(get_option('page_comments') =='1') {
948
function seopress_get_hidden_notices_divide_comments_option() {
@@ -2213,6 +2238,16 @@ class seopress_options
2213
'seopress-settings-admin-xml-sitemap-general', // Page
2214
'seopress_setting_section_xml_sitemap_general' // Section
2215
);
2216
2217
add_settings_field(
2218
'seopress_xml_sitemap_html_enable', // ID
@@ -3939,7 +3974,7 @@ class seopress_options
3939
if ('1' == $check) echo 'checked="yes"';
3940
echo ' value="1"/>';
3941
3942
- echo '<label for="seopress_xml_sitemap_img_enable">'. __( 'Enable Image Sitemaps', 'wp-seopress' ) .'</label>';
3943
3944
if (function_exists('seopress_get_locale')) {
3945
if (seopress_get_locale() =='fr') {
@@ -3955,6 +3990,33 @@ class seopress_options
3955
esc_attr( $this->options['seopress_xml_sitemap_img_enable']);
3956
}
3957
}
3958
3959
public function seopress_xml_sitemap_html_enable_callback()
3960
{
@@ -4392,6 +4454,8 @@ class seopress_options
4392
echo '<input id="seopress_social_fb_img_meta" type="text" value="'.$options_set.'" name="seopress_social_option_name[seopress_social_facebook_img]" aria-label="'.__('Select a default image','wp-seopress').'" placeholder="'.esc_html__('Select your default thumbnail','wp-seopress').'" />
4393
4394
<input id="seopress_social_fb_img_upload" class="button" type="button" value="'.__('Upload an Image','wp-seopress').'" />';
4395
4396
if (isset($this->options['seopress_social_facebook_img'])) {
4397
esc_attr( $this->options['seopress_social_facebook_img']);
@@ -4481,6 +4545,8 @@ class seopress_options
4481
echo '<input id="seopress_social_twitter_img_meta" type="text" value="'.$options_set.'" name="seopress_social_option_name[seopress_social_twitter_card_img]" aria-label="'.__('Default Twitter Image','wp-seopress').'" placeholder="'.esc_html__('Select your default thumbnail','wp-seopress').'" />
4482
4483
<input id="seopress_social_twitter_img_upload" class="button" type="button" value="'.__('Upload an Image','wp-seopress').'" />';
4484
4485
if (isset($this->options['seopress_social_twitter_card_img'])) {
4486
esc_attr( $this->options['seopress_social_twitter_card_img']);
943
<?php }
944
}
945
?>
946
+ <?php
947
+ function seopress_get_hidden_notices_review_option() {
948
+ $seopress_get_hidden_notices_review_option = get_option("seopress_notices");
949
+ if ( ! empty ( $seopress_get_hidden_notices_review_option ) ) {
950
+ foreach ($seopress_get_hidden_notices_review_option as $key => $seopress_get_hidden_notices_review_value)
951
+ $options[$key] = $seopress_get_hidden_notices_review_value;
952
+ if (isset($seopress_get_hidden_notices_review_option['notice-review'])) {
953
+ return $seopress_get_hidden_notices_review_option['notice-review'];
954
+ }
955
+ }
956
+ }
957
+ if(seopress_get_hidden_notices_review_option() =='1') {
958
+ //do nothing
959
+ } else { ?>
960
+ <div id="notice-review-alert" class="seopress-alert deleteable">
961
+ <p>
962
+ <span class="dashicons dashicons-warning"></span>
963
+ <?php _e('You like SEOPress? Please help us by rating us 5 stars!','wp-seopress'); ?>
964
+ </p>
965
+ <a class="button-primary" href="http://wordpress.org/support/view/plugin-reviews/wp-seopress?rate=5#postform" target="_blank"><?php _e('Rate us!','wp-seopress'); ?></a>
966
+ <span name="notice-review" id="notice-review" class="dashicons dashicons-trash remove-notice" data-notice="notice-review"></span>
967
+ </div>
968
+ <?php }
969
+
970
+ ?>
971
<?php
972
if(get_option('page_comments') =='1') {
973
function seopress_get_hidden_notices_divide_comments_option() {
2238
'seopress-settings-admin-xml-sitemap-general', // Page
2239
'seopress_setting_section_xml_sitemap_general' // Section
2240
);
2241
+
2242
+ if (is_plugin_active('wp-seopress-pro/seopress-pro.php')) {
2243
+ add_settings_field(
2244
+ 'seopress_xml_sitemap_video_enable_callback', // ID
2245
+ __("Enable XML Video Sitemaps","wp-seopress"), // Title
2246
+ array( $this, 'seopress_xml_sitemap_video_enable_callback' ), // Callback
2247
+ 'seopress-settings-admin-xml-sitemap-general', // Page
2248
+ 'seopress_setting_section_xml_sitemap_general' // Section
2249
+ );
2250
+ }
2251
2252
add_settings_field(
2253
'seopress_xml_sitemap_html_enable', // ID
3974
if ('1' == $check) echo 'checked="yes"';
3975
echo ' value="1"/>';
3976
3977
+ echo '<label for="seopress_xml_sitemap_img_enable">'. __( 'Enable Image Sitemaps (standard images, image galleries, featured image, WooCommerce product images)', 'wp-seopress' ) .'</label>';
3978
3979
if (function_exists('seopress_get_locale')) {
3980
if (seopress_get_locale() =='fr') {
3990
esc_attr( $this->options['seopress_xml_sitemap_img_enable']);
3991
}
3992
}
3993
+
3994
+ public function seopress_xml_sitemap_video_enable_callback()
3995
+ {
3996
+ $options = get_option( 'seopress_xml_sitemap_option_name' );
3997
+
3998
+ $check = isset($options['seopress_xml_sitemap_video_enable']);
3999
+
4000
+ echo '<input id="seopress_xml_sitemap_video_enable" name="seopress_xml_sitemap_option_name[seopress_xml_sitemap_video_enable]" type="checkbox"';
4001
+ if ('1' == $check) echo 'checked="yes"';
4002
+ echo ' value="1"/>';
4003
+
4004
+ echo '<label for="seopress_xml_sitemap_video_enable">'. __( 'Enable Video Sitemaps', 'wp-seopress' ) .'</label>';
4005
+
4006
+ // if (function_exists('seopress_get_locale')) {
4007
+ // if (seopress_get_locale() =='fr') {
4008
+ // $seopress_docs_link['support']['sitemaps']['video'] = 'https://www.seopress.org/fr/support/guides/activer-sitemap-xml-images/?utm_source=plugin&utm_medium=wp-admin&utm_campaign=seopress';
4009
+ // } else {
4010
+ // $seopress_docs_link['support']['sitemaps']['video'] = 'https://www.seopress.org/support/guides/enable-xml-image-sitemaps/?utm_source=plugin&utm_medium=wp-admin&utm_campaign=seopress';
4011
+ // }
4012
+ // }
4013
+
4014
+ // echo '<a href="'.$seopress_docs_link['support']['sitemaps']['video'].'" target="_blank" class="seopress-doc"><span class="dashicons dashicons-editor-help"></span><span class="screen-reader-text">'. __('Guide to enable XML video sitemaps - new window','wp-seopress').'</span></a>';
4015
+
4016
+ if (isset($this->options['seopress_xml_sitemap_video_enable'])) {
4017
+ esc_attr( $this->options['seopress_xml_sitemap_video_enable']);
4018
+ }
4019
+ }
4020
4021
public function seopress_xml_sitemap_html_enable_callback()
4022
{
4454
echo '<input id="seopress_social_fb_img_meta" type="text" value="'.$options_set.'" name="seopress_social_option_name[seopress_social_facebook_img]" aria-label="'.__('Select a default image','wp-seopress').'" placeholder="'.esc_html__('Select your default thumbnail','wp-seopress').'" />
4455
4456
<input id="seopress_social_fb_img_upload" class="button" type="button" value="'.__('Upload an Image','wp-seopress').'" />';
4457
+
4458
+ echo '<p class="description">'.__('Minimum size: 200x200px, ideal ratio 1.91:1, 8mb max.', 'wp-seopress').'</p>';
4459
4460
if (isset($this->options['seopress_social_facebook_img'])) {
4461
esc_attr( $this->options['seopress_social_facebook_img']);
4545
echo '<input id="seopress_social_twitter_img_meta" type="text" value="'.$options_set.'" name="seopress_social_option_name[seopress_social_twitter_card_img]" aria-label="'.__('Default Twitter Image','wp-seopress').'" placeholder="'.esc_html__('Select your default thumbnail','wp-seopress').'" />
4546
4547
<input id="seopress_social_twitter_img_upload" class="button" type="button" value="'.__('Upload an Image','wp-seopress').'" />';
4548
+
4549
+ echo '<p class="description">'.__('Minimum size: 144x144px (300x157px with large card enabled), ideal ratio 1:1 (2:1 with large card), 5mb max.', 'wp-seopress').'</p>';
4550
4551
if (isset($this->options['seopress_social_twitter_card_img'])) {
4552
esc_attr( $this->options['seopress_social_twitter_card_img']);
inc/admin/ajax.php CHANGED
@@ -61,7 +61,49 @@ function seopress_do_real_preview() {
61
$meta_description = $xpath->query('//meta[@name="description"]/@content');
62
63
foreach ($meta_description as $key=>$mdesc) {
64
- $data['meta_desc'] = esc_attr(stripslashes_deep(wp_filter_nohtml_kses($mdesc->nodeValue)));
65
}
66
}
67
}
61
$meta_description = $xpath->query('//meta[@name="description"]/@content');
62
63
foreach ($meta_description as $key=>$mdesc) {
64
+ $data['meta_desc'] = esc_attr(stripslashes_deep(wp_filter_nohtml_kses(wp_strip_all_tags($mdesc->nodeValue))));
65
+ }
66
+
67
+ //OG:title
68
+ $og_title = $xpath->query('//meta[@property="og:title"]/@content');
69
+
70
+ foreach ($og_title as $key=>$mogtitle) {
71
+ $data['og_title'] = esc_attr(stripslashes_deep(wp_filter_nohtml_kses($mogtitle->nodeValue)));
72
+ }
73
+
74
+ //OG:description
75
+ $og_desc = $xpath->query('//meta[@property="og:description"]/@content');
76
+
77
+ foreach ($og_desc as $key=>$mogdesc) {
78
+ $data['og_desc'] = esc_attr(stripslashes_deep(wp_filter_nohtml_kses($mogdesc->nodeValue)));
79
+ }
80
+
81
+ //OG:image
82
+ $og_img = $xpath->query('//meta[@property="og:image"]/@content');
83
+
84
+ foreach ($og_img as $key=>$mogimg) {
85
+ $data['og_img'] = esc_attr(stripslashes_deep(wp_filter_nohtml_kses($mogimg->nodeValue)));
86
+ }
87
+
88
+ //Twitter:title
89
+ $tw_title = $xpath->query('//meta[@name="twitter:title"]/@content');
90
+
91
+ foreach ($tw_title as $key=>$mtwtitle) {
92
+ $data['tw_title'] = esc_attr(stripslashes_deep(wp_filter_nohtml_kses($mtwtitle->nodeValue)));
93
+ }
94
+
95
+ //Twitter:description
96
+ $tw_desc = $xpath->query('//meta[@name="twitter:description"]/@content');
97
+
98
+ foreach ($tw_desc as $key=>$mtwdesc) {
99
+ $data['tw_desc'] = esc_attr(stripslashes_deep(wp_filter_nohtml_kses($mtwdesc->nodeValue)));
100
+ }
101
+
102
+ //Twitter:image
103
+ $tw_img = $xpath->query('//meta[@name="twitter:image"]/@content');
104
+
105
+ foreach ($tw_img as $key=>$mtwimg) {
106
+ $data['tw_img'] = esc_attr(stripslashes_deep(wp_filter_nohtml_kses($mtwimg->nodeValue)));
107
}
108
}
109
}
inc/functions/options-import-export.php CHANGED
@@ -137,11 +137,11 @@ function seopress_export_redirections_settings() {
137
$seopress_redirects_query->the_post();
138
$redirects_html .= get_the_title();
139
$redirects_html .= ';';
140
- $redirects_html .= get_post_meta(get_the_ID(),'_seopress_redirections_enabled',true);
141
$redirects_html .= ';';
142
$redirects_html .= get_post_meta(get_the_ID(),'_seopress_redirections_type',true);
143
$redirects_html .= ';';
144
- $redirects_html .= get_post_meta(get_the_ID(),'_seopress_redirections_value',true);
145
$redirects_html .= ';';
146
$redirects_html .= "\n";
147
}
137
$seopress_redirects_query->the_post();
138
$redirects_html .= get_the_title();
139
$redirects_html .= ';';
140
+ $redirects_html .= get_post_meta(get_the_ID(),'_seopress_redirections_value',true);
141
$redirects_html .= ';';
142
$redirects_html .= get_post_meta(get_the_ID(),'_seopress_redirections_type',true);
143
$redirects_html .= ';';
144
+ $redirects_html .= get_post_meta(get_the_ID(),'_seopress_redirections_enabled',true);
145
$redirects_html .= ';';
146
$redirects_html .= "\n";
147
}
inc/functions/options-social.php CHANGED
@@ -403,7 +403,15 @@ function seopress_social_facebook_og_type_hook() {
403
} elseif (is_singular('product') || is_singular('download')) {
404
$seopress_social_og_type = '<meta property="og:type" content="product" />';
405
} elseif (is_singular()) {
406
- $seopress_social_og_type = '<meta property="og:type" content="article" />';
407
}
408
elseif (is_search() || is_archive() || is_404()) {
409
$seopress_social_og_type = '<meta property="og:type" content="object" />';
@@ -509,6 +517,10 @@ function seopress_social_fb_desc_hook() {
509
//Init
510
$seopress_social_og_desc ='';
511
512
setup_postdata( $post );
513
if (is_home()) {
514
if (seopress_social_fb_desc_home_option() !='') {
@@ -523,7 +535,7 @@ function seopress_social_fb_desc_hook() {
523
$seopress_social_og_desc .= '<meta property="og:description" content="'.seopress_social_fb_desc_term_option().'" />';
524
$seopress_social_og_desc .= "\n";
525
} elseif (term_description() !='') {
526
- $seopress_social_og_desc .= '<meta property="og:description" content="'.stripslashes_deep(wp_filter_nohtml_kses(term_description())).' - '.get_bloginfo('name').'" />';
527
$seopress_social_og_desc .= "\n";
528
}
529
} elseif (is_singular() && seopress_social_facebook_og_option() =='1' && seopress_social_fb_desc_post_option() !='') {
@@ -533,7 +545,7 @@ function seopress_social_fb_desc_hook() {
533
$seopress_social_og_desc .= '<meta property="og:description" content="'.seopress_titles_the_description_content().'" />';
534
$seopress_social_og_desc .= "\n";
535
} elseif (seopress_social_facebook_og_option() =='1' && get_the_excerpt() !='') {
536
- $seopress_social_og_desc .= '<meta property="og:description" content="'.wp_trim_words(esc_attr(stripslashes_deep(wp_filter_nohtml_kses(get_the_excerpt()))), 30).'" />';
537
$seopress_social_og_desc .= "\n";
538
}
539
@@ -582,6 +594,29 @@ function seopress_social_fb_img_home_option() {
582
}
583
}
584
585
function seopress_social_fb_img_hook() {
586
//Init
587
$seopress_social_og_thumb ='';
@@ -597,6 +632,9 @@ function seopress_social_fb_img_hook() {
597
} elseif (is_singular() && seopress_social_facebook_og_option() =='1' && has_post_thumbnail() ) {
598
$seopress_social_og_thumb .= '<meta property="og:image" content="'.get_the_post_thumbnail_url().'" />';
599
$seopress_social_og_thumb .= "\n";
600
} elseif ((is_tax() || is_category() || is_tag()) && seopress_social_fb_img_term_option() !='') {
601
$seopress_social_og_thumb .= '<meta property="og:image" content="'.seopress_social_fb_img_term_option().'" />';
602
$seopress_social_og_thumb .= "\n";
@@ -876,6 +914,10 @@ function seopress_social_twitter_desc_hook() {
876
//Init
877
$seopress_social_twitter_card_desc ='';
878
879
if (seopress_social_twitter_card_og_option() =='1') {
880
if (is_home()) {
881
if (seopress_social_fb_desc_home_option() !='') {
@@ -887,7 +929,7 @@ function seopress_social_twitter_desc_hook() {
887
if (seopress_social_fb_desc_term_option() !='') {
888
$seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_social_fb_desc_term_option().'" />';
889
} elseif (term_description() !='') {
890
- $seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.stripslashes_deep(wp_filter_nohtml_kses(term_description())).' - '.get_bloginfo('name').'" />';
891
}
892
} elseif (is_singular() && seopress_social_facebook_og_option() =='1' && seopress_social_fb_desc_post_option() !='') {
893
$seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_social_fb_desc_post_option().'" />';
@@ -895,7 +937,7 @@ function seopress_social_twitter_desc_hook() {
895
$seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_titles_the_description_content().'" />';
896
} elseif (seopress_social_facebook_og_option() =='1' && get_the_excerpt() !='') {
897
setup_postdata( $post );
898
- $seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.wp_trim_words(esc_attr(stripslashes_deep(wp_filter_nohtml_kses(get_the_excerpt()))), 30).'" />';
899
}
900
} else {
901
if (is_home()) {
@@ -908,7 +950,7 @@ function seopress_social_twitter_desc_hook() {
908
if (seopress_social_twitter_desc_term_option() !='') {
909
$seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_social_twitter_desc_term_option().'" />';
910
} elseif (term_description() !='') {
911
- $seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.stripslashes_deep(wp_filter_nohtml_kses(term_description())).' - '.get_bloginfo('name').'" />';
912
}
913
} elseif (is_singular() && seopress_social_twitter_card_option() =='1' && seopress_social_twitter_desc_post_option() !='') {
914
$seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_social_twitter_desc_post_option().'" />';
@@ -916,7 +958,7 @@ function seopress_social_twitter_desc_hook() {
916
$seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_titles_the_description_content().'" />';
917
} elseif (seopress_social_twitter_card_option() =='1' && get_the_excerpt() !='') {
918
setup_postdata( $post );
919
- $seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.wp_trim_words(esc_attr(stripslashes_deep(wp_filter_nohtml_kses(get_the_excerpt()))), 30).'" />';
920
}
921
}
922
//Hook on post Twitter card description - 'seopress_social_twitter_card_desc'
@@ -925,7 +967,7 @@ function seopress_social_twitter_desc_hook() {
925
}
926
if (isset($seopress_social_twitter_card_desc) && $seopress_social_twitter_card_desc !='') {
927
echo $seopress_social_twitter_card_desc."\n";
928
- }
929
}
930
add_action( 'wp_head', 'seopress_social_twitter_desc_hook', 1 );
931
@@ -1001,6 +1043,12 @@ function seopress_social_twitter_img_hook() {
1001
} else {
1002
$seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="'.get_the_post_thumbnail_url().'" />';
1003
}
1004
} elseif ((is_tax() || is_category() || is_tag()) && seopress_social_fb_img_term_option() !='') {
1005
if (seopress_social_twitter_img_size_option() =='large') {
1006
$seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="'.seopress_social_fb_img_term_option().'" />';
@@ -1035,6 +1083,12 @@ function seopress_social_twitter_img_hook() {
1035
} else {
1036
$seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="'.get_the_post_thumbnail_url().'" />';
1037
}
1038
} elseif ((is_tax() || is_category() || is_tag()) && seopress_social_twitter_img_term_option() !='') {
1039
if (seopress_social_twitter_img_size_option() =='large') {
1040
$seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="'.seopress_social_twitter_img_term_option().'" />';
403
} elseif (is_singular('product') || is_singular('download')) {
404
$seopress_social_og_type = '<meta property="og:type" content="product" />';
405
} elseif (is_singular()) {
406
+ global $post;
407
+ $seopress_video_disabled = get_post_meta($post->ID,'_seopress_video_disabled', true);
408
+ $seopress_video = get_post_meta($post->ID,'_seopress_video');
409
+
410
+ if (!empty($seopress_video[0][0]['url']) && $seopress_video_disabled =='') {
411
+ $seopress_social_og_type = '<meta property="og:type" content="video.other" />';
412
+ } else {
413
+ $seopress_social_og_type = '<meta property="og:type" content="article" />';
414
+ }
415
}
416
elseif (is_search() || is_archive() || is_404()) {
417
$seopress_social_og_type = '<meta property="og:type" content="object" />';
517
//Init
518
$seopress_social_og_desc ='';
519
520
+ //Excerpt length
521
+ $seopress_excerpt_length = 50;
522
+ $seopress_excerpt_length = apply_filters('seopress_excerpt_length',$seopress_excerpt_length);
523
+
524
setup_postdata( $post );
525
if (is_home()) {
526
if (seopress_social_fb_desc_home_option() !='') {
535
$seopress_social_og_desc .= '<meta property="og:description" content="'.seopress_social_fb_desc_term_option().'" />';
536
$seopress_social_og_desc .= "\n";
537
} elseif (term_description() !='') {
538
+ $seopress_social_og_desc .= '<meta property="og:description" content="'.wp_trim_words(stripslashes_deep(wp_filter_nohtml_kses(term_description())),$seopress_excerpt_length).' - '.get_bloginfo('name').'" />';
539
$seopress_social_og_desc .= "\n";
540
}
541
} elseif (is_singular() && seopress_social_facebook_og_option() =='1' && seopress_social_fb_desc_post_option() !='') {
545
$seopress_social_og_desc .= '<meta property="og:description" content="'.seopress_titles_the_description_content().'" />';
546
$seopress_social_og_desc .= "\n";
547
} elseif (seopress_social_facebook_og_option() =='1' && get_the_excerpt() !='') {
548
+ $seopress_social_og_desc .= '<meta property="og:description" content="'.wp_trim_words(esc_attr(stripslashes_deep(wp_filter_nohtml_kses(get_the_excerpt()))), $seopress_excerpt_length).'" />';
549
$seopress_social_og_desc .= "\n";
550
}
551
594
}
595
}
596
597
+ function seopress_thumbnail_in_content() {
598
+ //Get post content
599
+ $seopress_get_the_content = apply_filters('the_content', get_post_field('post_content', get_the_ID()));
600
+
601
+ if ($seopress_get_the_content !='') {
602
+ //DomDocument
603
+ $dom = new domDocument;
604
+ $internalErrors = libxml_use_internal_errors(true);
605
+ $dom->loadHTML($seopress_get_the_content);
606
+ $dom->preserveWhiteSpace = false;
607
+ $domxpath = new DOMXPath($dom);
608
+
609
+ /*Standard images*/
610
+ $imgs = $domxpath->query("//img");
611
+
612
+ if (!empty($imgs) && $imgs[0] !=NULL) {
613
+ $url = $imgs[0]->getAttribute('src');
614
+ $url = esc_attr(wp_filter_nohtml_kses(htmlentities($url)));
615
+ return $url;
616
+ }
617
+ }
618
+ }
619
+
620
function seopress_social_fb_img_hook() {
621
//Init
622
$seopress_social_og_thumb ='';
632
} elseif (is_singular() && seopress_social_facebook_og_option() =='1' && has_post_thumbnail() ) {
633
$seopress_social_og_thumb .= '<meta property="og:image" content="'.get_the_post_thumbnail_url().'" />';
634
$seopress_social_og_thumb .= "\n";
635
+ } elseif (is_singular() && seopress_social_facebook_og_option() =='1' && seopress_thumbnail_in_content() !='' ) {
636
+ $seopress_social_og_thumb .= '<meta property="og:image" content="'.seopress_thumbnail_in_content().'" />';
637
+ $seopress_social_og_thumb .= "\n";
638
} elseif ((is_tax() || is_category() || is_tag()) && seopress_social_fb_img_term_option() !='') {
639
$seopress_social_og_thumb .= '<meta property="og:image" content="'.seopress_social_fb_img_term_option().'" />';
640
$seopress_social_og_thumb .= "\n";
914
//Init
915
$seopress_social_twitter_card_desc ='';
916
917
+ //Excerpt length
918
+ $seopress_excerpt_length = 50;
919
+ $seopress_excerpt_length = apply_filters('seopress_excerpt_length',$seopress_excerpt_length);
920
+
921
if (seopress_social_twitter_card_og_option() =='1') {
922
if (is_home()) {
923
if (seopress_social_fb_desc_home_option() !='') {
929
if (seopress_social_fb_desc_term_option() !='') {
930
$seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_social_fb_desc_term_option().'" />';
931
} elseif (term_description() !='') {
932
+ $seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.wp_trim_words(stripslashes_deep(wp_filter_nohtml_kses(term_description())),$seopress_excerpt_length).' - '.get_bloginfo('name').'" />';
933
}
934
} elseif (is_singular() && seopress_social_facebook_og_option() =='1' && seopress_social_fb_desc_post_option() !='') {
935
$seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_social_fb_desc_post_option().'" />';
937
$seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_titles_the_description_content().'" />';
938
} elseif (seopress_social_facebook_og_option() =='1' && get_the_excerpt() !='') {
939
setup_postdata( $post );
940
+ $seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.wp_trim_words(esc_attr(stripslashes_deep(wp_filter_nohtml_kses(get_the_excerpt()))), $seopress_excerpt_length).'" />';
941
}
942
} else {
943
if (is_home()) {
950
if (seopress_social_twitter_desc_term_option() !='') {
951
$seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_social_twitter_desc_term_option().'" />';
952
} elseif (term_description() !='') {
953
+ $seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.wp_trim_words(stripslashes_deep(wp_filter_nohtml_kses(term_description())),$seopress_excerpt_length).' - '.get_bloginfo('name').'" />';
954
}
955
} elseif (is_singular() && seopress_social_twitter_card_option() =='1' && seopress_social_twitter_desc_post_option() !='') {
956
$seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_social_twitter_desc_post_option().'" />';
958
$seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_titles_the_description_content().'" />';
959
} elseif (seopress_social_twitter_card_option() =='1' && get_the_excerpt() !='') {
960
setup_postdata( $post );
961
+ $seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.wp_trim_words(esc_attr(stripslashes_deep(wp_filter_nohtml_kses(get_the_excerpt()))), $seopress_excerpt_length).'" />';
962
}
963
}
964
//Hook on post Twitter card description - 'seopress_social_twitter_card_desc'
967
}
968
if (isset($seopress_social_twitter_card_desc) && $seopress_social_twitter_card_desc !='') {
969
echo $seopress_social_twitter_card_desc."\n";
970
+ }
971
}
972
add_action( 'wp_head', 'seopress_social_twitter_desc_hook', 1 );
973
1043
} else {
1044
$seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="'.get_the_post_thumbnail_url().'" />';
1045
}
1046
+ } elseif (seopress_thumbnail_in_content() !='' && is_singular()) {
1047
+ if (seopress_social_twitter_img_size_option() =='large') {
1048
+ $seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="'.seopress_thumbnail_in_content().'" />';
1049
+ } else {
1050
+ $seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="'.seopress_thumbnail_in_content().'" />';
1051
+ }
1052
} elseif ((is_tax() || is_category() || is_tag()) && seopress_social_fb_img_term_option() !='') {
1053
if (seopress_social_twitter_img_size_option() =='large') {
1054
$seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="'.seopress_social_fb_img_term_option().'" />';
1083
} else {
1084
$seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="'.get_the_post_thumbnail_url().'" />';
1085
}
1086
+ } elseif (seopress_thumbnail_in_content() !='' && is_singular()) {
1087
+ if (seopress_social_twitter_img_size_option() =='large') {
1088
+ $seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="'.seopress_thumbnail_in_content().'" />';
1089
+ } else {
1090
+ $seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="'.seopress_thumbnail_in_content().'" />';
1091
+ }
1092
} elseif ((is_tax() || is_category() || is_tag()) && seopress_social_twitter_img_term_option() !='') {
1093
if (seopress_social_twitter_img_size_option() =='large') {
1094
$seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="'.seopress_social_twitter_img_term_option().'" />';
inc/functions/options-titles-metas.php CHANGED
@@ -237,6 +237,10 @@ function seopress_titles_the_title() {
237
//Init
238
$seopress_titles_title_template ='';
239
240
//Remove WordPress Filters
241
$seopress_array_filters = array('category_description', 'tag_description', 'term_description');
242
foreach ($seopress_array_filters as $key => $value) {
@@ -283,10 +287,10 @@ function seopress_titles_the_title() {
283
$get_search_query = apply_filters('seopress_get_search_query', $get_search_query);
284
285
if ($seopress_excerpt !='') {
286
- $seopress_get_the_excerpt = wp_trim_words(esc_attr(stripslashes_deep(wp_filter_nohtml_kses($seopress_excerpt))), 30);
287
} elseif ($post !='') {
288
if (get_post_field('post_content', $post->ID) !='') {
289
- $seopress_get_the_excerpt = wp_trim_words(esc_attr(stripslashes_deep(wp_filter_nohtml_kses(get_post_field('post_content', $post->ID)))), 30);
290
} else {
291
$seopress_get_the_excerpt = null;
292
}
@@ -373,11 +377,11 @@ function seopress_titles_the_title() {
373
$post_category,
374
$post_tag,
375
single_cat_title('', false),
376
- stripslashes_deep(wp_filter_nohtml_kses(category_description())),
377
single_tag_title('', false),
378
- stripslashes_deep(wp_filter_nohtml_kses(tag_description())),
379
single_term_title('', false),
380
- stripslashes_deep(wp_filter_nohtml_kses(term_description())),
381
$get_search_query,
382
$seopress_paged,
383
post_type_archive_title('', false),
@@ -562,6 +566,10 @@ function seopress_titles_the_description_content() {
562
$seopress_titles_description_template ='';
563
$seopress_paged ='';
564
$seopress_get_author ='';
565
566
//Template variables
567
if (get_query_var('paged') >='1') {
@@ -605,10 +613,10 @@ function seopress_titles_the_description_content() {
605
$get_search_query = apply_filters('seopress_get_search_query', $get_search_query);
606
607
if ($seopress_excerpt !='') {
608
- $seopress_get_the_excerpt = wp_trim_words(esc_attr(stripslashes_deep(wp_filter_nohtml_kses($seopress_excerpt))), 30);
609
} elseif ($post !='') {
610
if (get_post_field('post_content', $post->ID) !='') {
611
- $seopress_get_the_excerpt = wp_trim_words(esc_attr(stripslashes_deep(wp_filter_nohtml_kses(get_post_field('post_content', $post->ID)))), 30);
612
} else {
613
$seopress_get_the_excerpt = null;
614
}
@@ -695,11 +703,11 @@ function seopress_titles_the_description_content() {
695
$post_category,
696
$post_tag,
697
single_cat_title('', false),
698
- stripslashes_deep(wp_filter_nohtml_kses(category_description())),
699
single_tag_title('', false),
700
- stripslashes_deep(wp_filter_nohtml_kses(tag_description())),
701
single_term_title('', false),
702
- stripslashes_deep(wp_filter_nohtml_kses(term_description())),
703
$get_search_query,
704
$seopress_paged,
705
post_type_archive_title('', false),
@@ -838,7 +846,7 @@ function seopress_titles_the_description_content() {
838
} else {
839
setup_postdata( $post );
840
if ($seopress_get_the_excerpt !='' || get_the_content() !='') { //DEFAULT EXCERPT OR THE CONTENT
841
- $seopress_titles_the_description = wp_trim_words(stripslashes_deep(wp_filter_nohtml_kses($seopress_get_the_excerpt)), 30);
842
843
$seopress_titles_description_template = str_replace($seopress_titles_template_variables_array, $seopress_titles_template_replace_array, $seopress_titles_the_description);
844
}
@@ -876,7 +884,7 @@ function seopress_titles_the_description_content() {
876
if (has_filter('seopress_titles_desc')) {
877
$seopress_titles_description_template = apply_filters('seopress_titles_desc', $seopress_titles_description_template);
878
}
879
- //Return Title tag
880
return $seopress_titles_description_template;
881
}
882
function seopress_titles_the_description() {
@@ -1034,33 +1042,36 @@ if (is_plugin_active('wp-seopress-pro/seopress-pro.php')) {
1034
function seopress_titles_noindex_bypass() {
1035
//init
1036
$seopress_titles_noindex ='';
1037
-
1038
- if (seopress_titles_noindex_option()) { //Single CPT Global Advanced tab
1039
- $seopress_titles_noindex = seopress_titles_noindex_option();
1040
- } elseif (is_singular() && seopress_titles_single_cpt_noindex_option()) { //Single CPT Global
1041
- $seopress_titles_noindex = seopress_titles_single_cpt_noindex_option();
1042
- } elseif (is_singular() && seopress_titles_noindex_post_option() ) { //Single CPT Metaboxe
1043
- $seopress_titles_noindex = seopress_titles_noindex_post_option();
1044
- } elseif (is_post_type_archive() && seopress_titles_archive_cpt_noindex_option() ) { //IS POST TYPE ARCHIVE
1045
- $seopress_titles_noindex = seopress_titles_archive_cpt_noindex_option();
1046
- } elseif ((is_tax() || is_category() || is_tag()) && seopress_titles_tax_noindex_option()) { //IS TAX
1047
- $seopress_titles_noindex = seopress_titles_tax_noindex_option();
1048
- } elseif (is_author() && seopress_titles_archives_author_noindex_option()) { //IS Author archive
1049
- $seopress_titles_noindex = seopress_titles_archives_author_noindex_option();
1050
- } elseif (is_date() && seopress_titles_archives_date_noindex_option()) { //IS Date archive
1051
- $seopress_titles_noindex = seopress_titles_archives_date_noindex_option();
1052
- } elseif (is_search() && seopress_titles_archives_search_title_noindex_option()) {
1053
- $seopress_titles_noindex = seopress_titles_archives_search_title_noindex_option();
1054
- } elseif (function_exists('is_cart') && function_exists('seopress_woocommerce_cart_page_no_index_option') && (is_cart() && seopress_woocommerce_cart_page_no_index_option())) { //IS WooCommerce Cart page
1055
- $seopress_titles_noindex = seopress_woocommerce_cart_page_no_index_option();
1056
- } elseif (function_exists('is_checkout') && function_exists('seopress_woocommerce_checkout_page_no_index_option') && (is_checkout() && seopress_woocommerce_checkout_page_no_index_option())) { //IS WooCommerce Checkout page
1057
- $seopress_titles_noindex = seopress_woocommerce_checkout_page_no_index_option();
1058
- } elseif (function_exists('is_account_page') && function_exists('seopress_woocommerce_customer_account_page_no_index_option') && (is_account_page() && seopress_woocommerce_customer_account_page_no_index_option())) { //IS WooCommerce Customer account pages
1059
- $seopress_titles_noindex = seopress_woocommerce_customer_account_page_no_index_option();
1060
- } elseif (function_exists('is_wc_endpoint_url') && function_exists('seopress_woocommerce_customer_account_page_no_index_option') && (is_wc_endpoint_url() && seopress_woocommerce_customer_account_page_no_index_option())) { //IS WooCommerce Customer account pages
1061
- $seopress_titles_noindex = seopress_woocommerce_customer_account_page_no_index_option();
1062
- } elseif(is_404()) { //Is 404 page
1063
$seopress_titles_noindex = "noindex";
1064
}
1065
//Return noindex tag
1066
return $seopress_titles_noindex;
@@ -1279,74 +1290,75 @@ function seopress_titles_nosnippet_bypass() {
1279
}
1280
}
1281
}
1282
1283
- if (seopress_titles_noindex_bypass() || seopress_titles_nofollow_bypass() || seopress_titles_noodp_bypass() || seopress_titles_noarchive_bypass() || seopress_titles_nosnippet_bypass() || has_filter('seopress_titles_robots')) {
1284
- function seopress_titles_advanced_robots_hook() {
1285
-
1286
- $seopress_comma_array = array();
1287
1288
- if (seopress_titles_noindex_bypass() !='') {
1289
- $seopress_titles_noindex = 'noindex';
1290
- //Hook on meta robots noindex - 'seopress_titles_noindex'
1291
- if (has_filter('seopress_titles_noindex')) {
1292
- $seopress_titles_noindex = apply_filters('seopress_titles_noindex', $seopress_titles_noindex);
1293
- }
1294
- array_push($seopress_comma_array, $seopress_titles_noindex);
1295
- }
1296
- if (seopress_titles_nofollow_bypass() !='') {
1297
- $seopress_titles_nofollow = 'nofollow';
1298
- //Hook on meta robots nofollow - 'seopress_titles_nofollow'
1299
- if (has_filter('seopress_titles_nofollow')) {
1300
- $seopress_titles_nofollow = apply_filters('seopress_titles_nofollow', $seopress_titles_nofollow);
1301
- }
1302
- array_push($seopress_comma_array, $seopress_titles_nofollow);
1303
- }
1304
- if (seopress_titles_noodp_bypass() !='') {
1305
- $seopress_titles_noodp = 'noodp';
1306
- //Hook on meta robots noodp - 'seopress_titles_noodp'
1307
- if (has_filter('seopress_titles_noodp')) {
1308
- $seopress_titles_noodp = apply_filters('seopress_titles_noodp', $seopress_titles_noodp);
1309
- }
1310
- array_push($seopress_comma_array, $seopress_titles_noodp);
1311
- }
1312
- if (seopress_titles_noarchive_bypass() !='') {
1313
- $seopress_titles_noarchive = 'noarchive';
1314
- //Hook on meta robots noarchive - 'seopress_titles_noarchive'
1315
- if (has_filter('seopress_titles_noarchive')) {
1316
- $seopress_titles_noarchive = apply_filters('seopress_titles_noarchive', $seopress_titles_noarchive);
1317
- }
1318
- array_push($seopress_comma_array, $seopress_titles_noarchive);
1319
- }
1320
- if (seopress_titles_nosnippet_bypass() !='') {
1321
- $seopress_titles_nosnippet = 'nosnippet';
1322
- //Hook on meta robots nosnippet - 'seopress_titles_nosnippet'
1323
- if (has_filter('seopress_titles_nosnippet')) {
1324
- $seopress_titles_nosnippet = apply_filters('seopress_titles_nosnippet', $seopress_titles_nosnippet);
1325
- }
1326
- array_push($seopress_comma_array, $seopress_titles_nosnippet);
1327
- }
1328
1329
- $seopress_titles_robots = '<meta name="robots" content="';
1330
1331
- $seopress_comma_count = count($seopress_comma_array);
1332
- for ($i = 0; $i < $seopress_comma_count; $i++) {
1333
- $seopress_titles_robots .= $seopress_comma_array[$i];
1334
- if ($i < ($seopress_comma_count - 1)) {
1335
- $seopress_titles_robots .= ', ';
1336
- }
1337
- }
1338
1339
- $seopress_titles_robots .= '" />';
1340
- $seopress_titles_robots .= "\n";
1341
1342
- //Hook on meta robots all - 'seopress_titles_robots'
1343
- if (has_filter('seopress_titles_robots')) {
1344
- $seopress_titles_robots = apply_filters('seopress_titles_robots', $seopress_titles_robots);
1345
- }
1346
- echo $seopress_titles_robots;
1347
- }
1348
- add_action( 'wp_head', 'seopress_titles_advanced_robots_hook', 1 );
1349
- };
1350
1351
//noimageindex
1352
function seopress_titles_noimageindex_option() {
237
//Init
238
$seopress_titles_title_template ='';
239
240
+ //Excerpt length
241
+ $seopress_excerpt_length = 50;
242
+ $seopress_excerpt_length = apply_filters('seopress_excerpt_length',$seopress_excerpt_length);
243
+
244
//Remove WordPress Filters
245
$seopress_array_filters = array('category_description', 'tag_description', 'term_description');
246
foreach ($seopress_array_filters as $key => $value) {
287
$get_search_query = apply_filters('seopress_get_search_query', $get_search_query);
288
289
if ($seopress_excerpt !='') {
290
+ $seopress_get_the_excerpt = wp_trim_words(esc_attr(stripslashes_deep(wp_filter_nohtml_kses($seopress_excerpt))), $seopress_excerpt_length);
291
} elseif ($post !='') {
292
if (get_post_field('post_content', $post->ID) !='') {
293
+ $seopress_get_the_excerpt = wp_trim_words(esc_attr(stripslashes_deep(wp_filter_nohtml_kses(get_post_field('post_content', $post->ID)))), $seopress_excerpt_length);
294
} else {
295
$seopress_get_the_excerpt = null;
296
}
377
$post_category,
378
$post_tag,
379
single_cat_title('', false),
380
+ wp_trim_words(stripslashes_deep(wp_filter_nohtml_kses(category_description())),$seopress_excerpt_length),
381
single_tag_title('', false),
382
+ wp_trim_words(stripslashes_deep(wp_filter_nohtml_kses(tag_description())),$seopress_excerpt_length),
383
single_term_title('', false),
384
+ wp_trim_words(stripslashes_deep(wp_filter_nohtml_kses(term_description())),$seopress_excerpt_length),
385
$get_search_query,
386
$seopress_paged,
387
post_type_archive_title('', false),
566
$seopress_titles_description_template ='';
567
$seopress_paged ='';
568
$seopress_get_author ='';
569
+
570
+ //Excerpt length
571
+ $seopress_excerpt_length = 50;
572
+ $seopress_excerpt_length = apply_filters('seopress_excerpt_length',$seopress_excerpt_length);
573
574
//Template variables
575