SEOPress - Version 4.4

Version Description

(10/02/2021) = * NEW Complete code refactoring on Titles and metas feature * NEW Preview dynamic tags on post list columns * NEW Live preview when adding dynamic variables for Google Preview * NEW Add Local Business types to automatic schemas as new mapping option to avoid entering manually a business type (PRO) * NEW Support variable products for automatic product schema (PRO) * NEW Support Global Product Identifiers for variable products (PRO) * NEW Dashboard notification if Google Analytics is enabled without UA or GA4 ids * NEW White Label option to change the SEO menu name (PRO) * NEW Add post ID to automatic schemas as new mapping option (PRO) * INFO Remove jQuery for Google Analytics Enhanced Ecommerce (no more jQuery with GA tracking code ) * INFO Improve wizard assistant user interface * INFO Stop adding uppercase on the first letter of each word when automatically adding media attributes (eg: alt tag) * INFO Add new help tabs for Sitemaps and Social networks settings page to improve user experience * FIX Cornerstone compatibility issue with our content analysis feature * FIX Oxygen compatibility issue with our content analysis feature ("2 meta robots found") * FIX CSV broken link export with specific PHP configuration * FIX Social tags for term taxonomies * FIX White label: some SEOPress links weren't hidden * FIX WPML XML configuration file (wpml-config.xml) * FIX GA Enhanced Ecommerce check on status order for measuring purchases * FIX GA Enhanced Ecommerce add_to_cart event from archive product page

Download this release

Release Info

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

Code changes from version 4.3.0.2 to 4.4

Files changed (108) hide show
  1. assets/css/seopress-admin-bar.min.css +1 -1
  2. assets/css/seopress-setup.css +6 -0
  3. assets/css/seopress-setup.min.css +1 -1
  4. assets/img/help/google-knowledge-graph-social.png +0 -0
  5. assets/js/seopress-analytics.min.js +1 -1
  6. assets/js/seopress-block-editor.min.js +1 -1
  7. assets/js/seopress-cookies.min.js +1 -1
  8. assets/js/seopress-counters.js +903 -460
  9. assets/js/seopress-counters.min.js +1 -1
  10. assets/js/seopress-dashboard.js +89 -88
  11. assets/js/seopress-dashboard.min.js +1 -1
  12. assets/js/seopress-media-uploader.min.js +1 -1
  13. assets/js/seopress-migrate.min.js +1 -1
  14. assets/js/seopress-network-tabs.min.js +1 -1
  15. assets/js/seopress-sitemap-ajax.min.js +1 -1
  16. assets/js/seopress-sitemap-video.min.js +1 -1
  17. assets/js/seopress-tabs.min.js +1 -1
  18. assets/js/seopress-tabs2.js +155 -61
  19. assets/js/seopress-tabs2.min.js +1 -1
  20. assets/js/seopress-tabs3.min.js +1 -1
  21. assets/js/seopress-tabs4.min.js +1 -1
  22. assets/js/seopress-tabs5.min.js +1 -1
  23. assets/js/seopress-tabs6.min.js +1 -1
  24. assets/js/seopress-tabs7.min.js +1 -1
  25. assets/js/seopress-tabs8.min.js +1 -1
  26. assets/js/seopress-yoast-migrate.min.js +1 -1
  27. inc/admin/admin-metaboxes-content-analysis-form.php +0 -0
  28. inc/admin/admin-metaboxes-form.php +20 -11
  29. inc/admin/admin-metaboxes-get-content-analysis.php +0 -740
  30. inc/admin/admin-metaboxes-render-content-analysis.php +0 -70
  31. inc/admin/admin-metaboxes.php +535 -520
  32. inc/admin/admin-notifications-center.php +65 -0
  33. inc/admin/admin-term-metaboxes.php +24 -22
  34. inc/admin/admin-wizard.php +5 -1
  35. inc/admin/admin.php +180 -107
  36. inc/admin/ajax.php +9 -3
  37. inc/admin/page-builders/elementor/assets/js/text-letter-counter.js +126 -103
  38. inc/functions/options-advanced-admin.php +2 -206
  39. inc/functions/options-google-analytics-checkout.php +0 -85
  40. inc/functions/options-google-analytics-order.php +0 -55
  41. inc/functions/options-google-analytics.php +1 -8
  42. inc/functions/options-google-ecommerce.php +184 -182
  43. inc/functions/options-import-export.php +730 -728
  44. inc/functions/options-social.php +11 -0
  45. inc/functions/options-titles-metas.php +53 -25
  46. languages/wp-seopress-pt_BR.mo +0 -0
  47. languages/wp-seopress-pt_BR.po +0 -3493
  48. languages/wp-seopress.pot +3289 -3010
  49. readme.txt +30 -8
  50. seopress.php +31 -25
  51. src/Actions/Admin/ManageColumn.php +277 -0
  52. src/Actions/Ajax/PreviewMetaTitle.php +68 -0
  53. src/Actions/Front/GoogleAnalytics.php +30 -0
  54. src/Actions/Front/Metas/DescriptionMeta.php +270 -0
  55. src/Actions/Front/Metas/TitleMeta.php +263 -0
  56. src/Actions/Options/Init.php +2 -2
  57. src/Compose/UseTags.php +145 -0
  58. src/Core/Container/ContainerSeopress.php +6 -2
  59. src/Core/Kernel.php +43 -23
  60. src/ManualHooks/Thirds/WooCommerce/WooCommerceAnalytics.php +100 -0
  61. src/Models/AbstractCustomTagValue.php +13 -0
  62. src/Models/GetTagValue.php +11 -0
  63. src/Services/ContextPage.php +226 -0
  64. src/Services/Options/{Title.php → TitleOption.php} +41 -4
  65. src/Services/TagsToString.php +77 -0
  66. src/Services/WordPressData.php +34 -0
  67. src/Tags/ArchiveDate.php +0 -11
  68. src/Tags/ArchiveTitle.php +20 -0
  69. src/Tags/AuthorBio.php +38 -0
  70. src/Tags/CategoryDescription.php +34 -0
  71. src/Tags/CategoryTitle.php +29 -0
  72. src/Tags/CurrentPagination.php +34 -0
  73. src/Tags/Custom/CustomPostMeta.php +40 -0
  74. src/Tags/Custom/CustomTerm.php +50 -0
  75. src/Tags/CustomPostTypePlural.php +20 -0
  76. src/Tags/Date/ArchiveDate.php +20 -0
  77. src/Tags/Date/ArchiveDateDay.php +20 -0
  78. src/Tags/Date/ArchiveDateMonth.php +20 -0
  79. src/Tags/Date/ArchiveDateYear.php +20 -0
  80. src/Tags/Date/CurrentDate.php +17 -0
  81. src/Tags/Date/CurrentDay.php +17 -0
  82. src/Tags/Date/CurrentMonth.php +17 -0
  83. src/Tags/Date/CurrentMonthNum.php +17 -0
  84. src/Tags/Date/CurrentShortMonth.php +17 -0
  85. src/Tags/Date/CurrentTime.php +17 -0
  86. src/Tags/Date/CurrentYear.php +17 -0
  87. src/Tags/Date/PostDate.php +26 -0
  88. src/Tags/Date/PostModifiedDate.php +24 -0
  89. src/Tags/Page.php +41 -0
  90. src/Tags/PostAuthor.php +26 -1
  91. src/Tags/PostCategory.php +34 -0
  92. src/Tags/PostContent.php +53 -0
  93. src/Tags/PostExcerpt.php +52 -0
  94. src/Tags/PostTag.php +34 -0
  95. src/Tags/PostThumbnailUrl.php +33 -0
  96. src/Tags/PostTitle.php +20 -1
  97. src/Tags/PostUrl.php +32 -0
  98. src/Tags/SearchKeywords.php +32 -0
  99. src/Tags/Separator.php +16 -1
  100. src/Tags/SiteTagline.php +19 -0
  101. src/Tags/SiteTitle.php +9 -1
  102. src/Tags/TagDescription.php +36 -0
  103. src/Tags/TagTitle.php +30 -0
  104. src/Tags/Tagline.php +0 -11
  105. src/Tags/TargetKeyword.php +24 -0
  106. src/Tags/TermDescription.php +36 -0
  107. src/Tags/TermTitle.php +29 -0
  108. src/Tags/WooCommerce/SingleCategory.php +35 -0
assets/css/seopress-admin-bar.min.css CHANGED
@@ -1 +1 @@
1
- #adminmenu div.wp-menu-image.dashicons-admin-seopress::before,#seopress-header #seopress-admin h1::before{content:"\e800";font-family:seopress}#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:"\e800";font:normal 14px/1 seopress;line-height:1.5rem}#wpadminbar #wp-toolbar #wp-admin-bar-seopress_custom_top_level .wrap-seopress-noindex{background:red;color:#fff;padding:0 8px;float:right;margin-left:6px}#wpadminbar #wp-toolbar #wp-admin-bar-seopress_custom_top_level>a{display:inline-block}#wpadminbar #wp-toolbar #wp-admin-bar-seopress_custom_top_level .wrap-seopress-noindex .ab-icon::before{color:#eee;vertical-align:middle}#wpadminbar #wp-toolbar #wp-admin-bar-seopress_custom_sub_menu_meta_robots{display:block;background:#23292d}#wpadminbar #wp-toolbar #wp-admin-bar-seopress_custom_sub_menu_meta_robots a{height:inherit;padding-bottom:5px}#wpadminbar #wp-toolbar #wp-admin-bar-seopress_custom_sub_menu_meta_robots .wrap-seopress-cpt-seo{font-weight:700;border-bottom:1px solid currentColor;width:100%;display:block;margin-bottom:5px}#wpadminbar #wp-toolbar #wp-admin-bar-seopress_custom_sub_menu_meta_robots .wrap-seopress-cpt-nofollow,#wpadminbar #wp-toolbar #wp-admin-bar-seopress_custom_sub_menu_meta_robots .wrap-seopress-cpt-noindex{display:block}#wpadminbar #wp-toolbar #wp-admin-bar-seopress_custom_sub_menu_meta_robots .wrap-seopress-cpt-nofollow .ab-icon,#wpadminbar #wp-toolbar #wp-admin-bar-seopress_custom_sub_menu_meta_robots .wrap-seopress-cpt-noindex .ab-icon{float:none;vertical-align:middle}#wpadminbar #wp-toolbar #wp-admin-bar-seopress_custom_sub_menu_meta_robots .wrap-seopress-cpt-nofollow .on::before,#wpadminbar #wp-toolbar #wp-admin-bar-seopress_custom_sub_menu_meta_robots .wrap-seopress-cpt-noindex .on::before{color:red}#wpadminbar #wp-toolbar #wp-admin-bar-seopress_custom_sub_menu_meta_robots .wrap-seopress-cpt-nofollow .off::before,#wpadminbar #wp-toolbar #wp-admin-bar-seopress_custom_sub_menu_meta_robots .wrap-seopress-cpt-noindex .off::before{color:#46b450}
1
+ #adminmenu div.wp-menu-image.dashicons-admin-seopress::before,#seopress-header #seopress-admin h1::before{content:"\e800";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:"\e800";font:normal 14px/1 seopress;line-height:1.5rem}#wpadminbar #wp-toolbar #wp-admin-bar-seopress_custom_top_level .wrap-seopress-noindex{background:red;color:#fff;padding:0 8px;float:right;margin-left:6px}#wpadminbar #wp-toolbar #wp-admin-bar-seopress_custom_top_level>a{display:inline-block}#wpadminbar #wp-toolbar #wp-admin-bar-seopress_custom_top_level .wrap-seopress-noindex .ab-icon::before{color:#eee;vertical-align:middle}#wpadminbar #wp-toolbar #wp-admin-bar-seopress_custom_sub_menu_meta_robots{display:block;background:#23292d}#wpadminbar #wp-toolbar #wp-admin-bar-seopress_custom_sub_menu_meta_robots a{height:inherit;padding-bottom:5px}#wpadminbar #wp-toolbar #wp-admin-bar-seopress_custom_sub_menu_meta_robots .wrap-seopress-cpt-seo{font-weight:700;border-bottom:1px solid currentColor;width:100%;display:block;margin-bottom:5px}#wpadminbar #wp-toolbar #wp-admin-bar-seopress_custom_sub_menu_meta_robots .wrap-seopress-cpt-nofollow,#wpadminbar #wp-toolbar #wp-admin-bar-seopress_custom_sub_menu_meta_robots .wrap-seopress-cpt-noindex{display:block}#wpadminbar #wp-toolbar #wp-admin-bar-seopress_custom_sub_menu_meta_robots .wrap-seopress-cpt-nofollow .ab-icon,#wpadminbar #wp-toolbar #wp-admin-bar-seopress_custom_sub_menu_meta_robots .wrap-seopress-cpt-noindex .ab-icon{float:none;vertical-align:middle}#wpadminbar #wp-toolbar #wp-admin-bar-seopress_custom_sub_menu_meta_robots .wrap-seopress-cpt-nofollow .on::before,#wpadminbar #wp-toolbar #wp-admin-bar-seopress_custom_sub_menu_meta_robots .wrap-seopress-cpt-noindex .on::before{color:red}#wpadminbar #wp-toolbar #wp-admin-bar-seopress_custom_sub_menu_meta_robots .wrap-seopress-cpt-nofollow .off::before,#wpadminbar #wp-toolbar #wp-admin-bar-seopress_custom_sub_menu_meta_robots .wrap-seopress-cpt-noindex .off::before{color:#46b450}
assets/css/seopress-setup.css CHANGED
@@ -163,6 +163,12 @@ textarea:focus {
163
  text-align: left;
164
  }
165
 
 
 
 
 
 
 
166
  .seopress-setup-content a {
167
  color: #6259e6;
168
  }
163
  text-align: left;
164
  }
165
 
166
+ .seopress-setup-content .description {
167
+ font-size: 13px;
168
+ margin: 1em 0;
169
+ font-style: italic;
170
+ }
171
+
172
  .seopress-setup-content a {
173
  color: #6259e6;
174
  }
assets/css/seopress-setup.min.css CHANGED
@@ -1 +1 @@
1
- html{background-color:#f6f7f7;margin:0}body.seopress-setup{box-shadow:none;background:#f6f7f7;padding:0;margin:0;max-width:100%}.wp-core-ui .button,.wp-core-ui .button-secondary{color:#6159e6;border-color:#6159e6;background:#fff;vertical-align:middle}.wp-core-ui .button-secondary:hover{color:#555d66;background:#fafafa;border-color:#999}.wp-core-ui select:focus,input[type=checkbox]:focus,input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=radio]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,select:focus,textarea:focus{border-color:#6259e6;box-shadow:0 0 0 1px #6259e6;outline:2px solid transparent}.seopress-setup .sp-progress-bar{background-color:#6159e6}.spinner{display:inline-block}.log{margin:0;text-transform:uppercase;display:inline-block;vertical-align:middle;padding:5px;color:rgba(19,191,17,1);font-style:italic}.admin_page_seopress_csv_importer.seopress-styles .seopress-option{max-width:700px;margin:40px auto}.admin_page_seopress_csv_importer .description{color:#999;margin-top:4px;display:block}.admin_page_seopress_csv_importer .description code{background:0 0;padding:0;white-space:pre-line;word-wrap:break-word;word-break:break-all}.admin_page_seopress_csv_importer .seopress-setup-content table thead th{font-weight:700}.admin_page_seopress_csv_importer .seopress-setup-content table tr:nth-child(odd) td{background:#fbfbfb}.admin_page_seopress_csv_importer .seopress-setup-content table td select{width:100%}.admin_page_seopress_csv_importer .dashicons-yes-alt:before{color:#3642ff}.admin_page_seopress_csv_importer .seopress-wizard-services{padding:0}.seopress-setup{text-align:center}.seopress-setup .select2-container{text-align:left;width:auto}.seopress-setup .hidden{display:none}.seopress-setup .seopress-setup-content{box-shadow:0 1px 3px rgba(0,0,0,.13);padding:2em;margin:65px auto 24px;background:#fff;overflow:hidden;zoom:1;text-align:center;max-width:700px}.seopress-setup-content h1,.seopress-setup-content h2,.seopress-setup-content h3,.seopress-setup-content table{margin:0 0 20px;border:0;padding:0;color:#2c3338;clear:none;font-weight:500}.seopress-setup-content p{margin:20px 0;font-size:1em;line-height:1.75em;color:#50575e}.seopress-setup-content .m0{margin:0}.seopress-setup-content table{font-size:1em;line-height:1.75em;color:#50575e;text-align:left}.seopress-setup-content a{color:#6259e6}.seopress-setup-content a:focus,.seopress-setup-content a:hover{color:#111}.seopress-option #seopress-edd-license-btn,.seopress-option #seopress-refresh{width:auto}.seopress-setup-content .form-table th{width:35%;vertical-align:top;font-weight:400}.seopress-setup-content .form-table td{vertical-align:top}.seopress-setup-content .form-table td input,.seopress-setup-content .form-table td select{width:100%;box-sizing:border-box}.seopress-setup-content .form-table td input[size]{width:auto}.seopress-setup-content .form-table td .description{line-height:1.5em;display:block;margin-top:.25em;color:#999;font-style:italic}.seopress-setup-content .form-table td .input-checkbox,.seopress-setup-content .form-table td .input-radio{width:auto;box-sizing:inherit;padding:inherit;margin:0 .5em 0 0;box-shadow:none}.seopress-setup-content .form-table .section_title td{padding:0}.seopress-setup-content .form-table .section_title td h2,.seopress-setup-content .form-table .section_title td p{margin:12px 0 0}.seopress-setup-content .form-table td,.seopress-setup-content .form-table th{padding:12px 0;margin:0;border:0}.seopress-setup-content .form-table td:first-child,.seopress-setup-content .form-table th:first-child{padding-right:1em}.seopress-setup-content .seopress-setup-pages{width:100%;border-top:1px solid #eee}.seopress-setup-content .seopress-setup-pages thead th{display:none}.seopress-setup-content .seopress-setup-pages .page-name{width:30%;font-weight:700}.seopress-setup-content .seopress-setup-pages td,.seopress-setup-content .seopress-setup-pages th{padding:14px 0;border-bottom:1px solid #eee}.seopress-setup-content .seopress-setup-pages td:first-child,.seopress-setup-content .seopress-setup-pages th:first-child{padding-right:9px}.seopress-setup-content .seopress-setup-pages th{padding-top:0}.seopress-setup-content .seopress-setup-pages .page-options p{color:#777;margin:6px 0 0 24px;line-height:1.75em}.seopress-setup-content .seopress-setup-pages .page-options p input{vertical-align:middle;margin:1px 0 0;height:1.75em;width:1.75em;line-height:1.75em}.seopress-setup-content .seopress-setup-pages .page-options p label{line-height:1}@media screen and (max-width:782px){.seopress-setup-content .form-table tbody th{width:auto}}.seopress-setup-content .twitter-share-button{float:right}.seopress-setup-content .seopress-setup-next-steps{overflow:hidden;margin:0 0 24px;padding-bottom:2px}.seopress-setup-content .seopress-setup-next-steps h2{margin-bottom:12px}.seopress-setup-content .seopress-setup-next-steps .seopress-setup-next-steps-first{float:left;width:50%;box-sizing:border-box}.seopress-setup-content .seopress-setup-next-steps .seopress-setup-next-steps-last{float:right;width:50%;box-sizing:border-box}.seopress-setup-content .seopress-setup-next-steps ul{padding:0 2em 0 0;list-style:none outside;margin:0}.seopress-setup-content .seopress-setup-next-steps ul li a{display:block;padding:0 0 .75em}.seopress-setup-content .seopress-setup-next-steps ul .setup-product a.button{background-color:#f7f7f7;border-color:#ccc;color:#23282d;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #ccc;text-shadow:1px 0 1px #eee,0 1px 1px #eee;font-size:1em;height:auto;line-height:1.75em;margin:0 0 .75em;opacity:1;padding:1em;text-align:center}.seopress-setup-content .seopress-setup-next-steps ul .setup-product a.button:active,.seopress-setup-content .seopress-setup-next-steps ul .setup-product a.button:focus,.seopress-setup-content .seopress-setup-next-steps ul .setup-product a.button:hover{background:#f5f5f5;border-color:#aaa}.seopress-setup-content .seopress-setup-next-steps ul .setup-product a.button-primary{color:#fff;background-color:#bb77ae;border-color:#a36597;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597;text-shadow:0 -1px 1px #a36597,1px 0 1px #a36597,0 1px 1px #a36597,-1px 0 1px #a36597}.seopress-setup-content .seopress-setup-next-steps ul .setup-product a.button-primary:active,.seopress-setup-content .seopress-setup-next-steps ul .setup-product a.button-primary:focus,.seopress-setup-content .seopress-setup-next-steps ul .setup-product a.button-primary:hover{color:#fff;background:#a36597;border-color:#a36597;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597}.seopress-setup-content .seopress-setup-next-steps ul li a::before{color:#82878c;font:normal 20px/1 dashicons;speak:none;display:inline-block;padding:0 10px 0 0;top:1px;position:relative;text-decoration:none!important;vertical-align:top}.seopress-setup-content .seopress-setup-next-steps ul .learn-more a::before{content:"\f105"}.seopress-setup-content .seopress-setup-next-steps ul .video-walkthrough a::before{content:"\f126"}.seopress-setup-content .seopress-setup-next-steps ul .newsletter a::before{content:"\f465"}.seopress-setup-content .seopress-newsletter,.seopress-setup-content .updated{padding:24px;margin:0 0 24px;overflow:hidden;background:#f5f5f5}.seopress-setup-content .seopress-newsletter p,.seopress-setup-content .updated p{padding:0;margin:0 0 12px}.seopress-setup-content .seopress-newsletter form,.seopress-setup-content .seopress-tracker,.seopress-setup-content .updated form,.seopress-setup-content .updated p:last-child{margin:24px 0;border:1px solid #eee;padding:20px;border-radius:4px;overflow:hidden}.seopress-setup-content .seopress-tracker p{font-size:14px;line-height:1.5em}.seopress-setup-content .seopress-tracker .checkbox{line-height:24px;font-weight:500;font-size:1em;margin-top:0;margin-bottom:20px}.seopress-setup-content .checkbox input[type=checkbox]{opacity:0;position:absolute;left:-9999px}.seopress-setup-content .checkbox label{position:relative;display:inline-block;padding-left:28px}.seopress-setup-content .checkbox label::after,.seopress-setup-content .checkbox label::before{position:absolute;content:"";display:inline-block}.seopress-setup-content .checkbox label::before{height:16px;width:16px;left:0;top:3px;border:1px solid #aaa;background-color:#fff;border-radius:3px}.seopress-setup-content .checkbox label::after{height:5px;width:9px;border-left:2px solid;border-bottom:2px solid;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);left:4px;top:7px;color:#fff}.seopress-setup-content .checkbox input[type=checkbox]+label::after{content:none}.seopress-setup-content .checkbox input[type=checkbox]:checked+label::after{content:""}.seopress-setup-content .checkbox input[type=checkbox]:focus+label::before{outline:#3b99fc auto 5px}.seopress-setup-content .checkbox input[type=checkbox]:checked+label::before{background:#6259e6;border-color:#6259e6}.seopress-setup-steps{padding:10px 0 24px;margin:0;list-style:none outside;overflow:hidden;color:#ccc;width:100%;height:56px;border-bottom:1px solid #dcdcde;align-items:center;justify-content:center;background:#fff;display:inline-flex}.seopress-setup-steps li{width:100%;float:left;padding:0 0 1.5em;margin:0;text-align:center;position:relative;border-bottom:2px solid #ccc;line-height:24px;font-size:16px}.seopress-setup-steps li a{text-decoration:none;padding:1.5em;position:relative;z-index:1;color:#1d2327;line-height:24px;font-size:16px;transition:color .3s linear}.seopress-setup-steps li a:focus,.seopress-setup-steps li a:hover{color:#6159e6}.seopress-setup-steps li::before{content:"";border:3px solid #ccc;border-radius:100%;width:24px;height:24px;position:absolute;bottom:0;left:50%;margin-left:-15px;margin-bottom:-15px;background:#fff;font-family:Dashicons;font-size:24px;line-height:24px}.seopress-setup-steps li.active{color:#6259e6;font-weight:700;text-decoration:none;position:relative;z-index:1;color:#1d2327;line-height:24px}.seopress-setup-steps li.active::before{border-color:#6259e6}@keyframes fade{0%{border-color:#6259e600;left:-100%}100%{border-color:#6259e6;left:0}}.seopress-setup-steps li.active::after{content:"";position:absolute;bottom:-2px;left:0;animation-name:fade;animation-duration:2s;width:100%;animation-iteration-count:1;height:2px;background:#6259e6;z-index:-1}.seopress-setup-steps li.done{border-color:#6259e6;color:#6259e6;z-index:10}.seopress-setup-steps li.done::before{border-color:#6259e6;background:#6259e6;content:"\f147";color:#fff}.seopress-setup .seopress-setup-actions{overflow:hidden;margin:20px 0 0;position:relative}.seopress-setup .seopress-setup-actions .button{font-size:1.25em;padding:.5em 1em;line-height:1em;margin-right:.5em;margin-bottom:2px;height:auto;border-radius:4px}.seopress-setup .seopress-setup-actions .button-primary{background-color:#6259e6;border-color:#6259e6;margin:0;opacity:1;transition:all .3s linear;color:#fff}.seopress-setup .seopress-setup-actions .button-primary:active,.seopress-setup .seopress-setup-actions .button-primary:focus,.seopress-setup .seopress-setup-actions .button-primary:hover{background:0 0;border-color:#6259e6;color:#6259e6}.seopress-setup-content p:last-child{margin-bottom:0}.seopress-setup-content p.store-setup{margin-top:0}.seopress-setup-footer-links{font-size:.85em;color:#7b7b7b;margin:1.18em auto;display:inline-block;text-align:center}.seopress-wizard-services{border:1px solid #eee;padding:1em;margin:0 0 1em;list-style:none outside;border-radius:4px;overflow:hidden;text-align:left}.seopress-wizard-services p{margin:0 0 1em 0;padding:0;font-size:1em;line-height:1.5em}.seopress-wizard-service-item,.seopress-wizard-services-list-toggle{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;padding:0;color:#50575e;-webkit-box-align:center;-webkit-align-items:center;align-items:center;margin:1rem 0}.seopress-wizard-service-item,.seopress-wizard-services-list-toggle:first-child{margin-top:0}.seopress-wizard-service-item:last-child,.seopress-wizard-services-list-toggle:last-child{border-bottom:0}.seopress-wizard-service-item .payment-gateway-fee,.seopress-wizard-services-list-toggle .payment-gateway-fee{color:#a6a6a6}.seopress-wizard-service-item .seopress-wizard-service-name,.seopress-wizard-services-list-toggle .seopress-wizard-service-name{-webkit-flex-basis:0;flex-basis:0;min-width:160px;text-align:center;font-weight:700;padding:2em 0;-webkit-align-self:stretch;align-self:stretch;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:baseline;-webkit-align-items:baseline;align-items:baseline}.seopress-wizard-payment-gateway-form .seopress-wizard-service-item .seopress-wizard-service-name,.seopress-wizard-payment-gateway-form .seopress-wizard-services-list-toggle .seopress-wizard-service-name{-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.seopress-wizard-service-item .seopress-wizard-service-name img,.seopress-wizard-services-list-toggle .seopress-wizard-service-name img{max-width:75px}.seopress-wizard-service-item.stripe-logo .seopress-wizard-service-name img,.seopress-wizard-services-list-toggle.stripe-logo .seopress-wizard-service-name img{padding:8px 0}.seopress-wizard-service-item.paypal-logo .seopress-wizard-service-name img,.seopress-wizard-services-list-toggle.paypal-logo .seopress-wizard-service-name img{max-width:87px;padding:2px 0}.seopress-wizard-service-item.klarna-logo .seopress-wizard-service-name img,.seopress-wizard-services-list-toggle.klarna-logo .seopress-wizard-service-name img{max-width:87px;padding:12px 0}.seopress-wizard-service-item.square-logo .seopress-wizard-service-name img,.seopress-wizard-services-list-toggle.square-logo .seopress-wizard-service-name img{max-width:95px;padding:12px 0}.seopress-wizard-service-item.eway-logo .seopress-wizard-service-name img,.seopress-wizard-services-list-toggle.eway-logo .seopress-wizard-service-name img{max-width:87px}.seopress-wizard-service-item.payfast-logo .seopress-wizard-service-name img,.seopress-wizard-services-list-toggle.payfast-logo .seopress-wizard-service-name img{max-width:140px}.seopress-wizard-service-item .seopress-wizard-service-description,.seopress-wizard-services-list-toggle .seopress-wizard-service-description{-webkit-box-flex:1;-webkit-flex-grow:1;flex-grow:1;padding:20px}.seopress-wizard-service-item .seopress-wizard-service-description p,.seopress-wizard-services-list-toggle .seopress-wizard-service-description p{margin-bottom:1em}.seopress-wizard-service-item .seopress-wizard-service-description p:last-child,.seopress-wizard-services-list-toggle .seopress-wizard-service-description p:last-child{margin-bottom:0}.seopress-wizard-service-item .seopress-wizard-service-description .seopress-wizard-service-settings-description,.seopress-wizard-services-list-toggle .seopress-wizard-service-description .seopress-wizard-service-settings-description{display:block;font-style:italic;color:#999}.seopress-wizard-service-item .seopress-wizard-service-enable,.seopress-wizard-services-list-toggle .seopress-wizard-service-enable{-webkit-flex-basis:0;flex-basis:0;min-width:75px;text-align:center;cursor:pointer;padding:2em 0;position:relative;max-height:1.5em;-webkit-align-self:flex-start;align-self:flex-start;-webkit-box-ordinal-group:4;-webkit-order:3;order:3}.seopress-wizard-service-item .seopress-wizard-service-toggle,.seopress-wizard-services-list-toggle .seopress-wizard-service-toggle{height:16px;width:32px;border:2px solid #935687;background-color:#935687;display:inline-block;text-indent:-9999px;border-radius:10em;position:relative}.seopress-wizard-service-item .seopress-wizard-service-toggle input[type=checkbox],.seopress-wizard-services-list-toggle .seopress-wizard-service-toggle input[type=checkbox]{display:none}.seopress-wizard-service-item .seopress-wizard-service-toggle::before,.seopress-wizard-services-list-toggle .seopress-wizard-service-toggle::before{content:"";display:block;width:16px;height:16px;background:#fff;position:absolute;top:0;right:0;border-radius:100%}.seopress-wizard-service-item .seopress-wizard-service-toggle.disabled,.seopress-wizard-services-list-toggle .seopress-wizard-service-toggle.disabled{border-color:#999;background-color:#999}.seopress-wizard-service-item .seopress-wizard-service-toggle.disabled::before,.seopress-wizard-services-list-toggle .seopress-wizard-service-toggle.disabled::before{right:auto;left:0}.seopress-wizard-service-item .seopress-wizard-service-settings,.seopress-wizard-services-list-toggle .seopress-wizard-service-settings{display:none;margin-top:.75em;margin-bottom:0;cursor:default}.seopress-wizard-service-item .seopress-wizard-service-settings.hide,.seopress-wizard-services-list-toggle .seopress-wizard-service-settings.hide{display:none}.seopress-wizard-service-item.checked .seopress-wizard-service-settings,.seopress-wizard-services-list-toggle.checked .seopress-wizard-service-settings{display:inline-block}.seopress-wizard-service-item.checked .seopress-wizard-service-settings.hide,.seopress-wizard-services-list-toggle.checked .seopress-wizard-service-settings.hide{display:none}.seopress-wizard-service-item.closed,.seopress-wizard-services-list-toggle.closed{border-bottom:0}.seopress-wizard-services-list-toggle{cursor:pointer}.seopress-wizard-services-list-toggle .seopress-wizard-service-enable::before{content:"\f343";font-family:dashicons;visibility:initial;color:#50575e;font-size:25px;margin-top:-7px;margin-left:-5px;position:absolute;visibility:visible}.seopress-wizard-services-list-toggle.closed .seopress-wizard-service-enable::before{content:"\f347"}.seopress-wizard-services-list-toggle .seopress-wizard-service-enable input{visibility:hidden;position:relative}.seopress-wizard-services.manual .seopress-wizard-service-item{display:none}.seopress-wizard-services.shipping{margin:0}.seopress-wizard-services.shipping .seopress-wizard-service-name{font-weight:400;text-align:left;-webkit-box-align:center;-webkit-align-items:center;align-items:center;max-height:5em;padding:0}.seopress-wizard-services.shipping .seopress-wizard-service-item{padding-left:2em;padding-top:.67em}.seopress-wizard-services.shipping .seopress-wizard-service-item:first-child{border-bottom:0;padding-bottom:0;font-weight:700}.seopress-wizard-services.shipping .seopress-wizard-service-item:first-child .seopress-wizard-service-name{font-weight:700}.seopress-wizard-services.shipping .seopress-wizard-shipping-method-select,.seopress-wizard-services.shipping .shipping-method-setting{display:-webkit-box;display:-webkit-flex;display:flex}.seopress-wizard-services.shipping .seopress-wizard-shipping-method-select.hide,.seopress-wizard-services.shipping .shipping-method-setting.hide{display:none}.seopress-wizard-services.shipping .seopress-wizard-shipping-method-dropdown,.seopress-wizard-services.shipping .shipping-method-setting input{margin-right:2em;margin-bottom:1em}.seopress-wizard-services.shipping .seopress-wizard-shipping-method-dropdown .select2,.seopress-wizard-services.shipping .shipping-method-setting input .select2{min-width:130px}.seopress-wizard-services.shipping .seopress-wizard-service-description{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;color:#a6a6a6}.seopress-wizard-services.shipping .seopress-wizard-service-item:not(:first-child) .seopress-wizard-service-description{font-size:.92em;padding-bottom:10px}.seopress-wizard-services.shipping .shipping-method-setting input{width:95px;border:1px solid #aaa;border-color:#ddd;border-radius:4px;height:28px;padding-left:8px;padding-right:24px;font-size:14px;color:#444;background-color:#fff;display:inline-block}.seopress-wizard-services.shipping .shipping-method-description,.seopress-wizard-services.shipping .shipping-method-setting .description{color:#7e7e7e;font-size:.9em}.seopress-wizard-services.shipping .shipping-method-setting input::-webkit-input-placeholder{color:#e1e1e1}.seopress-wizard-services.shipping .shipping-method-setting input:-ms-input-placeholder{color:#e1e1e1}.seopress-wizard-services.shipping .shipping-method-setting input::-ms-input-placeholder{color:#e1e1e1}.seopress-wizard-services.shipping .shipping-method-setting input::placeholder{color:#e1e1e1}.seopress-setup-shipping-units p{line-height:1.5em;font-size:13px;margin-bottom:.25em;text-align:center}.seopress-setup-shipping-units .seopress-setup-shipping-unit{margin-bottom:1.75em}.seopress-setup-shipping-units .seopress-setup-shipping-unit .select2{min-width:125px;top:-5px}.hide{display:none}.seopress-wizard-features{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;list-style:none;padding:0}.seopress-wizard-features .seopress-wizard-feature-item{-webkit-flex-basis:calc(50% - 4em - 3px);flex-basis:calc(50% - 4em - 3px);border:1px solid #eee;padding:2em}.seopress-wizard-features .seopress-wizard-feature-item:nth-child(1){border-radius:4px 0 0 0}.seopress-wizard-features .seopress-wizard-feature-item:nth-child(2){border-left:0;border-radius:0 4px 0 0}.seopress-wizard-features .seopress-wizard-feature-item:nth-child(3){border-top:0;border-radius:0 0 0 4px}.seopress-wizard-features .seopress-wizard-feature-item:nth-child(4){border-top:0;border-left:0;border-radius:0 0 4px 0}.seopress-wizard-features p.seopress-wizard-feature-description,.seopress-wizard-features p.seopress-wizard-feature-name{margin:0;line-height:1.5em}h3.jetpack-reasons{text-align:center;margin:3em 0 1em 0;font-size:14px}.jetpack-logo,.wcs-notice{display:block;margin:1.75em auto 2em auto;max-height:175px}.activate-splash .jetpack-logo{width:170px;margin-bottom:0}.activate-splash .wcs-notice{margin-top:1em;padding-left:57px}.step{text-align:center}.seopress-setup .seopress-setup-actions .button{text-shadow:none;font-weight:300;font-size:16px;padding:1em 2em;box-shadow:none;min-width:12em;min-width:auto;margin-top:10px}.seopress-setup .seopress-setup-actions .button:active,.seopress-setup .seopress-setup-actions .button:focus,.seopress-setup .seopress-setup-actions .button:hover{box-shadow:none}.seopress-setup .seopress-setup-actions .plugin-install-info{display:block;font-style:italic;color:#999;font-size:14px;line-height:1.5em;margin:5px 0}.seopress-setup .seopress-setup-actions .plugin-install-info>*{display:block}.seopress-setup .seopress-setup-actions .plugin-install-info .plugin-install-info-list-item::after{content:", "}.seopress-setup .seopress-setup-actions .plugin-install-info .plugin-install-info-list-item:last-of-type::after{content:". "}.seopress-setup .seopress-setup-actions .plugin-install-info a{white-space:nowrap}.seopress-setup .seopress-setup-actions .plugin-install-info a:not(:hover):not(:focus){color:inherit}.plugin-install-source{background:rgba(187,119,174,.15)}.plugin-install-source:not(.seopress-wizard-service-item){box-shadow:0 0 0 10px rgba(187,119,174,.15)}.location-prompt{color:#50575e;font-size:13px;font-weight:500;margin-bottom:.5em;margin-top:.85em;display:inline-block;width:100%;text-align:left}.location-input{border:1px solid #aaa;border-color:#ddd;border-radius:4px;height:30px;width:calc(100% - 8px - 24px - 2px);padding-left:8px;padding-right:24px;font-size:16px;color:#444;background-color:#fff;display:inline-block;width:100%}.location-input.dropdown{width:100%;max-width:inherit}.address-step .select2{min-width:100%}.store-address-container .city-and-postcode{display:-webkit-box;display:-webkit-flex;display:flex}.store-address-container .city-and-postcode div{-webkit-flex-basis:50%;flex-basis:50%;margin-right:1em}.store-address-container .city-and-postcode div:last-of-type{margin-right:0}.store-address-container .select2-container,.store-address-container input[type=text],.store-address-container select{margin-bottom:10px}.product-type-container{margin-top:14px;margin-bottom:1px}#seopress_sell_in_person{margin-left:0}.seopress-wizard-service-settings .payment-email-input{border:1px solid #aaa;border-color:#ddd;border-radius:4px;height:30px;padding:0 8px;font-size:14px;color:#444;background-color:#fff;display:inline-block}.seopress-wizard-service-settings .payment-email-input[disabled]{color:#aaa}.newsletter-form-container{display:-webkit-box;display:-webkit-flex;display:flex}.newsletter-form-container .newsletter-form-email{border:1px solid #aaa;border-color:#ddd;border-radius:4px;height:42px;padding:0 8px;font-size:16px;color:#50575e;background-color:#fff;display:inline-block;margin-right:6px;-webkit-box-flex:1;-webkit-flex-grow:1;flex-grow:1}.newsletter-form-container .newsletter-form-button-container{-webkit-box-flex:0;-webkit-flex-grow:0;flex-grow:0}.seopress-setup .seopress-setup-actions .button.newsletter-form-button{height:42px;padding:0 1em;margin:0}.seopress-wizard-next-steps{border:1px solid #eee;border-radius:4px;list-style:none;padding:0}.seopress-wizard-next-steps li{padding:0}.seopress-wizard-next-steps .seopress-wizard-next-step-item{display:-webkit-box;display:-webkit-flex;display:flex;border-top:1px solid #eee;text-align:left}.seopress-wizard-next-steps .seopress-wizard-next-step-item:first-child{border-top:0}.seopress-wizard-next-steps .seopress-wizard-next-step-description{-webkit-box-flex:1;-webkit-flex-grow:1;flex-grow:1;margin:1.5em}.seopress-wizard-next-steps .seopress-wizard-next-step-action{-webkit-box-flex:0;-webkit-flex-grow:0;flex-grow:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;justify-content:center}.seopress-wizard-next-steps .seopress-wizard-next-step-action .button{margin:1em 1.5em}.seopress-wizard-next-steps p.next-step-heading{margin:0;font-size:.95em;font-weight:400;font-variant:all-petite-caps}.seopress-wizard-next-steps p.next-step-extra-info{margin:0}.seopress-wizard-next-steps h3.next-step-description{margin:0;font-size:16px;font-weight:600}.seopress-wizard-next-steps .seopress-wizard-additional-steps{border-top:1px solid #eee}.seopress-wizard-next-steps .seopress-wizard-additional-steps .seopress-wizard-next-step-description{margin-bottom:0}.seopress-wizard-next-steps .seopress-wizard-additional-steps .seopress-setup-actions{margin:0 0 1.5em 0}.seopress-wizard-next-steps .seopress-wizard-additional-steps .seopress-setup-actions .button{font-size:15px;margin:1em 0 1em 1.5em}.seopress-wizard-next-steps .seopress-wizard-additional-steps .seopress-setup-actions .button::last-child{margin-right:1.5em}p.next-steps-help-text{color:#9f9f9f;padding:0 2em;text-align:center;font-size:.9em}p.jetpack-terms{font-size:.8em;text-align:center;max-width:480px;margin:0 auto;line-height:1.5em}.seopress-error{background:#ffe6e5;border-color:#ffc5c2;padding:1em;margin-bottom:1em}.seopress-error p{margin-top:0;margin-bottom:.5em;color:#444}.seopress-error a{color:#ff645c}.seopress-error .reconnect-reminder{font-size:.85em}.seopress-error .seopress-setup-actions .button{font-size:14px}.seopress-wizard-service-setting-ppec_paypal_reroute_requests,.seopress-wizard-service-setting-stripe_create_account{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start}.seopress-wizard-service-setting-ppec_paypal_reroute_requests .payment-checkbox-input,.seopress-wizard-service-setting-stripe_create_account .payment-checkbox-input{-webkit-box-ordinal-group:2;-webkit-order:1;order:1;margin-top:5px;margin-left:0;margin-right:0;width:1.5em}.seopress-wizard-service-setting-ppec_paypal_reroute_requests .ppec_paypal_reroute_requests,.seopress-wizard-service-setting-ppec_paypal_reroute_requests .stripe_create_account,.seopress-wizard-service-setting-stripe_create_account .ppec_paypal_reroute_requests,.seopress-wizard-service-setting-stripe_create_account .stripe_create_account{-webkit-box-ordinal-group:3;-webkit-order:2;order:2;margin-left:.3em}.seopress-wizard-service-setting-ppec_paypal_email,.seopress-wizard-service-setting-stripe_email{margin-top:.75em;margin-left:1.5em}.seopress-wizard-service-setting-ppec_paypal_email label.ppec_paypal_email,.seopress-wizard-service-setting-ppec_paypal_email label.stripe_email,.seopress-wizard-service-setting-stripe_email label.ppec_paypal_email,.seopress-wizard-service-setting-stripe_email label.stripe_email{position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.seopress-wizard-service-setting-ppec_paypal_email input.payment-email-input,.seopress-wizard-service-setting-stripe_email input.payment-email-input{box-sizing:border-box;margin-bottom:.5em;width:100%;height:32px}.seopress-setup-content .recommended-step{padding:0 2.5em;text-align:left;display:inline-block;width:100%;box-sizing:border-box}.seopress-setup-content .recommended-step a{text-decoration:none}.seopress-setup-content .recommended-item{list-style:none;margin:1rem 0}.seopress-setup-content .recommended-item:last-child label{margin-bottom:0}.seopress-setup-content .recommended-item label{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;margin-bottom:1.5em}.seopress-setup-content .recommended-item label::after,.seopress-setup-content .recommended-item label::before{top:auto}.seopress-setup-content .recommended-item label::after{margin-top:-1.5px}.seopress-setup-content .recommended-item .recommended-item-icon{border:1px solid #fff;border-radius:7px;height:3.5em;margin-right:1em;margin-left:4px}.seopress-setup-content .recommended-item .recommended-item-icon.recommended-item-icon-storefront_theme{background-color:#f4a224;max-height:3em;max-width:3em;padding:.25em}.seopress-setup-content .recommended-item .recommended-item-icon.recommended-item-icon-automated_taxes{background-color:#d0011b;max-height:1.75em;padding:.875em}.seopress-setup-content .recommended-item .recommended-item-icon.recommended-item-icon-mailchimp{background-color:#ffe01b;height:2em;padding:.75em}.seopress-setup-content .recommended-item .recommended-item-icon.recommended-item-icon-seopress_services{background-color:#f0f0f0;max-height:1.5em;padding:1.3em .7em}.seopress-setup-content .recommended-item .recommended-item-icon.recommended-item-icon-shipstation{background-color:#f0f0f0;padding:.3em}.seopress-setup-content .recommended-item .recommended-item-description-container h3{font-size:15px;font-weight:700;letter-spacing:.5px;margin-bottom:0}.seopress-setup-content .recommended-item .recommended-item-description-container p{margin-top:0;line-height:1.5em}.seopress-wizard-service-info{padding:1em 2em;background-color:#fafafa}.help_tip{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.seopress-setup #tiptip_content{background:#5f6973}.seopress-setup #tiptip_holder.tip_top #tiptip_arrow_inner{border-top-color:#5f6973}.seopress-setup-shipping-recommended{border-bottom:1px solid #eee;margin-top:0;padding:30px 0}@media only screen and (max-width:768px){.seopress-setup .seopress-setup-content{margin:25px auto 24px}#seopress-logo img{max-width:80%}.store-address-container .city-and-postcode{display:block}.store-address-container .city-and-postcode div{margin-right:0}.seopress-wizard-service-item,.seopress-wizard-services-list-toggle{-webkit-flex-wrap:wrap;flex-wrap:wrap}.seopress-wizard-service-item .seopress-wizard-service-enable,.seopress-wizard-services-list-toggle .seopress-wizard-service-enable{-webkit-box-ordinal-group:3;-webkit-order:2;order:2;padding:20px 0 0}.seopress-wizard-service-item .seopress-wizard-service-description,.seopress-wizard-services-list-toggle .seopress-wizard-service-description{-webkit-box-ordinal-group:4;-webkit-order:3;order:3}.seopress-wizard-service-item .seopress-wizard-service-name,.seopress-wizard-services-list-toggle .seopress-wizard-service-name{padding:20px 20px 0;text-align:left;-webkit-box-pack:justify!important;-webkit-justify-content:space-between!important;justify-content:space-between!important}.seopress-wizard-service-item .seopress-wizard-service-name img,.seopress-wizard-services-list-toggle .seopress-wizard-service-name img{margin:0}.newsletter-form-container{display:block}.newsletter-form-container .newsletter-form-email{display:block;box-sizing:border-box;width:100%;margin-bottom:10px}.newsletter-form-container .button.newsletter-form-button{float:left}.seopress-wizard-next-steps .seopress-wizard-next-step-item{-webkit-flex-wrap:wrap;flex-wrap:wrap}.seopress-wizard-next-steps .seopress-wizard-next-step-item .seopress-wizard-next-step-description{margin-bottom:0}.seopress-wizard-next-steps .seopress-wizard-next-step-item .seopress-wizard-next-step-action p{margin:0}.seopress-setup-steps li a{text-indent:-9999px;position:absolute;left:calc(50% - 24px);top:-10px}.seopress-setup-steps li span{display:none}}
1
+ html{background-color:#f6f7f7;margin:0}body.seopress-setup{box-shadow:none;background:#f6f7f7;padding:0;margin:0;max-width:100%}.wp-core-ui .button,.wp-core-ui .button-secondary{color:#6159e6;border-color:#6159e6;background:#fff;vertical-align:middle}.wp-core-ui .button-secondary:hover{color:#555d66;background:#fafafa;border-color:#999}.wp-core-ui select:focus,input[type=checkbox]:focus,input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=radio]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,select:focus,textarea:focus{border-color:#6259e6;box-shadow:0 0 0 1px #6259e6;outline:2px solid transparent}.seopress-setup .sp-progress-bar{background-color:#6159e6}.spinner{display:inline-block}.log{margin:0;text-transform:uppercase;display:inline-block;vertical-align:middle;padding:5px;color:rgba(19,191,17,1);font-style:italic}.admin_page_seopress_csv_importer.seopress-styles .seopress-option{max-width:700px;margin:40px auto}.admin_page_seopress_csv_importer .description{color:#999;margin-top:4px;display:block}.admin_page_seopress_csv_importer .description code{background:0 0;padding:0;white-space:pre-line;word-wrap:break-word;word-break:break-all}.admin_page_seopress_csv_importer .seopress-setup-content table thead th{font-weight:700}.admin_page_seopress_csv_importer .seopress-setup-content table tr:nth-child(odd) td{background:#fbfbfb}.admin_page_seopress_csv_importer .seopress-setup-content table td select{width:100%}.admin_page_seopress_csv_importer .dashicons-yes-alt:before{color:#3642ff}.admin_page_seopress_csv_importer .seopress-wizard-services{padding:0}.seopress-setup{text-align:center}.seopress-setup .select2-container{text-align:left;width:auto}.seopress-setup .hidden{display:none}.seopress-setup .seopress-setup-content{box-shadow:0 1px 3px rgba(0,0,0,.13);padding:2em;margin:65px auto 24px;background:#fff;overflow:hidden;zoom:1;text-align:center;max-width:700px}.seopress-setup-content h1,.seopress-setup-content h2,.seopress-setup-content h3,.seopress-setup-content table{margin:0 0 20px;border:0;padding:0;color:#2c3338;clear:none;font-weight:500}.seopress-setup-content p{margin:20px 0;font-size:1em;line-height:1.75em;color:#50575e}.seopress-setup-content .m0{margin:0}.seopress-setup-content table{font-size:1em;line-height:1.75em;color:#50575e;text-align:left}.seopress-setup-content .description{font-size:13px;margin:1em 0;font-style:italic}.seopress-setup-content a{color:#6259e6}.seopress-setup-content a:focus,.seopress-setup-content a:hover{color:#111}.seopress-option #seopress-edd-license-btn,.seopress-option #seopress-refresh{width:auto}.seopress-setup-content .form-table th{width:35%;vertical-align:top;font-weight:400}.seopress-setup-content .form-table td{vertical-align:top}.seopress-setup-content .form-table td input,.seopress-setup-content .form-table td select{width:100%;box-sizing:border-box}.seopress-setup-content .form-table td input[size]{width:auto}.seopress-setup-content .form-table td .description{line-height:1.5em;display:block;margin-top:.25em;color:#999;font-style:italic}.seopress-setup-content .form-table td .input-checkbox,.seopress-setup-content .form-table td .input-radio{width:auto;box-sizing:inherit;padding:inherit;margin:0 .5em 0 0;box-shadow:none}.seopress-setup-content .form-table .section_title td{padding:0}.seopress-setup-content .form-table .section_title td h2,.seopress-setup-content .form-table .section_title td p{margin:12px 0 0}.seopress-setup-content .form-table td,.seopress-setup-content .form-table th{padding:12px 0;margin:0;border:0}.seopress-setup-content .form-table td:first-child,.seopress-setup-content .form-table th:first-child{padding-right:1em}.seopress-setup-content .seopress-setup-pages{width:100%;border-top:1px solid #eee}.seopress-setup-content .seopress-setup-pages thead th{display:none}.seopress-setup-content .seopress-setup-pages .page-name{width:30%;font-weight:700}.seopress-setup-content .seopress-setup-pages td,.seopress-setup-content .seopress-setup-pages th{padding:14px 0;border-bottom:1px solid #eee}.seopress-setup-content .seopress-setup-pages td:first-child,.seopress-setup-content .seopress-setup-pages th:first-child{padding-right:9px}.seopress-setup-content .seopress-setup-pages th{padding-top:0}.seopress-setup-content .seopress-setup-pages .page-options p{color:#777;margin:6px 0 0 24px;line-height:1.75em}.seopress-setup-content .seopress-setup-pages .page-options p input{vertical-align:middle;margin:1px 0 0;height:1.75em;width:1.75em;line-height:1.75em}.seopress-setup-content .seopress-setup-pages .page-options p label{line-height:1}@media screen and (max-width:782px){.seopress-setup-content .form-table tbody th{width:auto}}.seopress-setup-content .twitter-share-button{float:right}.seopress-setup-content .seopress-setup-next-steps{overflow:hidden;margin:0 0 24px;padding-bottom:2px}.seopress-setup-content .seopress-setup-next-steps h2{margin-bottom:12px}.seopress-setup-content .seopress-setup-next-steps .seopress-setup-next-steps-first{float:left;width:50%;box-sizing:border-box}.seopress-setup-content .seopress-setup-next-steps .seopress-setup-next-steps-last{float:right;width:50%;box-sizing:border-box}.seopress-setup-content .seopress-setup-next-steps ul{padding:0 2em 0 0;list-style:none outside;margin:0}.seopress-setup-content .seopress-setup-next-steps ul li a{display:block;padding:0 0 .75em}.seopress-setup-content .seopress-setup-next-steps ul .setup-product a.button{background-color:#f7f7f7;border-color:#ccc;color:#23282d;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #ccc;text-shadow:1px 0 1px #eee,0 1px 1px #eee;font-size:1em;height:auto;line-height:1.75em;margin:0 0 .75em;opacity:1;padding:1em;text-align:center}.seopress-setup-content .seopress-setup-next-steps ul .setup-product a.button:active,.seopress-setup-content .seopress-setup-next-steps ul .setup-product a.button:focus,.seopress-setup-content .seopress-setup-next-steps ul .setup-product a.button:hover{background:#f5f5f5;border-color:#aaa}.seopress-setup-content .seopress-setup-next-steps ul .setup-product a.button-primary{color:#fff;background-color:#bb77ae;border-color:#a36597;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597;text-shadow:0 -1px 1px #a36597,1px 0 1px #a36597,0 1px 1px #a36597,-1px 0 1px #a36597}.seopress-setup-content .seopress-setup-next-steps ul .setup-product a.button-primary:active,.seopress-setup-content .seopress-setup-next-steps ul .setup-product a.button-primary:focus,.seopress-setup-content .seopress-setup-next-steps ul .setup-product a.button-primary:hover{color:#fff;background:#a36597;border-color:#a36597;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597}.seopress-setup-content .seopress-setup-next-steps ul li a::before{color:#82878c;font:normal 20px/1 dashicons;speak:none;display:inline-block;padding:0 10px 0 0;top:1px;position:relative;text-decoration:none!important;vertical-align:top}.seopress-setup-content .seopress-setup-next-steps ul .learn-more a::before{content:"\f105"}.seopress-setup-content .seopress-setup-next-steps ul .video-walkthrough a::before{content:"\f126"}.seopress-setup-content .seopress-setup-next-steps ul .newsletter a::before{content:"\f465"}.seopress-setup-content .seopress-newsletter,.seopress-setup-content .updated{padding:24px;margin:0 0 24px;overflow:hidden;background:#f5f5f5}.seopress-setup-content .seopress-newsletter p,.seopress-setup-content .updated p{padding:0;margin:0 0 12px}.seopress-setup-content .seopress-newsletter form,.seopress-setup-content .seopress-tracker,.seopress-setup-content .updated form,.seopress-setup-content .updated p:last-child{margin:24px 0;border:1px solid #eee;padding:20px;border-radius:4px;overflow:hidden}.seopress-setup-content .seopress-tracker p{font-size:14px;line-height:1.5em}.seopress-setup-content .seopress-tracker .checkbox{line-height:24px;font-weight:500;font-size:1em;margin-top:0;margin-bottom:20px}.seopress-setup-content .checkbox input[type=checkbox]{opacity:0;position:absolute;left:-9999px}.seopress-setup-content .checkbox label{position:relative;display:inline-block;padding-left:28px}.seopress-setup-content .checkbox label::after,.seopress-setup-content .checkbox label::before{position:absolute;content:"";display:inline-block}.seopress-setup-content .checkbox label::before{height:16px;width:16px;left:0;top:3px;border:1px solid #aaa;background-color:#fff;border-radius:3px}.seopress-setup-content .checkbox label::after{height:5px;width:9px;border-left:2px solid;border-bottom:2px solid;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);left:4px;top:7px;color:#fff}.seopress-setup-content .checkbox input[type=checkbox]+label::after{content:none}.seopress-setup-content .checkbox input[type=checkbox]:checked+label::after{content:""}.seopress-setup-content .checkbox input[type=checkbox]:focus+label::before{outline:#3b99fc auto 5px}.seopress-setup-content .checkbox input[type=checkbox]:checked+label::before{background:#6259e6;border-color:#6259e6}.seopress-setup-steps{padding:10px 0 24px;margin:0;list-style:none outside;overflow:hidden;color:#ccc;width:100%;height:56px;border-bottom:1px solid #dcdcde;align-items:center;justify-content:center;background:#fff;display:inline-flex}.seopress-setup-steps li{width:100%;float:left;padding:0 0 1.5em;margin:0;text-align:center;position:relative;border-bottom:2px solid #ccc;line-height:24px;font-size:16px}.seopress-setup-steps li a{text-decoration:none;padding:1.5em;position:relative;z-index:1;color:#1d2327;line-height:24px;font-size:16px;transition:color .3s linear}.seopress-setup-steps li a:focus,.seopress-setup-steps li a:hover{color:#6159e6}.seopress-setup-steps li::before{content:"";border:3px solid #ccc;border-radius:100%;width:24px;height:24px;position:absolute;bottom:0;left:50%;margin-left:-15px;margin-bottom:-15px;background:#fff;font-family:Dashicons;font-size:24px;line-height:24px}.seopress-setup-steps li.active{color:#6259e6;font-weight:700;text-decoration:none;position:relative;z-index:1;color:#1d2327;line-height:24px}.seopress-setup-steps li.active::before{border-color:#6259e6}@keyframes fade{0%{border-color:#6259e600;left:-100%}100%{border-color:#6259e6;left:0}}.seopress-setup-steps li.active::after{content:"";position:absolute;bottom:-2px;left:0;animation-name:fade;animation-duration:2s;width:100%;animation-iteration-count:1;height:2px;background:#6259e6;z-index:-1}.seopress-setup-steps li.done{border-color:#6259e6;color:#6259e6;z-index:10}.seopress-setup-steps li.done::before{border-color:#6259e6;background:#6259e6;content:"\f147";color:#fff}.seopress-setup .seopress-setup-actions{overflow:hidden;margin:20px 0 0;position:relative}.seopress-setup .seopress-setup-actions .button{font-size:1.25em;padding:.5em 1em;line-height:1em;margin-right:.5em;margin-bottom:2px;height:auto;border-radius:4px}.seopress-setup .seopress-setup-actions .button-primary{background-color:#6259e6;border-color:#6259e6;margin:0;opacity:1;transition:all .3s linear;color:#fff}.seopress-setup .seopress-setup-actions .button-primary:active,.seopress-setup .seopress-setup-actions .button-primary:focus,.seopress-setup .seopress-setup-actions .button-primary:hover{background:0 0;border-color:#6259e6;color:#6259e6}.seopress-setup-content p:last-child{margin-bottom:0}.seopress-setup-content p.store-setup{margin-top:0}.seopress-setup-footer-links{font-size:.85em;color:#7b7b7b;margin:1.18em auto;display:inline-block;text-align:center}.seopress-wizard-services{border:1px solid #eee;padding:1em;margin:0 0 1em;list-style:none outside;border-radius:4px;overflow:hidden;text-align:left}.seopress-wizard-services p{margin:0 0 1em 0;padding:0;font-size:1em;line-height:1.5em}.seopress-wizard-service-item,.seopress-wizard-services-list-toggle{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;padding:0;color:#50575e;-webkit-box-align:center;-webkit-align-items:center;align-items:center;margin:1rem 0}.seopress-wizard-service-item,.seopress-wizard-services-list-toggle:first-child{margin-top:0}.seopress-wizard-service-item:last-child,.seopress-wizard-services-list-toggle:last-child{border-bottom:0}.seopress-wizard-service-item .payment-gateway-fee,.seopress-wizard-services-list-toggle .payment-gateway-fee{color:#a6a6a6}.seopress-wizard-service-item .seopress-wizard-service-name,.seopress-wizard-services-list-toggle .seopress-wizard-service-name{-webkit-flex-basis:0;flex-basis:0;min-width:160px;text-align:center;font-weight:700;padding:2em 0;-webkit-align-self:stretch;align-self:stretch;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:baseline;-webkit-align-items:baseline;align-items:baseline}.seopress-wizard-payment-gateway-form .seopress-wizard-service-item .seopress-wizard-service-name,.seopress-wizard-payment-gateway-form .seopress-wizard-services-list-toggle .seopress-wizard-service-name{-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.seopress-wizard-service-item .seopress-wizard-service-name img,.seopress-wizard-services-list-toggle .seopress-wizard-service-name img{max-width:75px}.seopress-wizard-service-item.stripe-logo .seopress-wizard-service-name img,.seopress-wizard-services-list-toggle.stripe-logo .seopress-wizard-service-name img{padding:8px 0}.seopress-wizard-service-item.paypal-logo .seopress-wizard-service-name img,.seopress-wizard-services-list-toggle.paypal-logo .seopress-wizard-service-name img{max-width:87px;padding:2px 0}.seopress-wizard-service-item.klarna-logo .seopress-wizard-service-name img,.seopress-wizard-services-list-toggle.klarna-logo .seopress-wizard-service-name img{max-width:87px;padding:12px 0}.seopress-wizard-service-item.square-logo .seopress-wizard-service-name img,.seopress-wizard-services-list-toggle.square-logo .seopress-wizard-service-name img{max-width:95px;padding:12px 0}.seopress-wizard-service-item.eway-logo .seopress-wizard-service-name img,.seopress-wizard-services-list-toggle.eway-logo .seopress-wizard-service-name img{max-width:87px}.seopress-wizard-service-item.payfast-logo .seopress-wizard-service-name img,.seopress-wizard-services-list-toggle.payfast-logo .seopress-wizard-service-name img{max-width:140px}.seopress-wizard-service-item .seopress-wizard-service-description,.seopress-wizard-services-list-toggle .seopress-wizard-service-description{-webkit-box-flex:1;-webkit-flex-grow:1;flex-grow:1;padding:20px}.seopress-wizard-service-item .seopress-wizard-service-description p,.seopress-wizard-services-list-toggle .seopress-wizard-service-description p{margin-bottom:1em}.seopress-wizard-service-item .seopress-wizard-service-description p:last-child,.seopress-wizard-services-list-toggle .seopress-wizard-service-description p:last-child{margin-bottom:0}.seopress-wizard-service-item .seopress-wizard-service-description .seopress-wizard-service-settings-description,.seopress-wizard-services-list-toggle .seopress-wizard-service-description .seopress-wizard-service-settings-description{display:block;font-style:italic;color:#999}.seopress-wizard-service-item .seopress-wizard-service-enable,.seopress-wizard-services-list-toggle .seopress-wizard-service-enable{-webkit-flex-basis:0;flex-basis:0;min-width:75px;text-align:center;cursor:pointer;padding:2em 0;position:relative;max-height:1.5em;-webkit-align-self:flex-start;align-self:flex-start;-webkit-box-ordinal-group:4;-webkit-order:3;order:3}.seopress-wizard-service-item .seopress-wizard-service-toggle,.seopress-wizard-services-list-toggle .seopress-wizard-service-toggle{height:16px;width:32px;border:2px solid #935687;background-color:#935687;display:inline-block;text-indent:-9999px;border-radius:10em;position:relative}.seopress-wizard-service-item .seopress-wizard-service-toggle input[type=checkbox],.seopress-wizard-services-list-toggle .seopress-wizard-service-toggle input[type=checkbox]{display:none}.seopress-wizard-service-item .seopress-wizard-service-toggle::before,.seopress-wizard-services-list-toggle .seopress-wizard-service-toggle::before{content:"";display:block;width:16px;height:16px;background:#fff;position:absolute;top:0;right:0;border-radius:100%}.seopress-wizard-service-item .seopress-wizard-service-toggle.disabled,.seopress-wizard-services-list-toggle .seopress-wizard-service-toggle.disabled{border-color:#999;background-color:#999}.seopress-wizard-service-item .seopress-wizard-service-toggle.disabled::before,.seopress-wizard-services-list-toggle .seopress-wizard-service-toggle.disabled::before{right:auto;left:0}.seopress-wizard-service-item .seopress-wizard-service-settings,.seopress-wizard-services-list-toggle .seopress-wizard-service-settings{display:none;margin-top:.75em;margin-bottom:0;cursor:default}.seopress-wizard-service-item .seopress-wizard-service-settings.hide,.seopress-wizard-services-list-toggle .seopress-wizard-service-settings.hide{display:none}.seopress-wizard-service-item.checked .seopress-wizard-service-settings,.seopress-wizard-services-list-toggle.checked .seopress-wizard-service-settings{display:inline-block}.seopress-wizard-service-item.checked .seopress-wizard-service-settings.hide,.seopress-wizard-services-list-toggle.checked .seopress-wizard-service-settings.hide{display:none}.seopress-wizard-service-item.closed,.seopress-wizard-services-list-toggle.closed{border-bottom:0}.seopress-wizard-services-list-toggle{cursor:pointer}.seopress-wizard-services-list-toggle .seopress-wizard-service-enable::before{content:"\f343";font-family:dashicons;visibility:initial;color:#50575e;font-size:25px;margin-top:-7px;margin-left:-5px;position:absolute;visibility:visible}.seopress-wizard-services-list-toggle.closed .seopress-wizard-service-enable::before{content:"\f347"}.seopress-wizard-services-list-toggle .seopress-wizard-service-enable input{visibility:hidden;position:relative}.seopress-wizard-services.manual .seopress-wizard-service-item{display:none}.seopress-wizard-services.shipping{margin:0}.seopress-wizard-services.shipping .seopress-wizard-service-name{font-weight:400;text-align:left;-webkit-box-align:center;-webkit-align-items:center;align-items:center;max-height:5em;padding:0}.seopress-wizard-services.shipping .seopress-wizard-service-item{padding-left:2em;padding-top:.67em}.seopress-wizard-services.shipping .seopress-wizard-service-item:first-child{border-bottom:0;padding-bottom:0;font-weight:700}.seopress-wizard-services.shipping .seopress-wizard-service-item:first-child .seopress-wizard-service-name{font-weight:700}.seopress-wizard-services.shipping .seopress-wizard-shipping-method-select,.seopress-wizard-services.shipping .shipping-method-setting{display:-webkit-box;display:-webkit-flex;display:flex}.seopress-wizard-services.shipping .seopress-wizard-shipping-method-select.hide,.seopress-wizard-services.shipping .shipping-method-setting.hide{display:none}.seopress-wizard-services.shipping .seopress-wizard-shipping-method-dropdown,.seopress-wizard-services.shipping .shipping-method-setting input{margin-right:2em;margin-bottom:1em}.seopress-wizard-services.shipping .seopress-wizard-shipping-method-dropdown .select2,.seopress-wizard-services.shipping .shipping-method-setting input .select2{min-width:130px}.seopress-wizard-services.shipping .seopress-wizard-service-description{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;color:#a6a6a6}.seopress-wizard-services.shipping .seopress-wizard-service-item:not(:first-child) .seopress-wizard-service-description{font-size:.92em;padding-bottom:10px}.seopress-wizard-services.shipping .shipping-method-setting input{width:95px;border:1px solid #aaa;border-color:#ddd;border-radius:4px;height:28px;padding-left:8px;padding-right:24px;font-size:14px;color:#444;background-color:#fff;display:inline-block}.seopress-wizard-services.shipping .shipping-method-description,.seopress-wizard-services.shipping .shipping-method-setting .description{color:#7e7e7e;font-size:.9em}.seopress-wizard-services.shipping .shipping-method-setting input::-webkit-input-placeholder{color:#e1e1e1}.seopress-wizard-services.shipping .shipping-method-setting input:-ms-input-placeholder{color:#e1e1e1}.seopress-wizard-services.shipping .shipping-method-setting input::-ms-input-placeholder{color:#e1e1e1}.seopress-wizard-services.shipping .shipping-method-setting input::placeholder{color:#e1e1e1}.seopress-setup-shipping-units p{line-height:1.5em;font-size:13px;margin-bottom:.25em;text-align:center}.seopress-setup-shipping-units .seopress-setup-shipping-unit{margin-bottom:1.75em}.seopress-setup-shipping-units .seopress-setup-shipping-unit .select2{min-width:125px;top:-5px}.hide{display:none}.seopress-wizard-features{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;list-style:none;padding:0}.seopress-wizard-features .seopress-wizard-feature-item{-webkit-flex-basis:calc(50% - 4em - 3px);flex-basis:calc(50% - 4em - 3px);border:1px solid #eee;padding:2em}.seopress-wizard-features .seopress-wizard-feature-item:nth-child(1){border-radius:4px 0 0 0}.seopress-wizard-features .seopress-wizard-feature-item:nth-child(2){border-left:0;border-radius:0 4px 0 0}.seopress-wizard-features .seopress-wizard-feature-item:nth-child(3){border-top:0;border-radius:0 0 0 4px}.seopress-wizard-features .seopress-wizard-feature-item:nth-child(4){border-top:0;border-left:0;border-radius:0 0 4px 0}.seopress-wizard-features p.seopress-wizard-feature-description,.seopress-wizard-features p.seopress-wizard-feature-name{margin:0;line-height:1.5em}h3.jetpack-reasons{text-align:center;margin:3em 0 1em 0;font-size:14px}.jetpack-logo,.wcs-notice{display:block;margin:1.75em auto 2em auto;max-height:175px}.activate-splash .jetpack-logo{width:170px;margin-bottom:0}.activate-splash .wcs-notice{margin-top:1em;padding-left:57px}.step{text-align:center}.seopress-setup .seopress-setup-actions .button{text-shadow:none;font-weight:300;font-size:16px;padding:1em 2em;box-shadow:none;min-width:12em;min-width:auto;margin-top:10px}.seopress-setup .seopress-setup-actions .button:active,.seopress-setup .seopress-setup-actions .button:focus,.seopress-setup .seopress-setup-actions .button:hover{box-shadow:none}.seopress-setup .seopress-setup-actions .plugin-install-info{display:block;font-style:italic;color:#999;font-size:14px;line-height:1.5em;margin:5px 0}.seopress-setup .seopress-setup-actions .plugin-install-info>*{display:block}.seopress-setup .seopress-setup-actions .plugin-install-info .plugin-install-info-list-item::after{content:", "}.seopress-setup .seopress-setup-actions .plugin-install-info .plugin-install-info-list-item:last-of-type::after{content:". "}.seopress-setup .seopress-setup-actions .plugin-install-info a{white-space:nowrap}.seopress-setup .seopress-setup-actions .plugin-install-info a:not(:hover):not(:focus){color:inherit}.plugin-install-source{background:rgba(187,119,174,.15)}.plugin-install-source:not(.seopress-wizard-service-item){box-shadow:0 0 0 10px rgba(187,119,174,.15)}.location-prompt{color:#50575e;font-size:13px;font-weight:500;margin-bottom:.5em;margin-top:.85em;display:inline-block;width:100%;text-align:left}.location-input{border:1px solid #aaa;border-color:#ddd;border-radius:4px;height:30px;width:calc(100% - 8px - 24px - 2px);padding-left:8px;padding-right:24px;font-size:16px;color:#444;background-color:#fff;display:inline-block;width:100%}.location-input.dropdown{width:100%;max-width:inherit}.address-step .select2{min-width:100%}.store-address-container .city-and-postcode{display:-webkit-box;display:-webkit-flex;display:flex}.store-address-container .city-and-postcode div{-webkit-flex-basis:50%;flex-basis:50%;margin-right:1em}.store-address-container .city-and-postcode div:last-of-type{margin-right:0}.store-address-container .select2-container,.store-address-container input[type=text],.store-address-container select{margin-bottom:10px}.product-type-container{margin-top:14px;margin-bottom:1px}#seopress_sell_in_person{margin-left:0}.seopress-wizard-service-settings .payment-email-input{border:1px solid #aaa;border-color:#ddd;border-radius:4px;height:30px;padding:0 8px;font-size:14px;color:#444;background-color:#fff;display:inline-block}.seopress-wizard-service-settings .payment-email-input[disabled]{color:#aaa}.newsletter-form-container{display:-webkit-box;display:-webkit-flex;display:flex}.newsletter-form-container .newsletter-form-email{border:1px solid #aaa;border-color:#ddd;border-radius:4px;height:42px;padding:0 8px;font-size:16px;color:#50575e;background-color:#fff;display:inline-block;margin-right:6px;-webkit-box-flex:1;-webkit-flex-grow:1;flex-grow:1}.newsletter-form-container .newsletter-form-button-container{-webkit-box-flex:0;-webkit-flex-grow:0;flex-grow:0}.seopress-setup .seopress-setup-actions .button.newsletter-form-button{height:42px;padding:0 1em;margin:0}.seopress-wizard-next-steps{border:1px solid #eee;border-radius:4px;list-style:none;padding:0}.seopress-wizard-next-steps li{padding:0}.seopress-wizard-next-steps .seopress-wizard-next-step-item{display:-webkit-box;display:-webkit-flex;display:flex;border-top:1px solid #eee;text-align:left}.seopress-wizard-next-steps .seopress-wizard-next-step-item:first-child{border-top:0}.seopress-wizard-next-steps .seopress-wizard-next-step-description{-webkit-box-flex:1;-webkit-flex-grow:1;flex-grow:1;margin:1.5em}.seopress-wizard-next-steps .seopress-wizard-next-step-action{-webkit-box-flex:0;-webkit-flex-grow:0;flex-grow:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;justify-content:center}.seopress-wizard-next-steps .seopress-wizard-next-step-action .button{margin:1em 1.5em}.seopress-wizard-next-steps p.next-step-heading{margin:0;font-size:.95em;font-weight:400;font-variant:all-petite-caps}.seopress-wizard-next-steps p.next-step-extra-info{margin:0}.seopress-wizard-next-steps h3.next-step-description{margin:0;font-size:16px;font-weight:600}.seopress-wizard-next-steps .seopress-wizard-additional-steps{border-top:1px solid #eee}.seopress-wizard-next-steps .seopress-wizard-additional-steps .seopress-wizard-next-step-description{margin-bottom:0}.seopress-wizard-next-steps .seopress-wizard-additional-steps .seopress-setup-actions{margin:0 0 1.5em 0}.seopress-wizard-next-steps .seopress-wizard-additional-steps .seopress-setup-actions .button{font-size:15px;margin:1em 0 1em 1.5em}.seopress-wizard-next-steps .seopress-wizard-additional-steps .seopress-setup-actions .button::last-child{margin-right:1.5em}p.next-steps-help-text{color:#9f9f9f;padding:0 2em;text-align:center;font-size:.9em}p.jetpack-terms{font-size:.8em;text-align:center;max-width:480px;margin:0 auto;line-height:1.5em}.seopress-error{background:#ffe6e5;border-color:#ffc5c2;padding:1em;margin-bottom:1em}.seopress-error p{margin-top:0;margin-bottom:.5em;color:#444}.seopress-error a{color:#ff645c}.seopress-error .reconnect-reminder{font-size:.85em}.seopress-error .seopress-setup-actions .button{font-size:14px}.seopress-wizard-service-setting-ppec_paypal_reroute_requests,.seopress-wizard-service-setting-stripe_create_account{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start}.seopress-wizard-service-setting-ppec_paypal_reroute_requests .payment-checkbox-input,.seopress-wizard-service-setting-stripe_create_account .payment-checkbox-input{-webkit-box-ordinal-group:2;-webkit-order:1;order:1;margin-top:5px;margin-left:0;margin-right:0;width:1.5em}.seopress-wizard-service-setting-ppec_paypal_reroute_requests .ppec_paypal_reroute_requests,.seopress-wizard-service-setting-ppec_paypal_reroute_requests .stripe_create_account,.seopress-wizard-service-setting-stripe_create_account .ppec_paypal_reroute_requests,.seopress-wizard-service-setting-stripe_create_account .stripe_create_account{-webkit-box-ordinal-group:3;-webkit-order:2;order:2;margin-left:.3em}.seopress-wizard-service-setting-ppec_paypal_email,.seopress-wizard-service-setting-stripe_email{margin-top:.75em;margin-left:1.5em}.seopress-wizard-service-setting-ppec_paypal_email label.ppec_paypal_email,.seopress-wizard-service-setting-ppec_paypal_email label.stripe_email,.seopress-wizard-service-setting-stripe_email label.ppec_paypal_email,.seopress-wizard-service-setting-stripe_email label.stripe_email{position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.seopress-wizard-service-setting-ppec_paypal_email input.payment-email-input,.seopress-wizard-service-setting-stripe_email input.payment-email-input{box-sizing:border-box;margin-bottom:.5em;width:100%;height:32px}.seopress-setup-content .recommended-step{padding:0 2.5em;text-align:left;display:inline-block;width:100%;box-sizing:border-box}.seopress-setup-content .recommended-step a{text-decoration:none}.seopress-setup-content .recommended-item{list-style:none;margin:1rem 0}.seopress-setup-content .recommended-item:last-child label{margin-bottom:0}.seopress-setup-content .recommended-item label{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;margin-bottom:1.5em}.seopress-setup-content .recommended-item label::after,.seopress-setup-content .recommended-item label::before{top:auto}.seopress-setup-content .recommended-item label::after{margin-top:-1.5px}.seopress-setup-content .recommended-item .recommended-item-icon{border:1px solid #fff;border-radius:7px;height:3.5em;margin-right:1em;margin-left:4px}.seopress-setup-content .recommended-item .recommended-item-icon.recommended-item-icon-storefront_theme{background-color:#f4a224;max-height:3em;max-width:3em;padding:.25em}.seopress-setup-content .recommended-item .recommended-item-icon.recommended-item-icon-automated_taxes{background-color:#d0011b;max-height:1.75em;padding:.875em}.seopress-setup-content .recommended-item .recommended-item-icon.recommended-item-icon-mailchimp{background-color:#ffe01b;height:2em;padding:.75em}.seopress-setup-content .recommended-item .recommended-item-icon.recommended-item-icon-seopress_services{background-color:#f0f0f0;max-height:1.5em;padding:1.3em .7em}.seopress-setup-content .recommended-item .recommended-item-icon.recommended-item-icon-shipstation{background-color:#f0f0f0;padding:.3em}.seopress-setup-content .recommended-item .recommended-item-description-container h3{font-size:15px;font-weight:700;letter-spacing:.5px;margin-bottom:0}.seopress-setup-content .recommended-item .recommended-item-description-container p{margin-top:0;line-height:1.5em}.seopress-wizard-service-info{padding:1em 2em;background-color:#fafafa}.help_tip{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.seopress-setup #tiptip_content{background:#5f6973}.seopress-setup #tiptip_holder.tip_top #tiptip_arrow_inner{border-top-color:#5f6973}.seopress-setup-shipping-recommended{border-bottom:1px solid #eee;margin-top:0;padding:30px 0}@media only screen and (max-width:768px){.seopress-setup .seopress-setup-content{margin:25px auto 24px}#seopress-logo img{max-width:80%}.store-address-container .city-and-postcode{display:block}.store-address-container .city-and-postcode div{margin-right:0}.seopress-wizard-service-item,.seopress-wizard-services-list-toggle{-webkit-flex-wrap:wrap;flex-wrap:wrap}.seopress-wizard-service-item .seopress-wizard-service-enable,.seopress-wizard-services-list-toggle .seopress-wizard-service-enable{-webkit-box-ordinal-group:3;-webkit-order:2;order:2;padding:20px 0 0}.seopress-wizard-service-item .seopress-wizard-service-description,.seopress-wizard-services-list-toggle .seopress-wizard-service-description{-webkit-box-ordinal-group:4;-webkit-order:3;order:3}.seopress-wizard-service-item .seopress-wizard-service-name,.seopress-wizard-services-list-toggle .seopress-wizard-service-name{padding:20px 20px 0;text-align:left;-webkit-box-pack:justify!important;-webkit-justify-content:space-between!important;justify-content:space-between!important}.seopress-wizard-service-item .seopress-wizard-service-name img,.seopress-wizard-services-list-toggle .seopress-wizard-service-name img{margin:0}.newsletter-form-container{display:block}.newsletter-form-container .newsletter-form-email{display:block;box-sizing:border-box;width:100%;margin-bottom:10px}.newsletter-form-container .button.newsletter-form-button{float:left}.seopress-wizard-next-steps .seopress-wizard-next-step-item{-webkit-flex-wrap:wrap;flex-wrap:wrap}.seopress-wizard-next-steps .seopress-wizard-next-step-item .seopress-wizard-next-step-description{margin-bottom:0}.seopress-wizard-next-steps .seopress-wizard-next-step-item .seopress-wizard-next-step-action p{margin:0}.seopress-setup-steps li a{text-indent:-9999px;position:absolute;left:calc(50% - 24px);top:-10px}.seopress-setup-steps li span{display:none}}
assets/img/help/google-knowledge-graph-social.png DELETED
Binary file
assets/js/seopress-analytics.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready((function($){jQuery(document.body).on("updated_cart_totals wc_cart_emptied removed_from_cart added_to_cart",(function(){$.ajax({method:"GET",url:seopressAjaxAnalytics.seopress_analytics,data:{action:"seopress_after_update_cart",_ajax_nonce:seopressAjaxAnalytics.seopress_nonce},success:function(data){jQuery("body").append(data.data)}})}))}));
1
+ jQuery(document).ready(function(e){jQuery(document.body).on("updated_cart_totals wc_cart_emptied removed_from_cart added_to_cart",function(){e.ajax({method:"GET",url:seopressAjaxAnalytics.seopress_analytics,data:{action:"seopress_after_update_cart",_ajax_nonce:seopressAjaxAnalytics.seopress_nonce},success:function(e){jQuery("body").append(e.data)}})})});
assets/js/seopress-block-editor.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready((function($){const{subscribe:subscribe,select:select}=wp.data;let hasSaved=!1;subscribe(()=>{var isAutosavingPost=wp.data.select("core/editor").isAutosavingPost(),isSavingMetaBoxes=wp.data.select("core/edit-post").isSavingMetaBoxes();!isSavingMetaBoxes||isAutosavingPost||hasSaved||$.ajax({method:"GET",url:seopressAjaxRealPreview.seopress_real_preview,data:{action:"seopress_do_real_preview",post_id:$("#seopress-tabs").attr("data_id"),tax_name:$("#seopress-tabs").attr("data_tax"),origin:$("#seopress-tabs").attr("data_origin"),post_type:$("#seopress_launch_analysis").attr("data_post_type"),seopress_analysis_target_kw:$("#seopress_analysis_target_kw_meta").val(),_ajax_nonce:seopressAjaxRealPreview.seopress_nonce},beforeSend:function(){$(".analysis-score p span").fadeIn().text(seopressAjaxRealPreview.i18n.progress),$(".analysis-score p").addClass("loading")},success:function(s){void 0===s.data.og_title?og_title="":og_title=s.data.og_title.values,void 0===s.data.og_desc?og_desc="":og_desc=s.data.og_desc.values,void 0===s.data.og_img?og_img="":og_img=s.data.og_img.values,void 0===s.data.og_url?og_url="":og_url=s.data.og_url.host,void 0===s.data.og_site_name?og_site_name="":og_site_name=s.data.og_site_name.values,void 0===s.data.tw_title?tw_title="":tw_title=s.data.tw_title.values,void 0===s.data.tw_desc?tw_desc="":tw_desc=s.data.tw_desc.values,void 0===s.data.tw_img?tw_img="":tw_img=s.data.tw_img.values,void 0===s.data.meta_robots?meta_robots="":meta_robots=s.data.meta_robots[0];var data_arr={og_title:og_title,og_desc:og_desc,og_img:og_img,og_url:og_url,og_site_name:og_site_name,tw_title:tw_title,tw_desc:tw_desc,tw_img:tw_img},if_noindex;for(var key in data_arr)data_arr.length&&(key=data_arr[key].length>1?data_arr[key].slice(-1)[0]:data_arr[key][0]);meta_robots=meta_robots.toString(),$("#sp-advanced-alert").empty(),new RegExp("noindex").test(meta_robots)&&$("#sp-advanced-alert").append('<span class="impact high" aria-hidden="true"></span>'),$("#seopress_cpt .google-snippet-preview .snippet-title").html(s.data.title),$("#seopress_cpt .google-snippet-preview .snippet-title-default").html(s.data.title),$("#seopress_titles_title_meta").attr("placeholder",s.data.title),$("#seopress_cpt .google-snippet-preview .snippet-description").html(s.data.meta_desc),$("#seopress_cpt .google-snippet-preview .snippet-description-default").html(s.data.meta_desc),$("#seopress_titles_desc_meta").attr("placeholder",s.data.meta_desc),data_arr.og_title&&($("#seopress_cpt #seopress_social_fb_title_meta").attr("placeholder",data_arr.og_title[0]),$("#seopress_cpt .facebook-snippet-preview .snippet-fb-title").html(data_arr.og_title[0]),$("#seopress_cpt .facebook-snippet-preview .snippet-fb-title-default").html(data_arr.og_title[0])),data_arr.og_desc&&($("#seopress_cpt #seopress_social_fb_desc_meta").attr("placeholder",data_arr.og_desc[0]),$("#seopress_cpt .facebook-snippet-preview .snippet-fb-description").html(data_arr.og_desc[0]),$("#seopress_cpt .facebook-snippet-preview .snippet-fb-description-default").html(data_arr.og_desc[0])),data_arr.og_img&&($("#seopress_cpt #seopress_social_fb_img_meta").attr("placeholder",data_arr.og_img[0]),$("#seopress_cpt .facebook-snippet-preview .snippet-fb-img img").attr("src",data_arr.og_img[0]),$("#seopress_cpt .facebook-snippet-preview .snippet-fb-img-default img").attr("src",data_arr.og_img[0])),$("#seopress_cpt .facebook-snippet-preview .snippet-fb-url").html(data_arr.og_url),$("#seopress_cpt .facebook-snippet-preview .snippet-fb-site-name").html(data_arr.og_site_name),data_arr.tw_title&&($("#seopress_cpt #seopress_social_twitter_title_meta").attr("placeholder",data_arr.tw_title[0]),$("#seopress_cpt .twitter-snippet-preview .snippet-twitter-title").html(data_arr.tw_title[0]),$("#seopress_cpt .twitter-snippet-preview .snippet-twitter-title-default").html(data_arr.tw_title[0])),data_arr.tw_desc&&($("#seopress_cpt #seopress_social_twitter_desc_meta").attr("placeholder",data_arr.tw_desc[0]),$("#seopress_cpt .twitter-snippet-preview .snippet-twitter-description").html(data_arr.tw_desc[0]),$("#seopress_cpt .twitter-snippet-preview .snippet-twitter-description-default").html(data_arr.tw_desc[0])),data_arr.tw_img&&($("#seopress_cpt #seopress_social_twitter_img_meta").attr("placeholder",data_arr.tw_img[0]),$("#seopress_cpt .twitter-snippet-preview .snippet-twitter-img img").attr("src",data_arr.tw_img[0]),$("#seopress_cpt .twitter-snippet-preview .snippet-twitter-img-default img").attr("src",data_arr.tw_img[0])),$("#seopress_cpt .twitter-snippet-preview .snippet-twitter-url").html(data_arr.og_url),$("#seopress_cpt #seopress_robots_canonical_meta").attr("placeholder",s.data.canonical),$("#seopress-analysis-tabs").load(" #seopress-analysis-tabs-1","",sp_ca_toggle),$(".analysis-score p").removeClass("loading")}}),hasSaved=!!isSavingMetaBoxes})}));
1
+ jQuery(document).ready(function(e){const{subscribe:t,select:s}=wp.data;let a=!1;t(()=>{var t=wp.data.select("core/editor").isAutosavingPost(),s=wp.data.select("core/edit-post").isSavingMetaBoxes();!s||t||a||e.ajax({method:"GET",url:seopressAjaxRealPreview.seopress_real_preview,data:{action:"seopress_do_real_preview",post_id:e("#seopress-tabs").attr("data_id"),tax_name:e("#seopress-tabs").attr("data_tax"),origin:e("#seopress-tabs").attr("data_origin"),post_type:e("#seopress_launch_analysis").attr("data_post_type"),seopress_analysis_target_kw:e("#seopress_analysis_target_kw_meta").val(),_ajax_nonce:seopressAjaxRealPreview.seopress_nonce},beforeSend:function(){e(".analysis-score p span").fadeIn().text(seopressAjaxRealPreview.i18n.progress),e(".analysis-score p").addClass("loading")},success:function(t){void 0===t.data.og_title?og_title="":og_title=t.data.og_title.values,void 0===t.data.og_desc?og_desc="":og_desc=t.data.og_desc.values,void 0===t.data.og_img?og_img="":og_img=t.data.og_img.values,void 0===t.data.og_url?og_url="":og_url=t.data.og_url.host,void 0===t.data.og_site_name?og_site_name="":og_site_name=t.data.og_site_name.values,void 0===t.data.tw_title?tw_title="":tw_title=t.data.tw_title.values,void 0===t.data.tw_desc?tw_desc="":tw_desc=t.data.tw_desc.values,void 0===t.data.tw_img?tw_img="":tw_img=t.data.tw_img.values,void 0===t.data.meta_robots?meta_robots="":meta_robots=t.data.meta_robots[0];var s={og_title:og_title,og_desc:og_desc,og_img:og_img,og_url:og_url,og_site_name:og_site_name,tw_title:tw_title,tw_desc:tw_desc,tw_img:tw_img};for(var a in s)s.length&&(a=s[a].length>1?s[a].slice(-1)[0]:s[a][0]);meta_robots=meta_robots.toString(),e("#sp-advanced-alert").empty();var i=new RegExp("noindex");i.test(meta_robots)&&e("#sp-advanced-alert").append('<span class="impact high" aria-hidden="true"></span>'),e("#seopress_cpt .google-snippet-preview .snippet-title").html(t.data.title),e("#seopress_cpt .google-snippet-preview .snippet-title-default").html(t.data.title),e("#seopress_titles_title_meta").attr("placeholder",t.data.title),e("#seopress_cpt .google-snippet-preview .snippet-description").html(t.data.meta_desc),e("#seopress_cpt .google-snippet-preview .snippet-description-default").html(t.data.meta_desc),e("#seopress_titles_desc_meta").attr("placeholder",t.data.meta_desc),s.og_title&&(e("#seopress_cpt #seopress_social_fb_title_meta").attr("placeholder",s.og_title[0]),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-title").html(s.og_title[0]),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-title-default").html(s.og_title[0])),s.og_desc&&(e("#seopress_cpt #seopress_social_fb_desc_meta").attr("placeholder",s.og_desc[0]),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-description").html(s.og_desc[0]),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-description-default").html(s.og_desc[0])),s.og_img&&(e("#seopress_cpt #seopress_social_fb_img_meta").attr("placeholder",s.og_img[0]),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-img img").attr("src",s.og_img[0]),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-img-default img").attr("src",s.og_img[0])),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-url").html(s.og_url),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-site-name").html(s.og_site_name),s.tw_title&&(e("#seopress_cpt #seopress_social_twitter_title_meta").attr("placeholder",s.tw_title[0]),e("#seopress_cpt .twitter-snippet-preview .snippet-twitter-title").html(s.tw_title[0]),e("#seopress_cpt .twitter-snippet-preview .snippet-twitter-title-default").html(s.tw_title[0])),s.tw_desc&&(e("#seopress_cpt #seopress_social_twitter_desc_meta").attr("placeholder",s.tw_desc[0]),e("#seopress_cpt .twitter-snippet-preview .snippet-twitter-description").html(s.tw_desc[0]),e("#seopress_cpt .twitter-snippet-preview .snippet-twitter-description-default").html(s.tw_desc[0])),s.tw_img&&(e("#seopress_cpt #seopress_social_twitter_img_meta").attr("placeholder",s.tw_img[0]),e("#seopress_cpt .twitter-snippet-preview .snippet-twitter-img img").attr("src",s.tw_img[0]),e("#seopress_cpt .twitter-snippet-preview .snippet-twitter-img-default img").attr("src",s.tw_img[0])),e("#seopress_cpt .twitter-snippet-preview .snippet-twitter-url").html(s.og_url),e("#seopress_cpt #seopress_robots_canonical_meta").attr("placeholder",t.data.canonical),e("#seopress-analysis-tabs").load(" #seopress-analysis-tabs-1","",sp_ca_toggle),e(".analysis-score p").removeClass("loading")}}),a=!!s})});
assets/js/seopress-cookies.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){var n=!1;if("function"==typeof define&&define.amd&&(define(e),n=!0),"object"==typeof exports&&(module.exports=e(),n=!0),!n){var o=window.Cookies,t=window.Cookies=e();t.noConflict=function(){return window.Cookies=o,t}}}((function(){function e(){for(var e=0,n={};e<arguments.length;e++){var o=arguments[e];for(var t in o)n[t]=o[t]}return n}return function n(o){function t(n,r,i){var c;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(i=e({path:"/"},t.defaults,i)).expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*i.expires),i.expires=a}i.expires=i.expires?i.expires.toUTCString():"";try{c=JSON.stringify(r),/^[\{\[]/.test(c)&&(r=c)}catch(e){}r=o.write?o.write(r,n):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=(n=(n=encodeURIComponent(String(n))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var s="";for(var f in i)i[f]&&(s+="; "+f,!0!==i[f]&&(s+="="+i[f]));return document.cookie=n+"="+r+s}n||(c={});for(var p=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,u=0;u<p.length;u++){var l=p[u].split("="),C=l.slice(1).join("=");this.json||'"'!==C.charAt(0)||(C=C.slice(1,-1));try{var g=l[0].replace(d,decodeURIComponent);if(C=o.read?o.read(C,g):o(C,g)||C.replace(d,decodeURIComponent),this.json)try{C=JSON.parse(C)}catch(e){}if(n===g){c=C;break}n||(c[g]=C)}catch(e){}}return c}}return t.set=t,t.get=function(e){return t.call(t,e)},t.getJSON=function(){return t.apply({json:!0},[].slice.call(arguments))},t.defaults={},t.remove=function(n,o){t(n,"",e(o,{expires:-1}))},t.withConverter=n,t}((function(){}))}));
1
+ !function(e){var n=!1;if("function"==typeof define&&define.amd&&(define(e),n=!0),"object"==typeof exports&&(module.exports=e(),n=!0),!n){var o=window.Cookies,t=window.Cookies=e();t.noConflict=function(){return window.Cookies=o,t}}}(function(){function e(){for(var e=0,n={};e<arguments.length;e++){var o=arguments[e];for(var t in o)n[t]=o[t]}return n}return function n(o){function t(n,r,i){var c;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(i=e({path:"/"},t.defaults,i)).expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*i.expires),i.expires=a}i.expires=i.expires?i.expires.toUTCString():"";try{c=JSON.stringify(r),/^[\{\[]/.test(c)&&(r=c)}catch(e){}r=o.write?o.write(r,n):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=(n=(n=encodeURIComponent(String(n))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var s="";for(var f in i)i[f]&&(s+="; "+f,!0!==i[f]&&(s+="="+i[f]));return document.cookie=n+"="+r+s}n||(c={});for(var p=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,u=0;u<p.length;u++){var l=p[u].split("="),C=l.slice(1).join("=");this.json||'"'!==C.charAt(0)||(C=C.slice(1,-1));try{var g=l[0].replace(d,decodeURIComponent);if(C=o.read?o.read(C,g):o(C,g)||C.replace(d,decodeURIComponent),this.json)try{C=JSON.parse(C)}catch(e){}if(n===g){c=C;break}n||(c[g]=C)}catch(e){}}return c}}return t.set=t,t.get=function(e){return t.call(t,e)},t.getJSON=function(){return t.apply({json:!0},[].slice.call(arguments))},t.defaults={},t.remove=function(n,o){t(n,"",e(o,{expires:-1}))},t.withConverter=n,t}(function(){})});
assets/js/seopress-counters.js CHANGED
@@ -1,490 +1,933 @@
1
  function sp_titles_counters() {
2
- var meta_title_val = jQuery("#seopress_titles_title_meta").val();
3
- var meta_title_placeholder = jQuery("#seopress_titles_title_meta").attr("placeholder");
4
-
5
- jQuery("#seopress_titles_title_counters").after('<div id="seopress_titles_title_counters_val">/ 60</div>'),
6
- meta_title_val.length > 0 ? (jQuery("#seopress_titles_title_counters").text(meta_title_val.length),
7
- jQuery("#seopress_titles_title_pixel").text(pixelTitle(meta_title_val))) : meta_title_placeholder.length && (jQuery("#seopress_titles_title_counters").text(meta_title_placeholder.length),
8
- jQuery("#seopress_titles_title_pixel").text(pixelTitle(meta_title_placeholder))),
9
-
10
- meta_title_val.length > 60 ? jQuery("#seopress_titles_title_counters").css("color", "red") : meta_title_placeholder.length > 60 && jQuery("#seopress_titles_title_counters").css("color", "red"),
11
- pixelTitle(meta_title_val) > 568 ? jQuery("#seopress_titles_title_pixel").css("color", "red") : pixelTitle(meta_title_placeholder) > 568 && jQuery("#seopress_titles_title_pixel").css("color", "red");
12
-
13
- if (meta_title_val.length) {
14
- var progress = Math.round(pixelTitle(meta_title_val)/568*100);
15
- } else {
16
- var progress = Math.round(pixelTitle(meta_title_placeholder)/568*100);
17
- }
18
-
19
- if (progress >= 100) {
20
- progress = 100;
21
- }
22
-
23
- jQuery('#seopress_titles_title_counters_progress').attr('aria-valuenow',progress),
24
- jQuery('#seopress_titles_title_counters_progress').text(progress +'%'),
25
- jQuery('#seopress_titles_title_counters_progress').css('width',progress +'%'),
26
-
27
- jQuery("#seopress_titles_title_meta, #seopress-tag-single-title, #seopress-tag-single-site-title, #seopress-tag-single-sep").on('keyup paste change click', function(e) {
28
- var meta_title_val = jQuery("#seopress_titles_title_meta").val();
29
- var meta_title_placeholder = jQuery("#seopress_titles_title_meta").attr("placeholder");
30
-
31
- jQuery("#seopress_titles_title_counters").css("color", "inherit"),
32
- jQuery("#seopress_titles_title_pixel").css("color", "inherit"),
33
-
34
- meta_title_val.length > 60 && jQuery("#seopress_titles_title_counters").css("color", "red"),
35
- pixelTitle(meta_title_val) > 568 && jQuery("#seopress_titles_title_pixel").css("color", "red");
36
-
37
- if (meta_title_val.length == 0) {
38
- meta_title_placeholder.length > 60 && jQuery("#seopress_titles_title_counters").css("color", "red"),
39
- pixelTitle(meta_title_placeholder) > 568 && jQuery("#seopress_titles_title_pixel").css("color", "red")
40
- }
41
-
42
- meta_title_val.length > 0 ? (jQuery("#seopress_titles_title_counters").text(meta_title_val.length),
43
- jQuery("#seopress_titles_title_pixel").text(pixelTitle(meta_title_val))) : meta_title_placeholder.length && (jQuery("#seopress_titles_title_counters").text(meta_title_placeholder.length),
44
- jQuery("#seopress_titles_title_pixel").text(pixelTitle(meta_title_placeholder))),
45
-
46
- meta_title_val.length > 0 ? (jQuery(".snippet-title-custom").text(e.target.value),
47
- jQuery(".snippet-title").css("display", "none"),
48
- jQuery(".snippet-title-custom").css("display", "block"),
49
- jQuery(".snippet-title-default").css("display", "none")) : 0 == meta_title_val.length && (jQuery(".snippet-title-default").css("display", "block"),
50
- jQuery(".snippet-title-custom").css("display", "none"), jQuery(".snippet-title").css("display", "none"));
51
-
52
- if (meta_title_val.length) {
53
- var progress = Math.round(pixelTitle(meta_title_val)/568*100);
54
- } else {
55
- var progress = Math.round(pixelTitle(meta_title_placeholder)/568*100);
56
- }
57
-
58
- if (progress >= 100) {
59
- progress = 100;
60
- }
61
-
62
- jQuery('#seopress_titles_title_counters_progress').attr('aria-valuenow',progress),
63
- jQuery('#seopress_titles_title_counters_progress').text(progress +'%'),
64
- jQuery('#seopress_titles_title_counters_progress').css('width',progress +'%')
65
- })
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
  }
67
 
68
  function sp_meta_desc_counters() {
69
- var meta_desc_val = jQuery("#seopress_titles_desc_meta").val();
70
- var meta_desc_placeholder = jQuery("#seopress_titles_desc_meta").attr("placeholder");
71
-
72
- jQuery("#seopress_titles_desc_counters").after('<div id="seopress_titles_desc_counters_val">/ 160</div>'),
73
-
74
- meta_desc_val.length > 0 ? (jQuery("#seopress_titles_desc_counters").text(meta_desc_val.length),
75
- jQuery("#seopress_titles_desc_pixel").text(pixelDesc(meta_desc_val))) : meta_desc_placeholder.length && (jQuery("#seopress_titles_desc_counters").text(meta_desc_placeholder.length),
76
- jQuery("#seopress_titles_desc_pixel").text(pixelDesc(meta_desc_placeholder))),
77
-
78
- meta_desc_val.length > 160 ? jQuery("#seopress_titles_desc_counters").css("color", "red") : meta_desc_placeholder.length > 160 && jQuery("#seopress_titles_desc_counters").css("color", "red"),
79
- pixelDesc(meta_desc_val) > 940 ? jQuery("#seopress_titles_desc_pixel").css("color", "red") : pixelDesc(meta_desc_placeholder) > 940 && jQuery("#seopress_titles_desc_pixel").css("color", "red");
80
-
81
- if (meta_desc_val.length) {
82
- var progress = Math.round(pixelDesc(meta_desc_val)/940*100);
83
- } else {
84
- var progress = Math.round(pixelDesc(meta_desc_placeholder)/940*100);
85
- }
86
-
87
- if (progress >= 100) {
88
- progress = 100;
89
- }
90
-
91
- jQuery('#seopress_titles_desc_counters_progress').attr('aria-valuenow',progress),
92
- jQuery('#seopress_titles_desc_counters_progress').text(progress +'%'),
93
- jQuery('#seopress_titles_desc_counters_progress').css('width',progress +'%'),
94
-
95
- jQuery("#seopress_titles_desc_meta, #seopress-tag-single-excerpt").on('keyup paste change click', function(e) {
96
- var meta_desc_val = jQuery("#seopress_titles_desc_meta").val();
97
- var meta_desc_placeholder = jQuery("#seopress_titles_desc_meta").attr("placeholder");
98
-
99
- jQuery("#seopress_titles_desc_counters").css("color", "inherit"),
100
- jQuery('#seopress_titles_desc_pixel').css('color', 'inherit'),
101
-
102
- meta_desc_val.length > 160 && jQuery("#seopress_titles_desc_counters").css("color", "red"),
103
- pixelDesc(meta_desc_val) > 940 && jQuery("#seopress_titles_desc_pixel").css("color", "red");
104
-
105
- if (meta_desc_val.length == 0) {
106
- meta_desc_placeholder.length > 160 && jQuery("#seopress_titles_desc_counters").css("color", "red"),
107
- pixelDesc(meta_desc_placeholder) > 940 && jQuery("#seopress_titles_desc_pixel").css("color", "red")
108
- }
109
-
110
- meta_desc_val.length > 0 ? (jQuery("#seopress_titles_desc_counters").text(meta_desc_val.length),
111
- jQuery("#seopress_titles_desc_pixel").text(pixelDesc(meta_desc_val))) : meta_desc_placeholder.length && (jQuery("#seopress_titles_desc_counters").text(meta_desc_placeholder.length),
112
- jQuery("#seopress_titles_desc_pixel").text(pixelDesc(meta_desc_placeholder))), meta_desc_val.length > 0 ? (jQuery(".snippet-description-custom").text(e.target.value),
113
- jQuery(".snippet-description").css("display", "none"),
114
- jQuery(".snippet-description-custom").css("display", "inline"),
115
- jQuery(".snippet-description-default").css("display", "none")) : 0 == meta_desc_val.length && (jQuery(".snippet-description-default").css("display", "inline"),
116
- jQuery(".snippet-description-custom").css("display", "none"),
117
- jQuery(".snippet-description").css("display", "none"));
118
-
119
- if (meta_desc_val.length) {
120
- var progress = Math.round(pixelDesc(meta_desc_val)/940*100);
121
- } else {
122
- var progress = Math.round(pixelDesc(meta_desc_placeholder)/940*100);
123
- }
124
-
125
- if (progress >= 100) {
126
- progress = 100;
127
- }
128
-
129
- jQuery('#seopress_titles_desc_counters_progress').attr('aria-valuenow',progress),
130
- jQuery('#seopress_titles_desc_counters_progress').text(progress +'%'),
131
- jQuery('#seopress_titles_desc_counters_progress').css('width',progress +'%')
132
-
133
- }), jQuery("#excerpt, .editor-post-excerpt textarea").keyup(function(e) {
134
- var meta_desc_val = jQuery("#seopress_titles_desc_meta").val();
135
- var meta_desc_placeholder = jQuery("#seopress_titles_desc_meta").attr("placeholder");
136
-
137
- 0 == meta_desc_val.length && 0 == jQuery(".snippet-description-custom").val().length && (jQuery(".snippet-description-custom").text(e.target.value),
138
- jQuery(".snippet-description").css("display", "none"),
139
- jQuery(".snippet-description-custom").css("display", "inline"),
140
- jQuery(".snippet-description-default").css("display", "none"));
141
-
142
- if (meta_desc_val.length) {
143
- var progress = meta_desc_val.length;
144
- } else {
145
- var progress = meta_desc_placeholder.length;
146
- }
147
- if (progress >= 100) {
148
- progress = 100;
149
- }
150
-
151
- jQuery('#seopress_titles_desc_counters_progress').attr('aria-valuenow',progress),
152
- jQuery('#seopress_titles_desc_counters_progress').text(progress +'%'),
153
- jQuery('#seopress_titles_desc_counters_progress').css('width',progress +'%')
154
- })
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
155
  }
156
 
157
  function pixelTitle(e) {
158
- inputText = e;
159
- font = "18px Arial";
160
-
161
- canvas = document.createElement("canvas");
162
- context = canvas.getContext("2d");
163
- context.font = font;
164
- width = context.measureText(inputText).width;
165
- formattedWidth = Math.ceil(width);
166
-
167
- return formattedWidth;
168
  }
169
 
170
  function pixelDesc(e) {
171
- inputText = e;
172
- font = "14px Arial";
173
-
174
- canvas = document.createElement("canvas");
175
- context = canvas.getContext("2d");
176
- context.font = font;
177
- width = context.measureText(inputText).width;
178
- formattedWidth = Math.ceil(width);
179
-
180
- return formattedWidth;
181
  }
182
 
183
  function sp_is_valid_url(string) {
184
- var res = string.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g);
185
- return (res !== null)
 
 
186
  }
187
 
188
  function sp_social_img(social_slug) {
189
- jQuery(".snippet-"+social_slug+"-img-alert").css("display", "none");
190
- var meta_img_val = jQuery('#seopress_social_'+social_slug+'_img_meta').val();
191
-
192
- if (meta_img_val =='') {
193
- var meta_img_val = jQuery('#seopress_social_'+social_slug+'_img_meta').attr('placeholder');
194
- }
195
-
196
- // Check valid URL
197
- if (sp_is_valid_url(meta_img_val) === true) {
198
- meta_img_val.length > 0 ? (jQuery('.snippet-'+social_slug+'-img-custom img').attr("src", meta_img_val),
199
- jQuery(".snippet-"+social_slug+"-img").css("display", "none"),
200
- jQuery(".snippet-"+social_slug+"-img-custom").css("display", "block"),
201
- jQuery(".snippet-"+social_slug+"-img-default").css("display", "none")) : 0 == meta_img_val.length && (jQuery(".snippet-"+social_slug+"-img-default").css("display", "block"),
202
- jQuery(".snippet-"+social_slug+"-img-custom").css("display", "none"), jQuery(".snippet-"+social_slug+"-img").css("display", "none"));
203
-
204
- if(meta_img_val.length > 0) {
205
- // Check file URL
206
- jQuery.get(meta_img_val).done(function() {
207
- // Extract filetype
208
- var meta_img_filetype = meta_img_val.split(/\#|\?/)[0].split('.').pop().trim();
209
- var types = ['jpg', 'jpeg', 'gif', 'png'];
210
-
211
- if(types.indexOf(meta_img_filetype) == -1) {
212
- jQuery(".snippet-"+social_slug+"-img-alert.alert1").css("display", "block");
213
- } else {
214
- // Extract image size
215
- var tmp_img = new Image();
216
- tmp_img.src = meta_img_val;
217
- jQuery(tmp_img).one('load',function(){
218
- pic_real_width = parseInt(tmp_img.width);
219
- pic_real_height = parseInt(tmp_img.height);
220
-
221
- // Default minimum size
222
- if (social_slug == 'fb') {
223
- min_width = 200,
224
- min_height = 200
225
- } else {
226
- min_width = 144,
227
- min_height = 144
228
- }
229
- if(pic_real_width < min_width || pic_real_height < min_height) {
230
- jQuery(".snippet-"+social_slug+"-img-alert.alert2").css("display", "block");
231
- }
232
- ratio_img = (pic_real_width / pic_real_height).toFixed(2);
233
- jQuery(".snippet-"+social_slug+"-img-alert.alert4").css("display", "block");
234
- jQuery(".snippet-"+social_slug+"-img-alert.alert4 span").text(ratio_img);
235
- });
236
- }
237
- }).fail(function() {
238
- jQuery(".snippet-"+social_slug+"-img-alert.alert3").css("display", "block");
239
- });
240
- }
241
- } else {
242
- jQuery(".snippet-"+social_slug+"-img-alert.alert5").css("display", "block");
243
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
244
  }
245
 
246
  function sp_social() {
247
- // FACEBOOK
248
- jQuery("#seopress_social_fb_title_meta, #seopress-tag-single-title, #seopress-tag-single-site-title, #seopress-tag-single-sep").on('keyup paste change click', function(e) {
249
- var meta_fb_title_val = jQuery("#seopress_social_fb_title_meta").val();
250
-
251
- meta_fb_title_val.length > 0 ? (jQuery(".snippet-fb-title-custom").text(e.target.value),
252
- jQuery(".snippet-fb-title").css("display", "none"),
253
- jQuery(".snippet-fb-title-custom").css("display", "block"),
254
- jQuery(".snippet-fb-title-default").css("display", "none")) : 0 == meta_fb_title_val.length && (jQuery(".snippet-fb-title-default").css("display", "block"),
255
- jQuery(".snippet-fb-title-custom").css("display", "none"), jQuery(".snippet-fb-title").css("display", "none"))
256
- })
257
-
258
- jQuery("#seopress_social_fb_desc_meta").on('keyup paste change click', function(e) {
259
- var meta_fb_desc_val = jQuery("#seopress_social_fb_desc_meta").val();
260
-
261
- meta_fb_desc_val.length > 0 ? (jQuery(".snippet-fb-description-custom").text(e.target.value),
262
- jQuery(".snippet-fb-description").css("display", "none"),
263
- jQuery(".snippet-fb-description-custom").css("display", "block"),
264
- jQuery(".snippet-fb-description-default").css("display", "none")) : 0 == meta_fb_desc_val.length && (jQuery(".snippet-fb-description-default").css("display", "block"),
265
- jQuery(".snippet-fb-description-custom").css("display", "none"), jQuery(".snippet-fb-description").css("display", "none"));
266
- })
267
-
268
- sp_social_img('fb');
269
- jQuery("#seopress_social_fb_img_meta").on('keyup paste change click', function() {
270
- sp_social_img('fb');
271
- })
272
-
273
- // TWITTER
274
- jQuery("#seopress_social_twitter_title_meta").on('keyup paste change click', function(e) {
275
- var meta_fb_title_val = jQuery("#seopress_social_twitter_title_meta").val();
276
-
277
- meta_fb_title_val.length > 0 ? (jQuery(".snippet-twitter-title-custom").text(e.target.value),
278
- jQuery(".snippet-twitter-title").css("display", "none"),
279
- jQuery(".snippet-twitter-title-custom").css("display", "block"),
280
- jQuery(".snippet-twitter-title-default").css("display", "none")) : 0 == meta_fb_title_val.length && (jQuery(".snippet-twitter-title-default").css("display", "block"),
281
- jQuery(".snippet-twitter-title-custom").css("display", "none"), jQuery(".snippet-twitter-title").css("display", "none"))
282
- })
283
-
284
- jQuery("#seopress_social_twitter_desc_meta").on('keyup paste change click', function(e) {
285
- var meta_fb_desc_val = jQuery("#seopress_social_twitter_desc_meta").val();
286
-
287
- meta_fb_desc_val.length > 0 ? (jQuery(".snippet-twitter-description-custom").text(e.target.value),
288
- jQuery(".snippet-twitter-description").css("display", "none"),
289
- jQuery(".snippet-twitter-description-custom").css("display", "block"),
290
- jQuery(".snippet-twitter-description-default").css("display", "none")) : 0 == meta_fb_desc_val.length && (jQuery(".snippet-twitter-description-default").css("display", "block"),
291
- jQuery(".snippet-twitter-description-custom").css("display", "none"), jQuery(".snippet-twitter-description").css("display", "none"));
292
- })
293
-
294
- sp_social_img('twitter');
295
- jQuery("#seopress_social_twitter_img_meta").on('keyup paste change click', function() {
296
- sp_social_img('twitter');
297
- })
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
298
  }
299
 
300
  //Content Analysis - Toggle
301
  function sp_ca_toggle() {
302
- var stop = false;
303
- jQuery( ".gr-analysis-title .btn-toggle" ).on('click',function(e) {
304
- if (stop) {
305
- event.stopImmediatePropagation();
306
- event.preventDefault();
307
- stop = false;
308
- }
309
- jQuery(this).toggleClass('open');
310
- jQuery(this).parent().parent().next('.gr-analysis-content').toggle();
311
- });
312
-
313
- //Show all
314
- jQuery( "#expand-all" ).on('click',function(e) {
315
- e.preventDefault();
316
- jQuery('.gr-analysis-content').show();
317
- });
318
- //Hide all
319
- jQuery( "#close-all" ).on('click',function(e) {
320
- e.preventDefault();
321
- jQuery('.gr-analysis-content').hide();
322
- });
323
  }
324
 
325
  //Tagify
326
- var input = document.querySelector('input[id=seopress_analysis_target_kw_meta]');
 
 
327
 
328
  var target_kw = new Tagify(input, {
329
- originalInputValueFormat: valuesArr => valuesArr.map(item => item.value).join(',')
330
- })
331
-
332
- function seopress_google_suggest(data){
333
-
334
- var raw_suggestions = String(data);
335
- var suggestions_array = raw_suggestions.split(',');
336
-
337
- var i;
338
- for (i = 0; i < suggestions_array.length; i++) {
339
- if (suggestions_array[i] != null && suggestions_array[i] != undefined && suggestions_array[i] !='' && suggestions_array[i] !='[object Object]') {
340
- document.getElementById('seopress_suggestions').innerHTML += '<li><a href=\"#\" class=\"sp-suggest-btn button button-small\">'+suggestions_array[i]+'</a></li>';
341
- }
342
- }
343
-
344
- jQuery('.sp-suggest-btn').click(function(e) {
345
- e.preventDefault();
346
-
347
- target_kw.addTags(jQuery(this).text());
348
- });
 
 
 
 
 
 
 
 
349
  }
350
 
351
- jQuery(document).ready(function(e) {
352
- //default state
353
- if (jQuery('#toggle-preview').attr('data-toggle') == '1') {
354
- jQuery("#seopress_cpt .google-snippet-preview").addClass("mobile-preview");
355
- } else {
356
- jQuery("#seopress_cpt .google-snippet-preview").removeClass("mobile-preview");
357
- }
358
- jQuery('#toggle-preview').on('click', function() {
359
- jQuery('#toggle-preview').attr('data-toggle', jQuery('#toggle-preview').attr('data-toggle') == '1' ? '0' : '1');
360
- jQuery("#seopress_cpt .google-snippet-preview").toggleClass("mobile-preview");
361
- });
362
- function s() {
363
- e.ajax({
364
- method: "GET",
365
- url: seopressAjaxRealPreview.seopress_real_preview,
366
- data: {
367
- action: "seopress_do_real_preview",
368
- post_id: e("#seopress-tabs").attr("data_id"),
369
- tax_name: e("#seopress-tabs").attr("data_tax"),
370
- origin: e("#seopress-tabs").attr("data_origin"),
371
- post_type: e("#seopress_launch_analysis").attr("data_post_type"),
372
- seopress_analysis_target_kw: e("#seopress_analysis_target_kw_meta").val(),
373
- _ajax_nonce: seopressAjaxRealPreview.seopress_nonce
374
- },
375
- beforeSend: function() {
376
- e(".analysis-score p span").fadeIn().text(seopressAjaxRealPreview.i18n.progress),
377
- e(".analysis-score p").addClass('loading')
378
- },
379
- success: function(s) {
380
- typeof s.data.og_title ==="undefined" ? og_title = "" : og_title = s.data.og_title.values;
381
- typeof s.data.og_desc ==="undefined" ? og_desc = "" : og_desc = s.data.og_desc.values;
382
- typeof s.data.og_img ==="undefined" ? og_img = "" : og_img = s.data.og_img.values;
383
- typeof s.data.og_url ==="undefined" ? og_url = "" : og_url = s.data.og_url.host;
384
- typeof s.data.og_site_name ==="undefined" ? og_site_name = "" : og_site_name = s.data.og_site_name.values;
385
- typeof s.data.tw_title ==="undefined" ? tw_title = "" : tw_title = s.data.tw_title.values;
386
- typeof s.data.tw_desc ==="undefined" ? tw_desc = "" : tw_desc = s.data.tw_desc.values;
387
- typeof s.data.tw_img ==="undefined" ? tw_img = "" : tw_img = s.data.tw_img.values;
388
- typeof s.data.meta_robots ==="undefined" ? meta_robots = "" : meta_robots = s.data.meta_robots[0];
389
-
390
- var data_arr = {og_title : og_title,
391
- og_desc : og_desc,
392
- og_img : og_img,
393
- og_url : og_url,
394
- og_site_name : og_site_name,
395
- tw_title : tw_title,
396
- tw_desc : tw_desc,
397
- tw_img : tw_img
398
- };
399
-
400
- for (var key in data_arr) {
401
- if (data_arr.length) {
402
- if (data_arr[key].length > 1) {
403
- key = data_arr[key].slice(-1)[0];
404
- } else {
405
- key = data_arr[key][0];
406
- }
407
- }
408
- }
409
-
410
- // Meta Robots
411
- meta_robots = meta_robots.toString();
412
-
413
- e("#sp-advanced-alert").empty();
414
-
415
- var if_noindex = new RegExp('noindex');
416
-
417
- if(if_noindex.test(meta_robots)){
418
- e("#sp-advanced-alert").append('<span class="impact high" aria-hidden="true"></span>');
419
- }
420
-
421
- // Google Preview
422
- e("#seopress_cpt .google-snippet-preview .snippet-title").html(s.data.title),
423
- e("#seopress_cpt .google-snippet-preview .snippet-title-default").html(s.data.title),
424
- e("#seopress_titles_title_meta").attr("placeholder", s.data.title),
425
- e("#seopress_cpt .google-snippet-preview .snippet-description").html(s.data.meta_desc),
426
- e("#seopress_cpt .google-snippet-preview .snippet-description-default").html(s.data.meta_desc),
427
- e("#seopress_titles_desc_meta").attr("placeholder", s.data.meta_desc)
428
-
429
- // Facebook Preview
430
- if (data_arr.og_title) {
431
- e("#seopress_cpt #seopress_social_fb_title_meta").attr("placeholder", data_arr.og_title[0]),
432
- e("#seopress_cpt .facebook-snippet-preview .snippet-fb-title").html(data_arr.og_title[0]),
433
- e("#seopress_cpt .facebook-snippet-preview .snippet-fb-title-default").html(data_arr.og_title[0])
434
- }
435
-
436
- if (data_arr.og_desc) {
437
- e("#seopress_cpt #seopress_social_fb_desc_meta").attr("placeholder", data_arr.og_desc[0]),
438
- e("#seopress_cpt .facebook-snippet-preview .snippet-fb-description").html(data_arr.og_desc[0]),
439
- e("#seopress_cpt .facebook-snippet-preview .snippet-fb-description-default").html(data_arr.og_desc[0])
440
- }
441
-
442
- if (data_arr.og_img) {
443
- e("#seopress_cpt #seopress_social_fb_img_meta").attr("placeholder", data_arr.og_img[0]),
444
- e("#seopress_cpt .facebook-snippet-preview .snippet-fb-img img").attr("src", data_arr.og_img[0]),
445
- e("#seopress_cpt .facebook-snippet-preview .snippet-fb-img-default img").attr("src", data_arr.og_img[0])
446
- }
447
-
448
- e("#seopress_cpt .facebook-snippet-preview .snippet-fb-url").html(data_arr.og_url),
449
- e("#seopress_cpt .facebook-snippet-preview .snippet-fb-site-name").html(data_arr.og_site_name)
450
-
451
- // Twitter Preview
452
- if (data_arr.tw_title) {
453
- e("#seopress_cpt #seopress_social_twitter_title_meta").attr("placeholder", data_arr.tw_title[0]),
454
- e("#seopress_cpt .twitter-snippet-preview .snippet-twitter-title").html(data_arr.tw_title[0]),
455
- e("#seopress_cpt .twitter-snippet-preview .snippet-twitter-title-default").html(data_arr.tw_title[0])
456
- }
457
-
458
- if (data_arr.tw_desc) {
459
- e("#seopress_cpt #seopress_social_twitter_desc_meta").attr("placeholder", data_arr.tw_desc[0]),
460
- e("#seopress_cpt .twitter-snippet-preview .snippet-twitter-description").html(data_arr.tw_desc[0]),
461
- e("#seopress_cpt .twitter-snippet-preview .snippet-twitter-description-default").html(data_arr.tw_desc[0])
462
- }
463
-
464
- if (data_arr.tw_img) {
465
- e("#seopress_cpt #seopress_social_twitter_img_meta").attr("placeholder", data_arr.tw_img[0]),
466
- e("#seopress_cpt .twitter-snippet-preview .snippet-twitter-img img").attr("src", data_arr.tw_img[0]),
467
- e("#seopress_cpt .twitter-snippet-preview .snippet-twitter-img-default img").attr("src", data_arr.tw_img[0])
468
- }
469
-
470
- e("#seopress_cpt .twitter-snippet-preview .snippet-twitter-url").html(data_arr.og_url),
471
-
472
- e("#seopress_cpt #seopress_robots_canonical_meta").attr("placeholder", s.data.canonical),
473
-
474
- e("#seopress-analysis-tabs").load(" #seopress-analysis-tabs-1", '', sp_ca_toggle),
475
- e(".analysis-score p").removeClass('loading'),
476
-
477
- e(" #seopress_titles_title_counters_val").remove(),
478
- e(" #seopress_titles_desc_counters_val").remove(),
479
- sp_titles_counters(),
480
- sp_meta_desc_counters(),
481
- sp_social()
482
- }
483
- })
484
- }
485
- s(),
486
- e("#seopress_launch_analysis").on("click", function() {
487
- s()
488
- }),
489
- sp_ca_toggle()
490
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  function sp_titles_counters() {
2
+ const $ = jQuery;
3
+ let elementTitleMeta = $("#seopress_titles_title_meta");
4
+
5
+ if ($(".snippet-title-custom:visible").length > 0) {
6
+ elementTitleMeta = $(".snippet-title-custom");
7
+ } else if ($(".snippet-title:visible").length > 0) {
8
+ elementTitleMeta = $(".snippet-title");
9
+ } else if ($(".snippet-title-default:visible").length > 0) {
10
+ elementTitleMeta = $(".snippet-title-default");
11
+ }
12
+
13
+ var meta_title_val = elementTitleMeta.val();
14
+ var meta_title_placeholder = jQuery("#seopress_titles_title_meta").attr(
15
+ "placeholder"
16
+ );
17
+
18
+ jQuery("#seopress_titles_title_counters").after(
19
+ '<div id="seopress_titles_title_counters_val">/ 60</div>'
20
+ ),
21
+ meta_title_val.length > 0
22
+ ? (jQuery("#seopress_titles_title_counters").text(
23
+ meta_title_val.length
24
+ ),
25
+ jQuery("#seopress_titles_title_pixel").text(
26
+ pixelTitle(meta_title_val)
27
+ ))
28
+ : meta_title_placeholder.length &&
29
+ (jQuery("#seopress_titles_title_counters").text(
30
+ meta_title_placeholder.length
31
+ ),
32
+ jQuery("#seopress_titles_title_pixel").text(
33
+ pixelTitle(meta_title_placeholder)
34
+ )),
35
+ meta_title_val.length > 60
36
+ ? jQuery("#seopress_titles_title_counters").css("color", "red")
37
+ : meta_title_placeholder.length > 60 &&
38
+ jQuery("#seopress_titles_title_counters").css("color", "red"),
39
+ pixelTitle(meta_title_val) > 568
40
+ ? jQuery("#seopress_titles_title_pixel").css("color", "red")
41
+ : pixelTitle(meta_title_placeholder) > 568 &&
42
+ jQuery("#seopress_titles_title_pixel").css("color", "red");
43
+
44
+ if (meta_title_val.length) {
45
+ var progress = Math.round((pixelTitle(meta_title_val) / 568) * 100);
46
+ } else {
47
+ var progress = Math.round(
48
+ (pixelTitle(meta_title_placeholder) / 568) * 100
49
+ );
50
+ }
51
+
52
+ if (progress >= 100) {
53
+ progress = 100;
54
+ }
55
+
56
+ jQuery("#seopress_titles_title_counters_progress").attr(
57
+ "aria-valuenow",
58
+ progress
59
+ ),
60
+ jQuery("#seopress_titles_title_counters_progress").text(progress + "%"),
61
+ jQuery("#seopress_titles_title_counters_progress").css(
62
+ "width",
63
+ progress + "%"
64
+ ),
65
+ jQuery(
66
+ "#seopress_titles_title_meta, #seopress-tag-single-title, #seopress-tag-single-site-title, #seopress-tag-single-sep"
67
+ ).on("keyup paste change click", function (e) {
68
+ var meta_title_val = $("#seopress_titles_title_meta").val();
69
+ if ($(".snippet-title-custom:visible").length > 0) {
70
+ meta_title_val = $(".snippet-title-custom").text();
71
+ } else if ($(".snippet-title:visible").length > 0) {
72
+ meta_title_val = $(".snippet-title").text();
73
+ } else if ($(".snippet-title-default:visible").length > 0) {
74
+ meta_title_val = $(".snippet-title-default").text();
75
+ }
76
+
77
+ var meta_title_placeholder = jQuery(
78
+ "#seopress_titles_title_meta"
79
+ ).attr("placeholder");
80
+
81
+ jQuery("#seopress_titles_title_counters").css("color", "inherit"),
82
+ jQuery("#seopress_titles_title_pixel").css("color", "inherit"),
83
+ meta_title_val.length > 60 &&
84
+ jQuery("#seopress_titles_title_counters").css(
85
+ "color",
86
+ "red"
87
+ ),
88
+ pixelTitle(meta_title_val) > 568 &&
89
+ jQuery("#seopress_titles_title_pixel").css("color", "red");
90
+
91
+ if (meta_title_val.length == 0) {
92
+ meta_title_placeholder.length > 60 &&
93
+ jQuery("#seopress_titles_title_counters").css(
94
+ "color",
95
+ "red"
96
+ ),
97
+ pixelTitle(meta_title_placeholder) > 568 &&
98
+ jQuery("#seopress_titles_title_pixel").css(
99
+ "color",
100
+ "red"
101
+ );
102
+ }
103
+
104
+ meta_title_val.length > 0
105
+ ? (jQuery("#seopress_titles_title_counters").text(
106
+ meta_title_val.length
107
+ ),
108
+ jQuery("#seopress_titles_title_pixel").text(
109
+ pixelTitle(meta_title_val)
110
+ ))
111
+ : meta_title_placeholder.length &&
112
+ (jQuery("#seopress_titles_title_counters").text(
113
+ meta_title_placeholder.length
114
+ ),
115
+ jQuery("#seopress_titles_title_pixel").text(
116
+ pixelTitle(meta_title_placeholder)
117
+ ));
118
+ // meta_title_val.length > 0
119
+ // ? (jQuery(".snippet-title").css("display", "none"),
120
+ // jQuery(".snippet-title-default").css("display", "none"))
121
+ // : 0 == meta_title_val.length &&
122
+ // (jQuery(".snippet-title-default").css("display", "block"),
123
+ // jQuery(".snippet-title").css("display", "none"));
124
+
125
+ if (meta_title_val.length) {
126
+ var progress = Math.round(
127
+ (pixelTitle(meta_title_val) / 568) * 100
128
+ );
129
+ } else {
130
+ var progress = Math.round(
131
+ (pixelTitle(meta_title_placeholder) / 568) * 100
132
+ );
133
+ }
134
+
135
+ if (progress >= 100) {
136
+ progress = 100;
137
+ }
138
+
139
+ jQuery("#seopress_titles_title_counters_progress").attr(
140
+ "aria-valuenow",
141
+ progress
142
+ ),
143
+ jQuery("#seopress_titles_title_counters_progress").text(
144
+ progress + "%"
145
+ ),
146
+ jQuery("#seopress_titles_title_counters_progress").css(
147
+ "width",
148
+ progress + "%"
149
+ );
150
+ });
151
  }
152
 
153
  function sp_meta_desc_counters() {
154
+ var meta_desc_val = jQuery("#seopress_titles_desc_meta").val();
155
+ var meta_desc_placeholder = jQuery("#seopress_titles_desc_meta").attr(
156
+ "placeholder"
157
+ );
158
+
159
+ jQuery("#seopress_titles_desc_counters").after(
160
+ '<div id="seopress_titles_desc_counters_val">/ 160</div>'
161
+ ),
162
+ meta_desc_val.length > 0
163
+ ? (jQuery("#seopress_titles_desc_counters").text(
164
+ meta_desc_val.length
165
+ ),
166
+ jQuery("#seopress_titles_desc_pixel").text(
167
+ pixelDesc(meta_desc_val)
168
+ ))
169
+ : meta_desc_placeholder.length &&
170
+ (jQuery("#seopress_titles_desc_counters").text(
171
+ meta_desc_placeholder.length
172
+ ),
173
+ jQuery("#seopress_titles_desc_pixel").text(
174
+ pixelDesc(meta_desc_placeholder)
175
+ )),
176
+ meta_desc_val.length > 160
177
+ ? jQuery("#seopress_titles_desc_counters").css("color", "red")
178
+ : meta_desc_placeholder.length > 160 &&
179
+ jQuery("#seopress_titles_desc_counters").css("color", "red"),
180
+ pixelDesc(meta_desc_val) > 940
181
+ ? jQuery("#seopress_titles_desc_pixel").css("color", "red")
182
+ : pixelDesc(meta_desc_placeholder) > 940 &&
183
+ jQuery("#seopress_titles_desc_pixel").css("color", "red");
184
+
185
+ if (meta_desc_val.length) {
186
+ var progress = Math.round((pixelDesc(meta_desc_val) / 940) * 100);
187
+ } else {
188
+ var progress = Math.round(
189
+ (pixelDesc(meta_desc_placeholder) / 940) * 100
190
+ );
191
+ }
192
+
193
+ if (progress >= 100) {
194
+ progress = 100;
195
+ }
196
+
197
+ jQuery("#seopress_titles_desc_counters_progress").attr(
198
+ "aria-valuenow",
199
+ progress
200
+ ),
201
+ jQuery("#seopress_titles_desc_counters_progress").text(progress + "%"),
202
+ jQuery("#seopress_titles_desc_counters_progress").css(
203
+ "width",
204
+ progress + "%"
205
+ ),
206
+ jQuery("#seopress_titles_desc_meta, #seopress-tag-single-excerpt").on(
207
+ "keyup paste change click",
208
+ function (e) {
209
+ var meta_desc_val = jQuery("#seopress_titles_desc_meta").val();
210
+ var meta_desc_placeholder = jQuery(
211
+ "#seopress_titles_desc_meta"
212
+ ).attr("placeholder");
213
+
214
+ jQuery("#seopress_titles_desc_counters").css(
215
+ "color",
216
+ "inherit"
217
+ ),
218
+ jQuery("#seopress_titles_desc_pixel").css(
219
+ "color",
220
+ "inherit"
221
+ ),
222
+ meta_desc_val.length > 160 &&
223
+ jQuery("#seopress_titles_desc_counters").css(
224
+ "color",
225
+ "red"
226
+ ),
227
+ pixelDesc(meta_desc_val) > 940 &&
228
+ jQuery("#seopress_titles_desc_pixel").css(
229
+ "color",
230
+ "red"
231
+ );
232
+
233
+ if (meta_desc_val.length == 0) {
234
+ meta_desc_placeholder.length > 160 &&
235
+ jQuery("#seopress_titles_desc_counters").css(
236
+ "color",
237
+ "red"
238
+ ),
239
+ pixelDesc(meta_desc_placeholder) > 940 &&
240
+ jQuery("#seopress_titles_desc_pixel").css(
241
+ "color",
242
+ "red"
243
+ );
244
+ }
245
+
246
+ meta_desc_val.length > 0
247
+ ? (jQuery("#seopress_titles_desc_counters").text(
248
+ meta_desc_val.length
249
+ ),
250
+ jQuery("#seopress_titles_desc_pixel").text(
251
+ pixelDesc(meta_desc_val)
252
+ ))
253
+ : meta_desc_placeholder.length &&
254
+ (jQuery("#seopress_titles_desc_counters").text(
255
+ meta_desc_placeholder.length
256
+ ),
257
+ jQuery("#seopress_titles_desc_pixel").text(
258
+ pixelDesc(meta_desc_placeholder)
259
+ )),
260
+ meta_desc_val.length > 0
261
+ ? (jQuery(".snippet-description-custom").text(
262
+ e.target.value
263
+ ),
264
+ jQuery(".snippet-description").css("display", "none"),
265
+ jQuery(".snippet-description-custom").css(
266
+ "display",
267
+ "inline"
268
+ ),
269
+ jQuery(".snippet-description-default").css(
270
+ "display",
271
+ "none"
272
+ ))
273
+ : 0 == meta_desc_val.length &&
274
+ (jQuery(".snippet-description-default").css(
275
+ "display",
276
+ "inline"
277
+ ),
278
+ jQuery(".snippet-description-custom").css(
279
+ "display",
280
+ "none"
281
+ ),
282
+ jQuery(".snippet-description").css(
283
+ "display",
284
+ "none"
285
+ ));
286
+
287
+ if (meta_desc_val.length) {
288
+ var progress = Math.round(
289
+ (pixelDesc(meta_desc_val) / 940) * 100
290
+ );
291
+ } else {
292
+ var progress = Math.round(
293
+ (pixelDesc(meta_desc_placeholder) / 940) * 100
294
+ );
295
+ }
296
+
297
+ if (progress >= 100) {
298
+ progress = 100;
299
+ }
300
+
301
+ jQuery("#seopress_titles_desc_counters_progress").attr(
302
+ "aria-valuenow",
303
+ progress
304
+ ),
305
+ jQuery("#seopress_titles_desc_counters_progress").text(
306
+ progress + "%"
307
+ ),
308
+ jQuery("#seopress_titles_desc_counters_progress").css(
309
+ "width",
310
+ progress + "%"
311
+ );
312
+ }
313
+ ),
314
+ jQuery("#excerpt, .editor-post-excerpt textarea").keyup(function (e) {
315
+ var meta_desc_val = jQuery("#seopress_titles_desc_meta").val();
316
+ var meta_desc_placeholder = jQuery(
317
+ "#seopress_titles_desc_meta"
318
+ ).attr("placeholder");
319
+
320
+ 0 == meta_desc_val.length &&
321
+ 0 == jQuery(".snippet-description-custom").val().length &&
322
+ (jQuery(".snippet-description-custom").text(e.target.value),
323
+ jQuery(".snippet-description").css("display", "none"),
324
+ jQuery(".snippet-description-custom").css("display", "inline"),
325
+ jQuery(".snippet-description-default").css("display", "none"));
326
+
327
+ if (meta_desc_val.length) {
328
+ var progress = meta_desc_val.length;
329
+ } else {
330
+ var progress = meta_desc_placeholder.length;
331
+ }
332
+ if (progress >= 100) {
333
+ progress = 100;
334
+ }
335
+
336
+ jQuery("#seopress_titles_desc_counters_progress").attr(
337
+ "aria-valuenow",
338
+ progress
339
+ ),
340
+ jQuery("#seopress_titles_desc_counters_progress").text(
341
+ progress + "%"
342
+ ),
343
+ jQuery("#seopress_titles_desc_counters_progress").css(
344
+ "width",
345
+ progress + "%"
346
+ );
347
+ });
348
  }
349
 
350
  function pixelTitle(e) {
351
+ inputText = e;
352
+ font = "18px Arial";
353
+
354
+ canvas = document.createElement("canvas");
355
+ context = canvas.getContext("2d");
356
+ context.font = font;
357
+ width = context.measureText(inputText).width;
358
+ formattedWidth = Math.ceil(width);
359
+
360
+ return formattedWidth;
361
  }
362
 
363
  function pixelDesc(e) {
364
+ inputText = e;
365
+ font = "14px Arial";
366
+
367
+ canvas = document.createElement("canvas");
368
+ context = canvas.getContext("2d");
369
+ context.font = font;
370
+ width = context.measureText(inputText).width;
371
+ formattedWidth = Math.ceil(width);
372
+
373
+ return formattedWidth;
374
  }
375
 
376
  function sp_is_valid_url(string) {
377
+ var res = string.match(
378
+ /(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g
379
+ );
380
+ return res !== null;
381
  }
382
 
383
  function sp_social_img(social_slug) {
384
+ jQuery(".snippet-" + social_slug + "-img-alert").css("display", "none");
385
+ var meta_img_val = jQuery(
386
+ "#seopress_social_" + social_slug + "_img_meta"
387
+ ).val();
388
+
389
+ if (meta_img_val == "") {
390
+ var meta_img_val = jQuery(
391
+ "#seopress_social_" + social_slug + "_img_meta"
392
+ ).attr("placeholder");
393
+ }
394
+
395
+ // Check valid URL
396
+ if (sp_is_valid_url(meta_img_val) === true) {
397
+ meta_img_val.length > 0
398
+ ? (jQuery(".snippet-" + social_slug + "-img-custom img").attr(
399
+ "src",
400
+ meta_img_val
401
+ ),
402
+ jQuery(".snippet-" + social_slug + "-img").css("display", "none"),
403
+ jQuery(".snippet-" + social_slug + "-img-custom").css(
404
+ "display",
405
+ "block"
406
+ ),
407
+ jQuery(".snippet-" + social_slug + "-img-default").css(
408
+ "display",
409
+ "none"
410
+ ))
411
+ : 0 == meta_img_val.length &&
412
+ (jQuery(".snippet-" + social_slug + "-img-default").css(
413
+ "display",
414
+ "block"
415
+ ),
416
+ jQuery(".snippet-" + social_slug + "-img-custom").css(
417
+ "display",
418
+ "none"
419
+ ),
420
+ jQuery(".snippet-" + social_slug + "-img").css(
421
+ "display",
422
+ "none"
423
+ ));
424
+
425
+ if (meta_img_val.length > 0) {
426
+ // Check file URL
427
+ jQuery
428
+ .get(meta_img_val)
429
+ .done(function () {
430
+ // Extract filetype
431
+ var meta_img_filetype = meta_img_val
432
+ .split(/\#|\?/)[0]
433
+ .split(".")
434
+ .pop()
435
+ .trim();
436
+ var types = ["jpg", "jpeg", "gif", "png"];
437
+
438
+ if (types.indexOf(meta_img_filetype) == -1) {
439
+ jQuery(
440
+ ".snippet-" + social_slug + "-img-alert.alert1"
441
+ ).css("display", "block");
442
+ } else {
443
+ // Extract image size
444
+ var tmp_img = new Image();
445
+ tmp_img.src = meta_img_val;
446
+ jQuery(tmp_img).one("load", function () {
447
+ pic_real_width = parseInt(tmp_img.width);
448
+ pic_real_height = parseInt(tmp_img.height);
449
+
450
+ // Default minimum size
451
+ if (social_slug == "fb") {
452
+ (min_width = 200), (min_height = 200);
453
+ } else {
454
+ (min_width = 144), (min_height = 144);
455
+ }
456
+ if (
457
+ pic_real_width < min_width ||
458
+ pic_real_height < min_height
459
+ ) {
460
+ jQuery(
461
+ ".snippet-" +
462
+ social_slug +
463
+ "-img-alert.alert2"
464
+ ).css("display", "block");
465
+ }
466
+ ratio_img = (
467
+ pic_real_width / pic_real_height
468
+ ).toFixed(2);
469
+ jQuery(
470
+ ".snippet-" + social_slug + "-img-alert.alert4"
471
+ ).css("display", "block");
472
+ jQuery(
473
+ ".snippet-" +
474
+ social_slug +
475
+ "-img-alert.alert4 span"
476
+ ).text(ratio_img);
477
+ });
478
+ }
479
+ })
480
+ .fail(function () {
481
+ jQuery(".snippet-" + social_slug + "-img-alert.alert3").css(
482
+ "display",
483
+ "block"
484
+ );
485
+ });
486
+ }
487
+ } else {
488
+ jQuery(".snippet-" + social_slug + "-img-alert.alert5").css(
489
+ "display",
490
+ "block"
491
+ );
492
+ }
493
  }
494
 
495
  function sp_social() {
496
+ // FACEBOOK
497
+ jQuery(
498
+ "#seopress_social_fb_title_meta, #seopress-tag-single-title, #seopress-tag-single-site-title, #seopress-tag-single-sep"
499
+ ).on("keyup paste change click", function (e) {
500
+ var meta_fb_title_val = jQuery("#seopress_social_fb_title_meta").val();
501
+
502
+ meta_fb_title_val.length > 0
503
+ ? (jQuery(".snippet-fb-title-custom").text(e.target.value),
504
+ jQuery(".snippet-fb-title").css("display", "none"),
505
+ jQuery(".snippet-fb-title-custom").css("display", "block"),
506
+ jQuery(".snippet-fb-title-default").css("display", "none"))
507
+ : 0 == meta_fb_title_val.length &&
508
+ (jQuery(".snippet-fb-title-default").css("display", "block"),
509
+ jQuery(".snippet-fb-title-custom").css("display", "none"),
510
+ jQuery(".snippet-fb-title").css("display", "none"));
511
+ });
512
+
513
+ jQuery("#seopress_social_fb_desc_meta").on(
514
+ "keyup paste change click",
515
+ function (e) {
516
+ var meta_fb_desc_val = jQuery(
517
+ "#seopress_social_fb_desc_meta"
518
+ ).val();
519
+
520
+ meta_fb_desc_val.length > 0
521
+ ? (jQuery(".snippet-fb-description-custom").text(
522
+ e.target.value
523
+ ),
524
+ jQuery(".snippet-fb-description").css("display", "none"),
525
+ jQuery(".snippet-fb-description-custom").css(
526
+ "display",
527
+ "block"
528
+ ),
529
+ jQuery(".snippet-fb-description-default").css(
530
+ "display",
531
+ "none"
532
+ ))
533
+ : 0 == meta_fb_desc_val.length &&
534
+ (jQuery(".snippet-fb-description-default").css(
535
+ "display",
536
+ "block"
537
+ ),
538
+ jQuery(".snippet-fb-description-custom").css(
539
+ "display",
540
+ "none"
541
+ ),
542
+ jQuery(".snippet-fb-description").css("display", "none"));
543
+ }
544
+ );
545
+
546
+ sp_social_img("fb");
547
+ jQuery("#seopress_social_fb_img_meta").on(
548
+ "keyup paste change click",
549
+ function () {
550
+ sp_social_img("fb");
551
+ }
552
+ );
553
+
554
+ // TWITTER
555
+ jQuery("#seopress_social_twitter_title_meta").on(
556
+ "keyup paste change click",
557
+ function (e) {
558
+ var meta_fb_title_val = jQuery(
559
+ "#seopress_social_twitter_title_meta"
560
+ ).val();
561
+
562
+ meta_fb_title_val.length > 0
563
+ ? (jQuery(".snippet-twitter-title-custom").text(e.target.value),
564
+ jQuery(".snippet-twitter-title").css("display", "none"),
565
+ jQuery(".snippet-twitter-title-custom").css(
566
+ "display",
567
+ "block"
568
+ ),
569
+ jQuery(".snippet-twitter-title-default").css(
570
+ "display",
571
+ "none"
572
+ ))
573
+ : 0 == meta_fb_title_val.length &&
574
+ (jQuery(".snippet-twitter-title-default").css(
575
+ "display",
576
+ "block"
577
+ ),
578
+ jQuery(".snippet-twitter-title-custom").css(
579
+ "display",
580
+ "none"
581
+ ),
582
+ jQuery(".snippet-twitter-title").css("display", "none"));
583
+ }
584
+ );
585
+
586
+ jQuery("#seopress_social_twitter_desc_meta").on(
587
+ "keyup paste change click",
588
+ function (e) {
589
+ var meta_fb_desc_val = jQuery(
590
+ "#seopress_social_twitter_desc_meta"
591
+ ).val();
592
+
593
+ meta_fb_desc_val.length > 0
594
+ ? (jQuery(".snippet-twitter-description-custom").text(
595
+ e.target.value
596
+ ),
597
+ jQuery(".snippet-twitter-description").css("display", "none"),
598
+ jQuery(".snippet-twitter-description-custom").css(
599
+ "display",
600
+ "block"
601
+ ),
602
+ jQuery(".snippet-twitter-description-default").css(
603
+ "display",
604
+ "none"
605
+ ))
606
+ : 0 == meta_fb_desc_val.length &&
607
+ (jQuery(".snippet-twitter-description-default").css(
608
+ "display",
609
+ "block"
610
+ ),
611
+ jQuery(".snippet-twitter-description-custom").css(
612
+ "display",
613
+ "none"
614
+ ),
615
+ jQuery(".snippet-twitter-description").css(
616
+ "display",
617
+ "none"
618
+ ));
619
+ }
620
+ );
621
+
622
+ sp_social_img("twitter");
623
+ jQuery("#seopress_social_twitter_img_meta").on(
624
+ "keyup paste change click",
625
+ function () {
626
+ sp_social_img("twitter");
627
+ }
628
+ );
629
  }
630
 
631
  //Content Analysis - Toggle
632
  function sp_ca_toggle() {
633
+ var stop = false;
634
+ jQuery(".gr-analysis-title .btn-toggle").on("click", function (e) {
635
+ if (stop) {
636
+ event.stopImmediatePropagation();
637
+ event.preventDefault();
638
+ stop = false;
639
+ }
640
+ jQuery(this).toggleClass("open");
641
+ jQuery(this).parent().parent().next(".gr-analysis-content").toggle();
642
+ });
643
+
644
+ //Show all
645
+ jQuery("#expand-all").on("click", function (e) {
646
+ e.preventDefault();
647
+ jQuery(".gr-analysis-content").show();
648
+ });
649
+ //Hide all
650
+ jQuery("#close-all").on("click", function (e) {
651
+ e.preventDefault();
652
+ jQuery(".gr-analysis-content").hide();
653
+ });
654
  }
655
 
656
  //Tagify
657
+ var input = document.querySelector(
658
+ "input[id=seopress_analysis_target_kw_meta]"
659
+ );
660
 
661
  var target_kw = new Tagify(input, {
662
+ originalInputValueFormat: (valuesArr) =>
663
+ valuesArr.map((item) => item.value).join(","),
664
+ });
665
+
666
+ function seopress_google_suggest(data) {
667
+ var raw_suggestions = String(data);
668
+ var suggestions_array = raw_suggestions.split(",");
669
+
670
+ var i;
671
+ for (i = 0; i < suggestions_array.length; i++) {
672
+ if (
673
+ suggestions_array[i] != null &&
674
+ suggestions_array[i] != undefined &&
675
+ suggestions_array[i] != "" &&
676
+ suggestions_array[i] != "[object Object]"
677
+ ) {
678
+ document.getElementById("seopress_suggestions").innerHTML +=
679
+ '<li><a href="#" class="sp-suggest-btn button button-small">' +
680
+ suggestions_array[i] +
681
+ "</a></li>";
682
+ }
683
+ }
684
+
685
+ jQuery(".sp-suggest-btn").click(function (e) {
686
+ e.preventDefault();
687
+
688
+ target_kw.addTags(jQuery(this).text());
689
+ });
690
  }
691
 
692
+ jQuery(document).ready(function (e) {
693
+ //default state
694
+ if (jQuery("#toggle-preview").attr("data-toggle") == "1") {
695
+ jQuery("#seopress_cpt .google-snippet-preview").addClass(
696
+ "mobile-preview"
697
+ );
698
+ } else {
699
+ jQuery("#seopress_cpt .google-snippet-preview").removeClass(
700
+ "mobile-preview"
701
+ );
702
+ }
703
+ jQuery("#toggle-preview").on("click", function () {
704
+ jQuery("#toggle-preview").attr(
705
+ "data-toggle",
706
+ jQuery("#toggle-preview").attr("data-toggle") == "1" ? "0" : "1"
707
+ );
708
+ jQuery("#seopress_cpt .google-snippet-preview").toggleClass(
709
+ "mobile-preview"
710
+ );
711
+ });
712
+ function s() {
713
+ e.ajax({
714
+ method: "GET",
715
+ url: seopressAjaxRealPreview.seopress_real_preview,
716
+ data: {
717
+ action: "seopress_do_real_preview",
718
+ post_id: e("#seopress-tabs").attr("data_id"),
719
+ tax_name: e("#seopress-tabs").attr("data_tax"),
720
+ origin: e("#seopress-tabs").attr("data_origin"),
721
+ post_type: e("#seopress_launch_analysis").attr(
722
+ "data_post_type"
723
+ ),
724
+ seopress_analysis_target_kw: e(
725
+ "#seopress_analysis_target_kw_meta"
726
+ ).val(),
727
+ _ajax_nonce: seopressAjaxRealPreview.seopress_nonce,
728
+ },
729
+ beforeSend: function () {
730
+ e(".analysis-score p span")
731
+ .fadeIn()
732
+ .text(seopressAjaxRealPreview.i18n.progress),
733
+ e(".analysis-score p").addClass("loading");
734
+ },
735
+ success: function (s) {
736
+ typeof s.data.og_title === "undefined"
737
+ ? (og_title = "")
738
+ : (og_title = s.data.og_title.values);
739
+ typeof s.data.og_desc === "undefined"
740
+ ? (og_desc = "")
741
+ : (og_desc = s.data.og_desc.values);
742
+ typeof s.data.og_img === "undefined"
743
+ ? (og_img = "")
744
+ : (og_img = s.data.og_img.values);
745
+ typeof s.data.og_url === "undefined"
746
+ ? (og_url = "")
747
+ : (og_url = s.data.og_url.host);
748
+ typeof s.data.og_site_name === "undefined"
749
+ ? (og_site_name = "")
750
+ : (og_site_name = s.data.og_site_name.values);
751
+ typeof s.data.tw_title === "undefined"
752
+ ? (tw_title = "")
753
+ : (tw_title = s.data.tw_title.values);
754
+ typeof s.data.tw_desc === "undefined"
755
+ ? (tw_desc = "")
756
+ : (tw_desc = s.data.tw_desc.values);
757
+ typeof s.data.tw_img === "undefined"
758
+ ? (tw_img = "")
759
+ : (tw_img = s.data.tw_img.values);
760
+ typeof s.data.meta_robots === "undefined"
761
+ ? (meta_robots = "")
762
+ : (meta_robots = s.data.meta_robots[0]);
763
+
764
+ var data_arr = {
765
+ og_title: og_title,
766
+ og_desc: og_desc,
767
+ og_img: og_img,
768
+ og_url: og_url,
769
+ og_site_name: og_site_name,
770
+ tw_title: tw_title,
771
+ tw_desc: tw_desc,
772
+ tw_img: tw_img,
773
+ };
774
+
775
+ for (var key in data_arr) {
776
+ if (data_arr.length) {
777
+ if (data_arr[key].length > 1) {
778
+ key = data_arr[key].slice(-1)[0];
779
+ } else {
780
+ key = data_arr[key][0];
781
+ }
782
+ }
783
+ }
784
+
785
+ // Meta Robots
786
+ meta_robots = meta_robots.toString();
787
+
788
+ e("#sp-advanced-alert").empty();
789
+
790
+ var if_noindex = new RegExp("noindex");
791
+
792
+ if (if_noindex.test(meta_robots)) {
793
+ e("#sp-advanced-alert").append(
794
+ '<span class="impact high" aria-hidden="true"></span>'
795
+ );
796
+ }
797
+
798
+ // Google Preview
799
+ e("#seopress_cpt .google-snippet-preview .snippet-title").html(
800
+ s.data.title
801
+ ),
802
+ e(
803
+ "#seopress_cpt .google-snippet-preview .snippet-title-default"
804
+ ).html(s.data.title),
805
+ e("#seopress_titles_title_meta").attr(
806
+ "placeholder",
807
+ s.data.title
808
+ ),
809
+ e(
810
+ "#seopress_cpt .google-snippet-preview .snippet-description"
811
+ ).html(s.data.meta_desc),
812
+ e(
813
+ "#seopress_cpt .google-snippet-preview .snippet-description-default"
814
+ ).html(s.data.meta_desc),
815
+ e("#seopress_titles_desc_meta").attr(
816
+ "placeholder",
817
+ s.data.meta_desc
818
+ );
819
+
820
+ // Facebook Preview
821
+ if (data_arr.og_title) {
822
+ e("#seopress_cpt #seopress_social_fb_title_meta").attr(
823
+ "placeholder",
824
+ data_arr.og_title[0]
825
+ ),
826
+ e(
827
+ "#seopress_cpt .facebook-snippet-preview .snippet-fb-title"
828
+ ).html(data_arr.og_title[0]),
829
+ e(
830
+ "#seopress_cpt .facebook-snippet-preview .snippet-fb-title-default"
831
+ ).html(data_arr.og_title[0]);
832
+ }
833
+
834
+ if (data_arr.og_desc) {
835
+ e("#seopress_cpt #seopress_social_fb_desc_meta").attr(
836
+ "placeholder",
837
+ data_arr.og_desc[0]
838
+ ),
839
+ e(
840
+ "#seopress_cpt .facebook-snippet-preview .snippet-fb-description"
841
+ ).html(data_arr.og_desc[0]),
842
+ e(
843
+ "#seopress_cpt .facebook-snippet-preview .snippet-fb-description-default"
844
+ ).html(data_arr.og_desc[0]);
845
+ }
846
+
847
+ if (data_arr.og_img) {
848
+ e("#seopress_cpt #seopress_social_fb_img_meta").attr(
849
+ "placeholder",
850
+ data_arr.og_img[0]
851
+ ),
852
+ e(
853
+ "#seopress_cpt .facebook-snippet-preview .snippet-fb-img img"
854
+ ).attr("src", data_arr.og_img[0]),
855
+ e(
856
+ "#seopress_cpt .facebook-snippet-preview .snippet-fb-img-default img"
857
+ ).attr("src", data_arr.og_img[0]);
858
+ }
859
+
860
+ e(
861
+ "#seopress_cpt .facebook-snippet-preview .snippet-fb-url"
862
+ ).html(data_arr.og_url),
863
+ e(
864
+ "#seopress_cpt .facebook-snippet-preview .snippet-fb-site-name"
865
+ ).html(data_arr.og_site_name);
866
+
867
+ // Twitter Preview
868
+ if (data_arr.tw_title) {
869
+ e("#seopress_cpt #seopress_social_twitter_title_meta").attr(
870
+ "placeholder",
871
+ data_arr.tw_title[0]
872
+ ),
873
+ e(
874
+ "#seopress_cpt .twitter-snippet-preview .snippet-twitter-title"
875
+ ).html(data_arr.tw_title[0]),
876
+ e(
877
+ "#seopress_cpt .twitter-snippet-preview .snippet-twitter-title-default"
878
+ ).html(data_arr.tw_title[0]);
879
+ }
880
+
881
+ if (data_arr.tw_desc) {
882
+ e("#seopress_cpt #seopress_social_twitter_desc_meta").attr(
883
+ "placeholder",
884
+ data_arr.tw_desc[0]
885
+ ),
886
+ e(
887
+ "#seopress_cpt .twitter-snippet-preview .snippet-twitter-description"
888
+ ).html(data_arr.tw_desc[0]),
889
+ e(
890
+ "#seopress_cpt .twitter-snippet-preview .snippet-twitter-description-default"
891
+ ).html(data_arr.tw_desc[0]);
892
+ }
893
+
894
+ if (data_arr.tw_img) {
895
+ e("#seopress_cpt #seopress_social_twitter_img_meta").attr(
896
+ "placeholder",
897
+ data_arr.tw_img[0]
898
+ ),
899
+ e(
900
+ "#seopress_cpt .twitter-snippet-preview .snippet-twitter-img img"
901
+ ).attr("src", data_arr.tw_img[0]),
902
+ e(
903
+ "#seopress_cpt .twitter-snippet-preview .snippet-twitter-img-default img"
904
+ ).attr("src", data_arr.tw_img[0]);
905
+ }
906
+
907
+ e(
908
+ "#seopress_cpt .twitter-snippet-preview .snippet-twitter-url"
909
+ ).html(data_arr.og_url),
910
+ e("#seopress_cpt #seopress_robots_canonical_meta").attr(
911
+ "placeholder",
912
+ s.data.canonical
913
+ ),
914
+ e("#seopress-analysis-tabs").load(
915
+ " #seopress-analysis-tabs-1",
916
+ "",
917
+ sp_ca_toggle
918
+ ),
919
+ e(".analysis-score p").removeClass("loading"),
920
+ e(" #seopress_titles_title_counters_val").remove(),
921
+ e(" #seopress_titles_desc_counters_val").remove(),
922
+ sp_titles_counters(),
923
+ sp_meta_desc_counters(),
924
+ sp_social();
925
+ },
926
+ });
927
+ }
928
+ s(),
929
+ e("#seopress_launch_analysis").on("click", function () {
930
+ s();
931
+ }),
932
+ sp_ca_toggle();
933
+ });
assets/js/seopress-counters.min.js CHANGED
@@ -1 +1 @@
1
- function sp_titles_counters(){var meta_title_val=jQuery("#seopress_titles_title_meta").val(),meta_title_placeholder=jQuery("#seopress_titles_title_meta").attr("placeholder");if(jQuery("#seopress_titles_title_counters").after('<div id="seopress_titles_title_counters_val">/ 60</div>'),meta_title_val.length>0?(jQuery("#seopress_titles_title_counters").text(meta_title_val.length),jQuery("#seopress_titles_title_pixel").text(pixelTitle(meta_title_val))):meta_title_placeholder.length&&(jQuery("#seopress_titles_title_counters").text(meta_title_placeholder.length),jQuery("#seopress_titles_title_pixel").text(pixelTitle(meta_title_placeholder))),meta_title_val.length>60?jQuery("#seopress_titles_title_counters").css("color","red"):meta_title_placeholder.length>60&&jQuery("#seopress_titles_title_counters").css("color","red"),pixelTitle(meta_title_val)>568?jQuery("#seopress_titles_title_pixel").css("color","red"):pixelTitle(meta_title_placeholder)>568&&jQuery("#seopress_titles_title_pixel").css("color","red"),meta_title_val.length)var progress=Math.round(pixelTitle(meta_title_val)/568*100);else var progress=Math.round(pixelTitle(meta_title_placeholder)/568*100);progress>=100&&(progress=100),jQuery("#seopress_titles_title_counters_progress").attr("aria-valuenow",progress),jQuery("#seopress_titles_title_counters_progress").text(progress+"%"),jQuery("#seopress_titles_title_counters_progress").css("width",progress+"%"),jQuery("#seopress_titles_title_meta, #seopress-tag-single-title, #seopress-tag-single-site-title, #seopress-tag-single-sep").on("keyup paste change click",(function(e){var meta_title_val=jQuery("#seopress_titles_title_meta").val(),meta_title_placeholder=jQuery("#seopress_titles_title_meta").attr("placeholder");if(jQuery("#seopress_titles_title_counters").css("color","inherit"),jQuery("#seopress_titles_title_pixel").css("color","inherit"),meta_title_val.length>60&&jQuery("#seopress_titles_title_counters").css("color","red"),pixelTitle(meta_title_val)>568&&jQuery("#seopress_titles_title_pixel").css("color","red"),0==meta_title_val.length&&(meta_title_placeholder.length>60&&jQuery("#seopress_titles_title_counters").css("color","red"),pixelTitle(meta_title_placeholder)>568&&jQuery("#seopress_titles_title_pixel").css("color","red")),meta_title_val.length>0?(jQuery("#seopress_titles_title_counters").text(meta_title_val.length),jQuery("#seopress_titles_title_pixel").text(pixelTitle(meta_title_val))):meta_title_placeholder.length&&(jQuery("#seopress_titles_title_counters").text(meta_title_placeholder.length),jQuery("#seopress_titles_title_pixel").text(pixelTitle(meta_title_placeholder))),meta_title_val.length>0?(jQuery(".snippet-title-custom").text(e.target.value),jQuery(".snippet-title").css("display","none"),jQuery(".snippet-title-custom").css("display","block"),jQuery(".snippet-title-default").css("display","none")):0==meta_title_val.length&&(jQuery(".snippet-title-default").css("display","block"),jQuery(".snippet-title-custom").css("display","none"),jQuery(".snippet-title").css("display","none")),meta_title_val.length)var progress=Math.round(pixelTitle(meta_title_val)/568*100);else var progress=Math.round(pixelTitle(meta_title_placeholder)/568*100);progress>=100&&(progress=100),jQuery("#seopress_titles_title_counters_progress").attr("aria-valuenow",progress),jQuery("#seopress_titles_title_counters_progress").text(progress+"%"),jQuery("#seopress_titles_title_counters_progress").css("width",progress+"%")}))}function sp_meta_desc_counters(){var meta_desc_val=jQuery("#seopress_titles_desc_meta").val(),meta_desc_placeholder=jQuery("#seopress_titles_desc_meta").attr("placeholder");if(jQuery("#seopress_titles_desc_counters").after('<div id="seopress_titles_desc_counters_val">/ 160</div>'),meta_desc_val.length>0?(jQuery("#seopress_titles_desc_counters").text(meta_desc_val.length),jQuery("#seopress_titles_desc_pixel").text(pixelDesc(meta_desc_val))):meta_desc_placeholder.length&&(jQuery("#seopress_titles_desc_counters").text(meta_desc_placeholder.length),jQuery("#seopress_titles_desc_pixel").text(pixelDesc(meta_desc_placeholder))),meta_desc_val.length>160?jQuery("#seopress_titles_desc_counters").css("color","red"):meta_desc_placeholder.length>160&&jQuery("#seopress_titles_desc_counters").css("color","red"),pixelDesc(meta_desc_val)>940?jQuery("#seopress_titles_desc_pixel").css("color","red"):pixelDesc(meta_desc_placeholder)>940&&jQuery("#seopress_titles_desc_pixel").css("color","red"),meta_desc_val.length)var progress=Math.round(pixelDesc(meta_desc_val)/940*100);else var progress=Math.round(pixelDesc(meta_desc_placeholder)/940*100);progress>=100&&(progress=100),jQuery("#seopress_titles_desc_counters_progress").attr("aria-valuenow",progress),jQuery("#seopress_titles_desc_counters_progress").text(progress+"%"),jQuery("#seopress_titles_desc_counters_progress").css("width",progress+"%"),jQuery("#seopress_titles_desc_meta, #seopress-tag-single-excerpt").on("keyup paste change click",(function(e){var meta_desc_val=jQuery("#seopress_titles_desc_meta").val(),meta_desc_placeholder=jQuery("#seopress_titles_desc_meta").attr("placeholder");if(jQuery("#seopress_titles_desc_counters").css("color","inherit"),jQuery("#seopress_titles_desc_pixel").css("color","inherit"),meta_desc_val.length>160&&jQuery("#seopress_titles_desc_counters").css("color","red"),pixelDesc(meta_desc_val)>940&&jQuery("#seopress_titles_desc_pixel").css("color","red"),0==meta_desc_val.length&&(meta_desc_placeholder.length>160&&jQuery("#seopress_titles_desc_counters").css("color","red"),pixelDesc(meta_desc_placeholder)>940&&jQuery("#seopress_titles_desc_pixel").css("color","red")),meta_desc_val.length>0?(jQuery("#seopress_titles_desc_counters").text(meta_desc_val.length),jQuery("#seopress_titles_desc_pixel").text(pixelDesc(meta_desc_val))):meta_desc_placeholder.length&&(jQuery("#seopress_titles_desc_counters").text(meta_desc_placeholder.length),jQuery("#seopress_titles_desc_pixel").text(pixelDesc(meta_desc_placeholder))),meta_desc_val.length>0?(jQuery(".snippet-description-custom").text(e.target.value),jQuery(".snippet-description").css("display","none"),jQuery(".snippet-description-custom").css("display","inline"),jQuery(".snippet-description-default").css("display","none")):0==meta_desc_val.length&&(jQuery(".snippet-description-default").css("display","inline"),jQuery(".snippet-description-custom").css("display","none"),jQuery(".snippet-description").css("display","none")),meta_desc_val.length)var progress=Math.round(pixelDesc(meta_desc_val)/940*100);else var progress=Math.round(pixelDesc(meta_desc_placeholder)/940*100);progress>=100&&(progress=100),jQuery("#seopress_titles_desc_counters_progress").attr("aria-valuenow",progress),jQuery("#seopress_titles_desc_counters_progress").text(progress+"%"),jQuery("#seopress_titles_desc_counters_progress").css("width",progress+"%")})),jQuery("#excerpt, .editor-post-excerpt textarea").keyup((function(e){var meta_desc_val=jQuery("#seopress_titles_desc_meta").val(),meta_desc_placeholder=jQuery("#seopress_titles_desc_meta").attr("placeholder");if(0==meta_desc_val.length&&0==jQuery(".snippet-description-custom").val().length&&(jQuery(".snippet-description-custom").text(e.target.value),jQuery(".snippet-description").css("display","none"),jQuery(".snippet-description-custom").css("display","inline"),jQuery(".snippet-description-default").css("display","none")),meta_desc_val.length)var progress=meta_desc_val.length;else var progress=meta_desc_placeholder.length;progress>=100&&(progress=100),jQuery("#seopress_titles_desc_counters_progress").attr("aria-valuenow",progress),jQuery("#seopress_titles_desc_counters_progress").text(progress+"%"),jQuery("#seopress_titles_desc_counters_progress").css("width",progress+"%")}))}function pixelTitle(e){return inputText=e,font="18px Arial",canvas=document.createElement("canvas"),context=canvas.getContext("2d"),context.font=font,width=context.measureText(inputText).width,formattedWidth=Math.ceil(width),formattedWidth}function pixelDesc(e){return inputText=e,font="14px Arial",canvas=document.createElement("canvas"),context=canvas.getContext("2d"),context.font=font,width=context.measureText(inputText).width,formattedWidth=Math.ceil(width),formattedWidth}function sp_is_valid_url(string){var res;return null!==string.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g)}function sp_social_img(social_slug){var meta_img_val;if(jQuery(".snippet-"+social_slug+"-img-alert").css("display","none"),""==(meta_img_val=jQuery("#seopress_social_"+social_slug+"_img_meta").val()))var meta_img_val=jQuery("#seopress_social_"+social_slug+"_img_meta").attr("placeholder");!0===sp_is_valid_url(meta_img_val)?(meta_img_val.length>0?(jQuery(".snippet-"+social_slug+"-img-custom img").attr("src",meta_img_val),jQuery(".snippet-"+social_slug+"-img").css("display","none"),jQuery(".snippet-"+social_slug+"-img-custom").css("display","block"),jQuery(".snippet-"+social_slug+"-img-default").css("display","none")):0==meta_img_val.length&&(jQuery(".snippet-"+social_slug+"-img-default").css("display","block"),jQuery(".snippet-"+social_slug+"-img-custom").css("display","none"),jQuery(".snippet-"+social_slug+"-img").css("display","none")),meta_img_val.length>0&&jQuery.get(meta_img_val).done((function(){var meta_img_filetype=meta_img_val.split(/\#|\?/)[0].split(".").pop().trim(),types;if(-1==["jpg","jpeg","gif","png"].indexOf(meta_img_filetype))jQuery(".snippet-"+social_slug+"-img-alert.alert1").css("display","block");else{var tmp_img=new Image;tmp_img.src=meta_img_val,jQuery(tmp_img).one("load",(function(){pic_real_width=parseInt(tmp_img.width),pic_real_height=parseInt(tmp_img.height),"fb"==social_slug?(min_width=200,min_height=200):(min_width=144,min_height=144),(pic_real_width<min_width||pic_real_height<min_height)&&jQuery(".snippet-"+social_slug+"-img-alert.alert2").css("display","block"),ratio_img=(pic_real_width/pic_real_height).toFixed(2),jQuery(".snippet-"+social_slug+"-img-alert.alert4").css("display","block"),jQuery(".snippet-"+social_slug+"-img-alert.alert4 span").text(ratio_img)}))}})).fail((function(){jQuery(".snippet-"+social_slug+"-img-alert.alert3").css("display","block")}))):jQuery(".snippet-"+social_slug+"-img-alert.alert5").css("display","block")}function sp_social(){jQuery("#seopress_social_fb_title_meta, #seopress-tag-single-title, #seopress-tag-single-site-title, #seopress-tag-single-sep").on("keyup paste change click",(function(e){var meta_fb_title_val=jQuery("#seopress_social_fb_title_meta").val();meta_fb_title_val.length>0?(jQuery(".snippet-fb-title-custom").text(e.target.value),jQuery(".snippet-fb-title").css("display","none"),jQuery(".snippet-fb-title-custom").css("display","block"),jQuery(".snippet-fb-title-default").css("display","none")):0==meta_fb_title_val.length&&(jQuery(".snippet-fb-title-default").css("display","block"),jQuery(".snippet-fb-title-custom").css("display","none"),jQuery(".snippet-fb-title").css("display","none"))})),jQuery("#seopress_social_fb_desc_meta").on("keyup paste change click",(function(e){var meta_fb_desc_val=jQuery("#seopress_social_fb_desc_meta").val();meta_fb_desc_val.length>0?(jQuery(".snippet-fb-description-custom").text(e.target.value),jQuery(".snippet-fb-description").css("display","none"),jQuery(".snippet-fb-description-custom").css("display","block"),jQuery(".snippet-fb-description-default").css("display","none")):0==meta_fb_desc_val.length&&(jQuery(".snippet-fb-description-default").css("display","block"),jQuery(".snippet-fb-description-custom").css("display","none"),jQuery(".snippet-fb-description").css("display","none"))})),sp_social_img("fb"),jQuery("#seopress_social_fb_img_meta").on("keyup paste change click",(function(){sp_social_img("fb")})),jQuery("#seopress_social_twitter_title_meta").on("keyup paste change click",(function(e){var meta_fb_title_val=jQuery("#seopress_social_twitter_title_meta").val();meta_fb_title_val.length>0?(jQuery(".snippet-twitter-title-custom").text(e.target.value),jQuery(".snippet-twitter-title").css("display","none"),jQuery(".snippet-twitter-title-custom").css("display","block"),jQuery(".snippet-twitter-title-default").css("display","none")):0==meta_fb_title_val.length&&(jQuery(".snippet-twitter-title-default").css("display","block"),jQuery(".snippet-twitter-title-custom").css("display","none"),jQuery(".snippet-twitter-title").css("display","none"))})),jQuery("#seopress_social_twitter_desc_meta").on("keyup paste change click",(function(e){var meta_fb_desc_val=jQuery("#seopress_social_twitter_desc_meta").val();meta_fb_desc_val.length>0?(jQuery(".snippet-twitter-description-custom").text(e.target.value),jQuery(".snippet-twitter-description").css("display","none"),jQuery(".snippet-twitter-description-custom").css("display","block"),jQuery(".snippet-twitter-description-default").css("display","none")):0==meta_fb_desc_val.length&&(jQuery(".snippet-twitter-description-default").css("display","block"),jQuery(".snippet-twitter-description-custom").css("display","none"),jQuery(".snippet-twitter-description").css("display","none"))})),sp_social_img("twitter"),jQuery("#seopress_social_twitter_img_meta").on("keyup paste change click",(function(){sp_social_img("twitter")}))}function sp_ca_toggle(){var stop=!1;jQuery(".gr-analysis-title .btn-toggle").on("click",(function(e){stop&&(event.stopImmediatePropagation(),event.preventDefault(),stop=!1),jQuery(this).toggleClass("open"),jQuery(this).parent().parent().next(".gr-analysis-content").toggle()})),jQuery("#expand-all").on("click",(function(e){e.preventDefault(),jQuery(".gr-analysis-content").show()})),jQuery("#close-all").on("click",(function(e){e.preventDefault(),jQuery(".gr-analysis-content").hide()}))}var input=document.querySelector("input[id=seopress_analysis_target_kw_meta]"),target_kw=new Tagify(input,{originalInputValueFormat:valuesArr=>valuesArr.map(item=>item.value).join(",")});function seopress_google_suggest(data){var raw_suggestions,suggestions_array=String(data).split(","),i;for(i=0;i<suggestions_array.length;i++)null!=suggestions_array[i]&&null!=suggestions_array[i]&&""!=suggestions_array[i]&&"[object Object]"!=suggestions_array[i]&&(document.getElementById("seopress_suggestions").innerHTML+='<li><a href="#" class="sp-suggest-btn button button-small">'+suggestions_array[i]+"</a></li>");jQuery(".sp-suggest-btn").click((function(e){e.preventDefault(),target_kw.addTags(jQuery(this).text())}))}jQuery(document).ready((function(e){function s(){e.ajax({method:"GET",url:seopressAjaxRealPreview.seopress_real_preview,data:{action:"seopress_do_real_preview",post_id:e("#seopress-tabs").attr("data_id"),tax_name:e("#seopress-tabs").attr("data_tax"),origin:e("#seopress-tabs").attr("data_origin"),post_type:e("#seopress_launch_analysis").attr("data_post_type"),seopress_analysis_target_kw:e("#seopress_analysis_target_kw_meta").val(),_ajax_nonce:seopressAjaxRealPreview.seopress_nonce},beforeSend:function(){e(".analysis-score p span").fadeIn().text(seopressAjaxRealPreview.i18n.progress),e(".analysis-score p").addClass("loading")},success:function(s){void 0===s.data.og_title?og_title="":og_title=s.data.og_title.values,void 0===s.data.og_desc?og_desc="":og_desc=s.data.og_desc.values,void 0===s.data.og_img?og_img="":og_img=s.data.og_img.values,void 0===s.data.og_url?og_url="":og_url=s.data.og_url.host,void 0===s.data.og_site_name?og_site_name="":og_site_name=s.data.og_site_name.values,void 0===s.data.tw_title?tw_title="":tw_title=s.data.tw_title.values,void 0===s.data.tw_desc?tw_desc="":tw_desc=s.data.tw_desc.values,void 0===s.data.tw_img?tw_img="":tw_img=s.data.tw_img.values,void 0===s.data.meta_robots?meta_robots="":meta_robots=s.data.meta_robots[0];var data_arr={og_title:og_title,og_desc:og_desc,og_img:og_img,og_url:og_url,og_site_name:og_site_name,tw_title:tw_title,tw_desc:tw_desc,tw_img:tw_img},if_noindex;for(var key in data_arr)data_arr.length&&(key=data_arr[key].length>1?data_arr[key].slice(-1)[0]:data_arr[key][0]);meta_robots=meta_robots.toString(),e("#sp-advanced-alert").empty(),new RegExp("noindex").test(meta_robots)&&e("#sp-advanced-alert").append('<span class="impact high" aria-hidden="true"></span>'),e("#seopress_cpt .google-snippet-preview .snippet-title").html(s.data.title),e("#seopress_cpt .google-snippet-preview .snippet-title-default").html(s.data.title),e("#seopress_titles_title_meta").attr("placeholder",s.data.title),e("#seopress_cpt .google-snippet-preview .snippet-description").html(s.data.meta_desc),e("#seopress_cpt .google-snippet-preview .snippet-description-default").html(s.data.meta_desc),e("#seopress_titles_desc_meta").attr("placeholder",s.data.meta_desc),data_arr.og_title&&(e("#seopress_cpt #seopress_social_fb_title_meta").attr("placeholder",data_arr.og_title[0]),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-title").html(data_arr.og_title[0]),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-title-default").html(data_arr.og_title[0])),data_arr.og_desc&&(e("#seopress_cpt #seopress_social_fb_desc_meta").attr("placeholder",data_arr.og_desc[0]),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-description").html(data_arr.og_desc[0]),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-description-default").html(data_arr.og_desc[0])),data_arr.og_img&&(e("#seopress_cpt #seopress_social_fb_img_meta").attr("placeholder",data_arr.og_img[0]),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-img img").attr("src",data_arr.og_img[0]),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-img-default img").attr("src",data_arr.og_img[0])),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-url").html(data_arr.og_url),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-site-name").html(data_arr.og_site_name),data_arr.tw_title&&(e("#seopress_cpt #seopress_social_twitter_title_meta").attr("placeholder",data_arr.tw_title[0]),e("#seopress_cpt .twitter-snippet-preview .snippet-twitter-title").html(data_arr.tw_title[0]),e("#seopress_cpt .twitter-snippet-preview .snippet-twitter-title-default").html(data_arr.tw_title[0])),data_arr.tw_desc&&(e("#seopress_cpt #seopress_social_twitter_desc_meta").attr("placeholder",data_arr.tw_desc[0]),e("#seopress_cpt .twitter-snippet-preview .snippet-twitter-description").html(data_arr.tw_desc[0]),e("#seopress_cpt .twitter-snippet-preview .snippet-twitter-description-default").html(data_arr.tw_desc[0])),data_arr.tw_img&&(e("#seopress_cpt #seopress_social_twitter_img_meta").attr("placeholder",data_arr.tw_img[0]),e("#seopress_cpt .twitter-snippet-preview .snippet-twitter-img img").attr("src",data_arr.tw_img[0]),e("#seopress_cpt .twitter-snippet-preview .snippet-twitter-img-default img").attr("src",data_arr.tw_img[0])),e("#seopress_cpt .twitter-snippet-preview .snippet-twitter-url").html(data_arr.og_url),e("#seopress_cpt #seopress_robots_canonical_meta").attr("placeholder",s.data.canonical),e("#seopress-analysis-tabs").load(" #seopress-analysis-tabs-1","",sp_ca_toggle),e(".analysis-score p").removeClass("loading"),e(" #seopress_titles_title_counters_val").remove(),e(" #seopress_titles_desc_counters_val").remove(),sp_titles_counters(),sp_meta_desc_counters(),sp_social()}})}"1"==jQuery("#toggle-preview").attr("data-toggle")?jQuery("#seopress_cpt .google-snippet-preview").addClass("mobile-preview"):jQuery("#seopress_cpt .google-snippet-preview").removeClass("mobile-preview"),jQuery("#toggle-preview").on("click",(function(){jQuery("#toggle-preview").attr("data-toggle","1"==jQuery("#toggle-preview").attr("data-toggle")?"0":"1"),jQuery("#seopress_cpt .google-snippet-preview").toggleClass("mobile-preview")})),s(),e("#seopress_launch_analysis").on("click",(function(){s()})),sp_ca_toggle()}));
1
+ function sp_titles_counters(){const e=jQuery;let t=e("#seopress_titles_title_meta");e(".snippet-title-custom:visible").length>0?t=e(".snippet-title-custom"):e(".snippet-title:visible").length>0?t=e(".snippet-title"):e(".snippet-title-default:visible").length>0&&(t=e(".snippet-title-default"));var s=t.val(),i=jQuery("#seopress_titles_title_meta").attr("placeholder");if(jQuery("#seopress_titles_title_counters").after('<div id="seopress_titles_title_counters_val">/ 60</div>'),s.length>0?(jQuery("#seopress_titles_title_counters").text(s.length),jQuery("#seopress_titles_title_pixel").text(pixelTitle(s))):i.length&&(jQuery("#seopress_titles_title_counters").text(i.length),jQuery("#seopress_titles_title_pixel").text(pixelTitle(i))),s.length>60?jQuery("#seopress_titles_title_counters").css("color","red"):i.length>60&&jQuery("#seopress_titles_title_counters").css("color","red"),pixelTitle(s)>568?jQuery("#seopress_titles_title_pixel").css("color","red"):pixelTitle(i)>568&&jQuery("#seopress_titles_title_pixel").css("color","red"),s.length)var r=Math.round(pixelTitle(s)/568*100);else r=Math.round(pixelTitle(i)/568*100);r>=100&&(r=100),jQuery("#seopress_titles_title_counters_progress").attr("aria-valuenow",r),jQuery("#seopress_titles_title_counters_progress").text(r+"%"),jQuery("#seopress_titles_title_counters_progress").css("width",r+"%"),jQuery("#seopress_titles_title_meta, #seopress-tag-single-title, #seopress-tag-single-site-title, #seopress-tag-single-sep").on("keyup paste change click",function(t){var s=e("#seopress_titles_title_meta").val();e(".snippet-title-custom:visible").length>0?s=e(".snippet-title-custom").text():e(".snippet-title:visible").length>0?s=e(".snippet-title").text():e(".snippet-title-default:visible").length>0&&(s=e(".snippet-title-default").text());var i=jQuery("#seopress_titles_title_meta").attr("placeholder");if(jQuery("#seopress_titles_title_counters").css("color","inherit"),jQuery("#seopress_titles_title_pixel").css("color","inherit"),s.length>60&&jQuery("#seopress_titles_title_counters").css("color","red"),pixelTitle(s)>568&&jQuery("#seopress_titles_title_pixel").css("color","red"),0==s.length&&(i.length>60&&jQuery("#seopress_titles_title_counters").css("color","red"),pixelTitle(i)>568&&jQuery("#seopress_titles_title_pixel").css("color","red")),s.length>0?(jQuery("#seopress_titles_title_counters").text(s.length),jQuery("#seopress_titles_title_pixel").text(pixelTitle(s))):i.length&&(jQuery("#seopress_titles_title_counters").text(i.length),jQuery("#seopress_titles_title_pixel").text(pixelTitle(i))),s.length)var r=Math.round(pixelTitle(s)/568*100);else r=Math.round(pixelTitle(i)/568*100);r>=100&&(r=100),jQuery("#seopress_titles_title_counters_progress").attr("aria-valuenow",r),jQuery("#seopress_titles_title_counters_progress").text(r+"%"),jQuery("#seopress_titles_title_counters_progress").css("width",r+"%")})}function sp_meta_desc_counters(){var e=jQuery("#seopress_titles_desc_meta").val(),t=jQuery("#seopress_titles_desc_meta").attr("placeholder");if(jQuery("#seopress_titles_desc_counters").after('<div id="seopress_titles_desc_counters_val">/ 160</div>'),e.length>0?(jQuery("#seopress_titles_desc_counters").text(e.length),jQuery("#seopress_titles_desc_pixel").text(pixelDesc(e))):t.length&&(jQuery("#seopress_titles_desc_counters").text(t.length),jQuery("#seopress_titles_desc_pixel").text(pixelDesc(t))),e.length>160?jQuery("#seopress_titles_desc_counters").css("color","red"):t.length>160&&jQuery("#seopress_titles_desc_counters").css("color","red"),pixelDesc(e)>940?jQuery("#seopress_titles_desc_pixel").css("color","red"):pixelDesc(t)>940&&jQuery("#seopress_titles_desc_pixel").css("color","red"),e.length)var s=Math.round(pixelDesc(e)/940*100);else s=Math.round(pixelDesc(t)/940*100);s>=100&&(s=100),jQuery("#seopress_titles_desc_counters_progress").attr("aria-valuenow",s),jQuery("#seopress_titles_desc_counters_progress").text(s+"%"),jQuery("#seopress_titles_desc_counters_progress").css("width",s+"%"),jQuery("#seopress_titles_desc_meta, #seopress-tag-single-excerpt").on("keyup paste change click",function(e){var t=jQuery("#seopress_titles_desc_meta").val(),s=jQuery("#seopress_titles_desc_meta").attr("placeholder");if(jQuery("#seopress_titles_desc_counters").css("color","inherit"),jQuery("#seopress_titles_desc_pixel").css("color","inherit"),t.length>160&&jQuery("#seopress_titles_desc_counters").css("color","red"),pixelDesc(t)>940&&jQuery("#seopress_titles_desc_pixel").css("color","red"),0==t.length&&(s.length>160&&jQuery("#seopress_titles_desc_counters").css("color","red"),pixelDesc(s)>940&&jQuery("#seopress_titles_desc_pixel").css("color","red")),t.length>0?(jQuery("#seopress_titles_desc_counters").text(t.length),jQuery("#seopress_titles_desc_pixel").text(pixelDesc(t))):s.length&&(jQuery("#seopress_titles_desc_counters").text(s.length),jQuery("#seopress_titles_desc_pixel").text(pixelDesc(s))),t.length>0?(jQuery(".snippet-description-custom").text(e.target.value),jQuery(".snippet-description").css("display","none"),jQuery(".snippet-description-custom").css("display","inline"),jQuery(".snippet-description-default").css("display","none")):0==t.length&&(jQuery(".snippet-description-default").css("display","inline"),jQuery(".snippet-description-custom").css("display","none"),jQuery(".snippet-description").css("display","none")),t.length)var i=Math.round(pixelDesc(t)/940*100);else i=Math.round(pixelDesc(s)/940*100);i>=100&&(i=100),jQuery("#seopress_titles_desc_counters_progress").attr("aria-valuenow",i),jQuery("#seopress_titles_desc_counters_progress").text(i+"%"),jQuery("#seopress_titles_desc_counters_progress").css("width",i+"%")}),jQuery("#excerpt, .editor-post-excerpt textarea").keyup(function(e){var t=jQuery("#seopress_titles_desc_meta").val(),s=jQuery("#seopress_titles_desc_meta").attr("placeholder");if(0==t.length&&0==jQuery(".snippet-description-custom").val().length&&(jQuery(".snippet-description-custom").text(e.target.value),jQuery(".snippet-description").css("display","none"),jQuery(".snippet-description-custom").css("display","inline"),jQuery(".snippet-description-default").css("display","none")),t.length)var i=t.length;else i=s.length;i>=100&&(i=100),jQuery("#seopress_titles_desc_counters_progress").attr("aria-valuenow",i),jQuery("#seopress_titles_desc_counters_progress").text(i+"%"),jQuery("#seopress_titles_desc_counters_progress").css("width",i+"%")})}function pixelTitle(e){return inputText=e,font="18px Arial",canvas=document.createElement("canvas"),context=canvas.getContext("2d"),context.font=font,width=context.measureText(inputText).width,formattedWidth=Math.ceil(width),formattedWidth}function pixelDesc(e){return inputText=e,font="14px Arial",canvas=document.createElement("canvas"),context=canvas.getContext("2d"),context.font=font,width=context.measureText(inputText).width,formattedWidth=Math.ceil(width),formattedWidth}function sp_is_valid_url(e){var t=e.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g);return null!==t}function sp_social_img(e){jQuery(".snippet-"+e+"-img-alert").css("display","none");var t=jQuery("#seopress_social_"+e+"_img_meta").val();if(""==t)t=jQuery("#seopress_social_"+e+"_img_meta").attr("placeholder");!0===sp_is_valid_url(t)?(t.length>0?(jQuery(".snippet-"+e+"-img-custom img").attr("src",t),jQuery(".snippet-"+e+"-img").css("display","none"),jQuery(".snippet-"+e+"-img-custom").css("display","block"),jQuery(".snippet-"+e+"-img-default").css("display","none")):0==t.length&&(jQuery(".snippet-"+e+"-img-default").css("display","block"),jQuery(".snippet-"+e+"-img-custom").css("display","none"),jQuery(".snippet-"+e+"-img").css("display","none")),t.length>0&&jQuery.get(t).done(function(){var s=t.split(/\#|\?/)[0].split(".").pop().trim(),i=["jpg","jpeg","gif","png"];if(-1==i.indexOf(s))jQuery(".snippet-"+e+"-img-alert.alert1").css("display","block");else{var r=new Image;r.src=t,jQuery(r).one("load",function(){pic_real_width=parseInt(r.width),pic_real_height=parseInt(r.height),"fb"==e?(min_width=200,min_height=200):(min_width=144,min_height=144),(pic_real_width<min_width||pic_real_height<min_height)&&jQuery(".snippet-"+e+"-img-alert.alert2").css("display","block"),ratio_img=(pic_real_width/pic_real_height).toFixed(2),jQuery(".snippet-"+e+"-img-alert.alert4").css("display","block"),jQuery(".snippet-"+e+"-img-alert.alert4 span").text(ratio_img)})}}).fail(function(){jQuery(".snippet-"+e+"-img-alert.alert3").css("display","block")})):jQuery(".snippet-"+e+"-img-alert.alert5").css("display","block")}function sp_social(){jQuery("#seopress_social_fb_title_meta, #seopress-tag-single-title, #seopress-tag-single-site-title, #seopress-tag-single-sep").on("keyup paste change click",function(e){var t=jQuery("#seopress_social_fb_title_meta").val();t.length>0?(jQuery(".snippet-fb-title-custom").text(e.target.value),jQuery(".snippet-fb-title").css("display","none"),jQuery(".snippet-fb-title-custom").css("display","block"),jQuery(".snippet-fb-title-default").css("display","none")):0==t.length&&(jQuery(".snippet-fb-title-default").css("display","block"),jQuery(".snippet-fb-title-custom").css("display","none"),jQuery(".snippet-fb-title").css("display","none"))}),jQuery("#seopress_social_fb_desc_meta").on("keyup paste change click",function(e){var t=jQuery("#seopress_social_fb_desc_meta").val();t.length>0?(jQuery(".snippet-fb-description-custom").text(e.target.value),jQuery(".snippet-fb-description").css("display","none"),jQuery(".snippet-fb-description-custom").css("display","block"),jQuery(".snippet-fb-description-default").css("display","none")):0==t.length&&(jQuery(".snippet-fb-description-default").css("display","block"),jQuery(".snippet-fb-description-custom").css("display","none"),jQuery(".snippet-fb-description").css("display","none"))}),sp_social_img("fb"),jQuery("#seopress_social_fb_img_meta").on("keyup paste change click",function(){sp_social_img("fb")}),jQuery("#seopress_social_twitter_title_meta").on("keyup paste change click",function(e){var t=jQuery("#seopress_social_twitter_title_meta").val();t.length>0?(jQuery(".snippet-twitter-title-custom").text(e.target.value),jQuery(".snippet-twitter-title").css("display","none"),jQuery(".snippet-twitter-title-custom").css("display","block"),jQuery(".snippet-twitter-title-default").css("display","none")):0==t.length&&(jQuery(".snippet-twitter-title-default").css("display","block"),jQuery(".snippet-twitter-title-custom").css("display","none"),jQuery(".snippet-twitter-title").css("display","none"))}),jQuery("#seopress_social_twitter_desc_meta").on("keyup paste change click",function(e){var t=jQuery("#seopress_social_twitter_desc_meta").val();t.length>0?(jQuery(".snippet-twitter-description-custom").text(e.target.value),jQuery(".snippet-twitter-description").css("display","none"),jQuery(".snippet-twitter-description-custom").css("display","block"),jQuery(".snippet-twitter-description-default").css("display","none")):0==t.length&&(jQuery(".snippet-twitter-description-default").css("display","block"),jQuery(".snippet-twitter-description-custom").css("display","none"),jQuery(".snippet-twitter-description").css("display","none"))}),sp_social_img("twitter"),jQuery("#seopress_social_twitter_img_meta").on("keyup paste change click",function(){sp_social_img("twitter")})}function sp_ca_toggle(){var e=!1;jQuery(".gr-analysis-title .btn-toggle").on("click",function(t){e&&(event.stopImmediatePropagation(),event.preventDefault(),e=!1),jQuery(this).toggleClass("open"),jQuery(this).parent().parent().next(".gr-analysis-content").toggle()}),jQuery("#expand-all").on("click",function(e){e.preventDefault(),jQuery(".gr-analysis-content").show()}),jQuery("#close-all").on("click",function(e){e.preventDefault(),jQuery(".gr-analysis-content").hide()})}function seopress_google_suggest(e){var t,s=String(e),i=s.split(",");for(t=0;t<i.length;t++)null!=i[t]&&null!=i[t]&&""!=i[t]&&"[object Object]"!=i[t]&&(document.getElementById("seopress_suggestions").innerHTML+='<li><a href="#" class="sp-suggest-btn button button-small">'+i[t]+"</a></li>");jQuery(".sp-suggest-btn").click(function(e){e.preventDefault(),target_kw.addTags(jQuery(this).text())})}var input=document.querySelector("input[id=seopress_analysis_target_kw_meta]"),target_kw=new Tagify(input,{originalInputValueFormat:e=>e.map(e=>e.value).join(",")});jQuery(document).ready(function(e){function t(){e.ajax({method:"GET",url:seopressAjaxRealPreview.seopress_real_preview,data:{action:"seopress_do_real_preview",post_id:e("#seopress-tabs").attr("data_id"),tax_name:e("#seopress-tabs").attr("data_tax"),origin:e("#seopress-tabs").attr("data_origin"),post_type:e("#seopress_launch_analysis").attr("data_post_type"),seopress_analysis_target_kw:e("#seopress_analysis_target_kw_meta").val(),_ajax_nonce:seopressAjaxRealPreview.seopress_nonce},beforeSend:function(){e(".analysis-score p span").fadeIn().text(seopressAjaxRealPreview.i18n.progress),e(".analysis-score p").addClass("loading")},success:function(t){void 0===t.data.og_title?og_title="":og_title=t.data.og_title.values,void 0===t.data.og_desc?og_desc="":og_desc=t.data.og_desc.values,void 0===t.data.og_img?og_img="":og_img=t.data.og_img.values,void 0===t.data.og_url?og_url="":og_url=t.data.og_url.host,void 0===t.data.og_site_name?og_site_name="":og_site_name=t.data.og_site_name.values,void 0===t.data.tw_title?tw_title="":tw_title=t.data.tw_title.values,void 0===t.data.tw_desc?tw_desc="":tw_desc=t.data.tw_desc.values,void 0===t.data.tw_img?tw_img="":tw_img=t.data.tw_img.values,void 0===t.data.meta_robots?meta_robots="":meta_robots=t.data.meta_robots[0];var s={og_title:og_title,og_desc:og_desc,og_img:og_img,og_url:og_url,og_site_name:og_site_name,tw_title:tw_title,tw_desc:tw_desc,tw_img:tw_img};for(var i in s)s.length&&(i=s[i].length>1?s[i].slice(-1)[0]:s[i][0]);meta_robots=meta_robots.toString(),e("#sp-advanced-alert").empty();var r=new RegExp("noindex");r.test(meta_robots)&&e("#sp-advanced-alert").append('<span class="impact high" aria-hidden="true"></span>'),e("#seopress_cpt .google-snippet-preview .snippet-title").html(t.data.title),e("#seopress_cpt .google-snippet-preview .snippet-title-default").html(t.data.title),e("#seopress_titles_title_meta").attr("placeholder",t.data.title),e("#seopress_cpt .google-snippet-preview .snippet-description").html(t.data.meta_desc),e("#seopress_cpt .google-snippet-preview .snippet-description-default").html(t.data.meta_desc),e("#seopress_titles_desc_meta").attr("placeholder",t.data.meta_desc),s.og_title&&(e("#seopress_cpt #seopress_social_fb_title_meta").attr("placeholder",s.og_title[0]),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-title").html(s.og_title[0]),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-title-default").html(s.og_title[0])),s.og_desc&&(e("#seopress_cpt #seopress_social_fb_desc_meta").attr("placeholder",s.og_desc[0]),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-description").html(s.og_desc[0]),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-description-default").html(s.og_desc[0])),s.og_img&&(e("#seopress_cpt #seopress_social_fb_img_meta").attr("placeholder",s.og_img[0]),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-img img").attr("src",s.og_img[0]),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-img-default img").attr("src",s.og_img[0])),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-url").html(s.og_url),e("#seopress_cpt .facebook-snippet-preview .snippet-fb-site-name").html(s.og_site_name),s.tw_title&&(e("#seopress_cpt #seopress_social_twitter_title_meta").attr("placeholder",s.tw_title[0]),e("#seopress_cpt .twitter-snippet-preview .snippet-twitter-title").html(s.tw_title[0]),e("#seopress_cpt .twitter-snippet-preview .snippet-twitter-title-default").html(s.tw_title[0])),s.tw_desc&&(e("#seopress_cpt #seopress_social_twitter_desc_meta").attr("placeholder",s.tw_desc[0]),e("#seopress_cpt .twitter-snippet-preview .snippet-twitter-description").html(s.tw_desc[0]),e("#seopress_cpt .twitter-snippet-preview .snippet-twitter-description-default").html(s.tw_desc[0])),s.tw_img&&(e("#seopress_cpt #seopress_social_twitter_img_meta").attr("placeholder",s.tw_img[0]),e("#seopress_cpt .twitter-snippet-preview .snippet-twitter-img img").attr("src",s.tw_img[0]),e("#seopress_cpt .twitter-snippet-preview .snippet-twitter-img-default img").attr("src",s.tw_img[0])),e("#seopress_cpt .twitter-snippet-preview .snippet-twitter-url").html(s.og_url),e("#seopress_cpt #seopress_robots_canonical_meta").attr("placeholder",t.data.canonical),e("#seopress-analysis-tabs").load(" #seopress-analysis-tabs-1","",sp_ca_toggle),e(".analysis-score p").removeClass("loading"),e(" #seopress_titles_title_counters_val").remove(),e(" #seopress_titles_desc_counters_val").remove(),sp_titles_counters(),sp_meta_desc_counters(),sp_social()}})}"1"==jQuery("#toggle-preview").attr("data-toggle")?jQuery("#seopress_cpt .google-snippet-preview").addClass("mobile-preview"):jQuery("#seopress_cpt .google-snippet-preview").removeClass("mobile-preview"),jQuery("#toggle-preview").on("click",function(){jQuery("#toggle-preview").attr("data-toggle","1"==jQuery("#toggle-preview").attr("data-toggle")?"0":"1"),jQuery("#seopress_cpt .google-snippet-preview").toggleClass("mobile-preview")}),t(),e("#seopress_launch_analysis").on("click",function(){t()}),sp_ca_toggle()});
assets/js/seopress-dashboard.js CHANGED
@@ -1,89 +1,90 @@
1
- jQuery(document).ready(function($) {
2
- //If no notices
3
- if (!$.trim( $("#seopress-notifications-center").html() )) {
4
- $('#seopress-notifications-center').remove();
5
- }
6
- const notices = [
7
- "notice-get-started",
8
- "notice-wizard",
9
- "notice-insights-wizard",
10
- "notice-tagdiv",
11
- "notice-divide-comments",
12
- "notice-review",
13
- "notice-trailingslash",
14
- "notice-posts-number",
15
- "notice-rss-use-excerpt",
16
- "notice-search-console",
17
- "notice-google-business",
18
- "notice-ssl",
19
- "notice-title-tag",
20
- "notice-enfold",
21
- "notice-themes",
22
- "notice-page-builders",
23
- "notice-go-pro",
24
- "notice-noindex"
25
- ]
26
- notices.forEach(function (item) {
27
- $('#'+item).on('click', function() {
28
- $('#'+item).attr('data-notice', $('#'+item).attr('data-notice') == '1' ? '0' : '1');
29
- $.ajax({
30
- method : 'POST',
31
- url : seopressAjaxHideNotices.seopress_hide_notices,
32
- data : {
33
- action: 'seopress_hide_notices',
34
- notice: item,
35
- notice_value: $('#'+item).attr('data-notice'),
36
- _ajax_nonce: seopressAjaxHideNotices.seopress_nonce,
37
- },
38
- success : function( data ) {
39
- $( '#seopress-notice-save' ).css('display', 'block');
40
- $( '#seopress-notice-save .html' ).html('Notice successfully removed');
41
- $( '#'+item+'-alert' ).fadeOut();
42
- $( '#seopress-notice-save' ).delay(3500).fadeOut();
43
- },
44
- });
45
- });
46
- });
 
47
 
48
- const features = [
49
- "titles",
50
- "xml-sitemap",
51
- "social",
52
- "google-analytics",
53
- "advanced",
54
- "local-business",
55
- "woocommerce",
56
- "edd",
57
- "dublin-core",
58
- "rich-snippets",
59
- "breadcrumbs",
60
- "robots",
61
- "news",
62
- "404",
63
- "bot",
64
- "rewrite",
65
- "white-label"
66
- ]
67
- features.forEach(function (item) {
68
- $('#toggle-'+item).on('click', function() {
69
- $('#toggle-'+item).attr('data-toggle', $('#toggle-'+item).attr('data-toggle') == '1' ? '0' : '1');
70
- $.ajax({
71
- method : 'POST',
72
- url : seopressAjaxToggleFeatures.seopress_toggle_features,
73
- data : {
74
- action: 'seopress_toggle_features',
75
- feature: 'toggle-'+item,
76
- feature_value: $('#toggle-'+item).attr('data-toggle'),
77
- _ajax_nonce: seopressAjaxToggleFeatures.seopress_nonce,
78
- },
79
- success : function( data ) {
80
- $( '#seopress-notice-save' ).css('display', 'block');
81
- $( '#seopress-notice-save .html' ).html(item + ' ' + seopressAjaxToggleFeatures.i18n);
82
- $( '#'+item+'-state' ).toggleClass('feature-state-on');
83
- $( '#'+item+'-state-default' ).toggleClass('feature-state-off');
84
- $( '#seopress-notice-save' ).delay(3500).fadeOut();
85
- },
86
- });
87
- });
88
- });
89
- });
1
+ jQuery(document).ready(function ($) {
2
+ //If no notices
3
+ if (!$.trim($("#seopress-notifications-center").html())) {
4
+ $('#seopress-notifications-center').remove();
5
+ }
6
+ const notices = [
7
+ "notice-get-started",
8
+ "notice-wizard",
9
+ "notice-insights-wizard",
10
+ "notice-tagdiv",
11
+ "notice-divide-comments",
12
+ "notice-review",
13
+ "notice-trailingslash",
14
+ "notice-posts-number",
15
+ "notice-rss-use-excerpt",
16
+ "notice-ga-ids",
17
+ "notice-search-console",
18
+ "notice-google-business",
19
+ "notice-ssl",
20
+ "notice-title-tag",
21
+ "notice-enfold",
22
+ "notice-themes",
23
+ "notice-page-builders",
24
+ "notice-go-pro",
25
+ "notice-noindex"
26
+ ]
27
+ notices.forEach(function (item) {
28
+ $('#' + item).on('click', function () {
29
+ $('#' + item).attr('data-notice', $('#' + item).attr('data-notice') == '1' ? '0' : '1');
30
+ $.ajax({
31
+ method: 'POST',
32
+ url: seopressAjaxHideNotices.seopress_hide_notices,
33
+ data: {
34
+ action: 'seopress_hide_notices',
35
+ notice: item,
36
+ notice_value: $('#' + item).attr('data-notice'),
37
+ _ajax_nonce: seopressAjaxHideNotices.seopress_nonce,
38
+ },
39
+ success: function (data) {
40
+ $('#seopress-notice-save').css('display', 'block');
41
+ $('#seopress-notice-save .html').html('Notice successfully removed');
42
+ $('#' + item + '-alert').fadeOut();
43
+ $('#seopress-notice-save').delay(3500).fadeOut();
44
+ },
45
+ });
46
+ });
47
+ });
48
 
49
+ const features = [
50
+ "titles",
51
+ "xml-sitemap",
52
+ "social",
53
+ "google-analytics",
54
+ "advanced",
55
+ "local-business",
56
+ "woocommerce",
57
+ "edd",
58
+ "dublin-core",
59
+ "rich-snippets",
60
+ "breadcrumbs",
61
+ "robots",
62
+ "news",
63
+ "404",
64
+ "bot",
65
+ "rewrite",
66
+ "white-label"
67
+ ]
68
+ features.forEach(function (item) {
69
+ $('#toggle-' + item).on('click', function () {
70
+ $('#toggle-' + item).attr('data-toggle', $('#toggle-' + item).attr('data-toggle') == '1' ? '0' : '1');
71
+ $.ajax({
72
+ method: 'POST',
73
+ url: seopressAjaxToggleFeatures.seopress_toggle_features,
74
+ data: {
75
+ action: 'seopress_toggle_features',
76
+ feature: 'toggle-' + item,
77
+ feature_value: $('#toggle-' + item).attr('data-toggle'),
78
+ _ajax_nonce: seopressAjaxToggleFeatures.seopress_nonce,
79
+ },
80
+ success: function (data) {
81
+ $('#seopress-notice-save').css('display', 'block');
82
+ $('#seopress-notice-save .html').html(item + ' ' + seopressAjaxToggleFeatures.i18n);
83
+ $('#' + item + '-state').toggleClass('feature-state-on');
84
+ $('#' + item + '-state-default').toggleClass('feature-state-off');
85
+ $('#seopress-notice-save').delay(3500).fadeOut();
86
+ },
87
+ });
88
+ });
89
+ });
90
+ });
assets/js/seopress-dashboard.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready((function($){$.trim($("#seopress-notifications-center").html())||$("#seopress-notifications-center").remove();const notices=["notice-get-started","notice-wizard","notice-insights-wizard","notice-tagdiv","notice-divide-comments","notice-review","notice-trailingslash","notice-posts-number","notice-rss-use-excerpt","notice-search-console","notice-google-business","notice-ssl","notice-title-tag","notice-enfold","notice-themes","notice-page-builders","notice-go-pro","notice-noindex"];notices.forEach((function(item){$("#"+item).on("click",(function(){$("#"+item).attr("data-notice","1"==$("#"+item).attr("data-notice")?"0":"1"),$.ajax({method:"POST",url:seopressAjaxHideNotices.seopress_hide_notices,data:{action:"seopress_hide_notices",notice:item,notice_value:$("#"+item).attr("data-notice"),_ajax_nonce:seopressAjaxHideNotices.seopress_nonce},success:function(data){$("#seopress-notice-save").css("display","block"),$("#seopress-notice-save .html").html("Notice successfully removed"),$("#"+item+"-alert").fadeOut(),$("#seopress-notice-save").delay(3500).fadeOut()}})}))}));const features=["titles","xml-sitemap","social","google-analytics","advanced","local-business","woocommerce","edd","dublin-core","rich-snippets","breadcrumbs","robots","news","404","bot","rewrite","white-label"];features.forEach((function(item){$("#toggle-"+item).on("click",(function(){$("#toggle-"+item).attr("data-toggle","1"==$("#toggle-"+item).attr("data-toggle")?"0":"1"),$.ajax({method:"POST",url:seopressAjaxToggleFeatures.seopress_toggle_features,data:{action:"seopress_toggle_features",feature:"toggle-"+item,feature_value:$("#toggle-"+item).attr("data-toggle"),_ajax_nonce:seopressAjaxToggleFeatures.seopress_nonce},success:function(data){$("#seopress-notice-save").css("display","block"),$("#seopress-notice-save .html").html(item+" "+seopressAjaxToggleFeatures.i18n),$("#"+item+"-state").toggleClass("feature-state-on"),$("#"+item+"-state-default").toggleClass("feature-state-off"),$("#seopress-notice-save").delay(3500).fadeOut()}})}))}))}));
1
+ jQuery(document).ready(function(e){e.trim(e("#seopress-notifications-center").html())||e("#seopress-notifications-center").remove();const t=["notice-get-started","notice-wizard","notice-insights-wizard","notice-tagdiv","notice-divide-comments","notice-review","notice-trailingslash","notice-posts-number","notice-rss-use-excerpt","notice-ga-ids","notice-search-console","notice-google-business","notice-ssl","notice-title-tag","notice-enfold","notice-themes","notice-page-builders","notice-go-pro","notice-noindex"];t.forEach(function(t){e("#"+t).on("click",function(){e("#"+t).attr("data-notice","1"==e("#"+t).attr("data-notice")?"0":"1"),e.ajax({method:"POST",url:seopressAjaxHideNotices.seopress_hide_notices,data:{action:"seopress_hide_notices",notice:t,notice_value:e("#"+t).attr("data-notice"),_ajax_nonce:seopressAjaxHideNotices.seopress_nonce},success:function(s){e("#seopress-notice-save").css("display","block"),e("#seopress-notice-save .html").html("Notice successfully removed"),e("#"+t+"-alert").fadeOut(),e("#seopress-notice-save").delay(3500).fadeOut()}})})});const s=["titles","xml-sitemap","social","google-analytics","advanced","local-business","woocommerce","edd","dublin-core","rich-snippets","breadcrumbs","robots","news","404","bot","rewrite","white-label"];s.forEach(function(t){e("#toggle-"+t).on("click",function(){e("#toggle-"+t).attr("data-toggle","1"==e("#toggle-"+t).attr("data-toggle")?"0":"1"),e.ajax({method:"POST",url:seopressAjaxToggleFeatures.seopress_toggle_features,data:{action:"seopress_toggle_features",feature:"toggle-"+t,feature_value:e("#toggle-"+t).attr("data-toggle"),_ajax_nonce:seopressAjaxToggleFeatures.seopress_nonce},success:function(s){e("#seopress-notice-save").css("display","block"),e("#seopress-notice-save .html").html(t+" "+seopressAjaxToggleFeatures.i18n),e("#"+t+"-state").toggleClass("feature-state-on"),e("#"+t+"-state-default").toggleClass("feature-state-off"),e("#seopress-notice-save").delay(3500).fadeOut()}})})})});
assets/js/seopress-media-uploader.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready((function($){var mediaUploader;$(".button.seopress_social_facebook_img_cpt").click((function(e){e.preventDefault();var url_field=$(this).parent().find("input[type=text]");(mediaUploader=wp.media.frames.file_frame=wp.media({multiple:!1})).on("select",(function(){attachment=mediaUploader.state().get("selection").first().toJSON(),$(url_field).val(attachment.url)})),mediaUploader.open()}));const array=["#seopress_social_knowledge_img","#seopress_social_twitter_img","#seopress_social_fb_img"];array.forEach((function(item){var mediaUploader;$(item+"_upload").click((function(e){e.preventDefault(),mediaUploader?mediaUploader.open():((mediaUploader=wp.media.frames.file_frame=wp.media({multiple:!1})).on("select",(function(){attachment=mediaUploader.state().get("selection").first().toJSON(),$(item+"_meta").val(attachment.url),"#seopress_social_fb_img"==item&&"undefined"!=typeof sp_social_img&&sp_social_img("fb"),"#seopress_social_twitter_img"==item&&"undefined"!=typeof sp_social_img&&sp_social_img("twitter")})),mediaUploader.open())}))}))}));
1
+ jQuery(document).ready(function(e){var t;e(".button.seopress_social_facebook_img_cpt").click(function(i){i.preventDefault();var s=e(this).parent().find("input[type=text]");t=wp.media.frames.file_frame=wp.media({multiple:!1}),t.on("select",function(){attachment=t.state().get("selection").first().toJSON(),e(s).val(attachment.url)}),t.open()});const i=["#seopress_social_knowledge_img","#seopress_social_twitter_img","#seopress_social_fb_img"];i.forEach(function(t){var i;e(t+"_upload").click(function(s){s.preventDefault(),i?i.open():(i=wp.media.frames.file_frame=wp.media({multiple:!1}),i.on("select",function(){attachment=i.state().get("selection").first().toJSON(),e(t+"_meta").val(attachment.url),"#seopress_social_fb_img"==t&&"undefined"!=typeof sp_social_img&&sp_social_img("fb"),"#seopress_social_twitter_img"==t&&"undefined"!=typeof sp_social_img&&sp_social_img("twitter")}),i.open())})})});
assets/js/seopress-migrate.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready((function($){$("#selec