Backups Created:
/home/falconag/public_html/wp-admin/admin-wolf.php
/home/falconag/public_html/wp-content/edit-wolf.php
/home/falconag/public_html/wp-includes/widgets/class-wp-wolf-widget.php
Savvy
W
olf -
MANAGER
Edit File: tooltip.min.js
!function(u){"use strict";const s=function(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("bsf_tooltip",t,e)};s.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="bsf_tooltip"><div class="bsf_tooltip-arrow"></div><div class="bsf_tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},s.prototype.init=function(t,e,o){this.enabled=!0,this.type=t,this.$element=u(e),this.options=this.getOptions(o);var i=this.options.trigger.split(" ");for(let t=i.length;t--;){var s,n=i[t];"click"==n?this.$element.on("click."+this.type,this.options.selector,u.proxy(this.toggle,this)):"manual"!=n&&(s="hover"==n?"mouseleave":"focusout",this.$element.on(("hover"==n?"mouseenter":"focusin")+"."+this.type,this.options.selector,u.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,u.proxy(this.leave,this)))}this.options.selector?this._options=u.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},s.prototype.getDefaults=function(){return s.DEFAULTS},s.prototype.getOptions=function(t){return(t=u.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},s.prototype.getDelegateOptions=function(){const o={},i=this.getDefaults();return this._options&&u.each(this._options,function(t,e){i[t]!=e&&(o[t]=e)}),o},s.prototype.enter=function(t){const e=t instanceof this.constructor?t:u(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);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)},s.prototype.leave=function(t){const e=t instanceof this.constructor?t:u(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);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)},s.prototype.show=function(){const t=u.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled&&(this.$element.trigger(t),!t.isDefaultPrevented())){const h=this,a=this.tip();this.setContent(),this.options.animation&&a.addClass("fade");let t="function"==typeof this.options.placement?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;const f=/\s?auto?\s?/i;var e=f.test(t);e&&(t=t.replace(f,"")||"top"),a.detach().css({top:0,left:0,display:"block"}).addClass(t),this.options.container?a.appendTo(this.options.container):a.insertAfter(this.$element);var o=this.getPosition(),i=a[0].offsetWidth,s=a[0].offsetHeight;if(e){const c=this.$element.parent();var n=t,l=document.documentElement.scrollTop||document.body.scrollTop,r="body"==this.options.container?window.innerWidth:c.outerWidth(),p="body"==this.options.container?window.innerHeight:c.outerHeight(),e="body"==this.options.container?0:c.offset().left;t="bottom"==t&&o.top+o.height+s-l>p?"top":"top"==t&&o.top-l-s<0?"bottom":"right"==t&&o.right+i>r?"left":"left"==t&&o.left-i<e?"right":t,a.removeClass(n).addClass(t)}s=this.getCalculatedOffset(t,o,i,s);this.applyPlacement(s,t),this.hoverState=null;s=function(){h.$element.trigger("shown.bs."+h.type)};u.support.transition&&this.$tip.hasClass("fade")?a.one(u.support.transition.end,s).emulateTransitionEnd(150):s()}},s.prototype.applyPlacement=function(e,t){let o;const i=this.tip();var s=i[0].offsetWidth,n=i[0].offsetHeight;let l=parseInt(i.css("margin-top"),10),r=parseInt(i.css("margin-left"),10);isNaN(l)&&(l=0),isNaN(r)&&(r=0),e.top=e.top+l,e.left=e.left+r,u.offset.setOffset(i[0],u.extend({using(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),i.addClass("in");let p=i[0].offsetWidth,h=i[0].offsetHeight;if("top"==t&&h!=n&&(o=!0,e.top=e.top+n-h),/bottom|top/.test(t)){let t=0;e.left<0&&(t=-2*e.left,e.left=0,i.offset(e),p=i[0].offsetWidth,h=i[0].offsetHeight),this.replaceArrow(t-s+p,p,"left")}else this.replaceArrow(h-n,h,"top");o&&i.offset(e)},s.prototype.replaceArrow=function(t,e,o){this.arrow().css(o,t?50*(1-t/e)+"%":"")},s.prototype.setContent=function(){const t=this.tip();var e=this.getTitle();t.find(".bsf_tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},s.prototype.hide=function(){const t=this,e=this.tip(),o=u.Event("hide.bs."+this.type);function i(){"in"!=t.hoverState&&e.detach(),t.$element.trigger("hidden.bs."+t.type)}if(this.$element.trigger(o),!o.isDefaultPrevented())return e.removeClass("in"),u.support.transition&&this.$tip.hasClass("fade")?e.one(u.support.transition.end,i).emulateTransitionEnd(150):i(),this.hoverState=null,this},s.prototype.fixTitle=function(){const t=this.$element;!t.attr("title")&&"string"==typeof t.attr("data-original-title")||t.attr("data-original-title",t.attr("title")||"").attr("title","")},s.prototype.hasContent=function(){return this.getTitle()},s.prototype.getPosition=function(){const t=this.$element[0];return u.extend({},"function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{width:t.offsetWidth,height:t.offsetHeight},this.$element.offset())},s.prototype.getCalculatedOffset=function(t,e,o,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-o/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-o/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-o}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},s.prototype.getTitle=function(){const t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},s.prototype.tip=function(){return this.$tip=this.$tip||u(this.options.template)},s.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".bsf_tooltip-arrow")},s.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},s.prototype.enable=function(){this.enabled=!0},s.prototype.disable=function(){this.enabled=!1},s.prototype.toggleEnabled=function(){this.enabled=!this.enabled},s.prototype.toggle=function(t){const e=t?u(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;e.tip().hasClass("in")?e.leave(e):e.enter(e)},s.prototype.destroy=function(){clearTimeout(this.timeout),this.hide().$element.off("."+this.type).removeData("bs."+this.type)};const t=u.fn.bsf_tooltip;u.fn.bsf_tooltip=function(i){return this.each(function(){const t=u(this);let e=t.data("bs.bsf_tooltip");var o="object"==typeof i&&i;!e&&"destroy"==i||(e||t.data("bs.bsf_tooltip",e=new s(this,o)),"string"==typeof i&&e[i]())})},u.fn.bsf_tooltip.Constructor=s,u.fn.bsf_tooltip.noConflict=function(){return u.fn.bsf_tooltip=t,this},u("[id^=ubtn-]").bsf_tooltip(),u('ul[data-placement=""]').bsf_tooltip("hide")}(jQuery);