SEOPress - Version 3.1

Version Description

  • NEW All In One SEO importer
  • NEW JSON/LD for Breadcrumbs (PRO)
  • NEW Add German language (thanks to Nicola Stobbe)
  • NEW Add Greek language (thanks to Stratos Karavarakis)
  • NEW Add author biography tag for meta description
  • NEW Add seopress_404_cleaning_query hook to filter 404 cleaning query (PRO)
  • NEW Add 'seopress_rgpd_message' hook to filter user consent message (RGPD)
  • NEW Add Valid from / Image / Description in Event data type (PRO)
  • NEW Add new types of Events for Structured Data types (PRO)
  • NEW Add Indian Rupee / Chilean Pesos / Vietnamese ng currency to Product data type (PRO)
  • INFO Complete refactoring of the breadcrumb trail: more flexible, more efficient
  • INFO Add link to post type archive in SEO > Titles & metas > Archives (if has_archive is true)
  • INFO Remove Whois tool
  • INFO Change default ItemCondition from UsedCondition to NewCondition for Product schema (PRO)
  • INFO Improve Yoast importer tool
  • INFO Improve Google Snippet Preview UI
  • INFO Add date picker in Event data type to improve UX/UI (PRO)
  • INFO Improve Reset License action
  • INFO Improve UI
  • INFO Improve performance
  • FIX Undefined index: responseCode
  • FIX Post update messages if 404 monitoring is on
  • FIX Undefined variable: seopress_404_test
  • FIX 404 cleaning after 30 days (PRO)
  • FIX Ping Google manually link
  • FIX Disable News Sitemap if green toggle off
  • FIX Some strings translation / wrong text domain
  • FIX TechArticle selected value in admin
  • FIX Fixing updater / license "the link has expired"
  • FIX If default search parameter is empty, do not display quotes in breadcrumbs / meta title
  • FIX Calculation of title length / meta description for content analysis
  • FIX Use OG if no Twitter Cards
  • FIX OG/Twitter cards thumbnail if Your latest posts is set for homepage
Download this release

Release Info

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

Code changes from version 3.0 to 3.1

assets/css/seopress.css CHANGED
@@ -118,11 +118,17 @@
118
width: 100%;
119
z-index: 10;
120
margin: 0;
121
padding: 0;
122
background: #edeff0;
123
border: none;
124
}
125
126
#seopress_content_analysis .ui-tabs .ui-tabs-nav {
127
margin-top: 15px;
128
}
@@ -542,6 +548,17 @@ body.seopress-styles {
542
vertical-align: middle;
543
}
544
545
.seopress-styles .seopress-option h1>.dashicons {
546
font-size: 30px;
547
width: 30px;
@@ -579,7 +596,7 @@ body.seopress-styles {
579
margin: 0;
580
}
581
582
- .seopress-styles .seopress-option #seopress-yoast-migrate,.seopress-styles .seopress-option #submit {
583
color: #fff;
584
text-decoration: none;
585
border: none;
@@ -598,7 +615,7 @@ body.seopress-styles {
598
height: auto;
599
}
600
601
- .seopress-styles .seopress-option #seopress-yoast-migrate:hover,.seopress-styles .seopress-option #submit:hover {
602
text-decoration: none;
603
color: #FFF;
604
background: #232323;
@@ -1094,7 +1111,7 @@ body.seopress-styles {
1094
background: #232323;
1095
}
1096
1097
- #seopress-content .seopress-page-list .seopress-feature .seopress-doc:focus,#seopress-content .seopress-page-list .seopress-feature a:focus,#seopress-content .seopress-page-list .seopress-feature a:focus.button-secondary,#seopress-content a:focus,#seopress-notifications-center .seopress-alert .button-primary:focus,.seopress-option #seopress-tabs .seopress-doc:focus,.seopress-option .seopress-feature a:focus,.seopress-styles .seopress-option #seopress-yoast-migrate:focus,.seopress-styles .seopress-option #submit:focus,.seopress-useful-tools .widget .button-primary:focus {
1098
box-shadow: 0 1px 0 #0073aa,0 0 2px 1px #33b3db;
1099
background: #008ec2;
1100
border-color: #006799;
118
width: 100%;
119
z-index: 10;
120
margin: 0;
121
+ border-radius: 0;
122
padding: 0;
123
background: #edeff0;
124
border: none;
125
}
126
127
+ #seopress_content_analysis .ui-tabs .ui-tabs-nav {
128
+ width: calc(100% + 24px);
129
+ margin: 0 0 0 -12px;
130
+ }
131
+
132
#seopress_content_analysis .ui-tabs .ui-tabs-nav {
133
margin-top: 15px;
134
}
548
vertical-align: middle;
549
}
550
551
+ .seopress-styles .seopress-option .link-archive {
552
+ font-size: 14px;
553
+ }
554
+
555
+ .seopress-styles .seopress-option .link-archive .dashicons {
556
+ font-size: 18px;
557
+ width: 20px;
558
+ height: 20px;
559
+ margin: inherit;
560
+ }
561
+
562
.seopress-styles .seopress-option h1>.dashicons {
563
font-size: 30px;
564
width: 30px;
596
margin: 0;
597
}
598
599
+ .seopress-styles .seopress-option #seopress-yoast-migrate, .seopress-styles .seopress-option #seopress-aio-migrate, .seopress-styles .seopress-option #submit {
600
color: #fff;
601
text-decoration: none;
602
border: none;
615
height: auto;
616
}
617
618
+ .seopress-styles .seopress-option #seopress-yoast-migrate:hover, .seopress-styles .seopress-option #seopress-aio-migrate:hover, .seopress-styles .seopress-option #submit:hover {
619
text-decoration: none;
620
color: #FFF;
621
background: #232323;
1111
background: #232323;
1112
}
1113
1114
+ #seopress-content .seopress-page-list .seopress-feature .seopress-doc:focus,#seopress-content .seopress-page-list .seopress-feature a:focus,#seopress-content .seopress-page-list .seopress-feature a:focus.button-secondary,#seopress-content a:focus,#seopress-notifications-center .seopress-alert .button-primary:focus,.seopress-option #seopress-tabs .seopress-doc:focus,.seopress-option .seopress-feature a:focus,.seopress-styles .seopress-option #seopress-yoast-migrate:focus, .seopress-styles .seopress-option #seopress-aio-migrate:focus,.seopress-styles .seopress-option #submit:focus,.seopress-useful-tools .widget .button-primary:focus {
1115
box-shadow: 0 1px 0 #0073aa,0 0 2px 1px #33b3db;
1116
background: #008ec2;
1117
border-color: #006799;
assets/css/seopress.min.css CHANGED
@@ -1 +1 @@
1
- #adminmenu div.wp-menu-image.dashicons-admin-seopress::before,#seopress-header #seopress-admin h1::before{content:"\e042";font-family:seopress}#seopress-header #seopress-admin h1::before,.seopress-page-list .seopress-feature h3,.seopress-styles .seopress-option h1{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}@font-face{font-family:seopress;src:url(../fonts/seopress.eot?8v0bs0);src:url(../fonts/seopress.eot?8v0bs0#iefix) format('embedded-opentype'),url(../fonts/seopress.ttf?8v0bs0) format('truetype'),url(../fonts/seopress.woff?8v0bs0) format('woff'),url(../fonts/seopress.svg?8v0bs0#seopress) format('svg');font-weight:400;font-style:normal}[class*=" icon-seopress"],[class^=icon-seopress-]{font-family:seopress!important}.icon-seopress-seopress:before{content:"\e042"}#seopress_content_analysis .wrap-seopress-analysis{display:inline-block;width:100%}#seopress_content_analysis .col-left{width:calc(50% - 30px);float:left;margin-right:30px}#seopress_content_analysis .col-right{float:right;width:50%}#seopress_content_analysis #seopress_suggestions{display:inline-block;width:100%;margin:0;height:auto;padding:20px 0}#seopress_content_analysis #seopress_suggestions li{list-style:square;margin:5px;display:inline-block;background:#F1F1F1;padding:5px}#seopress_launch_analysis{float:left}#seopress_analysis_results_state{background:rgba(74,184,102,.75);color:#fff;padding:5px 25px 5px 20px;border-radius:100px;font-style:italic;position:relative;width:auto;display:inline-block;margin:0 0 0 20px;clear:both}#seopress_content_analysis h3{border-bottom:1px solid #ddd;padding-bottom:10px}#seopress_content_analysis .wrap-analysis-img ul{display:flex}#seopress_content_analysis .wrap-analysis-img ul li{padding:0;text-align:left;cursor:default}#seopress_content_analysis .wrap-analysis-img h4{border-bottom:1px solid #ddd;padding-bottom:10px}#seopress_content_analysis .wrap-analysis-img ul li img{max-width:150px;max-height:150px;object-fit:cover;cursor:default}#seopress_cpt .notice{padding:10px 14px}#seopress-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;padding:0;background:#edeff0;border:none}#seopress_content_analysis .ui-tabs .ui-tabs-nav{margin-top:15px}#seopress_content_analysis .ui-helper-clearfix:after,#seopress_cpt .ui-helper-clearfix:after{content:none}.seopress_page_seopress-titles #seopress-tabs .form-table td,.seopress_page_seopress-titles #seopress_content_analysis .form-table td{padding:0}#seopress_content_analysis .ui-tabs .ui-tabs-panel,#seopress_cpt .ui-tabs .ui-tabs-panel{background:#FFF;border-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-3 label,#seopress_cpt #tabs-4 label,#seopress_cpt #tabs-5 label,#seopress_cpt #tabs-6 label,#seopress_cpt .subsection-title,#seopress_pro_cpt label{display:block;margin:20px 0 5px;font-weight:700}#seopress_cpt .wp-color-result{margin:0}#seopress_content_analysis input[type=text],#seopress_cpt #tabs-1 input,#seopress_cpt #tabs-2 input[type=text],#seopress_cpt #tabs-3 input[type=text],#seopress_cpt #tabs-3 textarea,#seopress_cpt #tabs-4 input[type=text],#seopress_cpt #tabs-5 input[type=text],#seopress_cpt #tabs-6 input[type=text],#seopress_cpt #tabs-6 textarea{width:100%}#seopress_cpt #tabs-6 input[type=number]{width:30%;min-width:200px}#seopress_cpt #tabs-6 #wrap-videos .video:first-child .remove-video{display:none}#seopress_cpt select{width:300px}#seopress_cpt #tabs-4 select{width:60px;display:inline}#seopress_cpt #tabs-4 #seopress_redirections_value_meta{width:calc(100% - 68px);float:right}#seopress_cpt #tabs-6{padding:0}#seopress_cpt #tabs-6 #wrap-videos .video .accordion-section-content,#seopress_cpt #tabs-6>p{padding:0 1.4em}#seopress_cpt #tabs-6 #wrap-videos .video .accordion-section-content{padding:0 1.4em 1em}#seopress_cpt #tabs-6 #wrap-videos .video{border-top:1px solid #eee}#seopress_cpt #tabs-6 #wrap-videos .video .accordion-section-title{border-left:none;border-right:none;font-size:1em;padding:1em 1.4em}#seopress_cpt #tabs-6 #wrap-videos .video:last-child .accordion-section-content,#seopress_cpt #tabs-6 #wrap-videos .video:last-child .accordion-section-title{border-bottom:1px solid #eee}#seopress_cpt #tabs-6 #wrap-videos .video .inside{padding:0}#seopress_cpt #tabs-4 #seopress_redirections_enabled,#seopress_cpt #tabs-5 #seopress_news_disabled,#seopress_cpt #tabs-5 #seopress_news_standout,#seopress_cpt #tabs-6 #seopress_video_disabled,#seopress_cpt #tabs-6 .family-friendly label,#seopress_cpt #tabs-6 .internal_video label{font-weight:400}#seopress_cpt #tabs-6 #wrap-videos .video:nth-child(odd){background:#fdfdfd}#seopress_content_analysis .advise,#seopress_cpt .advise,#seopress_pro_cpt .advise{margin:5px;display:block;color:red;font-style:italic}#seopress_cpt #tabs-6 #wrap-videos .video .advise{color:#555}#seopress_content_analysis .mandatory,#seopress_cpt .mandatory{color:#c00}#seopress_cpt .box-left{float:left;width:49%;margin-right:1%}#seopress_cpt .box-right{float:left;width:49%;margin-left:1%}#seopress_cpt .google-snippet-preview{font-family:arial,sans-serif,word-break: break-all;}#seopress_cpt .google-snippet-preview .snippet-title,#seopress_cpt .google-snippet-preview .snippet-title-custom,#seopress_cpt .google-snippet-preview .snippet-title-default{color:#1a0dab;font-size:18px;font-weight:400;line-height:21.6px}#seopress_cpt .google-snippet-preview .snippet-permalink{color:#006621;font-size:14px;font-style:normal;font-weight:400;line-height:16px}#seopress_cpt .google-snippet-preview .snippet-description,#seopress_cpt .google-snippet-preview .snippet-description-custom,#seopress_cpt .google-snippet-preview .snippet-description-default{color:#545454;font-size:13px;font-weight:400;line-height:18.2px;display:inline}#seopress_cpt .google-snippet-preview .snippet-date{color:grey;display:inline}#seopress_cpt .wrap-seopress-counters,#seopress_pro_cpt .wrap-seopress-counters{text-align:right;background:#eee;padding:2px 5px;box-shadow:0 1px 1px rgba(0,0,0,.2);font-size:12px}#seopress_cpt #seopress_titles_desc_counters,#seopress_cpt #seopress_titles_title_counters,#seopress_pro_cpt #seopress_rich_snippets_articles_counters,#seopress_pro_cpt #seopress_rich_snippets_courses_counters{display:inline;margin-right:5px}#seopress_cpt #seopress_titles_desc_counters_val,#seopress_cpt #seopress_titles_title_counters_val,#seopress_pro_cpt #seopress_rich_snippets_articles_counters_val,#seopress_pro_cpt #seopress_rich_snippets_courses_counters_val{display:inline;font-weight:700}#term-seopress #seopress_cpt{width:95%}.fixed .column-seopress_w3c,.fixed .column-seopress_words{width:5%}.fixed .column-seopress_nofollow,.fixed .column-seopress_noindex{width:10%}#seopress_content_analysis .ui-tabs,#seopress_cpt .ui-tabs{position:relative;padding: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;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;padding:1px}#seopress_content_analysis .ui-tabs .dashicons-no-alt,#seopress_pro_cpt .dashicons-no-alt{background:#e25950}body.seopress-styles{background:#f8fafd}#seopress-content a{color:#3297d3}#seopress-content a:hover{color:#106598}#seopress-admin-tabs.ui-tabs{position:relative;padding:.2em;border:none;font-family:inherit;font-size:inherit}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:-1px .2em 0 0;padding:0;white-space:nowrap;border:none;background:0 0}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li a{float:left;padding:.38em 1em .75rem;outline:0;border-bottom:2px solid #fff}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-state-disabled a,#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-tabs-active a,#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-tabs-loading a{cursor:text;border-bottom:2px solid #23282D;color:#23282D}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li a,#seopress-admin-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a{cursor:pointer;color:#0073aa;text-decoration:none}#seopress-admin-tabs.ui-tabs-vertical{width:55em}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-nav{padding:.2em .1em .2em .2em;float:left;width:12em}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-nav li{clear:left;width:100%;border-bottom-width:1px!important;border-right-width:0!important;margin:0 -1px .2em 0}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-nav li.ui-tabs-active{padding-bottom:0;padding-right:.1em;border-right-width:1px}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-panel{padding:1em;float:right;width:40em}.seopress-styles .seopress-option{margin:10px auto 0;max-width:90%;padding:1rem;background:#fff;box-shadow:0 15px 35px rgba(50,50,93,.1),0 5px 15px rgba(0,0,0,.1);border-radius:4px}.seopress-styles .seopress-option h1{font-size:16px;font-weight:700;color:#3297d3;text-transform:uppercase;position:sticky;top:32px;background:#fff;z-index:100;padding:10px 0}.seopress-styles .seopress-option h1 .dashicons,.seopress-styles .seopress-option h2 .dashicons{margin:0 10px;font-size:40px;width:40px;height:40px;vertical-align:middle}.seopress-styles .seopress-option h1>.dashicons{font-size:30px;width:30px;height:30px;background:#c4f0ff;border-radius:50%;padding:10px;box-shadow:0 4px 6px rgba(50,50,93,.1),0 1px 3px rgba(0,0,0,.1);margin-left:20px}.seopress-styles .seopress-option .metabox-holder h2 .dashicons{font-size:16px}.seopress-option h1 .feature-state .dashicons{font-size:16px;width:16px;height:16px;vertical-align:middle;margin:0 10px 0 0}.seopress-styles .wrap{margin:0;position:relative}.seopress-styles .seopress-option .submit{background:#fff;text-align:center;border-top:1px solid #F1F1F1;padding-top:20px;padding-bottom:20px;margin:0}.seopress-styles .seopress-option #seopress-yoast-migrate,.seopress-styles .seopress-option #submit{color:#fff;text-decoration:none;border:none;border-radius:4px;padding-right:20px;padding-left:20px;line-height:34px;text-transform:uppercase;min-height:34px;transition:all .3s linear;text-shadow:none;box-shadow:0 7px 14px rgba(50,50,93,.1),0 3px 6px rgba(0,0,0,.1);margin-right:15px;background:RGB(106,124,148);position:relative;height:auto}.seopress-styles .seopress-option #seopress-yoast-migrate:hover,.seopress-styles .seopress-option #submit:hover{text-decoration:none;color:#FFF;background:#232323}.seopress-styles #wpcontent{padding-left:0;background:#F8FAFD}.seopress-styles #seopress-navbar{padding:10px 1.5rem;height:56px;margin:0 auto;width:53rem;box-sizing:border-box;position:relative}#seopress-header{margin:0 auto;position:relative;width:100%}#seopress-header #seopress-admin h1{line-height:50px;margin:0;display:inline-block;height:50px;width:36px;background-size:100%;background-repeat:no-repeat}#seopress-header #seopress-admin h1::before{font-size:40px;line-height:45px;position:absolute;font-weight:400}#seopress-header #seopress-admin h1:hover{cursor:pointer}#seopress-header #seopress-admin h1>a{text-decoration:none;color:inherit}#seopress-header #seopress-admin .seopress-quick-access{background:#fff;box-shadow:0 50px 100px rgba(50,50,93,.1),0 15px 35px rgba(50,50,93,.2),0 5px 15px rgba(0,0,0,.1);border-radius:4px;overflow:hidden;position:relative;font-size:17px;line-height:40px;white-space:nowrap;transform:rotate3d(1,1,0,-15deg);transform-origin:100% 0;opacity:0;will-change:transform,opacity;transition-property:transform,opacity;transition-duration:.25s;z-index:300;padding:0;display:block;width:53rem;top:0;visibility:hidden;cursor:auto}#seopress-header #seopress-admin h1:hover .seopress-quick-access{transform:none;opacity:1;pointer-events:auto;visibility:visible}#seopress-header #seopress-admin .seopress-quick-access>ul{padding:20px;margin:0;float:left;width:100%;box-sizing:border-box}#seopress-header #seopress-admin h1 .seopress-quick-access li{text-decoration:none;display:inline-block;width:50%;margin:0;float:left;padding:10px 0}#seopress-header #seopress-admin h1 .seopress-quick-access li .dashicons{vertical-align:middle;background:#B7E1F3;border-radius:50%;padding:5px;margin-right:15px}#seopress-header #seopress-admin h1 .seopress-quick-access li a{text-decoration:none;font-size:15px;line-height:30px;text-transform:uppercase;display:block;width:100%;transition:all .3s linear;color:#3297d3}#seopress-header #seopress-admin h1 .seopress-quick-access li a:hover{color:#647a88}#seopress-header #seopress-admin h1 .seopress-info-version{position:relative;left:50px;top:0;font-size:14px;width:100px;display:block}#seopress-header #seopress-admin .wpc-info-version{font-size:14px;left:310px;position:absolute;text-indent:0;top:85px}#seopress-header #seopress-notice{float:right;line-height:40px}#seopress-header #seopress-notice p{font-size:16px}#seopress-header #seopress-notice .dashicons{color:#444;text-decoration:none;line-height:40px}#seopress-header #seopress-notice div.small{font-size:13px;display:inline}#seopress-footer-credits{font-style:italic}#seopress-footer-credits .wporg-ratings{display:inline}#seopress-footer-credits .wporg-ratings a{text-decoration:none}.seopress-option .seopress-settings{float:left;max-width:750px;width:100%}.seopress-option #seopress-edd-license-btn,.seopress-option #seopress-refresh{float:left}.wp-admin-ui_page_seopress-import-export .postbox{margin-right:20px}.seopress-option #side-sortables .accordion-section-content{padding:0}.seopress-option .seopress-settings label{margin:0 0 0 10px}.wrap-seopress-tab-content{position:relative;display:block;width:100%;height:100%;max-width:53rem;margin:20px auto 0}#seopress-admin-tabs .seopress-tab{padding:1.5rem;visibility:hidden;overflow:hidden;opacity:0;transition:all .2s ease;transform:translateX(-15px);position:absolute;top:0}#seopress-admin-tabs .seopress-tab.active{visibility:visible;overflow:inherit;opacity:1;transform:translateX(0);display:inherit;position:relative}#seopress-tabs .seopress-tab{padding:1.5rem;display:none}#seopress-tabs .seopress-tab.active{display:block}.seopress-option input[type=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:0}.seopress-option .dashicons,.seopress-page-list .dashicons{vertical-align:middle;margin-right:5px}#seopress-admin-tabs .ui-tabs-nav,#seopress-notifications-center,.seopress-page-list .seopress-feature,.seopress-useful-tools{background:linear-gradient(172deg,#f5f7fa,#f5f7fa 200px,#fff 0,#fff);margin:0 auto 20px;box-shadow:0 15px 35px rgba(50,50,93,.1),0 5px 15px rgba(0,0,0,.2);max-width:50rem;padding:1.5rem;width:100%;border-radius:4px}#seopress-notifications-center,.seopress-useful-tools{background:linear-gradient(172deg,#f5f7fa,#f5f7fa 400px,#fff 0,#fff)}.seopress-page-list .seopress-feature{padding:0 1.5rem;position:relative;overflow:hidden;transition-duration:.15s}.seopress-page-list .seopress-feature p{color:#6b7c93;font-size:14px;margin-bottom:30px}#seopress-notifications-center{margin-top:0}#seopress-admin-tabs .ui-tabs-nav{display:flex;padding-top:1rem;padding-bottom:0}.seopress-page-list .seopress-feature .img-tool{height:100px;width:100px;background:#c4f0ff;position:absolute;border-radius:50%;box-shadow:0 4px 6px rgba(50,50,93,.1),0 1px 3px rgba(0,0,0,.1);top:calc(50% - 50px);left:20px}.seopress-page-list .seopress-feature .img-tool .dashicons{color:#217AB7;font-size:60px;text-align:left;vertical-align:middle;width:100%;height:100%;position:absolute;top:calc(50% - 30px);left:calc(50% - 30px);margin:0}.seopress-page-list .seopress-feature .inner{margin:0;display:block;padding:2rem 0 2rem 120px}.seopress-page-list .seopress-feature h3{margin:0;font-size:16px;font-weight:700;color:#3297d3;text-transform:uppercase}.seopress-page-list .seopress-feature h3 .dashicons{font-size:16px;margin-left:5px;vertical-align:middle}#seopress-content .seopress-page-list .seopress-feature a,#seopress-notifications-center .seopress-alert .button-primary,.seopress-option .seopress-feature a,.seopress-useful-tools .widget .button-primary{color:#fff;text-decoration:none;border:none;border-radius:4px;padding-right:20px;padding-left:20px;line-height:34px;text-transform:uppercase;min-height:34px;transition:all .3s linear;text-shadow:none;box-shadow:0 7px 14px rgba(50,50,93,.1),0 3px 6px rgba(0,0,0,.1);margin-right:15px;background:#6A7C94;position:relative;height:auto}#seopress-content .seopress-page-list .seopress-feature a.button-secondary{padding-left:30px}#seopress-content .seopress-page-list .seopress-feature a.button-secondary::before,#seopress-notifications-center .seopress-alert .button-primary::after{content:"\f111";font-family:Dashicons;position:absolute;left:10px;top:1px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-size:16px}#seopress-content .seopress-page-list .seopress-feature a.view-redirects,#seopress-notifications-center .seopress-alert .button-primary,.seopress-option .button{background:#fff;border:none;color:#6b7c93;font-weight:500;transition:all .3s linear;text-shadow:none;text-transform:uppercase;padding-right:20px;padding-left:20px;line-height:34px;min-height:34px;margin-bottom:10px;border-radius:4px;box-shadow:0 7px 14px rgba(50,50,93,.1),0 3px 6px rgba(0,0,0,.1);vertical-align:baseline}.seopress-option .button .dashicons{font-size:16px}#seopress-content .seopress-page-list .seopress-feature a.view-redirects{padding-left:35px}#seopress-notifications-center .seopress-alert .button-primary::after{content:"\f344";left:inherit;right:10px}#seopress-content .seopress-page-list .seopress-feature a.view-redirects::before{content:"\f177"}#seopress-content .seopress-page-list .seopress-feature a:hover,#seopress-notifications-center .seopress-alert .button-primary:hover,.seopress-option .button:hover,.seopress-option .seopress-feature a:hover,.seopress-useful-tools .widget .button-primary:hover{text-decoration:none;color:#FFF;background:#232323}#seopress-content .seopress-page-list .seopress-feature .seopress-doc:focus,#seopress-content .seopress-page-list .seopress-feature a:focus,#seopress-content .seopress-page-list .seopress-feature a:focus.button-secondary,#seopress-content a:focus,#seopress-notifications-center .seopress-alert .button-primary:focus,.seopress-option #seopress-tabs .seopress-doc:focus,.seopress-option .seopress-feature a:focus,.seopress-styles .seopress-option #seopress-yoast-migrate:focus,.seopress-styles .seopress-option #submit:focus,.seopress-useful-tools .widget .button-primary:focus{box-shadow:0 1px 0 #0073aa,0 0 2px 1px #33b3db;background:#008ec2;border-color:#006799;color:#fff}#seopress-admin-tabs .nav-tab-wrapper a.nav-tab-active:focus{color:inherit}#seopress-notifications-center .seopress-alert .button-primary{float:right;margin:5px 0;padding-right:30px}#seopress-notifications-center h2,.seopress-useful-tools h2{margin:5px 0 15px 5px;display:inline-block;width:100%}#seopress-notifications-center .dashicons,.seopress-useful-tools .dashicons{margin-right:10px}#seopress-notifications-center .seopress-alert{padding:0;display:inline-block;margin:0 10px 10px 5px;border-bottom:1px solid #e6ebf1;width:calc(100% - 30px);position:relative;transition:all 150ms ease}#seopress-notifications-center .seopress-alert:hover{cursor:default}#seopress-notifications-center .seopress-alert p{display:inline-block}#seopress-notifications-center .seopress-alert .impact{padding:4px 5px;color:#fff;text-transform:uppercase;font-weight:700;font-size:10px;border-radius:4px}#seopress-notifications-center .seopress-alert .impact.low{background:#FFDE24;color:#6b6543}#seopress-notifications-center .seopress-alert .impact.medium{background:#e39f48}#seopress-notifications-center .seopress-alert .impact.high{background:#e25950}#seopress-notifications-center .seopress-alert .dashicons{color:#FFC82C}#seopress-notifications-center .dashicons.remove-notice{position:absolute;right:-55px;color:#6b7c93;font-size:30px;height:30px;width:30px;top:2px;padding:5px;transition:all .3s linear}#seopress-notifications-center .dashicons.remove-notice:hover{background:#e25950;color:#fff;cursor:pointer;border-radius:4px}#seopress-content .seopress-page-list .seopress-feature .seopress-doc,.seopress-option #seopress-tabs .seopress-doc{background:0 0;padding:0;width:inherit;height:inherit;text-decoration:none;color:inherit;box-shadow:none;position:absolute;right:0}#seopress-content .seopress-page-list .seopress-feature .seopress-doc:hover,.seopress-option #seopress-tabs .seopress-doc:hover{color:#747474;background:0 0}.seopress-option .seopress-table{background:#FFF;border:1px solid #ccc}.seopress-option .seopress-table th{padding:15px 10px;vertical-align:middle}.wp-admin-ui_page_seopress-roles .seopress-option .seopress-table th{min-width:200px}.seopress-option .seopress-table .seopress-settings-section{background:#f1f1f1}.seopress-option .seopress-table .seopress-table-head .seopress-feature{border-bottom:1px solid #ccc;font-weight:700;background:#f1f1f1}#seopress-content .feature-state,.seopress-option .feature-state{font-style:italic;font-size:12px;display:inline-block;background:rgba(0,140,135,.1);padding:5px 12px;border-radius:25px;color:#444;font-weight:400;text-transform:none;-moz-osx-font-smoothing:initial;-webkit-font-smoothing:initial}#seopress_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-option .wrap-tags{position:relative;display:inline-block;width:100%;margin-bottom:10px}#seopress_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-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-option .tag-title .dashicons{padding:0;height:16px;width:16px;font-size:16px;margin-right:5px;vertical-align:middle}.seopress-button{text-transform:uppercase;background:#fff;border-color:#c8d7e1;border-style:solid;border-width:1px 1px 2px;color:#2e4453;display:inline-block;margin:0;outline:0;overflow:hidden;text-overflow:ellipsis;text-decoration:none;vertical-align:top;box-sizing:border-box;font-size:14px;line-height:21px;padding:7px 14px 9px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.seopress-button:hover{border-color:#a8bece;color:#00a0d2}.seopress-button .dashicons{vertical-align:middle}#seopress-content #tab_seopress_seo_tools.seopress-useful-tools .widget{border-right:1px solid #e6ebf1;margin:0;padding:0 20px;width:calc(50% - 2px);box-sizing:border-box;display:inline-block;vertical-align:top}#seopress-content #tab_seopress_seo_tools.seopress-useful-tools .widget:first-child{width:100%;display:block;clear:both;border-right:none;border-bottom:1px solid #e6ebf1;padding-bottom:20px;margin-bottom:20px}#seopress-content #tab_seopress_seo_tools.seopress-useful-tools .widget:last-child{border-right:none}#seopress-content .seopress-useful-tools .widget-reverse ul{background:#fff}#seopress-content .seopress-useful-tools .widget-reverse li{padding:10px;margin:0;border-bottom:1px solid #e6ebf1}#seopress-content .seopress-useful-tools .widget-reverse li:hover{background:#F5F7FA}#seopress-content .seopress-useful-tools .widget-title{text-transform:uppercase;margin:0 0 10px;font-size:13px;padding:10px 0;color:#24b47e}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank{margin:0 0 10px;width:100%;box-sizing:border-box;display:block}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_reach{font-size:30px;font-weight:700;display:inline-block;width:100%;padding:0 0 20px;text-align:right}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_reach .highlight{display:inline-block;font-size:16px;background:inherit;width:100%;margin-bottom:10px}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_delta{font-size:14px;display:inline-block;vertical-align:top;text-align:left;margin:0 20px 0 0}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_delta{width:100%;text-align:right;font-size:18px;font-style:italic}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank{text-align:left}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country .highlight,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank .highlight{background:0 0;font-weight:700}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country{margin-right:0}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank{margin-left:5px}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .minus .dashicons,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .plus .dashicons{font-style:italic}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .plus{color:green}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .minus{color:red}#seopress-content .seopress-reverse label,#seopress-content .seopress-useful-tools .widget-whois ul li span{font-weight:700}#seopress-content #seopress-reverse-url{width:100%;margin:10px 0}#seopress-content .widget-reverse p{margin:0}.post-type-seopress_backlinks .wp-list-table .column-seopress_backlinks_url{width:35%}.post-type-seopress_backlinks .wp-list-table .column-seopress_backlinks_anchor_text{width:20%}.seopress-styles #screen-meta{margin:0;position:relative;background-color:#fff;border-bottom:0 solid #f2f2f2;border-top:none;-webkit-box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08);box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08);top:0}.seopress-styles #contextual-help-link-wrap,.seopress-styles #screen-options-link-wrap{float:right;height:28px;margin:0 0 0 6px;border:1px solid #f2f2f2;border-top:none;background:#fff;-webkit-box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08);box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08)}.seopress-styles #screen-meta-links .show-settings{box-shadow:none}.seopress-styles #screen-meta-links .screen-meta-toggle{position:relative;top:0;z-index:2000}.seopress-styles #contextual-help-back{background:#f8fafd}.seopress-styles .contextual-help-tabs .active{border-left:2px solid #3297d3;background:#f8fafd}#seopress-content input.toggle,.seopress-option input.toggle{max-height:0;max-width:0;opacity:0}#seopress-content input.toggle+label,.seopress-option input.toggle+label{display:inline-block;position:relative;box-shadow:inset 0 0 0 1px #d5d5d5;text-indent:-5000px;height:30px;width:50px;border-radius:15px}.wrap-toggle-checkboxes input.toggle+label{float:left;margin-right:10px}#seopress-content input.toggle+label:before,.seopress-option input.toggle+label:before{content:"";position:absolute;display:block;height:30px;width:30px;top:0;left:0;border-radius:15px;background:rgba(19,191,17,0);-moz-transition:.25s ease-in-out;-webkit-transition:.25s ease-in-out;transition:.25s ease-in-out}#seopress-content input.toggle+label:after,.seopress-option input.toggle+label:after{content:"";position:absolute;display:block;height:30px;width:30px;top:0;left:0;border-radius:15px;background:#fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2),0 2px 4px rgba(0,0,0,.2);-moz-transition:.25s ease-in-out;-webkit-transition:.25s ease-in-out;transition:.25s ease-in-out}#seopress-content input.toggle[data-toggle="1"]+label:before,.seopress-option input.toggle[data-toggle="1"]+label:before{width:50px;background:rgba(19,191,17,1)}#seopress-content input.toggle[data-toggle="1"]+label:after,.seopress-option input.toggle[data-toggle="1"]+label:after{left:20px;box-shadow:inset 0 0 0 1px rgba(19,191,17,1),0 2px 4px rgba(0,0,0,.2)}#seopress-content .seopress-page-list{position:relative}#seopress-notice-save{position:fixed;color:#fff;padding:15px 40px;font-size:14px;text-align:center;border-radius:50px;background:rgba(74,184,102,.75);top:50px;right:20px;z-index:500}.seopress_page_seopress-pro-page #wpcontent{background:#F4F7FA}.seopress-option .wrap div.nav-tab-wrapper{border-bottom:1px solid RGB(238,238,238);margin:0;padding:10px;line-height:inherit;position:sticky;top:100px;background:#fff;z-index:95;font-style:23px;font-weight:400}#seopress-admin-tabs.wrap div.nav-tab-wrapper{margin:20px auto 0;max-width:53rem;width:100%;border-bottom:0;padding:0;line-height:inherit;position:sticky;background:#f8fafd;z-index:100;top:31px;font-style:23px;font-weight:400}#seopress-admin-tabs #tab_seopress_notifications.seopress-tab{background:0 0;padding:0}#seopress-admin-tabs .nav-tab,.seopress-option .nav-tab{border:0 solid #ccc;background:0 0;opacity:.5;padding:5px 8px;transition:opacity .3s linear;color:#647a88;font-weight:300;float:none;display:inline-block}#seopress-admin-tabs .nav-tab-active,#seopress-admin-tabs .nav-tab-active:hover,.seopress-option .about-wrap h2 .nav-tab-active,.seopress-option .nav-tab-active,.seopress-option .nav-tab-active:hover{background-color:#fff}#seopress-admin-tabs .nav-tab-active,#seopress-admin-tabs .nav-tab-active:focus,#seopress-admin-tabs .nav-tab-active:focus:active,#seopress-admin-tabs .nav-tab-active:hover,#seopress-admin-tabs .nav-tab:focus,.nav-tab-active:focus,.seopress-option .nav-tab-active,.seopress-option .nav-tab-active:focus:active,.seopress-option .nav-tab-active:hover,.seopress-option .nav-tab:focus{background:0 0;opacity:1;outline:0;font-weight:600}#seopress-admin-tabs .nav-tab:hover,.seopress-option .nav-tab:hover{opacity:1}#seopress-admin-tabs .nav-tab:focus,.seopress-option .nav-tab:focus{outline:0;box-shadow:none}
1
+ #adminmenu div.wp-menu-image.dashicons-admin-seopress::before,#seopress-header #seopress-admin h1::before{content:"\e042";font-family:seopress}#seopress-header #seopress-admin h1::before,.seopress-page-list .seopress-feature h3,.seopress-styles .seopress-option h1{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}@font-face{font-family:seopress;src:url(../fonts/seopress.eot?8v0bs0);src:url(../fonts/seopress.eot?8v0bs0#iefix) format('embedded-opentype'),url(../fonts/seopress.ttf?8v0bs0) format('truetype'),url(../fonts/seopress.woff?8v0bs0) format('woff'),url(../fonts/seopress.svg?8v0bs0#seopress) format('svg');font-weight:400;font-style:normal}[class*=" icon-seopress"],[class^=icon-seopress-]{font-family:seopress!important}.icon-seopress-seopress:before{content:"\e042"}#seopress_content_analysis .wrap-seopress-analysis{display:inline-block;width:100%}#seopress_content_analysis .col-left{width:calc(50% - 30px);float:left;margin-right:30px}#seopress_content_analysis .col-right{float:right;width:50%}#seopress_content_analysis #seopress_suggestions{display:inline-block;width:100%;margin:0;height:auto;padding:20px 0}#seopress_content_analysis #seopress_suggestions li{list-style:square;margin:5px;display:inline-block;background:#F1F1F1;padding:5px}#seopress_launch_analysis{float:left}#seopress_analysis_results_state{background:rgba(74,184,102,.75);color:#fff;padding:5px 25px 5px 20px;border-radius:100px;font-style:italic;position:relative;width:auto;display:inline-block;margin:0 0 0 20px;clear:both}#seopress_content_analysis h3{border-bottom:1px solid #ddd;padding-bottom:10px}#seopress_content_analysis .wrap-analysis-img ul{display:flex}#seopress_content_analysis .wrap-analysis-img ul li{padding:0;text-align:left;cursor:default}#seopress_content_analysis .wrap-analysis-img h4{border-bottom:1px solid #ddd;padding-bottom:10px}#seopress_content_analysis .wrap-analysis-img ul li img{max-width:150px;max-height:150px;object-fit:cover;cursor:default}#seopress_cpt .notice{padding:10px 14px}#seopress-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:#edeff0;border:none}#seopress_content_analysis .ui-tabs .ui-tabs-nav{width:calc(100% + 24px);margin:15px 0 0 -12px}#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-3 label,#seopress_cpt #tabs-4 label,#seopress_cpt #tabs-5 label,#seopress_cpt #tabs-6 label,#seopress_cpt .subsection-title,#seopress_pro_cpt label{display:block;margin:20px 0 5px;font-weight:700}#seopress_cpt .wp-color-result{margin:0}#seopress_content_analysis input[type=text],#seopress_cpt #tabs-1 input,#seopress_cpt #tabs-2 input[type=text],#seopress_cpt #tabs-3 input[type=text],#seopress_cpt #tabs-3 textarea,#seopress_cpt #tabs-4 input[type=text],#seopress_cpt #tabs-5 input[type=text],#seopress_cpt #tabs-6 input[type=text],#seopress_cpt #tabs-6 textarea{width:100%}#seopress_cpt #tabs-6 input[type=number]{width:30%;min-width:200px}#seopress_cpt #tabs-6 #wrap-videos .video:first-child .remove-video{display:none}#seopress_cpt select{width:300px}#seopress_cpt #tabs-4 select{width:60px;display:inline}#seopress_cpt #tabs-4 #seopress_redirections_value_meta{width:calc(100% - 68px);float:right}#seopress_cpt #tabs-6{padding:0}#seopress_cpt #tabs-6 #wrap-videos .video .accordion-section-content,#seopress_cpt #tabs-6>p{padding:0 1.4em}#seopress_cpt #tabs-6 #wrap-videos .video .accordion-section-content{padding:0 1.4em 1em}#seopress_cpt #tabs-6 #wrap-videos .video{border-top:1px solid #eee}#seopress_cpt #tabs-6 #wrap-videos .video .accordion-section-title{border-left:none;border-right:none;font-size:1em;padding:1em 1.4em}#seopress_cpt #tabs-6 #wrap-videos .video:last-child .accordion-section-content,#seopress_cpt #tabs-6 #wrap-videos .video:last-child .accordion-section-title{border-bottom:1px solid #eee}#seopress_cpt #tabs-6 #wrap-videos .video .inside{padding:0}#seopress_cpt #tabs-4 #seopress_redirections_enabled,#seopress_cpt #tabs-5 #seopress_news_disabled,#seopress_cpt #tabs-5 #seopress_news_standout,#seopress_cpt #tabs-6 #seopress_video_disabled,#seopress_cpt #tabs-6 .family-friendly label,#seopress_cpt #tabs-6 .internal_video label{font-weight:400}#seopress_cpt #tabs-6 #wrap-videos .video:nth-child(odd){background:#fdfdfd}#seopress_content_analysis .advise,#seopress_cpt .advise,#seopress_pro_cpt .advise{margin:5px;display:block;color:red;font-style:italic}#seopress_cpt #tabs-6 #wrap-videos .video .advise{color:#555}#seopress_content_analysis .mandatory,#seopress_cpt .mandatory{color:#c00}#seopress_cpt .box-left{float:left;width:49%;margin-right:1%}#seopress_cpt .box-right{float:left;width:49%;margin-left:1%}#seopress_cpt .google-snippet-preview{font-family:arial,sans-serif;word-break:break-all}#seopress_cpt .google-snippet-preview .snippet-title,#seopress_cpt .google-snippet-preview .snippet-title-custom,#seopress_cpt .google-snippet-preview .snippet-title-default{color:#1a0dab;font-size:18px;font-weight:400;line-height:21.6px}#seopress_cpt .google-snippet-preview .snippet-permalink{color:#006621;font-size:14px;font-style:normal;font-weight:400;line-height:16px}#seopress_cpt .google-snippet-preview .snippet-description,#seopress_cpt .google-snippet-preview .snippet-description-custom,#seopress_cpt .google-snippet-preview .snippet-description-default{color:#545454;font-size:13px;font-weight:400;line-height:18.2px;display:inline}#seopress_cpt .google-snippet-preview .snippet-date{color:grey;display:inline}#seopress_cpt .wrap-seopress-counters,#seopress_pro_cpt .wrap-seopress-counters{text-align:right;background:#eee;padding:2px 5px;box-shadow:0 1px 1px rgba(0,0,0,.2);font-size:12px}#seopress_cpt #seopress_titles_desc_counters,#seopress_cpt #seopress_titles_title_counters,#seopress_pro_cpt #seopress_rich_snippets_articles_counters,#seopress_pro_cpt #seopress_rich_snippets_courses_counters{display:inline;margin-right:5px}#seopress_cpt #seopress_titles_desc_counters_val,#seopress_cpt #seopress_titles_title_counters_val,#seopress_pro_cpt #seopress_rich_snippets_articles_counters_val,#seopress_pro_cpt #seopress_rich_snippets_courses_counters_val{display:inline;font-weight:700}#term-seopress #seopress_cpt{width:95%}.fixed .column-seopress_w3c,.fixed .column-seopress_words{width:5%}.fixed .column-seopress_nofollow,.fixed .column-seopress_noindex{width:10%}#seopress_content_analysis .ui-tabs,#seopress_cpt .ui-tabs{position:relative;padding: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;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;padding:1px}#seopress_content_analysis .ui-tabs .dashicons-no-alt,#seopress_pro_cpt .dashicons-no-alt{background:#e25950}body.seopress-styles{background:#f8fafd}#seopress-content a{color:#3297d3}#seopress-content a:hover{color:#106598}#seopress-admin-tabs.ui-tabs{position:relative;padding:.2em;border:none;font-family:inherit;font-size:inherit}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:-1px .2em 0 0;padding:0;white-space:nowrap;border:none;background:0 0}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li a{float:left;padding:.38em 1em .75rem;outline:0;border-bottom:2px solid #fff}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-state-disabled a,#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-tabs-active a,#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-tabs-loading a{cursor:text;border-bottom:2px solid #23282D;color:#23282D}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li a,#seopress-admin-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a{cursor:pointer;color:#0073aa;text-decoration:none}#seopress-admin-tabs.ui-tabs-vertical{width:55em}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-nav{padding:.2em .1em .2em .2em;float:left;width:12em}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-nav li{clear:left;width:100%;border-bottom-width:1px!important;border-right-width:0!important;margin:0 -1px .2em 0}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-nav li.ui-tabs-active{padding-bottom:0;padding-right:.1em;border-right-width:1px}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-panel{padding:1em;float:right;width:40em}.seopress-styles .seopress-option{margin:10px auto 0;max-width:90%;padding:1rem;background:#fff;box-shadow:0 15px 35px rgba(50,50,93,.1),0 5px 15px rgba(0,0,0,.1);border-radius:4px}.seopress-styles .seopress-option h1{font-size:16px;font-weight:700;color:#3297d3;text-transform:uppercase;position:sticky;top:32px;background:#fff;z-index:100;padding:10px 0}.seopress-styles .seopress-option h1 .dashicons,.seopress-styles .seopress-option h2 .dashicons{margin:0 10px;font-size:40px;width:40px;height:40px;vertical-align:middle}.seopress-styles .seopress-option .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-yoast-migrate,.seopress-styles .seopress-option #submit{color:#fff;text-decoration:none;border:none;border-radius:4px;padding-right:20px;padding-left:20px;line-height:34px;text-transform:uppercase;min-height:34px;transition:all .3s linear;text-shadow:none;box-shadow:0 7px 14px rgba(50,50,93,.1),0 3px 6px rgba(0,0,0,.1);margin-right:15px;background:RGB(106,124,148);position:relative;height:auto}.seopress-styles .seopress-option #seopress-aio-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 #seopress-navbar{padding:10px 1.5rem;height:56px;margin:0 auto;width:53rem;box-sizing:border-box;position:relative}#seopress-header{margin:0 auto;position:relative;width:100%}#seopress-header #seopress-admin h1{line-height:50px;margin:0;display:inline-block;height:50px;width:36px;background-size:100%;background-repeat:no-repeat}#seopress-header #seopress-admin h1::before{font-size:40px;line-height:45px;position:absolute;font-weight:400}#seopress-header #seopress-admin h1:hover{cursor:pointer}#seopress-header #seopress-admin h1>a{text-decoration:none;color:inherit}#seopress-header #seopress-admin .seopress-quick-access{background:#fff;box-shadow:0 50px 100px rgba(50,50,93,.1),0 15px 35px rgba(50,50,93,.2),0 5px 15px rgba(0,0,0,.1);border-radius:4px;overflow:hidden;position:relative;font-size:17px;line-height:40px;white-space:nowrap;transform:rotate3d(1,1,0,-15deg);transform-origin:100% 0;opacity:0;will-change:transform,opacity;transition-property:transform,opacity;transition-duration:.25s;z-index:300;padding:0;display:block;width:53rem;top:0;visibility:hidden;cursor:auto}#seopress-header #seopress-admin h1:hover .seopress-quick-access{transform:none;opacity:1;pointer-events:auto;visibility:visible}#seopress-header #seopress-admin .seopress-quick-access>ul{padding:20px;margin:0;float:left;width:100%;box-sizing:border-box}#seopress-header #seopress-admin h1 .seopress-quick-access li{text-decoration:none;display:inline-block;width:50%;margin:0;float:left;padding:10px 0}#seopress-header #seopress-admin h1 .seopress-quick-access li .dashicons{vertical-align:middle;background:#B7E1F3;border-radius:50%;padding:5px;margin-right:15px}#seopress-header #seopress-admin h1 .seopress-quick-access li a{text-decoration:none;font-size:15px;line-height:30px;text-transform:uppercase;display:block;width:100%;transition:all .3s linear;color:#3297d3}#seopress-header #seopress-admin h1 .seopress-quick-access li a:hover{color:#647a88}#seopress-header #seopress-admin h1 .seopress-info-version{position:relative;left:50px;top:0;font-size:14px;width:100px;display:block}#seopress-header #seopress-admin .wpc-info-version{font-size:14px;left:310px;position:absolute;text-indent:0;top:85px}#seopress-header #seopress-notice{float:right;line-height:40px}#seopress-header #seopress-notice p{font-size:16px}#seopress-header #seopress-notice .dashicons{color:#444;text-decoration:none;line-height:40px}#seopress-header #seopress-notice div.small{font-size:13px;display:inline}#seopress-footer-credits{font-style:italic}#seopress-footer-credits .wporg-ratings{display:inline}#seopress-footer-credits .wporg-ratings a{text-decoration:none}.seopress-option .seopress-settings{float:left;max-width:750px;width:100%}.seopress-option #seopress-edd-license-btn,.seopress-option #seopress-refresh{float:left}.wp-admin-ui_page_seopress-import-export .postbox{margin-right:20px}.seopress-option #side-sortables .accordion-section-content{padding:0}.seopress-option .seopress-settings label{margin:0 0 0 10px}.wrap-seopress-tab-content{position:relative;display:block;width:100%;height:100%;max-width:53rem;margin:20px auto 0}#seopress-admin-tabs .seopress-tab{padding:1.5rem;visibility:hidden;overflow:hidden;opacity:0;transition:all .2s ease;transform:translateX(-15px);position:absolute;top:0}#seopress-admin-tabs .seopress-tab.active{visibility:visible;overflow:inherit;opacity:1;transform:translateX(0);display:inherit;position:relative}#seopress-tabs .seopress-tab{padding:1.5rem;display:none}#seopress-tabs .seopress-tab.active{display:block}.seopress-option input[type=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: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 .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_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-option .wrap-tags{position:relative;display:inline-block;width:100%;margin-bottom:10px}#seopress_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-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-option .tag-title .dashicons{padding:0;height:16px;width:16px;font-size:16px;margin-right:5px;vertical-align:middle}.seopress-button{text-transform:uppercase;background:#fff;border-color:#c8d7e1;border-style:solid;border-width:1px 1px 2px;color:#2e4453;display:inline-block;margin:0;outline:0;overflow:hidden;text-overflow:ellipsis;text-decoration:none;vertical-align:top;box-sizing:border-box;font-size:14px;line-height:21px;padding:7px 14px 9px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.seopress-button:hover{border-color:#a8bece;color:#00a0d2}.seopress-button .dashicons{vertical-align:middle}#seopress-content #tab_seopress_seo_tools.seopress-useful-tools .widget{border-right:1px solid #e6ebf1;margin:0;padding:0 20px;width:calc(50% - 2px);box-sizing:border-box;display:inline-block;vertical-align:top}#seopress-content #tab_seopress_seo_tools.seopress-useful-tools .widget:first-child{width:100%;display:block;clear:both;border-right:none;border-bottom:1px solid #e6ebf1;padding-bottom:20px;margin-bottom:20px}#seopress-content #tab_seopress_seo_tools.seopress-useful-tools .widget:last-child{border-right:none}#seopress-content .seopress-useful-tools .widget-reverse ul{background:#fff}#seopress-content .seopress-useful-tools .widget-reverse li{padding:10px;margin:0;border-bottom:1px solid #e6ebf1}#seopress-content .seopress-useful-tools .widget-reverse li:hover{background:#F5F7FA}#seopress-content .seopress-useful-tools .widget-title{text-transform:uppercase;margin:0 0 10px;font-size:13px;padding:10px 0;color:#24b47e}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank{margin:0 0 10px;width:100%;box-sizing:border-box;display:block}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_reach{font-size:30px;font-weight:700;display:inline-block;width:100%;padding:0 0 20px;text-align:right}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_reach .highlight{display:inline-block;font-size:16px;background:inherit;width:100%;margin-bottom:10px}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_delta{font-size:14px;display:inline-block;vertical-align:top;text-align:left;margin:0 20px 0 0}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_delta{width:100%;text-align:right;font-size:18px;font-style:italic}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank{text-align:left}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country .highlight,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank .highlight{background:0 0;font-weight:700}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country{margin-right:0}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank{margin-left:5px}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .minus .dashicons,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .plus .dashicons{font-style:italic}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .plus{color:green}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .minus{color:red}#seopress-content .seopress-reverse label,#seopress-content .seopress-useful-tools .widget-whois ul li span{font-weight:700}#seopress-content #seopress-reverse-url{width:100%;margin:10px 0}#seopress-content .widget-reverse p{margin:0}.post-type-seopress_backlinks .wp-list-table .column-seopress_backlinks_url{width:35%}.post-type-seopress_backlinks .wp-list-table .column-seopress_backlinks_anchor_text{width:20%}.seopress-styles #screen-meta{margin:0;position:relative;background-color:#fff;border-bottom:0 solid #f2f2f2;border-top:none;-webkit-box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08);box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08);top:0}.seopress-styles #contextual-help-link-wrap,.seopress-styles #screen-options-link-wrap{float:right;height:28px;margin:0 0 0 6px;border:1px solid #f2f2f2;border-top:none;background:#fff;-webkit-box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08);box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08)}.seopress-styles #screen-meta-links .show-settings{box-shadow:none}.seopress-styles #screen-meta-links .screen-meta-toggle{position:relative;top:0;z-index:2000}.seopress-styles #contextual-help-back{background:#f8fafd}.seopress-styles .contextual-help-tabs .active{border-left:2px solid #3297d3;background:#f8fafd}#seopress-content input.toggle,.seopress-option input.toggle{max-height:0;max-width:0;opacity:0}#seopress-content input.toggle+label,.seopress-option input.toggle+label{display:inline-block;position:relative;box-shadow:inset 0 0 0 1px #d5d5d5;text-indent:-5000px;height:30px;width:50px;border-radius:15px}.wrap-toggle-checkboxes input.toggle+label{float:left;margin-right:10px}#seopress-content input.toggle+label:before,.seopress-option input.toggle+label:before{content:"";position:absolute;display:block;height:30px;width:30px;top:0;left:0;border-radius:15px;background:rgba(19,191,17,0);-moz-transition:.25s ease-in-out;-webkit-transition:.25s ease-in-out;transition:.25s ease-in-out}#seopress-content input.toggle+label:after,.seopress-option input.toggle+label:after{content:"";position:absolute;display:block;height:30px;width:30px;top:0;left:0;border-radius:15px;background:#fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2),0 2px 4px rgba(0,0,0,.2);-moz-transition:.25s ease-in-out;-webkit-transition:.25s ease-in-out;transition:.25s ease-in-out}#seopress-content input.toggle[data-toggle="1"]+label:before,.seopress-option input.toggle[data-toggle="1"]+label:before{width:50px;background:rgba(19,191,17,1)}#seopress-content input.toggle[data-toggle="1"]+label:after,.seopress-option input.toggle[data-toggle="1"]+label:after{left:20px;box-shadow:inset 0 0 0 1px rgba(19,191,17,1),0 2px 4px rgba(0,0,0,.2)}#seopress-content .seopress-page-list{position:relative}#seopress-notice-save{position:fixed;color:#fff;padding:15px 40px;font-size:14px;text-align:center;border-radius:50px;background:rgba(74,184,102,.75);top:50px;right:20px;z-index:500}.seopress_page_seopress-pro-page #wpcontent{background:#F4F7FA}.seopress-option .wrap div.nav-tab-wrapper{border-bottom:1px solid RGB(238,238,238);margin:0;padding:10px;line-height:inherit;position:sticky;top:100px;background:#fff;z-index:95;font-style:23px;font-weight:400}#seopress-admin-tabs.wrap div.nav-tab-wrapper{margin:20px auto 0;max-width:53rem;width:100%;border-bottom:0;padding:0;line-height:inherit;position:sticky;background:#f8fafd;z-index:100;top:31px;font-style:23px;font-weight:400}#seopress-admin-tabs #tab_seopress_notifications.seopress-tab{background:0 0;padding:0}#seopress-admin-tabs .nav-tab,.seopress-option .nav-tab{border:0 solid #ccc;background:0 0;opacity:.5;padding:5px 8px;transition:opacity .3s linear;color:#647a88;font-weight:300;float:none;display:inline-block}#seopress-admin-tabs .nav-tab-active,#seopress-admin-tabs .nav-tab-active:hover,.seopress-option .about-wrap h2 .nav-tab-active,.seopress-option .nav-tab-active,.seopress-option .nav-tab-active:hover{background-color:#fff}#seopress-admin-tabs .nav-tab-active,#seopress-admin-tabs .nav-tab-active:focus,#seopress-admin-tabs .nav-tab-active:focus:active,#seopress-admin-tabs .nav-tab-active:hover,#seopress-admin-tabs .nav-tab:focus,.nav-tab-active:focus,.seopress-option .nav-tab-active,.seopress-option .nav-tab-active:focus:active,.seopress-option .nav-tab-active:hover,.seopress-option .nav-tab:focus{background:0 0;opacity:1;outline:0;font-weight:600}#seopress-admin-tabs .nav-tab:hover,.seopress-option .nav-tab:hover{opacity:1}#seopress-admin-tabs .nav-tab:focus,.seopress-option .nav-tab:focus{outline:0;box-shadow:none}
assets/js/seopress-tabs7.js CHANGED
@@ -48,32 +48,6 @@ jQuery(document).ready(function(){
48
});
49
});
50
51
- //Whois email alert
52
- jQuery(document).ready(function(){
53
- jQuery('#seopress-whois-alert').on('click', function() {
54
- jQuery.ajax({
55
- method : 'GET',
56
- url : seopressAjaxWhois.seopress_whois_alert,
57
- data : {
58
- action: 'seopress_whois_alert',
59
- _ajax_nonce: seopressAjaxWhois.seopress_nonce,
60
- },
61
- success : function( data ) {
62
- jQuery('#seopress-whois-alert').removeAttr("disabled");
63
- jQuery( '#spinner-whois.spinner' ).css( "visibility", "hidden" );
64
- jQuery( '.seopress-whois-alert.log' ).html('Alert successfully scheduled!');
65
- },
66
- });
67
- });
68
- });
69
- jQuery(document).ready(function(){
70
- jQuery('#seopress-whois-alert').on('click', function() {
71
- jQuery(this).attr("disabled", "disabled");
72
- jQuery( '#spinner-whois.spinner' ).css( "visibility", "visible" );
73
- jQuery( '#spinner-whois.spinner' ).css( "float", "none" );
74
- });
75
- });
76
-
77
//Request Alexa Rank
78
jQuery(document).ready(function(){
79
jQuery('#seopress-request-alexa-rank').on('click', function() {
48
});
49
});
50
51
//Request Alexa Rank
52
jQuery(document).ready(function(){
53
jQuery('#seopress-request-alexa-rank').on('click', function() {
assets/js/seopress-yoast-migrate.js CHANGED
@@ -27,8 +27,43 @@ jQuery(document).ready(function(){
27
jQuery(document).ready(function(){
28
jQuery('#seopress-yoast-migrate').on('click', function() {
29
jQuery(this).attr("disabled", "disabled");
30
- jQuery( '.spinner' ).css( "visibility", "visible" );
31
- jQuery( '.spinner' ).css( "float", "none" );
32
jQuery( '#yoast-migration-tool .log' ).html('');
33
});
34
});
27
jQuery(document).ready(function(){
28
jQuery('#seopress-yoast-migrate').on('click', function() {
29
jQuery(this).attr("disabled", "disabled");
30
+ jQuery( '#yoast-migration-tool .spinner' ).css( "visibility", "visible" );
31
+ jQuery( '#yoast-migration-tool .spinner' ).css( "float", "none" );
32
jQuery( '#yoast-migration-tool .log' ).html('');
33
});
34
+ });
35
+
36
+ jQuery(document).ready(function(){
37
+ jQuery('#seopress-aio-migrate').on('click', function(e) {
38
+ e.preventDefault();
39
+ self.process_offset( 0, self );
40
+ });
41
+ process_offset = function( offset, self ) {
42
+ jQuery.ajax({
43
+ method : 'POST',
44
+ url : seopressAjaxAIOMigrate.seopress_aio_migration,
45
+ data : {
46
+ action: 'seopress_aio_migration',
47
+ offset: offset,
48
+ _ajax_nonce: seopressAjaxAIOMigrate.seopress_nonce,
49
+ },
50
+ success : function( data ) {
51
+ if( 'done' == data.data.offset ) {
52
+ jQuery('#seopress-aio-migrate').removeAttr("disabled");
53
+ jQuery( '.spinner' ).css( "visibility", "hidden" );
54
+ jQuery( '#aio-migration-tool .log' ).html('Migration completed!');
55
+ } else {
56
+ self.process_offset( parseInt( data.data.offset ), self );
57
+ }
58
+ },
59
+ });
60
+ };
61
+ });
62
+ jQuery(document).ready(function(){
63
+ jQuery('#seopress-aio-migrate').on('click', function() {
64
+ jQuery(this).attr("disabled", "disabled");
65
+ jQuery( '#aio-migration-tool .spinner' ).css( "visibility", "visible" );
66
+ jQuery( '#aio-migration-tool .spinner' ).css( "float", "none" );
67
+ jQuery( '#aio-migration-tool .log' ).html('');
68
+ });
69
});
inc/admin/admin-header.php CHANGED
@@ -200,7 +200,7 @@ function seopress_admin_header() { ?>
200
<div class="dashicons dashicons-twitter"></div>
201
<div class="tooltip"><?php _e('Follow us on Twitter','wp-seopress'); ?></div>
202
</a>
203
- <a href="https://www.youtube.com/channel/UCH5sQx3T2QZFhFEamT51hsw" alt="<?php _e('Follow us on YouTube (new window)','wp-seopress'); ?>" target="_blank">
204
<div class="dashicons dashicons-video-alt3"></div>
205
<div class="tooltip"><?php _e('Follow us on YouTube','wp-seopress'); ?></div>
206
</a>
200
<div class="dashicons dashicons-twitter"></div>
201
<div class="tooltip"><?php _e('Follow us on Twitter','wp-seopress'); ?></div>
202
</a>
203
+ <a href="https://www.youtube.com/c/SEOPress" alt="<?php _e('Follow us on YouTube (new window)','wp-seopress'); ?>" target="_blank">
204
<div class="dashicons dashicons-video-alt3"></div>
205
<div class="tooltip"><?php _e('Follow us on YouTube','wp-seopress'); ?></div>
206
</a>
inc/admin/admin-metaboxes-content-analysis-form.php CHANGED
@@ -172,8 +172,8 @@ if ( is_plugin_active( 'wp-seopress-pro/seopress-pro.php' ) ) {
172
echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('None of your target keywords were found in the Meta Title.','wp-seopress').'</p>';
173
}
174
175
- if (strlen($seopress_titles_title) > 65 ) {
176
- echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('You custom title is too long.','wp-seopress').'</p>';
177
} else {
178
echo '<p><span class="dashicons dashicons-yes"></span>'.__('The length of your title is correct','wp-seopress').'</p>';
179
}
@@ -201,7 +201,7 @@ if ( is_plugin_active( 'wp-seopress-pro/seopress-pro.php' ) ) {
201
echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('None of your target keywords were found in the Meta description.','wp-seopress').'</p>';
202
}
203
204
- if (strlen($seopress_titles_desc) > 160 ) {
205
echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('You custom meta description is too long.','wp-seopress').'</p>';
206
} else {
207
echo '<p><span class="dashicons dashicons-yes"></span>'.__('The length of your meta description is correct','wp-seopress').'</p>';
172
echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('None of your target keywords were found in the Meta Title.','wp-seopress').'</p>';
173
}
174
175
+ if (mb_strlen($seopress_titles_title) > 65 ) {
176
+ echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('Your custom title is too long.','wp-seopress').'</p>';
177
} else {
178
echo '<p><span class="dashicons dashicons-yes"></span>'.__('The length of your title is correct','wp-seopress').'</p>';
179
}
201
echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('None of your target keywords were found in the Meta description.','wp-seopress').'</p>';
202
}
203
204
+ if (mb_strlen($seopress_titles_desc) > 160 ) {
205
echo '<p><span class="dashicons dashicons-no-alt"></span>'.__('You custom meta description is too long.','wp-seopress').'</p>';
206
} else {
207
echo '<p><span class="dashicons dashicons-yes"></span>'.__('The length of your meta description is correct','wp-seopress').'</p>';
inc/admin/admin.php CHANGED
@@ -182,7 +182,7 @@ class seopress_options
182
add_menu_page('SEOPress Option Page', __('SEO','wp-seopress'), 'manage_options', 'seopress-option', array( $this, 'create_admin_page' ), $sp_seo_admin_menu['icon'], 90);
183
add_submenu_page('seopress-option', __('Dashboard','wp-seopress'), __('Dashboard','wp-seopress'), 'manage_options', 'seopress-option', array( $this, 'create_admin_page' ));
184
$seopress_titles_help_tab = add_submenu_page('seopress-option', __('Titles & Metas','wp-seopress'), __('Titles & Metas','wp-seopress'), 'manage_options', 'seopress-titles', array( $this, 'seopress_titles_page' ));
185
- add_submenu_page('seopress-option', __('XML / Image / HTML Sitemap','wp-seopress'), __('XML / HTML Sitemap','wp-seopress'), 'manage_options', 'seopress-xml-sitemap', array( $this, 'seopress_xml_sitemap_page' ));
186
add_submenu_page('seopress-option', __('Social Networks','wp-seopress'), __('Social Networks','wp-seopress'), 'manage_options', 'seopress-social', array( $this, 'seopress_social_page' ));
187
$seopress_google_analytics_help_tab = add_submenu_page('seopress-option', __('Google Analytics','wp-seopress'), __('Google Analytics','wp-seopress'), 'manage_options', 'seopress-google-analytics', array( $this, 'seopress_google_analytics_page' ));
188
add_submenu_page('seopress-option', __('Advanced','wp-seopress'), __('Advanced','wp-seopress'), 'manage_options', 'seopress-advanced', array( $this, 'seopress_advanced_page' ));
@@ -225,6 +225,7 @@ class seopress_options
225
<li><span>'.__('%%currentyear%%','wp-seopress').'</span>'.__('Current year','wp-seopress').'</li>
226
<li><span>'.__('%%currentdate%%','wp-seopress').'</span>'.__('Current date','wp-seopress').'</li>
227
<li><span>'.__('%%currenttime%%','wp-seopress').'</span>'.__('Current time','wp-seopress').'</li>
228
</ul>
229
'.wp_oembed_get('https://www.youtube.com/watch?v=HEa8m9u4mOk', array('width'=>530));
230
@@ -716,6 +717,7 @@ class seopress_options
716
</div><!-- .postbox -->
717
<?php } ?>
718
719
<div id="yoast-migration-tool" class="postbox">
720
<h3><span><?php _e( 'Import posts and terms metadata from Yoast', 'wp-seopress' ); ?></span></h3>
721
<div class="inside">
@@ -734,6 +736,25 @@ class seopress_options
734
<span class="spinner"></span>
735
<div class="log"></div>
736
</div><!-- .inside -->
737
</div><!-- .postbox -->
738
739
<div class="postbox">
@@ -1207,66 +1228,6 @@ class seopress_options
1207
<span id="spinner-reverse" class="spinner"></span>
1208
</div>
1209
1210
- <!-- Whois -->
1211
- <div class="widget widget-whois">
1212
- <h3 class="widget-title"><span class="dashicons dashicons-clock"></span><?php _e('Check your domain expiration date','wp-seopress'); ?></h3>
1213
- <?php
1214
- $url = get_home_url();
1215
-
1216
- function get_domain($url) {
1217
- $urlobj = parse_url($url);
1218
- $domain = $urlobj['host'];
1219
- if (preg_match('/(?P<domain>[a-z0-9][a-z0-9\-]{1,63}\.[a-z\.]{2,6})#x2F;i', $domain, $regs)) {
1220
- return $regs['domain'];
1221
- }
1222
- return false;
1223
- }
1224
-
1225
- $whois = shell_exec('whois '.get_domain($url));
1226
-
1227
- if ($whois) {
1228
- $whois_result = explode("\n",$whois);
1229
-
1230
- $out = array();
1231
- foreach ($whois_result as $line) {
1232
- //remove comments
1233
- if (substr($line,0,1) == '%' || substr($line,0,1) == '#') {
1234
- continue;
1235
- }
1236
-
1237
- $ps = explode(':',$line);
1238
- $out[trim($ps[0])] = isset($ps[1]) ? trim($ps[1]) : null;
1239
- }
1240
- if ($out) {
1241
- echo '<ul>';
1242
- if (isset($out['Domain Name'])) {
1243
- echo '<li><span>'.__('Your domain name: ','wp-seopress').'</span> '.$out['Domain Name'].'</li>';
1244
- }
1245
- if (isset($out['Registrar'])) {
1246
- echo '<li><span>'.__('Your registrar: ','wp-seopress').'</span> '.$out['Registrar'].'</li>';
1247
- }
1248
- if (isset($out['Updated Date'])) {
1249
- echo '<li><span>'.__('Last updated date: ','wp-seopress').'</span> '.date_i18n( get_option( 'date_format' ), strtotime( $out['Updated Date'].':00:00' ) ).'</li>';
1250
- }
1251
- if (isset($out['Creation Date'])) {
1252
- echo '<li><span>'.__('Domain creation date: ','wp-seopress').'</span> '.date_i18n( get_option( 'date_format' ), strtotime( $out['Creation Date'].':00:00' ) ).'</li>';
1253
- }
1254
- if (isset($out['Registry Expiry Date'])) {
1255
- echo '<li><span>'.__('Your domain expires: ','wp-seopress').'</span> '.date_i18n( get_option( 'date_format' ), strtotime( $out['Registry Expiry Date'].':00:00' ) ).'</li>';
1256
- }
1257
- echo '</ul>';
1258
- }
1259
- } else {
1260
- echo '<p>'.__('Sorry, you domain name can\'t be verified :(','wp-seopress').'</p>';
1261
- }
1262
- ?>
1263
- <button id="seopress-whois-alert" class="button-primary button" name="clear"><?php _e('Email me before expiration','wp-seopress'); ?></button>
1264
-
1265
- <span id="spinner-whois" class="spinner"></span>
1266
-
1267
- <span class="seopress-whois-alert log"></span>
1268
- </div>
1269
-
1270
<!-- Alexa -->
1271
<div class="widget widget-alexa">
1272
<h3 class="widget-title"><span class="dashicons dashicons-chart-area"></span><?php _e('Check your Alexa Rank (Amazon index)','wp-seopress'); ?></h3>
@@ -3058,7 +3019,7 @@ class seopress_options
3058
3059
add_settings_field(
3060
'seopress_advanced_appearance_genesis_seo_metaboxe', // ID
3061
- __("Hide Genesis SEO Metaboxes","wp-seopress"), // Title
3062
array( $this, 'seopress_advanced_appearance_genesis_seo_metaboxe_callback' ), // Callback
3063
'seopress-settings-admin-advanced-appearance', // Page
3064
'seopress_setting_section_advanced_appearance' // Section
@@ -3075,7 +3036,7 @@ class seopress_options
3075
3076
add_settings_field(
3077
'seopress_advanced_security_metaboxe_role', // ID
3078
- __("Block SEO metaboxes to user roles","wp-seopress"), // Title
3079
array( $this, 'seopress_advanced_security_metaboxe_role_callback' ), // Callback
3080
'seopress-settings-admin-advanced-security', // Page
3081
'seopress_setting_section_advanced_security' // Section
@@ -3083,7 +3044,7 @@ class seopress_options
3083
3084
add_settings_field(
3085
'seopress_advanced_security_metaboxe_ca_role', // ID
3086
- __("Block Content analysis metaboxe to user roles","wp-seopress-pro"), // Title
3087
array( $this, 'seopress_advanced_security_metaboxe_ca_role_callback' ), // Callback
3088
'seopress-settings-admin-advanced-security', // Page
3089
'seopress_setting_section_advanced_security' // Section
@@ -3185,11 +3146,24 @@ class seopress_options
3185
</pre>';
3186
}
3187
}
3188
- echo '<p>'.__('Noindex content will not be displayed in Sitemaps.', 'wp-seopress').'</p><br>';
3189
3190
echo '<a href="'.home_url().'/sitemaps.xml" target="_blank" class="button"><span class="dashicons dashicons-visibility"></span>'.__('View your sitemap','wp-seopress').'</a>';
3191
echo '&nbsp;';
3192
- echo '<a href="https://www.google.com/ping?sitemap='.home_url().'/sitemaps/" target="_blank" class="button"><span class="dashicons dashicons-share-alt2"></span>'.__('Ping Google manually','wp-seopress').'</a>';
3193
echo '&nbsp;';
3194
echo '<button id="seopress-flush-permalinks" class="button"><span class="dashicons dashicons-admin-links"></span>'.__('Flush permalinks','wp-seopress').'</button>';
3195
echo '<span class="spinner"></span>';
@@ -3555,8 +3529,13 @@ class seopress_options
3555
if (!in_array($seopress_cpt_key, array('post','page'))) {
3556
3557
$check = isset($this->options['seopress_titles_archive_titles'][$seopress_cpt_key]['title']) ? $this->options['seopress_titles_archive_titles'][$seopress_cpt_key]['title'] : NULL;
3558
3559
- echo '<h2>'.$seopress_cpt_value->labels->name.' <em><small>['.$seopress_cpt_value->name.']</small></em></h2>';
3560
3561
//Archive Title CPT
3562
echo '<div class="seopress_wrap_archive_cpt">';
@@ -4438,7 +4417,7 @@ class seopress_options
4438
$check = isset($this->options['seopress_social_accounts_youtube']) ? $this->options['seopress_social_accounts_youtube'] : NULL;
4439
4440
printf(
4441
- '<input type="text" name="seopress_social_option_name[seopress_social_accounts_youtube]" placeholder="'.esc_html__('eg: https://www.youtube.com/channel/UCpQzarWu55UzCIH7-OW6pwA','wp-seopress').'" aria-label="'.__('YouTube URL','wp-seopress').'" value="%s"/>',
4442
esc_html( $check )
4443
4444
);
@@ -4706,6 +4685,16 @@ class seopress_options
4706
'<textarea id="seopress_google_analytics_opt_out_msg" name="seopress_google_analytics_option_name[seopress_google_analytics_opt_out_msg]" rows="4" placeholder="'.esc_html__('Enter your message (HTML allowed)','wp-seopress-pro').'" aria-label="'.__('This message will only appear if request user\'s consent is enabled.','wp-seopress').'">%s</textarea>',
4707
esc_html( $check ));
4708
4709
echo '<p class="description">'.__('HTML tags allowed: strong, em, br, a href','wp-seopress-pro').'</p>';
4710
}
4711
@@ -5794,7 +5783,7 @@ class seopress_options
5794
if ('1' == $check) echo 'checked="yes"';
5795
echo ' value="1"/>';
5796
5797
- echo '<label for="seopress_advanced_appearance_genesis_seo_metaboxe">'. __( 'Remove Genesis SEO Metaboxes', 'wp-seopress' ) .'</label>';
5798
5799
if (isset($this->options['seopress_advanced_appearance_genesis_seo_metaboxe'])) {
5800
esc_attr( $this->options['seopress_advanced_appearance_genesis_seo_metaboxe']);
@@ -5832,7 +5821,7 @@ class seopress_options
5832
}
5833
}
5834
?>
5835
- <a href="<?php echo $seopress_docs_link['support']['security']['metaboxe_seo']; ?>" target="_blank" class="seopress-doc"><span class="dashicons dashicons-editor-help"></span><span class="screen-reader-text"><?php _e('Hook to filter Structured data types metaboxe call by post type - new window','wp-seopress'); ?></span></a>
5836
<?php
5837
}
5838
@@ -5867,7 +5856,7 @@ class seopress_options
5867
}
5868
}
5869
?>
5870
- <a href="<?php echo $seopress_docs_link['support']['security']['metaboxe_ca']; ?>" target="_blank" class="seopress-doc"><span class="dashicons dashicons-editor-help"></span><span class="screen-reader-text"><?php _e('Hook to filter Structured data types metaboxe call by post type - new window','wp-seopress'); ?></span></a>
5871
<?php
5872
}
5873
}
182
add_menu_page('SEOPress Option Page', __('SEO','wp-seopress'), 'manage_options', 'seopress-option', array( $this, 'create_admin_page' ), $sp_seo_admin_menu['icon'], 90);
183
add_submenu_page('seopress-option', __('Dashboard','wp-seopress'), __('Dashboard','wp-seopress'), 'manage_options', 'seopress-option', array( $this, 'create_admin_page' ));
184
$seopress_titles_help_tab = add_submenu_page('seopress-option', __('Titles & Metas','wp-seopress'), __('Titles & Metas','wp-seopress'), 'manage_options', 'seopress-titles', array( $this, 'seopress_titles_page' ));
185
+ add_submenu_page('seopress-option', __('XML / Image / Video / HTML Sitemap','wp-seopress'), __('XML / HTML Sitemap','wp-seopress'), 'manage_options', 'seopress-xml-sitemap', array( $this, 'seopress_xml_sitemap_page' ));
186
add_submenu_page('seopress-option', __('Social Networks','wp-seopress'), __('Social Networks','wp-seopress'), 'manage_options', 'seopress-social', array( $this, 'seopress_social_page' ));
187
$seopress_google_analytics_help_tab = add_submenu_page('seopress-option', __('Google Analytics','wp-seopress'), __('Google Analytics','wp-seopress'), 'manage_options', 'seopress-google-analytics', array( $this, 'seopress_google_analytics_page' ));
188
add_submenu_page('seopress-option', __('Advanced','wp-seopress'), __('Advanced','wp-seopress'), 'manage_options', 'seopress-advanced', array( $this, 'seopress_advanced_page' ));
225
<li><span>'.__('%%currentyear%%','wp-seopress').'</span>'.__('Current year','wp-seopress').'</li>
226
<li><span>'.__('%%currentdate%%','wp-seopress').'</span>'.__('Current date','wp-seopress').'</li>
227
<li><span>'.__('%%currenttime%%','wp-seopress').'</span>'.__('Current time','wp-seopress').'</li>
228
+ <li><span>'.__('%%author_bio%%','wp-seopress').'</span>'.__('Author bio, meta desc only','wp-seopress').'</li>
229
</ul>
230
'.wp_oembed_get('https://www.youtube.com/watch?v=HEa8m9u4mOk', array('width'=>530));
231
717
</div><!-- .postbox -->
718
<?php } ?>
719
720
+ <!-- Yoast import tool -->
721
<div id="yoast-migration-tool" class="postbox">
722
<h3><span><?php _e( 'Import posts and terms metadata from Yoast', 'wp-seopress' ); ?></span></h3>
723
<div class="inside">
736
<span class="spinner"></span>
737
<div class="log"></div>
738
</div><!-- .inside -->
739
+ </div><!-- .postbox -->
740
+
741
+ <!-- All In One import tool -->
742
+ <div id="aio-migration-tool" class="postbox">
743
+ <h3><span><?php _e( 'Import posts and terms metadata from All In One SEO', 'wp-seopress' ); ?></span></h3>
744
+ <div class="inside">
745
+ <p><?php _e( 'By clicking Migrate, we\'ll import:', 'wp-seopress' ); ?></p>
746
+ <ul>
747
+ <li><?php _e('Title tags','wp-seopress'); ?></li>
748
+ <li><?php _e('Meta description','wp-seopress'); ?></li>
749
+ <li><?php _e('Facebook Open Graph tags (title, description and image thumbnail)','wp-seopress'); ?></li>
750
+ <li><?php _e('Twitter image thumbnail','wp-seopress'); ?></li>
751
+ <li><?php _e('Meta Robots (noindex, nofollow)','wp-seopress'); ?></li>
752
+ </ul>
753
+ <p style="color:red"><span class="dashicons dashicons-warning"></span> <?php _e( '<strong>WARNING:</strong> Migration will delete all SEOPress posts and terms metadata. Some dynamic variables will not be interpreted.', 'wp-seopress' ); ?></p>
754
+ <button id="seopress-aio-migrate" class="button"><?php _e('Migrate now','wp-seopress'); ?></button>
755
+ <span class="spinner"></span>
756
+ <div class="log"></div>
757
+ </div><!-- .inside -->
758
</div><!-- .postbox -->
759
760
<div class="postbox">
1228
<span id="spinner-reverse" class="spinner"></span>
1229
</div>
1230
1231
<!-- Alexa -->
1232
<div class="widget widget-alexa">
1233
<h3 class="widget-title"><span class="dashicons dashicons-chart-area"></span><?php _e('Check your Alexa Rank (Amazon index)','wp-seopress'); ?></h3>
3019
3020
add_settings_field(
3021
'seopress_advanced_appearance_genesis_seo_metaboxe', // ID
3022
+ __("Hide Genesis SEO Metabox","wp-seopress"), // Title
3023
array( $this, 'seopress_advanced_appearance_genesis_seo_metaboxe_callback' ), // Callback
3024
'seopress-settings-admin-advanced-appearance', // Page
3025
'seopress_setting_section_advanced_appearance' // Section
3036
3037
add_settings_field(
3038
'seopress_advanced_security_metaboxe_role', // ID
3039
+ __("Block SEO metabox to user roles","wp-seopress"), // Title
3040
array( $this, 'seopress_advanced_security_metaboxe_role_callback' ), // Callback
3041
'seopress-settings-admin-advanced-security', // Page
3042
'seopress_setting_section_advanced_security' // Section
3044
3045
add_settings_field(
3046
'seopress_advanced_security_metaboxe_ca_role', // ID
3047
+ __("Block Content analysis metabox to user roles","wp-seopress-pro"), // Title
3048
array( $this, 'seopress_advanced_security_metaboxe_ca_role_callback' ), // Callback
3049
'seopress-settings-admin-advanced-security', // Page
3050
'seopress_setting_section_advanced_security' // Section
3146
</pre>';
3147
}
3148
}
3149
+ echo '<p>'.__('Noindex content will not be displayed in Sitemaps.', 'wp-seopress').'</p>';
3150
+
3151
+ if (function_exists('seopress_get_locale')) {
3152
+ if (seopress_get_locale() =='fr') {
3153
+ $seopress_docs_link['sitemaps']['error']['blank'] = 'https://www.seopress.org/fr/support/guides/xml-sitemap-page-blanche/?utm_source=plugin&utm_medium=wp-admin&utm_campaign=seopress';
3154
+ $seopress_docs_link['sitemaps']['error']['404'] = 'https://www.seopress.org/fr/support/guides/plan-de-site-xml-retourne-erreur-404/?utm_source=plugin&utm_medium=wp-admin&utm_campaign=seopress';
3155
+ } else {
3156
+ $seopress_docs_link['sitemaps']['error']['blank'] = 'https://www.seopress.org/support/guides/xml-sitemap-blank-page/?utm_source=plugin&utm_medium=wp-admin&utm_campaign=seopress';
3157
+ $seopress_docs_link['sitemaps']['error']['404'] = 'https://www.seopress.org/support/guides/xml-sitemap-returns-404-error/?utm_source=plugin&utm_medium=wp-admin&utm_campaign=seopress';
3158
+ }
3159
+ }
3160
+
3161
+ echo '<p><a href="'.$seopress_docs_link['sitemaps']['error']['blank'].'" target="_blank">'.__('Blank sitemap?', 'wp-seopress').'</a> - ';
3162
+ echo '<a href="'.$seopress_docs_link['sitemaps']['error']['404'].'" target="_blank">'.__('404 error?', 'wp-seopress').'</a></p><br>';
3163
3164
echo '<a href="'.home_url().'/sitemaps.xml" target="_blank" class="button"><span class="dashicons dashicons-visibility"></span>'.__('View your sitemap','wp-seopress').'</a>';
3165
echo '&nbsp;';
3166
+ echo '<a href="https://www.google.com/ping?sitemap='.home_url().'/sitemaps.xml/" target="_blank" class="button"><span class="dashicons dashicons-share-alt2"></span>'.__('Ping Google manually','wp-seopress').'</a>';
3167
echo '&nbsp;';
3168
echo '<button id="seopress-flush-permalinks" class="button"><span class="dashicons dashicons-admin-links"></span>'.__('Flush permalinks','wp-seopress').'</button>';
3169
echo '<span class="spinner"></span>';
3529
if (!in_array($seopress_cpt_key, array('post','page'))) {
3530
3531
$check = isset($this->options['seopress_titles_archive_titles'][$seopress_cpt_key]['title']) ? $this->options['seopress_titles_archive_titles'][$seopress_cpt_key]['title'] : NULL;
3532
+ echo '<h2>'.$seopress_cpt_value->labels->name.' <em><small>['.$seopress_cpt_value->name.']</small></em> ';
3533
3534
+ if (get_post_type_archive_link($seopress_cpt_value->name)) {
3535
+ echo '<span class="link-archive"><span class="dashicons dashicons-external"></span><a href="'.get_post_type_archive_link($seopress_cpt_value->name).'" target="_blank">'.__('See archive','wp-seopress').'</a></span>';
3536
+ }
3537
+
3538
+ echo '</h2>';
3539
3540
//Archive Title CPT
3541
echo '<div class="seopress_wrap_archive_cpt">';
4417
$check = isset($this->options['seopress_social_accounts_youtube']) ? $this->options['seopress_social_accounts_youtube'] : NULL;
4418
4419
printf(
4420
+ '<input type="text" name="seopress_social_option_name[seopress_social_accounts_youtube]" placeholder="'.esc_html__('eg: https://www.youtube.com/c/SEOPress','wp-seopress').'" aria-label="'.__('YouTube URL','wp-seopress').'" value="%s"/>',
4421
esc_html( $check )
4422
4423
);
4685
'<textarea id="seopress_google_analytics_opt_out_msg" name="seopress_google_analytics_option_name[seopress_google_analytics_opt_out_msg]" rows="4" placeholder="'.esc_html__('Enter your message (HTML allowed)','wp-seopress-pro').'" aria-label="'.__('This message will only appear if request user\'s consent is enabled.','wp-seopress').'">%s</textarea>',
4686
esc_html( $check ));
4687
4688
+ if (function_exists('seopress_get_locale')) {
4689
+ if (seopress_get_locale() =='fr') {
4690
+ $seopress_docs_link['support']['analytics']['consent_msg'] = 'https://www.seopress.org/fr/support/hooks/filtrer-le-message-du-consentement-utilisateur/?utm_source=plugin&utm_medium=wp-admin&utm_campaign=seopress';
4691
+ } else {
4692
+ $seopress_docs_link['support']['analytics']['consent_msg'] = 'https://www.seopress.org/support/hooks/filter-user-consent-message/?utm_source=plugin&utm_medium=wp-admin&utm_campaign=seopress';
4693
+ }
4694
+ }
4695
+
4696
+ echo '<a class="seopress-doc" href="'.$seopress_docs_link['support']['analytics']['consent_msg'].'" target="_blank"><span class="dashicons dashicons-editor-help"></span><span class="screen-reader-text">'. __('Hook to filter user consent message - new window','wp-seopress').'</span></a></p>';
4697
+
4698
echo '<p class="description">'.__('HTML tags allowed: strong, em, br, a href','wp-seopress-pro').'</p>';
4699
}
4700
5783
if ('1' == $check) echo 'checked="yes"';
5784
echo ' value="1"/>';
5785
5786
+ echo '<label for="seopress_advanced_appearance_genesis_seo_metaboxe">'. __( 'Remove Genesis SEO Metabox', 'wp-seopress' ) .'</label>';
5787
5788
if (isset($this->options['seopress_advanced_appearance_genesis_seo_metaboxe'])) {
5789
esc_attr( $this->options['seopress_advanced_appearance_genesis_seo_metaboxe']);
5821
}
5822
}
5823
?>
5824
+ <a href="<?php echo $seopress_docs_link['support']['security']['metaboxe_seo']; ?>" target="_blank" class="seopress-doc"><span class="dashicons dashicons-editor-help"></span><span class="screen-reader-text"><?php _e('Hook to filter Structured data types metabox call by post type - new window','wp-seopress'); ?></span></a>
5825
<?php
5826
}
5827
5856
}
5857
}
5858
?>
5859
+ <a href="<?php echo $seopress_docs_link['support']['security']['metaboxe_ca']; ?>" target="_blank" class="seopress-doc"><span class="dashicons dashicons-editor-help"></span><span class="screen-reader-text"><?php _e('Hook to filter Structured data types metabox call by post type - new window','wp-seopress'); ?></span></a>
5860
<?php
5861
}
5862
}
inc/admin/ajax.php CHANGED
@@ -39,15 +39,16 @@ function seopress_do_real_preview() {
39
);
40
41
if ($seopress_origin =='post') { //Default: post type
42
- $response = wp_remote_retrieve_body(wp_remote_get(get_permalink((int)$seopress_get_the_id), $args));
43
} else { //Term taxonomy
44
- $response = wp_remote_retrieve_body(wp_remote_get(get_term_link((int)$seopress_get_the_id, $seopress_tax_name), $args));
45
}
46
47
//Check for error
48
- if ( is_wp_error( $response ) ) {
49
- return;
50
} else {
51
if($dom->loadHTML('<?xml encoding="utf-8" ?>' .$response)) {
52
//Title
53
$list = $dom->getElementsByTagName("title");
@@ -386,6 +387,7 @@ function seopress_yoast_migration() {
386
$args = array(
387
'posts_per_page' => $increment,
388
'post_type' => 'any',
389
'offset' => $offset,
390
);
391
@@ -468,3 +470,134 @@ function seopress_yoast_migration() {
468
}
469
add_action('wp_ajax_seopress_yoast_migration', 'seopress_yoast_migration');
470
39
);
40
41
if ($seopress_origin =='post') { //Default: post type
42
+ $response = wp_remote_get(get_permalink((int)$seopress_get_the_id), $args);
43
} else { //Term taxonomy
44
+ $response = wp_remote_get(get_term_link((int)$seopress_get_the_id, $seopress_tax_name), $args);
45
}
46
47
//Check for error
48
+ if ( is_wp_error( $response ) || wp_remote_retrieve_response_code($response) =='404' ) {
49
+ $data['title'] = __('To get your Google snippet preview, publish your post!');
50
} else {
51
+ $response = wp_remote_retrieve_body($response);
52
if($dom->loadHTML('<?xml encoding="utf-8" ?>' .$response)) {
53
//Title
54
$list = $dom->getElementsByTagName("title");
387
$args = array(
388
'posts_per_page' => $increment,
389
'post_type' => 'any',
390
+ 'post_status' => 'any',
391
'offset' => $offset,
392
);
393
470
}
471
add_action('wp_ajax_seopress_yoast_migration', 'seopress_yoast_migration');
472
473
+ ///////////////////////////////////////////////////////////////////////////////////////////////////
474
+ //AIO migration
475
+ ///////////////////////////////////////////////////////////////////////////////////////////////////
476
+ function seopress_aio_migration() {
477
+ check_ajax_referer( 'seopress_aio_migrate_nonce', $_POST['_ajax_nonce'], true );
478
+
479
+ if ( isset( $_POST['offset']) && isset( $_POST['offset'] )) {
480
+ $offset = absint($_POST['offset']);
481
+ }
482
+
483
+ $count_posts = wp_count_posts();
484
+ $total_count_posts = $count_posts->publish + $count_posts->future + $count_posts->draft + $count_posts->pending + $count_posts->private + $count_posts->trash + $count_posts->{'auto-draft'};
485
+
486
+ $increment = 200;
487
+ global $post;
488
+
489
+ if ($offset > $total_count_posts) {
490
+ wp_reset_query();
491
+
492
+ $args = array(
493
+ //'number' => $increment,
494
+ 'hide_empty' => false,
495
+ //'offset' => $offset,
496
+ 'fields' => 'ids',
497
+ );
498
+ $aio_query_terms = get_terms($args);
499
+
500
+ if ($aio_query_terms) {
501
+ foreach ($aio_query_terms as $term_id) {
502
+ if (get_term_meta($term_id, '_aioseop_title', true) !='') { //Import title tag
503
+ update_term_meta($term_id, '_seopress_titles_title', get_term_meta($term_id, '_aioseop_title', true));
504
+ }
505
+ if (get_term_meta($term_id, '_aioseop_description', true) !='') { //Import meta desc
506
+ update_term_meta($term_id, '_seopress_titles_desc', get_term_meta($term_id, '_aioseop_description', true));
507
+ }
508
+ if (get_term_meta($term_id, '_aioseop_opengraph_settings', true) !='') { //Import Facebook / Twitter Title
509
+ $_aioseop_opengraph_settings = get_term_meta($term_id, '_aioseop_opengraph_settings', true);
510
+ if (isset($_aioseop_opengraph_settings['aioseop_opengraph_settings_title'])) {
511
+ update_term_meta($term_id, '_seopress_social_fb_title', $_aioseop_opengraph_settings['aioseop_opengraph_settings_title']);
512
+ update_term_meta($term_id, '_seopress_social_twitter_title', $_aioseop_opengraph_settings['aioseop_opengraph_settings_title']);
513
+ }
514
+ }
515
+ if (get_term_meta($term_id, '_aioseop_opengraph_settings', true) !='') { //Import Facebook / Twitter Title
516
+ $_aioseop_opengraph_settings = get_term_meta($term_id, '_aioseop_opengraph_settings', true);
517
+ if (isset($_aioseop_opengraph_settings['aioseop_opengraph_settings_desc'])) {
518
+ update_term_meta($term_id, '_seopress_social_fb_desc', $_aioseop_opengraph_settings['aioseop_opengraph_settings_desc']);
519
+ update_term_meta($term_id, '_seopress_social_twitter_desc', $_aioseop_opengraph_settings['aioseop_opengraph_settings_desc']);
520
+ }
521
+ }
522
+ if (get_term_meta($term_id, '_aioseop_opengraph_settings', true) !='') { //Import Facebook Image
523
+ $_aioseop_opengraph_settings = get_term_meta($term_id, '_aioseop_opengraph_settings', true);
524
+ if (isset($_aioseop_opengraph_settings['aioseop_opengraph_settings_image'])) {
525
+ update_term_meta($term_id, '_seopress_social_fb_img', $_aioseop_opengraph_settings['aioseop_opengraph_settings_customimg']);
526
+ }
527
+ }
528
+ if (get_term_meta($term_id, '_aioseop_opengraph_settings', true) !='') { //Import Twitter Image
529
+ $_aioseop_opengraph_settings = get_term_meta($term_id, '_aioseop_opengraph_settings', true);
530
+ if (isset($_aioseop_opengraph_settings['aioseop_opengraph_settings_image'])) {
531
+ update_term_meta($term_id, '_seopress_social_twitter_img', $_aioseop_opengraph_settings['aioseop_opengraph_settings_customimg_twitter']);
532
+ }
533
+ }
534
+ if (get_term_meta($term_id, '_aioseop_noindex', true) =='on') { //Import Robots NoIndex
535
+ update_term_meta($term_id, '_seopress_robots_index', "yes");
536
+ }
537
+ if (get_term_meta($term_id, '_aioseop_nofollow', true) =='on') { //Import Robots NoIndex
538
+ update_term_meta($term_id, '_seopress_robots_follow', "yes");
539
+ }
540
+ }
541
+ }
542
+ $offset = 'done';
543
+ wp_reset_query();
544
+ } else {
545
+ $args = array(
546
+ 'posts_per_page' => $increment,
547
+ 'post_type' => 'any',
548
+ 'post_status' => 'any',
549
+ 'offset' => $offset,
550
+ );
551
+
552
+ $aio_query = get_posts( $args );
553
+
554
+ if ($aio_query) {
555
+ foreach ($aio_query as $post) {
556
+ if (get_post_meta($post->ID, '_aioseop_title', true) !='') { //Import title tag
557
+ update_post_meta($post->ID, '_seopress_titles_title', get_post_meta($post->ID, '_aioseop_title', true));
558
+ }
559
+ if (get_post_meta($post->ID, '_aioseop_description', true) !='') { //Import meta desc
560
+ update_post_meta($post->ID, '_seopress_titles_desc', get_post_meta($post->ID, '_aioseop_description', true));
561
+ }
562
+ if (get_post_meta($post->ID, '_aioseop_opengraph_settings', true) !='') { //Import Facebook / Twitter Title
563
+ $_aioseop_opengraph_settings = get_post_meta($post->ID, '_aioseop_opengraph_settings', true);
564
+ if (isset($_aioseop_opengraph_settings['aioseop_opengraph_settings_title'])) {
565
+ update_post_meta($post->ID, '_seopress_social_fb_title', $_aioseop_opengraph_settings['aioseop_opengraph_settings_title']);
566
+ update_post_meta($post->ID, '_seopress_social_twitter_title', $_aioseop_opengraph_settings['aioseop_opengraph_settings_title']);
567
+ }
568
+ }
569
+ if (get_post_meta($post->ID, '_aioseop_opengraph_settings', true) !='') { //Import Facebook / Twitter Desc
570
+ $_aioseop_opengraph_settings = get_post_meta($post->ID, '_aioseop_opengraph_settings', true);
571
+ if (isset($_aioseop_opengraph_settings['aioseop_opengraph_settings_desc'])) {
572
+ update_post_meta($post->ID, '_seopress_social_fb_desc', $_aioseop_opengraph_settings['aioseop_opengraph_settings_desc']);
573
+ update_post_meta($post->ID, '_seopress_social_twitter_desc', $_aioseop_opengraph_settings['aioseop_opengraph_settings_desc']);
574
+ }
575
+ }
576
+ if (get_post_meta($post->ID, '_aioseop_opengraph_settings', true) !='') { //Import Facebook Image
577
+ $_aioseop_opengraph_settings = get_post_meta($post->ID, '_aioseop_opengraph_settings', true);
578
+ if (isset($_aioseop_opengraph_settings['aioseop_opengraph_settings_image'])) {
579
+ update_post_meta($post->ID, '_seopress_social_fb_img', $_aioseop_opengraph_settings['aioseop_opengraph_settings_customimg']);
580
+ }
581
+ }
582
+ if (get_post_meta($post->ID, '_aioseop_opengraph_settings', true) !='') { //Import Twitter Image
583
+ $_aioseop_opengraph_settings = get_post_meta($post->ID, '_aioseop_opengraph_settings', true);
584
+ if (isset($_aioseop_opengraph_settings['aioseop_opengraph_settings_customimg_twitter'])) {
585
+ update_post_meta($post->ID, '_seopress_social_twitter_img', $_aioseop_opengraph_settings['aioseop_opengraph_settings_customimg_twitter']);
586
+ }
587
+ }
588
+ if (get_post_meta($post->ID, '_aioseop_noindex', true) =='on') { //Import Robots NoIndex
589
+ update_post_meta($post->ID, '_seopress_robots_index', "yes");
590
+ }
591
+ if (get_post_meta($post->ID, '_aioseop_nofollow', true) =='on') { //Import Robots NoFollow
592
+ update_post_meta($post->ID, '_seopress_robots_follow', "yes");
593
+ }
594
+ }
595
+ }
596
+ $offset += $increment;
597
+ }
598
+ $data = array();
599
+ $data['offset'] = $offset;
600
+ wp_send_json_success($data);
601
+ die();
602
+ }
603
+ add_action('wp_ajax_seopress_aio_migration', 'seopress_aio_migration');
inc/functions/options-google-analytics.php CHANGED
@@ -23,6 +23,9 @@ if (seopress_google_analytics_disable_option() =='1' && ( (empty($_COOKIE["seopr
23
} else {
24
$msg = __('By visiting our site, you agree to our privacy policy regarding cookies, tracking statistics etc ...','wp-seopress');
25
}
26
if (seopress_google_analytics_opt_out_msg_ok_option() !='') {
27
$consent_btn = seopress_google_analytics_opt_out_msg_ok_option();
28
} else {
23
} else {
24
$msg = __('By visiting our site, you agree to our privacy policy regarding cookies, tracking statistics etc ...','wp-seopress');
25
}
26
+
27
+ $msg = apply_filters('seopress_rgpd_message', $msg);
28
+
29
if (seopress_google_analytics_opt_out_msg_ok_option() !='') {
30
$consent_btn = seopress_google_analytics_opt_out_msg_ok_option();
31
} else {
inc/functions/options-redirections.php CHANGED
@@ -112,34 +112,3 @@ function seopress_redirections_attachments(){
112
}
113
}
114
add_action( 'template_redirect', 'seopress_redirections_attachments', 1 );
115
-
116
- //404 Cleaning
117
- function seopress_404_cron_daily($schedules) {
118
- $schedules['daily'] = array(
119
- 'interval' => 86400,
120
- 'display' => __( 'Once per day' )
121
- );
122
- return $schedules;
123
- }
124
- add_filter('cron_schedules','seopress_404_cron_daily');
125
-
126
- function seopress_404_cron_schedule() {
127
- if (!wp_next_scheduled('seopress_404_cron_cleaning') ) {
128
- wp_schedule_event( time(), 'daily', 'seopress_404_cron_cleaning');
129
- }
130
- }
131
- add_action('wp','seopress_404_cron_schedule');
132
-
133
- function seopress_404_cron_cleaning_action() {
134
- global $wpdb;
135
- $wpdb->query($wpdb->prepare("DELETE * FROM wp_posts as posts
136
- WHERE posts.post_type = 'seopress_404'
137
- AND posts.post_date < DATE_SUB(NOW(), INTERVAL 30 DAY)
138
- AND NOT EXISTS (
139
- SELECT * FROM `wp_postmeta`
140
- WHERE `wp_postmeta`.`meta_key` = '_seopress_redirections_type'
141
- AND `wp_postmeta`.`post_id`=posts.ID
142
- );"));
143
- }
144
- add_action( 'seopress_404_cron_cleaning', 'seopress_404_cron_cleaning_action' );
145
-
112
}
113
}
114
add_action( 'template_redirect', 'seopress_redirections_attachments', 1 );
inc/functions/options-social.php CHANGED
@@ -450,43 +450,45 @@ function seopress_social_fb_title_home_option() {
450
}
451
452
function seopress_social_fb_title_hook() {
453
- //Init
454
- $seopress_social_og_title ='';
455
-
456
- if (is_home()) {
457
- if (seopress_social_fb_title_home_option() !='') {
458
- $seopress_social_og_title .= '<meta property="og:title" content="'.seopress_social_fb_title_home_option().'" />';
459
$seopress_social_og_title .= "\n";
460
- } elseif (function_exists('seopress_titles_the_title') && seopress_titles_the_title() !='') {
461
- $seopress_social_og_title .= '<meta property="og:title" content="'.esc_attr(seopress_titles_the_title()).'" />';
462
$seopress_social_og_title .= "\n";
463
- }
464
- } elseif (is_tax() || is_category() || is_tag()) {
465
- if (seopress_social_fb_title_term_option() !='') {
466
- $seopress_social_og_title .= '<meta property="og:title" content="'.seopress_social_fb_title_term_option().'" />';
467
- $seopress_social_og_title .= "\n";
468
- } else {
469
- $seopress_social_og_title .= '<meta property="og:title" content="'.single_term_title('', false).' - '.get_bloginfo('name').'" />';
470
- $seopress_social_og_title .= "\n";
471
- }
472
- } elseif (is_singular() && seopress_social_facebook_og_option() =='1' && seopress_social_fb_title_post_option() !='') {
473
- $seopress_social_og_title .= '<meta property="og:title" content="'.seopress_social_fb_title_post_option().'" />';
474
- $seopress_social_og_title .= "\n";
475
- } elseif (seopress_social_facebook_og_option() =='1' && function_exists('seopress_titles_the_title') && seopress_titles_the_title() !='') {
476
- $seopress_social_og_title .= '<meta property="og:title" content="'.esc_attr(seopress_titles_the_title()).'" />';
477
- $seopress_social_og_title .= "\n";
478
- } elseif (seopress_social_facebook_og_option() =='1' && get_the_title() !='') {
479
- $seopress_social_og_title .= '<meta property="og:title" content="'.the_title_attribute('echo=0').'" />';
480
- $seopress_social_og_title .= "\n";
481
- }
482
-
483
- //Hook on post OG title - 'seopress_social_og_title'
484
- if (has_filter('seopress_social_og_title')) {
485
- $seopress_social_og_title = apply_filters('seopress_social_og_title', $seopress_social_og_title);
486
- }
487
- if (isset($seopress_social_og_title) && $seopress_social_og_title !='') {
488
- echo $seopress_social_og_title;
489
- }
490
}
491
add_action( 'wp_head', 'seopress_social_fb_title_hook', 1 );
492
@@ -513,48 +515,50 @@ function seopress_social_fb_desc_home_option() {
513
}
514
515
function seopress_social_fb_desc_hook() {
516
- global $post;
517
- //Init
518
- $seopress_social_og_desc ='';
519
520
- //Excerpt length
521
- $seopress_excerpt_length = 50;
522
- $seopress_excerpt_length = apply_filters('seopress_excerpt_length',$seopress_excerpt_length);
523
524
- setup_postdata( $post );
525
- if (is_home()) {
526
- if (seopress_social_fb_desc_home_option() !='') {
527
- $seopress_social_og_desc .= '<meta property="og:description" content="'.seopress_social_fb_desc_home_option().'" />';
528
$seopress_social_og_desc .= "\n";
529
- } elseif (function_exists('seopress_titles_the_description_content') && seopress_titles_the_description_content() !='') {
530
$seopress_social_og_desc .= '<meta property="og:description" content="'.seopress_titles_the_description_content().'" />';
531
$seopress_social_og_desc .= "\n";
532
- }
533
- } elseif (is_tax() || is_category() || is_tag()) {
534
- if (seopress_social_fb_desc_term_option() !='') {
535
- $seopress_social_og_desc .= '<meta property="og:description" content="'.seopress_social_fb_desc_term_option().'" />';
536
- $seopress_social_og_desc .= "\n";
537
- } elseif (term_description() !='') {
538
- $seopress_social_og_desc .= '<meta property="og:description" content="'.wp_trim_words(stripslashes_deep(wp_filter_nohtml_kses(term_description())),$seopress_excerpt_length).' - '.get_bloginfo('name').'" />';
539
$seopress_social_og_desc .= "\n";
540
- }
541
- } elseif (is_singular() && seopress_social_facebook_og_option() =='1' && seopress_social_fb_desc_post_option() !='') {
542
- $seopress_social_og_desc .= '<meta property="og:description" content="'.seopress_social_fb_desc_post_option().'" />';
543
- $seopress_social_og_desc .= "\n";
544
- } elseif (seopress_social_facebook_og_option() =='1' && function_exists('seopress_titles_the_description_content') && seopress_titles_the_description_content() !='') {
545
- $seopress_social_og_desc .= '<meta property="og:description" content="'.seopress_titles_the_description_content().'" />';
546
- $seopress_social_og_desc .= "\n";
547
- } elseif (seopress_social_facebook_og_option() =='1' && get_the_excerpt() !='') {
548
- $seopress_social_og_desc .= '<meta property="og:description" content="'.wp_trim_words(esc_attr(stripslashes_deep(wp_filter_nohtml_kses(get_the_excerpt()))), $seopress_excerpt_length).'" />';
549
- $seopress_social_og_desc .= "\n";
550
- }
551
-
552
- //Hook on post OG description - 'seopress_social_og_desc'
553
- if (has_filter('seopress_social_og_desc')) {
554
- $seopress_social_og_desc = apply_filters('seopress_social_og_desc', $seopress_social_og_desc);
555
- }
556
- if (isset($seopress_social_og_desc) && $seopress_social_og_desc !='') {
557
- echo $seopress_social_og_desc;
558
}
559
}
560
add_action( 'wp_head', 'seopress_social_fb_desc_hook', 1 );
@@ -619,38 +623,38 @@ function seopress_thumbnail_in_content() {
619
}
620
621
function seopress_social_fb_img_hook() {
622
- //Init
623
- $seopress_social_og_thumb ='';
624
625
- if (is_home()) {
626
- if (seopress_social_fb_img_home_option() !='' && 'page' == get_option( 'show_on_front' )) {
627
$seopress_social_og_thumb .= '<meta property="og:image" content="'.seopress_social_fb_img_home_option().'" />';
628
$seopress_social_og_thumb .= "\n";
629
- }
630
- } elseif (is_singular() && seopress_social_facebook_og_option() =='1' && seopress_social_fb_img_post_option() !='') {
631
- $seopress_social_og_thumb .= '<meta property="og:image" content="'.seopress_social_fb_img_post_option().'" />';
632
- $seopress_social_og_thumb .= "\n";
633
- } elseif (is_singular() && seopress_social_facebook_og_option() =='1' && has_post_thumbnail() ) {
634
- $seopress_social_og_thumb .= '<meta property="og:image" content="'.get_the_post_thumbnail_url().'" />';
635
- $seopress_social_og_thumb .= "\n";
636
- } elseif (is_singular() && seopress_social_facebook_og_option() =='1' && seopress_thumbnail_in_content() !='' ) {
637
- $seopress_social_og_thumb .= '<meta property="og:image" content="'.seopress_thumbnail_in_content().'" />';
638
- $seopress_social_og_thumb .= "\n";
639
- } elseif ((is_tax() || is_category() || is_tag()) && seopress_social_fb_img_term_option() !='') {
640
- $seopress_social_og_thumb .= '<meta property="og:image" content="'.seopress_social_fb_img_term_option().'" />';
641
- $seopress_social_og_thumb .= "\n";
642
- } elseif (seopress_social_facebook_og_option() =='1' && seopress_social_facebook_img_option() !='') {
643
- $seopress_social_og_thumb .= '<meta property="og:image" content="'.seopress_social_facebook_img_option().'" />';
644
- $seopress_social_og_thumb .= "\n";
645
- }
646
-
647
- //Hook on post OG thumbnail - 'seopress_social_og_thumb'
648
- if (has_filter('seopress_social_og_thumb')) {
649
- $seopress_social_og_thumb = apply_filters('seopress_social_og_thumb', $seopress_social_og_thumb);
650
- }
651
- if (isset($seopress_social_og_thumb) && $seopress_social_og_thumb !='') {
652
- echo $seopress_social_og_thumb;
653
- }
654
}
655
add_action( 'wp_head', 'seopress_social_fb_img_hook', 1 );
656
@@ -832,58 +836,47 @@ function seopress_social_twitter_title_home_option() {
832
}
833
834
function seopress_social_twitter_title_hook() {
835
- //Init
836
- $seopress_social_twitter_card_title ='';
837
838
- if (seopress_social_twitter_card_og_option() =='1') {
839
- if (is_home()) {
840
- if (seopress_social_fb_title_home_option() !='') {
841
- $seopress_social_twitter_card_title .= '<meta name="twitter:title" content="'.seopress_social_fb_title_home_option().'" />';
842
- } elseif (function_exists('seopress_titles_the_title') && seopress_titles_the_title() !='') {
843
- $seopress_social_twitter_card_title .= '<meta name="twitter:title" content="'.esc_attr(seopress_titles_the_title()).'" />';
844
- }
845
- } elseif (is_tax() || is_category() || is_tag()) {
846
- if (seopress_social_fb_title_term_option() !='') {
847
- $seopress_social_twitter_card_title .= '<meta name="twitter:title" content="'.seopress_social_fb_title_term_option().'" />';
848
- } else {
849
- $seopress_social_twitter_card_title .= '<meta name="twitter:title" content="'.single_term_title('', false).' - '.get_bloginfo('name').'" />';
850
- }
851
- } elseif (is_singular() && seopress_social_facebook_og_option() =='1' && seopress_social_fb_title_post_option() !='') {
852
- $seopress_social_twitter_card_title .= '<meta name="twitter:title" content="'.seopress_social_fb_title_post_option().'" />';
853
- } elseif (seopress_social_facebook_og_option() =='1' && function_exists('seopress_titles_the_title') && seopress_titles_the_title() !='') {
854
- $seopress_social_twitter_card_title .= '<meta name="twitter:title" content="'.esc_attr(seopress_titles_the_title()).'" />';
855
- } elseif (seopress_social_facebook_og_option() =='1' && get_the_title() !='') {
856
- $seopress_social_twitter_card_title .= '<meta name="twitter:title" content="'.the_title_attribute('echo=0').'" />';
857
- }
858
- } else {
859
- if (is_home()) {
860
if (seopress_social_twitter_title_home_option() !='') {
861
$seopress_social_twitter_card_title .= '<meta name="twitter:title" content="'.seopress_social_twitter_title_home_option().'" />';
862
} elseif (function_exists('seopress_titles_the_title') && seopress_titles_the_title() !='') {
863
$seopress_social_twitter_card_title .= '<meta name="twitter:title" content="'.esc_attr(seopress_titles_the_title()).'" />';
864
}
865
- } elseif (is_tax() || is_category() || is_tag()) {
866
if (seopress_social_twitter_title_term_option() !='') {
867
$seopress_social_twitter_card_title .= '<meta name="twitter:title" content="'.seopress_social_twitter_title_term_option().'" />';
868
} else {
869
$seopress_social_twitter_card_title .= '<meta name="twitter:title" content="'.single_term_title('', false).' - '.get_bloginfo('name').'" />';
870
}
871
- } elseif (is_singular() && seopress_social_twitter_card_option() =='1' && seopress_social_twitter_title_post_option() !='') {
872
$seopress_social_twitter_card_title .= '<meta name="twitter:title" content="'.seopress_social_twitter_title_post_option().'" />';
873
- } elseif (seopress_social_twitter_card_option() =='1' && function_exists('seopress_titles_the_title') && seopress_titles_the_title() !='') {
874
$seopress_social_twitter_card_title .= '<meta name="twitter:title" content="'.esc_attr(seopress_titles_the_title()).'" />';
875
- } elseif (seopress_social_twitter_card_option() =='1' && get_the_title() !='') {
876
$seopress_social_twitter_card_title .= '<meta name="twitter:title" content="'.the_title_attribute('echo=0').'" />';
877
}
878
- }
879
880
- //Hook on post Twitter card title - 'seopress_social_twitter_card_title'
881
- if (has_filter('seopress_social_twitter_card_title')) {
882
- $seopress_social_twitter_card_title = apply_filters('seopress_social_twitter_card_title', $seopress_social_twitter_card_title);
883
- }
884
- if (isset($seopress_social_twitter_card_title) && $seopress_social_twitter_card_title !='') {
885
- echo $seopress_social_twitter_card_title."\n";
886
- }
887
}
888
add_action( 'wp_head', 'seopress_social_twitter_title_hook', 1 );
889
@@ -910,65 +903,54 @@ function seopress_social_twitter_desc_home_option() {
910
}
911
912
function seopress_social_twitter_desc_hook() {
913
- global $post;
914
- setup_postdata( $post );
915
- //Init
916
- $seopress_social_twitter_card_desc ='';
917
918
- //Excerpt length
919
- $seopress_excerpt_length = 50;
920
- $seopress_excerpt_length = apply_filters('seopress_excerpt_length',$seopress_excerpt_length);
921
922
- if (seopress_social_twitter_card_og_option() =='1') {
923
- if (is_home()) {
924
- if (seopress_social_fb_desc_home_option() !='') {
925
- $seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_social_fb_desc_home_option().'" />';
926
- } elseif (function_exists('seopress_titles_the_description_content') && seopress_titles_the_description_content() !='') {
927
- $seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_titles_the_description_content().'" />';
928
- }
929
- } elseif (is_tax() || is_category() || is_tag()) {
930
- if (seopress_social_fb_desc_term_option() !='') {
931
- $seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_social_fb_desc_term_option().'" />';
932
- } elseif (term_description() !='') {
933
- $seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.wp_trim_words(stripslashes_deep(wp_filter_nohtml_kses(term_description())),$seopress_excerpt_length).' - '.get_bloginfo('name').'" />';
934
- }
935
- } elseif (is_singular() && seopress_social_facebook_og_option() =='1' && seopress_social_fb_desc_post_option() !='') {
936
- $seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_social_fb_desc_post_option().'" />';
937
- } elseif (seopress_social_facebook_og_option() =='1' && function_exists('seopress_titles_the_description_content') && seopress_titles_the_description_content() !='') {
938
- $seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_titles_the_description_content().'" />';
939
- } elseif (seopress_social_facebook_og_option() =='1' && get_the_excerpt() !='') {
940
- setup_postdata( $post );
941
- $seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.wp_trim_words(esc_attr(stripslashes_deep(wp_filter_nohtml_kses(get_the_excerpt()))), $seopress_excerpt_length).'" />';
942
- }
943
- } else {
944
- if (is_home()) {
945
if (seopress_social_twitter_desc_home_option() !='') {
946
$seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_social_twitter_desc_home_option().'" />';
947
- } elseif (function_exists('seopress_titles_the_description_content') && seopress_titles_the_description_content() !='') {
948
$seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_titles_the_description_content().'" />';
949
}
950
- } elseif (is_tax() || is_category() || is_tag()) {
951
if (seopress_social_twitter_desc_term_option() !='') {
952
$seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_social_twitter_desc_term_option().'" />';
953
- } elseif (term_description() !='') {
954
$seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.wp_trim_words(stripslashes_deep(wp_filter_nohtml_kses(term_description())),$seopress_excerpt_length).' - '.get_bloginfo('name').'" />';
955
}
956
- } elseif (is_singular() && seopress_social_twitter_card_option() =='1' && seopress_social_twitter_desc_post_option() !='') {
957
$seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_social_twitter_desc_post_option().'" />';
958
- } elseif (seopress_social_twitter_card_option() =='1' && function_exists('seopress_titles_the_description_content') && seopress_titles_the_description_content() !='') {
959
$seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_titles_the_description_content().'" />';
960
- } elseif (seopress_social_twitter_card_option() =='1' && get_the_excerpt() !='') {
961
setup_postdata( $post );
962
$seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.wp_trim_words(esc_attr(stripslashes_deep(wp_filter_nohtml_kses(get_the_excerpt()))), $seopress_excerpt_length).'" />';
963
}
964
}
965
- //Hook on post Twitter card description - 'seopress_social_twitter_card_desc'
966
- if (has_filter('seopress_social_twitter_card_desc')) {
967
- $seopress_social_twitter_card_desc = apply_filters('seopress_social_twitter_card_desc', $seopress_social_twitter_card_desc);
968
- }
969
- if (isset($seopress_social_twitter_card_desc) && $seopress_social_twitter_card_desc !='') {
970
- echo $seopress_social_twitter_card_desc."\n";
971
- }
972
}
973
add_action( 'wp_head', 'seopress_social_twitter_desc_hook', 1 );
974
@@ -1023,87 +1005,67 @@ function seopress_social_twitter_img_hook() {
1023
//Init
1024
$seopress_social_twitter_card_thumb ='';
1025
1026
- if (seopress_social_twitter_card_og_option() =='1') {
1027
- if (is_home()) {
1028
- if (seopress_social_fb_img_home_option() !='' && 'page' == get_option( 'show_on_front' )) {
1029
- if (seopress_social_twitter_img_size_option() =='large') {
1030
- $seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="'.seopress_social_fb_img_home_option().'" />';
1031
- } else {
1032
- $seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="'.seopress_social_fb_img_home_option().'" />';
1033
- }
1034
- }
1035
- } elseif (seopress_social_fb_img_post_option() !='' && is_singular()) {
1036
- if (seopress_social_twitter_img_size_option() =='large') {
1037
- $seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="'.seopress_social_fb_img_post_option().'" />';
1038
- } else {
1039
- $seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="'.seopress_social_fb_img_post_option().'" />';
1040
- }
1041
- } elseif (has_post_thumbnail() && is_singular()) {
1042
- if (seopress_social_twitter_img_size_option() =='large') {
1043
- $seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="'.get_the_post_thumbnail_url().'" />';
1044
- } else {
1045
- $seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="'.get_the_post_thumbnail_url().'" />';
1046
- }
1047
- } elseif (seopress_thumbnail_in_content() !='' && is_singular()) {
1048
- if (seopress_social_twitter_img_size_option() =='large') {
1049
- $seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="'.seopress_thumbnail_in_content().'" />';
1050
- } else {
1051
- $seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="'.seopress_thumbnail_in_content().'" />';
1052
- }
1053
- } elseif ((is_tax() || is_category() || is_tag()) && seopress_social_fb_img_term_option() !='') {
1054
- if (seopress_social_twitter_img_size_option() =='large') {
1055
- $seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="'.seopress_social_fb_img_term_option().'" />';
1056
- } else {
1057
- $seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="'.seopress_social_fb_img_term_option().'" />';
1058
- }
1059
- } elseif (seopress_social_facebook_img_option() !='') {
1060
- if (seopress_social_twitter_img_size_option() =='large') {
1061
- $seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="'.seopress_social_facebook_img_option().'" />';
1062
- } else {
1063
- $seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="'.seopress_social_facebook_img_option().'" />';
1064
- }
1065
}
1066
- } else {
1067
- if (is_home()) {
1068
- if (seopress_social_twitter_img_home_option() !='' && 'page' == get_option( 'show_on_front' )) {
1069
- if (seopress_social_twitter_img_size_option() =='large') {
1070
- $seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="'.seopress_social_twitter_img_home_option().'" />';
1071
- } else {
1072
- $seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="'.seopress_social_twitter_img_home_option().'" />';
1073
- }
1074
- }
1075
- } elseif (seopress_social_twitter_img_post_option() !='' && is_singular()) {
1076
- if (seopress_social_twitter_img_size_option() =='large') {
1077
- $seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="'.seopress_social_twitter_img_post_option().'" />';
1078
- } else {
1079
- $seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="'.seopress_social_twitter_img_post_option().'" />';
1080
- }
1081
- } elseif (has_post_thumbnail() && is_singular()) {
1082
- if (seopress_social_twitter_img_size_option() =='large') {
1083
- $seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="'.get_the_post_thumbnail_url().'" />';
1084
- } else {
1085
- $seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="'.get_the_post_thumbnail_url().'" />';
1086
- }
1087
- } elseif (seopress_thumbnail_in_content() !='' && is_singular()) {
1088
- if (seopress_social_twitter_img_size_option() =='large') {
1089
- $seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="'.seopress_thumbnail_in_content().'" />';
1090
- } else {
1091
- $seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="'.seopress_thumbnail_in_content().'" />';
1092
- }
1093
- } elseif ((is_tax() || is_category() || is_tag()) && seopress_social_twitter_img_term_option() !='') {
1094
- if (seopress_social_twitter_img_size_option() =='large') {
1095
- $seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="'.seopress_social_twitter_img_term_option().'" />';
1096
- } else {
1097
- $seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="'.seopress_social_twitter_img_term_option().'" />';
1098
- }
1099
- } elseif (seopress_social_twitter_img_option() !='') {
1100
- if (seopress_social_twitter_img_size_option() =='large') {
1101
- $seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="'.seopress_social_twitter_img_option().'" />';
1102
- } else {
1103
- $seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="'.seopress_social_twitter_img_option().'" />';
1104
- }
1105
}
1106
- }
1107
//Hook on post Twitter card thumbnail - 'seopress_social_twitter_card_thumb'
1108
if (has_filter('seopress_social_twitter_card_thumb')) {
1109
$seopress_social_twitter_card_thumb = apply_filters('seopress_social_twitter_card_thumb', $seopress_social_twitter_card_thumb);
450
}
451
452
function seopress_social_fb_title_hook() {
453
+ if (seopress_social_facebook_og_option() =='1') {
454
+ //Init
455
+ $seopress_social_og_title ='';
456
+
457
+ if (is_home()) {
458
+ if (seopress_social_fb_title_home_option() !='') {
459
+ $seopress_social_og_title .= '<meta property="og:title" content="'.seopress_social_fb_title_home_option().'" />';
460
+ $seopress_social_og_title .= "\n";
461
+ } elseif (function_exists('seopress_titles_the_title') && seopress_titles_the_title() !='') {
462
+ $seopress_social_og_title .= '<meta property="og:title" content="'.esc_attr(seopress_titles_the_title()).'" />';
463
+ $seopress_social_og_title .= "\n";
464
+ }
465
+ } elseif (is_tax() || is_category() || is_tag()) {
466
+ if (seopress_social_fb_title_term_option() !='') {
467
+ $seopress_social_og_title .= '<meta property="og:title" content="'.seopress_social_fb_title_term_option().'" />';
468
+ $seopress_social_og_title .= "\n";
469
+ } else {
470
+ $seopress_social_og_title .= '<meta property="og:title" content="'.single_term_title('', false).' - '.get_bloginfo('name').'" />';
471
+ $seopress_social_og_title .= "\n";
472
+ }
473
+ } elseif (is_singular() && seopress_social_facebook_og_option() =='1' && seopress_social_fb_title_post_option() !='') {
474
+ $seopress_social_og_title .= '<meta property="og:title" content="'.seopress_social_fb_title_post_option().'" />';
475
$seopress_social_og_title .= "\n";
476
+ } elseif (seopress_social_facebook_og_option() =='1' && function_exists('seopress_titles_the_title') && seopress_titles_the_title() !='') {
477
+ $seopress_social_og_title .= '<meta property="og:title" content="'.esc_attr(seopress_titles_the_title()).'" />';
478
+ $seopress_social_og_title .= "\n";
479
+ } elseif (seopress_social_facebook_og_option() =='1' && get_the_title() !='') {
480
+ $seopress_social_og_title .= '<meta property="og:title" content="'.the_title_attribute('echo=0').'" />';
481
$seopress_social_og_title .= "\n";
482
+ }
483
+
484
+ //Hook on post OG title - 'seopress_social_og_title'
485
+ if (has_filter('seopress_social_og_title')) {
486
+ $seopress_social_og_title = apply_filters('seopress_social_og_title', $seopress_social_og_title);
487
+ }
488
+ if (isset($seopress_social_og_title) && $seopress_social_og_title !='') {
489
+ echo $seopress_social_og_title;
490
+ }
491
+ }
492
}
493
add_action( 'wp_head', 'seopress_social_fb_title_hook', 1 );
494
515
}
516
517
function seopress_social_fb_desc_hook() {
518
+ if (seopress_social_facebook_og_option() =='1') {
519
+ global $post;
520
+ //Init
521
+ $seopress_social_og_desc ='';
522
523
+ //Excerpt length
524
+ $seopress_excerpt_length = 50;
525
+ $seopress_excerpt_length = apply_filters('seopress_excerpt_length',$seopress_excerpt_length);
526
527
+ setup_postdata( $post );
528
+ if (is_home()) {
529
+ if (seopress_social_fb_desc_home_option() !='') {
530
+ $seopress_social_og_desc .= '<meta property="og:description" content="'.seopress_social_fb_desc_home_option().'" />';
531
+ $seopress_social_og_desc .= "\n";
532
+ } elseif (function_exists('seopress_titles_the_description_content') && seopress_titles_the_description_content() !='') {
533
+ $seopress_social_og_desc .= '<meta property="og:description" content="'.seopress_titles_the_description_content().'" />';
534
+ $seopress_social_og_desc .= "\n";
535
+ }
536
+ } elseif (is_tax() || is_category() || is_tag()) {
537
+ if (seopress_social_fb_desc_term_option() !='') {
538
+ $seopress_social_og_desc .= '<meta property="og:description" content="'.seopress_social_fb_desc_term_option().'" />';
539
+ $seopress_social_og_desc .= "\n";
540
+ } elseif (term_description() !='') {
541
+ $seopress_social_og_desc .= '<meta property="og:description" content="'.wp_trim_words(stripslashes_deep(wp_filter_nohtml_kses(term_description())),$seopress_excerpt_length).' - '.get_bloginfo('name').'" />';
542
+ $seopress_social_og_desc .= "\n";
543
+ }
544
+ } elseif (is_singular() && seopress_social_facebook_og_option() =='1' && seopress_social_fb_desc_post_option() !='') {
545
+ $seopress_social_og_desc .= '<meta property="og:description" content="'.seopress_social_fb_desc_post_option().'" />';
546
$seopress_social_og_desc .= "\n";
547
+ } elseif (seopress_social_facebook_og_option() =='1' && function_exists('seopress_titles_the_description_content') && seopress_titles_the_description_content() !='') {
548
$seopress_social_og_desc .= '<meta property="og:description" content="'.seopress_titles_the_description_content().'" />';
549
$seopress_social_og_desc .= "\n";
550
+ } elseif (seopress_social_facebook_og_option() =='1' && get_the_excerpt() !='') {
551
+ $seopress_social_og_desc .= '<meta property="og:description" content="'.wp_trim_words(esc_attr(stripslashes_deep(wp_filter_nohtml_kses(get_the_excerpt()))), $seopress_excerpt_length).'" />';
552
$seopress_social_og_desc .= "\n";
553
+ }
554
+
555
+ //Hook on post OG description - 'seopress_social_og_desc'
556
+ if (has_filter('seopress_social_og_desc')) {
557
+ $seopress_social_og_desc = apply_filters('seopress_social_og_desc', $seopress_social_og_desc);
558
+ }
559
+ if (isset($seopress_social_og_desc) && $seopress_social_og_desc !='') {
560
+ echo $seopress_social_og_desc;
561
+ }
562
}
563
}
564
add_action( 'wp_head', 'seopress_social_fb_desc_hook', 1 );
623
}
624
625
function seopress_social_fb_img_hook() {
626
+ if (seopress_social_facebook_og_option() =='1') {
627
+ //Init
628
+ $seopress_social_og_thumb ='';
629
630
+ if (is_home() && seopress_social_fb_img_home_option() !='' && 'page' == get_option( 'show_on_front' )) {
631
$seopress_social_og_thumb .= '<meta property="og:image" content="'.seopress_social_fb_img_home_option().'" />';
632
$seopress_social_og_thumb .= "\n";
633
+ } elseif (is_singular() && seopress_social_facebook_og_option() =='1' && seopress_social_fb_img_post_option() !='') {
634
+ $seopress_social_og_thumb .= '<meta property="og:image" content="'.seopress_social_fb_img_post_option().'" />';
635
+ $seopress_social_og_thumb .= "\n";
636
+ } elseif (is_singular() && seopress_social_facebook_og_option() =='1' && has_post_thumbnail() ) {
637
+ $seopress_social_og_thumb .= '<meta property="og:image" content="'.get_the_post_thumbnail_url().'" />';
638
+ $seopress_social_og_thumb .= "\n";
639
+ } elseif (is_singular() && seopress_social_facebook_og_option() =='1' && seopress_thumbnail_in_content() !='' ) {
640
+ $seopress_social_og_thumb .= '<meta property="og:image" content="'.seopress_thumbnail_in_content().'" />';
641
+ $seopress_social_og_thumb .= "\n";
642
+ } elseif ((is_tax() || is_category() || is_tag()) && seopress_social_fb_img_term_option() !='') {
643
+ $seopress_social_og_thumb .= '<meta property="og:image" content="'.seopress_social_fb_img_term_option().'" />';
644
+ $seopress_social_og_thumb .= "\n";
645
+ } elseif (seopress_social_facebook_og_option() =='1' && seopress_social_facebook_img_option() !='') {
646
+ $seopress_social_og_thumb .= '<meta property="og:image" content="'.seopress_social_facebook_img_option().'" />';
647
+ $seopress_social_og_thumb .= "\n";
648
+ }
649
+
650
+ //Hook on post OG thumbnail - 'seopress_social_og_thumb'
651
+ if (has_filter('seopress_social_og_thumb')) {
652
+ $seopress_social_og_thumb = apply_filters('seopress_social_og_thumb', $seopress_social_og_thumb);
653
+ }
654
+ if (isset($seopress_social_og_thumb) && $seopress_social_og_thumb !='') {
655
+ echo $seopress_social_og_thumb;
656
+ }
657
+ }
658
}
659
add_action( 'wp_head', 'seopress_social_fb_img_hook', 1 );
660
836
}
837
838
function seopress_social_twitter_title_hook() {
839
+ //If Twitter cards enable
840
+ if (seopress_social_twitter_card_option() =='1') {
841
+ //Init
842
+ $seopress_social_twitter_card_title ='';
843
844
+ if (is_home()) {//Home
845
if (seopress_social_twitter_title_home_option() !='') {
846
$seopress_social_twitter_card_title .= '<meta name="twitter:title" content="'.seopress_social_twitter_title_home_option().'" />';
847
+ } elseif (seopress_social_twitter_card_og_option() =='1' && seopress_social_fb_title_home_option() !='') {
848
+ $seopress_social_twitter_card_title .= '<meta name="twitter:title" content="'.seopress_social_fb_title_home_option().'" />';
849
} elseif (function_exists('seopress_titles_the_title') && seopress_titles_the_title() !='') {
850
$seopress_social_twitter_card_title .= '<meta name="twitter:title" content="'.esc_attr(seopress_titles_the_title()).'" />';
851
}
852
+ } elseif (is_tax() || is_category() || is_tag()) {//Term archive
853
if (seopress_social_twitter_title_term_option() !='') {
854
$seopress_social_twitter_card_title .= '<meta name="twitter:title" content="'.seopress_social_twitter_title_term_option().'" />';
855
+ } elseif (seopress_social_twitter_card_og_option() =='1' && seopress_social_fb_title_term_option() !='') {
856
+ $seopress_social_twitter_card_title .= '<meta name="twitter:title" content="'.seopress_social_fb_title_term_option().'" />';
857
} else {
858
$seopress_social_twitter_card_title .= '<meta name="twitter:title" content="'.single_term_title('', false).' - '.get_bloginfo('name').'" />';
859
}
860
+ } elseif (is_singular() && seopress_social_twitter_title_post_option() !='') {//Single
861
$seopress_social_twitter_card_title .= '<meta name="twitter:title" content="'.seopress_social_twitter_title_post_option().'" />';
862
+ } elseif (is_singular() && seopress_social_twitter_card_og_option() =='1' && seopress_social_facebook_og_option() =='1' && seopress_social_fb_title_post_option() !='') {
863
+ $seopress_social_twitter_card_title .= '<meta name="twitter:title" content="'.seopress_social_fb_title_post_option().'" />';
864
+ } elseif (function_exists('seopress_titles_the_title') && seopress_titles_the_title() !='') {
865
+ $seopress_social_twitter_card_title .= '<meta name="twitter:title" content="'.esc_attr(seopress_titles_the_title()).'" />';
866
+ } elseif (seopress_social_facebook_og_option() =='1' && seopress_social_twitter_card_og_option() =='1' && function_exists('seopress_titles_the_title') && seopress_titles_the_title() !='') {
867
$seopress_social_twitter_card_title .= '<meta name="twitter:title" content="'.esc_attr(seopress_titles_the_title()).'" />';
868
+ } elseif (get_the_title() !='') {
869
$seopress_social_twitter_card_title .= '<meta name="twitter:title" content="'.the_title_attribute('echo=0').'" />';
870
}
871
872
+ //Hook on post Twitter card title - 'seopress_social_twitter_card_title'
873
+ if (has_filter('seopress_social_twitter_card_title')) {
874
+ $seopress_social_twitter_card_title = apply_filters('seopress_social_twitter_card_title', $seopress_social_twitter_card_title);
875
+ }
876
+ if (isset($seopress_social_twitter_card_title) && $seopress_social_twitter_card_title !='') {
877
+ echo $seopress_social_twitter_card_title."\n";
878
+ }
879
+ }
880
}
881
add_action( 'wp_head', 'seopress_social_twitter_title_hook', 1 );
882
903
}
904
905
function seopress_social_twitter_desc_hook() {
906
+ //If Twitter cards enable
907
+ if (seopress_social_twitter_card_option() =='1') {
908
+ global $post;
909
+ setup_postdata( $post );
910
+ //Init
911
+ $seopress_social_twitter_card_desc ='';
912
913
+ //Excerpt length
914
+ $seopress_excerpt_length = 50;
915
+ $seopress_excerpt_length = apply_filters('seopress_excerpt_length',$seopress_excerpt_length);
916
917
+ if (is_home()) {//Home
918
if (seopress_social_twitter_desc_home_option() !='') {
919
$seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_social_twitter_desc_home_option().'" />';
920
+ } elseif (seopress_social_fb_desc_home_option() !='' && seopress_social_twitter_card_og_option() =='1') {
921
+ $seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_social_fb_desc_home_option().'" />';
922
+ } elseif (function_exists('seopress_titles_the_description_content') && seopress_titles_the_description_content() !='') {
923
$seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_titles_the_description_content().'" />';
924
}
925
+ } elseif (is_tax() || is_category() || is_tag()) {//Term archive
926
if (seopress_social_twitter_desc_term_option() !='') {
927
$seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_social_twitter_desc_term_option().'" />';
928
+ } elseif (seopress_social_fb_desc_term_option() !='' && seopress_social_twitter_card_og_option() =='1') {
929
+ $seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_social_fb_desc_term_option().'" />';
930
+ } elseif (term_description() !='') {
931
$seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.wp_trim_words(stripslashes_deep(wp_filter_nohtml_kses(term_description())),$seopress_excerpt_length).' - '.get_bloginfo('name').'" />';
932
}
933
+ } elseif (is_singular() && seopress_social_twitter_desc_post_option() !='') {//Single
934
$seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_social_twitter_desc_post_option().'" />';
935
+ } elseif (is_singular() && seopress_social_facebook_og_option() =='1' && seopress_social_fb_desc_post_option() !='' && seopress_social_twitter_card_og_option() =='1') {
936
+ $seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_social_fb_desc_post_option().'" />';
937
+ } elseif (function_exists('seopress_titles_the_description_content') && seopress_titles_the_description_content() !='') {
938
$seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_titles_the_description_content().'" />';
939
+ } elseif (seopress_social_facebook_og_option() =='1' && function_exists('seopress_titles_the_description_content') && seopress_titles_the_description_content() !='' && seopress_social_twitter_card_og_option() =='1') {
940
+ $seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.seopress_titles_the_description_content().'" />';
941
+ } elseif (get_the_excerpt() !='') {
942
setup_postdata( $post );
943
$seopress_social_twitter_card_desc .= '<meta name="twitter:description" content="'.wp_trim_words(esc_attr(stripslashes_deep(wp_filter_nohtml_kses(get_the_excerpt()))), $seopress_excerpt_length).'" />';
944
}
945
+
946
+ //Hook on post Twitter card description - 'seopress_social_twitter_card_desc'
947
+ if (has_filter('seopress_social_twitter_card_desc')) {
948
+ $seopress_social_twitter_card_desc = apply_filters('seopress_social_twitter_card_desc', $seopress_social_twitter_card_desc);
949
+ }
950
+ if (isset($seopress_social_twitter_card_desc) && $seopress_social_twitter_card_desc !='') {
951
+ echo $seopress_social_twitter_card_desc."\n";
952
+ }
953
}
954
}
955
add_action( 'wp_head', 'seopress_social_twitter_desc_hook', 1 );
956
1005
//Init
1006
$seopress_social_twitter_card_thumb ='';
1007
1008
+ if (is_home() && seopress_social_twitter_img_home_option() !='' && 'page' == get_option( 'show_on_front' )) {
1009
+ if (seopress_social_twitter_img_size_option() =='large') {
1010
+ $seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="'.seopress_social_twitter_img_home_option().'" />';
1011
+ } else {
1012
+ $seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="'.seopress_social_twitter_img_home_option().'" />';
1013
}
1014
+ } elseif (is_home() && seopress_social_fb_img_home_option() !='' && 'page' == get_option( 'show_on_front' ) && seopress_social_twitter_card_og_option() =='1') {
1015
+ if (seopress_social_twitter_img_size_option() =='large') {
1016
+ $seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="'.seopress_social_fb_img_home_option().'" />';
1017
+ } else {
1018
+ $seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="'.seopress_social_fb_img_home_option().'" />';
1019
}
1020
+ } elseif (seopress_social_twitter_img_post_option() !='' && is_singular()) {//Single
1021
+ if (seopress_social_twitter_img_size_option() =='large') {
1022
+ $seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="'.seopress_social_twitter_img_post_option().'" />';
1023
+ } else {
1024
+ $seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="'.seopress_social_twitter_img_post_option().'" />';
1025
+ }
1026
+ } elseif (seopress_social_fb_img_post_option() !='' && is_singular() && seopress_social_twitter_card_og_option() =='1') {
1027
+ if (seopress_social_twitter_img_size_option() =='large') {
1028
+ $seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="'.seopress_social_fb_img_post_option().'" />';
1029
+ } else {
1030
+ $seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="'.seopress_social_fb_img_post_option().'" />';
1031
+ }
1032
+ } elseif (has_post_thumbnail() && is_singular()) {
1033
+ if (seopress_social_twitter_img_size_option() =='large') {
1034
+ $seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="'.get_the_post_thumbnail_url().'" />';
1035
+ } else {
1036
+ $seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="'.get_the_post_thumbnail_url().'" />';
1037
+ }
1038
+ } elseif (seopress_thumbnail_in_content() !='' && is_singular()) {
1039
+ if (seopress_social_twitter_img_size_option() =='large') {
1040
+ $seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="'.seopress_thumbnail_in_content().'" />';
1041
+ } else {
1042
+ $seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="'.seopress_thumbnail_in_content().'" />';
1043
+ }
1044
+ } elseif ((is_tax() || is_category() || is_tag()) && seopress_social_twitter_img_term_option() !='') {//Term archive
1045
+ if (seopress_social_twitter_img_size_option() =='large') {
1046
+ $seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="'.seopress_social_twitter_img_term_option().'" />';
1047
+ } else {
1048
+ $seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="'.seopress_social_twitter_img_term_option().'" />';
1049
+ }
1050
+ } elseif ((is_tax() || is_category() || is_tag()) && seopress_social_fb_img_term_option() !='' && seopress_social_twitter_card_og_option() =='1') {
1051
+ if (seopress_social_twitter_img_size_option() =='large') {
1052
+ $seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="'.seopress_social_fb_img_term_option().'" />';
1053
+ } else {
1054
+ $seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="'.seopress_social_fb_img_term_option().'" />';
1055
+ }
1056
+ } elseif (seopress_social_twitter_img_option() !='') {//Default Twitter
1057
+ if (seopress_social_twitter_img_size_option() =='large') {
1058
+ $seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="'.seopress_social_twitter_img_option().'" />';
1059
+ } else {
1060
+ $seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="'.seopress_social_twitter_img_option().'" />';
1061
+ }
1062
+ } elseif (seopress_social_facebook_img_option() !='' && seopress_social_twitter_card_og_option() =='1') {//Default Facebook
1063
+ if (seopress_social_twitter_img_size_option() =='large') {
1064
+ $seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="'.seopress_social_facebook_img_option().'" />';
1065
+ } else {
1066
+ $seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="'.seopress_social_facebook_img_option().'" />';
1067
+ }
1068
+ }
1069
//Hook on post Twitter card thumbnail - 'seopress_social_twitter_card_thumb'
1070
if (has_filter('seopress_social_twitter_card_thumb')) {
1071
$seopress_social_twitter_card_thumb = apply_filters('seopress_social_twitter_card_thumb', $seopress_social_twitter_card_thumb);
inc/functions/options-titles-metas.php CHANGED
@@ -281,9 +281,8 @@ function seopress_titles_the_title() {
281
$get_search_query ='';
282
if (get_search_query() !='') {
283
$get_search_query = '"'.get_search_query().'"';
284
- } else {
285
- $get_search_query = esc_attr('" "');
286
}
287
$get_search_query = apply_filters('seopress_get_search_query', $get_search_query);
288
289
if ($seopress_excerpt !='') {
@@ -395,7 +394,6 @@ function seopress_titles_the_title() {
395
$woo_single_cat_html,
396
$woo_single_tag_html,
397
$seopress_get_the_excerpt,
398
- date_i18n('F Y'),
399
date_i18n('j'),
400
date_i18n('F'),
401
date('Y'),
@@ -422,6 +420,10 @@ function seopress_titles_the_title() {
422
$seopress_titles_title_template = str_replace($seopress_titles_template_variables_array, $seopress_titles_template_replace_array, $seopress_titles_the_title);
423
}
424
} elseif ( is_home() && (get_option( 'show_on_front' ) =='posts')) { //YOUR LATEST POSTS
425
if (seopress_titles_home_site_title_option() !='') {
426
$seopress_titles_the_title = esc_attr(seopress_titles_home_site_title_option());
427
@@ -666,6 +668,11 @@ function seopress_titles_the_description_content() {
666
}
667
}
668
669
$seopress_titles_template_variables_array = array(
670
'%%sitetitle%%',
671
'%%tagline%%',
@@ -697,6 +704,7 @@ function seopress_titles_the_description_content() {
697
'%%currentyear%%',
698
'%%currentdate%%',
699
'%%currenttime%%',
700
);
701
$seopress_titles_template_replace_array = array(
702
get_bloginfo('name'),
@@ -724,12 +732,12 @@ function seopress_titles_the_description_content() {
724
$woo_single_cat_html,
725
$woo_single_tag_html,
726
$seopress_get_the_excerpt,
727
- date_i18n('F Y'),
728
date_i18n('j'),
729
date_i18n('F'),
730
date('Y'),
731
date_i18n( get_option( 'date_format' )),
732
current_time(get_option( 'time_format' )),
733
);
734
735
if ( is_front_page() && is_home() && get_post_meta($post->ID,'_seopress_titles_desc',true) =='' ) { //HOMEPAGE
281
$get_search_query ='';
282
if (get_search_query() !='') {
283
$get_search_query = '"'.get_search_query().'"';
284
}
285
+
286
$get_search_query = apply_filters('seopress_get_search_query', $get_search_query);
287
288
if ($seopress_excerpt !='') {
394
$woo_single_cat_html,
395
$woo_single_tag_html,
396
$seopress_get_the_excerpt,
397
date_i18n('j'),
398
date_i18n('F'),
399
date('Y'),
420
$seopress_titles_title_template = str_replace($seopress_titles_template_variables_array, $seopress_titles_template_replace_array, $seopress_titles_the_title);
421
}
422
} elseif ( is_home() && (get_option( 'show_on_front' ) =='posts')) { //YOUR LATEST POSTS
423
+ include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
424
+ if ( is_plugin_active( 'polylang/polylang.php' ) || is_plugin_active( 'polylang-pro/polylang.php' )) {
425
+
426
+ }
427
if (seopress_titles_home_site_title_option() !='') {
428
$seopress_titles_the_title = esc_attr(seopress_titles_home_site_title_option());
429
668
}
669
}
670
671
+ $author_bio ='';
672
+ if (get_the_author_meta('description') !='') {
673
+ $author_bio = esc_html(get_the_author_meta('description'));
674
+ }
675
+
676
$seopress_titles_template_variables_array = array(
677
'%%sitetitle%%',
678
'%%tagline%%',
704
'%%currentyear%%',
705
'%%currentdate%%',
706
'%%currenttime%%',
707
+ '%%author_bio%%',
708
);
709
$seopress_titles_template_replace_array = array(
710
get_bloginfo('name'),
732
$woo_single_cat_html,
733
$woo_single_tag_html,
734
$seopress_get_the_excerpt,
735
date_i18n('j'),
736
date_i18n('F'),
737
date('Y'),
738
date_i18n( get_option( 'date_format' )),
739
current_time(get_option( 'time_format' )),
740
+ $author_bio,
741
);
742
743
if ( is_front_page() && is_home() && get_post_meta($post->ID,'_seopress_titles_desc',true) =='' ) { //HOMEPAGE
inc/functions/sitemap/template-xml-sitemaps.php CHANGED
@@ -78,7 +78,8 @@ function seopress_xml_sitemap_index() {
78
}
79
80
//Google News
81
- if (function_exists("seopress_xml_sitemap_news_enable_option") && seopress_xml_sitemap_news_enable_option() !='') {
82
//Include Custom Post Types
83
function seopress_xml_sitemap_news_cpt_option() {
84
$seopress_xml_sitemap_news_cpt_option = get_option("seopress_pro_option_name");
78
}
79
80
//Google News
81
+ if (function_exists("seopress_xml_sitemap_news_enable_option") && seopress_xml_sitemap_news_enable_option() !=''
82
+ && function_exists('seopress_get_toggle_news_option') && seopress_get_toggle_news_option() =='1') {
83
//Include Custom Post Types
84
function seopress_xml_sitemap_news_cpt_option() {
85
$seopress_xml_sitemap_news_cpt_option = get_option("seopress_pro_option_name");
languages/wp-seopress-da_DK.mo ADDED
Binary file
languages/wp-seopress-da_DK.po ADDED
@@ -0,0 +1,3303 @@