SEOPress - Version 3.6.1

Version Description

  • INFO PHP 5.6 is now the minimum requirement
  • INFO Small performance improvements
  • INFO Refactoring some JS files (drastic weight reduction)
  • INFO Support %%title%% dynamic variable (alias of %%post_title%%') in title / meta description
  • INFO Remove query strings for social sharing and image XML sitemaps
  • FIX Canonical placeholder value in SEO metabox for terms taxonomy
  • FIX Undefined variable: html
  • FIX Breadcrumbs shortcode
  • FIX Fatal error SEOPRESS_Language_Packs
  • FIX Notice array to string conversion
  • FIX Saving image fields for automatic schemas
Download this release

Release Info

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

Code changes from version 3.6 to 3.6.1

assets/css/seopress.css CHANGED
@@ -1695,13 +1695,16 @@ body.seopress-styles {
1695
  position: fixed;
1696
  color: #fff;
1697
  padding: 15px 40px;
1698
- font-size: 14px;
 
1699
  text-align: center;
1700
- border-radius: 50px;
1701
- background: rgba(74,184,102,.75);
1702
- top: 50px;
1703
- right: 20px;
1704
  z-index: 500;
 
 
1705
  }
1706
 
1707
  .seopress_page_seopress-pro-page #wpcontent {
1695
  position: fixed;
1696
  color: #fff;
1697
  padding: 15px 40px;
1698
+ font-size: 0.9rem;
1699
+ text-transform: uppercase;
1700
  text-align: center;
1701
+ border-radius: 0;
1702
+ background: rgba(74,184,102,.9);
1703
+ bottom: 0;
1704
+ right: 0;
1705
  z-index: 500;
1706
+ width: 100%;
1707
+ font-weight: bold;
1708
  }
1709
 
1710
  .seopress_page_seopress-pro-page #wpcontent {
assets/css/seopress.min.css CHANGED
@@ -1 +1 @@
1
- #adminmenu div.wp-menu-image.dashicons-admin-seopress::before,#seopress-header #seopress-admin h1::before{content:"\e800";font-family:seopress!important;font-weight:700;font-size:12px;line-height:20px}#seopress-header #seopress-admin h1::before,.seopress-page-list .seopress-feature h3,.seopress-styles .seopress-option h1{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}@font-face{font-family:seopress;src:url(../fonts/seopress.eot?81521271);src:url(../fonts/seopress.eot?81521271#iefix) format('embedded-opentype'),url(../fonts/seopress.woff?81521271) format('woff2'),url(../fonts/seopress.woff?81521271) format('woff'),url(../fonts/seopress.ttf?81521271) format('truetype'),url(../fonts/seopress.svg?81521271#seopress) format('svg');font-weight:400;font-style:normal}[class*=" icon-seopress"],[class^=icon-seopress-]{font-family:seopress!important;font-size:14px!important;line-height:24px!important}.icon-seopress-seopress:before{content:"\e800"}.sp-tooltip{position:relative;margin-left:5px;display:inline-block;cursor:help}.sp-tooltip .dashicons{color:#666}.sp-tooltip .sp-tooltiptext{visibility:hidden;position:absolute;z-index:999999999;color:#fff;font-size:.8em;background:#333;text-align:center;width:240px;right:0;border-radius:3px;padding:.618em 1em;box-shadow:0 1px 3px rgba(0,0,0,.2);top:25px}.sp-tooltip:hover .sp-tooltiptext{visibility:visible}#seopress_content_analysis .wrap-seopress-analysis{display:inline-block;width:100%}#seopress_content_analysis .col-left{width:calc(50% - 30px);float:left;margin-right:30px}#seopress_content_analysis .col-right{float:right;width:50%}#seopress_content_analysis #seopress_suggestions{display:inline-block;width:100%;margin:0;height:auto;padding:20px 0}#seopress_content_analysis #seopress_suggestions li{list-style:square;margin:5px;display:inline-block;background:#f1f1f1;padding:5px}#seopress_launch_analysis{float:left}#seopress_analysis_results_state{background:rgba(74,184,102,.75);color:#fff;padding:5px 25px 5px 20px;border-radius:100px;font-style:italic;position:relative;width:auto;display:inline-block;margin:0 0 0 20px;clear:both}#seopress_content_analysis h3{border-bottom:1px solid #ddd;padding-bottom:10px}#seopress_content_analysis .wrap-analysis-img ul{display:flex;flex-wrap:wrap}#seopress_content_analysis .wrap-analysis-img ul li{padding:0;text-align:left;cursor:default}#seopress_content_analysis .wrap-analysis-img h4{border-bottom:1px solid #ddd;padding-bottom:10px}#seopress_content_analysis .wrap-analysis-img ul li img{max-width:150px;max-height:150px;object-fit:cover;cursor:default}#seopress_cpt .notice{padding:10px 14px}#seopress-analysis-tabs .dashicons,#seopress_cpt .dashicons{vertical-align:middle}#seopress_cpt .inside{margin:0;padding:0}#seopress_content_analysis .ui-tabs .ui-tabs-nav,#seopress_cpt .ui-tabs .ui-tabs-nav{display:inline-block;min-height:26px;position:relative;width:100%;z-index:10;margin:0;border-radius:0;padding:0;background:#f3f4f5;border:none}#seopress_content_analysis .ui-tabs .ui-tabs-nav{width:calc(100% + 24px);margin:0 0 0 -12px;position:-webkit-sticky;position:sticky;top:0}#seopress_content_analysis .ui-tabs .ui-tabs-nav{margin-top:15px}#seopress_content_analysis .ui-helper-clearfix:after,#seopress_cpt .ui-helper-clearfix:after{content:none}.seopress_page_seopress-titles #seopress-tabs .form-table td,.seopress_page_seopress-titles #seopress_content_analysis .form-table td{padding:0}#seopress_content_analysis .ui-tabs .ui-tabs-panel,#seopress_cpt .ui-tabs .ui-tabs-panel{background:#fff;border-radius:0;display:inline-block;padding:1em 1.4em;width:100%;box-sizing:border-box}#seopress_content_analysis .ui-tabs .ui-tabs-panel .dashicons-info,#seopress_cpt .ui-tabs .ui-tabs-panel .dashicons-info,#seopress_pro_cpt .dashicons-info{font-size:16px;vertical-align:middle;height:16px;width:16px}#seopress_content_analysis .ui-tabs .ui-tabs-nav li,#seopress_content_analysis .ui-tabs-anchor,#seopress_cpt .ui-tabs .ui-tabs-nav li,#seopress_cpt .ui-tabs-anchor{cursor:pointer!important}#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-tabs-active,#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-tabs-active{position:relative;z-index:60;cursor:pointer;border-radius:0;border-bottom:3px solid #0085ba}#seopress_content_analysis label,#seopress_cpt #tabs-1 label,#seopress_cpt #tabs-2 label[for=seopress_robots_breadcrumbs_meta],#seopress_cpt #tabs-2 label[for=seopress_robots_canonical_meta],#seopress_cpt #tabs-2 label[for=seopress_robots_primary_cat_meta],#seopress_cpt #tabs-3 label,#seopress_cpt #tabs-4 label,#seopress_cpt #tabs-5 label,#seopress_cpt #tabs-6 label,#seopress_cpt .subsection-title,#seopress_pro_cpt label{display:block;margin:20px 0 5px;font-weight:700}#seopress_cpt .wp-color-result{margin:0}#seopress_content_analysis input[type=text],#seopress_cpt #tabs-1 input,#seopress_cpt #tabs-2 input[type=text],#seopress_cpt #tabs-3 input[type=text],#seopress_cpt #tabs-3 textarea,#seopress_cpt #tabs-4 input[type=text],#seopress_cpt #tabs-5 input[type=text],#seopress_cpt #tabs-6 input[type=text],#seopress_cpt #tabs-6 textarea{width:90%;display:inline-block}#seopress_cpt #tabs-1 input{width:100%}#seopress_cpt #tabs-6 input[type=number]{width:30%;min-width:200px}#seopress_cpt #tabs-6 #wrap-videos .video:first-child .remove-video{display:none}#seopress_cpt select{width:300px}#seopress_cpt #tabs-4 select{width:250px;display:inline}#seopress_cpt #tabs-4 #seopress_redirections_value_meta{width:calc(100% - 258px);float:right}#seopress_cpt #tabs-6{padding:0}#seopress_cpt #tabs-6 #wrap-videos .video .accordion-section-content,#seopress_cpt #tabs-6>p{padding:0 1.4em}#seopress_cpt #tabs-6 #wrap-videos .video .accordion-section-content{padding:0 1.4em 1em}#seopress_cpt #tabs-6 #wrap-videos .video{border-top:1px solid #eee}#seopress_cpt #tabs-6 #wrap-videos .video .accordion-section-title{border-left:none;border-right:none;font-size:1em;padding:1em 1.4em}#seopress_cpt #tabs-6 #wrap-videos .video:last-child .accordion-section-content,#seopress_cpt #tabs-6 #wrap-videos .video:last-child .accordion-section-title{border-bottom:1px solid #eee}#seopress_cpt #tabs-6 #wrap-videos .video .inside{padding:0}#seopress_cpt #tabs-4 #seopress_redirections_enabled,#seopress_cpt #tabs-5 #seopress_news_disabled,#seopress_cpt #tabs-5 #seopress_news_standout,#seopress_cpt #tabs-6 #seopress_video_disabled,#seopress_cpt #tabs-6 .family-friendly label,#seopress_cpt #tabs-6 .internal_video label{font-weight:400}#seopress_cpt #tabs-6 #wrap-videos .video:nth-child(odd){background:#fdfdfd}#seopress_content_analysis .advise,#seopress_cpt .advise,#seopress_pro_cpt .advise,.seopress-option .advise{margin:5px;display:block;color:red;font-style:italic}#seopress_cpt #tabs-6 #wrap-videos .video .advise{color:#555}#seopress_content_analysis .mandatory,#seopress_cpt .mandatory{color:#c00}#seopress_cpt .box-left{float:left;width:49%;margin-right:1%}#seopress_cpt .box-right{float:left;width:49%;margin-left:1%}#seopress_cpt .google-snippet-preview{font-family:arial,sans-serif;word-break:break-all}#seopress_cpt .google-snippet-preview>p{word-break:normal}#seopress_cpt .google-snippet-preview .snippet-title,#seopress_cpt .google-snippet-preview .snippet-title-custom,#seopress_cpt .google-snippet-preview .snippet-title-default{color:#1a0dab;font-size:18px;font-weight:400;line-height:21.6px}#seopress_cpt .google-snippet-preview .snippet-permalink{color:#006621;font-size:14px;font-style:normal;font-weight:400;line-height:16px}#seopress_cpt .google-snippet-preview .snippet-description,#seopress_cpt .google-snippet-preview .snippet-description-custom,#seopress_cpt .google-snippet-preview .snippet-description-default{color:#545454;font-size:13px;font-weight:400;line-height:18.2px;display:inline}#seopress_cpt .google-snippet-preview .snippet-date{color:grey;display:inline}#seopress_cpt .wrap-seopress-counters,#seopress_pro_cpt .wrap-seopress-counters{text-align:right;background:#eee;padding:2px 5px;display:flex;box-shadow:0 1px 1px rgba(0,0,0,.2);font-size:12px;justify-content: flex-end}#seopress_cpt #seopress_titles_desc_counters,#seopress_cpt #seopress_titles_title_counters,#seopress_pro_cpt #seopress_rich_snippets_articles_counters,#seopress_pro_cpt #seopress_rich_snippets_courses_counters{display:inline;margin-right:5px}#seopress_cpt #seopress_titles_desc_counters_val,#seopress_cpt #seopress_titles_title_counters_val,#seopress_pro_cpt #seopress_rich_snippets_articles_counters_val,#seopress_pro_cpt #seopress_rich_snippets_courses_counters_val{display:inline;font-weight:700}#term-seopress #seopress_cpt{width:95%}.fixed .column-seopress_w3c,.fixed .column-seopress_words{width:5%}.fixed .column-seopress_nofollow,.fixed .column-seopress_noindex{width:10%}#seopress_content_analysis .ui-tabs,#seopress_cpt .ui-tabs{position:relative;padding:0;border:none;font-family:inherit;font-size:inherit;display:inline-block;width:100%}#seopress_content_analysis .ui-tabs .ui-tabs-nav li,#seopress_cpt .ui-tabs .ui-tabs-nav li{list-style:none;display:inline-block;position:relative;top:2px;padding:0 5px;white-space:nowrap;margin:0;border:none;background:0 0}#seopress_content_analysis .ui-tabs .ui-tabs-nav li a,#seopress_cpt .ui-tabs .ui-tabs-nav li a{display:inline-block;padding:5px 10px}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-nav li a,#seopress_cpt .ui-tabs-vertical .ui-tabs-nav li a{display:block}#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-tabs-active,#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:2px;padding-bottom:1px}#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-state-disabled a,#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-tabs-active a,#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-tabs-loading a,#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-state-disabled a,#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-tabs-active a,#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-tabs-loading a{color:#191e23;font-weight:700}#seopress_content_analysis .ui-tabs .ui-tabs-nav li a,#seopress_content_analysis .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a,#seopress_cpt .ui-tabs .ui-tabs-nav li a,#seopress_cpt .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a{cursor:pointer;color:#191e23;text-decoration:none;height:40px;line-height:40px}#seopress_cpt .ui-tabs-vertical{width:55em}#seopress_cpt .ui-tabs-vertical .ui-tabs-nav{padding:.2em .1em .2em .2em;float:left;width:12em}#seopress_cpt .ui-tabs-vertical .ui-tabs-nav li{clear:left;width:100%;border-bottom-width:1px!important;border-right-width:0!important;margin:0 -1px .2em 0}#seopress_cpt .ui-tabs-vertical .ui-tabs-nav li.ui-tabs-active{padding-bottom:0;padding-right:.1em;border-right-width:1px}#seopress_cpt .ui-tabs-vertical .ui-tabs-panel{padding:1em;float:right;width:40em}#seopress_content_analysis .ui-tabs .ui-tabs-nav li a .dashicons,#seopress_cpt .ui-tabs .ui-tabs-nav li a .dashicons{margin-right:2px}#tab-panel-seopress_titles_help_tab li span{font-weight:700;margin-right:10px}#seopress_content_analysis .ui-tabs .dashicons-no-alt,#seopress_content_analysis .ui-tabs .dashicons-yes,#seopress_pro_cpt .dashicons-no-alt,#seopress_pro_cpt .dashicons-yes{color:#fff;background:#12bd10;border-radius:50px;margin-right:10px}#seopress_content_analysis .ui-tabs .dashicons-no-alt,#seopress_pro_cpt .dashicons-no-alt{background:#e25950}body.seopress-styles{background:#f8fafd}#seopress-content a{color:#3297d3}#seopress-content a:hover{color:#106598}#seopress-admin-tabs.ui-tabs{position:relative;padding:.2em;border:none;font-family:inherit;font-size:inherit}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:-1px .2em 0 0;padding:0;white-space:nowrap;border:none;background:0 0}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li a{float:left;padding:.38em 1em .75rem;outline:0;border-bottom:2px solid #fff}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-state-disabled a,#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-tabs-active a,#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-tabs-loading a{cursor:text;border-bottom:2px solid #23282d;color:#23282d}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li a,#seopress-admin-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a{cursor:pointer;color:#0073aa;text-decoration:none}#seopress-admin-tabs.ui-tabs-vertical{width:55em}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-nav{padding:.2em .1em .2em .2em;float:left;width:12em}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-nav li{clear:left;width:100%;border-bottom-width:1px!important;border-right-width:0!important;margin:0 -1px .2em 0}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-nav li.ui-tabs-active{padding-bottom:0;padding-right:.1em;border-right-width:1px}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-panel{padding:1em;float:right;width:40em}.seopress-styles .seopress-option{margin:10px auto 0;max-width:90%;padding:1rem;background:#fff;box-shadow:0 15px 35px rgba(50,50,93,.1),0 5px 15px rgba(0,0,0,.1);border-radius:4px}.seopress-styles .seopress-option h1{font-size:16px;font-weight:700;color:#3297d3;text-transform:uppercase;position:-webkit-sticky;position:sticky;top:32px;background:#fff;z-index:100;padding:10px 0}.seopress-styles .seopress-option h1 .dashicons,.seopress-styles .seopress-option h2 .dashicons{margin:0 10px;font-size:40px;width:40px;height:40px;vertical-align:middle}.seopress-styles .seopress-option .link-archive{font-size:14px}.seopress-styles .seopress-option .link-archive .dashicons{font-size:18px;width:20px;height:20px;margin:inherit}.seopress-styles .seopress-option h1>.dashicons{font-size:30px;width:30px;height:30px;background:#c4f0ff;border-radius:50%;padding:10px;box-shadow:0 4px 6px rgba(50,50,93,.1),0 1px 3px rgba(0,0,0,.1);margin-left:20px}.seopress-styles .seopress-option .metabox-holder h2 .dashicons{font-size:16px}.seopress-option h1 .feature-state .dashicons{font-size:16px;width:16px;height:16px;vertical-align:middle;margin:0 10px 0 0}.seopress-styles .wrap{margin:0;position:relative}.seopress-styles .seopress-option .submit{background:#fff;text-align:center;border-top:1px solid #f1f1f1;padding-top:20px;padding-bottom:20px;margin:0}.seopress-styles .seopress-option #seopress-aio-migrate,.seopress-styles .seopress-option #seopress-seo-framework-migrate,.seopress-styles .seopress-option #seopress-yoast-migrate,.seopress-styles .seopress-option #submit{color:#fff;text-decoration:none;border:none;border-radius:4px;padding-right:20px;padding-left:20px;line-height:34px;text-transform:uppercase;min-height:34px;transition:all .3s linear;text-shadow:none;box-shadow:0 7px 14px rgba(50,50,93,.1),0 3px 6px rgba(0,0,0,.1);margin-right:15px;background:RGB(106,124,148);position:relative;height:auto;z-index:10}.seopress-styles .seopress-option #seopress-aio-migrate:hover,.seopress-styles .seopress-option #seopress-seo-framework-migrate:hover,.seopress-styles .seopress-option #seopress-yoast-migrate:hover,.seopress-styles .seopress-option #submit:hover{text-decoration:none;color:#fff;background:#232323}.seopress-styles #wpcontent{padding-left:0;background:#f8fafd}.seopress-styles pre{color:#42b72a;background:#f5f6f7;font-family:Menlo,Monaco,Andale Mono,Courier New,monospace;padding:7px;display:inline-block}.seopress-styles #seopress-navbar{padding:10px .5rem;height:56px;margin:0 auto;width:53rem;box-sizing:border-box;position:relative}#seopress-header{margin:0 auto;position:relative;width:100%}#seopress-header #seopress-admin h1{line-height:40px;margin:0;display:inline-block;height:40px;width:40px;background-size:100%;background-repeat:no-repeat}#seopress-header #seopress-admin h1::before{font-size:14px;line-height:40px;position:absolute;border-radius:6px;font-weight:400;color:#fff;width:40px;height:40px;text-align:center;background:#3a4afb;background:-moz-linear-gradient(45deg,rgba(58,74,251,1) 0,rgba(71,190,165,1) 100%);background:-webkit-linear-gradient(45deg,rgba(58,74,251,1) 0,rgba(71,190,165,1) 100%);background:linear-gradient(45deg,rgba(58,74,251,1) 0,rgba(71,190,165,1) 100%)}#seopress-header #seopress-admin h1:hover{cursor:pointer}#seopress-header #seopress-admin h1>a{text-decoration:none;color:inherit}#seopress-header #seopress-admin .seopress-quick-access{background:#fff;box-shadow:0 50px 100px rgba(50,50,93,.1),0 15px 35px rgba(50,50,93,.2),0 5px 15px rgba(0,0,0,.1);border-radius:4px;overflow:hidden;position:relative;font-size:17px;line-height:40px;white-space:nowrap;transform:rotate3d(1,1,0,-15deg);transform-origin:100% 0;opacity:0;will-change:transform,opacity;transition-property:transform,opacity;transition-duration:.25s;z-index:300;padding:0;display:block;width:53rem;top:0;visibility:hidden;cursor:auto}#seopress-header #seopress-admin h1:hover .seopress-quick-access{transform:none;opacity:1;pointer-events:auto;visibility:visible}#seopress-header #seopress-admin .seopress-quick-access>ul{padding:20px;margin:0;float:left;width:100%;box-sizing:border-box}#seopress-header #seopress-admin h1 .seopress-quick-access li{text-decoration:none;display:inline-block;width:50%;margin:0;float:left;padding:10px 0}#seopress-header #seopress-admin h1 .seopress-quick-access li .dashicons{vertical-align:middle;background:#b7e1f3;border-radius:50%;padding:5px;margin-right:15px}#seopress-header #seopress-admin h1 .seopress-quick-access li a{text-decoration:none;font-size:15px;line-height:30px;text-transform:uppercase;display:block;width:100%;transition:all .3s linear;color:#3297d3}#seopress-header #seopress-admin h1 .seopress-quick-access li a:hover{color:#647a88}#seopress-header #seopress-admin h1 .seopress-info-version{position:relative;left:50px;top:0;font-size:14px;width:100px;display:block}#seopress-header #seopress-admin .wpc-info-version{font-size:14px;left:310px;position:absolute;text-indent:0;top:85px}#seopress-header #seopress-notice{float:right;line-height:40px}#seopress-header #seopress-notice p{font-size:16px}#seopress-header #seopress-notice .dashicons{color:#444;text-decoration:none;line-height:40px}#seopress-header #seopress-notice div.small{font-size:13px;display:inline}#seopress-footer-credits{font-style:italic}#seopress-footer-credits .wporg-ratings{display:inline}#seopress-footer-credits .wporg-ratings a{text-decoration:none}.seopress-option .seopress-settings{float:left;max-width:750px;width:100%}.seopress-option #seopress-edd-license-btn,.seopress-option #seopress-refresh{float:left}.wp-admin-ui_page_seopress-import-export .postbox{margin-right:20px}.seopress-option #side-sortables .accordion-section-content{padding:0}.seopress-option .seopress-settings label{margin:0 0 0 10px}.wrap-seopress-tab-content{position:relative;display:block;width:100%;height:100%;max-width:53rem;margin:20px auto 0}#seopress-admin-tabs .seopress-tab{padding:1.5rem;visibility:hidden;overflow:hidden;opacity:0;transition:all .2s ease;transform:translateX(-15px);position:absolute;top:0}#seopress-admin-tabs .seopress-tab.active{visibility:visible;overflow:inherit;opacity:1;transform:translateX(0);display:inherit;position:relative}#seopress-tabs .seopress-tab{padding:1.5rem;display:none}#seopress-tabs .seopress-tab.active{display:inline-block}.seopress-option input[type=password],.seopress-option input[type=text],.seopress-option textarea{min-width:485px}#seopress_htaccess_file{width:100%}.seopress-option textarea{min-height:100px}.seopress-option #side-sortables .highlight{border:1px dashed #ccc;display:block;width:382px;height:40px;background:0 0}.seopress-option #side-sortables .accordion-section{margin-bottom:9px;width:382px}.seopress-option #side-sortables .accordion-section h3{cursor:move;border:1px solid #e5e5e5;background:#fafafa}.seopress-option #side-sortables .accordion-section .inside{padding:10px 10px 24px;border-width:0 1px 1px;border-style:solid;box-shadow:0 1px 1px rgba(0,0,0,.04);border-color:#e5e5e5;display:inline-block;width:calc(100% - 22px);height:100%}.seopress-option #side-sortables .accordion-section .inside ul{padding-left:10px;margin-bottom:0;padding-top:2px;padding-bottom:2px}.seopress-option #side-sortables .accordion-section .inside ul li{border-left:2px solid #ccc;padding-left:10px;margin-bottom:10px}.seopress-option #side-sortables .accordion-section .inside ul li:first-child{border-bottom:1px dotted #e5e5e5;border-left:0;padding-bottom:10px;font-weight:700;margin-left:-15px;margin-bottom:10px}.seopress-notice #message{margin:5px 10px 2px 0}#seopress-notice a{position:relative;text-decoration:none}#seopress-notice a .tooltip{white-space:pre;z-index:200;padding:2px 5px;font-weight:500;font-size:12px;color:#aab7c4;background:#fff;box-shadow:0 1px 2px 0 rgba(49,49,93,.1),0 0 1px 0 rgba(0,0,0,.1);border-radius:2px;position:absolute;opacity:0;top:30px;transition:opacity .2s ease;visibility:hidden;line-height:20px;left:-100%;overflow:hidden}#seopress-notice a:hover .tooltip{opacity:1;visibility:visible}.seopress-page-list{margin:0}.seopress-option .dashicons,.seopress-page-list .dashicons{vertical-align:middle;margin-right:5px}#seopress-admin-tabs .ui-tabs-nav,#seopress-notifications-center,.seopress-page-list .seopress-feature,.seopress-useful-tools{background:linear-gradient(172deg,#f5f7fa,#f5f7fa 200px,#fff 0,#fff);margin:0 auto 20px;box-shadow:0 15px 35px rgba(50,50,93,.1),0 5px 15px rgba(0,0,0,.2);max-width:50rem;padding:1.5rem;width:100%;border-radius:4px}#seopress-notifications-center,.seopress-useful-tools{background:linear-gradient(172deg,#f5f7fa,#f5f7fa 400px,#fff 0,#fff)}.seopress-page-list .seopress-feature{padding:0 1.5rem;position:relative;overflow:hidden;transition-duration:.15s}.seopress-page-list .seopress-feature p{color:#6b7c93;font-size:14px;margin-bottom:30px}#seopress-notifications-center{margin-top:0}#seopress-admin-tabs .ui-tabs-nav{display:flex;padding-top:1rem;padding-bottom:0}.seopress-page-list .seopress-feature .img-tool{height:100px;width:100px;background:#c4f0ff;position:absolute;border-radius:50%;box-shadow:0 4px 6px rgba(50,50,93,.1),0 1px 3px rgba(0,0,0,.1);top:calc(50% - 50px);left:20px}.seopress-page-list .seopress-feature .img-tool .dashicons{color:#217ab7;font-size:60px;text-align:left;vertical-align:middle;width:100%;height:100%;position:absolute;top:calc(50% - 30px);left:calc(50% - 30px);margin:0}.seopress-page-list .seopress-feature .inner{margin:0;display:block;padding:2rem 0 2rem 120px}.seopress-page-list .seopress-feature h3{margin:0;font-size:16px;font-weight:700;color:#3297d3;text-transform:uppercase}.seopress-page-list .seopress-feature h3 .dashicons{font-size:16px;margin-left:5px;vertical-align:middle}#seopress-content .seopress-page-list .seopress-feature a,#seopress-notifications-center .seopress-alert .button-primary,.seopress-option .seopress-feature a,.seopress-useful-tools .widget .button-primary{color:#fff;text-decoration:none;border:none;border-radius:4px;padding-right:20px;padding-left:20px;line-height:34px;text-transform:uppercase;min-height:34px;transition:all .3s linear;text-shadow:none;box-shadow:0 7px 14px rgba(50,50,93,.1),0 3px 6px rgba(0,0,0,.1);margin-right:15px;background:#6a7c94;position:relative;height:auto}#seopress-content .seopress-page-list .seopress-feature a.button-secondary{padding-left:30px}#seopress-content .seopress-page-list .seopress-feature a.button-secondary::before,#seopress-notifications-center .seopress-alert .button-primary::after{content:"\f111";font-family:Dashicons;position:absolute;left:10px;top:1px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-size:16px}#seopress-content .seopress-page-list .seopress-feature a.view-redirects,#seopress-notifications-center .seopress-alert .button-primary,.seopress-option .button{background:#fff;border:none;color:#6b7c93;font-weight:500;transition:all .3s linear;text-shadow:none;text-transform:uppercase;padding-right:20px;padding-left:20px;line-height:34px;min-height:34px;margin-bottom:10px;border-radius:4px;box-shadow:0 7px 14px rgba(50,50,93,.1),0 3px 6px rgba(0,0,0,.1);vertical-align:baseline}.seopress-option .button .dashicons{font-size:16px}#seopress-content .seopress-page-list .seopress-feature a.view-redirects{padding-left:35px}#seopress-notifications-center .seopress-alert .button-primary::after{content:"\f344";left:inherit;right:10px}#seopress-content .seopress-page-list .seopress-feature a.view-redirects::before{content:"\f177"}#seopress-content .seopress-page-list .seopress-feature a:hover,#seopress-notifications-center .seopress-alert .button-primary:hover,.seopress-option .button:hover,.seopress-option .seopress-feature a:hover,.seopress-useful-tools .widget .button-primary:hover{text-decoration:none;color:#fff;background:#232323}#seopress-content .seopress-page-list .seopress-feature .seopress-doc:focus,#seopress-content .seopress-page-list .seopress-feature a:focus,#seopress-content .seopress-page-list .seopress-feature a:focus.button-secondary,#seopress-content a:focus,#seopress-notifications-center .seopress-alert .button-primary:focus,.seopress-option #seopress-tabs .seopress-doc:focus,.seopress-option .seopress-feature a:focus,.seopress-styles .seopress-option #seopress-aio-migrate:focus,.seopress-styles .seopress-option #seopress-yoast-migrate:focus,.seopress-styles .seopress-option #submit:focus,.seopress-useful-tools .widget .button-primary:focus{box-shadow:0 1px 0 #0073aa,0 0 2px 1px #33b3db;background:#008ec2;border-color:#006799;color:#fff}#seopress-admin-tabs .nav-tab-wrapper a.nav-tab-active:focus{color:inherit}#seopress-notifications-center .seopress-alert .button-primary{float:right;margin:5px 0;padding-right:30px}#seopress-notifications-center h2,.seopress-useful-tools h2{margin:5px 0 15px 5px;display:inline-block;width:100%}#seopress-notifications-center .dashicons,.seopress-useful-tools .dashicons{margin-right:10px}#seopress-notifications-center .seopress-alert{padding:0;display:inline-block;margin:0 10px 10px 5px;border-bottom:1px solid #e6ebf1;width:calc(100% - 30px);position:relative;transition:all 150ms ease}#seopress-notifications-center .seopress-alert:hover{cursor:default}#seopress-notifications-center .seopress-alert p{display:inline-block}#seopress-notifications-center .seopress-alert .impact{padding:4px 5px;color:#fff;text-transform:uppercase;font-weight:700;font-size:10px;border-radius:4px}#seopress-notifications-center .seopress-alert .impact.low{background:#ffde24;color:#6b6543}#seopress-notifications-center .seopress-alert .impact.medium{background:#e39f48}#seopress-notifications-center .seopress-alert .impact.high{background:#e25950}#seopress-notifications-center .seopress-alert .impact.high.info{background:#0085ba}#seopress-notifications-center .seopress-alert .dashicons{color:#ffc82c}#seopress-notifications-center .dashicons.remove-notice{position:absolute;right:-55px;color:#6b7c93;font-size:30px;height:30px;width:30px;top:2px;padding:5px;transition:all .3s linear}#seopress-notifications-center .dashicons.remove-notice:hover{background:#e25950;color:#fff;cursor:pointer;border-radius:4px}#seopress-content .seopress-page-list .seopress-feature .seopress-doc,.seopress-option #seopress-tabs .seopress-doc{background:0 0;padding:0;width:inherit;height:inherit;text-decoration:none;color:inherit;box-shadow:none;position:absolute;right:0}#seopress-content .seopress-page-list .seopress-feature .seopress-doc:hover,.seopress-option #seopress-tabs .seopress-doc:hover{color:#747474;background:0 0}.seopress-option .seopress-table{background:#fff;border:1px solid #ccc}.seopress-option .seopress-table th{padding:15px 10px;vertical-align:middle}.wp-admin-ui_page_seopress-roles .seopress-option .seopress-table th{min-width:200px}.seopress-option .seopress-table .seopress-settings-section{background:#f1f1f1}.seopress-option .seopress-table .seopress-table-head .seopress-feature{border-bottom:1px solid #ccc;font-weight:700;background:#f1f1f1}#seopress-content .feature-state,.seopress-option .feature-state{font-style:italic;font-size:12px;display:inline-block;background:rgba(0,140,135,.1);padding:5px 12px;border-radius:25px;color:#444;font-weight:400;text-transform:none;-moz-osx-font-smoothing:initial;-webkit-font-smoothing:initial}#seopress_cpt .tag-title,.seopress-button,.seopress-option .tag-title{cursor:pointer;font-weight:500;border-radius:4px;transition:all .3s linear}#seopress-content .feature-state-on,#seopress-content .feature-state.feature-state-on,.seopress-option .feature-state-on,.seopress-option .feature-state.feature-state-on{display:inline}#seopress-content .feature-state-off,.seopress-option .feature-state-off{display:none}.seopress-option .postbox .inside li{list-style:square inside;padding-left:5px}#tab_seopress_page_speed .inside li{list-style:none;padding-left:0;word-break:break-word}.seopress-option .log{margin:0;text-transform:uppercase;display:inline-block;vertical-align:middle;padding:5px;color:rgba(19,191,17,1);font-style:italic}.seopress-option input[type=text].seopress-admin-menu-input{min-width:inherit;width:100%}.seopress_page_seopress-import-export .postbox{width:calc(100% - 20px)}#seopress_cpt .wrap-tags,.seopress-option .wrap-tags{position:relative;display:inline-block;width:100%;margin-bottom:10px}#seopress_cpt .tag-title,.seopress-option .tag-title{padding:4px 8px;position:relative;top:5px;left:0;font-size:11px;float:left;margin-right:5px;user-select:none;margin-bottom:5px;background:#fff;color:#6b7c93;box-shadow:0 0 0 .5px rgba(50,50,93,.17),0 2px 5px 0 rgba(50,50,93,.12),0 3px 9px 0 rgba(50,50,93,.08),0 1px 1.5px 0 rgba(0,0,0,.08),0 1px 2px 0 rgba(0,0,0,.08)}#seopress_cpt .tag-title:active,#seopress_cpt .tag-title:focus,#seopress_cpt .tag-title:hover,.seopress-option .tag-title:active,.seopress-option .tag-title:focus,.seopress-option .tag-title:hover{background:#232323;color:#fff;user-select:none}#seopress_cpt .tag-title .dashicons,.seopress-option .tag-title .dashicons{padding:0;height:16px;width:16px;font-size:16px;margin-right:5px;vertical-align:middle}.seopress-button{text-transform:uppercase;background:#fff;border-color:#c8d7e1;border-style:solid;border-width:1px 1px 2px;color:#2e4453;display:inline-block;margin:0;outline:0;overflow:hidden;text-overflow:ellipsis;text-decoration:none;vertical-align:top;box-sizing:border-box;font-size:14px;line-height:21px;padding:7px 14px 9px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.seopress-button:hover{border-color:#a8bece;color:#00a0d2}.seopress-button .dashicons{vertical-align:middle}#seopress-content #tab_seopress_seo_tools.seopress-useful-tools .widget{border-right:1px solid #e6ebf1;margin:0;padding:0 20px;width:calc(50% - 2px);box-sizing:border-box;display:inline-block;vertical-align:top}#seopress-content #tab_seopress_seo_tools.seopress-useful-tools .widget:first-child{width:100%;display:block;clear:both;border-right:none;border-bottom:1px solid #e6ebf1;padding-bottom:20px;margin-bottom:20px}#seopress-content #tab_seopress_seo_tools.seopress-useful-tools .widget:last-child{border-right:none}#seopress-content .seopress-useful-tools .widget-reverse ul{background:#fff}#seopress-content .seopress-useful-tools .widget-reverse li{padding:10px;margin:0;border-bottom:1px solid #e6ebf1}#seopress-content .seopress-useful-tools .widget-reverse li:hover{background:#f5f7fa}#seopress-content .seopress-useful-tools .widget-title{text-transform:uppercase;margin:0 0 10px;font-size:13px;padding:10px 0;color:#24b47e}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank{margin:0 0 10px;width:100%;box-sizing:border-box;display:block}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_reach{font-size:30px;font-weight:700;display:inline-block;width:100%;padding:0 0 20px;text-align:right}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_reach .highlight{display:inline-block;font-size:16px;background:inherit;width:100%;margin-bottom:10px}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_delta{font-size:14px;display:inline-block;vertical-align:top;text-align:left;margin:0 20px 0 0}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_delta{width:100%;text-align:right;font-size:18px;font-style:italic}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank{text-align:left}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country .highlight,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank .highlight{background:0 0;font-weight:700}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country{margin-right:0}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank{margin-left:5px}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .minus .dashicons,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .plus .dashicons{font-style:italic}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .plus{color:green}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .minus{color:red}#seopress-content .seopress-reverse label,#seopress-content .seopress-useful-tools .widget-whois ul li span{font-weight:700}#seopress-content #seopress-reverse-url{width:100%;margin:10px 0}#seopress-content .widget-reverse p{margin:0}.post-type-seopress_backlinks .wp-list-table .column-seopress_backlinks_url{width:35%}.post-type-seopress_backlinks .wp-list-table .column-seopress_backlinks_anchor_text{width:20%}.seopress-styles #screen-meta{margin:0;position:relative;background-color:#fff;border-bottom:0 solid #f2f2f2;border-top:none;-webkit-box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08);box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08);top:0}.seopress-styles #contextual-help-link-wrap,.seopress-styles #screen-options-link-wrap{float:right;height:28px;margin:0 0 0 6px;border:1px solid #f2f2f2;border-top:none;background:#fff;-webkit-box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08);box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08)}.seopress-styles #screen-meta-links .show-settings{box-shadow:none}.seopress-styles #screen-meta-links .screen-meta-toggle{position:relative;top:0;z-index:2000}.seopress-styles #contextual-help-back{background:#f8fafd}.seopress-styles .contextual-help-tabs .active{border-left:2px solid #3297d3;background:#f8fafd}#seopress-content input.toggle,.seopress-option input.toggle{max-height:0;max-width:0;opacity:0}#seopress-content input.toggle+label,.seopress-option input.toggle+label{display:inline-block;position:relative;box-shadow:inset 0 0 0 1px #d5d5d5;text-indent:-5000px;height:30px;width:50px;border-radius:15px}.wrap-toggle-checkboxes input.toggle+label{float:left;margin-right:10px}#seopress-content input.toggle+label:before,.seopress-option input.toggle+label:before{content:"";position:absolute;display:block;height:30px;width:30px;top:0;left:0;border-radius:15px;background:rgba(19,191,17,0);-moz-transition:.25s ease-in-out;-webkit-transition:.25s ease-in-out;transition:.25s ease-in-out}#seopress-content input.toggle+label:after,.seopress-option input.toggle+label:after{content:"";position:absolute;display:block;height:30px;width:30px;top:0;left:0;border-radius:15px;background:#fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2),0 2px 4px rgba(0,0,0,.2);-moz-transition:.25s ease-in-out;-webkit-transition:.25s ease-in-out;transition:.25s ease-in-out}#seopress-content input.toggle[data-toggle="1"]+label:before,.seopress-option input.toggle[data-toggle="1"]+label:before{width:50px;background:rgba(19,191,17,1)}#seopress-content input.toggle[data-toggle="1"]+label:after,.seopress-option input.toggle[data-toggle="1"]+label:after{left:20px;box-shadow:inset 0 0 0 1px rgba(19,191,17,1),0 2px 4px rgba(0,0,0,.2)}#seopress-content .seopress-page-list{position:relative}#seopress-notice-save{position:fixed;color:#fff;padding:15px 40px;font-size:14px;text-align:center;border-radius:50px;background:rgba(74,184,102,.75);top:50px;right:20px;z-index:500}.seopress_page_seopress-pro-page #wpcontent{background:#f4f7fa}.seopress-option .wrap div.nav-tab-wrapper{border-bottom:1px solid RGB(238,238,238);margin:0 0 0 -16px;padding:0 10px;line-height:inherit;background:#fff;position:-webkit-sticky;position:sticky;top:102px;width:calc(100% + 12px);z-index:95;font-weight:400}#seopress-admin-tabs.wrap div.nav-tab-wrapper{margin:20px auto 0;max-width:53rem;width:100%;border-bottom:0;padding:0;line-height:inherit;position:-webkit-sticky;position:sticky;background:#f8fafd;z-index:100;top:31px;font-weight:400}#seopress-admin-tabs #tab_seopress_notifications.seopress-tab{background:0 0;padding:0}#seopress-admin-tabs .nav-tab,.seopress-option .nav-tab{border:0 solid #ccc;background:0 0;opacity:.5;padding:8px 8px;transition:opacity .3s linear;color:#191e23;margin:0;float:none;display:inline-block}#seopress-admin-tabs .nav-tab-active,#seopress-admin-tabs .nav-tab-active:hover,.seopress-option .about-wrap h2 .nav-tab-active,.seopress-option .nav-tab-active,.seopress-option .nav-tab-active:hover{background-color:#fff}#seopress-admin-tabs .nav-tab-active,#seopress-admin-tabs .nav-tab-active:focus,#seopress-admin-tabs .nav-tab-active:focus:active,#seopress-admin-tabs .nav-tab-active:hover,#seopress-admin-tabs .nav-tab:focus,.nav-tab-active:focus,.seopress-option .nav-tab-active,.seopress-option .nav-tab-active:focus:active,.seopress-option .nav-tab-active:hover,.seopress-option .nav-tab:focus{background:0 0;opacity:1;outline:0;font-weight:600;position:relative}.seopress-option .nav-tab-active::after{border-bottom:2px solid #0085ba;content:'';position:absolute;width:100%;bottom:0;left:0;display:block}#seopress-admin-tabs .nav-tab:hover,.seopress-option .nav-tab:hover{opacity:1}#seopress-admin-tabs .nav-tab:focus,.seopress-option .nav-tab:focus{outline:0;box-shadow:none}#section-export-redirects,#section-import-redirects{margin-top:-120px;padding-top:120px}.seopress-option .section-tool{border:none;box-shadow:none;background:0 0;position:relative}.seopress-option .section-tool::after{content:'';background:#dedede;height:1px;width:100%;display:block}#tab_seopress_social_accounts .help-social{position:relative;right:0;width:30%}#tab_seopress_social_accounts .form-table{float:left;width:70%}
1
+ #adminmenu div.wp-menu-image.dashicons-admin-seopress::before,#seopress-header #seopress-admin h1::before{content:"\e800";font-family:seopress!important;font-weight:700;font-size:12px;line-height:20px}#seopress-header #seopress-admin h1::before,.seopress-page-list .seopress-feature h3,.seopress-styles .seopress-option h1{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}@font-face{font-family:seopress;src:url(../fonts/seopress.eot?81521271);src:url(../fonts/seopress.eot?81521271#iefix) format('embedded-opentype'),url(../fonts/seopress.woff?81521271) format('woff2'),url(../fonts/seopress.woff?81521271) format('woff'),url(../fonts/seopress.ttf?81521271) format('truetype'),url(../fonts/seopress.svg?81521271#seopress) format('svg');font-weight:400;font-style:normal}[class*=" icon-seopress"],[class^=icon-seopress-]{font-family:seopress!important;font-size:14px!important;line-height:24px!important}.icon-seopress-seopress:before{content:"\e800"}.sp-tooltip{position:relative;margin-left:5px;display:inline-block;cursor:help}.sp-tooltip .dashicons{color:#666}.sp-tooltip .sp-tooltiptext{visibility:hidden;position:absolute;z-index:999999999;color:#fff;font-size:.8em;background:#333;text-align:center;width:240px;right:0;border-radius:3px;padding:.618em 1em;box-shadow:0 1px 3px rgba(0,0,0,.2);top:25px}.sp-tooltip:hover .sp-tooltiptext{visibility:visible}#seopress_content_analysis .wrap-seopress-analysis{display:inline-block;width:100%}#seopress_content_analysis .col-left{width:calc(50% - 30px);float:left;margin-right:30px}#seopress_content_analysis .col-right{float:right;width:50%}#seopress_content_analysis #seopress_suggestions{display:inline-block;width:100%;margin:0;height:auto;padding:20px 0}#seopress_content_analysis #seopress_suggestions li{list-style:square;margin:5px;display:inline-block;background:#f1f1f1;padding:5px}#seopress_launch_analysis{float:left}#seopress_analysis_results_state{background:rgba(74,184,102,.75);color:#fff;padding:5px 25px 5px 20px;border-radius:100px;font-style:italic;position:relative;width:auto;display:inline-block;margin:0 0 0 20px;clear:both}#seopress_content_analysis h3{border-bottom:1px solid #ddd;padding-bottom:10px}#seopress_content_analysis .wrap-analysis-img ul{display:flex;flex-wrap:wrap}#seopress_content_analysis .wrap-analysis-img ul li{padding:0;text-align:left;cursor:default}#seopress_content_analysis .wrap-analysis-img h4{border-bottom:1px solid #ddd;padding-bottom:10px}#seopress_content_analysis .wrap-analysis-img ul li img{max-width:150px;max-height:150px;object-fit:cover;cursor:default}#seopress_cpt .notice{padding:10px 14px}#seopress-analysis-tabs .dashicons,#seopress_cpt .dashicons{vertical-align:middle}#seopress_cpt .inside{margin:0;padding:0}#seopress_content_analysis .ui-tabs .ui-tabs-nav,#seopress_cpt .ui-tabs .ui-tabs-nav{display:inline-block;min-height:26px;position:relative;width:100%;z-index:10;margin:0;border-radius:0;padding:0;background:#f3f4f5;border:none}#seopress_content_analysis .ui-tabs .ui-tabs-nav{width:calc(100% + 24px);margin:0 0 0 -12px;position:-webkit-sticky;position:sticky;top:0}#seopress_content_analysis .ui-tabs .ui-tabs-nav{margin-top:15px}#seopress_content_analysis .ui-helper-clearfix:after,#seopress_cpt .ui-helper-clearfix:after{content:none}.seopress_page_seopress-titles #seopress-tabs .form-table td,.seopress_page_seopress-titles #seopress_content_analysis .form-table td{padding:0}#seopress_content_analysis .ui-tabs .ui-tabs-panel,#seopress_cpt .ui-tabs .ui-tabs-panel{background:#fff;border-radius:0;display:inline-block;padding:1em 1.4em;width:100%;box-sizing:border-box}#seopress_content_analysis .ui-tabs .ui-tabs-panel .dashicons-info,#seopress_cpt .ui-tabs .ui-tabs-panel .dashicons-info,#seopress_pro_cpt .dashicons-info{font-size:16px;vertical-align:middle;height:16px;width:16px}#seopress_content_analysis .ui-tabs .ui-tabs-nav li,#seopress_content_analysis .ui-tabs-anchor,#seopress_cpt .ui-tabs .ui-tabs-nav li,#seopress_cpt .ui-tabs-anchor{cursor:pointer!important}#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-tabs-active,#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-tabs-active{position:relative;z-index:60;cursor:pointer;border-radius:0;border-bottom:3px solid #0085ba}#seopress_content_analysis label,#seopress_cpt #tabs-1 label,#seopress_cpt #tabs-2 label[for=seopress_robots_breadcrumbs_meta],#seopress_cpt #tabs-2 label[for=seopress_robots_canonical_meta],#seopress_cpt #tabs-2 label[for=seopress_robots_primary_cat_meta],#seopress_cpt #tabs-3 label,#seopress_cpt #tabs-4 label,#seopress_cpt #tabs-5 label,#seopress_cpt #tabs-6 label,#seopress_cpt .subsection-title,#seopress_pro_cpt label{display:block;margin:20px 0 5px;font-weight:700}#seopress_cpt .wp-color-result{margin:0}#seopress_content_analysis input[type=text],#seopress_cpt #tabs-1 input,#seopress_cpt #tabs-2 input[type=text],#seopress_cpt #tabs-3 input[type=text],#seopress_cpt #tabs-3 textarea,#seopress_cpt #tabs-4 input[type=text],#seopress_cpt #tabs-5 input[type=text],#seopress_cpt #tabs-6 input[type=text],#seopress_cpt #tabs-6 textarea{width:90%;display:inline-block}#seopress_cpt #tabs-1 input{width:100%}#seopress_cpt #tabs-6 input[type=number]{width:30%;min-width:200px}#seopress_cpt #tabs-6 #wrap-videos .video:first-child .remove-video{display:none}#seopress_cpt select{width:300px}#seopress_cpt #tabs-4 select{width:250px;display:inline}#seopress_cpt #tabs-4 #seopress_redirections_value_meta{width:calc(100% - 258px);float:right}#seopress_cpt #tabs-6{padding:0}#seopress_cpt #tabs-6 #wrap-videos .video .accordion-section-content,#seopress_cpt #tabs-6>p{padding:0 1.4em}#seopress_cpt #tabs-6 #wrap-videos .video .accordion-section-content{padding:0 1.4em 1em}#seopress_cpt #tabs-6 #wrap-videos .video{border-top:1px solid #eee}#seopress_cpt #tabs-6 #wrap-videos .video .accordion-section-title{border-left:none;border-right:none;font-size:1em;padding:1em 1.4em}#seopress_cpt #tabs-6 #wrap-videos .video:last-child .accordion-section-content,#seopress_cpt #tabs-6 #wrap-videos .video:last-child .accordion-section-title{border-bottom:1px solid #eee}#seopress_cpt #tabs-6 #wrap-videos .video .inside{padding:0}#seopress_cpt #tabs-4 #seopress_redirections_enabled,#seopress_cpt #tabs-5 #seopress_news_disabled,#seopress_cpt #tabs-5 #seopress_news_standout,#seopress_cpt #tabs-6 #seopress_video_disabled,#seopress_cpt #tabs-6 .family-friendly label,#seopress_cpt #tabs-6 .internal_video label{font-weight:400}#seopress_cpt #tabs-6 #wrap-videos .video:nth-child(odd){background:#fdfdfd}#seopress_content_analysis .advise,#seopress_cpt .advise,#seopress_pro_cpt .advise,.seopress-option .advise{margin:5px;display:block;color:red;font-style:italic}#seopress_cpt #tabs-6 #wrap-videos .video .advise{color:#555}#seopress_content_analysis .mandatory,#seopress_cpt .mandatory{color:#c00}#seopress_cpt .box-left{float:left;width:49%;margin-right:1%}#seopress_cpt .box-right{float:left;width:49%;margin-left:1%}#seopress_cpt .google-snippet-preview{font-family:arial,sans-serif;word-break:break-all}#seopress_cpt .google-snippet-preview>p{word-break:normal}#seopress_cpt .google-snippet-preview .snippet-title,#seopress_cpt .google-snippet-preview .snippet-title-custom,#seopress_cpt .google-snippet-preview .snippet-title-default{color:#1a0dab;font-size:18px;font-weight:400;line-height:21.6px}#seopress_cpt .google-snippet-preview .snippet-permalink{color:#006621;font-size:14px;font-style:normal;font-weight:400;line-height:16px}#seopress_cpt .google-snippet-preview .snippet-description,#seopress_cpt .google-snippet-preview .snippet-description-custom,#seopress_cpt .google-snippet-preview .snippet-description-default{color:#545454;font-size:13px;font-weight:400;line-height:18.2px;display:inline}#seopress_cpt .google-snippet-preview .snippet-date{color:grey;display:inline}#seopress_cpt .wrap-seopress-counters,#seopress_pro_cpt .wrap-seopress-counters{text-align:right;background:#eee;padding:2px 5px;display:flex;box-shadow:0 1px 1px rgba(0,0,0,.2);font-size:12px;justify-content:flex-end}#seopress_cpt #seopress_titles_desc_counters,#seopress_cpt #seopress_titles_title_counters,#seopress_pro_cpt #seopress_rich_snippets_articles_counters,#seopress_pro_cpt #seopress_rich_snippets_courses_counters{display:inline;margin-right:5px}#seopress_cpt #seopress_titles_desc_counters_val,#seopress_cpt #seopress_titles_title_counters_val,#seopress_pro_cpt #seopress_rich_snippets_articles_counters_val,#seopress_pro_cpt #seopress_rich_snippets_courses_counters_val{display:inline;font-weight:700}#term-seopress #seopress_cpt{width:95%}.fixed .column-seopress_w3c,.fixed .column-seopress_words{width:5%}.fixed .column-seopress_nofollow,.fixed .column-seopress_noindex{width:10%}#seopress_content_analysis .ui-tabs,#seopress_cpt .ui-tabs{position:relative;padding:0;border:none;font-family:inherit;font-size:inherit;display:inline-block;width:100%}#seopress_content_analysis .ui-tabs .ui-tabs-nav li,#seopress_cpt .ui-tabs .ui-tabs-nav li{list-style:none;display:inline-block;position:relative;top:2px;padding:0 5px;white-space:nowrap;margin:0;border:none;background:0 0}#seopress_content_analysis .ui-tabs .ui-tabs-nav li a,#seopress_cpt .ui-tabs .ui-tabs-nav li a{display:inline-block;padding:5px 10px}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-nav li a,#seopress_cpt .ui-tabs-vertical .ui-tabs-nav li a{display:block}#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-tabs-active,#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:2px;padding-bottom:1px}#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-state-disabled a,#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-tabs-active a,#seopress_content_analysis .ui-tabs .ui-tabs-nav li.ui-tabs-loading a,#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-state-disabled a,#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-tabs-active a,#seopress_cpt .ui-tabs .ui-tabs-nav li.ui-tabs-loading a{color:#191e23;font-weight:700}#seopress_content_analysis .ui-tabs .ui-tabs-nav li a,#seopress_content_analysis .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a,#seopress_cpt .ui-tabs .ui-tabs-nav li a,#seopress_cpt .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a{cursor:pointer;color:#191e23;text-decoration:none;height:40px;line-height:40px}#seopress_cpt .ui-tabs-vertical{width:55em}#seopress_cpt .ui-tabs-vertical .ui-tabs-nav{padding:.2em .1em .2em .2em;float:left;width:12em}#seopress_cpt .ui-tabs-vertical .ui-tabs-nav li{clear:left;width:100%;border-bottom-width:1px!important;border-right-width:0!important;margin:0 -1px .2em 0}#seopress_cpt .ui-tabs-vertical .ui-tabs-nav li.ui-tabs-active{padding-bottom:0;padding-right:.1em;border-right-width:1px}#seopress_cpt .ui-tabs-vertical .ui-tabs-panel{padding:1em;float:right;width:40em}#seopress_content_analysis .ui-tabs .ui-tabs-nav li a .dashicons,#seopress_cpt .ui-tabs .ui-tabs-nav li a .dashicons{margin-right:2px}#tab-panel-seopress_titles_help_tab li span{font-weight:700;margin-right:10px}#seopress_content_analysis .ui-tabs .dashicons-no-alt,#seopress_content_analysis .ui-tabs .dashicons-yes,#seopress_pro_cpt .dashicons-no-alt,#seopress_pro_cpt .dashicons-yes{color:#fff;background:#12bd10;border-radius:50px;margin-right:10px}#seopress_content_analysis .ui-tabs .dashicons-no-alt,#seopress_pro_cpt .dashicons-no-alt{background:#e25950}body.seopress-styles{background:#f8fafd}#seopress-content a{color:#3297d3}#seopress-content a:hover{color:#106598}#seopress-admin-tabs.ui-tabs{position:relative;padding:.2em;border:none;font-family:inherit;font-size:inherit}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:-1px .2em 0 0;padding:0;white-space:nowrap;border:none;background:0 0}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li a{float:left;padding:.38em 1em .75rem;outline:0;border-bottom:2px solid #fff}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-state-disabled a,#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-tabs-active a,#seopress-admin-tabs.ui-tabs .ui-tabs-nav li.ui-tabs-loading a{cursor:text;border-bottom:2px solid #23282d;color:#23282d}#seopress-admin-tabs.ui-tabs .ui-tabs-nav li a,#seopress-admin-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a{cursor:pointer;color:#0073aa;text-decoration:none}#seopress-admin-tabs.ui-tabs-vertical{width:55em}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-nav{padding:.2em .1em .2em .2em;float:left;width:12em}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-nav li{clear:left;width:100%;border-bottom-width:1px!important;border-right-width:0!important;margin:0 -1px .2em 0}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-nav li.ui-tabs-active{padding-bottom:0;padding-right:.1em;border-right-width:1px}#seopress-admin-tabs.ui-tabs-vertical .ui-tabs-panel{padding:1em;float:right;width:40em}.seopress-styles .seopress-option{margin:10px auto 0;max-width:90%;padding:1rem;background:#fff;box-shadow:0 15px 35px rgba(50,50,93,.1),0 5px 15px rgba(0,0,0,.1);border-radius:4px}.seopress-styles .seopress-option h1{font-size:16px;font-weight:700;color:#3297d3;text-transform:uppercase;position:-webkit-sticky;position:sticky;top:32px;background:#fff;z-index:100;padding:10px 0}.seopress-styles .seopress-option h1 .dashicons,.seopress-styles .seopress-option h2 .dashicons{margin:0 10px;font-size:40px;width:40px;height:40px;vertical-align:middle}.seopress-styles .seopress-option .link-archive{font-size:14px}.seopress-styles .seopress-option .link-archive .dashicons{font-size:18px;width:20px;height:20px;margin:inherit}.seopress-styles .seopress-option h1>.dashicons{font-size:30px;width:30px;height:30px;background:#c4f0ff;border-radius:50%;padding:10px;box-shadow:0 4px 6px rgba(50,50,93,.1),0 1px 3px rgba(0,0,0,.1);margin-left:20px}.seopress-styles .seopress-option .metabox-holder h2 .dashicons{font-size:16px}.seopress-option h1 .feature-state .dashicons{font-size:16px;width:16px;height:16px;vertical-align:middle;margin:0 10px 0 0}.seopress-styles .wrap{margin:0;position:relative}.seopress-styles .seopress-option .submit{background:#fff;text-align:center;border-top:1px solid #f1f1f1;padding-top:20px;padding-bottom:20px;margin:0}.seopress-styles .seopress-option #seopress-aio-migrate,.seopress-styles .seopress-option #seopress-seo-framework-migrate,.seopress-styles .seopress-option #seopress-yoast-migrate,.seopress-styles .seopress-option #submit{color:#fff;text-decoration:none;border:none;border-radius:4px;padding-right:20px;padding-left:20px;line-height:34px;text-transform:uppercase;min-height:34px;transition:all .3s linear;text-shadow:none;box-shadow:0 7px 14px rgba(50,50,93,.1),0 3px 6px rgba(0,0,0,.1);margin-right:15px;background:RGB(106,124,148);position:relative;height:auto;z-index:10}.seopress-styles .seopress-option #seopress-aio-migrate:hover,.seopress-styles .seopress-option #seopress-seo-framework-migrate:hover,.seopress-styles .seopress-option #seopress-yoast-migrate:hover,.seopress-styles .seopress-option #submit:hover{text-decoration:none;color:#fff;background:#232323}.seopress-styles #wpcontent{padding-left:0;background:#f8fafd}.seopress-styles pre{color:#42b72a;background:#f5f6f7;font-family:Menlo,Monaco,Andale Mono,Courier New,monospace;padding:7px;display:inline-block}.seopress-styles #seopress-navbar{padding:10px .5rem;height:56px;margin:0 auto;width:53rem;box-sizing:border-box;position:relative}#seopress-header{margin:0 auto;position:relative;width:100%}#seopress-header #seopress-admin h1{line-height:40px;margin:0;display:inline-block;height:40px;width:40px;background-size:100%;background-repeat:no-repeat}#seopress-header #seopress-admin h1::before{font-size:14px;line-height:40px;position:absolute;border-radius:6px;font-weight:400;color:#fff;width:40px;height:40px;text-align:center;background:#3a4afb;background:-moz-linear-gradient(45deg,rgba(58,74,251,1) 0,rgba(71,190,165,1) 100%);background:-webkit-linear-gradient(45deg,rgba(58,74,251,1) 0,rgba(71,190,165,1) 100%);background:linear-gradient(45deg,rgba(58,74,251,1) 0,rgba(71,190,165,1) 100%)}#seopress-header #seopress-admin h1:hover{cursor:pointer}#seopress-header #seopress-admin h1>a{text-decoration:none;color:inherit}#seopress-header #seopress-admin .seopress-quick-access{background:#fff;box-shadow:0 50px 100px rgba(50,50,93,.1),0 15px 35px rgba(50,50,93,.2),0 5px 15px rgba(0,0,0,.1);border-radius:4px;overflow:hidden;position:relative;font-size:17px;line-height:40px;white-space:nowrap;transform:rotate3d(1,1,0,-15deg);transform-origin:100% 0;opacity:0;will-change:transform,opacity;transition-property:transform,opacity;transition-duration:.25s;z-index:300;padding:0;display:block;width:53rem;top:0;visibility:hidden;cursor:auto}#seopress-header #seopress-admin h1:hover .seopress-quick-access{transform:none;opacity:1;pointer-events:auto;visibility:visible}#seopress-header #seopress-admin .seopress-quick-access>ul{padding:20px;margin:0;float:left;width:100%;box-sizing:border-box}#seopress-header #seopress-admin h1 .seopress-quick-access li{text-decoration:none;display:inline-block;width:50%;margin:0;float:left;padding:10px 0}#seopress-header #seopress-admin h1 .seopress-quick-access li .dashicons{vertical-align:middle;background:#b7e1f3;border-radius:50%;padding:5px;margin-right:15px}#seopress-header #seopress-admin h1 .seopress-quick-access li a{text-decoration:none;font-size:15px;line-height:30px;text-transform:uppercase;display:block;width:100%;transition:all .3s linear;color:#3297d3}#seopress-header #seopress-admin h1 .seopress-quick-access li a:hover{color:#647a88}#seopress-header #seopress-admin h1 .seopress-info-version{position:relative;left:50px;top:0;font-size:14px;width:100px;display:block}#seopress-header #seopress-admin .wpc-info-version{font-size:14px;left:310px;position:absolute;text-indent:0;top:85px}#seopress-header #seopress-notice{float:right;line-height:40px}#seopress-header #seopress-notice p{font-size:16px}#seopress-header #seopress-notice .dashicons{color:#444;text-decoration:none;line-height:40px}#seopress-header #seopress-notice div.small{font-size:13px;display:inline}#seopress-footer-credits{font-style:italic}#seopress-footer-credits .wporg-ratings{display:inline}#seopress-footer-credits .wporg-ratings a{text-decoration:none}.seopress-option .seopress-settings{float:left;max-width:750px;width:100%}.seopress-option #seopress-edd-license-btn,.seopress-option #seopress-refresh{float:left}.wp-admin-ui_page_seopress-import-export .postbox{margin-right:20px}.seopress-option #side-sortables .accordion-section-content{padding:0}.seopress-option .seopress-settings label{margin:0 0 0 10px}.wrap-seopress-tab-content{position:relative;display:block;width:100%;height:100%;max-width:53rem;margin:20px auto 0}#seopress-admin-tabs .seopress-tab{padding:1.5rem;visibility:hidden;overflow:hidden;opacity:0;transition:all .2s ease;transform:translateX(-15px);position:absolute;top:0}#seopress-admin-tabs .seopress-tab.active{visibility:visible;overflow:inherit;opacity:1;transform:translateX(0);display:inherit;position:relative}#seopress-tabs .seopress-tab{padding:1.5rem;display:none}#seopress-tabs .seopress-tab.active{display:inline-block}.seopress-option input[type=password],.seopress-option input[type=text],.seopress-option textarea{min-width:485px}#seopress_htaccess_file{width:100%}.seopress-option textarea{min-height:100px}.seopress-option #side-sortables .highlight{border:1px dashed #ccc;display:block;width:382px;height:40px;background:0 0}.seopress-option #side-sortables .accordion-section{margin-bottom:9px;width:382px}.seopress-option #side-sortables .accordion-section h3{cursor:move;border:1px solid #e5e5e5;background:#fafafa}.seopress-option #side-sortables .accordion-section .inside{padding:10px 10px 24px;border-width:0 1px 1px;border-style:solid;box-shadow:0 1px 1px rgba(0,0,0,.04);border-color:#e5e5e5;display:inline-block;width:calc(100% - 22px);height:100%}.seopress-option #side-sortables .accordion-section .inside ul{padding-left:10px;margin-bottom:0;padding-top:2px;padding-bottom:2px}.seopress-option #side-sortables .accordion-section .inside ul li{border-left:2px solid #ccc;padding-left:10px;margin-bottom:10px}.seopress-option #side-sortables .accordion-section .inside ul li:first-child{border-bottom:1px dotted #e5e5e5;border-left:0;padding-bottom:10px;font-weight:700;margin-left:-15px;margin-bottom:10px}.seopress-notice #message{margin:5px 10px 2px 0}#seopress-notice a{position:relative;text-decoration:none}#seopress-notice a .tooltip{white-space:pre;z-index:200;padding:2px 5px;font-weight:500;font-size:12px;color:#aab7c4;background:#fff;box-shadow:0 1px 2px 0 rgba(49,49,93,.1),0 0 1px 0 rgba(0,0,0,.1);border-radius:2px;position:absolute;opacity:0;top:30px;transition:opacity .2s ease;visibility:hidden;line-height:20px;left:-100%;overflow:hidden}#seopress-notice a:hover .tooltip{opacity:1;visibility:visible}.seopress-page-list{margin:0}.seopress-option .dashicons,.seopress-page-list .dashicons{vertical-align:middle;margin-right:5px}#seopress-admin-tabs .ui-tabs-nav,#seopress-notifications-center,.seopress-page-list .seopress-feature,.seopress-useful-tools{background:linear-gradient(172deg,#f5f7fa,#f5f7fa 200px,#fff 0,#fff);margin:0 auto 20px;box-shadow:0 15px 35px rgba(50,50,93,.1),0 5px 15px rgba(0,0,0,.2);max-width:50rem;padding:1.5rem;width:100%;border-radius:4px}#seopress-notifications-center,.seopress-useful-tools{background:linear-gradient(172deg,#f5f7fa,#f5f7fa 400px,#fff 0,#fff)}.seopress-page-list .seopress-feature{padding:0 1.5rem;position:relative;overflow:hidden;transition-duration:.15s}.seopress-page-list .seopress-feature p{color:#6b7c93;font-size:14px;margin-bottom:30px}#seopress-notifications-center{margin-top:0}#seopress-admin-tabs .ui-tabs-nav{display:flex;padding-top:1rem;padding-bottom:0}.seopress-page-list .seopress-feature .img-tool{height:100px;width:100px;background:#c4f0ff;position:absolute;border-radius:50%;box-shadow:0 4px 6px rgba(50,50,93,.1),0 1px 3px rgba(0,0,0,.1);top:calc(50% - 50px);left:20px}.seopress-page-list .seopress-feature .img-tool .dashicons{color:#217ab7;font-size:60px;text-align:left;vertical-align:middle;width:100%;height:100%;position:absolute;top:calc(50% - 30px);left:calc(50% - 30px);margin:0}.seopress-page-list .seopress-feature .inner{margin:0;display:block;padding:2rem 0 2rem 120px}.seopress-page-list .seopress-feature h3{margin:0;font-size:16px;font-weight:700;color:#3297d3;text-transform:uppercase}.seopress-page-list .seopress-feature h3 .dashicons{font-size:16px;margin-left:5px;vertical-align:middle}#seopress-content .seopress-page-list .seopress-feature a,#seopress-notifications-center .seopress-alert .button-primary,.seopress-option .seopress-feature a,.seopress-useful-tools .widget .button-primary{color:#fff;text-decoration:none;border:none;border-radius:4px;padding-right:20px;padding-left:20px;line-height:34px;text-transform:uppercase;min-height:34px;transition:all .3s linear;text-shadow:none;box-shadow:0 7px 14px rgba(50,50,93,.1),0 3px 6px rgba(0,0,0,.1);margin-right:15px;background:#6a7c94;position:relative;height:auto}#seopress-content .seopress-page-list .seopress-feature a.button-secondary{padding-left:30px}#seopress-content .seopress-page-list .seopress-feature a.button-secondary::before,#seopress-notifications-center .seopress-alert .button-primary::after{content:"\f111";font-family:Dashicons;position:absolute;left:10px;top:1px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-size:16px}#seopress-content .seopress-page-list .seopress-feature a.view-redirects,#seopress-notifications-center .seopress-alert .button-primary,.seopress-option .button{background:#fff;border:none;color:#6b7c93;font-weight:500;transition:all .3s linear;text-shadow:none;text-transform:uppercase;padding-right:20px;padding-left:20px;line-height:34px;min-height:34px;margin-bottom:10px;border-radius:4px;box-shadow:0 7px 14px rgba(50,50,93,.1),0 3px 6px rgba(0,0,0,.1);vertical-align:baseline}.seopress-option .button .dashicons{font-size:16px}#seopress-content .seopress-page-list .seopress-feature a.view-redirects{padding-left:35px}#seopress-notifications-center .seopress-alert .button-primary::after{content:"\f344";left:inherit;right:10px}#seopress-content .seopress-page-list .seopress-feature a.view-redirects::before{content:"\f177"}#seopress-content .seopress-page-list .seopress-feature a:hover,#seopress-notifications-center .seopress-alert .button-primary:hover,.seopress-option .button:hover,.seopress-option .seopress-feature a:hover,.seopress-useful-tools .widget .button-primary:hover{text-decoration:none;color:#fff;background:#232323}#seopress-content .seopress-page-list .seopress-feature .seopress-doc:focus,#seopress-content .seopress-page-list .seopress-feature a:focus,#seopress-content .seopress-page-list .seopress-feature a:focus.button-secondary,#seopress-content a:focus,#seopress-notifications-center .seopress-alert .button-primary:focus,.seopress-option #seopress-tabs .seopress-doc:focus,.seopress-option .seopress-feature a:focus,.seopress-styles .seopress-option #seopress-aio-migrate:focus,.seopress-styles .seopress-option #seopress-yoast-migrate:focus,.seopress-styles .seopress-option #submit:focus,.seopress-useful-tools .widget .button-primary:focus{box-shadow:0 1px 0 #0073aa,0 0 2px 1px #33b3db;background:#008ec2;border-color:#006799;color:#fff}#seopress-admin-tabs .nav-tab-wrapper a.nav-tab-active:focus{color:inherit}#seopress-notifications-center .seopress-alert .button-primary{float:right;margin:5px 0;padding-right:30px}#seopress-notifications-center h2,.seopress-useful-tools h2{margin:5px 0 15px 5px;display:inline-block;width:100%}#seopress-notifications-center .dashicons,.seopress-useful-tools .dashicons{margin-right:10px}#seopress-notifications-center .seopress-alert{padding:0;display:inline-block;margin:0 10px 10px 5px;border-bottom:1px solid #e6ebf1;width:calc(100% - 30px);position:relative;transition:all 150ms ease}#seopress-notifications-center .seopress-alert:hover{cursor:default}#seopress-notifications-center .seopress-alert p{display:inline-block}#seopress-notifications-center .seopress-alert .impact{padding:4px 5px;color:#fff;text-transform:uppercase;font-weight:700;font-size:10px;border-radius:4px}#seopress-notifications-center .seopress-alert .impact.low{background:#ffde24;color:#6b6543}#seopress-notifications-center .seopress-alert .impact.medium{background:#e39f48}#seopress-notifications-center .seopress-alert .impact.high{background:#e25950}#seopress-notifications-center .seopress-alert .impact.high.info{background:#0085ba}#seopress-notifications-center .seopress-alert .dashicons{color:#ffc82c}#seopress-notifications-center .dashicons.remove-notice{position:absolute;right:-55px;color:#6b7c93;font-size:30px;height:30px;width:30px;top:2px;padding:5px;transition:all .3s linear}#seopress-notifications-center .dashicons.remove-notice:hover{background:#e25950;color:#fff;cursor:pointer;border-radius:4px}#seopress-content .seopress-page-list .seopress-feature .seopress-doc,.seopress-option #seopress-tabs .seopress-doc{background:0 0;padding:0;width:inherit;height:inherit;text-decoration:none;color:inherit;box-shadow:none;position:absolute;right:0}#seopress-content .seopress-page-list .seopress-feature .seopress-doc:hover,.seopress-option #seopress-tabs .seopress-doc:hover{color:#747474;background:0 0}.seopress-option .seopress-table{background:#fff;border:1px solid #ccc}.seopress-option .seopress-table th{padding:15px 10px;vertical-align:middle}.wp-admin-ui_page_seopress-roles .seopress-option .seopress-table th{min-width:200px}.seopress-option .seopress-table .seopress-settings-section{background:#f1f1f1}.seopress-option .seopress-table .seopress-table-head .seopress-feature{border-bottom:1px solid #ccc;font-weight:700;background:#f1f1f1}#seopress-content .feature-state,.seopress-option .feature-state{font-style:italic;font-size:12px;display:inline-block;background:rgba(0,140,135,.1);padding:5px 12px;border-radius:25px;color:#444;font-weight:400;text-transform:none;-moz-osx-font-smoothing:initial;-webkit-font-smoothing:initial}#seopress_cpt .tag-title,.seopress-button,.seopress-option .tag-title{cursor:pointer;font-weight:500;border-radius:4px;transition:all .3s linear}#seopress-content .feature-state-on,#seopress-content .feature-state.feature-state-on,.seopress-option .feature-state-on,.seopress-option .feature-state.feature-state-on{display:inline}#seopress-content .feature-state-off,.seopress-option .feature-state-off{display:none}.seopress-option .postbox .inside li{list-style:square inside;padding-left:5px}#tab_seopress_page_speed .inside li{list-style:none;padding-left:0;word-break:break-word}.seopress-option .log{margin:0;text-transform:uppercase;display:inline-block;vertical-align:middle;padding:5px;color:rgba(19,191,17,1);font-style:italic}.seopress-option input[type=text].seopress-admin-menu-input{min-width:inherit;width:100%}.seopress_page_seopress-import-export .postbox{width:calc(100% - 20px)}#seopress_cpt .wrap-tags,.seopress-option .wrap-tags{position:relative;display:inline-block;width:100%;margin-bottom:10px}#seopress_cpt .tag-title,.seopress-option .tag-title{padding:4px 8px;position:relative;top:5px;left:0;font-size:11px;float:left;margin-right:5px;user-select:none;margin-bottom:5px;background:#fff;color:#6b7c93;box-shadow:0 0 0 .5px rgba(50,50,93,.17),0 2px 5px 0 rgba(50,50,93,.12),0 3px 9px 0 rgba(50,50,93,.08),0 1px 1.5px 0 rgba(0,0,0,.08),0 1px 2px 0 rgba(0,0,0,.08)}#seopress_cpt .tag-title:active,#seopress_cpt .tag-title:focus,#seopress_cpt .tag-title:hover,.seopress-option .tag-title:active,.seopress-option .tag-title:focus,.seopress-option .tag-title:hover{background:#232323;color:#fff;user-select:none}#seopress_cpt .tag-title .dashicons,.seopress-option .tag-title .dashicons{padding:0;height:16px;width:16px;font-size:16px;margin-right:5px;vertical-align:middle}.seopress-button{text-transform:uppercase;background:#fff;border-color:#c8d7e1;border-style:solid;border-width:1px 1px 2px;color:#2e4453;display:inline-block;margin:0;outline:0;overflow:hidden;text-overflow:ellipsis;text-decoration:none;vertical-align:top;box-sizing:border-box;font-size:14px;line-height:21px;padding:7px 14px 9px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.seopress-button:hover{border-color:#a8bece;color:#00a0d2}.seopress-button .dashicons{vertical-align:middle}#seopress-content #tab_seopress_seo_tools.seopress-useful-tools .widget{border-right:1px solid #e6ebf1;margin:0;padding:0 20px;width:calc(50% - 2px);box-sizing:border-box;display:inline-block;vertical-align:top}#seopress-content #tab_seopress_seo_tools.seopress-useful-tools .widget:first-child{width:100%;display:block;clear:both;border-right:none;border-bottom:1px solid #e6ebf1;padding-bottom:20px;margin-bottom:20px}#seopress-content #tab_seopress_seo_tools.seopress-useful-tools .widget:last-child{border-right:none}#seopress-content .seopress-useful-tools .widget-reverse ul{background:#fff}#seopress-content .seopress-useful-tools .widget-reverse li{padding:10px;margin:0;border-bottom:1px solid #e6ebf1}#seopress-content .seopress-useful-tools .widget-reverse li:hover{background:#f5f7fa}#seopress-content .seopress-useful-tools .widget-title{text-transform:uppercase;margin:0 0 10px;font-size:13px;padding:10px 0;color:#24b47e}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank{margin:0 0 10px;width:100%;box-sizing:border-box;display:block}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_reach{font-size:30px;font-weight:700;display:inline-block;width:100%;padding:0 0 20px;text-align:right}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_reach .highlight{display:inline-block;font-size:16px;background:inherit;width:100%;margin-bottom:10px}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_delta{font-size:14px;display:inline-block;vertical-align:top;text-align:left;margin:0 20px 0 0}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_delta{width:100%;text-align:right;font-size:18px;font-style:italic}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank{text-align:left}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country .highlight,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank .highlight{background:0 0;font-weight:700}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country{margin-right:0}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .seopress_alexa_rank_country_rank{margin-left:5px}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .minus .dashicons,#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .plus .dashicons{font-style:italic}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .plus{color:green}#seopress-content .seopress-useful-tools .widget-alexa .wrap-alexa-rank .minus{color:red}#seopress-content .seopress-reverse label,#seopress-content .seopress-useful-tools .widget-whois ul li span{font-weight:700}#seopress-content #seopress-reverse-url{width:100%;margin:10px 0}#seopress-content .widget-reverse p{margin:0}.post-type-seopress_backlinks .wp-list-table .column-seopress_backlinks_url{width:35%}.post-type-seopress_backlinks .wp-list-table .column-seopress_backlinks_anchor_text{width:20%}.seopress-styles #screen-meta{margin:0;position:relative;background-color:#fff;border-bottom:0 solid #f2f2f2;border-top:none;-webkit-box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08);box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08);top:0}.seopress-styles #contextual-help-link-wrap,.seopress-styles #screen-options-link-wrap{float:right;height:28px;margin:0 0 0 6px;border:1px solid #f2f2f2;border-top:none;background:#fff;-webkit-box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08);box-shadow:0 0 0 1px rgba(136,152,170,.1),0 15px 35px 0 rgba(49,49,93,.1),0 5px 15px 0 rgba(0,0,0,.08)}.seopress-styles #screen-meta-links .show-settings{box-shadow:none}.seopress-styles #screen-meta-links .screen-meta-toggle{position:relative;top:0;z-index:2000}.seopress-styles #contextual-help-back{background:#f8fafd}.seopress-styles .contextual-help-tabs .active{border-left:2px solid #3297d3;background:#f8fafd}#seopress-content input.toggle,.seopress-option input.toggle{max-height:0;max-width:0;opacity:0}#seopress-content input.toggle+label,.seopress-option input.toggle+label{display:inline-block;position:relative;box-shadow:inset 0 0 0 1px #d5d5d5;text-indent:-5000px;height:30px;width:50px;border-radius:15px}.wrap-toggle-checkboxes input.toggle+label{float:left;margin-right:10px}#seopress-content input.toggle+label:before,.seopress-option input.toggle+label:before{content:"";position:absolute;display:block;height:30px;width:30px;top:0;left:0;border-radius:15px;background:rgba(19,191,17,0);-moz-transition:.25s ease-in-out;-webkit-transition:.25s ease-in-out;transition:.25s ease-in-out}#seopress-content input.toggle+label:after,.seopress-option input.toggle+label:after{content:"";position:absolute;display:block;height:30px;width:30px;top:0;left:0;border-radius:15px;background:#fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2),0 2px 4px rgba(0,0,0,.2);-moz-transition:.25s ease-in-out;-webkit-transition:.25s ease-in-out;transition:.25s ease-in-out}#seopress-content input.toggle[data-toggle="1"]+label:before,.seopress-option input.toggle[data-toggle="1"]+label:before{width:50px;background:rgba(19,191,17,1)}#seopress-content input.toggle[data-toggle="1"]+label:after,.seopress-option input.toggle[data-toggle="1"]+label:after{left:20px;box-shadow:inset 0 0 0 1px rgba(19,191,17,1),0 2px 4px rgba(0,0,0,.2)}#seopress-content .seopress-page-list{position:relative}#seopress-notice-save{position:fixed;color:#fff;padding:15px 40px;font-size:.9rem;text-transform:uppercase;text-align:center;border-radius:0;background:rgba(74,184,102,.9);bottom:0;right:0;z-index:500;width:100%;font-weight:700}.seopress_page_seopress-pro-page #wpcontent{background:#f4f7fa}.seopress-option .wrap div.nav-tab-wrapper{border-bottom:1px solid RGB(238,238,238);margin:0 0 0 -16px;padding:0 10px;line-height:inherit;background:#fff;position:-webkit-sticky;position:sticky;top:102px;width:calc(100% + 12px);z-index:95;font-weight:400}#seopress-admin-tabs.wrap div.nav-tab-wrapper{margin:20px auto 0;max-width:53rem;width:100%;border-bottom:0;padding:0;line-height:inherit;position:-webkit-sticky;position:sticky;background:#f8fafd;z-index:100;top:31px;font-weight:400}#seopress-admin-tabs #tab_seopress_notifications.seopress-tab{background:0 0;padding:0}#seopress-admin-tabs .nav-tab,.seopress-option .nav-tab{border:0 solid #ccc;background:0 0;opacity:.5;padding:8px 8px;transition:opacity .3s linear;color:#191e23;margin:0;float:none;display:inline-block}#seopress-admin-tabs .nav-tab-active,#seopress-admin-tabs .nav-tab-active:hover,.seopress-option .about-wrap h2 .nav-tab-active,.seopress-option .nav-tab-active,.seopress-option .nav-tab-active:hover{background-color:#fff}#seopress-admin-tabs .nav-tab-active,#seopress-admin-tabs .nav-tab-active:focus,#seopress-admin-tabs .nav-tab-active:focus:active,#seopress-admin-tabs .nav-tab-active:hover,#seopress-admin-tabs .nav-tab:focus,.nav-tab-active:focus,.seopress-option .nav-tab-active,.seopress-option .nav-tab-active:focus:active,.seopress-option .nav-tab-active:hover,.seopress-option .nav-tab:focus{background:0 0;opacity:1;outline:0;font-weight:600;position:relative}.seopress-option .nav-tab-active::after{border-bottom:2px solid #0085ba;content:'';position:absolute;width:100%;bottom:0;left:0;display:block}#seopress-admin-tabs .nav-tab:hover,.seopress-option .nav-tab:hover{opacity:1}#seopress-admin-tabs .nav-tab:focus,.seopress-option .nav-tab:focus{outline:0;box-shadow:none}#section-export-redirects,#section-import-redirects{margin-top:-120px;padding-top:120px}.seopress-option .section-tool{border:none;box-shadow:none;background:0 0;position:relative}.seopress-option .section-tool::after{content:'';background:#dedede;height:1px;width:100%;display:block}#tab_seopress_social_accounts .help-social{position:relative;right:0;width:30%}#tab_seopress_social_accounts .form-table{float:left;width:70%}
assets/js/seopress-block-editor.js CHANGED
@@ -1,5 +1,5 @@
1
  //Retrieve title / meta-desc from source code
2
- jQuery(document).ready(function(){
3
  const { subscribe, select } = wp.data;
4
  let hasSaved = false;
5
 
@@ -9,37 +9,37 @@ let hasSaved = false;
9
  const isSaved = editor && editor.didPostSaveRequestSucceed();
10
 
11
  if ( ! hasSaved && isSaved ) {
12
- jQuery.ajax({
13
  method : 'GET',
14
  url : seopressAjaxRealPreview.seopress_real_preview,
15
  data: {
16
  action: 'seopress_do_real_preview',
17
- post_id: jQuery('#seopress-tabs').attr('data_id'),
18
- tax_name: jQuery('#seopress-tabs').attr('data_tax'),
19
- origin: jQuery('#seopress-tabs').attr('data_origin'),
20
- post_type: jQuery('#seopress_launch_analysis').attr('data_post_type'),
21
- seopress_analysis_target_kw: jQuery('#seopress_analysis_target_kw_meta').val(),
22
  _ajax_nonce: seopressAjaxRealPreview.seopress_nonce,
23
  },
24
  success : function( data ) {
25
- jQuery( '#seopress_cpt .google-snippet-preview .snippet-title' ).html(data.data.title);
26
- jQuery( '#seopress_cpt .google-snippet-preview .snippet-title-default' ).html(data.data.title);
27
- jQuery( '#seopress_titles_title_meta' ).attr("placeholder", data.data.title);
28
- jQuery( '#seopress_cpt .google-snippet-preview .snippet-description' ).html(data.data.meta_desc);
29
- jQuery( '#seopress_cpt .google-snippet-preview .snippet-description-default' ).html(data.data.meta_desc);
30
- jQuery( '#seopress_titles_desc_meta' ).attr("placeholder", data.data.meta_desc);
31
- jQuery( '#seopress_cpt #seopress_social_fb_title_meta' ).attr("placeholder", data.data.og_title);
32
- jQuery( '#seopress_cpt #seopress_social_fb_desc_meta' ).attr("placeholder", data.data.og_desc);
33
- jQuery( '#seopress_cpt #seopress_social_fb_img_meta' ).attr("placeholder", data.data.og_img);
34
- jQuery( '#seopress_cpt #seopress_social_twitter_title_meta' ).attr("placeholder", data.data.tw_title);
35
- jQuery( '#seopress_cpt #seopress_social_twitter_desc_meta' ).attr("placeholder", data.data.tw_desc);
36
- jQuery( '#seopress_cpt #seopress_social_twitter_img_meta' ).attr("placeholder", data.data.tw_img);
37
- jQuery( '#seopress_analysis_results_state' ).fadeIn().css('display', 'inline-block');
38
- jQuery( '#seopress_analysis_results_state' ).delay(3500).fadeOut();
39
- jQuery( '#seopress-analysis-tabs-1' ).load(' #seopress-analysis-tabs-1');
40
- jQuery( '#seopress-analysis-tabs-2' ).load(' #seopress-analysis-tabs-2');
41
- jQuery( '#seopress-analysis-tabs-3' ).load(' #seopress-analysis-tabs-3');
42
- jQuery( '#seopress-analysis-tabs-4' ).load(' #seopress-analysis-tabs-4');
43
  },
44
  });
45
  }
1
  //Retrieve title / meta-desc from source code
2
+ jQuery(document).ready(function($) {
3
  const { subscribe, select } = wp.data;
4
  let hasSaved = false;
5
 
9
  const isSaved = editor && editor.didPostSaveRequestSucceed();
10
 
11
  if ( ! hasSaved && isSaved ) {
12
+ $.ajax({
13
  method : 'GET',
14
  url : seopressAjaxRealPreview.seopress_real_preview,
15
  data: {
16
  action: 'seopress_do_real_preview',
17
+ post_id: $('#seopress-tabs').attr('data_id'),
18
+ tax_name: $('#seopress-tabs').attr('data_tax'),
19
+ origin: $('#seopress-tabs').attr('data_origin'),
20
+ post_type: $('#seopress_launch_analysis').attr('data_post_type'),
21
+ seopress_analysis_target_kw: $('#seopress_analysis_target_kw_meta').val(),
22
  _ajax_nonce: seopressAjaxRealPreview.seopress_nonce,
23
  },
24
  success : function( data ) {
25
+ $( '#seopress_cpt .google-snippet-preview .snippet-title' ).html(data.data.title);
26
+ $( '#seopress_cpt .google-snippet-preview .snippet-title-default' ).html(data.data.title);
27
+ $( '#seopress_titles_title_meta' ).attr("placeholder", data.data.title);
28
+ $( '#seopress_cpt .google-snippet-preview .snippet-description' ).html(data.data.meta_desc);
29
+ $( '#seopress_cpt .google-snippet-preview .snippet-description-default' ).html(data.data.meta_desc);
30
+ $( '#seopress_titles_desc_meta' ).attr("placeholder", data.data.meta_desc);
31
+ $( '#seopress_cpt #seopress_social_fb_title_meta' ).attr("placeholder", data.data.og_title);
32
+ $( '#seopress_cpt #seopress_social_fb_desc_meta' ).attr("placeholder", data.data.og_desc);
33
+ $( '#seopress_cpt #seopress_social_fb_img_meta' ).attr("placeholder", data.data.og_img);
34
+ $( '#seopress_cpt #seopress_social_twitter_title_meta' ).attr("placeholder", data.data.tw_title);
35
+ $( '#seopress_cpt #seopress_social_twitter_desc_meta' ).attr("placeholder", data.data.tw_desc);
36
+ $( '#seopress_cpt #seopress_social_twitter_img_meta' ).attr("placeholder", data.data.tw_img);
37
+ $( '#seopress_analysis_results_state' ).fadeIn().css('display', 'inline-block');
38
+ $( '#seopress_analysis_results_state' ).delay(3500).fadeOut();
39
+ $( '#seopress-analysis-tabs-1' ).load(' #seopress-analysis-tabs-1');
40
+ $( '#seopress-analysis-tabs-2' ).load(' #seopress-analysis-tabs-2');
41
+ $( '#seopress-analysis-tabs-3' ).load(' #seopress-analysis-tabs-3');
42
+ $( '#seopress-analysis-tabs-4' ).load(' #seopress-analysis-tabs-4');
43
  },
44
  });
45
  }
assets/js/seopress-cookies-ajax.js CHANGED
@@ -1,10 +1,10 @@
1
  //GA user consent
2
- jQuery(document).ready(function(){
3
  if(Cookies.get('seopress-user-consent-close') ==undefined && Cookies.get('seopress-user-consent-accept') ==undefined) {
4
- jQuery('.seopress-user-consent').removeClass('seopress-user-consent-hide');
5
  }
6
- jQuery('#seopress-user-consent-accept').on('click', function() {
7
- jQuery.ajax({
8
  method : 'GET',
9
  url : seopressAjaxGAUserConsent.seopress_cookies_user_consent,
10
  data : {
@@ -12,15 +12,15 @@ jQuery(document).ready(function(){
12
  _ajax_nonce: seopressAjaxGAUserConsent.seopress_nonce,
13
  },
14
  success : function( data ) {
15
- jQuery('.seopress-user-consent').remove();
16
- jQuery('head').append(data.data.gtag_js);
17
- jQuery('head').append(data.data.custom);
18
  Cookies.set('seopress-user-consent-accept', '1', { expires: 30 });
19
  },
20
  });
21
  });
22
- jQuery('#seopress-user-consent-close').on('click', function() {
23
- jQuery('.seopress-user-consent').remove();
24
  Cookies.set('seopress-user-consent-close', '1', { expires: 30 });
25
  });
26
  });
1
  //GA user consent
2
+ jQuery(document).ready(function($) {
3
  if(Cookies.get('seopress-user-consent-close') ==undefined && Cookies.get('seopress-user-consent-accept') ==undefined) {
4
+ $('.seopress-user-consent').removeClass('seopress-user-consent-hide');
5
  }
6
+ $('#seopress-user-consent-accept').on('click', function() {
7
+ $.ajax({
8
  method : 'GET',
9
  url : seopressAjaxGAUserConsent.seopress_cookies_user_consent,
10
  data : {
12
  _ajax_nonce: seopressAjaxGAUserConsent.seopress_nonce,
13
  },
14
  success : function( data ) {
15
+ $('.seopress-user-consent').remove();
16
+ $('head').append(data.data.gtag_js);
17
+ $('head').append(data.data.custom);
18
  Cookies.set('seopress-user-consent-accept', '1', { expires: 30 });
19
  },
20
  });
21
  });
22
+ $('#seopress-user-consent-close').on('click', function() {
23
+ $('.seopress-user-consent').remove();
24
  Cookies.set('seopress-user-consent-close', '1', { expires: 30 });
25
  });
26
  });
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
+ jQuery,jQuery(document).ready(function(s){function e(){s.ajax({method:"GET",url:seopressAjaxRealPreview.seopress_real_preview,data:{action:"seopress_do_real_preview",post_id:s("#seopress-tabs").attr("data_id"),tax_name:s("#seopress-tabs").attr("data_tax"),origin:s("#seopress-tabs").attr("data_origin"),post_type:s("#seopress_launch_analysis").attr("data_post_type"),seopress_analysis_target_kw:s("#seopress_analysis_target_kw_meta").val(),_ajax_nonce:seopressAjaxRealPreview.seopress_nonce},success:function(e){Object.keys(e.data).forEach(s=>{let t=document.createElement("textarea");t.innerHTML=e.data[s],e.data[s]=t.textContent}),s("#seopress_cpt .google-snippet-preview .snippet-title").html(e.data.title),s("#seopress_cpt .google-snippet-preview .snippet-title-default").html(e.data.title),s("#seopress_titles_title_meta").attr("placeholder",e.data.title),s("#seopress_cpt .google-snippet-preview .snippet-description").html(e.data.meta_desc),s("#seopress_cpt .google-snippet-preview .snippet-description-default").html(e.data.meta_desc),s("#seopress_titles_desc_meta").attr("placeholder",e.data.meta_desc),s("#seopress_cpt #seopress_social_fb_title_meta").attr("placeholder",e.data.og_title),s("#seopress_cpt #seopress_social_fb_desc_meta").attr("placeholder",e.data.og_desc),s("#seopress_cpt #seopress_social_fb_img_meta").attr("placeholder",e.data.og_img),s("#seopress_cpt #seopress_social_twitter_title_meta").attr("placeholder",e.data.tw_title),s("#seopress_cpt #seopress_social_twitter_desc_meta").attr("placeholder",e.data.tw_desc),s("#seopress_cpt #seopress_social_twitter_img_meta").attr("placeholder",e.data.tw_img),s("#seopress_cpt #seopress_robots_canonical_meta").attr("placeholder",e.data.canonical),s("#seopress_analysis_results_state").fadeIn().css("display","inline-block"),s("#seopress_analysis_results_state").delay(3500).fadeOut(),s("#seopress-analysis-tabs-1").load(" #seopress-analysis-tabs-1"),s("#seopress-analysis-tabs-2").load(" #seopress-analysis-tabs-2"),s("#seopress-analysis-tabs-3").load(" #seopress-analysis-tabs-3"),s("#seopress-analysis-tabs-4").load(" #seopress-analysis-tabs-4"),s(" #seopress_titles_title_counters_val").remove(),s(" #seopress_titles_desc_counters_val").remove(),sp_titles_counters(),sp_meta_desc_counters()}})}s("#seopress-analysis-tabs .hidden").removeClass("hidden"),s("#seopress-analysis-tabs").tabs(),e(),s("#seopress_launch_analysis").on("click",function(){e()})});
assets/js/seopress-counters.js CHANGED
@@ -1,162 +1,164 @@
1
  //Title tag counters / live preview
2
- function sp_titles_counters(){
3
- jQuery("#seopress_titles_title_counters").after("<div id=\"seopress_titles_title_counters_val\">/ 60</div>");
4
-
5
- //Init values
6
- if(jQuery('#seopress_titles_title_meta').val().length > 0) {
7
- jQuery("#seopress_titles_title_counters").text(jQuery("#seopress_titles_title_meta").val().length);
8
- jQuery("#seopress_titles_title_pixel").text(pixelTitle(jQuery("#seopress_titles_title_meta").val()));
9
- } else if(jQuery('#seopress_titles_title_meta').attr('placeholder').length) {
10
- jQuery("#seopress_titles_title_counters").text(jQuery("#seopress_titles_title_meta").attr('placeholder').length);
11
- jQuery("#seopress_titles_title_pixel").text(pixelTitle(jQuery("#seopress_titles_title_meta").attr('placeholder')));
12
- }
13
-
14
- if(jQuery('#seopress_titles_title_meta').val().length > 60){
15
- jQuery('#seopress_titles_title_counters').css('color', 'red');
16
- } else if(jQuery('#seopress_titles_title_meta').attr('placeholder').length > 60) {
17
- jQuery('#seopress_titles_title_counters').css('color', 'red');
18
- }
19
-
20
- //Pixels
21
- if(pixelTitle(jQuery('#seopress_titles_title_meta').val()) > 568){
22
- jQuery('#seopress_titles_title_pixel').css('color', 'red');
23
- } else if(pixelTitle(jQuery('#seopress_titles_title_meta').attr('placeholder')) > 568) {
24
- jQuery('#seopress_titles_title_pixel').css('color', 'red');
25
- }
26
-
27
- jQuery("#seopress_titles_title_meta").keyup(function(event) {
28
- jQuery('#seopress_titles_title_counters').css('color', 'inherit');
29
- jQuery('#seopress_titles_title_pixel').css('color', 'inherit');
30
-
31
- if(jQuery(this).val().length > 60){
32
- jQuery('#seopress_titles_title_counters').css('color', 'red');
33
  }
34
-
35
- if(pixelTitle(jQuery(this).val()) > 568){
36
- jQuery('#seopress_titles_title_pixel').css('color', 'red');
 
 
37
  }
38
 
39
- if(jQuery('#seopress_titles_title_meta').val().length > 0) {
40
- jQuery("#seopress_titles_title_counters").text(jQuery("#seopress_titles_title_meta").val().length);
41
- jQuery("#seopress_titles_title_pixel").text(pixelTitle(jQuery("#seopress_titles_title_meta").val()));
42
- } else if(jQuery('#seopress_titles_title_meta').attr('placeholder').length) {
43
- jQuery("#seopress_titles_title_counters").text(jQuery("#seopress_titles_title_meta").attr('placeholder').length);
44
- jQuery("#seopress_titles_title_pixel").text(pixelTitle(jQuery("#seopress_titles_title_meta").attr('placeholder')));
45
  }
46
 
47
- if(jQuery(this).val().length > 0){
48
- jQuery(".snippet-title-custom").text(event.target.value);
49
- jQuery(".snippet-title").css('display', 'none');
50
- jQuery(".snippet-title-custom").css('display', 'block');
51
- jQuery(".snippet-title-default").css('display', 'none');
52
- } else if(jQuery(this).val().length == 0) {
53
- jQuery(".snippet-title-default").css('display', 'block');
54
- jQuery(".snippet-title-custom").css('display', 'none');
55
- jQuery(".snippet-title").css('display', 'none');
56
- };
57
- });
58
- };
59
-
60
- //Meta description counters / live preview
61
- function sp_meta_desc_counters(){
62
- jQuery("#seopress_titles_desc_counters").after("<div id=\"seopress_titles_desc_counters_val\">/ 160</div>");
63
-
64
- //Init values
65
- if(jQuery('#seopress_titles_desc_meta').val().length > 0) {
66
- jQuery("#seopress_titles_desc_counters").text(jQuery("#seopress_titles_desc_meta").val().length);
67
- jQuery("#seopress_titles_desc_pixel").text(pixelTitle(jQuery("#seopress_titles_desc_meta").val()));
68
- } else if(jQuery('#seopress_titles_desc_meta').attr('placeholder').length) {
69
- jQuery("#seopress_titles_desc_counters").text(jQuery("#seopress_titles_desc_meta").attr('placeholder').length);
70
- jQuery("#seopress_titles_desc_pixel").text(pixelTitle(jQuery("#seopress_titles_desc_meta").attr('placeholder')));
71
- }
72
 
73
- if(jQuery('#seopress_titles_desc_meta').val().length > 160){
74
- jQuery('#seopress_titles_desc_counters').css('color', 'red');
75
- } else if(jQuery('#seopress_titles_desc_meta').attr('placeholder').length > 160) {
76
- jQuery('#seopress_titles_desc_counters').css('color', 'red');
77
- }
78
 
79
- //Pixels
80
- if(pixelTitle(jQuery('#seopress_titles_desc_meta').val()) > 940){
81
- jQuery('#seopress_titles_desc_pixel').css('color', 'red');
82
- } else if(pixelTitle(jQuery('#seopress_titles_desc_meta').attr('placeholder')) > 940) {
83
- jQuery('#seopress_titles_desc_pixel').css('color', 'red');
84
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
 
86
- jQuery("#seopress_titles_desc_meta").keyup(function(event) {
87
- jQuery('#seopress_titles_desc_counters').css('color', 'inherit');
88
- if(jQuery(this).val().length > 160){
89
- jQuery('#seopress_titles_desc_counters').css('color', 'red');
 
 
 
 
 
 
 
90
  }
91
 
92
- if(pixelTitle(jQuery(this).val()) > 940){
93
- jQuery('#seopress_titles_desc_pixel').css('color', 'red');
 
 
94
  }
95
 
96
- if(jQuery('#seopress_titles_desc_meta').val().length > 0) {
97
- jQuery("#seopress_titles_desc_counters").text(jQuery("#seopress_titles_desc_meta").val().length);
98
- jQuery("#seopress_titles_desc_pixel").text(pixelTitle(jQuery("#seopress_titles_desc_meta").val()));
99
- } else if(jQuery('#seopress_titles_desc_meta').attr('placeholder').length) {
100
- jQuery("#seopress_titles_desc_counters").text(jQuery("#seopress_titles_desc_meta").attr('placeholder').length);
101
- jQuery("#seopress_titles_desc_pixel").text(pixelTitle(jQuery("#seopress_titles_desc_meta").attr('placeholder')));
102
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
 
104
- if(jQuery(this).val().length > 0){
105
- jQuery(".snippet-description-custom").text(event.target.value);
106
- jQuery(".snippet-description").css('display', 'none');
107
- jQuery(".snippet-description-custom").css('display', 'inline');
108
- jQuery(".snippet-description-default").css('display', 'none');
109
- } else if(jQuery(this).val().length == 0) {
110
- jQuery(".snippet-description-default").css('display', 'inline');
111
- jQuery(".snippet-description-custom").css('display', 'none');
112
- jQuery(".snippet-description").css('display', 'none');
113
- };
114
- });
115
-
116
- jQuery("#excerpt").keyup(function(event) {
117
- if(jQuery('#seopress_titles_desc_meta').val().length == 0){
118
- if (jQuery(".snippet-description-custom").val().length == 0) {
119
- jQuery(".snippet-description-custom").text(event.target.value);
120
- jQuery(".snippet-description").css('display', 'none');
121
- jQuery(".snippet-description-custom").css('display', 'inline');
122
- jQuery(".snippet-description-default").css('display', 'none');
123
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
  }
125
- });
126
- };
127
-
128
- /*
129
- Title / meta desc length in Pixels
130
- Credits: francois@gokam.co.uk + Benjamin Denis
131
- Note: the first character is a nonbreaking space
132
- */
133
- function pixelTitle(input) {
134
- var letter = ' ·˙・«»àô€ÀÈÊÉéèê !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuüvwxyz{|}~–\n\r‘’£';
135
- var pixel = [5,6,6,18,10,10,10,10,10,12,12,12,12,10,10,10,5,5,6,10,10,16,12,3,6,6,7,11,5,6,5,5,10,10,10,10,10,10,10,10,10,10,5,5,11,11,11,10,18,12,12,13,13,12,11,14,13,5,9,12,10,15,13,14,12,14,13,12,11,13,12,17,12,12,11,5,5,5,8,10,6,10,10,9,10,10,5,10,10,4,4,9,4,15,10,10,10,10,6,9,9,5,10,9,13,9,9,9,6,5,6,11,10,0,0,4,4,10]
136
- var total = 0;
137
- for (var i = 0; i < input.length; i++) {
138
- total = total + pixel[letter.indexOf(input.substring(i,i+1))];
139
  }
140
- return total;
141
- }
142
 
143
  //Real Preview / Content Analysis
144
- jQuery(document).ready(function(){
145
  //Tabs
146
- jQuery("#seopress-analysis-tabs .hidden").removeClass('hidden');
147
- jQuery("#seopress-analysis-tabs").tabs();
148
  //Real Preview
149
  function seopress_real_preview() {
150
- jQuery.ajax({
151
  method : 'GET',
152
  url : seopressAjaxRealPreview.seopress_real_preview,
153
  data: {
154
  action: 'seopress_do_real_preview',
155
- post_id: jQuery('#seopress-tabs').attr('data_id'),
156
- tax_name: jQuery('#seopress-tabs').attr('data_tax'),
157
- origin: jQuery('#seopress-tabs').attr('data_origin'),
158
- post_type: jQuery('#seopress_launch_analysis').attr('data_post_type'),
159
- seopress_analysis_target_kw: jQuery('#seopress_analysis_target_kw_meta').val(),
160
  _ajax_nonce: seopressAjaxRealPreview.seopress_nonce,
161
  },
162
  success : function( data ) {
@@ -166,33 +168,34 @@ jQuery(document).ready(function(){
166
  data.data[key] = a.textContent;
167
  });
168
 
169
- jQuery( '#seopress_cpt .google-snippet-preview .snippet-title' ).html(data.data.title);
170
- jQuery( '#seopress_cpt .google-snippet-preview .snippet-title-default' ).html(data.data.title);
171
- jQuery( '#seopress_titles_title_meta' ).attr("placeholder", data.data.title);
172
- jQuery( '#seopress_cpt .google-snippet-preview .snippet-description' ).html(data.data.meta_desc);
173
- jQuery( '#seopress_cpt .google-snippet-preview .snippet-description-default' ).html(data.data.meta_desc);
174
- jQuery( '#seopress_titles_desc_meta' ).attr("placeholder", data.data.meta_desc);
175
- jQuery( '#seopress_cpt #seopress_social_fb_title_meta' ).attr("placeholder", data.data.og_title);
176
- jQuery( '#seopress_cpt #seopress_social_fb_desc_meta' ).attr("placeholder", data.data.og_desc);
177
- jQuery( '#seopress_cpt #seopress_social_fb_img_meta' ).attr("placeholder", data.data.og_img);
178
- jQuery( '#seopress_cpt #seopress_social_twitter_title_meta' ).attr("placeholder", data.data.tw_title);
179
- jQuery( '#seopress_cpt #seopress_social_twitter_desc_meta' ).attr("placeholder", data.data.tw_desc);
180
- jQuery( '#seopress_cpt #seopress_social_twitter_img_meta' ).attr("placeholder", data.data.tw_img);
181
- jQuery( '#seopress_analysis_results_state' ).fadeIn().css('display', 'inline-block');
182
- jQuery( '#seopress_analysis_results_state' ).delay(3500).fadeOut();
183
- jQuery( '#seopress-analysis-tabs-1' ).load(' #seopress-analysis-tabs-1');
184
- jQuery( '#seopress-analysis-tabs-2' ).load(' #seopress-analysis-tabs-2');
185
- jQuery( '#seopress-analysis-tabs-3' ).load(' #seopress-analysis-tabs-3');
186
- jQuery( '#seopress-analysis-tabs-4' ).load(' #seopress-analysis-tabs-4');
187
- jQuery(' #seopress_titles_title_counters_val' ).remove();
188
- jQuery(' #seopress_titles_desc_counters_val' ).remove();
 
189
  sp_titles_counters();
190
  sp_meta_desc_counters();
191
  },
192
  });
193
  };
194
  seopress_real_preview();
195
- jQuery('#seopress_launch_analysis').on('click', function() {
196
  seopress_real_preview();
197
  });
198
  });
1
  //Title tag counters / live preview
2
+ (function($) {
3
+ function sp_titles_counters(){
4
+ $("#seopress_titles_title_counters").after("<div id=\"seopress_titles_title_counters_val\">/ 60</div>");
5
+
6
+ //Init values
7
+ if($('#seopress_titles_title_meta').val().length > 0) {
8
+ $("#seopress_titles_title_counters").text($("#seopress_titles_title_meta").val().length);
9
+ $("#seopress_titles_title_pixel").text(pixelTitle($("#seopress_titles_title_meta").val()));
10
+ } else if($('#seopress_titles_title_meta').attr('placeholder').length) {
11
+ $("#seopress_titles_title_counters").text($("#seopress_titles_title_meta").attr('placeholder').length);
12
+ $("#seopress_titles_title_pixel").text(pixelTitle($("#seopress_titles_title_meta").attr('placeholder')));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  }
14
+
15
+ if($('#seopress_titles_title_meta').val().length > 60){
16
+ $('#seopress_titles_title_counters').css('color', 'red');
17
+ } else if($('#seopress_titles_title_meta').attr('placeholder').length > 60) {
18
+ $('#seopress_titles_title_counters').css('color', 'red');
19
  }
20
 
21
+ //Pixels
22
+ if(pixelTitle($('#seopress_titles_title_meta').val()) > 568){
23
+ $('#seopress_titles_title_pixel').css('color', 'red');
24
+ } else if(pixelTitle($('#seopress_titles_title_meta').attr('placeholder')) > 568) {
25
+ $('#seopress_titles_title_pixel').css('color', 'red');
 
26
  }
27
 
28
+ $("#seopress_titles_title_meta").keyup(function(event) {
29
+ $('#seopress_titles_title_counters').css('color', 'inherit');
30
+ $('#seopress_titles_title_pixel').css('color', 'inherit');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
 
32
+ if($(this).val().length > 60){
33
+ $('#seopress_titles_title_counters').css('color', 'red');
34
+ }
 
 
35
 
36
+ if(pixelTitle($(this).val()) > 568){
37
+ $('#seopress_titles_title_pixel').css('color', 'red');
38
+ }
39
+
40
+ if($('#seopress_titles_title_meta').val().length > 0) {
41
+ $("#seopress_titles_title_counters").text($("#seopress_titles_title_meta").val().length);
42
+ $("#seopress_titles_title_pixel").text(pixelTitle($("#seopress_titles_title_meta").val()));
43
+ } else if($('#seopress_titles_title_meta').attr('placeholder').length) {
44
+ $("#seopress_titles_title_counters").text($("#seopress_titles_title_meta").attr('placeholder').length);
45
+ $("#seopress_titles_title_pixel").text(pixelTitle($("#seopress_titles_title_meta").attr('placeholder')));
46
+ }
47
+
48
+ if($(this).val().length > 0){
49
+ $(".snippet-title-custom").text(event.target.value);
50
+ $(".snippet-title").css('display', 'none');
51
+ $(".snippet-title-custom").css('display', 'block');
52
+ $(".snippet-title-default").css('display', 'none');
53
+ } else if($(this).val().length == 0) {
54
+ $(".snippet-title-default").css('display', 'block');
55
+ $(".snippet-title-custom").css('display', 'none');
56
+ $(".snippet-title").css('display', 'none');
57
+ };
58
+ });
59
+ };
60
 
61
+ //Meta description counters / live preview
62
+ function sp_meta_desc_counters(){
63
+ $("#seopress_titles_desc_counters").after("<div id=\"seopress_titles_desc_counters_val\">/ 160</div>");
64
+
65
+ //Init values
66
+ if($('#seopress_titles_desc_meta').val().length > 0) {
67
+ $("#seopress_titles_desc_counters").text($("#seopress_titles_desc_meta").val().length);
68
+ $("#seopress_titles_desc_pixel").text(pixelTitle($("#seopress_titles_desc_meta").val()));
69
+ } else if($('#seopress_titles_desc_meta').attr('placeholder').length) {
70
+ $("#seopress_titles_desc_counters").text($("#seopress_titles_desc_meta").attr('placeholder').length);
71
+ $("#seopress_titles_desc_pixel").text(pixelTitle($("#seopress_titles_desc_meta").attr('placeholder')));
72
  }
73
 
74
+ if($('#seopress_titles_desc_meta').val().length > 160){
75
+ $('#seopress_titles_desc_counters').css('color', 'red');
76
+ } else if($('#seopress_titles_desc_meta').attr('placeholder').length > 160) {
77
+ $('#seopress_titles_desc_counters').css('color', 'red');
78
  }
79
 
80
+ //Pixels
81
+ if(pixelTitle($('#seopress_titles_desc_meta').val()) > 940){
82
+ $('#seopress_titles_desc_pixel').css('color', 'red');
83
+ } else if(pixelTitle($('#seopress_titles_desc_meta').attr('placeholder')) > 940) {
84
+ $('#seopress_titles_desc_pixel').css('color', 'red');
 
85
  }
86
+
87
+ $("#seopress_titles_desc_meta").keyup(function(event) {
88
+ $('#seopress_titles_desc_counters').css('color', 'inherit');
89
+ if($(this).val().length > 160){
90
+ $('#seopress_titles_desc_counters').css('color', 'red');
91
+ }
92
+
93
+ if(pixelTitle($(this).val()) > 940){
94
+ $('#seopress_titles_desc_pixel').css('color', 'red');
95
+ }
96
+
97
+ if($('#seopress_titles_desc_meta').val().length > 0) {
98
+ $("#seopress_titles_desc_counters").text($("#seopress_titles_desc_meta").val().length);
99
+ $("#seopress_titles_desc_pixel").text(pixelTitle($("#seopress_titles_desc_meta").val()));
100
+ } else if($('#seopress_titles_desc_meta').attr('placeholder').length) {
101
+ $("#seopress_titles_desc_counters").text($("#seopress_titles_desc_meta").attr('placeholder').length);
102
+ $("#seopress_titles_desc_pixel").text(pixelTitle($("#seopress_titles_desc_meta").attr('placeholder')));
103
+ }
104
+
105
+ if($(this).val().length > 0){
106
+ $(".snippet-description-custom").text(event.target.value);
107
+ $(".snippet-description").css('display', 'none');
108
+ $(".snippet-description-custom").css('display', 'inline');
109
+ $(".snippet-description-default").css('display', 'none');
110
+ } else if($(this).val().length == 0) {
111
+ $(".snippet-description-default").css('display', 'inline');
112
+ $(".snippet-description-custom").css('display', 'none');
113
+ $(".snippet-description").css('display', 'none');
114
+ };
115
+ });
116
 
117
+ $("#excerpt").keyup(function(event) {
118
+ if($('#seopress_titles_desc_meta').val().length == 0){
119
+ if ($(".snippet-description-custom").val().length == 0) {
120
+ $(".snippet-description-custom").text(event.target.value);
121
+ $(".snippet-description").css('display', 'none');
122
+ $(".snippet-description-custom").css('display', 'inline');
123
+ $(".snippet-description-default").css('display', 'none');
124
+ }
 
 
 
 
 
 
 
 
 
 
 
125
  }
126
+ });
127
+ };
128
+
129
+ /*
130
+ Title / meta desc length in Pixels
131
+ Credits: francois@gokam.co.uk + Benjamin Denis
132
+ Note: the first character is a nonbreaking space
133
+ */
134
+ function pixelTitle(input) {
135
+ var letter = ' ·˙・«»àô€ÀÈÊÉéèê !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuüvwxyz{|}~–\n\r‘’£';
136
+ var pixel = [5,6,6,18,10,10,10,10,10,12,12,12,12,10,10,10,5,5,6,10,10,16,12,3,6,6,7,11,5,6,5,5,10,10,10,10,10,10,10,10,10,10,5,5,11,11,11,10,18,12,12,13,13,12,11,14,13,5,9,12,10,15,13,14,12,14,13,12,11,13,12,17,12,12,11,5,5,5,8,10,6,10,10,9,10,10,5,10,10,4,4,9,4,15,10,10,10,10,6,9,9,5,10,9,13,9,9,9,6,5,6,11,10,0,0,4,4,10]
137
+ var total = 0;
138
+ for (var i = 0; i < input.length; i++) {
139
+ total = total + pixel[letter.indexOf(input.substring(i,i+1))];
140
  }
141
+ return total;
 
 
 
 
 
 
 
 
 
 
 
 
 
142
  }
143
+ })(jQuery);
 
144
 
145
  //Real Preview / Content Analysis
146
+ jQuery(document).ready(function($) {
147
  //Tabs
148
+ $("#seopress-analysis-tabs .hidden").removeClass('hidden');
149
+ $("#seopress-analysis-tabs").tabs();
150
  //Real Preview
151
  function seopress_real_preview() {
152
+ $.ajax({
153
  method : 'GET',
154
  url : seopressAjaxRealPreview.seopress_real_preview,
155
  data: {
156
  action: 'seopress_do_real_preview',
157
+ post_id: $('#seopress-tabs').attr('data_id'),
158
+ tax_name: $('#seopress-tabs').attr('data_tax'),
159
+ origin: $('#seopress-tabs').attr('data_origin'),
160
+ post_type: $('#seopress_launch_analysis').attr('data_post_type'),
161
+ seopress_analysis_target_kw: $('#seopress_analysis_target_kw_meta').val(),
162
  _ajax_nonce: seopressAjaxRealPreview.seopress_nonce,
163
  },
164
  success : function( data ) {
168
  data.data[key] = a.textContent;
169
  });
170
 
171
+ $( '#seopress_cpt .google-snippet-preview .snippet-title' ).html(data.data.title);
172
+ $( '#seopress_cpt .google-snippet-preview .snippet-title-default' ).html(data.data.title);
173
+ $( '#seopress_titles_title_meta' ).attr("placeholder", data.data.title);
174
+ $( '#seopress_cpt .google-snippet-preview .snippet-description' ).html(data.data.meta_desc);
175
+ $( '#seopress_cpt .google-snippet-preview .snippet-description-default' ).html(data.data.meta_desc);
176
+ $( '#seopress_titles_desc_meta' ).attr("placeholder", data.data.meta_desc);
177
+ $( '#seopress_cpt #seopress_social_fb_title_meta' ).attr("placeholder", data.data.og_title);
178
+ $( '#seopress_cpt #seopress_social_fb_desc_meta' ).attr("placeholder", data.data.og_desc);
179
+ $( '#seopress_cpt #seopress_social_fb_img_meta' ).attr("placeholder", data.data.og_img);
180
+ $( '#seopress_cpt #seopress_social_twitter_title_meta' ).attr("placeholder", data.data.tw_title);
181
+ $( '#seopress_cpt #seopress_social_twitter_desc_meta' ).attr("placeholder", data.data.tw_desc);
182
+ $( '#seopress_cpt #seopress_social_twitter_img_meta' ).attr("placeholder", data.data.tw_img);
183
+ $( '#seopress_cpt #seopress_robots_canonical_meta' ).attr("placeholder", data.data.canonical);
184
+ $( '#seopress_analysis_results_state' ).fadeIn().css('display', 'inline-block');
185
+ $( '#seopress_analysis_results_state' ).delay(3500).fadeOut();
186
+ $( '#seopress-analysis-tabs-1' ).load(' #seopress-analysis-tabs-1');
187
+ $( '#seopress-analysis-tabs-2' ).load(' #seopress-analysis-tabs-2');
188
+ $( '#seopress-analysis-tabs-3' ).load(' #seopress-analysis-tabs-3');
189
+ $( '#seopress-analysis-tabs-4' ).load(' #seopress-analysis-tabs-4');
190
+ $(' #seopress_titles_title_counters_val' ).remove();
191
+ $(' #seopress_titles_desc_counters_val' ).remove();
192
  sp_titles_counters();
193
  sp_meta_desc_counters();
194
  },
195
  });
196
  };
197
  seopress_real_preview();
198
+ $('#seopress_launch_analysis').on('click', function() {
199
  seopress_real_preview();
200
  });
201
  });
assets/js/seopress-counters.min.js CHANGED
@@ -1 +1 @@
1
- function sp_titles_counters(){jQuery("#seopress_titles_title_counters").after('<div id="seopress_titles_title_counters_val">/ 60</div>'),jQuery("#seopress_titles_title_meta").val().length>0?(jQuery("#seopress_titles_title_counters").text(jQuery("#seopress_titles_title_meta").val().length),jQuery("#seopress_titles_title_pixel").text(pixelTitle(jQuery("#seopress_titles_title_meta").val()))):jQuery("#seopress_titles_title_meta").attr("placeholder").length&&(jQuery("#seopress_titles_title_counters").text(jQuery("#seopress_titles_title_meta").attr("placeholder").length),jQuery("#seopress_titles_title_pixel").text(pixelTitle(jQuery("#seopress_titles_title_meta").attr("placeholder")))),jQuery("#seopress_titles_title_meta").val().length>60?jQuery("#seopress_titles_title_counters").css("color","red"):jQuery("#seopress_titles_title_meta").attr("placeholder").length>60&&jQuery("#seopress_titles_title_counters").css("color","red"),pixelTitle(jQuery("#seopress_titles_title_meta").val())>568?jQuery("#seopress_titles_title_pixel").css("color","red"):pixelTitle(jQuery("#seopress_titles_title_meta").attr("placeholder"))>568&&jQuery("#seopress_titles_title_pixel").css("color","red"),jQuery("#seopress_titles_title_meta").keyup(function(e){jQuery("#seopress_titles_title_counters").css("color","inherit"),jQuery("#seopress_titles_title_pixel").css("color","inherit"),jQuery(this).val().length>60&&jQuery("#seopress_titles_title_counters").css("color","red"),pixelTitle(jQuery(this).val())>568&&jQuery("#seopress_titles_title_pixel").css("color","red"),jQuery("#seopress_titles_title_meta").val().length>0?(jQuery("#seopress_titles_title_counters").text(jQuery("#seopress_titles_title_meta").val().length),jQuery("#seopress_titles_title_pixel").text(pixelTitle(jQuery("#seopress_titles_title_meta").val()))):jQuery("#seopress_titles_title_meta").attr("placeholder").length&&(jQuery("#seopress_titles_title_counters").text(jQuery("#seopress_titles_title_meta").attr("placeholder").length),jQuery("#seopress_titles_title_pixel").text(pixelTitle(jQuery("#seopress_titles_title_meta").attr("placeholder")))),jQuery(this).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==jQuery(this).val().length&&(jQuery(".snippet-title-default").css("display","block"),jQuery(".snippet-title-custom").css("display","none"),jQuery(".snippet-title").css("display","none"))})}function sp_meta_desc_counters(){jQuery("#seopress_titles_desc_counters").after('<div id="seopress_titles_desc_counters_val">/ 160</div>'),jQuery("#seopress_titles_desc_meta").val().length>0?(jQuery("#seopress_titles_desc_counters").text(jQuery("#seopress_titles_desc_meta").val().length),jQuery("#seopress_titles_desc_pixel").text(pixelTitle(jQuery("#seopress_titles_desc_meta").val()))):jQuery("#seopress_titles_desc_meta").attr("placeholder").length&&(jQuery("#seopress_titles_desc_counters").text(jQuery("#seopress_titles_desc_meta").attr("placeholder").length),jQuery("#seopress_titles_desc_pixel").text(pixelTitle(jQuery("#seopress_titles_desc_meta").attr("placeholder")))),jQuery("#seopress_titles_desc_meta").val().length>160?jQuery("#seopress_titles_desc_counters").css("color","red"):jQuery("#seopress_titles_desc_meta").attr("placeholder").length>160&&jQuery("#seopress_titles_desc_counters").css("color","red"),pixelTitle(jQuery("#seopress_titles_desc_meta").val())>940?jQuery("#seopress_titles_desc_pixel").css("color","red"):pixelTitle(jQuery("#seopress_titles_desc_meta").attr("placeholder"))>940&&jQuery("#seopress_titles_desc_pixel").css("color","red"),jQuery("#seopress_titles_desc_meta").keyup(function(e){jQuery("#seopress_titles_desc_counters").css("color","inherit"),jQuery(this).val().length>160&&jQuery("#seopress_titles_desc_counters").css("color","red"),pixelTitle(jQuery(this).val())>940&&jQuery("#seopress_titles_desc_pixel").css("color","red"),jQuery("#seopress_titles_desc_meta").val().length>0?(jQuery("#seopress_titles_desc_counters").text(jQuery("#seopress_titles_desc_meta").val().length),jQuery("#seopress_titles_desc_pixel").text(pixelTitle(jQuery("#seopress_titles_desc_meta").val()))):jQuery("#seopress_titles_desc_meta").attr("placeholder").length&&(jQuery("#seopress_titles_desc_counters").text(jQuery("#seopress_titles_desc_meta").attr("placeholder").length),jQuery("#seopress_titles_desc_pixel").text(pixelTitle(jQuery("#seopress_titles_desc_meta").attr("placeholder")))),jQuery(this).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==jQuery(this).val().length&&(jQuery(".snippet-description-default").css("display","inline"),jQuery(".snippet-description-custom").css("display","none"),jQuery(".snippet-description").css("display","none"))}),jQuery("#excerpt").keyup(function(e){0==jQuery("#seopress_titles_desc_meta").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"))})}function pixelTitle(e){for(var s=[5,10,10,10,10,10,12,12,12,12,10,10,10,5,5,6,10,10,16,12,3,6,6,7,11,5,6,5,5,10,10,10,10,10,10,10,10,10,10,5,5,11,11,11,10,18,12,12,13,13,12,11,14,13,5,9,12,10,15,13,14,12,14,13,12,11,13,12,17,12,12,11,5,5,5,8,10,6,10,10,9,10,10,5,10,10,4,4,9,4,15,10,10,10,10,6,9,5,10,9,13,9,9,9,6,5,6,11,10,0,0,4,4,10],t=0,r=0;r<e.length;r++)t+=s[" «»àô€ÀÈÊÉéèê !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~–\n\r‘’£".indexOf(e.substring(r,r+1))];return t}jQuery(document).ready(function(){function e(){jQuery.ajax({method:"GET",url:seopressAjaxRealPreview.seopress_real_preview,data:{action:"seopress_do_real_preview",post_id:jQuery("#seopress-tabs").attr("data_id"),tax_name:jQuery("#seopress-tabs").attr("data_tax"),origin:jQuery("#seopress-tabs").attr("data_origin"),post_type:jQuery("#seopress_launch_analysis").attr("data_post_type"),seopress_analysis_target_kw:jQuery("#seopress_analysis_target_kw_meta").val(),_ajax_nonce:seopressAjaxRealPreview.seopress_nonce},success:function(e){Object.keys(e.data).forEach(s=>{let t=document.createElement("textarea");t.innerHTML=e.data[s],e.data[s]=t.textContent}),jQuery("#seopress_cpt .google-snippet-preview .snippet-title").html(e.data.title),jQuery("#seopress_cpt .google-snippet-preview .snippet-title-default").html(e.data.title),jQuery("#seopress_titles_title_meta").attr("placeholder",e.data.title),jQuery("#seopress_cpt .google-snippet-preview .snippet-description").html(e.data.meta_desc),jQuery("#seopress_cpt .google-snippet-preview .snippet-description-default").html(e.data.meta_desc),jQuery("#seopress_titles_desc_meta").attr("placeholder",e.data.meta_desc),jQuery("#seopress_cpt #seopress_social_fb_title_meta").attr("placeholder",e.data.og_title),jQuery("#seopress_cpt #seopress_social_fb_desc_meta").attr("placeholder",e.data.og_desc),jQuery("#seopress_cpt #seopress_social_fb_img_meta").attr("placeholder",e.data.og_img),jQuery("#seopress_cpt #seopress_social_twitter_title_meta").attr("placeholder",e.data.tw_title),jQuery("#seopress_cpt #seopress_social_twitter_desc_meta").attr("placeholder",e.data.tw_desc),jQuery("#seopress_cpt #seopress_social_twitter_img_meta").attr("placeholder",e.data.tw_img),jQuery("#seopress_analysis_results_state").fadeIn().css("display","inline-block"),jQuery("#seopress_analysis_results_state").delay(3500).fadeOut(),jQuery("#seopress-analysis-tabs-1").load(" #seopress-analysis-tabs-1"),jQuery("#seopress-analysis-tabs-2").load(" #seopress-analysis-tabs-2"),jQuery("#seopress-analysis-tabs-3").load(" #seopress-analysis-tabs-3"),jQuery("#seopress-analysis-tabs-4").load(" #seopress-analysis-tabs-4"),jQuery(" #seopress_titles_title_counters_val").remove(),jQuery(" #seopress_titles_desc_counters_val").remove(),sp_titles_counters(),sp_meta_desc_counters()}})}jQuery("#seopress-analysis-tabs .hidden").removeClass("hidden"),jQuery("#seopress-analysis-tabs").tabs(),e(),jQuery("#seopress_launch_analysis").on("click",function(){e()})});
1
+ function sp_titles_counters(){jQuery("#seopress_titles_title_counters").after('<div id="seopress_titles_title_counters_val">/ 60</div>'),jQuery("#seopress_titles_title_meta").val().length>0?(jQuery("#seopress_titles_title_counters").text(jQuery("#seopress_titles_title_meta").val().length),jQuery("#seopress_titles_title_pixel").text(pixelTitle(jQuery("#seopress_titles_title_meta").val()))):jQuery("#seopress_titles_title_meta").attr("placeholder").length&&(jQuery("#seopress_titles_title_counters").text(jQuery("#seopress_titles_title_meta").attr("placeholder").length),jQuery("#seopress_titles_title_pixel").text(pixelTitle(jQuery("#seopress_titles_title_meta").attr("placeholder")))),jQuery("#seopress_titles_title_meta").val().length>60?jQuery("#seopress_titles_title_counters").css("color","red"):jQuery("#seopress_titles_title_meta").attr("placeholder").length>60&&jQuery("#seopress_titles_title_counters").css("color","red"),pixelTitle(jQuery("#seopress_titles_title_meta").val())>568?jQuery("#seopress_titles_title_pixel").css("color","red"):pixelTitle(jQuery("#seopress_titles_title_meta").attr("placeholder"))>568&&jQuery("#seopress_titles_title_pixel").css("color","red"),jQuery("#seopress_titles_title_meta").keyup(function(e){jQuery("#seopress_titles_title_counters").css("color","inherit"),jQuery("#seopress_titles_title_pixel").css("color","inherit"),jQuery(this).val().length>60&&jQuery("#seopress_titles_title_counters").css("color","red"),pixelTitle(jQuery(this).val())>568&&jQuery("#seopress_titles_title_pixel").css("color","red"),jQuery("#seopress_titles_title_meta").val().length>0?(jQuery("#seopress_titles_title_counters").text(jQuery("#seopress_titles_title_meta").val().length),jQuery("#seopress_titles_title_pixel").text(pixelTitle(jQuery("#seopress_titles_title_meta").val()))):jQuery("#seopress_titles_title_meta").attr("placeholder").length&&(jQuery("#seopress_titles_title_counters").text(jQuery("#seopress_titles_title_meta").attr("placeholder").length),jQuery("#seopress_titles_title_pixel").text(pixelTitle(jQuery("#seopress_titles_title_meta").attr("placeholder")))),jQuery(this).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==jQuery(this).val().length&&(jQuery(".snippet-title-default").css("display","block"),jQuery(".snippet-title-custom").css("display","none"),jQuery(".snippet-title").css("display","none"))})}function sp_meta_desc_counters(){jQuery("#seopress_titles_desc_counters").after('<div id="seopress_titles_desc_counters_val">/ 160</div>'),jQuery("#seopress_titles_desc_meta").val().length>0?(jQuery("#seopress_titles_desc_counters").text(jQuery("#seopress_titles_desc_meta").val().length),jQuery("#seopress_titles_desc_pixel").text(pixelTitle(jQuery("#seopress_titles_desc_meta").val()))):jQuery("#seopress_titles_desc_meta").attr("placeholder").length&&(jQuery("#seopress_titles_desc_counters").text(jQuery("#seopress_titles_desc_meta").attr("placeholder").length),jQuery("#seopress_titles_desc_pixel").text(pixelTitle(jQuery("#seopress_titles_desc_meta").attr("placeholder")))),jQuery("#seopress_titles_desc_meta").val().length>160?jQuery("#seopress_titles_desc_counters").css("color","red"):jQuery("#seopress_titles_desc_meta").attr("placeholder").length>160&&jQuery("#seopress_titles_desc_counters").css("color","red"),pixelTitle(jQuery("#seopress_titles_desc_meta").val())>940?jQuery("#seopress_titles_desc_pixel").css("color","red"):pixelTitle(jQuery("#seopress_titles_desc_meta").attr("placeholder"))>940&&jQuery("#seopress_titles_desc_pixel").css("color","red"),jQuery("#seopress_titles_desc_meta").keyup(function(e){jQuery("#seopress_titles_desc_counters").css("color","inherit"),jQuery(this).val().length>160&&jQuery("#seopress_titles_desc_counters").css("color","red"),pixelTitle(jQuery(this).val())>940&&jQuery("#seopress_titles_desc_pixel").css("color","red"),jQuery("#seopress_titles_desc_meta").val().length>0?(jQuery("#seopress_titles_desc_counters").text(jQuery("#seopress_titles_desc_meta").val().length),jQuery("#seopress_titles_desc_pixel").text(pixelTitle(jQuery("#seopress_titles_desc_meta").val()))):jQuery("#seopress_titles_desc_meta").attr("placeholder").length&&(jQuery("#seopress_titles_desc_counters").text(jQuery("#seopress_titles_desc_meta").attr("placeholder").length),jQuery("#seopress_titles_desc_pixel").text(pixelTitle(jQuery("#seopress_titles_desc_meta").attr("placeholder")))),jQuery(this).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==jQuery(this).val().length&&(jQuery(".snippet-description-default").css("display","inline"),jQuery(".snippet-description-custom").css("display","none"),jQuery(".snippet-description").css("display","none"))}),jQuery("#excerpt").keyup(function(e){0==jQuery("#seopress_titles_desc_meta").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"))})}function pixelTitle(e){for(var s=[5,6,6,18,10,10,10,10,10,12,12,12,12,10,10,10,5,5,6,10,10,16,12,3,6,6,7,11,5,6,5,5,10,10,10,10,10,10,10,10,10,10,5,5,11,11,11,10,18,12,12,13,13,12,11,14,13,5,9,12,10,15,13,14,12,14,13,12,11,13,12,17,12,12,11,5,5,5,8,10,6,10,10,9,10,10,5,10,10,4,4,9,4,15,10,10,10,10,6,9,9,5,10,9,13,9,9,9,6,5,6,11,10,0,0,4,4,10],t=0,l=0;l<e.length;l++)t+=s[" ·˙・«»àô€ÀÈÊÉéèê !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuüvwxyz{|}~–\n\r‘’£".indexOf(e.substring(l,l+1))];return t}jQuery(document).ready(function(e){function s(){e.ajax({method:"GET",url:seopressAjaxRealPreview.seopress_real_preview,data:{action:"seopress_do_real_preview",post_id:e("#seopress-tabs").attr("data_id"),tax_name:e("#seopress-tabs").attr("data_tax"),origin:e("#seopress-tabs").attr("data_origin"),post_type:e("#seopress_launch_analysis").attr("data_post_type"),seopress_analysis_target_kw:e("#seopress_analysis_target_kw_meta").val(),_ajax_nonce:seopressAjaxRealPreview.seopress_nonce},success:function(s){Object.keys(s.data).forEach(e=>{let t=document.createElement("textarea");t.innerHTML=s.data[e],s.data[e]=t.textContent}),e("#seopress_cpt .google-snippet-preview .snippet-title").html(s.data.title),e("#seopress_cpt .google-snippet-preview .snippet-title-default").html(s.data.title),e("#seopress_titles_title_meta").attr("placeholder",s.data.title),e("#seopress_cpt .google-snippet-preview .snippet-description").html(s.data.meta_desc),e("#seopress_cpt .google-snippet-preview .snippet-description-default").html(s.data.meta_desc),e("#seopress_titles_desc_meta").attr("placeholder",s.data.meta_desc),e("#seopress_cpt #seopress_social_fb_title_meta").attr("placeholder",s.data.og_title),e("#seopress_cpt #seopress_social_fb_desc_meta").attr("placeholder",s.data.og_desc),e("#seopress_cpt #seopress_social_fb_img_meta").attr("placeholder",s.data.og_img),e("#seopress_cpt #seopress_social_twitter_title_meta").attr("placeholder",s.data.tw_title),e("#seopress_cpt #seopress_social_twitter_desc_meta").attr("placeholder",s.data.tw_desc),e("#seopress_cpt #seopress_social_twitter_img_meta").attr("placeholder",s.data.tw_img),e("#seopress_cpt #seopress_robots_canonical_meta").attr("placeholder",s.data.canonical),e("#seopress_analysis_results_state").fadeIn().css("display","inline-block"),e("#seopress_analysis_results_state").delay(3500).fadeOut(),e("#seopress-analysis-tabs-1").load(" #seopress-analysis-tabs-1"),e("#seopress-analysis-tabs-2").load(" #seopress-analysis-tabs-2"),e("#seopress-analysis-tabs-3").load(" #seopress-analysis-tabs-3"),e("#seopress-analysis-tabs-4").load(" #seopress-analysis-tabs-4"),e(" #seopress_titles_title_counters_val").remove(),e(" #seopress_titles_desc_counters_val").remove(),sp_titles_counters(),sp_meta_desc_counters()}})}e("#seopress-analysis-tabs .hidden").removeClass("hidden"),e("#seopress-analysis-tabs").tabs(),s(),e("#seopress_launch_analysis").on("click",function(){s()})});
assets/js/seopress-dashboard.js CHANGED
@@ -1,544 +1,52 @@
1
- jQuery(document).ready(function(){
2
  //If no notices
3
- if (!jQuery.trim( jQuery("#seopress-notifications-center").html() )) {
4
- jQuery('#seopress-notifications-center').remove();
5
  }
6
-
7
- //Hide notices
8
- //**Wizard
9
- jQuery('#notice-wizard').on('click', function() {
10
- jQuery('#notice-wizard').attr('data-notice', jQuery('#notice-wizard').attr('data-notice') == '1' ? '0' : '1');
11
- jQuery.ajax({
12
- method : 'POST',
13
- url : seopressAjaxHideNotices.seopress_hide_notices,
14
- data : {
15
- action: 'seopress_hide_notices',
16
- notice: 'notice-wizard',
17
- notice_value: jQuery('#notice-wizard').attr('data-notice'),
18
- _ajax_nonce: seopressAjaxHideNotices.seopress_nonce,
19
- },
20
- success : function( data ) {
21
- jQuery( '#seopress-notice-save' ).css('display', 'block');
22
- jQuery( '#seopress-notice-save .html' ).html('Notice successfully removed');
23
- jQuery( '#notice-wizard-alert' ).fadeOut();
24
- jQuery( '#seopress-notice-save' ).delay(3500).fadeOut();
25
- },
26
- });
27
- });
28
- //**Divide comments
29
- jQuery('#notice-divide-comments').on('click', function() {
30
- jQuery('#notice-divide-comments').attr('data-notice', jQuery('#notice-divide-comments').attr('data-notice') == '1' ? '0' : '1');
31
- jQuery.ajax({
32
- method : 'POST',
33
- url : seopressAjaxHideNotices.seopress_hide_notices,
34
- data : {
35
- action: 'seopress_hide_notices',
36
- notice: 'notice-divide-comments',
37
- notice_value: jQuery('#notice-divide-comments').attr('data-notice'),
38
- _ajax_nonce: seopressAjaxHideNotices.seopress_nonce,
39
- },
40
- success : function( data ) {
41
- jQuery( '#seopress-notice-save' ).css('display', 'block');
42
- jQuery( '#seopress-notice-save .html' ).html('Notice successfully removed');
43
- jQuery( '#notice-divide-comments-alert' ).fadeOut();
44
- jQuery( '#seopress-notice-save' ).delay(3500).fadeOut();
45
- },
46
- });
47
- });
48
- //**Review SEOPress
49
- jQuery('#notice-review').on('click', function() {
50
- jQuery('#notice-review').attr('data-notice', jQuery('#notice-review').attr('data-notice') == '1' ? '0' : '1');
51
- jQuery.ajax({
52
- method : 'POST',
53
- url : seopressAjaxHideNotices.seopress_hide_notices,
54
- data : {
55
- action: 'seopress_hide_notices',
56
- notice: 'notice-review',
57
- notice_value: jQuery('#notice-review').attr('data-notice'),
58
- _ajax_nonce: seopressAjaxHideNotices.seopress_nonce,
59
- },
60
- success : function( data ) {
61
- jQuery( '#seopress-notice-save' ).css('display', 'block');
62
- jQuery( '#seopress-notice-save .html' ).html('Notice successfully removed');
63
- jQuery( '#notice-review-alert' ).fadeOut();
64
- jQuery( '#seopress-notice-save' ).delay(3500).fadeOut();
65
- },
66
- });
67
- });
68
- //**Trailingslash
69
- jQuery('#notice-trailingslash').on('click', function() {
70
- jQuery('#notice-trailingslash').attr('data-notice', jQuery('#notice-trailingslash').attr('data-notice') == '1' ? '0' : '1');
71
- jQuery.ajax({
72
- method : 'POST',
73
- url : seopressAjaxHideNotices.seopress_hide_notices,
74
- data : {
75
- action: 'seopress_hide_notices',
76
- notice: 'notice-trailingslash',
77
- notice_value: jQuery('#notice-trailingslash').attr('data-notice'),
78
- _ajax_nonce: seopressAjaxHideNotices.seopress_nonce,
79
- },
80
- success : function( data ) {
81
- jQuery( '#seopress-notice-save' ).css('display', 'block');
82
- jQuery( '#seopress-notice-save .html' ).html('Notice successfully removed');
83
- jQuery( '#notice-trailingslash-alert' ).fadeOut();
84
- jQuery( '#seopress-notice-save' ).delay(3500).fadeOut();
85
- },
86
- });
87
- });
88
- //**Posts per page
89
- jQuery('#notice-posts-number').on('click', function() {
90
- jQuery('#notice-posts-number').attr('data-notice', jQuery('#notice-posts-number').attr('data-notice') == '1' ? '0' : '1');
91
- jQuery.ajax({
92
- method : 'POST',
93
- url : seopressAjaxHideNotices.seopress_hide_notices,
94
- data : {
95
- action: 'seopress_hide_notices',
96
- notice: 'notice-posts-number',
97
- notice_value: jQuery('#notice-posts-number').attr('data-notice'),
98
- _ajax_nonce: seopressAjaxHideNotices.seopress_nonce,
99
- },
100
- success : function( data ) {
101
- jQuery( '#seopress-notice-save' ).css('display', 'block');
102
- jQuery( '#seopress-notice-save .html' ).html('Notice successfully removed');
103
- jQuery( '#notice-posts-number-alert' ).fadeOut();
104
- jQuery( '#seopress-notice-save' ).delay(3500).fadeOut();
105
- },
106
- });
107
- });
108
- //**RSS full text
109
- jQuery('#notice-rss-use-excerpt').on('click', function() {
110
- jQuery('#notice-rss-use-excerpt').attr('data-notice', jQuery('#notice-rss-use-excerpt').attr('data-notice') == '1' ? '0' : '1');
111
- jQuery.ajax({
112
- method : 'POST',
113
- url : seopressAjaxHideNotices.seopress_hide_notices,
114
- data : {
115
- action: 'seopress_hide_notices',
116
- notice: 'notice-rss-use-excerpt',
117
- notice_value: jQuery('#notice-rss-use-excerpt').attr('data-notice'),
118
- _ajax_nonce: seopressAjaxHideNotices.seopress_nonce,
119
- },
120
- success : function( data ) {
121
- jQuery( '#seopress-notice-save' ).css('display', 'block');
122
- jQuery( '#seopress-notice-save .html' ).html('Notice successfully removed');
123
- jQuery( '#notice-rss-use-excerpt-alert' ).fadeOut();
124
- jQuery( '#seopress-notice-save' ).delay(3500).fadeOut();
125
- },
126
- });
127
- });
128
- //**Search Console
129
- jQuery('#notice-search-console').on('click', function() {
130
- jQuery('#notice-search-console').attr('data-notice', jQuery('#notice-search-console').attr('data-notice') == '1' ? '0' : '1');
131
- jQuery.ajax({
132
- method : 'POST',
133
- url : seopressAjaxHideNotices.seopress_hide_notices,
134
- data : {
135
- action: 'seopress_hide_notices',
136
- notice: 'notice-search-console',
137
- notice_value: jQuery('#notice-search-console').attr('data-notice'),
138
- _ajax_nonce: seopressAjaxHideNotices.seopress_nonce,
139
- },
140
- success : function( data ) {
141
- jQuery( '#seopress-notice-save' ).css('display', 'block');
142
- jQuery( '#seopress-notice-save .html' ).html('Notice successfully removed');
143
- jQuery( '#notice-search-console-alert' ).fadeOut();
144
- jQuery( '#seopress-notice-save' ).delay(3500).fadeOut();
145
- },
146
- });
147
- });
148
- //**Google Business
149
- jQuery('#notice-google-business').on('click', function() {
150
- jQuery('#notice-google-business').attr('data-notice', jQuery('#notice-google-business').attr('data-notice') == '1' ? '0' : '1');
151
- jQuery.ajax({
152
- method : 'POST',
153
- url : seopressAjaxHideNotices.seopress_hide_notices,
154
- data : {
155
- action: 'seopress_hide_notices',
156
- notice: 'notice-google-business',
157
- notice_value: jQuery('#notice-google-business').attr('data-notice'),
158
- _ajax_nonce: seopressAjaxHideNotices.seopress_nonce,
159
- },
160
- success : function( data ) {
161
- jQuery( '#seopress-notice-save' ).css('display', 'block');
162
- jQuery( '#seopress-notice-save .html' ).html('Notice successfully removed');
163
- jQuery( '#notice-google-business-alert' ).fadeOut();
164
- jQuery( '#seopress-notice-save' ).delay(3500).fadeOut();
165
- },
166
- });
167
- });
168
- //**SSL
169
- jQuery('#notice-ssl').on('click', function() {
170
- jQuery('#notice-ssl').attr('data-notice', jQuery('#notice-ssl').attr('data-notice') == '1' ? '0' : '1');
171
- jQuery.ajax({
172
- method : 'POST',
173
- url : seopressAjaxHideNotices.seopress_hide_notices,
174
- data : {
175
- action: 'seopress_hide_notices',
176
- notice: 'notice-ssl',
177
- notice_value: jQuery('#notice-ssl').attr('data-notice'),
178
- _ajax_nonce: seopressAjaxHideNotices.seopress_nonce,
179
- },
180
- success : function( data ) {
181
- jQuery( '#seopress-notice-save' ).css('display', 'block');
182
- jQuery( '#seopress-notice-save .html' ).html('Notice successfully removed');
183
- jQuery( '#notice-ssl-alert' ).fadeOut();
184
- jQuery( '#seopress-notice-save' ).delay(3500).fadeOut();
185
- },
186
- });
187
- });
188
- //**Title tag add_theme_support
189
- jQuery('#notice-title-tag').on('click', function() {
190
- jQuery('#notice-title-tag').attr('data-notice', jQuery('#notice-title-tag').attr('data-notice') == '1' ? '0' : '1');
191
- jQuery.ajax({
192
- method : 'POST',
193
- url : seopressAjaxHideNotices.seopress_hide_notices,
194
- data : {
195
- action: 'seopress_hide_notices',
196
- notice: 'notice-title-tag',
197
- notice_value: jQuery('#notice-title-tag').attr('data-notice'),
198
- _ajax_nonce: seopressAjaxHideNotices.seopress_nonce,
199
- },
200
- success : function( data ) {
201
- jQuery( '#seopress-notice-save' ).css('display', 'block');
202
- jQuery( '#seopress-notice-save .html' ).html('Notice successfully removed');
203
- jQuery( '#notice-title-tag-alert' ).fadeOut();
204
- jQuery( '#seopress-notice-save' ).delay(3500).fadeOut();
205
- },
206
- });
207
- });
208
- //Titles
209
- jQuery('#toggle-titles').on('click', function() {
210
- jQuery('#toggle-titles').attr('data-toggle', jQuery('#toggle-titles').attr('data-toggle') == '1' ? '0' : '1');
211
- jQuery.ajax({
212
- method : 'POST',
213
- url : seopressAjaxToggleFeatures.seopress_toggle_features,
214
- data : {
215
- action: 'seopress_toggle_features',
216
- feature: 'toggle-titles',
217
- feature_value: jQuery('#toggle-titles').attr('data-toggle'),
218
- _ajax_nonce: seopressAjaxToggleFeatures.seopress_nonce,
219
- },
220
- success : function( data ) {
221
- jQuery( '#seopress-notice-save' ).css('display', 'block');
222
- jQuery( '#seopress-notice-save .html' ).html('Titles & metas has been successfully updated!');
223
- jQuery( '#titles-state' ).toggleClass('feature-state-on');
224
- jQuery( '#titles-state-default' ).toggleClass('feature-state-off');
225
- jQuery( '#seopress-notice-save' ).delay(3500).fadeOut();
226
- },
227
- });
228
- });
229
- //XML Sitemap
230
- jQuery('#toggle-xml-sitemap').on('click', function() {
231
- jQuery('#toggle-xml-sitemap').attr('data-toggle', jQuery('#toggle-xml-sitemap').attr('data-toggle') == '1' ? '0' : '1');
232
- jQuery.ajax({
233
- method : 'POST',
234
- url : seopressAjaxToggleFeatures.seopress_toggle_features,
235
- data : {
236
- action: 'seopress_toggle_features',
237
- feature: 'toggle-xml-sitemap',
238
- feature_value: jQuery('#toggle-xml-sitemap').attr('data-toggle'),
239
- _ajax_nonce: seopressAjaxToggleFeatures.seopress_nonce,
240
- },
241
- success : function( data ) {
242
- jQuery( '#seopress-notice-save' ).css('display', 'block');
243
- jQuery( '#seopress-notice-save .html' ).html('XML Sitemap has been successfully updated!');
244
- jQuery( '#sitemap-state' ).toggleClass('feature-state-on');
245
- jQuery( '#sitemap-state-default' ).toggleClass('feature-state-off');
246
- jQuery( '#seopress-notice-save' ).delay(3500).fadeOut();
247
- },
248
  });
249
  });
250
- //Social
251
- jQuery('#toggle-social').on('click', function() {
252
- jQuery('#toggle-social').attr('data-toggle', jQuery('#toggle-social').attr('data-toggle') == '1' ? '0' : '1');
253
- jQuery.ajax({
254
- method : 'POST',
255
- url : seopressAjaxToggleFeatures.seopress_toggle_features,
256
- data : {
257
- action: 'seopress_toggle_features',
258
- feature: 'toggle-social',
259
- feature_value: jQuery('#toggle-social').attr('data-toggle'),
260
- _ajax_nonce: seopressAjaxToggleFeatures.seopress_nonce,
261
- },
262
- success : function( data ) {
263
- jQuery( '#seopress-notice-save' ).css('display', 'block');
264
- jQuery( '#seopress-notice-save .html' ).html('Social has been successfully updated!');
265
- jQuery( '#social-state' ).toggleClass('feature-state-on');
266
- jQuery( '#social-state-default' ).toggleClass('feature-state-off');
267
- jQuery( '#seopress-notice-save' ).delay(3500).fadeOut();
268
- },
269
- });
270
- });
271
- //Google Analytics
272
- jQuery('#toggle-google-analytics').on('click', function() {
273
- jQuery('#toggle-google-analytics').attr('data-toggle', jQuery('#toggle-google-analytics').attr('data-toggle') == '1' ? '0' : '1');
274
- jQuery.ajax({
275
- method : 'POST',
276
- url : seopressAjaxToggleFeatures.seopress_toggle_features,
277
- data : {
278
- action: 'seopress_toggle_features',
279
- feature: 'toggle-google-analytics',
280
- feature_value: jQuery('#toggle-google-analytics').attr('data-toggle'),
281
- _ajax_nonce: seopressAjaxToggleFeatures.seopress_nonce,
282
- },
283
- success : function( data ) {
284
- jQuery( '#seopress-notice-save' ).css('display', 'block');
285
- jQuery( '#seopress-notice-save .html' ).html('Google Analytics has been successfully updated!');
286
- jQuery( '#analytics-state' ).toggleClass('feature-state-on');
287
- jQuery( '#analytics-state-default' ).toggleClass('feature-state-off');
288
- jQuery( '#seopress-notice-save' ).delay(3500).fadeOut();
289
- },
290
- });
291
- });
292
- //Advanced
293
- jQuery('#toggle-advanced').on('click', function() {
294
- jQuery('#toggle-advanced').attr('data-toggle', jQuery('#toggle-advanced').attr('data-toggle') == '1' ? '0' : '1');
295
- jQuery.ajax({
296
- method : 'POST',
297
- url : seopressAjaxToggleFeatures.seopress_toggle_features,
298
- data : {
299
- action: 'seopress_toggle_features',
300
- feature: 'toggle-advanced',
301
- feature_value: jQuery('#toggle-advanced').attr('data-toggle'),
302
- _ajax_nonce: seopressAjaxToggleFeatures.seopress_nonce,
303
- },
304
- success : function( data ) {
305
- jQuery( '#seopress-notice-save' ).css('display', 'block');
306
- jQuery( '#seopress-notice-save .html' ).html('Advanced features has been successfully updated!');
307
- jQuery( '#advanced-state' ).toggleClass('feature-state-on');
308
- jQuery( '#advanced-state-default' ).toggleClass('feature-state-off');
309
- jQuery( '#seopress-notice-save' ).delay(3500).fadeOut();
310
- },
311
- });
312
- });
313
- //Local Business
314
- jQuery('#toggle-local-business').on('click', function() {
315
- jQuery('#toggle-local-business').attr('data-toggle', jQuery('#toggle-local-business').attr('data-toggle') == '1' ? '0' : '1');
316
- jQuery.ajax({
317
- method : 'POST',
318
- url : seopressAjaxToggleFeatures.seopress_toggle_features,
319
- data : {
320
- action: 'seopress_toggle_features',
321
- feature: 'toggle-local-business',
322
- feature_value: jQuery('#toggle-local-business').attr('data-toggle'),
323
- _ajax_nonce: seopressAjaxToggleFeatures.seopress_nonce,
324
- },
325
- success : function( data ) {
326
- jQuery( '#seopress-notice-save' ).css('display', 'block');
327
- jQuery( '#seopress-notice-save .html' ).html('Local Business has been successfully updated!');
328
- jQuery( '#local-business-state' ).toggleClass('feature-state-on');
329
- jQuery( '#local-business-state-default' ).toggleClass('feature-state-off');
330
- jQuery( '#seopress-notice-save' ).delay(3500).fadeOut();
331
- },
332
- });
333
- });
334
- //WooCommerce
335
- jQuery('#toggle-woocommerce').on('click', function() {
336
- jQuery('#toggle-woocommerce').attr('data-toggle', jQuery('#toggle-woocommerce').attr('data-toggle') == '1' ? '0' : '1');
337
- jQuery.ajax({
338
- method : 'POST',
339
- url : seopressAjaxToggleFeatures.seopress_toggle_features,
340
- data : {
341
- action: 'seopress_toggle_features',
342
- feature: 'toggle-woocommerce',
343
- feature_value: jQuery('#toggle-woocommerce').attr('data-toggle'),
344
- _ajax_nonce: seopressAjaxToggleFeatures.seopress_nonce,
345
- },
346
- success : function( data ) {
347
- jQuery( '#seopress-notice-save' ).css('display', 'block');
348
- jQuery( '#seopress-notice-save .html' ).html('WooCommerce has been successfully updated!');
349
- jQuery( '#woocommerce-state' ).toggleClass('feature-state-on');
350
- jQuery( '#woocommerce-state-default' ).toggleClass('feature-state-off');
351
- jQuery( '#seopress-notice-save' ).delay(3500).fadeOut();
352
- },
353
- });
354
- });
355
- //EDD
356
- jQuery('#toggle-edd').on('click', function() {
357
- jQuery('#toggle-edd').attr('data-toggle', jQuery('#toggle-edd').attr('data-toggle') == '1' ? '0' : '1');
358
- jQuery.ajax({
359
- method : 'POST',
360
- url : seopressAjaxToggleFeatures.seopress_toggle_features,
361
- data : {
362
- action: 'seopress_toggle_features',
363
- feature: 'toggle-edd',
364
- feature_value: jQuery('#toggle-edd').attr('data-toggle'),
365
- _ajax_nonce: seopressAjaxToggleFeatures.seopress_nonce,
366
- },
367
- success : function( data ) {
368
- jQuery( '#seopress-notice-save' ).css('display', 'block');
369
- jQuery( '#seopress-notice-save .html' ).html('Easy Digital Downloads has been successfully updated!');
370
- jQuery( '#edd-state' ).toggleClass('feature-state-on');
371
- jQuery( '#edd-state-default' ).toggleClass('feature-state-off');
372
- jQuery( '#edd-notice-save' ).delay(3500).fadeOut();
373
- },
374
- });
375
- });
376
- //Dublin Core
377
- jQuery('#toggle-dublin-core').on('click', function() {
378
- jQuery('#toggle-dublin-core').attr('data-toggle', jQuery('#toggle-dublin-core').attr('data-toggle') == '1' ? '0' : '1');
379
- jQuery.ajax({
380
- method : 'POST',
381
- url : seopressAjaxToggleFeatures.seopress_toggle_features,
382
- data : {
383
- action: 'seopress_toggle_features',
384
- feature: 'toggle-dublin-core',
385
- feature_value: jQuery('#toggle-dublin-core').attr('data-toggle'),
386
- _ajax_nonce: seopressAjaxToggleFeatures.seopress_nonce,
387
- },
388
- success : function( data ) {
389
- jQuery( '#seopress-notice-save' ).css('display', 'block');
390
- jQuery( '#seopress-notice-save .html' ).html('Dublin Core has been successfully updated!');
391
- jQuery( '#dublin-core-state' ).toggleClass('feature-state-on');
392
- jQuery( '#dublin-core-state-default' ).toggleClass('feature-state-off');
393
- jQuery( '#seopress-notice-save' ).delay(3500).fadeOut();
394
- },
395
- });
396
- });
397
- //Rich Snippets
398
- jQuery('#toggle-rich-snippets').on('click', function() {
399
- jQuery('#toggle-rich-snippets').attr('data-toggle', jQuery('#toggle-rich-snippets').attr('data-toggle') == '1' ? '0' : '1');
400
- jQuery.ajax({
401
- method : 'POST',
402
- url : seopressAjaxToggleFeatures.seopress_toggle_features,
403
- data : {
404
- action: 'seopress_toggle_features',
405
- feature: 'toggle-rich-snippets',
406
- feature_value: jQuery('#toggle-rich-snippets').attr('data-toggle'),
407
- _ajax_nonce: seopressAjaxToggleFeatures.seopress_nonce,
408
- },
409
- success : function( data ) {
410
- jQuery( '#seopress-notice-save' ).css('display', 'block');
411
- jQuery( '#seopress-notice-save .html' ).html('Structure Data Types has been successfully updated!');
412
- jQuery( '#rich-snippets-state' ).toggleClass('feature-state-on');
413
- jQuery( '#rich-snippets-state-default' ).toggleClass('feature-state-off');
414
- jQuery( '#seopress-notice-save' ).delay(3500).fadeOut();
415
- },
416
- });
417
- });
418
- //Breadcrumbs
419
- jQuery('#toggle-breadcrumbs').on('click', function() {
420
- jQuery('#toggle-breadcrumbs').attr('data-toggle', jQuery('#toggle-breadcrumbs').attr('data-toggle') == '1' ? '0' : '1');
421
- jQuery.ajax({
422
- method : 'POST',
423
- url : seopressAjaxToggleFeatures.seopress_toggle_features,
424
- data : {
425
- action: 'seopress_toggle_features',
426
- feature: 'toggle-breadcrumbs',
427
- feature_value: jQuery('#toggle-breadcrumbs').attr('data-toggle'),
428
- _ajax_nonce: seopressAjaxToggleFeatures.seopress_nonce,
429
- },
430
- success : function( data ) {
431
- jQuery( '#seopress-notice-save' ).css('display', 'block');
432
- jQuery( '#seopress-notice-save .html' ).html('Breadcrumbs has been successfully updated!');
433
- jQuery( '#breadcrumbs-state' ).toggleClass('feature-state-on');
434
- jQuery( '#breadcrumbs-state-default' ).toggleClass('feature-state-off');
435
- jQuery( '#seopress-notice-save' ).delay(3500).fadeOut();
436
- },
437
- });
438
- });
439
- //Robots
440
- jQuery('#toggle-robots').on('click', function() {
441
- jQuery('#toggle-robots').attr('data-toggle', jQuery('#toggle-robots').attr('data-toggle') == '1' ? '0' : '1');
442
- jQuery.ajax({
443
- method : 'POST',
444
- url : seopressAjaxToggleFeatures.seopress_toggle_features,
445
- data : {
446
- action: 'seopress_toggle_features',
447
- feature: 'toggle-robots',
448
- feature_value: jQuery('#toggle-robots').attr('data-toggle'),
449
- _ajax_nonce: seopressAjaxToggleFeatures.seopress_nonce,
450
- },
451
- success : function( data ) {
452
- jQuery( '#seopress-notice-save' ).css('display', 'block');
453
- jQuery( '#seopress-notice-save .html' ).html('Robots has been successfully updated!');
454
- jQuery( '#robots-state' ).toggleClass('feature-state-on');
455
- jQuery( '#robots-state-default' ).toggleClass('feature-state-off');
456
- jQuery( '#seopress-notice-save' ).delay(3500).fadeOut();
457
- },
458
- });
459
- });
460
- //Google News
461
- jQuery('#toggle-news').on('click', function() {
462
- jQuery('#toggle-news').attr('data-toggle', jQuery('#toggle-news').attr('data-toggle') == '1' ? '0' : '1');
463
- jQuery.ajax({
464
- method : 'POST',
465
- url : seopressAjaxToggleFeatures.seopress_toggle_features,
466
- data : {
467
- action: 'seopress_toggle_features',
468
- feature: 'toggle-news',
469
- feature_value: jQuery('#toggle-news').attr('data-toggle'),
470
- _ajax_nonce: seopressAjaxToggleFeatures.seopress_nonce,
471
- },
472
- success : function( data ) {
473
- jQuery( '#seopress-notice-save' ).css('display', 'block');
474
- jQuery( '#seopress-notice-save .html' ).html('Google News Sitemap has been successfully updated!');
475
- jQuery( '#news-state' ).toggleClass('feature-state-on');
476
- jQuery( '#news-state-default' ).toggleClass('feature-state-off');
477
- jQuery( '#seopress-notice-save' ).delay(3500).fadeOut();
478
- },
479
- });
480
- });
481
- //404
482
- jQuery('#toggle-404').on('click', function() {
483
- jQuery('#toggle-404').attr('data-toggle', jQuery('#toggle-404').attr('data-toggle') == '1' ? '0' : '1');
484
- jQuery.ajax({
485
- method : 'POST',
486
- url : seopressAjaxToggleFeatures.seopress_toggle_features,
487
- data : {
488
- action: 'seopress_toggle_features',
489
- feature: 'toggle-404',
490
- feature_value: jQuery('#toggle-404').attr('data-toggle'),
491
- _ajax_nonce: seopressAjaxToggleFeatures.seopress_nonce,
492
- },
493
- success : function( data ) {
494
- jQuery( '#seopress-notice-save' ).css('display', 'block');
495
- jQuery( '#seopress-notice-save .html' ).html('Redirections has been successfully updated!');
496
- jQuery( '#redirections-state' ).toggleClass('feature-state-on');
497
- jQuery( '#redirections-state-default' ).toggleClass('feature-state-off');
498
- jQuery( '#seopress-notice-save' ).delay(3500).fadeOut();
499
- },
500
- });
501
- });
502
- //Rewrite
503
- jQuery('#toggle-rewrite').on('click', function() {
504
- jQuery('#toggle-rewrite').attr('data-toggle', jQuery('#toggle-rewrite').attr('data-toggle') == '1' ? '0' : '1');
505
- jQuery.ajax({
506
- method : 'POST',
507
- url : seopressAjaxToggleFeatures.seopress_toggle_features,
508
- data : {
509
- action: 'seopress_toggle_features',
510
- feature: 'toggle-rewrite',
511
- feature_value: jQuery('#toggle-rewrite').attr('data-toggle'),
512
- _ajax_nonce: seopressAjaxToggleFeatures.seopress_nonce,
513
- },
514
- success : function( data ) {
515
- jQuery( '#seopress-notice-save' ).css('display', 'block');
516
- jQuery( '#seopress-notice-save .html' ).html('URL Rewriting has been successfully updated!');
517
- jQuery( '#rewrite-state' ).toggleClass('feature-state-on');
518
- jQuery( '#rewrite-state-default' ).toggleClass('feature-state-off');
519
- jQuery( '#seopress-notice-save' ).delay(3500).fadeOut();
520
- },
521
- });
522
- });
523
- //White Label
524
- jQuery('#toggle-white-label').on('click', function() {
525
- jQuery('#toggle-white-label').attr('data-toggle', jQuery('#toggle-white-label').attr('data-toggle') == '1' ? '0' : '1');
526
- jQuery.ajax({
527
- method : 'POST',
528
- url : seopressAjaxToggleFeatures.seopress_toggle_features,
529
- data : {
530
- action: 'seopress_toggle_features',
531
- feature: 'toggle-white-label',
532
- feature_value: jQuery('#toggle-white-label').attr('data-toggle'),
533
- _ajax_nonce: seopressAjaxToggleFeatures.seopress_nonce,
534
- },
535
- success : function( data ) {
536
- jQuery( '#seopress-notice-save' ).css('display', 'block');
537
- jQuery( '#seopress-notice-save .html' ).html('White Label has been successfully updated!');
538
- jQuery( '#white-label-state' ).toggleClass('feature-state-on');
539
- jQuery( '#white-label-state-default' ).toggleClass('feature-state-off');
540
- jQuery( '#seopress-notice-save' ).delay(3500).fadeOut();
541
- },
542
  });
543
  });
544
  });
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 = ["notice-wizard","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"]
7
+ notices.forEach(function (item) {
8
+ $('#'+item).on('click', function() {
9
+ $('#'+item).attr('data-notice', $('#'+item).attr('data-notice') == '1' ? '0' : '1');
10
+ $.ajax({
11
+ method : 'POST',
12
+ url : seopressAjaxHideNotices.seopress_hide_notices,
13
+ data : {
14
+ action: 'seopress_hide_notices',
15
+ notice: item,
16
+ notice_value: $('#'+item).attr('data-notice'),
17
+ _ajax_nonce: seopressAjaxHideNotices.seopress_nonce,
18
+ },
19
+ success : function( data ) {
20
+ $( '#seopress-notice-save' ).css('display', 'block');
21
+ $( '#seopress-notice-save .html' ).html('Notice successfully removed');
22
+ $( '#'+item+'-alert' ).fadeOut();
23
+ $( '#seopress-notice-save' ).delay(3500).fadeOut();
24
+ },
25
+ });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  });
27
  });
28
+
29
+ const features = ["titles","xml-sitemap","social","google-analytics","advanced","local-business","woocommerce","edd","dublin-core","rich-snippets","breadcrumbs","robots","news","404","rewrite","white-label"]
30
+ features.forEach(function (item) {
31
+ $('#toggle-'+item).on('click', function() {
32
+ $('#toggle-'+item).attr('data-toggle', $('#toggle-'+item).attr('data-toggle') == '1' ? '0' : '1');
33
+ $.ajax({
34
+ method : 'POST',
35
+ url : seopressAjaxToggleFeatures.seopress_toggle_features,
36
+ data : {
37
+ action: 'seopress_toggle_features',
38
+ feature: 'toggle-'+item,
39
+ feature_value: $('#toggle-'+item).attr('data-toggle'),
40
+ _ajax_nonce: seopressAjaxToggleFeatures.seopress_nonce,
41
+ },
42
+ success : function( data ) {
43
+ $( '#seopress-notice-save' ).css('display', 'block');
44
+ $( '#seopress-notice-save .html' ).html(item + ' ' + seopressAjaxToggleFeatures.i18n);
45
+ $( '#'+item+'-state' ).toggleClass('feature-state-on');
46
+ $( '#'+item+'-state-default' ).toggleClass('feature-state-off');
47
+ $( '#seopress-notice-save' ).delay(3500).fadeOut();
48
+ },
49
+ });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  });
51
  });
52
  });
assets/js/seopress-media-uploader.js CHANGED
@@ -1,79 +1,28 @@
1
  jQuery(document).ready(function($){
2
- var mediaUploader;
3
-
4
- $('#seopress_social_fb_img_upload').click(function(e) {
5
- e.preventDefault();
6
- // If the uploader object has already been created, reopen the dialog
7
- if (mediaUploader) {
8
- mediaUploader.open();
9
- return;
10
- }
11
- // Extend the wp.media object
12
- mediaUploader = wp.media.frames.file_frame = wp.media({
13
- title: 'Choose Image',
14
- button: {
15
- text: 'Choose Image'
16
- }, multiple: false });
17
-
18
- // When a file is selected, grab the URL and set it as the text field's value
19
- mediaUploader.on('select', function() {
20
- attachment = mediaUploader.state().get('selection').first().toJSON();
21
- $('#seopress_social_fb_img_meta').val(attachment.url);
22
- });
23
-
24
- // Open the uploader dialog
25
- mediaUploader.open();
26
- });
27
- });
28
-
29
- jQuery(document).ready(function($){
30
- var mediaUploader;
31
- $('#seopress_social_twitter_img_upload').click(function(e) {
32
- e.preventDefault();
33
- // If the uploader object has already been created, reopen the dialog
34
- if (mediaUploader) {
35
  mediaUploader.open();
36
- return;
37
- }
38
- // Extend the wp.media object
39
- mediaUploader = wp.media.frames.file_frame = wp.media({
40
- title: 'Choose Image',
41
- button: {
42
- text: 'Choose Image'
43
- }, multiple: false });
44
-
45
- // When a file is selected, grab the URL and set it as the text field's value
46
- mediaUploader.on('select', function() {
47
- attachment = mediaUploader.state().get('selection').first().toJSON();
48
- $('#seopress_social_twitter_img_meta').val(attachment.url);
49
- });
50
- // Open the uploader dialog
51
- mediaUploader.open();
52
- });
53
- });
54
-
55
- jQuery(document).ready(function($){
56
- var mediaUploader;
57
- $('#seopress_social_knowledge_img_upload').click(function(e) {
58
- e.preventDefault();
59
- // If the uploader object has already been created, reopen the dialog
60
- if (mediaUploader) {
61
- mediaUploader.open();
62
- return;
63
- }
64
- // Extend the wp.media object
65
- mediaUploader = wp.media.frames.file_frame = wp.media({
66
- title: 'Choose Image',
67
- button: {
68
- text: 'Choose Image'
69
- }, multiple: false });
70
-
71
- // When a file is selected, grab the URL and set it as the text field's value
72
- mediaUploader.on('select', function() {
73
- attachment = mediaUploader.state().get('selection').first().toJSON();
74
- $('#seopress_social_knowledge_img_meta').val(attachment.url);
75
- });
76
- // Open the uploader dialog
77
- mediaUploader.open();
78
  });
79
  });
1
  jQuery(document).ready(function($){
2
+ const array = ["#seopress_social_knowledge_img", "#seopress_social_twitter_img", "#seopress_social_fb_img"]
3
+ array.forEach(function (item) {
4
+ var mediaUploader;
5
+ $(item + '_upload').click(function(e) {
6
+ e.preventDefault();
7
+ // If the uploader object has already been created, reopen the dialog
8
+ if (mediaUploader) {
9
+ mediaUploader.open();
10
+ return;
11
+ }
12
+ // Extend the wp.media object
13
+ mediaUploader = wp.media.frames.file_frame = wp.media({
14
+ title: 'Choose Image',
15
+ button: {
16
+ text: 'Choose Image'
17
+ }, multiple: false });
18
+
19
+ // When a file is selected, grab the URL and set it as the text field's value
20
+ mediaUploader.on('select', function() {
21
+ attachment = mediaUploader.state().get('selection').first().toJSON();
22
+ $(item + '_meta').val(attachment.url);
23
+ });
24
+ // Open the uploader dialog
 
 
 
 
 
 
 
 
 
 
25
  mediaUploader.open();
26
+ });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  });
28
  });
assets/js/seopress-network-tabs.js CHANGED
@@ -7,32 +7,32 @@ jQuery(document).ready(function($) {
7
  var seopress_tab_session_storage = sessionStorage.getItem("seopress_robots_tab");
8
 
9
  if (clean_hash[1] =='1') { //Robots Tab
10
- jQuery('#tab_seopress_robots-tab').addClass("nav-tab-active");
11
- jQuery('#tab_seopress_robots').addClass("active");
12
  } else if (clean_hash[1] =='2') { //htaccess Tab
13
- jQuery('#tab_seopress_htaccess-tab').addClass("nav-tab-active");
14
- jQuery('#tab_seopress_htaccess').addClass("active");
15
  } else if (clean_hash[1] =='3') { //White Label Tab
16
- jQuery('#tab_seopress_white_label-tab').addClass("nav-tab-active");
17
- jQuery('#tab_seopress_white_label').addClass("active");
18
  } else if (seopress_tab_session_storage) {
19
- jQuery('#seopress-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
20
- jQuery('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
21
 
22
- jQuery('#'+seopress_tab_session_storage.split('#tab=')+'-tab').addClass("nav-tab-active");
23
- jQuery('#'+seopress_tab_session_storage.split('#tab=')).addClass("active");
24
  } else {
25
  //Default TAB
26
- jQuery('#tab_seopress_robots-tab').addClass("nav-tab-active");
27
- jQuery('#tab_seopress_robots').addClass("active");
28
  }
29
  };
30
- jQuery("#seopress-tabs").find("a.nav-tab").click(function(e){
31
  e.preventDefault();
32
- var hash = jQuery(this).attr('href').split('#tab=')[1];
33
 
34
- jQuery('#seopress-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
35
- jQuery('#'+hash+'-tab').addClass("nav-tab-active");
36
 
37
  if (clean_hash[1]==1) {
38
  sessionStorage.setItem("seopress_robots_tab", 'tab_seopress_robots');
@@ -44,16 +44,16 @@ jQuery(document).ready(function($) {
44
  sessionStorage.setItem("seopress_robots_tab", hash);
45
  }
46
 
47
- jQuery('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
48
- jQuery('#'+hash).addClass("active");
49
  });
50
  //Robots
51
- jQuery('#seopress-tag-robots-1, #seopress-tag-robots-2, #seopress-tag-robots-3, #seopress-tag-robots-4, #seopress-tag-robots-5, #seopress-tag-robots-6, #seopress-tag-robots-7').click(function() {
52
- jQuery(".seopress_robots_file").val(jQuery(".seopress_robots_file").val() +'\n'+ jQuery(this).attr('data-tag'));
53
  });
54
  //Flush permalinks
55
- jQuery('#seopress-flush-permalinks2').on('click', function() {
56
- jQuery.ajax({
57
  method : 'GET',
58
  url : seopressAjaxResetPermalinks.seopress_flush_permalinks,
59
  data : {
@@ -65,9 +65,9 @@ jQuery(document).ready(function($) {
65
  },
66
  });
67
  });
68
- jQuery('#seopress-flush-permalinks2').on('click', function() {
69
- jQuery(this).attr("disabled", "disabled");
70
- jQuery( '.spinner' ).css( "visibility", "visible" );
71
- jQuery( '.spinner' ).css( "float", "none" );
72
  });
73
  });
7
  var seopress_tab_session_storage = sessionStorage.getItem("seopress_robots_tab");
8
 
9
  if (clean_hash[1] =='1') { //Robots Tab
10
+ $('#tab_seopress_robots-tab').addClass("nav-tab-active");
11
+ $('#tab_seopress_robots').addClass("active");
12
  } else if (clean_hash[1] =='2') { //htaccess Tab
13
+ $('#tab_seopress_htaccess-tab').addClass("nav-tab-active");
14
+ $('#tab_seopress_htaccess').addClass("active");
15
  } else if (clean_hash[1] =='3') { //White Label Tab
16
+ $('#tab_seopress_white_label-tab').addClass("nav-tab-active");
17
+ $('#tab_seopress_white_label').addClass("active");
18
  } else if (seopress_tab_session_storage) {
19
+ $('#seopress-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
20
+ $('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
21
 
22
+ $('#'+seopress_tab_session_storage.split('#tab=')+'-tab').addClass("nav-tab-active");
23
+ $('#'+seopress_tab_session_storage.split('#tab=')).addClass("active");
24
  } else {
25
  //Default TAB
26
+ $('#tab_seopress_robots-tab').addClass("nav-tab-active");
27
+ $('#tab_seopress_robots').addClass("active");
28
  }
29
  };
30
+ $("#seopress-tabs").find("a.nav-tab").click(function(e){
31
  e.preventDefault();
32
+ var hash = $(this).attr('href').split('#tab=')[1];
33
 
34
+ $('#seopress-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
35
+ $('#'+hash+'-tab').addClass("nav-tab-active");
36
 
37
  if (clean_hash[1]==1) {
38
  sessionStorage.setItem("seopress_robots_tab", 'tab_seopress_robots');
44
  sessionStorage.setItem("seopress_robots_tab", hash);
45
  }
46
 
47
+ $('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
48
+ $('#'+hash).addClass("active");
49
  });
50
  //Robots
51
+ $('#seopress-tag-robots-1, #seopress-tag-robots-2, #seopress-tag-robots-3, #seopress-tag-robots-4, #seopress-tag-robots-5, #seopress-tag-robots-6, #seopress-tag-robots-7').click(function() {
52
+ $(".seopress_robots_file").val($(".seopress_robots_file").val() +'\n'+ $(this).attr('data-tag'));
53
  });
54
  //Flush permalinks
55
+ $('#seopress-flush-permalinks2').on('click', function() {
56
+ $.ajax({
57
  method : 'GET',
58
  url : seopressAjaxResetPermalinks.seopress_flush_permalinks,
59
  data : {
65
  },
66
  });
67
  });
68
+ $('#seopress-flush-permalinks2').on('click', function() {
69
+ $(this).attr("disabled", "disabled");
70
+ $( '.spinner' ).css( "visibility", "visible" );
71
+ $( '.spinner' ).css( "float", "none" );
72
  });
73
  });
assets/js/seopress-sitemap-ajax.js CHANGED
@@ -1,6 +1,6 @@
1
- jQuery(document).ready(function(){
2
- jQuery('#seopress-flush-permalinks,#seopress-flush-permalinks2').on('click', function() {
3
- jQuery.ajax({
4
  method : 'GET',
5
  url : seopressAjaxResetPermalinks.seopress_flush_permalinks,
6
  data: {
@@ -12,11 +12,9 @@ jQuery(document).ready(function(){
12
  },
13
  });
14
  });
15
- });
16
- jQuery(document).ready(function(){
17
- jQuery('#seopress-flush-permalinks,#seopress-flush-permalinks2').on('click', function() {
18
- jQuery(this).attr("disabled", "disabled");
19
- jQuery( '.spinner' ).css( "visibility", "visible" );
20
- jQuery( '.spinner' ).css( "float", "none" );
21
  });
22
  });
1
+ jQuery(document).ready(function($) {
2
+ $('#seopress-flush-permalinks,#seopress-flush-permalinks2').on('click', function() {
3
+ $.ajax({
4
  method : 'GET',
5
  url : seopressAjaxResetPermalinks.seopress_flush_permalinks,
6
  data: {
12
  },
13
  });
14
  });
15
+ $('#seopress-flush-permalinks,#seopress-flush-permalinks2').on('click', function() {
16
+ $(this).attr("disabled", "disabled");
17
+ $( '.spinner' ).css( "visibility", "visible" );
18
+ $( '.spinner' ).css( "float", "none" );
 
 
19
  });
20
  });
assets/js/seopress-sitemap-video.js CHANGED
@@ -1,17 +1,17 @@
1
  //Video Sitemap
2
- jQuery(document).ready(function(){
3
  function seopress_call_media_uploader() {
4
  var mediaUploader;
5
  var thumb;
6
- jQuery('.seopress_video_thumbnail_upload').click(function(e) {
7
  e.preventDefault();
8
- $btn = jQuery(this);
9
  // If the uploader object has already been created, reopen the dialog
10
  if (mediaUploader) {
11
  mediaUploader.open();
12
  return;
13
  }
14
- thumb = jQuery(this).prev();
15
  // Extend the wp.media object
16
  mediaUploader = wp.media.frames.file_frame = wp.media({
17
  title: 'Choose Image',
@@ -30,11 +30,11 @@ jQuery(document).ready(function(){
30
  }
31
  seopress_call_media_uploader();
32
 
33
- var template = jQuery('#wrap-videos .video:last').clone();
34
 
35
  //accordion
36
  var stop = false;
37
- jQuery("#wrap-videos .video h3").click(function(event) {
38
  if (stop) {
39
  event.stopImmediatePropagation();
40
  event.preventDefault();
@@ -42,7 +42,7 @@ jQuery(document).ready(function(){
42
  }
43
  });
44
  function seopress_call_video_accordion() {
45
- jQuery( "#wrap-videos .video" ).accordion({
46
  collapsible: true,
47
  active: false,
48
  heightStyle:"panel",
@@ -51,10 +51,10 @@ jQuery(document).ready(function(){
51
  seopress_call_video_accordion();
52
 
53
  //define counter
54
- var sectionsCount = jQuery('#wrap-videos').attr('data-count');
55
 
56
  //add new section
57
- jQuery('#add-video').click(function() {
58
 
59
  //increment
60
  sectionsCount++;
@@ -71,22 +71,22 @@ jQuery(document).ready(function(){
71
  var newId = this.id.replace(/^(\w+)\[.*?\]/, '$1['+sectionsCount+']');
72
 
73
  //Update input name
74
- jQuery(this).attr('name', input_name.replace(/^(\w+)\[.*?\]/, '$1['+sectionsCount+']'));
75
 
76
  //Clear input value
77
- if (! jQuery(this).hasClass('seopress_video_thumbnail_upload')) {
78
- jQuery(this).attr('value','');
79
  }
80
 
81
  //update for label
82
- if (jQuery(this).is(':checkbox')) {
83
- jQuery(this).parent().attr('for', input_id.replace(/^(\w+)\[.*?\]/, '$1['+sectionsCount+']'));
84
- jQuery(this).parent().attr('id', input_name.replace(/^(\w+)\[.*?\]/, '$1['+sectionsCount+']'));
85
- } else if(jQuery(this).hasClass('seopress_video_thumbnail_upload')) {
86
  //do nothing
87
  } else {
88
- jQuery(this).prev().attr('for', input_id.replace(/^(\w+)\[.*?\]/, '$1['+sectionsCount+']'));
89
- jQuery(this).prev().attr('id', input_name.replace(/^(\w+)\[.*?\]/, '$1['+sectionsCount+']'));
90
  }
91
 
92
  //update id
@@ -97,20 +97,20 @@ jQuery(document).ready(function(){
97
  //inject new section
98
  .appendTo('#wrap-videos');
99
  seopress_call_video_accordion();
100
- jQuery( "#wrap-videos .video" ).accordion('destroy');
101
  seopress_call_video_accordion();
102
- jQuery("[id^=__wp-uploader-id-]").each(function() {
103
- jQuery(this).remove();
104
  });
105
  seopress_call_media_uploader();
106
  return false;
107
  });
108
 
109
  //remove section
110
- jQuery('#wrap-videos').on('click', '.remove-video', function() {
111
  //fade out section
112
- jQuery(this).fadeOut(300, function(){
113
- jQuery(this).parent().parent().parent().parent().remove();
114
  return false;
115
  });
116
  return false;
1
  //Video Sitemap
2
+ jQuery(document).ready(function($) {
3
  function seopress_call_media_uploader() {
4
  var mediaUploader;
5
  var thumb;
6
+ $('.seopress_video_thumbnail_upload').click(function(e) {
7
  e.preventDefault();
8
+ $btn = $(this);
9
  // If the uploader object has already been created, reopen the dialog
10
  if (mediaUploader) {
11
  mediaUploader.open();
12
  return;
13
  }
14
+ thumb = $(this).prev();
15
  // Extend the wp.media object
16
  mediaUploader = wp.media.frames.file_frame = wp.media({
17
  title: 'Choose Image',
30
  }
31
  seopress_call_media_uploader();
32
 
33
+ var template = $('#wrap-videos .video:last').clone();
34
 
35
  //accordion
36
  var stop = false;
37
+ $("#wrap-videos .video h3").click(function(event) {
38
  if (stop) {
39
  event.stopImmediatePropagation();
40
  event.preventDefault();
42
  }
43
  });
44
  function seopress_call_video_accordion() {
45
+ $( "#wrap-videos .video" ).accordion({
46
  collapsible: true,
47
  active: false,
48
  heightStyle:"panel",
51
  seopress_call_video_accordion();
52
 
53
  //define counter
54
+ var sectionsCount = $('#wrap-videos').attr('data-count');
55
 
56
  //add new section
57
+ $('#add-video').click(function() {
58
 
59
  //increment
60
  sectionsCount++;
71
  var newId = this.id.replace(/^(\w+)\[.*?\]/, '$1['+sectionsCount+']');
72
 
73
  //Update input name
74
+ $(this).attr('name', input_name.replace(/^(\w+)\[.*?\]/, '$1['+sectionsCount+']'));
75
 
76
  //Clear input value
77
+ if (! $(this).hasClass('seopress_video_thumbnail_upload')) {
78
+ $(this).attr('value','');
79
  }
80
 
81
  //update for label
82
+ if ($(this).is(':checkbox')) {
83
+ $(this).parent().attr('for', input_id.replace(/^(\w+)\[.*?\]/, '$1['+sectionsCount+']'));
84
+ $(this).parent().attr('id', input_name.replace(/^(\w+)\[.*?\]/, '$1['+sectionsCount+']'));
85
+ } else if($(this).hasClass('seopress_video_thumbnail_upload')) {
86
  //do nothing
87
  } else {
88
+ $(this).prev().attr('for', input_id.replace(/^(\w+)\[.*?\]/, '$1['+sectionsCount+']'));
89
+ $(this).prev().attr('id', input_name.replace(/^(\w+)\[.*?\]/, '$1['+sectionsCount+']'));
90
  }
91
 
92
  //update id
97
  //inject new section
98
  .appendTo('#wrap-videos');
99
  seopress_call_video_accordion();
100
+ $( "#wrap-videos .video" ).accordion('destroy');
101
  seopress_call_video_accordion();
102
+ $("[id^=__wp-uploader-id-]").each(function() {
103
+ $(this).remove();
104
  });
105
  seopress_call_media_uploader();
106
  return false;
107
  });
108
 
109
  //remove section
110
+ $('#wrap-videos').on('click', '.remove-video', function() {
111
  //fade out section
112
+ $(this).fadeOut(300, function(){
113
+ $(this).parent().parent().parent().parent().remove();
114
  return false;
115
  });
116
  return false;
assets/js/seopress-tabs.js CHANGED
@@ -2,63 +2,61 @@ jQuery(document).ready(function($) {
2
  if(typeof sessionStorage!='undefined') {
3
  var seopress_tab_session_storage = sessionStorage.getItem("seopress_titles_tab");
4
  if (seopress_tab_session_storage) {
5
- jQuery('#seopress-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
6
- jQuery('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
7
 
8
- jQuery('#'+seopress_tab_session_storage+'-tab').addClass("nav-tab-active");
9
- jQuery('#'+seopress_tab_session_storage).addClass("active");
10
  } else {
11
  //Default TAB
12
- jQuery('#tab_seopress_titles_home-tab').addClass("nav-tab-active");
13
- jQuery('#tab_seopress_titles_home').addClass("active");
14
  }
15
  };
16
- jQuery("#seopress-tabs").find("a.nav-tab").click(function(e){
17
  e.preventDefault();
18
- var hash = jQuery(this).attr('href').split('#tab=')[1];
19
 
20
- jQuery('#seopress-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
21
- jQuery('#'+hash+'-tab').addClass("nav-tab-active");
22
 
23
  sessionStorage.setItem("seopress_titles_tab", hash);
24
 
25
- jQuery('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
26
- jQuery('#'+hash).addClass("active");
27
  });
28
- });
29
 
30
- jQuery(document).ready(function($) {
31
- jQuery('#seopress-tag-site-title').click(function() {
32
- jQuery("#seopress_titles_home_site_title").val(jQuery("#seopress_titles_home_site_title").val() + ' ' + jQuery('#seopress-tag-site-title').attr('data-tag'));
33
  });
34
- jQuery('#seopress-tag-site-title-author').click(function() {
35
- jQuery("#seopress_titles_archive_post_author").val(jQuery("#seopress_titles_archive_post_author").val() + ' ' + jQuery('#seopress-tag-site-title-author').attr('data-tag'));
36
  });
37
- jQuery('#seopress-tag-site-title-date').click(function() {
38
- jQuery("#seopress_titles_archives_date_title").val(jQuery("#seopress_titles_archives_date_title").val() + ' ' + jQuery('#seopress-tag-site-title-date').attr('data-tag'));
39
  });
40
- jQuery('#seopress-tag-site-title-search').click(function() {
41
- jQuery("#seopress_titles_archives_search_title").val(jQuery("#seopress_titles_archives_search_title").val() + ' ' + jQuery('#seopress-tag-site-title-search').attr('data-tag'));
42
  });
43
- jQuery('#seopress-tag-site-title-404').click(function() {
44
- jQuery("#seopress_titles_archives_404_title").val(jQuery("#seopress_titles_archives_404_title").val() + ' ' + jQuery('#seopress-tag-site-title-404').attr('data-tag'));
45
  });
46
- jQuery('#seopress-tag-site-desc').click(function() {
47
- jQuery("#seopress_titles_home_site_title").val(jQuery("#seopress_titles_home_site_title").val() + ' ' + jQuery('#seopress-tag-site-desc').attr('data-tag'));
48
  });
49
- jQuery('#seopress-tag-meta-desc').click(function() {
50
- jQuery("#seopress_titles_home_site_desc").val(jQuery("#seopress_titles_home_site_desc").val() + ' ' + jQuery('#seopress-tag-meta-desc').attr('data-tag'));
51
  });
52
- jQuery('#seopress-tag-post-author').click(function() {
53
- jQuery("#seopress_titles_archive_post_author").val(jQuery("#seopress_titles_archive_post_author").val() + ' ' + jQuery('#seopress-tag-post-author').attr('data-tag'));
54
  });
55
- jQuery('#seopress-tag-archive-date').click(function() {
56
- jQuery("#seopress_titles_archives_date_title").val(jQuery("#seopress_titles_archives_date_title").val() + ' ' + jQuery('#seopress-tag-archive-date').attr('data-tag'));
57
  });
58
- jQuery('#seopress-tag-search-keywords').click(function() {
59
- jQuery("#seopress_titles_archives_search_title").val(jQuery("#seopress_titles_archives_search_title").val() + ' ' + jQuery('#seopress-tag-search-keywords').attr('data-tag'));
60
  });
61
- jQuery('.more-tags').click(function() {
62
- jQuery('#contextual-help-link').click();
63
  });
64
  });
2
  if(typeof sessionStorage!='undefined') {
3
  var seopress_tab_session_storage = sessionStorage.getItem("seopress_titles_tab");
4
  if (seopress_tab_session_storage) {
5
+ $('#seopress-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
6
+ $('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
7
 
8
+ $('#'+seopress_tab_session_storage+'-tab').addClass("nav-tab-active");
9
+ $('#'+seopress_tab_session_storage).addClass("active");
10
  } else {
11
  //Default TAB
12
+ $('#tab_seopress_titles_home-tab').addClass("nav-tab-active");
13
+ $('#tab_seopress_titles_home').addClass("active");
14
  }
15
  };
16
+ $("#seopress-tabs").find("a.nav-tab").click(function(e){
17
  e.preventDefault();
18
+ var hash = $(this).attr('href').split('#tab=')[1];
19
 
20
+ $('#seopress-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
21
+ $('#'+hash+'-tab').addClass("nav-tab-active");
22
 
23
  sessionStorage.setItem("seopress_titles_tab", hash);
24
 
25
+ $('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
26
+ $('#'+hash).addClass("active");
27
  });
 
28
 
29
+ $('#seopress-tag-site-title').click(function() {
30
+ $("#seopress_titles_home_site_title").val($("#seopress_titles_home_site_title").val() + ' ' + $('#seopress-tag-site-title').attr('data-tag'));
 
31
  });
32
+ $('#seopress-tag-site-title-author').click(function() {
33
+ $("#seopress_titles_archive_post_author").val($("#seopress_titles_archive_post_author").val() + ' ' + $('#seopress-tag-site-title-author').attr('data-tag'));
34
  });
35
+ $('#seopress-tag-site-title-date').click(function() {
36
+ $("#seopress_titles_archives_date_title").val($("#seopress_titles_archives_date_title").val() + ' ' + $('#seopress-tag-site-title-date').attr('data-tag'));
37
  });
38
+ $('#seopress-tag-site-title-search').click(function() {
39
+ $("#seopress_titles_archives_search_title").val($("#seopress_titles_archives_search_title").val() + ' ' + $('#seopress-tag-site-title-search').attr('data-tag'));
40
  });
41
+ $('#seopress-tag-site-title-404').click(function() {
42
+ $("#seopress_titles_archives_404_title").val($("#seopress_titles_archives_404_title").val() + ' ' + $('#seopress-tag-site-title-404').attr('data-tag'));
43
  });
44
+ $('#seopress-tag-site-desc').click(function() {
45
+ $("#seopress_titles_home_site_title").val($("#seopress_titles_home_site_title").val() + ' ' + $('#seopress-tag-site-desc').attr('data-tag'));
46
  });
47
+ $('#seopress-tag-meta-desc').click(function() {
48
+ $("#seopress_titles_home_site_desc").val($("#seopress_titles_home_site_desc").val() + ' ' + $('#seopress-tag-meta-desc').attr('data-tag'));
49
  });
50
+ $('#seopress-tag-post-author').click(function() {
51
+ $("#seopress_titles_archive_post_author").val($("#seopress_titles_archive_post_author").val() + ' ' + $('#seopress-tag-post-author').attr('data-tag'));
52
  });
53
+ $('#seopress-tag-archive-date').click(function() {
54
+ $("#seopress_titles_archives_date_title").val($("#seopress_titles_archives_date_title").val() + ' ' + $('#seopress-tag-archive-date').attr('data-tag'));
55
  });
56
+ $('#seopress-tag-search-keywords').click(function() {
57
+ $("#seopress_titles_archives_search_title").val($("#seopress_titles_archives_search_title").val() + ' ' + $('#seopress-tag-search-keywords').attr('data-tag'));
58
  });
59
+ $('.more-tags').click(function() {
60
+ $('#contextual-help-link').click();
61
  });
62
  });
assets/js/seopress-tabs2.js CHANGED
@@ -1,16 +1,16 @@
1
  jQuery(document).ready(function($) {
2
  $("#seopress-tabs .hidden").removeClass('hidden');
3
  $("#seopress-tabs").tabs();
4
- jQuery('#seopress-tag-single-title').click(function() {
5
- jQuery("#seopress_titles_title_meta").val(jQuery("#seopress_titles_title_meta").val() + ' ' + jQuery('#seopress-tag-single-title').attr('data-tag'));
6
  });
7
- jQuery('#seopress-tag-single-site-title').click(function() {
8
- jQuery("#seopress_titles_title_meta").val(jQuery("#seopress_titles_title_meta").val() + ' ' + jQuery('#seopress-tag-single-site-title').attr('data-tag'));
9
  });
10
- jQuery('#seopress-tag-single-excerpt').click(function() {
11
- jQuery("#seopress_titles_desc_meta").val(jQuery("#seopress_titles_desc_meta").val() + ' ' + jQuery('#seopress-tag-single-excerpt').attr('data-tag'));
12
  });
13
- jQuery('#seopress-tag-single-sep').click(function() {
14
- jQuery("#seopress_titles_title_meta").val(jQuery("#seopress_titles_title_meta").val() + ' ' + jQuery('#seopress-tag-single-sep').attr('data-tag'));
15
  });
16
  });
1
  jQuery(document).ready(function($) {
2
  $("#seopress-tabs .hidden").removeClass('hidden');
3
  $("#seopress-tabs").tabs();
4
+ $('#seopress-tag-single-title').click(function() {
5
+ $("#seopress_titles_title_meta").val($("#seopress_titles_title_meta").val() + ' ' + $('#seopress-tag-single-title').attr('data-tag'));
6
  });
7
+ $('#seopress-tag-single-site-title').click(function() {
8
+ $("#seopress_titles_title_meta").val($("#seopress_titles_title_meta").val() + ' ' + $('#seopress-tag-single-site-title').attr('data-tag'));
9
  });
10
+ $('#seopress-tag-single-excerpt').click(function() {
11
+ $("#seopress_titles_desc_meta").val($("#seopress_titles_desc_meta").val() + ' ' + $('#seopress-tag-single-excerpt').attr('data-tag'));
12
  });
13
+ $('#seopress-tag-single-sep').click(function() {
14
+ $("#seopress_titles_title_meta").val($("#seopress_titles_title_meta").val() + ' ' + $('#seopress-tag-single-sep').attr('data-tag'));
15
  });
16
  });
assets/js/seopress-tabs3.js CHANGED
@@ -2,28 +2,28 @@ jQuery(document).ready(function($) {
2
  if(typeof sessionStorage!='undefined') {
3
  var seopress_tab_session_storage = sessionStorage.getItem("seopress_social_tab");
4
  if (seopress_tab_session_storage) {
5
- jQuery('#seopress-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
6
- jQuery('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
7
 
8
- jQuery('#'+seopress_tab_session_storage+'-tab').addClass("nav-tab-active");
9
- jQuery('#'+seopress_tab_session_storage).addClass("active");
10
  } else {
11
  //Default TAB
12
- jQuery('#tab_seopress_social_knowledge-tab').addClass("nav-tab-active");
13
- jQuery('#tab_seopress_social_knowledge').addClass("active");
14
  }
15
  };
16
- jQuery("#seopress-tabs").find("a.nav-tab").click(function(e){
17
  e.preventDefault();
18
- var hash = jQuery(this).attr('href').split('#tab=')[1];
19
 
20
- jQuery('#seopress-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
21
- jQuery('#'+hash+'-tab').addClass("nav-tab-active");
22
 
23
 
24
  sessionStorage.setItem("seopress_social_tab", hash);
25
 
26
- jQuery('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
27
- jQuery('#'+hash).addClass("active");
28
  });
29
  });
2
  if(typeof sessionStorage!='undefined') {
3
  var seopress_tab_session_storage = sessionStorage.getItem("seopress_social_tab");
4
  if (seopress_tab_session_storage) {
5
+ $('#seopress-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
6
+ $('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
7
 
8
+ $('#'+seopress_tab_session_storage+'-tab').addClass("nav-tab-active");
9
+ $('#'+seopress_tab_session_storage).addClass("active");
10
  } else {
11
  //Default TAB
12
+ $('#tab_seopress_social_knowledge-tab').addClass("nav-tab-active");
13
+ $('#tab_seopress_social_knowledge').addClass("active");
14
  }
15
  };
16
+ $("#seopress-tabs").find("a.nav-tab").click(function(e){
17
  e.preventDefault();
18
+ var hash = $(this).attr('href').split('#tab=')[1];
19
 
20
+ $('#seopress-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
21
+ $('#'+hash+'-tab').addClass("nav-tab-active");
22
 
23
 
24
  sessionStorage.setItem("seopress_social_tab", hash);
25
 
26
+ $('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
27
+ $('#'+hash).addClass("active");
28
  });
29
  });
assets/js/seopress-tabs4.js CHANGED
@@ -2,28 +2,28 @@ jQuery(document).ready(function($) {
2
  if(typeof sessionStorage!='undefined') {
3
  var seopress_tab_session_storage = sessionStorage.getItem("seopress_xml_sitemap_tab");
4
  if (seopress_tab_session_storage) {
5
- jQuery('#seopress-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
6
- jQuery('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
7
 
8
- jQuery('#'+seopress_tab_session_storage+'-tab').addClass("nav-tab-active");
9
- jQuery('#'+seopress_tab_session_storage).addClass("active");
10
  } else {
11
  //Default TAB
12
- jQuery('#tab_seopress_xml_sitemap_general-tab').addClass("nav-tab-active");
13
- jQuery('#tab_seopress_xml_sitemap_general').addClass("active");
14
  }
15
  };
16
- jQuery("#seopress-tabs").find("a.nav-tab").click(function(e){
17
  e.preventDefault();
18
- var hash = jQuery(this).attr('href').split('#tab=')[1];
19
 
20
- jQuery('#seopress-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
21
- jQuery('#'+hash+'-tab').addClass("nav-tab-active");
22
 
23
 
24
  sessionStorage.setItem("seopress_xml_sitemap_tab", hash);
25
 
26
- jQuery('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
27
- jQuery('#'+hash).addClass("active");
28
  });
29
  });
2
  if(typeof sessionStorage!='undefined') {
3
  var seopress_tab_session_storage = sessionStorage.getItem("seopress_xml_sitemap_tab");
4
  if (seopress_tab_session_storage) {
5
+ $('#seopress-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
6
+ $('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
7
 
8
+ $('#'+seopress_tab_session_storage+'-tab').addClass("nav-tab-active");
9
+ $('#'+seopress_tab_session_storage).addClass("active");
10
  } else {
11
  //Default TAB
12
+ $('#tab_seopress_xml_sitemap_general-tab').addClass("nav-tab-active");
13
+ $('#tab_seopress_xml_sitemap_general').addClass("active");
14
  }
15
  };
16
+ $("#seopress-tabs").find("a.nav-tab").click(function(e){
17
  e.preventDefault();
18
+ var hash = $(this).attr('href').split('#tab=')[1];
19
 
20
+ $('#seopress-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
21
+ $('#'+hash+'-tab').addClass("nav-tab-active");
22
 
23
 
24
  sessionStorage.setItem("seopress_xml_sitemap_tab", hash);
25
 
26
+ $('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
27
+ $('#'+hash).addClass("active");
28
  });
29
  });
assets/js/seopress-tabs5.js CHANGED
@@ -2,28 +2,28 @@ jQuery(document).ready(function($) {
2
  if(typeof sessionStorage!='undefined') {
3
  var seopress_tab_session_storage = sessionStorage.getItem("tab_seopress_advanced_advanced");
4
  if (seopress_tab_session_storage) {
5
- jQuery('#seopress-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
6
- jQuery('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
7
 
8
- jQuery('#'+seopress_tab_session_storage+'-tab').addClass("nav-tab-active");
9
- jQuery('#'+seopress_tab_session_storage).addClass("active");
10
  } else {
11
  //Default TAB
12
- jQuery('#tab_seopress_advanced_advanced-tab').addClass("nav-tab-active");
13
- jQuery('#tab_seopress_advanced_advanced').addClass("active");
14
  }
15
  };
16
- jQuery("#seopress-tabs").find("a.nav-tab").click(function(e){
17
  e.preventDefault();
18
- var hash = jQuery(this).attr('href').split('#tab=')[1];
19
 
20
- jQuery('#seopress-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
21
- jQuery('#'+hash+'-tab').addClass("nav-tab-active");
22
 
23
 
24
  sessionStorage.setItem("tab_seopress_advanced_advanced", hash);
25
 
26
- jQuery('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
27
- jQuery('#'+hash).addClass("active");
28
  });
29
  });
2
  if(typeof sessionStorage!='undefined') {
3
  var seopress_tab_session_storage = sessionStorage.getItem("tab_seopress_advanced_advanced");
4
  if (seopress_tab_session_storage) {
5
+ $('#seopress-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
6
+ $('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
7
 
8
+ $('#'+seopress_tab_session_storage+'-tab').addClass("nav-tab-active");
9
+ $('#'+seopress_tab_session_storage).addClass("active");
10
  } else {
11
  //Default TAB
12
+ $('#tab_seopress_advanced_advanced-tab').addClass("nav-tab-active");
13
+ $('#tab_seopress_advanced_advanced').addClass("active");
14
  }
15
  };
16
+ $("#seopress-tabs").find("a.nav-tab").click(function(e){
17
  e.preventDefault();
18
+ var hash = $(this).attr('href').split('#tab=')[1];
19
 
20
+ $('#seopress-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
21
+ $('#'+hash+'-tab').addClass("nav-tab-active");
22
 
23
 
24
  sessionStorage.setItem("tab_seopress_advanced_advanced", hash);
25
 
26
+ $('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
27
+ $('#'+hash).addClass("active");
28
  });
29
  });
assets/js/seopress-tabs6.js CHANGED
@@ -2,27 +2,27 @@ jQuery(document).ready(function($) {
2
  if(typeof sessionStorage!='undefined') {
3
  var seopress_tab_session_storage = sessionStorage.getItem("tab_seopress_google_analytics_enable");
4
  if (seopress_tab_session_storage) {
5
- jQuery('#seopress-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
6
- jQuery('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
7
 
8
- jQuery('#'+seopress_tab_session_storage+'-tab').addClass("nav-tab-active");
9
- jQuery('#'+seopress_tab_session_storage).addClass("active");
10
  } else {
11
  //Default TAB
12
- jQuery('#tab_seopress_google_analytics_enable-tab').addClass("nav-tab-active");
13
- jQuery('#tab_seopress_google_analytics_enable').addClass("active");
14
  }
15
  };
16
- jQuery("#seopress-tabs").find("a.nav-tab").click(function(e){
17
  e.preventDefault();
18
- var hash = jQuery(this).attr('href').split('#tab=')[1];
19
 
20
- jQuery('#seopress-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
21
- jQuery('#'+hash+'-tab').addClass("nav-tab-active");
22
 
23
  sessionStorage.setItem("tab_seopress_google_analytics_enable", hash);
24
 
25
- jQuery('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
26
- jQuery('#'+hash).addClass("active");
27
  });
28
  });
2
  if(typeof sessionStorage!='undefined') {
3
  var seopress_tab_session_storage = sessionStorage.getItem("tab_seopress_google_analytics_enable");
4
  if (seopress_tab_session_storage) {
5
+ $('#seopress-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
6
+ $('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
7
 
8
+ $('#'+seopress_tab_session_storage+'-tab').addClass("nav-tab-active");
9
+ $('#'+seopress_tab_session_storage).addClass("active");
10
  } else {
11
  //Default TAB
12
+ $('#tab_seopress_google_analytics_enable-tab').addClass("nav-tab-active");
13
+ $('#tab_seopress_google_analytics_enable').addClass("active");
14
  }
15
  };
16
+ $("#seopress-tabs").find("a.nav-tab").click(function(e){
17
  e.preventDefault();
18
+ var hash = $(this).attr('href').split('#tab=')[1];
19
 
20
+ $('#seopress-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
21
+ $('#'+hash+'-tab').addClass("nav-tab-active");
22
 
23
  sessionStorage.setItem("tab_seopress_google_analytics_enable", hash);
24
 
25
+ $('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
26
+ $('#'+hash).addClass("active");
27
  });
28
  });
assets/js/seopress-tabs7.js CHANGED
@@ -1,5 +1,5 @@
1
  //SEO Tools Tabs
2
- jQuery(document).ready(function(){
3
  var get_hash = window.location.hash;
4
  var clean_hash = get_hash.split('$');
5
 
@@ -7,31 +7,31 @@ jQuery(document).ready(function(){
7
  var seopress_admin_tab_session_storage = sessionStorage.getItem("seopress_admin_tab");
8
 
9
  if (clean_hash[1] =='1') { //Notifications Tab
10
- jQuery('#tab_seopress_notifications-tab').addClass("nav-tab-active");
11
- jQuery('#tab_seopress_notifications').addClass("active");
12
  } else if (clean_hash[1] =='2') { //SEO Tools Tab
13
- jQuery('#tab_seopress_seo_tools-tab').addClass("nav-tab-active");
14
- jQuery('#tab_seopress_seo_tools').addClass("active");
15
  } else if (clean_hash[1] =='3') { //Links Tab
16
- jQuery('#tab_seopress_links-tab').addClass("nav-tab-active");
17
- jQuery('#tab_seopress_links_tools').addClass("active");
18
  } else if (seopress_admin_tab_session_storage) {
19
- jQuery('#seopress-admin-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
20
- jQuery('#seopress-admin-tabs').find('.seopress-tab.active').removeClass("active");
21
- jQuery('#'+seopress_admin_tab_session_storage.split('#tab=')+'-tab').addClass("nav-tab-active");
22
- jQuery('#'+seopress_admin_tab_session_storage.split('#tab=')).addClass("active");
23
  } else {
24
  //Default TAB
25
- jQuery('#tab_seopress_notifications-tab').addClass("nav-tab-active");
26
- jQuery('#tab_seopress_notifications').addClass("active");
27
  }
28
  };
29
- jQuery("#seopress-admin-tabs").find("a.nav-tab").click(function(e){
30
  e.preventDefault();
31
- var hash = jQuery(this).attr('href').split('#tab=')[1];
32
 
33
- jQuery('#seopress-admin-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
34
- jQuery('#'+hash+'-tab').addClass("nav-tab-active");
35
 
36
  if (clean_hash[1]==1) {
37
  sessionStorage.setItem("seopress_admin_tab", 'tab_seopress_notifications');
@@ -43,15 +43,12 @@ jQuery(document).ready(function(){
43
  sessionStorage.setItem("seopress_admin_tab", hash);
44
  }
45
 
46
- jQuery('#seopress-admin-tabs').find('.seopress-tab.active').removeClass("active");
47
- jQuery('#'+hash).addClass("active");
48
  });
49
- });
50
-
51
- //Request Alexa Rank
52
- jQuery(document).ready(function(){
53
- jQuery('#seopress-request-alexa-rank').on('click', function() {
54
- jQuery.ajax({
55
  method : 'GET',
56
  url : seopressAjaxAlexa.seopress_request_alexa_rank,
57
  data : {
@@ -63,19 +60,14 @@ jQuery(document).ready(function(){
63
  },
64
  });
65
  });
66
- });
67
- jQuery(document).ready(function(){
68
- jQuery('#seopress-request-alexa-rank').on('click', function() {
69
- jQuery(this).attr("disabled", "disabled");
70
- jQuery( '#spinner-alexa.spinner' ).css( "visibility", "visible" );
71
- jQuery( '#spinner-alexa.spinner' ).css( "float", "none" );
72
  });
73
- });
74
-
75
- //Request Reverse Domains
76
- jQuery(document).ready(function(){
77
- jQuery('#seopress-reverse-submit').on('click', function() {
78
- jQuery.ajax({
79
  method : 'GET',
80
  url : seopressAjaxReverse.seopress_request_reverse,
81
  data : {
@@ -87,11 +79,9 @@ jQuery(document).ready(function(){
87
  },
88
  });
89
  });
90
- });
91
- jQuery(document).ready(function(){
92
- jQuery('#seopress-reverse-submit').on('click', function() {
93
- jQuery(this).attr("disabled", "disabled");
94
- jQuery( '#spinner-reverse.spinner' ).css( "visibility", "visible" );
95
- jQuery( '#spinner-reverse.spinner' ).css( "float", "none" );
96
  });
97
  });
1
  //SEO Tools Tabs
2
+ jQuery(document).ready(function($) {
3
  var get_hash = window.location.hash;
4
  var clean_hash = get_hash.split('$');
5
 
7
  var seopress_admin_tab_session_storage = sessionStorage.getItem("seopress_admin_tab");
8
 
9
  if (clean_hash[1] =='1') { //Notifications Tab
10
+ $('#tab_seopress_notifications-tab').addClass("nav-tab-active");
11
+ $('#tab_seopress_notifications').addClass("active");
12
  } else if (clean_hash[1] =='2') { //SEO Tools Tab
13
+ $('#tab_seopress_seo_tools-tab').addClass("nav-tab-active");
14
+ $('#tab_seopress_seo_tools').addClass("active");
15
  } else if (clean_hash[1] =='3') { //Links Tab
16
+ $('#tab_seopress_links-tab').addClass("nav-tab-active");
17
+ $('#tab_seopress_links_tools').addClass("active");
18
  } else if (seopress_admin_tab_session_storage) {
19
+ $('#seopress-admin-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
20
+ $('#seopress-admin-tabs').find('.seopress-tab.active').removeClass("active");
21
+ $('#'+seopress_admin_tab_session_storage.split('#tab=')+'-tab').addClass("nav-tab-active");
22
+ $('#'+seopress_admin_tab_session_storage.split('#tab=')).addClass("active");
23
  } else {
24
  //Default TAB
25
+ $('#tab_seopress_notifications-tab').addClass("nav-tab-active");
26
+ $('#tab_seopress_notifications').addClass("active");
27
  }
28
  };
29
+ $("#seopress-admin-tabs").find("a.nav-tab").click(function(e){
30
  e.preventDefault();
31
+ var hash = $(this).attr('href').split('#tab=')[1];
32
 
33
+ $('#seopress-admin-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
34
+ $('#'+hash+'-tab').addClass("nav-tab-active");
35
 
36
  if (clean_hash[1]==1) {
37
  sessionStorage.setItem("seopress_admin_tab", 'tab_seopress_notifications');
43
  sessionStorage.setItem("seopress_admin_tab", hash);
44
  }
45
 
46
+ $('#seopress-admin-tabs').find('.seopress-tab.active').removeClass("active");
47
+ $('#'+hash).addClass("active");
48
  });
49
+ //Request Alexa Rank
50
+ $('#seopress-request-alexa-rank').on('click', function() {
51
+ $.ajax({
 
 
 
52
  method : 'GET',
53
  url : seopressAjaxAlexa.seopress_request_alexa_rank,
54
  data : {
60
  },
61
  });
62
  });
63
+ $('#seopress-request-alexa-rank').on('click', function() {
64
+ $(this).attr("disabled", "disabled");
65
+ $( '#spinner-alexa.spinner' ).css( "visibility", "visible" );
66
+ $( '#spinner-alexa.spinner' ).css( "float", "none" );
 
 
67
  });
68
+ //Request Reverse Domains
69
+ $('#seopress-reverse-submit').on('click', function() {
70
+ $.ajax({
 
 
 
71
  method : 'GET',
72
  url : seopressAjaxReverse.seopress_request_reverse,
73
  data : {
79
  },
80
  });
81
  });
82
+ $('#seopress-reverse-submit').on('click', function() {
83
+ $(this).attr("disabled", "disabled");
84
+ $( '#spinner-reverse.spinner' ).css( "visibility", "visible" );
85
+ $( '#spinner-reverse.spinner' ).css( "float", "none" );
 
 
86
  });
87
  });
assets/js/seopress-tabs8.js CHANGED
@@ -2,28 +2,28 @@ jQuery(document).ready(function($) {
2
  if(typeof sessionStorage!='undefined') {
3
  var seopress_tab_session_storage = sessionStorage.getItem("tab_seopress_tool_settings");
4
  if (seopress_tab_session_storage) {
5
- jQuery('#seopress-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
6
- jQuery('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
7
 
8
- jQuery('#'+seopress_tab_session_storage+'-tab').addClass("nav-tab-active");
9
- jQuery('#'+seopress_tab_session_storage).addClass("active");
10
  } else {
11
  //Default TAB
12
- jQuery('#tab_seopress_tool_settings-tab').addClass("nav-tab-active");
13
- jQuery('#tab_seopress_tool_settings').addClass("active");
14
  }
15
  };
16
- jQuery("#seopress-tabs").find("a.nav-tab").click(function(e){
17
  e.preventDefault();
18
- var hash = jQuery(this).attr('href').split('#tab=')[1];
19
 
20
- jQuery('#seopress-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
21
- jQuery('#'+hash+'-tab').addClass("nav-tab-active");
22
 
23
 
24
  sessionStorage.setItem("tab_seopress_tool_settings", hash);
25
 
26
- jQuery('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
27
- jQuery('#'+hash).addClass("active");
28
  });
29
  });
2
  if(typeof sessionStorage!='undefined') {
3
  var seopress_tab_session_storage = sessionStorage.getItem("tab_seopress_tool_settings");
4
  if (seopress_tab_session_storage) {
5
+ $('#seopress-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
6
+ $('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
7
 
8
+ $('#'+seopress_tab_session_storage+'-tab').addClass("nav-tab-active");
9
+ $('#'+seopress_tab_session_storage).addClass("active");
10
  } else {
11
  //Default TAB
12
+ $('#tab_seopress_tool_settings-tab').addClass("nav-tab-active");
13
+ $('#tab_seopress_tool_settings').addClass("active");
14
  }
15
  };
16
+ $("#seopress-tabs").find("a.nav-tab").click(function(e){
17
  e.preventDefault();
18
+ var hash = $(this).attr('href').split('#tab=')[1];
19
 
20
+ $('#seopress-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
21
+ $('#'+hash+'-tab').addClass("nav-tab-active");
22
 
23
 
24
  sessionStorage.setItem("tab_seopress_tool_settings", hash);
25
 
26
+ $('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
27
+ $('#'+hash).addClass("active");
28
  });
29
  });
assets/js/seopress-yoast-migrate.js CHANGED
@@ -1,11 +1,11 @@
1
- jQuery(document).ready(function(){
2
  //Yoast SEO
3
- jQuery('#seopress-yoast-migrate').on('click', function(e) {
4
  e.preventDefault();
5
  self.process_offset( 0, self );
6
  });
7
  process_offset = function( offset, self ) {
8
- jQuery.ajax({
9
  method : 'POST',
10
  url : seopressAjaxMigrate.seopress_yoast_migrate.seopress_yoast_migration,
11
  data : {
@@ -15,29 +15,29 @@ jQuery(document).ready(function(){
15
  },
16
  success : function( data ) {
17
  if( 'done' == data.data.offset ) {
18
- jQuery('#seopress-yoast-migrate').removeAttr("disabled");
19
- jQuery( '.spinner' ).css( "visibility", "hidden" );
20
- jQuery( '#yoast-migration-tool .log' ).html('Migration completed!');
21
  } else {
22
  self.process_offset( parseInt( data.data.offset ), self );
23
  }
24
  },
25
  });
26
  };
27
- jQuery('#seopress-yoast-migrate').on('click', function() {
28
- jQuery(this).attr("disabled", "disabled");
29
- jQuery( '#yoast-migration-tool .spinner' ).css( "visibility", "visible" );
30
- jQuery( '#yoast-migration-tool .spinner' ).css( "float", "none" );
31
- jQuery( '#yoast-migration-tool .log' ).html('');
32
  });
33
 
34
  //All In One
35
- jQuery('#seopress-aio-migrate').on('click', function(e2) {
36
  e2.preventDefault();
37
  self.process_offset2( 0, self );
38
  });
39
  process_offset2 = function( offset2, self ) {
40
- jQuery.ajax({
41
  method : 'POST',
42
  url : seopressAjaxMigrate.seopress_aio_migrate.seopress_aio_migration,
43
  data : {
@@ -47,9 +47,9 @@ jQuery(document).ready(function(){
47
  },
48
  success : function( data ) {
49
  if( 'done' == data.data.offset2 ) {
50
- jQuery('#seopress-aio-migrate').removeAttr("disabled");
51
- jQuery( '.spinner' ).css( "visibility", "hidden" );
52
- jQuery( '#aio-migration-tool .log' ).html('Migration completed!');
53
  } else {
54
  self.process_offset2( parseInt( data.data.offset2 ), self );
55
  }
@@ -57,20 +57,20 @@ jQuery(document).ready(function(){
57
  });
58
  };
59
 
60
- jQuery('#seopress-aio-migrate').on('click', function() {
61
- jQuery(this).attr("disabled", "disabled");
62
- jQuery( '#aio-migration-tool .spinner' ).css( "visibility", "visible" );
63
- jQuery( '#aio-migration-tool .spinner' ).css( "float", "none" );
64
- jQuery( '#aio-migration-tool .log' ).html('');
65
  });
66
 
67
  //SEO Framework
68
- jQuery('#seopress-seo-framework-migrate').on('click', function(e3) {
69
  e3.preventDefault();
70
  self.process_offset3( 0, self );
71
  });
72
  process_offset3 = function( offset3, self ) {
73
- jQuery.ajax({
74
  method : 'POST',
75
  url : seopressAjaxMigrate.seopress_seo_framework_migrate.seopress_seo_framework_migration,
76
  data : {
@@ -80,9 +80,9 @@ jQuery(document).ready(function(){
80
  },
81
  success : function( data ) {
82
  if( 'done' == data.data.offset3 ) {
83
- jQuery('#seopress-seo-framework-migrate').removeAttr("disabled");
84
- jQuery( '.spinner' ).css( "visibility", "hidden" );
85
- jQuery( '#seo-framework-migration-tool .log' ).html('Migration completed!');
86
  } else {
87
  self.process_offset3( parseInt( data.data.offset3 ), self );
88
  }
@@ -90,20 +90,20 @@ jQuery(document).ready(function(){
90
  });
91
  };
92
 
93
- jQuery('#seopress-seo-framework-migrate').on('click', function() {
94
- jQuery(this).attr("disabled", "disabled");
95
- jQuery( '#seo-framework-migration-tool .spinner' ).css( "visibility", "visible" );
96
- jQuery( '#seo-framework-migration-tool .spinner' ).css( "float", "none" );
97
- jQuery( '#seo-framework-migration-tool .log' ).html('');
98
  });
99
 
100
  //RK
101
- jQuery('#seopress-rk-migrate').on('click', function(e4) {
102
  e4.preventDefault();
103
  self.process_offset4( 0, self );
104
  });
105
  process_offset4 = function( offset4, self ) {
106
- jQuery.ajax({
107
  method : 'POST',
108
  url : seopressAjaxMigrate.seopress_rk_migrate.seopress_rk_migration,
109
  data : {
@@ -113,9 +113,9 @@ jQuery(document).ready(function(){
113
  },
114
  success : function( data ) {
115
  if( 'done' == data.data.offset4 ) {
116
- jQuery('#seopress-rk-migrate').removeAttr("disabled");
117
- jQuery( '.spinner' ).css( "visibility", "hidden" );
118
- jQuery( '#rk-migration-tool .log' ).html('Migration completed!');
119
  } else {
120
  self.process_offset4( parseInt( data.data.offset4 ), self );
121
  }
@@ -123,10 +123,10 @@ jQuery(document).ready(function(){
123
  });
124
  };
125
 
126
- jQuery('#seopress-rk-migrate').on('click', function() {
127
- jQuery(this).attr("disabled", "disabled");
128
- jQuery( '#rk-migration-tool .spinner' ).css( "visibility", "visible" );
129
- jQuery( '#rk-migration-tool .spinner' ).css( "float", "none" );
130
- jQuery( '#rk-migration-tool .log' ).html('');
131
  });
132
  });
1
+ jQuery(document).ready(function($) {
2
  //Yoast SEO
3
+ $('#seopress-yoast-migrate').on('click', function(e) {
4
  e.preventDefault();
5
  self.process_offset( 0, self );
6
  });
7
  process_offset = function( offset, self ) {
8
+ $.ajax({
9
  method : 'POST',
10
  url : seopressAjaxMigrate.seopress_yoast_migrate.seopress_yoast_migration,
11
  data : {
15
  },
16
  success : function( data ) {
17
  if( 'done' == data.data.offset ) {
18
+ $('#seopress-yoast-migrate').removeAttr("disabled");
19
+ $( '.spinner' ).css( "visibility", "hidden" );
20
+ $( '#yoast-migration-tool .log' ).html('Migration completed!');
21
  } else {
22
  self.process_offset( parseInt( data.data.offset ), self );
23
  }
24
  },
25
  });
26
  };
27
+ $('#seopress-yoast-migrate').on('click', function() {
28
+ $(this).attr("disabled", "disabled");
29
+ $( '#yoast-migration-tool .spinner' ).css( "visibility", "visible" );
30
+ $( '#yoast-migration-tool .spinner' ).css( "float", "none" );
31
+ $( '#yoast-migration-tool .log' ).html('');
32
  });
33
 
34
  //All In One
35
+ $('#seopress-aio-migrate').on('click', function(e2) {
36
  e2.preventDefault();
37
  self.process_offset2( 0, self );
38
  });
39
  process_offset2 = function( offset2, self ) {
40
+ $.ajax({
41
  method : 'POST',
42
  url : seopressAjaxMigrate.seopress_aio_migrate.seopress_aio_migration,
43
  data : {
47
  },
48
  success : function( data ) {
49
  if( 'done' == data.data.offset2 ) {
50
+ $('#seopress-aio-migrate').removeAttr("disabled");
51
+ $( '.spinner' ).css( "visibility", "hidden" );
52
+ $( '#aio-migration-tool .log' ).html('Migration completed!');
53
  } else {
54
  self.process_offset2( parseInt( data.data.offset2 ), self );
55
  }
57
  });
58
  };
59
 
60
+ $('#seopress-aio-migrate').on('click', function() {
61
+ $(this).attr("disabled", "disabled");
62
+ $( '#aio-migration-tool .spinner' ).css( "visibility", "visible" );
63
+ $( '#aio-migration-tool .spinner' ).css( "float", "none" );
64
+ $( '#aio-migration-tool .log' ).html('');
65
  });
66
 
67
  //SEO Framework
68
+ $('#seopress-seo-framework-migrate').on('click', function(e3) {
69
  e3.preventDefault();
70
  self.process_offset3( 0, self );
71
  });
72
  process_offset3 = function( offset3, self ) {
73
+ $.ajax({
74
  method : 'POST',
75
  url : seopressAjaxMigrate.seopress_seo_framework_migrate.seopress_seo_framework_migration,
76
  data : {
80
  },
81
  success : function( data ) {
82
  if( 'done' == data.data.offset3 ) {
83
+ $('#seopress-seo-framework-migrate').removeAttr("disabled");
84
+ $( '.spinner' ).css( "visibility", "hidden" );
85
+ $( '#seo-framework-migration-tool .log' ).html('Migration completed!');
86
  } else {
87
  self.process_offset3( parseInt( data.data.offset3 ), self );
88
  }
90
  });
91
  };
92
 
93
+ $('#seopress-seo-framework-migrate').on('click', function() {
94
+ $(this).attr("disabled", "disabled");
95
+ $( '#seo-framework-migration-tool .spinner' ).css( "visibility", "visible" );
96
+ $( '#seo-framework-migration-tool .spinner' ).css( "float", "none" );
97
+ $( '#seo-framework-migration-tool .log' ).html('');
98
  });
99
 
100
  //RK
101
+ $('#seopress-rk-migrate').on('click', function(e4) {
102
  e4.preventDefault();
103
  self.process_offset4( 0, self );
104
  });
105
  process_offset4 = function( offset4, self ) {
106
+ $.ajax({
107
  method : 'POST',
108
  url : seopressAjaxMigrate.seopress_rk_migrate.seopress_rk_migration,
109
  data : {
113
  },
114
  success : function( data ) {
115
  if( 'done' == data.data.offset4 ) {
116
+ $('#seopress-rk-migrate').removeAttr("disabled");
117
+ $( '.spinner' ).css( "visibility", "hidden" );
118
+ $( '#rk-migration-tool .log' ).html('Migration completed!');
119
  } else {
120
  self.process_offset4( parseInt( data.data.offset4 ), self );
121
  }
123
  });
124
  };
125
 
126
+ $('#seopress-rk-migrate').on('click', function() {
127
+ $(this).attr("disabled", "disabled");
128
+ $( '#rk-migration-tool .spinner' ).css( "visibility", "visible" );
129
+ $( '#rk-migration-tool .spinner' ).css( "float", "none" );
130
+ $( '#rk-migration-tool .log' ).html('');
131
  });
132
  });
inc/admin/admin.php CHANGED
@@ -197,7 +197,7 @@ class seopress_options
197
  <li><span>'.__('%%sep%%','wp-seopress').'</span>'.__('Separator (eg: - )','wp-seopress').'</li>
198
  <li><span>'.__('%%sitetitle%%','wp-seopress').'</span>'.__('Site Title','wp-seopress').'</li>
199
  <li><span>'.__('%%tagline%%','wp-seopress').'</span>'.__('Tagline','wp-seopress').'</li>
200
- <li><span>'.__('%%post_title%%','wp-seopress').'</span>'.__('Post Title (post, page, custom post type)','wp-seopress').'</li>
201
  <li><span>'.__('%%post_excerpt%%','wp-seopress').'</span>'.__('Post excerpt','wp-seopress').'</li>
202
  <li><span>'.__('%%post_date%%','wp-seopress').'</span>'.__('Post date','wp-seopress').'</li>
203
  <li><span>'.__('%%post_modified_date%%','wp-seopress').'</span>'.__('Last modified post date','wp-seopress').'</li>
@@ -2038,7 +2038,7 @@ class seopress_options
2038
  </div>
2039
  <span class="inner">
2040
  <h3><?php _e('Tools','wp-seopress'); ?></h3>
2041
- <p><?php _e('Import/Export SEOPress settings from site to site.','wp-seopress'); ?></p>
2042
  <a class="button-secondary" href="<?php echo admin_url( 'admin.php?page=seopress-import-export' ); ?>"><?php _e('Manage','wp-seopress'); ?></a>
2043
  <?php
2044
  if (function_exists('seopress_get_locale')) {
@@ -2059,7 +2059,7 @@ class seopress_options
2059
  </div>
2060
  <span class="inner">
2061
  <h3><?php _e('License','wp-seopress'); ?></h3>
2062
- <p><?php _e('Edit your SEOPress license key.','wp-seopress'); ?></p>
2063
  <a class="button-secondary" href="<?php echo admin_url( 'admin.php?page=seopress-license' ); ?>"><?php _e('Manage','wp-seopress'); ?></a>
2064
  <?php
2065
  if (function_exists('seopress_get_locale')) {
197
  <li><span>'.__('%%sep%%','wp-seopress').'</span>'.__('Separator (eg: - )','wp-seopress').'</li>
198
  <li><span>'.__('%%sitetitle%%','wp-seopress').'</span>'.__('Site Title','wp-seopress').'</li>
199
  <li><span>'.__('%%tagline%%','wp-seopress').'</span>'.__('Tagline','wp-seopress').'</li>
200
+ <li><span>'.__('%%post_title%% (alias %%title%%)','wp-seopress').'</span>'.__('Post Title (post, page, custom post type)','wp-seopress').'</li>
201
  <li><span>'.__('%%post_excerpt%%','wp-seopress').'</span>'.__('Post excerpt','wp-seopress').'</li>
202
  <li><span>'.__('%%post_date%%','wp-seopress').'</span>'.__('Post date','wp-seopress').'</li>
203
  <li><span>'.__('%%post_modified_date%%','wp-seopress').'</span>'.__('Last modified post date','wp-seopress').'</li>
2038
  </div>
2039
  <span class="inner">
2040
  <h3><?php _e('Tools','wp-seopress'); ?></h3>
2041
+ <p><?php _e('Import/Export plugin settings from site to site.','wp-seopress'); ?></p>
2042
  <a class="button-secondary" href="<?php echo admin_url( 'admin.php?page=seopress-import-export' ); ?>"><?php _e('Manage','wp-seopress'); ?></a>
2043
  <?php
2044
  if (function_exists('seopress_get_locale')) {
2059
  </div>
2060
  <span class="inner">
2061
  <h3><?php _e('License','wp-seopress'); ?></h3>
2062
+ <p><?php _e('Edit your license key.','wp-seopress'); ?></p>
2063
  <a class="button-secondary" href="<?php echo admin_url( 'admin.php?page=seopress-license' ); ?>"><?php _e('Manage','wp-seopress'); ?></a>
2064
  <?php
2065
  if (function_exists('seopress_get_locale')) {
inc/admin/ajax.php CHANGED
@@ -176,6 +176,13 @@ function seopress_do_real_preview() {
176
  $data['tw_img'] = esc_attr(stripslashes_deep(wp_filter_nohtml_kses($mtwimg->nodeValue)));
177
  }
178
 
 
 
 
 
 
 
 
179
  //h1
180
  if(isset($_GET['seopress_analysis_target_kw']) && !empty($_GET['seopress_analysis_target_kw'])) {
181
  $h1 = $xpath->query("//h1");
176
  $data['tw_img'] = esc_attr(stripslashes_deep(wp_filter_nohtml_kses($mtwimg->nodeValue)));
177
  }
178
 
179
+ //Canonical
180
+ $canonical = $xpath->query('//link[@rel="canonical"]/@href');
181
+
182
+ foreach ($canonical as $key=>$mcanonical) {
183
+ $data['canonical'] = esc_attr(stripslashes_deep(wp_filter_nohtml_kses($mcanonical->nodeValue)));
184
+ }
185
+
186
  //h1
187
  if(isset($_GET['seopress_analysis_target_kw']) && !empty($_GET['seopress_analysis_target_kw'])) {
188
  $h1 = $xpath->query("//h1");
inc/functions/options-social.php CHANGED
@@ -682,8 +682,18 @@ function seopress_thumbnail_in_content() {
682
  //do nothing
683
  } else {
684
  $url = get_home_url().$url;
685
- }
686
- return htmlspecialchars(urldecode(esc_attr(wp_filter_nohtml_kses($url))));
 
 
 
 
 
 
 
 
 
 
687
  }
688
  }
689
  }
682
  //do nothing
683
  } else {
684
  $url = get_home_url().$url;
685
+ }
686
+ //cleaning url
687
+ $url = htmlspecialchars(urldecode(esc_attr(wp_filter_nohtml_kses($url))));
688
+
689
+ //remove query strings
690
+ $parse_url = wp_parse_url($url);
691
+
692
+ if (!empty($parse_url['scheme']) && !empty($parse_url['host']) && !empty($parse_url['path'])) {
693
+ return $parse_url['scheme'].'://'.$parse_url['host'].$parse_url['path'];
694
+ } else {
695
+ return $url;
696
+ }
697
  }
698
  }
699
  }
inc/functions/options-titles-metas.php CHANGED
@@ -371,6 +371,7 @@ function seopress_titles_the_title() {
371
  '%%sitetitle%%',
372
  '%%sitename%%',
373
  '%%tagline%%',
 
374
  '%%post_title%%',
375
  '%%post_excerpt%%',
376
  '%%post_date%%',
@@ -411,6 +412,7 @@ function seopress_titles_the_title() {
411
  get_bloginfo('name'),
412
  get_bloginfo('description'),
413
  the_title_attribute('echo=0'),
 
414
  $seopress_get_the_excerpt,
415
  get_the_date(),
416
  get_the_modified_date(),
@@ -745,6 +747,7 @@ function seopress_titles_the_description_content() {
745
  '%%sitetitle%%',
746
  '%%sitename%%',
747
  '%%tagline%%',
 
748
  '%%post_title%%',
749
  '%%post_excerpt%%',
750
  '%%post_date%%',
@@ -785,6 +788,7 @@ function seopress_titles_the_description_content() {
785
  get_bloginfo('name'),
786
  get_bloginfo('description'),
787
  the_title_attribute('echo=0'),
 
788
  $seopress_get_the_excerpt,
789
  get_the_date(),
790
  get_the_modified_date(),
371
  '%%sitetitle%%',
372
  '%%sitename%%',
373
  '%%tagline%%',
374
+ '%%title%%',
375
  '%%post_title%%',
376
  '%%post_excerpt%%',
377
  '%%post_date%%',
412
  get_bloginfo('name'),
413
  get_bloginfo('description'),
414
  the_title_attribute('echo=0'),
415
+ the_title_attribute('echo=0'),
416
  $seopress_get_the_excerpt,
417
  get_the_date(),
418
  get_the_modified_date(),
747
  '%%sitetitle%%',
748
  '%%sitename%%',
749
  '%%tagline%%',
750
+ '%%title%%',
751
  '%%post_title%%',
752
  '%%post_excerpt%%',
753
  '%%post_date%%',
788
  get_bloginfo('name'),
789
  get_bloginfo('description'),
790
  the_title_attribute('echo=0'),
791
+ the_title_attribute('echo=0'),
792
  $seopress_get_the_excerpt,
793
  get_the_date(),
794
  get_the_modified_date(),
inc/functions/sitemap/template-xml-sitemaps-single.php CHANGED
@@ -157,11 +157,24 @@ function seopress_xml_sitemap_single() {
157
  //do nothing
158
  } else {
159
  $url = get_home_url().$url;
160
- }
161
- $seopress_sitemaps .= '<image:image>';
 
 
 
 
 
 
 
162
  $seopress_sitemaps .= "\n";
163
  $seopress_sitemaps .= '<image:loc>';
164
- $seopress_sitemaps .= '<![CDATA['.htmlspecialchars(urldecode(esc_attr(wp_filter_nohtml_kses($url)))).']]>';
 
 
 
 
 
 
165
  $seopress_sitemaps .= '</image:loc>';
166
  $seopress_sitemaps .= "\n";
167
  $seopress_sitemaps .= '</image:image>';
157
  //do nothing
158
  } else {
159
  $url = get_home_url().$url;
160
+ }
161
+
162
+ //cleaning url
163
+ $url = htmlspecialchars(urldecode(esc_attr(wp_filter_nohtml_kses($url))));
164
+
165
+ //remove query strings
166
+ $parse_url = wp_parse_url($url);
167
+
168
+ $seopress_sitemaps .= '<image:image>';
169
  $seopress_sitemaps .= "\n";
170
  $seopress_sitemaps .= '<image:loc>';
171
+
172
+ if (!empty($parse_url['scheme']) && !empty($parse_url['host']) && !empty($parse_url['path'])) {
173
+ $seopress_sitemaps .= '<![CDATA['.$parse_url['scheme'].'://'.$parse_url['host'].$parse_url['path'].']]>';
174
+ } else {
175
+ $seopress_sitemaps .= '<![CDATA['.$url.']]>';
176
+ }
177
+
178
  $seopress_sitemaps .= '</image:loc>';
179
  $seopress_sitemaps .= "\n";
180
  $seopress_sitemaps .= '</image:image>';
languages/wp-seopress.pot CHANGED
@@ -3,7 +3,7 @@ msgid ""
3
  msgstr ""
4
  "Project-Id-Version: SEOPress\n"
5
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-cloudy\n"
6
- "POT-Creation-Date: 2019-07-17 15:34+0200\n"
7
  "PO-Revision-Date: 2019-06-19 15:31+0200\n"
8
  "Last-Translator: \n"
9
  "Language-Team: Benjamin DENIS <contact@seopress.org>\n"
@@ -11,7 +11,7 @@ msgstr ""
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
- "X-Generator: Poedit 2.2.1\n"
15
  "X-Poedit-KeywordsList: __;_e;_x;esc_attr_e;esc_attr__;esc_html__;esc_html_e\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-SourceCharset: UTF-8\n"
@@ -1445,7 +1445,7 @@ msgstr ""
1445
 
1446
  #: inc/admin/admin.php:200
1447
  #, php-format
1448
- msgid "%%post_title%%"
1449
  msgstr ""
1450
 
1451
  #: inc/admin/admin.php:200
@@ -1890,7 +1890,7 @@ msgstr ""
1890
  msgid "Security"
1891
  msgstr ""
1892
 
1893
- #: inc/admin/admin.php:658 seopress.php:332
1894
  msgid "Settings"
1895
  msgstr ""
1896
 
@@ -2400,7 +2400,7 @@ msgid "Configure default WordPress RSS."
2400
  msgstr ""
2401
 
2402
  #: inc/admin/admin.php:2041
2403
- msgid "Import/Export SEOPress settings from site to site."
2404
  msgstr ""
2405
 
2406
  #: inc/admin/admin.php:2052
@@ -2408,7 +2408,7 @@ msgid "Guide to Export/Import/Reset settings - new window"
2408
  msgstr ""
2409
 
2410
  #: inc/admin/admin.php:2062
2411
- msgid "Edit your SEOPress license key."
2412
  msgstr ""
2413
 
2414
  #: inc/admin/admin.php:2073
@@ -3974,14 +3974,18 @@ msgstr ""
3974
  msgid "XML Sitemaps"
3975
  msgstr ""
3976
 
3977
- #: seopress.php:286
 
 
 
 
3978
  msgid "You like SEOPress? Don't forget to rate it 5 stars!"
3979
  msgstr ""
3980
 
3981
- #: seopress.php:333
3982
  msgid "SEOPress.org"
3983
  msgstr ""
3984
 
3985
- #: seopress.php:335
3986
  msgid "GO PRO!"
3987
  msgstr ""
3
  msgstr ""
4
  "Project-Id-Version: SEOPress\n"
5
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-cloudy\n"
6
+ "POT-Creation-Date: 2019-07-25 16:00+0200\n"
7
  "PO-Revision-Date: 2019-06-19 15:31+0200\n"
8
  "Last-Translator: \n"
9
  "Language-Team: Benjamin DENIS <contact@seopress.org>\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
+ "X-Generator: Poedit 2.2.3\n"
15
  "X-Poedit-KeywordsList: __;_e;_x;esc_attr_e;esc_attr__;esc_html__;esc_html_e\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-SourceCharset: UTF-8\n"
1445
 
1446
  #: inc/admin/admin.php:200
1447
  #, php-format
1448
+ msgid "%%post_title%% (alias %%title%%)"
1449
  msgstr ""
1450
 
1451
  #: inc/admin/admin.php:200
1890
  msgid "Security"
1891
  msgstr ""
1892
 
1893
+ #: inc/admin/admin.php:658 seopress.php:333
1894
  msgid "Settings"
1895
  msgstr ""
1896
 
2400
  msgstr ""
2401
 
2402
  #: inc/admin/admin.php:2041
2403
+ msgid "Import/Export plugin settings from site to site."
2404
  msgstr ""
2405
 
2406
  #: inc/admin/admin.php:2052
2408
  msgstr ""
2409
 
2410
  #: inc/admin/admin.php:2062
2411
+ msgid "Edit your license key."
2412
  msgstr ""
2413
 
2414
  #: inc/admin/admin.php:2073
3974
  msgid "XML Sitemaps"
3975
  msgstr ""
3976
 
3977
+ #: seopress.php:124
3978
+ msgid "has been successfully updated!"
3979
+ msgstr ""
3980
+
3981
+ #: seopress.php:287
3982
  msgid "You like SEOPress? Don't forget to rate it 5 stars!"
3983
  msgstr ""
3984
 
3985
+ #: seopress.php:334
3986
  msgid "SEOPress.org"
3987
  msgstr ""
3988
 
3989
+ #: seopress.php:336
3990
  msgid "GO PRO!"
3991
  msgstr ""
readme.txt CHANGED
@@ -5,8 +5,8 @@ Donate link: https://www.seopress.org/
5
  Tags: SEO, XML sitemap, meta title, open graph, content analysis, knowledge graph, redirection, breadcrumbs, google analytics, rich snippets, broken link checker, Schema.org
6
  Requires at least: 4.6+
7
  Tested up to: 5.2
8
- Requires PHP: 5.4
9
- Stable tag: 3.6
10
  License: GPLv2 or later
11
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -219,6 +219,18 @@ Any questions? Visit our website <a href="https://www.seopress.org?utm_source=w.
219
  60. Installation Wizard
220
 
221
  == Changelog ==
 
 
 
 
 
 
 
 
 
 
 
 
222
  = 3.6 =
223
  * NEW Using the pixel to calculate the length of title / meta description (beta)
224
  * NEW All translations are now maintained on TranslationsPress
5
  Tags: SEO, XML sitemap, meta title, open graph, content analysis, knowledge graph, redirection, breadcrumbs, google analytics, rich snippets, broken link checker, Schema.org
6
  Requires at least: 4.6+
7
  Tested up to: 5.2
8
+ Requires PHP: 5.6
9
+ Stable tag: 3.6.1
10
  License: GPLv2 or later
11
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
12
 
219
  60. Installation Wizard
220
 
221
  == Changelog ==
222
+ = 3.6.1 =
223
+ * INFO PHP 5.6 is now the minimum requirement
224
+ * INFO Small performance improvements
225
+ * INFO Refactoring some JS files (drastic weight reduction)
226
+ * INFO Support %%title%% dynamic variable (alias of %%post_title%%') in title / meta description
227
+ * INFO Remove query strings for social sharing and image XML sitemaps
228
+ * FIX Canonical placeholder value in SEO metabox for terms taxonomy
229
+ * FIX Undefined variable: html
230
+ * FIX Breadcrumbs shortcode
231
+ * FIX Fatal error SEOPRESS_Language_Packs
232
+ * FIX Notice array to string conversion
233
+ * FIX Saving image fields for automatic schemas
234
  = 3.6 =
235
  * NEW Using the pixel to calculate the length of title / meta description (beta)
236
  * NEW All translations are now maintained on TranslationsPress
seopress.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: SEOPress
4
  Plugin URI: https://www.seopress.org/
5
  Description: One of the best SEO Plugin for WordPress.
6
- Version: 3.6
7
  Author: Benjamin Denis
8
  Author URI: https://www.seopress.org/
9
  License: GPLv2
@@ -53,7 +53,7 @@ register_deactivation_hook(__FILE__, 'seopress_deactivation');
53
  ///////////////////////////////////////////////////////////////////////////////////////////////////
54
  //Define
55
  ///////////////////////////////////////////////////////////////////////////////////////////////////
56
- define( 'SEOPRESS_VERSION', '3.6' );
57
  define( 'SEOPRESS_AUTHOR', 'Benjamin Denis' );
58
 
59
  ///////////////////////////////////////////////////////////////////////////////////////////////////
@@ -121,6 +121,7 @@ function seopress_add_admin_options_scripts($hook) {
121
  $seopress_toggle_features = array(
122
  'seopress_nonce' => wp_create_nonce('seopress_toggle_features_nonce'),
123
  'seopress_toggle_features' => admin_url( 'admin-ajax.php'),
 
124
  );
125
  wp_localize_script( 'seopress-toggle-ajax', 'seopressAjaxToggleFeatures', $seopress_toggle_features );
126
  }
@@ -382,7 +383,7 @@ function seopress_get_taxonomies() {
382
  }
383
 
384
  ///////////////////////////////////////////////////////////////////////////////////////////////////
385
- //Get all custom fields (limit: 200)
386
  ///////////////////////////////////////////////////////////////////////////////////////////////////
387
  function seopress_get_custom_fields() {
388
  $cf_keys = wp_cache_get( 'seopress_get_custom_fields' );
@@ -391,7 +392,7 @@ function seopress_get_custom_fields() {
391
  global $wpdb;
392
  global $post;
393
  $post = get_post( $post );
394
- $limit = (int) apply_filters( 'postmeta_form_limit', 200 );
395
  $cf_keys = $wpdb->get_col( "
396
  SELECT meta_key
397
  FROM $wpdb->postmeta
3
  Plugin Name: SEOPress
4
  Plugin URI: https://www.seopress.org/
5
  Description: One of the best SEO Plugin for WordPress.
6
+ Version: 3.6.1
7
  Author: Benjamin Denis
8
  Author URI: https://www.seopress.org/
9
  License: GPLv2
53
  ///////////////////////////////////////////////////////////////////////////////////////////////////
54
  //Define
55
  ///////////////////////////////////////////////////////////////////////////////////////////////////
56
+ define( 'SEOPRESS_VERSION', '3.6.1' );
57
  define( 'SEOPRESS_AUTHOR', 'Benjamin Denis' );
58
 
59
  ///////////////////////////////////////////////////////////////////////////////////////////////////
121
  $seopress_toggle_features = array(
122
  'seopress_nonce' => wp_create_nonce('seopress_toggle_features_nonce'),
123
  'seopress_toggle_features' => admin_url( 'admin-ajax.php'),
124
+ 'i18n' => __('has been successfully updated!','wp-seopress')
125
  );
126
  wp_localize_script( 'seopress-toggle-ajax', 'seopressAjaxToggleFeatures', $seopress_toggle_features );
127
  }
383
  }
384
 
385
  ///////////////////////////////////////////////////////////////////////////////////////////////////
386
+ //Get all custom fields (limit: 250)
387
  ///////////////////////////////////////////////////////////////////////////////////////////////////
388
  function seopress_get_custom_fields() {
389
  $cf_keys = wp_cache_get( 'seopress_get_custom_fields' );
392
  global $wpdb;
393
  global $post;
394
  $post = get_post( $post );
395
+ $limit = (int) apply_filters( 'postmeta_form_limit', 250 );
396
  $cf_keys = $wpdb->get_col( "
397
  SELECT meta_key
398
  FROM $wpdb->postmeta