SEOPress - Version 2.5

Version Description

  • NEW Google Analytics: Moving from analytics.js to gtag.js
  • NEW Huge improvement for accessibility (thanks to @thierrypigot for his feedbacks)
  • NEW Real Google Snippet Preview: meta title and description are now read from your source code
  • NEW 404 email alert redesign (PRO Only)
  • NEW Page Speed email alert redesign (PRO Only)
  • INFO Improve Page Speed design page (PRO Only)
  • INFO Add post type archive link in XML sitemaps
  • INFO Increase htaccess textarea width
  • INFO Add a default value for meta description at plugin activation
  • INFO Redirections now support Query String
  • FIX 4 Notices
  • FIX CSS conflicts
  • FIX Notice seopress_xml_terms_list in XML sitemaps (thanks to @lriaudel)
Download this release

Release Info

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

Code changes from version 2.4 to 2.5

assets/css/seopress.css CHANGED
@@ -677,6 +677,9 @@ body.seopress-styles {
677
  .seopress-option textarea {
678
  min-width: 485px;
679
  }
 
 
 
680
  .seopress-option textarea {
681
  min-height: 100px;
682
  }
@@ -885,6 +888,7 @@ body.seopress-styles {
885
  padding-left: 20px;
886
  line-height: 34px;
887
  min-height: 34px;
 
888
  border-radius: 4px;
889
  box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1),0 3px 6px rgba(0, 0, 0, 0.1);
890
  vertical-align: baseline;
@@ -912,6 +916,24 @@ body.seopress-styles {
912
  color: #FFF;
913
  background: #232323;
914
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
915
  #seopress-notifications-center .seopress-alert .button-primary {
916
  float: right;
917
  margin: 5px 0;
@@ -935,7 +957,6 @@ body.seopress-styles {
935
  transition: all 150ms ease;
936
  }
937
  #seopress-notifications-center .seopress-alert:hover {
938
- font-weight: bold;
939
  cursor: default;
940
  }
941
  #seopress-notifications-center .seopress-alert p {
@@ -1047,6 +1068,7 @@ body.seopress-styles {
1047
  #tab_seopress_page_speed .inside li {
1048
  list-style: none;
1049
  padding-left: 0;
 
1050
  }
1051
  .seopress-option .log {
1052
  margin: 0;
@@ -1427,7 +1449,9 @@ body.seopress-styles {
1427
  background-color: #fff;
1428
  }
1429
  .seopress-option .nav-tab-active, .nav-tab-active:focus, .seopress-option .nav-tab-active:focus:active, .seopress-option .nav-tab-active:hover,
1430
- #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 {
 
 
1431
  background: none;
1432
  opacity: 1;
1433
  outline: none;
@@ -1439,142 +1463,4 @@ body.seopress-styles {
1439
  .seopress-option .nav-tab:focus, #seopress-admin-tabs .nav-tab:focus {
1440
  outline: none;
1441
  box-shadow: none;
1442
- }
1443
-
1444
- /* Modal */
1445
- .md-perspective,
1446
- .md-perspective body {
1447
- height: 100%;
1448
- overflow: hidden;
1449
- }
1450
-
1451
- .md-perspective body {
1452
- background: #222;
1453
- -webkit-perspective: 600px;
1454
- -moz-perspective: 600px;
1455
- perspective: 600px;
1456
- }
1457
-
1458
- .container {
1459
- background: #e74c3c;
1460
- min-height: 100%;
1461
- }
1462
-
1463
- .md-modal {
1464
- position: fixed;
1465
- top: 50%;
1466
- left: 50%;
1467
- width: 90%;
1468
- max-width: 990px;
1469
- min-width: 320px;
1470
- height: auto;
1471
- z-index: 2000000;
1472
- visibility: hidden;
1473
- -webkit-backface-visibility: hidden;
1474
- -moz-backface-visibility: hidden;
1475
- backface-visibility: hidden;
1476
- -webkit-transform: translateX(-50%) translateY(-50%);
1477
- -moz-transform: translateX(-50%) translateY(-50%);
1478
- -ms-transform: translateX(-50%) translateY(-50%);
1479
- transform: translateX(-50%) translateY(-50%);
1480
- }
1481
-
1482
- .md-show {
1483
- visibility: visible;
1484
- }
1485
-
1486
- .md-overlay {
1487
- position: fixed;
1488
- width: 100%;
1489
- height: 100%;
1490
- visibility: hidden;
1491
- top: 0;
1492
- left: 0;
1493
- z-index: 1000000;
1494
- opacity: 0;
1495
- background: rgba(143,27,15,0.8);
1496
- -webkit-transition: all 0.3s;
1497
- -moz-transition: all 0.3s;
1498
- transition: all 0.3s;
1499
- }
1500
-
1501
- .md-show ~ .md-overlay {
1502
- opacity: 1;
1503
- visibility: visible;
1504
- }
1505
-
1506
- /* Content styles */
1507
- .md-content {
1508
- color: #fff;
1509
- background: #e74c3c;
1510
- position: relative;
1511
- border-radius: 3px;
1512
- margin: 0 auto;
1513
- }
1514
-
1515
- .md-content h3 {
1516
- margin: 0;
1517
- padding: 0.4em;
1518
- text-align: center;
1519
- font-size: 2.4em;
1520
- font-weight: 300;
1521
- opacity: 0.8;
1522
- background: rgba(0,0,0,0.1);
1523
- border-radius: 3px 3px 0 0;
1524
- }
1525
-
1526
- .md-content > div {
1527
- padding: 15px 40px 30px;
1528
- margin: 0;
1529
- font-weight: 300;
1530
- font-size: 1.15em;
1531
- }
1532
-
1533
- .md-content > div p {
1534
- margin: 0;
1535
- padding: 10px 0;
1536
- }
1537
-
1538
- .md-content > div ul {
1539
- margin: 0;
1540
- padding: 0 0 30px 20px;
1541
- }
1542
-
1543
- .md-content > div ul li {
1544
- padding: 5px 0;
1545
- }
1546
-
1547
- .md-content button {
1548
- display: block;
1549
- margin: 0 auto;
1550
- font-size: 0.8em;
1551
- }
1552
-
1553
- .md-effect-12 .md-content {
1554
- -webkit-transform: scale(0.8);
1555
- -moz-transform: scale(0.8);
1556
- -ms-transform: scale(0.8);
1557
- transform: scale(0.8);
1558
- opacity: 0;
1559
- -webkit-transition: all 0.3s;
1560
- -moz-transition: all 0.3s;
1561
- transition: all 0.3s;
1562
- }
1563
-
1564
- .md-show.md-effect-12 ~ .md-overlay {
1565
- background: #fafafa;
1566
- overflow: hidden;
1567
- }
1568
-
1569
- .md-effect-12 .md-content h3,
1570
- .md-effect-12 .md-content {
1571
- background: transparent;
1572
- }
1573
-
1574
- .md-show.md-effect-12 .md-content {
1575
- -webkit-transform: scale(1);
1576
- -moz-transform: scale(1);
1577
- -ms-transform: scale(1);
1578
- transform: scale(1);
1579
- opacity: 1;
1580
- }
677
  .seopress-option textarea {
678
  min-width: 485px;
679
  }
680
+ #seopress_htaccess_file {
681
+ width: 100%;
682
+ }
683
  .seopress-option textarea {
684
  min-height: 100px;
685
  }
888
  padding-left: 20px;
889
  line-height: 34px;
890
  min-height: 34px;
891
+ margin-bottom: 10px;
892
  border-radius: 4px;
893
  box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1),0 3px 6px rgba(0, 0, 0, 0.1);
894
  vertical-align: baseline;
916
  color: #FFF;
917
  background: #232323;
918
  }
919
+ #seopress-content a:focus,
920
+ #seopress-content .seopress-page-list .seopress-feature a:focus,
921
+ .seopress-option .seopress-feature a:focus,
922
+ #seopress-notifications-center .seopress-alert .button-primary:focus,
923
+ .seopress-useful-tools .widget .button-primary:focus,
924
+ #seopress-content .seopress-page-list .seopress-feature a:focus.button-secondary,
925
+ .seopress-styles .seopress-option #submit:focus,
926
+ .seopress-styles .seopress-option #seopress-yoast-migrate:focus,
927
+ #seopress-content .seopress-page-list .seopress-feature .seopress-doc:focus,
928
+ .seopress-option #seopress-tabs .seopress-doc:focus {
929
+ box-shadow: 0 1px 0 #0073aa, 0 0 2px 1px #33b3db;
930
+ background: #008ec2;
931
+ border-color: #006799;
932
+ color: #fff;
933
+ }
934
+ #seopress-admin-tabs .nav-tab-wrapper a.nav-tab-active:focus {
935
+ color:inherit;
936
+ }
937
  #seopress-notifications-center .seopress-alert .button-primary {
938
  float: right;
939
  margin: 5px 0;
957
  transition: all 150ms ease;
958
  }
959
  #seopress-notifications-center .seopress-alert:hover {
 
960
  cursor: default;
961
  }
962
  #seopress-notifications-center .seopress-alert p {
1068
  #tab_seopress_page_speed .inside li {
1069
  list-style: none;
1070
  padding-left: 0;
1071
+ word-break: break-word;
1072
  }
1073
  .seopress-option .log {
1074
  margin: 0;
1449
  background-color: #fff;
1450
  }
1451
  .seopress-option .nav-tab-active, .nav-tab-active:focus, .seopress-option .nav-tab-active:focus:active, .seopress-option .nav-tab-active:hover,
1452
+ #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,
1453
+ #seopress-admin-tabs .nav-tab:focus,
1454
+ .seopress-option .nav-tab:focus {
1455
  background: none;
1456
  opacity: 1;
1457
  outline: none;
1463
  .seopress-option .nav-tab:focus, #seopress-admin-tabs .nav-tab:focus {
1464
  outline: none;
1465
  box-shadow: none;
1466
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_launch_analysis{float:left}#seopress_analysis_results_state{background:rgba(74,184,102,.75);color:#fff;padding:5px 25px 5px 20px;border-radius:100px;font-style:italic;position:relative;width:auto;display:inline-block;margin:0 0 0 20px}#seopress_content_analysis h3{border-bottom:1px solid #ddd;padding-bottom:10px}#seopress_content_analysis .wrap-analysis-img ul{display:flex}#seopress_content_analysis .wrap-analysis-img ul li{padding:0;text-align:left;cursor:default}#seopress_content_analysis .wrap-analysis-img h4{border-bottom:1px solid #ddd;padding-bottom:10px}#seopress_content_analysis .wrap-analysis-img ul li img{max-width:150px;max-height:150px;object-fit:cover;cursor:default}#seopress_cpt .notice{padding:10px 14px}#seopress_content_analysis .ui-tabs .ui-tabs-nav,#seopress_cpt .ui-tabs .ui-tabs-nav{display:inline-block;height:26px;position:relative;width:100%;z-index:50;margin:0;padding:0;background:0 0;border:none}#seopress_content_analysis .ui-tabs .ui-tabs-nav{margin-top:15px}#seopress_content_analysis .ui-helper-clearfix:after,#seopress_cpt .ui-helper-clearfix:after{content:none}.seopress_page_seopress-titles #seopress-tabs .form-table td,.seopress_page_seopress-titles #seopress_content_analysis .form-table td{padding:0}#seopress_content_analysis .ui-tabs .ui-tabs-panel,#seopress_cpt .ui-tabs .ui-tabs-panel{background:#FFF;border:1px solid #DDD;border-radius:0;display:inline-block;padding:1em 1.4em;width:100%;box-sizing:border-box}#seopress_content_analysis .ui-tabs .ui-tabs-panel .dashicons-info,#seopress_cpt .ui-tabs .ui-tabs-panel .dashicons-info,#seopress_pro_cpt .dashicons-info{font-size:16px;vertical-align:middle;height:16px;width:16px},#seopress_content_analysis .ui-tabs .ui-tabs-nav li,#seopress_content_analysis .ui-tabs-anchor,#seopress_cpt .ui-tabs .ui-tabs-nav li,#seopress_cpt .ui-tabs-anchor{cursor:pointer!important}#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-tabs-active,#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-tabs-active{background:#FFF;border-color:#DDD #DDD #FFF;border-image:none;border-style:solid;border-width:1px;position:relative;z-index:60;cursor:pointer;border-radius:0}#seopress_content_analysis label,#seopress_cpt #tabs-1 label,#seopress_cpt #tabs-2 label[for=seopress_robots_breadcrumbs_meta],#seopress_cpt #tabs-2 label[for=seopress_robots_canonical_meta],#seopress_cpt #tabs-3 label,#seopress_cpt #tabs-4 label,#seopress_cpt #tabs-5 label,#seopress_cpt .subsection-title,#seopress_pro_cpt label{border-bottom:1px solid #DDD;display:block;margin:20px 0 5px;font-weight:700}#seopress_cpt .wp-color-result{margin:0}#seopress_content_analysis input[type=text],#seopress_cpt #tabs-1 input,#seopress_cpt #tabs-2 input[type=text],#seopress_cpt #tabs-3 input[type=text],#seopress_cpt #tabs-3 textarea,#seopress_cpt #tabs-4 input[type=text],#seopress_cpt #tabs-5 input[type=text]{width:100%}#seopress_cpt select{width:300px}#seopress_cpt #tabs-4 select{width:60px;display:inline}#seopress_cpt #tabs-4 #seopress_redirections_value_meta{width:calc(100% - 68px);float:right}#seopress_cpt #tabs-4 #seopress_redirections_enabled,#seopress_cpt #tabs-5 #seopress_news_disabled,#seopress_cpt #tabs-5 #seopress_news_standout{border-bottom:none;font-weight:400}#seopress_content_analysis .advise,#seopress_cpt .advise,#seopress_pro_cpt .advise{margin:5px;display:block;color:red;font-style:italic}#seopress_content_analysis .mandatory,#seopress_cpt .mandatory{color:#c00}#seopress_cpt .box-left{float:left;width:49%;margin-right:1%}#seopress_cpt .box-right{float:left;width:49%;margin-left:1%}#seopress_cpt .google-snippet-preview{font-family:arial,sans-serif}#seopress_cpt .google-snippet-preview .snippet-title,#seopress_cpt .google-snippet-preview .snippet-title-custom,#seopress_cpt .google-snippet-preview .snippet-title-default{color:#1a0dab;font-size:18px;font-weight:400;line-height:21.6px}#seopress_cpt .google-snippet-preview .snippet-permalink{color:#006621;font-size:14px;font-style:normal;font-weight:400;line-height:16px}#seopress_cpt .google-snippet-preview .snippet-description,#seopress_cpt .google-snippet-preview .snippet-description-custom,#seopress_cpt .google-snippet-preview .snippet-description-default{color:#545454;font-size:13px;font-weight:400;line-height:18.2px;display:inline}#seopress_cpt .google-snippet-preview .snippet-date{color:grey;display:inline}#seopress_cpt .wrap-seopress-counters,#seopress_pro_cpt .wrap-seopress-counters{text-align:right;background:#eee;padding:5px;box-shadow:0 1px 1px rgba(0,0,0,.2)}#seopress_cpt #seopress_titles_desc_counters,#seopress_cpt #seopress_titles_title_counters,#seopress_pro_cpt #seopress_rich_snippets_articles_counters,#seopress_pro_cpt #seopress_rich_snippets_courses_counters{display:inline;margin-right:5px}#seopress_cpt #seopress_titles_desc_counters_val,#seopress_cpt #seopress_titles_title_counters_val,#seopress_pro_cpt #seopress_rich_snippets_articles_counters_val,#seopress_pro_cpt #seopress_rich_snippets_courses_counters_val{display:inline;font-weight:700}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-nav li a,#seopress_cpt .ui-tabs-vertical .ui-tabs-nav li a{display:block}#term-seopress #seopress_cpt{width:95%}.fixed .column-seopress_w3c,.fixed .column-seopress_words{width:5%}.fixed .column-seopress_nofollow,.fixed .column-seopress_noindex{width:10%}#seopress_content_analysis .ui-tabs,#seopress_cpt .ui-tabs{position:relative;padding:.2em;border:none;font-family:inherit;font-size:inherit}#seopress_content_analysis .ui-tabs .ui-tabs-nav li,#seopress_cpt .ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:-1px .2em 0 0;padding:0;white-space:nowrap;border:none;background:0 0}#seopress_content_analysis .ui-tabs .ui-tabs-nav li a,#seopress_cpt .ui-tabs .ui-tabs-nav li a{float:left;padding:.38em 1em}#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-tabs-active,#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px;padding-bottom:1px}#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-state-disabled a,#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-tabs-active a,#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-tabs-loading a,#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-state-disabled a,#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-tabs-active a,#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-tabs-loading a{cursor:text}#seopress_content_analysis .ui-tabs .ui-tabs-nav li a,#seopress_content_analysis .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a,#seopress_cpt .ui-tabs .ui-tabs-nav li a,#seopress_cpt .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a{cursor:pointer;color:#0073aa;text-decoration:none}#seopress_cpt .ui-tabs-vertical{width:55em}#seopress_cpt .ui-tabs-vertical .ui-tabs-nav{padding:.2em .1em .2em .2em;float:left;width:12em}#seopress_cpt .ui-tabs-vertical .ui-tabs-nav li{clear:left;width:100%;border-bottom-width:1px!important;border-right-width:0!important;margin:0 -1px .2em 0}#seopress_cpt .ui-tabs-vertical .ui-tabs-nav li.ui-tabs-active{padding-bottom:0;padding-right:.1em;border-right-width:1px}#seopress_cpt .ui-tabs-vertical .ui-tabs-panel{padding:1em;float:right;width:40em}#tab-panel-seopress_titles_help_tab li span{font-weight:700;margin-right:10px}#seopress_content_analysis .ui-tabs .dashicons-no-alt,#seopress_content_analysis .ui-tabs .dashicons-yes,#seopress_pro_cpt .dashicons-no-alt,#seopress_pro_cpt .dashicons-yes{color:#fff;background:#12BD10;border-radius:50px;margin-right:10px;padding:1px}#seopress_content_analysis .ui-tabs .dashicons-no-alt,#seopress_pro_cpt .dashicons-no-alt{background:#e25950}body.seopress-styles{background:#f8fafd}#seopress-content a{color:#3297d3}#seopress-content a:hover{color:#106598}#seopress-admin-tabs.ui-tabs{position:relative;padding:.2em;border:none;font-family:inherit;font-size:inherit}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:-1px .2em 0 0;padding:0;white-space:nowrap;border:none;background:0 0}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li a{float:left;padding:.38em 1em .75rem;outline:0;border-bottom:2px solid #fff}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-state-disabled a,#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-tabs-active a,#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-tabs-loading a{cursor:text;border-bottom:2px solid #23282D;color:#23282D}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li a,#seopress-admin-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a{cursor:pointer;color:#0073aa;text-decoration:none}#seopress-admin-tabs.ui-tabs-vertical{width:55em}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-nav{padding:.2em .1em .2em .2em;float:left;width:12em}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-nav li{clear:left;width:100%;border-bottom-width:1px!important;border-right-width:0!important;margin:0 -1px .2em 0}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-nav li.ui-tabs-active{padding-bottom:0;padding-right:.1em;border-right-width:1px}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-panel{padding:1em;float:right;width:40em}.seopress-styles .seopress-option{margin:10px auto 0;max-width:90%;padding:1rem;background:#fff;box-shadow:0 15px 35px rgba(50,50,93,.1),0 5px 15px rgba(0,0,0,.1);border-radius:4px}.seopress-styles .seopress-option h1{font-size:16px;font-weight:700;color:#3297d3;text-transform:uppercase;position:sticky;top:32px;background:#fff;z-index:100;padding:10px 0}.seopress-styles .seopress-option h1 .dashicons,.seopress-styles .seopress-option h2 .dashicons{margin:0 10px;font-size:40px;width:40px;height:40px;vertical-align:middle}.seopress-styles .seopress-option h1>.dashicons{font-size:30px;width:30px;height:30px;background:#c4f0ff;border-radius:50%;padding:10px;box-shadow:0 4px 6px rgba(50,50,93,.1),0 1px 3px rgba(0,0,0,.1);margin-left:20px}.seopress-styles .seopress-option .metabox-holder h2 .dashicons{font-size:16px}.seopress-option h1 .feature-state .dashicons{font-size:16px;width:16px;height:16px;vertical-align:middle;margin:0 10px 0 0}.seopress-styles .wrap{margin:0;position:relative}.seopress-styles .seopress-option .submit{background:#fff;text-align:center;border-top:1px solid #F1F1F1;padding-top:20px;padding-bottom:20px;margin:0}.seopress-styles .seopress-option #seopress-yoast-migrate,.seopress-styles .seopress-option #submit{color:#fff;text-decoration:none;border:none;border-radius:4px;padding-right:20px;padding-left:20px;line-height:34px;text-transform:uppercase;min-height:34px;transition:all .3s linear;text-shadow:none;box-shadow:0 7px 14px rgba(50,50,93,.1),0 3px 6px rgba(0,0,0,.1);margin-right:15px;background:RGB(106,124,148);position:relative;height:auto}.seopress-styles .seopress-option #seopress-yoast-migrate:hover,.seopress-styles .seopress-option #submit:hover{text-decoration:none;color:#FFF;background:#232323}.seopress-styles #wpcontent{padding-left:0;background:#F8FAFD}.seopress-styles #seopress-navbar{padding:10px 1.5rem;height:56px;margin:0 auto;width:53rem;box-sizing:border-box;position:relative}#seopress-header{margin:0 auto;position:relative;width:100%}#seopress-header #seopress-admin h1{line-height:50px;margin:0;display:inline-block;height:50px;width:36px;background-size:100%;background-repeat:no-repeat}#seopress-header #seopress-admin h1::before{font-size:40px;line-height:45px;position:absolute;font-weight:400}#seopress-header #seopress-admin h1:hover{cursor:pointer}#seopress-header #seopress-admin h1>a{text-decoration:none;color:inherit}#seopress-header #seopress-admin .seopress-quick-access{background:#fff;box-shadow:0 50px 100px rgba(50,50,93,.1),0 15px 35px rgba(50,50,93,.2),0 5px 15px rgba(0,0,0,.1);border-radius:4px;overflow:hidden;position:relative;font-size:17px;line-height:40px;white-space:nowrap;transform:rotate3d(1,1,0,-15deg);transform-origin:100% 0;opacity:0;will-change:transform,opacity;transition-property:transform,opacity;transition-duration:.25s;z-index:300;padding:0;display:block;width:53rem;top:0;visibility:hidden;cursor:auto}#seopress-header #seopress-admin h1:hover .seopress-quick-access{transform:none;opacity:1;pointer-events:auto;visibility:visible}#seopress-header #seopress-admin .seopress-quick-access>ul{padding:20px;margin:0;float:left;width:100%;box-sizing:border-box}#seopress-header #seopress-admin h1 .seopress-quick-access li{text-decoration:none;display:inline-block;width:50%;margin:0;float:left;padding:10px 0}#seopress-header #seopress-admin h1 .seopress-quick-access li .dashicons{vertical-align:middle;background:#B7E1F3;border-radius:50%;padding:5px;margin-right:15px}#seopress-header #seopress-admin h1 .seopress-quick-access li a{text-decoration:none;font-size:15px;line-height:30px;text-transform:uppercase;display:block;width:100%;transition:all .3s linear;color:#3297d3}#seopress-header #seopress-admin h1 .seopress-quick-access li a:hover{color:#647a88}#seopress-header #seopress-admin h1 .seopress-info-version{position:relative;left:50px;top:0;font-size:14px;width:100px;display:block}#seopress-header #seopress-admin .wpc-info-version{font-size:14px;left:310px;position:absolute;text-indent:0;top:85px}#seopress-header #seopress-notice{float:right;line-height:40px}#seopress-header #seopress-notice p{font-size:16px}#seopress-header #seopress-notice .dashicons{color:#444;text-decoration:none;line-height:40px}#seopress-header #seopress-notice div.small{font-size:13px;display:inline}#seopress-footer-credits{font-style:italic}#seopress-footer-credits .wporg-ratings{display:inline}#seopress-footer-credits .wporg-ratings a{text-decoration:none}.seopress-option .seopress-settings{float:left;max-width:750px;width:100%}.seopress-option #seopress-edd-license-btn,.seopress-option #seopress-refresh{float:left}.wp-admin-ui_page_seopress-import-export .postbox{margin-right:20px}.seopress-option #side-sortables .accordion-section-content{padding:0}.seopress-option .seopress-settings label{margin:0 0 0 10px}.wrap-seopress-tab-content{position:relative;display:block;width:100%;height:100%;max-width:53rem;margin:20px auto 0}#seopress-admin-tabs .seopress-tab{padding:1.5rem;visibility:hidden;overflow:hidden;opacity:0;transition:all .2s ease;transform:translateX(-15px);position:absolute;top:0}#seopress-admin-tabs .seopress-tab.active{visibility:visible;overflow:inherit;opacity:1;transform:translateX(0);display:inherit;position:relative}#seopress-tabs .seopress-tab{padding:1.5rem;display:none}#seopress-tabs .seopress-tab.active{display:block}.seopress-option input[type=text],.seopress-option input[type=password],.seopress-option textarea{min-width:485px}.seopress-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;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-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{font-weight:700;cursor:default}#seopress-notifications-center .seopress-alert p{display:inline-block}#seopress-notifications-center .seopress-alert .impact{padding:4px 5px;color:#fff;text-transform:uppercase;font-weight:700;font-size:10px;border-radius:4px}#seopress-notifications-center .seopress-alert .impact.low{background:#FFDE24;color:#6b6543}#seopress-notifications-center .seopress-alert .impact.medium{background:#e39f48}#seopress-notifications-center .seopress-alert .impact.high{background:#e25950}#seopress-notifications-center .seopress-alert .dashicons{color:#FFC82C}#seopress-notifications-center .dashicons.remove-notice{position:absolute;right:-55px;color:#6b7c93;font-size:30px;height:30px;width:30px;top:2px;padding:5px;transition:all .3s linear}#seopress-notifications-center .dashicons.remove-notice:hover{background:#e25950;color:#fff;cursor:pointer;border-radius:4px}#seopress-content .seopress-page-list .seopress-feature .seopress-doc,.seopress-option #seopress-tabs .seopress-doc{background:0 0;padding:0;width:inherit;height:inherit;text-decoration:none;color:inherit;box-shadow:none;position:absolute;right:0}#seopress-content .seopress-page-list .seopress-feature .seopress-doc:hover,.seopress-option #seopress-tabs .seopress-doc:hover{color:#747474;background:0 0}.seopress-option .seopress-table{background:#FFF;border:1px solid #ccc}.seopress-option .seopress-table th{padding:15px 10px;vertical-align:middle}.wp-admin-ui_page_seopress-roles .seopress-option .seopress-table th{min-width:200px}.seopress-option .seopress-table .seopress-settings-section{background:#f1f1f1}.seopress-option .seopress-table .seopress-table-head .seopress-feature{border-bottom:1px solid #ccc;font-weight:700;background:#f1f1f1}#seopress-content .feature-state,.seopress-option .feature-state{font-style:italic;font-size:12px;display:inline-block;background:rgba(0,140,135,.1);padding:5px 12px;border-radius:25px;color:#444;font-weight:400;text-transform:none;-moz-osx-font-smoothing:initial;-webkit-font-smoothing:initial}.seopress-button,.seopress-option .tag-title{cursor:pointer;font-weight:500;border-radius:4px;transition:all .3s linear}#seopress-content .feature-state-on,#seopress-content .feature-state.feature-state-on,.seopress-option .feature-state-on,.seopress-option .feature-state.feature-state-on{display:inline}#seopress-content .feature-state-off,.seopress-option .feature-state-off{display:none}.seopress-option .postbox .inside li{list-style:square inside;padding-left:5px}#tab_seopress_page_speed .inside li{list-style:none;padding-left:0}.seopress-option .log{margin:0;text-transform:uppercase;display:inline-block;vertical-align:middle;padding:5px;color:rgba(19,191,17,1);font-style:italic}.seopress-option input[type=text].seopress-admin-menu-input{min-width:inherit;width:100%}.seopress_page_seopress-import-export .postbox{width:calc(100% - 20px)}.seopress-option .wrap-tags{position:relative;display:inline-block;width:100%;margin-bottom:10px}.seopress-option .tag-title{padding:4px 8px;position:relative;top:5px;left:0;font-size:11px;float:left;margin-right:5px;user-select:none;margin-bottom:5px;background:#fff;color:#6b7c93;box-shadow:0 0 0 .5px rgba(50,50,93,.17),0 2px 5px 0 rgba(50,50,93,.12),0 3px 9px 0 rgba(50,50,93,.08),0 1px 1.5px 0 rgba(0,0,0,.08),0 1px 2px 0 rgba(0,0,0,.08)}.seopress-option .tag-title:active,.seopress-option .tag-title:focus,.seopress-option .tag-title:hover{background:#232323;color:#fff;user-select:none}.seopress-option .tag-title .dashicons{padding:0;height:16px;width:16px;font-size:16px;margin-right:5px;vertical-align:middle}.seopress-button{text-transform:uppercase;background:#fff;border-color:#c8d7e1;border-style:solid;border-width:1px 1px 2px;color:#2e4453;display:inline-block;margin:0;outline:0;overflow:hidden;text-overflow:ellipsis;text-decoration:none;vertical-align:top;box-sizing:border-box;font-size:14px;line-height:21px;padding:7px 14px 9px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.seopress-button:hover{border-color:#a8bece;color:#00a0d2}.seopress-button .dashicons{vertical-align:middle}#seopress-content #tab_seopress_seo_tools.seopress-useful-tools .widget{border-right:1px solid #e6ebf1;margin:0;padding:0 20px;width:calc(50% - 2px);box-sizing:border-box;display:inline-block;vertical-align:top}#seopress-content #tab_seopress_seo_tools.seopress-useful-tools .widget:first-child{width:100%;display:block;clear:both;border-right:none;border-bottom:1px solid #e6ebf1;padding-bottom:20px;margin-bottom:20px}#seopress-content #tab_seopress_seo_tools.seopress-useful-tools .widget:last-child{border-right:none}#seopress-content .seopress-useful-tools .widget-reverse ul{background:#fff}#seopress-content .seopress-useful-tools .widget-reverse li{padding:10px;margin:0;border-bottom:1px solid #e6ebf1}#seopress-content .seopress-useful-tools .widget-reverse li:hover{background:#F5F7FA}#seopress-content .seopress-useful-tools .widget-title{text-transform:uppercase;margin:0 0 10px;font-size:13px;padding:10px 0;color:#24b47e}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank{margin:0 0 10px;width:100%;box-sizing:border-box;display:block}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_reach{font-size:30px;font-weight:700;display:inline-block;width:100%;padding:0 0 20px;text-align:right}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_reach .highlight{display:inline-block;font-size:16px;background:inherit;width:100%;margin-bottom:10px}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_delta{font-size:14px;display:inline-block;vertical-align:top;text-align:left;margin:0 20px 0 0}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_delta{width:100%;text-align:right;font-size:18px;font-style:italic}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank{text-align:left}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country .highlight,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank .highlight{background:0 0;font-weight:700}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country{margin-right:0}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank{margin-left:5px}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .minus .dashicons,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .plus .dashicons{font-style:italic}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .plus{color:green}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .minus{color:red}#seopress-content .seopress-reverse label,#seopress-content .seopress-useful-tools .widget-whois ul li span{font-weight:700}#seopress-content #seopress-reverse-url{width:100%;margin:10px 0}#seopress-content .widget-reverse p{margin:0}.post-type-seopress_backlinks .wp-list-table .column-seopress_backlinks_url{width:35%}.post-type-seopress_backlinks .wp-list-table .column-seopress_backlinks_anchor_text{width:20%}.seopress-styles #screen-meta{margin:0;position:relative;background-color:#fff;border-bottom:0 solid #f2f2f2;border-top:none;-webkit-box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08);box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08);top:0}.seopress-styles #contextual-help-link-wrap,.seopress-styles #screen-options-link-wrap{float:right;height:28px;margin:0 0 0 6px;border:1px solid #f2f2f2;border-top:none;background:#fff;-webkit-box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08);box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08)}.seopress-styles #screen-meta-links .show-settings{box-shadow:none}.seopress-styles #screen-meta-links .screen-meta-toggle{position:relative;top:0;z-index:2000}.seopress-styles #contextual-help-back{background:#f8fafd}.seopress-styles .contextual-help-tabs .active{border-left:2px solid #3297d3;background:#f8fafd}#seopress-content input.toggle,.seopress-option input.toggle{max-height:0;max-width:0;opacity:0}#seopress-content input.toggle+label,.seopress-option input.toggle+label{display:inline-block;position:relative;box-shadow:inset 0 0 0 1px #d5d5d5;text-indent:-5000px;height:30px;width:50px;border-radius:15px}.wrap-toggle-checkboxes input.toggle+label{float:left;margin-right:10px}#seopress-content input.toggle+label:before,.seopress-option input.toggle+label:before{content:"";position:absolute;display:block;height:30px;width:30px;top:0;left:0;border-radius:15px;background:rgba(19,191,17,0);-moz-transition:.25s ease-in-out;-webkit-transition:.25s ease-in-out;transition:.25s ease-in-out}#seopress-content input.toggle+label:after,.seopress-option input.toggle+label:after{content:"";position:absolute;display:block;height:30px;width:30px;top:0;left:0;border-radius:15px;background:#fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2),0 2px 4px rgba(0,0,0,.2);-moz-transition:.25s ease-in-out;-webkit-transition:.25s ease-in-out;transition:.25s ease-in-out}#seopress-content input.toggle[data-toggle="1"]+label:before,.seopress-option input.toggle[data-toggle="1"]+label:before{width:50px;background:rgba(19,191,17,1)}#seopress-content input.toggle[data-toggle="1"]+label:after,.seopress-option input.toggle[data-toggle="1"]+label:after{left:20px;box-shadow:inset 0 0 0 1px rgba(19,191,17,1),0 2px 4px rgba(0,0,0,.2)}#seopress-content .seopress-page-list{position:relative}#seopress-notice-save{position:fixed;color:#fff;padding:15px 40px;font-size:14px;text-align:center;border-radius:50px;background:rgba(74,184,102,.75);top:50px;right:20px;z-index:500}.seopress_page_seopress-pro-page #wpcontent{background:#F4F7FA}.seopress-option .wrap div.nav-tab-wrapper{border-bottom:1px solid RGB(238,238,238);margin:0;padding:10px;line-height:inherit;position:sticky;top:100px;background:#fff;z-index:95;font-style:23px;font-weight:400}#seopress-admin-tabs.wrap div.nav-tab-wrapper{margin:20px auto 0;max-width:53rem;width:100%;border-bottom:0;padding:0;line-height:inherit;position:sticky;background:#f8fafd;z-index:100;top:31px;font-style:23px;font-weight:400}#seopress-admin-tabs #tab_seopress_notifications.seopress-tab{background:0 0;padding:0}#seopress-admin-tabs .nav-tab,.seopress-option .nav-tab{border:0 solid #ccc;background:0 0;opacity:.5;padding:5px 8px;transition:opacity .3s linear;color:#647a88;font-weight:300;float:none;display:inline-block}#seopress-admin-tabs .nav-tab-active,#seopress-admin-tabs .nav-tab-active:hover,.seopress-option .about-wrap h2 .nav-tab-active,.seopress-option .nav-tab-active,.seopress-option .nav-tab-active:hover{background-color:#fff}#seopress-admin-tabs .nav-tab-active,#seopress-admin-tabs .nav-tab-active:focus,#seopress-admin-tabs .nav-tab-active:focus:active,#seopress-admin-tabs .nav-tab-active:hover,.nav-tab-active:focus,.seopress-option .nav-tab-active,.seopress-option .nav-tab-active:focus:active,.seopress-option .nav-tab-active:hover{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}.md-perspective,.md-perspective body{height:100%;overflow:hidden}.md-perspective body{background:#222;-webkit-perspective:600px;-moz-perspective:600px;perspective:600px}.container{background:#e74c3c;min-height:100%}.md-modal{position:fixed;top:50%;left:50%;width:90%;max-width:990px;min-width:320px;height:auto;z-index:2000000;visibility:hidden;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform:translateX(-50%) translateY(-50%);-moz-transform:translateX(-50%) translateY(-50%);-ms-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}.md-show{visibility:visible}.md-overlay{position:fixed;width:100%;height:100%;visibility:hidden;top:0;left:0;z-index:1000000;opacity:0;background:rgba(143,27,15,.8);-webkit-transition:all .3s;-moz-transition:all .3s;transition:all .3s}.md-show~.md-overlay{opacity:1;visibility:visible}.md-content{color:#fff;background:#e74c3c;position:relative;border-radius:3px;margin:0 auto}.md-content h3{margin:0;padding:.4em;text-align:center;font-size:2.4em;font-weight:300;opacity:.8;background:rgba(0,0,0,.1);border-radius:3px 3px 0 0}.md-content>div{padding:15px 40px 30px;margin:0;font-weight:300;font-size:1.15em}.md-content>div p{margin:0;padding:10px 0}.md-content>div ul{margin:0;padding:0 0 30px 20px}.md-content>div ul li{padding:5px 0}.md-content button{display:block;margin:0 auto;font-size:.8em}.md-effect-12 .md-content{-webkit-transform:scale(.8);-moz-transform:scale(.8);-ms-transform:scale(.8);transform:scale(.8);opacity:0;-webkit-transition:all .3s;-moz-transition:all .3s;transition:all .3s}.md-show.md-effect-12~.md-overlay{background:#fafafa;overflow:hidden}.md-effect-12 .md-content,.md-effect-12 .md-content h3{background:0 0}.md-show.md-effect-12 .md-content{-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);transform:scale(1);opacity: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_launch_analysis{float:left}#seopress_analysis_results_state{background:rgba(74,184,102,.75);color:#fff;padding:5px 25px 5px 20px;border-radius:100px;font-style:italic;position:relative;width:auto;display:inline-block;margin:0 0 0 20px}#seopress_content_analysis h3{border-bottom:1px solid #ddd;padding-bottom:10px}#seopress_content_analysis .wrap-analysis-img ul{display:flex}#seopress_content_analysis .wrap-analysis-img ul li{padding:0;text-align:left;cursor:default}#seopress_content_analysis .wrap-analysis-img h4{border-bottom:1px solid #ddd;padding-bottom:10px}#seopress_content_analysis .wrap-analysis-img ul li img{max-width:150px;max-height:150px;object-fit:cover;cursor:default}#seopress_cpt .notice{padding:10px 14px}#seopress_content_analysis .ui-tabs .ui-tabs-nav,#seopress_cpt .ui-tabs .ui-tabs-nav{display:inline-block;height:26px;position:relative;width:100%;z-index:50;margin:0;padding:0;background:0 0;border:none}#seopress_content_analysis .ui-tabs .ui-tabs-nav{margin-top:15px}#seopress_content_analysis .ui-helper-clearfix:after,#seopress_cpt .ui-helper-clearfix:after{content:none}.seopress_page_seopress-titles #seopress-tabs .form-table td,.seopress_page_seopress-titles #seopress_content_analysis .form-table td{padding:0}#seopress_content_analysis .ui-tabs .ui-tabs-panel,#seopress_cpt .ui-tabs .ui-tabs-panel{background:#FFF;border:1px solid #DDD;border-radius:0;display:inline-block;padding:1em 1.4em;width:100%;box-sizing:border-box}#seopress_content_analysis .ui-tabs .ui-tabs-panel .dashicons-info,#seopress_cpt .ui-tabs .ui-tabs-panel .dashicons-info,#seopress_pro_cpt .dashicons-info{font-size:16px;vertical-align:middle;height:16px;width:16px},#seopress_content_analysis .ui-tabs .ui-tabs-nav li,#seopress_content_analysis .ui-tabs-anchor,#seopress_cpt .ui-tabs .ui-tabs-nav li,#seopress_cpt .ui-tabs-anchor{cursor:pointer!important}#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-tabs-active,#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-tabs-active{background:#FFF;border-color:#DDD #DDD #FFF;border-image:none;border-style:solid;border-width:1px;position:relative;z-index:60;cursor:pointer;border-radius:0}#seopress_content_analysis label,#seopress_cpt #tabs-1 label,#seopress_cpt #tabs-2 label[for=seopress_robots_breadcrumbs_meta],#seopress_cpt #tabs-2 label[for=seopress_robots_canonical_meta],#seopress_cpt #tabs-3 label,#seopress_cpt #tabs-4 label,#seopress_cpt #tabs-5 label,#seopress_cpt .subsection-title,#seopress_pro_cpt label{border-bottom:1px solid #DDD;display:block;margin:20px 0 5px;font-weight:700}#seopress_cpt .wp-color-result{margin:0}#seopress_content_analysis input[type=text],#seopress_cpt #tabs-1 input,#seopress_cpt #tabs-2 input[type=text],#seopress_cpt #tabs-3 input[type=text],#seopress_cpt #tabs-3 textarea,#seopress_cpt #tabs-4 input[type=text],#seopress_cpt #tabs-5 input[type=text]{width:100%}#seopress_cpt select{width:300px}#seopress_cpt #tabs-4 select{width:60px;display:inline}#seopress_cpt #tabs-4 #seopress_redirections_value_meta{width:calc(100% - 68px);float:right}#seopress_cpt #tabs-4 #seopress_redirections_enabled,#seopress_cpt #tabs-5 #seopress_news_disabled,#seopress_cpt #tabs-5 #seopress_news_standout{border-bottom:none;font-weight:400}#seopress_content_analysis .advise,#seopress_cpt .advise,#seopress_pro_cpt .advise{margin:5px;display:block;color:red;font-style:italic}#seopress_content_analysis .mandatory,#seopress_cpt .mandatory{color:#c00}#seopress_cpt .box-left{float:left;width:49%;margin-right:1%}#seopress_cpt .box-right{float:left;width:49%;margin-left:1%}#seopress_cpt .google-snippet-preview{font-family:arial,sans-serif}#seopress_cpt .google-snippet-preview .snippet-title,#seopress_cpt .google-snippet-preview .snippet-title-custom,#seopress_cpt .google-snippet-preview .snippet-title-default{color:#1a0dab;font-size:18px;font-weight:400;line-height:21.6px}#seopress_cpt .google-snippet-preview .snippet-permalink{color:#006621;font-size:14px;font-style:normal;font-weight:400;line-height:16px}#seopress_cpt .google-snippet-preview .snippet-description,#seopress_cpt .google-snippet-preview .snippet-description-custom,#seopress_cpt .google-snippet-preview .snippet-description-default{color:#545454;font-size:13px;font-weight:400;line-height:18.2px;display:inline}#seopress_cpt .google-snippet-preview .snippet-date{color:grey;display:inline}#seopress_cpt .wrap-seopress-counters,#seopress_pro_cpt .wrap-seopress-counters{text-align:right;background:#eee;padding:5px;box-shadow:0 1px 1px rgba(0,0,0,.2)}#seopress_cpt #seopress_titles_desc_counters,#seopress_cpt #seopress_titles_title_counters,#seopress_pro_cpt #seopress_rich_snippets_articles_counters,#seopress_pro_cpt #seopress_rich_snippets_courses_counters{display:inline;margin-right:5px}#seopress_cpt #seopress_titles_desc_counters_val,#seopress_cpt #seopress_titles_title_counters_val,#seopress_pro_cpt #seopress_rich_snippets_articles_counters_val,#seopress_pro_cpt #seopress_rich_snippets_courses_counters_val{display:inline;font-weight:700}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-nav li a,#seopress_cpt .ui-tabs-vertical .ui-tabs-nav li a{display:block}#term-seopress #seopress_cpt{width:95%}.fixed .column-seopress_w3c,.fixed .column-seopress_words{width:5%}.fixed .column-seopress_nofollow,.fixed .column-seopress_noindex{width:10%}#seopress_content_analysis .ui-tabs,#seopress_cpt .ui-tabs{position:relative;padding:.2em;border:none;font-family:inherit;font-size:inherit}#seopress_content_analysis .ui-tabs .ui-tabs-nav li,#seopress_cpt .ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:-1px .2em 0 0;padding:0;white-space:nowrap;border:none;background:0 0}#seopress_content_analysis .ui-tabs .ui-tabs-nav li a,#seopress_cpt .ui-tabs .ui-tabs-nav li a{float:left;padding:.38em 1em}#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-tabs-active,#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px;padding-bottom:1px}#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-state-disabled a,#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-tabs-active a,#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-tabs-loading a,#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-state-disabled a,#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-tabs-active a,#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-tabs-loading a{cursor:text}#seopress_content_analysis .ui-tabs .ui-tabs-nav li a,#seopress_content_analysis .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a,#seopress_cpt .ui-tabs .ui-tabs-nav li a,#seopress_cpt .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a{cursor:pointer;color:#0073aa;text-decoration:none}#seopress_cpt .ui-tabs-vertical{width:55em}#seopress_cpt .ui-tabs-vertical .ui-tabs-nav{padding:.2em .1em .2em .2em;float:left;width:12em}#seopress_cpt .ui-tabs-vertical .ui-tabs-nav li{clear:left;width:100%;border-bottom-width:1px!important;border-right-width:0!important;margin:0 -1px .2em 0}#seopress_cpt .ui-tabs-vertical .ui-tabs-nav li.ui-tabs-active{padding-bottom:0;padding-right:.1em;border-right-width:1px}#seopress_cpt .ui-tabs-vertical .ui-tabs-panel{padding:1em;float:right;width:40em}#tab-panel-seopress_titles_help_tab li span{font-weight:700;margin-right:10px}#seopress_content_analysis .ui-tabs .dashicons-no-alt,#seopress_content_analysis .ui-tabs .dashicons-yes,#seopress_pro_cpt .dashicons-no-alt,#seopress_pro_cpt .dashicons-yes{color:#fff;background:#12BD10;border-radius:50px;margin-right:10px;padding:1px}#seopress_content_analysis .ui-tabs .dashicons-no-alt,#seopress_pro_cpt .dashicons-no-alt{background:#e25950}body.seopress-styles{background:#f8fafd}#seopress-content a{color:#3297d3}#seopress-content a:hover{color:#106598}#seopress-admin-tabs.ui-tabs{position:relative;padding:.2em;border:none;font-family:inherit;font-size:inherit}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:-1px .2em 0 0;padding:0;white-space:nowrap;border:none;background:0 0}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li a{float:left;padding:.38em 1em .75rem;outline:0;border-bottom:2px solid #fff}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-state-disabled a,#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-tabs-active a,#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-tabs-loading a{cursor:text;border-bottom:2px solid #23282D;color:#23282D}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li a,#seopress-admin-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a{cursor:pointer;color:#0073aa;text-decoration:none}#seopress-admin-tabs.ui-tabs-vertical{width:55em}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-nav{padding:.2em .1em .2em .2em;float:left;width:12em}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-nav li{clear:left;width:100%;border-bottom-width:1px!important;border-right-width:0!important;margin:0 -1px .2em 0}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-nav li.ui-tabs-active{padding-bottom:0;padding-right:.1em;border-right-width:1px}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-panel{padding:1em;float:right;width:40em}.seopress-styles .seopress-option{margin:10px auto 0;max-width:90%;padding:1rem;background:#fff;box-shadow:0 15px 35px rgba(50,50,93,.1),0 5px 15px rgba(0,0,0,.1);border-radius:4px}.seopress-styles .seopress-option h1{font-size:16px;font-weight:700;color:#3297d3;text-transform:uppercase;position:sticky;top:32px;background:#fff;z-index:100;padding:10px 0}.seopress-styles .seopress-option h1 .dashicons,.seopress-styles .seopress-option h2 .dashicons{margin:0 10px;font-size:40px;width:40px;height:40px;vertical-align:middle}.seopress-styles .seopress-option h1>.dashicons{font-size:30px;width:30px;height:30px;background:#c4f0ff;border-radius:50%;padding:10px;box-shadow:0 4px 6px rgba(50,50,93,.1),0 1px 3px rgba(0,0,0,.1);margin-left:20px}.seopress-styles .seopress-option .metabox-holder h2 .dashicons{font-size:16px}.seopress-option h1 .feature-state .dashicons{font-size:16px;width:16px;height:16px;vertical-align:middle;margin:0 10px 0 0}.seopress-styles .wrap{margin:0;position:relative}.seopress-styles .seopress-option .submit{background:#fff;text-align:center;border-top:1px solid #F1F1F1;padding-top:20px;padding-bottom:20px;margin:0}.seopress-styles .seopress-option #seopress-yoast-migrate,.seopress-styles .seopress-option #submit{color:#fff;text-decoration:none;border:none;border-radius:4px;padding-right:20px;padding-left:20px;line-height:34px;text-transform:uppercase;min-height:34px;transition:all .3s linear;text-shadow:none;box-shadow:0 7px 14px rgba(50,50,93,.1),0 3px 6px rgba(0,0,0,.1);margin-right:15px;background:RGB(106,124,148);position:relative;height:auto}.seopress-styles .seopress-option #seopress-yoast-migrate:hover,.seopress-styles .seopress-option #submit:hover{text-decoration:none;color:#FFF;background:#232323}.seopress-styles #wpcontent{padding-left:0;background:#F8FAFD}.seopress-styles #seopress-navbar{padding:10px 1.5rem;height:56px;margin:0 auto;width:53rem;box-sizing:border-box;position:relative}#seopress-header{margin:0 auto;position:relative;width:100%}#seopress-header #seopress-admin h1{line-height:50px;margin:0;display:inline-block;height:50px;width:36px;background-size:100%;background-repeat:no-repeat}#seopress-header #seopress-admin h1::before{font-size:40px;line-height:45px;position:absolute;font-weight:400}#seopress-header #seopress-admin h1:hover{cursor:pointer}#seopress-header #seopress-admin h1>a{text-decoration:none;color:inherit}#seopress-header #seopress-admin .seopress-quick-access{background:#fff;box-shadow:0 50px 100px rgba(50,50,93,.1),0 15px 35px rgba(50,50,93,.2),0 5px 15px rgba(0,0,0,.1);border-radius:4px;overflow:hidden;position:relative;font-size:17px;line-height:40px;white-space:nowrap;transform:rotate3d(1,1,0,-15deg);transform-origin:100% 0;opacity:0;will-change:transform,opacity;transition-property:transform,opacity;transition-duration:.25s;z-index:300;padding:0;display:block;width:53rem;top:0;visibility:hidden;cursor:auto}#seopress-header #seopress-admin h1:hover .seopress-quick-access{transform:none;opacity:1;pointer-events:auto;visibility:visible}#seopress-header #seopress-admin .seopress-quick-access>ul{padding:20px;margin:0;float:left;width:100%;box-sizing:border-box}#seopress-header #seopress-admin h1 .seopress-quick-access li{text-decoration:none;display:inline-block;width:50%;margin:0;float:left;padding:10px 0}#seopress-header #seopress-admin h1 .seopress-quick-access li .dashicons{vertical-align:middle;background:#B7E1F3;border-radius:50%;padding:5px;margin-right:15px}#seopress-header #seopress-admin h1 .seopress-quick-access li a{text-decoration:none;font-size:15px;line-height:30px;text-transform:uppercase;display:block;width:100%;transition:all .3s linear;color:#3297d3}#seopress-header #seopress-admin h1 .seopress-quick-access li a:hover{color:#647a88}#seopress-header #seopress-admin h1 .seopress-info-version{position:relative;left:50px;top:0;font-size:14px;width:100px;display:block}#seopress-header #seopress-admin .wpc-info-version{font-size:14px;left:310px;position:absolute;text-indent:0;top:85px}#seopress-header #seopress-notice{float:right;line-height:40px}#seopress-header #seopress-notice p{font-size:16px}#seopress-header #seopress-notice .dashicons{color:#444;text-decoration:none;line-height:40px}#seopress-header #seopress-notice div.small{font-size:13px;display:inline}#seopress-footer-credits{font-style:italic}#seopress-footer-credits .wporg-ratings{display:inline}#seopress-footer-credits .wporg-ratings a{text-decoration:none}.seopress-option .seopress-settings{float:left;max-width:750px;width:100%}.seopress-option #seopress-edd-license-btn,.seopress-option #seopress-refresh{float:left}.wp-admin-ui_page_seopress-import-export .postbox{margin-right:20px}.seopress-option #side-sortables .accordion-section-content{padding:0}.seopress-option .seopress-settings label{margin:0 0 0 10px}.wrap-seopress-tab-content{position:relative;display:block;width:100%;height:100%;max-width:53rem;margin:20px auto 0}#seopress-admin-tabs .seopress-tab{padding:1.5rem;visibility:hidden;overflow:hidden;opacity:0;transition:all .2s ease;transform:translateX(-15px);position:absolute;top:0}#seopress-admin-tabs .seopress-tab.active{visibility:visible;overflow:inherit;opacity:1;transform:translateX(0);display:inherit;position:relative}#seopress-tabs .seopress-tab{padding:1.5rem;display:none}#seopress-tabs .seopress-tab.active{display:block}.seopress-option input[type=text],.seopress-option input[type=password],.seopress-option textarea{min-width:485px}#seopress_htaccess_file{width:100%}.seopress-option textarea{min-height:100px}.seopress-option #side-sortables .highlight{border:1px dashed #ccc;display:block;width:382px;height:40px;background:0 0}.seopress-option #side-sortables .accordion-section{margin-bottom:9px;width:382px}.seopress-option #side-sortables .accordion-section h3{cursor:move;border:1px solid #E5E5E5;background:#FAFAFA}.seopress-option #side-sortables .accordion-section .inside{padding:10px 10px 24px;border-width:0 1px 1px;border-style:solid;box-shadow:0 1px 1px rgba(0,0,0,.04);border-color:#e5e5e5;display:inline-block;width:calc(100% - 22px);height:100%}.seopress-option #side-sortables .accordion-section .inside ul{padding-left:10px;margin-bottom:0;padding-top:2px;padding-bottom:2px}.seopress-option #side-sortables .accordion-section .inside ul li{border-left:2px solid #ccc;padding-left:10px;margin-bottom:10px}.seopress-option #side-sortables .accordion-section .inside ul li:first-child{border-bottom:1px dotted #E5E5E5;border-left:0;padding-bottom:10px;font-weight:700;margin-left:-15px;margin-bottom:10px}.seopress-notice #message{margin:5px 10px 2px 0}#seopress-notice a{position:relative;text-decoration:none}#seopress-notice a .tooltip{white-space:pre;z-index:200;padding:2px 5px;font-weight:500;font-size:12px;color:#aab7c4;background:#fff;box-shadow:0 1px 2px 0 rgba(49,49,93,.1),0 0 1px 0 rgba(0,0,0,.1);border-radius:2px;position:absolute;opacity:0;top:30px;transition:opacity .2s ease;visibility:hidden;line-height:20px;left:-100%;overflow:hidden}#seopress-notice a:hover .tooltip{opacity:1;visibility:visible}.seopress-page-list{margin:0}.seopress-option .dashicons,.seopress-page-list .dashicons{vertical-align:middle;margin-right:5px}#seopress-admin-tabs .ui-tabs-nav,#seopress-notifications-center,.seopress-page-list .seopress-feature,.seopress-useful-tools{background:linear-gradient(172deg,#f5f7fa,#f5f7fa 200px,#fff 0,#fff);margin:0 auto 20px;box-shadow:0 15px 35px rgba(50,50,93,.1),0 5px 15px rgba(0,0,0,.2);max-width:50rem;padding:1.5rem;width:100%;border-radius:4px}#seopress-notifications-center,.seopress-useful-tools{background:linear-gradient(172deg,#f5f7fa,#f5f7fa 400px,#fff 0,#fff)}.seopress-page-list .seopress-feature{padding:0 1.5rem;position:relative;overflow:hidden;transition-duration:.15s}.seopress-page-list .seopress-feature p{color:#6b7c93;font-size:14px;margin-bottom:30px}#seopress-notifications-center{margin-top:0}#seopress-admin-tabs .ui-tabs-nav{display:flex;padding-top:1rem;padding-bottom:0}.seopress-page-list .seopress-feature .img-tool{height:100px;width:100px;background:#c4f0ff;position:absolute;border-radius:50%;box-shadow:0 4px 6px rgba(50,50,93,.1),0 1px 3px rgba(0,0,0,.1);top:calc(50% - 50px);left:20px}.seopress-page-list .seopress-feature .img-tool .dashicons{color:#217AB7;font-size:60px;text-align:left;vertical-align:middle;width:100%;height:100%;position:absolute;top:calc(50% - 30px);left:calc(50% - 30px);margin:0}.seopress-page-list .seopress-feature .inner{margin:0;display:block;padding:2rem 0 2rem 120px}.seopress-page-list .seopress-feature h3{margin:0;font-size:16px;font-weight:700;color:#3297d3;text-transform:uppercase}.seopress-page-list .seopress-feature h3 .dashicons{font-size:16px;margin-left:5px;vertical-align:middle}#seopress-content .seopress-page-list .seopress-feature a,#seopress-notifications-center .seopress-alert .button-primary,.seopress-option .seopress-feature a,.seopress-useful-tools .widget .button-primary{color:#fff;text-decoration:none;border:none;border-radius:4px;padding-right:20px;padding-left:20px;line-height:34px;text-transform:uppercase;min-height:34px;transition:all .3s linear;text-shadow:none;box-shadow:0 7px 14px rgba(50,50,93,.1),0 3px 6px rgba(0,0,0,.1);margin-right:15px;background:#6A7C94;position:relative;height:auto}#seopress-content .seopress-page-list .seopress-feature a.button-secondary{padding-left:30px}#seopress-content .seopress-page-list .seopress-feature a.button-secondary::before,#seopress-notifications-center .seopress-alert .button-primary::after{content:"\f111";font-family:Dashicons;position:absolute;left:10px;top:1px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-size:16px}#seopress-content .seopress-page-list .seopress-feature a.view-redirects,#seopress-notifications-center .seopress-alert .button-primary,.seopress-option .button{background:#fff;border:none;color:#6b7c93;font-weight:500;transition:all .3s linear;text-shadow:none;text-transform:uppercase;padding-right:20px;padding-left:20px;line-height:34px;min-height:34px;margin-bottom:10px;border-radius:4px;box-shadow:0 7px 14px rgba(50,50,93,.1),0 3px 6px rgba(0,0,0,.1);vertical-align:baseline}.seopress-option .button .dashicons{font-size:16px}#seopress-content .seopress-page-list .seopress-feature a.view-redirects{padding-left:35px}#seopress-notifications-center .seopress-alert .button-primary::after{content:"\f344";left:inherit;right:10px}#seopress-content .seopress-page-list .seopress-feature a.view-redirects::before{content:"\f177"}#seopress-content .seopress-page-list .seopress-feature a:hover,#seopress-notifications-center .seopress-alert .button-primary:hover,.seopress-option .button:hover,.seopress-option .seopress-feature a:hover,.seopress-useful-tools .widget .button-primary:hover{text-decoration:none;color:#FFF;background:#232323}#seopress-content .seopress-page-list .seopress-feature .seopress-doc:focus,#seopress-content .seopress-page-list .seopress-feature a:focus,#seopress-content .seopress-page-list .seopress-feature a:focus.button-secondary,#seopress-content a:focus,#seopress-notifications-center .seopress-alert .button-primary:focus,.seopress-option #seopress-tabs .seopress-doc:focus,.seopress-option .seopress-feature a:focus,.seopress-styles .seopress-option #seopress-yoast-migrate:focus,.seopress-styles .seopress-option #submit:focus,.seopress-useful-tools .widget .button-primary:focus{box-shadow:0 1px 0 #0073aa,0 0 2px 1px #33b3db;background:#008ec2;border-color:#006799;color:#fff}#seopress-admin-tabs .nav-tab-wrapper a.nav-tab-active:focus{color:inherit}#seopress-notifications-center .seopress-alert .button-primary{float:right;margin:5px 0;padding-right:30px}#seopress-notifications-center h2,.seopress-useful-tools h2{margin:5px 0 15px 5px;display:inline-block;width:100%}#seopress-notifications-center .dashicons,.seopress-useful-tools .dashicons{margin-right:10px}#seopress-notifications-center .seopress-alert{padding:0;display:inline-block;margin:0 10px 10px 5px;border-bottom:1px solid #e6ebf1;width:calc(100% - 30px);position:relative;transition:all 150ms ease}#seopress-notifications-center .seopress-alert:hover{cursor:default}#seopress-notifications-center .seopress-alert p{display:inline-block}#seopress-notifications-center .seopress-alert .impact{padding:4px 5px;color:#fff;text-transform:uppercase;font-weight:700;font-size:10px;border-radius:4px}#seopress-notifications-center .seopress-alert .impact.low{background:#FFDE24;color:#6b6543}#seopress-notifications-center .seopress-alert .impact.medium{background:#e39f48}#seopress-notifications-center .seopress-alert .impact.high{background:#e25950}#seopress-notifications-center .seopress-alert .dashicons{color:#FFC82C}#seopress-notifications-center .dashicons.remove-notice{position:absolute;right:-55px;color:#6b7c93;font-size:30px;height:30px;width:30px;top:2px;padding:5px;transition:all .3s linear}#seopress-notifications-center .dashicons.remove-notice:hover{background:#e25950;color:#fff;cursor:pointer;border-radius:4px}#seopress-content .seopress-page-list .seopress-feature .seopress-doc,.seopress-option #seopress-tabs .seopress-doc{background:0 0;padding:0;width:inherit;height:inherit;text-decoration:none;color:inherit;box-shadow:none;position:absolute;right:0}#seopress-content .seopress-page-list .seopress-feature .seopress-doc:hover,.seopress-option #seopress-tabs .seopress-doc:hover{color:#747474;background:0 0}.seopress-option .seopress-table{background:#FFF;border:1px solid #ccc}.seopress-option .seopress-table th{padding:15px 10px;vertical-align:middle}.wp-admin-ui_page_seopress-roles .seopress-option .seopress-table th{min-width:200px}.seopress-option .seopress-table .seopress-settings-section{background:#f1f1f1}.seopress-option .seopress-table .seopress-table-head .seopress-feature{border-bottom:1px solid #ccc;font-weight:700;background:#f1f1f1}#seopress-content .feature-state,.seopress-option .feature-state{font-style:italic;font-size:12px;display:inline-block;background:rgba(0,140,135,.1);padding:5px 12px;border-radius:25px;color:#444;font-weight:400;text-transform:none;-moz-osx-font-smoothing:initial;-webkit-font-smoothing:initial}.seopress-button,.seopress-option .tag-title{cursor:pointer;font-weight:500;border-radius:4px;transition:all .3s linear}#seopress-content .feature-state-on,#seopress-content .feature-state.feature-state-on,.seopress-option .feature-state-on,.seopress-option .feature-state.feature-state-on{display:inline}#seopress-content .feature-state-off,.seopress-option .feature-state-off{display:none}.seopress-option .postbox .inside li{list-style:square inside;padding-left:5px}#tab_seopress_page_speed .inside li{list-style:none;padding-left:0;word-break:break-word}.seopress-option .log{margin:0;text-transform:uppercase;display:inline-block;vertical-align:middle;padding:5px;color:rgba(19,191,17,1);font-style:italic}.seopress-option input[type=text].seopress-admin-menu-input{min-width:inherit;width:100%}.seopress_page_seopress-import-export .postbox{width:calc(100% - 20px)}.seopress-option .wrap-tags{position:relative;display:inline-block;width:100%;margin-bottom:10px}.seopress-option .tag-title{padding:4px 8px;position:relative;top:5px;left:0;font-size:11px;float:left;margin-right:5px;user-select:none;margin-bottom:5px;background:#fff;color:#6b7c93;box-shadow:0 0 0 .5px rgba(50,50,93,.17),0 2px 5px 0 rgba(50,50,93,.12),0 3px 9px 0 rgba(50,50,93,.08),0 1px 1.5px 0 rgba(0,0,0,.08),0 1px 2px 0 rgba(0,0,0,.08)}.seopress-option .tag-title:active,.seopress-option .tag-title:focus,.seopress-option .tag-title:hover{background:#232323;color:#fff;user-select:none}.seopress-option .tag-title .dashicons{padding:0;height:16px;width:16px;font-size:16px;margin-right:5px;vertical-align:middle}.seopress-button{text-transform:uppercase;background:#fff;border-color:#c8d7e1;border-style:solid;border-width:1px 1px 2px;color:#2e4453;display:inline-block;margin:0;outline:0;overflow:hidden;text-overflow:ellipsis;text-decoration:none;vertical-align:top;box-sizing:border-box;font-size:14px;line-height:21px;padding:7px 14px 9px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.seopress-button:hover{border-color:#a8bece;color:#00a0d2}.seopress-button .dashicons{vertical-align:middle}#seopress-content #tab_seopress_seo_tools.seopress-useful-tools .widget{border-right:1px solid #e6ebf1;margin:0;padding:0 20px;width:calc(50% - 2px);box-sizing:border-box;display:inline-block;vertical-align:top}#seopress-content #tab_seopress_seo_tools.seopress-useful-tools .widget:first-child{width:100%;display:block;clear:both;border-right:none;border-bottom:1px solid #e6ebf1;padding-bottom:20px;margin-bottom:20px}#seopress-content #tab_seopress_seo_tools.seopress-useful-tools .widget:last-child{border-right:none}#seopress-content .seopress-useful-tools .widget-reverse ul{background:#fff}#seopress-content .seopress-useful-tools .widget-reverse li{padding:10px;margin:0;border-bottom:1px solid #e6ebf1}#seopress-content .seopress-useful-tools .widget-reverse li:hover{background:#F5F7FA}#seopress-content .seopress-useful-tools .widget-title{text-transform:uppercase;margin:0 0 10px;font-size:13px;padding:10px 0;color:#24b47e}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank{margin:0 0 10px;width:100%;box-sizing:border-box;display:block}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_reach{font-size:30px;font-weight:700;display:inline-block;width:100%;padding:0 0 20px;text-align:right}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_reach .highlight{display:inline-block;font-size:16px;background:inherit;width:100%;margin-bottom:10px}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_delta{font-size:14px;display:inline-block;vertical-align:top;text-align:left;margin:0 20px 0 0}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_delta{width:100%;text-align:right;font-size:18px;font-style:italic}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank{text-align:left}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country .highlight,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank .highlight{background:0 0;font-weight:700}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country{margin-right:0}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank{margin-left:5px}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .minus .dashicons,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .plus .dashicons{font-style:italic}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .plus{color:green}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .minus{color:red}#seopress-content .seopress-reverse label,#seopress-content .seopress-useful-tools .widget-whois ul li span{font-weight:700}#seopress-content #seopress-reverse-url{width:100%;margin:10px 0}#seopress-content .widget-reverse p{margin:0}.post-type-seopress_backlinks .wp-list-table .column-seopress_backlinks_url{width:35%}.post-type-seopress_backlinks .wp-list-table .column-seopress_backlinks_anchor_text{width:20%}.seopress-styles #screen-meta{margin:0;position:relative;background-color:#fff;border-bottom:0 solid #f2f2f2;border-top:none;-webkit-box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08);box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08);top:0}.seopress-styles #contextual-help-link-wrap,.seopress-styles #screen-options-link-wrap{float:right;height:28px;margin:0 0 0 6px;border:1px solid #f2f2f2;border-top:none;background:#fff;-webkit-box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08);box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08)}.seopress-styles #screen-meta-links .show-settings{box-shadow:none}.seopress-styles #screen-meta-links .screen-meta-toggle{position:relative;top:0;z-index:2000}.seopress-styles #contextual-help-back{background:#f8fafd}.seopress-styles .contextual-help-tabs .active{border-left:2px solid #3297d3;background:#f8fafd}#seopress-content input.toggle,.seopress-option input.toggle{max-height:0;max-width:0;opacity:0}#seopress-content input.toggle+label,.seopress-option input.toggle+label{display:inline-block;position:relative;box-shadow:inset 0 0 0 1px #d5d5d5;text-indent:-5000px;height:30px;width:50px;border-radius:15px}.wrap-toggle-checkboxes input.toggle+label{float:left;margin-right:10px}#seopress-content input.toggle+label:before,.seopress-option input.toggle+label:before{content:"";position:absolute;display:block;height:30px;width:30px;top:0;left:0;border-radius:15px;background:rgba(19,191,17,0);-moz-transition:.25s ease-in-out;-webkit-transition:.25s ease-in-out;transition:.25s ease-in-out}#seopress-content input.toggle+label:after,.seopress-option input.toggle+label:after{content:"";position:absolute;display:block;height:30px;width:30px;top:0;left:0;border-radius:15px;background:#fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2),0 2px 4px rgba(0,0,0,.2);-moz-transition:.25s ease-in-out;-webkit-transition:.25s ease-in-out;transition:.25s ease-in-out}#seopress-content input.toggle[data-toggle="1"]+label:before,.seopress-option input.toggle[data-toggle="1"]+label:before{width:50px;background:rgba(19,191,17,1)}#seopress-content input.toggle[data-toggle="1"]+label:after,.seopress-option input.toggle[data-toggle="1"]+label:after{left:20px;box-shadow:inset 0 0 0 1px rgba(19,191,17,1),0 2px 4px rgba(0,0,0,.2)}#seopress-content .seopress-page-list{position:relative}#seopress-notice-save{position:fixed;color:#fff;padding:15px 40px;font-size:14px;text-align:center;border-radius:50px;background:rgba(74,184,102,.75);top:50px;right:20px;z-index:500}.seopress_page_seopress-pro-page #wpcontent{background:#F4F7FA}.seopress-option .wrap div.nav-tab-wrapper{border-bottom:1px solid RGB(238,238,238);margin:0;padding:10px;line-height:inherit;position:sticky;top:100px;background:#fff;z-index:95;font-style:23px;font-weight:400}#seopress-admin-tabs.wrap div.nav-tab-wrapper{margin:20px auto 0;max-width:53rem;width:100%;border-bottom:0;padding:0;line-height:inherit;position:sticky;background:#f8fafd;z-index:100;top:31px;font-style:23px;font-weight:400}#seopress-admin-tabs #tab_seopress_notifications.seopress-tab{background:0 0;padding:0}#seopress-admin-tabs .nav-tab,.seopress-option .nav-tab{border:0 solid #ccc;background:0 0;opacity:.5;padding:5px 8px;transition:opacity .3s linear;color:#647a88;font-weight:300;float:none;display:inline-block}#seopress-admin-tabs .nav-tab-active,#seopress-admin-tabs .nav-tab-active:hover,.seopress-option .about-wrap h2 .nav-tab-active,.seopress-option .nav-tab-active,.seopress-option .nav-tab-active:hover{background-color:#fff}#seopress-admin-tabs .nav-tab-active,#seopress-admin-tabs .nav-tab-active:focus,#seopress-admin-tabs .nav-tab-active:focus:active,#seopress-admin-tabs .nav-tab-active:hover,#seopress-admin-tabs .nav-tab:focus,.nav-tab-active:focus,.seopress-option .nav-tab-active,.seopress-option .nav-tab-active:focus:active,.seopress-option .nav-tab-active:hover,.seopress-option .nav-tab:focus{background:0 0;opacity:1;outline:0;font-weight:600}#seopress-admin-tabs .nav-tab:hover,.seopress-option .nav-tab:hover{opacity:1}#seopress-admin-tabs .nav-tab:focus,.seopress-option .nav-tab:focus{outline:0;box-shadow:none}
assets/js/seopress-counters.js CHANGED
@@ -1,3 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  //Title tag counters / live preview
2
  jQuery(document).ready(function(){
3
  jQuery("#seopress_titles_title_counters").after("<div id=\"seopress_titles_title_counters_val\">/ 60</div>");
1
+ //Retreive title / meta-desc from source code
2
+ jQuery(document).ready(function(){
3
+ jQuery.ajax({
4
+ method : 'GET',
5
+ url : seopressAjaxRealPreview.seopress_real_preview,
6
+ data: {
7
+ action: 'seopress_do_real_preview',
8
+ post_id: jQuery('#seopress-tabs').attr('data_id'),
9
+ tax_name: jQuery('#seopress-tabs').attr('data_tax'),
10
+ origin: jQuery('#seopress-tabs').attr('data_origin'),
11
+ _ajax_nonce: seopressAjaxRealPreview.seopress_nonce,
12
+ },
13
+ success : function( data ) {
14
+ jQuery( '#seopress_cpt .google-snippet-preview .snippet-title' ).html(data.data.title);
15
+ jQuery( '#seopress_cpt .google-snippet-preview .snippet-title-default' ).html(data.data.title);
16
+ jQuery( '#seopress_cpt .google-snippet-preview .snippet-description' ).html(data.data.meta_desc);
17
+ jQuery( '#seopress_cpt .google-snippet-preview .snippet-description-default' ).html(data.data.meta_desc);
18
+ },
19
+ });
20
+ });
21
+
22
  //Title tag counters / live preview
23
  jQuery(document).ready(function(){
24
  jQuery("#seopress_titles_title_counters").after("<div id=\"seopress_titles_title_counters_val\">/ 60</div>");
contributors.txt CHANGED
@@ -6,6 +6,10 @@ Developers:
6
  SEO consultant:
7
  - Alan Cladx: @cladxxx
8
 
 
 
 
 
9
  Beta testers / feedbacks:
10
  - Mickael Gris: mickael.gris@gmail.com / @mickaelgris
11
  - Aurélien Denis: contact@wp-alacarte.com / @wpchannel
6
  SEO consultant:
7
  - Alan Cladx: @cladxxx
8
 
9
+ A11Y:
10
+ - Thierry Pigot: @thierrypigot
11
+ - Claire Bizingre: @accesbilis
12
+
13
  Beta testers / feedbacks:
14
  - Mickael Gris: mickael.gris@gmail.com / @mickaelgris
15
  - Aurélien Denis: contact@wp-alacarte.com / @wpchannel
inc/admin/admin-metaboxes-content-analysis-form.php CHANGED
@@ -4,7 +4,7 @@ echo '<div id="seopress-analysis-tabs">
4
  <p>
5
  '.__('Enter a few keywords for analysis and help you write optimized content.','wp-seopress').'
6
  <label for="seopress_analysis_target_kw_meta">'. __( 'Target keywords', 'wp-seopress' ) .'</label>
7
- <input id="seopress_analysis_target_kw_meta" type="text" name="seopress_analysis_target_kw" placeholder="'.esc_html__('Enter your target keywords','wp-seopress').'" value="'.$seopress_analysis_target_kw.'" />
8
  <span class="howto">'.__('Separate target keywords with commas','wp-seopress').'</span>
9
  </p>';
10
 
4
  <p>
5
  '.__('Enter a few keywords for analysis and help you write optimized content.','wp-seopress').'
6
  <label for="seopress_analysis_target_kw_meta">'. __( 'Target keywords', 'wp-seopress' ) .'</label>
7
+ <input id="seopress_analysis_target_kw_meta" type="text" name="seopress_analysis_target_kw" placeholder="'.esc_html__('Enter your target keywords','wp-seopress').'" aria-label="'.__('Target keywords','wp-seopress').'" value="'.$seopress_analysis_target_kw.'" />
8
  <span class="howto">'.__('Separate target keywords with commas','wp-seopress').'</span>
9
  </p>';
10
 
inc/admin/admin-metaboxes-form.php CHANGED
@@ -4,47 +4,11 @@ defined( 'ABSPATH' ) or die( 'Please don&rsquo;t call the plugin directly. Thank
4
 
5
  global $typenow;
6
  global $pagenow;
 
7
 
8
  if ( $pagenow == 'post-new.php' || $pagenow == 'post.php' ) {
9
-
10
- function seopress_titles_title($seopress_titles_title) {
11
- if ($seopress_titles_title !='') {
12
- return $seopress_titles_title;
13
- } else {
14
- return get_the_title().' - '.get_bloginfo('name');
15
- }
16
- }
17
-
18
- function seopress_titles_single_desc_option() {
19
- global $post;
20
- $seopress_get_current_cpt = get_post_type($post);
21
-
22
- $seopress_titles_single_desc_option = get_option("seopress_titles_option_name");
23
- if ( ! empty ( $seopress_titles_single_desc_option ) ) {
24
- foreach ($seopress_titles_single_desc_option as $key => $seopress_titles_single_desc_value)
25
- $options[$key] = $seopress_titles_single_desc_value;
26
- if (isset($seopress_titles_single_desc_option['seopress_titles_single_titles'][$seopress_get_current_cpt]['description'])) {
27
- return $seopress_titles_single_desc_option['seopress_titles_single_titles'][$seopress_get_current_cpt]['description'];
28
- }
29
- }
30
- }
31
-
32
- function seopress_titles_desc($seopress_titles_desc) {
33
- if ($seopress_titles_desc !='') {
34
- return $seopress_titles_desc;
35
- } else {
36
- global $post;
37
- if (seopress_titles_single_desc_option() !='') {
38
- return seopress_titles_single_desc_option();
39
- } elseif ( has_excerpt( $post->ID ) ) {
40
- // This post has excerpt
41
- return substr(wp_strip_all_tags($post->post_excerpt, true), 0, 320);
42
- } else {
43
- // This post has no excerpt
44
- return substr(wp_strip_all_tags($post->post_content, true), 0, 320);
45
- }
46
- }
47
- }
48
 
49
  function seopress_titles_single_cpt_date_option() {
50
  global $post;
@@ -66,40 +30,43 @@ if ( $pagenow == 'post-new.php' || $pagenow == 'post.php' ) {
66
  }
67
  }
68
  } elseif ( $pagenow =='term.php' || $pagenow =='edit-tags.php') {
69
-
70
- function seopress_titles_title($seopress_titles_title) {
71
- global $tag;
72
- if ($seopress_titles_title !='') {
73
- return $seopress_titles_title;
74
- } elseif ($tag) {
75
- return $tag->name.' - '.get_bloginfo('name');
76
- } else {
77
- return get_the_title().' - '.get_bloginfo('name');
78
- }
79
- }
 
 
 
80
 
81
- function seopress_titles_single_desc_option() {
82
- global $post;
83
- $seopress_get_current_cpt = get_post_type($post);
84
 
85
- $seopress_titles_single_desc_option = get_option("seopress_titles_option_name");
86
- if ( ! empty ( $seopress_titles_single_desc_option ) ) {
87
- foreach ($seopress_titles_single_desc_option as $key => $seopress_titles_single_desc_value)
88
- $options[$key] = $seopress_titles_single_desc_value;
89
- if (isset($seopress_titles_single_desc_option['seopress_titles_single_titles'][$seopress_get_current_cpt]['description'])) {
90
- return $seopress_titles_single_desc_option['seopress_titles_single_titles'][$seopress_get_current_cpt]['description'];
91
- }
92
- }
93
- }
94
 
95
- function seopress_titles_desc($seopress_titles_desc) {
96
- global $tag;
97
- if ($seopress_titles_desc !='') {
98
- return $seopress_titles_desc;
99
- } elseif ($tag) {
100
- return $tag->description;
101
- }
102
- }
103
  }
104
 
105
  function seopress_redirections_value($seopress_redirections_value) {
@@ -117,7 +84,7 @@ if ( $pagenow =='term.php' || $pagenow =='edit-tags.php') {
117
  <div class="inside">';
118
  }
119
 
120
- echo '<div id="seopress-tabs">';
121
  echo'<ul>';
122
  if ("seopress_404" != $typenow) {
123
  echo '<li><a href="#tabs-1"><span class="dashicons dashicons-editor-table"></span>'. __( 'Titles settings', 'wp-seopress' ) .'</a></li>
@@ -149,7 +116,7 @@ echo '<div id="seopress-tabs">';
149
  echo '<div class="box-left">
150
  <p>
151
  <label for="seopress_titles_title_meta">'. __( 'Title', 'wp-seopress' ) .'</label>
152
- <input id="seopress_titles_title_meta" type="text" name="seopress_titles_title" placeholder="'.esc_html__('Enter your title','wp-seopress').'" value="'.$seopress_titles_title.'" />
153
  </p>
154
  <div class="wrap-seopress-counters">
155
  <div id="seopress_titles_title_counters"></div>
@@ -157,7 +124,7 @@ echo '<div id="seopress-tabs">';
157
  </div>
158
  <p>
159
  <label for="seopress_titles_desc_meta">'. __( 'Meta description', 'wp-seopress' ) .'</label>
160
- <textarea id="seopress_titles_desc_meta" style="width:100%" rows="8" name="seopress_titles_desc" placeholder="'.esc_html__('Enter your meta description','wp-seopress').'" value="'.$seopress_titles_desc.'">'.$seopress_titles_desc.'</textarea>
161
  </p>
162
  <div class="wrap-seopress-counters">
163
  <div id="seopress_titles_desc_counters"></div>
@@ -168,7 +135,7 @@ echo '<div id="seopress-tabs">';
168
  <div class="google-snippet-preview">
169
  <h3>'.__('Google Snippet Preview','wp-seopress').'</h3>
170
  <p>'.__('This is what your page will look like in Google search results','wp-seopress').'</p>
171
- <div class="snippet-title">'.seopress_titles_title($seopress_titles_title).'</div>
172
  <div class="snippet-title-custom" style="display:none"></div>';
173
  global $tag;
174
  if (get_the_title()) {
@@ -182,9 +149,9 @@ echo '<div id="seopress-tabs">';
182
  if ( $pagenow == 'post-new.php' || $pagenow == 'post.php' ) {
183
  echo seopress_display_date_snippet();
184
  }
185
- echo '<div class="snippet-description">'.seopress_titles_desc($seopress_titles_desc).'...</div>
186
  <div class="snippet-description-custom" style="display:none"></div>
187
- <div class="snippet-description-default" style="display:none">'.seopress_titles_desc($seopress_titles_desc).'</div>';
188
  echo '</div>
189
  </div>
190
  </div>
@@ -227,13 +194,13 @@ echo '<div class="snippet-description">'.seopress_titles_desc($seo
227
  </p>
228
  <p>
229
  <label for="seopress_robots_canonical_meta">'. __( 'Canonical URL', 'wp-seopress' ) .'</label>
230
- <input id="seopress_robots_canonical_meta" type="text" name="seopress_robots_canonical" placeholder="'.esc_html__('Default value: ','wp-seopress').get_permalink().'" value="'.$seopress_robots_canonical.'" />
231
  </p>';
232
  if ( $pagenow == 'post-new.php' || $pagenow == 'post.php' ) {
233
  if (is_plugin_active('wp-seopress-pro/seopress-pro.php')) {
234
  echo '<p>
235
  <label for="seopress_robots_breadcrumbs_meta">'. __( 'Custom breadcrumbs', 'wp-seopress' ) .'</label>
236
- <input id="seopress_robots_breadcrumbs_meta" type="text" name="seopress_robots_breadcrumbs" placeholder="'.esc_html__('Enter a custom value, useful if your title is too long','wp-seopress').'" value="'.$seopress_robots_breadcrumbs.'" />
237
  </p>';
238
  }
239
  }
@@ -244,33 +211,33 @@ echo '<div class="snippet-description">'.seopress_titles_desc($seo
244
  <span class="dashicons dashicons-external"></span><a href="https://developers.facebook.com/tools/debug/sharing/?q='.get_permalink(get_the_id()).'" target="_blank">'.__('Ask Facebook to update his cache','wp-seopress').'</a>
245
  <p>
246
  <label for="seopress_social_fb_title_meta">'. __( 'Facebook Title', 'wp-seopress' ) .'</label>
247
- <input id="seopress_social_fb_title_meta" type="text" name="seopress_social_fb_title" placeholder="'.esc_html__('Enter your Facebook title','wp-seopress').'" value="'.$seopress_social_fb_title.'" />
248
  </p>
249
  <p>
250
  <label for="seopress_social_fb_desc_meta">'. __( 'Facebook description', 'wp-seopress' ) .'</label>
251
- <textarea id="seopress_social_fb_desc_meta" name="seopress_social_fb_desc" placeholder="'.esc_html__('Enter your Facebook description','wp-seopress').'" value="'.$seopress_social_fb_desc.'">'.$seopress_social_fb_desc.'</textarea>
252
  </p>
253
  <p>
254
  <label for="seopress_social_fb_img_meta">'. __( 'Facebook Thumbnail', 'wp-seopress' ) .'</label>
255
  <span class="advise">'. __('Minimum size: 200x200px', 'wp-seopress') .'</span>
256
- <input id="seopress_social_fb_img_meta" type="text" name="seopress_social_fb_img" placeholder="'.esc_html__('Select your default thumbnail','wp-seopress').'" value="'.$seopress_social_fb_img.'" />
257
  <input id="seopress_social_fb_img_upload" class="button" type="button" value="'.__('Upload an Image','wp-seopress').'" />
258
  </p>
259
  <br/>
260
  <span class="dashicons dashicons-twitter"></span>
261
  <p>
262
  <label for="seopress_social_twitter_title_meta">'. __( 'Twitter Title', 'wp-seopress' ) .'</label>
263
- <input id="seopress_social_twitter_title_meta" type="text" name="seopress_social_twitter_title" placeholder="'.esc_html__('Enter your Twitter title','wp-seopress').'" value="'.$seopress_social_twitter_title.'" />
264
  </p>
265
  <p>
266
  <label for="seopress_social_twitter_desc_meta">'. __( 'Twitter description', 'wp-seopress' ) .'</label>
267
- <textarea id="seopress_social_twitter_desc_meta" name="seopress_social_twitter_desc" placeholder="'.esc_html__('Enter your Twitter description','wp-seopress').'" value="'.$seopress_social_twitter_desc.'">'.$seopress_social_twitter_desc.'</textarea>
268
  </p>
269
  <p>
270
  <label for="seopress_social_twitter_img_meta">'. __( 'Twitter Thumbnail', 'wp-seopress' ) .'</label>
271
  <span class="advise">'. __('Minimum size: 160x160px', 'wp-seopress') .'</span>
272
  <input id="seopress_social_twitter_img_meta" type="text" name="seopress_social_twitter_img" placeholder="'.esc_html__('Select your default thumbnail','wp-seopress').'" value="'.$seopress_social_twitter_img.'" />
273
- <input id="seopress_social_twitter_img_upload" class="button" type="button" value="'.__('Upload an Image','wp-seopress').'" />
274
  </p>
275
  </div>';
276
  }
@@ -289,7 +256,7 @@ echo '<div class="snippet-description">'.seopress_titles_desc($seo
289
  <option ' . selected( '302', $seopress_redirections_type, false ) . ' value="302">'. __( '302 Found (HTTP 1.1) / Moved Temporarily (HTTP 1.0)', 'wp-seopress' ) .'</option>
290
  <option ' . selected( '307', $seopress_redirections_type, false ) . ' value="307">'. __( '307 Moved Temporarily (HTTP 1.1 Only)', 'wp-seopress' ) .'</option>
291
  </select>
292
- <input id="seopress_redirections_value_meta" type="text" name="seopress_redirections_value" placeholder="'.esc_html__('Enter your new URL','wp-seopress').'" value="'.$seopress_redirections_value.'" />
293
  <br><br>';
294
  if ($seopress_redirections_value !='' && $seopress_redirections_enabled =='yes') {
295
  if ( $pagenow == 'post-new.php' || $pagenow == 'post.php' ) {
@@ -352,7 +319,7 @@ You haven\'t used standout on your own articles more than seven times in the pas
352
  <p>
353
  <label for="seopress_news_keyboard_meta" id="seopress_news_keyboard">
354
  '. __( 'Google News Keywords <em>(max recommended limit: 12)</em>', 'wp-seopress' ) .'</label>
355
- <input id="seopress_news_keyboard_meta" type="text" name="seopress_news_keyboard" placeholder="'.esc_html__('Enter your Google News Keywords','wp-seopress').'" value="'.$seopress_news_keyboard.'" />
356
  </p>
357
  </div>';
358
  }
4
 
5
  global $typenow;
6
  global $pagenow;
7
+ $data_tax = '';
8
 
9
  if ( $pagenow == 'post-new.php' || $pagenow == 'post.php' ) {
10
+ $current_id = get_the_id();
11
+ $origin = 'post';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
 
13
  function seopress_titles_single_cpt_date_option() {
14
  global $post;
30
  }
31
  }
32
  } elseif ( $pagenow =='term.php' || $pagenow =='edit-tags.php') {
33
+ global $tag;
34
+ $current_id = $tag->term_id;
35
+ $origin = 'term';
36
+ $data_tax = $tag->taxonomy;
37
+ // function seopress_titles_title($seopress_titles_title) {
38
+ // global $tag;
39
+ // if ($seopress_titles_title !='') {
40
+ // return $seopress_titles_title;
41
+ // } elseif ($tag) {
42
+ // return $tag->name.' - '.get_bloginfo('name');
43
+ // } else {
44
+ // return get_the_title().' - '.get_bloginfo('name');
45
+ // }
46
+ // }
47
 
48
+ // function seopress_titles_single_desc_option() {
49
+ // global $post;
50
+ // $seopress_get_current_cpt = get_post_type($post);
51
 
52
+ // $seopress_titles_single_desc_option = get_option("seopress_titles_option_name");
53
+ // if ( ! empty ( $seopress_titles_single_desc_option ) ) {
54
+ // foreach ($seopress_titles_single_desc_option as $key => $seopress_titles_single_desc_value)
55
+ // $options[$key] = $seopress_titles_single_desc_value;
56
+ // if (isset($seopress_titles_single_desc_option['seopress_titles_single_titles'][$seopress_get_current_cpt]['description'])) {
57
+ // return $seopress_titles_single_desc_option['seopress_titles_single_titles'][$seopress_get_current_cpt]['description'];
58
+ // }
59
+ // }
60
+ // }
61
 
62
+ // function seopress_titles_desc($seopress_titles_desc) {
63
+ // global $tag;
64
+ // if ($seopress_titles_desc !='') {
65
+ // return $seopress_titles_desc;
66
+ // } elseif ($tag) {
67
+ // return $tag->description;
68
+ // }
69
+ // }
70
  }
71
 
72
  function seopress_redirections_value($seopress_redirections_value) {
84
  <div class="inside">';
85
  }
86
 
87
+ echo '<div id="seopress-tabs" data_id="'.$current_id.'" data_origin="'.$origin.'" data_tax="'.$data_tax.'">';
88
  echo'<ul>';
89
  if ("seopress_404" != $typenow) {
90
  echo '<li><a href="#tabs-1"><span class="dashicons dashicons-editor-table"></span>'. __( 'Titles settings', 'wp-seopress' ) .'</a></li>
116
  echo '<div class="box-left">
117
  <p>
118
  <label for="seopress_titles_title_meta">'. __( 'Title', 'wp-seopress' ) .'</label>
119
+ <input id="seopress_titles_title_meta" type="text" name="seopress_titles_title" placeholder="'.esc_html__('Enter your title','wp-seopress').'" aria-label="'.__('Title','wp-seopress').'" value="'.$seopress_titles_title.'" />
120
  </p>
121
  <div class="wrap-seopress-counters">
122
  <div id="seopress_titles_title_counters"></div>
124
  </div>
125
  <p>
126
  <label for="seopress_titles_desc_meta">'. __( 'Meta description', 'wp-seopress' ) .'</label>
127
+ <textarea id="seopress_titles_desc_meta" style="width:100%" rows="8" name="seopress_titles_desc" placeholder="'.esc_html__('Enter your meta description','wp-seopress').'" aria-label="'.__('Meta description','wp-seopress').'" value="'.$seopress_titles_desc.'">'.$seopress_titles_desc.'</textarea>
128
  </p>
129
  <div class="wrap-seopress-counters">
130
  <div id="seopress_titles_desc_counters"></div>
135
  <div class="google-snippet-preview">
136
  <h3>'.__('Google Snippet Preview','wp-seopress').'</h3>
137
  <p>'.__('This is what your page will look like in Google search results','wp-seopress').'</p>
138
+ <div class="snippet-title"></div>
139
  <div class="snippet-title-custom" style="display:none"></div>';
140
  global $tag;
141
  if (get_the_title()) {
149
  if ( $pagenow == 'post-new.php' || $pagenow == 'post.php' ) {
150
  echo seopress_display_date_snippet();
151
  }
152
+ echo '<div class="snippet-description">...</div>
153
  <div class="snippet-description-custom" style="display:none"></div>
154
+ <div class="snippet-description-default" style="display:none"></div>';
155
  echo '</div>
156
  </div>
157
  </div>
194
  </p>
195
  <p>
196
  <label for="seopress_robots_canonical_meta">'. __( 'Canonical URL', 'wp-seopress' ) .'</label>
197
+ <input id="seopress_robots_canonical_meta" type="text" name="seopress_robots_canonical" placeholder="'.esc_html__('Default value: ','wp-seopress').get_permalink().'" aria-label="'.__('Canonical URL','wp-seopress').'" value="'.$seopress_robots_canonical.'" />
198
  </p>';
199
  if ( $pagenow == 'post-new.php' || $pagenow == 'post.php' ) {
200
  if (is_plugin_active('wp-seopress-pro/seopress-pro.php')) {
201
  echo '<p>
202
  <label for="seopress_robots_breadcrumbs_meta">'. __( 'Custom breadcrumbs', 'wp-seopress' ) .'</label>
203
+ <input id="seopress_robots_breadcrumbs_meta" type="text" name="seopress_robots_breadcrumbs" placeholder="'.esc_html__('Enter a custom value, useful if your title is too long','wp-seopress').'" aria-label="'.__('Custom breadcrumbs','wp-seopress').'" value="'.$seopress_robots_breadcrumbs.'" />
204
  </p>';
205
  }
206
  }
211
  <span class="dashicons dashicons-external"></span><a href="https://developers.facebook.com/tools/debug/sharing/?q='.get_permalink(get_the_id()).'" target="_blank">'.__('Ask Facebook to update his cache','wp-seopress').'</a>
212
  <p>
213
  <label for="seopress_social_fb_title_meta">'. __( 'Facebook Title', 'wp-seopress' ) .'</label>
214
+ <input id="seopress_social_fb_title_meta" type="text" name="seopress_social_fb_title" placeholder="'.esc_html__('Enter your Facebook title','wp-seopress').'" aria-label="'.__('Facebook Title','wp-seopress').'" value="'.$seopress_social_fb_title.'" />
215
  </p>
216
  <p>
217
  <label for="seopress_social_fb_desc_meta">'. __( 'Facebook description', 'wp-seopress' ) .'</label>
218
+ <textarea id="seopress_social_fb_desc_meta" name="seopress_social_fb_desc" placeholder="'.esc_html__('Enter your Facebook description','wp-seopress').'" aria-label="'.__('Facebook description','wp-seopress').'" value="'.$seopress_social_fb_desc.'">'.$seopress_social_fb_desc.'</textarea>
219
  </p>
220
  <p>
221
  <label for="seopress_social_fb_img_meta">'. __( 'Facebook Thumbnail', 'wp-seopress' ) .'</label>
222
  <span class="advise">'. __('Minimum size: 200x200px', 'wp-seopress') .'</span>
223
+ <input id="seopress_social_fb_img_meta" type="text" name="seopress_social_fb_img" placeholder="'.esc_html__('Select your default thumbnail','wp-seopress').'" aria-label="'.__('Facebook Thumbnail','wp-seopress').'" value="'.$seopress_social_fb_img.'" />
224
  <input id="seopress_social_fb_img_upload" class="button" type="button" value="'.__('Upload an Image','wp-seopress').'" />
225
  </p>
226
  <br/>
227
  <span class="dashicons dashicons-twitter"></span>
228
  <p>
229
  <label for="seopress_social_twitter_title_meta">'. __( 'Twitter Title', 'wp-seopress' ) .'</label>
230
+ <input id="seopress_social_twitter_title_meta" type="text" name="seopress_social_twitter_title" placeholder="'.esc_html__('Enter your Twitter title','wp-seopress').'" aria-label="'.__('Twitter Title','wp-seopress').'" value="'.$seopress_social_twitter_title.'" />
231
  </p>
232
  <p>
233
  <label for="seopress_social_twitter_desc_meta">'. __( 'Twitter description', 'wp-seopress' ) .'</label>
234
+ <textarea id="seopress_social_twitter_desc_meta" name="seopress_social_twitter_desc" placeholder="'.esc_html__('Enter your Twitter description','wp-seopress').'" aria-label="'.__('Twitter description','wp-seopress').'" value="'.$seopress_social_twitter_desc.'">'.$seopress_social_twitter_desc.'</textarea>
235
  </p>
236
  <p>
237
  <label for="seopress_social_twitter_img_meta">'. __( 'Twitter Thumbnail', 'wp-seopress' ) .'</label>
238
  <span class="advise">'. __('Minimum size: 160x160px', 'wp-seopress') .'</span>
239
  <input id="seopress_social_twitter_img_meta" type="text" name="seopress_social_twitter_img" placeholder="'.esc_html__('Select your default thumbnail','wp-seopress').'" value="'.$seopress_social_twitter_img.'" />
240
+ <input id="seopress_social_twitter_img_upload" class="button" type="button" aria-label="'.__('Twitter Thumbnail','wp-seopress').'" value="'.__('Upload an Image','wp-seopress').'" />
241
  </p>
242
  </div>';
243
  }
256
  <option ' . selected( '302', $seopress_redirections_type, false ) . ' value="302">'. __( '302 Found (HTTP 1.1) / Moved Temporarily (HTTP 1.0)', 'wp-seopress' ) .'</option>
257
  <option ' . selected( '307', $seopress_redirections_type, false ) . ' value="307">'. __( '307 Moved Temporarily (HTTP 1.1 Only)', 'wp-seopress' ) .'</option>
258
  </select>
259
+ <input id="seopress_redirections_value_meta" type="text" name="seopress_redirections_value" placeholder="'.esc_html__('Enter your new URL','wp-seopress').'" aria-label="'.__('URL redirection','wp-seopress').'" value="'.$seopress_redirections_value.'" />
260
  <br><br>';
261
  if ($seopress_redirections_value !='' && $seopress_redirections_enabled =='yes') {
262
  if ( $pagenow == 'post-new.php' || $pagenow == 'post.php' ) {
319
  <p>
320
  <label for="seopress_news_keyboard_meta" id="seopress_news_keyboard">
321
  '. __( 'Google News Keywords <em>(max recommended limit: 12)</em>', 'wp-seopress' ) .'</label>
322
+ <input id="seopress_news_keyboard_meta" type="text" name="seopress_news_keyboard" placeholder="'.esc_html__('Enter your Google News Keywords','wp-seopress').'" aria-label="'.__('Google News Keywords <em>(max recommended limit: 12)</em>','wp-seopress').'" value="'.$seopress_news_keyboard.'" />
323
  </p>
324
  </div>';
325
  }
inc/admin/admin-metaboxes.php CHANGED
@@ -54,7 +54,14 @@ function seopress_display_seo_metaboxe() {
54
 
55
  function seopress_cpt($post){
56
  wp_enqueue_script( 'seopress-cpt-tabs-js', plugins_url( 'assets/js/seopress-tabs2.js', dirname(dirname(__FILE__ ))), array( 'jquery-ui-tabs' ));
 
57
  wp_enqueue_script( 'seopress-cpt-counters-js', plugins_url( 'assets/js/seopress-counters.js', dirname(dirname( __FILE__ ))), array( 'jquery' ), '1.1' );
 
 
 
 
 
 
58
 
59
  wp_enqueue_script( 'seopress-media-uploader-js', plugins_url('assets/js/seopress-media-uploader.js', dirname(dirname( __FILE__ ))), array('jquery'), '', false );
60
  wp_enqueue_media();
54
 
55
  function seopress_cpt($post){
56
  wp_enqueue_script( 'seopress-cpt-tabs-js', plugins_url( 'assets/js/seopress-tabs2.js', dirname(dirname(__FILE__ ))), array( 'jquery-ui-tabs' ));
57
+
58
  wp_enqueue_script( 'seopress-cpt-counters-js', plugins_url( 'assets/js/seopress-counters.js', dirname(dirname( __FILE__ ))), array( 'jquery' ), '1.1' );
59
+
60
+ $seopress_real_preview = array(
61
+ 'seopress_nonce' => wp_create_nonce('seopress_real_preview_nonce'),
62
+ 'seopress_real_preview' => admin_url('admin-ajax.php'),
63
+ );
64
+ wp_localize_script( 'seopress-cpt-counters-js', 'seopressAjaxRealPreview', $seopress_real_preview );
65
 
66
  wp_enqueue_script( 'seopress-media-uploader-js', plugins_url('assets/js/seopress-media-uploader.js', dirname(dirname( __FILE__ ))), array('jquery'), '', false );
67
  wp_enqueue_media();
inc/admin/admin-term-metaboxes.php CHANGED
@@ -39,6 +39,13 @@ function seopress_display_seo_term_metaboxe() {
39
  function seopress_tax($term) {
40
  wp_enqueue_script( 'seopress-cpt-tabs-js', plugins_url( 'assets/js/seopress-tabs2.js', dirname(dirname( __FILE__ ))), array( 'jquery-ui-tabs' ) );
41
  wp_enqueue_script( 'seopress-cpt-counters-js', plugins_url( 'assets/js/seopress-counters.js', dirname(dirname( __FILE__ ))), array( 'jquery' ), '1.1' );
 
 
 
 
 
 
 
42
  wp_enqueue_script( 'seopress-media-uploader-js', plugins_url('assets/js/seopress-media-uploader.js', dirname(dirname( __FILE__ ))), array('jquery'), '', false );
43
  wp_enqueue_media();
44
 
39
  function seopress_tax($term) {
40
  wp_enqueue_script( 'seopress-cpt-tabs-js', plugins_url( 'assets/js/seopress-tabs2.js', dirname(dirname( __FILE__ ))), array( 'jquery-ui-tabs' ) );
41
  wp_enqueue_script( 'seopress-cpt-counters-js', plugins_url( 'assets/js/seopress-counters.js', dirname(dirname( __FILE__ ))), array( 'jquery' ), '1.1' );
42
+
43
+ $seopress_real_preview = array(
44
+ 'seopress_nonce' => wp_create_nonce('seopress_real_preview_nonce'),
45
+ 'seopress_real_preview' => admin_url('admin-ajax.php'),
46
+ );
47
+ wp_localize_script( 'seopress-cpt-counters-js', 'seopressAjaxRealPreview', $seopress_real_preview );
48
+
49
  wp_enqueue_script( 'seopress-media-uploader-js', plugins_url('assets/js/seopress-media-uploader.js', dirname(dirname( __FILE__ ))), array('jquery'), '', false );
50
  wp_enqueue_media();
51
 
inc/admin/admin.php CHANGED
@@ -62,6 +62,7 @@ class seopress_options
62
  //Post Types
63
  foreach (seopress_get_post_types() as $seopress_cpt_key => $seopress_cpt_value) {
64
  $seopress_titles_options['seopress_titles_single_titles'][$seopress_cpt_key]['title'] = '%%post_title%% - %%sitetitle%%';
 
65
  }
66
 
67
  //Taxonomies
@@ -677,7 +678,7 @@ class seopress_options
677
  <li><?php _e('Focus keywords','wp-seopress'); ?></li>
678
  </ul>
679
  <p style="color:red"><span class="dashicons dashicons-warning"></span> <?php _e( '<strong>WARNING:</strong> Migration will delete all SEOPress posts and terms metadata', 'wp-seopress' ); ?></p>
680
- <div id="seopress-yoast-migrate" class="button"><?php _e('Migrate now','wp-seopress'); ?></div>
681
  <span class="spinner"></span>
682
  <div class="log"></div>
683
  </div><!-- .inside -->
@@ -2982,7 +2983,7 @@ class seopress_options
2982
  echo '&nbsp;';
2983
  echo '<a href="http://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>';
2984
  echo '&nbsp;';
2985
- echo '<div id="seopress-flush-permalinks" class="button"><span class="dashicons dashicons-admin-links"></span>'.__('Flush permalinks','wp-seopress').'</div>';
2986
  echo '<span class="spinner"></span>';
2987
  }
2988
 
@@ -3003,47 +3004,47 @@ class seopress_options
3003
 
3004
  public function print_section_info_xml_sitemap_post_types()
3005
  {
3006
- print __('<p>Include / Exclude Post Types</p>', 'wp-seopress');
3007
  }
3008
 
3009
  public function print_section_info_xml_sitemap_taxonomies()
3010
  {
3011
- print __('<p>Include / Exclude Taxonomies</p>', 'wp-seopress');
3012
  }
3013
 
3014
  public function print_section_info_social_knowledge()
3015
  {
3016
- print __('<p>Configure Google Knowledge Graph</p>', 'wp-seopress');
3017
  }
3018
 
3019
  public function print_section_info_social_accounts()
3020
  {
3021
- print __('<p>Link your site with your social accounts</p>', 'wp-seopress');
3022
  }
3023
 
3024
  public function print_section_info_social_facebook()
3025
  {
3026
- print __('<p>Manage Open Graph datas</p>', 'wp-seopress');
3027
  }
3028
 
3029
  public function print_section_info_social_twitter()
3030
  {
3031
- print __('<p>Manage your Twitter card</p>', 'wp-seopress');
3032
  }
3033
 
3034
  public function print_section_info_google_analytics_enable()
3035
  {
3036
- print __('<p>Link your Google Analytics to your website</p>', 'wp-seopress');
3037
  }
3038
 
3039
  public function print_section_info_google_analytics_features()
3040
  {
3041
- print __('<p>Configure your Google Analytics tracking code</p>', 'wp-seopress');
3042
  }
3043
 
3044
  public function print_section_info_google_analytics_events()
3045
  {
3046
- print __('<p>Track events in Google Analytics</p>', 'wp-seopress');
3047
  }
3048
 
3049
  public function print_section_info_google_analytics_custom_dimensions()
@@ -3063,17 +3064,17 @@ class seopress_options
3063
 
3064
  public function print_section_info_advanced_advanced()
3065
  {
3066
- print __('<p>Advanced SEO options</p>', 'wp-seopress');
3067
  }
3068
 
3069
  public function print_section_info_advanced_appearance()
3070
  {
3071
- print __('<p>Customize SEOPress to fit your needs</p>', 'wp-seopress');
3072
  }
3073
 
3074
  public function print_section_info_advanced_security()
3075
  {
3076
- print __('<p>Manage security</p>', 'wp-seopress');
3077
  }
3078
 
3079
  /**
@@ -3084,7 +3085,7 @@ class seopress_options
3084
  public function seopress_titles_home_site_title_callback()
3085
  {
3086
  printf(
3087
- '<input type="text" id="seopress_titles_home_site_title" name="seopress_titles_option_name[seopress_titles_home_site_title]" placeholder="'.esc_html__('My awesome website','wp-seopress').'" value="%s"/>',
3088
  esc_html( $this->options['seopress_titles_home_site_title'])
3089
  );
3090
  echo '<div class="wrap-tags"><span id="seopress-tag-site-title" data-tag="%%sitetitle%%" class="tag-title"><span class="dashicons dashicons-plus"></span>'.__('Site Title','wp-seopress').'</span>';
@@ -3095,7 +3096,7 @@ class seopress_options
3095
  public function seopress_titles_home_site_desc_callback()
3096
  {
3097
  printf(
3098
- '<textarea id="seopress_titles_home_site_desc" name="seopress_titles_option_name[seopress_titles_home_site_desc]" placeholder="'.esc_html__('This is a cool website about Wookiees','wp-seopress').'">%s</textarea>',
3099
  esc_html( $this->options['seopress_titles_home_site_desc'])
3100
 
3101
  );
@@ -3962,7 +3963,7 @@ class seopress_options
3962
  $check = isset($this->options['seopress_xml_sitemap_html_mapping']) ? $this->options['seopress_xml_sitemap_html_mapping'] : NULL;
3963
 
3964
  printf(
3965
- '<input type="text" name="seopress_xml_sitemap_option_name[seopress_xml_sitemap_html_mapping]" placeholder="'.esc_html__('eg: 2, 28, 68','wp-seopress').'" value="%s"/>',
3966
  esc_html( $check )
3967
  );
3968
 
@@ -3976,7 +3977,7 @@ class seopress_options
3976
  $check = isset($this->options['seopress_xml_sitemap_html_exclude']) ? $this->options['seopress_xml_sitemap_html_exclude'] : NULL;
3977
 
3978
  printf(
3979
- '<input type="text" name="seopress_xml_sitemap_option_name[seopress_xml_sitemap_html_exclude]" placeholder="'.esc_html__('eg: 13, 8, 38','wp-seopress').'" value="%s"/>',
3980
  esc_html( $check )
3981
  );
3982
  }
@@ -4023,7 +4024,7 @@ class seopress_options
4023
  $check = isset($this->options['seopress_social_knowledge_name']) ? $this->options['seopress_social_knowledge_name'] : NULL;
4024
 
4025
  printf(
4026
- '<input type="text" name="seopress_social_option_name[seopress_social_knowledge_name]" placeholder="'.esc_html__('eg: Apple','wp-seopress').'" value="%s"/>',
4027
  esc_html( $check )
4028
  );
4029
  }
@@ -4036,7 +4037,7 @@ class seopress_options
4036
 
4037
  $check = isset($options['seopress_social_knowledge_img']);
4038
 
4039
- echo '<input id="seopress_social_knowledge_img_meta" type="text" value="'.$options_set.'" name="seopress_social_option_name[seopress_social_knowledge_img]" placeholder="'.esc_html__('Select your logo','wp-seopress').'" />
4040
 
4041
  <input id="seopress_social_knowledge_img_upload" class="button" type="button" value="'.__('Upload an Image','wp-seopress').'" />';
4042
 
@@ -4064,7 +4065,7 @@ class seopress_options
4064
  $check = isset($this->options['seopress_social_knowledge_phone']) ? $this->options['seopress_social_knowledge_phone'] : NULL;
4065
 
4066
  printf(
4067
- '<input type="text" name="seopress_social_option_name[seopress_social_knowledge_phone]" placeholder="'.esc_html__('eg: +33123456789 (internationalized version required)','wp-seopress').'" value="%s"/>',
4068
  esc_html( $check )
4069
  );
4070
 
@@ -4139,7 +4140,7 @@ class seopress_options
4139
  $check = isset($this->options['seopress_social_accounts_facebook']) ? $this->options['seopress_social_accounts_facebook'] : NULL;
4140
 
4141
  printf(
4142
- '<input type="text" name="seopress_social_option_name[seopress_social_accounts_facebook]" placeholder="'.esc_html__('eg: https://www.facebook.com/your-page','wp-seopress').'" value="%s"/>',
4143
  esc_html( $check )
4144
 
4145
  );
@@ -4152,7 +4153,7 @@ class seopress_options
4152
  $check = isset($this->options['seopress_social_accounts_twitter']) ? $this->options['seopress_social_accounts_twitter'] : NULL;
4153
 
4154
  printf(
4155
- '<input type="text" name="seopress_social_option_name[seopress_social_accounts_twitter]" placeholder="'.esc_html__('eg: @wp_seopress','wp-seopress').'" value="%s"/>',
4156
  esc_html( $check )
4157
 
4158
  );
@@ -4164,7 +4165,7 @@ class seopress_options
4164
  $check = isset($this->options['seopress_social_accounts_google']) ? $this->options['seopress_social_accounts_google'] : NULL;
4165
 
4166
  printf(
4167
- '<input type="text" name="seopress_social_option_name[seopress_social_accounts_google]" placeholder="'.esc_html__('eg: https://plus.google.com/+BenjaminDenis','wp-seopress').'" value="%s"/>',
4168
  esc_html( $check )
4169
 
4170
  );
@@ -4176,7 +4177,7 @@ class seopress_options
4176
  $check = isset($this->options['seopress_social_accounts_pinterest']) ? $this->options['seopress_social_accounts_pinterest'] : NULL;
4177
 
4178
  printf(
4179
- '<input type="text" name="seopress_social_option_name[seopress_social_accounts_pinterest]" placeholder="'.esc_html__('eg: https://pinterest.com/wpbuy/','wp-seopress').'" value="%s"/>',
4180
  esc_html( $check )
4181
 
4182
  );
@@ -4188,7 +4189,7 @@ class seopress_options
4188
  $check = isset($this->options['seopress_social_accounts_instagram']) ? $this->options['seopress_social_accounts_instagram'] : NULL;
4189
 
4190
  printf(
4191
- '<input type="text" name="seopress_social_option_name[seopress_social_accounts_instagram]" placeholder="'.esc_html__('eg: https://www.instagram.com/wp_seopress/','wp-seopress').'" value="%s"/>',
4192
  esc_html( $check )
4193
 
4194
  );
@@ -4200,7 +4201,7 @@ class seopress_options
4200
  $check = isset($this->options['seopress_social_accounts_youtube']) ? $this->options['seopress_social_accounts_youtube'] : NULL;
4201
 
4202
  printf(
4203
- '<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').'" value="%s"/>',
4204
  esc_html( $check )
4205
 
4206
  );
@@ -4212,7 +4213,7 @@ class seopress_options
4212
  $check = isset($this->options['seopress_social_accounts_linkedin']) ? $this->options['seopress_social_accounts_linkedin'] : NULL;
4213
 
4214
  printf(
4215
- '<input type="text" name="seopress_social_option_name[seopress_social_accounts_linkedin]" placeholder="'.esc_html__('eg: https://www.linkedin.com/in/benjamin-denis-70672b3b','wp-seopress').'" value="%s"/>',
4216
  esc_html( $check )
4217
 
4218
  );
@@ -4224,7 +4225,7 @@ class seopress_options
4224
  $check = isset($this->options['seopress_social_accounts_myspace']) ? $this->options['seopress_social_accounts_myspace'] : NULL;
4225
 
4226
  printf(
4227
- '<input type="text" name="seopress_social_option_name[seopress_social_accounts_myspace]" placeholder="'.esc_html__('eg: https://myspace.com/your-page','wp-seopress').'" value="%s"/>',
4228
  esc_html( $check )
4229
 
4230
  );
@@ -4236,7 +4237,7 @@ class seopress_options
4236
  $check = isset($this->options['seopress_social_accounts_soundcloud']) ? $this->options['seopress_social_accounts_soundcloud'] : NULL;
4237
 
4238
  printf(
4239
- '<input type="text" name="seopress_social_option_name[seopress_social_accounts_soundcloud]" placeholder="'.esc_html__('eg: https://soundcloud.com/michaelmccannmusic','wp-seopress').'" value="%s"/>',
4240
  esc_html( $check )
4241
 
4242
  );
@@ -4248,7 +4249,7 @@ class seopress_options
4248
  $check = isset($this->options['seopress_social_accounts_tumblr']) ? $this->options['seopress_social_accounts_tumblr'] : NULL;
4249
 
4250
  printf(
4251
- '<input type="text" name="seopress_social_option_name[seopress_social_accounts_tumblr]" placeholder="'.esc_html__('eg: https://your-site.tumblr.com','wp-seopress').'" value="%s"/>',
4252
  esc_html( $check )
4253
 
4254
  );
@@ -4280,7 +4281,7 @@ class seopress_options
4280
 
4281
  $check = isset($options['seopress_social_facebook_img']);
4282
 
4283
- echo '<input id="seopress_social_fb_img_meta" type="text" value="'.$options_set.'" name="seopress_social_option_name[seopress_social_facebook_img]" placeholder="'.esc_html__('Select your default thumbnail','wp-seopress').'" />
4284
 
4285
  <input id="seopress_social_fb_img_upload" class="button" type="button" value="'.__('Upload an Image','wp-seopress').'" />';
4286
 
@@ -4369,7 +4370,7 @@ class seopress_options
4369
 
4370
  $check = isset($options['seopress_social_twitter_card_img']);
4371
 
4372
- echo '<input id="seopress_social_twitter_img_meta" type="text" value="'.$options_set.'" name="seopress_social_option_name[seopress_social_twitter_card_img]" placeholder="'.esc_html__('Select your default thumbnail','wp-seopress').'" />
4373
 
4374
  <input id="seopress_social_twitter_img_upload" class="button" type="button" value="'.__('Upload an Image','wp-seopress').'" />';
4375
 
@@ -4408,7 +4409,7 @@ class seopress_options
4408
  if ('1' == $check) echo 'checked="yes"';
4409
  echo ' value="1"/>';
4410
 
4411
- echo '<label for="seopress_google_analytics_enable">'. __( 'Enable Google Analytics tracking', 'wp-seopress' ) .'</label>';
4412
 
4413
  if (isset($this->options['seopress_google_analytics_enable'])) {
4414
  esc_attr( $this->options['seopress_google_analytics_enable']);
@@ -4418,7 +4419,7 @@ class seopress_options
4418
  public function seopress_google_analytics_ua_callback()
4419
  {
4420
  printf(
4421
- '<input type="text" name="seopress_google_analytics_option_name[seopress_google_analytics_ua]" placeholder="'.esc_html__('Enter your Tracking ID (UA-XXXX-XX)','wp-seopress').'" value="%s"/>',
4422
  esc_html( $this->options['seopress_google_analytics_ua'])
4423
  );
4424
 
@@ -4538,8 +4539,8 @@ class seopress_options
4538
  public function seopress_google_analytics_cross_domain_callback()
4539
  {
4540
  printf(
4541
- '<input type="text" name="seopress_google_analytics_option_name[seopress_google_analytics_cross_domain]" placeholder="'.esc_html__('Enter yours domains','wp-seopress').'" value="%s"/>',
4542
- esc_html( $this->options['seopress_google_analytics_cross_domain'])
4543
 
4544
  );
4545
 
@@ -4584,7 +4585,7 @@ class seopress_options
4584
  $check = isset($this->options['seopress_google_analytics_download_tracking']) ? $this->options['seopress_google_analytics_download_tracking'] : NULL;
4585
 
4586
  printf(
4587
- '<input type="text" name="seopress_google_analytics_option_name[seopress_google_analytics_download_tracking]" placeholder="'.esc_html__('pdf|docx|pptx|zip','wp-seopress').'" value="%s"/>',
4588
  esc_html( $check)
4589
  );
4590
 
@@ -4615,7 +4616,7 @@ class seopress_options
4615
  $check = isset($this->options['seopress_google_analytics_affiliate_tracking']) ? $this->options['seopress_google_analytics_affiliate_tracking'] : NULL;
4616
 
4617
  printf(
4618
- '<input type="text" name="seopress_google_analytics_option_name[seopress_google_analytics_affiliate_tracking]" placeholder="'.esc_html__('aff|go|out','wp-seopress').'" value="%s"/>',
4619
  esc_html( $check)
4620
  );
4621
 
@@ -5150,7 +5151,7 @@ class seopress_options
5150
  $check = isset($this->options['seopress_advanced_advanced_google']) ? $this->options['seopress_advanced_advanced_google'] : NULL;
5151
 
5152
  printf(
5153
- '<input type="text" name="seopress_advanced_option_name[seopress_advanced_advanced_google]" placeholder="'.esc_html__('Enter Google meta value site verification','wp-seopress').'" value="%s"/>',
5154
  esc_html( $check )
5155
 
5156
  );
@@ -5162,7 +5163,7 @@ class seopress_options
5162
  $check = isset($this->options['seopress_advanced_advanced_bing']) ? $this->options['seopress_advanced_advanced_bing'] : NULL;
5163
 
5164
  printf(
5165
- '<input type="text" name="seopress_advanced_option_name[seopress_advanced_advanced_bing]" placeholder="'.esc_html__('Enter Bing meta value site verification','wp-seopress').'" value="%s"/>',
5166
  esc_html( $check )
5167
 
5168
  );
@@ -5174,7 +5175,7 @@ class seopress_options
5174
  $check = isset($this->options['seopress_advanced_advanced_pinterest']) ? $this->options['seopress_advanced_advanced_pinterest'] : NULL;
5175
 
5176
  printf(
5177
- '<input type="text" name="seopress_advanced_option_name[seopress_advanced_advanced_pinterest]" placeholder="'.esc_html__('Enter Pinterest meta value site verification','wp-seopress').'" value="%s"/>',
5178
  esc_html( $check )
5179
 
5180
  );
@@ -5186,7 +5187,7 @@ class seopress_options
5186
  $check = isset($this->options['seopress_advanced_advanced_yandex']) ? $this->options['seopress_advanced_advanced_yandex'] : NULL;
5187
 
5188
  printf(
5189
- '<input type="text" name="seopress_advanced_option_name[seopress_advanced_advanced_yandex]" placeholder="'.esc_html__('Enter Yandex meta value site verification','wp-seopress').'" value="%s"/>',
5190
  esc_html( $check )
5191
 
5192
  );
62
  //Post Types
63
  foreach (seopress_get_post_types() as $seopress_cpt_key => $seopress_cpt_value) {
64
  $seopress_titles_options['seopress_titles_single_titles'][$seopress_cpt_key]['title'] = '%%post_title%% - %%sitetitle%%';
65
+ $seopress_titles_options['seopress_titles_single_titles'][$seopress_cpt_key]['description'] = '%%post_excerpt%%';
66
  }
67
 
68
  //Taxonomies
678
  <li><?php _e('Focus keywords','wp-seopress'); ?></li>
679
  </ul>
680
  <p style="color:red"><span class="dashicons dashicons-warning"></span> <?php _e( '<strong>WARNING:</strong> Migration will delete all SEOPress posts and terms metadata', 'wp-seopress' ); ?></p>
681
+ <button id="seopress-yoast-migrate" class="button"><?php _e('Migrate now','wp-seopress'); ?></button>
682
  <span class="spinner"></span>
683
  <div class="log"></div>
684
  </div><!-- .inside -->
2983
  echo '&nbsp;';
2984
  echo '<a href="http://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>';
2985
  echo '&nbsp;';
2986
+ echo '<button id="seopress-flush-permalinks" class="button"><span class="dashicons dashicons-admin-links"></span>'.__('Flush permalinks','wp-seopress').'</button>';
2987
  echo '<span class="spinner"></span>';
2988
  }
2989
 
3004
 
3005
  public function print_section_info_xml_sitemap_post_types()
3006
  {
3007
+ print __('<p>Include / Exclude Post Types.</p>', 'wp-seopress');
3008
  }
3009
 
3010
  public function print_section_info_xml_sitemap_taxonomies()
3011
  {
3012
+ print __('<p>Include / Exclude Taxonomies.</p>', 'wp-seopress');
3013
  }
3014
 
3015
  public function print_section_info_social_knowledge()
3016
  {
3017
+ print __('<p>Configure Google Knowledge Graph.</p>', 'wp-seopress');
3018
  }
3019
 
3020
  public function print_section_info_social_accounts()
3021
  {
3022
+ print __('<p>Link your site with your social accounts.</p>', 'wp-seopress');
3023
  }
3024
 
3025
  public function print_section_info_social_facebook()
3026
  {
3027
+ print __('<p>Manage Open Graph datas.</p>', 'wp-seopress');
3028
  }
3029
 
3030
  public function print_section_info_social_twitter()
3031
  {
3032
+ print __('<p>Manage your Twitter card.</p>', 'wp-seopress');
3033
  }
3034
 
3035
  public function print_section_info_google_analytics_enable()
3036
  {
3037
+ print __('<p>Link your Google Analytics to your website.</p>', 'wp-seopress');
3038
  }
3039
 
3040
  public function print_section_info_google_analytics_features()
3041
  {
3042
+ print __('<p>Configure your Google Analytics tracking code.</p>', 'wp-seopress');
3043
  }
3044
 
3045
  public function print_section_info_google_analytics_events()
3046
  {
3047
+ print __('<p>Track events in Google Analytics.</p>', 'wp-seopress');
3048
  }
3049
 
3050
  public function print_section_info_google_analytics_custom_dimensions()
3064
 
3065
  public function print_section_info_advanced_advanced()
3066
  {
3067
+ print __('<p>Advanced SEO options.</p>', 'wp-seopress');
3068
  }
3069
 
3070
  public function print_section_info_advanced_appearance()
3071
  {
3072
+ print __('<p>Customize SEOPress to fit your needs.</p>', 'wp-seopress');
3073
  }
3074
 
3075
  public function print_section_info_advanced_security()
3076
  {
3077
+ print __('<p>Manage security.</p>', 'wp-seopress');
3078
  }
3079
 
3080
  /**
3085
  public function seopress_titles_home_site_title_callback()
3086
  {
3087
  printf(
3088
+ '<input type="text" id="seopress_titles_home_site_title" name="seopress_titles_option_name[seopress_titles_home_site_title]" placeholder="'.esc_html__('My awesome website','wp-seopress').'" aria-label="'.__('Site title','wp-seopress').'" value="%s"/>',
3089
  esc_html( $this->options['seopress_titles_home_site_title'])
3090
  );
3091
  echo '<div class="wrap-tags"><span id="seopress-tag-site-title" data-tag="%%sitetitle%%" class="tag-title"><span class="dashicons dashicons-plus"></span>'.__('Site Title','wp-seopress').'</span>';
3096
  public function seopress_titles_home_site_desc_callback()
3097
  {
3098
  printf(
3099
+ '<textarea id="seopress_titles_home_site_desc" name="seopress_titles_option_name[seopress_titles_home_site_desc]" placeholder="'.esc_html__('This is a cool website about Wookiees','wp-seopress').'" aria-label="'.__('Meta description','wp-seopress').'">%s</textarea>',
3100
  esc_html( $this->options['seopress_titles_home_site_desc'])
3101
 
3102
  );
3963
  $check = isset($this->options['seopress_xml_sitemap_html_mapping']) ? $this->options['seopress_xml_sitemap_html_mapping'] : NULL;
3964
 
3965
  printf(
3966
+ '<input type="text" name="seopress_xml_sitemap_option_name[seopress_xml_sitemap_html_mapping]" placeholder="'.esc_html__('eg: 2, 28, 68','wp-seopress').'" aria-label="'.__('Enter a post, page or custom post type ID(s) to display the sitemap','wp-seopress').'" value="%s"/>',
3967
  esc_html( $check )
3968
  );
3969
 
3977
  $check = isset($this->options['seopress_xml_sitemap_html_exclude']) ? $this->options['seopress_xml_sitemap_html_exclude'] : NULL;
3978
 
3979
  printf(
3980
+ '<input type="text" name="seopress_xml_sitemap_option_name[seopress_xml_sitemap_html_exclude]" placeholder="'.esc_html__('eg: 13, 8, 38','wp-seopress').'" aria-label="'.__('Exclude some Posts, Pages or Custom Post Types','wp-seopress').'" value="%s"/>',
3981
  esc_html( $check )
3982
  );
3983
  }
4024
  $check = isset($this->options['seopress_social_knowledge_name']) ? $this->options['seopress_social_knowledge_name'] : NULL;
4025
 
4026
  printf(
4027
+ '<input type="text" name="seopress_social_option_name[seopress_social_knowledge_name]" placeholder="'.esc_html__('eg: Apple','wp-seopress').'" aria-label="'.__('Your name / organization','wp-seopress').'" value="%s"/>',
4028
  esc_html( $check )
4029
  );
4030
  }
4037
 
4038
  $check = isset($options['seopress_social_knowledge_img']);
4039
 
4040
+ echo '<input id="seopress_social_knowledge_img_meta" type="text" value="'.$options_set.'" name="seopress_social_option_name[seopress_social_knowledge_img]" aria-label="'.__('Your photo / organization logo','wp-seopress').'" placeholder="'.esc_html__('Select your logo','wp-seopress').'" />
4041
 
4042
  <input id="seopress_social_knowledge_img_upload" class="button" type="button" value="'.__('Upload an Image','wp-seopress').'" />';
4043
 
4065
  $check = isset($this->options['seopress_social_knowledge_phone']) ? $this->options['seopress_social_knowledge_phone'] : NULL;
4066
 
4067
  printf(
4068
+ '<input type="text" name="seopress_social_option_name[seopress_social_knowledge_phone]" placeholder="'.esc_html__('eg: +33123456789 (internationalized version required)','wp-seopress').'" aria-label="'.__('Organization Phone number (only for Organization)','wp-seopress').'" value="%s"/>',
4069
  esc_html( $check )
4070
  );
4071
 
4140
  $check = isset($this->options['seopress_social_accounts_facebook']) ? $this->options['seopress_social_accounts_facebook'] : NULL;
4141
 
4142
  printf(
4143
+ '<input type="text" name="seopress_social_option_name[seopress_social_accounts_facebook]" placeholder="'.esc_html__('eg: https://www.facebook.com/your-page','wp-seopress').'" aria-label="'.__('Facebook Page URL','wp-seopress').'" value="%s"/>',
4144
  esc_html( $check )
4145
 
4146
  );
4153
  $check = isset($this->options['seopress_social_accounts_twitter']) ? $this->options['seopress_social_accounts_twitter'] : NULL;
4154
 
4155
  printf(
4156
+ '<input type="text" name="seopress_social_option_name[seopress_social_accounts_twitter]" placeholder="'.esc_html__('eg: @wp_seopress','wp-seopress').'" aria-label="'.__('Twitter Page URL','wp-seopress').'" value="%s"/>',
4157
  esc_html( $check )
4158
 
4159
  );
4165
  $check = isset($this->options['seopress_social_accounts_google']) ? $this->options['seopress_social_accounts_google'] : NULL;
4166
 
4167
  printf(
4168
+ '<input type="text" name="seopress_social_option_name[seopress_social_accounts_google]" placeholder="'.esc_html__('eg: https://plus.google.com/+BenjaminDenis','wp-seopress').'" aria-label="'.__('Google + URL','wp-seopress').'" value="%s"/>',
4169
  esc_html( $check )
4170
 
4171
  );
4177
  $check = isset($this->options['seopress_social_accounts_pinterest']) ? $this->options['seopress_social_accounts_pinterest'] : NULL;
4178
 
4179
  printf(
4180
+ '<input type="text" name="seopress_social_option_name[seopress_social_accounts_pinterest]" placeholder="'.esc_html__('eg: https://pinterest.com/wpbuy/','wp-seopress').'" aria-label="'.__('Pinterest URL','wp-seopress').'" value="%s"/>',
4181
  esc_html( $check )
4182
 
4183
  );
4189
  $check = isset($this->options['seopress_social_accounts_instagram']) ? $this->options['seopress_social_accounts_instagram'] : NULL;
4190
 
4191
  printf(
4192
+ '<input type="text" name="seopress_social_option_name[seopress_social_accounts_instagram]" placeholder="'.esc_html__('eg: https://www.instagram.com/wp_seopress/','wp-seopress').'" aria-label="'.__('Instagram URL','wp-seopress').'" value="%s"/>',
4193
  esc_html( $check )
4194
 
4195
  );
4201
  $check = isset($this->options['seopress_social_accounts_youtube']) ? $this->options['seopress_social_accounts_youtube'] : NULL;
4202
 
4203
  printf(
4204
+ '<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"/>',
4205
  esc_html( $check )
4206
 
4207
  );
4213
  $check = isset($this->options['seopress_social_accounts_linkedin']) ? $this->options['seopress_social_accounts_linkedin'] : NULL;
4214
 
4215
  printf(
4216
+ '<input type="text" name="seopress_social_option_name[seopress_social_accounts_linkedin]" placeholder="'.esc_html__('eg: https://www.linkedin.com/in/benjamin-denis-70672b3b','wp-seopress').'" aria-label="'.__('LinkedIn URL','wp-seopress').'" value="%s"/>',
4217
  esc_html( $check )
4218
 
4219
  );
4225
  $check = isset($this->options['seopress_social_accounts_myspace']) ? $this->options['seopress_social_accounts_myspace'] : NULL;
4226
 
4227
  printf(
4228
+ '<input type="text" name="seopress_social_option_name[seopress_social_accounts_myspace]" aria-label="'.__('MySpace URL','wp-seopress').'" placeholder="'.esc_html__('eg: https://myspace.com/your-page','wp-seopress').'" value="%s"/>',
4229
  esc_html( $check )
4230
 
4231
  );
4237
  $check = isset($this->options['seopress_social_accounts_soundcloud']) ? $this->options['seopress_social_accounts_soundcloud'] : NULL;
4238
 
4239
  printf(
4240
+ '<input type="text" name="seopress_social_option_name[seopress_social_accounts_soundcloud]" aria-label="'.__('Soundcloud URL','wp-seopress').'" placeholder="'.esc_html__('eg: https://soundcloud.com/michaelmccannmusic','wp-seopress').'" value="%s"/>',
4241
  esc_html( $check )
4242
 
4243
  );
4249
  $check = isset($this->options['seopress_social_accounts_tumblr']) ? $this->options['seopress_social_accounts_tumblr'] : NULL;
4250
 
4251
  printf(
4252
+ '<input type="text" name="seopress_social_option_name[seopress_social_accounts_tumblr]" placeholder="'.esc_html__('eg: https://your-site.tumblr.com','wp-seopress').'" aria-label="'.__('Tumblr URL','wp-seopress').'" value="%s"/>',
4253
  esc_html( $check )
4254
 
4255
  );
4281
 
4282
  $check = isset($options['seopress_social_facebook_img']);
4283
 
4284
+ echo '<input id="seopress_social_fb_img_meta" type="text" value="'.$options_set.'" name="seopress_social_option_name[seopress_social_facebook_img]" aria-label="'.__('Select a default image','wp-seopress').'" placeholder="'.esc_html__('Select your default thumbnail','wp-seopress').'" />
4285
 
4286
  <input id="seopress_social_fb_img_upload" class="button" type="button" value="'.__('Upload an Image','wp-seopress').'" />';
4287
 
4370
 
4371
  $check = isset($options['seopress_social_twitter_card_img']);
4372
 
4373
+ echo '<input id="seopress_social_twitter_img_meta" type="text" value="'.$options_set.'" name="seopress_social_option_name[seopress_social_twitter_card_img]" aria-label="'.__('Default Twitter Image','wp-seopress').'" placeholder="'.esc_html__('Select your default thumbnail','wp-seopress').'" />
4374
 
4375
  <input id="seopress_social_twitter_img_upload" class="button" type="button" value="'.__('Upload an Image','wp-seopress').'" />';
4376
 
4409
  if ('1' == $check) echo 'checked="yes"';
4410
  echo ' value="1"/>';
4411
 
4412
+ echo '<label for="seopress_google_analytics_enable">'. __( 'Enable Google Analytics tracking (Global Site Tag: gtag.js)', 'wp-seopress' ) .'</label>';
4413
 
4414
  if (isset($this->options['seopress_google_analytics_enable'])) {
4415
  esc_attr( $this->options['seopress_google_analytics_enable']);
4419
  public function seopress_google_analytics_ua_callback()
4420
  {
4421
  printf(
4422
+ '<input type="text" name="seopress_google_analytics_option_name[seopress_google_analytics_ua]" placeholder="'.esc_html__('Enter your Tracking ID (UA-XXXX-XX)','wp-seopress').'" aria-label="'.__('Enter your tracking ID','wp-seopress').'" value="%s"/>',
4423
  esc_html( $this->options['seopress_google_analytics_ua'])
4424
  );
4425
 
4539
  public function seopress_google_analytics_cross_domain_callback()
4540
  {
4541
  printf(
4542
+ '<input type="text" name="seopress_google_analytics_option_name[seopress_google_analytics_cross_domain]" placeholder="'.esc_html__('Enter yours domains (eg: https://www.seopress.org/)','wp-seopress').'" value="%s" aria-label="'.__('Cross domains','wp-seopress').'"/>',
4543
+ esc_html($this->options['seopress_google_analytics_cross_domain'])
4544
 
4545
  );
4546
 
4585
  $check = isset($this->options['seopress_google_analytics_download_tracking']) ? $this->options['seopress_google_analytics_download_tracking'] : NULL;
4586
 
4587
  printf(
4588
+ '<input type="text" name="seopress_google_analytics_option_name[seopress_google_analytics_download_tracking]" placeholder="'.esc_html__('pdf|docx|pptx|zip','wp-seopress').'" aria-label="'.__('Track click downloads','wp-seopress').'" value="%s"/>',
4589
  esc_html( $check)
4590
  );
4591
 
4616
  $check = isset($this->options['seopress_google_analytics_affiliate_tracking']) ? $this->options['seopress_google_analytics_affiliate_tracking'] : NULL;
4617
 
4618
  printf(
4619
+ '<input type="text" name="seopress_google_analytics_option_name[seopress_google_analytics_affiliate_tracking]" placeholder="'.esc_html__('aff|go|out','wp-seopress').'" aria-label="'.__('Track affiliate / outbound links','wp-seopress').'" value="%s"/>',
4620
  esc_html( $check)
4621
  );
4622
 
5151
  $check = isset($this->options['seopress_advanced_advanced_google']) ? $this->options['seopress_advanced_advanced_google'] : NULL;
5152
 
5153
  printf(
5154
+ '<input type="text" name="seopress_advanced_option_name[seopress_advanced_advanced_google]" placeholder="'.esc_html__('Enter Google meta value site verification','wp-seopress').'" aria-label="'.__('Google site verification','wp-seopress').'" value="%s"/>',
5155
  esc_html( $check )
5156
 
5157
  );
5163
  $check = isset($this->options['seopress_advanced_advanced_bing']) ? $this->options['seopress_advanced_advanced_bing'] : NULL;
5164
 
5165
  printf(
5166
+ '<input type="text" name="seopress_advanced_option_name[seopress_advanced_advanced_bing]" placeholder="'.esc_html__('Enter Bing meta value site verification','wp-seopress').'" aria-label="'.__('Bing site verification','wp-seopress').'" value="%s"/>',
5167
  esc_html( $check )
5168
 
5169
  );
5175
  $check = isset($this->options['seopress_advanced_advanced_pinterest']) ? $this->options['seopress_advanced_advanced_pinterest'] : NULL;
5176
 
5177
  printf(
5178
+ '<input type="text" name="seopress_advanced_option_name[seopress_advanced_advanced_pinterest]" placeholder="'.esc_html__('Enter Pinterest meta value site verification','wp-seopress').'" aria-label="'.__('Pinterest site verification','wp-seopress').'" value="%s"/>',
5179
  esc_html( $check )
5180
 
5181
  );
5187
  $check = isset($this->options['seopress_advanced_advanced_yandex']) ? $this->options['seopress_advanced_advanced_yandex'] : NULL;
5188
 
5189
  printf(
5190
+ '<input type="text" name="seopress_advanced_option_name[seopress_advanced_advanced_yandex]" aria-label="'.__('Yandex site verification','wp-seopress').'" placeholder="'.esc_html__('Enter Yandex meta value site verification','wp-seopress').'" value="%s"/>',
5191
  esc_html( $check )
5192
 
5193
  );
inc/admin/ajax.php CHANGED
@@ -1,6 +1,78 @@
1
  <?php
2
  defined( 'ABSPATH' ) or die( 'Please don&rsquo;t call the plugin directly. Thanks :)' );
3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  ///////////////////////////////////////////////////////////////////////////////////////////////////
5
  //Content analysis
6
  ///////////////////////////////////////////////////////////////////////////////////////////////////
1
  <?php
2
  defined( 'ABSPATH' ) or die( 'Please don&rsquo;t call the plugin directly. Thanks :)' );
3
 
4
+ ///////////////////////////////////////////////////////////////////////////////////////////////////
5
+ //Get real preview
6
+ ///////////////////////////////////////////////////////////////////////////////////////////////////
7
+ function seopress_do_real_preview() {
8
+ check_ajax_referer( 'seopress_real_preview_nonce', $_POST['_ajax_nonce'], true );
9
+
10
+ //Get post id
11
+ if ( isset( $_GET['post_id'] ) ) {
12
+ $seopress_get_the_id = $_GET['post_id'];
13
+ }
14
+
15
+ //Origin
16
+ if ( isset( $_GET['origin'] ) ) {
17
+ $seopress_origin = $_GET['origin'];
18
+ }
19
+
20
+ //Tax name
21
+ if ( isset( $_GET['tax_name'] ) ) {
22
+ $seopress_tax_name = $_GET['tax_name'];
23
+ }
24
+
25
+ //Init
26
+ $title = '';
27
+ $meta_desc = '';
28
+ $data = array();
29
+
30
+ //DOM
31
+ $dom = new DOMDocument();
32
+ $internalErrors = libxml_use_internal_errors(true);
33
+ $dom->preserveWhiteSpace = false;
34
+
35
+ //Get source code
36
+ $args = array(
37
+ 'blocking' => true,
38
+ 'timeout' => 5,
39
+ );
40
+
41
+ if ($seopress_origin =='post') { //Default: post type
42
+ $response = wp_remote_retrieve_body(wp_remote_get(get_permalink($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($response)) {
52
+ //Title
53
+ $list = $dom->getElementsByTagName("title");
54
+ if ($list->length > 0) {
55
+ $title = $list->item(0)->textContent;
56
+ $data['title'] = $title;
57
+ }
58
+
59
+ //Meta desc
60
+ $xpath = new DOMXPath($dom);
61
+ $meta_description = $xpath->query('//meta[@name="description"]/@content');
62
+
63
+ foreach ($meta_description as $key=>$mdesc) {
64
+ $data['meta_desc'] = $mdesc->nodeValue;
65
+ }
66
+ }
67
+ }
68
+
69
+ libxml_use_internal_errors($internalErrors);
70
+
71
+ //Return
72
+ wp_send_json_success($data);
73
+ }
74
+ add_action('wp_ajax_seopress_do_real_preview', 'seopress_do_real_preview');
75
+
76
  ///////////////////////////////////////////////////////////////////////////////////////////////////
77
  //Content analysis
78
  ///////////////////////////////////////////////////////////////////////////////////////////////////
inc/functions/options-google-analytics.php CHANGED
@@ -9,9 +9,9 @@ function seopress_google_analytics_remarketing_option() {
9
  if ( ! empty ( $seopress_google_analytics_remarketing_option ) ) {
10
  foreach ($seopress_google_analytics_remarketing_option as $key => $seopress_google_analytics_remarketing_value)
11
  $options[$key] = $seopress_google_analytics_remarketing_value;
12
- if (isset($seopress_google_analytics_remarketing_option['seopress_google_analytics_remarketing'])) {
13
- return $seopress_google_analytics_remarketing_option['seopress_google_analytics_remarketing'];
14
- }
15
  }
16
  }
17
 
@@ -21,9 +21,9 @@ function seopress_google_analytics_ip_anonymization_option() {
21
  if ( ! empty ( $seopress_google_analytics_ip_anonymization_option ) ) {
22
  foreach ($seopress_google_analytics_ip_anonymization_option as $key => $seopress_google_analytics_ip_anonymization_value)
23
  $options[$key] = $seopress_google_analytics_ip_anonymization_value;
24
- if (isset($seopress_google_analytics_ip_anonymization_option['seopress_google_analytics_ip_anonymization'])) {
25
- return $seopress_google_analytics_ip_anonymization_option['seopress_google_analytics_ip_anonymization'];
26
- }
27
  }
28
  }
29
 
@@ -33,9 +33,9 @@ function seopress_google_analytics_link_attribution_option() {
33
  if ( ! empty ( $seopress_google_analytics_link_attribution_option ) ) {
34
  foreach ($seopress_google_analytics_link_attribution_option as $key => $seopress_google_analytics_link_attribution_value)
35
  $options[$key] = $seopress_google_analytics_link_attribution_value;
36
- if (isset($seopress_google_analytics_link_attribution_option['seopress_google_analytics_link_attribution'])) {
37
- return $seopress_google_analytics_link_attribution_option['seopress_google_analytics_link_attribution'];
38
- }
39
  }
40
  }
41
 
@@ -45,9 +45,9 @@ function seopress_google_analytics_cross_enable_option() {
45
  if ( ! empty ( $seopress_google_analytics_cross_enable_option ) ) {
46
  foreach ($seopress_google_analytics_cross_enable_option as $key => $seopress_google_analytics_cross_enable_value)
47
  $options[$key] = $seopress_google_analytics_cross_enable_value;
48
- if (isset($seopress_google_analytics_cross_enable_option['seopress_google_analytics_cross_enable'])) {
49
- return $seopress_google_analytics_cross_enable_option['seopress_google_analytics_cross_enable'];
50
- }
51
  }
52
  }
53
 
@@ -57,9 +57,9 @@ function seopress_google_analytics_cross_domain_option() {
57
  if ( ! empty ( $seopress_google_analytics_cross_domain_option ) ) {
58
  foreach ($seopress_google_analytics_cross_domain_option as $key => $seopress_google_analytics_cross_domain_value)
59
  $options[$key] = $seopress_google_analytics_cross_domain_value;
60
- if (isset($seopress_google_analytics_cross_domain_option['seopress_google_analytics_cross_domain'])) {
61
- return $seopress_google_analytics_cross_domain_option['seopress_google_analytics_cross_domain'];
62
- }
63
  }
64
  }
65
 
@@ -69,9 +69,9 @@ function seopress_google_analytics_link_tracking_enable_option() {
69
  if ( ! empty ( $seopress_google_analytics_link_tracking_enable_option ) ) {
70
  foreach ($seopress_google_analytics_link_tracking_enable_option as $key => $seopress_google_analytics_link_tracking_enable_value)
71
  $options[$key] = $seopress_google_analytics_link_tracking_enable_value;
72
- if (isset($seopress_google_analytics_link_tracking_enable_option['seopress_google_analytics_link_tracking_enable'])) {
73
- return $seopress_google_analytics_link_tracking_enable_option['seopress_google_analytics_link_tracking_enable'];
74
- }
75
  }
76
  }
77
 
@@ -81,9 +81,9 @@ function seopress_google_analytics_download_tracking_enable_option() {
81
  if ( ! empty ( $seopress_google_analytics_download_tracking_enable_option ) ) {
82
  foreach ($seopress_google_analytics_download_tracking_enable_option as $key => $seopress_google_analytics_download_tracking_enable_value)
83
  $options[$key] = $seopress_google_analytics_download_tracking_enable_value;
84
- if (isset($seopress_google_analytics_download_tracking_enable_option['seopress_google_analytics_download_tracking_enable'])) {
85
- return $seopress_google_analytics_download_tracking_enable_option['seopress_google_analytics_download_tracking_enable'];
86
- }
87
  }
88
  }
89
 
@@ -93,9 +93,9 @@ function seopress_google_analytics_download_tracking_option() {
93
  if ( ! empty ( $seopress_google_analytics_download_tracking_option ) ) {
94
  foreach ($seopress_google_analytics_download_tracking_option as $key => $seopress_google_analytics_download_tracking_value)
95
  $options[$key] = $seopress_google_analytics_download_tracking_value;
96
- if (isset($seopress_google_analytics_download_tracking_option['seopress_google_analytics_download_tracking'])) {
97
- return $seopress_google_analytics_download_tracking_option['seopress_google_analytics_download_tracking'];
98
- }
99
  }
100
  }
101
 
@@ -105,9 +105,9 @@ function seopress_google_analytics_affiliate_tracking_enable_option() {
105
  if ( ! empty ( $seopress_google_analytics_affiliate_tracking_enable_option ) ) {
106
  foreach ($seopress_google_analytics_affiliate_tracking_enable_option as $key => $seopress_google_analytics_affiliate_tracking_enable_value)
107
  $options[$key] = $seopress_google_analytics_affiliate_tracking_enable_value;
108
- if (isset($seopress_google_analytics_affiliate_tracking_enable_option['seopress_google_analytics_affiliate_tracking_enable'])) {
109
- return $seopress_google_analytics_affiliate_tracking_enable_option['seopress_google_analytics_affiliate_tracking_enable'];
110
- }
111
  }
112
  }
113
 
@@ -117,9 +117,9 @@ function seopress_google_analytics_affiliate_tracking_option() {
117
  if ( ! empty ( $seopress_google_analytics_affiliate_tracking_option ) ) {
118
  foreach ($seopress_google_analytics_affiliate_tracking_option as $key => $seopress_google_analytics_affiliate_tracking_value)
119
  $options[$key] = $seopress_google_analytics_affiliate_tracking_value;
120
- if (isset($seopress_google_analytics_affiliate_tracking_option['seopress_google_analytics_affiliate_tracking'])) {
121
- return $seopress_google_analytics_affiliate_tracking_option['seopress_google_analytics_affiliate_tracking'];
122
- }
123
  }
124
  }
125
 
@@ -129,9 +129,9 @@ function seopress_google_analytics_cd_author_option() {
129
  if ( ! empty ( $seopress_google_analytics_cd_author_option ) ) {
130
  foreach ($seopress_google_analytics_cd_author_option as $key => $seopress_google_analytics_cd_author_value)
131
  $options[$key] = $seopress_google_analytics_cd_author_value;
132
- if (isset($seopress_google_analytics_cd_author_option['seopress_google_analytics_cd_author'])) {
133
- return $seopress_google_analytics_cd_author_option['seopress_google_analytics_cd_author'];
134
- }
135
  }
136
  }
137
 
@@ -141,9 +141,9 @@ function seopress_google_analytics_cd_category_option() {
141
  if ( ! empty ( $seopress_google_analytics_cd_category_option ) ) {
142
  foreach ($seopress_google_analytics_cd_category_option as $key => $seopress_google_analytics_cd_category_value)
143
  $options[$key] = $seopress_google_analytics_cd_category_value;
144
- if (isset($seopress_google_analytics_cd_category_option['seopress_google_analytics_cd_category'])) {
145
- return $seopress_google_analytics_cd_category_option['seopress_google_analytics_cd_category'];
146
- }
147
  }
148
  }
149
 
@@ -153,9 +153,9 @@ function seopress_google_analytics_cd_tag_option() {
153
  if ( ! empty ( $seopress_google_analytics_cd_tag_option ) ) {
154
  foreach ($seopress_google_analytics_cd_tag_option as $key => $seopress_google_analytics_cd_tag_value)
155
  $options[$key] = $seopress_google_analytics_cd_tag_value;
156
- if (isset($seopress_google_analytics_cd_tag_option['seopress_google_analytics_cd_tag'])) {
157
- return $seopress_google_analytics_cd_tag_option['seopress_google_analytics_cd_tag'];
158
- }
159
  }
160
  }
161
 
@@ -165,9 +165,9 @@ function seopress_google_analytics_cd_post_type_option() {
165
  if ( ! empty ( $seopress_google_analytics_cd_post_type_option ) ) {
166
  foreach ($seopress_google_analytics_cd_post_type_option as $key => $seopress_google_analytics_cd_post_type_value)
167
  $options[$key] = $seopress_google_analytics_cd_post_type_value;
168
- if (isset($seopress_google_analytics_cd_post_type_option['seopress_google_analytics_cd_post_type'])) {
169
- return $seopress_google_analytics_cd_post_type_option['seopress_google_analytics_cd_post_type'];
170
- }
171
  }
172
  }
173
 
@@ -177,248 +177,208 @@ function seopress_google_analytics_cd_logged_in_user_option() {
177
  if ( ! empty ( $seopress_google_analytics_cd_logged_in_user_option ) ) {
178
  foreach ($seopress_google_analytics_cd_logged_in_user_option as $key => $seopress_google_analytics_cd_logged_in_user_value)
179
  $options[$key] = $seopress_google_analytics_cd_logged_in_user_value;
180
- if (isset($seopress_google_analytics_cd_logged_in_user_option['seopress_google_analytics_cd_logged_in_user'])) {
181
- return $seopress_google_analytics_cd_logged_in_user_option['seopress_google_analytics_cd_logged_in_user'];
182
- }
183
  }
184
  }
185
 
186
  //Build Custom GA
187
  function seopress_google_analytics_js() {
188
- $seopress_google_analytics_html = "\n";
189
- $seopress_google_analytics_html .=
190
- "<script>
191
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
192
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
193
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
194
- })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
195
- ";
196
-
197
- if (seopress_google_analytics_ua_option() && seopress_google_analytics_ip_anonymization_option() =='1') {
198
- $seopress_google_analytics_html .= "ga('create', '".seopress_google_analytics_ua_option()."', 'auto', {anonymizeIp: true});";
199
- $seopress_google_analytics_html .= "\n";
200
- } elseif (seopress_google_analytics_ua_option()) {
201
- $seopress_google_analytics_html .= "ga('create', '".seopress_google_analytics_ua_option()."', 'auto');";
202
- $seopress_google_analytics_html .= "\n";
203
- }
204
-
205
- if (seopress_google_analytics_ecommerce_enable_option() =='1') {
206
- $seopress_google_analytics_html .= "ga('require', 'ec');";
207
- $seopress_google_analytics_html .= "\n";
208
-
209
- //If WC enabled
210
- include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
211
- if ( is_plugin_active( 'woocommerce/woocommerce.php' )) {
212
-
213
- //Measuring a Product Details View
214
- if (is_product()) {
215
- global $product;
216
-
217
- $product_cat = get_the_terms($product->get_id(), 'product_cat');
218
-
219
- $seopress_google_analytics_html .= "
220
- ga('ec:addProduct', {
221
- 'id': '".$product->get_id()."',
222
- 'name': '".$product->get_title()."',";
223
- if ($product_cat !='') {
224
- $seopress_google_analytics_html .= "
225
- 'category': '".$product_cat[0]->name."',";
226
- }
227
- $seopress_google_analytics_html .= "
228
- });
229
-
230
- ga('ec:setAction', 'detail');
231
- ";
232
- $seopress_google_analytics_html .= "\n";
233
- }
234
-
235
- //GA E-Commerce - User begins checkout process
236
- function seopress_google_analytics_checkout() {
237
- if (is_checkout() == true) {
238
- $seopress_google_analytics_html ='';
239
- foreach( WC()->cart->get_cart() as $cart_item ){
240
-
241
- $product = wc_get_product($cart_item['product_id']);
242
- $product_cat = get_the_terms($cart_item['product_id'], 'product_cat');
243
-
244
- $seopress_google_analytics_html .= "
245
- ga('ec:addProduct', {
246
- 'id': '".$cart_item['product_id']."',
247
- 'name': '".$product->get_name()."',";
248
-
249
- if ($product_cat !='') {
250
- $seopress_google_analytics_html .= "
251
- 'category': '".$product_cat[0]->name."',";
252
- }
253
-
254
- if ($product->get_price() !='') {
255
- $seopress_google_analytics_html .= "
256
- 'price': '".$product->get_price()."',";
257
- }
258
-
259
- if ($cart_item['quantity'] !='') {
260
- $seopress_google_analytics_html .= "
261
- 'quantity': ".$cart_item['quantity'];
262
- }
263
- $seopress_google_analytics_html .= "
264
- });
265
- ";
266
- }
267
-
268
- $seopress_google_analytics_html .= "\n";
269
-
270
- $seopress_google_analytics_html .= "
271
- ga('ec:setAction','checkout', {
272
- 'step': 1
273
- });
274
- ";
275
-
276
- $seopress_google_analytics_html .= "\n";
277
-
278
- if (function_exists('wc_enqueue_js')) {
279
- wc_enqueue_js($seopress_google_analytics_html);
280
- }
281
- }
282
- }
283
- add_action('woocommerce_after_checkout_form', 'seopress_google_analytics_checkout', 10);
284
  }
285
- }
286
- if (seopress_google_analytics_cross_enable_option() =='1' && seopress_google_analytics_cross_domain_option()) {
287
- $seopress_google_analytics_html .= "ga('require', 'linker');";
288
- $seopress_google_analytics_html .= "\n";
289
- $seopress_google_analytics_html .= "ga('linker:autoLink', ['".seopress_google_analytics_cross_domain_option()."'], false, true);";
290
- $seopress_google_analytics_html .= "\n";
291
- }
292
-
293
- if (seopress_google_analytics_remarketing_option() =='1') {
294
- $seopress_google_analytics_html .= "ga('require', 'displayfeatures');";
295
- $seopress_google_analytics_html .= "\n";
296
- }
297
-
298
- if (seopress_google_analytics_link_attribution_option() =='1') {
299
- $seopress_google_analytics_html .= "ga('require', 'linkid', 'linkid.js');";
300
- $seopress_google_analytics_html .= "\n";
301
- }
302
-
303
- if (seopress_google_analytics_cd_author_option() !='') {
304
- if (seopress_google_analytics_cd_author_option() !='none') {
305
- if (is_singular()) {
306
- $seopress_google_analytics_html .= "ga('set', '".seopress_google_analytics_cd_author_option()."', '".get_the_author()."');";
307
- $seopress_google_analytics_html .= "\n";
 
 
 
 
308
  }
309
  }
310
- }
311
-
312
- if (seopress_google_analytics_cd_category_option() !='') {
313
- if (seopress_google_analytics_cd_category_option() !='none') {
314
- if (is_single() && has_category()) {
315
- $categories = get_the_category();
316
-
317
- if ( ! empty( $categories ) ) {
318
- $get_first_category = esc_html( $categories[0]->name );
 
 
319
  }
320
- $seopress_google_analytics_html .= "ga('set', '".seopress_google_analytics_cd_category_option()."', '".$get_first_category."');";
321
- $seopress_google_analytics_html .= "\n";
322
  }
323
- }
324
- }
325
-
326
- if (seopress_google_analytics_cd_tag_option() !='') {
327
- if (seopress_google_analytics_cd_tag_option() !='none') {
328
- if (is_single() && has_tag()) {
329
- $tags = get_the_tags();
330
- if ( ! empty( $tags ) ) {
331
- $seopress_comma_count = count($tags);
332
- foreach ($tags as $key => $value) {
333
- $get_tags .= esc_html( $value->name );
334
- if ( $key < $seopress_comma_count -1){
335
- $get_tags .= ', ';
 
336
  }
337
  }
 
 
 
 
 
 
 
 
 
 
 
338
  }
339
- $seopress_google_analytics_html .= "ga('set', '".seopress_google_analytics_cd_tag_option()."', '".$get_tags."');";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
340
  $seopress_google_analytics_html .= "\n";
341
  }
342
  }
343
- }
344
-
345
- if (seopress_google_analytics_cd_post_type_option() !='') {
346
- if (seopress_google_analytics_cd_post_type_option() !='none') {
347
- if (is_single()) {
348
- $seopress_google_analytics_html .= "ga('set', '".seopress_google_analytics_cd_post_type_option()."', '".get_post_type()."');";
 
 
 
 
 
 
349
  $seopress_google_analytics_html .= "\n";
350
  }
351
  }
352
- }
353
-
354
- if (seopress_google_analytics_cd_logged_in_user_option() !='') {
355
- if (seopress_google_analytics_cd_logged_in_user_option() !='none') {
356
- if (wp_get_current_user()->ID) {
357
- $seopress_google_analytics_html .= "ga('set', '".seopress_google_analytics_cd_logged_in_user_option()."', '".wp_get_current_user()->ID."');";
 
 
 
 
 
 
358
  $seopress_google_analytics_html .= "\n";
359
  }
360
  }
361
- }
362
-
363
- $seopress_google_analytics_html .= "ga('send', 'pageview');";
364
- $seopress_google_analytics_html .= "\n";
365
-
366
- //External links
367
- if (seopress_google_analytics_link_tracking_enable_option() !='') {
368
- if (seopress_google_analytics_link_tracking_enable_option() !='') {
369
- $seopress_google_analytics_html .= "
370
- jQuery(document).ready(function() {
371
- jQuery('a[target=\"_blank\"]').click(function(e) {
372
- ga('send','event', 'external links', 'click', this.href);
373
- });
374
- });
375
- ";
376
- $seopress_google_analytics_html .= "\n";
377
  }
378
- }
379
-
380
- //Downloads tracking
381
- if (seopress_google_analytics_download_tracking_enable_option() !='') {
382
- if (seopress_google_analytics_download_tracking_option() !='') {
383
- $seopress_google_analytics_html .= "
384
- jQuery(document).ready(function() {
385
- jQuery('a').filter(function() {
386
- return this.href.match(/.*\.(".seopress_google_analytics_download_tracking_option().")(\?.*)?$/);
387
- }).click(function(e) {
388
- ga('send','event', 'downloads', 'click', this.href);
389
- });
390
- });
391
- ";
392
- $seopress_google_analytics_html .= "\n";
393
  }
394
- }
395
-
396
- //Affiliate tracking
397
- if (seopress_google_analytics_affiliate_tracking_enable_option() !='') {
398
- if (seopress_google_analytics_affiliate_tracking_option() !='') {
399
- $seopress_google_analytics_html .= "
400
- jQuery(document).ready(function() {
401
- jQuery('a').filter(function() {
402
- return this.href.match(/(?:\/".seopress_google_analytics_affiliate_tracking_option()."\/)/gi);
403
- }).click(function(e) {
404
- ga('send','event', 'outbound/affiliate', 'click', this.href);
405
- });
406
- });
407
- ";
408
- $seopress_google_analytics_html .= "\n";
409
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
410
  }
411
-
412
- $seopress_google_analytics_html .= "</script>";
413
- $seopress_google_analytics_html .= "\n";
414
-
415
- echo $seopress_google_analytics_html;
416
  }
417
 
418
  if (seopress_google_analytics_enable_option() =='1' && seopress_google_analytics_ua_option() !='') {
419
  if (is_user_logged_in()) {
420
  global $wp_roles;
421
-
422
  //Get current user role
423
  if(isset(wp_get_current_user()->roles[0])) {
424
  $seopress_user_role = wp_get_current_user()->roles[0];
9
  if ( ! empty ( $seopress_google_analytics_remarketing_option ) ) {
10
  foreach ($seopress_google_analytics_remarketing_option as $key => $seopress_google_analytics_remarketing_value)
11
  $options[$key] = $seopress_google_analytics_remarketing_value;
12
+ if (isset($seopress_google_analytics_remarketing_option['seopress_google_analytics_remarketing'])) {
13
+ return $seopress_google_analytics_remarketing_option['seopress_google_analytics_remarketing'];
14
+ }
15
  }
16
  }
17
 
21
  if ( ! empty ( $seopress_google_analytics_ip_anonymization_option ) ) {
22
  foreach ($seopress_google_analytics_ip_anonymization_option as $key => $seopress_google_analytics_ip_anonymization_value)
23
  $options[$key] = $seopress_google_analytics_ip_anonymization_value;
24
+ if (isset($seopress_google_analytics_ip_anonymization_option['seopress_google_analytics_ip_anonymization'])) {
25
+ return $seopress_google_analytics_ip_anonymization_option['seopress_google_analytics_ip_anonymization'];
26
+ }
27
  }
28
  }
29
 
33
  if ( ! empty ( $seopress_google_analytics_link_attribution_option ) ) {
34
  foreach ($seopress_google_analytics_link_attribution_option as $key => $seopress_google_analytics_link_attribution_value)
35
  $options[$key] = $seopress_google_analytics_link_attribution_value;
36
+ if (isset($seopress_google_analytics_link_attribution_option['seopress_google_analytics_link_attribution'])) {
37
+ return $seopress_google_analytics_link_attribution_option['seopress_google_analytics_link_attribution'];
38
+ }
39
  }
40
  }
41
 
45
  if ( ! empty ( $seopress_google_analytics_cross_enable_option ) ) {
46
  foreach ($seopress_google_analytics_cross_enable_option as $key => $seopress_google_analytics_cross_enable_value)
47
  $options[$key] = $seopress_google_analytics_cross_enable_value;
48
+ if (isset($seopress_google_analytics_cross_enable_option['seopress_google_analytics_cross_enable'])) {
49
+ return $seopress_google_analytics_cross_enable_option['seopress_google_analytics_cross_enable'];
50
+ }
51
  }
52
  }
53
 
57
  if ( ! empty ( $seopress_google_analytics_cross_domain_option ) ) {
58
  foreach ($seopress_google_analytics_cross_domain_option as $key => $seopress_google_analytics_cross_domain_value)
59
  $options[$key] = $seopress_google_analytics_cross_domain_value;
60
+ if (isset($seopress_google_analytics_cross_domain_option['seopress_google_analytics_cross_domain'])) {
61
+ return $seopress_google_analytics_cross_domain_option['seopress_google_analytics_cross_domain'];
62
+ }
63
  }
64
  }
65
 
69
  if ( ! empty ( $seopress_google_analytics_link_tracking_enable_option ) ) {
70
  foreach ($seopress_google_analytics_link_tracking_enable_option as $key => $seopress_google_analytics_link_tracking_enable_value)
71
  $options[$key] = $seopress_google_analytics_link_tracking_enable_value;
72
+ if (isset($seopress_google_analytics_link_tracking_enable_option['seopress_google_analytics_link_tracking_enable'])) {
73
+ return $seopress_google_analytics_link_tracking_enable_option['seopress_google_analytics_link_tracking_enable'];
74
+ }
75
  }
76
  }
77
 
81
  if ( ! empty ( $seopress_google_analytics_download_tracking_enable_option ) ) {
82
  foreach ($seopress_google_analytics_download_tracking_enable_option as $key => $seopress_google_analytics_download_tracking_enable_value)
83
  $options[$key] = $seopress_google_analytics_download_tracking_enable_value;
84
+ if (isset($seopress_google_analytics_download_tracking_enable_option['seopress_google_analytics_download_tracking_enable'])) {
85
+ return $seopress_google_analytics_download_tracking_enable_option['seopress_google_analytics_download_tracking_enable'];
86
+ }
87
  }
88
  }
89
 
93
  if ( ! empty ( $seopress_google_analytics_download_tracking_option ) ) {
94
  foreach ($seopress_google_analytics_download_tracking_option as $key => $seopress_google_analytics_download_tracking_value)
95
  $options[$key] = $seopress_google_analytics_download_tracking_value;
96
+ if (isset($seopress_google_analytics_download_tracking_option['seopress_google_analytics_download_tracking'])) {
97
+ return $seopress_google_analytics_download_tracking_option['seopress_google_analytics_download_tracking'];
98
+ }
99
  }
100
  }
101
 
105
  if ( ! empty ( $seopress_google_analytics_affiliate_tracking_enable_option ) ) {
106
  foreach ($seopress_google_analytics_affiliate_tracking_enable_option as $key => $seopress_google_analytics_affiliate_tracking_enable_value)
107
  $options[$key] = $seopress_google_analytics_affiliate_tracking_enable_value;
108
+ if (isset($seopress_google_analytics_affiliate_tracking_enable_option['seopress_google_analytics_affiliate_tracking_enable'])) {
109
+ return $seopress_google_analytics_affiliate_tracking_enable_option['seopress_google_analytics_affiliate_tracking_enable'];
110
+ }
111
  }
112
  }
113
 
117
  if ( ! empty ( $seopress_google_analytics_affiliate_tracking_option ) ) {
118
  foreach ($seopress_google_analytics_affiliate_tracking_option as $key => $seopress_google_analytics_affiliate_tracking_value)
119
  $options[$key] = $seopress_google_analytics_affiliate_tracking_value;
120
+ if (isset($seopress_google_analytics_affiliate_tracking_option['seopress_google_analytics_affiliate_tracking'])) {
121
+ return $seopress_google_analytics_affiliate_tracking_option['seopress_google_analytics_affiliate_tracking'];
122
+ }
123
  }
124
  }
125
 
129
  if ( ! empty ( $seopress_google_analytics_cd_author_option ) ) {
130
  foreach ($seopress_google_analytics_cd_author_option as $key => $seopress_google_analytics_cd_author_value)
131
  $options[$key] = $seopress_google_analytics_cd_author_value;
132
+ if (isset($seopress_google_analytics_cd_author_option['seopress_google_analytics_cd_author'])) {
133
+ return $seopress_google_analytics_cd_author_option['seopress_google_analytics_cd_author'];
134
+ }
135
  }
136
  }
137
 
141
  if ( ! empty ( $seopress_google_analytics_cd_category_option ) ) {
142
  foreach ($seopress_google_analytics_cd_category_option as $key => $seopress_google_analytics_cd_category_value)
143
  $options[$key] = $seopress_google_analytics_cd_category_value;
144
+ if (isset($seopress_google_analytics_cd_category_option['seopress_google_analytics_cd_category'])) {
145
+ return $seopress_google_analytics_cd_category_option['seopress_google_analytics_cd_category'];
146
+ }
147
  }
148
  }
149
 
153
  if ( ! empty ( $seopress_google_analytics_cd_tag_option ) ) {
154
  foreach ($seopress_google_analytics_cd_tag_option as $key => $seopress_google_analytics_cd_tag_value)
155
  $options[$key] = $seopress_google_analytics_cd_tag_value;
156
+ if (isset($seopress_google_analytics_cd_tag_option['seopress_google_analytics_cd_tag'])) {
157
+ return $seopress_google_analytics_cd_tag_option['seopress_google_analytics_cd_tag'];
158
+ }
159
  }
160
  }
161
 
165
  if ( ! empty ( $seopress_google_analytics_cd_post_type_option ) ) {
166
  foreach ($seopress_google_analytics_cd_post_type_option as $key => $seopress_google_analytics_cd_post_type_value)
167
  $options[$key] = $seopress_google_analytics_cd_post_type_value;
168
+ if (isset($seopress_google_analytics_cd_post_type_option['seopress_google_analytics_cd_post_type'])) {
169
+ return $seopress_google_analytics_cd_post_type_option['seopress_google_analytics_cd_post_type'];
170
+ }
171
  }
172
  }
173
 
177
  if ( ! empty ( $seopress_google_analytics_cd_logged_in_user_option ) ) {
178
  foreach ($seopress_google_analytics_cd_logged_in_user_option as $key => $seopress_google_analytics_cd_logged_in_user_value)
179
  $options[$key] = $seopress_google_analytics_cd_logged_in_user_value;
180
+ if (isset($seopress_google_analytics_cd_logged_in_user_option['seopress_google_analytics_cd_logged_in_user'])) {
181
+ return $seopress_google_analytics_cd_logged_in_user_option['seopress_google_analytics_cd_logged_in_user'];
182
+ }
183
  }
184
  }
185
 
186
  //Build Custom GA
187
  function seopress_google_analytics_js() {
188
+ if (seopress_google_analytics_ua_option() !='') {
189
+ //Init
190
+ $seopress_google_analytics_config = array();
191
+
192
+ $seopress_google_analytics_html = "\n";
193
+ $seopress_google_analytics_html .=
194
+ "<script async src='https://www.googletagmanager.com/gtag/js?id=".seopress_google_analytics_ua_option()."'></script>
195
+ <script>
196
+ window.dataLayer = window.dataLayer || [];
197
+ function gtag(){dataLayer.push(arguments);}
198
+ gtag('js', new Date());\n";
199
+
200
+ //Cross domains
201
+ if (seopress_google_analytics_cross_enable_option() =='1' && seopress_google_analytics_cross_domain_option()) {
202
+ $seopress_google_analytics_config['linker'] = "'linker': {'domains': ['".seopress_google_analytics_cross_domain_option()."']},";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
203
  }
204
+
205
+ //Remarketing
206
+ if (seopress_google_analytics_remarketing_option() !='1') {
207
+ $seopress_google_analytics_config['allow_display_features'] = "'allow_display_features': false,";
208
+ }
209
+
210
+ //Link attribution
211
+ if (seopress_google_analytics_link_attribution_option() =='1') {
212
+ $seopress_google_analytics_config['link_attribution'] = "'link_attribution': true,";
213
+ }
214
+
215
+ //Dimensions
216
+ if ((seopress_google_analytics_cd_author_option() !='' && seopress_google_analytics_cd_author_option() !='none')
217
+ || (seopress_google_analytics_cd_category_option() !='' && seopress_google_analytics_cd_category_option() !='none')
218
+ || (seopress_google_analytics_cd_tag_option() !='' && seopress_google_analytics_cd_tag_option() !='none')
219
+ || (seopress_google_analytics_cd_post_type_option() !='' && seopress_google_analytics_cd_post_type_option() !='none')
220
+ || (seopress_google_analytics_cd_logged_in_user_option() !='' && seopress_google_analytics_cd_logged_in_user_option() !='none')
221
+ ) {
222
+ $seopress_google_analytics_config['cd'] = "{";
223
+ }
224
+
225
+ if (seopress_google_analytics_cd_author_option() !='') {
226
+ if (seopress_google_analytics_cd_author_option() !='none') {
227
+ if (is_singular()) {
228
+ $seopress_google_analytics_config['cd_author'] = "'".seopress_google_analytics_cd_author_option()."': 'cd_author',";
229
+ $seopress_google_analytics_event['cd_author'] = "gtag('event', '".__('Authors','wp-seopress')."', {'cd_author': '".get_the_author()."'});";
230
+ }
231
  }
232
  }
233
+
234
+ if (seopress_google_analytics_cd_category_option() !='') {
235
+ if (seopress_google_analytics_cd_category_option() !='none') {
236
+ if (is_single() && has_category()) {
237
+ $categories = get_the_category();
238
+
239
+ if ( ! empty( $categories ) ) {
240
+ $get_first_category = esc_html( $categories[0]->name );
241
+ }
242
+ $seopress_google_analytics_config['cd_categories'] = "'".seopress_google_analytics_cd_category_option()."': 'cd_categories',";
243
+ $seopress_google_analytics_event['cd_categories'] = "gtag('event', '".__('Categories','wp-seopress')."', {'cd_categories': '".$get_first_category."'});";
244
  }
 
 
245
  }
246
+ }
247
+
248
+ if (seopress_google_analytics_cd_tag_option() !='') {
249
+ if (seopress_google_analytics_cd_tag_option() !='none') {
250
+ if (is_single() && has_tag()) {
251
+ $tags = get_the_tags();
252
+ if ( ! empty( $tags ) ) {
253
+ $seopress_comma_count = count($tags);
254
+ $get_tags = '';
255
+ foreach ($tags as $key => $value) {
256
+ $get_tags .= esc_html( $value->name );
257
+ if ( $key < $seopress_comma_count -1){
258
+ $get_tags .= ', ';
259
+ }
260
  }
261
  }
262
+ $seopress_google_analytics_config['cd_tags'] = "'".seopress_google_analytics_cd_tag_option()."': 'cd_tags',";
263
+ $seopress_google_analytics_event['cd_tags'] = "gtag('event', '".__('Tags','wp-seopress')."', {'cd_tags': '".$get_tags."'});";
264
+ }
265
+ }
266
+ }
267
+
268
+ if (seopress_google_analytics_cd_post_type_option() !='') {
269
+ if (seopress_google_analytics_cd_post_type_option() !='none') {
270
+ if (is_single()) {
271
+ $seopress_google_analytics_config['cd_cpt'] = "'".seopress_google_analytics_cd_post_type_option()."': 'cd_cpt',";
272
+ $seopress_google_analytics_event['cd_cpt'] = "gtag('event', '".__('Post types','wp-seopress')."', {'cd_cpt': '".get_post_type()."'});";
273
  }
274
+ }
275
+ }
276
+
277
+ if (seopress_google_analytics_cd_logged_in_user_option() !='') {
278
+ if (seopress_google_analytics_cd_logged_in_user_option() !='none') {
279
+ if (wp_get_current_user()->ID) {
280
+ $seopress_google_analytics_config['cd_logged_in'] = "'".seopress_google_analytics_cd_logged_in_user_option()."': 'cd_logged_in',";
281
+ $seopress_google_analytics_event['cd_logged_in'] = "gtag('event', '".__('Connected users','wp-seopress')."', {'cd_logged_in': '".wp_get_current_user()->ID."'});";
282
+ }
283
+ }
284
+ }
285
+
286
+ if (!empty($seopress_google_analytics_config['cd_logged_in']) ||
287
+ !empty($seopress_google_analytics_config['cd_cpt']) ||
288
+ !empty($seopress_google_analytics_config['cd_tags']) ||
289
+ !empty($seopress_google_analytics_config['cd_categories']) ||
290
+ !empty($seopress_google_analytics_config['cd_author'])) {
291
+