Platinum SEO Pack - Version 2.0.5

Version Description

  • 2020-02-21 - Introduces Patinum SEO Content analysis that does a basic analysis of your content for focus keywords that you need to enter in meta ketwords input field as comma separated items. Note that meta keywords can be turned off sitewide in SEO -> General settings, if you do not want to add a meta keywords tag for posts and /or pages. You can even control it at the post or page level by switching it On/Off, if the sitewide setting is ON. Sitewide setting is Off by default. But you can get content analysis findings in your analysis dashboard, even if it is switched off. Also fixed a few other minor bugs.
Download this release

Release Info

Developer Rajesh Babu
Plugin Icon 128x128 Platinum SEO Pack
Version 2.0.5
Comparing to
See all releases

Code changes from version 2.0.4 to 2.0.5

Changelog.txt CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  = 2.0.4 =
2
  * 2020-02-12 - Changed a style setting to apply to this plugin admin pages alone thereby avoiding conflict with wordpress admin and other plugin style settings. Created options for users to specify Facebook OG type and Twitter card type for each individual post or page in Basic social settings.
3
 
1
+ = 2.0.5 =
2
+ * 2020-02-21 - Introduces Patinum SEO Content analysis that does a basic analysis of your content for focus keywords that you need to enter in meta ketwords input field as comma separated items. Note that meta keywords can be turned off sitewide in SEO -> General settings, if you do not want to add a meta keywords tag for posts and /or pages. You can even control it at the post or page level by switching it On/Off, if the sitewide setting is ON. Sitewide setting is Off by default. But you can get content analysis findings in your analysis dashboard, even if it is switched off. Also fixed a few other minor bugs.
3
+
4
  = 2.0.4 =
5
  * 2020-02-12 - Changed a style setting to apply to this plugin admin pages alone thereby avoiding conflict with wordpress admin and other plugin style settings. Created options for users to specify Facebook OG type and Twitter card type for each individual post or page in Basic social settings.
6
 
platinum-seo-pack.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Platinum SEO Pack
5
  Plugin URI: https://techblissonline.com/platinum-wordpress-seo-plugin/
6
  Description: Complete SEO and Social optimization solution for your Wordpress blog/site. It is Simple, Uncomplicated and User friendly with several useful features.
7
- Version: 2.0.4
8
  Author: Techblissonline.com (Rajesh)
9
  Author URI: https://techblissonline.com/
10
  Text Domain: platinum-seo-pack
4
  Plugin Name: Platinum SEO Pack
5
  Plugin URI: https://techblissonline.com/platinum-wordpress-seo-plugin/
6
  Description: Complete SEO and Social optimization solution for your Wordpress blog/site. It is Simple, Uncomplicated and User friendly with several useful features.
7
+ Version: 2.0.5
8
  Author: Techblissonline.com (Rajesh)
9
  Author URI: https://techblissonline.com/
10
  Text Domain: platinum-seo-pack
psp-include/settings/css/psp-settings.css CHANGED
@@ -7,9 +7,17 @@ label {
7
  font-size: 14 px;
8
  }
9
 
 
 
 
 
10
  body {
11
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif !important;
12
  }
 
 
 
 
13
 
14
  .psp-separator input{
15
  margin:0;padding:0;
7
  font-size: 14 px;
8
  }
9
 
10
+ .pspeditor {
11
+ max-width: 600px;
12
+ }
13
+
14
  body {
15
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif !important;
16
  }
17
+
18
+ .pspmbox {
19
+ background-color: #fff;
20
+ }
21
 
22
  .psp-separator input{
23
  margin:0;padding:0;
psp-include/settings/js/pspbsjs.js ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ /*!
2
+ * Bootstrap v3.4.1 (https://getbootstrap.com/)
3
+ * Copyright 2011-2019 Twitter, Inc.
4
+ * Licensed under the MIT license
5
+ */
6
+ if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(t){"use strict";var e=jQuery.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||3<e[0])throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),function(n){"use strict";n.fn.emulateTransitionEnd=function(t){var e=!1,i=this;n(this).one("bsTransitionEnd",function(){e=!0});return setTimeout(function(){e||n(i).trigger(n.support.transition.end)},t),this},n(function(){n.support.transition=function o(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(t.style[i]!==undefined)return{end:e[i]};return!1}(),n.support.transition&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(s){"use strict";var e='[data-dismiss="alert"]',a=function(t){s(t).on("click",e,this.close)};a.VERSION="3.4.1",a.TRANSITION_DURATION=150,a.prototype.close=function(t){var e=s(this),i=e.attr("data-target");i||(i=(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),i="#"===i?[]:i;var o=s(document).find(i);function n(){o.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),o.length||(o=e.closest(".alert")),o.trigger(t=s.Event("close.bs.alert")),t.isDefaultPrevented()||(o.removeClass("in"),s.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",n).emulateTransitionEnd(a.TRANSITION_DURATION):n())};var t=s.fn.alert;s.fn.alert=function o(i){return this.each(function(){var t=s(this),e=t.data("bs.alert");e||t.data("bs.alert",e=new a(this)),"string"==typeof i&&e[i].call(t)})},s.fn.alert.Constructor=a,s.fn.alert.noConflict=function(){return s.fn.alert=t,this},s(document).on("click.bs.alert.data-api",e,a.prototype.close)}(jQuery),function(s){"use strict";var n=function(t,e){this.$element=s(t),this.options=s.extend({},n.DEFAULTS,e),this.isLoading=!1};function i(o){return this.each(function(){var t=s(this),e=t.data("bs.button"),i="object"==typeof o&&o;e||t.data("bs.button",e=new n(this,i)),"toggle"==o?e.toggle():o&&e.setState(o)})}n.VERSION="3.4.1",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(t){var e="disabled",i=this.$element,o=i.is("input")?"val":"html",n=i.data();t+="Text",null==n.resetText&&i.data("resetText",i[o]()),setTimeout(s.proxy(function(){i[o](null==n[t]?this.options[t]:n[t]),"loadingText"==t?(this.isLoading=!0,i.addClass(e).attr(e,e).prop(e,!0)):this.isLoading&&(this.isLoading=!1,i.removeClass(e).removeAttr(e).prop(e,!1))},this),0)},n.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")?(i.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==i.prop("type")&&(i.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),i.prop("checked",this.$element.hasClass("active")),t&&i.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var t=s.fn.button;s.fn.button=i,s.fn.button.Constructor=n,s.fn.button.noConflict=function(){return s.fn.button=t,this},s(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var e=s(t.target).closest(".btn");i.call(e,"toggle"),s(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),e.is("input,button")?e.trigger("focus"):e.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){s(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),function(p){"use strict";var c=function(t,e){this.$element=p(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=e,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",p.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",p.proxy(this.pause,this)).on("mouseleave.bs.carousel",p.proxy(this.cycle,this))};function r(n){return this.each(function(){var t=p(this),e=t.data("bs.carousel"),i=p.extend({},c.DEFAULTS,t.data(),"object"==typeof n&&n),o="string"==typeof n?n:i.slide;e||t.data("bs.carousel",e=new c(this,i)),"number"==typeof n?e.to(n):o?e[o]():i.interval&&e.pause().cycle()})}c.VERSION="3.4.1",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},c.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(p.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},c.prototype.getItemForDirection=function(t,e){var i=this.getItemIndex(e);if(("prev"==t&&0===i||"next"==t&&i==this.$items.length-1)&&!this.options.wrap)return e;var o=(i+("prev"==t?-1:1))%this.$items.length;return this.$items.eq(o)},c.prototype.to=function(t){var e=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):i==t?this.pause().cycle():this.slide(i<t?"next":"prev",this.$items.eq(t))},c.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&p.support.transition&&(this.$element.trigger(p.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){if(!this.sliding)return this.slide("next")},c.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},c.prototype.slide=function(t,e){var i=this.$element.find(".item.active"),o=e||this.getItemForDirection(t,i),n=this.interval,s="next"==t?"left":"right",a=this;if(o.hasClass("active"))return this.sliding=!1;var r=o[0],l=p.Event("slide.bs.carousel",{relatedTarget:r,direction:s});if(this.$element.trigger(l),!l.isDefaultPrevented()){if(this.sliding=!0,n&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var h=p(this.$indicators.children()[this.getItemIndex(o)]);h&&h.addClass("active")}var d=p.Event("slid.bs.carousel",{relatedTarget:r,direction:s});return p.support.transition&&this.$element.hasClass("slide")?(o.addClass(t),"object"==typeof o&&o.length&&o[0].offsetWidth,i.addClass(s),o.addClass(s),i.one("bsTransitionEnd",function(){o.removeClass([t,s].join(" ")).addClass("active"),i.removeClass(["active",s].join(" ")),a.sliding=!1,setTimeout(function(){a.$element.trigger(d)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(i.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(d)),n&&this.cycle(),this}};var t=p.fn.carousel;p.fn.carousel=r,p.fn.carousel.Constructor=c,p.fn.carousel.noConflict=function(){return p.fn.carousel=t,this};var e=function(t){var e=p(this),i=e.attr("href");i&&(i=i.replace(/.*(?=#[^\s]+$)/,""));var o=e.attr("data-target")||i,n=p(document).find(o);if(n.hasClass("carousel")){var s=p.extend({},n.data(),e.data()),a=e.attr("data-slide-to");a&&(s.interval=!1),r.call(n,s),a&&n.data("bs.carousel").to(a),t.preventDefault()}};p(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),p(window).on("load",function(){p('[data-ride="carousel"]').each(function(){var t=p(this);r.call(t,t.data())})})}(jQuery),function(a){"use strict";var r=function(t,e){this.$element=a(t),this.options=a.extend({},r.DEFAULTS,e),this.$trigger=a('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function n(t){var e,i=t.attr("data-target")||(e=t.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"");return a(document).find(i)}function l(o){return this.each(function(){var t=a(this),e=t.data("bs.collapse"),i=a.extend({},r.DEFAULTS,t.data(),"object"==typeof o&&o);!e&&i.toggle&&/show|hide/.test(o)&&(i.toggle=!1),e||t.data("bs.collapse",e=new r(this,i)),"string"==typeof o&&e[o]()})}r.VERSION="3.4.1",r.TRANSITION_DURATION=350,r.DEFAULTS={toggle:!0},r.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},r.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(t=e.data("bs.collapse"))&&t.transitioning)){var i=a.Event("show.bs.collapse");if(this.$element.trigger(i),!i.isDefaultPrevented()){e&&e.length&&(l.call(e,"hide"),t||e.data("bs.collapse",null));var o=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[o](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var n=function(){this.$element.removeClass("collapsing").addClass("collapse in")[o](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return n.call(this);var s=a.camelCase(["scroll",o].join("-"));this.$element.one("bsTransitionEnd",a.proxy(n,this)).emulateTransitionEnd(r.TRANSITION_DURATION)[o](this.$element[0][s])}}}},r.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=a.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var e=this.dimension();this.$element[e](this.$element[e]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!a.support.transition)return i.call(this);this.$element[e](0).one("bsTransitionEnd",a.proxy(i,this)).emulateTransitionEnd(r.TRANSITION_DURATION)}}},r.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},r.prototype.getParent=function(){return a(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(t,e){var i=a(e);this.addAriaAndCollapsedClass(n(i),i)},this)).end()},r.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var t=a.fn.collapse;a.fn.collapse=l,a.fn.collapse.Constructor=r,a.fn.collapse.noConflict=function(){return a.fn.collapse=t,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var e=a(this);e.attr("data-target")||t.preventDefault();var i=n(e),o=i.data("bs.collapse")?"toggle":e.data();l.call(i,o)})}(jQuery),function(a){"use strict";var r='[data-toggle="dropdown"]',o=function(t){a(t).on("click.bs.dropdown",this.toggle)};function l(t){var e=t.attr("data-target");e||(e=(e=t.attr("href"))&&/#[A-Za-z]/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""));var i="#"!==e?a(document).find(e):null;return i&&i.length?i:t.parent()}function s(o){o&&3===o.which||(a(".dropdown-backdrop").remove(),a(r).each(function(){var t=a(this),e=l(t),i={relatedTarget:this};e.hasClass("open")&&(o&&"click"==o.type&&/input|textarea/i.test(o.target.tagName)&&a.contains(e[0],o.target)||(e.trigger(o=a.Event("hide.bs.dropdown",i)),o.isDefaultPrevented()||(t.attr("aria-expanded","false"),e.removeClass("open").trigger(a.Event("hidden.bs.dropdown",i)))))}))}o.VERSION="3.4.1",o.prototype.toggle=function(t){var e=a(this);if(!e.is(".disabled, :disabled")){var i=l(e),o=i.hasClass("open");if(s(),!o){"ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",s);var n={relatedTarget:this};if(i.trigger(t=a.Event("show.bs.dropdown",n)),t.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),i.toggleClass("open").trigger(a.Event("shown.bs.dropdown",n))}return!1}},o.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var e=a(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled")){var i=l(e),o=i.hasClass("open");if(!o&&27!=t.which||o&&27==t.which)return 27==t.which&&i.find(r).trigger("focus"),e.trigger("click");var n=i.find(".dropdown-menu li:not(.disabled):visible a");if(n.length){var s=n.index(t.target);38==t.which&&0<s&&s--,40==t.which&&s<n.length-1&&s++,~s||(s=0),n.eq(s).trigger("focus")}}}};var t=a.fn.dropdown;a.fn.dropdown=function e(i){return this.each(function(){var t=a(this),e=t.data("bs.dropdown");e||t.data("bs.dropdown",e=new o(this)),"string"==typeof i&&e[i].call(t)})},a.fn.dropdown.Constructor=o,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=t,this},a(document).on("click.bs.dropdown.data-api",s).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",r,o.prototype.toggle).on("keydown.bs.dropdown.data-api",r,o.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",o.prototype.keydown)}(jQuery),function(a){"use strict";var s=function(t,e){this.options=e,this.$body=a(document.body),this.$element=a(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,a.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};function r(o,n){return this.each(function(){var t=a(this),e=t.data("bs.modal"),i=a.extend({},s.DEFAULTS,t.data(),"object"==typeof o&&o);e||t.data("bs.modal",e=new s(this,i)),"string"==typeof o?e[o](n):i.show&&e.show(n)})}s.VERSION="3.4.1",s.TRANSITION_DURATION=300,s.BACKDROP_TRANSITION_DURATION=150,s.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},s.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},s.prototype.show=function(i){var o=this,t=a.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(t),this.isShown||t.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){o.$element.one("mouseup.dismiss.bs.modal",function(t){a(t.target).is(o.$element)&&(o.ignoreBackdropClick=!0)})}),this.backdrop(function(){var t=a.support.transition&&o.$element.hasClass("fade");o.$element.parent().length||o.$element.appendTo(o.$body),o.$element.show().scrollTop(0),o.adjustDialog(),t&&o.$element[0].offsetWidth,o.$element.addClass("in"),o.enforceFocus();var e=a.Event("shown.bs.modal",{relatedTarget:i});t?o.$dialog.one("bsTransitionEnd",function(){o.$element.trigger("focus").trigger(e)}).emulateTransitionEnd(s.TRANSITION_DURATION):o.$element.trigger("focus").trigger(e)}))},s.prototype.hide=function(t){t&&t.preventDefault(),t=a.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",a.proxy(this.hideModal,this)).emulateTransitionEnd(s.TRANSITION_DURATION):this.hideModal())},s.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},s.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",a.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},s.prototype.resize=function(){this.isShown?a(window).on("resize.bs.modal",a.proxy(this.handleUpdate,this)):a(window).off("resize.bs.modal")},s.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},s.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},s.prototype.backdrop=function(t){var e=this,i=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=a.support.transition&&i;if(this.$backdrop=a(document.createElement("div")).addClass("modal-backdrop "+i).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",a.proxy(function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;o?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(s.BACKDROP_TRANSITION_DURATION):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var n=function(){e.removeBackdrop(),t&&t()};a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",n).emulateTransitionEnd(s.BACKDROP_TRANSITION_DURATION):n()}else t&&t()},s.prototype.handleUpdate=function(){this.adjustDialog()},s.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},s.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},s.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},s.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var n=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",t+n),a(this.fixedContent).each(function(t,e){var i=e.style.paddingRight,o=a(e).css("padding-right");a(e).data("padding-right",i).css("padding-right",parseFloat(o)+n+"px")}))},s.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),a(this.fixedContent).each(function(t,e){var i=a(e).data("padding-right");a(e).removeData("padding-right"),e.style.paddingRight=i||""})},s.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var t=a.fn.modal;a.fn.modal=r,a.fn.modal.Constructor=s,a.fn.modal.noConflict=function(){return a.fn.modal=t,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var e=a(this),i=e.attr("href"),o=e.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,""),n=a(document).find(o),s=n.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(i)&&i},n.data(),e.data());e.is("a")&&t.preventDefault(),n.one("show.bs.modal",function(t){t.isDefaultPrevented()||n.one("hidden.bs.modal",function(){e.is(":visible")&&e.trigger("focus")})}),r.call(n,s,this)})}(jQuery),function(g){"use strict";var o=["sanitize","whiteList","sanitizeFn"],a=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],t={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},r=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,l=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function u(t,e){var i=t.nodeName.toLowerCase();if(-1!==g.inArray(i,e))return-1===g.inArray(i,a)||Boolean(t.nodeValue.match(r)||t.nodeValue.match(l));for(var o=g(e).filter(function(t,e){return e instanceof RegExp}),n=0,s=o.length;n<s;n++)if(i.match(o[n]))return!0;return!1}function n(t,e,i){if(0===t.length)return t;if(i&&"function"==typeof i)return i(t);if(!document.implementation||!document.implementation.createHTMLDocument)return t;var o=document.implementation.createHTMLDocument("sanitization");o.body.innerHTML=t;for(var n=g.map(e,function(t,e){return e}),s=g(o.body).find("*"),a=0,r=s.length;a<r;a++){var l=s[a],h=l.nodeName.toLowerCase();if(-1!==g.inArray(h,n))for(var d=g.map(l.attributes,function(t){return t}),p=[].concat(e["*"]||[],e[h]||[]),c=0,f=d.length;c<f;c++)u(d[c],p)||l.removeAttribute(d[c].nodeName);else l.parentNode.removeChild(l)}return o.body.innerHTML}var m=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};m.VERSION="3.4.1",m.TRANSITION_DURATION=150,m.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:t},m.prototype.init=function(t,e,i){if(this.enabled=!0,this.type=t,this.$element=g(e),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&g(document).find(g.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var o=this.options.trigger.split(" "),n=o.length;n--;){var s=o[n];if("click"==s)this.$element.on("click."+this.type,this.options.selector,g.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",r="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,g.proxy(this.enter,this)),this.$element.on(r+"."+this.type,this.options.selector,g.proxy(this.leave,this))}}this.options.selector?this._options=g.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},m.prototype.getDefaults=function(){return m.DEFAULTS},m.prototype.getOptions=function(t){var e=this.$element.data();for(var i in e)e.hasOwnProperty(i)&&-1!==g.inArray(i,o)&&delete e[i];return(t=g.extend({},this.getDefaults(),e,t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t.sanitize&&(t.template=n(t.template,t.whiteList,t.sanitizeFn)),t},m.prototype.getDelegateOptions=function(){var i={},o=this.getDefaults();return this._options&&g.each(this._options,function(t,e){o[t]!=e&&(i[t]=e)}),i},m.prototype.enter=function(t){var e=t instanceof this.constructor?t:g(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),g(t.currentTarget).data("bs."+this.type,e)),t instanceof g.Event&&(e.inState["focusin"==t.type?"focus":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState)e.hoverState="in";else{if(clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)}},m.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},m.prototype.leave=function(t){var e=t instanceof this.constructor?t:g(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),g(t.currentTarget).data("bs."+this.type,e)),t instanceof g.Event&&(e.inState["focusout"==t.type?"focus":"hover"]=!1),!e.isInStateTrue()){if(clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)}},m.prototype.show=function(){var t=g.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var e=g.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!e)return;var i=this,o=this.tip(),n=this.getUID(this.type);this.setContent(),o.attr("id",n),this.$element.attr("aria-describedby",n),this.options.animation&&o.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,r=a.test(s);r&&(s=s.replace(a,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?o.appendTo(g(document).find(this.options.container)):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),h=o[0].offsetWidth,d=o[0].offsetHeight;if(r){var p=s,c=this.getPosition(this.$viewport);s="bottom"==s&&l.bottom+d>c.bottom?"top":"top"==s&&l.top-d<c.top?"bottom":"right"==s&&l.right+h>c.width?"left":"left"==s&&l.left-h<c.left?"right":s,o.removeClass(p).addClass(s)}var f=this.getCalculatedOffset(s,l,h,d);this.applyPlacement(f,s);var u=function(){var t=i.hoverState;i.$element.trigger("shown.bs."+i.type),i.hoverState=null,"out"==t&&i.leave(i)};g.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",u).emulateTransitionEnd(m.TRANSITION_DURATION):u()}},m.prototype.applyPlacement=function(t,e){var i=this.tip(),o=i[0].offsetWidth,n=i[0].offsetHeight,s=parseInt(i.css("margin-top"),10),a=parseInt(i.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(a)&&(a=0),t.top+=s,t.left+=a,g.offset.setOffset(i[0],g.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},t),0),i.addClass("in");var r=i[0].offsetWidth,l=i[0].offsetHeight;"top"==e&&l!=n&&(t.top=t.top+n-l);var h=this.getViewportAdjustedDelta(e,t,r,l);h.left?t.left+=h.left:t.top+=h.top;var d=/top|bottom/.test(e),p=d?2*h.left-o+r:2*h.top-n+l,c=d?"offsetWidth":"offsetHeight";i.offset(t),this.replaceArrow(p,i[0][c],d)},m.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},m.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();this.options.html?(this.options.sanitize&&(e=n(e,this.options.whiteList,this.options.sanitizeFn)),t.find(".tooltip-inner").html(e)):t.find(".tooltip-inner").text(e),t.removeClass("fade in top bottom left right")},m.prototype.hide=function(t){var e=this,i=g(this.$tip),o=g.Event("hide.bs."+this.type);function n(){"in"!=e.hoverState&&i.detach(),e.$element&&e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),t&&t()}if(this.$element.trigger(o),!o.isDefaultPrevented())return i.removeClass("in"),g.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",n).emulateTransitionEnd(m.TRANSITION_DURATION):n(),this.hoverState=null,this},m.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},m.prototype.hasContent=function(){return this.getTitle()},m.prototype.getPosition=function(t){var e=(t=t||this.$element)[0],i="BODY"==e.tagName,o=e.getBoundingClientRect();null==o.width&&(o=g.extend({},o,{width:o.right-o.left,height:o.bottom-o.top}));var n=window.SVGElement&&e instanceof window.SVGElement,s=i?{top:0,left:0}:n?null:t.offset(),a={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},r=i?{width:g(window).width(),height:g(window).height()}:null;return g.extend({},o,a,r,s)},m.prototype.getCalculatedOffset=function(t,e,i,o){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-o,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-o/2,left:e.left-i}:{top:e.top+e.height/2-o/2,left:e.left+e.width}},m.prototype.getViewportAdjustedDelta=function(t,e,i,o){var n={top:0,left:0};if(!this.$viewport)return n;var s=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(t)){var r=e.top-s-a.scroll,l=e.top+s-a.scroll+o;r<a.top?n.top=a.top-r:l>a.top+a.height&&(n.top=a.top+a.height-l)}else{var h=e.left-s,d=e.left+s+i;h<a.left?n.left=a.left-h:d>a.right&&(n.left=a.left+a.width-d)}return n},m.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},m.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},m.prototype.tip=function(){if(!this.$tip&&(this.$tip=g(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},m.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},m.prototype.enable=function(){this.enabled=!0},m.prototype.disable=function(){this.enabled=!1},m.prototype.toggleEnabled=function(){this.enabled=!this.enabled},m.prototype.toggle=function(t){var e=this;t&&((e=g(t.currentTarget).data("bs."+this.type))||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),g(t.currentTarget).data("bs."+this.type,e))),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},m.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})},m.prototype.sanitizeHtml=function(t){return n(t,this.options.whiteList,this.options.sanitizeFn)};var e=g.fn.tooltip;g.fn.tooltip=function i(o){return this.each(function(){var t=g(this),e=t.data("bs.tooltip"),i="object"==typeof o&&o;!e&&/destroy|hide/.test(o)||(e||t.data("bs.tooltip",e=new m(this,i)),"string"==typeof o&&e[o]())})},g.fn.tooltip.Constructor=m,g.fn.tooltip.noConflict=function(){return g.fn.tooltip=e,this}}(jQuery),function(n){"use strict";var s=function(t,e){this.init("popover",t,e)};if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");s.VERSION="3.4.1",s.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),((s.prototype=n.extend({},n.fn.tooltip.Constructor.prototype)).constructor=s).prototype.getDefaults=function(){return s.DEFAULTS},s.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();if(this.options.html){var o=typeof i;this.options.sanitize&&(e=this.sanitizeHtml(e),"string"===o&&(i=this.sanitizeHtml(i))),t.find(".popover-title").html(e),t.find(".popover-content").children().detach().end()["string"===o?"html":"append"](i)}else t.find(".popover-title").text(e),t.find(".popover-content").children().detach().end().text(i);t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},s.prototype.hasContent=function(){return this.getTitle()||this.getContent()},s.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},s.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var t=n.fn.popover;n.fn.popover=function e(o){return this.each(function(){var t=n(this),e=t.data("bs.popover"),i="object"==typeof o&&o;!e&&/destroy|hide/.test(o)||(e||t.data("bs.popover",e=new s(this,i)),"string"==typeof o&&e[o]())})},n.fn.popover.Constructor=s,n.fn.popover.noConflict=function(){return n.fn.popover=t,this}}(jQuery),function(s){"use strict";function n(t,e){this.$body=s(document.body),this.$scrollElement=s(t).is(document.body)?s(window):s(t),this.options=s.extend({},n.DEFAULTS,e),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",s.proxy(this.process,this)),this.refresh(),this.process()}function e(o){return this.each(function(){var t=s(this),e=t.data("bs.scrollspy"),i="object"==typeof o&&o;e||t.data("bs.scrollspy",e=new n(this,i)),"string"==typeof o&&e[o]()})}n.VERSION="3.4.1",n.DEFAULTS={offset:10},n.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},n.prototype.refresh=function(){var t=this,o="offset",n=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),s.isWindow(this.$scrollElement[0])||(o="position",n=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=s(this),e=t.data("target")||t.attr("href"),i=/^#./.test(e)&&s(e);return i&&i.length&&i.is(":visible")&&[[i[o]().top+n,e]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},n.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),o=this.options.offset+i-this.$scrollElement.height(),n=this.offsets,s=this.targets,a=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),o<=e)return a!=(t=s[s.length-1])&&this.activate(t);if(a&&e<n[0])return this.activeTarget=null,this.clear();for(t=n.length;t--;)a!=s[t]&&e>=n[t]&&(n[t+1]===undefined||e<n[t+1])&&this.activate(s[t])},n.prototype.activate=function(t){this.activeTarget=t,this.clear();var e=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=s(e).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},n.prototype.clear=function(){s(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var t=s.fn.scrollspy;s.fn.scrollspy=e,s.fn.scrollspy.Constructor=n,s.fn.scrollspy.noConflict=function(){return s.fn.scrollspy=t,this},s(window).on("load.bs.scrollspy.data-api",function(){s('[data-spy="scroll"]').each(function(){var t=s(this);e.call(t,t.data())})})}(jQuery),function(r){"use strict";var a=function(t){this.element=r(t)};function e(i){return this.each(function(){var t=r(this),e=t.data("bs.tab");e||t.data("bs.tab",e=new a(this)),"string"==typeof i&&e[i]()})}a.VERSION="3.4.1",a.TRANSITION_DURATION=150,a.prototype.show=function(){var t=this.element,e=t.closest("ul:not(.dropdown-menu)"),i=t.data("target");if(i||(i=(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var o=e.find(".active:last a"),n=r.Event("hide.bs.tab",{relatedTarget:t[0]}),s=r.Event("show.bs.tab",{relatedTarget:o[0]});if(o.trigger(n),t.trigger(s),!s.isDefaultPrevented()&&!n.isDefaultPrevented()){var a=r(document).find(i);this.activate(t.closest("li"),e),this.activate(a,a.parent(),function(){o.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:o[0]})})}}},a.prototype.activate=function(t,e,i){var o=e.find("> .active"),n=i&&r.support.transition&&(o.length&&o.hasClass("fade")||!!e.find("> .fade").length);function s(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),n?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}o.length&&n?o.one("bsTransitionEnd",s).emulateTransitionEnd(a.TRANSITION_DURATION):s(),o.removeClass("in")};var t=r.fn.tab;r.fn.tab=e,r.fn.tab.Constructor=a,r.fn.tab.noConflict=function(){return r.fn.tab=t,this};var i=function(t){t.preventDefault(),e.call(r(this),"show")};r(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),function(l){"use strict";var h=function(t,e){this.options=l.extend({},h.DEFAULTS,e);var i=this.options.target===h.DEFAULTS.target?l(this.options.target):l(document).find(this.options.target);this.$target=i.on("scroll.bs.affix.data-api",l.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",l.proxy(this.checkPositionWithEventLoop,this)),this.$element=l(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function i(o){return this.each(function(){var t=l(this),e=t.data("bs.affix"),i="object"==typeof o&&o;e||t.data("bs.affix",e=new h(this,i)),"string"==typeof o&&e[o]()})}h.VERSION="3.4.1",h.RESET="affix affix-top affix-bottom",h.DEFAULTS={offset:0,target:window},h.prototype.getState=function(t,e,i,o){var n=this.$target.scrollTop(),s=this.$element.offset(),a=this.$target.height();if(null!=i&&"top"==this.affixed)return n<i&&"top";if("bottom"==this.affixed)return null!=i?!(n+this.unpin<=s.top)&&"bottom":!(n+a<=t-o)&&"bottom";var r=null==this.affixed,l=r?n:s.top;return null!=i&&n<=i?"top":null!=o&&t-o<=l+(r?a:e)&&"bottom"},h.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(h.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},h.prototype.checkPositionWithEventLoop=function(){setTimeout(l.proxy(this.checkPosition,this),1)},h.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),e=this.options.offset,i=e.top,o=e.bottom,n=Math.max(l(document).height(),l(document.body).height());"object"!=typeof e&&(o=i=e),"function"==typeof i&&(i=e.top(this.$element)),"function"==typeof o&&(o=e.bottom(this.$element));var s=this.getState(n,t,i,o);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var a="affix"+(s?"-"+s:""),r=l.Event(a+".bs.affix");if(this.$element.trigger(r),r.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(h.RESET).addClass(a).trigger(a.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:n-t-o})}};var t=l.fn.affix;l.fn.affix=i,l.fn.affix.Constructor=h,l.fn.affix.noConflict=function(){return l.fn.affix=t,this},l(window).on("load",function(){l('[data-spy="affix"]').each(function(){var t=l(this),e=t.data();e.offset=e.offset||{},null!=e.offsetBottom&&(e.offset.bottom=e.offsetBottom),null!=e.offsetTop&&(e.offset.top=e.offsetTop),i.call(t,e)})})}(jQuery);
psp-include/settings/js/pspsnippet.js CHANGED
@@ -1,4 +1,8 @@
1
- jQuery(document).ready(function($) {
2
- $("#psp-preview-box .hidden").removeClass('hidden');
3
- $("#psp-preview-box").tabs();
 
 
 
 
4
  });
1
+ jQuery(document).ready(function($) {
2
+ $("#psp-preview-box .hidden").removeClass('hidden');
3
+ $("#psp-preview-box").tabs();
4
+ $('[data-toggle="tooltip"]').tooltip();
5
+ $('body').tooltip({
6
+ selector: '[data-toggle="tooltip"]'
7
+ });
8
  });
psp-include/settings/js/snippetpreview.js CHANGED
@@ -1 +1 @@
1
- function escapeRegExp(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function wordCount(e){var t=e.match(/\S+/g);return t?t.length:0}function pspSortArray(e,t){var r=[],i=[];for(let l=0;l<e.length;l++)i=[],void 0!==(i=wp.data.select("core").getEntityRecord("taxonomy",t,e[l]))&&(r[l]=i.name);return r?(r.sort(),r[0]):"%"+t+"%"}function pspSortClassicArray(e,t){var r=[];return jQuery('input[name="'+e+'"]:checked').each(function(){r.push(jQuery(this).parent("label").text())}),r&&r.length?(r.sort(),r[0]):"%"+t+"%"}function boldWords(e){var t=e,r=jQuery("#psp_seo_meta\\[keywords\\]").val().match(/\S+/g);if(r)for(i=0;i<r.length;i++)t=(t=t.replace(new RegExp("(^|[\\W])("+escapeRegExp(r[i])+")([\\W]|$)","gi"),"$1<b>$2</b>$3")).replace(new RegExp("(^|[\\W])("+escapeRegExp(r[i])+")([\\W]|$)","gi"),"$1<b>$2</b>$3");return t}function boldText(e){var t=e,r=jQuery("#psp_seo_meta\\[keywords\\]").val().match(/\S+/g);if(r)for(i=0;i<r.length;i++)t=t.replace(new RegExp("("+escapeRegExp(r[i])+")","gi"),"<b>$1</b>");return t}function htmlEncode(e){return jQuery("<div/>").text(e).html()}function setGtbUrlPreview(e){var t=htmlEncode(e);t=t.replace(/\/$/,"");var r=t=t.replace(/([^https?:\/\/])(\/)/g,"$1 > ");jQuery("#urlSizer").html(t),jQuery("#murlSizer").html(r);var i=new RegExp("W(.*)$");for(trimmed=!1;jQuery("#urlSizer").width()>566;){var l=t;l=(l=(l=(l=l.substring(0,l.length-1)).trim()).replace(/\>$/,"")).trim(),jQuery("#urlSizer").html(l),t=l,trimmed=!0}trimmed&&(t+=" ...",jQuery("#urlSizer").html(t)),info=t.length+" characters, ",jQuery("#urlInfo").html(t.length+" characters, "+jQuery("#urlSizer").width()+" pixels"),jQuery("#urlSizer").width()<=584?jQuery("#urlInfo").html(info+'<span style="color:green;">'+jQuery("#urlSizer").width()+"/584 pixels</span>"):jQuery("#urlInfo").html(info+'<span style="color:red;">'+jQuery("#urlSizer").width()+"/584 pixels</span>"),jQuery("#techblissonlineSnippetUrl").html(t),mtrimmed=!1;for(var n=r;r.length>42;)r=jQuery.trim(r.replace(" ...","")),(n=(n=(n=jQuery.trim(n.replace(i,""))).trim()).replace(/\>$/,"")).length>=42&&(n=(n=jQuery.trim(r.replace(" ...",""))).substring(0,n.length-1)),n=n.trim(),r=n+=" ...",mtrimmed=!0;mtrimmed&&jQuery("#murlSizer").html(r),info=r.length+" characters, ",jQuery("#murlInfo").html(r.length+" characters, "+jQuery("#murlSizer").width()+" pixels"),jQuery("#murlSizer").width()<=282?jQuery("#murlInfo").html(info+'<span style="color:green;">'+jQuery("#urlSizer").width()+" pixels</span>"):jQuery("#murlInfo").html(info+'<span style="color:red;">'+jQuery("#murlSizer").width()+" pixels</span>"),jQuery("#techblissonlineMSnippetUrl").html(r)}function setUrlPreview(){var e="",t=!1;if(window.wpEditorL10n&&wpEditorL10n.tinymce&&wpEditorL10n.tinymce.settings&&(t=wpEditorL10n.tinymce.settings),jQuery("#editable-post-name").length){e=jQuery.trim(jQuery("#sample-permalink").text());var r=jQuery.trim(jQuery("#editable-post-name").text());e=(e=e.replace(r,"")).replace(/\/$/g,"")}else jQuery("#name").length?e=jQuery.trim(jQuery("#pspPostPermalink").text()):jQuery("#slug").length?e=jQuery.trim(jQuery("#pspPostPermalink").text()):t&&wp.data&&wp.data.select&&(e=wp.data.select("core/editor").getPermalink(),wp.data.subscribe(function(){setGtbUrlPreview(wp.data.select("core/editor").getPermalink())}));jQuery("#new-post-slug").length>0&&(e+=jQuery("#new-post-slug").val());jQuery("#editable-post-name").length&&(e+=jQuery("#editable-post-name").text());var i=htmlEncode(e);e=i=i.replace(/\/$/,"");var l=i=i.replace(/([^https?:\/\/])(\/)/g,"$1 > ");jQuery("#urlSizer").html(i),jQuery("#murlSizer").html(l);var n=new RegExp("W(.*)$");for(trimmed=!1;jQuery("#urlSizer").width()>584;){var s=i;s=(s=(s=(s=s.substring(0,s.length-1)).trim()).replace(/\>$/,"")).trim(),jQuery("#urlSizer").html(s),i=s,trimmed=!0}trimmed&&(i+=" ..."),info=i.length+" characters, ",jQuery("#urlInfo").html(i.length+" characters, "+jQuery("#urlSizer").width()+" pixels"),jQuery("#urlSizer").width()<=584?jQuery("#urlInfo").html(info+'<span style="color:green;">'+jQuery("#urlSizer").width()+"/584 pixels</span>"):jQuery("#urlInfo").html(info+'<span style="color:red;">'+jQuery("#urlSizer").width()+"/584 pixels</span>"),jQuery("#techblissonlineSnippetUrl").html(i),mtrimmed=!1;for(var o=l;o.length>42;)l=jQuery.trim(l.replace(" ...","")),(o=(o=(o=jQuery.trim(o.replace(n,""))).trim()).replace(/\>$/,"")).length>=42&&(o=(o=jQuery.trim(l.replace(" ...",""))).substring(0,o.length-1)),o=o.trim(),l=o+=" ...",mtrimmed=!0;mtrimmed&&jQuery("#murlSizer").html(l),info=l.length+" characters, ",jQuery("#murlInfo").html(l.length+" characters, "+jQuery("#murlSizer").width()+" pixels"),jQuery("#murlSizer").width()<=282?jQuery("#murlInfo").html(info+'<span style="color:green;">'+jQuery("#urlSizer").width()+" pixels</span>"):jQuery("#murlInfo").html(info+'<span style="color:red;">'+jQuery("#murlSizer").width()+" pixels</span>"),jQuery("#techblissonlineMSnippetUrl").html(l)}function stripTrailingSlash(e){return"/"==e.substr(-1)?e.substr(0,e.length-1):e}function setGtbTitlePreview(e,t){var r=jQuery("#psp_seo_meta\\[titleformat\\]").val(),i=!1,l=!1;jQuery("#psp_seo_meta\\[disable_title_format\\]:checked").length>0&&(i=!0),jQuery("#psp_seo_meta\\[disable_psp\\]:checked").length>0&&(l=!0),i&&(r="%seo_title%"),l&&(r="%wp_title%");var n=jQuery("#pspPostTypeArrayFormat").text(),s=JSON.parse(n),o=jQuery("#psp_seo_meta\\[title\\]"),a=r.replace("%seo_title%",e);if(a=(a=(a=(a=(a=a.replace("%wp_title%",s.wp_title)).replace("%site_name%",s.site_name)).replace("%site_description%",s.site_description)).replace("%taxonomy%",t)).replace(/%sep%/g,s.sep),""!==(a=(a=jQuery.trim(a)).trim(s.sep))){placeholder_title=e,o.attr("placeholder",placeholder_title);var p=htmlEncode(a),u=p;jQuery("#titleSizer").html(p);var c=new RegExp("sw+(.*)$");trimmed=!1;for(var m=p;jQuery("#titleSizer").width()>584;)p=jQuery.trim(p.replace(" ...","")),(m=jQuery.trim(m.replace(c,""))).length>=p.length&&(m=m.substring(0,m.length-1)),p=m+" ...",jQuery("#titleSizer").html(p),trimmed=!0;trimmed,jQuery("#titleSizer").html(p),mtrimmed=!1;for(var y=u;y.length>78;)u=jQuery.trim(u.replace(" ...","")),(y=jQuery.trim(y.replace(c,""))).length>=78&&(y=(y=jQuery.trim(y.replace(" ...",""))).substring(0,y.length-1)),u=y+=" ...",mtrimmed=!0;mtrimmed,jQuery("#mtitleSizer").html(u),info=p.length+" characters, "+wordCount(p)+" words ",jQuery("#titleInfo").html(p.length+" characters, "+jQuery("#titleSizer").width()+" pixels, "+wordCount(p)+" words"),jQuery("#titleSizer").width()<=584?jQuery("#titleInfo").html(info+'<span style="color:green;">'+jQuery("#titleSizer").width()+"/584 pixels</span>"):jQuery("#titleInfo").html(info+'<span style="color:red;">'+jQuery("#titleSizer").width()+"/584 pixels</span>"),minfo=u.length+" characters/ 78 characters "+wordCount(u)+" words ",jQuery("#mtitleInfo").html(u.length+" characters, "+jQuery("#mtitleSizer").width()+" pixels, "+wordCount(u)+" words"),u.length<=78?jQuery("#mtitleInfo").html('<span style="color:green;">'+minfo+"</span> "+jQuery("#mtitleSizer").width()+" pixels"):jQuery("#mtitleInfo").html('<span style="color:red;">'+minfo+"</span> "+jQuery("#mtitleSizer").width()+" pixels"),jQuery("#techblissonlineSnippetTitle").html(p),jQuery("#techblissonlineMSnippetTitle").html(u)}}function setTitlePreview(){var e,t,r,i="",l="",n="",s=!1,o="";window.wpEditorL10n&&wpEditorL10n.tinymce&&wpEditorL10n.tinymce.settings&&(s=wpEditorL10n.tinymce.settings);var a=jQuery("#pspPostTypeArrayFormat").text(),p=JSON.parse(a),u=jQuery("#psp_seo_meta\\[titleformat\\]").val(),c=!1,m=!1,y=!1;jQuery("#psp_seo_meta\\[disable_title_format\\]:checked").length>0&&(c=!0),jQuery("#psp_seo_meta\\[disable_title\\]:checked").length>0&&(m=!0),jQuery("#psp_seo_meta\\[disable_psp\\]:checked").length>0&&(y=!0);o=p.category,u.toLowerCase().indexOf("%wp_title%");var h=jQuery("#title"),d=jQuery("#psp_seo_meta\\[title\\]"),j=jQuery("#psp_seo_meta\\[preferred_tax\\]"),Q="categories",g="post_category[]",w="category";if(j&&j.val()&&"category"!==(w=jQuery("#psp_seo_meta\\[preferred_tax\\] option:selected").text())&&(Q=w,g="tax_input["+w+"][]"),h&&(o=pspSortClassicArray(g,w)),!d.val()||m||y?(jQuery("#title").val()?l=jQuery.trim(jQuery("#title").val()):jQuery("#name").val()?l=jQuery.trim(jQuery("#name").val()):s&&wp.data&&wp.data.select&&(l=wp.data.select("core/editor").getEditedPostAttribute("title"),r=wp.data.select("core/editor").getEditedPostAttribute(Q),o="%"+w+"%",void 0!==r&&r.length>0&&(o=pspSortArray(r,w)),wp.data.subscribe(function(){l=wp.data.select("core/editor").getEditedPostAttribute("title"),r=wp.data.select("core/editor").getEditedPostAttribute(Q),o="%"+w+"%",void 0!==r&&r.length>0&&(o=pspSortArray(r,w)),l&&o&&setGtbTitlePreview(l,o)})),i=l,(c||y)&&(u="%wp_title%"),i=(i=(i=(i=(i=(i=u.replace("%seo_title%",l)).replace("%wp_title%",l)).replace("%site_name%",p.site_name)).replace("%site_description%",p.site_description)).replace("%taxonomy%",o)).replace(/%sep%/g,p.sep),i=(i=jQuery.trim(i)).trim(p.sep)):(i=d.val(),n=d.val(),jQuery("#title").val()?l=jQuery.trim(jQuery("#title").val()):jQuery("#name").val()?l=jQuery.trim(jQuery("#name").val()):s&&wp.data&&wp.data.select&&(l=wp.data.select("core/editor").getEditedPostAttribute("title"),t=wp.data.select("core/editor").getEditedPostAttribute(Q),o="%"+w+"%",void 0!==t&&t.length>0&&(o=pspSortArray(t,w)),wp.data.subscribe(function(){l=wp.data.select("core/editor").getEditedPostAttribute("title"),t=wp.data.select("core/editor").getEditedPostAttribute(Q),o="%"+w+"%",void 0!==t&&t.length>0&&(o=pspSortArray(t,w)),n&&o&&setGtbTitlePreview(n,o)})),c&&(u="%seo_title%"),i=(i=(i=(i=(i=(i=u.replace("%seo_title%",n)).replace("%wp_title%",l)).replace("%site_name%",p.site_name)).replace("%site_description%",p.site_description)).replace("%taxonomy%",o)).replace(/%sep%/g,p.sep),i=(i=jQuery.trim(i)).trim(p.sep)),""!==i){e=l,d.attr("placeholder",e);var f=htmlEncode(i),v=f;jQuery("#titleSizer").html(f);var _=new RegExp("sw+(.*)$"),S=f;for(trimmed=!1;jQuery("#titleSizer").width()>584;)f=jQuery.trim(f.replace(" ...","")),(S=jQuery.trim(S.replace(_,""))).length>=f.length&&(S=S.substring(0,S.length-1)),f=S+" ...",jQuery("#titleSizer").text(f),trimmed=!0;trimmed,jQuery("#titleSizer").text(f),jQuery("body").append(jQuery("#titleSizer")).width(),jQuery("body#titleSizer").remove(),info=f.length+" characters, "+wordCount(f)+" words ",jQuery("#titleInfo").html(f.length+" characters, "+jQuery("#titleSizer").width()+" pixels, "+wordCount(f)+" words"),jQuery("#titleSizer").width()<=584?jQuery("#titleInfo").html(info+'<span style="color:green;">'+jQuery("#titleSizer").width()+"/584 pixels</span>"):jQuery("#titleInfo").html(info+'<span style="color:red;">'+jQuery("#titleSizer").width()+"/584 pixels</span>"),jQuery("#techblissonlineSnippetTitle").html(f);var b=v;for(mtrimmed=!1;b.length>78;)v=jQuery.trim(v.replace(" ...","")),(b=jQuery.trim(b.replace(_,""))).length>=78&&(b=(b=jQuery.trim(b.replace(" ...",""))).substring(0,b.length-1)),v=b+=" ...",mtrimmed=!0;mtrimmed,jQuery("#mtitleSizer").text(v),jQuery("body").append(jQuery("#mtitleSizer")).width(),jQuery("body#mtitleSizer").remove(),minfo=v.length+" characters/ 78 characters "+wordCount(v)+" words ",jQuery("#mtitleInfo").html(v.length+" characters, "+jQuery("#mtitleSizer").width()+" pixels, "+wordCount(v)+" words"),v.length<=78?jQuery("#mtitleInfo").html('<span style="color:green;">'+minfo+"</span> "+jQuery("#mtitleSizer").width()+" pixels"):jQuery("#mtitleInfo").html('<span style="color:red;">'+minfo+"</span> "+jQuery("#mtitleSizer").width()+" pixels"),jQuery("#techblissonlineMSnippetTitle").html(v)}}function setDescriptionPreview(){var e=!1,t=jQuery("#psp_seo_meta\\[description\\]");window.wpEditorL10n&&wpEditorL10n.tinymce&&wpEditorL10n.tinymce.settings&&(e=wpEditorL10n.tinymce.settings);var r=jQuery.trim(jQuery("#psp_seo_meta\\[maxsnippet\\]").val()),i=r;parseInt(r)<0&&(r=230,i=285),jQuery.inArray(parseInt(r),[-1,0,1,2,3,4])>-1&&(r=230,i=285),""===r&&(r=230,i=285),r=parseInt(r),i=parseInt(i);var l="",n=!1,s=!1;if(jQuery("#psp_seo_meta\\[disable_psp\\]:checked").length>0&&(n=!0),jQuery("#psp_seo_meta\\[disable_description\\]:checked").length>0&&(s=!0),""!==l||n||s||(l=jQuery.trim(jQuery("#psp_seo_meta\\[description\\]").val())),""===l)if(""===l&&e&&wp.data&&wp.data.select){var o=wp.data.select("core/editor").getEditedPostContent();l=(l=o.replace(/(<([^>]+)>)/gi,"")).substring(0,i),t.attr("placeholder",l),wp.data.subscribe(function(){var e=wp.data.select("core/editor").getEditedPostContent();t.val()||(l=(l=e.replace(/(<([^>]+)>)/gi,"")).substring(0,i),t.attr("placeholder",l),setGTBDescPreview(l))})}else{var a=jQuery.trim(jQuery("#content").val());if(!t.val()||n||s)return l=(l=a.replace(/(<([^>]+)>)/gi,"")).substring(0,i),t.attr("placeholder",l),void setGTBDescPreview(l)}var p=htmlEncode(l),u=p+=" ...";jQuery("#descriptionSizer").html(p),jQuery("#mdescriptionSizer").html(u);for(var c=new RegExp("sw+(.*)$"),m=p;m.length>r;)p=jQuery.trim(p.replace(" ...","")),m=jQuery.trim(m.replace(c,"")),l=jQuery.trim(l.replace(c,"")),m.length>=r&&(m=(m=jQuery.trim(m.replace(" ...",""))).substring(0,m.length-1),l=l.substring(0,l.length-1)),m+=" ...";p=m,jQuery("#descriptionSizer").html(p);for(var y=u;y.length>i;)u=jQuery.trim(u.replace(" ...","")),(y=jQuery.trim(y.replace(c,""))).length>=i&&(y=(y=jQuery.trim(y.replace(" ...",""))).substring(0,y.length-1)),y+=" ...";u=y,jQuery("#mdescriptionSizer").html(u),jQuery("#descriptionInfo").html(p.length+" characters, "+jQuery("#descriptionSizer").width()+" pixels, "+wordCount(p)+" words"),info=jQuery("#descriptionSizer").width()+" pixels, "+wordCount(p)+" words ",jQuery("#mdescriptionInfo").html(u.length+" characters, "+jQuery("#mdescriptionSizer").width()+" pixels, "+wordCount(u)+" words"),minfo=jQuery("#mdescriptionSizer").width()+" pixels, "+wordCount(u)+" words ",p.length<=146?jQuery("#descriptionInfo").html(info+'<span style="color:green;">'+p.length+"/~170 characters"):p.length<=160?jQuery("#descriptionInfo").html(info+'<span style="color:orange;">'+p.length+"/~170 characters</span>"):p.length<=166?jQuery("#descriptionInfo").html(info+'<span style="color:purple;">'+p.length+"/~170 characters</span>"):jQuery("#descriptionInfo").html(info+'<span style="color:red;">'+p.length+"/~170 characters</span>"),u.length<=146?jQuery("#mdescriptionInfo").html(minfo+'<span style="color:green;">'+u.length+"/~170 characters"):u.length<=160?jQuery("#mdescriptionInfo").html(minfo+'<span style="color:orange;">'+u.length+"/~170 characters</span>"):u.length<=166?jQuery("#mdescriptionInfo").html(minfo+'<span style="color:purple;">'+u.length+"/~170 characters</span>"):jQuery("#mdescriptionInfo").html(minfo+'<span style="color:red;">'+u.length+"/~170 characters</span>"),jQuery("#techblissonlineSnippetDescription").html(p),jQuery("#techblissonlineMSnippetDescription").html(u)}function setGTBDescPreview(e){var t=jQuery("#psp_seo_meta\\[description\\]"),r=e;placeholder_desc=e,t.attr("placeholder",placeholder_desc);var i=jQuery.trim(jQuery("#psp_seo_meta\\[maxsnippet\\]").val()),l=i;parseInt(i)<0&&(i=230,l=285),jQuery.inArray(parseInt(i),[-1,0,1,2,3,4])>-1&&(i=230,l=285),""===i&&(i=230,l=285),i=parseInt(i),l=parseInt(l);var n=htmlEncode(r),s=n+=" ...";jQuery("#descriptionSizer").html(n),jQuery("#mdescriptionSizer").html(s);for(var o=new RegExp("sw+(.*)$"),a=n;a.length>i;)n=jQuery.trim(n.replace(" ...","")),a=jQuery.trim(a.replace(o,"")),r=jQuery.trim(r.replace(o,"")),a.length>=i&&(a=(a=jQuery.trim(a.replace(" ...",""))).substring(0,a.length-1),r=r.substring(0,r.length-1)),a+=" ...";n=a,jQuery("#descriptionSizer").html(n);for(var p=s;p.length>l;)s=jQuery.trim(s.replace(" ...","")),(p=jQuery.trim(p.replace(o,""))).length>=l&&(p=(p=jQuery.trim(p.replace(" ...",""))).substring(0,p.length-1)),p+=" ...";s=p,jQuery("#descriptionSizer").html(s),jQuery("body").append(jQuery("#descriptionSizer")).width(),jQuery("body").append(jQuery("#mdescriptionSizer")).width(),jQuery("body").remove("#descriptionSizer"),jQuery("body").remove("#mdescriptionSizer"),jQuery("#descriptionInfo").html(n.length+" characters, "+jQuery("#descriptionSizer").width()+" pixels, "+wordCount(n)+" words"),info=jQuery("#descriptionSizer").width()+" pixels, "+wordCount(n)+" words ",jQuery("#mdescriptionInfo").html(s.length+" characters, "+jQuery("#mdescriptionSizer").width()+" pixels, "+wordCount(s)+" words"),minfo=jQuery("#mdescriptionSizer").width()+" pixels, "+wordCount(s)+" words ",n.length<=146?jQuery("#descriptionInfo").html(info+'<span style="color:green;">'+n.length+"/~170 characters"):n.length<=160?jQuery("#descriptionInfo").html(info+'<span style="color:orange;">'+n.length+"/~170 characters</span>"):n.length<=166?jQuery("#descriptionInfo").html(info+'<span style="color:purple;">'+n.length+"/~170 characters</span>"):jQuery("#descriptionInfo").html(info+'<span style="color:red;">'+n.length+"/~170 characters</span>"),s.length<=146?jQuery("#mdescriptionInfo").html(minfo+'<span style="color:green;">'+s.length+"/~170 characters"):s.length<=160?jQuery("#mdescriptionInfo").html(minfo+'<span style="color:orange;">'+s.length+"/~170 characters</span>"):s.length<=166?jQuery("#mdescriptionInfo").html(minfo+'<span style="color:purple;">'+s.length+"/~170 characters</span>"):jQuery("#mdescriptionInfo").html(minfo+'<span style="color:red;">'+s.length+"/~170 characters</span>"),jQuery("#techblissonlineSnippetDescription").html(n),jQuery("#techblissonlineMSnippetDescription").html(s)}function updateDateText(){var e=htmlEncode(jQuery.trim(jQuery("#DateText").val()));e.length>0?jQuery("#resultDateText").html(e+" - "):jQuery("#resultDateText").html("")}function updateAll(){setUrlPreview(),setTitlePreview(),setDescriptionPreview(),updateDateText()}String.prototype.trimEnd=function(e){e=e||" ";for(var t=this.length-1;t>=0&&this.charAt(t)==e;t--);return this.substring(0,t+1)},jQuery(document).ready(function(){jQuery("#URL").keyup(function(){setUrlPreview()}),jQuery(document).on("keyup","#new-post-slug",function(){setUrlPreview()}),jQuery(document).on("click",".cancel, .save",function(){setUrlPreview()}),jQuery('input[name="post_category[]"]').click(function(){setTitlePreview()}),jQuery("input[name^='tax_input[']").click(function(){setTitlePreview()}),jQuery("#psp_seo_meta\\[title\\]").keyup(function(){setTitlePreview()}),jQuery("#title").keyup(function(){setTitlePreview()}),jQuery("#name").keyup(function(){setTitlePreview()}),jQuery("#psp_seo_meta\\[titleformat\\]").bind("change",function(){setTitlePreview()}),jQuery("#psp_seo_meta\\[titleformat\\]").on("change",function(){setTitlePreview()}),jQuery("#psp_seo_meta\\[preferred_tax\\]").on("change",function(){setTitlePreview()}),jQuery("#psp_seo_meta\\[disable_title_format\\]").on("change",function(){setTitlePreview()}),jQuery("#psp_seo_meta\\[disable_title\\]").on("change",function(){setTitlePreview()}),jQuery("#psp_seo_meta\\[disable_psp\\]").on("change",function(){setTitlePreview(),setDescriptionPreview()}),jQuery("#psp_seo_meta\\[disable_description\\]").on("change",function(){setDescriptionPreview()}),jQuery("#psp_seo_meta\\[description\\]").keyup(function(){setDescriptionPreview()}),jQuery("#content").keyup(function(){setDescriptionPreview()}),jQuery("#psp_seo_meta\\[maxsnippet\\]").on("change",function(){setDescriptionPreview()}),jQuery("#DateText").keyup(function(){updateDateText()}),jQuery("#psp_seo_meta[keywords]").keyup(function(){updateAll()}),updateAll()});
1
+ function escapeRegExp(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function wordCount(e){var t=e.match(/\S+/g);return t?t.length:0}function pspSortArray(e,t){var s=[],i=[];for(let r=0;r<e.length;r++)i=[],void 0!==(i=wp.data.select("core").getEntityRecord("taxonomy",t,e[r]))&&(s[r]=i.name);return s?(s.sort(),s[0]):"%"+t+"%"}function pspSortClassicArray(e,t){var s=[];return jQuery('input[name="'+e+'"]:checked').each(function(){s.push(jQuery(this).parent("label").text())}),s&&s.length?(s.sort(),s[0]):"%"+t+"%"}function boldWords(e){var t=e,s=jQuery("#psp_seo_meta\\[keywords\\]").val().match(/\S+/g);if(s)for(i=0;i<s.length;i++)t=(t=t.replace(new RegExp("(^|[\\W])("+escapeRegExp(s[i])+")([\\W]|$)","gi"),"$1<b>$2</b>$3")).replace(new RegExp("(^|[\\W])("+escapeRegExp(s[i])+")([\\W]|$)","gi"),"$1<b>$2</b>$3");return t}function boldText(e){var t=e,s=jQuery("#psp_seo_meta\\[keywords\\]").val().match(/\S+/g);if(s)for(i=0;i<s.length;i++)t=t.replace(new RegExp("("+escapeRegExp(s[i])+")","gi"),"<b>$1</b>");return t}function htmlEncode(e){return jQuery("<div/>").text(e).html()}function setGtbUrlPreview(e){var t=htmlEncode(e),s=(t=t.replace(/\/$/,"")).length;jQuery("#permalinkSizer").html(t);var i=t=t.replace(/([^https?:\/\/])(\/)/g,"$1 > ");jQuery("#urlSizer").html(t),jQuery("#murlSizer").html(i);var r=new RegExp("W(.*)$");for(trimmed=!1;jQuery("#urlSizer").width()>566;){var n=t;n=(n=(n=(n=n.substring(0,n.length-1)).trim()).replace(/\>$/,"")).trim(),jQuery("#urlSizer").html(n),t=n,trimmed=!0}trimmed&&(t+=" ...",jQuery("#urlSizer").html(t)),info=s+" characters, ",jQuery("#urlInfo").html(t.length+" characters, "+jQuery("#urlSizer").width()+" pixels"),jQuery("#urlSizer").width()<=584?jQuery("#urlInfo").html(info+'<span style="color:green;">'+jQuery("#urlSizer").width()+"/584 pixels</span>"):jQuery("#urlInfo").html(info+'<span style="color:red;">'+jQuery("#urlSizer").width()+"/584 pixels</span>"),jQuery("#techblissonlineSnippetUrl").html(t),mtrimmed=!1;for(var a=i;i.length>42;)i=jQuery.trim(i.replace(" ...","")),(a=(a=(a=jQuery.trim(a.replace(r,""))).trim()).replace(/\>$/,"")).length>=42&&(a=(a=jQuery.trim(i.replace(" ...",""))).substring(0,a.length-1)),a=a.trim(),i=a+=" ...",mtrimmed=!0;mtrimmed&&jQuery("#murlSizer").html(i),info=i.length+" characters, ",jQuery("#murlInfo").html(i.length+" characters, "+jQuery("#murlSizer").width()+" pixels"),jQuery("#murlSizer").width()<=282?jQuery("#murlInfo").html(info+'<span style="color:green;">'+jQuery("#urlSizer").width()+" pixels</span>"):jQuery("#murlInfo").html(info+'<span style="color:red;">'+jQuery("#murlSizer").width()+" pixels</span>"),jQuery("#techblissonlineMSnippetUrl").html(i)}function setUrlPreview(){var e="",t=!1;if(window.wpEditorL10n&&wpEditorL10n.tinymce&&wpEditorL10n.tinymce.settings&&(t=wpEditorL10n.tinymce.settings),jQuery("#editable-post-name").length){e=jQuery.trim(jQuery("#sample-permalink").text());var s=jQuery.trim(jQuery("#editable-post-name").text());e=(e=e.replace(s,"")).replace(/\/$/g,"")}else jQuery("#name").length?e=jQuery.trim(jQuery("#pspPostPermalink").text()):jQuery("#slug").length?e=jQuery.trim(jQuery("#pspPostPermalink").text()):t&&wp.data&&wp.data.select&&(e=wp.data.select("core/editor").getPermalink(),wp.data.subscribe(function(){setGtbUrlPreview(wp.data.select("core/editor").getPermalink())}));jQuery("#new-post-slug").length>0&&(e+=jQuery("#new-post-slug").val());jQuery("#editable-post-name-full").length&&(e+=jQuery("#editable-post-name-full").text());var i=htmlEncode(e),r=i.length;r=(i=i.replace(/\/$/,"")).length;jQuery("#permalinkSizer").html(i);var n=i=i.replace(/([^https?:\/\/])(\/)/g,"$1 > ");e=i,jQuery("#urlSizer").html(i),jQuery("#murlSizer").html(n);var a=new RegExp("W(.*)$");for(trimmed=!1;jQuery("#urlSizer").width()>584;){var l=i;l=(l=(l=(l=l.substring(0,l.length-1)).trim()).replace(/\>$/,"")).trim(),jQuery("#urlSizer").html(l),i=l,trimmed=!0}trimmed&&(i+=" ..."),info=r+" characters, ",jQuery("#urlInfo").html(r+" characters, "+jQuery("#urlSizer").width()+" pixels"),jQuery("#urlSizer").width()<=584?jQuery("#urlInfo").html(info+'<span style="color:green;">'+jQuery("#urlSizer").width()+"/584 pixels</span>"):jQuery("#urlInfo").html(info+'<span style="color:red;">'+jQuery("#urlSizer").width()+"/584 pixels</span>"),jQuery("#techblissonlineSnippetUrl").html(i),mtrimmed=!1;for(var o=n;o.length>42;)n=jQuery.trim(n.replace(" ...","")),(o=(o=(o=jQuery.trim(o.replace(a,""))).trim()).replace(/\>$/,"")).length>=42&&(o=(o=jQuery.trim(n.replace(" ...",""))).substring(0,o.length-1)),o=o.trim(),n=o+=" ...",mtrimmed=!0;mtrimmed&&jQuery("#murlSizer").html(n),info=n.length+" characters, ",jQuery("#murlInfo").html(n.length+" characters, "+jQuery("#murlSizer").width()+" pixels"),jQuery("#murlSizer").width()<=282?jQuery("#murlInfo").html(info+'<span style="color:green;">'+jQuery("#urlSizer").width()+" pixels</span>"):jQuery("#murlInfo").html(info+'<span style="color:red;">'+jQuery("#murlSizer").width()+" pixels</span>"),jQuery("#techblissonlineMSnippetUrl").html(n)}function stripTrailingSlash(e){return"/"==e.substr(-1)?e.substr(0,e.length-1):e}function setGtbTitlePreview(e,t){var s=jQuery("#psp_seo_meta\\[titleformat\\]").val(),i=!1,r=!1;jQuery("#psp_seo_meta\\[disable_title_format\\]:checked").length>0&&(i=!0),jQuery("#psp_seo_meta\\[disable_psp\\]:checked").length>0&&(r=!0),i&&(s="%seo_title%"),r&&(s="%wp_title%");var n=jQuery("#pspPostTypeArrayFormat").text(),a=JSON.parse(n),l=jQuery("#psp_seo_meta\\[title\\]"),o=s.replace("%seo_title%",e);if(o=(o=(o=(o=(o=(o=o.replace("%wp_title%",a.wp_title)).replace("%site_name%",a.site_name)).replace("%site_description%",a.site_description)).replace("%category%",t)).replace("%taxonomy%",t)).replace(/%sep%/g,a.sep),""!==(o=(o=jQuery.trim(o)).trim(a.sep))){placeholder_title=e,l.attr("placeholder",placeholder_title);var p=htmlEncode(o),c=p;jQuery("#titleSizer").html(p),jQuery("#actualTitleSizer").html(p);var d=new RegExp("sw+(.*)$");trimmed=!1;for(var u=p;jQuery("#titleSizer").width()>584;)p=jQuery.trim(p.replace(" ...","")),(u=jQuery.trim(u.replace(d,""))).length>=p.length&&(u=u.substring(0,u.length-1)),p=u+" ...",jQuery("#titleSizer").html(p),trimmed=!0;trimmed,jQuery("#titleSizer").html(p),mtrimmed=!1;for(var h=c;h.length>78;)c=jQuery.trim(c.replace(" ...","")),(h=jQuery.trim(h.replace(d,""))).length>=78&&(h=(h=jQuery.trim(h.replace(" ...",""))).substring(0,h.length-1)),c=h+=" ...",mtrimmed=!0;mtrimmed,jQuery("#mtitleSizer").html(c),info=jQuery("<textarea />").html(p).text().length+" characters, "+wordCount(p)+" words ",jQuery("#titleInfo").html(p.length+" characters, "+jQuery("#titleSizer").width()+" pixels, "+wordCount(p)+" words"),jQuery("#titleSizer").width()<=584?jQuery("#titleInfo").html(info+'<span style="color:green;">'+jQuery("#titleSizer").width()+"/584 pixels</span>"):jQuery("#titleInfo").html(info+'<span style="color:red;">'+jQuery("#titleSizer").width()+"/584 pixels</span>"),minfo=jQuery("<textarea />").html(c).text().length+" characters/ 78 characters "+wordCount(c)+" words ",jQuery("#mtitleInfo").html(c.length+" characters, "+jQuery("#mtitleSizer").width()+" pixels, "+wordCount(c)+" words"),c.length<=78?jQuery("#mtitleInfo").html('<span style="color:green;">'+minfo+"</span> "+jQuery("#mtitleSizer").width()+" pixels"):jQuery("#mtitleInfo").html('<span style="color:red;">'+minfo+"</span> "+jQuery("#mtitleSizer").width()+" pixels"),jQuery("#techblissonlineSnippetTitle").html(p),jQuery("#techblissonlineMSnippetTitle").html(c),setPSPSeoAnalysis()}}function setTitlePreview(){var e,t,s,i="",r="",n="",a=!1,l="";window.wpEditorL10n&&wpEditorL10n.tinymce&&wpEditorL10n.tinymce.settings&&(a=wpEditorL10n.tinymce.settings);var o=jQuery("#pspPostTypeArrayFormat").text(),p=JSON.parse(o),c=jQuery("#psp_seo_meta\\[titleformat\\]").val(),d=!1,u=!1,h=!1;jQuery("#psp_seo_meta\\[disable_title_format\\]:checked").length>0&&(d=!0),jQuery("#psp_seo_meta\\[disable_title\\]:checked").length>0&&(u=!0),jQuery("#psp_seo_meta\\[disable_psp\\]:checked").length>0&&(h=!0);l=p.category,c.toLowerCase().indexOf("%wp_title%");var m=jQuery("#title"),y=jQuery("#psp_seo_meta\\[title\\]"),g=jQuery("#psp_seo_meta\\[preferred_tax\\]"),j="categories",Q="post_category[]",f="category";if(g&&g.val()&&"category"!==(f=jQuery("#psp_seo_meta\\[preferred_tax\\] option:selected").text())&&(j=f,Q="tax_input["+f+"][]"),m&&(l=pspSortClassicArray(Q,f)),!y.val()||u||h?(jQuery("#title").val()?r=jQuery.trim(jQuery("#title").val()):jQuery("#name").val()?r=jQuery.trim(jQuery("#name").val()):a&&wp.data&&wp.data.select&&(r=wp.data.select("core/editor").getEditedPostAttribute("title"),s=wp.data.select("core/editor").getEditedPostAttribute(j),l="%"+f+"%",void 0!==s&&s.length>0&&(l=pspSortArray(s,f)),wp.data.subscribe(function(){r=wp.data.select("core/editor").getEditedPostAttribute("title"),s=wp.data.select("core/editor").getEditedPostAttribute(j),l="%"+f+"%",void 0!==s&&s.length>0&&(l=pspSortArray(s,f)),r&&l&&setGtbTitlePreview(r,l)})),i=r,(d||h)&&(c="%wp_title%"),i=(i=(i=(i=(i=(i=(i=c.replace("%seo_title%",r)).replace("%wp_title%",r)).replace("%site_name%",p.site_name)).replace("%site_description%",p.site_description)).replace("%taxonomy%",l)).replace("%category%",l)).replace(/%sep%/g,p.sep),i=(i=jQuery.trim(i)).trim(p.sep)):(i=y.val(),n=y.val(),jQuery("#title").val()?r=jQuery.trim(jQuery("#title").val()):jQuery("#name").val()?r=jQuery.trim(jQuery("#name").val()):a&&wp.data&&wp.data.select&&(r=wp.data.select("core/editor").getEditedPostAttribute("title"),t=wp.data.select("core/editor").getEditedPostAttribute(j),l="%"+f+"%",void 0!==t&&t.length>0&&(l=pspSortArray(t,f)),wp.data.subscribe(function(){r=wp.data.select("core/editor").getEditedPostAttribute("title"),t=wp.data.select("core/editor").getEditedPostAttribute(j),l="%"+f+"%",void 0!==t&&t.length>0&&(l=pspSortArray(t,f)),n&&l&&setGtbTitlePreview(n,l)})),d&&(c="%seo_title%"),i=(i=(i=(i=(i=(i=(i=c.replace("%seo_title%",n)).replace("%wp_title%",r)).replace("%site_name%",p.site_name)).replace("%site_description%",p.site_description)).replace("%taxonomy%",l)).replace("%category%",l)).replace(/%sep%/g,p.sep),i=(i=jQuery.trim(i)).trim(p.sep)),""!==i){e=r,y.attr("placeholder",e);var w=htmlEncode(i),v=w;jQuery("#titleSizer").html(w),jQuery("#actualTitleSizer").html(w);var S=new RegExp("sw+(.*)$"),_=w;for(trimmed=!1;jQuery("#titleSizer").width()>584;)w=jQuery.trim(w.replace(" ...","")),(_=jQuery.trim(_.replace(S,""))).length>=w.length&&(_=_.substring(0,_.length-1)),w=_+" ...",jQuery("#titleSizer").text(w),trimmed=!0;trimmed,jQuery("#titleSizer").text(w),jQuery("body").append(jQuery("#titleSizer")).width(),jQuery("body#titleSizer").remove(),info=jQuery("<textarea />").html(w).text().length+" characters, "+wordCount(w)+" words ",jQuery("#titleInfo").html(w.length+" characters, "+jQuery("#titleSizer").width()+" pixels, "+wordCount(w)+" words"),jQuery("#titleSizer").width()<=584?jQuery("#titleInfo").html(info+'<span style="color:green;">'+jQuery("#titleSizer").width()+"/584 pixels</span>"):jQuery("#titleInfo").html(info+'<span style="color:red;">'+jQuery("#titleSizer").width()+"/584 pixels</span>"),jQuery("#techblissonlineSnippetTitle").html(w);var x=v;for(mtrimmed=!1;x.length>78;)v=jQuery.trim(v.replace(" ...","")),(x=jQuery.trim(x.replace(S,""))).length>=78&&(x=(x=jQuery.trim(x.replace(" ...",""))).substring(0,x.length-1)),v=x+=" ...",mtrimmed=!0;mtrimmed,jQuery("#mtitleSizer").text(v),jQuery("body").append(jQuery("#mtitleSizer")).width(),jQuery("body#mtitleSizer").remove(),minfo=jQuery("<textarea />").html(v).text().length+" characters/ 78 characters "+wordCount(v)+" words ",jQuery("#mtitleInfo").html(v.length+" characters, "+jQuery("#mtitleSizer").width()+" pixels, "+wordCount(v)+" words"),v.length<=78?jQuery("#mtitleInfo").html('<span style="color:green;">'+minfo+"</span> "+jQuery("#mtitleSizer").width()+" pixels"):jQuery("#mtitleInfo").html('<span style="color:red;">'+minfo+"</span> "+jQuery("#mtitleSizer").width()+" pixels"),jQuery("#techblissonlineMSnippetTitle").html(v),setPSPSeoAnalysis()}}function setDescriptionPreview(){var e=!1,t=jQuery("#psp_seo_meta\\[description\\]");window.wpEditorL10n&&wpEditorL10n.tinymce&&wpEditorL10n.tinymce.settings&&(e=wpEditorL10n.tinymce.settings);var s=jQuery.trim(jQuery("#psp_seo_meta\\[maxsnippet\\]").val()),i=s;parseInt(s)<0&&(s=230,i=285),jQuery.inArray(parseInt(s),[-1,0,1,2,3,4])>-1&&(s=230,i=285),""===s&&(s=230,i=285),s=parseInt(s),i=parseInt(i);var r="",n=!1,a=!1;if(jQuery("#psp_seo_meta\\[disable_psp\\]:checked").length>0&&(n=!0),jQuery("#psp_seo_meta\\[disable_description\\]:checked").length>0&&(a=!0),""!==r||n||a||(r=jQuery.trim(jQuery("#psp_seo_meta\\[description\\]").val())),""===r)if(""===r&&e&&wp.data&&wp.data.select){var l=wp.data.select("core/editor").getEditedPostContent();r=(r=l.replace(/(<([^>]+)>)/gi,"")).substring(0,i),t.attr("placeholder",r),wp.data.subscribe(function(){var e=wp.data.select("core/editor").getEditedPostContent();t.val()||(r=(r=e.replace(/(<([^>]+)>)/gi,"")).substring(0,i),t.attr("placeholder",r),setGTBDescPreview(r))})}else{var o=jQuery.trim(jQuery("#content").val());if(!t.val()||n||a)return r=(r=o.replace(/(<([^>]+)>)/gi,"")).substring(0,i),t.attr("placeholder",r),void setGTBDescPreview(r)}var p=htmlEncode(r),c=p+=" ...";jQuery("#descriptionSizer").html(p),jQuery("#mdescriptionSizer").html(c);for(var d=new RegExp("sw+(.*)$"),u=p;u.length>s;)p=jQuery.trim(p.replace(" ...","")),u=jQuery.trim(u.replace(d,"")),r=jQuery.trim(r.replace(d,"")),u.length>=s&&(u=(u=jQuery.trim(u.replace(" ...",""))).substring(0,u.length-1),r=r.substring(0,r.length-1)),u+=" ...";p=u,jQuery("#descriptionSizer").html(p);for(var h=c;h.length>i;)c=jQuery.trim(c.replace(" ...","")),(h=jQuery.trim(h.replace(d,""))).length>=i&&(h=(h=jQuery.trim(h.replace(" ...",""))).substring(0,h.length-1)),h+=" ...";c=h,jQuery("#mdescriptionSizer").html(c),jQuery("#descriptionInfo").html(p.length+" characters, "+jQuery("#descriptionSizer").width()+" pixels, "+wordCount(p)+" words"),info=jQuery("#descriptionSizer").width()+" pixels, "+wordCount(p)+" words ",jQuery("#mdescriptionInfo").html(c.length+" characters, "+jQuery("#mdescriptionSizer").width()+" pixels, "+wordCount(c)+" words"),minfo=jQuery("#mdescriptionSizer").width()+" pixels, "+wordCount(c)+" words ",p.length<=146?jQuery("#descriptionInfo").html(info+'<span style="color:green;">'+p.length+"/~170 characters"):p.length<=160?jQuery("#descriptionInfo").html(info+'<span style="color:orange;">'+p.length+"/~170 characters</span>"):p.length<=166?jQuery("#descriptionInfo").html(info+'<span style="color:purple;">'+p.length+"/~170 characters</span>"):jQuery("#descriptionInfo").html(info+'<span style="color:red;">'+p.length+"/~170 characters</span>"),c.length<=146?jQuery("#mdescriptionInfo").html(minfo+'<span style="color:green;">'+c.length+"/~170 characters"):c.length<=160?jQuery("#mdescriptionInfo").html(minfo+'<span style="color:orange;">'+c.length+"/~170 characters</span>"):c.length<=166?jQuery("#mdescriptionInfo").html(minfo+'<span style="color:purple;">'+c.length+"/~170 characters</span>"):jQuery("#mdescriptionInfo").html(minfo+'<span style="color:red;">'+c.length+"/~170 characters</span>"),jQuery("#techblissonlineSnippetDescription").html(p),jQuery("#techblissonlineMSnippetDescription").html(c),setPSPSeoAnalysis()}function setGTBDescPreview(e){var t=jQuery("#psp_seo_meta\\[description\\]"),s=e;placeholder_desc=e,t.attr("placeholder",placeholder_desc);var i=jQuery.trim(jQuery("#psp_seo_meta\\[maxsnippet\\]").val()),r=i;parseInt(i)<0&&(i=230,r=285),jQuery.inArray(parseInt(i),[-1,0,1,2,3,4])>-1&&(i=230,r=285),""===i&&(i=230,r=285),i=parseInt(i),r=parseInt(r);var n=htmlEncode(s),a=n+=" ...";jQuery("#descriptionSizer").html(n),jQuery("#mdescriptionSizer").html(a);for(var l=new RegExp("sw+(.*)$"),o=n;o.length>i;)n=jQuery.trim(n.replace(" ...","")),o=jQuery.trim(o.replace(l,"")),s=jQuery.trim(s.replace(l,"")),o.length>=i&&(o=(o=jQuery.trim(o.replace(" ...",""))).substring(0,o.length-1),s=s.substring(0,s.length-1)),o+=" ...";n=o,jQuery("#descriptionSizer").html(n);for(var p=a;p.length>r;)a=jQuery.trim(a.replace(" ...","")),(p=jQuery.trim(p.replace(l,""))).length>=r&&(p=(p=jQuery.trim(p.replace(" ...",""))).substring(0,p.length-1)),p+=" ...";a=p,jQuery("#descriptionSizer").html(a),jQuery("body").append(jQuery("#descriptionSizer")).width(),jQuery("body").append(jQuery("#mdescriptionSizer")).width(),jQuery("body").remove("#descriptionSizer"),jQuery("body").remove("#mdescriptionSizer"),jQuery("#descriptionInfo").html(n.length+" characters, "+jQuery("#descriptionSizer").width()+" pixels, "+wordCount(n)+" words"),info=jQuery("#descriptionSizer").width()+" pixels, "+wordCount(n)+" words ",jQuery("#mdescriptionInfo").html(a.length+" characters, "+jQuery("#mdescriptionSizer").width()+" pixels, "+wordCount(a)+" words"),minfo=jQuery("#mdescriptionSizer").width()+" pixels, "+wordCount(a)+" words ",n.length<=146?jQuery("#descriptionInfo").html(info+'<span style="color:green;">'+n.length+"/~170 characters"):n.length<=160?jQuery("#descriptionInfo").html(info+'<span style="color:orange;">'+n.length+"/~170 characters</span>"):n.length<=166?jQuery("#descriptionInfo").html(info+'<span style="color:purple;">'+n.length+"/~170 characters</span>"):jQuery("#descriptionInfo").html(info+'<span style="color:red;">'+n.length+"/~170 characters</span>"),a.length<=146?jQuery("#mdescriptionInfo").html(minfo+'<span style="color:green;">'+a.length+"/~170 characters"):a.length<=160?jQuery("#mdescriptionInfo").html(minfo+'<span style="color:orange;">'+a.length+"/~170 characters</span>"):a.length<=166?jQuery("#mdescriptionInfo").html(minfo+'<span style="color:purple;">'+a.length+"/~170 characters</span>"):jQuery("#mdescriptionInfo").html(minfo+'<span style="color:red;">'+a.length+"/~170 characters</span>"),jQuery("#techblissonlineSnippetDescription").html(n),jQuery("#techblissonlineMSnippetDescription").html(a),setPSPSeoAnalysis()}function updateDateText(){var e=htmlEncode(jQuery.trim(jQuery("#DateText").val()));e.length>0?jQuery("#resultDateText").html(e+" - "):jQuery("#resultDateText").html("")}function setPSPSeoAnalysis(){var e,t=!1,s="",i="";window.wpEditorL10n&&wpEditorL10n.tinymce&&wpEditorL10n.tinymce.settings&&(t=wpEditorL10n.tinymce.settings),t&&wp.data&&wp.data.select?(""==(i=wp.data.select("core/editor").getEditedPostContent())&&(i=wp.data.select("core/editor").getEditedPostAttribute("content")),s=wp.data.select("core/editor").getEditedPostAttribute("title")):(i=jQuery.trim(jQuery("#content").val()),s=jQuery.trim(jQuery("#title").val()));var r=[],n=0;e=i,""!=i&&(r=(i=(i=(i=(i=i.replace(/(<([^>]+)>)/gi,"")).replace(/['"]+/g,"")).replace(/[^a-zA-Z]+/g," ")).toLowerCase()).split(/[\/\s]+/),n=r.length);var a,l=window.location.hostname,o=!1,p=!1;a=jQuery("<div />",{html:e}).find("a").map(function(){if(-1==jQuery(this).attr("href").indexOf(l)&&(o=!0),-1!==jQuery(this).attr("href").indexOf(l)&&(p=!0),""!==jQuery(this).text())return jQuery(this).text()}).get();var c;c=jQuery(e).find("img").map(function(){if(""!==jQuery(this).attr("alt"))return jQuery(this).attr("alt")}).get();var d=!1,u=jQuery(e).find("img");void 0!==u&&u.length>0&&(d=!0);var h=!1,m=jQuery("<div />",{html:e}).find("h2, h3, h4, h5, h6");void 0!==m&&m.length>0&&(h=!0);var y;y=jQuery("<div />",{html:e}).find("h1").map(function(){if(""!==jQuery(this).text())return jQuery(this).text()}).get();var g;g=jQuery("<div />",{html:e}).find("h2").map(function(){if(""!==jQuery(this).text())return jQuery(this).text()}).get();var j=jQuery("#urlSizer").html(),Q=jQuery("#techblissonlineSnippetTitle").html(),f=jQuery("#techblissonlineSnippetDescription").val(),w=jQuery("#psp_seo_meta\\[description\\]").val(),v=jQuery("#psp_seo_meta\\[schema_string\\]").val(),S=!1,_=!1;""!==w&&(_=!0),""!==v&&"Invalid JSON Schema"!==v&&(S=!0);var x=jQuery.trim(jQuery("#permalinkSizer").html()),b=jQuery.trim(jQuery("#actualTitleSizer").html());jQuery("#actualTitleSizers").html(b);var z=0,P=0,E=0;""!==x&&(z=x.length),""!==x&&jQuery("#permalinkSizer").width(),""!==b&&(P=jQuery("<textarea />").html(b).text().length),""!==b&&(E=jQuery("#actualTitleSizer").width()),0==E&&(E=jQuery("#actualTitleSizers").width()-1),j=j.trim();var I=0,T=0,k=0,C=0,A="",L=[0,2,4],U=[1,3,4],D=[],$=jQuery("#psp_seo_meta\\[keywords\\]").val();if(void 0!==$&&(D=$.split(",")),A+='<div class="psp-bs">',A+='<div class="container-fluid">',A+="<h1>Platinum SEO Analysis</h1>",A+='<p>This is a basic content analysis of this page and your focus keywords. Assigning a score does not mean anything and so we do not do that. Rather, make sure that all these basic recommendations are adhered to. We also recommend you to try our <a href="https://techblissonline.com/tools/" target="_blank">Techblissonline SEO Tools</a> for a detailed analysis of your pages and your competitor pages for your focus keywords, co-occuring words (related entities) and improve your content accordingly. </p>',A+='<div class="panel-group">',A+='<div class="row"><div class="col-sm-12">',A+='<div class="panel panel-primary">',A+='<div class="panel-heading">General</div>',A+='<div class="panel-body">',A+="<ul>",z>0&&z<75?A=A+'<li><span class="dashicons dashicons-yes-alt"></span> URL Length is '+z+" characters </li>":z>75&&(A=A+'<li><span class="dashicons dashicons-dismiss"></span> URL lLength is '+z+' characters <a href="#" class="psptip" data-toggle="tooltip" data-placement="top" title="URL might get truncated in Google SERPS if it is more than 75 characters wide. "><sup><span class="dashicons dashicons-info"></span></sup></a></li>'),P>0&&P<70?A=A+'<li><span class="dashicons dashicons-yes-alt"></span> SEO Title lLength is '+P+" characters </li>":P>70&&(A=A+'<li><span class="dashicons dashicons-dismiss"></span> Actual SEO Title lLength is '+P+' characters. <a href="#" class="psptip" data-toggle="tooltip" data-placement="top" title="Title might get truncated in Google SERPS if it is more than 70 characters wide. "><sup><span class="dashicons dashicons-info"></span></sup></a></li>'),E>0&&E<574?A=A+'<li><span class="dashicons dashicons-yes-alt"></span> SEO Title pixel width is '+E+" pixels </li>":E>574&&(A=A+'<li><span class="dashicons dashicons-dismiss"></span> SEO Title pixel width is '+E+' pixels including Title format. <a href="#" class="psptip" data-toggle="tooltip" data-placement="top" title="Title might get truncated in Google SERPS if it is more than 574 pixels wide. "><sup><span class="dashicons dashicons-info"></span></sup></a></li>'),A+=_?'<li><span class="dashicons dashicons-yes-alt"></span> Platinum SEO Description is used </li>':'<li><span class="dashicons dashicons-dismiss"></span> Platinum SEO Description field is not filled in. You may be using auto-generated description. <a href="#" class="psptip" data-toggle="tooltip" data-placement="top" title="Using optimized description improves CTR from search and social engines"><sup><span class="dashicons dashicons-info"></span></sup></a></li>',A+=S?'<li><span class="dashicons dashicons-yes-alt"></span> Json Schema is used on this page using Platinum SEO </li>':'<li><span class="dashicons dashicons-dismiss"></span> Json Schema is not used on this page using Platinum SEO <a href="#" class="psptip" data-toggle="tooltip" data-placement="top" title="Using Json Schema has a positive impact on Google. Use our Schema generator tool to generate and add one in the Advanced SEO section."><sup><span class="dashicons dashicons-info"></span></sup></a></li>',""!=i&&(A=n>0&&n>500?A+'<li><span class="dashicons dashicons-yes-alt"></span> Total number of words in Content is '+n+' <a href="#" class="psptip" data-toggle="tooltip" data-placement="top" title="Content length does not matter as long as user intent is matched for the topic covered. Write related articles and link them internally "><sup><span class="dashicons dashicons-info"></span></sup></a></li>':A+'<li><span class="dashicons dashicons-dismiss"></span> Total number of words in Content is '+n+' <a href="#" class="psptip" data-toggle="tooltip" data-placement="top" title="Content length does not matter as long as user intent is matched for the topic covered. Write related articles and link them internally "><sup><span class="dashicons dashicons-info"></span></sup></a></li>',A+=d?'<li><span class="dashicons dashicons-yes-alt"></span> Images used in Content </li>':'<li><span class="dashicons dashicons-dismiss"></span> Images not used in Content <a href="#" class="psptip" data-toggle="tooltip" data-placement="top" title="Using relevant high quality images can increase user engagement and bring in more traffic"><sup><span class="dashicons dashicons-info"></span></sup></a></li>',A+=p?'<li><span class="dashicons dashicons-yes-alt"></span> Internal links used in content. </li>':'<li><span class="dashicons dashicons-dismiss"></span> Internal links not used in Content <a href="#" class="psptip" data-toggle="tooltip" data-placement="top" title="Linking to other relevant internal resources improves Time on site. "><sup><span class="dashicons dashicons-info"></span></sup></a></li>',A+=o?'<li><span class="dashicons dashicons-yes-alt"></span> External links found in content. </li>':'<li><span class="dashicons dashicons-dismiss"></span> External links not found in Content <a href="#" class="psptip" data-toggle="tooltip" data-placement="top" title="Linking to other relevant external resources as references improves trust on content. "><sup><span class="dashicons dashicons-info"></span></sup></a></li>',h&&(A+='<li><span class="dashicons dashicons-yes-alt"></span> Subheaders like h2 are used in Content </li>')),A+="</ul>",A+="</div>",A+="</div>",A+="</div></div>",(void 0!==D||D.length<1)&&""==$)return A+="</div>",A+="</div></div>",void jQuery("#techblissonlineseoanalysis").html(A);jQuery.each(D,function(e,t){if(I=0,T=0,k=0,C=0,searchlc=t.toLowerCase().trim(),!(""==searchlc||e>4)){if(jQuery.each([y,g,c,a],function(e,t){jQuery.each(t,function(t,s){-1!==s.toLowerCase().trim().indexOf(searchlc)&&(0==e&&(I+=1),1==e&&(T+=1),2==e&&(k+=1),3==e&&(C+=1))})}),jQuery.inArray(parseInt(e),L)>-1&&(A+='<div class="row">'),A+='<div class="col-sm-6">',A=(A+='<div class="panel panel-primary">')+'<div class="panel-heading">'+t+"</div>",A+='<div class="panel-body">',A+="<ul>",j&&(searchlcurl=searchlc.replace(/ /g,"-"),-1!==j.search(searchlcurl)?A+='<li><span class="dashicons dashicons-yes-alt"></span> Used in URL </li>':A+='<li><span class="dashicons dashicons-dismiss"></span> Not used in URL </li>'),Q&&(psplctitle=Q.toLowerCase().trim(),-1!==psplctitle.search(searchlc)?(A+='<li><span class="dashicons dashicons-yes-alt"></span> Used in Title </li>',psplctitle.indexOf(searchlc)<20?A+='<li><span class="dashicons dashicons-yes-alt"></span> Found in the beginning of Title </li>':A+='<li><span class="dashicons dashicons-dismiss"></span> Not found in the beginning of Title </li>'):A+='<li><span class="dashicons dashicons-dismiss"></span> Not used in Title </li>'),f&&(psplcdesc=f.toLowerCase().trim(),-1!==psplcdesc.search(searchlc)?(psplcdesc,A+='<li><span class="dashicons dashicons-yes-alt"></span> Used in Meta Description </li>'):A+='<li><span class="dashicons dashicons-dismiss"></span> Not used in Meta Description </li>'),s&&(psplcwptitle=s.toLowerCase().trim(),-1!==psplcwptitle.search(searchlc)?A+='<li><span class="dashicons dashicons-yes-alt"></span> Used in h1 tag (Wordpress Title) </li>':A+='<li><span class="dashicons dashicons-dismiss"></span> Not used in h1 tag (Wordpress Title) </li>'),A+="</ul>",""==i)return A+="</div>",A+="</div>",A+="</div>",void(jQuery.inArray(parseInt(e),U)>-1&&(A+="</div>"));var r=[];r=pspGetOccurences(searchlc,i,!1),pspkd=0,n>0&&r&&(pspkd=r.length/n*100);var l=pspGetCounOfIndices(r);A+="<ul>",r.length>0?(A=pspkd.toFixed(2)<3?A+'<li><span class="dashicons dashicons-yes-alt"></span> Used in content '+r.length+" time(s) </li>":A+'<li><span class="dashicons dashicons-dismiss"></span> Used in content '+r.length+" time(s) </li>",l>0&&l<6?A=A+'<li><li><span class="dashicons dashicons-yes-alt"></span> Found in first 100 words of content '+l+" time(s) </li>":0==l?A+='<li><span class="dashicons dashicons-dismiss"></span> Not found in first 100 words of content </li>':A=A+'<li><span class="dashicons dashicons-dismiss"></span> Found in first 100 words of content '+l+" time(s) </li>",A=pspkd.toFixed(2)<3?A+'<li><span class="dashicons dashicons-yes-alt"></span> Keyword Density of '+t+" is "+pspkd.toFixed(2):A+'<li><span class="dashicons dashicons-dismiss"></span> Keyword Density of '+t+" is "+pspkd.toFixed(2)):A+='<li><span class="dashicons dashicons-dismiss"></span> Not used in Content </li>',I>0&&(A=A+'<li><span class="dashicons dashicons-yes-alt"></span> Used in other h1 tags '+I+" time(s) </li>"),T>0?A=A+'<li><span class="dashicons dashicons-yes-alt"></span> Used in h2 tags '+T+" time(s) </li>":A+='<li><span class="dashicons dashicons-dismiss"></span> Not used in h2 tags </li>',k>0?A=A+'<li><span class="dashicons dashicons-yes-alt"></span> Used in image alt attributes '+k+" time(s) </li>":A+='<li><span class="dashicons dashicons-dismiss"></span> Not used in image alt attributes </li>',C>0?A=A+'<li><span class="dashicons dashicons-yes-alt"></span> Used in anchor texts '+C+" time(s) </li>":A+='<li><span class="dashicons dashicons-dismiss"></span> Not used in anchor texts </li>',A+="</ul>",A+="</div>",A+="</div>",A+="</div>",jQuery.inArray(parseInt(e),U)>-1&&(A+="</div>")}}),A+="</div>",A+="</div></div>",jQuery("#techblissonlineseoanalysis").html(A)}function pspGetOccurences(e,t,s){var i=e.length;if(0==i)return[];var r,n=0,a=[];for(s||(t=t.toLowerCase(),e=e.toLowerCase());(r=t.indexOf(e,n))>-1;)a.push(r),n=r+i;return a}function pspGetCounOfIndices(e){for(var t=0,s=0;s<e.length;++s)e[s]<100&&t++;return t}function updateAll(){setUrlPreview(),setTitlePreview(),setDescriptionPreview(),updateDateText()}String.prototype.trimEnd=function(e){e=e||" ";for(var t=this.length-1;t>=0&&this.charAt(t)==e;t--);return this.substring(0,t+1)},jQuery(document).ready(function(){jQuery("#URL").keyup(function(){setUrlPreview()}),jQuery(document).on("keyup","#new-post-slug",function(){setUrlPreview()}),jQuery(document).on("click",".cancel, .save",function(){setUrlPreview()}),jQuery('input[name="post_category[]"]').click(function(){setTitlePreview()}),jQuery("input[name^='tax_input[']").click(function(){setTitlePreview()}),jQuery("#psp_seo_meta\\[title\\]").keyup(function(){setTitlePreview()}),jQuery("#title").keyup(function(){setTitlePreview()}),jQuery("#name").keyup(function(){setTitlePreview()}),jQuery("#psp_seo_meta\\[titleformat\\]").bind("change",function(){setTitlePreview()}),jQuery("#psp_seo_meta\\[titleformat\\]").on("change",function(){setTitlePreview()}),jQuery("#psp_seo_meta\\[preferred_tax\\]").on("change",function(){setTitlePreview()}),jQuery("#psp_seo_meta\\[disable_title_format\\]").on("change",function(){setTitlePreview()}),jQuery("#psp_seo_meta\\[disable_title\\]").on("change",function(){setTitlePreview()}),jQuery("#psp_seo_meta\\[disable_psp\\]").on("change",function(){setTitlePreview(),setDescriptionPreview()}),jQuery("#psp_seo_meta\\[disable_description\\]").on("change",function(){setDescriptionPreview()}),jQuery("#psp_seo_meta\\[description\\]").keyup(function(){setDescriptionPreview()}),jQuery("#content").keyup(function(){setDescriptionPreview()}),jQuery("#psp_seo_meta\\[maxsnippet\\]").on("change",function(){setDescriptionPreview()}),jQuery("#DateText").keyup(function(){updateDateText()}),jQuery("#psp_seo_meta\\[keywords\\]").keyup(function(){setPSPSeoAnalysis()}),jQuery("#psp_analyse_btn").on("click",function(){updateAll()}),updateAll()});
psp-include/settings/psp_advanced_metabox_renderer.php CHANGED
@@ -86,7 +86,7 @@ Author URI: https://techblissonline.com/
86
  </tr>
87
  <tr class="form-field">
88
  <th style="width:20%;" scope="row" valign="top"><label for="psp_seo_meta[schema_string]"><?php esc_html_e('JSON_LD Schema String: ', 'platinum-seo-pack'); ?></label><br /><br /><i><a class="permalink" id="schemagenerator" href="https://techblissonline.com/tools/json-schema-generator/" target="_blank"><?php esc_html_e('Techblissonline Json Schema Generator Tool', 'platinum-seo-pack'); ?></a></i><br /><br /><i><a class="permalink" id="joinschemas" href="https://techblissonline.com/combine-json-schema/" target="_blank"><?php esc_html_e('How to combine several Json schema?', 'platinum-seo-pack'); ?></a></i></th>
89
- <td><textarea name="psp_seo_meta[schema_string]" id="psp_seo_meta[schema_string]" class="pspjsoneditor"><?php echo ( isset($psp_seo_meta['schema_string']) ? (esc_textarea(stripcslashes($psp_seo_meta['schema_string']))) : ' '); ?></textarea><br />
90
  <p class="description"><?php echo esc_html__('Set JSON_LD Schema String (without the script tag) for this post/page. Use', 'platinum-seo-pack').' <a href="https://techblissonline.com/tools/schema-markup-generator/" target="_blank">'.esc_html__('Techblissonline Schema Generator Tool', 'platinum-seo-pack').'</a>'; ?></p>
91
  </td>
92
  </tr>
86
  </tr>
87
  <tr class="form-field">
88
  <th style="width:20%;" scope="row" valign="top"><label for="psp_seo_meta[schema_string]"><?php esc_html_e('JSON_LD Schema String: ', 'platinum-seo-pack'); ?></label><br /><br /><i><a class="permalink" id="schemagenerator" href="https://techblissonline.com/tools/json-schema-generator/" target="_blank"><?php esc_html_e('Techblissonline Json Schema Generator Tool', 'platinum-seo-pack'); ?></a></i><br /><br /><i><a class="permalink" id="joinschemas" href="https://techblissonline.com/combine-json-schema/" target="_blank"><?php esc_html_e('How to combine several Json schema?', 'platinum-seo-pack'); ?></a></i></th>
89
+ <td><div class='pspeditor'><textarea name="psp_seo_meta[schema_string]" id="psp_seo_meta[schema_string]" class="pspjsoneditor"><?php echo ( isset($psp_seo_meta['schema_string']) ? (esc_textarea(stripcslashes($psp_seo_meta['schema_string']))) : ' '); ?></textarea></div><br />
90
  <p class="description"><?php echo esc_html__('Set JSON_LD Schema String (without the script tag) for this post/page. Use', 'platinum-seo-pack').' <a href="https://techblissonline.com/tools/schema-markup-generator/" target="_blank">'.esc_html__('Techblissonline Schema Generator Tool', 'platinum-seo-pack').'</a>'; ?></p>
91
  </td>
92
  </tr>
psp-include/settings/psp_analysis_metabox_renderer.php ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Platinum SEO Pack
4
+ Plugin URI: https://techblissonline.com/platinum-wordpress-seo-plugin/
5
+ Author: Rajesh - Techblissonline
6
+ Author URI: https://techblissonline.com/
7
+ */
8
+ ?>
9
+ <div id="pspanalysispar">
10
+ <div id="pspanalysis">
11
+ <table class="form-table">
12
+ <tr class="form-field">
13
+ <th style="width:20%;" scope="row" valign="top"><label for="psp_seo_meta[keywords]"><?php esc_html_e('Keywords: ', 'platinum-seo-pack'); ?></label><br /><?php if ($psp_type == "posttype" && (!$psp_posttype_metabox_advanced_hidden || is_super_admin())) { ?><?php if(isset($psp_seo_meta['disable_keywords']) && $psp_seo_meta['disable_keywords']) { $diskey_checked = ' checked="checked" '; } else { $diskey_checked =""; }
14
+ echo "<div class='psp-bs'><input ".esc_attr($diskey_checked)." id='psp_seo_meta[disable_keywords]' name='psp_seo_meta[disable_keywords]' type='checkbox' data-toggle='toggle' data-on='Off' data-onstyle='default' data-off='On' data-offstyle='success' data-style='ios' /></div><br />";
15
+ ?><?php } ?></th>
16
+ <td><input type="text" name="psp_seo_meta[keywords]" id="psp_seo_meta[keywords]" value="<?php echo ( isset($psp_seo_meta['keywords']) ? esc_attr($psp_seo_meta['keywords']) : ''); ?>"><br />
17
+ <p class="description"><?php esc_html_e('Set comma separated meta keywords to be used for this post/page.Meta Keywords tag should also be switched on sitewide in Platinum SEO General setthings. These are also used as the Focus keywords for Platinum SEO Analysis of this page,', 'platinum-seo-pack'); ?></p>
18
+ <p class="description"><strong><?php esc_html_e('Enter comma separated focus keywords in the input above and find the analysis below', 'platinum-seo-pack'); ?></strong></p>
19
+ <div class="psp-bs"><input style="width:20%;display:block;margin:auto" id="psp_analyse_btn" class="psp_analyser btn btn-primary" type="hidden" value="Analyse" /></div>
20
+ </td>
21
+ </tr>
22
+ </table>
23
+ <span style="font-family: arial, sans-serif;xfont-size:medium;font-size: 20px!important;position:absolute;visibility:hidden;white-space:nowrap;" id="actualTitleSizers"></span>
24
+ <div id="techblissonlineseoanalysis"></div>
25
+ </div> <?php /***psp analysis***/ ?>
26
+ </div> <?php /***psp analysis par***/ ?>
psp-include/settings/psp_basic_metabox_renderer.php CHANGED
@@ -6,15 +6,23 @@ Author: Rajesh - Techblissonline
6
  Author URI: http://techblissonline.com/
7
  */
8
  ?>
 
 
 
 
 
 
9
  <div id="psp-preview-box">
10
  <ul class="psp-preview-tabs" id="psp-preview-tabs">
11
- <li class="desktop"><a href="#desktop"><span class="dashicons dashicons-desktop"></span><?php esc_html_e( ' Preview', 'platinum-seo-pack' ); ?></a></li>
12
- <li class="mobile"><a href="#mobile"><span class="dashicons dashicons-smartphone"></span><?php esc_html_e( ' Preview', 'platinum-seo-pack' ); ?></a></li>
 
13
  </ul>
 
14
  <div id="desktop" class="psptab">
15
  <div id="TechblissonlineGoogleSnippet"><div style="max-width:600px;font-family: arial, sans-serif;padding-left: 2px; padding-top:5px;padding-bottom:10px;text-overflow:ellipsis;">
16
  <div style="xcolor:#093; color: #202124; padding-bottom: 2px; font-size: 14px !important;font-style: normal; xline-height: 1.2;line-height: 1.3;text-overflow: ellipsis; overflow: hidden;white-space: nowrap;"><img style="margin: 0 0 0 0; padding: 0 0 0 0px; margin-right: 9px;height='16';width='16';" src="<?php $domainurl = home_url(); echo "https://www.google.com/s2/favicons?domain=".esc_url($domainurl); ?>" /></span><span id="techblissonlineSnippetUrl"></span><img style="margin: 0 0 -2px 0; padding: 0 0 0 4px;" src="<?php $imgurl = plugins_url('snippet-cache.png', __FILE__); echo esc_url($imgurl); ?>" /></div>
17
- <div style="xtext-decoration: underline; text-decoration: none; xcolor: #1e0fbe; color: #1558d6; margin-bottom: 3px;padding-top: 2px; xfont-size: medium; font-size: 20px !important; xline-height: 1.3;line-height: 1.3 !important;"><span id="techblissonlineSnippetTitle"></span></div>
18
  <div id="authorPhoto"></div>
19
  <div style="xfont-size: small; font-size: 14px !important; xcolor: #545454;color: #3c4043; xline-height: 1.24;line-height: 1.57;"><span style="color: #808080;" id="techblissonlineSnippetDate"></span><span id="techblissonlineSnippetDescription"></span></div>
20
  </div>
@@ -26,22 +34,22 @@ Author URI: http://techblissonline.com/
26
  <div id="TechblissonlinemGoogleSnippet"><div style="max-width:270px;font-family: Roboto,HelveticaNeue,Arial,sans-serif;padding: 15px;text-overflow:ellipsis;border-style: solid;
27
  border-color: lightgrey;">
28
  <div style="xcolor:#006621; color: #3C4043; font-size: 12px !important; xline-height: 1.2;line-height: 20px;;text-overflow: ellipsis; overflow: hidden;white-space: nowrap;"><img style="margin: 0 0 -2px 0; padding: 1 0 0 0px; margin-right: 12px;height='16';width='16';" src="<?php $domainurl = home_url(); echo "https://www.google.com/s2/favicons?domain=".esc_url($domainurl); ?>" /></span><span id="techblissonlineMSnippetUrl"></span></div>
29
- <div style="xtext-decoration: underline; text-decoration: none; xcolor: #1558d6; color: #1967D2; xfont-size: medium; font-size: 16px !important; xline-height: 1.3;line-height: 20px !important;padding-top: 1px; margin-bottom: -1px;"><span id="techblissonlineMSnippetTitle"></span></div>
30
  <div id="MauthorPhoto"></div>
31
  <div style="xfont-size: small; font-size: 14px !important; xcolor: #444;color: #545454; xline-height: 1.24;line-height: 20px !important;margin-bottom: -1px;padding-top: 1px;"><span style="color: #808080;" id="techblissonlineMSnippetDate"></span><span id="techblissonlineMSnippetDescription"></span></div>
32
- </div>
33
- <div style="float:left; margin-top:5px;max-width:600px;"><div class="serpInfo" style="font-size: 13px !important; font-weight: bold;"><?php esc_html_e('Mobile Netrics: ', 'platinum-seo-pack'); ?></div><div class="serpInfo"><?php esc_html_e('Permalink Metrics: ', 'platinum-seo-pack'); ?> <span id="murlInfo"></span></div><div class="serpInfo"><?php esc_html_e('Title Metrics: ', 'platinum-seo-pack'); ?> <span id="mtitleInfo"></span></div><div class="serpInfo"><?php esc_html_e('Meta Description Metrics: ', 'platinum-seo-pack'); ?> <span id="mdescriptionInfo"></span></div><a class="permalink" id="tools" href="https://techblissonline.com/tools/" target="_blank">All SEO Tools</a> -
34
- <a class="permalink" id="mschemagenerator" href="https://techblissonline.com/tools/json-schema-generator/" target="_blank"><?php esc_html_e('Techblissonline Json Schema Editor', 'platinum-seo-pack'); ?></a>| <a class="permalink" id="mseoanalysis" href="https://techblissonline.com/tools/seo-analysis/" target="_blank"><?php esc_html_e('Techblissonline Onpage SEO analysis Tool', 'platinum-seo-pack'); ?></a></div>
35
 
36
  </div>
37
  </div>
38
- </div>
39
- <span style="font-family: arial, sans-serif;xfont-size:medium;font-size: 20px!important;position:absolute;visibility:hidden;white-space:nowrap;" id="titleSizer"></span><span style="font-family: arial, sans-serif;xfont-size:medium;font-size: 20px!important;position:absolute;visibility:hidden;white-space:nowrap;" id="mtitleSizer"></span><span style="font-family: arial, sans-serif;xfont-size:small;font-size: 13px!important;position:absolute;visibility:hidden;white-space:nowrap;" id="descriptionSizer"></span><span style="font-family: arial, sans-serif;xfont-size:small;font-size: 13px!important;position:absolute;visibility:hidden;white-space:nowrap;" id="mdescriptionSizer"></span><span style="font-family: arial, sans-serif;xfont-size:small;font-size: 16px!important;position:absolute;visibility:hidden;white-space:nowrap;" id="urlSizer"></span><span style="font-family: arial, sans-serif;xfont-size:small;font-size: 16px!important;position:absolute;visibility:hidden;white-space:nowrap;" id="murlSizer"></span><span style="font-family: arial, sans-serif;font-size:small;position:absolute;visibility:hidden;white-space:nowrap;" id="pspHomePermalink"><?php echo esc_url(home_url('/')); ?></span><span style="font-family: arial, sans-serif;font-size:small;position:absolute;visibility:hidden;white-space:nowrap;" id="pspPostPermalink"><?php echo esc_url(isset($_GET['post']) ? get_permalink( sanitize_key($_GET['post']) ) : (isset($_GET['tag_ID'], $_GET['taxonomy']) ? get_term_link(get_term_by('id', sanitize_key($_GET['tag_ID']), sanitize_key($_GET['taxonomy']))) : '')); ?></span><span style="font-family: arial, sans-serif;font-size:small;position:absolute;visibility:hidden;white-space:nowrap;" id="pspTaxPermalink"><?php echo esc_url(isset($_GET['tag_ID'], $_GET['taxonomy']) ? get_term_link(get_term_by('id', sanitize_key($_GET['tag_ID']), sanitize_key($_GET['taxonomy']))) : ''); ?></span><span style="font-family: arial, sans-serif;font-size:small;position:absolute;visibility:hidden;white-space:nowrap;" id="pspPostTypeFormat"><?php $psp_pt_instance = PspPtsSeoMetas::get_instance(); $psp_tax_instance = PspTaxSeoMetas::get_instance(); global $pagenow;$seo_title = (isset($pagenow) && $pagenow == 'post.php' ? $psp_pt_instance->get_pt_psp_title($post) : (isset($pagenow) && $pagenow == 'term.php' ? $psp_tax_instance->get_tax_psp_title() : $psp_pt_instance->get_pt_psp_title($post))); echo (isset($seo_title) ? esc_html($seo_title) : ''); ?></span><span style="font-family: arial, sans-serif;font-size:small;position:absolute;visibility:hidden;white-space:nowrap;" id="pspPostTypeArrayFormat"><?php $psp_pt_instance = PspPtsSeoMetas::get_instance(); $psp_tax_instance = PspTaxSeoMetas::get_instance(); $seo_title_arr = (isset($pagenow) && $pagenow == 'post.php' ? $psp_pt_instance->get_pt_psp_title($post, true) : (isset($pagenow) && $pagenow == 'term.php' ? $psp_tax_instance->get_tax_psp_title(true) : $psp_pt_instance->get_pt_psp_title($post, true))); echo (isset($seo_title_arr) ? json_encode($seo_title_arr) : ''); ?></span><span style="font-family: arial, sans-serif;font-size:small;position:absolute;visibility:hidden;white-space:nowrap;" id="pspPostPermalinkStruct"><?php
40
 
41
  global $wp_rewrite;
42
  $permalink_structure_for_posts = $wp_rewrite->permalink_structure;
43
  echo esc_html($permalink_structure_for_posts);
44
- wp_enqueue_script( 'psp-snippet', plugins_url( '/js/pspsnippet.js', __FILE__ ), array( 'jquery' ) );
 
45
  wp_enqueue_script( 'psp-bs-toggler-js', plugins_url( '/js/pspbstoggler.js', __FILE__ ) );
46
  wp_enqueue_style("'psp-bs-toggler-css", plugins_url( '/css/psp-bs-toggle.css', __FILE__ ));
47
  wp_enqueue_style("psp-settings-bs-css", plugins_url( '/css/psp-settings-bs.css', __FILE__ ));
@@ -51,7 +59,62 @@ label {
51
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
52
  font-size: 14 px;
53
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  </style>
 
 
55
  <table class="form-table">
56
  <tr class="form-field">
57
  <th style="width:20%;" scope="row" valign="top"><label for="psp_seo_meta[title]"><?php esc_html_e('SEO Title: ', 'platinum-seo-pack'); ?></label><br /><?php if ($psp_type == "posttype" && (!$psp_posttype_metabox_advanced_hidden || is_super_admin())) { ?><?php if( isset($psp_seo_meta['disable_title']) && $psp_seo_meta['disable_title']) { $distit_checked = ' checked="checked" '; } else { $distit_checked = ""; }
@@ -112,14 +175,6 @@ label {
112
  </td>
113
  </tr>
114
  <?php }} ?>
115
- <tr class="form-field">
116
- <th style="width:20%;" scope="row" valign="top"><label for="psp_seo_meta[keywords]"><?php esc_html_e('Keywords: ', 'platinum-seo-pack'); ?></label><br /><?php if ($psp_type == "posttype" && (!$psp_posttype_metabox_advanced_hidden || is_super_admin())) { ?><?php if(isset($psp_seo_meta['disable_keywords']) && $psp_seo_meta['disable_keywords']) { $diskey_checked = ' checked="checked" '; } else { $diskey_checked =""; }
117
- echo "<div class='psp-bs'><input ".esc_attr($diskey_checked)." id='psp_seo_meta[disable_keywords]' name='psp_seo_meta[disable_keywords]' type='checkbox' data-toggle='toggle' data-on='Off' data-onstyle='default' data-off='On' data-offstyle='success' data-style='ios' /></div><br />";
118
- ?><?php } ?></th>
119
- <td><input type="text" name="psp_seo_meta[keywords]" id="psp_seo_meta[keywords]" value="<?php echo ( isset($psp_seo_meta['keywords']) ? esc_attr($psp_seo_meta['keywords']) : ''); ?>"><br />
120
- <p class="description"><?php esc_html_e('Set meta keywords to be used for this post/page.Meta Keywords tag should also be switched on sitewide in Platinum SEO General setthings. ', 'platinum-seo-pack'); ?></p>
121
- </td>
122
- </tr>
123
  <?php if ($psp_type == "posttype" && (!$psp_posttype_metabox_advanced_hidden || is_super_admin())) { ?>
124
  <tr class="form-field">
125
  <th style="width:20%;" scope="row" valign="top"><label for="psp_seo_meta[disable_psp]"><?php esc_html_e('Platinum SEO Settings: ', 'platinum-seo-pack'); ?></label></th>
@@ -130,4 +185,5 @@ label {
130
  </td>
131
  </tr>
132
  <?php } ?>
133
- </table>
 
6
  Author URI: http://techblissonline.com/
7
  */
8
  ?>
9
+ <?php
10
+ //wp_enqueue_script( 'psp-thickbox', plugins_url( '/js/psp-thickbox.js', __FILE__ ), array( 'jquery' ) );
11
+ wp_enqueue_script( 'thickbox', '', array( 'jquery' ) );
12
+ wp_enqueue_style( 'thickbox' );
13
+ ?>
14
+ <div id='psp-preview-box-tbx'>
15
  <div id="psp-preview-box">
16
  <ul class="psp-preview-tabs" id="psp-preview-tabs">
17
+ <li class="desktop"><a href="#desktop" title="Desktop Preview"><span class="dashicons dashicons-desktop"></span><?php esc_html_e( ' ', 'platinum-seo-pack' ); ?></a></li>
18
+ <li class="mobile"><a href="#mobile" title="Mobile Preview"><span class="dashicons dashicons-smartphone"></span><?php esc_html_e( ' ', 'platinum-seo-pack' ); ?></a></li>
19
+ <li class="tbicon"><a href="#psp-basic" class="basic " style="text-decoration:none;" title="Techblissonline Platinum SEO Settings"><span class=""><?php echo '<img src="'.esc_url(plugins_url( 'images/techblissonline-platinum-seo-pack.ico', dirname(dirname(__FILE__) ))).'" />'; ?></span></a></li>
20
  </ul>
21
+ <br /><br />
22
  <div id="desktop" class="psptab">
23
  <div id="TechblissonlineGoogleSnippet"><div style="max-width:600px;font-family: arial, sans-serif;padding-left: 2px; padding-top:5px;padding-bottom:10px;text-overflow:ellipsis;">
24
  <div style="xcolor:#093; color: #202124; padding-bottom: 2px; font-size: 14px !important;font-style: normal; xline-height: 1.2;line-height: 1.3;text-overflow: ellipsis; overflow: hidden;white-space: nowrap;"><img style="margin: 0 0 0 0; padding: 0 0 0 0px; margin-right: 9px;height='16';width='16';" src="<?php $domainurl = home_url(); echo "https://www.google.com/s2/favicons?domain=".esc_url($domainurl); ?>" /></span><span id="techblissonlineSnippetUrl"></span><img style="margin: 0 0 -2px 0; padding: 0 0 0 4px;" src="<?php $imgurl = plugins_url('snippet-cache.png', __FILE__); echo esc_url($imgurl); ?>" /></div>
25
+ <a href="#TB_inline?height=600&amp;width=750&amp;inlineId=psp-preview-box-tbx" class="tbpsp thickbox" style="text-decoration:none;" title="Platinum SEO Preview"><div style="xtext-decoration: underline; text-decoration: none; xcolor: #1a0dab; color: #1a0dab; margin-bottom: 3px;padding-top: 2px; xfont-size: medium; font-size: 20px !important; xline-height: 1.3;line-height: 1.3 !important;"><span id="techblissonlineSnippetTitle"></span></div></a>
26
  <div id="authorPhoto"></div>
27
  <div style="xfont-size: small; font-size: 14px !important; xcolor: #545454;color: #3c4043; xline-height: 1.24;line-height: 1.57;"><span style="color: #808080;" id="techblissonlineSnippetDate"></span><span id="techblissonlineSnippetDescription"></span></div>
28
  </div>
34
  <div id="TechblissonlinemGoogleSnippet"><div style="max-width:270px;font-family: Roboto,HelveticaNeue,Arial,sans-serif;padding: 15px;text-overflow:ellipsis;border-style: solid;
35
  border-color: lightgrey;">
36
  <div style="xcolor:#006621; color: #3C4043; font-size: 12px !important; xline-height: 1.2;line-height: 20px;;text-overflow: ellipsis; overflow: hidden;white-space: nowrap;"><img style="margin: 0 0 -2px 0; padding: 1 0 0 0px; margin-right: 12px;height='16';width='16';" src="<?php $domainurl = home_url(); echo "https://www.google.com/s2/favicons?domain=".esc_url($domainurl); ?>" /></span><span id="techblissonlineMSnippetUrl"></span></div>
37
+ <a href="#TB_inline?height=600&amp;width=750&amp;inlineId=psp-preview-box-tbx" class="tbpsp thickbox" style="text-decoration:none;" title="Platinum SEO Preview"><div style="xtext-decoration: underline; text-decoration: none; xcolor: #1a0dab; color: #1a0dab; xfont-size: medium; font-size: 16px !important; xline-height: 1.3;line-height: 20px !important;padding-top: 1px; margin-bottom: -1px;"><span id="techblissonlineMSnippetTitle"></span></div></a>
38
  <div id="MauthorPhoto"></div>
39
  <div style="xfont-size: small; font-size: 14px !important; xcolor: #444;color: #545454; xline-height: 1.24;line-height: 20px !important;margin-bottom: -1px;padding-top: 1px;"><span style="color: #808080;" id="techblissonlineMSnippetDate"></span><span id="techblissonlineMSnippetDescription"></span></div>
40
+ <div style="float:left; margin-top:5px;max-width:600px;"><div class="serpInfo" style="font-size: 13px !important; font-weight: bold;margin-top: 16px;"><?php esc_html_e('Mobile Metrics: ', 'platinum-seo-pack'); ?></div><div class="serpInfo"><?php esc_html_e('Permalink Metrics: ', 'platinum-seo-pack'); ?> <span id="murlInfo"></span></div><div class="serpInfo"><?php esc_html_e('Title Metrics: ', 'platinum-seo-pack'); ?> <span id="mtitleInfo"></span></div><div class="serpInfo"><?php esc_html_e('Meta Description Metrics: ', 'platinum-seo-pack'); ?> <span id="mdescriptionInfo"></span></div><a class="permalink" id="tools" href="https://techblissonline.com/tools/" target="_blank">All SEO Tools</a> -
41
+ <a class="permalink" id="mschemagenerator" href="https://techblissonline.com/tools/json-schema-generator/" target="_blank"><?php esc_html_e('Techblissonline Json Schema Editor', 'platinum-seo-pack'); ?></a>| <a class="permalink" id="mseoanalysis" href="https://techblissonline.com/tools/seo-analysis/" target="_blank"><?php esc_html_e('Techblissonline Onpage SEO analysis Tool', 'platinum-seo-pack'); ?></a></div></div>
 
42
 
43
  </div>
44
  </div>
45
+ </div></div><?php /***psp preview box***/ ?>
46
+ <span style="font-family: arial, sans-serif;xfont-size:medium;font-size: 20px!important;position:absolute;visibility:hidden;white-space:nowrap;" id="titleSizer"></span><span style="font-family: arial, sans-serif;xfont-size:medium;font-size: 20px!important;position:absolute;visibility:hidden;white-space:nowrap;" id="actualTitleSizer"></span><span style="font-family: arial, sans-serif;xfont-size:medium;font-size: 20px!important;position:absolute;visibility:hidden;white-space:nowrap;" id="mtitleSizer"></span><span style="font-family: arial, sans-serif;xfont-size:small;font-size: 13px!important;position:absolute;visibility:hidden;white-space:nowrap;" id="descriptionSizer"></span><span style="font-family: arial, sans-serif;xfont-size:small;font-size: 13px!important;position:absolute;visibility:hidden;white-space:nowrap;" id="mdescriptionSizer"></span><span style="font-family: arial, sans-serif;xfont-size:small;font-size: 16px!important;position:absolute;visibility:hidden;white-space:nowrap;" id="permalinkSizer"></span><span style="font-family: arial, sans-serif;xfont-size:small;font-size: 16px!important;position:absolute;visibility:hidden;white-space:nowrap;" id="urlSizer"></span><span style="font-family: arial, sans-serif;xfont-size:small;font-size: 16px!important;position:absolute;visibility:hidden;white-space:nowrap;" id="murlSizer"></span><span style="font-family: arial, sans-serif;font-size:small;position:absolute;visibility:hidden;white-space:nowrap;" id="pspHomePermalink"><?php echo esc_url(home_url('/')); ?></span><span style="font-family: arial, sans-serif;font-size:small;position:absolute;visibility:hidden;white-space:nowrap;" id="pspPostPermalink"><?php echo esc_url(isset($_GET['post']) ? get_permalink( sanitize_key($_GET['post']) ) : (isset($_GET['tag_ID'], $_GET['taxonomy']) ? get_term_link(get_term_by('id', sanitize_key($_GET['tag_ID']), sanitize_key($_GET['taxonomy']))) : '')); ?></span><span style="font-family: arial, sans-serif;font-size:small;position:absolute;visibility:hidden;white-space:nowrap;" id="pspTaxPermalink"><?php echo esc_url(isset($_GET['tag_ID'], $_GET['taxonomy']) ? get_term_link(get_term_by('id', sanitize_key($_GET['tag_ID']), sanitize_key($_GET['taxonomy']))) : ''); ?></span><span style="font-family: arial, sans-serif;font-size:small;position:absolute;visibility:hidden;white-space:nowrap;" id="pspPostTypeFormat"><?php $psp_pt_instance = PspPtsSeoMetas::get_instance(); $psp_tax_instance = PspTaxSeoMetas::get_instance(); global $pagenow;$seo_title = (isset($pagenow) && $pagenow == 'post.php' ? $psp_pt_instance->get_pt_psp_title($post) : (isset($pagenow) && $pagenow == 'term.php' ? $psp_tax_instance->get_tax_psp_title() : $psp_pt_instance->get_pt_psp_title($post))); echo (isset($seo_title) ? esc_html($seo_title) : ''); ?></span><span style="font-family: arial, sans-serif;font-size:small;position:absolute;visibility:hidden;white-space:nowrap;" id="pspPostTypeArrayFormat"><?php $psp_pt_instance = PspPtsSeoMetas::get_instance(); $psp_tax_instance = PspTaxSeoMetas::get_instance(); $seo_title_arr = (isset($pagenow) && $pagenow == 'post.php' ? $psp_pt_instance->get_pt_psp_title($post, true) : (isset($pagenow) && $pagenow == 'term.php' ? $psp_tax_instance->get_tax_psp_title(true) : $psp_pt_instance->get_pt_psp_title($post, true))); echo (isset($seo_title_arr) ? json_encode($seo_title_arr) : ''); ?></span><span style="font-family: arial, sans-serif;font-size:small;position:absolute;visibility:hidden;white-space:nowrap;" id="pspPostPermalinkStruct"><?php
47
 
48
  global $wp_rewrite;
49
  $permalink_structure_for_posts = $wp_rewrite->permalink_structure;
50
  echo esc_html($permalink_structure_for_posts);
51
+ wp_enqueue_script( 'psp-bs-js', plugins_url( '/js/pspbsjs.js', __FILE__ ) );
52
+ wp_enqueue_script( 'psp-snippet', plugins_url( '/js/pspsnippet.js', __FILE__ ), array('jquery', 'jquery-ui-tabs' ));
53
  wp_enqueue_script( 'psp-bs-toggler-js', plugins_url( '/js/pspbstoggler.js', __FILE__ ) );
54
  wp_enqueue_style("'psp-bs-toggler-css", plugins_url( '/css/psp-bs-toggle.css', __FILE__ ));
55
  wp_enqueue_style("psp-settings-bs-css", plugins_url( '/css/psp-settings-bs.css', __FILE__ ));
59
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
60
  font-size: 14 px;
61
  }
62
+ .pspeditor {
63
+ max-width: 400px;
64
+ }
65
+ .psp-preview-tabs, .psp-preview {
66
+ float:right;
67
+ }
68
+
69
+ #TB_ajaxWindowTitle {
70
+ font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
71
+ font-weight: bold;
72
+ font-size: 20 px;
73
+ }
74
+
75
+ .thickbox-loading {
76
+ min-height: 450px!Important;
77
+ min-width: 600px!Important;
78
+
79
+ }
80
+
81
+ #techblissonlineseoanalysis {
82
+ font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
83
+ font-size: 20 px;
84
+ }
85
+
86
+ .dashicons-yes-alt {
87
+ color: green !important;
88
+ }
89
+
90
+ .psptip {
91
+ color: #555 !important;
92
+ text-decoration: none;
93
+ }
94
+
95
+ .dashicons-dismiss {
96
+ color: red !important;
97
+ }
98
+
99
+ #psp-meta-box .psp-metabox-tabs, #psp-preview-box .psp-preview-tabs {
100
+ background: #fff;
101
+ border-width: 0px 1px 1px 1px;
102
+ }
103
+ .psp-metabox-tabs .ui-state-active a {
104
+ color:white !important;
105
+ border-color: #3c8243 !important;
106
+ background: #0073aa !important;
107
+
108
+ }
109
+ .psp-preview-tabs .ui-state-active a {
110
+ color:white !important;
111
+ border-color: #3c8243 !important;
112
+ background: #0073aa !important;
113
+
114
+ }
115
  </style>
116
+ <div id="psp-basic">
117
+ <div id="psp-basic-settings">
118
  <table class="form-table">
119
  <tr class="form-field">
120
  <th style="width:20%;" scope="row" valign="top"><label for="psp_seo_meta[title]"><?php esc_html_e('SEO Title: ', 'platinum-seo-pack'); ?></label><br /><?php if ($psp_type == "posttype" && (!$psp_posttype_metabox_advanced_hidden || is_super_admin())) { ?><?php if( isset($psp_seo_meta['disable_title']) && $psp_seo_meta['disable_title']) { $distit_checked = ' checked="checked" '; } else { $distit_checked = ""; }
175
  </td>
176
  </tr>
177
  <?php }} ?>
 
 
 
 
 
 
 
 
178
  <?php if ($psp_type == "posttype" && (!$psp_posttype_metabox_advanced_hidden || is_super_admin())) { ?>
179
  <tr class="form-field">
180
  <th style="width:20%;" scope="row" valign="top"><label for="psp_seo_meta[disable_psp]"><?php esc_html_e('Platinum SEO Settings: ', 'platinum-seo-pack'); ?></label></th>
185
  </td>
186
  </tr>
187
  <?php } ?>
188
+ </table>
189
+ </div></div><?php /***psp basic***/ ?>
psp-include/settings/psp_settings.php CHANGED
@@ -179,6 +179,8 @@ class PspSettings {
179
  }
180
  //add filter to modify post meta values
181
  add_filter( 'wp_insert_post_data', array( &$this, 'psp_slash' ), -99, 2 );
 
 
182
 
183
  //add psp seo metabox to post types
184
  add_action( 'add_meta_boxes', array( &$this, 'do_psp_meta_boxes' ), -99, 2 );
@@ -388,6 +390,7 @@ class PspSettings {
388
  'option_name' => $psp_home_settings_name.'[headers]',
389
  'option_value' => $home_header_metas,
390
  'option_description' => esc_html__( 'Here you may add all the webmaster tools verification meta tag codes for google, bing, yandex, alexa and for any other search engine.If you had already verified with the webmaster tools, you might choose to ignore adding them here. Check ', 'platinum-seo-pack' ).' <br> <a href="https://www.google.com/webmasters/verification/verification?hl=en&siteUrl='.trailingslashit(get_home_url()).'" target="_blank">Google Webmaster Tools</a><br> <a href="http://www.bing.com/webmaster/?rfp=1#/Dashboard/?url='.substr(get_home_url(), 8).'" target="_blank">Bing Webmaster Tools</a>;',
 
391
  );
392
 
393
  $json_schema_string = isset($psp_home_settings['schema']) ? html_entity_decode(stripcslashes(esc_attr($psp_home_settings['schema']))) : '';
@@ -402,6 +405,7 @@ class PspSettings {
402
  'option_name' => $psp_home_settings_name.'[schema]',
403
  'option_value' => $json_schema_string,
404
  'option_description' => esc_html__( 'Here you may add all the JSON Schemas for the Home page', 'platinum-seo-pack' ),
 
405
  );
406
 
407
  //add_settings_field( 'psp_home_title', '<a href="'.home_url().'" target="_blank">'.__('Home Page Title: ', 'platinum-seo-pack').'</a>', array( &$this, 'psp_add_field_text' ), $this->psp_home_settings_group, 'psp_section_home', $title_field);
@@ -977,7 +981,7 @@ class PspSettings {
977
  );
978
 
979
  $comment_text_rss_nohtml_kses_id = 'psp_'.$setting_name.'_comment_text_rss_nohtml_kses';
980
- $comment_text_rss_nohtml_kses_title = esc_html__( 'Strip HTNL in comment text RSS: ', 'platinum-seo-pack' );
981
 
982
  add_settings_field( $comment_text_rss_nohtml_kses_id, $comment_text_rss_nohtml_kses_title, array( &$this, 'psp_add_field_checkbox' ), $this->psp_general_settings_group, $section_id, $comment_text_rss_nohtml_kses_field );
983
 
@@ -2478,12 +2482,22 @@ class PspSettings {
2478
  $option_value = isset($args['option_value']) ? html_entity_decode(esc_textarea( $args['option_value'] )) : '';
2479
  $option_description = isset($args['option_description']) ? esc_html( $args['option_description'] ) : '';
2480
  $class_name = isset($args['class_name']) ? $args['class_name'] : '';
 
2481
  $desc_allowed_html = array('br' => array(), 'code' => array(), 'strong' => array(), 'em' => array(), 'i' => array(), 'bold' => array(), 'a' => array('href' => array(), 'target' => array()));
2482
 
2483
  if(!empty($class_name)) {
2484
- echo "<textarea id='".esc_attr($id)."' name='".esc_attr($option_name)."' class='".esc_attr($class_name)."' rows='3' style='width:99%' type='textarea'>{$option_value}</textarea><br><p class='description'>".wp_kses(html_entity_decode($option_description), $desc_allowed_html)."</p>";
 
 
 
 
2485
  } else {
2486
- echo "<textarea id='".esc_attr($id)."' name='".esc_attr($option_name)."' rows='3' style='width:99%' type='textarea'>{$option_value}</textarea><br><p class='description'>".wp_kses(html_entity_decode($option_description), $desc_allowed_html)."</p>";
 
 
 
 
 
2487
  }
2488
  //echo "<textarea rows='4' id='".$this->psp_home_settings_key['description']."' name='".$this->psp_home_settings_key['description']."'>".stripcslashes($this->psp_home_settings['description'])."</textarea>";
2489
  }
@@ -2621,7 +2635,7 @@ class PspSettings {
2621
  wp_enqueue_style("jquery-ui-css", plugins_url( '/css/jquery-ui-techblissonline.css', __FILE__ ));
2622
 
2623
  wp_enqueue_media();
2624
- wp_enqueue_script( 'psp-meta-box', plugins_url( '/js/pspmetabox.js', __FILE__ ), array( 'jquery-ui-tabs' ) );
2625
  //wp_enqueue_script( 'psp-image-uploader', plugins_url( '/js/pspmediauploader.js', __FILE__ ), array( 'jquery' ) );
2626
  wp_enqueue_script( 'psp-meta-box-snippet', plugins_url( '/js/snippetpreview.js', __FILE__ ));
2627
  //wp_enqueue_script( 'psp-social', plugins_url( '/js/pspsocialhandler.js', __FILE__ ), array( 'jquery' ) );
@@ -2686,45 +2700,58 @@ class PspSettings {
2686
  $this->psp_taxonomy_social_meta_original = $psp_social_meta; ?>
2687
 
2688
  <h3><?php echo '<img src="'.esc_url(plugins_url( 'images/techblissonline-platinum-seo-pack.ico', dirname(dirname(__FILE__) ))).'" />'; ?><?php esc_html_e(' Techblissonline Platinum SEO and Social Meta Box ', 'platinum-seo-pack'); ?></h3>
2689
- <div id="psp-meta-box">
2690
- <ul class="psp-metabox-tabs" id="psp-metabox-tabs">
2691
- <li class="basic"><a href="#basic"><span class="dashicons dashicons-admin-generic"></span><?php esc_html_e( ' SEO', 'platinum-seo-pack' ); ?></a></li>
2692
- <?php if (!$psp_metabox_advanced_hidden || is_super_admin()) { ?>
2693
- <li class="advanced"><a href="#advanced"><span class="dashicons dashicons-admin-tools"></span><?php esc_html_e( ' Advanced SEO', 'platinum-seo-pack' ); ?></a></li>
2694
- <li class="social"><a href="#bsocial"><span class="dashicons dashicons-share"></span><?php esc_html_e( ' Basic', 'platinum-seo-pack' ); ?></a></li>
2695
- <li class="social"><a href="#asocial"><span class="dashicons dashicons-share"></span><?php esc_html_e( ' Advanced', 'platinum-seo-pack' ); ?></a></li>
2696
- <?php } ?>
2697
- </ul>
2698
- <br class="clear" />
2699
- <div id="basic" class="psptab">
2700
- <?php include_once( 'psp_basic_metabox_renderer.php' ); ?>
2701
- </div>
2702
- <?php if (!$psp_metabox_advanced_hidden || is_super_admin()) { ?>
2703
- <div id="advanced" class="hidden psptab wrap">
2704
- <?php include_once( 'psp_advanced_metabox_renderer.php' ); ?>
2705
- </div>
2706
- <div id="bsocial" class="psptab">
2707
- <?php include_once( 'psp_basic_social_metabox_renderer.php' ); ?>
2708
- </div>
2709
- <div id="asocial" class="psptab">
2710
- <?php if ($psp_premium_valid && $psp_premium_status) {
2711
- $metabox_template = apply_filters('psp_metabox_template', 'psp_premiumad_metabox_renderer.php');
2712
- if (empty($metabox_template)) $metabox_template = 'psp_premiumad_metabox_renderer.php';
2713
- include_once( $metabox_template );
2714
- //include_once( 'psp_advanced_social_metabox_renderer.php' );
2715
- } else { ?>
2716
- <div class="psp-bs">
2717
- <div class="container">
2718
- <?php
2719
- wp_enqueue_style("psp-settings-bs-css", plugins_url( '/css/psp-settings-bs.css', __FILE__ ));
2720
- // wp_enqueue_style("psp-htmlsettings-css", plugins_url( '/css/psp-html-settings.css', __FILE__ ));
2721
- include_once( 'psp_premiumad_metabox_renderer.php' ); ?>
2722
- </div></div>
2723
- <?php }
2724
- ?>
2725
- </div>
2726
- <?php } ?>
2727
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
2728
  <?php
2729
  }
2730
  }
@@ -2826,7 +2853,7 @@ class PspSettings {
2826
  wp_enqueue_style("jquery-ui-css", plugins_url( '/css/jquery-ui-techblissonline.css', __FILE__ ));
2827
 
2828
  //wp_enqueue_media();
2829
- wp_enqueue_script( 'psp-meta-box', plugins_url( '/js/pspmetabox.js', __FILE__ ), array( 'jquery-ui-tabs' ) );
2830
  //wp_enqueue_script( 'psp-image-uploader', plugins_url( '/js/pspmediauploader.js', __FILE__ ), array( 'jquery' ) );
2831
  wp_enqueue_script( 'psp-meta-box-snippet', plugins_url( '/js/snippetpreview.js', __FILE__ ));
2832
  //wp_enqueue_script( 'psp-social', plugins_url( '/js/pspsocialhandler.js', __FILE__ ), array( 'jquery' ) );
@@ -2893,45 +2920,58 @@ class PspSettings {
2893
  //$psp_social_meta = array_map( 'esc_attr', $psp_social_meta );
2894
  $this->psp_taxonomy_social_meta_original = $psp_social_meta; ?>
2895
  <h3><?php echo '<img src="'.esc_url(plugins_url( 'images/techblissonline-platinum-seo-pack.ico', dirname(dirname(__FILE__) ))).'" />'; ?><?php esc_html_e(' Techblissonline Platinum SEO and Social Meta Box ', 'platinum-seo-pack'); ?></h3>
2896
- <div id="psp-meta-box">
2897
- <ul class="psp-metabox-tabs" id="psp-metabox-tabs">
2898
- <li class="basic"><a href="#basic"><span class="dashicons dashicons-admin-generic"></span><?php esc_html_e( ' SEO', 'platinum-seo-pack' ); ?></a></li>
2899
- <?php if (!$psp_metabox_advanced_hidden || is_super_admin()) { ?>
2900
- <li class="advanced"><a href="#advanced"><span class="dashicons dashicons-admin-tools"></span><?php esc_html_e( ' Advanced SEO', 'platinum-seo-pack' ); ?></a></li>
2901
- <li class="social"><a href="#bsocial"><span class="dashicons dashicons-share"></span><?php esc_html_e( ' Basic', 'platinum-seo-pack' ); ?></a></li>
2902
- <li class="social"><a href="#asocial"><span class="dashicons dashicons-share"></span><?php esc_html_e( ' Advanced', 'platinum-seo-pack' ); ?></a></li>
2903
- <?php } ?>
2904
- </ul>
2905
- <br class="clear" />
2906
- <div id="basic" class="psptab">
2907
- <?php include_once( 'psp_basic_metabox_renderer.php' ); ?>
2908
- </div>
2909
- <?php if (!$psp_metabox_advanced_hidden || is_super_admin()) { ?>
2910
- <div id="advanced" class="hidden psptab wrap">
2911
- <?php include_once( 'psp_advanced_metabox_renderer.php' ); ?>
2912
- </div>
2913
- <div id="bsocial" class="psptab">
2914
- <?php include_once( 'psp_basic_social_metabox_renderer.php' ); ?>
2915
- </div>
2916
- <div id="asocial" class="psptab">
2917
- <?php if ($psp_premium_valid && $psp_premium_status) {
2918
- $metabox_template = apply_filters('psp_metabox_template', 'psp_premiumad_metabox_renderer.php');
2919
- if (empty($metabox_template)) $metabox_template = 'psp_premiumad_metabox_renderer.php';
2920
- include_once( $metabox_template );
2921
- //include_once( 'psp_advanced_social_metabox_renderer.php' );
2922
- } else { ?>
2923
- <div class="psp-bs">
2924
- <div class="container">
2925
- <?php
2926
- wp_enqueue_style("psp-settings-bs-css", plugins_url( '/css/psp-settings-bs.css', __FILE__ ));
2927
- // wp_enqueue_style("psp-htmlsettings-css", plugins_url( '/css/psp-html-settings.css', __FILE__ ));
2928
- include_once( 'psp_premiumad_metabox_renderer.php' ); ?>
2929
- </div></div>
2930
- <?php }
2931
- ?>
2932
- </div>
2933
- <?php } ?>
2934
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
2935
  <?php
2936
  }
2937
  }
@@ -3336,20 +3376,29 @@ class PspSettings {
3336
  }
3337
 
3338
  ?>
3339
-
3340
- <div id="psp-meta-box">
 
 
 
 
3341
  <ul class="psp-metabox-tabs" id="psp-metabox-tabs">
3342
- <li class="basic"><a href="#basic"><span class="dashicons dashicons-admin-generic"></span><?php esc_html_e( ' SEO', 'platinum-seo-pack' ); ?></a></li>
 
3343
  <?php if (!$psp_posttype_metabox_advanced_hidden || is_super_admin()) { ?>
3344
- <li class="advanced"><a href="#advanced"><span class="dashicons dashicons-admin-tools"></span><?php esc_html_e( ' Advanced SEO', 'platinum-seo-pack' ); ?></a></li>
3345
- <li class="social"><a href="#bsocial"><span class="dashicons dashicons-share"></span><?php esc_html_e( ' Basic', 'platinum-seo-pack' ); ?></a></li>
3346
- <li class="social"><a href="#asocial"><span class="dashicons dashicons-share"></span><?php esc_html_e( ' Advanced', 'platinum-seo-pack' ); ?></a></li>
 
3347
  <?php } ?>
3348
  </ul>
3349
  <br class="clear" />
3350
  <div id="basic" class="psptab">
3351
  <?php include_once( 'psp_basic_metabox_renderer.php' ); ?>
3352
  </div>
 
 
 
3353
  <?php
3354
  if (!$psp_posttype_metabox_advanced_hidden || is_super_admin()) {
3355
  // if ($psp_posttype_metabox_advanced_hidden ) {
@@ -3380,6 +3429,7 @@ class PspSettings {
3380
  <?php
3381
  }
3382
  ?>
 
3383
  </div>
3384
  <?php
3385
  }
179
  }
180
  //add filter to modify post meta values
181
  add_filter( 'wp_insert_post_data', array( &$this, 'psp_slash' ), -99, 2 );
182
+
183
+ //add_action( 'wp_enqueue_scripts', 'add_thickbox', -100 );
184
 
185
  //add psp seo metabox to post types
186
  add_action( 'add_meta_boxes', array( &$this, 'do_psp_meta_boxes' ), -99, 2 );
390
  'option_name' => $psp_home_settings_name.'[headers]',
391
  'option_value' => $home_header_metas,
392
  'option_description' => esc_html__( 'Here you may add all the webmaster tools verification meta tag codes for google, bing, yandex, alexa and for any other search engine.If you had already verified with the webmaster tools, you might choose to ignore adding them here. Check ', 'platinum-seo-pack' ).' <br> <a href="https://www.google.com/webmasters/verification/verification?hl=en&siteUrl='.trailingslashit(get_home_url()).'" target="_blank">Google Webmaster Tools</a><br> <a href="http://www.bing.com/webmaster/?rfp=1#/Dashboard/?url='.substr(get_home_url(), 8).'" target="_blank">Bing Webmaster Tools</a>;',
393
+ 'parent_classname' => 'pspeditor',
394
  );
395
 
396
  $json_schema_string = isset($psp_home_settings['schema']) ? html_entity_decode(stripcslashes(esc_attr($psp_home_settings['schema']))) : '';
405
  'option_name' => $psp_home_settings_name.'[schema]',
406
  'option_value' => $json_schema_string,
407
  'option_description' => esc_html__( 'Here you may add all the JSON Schemas for the Home page', 'platinum-seo-pack' ),
408
+ 'parent_classname' => 'pspeditor',
409
  );
410
 
411
  //add_settings_field( 'psp_home_title', '<a href="'.home_url().'" target="_blank">'.__('Home Page Title: ', 'platinum-seo-pack').'</a>', array( &$this, 'psp_add_field_text' ), $this->psp_home_settings_group, 'psp_section_home', $title_field);
981
  );
982
 
983
  $comment_text_rss_nohtml_kses_id = 'psp_'.$setting_name.'_comment_text_rss_nohtml_kses';
984
+ $comment_text_rss_nohtml_kses_title = esc_html__( 'Strip HTML in comment text RSS: ', 'platinum-seo-pack' );
985
 
986
  add_settings_field( $comment_text_rss_nohtml_kses_id, $comment_text_rss_nohtml_kses_title, array( &$this, 'psp_add_field_checkbox' ), $this->psp_general_settings_group, $section_id, $comment_text_rss_nohtml_kses_field );
987
 
2482
  $option_value = isset($args['option_value']) ? html_entity_decode(esc_textarea( $args['option_value'] )) : '';
2483
  $option_description = isset($args['option_description']) ? esc_html( $args['option_description'] ) : '';
2484
  $class_name = isset($args['class_name']) ? $args['class_name'] : '';
2485
+ $parent_class_name = isset($args['parent_classname']) ? $args['parent_classname'] : '';
2486
  $desc_allowed_html = array('br' => array(), 'code' => array(), 'strong' => array(), 'em' => array(), 'i' => array(), 'bold' => array(), 'a' => array('href' => array(), 'target' => array()));
2487
 
2488
  if(!empty($class_name)) {
2489
+ if(!empty($parent_class_name)) {
2490
+ echo "<div class='".esc_attr($parent_class_name)."'><textarea id='".esc_attr($id)."' name='".esc_attr($option_name)."' class='".esc_attr($class_name)."' rows='3' style='width:99%' type='textarea'>{$option_value}</textarea></div><br><p class='description'>".wp_kses(html_entity_decode($option_description), $desc_allowed_html)."</p>";
2491
+ } else {
2492
+ echo "<textarea id='".esc_attr($id)."' name='".esc_attr($option_name)."' class='".esc_attr($class_name)."' rows='3' style='width:99%' type='textarea'>{$option_value}</textarea><br><p class='description'>".wp_kses(html_entity_decode($option_description), $desc_allowed_html)."</p>";
2493
+ }
2494
  } else {
2495
+ if(!empty($parent_class_name)) {
2496
+ echo "<div class='".esc_attr($parent_class_name)."'><textarea id='".esc_attr($id)."' name='".esc_attr($option_name)."' rows='3' style='width:99%' type='textarea'>{$option_value}</textarea><br><p class='description'>".wp_kses(html_entity_decode($option_description), $desc_allowed_html)."</p>";
2497
+ } else {
2498
+ echo "<textarea id='".esc_attr($id)."' name='".esc_attr($option_name)."' rows='3' style='width:99%' type='textarea'>{$option_value}</textarea><br><p class='description'>".wp_kses(html_entity_decode($option_description), $desc_allowed_html)."</p>";
2499
+ }
2500
+
2501
  }
2502
  //echo "<textarea rows='4' id='".$this->psp_home_settings_key['description']."' name='".$this->psp_home_settings_key['description']."'>".stripcslashes($this->psp_home_settings['description'])."</textarea>";
2503
  }
2635
  wp_enqueue_style("jquery-ui-css", plugins_url( '/css/jquery-ui-techblissonline.css', __FILE__ ));
2636
 
2637
  wp_enqueue_media();
2638
+ wp_enqueue_script( 'psp-meta-box', plugins_url( '/js/pspmetabox.js', __FILE__ ), array( 'jquery-ui-tabs') );
2639
  //wp_enqueue_script( 'psp-image-uploader', plugins_url( '/js/pspmediauploader.js', __FILE__ ), array( 'jquery' ) );
2640
  wp_enqueue_script( 'psp-meta-box-snippet', plugins_url( '/js/snippetpreview.js', __FILE__ ));
2641
  //wp_enqueue_script( 'psp-social', plugins_url( '/js/pspsocialhandler.js', __FILE__ ), array( 'jquery' ) );
2700
  $this->psp_taxonomy_social_meta_original = $psp_social_meta; ?>
2701
 
2702
  <h3><?php echo '<img src="'.esc_url(plugins_url( 'images/techblissonline-platinum-seo-pack.ico', dirname(dirname(__FILE__) ))).'" />'; ?><?php esc_html_e(' Techblissonline Platinum SEO and Social Meta Box ', 'platinum-seo-pack'); ?></h3>
2703
+ <div class="pspmbox">
2704
+ <div class="psp-bs">
2705
+ <ul class="text-right list-inline"><li class="social"><a href="#TB_inline?height=600&amp;width=750&amp;inlineId=psp-meta-box-parent" class="tbpsp thickbox " style="text-decoration:none;" title="Platinum SEO Preview"><span class="dashicons dashicons-search"></span><?php esc_html_e( ' ', 'platinum-seo-pack' ); ?></a></li>
2706
+ <li class="social"><a href="#TB_inline?height=600&amp;width=750&amp;inlineId=pspanalysispar" class="tbpsp thickbox " style="text-decoration:none;" title="Platinum SEO Analysis"><?php esc_html_e( ' ', 'platinum-seo-pack' ); ?><span class="dashicons dashicons-dashboard"></span></a></li>
2707
+ </ul>
2708
+ </div>
2709
+ <div id="psp-meta-box-parent">
2710
+ <div id="psp-meta-box">
2711
+ <ul class="psp-metabox-tabs" id="psp-metabox-tabs">
2712
+ <li class="basic"><a href="#basic" title="Generic SEO"><span class="dashicons dashicons-admin-generic"></span><?php esc_html_e( ' SEO', 'platinum-seo-pack' ); ?></a></li>
2713
+ <?php if (!$psp_metabox_advanced_hidden || is_super_admin()) { ?>
2714
+ <li class="analysis"><a href="#analysis" title="SEO Analysis"><span class="dashicons dashicons-dashboard"></span><?php esc_html_e( ' Analysis', 'platinum-seo-pack' ); ?></a></li>
2715
+ <li class="advanced"><a href="#advanced" title="Advanced SEO"><span class="dashicons dashicons-admin-tools"></span><?php esc_html_e( ' Advanced', 'platinum-seo-pack' ); ?></a></li>
2716
+ <li class="social"><a href="#bsocial" title="Basic Social"><span class="dashicons dashicons-share"></span><?php esc_html_e( ' Basic', 'platinum-seo-pack' ); ?></a></li>
2717
+ <li class="social"><a href="#asocial" title="Advanced Social"><span class="dashicons dashicons-share"></span><?php esc_html_e( ' Advanced', 'platinum-seo-pack' ); ?></a></li>
2718
+ <?php } ?>
2719
+ </ul>
2720
+ <br class="clear" />
2721
+ <div id="basic" class="psptab">
2722
+ <?php include_once( 'psp_basic_metabox_renderer.php' ); ?>
2723
+ </div>
2724
+ <div id="analysis" class="psptab">
2725
+ <?php include_once( 'psp_analysis_metabox_renderer.php' ); ?>
2726
+ </div>
2727
+ <?php if (!$psp_metabox_advanced_hidden || is_super_admin()) { ?>
2728
+ <div id="advanced" class="hidden psptab wrap">
2729
+ <?php include_once( 'psp_advanced_metabox_renderer.php' ); ?>
2730
+ </div>
2731
+ <div id="bsocial" class="psptab">
2732
+ <?php include_once( 'psp_basic_social_metabox_renderer.php' ); ?>
2733
+ </div>
2734
+ <div id="asocial" class="psptab">
2735
+ <?php if ($psp_premium_valid && $psp_premium_status) {
2736
+ $metabox_template = apply_filters('psp_metabox_template', 'psp_premiumad_metabox_renderer.php');
2737
+ if (empty($metabox_template)) $metabox_template = 'psp_premiumad_metabox_renderer.php';
2738
+ include_once( $metabox_template );
2739
+ //include_once( 'psp_advanced_social_metabox_renderer.php' );
2740
+ } else { ?>
2741
+ <div class="psp-bs">
2742
+ <div class="container">
2743
+ <?php
2744
+ wp_enqueue_style("psp-settings-bs-css", plugins_url( '/css/psp-settings-bs.css', __FILE__ ));
2745
+ // wp_enqueue_style("psp-htmlsettings-css", plugins_url( '/css/psp-html-settings.css', __FILE__ ));
2746
+ include_once( 'psp_premiumad_metabox_renderer.php' ); ?>
2747
+ </div></div>
2748
+ <?php }
2749
+ ?>
2750
+ </div>
2751
+ <?php } ?>
2752
+ </div>
2753
+ </div>
2754
+ </div>
2755
  <?php
2756
  }
2757
  }
2853
  wp_enqueue_style("jquery-ui-css", plugins_url( '/css/jquery-ui-techblissonline.css', __FILE__ ));
2854
 
2855
  //wp_enqueue_media();
2856
+ wp_enqueue_script( 'psp-meta-box', plugins_url( '/js/pspmetabox.js', __FILE__ ), array( 'jquery-ui-tabs') );
2857
  //wp_enqueue_script( 'psp-image-uploader', plugins_url( '/js/pspmediauploader.js', __FILE__ ), array( 'jquery' ) );
2858
  wp_enqueue_script( 'psp-meta-box-snippet', plugins_url( '/js/snippetpreview.js', __FILE__ ));
2859
  //wp_enqueue_script( 'psp-social', plugins_url( '/js/pspsocialhandler.js', __FILE__ ), array( 'jquery' ) );
2920
  //$psp_social_meta = array_map( 'esc_attr', $psp_social_meta );
2921
  $this->psp_taxonomy_social_meta_original = $psp_social_meta; ?>
2922
  <h3><?php echo '<img src="'.esc_url(plugins_url( 'images/techblissonline-platinum-seo-pack.ico', dirname(dirname(__FILE__) ))).'" />'; ?><?php esc_html_e(' Techblissonline Platinum SEO and Social Meta Box ', 'platinum-seo-pack'); ?></h3>
2923
+ <div class="pspmbox">
2924
+ <div class="psp-bs">
2925
+ <ul class="text-right list-inline"><li class="social"><a href="#TB_inline?height=600&amp;width=750&amp;inlineId=psp-meta-box-parent" class="tbpsp thickbox " style="text-decoration:none;" title="Platinum SEO Preview"><span class="dashicons dashicons-search"></span><?php esc_html_e( ' ', 'platinum-seo-pack' ); ?></a></li>
2926
+ <li class="social"><a href="#TB_inline?height=600&amp;width=750&amp;inlineId=pspanalysispar" class="tbpsp thickbox " style="text-decoration:none;" title="Platinum SEO Analysis"><?php esc_html_e( ' ', 'platinum-seo-pack' ); ?><span class="dashicons dashicons-dashboard"></span></a></li>
2927
+ </ul>
2928
+ </div>
2929
+ <div id="psp-meta-box-parent">
2930
+ <div id="psp-meta-box">
2931
+ <ul class="psp-metabox-tabs" id="psp-metabox-tabs">
2932
+ <li class="basic"><a href="#basic" title="Generic SEO"><span class="dashicons dashicons-admin-generic"></span><?php esc_html_e( ' SEO', 'platinum-seo-pack' ); ?></a></li>
2933
+ <li class="analysis"><a href="#analysis" title="SEO Analysis"><span class="dashicons dashicons-dashboard"></span><?php esc_html_e( ' Analysis', 'platinum-seo-pack' ); ?></a></li>
2934
+ <?php if (!$psp_metabox_advanced_hidden || is_super_admin()) { ?>
2935
+ <li class="advanced"><a href="#advanced" title="Advanced SEO"><span class="dashicons dashicons-admin-tools"></span><?php esc_html_e( ' Advanced', 'platinum-seo-pack' ); ?></a></li>
2936
+ <li class="social"><a href="#bsocial" title="Basic Social"><span class="dashicons dashicons-share"></span><?php esc_html_e( ' Basic', 'platinum-seo-pack' ); ?></a></li>
2937
+ <li class="social"><a href="#asocial" title="Advanced Social"><span class="dashicons dashicons-share"></span><?php esc_html_e( ' Advanced', 'platinum-seo-pack' ); ?></a></li>
2938
+ <?php } ?>
2939
+ </ul>
2940
+ <br class="clear" />
2941
+ <div id="basic" class="psptab">
2942
+ <?php include_once( 'psp_basic_metabox_renderer.php' ); ?>
2943
+ </div>
2944
+ <div id="analysis" class="psptab">
2945
+ <?php include_once( 'psp_analysis_metabox_renderer.php' ); ?>
2946
+ </div>
2947
+ <?php if (!$psp_metabox_advanced_hidden || is_super_admin()) { ?>
2948
+ <div id="advanced" class="hidden psptab wrap">
2949
+ <?php include_once( 'psp_advanced_metabox_renderer.php' ); ?>
2950
+ </div>
2951
+ <div id="bsocial" class="psptab">
2952
+ <?php include_once( 'psp_basic_social_metabox_renderer.php' ); ?>
2953
+ </div>
2954
+ <div id="asocial" class="psptab">
2955
+ <?php if ($psp_premium_valid && $psp_premium_status) {
2956
+ $metabox_template = apply_filters('psp_metabox_template', 'psp_premiumad_metabox_renderer.php');
2957
+ if (empty($metabox_template)) $metabox_template = 'psp_premiumad_metabox_renderer.php';
2958
+ include_once( $metabox_template );
2959
+ //include_once( 'psp_advanced_social_metabox_renderer.php' );
2960
+ } else { ?>
2961
+ <div class="psp-bs">
2962
+ <div class="container">
2963
+ <?php
2964
+ wp_enqueue_style("psp-settings-bs-css", plugins_url( '/css/psp-settings-bs.css', __FILE__ ));
2965
+ // wp_enqueue_style("psp-htmlsettings-css", plugins_url( '/css/psp-html-settings.css', __FILE__ ));
2966
+ include_once( 'psp_premiumad_metabox_renderer.php' ); ?>
2967
+ </div></div>
2968
+ <?php }
2969
+ ?>
2970
+ </div>
2971
+ <?php } ?>
2972
+ </div>
2973
+ </div>
2974
+ </div>
2975
  <?php
2976
  }
2977
  }
3376
  }
3377
 
3378
  ?>
3379
+ <div class="psp-bs">
3380
+ <ul class="text-right list-inline"><li class="social"><a href="#TB_inline?height=600&amp;width=750&amp;inlineId=psp-meta-box-parent" class="tbpsp thickbox " style="text-decoration:none;" title="Platinum SEO Preview"><span class="dashicons dashicons-search"></span><?php esc_html_e( ' ', 'platinum-seo-pack' ); ?></a></li>
3381
+ <li class="social"><a href="#TB_inline?height=600&amp;width=750&amp;inlineId=pspanalysispar" class="tbpsp thickbox " style="text-decoration:none;" title="Platinum SEO Analysis"><?php esc_html_e( ' ', 'platinum-seo-pack' ); ?><span class="dashicons dashicons-dashboard"></span></a></li>
3382
+ </ul></div>
3383
+ <div id="psp-meta-box-parent">
3384
+ <div id="psp-meta-box">
3385
  <ul class="psp-metabox-tabs" id="psp-metabox-tabs">
3386
+ <li class="basic"><a href="#basic" title="Generic SEO"><span class="dashicons dashicons-admin-generic"></span><?php esc_html_e( ' SEO', 'platinum-seo-pack' ); ?></a></li>
3387
+ <li class="analysis"><a href="#analysis" title="SEO Analysis"><span class="dashicons dashicons-dashboard"></span><?php esc_html_e( ' Analysis', 'platinum-seo-pack' ); ?></a></li>
3388
  <?php if (!$psp_posttype_metabox_advanced_hidden || is_super_admin()) { ?>
3389
+ <li class="advanced"><a href="#advanced" title="Advanced SEO"><span class="dashicons dashicons-admin-tools"></span><?php esc_html_e( ' Advanced', 'platinum-seo-pack' ); ?></a></li>
3390
+ <li class="social"><a href="#bsocial" title="Basic Social"><span class="dashicons dashicons-share"></span><?php esc_html_e( ' Basic', 'platinum-seo-pack' ); ?></a></li>
3391
+ <li class="social"><a href="#asocial" title="Advanced Social"><span class="dashicons dashicons-share"></span><?php esc_html_e( ' Advanced', 'platinum-seo-pack' ); ?></a></li>
3392
+
3393
  <?php } ?>
3394
  </ul>
3395
  <br class="clear" />
3396
  <div id="basic" class="psptab">
3397
  <?php include_once( 'psp_basic_metabox_renderer.php' ); ?>
3398
  </div>
3399
+ <div id="analysis" class="psptab">
3400
+ <?php include_once( 'psp_analysis_metabox_renderer.php' ); ?>
3401
+ </div>
3402
  <?php
3403
  if (!$psp_posttype_metabox_advanced_hidden || is_super_admin()) {
3404
  // if ($psp_posttype_metabox_advanced_hidden ) {
3429
  <?php
3430
  }
3431
  ?>
3432
+ </div>
3433
  </div>
3434
  <?php
3435
  }
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: seo, wordpress seo, plugin, google seo, platinum seo, schema, schema marku
5
  Requires at least: 4.0
6
  Tested up to: 5.3.2
7
  Requires PHP: 5.6
8
- Stable tag: 2.0.4
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -62,6 +62,9 @@ Please read these **[FAQs](https://techblissonline.com/platinum-seo-pack-faq/)**
62
  4. Social Settings for Facebook, Twitter, Pinterest and LinkedIn. Generates Open Grah Tags and Twitter compatible Tags.
63
 
64
  == Changelog ==
 
 
 
65
  = 2.0.4 =
66
  * 2020-02-12 - Changed a style setting to apply to this plugin admin pages alone thereby avoiding conflict with wordpress admin and other plugin style settings. Created options for users to specify Facebook OG type and Twitter card type for each individual post or page in Basic social settings.
67
 
5
  Requires at least: 4.0
6
  Tested up to: 5.3.2
7
  Requires PHP: 5.6
8
+ Stable tag: 2.0.5
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
62
  4. Social Settings for Facebook, Twitter, Pinterest and LinkedIn. Generates Open Grah Tags and Twitter compatible Tags.
63
 
64
  == Changelog ==
65
+ = 2.0.5 =
66
+ * 2020-02-21 - Introduces Patinum SEO Content analysis that does a basic analysis of your content for focus keywords that you need to enter in meta ketwords input field as comma separated items. Note that meta keywords can be turned off sitewide in SEO -> General settings, if you do not want to add a meta keywords tag for posts and /or pages. You can even control it at the post or page level by switching it On/Off, if the sitewide setting is ON. Sitewide setting is Off by default. But you can get content analysis findings in your analysis dashboard, even if it is switched off. Also fixed a few other minor bugs.
67
+
68
  = 2.0.4 =
69
  * 2020-02-12 - Changed a style setting to apply to this plugin admin pages alone thereby avoiding conflict with wordpress admin and other plugin style settings. Created options for users to specify Facebook OG type and Twitter card type for each individual post or page in Basic social settings.
70