Version Description
- NEW Pixel counter for title and meta description now works with each language / alphabet! Faster, more reliable and universal!
- NEW Facebook Preview!
- NEW Cookie bar customization: change background, color, buttons... from SEO, Google Analytics, Cookie bar / GDPR tab
- NEW Add new checks to content analysis for social networks (Open Graph / Twitter cards) to detect duplicated tags/conflicts
- NEW %%post_thumbnail_url%% global dynamic variable to display post thumbnail URL (https://www.seopress.org/support/guides/manage-titles-meta-descriptions/)
- NEW %%currentmonth_short%% global dynamic variable to display current month in 3 letters (https://www.seopress.org/support/guides/manage-titles-meta-descriptions/)
- NEW 'seopress_titles_post_thumbnail_url' hook to filter post thumbnail URL (https://www.seopress.org/support/hooks/filter-seopress_titles_post_thumbnail_url-dynamic-variable/)
- INFO Content analysis now displays duplicate H1 title values for faster identification
- INFO Add Post title and Permalink to the metadata export file (PRO)
- INFO wpForo compatibility with SEOPress
- INFO Improve compatibility with Jetpack CDN (thanks to @jeherve)
- INFO Improve UI in content analysis if transparent / white images
- INFO Remove SEO admin bar for user roles without "manage_options" capability to improve UX
- FIX Facebook OG:Image URL encoding if no featured thumbnail or custom og:image set (thanks to @bitofseo)
- FIX Keywords in permalink was case sensitive
Download this release
Release Info
Developer | rainbowgeek |
Plugin | SEOPress |
Version | 3.7.8 |
Comparing to | |
See all releases |
Code changes from version 3.7.7.1 to 3.7.8
- assets/css/seopress.css +130 -8
- assets/css/seopress.min.css +1 -1
- assets/js/seopress-block-editor.js +47 -14
- assets/js/seopress-counters.js +109 -25
- assets/js/seopress-counters.min.js +1 -1
- assets/js/seopress-media-uploader.js +2 -0
- assets/js/seopress-tabs6.js +2 -1
- inc/admin/admin-metaboxes-content-analysis-form.php +219 -1
- inc/admin/admin-metaboxes-form.php +77 -35
- inc/admin/admin.php +299 -77
- inc/admin/ajax.php +66 -16
- inc/functions/options-google-analytics.php +225 -3
- inc/functions/options-import-export.php +3 -0
- inc/functions/options-oembed.php +73 -0
- inc/functions/options-social.php +12 -5
- inc/functions/options-titles-metas.php +1 -0
- inc/functions/options.php +19 -4
- inc/functions/variables/dynamic-variables.php +11 -1
- readme.txt +21 -5
- seopress.php +5 -4
assets/css/seopress.css
CHANGED
@@ -136,7 +136,9 @@
|
|
136 |
max-width: 150px;
|
137 |
max-height: 150px;
|
138 |
object-fit: cover;
|
|
|
139 |
cursor: default;
|
|
|
140 |
}
|
141 |
|
142 |
#seopress_cpt .notice {
|
@@ -318,6 +320,35 @@
|
|
318 |
width: 49%;
|
319 |
margin-left: 1%;
|
320 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
321 |
|
322 |
#seopress_cpt .google-snippet-preview {
|
323 |
font-family: arial,sans-serif;
|
@@ -342,20 +373,89 @@
|
|
342 |
font-weight: 400;
|
343 |
line-height: 16px;
|
344 |
}
|
345 |
-
|
346 |
#seopress_cpt .google-snippet-preview .snippet-description,#seopress_cpt .google-snippet-preview .snippet-description-custom,#seopress_cpt .google-snippet-preview .snippet-description-default {
|
347 |
color: #545454;
|
348 |
-
font-size:
|
349 |
font-weight: 400;
|
350 |
line-height: 18.2px;
|
351 |
display: inline;
|
352 |
}
|
353 |
-
|
354 |
#seopress_cpt .google-snippet-preview .snippet-date {
|
355 |
color: grey;
|
356 |
display: inline;
|
357 |
}
|
358 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
359 |
#seopress_cpt .wrap-seopress-counters, #seopress_pro_cpt .wrap-seopress-counters {
|
360 |
text-align: right;
|
361 |
background: #e9ecef;
|
@@ -365,7 +465,6 @@
|
|
365 |
justify-content: flex-end;
|
366 |
border-radius: 0 0 .25rem .25rem;
|
367 |
}
|
368 |
-
|
369 |
#seopress_cpt .sp-progress, #seopress_pro_cpt .sp-progress {
|
370 |
display: -ms-flexbox;
|
371 |
display: flex;
|
@@ -375,7 +474,6 @@
|
|
375 |
background-color: #e9ecef;
|
376 |
border-radius: .25rem .25rem 0 0;
|
377 |
}
|
378 |
-
|
379 |
#seopress_cpt .sp-progress-bar, #seopress_pro_cpt .sp-progress-bar {
|
380 |
display: -ms-flexbox;
|
381 |
display: flex;
|
@@ -389,7 +487,6 @@
|
|
389 |
background-color: #0085ba;
|
390 |
transition: width .6s ease;
|
391 |
}
|
392 |
-
|
393 |
#seopress_cpt #seopress_titles_desc_counters,
|
394 |
#seopress_cpt #seopress_titles_title_counters,
|
395 |
#seopress_pro_cpt #seopress_rich_snippets_articles_counters,
|
@@ -1193,6 +1290,31 @@ body.seopress-styles {
|
|
1193 |
vertical-align: baseline;
|
1194 |
}
|
1195 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1196 |
.seopress-option .button .dashicons {
|
1197 |
font-size: 16px;
|
1198 |
}
|
@@ -1821,4 +1943,4 @@ body.seopress-styles {
|
|
1821 |
#tab_seopress_social_accounts .form-table {
|
1822 |
float: left;
|
1823 |
width: 70%;
|
1824 |
-
}
|
136 |
max-width: 150px;
|
137 |
max-height: 150px;
|
138 |
object-fit: cover;
|
139 |
+
border: 1px solid #f3f4f5;
|
140 |
cursor: default;
|
141 |
+
padding: 1px;
|
142 |
}
|
143 |
|
144 |
#seopress_cpt .notice {
|
320 |
width: 49%;
|
321 |
margin-left: 1%;
|
322 |
}
|
323 |
+
#seopress_cpt #tabs-3 .box-left {
|
324 |
+
width: 44%;
|
325 |
+
}
|
326 |
+
#seopress_cpt #tabs-3 .box-right {
|
327 |
+
width: 54%;
|
328 |
+
}
|
329 |
+
@media only screen and (max-width: 1200px) {
|
330 |
+
#seopress_cpt .box-left,
|
331 |
+
#seopress_cpt .box-right {
|
332 |
+
float: none;
|
333 |
+
width: 100%;
|
334 |
+
margin: 0;
|
335 |
+
}
|
336 |
+
}
|
337 |
+
@media only screen and (max-width: 1500px) {
|
338 |
+
#seopress_cpt #tabs-3 .box-left,
|
339 |
+
#seopress_cpt #tabs-3 .box-right {
|
340 |
+
float: none;
|
341 |
+
width: 100%;
|
342 |
+
margin: 0;
|
343 |
+
}
|
344 |
+
}
|
345 |
+
|
346 |
+
#edittag #seopress_cpt #tabs-3 .box-left,
|
347 |
+
#edittag #seopress_cpt #tabs-3 .box-right {
|
348 |
+
float: none;
|
349 |
+
width: 100%;
|
350 |
+
margin: 0;
|
351 |
+
}
|
352 |
|
353 |
#seopress_cpt .google-snippet-preview {
|
354 |
font-family: arial,sans-serif;
|
373 |
font-weight: 400;
|
374 |
line-height: 16px;
|
375 |
}
|
|
|
376 |
#seopress_cpt .google-snippet-preview .snippet-description,#seopress_cpt .google-snippet-preview .snippet-description-custom,#seopress_cpt .google-snippet-preview .snippet-description-default {
|
377 |
color: #545454;
|
378 |
+
font-size: 14px;
|
379 |
font-weight: 400;
|
380 |
line-height: 18.2px;
|
381 |
display: inline;
|
382 |
}
|
|
|
383 |
#seopress_cpt .google-snippet-preview .snippet-date {
|
384 |
color: grey;
|
385 |
display: inline;
|
386 |
}
|
387 |
+
#seopress_cpt .facebook-snippet-box {
|
388 |
+
color: #4b4f56;
|
389 |
+
font-size: 14px;
|
390 |
+
width: 524px;
|
391 |
+
}
|
392 |
+
#seopress_cpt .snippet-meta {
|
393 |
+
display:flex;
|
394 |
+
}
|
395 |
+
#seopress_cpt .snippet-fb-site-name,
|
396 |
+
#seopress_cpt .snippet-fb-url,
|
397 |
+
#seopress_cpt .fb-by {
|
398 |
+
color: #606770;
|
399 |
+
font-size: 12px;
|
400 |
+
white-space: nowrap;
|
401 |
+
line-height: 11px;
|
402 |
+
text-transform: uppercase;
|
403 |
+
}
|
404 |
+
#seopress_cpt .fb-sep {
|
405 |
+
padding-left: 5px;
|
406 |
+
padding-right: 5px;
|
407 |
+
color: #606770;
|
408 |
+
line-height: 11px;
|
409 |
+
font-size: 12px;
|
410 |
+
}
|
411 |
+
#seopress_cpt .facebook-snippet-box .facebook-snippet-text {
|
412 |
+
border: 1px solid #dadde1;
|
413 |
+
background-color: #f2f3f5;
|
414 |
+
padding: 10px 12px;
|
415 |
+
}
|
416 |
+
#seopress_cpt .facebook-snippet-box .title-desc {
|
417 |
+
max-height: 46px;
|
418 |
+
overflow: hidden;
|
419 |
+
}
|
420 |
+
#seopress_cpt .facebook-snippet-box .snippet-fb-title,
|
421 |
+
#seopress_cpt .facebook-snippet-box .snippet-fb-title-custom,
|
422 |
+
#seopress_cpt .facebook-snippet-box .snippet-fb-title-default {
|
423 |
+
font-size: 16px;
|
424 |
+
line-height: 20px;
|
425 |
+
margin: 3px 0 0;
|
426 |
+
padding-top: 2px;
|
427 |
+
color: #1d2129;
|
428 |
+
font-weight: 700;
|
429 |
+
overflow: hidden;
|
430 |
+
-webkit-box-orient: vertical;
|
431 |
+
display: -webkit-box;
|
432 |
+
text-overflow: ellipsis;
|
433 |
+
white-space: normal;
|
434 |
+
word-break: break-word;
|
435 |
+
max-height: 22px;
|
436 |
+
}
|
437 |
+
#seopress_cpt .facebook-snippet-box .snippet-fb-description,
|
438 |
+
#seopress_cpt .facebook-snippet-box .snippet-fb-description-custom,
|
439 |
+
#seopress_cpt .facebook-snippet-box .snippet-fb-description-default {
|
440 |
+
color: #606770;
|
441 |
+
font-size: 14px;
|
442 |
+
line-height: 20px;
|
443 |
+
word-break: break-word;
|
444 |
+
font-family: Helvetica, Arial, sans-serif;
|
445 |
+
max-height: 80px;
|
446 |
+
overflow: hidden;
|
447 |
+
-webkit-box-orient: vertical;
|
448 |
+
display: -webkit-box;
|
449 |
+
text-overflow: ellipsis;
|
450 |
+
white-space: normal;
|
451 |
+
width: 100%;
|
452 |
+
}
|
453 |
+
#seopress_cpt .facebook-snippet-box img {
|
454 |
+
display: block;
|
455 |
+
height: 274px;
|
456 |
+
width: 524px;
|
457 |
+
object-fit: cover;
|
458 |
+
}
|
459 |
#seopress_cpt .wrap-seopress-counters, #seopress_pro_cpt .wrap-seopress-counters {
|
460 |
text-align: right;
|
461 |
background: #e9ecef;
|
465 |
justify-content: flex-end;
|
466 |
border-radius: 0 0 .25rem .25rem;
|
467 |
}
|
|
|
468 |
#seopress_cpt .sp-progress, #seopress_pro_cpt .sp-progress {
|
469 |
display: -ms-flexbox;
|
470 |
display: flex;
|
474 |
background-color: #e9ecef;
|
475 |
border-radius: .25rem .25rem 0 0;
|
476 |
}
|
|
|
477 |
#seopress_cpt .sp-progress-bar, #seopress_pro_cpt .sp-progress-bar {
|
478 |
display: -ms-flexbox;
|
479 |
display: flex;
|
487 |
background-color: #0085ba;
|
488 |
transition: width .6s ease;
|
489 |
}
|
|
|
490 |
#seopress_cpt #seopress_titles_desc_counters,
|
491 |
#seopress_cpt #seopress_titles_title_counters,
|
492 |
#seopress_pro_cpt #seopress_rich_snippets_articles_counters,
|
1290 |
vertical-align: baseline;
|
1291 |
}
|
1292 |
|
1293 |
+
.seopress-option .wp-picker-container button {
|
1294 |
+
box-shadow: none;
|
1295 |
+
border: 1px solid #0071a1;
|
1296 |
+
border-radius: 3px;
|
1297 |
+
background: rgb(243, 245, 246);
|
1298 |
+
text-transform: none;
|
1299 |
+
}
|
1300 |
+
|
1301 |
+
.seopress-option .wp-picker-container input[type=text].wp-color-picker {
|
1302 |
+
min-width: inherit;
|
1303 |
+
}
|
1304 |
+
|
1305 |
+
.seopress-option .wp-picker-container .wp-picker-clear {
|
1306 |
+
box-shadow: none;
|
1307 |
+
text-transform: none;
|
1308 |
+
border-radius: 0;
|
1309 |
+
background: none;
|
1310 |
+
}
|
1311 |
+
|
1312 |
+
.seopress-option .wp-picker-container .wp-picker-clear:hover {
|
1313 |
+
background:none;
|
1314 |
+
text-decoration: currentColor;
|
1315 |
+
color:inherit;
|
1316 |
+
}
|
1317 |
+
|
1318 |
.seopress-option .button .dashicons {
|
1319 |
font-size: 16px;
|
1320 |
}
|
1943 |
#tab_seopress_social_accounts .form-table {
|
1944 |
float: left;
|
1945 |
width: 70%;
|
1946 |
+
}
|
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:"\e800";font-family:seopress!important;font-weight:700;font-size:12px;line-height:20px}#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?81521271);src:url(../fonts/seopress.eot?81521271#iefix) format('embedded-opentype'),url(../fonts/seopress.woff?81521271) format('woff2'),url(../fonts/seopress.woff?81521271) format('woff'),url(../fonts/seopress.ttf?81521271) format('truetype'),url(../fonts/seopress.svg?81521271#seopress) format('svg');font-weight:400;font-style:normal}[class*=" icon-seopress"],[class^=icon-seopress-]{font-family:seopress!important;font-size:14px!important;line-height:24px!important}.icon-seopress-seopress:before{content:"\e800"}.sp-tooltip{position:relative;margin-left:5px;display:inline-block;cursor:help}.sp-tooltip .dashicons{color:#666}.sp-tooltip .sp-tooltiptext{visibility:hidden;position:absolute;z-index:999999999;color:#fff;font-size:.8em;background:#333;text-align:center;width:240px;right:0;border-radius:3px;padding:.618em 1em;box-shadow:0 1px 3px rgba(0,0,0,.2);top:25px}.sp-tooltip:hover .sp-tooltiptext{visibility:visible}#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:none;margin:5px;display:inline-block}#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;flex-wrap:wrap}#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-analysis-tabs .dashicons,#seopress_cpt .dashicons{vertical-align:middle}#seopress_cpt .inside{margin:0;padding:0}#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:10;margin:0;border-radius:0;padding:0;background:#f3f4f5;border:none}#seopress_content_analysis .ui-tabs .ui-tabs-nav{width:calc(100% + 24px);margin:0 0 0 -12px;position:-webkit-sticky;position:sticky;top:0}#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-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{position:relative;z-index:60;cursor:pointer;border-radius:0;border-bottom:3px solid #0085ba}#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-2 label[for=seopress_robots_primary_cat_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:90%;display:inline-block}#seopress_cpt #tabs-1 input{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:250px;display:inline}#seopress_cpt #tabs-4 #seopress_redirections_value_meta{width:calc(100% - 258px);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,.seopress-option .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;word-break:break-all}#seopress_cpt .google-snippet-preview>p{word-break:normal}#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:#e9ecef;padding:2px 5px;display:flex;font-size:12px;justify-content:flex-end;border-radius:0 0 .25rem .25rem}#seopress_cpt .sp-progress,#seopress_pro_cpt .sp-progress{display:-ms-flexbox;display:flex;height:1rem;overflow:hidden;font-size:.75rem;background-color:#e9ecef;border-radius:.25rem .25rem 0 0}#seopress_cpt .sp-progress-bar,#seopress_pro_cpt .sp-progress-bar{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;color:#fff;text-align:center;white-space:nowrap;background-color:#0085ba;transition:width .6s ease}#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:0;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:2px;padding:0 5px;white-space:nowrap;margin:0;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:5px 10px}#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{color:#191e23;font-weight:700}#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:#191e23;text-decoration:none;height:40px;line-height:40px}#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}#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:-webkit-sticky;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 .link-archive{font-size:14px}.seopress-styles .seopress-option .link-archive .dashicons{font-size:18px;width:20px;height:20px;margin:inherit}.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-aio-migrate,.seopress-styles .seopress-option #seopress-rk-migrate,.seopress-styles .seopress-option #seopress-seo-framework-migrate,.seopress-styles .seopress-option #seopress-squirrly-migrate,.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;z-index:10}.seopress-styles .seopress-option #seopress-aio-migrate:hover,.seopress-styles .seopress-option #seopress-rk-migrate:hover,.seopress-styles .seopress-option #seopress-seo-framework-migrate:hover,.seopress-styles .seopress-option #seopress-squirrly-migrate:hover,.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 pre{color:#42b72a;background:#f5f6f7;font-family:Menlo,Monaco,Andale Mono,Courier New,monospace;padding:7px;display:inline-block}.seopress-styles #seopress-navbar{padding:10px .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:40px;margin:0;display:inline-block;height:40px;width:40px;background-size:100%;background-repeat:no-repeat}#seopress-header #seopress-admin h1::before{font-size:14px;line-height:40px;position:absolute;border-radius:6px;font-weight:400;color:#fff;width:40px;height:40px;text-align:center;background:#3a4afb;background:-moz-linear-gradient(45deg,rgba(58,74,251,1) 0,rgba(71,190,165,1) 100%);background:-webkit-linear-gradient(45deg,rgba(58,74,251,1) 0,rgba(71,190,165,1) 100%);background:linear-gradient(45deg,rgba(58,74,251,1) 0,rgba(71,190,165,1) 100%)}#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:inline-block}.seopress-option input[type=password],.seopress-option input[type=text],.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:1.5rem 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-aio-migrate: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 .impact.high.info{background:#0085ba}#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-option .seopress_wrap_single_cpt .feature-state,.seopress-option .seopress_wrap_tax .feature-state{padding:2px 12px;margin:0 0 .5rem .5rem}.seopress-option #tab_seopress_titles_single h2,.seopress-option #tab_seopress_titles_tax h2{margin:2em 0 1em 0;border-top:1px solid #eee;padding:1em 0 0 0}#seopress_cpt .tag-title,#seopress_pro_cpt .tag-title,.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_cpt .wrap-tags,#seopress_pro_cpt .wrap-tags,.seopress-option .wrap-tags{position:relative;display:inline-block;width:100%;margin-bottom:10px}#seopress_cpt .tag-title,#seopress_pro_cpt .tag-title,.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_cpt .tag-title:active,#seopress_cpt .tag-title:focus,#seopress_cpt .tag-title:hover,#seopress_pro_cpt .tag-title:active,#seopress_pro_cpt .tag-title:focus,#seopress_pro_cpt .tag-title:hover,.seopress-option .tag-title:active,.seopress-option .tag-title:focus,.seopress-option .tag-title:hover{background:#232323;color:#fff;user-select:none}#seopress_cpt .tag-title .dashicons,#seopress_pro_cpt .tag-title .dashicons,.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-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_wrap_single_cpt input.toggle,.seopress_wrap_tax input.toggle{margin:0;border:none;min-width: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_wrap_single_cpt input.toggle+label,.seopress_wrap_single_cpt input.toggle+label:before,.seopress_wrap_tax input.toggle+label,.seopress_wrap_tax input.toggle+label:before{width:40px;height:20px}.seopress_wrap_single_cpt input.toggle+label:after,.seopress_wrap_tax input.toggle+label:after{width:20px;height:20px}#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_wrap_single_cpt input.toggle[data-toggle="1"]+label:before,.seopress_wrap_tax input.toggle[data-toggle="1"]+label:before{width:40px;background:#3197d3}#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_wrap_single_cpt input.toggle[data-toggle="1"]+label:after,.seopress_wrap_tax input.toggle[data-toggle="1"]+label:after{box-shadow:inset 0 0 0 1px #3197d3,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:.9rem;text-transform:uppercase;text-align:center;border-radius:0;background:rgba(74,184,102,.9);bottom:0;right:0;z-index:500;width:100%;font-weight:700}.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 0 0 -16px;padding:0 10px;line-height:inherit;background:#fff;position:-webkit-sticky;position:sticky;top:102px;width:calc(100% + 12px);z-index:95;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:-webkit-sticky;position:sticky;background:#f8fafd;z-index:100;top:31px;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:8px 8px;transition:opacity .3s linear;color:#191e23;margin:0;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;position:relative}.seopress-option .nav-tab-active::after{border-bottom:2px solid #0085ba;content:'';position:absolute;width:100%;bottom:0;left:0;display:block}#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}#section-export-redirects,#section-import-redirects{margin-top:-120px;padding-top:120px}.seopress-option .section-tool{border:none;box-shadow:none;background:0 0;position:relative}.seopress-option .section-tool::after{content:'';background:#dedede;height:1px;width:100%;display:block}#tab_seopress_social_accounts .help-social{position:relative;right:0;width:30%}#tab_seopress_social_accounts .form-table{float:left;width:70%}
|
1 |
+
#adminmenu div.wp-menu-image.dashicons-admin-seopress::before,#seopress-header #seopress-admin h1::before{content:"\e800";font-family:seopress!important;font-weight:700;font-size:12px;line-height:20px}#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?81521271);src:url(../fonts/seopress.eot?81521271#iefix) format('embedded-opentype'),url(../fonts/seopress.woff?81521271) format('woff2'),url(../fonts/seopress.woff?81521271) format('woff'),url(../fonts/seopress.ttf?81521271) format('truetype'),url(../fonts/seopress.svg?81521271#seopress) format('svg');font-weight:400;font-style:normal}[class*=" icon-seopress"],[class^=icon-seopress-]{font-family:seopress!important;font-size:14px!important;line-height:24px!important}.icon-seopress-seopress:before{content:"\e800"}.sp-tooltip{position:relative;margin-left:5px;display:inline-block;cursor:help}.sp-tooltip .dashicons{color:#666}.sp-tooltip .sp-tooltiptext{visibility:hidden;position:absolute;z-index:999999999;color:#fff;font-size:.8em;background:#333;text-align:center;width:240px;right:0;border-radius:3px;padding:.618em 1em;box-shadow:0 1px 3px rgba(0,0,0,.2);top:25px}.sp-tooltip:hover .sp-tooltiptext{visibility:visible}#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:none;margin:5px;display:inline-block}#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;flex-wrap:wrap}#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;border:1px solid #f3f4f5;cursor:default;padding:1px}#seopress_cpt .notice{padding:10px 14px}#seopress-analysis-tabs .dashicons,#seopress_cpt .dashicons{vertical-align:middle}#seopress_cpt .inside{margin:0;padding:0}#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:10;margin:0;border-radius:0;padding:0;background:#f3f4f5;border:none}#seopress_content_analysis .ui-tabs .ui-tabs-nav{width:calc(100% + 24px);margin:0 0 0 -12px;position:-webkit-sticky;position:sticky;top:0}#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-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{position:relative;z-index:60;cursor:pointer;border-radius:0;border-bottom:3px solid #0085ba}#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-2 label[for=seopress_robots_primary_cat_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:90%;display:inline-block}#seopress_cpt #tabs-1 input{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:250px;display:inline}#seopress_cpt #tabs-4 #seopress_redirections_value_meta{width:calc(100% - 258px);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,.seopress-option .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 #tabs-3 .box-left{width:44%}#seopress_cpt #tabs-3 .box-right{width:54%}@media only screen and (max-width:1200px){#seopress_cpt .box-left,#seopress_cpt .box-right{float:none;width:100%;margin:0}}@media only screen and (max-width:1500px){#seopress_cpt #tabs-3 .box-left,#seopress_cpt #tabs-3 .box-right{float:none;width:100%;margin:0}}#edittag #seopress_cpt #tabs-3 .box-left,#edittag #seopress_cpt #tabs-3 .box-right{float:none;width:100%;margin:0}#seopress_cpt .google-snippet-preview{font-family:arial,sans-serif;word-break:break-all}#seopress_cpt .google-snippet-preview>p{word-break:normal}#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:14px;font-weight:400;line-height:18.2px;display:inline}#seopress_cpt .google-snippet-preview .snippet-date{color:grey;display:inline}#seopress_cpt .facebook-snippet-box{color:#4b4f56;font-size:14px;width:524px}#seopress_cpt .snippet-meta{display:flex}#seopress_cpt .fb-by,#seopress_cpt .snippet-fb-site-name,#seopress_cpt .snippet-fb-url{color:#606770;font-size:12px;white-space:nowrap;line-height:11px;text-transform:uppercase}#seopress_cpt .fb-sep{padding-left:5px;padding-right:5px;color:#606770;line-height:11px;font-size:12px}#seopress_cpt .facebook-snippet-box .facebook-snippet-text{border:1px solid #dadde1;background-color:#f2f3f5;padding:10px 12px}#seopress_cpt .facebook-snippet-box .title-desc{max-height:46px;overflow:hidden}#seopress_cpt .facebook-snippet-box .snippet-fb-title,#seopress_cpt .facebook-snippet-box .snippet-fb-title-custom,#seopress_cpt .facebook-snippet-box .snippet-fb-title-default{font-size:16px;line-height:20px;margin:3px 0 0;padding-top:2px;color:#1d2129;font-weight:700;overflow:hidden;-webkit-box-orient:vertical;display:-webkit-box;text-overflow:ellipsis;white-space:normal;word-break:break-word;max-height:22px}#seopress_cpt .facebook-snippet-box .snippet-fb-description,#seopress_cpt .facebook-snippet-box .snippet-fb-description-custom,#seopress_cpt .facebook-snippet-box .snippet-fb-description-default{color:#606770;font-size:14px;line-height:20px;word-break:break-word;font-family:Helvetica,Arial,sans-serif;max-height:80px;overflow:hidden;-webkit-box-orient:vertical;display:-webkit-box;text-overflow:ellipsis;white-space:normal;width:100%}#seopress_cpt .facebook-snippet-box img{display:block;height:274px;width:524px;object-fit:cover}#seopress_cpt .wrap-seopress-counters,#seopress_pro_cpt .wrap-seopress-counters{text-align:right;background:#e9ecef;padding:2px 5px;display:flex;font-size:12px;justify-content:flex-end;border-radius:0 0 .25rem .25rem}#seopress_cpt .sp-progress,#seopress_pro_cpt .sp-progress{display:-ms-flexbox;display:flex;height:1rem;overflow:hidden;font-size:.75rem;background-color:#e9ecef;border-radius:.25rem .25rem 0 0}#seopress_cpt .sp-progress-bar,#seopress_pro_cpt .sp-progress-bar{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;color:#fff;text-align:center;white-space:nowrap;background-color:#0085ba;transition:width .6s ease}#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:0;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:2px;padding:0 5px;white-space:nowrap;margin:0;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:5px 10px}#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{color:#191e23;font-weight:700}#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:#191e23;text-decoration:none;height:40px;line-height:40px}#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}#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:-webkit-sticky;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 .link-archive{font-size:14px}.seopress-styles .seopress-option .link-archive .dashicons{font-size:18px;width:20px;height:20px;margin:inherit}.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-aio-migrate,.seopress-styles .seopress-option #seopress-rk-migrate,.seopress-styles .seopress-option #seopress-seo-framework-migrate,.seopress-styles .seopress-option #seopress-squirrly-migrate,.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;z-index:10}.seopress-styles .seopress-option #seopress-aio-migrate:hover,.seopress-styles .seopress-option #seopress-rk-migrate:hover,.seopress-styles .seopress-option #seopress-seo-framework-migrate:hover,.seopress-styles .seopress-option #seopress-squirrly-migrate:hover,.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 pre{color:#42b72a;background:#f5f6f7;font-family:Menlo,Monaco,Andale Mono,Courier New,monospace;padding:7px;display:inline-block}.seopress-styles #seopress-navbar{padding:10px .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:40px;margin:0;display:inline-block;height:40px;width:40px;background-size:100%;background-repeat:no-repeat}#seopress-header #seopress-admin h1::before{font-size:14px;line-height:40px;position:absolute;border-radius:6px;font-weight:400;color:#fff;width:40px;height:40px;text-align:center;background:#3a4afb;background:-moz-linear-gradient(45deg,rgba(58,74,251,1) 0,rgba(71,190,165,1) 100%);background:-webkit-linear-gradient(45deg,rgba(58,74,251,1) 0,rgba(71,190,165,1) 100%);background:linear-gradient(45deg,rgba(58,74,251,1) 0,rgba(71,190,165,1) 100%)}#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:inline-block}.seopress-option input[type=password],.seopress-option input[type=text],.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:1.5rem 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 .wp-picker-container button{box-shadow:none;border:1px solid #0071a1;border-radius:3px;background:#f3f5f6;text-transform:none}.seopress-option .wp-picker-container input[type=text].wp-color-picker{min-width:inherit}.seopress-option .wp-picker-container .wp-picker-clear{box-shadow:none;text-transform:none;border-radius:0;background:0 0}.seopress-option .wp-picker-container .wp-picker-clear:hover{background:0 0;text-decoration:currentColor;color:inherit}.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-aio-migrate: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 .impact.high.info{background:#0085ba}#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-option .seopress_wrap_single_cpt .feature-state,.seopress-option .seopress_wrap_tax .feature-state{padding:2px 12px;margin:0 0 .5rem .5rem}.seopress-option #tab_seopress_titles_single h2,.seopress-option #tab_seopress_titles_tax h2{margin:2em 0 1em 0;border-top:1px solid #eee;padding:1em 0 0 0}#seopress_cpt .tag-title,#seopress_pro_cpt .tag-title,.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_cpt .wrap-tags,#seopress_pro_cpt .wrap-tags,.seopress-option .wrap-tags{position:relative;display:inline-block;width:100%;margin-bottom:10px}#seopress_cpt .tag-title,#seopress_pro_cpt .tag-title,.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_cpt .tag-title:active,#seopress_cpt .tag-title:focus,#seopress_cpt .tag-title:hover,#seopress_pro_cpt .tag-title:active,#seopress_pro_cpt .tag-title:focus,#seopress_pro_cpt .tag-title:hover,.seopress-option .tag-title:active,.seopress-option .tag-title:focus,.seopress-option .tag-title:hover{background:#232323;color:#fff;user-select:none}#seopress_cpt .tag-title .dashicons,#seopress_pro_cpt .tag-title .dashicons,.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-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_wrap_single_cpt input.toggle,.seopress_wrap_tax input.toggle{margin:0;border:none;min-width: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_wrap_single_cpt input.toggle+label,.seopress_wrap_single_cpt input.toggle+label:before,.seopress_wrap_tax input.toggle+label,.seopress_wrap_tax input.toggle+label:before{width:40px;height:20px}.seopress_wrap_single_cpt input.toggle+label:after,.seopress_wrap_tax input.toggle+label:after{width:20px;height:20px}#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_wrap_single_cpt input.toggle[data-toggle="1"]+label:before,.seopress_wrap_tax input.toggle[data-toggle="1"]+label:before{width:40px;background:#3197d3}#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_wrap_single_cpt input.toggle[data-toggle="1"]+label:after,.seopress_wrap_tax input.toggle[data-toggle="1"]+label:after{box-shadow:inset 0 0 0 1px #3197d3,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:.9rem;text-transform:uppercase;text-align:center;border-radius:0;background:rgba(74,184,102,.9);bottom:0;right:0;z-index:500;width:100%;font-weight:700}.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 0 0 -16px;padding:0 10px;line-height:inherit;background:#fff;position:-webkit-sticky;position:sticky;top:102px;width:calc(100% + 12px);z-index:95;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:-webkit-sticky;position:sticky;background:#f8fafd;z-index:100;top:31px;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:8px 8px;transition:opacity .3s linear;color:#191e23;margin:0;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;position:relative}.seopress-option .nav-tab-active::after{border-bottom:2px solid #0085ba;content:'';position:absolute;width:100%;bottom:0;left:0;display:block}#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}#section-export-redirects,#section-import-redirects{margin-top:-120px;padding-top:120px}.seopress-option .section-tool{border:none;box-shadow:none;background:0 0;position:relative}.seopress-option .section-tool::after{content:'';background:#dedede;height:1px;width:100%;display:block}#tab_seopress_social_accounts .help-social{position:relative;right:0;width:30%}#tab_seopress_social_accounts .form-table{float:left;width:70%}
|
assets/js/seopress-block-editor.js
CHANGED
@@ -21,20 +21,53 @@ let hasSaved = false;
|
|
21 |
seopress_analysis_target_kw: $('#seopress_analysis_target_kw_meta').val(),
|
22 |
_ajax_nonce: seopressAjaxRealPreview.seopress_nonce,
|
23 |
},
|
24 |
-
success : function(
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
$( '#seopress_analysis_results_state' ).fadeIn().css('display', 'inline-block');
|
39 |
$( '#seopress_analysis_results_state' ).delay(3500).fadeOut();
|
40 |
$( '#seopress-analysis-tabs-1' ).load(' #seopress-analysis-tabs-1');
|
21 |
seopress_analysis_target_kw: $('#seopress_analysis_target_kw_meta').val(),
|
22 |
_ajax_nonce: seopressAjaxRealPreview.seopress_nonce,
|
23 |
},
|
24 |
+
success : function( s ) {
|
25 |
+
var data_arr = {og_title : s.data.og_title.values,
|
26 |
+
og_desc : s.data.og_desc.values,
|
27 |
+
og_img : s.data.og_img.values,
|
28 |
+
og_url : s.data.og_url.host,
|
29 |
+
og_site_name : s.data.og_site_name.values,
|
30 |
+
tw_title : s.data.tw_title.values,
|
31 |
+
tw_desc : s.data.tw_desc.values,
|
32 |
+
tw_img : s.data.tw_img.values
|
33 |
+
};
|
34 |
+
|
35 |
+
for (var key in data_arr) {
|
36 |
+
if (data_arr[key].length) {
|
37 |
+
if (data_arr[key].length > 1) {
|
38 |
+
key = data_arr[key].slice(-1)[0];
|
39 |
+
} else {
|
40 |
+
key = data_arr[key][0];
|
41 |
+
}
|
42 |
+
}
|
43 |
+
}
|
44 |
+
|
45 |
+
$( '#seopress_cpt .google-snippet-preview .snippet-title' ).html(s.data.title);
|
46 |
+
$( '#seopress_cpt .google-snippet-preview .snippet-title-default' ).html(s.data.title);
|
47 |
+
$( '#seopress_titles_title_meta' ).attr("placeholder", s.data.title);
|
48 |
+
$( '#seopress_cpt .google-snippet-preview .snippet-description' ).html(s.data.meta_desc);
|
49 |
+
$( '#seopress_cpt .google-snippet-preview .snippet-description-default' ).html(s.data.meta_desc);
|
50 |
+
$( '#seopress_titles_desc_meta' ).attr("placeholder", s.data.meta_desc);
|
51 |
+
|
52 |
+
$( '#seopress_cpt #seopress_social_fb_title_meta' ).attr("placeholder", data_arr.og_title);
|
53 |
+
$( '#seopress_cpt .facebook-snippet-preview .snippet-fb-title').html(data_arr.og_title);
|
54 |
+
$( '#seopress_cpt .facebook-snippet-preview .snippet-fb-title-default').html(data_arr.og_title);
|
55 |
+
|
56 |
+
$( '#seopress_cpt #seopress_social_fb_desc_meta' ).attr("placeholder", data_arr.og_desc);
|
57 |
+
$( '#seopress_cpt .facebook-snippet-preview .snippet-fb-description').html(data_arr.og_desc);
|
58 |
+
$( '#seopress_cpt .facebook-snippet-preview .snippet-fb-description-default').html(data_arr.og_desc);
|
59 |
+
|
60 |
+
$( '#seopress_cpt #seopress_social_fb_img_meta' ).attr("placeholder", data_arr.og_img);
|
61 |
+
$( '#seopress_cpt .snippet-fb-img img' ).attr("src", data_arr.og_img);
|
62 |
+
$( '#seopress_cpt .snippet-fb-img-default img' ).attr("src", data_arr.og_img);
|
63 |
+
|
64 |
+
$("#seopress_cpt .facebook-snippet-preview .snippet-fb-url").html(data_arr.og_url),
|
65 |
+
$("#seopress_cpt .facebook-snippet-preview .snippet-fb-site-name").html(data_arr.og_site_name),
|
66 |
+
|
67 |
+
$( '#seopress_cpt #seopress_social_twitter_title_meta' ).attr("placeholder", data_arr.tw_title);
|
68 |
+
$( '#seopress_cpt #seopress_social_twitter_desc_meta' ).attr("placeholder", data_arr.tw_desc);
|
69 |
+
$( '#seopress_cpt #seopress_social_twitter_img_meta' ).attr("placeholder", data_arr.tw_img);
|
70 |
+
$( '#seopress_cpt #seopress_robots_canonical_meta').attr('placeholder', s.data.canonical),
|
71 |
$( '#seopress_analysis_results_state' ).fadeIn().css('display', 'inline-block');
|
72 |
$( '#seopress_analysis_results_state' ).delay(3500).fadeOut();
|
73 |
$( '#seopress-analysis-tabs-1' ).load(' #seopress-analysis-tabs-1');
|
assets/js/seopress-counters.js
CHANGED
@@ -73,16 +73,16 @@ function sp_meta_desc_counters() {
|
|
73 |
jQuery("#seopress_titles_desc_counters").after('<div id="seopress_titles_desc_counters_val">/ 160</div>'),
|
74 |
|
75 |
meta_desc_val.length > 0 ? (jQuery("#seopress_titles_desc_counters").text(meta_desc_val.length),
|
76 |
-
jQuery("#seopress_titles_desc_pixel").text(
|
77 |
-
jQuery("#seopress_titles_desc_pixel").text(
|
78 |
|
79 |
meta_desc_val.length > 160 ? jQuery("#seopress_titles_desc_counters").css("color", "red") : meta_desc_placeholder.length > 160 && jQuery("#seopress_titles_desc_counters").css("color", "red"),
|
80 |
-
|
81 |
|
82 |
if (meta_desc_val.length) {
|
83 |
-
var progress = Math.round(
|
84 |
} else {
|
85 |
-
var progress = Math.round(
|
86 |
}
|
87 |
|
88 |
if (progress >= 100) {
|
@@ -101,16 +101,16 @@ function sp_meta_desc_counters() {
|
|
101 |
jQuery('#seopress_titles_desc_pixel').css('color', 'inherit'),
|
102 |
|
103 |
meta_desc_val.length > 160 && jQuery("#seopress_titles_desc_counters").css("color", "red"),
|
104 |
-
|
105 |
|
106 |
if (meta_desc_val.length == 0) {
|
107 |
meta_desc_placeholder.length > 160 && jQuery("#seopress_titles_desc_counters").css("color", "red"),
|
108 |
-
|
109 |
}
|
110 |
|
111 |
meta_desc_val.length > 0 ? (jQuery("#seopress_titles_desc_counters").text(meta_desc_val.length),
|
112 |
-
jQuery("#seopress_titles_desc_pixel").text(
|
113 |
-
jQuery("#seopress_titles_desc_pixel").text(
|
114 |
jQuery(".snippet-description").css("display", "none"),
|
115 |
jQuery(".snippet-description-custom").css("display", "inline"),
|
116 |
jQuery(".snippet-description-default").css("display", "none")) : 0 == meta_desc_val.length && (jQuery(".snippet-description-default").css("display", "inline"),
|
@@ -118,9 +118,9 @@ function sp_meta_desc_counters() {
|
|
118 |
jQuery(".snippet-description").css("display", "none"));
|
119 |
|
120 |
if (meta_desc_val.length) {
|
121 |
-
var progress = Math.round(
|
122 |
} else {
|
123 |
-
var progress = Math.round(
|
124 |
}
|
125 |
|
126 |
if (progress >= 100) {
|
@@ -156,10 +156,63 @@ function sp_meta_desc_counters() {
|
|
156 |
}
|
157 |
|
158 |
function pixelTitle(e) {
|
159 |
-
|
160 |
-
|
161 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
}
|
|
|
163 |
jQuery(document).ready(function(e) {
|
164 |
function s() {
|
165 |
e.ajax({
|
@@ -175,22 +228,52 @@ jQuery(document).ready(function(e) {
|
|
175 |
_ajax_nonce: seopressAjaxRealPreview.seopress_nonce
|
176 |
},
|
177 |
success: function(s) {
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
e("#seopress_cpt .google-snippet-preview .snippet-title").html(s.data.title),
|
183 |
e("#seopress_cpt .google-snippet-preview .snippet-title-default").html(s.data.title),
|
184 |
e("#seopress_titles_title_meta").attr("placeholder", s.data.title),
|
185 |
e("#seopress_cpt .google-snippet-preview .snippet-description").html(s.data.meta_desc),
|
186 |
e("#seopress_cpt .google-snippet-preview .snippet-description-default").html(s.data.meta_desc),
|
187 |
e("#seopress_titles_desc_meta").attr("placeholder", s.data.meta_desc),
|
188 |
-
|
189 |
-
e("#seopress_cpt #
|
190 |
-
e("#seopress_cpt
|
191 |
-
e("#seopress_cpt
|
192 |
-
|
193 |
-
e("#seopress_cpt #
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
e("#seopress_cpt #seopress_robots_canonical_meta").attr("placeholder", s.data.canonical),
|
195 |
e("#seopress_analysis_results_state").fadeIn().css("display", "inline-block"),
|
196 |
e("#seopress_analysis_results_state").delay(3500).fadeOut(),
|
@@ -201,7 +284,8 @@ jQuery(document).ready(function(e) {
|
|
201 |
e(" #seopress_titles_title_counters_val").remove(),
|
202 |
e(" #seopress_titles_desc_counters_val").remove(),
|
203 |
sp_titles_counters(),
|
204 |
-
sp_meta_desc_counters()
|
|
|
205 |
}
|
206 |
})
|
207 |
}
|
73 |
jQuery("#seopress_titles_desc_counters").after('<div id="seopress_titles_desc_counters_val">/ 160</div>'),
|
74 |
|
75 |
meta_desc_val.length > 0 ? (jQuery("#seopress_titles_desc_counters").text(meta_desc_val.length),
|
76 |
+
jQuery("#seopress_titles_desc_pixel").text(pixelDesc(meta_desc_val))) : meta_desc_placeholder.length && (jQuery("#seopress_titles_desc_counters").text(meta_desc_placeholder.length),
|
77 |
+
jQuery("#seopress_titles_desc_pixel").text(pixelDesc(meta_desc_placeholder))),
|
78 |
|
79 |
meta_desc_val.length > 160 ? jQuery("#seopress_titles_desc_counters").css("color", "red") : meta_desc_placeholder.length > 160 && jQuery("#seopress_titles_desc_counters").css("color", "red"),
|
80 |
+
pixelDesc(meta_desc_val) > 940 ? jQuery("#seopress_titles_desc_pixel").css("color", "red") : pixelDesc(meta_desc_placeholder) > 940 && jQuery("#seopress_titles_desc_pixel").css("color", "red");
|
81 |
|
82 |
if (meta_desc_val.length) {
|
83 |
+
var progress = Math.round(pixelDesc(meta_desc_val)/940*100);
|
84 |
} else {
|
85 |
+
var progress = Math.round(pixelDesc(meta_desc_placeholder)/940*100);
|
86 |
}
|
87 |
|
88 |
if (progress >= 100) {
|
101 |
jQuery('#seopress_titles_desc_pixel').css('color', 'inherit'),
|
102 |
|
103 |
meta_desc_val.length > 160 && jQuery("#seopress_titles_desc_counters").css("color", "red"),
|
104 |
+
pixelDesc(meta_desc_val) > 940 && jQuery("#seopress_titles_desc_pixel").css("color", "red");
|
105 |
|
106 |
if (meta_desc_val.length == 0) {
|
107 |
meta_desc_placeholder.length > 160 && jQuery("#seopress_titles_desc_counters").css("color", "red"),
|
108 |
+
pixelDesc(meta_desc_placeholder) > 940 && jQuery("#seopress_titles_desc_pixel").css("color", "red")
|
109 |
}
|
110 |
|
111 |
meta_desc_val.length > 0 ? (jQuery("#seopress_titles_desc_counters").text(meta_desc_val.length),
|
112 |
+
jQuery("#seopress_titles_desc_pixel").text(pixelDesc(meta_desc_val))) : meta_desc_placeholder.length && (jQuery("#seopress_titles_desc_counters").text(meta_desc_placeholder.length),
|
113 |
+
jQuery("#seopress_titles_desc_pixel").text(pixelDesc(meta_desc_placeholder))), meta_desc_val.length > 0 ? (jQuery(".snippet-description-custom").text(e.target.value),
|
114 |
jQuery(".snippet-description").css("display", "none"),
|
115 |
jQuery(".snippet-description-custom").css("display", "inline"),
|
116 |
jQuery(".snippet-description-default").css("display", "none")) : 0 == meta_desc_val.length && (jQuery(".snippet-description-default").css("display", "inline"),
|
118 |
jQuery(".snippet-description").css("display", "none"));
|
119 |
|
120 |
if (meta_desc_val.length) {
|
121 |
+
var progress = Math.round(pixelDesc(meta_desc_val)/940*100);
|
122 |
} else {
|
123 |
+
var progress = Math.round(pixelDesc(meta_desc_placeholder)/940*100);
|
124 |
}
|
125 |
|
126 |
if (progress >= 100) {
|
156 |
}
|
157 |
|
158 |
function pixelTitle(e) {
|
159 |
+
inputText = e;
|
160 |
+
font = "18px Arial";
|
161 |
+
|
162 |
+
canvas = document.createElement("canvas");
|
163 |
+
context = canvas.getContext("2d");
|
164 |
+
context.font = font;
|
165 |
+
width = context.measureText(inputText).width;
|
166 |
+
formattedWidth = Math.ceil(width);
|
167 |
+
|
168 |
+
return formattedWidth;
|
169 |
+
}
|
170 |
+
|
171 |
+
function pixelDesc(e) {
|
172 |
+
inputText = e;
|
173 |
+
font = "14px Arial";
|
174 |
+
|
175 |
+
canvas = document.createElement("canvas");
|
176 |
+
context = canvas.getContext("2d");
|
177 |
+
context.font = font;
|
178 |
+
width = context.measureText(inputText).width;
|
179 |
+
formattedWidth = Math.ceil(width);
|
180 |
+
|
181 |
+
return formattedWidth;
|
182 |
+
}
|
183 |
+
|
184 |
+
function sp_social() {
|
185 |
+
jQuery("#seopress_social_fb_title_meta, #seopress-tag-single-title, #seopress-tag-single-site-title, #seopress-tag-single-sep").on('keyup paste change click', function(e) {
|
186 |
+
var meta_fb_title_val = jQuery("#seopress_social_fb_title_meta").val();
|
187 |
+
|
188 |
+
meta_fb_title_val.length > 0 ? (jQuery(".snippet-fb-title-custom").text(e.target.value),
|
189 |
+
jQuery(".snippet-fb-title").css("display", "none"),
|
190 |
+
jQuery(".snippet-fb-title-custom").css("display", "block"),
|
191 |
+
jQuery(".snippet-fb-title-default").css("display", "none")) : 0 == meta_fb_title_val.length && (jQuery(".snippet-fb-title-default").css("display", "block"),
|
192 |
+
jQuery(".snippet-fb-title-custom").css("display", "none"), jQuery(".snippet-fb-title").css("display", "none"))
|
193 |
+
})
|
194 |
+
|
195 |
+
jQuery("#seopress_social_fb_desc_meta").on('keyup paste change click', function(e) {
|
196 |
+
var meta_fb_desc_val = jQuery("#seopress_social_fb_desc_meta").val();
|
197 |
+
|
198 |
+
meta_fb_desc_val.length > 0 ? (jQuery(".snippet-fb-description-custom").text(e.target.value),
|
199 |
+
jQuery(".snippet-fb-description").css("display", "none"),
|
200 |
+
jQuery(".snippet-fb-description-custom").css("display", "block"),
|
201 |
+
jQuery(".snippet-fb-description-default").css("display", "none")) : 0 == meta_fb_desc_val.length && (jQuery(".snippet-fb-description-default").css("display", "block"),
|
202 |
+
jQuery(".snippet-fb-description-custom").css("display", "none"), jQuery(".snippet-fb-description").css("display", "none"));
|
203 |
+
})
|
204 |
+
|
205 |
+
jQuery("#seopress_social_fb_img_meta").on('keyup paste change click', function(e) {
|
206 |
+
var meta_fb_img_val = jQuery("#seopress_social_fb_img_meta").val();
|
207 |
+
|
208 |
+
meta_fb_img_val.length > 0 ? (jQuery(".snippet-fb-img-custom img").attr("src",e.target.value),
|
209 |
+
jQuery(".snippet-fb-img").css("display", "none"),
|
210 |
+
jQuery(".snippet-fb-img-custom").css("display", "block"),
|
211 |
+
jQuery(".snippet-fb-img-default").css("display", "none")) : 0 == meta_fb_img_val.length && (jQuery(".snippet-fb-img-default").css("display", "block"),
|
212 |
+
jQuery(".snippet-fb-img-custom").css("display", "none"), jQuery(".snippet-fb-img").css("display", "none"));
|
213 |
+
})
|
214 |
}
|
215 |
+
|
216 |
jQuery(document).ready(function(e) {
|
217 |
function s() {
|
218 |
e.ajax({
|
228 |
_ajax_nonce: seopressAjaxRealPreview.seopress_nonce
|
229 |
},
|
230 |
success: function(s) {
|
231 |
+
var data_arr = {og_title : s.data.og_title.values,
|
232 |
+
og_desc : s.data.og_desc.values,
|
233 |
+
og_img : s.data.og_img.values,
|
234 |
+
og_url : s.data.og_url.host,
|
235 |
+
og_site_name : s.data.og_site_name.values,
|
236 |
+
tw_title : s.data.tw_title.values,
|
237 |
+
tw_desc : s.data.tw_desc.values,
|
238 |
+
tw_img : s.data.tw_img.values
|
239 |
+
};
|
240 |
+
|
241 |
+
for (var key in data_arr) {
|
242 |
+
if (data_arr.length) {
|
243 |
+
if (data_arr[key].length > 1) {
|
244 |
+
key = data_arr[key].slice(-1)[0];
|
245 |
+
} else {
|
246 |
+
key = data_arr[key][0];
|
247 |
+
}
|
248 |
+
}
|
249 |
+
}
|
250 |
+
|
251 |
e("#seopress_cpt .google-snippet-preview .snippet-title").html(s.data.title),
|
252 |
e("#seopress_cpt .google-snippet-preview .snippet-title-default").html(s.data.title),
|
253 |
e("#seopress_titles_title_meta").attr("placeholder", s.data.title),
|
254 |
e("#seopress_cpt .google-snippet-preview .snippet-description").html(s.data.meta_desc),
|
255 |
e("#seopress_cpt .google-snippet-preview .snippet-description-default").html(s.data.meta_desc),
|
256 |
e("#seopress_titles_desc_meta").attr("placeholder", s.data.meta_desc),
|
257 |
+
|
258 |
+
e("#seopress_cpt #seopress_social_fb_title_meta").attr("placeholder", data_arr.og_title),
|
259 |
+
e("#seopress_cpt .facebook-snippet-preview .snippet-fb-title").html(data_arr.og_title),
|
260 |
+
e("#seopress_cpt .facebook-snippet-preview .snippet-fb-title-default").html(data_arr.og_title),
|
261 |
+
|
262 |
+
e("#seopress_cpt #seopress_social_fb_desc_meta").attr("placeholder", data_arr.og_desc),
|
263 |
+
e("#seopress_cpt .facebook-snippet-preview .snippet-fb-description").html(data_arr.og_desc),
|
264 |
+
e("#seopress_cpt .facebook-snippet-preview .snippet-fb-description-default").html(data_arr.og_desc),
|
265 |
+
|
266 |
+
e("#seopress_cpt #seopress_social_fb_img_meta").attr("placeholder", data_arr.og_img),
|
267 |
+
e("#seopress_cpt .facebook-snippet-preview .snippet-fb-img img").attr("src", data_arr.og_img),
|
268 |
+
e("#seopress_cpt .facebook-snippet-preview .snippet-fb-img-default img").attr("src", data_arr.og_img),
|
269 |
+
|
270 |
+
e("#seopress_cpt .facebook-snippet-preview .snippet-fb-url").html(data_arr.og_url),
|
271 |
+
e("#seopress_cpt .facebook-snippet-preview .snippet-fb-site-name").html(data_arr.og_site_name),
|
272 |
+
|
273 |
+
e("#seopress_cpt #seopress_social_twitter_title_meta").attr("placeholder", data_arr.tw_title),
|
274 |
+
e("#seopress_cpt #seopress_social_twitter_desc_meta").attr("placeholder", data_arr.tw_desc),
|
275 |
+
e("#seopress_cpt #seopress_social_twitter_img_meta").attr("placeholder", data_arr.tw_img),
|
276 |
+
|
277 |
e("#seopress_cpt #seopress_robots_canonical_meta").attr("placeholder", s.data.canonical),
|
278 |
e("#seopress_analysis_results_state").fadeIn().css("display", "inline-block"),
|
279 |
e("#seopress_analysis_results_state").delay(3500).fadeOut(),
|
284 |
e(" #seopress_titles_title_counters_val").remove(),
|
285 |
e(" #seopress_titles_desc_counters_val").remove(),
|
286 |
sp_titles_counters(),
|
287 |
+
sp_meta_desc_counters(),
|
288 |
+
sp_social()
|
289 |
}
|
290 |
})
|
291 |
}
|
assets/js/seopress-counters.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function sp_titles_counters(){var e=jQuery("#seopress_titles_title_meta").val(),s=jQuery("#seopress_titles_title_meta").attr("placeholder");if(jQuery("#seopress_titles_title_counters").after('<div id="seopress_titles_title_counters_val">/ 60</div>'),e.length>0?(jQuery("#seopress_titles_title_counters").text(e.length),jQuery("#seopress_titles_title_pixel").text(pixelTitle(e))):s.length&&(jQuery("#seopress_titles_title_counters").text(s.length),jQuery("#seopress_titles_title_pixel").text(pixelTitle(s))),e.length>60?jQuery("#seopress_titles_title_counters").css("color","red"):s.length>60&&jQuery("#seopress_titles_title_counters").css("color","red"),pixelTitle(e)>568?jQuery("#seopress_titles_title_pixel").css("color","red"):pixelTitle(s)>568&&jQuery("#seopress_titles_title_pixel").css("color","red"),e.length)var t=Math.round(pixelTitle(e)/568*100);else t=Math.round(pixelTitle(s)/568*100);t>=100&&(t=100),jQuery("#seopress_titles_title_counters_progress").attr("aria-valuenow",t),jQuery("#seopress_titles_title_counters_progress").text(t+"%"),jQuery("#seopress_titles_title_counters_progress").css("width",t+"%"),jQuery("#seopress_titles_title_meta, #seopress-tag-single-title, #seopress-tag-single-site-title, #seopress-tag-single-sep").on("keyup paste change click",function(e){var s=jQuery("#seopress_titles_title_meta").val(),t=jQuery("#seopress_titles_title_meta").attr("placeholder");if(jQuery("#seopress_titles_title_counters").css("color","inherit"),jQuery("#seopress_titles_title_pixel").css("color","inherit"),s.length>60&&jQuery("#seopress_titles_title_counters").css("color","red"),pixelTitle(s)>568&&jQuery("#seopress_titles_title_pixel").css("color","red"),0==s.length&&(t.length>60&&jQuery("#seopress_titles_title_counters").css("color","red"),pixelTitle(t)>568&&jQuery("#seopress_titles_title_pixel").css("color","red")),s.length>0?(jQuery("#seopress_titles_title_counters").text(s.length),jQuery("#seopress_titles_title_pixel").text(pixelTitle(s))):t.length&&(jQuery("#seopress_titles_title_counters").text(t.length),jQuery("#seopress_titles_title_pixel").text(pixelTitle(t))),s.length>0?(jQuery(".snippet-title-custom").text(e.target.value),jQuery(".snippet-title").css("display","none"),jQuery(".snippet-title-custom").css("display","block"),jQuery(".snippet-title-default").css("display","none")):0==s.length&&(jQuery(".snippet-title-default").css("display","block"),jQuery(".snippet-title-custom").css("display","none"),jQuery(".snippet-title").css("display","none")),s.length)var r=Math.round(pixelTitle(s)/568*100);else r=Math.round(pixelTitle(t)/568*100);r>=100&&(r=100),jQuery("#seopress_titles_title_counters_progress").attr("aria-valuenow",r),jQuery("#seopress_titles_title_counters_progress").text(r+"%"),jQuery("#seopress_titles_title_counters_progress").css("width",r+"%")})}function sp_meta_desc_counters(){var e=jQuery("#seopress_titles_desc_meta").val(),s=jQuery("#seopress_titles_desc_meta").attr("placeholder");if(jQuery("#seopress_titles_desc_counters").after('<div id="seopress_titles_desc_counters_val">/ 160</div>'),e.length>0?(jQuery("#seopress_titles_desc_counters").text(e.length),jQuery("#seopress_titles_desc_pixel").text(pixelTitle(e))):s.length&&(jQuery("#seopress_titles_desc_counters").text(s.length),jQuery("#seopress_titles_desc_pixel").text(pixelTitle(s))),e.length>160?jQuery("#seopress_titles_desc_counters").css("color","red"):s.length>160&&jQuery("#seopress_titles_desc_counters").css("color","red"),pixelTitle(e)>940?jQuery("#seopress_titles_desc_pixel").css("color","red"):pixelTitle(s)>940&&jQuery("#seopress_titles_desc_pixel").css("color","red"),e.length)var t=Math.round(pixelTitle(e)/940*100);else t=Math.round(pixelTitle(s)/940*100);t>=100&&(t=100),jQuery("#seopress_titles_desc_counters_progress").attr("aria-valuenow",t),jQuery("#seopress_titles_desc_counters_progress").text(t+"%"),jQuery("#seopress_titles_desc_counters_progress").css("width",t+"%"),jQuery("#seopress_titles_desc_meta, #seopress-tag-single-excerpt").on("keyup paste change click",function(e){var s=jQuery("#seopress_titles_desc_meta").val(),t=jQuery("#seopress_titles_desc_meta").attr("placeholder");if(jQuery("#seopress_titles_desc_counters").css("color","inherit"),jQuery("#seopress_titles_desc_pixel").css("color","inherit"),s.length>160&&jQuery("#seopress_titles_desc_counters").css("color","red"),pixelTitle(s)>940&&jQuery("#seopress_titles_desc_pixel").css("color","red"),0==s.length&&(t.length>160&&jQuery("#seopress_titles_desc_counters").css("color","red"),pixelTitle(t)>940&&jQuery("#seopress_titles_desc_pixel").css("color","red")),s.length>0?(jQuery("#seopress_titles_desc_counters").text(s.length),jQuery("#seopress_titles_desc_pixel").text(pixelTitle(s))):t.length&&(jQuery("#seopress_titles_desc_counters").text(t.length),jQuery("#seopress_titles_desc_pixel").text(pixelTitle(t))),s.length>0?(jQuery(".snippet-description-custom").text(e.target.value),jQuery(".snippet-description").css("display","none"),jQuery(".snippet-description-custom").css("display","inline"),jQuery(".snippet-description-default").css("display","none")):0==s.length&&(jQuery(".snippet-description-default").css("display","inline"),jQuery(".snippet-description-custom").css("display","none"),jQuery(".snippet-description").css("display","none")),s.length)var r=Math.round(pixelTitle(s)/940*100);else r=Math.round(pixelTitle(t)/940*100);r>=100&&(r=100),jQuery("#seopress_titles_desc_counters_progress").attr("aria-valuenow",r),jQuery("#seopress_titles_desc_counters_progress").text(r+"%"),jQuery("#seopress_titles_desc_counters_progress").css("width",r+"%")}),jQuery("#excerpt, .editor-post-excerpt textarea").keyup(function(e){var s=jQuery("#seopress_titles_desc_meta").val(),t=jQuery("#seopress_titles_desc_meta").attr("placeholder");if(0==s.length&&0==jQuery(".snippet-description-custom").val().length&&(jQuery(".snippet-description-custom").text(e.target.value),jQuery(".snippet-description").css("display","none"),jQuery(".snippet-description-custom").css("display","inline"),jQuery(".snippet-description-default").css("display","none")),s.length)var r=s.length;else r=t.length;r>=100&&(r=100),jQuery("#seopress_titles_desc_counters_progress").attr("aria-valuenow",r),jQuery("#seopress_titles_desc_counters_progress").text(r+"%"),jQuery("#seopress_titles_desc_counters_progress").css("width",r+"%")})}function pixelTitle(e){for(var s=[5,6,6,18,9,9,10,10,10,10,10,10,10,12,12,12,12,10,10,10,5,5,6,10,10,16,12,3,6,6,7,11,5,6,5,5,10,10,10,10,10,10,10,10,10,10,5,5,11,11,11,10,18,12,12,13,13,12,11,14,13,5,9,12,10,15,13,14,12,14,13,12,11,13,12,17,12,12,11,5,5,5,8,10,6,10,10,9,10,10,10,5,10,10,4,4,9,4,15,10,10,10,10,6,9,9,5,10,9,13,9,9,9,6,5,6,11,10,0,0,4,4,10,10],t=0,r=0;r<e.length;r++)t+=s[" ·˙・“”«»äåàô€ÀÈÊÉéèê !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcçdefghijklmnopqrstuüvwxyz{|}~–\n\r‘’£…".indexOf(e.substring(r,r+1))];return t}jQuery(document).ready(function(e){function s(){e.ajax({method:"GET",url:seopressAjaxRealPreview.seopress_real_preview,data:{action:"seopress_do_real_preview",post_id:e("#seopress-tabs").attr("data_id"),tax_name:e("#seopress-tabs").attr("data_tax"),origin:e("#seopress-tabs").attr("data_origin"),post_type:e("#seopress_launch_analysis").attr("data_post_type"),seopress_analysis_target_kw:e("#seopress_analysis_target_kw_meta").val(),_ajax_nonce:seopressAjaxRealPreview.seopress_nonce},success:function(s){Object.keys(s.data).forEach(e=>{let t=document.createElement("textarea");t.innerHTML=s.data[e],s.data[e]=t.textContent}),e("#seopress_cpt .google-snippet-preview .snippet-title").html(s.data.title),e("#seopress_cpt .google-snippet-preview .snippet-title-default").html(s.data.title),e("#seopress_titles_title_meta").attr("placeholder",s.data.title),e("#seopress_cpt .google-snippet-preview .snippet-description").html(s.data.meta_desc),e("#seopress_cpt .google-snippet-preview .snippet-description-default").html(s.data.meta_desc),e("#seopress_titles_desc_meta").attr("placeholder",s.data.meta_desc),e("#seopress_cpt #seopress_social_fb_title_meta").attr("placeholder",s.data.og_title),e("#seopress_cpt #seopress_social_fb_desc_meta").attr("placeholder",s.data.og_desc),e("#seopress_cpt #seopress_social_fb_img_meta").attr("placeholder",s.data.og_img),e("#seopress_cpt #seopress_social_twitter_title_meta").attr("placeholder",s.data.tw_title),e("#seopress_cpt #seopress_social_twitter_desc_meta").attr("placeholder",s.data.tw_desc),e("#seopress_cpt #seopress_social_twitter_img_meta").attr("placeholder",s.data.tw_img),e("#seopress_cpt #seopress_robots_canonical_meta").attr("placeholder",s.data.canonical),e("#seopress_analysis_results_state").fadeIn().css("display","inline-block"),e("#seopress_analysis_results_state").delay(3500).fadeOut(),e("#seopress-analysis-tabs-1").load(" #seopress-analysis-tabs-1"),e("#seopress-analysis-tabs-2").load(" #seopress-analysis-tabs-2"),e("#seopress-analysis-tabs-3").load(" #seopress-analysis-tabs-3"),e("#seopress-analysis-tabs-4").load(" #seopress-analysis-tabs-4"),e(" #seopress_titles_title_counters_val").remove(),e(" #seopress_titles_desc_counters_val").remove(),sp_titles_counters(),sp_meta_desc_counters()}})}e("#seopress-analysis-tabs .hidden").removeClass("hidden"),e("#seopress-analysis-tabs").tabs(),s(),e("#seopress_launch_analysis").on("click",function(){s()})});
|
1 |
+
function sp_titles_counters(){var e=jQuery("#seopress_titles_title_meta").val(),s=jQuery("#seopress_titles_title_meta").attr("placeholder");if(jQuery("#seopress_titles_title_counters").after('<div id="seopress_titles_title_counters_val">/ 60</div>'),e.length>0?(jQuery("#seopress_titles_title_counters").text(e.length),jQuery("#seopress_titles_title_pixel").text(pixelTitle(e))):s.length&&(jQuery("#seopress_titles_title_counters").text(s.length),jQuery("#seopress_titles_title_pixel").text(pixelTitle(s))),e.length>60?jQuery("#seopress_titles_title_counters").css("color","red"):s.length>60&&jQuery("#seopress_titles_title_counters").css("color","red"),pixelTitle(e)>568?jQuery("#seopress_titles_title_pixel").css("color","red"):pixelTitle(s)>568&&jQuery("#seopress_titles_title_pixel").css("color","red"),e.length)var t=Math.round(pixelTitle(e)/568*100);else t=Math.round(pixelTitle(s)/568*100);t>=100&&(t=100),jQuery("#seopress_titles_title_counters_progress").attr("aria-valuenow",t),jQuery("#seopress_titles_title_counters_progress").text(t+"%"),jQuery("#seopress_titles_title_counters_progress").css("width",t+"%"),jQuery("#seopress_titles_title_meta, #seopress-tag-single-title, #seopress-tag-single-site-title, #seopress-tag-single-sep").on("keyup paste change click",function(e){var s=jQuery("#seopress_titles_title_meta").val(),t=jQuery("#seopress_titles_title_meta").attr("placeholder");if(jQuery("#seopress_titles_title_counters").css("color","inherit"),jQuery("#seopress_titles_title_pixel").css("color","inherit"),s.length>60&&jQuery("#seopress_titles_title_counters").css("color","red"),pixelTitle(s)>568&&jQuery("#seopress_titles_title_pixel").css("color","red"),0==s.length&&(t.length>60&&jQuery("#seopress_titles_title_counters").css("color","red"),pixelTitle(t)>568&&jQuery("#seopress_titles_title_pixel").css("color","red")),s.length>0?(jQuery("#seopress_titles_title_counters").text(s.length),jQuery("#seopress_titles_title_pixel").text(pixelTitle(s))):t.length&&(jQuery("#seopress_titles_title_counters").text(t.length),jQuery("#seopress_titles_title_pixel").text(pixelTitle(t))),s.length>0?(jQuery(".snippet-title-custom").text(e.target.value),jQuery(".snippet-title").css("display","none"),jQuery(".snippet-title-custom").css("display","block"),jQuery(".snippet-title-default").css("display","none")):0==s.length&&(jQuery(".snippet-title-default").css("display","block"),jQuery(".snippet-title-custom").css("display","none"),jQuery(".snippet-title").css("display","none")),s.length)var i=Math.round(pixelTitle(s)/568*100);else i=Math.round(pixelTitle(t)/568*100);i>=100&&(i=100),jQuery("#seopress_titles_title_counters_progress").attr("aria-valuenow",i),jQuery("#seopress_titles_title_counters_progress").text(i+"%"),jQuery("#seopress_titles_title_counters_progress").css("width",i+"%")})}function sp_meta_desc_counters(){var e=jQuery("#seopress_titles_desc_meta").val(),s=jQuery("#seopress_titles_desc_meta").attr("placeholder");if(jQuery("#seopress_titles_desc_counters").after('<div id="seopress_titles_desc_counters_val">/ 160</div>'),e.length>0?(jQuery("#seopress_titles_desc_counters").text(e.length),jQuery("#seopress_titles_desc_pixel").text(pixelDesc(e))):s.length&&(jQuery("#seopress_titles_desc_counters").text(s.length),jQuery("#seopress_titles_desc_pixel").text(pixelDesc(s))),e.length>160?jQuery("#seopress_titles_desc_counters").css("color","red"):s.length>160&&jQuery("#seopress_titles_desc_counters").css("color","red"),pixelDesc(e)>940?jQuery("#seopress_titles_desc_pixel").css("color","red"):pixelDesc(s)>940&&jQuery("#seopress_titles_desc_pixel").css("color","red"),e.length)var t=Math.round(pixelDesc(e)/940*100);else t=Math.round(pixelDesc(s)/940*100);t>=100&&(t=100),jQuery("#seopress_titles_desc_counters_progress").attr("aria-valuenow",t),jQuery("#seopress_titles_desc_counters_progress").text(t+"%"),jQuery("#seopress_titles_desc_counters_progress").css("width",t+"%"),jQuery("#seopress_titles_desc_meta, #seopress-tag-single-excerpt").on("keyup paste change click",function(e){var s=jQuery("#seopress_titles_desc_meta").val(),t=jQuery("#seopress_titles_desc_meta").attr("placeholder");if(jQuery("#seopress_titles_desc_counters").css("color","inherit"),jQuery("#seopress_titles_desc_pixel").css("color","inherit"),s.length>160&&jQuery("#seopress_titles_desc_counters").css("color","red"),pixelDesc(s)>940&&jQuery("#seopress_titles_desc_pixel").css("color","red"),0==s.length&&(t.length>160&&jQuery("#seopress_titles_desc_counters").css("color","red"),pixelDesc(t)>940&&jQuery("#seopress_titles_desc_pixel").css("color","red")),s.length>0?(jQuery("#seopress_titles_desc_counters").text(s.length),jQuery("#seopress_titles_desc_pixel").text(pixelDesc(s))):t.length&&(jQuery("#seopress_titles_desc_counters").text(t.length),jQuery("#seopress_titles_desc_pixel").text(pixelDesc(t))),s.length>0?(jQuery(".snippet-description-custom").text(e.target.value),jQuery(".snippet-description").css("display","none"),jQuery(".snippet-description-custom").css("display","inline"),jQuery(".snippet-description-default").css("display","none")):0==s.length&&(jQuery(".snippet-description-default").css("display","inline"),jQuery(".snippet-description-custom").css("display","none"),jQuery(".snippet-description").css("display","none")),s.length)var i=Math.round(pixelDesc(s)/940*100);else i=Math.round(pixelDesc(t)/940*100);i>=100&&(i=100),jQuery("#seopress_titles_desc_counters_progress").attr("aria-valuenow",i),jQuery("#seopress_titles_desc_counters_progress").text(i+"%"),jQuery("#seopress_titles_desc_counters_progress").css("width",i+"%")}),jQuery("#excerpt, .editor-post-excerpt textarea").keyup(function(e){var s=jQuery("#seopress_titles_desc_meta").val(),t=jQuery("#seopress_titles_desc_meta").attr("placeholder");if(0==s.length&&0==jQuery(".snippet-description-custom").val().length&&(jQuery(".snippet-description-custom").text(e.target.value),jQuery(".snippet-description").css("display","none"),jQuery(".snippet-description-custom").css("display","inline"),jQuery(".snippet-description-default").css("display","none")),s.length)var i=s.length;else i=t.length;i>=100&&(i=100),jQuery("#seopress_titles_desc_counters_progress").attr("aria-valuenow",i),jQuery("#seopress_titles_desc_counters_progress").text(i+"%"),jQuery("#seopress_titles_desc_counters_progress").css("width",i+"%")})}function pixelTitle(e){return inputText=e,font="18px Arial",canvas=document.createElement("canvas"),context=canvas.getContext("2d"),context.font=font,width=context.measureText(inputText).width,formattedWidth=Math.ceil(width),formattedWidth}function pixelDesc(e){return inputText=e,font="14px Arial",canvas=document.createElement("canvas"),context=canvas.getContext("2d"),context.font=font,width=context.measureText(inputText).width,formattedWidth=Math.ceil(width),formattedWidth}function sp_social(){jQuery("#seopress_social_fb_title_meta, #seopress-tag-single-title, #seopress-tag-single-site-title, #seopress-tag-single-sep").on("keyup paste change click",function(e){var s=jQuery("#seopress_social_fb_title_meta").val();s.length>0?(jQuery(".snippet-fb-title-custom").text(e.target.value),jQuery(".snippet-fb-title").css("display","none"),jQuery(".snippet-fb-title-custom").css("display","block"),jQuery(".snippet-fb-title-default").css("display","none")):0==s.length&&(jQuery(".snippet-fb-title-default").css("display","block"),jQuery(".snippet-fb-title-custom").css("display","none"),jQuery(".snippet-fb-title").css("display","none"))}),jQuery("#seopress_social_fb_desc_meta").on("keyup paste change click",function(e){var s=jQuery("#seopress_social_fb_desc_meta").val();s.length>0?(jQuery(".snippet-fb-description-custom").text(e.target.value),jQuery(".snippet-fb-description").css("display","none"),jQuery(".snippet-fb-description-custom").css("display","block"),jQuery(".snippet-fb-description-default").css("display","none")):0==s.length&&(jQuery(".snippet-fb-description-default").css("display","block"),jQuery(".snippet-fb-description-custom").css("display","none"),jQuery(".snippet-fb-description").css("display","none"))}),jQuery("#seopress_social_fb_img_meta").on("keyup paste change click",function(e){var s=jQuery("#seopress_social_fb_img_meta").val();s.length>0?(jQuery(".snippet-fb-img-custom img").attr("src",e.target.value),jQuery(".snippet-fb-img").css("display","none"),jQuery(".snippet-fb-img-custom").css("display","block"),jQuery(".snippet-fb-img-default").css("display","none")):0==s.length&&(jQuery(".snippet-fb-img-default").css("display","block"),jQuery(".snippet-fb-img-custom").css("display","none"),jQuery(".snippet-fb-img").css("display","none"))})}jQuery(document).ready(function(e){function s(){e.ajax({method:"GET",url:seopressAjaxRealPreview.seopress_real_preview,data:{action:"seopress_do_real_preview",post_id:e("#seopress-tabs").attr("data_id"),tax_name:e("#seopress-tabs").attr("data_tax"),origin:e("#seopress-tabs").attr("data_origin"),post_type:e("#seopress_launch_analysis").attr("data_post_type"),seopress_analysis_target_kw:e("#seopress_analysis_target_kw_meta").val(),_ajax_nonce:seopressAjaxRealPreview.seopress_nonce},success:function(s){var t={og_title:s.data.og_title.values,og_desc:s.data.og_desc.values,og_img:s.data.og_img.values,og_url:s.data.og_url.host,og_site_name:s.data.og_site_name.values,tw_title:s.data.tw_title.values,tw_desc:s.data.tw_desc.values,tw_img:s.data.tw_img.values};for(var i in t)t.length&&(i=t[i].length>1?t[i].slice(-1)[0]:t[i][0]);e("#seopress_cpt .google-snippet-preview .snippet-title").html(s.data.title),e("#seopress_cpt .google-snippet-preview .snippet-title-default").html(s.data.title),e("#seopress_titles_title_meta").attr("placeholder",s.data.title),e("#seopress_cpt .google-snippet-preview .snippet-description").html(s.data.meta_desc),e("#seopress_cpt .google-snippet-preview .snippet-description-default").html(s.data.meta_desc),e("#seopress_titles_desc_meta").attr("placeholder",s.data.meta_desc),e("#seopress_cpt #seopress_social_fb_title_meta").attr("placeholder",t.og_title),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-title").html(t.og_title),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-title-default").html(t.og_title),e("#seopress_cpt #seopress_social_fb_desc_meta").attr("placeholder",t.og_desc),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-description").html(t.og_desc),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-description-default").html(t.og_desc),e("#seopress_cpt #seopress_social_fb_img_meta").attr("placeholder",t.og_img),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-img img").attr("src",t.og_img),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-img-default img").attr("src",t.og_img),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-url").html(t.og_url),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-site-name").html(t.og_site_name),e("#seopress_cpt #seopress_social_twitter_title_meta").attr("placeholder",t.tw_title),e("#seopress_cpt #seopress_social_twitter_desc_meta").attr("placeholder",t.tw_desc),e("#seopress_cpt #seopress_social_twitter_img_meta").attr("placeholder",t.tw_img),e("#seopress_cpt #seopress_robots_canonical_meta").attr("placeholder",s.data.canonical),e("#seopress_analysis_results_state").fadeIn().css("display","inline-block"),e("#seopress_analysis_results_state").delay(3500).fadeOut(),e("#seopress-analysis-tabs-1").load(" #seopress-analysis-tabs-1"),e("#seopress-analysis-tabs-2").load(" #seopress-analysis-tabs-2"),e("#seopress-analysis-tabs-3").load(" #seopress-analysis-tabs-3"),e("#seopress-analysis-tabs-4").load(" #seopress-analysis-tabs-4"),e(" #seopress_titles_title_counters_val").remove(),e(" #seopress_titles_desc_counters_val").remove(),sp_titles_counters(),sp_meta_desc_counters(),sp_social()}})}e("#seopress-analysis-tabs .hidden").removeClass("hidden"),e("#seopress-analysis-tabs").tabs(),s(),e("#seopress_launch_analysis").on("click",function(){s()})});
|
assets/js/seopress-media-uploader.js
CHANGED
@@ -20,7 +20,9 @@ jQuery(document).ready(function($){
|
|
20 |
mediaUploader.on('select', function() {
|
21 |
attachment = mediaUploader.state().get('selection').first().toJSON();
|
22 |
$(item + '_meta').val(attachment.url);
|
|
|
23 |
});
|
|
|
24 |
// Open the uploader dialog
|
25 |
mediaUploader.open();
|
26 |
});
|
20 |
mediaUploader.on('select', function() {
|
21 |
attachment = mediaUploader.state().get('selection').first().toJSON();
|
22 |
$(item + '_meta').val(attachment.url);
|
23 |
+
$( "#seopress_social_fb_img_meta" ).trigger( "keyup" );
|
24 |
});
|
25 |
+
|
26 |
// Open the uploader dialog
|
27 |
mediaUploader.open();
|
28 |
});
|
assets/js/seopress-tabs6.js
CHANGED
@@ -24,5 +24,6 @@ jQuery(document).ready(function($) {
|
|
24 |
|
25 |
$('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
|
26 |
$('#'+hash).addClass("active");
|
27 |
-
|
|
|
28 |
});
|
24 |
|
25 |
$('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
|
26 |
$('#'+hash).addClass("active");
|
27 |
+
});
|
28 |
+
$('.seopress_admin_color_picker').wpColorPicker();
|
29 |
});
|
inc/admin/admin-metaboxes-content-analysis-form.php
CHANGED
@@ -156,6 +156,8 @@ if ( is_plugin_active( 'wp-seopress-pro/seopress-pro.php' ) ) {
|
|
156 |
|
157 |
$target_kws_h1 = $seopress_analysis_data['0']['h1']['matches'];
|
158 |
|
|
|
|
|
159 |
echo '<p><span class="dashicons dashicons-yes"></span>'.__('Target keywords were found in Heading 1 (H1).','wp-seopress').'</p>';
|
160 |
|
161 |
echo '<ul>';
|
@@ -171,7 +173,15 @@ if ( is_plugin_active( 'wp-seopress-pro/seopress-pro.php' ) ) {
|
|
171 |
echo '</ul>';
|
172 |
if ($count > 1) {
|
173 |
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>';
|
174 |
-
echo '<p>'.__('You should not use more than one H1 heading in your post content. The rule is simple: only one H1 for each web page. It is better for both SEO and accessibility.','wp-seopress').'</p>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
175 |
}
|
176 |
}
|
177 |
|
@@ -267,7 +277,215 @@ if ( is_plugin_active( 'wp-seopress-pro/seopress-pro.php' ) ) {
|
|
267 |
} else {
|
268 |
echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('No custom meta description is set for this post.','wp-seopress').'</p>';
|
269 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
270 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
271 |
echo '</div>
|
272 |
|
273 |
<div id="seopress-analysis-tabs-2">
|
156 |
|
157 |
$target_kws_h1 = $seopress_analysis_data['0']['h1']['matches'];
|
158 |
|
159 |
+
$all_h1 = $seopress_analysis_data['0']['h1']['values'];
|
160 |
+
|
161 |
echo '<p><span class="dashicons dashicons-yes"></span>'.__('Target keywords were found in Heading 1 (H1).','wp-seopress').'</p>';
|
162 |
|
163 |
echo '<ul>';
|
173 |
echo '</ul>';
|
174 |
if ($count > 1) {
|
175 |
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>';
|
176 |
+
echo '<p>'.__('You should not use more than one H1 heading in your post content. The rule is simple: only one H1 for each web page. It is better for both SEO and accessibility. Below, the list:','wp-seopress').'</p>';
|
177 |
+
}
|
178 |
+
|
179 |
+
if (!empty($all_h1)) {
|
180 |
+
echo '<ul>';
|
181 |
+
foreach($all_h1 as $h1) {
|
182 |
+
echo '<li><span class="dashicons dashicons-minus"></span>'.$h1.'</li>';
|
183 |
+
}
|
184 |
+
echo '</ul>';
|
185 |
}
|
186 |
}
|
187 |
|
277 |
} else {
|
278 |
echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('No custom meta description is set for this post.','wp-seopress').'</p>';
|
279 |
}
|
280 |
+
|
281 |
+
//og:title
|
282 |
+
echo '<h3>'.__('Open Graph Title','wp-seopress').'</h3>';
|
283 |
+
|
284 |
+
if (!empty($seopress_analysis_data['0']['og_title']['count'])) {
|
285 |
+
$count = $seopress_analysis_data['0']['og_title']['count'];
|
286 |
+
|
287 |
+
$all_og_title = $seopress_analysis_data['0']['og_title']['values'];
|
288 |
+
|
289 |
+
if ($count > 1) {
|
290 |
+
echo '<p><span class="dashicons dashicons-no-alt"></span>'.sprintf(esc_html__('We found %d og:title in your content.','wp-seopress'), $count).'</p>';
|
291 |
+
echo '<p>'.__('You should not use more than one og:title in your post content to avoid conflicts when sharing on social networks. Facebook will take the last og:title tag from your source code. Below, the list:','wp-seopress').'</p>';
|
292 |
+
} else {
|
293 |
+
echo '<p><span class="dashicons dashicons-yes"></span>'.__('We found an Open Graph Title tag in your source code.','wp-seopress').'</p>';
|
294 |
+
}
|
295 |
+
|
296 |
+
if (!empty($all_og_title)) {
|
297 |
+
echo '<ul>';
|
298 |
+
foreach($all_og_title as $og_title) {
|
299 |
+
echo '<li><span class="dashicons dashicons-minus"></span>'.$og_title.'</li>';
|
300 |
+
}
|
301 |
+
echo '</ul>';
|
302 |
+
}
|
303 |
+
} else {
|
304 |
+
echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('Your Open Graph Title is missing!','wp-seopress').'</p>';
|
305 |
+
}
|
306 |
+
|
307 |
+
//og:description
|
308 |
+
echo '<h3>'.__('Open Graph Description','wp-seopress').'</h3>';
|
309 |
+
|
310 |
+
if (!empty($seopress_analysis_data['0']['og_desc']['count'])) {
|
311 |
+
|
312 |
+
$count = $seopress_analysis_data['0']['og_desc']['count'];
|
313 |
+
|
314 |
+
$all_og_desc = $seopress_analysis_data['0']['og_desc']['values'];
|
315 |
+
|
316 |
+
if ($count > 1) {
|
317 |
+
echo '<p><span class="dashicons dashicons-no-alt"></span>'.sprintf(esc_html__('We found %d og:description in your content.','wp-seopress'), $count).'</p>';
|
318 |
+
echo '<p>'.__('You should not use more than one og:description in your post content to avoid conflicts when sharing on social networks. Facebook will take the last og:description tag from your source code. Below, the list:','wp-seopress').'</p>';
|
319 |
+
} else {
|
320 |
+
echo '<p><span class="dashicons dashicons-yes"></span>'.__('We found an Open Graph Description tag in your source code.','wp-seopress').'</p>';
|
321 |
+
}
|
322 |
+
|
323 |
+
if (!empty($all_og_desc)) {
|
324 |
+
echo '<ul>';
|
325 |
+
foreach($all_og_desc as $og_desc) {
|
326 |
+
echo '<li><span class="dashicons dashicons-minus"></span>'.$og_desc.'</li>';
|
327 |
+
}
|
328 |
+
echo '</ul>';
|
329 |
+
}
|
330 |
+
} else {
|
331 |
+
echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('Your Open Graph Description is missing!','wp-seopress').'</p>';
|
332 |
+
}
|
333 |
+
|
334 |
+
//og:image
|
335 |
+
echo '<h3>'.__('Open Graph Image','wp-seopress').'</h3>';
|
336 |
+
|
337 |
+
if (!empty($seopress_analysis_data['0']['og_img']['count'])) {
|
338 |
+
|
339 |
+
$count = $seopress_analysis_data['0']['og_img']['count'];
|
340 |
+
|
341 |
+
$all_og_img = $seopress_analysis_data['0']['og_img']['values'];
|
342 |
+
|
343 |
+
if ($count > 0) {
|
344 |
+
echo '<p><span class="dashicons dashicons-yes"></span>'.sprintf(esc_html__('We found %d og:image in your content.','wp-seopress'), $count).'</p>';
|
345 |
+
}
|
346 |
+
|
347 |
+
if (!empty($all_og_img)) {
|
348 |
+
echo '<ul>';
|
349 |
+
foreach($all_og_img as $og_img) {
|
350 |
+
echo '<li><span class="dashicons dashicons-minus"></span>'.$og_img.'</li>';
|
351 |
+
}
|
352 |
+
echo '</ul>';
|
353 |
+
}
|
354 |
+
} else {
|
355 |
+
echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('Your Open Graph Image is missing!','wp-seopress').'</p>';
|
356 |
+
}
|
357 |
+
|
358 |
+
//og:url
|
359 |
+
echo '<h3>'.__('Open Graph URL','wp-seopress').'</h3>';
|
360 |
+
|
361 |
+
if (!empty($seopress_analysis_data['0']['og_url']['count'])) {
|
362 |
+
|
363 |
+
$count = $seopress_analysis_data['0']['og_url']['count'];
|
364 |
+
|
365 |
+
$all_og_url = $seopress_analysis_data['0']['og_url']['values'];
|
366 |
+
|
367 |
+
if ($count > 1) {
|
368 |
+
echo '<p><span class="dashicons dashicons-no-alt"></span>'.sprintf(esc_html__('We found %d og:url in your content.','wp-seopress'), $count).'</p>';
|
369 |
+
echo '<p>'.__('You should not use more than one og:url in your post content to avoid conflicts when sharing on social networks. Facebook will take the last og:url tag from your source code. Below, the list:','wp-seopress').'</p>';
|
370 |
+
} else {
|
371 |
+
echo '<p><span class="dashicons dashicons-yes"></span>'.__('We found an Open Graph URL tag in your source code.','wp-seopress').'</p>';
|
372 |
+
}
|
373 |
+
|
374 |
+
if (!empty($all_og_url)) {
|
375 |
+
echo '<ul>';
|
376 |
+
foreach($all_og_url as $og_url) {
|
377 |
+
echo '<li><span class="dashicons dashicons-minus"></span>'.$og_url.'</li>';
|
378 |
+
}
|
379 |
+
echo '</ul>';
|
380 |
+
}
|
381 |
+
} else {
|
382 |
+
echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('Your Open Graph URL is missing!','wp-seopress').'</p>';
|
383 |
+
}
|
384 |
+
|
385 |
+
//og:site_name
|
386 |
+
echo '<h3>'.__('Open Graph Site Name','wp-seopress').'</h3>';
|
387 |
+
|
388 |
+
if (!empty($seopress_analysis_data['0']['og_site_name']['count'])) {
|
389 |
+
|
390 |
+
$count = $seopress_analysis_data['0']['og_site_name']['count'];
|
391 |
+
|
392 |
+
$all_og_site_name = $seopress_analysis_data['0']['og_site_name']['values'];
|
393 |
+
|
394 |
+
if ($count > 1) {
|
395 |
+
echo '<p><span class="dashicons dashicons-no-alt"></span>'.sprintf(esc_html__('We found %d og:site_name in your content.','wp-seopress'), $count).'</p>';
|
396 |
+
echo '<p>'.__('You should not use more than one og:site_name in your post content to avoid conflicts when sharing on social networks. Facebook will take the last og:site_name tag from your source code. Below, the list:','wp-seopress').'</p>';
|
397 |
+
} else {
|
398 |
+
echo '<p><span class="dashicons dashicons-yes"></span>'.__('We found an Open Graph Site Name tag in your source code.','wp-seopress').'</p>';
|
399 |
+
}
|
400 |
+
|
401 |
+
if (!empty($all_og_site_name)) {
|
402 |
+
echo '<ul>';
|
403 |
+
foreach($all_og_site_name as $og_site_name) {
|
404 |
+
echo '<li><span class="dashicons dashicons-minus"></span>'.$og_site_name.'</li>';
|
405 |
+
}
|
406 |
+
echo '</ul>';
|
407 |
+
}
|
408 |
+
} else {
|
409 |
+
echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('Your Open Graph Site Name is missing!','wp-seopress').'</p>';
|
410 |
+
}
|
411 |
+
|
412 |
+
//twitter:title
|
413 |
+
echo '<h3>'.__('Twitter Title','wp-seopress').'</h3>';
|
414 |
+
|
415 |
+
if (!empty($seopress_analysis_data['0']['tw_title']['count'])) {
|
416 |
+
|
417 |
+
$count = $seopress_analysis_data['0']['tw_title']['count'];
|
418 |
+
|
419 |
+
$all_tw_title = $seopress_analysis_data['0']['tw_title']['values'];
|
420 |
+
|
421 |
+
if ($count > 1) {
|
422 |
+
echo '<p><span class="dashicons dashicons-no-alt"></span>'.sprintf(esc_html__('We found %d twitter:title in your content.','wp-seopress'), $count).'</p>';
|
423 |
+
echo '<p>'.__('You should not use more than one twitter:title in your post content to avoid conflicts when sharing on social networks. Twitter will take the last twitter:title tag from your source code. Below, the list:','wp-seopress').'</p>';
|
424 |
+
} else {
|
425 |
+
echo '<p><span class="dashicons dashicons-yes"></span>'.__('We found a Twitter Title Tag in your source code.','wp-seopress').'</p>';
|
426 |
+
}
|
427 |
+
|
428 |
+
if (!empty($all_tw_title)) {
|
429 |
+
echo '<ul>';
|
430 |
+
foreach($all_tw_title as $tw_title) {
|
431 |
+
echo '<li><span class="dashicons dashicons-minus"></span>'.$tw_title.'</li>';
|
432 |
+
}
|
433 |
+
echo '</ul>';
|
434 |
+
}
|
435 |
+
} else {
|
436 |
+
echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('Your Twitter Title is missing!','wp-seopress').'</p>';
|
437 |
+
}
|
438 |
+
|
439 |
+
//twitter:description
|
440 |
+
echo '<h3>'.__('Twitter Description','wp-seopress').'</h3>';
|
441 |
+
|
442 |
+
if (!empty($seopress_analysis_data['0']['tw_desc']['count'])) {
|
443 |
+
|
444 |
+
$count = $seopress_analysis_data['0']['tw_desc']['count'];
|
445 |
+
|
446 |
+
$all_tw_desc = $seopress_analysis_data['0']['tw_desc']['values'];
|
447 |
+
|
448 |
+
if ($count > 1) {
|
449 |
+
echo '<p><span class="dashicons dashicons-no-alt"></span>'.sprintf(esc_html__('We found %d twitter:description in your content.','wp-seopress'), $count).'</p>';
|
450 |
+
echo '<p>'.__('You should not use more than one twitter:description in your post content to avoid conflicts when sharing on social networks. Twitter will take the last twitter:description tag from your source code. Below, the list:','wp-seopress').'</p>';
|
451 |
+
} else {
|
452 |
+
echo '<p><span class="dashicons dashicons-yes"></span>'.__('We found a Twitter Description tag in your source code.','wp-seopress').'</p>';
|
453 |
+
}
|
454 |
+
|
455 |
+
if (!empty($all_tw_desc)) {
|
456 |
+
echo '<ul>';
|
457 |
+
foreach($all_tw_desc as $tw_desc) {
|
458 |
+
echo '<li><span class="dashicons dashicons-minus"></span>'.$tw_desc.'</li>';
|
459 |
+
}
|
460 |
+
echo '</ul>';
|
461 |
+
}
|
462 |
+
} else {
|
463 |
+
echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('Your Twitter Description is missing!','wp-seopress').'</p>';
|
464 |
+
}
|
465 |
+
|
466 |
+
//twitter:image
|
467 |
+
echo '<h3>'.__('Twitter Image','wp-seopress').'</h3>';
|
468 |
|
469 |
+
if (!empty($seopress_analysis_data['0']['tw_img']['count'])) {
|
470 |
+
|
471 |
+
$count = $seopress_analysis_data['0']['tw_img']['count'];
|
472 |
+
|
473 |
+
$all_tw_img = $seopress_analysis_data['0']['tw_img']['values'];
|
474 |
+
|
475 |
+
if ($count > 0) {
|
476 |
+
echo '<p><span class="dashicons dashicons-yes"></span>'.sprintf(esc_html__('We found %d twitter:image in your content.','wp-seopress'), $count).'</p>';
|
477 |
+
}
|
478 |
+
|
479 |
+
if (!empty($all_tw_img)) {
|
480 |
+
echo '<ul>';
|
481 |
+
foreach($all_tw_img as $tw_img) {
|
482 |
+
echo '<li><span class="dashicons dashicons-minus"></span>'.$tw_img.'</li>';
|
483 |
+
}
|
484 |
+
echo '</ul>';
|
485 |
+
}
|
486 |
+
} else {
|
487 |
+
echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('Your Twitter Image is missing!','wp-seopress').'</p>';
|
488 |
+
}
|
489 |
echo '</div>
|
490 |
|
491 |
<div id="seopress-analysis-tabs-2">
|
inc/admin/admin-metaboxes-form.php
CHANGED
@@ -254,41 +254,83 @@ echo '<div id="seopress-tabs" data_id="'.$current_id.'" data_origin="'.$origin.'
|
|
254 |
}
|
255 |
if (array_key_exists('social-tab', $seo_tabs)) {
|
256 |
echo '<div id="tabs-3">
|
257 |
-
<
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
<
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
<
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
<
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
<
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
292 |
</div>';
|
293 |
}
|
294 |
}
|
254 |
}
|
255 |
if (array_key_exists('social-tab', $seo_tabs)) {
|
256 |
echo '<div id="tabs-3">
|
257 |
+
<div class="box-left">
|
258 |
+
<span class="dashicons dashicons-facebook-alt"></span>
|
259 |
+
<br><br>
|
260 |
+
<span class="dashicons dashicons-external"></span><a href="https://developers.facebook.com/tools/debug/sharing/?q='.get_permalink(get_the_id()).'" target="_blank">'.__('Ask Facebook to update his cache','wp-seopress').'</a>
|
261 |
+
<p>
|
262 |
+
<label for="seopress_social_fb_title_meta">'. __( 'Facebook Title', 'wp-seopress' ) .'</label>
|
263 |
+
<input id="seopress_social_fb_title_meta" type="text" name="seopress_social_fb_title" placeholder="'.esc_html__('Enter your Facebook title','wp-seopress').'" aria-label="'.__('Facebook Title','wp-seopress').'" value="'.$seopress_social_fb_title.'" />
|
264 |
+
</p>
|
265 |
+
<p>
|
266 |
+
<label for="seopress_social_fb_desc_meta">'. __( 'Facebook description', 'wp-seopress' ) .'</label>
|
267 |
+
<textarea id="seopress_social_fb_desc_meta" name="seopress_social_fb_desc" placeholder="'.esc_html__('Enter your Facebook description','wp-seopress').'" aria-label="'.__('Facebook description','wp-seopress').'" value="'.$seopress_social_fb_desc.'">'.$seopress_social_fb_desc.'</textarea>
|
268 |
+
</p>
|
269 |
+
<p>
|
270 |
+
<label for="seopress_social_fb_img_meta">'. __( 'Facebook Thumbnail', 'wp-seopress' ) .'</label>
|
271 |
+
<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.'" />
|
272 |
+
<span class="advise">'.__('Minimum size: 200x200px, ideal ratio 1.91:1, 8Mb max. (eg: 1640x856px or 3280x1712px for retina screens)', 'wp-seopress').'</span>
|
273 |
+
<input id="seopress_social_fb_img_upload" class="button" type="button" value="'.__('Upload an Image','wp-seopress').'" />
|
274 |
+
</p>
|
275 |
+
</div>
|
276 |
+
<div class="box-right">
|
277 |
+
<div class="facebook-snippet-preview">
|
278 |
+
<h3>'.__('Facebook Preview','wp-seopress').'</h3>';
|
279 |
+
if(seopress_get_toggle_social_option()=='1') {
|
280 |
+
echo '<p>'.__('This is what your post will look like in Facebook. You have to publish your post to get the Facebook Preview.','wp-seopress').'</p>';
|
281 |
+
} else {
|
282 |
+
echo '<p><span class="dashicons dashicons-warning"></span>'.__('The Social Networks feature is disabled. Still seing informations from the FB Preview? You probably have social tags added by your theme or a plugin.','wp-seopress').'</p>';
|
283 |
+
}
|
284 |
+
echo '<div class="facebook-snippet-box">
|
285 |
+
<div class="snippet-fb-img"><img src="" width="524" height="274" alt="" aria-label=""/></div>
|
286 |
+
<div class="snippet-fb-img-custom" style="display:none"><img src="" width="524" height="274" alt="" aria-label=""/></div>
|
287 |
+
<div class="snippet-fb-img-default" style="display:none"><img src="" width="524" height="274" alt="" aria-label=""/></div>
|
288 |
+
|
289 |
+
<div class="facebook-snippet-text">
|
290 |
+
<div class="snippet-meta">
|
291 |
+
<div class="snippet-fb-url"></div>
|
292 |
+
<div class="fb-sep">|</div>
|
293 |
+
<div class="fb-by">'.__('By ','wp-seopress').'</div>
|
294 |
+
<div class="snippet-fb-site-name"></div>
|
295 |
+
</div>
|
296 |
+
<div class="title-desc">
|
297 |
+
<div class="snippet-fb-title"></div>
|
298 |
+
<div class="snippet-fb-title-custom" style="display:none"></div>';
|
299 |
+
global $tag;
|
300 |
+
if (get_the_title()) {
|
301 |
+
echo '<div class="snippet-fb-title-default" style="display:none">'.get_the_title().' - '.get_bloginfo('name').'</div>';
|
302 |
+
} elseif ($tag) {
|
303 |
+
echo '<div class="snippet-fb-title-default" style="display:none">'.$tag->name.' - '.get_bloginfo('name').'</div>';
|
304 |
+
}
|
305 |
+
echo '<div class="snippet-fb-description">...</div>
|
306 |
+
<div class="snippet-fb-description-custom" style="display:none"></div>
|
307 |
+
<div class="snippet-fb-description-default" style="display:none"></div>';
|
308 |
+
echo '</div>
|
309 |
+
</div>
|
310 |
+
</div>
|
311 |
+
</div>
|
312 |
+
</div>
|
313 |
+
<div class="clear"></div>
|
314 |
+
<div class="box-left">
|
315 |
+
<br/>
|
316 |
+
<span class="dashicons dashicons-twitter"></span>
|
317 |
+
<br><br>
|
318 |
+
<span class="dashicons dashicons-external"></span><a href="https://cards-dev.twitter.com/validator" target="_blank">'.__('Preview your Twitter card using the official validator','wp-seopress').'</a>
|
319 |
+
<p>
|
320 |
+
<label for="seopress_social_twitter_title_meta">'. __( 'Twitter Title', 'wp-seopress' ) .'</label>
|
321 |
+
<input id="seopress_social_twitter_title_meta" type="text" name="seopress_social_twitter_title" placeholder="'.esc_html__('Enter your Twitter title','wp-seopress').'" aria-label="'.__('Twitter Title','wp-seopress').'" value="'.$seopress_social_twitter_title.'" />
|
322 |
+
</p>
|
323 |
+
<p>
|
324 |
+
<label for="seopress_social_twitter_desc_meta">'. __( 'Twitter description', 'wp-seopress' ) .'</label>
|
325 |
+
<textarea id="seopress_social_twitter_desc_meta" name="seopress_social_twitter_desc" placeholder="'.esc_html__('Enter your Twitter description','wp-seopress').'" aria-label="'.__('Twitter description','wp-seopress').'" value="'.$seopress_social_twitter_desc.'">'.$seopress_social_twitter_desc.'</textarea>
|
326 |
+
</p>
|
327 |
+
<p>
|
328 |
+
<label for="seopress_social_twitter_img_meta">'. __( 'Twitter Thumbnail', 'wp-seopress' ) .'</label>
|
329 |
+
<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.'" />
|
330 |
+
<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>
|
331 |
+
<input id="seopress_social_twitter_img_upload" class="button" type="button" aria-label="'.__('Twitter Thumbnail','wp-seopress').'" value="'.__('Upload an Image','wp-seopress').'" />
|
332 |
+
</p>
|
333 |
+
</div>
|
334 |
</div>';
|
335 |
}
|
336 |
}
|
inc/admin/admin.php
CHANGED
@@ -546,6 +546,7 @@ class seopress_options
|
|
546 |
'tab_seopress_google_analytics_events' => __( "Events", "wp-seopress" ),
|
547 |
'tab_seopress_google_analytics_custom_dimensions' => __( "Custom Dimensions", "wp-seopress" ),
|
548 |
'tab_seopress_google_analytics_dashboard' => __( "Stats in Dashboard", "wp-seopress" ),
|
|
|
549 |
);
|
550 |
} else {
|
551 |
$plugin_settings_tabs = array(
|
@@ -553,6 +554,7 @@ class seopress_options
|
|
553 |
'tab_seopress_google_analytics_features' => __( "Tracking", "wp-seopress" ),
|
554 |
'tab_seopress_google_analytics_events' => __( "Events", "wp-seopress" ),
|
555 |
'tab_seopress_google_analytics_custom_dimensions' => __( "Custom Dimensions", "wp-seopress" ),
|
|
|
556 |
);
|
557 |
}
|
558 |
|
@@ -568,6 +570,7 @@ class seopress_options
|
|
568 |
<?php if (is_plugin_active('wp-seopress-pro/seopress-pro.php')) { ?>
|
569 |
<div class="seopress-tab <?php if ($current_tab == 'tab_seopress_google_analytics_dashboard') { echo 'active'; } ?>" id="tab_seopress_google_analytics_dashboard"><?php do_settings_sections( 'seopress-settings-admin-google-analytics-dashboard' ); ?></div>
|
570 |
<?php } ?>
|
|
|
571 |
</div>
|
572 |
|
573 |
<?php submit_button(); ?>
|
@@ -2918,7 +2921,7 @@ class seopress_options
|
|
2918 |
array( $this, 'seopress_social_twitter_card_og_callback' ), // Callback
|
2919 |
'seopress-settings-admin-social-twitter', // Page
|
2920 |
'seopress_setting_section_social_twitter' // Section
|
2921 |
-
);
|
2922 |
|
2923 |
add_settings_field(
|
2924 |
'seopress_social_twitter_card_img', // ID
|
@@ -2926,14 +2929,14 @@ class seopress_options
|
|
2926 |
array( $this, 'seopress_social_twitter_card_img_callback' ), // Callback
|
2927 |
'seopress-settings-admin-social-twitter', // Page
|
2928 |
'seopress_setting_section_social_twitter' // Section
|
2929 |
-
);
|
2930 |
|
2931 |
add_settings_field(
|
2932 |
'seopress_social_twitter_card_img_size', // ID
|
2933 |
__("Image size for Twitter Summary card","wp-seopress"), // Title
|
2934 |
array( $this, 'seopress_social_twitter_card_img_size_callback' ), // Callback
|
2935 |
'seopress-settings-admin-social-twitter', // Page
|
2936 |
-
'seopress_setting_section_social_twitter' // Section
|
2937 |
);
|
2938 |
|
2939 |
//Google Analytics Enable SECTION==========================================================
|
@@ -2943,14 +2946,14 @@ class seopress_options
|
|
2943 |
//__("Google Analytics","wp-seopress"), // Title
|
2944 |
array( $this, 'print_section_info_google_analytics_enable' ), // Callback
|
2945 |
'seopress-settings-admin-google-analytics-enable' // Page
|
2946 |
-
);
|
2947 |
|
2948 |
add_settings_field(
|
2949 |
'seopress_google_analytics_enable', // ID
|
2950 |
__("Enable Google Analytics tracking","wp-seopress"), // Title
|
2951 |
array( $this, 'seopress_google_analytics_enable_callback' ), // Callback
|
2952 |
'seopress-settings-admin-google-analytics-enable', // Page
|
2953 |
-
'seopress_setting_section_google_analytics_enable' // Section
|
2954 |
);
|
2955 |
|
2956 |
add_settings_field(
|
@@ -2958,47 +2961,152 @@ class seopress_options
|
|
2958 |
__("Enter your tracking ID","wp-seopress"), // Title
|
2959 |
array( $this, 'seopress_google_analytics_ua_callback' ), // Callback
|
2960 |
'seopress-settings-admin-google-analytics-enable', // Page
|
2961 |
-
'seopress_setting_section_google_analytics_enable' // Section
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2962 |
);
|
2963 |
|
2964 |
add_settings_field(
|
2965 |
'seopress_google_analytics_disable', // ID
|
2966 |
__("Google Analytics tracking opt-in","wp-seopress"), // Title
|
2967 |
array( $this, 'seopress_google_analytics_disable_callback' ), // Callback
|
2968 |
-
'seopress-settings-admin-google-analytics-
|
2969 |
-
'
|
2970 |
);
|
2971 |
|
2972 |
add_settings_field(
|
2973 |
'seopress_google_analytics_half_disable', // ID
|
2974 |
'', // Title
|
2975 |
array( $this, 'seopress_google_analytics_half_disable_callback' ), // Callback
|
2976 |
-
'seopress-settings-admin-google-analytics-
|
2977 |
-
'
|
2978 |
);
|
2979 |
|
2980 |
add_settings_field(
|
2981 |
'seopress_google_analytics_opt_out_msg', // ID
|
2982 |
__("Consent message for user tracking","wp-seopress"), // Title
|
2983 |
array( $this, 'seopress_google_analytics_opt_out_msg_callback' ), // Callback
|
2984 |
-
'seopress-settings-admin-google-analytics-
|
2985 |
-
'
|
2986 |
);
|
2987 |
|
2988 |
add_settings_field(
|
2989 |
'seopress_google_analytics_opt_out_msg_ok', // ID
|
2990 |
__("Accept button for user tracking","wp-seopress"), // Title
|
2991 |
array( $this, 'seopress_google_analytics_opt_out_msg_ok_callback' ), // Callback
|
2992 |
-
'seopress-settings-admin-google-analytics-
|
2993 |
-
'
|
2994 |
-
);
|
2995 |
|
2996 |
add_settings_field(
|
2997 |
-
'
|
2998 |
-
__("
|
2999 |
-
array( $this, '
|
3000 |
-
'seopress-settings-admin-google-analytics-
|
3001 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3002 |
);
|
3003 |
|
3004 |
//Google Analytics Tracking SECTION========================================================
|
@@ -3602,33 +3710,27 @@ class seopress_options
|
|
3602 |
* Print the Section text
|
3603 |
*/
|
3604 |
|
3605 |
-
public function print_section_info_titles()
|
3606 |
-
{
|
3607 |
print __('<p>Customize your title & meta description for homepage</p>', 'wp-seopress');
|
3608 |
-
}
|
3609 |
|
3610 |
-
public function print_section_info_single()
|
3611 |
-
{
|
3612 |
print __('<p>Customize your titles & metas for Single Custom Post Types</p>', 'wp-seopress');
|
3613 |
}
|
3614 |
|
3615 |
-
public function print_section_info_advanced()
|
3616 |
-
{
|
3617 |
print __('<p>Customize your metas for all pages</p>', 'wp-seopress');
|
3618 |
-
}
|
3619 |
|
3620 |
-
public function print_section_info_tax()
|
3621 |
-
{
|
3622 |
print __('<p>Customize your metas for all taxonomies archives</p>', 'wp-seopress');
|
3623 |
-
}
|
3624 |
|
3625 |
-
public function print_section_info_archives()
|
3626 |
-
{
|
3627 |
print __('<p>Customize your metas for all archives</p>', 'wp-seopress');
|
3628 |
-
}
|
3629 |
|
3630 |
-
public function print_section_info_xml_sitemap_general()
|
3631 |
-
{
|
3632 |
if (get_option('permalink_structure') =='') {
|
3633 |
echo '<div class="error notice is-dismissable">';
|
3634 |
echo '<p>'. __('Your permalinks are not SEO Friendly! Enable pretty permalinks to fix this.','wp-seopress');
|
@@ -3677,8 +3779,7 @@ class seopress_options
|
|
3677 |
echo '<span class="spinner"></span>';
|
3678 |
}
|
3679 |
|
3680 |
-
public function print_section_info_html_sitemap()
|
3681 |
-
{
|
3682 |
print __('<p>Create an HTML Sitemap for your visitors and boost your SEO.</p>', 'wp-seopress');
|
3683 |
|
3684 |
if (function_exists('seopress_get_locale')) {
|
@@ -3692,30 +3793,25 @@ class seopress_options
|
|
3692 |
echo '<a class="seopress-doc" href="'.$seopress_docs_link['sitemaps']['html'].'" target="_blank"><span class="dashicons dashicons-editor-help"></span><span class="screen-reader-text">'. __('Guide to enable a HTML Sitemap - new window','wp-seopress').'</span></a></p>';
|
3693 |
}
|
3694 |
|
3695 |
-
public function print_section_info_xml_sitemap_post_types()
|
3696 |
-
{
|
3697 |
print __('<p>Include/Exclude Post Types.</p>', 'wp-seopress');
|
3698 |
}
|
3699 |
|
3700 |
-
public function print_section_info_xml_sitemap_taxonomies()
|
3701 |
-
{
|
3702 |
print __('<p>Include/Exclude Taxonomies.</p>', 'wp-seopress');
|
3703 |
-
}
|
3704 |
|
3705 |
-
public function print_section_info_social_knowledge()
|
3706 |
-
{
|
3707 |
print __('<p>Configure Google Knowledge Graph.</p>', 'wp-seopress');
|
3708 |
echo '<p><span class="dashicons dashicons-external"></span><a href="https://developers.google.com/search/docs/guides/enhance-site" target="_blank">'.__('Learn more on Google official website.','wp-seopress').'</a></p>';
|
3709 |
-
}
|
3710 |
|
3711 |
-
public function print_section_info_social_accounts()
|
3712 |
-
{
|
3713 |
print __('<p>Link your site with your social accounts. Use markup on your website to add your social profile information to a Google Knowledge panel. Knowledge panels prominently display your social profile information in some Google Search results. Filling in these fields does not guarantee the display of this data in search results. It may take a long time to see these social-network links.</p>', 'wp-seopress');
|
3714 |
echo '<img src="'.plugins_url('assets/img/help/google-knowledge-graph-social.png', dirname(dirname(__FILE__))).'" class="help-social">';
|
3715 |
-
}
|
3716 |
|
3717 |
-
public function print_section_info_social_facebook()
|
3718 |
-
{
|
3719 |
print __('<p>Manage Open Graph data.</p>', 'wp-seopress');
|
3720 |
|
3721 |
echo __('<p>We generate the <strong>og:image</strong> meta in this order:</p>','wp-seopress');
|
@@ -3729,8 +3825,7 @@ class seopress_options
|
|
3729 |
</ol>';
|
3730 |
}
|
3731 |
|
3732 |
-
public function print_section_info_social_twitter()
|
3733 |
-
{
|
3734 |
print __('<p>Manage your Twitter card.</p>', 'wp-seopress');
|
3735 |
|
3736 |
echo __('<p>We generate the <strong>twitter:image</strong> meta in this order:</p>','wp-seopress');
|
@@ -3742,25 +3837,25 @@ class seopress_options
|
|
3742 |
<li>'.__('First image of your post content','wp-seopress').'</li>
|
3743 |
<li>'.__('Global Twitter:image set in SEO > Social > Twitter Card','wp-seopress').'</li>
|
3744 |
</ol>';
|
3745 |
-
}
|
3746 |
|
3747 |
-
public function print_section_info_google_analytics_enable()
|
3748 |
-
|
3749 |
-
print __('<p>Link your Google Analytics to your website.</p>', 'wp-seopress');
|
3750 |
}
|
3751 |
|
3752 |
-
public function
|
3753 |
-
|
|
|
|
|
|
|
3754 |
print __('<p>Configure your Google Analytics tracking code.</p>', 'wp-seopress');
|
3755 |
-
}
|
3756 |
-
|
3757 |
-
public function print_section_info_google_analytics_events()
|
3758 |
-
{
|
3759 |
print __('<p>Track events in Google Analytics.</p>', 'wp-seopress');
|
3760 |
-
}
|
3761 |
|
3762 |
-
public function print_section_info_google_analytics_custom_dimensions()
|
3763 |
-
{
|
3764 |
print __('<p>Configure your Google Analytics custom dimensions. <br>Custom dimensions and custom metrics in SEOPress are like the default dimensions and metrics in your Analytics account, except you create them yourself.<br> Use them to collect and analyze data that Analytics doesn\'t automatically track.<br> Please note that you also have to setup your custom dimensions in your Google Analytics account. More info by clicking on the help icon.', 'wp-seopress');
|
3765 |
|
3766 |
if (function_exists('seopress_get_locale')) {
|
@@ -3774,20 +3869,17 @@ class seopress_options
|
|
3774 |
echo '<a class="seopress-doc" href="'.$seopress_docs_link['support']['analytics']['custom_dimensions'].'" target="_blank"><span class="dashicons dashicons-editor-help"></span><span class="screen-reader-text">'. __('Guide to create custom dimensions in Google Analytics - new window','wp-seopress').'</span></a></p>';
|
3775 |
}
|
3776 |
|
3777 |
-
public function print_section_info_advanced_advanced()
|
3778 |
-
{
|
3779 |
print __('<p>Advanced SEO options.</p>', 'wp-seopress');
|
3780 |
}
|
3781 |
|
3782 |
-
public function print_section_info_advanced_appearance()
|
3783 |
-
{
|
3784 |
print __('<p>Customize SEOPress to fit your needs.</p>', 'wp-seopress');
|
3785 |
-
}
|
3786 |
|
3787 |
-
public function print_section_info_advanced_security()
|
3788 |
-
{
|
3789 |
print __('<p>Manage security.</p>', 'wp-seopress');
|
3790 |
-
}
|
3791 |
|
3792 |
/**
|
3793 |
* Get the settings option array and print one of its values
|
@@ -5435,9 +5527,9 @@ class seopress_options
|
|
5435 |
|
5436 |
public function seopress_google_analytics_half_disable_callback()
|
5437 |
{
|
5438 |
-
$options = get_option( 'seopress_google_analytics_option_name' );
|
5439 |
|
5440 |
-
$check = isset($options['seopress_google_analytics_half_disable']);
|
5441 |
|
5442 |
echo '<input id="seopress_google_analytics_half_disable" name="seopress_google_analytics_option_name[seopress_google_analytics_half_disable]" type="checkbox"';
|
5443 |
if ('1' == $check) echo 'checked="yes"';
|
@@ -5482,7 +5574,137 @@ class seopress_options
|
|
5482 |
printf(
|
5483 |
'<input type="text" name="seopress_google_analytics_option_name[seopress_google_analytics_opt_out_msg_ok]" placeholder="'.esc_html__('Accept','wp-seopress').'" aria-label="'.__('Change the button value','wp-seopress').'" value="%s"/>',
|
5484 |
esc_html( $check )
|
5485 |
-
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5486 |
}
|
5487 |
|
5488 |
public function seopress_google_analytics_roles_callback()
|
546 |
'tab_seopress_google_analytics_events' => __( "Events", "wp-seopress" ),
|
547 |
'tab_seopress_google_analytics_custom_dimensions' => __( "Custom Dimensions", "wp-seopress" ),
|
548 |
'tab_seopress_google_analytics_dashboard' => __( "Stats in Dashboard", "wp-seopress" ),
|
549 |
+
'tab_seopress_google_analytics_gdpr' => __( "Cookie bar / GDPR", "wp-seopress" ),
|
550 |
);
|
551 |
} else {
|
552 |
$plugin_settings_tabs = array(
|
554 |
'tab_seopress_google_analytics_features' => __( "Tracking", "wp-seopress" ),
|
555 |
'tab_seopress_google_analytics_events' => __( "Events", "wp-seopress" ),
|
556 |
'tab_seopress_google_analytics_custom_dimensions' => __( "Custom Dimensions", "wp-seopress" ),
|
557 |
+
'tab_seopress_google_analytics_gdpr' => __( "Cookie bar / GDPR", "wp-seopress" ),
|
558 |
);
|
559 |
}
|
560 |
|
570 |
<?php if (is_plugin_active('wp-seopress-pro/seopress-pro.php')) { ?>
|
571 |
<div class="seopress-tab <?php if ($current_tab == 'tab_seopress_google_analytics_dashboard') { echo 'active'; } ?>" id="tab_seopress_google_analytics_dashboard"><?php do_settings_sections( 'seopress-settings-admin-google-analytics-dashboard' ); ?></div>
|
572 |
<?php } ?>
|
573 |
+
<div class="seopress-tab <?php if ($current_tab == 'tab_seopress_google_analytics_gdpr') { echo 'active'; } ?>" id="tab_seopress_google_analytics_gdpr"><?php do_settings_sections( 'seopress-settings-admin-google-analytics-gdpr' ); ?></div>
|
574 |
</div>
|
575 |
|
576 |
<?php submit_button(); ?>
|
2921 |
array( $this, 'seopress_social_twitter_card_og_callback' ), // Callback
|
2922 |
'seopress-settings-admin-social-twitter', // Page
|
2923 |
'seopress_setting_section_social_twitter' // Section
|
2924 |
+
);
|
2925 |
|
2926 |
add_settings_field(
|
2927 |
'seopress_social_twitter_card_img', // ID
|
2929 |
array( $this, 'seopress_social_twitter_card_img_callback' ), // Callback
|
2930 |
'seopress-settings-admin-social-twitter', // Page
|
2931 |
'seopress_setting_section_social_twitter' // Section
|
2932 |
+
);
|
2933 |
|
2934 |
add_settings_field(
|
2935 |
'seopress_social_twitter_card_img_size', // ID
|
2936 |
__("Image size for Twitter Summary card","wp-seopress"), // Title
|
2937 |
array( $this, 'seopress_social_twitter_card_img_size_callback' ), // Callback
|
2938 |
'seopress-settings-admin-social-twitter', // Page
|
2939 |
+
'seopress_setting_section_social_twitter' // Section
|
2940 |
);
|
2941 |
|
2942 |
//Google Analytics Enable SECTION==========================================================
|
2946 |
//__("Google Analytics","wp-seopress"), // Title
|
2947 |
array( $this, 'print_section_info_google_analytics_enable' ), // Callback
|
2948 |
'seopress-settings-admin-google-analytics-enable' // Page
|
2949 |
+
);
|
2950 |
|
2951 |
add_settings_field(
|
2952 |
'seopress_google_analytics_enable', // ID
|
2953 |
__("Enable Google Analytics tracking","wp-seopress"), // Title
|
2954 |
array( $this, 'seopress_google_analytics_enable_callback' ), // Callback
|
2955 |
'seopress-settings-admin-google-analytics-enable', // Page
|
2956 |
+
'seopress_setting_section_google_analytics_enable' // Section
|
2957 |
);
|
2958 |
|
2959 |
add_settings_field(
|
2961 |
__("Enter your tracking ID","wp-seopress"), // Title
|
2962 |
array( $this, 'seopress_google_analytics_ua_callback' ), // Callback
|
2963 |
'seopress-settings-admin-google-analytics-enable', // Page
|
2964 |
+
'seopress_setting_section_google_analytics_enable' // Section
|
2965 |
+
);
|
2966 |
+
|
2967 |
+
add_settings_field(
|
2968 |
+
'seopress_google_analytics_roles', // ID
|
2969 |
+
__("Exclude user roles from tracking","wp-seopress"), // Title
|
2970 |
+
array( $this, 'seopress_google_analytics_roles_callback' ), // Callback
|
2971 |
+
'seopress-settings-admin-google-analytics-enable', // Page
|
2972 |
+
'seopress_setting_section_google_analytics_enable' // Section
|
2973 |
+
);
|
2974 |
+
|
2975 |
+
//Cookie bar / GDPR SECTION================================================================
|
2976 |
+
add_settings_section(
|
2977 |
+
'seopress_setting_section_google_analytics_gdpr', // ID
|
2978 |
+
'',
|
2979 |
+
//__("Google Analytics","wp-seopress"), // Title
|
2980 |
+
array( $this, 'print_section_info_google_analytics_gdpr' ), // Callback
|
2981 |
+
'seopress-settings-admin-google-analytics-gdpr' // Page
|
2982 |
);
|
2983 |
|
2984 |
add_settings_field(
|
2985 |
'seopress_google_analytics_disable', // ID
|
2986 |
__("Google Analytics tracking opt-in","wp-seopress"), // Title
|
2987 |
array( $this, 'seopress_google_analytics_disable_callback' ), // Callback
|
2988 |
+
'seopress-settings-admin-google-analytics-gdpr', // Page
|
2989 |
+
'seopress_setting_section_google_analytics_gdpr' // Section
|
2990 |
);
|
2991 |
|
2992 |
add_settings_field(
|
2993 |
'seopress_google_analytics_half_disable', // ID
|
2994 |
'', // Title
|
2995 |
array( $this, 'seopress_google_analytics_half_disable_callback' ), // Callback
|
2996 |
+
'seopress-settings-admin-google-analytics-gdpr', // Page
|
2997 |
+
'seopress_setting_section_google_analytics_gdpr' // Section
|
2998 |
);
|
2999 |
|
3000 |
add_settings_field(
|
3001 |
'seopress_google_analytics_opt_out_msg', // ID
|
3002 |
__("Consent message for user tracking","wp-seopress"), // Title
|
3003 |
array( $this, 'seopress_google_analytics_opt_out_msg_callback' ), // Callback
|
3004 |
+
'seopress-settings-admin-google-analytics-gdpr', // Page
|
3005 |
+
'seopress_setting_section_google_analytics_gdpr' // Section
|
3006 |
);
|
3007 |
|
3008 |
add_settings_field(
|
3009 |
'seopress_google_analytics_opt_out_msg_ok', // ID
|
3010 |
__("Accept button for user tracking","wp-seopress"), // Title
|
3011 |
array( $this, 'seopress_google_analytics_opt_out_msg_ok_callback' ), // Callback
|
3012 |
+
'seopress-settings-admin-google-analytics-gdpr', // Page
|
3013 |
+
'seopress_setting_section_google_analytics_gdpr' // Section
|
3014 |
+
);
|
3015 |
|
3016 |
add_settings_field(
|
3017 |
+
'seopress_google_analytics_cb_pos', // ID
|
3018 |
+
__("Cookie bar position","wp-seopress"), // Title
|
3019 |
+
array( $this, 'seopress_google_analytics_cb_pos_callback' ), // Callback
|
3020 |
+
'seopress-settings-admin-google-analytics-gdpr', // Page
|
3021 |
+
'seopress_setting_section_google_analytics_gdpr' // Section
|
3022 |
+
);
|
3023 |
+
|
3024 |
+
add_settings_field(
|
3025 |
+
'seopress_google_analytics_cb_bg', // ID
|
3026 |
+
__("Cookie bar background color","wp-seopress"), // Title
|
3027 |
+
array( $this, 'seopress_google_analytics_cb_bg_callback' ), // Callback
|
3028 |
+
'seopress-settings-admin-google-analytics-gdpr', // Page
|
3029 |
+
'seopress_setting_section_google_analytics_gdpr' // Section
|
3030 |
+
);
|
3031 |
+
|
3032 |
+
add_settings_field(
|
3033 |
+
'seopress_google_analytics_cb_txt_col', // ID
|
3034 |
+
__("Cookie bar text color","wp-seopress"), // Title
|
3035 |
+
array( $this, 'seopress_google_analytics_cb_txt_col_callback' ), // Callback
|
3036 |
+
'seopress-settings-admin-google-analytics-gdpr', // Page
|
3037 |
+
'seopress_setting_section_google_analytics_gdpr' // Section
|
3038 |
+
);
|
3039 |
+
|
3040 |
+
add_settings_field(
|
3041 |
+
'seopress_google_analytics_cb_lk_col', // ID
|
3042 |
+
__("Cookie bar link color","wp-seopress"), // Title
|
3043 |
+
array( $this, 'seopress_google_analytics_cb_lk_col_callback' ), // Callback
|
3044 |
+
'seopress-settings-admin-google-analytics-gdpr', // Page
|
3045 |
+
'seopress_setting_section_google_analytics_gdpr' // Section
|
3046 |
+
);
|
3047 |
+
|
3048 |
+
add_settings_field(
|
3049 |
+
'seopress_google_analytics_cb_btn_bg', // ID
|
3050 |
+
__("Cookie bar button background color","wp-seopress"), // Title
|
3051 |
+
array( $this, 'seopress_google_analytics_cb_btn_bg_callback' ), // Callback
|
3052 |
+
'seopress-settings-admin-google-analytics-gdpr', // Page
|
3053 |
+
'seopress_setting_section_google_analytics_gdpr' // Section
|
3054 |
+
);
|
3055 |
+
|
3056 |
+
add_settings_field(
|
3057 |
+
'seopress_google_analytics_cb_btn_col', // ID
|
3058 |
+
__("Cookie bar button color","wp-seopress"), // Title
|
3059 |
+
array( $this, 'seopress_google_analytics_cb_btn_col_callback' ), // Callback
|
3060 |
+
'seopress-settings-admin-google-analytics-gdpr', // Page
|
3061 |
+
'seopress_setting_section_google_analytics_gdpr' // Section
|
3062 |
+
);
|
3063 |
+
|
3064 |
+
add_settings_field(
|
3065 |
+
'seopress_google_analytics_cb_btn_bg_hov', // ID
|
3066 |
+
__("Cookie bar button hover background color","wp-seopress"), // Title
|
3067 |
+
array( $this, 'seopress_google_analytics_cb_btn_bg_hov_callback' ), // Callback
|
3068 |
+
'seopress-settings-admin-google-analytics-gdpr', // Page
|
3069 |
+
'seopress_setting_section_google_analytics_gdpr' // Section
|
3070 |
+
);
|
3071 |
+
|
3072 |
+
add_settings_field(
|
3073 |
+
'seopress_google_analytics_cb_btn_col_hov', // ID
|
3074 |
+
__("Cookie bar button hover color","wp-seopress"), // Title
|
3075 |
+
array( $this, 'seopress_google_analytics_cb_btn_col_hov_callback' ), // Callback
|
3076 |
+
'seopress-settings-admin-google-analytics-gdpr', // Page
|
3077 |
+
'seopress_setting_section_google_analytics_gdpr' // Section
|
3078 |
+
);
|
3079 |
+
|
3080 |
+
add_settings_field(
|
3081 |
+
'seopress_google_analytics_cb_btn_sec_bg', // ID
|
3082 |
+
__("Cookie bar secondary button background color","wp-seopress"), // Title
|
3083 |
+
array( $this, 'seopress_google_analytics_cb_btn_sec_bg_callback' ), // Callback
|
3084 |
+
'seopress-settings-admin-google-analytics-gdpr', // Page
|
3085 |
+
'seopress_setting_section_google_analytics_gdpr' // Section
|
3086 |
+
);
|
3087 |
+
|
3088 |
+
add_settings_field(
|
3089 |
+
'seopress_google_analytics_cb_btn_sec_col', // ID
|
3090 |
+
__("Cookie bar secondary button color","wp-seopress"), // Title
|
3091 |
+
array( $this, 'seopress_google_analytics_cb_btn_sec_col_callback' ), // Callback
|
3092 |
+
'seopress-settings-admin-google-analytics-gdpr', // Page
|
3093 |
+
'seopress_setting_section_google_analytics_gdpr' // Section
|
3094 |
+
);
|
3095 |
+
|
3096 |
+
add_settings_field(
|
3097 |
+
'seopress_google_analytics_cb_btn_sec_bg_hov', // ID
|
3098 |
+
__("Cookie bar secondary button hover background color","wp-seopress"), // Title
|
3099 |
+
array( $this, 'seopress_google_analytics_cb_btn_sec_bg_hov_callback' ), // Callback
|
3100 |
+
'seopress-settings-admin-google-analytics-gdpr', // Page
|
3101 |
+
'seopress_setting_section_google_analytics_gdpr' // Section
|
3102 |
+
);
|
3103 |
+
|
3104 |
+
add_settings_field(
|
3105 |
+
'seopress_google_analytics_cb_btn_sec_col_hov', // ID
|
3106 |
+
__("Cookie bar secondary button hover color","wp-seopress"), // Title
|
3107 |
+
array( $this, 'seopress_google_analytics_cb_btn_sec_col_hov_callback' ), // Callback
|
3108 |
+
'seopress-settings-admin-google-analytics-gdpr', // Page
|
3109 |
+
'seopress_setting_section_google_analytics_gdpr' // Section
|
3110 |
);
|
3111 |
|
3112 |
//Google Analytics Tracking SECTION========================================================
|
3710 |
* Print the Section text
|
3711 |
*/
|
3712 |
|
3713 |
+
public function print_section_info_titles() {
|
|
|
3714 |
print __('<p>Customize your title & meta description for homepage</p>', 'wp-seopress');
|
3715 |
+
}
|
3716 |
|
3717 |
+
public function print_section_info_single() {
|
|
|
3718 |
print __('<p>Customize your titles & metas for Single Custom Post Types</p>', 'wp-seopress');
|
3719 |
}
|
3720 |
|
3721 |
+
public function print_section_info_advanced() {
|
|
|
3722 |
print __('<p>Customize your metas for all pages</p>', 'wp-seopress');
|
3723 |
+
}
|
3724 |
|
3725 |
+
public function print_section_info_tax() {
|
|
|
3726 |
print __('<p>Customize your metas for all taxonomies archives</p>', 'wp-seopress');
|
3727 |
+
}
|
3728 |
|
3729 |
+
public function print_section_info_archives() {
|
|
|
3730 |
print __('<p>Customize your metas for all archives</p>', 'wp-seopress');
|
3731 |
+
}
|
3732 |
|
3733 |
+
public function print_section_info_xml_sitemap_general() {
|
|
|
3734 |
if (get_option('permalink_structure') =='') {
|
3735 |
echo '<div class="error notice is-dismissable">';
|
3736 |
echo '<p>'. __('Your permalinks are not SEO Friendly! Enable pretty permalinks to fix this.','wp-seopress');
|
3779 |
echo '<span class="spinner"></span>';
|
3780 |
}
|
3781 |
|
3782 |
+
public function print_section_info_html_sitemap() {
|
|
|
3783 |
print __('<p>Create an HTML Sitemap for your visitors and boost your SEO.</p>', 'wp-seopress');
|
3784 |
|
3785 |
if (function_exists('seopress_get_locale')) {
|
3793 |
echo '<a class="seopress-doc" href="'.$seopress_docs_link['sitemaps']['html'].'" target="_blank"><span class="dashicons dashicons-editor-help"></span><span class="screen-reader-text">'. __('Guide to enable a HTML Sitemap - new window','wp-seopress').'</span></a></p>';
|
3794 |
}
|
3795 |
|
3796 |
+
public function print_section_info_xml_sitemap_post_types() {
|
|
|
3797 |
print __('<p>Include/Exclude Post Types.</p>', 'wp-seopress');
|
3798 |
}
|
3799 |
|
3800 |
+
public function print_section_info_xml_sitemap_taxonomies() {
|
|
|
3801 |
print __('<p>Include/Exclude Taxonomies.</p>', 'wp-seopress');
|
3802 |
+
}
|
3803 |
|
3804 |
+
public function print_section_info_social_knowledge() {
|
|
|
3805 |
print __('<p>Configure Google Knowledge Graph.</p>', 'wp-seopress');
|
3806 |
echo '<p><span class="dashicons dashicons-external"></span><a href="https://developers.google.com/search/docs/guides/enhance-site" target="_blank">'.__('Learn more on Google official website.','wp-seopress').'</a></p>';
|
3807 |
+
}
|
3808 |
|
3809 |
+
public function print_section_info_social_accounts() {
|
|
|
3810 |
print __('<p>Link your site with your social accounts. Use markup on your website to add your social profile information to a Google Knowledge panel. Knowledge panels prominently display your social profile information in some Google Search results. Filling in these fields does not guarantee the display of this data in search results. It may take a long time to see these social-network links.</p>', 'wp-seopress');
|
3811 |
echo '<img src="'.plugins_url('assets/img/help/google-knowledge-graph-social.png', dirname(dirname(__FILE__))).'" class="help-social">';
|
3812 |
+
}
|
3813 |
|
3814 |
+
public function print_section_info_social_facebook() {
|
|
|
3815 |
print __('<p>Manage Open Graph data.</p>', 'wp-seopress');
|
3816 |
|
3817 |
echo __('<p>We generate the <strong>og:image</strong> meta in this order:</p>','wp-seopress');
|
3825 |
</ol>';
|
3826 |
}
|
3827 |
|
3828 |
+
public function print_section_info_social_twitter() {
|
|
|
3829 |
print __('<p>Manage your Twitter card.</p>', 'wp-seopress');
|
3830 |
|
3831 |
echo __('<p>We generate the <strong>twitter:image</strong> meta in this order:</p>','wp-seopress');
|
3837 |
<li>'.__('First image of your post content','wp-seopress').'</li>
|
3838 |
<li>'.__('Global Twitter:image set in SEO > Social > Twitter Card','wp-seopress').'</li>
|
3839 |
</ol>';
|
3840 |
+
}
|
3841 |
|
3842 |
+
public function print_section_info_google_analytics_enable() {
|
3843 |
+
print __('<p>Link your Google Analytics to your website. The tracking code will be automatically added to your site.</p>', 'wp-seopress');
|
|
|
3844 |
}
|
3845 |
|
3846 |
+
public function print_section_info_google_analytics_gdpr() {
|
3847 |
+
print __('<p>Manage user consent for GDPR and customize your cookie bar easily.</p>', 'wp-seopress');
|
3848 |
+
}
|
3849 |
+
|
3850 |
+
public function print_section_info_google_analytics_features() {
|
3851 |
print __('<p>Configure your Google Analytics tracking code.</p>', 'wp-seopress');
|
3852 |
+
}
|
3853 |
+
|
3854 |
+
public function print_section_info_google_analytics_events() {
|
|
|
3855 |
print __('<p>Track events in Google Analytics.</p>', 'wp-seopress');
|
3856 |
+
}
|
3857 |
|
3858 |
+
public function print_section_info_google_analytics_custom_dimensions() {
|
|
|
3859 |
print __('<p>Configure your Google Analytics custom dimensions. <br>Custom dimensions and custom metrics in SEOPress are like the default dimensions and metrics in your Analytics account, except you create them yourself.<br> Use them to collect and analyze data that Analytics doesn\'t automatically track.<br> Please note that you also have to setup your custom dimensions in your Google Analytics account. More info by clicking on the help icon.', 'wp-seopress');
|
3860 |
|
3861 |
if (function_exists('seopress_get_locale')) {
|
3869 |
echo '<a class="seopress-doc" href="'.$seopress_docs_link['support']['analytics']['custom_dimensions'].'" target="_blank"><span class="dashicons dashicons-editor-help"></span><span class="screen-reader-text">'. __('Guide to create custom dimensions in Google Analytics - new window','wp-seopress').'</span></a></p>';
|
3870 |
}
|
3871 |
|
3872 |
+
public function print_section_info_advanced_advanced() {
|
|
|
3873 |
print __('<p>Advanced SEO options.</p>', 'wp-seopress');
|
3874 |
}
|
3875 |
|
3876 |
+
public function print_section_info_advanced_appearance() {
|
|
|
3877 |
print __('<p>Customize SEOPress to fit your needs.</p>', 'wp-seopress');
|
3878 |
+
}
|
3879 |
|
3880 |
+
public function print_section_info_advanced_security() {
|
|
|
3881 |
print __('<p>Manage security.</p>', 'wp-seopress');
|
3882 |
+
}
|
3883 |
|
3884 |
/**
|
3885 |
* Get the settings option array and print one of its values
|
5527 |
|
5528 |
public function seopress_google_analytics_half_disable_callback()
|
5529 |
{
|
5530 |
+
$options = get_option( 'seopress_google_analytics_option_name' );
|
5531 |
|
5532 |
+
$check = isset($options['seopress_google_analytics_half_disable']);
|
5533 |
|
5534 |
echo '<input id="seopress_google_analytics_half_disable" name="seopress_google_analytics_option_name[seopress_google_analytics_half_disable]" type="checkbox"';
|
5535 |
if ('1' == $check) echo 'checked="yes"';
|
5574 |
printf(
|
5575 |
'<input type="text" name="seopress_google_analytics_option_name[seopress_google_analytics_opt_out_msg_ok]" placeholder="'.esc_html__('Accept','wp-seopress').'" aria-label="'.__('Change the button value','wp-seopress').'" value="%s"/>',
|
5576 |
esc_html( $check )
|
5577 |
+
);
|
5578 |
+
}
|
5579 |
+
|
5580 |
+
public function seopress_google_analytics_cb_pos_callback()
|
5581 |
+
{
|
5582 |
+
$options = get_option( 'seopress_google_analytics_option_name' );
|
5583 |
+
|
5584 |
+
$selected = isset($options['seopress_google_analytics_cb_pos']) ? $options['seopress_google_analytics_cb_pos'] : NULL;
|
5585 |
+
|
5586 |
+
echo '<select id="seopress_google_analytics_cb_pos" name="seopress_google_analytics_option_name[seopress_google_analytics_cb_pos]">';
|
5587 |
+
echo ' <option ';
|
5588 |
+
if ('bottom' == $selected) echo 'selected="selected"';
|
5589 |
+
echo ' value="bottom">'. __("Bottom (default)","wp-seopress") .'</option>';
|
5590 |
+
echo ' <option ';
|
5591 |
+
if ('top' == $selected) echo 'selected="selected"';
|
5592 |
+
echo ' value="top">'. __("Top","wp-seopress") .'</option>';
|
5593 |
+
echo '</select>';
|
5594 |
+
|
5595 |
+
if (isset($this->options['seopress_google_analytics_cb_pos'])) {
|
5596 |
+
esc_attr( $this->options['seopress_google_analytics_cb_pos']);
|
5597 |
+
}
|
5598 |
+
}
|
5599 |
+
|
5600 |
+
public function seopress_google_analytics_cb_bg_callback()
|
5601 |
+
{
|
5602 |
+
$check = isset($this->options['seopress_google_analytics_cb_bg']) ? $this->options['seopress_google_analytics_cb_bg'] : NULL;
|
5603 |
+
|
5604 |
+
printf(
|
5605 |
+
'<input type="text" data-default-color="#F1F1F1" name="seopress_google_analytics_option_name[seopress_google_analytics_cb_bg]" aria-label="'.__('Change the cookie bar background color','wp-seopress').'" value="%s" class="seopress_admin_color_picker"/>',
|
5606 |
+
esc_html( $check )
|
5607 |
+
);
|
5608 |
+
}
|
5609 |
+
|
5610 |
+
public function seopress_google_analytics_cb_txt_col_callback()
|
5611 |
+
{
|
5612 |
+
$check = isset($this->options['seopress_google_analytics_cb_txt_col']) ? $this->options['seopress_google_analytics_cb_txt_col'] : NULL;
|
5613 |
+
|
5614 |
+
printf(
|
5615 |
+
'<input type="text" name="seopress_google_analytics_option_name[seopress_google_analytics_cb_txt_col]" aria-label="'.__('Change the cookie bar text color','wp-seopress').'" value="%s" class="seopress_admin_color_picker"/>',
|
5616 |
+
esc_html( $check )
|
5617 |
+
);
|
5618 |
+
}
|
5619 |
+
|
5620 |
+
public function seopress_google_analytics_cb_lk_col_callback()
|
5621 |
+
{
|
5622 |
+
$check = isset($this->options['seopress_google_analytics_cb_lk_col']) ? $this->options['seopress_google_analytics_cb_lk_col'] : NULL;
|
5623 |
+
|
5624 |
+
printf(
|
5625 |
+
'<input type="text" name="seopress_google_analytics_option_name[seopress_google_analytics_cb_lk_col]" aria-label="'.__('Change the cookie bar link color','wp-seopress').'" value="%s" class="seopress_admin_color_picker"/>',
|
5626 |
+
esc_html( $check )
|
5627 |
+
);
|
5628 |
+
}
|
5629 |
+
|
5630 |
+
public function seopress_google_analytics_cb_btn_bg_callback()
|
5631 |
+
{
|
5632 |
+
$check = isset($this->options['seopress_google_analytics_cb_btn_bg']) ? $this->options['seopress_google_analytics_cb_btn_bg'] : NULL;
|
5633 |
+
|
5634 |
+
printf(
|
5635 |
+
'<input type="text" name="seopress_google_analytics_option_name[seopress_google_analytics_cb_btn_bg]" aria-label="'.__('Change the cookie bar button background color','wp-seopress').'" value="%s" class="seopress_admin_color_picker"/>',
|
5636 |
+
esc_html( $check )
|
5637 |
+
);
|
5638 |
+
}
|
5639 |
+
|
5640 |
+
public function seopress_google_analytics_cb_btn_bg_hov_callback()
|
5641 |
+
{
|
5642 |
+
$check = isset($this->options['seopress_google_analytics_cb_btn_bg_hov']) ? $this->options['seopress_google_analytics_cb_btn_bg_hov'] : NULL;
|
5643 |
+
|
5644 |
+
printf(
|
5645 |
+
'<input type="text" name="seopress_google_analytics_option_name[seopress_google_analytics_cb_btn_bg_hov]" aria-label="'.__('Change the cookie bar button hover background color','wp-seopress').'" value="%s" class="seopress_admin_color_picker"/>',
|
5646 |
+
esc_html( $check )
|
5647 |
+
);
|
5648 |
+
}
|
5649 |
+
|
5650 |
+
public function seopress_google_analytics_cb_btn_col_callback()
|
5651 |
+
{
|
5652 |
+
$check = isset($this->options['seopress_google_analytics_cb_btn_col']) ? $this->options['seopress_google_analytics_cb_btn_col'] : NULL;
|
5653 |
+
|
5654 |
+
printf(
|
5655 |
+
'<input type="text" name="seopress_google_analytics_option_name[seopress_google_analytics_cb_btn_col]" aria-label="'.__('Change the cookie bar button color','wp-seopress').'" value="%s" class="seopress_admin_color_picker"/>',
|
5656 |
+
esc_html( $check )
|
5657 |
+
);
|
5658 |
+
}
|
5659 |
+
|
5660 |
+
public function seopress_google_analytics_cb_btn_col_hov_callback()
|
5661 |
+
{
|
5662 |
+
$check = isset($this->options['seopress_google_analytics_cb_btn_col_hov']) ? $this->options['seopress_google_analytics_cb_btn_col_hov'] : NULL;
|
5663 |
+
|
5664 |
+
printf(
|
5665 |
+
'<input type="text" name="seopress_google_analytics_option_name[seopress_google_analytics_cb_btn_col_hov]" aria-label="'.__('Change the cookie bar button hover color','wp-seopress').'" value="%s" class="seopress_admin_color_picker"/>',
|
5666 |
+
esc_html( $check )
|
5667 |
+
);
|
5668 |
+
}
|
5669 |
+
|
5670 |
+
public function seopress_google_analytics_cb_btn_sec_bg_callback()
|
5671 |
+
{
|
5672 |
+
$check = isset($this->options['seopress_google_analytics_cb_btn_sec_bg']) ? $this->options['seopress_google_analytics_cb_btn_sec_bg'] : NULL;
|
5673 |
+
|
5674 |
+
printf(
|
5675 |
+
'<input type="text" name="seopress_google_analytics_option_name[seopress_google_analytics_cb_btn_sec_bg]" aria-label="'.__('Change the cookie bar secondary button background color','wp-seopress').'" value="%s" class="seopress_admin_color_picker"/>',
|
5676 |
+
esc_html( $check )
|
5677 |
+
);
|
5678 |
+
}
|
5679 |
+
|
5680 |
+
public function seopress_google_analytics_cb_btn_sec_col_callback()
|
5681 |
+
{
|
5682 |
+
$check = isset($this->options['seopress_google_analytics_cb_btn_sec_col']) ? $this->options['seopress_google_analytics_cb_btn_sec_col'] : NULL;
|
5683 |
+
|
5684 |
+
printf(
|
5685 |
+
'<input type="text" name="seopress_google_analytics_option_name[seopress_google_analytics_cb_btn_sec_col]" aria-label="'.__('Change the cookie bar secondary button hover background color','wp-seopress').'" value="%s" class="seopress_admin_color_picker"/>',
|
5686 |
+
esc_html( $check )
|
5687 |
+
);
|
5688 |
+
}
|
5689 |
+
|
5690 |
+
public function seopress_google_analytics_cb_btn_sec_bg_hov_callback()
|
5691 |
+
{
|
5692 |
+
$check = isset($this->options['seopress_google_analytics_cb_btn_sec_bg_hov']) ? $this->options['seopress_google_analytics_cb_btn_sec_bg_hov'] : NULL;
|
5693 |
+
|
5694 |
+
printf(
|
5695 |
+
'<input type="text" data-default-color="#222222" name="seopress_google_analytics_option_name[seopress_google_analytics_cb_btn_sec_bg_hov]" aria-label="'.__('Change the cookie bar secondary button color','wp-seopress').'" value="%s" class="seopress_admin_color_picker"/>',
|
5696 |
+
esc_html( $check )
|
5697 |
+
);
|
5698 |
+
}
|
5699 |
+
|
5700 |
+
public function seopress_google_analytics_cb_btn_sec_col_hov_callback()
|
5701 |
+
{
|
5702 |
+
$check = isset($this->options['seopress_google_analytics_cb_btn_sec_col_hov']) ? $this->options['seopress_google_analytics_cb_btn_sec_col_hov'] : NULL;
|
5703 |
+
|
5704 |
+
printf(
|
5705 |
+
'<input type="text" data-default-color="#FFFFFF" name="seopress_google_analytics_option_name[seopress_google_analytics_cb_btn_sec_col_hov]" aria-label="'.__('Change the cookie bar secondary button hover color','wp-seopress').'" value="%s" class="seopress_admin_color_picker"/>',
|
5706 |
+
esc_html( $check )
|
5707 |
+
);
|
5708 |
}
|
5709 |
|
5710 |
public function seopress_google_analytics_roles_callback()
|
inc/admin/ajax.php
CHANGED
@@ -135,44 +135,85 @@ function seopress_do_real_preview() {
|
|
135 |
|
136 |
//OG:title
|
137 |
$og_title = $xpath->query('//meta[@property="og:title"]/@content');
|
138 |
-
|
139 |
-
|
140 |
-
$data['og_title'] =
|
|
|
|
|
|
|
141 |
}
|
142 |
|
143 |
//OG:description
|
144 |
$og_desc = $xpath->query('//meta[@property="og:description"]/@content');
|
145 |
|
146 |
-
|
147 |
-
$data['og_desc'] =
|
|
|
|
|
|
|
148 |
}
|
149 |
|
150 |
//OG:image
|
151 |
$og_img = $xpath->query('//meta[@property="og:image"]/@content');
|
152 |
|
153 |
-
|
154 |
-
$data['og_img'] =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
}
|
156 |
|
157 |
//Twitter:title
|
158 |
$tw_title = $xpath->query('//meta[@name="twitter:title"]/@content');
|
159 |
|
160 |
-
|
161 |
-
$data['tw_title'] =
|
|
|
|
|
|
|
162 |
}
|
163 |
|
164 |
//Twitter:description
|
165 |
$tw_desc = $xpath->query('//meta[@name="twitter:description"]/@content');
|
166 |
|
167 |
-
|
168 |
-
$data['tw_desc'] =
|
|
|
|
|
|
|
169 |
}
|
170 |
|
171 |
//Twitter:image
|
172 |
$tw_img = $xpath->query('//meta[@name="twitter:image"]/@content');
|
173 |
|
174 |
-
|
175 |
-
$data['tw_img'] =
|
|
|
|
|
|
|
176 |
}
|
177 |
|
178 |
//Canonical
|
@@ -182,8 +223,8 @@ function seopress_do_real_preview() {
|
|
182 |
$data['canonical'] = esc_attr(stripslashes_deep(wp_filter_nohtml_kses($mcanonical->nodeValue)));
|
183 |
}
|
184 |
|
185 |
-
//h1
|
186 |
if(isset($_GET['seopress_analysis_target_kw']) && !empty($_GET['seopress_analysis_target_kw'])) {
|
|
|
187 |
$h1 = $xpath->query("//h1");
|
188 |
if (!empty($h1)) {
|
189 |
$data['h1']['nomatches']['count'] = count($h1);
|
@@ -193,6 +234,7 @@ function seopress_do_real_preview() {
|
|
193 |
$data['h1']['matches'][$kw][] = $m[0];
|
194 |
}
|
195 |
}
|
|
|
196 |
}
|
197 |
}
|
198 |
|
@@ -233,7 +275,7 @@ function seopress_do_real_preview() {
|
|
233 |
|
234 |
if (!empty($kw_slug)) {
|
235 |
foreach ($seopress_analysis_target_kw as $kw) {
|
236 |
-
if (in_array($kw, $kw_slug)) {
|
237 |
$data['kws_permalink']['matches'][$kw][] = $kw;
|
238 |
}
|
239 |
}
|
@@ -1019,6 +1061,8 @@ function seopress_metadata_export() {
|
|
1019 |
$download_url = '';
|
1020 |
|
1021 |
$settings["id"] = array();
|
|
|
|
|
1022 |
$settings["meta_title"] = array();
|
1023 |
$settings["meta_desc"] = array();
|
1024 |
$settings["fb_title"] = array();
|
@@ -1066,6 +1110,10 @@ function seopress_metadata_export() {
|
|
1066 |
// The Loop
|
1067 |
foreach ($meta_query as $post) {
|
1068 |
array_push($settings["id"], $post->ID);
|
|
|
|
|
|
|
|
|
1069 |
|
1070 |
array_push($settings["meta_title"], get_post_meta( $post->ID, '_seopress_titles_title', true ));
|
1071 |
|
@@ -1099,10 +1147,12 @@ function seopress_metadata_export() {
|
|
1099 |
|
1100 |
array_push($settings["target_kw"], get_post_meta( $post->ID, '_seopress_analysis_target_kw', true ));
|
1101 |
|
1102 |
-
$csv[] = array_merge($settings["id"],$settings["meta_title"],$settings["meta_desc"],$settings["fb_title"],$settings["fb_desc"],$settings["fb_img"],$settings["tw_title"],$settings["tw_desc"],$settings["tw_img"],$settings["noindex"],$settings["nofollow"],$settings["noodp"],$settings["noimageindex"],$settings["noarchive"],$settings["nosnippet"],$settings["canonical_url"],$settings["target_kw"]);
|
1103 |
|
1104 |
//Clean arrays
|
1105 |
$settings["id"] = array();
|
|
|
|
|
1106 |
$settings["meta_title"] = array();
|
1107 |
$settings["meta_desc"] = array();
|
1108 |
$settings["fb_title"] = array();
|
135 |
|
136 |
//OG:title
|
137 |
$og_title = $xpath->query('//meta[@property="og:title"]/@content');
|
138 |
+
|
139 |
+
if (!empty($og_title)) {
|
140 |
+
$data['og_title']['count'] = count($og_title);
|
141 |
+
foreach ($og_title as $key=>$mogtitle) {
|
142 |
+
$data['og_title']['values'][] = esc_attr(stripslashes_deep(wp_filter_nohtml_kses($mogtitle->nodeValue)));
|
143 |
+
}
|
144 |
}
|
145 |
|
146 |
//OG:description
|
147 |
$og_desc = $xpath->query('//meta[@property="og:description"]/@content');
|
148 |
|
149 |
+
if (!empty($og_desc)) {
|
150 |
+
$data['og_desc']['count'] = count($og_desc);
|
151 |
+
foreach ($og_desc as $key=>$mog_desc) {
|
152 |
+
$data['og_desc']['values'][] = esc_attr(stripslashes_deep(wp_filter_nohtml_kses($mog_desc->nodeValue)));
|
153 |
+
}
|
154 |
}
|
155 |
|
156 |
//OG:image
|
157 |
$og_img = $xpath->query('//meta[@property="og:image"]/@content');
|
158 |
|
159 |
+
if (!empty($og_img)) {
|
160 |
+
$data['og_img']['count'] = count($og_img);
|
161 |
+
foreach ($og_img as $key=>$mog_img) {
|
162 |
+
$data['og_img']['values'][] = esc_attr(stripslashes_deep(wp_filter_nohtml_kses($mog_img->nodeValue)));
|
163 |
+
}
|
164 |
+
}
|
165 |
+
|
166 |
+
//OG:url
|
167 |
+
$og_url = $xpath->query('//meta[@property="og:url"]/@content');
|
168 |
+
|
169 |
+
if (!empty($og_url)) {
|
170 |
+
$data['og_url']['count'] = count($og_url);
|
171 |
+
foreach ($og_url as $key=>$mog_url) {
|
172 |
+
$url = esc_attr(stripslashes_deep(wp_filter_nohtml_kses($mog_url->nodeValue)));
|
173 |
+
$data['og_url']['values'][] = $url;
|
174 |
+
$url = wp_parse_url($url);
|
175 |
+
$data['og_url']['host'] = $url['host'];
|
176 |
+
}
|
177 |
+
}
|
178 |
+
|
179 |
+
//OG:site_name
|
180 |
+
$og_site_name = $xpath->query('//meta[@property="og:site_name"]/@content');
|
181 |
+
|
182 |
+
if (!empty($og_site_name)) {
|
183 |
+
$data['og_site_name']['count'] = count($og_site_name);
|
184 |
+
foreach ($og_site_name as $key=>$mog_site_name) {
|
185 |
+
$data['og_site_name']['values'][] = esc_attr(stripslashes_deep(wp_filter_nohtml_kses($mog_site_name->nodeValue)));
|
186 |
+
}
|
187 |
}
|
188 |
|
189 |
//Twitter:title
|
190 |
$tw_title = $xpath->query('//meta[@name="twitter:title"]/@content');
|
191 |
|
192 |
+
if (!empty($tw_title)) {
|
193 |
+
$data['tw_title']['count'] = count($tw_title);
|
194 |
+
foreach ($tw_title as $key=>$mtw_title) {
|
195 |
+
$data['tw_title']['values'][] = esc_attr(stripslashes_deep(wp_filter_nohtml_kses($mtw_title->nodeValue)));
|
196 |
+
}
|
197 |
}
|
198 |
|
199 |
//Twitter:description
|
200 |
$tw_desc = $xpath->query('//meta[@name="twitter:description"]/@content');
|
201 |
|
202 |
+
if (!empty($tw_desc)) {
|
203 |
+
$data['tw_desc']['count'] = count($tw_desc);
|
204 |
+
foreach ($tw_desc as $key=>$mtw_desc) {
|
205 |
+
$data['tw_desc']['values'][] = esc_attr(stripslashes_deep(wp_filter_nohtml_kses($mtw_desc->nodeValue)));
|
206 |
+
}
|
207 |
}
|
208 |
|
209 |
//Twitter:image
|
210 |
$tw_img = $xpath->query('//meta[@name="twitter:image"]/@content');
|
211 |
|
212 |
+
if (!empty($tw_img)) {
|
213 |
+
$data['tw_img']['count'] = count($tw_img);
|
214 |
+
foreach ($tw_img as $key=>$mtw_img) {
|
215 |
+
$data['tw_img']['values'][] = esc_attr(stripslashes_deep(wp_filter_nohtml_kses($mtw_img->nodeValue)));
|
216 |
+
}
|
217 |
}
|
218 |
|
219 |
//Canonical
|
223 |
$data['canonical'] = esc_attr(stripslashes_deep(wp_filter_nohtml_kses($mcanonical->nodeValue)));
|
224 |
}
|
225 |
|
|
|
226 |
if(isset($_GET['seopress_analysis_target_kw']) && !empty($_GET['seopress_analysis_target_kw'])) {
|
227 |
+
//h1
|
228 |
$h1 = $xpath->query("//h1");
|
229 |
if (!empty($h1)) {
|
230 |
$data['h1']['nomatches']['count'] = count($h1);
|
234 |
$data['h1']['matches'][$kw][] = $m[0];
|
235 |
}
|
236 |
}
|
237 |
+
$data['h1']['values'][] = esc_attr($heading1->nodeValue);
|
238 |
}
|
239 |
}
|
240 |
|
275 |
|
276 |
if (!empty($kw_slug)) {
|
277 |
foreach ($seopress_analysis_target_kw as $kw) {
|
278 |
+
if (in_array(strtolower($kw), $kw_slug)) {
|
279 |
$data['kws_permalink']['matches'][$kw][] = $kw;
|
280 |
}
|
281 |
}
|
1061 |
$download_url = '';
|
1062 |
|
1063 |
$settings["id"] = array();
|
1064 |
+
$settings["post_title"] = array();
|
1065 |
+
$settings["url"] = array();
|
1066 |
$settings["meta_title"] = array();
|
1067 |
$settings["meta_desc"] = array();
|
1068 |
$settings["fb_title"] = array();
|
1110 |
// The Loop
|
1111 |
foreach ($meta_query as $post) {
|
1112 |
array_push($settings["id"], $post->ID);
|
1113 |
+
|
1114 |
+
array_push($settings["post_title"], $post->post_title);
|
1115 |
+
|
1116 |
+
array_push($settings["url"], get_permalink($post));
|
1117 |
|
1118 |
array_push($settings["meta_title"], get_post_meta( $post->ID, '_seopress_titles_title', true ));
|
1119 |
|
1147 |
|
1148 |
array_push($settings["target_kw"], get_post_meta( $post->ID, '_seopress_analysis_target_kw', true ));
|
1149 |
|
1150 |
+
$csv[] = array_merge($settings["id"],$settings["post_title"],$settings["url"],$settings["meta_title"],$settings["meta_desc"],$settings["fb_title"],$settings["fb_desc"],$settings["fb_img"],$settings["tw_title"],$settings["tw_desc"],$settings["tw_img"],$settings["noindex"],$settings["nofollow"],$settings["noodp"],$settings["noimageindex"],$settings["noarchive"],$settings["nosnippet"],$settings["canonical_url"],$settings["target_kw"]);
|
1151 |
|
1152 |
//Clean arrays
|
1153 |
$settings["id"] = array();
|
1154 |
+
$settings["post_title"] = array();
|
1155 |
+
$settings["url"] = array();
|
1156 |
$settings["meta_title"] = array();
|
1157 |
$settings["meta_desc"] = array();
|
1158 |
$settings["fb_title"] = array();
|
inc/functions/options-google-analytics.php
CHANGED
@@ -17,6 +17,138 @@ if (seopress_google_analytics_disable_option() =='1' && ( (empty($_COOKIE["seopr
|
|
17 |
}
|
18 |
}
|
19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
function seopress_cookies_user_consent_html() {
|
21 |
if (seopress_google_analytics_opt_out_msg_option() !='') {
|
22 |
$msg = seopress_google_analytics_opt_out_msg_option();
|
@@ -37,9 +169,99 @@ if (seopress_google_analytics_disable_option() =='1' && ( (empty($_COOKIE["seopr
|
|
37 |
$consent_btn = seopress_google_analytics_opt_out_msg_ok_option();
|
38 |
} else {
|
39 |
$consent_btn = __('Accept','wp-seopress');
|
40 |
-
}
|
41 |
-
|
42 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
|
44 |
$user_msg = apply_filters('seopress_rgpd_full_message', $user_msg, $msg, $consent_btn);
|
45 |
|
17 |
}
|
18 |
}
|
19 |
|
20 |
+
function seopress_google_analytics_cb_bg_option() {
|
21 |
+
$seopress_google_analytics_cb_bg_option = get_option("seopress_google_analytics_option_name");
|
22 |
+
if ( ! empty ( $seopress_google_analytics_cb_bg_option ) ) {
|
23 |
+
foreach ($seopress_google_analytics_cb_bg_option as $key => $seopress_google_analytics_cb_bg_value)
|
24 |
+
$options[$key] = $seopress_google_analytics_cb_bg_value;
|
25 |
+
if (isset($seopress_google_analytics_cb_bg_option['seopress_google_analytics_cb_bg'])) {
|
26 |
+
return $seopress_google_analytics_cb_bg_option['seopress_google_analytics_cb_bg'];
|
27 |
+
}
|
28 |
+
}
|
29 |
+
}
|
30 |
+
|
31 |
+
function seopress_google_analytics_cb_txt_col_option() {
|
32 |
+
$seopress_google_analytics_cb_txt_col_option = get_option("seopress_google_analytics_option_name");
|
33 |
+
if ( ! empty ( $seopress_google_analytics_cb_txt_col_option ) ) {
|
34 |
+
foreach ($seopress_google_analytics_cb_txt_col_option as $key => $seopress_google_analytics_cb_txt_col_value)
|
35 |
+
$options[$key] = $seopress_google_analytics_cb_txt_col_value;
|
36 |
+
if (isset($seopress_google_analytics_cb_txt_col_option['seopress_google_analytics_cb_txt_col'])) {
|
37 |
+
return $seopress_google_analytics_cb_txt_col_option['seopress_google_analytics_cb_txt_col'];
|
38 |
+
}
|
39 |
+
}
|
40 |
+
}
|
41 |
+
|
42 |
+
function seopress_google_analytics_cb_lk_col_option() {
|
43 |
+
$seopress_google_analytics_cb_lk_col_option = get_option("seopress_google_analytics_option_name");
|
44 |
+
if ( ! empty ( $seopress_google_analytics_cb_lk_col_option ) ) {
|
45 |
+
foreach ($seopress_google_analytics_cb_lk_col_option as $key => $seopress_google_analytics_cb_lk_col_value)
|
46 |
+
$options[$key] = $seopress_google_analytics_cb_lk_col_value;
|
47 |
+
if (isset($seopress_google_analytics_cb_lk_col_option['seopress_google_analytics_cb_lk_col'])) {
|
48 |
+
return $seopress_google_analytics_cb_lk_col_option['seopress_google_analytics_cb_lk_col'];
|
49 |
+
}
|
50 |
+
}
|
51 |
+
}
|
52 |
+
|
53 |
+
function seopress_google_analytics_cb_btn_bg_option() {
|
54 |
+
$seopress_google_analytics_cb_btn_bg_option = get_option("seopress_google_analytics_option_name");
|
55 |
+
if ( ! empty ( $seopress_google_analytics_cb_btn_bg_option ) ) {
|
56 |
+
foreach ($seopress_google_analytics_cb_btn_bg_option as $key => $seopress_google_analytics_cb_btn_bg_value)
|
57 |
+
$options[$key] = $seopress_google_analytics_cb_btn_bg_value;
|
58 |
+
if (isset($seopress_google_analytics_cb_btn_bg_option['seopress_google_analytics_cb_btn_bg'])) {
|
59 |
+
return $seopress_google_analytics_cb_btn_bg_option['seopress_google_analytics_cb_btn_bg'];
|
60 |
+
}
|
61 |
+
}
|
62 |
+
}
|
63 |
+
|
64 |
+
function seopress_google_analytics_cb_btn_bg_hov_option() {
|
65 |
+
$seopress_google_analytics_cb_btn_bg_hov_option = get_option("seopress_google_analytics_option_name");
|
66 |
+
if ( ! empty ( $seopress_google_analytics_cb_btn_bg_hov_option ) ) {
|
67 |
+
foreach ($seopress_google_analytics_cb_btn_bg_hov_option as $key => $seopress_google_analytics_cb_btn_bg_hov_value)
|
68 |
+
$options[$key] = $seopress_google_analytics_cb_btn_bg_hov_value;
|
69 |
+
if (isset($seopress_google_analytics_cb_btn_bg_hov_option['seopress_google_analytics_cb_btn_bg_hov'])) {
|
70 |
+
return $seopress_google_analytics_cb_btn_bg_hov_option['seopress_google_analytics_cb_btn_bg_hov'];
|
71 |
+
}
|
72 |
+
}
|
73 |
+
}
|
74 |
+
|
75 |
+
function seopress_google_analytics_cb_btn_col_option() {
|
76 |
+
$seopress_google_analytics_cb_btn_col_option = get_option("seopress_google_analytics_option_name");
|
77 |
+
if ( ! empty ( $seopress_google_analytics_cb_btn_col_option ) ) {
|
78 |
+
foreach ($seopress_google_analytics_cb_btn_col_option as $key => $seopress_google_analytics_cb_btn_col_value)
|
79 |
+
$options[$key] = $seopress_google_analytics_cb_btn_col_value;
|
80 |
+
if (isset($seopress_google_analytics_cb_btn_col_option['seopress_google_analytics_cb_btn_col'])) {
|
81 |
+
return $seopress_google_analytics_cb_btn_col_option['seopress_google_analytics_cb_btn_col'];
|
82 |
+
}
|
83 |
+
}
|
84 |
+
}
|
85 |
+
|
86 |
+
function seopress_google_analytics_cb_btn_col_hov_option() {
|
87 |
+
$seopress_google_analytics_cb_btn_col_hov_option = get_option("seopress_google_analytics_option_name");
|
88 |
+
if ( ! empty ( $seopress_google_analytics_cb_btn_col_hov_option ) ) {
|
89 |
+
foreach ($seopress_google_analytics_cb_btn_col_hov_option as $key => $seopress_google_analytics_cb_btn_col_hov_value)
|
90 |
+
$options[$key] = $seopress_google_analytics_cb_btn_col_hov_value;
|
91 |
+
if (isset($seopress_google_analytics_cb_btn_col_hov_option['seopress_google_analytics_cb_btn_col_hov'])) {
|
92 |
+
return $seopress_google_analytics_cb_btn_col_hov_option['seopress_google_analytics_cb_btn_col_hov'];
|
93 |
+
}
|
94 |
+
}
|
95 |
+
}
|
96 |
+
|
97 |
+
function seopress_google_analytics_cb_btn_sec_bg_option() {
|
98 |
+
$seopress_google_analytics_cb_btn_sec_bg_option = get_option("seopress_google_analytics_option_name");
|
99 |
+
if ( ! empty ( $seopress_google_analytics_cb_btn_sec_bg_option ) ) {
|
100 |
+
foreach ($seopress_google_analytics_cb_btn_sec_bg_option as $key => $seopress_google_analytics_cb_btn_sec_bg_value)
|
101 |
+
$options[$key] = $seopress_google_analytics_cb_btn_sec_bg_value;
|
102 |
+
if (isset($seopress_google_analytics_cb_btn_sec_bg_option['seopress_google_analytics_cb_btn_sec_bg'])) {
|
103 |
+
return $seopress_google_analytics_cb_btn_sec_bg_option['seopress_google_analytics_cb_btn_sec_bg'];
|
104 |
+
}
|
105 |
+
}
|
106 |
+
}
|
107 |
+
|
108 |
+
function seopress_google_analytics_cb_btn_sec_col_option() {
|
109 |
+
$seopress_google_analytics_cb_btn_sec_col_option = get_option("seopress_google_analytics_option_name");
|
110 |
+
if ( ! empty ( $seopress_google_analytics_cb_btn_sec_col_option ) ) {
|
111 |
+
foreach ($seopress_google_analytics_cb_btn_sec_col_option as $key => $seopress_google_analytics_cb_btn_sec_col_value)
|
112 |
+
$options[$key] = $seopress_google_analytics_cb_btn_sec_col_value;
|
113 |
+
if (isset($seopress_google_analytics_cb_btn_sec_col_option['seopress_google_analytics_cb_btn_sec_col'])) {
|
114 |
+
return $seopress_google_analytics_cb_btn_sec_col_option['seopress_google_analytics_cb_btn_sec_col'];
|
115 |
+
}
|
116 |
+
}
|
117 |
+
}
|
118 |
+
|
119 |
+
function seopress_google_analytics_cb_btn_sec_bg_hov_option() {
|
120 |
+
$seopress_google_analytics_cb_btn_sec_bg_hov_option = get_option("seopress_google_analytics_option_name");
|
121 |
+
if ( ! empty ( $seopress_google_analytics_cb_btn_sec_bg_hov_option ) ) {
|
122 |
+
foreach ($seopress_google_analytics_cb_btn_sec_bg_hov_option as $key => $seopress_google_analytics_cb_btn_sec_bg_hov_value)
|
123 |
+
$options[$key] = $seopress_google_analytics_cb_btn_sec_bg_hov_value;
|
124 |
+
if (isset($seopress_google_analytics_cb_btn_sec_bg_hov_option['seopress_google_analytics_cb_btn_sec_bg_hov'])) {
|
125 |
+
return $seopress_google_analytics_cb_btn_sec_bg_hov_option['seopress_google_analytics_cb_btn_sec_bg_hov'];
|
126 |
+
}
|
127 |
+
}
|
128 |
+
}
|
129 |
+
|
130 |
+
function seopress_google_analytics_cb_btn_sec_col_hov_option() {
|
131 |
+
$seopress_google_analytics_cb_btn_sec_col_hov_option = get_option("seopress_google_analytics_option_name");
|
132 |
+
if ( ! empty ( $seopress_google_analytics_cb_btn_sec_col_hov_option ) ) {
|
133 |
+
foreach ($seopress_google_analytics_cb_btn_sec_col_hov_option as $key => $seopress_google_analytics_cb_btn_sec_col_hov_value)
|
134 |
+
$options[$key] = $seopress_google_analytics_cb_btn_sec_col_hov_value;
|
135 |
+
if (isset($seopress_google_analytics_cb_btn_sec_col_hov_option['seopress_google_analytics_cb_btn_sec_col_hov'])) {
|
136 |
+
return $seopress_google_analytics_cb_btn_sec_col_hov_option['seopress_google_analytics_cb_btn_sec_col_hov'];
|
137 |
+
}
|
138 |
+
}
|
139 |
+
}
|
140 |
+
|
141 |
+
function seopress_google_analytics_cb_pos_option() {
|
142 |
+
$seopress_google_analytics_cb_pos_option = get_option("seopress_google_analytics_option_name");
|
143 |
+
if ( ! empty ( $seopress_google_analytics_cb_pos_option ) ) {
|
144 |
+
foreach ($seopress_google_analytics_cb_pos_option as $key => $seopress_google_analytics_cb_pos_value)
|
145 |
+
$options[$key] = $seopress_google_analytics_cb_pos_value;
|
146 |
+
if (isset($seopress_google_analytics_cb_pos_option['seopress_google_analytics_cb_pos'])) {
|
147 |
+
return $seopress_google_analytics_cb_pos_option['seopress_google_analytics_cb_pos'];
|
148 |
+
}
|
149 |
+
}
|
150 |
+
}
|
151 |
+
|
152 |
function seopress_cookies_user_consent_html() {
|
153 |
if (seopress_google_analytics_opt_out_msg_option() !='') {
|
154 |
$msg = seopress_google_analytics_opt_out_msg_option();
|
169 |
$consent_btn = seopress_google_analytics_opt_out_msg_ok_option();
|
170 |
} else {
|
171 |
$consent_btn = __('Accept','wp-seopress');
|
172 |
+
}
|
173 |
+
|
174 |
+
$styles = '<style>.seopress-user-consent {position: fixed;z-index: 8000;width: 100%;padding: 10px;left: 0;text-align: center;';
|
175 |
+
|
176 |
+
//Position
|
177 |
+
if (seopress_google_analytics_cb_pos_option() ==='top') {
|
178 |
+
$styles .= 'top:0;';
|
179 |
+
} else {
|
180 |
+
$styles .= 'bottom:0;';
|
181 |
+
}
|
182 |
+
|
183 |
+
//Background color
|
184 |
+
if (seopress_google_analytics_cb_bg_option() !='') {
|
185 |
+
$styles .= 'background:'.seopress_google_analytics_cb_bg_option().';';
|
186 |
+
} else {
|
187 |
+
$styles .= 'background:#F1F1F1;';
|
188 |
+
}
|
189 |
+
|
190 |
+
$styles .='}.seopress-user-consent p {margin: 0;font-size: 0.8em;justify-content: center;';
|
191 |
+
|
192 |
+
//Text color
|
193 |
+
if (seopress_google_analytics_cb_txt_col_option() !='') {
|
194 |
+
$styles .= 'color:'.seopress_google_analytics_cb_txt_col_option().';';
|
195 |
+
}
|
196 |
+
|
197 |
+
$styles .='}.seopress-user-consent button {vertical-align: middle;margin: 0 10px;padding: 5px 20px;font-size: 14px;';
|
198 |
+
|
199 |
+
//Btn background color
|
200 |
+
if (seopress_google_analytics_cb_btn_bg_option() !='') {
|
201 |
+
$styles .= 'background:'.seopress_google_analytics_cb_btn_bg_option().';';
|
202 |
+
}
|
203 |
+
|
204 |
+
//Btn text color
|
205 |
+
if (seopress_google_analytics_cb_btn_col_option() !='') {
|
206 |
+
$styles .= 'color:'.seopress_google_analytics_cb_btn_col_option().';';
|
207 |
+
}
|
208 |
+
|
209 |
+
$styles .='}.seopress-user-consent button:hover{';
|
210 |
+
|
211 |
+
//Background hover color
|
212 |
+
if (seopress_google_analytics_cb_btn_bg_hov_option() !='') {
|
213 |
+
$styles .= 'background:'.seopress_google_analytics_cb_btn_bg_hov_option().';';
|
214 |
+
}
|
215 |
+
|
216 |
+
//Text hover color
|
217 |
+
if (seopress_google_analytics_cb_btn_col_hov_option() !='') {
|
218 |
+
$styles .= 'color:'.seopress_google_analytics_cb_btn_col_hov_option().';';
|
219 |
+
}
|
220 |
+
|
221 |
+
$styles .='}#seopress-user-consent-close{margin: 0 0 0 20px;position: relative;line-height: 26px;font-weight: bold;border: 1px solid #ccc;padding: 0 10px;';
|
222 |
+
|
223 |
+
//Background secondary button
|
224 |
+
if (seopress_google_analytics_cb_btn_sec_bg_option() !='') {
|
225 |
+
$styles .= 'background:'.seopress_google_analytics_cb_btn_sec_bg_option().';';
|
226 |
+
} else {
|
227 |
+
$styles .= 'background:none;';
|
228 |
+
}
|
229 |
+
|
230 |
+
//Color secondary button
|
231 |
+
if (seopress_google_analytics_cb_btn_sec_col_option() !='') {
|
232 |
+
$styles .= 'color:'.seopress_google_analytics_cb_btn_sec_col_option().';';
|
233 |
+
} else {
|
234 |
+
$styles .= 'color:inherit;';
|
235 |
+
}
|
236 |
+
|
237 |
+
$styles .='}#seopress-user-consent-close:hover{cursor:pointer;';
|
238 |
+
|
239 |
+
//Background secondary button hover
|
240 |
+
if (seopress_google_analytics_cb_btn_sec_bg_hov_option() !='') {
|
241 |
+
$styles .= 'background:'.seopress_google_analytics_cb_btn_sec_bg_hov_option().';';
|
242 |
+
} else {
|
243 |
+
$styles .= 'background:#222;';
|
244 |
+
}
|
245 |
+
|
246 |
+
//Color secondary button hover
|
247 |
+
if (seopress_google_analytics_cb_btn_sec_col_hov_option() !='') {
|
248 |
+
$styles .= 'color:'.seopress_google_analytics_cb_btn_sec_col_hov_option().';';
|
249 |
+
} else {
|
250 |
+
$styles .= 'color:#fff;';
|
251 |
+
}
|
252 |
+
|
253 |
+
$styles .='}';
|
254 |
+
|
255 |
+
//Link color
|
256 |
+
if (seopress_google_analytics_cb_lk_col_option() !='') {
|
257 |
+
$styles .= '.seopress-user-consent a{';
|
258 |
+
$styles .= 'color:'.seopress_google_analytics_cb_lk_col_option();
|
259 |
+
$styles .= '}';
|
260 |
+
}
|
261 |
+
|
262 |
+
$styles .='.seopress-user-consent-hide{display:none;}</style>';
|
263 |
+
|
264 |
+
$user_msg = $styles.'<div class="seopress-user-consent seopress-user-consent-hide" tabindex="10"><p>'.$msg.'<button id="seopress-user-consent-accept" tabindex="11">'.$consent_btn.'</button><button id="seopress-user-consent-close" tabindex="12">'.__('X','wp-seopress').'</button></p></div>';
|
265 |
|
266 |
$user_msg = apply_filters('seopress_rgpd_full_message', $user_msg, $msg, $consent_btn);
|
267 |
|
inc/functions/options-import-export.php
CHANGED
@@ -522,6 +522,7 @@ function seopress_backlinks_export_settings() {
|
|
522 |
}
|
523 |
add_action( 'admin_init', 'seopress_backlinks_export_settings' );
|
524 |
|
|
|
525 |
function seopress_download_batch_export() {
|
526 |
if( empty( $_GET['seopress_action'] ) || 'seopress_download_batch_export' != $_GET['seopress_action'] )
|
527 |
return;
|
@@ -536,6 +537,8 @@ function seopress_download_batch_export() {
|
|
536 |
|
537 |
$csv_fields = array();
|
538 |
$csv_fields[] = 'id';
|
|
|
|
|
539 |
$csv_fields[] = 'meta_title';
|
540 |
$csv_fields[] = 'meta_desc';
|
541 |
$csv_fields[] = 'fb_title';
|
522 |
}
|
523 |
add_action( 'admin_init', 'seopress_backlinks_export_settings' );
|
524 |
|
525 |
+
//Export metadata
|
526 |
function seopress_download_batch_export() {
|
527 |
if( empty( $_GET['seopress_action'] ) || 'seopress_download_batch_export' != $_GET['seopress_action'] )
|
528 |
return;
|
537 |
|
538 |
$csv_fields = array();
|
539 |
$csv_fields[] = 'id';
|
540 |
+
$csv_fields[] = 'post_title';
|
541 |
+
$csv_fields[] = 'url';
|
542 |
$csv_fields[] = 'meta_title';
|
543 |
$csv_fields[] = 'meta_desc';
|
544 |
$csv_fields[] = 'fb_title';
|
inc/functions/options-oembed.php
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
defined( 'ABSPATH' ) or die( 'Please don’t call the plugin directly. Thanks :)' );
|
3 |
+
|
4 |
+
//oEmbed
|
5 |
+
//=================================================================================================
|
6 |
+
//oEmbed Title
|
7 |
+
function seopress_oembed_title_post_option() {
|
8 |
+
if (function_exists("is_shop") && is_shop()) {
|
9 |
+
$_seopress_oembed_title = get_post_meta(get_option( 'woocommerce_shop_page_id' ),'_seopress_social_fb_title',true);
|
10 |
+
} else {
|
11 |
+
$_seopress_oembed_title = get_post_meta(get_the_ID(),'_seopress_social_fb_title',true);
|
12 |
+
}
|
13 |
+
if ($_seopress_oembed_title != '') {
|
14 |
+
return $_seopress_oembed_title;
|
15 |
+
}
|
16 |
+
}
|
17 |
+
|
18 |
+
function seopress_oembed_title_term_option() {
|
19 |
+
$_seopress_oembed_title = get_term_meta(get_queried_object()->{'term_id'},'_seopress_social_fb_title',true);
|
20 |
+
if ($_seopress_oembed_title != '') {
|
21 |
+
return $_seopress_oembed_title;
|
22 |
+
}
|
23 |
+
}
|
24 |
+
|
25 |
+
function seopress_oembed_title_home_option() {
|
26 |
+
$_seopress_oembed_title = get_post_meta(get_option( 'page_for_posts' ),'_seopress_social_fb_title',true);
|
27 |
+
if ($_seopress_oembed_title != '') {
|
28 |
+
return $_seopress_oembed_title;
|
29 |
+
}
|
30 |
+
}
|
31 |
+
|
32 |
+
function seopress_oembed_title_hook() {
|
33 |
+
//Init
|
34 |
+
$seopress_oembed_title ='';
|
35 |
+
|
36 |
+
if (is_home()) {
|
37 |
+
if (seopress_oembed_title_home_option() !='') {
|
38 |
+
$seopress_oembed_title = seopress_oembed_title_home_option();
|
39 |
+
} elseif (function_exists('seopress_titles_the_title') && seopress_titles_the_title() !='') {
|
40 |
+
$seopress_oembed_title = esc_attr(seopress_titles_the_title());
|
41 |
+
}
|
42 |
+
} elseif (is_tax() || is_category() || is_tag()) {
|
43 |
+
if (seopress_oembed_title_term_option() !='') {
|
44 |
+
$seopress_oembed_title = seopress_oembed_title_term_option();
|
45 |
+
} else {
|
46 |
+
$seopress_oembed_title = single_term_title('', false).' - '.get_bloginfo('name');
|
47 |
+
}
|
48 |
+
} elseif (is_singular() && seopress_oembed_title_post_option() !='') {
|
49 |
+
$seopress_oembed_title = seopress_oembed_title_post_option();
|
50 |
+
} elseif(function_exists("is_shop") && is_shop() && seopress_oembed_title_post_option() !='') {
|
51 |
+
$seopress_oembed_title = seopress_oembed_title_post_option();
|
52 |
+
} elseif (function_exists('seopress_titles_the_title') && seopress_titles_the_title() !='') {
|
53 |
+
$seopress_oembed_title = esc_attr(seopress_titles_the_title());
|
54 |
+
} elseif (get_the_title() !='') {
|
55 |
+
$seopress_oembed_title = the_title_attribute('echo=0');
|
56 |
+
}
|
57 |
+
|
58 |
+
//Hook on post oEmbed title - 'seopress_oembed_title'
|
59 |
+
if (has_filter('seopress_oembed_title')) {
|
60 |
+
$seopress_oembed_title = apply_filters('seopress_oembed_title', $seopress_oembed_title);
|
61 |
+
}
|
62 |
+
if (isset($seopress_oembed_title) && $seopress_oembed_title !='') {
|
63 |
+
return $seopress_oembed_title;
|
64 |
+
}
|
65 |
+
}
|
66 |
+
|
67 |
+
add_action('oembed_response_data', 'seopress_oembed_response_data', 10, 4);
|
68 |
+
function seopress_oembed_response_data($data, $post, $width, $height) {
|
69 |
+
if (function_exists('seopress_oembed_title_hook') && seopress_oembed_title_hook() !='') {
|
70 |
+
$data['title'] = seopress_oembed_title_hook();
|
71 |
+
}
|
72 |
+
return $data;
|
73 |
+
}
|
inc/functions/options-social.php
CHANGED
@@ -584,7 +584,7 @@ function seopress_social_fb_title_hook() {
|
|
584 |
}
|
585 |
if (isset($seopress_social_og_title) && $seopress_social_og_title !='') {
|
586 |
echo $seopress_social_og_title;
|
587 |
-
|
588 |
}
|
589 |
}
|
590 |
add_action( 'wp_head', 'seopress_social_fb_title_hook', 1 );
|
@@ -737,7 +737,7 @@ function seopress_thumbnail_in_content() {
|
|
737 |
$url = get_home_url().$url;
|
738 |
}
|
739 |
//cleaning url
|
740 |
-
$url = htmlspecialchars(
|
741 |
|
742 |
//remove query strings
|
743 |
$parse_url = wp_parse_url($url);
|
@@ -806,18 +806,24 @@ function seopress_social_fb_img_size_from_url($url) {
|
|
806 |
function seopress_social_fb_img_hook() {
|
807 |
if (seopress_social_facebook_og_option() =='1') {
|
808 |
//Init
|
|
|
809 |
$seopress_social_og_thumb ='';
|
810 |
|
811 |
if (is_home() && seopress_social_fb_img_home_option() !='' && 'page' == get_option( 'show_on_front' )) {
|
812 |
$seopress_social_og_thumb .= seopress_social_fb_img_size_from_url(seopress_social_fb_img_home_option());
|
|
|
813 |
} elseif ((is_singular() || (function_exists("is_shop") && is_shop())) && seopress_social_facebook_og_option() =='1' && seopress_social_fb_img_post_option() !='') {
|
814 |
$seopress_social_og_thumb .= seopress_social_fb_img_size_from_url(seopress_social_fb_img_post_option());
|
|
|
815 |
} elseif ((is_singular() || (function_exists("is_shop") && is_shop())) && seopress_social_facebook_og_option() =='1' && has_post_thumbnail() ) {
|
816 |
-
$seopress_social_og_thumb .= seopress_social_fb_img_size_from_url(get_the_post_thumbnail_url());
|
|
|
817 |
} elseif ((is_singular() || (function_exists("is_shop") && is_shop())) && seopress_social_facebook_og_option() =='1' && seopress_thumbnail_in_content() !='' ) {
|
818 |
$seopress_social_og_thumb .= seopress_social_fb_img_size_from_url(seopress_thumbnail_in_content());
|
|
|
819 |
} elseif ((is_tax() || is_category() || is_tag()) && seopress_social_fb_img_term_option() !='') {
|
820 |
$seopress_social_og_thumb .= seopress_social_fb_img_size_from_url(seopress_social_fb_img_term_option());
|
|
|
821 |
} elseif (seopress_social_facebook_og_option() =='1' && seopress_social_facebook_img_option() !='') {
|
822 |
$seopress_social_og_thumb .= seopress_social_fb_img_size_from_url(seopress_social_facebook_img_option());
|
823 |
}
|
@@ -1198,6 +1204,7 @@ function seopress_social_twitter_img_home_option() {
|
|
1198 |
function seopress_social_twitter_img_hook() {
|
1199 |
if (seopress_social_twitter_card_option() =='1') {
|
1200 |
//Init
|
|
|
1201 |
$seopress_social_twitter_card_thumb ='';
|
1202 |
|
1203 |
if (is_home() && seopress_social_twitter_img_home_option() !='' && 'page' == get_option( 'show_on_front' )) {
|
@@ -1226,9 +1233,9 @@ function seopress_social_twitter_img_hook() {
|
|
1226 |
}
|
1227 |
} elseif (has_post_thumbnail() && (is_singular() || (function_exists("is_shop") && is_shop()))) {
|
1228 |
if (seopress_social_twitter_img_size_option() =='large') {
|
1229 |
-
$seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="'.get_the_post_thumbnail_url().'" />';
|
1230 |
} else {
|
1231 |
-
$seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="'.get_the_post_thumbnail_url().'" />';
|
1232 |
}
|
1233 |
} elseif (seopress_thumbnail_in_content() !='' && (is_singular() || (function_exists("is_shop") && is_shop()))) {
|
1234 |
if (seopress_social_twitter_img_size_option() =='large') {
|
584 |
}
|
585 |
if (isset($seopress_social_og_title) && $seopress_social_og_title !='') {
|
586 |
echo $seopress_social_og_title;
|
587 |
+
}
|
588 |
}
|
589 |
}
|
590 |
add_action( 'wp_head', 'seopress_social_fb_title_hook', 1 );
|
737 |
$url = get_home_url().$url;
|
738 |
}
|
739 |
//cleaning url
|
740 |
+
$url = htmlspecialchars(esc_attr(wp_filter_nohtml_kses($url)));
|
741 |
|
742 |
//remove query strings
|
743 |
$parse_url = wp_parse_url($url);
|
806 |
function seopress_social_fb_img_hook() {
|
807 |
if (seopress_social_facebook_og_option() =='1') {
|
808 |
//Init
|
809 |
+
global $post;
|
810 |
$seopress_social_og_thumb ='';
|
811 |
|
812 |
if (is_home() && seopress_social_fb_img_home_option() !='' && 'page' == get_option( 'show_on_front' )) {
|
813 |
$seopress_social_og_thumb .= seopress_social_fb_img_size_from_url(seopress_social_fb_img_home_option());
|
814 |
+
|
815 |
} elseif ((is_singular() || (function_exists("is_shop") && is_shop())) && seopress_social_facebook_og_option() =='1' && seopress_social_fb_img_post_option() !='') {
|
816 |
$seopress_social_og_thumb .= seopress_social_fb_img_size_from_url(seopress_social_fb_img_post_option());
|
817 |
+
|
818 |
} elseif ((is_singular() || (function_exists("is_shop") && is_shop())) && seopress_social_facebook_og_option() =='1' && has_post_thumbnail() ) {
|
819 |
+
$seopress_social_og_thumb .= seopress_social_fb_img_size_from_url(get_the_post_thumbnail_url($post, 'full'));
|
820 |
+
|
821 |
} elseif ((is_singular() || (function_exists("is_shop") && is_shop())) && seopress_social_facebook_og_option() =='1' && seopress_thumbnail_in_content() !='' ) {
|
822 |
$seopress_social_og_thumb .= seopress_social_fb_img_size_from_url(seopress_thumbnail_in_content());
|
823 |
+
|
824 |
} elseif ((is_tax() || is_category() || is_tag()) && seopress_social_fb_img_term_option() !='') {
|
825 |
$seopress_social_og_thumb .= seopress_social_fb_img_size_from_url(seopress_social_fb_img_term_option());
|
826 |
+
|
827 |
} elseif (seopress_social_facebook_og_option() =='1' && seopress_social_facebook_img_option() !='') {
|
828 |
$seopress_social_og_thumb .= seopress_social_fb_img_size_from_url(seopress_social_facebook_img_option());
|
829 |
}
|
1204 |
function seopress_social_twitter_img_hook() {
|
1205 |
if (seopress_social_twitter_card_option() =='1') {
|
1206 |
//Init
|
1207 |
+
global $post;
|
1208 |
$seopress_social_twitter_card_thumb ='';
|
1209 |
|
1210 |
if (is_home() && seopress_social_twitter_img_home_option() !='' && 'page' == get_option( 'show_on_front' )) {
|
1233 |
}
|
1234 |
} elseif (has_post_thumbnail() && (is_singular() || (function_exists("is_shop") && is_shop()))) {
|
1235 |
if (seopress_social_twitter_img_size_option() =='large') {
|
1236 |
+
$seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="'.get_the_post_thumbnail_url($post, 'large').'" />';
|
1237 |
} else {
|
1238 |
+
$seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="'.get_the_post_thumbnail_url($post, 'large').'" />';
|
1239 |
}
|
1240 |
} elseif (seopress_thumbnail_in_content() !='' && (is_singular() || (function_exists("is_shop") && is_shop()))) {
|
1241 |
if (seopress_social_twitter_img_size_option() =='large') {
|
inc/functions/options-titles-metas.php
CHANGED
@@ -449,6 +449,7 @@ function seopress_titles_the_description_content() {
|
|
449 |
$seopress_excerpt = $variables['seopress_excerpt'];
|
450 |
$post_category = $variables['post_category'];
|
451 |
$post_tag = $variables['post_tag'];
|
|
|
452 |
$get_search_query = $variables['get_search_query'];
|
453 |
$woo_single_cat_html = $variables['woo_single_cat_html'];
|
454 |
$woo_single_tag_html = $variables['woo_single_tag_html'];
|
449 |
$seopress_excerpt = $variables['seopress_excerpt'];
|
450 |
$post_category = $variables['post_category'];
|
451 |
$post_tag = $variables['post_tag'];
|
452 |
+
$post_thumbnail_url = $variables['post_thumbnail_url'];
|
453 |
$get_search_query = $variables['get_search_query'];
|
454 |
$woo_single_cat_html = $variables['woo_single_cat_html'];
|
455 |
$woo_single_tag_html = $variables['woo_single_tag_html'];
|
inc/functions/options.php
CHANGED
@@ -133,16 +133,31 @@ if (seopress_get_toggle_titles_option() =='1') {
|
|
133 |
add_action('template_redirect', 'seopress_titles_disable_archives', 0);
|
134 |
add_action('wp_head', 'seopress_load_titles_options', 0);
|
135 |
function seopress_load_titles_options() {
|
136 |
-
if (!is_admin()){
|
137 |
-
|
|
|
|
|
|
|
|
|
138 |
}
|
139 |
}
|
140 |
}
|
141 |
if (seopress_get_toggle_social_option() =='1') {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
add_action('wp_head', 'seopress_load_social_options', 0);
|
143 |
function seopress_load_social_options() {
|
144 |
-
if (!is_admin()){
|
145 |
-
|
|
|
|
|
|
|
|
|
146 |
}
|
147 |
}
|
148 |
}
|
133 |
add_action('template_redirect', 'seopress_titles_disable_archives', 0);
|
134 |
add_action('wp_head', 'seopress_load_titles_options', 0);
|
135 |
function seopress_load_titles_options() {
|
136 |
+
if (!is_admin()){
|
137 |
+
if( function_exists('is_wpforo_page') && is_wpforo_page() ){//disable on wpForo pages to avoid conflicts
|
138 |
+
//do nothing
|
139 |
+
} else {
|
140 |
+
require_once ( dirname( __FILE__ ) . '/options-titles-metas.php'); //Titles & metas
|
141 |
+
}
|
142 |
}
|
143 |
}
|
144 |
}
|
145 |
if (seopress_get_toggle_social_option() =='1') {
|
146 |
+
// add_action('wp_loaded', 'seopress_load_oembed_options');
|
147 |
+
// function seopress_load_oembed_options() {
|
148 |
+
// if (!is_admin()){
|
149 |
+
// require_once ( dirname( __FILE__ ) . '/options-oembed.php'); //Oembed
|
150 |
+
// }
|
151 |
+
// }
|
152 |
+
|
153 |
add_action('wp_head', 'seopress_load_social_options', 0);
|
154 |
function seopress_load_social_options() {
|
155 |
+
if (!is_admin()){
|
156 |
+
if( function_exists('is_wpforo_page') && is_wpforo_page() ){//disable on wpForo pages to avoid conflicts
|
157 |
+
//do nothing
|
158 |
+
} else {
|
159 |
+
require_once ( dirname( __FILE__ ) . '/options-social.php'); //Social
|
160 |
+
}
|
161 |
}
|
162 |
}
|
163 |
}
|
inc/functions/variables/dynamic-variables.php
CHANGED
@@ -14,6 +14,7 @@ $the_author_meta ='';
|
|
14 |
$sep = '';
|
15 |
$seopress_excerpt ='';
|
16 |
$seopress_content ='';
|
|
|
17 |
$post_category ='';
|
18 |
$post_tag ='';
|
19 |
$get_search_query ='';
|
@@ -74,7 +75,11 @@ if (is_author() && NULL !== get_queried_object()) {
|
|
74 |
$author = get_queried_object();
|
75 |
$the_author_meta = $author->display_name;
|
76 |
$author_bio = esc_attr(stripslashes_deep(wp_filter_nohtml_kses(wp_strip_all_tags(strip_shortcodes(get_the_author_meta('description', $author->ID))))));
|
|
|
77 |
|
|
|
|
|
|
|
78 |
}
|
79 |
|
80 |
if (is_single() && has_category()) {
|
@@ -178,6 +183,7 @@ $seopress_titles_template_variables_array = array(
|
|
178 |
'%%post_excerpt%%',
|
179 |
'%%excerpt%%',
|
180 |
'%%post_content%%',
|
|
|
181 |
'%%post_date%%',
|
182 |
'%%date%%',
|
183 |
'%%post_modified_date%%',
|
@@ -207,6 +213,7 @@ $seopress_titles_template_variables_array = array(
|
|
207 |
'%%wc_sku%%',
|
208 |
'%%currentday%%',
|
209 |
'%%currentmonth%%',
|
|
|
210 |
'%%currentyear%%',
|
211 |
'%%currentdate%%',
|
212 |
'%%currenttime%%',
|
@@ -226,6 +233,7 @@ $seopress_titles_template_replace_array = array(
|
|
226 |
$seopress_get_the_excerpt,
|
227 |
$seopress_get_the_excerpt,
|
228 |
$seopress_content,
|
|
|
229 |
get_the_date(),
|
230 |
get_the_date(),
|
231 |
get_the_modified_date(),
|
@@ -255,6 +263,7 @@ $seopress_titles_template_replace_array = array(
|
|
255 |
$woo_single_sku,
|
256 |
date_i18n('j'),
|
257 |
date_i18n('F'),
|
|
|
258 |
date('Y'),
|
259 |
date_i18n( get_option( 'date_format' )),
|
260 |
current_time(get_option( 'time_format' )),
|
@@ -274,7 +283,8 @@ $variables = array(
|
|
274 |
'sep' => $sep,
|
275 |
'seopress_excerpt' => $seopress_excerpt,
|
276 |
'post_category' => $post_category,
|
277 |
-
|
|
|
278 |
'get_search_query' => $get_search_query,
|
279 |
'woo_single_cat_html' => $woo_single_cat_html,
|
280 |
'woo_single_tag_html' => $woo_single_tag_html,
|
14 |
$sep = '';
|
15 |
$seopress_excerpt ='';
|
16 |
$seopress_content ='';
|
17 |
+
$post_thumbnail_url ='';
|
18 |
$post_category ='';
|
19 |
$post_tag ='';
|
20 |
$get_search_query ='';
|
75 |
$author = get_queried_object();
|
76 |
$the_author_meta = $author->display_name;
|
77 |
$author_bio = esc_attr(stripslashes_deep(wp_filter_nohtml_kses(wp_strip_all_tags(strip_shortcodes(get_the_author_meta('description', $author->ID))))));
|
78 |
+
}
|
79 |
|
80 |
+
if (is_singular() && isset($post)) {
|
81 |
+
$post_thumbnail_url = get_the_post_thumbnail_url($post, 'full');
|
82 |
+
$post_thumbnail_url = apply_filters('seopress_titles_post_thumbnail_url', $post_thumbnail_url);
|
83 |
}
|
84 |
|
85 |
if (is_single() && has_category()) {
|
183 |
'%%post_excerpt%%',
|
184 |
'%%excerpt%%',
|
185 |
'%%post_content%%',
|
186 |
+
'%%post_thumbnail_url%%',
|
187 |
'%%post_date%%',
|
188 |
'%%date%%',
|
189 |
'%%post_modified_date%%',
|
213 |
'%%wc_sku%%',
|
214 |
'%%currentday%%',
|
215 |
'%%currentmonth%%',
|
216 |
+
'%%currentmonth_short%%',
|
217 |
'%%currentyear%%',
|
218 |
'%%currentdate%%',
|
219 |
'%%currenttime%%',
|
233 |
$seopress_get_the_excerpt,
|
234 |
$seopress_get_the_excerpt,
|
235 |
$seopress_content,
|
236 |
+
$post_thumbnail_url,
|
237 |
get_the_date(),
|
238 |
get_the_date(),
|
239 |
get_the_modified_date(),
|
263 |
$woo_single_sku,
|
264 |
date_i18n('j'),
|
265 |
date_i18n('F'),
|
266 |
+
date_i18n('M'),
|
267 |
date('Y'),
|
268 |
date_i18n( get_option( 'date_format' )),
|
269 |
current_time(get_option( 'time_format' )),
|
283 |
'sep' => $sep,
|
284 |
'seopress_excerpt' => $seopress_excerpt,
|
285 |
'post_category' => $post_category,
|
286 |
+
'post_tag' => $post_tag,
|
287 |
+
'post_thumbnail_url' => $post_thumbnail_url,
|
288 |
'get_search_query' => $get_search_query,
|
289 |
'woo_single_cat_html' => $woo_single_cat_html,
|
290 |
'woo_single_tag_html' => $woo_single_tag_html,
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Tags: SEO, XML sitemap, meta title, open graph, content analysis, knowledge grap
|
|
6 |
Requires at least: 4.7+
|
7 |
Tested up to: 5.3
|
8 |
Requires PHP: 5.6
|
9 |
-
Stable tag: 3.7.
|
10 |
License: GPLv2 or later
|
11 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -56,8 +56,8 @@ SEOPress is a powerful plugin to optimize your SEO, boost your traffic, improve
|
|
56 |
<h3>SEOPress PRO: to go further with your SEO</h3>
|
57 |
|
58 |
<ul>
|
59 |
-
<li>Import
|
60 |
-
<li>Export
|
61 |
<li>Video XML Sitemap</li>
|
62 |
<li>Google Suggestions in Content Analysis</li>
|
63 |
<li><a href="https://www.seopress.org/features/google-structured-data-types/" target="_blank">Google Structured Data types (schema.org)</a>: article, local business, FAQ, course, recipe, video, event, product, job, simple review, site navigation element</li>
|
@@ -162,9 +162,9 @@ Any questions? Visit our website <a href="https://www.seopress.org?utm_source=w.
|
|
162 |
|
163 |
== Frequently Asked Questions ==
|
164 |
|
165 |
-
= Can I import my post and term
|
166 |
|
167 |
-
You can import your
|
168 |
|
169 |
= How to use Google Tag Manager / Facebook Pixel with SEOPress? =
|
170 |
|
@@ -270,6 +270,22 @@ You're theme is probably using a deprecated function to handle the title. <a hre
|
|
270 |
60. Installation Wizard
|
271 |
|
272 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
273 |
= 3.7.7.1 =
|
274 |
* FIX Remove /category/ in permalinks to target "category" taxonomy only by default
|
275 |
= 3.7.7 =
|
6 |
Requires at least: 4.7+
|
7 |
Tested up to: 5.3
|
8 |
Requires PHP: 5.6
|
9 |
+
Stable tag: 3.7.8
|
10 |
License: GPLv2 or later
|
11 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
56 |
<h3>SEOPress PRO: to go further with your SEO</h3>
|
57 |
|
58 |
<ul>
|
59 |
+
<li>Import metadata (titles, open graph, robots...) from CSV file</li>
|
60 |
+
<li>Export metadata (titles, open graph, robots...) to a CSV file</li>
|
61 |
<li>Video XML Sitemap</li>
|
62 |
<li>Google Suggestions in Content Analysis</li>
|
63 |
<li><a href="https://www.seopress.org/features/google-structured-data-types/" target="_blank">Google Structured Data types (schema.org)</a>: article, local business, FAQ, course, recipe, video, event, product, job, simple review, site navigation element</li>
|
162 |
|
163 |
== Frequently Asked Questions ==
|
164 |
|
165 |
+
= Can I import my post and term metadata from other plugins? =
|
166 |
|
167 |
+
You can import your metadata from <a href="https://www.seopress.org/support/guides/import-post-terms-metadatas-yoast-seo-seopress/">Yoast SEO</a>, <a href="https://www.seopress.org/support/guides/import-post-and-terms-metadatas-from-all-in-one-seo-to-seopress/">All In One SEO (AIO SEO)</a>, <a href="https://www.seopress.org/support/guides/import-post-and-terms-metadatas-from-the-seo-framework-to-seopress/">The SEO Framework (TSF)</a>, <a href="https://www.seopress.org/support/guides/import-post-metadatas-from-squirrly-to-seopress/">Squirrly</a> (post metas only, not terms), and <a href="https://www.seopress.org/support/guides/import-post-terms-metadatas-rank-math-seo-seopress/">Rank Math</a> in one click to SEOPress without losing traffic.
|
168 |
|
169 |
= How to use Google Tag Manager / Facebook Pixel with SEOPress? =
|
170 |
|
270 |
60. Installation Wizard
|
271 |
|
272 |
== Changelog ==
|
273 |
+
= 3.7.8 =
|
274 |
+
* NEW Pixel counter for title and meta description now works with each language / alphabet! Faster, more reliable and universal!
|
275 |
+
* NEW Facebook Preview!
|
276 |
+
* NEW Cookie bar customization: change background, color, buttons... from SEO, Google Analytics, Cookie bar / GDPR tab
|
277 |
+
* NEW Add new checks to content analysis for social networks (Open Graph / Twitter cards) to detect duplicated tags/conflicts
|
278 |
+
* NEW %%post_thumbnail_url%% global dynamic variable to display post thumbnail URL (https://www.seopress.org/support/guides/manage-titles-meta-descriptions/)
|
279 |
+
* NEW %%currentmonth_short%% global dynamic variable to display current month in 3 letters (https://www.seopress.org/support/guides/manage-titles-meta-descriptions/)
|
280 |
+
* NEW 'seopress_titles_post_thumbnail_url' hook to filter post thumbnail URL (https://www.seopress.org/support/hooks/filter-seopress_titles_post_thumbnail_url-dynamic-variable/)
|
281 |
+
* INFO Content analysis now displays duplicate H1 title values for faster identification
|
282 |
+
* INFO Add Post title and Permalink to the metadata export file (PRO)
|
283 |
+
* INFO wpForo compatibility with SEOPress
|
284 |
+
* INFO Improve compatibility with Jetpack CDN (thanks to @jeherve)
|
285 |
+
* INFO Improve UI in content analysis if transparent / white images
|
286 |
+
* INFO Remove SEO admin bar for user roles without "manage_options" capability to improve UX
|
287 |
+
* FIX Facebook OG:Image URL encoding if no featured thumbnail or custom og:image set (thanks to @bitofseo)
|
288 |
+
* FIX Keywords in permalink was case sensitive
|
289 |
= 3.7.7.1 =
|
290 |
* FIX Remove /category/ in permalinks to target "category" taxonomy only by default
|
291 |
= 3.7.7 =
|
seopress.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: SEOPress
|
4 |
Plugin URI: https://www.seopress.org/
|
5 |
Description: One of the best SEO plugins for WordPress.
|
6 |
-
Version: 3.7.
|
7 |
Author: SEOPress
|
8 |
Author URI: https://www.seopress.org/
|
9 |
License: GPLv2
|
@@ -53,7 +53,7 @@ register_deactivation_hook(__FILE__, 'seopress_deactivation');
|
|
53 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
54 |
//Define
|
55 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
56 |
-
define( 'SEOPRESS_VERSION', '3.7.
|
57 |
define( 'SEOPRESS_AUTHOR', 'Benjamin Denis' );
|
58 |
|
59 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
@@ -85,7 +85,7 @@ function seopress_init($hook) {
|
|
85 |
|
86 |
require_once dirname( __FILE__ ) . '/inc/functions/options.php';
|
87 |
|
88 |
-
if(current_user_can('
|
89 |
require_once dirname( __FILE__ ) . '/inc/admin/adminbar.php';
|
90 |
}
|
91 |
|
@@ -221,7 +221,8 @@ function seopress_add_admin_options_scripts($hook) {
|
|
221 |
}
|
222 |
|
223 |
if (isset($_GET['page']) && ($_GET['page'] == 'seopress-google-analytics') ) {
|
224 |
-
|
|
|
225 |
}
|
226 |
|
227 |
if (isset($_GET['page']) && ($_GET['page'] == 'seopress-advanced') ) {
|
3 |
Plugin Name: SEOPress
|
4 |
Plugin URI: https://www.seopress.org/
|
5 |
Description: One of the best SEO plugins for WordPress.
|
6 |
+
Version: 3.7.8
|
7 |
Author: SEOPress
|
8 |
Author URI: https://www.seopress.org/
|
9 |
License: GPLv2
|
53 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
54 |
//Define
|
55 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
56 |
+
define( 'SEOPRESS_VERSION', '3.7.8' );
|
57 |
define( 'SEOPRESS_AUTHOR', 'Benjamin Denis' );
|
58 |
|
59 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
85 |
|
86 |
require_once dirname( __FILE__ ) . '/inc/functions/options.php';
|
87 |
|
88 |
+
if(current_user_can('manage_options')) {
|
89 |
require_once dirname( __FILE__ ) . '/inc/admin/adminbar.php';
|
90 |
}
|
91 |
|
221 |
}
|
222 |
|
223 |
if (isset($_GET['page']) && ($_GET['page'] == 'seopress-google-analytics') ) {
|
224 |
+
wp_enqueue_style( 'wp-color-picker' );
|
225 |
+
wp_enqueue_script( 'seopress-admin-tabs-js', plugins_url( 'assets/js/seopress-tabs6.js', __FILE__ ), array( 'jquery-ui-tabs', 'wp-color-picker' ), SEOPRESS_VERSION );
|
226 |
}
|
227 |
|
228 |
if (isset($_GET['page']) && ($_GET['page'] == 'seopress-advanced') ) {
|