Version Description
- Removed the js files from plugin and using the ones provided by WP now
- POST calls optimized (sanitize, escape, validate)
- Removed feedback option
- Tags changed
Download this release
Release Info
Developer | socialdude |
Plugin | Social Share Icons & Social Share Buttons |
Version | 2.3.3 |
Comparing to | |
See all releases |
Code changes from version 2.3.2 to 2.3.3
- css/colorpicker/css/colorpicker-min.css +0 -1
- css/colorpicker/css/layout-min.css +0 -1
- css/colorpicker/images/blank.gif +0 -0
- css/colorpicker/images/colorpicker_background.png +0 -0
- css/colorpicker/images/colorpicker_hex.png +0 -0
- css/colorpicker/images/colorpicker_hsb_b.png +0 -0
- css/colorpicker/images/colorpicker_hsb_h.png +0 -0
- css/colorpicker/images/colorpicker_hsb_s.png +0 -0
- css/colorpicker/images/colorpicker_indic.gif +0 -0
- css/colorpicker/images/colorpicker_overlay.png +0 -0
- css/colorpicker/images/colorpicker_rgb_b.png +0 -0
- css/colorpicker/images/colorpicker_rgb_g.png +0 -0
- css/colorpicker/images/colorpicker_rgb_r.png +0 -0
- css/colorpicker/images/colorpicker_select.gif +0 -0
- css/colorpicker/images/colorpicker_submit.png +0 -0
- css/colorpicker/images/custom_background.png +0 -0
- css/colorpicker/images/custom_hex.png +0 -0
- css/colorpicker/images/custom_hsb_b.png +0 -0
- css/colorpicker/images/custom_hsb_h.png +0 -0
- css/colorpicker/images/custom_hsb_s.png +0 -0
- css/colorpicker/images/custom_indic.gif +0 -0
- css/colorpicker/images/custom_rgb_b.png +0 -0
- css/colorpicker/images/custom_rgb_g.png +0 -0
- css/colorpicker/images/custom_rgb_r.png +0 -0
- css/colorpicker/images/custom_submit.png +0 -0
- css/colorpicker/images/select.png +0 -0
- css/colorpicker/images/select2.png +0 -0
- css/colorpicker/images/slider.png +0 -0
- css/images/Thumbs.db +0 -0
- images/Thumbs.db +0 -0
- js/color-picker/colorpicker-min.js +0 -1
- js/color-picker/eye-min.js +0 -1
- js/color-picker/layout-min.js +0 -1
- js/color-picker/utils-min.js +0 -1
- js/custom-admin.js +2 -2
- js/{custom-min.js → custom.min.js} +0 -0
- js/jquery-migrate-min.js +0 -2
- js/jquery-ui-min.js +0 -1
- libs/controllers/sfsi_buttons_controller.php +457 -394
- libs/controllers/sfsi_iconsUpload_contoller.php +1 -15
- libs/controllers/sfsi_socialhelper.php +3 -3
- libs/controllers/sfsiocns_OnPosts.php +1 -1
- libs/sfsi_install_uninstall.php +13 -13
- libs/sfsi_plus_subscribe_widget.php +5 -5
- libs/sfsi_widget.php +1 -1
- readme.txt +308 -5
- ultimate_social_media_icons.php +6 -6
- views/sfsi_option_view1.php +61 -23
- views/sfsi_option_view2.php +138 -14
- views/sfsi_option_view3.php +25 -1
- views/sfsi_option_view4.php +122 -3
- views/sfsi_option_view5.php +90 -32
- views/sfsi_option_view6.php +25 -4
- views/sfsi_option_view7.php +222 -133
- views/sfsi_option_view8.php +68 -0
- views/sfsi_option_view9.php +97 -9
css/colorpicker/css/colorpicker-min.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
.colorpicker{width:356px;height:176px;overflow:hidden;position:absolute;background:url(../images/colorpicker_background.png);font-family:Arial,Helvetica,sans-serif;display:none}.colorpicker_color{width:150px;height:150px;left:14px;top:13px;position:absolute;background:red;overflow:hidden;cursor:crosshair}.colorpicker_color div{position:absolute;top:0;left:0;width:150px;height:150px;background:url(../images/colorpicker_overlay.png)}.colorpicker_color div div{position:absolute;top:0;left:0;width:11px;height:11px;overflow:hidden;background:url(../images/colorpicker_select.gif);margin:-5px 0 0 -5px}.colorpicker_hue{position:absolute;top:13px;left:171px;width:35px;height:150px;cursor:n-resize}.colorpicker_hue div{position:absolute;width:35px;height:9px;overflow:hidden;background:url(../images/colorpicker_indic.gif) left top;margin:-4px 0 0;left:0}.colorpicker_new_color{position:absolute;width:60px;height:30px;left:213px;top:13px;background:red}.colorpicker_current_color{position:absolute;width:60px;height:30px;left:283px;top:13px;background:red}.colorpicker input{background-color:transparent;border:1px solid transparent;position:absolute;font-size:10px;font-family:Arial,Helvetica,sans-serif;color:#898989;top:4px;right:11px;text-align:right;margin:0;padding:0;height:11px}.colorpicker_hex{position:absolute;width:72px;height:22px;background:url(../images/colorpicker_hex.png) top;left:212px;top:142px}.colorpicker_hex input{right:6px}.colorpicker_field{height:22px;width:62px;background-position:top;position:absolute}.colorpicker_field span{position:absolute;width:12px;height:22px;overflow:hidden;top:0;right:0;cursor:n-resize}.colorpicker_rgb_r{background-image:url(../images/colorpicker_rgb_r.png);top:52px;left:212px}.colorpicker_rgb_g{background-image:url(../images/colorpicker_rgb_g.png);top:82px;left:212px}.colorpicker_rgb_b{background-image:url(../images/colorpicker_rgb_b.png);top:112px;left:212px}.colorpicker_hsb_h{background-image:url(../images/colorpicker_hsb_h.png);top:52px;left:282px}.colorpicker_hsb_s{background-image:url(../images/colorpicker_hsb_s.png);top:82px;left:282px}.colorpicker_hsb_b{background-image:url(../images/colorpicker_hsb_b.png);top:112px;left:282px}.colorpicker_submit{position:absolute;width:22px;height:22px;background:url(../images/colorpicker_submit.png) top;left:322px;top:142px;overflow:hidden}.colorpicker_focus{background-position:center}.colorpicker_hex.colorpicker_focus,.colorpicker_slider,.colorpicker_submit.colorpicker_focus{background-position:bottom}
|
|
css/colorpicker/css/layout-min.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
.navigationTabs{height:23px;line-height:23px;border-bottom:1px solid #ccc}.navigationTabs li{float:left;height:23px;line-height:23px;padding-right:3px}.navigationTabs li a{float:left;dispaly:block;height:23px;line-height:23px;padding:0 10px;overflow:hidden;color:#52697E;background-color:#eee;position:relative;text-decoration:none}.navigationTabs li a:hover{background-color:#f0f0f0}.navigationTabs li a.active{background-color:#fff;border:1px solid #ccc;border-bottom:0 solid}.tabsContent{border:1px solid #ccc;border-top:0 solid;width:698px;overflow:hidden}.tab{padding:16px;display:none}.tab h2{font-weight:700;font-size:16px}.tab h3{font-weight:700;font-size:14px;margin-top:20px}.tab p{margin-top:16px;clear:both}.tab ul{margin-top:16px;list-style:disc}.tab li{margin:10px 0 0 35px}.tab a{color:#8FB0CF}.tab strong{font-weight:700}.tab pre{font-size:11px;margin-top:20px;width:668px;overflow:auto;clear:both}.tab table{width:100%}.tab table td{padding:6px 10px 6px 0;vertical-align:top}.tab dt{margin-top:16px}#colorSelector{position:relative;width:36px;height:36px;background:url(../images/select.png)}#colorSelector div{position:absolute;top:3px;left:3px;width:30px;height:30px;background:url(../images/select.png) center}#colorSelector2{position:absolute;top:0;left:0;width:36px;height:36px;background:url(../images/select2.png)}#colorSelector2 div{position:absolute;top:4px;left:4px;width:28px;height:28px;background:url(../images/select2.png) center}#colorpickerHolder2{top:32px;left:0;width:356px;height:0;overflow:hidden;position:absolute}#colorpickerHolder2 .colorpicker{background-image:url(../images/custom_background.png);position:absolute;bottom:0;left:0}#colorpickerHolder2 .colorpicker_hue div{background-image:url(../images/custom_indic.gif)}#colorpickerHolder2 .colorpicker_hex{background-image:url(../images/custom_hex.png)}#colorpickerHolder2 .colorpicker_rgb_r{background-image:url(../images/custom_rgb_r.png)}#colorpickerHolder2 .colorpicker_rgb_g{background-image:url(../images/custom_rgb_g.png)}#colorpickerHolder2 .colorpicker_rgb_b{background-image:url(../images/custom_rgb_b.png)}#colorpickerHolder2 .colorpicker_hsb_s{background-image:url(../images/custom_hsb_s.png);display:none}#colorpickerHolder2 .colorpicker_hsb_h{background-image:url(../images/custom_hsb_h.png);display:none}#colorpickerHolder2 .colorpicker_hsb_b{background-image:url(../images/custom_hsb_b.png);display:none}#colorpickerHolder2 .colorpicker_submit{background-image:url(../images/custom_submit.png)}#colorpickerHolder2 .colorpicker input{color:#778398}#customWidget{position:relative;height:36px}
|
|
css/colorpicker/images/blank.gif
DELETED
Binary file
|
css/colorpicker/images/colorpicker_background.png
DELETED
Binary file
|
css/colorpicker/images/colorpicker_hex.png
DELETED
Binary file
|
css/colorpicker/images/colorpicker_hsb_b.png
DELETED
Binary file
|
css/colorpicker/images/colorpicker_hsb_h.png
DELETED
Binary file
|
css/colorpicker/images/colorpicker_hsb_s.png
DELETED
Binary file
|
css/colorpicker/images/colorpicker_indic.gif
DELETED
Binary file
|
css/colorpicker/images/colorpicker_overlay.png
DELETED
Binary file
|
css/colorpicker/images/colorpicker_rgb_b.png
DELETED
Binary file
|
css/colorpicker/images/colorpicker_rgb_g.png
DELETED
Binary file
|
css/colorpicker/images/colorpicker_rgb_r.png
DELETED
Binary file
|
css/colorpicker/images/colorpicker_select.gif
DELETED
Binary file
|
css/colorpicker/images/colorpicker_submit.png
DELETED
Binary file
|
css/colorpicker/images/custom_background.png
DELETED
Binary file
|
css/colorpicker/images/custom_hex.png
DELETED
Binary file
|
css/colorpicker/images/custom_hsb_b.png
DELETED
Binary file
|
css/colorpicker/images/custom_hsb_h.png
DELETED
Binary file
|
css/colorpicker/images/custom_hsb_s.png
DELETED
Binary file
|
css/colorpicker/images/custom_indic.gif
DELETED
Binary file
|
css/colorpicker/images/custom_rgb_b.png
DELETED
Binary file
|
css/colorpicker/images/custom_rgb_g.png
DELETED
Binary file
|
css/colorpicker/images/custom_rgb_r.png
DELETED
Binary file
|
css/colorpicker/images/custom_submit.png
DELETED
Binary file
|
css/colorpicker/images/select.png
DELETED
Binary file
|
css/colorpicker/images/select2.png
DELETED
Binary file
|
css/colorpicker/images/slider.png
DELETED
Binary file
|
css/images/Thumbs.db
CHANGED
Binary file
|
images/Thumbs.db
CHANGED
Binary file
|
js/color-picker/colorpicker-min.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
(function(e){var t=function(){var t={},n,r=65,i,s='<div class="colorpicker"><div class="colorpicker_color"><div><div></div></div></div><div class="colorpicker_hue"><div></div></div><div class="colorpicker_new_color"></div><div class="colorpicker_current_color"></div><div class="colorpicker_hex"><input type="text" maxlength="6" size="6" /></div><div class="colorpicker_rgb_r colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_g colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_h colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_s colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_submit"></div></div>',o={eventName:"click",onShow:function(){},onBeforeShow:function(){},onHide:function(){},onChange:function(){},onSubmit:function(){},color:"ff0000",livePreview:true,flat:false},u=function(t,n){var r=q(t);e(n).data("colorpicker").fields.eq(1).val(r.r).end().eq(2).val(r.g).end().eq(3).val(r.b).end()},a=function(t,n){e(n).data("colorpicker").fields.eq(4).val(t.h).end().eq(5).val(t.s).end().eq(6).val(t.b).end()},f=function(t,n){e(n).data("colorpicker").fields.eq(0).val(U(t)).end()},l=function(t,n){e(n).data("colorpicker").selector.css("backgroundColor","#"+U({h:t.h,s:100,b:100}));e(n).data("colorpicker").selectorIndic.css({left:parseInt(150*t.s/100,10),top:parseInt(150*(100-t.b)/100,10)})},c=function(t,n){e(n).data("colorpicker").hue.css("top",parseInt(150-150*t.h/360,10))},h=function(t,n){e(n).data("colorpicker").currentColor.css("backgroundColor","#"+U(t))},p=function(t,n){e(n).data("colorpicker").newColor.css("backgroundColor","#"+U(t))},d=function(t){var n=t.charCode||t.keyCode||-1;if(n>r&&n<=90||n==32){return false}var i=e(this).parent().parent();if(i.data("colorpicker").livePreview===true){v.apply(this)}},v=function(t){var n=e(this).parent().parent(),r;if(this.parentNode.className.indexOf("_hex")>0){n.data("colorpicker").color=r=F(B(this.value))}else if(this.parentNode.className.indexOf("_hsb")>0){n.data("colorpicker").color=r=P({h:parseInt(n.data("colorpicker").fields.eq(4).val(),10),s:parseInt(n.data("colorpicker").fields.eq(5).val(),10),b:parseInt(n.data("colorpicker").fields.eq(6).val(),10)})}else{n.data("colorpicker").color=r=I(H({r:parseInt(n.data("colorpicker").fields.eq(1).val(),10),g:parseInt(n.data("colorpicker").fields.eq(2).val(),10),b:parseInt(n.data("colorpicker").fields.eq(3).val(),10)}))}if(t){u(r,n.get(0));f(r,n.get(0));a(r,n.get(0))}l(r,n.get(0));c(r,n.get(0));p(r,n.get(0));n.data("colorpicker").onChange.apply(n,[r,U(r),q(r)])},m=function(t){var n=e(this).parent().parent();n.data("colorpicker").fields.parent().removeClass("colorpicker_focus")},g=function(){r=this.parentNode.className.indexOf("_hex")>0?70:65;e(this).parent().parent().data("colorpicker").fields.parent().removeClass("colorpicker_focus");e(this).parent().addClass("colorpicker_focus")},y=function(t){var n=e(this).parent().find("input").focus();var r={el:e(this).parent().addClass("colorpicker_slider"),max:this.parentNode.className.indexOf("_hsb_h")>0?360:this.parentNode.className.indexOf("_hsb")>0?100:255,y:t.pageY,field:n,val:parseInt(n.val(),10),preview:e(this).parent().parent().data("colorpicker").livePreview};e(document).bind("mouseup",r,w);e(document).bind("mousemove",r,b)},b=function(e){e.data.field.val(Math.max(0,Math.min(e.data.max,parseInt(e.data.val+e.pageY-e.data.y,10))));if(e.data.preview){v.apply(e.data.field.get(0),[true])}return false},w=function(t){v.apply(t.data.field.get(0),[true]);t.data.el.removeClass("colorpicker_slider").find("input").focus();e(document).unbind("mouseup",w);e(document).unbind("mousemove",b);return false},E=function(t){var n={cal:e(this).parent(),y:e(this).offset().top};n.preview=n.cal.data("colorpicker").livePreview;e(document).bind("mouseup",n,x);e(document).bind("mousemove",n,S)},S=function(e){v.apply(e.data.cal.data("colorpicker").fields.eq(4).val(parseInt(360*(150-Math.max(0,Math.min(150,e.pageY-e.data.y)))/150,10)).get(0),[e.data.preview]);return false},x=function(t){u(t.data.cal.data("colorpicker").color,t.data.cal.get(0));f(t.data.cal.data("colorpicker").color,t.data.cal.get(0));e(document).unbind("mouseup",x);e(document).unbind("mousemove",S);return false},T=function(t){var n={cal:e(this).parent(),pos:e(this).offset()};n.preview=n.cal.data("colorpicker").livePreview;e(document).bind("mouseup",n,C);e(document).bind("mousemove",n,N)},N=function(e){v.apply(e.data.cal.data("colorpicker").fields.eq(6).val(parseInt(100*(150-Math.max(0,Math.min(150,e.pageY-e.data.pos.top)))/150,10)).end().eq(5).val(parseInt(100*Math.max(0,Math.min(150,e.pageX-e.data.pos.left))/150,10)).get(0),[e.data.preview]);return false},C=function(t){u(t.data.cal.data("colorpicker").color,t.data.cal.get(0));f(t.data.cal.data("colorpicker").color,t.data.cal.get(0));e(document).unbind("mouseup",C);e(document).unbind("mousemove",N);return false},k=function(t){e(this).addClass("colorpicker_focus")},L=function(t){e(this).removeClass("colorpicker_focus")},A=function(t){var n=e(this).parent();var r=n.data("colorpicker").color;n.data("colorpicker").origColor=r;h(r,n.get(0));n.data("colorpicker").onSubmit(r,U(r),q(r),n.data("colorpicker").el)},O=function(t){var n=e("#"+e(this).data("colorpickerId"));n.data("colorpicker").onBeforeShow.apply(this,[n.get(0)]);var r=e(this).offset();var i=D();var s=r.top+this.offsetHeight;var o=r.left;if(s+176>i.t+i.h){s-=this.offsetHeight+176}if(o+356>i.l+i.w){o-=356}n.css({left:o+"px",top:s+"px"});if(n.data("colorpicker").onShow.apply(this,[n.get(0)])!=false){n.show()}e(document).bind("mousedown",{cal:n},M);return false},M=function(t){if(!_(t.data.cal.get(0),t.target,t.data.cal.get(0))){if(t.data.cal.data("colorpicker").onHide.apply(this,[t.data.cal.get(0)])!=false){t.data.cal.hide()}e(document).unbind("mousedown",M)}},_=function(e,t,n){if(e==t){return true}if(e.contains){return e.contains(t)}if(e.compareDocumentPosition){return!!(e.compareDocumentPosition(t)&16)}var r=t.parentNode;while(r&&r!=n){if(r==e)return true;r=r.parentNode}return false},D=function(){var e=document.compatMode=="CSS1Compat";return{l:window.pageXOffset||(e?document.documentElement.scrollLeft:document.body.scrollLeft),t:window.pageYOffset||(e?document.documentElement.scrollTop:document.body.scrollTop),w:window.innerWidth||(e?document.documentElement.clientWidth:document.body.clientWidth),h:window.innerHeight||(e?document.documentElement.clientHeight:document.body.clientHeight)}},P=function(e){return{h:Math.min(360,Math.max(0,e.h)),s:Math.min(100,Math.max(0,e.s)),b:Math.min(100,Math.max(0,e.b))}},H=function(e){return{r:Math.min(255,Math.max(0,e.r)),g:Math.min(255,Math.max(0,e.g)),b:Math.min(255,Math.max(0,e.b))}},B=function(e){var t=6-e.length;if(t>0){var n=[];for(var r=0;r<t;r++){n.push("0")}n.push(e);e=n.join("")}return e},j=function(e){var e=parseInt(e.indexOf("#")>-1?e.substring(1):e,16);return{r:e>>16,g:(e&65280)>>8,b:e&255}},F=function(e){return I(j(e))},I=function(e){var t={h:0,s:0,b:0};var n=Math.min(e.r,e.g,e.b);var r=Math.max(e.r,e.g,e.b);var i=r-n;t.b=r;if(r!=0){}t.s=r!=0?255*i/r:0;if(t.s!=0){if(e.r==r){t.h=(e.g-e.b)/i}else if(e.g==r){t.h=2+(e.b-e.r)/i}else{t.h=4+(e.r-e.g)/i}}else{t.h=-1}t.h*=60;if(t.h<0){t.h+=360}t.s*=100/255;t.b*=100/255;return t},q=function(e){var t={};var n=Math.round(e.h);var r=Math.round(e.s*255/100);var i=Math.round(e.b*255/100);if(r==0){t.r=t.g=t.b=i}else{var s=i;var o=(255-r)*i/255;var u=(s-o)*(n%60)/60;if(n==360)n=0;if(n<60){t.r=s;t.b=o;t.g=o+u}else if(n<120){t.g=s;t.b=o;t.r=s-u}else if(n<180){t.g=s;t.r=o;t.b=o+u}else if(n<240){t.b=s;t.r=o;t.g=s-u}else if(n<300){t.b=s;t.g=o;t.r=o+u}else if(n<360){t.r=s;t.g=o;t.b=s-u}else{t.r=0;t.g=0;t.b=0}}return{r:Math.round(t.r),g:Math.round(t.g),b:Math.round(t.b)}},R=function(t){var n=[t.r.toString(16),t.g.toString(16),t.b.toString(16)];e.each(n,function(e,t){if(t.length==1){n[e]="0"+t}});return n.join("")},U=function(e){return R(q(e))},z=function(){var t=e(this).parent();var n=t.data("colorpicker").origColor;t.data("colorpicker").color=n;u(n,t.get(0));f(n,t.get(0));a(n,t.get(0));l(n,t.get(0));c(n,t.get(0));p(n,t.get(0))};return{init:function(t){t=e.extend({},o,t||{});if(typeof t.color=="string"){t.color=F(t.color)}else if(t.color.r!=undefined&&t.color.g!=undefined&&t.color.b!=undefined){t.color=I(t.color)}else if(t.color.h!=undefined&&t.color.s!=undefined&&t.color.b!=undefined){t.color=P(t.color)}else{return this}return this.each(function(){if(!e(this).data("colorpickerId")){var n=e.extend({},t);n.origColor=t.color;var r="collorpicker_"+parseInt(Math.random()*1e3);e(this).data("colorpickerId",r);var i=e(s).attr("id",r);if(n.flat){i.appendTo(this).show()}else{i.appendTo(document.body)}n.fields=i.find("input").bind("keyup",d).bind("change",v).bind("blur",m).bind("focus",g);i.find("span").bind("mousedown",y).end().find(">div.colorpicker_current_color").bind("click",z);n.selector=i.find("div.colorpicker_color").bind("mousedown",T);n.selectorIndic=n.selector.find("div div");n.el=this;n.hue=i.find("div.colorpicker_hue div");i.find("div.colorpicker_hue").bind("mousedown",E);n.newColor=i.find("div.colorpicker_new_color");n.currentColor=i.find("div.colorpicker_current_color");i.data("colorpicker",n);i.find("div.colorpicker_submit").bind("mouseenter",k).bind("mouseleave",L).bind("click",A);u(n.color,i.get(0));a(n.color,i.get(0));f(n.color,i.get(0));c(n.color,i.get(0));l(n.color,i.get(0));h(n.color,i.get(0));p(n.color,i.get(0));if(n.flat){i.css({position:"relative",display:"block"})}else{e(this).bind(n.eventName,O)}}})},showPicker:function(){return this.each(function(){if(e(this).data("colorpickerId")){O.apply(this)}})},hidePicker:function(){return this.each(function(){if(e(this).data("colorpickerId")){e("#"+e(this).data("colorpickerId")).hide()}})},setColor:function(t){if(typeof t=="string"){t=F(t)}else if(t.r!=undefined&&t.g!=undefined&&t.b!=undefined){t=I(t)}else if(t.h!=undefined&&t.s!=undefined&&t.b!=undefined){t=P(t)}else{return this}return this.each(function(){if(e(this).data("colorpickerId")){var n=e("#"+e(this).data("colorpickerId"));n.data("colorpicker").color=t;n.data("colorpicker").origColor=t;u(t,n.get(0));a(t,n.get(0));f(t,n.get(0));c(t,n.get(0));l(t,n.get(0));h(t,n.get(0));p(t,n.get(0))}})}}}();e.fn.extend({ColorPicker:t.init,ColorPickerHide:t.hidePicker,ColorPickerShow:t.showPicker,ColorPickerSetColor:t.setColor})})(jQuery)
|
|
js/color-picker/eye-min.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
(function(e){var t=window.EYE=function(){var t={init:[]};return{init:function(){e.each(t.init,function(e,t){t.call()})},extend:function(e){for(var t in e){if(e[t]!=undefined){this[t]=e[t]}}},register:function(e,n){if(!t[n]){t[n]=[]}t[n].push(e)}}}();e(t.init)})(jQuery)
|
|
js/color-picker/layout-min.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
(function(e){var t=function(){var t=window.location.hash.replace("#","");var r=e("ul.navigationTabs a").bind("click",n).filter("a[rel="+t+"]");if(r.size()==0){r=e("ul.navigationTabs a:first")}n.apply(r.get(0));e("#colorpickerHolder").ColorPicker({flat:true});e("#colorpickerHolder2").ColorPicker({flat:true,color:"#00ff00",onSubmit:function(t,n,r){e("#colorSelector2 div").css("backgroundColor","#"+n)}});e("#colorpickerHolder2>div").css("position","absolute");var i=false;e("#colorSelector2").bind("click",function(){e("#colorpickerHolder2").stop().animate({height:i?0:173},500);i=!i});e("#colorpickerField1, #colorpickerField2, #colorpickerField3").ColorPicker({onSubmit:function(t,n,r,i){e(i).val(n);e(i).ColorPickerHide()},onBeforeShow:function(){e(this).ColorPickerSetColor(this.value)}}).bind("keyup",function(){e(this).ColorPickerSetColor(this.value)});e("#colorSelector").ColorPicker({color:"#0000ff",onShow:function(t){e(t).fadeIn(500);return false},onHide:function(t){e(t).fadeOut(500);return false},onChange:function(t,n,r){e("#colorSelector div").css("backgroundColor","#"+n)}})};var n=function(t){var n=e("ul.navigationTabs a").removeClass("active").index(this);e(this).addClass("active").blur();e("div.tab").hide().eq(n).show()};EYE.register(t,"init")})(jQuery)
|
|
js/color-picker/utils-min.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
(function(e){EYE.extend({getPosition:function(e,t){var n=0;var r=0;var i=e.style;var s=false;if(t&&jQuery.curCSS(e,"display")=="none"){var o=i.visibility;var u=i.position;s=true;i.visibility="hidden";i.display="block";i.position="absolute"}var a=e;if(a.getBoundingClientRect){var f=a.getBoundingClientRect();n=f.left+Math.max(document.documentElement.scrollLeft,document.body.scrollLeft)-2;r=f.top+Math.max(document.documentElement.scrollTop,document.body.scrollTop)-2}else{n=a.offsetLeft;r=a.offsetTop;a=a.offsetParent;if(e!=a){while(a){n+=a.offsetLeft;r+=a.offsetTop;a=a.offsetParent}}if(jQuery.browser.safari&&jQuery.curCSS(e,"position")=="absolute"){n-=document.body.offsetLeft;r-=document.body.offsetTop}a=e.parentNode;while(a&&a.tagName.toUpperCase()!="BODY"&&a.tagName.toUpperCase()!="HTML"){if(jQuery.curCSS(a,"display")!="inline"){n-=a.scrollLeft;r-=a.scrollTop}a=a.parentNode}}if(s==true){i.display="none";i.position=u;i.visibility=o}return{x:n,y:r}},getSize:function(e){var t=parseInt(jQuery.curCSS(e,"width"),10);var n=parseInt(jQuery.curCSS(e,"height"),10);var r=0;var i=0;if(jQuery.curCSS(e,"display")!="none"){r=e.offsetWidth;i=e.offsetHeight}else{var s=e.style;var o=s.visibility;var u=s.position;s.visibility="hidden";s.display="block";s.position="absolute";r=e.offsetWidth;i=e.offsetHeight;s.display="none";s.position=u;s.visibility=o}return{w:t,h:n,wb:r,hb:i}},getClient:function(e){var t,n;if(e){n=e.clientWidth;t=e.clientHeight}else{var r=document.documentElement;n=window.innerWidth||self.innerWidth||r&&r.clientWidth||document.body.clientWidth;t=window.innerHeight||self.innerHeight||r&&r.clientHeight||document.body.clientHeight}return{w:n,h:t}},getScroll:function(e){var t=0,n=0,r=0,i=0,s=0,o=0;if(e&&e.nodeName.toLowerCase()!="body"){t=e.scrollTop;n=e.scrollLeft;r=e.scrollWidth;i=e.scrollHeight}else{if(document.documentElement){t=document.documentElement.scrollTop;n=document.documentElement.scrollLeft;r=document.documentElement.scrollWidth;i=document.documentElement.scrollHeight}else if(document.body){t=document.body.scrollTop;n=document.body.scrollLeft;r=document.body.scrollWidth;i=document.body.scrollHeight}if(typeof pageYOffset!="undefined"){t=pageYOffset;n=pageXOffset}s=self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth||0;o=self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0}return{t:t,l:n,w:r,h:i,iw:s,ih:o}},getMargins:function(e,t){var n=jQuery.curCSS(e,"marginTop")||"";var r=jQuery.curCSS(e,"marginRight")||"";var i=jQuery.curCSS(e,"marginBottom")||"";var s=jQuery.curCSS(e,"marginLeft")||"";if(t)return{t:parseInt(n,10)||0,r:parseInt(r,10)||0,b:parseInt(i,10)||0,l:parseInt(s,10)};else return{t:n,r:r,b:i,l:s}},getPadding:function(e,t){var n=jQuery.curCSS(e,"paddingTop")||"";var r=jQuery.curCSS(e,"paddingRight")||"";var i=jQuery.curCSS(e,"paddingBottom")||"";var s=jQuery.curCSS(e,"paddingLeft")||"";if(t)return{t:parseInt(n,10)||0,r:parseInt(r,10)||0,b:parseInt(i,10)||0,l:parseInt(s,10)};else return{t:n,r:r,b:i,l:s}},getBorder:function(e,t){var n=jQuery.curCSS(e,"borderTopWidth")||"";var r=jQuery.curCSS(e,"borderRightWidth")||"";var i=jQuery.curCSS(e,"borderBottomWidth")||"";var s=jQuery.curCSS(e,"borderLeftWidth")||"";if(t)return{t:parseInt(n,10)||0,r:parseInt(r,10)||0,b:parseInt(i,10)||0,l:parseInt(s,10)||0};else return{t:n,r:r,b:i,l:s}},traverseDOM:function(e,t){t(e);e=e.firstChild;while(e){EYE.traverseDOM(e,t);e=e.nextSibling}},getInnerWidth:function(e,t){var n=e.offsetWidth;return t?Math.max(e.scrollWidth,n)-n+e.clientWidth:e.clientWidth},getInnerHeight:function(e,t){var n=e.offsetHeight;return t?Math.max(e.scrollHeight,n)-n+e.clientHeight:e.clientHeight},getExtraWidth:function(t){if(e.boxModel)return(parseInt(e.curCSS(t,"paddingLeft"))||0)+(parseInt(e.curCSS(t,"paddingRight"))||0)+(parseInt(e.curCSS(t,"borderLeftWidth"))||0)+(parseInt(e.curCSS(t,"borderRightWidth"))||0);return 0},getExtraHeight:function(t){if(e.boxModel)return(parseInt(e.curCSS(t,"paddingTop"))||0)+(parseInt(e.curCSS(t,"paddingBottom"))||0)+(parseInt(e.curCSS(t,"borderTopWidth"))||0)+(parseInt(e.curCSS(t,"borderBottomWidth"))||0);return 0},isChildOf:function(t,n,r){if(t==n){return true}if(!n||!n.nodeType||n.nodeType!=1){return false}if(t.contains&&!e.browser.safari){return t.contains(n)}if(t.compareDocumentPosition){return!!(t.compareDocumentPosition(n)&16)}var i=n.parentNode;while(i&&i!=r){if(i==t)return true;i=i.parentNode}return false},centerEl:function(t,n){var r=EYE.getScroll();var i=EYE.getSize(t);if(!n||n=="vertically")e(t).css({top:r.t+(Math.min(r.h,r.ih)-i.hb)/2+"px"});if(!n||n=="horizontally")e(t).css({left:r.l+(Math.min(r.w,r.iw)-i.wb)/2+"px"})}});if(!e.easing.easeout){e.easing.easeout=function(e,t,n,r,i){return-r*((t=t/i-1)*t*t*t-1)+n}}})(jQuery)
|
|
js/custom-admin.js
CHANGED
@@ -257,10 +257,10 @@ function sfsi_plus_update_step1()
|
|
257 |
url:ajax_object.ajax_url,
|
258 |
type:"post",
|
259 |
data:I,
|
260 |
-
|
261 |
dataType:"json",
|
262 |
success:function(i) {
|
263 |
-
|
264 |
{
|
265 |
sfsiplus_showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 1);
|
266 |
s = !1;
|
257 |
url:ajax_object.ajax_url,
|
258 |
type:"post",
|
259 |
data:I,
|
260 |
+
async:!0,
|
261 |
dataType:"json",
|
262 |
success:function(i) {
|
263 |
+
if(i=="wrong_nonce")
|
264 |
{
|
265 |
sfsiplus_showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 1);
|
266 |
s = !1;
|
js/{custom-min.js → custom.min.js}
RENAMED
File without changes
|
js/jquery-migrate-min.js
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
/*! jQuery Migrate v1.2.0 | (c) 2005, 2013 jQuery Foundation, Inc. and other contributors | jquery.org/license */
|
2 |
-
jQuery.migrateMute===void 0&&(jQuery.migrateMute=!0),function(e,t,n){function r(n){var r=t.console;i[n]||(i[n]=!0,e.migrateWarnings.push(n),r&&r.warn&&!e.migrateMute&&(r.warn("JQMIGRATE: "+n),e.migrateTrace&&r.trace&&r.trace()))}function a(t,a,i,o){if(Object.defineProperty)try{return Object.defineProperty(t,a,{configurable:!0,enumerable:!0,get:function(){return r(o),i},set:function(e){r(o),i=e}}),n}catch(s){}e._definePropertyBroken=!0,t[a]=i}var i={};e.migrateWarnings=[],!e.migrateMute&&t.console&&t.console.log&&t.console.log("JQMIGRATE: Logging is active"),e.migrateTrace===n&&(e.migrateTrace=!0),e.migrateReset=function(){i={},e.migrateWarnings.length=0},"BackCompat"===document.compatMode&&r("jQuery is not compatible with Quirks Mode");var o=e("<input/>",{size:1}).attr("size")&&e.attrFn,s=e.attr,u=e.attrHooks.value&&e.attrHooks.value.get||function(){return null},c=e.attrHooks.value&&e.attrHooks.value.set||function(){return n},l=/^(?:input|button)$/i,d=/^[238]$/,p=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,f=/^(?:checked|selected)$/i;a(e,"attrFn",o||{},"jQuery.attrFn is deprecated"),e.attr=function(t,a,i,u){var c=a.toLowerCase(),g=t&&t.nodeType;return u&&(4>s.length&&r("jQuery.fn.attr( props, pass ) is deprecated"),t&&!d.test(g)&&(o?a in o:e.isFunction(e.fn[a])))?e(t)[a](i):("type"===a&&i!==n&&l.test(t.nodeName)&&t.parentNode&&r("Can't change the 'type' of an input or button in IE 6/7/8"),!e.attrHooks[c]&&p.test(c)&&(e.attrHooks[c]={get:function(t,r){var a,i=e.prop(t,r);return i===!0||"boolean"!=typeof i&&(a=t.getAttributeNode(r))&&a.nodeValue!==!1?r.toLowerCase():n},set:function(t,n,r){var a;return n===!1?e.removeAttr(t,r):(a=e.propFix[r]||r,a in t&&(t[a]=!0),t.setAttribute(r,r.toLowerCase())),r}},f.test(c)&&r("jQuery.fn.attr('"+c+"') may use property instead of attribute")),s.call(e,t,a,i))},e.attrHooks.value={get:function(e,t){var n=(e.nodeName||"").toLowerCase();return"button"===n?u.apply(this,arguments):("input"!==n&&"option"!==n&&r("jQuery.fn.attr('value') no longer gets properties"),t in e?e.value:null)},set:function(e,t){var a=(e.nodeName||"").toLowerCase();return"button"===a?c.apply(this,arguments):("input"!==a&&"option"!==a&&r("jQuery.fn.attr('value', val) no longer sets properties"),e.value=t,n)}};var g,h,v=e.fn.init,m=e.parseJSON,y=/^[^<]*(.*?)[^>]*$/,b=/^[^<]*<[\w\W]+>[^>]*$/;e.fn.init=function(t,n,a){var i;return t&&"string"==typeof t&&!e.isPlainObject(n)&&(i=b.exec(t))&&i[0]&&("<"!==t.charAt(0)&&r("$(html) HTML strings must start with '<' character"),">"!==t.charAt(t.length-1)&&r("$(html) HTML text after last tag is ignored"),"#"===e.trim(t).charAt(0)&&(r("HTML string cannot start with a '#' character"),e.error("JQMIGRATE: Invalid selector string (XSS)")),n&&n.context&&(n=n.context),e.parseHTML)?(i=y.exec(t),v.call(this,e.parseHTML(i[1]||t,n,!0),n,a)):v.apply(this,arguments)},e.fn.init.prototype=e.fn,e.parseJSON=function(e){return e||null===e?m.apply(this,arguments):(r("jQuery.parseJSON requires a valid JSON string"),null)},e.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||0>e.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e.browser||(g=e.uaMatch(navigator.userAgent),h={},g.browser&&(h[g.browser]=!0,h.version=g.version),h.chrome?h.webkit=!0:h.webkit&&(h.safari=!0),e.browser=h),a(e,"browser",e.browser,"jQuery.browser is deprecated"),e.sub=function(){function t(e,n){return new t.fn.init(e,n)}e.extend(!0,t,this),t.superclass=this,t.fn=t.prototype=this(),t.fn.constructor=t,t.sub=this.sub,t.fn.init=function(r,a){return a&&a instanceof e&&!(a instanceof t)&&(a=t(a)),e.fn.init.call(this,r,a,n)},t.fn.init.prototype=t.fn;var n=t(document);return r("jQuery.sub() is deprecated"),t},e.ajaxSetup({converters:{"text json":e.parseJSON}});var j=e.fn.data;e.fn.data=function(t){var a,i,o=this[0];return!o||"events"!==t||1!==arguments.length||(a=e.data(o,t),i=e._data(o,t),a!==n&&a!==i||i===n)?j.apply(this,arguments):(r("Use of jQuery.fn.data('events') is deprecated"),i)};var w=/\/(java|ecma)script/i,Q=e.fn.andSelf||e.fn.addBack;e.fn.andSelf=function(){return r("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),Q.apply(this,arguments)},e.clean||(e.clean=function(t,a,i,o){a=a||document,a=!a.nodeType&&a[0]||a,a=a.ownerDocument||a,r("jQuery.clean() is deprecated");var s,u,c,l,d=[];if(e.merge(d,e.buildFragment(t,a).childNodes),i)for(c=function(e){return!e.type||w.test(e.type)?o?o.push(e.parentNode?e.parentNode.removeChild(e):e):i.appendChild(e):n},s=0;null!=(u=d[s]);s++)e.nodeName(u,"script")&&c(u)||(i.appendChild(u),u.getElementsByTagName!==n&&(l=e.grep(e.merge([],u.getElementsByTagName("script")),c),d.splice.apply(d,[s+1,0].concat(l)),s+=l.length));return d});var x=e.event.add,k=e.event.remove,N=e.event.trigger,T=e.fn.toggle,M=e.fn.live,S=e.fn.die,C="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",A=RegExp("\\b(?:"+C+")\\b"),H=/(?:^|\s)hover(\.\S+|)\b/,L=function(t){return"string"!=typeof t||e.event.special.hover?t:(H.test(t)&&r("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),t&&t.replace(H,"mouseenter$1 mouseleave$1"))};e.event.props&&"attrChange"!==e.event.props[0]&&e.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),e.event.dispatch&&a(e.event,"handle",e.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),e.event.add=function(e,t,n,a,i){e!==document&&A.test(t)&&r("AJAX events should be attached to document: "+t),x.call(this,e,L(t||""),n,a,i)},e.event.remove=function(e,t,n,r,a){k.call(this,e,L(t)||"",n,r,a)},e.fn.error=function(){var e=Array.prototype.slice.call(arguments,0);return r("jQuery.fn.error() is deprecated"),e.splice(0,0,"error"),arguments.length?this.bind.apply(this,e):(this.triggerHandler.apply(this,e),this)},e.fn.toggle=function(t,n){if(!e.isFunction(t)||!e.isFunction(n))return T.apply(this,arguments);r("jQuery.fn.toggle(handler, handler...) is deprecated");var a=arguments,i=t.guid||e.guid++,o=0,s=function(n){var r=(e._data(this,"lastToggle"+t.guid)||0)%o;return e._data(this,"lastToggle"+t.guid,r+1),n.preventDefault(),a[r].apply(this,arguments)||!1};for(s.guid=i;a.length>o;)a[o++].guid=i;return this.click(s)},e.fn.live=function(t,n,a){return r("jQuery.fn.live() is deprecated"),M?M.apply(this,arguments):(e(this.context).on(t,this.selector,n,a),this)},e.fn.die=function(t,n){return r("jQuery.fn.die() is deprecated"),S?S.apply(this,arguments):(e(this.context).off(t,this.selector||"**",n),this)},e.event.trigger=function(e,t,n,a){return n||A.test(e)||r("Global events are undocumented and deprecated"),N.call(this,e,t,n||document,a)},e.each(C.split("|"),function(t,n){e.event.special[n]={setup:function(){var t=this;return t!==document&&(e.event.add(document,n+"."+e.guid,function(){e.event.trigger(n,null,t,!0)}),e._data(this,n,e.guid++)),!1},teardown:function(){return this!==document&&e.event.remove(document,n+"."+e._data(this,n)),!1}}})}(jQuery,window);
|
|
|
|
js/jquery-ui-min.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
(function(e,t){function i(t,n){var r,i,o,u=t.nodeName.toLowerCase();if("area"===u){r=t.parentNode;i=r.name;if(!t.href||!i||r.nodeName.toLowerCase()!=="map"){return false}o=e("img[usemap=#"+i+"]")[0];return!!o&&s(o)}return(/input|select|textarea|button|object/.test(u)?!t.disabled:"a"===u?t.href||n:n)&&s(t)}function s(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack().filter(function(){return e.css(this,"visibility")==="hidden"}).length}var n=0,r=/^ui-id-\d+$/;e.ui=e.ui||{};e.extend(e.ui,{version:"1.10.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}});e.fn.extend({focus:function(t){return function(n,r){return typeof n==="number"?this.each(function(){var t=this;setTimeout(function(){e(t).focus();if(r){r.call(t)}},n)}):t.apply(this,arguments)}}(e.fn.focus),scrollParent:function(){var t;if(e.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))){t=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.css(this,"position"))&&/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0)}else{t=this.parents().filter(function(){return/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0)}return/fixed/.test(this.css("position"))||!t.length?e(document):t},zIndex:function(n){if(n!==t){return this.css("zIndex",n)}if(this.length){var r=e(this[0]),i,s;while(r.length&&r[0]!==document){i=r.css("position");if(i==="absolute"||i==="relative"||i==="fixed"){s=parseInt(r.css("zIndex"),10);if(!isNaN(s)&&s!==0){return s}}r=r.parent()}}return 0},uniqueId:function(){return this.each(function(){if(!this.id){this.id="ui-id-"+ ++n}})},removeUniqueId:function(){return this.each(function(){if(r.test(this.id)){e(this).removeAttr("id")}})}});e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(n){return!!e.data(n,t)}}):function(t,n,r){return!!e.data(t,r[3])},focusable:function(t){return i(t,!isNaN(e.attr(t,"tabindex")))},tabbable:function(t){var n=e.attr(t,"tabindex"),r=isNaN(n);return(r||n>=0)&&i(t,!r)}});if(!e("<a>").outerWidth(1).jquery){e.each(["Width","Height"],function(n,r){function u(t,n,r,s){e.each(i,function(){n-=parseFloat(e.css(t,"padding"+this))||0;if(r){n-=parseFloat(e.css(t,"border"+this+"Width"))||0}if(s){n-=parseFloat(e.css(t,"margin"+this))||0}});return n}var i=r==="Width"?["Left","Right"]:["Top","Bottom"],s=r.toLowerCase(),o={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+r]=function(n){if(n===t){return o["inner"+r].call(this)}return this.each(function(){e(this).css(s,u(this,n)+"px")})};e.fn["outer"+r]=function(t,n){if(typeof t!=="number"){return o["outer"+r].call(this,t)}return this.each(function(){e(this).css(s,u(this,t,true,n)+"px")})}})}if(!e.fn.addBack){e.fn.addBack=function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}}if(e("<a>").data("a-b","a").removeData("a-b").data("a-b")){e.fn.removeData=function(t){return function(n){if(arguments.length){return t.call(this,e.camelCase(n))}else{return t.call(this)}}}(e.fn.removeData)}e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());e.support.selectstart="onselectstart"in document.createElement("div");e.fn.extend({disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});e.extend(e.ui,{plugin:{add:function(t,n,r){var i,s=e.ui[t].prototype;for(i in r){s.plugins[i]=s.plugins[i]||[];s.plugins[i].push([n,r[i]])}},call:function(e,t,n){var r,i=e.plugins[t];if(!i||!e.element[0].parentNode||e.element[0].parentNode.nodeType===11){return}for(r=0;r<i.length;r++){if(e.options[i[r][0]]){i[r][1].apply(e.element,n)}}}},hasScroll:function(t,n){if(e(t).css("overflow")==="hidden"){return false}var r=n&&n==="left"?"scrollLeft":"scrollTop",i=false;if(t[r]>0){return true}t[r]=1;i=t[r]>0;t[r]=0;return i}})})(jQuery);(function(e,t){var n=0,r=Array.prototype.slice,i=e.cleanData;e.cleanData=function(t){for(var n=0,r;(r=t[n])!=null;n++){try{e(r).triggerHandler("remove")}catch(s){}}i(t)};e.widget=function(t,n,r){var i,s,o,u,a={},f=t.split(".")[0];t=t.split(".")[1];i=f+"-"+t;if(!r){r=n;n=e.Widget}e.expr[":"][i.toLowerCase()]=function(t){return!!e.data(t,i)};e[f]=e[f]||{};s=e[f][t];o=e[f][t]=function(e,t){if(!this._createWidget){return new o(e,t)}if(arguments.length){this._createWidget(e,t)}};e.extend(o,s,{version:r.version,_proto:e.extend({},r),_childConstructors:[]});u=new n;u.options=e.widget.extend({},u.options);e.each(r,function(t,r){if(!e.isFunction(r)){a[t]=r;return}a[t]=function(){var e=function(){return n.prototype[t].apply(this,arguments)},i=function(e){return n.prototype[t].apply(this,e)};return function(){var t=this._super,n=this._superApply,s;this._super=e;this._superApply=i;s=r.apply(this,arguments);this._super=t;this._superApply=n;return s}}()});o.prototype=e.widget.extend(u,{widgetEventPrefix:s?u.widgetEventPrefix||t:t},a,{constructor:o,namespace:f,widgetName:t,widgetFullName:i});if(s){e.each(s._childConstructors,function(t,n){var r=n.prototype;e.widget(r.namespace+"."+r.widgetName,o,n._proto)});delete s._childConstructors}else{n._childConstructors.push(o)}e.widget.bridge(t,o)};e.widget.extend=function(n){var i=r.call(arguments,1),s=0,o=i.length,u,a;for(;s<o;s++){for(u in i[s]){a=i[s][u];if(i[s].hasOwnProperty(u)&&a!==t){if(e.isPlainObject(a)){n[u]=e.isPlainObject(n[u])?e.widget.extend({},n[u],a):e.widget.extend({},a)}else{n[u]=a}}}}return n};e.widget.bridge=function(n,i){var s=i.prototype.widgetFullName||n;e.fn[n]=function(o){var u=typeof o==="string",a=r.call(arguments,1),f=this;o=!u&&a.length?e.widget.extend.apply(null,[o].concat(a)):o;if(u){this.each(function(){var r,i=e.data(this,s);if(!i){return e.error("cannot call methods on "+n+" prior to initialization; "+"attempted to call method '"+o+"'")}if(!e.isFunction(i[o])||o.charAt(0)==="_"){return e.error("no such method '"+o+"' for "+n+" widget instance")}r=i[o].apply(i,a);if(r!==i&&r!==t){f=r&&r.jquery?f.pushStack(r.get()):r;return false}})}else{this.each(function(){var t=e.data(this,s);if(t){t.option(o||{})._init()}else{e.data(this,s,new i(o,this))}})}return f}};e.Widget=function(){};e.Widget._childConstructors=[];e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:false,create:null},_createWidget:function(t,r){r=e(r||this.defaultElement||this)[0];this.element=e(r);this.uuid=n++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=e.widget.extend({},this.options,this._getCreateOptions(),t);this.bindings=e();this.hoverable=e();this.focusable=e();if(r!==this){e.data(r,this.widgetFullName,this);this._on(true,this.element,{remove:function(e){if(e.target===r){this.destroy()}}});this.document=e(r.style?r.ownerDocument:r.document||r);this.window=e(this.document[0].defaultView||this.document[0].parentWindow)}this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName));this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+"ui-state-disabled");this.bindings.unbind(this.eventNamespace);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(n,r){var i=n,s,o,u;if(arguments.length===0){return e.widget.extend({},this.options)}if(typeof n==="string"){i={};s=n.split(".");n=s.shift();if(s.length){o=i[n]=e.widget.extend({},this.options[n]);for(u=0;u<s.length-1;u++){o[s[u]]=o[s[u]]||{};o=o[s[u]]}n=s.pop();if(arguments.length===1){return o[n]===t?null:o[n]}o[n]=r}else{if(arguments.length===1){return this.options[n]===t?null:this.options[n]}i[n]=r}}this._setOptions(i);return this},_setOptions:function(e){var t;for(t in e){this._setOption(t,e[t])}return this},_setOption:function(e,t){this.options[e]=t;if(e==="disabled"){this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!t).attr("aria-disabled",t);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_on:function(t,n,r){var i,s=this;if(typeof t!=="boolean"){r=n;n=t;t=false}if(!r){r=n;n=this.element;i=this.widget()}else{n=i=e(n);this.bindings=this.bindings.add(n)}e.each(r,function(r,o){function u(){if(!t&&(s.options.disabled===true||e(this).hasClass("ui-state-disabled"))){return}return(typeof o==="string"?s[o]:o).apply(s,arguments)}if(typeof o!=="string"){u.guid=o.guid=o.guid||u.guid||e.guid++}var a=r.match(/^(\w+)\s*(.*)$/),f=a[1]+s.eventNamespace,l=a[2];if(l){i.delegate(l,f,u)}else{n.bind(f,u)}})},_off:function(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;e.unbind(t).undelegate(t)},_delay:function(e,t){function n(){return(typeof e==="string"?r[e]:e).apply(r,arguments)}var r=this;return setTimeout(n,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t);this._on(t,{mouseenter:function(t){e(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){e(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t);this._on(t,{focusin:function(t){e(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){e(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,n,r){var i,s,o=this.options[t];r=r||{};n=e.Event(n);n.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase();n.target=this.element[0];s=n.originalEvent;if(s){for(i in s){if(!(i in n)){n[i]=s[i]}}}this.element.trigger(n,r);return!(e.isFunction(o)&&o.apply(this.element[0],[n].concat(r))===false||n.isDefaultPrevented())}};e.each({show:"fadeIn",hide:"fadeOut"},function(t,n){e.Widget.prototype["_"+t]=function(r,i,s){if(typeof i==="string"){i={effect:i}}var o,u=!i?t:i===true||typeof i==="number"?n:i.effect||n;i=i||{};if(typeof i==="number"){i={duration:i}}o=!e.isEmptyObject(i);i.complete=s;if(i.delay){r.delay(i.delay)}if(o&&e.effects&&e.effects.effect[u]){r[t](i)}else if(u!==t&&r[u]){r[u](i.duration,i.easing,s)}else{r.queue(function(n){e(this)[t]();if(s){s.call(r[0])}n()})}}})})(jQuery);(function(e,t){var n=false;e(document).mouseup(function(){n=false});e.widget("ui.mouse",{version:"1.10.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).bind("click."+this.widgetName,function(n){if(true===e.data(n.target,t.widgetName+".preventClickEvent")){e.removeData(n.target,t.widgetName+".preventClickEvent");n.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);if(this._mouseMoveDelegate){e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)}},_mouseDown:function(t){if(n){return}this._mouseStarted&&this._mouseUp(t);this._mouseDownEvent=t;var r=this,i=t.which===1,s=typeof this.options.cancel==="string"&&t.target.nodeName?e(t.target).closest(this.options.cancel).length:false;if(!i||s||!this._mouseCapture(t)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){r.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)){this._mouseStarted=this._mouseStart(t)!==false;if(!this._mouseStarted){t.preventDefault();return true}}if(true===e.data(t.target,this.widgetName+".preventClickEvent")){e.removeData(t.target,this.widgetName+".preventClickEvent")}this._mouseMoveDelegate=function(e){return r._mouseMove(e)};this._mouseUpDelegate=function(e){return r._mouseUp(e)};e(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);t.preventDefault();n=true;return true},_mouseMove:function(t){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button){return this._mouseUp(t)}if(this._mouseStarted){this._mouseDrag(t);return t.preventDefault()}if(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)){this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==false;this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)}return!this._mouseStarted},_mouseUp:function(t){e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;if(t.target===this._mouseDownEvent.target){e.data(t.target,this.widgetName+".preventClickEvent",true)}this._mouseStop(t)}return false},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);(function(e,t){function h(e,t,n){return[parseFloat(e[0])*(l.test(e[0])?t/100:1),parseFloat(e[1])*(l.test(e[1])?n/100:1)]}function p(t,n){return parseInt(e.css(t,n),10)||0}function d(t){var n=t[0];if(n.nodeType===9){return{width:t.width(),height:t.height(),offset:{top:0,left:0}}}if(e.isWindow(n)){return{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}}if(n.preventDefault){return{width:0,height:0,offset:{top:n.pageY,left:n.pageX}}}return{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}e.ui=e.ui||{};var n,r=Math.max,i=Math.abs,s=Math.round,o=/left|center|right/,u=/top|center|bottom/,a=/[\+\-]\d+(\.[\d]+)?%?/,f=/^\w+/,l=/%$/,c=e.fn.position;e.position={scrollbarWidth:function(){if(n!==t){return n}var r,i,s=e("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),o=s.children()[0];e("body").append(s);r=o.offsetWidth;s.css("overflow","scroll");i=o.offsetWidth;if(r===i){i=s[0].clientWidth}s.remove();return n=r-i},getScrollInfo:function(t){var n=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),r=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),i=n==="scroll"||n==="auto"&&t.width<t.element[0].scrollWidth,s=r==="scroll"||r==="auto"&&t.height<t.element[0].scrollHeight;return{width:s?e.position.scrollbarWidth():0,height:i?e.position.scrollbarWidth():0}},getWithinInfo:function(t){var n=e(t||window),r=e.isWindow(n[0]),i=!!n[0]&&n[0].nodeType===9;return{element:n,isWindow:r,isDocument:i,offset:n.offset()||{left:0,top:0},scrollLeft:n.scrollLeft(),scrollTop:n.scrollTop(),width:r?n.width():n.outerWidth(),height:r?n.height():n.outerHeight()}}};e.fn.position=function(t){if(!t||!t.of){return c.apply(this,arguments)}t=e.extend({},t);var n,l,v,m,g,y,b=e(t.of),w=e.position.getWithinInfo(t.within),E=e.position.getScrollInfo(w),S=(t.collision||"flip").split(" "),x={};y=d(b);if(b[0].preventDefault){t.at="left top"}l=y.width;v=y.height;m=y.offset;g=e.extend({},m);e.each(["my","at"],function(){var e=(t[this]||"").split(" "),n,r;if(e.length===1){e=o.test(e[0])?e.concat(["center"]):u.test(e[0])?["center"].concat(e):["center","center"]}e[0]=o.test(e[0])?e[0]:"center";e[1]=u.test(e[1])?e[1]:"center";n=a.exec(e[0]);r=a.exec(e[1]);x[this]=[n?n[0]:0,r?r[0]:0];t[this]=[f.exec(e[0])[0],f.exec(e[1])[0]]});if(S.length===1){S[1]=S[0]}if(t.at[0]==="right"){g.left+=l}else if(t.at[0]==="center"){g.left+=l/2}if(t.at[1]==="bottom"){g.top+=v}else if(t.at[1]==="center"){g.top+=v/2}n=h(x.at,l,v);g.left+=n[0];g.top+=n[1];return this.each(function(){var o,u,a=e(this),f=a.outerWidth(),c=a.outerHeight(),d=p(this,"marginLeft"),y=p(this,"marginTop"),T=f+d+p(this,"marginRight")+E.width,N=c+y+p(this,"marginBottom")+E.height,C=e.extend({},g),k=h(x.my,a.outerWidth(),a.outerHeight());if(t.my[0]==="right"){C.left-=f}else if(t.my[0]==="center"){C.left-=f/2}if(t.my[1]==="bottom"){C.top-=c}else if(t.my[1]==="center"){C.top-=c/2}C.left+=k[0];C.top+=k[1];if(!e.support.offsetFractions){C.left=s(C.left);C.top=s(C.top)}o={marginLeft:d,marginTop:y};e.each(["left","top"],function(r,i){if(e.ui.position[S[r]]){e.ui.position[S[r]][i](C,{targetWidth:l,targetHeight:v,elemWidth:f,elemHeight:c,collisionPosition:o,collisionWidth:T,collisionHeight:N,offset:[n[0]+k[0],n[1]+k[1]],my:t.my,at:t.at,within:w,elem:a})}});if(t.using){u=function(e){var n=m.left-C.left,s=n+l-f,o=m.top-C.top,u=o+v-c,h={target:{element:b,left:m.left,top:m.top,width:l,height:v},element:{element:a,left:C.left,top:C.top,width:f,height:c},horizontal:s<0?"left":n>0?"right":"center",vertical:u<0?"top":o>0?"bottom":"middle"};if(l<f&&i(n+s)<l){h.horizontal="center"}if(v<c&&i(o+u)<v){h.vertical="middle"}if(r(i(n),i(s))>r(i(o),i(u))){h.important="horizontal"}else{h.important="vertical"}t.using.call(this,e,h)}}a.offset(e.extend(C,{using:u}))})};e.ui.position={fit:{left:function(e,t){var n=t.within,i=n.isWindow?n.scrollLeft:n.offset.left,s=n.width,o=e.left-t.collisionPosition.marginLeft,u=i-o,a=o+t.collisionWidth-s-i,f;if(t.collisionWidth>s){if(u>0&&a<=0){f=e.left+u+t.collisionWidth-s-i;e.left+=u-f}else if(a>0&&u<=0){e.left=i}else{if(u>a){e.left=i+s-t.collisionWidth}else{e.left=i}}}else if(u>0){e.left+=u}else if(a>0){e.left-=a}else{e.left=r(e.left-o,e.left)}},top:function(e,t){var n=t.within,i=n.isWindow?n.scrollTop:n.offset.top,s=t.within.height,o=e.top-t.collisionPosition.marginTop,u=i-o,a=o+t.collisionHeight-s-i,f;if(t.collisionHeight>s){if(u>0&&a<=0){f=e.top+u+t.collisionHeight-s-i;e.top+=u-f}else if(a>0&&u<=0){e.top=i}else{if(u>a){e.top=i+s-t.collisionHeight}else{e.top=i}}}else if(u>0){e.top+=u}else if(a>0){e.top-=a}else{e.top=r(e.top-o,e.top)}}},flip:{left:function(e,t){var n=t.within,r=n.offset.left+n.scrollLeft,s=n.width,o=n.isWindow?n.scrollLeft:n.offset.left,u=e.left-t.collisionPosition.marginLeft,a=u-o,f=u+t.collisionWidth-s-o,l=t.my[0]==="left"?-t.elemWidth:t.my[0]==="right"?t.elemWidth:0,c=t.at[0]==="left"?t.targetWidth:t.at[0]==="right"?-t.targetWidth:0,h=-2*t.offset[0],p,d;if(a<0){p=e.left+l+c+h+t.collisionWidth-s-r;if(p<0||p<i(a)){e.left+=l+c+h}}else if(f>0){d=e.left-t.collisionPosition.marginLeft+l+c+h-o;if(d>0||i(d)<f){e.left+=l+c+h}}},top:function(e,t){var n=t.within,r=n.offset.top+n.scrollTop,s=n.height,o=n.isWindow?n.scrollTop:n.offset.top,u=e.top-t.collisionPosition.marginTop,a=u-o,f=u+t.collisionHeight-s-o,l=t.my[1]==="top",c=l?-t.elemHeight:t.my[1]==="bottom"?t.elemHeight:0,h=t.at[1]==="top"?t.targetHeight:t.at[1]==="bottom"?-t.targetHeight:0,p=-2*t.offset[1],d,v;if(a<0){v=e.top+c+h+p+t.collisionHeight-s-r;if(e.top+c+h+p>a&&(v<0||v<i(a))){e.top+=c+h+p}}else if(f>0){d=e.top-t.collisionPosition.marginTop+c+h+p-o;if(e.top+c+h+p>f&&(d>0||i(d)<f)){e.top+=c+h+p}}}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments);e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments);e.ui.position.fit.top.apply(this,arguments)}}};(function(){var t,n,r,i,s,o=document.getElementsByTagName("body")[0],u=document.createElement("div");t=document.createElement(o?"div":"body");r={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};if(o){e.extend(r,{position:"absolute",left:"-1000px",top:"-1000px"})}for(s in r){t.style[s]=r[s]}t.appendChild(u);n=o||document.documentElement;n.insertBefore(t,n.firstChild);u.style.cssText="position: absolute; left: 10.7432222px;";i=e(u).offset().left;e.support.offsetFractions=i>10&&i<11;t.innerHTML="";n.removeChild(t)})()})(jQuery);(function(e,t){var n=0,r={},i={};r.height=r.paddingTop=r.paddingBottom=r.borderTopWidth=r.borderBottomWidth="hide";i.height=i.paddingTop=i.paddingBottom=i.borderTopWidth=i.borderBottomWidth="show";e.widget("ui.accordion",{version:"1.10.4",options:{active:0,animate:{},collapsible:false,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var t=this.options;this.prevShow=this.prevHide=e();this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist");if(!t.collapsible&&(t.active===false||t.active==null)){t.active=0}this._processPanels();if(t.active<0){t.active+=this.headers.length}this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:!this.active.length?e():this.active.next(),content:!this.active.length?e():this.active.next()}},_createIcons:function(){var t=this.options.icons;if(t){e("<span>").addClass("ui-accordion-header-icon ui-icon "+t.header).prependTo(this.headers);this.active.children(".ui-accordion-header-icon").removeClass(t.header).addClass(t.activeHeader);this.headers.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var e;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){if(/^ui-accordion/.test(this.id)){this.removeAttribute("id")}});this._destroyIcons();e=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){if(/^ui-accordion/.test(this.id)){this.removeAttribute("id")}});if(this.options.heightStyle!=="content"){e.css("height","")}},_setOption:function(e,t){if(e==="active"){this._activate(t);return}if(e==="event"){if(this.options.event){this._off(this.headers,this.options.event)}this._setupEvents(t)}this._super(e,t);if(e==="collapsible"&&!t&&this.options.active===false){this._activate(0)}if(e==="icons"){this._destroyIcons();if(t){this._createIcons()}}if(e==="disabled"){this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!t)}},_keydown:function(t){if(t.altKey||t.ctrlKey){return}var n=e.ui.keyCode,r=this.headers.length,i=this.headers.index(t.target),s=false;switch(t.keyCode){case n.RIGHT:case n.DOWN:s=this.headers[(i+1)%r];break;case n.LEFT:case n.UP:s=this.headers[(i-1+r)%r];break;case n.SPACE:case n.ENTER:this._eventHandler(t);break;case n.HOME:s=this.headers[0];break;case n.END:s=this.headers[r-1];break}if(s){e(t.target).attr("tabIndex",-1);e(s).attr("tabIndex",0);s.focus();t.preventDefault()}},_panelKeyDown:function(t){if(t.keyCode===e.ui.keyCode.UP&&t.ctrlKey){e(t.currentTarget).prev().focus()}},refresh:function(){var t=this.options;this._processPanels();if(t.active===false&&t.collapsible===true||!this.headers.length){t.active=false;this.active=e()}else if(t.active===false){this._activate(0)}else if(this.active.length&&!e.contains(this.element[0],this.active[0])){if(this.headers.length===this.headers.find(".ui-state-disabled").length){t.active=false;this.active=e()}else{this._activate(Math.max(0,t.active-1))}}else{t.active=this.headers.index(this.active)}this._destroyIcons();this._refresh()},_processPanels:function(){this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all");this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide()},_refresh:function(){var t,r=this.options,i=r.heightStyle,s=this.element.parent(),o=this.accordionId="ui-accordion-"+(this.element.attr("id")||++n);this.active=this._findActive(r.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all");this.active.next().addClass("ui-accordion-content-active").show();this.headers.attr("role","tab").each(function(t){var n=e(this),r=n.attr("id"),i=n.next(),s=i.attr("id");if(!r){r=o+"-header-"+t;n.attr("id",r)}if(!s){s=o+"-panel-"+t;i.attr("id",s)}n.attr("aria-controls",s);i.attr("aria-labelledby",r)}).next().attr("role","tabpanel");this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide();if(!this.active.length){this.headers.eq(0).attr("tabIndex",0)}else{this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"})}this._createIcons();this._setupEvents(r.event);if(i==="fill"){t=s.height();this.element.siblings(":visible").each(function(){var n=e(this),r=n.css("position");if(r==="absolute"||r==="fixed"){return}t-=n.outerHeight(true)});this.headers.each(function(){t-=e(this).outerHeight(true)});this.headers.next().each(function(){e(this).height(Math.max(0,t-e(this).innerHeight()+e(this).height()))}).css("overflow","auto")}else if(i==="auto"){t=0;this.headers.next().each(function(){t=Math.max(t,e(this).css("height","").height())}).height(t)}},_activate:function(t){var n=this._findActive(t)[0];if(n===this.active[0]){return}n=n||this.active[0];this._eventHandler({target:n,currentTarget:n,preventDefault:e.noop})},_findActive:function(t){return typeof t==="number"?this.headers.eq(t):e()},_setupEvents:function(t){var n={keydown:"_keydown"};if(t){e.each(t.split(" "),function(e,t){n[t]="_eventHandler"})}this._off(this.headers.add(this.headers.next()));this._on(this.headers,n);this._on(this.headers.next(),{keydown:"_panelKeyDown"});this._hoverable(this.headers);this._focusable(this.headers)},_eventHandler:function(t){var n=this.options,r=this.active,i=e(t.currentTarget),s=i[0]===r[0],o=s&&n.collapsible,u=o?e():i.next(),a=r.next(),f={oldHeader:r,oldPanel:a,newHeader:o?e():i,newPanel:u};t.preventDefault();if(s&&!n.collapsible||this._trigger("beforeActivate",t,f)===false){return}n.active=o?false:this.headers.index(i);this.active=s?e():i;this._toggle(f);r.removeClass("ui-accordion-header-active ui-state-active");if(n.icons){r.children(".ui-accordion-header-icon").removeClass(n.icons.activeHeader).addClass(n.icons.header)}if(!s){i.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top");if(n.icons){i.children(".ui-accordion-header-icon").removeClass(n.icons.header).addClass(n.icons.activeHeader)}i.next().addClass("ui-accordion-content-active")}},_toggle:function(t){var n=t.newPanel,r=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(true,true);this.prevShow=n;this.prevHide=r;if(this.options.animate){this._animate(n,r,t)}else{r.hide();n.show();this._toggleComplete(t)}r.attr({"aria-hidden":"true"});r.prev().attr("aria-selected","false");if(n.length&&r.length){r.prev().attr({tabIndex:-1,"aria-expanded":"false"})}else if(n.length){this.headers.filter(function(){return e(this).attr("tabIndex")===0}).attr("tabIndex",-1)}n.attr("aria-hidden","false").prev().attr({"aria-selected":"true",tabIndex:0,"aria-expanded":"true"})},_animate:function(e,t,n){var s,o,u,a=this,f=0,l=e.length&&(!t.length||e.index()<t.index()),c=this.options.animate||{},h=l&&c.down||c,p=function(){a._toggleComplete(n)};if(typeof h==="number"){u=h}if(typeof h==="string"){o=h}o=o||h.easing||c.easing;u=u||h.duration||c.duration;if(!t.length){return e.animate(i,u,o,p)}if(!e.length){return t.animate(r,u,o,p)}s=e.show().outerHeight();t.animate(r,{duration:u,easing:o,step:function(e,t){t.now=Math.round(e)}});e.hide().animate(i,{duration:u,easing:o,complete:p,step:function(e,n){n.now=Math.round(e);if(n.prop!=="height"){f+=n.now}else if(a.options.heightStyle!=="content"){n.now=Math.round(s-t.outerHeight()-f);f=0}}})},_toggleComplete:function(e){var t=e.oldPanel;t.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all");if(t.length){t.parent()[0].className=t.parent()[0].className}this._trigger("activate",null,e)}})})(jQuery);(function(e,t){e.widget("ui.autocomplete",{version:"1.10.4",defaultElement:"<input>",options:{appendTo:null,autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var t,n,r,i=this.element[0].nodeName.toLowerCase(),s=i==="textarea",o=i==="input";this.isMultiLine=s?true:o?false:this.element.prop("isContentEditable");this.valueMethod=this.element[s||o?"val":"text"];this.isNewMenu=true;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off");this._on(this.element,{keydown:function(i){if(this.element.prop("readOnly")){t=true;r=true;n=true;return}t=false;r=false;n=false;var s=e.ui.keyCode;switch(i.keyCode){case s.PAGE_UP:t=true;this._move("previousPage",i);break;case s.PAGE_DOWN:t=true;this._move("nextPage",i);break;case s.UP:t=true;this._keyEvent("previous",i);break;case s.DOWN:t=true;this._keyEvent("next",i);break;case s.ENTER:case s.NUMPAD_ENTER:if(this.menu.active){t=true;i.preventDefault();this.menu.select(i)}break;case s.TAB:if(this.menu.active){this.menu.select(i)}break;case s.ESCAPE:if(this.menu.element.is(":visible")){this._value(this.term);this.close(i);i.preventDefault()}break;default:n=true;this._searchTimeout(i);break}},keypress:function(r){if(t){t=false;if(!this.isMultiLine||this.menu.element.is(":visible")){r.preventDefault()}return}if(n){return}var i=e.ui.keyCode;switch(r.keyCode){case i.PAGE_UP:this._move("previousPage",r);break;case i.PAGE_DOWN:this._move("nextPage",r);break;case i.UP:this._keyEvent("previous",r);break;case i.DOWN:this._keyEvent("next",r);break}},input:function(e){if(r){r=false;e.preventDefault();return}this._searchTimeout(e)},focus:function(){this.selectedItem=null;this.previous=this._value()},blur:function(e){if(this.cancelBlur){delete this.cancelBlur;return}clearTimeout(this.searching);this.close(e);this._change(e)}});this._initSource();this.menu=e("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().data("ui-menu");this._on(this.menu.element,{mousedown:function(t){t.preventDefault();this.cancelBlur=true;this._delay(function(){delete this.cancelBlur});var n=this.menu.element[0];if(!e(t.target).closest(".ui-menu-item").length){this._delay(function(){var t=this;this.document.one("mousedown",function(r){if(r.target!==t.element[0]&&r.target!==n&&!e.contains(n,r.target)){t.close()}})})}},menufocus:function(t,n){if(this.isNewMenu){this.isNewMenu=false;if(t.originalEvent&&/^mouse/.test(t.originalEvent.type)){this.menu.blur();this.document.one("mousemove",function(){e(t.target).trigger(t.originalEvent)});return}}var r=n.item.data("ui-autocomplete-item");if(false!==this._trigger("focus",t,{item:r})){if(t.originalEvent&&/^key/.test(t.originalEvent.type)){this._value(r.value)}}else{this.liveRegion.text(r.value)}},menuselect:function(e,t){var n=t.item.data("ui-autocomplete-item"),r=this.previous;if(this.element[0]!==this.document[0].activeElement){this.element.focus();this.previous=r;this._delay(function(){this.previous=r;this.selectedItem=n})}if(false!==this._trigger("select",e,{item:n})){this._value(n.value)}this.term=this._value();this.close(e);this.selectedItem=n}});this.liveRegion=e("<span>",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertBefore(this.element);this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching);this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete");this.menu.element.remove();this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t);if(e==="source"){this._initSource()}if(e==="appendTo"){this.menu.element.appendTo(this._appendTo())}if(e==="disabled"&&t&&this.xhr){this.xhr.abort()}},_appendTo:function(){var t=this.options.appendTo;if(t){t=t.jquery||t.nodeType?e(t):this.document.find(t).eq(0)}if(!t){t=this.element.closest(".ui-front")}if(!t.length){t=this.document[0].body}return t},_initSource:function(){var t,n,r=this;if(e.isArray(this.options.source)){t=this.options.source;this.source=function(n,r){r(e.ui.autocomplete.filter(t,n.term))}}else if(typeof this.options.source==="string"){n=this.options.source;this.source=function(t,i){if(r.xhr){r.xhr.abort()}r.xhr=e.ajax({url:n,data:t,dataType:"json",success:function(e){i(e)},error:function(){i([])}})}}else{this.source=this.options.source}},_searchTimeout:function(e){clearTimeout(this.searching);this.searching=this._delay(function(){if(this.term!==this._value()){this.selectedItem=null;this.search(null,e)}},this.options.delay)},search:function(e,t){e=e!=null?e:this._value();this.term=this._value();if(e.length<this.options.minLength){return this.close(t)}if(this._trigger("search",t)===false){return}return this._search(e)},_search:function(e){this.pending++;this.element.addClass("ui-autocomplete-loading");this.cancelSearch=false;this.source({term:e},this._response())},_response:function(){var t=++this.requestIndex;return e.proxy(function(e){if(t===this.requestIndex){this.__response(e)}this.pending--;if(!this.pending){this.element.removeClass("ui-autocomplete-loading")}},this)},__response:function(e){if(e){e=this._normalize(e)}this._trigger("response",null,{content:e});if(!this.options.disabled&&e&&e.length&&!this.cancelSearch){this._suggest(e);this._trigger("open")}else{this._close()}},close:function(e){this.cancelSearch=true;this._close(e)},_close:function(e){if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.blur();this.isNewMenu=true;this._trigger("close",e)}},_change:function(e){if(this.previous!==this._value()){this._trigger("change",e,{item:this.selectedItem})}},_normalize:function(t){if(t.length&&t[0].label&&t[0].value){return t}return e.map(t,function(t){if(typeof t==="string"){return{label:t,value:t}}return e.extend({label:t.label||t.value,value:t.value||t.label},t)})},_suggest:function(t){var n=this.menu.element.empty();this._renderMenu(n,t);this.isNewMenu=true;this.menu.refresh();n.show();this._resizeMenu();n.position(e.extend({of:this.element},this.options.position));if(this.options.autoFocus){this.menu.next()}},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,n){var r=this;e.each(n,function(e,n){r._renderItemData(t,n)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(t,n){return e("<li>").append(e("<a>").text(n.label)).appendTo(t)},_move:function(e,t){if(!this.menu.element.is(":visible")){this.search(null,t);return}if(this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)){this._value(this.term);this.menu.blur();return}this.menu[e](t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){if(!this.isMultiLine||this.menu.element.is(":visible")){this._move(e,t);t.preventDefault()}}});e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,n){var r=new RegExp(e.ui.autocomplete.escapeRegex(n),"i");return e.grep(t,function(e){return r.test(e.label||e.value||e)})}});e.widget("ui.autocomplete",e.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments);if(this.options.disabled||this.cancelSearch){return}if(e&&e.length){t=this.options.messages.results(e.length)}else{t=this.options.messages.noResults}this.liveRegion.text(t)}})})(jQuery);(function(e,t){var n,r="ui-button ui-widget ui-state-default ui-corner-all",i="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",s=function(){var t=e(this);setTimeout(function(){t.find(":ui-button").button("refresh")},1)},o=function(t){var n=t.name,r=t.form,i=e([]);if(n){n=n.replace(/'/g,"\\'");if(r){i=e(r).find("[name='"+n+"']")}else{i=e("[name='"+n+"']",t.ownerDocument).filter(function(){return!this.form})}}return i};e.widget("ui.button",{version:"1.10.4",defaultElement:"<button>",options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,s);if(typeof this.options.disabled!=="boolean"){this.options.disabled=!!this.element.prop("disabled")}else{this.element.prop("disabled",this.options.disabled)}this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var t=this,i=this.options,u=this.type==="checkbox"||this.type==="radio",a=!u?"ui-state-active":"";if(i.label===null){i.label=this.type==="input"?this.buttonElement.val():this.buttonElement.html()}this._hoverable(this.buttonElement);this.buttonElement.addClass(r).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){if(i.disabled){return}if(this===n){e(this).addClass("ui-state-active")}}).bind("mouseleave"+this.eventNamespace,function(){if(i.disabled){return}e(this).removeClass(a)}).bind("click"+this.eventNamespace,function(e){if(i.disabled){e.preventDefault();e.stopImmediatePropagation()}});this._on({focus:function(){this.buttonElement.addClass("ui-state-focus")},blur:function(){this.buttonElement.removeClass("ui-state-focus")}});if(u){this.element.bind("change"+this.eventNamespace,function(){t.refresh()})}if(this.type==="checkbox"){this.buttonElement.bind("click"+this.eventNamespace,function(){if(i.disabled){return false}})}else if(this.type==="radio"){this.buttonElement.bind("click"+this.eventNamespace,function(){if(i.disabled){return false}e(this).addClass("ui-state-active");t.buttonElement.attr("aria-pressed","true");var n=t.element[0];o(n).not(n).map(function(){return e(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")})}else{this.buttonElement.bind("mousedown"+this.eventNamespace,function(){if(i.disabled){return false}e(this).addClass("ui-state-active");n=this;t.document.one("mouseup",function(){n=null})}).bind("mouseup"+this.eventNamespace,function(){if(i.disabled){return false}e(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(t){if(i.disabled){return false}if(t.keyCode===e.ui.keyCode.SPACE||t.keyCode===e.ui.keyCode.ENTER){e(this).addClass("ui-state-active")}}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){e(this).removeClass("ui-state-active")});if(this.buttonElement.is("a")){this.buttonElement.keyup(function(t){if(t.keyCode===e.ui.keyCode.SPACE){e(this).click()}})}}this._setOption("disabled",i.disabled);this._resetButton()},_determineButtonType:function(){var e,t,n;if(this.element.is("[type=checkbox]")){this.type="checkbox"}else if(this.element.is("[type=radio]")){this.type="radio"}else if(this.element.is("input")){this.type="input"}else{this.type="button"}if(this.type==="checkbox"||this.type==="radio"){e=this.element.parents().last();t="label[for='"+this.element.attr("id")+"']";this.buttonElement=e.find(t);if(!this.buttonElement.length){e=e.length?e.siblings():this.element.siblings();this.buttonElement=e.filter(t);if(!this.buttonElement.length){this.buttonElement=e.find(t)}}this.element.addClass("ui-helper-hidden-accessible");n=this.element.is(":checked");if(n){this.buttonElement.addClass("ui-state-active")}this.buttonElement.prop("aria-pressed",n)}else{this.buttonElement=this.element}},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass(r+" ui-state-active "+i).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());if(!this.hasTitle){this.buttonElement.removeAttr("title")}},_setOption:function(e,t){this._super(e,t);if(e==="disabled"){this.element.prop("disabled",!!t);if(t){this.buttonElement.removeClass("ui-state-focus")}return}this._resetButton()},refresh:function(){var t=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");if(t!==this.options.disabled){this._setOption("disabled",t)}if(this.type==="radio"){o(this.element[0]).each(function(){if(e(this).is(":checked")){e(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true")}else{e(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}})}else if(this.type==="checkbox"){if(this.element.is(":checked")){this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true")}else{this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false")}}},_resetButton:function(){if(this.type==="input"){if(this.options.label){this.element.val(this.options.label)}return}var t=this.buttonElement.removeClass(i),n=e("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(t.empty()).text(),r=this.options.icons,s=r.primary&&r.secondary,o=[];if(r.primary||r.secondary){if(this.options.text){o.push("ui-button-text-icon"+(s?"s":r.primary?"-primary":"-secondary"))}if(r.primary){t.prepend("<span class='ui-button-icon-primary ui-icon "+r.primary+"'></span>")}if(r.secondary){t.append("<span class='ui-button-icon-secondary ui-icon "+r.secondary+"'></span>")}if(!this.options.text){o.push(s?"ui-button-icons-only":"ui-button-icon-only");if(!this.hasTitle){t.attr("title",e.trim(n))}}}else{o.push("ui-button-text-only")}t.addClass(o.join(" "))}});e.widget("ui.buttonset",{version:"1.10.4",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(e,t){if(e==="disabled"){this.buttons.button("option",e,t)}this._super(e,t)},refresh:function(){var t=this.element.css("direction")==="rtl";this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return e(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(t?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(t?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return e(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}})})(jQuery);(function(e,t){function i(){this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false,disabled:false};e.extend(this._defaults,this.regional[""]);this.dpDiv=s(e("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function s(t){var n="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.delegate(n,"mouseout",function(){e(this).removeClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!==-1){e(this).removeClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!==-1){e(this).removeClass("ui-datepicker-next-hover")}}).delegate(n,"mouseover",function(){if(!e.datepicker._isDisabledDatepicker(r.inline?t.parent()[0]:r.input[0])){e(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");e(this).addClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!==-1){e(this).addClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!==-1){e(this).addClass("ui-datepicker-next-hover")}}})}function o(t,n){e.extend(t,n);for(var r in n){if(n[r]==null){t[r]=n[r]}}return t}e.extend(e.ui,{datepicker:{version:"1.10.4"}});var n="datepicker",r;e.extend(i.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){o(this._defaults,e||{});return this},_attachDatepicker:function(t,n){var r,i,s;r=t.nodeName.toLowerCase();i=r==="div"||r==="span";if(!t.id){this.uuid+=1;t.id="dp"+this.uuid}s=this._newInst(e(t),i);s.settings=e.extend({},n||{});if(r==="input"){this._connectDatepicker(t,s)}else if(i){this._inlineDatepicker(t,s)}},_newInst:function(t,n){var r=t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:r,input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:n,dpDiv:!n?this.dpDiv:s(e("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}},_connectDatepicker:function(t,r){var i=e(t);r.append=e([]);r.trigger=e([]);if(i.hasClass(this.markerClassName)){return}this._attachments(i,r);i.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp);this._autoSize(r);e.data(t,n,r);if(r.settings.disabled){this._disableDatepicker(t)}},_attachments:function(t,n){var r,i,s,o=this._get(n,"appendText"),u=this._get(n,"isRTL");if(n.append){n.append.remove()}if(o){n.append=e("<span class='"+this._appendClass+"'>"+o+"</span>");t[u?"before":"after"](n.append)}t.unbind("focus",this._showDatepicker);if(n.trigger){n.trigger.remove()}r=this._get(n,"showOn");if(r==="focus"||r==="both"){t.focus(this._showDatepicker)}if(r==="button"||r==="both"){i=this._get(n,"buttonText");s=this._get(n,"buttonImage");n.trigger=e(this._get(n,"buttonImageOnly")?e("<img/>").addClass(this._triggerClass).attr({src:s,alt:i,title:i}):e("<button type='button'></button>").addClass(this._triggerClass).html(!s?i:e("<img/>").attr({src:s,alt:i,title:i})));t[u?"before":"after"](n.trigger);n.trigger.click(function(){if(e.datepicker._datepickerShowing&&e.datepicker._lastInput===t[0]){e.datepicker._hideDatepicker()}else if(e.datepicker._datepickerShowing&&e.datepicker._lastInput!==t[0]){e.datepicker._hideDatepicker();e.datepicker._showDatepicker(t[0])}else{e.datepicker._showDatepicker(t[0])}return false})}},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,n,r,i,s=new Date(2009,12-1,20),o=this._get(e,"dateFormat");if(o.match(/[DM]/)){t=function(e){n=0;r=0;for(i=0;i<e.length;i++){if(e[i].length>n){n=e[i].length;r=i}}return r};s.setMonth(t(this._get(e,o.match(/MM/)?"monthNames":"monthNamesShort")));s.setDate(t(this._get(e,o.match(/DD/)?"dayNames":"dayNamesShort"))+20-s.getDay())}e.input.attr("size",this._formatDate(e,s).length)}},_inlineDatepicker:function(t,r){var i=e(t);if(i.hasClass(this.markerClassName)){return}i.addClass(this.markerClassName).append(r.dpDiv);e.data(t,n,r);this._setDate(r,this._getDefaultDate(r),true);this._updateDatepicker(r);this._updateAlternate(r);if(r.settings.disabled){this._disableDatepicker(t)}r.dpDiv.css("display","block")},_dialogDatepicker:function(t,r,i,s,u){var a,f,l,c,h,p=this._dialogInst;if(!p){this.uuid+=1;a="dp"+this.uuid;this._dialogInput=e("<input type='text' id='"+a+"' style='position: absolute; top: -100px; width: 0px;'/>");this._dialogInput.keydown(this._doKeyDown);e("body").append(this._dialogInput);p=this._dialogInst=this._newInst(this._dialogInput,false);p.settings={};e.data(this._dialogInput[0],n,p)}o(p.settings,s||{});r=r&&r.constructor===Date?this._formatDate(p,r):r;this._dialogInput.val(r);this._pos=u?u.length?u:[u.pageX,u.pageY]:null;if(!this._pos){f=document.documentElement.clientWidth;l=document.documentElement.clientHeight;c=document.documentElement.scrollLeft||document.body.scrollLeft;h=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[f/2-100+c,l/2-150+h]}this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");p.settings.onSelect=i;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if(e.blockUI){e.blockUI(this.dpDiv)}e.data(this._dialogInput[0],n,p);return this},_destroyDatepicker:function(t){var r,i=e(t),s=e.data(t,n);if(!i.hasClass(this.markerClassName)){return}r=t.nodeName.toLowerCase();e.removeData(t,n);if(r==="input"){s.append.remove();s.trigger.remove();i.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else if(r==="div"||r==="span"){i.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(t){var r,i,s=e(t),o=e.data(t,n);if(!s.hasClass(this.markerClassName)){return}r=t.nodeName.toLowerCase();if(r==="input"){t.disabled=false;o.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(r==="div"||r==="span"){i=s.children("."+this._inlineClass);i.children().removeClass("ui-state-disabled");i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",false)}this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e})},_disableDatepicker:function(t){var r,i,s=e(t),o=e.data(t,n);if(!s.hasClass(this.markerClassName)){return}r=t.nodeName.toLowerCase();if(r==="input"){t.disabled=true;o.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(r==="div"||r==="span"){i=s.children("."+this._inlineClass);i.children().addClass("ui-state-disabled");i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",true)}this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e});this._disabledInputs[this._disabledInputs.length]=t},_isDisabledDatepicker:function(e){if(!e){return false}for(var t=0;t<this._disabledInputs.length;t++){if(this._disabledInputs[t]===e){return true}}return false},_getInst:function(t){try{return e.data(t,n)}catch(r){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(n,r,i){var s,u,a,f,l=this._getInst(n);if(arguments.length===2&&typeof r==="string"){return r==="defaults"?e.extend({},e.datepicker._defaults):l?r==="all"?e.extend({},l.settings):this._get(l,r):null}s=r||{};if(typeof r==="string"){s={};s[r]=i}if(l){if(this._curInst===l){this._hideDatepicker()}u=this._getDateDatepicker(n,true);a=this._getMinMaxDate(l,"min");f=this._getMinMaxDate(l,"max");o(l.settings,s);if(a!==null&&s.dateFormat!==t&&s.minDate===t){l.settings.minDate=this._formatDate(l,a)}if(f!==null&&s.dateFormat!==t&&s.maxDate===t){l.settings.maxDate=this._formatDate(l,f)}if("disabled"in s){if(s.disabled){this._disableDatepicker(n)}else{this._enableDatepicker(n)}}this._attachments(e(n),l);this._autoSize(l);this._setDate(l,u);this._updateAlternate(l);this._updateDatepicker(l)}},_changeDatepicker:function(e,t,n){this._optionDatepicker(e,t,n)},_refreshDatepicker:function(e){var t=this._getInst(e);if(t){this._updateDatepicker(t)}},_setDateDatepicker:function(e,t){var n=this._getInst(e);if(n){this._setDate(n,t);this._updateDatepicker(n);this._updateAlternate(n)}},_getDateDatepicker:function(e,t){var n=this._getInst(e);if(n&&!n.inline){this._setDateFromField(n,t)}return n?this._getDate(n):null},_doKeyDown:function(t){var n,r,i,s=e.datepicker._getInst(t.target),o=true,u=s.dpDiv.is(".ui-datepicker-rtl");s._keyEvent=true;if(e.datepicker._datepickerShowing){switch(t.keyCode){case 9:e.datepicker._hideDatepicker();o=false;break;case 13:i=e("td."+e.datepicker._dayOverClass+":not(."+e.datepicker._currentClass+")",s.dpDiv);if(i[0]){e.datepicker._selectDay(t.target,s.selectedMonth,s.selectedYear,i[0])}n=e.datepicker._get(s,"onSelect");if(n){r=e.datepicker._formatDate(s);n.apply(s.input?s.input[0]:null,[r,s])}else{e.datepicker._hideDatepicker()}return false;case 27:e.datepicker._hideDatepicker();break;case 33:e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(s,"stepBigMonths"):-e.datepicker._get(s,"stepMonths"),"M");break;case 34:e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(s,"stepBigMonths"):+e.datepicker._get(s,"stepMonths"),"M");break;case 35:if(t.ctrlKey||t.metaKey){e.datepicker._clearDate(t.target)}o=t.ctrlKey||t.metaKey;break;case 36:if(t.ctrlKey||t.metaKey){e.datepicker._gotoToday(t.target)}o=t.ctrlKey||t.metaKey;break;case 37:if(t.ctrlKey||t.metaKey){e.datepicker._adjustDate(t.target,u?+1:-1,"D")}o=t.ctrlKey||t.metaKey;if(t.originalEvent.altKey){e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(s,"stepBigMonths"):-e.datepicker._get(s,"stepMonths"),"M")}break;case 38:if(t.ctrlKey||t.metaKey){e.datepicker._adjustDate(t.target,-7,"D")}o=t.ctrlKey||t.metaKey;break;case 39:if(t.ctrlKey||t.metaKey){e.datepicker._adjustDate(t.target,u?-1:+1,"D")}o=t.ctrlKey||t.metaKey;if(t.originalEvent.altKey){e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(s,"stepBigMonths"):+e.datepicker._get(s,"stepMonths"),"M")}break;case 40:if(t.ctrlKey||t.metaKey){e.datepicker._adjustDate(t.target,+7,"D")}o=t.ctrlKey||t.metaKey;break;default:o=false}}else if(t.keyCode===36&&t.ctrlKey){e.datepicker._showDatepicker(this)}else{o=false}if(o){t.preventDefault();t.stopPropagation()}},_doKeyPress:function(t){var n,r,i=e.datepicker._getInst(t.target);if(e.datepicker._get(i,"constrainInput")){n=e.datepicker._possibleChars(e.datepicker._get(i,"dateFormat"));r=String.fromCharCode(t.charCode==null?t.keyCode:t.charCode);return t.ctrlKey||t.metaKey||r<" "||!n||n.indexOf(r)>-1}},_doKeyUp:function(t){var n,r=e.datepicker._getInst(t.target);if(r.input.val()!==r.lastVal){try{n=e.datepicker.parseDate(e.datepicker._get(r,"dateFormat"),r.input?r.input.val():null,e.datepicker._getFormatConfig(r));if(n){e.datepicker._setDateFromField(r);e.datepicker._updateAlternate(r);e.datepicker._updateDatepicker(r)}}catch(i){}}return true},_showDatepicker:function(t){t=t.target||t;if(t.nodeName.toLowerCase()!=="input"){t=e("input",t.parentNode)[0]}if(e.datepicker._isDisabledDatepicker(t)||e.datepicker._lastInput===t){return}var n,r,i,s,u,a,f;n=e.datepicker._getInst(t);if(e.datepicker._curInst&&e.datepicker._curInst!==n){e.datepicker._curInst.dpDiv.stop(true,true);if(n&&e.datepicker._datepickerShowing){e.datepicker._hideDatepicker(e.datepicker._curInst.input[0])}}r=e.datepicker._get(n,"beforeShow");i=r?r.apply(t,[t,n]):{};if(i===false){return}o(n.settings,i);n.lastVal=null;e.datepicker._lastInput=t;e.datepicker._setDateFromField(n);if(e.datepicker._inDialog){t.value=""}if(!e.datepicker._pos){e.datepicker._pos=e.datepicker._findPos(t);e.datepicker._pos[1]+=t.offsetHeight}s=false;e(t).parents().each(function(){s|=e(this).css("position")==="fixed";return!s});u={left:e.datepicker._pos[0],top:e.datepicker._pos[1]};e.datepicker._pos=null;n.dpDiv.empty();n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});e.datepicker._updateDatepicker(n);u=e.datepicker._checkOffset(n,u,s);n.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":s?"fixed":"absolute",display:"none",left:u.left+"px",top:u.top+"px"});if(!n.inline){a=e.datepicker._get(n,"showAnim");f=e.datepicker._get(n,"duration");n.dpDiv.zIndex(e(t).zIndex()+1);e.datepicker._datepickerShowing=true;if(e.effects&&e.effects.effect[a]){n.dpDiv.show(a,e.datepicker._get(n,"showOptions"),f)}else{n.dpDiv[a||"show"](a?f:null)}if(e.datepicker._shouldFocusInput(n)){n.input.focus()}e.datepicker._curInst=n}},_updateDatepicker:function(t){this.maxRows=4;r=t;t.dpDiv.empty().append(this._generateHTML(t));this._attachHandlers(t);t.dpDiv.find("."+this._dayOverClass+" a").mouseover();var n,i=this._getNumberOfMonths(t),s=i[1],o=17;t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");if(s>1){t.dpDiv.addClass("ui-datepicker-multi-"+s).css("width",o*s+"em")}t.dpDiv[(i[0]!==1||i[1]!==1?"add":"remove")+"Class"]("ui-datepicker-multi");t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");if(t===e.datepicker._curInst&&e.datepicker._datepickerShowing&&e.datepicker._shouldFocusInput(t)){t.input.focus()}if(t.yearshtml){n=t.yearshtml;setTimeout(function(){if(n===t.yearshtml&&t.yearshtml){t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml)}n=t.yearshtml=null},0)}},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(t,n,r){var i=t.dpDiv.outerWidth(),s=t.dpDiv.outerHeight(),o=t.input?t.input.outerWidth():0,u=t.input?t.input.outerHeight():0,a=document.documentElement.clientWidth+(r?0:e(document).scrollLeft()),f=document.documentElement.clientHeight+(r?0:e(document).scrollTop());n.left-=this._get(t,"isRTL")?i-o:0;n.left-=r&&n.left===t.input.offset().left?e(document).scrollLeft():0;n.top-=r&&n.top===t.input.offset().top+u?e(document).scrollTop():0;n.left-=Math.min(n.left,n.left+i>a&&a>i?Math.abs(n.left+i-a):0);n.top-=Math.min(n.top,n.top+s>f&&f>s?Math.abs(s+u):0);return n},_findPos:function(t){var n,r=this._getInst(t),i=this._get(r,"isRTL");while(t&&(t.type==="hidden"||t.nodeType!==1||e.expr.filters.hidden(t))){t=t[i?"previousSibling":"nextSibling"]}n=e(t).offset();return[n.left,n.top]},_hideDatepicker:function(t){var r,i,s,o,u=this._curInst;if(!u||t&&u!==e.data(t,n)){return}if(this._datepickerShowing){r=this._get(u,"showAnim");i=this._get(u,"duration");s=function(){e.datepicker._tidyDialog(u)};if(e.effects&&(e.effects.effect[r]||e.effects[r])){u.dpDiv.hide(r,e.datepicker._get(u,"showOptions"),i,s)}else{u.dpDiv[r==="slideDown"?"slideUp":r==="fadeIn"?"fadeOut":"hide"](r?i:null,s)}if(!r){s()}this._datepickerShowing=false;o=this._get(u,"onClose");if(o){o.apply(u.input?u.input[0]:null,[u.input?u.input.val():"",u])}this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(e.blockUI){e.unblockUI();e("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(!e.datepicker._curInst){return}var n=e(t.target),r=e.datepicker._getInst(n[0]);if(n[0].id!==e.datepicker._mainDivId&&n.parents("#"+e.datepicker._mainDivId).length===0&&!n.hasClass(e.datepicker.markerClassName)&&!n.closest("."+e.datepicker._triggerClass).length&&e.datepicker._datepickerShowing&&!(e.datepicker._inDialog&&e.blockUI)||n.hasClass(e.datepicker.markerClassName)&&e.datepicker._curInst!==r){e.datepicker._hideDatepicker()}},_adjustDate:function(t,n,r){var i=e(t),s=this._getInst(i[0]);if(this._isDisabledDatepicker(i[0])){return}this._adjustInstDate(s,n+(r==="M"?this._get(s,"showCurrentAtPos"):0),r);this._updateDatepicker(s)},_gotoToday:function(t){var n,r=e(t),i=this._getInst(r[0]);if(this._get(i,"gotoCurrent")&&i.currentDay){i.selectedDay=i.currentDay;i.drawMonth=i.selectedMonth=i.currentMonth;i.drawYear=i.selectedYear=i.currentYear}else{n=new Date;i.selectedDay=n.getDate();i.drawMonth=i.selectedMonth=n.getMonth();i.drawYear=i.selectedYear=n.getFullYear()}this._notifyChange(i);this._adjustDate(r)},_selectMonthYear:function(t,n,r){var i=e(t),s=this._getInst(i[0]);s["selected"+(r==="M"?"Month":"Year")]=s["draw"+(r==="M"?"Month":"Year")]=parseInt(n.options[n.selectedIndex].value,10);this._notifyChange(s);this._adjustDate(i)},_selectDay:function(t,n,r,i){var s,o=e(t);if(e(i).hasClass(this._unselectableClass)||this._isDisabledDatepicker(o[0])){return}s=this._getInst(o[0]);s.selectedDay=s.currentDay=e("a",i).html();s.selectedMonth=s.currentMonth=n;s.selectedYear=s.currentYear=r;this._selectDate(t,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear))},_clearDate:function(t){var n=e(t);this._selectDate(n,"")},_selectDate:function(t,n){var r,i=e(t),s=this._getInst(i[0]);n=n!=null?n:this._formatDate(s);if(s.input){s.input.val(n)}this._updateAlternate(s);r=this._get(s,"onSelect");if(r){r.apply(s.input?s.input[0]:null,[n,s])}else if(s.input){s.input.trigger("change")}if(s.inline){this._updateDatepicker(s)}else{this._hideDatepicker();this._lastInput=s.input[0];if(typeof s.input[0]!=="object"){s.input.focus()}this._lastInput=null}},_updateAlternate:function(t){var n,r,i,s=this._get(t,"altField");if(s){n=this._get(t,"altFormat")||this._get(t,"dateFormat");r=this._getDate(t);i=this.formatDate(n,r,this._getFormatConfig(t));e(s).each(function(){e(this).val(i)})}},noWeekends:function(e){var t=e.getDay();return[t>0&&t<6,""]},iso8601Week:function(e){var t,n=new Date(e.getTime());n.setDate(n.getDate()+4-(n.getDay()||7));t=n.getTime();n.setMonth(0);n.setDate(1);return Math.floor(Math.round((t-n)/864e5)/7)+1},parseDate:function(t,n,r){if(t==null||n==null){throw"Invalid arguments"}n=typeof n==="object"?n.toString():n+"";if(n===""){return null}var i,s,o,u=0,a=(r?r.shortYearCutoff:null)||this._defaults.shortYearCutoff,f=typeof a!=="string"?a:(new Date).getFullYear()%100+parseInt(a,10),l=(r?r.dayNamesShort:null)||this._defaults.dayNamesShort,c=(r?r.dayNames:null)||this._defaults.dayNames,h=(r?r.monthNamesShort:null)||this._defaults.monthNamesShort,p=(r?r.monthNames:null)||this._defaults.monthNames,d=-1,v=-1,m=-1,g=-1,y=false,b,w=function(e){var n=i+1<t.length&&t.charAt(i+1)===e;if(n){i++}return n},E=function(e){var t=w(e),r=e==="@"?14:e==="!"?20:e==="y"&&t?4:e==="o"?3:2,i=new RegExp("^\\d{1,"+r+"}"),s=n.substring(u).match(i);if(!s){throw"Missing number at position "+u}u+=s[0].length;return parseInt(s[0],10)},S=function(t,r,i){var s=-1,o=e.map(w(t)?i:r,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});e.each(o,function(e,t){var r=t[1];if(n.substr(u,r.length).toLowerCase()===r.toLowerCase()){s=t[0];u+=r.length;return false}});if(s!==-1){return s+1}else{throw"Unknown name at position "+u}},x=function(){if(n.charAt(u)!==t.charAt(i)){throw"Unexpected literal at position "+u}u++};for(i=0;i<t.length;i++){if(y){if(t.charAt(i)==="'"&&!w("'")){y=false}else{x()}}else{switch(t.charAt(i)){case"d":m=E("d");break;case"D":S("D",l,c);break;case"o":g=E("o");break;case"m":v=E("m");break;case"M":v=S("M",h,p);break;case"y":d=E("y");break;case"@":b=new Date(E("@"));d=b.getFullYear();v=b.getMonth()+1;m=b.getDate();break;case"!":b=new Date((E("!")-this._ticksTo1970)/1e4);d=b.getFullYear();v=b.getMonth()+1;m=b.getDate();break;case"'":if(w("'")){x()}else{y=true}break;default:x()}}}if(u<n.length){o=n.substr(u);if(!/^\s+/.test(o)){throw"Extra/unparsed characters found in date: "+o}}if(d===-1){d=(new Date).getFullYear()}else if(d<100){d+=(new Date).getFullYear()-(new Date).getFullYear()%100+(d<=f?0:-100)}if(g>-1){v=1;m=g;do{s=this._getDaysInMonth(d,v-1);if(m<=s){break}v++;m-=s}while(true)}b=this._daylightSavingAdjust(new Date(d,v-1,m));if(b.getFullYear()!==d||b.getMonth()+1!==v||b.getDate()!==m){throw"Invalid date"}return b},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:((1970-1)*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*1e7,formatDate:function(e,t,n){if(!t){return""}var r,i=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,s=(n?n.dayNames:null)||this._defaults.dayNames,o=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,u=(n?n.monthNames:null)||this._defaults.monthNames,a=function(t){var n=r+1<e.length&&e.charAt(r+1)===t;if(n){r++}return n},f=function(e,t,n){var r=""+t;if(a(e)){while(r.length<n){r="0"+r}}return r},l=function(e,t,n,r){return a(e)?r[t]:n[t]},c="",h=false;if(t){for(r=0;r<e.length;r++){if(h){if(e.charAt(r)==="'"&&!a("'")){h=false}else{c+=e.charAt(r)}}else{switch(e.charAt(r)){case"d":c+=f("d",t.getDate(),2);break;case"D":c+=l("D",t.getDay(),i,s);break;case"o":c+=f("o",Math.round(((new Date(t.getFullYear(),t.getMonth(),t.getDate())).getTime()-(new Date(t.getFullYear(),0,0)).getTime())/864e5),3);break;case"m":c+=f("m",t.getMonth()+1,2);break;case"M":c+=l("M",t.getMonth(),o,u);break;case"y":c+=a("y")?t.getFullYear():(t.getYear()%100<10?"0":"")+t.getYear()%100;break;case"@":c+=t.getTime();break;case"!":c+=t.getTime()*1e4+this._ticksTo1970;break;case"'":if(a("'")){c+="'"}else{h=true}break;default:c+=e.charAt(r)}}}}return c},_possibleChars:function(e){var t,n="",r=false,i=function(n){var r=t+1<e.length&&e.charAt(t+1)===n;if(r){t++}return r};for(t=0;t<e.length;t++){if(r){if(e.charAt(t)==="'"&&!i("'")){r=false}else{n+=e.charAt(t)}}else{switch(e.charAt(t)){case"d":case"m":case"y":case"@":n+="0123456789";break;case"D":case"M":return null;case"'":if(i("'")){n+="'"}else{r=true}break;default:n+=e.charAt(t)}}}return n},_get:function(e,n){return e.settings[n]!==t?e.settings[n]:this._defaults[n]},_setDateFromField:function(e,t){if(e.input.val()===e.lastVal){return}var n=this._get(e,"dateFormat"),r=e.lastVal=e.input?e.input.val():null,i=this._getDefaultDate(e),s=i,o=this._getFormatConfig(e);try{s=this.parseDate(n,r,o)||i}catch(u){r=t?"":r}e.selectedDay=s.getDate();e.drawMonth=e.selectedMonth=s.getMonth();e.drawYear=e.selectedYear=s.getFullYear();e.currentDay=r?s.getDate():0;e.currentMonth=r?s.getMonth():0;e.currentYear=r?s.getFullYear():0;this._adjustInstDate(e)},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(t,n,r){var i=function(e){var t=new Date;t.setDate(t.getDate()+e);return t},s=function(n){try{return e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),n,e.datepicker._getFormatConfig(t))}catch(r){}var i=(n.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date,s=i.getFullYear(),o=i.getMonth(),u=i.getDate(),a=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,f=a.exec(n);while(f){switch(f[2]||"d"){case"d":case"D":u+=parseInt(f[1],10);break;case"w":case"W":u+=parseInt(f[1],10)*7;break;case"m":case"M":o+=parseInt(f[1],10);u=Math.min(u,e.datepicker._getDaysInMonth(s,o));break;case"y":case"Y":s+=parseInt(f[1],10);u=Math.min(u,e.datepicker._getDaysInMonth(s,o));break}f=a.exec(n)}return new Date(s,o,u)},o=n==null||n===""?r:typeof n==="string"?s(n):typeof n==="number"?isNaN(n)?r:i(n):new Date(n.getTime());o=o&&o.toString()==="Invalid Date"?r:o;if(o){o.setHours(0);o.setMinutes(0);o.setSeconds(0);o.setMilliseconds(0)}return this._daylightSavingAdjust(o)},_daylightSavingAdjust:function(e){if(!e){return null}e.setHours(e.getHours()>12?e.getHours()+2:0);return e},_setDate:function(e,t,n){var r=!t,i=e.selectedMonth,s=e.selectedYear,o=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=o.getDate();e.drawMonth=e.selectedMonth=e.currentMonth=o.getMonth();e.drawYear=e.selectedYear=e.currentYear=o.getFullYear();if((i!==e.selectedMonth||s!==e.selectedYear)&&!n){this._notifyChange(e)}this._adjustInstDate(e);if(e.input){e.input.val(r?"":this._formatDate(e))}},_getDate:function(e){var t=!e.currentYear||e.input&&e.input.val()===""?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return t},_attachHandlers:function(t){var n=this._get(t,"stepMonths"),r="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){e.datepicker._adjustDate(r,-n,"M")},next:function(){e.datepicker._adjustDate(r,+n,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(r)},selectDay:function(){e.datepicker._selectDay(r,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this);return false},selectMonth:function(){e.datepicker._selectMonthYear(r,this,"M");return false},selectYear:function(){e.datepicker._selectMonthYear(r,this,"Y");return false}};e(this).bind(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t,n,r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b,w,E,S,x,T,N,C,k,L,A,O,M,_,D,P,H,B,j,F,I,q=new Date,R=this._daylightSavingAdjust(new Date(q.getFullYear(),q.getMonth(),q.getDate())),U=this._get(e,"isRTL"),z=this._get(e,"showButtonPanel"),W=this._get(e,"hideIfNoPrevNext"),X=this._get(e,"navigationAsDateFormat"),V=this._getNumberOfMonths(e),$=this._get(e,"showCurrentAtPos"),J=this._get(e,"stepMonths"),K=V[0]!==1||V[1]!==1,Q=this._daylightSavingAdjust(!e.currentDay?new Date(9999,9,9):new Date(e.currentYear,e.currentMonth,e.currentDay)),G=this._getMinMaxDate(e,"min"),Y=this._getMinMaxDate(e,"max"),Z=e.drawMonth-$,et=e.drawYear;if(Z<0){Z+=12;et--}if(Y){t=this._daylightSavingAdjust(new Date(Y.getFullYear(),Y.getMonth()-V[0]*V[1]+1,Y.getDate()));t=G&&t<G?G:t;while(this._daylightSavingAdjust(new Date(et,Z,1))>t){Z--;if(Z<0){Z=11;et--}}}e.drawMonth=Z;e.drawYear=et;n=this._get(e,"prevText");n=!X?n:this.formatDate(n,this._daylightSavingAdjust(new Date(et,Z-J,1)),this._getFormatConfig(e));r=this._canAdjustMonth(e,-1,et,Z)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click'"+" title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(U?"e":"w")+"'>"+n+"</span></a>":W?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(U?"e":"w")+"'>"+n+"</span></a>";i=this._get(e,"nextText");i=!X?i:this.formatDate(i,this._daylightSavingAdjust(new Date(et,Z+J,1)),this._getFormatConfig(e));s=this._canAdjustMonth(e,+1,et,Z)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click'"+" title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(U?"w":"e")+"'>"+i+"</span></a>":W?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(U?"w":"e")+"'>"+i+"</span></a>";o=this._get(e,"currentText");u=this._get(e,"gotoCurrent")&&e.currentDay?Q:R;o=!X?o:this.formatDate(o,u,this._getFormatConfig(e));a=!e.inline?"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(e,"closeText")+"</button>":"";f=z?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(U?a:"")+(this._isInRange(e,u)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'"+">"+o+"</button>":"")+(U?"":a)+"</div>":"";l=parseInt(this._get(e,"firstDay"),10);l=isNaN(l)?0:l;c=this._get(e,"showWeek");h=this._get(e,"dayNames");p=this._get(e,"dayNamesMin");d=this._get(e,"monthNames");v=this._get(e,"monthNamesShort");m=this._get(e,"beforeShowDay");g=this._get(e,"showOtherMonths");y=this._get(e,"selectOtherMonths");b=this._getDefaultDate(e);w="";E;for(S=0;S<V[0];S++){x="";this.maxRows=4;for(T=0;T<V[1];T++){N=this._daylightSavingAdjust(new Date(et,Z,e.selectedDay));C=" ui-corner-all";k="";if(K){k+="<div class='ui-datepicker-group";if(V[1]>1){switch(T){case 0:k+=" ui-datepicker-group-first";C=" ui-corner-"+(U?"right":"left");break;case V[1]-1:k+=" ui-datepicker-group-last";C=" ui-corner-"+(U?"left":"right");break;default:k+=" ui-datepicker-group-middle";C="";break}}k+="'>"}k+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+C+"'>"+(/all|left/.test(C)&&S===0?U?s:r:"")+(/all|right/.test(C)&&S===0?U?r:s:"")+this._generateMonthYearHeader(e,Z,et,G,Y,S>0||T>0,d,v)+"</div><table class='ui-datepicker-calendar'><thead>"+"<tr>";L=c?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"";for(E=0;E<7;E++){A=(E+l)%7;L+="<th"+((E+l+6)%7>=5?" class='ui-datepicker-week-end'":"")+">"+"<span title='"+h[A]+"'>"+p[A]+"</span></th>"}k+=L+"</tr></thead><tbody>";O=this._getDaysInMonth(et,Z);if(et===e.selectedYear&&Z===e.selectedMonth){e.selectedDay=Math.min(e.selectedDay,O)}M=(this._getFirstDayOfMonth(et,Z)-l+7)%7;_=Math.ceil((M+O)/7);D=K?this.maxRows>_?this.maxRows:_:_;this.maxRows=D;P=this._daylightSavingAdjust(new Date(et,Z,1-M));for(H=0;H<D;H++){k+="<tr>";B=!c?"":"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(P)+"</td>";for(E=0;E<7;E++){j=m?m.apply(e.input?e.input[0]:null,[P]):[true,""];F=P.getMonth()!==Z;I=F&&!y||!j[0]||G&&P<G||Y&&P>Y;B+="<td class='"+((E+l+6)%7>=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(P.getTime()===N.getTime()&&Z===e.selectedMonth&&e._keyEvent||b.getTime()===P.getTime()&&b.getTime()===N.getTime()?" "+this._dayOverClass:"")+(I?" "+this._unselectableClass+" ui-state-disabled":"")+(F&&!g?"":" "+j[1]+(P.getTime()===Q.getTime()?" "+this._currentClass:"")+(P.getTime()===R.getTime()?" ui-datepicker-today":""))+"'"+((!F||g)&&j[2]?" title='"+j[2].replace(/'/g,"'")+"'":"")+(I?"":" data-handler='selectDay' data-event='click' data-month='"+P.getMonth()+"' data-year='"+P.getFullYear()+"'")+">"+(F&&!g?" ":I?"<span class='ui-state-default'>"+P.getDate()+"</span>":"<a class='ui-state-default"+(P.getTime()===R.getTime()?" ui-state-highlight":"")+(P.getTime()===Q.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+"' href='#'>"+P.getDate()+"</a>")+"</td>";P.setDate(P.getDate()+1);P=this._daylightSavingAdjust(P)}k+=B+"</tr>"}Z++;if(Z>11){Z=0;et++}k+="</tbody></table>"+(K?"</div>"+(V[0]>0&&T===V[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"");x+=k}w+=x}w+=f;e._keyEvent=false;return w},_generateMonthYearHeader:function(e,t,n,r,i,s,o,u){var a,f,l,c,h,p,d,v,m=this._get(e,"changeMonth"),g=this._get(e,"changeYear"),y=this._get(e,"showMonthAfterYear"),b="<div class='ui-datepicker-title'>",w="";if(s||!m){w+="<span class='ui-datepicker-month'>"+o[t]+"</span>"}else{a=r&&r.getFullYear()===n;f=i&&i.getFullYear()===n;w+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>";for(l=0;l<12;l++){if((!a||l>=r.getMonth())&&(!f||l<=i.getMonth())){w+="<option value='"+l+"'"+(l===t?" selected='selected'":"")+">"+u[l]+"</option>"}}w+="</select>"}if(!y){b+=w+(s||!(m&&g)?" ":"")}if(!e.yearshtml){e.yearshtml="";if(s||!g){b+="<span class='ui-datepicker-year'>"+n+"</span>"}else{c=this._get(e,"yearRange").split(":");h=(new Date).getFullYear();p=function(e){var t=e.match(/c[+\-].*/)?n+parseInt(e.substring(1),10):e.match(/[+\-].*/)?h+parseInt(e,10):parseInt(e,10);return isNaN(t)?h:t};d=p(c[0]);v=Math.max(d,p(c[1]||""));d=r?Math.max(d,r.getFullYear()):d;v=i?Math.min(v,i.getFullYear()):v;e.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";for(;d<=v;d++){e.yearshtml+="<option value='"+d+"'"+(d===n?" selected='selected'":"")+">"+d+"</option>"}e.yearshtml+="</select>";b+=e.yearshtml;e.yearshtml=null}}b+=this._get(e,"yearSuffix");if(y){b+=(s||!(m&&g)?" ":"")+w}b+="</div>";return b},_adjustInstDate:function(e,t,n){var r=e.drawYear+(n==="Y"?t:0),i=e.drawMonth+(n==="M"?t:0),s=Math.min(e.selectedDay,this._getDaysInMonth(r,i))+(n==="D"?t:0),o=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(r,i,s)));e.selectedDay=o.getDate();e.drawMonth=e.selectedMonth=o.getMonth();e.drawYear=e.selectedYear=o.getFullYear();if(n==="M"||n==="Y"){this._notifyChange(e)}},_restrictMinMax:function(e,t){var n=this._getMinMaxDate(e,"min"),r=this._getMinMaxDate(e,"max"),i=n&&t<n?n:t;return r&&i>r?r:i},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");if(t){t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])}},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return t==null?[1,1]:typeof t==="number"?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return(new Date(e,t,1)).getDay()},_canAdjustMonth:function(e,t,n,r){var i=this._getNumberOfMonths(e),s=this._daylightSavingAdjust(new Date(n,r+(t<0?t:i[0]*i[1]),1));if(t<0){s.setDate(this._getDaysInMonth(s.getFullYear(),s.getMonth()))}return this._isInRange(e,s)},_isInRange:function(e,t){var n,r,i=this._getMinMaxDate(e,"min"),s=this._getMinMaxDate(e,"max"),o=null,u=null,a=this._get(e,"yearRange");if(a){n=a.split(":");r=(new Date).getFullYear();o=parseInt(n[0],10);u=parseInt(n[1],10);if(n[0].match(/[+\-].*/)){o+=r}if(n[1].match(/[+\-].*/)){u+=r}}return(!i||t.getTime()>=i.getTime())&&(!s||t.getTime()<=s.getTime())&&(!o||t.getFullYear()>=o)&&(!u||t.getFullYear()<=u)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");t=typeof t!=="string"?t:(new Date).getFullYear()%100+parseInt(t,10);return{shortYearCutoff:t,dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,n,r){if(!t){e.currentDay=e.selectedDay;e.currentMonth=e.selectedMonth;e.currentYear=e.selectedYear}var i=t?typeof t==="object"?t:this._daylightSavingAdjust(new Date(r,n,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),i,this._getFormatConfig(e))}});e.fn.datepicker=function(t){if(!this.length){return this}if(!e.datepicker.initialized){e(document).mousedown(e.datepicker._checkExternalClick);e.datepicker.initialized=true}if(e("#"+e.datepicker._mainDivId).length===0){e("body").append(e.datepicker.dpDiv)}var n=Array.prototype.slice.call(arguments,1);if(typeof t==="string"&&(t==="isDisabled"||t==="getDate"||t==="widget")){return e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(n))}if(t==="option"&&arguments.length===2&&typeof arguments[1]==="string"){return e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(n))}return this.each(function(){typeof t==="string"?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(n)):e.datepicker._attachDatepicker(this,t)})};e.datepicker=new i;e.datepicker.initialized=false;e.datepicker.uuid=(new Date).getTime();e.datepicker.version="1.10.4"})(jQuery);(function(e,t){var n={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},r={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true};e.widget("ui.dialog",{version:"1.10.4",options:{appendTo:"body",autoOpen:true,buttons:[],closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var n=e(this).css(t).offset().top;if(n<0){e(this).css("top",t.top-n)}}},resizable:true,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height};this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)};this.originalTitle=this.element.attr("title");this.options.title=this.options.title||this.originalTitle;this._createWrapper();this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog);this._createTitlebar();this._createButtonPane();if(this.options.draggable&&e.fn.draggable){this._makeDraggable()}if(this.options.resizable&&e.fn.resizable){this._makeResizable()}this._isOpen=false},_init:function(){if(this.options.autoOpen){this.open()}},_appendTo:function(){var t=this.options.appendTo;if(t&&(t.jquery||t.nodeType)){return e(t)}return this.document.find(t||"body").eq(0)},_destroy:function(){var e,t=this.originalPosition;this._destroyOverlay();this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach();this.uiDialog.stop(true,true).remove();if(this.originalTitle){this.element.attr("title",this.originalTitle)}e=t.parent.children().eq(t.index);if(e.length&&e[0]!==this.element[0]){e.before(this.element)}else{t.parent.append(this.element)}},widget:function(){return this.uiDialog},disable:e.noop,enable:e.noop,close:function(t){var n,r=this;if(!this._isOpen||this._trigger("beforeClose",t)===false){return}this._isOpen=false;this._destroyOverlay();if(!this.opener.filter(":focusable").focus().length){try{n=this.document[0].activeElement;if(n&&n.nodeName.toLowerCase()!=="body"){e(n).blur()}}catch(i){}}this._hide(this.uiDialog,this.options.hide,function(){r._trigger("close",t)})},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,t){var n=!!this.uiDialog.nextAll(":visible").insertBefore(this.uiDialog).length;if(n&&!t){this._trigger("focus",e)}return n},open:function(){var t=this;if(this._isOpen){if(this._moveToTop()){this._focusTabbable()}return}this._isOpen=true;this.opener=e(this.document[0].activeElement);this._size();this._position();this._createOverlay();this._moveToTop(null,true);this._show(this.uiDialog,this.options.show,function(){t._focusTabbable();t._trigger("focus")});this._trigger("open")},_focusTabbable:function(){var e=this.element.find("[autofocus]");if(!e.length){e=this.element.find(":tabbable")}if(!e.length){e=this.uiDialogButtonPane.find(":tabbable")}if(!e.length){e=this.uiDialogTitlebarClose.filter(":tabbable")}if(!e.length){e=this.uiDialog}e.eq(0).focus()},_keepFocus:function(t){function n(){var t=this.document[0].activeElement,n=this.uiDialog[0]===t||e.contains(this.uiDialog[0],t);if(!n){this._focusTabbable()}}t.preventDefault();n.call(this);this._delay(n)},_createWrapper:function(){this.uiDialog=e("<div>").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo());this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===e.ui.keyCode.ESCAPE){t.preventDefault();this.close(t);return}if(t.keyCode!==e.ui.keyCode.TAB){return}var n=this.uiDialog.find(":tabbable"),r=n.filter(":first"),i=n.filter(":last");if((t.target===i[0]||t.target===this.uiDialog[0])&&!t.shiftKey){r.focus(1);t.preventDefault()}else if((t.target===r[0]||t.target===this.uiDialog[0])&&t.shiftKey){i.focus(1);t.preventDefault()}},mousedown:function(e){if(this._moveToTop(e)){this._focusTabbable()}}});if(!this.element.find("[aria-describedby]").length){this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})}},_createTitlebar:function(){var t;this.uiDialogTitlebar=e("<div>").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog);this._on(this.uiDialogTitlebar,{mousedown:function(t){if(!e(t.target).closest(".ui-dialog-titlebar-close")){this.uiDialog.focus()}}});this.uiDialogTitlebarClose=e("<button type='button'></button>").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:false}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar);this._on(this.uiDialogTitlebarClose,{click:function(e){e.preventDefault();this.close(e)}});t=e("<span>").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar);this._title(t);this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(e){if(!this.options.title){e.html(" ")}e.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=e("<div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");this.uiButtonSet=e("<div>").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane);this._createButtons()},_createButtons:function(){var t=this,n=this.options.buttons;this.uiDialogButtonPane.remove();this.uiButtonSet.empty();if(e.isEmptyObject(n)||e.isArray(n)&&!n.length){this.uiDialog.removeClass("ui-dialog-buttons");return}e.each(n,function(n,r){var i,s;r=e.isFunction(r)?{click:r,text:n}:r;r=e.extend({type:"button"},r);i=r.click;r.click=function(){i.apply(t.element[0],arguments)};s={icons:r.icons,text:r.showText};delete r.icons;delete r.showText;e("<button></button>",r).button(s).appendTo(t.uiButtonSet)});this.uiDialog.addClass("ui-dialog-buttons");this.uiDialogButtonPane.appendTo(this.uiDialog)},_makeDraggable:function(){function r(e){return{position:e.position,offset:e.offset}}var t=this,n=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(n,i){e(this).addClass("ui-dialog-dragging");t._blockFrames();t._trigger("dragStart",n,r(i))},drag:function(e,n){t._trigger("drag",e,r(n))},stop:function(i,s){n.position=[s.position.left-t.document.scrollLeft(),s.position.top-t.document.scrollTop()];e(this).removeClass("ui-dialog-dragging");t._unblockFrames();t._trigger("dragStop",i,r(s))}})},_makeResizable:function(){function o(e){return{originalPosition:e.originalPosition,originalSize:e.originalSize,position:e.position,size:e.size}}var t=this,n=this.options,r=n.resizable,i=this.uiDialog.css("position"),s=typeof r==="string"?r:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:n.maxWidth,maxHeight:n.maxHeight,minWidth:n.minWidth,minHeight:this._minHeight(),handles:s,start:function(n,r){e(this).addClass("ui-dialog-resizing");t._blockFrames();t._trigger("resizeStart",n,o(r))},resize:function(e,n){t._trigger("resize",e,o(n))},stop:function(r,i){n.height=e(this).height();n.width=e(this).width();e(this).removeClass("ui-dialog-resizing");t._unblockFrames();t._trigger("resizeStop",r,o(i))}}).css("position",i)},_minHeight:function(){var e=this.options;return e.height==="auto"?e.minHeight:Math.min(e.minHeight,e.height)},_position:function(){var e=this.uiDialog.is(":visible");if(!e){this.uiDialog.show()}this.uiDialog.position(this.options.position);if(!e){this.uiDialog.hide()}},_setOptions:function(t){var i=this,s=false,o={};e.each(t,function(e,t){i._setOption(e,t);if(e in n){s=true}if(e in r){o[e]=t}});if(s){this._size();this._position()}if(this.uiDialog.is(":data(ui-resizable)")){this.uiDialog.resizable("option",o)}},_setOption:function(e,t){var n,r,i=this.uiDialog;if(e==="dialogClass"){i.removeClass(this.options.dialogClass).addClass(t)}if(e==="disabled"){return}this._super(e,t);if(e==="appendTo"){this.uiDialog.appendTo(this._appendTo())}if(e==="buttons"){this._createButtons()}if(e==="closeText"){this.uiDialogTitlebarClose.button({label:""+t})}if(e==="draggable"){n=i.is(":data(ui-draggable)");if(n&&!t){i.draggable("destroy")}if(!n&&t){this._makeDraggable()}}if(e==="position"){this._position()}if(e==="resizable"){r=i.is(":data(ui-resizable)");if(r&&!t){i.resizable("destroy")}if(r&&typeof t==="string"){i.resizable("option","handles",t)}if(!r&&t!==false){this._makeResizable()}}if(e==="title"){this._title(this.uiDialogTitlebar.find(".ui-dialog-title"))}},_size:function(){var e,t,n,r=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0});if(r.minWidth>r.width){r.width=r.minWidth}e=this.uiDialog.css({height:"auto",width:r.width}).outerHeight();t=Math.max(0,r.minHeight-e);n=typeof r.maxHeight==="number"?Math.max(0,r.maxHeight-e):"none";if(r.height==="auto"){this.element.css({minHeight:t,maxHeight:n,height:"auto"})}else{this.element.height(Math.max(0,r.height-e))}if(this.uiDialog.is(":data(ui-resizable)")){this.uiDialog.resizable("option","minHeight",this._minHeight())}},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=e(this);return e("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){if(this.iframeBlocks){this.iframeBlocks.remove();delete this.iframeBlocks}},_allowInteraction:function(t){if(e(t.target).closest(".ui-dialog").length){return true}return!!e(t.target).closest(".ui-datepicker").length},_createOverlay:function(){if(!this.options.modal){return}var t=this,n=this.widgetFullName;if(!e.ui.dialog.overlayInstances){this._delay(function(){if(e.ui.dialog.overlayInstances){this.document.bind("focusin.dialog",function(r){if(!t._allowInteraction(r)){r.preventDefault();e(".ui-dialog:visible:last .ui-dialog-content").data(n)._focusTabbable()}})}})}this.overlay=e("<div>").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo());this._on(this.overlay,{mousedown:"_keepFocus"});e.ui.dialog.overlayInstances++},_destroyOverlay:function(){if(!this.options.modal){return}if(this.overlay){e.ui.dialog.overlayInstances--;if(!e.ui.dialog.overlayInstances){this.document.unbind("focusin.dialog")}this.overlay.remove();this.overlay=null}}});e.ui.dialog.overlayInstances=0;if(e.uiBackCompat!==false){e.widget("ui.dialog",e.ui.dialog,{_position:function(){var t=this.options.position,n=[],r=[0,0],i;if(t){if(typeof t==="string"||typeof t==="object"&&"0"in t){n=t.split?t.split(" "):[t[0],t[1]];if(n.length===1){n[1]=n[0]}e.each(["left","top"],function(e,t){if(+n[e]===n[e]){r[e]=n[e];n[e]=t}});t={my:n[0]+(r[0]<0?r[0]:"+"+r[0])+" "+n[1]+(r[1]<0?r[1]:"+"+r[1]),at:n.join(" ")}}t=e.extend({},e.ui.dialog.prototype.options.position,t)}else{t=e.ui.dialog.prototype.options.position}i=this.uiDialog.is(":visible");if(!i){this.uiDialog.show()}this.uiDialog.position(t);if(!i){this.uiDialog.hide()}}})}})(jQuery);(function(e,t){e.widget("ui.draggable",e.ui.mouse,{version:"1.10.4",widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false,drag:null,start:null,stop:null},_create:function(){if(this.options.helper==="original"&&!/^(?:r|a|f)/.test(this.element.css("position"))){this.element[0].style.position="relative"}if(this.options.addClasses){this.element.addClass("ui-draggable")}if(this.options.disabled){this.element.addClass("ui-draggable-disabled")}this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy()},_mouseCapture:function(t){var n=this.options;if(this.helper||n.disabled||e(t.target).closest(".ui-resizable-handle").length>0){return false}this.handle=this._getHandle(t);if(!this.handle){return false}e(n.iframeFix===true?"iframe":n.iframeFix).each(function(){e("<div class='ui-draggable-iframeFix' style='background: #fff;'></div>").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(e(this).offset()).appendTo("body")});return true},_mouseStart:function(t){var n=this.options;this.helper=this._createHelper(t);this.helper.addClass("ui-draggable-dragging");this._cacheHelperProportions();if(e.ui.ddmanager){e.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offsetParent=this.helper.offsetParent();this.offsetParentCssPosition=this.offsetParent.css("position");this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.offset.scroll=false;e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(t);this.originalPageX=t.pageX;this.originalPageY=t.pageY;n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt);this._setContainment();if(this._trigger("start",t)===false){this._clear();return false}this._cacheHelperProportions();if(e.ui.ddmanager&&!n.dropBehaviour){e.ui.ddmanager.prepareOffsets(this,t)}this._mouseDrag(t,true);if(e.ui.ddmanager){e.ui.ddmanager.dragStart(this,t)}return true},_mouseDrag:function(t,n){if(this.offsetParentCssPosition==="fixed"){this.offset.parent=this._getParentOffset()}this.position=this._generatePosition(t);this.positionAbs=this._convertPositionTo("absolute");if(!n){var r=this._uiHash();if(this._trigger("drag",t,r)===false){this._mouseUp({});return false}this.position=r.position}if(!this.options.axis||this.options.axis!=="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!=="x"){this.helper[0].style.top=this.position.top+"px"}if(e.ui.ddmanager){e.ui.ddmanager.drag(this,t)}return false},_mouseStop:function(t){var n=this,r=false;if(e.ui.ddmanager&&!this.options.dropBehaviour){r=e.ui.ddmanager.drop(this,t)}if(this.dropped){r=this.dropped;this.dropped=false}if(this.options.helper==="original"&&!e.contains(this.element[0].ownerDocument,this.element[0])){return false}if(this.options.revert==="invalid"&&!r||this.options.revert==="valid"&&r||this.options.revert===true||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,r)){e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){if(n._trigger("stop",t)!==false){n._clear()}})}else{if(this._trigger("stop",t)!==false){this._clear()}}return false},_mouseUp:function(t){e("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)});if(e.ui.ddmanager){e.ui.ddmanager.dragStop(this,t)}return e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){if(this.helper.is(".ui-draggable-dragging")){this._mouseUp({})}else{this._clear()}return this},_getHandle:function(t){return this.options.handle?!!e(t.target).closest(this.element.find(this.options.handle)).length:true},_createHelper:function(t){var n=this.options,r=e.isFunction(n.helper)?e(n.helper.apply(this.element[0],[t])):n.helper==="clone"?this.element.clone().removeAttr("id"):this.element;if(!r.parents("body").length){r.appendTo(n.appendTo==="parent"?this.element[0].parentNode:n.appendTo)}if(r[0]!==this.element[0]&&!/(fixed|absolute)/.test(r.css("position"))){r.css("position","absolute")}return r},_adjustOffsetFromHelper:function(t){if(typeof t==="string"){t=t.split(" ")}if(e.isArray(t)){t={left:+t[0],top:+t[1]||0}}if("left"in t){this.offset.click.left=t.left+this.margins.left}if("right"in t){this.offset.click.left=this.helperProportions.width-t.right+this.margins.left}if("top"in t){this.offset.click.top=t.top+this.margins.top}if("bottom"in t){this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top}},_getParentOffset:function(){var t=this.offsetParent.offset();if(this.cssPosition==="absolute"&&this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])){t.left+=this.scrollParent.scrollLeft();t.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()==="html"&&e.ui.ie){t={top:0,left:0}}return{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==="relative"){var e=this.element.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,n,r,i=this.options;if(!i.containment){this.containment=null;return}if(i.containment==="window"){this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(i.containment==="document"){this.containment=[0,0,e(document).width()-this.helperProportions.width-this.margins.left,(e(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(i.containment.constructor===Array){this.containment=i.containment;return}if(i.containment==="parent"){i.containment=this.helper[0].parentNode}n=e(i.containment);r=n[0];if(!r){return}t=n.css("overflow")!=="hidden";this.containment=[(parseInt(n.css("borderLeftWidth"),10)||0)+(parseInt(n.css("paddingLeft"),10)||0),(parseInt(n.css("borderTopWidth"),10)||0)+(parseInt(n.css("paddingTop"),10)||0),(t?Math.max(r.scrollWidth,r.offsetWidth):r.offsetWidth)-(parseInt(n.css("borderRightWidth"),10)||0)-(parseInt(n.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(r.scrollHeight,r.offsetHeight):r.offsetHeight)-(parseInt(n.css("borderBottomWidth"),10)||0)-(parseInt(n.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=n},_convertPositionTo:function(t,n){if(!n){n=this.position}var r=t==="absolute"?1:-1,i=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent;if(!this.offset.scroll){this.offset.scroll={top:i.scrollTop(),left:i.scrollLeft()}}return{top:n.top+this.offset.relative.top*r+this.offset.parent.top*r-(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():this.offset.scroll.top)*r,left:n.left+this.offset.relative.left*r+this.offset.parent.left*r-(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():this.offset.scroll.left)*r}},_generatePosition:function(t){var n,r,i,s,o=this.options,u=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,a=t.pageX,f=t.pageY;if(!this.offset.scroll){this.offset.scroll={top:u.scrollTop(),left:u.scrollLeft()}}if(this.originalPosition){if(this.containment){if(this.relative_container){r=this.relative_container.offset();n=[this.containment[0]+r.left,this.containment[1]+r.top,this.containment[2]+r.left,this.containment[3]+r.top]}else{n=this.containment}if(t.pageX-this.offset.click.left<n[0]){a=n[0]+this.offset.click.left}if(t.pageY-this.offset.click.top<n[1]){f=n[1]+this.offset.click.top}if(t.pageX-this.offset.click.left>n[2]){a=n[2]+this.offset.click.left}if(t.pageY-this.offset.click.top>n[3]){f=n[3]+this.offset.click.top}}if(o.grid){i=o.grid[1]?this.originalPageY+Math.round((f-this.originalPageY)/o.grid[1])*o.grid[1]:this.originalPageY;f=n?i-this.offset.click.top>=n[1]||i-this.offset.click.top>n[3]?i:i-this.offset.click.top>=n[1]?i-o.grid[1]:i+o.grid[1]:i;s=o.grid[0]?this.originalPageX+Math.round((a-this.originalPageX)/o.grid[0])*o.grid[0]:this.originalPageX;a=n?s-this.offset.click.left>=n[0]||s-this.offset.click.left>n[2]?s:s-this.offset.click.left>=n[0]?s-o.grid[0]:s+o.grid[0]:s}}return{top:f-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():this.offset.scroll.top),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.helper[0]!==this.element[0]&&!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false},_trigger:function(t,n,r){r=r||this._uiHash();e.ui.plugin.call(this,t,[n,r]);if(t==="drag"){this.positionAbs=this._convertPositionTo("absolute")}return e.Widget.prototype._trigger.call(this,t,n,r)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});e.ui.plugin.add("draggable","connectToSortable",{start:function(t,n){var r=e(this).data("ui-draggable"),i=r.options,s=e.extend({},n,{item:r.element});r.sortables=[];e(i.connectToSortable).each(function(){var n=e.data(this,"ui-sortable");if(n&&!n.options.disabled){r.sortables.push({instance:n,shouldRevert:n.options.revert});n.refreshPositions();n._trigger("activate",t,s)}})},stop:function(t,n){var r=e(this).data("ui-draggable"),i=e.extend({},n,{item:r.element});e.each(r.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;r.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=this.shouldRevert}this.instance._mouseStop(t);this.instance.options.helper=this.instance.options._helper;if(r.options.helper==="original"){this.instance.currentItem.css({top:"auto",left:"auto"})}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",t,i)}})},drag:function(t,n){var r=e(this).data("ui-draggable"),i=this;e.each(r.sortables,function(){var s=false,o=this;this.instance.positionAbs=r.positionAbs;this.instance.helperProportions=r.helperProportions;this.instance.offset.click=r.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){s=true;e.each(r.sortables,function(){this.instance.positionAbs=r.positionAbs;this.instance.helperProportions=r.helperProportions;this.instance.offset.click=r.offset.click;if(this!==o&&this.instance._intersectsWith(this.instance.containerCache)&&e.contains(o.instance.element[0],this.instance.element[0])){s=false}return s})}if(s){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=e(i).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return n.helper[0]};t.target=this.instance.currentItem[0];this.instance._mouseCapture(t,true);this.instance._mouseStart(t,true,true);this.instance.offset.click.top=r.offset.click.top;this.instance.offset.click.left=r.offset.click.left;this.instance.offset.parent.left-=r.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=r.offset.parent.top-this.instance.offset.parent.top;r._trigger("toSortable",t);r.dropped=this.instance.element;r.currentItem=r.element;this.instance.fromOutside=r}if(this.instance.currentItem){this.instance._mouseDrag(t)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",t,this.instance._uiHash(this.instance));this.instance._mouseStop(t,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}r._trigger("fromSortable",t);r.dropped=false}}})}});e.ui.plugin.add("draggable","cursor",{start:function(){var t=e("body"),n=e(this).data("ui-draggable").options;if(t.css("cursor")){n._cursor=t.css("cursor")}t.css("cursor",n.cursor)},stop:function(){var t=e(this).data("ui-draggable").options;if(t._cursor){e("body").css("cursor",t._cursor)}}});e.ui.plugin.add("draggable","opacity",{start:function(t,n){var r=e(n.helper),i=e(this).data("ui-draggable").options;if(r.css("opacity")){i._opacity=r.css("opacity")}r.css("opacity",i.opacity)},stop:function(t,n){var r=e(this).data("ui-draggable").options;if(r._opacity){e(n.helper).css("opacity",r._opacity)}}});e.ui.plugin.add("draggable","scroll",{start:function(){var t=e(this).data("ui-draggable");if(t.scrollParent[0]!==document&&t.scrollParent[0].tagName!=="HTML"){t.overflowOffset=t.scrollParent.offset()}},drag:function(t){var n=e(this).data("ui-draggable"),r=n.options,i=false;if(n.scrollParent[0]!==document&&n.scrollParent[0].tagName!=="HTML"){if(!r.axis||r.axis!=="x"){if(n.overflowOffset.top+n.scrollParent[0].offsetHeight-t.pageY<r.scrollSensitivity){n.scrollParent[0].scrollTop=i=n.scrollParent[0].scrollTop+r.scrollSpeed}else if(t.pageY-n.overflowOffset.top<r.scrollSensitivity){n.scrollParent[0].scrollTop=i=n.scrollParent[0].scrollTop-r.scrollSpeed}}if(!r.axis||r.axis!=="y"){if(n.overflowOffset.left+n.scrollParent[0].offsetWidth-t.pageX<r.scrollSensitivity){n.scrollParent[0].scrollLeft=i=n.scrollParent[0].scrollLeft+r.scrollSpeed}else if(t.pageX-n.overflowOffset.left<r.scrollSensitivity){n.scrollParent[0].scrollLeft=i=n.scrollParent[0].scrollLeft-r.scrollSpeed}}}else{if(!r.axis||r.axis!=="x"){if(t.pageY-e(document).scrollTop()<r.scrollSensitivity){i=e(document).scrollTop(e(document).scrollTop()-r.scrollSpeed)}else if(e(window).height()-(t.pageY-e(document).scrollTop())<r.scrollSensitivity){i=e(document).scrollTop(e(document).scrollTop()+r.scrollSpeed)}}if(!r.axis||r.axis!=="y"){if(t.pageX-e(document).scrollLeft()<r.scrollSensitivity){i=e(document).scrollLeft(e(document).scrollLeft()-r.scrollSpeed)}else if(e(window).width()-(t.pageX-e(document).scrollLeft())<r.scrollSensitivity){i=e(document).scrollLeft(e(document).scrollLeft()+r.scrollSpeed)}}}if(i!==false&&e.ui.ddmanager&&!r.dropBehaviour){e.ui.ddmanager.prepareOffsets(n,t)}}});e.ui.plugin.add("draggable","snap",{start:function(){var t=e(this).data("ui-draggable"),n=t.options;t.snapElements=[];e(n.snap.constructor!==String?n.snap.items||":data(ui-draggable)":n.snap).each(function(){var n=e(this),r=n.offset();if(this!==t.element[0]){t.snapElements.push({item:this,width:n.outerWidth(),height:n.outerHeight(),top:r.top,left:r.left})}})},drag:function(t,n){var r,i,s,o,u,a,f,l,c,h,p=e(this).data("ui-draggable"),d=p.options,v=d.snapTolerance,m=n.offset.left,g=m+p.helperProportions.width,y=n.offset.top,b=y+p.helperProportions.height;for(c=p.snapElements.length-1;c>=0;c--){u=p.snapElements[c].left;a=u+p.snapElements[c].width;f=p.snapElements[c].top;l=f+p.snapElements[c].height;if(g<u-v||m>a+v||b<f-v||y>l+v||!e.contains(p.snapElements[c].item.ownerDocument,p.snapElements[c].item)){if(p.snapElements[c].snapping){p.options.snap.release&&p.options.snap.release.call(p.element,t,e.extend(p._uiHash(),{snapItem:p.snapElements[c].item}))}p.snapElements[c].snapping=false;continue}if(d.snapMode!=="inner"){r=Math.abs(f-b)<=v;i=Math.abs(l-y)<=v;s=Math.abs(u-g)<=v;o=Math.abs(a-m)<=v;if(r){n.position.top=p._convertPositionTo("relative",{top:f-p.helperProportions.height,left:0}).top-p.margins.top}if(i){n.position.top=p._convertPositionTo("relative",{top:l,left:0}).top-p.margins.top}if(s){n.position.left=p._convertPositionTo("relative",{top:0,left:u-p.helperProportions.width}).left-p.margins.left}if(o){n.position.left=p._convertPositionTo("relative",{top:0,left:a}).left-p.margins.left}}h=r||i||s||o;if(d.snapMode!=="outer"){r=Math.abs(f-y)<=v;i=Math.abs(l-b)<=v;s=Math.abs(u-m)<=v;o=Math.abs(a-g)<=v;if(r){n.position.top=p._convertPositionTo("relative",{top:f,left:0}).top-p.margins.top}if(i){n.position.top=p._convertPositionTo("relative",{top:l-p.helperProportions.height,left:0}).top-p.margins.top}if(s){n.position.left=p._convertPositionTo("relative",{top:0,left:u}).left-p.margins.left}if(o){n.position.left=p._convertPositionTo("relative",{top:0,left:a-p.helperProportions.width}).left-p.margins.left}}if(!p.snapElements[c].snapping&&(r||i||s||o||h)){p.options.snap.snap&&p.options.snap.snap.call(p.element,t,e.extend(p._uiHash(),{snapItem:p.snapElements[c].item}))}p.snapElements[c].snapping=r||i||s||o||h}}});e.ui.plugin.add("draggable","stack",{start:function(){var t,n=this.data("ui-draggable").options,r=e.makeArray(e(n.stack)).sort(function(t,n){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(n).css("zIndex"),10)||0)});if(!r.length){return}t=parseInt(e(r[0]).css("zIndex"),10)||0;e(r).each(function(n){e(this).css("zIndex",t+n)});this.css("zIndex",t+r.length)}});e.ui.plugin.add("draggable","zIndex",{start:function(t,n){var r=e(n.helper),i=e(this).data("ui-draggable").options;if(r.css("zIndex")){i._zIndex=r.css("zIndex")}r.css("zIndex",i.zIndex)},stop:function(t,n){var r=e(this).data("ui-draggable").options;if(r._zIndex){e(n.helper).css("zIndex",r._zIndex)}}})})(jQuery);(function(e,t){function n(e,t,n){return e>t&&e<t+n}e.widget("ui.droppable",{version:"1.10.4",widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,n=this.options,r=n.accept;this.isover=false;this.isout=true;this.accept=e.isFunction(r)?r:function(e){return e.is(r)};this.proportions=function(){if(arguments.length){t=arguments[0]}else{return t?t:t={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}}};e.ui.ddmanager.droppables[n.scope]=e.ui.ddmanager.droppables[n.scope]||[];e.ui.ddmanager.droppables[n.scope].push(this);n.addClasses&&this.element.addClass("ui-droppable")},_destroy:function(){var t=0,n=e.ui.ddmanager.droppables[this.options.scope];for(;t<n.length;t++){if(n[t]===this){n.splice(t,1)}}this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(t,n){if(t==="accept"){this.accept=e.isFunction(n)?n:function(e){return e.is(n)}}e.Widget.prototype._setOption.apply(this,arguments)},_activate:function(t){var n=e.ui.ddmanager.current;if(this.options.activeClass){this.element.addClass(this.options.activeClass)}if(n){this._trigger("activate",t,this.ui(n))}},_deactivate:function(t){var n=e.ui.ddmanager.current;if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}if(n){this._trigger("deactivate",t,this.ui(n))}},_over:function(t){var n=e.ui.ddmanager.current;if(!n||(n.currentItem||n.element)[0]===this.element[0]){return}if(this.accept.call(this.element[0],n.currentItem||n.element)){if(this.options.hoverClass){this.element.addClass(this.options.hoverClass)}this._trigger("over",t,this.ui(n))}},_out:function(t){var n=e.ui.ddmanager.current;if(!n||(n.currentItem||n.element)[0]===this.element[0]){return}if(this.accept.call(this.element[0],n.currentItem||n.element)){if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger("out",t,this.ui(n))}},_drop:function(t,n){var r=n||e.ui.ddmanager.current,i=false;if(!r||(r.currentItem||r.element)[0]===this.element[0]){return false}this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var t=e.data(this,"ui-droppable");if(t.options.greedy&&!t.options.disabled&&t.options.scope===r.options.scope&&t.accept.call(t.element[0],r.currentItem||r.element)&&e.ui.intersect(r,e.extend(t,{offset:t.element.offset()}),t.options.tolerance)){i=true;return false}});if(i){return false}if(this.accept.call(this.element[0],r.currentItem||r.element)){if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger("drop",t,this.ui(r));return this.element}return false},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}}});e.ui.intersect=function(e,t,r){if(!t.offset){return false}var i,s,o=(e.positionAbs||e.position.absolute).left,u=(e.positionAbs||e.position.absolute).top,a=o+e.helperProportions.width,f=u+e.helperProportions.height,l=t.offset.left,c=t.offset.top,h=l+t.proportions().width,p=c+t.proportions().height;switch(r){case"fit":return l<=o&&a<=h&&c<=u&&f<=p;case"intersect":return l<o+e.helperProportions.width/2&&a-e.helperProportions.width/2<h&&c<u+e.helperProportions.height/2&&f-e.helperProportions.height/2<p;case"pointer":i=(e.positionAbs||e.position.absolute).left+(e.clickOffset||e.offset.click).left;s=(e.positionAbs||e.position.absolute).top+(e.clickOffset||e.offset.click).top;return n(s,c,t.proportions().height)&&n(i,l,t.proportions().width);case"touch":return(u>=c&&u<=p||f>=c&&f<=p||u<c&&f>p)&&(o>=l&&o<=h||a>=l&&a<=h||o<l&&a>h);default:return false}};e.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(t,n){var r,i,s=e.ui.ddmanager.droppables[t.options.scope]||[],o=n?n.type:null,u=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();e:for(r=0;r<s.length;r++){if(s[r].options.disabled||t&&!s[r].accept.call(s[r].element[0],t.currentItem||t.element)){continue}for(i=0;i<u.length;i++){if(u[i]===s[r].element[0]){s[r].proportions().height=0;continue e}}s[r].visible=s[r].element.css("display")!=="none";if(!s[r].visible){continue}if(o==="mousedown"){s[r]._activate.call(s[r],n)}s[r].offset=s[r].element.offset();s[r].proportions({width:s[r].element[0].offsetWidth,height:s[r].element[0].offsetHeight})}},drop:function(t,n){var r=false;e.each((e.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){if(!this.options){return}if(!this.options.disabled&&this.visible&&e.ui.intersect(t,this,this.options.tolerance)){r=this._drop.call(this,n)||r}if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)){this.isout=true;this.isover=false;this._deactivate.call(this,n)}});return r},dragStart:function(t,n){t.element.parentsUntil("body").bind("scroll.droppable",function(){if(!t.options.refreshPositions){e.ui.ddmanager.prepareOffsets(t,n)}})},drag:function(t,n){if(t.options.refreshPositions){e.ui.ddmanager.prepareOffsets(t,n)}e.each(e.ui.ddmanager.droppables[t.options.scope]||[],function(){if(this.options.disabled||this.greedyChild||!this.visible){return}var r,i,s,o=e.ui.intersect(t,this,this.options.tolerance),u=!o&&this.isover?"isout":o&&!this.isover?"isover":null;if(!u){return}if(this.options.greedy){i=this.options.scope;s=this.element.parents(":data(ui-droppable)").filter(function(){return e.data(this,"ui-droppable").options.scope===i});if(s.length){r=e.data(s[0],"ui-droppable");r.greedyChild=u==="isover"}}if(r&&u==="isover"){r.isover=false;r.isout=true;r._out.call(r,n)}this[u]=true;this[u==="isout"?"isover":"isout"]=false;this[u==="isover"?"_over":"_out"].call(this,n);if(r&&u==="isout"){r.isout=false;r.isover=true;r._over.call(r,n)}})},dragStop:function(t,n){t.element.parentsUntil("body").unbind("scroll.droppable");if(!t.options.refreshPositions){e.ui.ddmanager.prepareOffsets(t,n)}}}})(jQuery);(function(e,t){var n="ui-effects-";e.effects={effect:{}};(function(e,t){function h(e,t,n){var r=u[t.type]||{};if(e==null){return n||!t.def?null:t.def}e=r.floor?~~e:parseFloat(e);if(isNaN(e)){return t.def}if(r.mod){return(e+r.mod)%r.mod}return 0>e?0:r.max<e?r.max:e}function p(t){var n=s(),r=n._rgba=[];t=t.toLowerCase();c(i,function(e,i){var s,u=i.re.exec(t),a=u&&i.parse(u),f=i.space||"rgba";if(a){s=n[f](a);n[o[f].cache]=s[o[f].cache];r=n._rgba=s._rgba;return false}});if(r.length){if(r.join()==="0,0,0,0"){e.extend(r,l.transparent)}return n}return l[t]}function d(e,t,n){n=(n+1)%1;if(n*6<1){return e+(t-e)*n*6}if(n*2<1){return t}if(n*3<2){return e+(t-e)*(2/3-n)*6}return e}var n="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",r=/^([\-+])=\s*(\d+\.?\d*)/,i=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1]*2.55,e[2]*2.55,e[3]*2.55,e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],s=e.Color=function(t,n,r,i){return new e.Color.fn.parse(t,n,r,i)},o={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},u={"byte":{floor:true,max:255},percent:{max:1},degrees:{mod:360,floor:true}},a=s.support={},f=e("<p>")[0],l,c=e.each;f.style.cssText="background-color:rgba(1,1,1,.5)";a.rgba=f.style.backgroundColor.indexOf("rgba")>-1;c(o,function(e,t){t.cache="_"+e;t.props.alpha={idx:3,type:"percent",def:1}});s.fn=e.extend(s.prototype,{parse:function(n,r,i,u){if(n===t){this._rgba=[null,null,null,null];return this}if(n.jquery||n.nodeType){n=e(n).css(r);r=t}var a=this,f=e.type(n),d=this._rgba=[];if(r!==t){n=[n,r,i,u];f="array"}if(f==="string"){return this.parse(p(n)||l._default)}if(f==="array"){c(o.rgba.props,function(e,t){d[t.idx]=h(n[t.idx],t)});return this}if(f==="object"){if(n instanceof s){c(o,function(e,t){if(n[t.cache]){a[t.cache]=n[t.cache].slice()}})}else{c(o,function(t,r){var i=r.cache;c(r.props,function(e,t){if(!a[i]&&r.to){if(e==="alpha"||n[e]==null){return}a[i]=r.to(a._rgba)}a[i][t.idx]=h(n[e],t,true)});if(a[i]&&e.inArray(null,a[i].slice(0,3))<0){a[i][3]=1;if(r.from){a._rgba=r.from(a[i])}}})}return this}},is:function(e){var t=s(e),n=true,r=this;c(o,function(e,i){var s,o=t[i.cache];if(o){s=r[i.cache]||i.to&&i.to(r._rgba)||[];c(i.props,function(e,t){if(o[t.idx]!=null){n=o[t.idx]===s[t.idx];return n}})}return n});return n},_space:function(){var e=[],t=this;c(o,function(n,r){if(t[r.cache]){e.push(n)}});return e.pop()},transition:function(e,t){var n=s(e),r=n._space(),i=o[r],a=this.alpha()===0?s("transparent"):this,f=a[i.cache]||i.to(a._rgba),l=f.slice();n=n[i.cache];c(i.props,function(e,r){var i=r.idx,s=f[i],o=n[i],a=u[r.type]||{};if(o===null){return}if(s===null){l[i]=o}else{if(a.mod){if(o-s>a.mod/2){s+=a.mod}else if(s-o>a.mod/2){s-=a.mod}}l[i]=h((o-s)*t+s,r)}});return this[r](l)},blend:function(t){if(this._rgba[3]===1){return this}var n=this._rgba.slice(),r=n.pop(),i=s(t)._rgba;return s(e.map(n,function(e,t){return(1-r)*i[t]+r*e}))},toRgbaString:function(){var t="rgba(",n=e.map(this._rgba,function(e,t){return e==null?t>2?1:0:e});if(n[3]===1){n.pop();t="rgb("}return t+n.join()+")"},toHslaString:function(){var t="hsla(",n=e.map(this.hsla(),function(e,t){if(e==null){e=t>2?1:0}if(t&&t<3){e=Math.round(e*100)+"%"}return e});if(n[3]===1){n.pop();t="hsl("}return t+n.join()+")"},toHexString:function(t){var n=this._rgba.slice(),r=n.pop();if(t){n.push(~~(r*255))}return"#"+e.map(n,function(e){e=(e||0).toString(16);return e.length===1?"0"+e:e}).join("")},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString()}});s.fn.parse.prototype=s.fn;o.hsla.to=function(e){if(e[0]==null||e[1]==null||e[2]==null){return[null,null,null,e[3]]}var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=e[3],s=Math.max(t,n,r),o=Math.min(t,n,r),u=s-o,a=s+o,f=a*.5,l,c;if(o===s){l=0}else if(t===s){l=60*(n-r)/u+360}else if(n===s){l=60*(r-t)/u+120}else{l=60*(t-n)/u+240}if(u===0){c=0}else if(f<=.5){c=u/a}else{c=u/(2-a)}return[Math.round(l)%360,c,f,i==null?1:i]};o.hsla.from=function(e){if(e[0]==null||e[1]==null||e[2]==null){return[null,null,null,e[3]]}var t=e[0]/360,n=e[1],r=e[2],i=e[3],s=r<=.5?r*(1+n):r+n-r*n,o=2*r-s;return[Math.round(d(o,s,t+1/3)*255),Math.round(d(o,s,t)*255),Math.round(d(o,s,t-1/3)*255),i]};c(o,function(n,i){var o=i.props,u=i.cache,a=i.to,f=i.from;s.fn[n]=function(n){if(a&&!this[u]){this[u]=a(this._rgba)}if(n===t){return this[u].slice()}var r,i=e.type(n),l=i==="array"||i==="object"?n:arguments,p=this[u].slice();c(o,function(e,t){var n=l[i==="object"?e:t.idx];if(n==null){n=p[t.idx]}p[t.idx]=h(n,t)});if(f){r=s(f(p));r[u]=p;return r}else{return s(p)}};c(o,function(t,i){if(s.fn[t]){return}s.fn[t]=function(s){var o=e.type(s),u=t==="alpha"?this._hsla?"hsla":"rgba":n,a=this[u](),f=a[i.idx],l;if(o==="undefined"){return f}if(o==="function"){s=s.call(this,f);o=e.type(s)}if(s==null&&i.empty){return this}if(o==="string"){l=r.exec(s);if(l){s=f+parseFloat(l[2])*(l[1]==="+"?1:-1)}}a[i.idx]=s;return this[u](a)}})});s.hook=function(t){var n=t.split(" ");c(n,function(t,n){e.cssHooks[n]={set:function(t,r){var i,o,u="";if(r!=="transparent"&&(e.type(r)!=="string"||(i=p(r)))){r=s(i||r);if(!a.rgba&&r._rgba[3]!==1){o=n==="backgroundColor"?t.parentNode:t;while((u===""||u==="transparent")&&o&&o.style){try{u=e.css(o,"backgroundColor");o=o.parentNode}catch(f){}}r=r.blend(u&&u!=="transparent"?u:"_default")}r=r.toRgbaString()}try{t.style[n]=r}catch(f){}}};e.fx.step[n]=function(t){if(!t.colorInit){t.start=s(t.elem,n);t.end=s(t.end);t.colorInit=true}e.cssHooks[n].set(t.elem,t.start.transition(t.end,t.pos))}})};s.hook(n);e.cssHooks.borderColor={expand:function(e){var t={};c(["Top","Right","Bottom","Left"],function(n,r){t["border"+r+"Color"]=e});return t}};l=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}})(jQuery);(function(){function i(t){var n,r,i=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,s={};if(i&&i.length&&i[0]&&i[i[0]]){r=i.length;while(r--){n=i[r];if(typeof i[n]==="string"){s[e.camelCase(n)]=i[n]}}}else{for(n in i){if(typeof i[n]==="string"){s[n]=i[n]}}}return s}function s(t,n){var i={},s,o;for(s in n){o=n[s];if(t[s]!==o){if(!r[s]){if(e.fx.step[s]||!isNaN(parseFloat(o))){i[s]=o}}}}return i}var n=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,n){e.fx.step[n]=function(e){if(e.end!=="none"&&!e.setAttr||e.pos===1&&!e.setAttr){jQuery.style(e.elem,n,e.end);e.setAttr=true}}});if(!e.fn.addBack){e.fn.addBack=function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}}e.effects.animateClass=function(t,r,o,u){var a=e.speed(r,o,u);return this.queue(function(){var r=e(this),o=r.attr("class")||"",u,f=a.children?r.find("*").addBack():r;f=f.map(function(){var t=e(this);return{el:t,start:i(this)}});u=function(){e.each(n,function(e,n){if(t[n]){r[n+"Class"](t[n])}})};u();f=f.map(function(){this.end=i(this.el[0]);this.diff=s(this.start,this.end);return this});r.attr("class",o);f=f.map(function(){var t=this,n=e.Deferred(),r=e.extend({},a,{queue:false,complete:function(){n.resolve(t)}});this.el.animate(this.diff,r);return n.promise()});e.when.apply(e,f.get()).done(function(){u();e.each(arguments,function(){var t=this.el;e.each(this.diff,function(e){t.css(e,"")})});a.complete.call(r[0])})})};e.fn.extend({addClass:function(t){return function(n,r,i,s){return r?e.effects.animateClass.call(this,{add:n},r,i,s):t.apply(this,arguments)}}(e.fn.addClass),removeClass:function(t){return function(n,r,i,s){return arguments.length>1?e.effects.animateClass.call(this,{remove:n},r,i,s):t.apply(this,arguments)}}(e.fn.removeClass),toggleClass:function(n){return function(r,i,s,o,u){if(typeof i==="boolean"||i===t){if(!s){return n.apply(this,arguments)}else{return e.effects.animateClass.call(this,i?{add:r}:{remove:r},s,o,u)}}else{return e.effects.animateClass.call(this,{toggle:r},i,s,o)}}}(e.fn.toggleClass),switchClass:function(t,n,r,i,s){return e.effects.animateClass.call(this,{add:n,remove:t},r,i,s)}})})();(function(){function r(t,n,r,i){if(e.isPlainObject(t)){n=t;t=t.effect}t={effect:t};if(n==null){n={}}if(e.isFunction(n)){i=n;r=null;n={}}if(typeof n==="number"||e.fx.speeds[n]){i=r;r=n;n={}}if(e.isFunction(r)){i=r;r=null}if(n){e.extend(t,n)}r=r||n.duration;t.duration=e.fx.off?0:typeof r==="number"?r:r in e.fx.speeds?e.fx.speeds[r]:e.fx.speeds._default;t.complete=i||n.complete;return t}function i(t){if(!t||typeof t==="number"||e.fx.speeds[t]){return true}if(typeof t==="string"&&!e.effects.effect[t]){return true}if(e.isFunction(t)){return true}if(typeof t==="object"&&!t.effect){return true}return false}e.extend(e.effects,{version:"1.10.4",save:function(e,t){for(var r=0;r<t.length;r++){if(t[r]!==null){e.data(n+t[r],e[0].style[t[r]])}}},restore:function(e,r){var i,s;for(s=0;s<r.length;s++){if(r[s]!==null){i=e.data(n+r[s]);if(i===t){i=""}e.css(r[s],i)}}},setMode:function(e,t){if(t==="toggle"){t=e.is(":hidden")?"show":"hide"}return t},getBaseline:function(e,t){var n,r;switch(e[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=e[0]/t.height}switch(e[1]){case"left":r=0;break;case"center":r=.5;break;case"right":r=1;break;default:r=e[1]/t.width}return{x:r,y:n}},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper")){return t.parent()}var n={width:t.outerWidth(true),height:t.outerHeight(true),"float":t.css("float")},r=e("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),i={width:t.width(),height:t.height()},s=document.activeElement;try{s.id}catch(o){s=document.body}t.wrap(r);if(t[0]===s||e.contains(t[0],s)){e(s).focus()}r=t.parent();if(t.css("position")==="static"){r.css({position:"relative"});t.css({position:"relative"})}else{e.extend(n,{position:t.css("position"),zIndex:t.css("z-index")});e.each(["top","left","bottom","right"],function(e,r){n[r]=t.css(r);if(isNaN(parseInt(n[r],10))){n[r]="auto"}});t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}t.css(i);return r.css(n).show()},removeWrapper:function(t){var n=document.activeElement;if(t.parent().is(".ui-effects-wrapper")){t.parent().replaceWith(t);if(t[0]===n||e.contains(t[0],n)){e(n).focus()}}return t},setTransition:function(t,n,r,i){i=i||{};e.each(n,function(e,n){var s=t.cssUnit(n);if(s[0]>0){i[n]=s[0]*r+s[1]}});return i}});e.fn.extend({effect:function(){function o(n){function u(){if(e.isFunction(i)){i.call(r[0])}if(e.isFunction(n)){n()}}var r=e(this),i=t.complete,o=t.mode;if(r.is(":hidden")?o==="hide":o==="show"){r[o]();u()}else{s.call(r[0],t,u)}}var t=r.apply(this,arguments),n=t.mode,i=t.queue,s=e.effects.effect[t.effect];if(e.fx.off||!s){if(n){return this[n](t.duration,t.complete)}else{return this.each(function(){if(t.complete){t.complete.call(this)}})}}return i===false?this.each(o):this.queue(i||"fx",o)},show:function(e){return function(t){if(i(t)){return e.apply(this,arguments)}else{var n=r.apply(this,arguments);n.mode="show";return this.effect.call(this,n)}}}(e.fn.show),hide:function(e){return function(t){if(i(t)){return e.apply(this,arguments)}else{var n=r.apply(this,arguments);n.mode="hide";return this.effect.call(this,n)}}}(e.fn.hide),toggle:function(e){return function(t){if(i(t)||typeof t==="boolean"){return e.apply(this,arguments)}else{var n=r.apply(this,arguments);n.mode="toggle";return this.effect.call(this,n)}}}(e.fn.toggle),cssUnit:function(t){var n=this.css(t),r=[];e.each(["em","px","%","pt"],function(e,t){if(n.indexOf(t)>0){r=[parseFloat(n),t]}});return r}})})();(function(){var t={};e.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,n){t[n]=function(t){return Math.pow(t,e+2)}});e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return e===0||e===1?e:-Math.pow(2,8*(e-1))*Math.sin(((e-1)*80-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){var t,n=4;while(e<((t=Math.pow(2,--n))-1)/11){}return 1/Math.pow(4,3-n)-7.5625*Math.pow((t*3-2)/22-e,2)}});e.each(t,function(t,n){e.easing["easeIn"+t]=n;e.easing["easeOut"+t]=function(e){return 1-n(1-e)};e.easing["easeInOut"+t]=function(e){return e<.5?n(e*2)/2:1-n(e*-2+2)/2}})})()})(jQuery);(function(e,t){var n=/up|down|vertical/,r=/up|left|vertical|horizontal/;e.effects.effect.blind=function(t,i){var s=e(this),o=["position","top","bottom","left","right","height","width"],u=e.effects.setMode(s,t.mode||"hide"),a=t.direction||"up",f=n.test(a),l=f?"height":"width",c=f?"top":"left",h=r.test(a),p={},d=u==="show",v,m,g;if(s.parent().is(".ui-effects-wrapper")){e.effects.save(s.parent(),o)}else{e.effects.save(s,o)}s.show();v=e.effects.createWrapper(s).css({overflow:"hidden"});m=v[l]();g=parseFloat(v.css(c))||0;p[l]=d?m:0;if(!h){s.css(f?"bottom":"right",0).css(f?"top":"left","auto").css({position:"absolute"});p[c]=d?g:m+g}if(d){v.css(l,0);if(!h){v.css(c,g+m)}}v.animate(p,{duration:t.duration,easing:t.easing,queue:false,complete:function(){if(u==="hide"){s.hide()}e.effects.restore(s,o);e.effects.removeWrapper(s);i()}})}})(jQuery);(function(e,t){e.effects.effect.bounce=function(t,n){var r=e(this),i=["position","top","bottom","left","right","height","width"],s=e.effects.setMode(r,t.mode||"effect"),o=s==="hide",u=s==="show",a=t.direction||"up",f=t.distance,l=t.times||5,c=l*2+(u||o?1:0),h=t.duration/c,p=t.easing,d=a==="up"||a==="down"?"top":"left",v=a==="up"||a==="left",m,g,y,b=r.queue(),w=b.length;if(u||o){i.push("opacity")}e.effects.save(r,i);r.show();e.effects.createWrapper(r);if(!f){f=r[d==="top"?"outerHeight":"outerWidth"]()/3}if(u){y={opacity:1};y[d]=0;r.css("opacity",0).css(d,v?-f*2:f*2).animate(y,h,p)}if(o){f=f/Math.pow(2,l-1)}y={};y[d]=0;for(m=0;m<l;m++){g={};g[d]=(v?"-=":"+=")+f;r.animate(g,h,p).animate(y,h,p);f=o?f*2:f/2}if(o){g={opacity:0};g[d]=(v?"-=":"+=")+f;r.animate(g,h,p)}r.queue(function(){if(o){r.hide()}e.effects.restore(r,i);e.effects.removeWrapper(r);n()});if(w>1){b.splice.apply(b,[1,0].concat(b.splice(w,c+1)))}r.dequeue()}})(jQuery);(function(e,t){e.effects.effect.clip=function(t,n){var r=e(this),i=["position","top","bottom","left","right","height","width"],s=e.effects.setMode(r,t.mode||"hide"),o=s==="show",u=t.direction||"vertical",a=u==="vertical",f=a?"height":"width",l=a?"top":"left",c={},h,p,d;e.effects.save(r,i);r.show();h=e.effects.createWrapper(r).css({overflow:"hidden"});p=r[0].tagName==="IMG"?h:r;d=p[f]();if(o){p.css(f,0);p.css(l,d/2)}c[f]=o?d:0;c[l]=o?0:d/2;p.animate(c,{queue:false,duration:t.duration,easing:t.easing,complete:function(){if(!o){r.hide()}e.effects.restore(r,i);e.effects.removeWrapper(r);n()}})}})(jQuery);(function(e,t){e.effects.effect.drop=function(t,n){var r=e(this),i=["position","top","bottom","left","right","opacity","height","width"],s=e.effects.setMode(r,t.mode||"hide"),o=s==="show",u=t.direction||"left",a=u==="up"||u==="down"?"top":"left",f=u==="up"||u==="left"?"pos":"neg",l={opacity:o?1:0},c;e.effects.save(r,i);r.show();e.effects.createWrapper(r);c=t.distance||r[a==="top"?"outerHeight":"outerWidth"](true)/2;if(o){r.css("opacity",0).css(a,f==="pos"?-c:c)}l[a]=(o?f==="pos"?"+=":"-=":f==="pos"?"-=":"+=")+c;r.animate(l,{queue:false,duration:t.duration,easing:t.easing,complete:function(){if(s==="hide"){r.hide()}e.effects.restore(r,i);e.effects.removeWrapper(r);n()}})}})(jQuery);(function(e,t){e.effects.effect.explode=function(t,n){function y(){c.push(this);if(c.length===r*i){b()}}function b(){s.css({visibility:"visible"});e(c).remove();if(!u){s.hide()}n()}var r=t.pieces?Math.round(Math.sqrt(t.pieces)):3,i=r,s=e(this),o=e.effects.setMode(s,t.mode||"hide"),u=o==="show",a=s.show().css("visibility","hidden").offset(),f=Math.ceil(s.outerWidth()/i),l=Math.ceil(s.outerHeight()/r),c=[],h,p,d,v,m,g;for(h=0;h<r;h++){v=a.top+h*l;g=h-(r-1)/2;for(p=0;p<i;p++){d=a.left+p*f;m=p-(i-1)/2;s.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-p*f,top:-h*l}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:f,height:l,left:d+(u?m*f:0),top:v+(u?g*l:0),opacity:u?0:1}).animate({left:d+(u?0:m*f),top:v+(u?0:g*l),opacity:u?1:0},t.duration||500,t.easing,y)}}}})(jQuery);(function(e,t){e.effects.effect.fade=function(t,n){var r=e(this),i=e.effects.setMode(r,t.mode||"toggle");r.animate({opacity:i},{queue:false,duration:t.duration,easing:t.easing,complete:n})}})(jQuery);(function(e,t){e.effects.effect.fold=function(t,n){var r=e(this),i=["position","top","bottom","left","right","height","width"],s=e.effects.setMode(r,t.mode||"hide"),o=s==="show",u=s==="hide",a=t.size||15,f=/([0-9]+)%/.exec(a),l=!!t.horizFirst,c=o!==l,h=c?["width","height"]:["height","width"],p=t.duration/2,d,v,m={},g={};e.effects.save(r,i);r.show();d=e.effects.createWrapper(r).css({overflow:"hidden"});v=c?[d.width(),d.height()]:[d.height(),d.width()];if(f){a=parseInt(f[1],10)/100*v[u?0:1]}if(o){d.css(l?{height:0,width:a}:{height:a,width:0})}m[h[0]]=o?v[0]:a;g[h[1]]=o?v[1]:0;d.animate(m,p,t.easing).animate(g,p,t.easing,function(){if(u){r.hide()}e.effects.restore(r,i);e.effects.removeWrapper(r);n()})}})(jQuery);(function(e,t){e.effects.effect.highlight=function(t,n){var r=e(this),i=["backgroundImage","backgroundColor","opacity"],s=e.effects.setMode(r,t.mode||"show"),o={backgroundColor:r.css("backgroundColor")};if(s==="hide"){o.opacity=0}e.effects.save(r,i);r.show().css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(o,{queue:false,duration:t.duration,easing:t.easing,complete:function(){if(s==="hide"){r.hide()}e.effects.restore(r,i);n()}})}})(jQuery);(function(e,t){e.effects.effect.pulsate=function(t,n){var r=e(this),i=e.effects.setMode(r,t.mode||"show"),s=i==="show",o=i==="hide",u=s||i==="hide",a=(t.times||5)*2+(u?1:0),f=t.duration/a,l=0,c=r.queue(),h=c.length,p;if(s||!r.is(":visible")){r.css("opacity",0).show();l=1}for(p=1;p<a;p++){r.animate({opacity:l},f,t.easing);l=1-l}r.animate({opacity:l},f,t.easing);r.queue(function(){if(o){r.hide()}n()});if(h>1){c.splice.apply(c,[1,0].concat(c.splice(h,a+1)))}r.dequeue()}})(jQuery);(function(e,t){e.effects.effect.puff=function(t,n){var r=e(this),i=e.effects.setMode(r,t.mode||"hide"),s=i==="hide",o=parseInt(t.percent,10)||150,u=o/100,a={height:r.height(),width:r.width(),outerHeight:r.outerHeight(),outerWidth:r.outerWidth()};e.extend(t,{effect:"scale",queue:false,fade:true,mode:i,complete:n,percent:s?o:100,from:s?a:{height:a.height*u,width:a.width*u,outerHeight:a.outerHeight*u,outerWidth:a.outerWidth*u}});r.effect(t)};e.effects.effect.scale=function(t,n){var r=e(this),i=e.extend(true,{},t),s=e.effects.setMode(r,t.mode||"effect"),o=parseInt(t.percent,10)||(parseInt(t.percent,10)===0?0:s==="hide"?0:100),u=t.direction||"both",a=t.origin,f={height:r.height(),width:r.width(),outerHeight:r.outerHeight(),outerWidth:r.outerWidth()},l={y:u!=="horizontal"?o/100:1,x:u!=="vertical"?o/100:1};i.effect="size";i.queue=false;i.complete=n;if(s!=="effect"){i.origin=a||["middle","center"];i.restore=true}i.from=t.from||(s==="show"?{height:0,width:0,outerHeight:0,outerWidth:0}:f);i.to={height:f.height*l.y,width:f.width*l.x,outerHeight:f.outerHeight*l.y,outerWidth:f.outerWidth*l.x};if(i.fade){if(s==="show"){i.from.opacity=0;i.to.opacity=1}if(s==="hide"){i.from.opacity=1;i.to.opacity=0}}r.effect(i)};e.effects.effect.size=function(t,n){var r,i,s,o=e(this),u=["position","top","bottom","left","right","width","height","overflow","opacity"],a=["position","top","bottom","left","right","overflow","opacity"],f=["width","height","overflow"],l=["fontSize"],c=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],h=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],p=e.effects.setMode(o,t.mode||"effect"),d=t.restore||p!=="effect",v=t.scale||"both",m=t.origin||["middle","center"],g=o.css("position"),y=d?u:a,b={height:0,width:0,outerHeight:0,outerWidth:0};if(p==="show"){o.show()}r={height:o.height(),width:o.width(),outerHeight:o.outerHeight(),outerWidth:o.outerWidth()};if(t.mode==="toggle"&&p==="show"){o.from=t.to||b;o.to=t.from||r}else{o.from=t.from||(p==="show"?b:r);o.to=t.to||(p==="hide"?b:r)}s={from:{y:o.from.height/r.height,x:o.from.width/r.width},to:{y:o.to.height/r.height,x:o.to.width/r.width}};if(v==="box"||v==="both"){if(s.from.y!==s.to.y){y=y.concat(c);o.from=e.effects.setTransition(o,c,s.from.y,o.from);o.to=e.effects.setTransition(o,c,s.to.y,o.to)}if(s.from.x!==s.to.x){y=y.concat(h);o.from=e.effects.setTransition(o,h,s.from.x,o.from);o.to=e.effects.setTransition(o,h,s.to.x,o.to)}}if(v==="content"||v==="both"){if(s.from.y!==s.to.y){y=y.concat(l).concat(f);o.from=e.effects.setTransition(o,l,s.from.y,o.from);o.to=e.effects.setTransition(o,l,s.to.y,o.to)}}e.effects.save(o,y);o.show();e.effects.createWrapper(o);o.css("overflow","hidden").css(o.from);if(m){i=e.effects.getBaseline(m,r);o.from.top=(r.outerHeight-o.outerHeight())*i.y;o.from.left=(r.outerWidth-o.outerWidth())*i.x;o.to.top=(r.outerHeight-o.to.outerHeight)*i.y;o.to.left=(r.outerWidth-o.to.outerWidth)*i.x}o.css(o.from);if(v==="content"||v==="both"){c=c.concat(["marginTop","marginBottom"]).concat(l);h=h.concat(["marginLeft","marginRight"]);f=u.concat(c).concat(h);o.find("*[width]").each(function(){var n=e(this),r={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()};if(d){e.effects.save(n,f)}n.from={height:r.height*s.from.y,width:r.width*s.from.x,outerHeight:r.outerHeight*s.from.y,outerWidth:r.outerWidth*s.from.x};n.to={height:r.height*s.to.y,width:r.width*s.to.x,outerHeight:r.height*s.to.y,outerWidth:r.width*s.to.x};if(s.from.y!==s.to.y){n.from=e.effects.setTransition(n,c,s.from.y,n.from);n.to=e.effects.setTransition(n,c,s.to.y,n.to)}if(s.from.x!==s.to.x){n.from=e.effects.setTransition(n,h,s.from.x,n.from);n.to=e.effects.setTransition(n,h,s.to.x,n.to)}n.css(n.from);n.animate(n.to,t.duration,t.easing,function(){if(d){e.effects.restore(n,f)}})})}o.animate(o.to,{queue:false,duration:t.duration,easing:t.easing,complete:function(){if(o.to.opacity===0){o.css("opacity",o.from.opacity)}if(p==="hide"){o.hide()}e.effects.restore(o,y);if(!d){if(g==="static"){o.css({position:"relative",top:o.to.top,left:o.to.left})}else{e.each(["top","left"],function(e,t){o.css(t,function(t,n){var r=parseInt(n,10),i=e?o.to.left:o.to.top;if(n==="auto"){return i+"px"}return r+i+"px"})})}}e.effects.removeWrapper(o);n()}})}})(jQuery);(function(e,t){e.effects.effect.shake=function(t,n){var r=e(this),i=["position","top","bottom","left","right","height","width"],s=e.effects.setMode(r,t.mode||"effect"),o=t.direction||"left",u=t.distance||20,a=t.times||3,f=a*2+1,l=Math.round(t.duration/f),c=o==="up"||o==="down"?"top":"left",h=o==="up"||o==="left",p={},d={},v={},m,g=r.queue(),y=g.length;e.effects.save(r,i);r.show();e.effects.createWrapper(r);p[c]=(h?"-=":"+=")+u;d[c]=(h?"+=":"-=")+u*2;v[c]=(h?"-=":"+=")+u*2;r.animate(p,l,t.easing);for(m=1;m<a;m++){r.animate(d,l,t.easing).animate(v,l,t.easing)}r.animate(d,l,t.easing).animate(p,l/2,t.easing).queue(function(){if(s==="hide"){r.hide()}e.effects.restore(r,i);e.effects.removeWrapper(r);n()});if(y>1){g.splice.apply(g,[1,0].concat(g.splice(y,f+1)))}r.dequeue()}})(jQuery);(function(e,t){e.effects.effect.slide=function(t,n){var r=e(this),i=["position","top","bottom","left","right","width","height"],s=e.effects.setMode(r,t.mode||"show"),o=s==="show",u=t.direction||"left",a=u==="up"||u==="down"?"top":"left",f=u==="up"||u==="left",l,c={};e.effects.save(r,i);r.show();l=t.distance||r[a==="top"?"outerHeight":"outerWidth"](true);e.effects.createWrapper(r).css({overflow:"hidden"});if(o){r.css(a,f?isNaN(l)?"-"+l:-l:l)}c[a]=(o?f?"+=":"-=":f?"-=":"+=")+l;r.animate(c,{queue:false,duration:t.duration,easing:t.easing,complete:function(){if(s==="hide"){r.hide()}e.effects.restore(r,i);e.effects.removeWrapper(r);n()}})}})(jQuery);(function(e,t){e.effects.effect.transfer=function(t,n){var r=e(this),i=e(t.to),s=i.css("position")==="fixed",o=e("body"),u=s?o.scrollTop():0,a=s?o.scrollLeft():0,f=i.offset(),l={top:f.top-u,left:f.left-a,height:i.innerHeight(),width:i.innerWidth()},c=r.offset(),h=e("<div class='ui-effects-transfer'></div>").appendTo(document.body).addClass(t.className).css({top:c.top-u,left:c.left-a,height:r.innerHeight(),width:r.innerWidth(),position:s?"fixed":"absolute"}).animate(l,t.duration,t.easing,function(){h.remove();n()})}})(jQuery);(function(e,t){e.widget("ui.menu",{version:"1.10.4",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element;this.mouseHandled=false;this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,e.proxy(function(e){if(this.options.disabled){e.preventDefault()}},this));if(this.options.disabled){this.element.addClass("ui-state-disabled").attr("aria-disabled","true")}this._on({"mousedown .ui-menu-item > a":function(e){e.preventDefault()},"click .ui-state-disabled > a":function(e){e.preventDefault()},"click .ui-menu-item:has(a)":function(t){var n=e(t.target).closest(".ui-menu-item");if(!this.mouseHandled&&n.not(".ui-state-disabled").length){this.select(t);if(!t.isPropagationStopped()){this.mouseHandled=true}if(n.has(".ui-menu").length){this.expand(t)}else if(!this.element.is(":focus")&&e(this.document[0].activeElement).closest(".ui-menu").length){this.element.trigger("focus",[true]);if(this.active&&this.active.parents(".ui-menu").length===1){clearTimeout(this.timer)}}}},"mouseenter .ui-menu-item":function(t){var n=e(t.currentTarget);n.siblings().children(".ui-state-active").removeClass("ui-state-active");this.focus(t,n)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var n=this.active||this.element.children(".ui-menu-item").eq(0);if(!t){this.focus(e,n)}},blur:function(t){this._delay(function(){if(!e.contains(this.element[0],this.document[0].activeElement)){this.collapseAll(t)}})},keydown:"_keydown"});this.refresh();this._on(this.document,{click:function(t){if(!e(t.target).closest(".ui-menu").length){this.collapseAll(t)}this.mouseHandled=false}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show();this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var t=e(this);if(t.data("ui-menu-submenu-carat")){t.remove()}});this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(t){function a(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var n,r,i,s,o,u=true;switch(t.keyCode){case e.ui.keyCode.PAGE_UP:this.previousPage(t);break;case e.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case e.ui.keyCode.HOME:this._move("first","first",t);break;case e.ui.keyCode.END:this._move("last","last",t);break;case e.ui.keyCode.UP:this.previous(t);break;case e.ui.keyCode.DOWN:this.next(t);break;case e.ui.keyCode.LEFT:this.collapse(t);break;case e.ui.keyCode.RIGHT:if(this.active&&!this.active.is(".ui-state-disabled")){this.expand(t)}break;case e.ui.keyCode.ENTER:case e.ui.keyCode.SPACE:this._activate(t);break;case e.ui.keyCode.ESCAPE:this.collapse(t);break;default:u=false;r=this.previousFilter||"";i=String.fromCharCode(t.keyCode);s=false;clearTimeout(this.filterTimer);if(i===r){s=true}else{i=r+i}o=new RegExp("^"+a(i),"i");n=this.activeMenu.children(".ui-menu-item").filter(function(){return o.test(e(this).children("a").text())});n=s&&n.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):n;if(!n.length){i=String.fromCharCode(t.keyCode);o=new RegExp("^"+a(i),"i");n=this.activeMenu.children(".ui-menu-item").filter(function(){return o.test(e(this).children("a").text())})}if(n.length){this.focus(t,n);if(n.length>1){this.previousFilter=i;this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)}else{delete this.previousFilter}}else{delete this.previousFilter}}if(u){t.preventDefault()}},_activate:function(e){if(!this.active.is(".ui-state-disabled")){if(this.active.children("a[aria-haspopup='true']").length){this.expand(e)}else{this.select(e)}}},refresh:function(){var t,n=this.options.icons.submenu,r=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length);r.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=e(this),r=t.prev("a"),i=e("<span>").addClass("ui-menu-icon ui-icon "+n).data("ui-menu-submenu-carat",true);r.attr("aria-haspopup","true").prepend(i);t.attr("aria-labelledby",r.attr("id"))});t=r.add(this.element);t.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()});t.children(":not(.ui-menu-item)").each(function(){var t=e(this);if(!/[^\-\u2014\u2013\s]/.test(t.text())){t.addClass("ui-widget-content ui-menu-divider")}});t.children(".ui-state-disabled").attr("aria-disabled","true");if(this.active&&!e.contains(this.element[0],this.active[0])){this.blur()}},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){if(e==="icons"){this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(t.submenu)}this._super(e,t)},focus:function(e,t){var n,r;this.blur(e,e&&e.type==="focus");this._scrollIntoView(t);this.active=t.first();r=this.active.children("a").addClass("ui-state-focus");if(this.options.role){this.element.attr("aria-activedescendant",r.attr("id"))}this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active");if(e&&e.type==="keydown"){this._close()}else{this.timer=this._delay(function(){this._close()},this.delay)}n=t.children(".ui-menu");if(n.length&&e&&/^mouse/.test(e.type)){this._startOpening(n)}this.activeMenu=t.parent();this._trigger("focus",e,{item:t})},_scrollIntoView:function(t){var n,r,i,s,o,u;if(this._hasScroll()){n=parseFloat(e.css(this.activeMenu[0],"borderTopWidth"))||0;r=parseFloat(e.css(this.activeMenu[0],"paddingTop"))||0;i=t.offset().top-this.activeMenu.offset().top-n-r;s=this.activeMenu.scrollTop();o=this.activeMenu.height();u=t.height();if(i<0){this.activeMenu.scrollTop(s+i)}else if(i+u>o){this.activeMenu.scrollTop(s+i-o+u)}}},blur:function(e,t){if(!t){clearTimeout(this.timer)}if(!this.active){return}this.active.children("a").removeClass("ui-state-focus");this.active=null;this._trigger("blur",e,{item:this.active})},_startOpening:function(e){clearTimeout(this.timer);if(e.attr("aria-hidden")!=="true"){return}this.timer=this._delay(function(){this._close();this._open(e)},this.delay)},_open:function(t){var n=e.extend({of:this.active},this.options.position);clearTimeout(this.timer);this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true");t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(n)},collapseAll:function(t,n){clearTimeout(this.timer);this.timer=this._delay(function(){var r=n?this.element:e(t&&t.target).closest(this.element.find(".ui-menu"));if(!r.length){r=this.element}this._close(r);this.blur(t);this.activeMenu=r},this.delay)},_close:function(e){if(!e){e=this.active?this.active.parent():this.element}e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);if(t&&t.length){this._close();this.focus(e,t)}},expand:function(e){var t=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();if(t&&t.length){this._open(t.parent());this._delay(function(){this.focus(e,t)})}},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(e,t,n){var r;if(this.active){if(e==="first"||e==="last"){r=this.active[e==="first"?"prevAll":"nextAll"](".ui-menu-item").eq(-1)}else{r=this.active[e+"All"](".ui-menu-item").eq(0)}}if(!r||!r.length||!this.active){r=this.activeMenu.children(".ui-menu-item")[t]()}this.focus(n,r)},nextPage:function(t){var n,r,i;if(!this.active){this.next(t);return}if(this.isLastItem()){return}if(this._hasScroll()){r=this.active.offset().top;i=this.element.height();this.active.nextAll(".ui-menu-item").each(function(){n=e(this);return n.offset().top-r-i<0});this.focus(t,n)}else{this.focus(t,this.activeMenu.children(".ui-menu-item")[!this.active?"first":"last"]())}},previousPage:function(t){var n,r,i;if(!this.active){this.next(t);return}if(this.isFirstItem()){return}if(this._hasScroll()){r=this.active.offset().top;i=this.element.height();this.active.prevAll(".ui-menu-item").each(function(){n=e(this);return n.offset().top-r+i>0});this.focus(t,n)}else{this.focus(t,this.activeMenu.children(".ui-menu-item").first())}},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||e(t.target).closest(".ui-menu-item");var n={item:this.active};if(!this.active.has(".ui-menu").length){this.collapseAll(t,true)}this._trigger("select",t,n)}})})(jQuery);(function(e,t){e.widget("ui.progressbar",{version:"1.10.4",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue();this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min});this.valueDiv=e("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");this.valueDiv.remove()},value:function(e){if(e===t){return this.options.value}this.options.value=this._constrainedValue(e);this._refreshValue()},_constrainedValue:function(e){if(e===t){e=this.options.value}this.indeterminate=e===false;if(typeof e!=="number"){e=0}return this.indeterminate?false:Math.min(this.options.max,Math.max(this.min,e))},_setOptions:function(e){var t=e.value;delete e.value;this._super(e);this.options.value=this._constrainedValue(t);this._refreshValue()},_setOption:function(e,t){if(e==="max"){t=Math.max(this.min,t)}this._super(e,t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,n=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).toggleClass("ui-corner-right",t===this.options.max).width(n.toFixed(0)+"%");this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate);if(this.indeterminate){this.element.removeAttr("aria-valuenow");if(!this.overlayDiv){this.overlayDiv=e("<div class='ui-progressbar-overlay'></div>").appendTo(this.valueDiv)}}else{this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t});if(this.overlayDiv){this.overlayDiv.remove();this.overlayDiv=null}}if(this.oldValue!==t){this.oldValue=t;this._trigger("change")}if(t===this.options.max){this._trigger("complete")}}})})(jQuery);(function(e,t){function n(e){return parseInt(e,10)||0}function r(e){return!isNaN(parseInt(e,10))}e.widget("ui.resizable",e.ui.mouse,{version:"1.10.4",widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_create:function(){var t,n,r,i,s,o=this,u=this.options;this.element.addClass("ui-resizable");e.extend(this,{_aspectRatio:!!u.aspectRatio,aspectRatio:u.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:u.helper||u.ghost||u.animate?u.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){this.element.wrap(e("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("ui-resizable",this.element.data("ui-resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=u.handles||(!e(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});if(this.handles.constructor===String){if(this.handles==="all"){this.handles="n,e,s,w,se,sw,ne,nw"}t=this.handles.split(",");this.handles={};for(n=0;n<t.length;n++){r=e.trim(t[n]);s="ui-resizable-"+r;i=e("<div class='ui-resizable-handle "+s+"'></div>");i.css({zIndex:u.zIndex});if("se"===r){i.addClass("ui-icon ui-icon-gripsmall-diagonal-se")}this.handles[r]=".ui-resizable-"+r;this.element.append(i)}}this._renderAxis=function(t){var n,r,i,s;t=t||this.element;for(n in this.handles){if(this.handles[n].constructor===String){this.handles[n]=e(this.handles[n],this.element).show()}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){r=e(this.handles[n],this.element);s=/sw|ne|nw|se|n|s/.test(n)?r.outerHeight():r.outerWidth();i=["padding",/ne|nw|n/.test(n)?"Top":/se|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join("");t.css(i,s);this._proportionallyResize()}if(!e(this.handles[n]).length){continue}}};this._renderAxis(this.element);this._handles=e(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!o.resizing){if(this.className){i=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}o.axis=i&&i[1]?i[1]:"se"}});if(u.autoHide){this._handles.hide();e(this.element).addClass("ui-resizable-autohide").mouseenter(function(){if(u.disabled){return}e(this).removeClass("ui-resizable-autohide");o._handles.show()}).mouseleave(function(){if(u.disabled){return}if(!o.resizing){e(this).addClass("ui-resizable-autohide");o._handles.hide()}})}this._mouseInit()},_destroy:function(){this._mouseDestroy();var t,n=function(t){e(t).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){n(this.element);t=this.element;this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t);t.remove()}this.originalElement.css("resize",this.originalResizeStyle);n(this.originalElement);return this},_mouseCapture:function(t){var n,r,i=false;for(n in this.handles){r=e(this.handles[n])[0];if(r===t.target||e.contains(r,t.target)){i=true}}return!this.options.disabled&&i},_mouseStart:function(t){var r,i,s,o=this.options,u=this.element.position(),a=this.element;this.resizing=true;if(/absolute/.test(a.css("position"))){a.css({position:"absolute",top:a.css("top"),left:a.css("left")})}else if(a.is(".ui-draggable")){a.css({position:"absolute",top:u.top,left:u.left})}this._renderProxy();r=n(this.helper.css("left"));i=n(this.helper.css("top"));if(o.containment){r+=e(o.containment).scrollLeft()||0;i+=e(o.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:r,top:i};this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:a.width(),height:a.height()};this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()};this.originalPosition={left:r,top:i};this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()};this.originalMousePosition={left:t.pageX,top:t.pageY};this.aspectRatio=typeof o.aspectRatio==="number"?o.aspectRatio:this.originalSize.width/this.originalSize.height||1;s=e(".ui-resizable-"+this.axis).css("cursor");e("body").css("cursor",s==="auto"?this.axis+"-resize":s);a.addClass("ui-resizable-resizing");this._propagate("start",t);return true},_mouseDrag:function(t){var n,r=this.helper,i={},s=this.originalMousePosition,o=this.axis,u=this.position.top,a=this.position.left,f=this.size.width,l=this.size.height,c=t.pageX-s.left||0,h=t.pageY-s.top||0,p=this._change[o];if(!p){return false}n=p.apply(this,[t,c,h]);this._updateVirtualBoundaries(t.shiftKey);if(this._aspectRatio||t.shiftKey){n=this._updateRatio(n,t)}n=this._respectSize(n,t);this._updateCache(n);this._propagate("resize",t);if(this.position.top!==u){i.top=this.position.top+"px"}if(this.position.left!==a){i.left=this.position.left+"px"}if(this.size.width!==f){i.width=this.size.width+"px"}if(this.size.height!==l){i.height=this.size.height+"px"}r.css(i);if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize()}if(!e.isEmptyObject(i)){this._trigger("resize",t,this.ui())}return false},_mouseStop:function(t){this.resizing=false;var n,r,i,s,o,u,a,f=this.options,l=this;if(this._helper){n=this._proportionallyResizeElements;r=n.length&&/textarea/i.test(n[0].nodeName);i=r&&e.ui.hasScroll(n[0],"left")?0:l.sizeDiff.height;s=r?0:l.sizeDiff.width;o={width:l.helper.width()-s,height:l.helper.height()-i};u=parseInt(l.element.css("left"),10)+(l.position.left-l.originalPosition.left)||null;a=parseInt(l.element.css("top"),10)+(l.position.top-l.originalPosition.top)||null;if(!f.animate){this.element.css(e.extend(o,{top:a,left:u}))}l.helper.height(l.size.height);l.helper.width(l.size.width);if(this._helper&&!f.animate){this._proportionallyResize()}}e("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",t);if(this._helper){this.helper.remove()}return false},_updateVirtualBoundaries:function(e){var t,n,i,s,o,u=this.options;o={minWidth:r(u.minWidth)?u.minWidth:0,maxWidth:r(u.maxWidth)?u.maxWidth:Infinity,minHeight:r(u.minHeight)?u.minHeight:0,maxHeight:r(u.maxHeight)?u.maxHeight:Infinity};if(this._aspectRatio||e){t=o.minHeight*this.aspectRatio;i=o.minWidth/this.aspectRatio;n=o.maxHeight*this.aspectRatio;s=o.maxWidth/this.aspectRatio;if(t>o.minWidth){o.minWidth=t}if(i>o.minHeight){o.minHeight=i}if(n<o.maxWidth){o.maxWidth=n}if(s<o.maxHeight){o.maxHeight=s}}this._vBoundaries=o},_updateCache:function(e){this.offset=this.helper.offset();if(r(e.left)){this.position.left=e.left}if(r(e.top)){this.position.top=e.top}if(r(e.height)){this.size.height=e.height}if(r(e.width)){this.size.width=e.width}},_updateRatio:function(e){var t=this.position,n=this.size,i=this.axis;if(r(e.height)){e.width=e.height*this.aspectRatio}else if(r(e.width)){e.height=e.width/this.aspectRatio}if(i==="sw"){e.left=t.left+(n.width-e.width);e.top=null}if(i==="nw"){e.top=t.top+(n.height-e.height);e.left=t.left+(n.width-e.width)}return e},_respectSize:function(e){var t=this._vBoundaries,n=this.axis,i=r(e.width)&&t.maxWidth&&t.maxWidth<e.width,s=r(e.height)&&t.maxHeight&&t.maxHeight<e.height,o=r(e.width)&&t.minWidth&&t.minWidth>e.width,u=r(e.height)&&t.minHeight&&t.minHeight>e.height,a=this.originalPosition.left+this.originalSize.width,f=this.position.top+this.size.height,l=/sw|nw|w/.test(n),c=/nw|ne|n/.test(n);if(o){e.width=t.minWidth}if(u){e.height=t.minHeight}if(i){e.width=t.maxWidth}if(s){e.height=t.maxHeight}if(o&&l){e.left=a-t.minWidth}if(i&&l){e.left=a-t.maxWidth}if(u&&c){e.top=f-t.minHeight}if(s&&c){e.top=f-t.maxHeight}if(!e.width&&!e.height&&!e.left&&e.top){e.top=null}else if(!e.width&&!e.height&&!e.top&&e.left){e.left=null}return e},_proportionallyResize:function(){if(!this._proportionallyResizeElements.length){return}var e,t,n,r,i,s=this.helper||this.element;for(e=0;e<this._proportionallyResizeElements.length;e++){i=this._proportionallyResizeElements[e];if(!this.borderDif){this.borderDif=[];n=[i.css("borderTopWidth"),i.css("borderRightWidth"),i.css("borderBottomWidth"),i.css("borderLeftWidth")];r=[i.css("paddingTop"),i.css("paddingRight"),i.css("paddingBottom"),i.css("paddingLeft")];for(t=0;t<n.length;t++){this.borderDif[t]=(parseInt(n[t],10)||0)+(parseInt(r[t],10)||0)}}i.css({height:s.height()-this.borderDif[0]-this.borderDif[2]||0,width:s.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var t=this.element,n=this.options;this.elementOffset=t.offset();if(this._helper){this.helper=this.helper||e("<div style='overflow:hidden;'></div>");this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++n.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var n=this.originalSize,r=this.originalPosition;return{left:r.left+t,width:n.width-t}},n:function(e,t,n){var r=this.originalSize,i=this.originalPosition;return{top:i.top+n,height:r.height-n}},s:function(e,t,n){return{height:this.originalSize.height+n}},se:function(t,n,r){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,n,r]))},sw:function(t,n,r){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,n,r]))},ne:function(t,n,r){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,n,r]))},nw:function(t,n,r){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,n,r]))}},_propagate:function(t,n){e.ui.plugin.call(this,t,[n,this.ui()]);t!=="resize"&&this._trigger(t,n,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});e.ui.plugin.add("resizable","animate",{stop:function(t){var n=e(this).data("ui-resizable"),r=n.options,i=n._proportionallyResizeElements,s=i.length&&/textarea/i.test(i[0].nodeName),o=s&&e.ui.hasScroll(i[0],"left")?0:n.sizeDiff.height,u=s?0:n.sizeDiff.width,a={width:n.size.width-u,height:n.size.height-o},f=parseInt(n.element.css("left"),10)+(n.position.left-n.originalPosition.left)||null,l=parseInt(n.element.css("top"),10)+(n.position.top-n.originalPosition.top)||null;n.element.animate(e.extend(a,l&&f?{top:l,left:f}:{}),{duration:r.animateDuration,easing:r.animateEasing,step:function(){var r={width:parseInt(n.element.css("width"),10),height:parseInt(n.element.css("height"),10),top:parseInt(n.element.css("top"),10),left:parseInt(n.element.css("left"),10)};if(i&&i.length){e(i[0]).css({width:r.width,height:r.height})}n._updateCache(r);n._propagate("resize",t)}})}});e.ui.plugin.add("resizable","containment",{start:function(){var t,r,i,s,o,u,a,f=e(this).data("ui-resizable"),l=f.options,c=f.element,h=l.containment,p=h instanceof e?h.get(0):/parent/.test(h)?c.parent().get(0):h;if(!p){return}f.containerElement=e(p);if(/document/.test(h)||h===document){f.containerOffset={left:0,top:0};f.containerPosition={left:0,top:0};f.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}}else{t=e(p);r=[];e(["Top","Right","Left","Bottom"]).each(function(e,i){r[e]=n(t.css("padding"+i))});f.containerOffset=t.offset();f.containerPosition=t.position();f.containerSize={height:t.innerHeight()-r[3],width:t.innerWidth()-r[1]};i=f.containerOffset;s=f.containerSize.height;o=f.containerSize.width;u=e.ui.hasScroll(p,"left")?p.scrollWidth:o;a=e.ui.hasScroll(p)?p.scrollHeight:s;f.parentData={element:p,left:i.left,top:i.top,width:u,height:a}}},resize:function(t){var n,r,i,s,o=e(this).data("ui-resizable"),u=o.options,a=o.containerOffset,f=o.position,l=o._aspectRatio||t.shiftKey,c={top:0,left:0},h=o.containerElement;if(h[0]!==document&&/static/.test(h.css("position"))){c=a}if(f.left<(o._helper?a.left:0)){o.size.width=o.size.width+(o._helper?o.position.left-a.left:o.position.left-c.left);if(l){o.size.height=o.size.width/o.aspectRatio}o.position.left=u.helper?a.left:0}if(f.top<(o._helper?a.top:0)){o.size.height=o.size.height+(o._helper?o.position.top-a.top:o.position.top);if(l){o.size.width=o.size.height*o.aspectRatio}o.position.top=o._helper?a.top:0}o.offset.left=o.parentData.left+o.position.left;o.offset.top=o.parentData.top+o.position.top;n=Math.abs((o._helper?o.offset.left-c.left:o.offset.left-c.left)+o.sizeDiff.width);r=Math.abs((o._helper?o.offset.top-c.top:o.offset.top-a.top)+o.sizeDiff.height);i=o.containerElement.get(0)===o.element.parent().get(0);s=/relative|absolute/.test(o.containerElement.css("position"));if(i&&s){n-=Math.abs(o.parentData.left)}if(n+o.size.width>=o.parentData.width){o.size.width=o.parentData.width-n;if(l){o.size.height=o.size.width/o.aspectRatio}}if(r+o.size.height>=o.parentData.height){o.size.height=o.parentData.height-r;if(l){o.size.width=o.size.height*o.aspectRatio}}},stop:function(){var t=e(this).data("ui-resizable"),n=t.options,r=t.containerOffset,i=t.containerPosition,s=t.containerElement,o=e(t.helper),u=o.offset(),a=o.outerWidth()-t.sizeDiff.width,f=o.outerHeight()-t.sizeDiff.height;if(t._helper&&!n.animate&&/relative/.test(s.css("position"))){e(this).css({left:u.left-i.left-r.left,width:a,height:f})}if(t._helper&&!n.animate&&/static/.test(s.css("position"))){e(this).css({left:u.left-i.left-r.left,width:a,height:f})}}});e.ui.plugin.add("resizable","alsoResize",{start:function(){var t=e(this).data("ui-resizable"),n=t.options,r=function(t){e(t).each(function(){var t=e(this);t.data("ui-resizable-alsoresize",{width:parseInt(t.width(),10),height:parseInt(t.height(),10),left:parseInt(t.css("left"),10),top:parseInt(t.css("top"),10)})})};if(typeof n.alsoResize==="object"&&!n.alsoResize.parentNode){if(n.alsoResize.length){n.alsoResize=n.alsoResize[0];r(n.alsoResize)}else{e.each(n.alsoResize,function(e){r(e)})}}else{r(n.alsoResize)}},resize:function(t,n){var r=e(this).data("ui-resizable"),i=r.options,s=r.originalSize,o=r.originalPosition,u={height:r.size.height-s.height||0,width:r.size.width-s.width||0,top:r.position.top-o.top||0,left:r.position.left-o.left||0},a=function(t,r){e(t).each(function(){var t=e(this),i=e(this).data("ui-resizable-alsoresize"),s={},o=r&&r.length?r:t.parents(n.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(o,function(e,t){var n=(i[t]||0)+(u[t]||0);if(n&&n>=0){s[t]=n||null}});t.css(s)})};if(typeof i.alsoResize==="object"&&!i.alsoResize.nodeType){e.each(i.alsoResize,function(e,t){a(e,t)})}else{a(i.alsoResize)}},stop:function(){e(this).removeData("resizable-alsoresize")}});e.ui.plugin.add("resizable","ghost",{start:function(){var t=e(this).data("ui-resizable"),n=t.options,r=t.size;t.ghost=t.originalElement.clone();t.ghost.css({opacity:.25,display:"block",position:"relative",height:r.height,width:r.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof n.ghost==="string"?n.ghost:"");t.ghost.appendTo(t.helper)},resize:function(){var t=e(this).data("ui-resizable");if(t.ghost){t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})}},stop:function(){var t=e(this).data("ui-resizable");if(t.ghost&&t.helper){t.helper.get(0).removeChild(t.ghost.get(0))}}});e.ui.plugin.add("resizable","grid",{resize:function(){var t=e(this).data("ui-resizable"),n=t.options,r=t.size,i=t.originalSize,s=t.originalPosition,o=t.axis,u=typeof n.grid==="number"?[n.grid,n.grid]:n.grid,a=u[0]||1,f=u[1]||1,l=Math.round((r.width-i.width)/a)*a,c=Math.round((r.height-i.height)/f)*f,h=i.width+l,p=i.height+c,d=n.maxWidth&&n.maxWidth<h,v=n.maxHeight&&n.maxHeight<p,m=n.minWidth&&n.minWidth>h,g=n.minHeight&&n.minHeight>p;n.grid=u;if(m){h=h+a}if(g){p=p+f}if(d){h=h-a}if(v){p=p-f}if(/^(se|s|e)$/.test(o)){t.size.width=h;t.size.height=p}else if(/^(ne)$/.test(o)){t.size.width=h;t.size.height=p;t.position.top=s.top-c}else if(/^(sw)$/.test(o)){t.size.width=h;t.size.height=p;t.position.left=s.left-l}else{if(p-f>0){t.size.height=p;t.position.top=s.top-c}else{t.size.height=f;t.position.top=s.top+i.height-f}if(h-a>0){t.size.width=h;t.position.left=s.left-l}else{t.size.width=a;t.position.left=s.left+i.width-a}}}})})(jQuery);(function(e,t){e.widget("ui.selectable",e.ui.mouse,{version:"1.10.4",options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var t,n=this;this.element.addClass("ui-selectable");this.dragged=false;this.refresh=function(){t=e(n.options.filter,n.element[0]);t.addClass("ui-selectee");t.each(function(){var t=e(this),n=t.offset();e.data(this,"selectable-item",{element:this,$element:t,left:n.left,top:n.top,right:n.left+t.outerWidth(),bottom:n.top+t.outerHeight(),startselected:false,selected:t.hasClass("ui-selected"),selecting:t.hasClass("ui-selecting"),unselecting:t.hasClass("ui-unselecting")})})};this.refresh();this.selectees=t.addClass("ui-selectee");this._mouseInit();this.helper=e("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled");this._mouseDestroy()},_mouseStart:function(t){var n=this,r=this.options;this.opos=[t.pageX,t.pageY];if(this.options.disabled){return}this.selectees=e(r.filter,this.element[0]);this._trigger("start",t);e(r.appendTo).append(this.helper);this.helper.css({left:t.pageX,top:t.pageY,width:0,height:0});if(r.autoRefresh){this.refresh()}this.selectees.filter(".ui-selected").each(function(){var r=e.data(this,"selectable-item");r.startselected=true;if(!t.metaKey&&!t.ctrlKey){r.$element.removeClass("ui-selected");r.selected=false;r.$element.addClass("ui-unselecting");r.unselecting=true;n._trigger("unselecting",t,{unselecting:r.element})}});e(t.target).parents().addBack().each(function(){var r,i=e.data(this,"selectable-item");if(i){r=!t.metaKey&&!t.ctrlKey||!i.$element.hasClass("ui-selected");i.$element.removeClass(r?"ui-unselecting":"ui-selected").addClass(r?"ui-selecting":"ui-unselecting");i.unselecting=!r;i.selecting=r;i.selected=r;if(r){n._trigger("selecting",t,{selecting:i.element})}else{n._trigger("unselecting",t,{unselecting:i.element})}return false}})},_mouseDrag:function(t){this.dragged=true;if(this.options.disabled){return}var n,r=this,i=this.options,s=this.opos[0],o=this.opos[1],u=t.pageX,a=t.pageY;if(s>u){n=u;u=s;s=n}if(o>a){n=a;a=o;o=n}this.helper.css({left:s,top:o,width:u-s,height:a-o});this.selectees.each(function(){var n=e.data(this,"selectable-item"),f=false;if(!n||n.element===r.element[0]){return}if(i.tolerance==="touch"){f=!(n.left>u||n.right<s||n.top>a||n.bottom<o)}else if(i.tolerance==="fit"){f=n.left>s&&n.right<u&&n.top>o&&n.bottom<a}if(f){if(n.selected){n.$element.removeClass("ui-selected");n.selected=false}if(n.unselecting){n.$element.removeClass("ui-unselecting");n.unselecting=false}if(!n.selecting){n.$element.addClass("ui-selecting");n.selecting=true;r._trigger("selecting",t,{selecting:n.element})}}else{if(n.selecting){if((t.metaKey||t.ctrlKey)&&n.startselected){n.$element.removeClass("ui-selecting");n.selecting=false;n.$element.addClass("ui-selected");n.selected=true}else{n.$element.removeClass("ui-selecting");n.selecting=false;if(n.startselected){n.$element.addClass("ui-unselecting");n.unselecting=true}r._trigger("unselecting",t,{unselecting:n.element})}}if(n.selected){if(!t.metaKey&&!t.ctrlKey&&!n.startselected){n.$element.removeClass("ui-selected");n.selected=false;n.$element.addClass("ui-unselecting");n.unselecting=true;r._trigger("unselecting",t,{unselecting:n.element})}}}});return false},_mouseStop:function(t){var n=this;this.dragged=false;e(".ui-unselecting",this.element[0]).each(function(){var r=e.data(this,"selectable-item");r.$element.removeClass("ui-unselecting");r.unselecting=false;r.startselected=false;n._trigger("unselected",t,{unselected:r.element})});e(".ui-selecting",this.element[0]).each(function(){var r=e.data(this,"selectable-item");r.$element.removeClass("ui-selecting").addClass("ui-selected");r.selecting=false;r.selected=true;r.startselected=true;n._trigger("selected",t,{selected:r.element})});this._trigger("stop",t);this.helper.remove();return false}})})(jQuery);(function(e,t){var n=5;e.widget("ui.slider",e.ui.mouse,{version:"1.10.4",widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._keySliding=false;this._mouseSliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider"+" ui-slider-"+this.orientation+" ui-widget"+" ui-widget-content"+" ui-corner-all");this._refresh();this._setOption("disabled",this.options.disabled);this._animateOff=false},_refresh:function(){this._createRange();this._createHandles();this._setupEvents();this._refreshValue()},_createHandles:function(){var t,n,r=this.options,i=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),s="<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",o=[];n=r.values&&r.values.length||1;if(i.length>n){i.slice(n).remove();i=i.slice(0,n)}for(t=i.length;t<n;t++){o.push(s)}this.handles=i.add(e(o.join("")).appendTo(this.element));this.handle=this.handles.eq(0);this.handles.each(function(t){e(this).data("ui-slider-handle-index",t)})},_createRange:function(){var t=this.options,n="";if(t.range){if(t.range===true){if(!t.values){t.values=[this._valueMin(),this._valueMin()]}else if(t.values.length&&t.values.length!==2){t.values=[t.values[0],t.values[0]]}else if(e.isArray(t.values)){t.values=t.values.slice(0)}}if(!this.range||!this.range.length){this.range=e("<div></div>").appendTo(this.element);n="ui-slider-range"+" ui-widget-header ui-corner-all"}else{this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""})}this.range.addClass(n+(t.range==="min"||t.range==="max"?" ui-slider-range-"+t.range:""))}else{if(this.range){this.range.remove()}this.range=null}},_setupEvents:function(){var e=this.handles.add(this.range).filter("a");this._off(e);this._on(e,this._handleEvents);this._hoverable(e);this._focusable(e)},_destroy:function(){this.handles.remove();if(this.range){this.range.remove()}this.element.removeClass("ui-slider"+" ui-slider-horizontal"+" ui-slider-vertical"+" ui-widget"+" ui-widget-content"+" ui-corner-all");this._mouseDestroy()},_mouseCapture:function(t){var n,r,i,s,o,u,a,f,l=this,c=this.options;if(c.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();n={x:t.pageX,y:t.pageY};r=this._normValueFromMouse(n);i=this._valueMax()-this._valueMin()+1;this.handles.each(function(t){var n=Math.abs(r-l.values(t));if(i>n||i===n&&(t===l._lastChangedValue||l.values(t)===c.min)){i=n;s=e(this);o=t}});u=this._start(t,o);if(u===false){return false}this._mouseSliding=true;this._handleIndex=o;s.addClass("ui-state-active").focus();a=s.offset();f=!e(t.target).parents().addBack().is(".ui-slider-handle");this._clickOffset=f?{left:0,top:0}:{left:t.pageX-a.left-s.width()/2,top:t.pageY-a.top-s.height()/2-(parseInt(s.css("borderTopWidth"),10)||0)-(parseInt(s.css("borderBottomWidth"),10)||0)+(parseInt(s.css("marginTop"),10)||0)};if(!this.handles.hasClass("ui-state-hover")){this._slide(t,o,r)}this._animateOff=true;return true},_mouseStart:function(){return true},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(t);this._slide(e,this._handleIndex,n);return false},_mouseStop:function(e){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(e,this._handleIndex);this._change(e,this._handleIndex);this._handleIndex=null;this._clickOffset=null;this._animateOff=false;return false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,n,r,i,s;if(this.orientation==="horizontal"){t=this.elementSize.width;n=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{t=this.elementSize.height;n=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}r=n/t;if(r>1){r=1}if(r<0){r=0}if(this.orientation==="vertical"){r=1-r}i=this._valueMax()-this._valueMin();s=this._valueMin()+r*i;return this._trimAlignValue(s)},_start:function(e,t){var n={handle:this.handles[t],value:this.value()};if(this.options.values&&this.options.values.length){n.value=this.values(t);n.values=this.values()}return this._trigger("start",e,n)},_slide:function(e,t,n){var r,i,s;if(this.options.values&&this.options.values.length){r=this.values(t?0:1);if(this.options.values.length===2&&this.options.range===true&&(t===0&&n>r||t===1&&n<r)){n=r}if(n!==this.values(t)){i=this.values();i[t]=n;s=this._trigger("slide",e,{handle:this.handles[t],value:n,values:i});r=this.values(t?0:1);if(s!==false){this.values(t,n)}}}else{if(n!==this.value()){s=this._trigger("slide",e,{handle:this.handles[t],value:n});if(s!==false){this.value(n)}}}},_stop:function(e,t){var n={handle:this.handles[t],value:this.value()};if(this.options.values&&this.options.values.length){n.value=this.values(t);n.values=this.values()}this._trigger("stop",e,n)},_change:function(e,t){if(!this._keySliding&&!this._mouseSliding){var n={handle:this.handles[t],value:this.value()};if(this.options.values&&this.options.values.length){n.value=this.values(t);n.values=this.values()}this._lastChangedValue=t;this._trigger("change",e,n)}},value:function(e){if(arguments.length){this.options.value=this._trimAlignValue(e);this._refreshValue();this._change(null,0);return}return this._value()},values:function(t,n){var r,i,s;if(arguments.length>1){this.options.values[t]=this._trimAlignValue(n);this._refreshValue();this._change(null,t);return}if(arguments.length){if(e.isArray(arguments[0])){r=this.options.values;i=arguments[0];for(s=0;s<r.length;s+=1){r[s]=this._trimAlignValue(i[s]);this._change(null,s)}this._refreshValue()}else{if(this.options.values&&this.options.values.length){return this._values(t)}else{return this.value()}}}else{return this._values()}},_setOption:function(t,n){var r,i=0;if(t==="range"&&this.options.range===true){if(n==="min"){this.options.value=this._values(0);this.options.values=null}else if(n==="max"){this.options.value=this._values(this.options.values.length-1);this.options.values=null}}if(e.isArray(this.options.values)){i=this.options.values.length}e.Widget.prototype._setOption.apply(this,arguments);switch(t){case"orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case"value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case"values":this._animateOff=true;this._refreshValue();for(r=0;r<i;r+=1){this._change(null,r)}this._animateOff=false;break;case"min":case"max":this._animateOff=true;this._refreshValue();this._animateOff=false;break;case"range":this._animateOff=true;this._refresh();this._animateOff=false;break}},_value:function(){var e=this.options.value;e=this._trimAlignValue(e);return e},_values:function(e){var t,n,r;if(arguments.length){t=this.options.values[e];t=this._trimAlignValue(t);return t}else if(this.options.values&&this.options.values.length){n=this.options.values.slice();for(r=0;r<n.length;r+=1){n[r]=this._trimAlignValue(n[r])}return n}else{return[]}},_trimAlignValue:function(e){if(e<=this._valueMin()){return this._valueMin()}if(e>=this._valueMax()){return this._valueMax()}var t=this.options.step>0?this.options.step:1,n=(e-this._valueMin())%t,r=e-n;if(Math.abs(n)*2>=t){r+=n>0?t:-t}return parseFloat(r.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var t,n,r,i,s,o=this.options.range,u=this.options,a=this,f=!this._animateOff?u.animate:false,l={};if(this.options.values&&this.options.values.length){this.handles.each(function(r){n=(a.values(r)-a._valueMin())/(a._valueMax()-a._valueMin())*100;l[a.orientation==="horizontal"?"left":"bottom"]=n+"%";e(this).stop(1,1)[f?"animate":"css"](l,u.animate);if(a.options.range===true){if(a.orientation==="horizontal"){if(r===0){a.range.stop(1,1)[f?"animate":"css"]({left:n+"%"},u.animate)}if(r===1){a.range[f?"animate":"css"]({width:n-t+"%"},{queue:false,duration:u.animate})}}else{if(r===0){a.range.stop(1,1)[f?"animate":"css"]({bottom:n+"%"},u.animate)}if(r===1){a.range[f?"animate":"css"]({height:n-t+"%"},{queue:false,duration:u.animate})}}}t=n})}else{r=this.value();i=this._valueMin();s=this._valueMax();n=s!==i?(r-i)/(s-i)*100:0;l[this.orientation==="horizontal"?"left":"bottom"]=n+"%";this.handle.stop(1,1)[f?"animate":"css"](l,u.animate);if(o==="min"&&this.orientation==="horizontal"){this.range.stop(1,1)[f?"animate":"css"]({width:n+"%"},u.animate)}if(o==="max"&&this.orientation==="horizontal"){this.range[f?"animate":"css"]({width:100-n+"%"},{queue:false,duration:u.animate})}if(o==="min"&&this.orientation==="vertical"){this.range.stop(1,1)[f?"animate":"css"]({height:n+"%"},u.animate)}if(o==="max"&&this.orientation==="vertical"){this.range[f?"animate":"css"]({height:100-n+"%"},{queue:false,duration:u.animate})}}},_handleEvents:{keydown:function(t){var r,i,s,o,u=e(t.target).data("ui-slider-handle-index");switch(t.keyCode){case e.ui.keyCode.HOME:case e.ui.keyCode.END:case e.ui.keyCode.PAGE_UP:case e.ui.keyCode.PAGE_DOWN:case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:t.preventDefault();if(!this._keySliding){this._keySliding=true;e(t.target).addClass("ui-state-active");r=this._start(t,u);if(r===false){return}}break}o=this.options.step;if(this.options.values&&this.options.values.length){i=s=this.values(u)}else{i=s=this.value()}switch(t.keyCode){case e.ui.keyCode.HOME:s=this._valueMin();break;case e.ui.keyCode.END:s=this._valueMax();break;case e.ui.keyCode.PAGE_UP:s=this._trimAlignValue(i+(this._valueMax()-this._valueMin())/n);break;case e.ui.keyCode.PAGE_DOWN:s=this._trimAlignValue(i-(this._valueMax()-this._valueMin())/n);break;case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:if(i===this._valueMax()){return}s=this._trimAlignValue(i+o);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(i===this._valueMin()){return}s=this._trimAlignValue(i-o);break}this._slide(t,u,s)},click:function(e){e.preventDefault()},keyup:function(t){var n=e(t.target).data("ui-slider-handle-index");if(this._keySliding){this._keySliding=false;this._stop(t,n);this._change(t,n);e(t.target).removeClass("ui-state-active")}}}})})(jQuery);(function(e,t){function n(e,t,n){return e>t&&e<t+n}function r(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))}e.widget("ui.sortable",e.ui.mouse,{version:"1.10.4",widgetEventPrefix:"sort",ready:false,options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var e=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?e.axis==="x"||r(this.items[0].item):false;this.offset=this.element.offset();this._mouseInit();this.ready=true},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled");this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--){this.items[e].item.removeData(this.widgetName+"-item")}return this},_setOption:function(t,n){if(t==="disabled"){this.options[t]=n;this.widget().toggleClass("ui-sortable-disabled",!!n)}else{e.Widget.prototype._setOption.apply(this,arguments)}},_mouseCapture:function(t,n){var r=null,i=false,s=this;if(this.reverting){return false}if(this.options.disabled||this.options.type==="static"){return false}this._refreshItems(t);e(t.target).parents().each(function(){if(e.data(this,s.widgetName+"-item")===s){r=e(this);return false}});if(e.data(t.target,s.widgetName+"-item")===s){r=e(t.target)}if(!r){return false}if(this.options.handle&&!n){e(this.options.handle,r).find("*").addBack().each(function(){if(this===t.target){i=true}});if(!i){return false}}this.currentItem=r;this._removeCurrentsFromItems();return true},_mouseStart:function(t,n,r){var i,s,o=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(t);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");this.originalPosition=this._generatePosition(t);this.originalPageX=t.pageX;this.originalPageY=t.pageY;o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};if(this.helper[0]!==this.currentItem[0]){this.currentItem.hide()}this._createPlaceholder();if(o.containment){this._setContainment()}if(o.cursor&&o.cursor!=="auto"){s=this.document.find("body");this.storedCursor=s.css("cursor");s.css("cursor",o.cursor);this.storedStylesheet=e("<style>*{ cursor: "+o.cursor+" !important; }</style>").appendTo(s)}if(o.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")}this.helper.css("opacity",o.opacity)}if(o.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")}this.helper.css("zIndex",o.zIndex)}if(this.scrollParent[0]!==document&&this.scrollParent[0].tagName!=="HTML"){this.overflowOffset=this.scrollParent.offset()}this._trigger("start",t,this._uiHash());if(!this._preserveHelperProportions){this._cacheHelperProportions()}if(!r){for(i=this.containers.length-1;i>=0;i--){this.containers[i]._trigger("activate",t,this._uiHash(this))}}if(e.ui.ddmanager){e.ui.ddmanager.current=this}if(e.ui.ddmanager&&!o.dropBehaviour){e.ui.ddmanager.prepareOffsets(this,t)}this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(t);return true},_mouseDrag:function(t){var n,r,i,s,o=this.options,u=false;this.position=this._generatePosition(t);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){if(this.scrollParent[0]!==document&&this.scrollParent[0].tagName!=="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<o.scrollSensitivity){this.scrollParent[0].scrollTop=u=this.scrollParent[0].scrollTop+o.scrollSpeed}else if(t.pageY-this.overflowOffset.top<o.scrollSensitivity){this.scrollParent[0].scrollTop=u=this.scrollParent[0].scrollTop-o.scrollSpeed}if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<o.scrollSensitivity){this.scrollParent[0].scrollLeft=u=this.scrollParent[0].scrollLeft+o.scrollSpeed}else if(t.pageX-this.overflowOffset.left<o.scrollSensitivity){this.scrollParent[0].scrollLeft=u=this.scrollParent[0].scrollLeft-o.scrollSpeed}}else{if(t.pageY-e(document).scrollTop()<o.scrollSensitivity){u=e(document).scrollTop(e(document).scrollTop()-o.scrollSpeed)}else if(e(window).height()-(t.pageY-e(document).scrollTop())<o.scrollSensitivity){u=e(document).scrollTop(e(document).scrollTop()+o.scrollSpeed)}if(t.pageX-e(document).scrollLeft()<o.scrollSensitivity){u=e(document).scrollLeft(e(document).scrollLeft()-o.scrollSpeed)}else if(e(window).width()-(t.pageX-e(document).scrollLeft())<o.scrollSensitivity){u=e(document).scrollLeft(e(document).scrollLeft()+o.scrollSpeed)}}if(u!==false&&e.ui.ddmanager&&!o.dropBehaviour){e.ui.ddmanager.prepareOffsets(this,t)}}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!=="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!=="x"){this.helper[0].style.top=this.position.top+"px"}for(n=this.items.length-1;n>=0;n--){r=this.items[n];i=r.item[0];s=this._intersectsWithPointer(r);if(!s){continue}if(r.instance!==this.currentContainer){continue}if(i!==this.currentItem[0]&&this.placeholder[s===1?"next":"prev"]()[0]!==i&&!e.contains(this.placeholder[0],i)&&(this.options.type==="semi-dynamic"?!e.contains(this.element[0],i):true)){this.direction=s===1?"down":"up";if(this.options.tolerance==="pointer"||this._intersectsWithSides(r)){this._rearrange(t,r)}else{break}this._trigger("change",t,this._uiHash());break}}this._contactContainers(t);if(e.ui.ddmanager){e.ui.ddmanager.drag(this,t)}this._trigger("sort",t,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(t,n){if(!t){return}if(e.ui.ddmanager&&!this.options.dropBehaviour){e.ui.ddmanager.drop(this,t)}if(this.options.revert){var r=this,i=this.placeholder.offset(),s=this.options.axis,o={};if(!s||s==="x"){o.left=i.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)}if(!s||s==="y"){o.top=i.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)}this.reverting=true;e(this.helper).animate(o,parseInt(this.options.revert,10)||500,function(){r._clear(t)})}else{this._clear(t,n)}return false},cancel:function(){if(this.dragging){this._mouseUp({target:null});if(this.options.helper==="original"){this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}for(var t=this.containers.length-1;t>=0;t--){this.containers[t]._trigger("deactivate",null,this._uiHash(this));if(this.containers[t].containerCache.over){this.containers[t]._trigger("out",null,this._uiHash(this));this.containers[t].containerCache.over=0}}}if(this.placeholder){if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0])}if(this.options.helper!=="original"&&this.helper&&this.helper[0].parentNode){this.helper.remove()}e.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev){e(this.domPosition.prev).after(this.currentItem)}else{e(this.domPosition.parent).prepend(this.currentItem)}}return this},serialize:function(t){var n=this._getItemsAsjQuery(t&&t.connected),r=[];t=t||{};e(n).each(function(){var n=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);if(n){r.push((t.key||n[1]+"[]")+"="+(t.key&&t.expression?n[1]:n[2]))}});if(!r.length&&t.key){r.push(t.key+"=")}return r.join("&")},toArray:function(t){var n=this._getItemsAsjQuery(t&&t.connected),r=[];t=t||{};n.each(function(){r.push(e(t.item||this).attr(t.attribute||"id")||"")});return r},_intersectsWith:function(e){var t=this.positionAbs.left,n=t+this.helperProportions.width,r=this.positionAbs.top,i=r+this.helperProportions.height,s=e.left,o=s+e.width,u=e.top,a=u+e.height,f=this.offset.click.top,l=this.offset.click.left,c=this.options.axis==="x"||r+f>u&&r+f<a,h=this.options.axis==="y"||t+l>s&&t+l<o,p=c&&h;if(this.options.tolerance==="pointer"||this.options.forcePointerForContainers||this.options.tolerance!=="pointer"&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]){return p}else{return s<t+this.helperProportions.width/2&&n-this.helperProportions.width/2<o&&u<r+this.helperProportions.height/2&&i-this.helperProportions.height/2<a}},_intersectsWithPointer:function(e){var t=this.options.axis==="x"||n(this.positionAbs.top+this.offset.click.top,e.top,e.height),r=this.options.axis==="y"||n(this.positionAbs.left+this.offset.click.left,e.left,e.width),i=t&&r,s=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();if(!i){return false}return this.floating?o&&o==="right"||s==="down"?2:1:s&&(s==="down"?2:1)},_intersectsWithSides:function(e){var t=n(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),r=n(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),i=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();if(this.floating&&s){return s==="right"&&r||s==="left"&&!r}else{return i&&(i==="down"&&t||i==="up"&&!t)}},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return e!==0&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return e!==0&&(e>0?"right":"left")},refresh:function(e){this._refreshItems(e);this.refreshPositions();return this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){function f(){o.push(this)}var n,r,i,s,o=[],u=[],a=this._connectWith();if(a&&t){for(n=a.length-1;n>=0;n--){i=e(a[n]);for(r=i.length-1;r>=0;r--){s=e.data(i[r],this.widgetFullName);if(s&&s!==this&&!s.options.disabled){u.push([e.isFunction(s.options.items)?s.options.items.call(s.element):e(s.options.items,s.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),s])}}}}u.push([e.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(n=u.length-1;n>=0;n--){u[n][0].each(f)}return e(o)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,function(e){for(var n=0;n<t.length;n++){if(t[n]===e.item[0]){return false}}return true})},_refreshItems:function(t){this.items=[];this.containers=[this];var n,r,i,s,o,u,a,f,l=this.items,c=[[e.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):e(this.options.items,this.element),this]],h=this._connectWith();if(h&&this.ready){for(n=h.length-1;n>=0;n--){i=e(h[n]);for(r=i.length-1;r>=0;r--){s=e.data(i[r],this.widgetFullName);if(s&&s!==this&&!s.options.disabled){c.push([e.isFunction(s.options.items)?s.options.items.call(s.element[0],t,{item:this.currentItem}):e(s.options.items,s.element),s]);this.containers.push(s)}}}}for(n=c.length-1;n>=0;n--){o=c[n][1];u=c[n][0];for(r=0,f=u.length;r<f;r++){a=e(u[r]);a.data(this.widgetName+"-item",o);l.push({item:a,instance:o,width:0,height:0,left:0,top:0})}}},refreshPositions:function(t){if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset()}var n,r,i,s;for(n=this.items.length-1;n>=0;n--){r=this.items[n];if(r.instance!==this.currentContainer&&this.currentContainer&&r.item[0]!==this.currentItem[0]){continue}i=this.options.toleranceElement?e(this.options.toleranceElement,r.item):r.item;if(!t){r.width=i.outerWidth();r.height=i.outerHeight()}s=i.offset();r.left=s.left;r.top=s.top}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(n=this.containers.length-1;n>=0;n--){s=this.containers[n].element.offset();this.containers[n].containerCache.left=s.left;this.containers[n].containerCache.top=s.top;this.containers[n].containerCache.width=this.containers[n].element.outerWidth();this.containers[n].containerCache.height=this.containers[n].element.outerHeight()}}return this},_createPlaceholder:function(t){t=t||this;var n,r=t.options;if(!r.placeholder||r.placeholder.constructor===String){n=r.placeholder;r.placeholder={element:function(){var r=t.currentItem[0].nodeName.toLowerCase(),i=e("<"+r+">",t.document[0]).addClass(n||t.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");if(r==="tr"){t.currentItem.children().each(function(){e("<td> </td>",t.document[0]).attr("colspan",e(this).attr("colspan")||1).appendTo(i)})}else if(r==="img"){i.attr("src",t.currentItem.attr("src"))}if(!n){i.css("visibility","hidden")}return i},update:function(e,i){if(n&&!r.forcePlaceholderSize){return}if(!i.height()){i.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10))}if(!i.width()){i.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10))}}}}t.placeholder=e(r.placeholder.element.call(t.element,t.currentItem));t.currentItem.after(t.placeholder);r.placeholder.update(t,t.placeholder)},_contactContainers:function(t){var i,s,o,u,a,f,l,c,h,p,d=null,v=null;for(i=this.containers.length-1;i>=0;i--){if(e.contains(this.currentItem[0],this.containers[i].element[0])){continue}if(this._intersectsWith(this.containers[i].containerCache)){if(d&&e.contains(this.containers[i].element[0],d.element[0])){continue}d=this.containers[i];v=i}else{if(this.containers[i].containerCache.over){this.containers[i]._trigger("out",t,this._uiHash(this));this.containers[i].containerCache.over=0}}}if(!d){return}if(this.containers.length===1){if(!this.containers[v].containerCache.over){this.containers[v]._trigger("over",t,this._uiHash(this));this.containers[v].containerCache.over=1}}else{o=1e4;u=null;p=d.floating||r(this.currentItem);a=p?"left":"top";f=p?"width":"height";l=this.positionAbs[a]+this.offset.click[a];for(s=this.items.length-1;s>=0;s--){if(!e.contains(this.containers[v].element[0],this.items[s].item[0])){continue}if(this.items[s].item[0]===this.currentItem[0]){continue}if(p&&!n(this.positionAbs.top+this.offset.click.top,this.items[s].top,this.items[s].height)){continue}c=this.items[s].item.offset()[a];h=false;if(Math.abs(c-l)>Math.abs(c+this.items[s][f]-l)){h=true;c+=this.items[s][f]}if(Math.abs(c-l)<o){o=Math.abs(c-l);u=this.items[s];this.direction=h?"up":"down"}}if(!u&&!this.options.dropOnEmpty){return}if(this.currentContainer===this.containers[v]){return}u?this._rearrange(t,u,null,true):this._rearrange(t,null,this.containers[v].element,true);this._trigger("change",t,this._uiHash());this.containers[v]._trigger("change",t,this._uiHash(this));this.currentContainer=this.containers[v];this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[v]._trigger("over",t,this._uiHash(this));this.containers[v].containerCache.over=1}},_createHelper:function(t){var n=this.options,r=e.isFunction(n.helper)?e(n.helper.apply(this.element[0],[t,this.currentItem])):n.helper==="clone"?this.currentItem.clone():this.currentItem;if(!r.parents("body").length){e(n.appendTo!=="parent"?n.appendTo:this.currentItem[0].parentNode)[0].appendChild(r[0])}if(r[0]===this.currentItem[0]){this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}}if(!r[0].style.width||n.forceHelperSize){r.width(this.currentItem.width())}if(!r[0].style.height||n.forceHelperSize){r.height(this.currentItem.height())}return r},_adjustOffsetFromHelper:function(t){if(typeof t==="string"){t=t.split(" ")}if(e.isArray(t)){t={left:+t[0],top:+t[1]||0}}if("left"in t){this.offset.click.left=t.left+this.margins.left}if("right"in t){this.offset.click.left=this.helperProportions.width-t.right+this.margins.left}if("top"in t){this.offset.click.top=t.top+this.margins.top}if("bottom"in t){this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();if(this.cssPosition==="absolute"&&this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])){t.left+=this.scrollParent.scrollLeft();t.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()==="html"&&e.ui.ie){t={top:0,left:0}}return{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==="relative"){var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,n,r,i=this.options;if(i.containment==="parent"){i.containment=this.helper[0].parentNode}if(i.containment==="document"||i.containment==="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,e(i.containment==="document"?document:window).width()-this.helperProportions.width-this.margins.left,(e(i.containment==="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!/^(document|window|parent)$/.test(i.containment)){t=e(i.containment)[0];n=e(i.containment).offset();r=e(t).css("overflow")!=="hidden";this.containment=[n.left+(parseInt(e(t).css("borderLeftWidth"),10)||0)+(parseInt(e(t).css("paddingLeft"),10)||0)-this.margins.left,n.top+(parseInt(e(t).css("borderTopWidth"),10)||0)+(parseInt(e(t).css("paddingTop"),10)||0)-this.margins.top,n.left+(r?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(e(t).css("borderLeftWidth"),10)||0)-(parseInt(e(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,n.top+(r?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(e(t).css("borderTopWidth"),10)||0)-(parseInt(e(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(t,n){if(!n){n=this.position}var r=t==="absolute"?1:-1,i=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,s=/(html|body)/i.test(i[0].tagName);return{top:n.top+this.offset.relative.top*r+this.offset.parent.top*r-(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():s?0:i.scrollTop())*r,left:n.left+this.offset.relative.left*r+this.offset.parent.left*r-(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():s?0:i.scrollLeft())*r}},_generatePosition:function(t){var n,r,i=this.options,s=t.pageX,o=t.pageY,u=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,a=/(html|body)/i.test(u[0].tagName);if(this.cssPosition==="relative"&&!(this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}if(this.originalPosition){if(this.containment){if(t.pageX-this.offset.click.left<this.containment[0]){s=this.containment[0]+this.offset.click.left}if(t.pageY-this.offset.click.top<this.containment[1]){o=this.containment[1]+this.offset.click.top}if(t.pageX-this.offset.click.left>this.containment[2]){s=this.containment[2]+this.offset.click.left}if(t.pageY-this.offset.click.top>this.containment[3]){o=this.containment[3]+this.offset.click.top}}if(i.grid){n=this.originalPageY+Math.round((o-this.originalPageY)/i.grid[1])*i.grid[1];o=this.containment?n-this.offset.click.top>=this.containment[1]&&n-this.offset.click.top<=this.containment[3]?n:n-this.offset.click.top>=this.containment[1]?n-i.grid[1]:n+i.grid[1]:n;r=this.originalPageX+Math.round((s-this.originalPageX)/i.grid[0])*i.grid[0];s=this.containment?r-this.offset.click.left>=this.containment[0]&&r-this.offset.click.left<=this.containment[2]?r:r-this.offset.click.left>=this.containment[0]?r-i.grid[0]:r+i.grid[0]:r}}return{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():a?0:u.scrollTop()),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():a?0:u.scrollLeft())}},_rearrange:function(e,t,n,r){n?n[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],this.direction==="down"?t.item[0]:t.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var i=this.counter;this._delay(function(){if(i===this.counter){this.refreshPositions(!r)}})},_clear:function(e,t){function i(e,t,n){return function(r){n._trigger(e,r,t._uiHash(t))}}this.reverting=false;var n,r=[];if(!this._noFinalSort&&this.currentItem.parent().length){this.placeholder.before(this.currentItem)}this._noFinalSort=null;if(this.helper[0]===this.currentItem[0]){for(n in this._storedCSS){if(this._storedCSS[n]==="auto"||this._storedCSS[n]==="static"){this._storedCSS[n]=""}}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}if(this.fromOutside&&!t){r.push(function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))})}if((this.fromOutside||this.domPosition.prev!==this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!==this.currentItem.parent()[0])&&!t){r.push(function(e){this._trigger("update",e,this._uiHash())})}if(this!==this.currentContainer){if(!t){r.push(function(e){this._trigger("remove",e,this._uiHash())});r.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer));r.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer))}}for(n=this.containers.length-1;n>=0;n--){if(!t){r.push(i("deactivate",this,this.containers[n]))}if(this.containers[n].containerCache.over){r.push(i("out",this,this.containers[n]));this.containers[n].containerCache.over=0}}if(this.storedCursor){this.document.find("body").css("cursor",this.storedCursor);this.storedStylesheet.remove()}if(this._storedOpacity){this.helper.css("opacity",this._storedOpacity)}if(this._storedZIndex){this.helper.css("zIndex",this._storedZIndex==="auto"?"":this._storedZIndex)}this.dragging=false;if(this.cancelHelperRemoval){if(!t){this._trigger("beforeStop",e,this._uiHash());for(n=0;n<r.length;n++){r[n].call(this,e)}this._trigger("stop",e,this._uiHash())}this.fromOutside=false;return false}if(!t){this._trigger("beforeStop",e,this._uiHash())}this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(this.helper[0]!==this.currentItem[0]){this.helper.remove()}this.helper=null;if(!t){for(n=0;n<r.length;n++){r[n].call(this,e)}this._trigger("stop",e,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){if(e.Widget.prototype._trigger.apply(this,arguments)===false){this.cancel()}},_uiHash:function(t){var n=t||this;return{helper:n.helper,placeholder:n.placeholder||e([]),position:n.position,originalPosition:n.originalPosition,offset:n.positionAbs,item:n.currentItem,sender:t?t.element:null}}})})(jQuery);(function(e){function t(e){return function(){var t=this.element.val();e.apply(this,arguments);this._refresh();if(t!==this.element.val()){this._trigger("change")}}}e.widget("ui.spinner",{version:"1.10.4",defaultElement:"<input>",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:true,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max);this._setOption("min",this.options.min);this._setOption("step",this.options.step);if(this.value()!==""){this._value(this.element.val(),true)}this._draw();this._on(this._events);this._refresh();this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var t={},n=this.element;e.each(["min","max","step"],function(e,r){var i=n.attr(r);if(i!==undefined&&i.length){t[r]=i}});return t},_events:{keydown:function(e){if(this._start(e)&&this._keydown(e)){e.preventDefault()}},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(e){if(this.cancelBlur){delete this.cancelBlur;return}this._stop();this._refresh();if(this.previous!==this.element.val()){this._trigger("change",e)}},mousewheel:function(e,t){if(!t){return}if(!this.spinning&&!this._start(e)){return false}this._spin((t>0?1:-1)*this.options.step,e);clearTimeout(this.mousewheelTimer);this.mousewheelTimer=this._delay(function(){if(this.spinning){this._stop(e)}},100);e.preventDefault()},"mousedown .ui-spinner-button":function(t){function r(){var e=this.element[0]===this.document[0].activeElement;if(!e){this.element.focus();this.previous=n;this._delay(function(){this.previous=n})}}var n;n=this.element[0]===this.document[0].activeElement?this.previous:this.element.val();t.preventDefault();r.call(this);this.cancelBlur=true;this._delay(function(){delete this.cancelBlur;r.call(this)});if(this._start(t)===false){return}this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(!e(t.currentTarget).hasClass("ui-state-active")){return}if(this._start(t)===false){return false}this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var e=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton");this.buttons=e.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all");if(this.buttons.height()>Math.ceil(e.height()*.5)&&e.height()>0){e.height(e.height())}if(this.options.disabled){this.disable()}},_keydown:function(t){var n=this.options,r=e.ui.keyCode;switch(t.keyCode){case r.UP:this._repeat(null,1,t);return true;case r.DOWN:this._repeat(null,-1,t);return true;case r.PAGE_UP:this._repeat(null,n.page,t);return true;case r.PAGE_DOWN:this._repeat(null,-n.page,t);return true}return false},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>"},_buttonHtml:function(){return""+"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'>"+"<span class='ui-icon "+this.options.icons.up+"'>▲</span>"+"</a>"+"<a class='ui-spinner-button ui-spinner-down ui-corner-br'>"+"<span class='ui-icon "+this.options.icons.down+"'>▼</span>"+"</a>"},_start:function(e){if(!this.spinning&&this._trigger("start",e)===false){return false}if(!this.counter){this.counter=1}this.spinning=true;return true},_repeat:function(e,t,n){e=e||500;clearTimeout(this.timer);this.timer=this._delay(function(){this._repeat(40,t,n)},e);this._spin(t*this.options.step,n)},_spin:function(e,t){var n=this.value()||0;if(!this.counter){this.counter=1}n=this._adjustValue(n+e*this._increment(this.counter));if(!this.spinning||this._trigger("spin",t,{value:n})!==false){this._value(n);this.counter++}},_increment:function(t){var n=this.options.incremental;if(n){return e.isFunction(n)?n(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1)}return 1},_precision:function(){var e=this._precisionOf(this.options.step);if(this.options.min!==null){e=Math.max(e,this._precisionOf(this.options.min))}return e},_precisionOf:function(e){var t=e.toString(),n=t.indexOf(".");return n===-1?0:t.length-n-1},_adjustValue:function(e){var t,n,r=this.options;t=r.min!==null?r.min:0;n=e-t;n=Math.round(n/r.step)*r.step;e=t+n;e=parseFloat(e.toFixed(this._precision()));if(r.max!==null&&e>r.max){return r.max}if(r.min!==null&&e<r.min){return r.min}return e},_stop:function(e){if(!this.spinning){return}clearTimeout(this.timer);clearTimeout(this.mousewheelTimer);this.counter=0;this.spinning=false;this._trigger("stop",e)},_setOption:function(e,t){if(e==="culture"||e==="numberFormat"){var n=this._parse(this.element.val());this.options[e]=t;this.element.val(this._format(n));return}if(e==="max"||e==="min"||e==="step"){if(typeof t==="string"){t=this._parse(t)}}if(e==="icons"){this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(t.up);this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(t.down)}this._super(e,t);if(e==="disabled"){if(t){this.element.prop("disabled",true);this.buttons.button("disable")}else{this.element.prop("disabled",false);this.buttons.button("enable")}}},_setOptions:t(function(e){this._super(e);this._value(this.element.val())}),_parse:function(e){if(typeof e==="string"&&e!==""){e=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(e,10,this.options.culture):+e}return e===""||isNaN(e)?null:e},_format:function(e){if(e===""){return""}return window.Globalize&&this.options.numberFormat?Globalize.format(e,this.options.numberFormat,this.options.culture):e},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},_value:function(e,t){var n;if(e!==""){n=this._parse(e);if(n!==null){if(!t){n=this._adjustValue(n)}e=this._format(n)}}this.element.val(e);this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",false).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");this.uiSpinner.replaceWith(this.element)},stepUp:t(function(e){this._stepUp(e)}),_stepUp:function(e){if(this._start()){this._spin((e||1)*this.options.step);this._stop()}},stepDown:t(function(e){this._stepDown(e)}),_stepDown:function(e){if(this._start()){this._spin((e||1)*-this.options.step);this._stop()}},pageUp:t(function(e){this._stepUp((e||1)*this.options.page)}),pageDown:t(function(e){this._stepDown((e||1)*this.options.page)}),value:function(e){if(!arguments.length){return this._parse(this.element.val())}t(this._value).call(this,e)},widget:function(){return this.uiSpinner}})})(jQuery);(function(e,t){function i(){return++n}function s(e){e=e.cloneNode(false);return e.hash.length>1&&decodeURIComponent(e.href.replace(r,""))===decodeURIComponent(location.href.replace(r,""))}var n=0,r=/#.*$/;e.widget("ui.tabs",{version:"1.10.4",delay:300,options:{active:null,collapsible:false,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var t=this,n=this.options;this.running=false;this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",n.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(t){if(e(this).is(".ui-state-disabled")){t.preventDefault()}}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){if(e(this).closest("li").is(".ui-state-disabled")){this.blur()}});this._processTabs();n.active=this._initialActive();if(e.isArray(n.disabled)){n.disabled=e.unique(n.disabled.concat(e.map(this.tabs.filter(".ui-state-disabled"),function(e){return t.tabs.index(e)}))).sort()}if(this.options.active!==false&&this.anchors.length){this.active=this._findActive(n.active)}else{this.active=e()}this._refresh();if(this.active.length){this.load(n.active)}},_initialActive:function(){var t=this.options.active,n=this.options.collapsible,r=location.hash.substring(1);if(t===null){if(r){this.tabs.each(function(n,i){if(e(i).attr("aria-controls")===r){t=n;return false}})}if(t===null){t=this.tabs.index(this.tabs.filter(".ui-tabs-active"))}if(t===null||t===-1){t=this.tabs.length?0:false}}if(t!==false){t=this.tabs.index(this.tabs.eq(t));if(t===-1){t=n?false:0}}if(!n&&t===false&&this.anchors.length){t=0}return t},_getCreateEventData:function(){return{tab:this.active,panel:!this.active.length?e():this._getPanelForTab(this.active)}},_tabKeydown:function(t){var n=e(this.document[0].activeElement).closest("li"),r=this.tabs.index(n),i=true;if(this._handlePageNav(t)){return}switch(t.keyCode){case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:r++;break;case e.ui.keyCode.UP:case e.ui.keyCode.LEFT:i=false;r--;break;case e.ui.keyCode.END:r=this.anchors.length-1;break;case e.ui.keyCode.HOME:r=0;break;case e.ui.keyCode.SPACE:t.preventDefault();clearTimeout(this.activating);this._activate(r);return;case e.ui.keyCode.ENTER:t.preventDefault();clearTimeout(this.activating);this._activate(r===this.options.active?false:r);return;default:return}t.preventDefault();clearTimeout(this.activating);r=this._focusNextTab(r,i);if(!t.ctrlKey){n.attr("aria-selected","false");this.tabs.eq(r).attr("aria-selected","true");this.activating=this._delay(function(){this.option("active",r)},this.delay)}},_panelKeydown:function(t){if(this._handlePageNav(t)){return}if(t.ctrlKey&&t.keyCode===e.ui.keyCode.UP){t.preventDefault();this.active.focus()}},_handlePageNav:function(t){if(t.altKey&&t.keyCode===e.ui.keyCode.PAGE_UP){this._activate(this._focusNextTab(this.options.active-1,false));return true}if(t.altKey&&t.keyCode===e.ui.keyCode.PAGE_DOWN){this._activate(this._focusNextTab(this.options.active+1,true));return true}},_findNextTab:function(t,n){function i(){if(t>r){t=0}if(t<0){t=r}return t}var r=this.tabs.length-1;while(e.inArray(i(),this.options.disabled)!==-1){t=n?t+1:t-1}return t},_focusNextTab:function(e,t){e=this._findNextTab(e,t);this.tabs.eq(e).focus();return e},_setOption:function(e,t){if(e==="active"){this._activate(t);return}if(e==="disabled"){this._setupDisabled(t);return}this._super(e,t);if(e==="collapsible"){this.element.toggleClass("ui-tabs-collapsible",t);if(!t&&this.options.active===false){this._activate(0)}}if(e==="event"){this._setupEvents(t)}if(e==="heightStyle"){this._setupHeightStyle(t)}},_tabId:function(e){return e.attr("aria-controls")||"ui-tabs-"+i()},_sanitizeSelector:function(e){return e?e.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,n=this.tablist.children(":has(a[href])");t.disabled=e.map(n.filter(".ui-state-disabled"),function(e){return n.index(e)});this._processTabs();if(t.active===false||!this.anchors.length){t.active=false;this.active=e()}else if(this.active.length&&!e.contains(this.tablist[0],this.active[0])){if(this.tabs.length===t.disabled.length){t.active=false;this.active=e()}else{this._activate(this._findNextTab(Math.max(0,t.active-1),false))}}else{t.active=this.tabs.index(this.active)}this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled);this._setupEvents(this.options.event);this._setupHeightStyle(this.options.heightStyle);this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1});this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"});if(!this.active.length){this.tabs.eq(0).attr("tabIndex",0)}else{this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0});this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})}},_processTabs:function(){var t=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist");this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1});this.anchors=this.tabs.map(function(){return e("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1});this.panels=e();this.anchors.each(function(n,r){var i,o,u,a=e(r).uniqueId().attr("id"),f=e(r).closest("li"),l=f.attr("aria-controls");if(s(r)){i=r.hash;o=t.element.find(t._sanitizeSelector(i))}else{u=t._tabId(f);i="#"+u;o=t.element.find(i);if(!o.length){o=t._createPanel(u);o.insertAfter(t.panels[n-1]||t.tablist)}o.attr("aria-live","polite")}if(o.length){t.panels=t.panels.add(o)}if(l){f.data("ui-tabs-aria-controls",l)}f.attr({"aria-controls":i.substring(1),"aria-labelledby":a});o.attr("aria-labelledby",a)});this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.tablist||this.element.find("ol,ul").eq(0)},_createPanel:function(t){return e("<div>").attr("id",t).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",true)},_setupDisabled:function(t){if(e.isArray(t)){if(!t.length){t=false}else if(t.length===this.anchors.length){t=true}}for(var n=0,r;r=this.tabs[n];n++){if(t===true||e.inArray(n,t)!==-1){e(r).addClass("ui-state-disabled").attr("aria-disabled","true")}else{e(r).removeClass("ui-state-disabled").removeAttr("aria-disabled")}}this.options.disabled=t},_setupEvents:function(t){var n={click:function(e){e.preventDefault()}};if(t){e.each(t.split(" "),function(e,t){n[t]="_eventHandler"})}this._off(this.anchors.add(this.tabs).add(this.panels));this._on(this.anchors,n);this._on(this.tabs,{keydown:"_tabKeydown"});this._on(this.panels,{keydown:"_panelKeydown"});this._focusable(this.tabs);this._hoverable(this.tabs)},_setupHeightStyle:function(t){var n,r=this.element.parent();if(t==="fill"){n=r.height();n-=this.element.outerHeight()-this.element.height();this.element.siblings(":visible").each(function(){var t=e(this),r=t.css("position");if(r==="absolute"||r==="fixed"){return}n-=t.outerHeight(true)});this.element.children().not(this.panels).each(function(){n-=e(this).outerHeight(true)});this.panels.each(function(){e(this).height(Math.max(0,n-e(this).innerHeight()+e(this).height()))}).css("overflow","auto")}else if(t==="auto"){n=0;this.panels.each(function(){n=Math.max(n,e(this).height("").height())}).height(n)}},_eventHandler:function(t){var n=this.options,r=this.active,i=e(t.currentTarget),s=i.closest("li"),o=s[0]===r[0],u=o&&n.collapsible,a=u?e():this._getPanelForTab(s),f=!r.length?e():this._getPanelForTab(r),l={oldTab:r,oldPanel:f,newTab:u?e():s,newPanel:a};t.preventDefault();if(s.hasClass("ui-state-disabled")||s.hasClass("ui-tabs-loading")||this.running||o&&!n.collapsible||this._trigger("beforeActivate",t,l)===false){return}n.active=u?false:this.tabs.index(s);this.active=o?e():s;if(this.xhr){this.xhr.abort()}if(!f.length&&!a.length){e.error("jQuery UI Tabs: Mismatching fragment identifier.")}if(a.length){this.load(this.tabs.index(s),t)}this._toggle(t,l)},_toggle:function(t,n){function o(){r.running=false;r._trigger("activate",t,n)}function u(){n.newTab.closest("li").addClass("ui-tabs-active ui-state-active");if(i.length&&r.options.show){r._show(i,r.options.show,o)}else{i.show();o()}}var r=this,i=n.newPanel,s=n.oldPanel;this.running=true;if(s.length&&this.options.hide){this._hide(s,this.options.hide,function(){n.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active");u()})}else{n.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active");s.hide();u()}s.attr({"aria-expanded":"false","aria-hidden":"true"});n.oldTab.attr("aria-selected","false");if(i.length&&s.length){n.oldTab.attr("tabIndex",-1)}else if(i.length){this.tabs.filter(function(){return e(this).attr("tabIndex")===0}).attr("tabIndex",-1)}i.attr({"aria-expanded":"true","aria-hidden":"false"});n.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(t){var n,r=this._findActive(t);if(r[0]===this.active[0]){return}if(!r.length){r=this.active}n=r.find(".ui-tabs-anchor")[0];this._eventHandler({target:n,currentTarget:n,preventDefault:e.noop})},_findActive:function(t){return t===false?e():this.tabs.eq(t)},_getIndex:function(e){if(typeof e==="string"){e=this.anchors.index(this.anchors.filter("[href$='"+e+"']"))}return e},_destroy:function(){if(this.xhr){this.xhr.abort()}this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible");this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role");this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId();this.tabs.add(this.panels).each(function(){if(e.data(this,"ui-tabs-destroy")){e(this).remove()}else{e(this).removeClass("ui-state-default ui-state-active ui-state-disabled "+"ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}});this.tabs.each(function(){var t=e(this),n=t.data("ui-tabs-aria-controls");if(n){t.attr("aria-controls",n).removeData("ui-tabs-aria-controls")}else{t.removeAttr("aria-controls")}});this.panels.show();if(this.options.heightStyle!=="content"){this.panels.css("height","")}},enable:function(n){var r=this.options.disabled;if(r===false){return}if(n===t){r=false}else{n=this._getIndex(n);if(e.isArray(r)){r=e.map(r,function(e){return e!==n?e:null})}else{r=e.map(this.tabs,function(e,t){return t!==n?t:null})}}this._setupDisabled(r)},disable:function(n){var r=this.options.disabled;if(r===true){return}if(n===t){r=true}else{n=this._getIndex(n);if(e.inArray(n,r)!==-1){return}if(e.isArray(r)){r=e.merge([n],r).sort()}else{r=[n]}}this._setupDisabled(r)},load:function(t,n){t=this._getIndex(t);var r=this,i=this.tabs.eq(t),o=i.find(".ui-tabs-anchor"),u=this._getPanelForTab(i),a={tab:i,panel:u};if(s(o[0])){return}this.xhr=e.ajax(this._ajaxSettings(o,n,a));if(this.xhr&&this.xhr.statusText!=="canceled"){i.addClass("ui-tabs-loading");u.attr("aria-busy","true");this.xhr.success(function(e){setTimeout(function(){u.html(e);r._trigger("load",n,a)},1)}).complete(function(e,t){setTimeout(function(){if(t==="abort"){r.panels.stop(false,true)}i.removeClass("ui-tabs-loading");u.removeAttr("aria-busy");if(e===r.xhr){delete r.xhr}},1)})}},_ajaxSettings:function(t,n,r){var i=this;return{url:t.attr("href"),beforeSend:function(t,s){return i._trigger("beforeLoad",n,e.extend({jqXHR:t,ajaxSettings:s},r))}}},_getPanelForTab:function(t){var n=e(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+n))}})})(jQuery);(function(e){function n(t,n){var r=(t.attr("aria-describedby")||"").split(/\s+/);r.push(n);t.data("ui-tooltip-id",n).attr("aria-describedby",e.trim(r.join(" ")))}function r(t){var n=t.data("ui-tooltip-id"),r=(t.attr("aria-describedby")||"").split(/\s+/),i=e.inArray(n,r);if(i!==-1){r.splice(i,1)}t.removeData("ui-tooltip-id");r=e.trim(r.join(" "));if(r){t.attr("aria-describedby",r)}else{t.removeAttr("aria-describedby")}}var t=0;e.widget("ui.tooltip",{version:"1.10.4",options:{content:function(){var t=e(this).attr("title")||"";return e("<a>").text(t).html()},hide:true,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:true,tooltipClass:null,track:false,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"});this.tooltips={};this.parents={};if(this.options.disabled){this._disable()}},_setOption:function(t,n){var r=this;if(t==="disabled"){this[n?"_disable":"_enable"]();this.options[t]=n;return}this._super(t,n);if(t==="content"){e.each(this.tooltips,function(e,t){r._updateContent(t)})}},_disable:function(){var t=this;e.each(this.tooltips,function(n,r){var i=e.Event("blur");i.target=i.currentTarget=r[0];t.close(i,true)});this.element.find(this.options.items).addBack().each(function(){var t=e(this);if(t.is("[title]")){t.data("ui-tooltip-title",t.attr("title")).attr("title","")}})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var t=e(this);if(t.data("ui-tooltip-title")){t.attr("title",t.data("ui-tooltip-title"))}})},open:function(t){var n=this,r=e(t?t.target:this.element).closest(this.options.items);if(!r.length||r.data("ui-tooltip-id")){return}if(r.attr("title")){r.data("ui-tooltip-title",r.attr("title"))}r.data("ui-tooltip-open",true);if(t&&t.type==="mouseover"){r.parents().each(function(){var t=e(this),r;if(t.data("ui-tooltip-open")){r=e.Event("blur");r.target=r.currentTarget=this;n.close(r,true)}if(t.attr("title")){t.uniqueId();n.parents[this.id]={element:this,title:t.attr("title")};t.attr("title","")}})}this._updateContent(r,t)},_updateContent:function(e,t){var n,r=this.options.content,i=this,s=t?t.type:null;if(typeof r==="string"){return this._open(t,e,r)}n=r.call(e[0],function(n){if(!e.data("ui-tooltip-open")){return}i._delay(function(){if(t){t.type=s}this._open(t,e,n)})});if(n){this._open(t,e,n)}},_open:function(t,r,i){function f(e){a.of=e;if(s.is(":hidden")){return}s.position(a)}var s,o,u,a=e.extend({},this.options.position);if(!i){return}s=this._find(r);if(s.length){s.find(".ui-tooltip-content").html(i);return}if(r.is("[title]")){if(t&&t.type==="mouseover"){r.attr("title","")}else{r.removeAttr("title")}}s=this._tooltip(r);n(r,s.attr("id"));s.find(".ui-tooltip-content").html(i);if(this.options.track&&t&&/^mouse/.test(t.type)){this._on(this.document,{mousemove:f});f(t)}else{s.position(e.extend({of:r},this.options.position))}s.hide();this._show(s,this.options.show);if(this.options.show&&this.options.show.delay){u=this.delayedShow=setInterval(function(){if(s.is(":visible")){f(a.of);clearInterval(u)}},e.fx.interval)}this._trigger("open",t,{tooltip:s});o={keyup:function(t){if(t.keyCode===e.ui.keyCode.ESCAPE){var n=e.Event(t);n.currentTarget=r[0];this.close(n,true)}},remove:function(){this._removeTooltip(s)}};if(!t||t.type==="mouseover"){o.mouseleave="close"}if(!t||t.type==="focusin"){o.focusout="close"}this._on(true,r,o)},close:function(t){var n=this,i=e(t?t.currentTarget:this.element),s=this._find(i);if(this.closing){return}clearInterval(this.delayedShow);if(i.data("ui-tooltip-title")){i.attr("title",i.data("ui-tooltip-title"))}r(i);s.stop(true);this._hide(s,this.options.hide,function(){n._removeTooltip(e(this))});i.removeData("ui-tooltip-open");this._off(i,"mouseleave focusout keyup");if(i[0]!==this.element[0]){this._off(i,"remove")}this._off(this.document,"mousemove");if(t&&t.type==="mouseleave"){e.each(this.parents,function(t,r){e(r.element).attr("title",r.title);delete n.parents[t]})}this.closing=true;this._trigger("close",t,{tooltip:s});this.closing=false},_tooltip:function(n){var r="ui-tooltip-"+t++,i=e("<div>").attr({id:r,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));e("<div>").addClass("ui-tooltip-content").appendTo(i);i.appendTo(this.document[0].body);this.tooltips[r]=n;return i},_find:function(t){var n=t.data("ui-tooltip-id");return n?e("#"+n):e()},_removeTooltip:function(e){e.remove();delete this.tooltips[e.attr("id")]},_destroy:function(){var t=this;e.each(this.tooltips,function(n,r){var i=e.Event("blur");i.target=i.currentTarget=r[0];t.close(i,true);e("#"+n).remove();if(r.data("ui-tooltip-title")){r.attr("title",r.data("ui-tooltip-title"));r.removeData("ui-tooltip-title")}})}})})(jQuery)
|
|
libs/controllers/sfsi_buttons_controller.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
add_action('wp_ajax_plus_updateSrcn1','sfsi_plus_options_updater1');
|
5 |
function sfsi_plus_options_updater1()
|
6 |
{
|
7 |
-
|
8 |
echo json_encode(array("wrong_nonce")); exit;
|
9 |
}
|
10 |
$option1= unserialize(get_option('sfsi_plus_section1_options',false));
|
@@ -20,21 +20,23 @@ function sfsi_plus_options_updater1()
|
|
20 |
$sfsi_plus_houzz_display = isset($_POST["sfsi_plus_houzz_display"]) ? $_POST["sfsi_plus_houzz_display"] : 'no';
|
21 |
$sfsi_plus_linkedin_display = isset($_POST["sfsi_plus_linkedin_display"]) ? $_POST["sfsi_plus_linkedin_display"] : 'no';
|
22 |
$sfsi_custom_icons = isset($option1['sfsi_custom_files']) ? $option1['sfsi_custom_files'] : '';
|
23 |
-
|
24 |
-
'sfsi_plus_rss_display'
|
25 |
-
'sfsi_plus_email_display'
|
26 |
-
'sfsi_plus_facebook_display'=> $sfsi_plus_facebook_display,
|
27 |
-
'sfsi_plus_twitter_display'
|
28 |
-
'sfsi_plus_google_display'
|
29 |
-
'sfsi_plus_share_display'
|
30 |
-
'sfsi_plus_youtube_display'
|
31 |
-
'sfsi_plus_pinterest_display' => $sfsi_plus_pinterest_display,
|
32 |
-
'sfsi_plus_linkedin_display' => $sfsi_plus_linkedin_display,
|
33 |
-
'sfsi_plus_instagram_display' => $sfsi_plus_instagram_display,
|
34 |
-
'sfsi_plus_houzz_display'
|
35 |
-
'sfsi_custom_files'
|
36 |
);
|
37 |
-
|
|
|
|
|
38 |
header('Content-Type: application/json');
|
39 |
echo json_encode(array("success")); exit;
|
40 |
}
|
@@ -46,105 +48,143 @@ function sfsi_plus_options_updater2()
|
|
46 |
{
|
47 |
echo json_encode(array("wrong_nonce")); exit;
|
48 |
}
|
49 |
-
$sfsi_plus_rss_url
|
50 |
-
$sfsi_plus_rss_icons
|
51 |
|
52 |
-
$sfsi_plus_facebookPage_option
|
53 |
-
$sfsi_plus_facebookPage_url
|
54 |
-
$sfsi_plus_facebookLike_option
|
55 |
-
$sfsi_plus_facebookShare_option= isset($_POST["sfsi_plus_facebookShare_option"]) ? $_POST["sfsi_plus_facebookShare_option"] : 'no';
|
56 |
|
57 |
-
$sfsi_plus_twitter_followme
|
58 |
$sfsi_plus_twitter_followUserName = isset($_POST["sfsi_plus_twitter_followUserName"]) ? trim($_POST["sfsi_plus_twitter_followUserName"]) : '';
|
59 |
-
$sfsi_plus_twitter_aboutPage
|
60 |
-
$sfsi_plus_twitter_page
|
61 |
-
$sfsi_plus_twitter_pageURL
|
62 |
-
$sfsi_plus_twitter_aboutPageText
|
63 |
-
|
64 |
-
$sfsi_plus_google_page = isset($_POST["sfsi_plus_google_page"]) ? $_POST["sfsi_plus_google_page"] : 'no';
|
65 |
-
$sfsi_plus_google_pageURL = isset($_POST["sfsi_plus_google_pageURL"]) ? trim($_POST["sfsi_plus_google_pageURL"]) : '';
|
66 |
-
$sfsi_plus_googleLike_option = isset($_POST["sfsi_plus_googleLike_option"]) ? $_POST["sfsi_plus_googleLike_option"] : 'no';
|
67 |
-
$sfsi_plus_googleShare_option = isset($_POST["sfsi_plus_googleShare_option"]) ? $_POST["sfsi_plus_googleShare_option"] : 'no';
|
68 |
|
69 |
-
$
|
70 |
-
$
|
71 |
-
$
|
|
|
72 |
|
73 |
-
$
|
74 |
-
$
|
75 |
-
$
|
76 |
|
77 |
-
$
|
|
|
|
|
78 |
|
79 |
-
$
|
80 |
-
$sfsi_plus_linkedin_pageURL = isset($_POST["sfsi_plus_linkedin_pageURL"]) ? trim($_POST["sfsi_plus_linkedin_pageURL"]) : '';
|
81 |
-
$sfsi_plus_linkedin_follow = isset($_POST["sfsi_plus_linkedin_follow"]) ? $_POST["sfsi_plus_linkedin_follow"] : 'no';
|
82 |
-
$sfsi_plus_linkedin_followCompany = isset($_POST["sfsi_plus_linkedin_followCompany"]) ? trim($_POST["sfsi_plus_linkedin_followCompany"]) : '';
|
83 |
-
$sfsi_plus_linkedin_SharePage = isset($_POST["sfsi_plus_linkedin_SharePage"]) ? $_POST["sfsi_plus_linkedin_SharePage"] : 'no';
|
84 |
-
$sfsi_plus_linkedin_recommendBusines = isset($_POST["sfsi_plus_linkedin_recommendBusines"]) ? $_POST["sfsi_plus_linkedin_recommendBusines"] : 'no';
|
85 |
-
$sfsi_plus_linkedin_recommendCompany = isset($_POST["sfsi_plus_linkedin_recommendCompany"]) ? trim($_POST["sfsi_plus_linkedin_recommendCompany"]) : '';
|
86 |
-
$sfsi_plus_linkedin_recommendProductId= isset($_POST["sfsi_plus_linkedin_recommendProductId"]) ? trim($_POST["sfsi_plus_linkedin_recommendProductId"]) : '';
|
87 |
|
88 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
|
90 |
-
$
|
91 |
-
|
92 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
$sfsi_plus_houzz_pageUrl = isset($_POST["sfsi_plus_houzz_pageUrl"]) ? trim($_POST["sfsi_plus_houzz_pageUrl"]) : '';
|
94 |
|
95 |
-
$option2=unserialize(get_option('sfsi_plus_section2_options',false));
|
96 |
-
$up_option2=array(
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
);
|
145 |
update_option('sfsi_plus_section2_options',serialize($up_option2));
|
146 |
-
|
147 |
-
|
|
|
|
|
|
|
|
|
148 |
header('Content-Type: application/json');
|
149 |
echo json_encode(array("success")); exit;
|
150 |
}
|
@@ -165,29 +205,38 @@ function sfsi_plus_options_updater3()
|
|
165 |
$sfsi_plus_specialIcon_animation = isset($_POST["sfsi_plus_specialIcon_animation"]) ? $_POST["sfsi_plus_specialIcon_animation"] : '';
|
166 |
$sfsi_plus_specialIcon_MouseOver = isset($_POST["sfsi_plus_specialIcon_MouseOver"]) ? $_POST["sfsi_plus_specialIcon_MouseOver"] : 'no';
|
167 |
$sfsi_plus_specialIcon_Firstload = isset($_POST["sfsi_plus_specialIcon_Firstload"]) ? $_POST["sfsi_plus_specialIcon_Firstload"] : 'no';
|
168 |
-
|
169 |
-
$
|
170 |
-
|
171 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
|
173 |
/* Design and animation option */
|
174 |
-
$up_option3 =array(
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
update_option('sfsi_plus_section3_options',serialize($up_option3));
|
192 |
header('Content-Type: application/json');
|
193 |
echo json_encode(array("success")); exit;
|
@@ -199,62 +248,64 @@ function sfsi_plus_options_updater4()
|
|
199 |
if ( !wp_verify_nonce( $_POST['nonce'], "update_plus_step4")) {
|
200 |
echo json_encode(array("wrong_nonce")); exit;
|
201 |
}
|
202 |
-
$sfsi_plus_display_counts
|
203 |
|
204 |
-
$sfsi_plus_email_countsDisplay
|
205 |
-
$sfsi_plus_email_countsFrom
|
206 |
-
$sfsi_plus_email_manualCounts
|
207 |
|
208 |
-
$sfsi_plus_rss_countsDisplay
|
209 |
-
$sfsi_plus_rss_manualCounts
|
210 |
|
211 |
-
$sfsi_plus_facebook_countsDisplay
|
212 |
$sfsi_plus_facebook_countsFrom = isset($_POST["sfsi_plus_facebook_countsFrom"]) ? $_POST["sfsi_plus_facebook_countsFrom"] : 'manual';
|
213 |
-
$sfsi_plus_facebook_mypageCounts
|
214 |
-
$sfsi_plus_facebook_manualCounts
|
215 |
-
$sfsi_plus_facebook_PageLink
|
216 |
|
217 |
-
$sfsi_plus_twitter_countsDisplay
|
218 |
-
$sfsi_plus_twitter_countsFrom
|
219 |
-
$sfsi_plus_twitter_manualCounts
|
220 |
-
$sfsiplus_tw_consumer_key
|
221 |
-
$sfsiplus_tw_consumer_secret
|
222 |
-
$sfsiplus_tw_oauth_access_token
|
223 |
-
$sfsiplus_tw_oauth_access_token_secret
|
|
|
|
|
224 |
|
225 |
-
$sfsi_plus_google_countsDisplay
|
226 |
-
$sfsi_plus_google_countsFrom
|
227 |
-
$sfsi_plus_google_manualCounts
|
228 |
-
$sfsi_plus_google_api_key
|
229 |
|
230 |
-
$sfsi_plus_linkedIn_countsDisplay
|
231 |
-
$sfsi_plus_linkedIn_countsFrom
|
232 |
-
$sfsi_plus_linkedIn_manualCounts
|
233 |
-
$sfsi_plus_ln_company
|
234 |
-
$sfsi_plus_ln_api_key
|
235 |
-
$sfsi_plus_ln_secret_key
|
236 |
-
$sfsi_plus_ln_oAuth_user_token
|
237 |
|
238 |
-
$sfsi_plus_youtube_countsDisplay
|
239 |
-
$sfsi_plus_youtube_countsFrom
|
240 |
-
$sfsi_plus_youtube_manualCounts
|
241 |
-
$sfsi_plus_youtube_user
|
242 |
-
$sfsi_plus_youtube_channelId
|
243 |
|
244 |
-
$sfsi_plus_pinterest_countsDisplay
|
245 |
-
$sfsi_plus_pinterest_countsFrom
|
246 |
-
$sfsi_plus_pinterest_manualCounts
|
247 |
-
$sfsi_plus_pinterest_user
|
248 |
-
$sfsi_plus_pinterest_board
|
249 |
|
250 |
-
$sfsi_plus_instagram_countsDisplay
|
251 |
-
$sfsi_plus_instagram_countsFrom
|
252 |
-
$sfsi_plus_instagram_manualCounts
|
253 |
-
$sfsi_plus_instagram_User
|
254 |
|
255 |
-
$sfsi_plus_shares_countsDisplay
|
256 |
-
$sfsi_plus_shares_countsFrom
|
257 |
-
$sfsi_plus_shares_manualCounts
|
258 |
|
259 |
$sfsi_plus_houzz_countsDisplay = isset($_POST["sfsi_plus_houzz_countsDisplay"]) ? $_POST["sfsi_plus_houzz_countsDisplay"] : 'no';
|
260 |
$sfsi_plus_houzz_countsFrom = isset($_POST["sfsi_plus_houzz_countsFrom"]) ? $_POST["sfsi_plus_houzz_countsFrom"] : 'manual';
|
@@ -262,73 +313,70 @@ function sfsi_plus_options_updater4()
|
|
262 |
|
263 |
$sfsi_plus_facebookPage_url = isset($_POST["sfsi_plus_facebookPage_url"]) ? trim($_POST["sfsi_plus_facebookPage_url"]) : '';
|
264 |
|
265 |
-
|
266 |
-
'sfsi_plus_display_counts'
|
267 |
|
268 |
-
'sfsi_plus_email_countsDisplay'
|
269 |
-
'sfsi_plus_email_countsFrom'
|
270 |
-
'sfsi_plus_email_manualCounts'
|
271 |
|
272 |
-
'sfsi_plus_rss_countsDisplay'
|
273 |
-
'sfsi_plus_rss_manualCounts'
|
274 |
|
275 |
-
'sfsi_plus_facebook_countsDisplay'=> $sfsi_plus_facebook_countsDisplay,
|
276 |
-
'sfsi_plus_facebook_countsFrom'
|
277 |
-
'sfsi_plus_facebook_mypageCounts'
|
278 |
-
'sfsi_plus_facebook_manualCounts'
|
279 |
-
//'sfsi_plus_facebook_PageLink'
|
280 |
|
281 |
-
'sfsi_plus_twitter_countsDisplay'
|
282 |
-
'sfsi_plus_twitter_countsFrom'
|
283 |
-
'sfsi_plus_twitter_manualCounts'
|
284 |
-
'sfsiplus_tw_consumer_key'
|
285 |
-
'sfsiplus_tw_consumer_secret'
|
286 |
-
'sfsiplus_tw_oauth_access_token'
|
287 |
-
'sfsiplus_tw_oauth_access_token_secret'
|
288 |
|
289 |
-
'sfsi_plus_google_countsDisplay'
|
290 |
-
'sfsi_plus_google_countsFrom'
|
291 |
-
'sfsi_plus_google_manualCounts'
|
292 |
-
'sfsi_plus_google_api_key'
|
293 |
|
294 |
-
'sfsi_plus_ln_company'
|
295 |
-
'sfsi_plus_ln_api_key'
|
296 |
-
'sfsi_plus_ln_secret_key'
|
297 |
-
'sfsi_plus_ln_oAuth_user_token'
|
298 |
-
'sfsi_plus_linkedIn_countsDisplay'=> $sfsi_plus_linkedIn_countsDisplay,
|
299 |
-
'sfsi_plus_linkedIn_countsFrom'
|
300 |
-
'sfsi_plus_linkedIn_manualCounts'
|
301 |
|
302 |
-
'sfsi_plus_youtube_countsDisplay'
|
303 |
-
'sfsi_plus_youtube_countsFrom'
|
304 |
-
'sfsi_plus_youtube_manualCounts'
|
305 |
-
'sfsi_plus_youtube_user'
|
306 |
-
'sfsi_plus_youtube_channelId'
|
307 |
|
308 |
-
'sfsi_plus_pinterest_countsDisplay'=> $sfsi_plus_pinterest_countsDisplay,
|
309 |
-
'sfsi_plus_pinterest_countsFrom'
|
310 |
-
'sfsi_plus_pinterest_manualCounts'
|
311 |
-
'sfsi_plus_pinterest_user'
|
312 |
-
'sfsi_plus_pinterest_board'
|
313 |
|
314 |
-
'sfsi_plus_instagram_countsFrom'
|
315 |
-
'sfsi_plus_instagram_countsDisplay'=> $sfsi_plus_instagram_countsDisplay,
|
316 |
-
'sfsi_plus_instagram_manualCounts'
|
317 |
-
'sfsi_plus_instagram_User'
|
318 |
|
319 |
-
'sfsi_plus_shares_countsDisplay'
|
320 |
-
'sfsi_plus_shares_countsFrom'
|
321 |
-
'sfsi_plus_shares_manualCounts'
|
322 |
|
323 |
-
'sfsi_plus_houzz_countsDisplay'
|
324 |
-
'sfsi_plus_houzz_countsFrom'
|
325 |
-
'sfsi_plus_houzz_manualCounts'
|
326 |
);
|
327 |
update_option('sfsi_plus_section4_options',serialize($up_option4));
|
328 |
|
329 |
-
//$option2=unserialize(get_option('sfsi_plus_section2_options',false));
|
330 |
-
//$option2['sfsi_plus_facebookPage_url']=$sfsi_plus_facebook_PageLink;
|
331 |
-
//update_option('sfsi_plus_section2_options',serialize($option2));
|
332 |
$new_counts = sfsi_plus_getCounts();
|
333 |
header('Content-Type: application/json');
|
334 |
echo json_encode(array("res"=>"success",'counts'=>$new_counts)); exit;
|
@@ -343,21 +391,10 @@ function sfsi_plus_options_updater5()
|
|
343 |
$sfsi_plus_icons_size = isset($_POST["sfsi_plus_icons_size"]) ? $_POST["sfsi_plus_icons_size"] : '51';
|
344 |
$sfsi_plus_icons_spacing = isset($_POST["sfsi_plus_icons_spacing"]) ? $_POST["sfsi_plus_icons_spacing"] : '2';
|
345 |
$sfsi_plus_icons_Alignment = isset($_POST["sfsi_plus_icons_Alignment"]) ? $_POST["sfsi_plus_icons_Alignment"] : 'center';
|
346 |
-
|
347 |
$sfsi_plus_icons_perRow = isset($_POST["sfsi_plus_icons_perRow"]) ? $_POST["sfsi_plus_icons_perRow"] : '5';
|
348 |
|
349 |
-
$sfsi_plus_follow_icons_language = isset($_POST["sfsi_plus_follow_icons_language"]) ? $_POST["sfsi_plus_follow_icons_language"] : 'Follow_en_US';
|
350 |
-
|
351 |
-
$sfsi_plus_facebook_icons_language = isset($_POST["sfsi_plus_facebook_icons_language"]) ? $_POST["sfsi_plus_facebook_icons_language"] : 'Visit_us_en_US';
|
352 |
-
|
353 |
-
$sfsi_plus_twitter_icons_language = isset($_POST["sfsi_plus_twitter_icons_language"]) ? $_POST["sfsi_plus_twitter_icons_language"] : 'Visit_us_en_US';
|
354 |
-
|
355 |
-
$sfsi_plus_google_icons_language = isset($_POST["sfsi_plus_google_icons_language"]) ? $_POST["sfsi_plus_google_icons_language"] : 'Visit_us_en_US';
|
356 |
-
|
357 |
$sfsi_plus_icons_language = isset($_POST["sfsi_plus_icons_language"]) ? $_POST["sfsi_plus_icons_language"] : 'en_US';
|
358 |
-
|
359 |
-
$sfsi_plus_icons_ClickPageOpen = isset($_POST["sfsi_plus_icons_ClickPageOpen"]) ? $_POST["sfsi_plus_icons_ClickPageOpen"] : 'no';
|
360 |
-
|
361 |
$sfsi_plus_icons_float = isset($_POST["sfsi_plus_icons_float"]) ? $_POST["sfsi_plus_icons_float"] : 'no';
|
362 |
$sfsi_plus_disable_floaticons = isset($_POST["sfsi_plus_disable_floaticons"]) ? $_POST["sfsi_plus_disable_floaticons"] : 'no';
|
363 |
$sfsi_plus_disable_viewport = isset($_POST["sfsi_plus_disable_viewport"]) ? $_POST["sfsi_plus_disable_viewport"] : 'no';
|
@@ -388,57 +425,62 @@ function sfsi_plus_options_updater5()
|
|
388 |
$sfsi_plus_linkedinIcon_order = isset($_POST["sfsi_plus_linkedinIcon_order"]) ? $_POST["sfsi_plus_linkedinIcon_order"] : '9';
|
389 |
$sfsi_plus_instagramIcon_order = isset($_POST["sfsi_plus_instagramIcon_order"]) ? $_POST["sfsi_plus_instagramIcon_order"] : '10';
|
390 |
$sfsi_plus_houzzIcon_order = isset($_POST["sfsi_plus_houzzIcon_order"]) ? $_POST["sfsi_plus_houzzIcon_order"] : '11';
|
391 |
-
$sfsi_plus_custom_MouseOverTexts = isset($_POST["sfsi_plus_custom_MouseOverTexts"]) ? serialize($_POST["sfsi_plus_custom_MouseOverTexts"])
|
392 |
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
|
|
|
|
|
|
|
|
|
|
401 |
$up_option5=array(
|
402 |
-
'sfsi_plus_icons_size'
|
403 |
-
'sfsi_plus_icons_spacing'
|
404 |
-
'sfsi_plus_icons_Alignment'
|
405 |
-
'sfsi_plus_icons_perRow'
|
406 |
-
'sfsi_plus_follow_icons_language'
|
407 |
-
'sfsi_plus_facebook_icons_language'
|
408 |
-
'sfsi_plus_twitter_icons_language'
|
409 |
-
'sfsi_plus_google_icons_language'
|
410 |
-
'sfsi_plus_icons_language'
|
411 |
-
'sfsi_plus_icons_ClickPageOpen'
|
412 |
-
'sfsi_plus_icons_float'
|
413 |
-
'sfsi_plus_disable_floaticons'
|
414 |
-
'sfsi_plus_disable_viewport'
|
415 |
-
'sfsi_plus_icons_floatPosition'
|
416 |
-
'sfsi_plus_icons_stick'
|
417 |
/* mouse over texts */
|
418 |
-
'sfsi_plus_rss_MouseOverText'
|
419 |
-
'sfsi_plus_email_MouseOverText'
|
420 |
-
'sfsi_plus_twitter_MouseOverText'
|
421 |
-
'sfsi_plus_facebook_MouseOverText'
|
422 |
-
'sfsi_plus_google_MouseOverText'
|
423 |
-
'sfsi_plus_linkedIn_MouseOverText'
|
424 |
-
'sfsi_plus_pinterest_MouseOverText'
|
425 |
-
'sfsi_plus_youtube_MouseOverText'
|
426 |
-
'sfsi_plus_share_MouseOverText'
|
427 |
-
'sfsi_plus_instagram_MouseOverText'
|
428 |
-
'sfsi_plus_houzz_MouseOverText'
|
429 |
-
'sfsi_plus_CustomIcons_order'
|
430 |
-
'sfsi_plus_rssIcon_order'
|
431 |
-
'sfsi_plus_emailIcon_order'
|
432 |
-
'sfsi_plus_facebookIcon_order'
|
433 |
-
'sfsi_plus_googleIcon_order'
|
434 |
-
'sfsi_plus_twitterIcon_order'
|
435 |
-
'sfsi_plus_shareIcon_order'
|
436 |
-
'sfsi_plus_youtubeIcon_order'
|
437 |
-
'sfsi_plus_pinterestIcon_order'
|
438 |
-
'sfsi_plus_instagramIcon_order'
|
439 |
-
'sfsi_plus_houzzIcon_order'
|
440 |
-
'sfsi_plus_linkedinIcon_order'
|
441 |
-
'sfsi_plus_custom_MouseOverTexts'
|
442 |
);
|
443 |
|
444 |
update_option('sfsi_plus_section5_options',serialize($up_option5));
|
@@ -459,56 +501,61 @@ function sfsi_plus_options_updater6()
|
|
459 |
$sfsi_plus_icons_DisplayCounts = isset($_POST["sfsi_plus_icons_DisplayCounts"]) ? $_POST["sfsi_plus_icons_DisplayCounts"] : 'no';
|
460 |
/* post options */
|
461 |
$up_option6=array(
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
header('Content-Type: application/json');
|
470 |
echo json_encode(array("success")); exit;
|
471 |
}
|
472 |
/* save settings for section 7 */
|
473 |
add_action('wp_ajax_plus_updateSrcn7','sfsi_plus_options_updater7');
|
474 |
function sfsi_plus_options_updater7()
|
475 |
-
{
|
476 |
if ( !wp_verify_nonce( $_POST['nonce'], "update_plus_step7")) {
|
477 |
echo json_encode(array("wrong_nonce")); exit;
|
478 |
}
|
479 |
-
$sfsi_plus_popup_text =
|
480 |
-
$sfsi_plus_popup_background_color =
|
481 |
-
|
482 |
-
|
483 |
-
$
|
484 |
-
|
485 |
-
|
486 |
-
$
|
487 |
-
$
|
488 |
-
$
|
489 |
-
$
|
490 |
-
$
|
491 |
-
$
|
492 |
-
$
|
493 |
-
|
494 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
495 |
$up_option7=array(
|
496 |
-
'sfsi_plus_popup_text' => stripslashes($sfsi_plus_popup_text),
|
497 |
-
'
|
498 |
-
'
|
499 |
-
'
|
500 |
-
'
|
501 |
-
'
|
502 |
-
'
|
503 |
-
'
|
504 |
-
|
505 |
-
|
506 |
-
'sfsi_plus_Show_popupOn' => $sfsi_plus_Show_popupOn,
|
507 |
'sfsi_plus_Show_popupOn_PageIDs' => $sfsi_plus_Show_popupOn_PageIDs,
|
508 |
-
|
509 |
-
'
|
510 |
-
'
|
511 |
-
'sfsi_plus_Shown_popuplimitPerUserTime'=>$sfsi_plus_Shown_popuplimitPerUserTime,
|
512 |
);
|
513 |
update_option('sfsi_plus_section7_options',serialize($up_option7));
|
514 |
header('Content-Type: application/json');
|
@@ -543,8 +590,8 @@ function sfsi_plus_options_updater8()
|
|
543 |
$sfsi_plus_display_before_posts = isset($_POST["sfsi_plus_display_before_posts"]) ? $_POST["sfsi_plus_display_before_posts"] : 'no';
|
544 |
$sfsi_plus_display_after_posts = isset($_POST["sfsi_plus_display_after_posts"]) ? $_POST["sfsi_plus_display_after_posts"] : 'no';
|
545 |
|
546 |
-
|
547 |
-
|
548 |
|
549 |
$sfsi_plus_display_before_blogposts = isset($_POST["sfsi_plus_display_before_blogposts"]) ? $_POST["sfsi_plus_display_before_blogposts"] : 'no';
|
550 |
$sfsi_plus_display_after_blogposts = isset($_POST["sfsi_plus_display_after_blogposts"]) ? $_POST["sfsi_plus_display_after_blogposts"] : 'no';
|
@@ -555,45 +602,37 @@ function sfsi_plus_options_updater8()
|
|
555 |
$sfsi_plus_recttwtr = isset($_POST["sfsi_plus_recttwtr"]) ? $_POST["sfsi_plus_recttwtr"] : 'no';
|
556 |
$sfsi_plus_rectpinit = isset($_POST["sfsi_plus_rectpinit"]) ? $_POST["sfsi_plus_rectpinit"] : 'no';
|
557 |
|
558 |
-
|
559 |
-
//post options
|
560 |
-
/*if($sfsi_plus_float_on_page == 'yes')
|
561 |
-
{
|
562 |
-
$option5 = unserialize(get_option('sfsi_plus_section5_options'));
|
563 |
-
$option5['sfsi_plus_icons_stick'] = 'no';
|
564 |
-
update_option('sfsi_plus_section5_options',serialize($option5));
|
565 |
-
}*/
|
566 |
$up_option8=array(
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
);
|
598 |
update_option('sfsi_plus_section8_options',serialize($up_option8));
|
599 |
header('Content-Type: application/json');
|
@@ -639,35 +678,35 @@ function sfsi_plus_options_updater9()
|
|
639 |
|
640 |
/* icons pop options */
|
641 |
$up_option9 = array(
|
642 |
-
'sfsi_plus_form_adjustment' => $sfsi_plus_form_adjustment,
|
643 |
-
'sfsi_plus_form_height' => $sfsi_plus_form_height,
|
644 |
-
'sfsi_plus_form_width' => $sfsi_plus_form_width,
|
645 |
-
'sfsi_plus_form_border' => $sfsi_plus_form_border,
|
646 |
-
'sfsi_plus_form_border_thickness'=> $sfsi_plus_form_border_thickness,
|
647 |
-
'sfsi_plus_form_border_color' => $sfsi_plus_form_border_color,
|
648 |
-
'sfsi_plus_form_background' => $sfsi_plus_form_background,
|
649 |
|
650 |
-
'sfsi_plus_form_heading_text' => stripslashes($sfsi_plus_form_heading_text),
|
651 |
-
'sfsi_plus_form_heading_font' => $sfsi_plus_form_heading_font,
|
652 |
-
'sfsi_plus_form_heading_fontstyle'
|
653 |
-
'sfsi_plus_form_heading_fontcolor'
|
654 |
-
'sfsi_plus_form_heading_fontsize'
|
655 |
-
'sfsi_plus_form_heading_fontalign'
|
656 |
|
657 |
-
'sfsi_plus_form_field_text' => stripslashes($sfsi_plus_form_field_text),
|
658 |
-
'sfsi_plus_form_field_font' => $sfsi_plus_form_field_font,
|
659 |
-
'sfsi_plus_form_field_fontstyle'=> $sfsi_plus_form_field_fontstyle,
|
660 |
-
'sfsi_plus_form_field_fontcolor'=> $sfsi_plus_form_field_fontcolor,
|
661 |
-
'sfsi_plus_form_field_fontsize' => $sfsi_plus_form_field_fontsize,
|
662 |
-
'sfsi_plus_form_field_fontalign'=> $sfsi_plus_form_field_fontalign,
|
663 |
|
664 |
-
'sfsi_plus_form_button_text' => stripslashes($sfsi_plus_form_button_text),
|
665 |
-
'sfsi_plus_form_button_font' => $sfsi_plus_form_button_font,
|
666 |
-
'sfsi_plus_form_button_fontstyle'=> $sfsi_plus_form_button_fontstyle,
|
667 |
-
'sfsi_plus_form_button_fontcolor'=> $sfsi_plus_form_button_fontcolor,
|
668 |
-
'sfsi_plus_form_button_fontsize'=> $sfsi_plus_form_button_fontsize,
|
669 |
-
'sfsi_plus_form_button_fontalign'=>
|
670 |
-
'sfsi_plus_form_button_background'
|
671 |
);
|
672 |
|
673 |
update_option('sfsi_plus_section9_options',serialize($up_option9));
|
@@ -701,10 +740,10 @@ function sfsi_plus_getCounts()
|
|
701 |
/* get email count */
|
702 |
if($sfsi_plus_section4_options['sfsi_plus_email_countsFrom']=="source" )
|
703 |
{
|
704 |
-
|
705 |
-
|
706 |
|
707 |
-
|
708 |
if(empty($scounts['email_count']))
|
709 |
{
|
710 |
$scounts['email_count']=(string) "0";
|
@@ -798,10 +837,11 @@ function sfsi_plus_getCounts()
|
|
798 |
{
|
799 |
$linkedIn_compay=$sfsi_plus_section2_options['sfsi_plus_linkedin_followCompany'];
|
800 |
$linkedIn_compay=$sfsi_plus_section4_options['sfsi_plus_ln_company'];
|
801 |
-
$ln_settings=array(
|
802 |
-
|
803 |
-
|
804 |
-
|
|
|
805 |
$followers=$socialObj->sfsi_getlinkedin_follower($linkedIn_compay,$ln_settings);
|
806 |
$scounts['linkedIn_count']= $socialObj->format_num($followers);
|
807 |
}
|
@@ -821,14 +861,14 @@ function sfsi_plus_getCounts()
|
|
821 |
$youtube_user = (
|
822 |
isset($sfsi_plus_section4_options['sfsi_plus_youtube_user']) &&
|
823 |
!empty($sfsi_plus_section4_options['sfsi_plus_youtube_user'])
|
824 |
-
)? $sfsi_plus_section4_options['sfsi_plus_youtube_user'] : 'SpecificFeeds';
|
825 |
|
826 |
$followers = $socialObj->sfsi_get_youtube($youtube_user);
|
827 |
$scounts['youtube_count'] = $socialObj->format_num($followers);
|
828 |
}
|
829 |
else
|
830 |
{
|
831 |
-
$scounts['youtube_count']=01;
|
832 |
}
|
833 |
}
|
834 |
else
|
@@ -898,6 +938,7 @@ function sfsi_plus_getCounts()
|
|
898 |
}
|
899 |
return $scounts; exit;
|
900 |
}
|
|
|
901 |
/* activate and remove footer credit link */
|
902 |
add_action('wp_ajax_plus_activateFooter','sfsiplusActivateFooter');
|
903 |
function sfsiplusActivateFooter()
|
@@ -908,6 +949,7 @@ function sfsiplusActivateFooter()
|
|
908 |
update_option('sfsi_plus_footer_sec', 'yes');
|
909 |
echo json_encode(array('res'=>'success'));exit;
|
910 |
}
|
|
|
911 |
add_action('wp_ajax_plus_removeFooter','sfsiplusremoveFooter');
|
912 |
function sfsiplusremoveFooter()
|
913 |
{
|
@@ -917,6 +959,7 @@ function sfsiplusremoveFooter()
|
|
917 |
update_option('sfsi_plus_footer_sec', 'no');
|
918 |
echo json_encode(array('res'=>'success'));exit;
|
919 |
}
|
|
|
920 |
add_action('wp_ajax_getIconPreview','sfsiPlusGetIconPreview');
|
921 |
function sfsiPlusGetIconPreview()
|
922 |
{
|
@@ -924,6 +967,7 @@ function sfsiPlusGetIconPreview()
|
|
924 |
echo '<img src="'.$iconname."/icon_".$iconValue.'.png" >';
|
925 |
die;
|
926 |
}
|
|
|
927 |
add_action('wp_ajax_getForm','sfsiPlusGetForm');
|
928 |
function sfsiPlusGetForm()
|
929 |
{
|
@@ -945,6 +989,7 @@ function sfsiPlusGetForm()
|
|
945 |
<?php
|
946 |
die;
|
947 |
}
|
|
|
948 |
add_action("wp_ajax_sfsiPlus_notification_read", "sfsiPlus_notification_read");
|
949 |
function sfsiPlus_notification_read()
|
950 |
{
|
@@ -952,4 +997,22 @@ function sfsiPlus_notification_read()
|
|
952 |
echo "success";
|
953 |
die;
|
954 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
955 |
?>
|
4 |
add_action('wp_ajax_plus_updateSrcn1','sfsi_plus_options_updater1');
|
5 |
function sfsi_plus_options_updater1()
|
6 |
{
|
7 |
+
if ( !wp_verify_nonce( $_POST['nonce'], "update_plus_step1")) {
|
8 |
echo json_encode(array("wrong_nonce")); exit;
|
9 |
}
|
10 |
$option1= unserialize(get_option('sfsi_plus_section1_options',false));
|
20 |
$sfsi_plus_houzz_display = isset($_POST["sfsi_plus_houzz_display"]) ? $_POST["sfsi_plus_houzz_display"] : 'no';
|
21 |
$sfsi_plus_linkedin_display = isset($_POST["sfsi_plus_linkedin_display"]) ? $_POST["sfsi_plus_linkedin_display"] : 'no';
|
22 |
$sfsi_custom_icons = isset($option1['sfsi_custom_files']) ? $option1['sfsi_custom_files'] : '';
|
23 |
+
$up_option1=array(
|
24 |
+
'sfsi_plus_rss_display' => sanitize_text_field($sfsi_plus_rss_display),
|
25 |
+
'sfsi_plus_email_display' => sanitize_text_field($sfsi_plus_email_display),
|
26 |
+
'sfsi_plus_facebook_display' => sanitize_text_field($sfsi_plus_facebook_display),
|
27 |
+
'sfsi_plus_twitter_display' => sanitize_text_field($sfsi_plus_twitter_display),
|
28 |
+
'sfsi_plus_google_display' => sanitize_text_field($sfsi_plus_google_display),
|
29 |
+
'sfsi_plus_share_display' => sanitize_text_field($sfsi_plus_share_display),
|
30 |
+
'sfsi_plus_youtube_display' => sanitize_text_field($sfsi_plus_youtube_display),
|
31 |
+
'sfsi_plus_pinterest_display' => sanitize_text_field($sfsi_plus_pinterest_display),
|
32 |
+
'sfsi_plus_linkedin_display' => sanitize_text_field($sfsi_plus_linkedin_display),
|
33 |
+
'sfsi_plus_instagram_display' => sanitize_text_field($sfsi_plus_instagram_display),
|
34 |
+
'sfsi_plus_houzz_display' => sanitize_text_field($sfsi_plus_houzz_display),
|
35 |
+
'sfsi_custom_files' => $sfsi_custom_icons
|
36 |
);
|
37 |
+
|
38 |
+
$c = update_option('sfsi_plus_section1_options', serialize($up_option1));
|
39 |
+
|
40 |
header('Content-Type: application/json');
|
41 |
echo json_encode(array("success")); exit;
|
42 |
}
|
48 |
{
|
49 |
echo json_encode(array("wrong_nonce")); exit;
|
50 |
}
|
51 |
+
$sfsi_plus_rss_url = isset($_POST["sfsi_plus_rss_url"]) ? trim($_POST["sfsi_plus_rss_url"]) : '';
|
52 |
+
$sfsi_plus_rss_icons = isset($_POST["sfsi_plus_rss_icons"]) ? $_POST["sfsi_plus_rss_icons"] : 'email';
|
53 |
|
54 |
+
$sfsi_plus_facebookPage_option = isset($_POST["sfsi_plus_facebookPage_option"]) ? $_POST["sfsi_plus_facebookPage_option"] : 'no';
|
55 |
+
$sfsi_plus_facebookPage_url = isset($_POST["sfsi_plus_facebookPage_url"]) ? trim($_POST["sfsi_plus_facebookPage_url"]) : '';
|
56 |
+
$sfsi_plus_facebookLike_option = isset($_POST["sfsi_plus_facebookLike_option"]) ? $_POST["sfsi_plus_facebookLike_option"] : 'no';
|
57 |
+
$sfsi_plus_facebookShare_option = isset($_POST["sfsi_plus_facebookShare_option"]) ? $_POST["sfsi_plus_facebookShare_option"] : 'no';
|
58 |
|
59 |
+
$sfsi_plus_twitter_followme = isset($_POST["sfsi_plus_twitter_followme"]) ? $_POST["sfsi_plus_twitter_followme"] : 'no';
|
60 |
$sfsi_plus_twitter_followUserName = isset($_POST["sfsi_plus_twitter_followUserName"]) ? trim($_POST["sfsi_plus_twitter_followUserName"]) : '';
|
61 |
+
$sfsi_plus_twitter_aboutPage = isset($_POST["sfsi_plus_twitter_aboutPage"]) ? $_POST["sfsi_plus_twitter_aboutPage"] : 'no';
|
62 |
+
$sfsi_plus_twitter_page = isset($_POST["sfsi_plus_twitter_page"]) ? $_POST["sfsi_plus_twitter_page"] : 'no';
|
63 |
+
$sfsi_plus_twitter_pageURL = isset($_POST["sfsi_plus_twitter_pageURL"]) ? trim($_POST["sfsi_plus_twitter_pageURL"]) : '';
|
64 |
+
$sfsi_plus_twitter_aboutPageText= isset($_POST["sfsi_plus_twitter_aboutPageText"]) ? $_POST["sfsi_plus_twitter_aboutPageText"] : 'Hey check out this cool site I found';
|
|
|
|
|
|
|
|
|
|
|
65 |
|
66 |
+
$sfsi_plus_google_page = isset($_POST["sfsi_plus_google_page"]) ? $_POST["sfsi_plus_google_page"] : 'no';
|
67 |
+
$sfsi_plus_google_pageURL = isset($_POST["sfsi_plus_google_pageURL"]) ? trim($_POST["sfsi_plus_google_pageURL"]) : '';
|
68 |
+
$sfsi_plus_googleLike_option = isset($_POST["sfsi_plus_googleLike_option"]) ? $_POST["sfsi_plus_googleLike_option"] : 'no';
|
69 |
+
$sfsi_plus_googleShare_option = isset($_POST["sfsi_plus_googleShare_option"]) ? $_POST["sfsi_plus_googleShare_option"] : 'no';
|
70 |
|
71 |
+
$sfsi_plus_youtube_pageUrl = isset($_POST["sfsi_plus_youtube_pageUrl"]) ? trim($_POST["sfsi_plus_youtube_pageUrl"]) : '';
|
72 |
+
$sfsi_plus_youtube_page = isset($_POST["sfsi_plus_youtube_page"]) ? $_POST["sfsi_plus_youtube_page"] : 'no';
|
73 |
+
$sfsi_plus_youtube_follow = isset($_POST["sfsi_plus_youtube_follow"]) ? $_POST["sfsi_plus_youtube_follow"] : 'no';
|
74 |
|
75 |
+
$sfsi_plus_pinterest_page = isset($_POST["sfsi_plus_pinterest_page"]) ? $_POST["sfsi_plus_pinterest_page"] : 'no';
|
76 |
+
$sfsi_plus_pinterest_pageUrl = isset($_POST["sfsi_plus_pinterest_pageUrl"]) ? trim($_POST["sfsi_plus_pinterest_pageUrl"]) : '';
|
77 |
+
$sfsi_plus_pinterest_pingBlog = isset($_POST["sfsi_plus_pinterest_pingBlog"]) ? $_POST["sfsi_plus_pinterest_pingBlog"] : 'no';
|
78 |
|
79 |
+
$sfsi_plus_instagram_pageUrl = isset($_POST["sfsi_plus_instagram_pageUrl"]) ? trim($_POST["sfsi_plus_instagram_pageUrl"]) : '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
|
81 |
+
$sfsi_plus_linkedin_page = isset($_POST["sfsi_plus_linkedin_page"]) ? $_POST["sfsi_plus_linkedin_page"] : 'no';
|
82 |
+
$sfsi_plus_linkedin_pageURL = isset($_POST["sfsi_plus_linkedin_pageURL"]) ? trim($_POST["sfsi_plus_linkedin_pageURL"]) : '';
|
83 |
+
$sfsi_plus_linkedin_follow = isset($_POST["sfsi_plus_linkedin_follow"]) ? $_POST["sfsi_plus_linkedin_follow"] : 'no';
|
84 |
+
$sfsi_plus_linkedin_SharePage = isset($_POST["sfsi_plus_linkedin_SharePage"]) ? $_POST["sfsi_plus_linkedin_SharePage"] : 'no';
|
85 |
+
|
86 |
+
$sfsi_plus_linkedin_followCompany = isset($_POST["sfsi_plus_linkedin_followCompany"])
|
87 |
+
? trim($_POST["sfsi_plus_linkedin_followCompany"])
|
88 |
+
: '';
|
89 |
+
$sfsi_plus_linkedin_recommendBusines = isset($_POST["sfsi_plus_linkedin_recommendBusines"])
|
90 |
+
? $_POST["sfsi_plus_linkedin_recommendBusines"]
|
91 |
+
: 'no';
|
92 |
+
$sfsi_plus_linkedin_recommendCompany = isset($_POST["sfsi_plus_linkedin_recommendCompany"])
|
93 |
+
? trim($_POST["sfsi_plus_linkedin_recommendCompany"])
|
94 |
+
: '';
|
95 |
+
$sfsi_plus_linkedin_recommendProductId = isset($_POST["sfsi_plus_linkedin_recommendProductId"])
|
96 |
+
? trim($_POST["sfsi_plus_linkedin_recommendProductId"])
|
97 |
+
: '';
|
98 |
|
99 |
+
$sfsi_plus_youtubeusernameorid = isset($_POST["sfsi_plus_youtubeusernameorid"]) ? trim($_POST["sfsi_plus_youtubeusernameorid"]) : '';
|
100 |
+
$sfsi_plus_ytube_user = isset($_POST["sfsi_plus_ytube_user"]) ? $_POST["sfsi_plus_ytube_user"] : '';
|
101 |
+
$sfsi_plus_ytube_chnlid = isset($_POST["sfsi_plus_ytube_chnlid"]) ? $_POST["sfsi_plus_ytube_chnlid"] : '';
|
102 |
+
|
103 |
+
/*
|
104 |
+
* Escape custom icons url
|
105 |
+
*/
|
106 |
+
if(
|
107 |
+
isset($_POST["sfsi_plus_custom_links"]) &&
|
108 |
+
!empty($_POST["sfsi_plus_custom_links"])
|
109 |
+
)
|
110 |
+
{
|
111 |
+
$esacpedUrls = array();
|
112 |
+
$sfsi_plus_CustomIcon_links = $_POST["sfsi_plus_custom_links"];
|
113 |
+
foreach($sfsi_plus_CustomIcon_links as $sfsi_pluscustomIconUrl)
|
114 |
+
{
|
115 |
+
$esacpedUrls[] = esc_url($sfsi_pluscustomIconUrl);
|
116 |
+
}
|
117 |
+
}
|
118 |
+
else
|
119 |
+
{
|
120 |
+
$esacpedUrls = '';
|
121 |
+
}
|
122 |
+
$sfsi_plus_CustomIcon_links= isset($_POST["sfsi_plus_custom_links"]) ? serialize($esacpedUrls) : '';
|
123 |
$sfsi_plus_houzz_pageUrl = isset($_POST["sfsi_plus_houzz_pageUrl"]) ? trim($_POST["sfsi_plus_houzz_pageUrl"]) : '';
|
124 |
|
125 |
+
$option2 = unserialize(get_option('sfsi_plus_section2_options',false));
|
126 |
+
$up_option2 = array(
|
127 |
+
'sfsi_plus_rss_url' => esc_url($sfsi_plus_rss_url),
|
128 |
+
'sfsi_rss_blogName' => '',
|
129 |
+
'sfsi_rss_blogEmail' => '',
|
130 |
+
'sfsi_plus_rss_icons' => sanitize_text_field($sfsi_plus_rss_icons),
|
131 |
+
'sfsi_plus_email_url' => esc_url($option2['sfsi_plus_email_url']),
|
132 |
+
|
133 |
+
/* facebook buttons options */
|
134 |
+
'sfsi_plus_facebookPage_option' => sanitize_text_field($sfsi_plus_facebookPage_option),
|
135 |
+
'sfsi_plus_facebookPage_url' => esc_url($sfsi_plus_facebookPage_url),
|
136 |
+
'sfsi_plus_facebookLike_option' => sanitize_text_field($sfsi_plus_facebookLike_option),
|
137 |
+
'sfsi_plus_facebookShare_option' => sanitize_text_field($sfsi_plus_facebookShare_option),
|
138 |
+
|
139 |
+
/* Twitter buttons options */
|
140 |
+
'sfsi_plus_twitter_followme' => sanitize_text_field($sfsi_plus_twitter_followme),
|
141 |
+
'sfsi_plus_twitter_followUserName' => sanitize_text_field($sfsi_plus_twitter_followUserName),
|
142 |
+
'sfsi_plus_twitter_aboutPage' => sanitize_text_field($sfsi_plus_twitter_aboutPage),
|
143 |
+
'sfsi_plus_twitter_page' => sanitize_text_field($sfsi_plus_twitter_page),
|
144 |
+
'sfsi_plus_twitter_pageURL' => esc_url($sfsi_plus_twitter_pageURL),
|
145 |
+
'sfsi_plus_twitter_aboutPageText' => sanitize_text_field($sfsi_plus_twitter_aboutPageText),
|
146 |
+
|
147 |
+
/* google + options */
|
148 |
+
'sfsi_plus_google_page' => sanitize_text_field($sfsi_plus_google_page),
|
149 |
+
'sfsi_plus_google_pageURL' => esc_url($sfsi_plus_google_pageURL),
|
150 |
+
'sfsi_plus_googleLike_option' => sanitize_text_field($sfsi_plus_googleLike_option),
|
151 |
+
'sfsi_plus_googleShare_option' => sanitize_text_field($sfsi_plus_googleShare_option),
|
152 |
+
|
153 |
+
/* youtube options */
|
154 |
+
'sfsi_plus_youtube_pageUrl' => esc_url($sfsi_plus_youtube_pageUrl),
|
155 |
+
'sfsi_plus_youtube_page' => sanitize_text_field($sfsi_plus_youtube_page),
|
156 |
+
'sfsi_plus_youtube_follow' => sanitize_text_field($sfsi_plus_youtube_follow),
|
157 |
+
'sfsi_plus_ytube_user' => sanitize_text_field($sfsi_plus_ytube_user),
|
158 |
+
'sfsi_plus_youtubeusernameorid' => sanitize_text_field($sfsi_plus_youtubeusernameorid),
|
159 |
+
'sfsi_plus_ytube_chnlid' => sanitize_text_field($sfsi_plus_ytube_chnlid),
|
160 |
+
|
161 |
+
/* pinterest options */
|
162 |
+
'sfsi_plus_pinterest_page' => sanitize_text_field($sfsi_plus_pinterest_page),
|
163 |
+
'sfsi_plus_pinterest_pageUrl' => esc_url($sfsi_plus_pinterest_pageUrl),
|
164 |
+
'sfsi_plus_pinterest_pingBlog' => sanitize_text_field($sfsi_plus_pinterest_pingBlog),
|
165 |
+
|
166 |
+
/* instagram and houzz options */
|
167 |
+
'sfsi_plus_instagram_pageUrl' => esc_url($sfsi_plus_instagram_pageUrl),
|
168 |
+
'sfsi_plus_houzz_pageUrl' => esc_url($sfsi_plus_houzz_pageUrl),
|
169 |
+
|
170 |
+
/* linkedIn options */
|
171 |
+
'sfsi_plus_linkedin_page' => sanitize_text_field($sfsi_plus_linkedin_page),
|
172 |
+
'sfsi_plus_linkedin_pageURL' => esc_url($sfsi_plus_linkedin_pageURL),
|
173 |
+
'sfsi_plus_linkedin_follow' => sanitize_text_field($sfsi_plus_linkedin_follow),
|
174 |
+
'sfsi_plus_linkedin_followCompany' => intval($sfsi_plus_linkedin_followCompany),
|
175 |
+
'sfsi_plus_linkedin_SharePage' => sanitize_text_field($sfsi_plus_linkedin_SharePage),
|
176 |
+
'sfsi_plus_linkedin_recommendBusines'=> sanitize_text_field($sfsi_plus_linkedin_recommendBusines),
|
177 |
+
'sfsi_plus_linkedin_recommendCompany'=> sanitize_text_field($sfsi_plus_linkedin_recommendCompany),
|
178 |
+
'sfsi_plus_linkedin_recommendProductId'=> intval($sfsi_plus_linkedin_recommendProductId),
|
179 |
+
'sfsi_plus_CustomIcon_links' => $sfsi_plus_CustomIcon_links
|
180 |
);
|
181 |
update_option('sfsi_plus_section2_options',serialize($up_option2));
|
182 |
+
$option4 = unserialize(get_option('sfsi_plus_section4_options',false));
|
183 |
+
|
184 |
+
$option4['sfsi_plus_youtubeusernameorid'] = sanitize_text_field($sfsi_plus_youtubeusernameorid);
|
185 |
+
$option4['sfsi_plus_ytube_chnlid'] = sfsi_plus_sanitize_field($sfsi_plus_ytube_chnlid);
|
186 |
+
update_option('sfsi_plus_section4_options', serialize($option4));
|
187 |
+
|
188 |
header('Content-Type: application/json');
|
189 |
echo json_encode(array("success")); exit;
|
190 |
}
|
205 |
$sfsi_plus_specialIcon_animation = isset($_POST["sfsi_plus_specialIcon_animation"]) ? $_POST["sfsi_plus_specialIcon_animation"] : '';
|
206 |
$sfsi_plus_specialIcon_MouseOver = isset($_POST["sfsi_plus_specialIcon_MouseOver"]) ? $_POST["sfsi_plus_specialIcon_MouseOver"] : 'no';
|
207 |
$sfsi_plus_specialIcon_Firstload = isset($_POST["sfsi_plus_specialIcon_Firstload"]) ? $_POST["sfsi_plus_specialIcon_Firstload"] : 'no';
|
208 |
+
|
209 |
+
$sfsi_plus_specialIcon_Firstload_Icons = isset($_POST["sfsi_plus_specialIcon_Firstload_Icons"])
|
210 |
+
? $_POST["sfsi_plus_specialIcon_Firstload_Icons"]
|
211 |
+
: 'all';
|
212 |
+
$sfsi_plus_specialIcon_interval = isset($_POST["sfsi_plus_specialIcon_interval"])
|
213 |
+
? $_POST["sfsi_plus_specialIcon_interval"]
|
214 |
+
: 'no';
|
215 |
+
$sfsi_plus_specialIcon_intervalTime = isset($_POST["sfsi_plus_specialIcon_intervalTime"])
|
216 |
+
? $_POST["sfsi_plus_specialIcon_intervalTime"]
|
217 |
+
: '';
|
218 |
+
$sfsi_plus_specialIcon_intervalIcons = isset($_POST["sfsi_plus_specialIcon_intervalIcons"])
|
219 |
+
? $_POST["sfsi_plus_specialIcon_intervalIcons"]
|
220 |
+
: 'all';
|
221 |
|
222 |
/* Design and animation option */
|
223 |
+
$up_option3 = array(
|
224 |
+
'sfsi_plus_actvite_theme' => sanitize_text_field($sfsi_plus_actvite_theme),
|
225 |
+
/* animations options */
|
226 |
+
'sfsi_plus_mouseOver' => sanitize_text_field($sfsi_plus_mouseOver),
|
227 |
+
'sfsi_plus_mouseOver_effect' => sanitize_text_field($sfsi_plus_mouseOver_effect),
|
228 |
+
'sfsi_plus_shuffle_icons' => sanitize_text_field($sfsi_plus_shuffle_icons),
|
229 |
+
'sfsi_plus_shuffle_Firstload' => sanitize_text_field($sfsi_plus_shuffle_Firstload),
|
230 |
+
'sfsi_plus_shuffle_interval' => sanitize_text_field($sfsi_plus_shuffle_interval),
|
231 |
+
'sfsi_plus_shuffle_intervalTime' => intval($sfsi_plus_shuffle_intervalTime),
|
232 |
+
'sfsi_plus_specialIcon_animation' => sanitize_text_field($sfsi_plus_specialIcon_animation),
|
233 |
+
'sfsi_plus_specialIcon_MouseOver' => sanitize_text_field($sfsi_plus_specialIcon_MouseOver),
|
234 |
+
'sfsi_plus_specialIcon_Firstload' => sanitize_text_field($sfsi_plus_specialIcon_Firstload),
|
235 |
+
'sfsi_plus_specialIcon_Firstload_Icons' => sanitize_text_field($sfsi_plus_specialIcon_Firstload_Icons),
|
236 |
+
'sfsi_plus_specialIcon_interval' => sanitize_text_field($sfsi_plus_specialIcon_interval),
|
237 |
+
'sfsi_plus_specialIcon_intervalTime' => sanitize_text_field($sfsi_plus_specialIcon_intervalTime),
|
238 |
+
'sfsi_plus_specialIcon_intervalIcons' => sanitize_text_field($sfsi_plus_specialIcon_intervalIcons),
|
239 |
+
);
|
240 |
update_option('sfsi_plus_section3_options',serialize($up_option3));
|
241 |
header('Content-Type: application/json');
|
242 |
echo json_encode(array("success")); exit;
|
248 |
if ( !wp_verify_nonce( $_POST['nonce'], "update_plus_step4")) {
|
249 |
echo json_encode(array("wrong_nonce")); exit;
|
250 |
}
|
251 |
+
$sfsi_plus_display_counts = isset($_POST["sfsi_plus_display_counts"]) ? $_POST["sfsi_plus_display_counts"] : 'no';
|
252 |
|
253 |
+
$sfsi_plus_email_countsDisplay = isset($_POST["sfsi_plus_email_countsDisplay"]) ? $_POST["sfsi_plus_email_countsDisplay"] : 'no';
|
254 |
+
$sfsi_plus_email_countsFrom = isset($_POST["sfsi_plus_email_countsFrom"]) ? $_POST["sfsi_plus_email_countsFrom"] : 'manual';
|
255 |
+
$sfsi_plus_email_manualCounts = isset($_POST["sfsi_plus_email_manualCounts"]) ? trim($_POST["sfsi_plus_email_manualCounts"]) : '';
|
256 |
|
257 |
+
$sfsi_plus_rss_countsDisplay = isset($_POST["sfsi_plus_rss_countsDisplay"]) ? $_POST["sfsi_plus_rss_countsDisplay"] : 'no';
|
258 |
+
$sfsi_plus_rss_manualCounts = isset($_POST["sfsi_plus_rss_manualCounts"]) ? trim($_POST["sfsi_plus_rss_manualCounts"]) : '';
|
259 |
|
260 |
+
$sfsi_plus_facebook_countsDisplay = isset($_POST["sfsi_plus_facebook_countsDisplay"]) ? $_POST["sfsi_plus_facebook_countsDisplay"] : 'no';
|
261 |
$sfsi_plus_facebook_countsFrom = isset($_POST["sfsi_plus_facebook_countsFrom"]) ? $_POST["sfsi_plus_facebook_countsFrom"] : 'manual';
|
262 |
+
$sfsi_plus_facebook_mypageCounts = isset($_POST["sfsi_plus_facebook_mypageCounts"]) ? trim($_POST["sfsi_plus_facebook_mypageCounts"]) : '';
|
263 |
+
$sfsi_plus_facebook_manualCounts = isset($_POST["sfsi_plus_facebook_manualCounts"]) ? trim($_POST["sfsi_plus_facebook_manualCounts"]) : '';
|
264 |
+
$sfsi_plus_facebook_PageLink = isset($_POST["sfsi_plus_facebook_PageLink"]) ? trim($_POST["sfsi_plus_facebook_PageLink"]) : '';
|
265 |
|
266 |
+
$sfsi_plus_twitter_countsDisplay = isset($_POST["sfsi_plus_twitter_countsDisplay"]) ? $_POST["sfsi_plus_twitter_countsDisplay"] : 'no';
|
267 |
+
$sfsi_plus_twitter_countsFrom = isset($_POST["sfsi_plus_twitter_countsFrom"]) ? $_POST["sfsi_plus_twitter_countsFrom"] : 'manual';
|
268 |
+
$sfsi_plus_twitter_manualCounts = isset($_POST["sfsi_plus_twitter_manualCounts"]) ? trim($_POST["sfsi_plus_twitter_manualCounts"]) : '';
|
269 |
+
$sfsiplus_tw_consumer_key = isset($_POST["sfsiplus_tw_consumer_key"]) ? trim($_POST["sfsiplus_tw_consumer_key"]) : '';
|
270 |
+
$sfsiplus_tw_consumer_secret = isset($_POST["sfsiplus_tw_consumer_secret"]) ? trim($_POST["sfsiplus_tw_consumer_secret"]) : '';
|
271 |
+
$sfsiplus_tw_oauth_access_token = isset($_POST["sfsiplus_tw_oauth_access_token"]) ? trim($_POST["sfsiplus_tw_oauth_access_token"]) : '';
|
272 |
+
$sfsiplus_tw_oauth_access_token_secret = isset($_POST["sfsiplus_tw_oauth_access_token_secret"])
|
273 |
+
? trim($_POST["sfsiplus_tw_oauth_access_token_secret"])
|
274 |
+
: '';
|
275 |
|
276 |
+
$sfsi_plus_google_countsDisplay = isset($_POST["sfsi_plus_google_countsDisplay"]) ? $_POST["sfsi_plus_google_countsDisplay"] : 'no';
|
277 |
+
$sfsi_plus_google_countsFrom = isset($_POST["sfsi_plus_google_countsFrom"]) ? $_POST["sfsi_plus_google_countsFrom"] : 'manual';
|
278 |
+
$sfsi_plus_google_manualCounts = isset($_POST["sfsi_plus_google_manualCounts"]) ? trim($_POST["sfsi_plus_google_manualCounts"]) : '';
|
279 |
+
$sfsi_plus_google_api_key = isset($_POST["sfsi_plus_google_api_key"]) ? trim($_POST["sfsi_plus_google_api_key"]) : '';
|
280 |
|
281 |
+
$sfsi_plus_linkedIn_countsDisplay = isset($_POST["sfsi_plus_linkedIn_countsDisplay"]) ? $_POST["sfsi_plus_linkedIn_countsDisplay"] : 'no';
|
282 |
+
$sfsi_plus_linkedIn_countsFrom = isset($_POST["sfsi_plus_linkedIn_countsFrom"]) ? $_POST["sfsi_plus_linkedIn_countsFrom"] : 'manual';
|
283 |
+
$sfsi_plus_linkedIn_manualCounts = isset($_POST["sfsi_plus_linkedIn_manualCounts"]) ? trim($_POST["sfsi_plus_linkedIn_manualCounts"]) : '';
|
284 |
+
$sfsi_plus_ln_company = isset($_POST["sfsi_plus_ln_company"]) ? trim($_POST["sfsi_plus_ln_company"]) : '';
|
285 |
+
$sfsi_plus_ln_api_key = isset($_POST["sfsi_plus_ln_api_key"]) ? trim($_POST["sfsi_plus_ln_api_key"]) : '';
|
286 |
+
$sfsi_plus_ln_secret_key = isset($_POST["sfsi_plus_ln_secret_key"]) ? trim($_POST["sfsi_plus_ln_secret_key"]) : '';
|
287 |
+
$sfsi_plus_ln_oAuth_user_token = isset($_POST["sfsi_plus_ln_oAuth_user_token"]) ? trim($_POST["sfsi_plus_ln_oAuth_user_token"]) : '';
|
288 |
|
289 |
+
$sfsi_plus_youtube_countsDisplay = isset($_POST["sfsi_plus_youtube_countsDisplay"]) ? $_POST["sfsi_plus_youtube_countsDisplay"] : 'no';
|
290 |
+
$sfsi_plus_youtube_countsFrom = isset($_POST["sfsi_plus_youtube_countsFrom"]) ? $_POST["sfsi_plus_youtube_countsFrom"] : 'manual';
|
291 |
+
$sfsi_plus_youtube_manualCounts = isset($_POST["sfsi_plus_youtube_manualCounts"]) ? $_POST["sfsi_plus_youtube_manualCounts"] : '';
|
292 |
+
$sfsi_plus_youtube_user = isset($_POST["sfsi_plus_youtube_user"]) ? trim($_POST["sfsi_plus_youtube_user"]) : '';
|
293 |
+
$sfsi_plus_youtube_channelId = isset($_POST["sfsi_plus_youtube_channelId"]) ? trim($_POST["sfsi_plus_youtube_channelId"]) : '';
|
294 |
|
295 |
+
$sfsi_plus_pinterest_countsDisplay = isset($_POST["sfsi_plus_pinterest_countsDisplay"]) ? $_POST["sfsi_plus_pinterest_countsDisplay"] : 'no';
|
296 |
+
$sfsi_plus_pinterest_countsFrom = isset($_POST["sfsi_plus_pinterest_countsFrom"]) ? $_POST["sfsi_plus_pinterest_countsFrom"] : 'manual';
|
297 |
+
$sfsi_plus_pinterest_manualCounts = isset($_POST["sfsi_plus_pinterest_manualCounts"]) ? trim($_POST["sfsi_plus_pinterest_manualCounts"]) : '';
|
298 |
+
$sfsi_plus_pinterest_user = isset($_POST["sfsi_plus_pinterest_user"]) ? trim($_POST["sfsi_plus_pinterest_user"]) : '';
|
299 |
+
$sfsi_plus_pinterest_board = isset($_POST["sfsi_plus_pinterest_board"]) ? trim($_POST["sfsi_plus_pinterest_board"]) : '';
|
300 |
|
301 |
+
$sfsi_plus_instagram_countsDisplay = isset($_POST["sfsi_plus_instagram_countsDisplay"]) ? $_POST["sfsi_plus_instagram_countsDisplay"] : 'no';
|
302 |
+
$sfsi_plus_instagram_countsFrom = isset($_POST["sfsi_plus_instagram_countsFrom"]) ? $_POST["sfsi_plus_instagram_countsFrom"] : 'manual';
|
303 |
+
$sfsi_plus_instagram_manualCounts = isset($_POST["sfsi_plus_instagram_manualCounts"]) ? trim($_POST["sfsi_plus_instagram_manualCounts"]) : '';
|
304 |
+
$sfsi_plus_instagram_User = isset($_POST["sfsi_plus_instagram_User"]) ? $_POST["sfsi_plus_instagram_User"] : '';
|
305 |
|
306 |
+
$sfsi_plus_shares_countsDisplay = isset($_POST["sfsi_plus_shares_countsDisplay"]) ? $_POST["sfsi_plus_shares_countsDisplay"] : 'no';
|
307 |
+
$sfsi_plus_shares_countsFrom = isset($_POST["sfsi_plus_shares_countsFrom"]) ? $_POST["sfsi_plus_shares_countsFrom"] : 'manual';
|
308 |
+
$sfsi_plus_shares_manualCounts = isset($_POST["sfsi_plus_shares_manualCounts"]) ? trim($_POST["sfsi_plus_shares_manualCounts"]) : '';
|
309 |
|
310 |
$sfsi_plus_houzz_countsDisplay = isset($_POST["sfsi_plus_houzz_countsDisplay"]) ? $_POST["sfsi_plus_houzz_countsDisplay"] : 'no';
|
311 |
$sfsi_plus_houzz_countsFrom = isset($_POST["sfsi_plus_houzz_countsFrom"]) ? $_POST["sfsi_plus_houzz_countsFrom"] : 'manual';
|
313 |
|
314 |
$sfsi_plus_facebookPage_url = isset($_POST["sfsi_plus_facebookPage_url"]) ? trim($_POST["sfsi_plus_facebookPage_url"]) : '';
|
315 |
|
316 |
+
$up_option4 = array(
|
317 |
+
'sfsi_plus_display_counts' => sanitize_text_field($sfsi_plus_display_counts),
|
318 |
|
319 |
+
'sfsi_plus_email_countsDisplay' => sanitize_text_field($sfsi_plus_email_countsDisplay),
|
320 |
+
'sfsi_plus_email_countsFrom' => sanitize_text_field($sfsi_plus_email_countsFrom),
|
321 |
+
'sfsi_plus_email_manualCounts' => intval($sfsi_plus_email_manualCounts),
|
322 |
|
323 |
+
'sfsi_plus_rss_countsDisplay' => sanitize_text_field($sfsi_plus_rss_countsDisplay),
|
324 |
+
'sfsi_plus_rss_manualCounts' => intval($sfsi_plus_rss_manualCounts),
|
325 |
|
326 |
+
'sfsi_plus_facebook_countsDisplay' => sanitize_text_field($sfsi_plus_facebook_countsDisplay),
|
327 |
+
'sfsi_plus_facebook_countsFrom' => sanitize_text_field($sfsi_plus_facebook_countsFrom),
|
328 |
+
'sfsi_plus_facebook_mypageCounts' => sfsi_plus_sanitize_field($sfsi_plus_facebook_mypageCounts),
|
329 |
+
'sfsi_plus_facebook_manualCounts' => intval($sfsi_plus_facebook_manualCounts),
|
330 |
+
//'sfsi_plus_facebook_PageLink' => $sfsi_plus_facebook_PageLink,
|
331 |
|
332 |
+
'sfsi_plus_twitter_countsDisplay' => sanitize_text_field($sfsi_plus_twitter_countsDisplay),
|
333 |
+
'sfsi_plus_twitter_countsFrom' => sanitize_text_field($sfsi_plus_twitter_countsFrom),
|
334 |
+
'sfsi_plus_twitter_manualCounts' => intval($sfsi_plus_twitter_manualCounts),
|
335 |
+
'sfsiplus_tw_consumer_key' => sfsi_plus_sanitize_field($sfsiplus_tw_consumer_key),
|
336 |
+
'sfsiplus_tw_consumer_secret' => sfsi_plus_sanitize_field($sfsiplus_tw_consumer_secret),
|
337 |
+
'sfsiplus_tw_oauth_access_token' => sfsi_plus_sanitize_field($sfsiplus_tw_oauth_access_token),
|
338 |
+
'sfsiplus_tw_oauth_access_token_secret'=> sfsi_plus_sanitize_field($sfsiplus_tw_oauth_access_token_secret),
|
339 |
|
340 |
+
'sfsi_plus_google_countsDisplay' => sanitize_text_field($sfsi_plus_google_countsDisplay),
|
341 |
+
'sfsi_plus_google_countsFrom' => sanitize_text_field($sfsi_plus_google_countsFrom),
|
342 |
+
'sfsi_plus_google_manualCounts' => intval($sfsi_plus_google_manualCounts),
|
343 |
+
'sfsi_plus_google_api_key' => sfsi_plus_sanitize_field($sfsi_plus_google_api_key),
|
344 |
|
345 |
+
/*'sfsi_plus_ln_company' => $sfsi_plus_ln_company,
|
346 |
+
'sfsi_plus_ln_api_key' => $sfsi_plus_ln_api_key,
|
347 |
+
'sfsi_plus_ln_secret_key' => $sfsi_plus_ln_secret_key,
|
348 |
+
'sfsi_plus_ln_oAuth_user_token' => $sfsi_plus_ln_oAuth_user_token,*/
|
349 |
+
'sfsi_plus_linkedIn_countsDisplay' => sanitize_text_field($sfsi_plus_linkedIn_countsDisplay),
|
350 |
+
'sfsi_plus_linkedIn_countsFrom' => sanitize_text_field($sfsi_plus_linkedIn_countsFrom),
|
351 |
+
'sfsi_plus_linkedIn_manualCounts' => intval($sfsi_plus_linkedIn_manualCounts),
|
352 |
|
353 |
+
'sfsi_plus_youtube_countsDisplay' => sanitize_text_field($sfsi_plus_youtube_countsDisplay),
|
354 |
+
'sfsi_plus_youtube_countsFrom' => sanitize_text_field($sfsi_plus_youtube_countsFrom),
|
355 |
+
'sfsi_plus_youtube_manualCounts' => intval($sfsi_plus_youtube_manualCounts),
|
356 |
+
'sfsi_plus_youtube_user' => sfsi_plus_sanitize_field($sfsi_plus_youtube_user),
|
357 |
+
'sfsi_plus_youtube_channelId' => sfsi_plus_sanitize_field($sfsi_plus_youtube_channelId),
|
358 |
|
359 |
+
'sfsi_plus_pinterest_countsDisplay' => sanitize_text_field($sfsi_plus_pinterest_countsDisplay),
|
360 |
+
'sfsi_plus_pinterest_countsFrom' => sanitize_text_field($sfsi_plus_pinterest_countsFrom),
|
361 |
+
'sfsi_plus_pinterest_manualCounts' => intval($sfsi_plus_pinterest_manualCounts),
|
362 |
+
//'sfsi_plus_pinterest_user' => $sfsi_plus_pinterest_user,
|
363 |
+
//'sfsi_plus_pinterest_board' => $sfsi_plus_pinterest_board,
|
364 |
|
365 |
+
'sfsi_plus_instagram_countsFrom' => sanitize_text_field($sfsi_plus_instagram_countsFrom),
|
366 |
+
'sfsi_plus_instagram_countsDisplay' => sanitize_text_field($sfsi_plus_instagram_countsDisplay),
|
367 |
+
'sfsi_plus_instagram_manualCounts' => intval($sfsi_plus_instagram_manualCounts),
|
368 |
+
'sfsi_plus_instagram_User' => sanitize_text_field($sfsi_plus_instagram_User),
|
369 |
|
370 |
+
'sfsi_plus_shares_countsDisplay' => sanitize_text_field($sfsi_plus_shares_countsDisplay),
|
371 |
+
'sfsi_plus_shares_countsFrom' => sanitize_text_field($sfsi_plus_shares_countsFrom),
|
372 |
+
'sfsi_plus_shares_manualCounts' => intval($sfsi_plus_shares_manualCounts),
|
373 |
|
374 |
+
'sfsi_plus_houzz_countsDisplay' => sanitize_text_field($sfsi_plus_houzz_countsDisplay),
|
375 |
+
'sfsi_plus_houzz_countsFrom' => sanitize_text_field($sfsi_plus_houzz_countsFrom),
|
376 |
+
'sfsi_plus_houzz_manualCounts' => intval($sfsi_plus_houzz_manualCounts),
|
377 |
);
|
378 |
update_option('sfsi_plus_section4_options',serialize($up_option4));
|
379 |
|
|
|
|
|
|
|
380 |
$new_counts = sfsi_plus_getCounts();
|
381 |
header('Content-Type: application/json');
|
382 |
echo json_encode(array("res"=>"success",'counts'=>$new_counts)); exit;
|
391 |
$sfsi_plus_icons_size = isset($_POST["sfsi_plus_icons_size"]) ? $_POST["sfsi_plus_icons_size"] : '51';
|
392 |
$sfsi_plus_icons_spacing = isset($_POST["sfsi_plus_icons_spacing"]) ? $_POST["sfsi_plus_icons_spacing"] : '2';
|
393 |
$sfsi_plus_icons_Alignment = isset($_POST["sfsi_plus_icons_Alignment"]) ? $_POST["sfsi_plus_icons_Alignment"] : 'center';
|
|
|
394 |
$sfsi_plus_icons_perRow = isset($_POST["sfsi_plus_icons_perRow"]) ? $_POST["sfsi_plus_icons_perRow"] : '5';
|
395 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
396 |
$sfsi_plus_icons_language = isset($_POST["sfsi_plus_icons_language"]) ? $_POST["sfsi_plus_icons_language"] : 'en_US';
|
397 |
+
$sfsi_plus_icons_ClickPageOpen = isset($_POST["sfsi_plus_icons_ClickPageOpen"]) ? $_POST["sfsi_plus_icons_ClickPageOpen"] : 'no';
|
|
|
|
|
398 |
$sfsi_plus_icons_float = isset($_POST["sfsi_plus_icons_float"]) ? $_POST["sfsi_plus_icons_float"] : 'no';
|
399 |
$sfsi_plus_disable_floaticons = isset($_POST["sfsi_plus_disable_floaticons"]) ? $_POST["sfsi_plus_disable_floaticons"] : 'no';
|
400 |
$sfsi_plus_disable_viewport = isset($_POST["sfsi_plus_disable_viewport"]) ? $_POST["sfsi_plus_disable_viewport"] : 'no';
|
425 |
$sfsi_plus_linkedinIcon_order = isset($_POST["sfsi_plus_linkedinIcon_order"]) ? $_POST["sfsi_plus_linkedinIcon_order"] : '9';
|
426 |
$sfsi_plus_instagramIcon_order = isset($_POST["sfsi_plus_instagramIcon_order"]) ? $_POST["sfsi_plus_instagramIcon_order"] : '10';
|
427 |
$sfsi_plus_houzzIcon_order = isset($_POST["sfsi_plus_houzzIcon_order"]) ? $_POST["sfsi_plus_houzzIcon_order"] : '11';
|
428 |
+
$sfsi_plus_custom_MouseOverTexts = isset($_POST["sfsi_plus_custom_MouseOverTexts"]) ? serialize($_POST["sfsi_plus_custom_MouseOverTexts"]):'';
|
429 |
|
430 |
+
$sfsi_plus_follow_icons_language = isset($_POST["sfsi_plus_follow_icons_language"])
|
431 |
+
? $_POST["sfsi_plus_follow_icons_language"]
|
432 |
+
: 'Follow_en_US';
|
433 |
+
$sfsi_plus_facebook_icons_language = isset($_POST["sfsi_plus_facebook_icons_language"])
|
434 |
+
? $_POST["sfsi_plus_facebook_icons_language"]
|
435 |
+
: 'Visit_us_en_US';
|
436 |
+
$sfsi_plus_twitter_icons_language = isset($_POST["sfsi_plus_twitter_icons_language"])
|
437 |
+
? $_POST["sfsi_plus_twitter_icons_language"]
|
438 |
+
: 'Visit_us_en_US';
|
439 |
+
$sfsi_plus_google_icons_language = isset($_POST["sfsi_plus_google_icons_language"])
|
440 |
+
? $_POST["sfsi_plus_google_icons_language"]
|
441 |
+
: 'Visit_us_en_US';
|
442 |
+
/* size and spacing of icons */
|
443 |
$up_option5=array(
|
444 |
+
'sfsi_plus_icons_size' => intval($sfsi_plus_icons_size),
|
445 |
+
'sfsi_plus_icons_spacing' => intval($sfsi_plus_icons_spacing),
|
446 |
+
'sfsi_plus_icons_Alignment' => sanitize_text_field($sfsi_plus_icons_Alignment),
|
447 |
+
'sfsi_plus_icons_perRow' => intval($sfsi_plus_icons_perRow),
|
448 |
+
'sfsi_plus_follow_icons_language' => sanitize_text_field($sfsi_plus_follow_icons_language),
|
449 |
+
'sfsi_plus_facebook_icons_language' => sanitize_text_field($sfsi_plus_facebook_icons_language),
|
450 |
+
'sfsi_plus_twitter_icons_language' => sanitize_text_field($sfsi_plus_twitter_icons_language),
|
451 |
+
'sfsi_plus_google_icons_language' => sanitize_text_field($sfsi_plus_google_icons_language),
|
452 |
+
'sfsi_plus_icons_language' => sanitize_text_field($sfsi_plus_icons_language),
|
453 |
+
'sfsi_plus_icons_ClickPageOpen' => sanitize_text_field($sfsi_plus_icons_ClickPageOpen),
|
454 |
+
'sfsi_plus_icons_float' => sanitize_text_field($sfsi_plus_icons_float),
|
455 |
+
'sfsi_plus_disable_floaticons' => sanitize_text_field($sfsi_plus_disable_floaticons),
|
456 |
+
'sfsi_plus_disable_viewport' => sanitize_text_field($sfsi_plus_disable_viewport),
|
457 |
+
'sfsi_plus_icons_floatPosition' => sanitize_text_field($sfsi_plus_icons_floatPosition),
|
458 |
+
'sfsi_plus_icons_stick' => sanitize_text_field($sfsi_plus_icons_stick),
|
459 |
/* mouse over texts */
|
460 |
+
'sfsi_plus_rss_MouseOverText' => sanitize_text_field($sfsi_plus_rss_MouseOverText),
|
461 |
+
'sfsi_plus_email_MouseOverText' => sanitize_text_field($sfsi_plus_email_MouseOverText),
|
462 |
+
'sfsi_plus_twitter_MouseOverText' => sanitize_text_field($sfsi_plus_twitter_MouseOverText),
|
463 |
+
'sfsi_plus_facebook_MouseOverText' => sanitize_text_field($sfsi_plus_facebook_MouseOverText),
|
464 |
+
'sfsi_plus_google_MouseOverText' => sanitize_text_field($sfsi_plus_google_MouseOverText),
|
465 |
+
'sfsi_plus_linkedIn_MouseOverText' => sanitize_text_field($sfsi_plus_linkedIn_MouseOverText),
|
466 |
+
'sfsi_plus_pinterest_MouseOverText' => sanitize_text_field($sfsi_plus_pinterest_MouseOverText),
|
467 |
+
'sfsi_plus_youtube_MouseOverText' => sanitize_text_field($sfsi_plus_youtube_MouseOverText),
|
468 |
+
'sfsi_plus_share_MouseOverText' => sanitize_text_field($sfsi_plus_share_MouseOverText),
|
469 |
+
'sfsi_plus_instagram_MouseOverText' => sanitize_text_field($sfsi_plus_instagram_MouseOverText),
|
470 |
+
'sfsi_plus_houzz_MouseOverText' => sanitize_text_field($sfsi_plus_houzz_MouseOverText),
|
471 |
+
'sfsi_plus_CustomIcons_order' => $sfsi_plus_custom_orders,
|
472 |
+
'sfsi_plus_rssIcon_order' => intval($sfsi_plus_rssIcon_order),
|
473 |
+
'sfsi_plus_emailIcon_order' => intval($sfsi_plus_emailIcon_order),
|
474 |
+
'sfsi_plus_facebookIcon_order' => intval($sfsi_plus_facebookIcon_order),
|
475 |
+
'sfsi_plus_googleIcon_order' => intval($sfsi_plus_googleIcon_order),
|
476 |
+
'sfsi_plus_twitterIcon_order' => intval($sfsi_plus_twitterIcon_order),
|
477 |
+
'sfsi_plus_shareIcon_order' => intval($sfsi_plus_shareIcon_order),
|
478 |
+
'sfsi_plus_youtubeIcon_order' => intval($sfsi_plus_youtubeIcon_order),
|
479 |
+
'sfsi_plus_pinterestIcon_order' => intval($sfsi_plus_pinterestIcon_order),
|
480 |
+
'sfsi_plus_instagramIcon_order' => intval($sfsi_plus_instagramIcon_order),
|
481 |
+
'sfsi_plus_houzzIcon_order' => intval($sfsi_plus_houzzIcon_order),
|
482 |
+
'sfsi_plus_linkedinIcon_order' => intval($sfsi_plus_linkedinIcon_order),
|
483 |
+
'sfsi_plus_custom_MouseOverTexts' => $sfsi_plus_custom_MouseOverTexts
|
484 |
);
|
485 |
|
486 |
update_option('sfsi_plus_section5_options',serialize($up_option5));
|
501 |
$sfsi_plus_icons_DisplayCounts = isset($_POST["sfsi_plus_icons_DisplayCounts"]) ? $_POST["sfsi_plus_icons_DisplayCounts"] : 'no';
|
502 |
/* post options */
|
503 |
$up_option6=array(
|
504 |
+
'sfsi_plus_show_Onposts' => sanitize_text_field($sfsi_plus_show_Onposts),
|
505 |
+
'sfsi_plus_icons_postPositon' => sanitize_text_field($sfsi_plus_icons_postPositon),
|
506 |
+
'sfsi_plus_icons_alignment' => sanitize_text_field($sfsi_plus_icons_alignment),
|
507 |
+
'sfsi_plus_textBefor_icons' => sanitize_text_field(stripslashes($sfsi_plus_textBefor_icons)),
|
508 |
+
'sfsi_plus_icons_DisplayCounts' => sanitize_text_field($sfsi_plus_icons_DisplayCounts),
|
509 |
+
);
|
510 |
+
update_option('sfsi_plus_section6_options',serialize($up_option6));
|
511 |
header('Content-Type: application/json');
|
512 |
echo json_encode(array("success")); exit;
|
513 |
}
|
514 |
/* save settings for section 7 */
|
515 |
add_action('wp_ajax_plus_updateSrcn7','sfsi_plus_options_updater7');
|
516 |
function sfsi_plus_options_updater7()
|
517 |
+
{
|
518 |
if ( !wp_verify_nonce( $_POST['nonce'], "update_plus_step7")) {
|
519 |
echo json_encode(array("wrong_nonce")); exit;
|
520 |
}
|
521 |
+
$sfsi_plus_popup_text = isset($_POST["sfsi_plus_popup_text"]) ? $_POST["sfsi_plus_popup_text"] : '';
|
522 |
+
$sfsi_plus_popup_background_color = isset($_POST["sfsi_plus_popup_background_color"])
|
523 |
+
? $_POST["sfsi_plus_popup_background_color"]
|
524 |
+
: '#fffff';
|
525 |
+
$sfsi_plus_popup_border_color = isset($_POST["sfsi_plus_popup_border_color"])
|
526 |
+
? $_POST["sfsi_plus_popup_border_color"]
|
527 |
+
: 'center-right';
|
528 |
+
$sfsi_plus_popup_border_thickness = isset($_POST["sfsi_plus_popup_border_thickness"]) ? $_POST["sfsi_plus_popup_border_thickness"] : '';
|
529 |
+
$sfsi_plus_popup_border_shadow = isset($_POST["sfsi_plus_popup_border_shadow"]) ? $_POST["sfsi_plus_popup_border_shadow"] : 'no';
|
530 |
+
$sfsi_plus_popup_font = isset($_POST["sfsi_plus_popup_font"]) ? $_POST["sfsi_plus_popup_font"] : '';
|
531 |
+
$sfsi_plus_popup_fontSize = isset($_POST["sfsi_plus_popup_fontSize"]) ? $_POST["sfsi_plus_popup_fontSize"] : 'no';
|
532 |
+
$sfsi_plus_popup_fontStyle = isset($_POST["sfsi_plus_popup_fontStyle"]) ? $_POST["sfsi_plus_popup_fontStyle"] : '';
|
533 |
+
$sfsi_plus_popup_fontColor = isset($_POST["sfsi_plus_popup_fontColor"]) ? $_POST["sfsi_plus_popup_fontColor"] : 'no';
|
534 |
+
$sfsi_plus_Show_popupOn = isset($_POST["sfsi_plus_Show_popupOn"]) ? $_POST["sfsi_plus_Show_popupOn"] : '';
|
535 |
+
$sfsi_plus_Show_popupOn_PageIDs = isset($_POST["sfsi_plus_Show_popupOn_PageIDs"])
|
536 |
+
? serialize($_POST["sfsi_plus_Show_popupOn_PageIDs"])
|
537 |
+
: '';
|
538 |
+
$sfsi_plus_Shown_pop = isset($_POST["sfsi_plus_Shown_pop"]) ? $_POST["sfsi_plus_Shown_pop"] : '';
|
539 |
+
$sfsi_plus_Shown_popupOnceTime = isset($_POST["sfsi_plus_Shown_popupOnceTime"]) ? $_POST["sfsi_plus_Shown_popupOnceTime"] : 'no';
|
540 |
+
$sfsi_plus_Shown_popuplimitPerUserTime = isset($_POST["sfsi_plus_Shown_popuplimitPerUserTime"])
|
541 |
+
? $_POST["sfsi_plus_Shown_popuplimitPerUserTime"]
|
542 |
+
: '';
|
543 |
+
/* icons pop options */
|
544 |
$up_option7=array(
|
545 |
+
'sfsi_plus_popup_text' => sanitize_text_field(stripslashes($sfsi_plus_popup_text)),
|
546 |
+
'sfsi_plus_popup_font' => sanitize_text_field($sfsi_plus_popup_font),
|
547 |
+
'sfsi_plus_popup_fontColor' => sfsi_plus_sanitize_hex_color($sfsi_plus_popup_fontColor),
|
548 |
+
'sfsi_plus_popup_fontSize' => intval($sfsi_plus_popup_fontSize),
|
549 |
+
'sfsi_plus_popup_fontStyle' => sanitize_text_field($sfsi_plus_popup_fontStyle),
|
550 |
+
'sfsi_plus_popup_background_color' => sfsi_plus_sanitize_hex_color($sfsi_plus_popup_background_color),
|
551 |
+
'sfsi_plus_popup_border_color' => sfsi_plus_sanitize_hex_color($sfsi_plus_popup_border_color),
|
552 |
+
'sfsi_plus_popup_border_thickness' => intval($sfsi_plus_popup_border_thickness),
|
553 |
+
'sfsi_plus_popup_border_shadow' => sanitize_text_field($sfsi_plus_popup_border_shadow),
|
554 |
+
'sfsi_plus_Show_popupOn' => sanitize_text_field($sfsi_plus_Show_popupOn),
|
|
|
555 |
'sfsi_plus_Show_popupOn_PageIDs' => $sfsi_plus_Show_popupOn_PageIDs,
|
556 |
+
'sfsi_plus_Shown_pop' => sanitize_text_field($sfsi_plus_Shown_pop),
|
557 |
+
'sfsi_plus_Shown_popupOnceTime' => intval($sfsi_plus_Shown_popupOnceTime),
|
558 |
+
//'sfsi_plus_Shown_popuplimitPerUserTime' => $sfsi_plus_Shown_popuplimitPerUserTime,
|
|
|
559 |
);
|
560 |
update_option('sfsi_plus_section7_options',serialize($up_option7));
|
561 |
header('Content-Type: application/json');
|
590 |
$sfsi_plus_display_before_posts = isset($_POST["sfsi_plus_display_before_posts"]) ? $_POST["sfsi_plus_display_before_posts"] : 'no';
|
591 |
$sfsi_plus_display_after_posts = isset($_POST["sfsi_plus_display_after_posts"]) ? $_POST["sfsi_plus_display_after_posts"] : 'no';
|
592 |
|
593 |
+
//$sfsi_plus_display_on_postspage = isset($_POST["sfsi_plus_display_on_postspage"]) ? $_POST["sfsi_plus_display_on_postspage"] : 'no';
|
594 |
+
//$sfsi_plus_display_on_homepage = isset($_POST["sfsi_plus_display_on_homepage"]) ? $_POST["sfsi_plus_display_on_homepage"] : 'no';
|
595 |
|
596 |
$sfsi_plus_display_before_blogposts = isset($_POST["sfsi_plus_display_before_blogposts"]) ? $_POST["sfsi_plus_display_before_blogposts"] : 'no';
|
597 |
$sfsi_plus_display_after_blogposts = isset($_POST["sfsi_plus_display_after_blogposts"]) ? $_POST["sfsi_plus_display_after_blogposts"] : 'no';
|
602 |
$sfsi_plus_recttwtr = isset($_POST["sfsi_plus_recttwtr"]) ? $_POST["sfsi_plus_recttwtr"] : 'no';
|
603 |
$sfsi_plus_rectpinit = isset($_POST["sfsi_plus_rectpinit"]) ? $_POST["sfsi_plus_rectpinit"] : 'no';
|
604 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
605 |
$up_option8=array(
|
606 |
+
'sfsi_plus_show_via_widget' => sanitize_text_field($sfsi_plus_show_via_widget),
|
607 |
+
'sfsi_plus_float_on_page' => sanitize_text_field($sfsi_plus_float_on_page),
|
608 |
+
'sfsi_plus_float_page_position' => sanitize_text_field($sfsi_plus_float_page_position),
|
609 |
+
'sfsi_plus_icons_floatMargin_top' => intval($sfsi_plus_icons_floatMargin_top),
|
610 |
+
'sfsi_plus_icons_floatMargin_bottom'=> intval($sfsi_plus_icons_floatMargin_bottom),
|
611 |
+
'sfsi_plus_icons_floatMargin_left' => intval($sfsi_plus_icons_floatMargin_left),
|
612 |
+
'sfsi_plus_icons_floatMargin_right' => intval($sfsi_plus_icons_floatMargin_right),
|
613 |
+
'sfsi_plus_place_item_manually' => sanitize_text_field($sfsi_plus_place_item_manually),
|
614 |
+
'sfsi_plus_show_item_onposts' => sanitize_text_field($sfsi_plus_show_item_onposts),
|
615 |
+
'sfsi_plus_display_button_type' => sanitize_text_field($sfsi_plus_display_button_type),
|
616 |
+
'sfsi_plus_post_icons_size' => intval($sfsi_plus_post_icons_size),
|
617 |
+
'sfsi_plus_post_icons_spacing' => intval($sfsi_plus_post_icons_spacing),
|
618 |
+
'sfsi_plus_show_Onposts' => sanitize_text_field($sfsi_plus_show_Onposts),
|
619 |
+
'sfsi_plus_textBefor_icons' => sanitize_text_field(stripslashes($sfsi_plus_textBefor_icons)),
|
620 |
+
'sfsi_plus_icons_alignment' => sanitize_text_field($sfsi_plus_icons_alignment),
|
621 |
+
'sfsi_plus_icons_DisplayCounts' => sanitize_text_field($sfsi_plus_icons_DisplayCounts),
|
622 |
+
'sfsi_plus_display_before_posts' => sanitize_text_field($sfsi_plus_display_before_posts),
|
623 |
+
'sfsi_plus_display_after_posts' => sanitize_text_field($sfsi_plus_display_after_posts),
|
624 |
+
|
625 |
+
//'sfsi_plus_display_on_postspage' => $sfsi_plus_display_on_postspage,
|
626 |
+
//'sfsi_plus_display_on_homepage' => $sfsi_plus_display_on_homepage,
|
627 |
+
|
628 |
+
'sfsi_plus_display_before_blogposts'=> sanitize_text_field($sfsi_plus_display_before_blogposts),
|
629 |
+
'sfsi_plus_display_after_blogposts' => sanitize_text_field($sfsi_plus_display_after_blogposts),
|
630 |
+
'sfsi_plus_rectsub' => sanitize_text_field($sfsi_plus_rectsub),
|
631 |
+
'sfsi_plus_rectfb' => sanitize_text_field($sfsi_plus_rectfb),
|
632 |
+
'sfsi_plus_rectgp' => sanitize_text_field($sfsi_plus_rectgp),
|
633 |
+
'sfsi_plus_rectshr' => sanitize_text_field($sfsi_plus_rectshr),
|
634 |
+
'sfsi_plus_recttwtr' => sanitize_text_field($sfsi_plus_recttwtr),
|
635 |
+
'sfsi_plus_rectpinit' => sanitize_text_field($sfsi_plus_rectpinit)
|
636 |
);
|
637 |
update_option('sfsi_plus_section8_options',serialize($up_option8));
|
638 |
header('Content-Type: application/json');
|
678 |
|
679 |
/* icons pop options */
|
680 |
$up_option9 = array(
|
681 |
+
'sfsi_plus_form_adjustment' => sanitize_text_field($sfsi_plus_form_adjustment),
|
682 |
+
'sfsi_plus_form_height' => intval($sfsi_plus_form_height),
|
683 |
+
'sfsi_plus_form_width' => intval($sfsi_plus_form_width),
|
684 |
+
'sfsi_plus_form_border' => sanitize_text_field($sfsi_plus_form_border),
|
685 |
+
'sfsi_plus_form_border_thickness'=> intval($sfsi_plus_form_border_thickness),
|
686 |
+
'sfsi_plus_form_border_color' => sfsi_plus_sanitize_hex_color($sfsi_plus_form_border_color),
|
687 |
+
'sfsi_plus_form_background' => sfsi_plus_sanitize_hex_color($sfsi_plus_form_background),
|
688 |
|
689 |
+
'sfsi_plus_form_heading_text' => sanitize_text_field(stripslashes($sfsi_plus_form_heading_text)),
|
690 |
+
'sfsi_plus_form_heading_font' => sanitize_text_field($sfsi_plus_form_heading_font),
|
691 |
+
'sfsi_plus_form_heading_fontstyle'=> sanitize_text_field($sfsi_plus_form_heading_fontstyle),
|
692 |
+
'sfsi_plus_form_heading_fontcolor'=> sfsi_plus_sanitize_hex_color($sfsi_plus_form_heading_fontcolor),
|
693 |
+
'sfsi_plus_form_heading_fontsize' => intval($sfsi_plus_form_heading_fontsize),
|
694 |
+
'sfsi_plus_form_heading_fontalign'=> sanitize_text_field($sfsi_plus_form_heading_fontalign),
|
695 |
|
696 |
+
'sfsi_plus_form_field_text' => sanitize_text_field(stripslashes($sfsi_plus_form_field_text)),
|
697 |
+
'sfsi_plus_form_field_font' => sanitize_text_field($sfsi_plus_form_field_font),
|
698 |
+
'sfsi_plus_form_field_fontstyle'=> sanitize_text_field($sfsi_plus_form_field_fontstyle),
|
699 |
+
'sfsi_plus_form_field_fontcolor'=> sfsi_plus_sanitize_hex_color($sfsi_plus_form_field_fontcolor),
|
700 |
+
'sfsi_plus_form_field_fontsize' => intval($sfsi_plus_form_field_fontsize),
|
701 |
+
'sfsi_plus_form_field_fontalign'=> sanitize_text_field($sfsi_plus_form_field_fontalign),
|
702 |
|
703 |
+
'sfsi_plus_form_button_text' => sanitize_text_field(stripslashes($sfsi_plus_form_button_text)),
|
704 |
+
'sfsi_plus_form_button_font' => sanitize_text_field($sfsi_plus_form_button_font),
|
705 |
+
'sfsi_plus_form_button_fontstyle'=> sanitize_text_field($sfsi_plus_form_button_fontstyle),
|
706 |
+
'sfsi_plus_form_button_fontcolor'=> sfsi_plus_sanitize_hex_color($sfsi_plus_form_button_fontcolor),
|
707 |
+
'sfsi_plus_form_button_fontsize'=> intval($sfsi_plus_form_button_fontsize),
|
708 |
+
'sfsi_plus_form_button_fontalign'=> sanitize_text_field($sfsi_plus_form_button_fontalign),
|
709 |
+
'sfsi_plus_form_button_background'=> sfsi_plus_sanitize_hex_color($sfsi_plus_form_button_background),
|
710 |
);
|
711 |
|
712 |
update_option('sfsi_plus_section9_options',serialize($up_option9));
|
740 |
/* get email count */
|
741 |
if($sfsi_plus_section4_options['sfsi_plus_email_countsFrom']=="source" )
|
742 |
{
|
743 |
+
$feed_id = sanitize_text_field(get_option('sfsi_plus_feed_id',false));
|
744 |
+
$feed_data = $socialObj->SFSI_getFeedSubscriber($feed_id);
|
745 |
|
746 |
+
$scounts['email_count']= $socialObj->format_num($feed_data);
|
747 |
if(empty($scounts['email_count']))
|
748 |
{
|
749 |
$scounts['email_count']=(string) "0";
|
837 |
{
|
838 |
$linkedIn_compay=$sfsi_plus_section2_options['sfsi_plus_linkedin_followCompany'];
|
839 |
$linkedIn_compay=$sfsi_plus_section4_options['sfsi_plus_ln_company'];
|
840 |
+
$ln_settings=array(
|
841 |
+
'sfsi_plus_ln_api_key' => $sfsi_plus_section4_options['sfsi_plus_ln_api_key'],
|
842 |
+
'sfsi_plus_ln_secret_key' => $sfsi_plus_section4_options['sfsi_plus_ln_secret_key'],
|
843 |
+
'sfsi_plus_ln_oAuth_user_token' => $sfsi_plus_section4_options['sfsi_plus_ln_oAuth_user_token']
|
844 |
+
);
|
845 |
$followers=$socialObj->sfsi_getlinkedin_follower($linkedIn_compay,$ln_settings);
|
846 |
$scounts['linkedIn_count']= $socialObj->format_num($followers);
|
847 |
}
|
861 |
$youtube_user = (
|
862 |
isset($sfsi_plus_section4_options['sfsi_plus_youtube_user']) &&
|
863 |
!empty($sfsi_plus_section4_options['sfsi_plus_youtube_user'])
|
864 |
+
) ? $sfsi_plus_section4_options['sfsi_plus_youtube_user'] : 'SpecificFeeds';
|
865 |
|
866 |
$followers = $socialObj->sfsi_get_youtube($youtube_user);
|
867 |
$scounts['youtube_count'] = $socialObj->format_num($followers);
|
868 |
}
|
869 |
else
|
870 |
{
|
871 |
+
$scounts['youtube_count'] = 01;
|
872 |
}
|
873 |
}
|
874 |
else
|
938 |
}
|
939 |
return $scounts; exit;
|
940 |
}
|
941 |
+
|
942 |
/* activate and remove footer credit link */
|
943 |
add_action('wp_ajax_plus_activateFooter','sfsiplusActivateFooter');
|
944 |
function sfsiplusActivateFooter()
|
949 |
update_option('sfsi_plus_footer_sec', 'yes');
|
950 |
echo json_encode(array('res'=>'success'));exit;
|
951 |
}
|
952 |
+
|
953 |
add_action('wp_ajax_plus_removeFooter','sfsiplusremoveFooter');
|
954 |
function sfsiplusremoveFooter()
|
955 |
{
|
959 |
update_option('sfsi_plus_footer_sec', 'no');
|
960 |
echo json_encode(array('res'=>'success'));exit;
|
961 |
}
|
962 |
+
|
963 |
add_action('wp_ajax_getIconPreview','sfsiPlusGetIconPreview');
|
964 |
function sfsiPlusGetIconPreview()
|
965 |
{
|
967 |
echo '<img src="'.$iconname."/icon_".$iconValue.'.png" >';
|
968 |
die;
|
969 |
}
|
970 |
+
|
971 |
add_action('wp_ajax_getForm','sfsiPlusGetForm');
|
972 |
function sfsiPlusGetForm()
|
973 |
{
|
989 |
<?php
|
990 |
die;
|
991 |
}
|
992 |
+
|
993 |
add_action("wp_ajax_sfsiPlus_notification_read", "sfsiPlus_notification_read");
|
994 |
function sfsiPlus_notification_read()
|
995 |
{
|
997 |
echo "success";
|
998 |
die;
|
999 |
}
|
1000 |
+
|
1001 |
+
function sfsi_plus_sanitize_field($value)
|
1002 |
+
{
|
1003 |
+
return strip_tags(trim($value));
|
1004 |
+
}
|
1005 |
+
//Sanitize color code
|
1006 |
+
if(@!function_exists(sfsi_plus_sanitize_hex_color))
|
1007 |
+
{
|
1008 |
+
function sfsi_plus_sanitize_hex_color( $color )
|
1009 |
+
{
|
1010 |
+
if ( '' === $color )
|
1011 |
+
return '';
|
1012 |
+
|
1013 |
+
// 3 or 6 hex digits, or the empty string.
|
1014 |
+
if ( preg_match('|^#([A-Fa-f0-9]{3}){1,2}$|', $color ) )
|
1015 |
+
return $color;
|
1016 |
+
}
|
1017 |
+
}
|
1018 |
?>
|
libs/controllers/sfsi_iconsUpload_contoller.php
CHANGED
@@ -3,11 +3,6 @@
|
|
3 |
add_action('wp_ajax_plus_UploadSkins','sfsi_plus_UploadSkins');
|
4 |
function sfsi_plus_UploadSkins()
|
5 |
{
|
6 |
-
//require(ABSPATH.'/wp-load.php');
|
7 |
-
if ( defined('ABSPATH') )
|
8 |
-
require_once(ABSPATH . 'wp-load.php');
|
9 |
-
else
|
10 |
-
require_once('../../../../../wp-load.php');
|
11 |
extract($_REQUEST);
|
12 |
$upload_dir = wp_upload_dir();
|
13 |
|
@@ -85,11 +80,6 @@ function sfsi_plus_UploadSkins()
|
|
85 |
add_action('wp_ajax_plus_DeleteSkin','sfsi_plus_DeleteSkin');
|
86 |
function sfsi_plus_DeleteSkin()
|
87 |
{
|
88 |
-
//require(ABSPATH.'/wp-load.php');
|
89 |
-
if ( defined('ABSPATH') )
|
90 |
-
require_once(ABSPATH . 'wp-load.php');
|
91 |
-
else
|
92 |
-
require_once('../../../../../wp-load.php');
|
93 |
$upload_dir = wp_upload_dir();
|
94 |
|
95 |
if($_REQUEST['action'] == 'plus_DeleteSkin' && isset($_REQUEST['iconname']) && !empty($_REQUEST['iconname']))
|
@@ -115,6 +105,7 @@ function sfsi_plus_DeleteSkin()
|
|
115 |
add_action('wp_ajax_plus_Iamdone','sfsi_plus_Iamdone');
|
116 |
function sfsi_plus_Iamdone()
|
117 |
{
|
|
|
118 |
if(get_option("plus_rss_skin"))
|
119 |
{
|
120 |
$icon = get_option("plus_rss_skin");
|
@@ -222,11 +213,6 @@ add_action('wp_ajax_plus_UploadIcons','sfsi_plus_UploadIcons');
|
|
222 |
/* uplaod custom icon {change by monad}*/
|
223 |
function sfsi_plus_UploadIcons()
|
224 |
{
|
225 |
-
if ( defined('ABSPATH') )
|
226 |
-
require_once(ABSPATH . 'wp-load.php');
|
227 |
-
else
|
228 |
-
require_once('../../../../../wp-load.php');
|
229 |
-
|
230 |
extract($_POST);
|
231 |
|
232 |
$upload_dir = wp_upload_dir();
|
3 |
add_action('wp_ajax_plus_UploadSkins','sfsi_plus_UploadSkins');
|
4 |
function sfsi_plus_UploadSkins()
|
5 |
{
|
|
|
|
|
|
|
|
|
|
|
6 |
extract($_REQUEST);
|
7 |
$upload_dir = wp_upload_dir();
|
8 |
|
80 |
add_action('wp_ajax_plus_DeleteSkin','sfsi_plus_DeleteSkin');
|
81 |
function sfsi_plus_DeleteSkin()
|
82 |
{
|
|
|
|
|
|
|
|
|
|
|
83 |
$upload_dir = wp_upload_dir();
|
84 |
|
85 |
if($_REQUEST['action'] == 'plus_DeleteSkin' && isset($_REQUEST['iconname']) && !empty($_REQUEST['iconname']))
|
105 |
add_action('wp_ajax_plus_Iamdone','sfsi_plus_Iamdone');
|
106 |
function sfsi_plus_Iamdone()
|
107 |
{
|
108 |
+
$return = '';
|
109 |
if(get_option("plus_rss_skin"))
|
110 |
{
|
111 |
$icon = get_option("plus_rss_skin");
|
213 |
/* uplaod custom icon {change by monad}*/
|
214 |
function sfsi_plus_UploadIcons()
|
215 |
{
|
|
|
|
|
|
|
|
|
|
|
216 |
extract($_POST);
|
217 |
|
218 |
$upload_dir = wp_upload_dir();
|
libs/controllers/sfsi_socialhelper.php
CHANGED
@@ -143,11 +143,11 @@ class sfsi_plus_SocialHelper
|
|
143 |
!empty($sfsi_plus_section4_options['sfsi_plus_youtube_channelId'])
|
144 |
) ? $sfsi_plus_section4_options['sfsi_plus_youtube_channelId'] : 'UCYQyWnJPrY4XY3Avc7BU9aA';
|
145 |
|
146 |
-
$xmlData =
|
147 |
}
|
148 |
else
|
149 |
{
|
150 |
-
$xmlData =
|
151 |
}
|
152 |
|
153 |
if($xmlData)
|
@@ -179,7 +179,7 @@ class sfsi_plus_SocialHelper
|
|
179 |
{
|
180 |
$scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https" :"http";
|
181 |
$url=$scheme.'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
|
182 |
-
$json_string =
|
183 |
$json = json_decode($json_string, true);
|
184 |
return isset($json['shares'])? $this->format_num((int) $json['shares']):0;
|
185 |
}
|
143 |
!empty($sfsi_plus_section4_options['sfsi_plus_youtube_channelId'])
|
144 |
) ? $sfsi_plus_section4_options['sfsi_plus_youtube_channelId'] : 'UCYQyWnJPrY4XY3Avc7BU9aA';
|
145 |
|
146 |
+
$xmlData = $this->file_get_contents_curl('https://www.googleapis.com/youtube/v3/channels?part=statistics&id='.$user.'&key=AIzaSyA_SqAZGCpZ22vHzOUr3St5xf5XMy78oTY');
|
147 |
}
|
148 |
else
|
149 |
{
|
150 |
+
$xmlData = $this->file_get_contents_curl('https://www.googleapis.com/youtube/v3/channels?part=statistics&forUsername='.$user.'&key=AIzaSyA_SqAZGCpZ22vHzOUr3St5xf5XMy78oTY');
|
151 |
}
|
152 |
|
153 |
if($xmlData)
|
179 |
{
|
180 |
$scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https" :"http";
|
181 |
$url=$scheme.'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
|
182 |
+
$json_string = $this->file_get_contents_curl('http://api-public.addthis.com/url/shares.json?url='.$url);
|
183 |
$json = json_decode($json_string, true);
|
184 |
return isset($json['shares'])? $this->format_num((int) $json['shares']):0;
|
185 |
}
|
libs/controllers/sfsiocns_OnPosts.php
CHANGED
@@ -143,7 +143,7 @@ function sfsi_plus_Subscribelike($permalink, $show_count)
|
|
143 |
}
|
144 |
else
|
145 |
{
|
146 |
-
$counts= $socialObj->SFSI_getFeedSubscriber(get_option('sfsi_plus_feed_id',false));
|
147 |
}
|
148 |
|
149 |
if($sfsi_plus_section8_options['sfsi_plus_icons_DisplayCounts']=="yes")
|
143 |
}
|
144 |
else
|
145 |
{
|
146 |
+
$counts= $socialObj->SFSI_getFeedSubscriber(sanitize_text_field(get_option('sfsi_plus_feed_id',false)));
|
147 |
}
|
148 |
|
149 |
if($sfsi_plus_section8_options['sfsi_plus_icons_DisplayCounts']=="yes")
|
libs/sfsi_install_uninstall.php
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?php
|
2 |
function sfsi_plus_update_plugin()
|
3 |
{
|
4 |
-
if($feed_id = get_option('sfsi_plus_feed_id'))
|
5 |
{
|
6 |
if(is_numeric($feed_id))
|
7 |
{
|
8 |
$sfsiId = SFSI_PLUS_updateFeedUrl();
|
9 |
-
update_option('sfsi_plus_feed_id', $sfsiId->feed_id);
|
10 |
-
update_option('sfsi_plus_redirect_url', $sfsiId->redirect_url);
|
11 |
}
|
12 |
}
|
13 |
|
14 |
//Install version
|
15 |
-
update_option("sfsi_plus_pluginVersion", "2.
|
16 |
|
17 |
/*show notification*/
|
18 |
if(!get_option('sfsi_plus_show_notification'))
|
@@ -122,8 +122,8 @@ function sfsi_plus_activate_plugin()
|
|
122 |
|
123 |
if(get_option('sfsi_plus_feed_id') && get_option('sfsi_plus_redirect_url'))
|
124 |
{
|
125 |
-
$sffeeds["feed_id"]
|
126 |
-
$sffeeds["redirect_url"]
|
127 |
$sffeeds = (object)$sffeeds;
|
128 |
}
|
129 |
else
|
@@ -348,8 +348,8 @@ function sfsi_plus_activate_plugin()
|
|
348 |
add_option('sfsi_plus_section8_options', serialize($options8));
|
349 |
|
350 |
/*Some additional option added*/
|
351 |
-
update_option('sfsi_plus_feed_id'
|
352 |
-
update_option('sfsi_plus_redirect_url'
|
353 |
|
354 |
add_option('sfsi_plus_installDate',date('Y-m-d h:i:s'));
|
355 |
add_option('sfsi_plus_RatingDiv','no');
|
@@ -370,7 +370,7 @@ function sfsi_plus_activate_plugin()
|
|
370 |
function sfsi_plus_deactivate_plugin()
|
371 |
{
|
372 |
global $wpdb;
|
373 |
-
sfsi_plus_updateFeedPing('Y',get_option('sfsi_plus_feed_id'));
|
374 |
|
375 |
} /* end function */
|
376 |
function sfsi_plus_updateFeedPing($status,$feed_id)
|
@@ -452,7 +452,7 @@ function SFSI_PLUS_getFeedUrl()
|
|
452 |
CURLOPT_POSTFIELDS => array(
|
453 |
'web_url' => get_bloginfo('url'),
|
454 |
'feed_url' => sfsi_plus_get_bloginfo('rss2_url'),
|
455 |
-
'email' =>
|
456 |
)
|
457 |
));
|
458 |
// Send the request & save response to $resp
|
@@ -480,10 +480,10 @@ function SFSI_PLUS_updateFeedUrl()
|
|
480 |
CURLOPT_USERAGENT => 'sf rss request',
|
481 |
CURLOPT_POST => 1,
|
482 |
CURLOPT_POSTFIELDS => array(
|
483 |
-
'feed_id' => get_option('sfsi_plus_feed_id'),
|
484 |
'web_url' => get_bloginfo('url'),
|
485 |
'feed_url' => sfsi_plus_get_bloginfo('rss2_url'),
|
486 |
-
'email' =>
|
487 |
)
|
488 |
));
|
489 |
// Send the request & save response to $resp
|
@@ -662,7 +662,7 @@ function sfsi_plus_pingVendor( $post_id )
|
|
662 |
$count++;
|
663 |
}
|
664 |
$postto_array = array(
|
665 |
-
'feed_id' => get_option('sfsi_plus_feed_id'),
|
666 |
'title' => $post_data['post_title'],
|
667 |
'description' => $post_data['post_content'],
|
668 |
'link' => $post_data['guid'],
|
1 |
<?php
|
2 |
function sfsi_plus_update_plugin()
|
3 |
{
|
4 |
+
if($feed_id = sanitize_text_field(get_option('sfsi_plus_feed_id')))
|
5 |
{
|
6 |
if(is_numeric($feed_id))
|
7 |
{
|
8 |
$sfsiId = SFSI_PLUS_updateFeedUrl();
|
9 |
+
update_option('sfsi_plus_feed_id' , sanitize_text_field($sfsiId->feed_id));
|
10 |
+
update_option('sfsi_plus_redirect_url' , sanitize_text_field($sfsiId->redirect_url));
|
11 |
}
|
12 |
}
|
13 |
|
14 |
//Install version
|
15 |
+
update_option("sfsi_plus_pluginVersion", "2.33");
|
16 |
|
17 |
/*show notification*/
|
18 |
if(!get_option('sfsi_plus_show_notification'))
|
122 |
|
123 |
if(get_option('sfsi_plus_feed_id') && get_option('sfsi_plus_redirect_url'))
|
124 |
{
|
125 |
+
$sffeeds["feed_id"] = sanitize_text_field(get_option('sfsi_plus_feed_id'));
|
126 |
+
$sffeeds["redirect_url"] = sanitize_text_field(get_option('sfsi_plus_redirect_url'));
|
127 |
$sffeeds = (object)$sffeeds;
|
128 |
}
|
129 |
else
|
348 |
add_option('sfsi_plus_section8_options', serialize($options8));
|
349 |
|
350 |
/*Some additional option added*/
|
351 |
+
update_option('sfsi_plus_feed_id' , sanitize_text_field($sffeeds->feed_id));
|
352 |
+
update_option('sfsi_plus_redirect_url' , sanitize_text_field($sffeeds->redirect_url));
|
353 |
|
354 |
add_option('sfsi_plus_installDate',date('Y-m-d h:i:s'));
|
355 |
add_option('sfsi_plus_RatingDiv','no');
|
370 |
function sfsi_plus_deactivate_plugin()
|
371 |
{
|
372 |
global $wpdb;
|
373 |
+
sfsi_plus_updateFeedPing('Y',sanitize_text_field(get_option('sfsi_plus_feed_id')));
|
374 |
|
375 |
} /* end function */
|
376 |
function sfsi_plus_updateFeedPing($status,$feed_id)
|
452 |
CURLOPT_POSTFIELDS => array(
|
453 |
'web_url' => get_bloginfo('url'),
|
454 |
'feed_url' => sfsi_plus_get_bloginfo('rss2_url'),
|
455 |
+
'email' => ''
|
456 |
)
|
457 |
));
|
458 |
// Send the request & save response to $resp
|
480 |
CURLOPT_USERAGENT => 'sf rss request',
|
481 |
CURLOPT_POST => 1,
|
482 |
CURLOPT_POSTFIELDS => array(
|
483 |
+
'feed_id' => sanitize_text_field(get_option('sfsi_plus_feed_id')),
|
484 |
'web_url' => get_bloginfo('url'),
|
485 |
'feed_url' => sfsi_plus_get_bloginfo('rss2_url'),
|
486 |
+
'email' => ''
|
487 |
)
|
488 |
));
|
489 |
// Send the request & save response to $resp
|
662 |
$count++;
|
663 |
}
|
664 |
$postto_array = array(
|
665 |
+
'feed_id' => sanitize_text_field(get_option('sfsi_plus_feed_id')),
|
666 |
'title' => $post_data['post_title'],
|
667 |
'description' => $post_data['post_content'],
|
668 |
'link' => $post_data['guid'],
|
libs/sfsi_plus_subscribe_widget.php
CHANGED
@@ -3,9 +3,9 @@
|
|
3 |
add_action("wp_head", "sfsi_plus_addStyleFunction");
|
4 |
function sfsi_plus_addStyleFunction()
|
5 |
{
|
6 |
-
$option9
|
7 |
-
$sfsi_plus_feediid
|
8 |
-
$url
|
9 |
echo $return = '';
|
10 |
?>
|
11 |
<script>
|
@@ -224,8 +224,8 @@ add_action( 'widgets_init', 'sfsiPlus_subscriber_load_widget' );
|
|
224 |
add_shortcode("USM_plus_form", "sfsi_plus_get_subscriberForm");
|
225 |
function sfsi_plus_get_subscriberForm()
|
226 |
{
|
227 |
-
$option9
|
228 |
-
$sfsi_plus_feediid
|
229 |
$url = "http://www.specificfeeds.com/widgets/subscribeWidget/";
|
230 |
|
231 |
$return = '';
|
3 |
add_action("wp_head", "sfsi_plus_addStyleFunction");
|
4 |
function sfsi_plus_addStyleFunction()
|
5 |
{
|
6 |
+
$option9 = unserialize(get_option('sfsi_plus_section9_options',false));
|
7 |
+
$sfsi_plus_feediid = sanitize_text_field(get_option('sfsi_plus_feed_id'));
|
8 |
+
$url = "http://www.specificfeeds.com/widgets/subscribeWidget/";
|
9 |
echo $return = '';
|
10 |
?>
|
11 |
<script>
|
224 |
add_shortcode("USM_plus_form", "sfsi_plus_get_subscriberForm");
|
225 |
function sfsi_plus_get_subscriberForm()
|
226 |
{
|
227 |
+
$option9 = unserialize(get_option('sfsi_plus_section9_options',false));
|
228 |
+
$sfsi_plus_feediid = sanitize_text_field(get_option('sfsi_plus_feed_id'));
|
229 |
$url = "http://www.specificfeeds.com/widgets/subscribeWidget/";
|
230 |
|
231 |
$return = '';
|
libs/sfsi_widget.php
CHANGED
@@ -489,7 +489,7 @@ function sfsi_plus_prepairIcons($icon_name,$is_front=0, $onpost="no")
|
|
489 |
}
|
490 |
else
|
491 |
{
|
492 |
-
$counts= $socialObj->SFSI_getFeedSubscriber(get_option('sfsi_plus_feed_id',false));
|
493 |
}
|
494 |
}
|
495 |
|
489 |
}
|
490 |
else
|
491 |
{
|
492 |
+
$counts= $socialObj->SFSI_getFeedSubscriber(sanitize_text_field(get_option('sfsi_plus_feed_id',false)));
|
493 |
}
|
494 |
}
|
495 |
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
-
===
|
2 |
Contributors: socialdude
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=seb.richter%40gmx%2enet&lc=LI
|
4 |
Tags: social media, facebook, instagram, youtube, twitter, share, social share, buttons, counter, pop-up, subscription, icons
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.4.2
|
7 |
-
Stable tag: 2.3.
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -50,7 +50,304 @@ Note: This plugin requires CURL to be activated/installed on your server (which
|
|
50 |
|
51 |
== Frequently Asked Questions ==
|
52 |
|
53 |
-
Please check
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
|
55 |
== Screenshots ==
|
56 |
|
@@ -75,6 +372,12 @@ Please check out the FAQ on http://ultimatelysocial.com
|
|
75 |
|
76 |
== Changelog ==
|
77 |
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
= 2.3.2 =
|
79 |
* Feedback mechanism disabled
|
80 |
* Tags reduced
|
@@ -199,5 +502,5 @@ Please check out the FAQ on http://ultimatelysocial.com
|
|
199 |
|
200 |
== Upgrade Notice ==
|
201 |
|
202 |
-
= 2.3.
|
203 |
-
* Please upgrade
|
1 |
+
=== Social Media ===
|
2 |
Contributors: socialdude
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=seb.richter%40gmx%2enet&lc=LI
|
4 |
Tags: social media, facebook, instagram, youtube, twitter, share, social share, buttons, counter, pop-up, subscription, icons
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.4.2
|
7 |
+
Stable tag: 2.3.3
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
50 |
|
51 |
== Frequently Asked Questions ==
|
52 |
|
53 |
+
= Please also check the more comprehensive FAQ on http://ultimatelysocial.com/faq =
|
54 |
+
|
55 |
+
.
|
56 |
+
|
57 |
+
= I face fundamental issues (the plugin doesn't load etc.) =
|
58 |
+
|
59 |
+
Please ensure that:
|
60 |
+
|
61 |
+
- You're using the latest version of the plugin(s)
|
62 |
+
- Your site is running on PHP 5.4 or above
|
63 |
+
- You have CURL activated (should be activated by default)
|
64 |
+
|
65 |
+
If you're not familiar with those please contact your hosting company or server admin.
|
66 |
+
|
67 |
+
Please check if you have browser extensions activated which may conflict with the plugin. Known culprits include:
|
68 |
+
|
69 |
+
- Open SEO Stats (Formerly: PageRank Status) in Chrome
|
70 |
+
- Adblock Plus in Chrome
|
71 |
+
- Vine in Chrome
|
72 |
+
|
73 |
+
Either de-activate those extensions or try it in a different browser.
|
74 |
+
|
75 |
+
If the plugin setting's area looks 'funny' after an upgrade then please clear your cache with String+F5 (PC) or Command+R (Mac).
|
76 |
+
|
77 |
+
Please also try if the other plugin works: https://wordpress.org/plugins/ultimate-social-media-icons/
|
78 |
+
|
79 |
+
= I get error messages 'Error : 7', 'Error : 56', 'Error : 6' etc. =
|
80 |
+
|
81 |
+
Those point to a CURL-issue on your site. Please contact your server admin or your hosting company to resolve it.
|
82 |
+
|
83 |
+
= Icons don't show =
|
84 |
+
|
85 |
+
Please ensure you actually placed them (under question 3).
|
86 |
+
|
87 |
+
If only some icons show, but not all, then please clear your cache, and check if you may have conflicting browser extensions (e.g. 'Disconnect'-app in Chrome). Also Ad-Blockers are known culprits, please switch them off temporarily to see if that is the reason.
|
88 |
+
|
89 |
+
If the icons still don't show then there's an issue with your template. Please contact the creator of your template for that.
|
90 |
+
|
91 |
+
= Twitter share-counts are not displaying (anymore) =
|
92 |
+
|
93 |
+
Unfortunately, Twitter stopped providing that information.
|
94 |
+
|
95 |
+
= Changes don't get saved / Deleted plugin but icons still show =
|
96 |
+
|
97 |
+
Most likely you have the WP Cache plugin installed. Please de-activate and then re-activate it.
|
98 |
+
|
99 |
+
= Links don't work =
|
100 |
+
|
101 |
+
Please ensure you've entered the 'http://' at the beginning of the url. If the icons are not clickable at all there is most likely an issue with your template.
|
102 |
+
|
103 |
+
= I cannot upload custom icons =
|
104 |
+
|
105 |
+
Most likely that's because you've set 'allow_url_fopen' to 'off'. Please turn it to 'on' (or ask your server admin to do so, he'll know what to do).
|
106 |
+
|
107 |
+
= My Youtube icon (direct follow) doesn't work =
|
108 |
+
|
109 |
+
Please ensure that you've selected the radio button 'Username' when you enter a youtube username, or 'Channel ID' when you entered a channel ID.
|
110 |
+
|
111 |
+
= Aligning the icons (centered, left- or right-aligned) doesn't work =
|
112 |
+
|
113 |
+
The alignment options under question 5 align the icons with respect to each other, not where they appear on the page. Everything else is template work.
|
114 |
+
|
115 |
+
= Clicking on the RSS icon returns funny codes =
|
116 |
+
|
117 |
+
That's normal. RSS users will know what to do with it (i.e. copy & paste the url into their RSS readers).
|
118 |
+
|
119 |
+
= Facebook 'like'-count isn't correct =
|
120 |
+
|
121 |
+
When you 'like' something on your blog via facebook it likes the site you're currently on (e.g. your blog) and not your Facebook page.
|
122 |
+
|
123 |
+
Therefore it also doesn't show the number of your facebook followers however that's something we're thinking about offering as well.
|
124 |
+
|
125 |
+
= Sharing doesn't take the right text or picture =
|
126 |
+
|
127 |
+
We use the codes from Facebook, Google+ etc. and therefore don't have any influence over which text & pic gets shared.
|
128 |
+
|
129 |
+
Note that you can define an image as 'Featured Image' which tells Facebook / Google etc. to take that one. You'll find this 'Featured Image' section in your blog's admin area where you can edit your blog post.
|
130 |
+
|
131 |
+
You can crosscheck which image Facebook will take by entering your url on https://developers.facebook.com/tools/debug/og/object/.
|
132 |
+
|
133 |
+
= The pop-up shows although I only gave my icon one function =
|
134 |
+
|
135 |
+
The pop-up only disappears if you've given your icons only a 'visit us'-function, otherwise (e.g. if you gave it 'Like' (on facebook) or 'Tweet' functions) a pop-up is still needed because the buttons for those are coming directly from the social media sites (e.g. Facebook, Twitter) and we don't have any influence over their design.
|
136 |
+
|
137 |
+
= I selected to display icons after every post but they don't show =
|
138 |
+
|
139 |
+
Please ensure you selected to display them also on your blog homepage (under question 3).
|
140 |
+
|
141 |
+
= Plugin decreases my site's loading speed =
|
142 |
+
|
143 |
+
The USM and USM+ plugins are one of the most optimized social media plugins in terms of impact on a site's loading speed (optimized code, compressed pictures etc.).
|
144 |
+
|
145 |
+
If you still experience loading speed issues, please note that:
|
146 |
+
|
147 |
+
- The more sharing- and invite- features you place on your site, the more external codes you load (i.e. from the social media sites; we just use their code), therefore impacting loading speed. So to prevent this, give your icons only 'Visit us'-functionality rather than sharing-functionalities.
|
148 |
+
|
149 |
+
- We've programmed it so that the code for the social media icons is the one which loads lasts on your site, i.e. after all the other content has already been loaded. This means: even if there is a decrease in loading speed, it does not impact a user's experience because he sees your site as quickly as before, only the social media icons take a bit longer to load.
|
150 |
+
|
151 |
+
There might be also other issues on your site which cause a high loading speed (e.g. conflicts with our plugins or template issues). Please ask your template creator about that.
|
152 |
+
|
153 |
+
= After moving from demo-server to live-server the follow/subscribe-link doesn't work anymore =
|
154 |
+
|
155 |
+
Please delete and install the plugin again.
|
156 |
+
|
157 |
+
If you already placed the code for a subscription form on your site, remove it again and take the new one from the new plugin installation.
|
158 |
+
|
159 |
+
= When I try to like/share via Facebook, I get error message 'App Not Setup: This app is still...' =
|
160 |
+
|
161 |
+
If you get the error message...
|
162 |
+
|
163 |
+
'App Not Setup: This app is still in development mode, and you don't have access to it. Switch to a registered test user or ask an app admin for permissions.'
|
164 |
+
|
165 |
+
...then most likely you're currently logged in with a business account on Facebook. Please logout, or switch to your personal account.
|
166 |
+
|
167 |
+
= There are other issues when I activate the plugin or place the icons =
|
168 |
+
|
169 |
+
Please check the following:
|
170 |
+
|
171 |
+
Please try the other plugin, i.e. if you use our USM plugin, please also try it with the USM+ plugin and vice versa.
|
172 |
+
|
173 |
+
The plugins require that CURL is installed & activated on your server (which should be the standard case). If you don't have it, please contact your hosting provider.
|
174 |
+
|
175 |
+
Please ensure that you don't have any browser extension activated which may conflict with the plugin, esp. those which block certain content. Known culprits include the 'Disconnect' extension in Chrome or the 'Privacy Badger' extension in Firefox.
|
176 |
+
|
177 |
+
If issues persist most likely your theme has issues which makes it incompatible with our plugin. Please contact your template creator for that.
|
178 |
+
|
179 |
+
= How can I see how many people shared or liked my post? =
|
180 |
+
|
181 |
+
You can see this by activating the 'counts' on the front end (under question 4 in the USM plugin, question 5 in the USM+ plugin).
|
182 |
+
|
183 |
+
We cannot provide you this data in other ways as it's coming directly from the social media sites. One exception: if you like to know when people start to follow you by email, then you can get email alerts. For that, please claim your feed (see question above).
|
184 |
+
|
185 |
+
= How can I change the 'Please follow & like us :)'? =
|
186 |
+
|
187 |
+
You can change it in the Widget-area where you dropped the widget on the sidebar. Please click on it (on the sidebar), it will open the menu where you can change the text.
|
188 |
+
|
189 |
+
If you don't want to show any text, just enter a space (' ').
|
190 |
+
|
191 |
+
= How can I remove the credit-link ('Powered by Ultimatelysocial')? =
|
192 |
+
|
193 |
+
Please note that we didn't place the credit link without your consent (you agreed to it when de-selecting the email-icon).
|
194 |
+
|
195 |
+
Open the first question in the plugin ('1. Which icons do you want to show on your site?'), on the level of the email-icon you see a link on the right hand side. Please click it to remove the credit link.
|
196 |
+
|
197 |
+
= Can I use a shortcode to place the button ? =
|
198 |
+
|
199 |
+
Yes, it's [DISPLAY_ULTIMATE_PLUS]. You can place it into any editor.
|
200 |
+
|
201 |
+
Alternatively, you can place the following into your codes: <?php echo do_shortcode('[DISPLAY_ULTIMATE_PLUS]'); ?>
|
202 |
+
|
203 |
+
= Can I also give the email-icon a 'mailto:' functionality? =
|
204 |
+
|
205 |
+
Yes, you can! For that please upload an email icon as custom icon, and then enter the mailto:-link (and email) under question 2.
|
206 |
+
|
207 |
+
To get the email-icon in the same design style you picked, activate it, then on the front-end, rightclick on the icon, and save it as picture. Upload that picture as custom icon.
|
208 |
+
|
209 |
+
= Can I also display the socialmedia icons vertically? =
|
210 |
+
|
211 |
+
Yes. For that please go to question 5 and select to display only 1 icon per row.
|
212 |
+
|
213 |
+
= How can I change the text on the 'visit us'-buttons? =
|
214 |
+
|
215 |
+
You have several options for this under question 6.
|
216 |
+
|
217 |
+
= Can I deactivate the icons on mobile? =
|
218 |
+
|
219 |
+
Yes, there's an option for that under question 6.
|
220 |
+
|
221 |
+
= How can I use two instances of the plugin on my site? =
|
222 |
+
|
223 |
+
You cannot use the same plugin twice, however you can install both the USM as well as the USM+ plugin (https://wordpress.org/plugins/ultimate-social-media-icons/). We've developed the code so that there are no conflicts and they can be used in parallel.
|
224 |
+
|
225 |
+
= Can I show a count or counter for my icons (e.g. how many people clicked on them) =
|
226 |
+
|
227 |
+
Yes, we offer this for the most popular icons. See question 5.
|
228 |
+
|
229 |
+
= I want to show the socialmedia buttons according to my preferred design style. Can I do this with this plugin? =
|
230 |
+
|
231 |
+
Yes, you have 16 possible design styles to pick from. Those are:
|
232 |
+
- Default icons
|
233 |
+
- Flat icons
|
234 |
+
- Thin icons
|
235 |
+
- Cute icons
|
236 |
+
- Cube or Cubes icons
|
237 |
+
- Chrome blue or grey icons
|
238 |
+
- Splash icons
|
239 |
+
- Orange icons
|
240 |
+
- Crystal icons
|
241 |
+
- Glossy icons
|
242 |
+
- Black icons
|
243 |
+
- Silver icons
|
244 |
+
- Shaded dark or light icons
|
245 |
+
- Transparent icons
|
246 |
+
|
247 |
+
You can also add custom bookmarks to your site. Pleae ensure that the size of the bookmark icon is not too large.
|
248 |
+
|
249 |
+
= I want to have my icons float on the page. Can I do this? =
|
250 |
+
|
251 |
+
Under question 3 you can choose how your buttons should display. There you can also decide to show them floating. Floating icons can look very cool!
|
252 |
+
|
253 |
+
Other options to place the icons are:
|
254 |
+
|
255 |
+
- Via shortcode
|
256 |
+
- Via widget / sidebar
|
257 |
+
- Before or after posts
|
258 |
+
|
259 |
+
= Which social media buttons do you support? =
|
260 |
+
|
261 |
+
You can upload any custom symbol or icon. Out of the box we offer the following:
|
262 |
+
|
263 |
+
- RSS
|
264 |
+
- Email
|
265 |
+
- Facebook / FB / Like / Share
|
266 |
+
- Google+ / Google Plus / Google + / Upvote / Share
|
267 |
+
- Instagram / Follow
|
268 |
+
- Twitter / Tweet / Share / Follow
|
269 |
+
- Pinterest / Follow / Pin-it
|
270 |
+
- LinkedIn
|
271 |
+
- Youtube
|
272 |
+
- Houzz
|
273 |
+
- Share (which includes many more social media sites)
|
274 |
+
|
275 |
+
= How does it work with the email subscription? =
|
276 |
+
|
277 |
+
The email subscription is an optional feature which allows your visitors to subscribe or follow you by email. Just select the email icon, and you subscribers will receive your new posts automatically by email (or other channels). It can be seen as an automatic newsletter which you can offer without any hassle.
|
278 |
+
|
279 |
+
You can also place a subscription form under question 8.
|
280 |
+
|
281 |
+
The messages are taken from your RSS feed. Make sure that your RSS feed is valid (however that should be the standard case if you're using Wordpress). It is a free rss2email tool, allowing subscribers to apply various filter opportunities. You can set up as many feeds as you want.
|
282 |
+
|
283 |
+
= Can I show a pop-up which asks users to share or subscribe? =
|
284 |
+
|
285 |
+
Yes, that is possible under question 7.
|
286 |
+
|
287 |
+
= Why do you call your plugin "Ultimate"? How is it better or more ultimate than the other plugins like Shareaholic, Addthis, Social media feather, Social media widget, Socialize, Mashare and so on? =
|
288 |
+
|
289 |
+
1.) The USM plugin has way more functions than the others
|
290 |
+
2.) It is much easier to use (especially bloggers who are just starting out need an easy interface)
|
291 |
+
3.) It offers more design icon or symbols styles
|
292 |
+
4.) It is 100% ethical
|
293 |
+
5.) It is 100% free, also advanced features
|
294 |
+
|
295 |
+
= How does the sharing work exactly? =
|
296 |
+
|
297 |
+
We apply the code from the social media sites so that your visitors can share your post or website. Therefore, we don't have any control over what gets shared, it is not our code. If you think that not the right picture gets shared, or the wrong text, then please contact the social media provider.
|
298 |
+
|
299 |
+
--
|
300 |
+
|
301 |
+
FOR NON-ENGLISH PLUGIN USERS
|
302 |
+
|
303 |
+
We are currently working on the translation of the plugin. However, you can already decide to show some of the icons in your language.
|
304 |
+
|
305 |
+
Please note that we're currently looking for volunteers to help us to translate the plugin into various languages. If you are interested, please email us at support at ultimatelysocial dot com and let us know into which language you could translate the plugin. Thank you!
|
306 |
+
|
307 |
+
= Informacion para las personas que hablan espagnol =
|
308 |
+
|
309 |
+
Este plugin es el mejor plugin en el mercado para colocar los iconos de redes sociales ( medios de comunicacion social ) en su pagina web.
|
310 |
+
|
311 |
+
Los botones permiten a los usuarios a compartir su sitio, o visitar su perfil en los medios sociales. Puede elegir entre muchos estilos de diseno de iconos y beneficiarse de muchas opciones de personalizacion.
|
312 |
+
|
313 |
+
Tambien le permite ofrecer una suscripcion a sus visitantes, para que puedan recibir sus mensajes por correo electronico de forma automatica.
|
314 |
+
|
315 |
+
El plugin es totalmente gratuito y muy facil de usar.
|
316 |
+
|
317 |
+
= Informacoes para pessoas que falam portugues =
|
318 |
+
|
319 |
+
Este plugin e o melhor plug-in no mercado para colocar icones de midia social em seu site.
|
320 |
+
|
321 |
+
Os botoes permitem que seus visitantes para compartilhar seu site, ou visite o seu perfil de midia social. Voce pode escolher de muitos estilos icone de design e beneficiar de muitas opcoes de personalizacao.
|
322 |
+
|
323 |
+
Ele tambem permite-lhe oferecer uma assinatura para seus visitantes, de modo que eles recebem suas mensagens por e-mail automaticamente.
|
324 |
+
|
325 |
+
O plugin e totalmente gratuito e muito facil de usar.
|
326 |
+
|
327 |
+
|
328 |
+
= Informationen fuer Menschen die deutsch sprechen =
|
329 |
+
|
330 |
+
Dieses Plugin ist das beste Plugin auf dem Markt auf Ihrer Webseite Social-Media-Symbole zu platzieren.
|
331 |
+
|
332 |
+
Die Icons lassen Sie Ihre Besucher Ihrer Website zu teilen, oder Ihre Social-Media Profil zu besuchen. Sie koennen aus vielen Design Optionen und Stilen waehlen und von vielen Individualisierungsmoeglichkeiten profitieren.
|
333 |
+
|
334 |
+
Es erlaubt Ihnen auch ein Abonnement fuer Ihre Besucher zu bieten, so dass sie automatisch Ihre Beitraege per E-Mail erhalten.
|
335 |
+
|
336 |
+
Das Plugin ist voellig kostenlos und sehr einfach zu bedienen.
|
337 |
+
|
338 |
+
|
339 |
+
= Informasi untuk orang berbicara bahasa Indonesia =
|
340 |
+
|
341 |
+
Plugin ini adalah plugin terbaik di pasar untuk menempatkan ikon media sosial di website Anda.
|
342 |
+
|
343 |
+
Tombol memungkinkan pengunjung Anda untuk berbagi situs Anda, atau kunjungi profil media sosial Anda. Anda dapat memilih dari berbagai gaya ikon desain dan manfaat dari banyak pilihan kustomisasi.
|
344 |
+
|
345 |
+
Hal ini juga memungkinkan Anda untuk menawarkan langganan untuk pengunjung Anda, sehingga mereka menerima posting Anda melalui email secara otomatis.
|
346 |
+
|
347 |
+
Plugin adalah gratis dan sangat mudah digunakan.
|
348 |
+
|
349 |
+
|
350 |
+
|
351 |
|
352 |
== Screenshots ==
|
353 |
|
372 |
|
373 |
== Changelog ==
|
374 |
|
375 |
+
= 2.3.3 =
|
376 |
+
* Removed the js files from plugin and using the ones provided by WP now
|
377 |
+
* POST calls optimized (sanitize, escape, validate)
|
378 |
+
* Removed feedback option
|
379 |
+
* Tags changed
|
380 |
+
|
381 |
= 2.3.2 =
|
382 |
* Feedback mechanism disabled
|
383 |
* Tags reduced
|
502 |
|
503 |
== Upgrade Notice ==
|
504 |
|
505 |
+
= 2.3.3 =
|
506 |
+
* Please upgrade
|
ultimate_social_media_icons.php
CHANGED
@@ -6,7 +6,7 @@ Description: The best social media plugin on the market. And 100% FREE. Allows y
|
|
6 |
Author: UltimatelySocial
|
7 |
Text Domain: ultimate-social-media-plus
|
8 |
Author URI: http://ultimatelysocial.com
|
9 |
-
Version: 2.3.
|
10 |
License: GPLv2
|
11 |
*/
|
12 |
|
@@ -36,7 +36,7 @@ register_deactivation_hook(__FILE__, 'sfsi_plus_deactivate_plugin');
|
|
36 |
register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
|
37 |
|
38 |
/*Plugin version setup*/
|
39 |
-
if(!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 2.
|
40 |
{
|
41 |
add_action("init", "sfsi_plus_update_plugin");
|
42 |
}
|
@@ -111,7 +111,7 @@ function ultimateplusfbmetatags()
|
|
111 |
$metarequest = get_option("adding_plustags");
|
112 |
$post_id = get_the_ID();
|
113 |
|
114 |
-
$feed_id = get_option('sfsi_plus_feed_id');
|
115 |
$verification_code = get_option('sfsi_plus_verificatiom_code');
|
116 |
if(!empty($feed_id) && !empty($verification_code) && $verification_code != "no" )
|
117 |
{
|
@@ -201,8 +201,8 @@ function ultimateplusfbmetatags()
|
|
201 |
//Get verification code
|
202 |
if(is_admin())
|
203 |
{
|
204 |
-
$code
|
205 |
-
$feed_id
|
206 |
if(empty($code) && !empty($feed_id))
|
207 |
{
|
208 |
add_action("init", "sfsi_plus_getverification_code");
|
@@ -210,7 +210,7 @@ if(is_admin())
|
|
210 |
}
|
211 |
function sfsi_plus_getverification_code()
|
212 |
{
|
213 |
-
$feed_id = get_option('sfsi_plus_feed_id');
|
214 |
$curl = curl_init();
|
215 |
curl_setopt_array($curl, array(
|
216 |
CURLOPT_RETURNTRANSFER => 1,
|
6 |
Author: UltimatelySocial
|
7 |
Text Domain: ultimate-social-media-plus
|
8 |
Author URI: http://ultimatelysocial.com
|
9 |
+
Version: 2.3.3
|
10 |
License: GPLv2
|
11 |
*/
|
12 |
|
36 |
register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
|
37 |
|
38 |
/*Plugin version setup*/
|
39 |
+
if(!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 2.33)
|
40 |
{
|
41 |
add_action("init", "sfsi_plus_update_plugin");
|
42 |
}
|
111 |
$metarequest = get_option("adding_plustags");
|
112 |
$post_id = get_the_ID();
|
113 |
|
114 |
+
$feed_id = sanitize_text_field(get_option('sfsi_plus_feed_id'));
|
115 |
$verification_code = get_option('sfsi_plus_verificatiom_code');
|
116 |
if(!empty($feed_id) && !empty($verification_code) && $verification_code != "no" )
|
117 |
{
|
201 |
//Get verification code
|
202 |
if(is_admin())
|
203 |
{
|
204 |
+
$code = sanitize_text_field(get_option('sfsi_plus_verificatiom_code'));
|
205 |
+
$feed_id = sanitize_text_field(get_option('sfsi_plus_feed_id'));
|
206 |
if(empty($code) && !empty($feed_id))
|
207 |
{
|
208 |
add_action("init", "sfsi_plus_getverification_code");
|
210 |
}
|
211 |
function sfsi_plus_getverification_code()
|
212 |
{
|
213 |
+
$feed_id = sanitize_text_field(get_option('sfsi_plus_feed_id'));
|
214 |
$curl = curl_init();
|
215 |
curl_setopt_array($curl, array(
|
216 |
CURLOPT_RETURNTRANSFER => 1,
|
views/sfsi_option_view1.php
CHANGED
@@ -1,7 +1,45 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
?>
|
|
|
5 |
<!-- Section 1 "Which icons do you want to show on your site? " main div Start -->
|
6 |
<div class="tab1" >
|
7 |
<p class="top_txt">
|
@@ -272,28 +310,28 @@
|
|
272 |
}
|
273 |
?>
|
274 |
<!-- Display all custom icons -->
|
275 |
-
<?php $count=1; for($i=$first_key
|
276 |
<?php if(!empty( $icons[$i])) : ?>
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
<?php $count++; endif;
|
297 |
|
298 |
<!-- Create a custom icon if total uploaded icons are less than 5 -->
|
299 |
<?php if($count <=5) : ?>
|
1 |
<?php
|
2 |
+
/* unserialize all saved option for first options */
|
3 |
+
$option1= unserialize(get_option('sfsi_plus_section1_options',false));
|
4 |
+
|
5 |
+
/**
|
6 |
+
* Sanitize, escape and validate values
|
7 |
+
*/
|
8 |
+
$option1['sfsi_plus_rss_display'] = (isset($option1['sfsi_plus_rss_display']))
|
9 |
+
? sanitize_text_field($option1['sfsi_plus_rss_display'])
|
10 |
+
: '';
|
11 |
+
$option1['sfsi_plus_email_display'] = (isset($option1['sfsi_plus_email_display']))
|
12 |
+
? sanitize_text_field($option1['sfsi_plus_email_display'])
|
13 |
+
: '';
|
14 |
+
$option1['sfsi_plus_facebook_display'] = (isset($option1['sfsi_plus_facebook_display']))
|
15 |
+
? sanitize_text_field($option1['sfsi_plus_facebook_display'])
|
16 |
+
: '';
|
17 |
+
$option1['sfsi_plus_twitter_display'] = (isset($option1['sfsi_plus_twitter_display']))
|
18 |
+
? sanitize_text_field($option1['sfsi_plus_twitter_display'])
|
19 |
+
: '';
|
20 |
+
$option1['sfsi_plus_google_display'] = (isset($option1['sfsi_plus_google_display']))
|
21 |
+
? sanitize_text_field($option1['sfsi_plus_google_display'])
|
22 |
+
: '';
|
23 |
+
$option1['sfsi_plus_share_display'] = (isset($option1['sfsi_plus_share_display']))
|
24 |
+
? sanitize_text_field($option1['sfsi_plus_share_display'])
|
25 |
+
: '';
|
26 |
+
$option1['sfsi_plus_youtube_display'] = (isset($option1['sfsi_plus_youtube_display']))
|
27 |
+
? sanitize_text_field($option1['sfsi_plus_youtube_display'])
|
28 |
+
: '';
|
29 |
+
$option1['sfsi_plus_pinterest_display'] = (isset($option1['sfsi_plus_pinterest_display']))
|
30 |
+
? sanitize_text_field($option1['sfsi_plus_pinterest_display'])
|
31 |
+
: '';
|
32 |
+
$option1['sfsi_plus_linkedin_display'] = (isset($option1['sfsi_plus_linkedin_display']))
|
33 |
+
? sanitize_text_field($option1['sfsi_plus_linkedin_display'])
|
34 |
+
: '';
|
35 |
+
$option1['sfsi_plus_instagram_display'] = (isset($option1['sfsi_plus_instagram_display']))
|
36 |
+
? sanitize_text_field($option1['sfsi_plus_instagram_display'])
|
37 |
+
: '';
|
38 |
+
$option1['sfsi_plus_houzz_display'] = (isset($option1['sfsi_plus_houzz_display']))
|
39 |
+
? sanitize_text_field($option1['sfsi_plus_houzz_display'])
|
40 |
+
: '';
|
41 |
?>
|
42 |
+
|
43 |
<!-- Section 1 "Which icons do you want to show on your site? " main div Start -->
|
44 |
<div class="tab1" >
|
45 |
<p class="top_txt">
|
310 |
}
|
311 |
?>
|
312 |
<!-- Display all custom icons -->
|
313 |
+
<?php $count=1; for($i=$first_key; $i<=$endkey; $i++) : ?>
|
314 |
<?php if(!empty( $icons[$i])) : ?>
|
315 |
+
<li id="plus_c<?php echo $i; ?>" class="plus_custom">
|
316 |
+
<div class="radio_section tb_4_ck">
|
317 |
+
<input name="plussfsiICON_<?php echo $i; ?>" checked="true" type="checkbox" value="yes" class="styled" element-type="sfsiplus-cusotm-icon" />
|
318 |
+
</div>
|
319 |
+
<span class="plus_custom-img">
|
320 |
+
<img class="plus_sfcm" src="<?php echo (!empty($icons[$i]))? esc_url($icons[$i]) : SFSI_PLUS_PLUGURL.'images/custom.png';?>" id="plus_CImg_<?php echo $i;?>"/>
|
321 |
+
</span>
|
322 |
+
<span class="custom sfsiplus_custom-txt">
|
323 |
+
<?php _e( 'Custom', SFSI_PLUS_DOMAIN); ?>
|
324 |
+
<?php echo $count;?>
|
325 |
+
</span>
|
326 |
+
<div class="sfsiplus_right_info">
|
327 |
+
<p>
|
328 |
+
<?php
|
329 |
+
_e('<span>It depends:</span> Upload a custom icon if you have other accounts/websites you want to link to.', SFSI_PLUS_DOMAIN);
|
330 |
+
?>
|
331 |
+
</p>
|
332 |
+
</div>
|
333 |
+
</li>
|
334 |
+
<?php $count++; endif; endfor; ?>
|
335 |
|
336 |
<!-- Create a custom icon if total uploaded icons are less than 5 -->
|
337 |
<?php if($count <=5) : ?>
|
views/sfsi_option_view2.php
CHANGED
@@ -1,8 +1,128 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
$option4= unserialize(get_option('sfsi_plus_section4_options',false));
|
4 |
-
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
?>
|
7 |
<!-- Section 2 "What do you want the icons to do?" main div Start -->
|
8 |
<div class="tab2">
|
@@ -31,8 +151,8 @@
|
|
31 |
|
32 |
<!-- EMAIL ICON -->
|
33 |
<?php
|
34 |
-
$feedId
|
35 |
-
$connectToFeed
|
36 |
?>
|
37 |
<div class="row sfsiplus_email_section">
|
38 |
<h2 class="sfsicls_email">
|
@@ -281,7 +401,7 @@
|
|
281 |
<div class="cstmutbchnlnmewpr" <?php if($sfsi_plus_youtubeusernameorid != 'id'){echo 'style="display: block;"';}?>>
|
282 |
<p class="extra_pp">
|
283 |
<label><?php _e( 'UserName:', SFSI_PLUS_DOMAIN ); ?></label>
|
284 |
-
<input name="sfsi_plus_ytube_user" type="url" value="<?php echo (isset($
|
285 |
</p>
|
286 |
<div class="utbe_instruction">
|
287 |
<?php _e( 'To find your Username go to "My channel" in Youtube menu bar on the left & Select the "About" tab and take your user name from URL there (e.g. https://www.youtube.com/user/<b>Myusername</b>/about).', SFSI_PLUS_DOMAIN ); ?>
|
@@ -456,13 +576,14 @@
|
|
456 |
<div class="plus_custom-links sfsiplus_custom_section">
|
457 |
<?php
|
458 |
$costom_links= unserialize($option2['sfsi_plus_CustomIcon_links']);
|
459 |
-
$count=1;
|
460 |
-
for($i
|
461 |
-
|
462 |
-
|
|
|
463 |
<h2 class="custom">
|
464 |
<span class="customstep2-img">
|
465 |
-
<img src="<?php echo (!empty($icons[$i])) ? $icons[$i] : SFSI_PLUS_PLUGURL.'images/custom.png';?>" id="CImg_<?php echo $new_element; ?>" style="border-radius:48%" />
|
466 |
</span>
|
467 |
<span class="sfsiCtxt">
|
468 |
<?php _e( 'Custom', SFSI_PLUS_DOMAIN ); ?>
|
@@ -477,11 +598,14 @@
|
|
477 |
<label>
|
478 |
<?php _e( 'Link:', SFSI_PLUS_DOMAIN ); ?>
|
479 |
</label>
|
480 |
-
<input name="sfsi_plus_CustomIcon_links[]" type="text" value="<?php echo (isset($costom_links[$i]) && $costom_links[$i]!='') ? $costom_links[$i] : '' ;?>" placeholder="http://" class="add" file-id="<?php echo $i; ?>" />
|
481 |
</p>
|
482 |
</div>
|
483 |
-
|
484 |
-
|
|
|
|
|
|
|
485 |
</div>
|
486 |
<!-- END Custom icon section here -->
|
487 |
<!-- SAVE BUTTON SECTION -->
|
1 |
<?php
|
2 |
+
/* unserialize all saved option for second section options */
|
3 |
$option4= unserialize(get_option('sfsi_plus_section4_options',false));
|
4 |
+
$option2= unserialize(get_option('sfsi_plus_section2_options',false));
|
5 |
+
|
6 |
+
/*
|
7 |
+
* Sanitize, escape and validate values
|
8 |
+
*/
|
9 |
+
$option2['sfsi_plus_rss_url'] = (isset($option2['sfsi_plus_rss_url']))
|
10 |
+
? esc_url($option2['sfsi_plus_rss_url'])
|
11 |
+
: '';
|
12 |
+
$option2['sfsi_plus_rss_icons'] = (isset($option2['sfsi_plus_rss_icons']))
|
13 |
+
? sanitize_text_field($option2['sfsi_plus_rss_icons'])
|
14 |
+
: '';
|
15 |
+
$option2['sfsi_plus_email_url'] = (isset($option2['sfsi_plus_email_url']))
|
16 |
+
? sanitize_text_field( $option2['sfsi_plus_email_url'])
|
17 |
+
: '';
|
18 |
+
|
19 |
+
$option2['sfsi_plus_facebookPage_option'] = (isset($option2['sfsi_plus_facebookPage_option']))
|
20 |
+
? sanitize_text_field($option2['sfsi_plus_facebookPage_option'])
|
21 |
+
: '';
|
22 |
+
$option2['sfsi_plus_facebookPage_url'] = (isset($option2['sfsi_plus_facebookPage_url']))
|
23 |
+
? esc_url($option2['sfsi_plus_facebookPage_url'])
|
24 |
+
: '';
|
25 |
+
$option2['sfsi_plus_facebookLike_option'] = (isset($option2['sfsi_plus_facebookLike_option']))
|
26 |
+
? sanitize_text_field($option2['sfsi_plus_facebookLike_option'])
|
27 |
+
: ' ';
|
28 |
+
$option2['sfsi_plus_facebookShare_option'] = (isset($option2['sfsi_plus_facebookShare_option']))
|
29 |
+
? sanitize_text_field($option2['sfsi_plus_facebookShare_option'])
|
30 |
+
: '';
|
31 |
+
|
32 |
+
$option2['sfsi_plus_twitter_followme'] = (isset($option2['sfsi_plus_twitter_followme']))
|
33 |
+
? sanitize_text_field($option2['sfsi_plus_twitter_followme'])
|
34 |
+
: '';
|
35 |
+
$option2['sfsi_plus_twitter_followUserName']= (isset($option2['sfsi_plus_twitter_followUserName']))
|
36 |
+
? sanitize_text_field($option2['sfsi_plus_twitter_followUserName'])
|
37 |
+
: '';
|
38 |
+
$option2['sfsi_plus_twitter_aboutPage'] = (isset($option2['sfsi_plus_twitter_aboutPage']))
|
39 |
+
? sanitize_text_field($option2['sfsi_plus_twitter_aboutPage'])
|
40 |
+
: '';
|
41 |
+
$option2['sfsi_plus_twitter_page'] = (isset($option2['sfsi_plus_twitter_page']))
|
42 |
+
? sanitize_text_field($option2['sfsi_plus_twitter_page'])
|
43 |
+
: '';
|
44 |
+
$option2['sfsi_plus_twitter_pageURL'] = (isset($option2['sfsi_plus_twitter_pageURL']))
|
45 |
+
? esc_url($option2['sfsi_plus_twitter_pageURL'])
|
46 |
+
: '';
|
47 |
+
$option2['sfsi_plus_twitter_aboutPageText'] = (isset($option2['sfsi_plus_twitter_aboutPageText']))
|
48 |
+
? sanitize_text_field($option2['sfsi_plus_twitter_aboutPageText'])
|
49 |
+
: '';
|
50 |
+
|
51 |
+
$option2['sfsi_plus_google_page'] = (isset($option2['sfsi_plus_google_page']))
|
52 |
+
? sanitize_text_field($option2['sfsi_plus_google_page'])
|
53 |
+
: '';
|
54 |
+
$option2['sfsi_plus_google_pageURL'] = (isset($option2['sfsi_plus_google_pageURL']))
|
55 |
+
? esc_url($option2['sfsi_plus_google_pageURL'])
|
56 |
+
: '';
|
57 |
+
$option2['sfsi_plus_googleLike_option'] = (isset($option2['sfsi_plus_googleLike_option']))
|
58 |
+
? sanitize_text_field($option2['sfsi_plus_googleLike_option'])
|
59 |
+
: '';
|
60 |
+
$option2['sfsi_plus_googleShare_option'] = (isset($option2['sfsi_plus_googleShare_option']))
|
61 |
+
? sanitize_text_field($option2['sfsi_plus_googleShare_option'])
|
62 |
+
: '';
|
63 |
+
|
64 |
+
$option2['sfsi_plus_youtube_pageUrl'] = (isset($option2['sfsi_plus_youtube_pageUrl']))
|
65 |
+
? esc_url($option2['sfsi_plus_youtube_pageUrl'])
|
66 |
+
: '';
|
67 |
+
$option2['sfsi_plus_youtube_page'] = (isset($option2['sfsi_plus_youtube_page']))
|
68 |
+
? sanitize_text_field($option2['sfsi_plus_youtube_page'])
|
69 |
+
: '';
|
70 |
+
$option2['sfsi_plus_youtube_follow'] = (isset($option2['sfsi_plus_youtube_follow']))
|
71 |
+
? sanitize_text_field($option2['sfsi_plus_youtube_follow'])
|
72 |
+
: '';
|
73 |
+
$option2['sfsi_plus_ytube_user'] = (isset($option2['sfsi_plus_ytube_user']))
|
74 |
+
? sanitize_text_field($option2['sfsi_plus_ytube_user'])
|
75 |
+
: '';
|
76 |
+
|
77 |
+
$option2['sfsi_plus_pinterest_page'] = (isset($option2['sfsi_plus_pinterest_page']))
|
78 |
+
? sanitize_text_field($option2['sfsi_plus_pinterest_page'])
|
79 |
+
: '';
|
80 |
+
$option2['sfsi_plus_pinterest_pageUrl'] = (isset($option2['sfsi_plus_pinterest_pageUrl']))
|
81 |
+
? esc_url($option2['sfsi_plus_pinterest_pageUrl'])
|
82 |
+
: '';
|
83 |
+
$option2['sfsi_plus_pinterest_pingBlog'] = (isset($option2['sfsi_plus_pinterest_pingBlog']))
|
84 |
+
? sanitize_text_field($option2['sfsi_plus_pinterest_pingBlog'])
|
85 |
+
: '';
|
86 |
+
|
87 |
+
$option2['sfsi_plus_instagram_pageUrl'] = (isset($option2['sfsi_plus_instagram_pageUrl']))
|
88 |
+
? esc_url($option2['sfsi_plus_instagram_pageUrl'])
|
89 |
+
: '';
|
90 |
+
|
91 |
+
$option2['sfsi_plus_linkedin_page'] = (isset($option2['sfsi_plus_linkedin_page']))
|
92 |
+
? sanitize_text_field($option2['sfsi_plus_linkedin_page'])
|
93 |
+
: '';
|
94 |
+
$option2['sfsi_plus_linkedin_pageURL'] = (isset($option2['sfsi_plus_linkedin_pageURL']))
|
95 |
+
? esc_url($option2['sfsi_plus_linkedin_pageURL'])
|
96 |
+
: '';
|
97 |
+
$option2['sfsi_plus_linkedin_follow'] = (isset($option2['sfsi_plus_linkedin_follow']))
|
98 |
+
? sanitize_text_field($option2['sfsi_plus_linkedin_follow'])
|
99 |
+
: '';
|
100 |
+
$option2['sfsi_plus_linkedin_followCompany']= (isset($option2['sfsi_plus_linkedin_followCompany']))
|
101 |
+
? intval($option2['sfsi_plus_linkedin_followCompany'])
|
102 |
+
: '';
|
103 |
+
$option2['sfsi_plus_linkedin_SharePage'] = (isset($option2['sfsi_plus_linkedin_SharePage']))
|
104 |
+
? sanitize_text_field($option2['sfsi_plus_linkedin_SharePage'])
|
105 |
+
: '';
|
106 |
+
$option2['sfsi_plus_linkedin_recommendBusines'] = (isset($option2['sfsi_plus_linkedin_recommendBusines']))
|
107 |
+
? sanitize_text_field($option2['sfsi_plus_linkedin_recommendBusines'])
|
108 |
+
: '';
|
109 |
+
$option2['sfsi_plus_linkedin_recommendCompany'] = (isset($option2['sfsi_plus_linkedin_recommendCompany']))
|
110 |
+
? sanitize_text_field($option2['sfsi_plus_linkedin_recommendCompany'])
|
111 |
+
: '';
|
112 |
+
$option2['sfsi_plus_linkedin_recommendProductId'] = (isset($option2['sfsi_plus_linkedin_recommendProductId']))
|
113 |
+
? intval($option2['sfsi_plus_linkedin_recommendProductId'])
|
114 |
+
: '';
|
115 |
+
|
116 |
+
$option2['sfsi_plus_houzz_pageUrl'] = (isset($option2['sfsi_plus_houzz_pageUrl']))
|
117 |
+
? esc_url($option2['sfsi_plus_houzz_pageUrl'])
|
118 |
+
: '';
|
119 |
+
$option4['sfsi_plus_youtubeusernameorid'] = (isset($option4['sfsi_plus_youtubeusernameorid']))
|
120 |
+
? sanitize_text_field($option4['sfsi_plus_youtubeusernameorid'])
|
121 |
+
: '';
|
122 |
+
$option4['sfsi_plus_ytube_chnlid'] = (isset($option4['sfsi_plus_ytube_chnlid']))
|
123 |
+
? strip_tags(trim($option4['sfsi_plus_ytube_chnlid']))
|
124 |
+
: '';
|
125 |
+
|
126 |
?>
|
127 |
<!-- Section 2 "What do you want the icons to do?" main div Start -->
|
128 |
<div class="tab2">
|
151 |
|
152 |
<!-- EMAIL ICON -->
|
153 |
<?php
|
154 |
+
$feedId = sanitize_text_field(get_option('sfsi_plus_feed_id',false));
|
155 |
+
$connectToFeed = "http://www.specificfeeds.com/?".base64_encode("userprofile=wordpress&feed_id=".$feedId);
|
156 |
?>
|
157 |
<div class="row sfsiplus_email_section">
|
158 |
<h2 class="sfsicls_email">
|
401 |
<div class="cstmutbchnlnmewpr" <?php if($sfsi_plus_youtubeusernameorid != 'id'){echo 'style="display: block;"';}?>>
|
402 |
<p class="extra_pp">
|
403 |
<label><?php _e( 'UserName:', SFSI_PLUS_DOMAIN ); ?></label>
|
404 |
+
<input name="sfsi_plus_ytube_user" type="url" value="<?php echo (isset($option2['sfsi_plus_ytube_user']) && $option2['sfsi_plus_ytube_user']!='') ? $option2['sfsi_plus_ytube_user'] : '' ;?>" placeholder="Youtube username" class="add" />
|
405 |
</p>
|
406 |
<div class="utbe_instruction">
|
407 |
<?php _e( 'To find your Username go to "My channel" in Youtube menu bar on the left & Select the "About" tab and take your user name from URL there (e.g. https://www.youtube.com/user/<b>Myusername</b>/about).', SFSI_PLUS_DOMAIN ); ?>
|
576 |
<div class="plus_custom-links sfsiplus_custom_section">
|
577 |
<?php
|
578 |
$costom_links= unserialize($option2['sfsi_plus_CustomIcon_links']);
|
579 |
+
$count = 1;
|
580 |
+
for($i = $first_key; $i <= $endkey; $i++) :
|
581 |
+
if(!empty( $icons[$i])) :
|
582 |
+
?>
|
583 |
+
<div class="row sfsiICON_<?php echo $i; ?> cm_lnk">
|
584 |
<h2 class="custom">
|
585 |
<span class="customstep2-img">
|
586 |
+
<img src="<?php echo (!empty($icons[$i])) ? esc_url($icons[$i]) : SFSI_PLUS_PLUGURL.'images/custom.png';?>" id="CImg_<?php echo $new_element; ?>" style="border-radius:48%" />
|
587 |
</span>
|
588 |
<span class="sfsiCtxt">
|
589 |
<?php _e( 'Custom', SFSI_PLUS_DOMAIN ); ?>
|
598 |
<label>
|
599 |
<?php _e( 'Link:', SFSI_PLUS_DOMAIN ); ?>
|
600 |
</label>
|
601 |
+
<input name="sfsi_plus_CustomIcon_links[]" type="text" value="<?php echo (isset($costom_links[$i]) && $costom_links[$i]!='') ? esc_url($costom_links[$i]) : '' ;?>" placeholder="http://" class="add" file-id="<?php echo $i; ?>" />
|
602 |
</p>
|
603 |
</div>
|
604 |
+
</div>
|
605 |
+
<?php
|
606 |
+
$count++;
|
607 |
+
endif; endfor;
|
608 |
+
?>
|
609 |
</div>
|
610 |
<!-- END Custom icon section here -->
|
611 |
<!-- SAVE BUTTON SECTION -->
|
views/sfsi_option_view3.php
CHANGED
@@ -1,6 +1,31 @@
|
|
1 |
<?php
|
2 |
/* unserialize all saved option for second section options */
|
3 |
$option3= unserialize(get_option('sfsi_plus_section3_options',false));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
?>
|
5 |
<!-- Section 3 "What design & animation do you want to give your icons?" main div Start -->
|
6 |
<div class="tab3">
|
@@ -12,7 +37,6 @@
|
|
12 |
<ul class="tab_3_list">
|
13 |
<li>
|
14 |
<?php _e( 'It comes across as <span>more professional/</span> gives your site<span> more “credit”</span>', SFSI_PLUS_DOMAIN ); ?>
|
15 |
-
|
16 |
</li>
|
17 |
<li>
|
18 |
<?php _e( 'A smart automatic animation can <span>make your visitors aware of your icons</span> in an unintrusive manner', SFSI_PLUS_DOMAIN ); ?>
|
1 |
<?php
|
2 |
/* unserialize all saved option for second section options */
|
3 |
$option3= unserialize(get_option('sfsi_plus_section3_options',false));
|
4 |
+
|
5 |
+
/*
|
6 |
+
* Sanitize, escape and validate values
|
7 |
+
*/
|
8 |
+
$option3['sfsi_plus_actvite_theme'] = (isset($option3['sfsi_plus_actvite_theme']))
|
9 |
+
? sanitize_text_field($option3['sfsi_plus_actvite_theme'])
|
10 |
+
: '';
|
11 |
+
$option3['sfsi_plus_mouseOver'] = (isset($option3['sfsi_plus_mouseOver']))
|
12 |
+
? sanitize_text_field($option3['sfsi_plus_mouseOver'])
|
13 |
+
: '';
|
14 |
+
$option3['sfsi_plus_mouseOver_effect'] = (isset($option3['sfsi_plus_mouseOver_effect']))
|
15 |
+
? sanitize_text_field($option3['sfsi_plus_mouseOver_effect'])
|
16 |
+
: '';
|
17 |
+
$option3['sfsi_plus_shuffle_icons'] = (isset($option3['sfsi_plus_shuffle_icons']))
|
18 |
+
? sanitize_text_field($option3['sfsi_plus_shuffle_icons'])
|
19 |
+
: '';
|
20 |
+
$option3['sfsi_plus_shuffle_Firstload'] = (isset($option3['sfsi_plus_shuffle_Firstload']))
|
21 |
+
? sanitize_text_field($option3['sfsi_plus_shuffle_Firstload'])
|
22 |
+
: '';
|
23 |
+
$option3['sfsi_plus_shuffle_interval'] = (isset($option3['sfsi_plus_shuffle_interval']))
|
24 |
+
? sanitize_text_field($option3['sfsi_plus_shuffle_interval'])
|
25 |
+
: '';
|
26 |
+
$option3['sfsi_plus_shuffle_intervalTime'] = (isset($option3['sfsi_plus_shuffle_intervalTime']))
|
27 |
+
? intval($option3['sfsi_plus_shuffle_intervalTime'])
|
28 |
+
: '';
|
29 |
?>
|
30 |
<!-- Section 3 "What design & animation do you want to give your icons?" main div Start -->
|
31 |
<div class="tab3">
|
37 |
<ul class="tab_3_list">
|
38 |
<li>
|
39 |
<?php _e( 'It comes across as <span>more professional/</span> gives your site<span> more “credit”</span>', SFSI_PLUS_DOMAIN ); ?>
|
|
|
40 |
</li>
|
41 |
<li>
|
42 |
<?php _e( 'A smart automatic animation can <span>make your visitors aware of your icons</span> in an unintrusive manner', SFSI_PLUS_DOMAIN ); ?>
|
views/sfsi_option_view4.php
CHANGED
@@ -1,11 +1,130 @@
|
|
1 |
<?php
|
2 |
/* unserialize all saved option for section 4 options */
|
3 |
-
|
|
|
4 |
if(!isset($option4['sfsi_plus_facebook_mypageCounts']))
|
5 |
{
|
6 |
$option4['sfsi_plus_facebook_mypageCounts'] = '';
|
7 |
}
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
$counts = sfsi_plus_getCounts();
|
10 |
/* fetch counts for admin sections */
|
11 |
|
@@ -573,7 +692,7 @@
|
|
573 |
<label class="high_prb">
|
574 |
<?php _e( 'Enter the figure manually', SFSI_PLUS_DOMAIN ); ?>
|
575 |
</label>
|
576 |
-
<input name="sfsi_plus_shares_manualCounts" type="text" class="input" value="<?php echo ($option4['
|
577 |
</li>
|
578 |
</ul>
|
579 |
</div>
|
1 |
<?php
|
2 |
/* unserialize all saved option for section 4 options */
|
3 |
+
$option2 = unserialize(get_option('sfsi_plus_section2_options',false));
|
4 |
+
$option4 = unserialize(get_option('sfsi_plus_section4_options',false));
|
5 |
if(!isset($option4['sfsi_plus_facebook_mypageCounts']))
|
6 |
{
|
7 |
$option4['sfsi_plus_facebook_mypageCounts'] = '';
|
8 |
}
|
9 |
+
|
10 |
+
/*
|
11 |
+
* Sanitize, escape and validate values
|
12 |
+
*/
|
13 |
+
$option4['sfsi_plus_display_counts'] = (isset($option4['sfsi_plus_display_counts']))
|
14 |
+
? sanitize_text_field($option4['sfsi_plus_display_counts'])
|
15 |
+
: '';
|
16 |
+
$option4['sfsi_plus_email_countsFrom'] = (isset($option4['sfsi_plus_email_countsFrom']))
|
17 |
+
? sanitize_text_field($option4['sfsi_plus_email_countsFrom'])
|
18 |
+
: '';
|
19 |
+
$option4['sfsi_plus_email_manualCounts'] = (isset($option4['sfsi_plus_email_manualCounts']))
|
20 |
+
? intval($option4['sfsi_plus_email_manualCounts'])
|
21 |
+
: '';
|
22 |
+
$option4['sfsi_plus_rss_countsDisplay'] = (isset($option4['sfsi_plus_rss_countsDisplay']))
|
23 |
+
? sanitize_text_field($option4['sfsi_plus_rss_countsDisplay'])
|
24 |
+
: '';
|
25 |
+
$option4['sfsi_plus_rss_manualCounts'] = (isset($option4['sfsi_plus_rss_manualCounts']))
|
26 |
+
? intval($option4['sfsi_plus_rss_manualCounts'])
|
27 |
+
: '';
|
28 |
+
$option4['sfsi_plus_email_countsDisplay'] = (isset($option4['sfsi_plus_email_countsDisplay']))
|
29 |
+
? sanitize_text_field($option4['sfsi_plus_email_countsDisplay'])
|
30 |
+
: '';
|
31 |
+
|
32 |
+
$option4['sfsi_plus_facebook_countsDisplay'] = (isset($option4['sfsi_plus_facebook_countsDisplay']))
|
33 |
+
? sanitize_text_field($option4['sfsi_plus_facebook_countsDisplay'])
|
34 |
+
: '';
|
35 |
+
$option4['sfsi_plus_facebook_countsFrom'] = (isset($option4['sfsi_plus_facebook_countsFrom']))
|
36 |
+
? sanitize_text_field($option4['sfsi_plus_facebook_countsFrom'])
|
37 |
+
: '';
|
38 |
+
$option4['sfsi_plus_facebook_mypageCounts'] = (isset($option4['sfsi_plus_facebook_mypageCounts']))
|
39 |
+
? sfsi_plus_sanitize_field($option4['sfsi_plus_facebook_mypageCounts'])
|
40 |
+
: '';
|
41 |
+
$option4['sfsi_plus_facebook_manualCounts'] = (isset($option4['sfsi_plus_facebook_manualCounts']))
|
42 |
+
? intval($option4['sfsi_plus_facebook_manualCounts'])
|
43 |
+
: '';
|
44 |
+
|
45 |
+
|
46 |
+
$option4['sfsi_plus_twitter_countsDisplay'] = (isset($option4['sfsi_plus_twitter_countsDisplay']))
|
47 |
+
? sanitize_text_field($option4['sfsi_plus_twitter_countsDisplay'])
|
48 |
+
: '';
|
49 |
+
$option4['sfsi_plus_twitter_countsFrom'] = (isset($option4['sfsi_plus_twitter_countsFrom']))
|
50 |
+
? sanitize_text_field($option4['sfsi_plus_twitter_countsFrom'])
|
51 |
+
: '';
|
52 |
+
$option4['sfsi_plus_twitter_manualCounts'] = (isset($option4['sfsi_plus_twitter_manualCounts']))
|
53 |
+
? intval($option4['sfsi_plus_twitter_manualCounts'])
|
54 |
+
: '';
|
55 |
+
$option4['sfsiplus_tw_consumer_key'] = (isset($option4['sfsiplus_tw_consumer_key']))
|
56 |
+
? sfsi_plus_sanitize_field($option4['sfsiplus_tw_consumer_key'])
|
57 |
+
: '';
|
58 |
+
$option4['sfsiplus_tw_consumer_secret'] = (isset($option4['sfsiplus_tw_consumer_secret']))
|
59 |
+
? sfsi_plus_sanitize_field($option4['sfsiplus_tw_consumer_secret'])
|
60 |
+
: '';
|
61 |
+
$option4['sfsiplus_tw_oauth_access_token'] = (isset($option4['sfsiplus_tw_oauth_access_token']))
|
62 |
+
? sfsi_plus_sanitize_field($option4['sfsiplus_tw_oauth_access_token'])
|
63 |
+
: '';
|
64 |
+
$option4['sfsiplus_tw_oauth_access_token_secret']= (isset($option4['sfsiplus_tw_oauth_access_token_secret']))
|
65 |
+
? sfsi_plus_sanitize_field($option4['sfsiplus_tw_oauth_access_token_secret'])
|
66 |
+
: '';
|
67 |
+
|
68 |
+
|
69 |
+
$option4['sfsi_plus_google_countsFrom'] = (isset($option4['sfsi_plus_google_countsFrom']))
|
70 |
+
? sanitize_text_field($option4['sfsi_plus_google_countsFrom'])
|
71 |
+
: '';
|
72 |
+
$option4['sfsi_plus_google_manualCounts'] = (isset($option4['sfsi_plus_google_manualCounts']))
|
73 |
+
? intval($option4['sfsi_plus_google_manualCounts'])
|
74 |
+
: '';
|
75 |
+
$option4['sfsi_plus_google_api_key'] = (isset($option4['sfsi_plus_google_api_key']))
|
76 |
+
? sfsi_plus_sanitize_field($option4['sfsi_plus_google_api_key'])
|
77 |
+
: '';
|
78 |
+
$option4['sfsi_plus_google_countsDisplay'] = (isset($option4['sfsi_plus_google_countsDisplay']))
|
79 |
+
? sanitize_text_field($option4['sfsi_plus_google_countsDisplay'])
|
80 |
+
: '';
|
81 |
+
|
82 |
+
$option4['sfsi_plus_youtube_countsDisplay'] = (isset($option4['sfsi_plus_youtube_countsDisplay']))
|
83 |
+
? sanitize_text_field($option4['sfsi_plus_youtube_countsDisplay'])
|
84 |
+
: '';
|
85 |
+
$option4['sfsi_plus_youtube_countsFrom'] = (isset($option4['sfsi_plus_youtube_countsFrom']))
|
86 |
+
? sanitize_text_field($option4['sfsi_plus_youtube_countsFrom'])
|
87 |
+
: '';
|
88 |
+
$option4['sfsi_plus_youtubeusernameorid'] = (isset($option4['sfsi_plus_youtubeusernameorid']))
|
89 |
+
? sanitize_text_field($option4['sfsi_plus_youtubeusernameorid'])
|
90 |
+
: '';
|
91 |
+
$option4['sfsi_plus_youtube_manualCounts'] = (isset($option4['sfsi_plus_youtube_manualCounts']))
|
92 |
+
? intval($option4['sfsi_plus_youtube_manualCounts'])
|
93 |
+
: '';
|
94 |
+
$option4['sfsi_plus_youtube_user'] = (isset($option4['sfsi_plus_youtube_user']))
|
95 |
+
? sfsi_plus_sanitize_field($option4['sfsi_plus_youtube_user'])
|
96 |
+
: '';
|
97 |
+
$option4['sfsi_plus_youtube_channelId'] = (isset($option4['sfsi_plus_youtube_channelId']))
|
98 |
+
? sfsi_plus_sanitize_field($option4['sfsi_plus_youtube_channelId'])
|
99 |
+
: '';
|
100 |
+
|
101 |
+
|
102 |
+
$option4['sfsi_plus_instagram_manualCounts'] = (isset($option4['sfsi_plus_instagram_manualCounts']))
|
103 |
+
? intval($option4['sfsi_plus_instagram_manualCounts'])
|
104 |
+
: '';
|
105 |
+
$option4['sfsi_plus_instagram_User'] = (isset($option4['sfsi_plus_instagram_User']))
|
106 |
+
? sfsi_plus_sanitize_field($option4['sfsi_plus_instagram_User'])
|
107 |
+
: '';
|
108 |
+
$option4['sfsi_plus_instagram_countsFrom'] = (isset($option4['sfsi_plus_instagram_countsFrom']))
|
109 |
+
? sanitize_text_field($option4['sfsi_plus_instagram_countsFrom'])
|
110 |
+
: '';
|
111 |
+
$option4['sfsi_plus_instagram_countsDisplay'] = (isset($option4['sfsi_plus_instagram_countsDisplay']))
|
112 |
+
? sanitize_text_field($option4['sfsi_plus_instagram_countsDisplay'])
|
113 |
+
: '';
|
114 |
+
|
115 |
+
$option4['sfsi_plus_linkedIn_manualCounts'] = (isset($option4['sfsi_plus_linkedIn_manualCounts']))
|
116 |
+
? intval($option4['sfsi_plus_linkedIn_manualCounts'])
|
117 |
+
: '';
|
118 |
+
$option4['sfsi_plus_houzz_manualCounts'] = (isset($option4['sfsi_plus_houzz_manualCounts']))
|
119 |
+
? intval($option4['sfsi_plus_houzz_manualCounts'])
|
120 |
+
: '';
|
121 |
+
$option4['sfsi_plus_pinterest_manualCounts'] = (isset($option4['sfsi_plus_pinterest_manualCounts']))
|
122 |
+
? intval($option4['sfsi_plus_pinterest_manualCounts'])
|
123 |
+
: '';
|
124 |
+
$option4['sfsi_plus_shares_manualCounts'] = (isset($option4['sfsi_plus_shares_manualCounts']))
|
125 |
+
? intval($option4['sfsi_plus_shares_manualCounts'])
|
126 |
+
: '';
|
127 |
+
|
128 |
$counts = sfsi_plus_getCounts();
|
129 |
/* fetch counts for admin sections */
|
130 |
|
692 |
<label class="high_prb">
|
693 |
<?php _e( 'Enter the figure manually', SFSI_PLUS_DOMAIN ); ?>
|
694 |
</label>
|
695 |
+
<input name="sfsi_plus_shares_manualCounts" type="text" class="input" value="<?php echo ($option4['sfsi_plus_shares_manualCounts']!='') ? $option4['sfsi_plus_shares_manualCounts'] : '' ;?>" style="<?php echo ($option4['sfsi_plus_shares_countsFrom']=='shares') ? 'display:none;' : '' ;?>" />
|
696 |
</li>
|
697 |
</ul>
|
698 |
</div>
|
views/sfsi_option_view5.php
CHANGED
@@ -5,24 +5,95 @@
|
|
5 |
$option5 = unserialize(get_option('sfsi_plus_section5_options',false));
|
6 |
$custom_icons_order = unserialize($option5['sfsi_plus_CustomIcons_order']);
|
7 |
$icons_order = array(
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
$visit_iconsUrl = SFSI_PLUS_PLUGURL."images/visit_icons/";
|
24 |
-
|
25 |
-
if(is_array($custom_icons_order) )
|
26 |
{
|
27 |
foreach($custom_icons_order as $data)
|
28 |
{
|
@@ -707,13 +778,7 @@
|
|
707 |
<p>
|
708 |
<?php _e( 'If you decided to show your icons via a widget, you can add the effect that when the user scrolls down, the icons will stick at the top of the screen so that they are still displayed even if the user scrolled all the way down. Do you want to do that?', SFSI_PLUS_DOMAIN ); ?>
|
709 |
</p>
|
710 |
-
|
711 |
-
<p class="list">Make icons float?</p>
|
712 |
-
<ul class="enough_waffling"><li><input name="sfsi_plus_icons_float" <?php //echo ($option5['sfsi_plus_icons_float']=='yes') ? 'checked="true"' : '' ;?> type="radio" value="yes" class="styled" /><label>Yes</label></li><li><input name="sfsi_plus_icons_float" <?php //echo ($option5['sfsi_plus_icons_float']=='no') ? 'checked="true"' : '' ;?> type="radio" value="no" class="styled" /><label>No</label></li></ul>
|
713 |
-
</div>
|
714 |
-
<div class="clear float_options" <?php //if($option5['sfsi_plus_icons_stick']=='yes' || $option5['sfsi_plus_icons_float']=='no') :?> style="display:none" <?php //endif;?>><div class="float">Where shall they float?</div><select name="sfsi_plus_icons_floatPosition" id="sfsi_plus_icons_floatPosition" class="styled"><option value="top-left" <?php //echo ($option5['sfsi_plus_icons_floatPosition']=='top-left') ? 'selected="selected"' : '' ;?> >Top - Left</option><option value="top-right" <?php //echo ($option5['sfsi_plus_icons_floatPosition']=='top-right') ? 'selected="selected"' : '' ;?> >Top - Right</option><option value="center-left" <?php //echo ($option5['sfsi_plus_icons_floatPosition']=='center-left') ? 'selected="selected"' : '' ;?> >Center - Left</option><option value="center-right" <?php //echo ($option5['sfsi_plus_icons_floatPosition']=='center-right') ? 'selected="selected"' : '' ;?> >Center - Right</option><option value="bottom-left" <?php //echo ($option5['sfsi_plus_icons_floatPosition']=='bottom-left') ? 'selected="selected"' : '' ;?> >Bottom - Left</option><option value="bottom-right" <?php //echo ($option5['sfsi_plus_icons_floatPosition']=='bottom-right') ? 'selected="selected"' : '' ;?> >Bottom - Right</option></select></div></div>-->
|
715 |
-
|
716 |
-
<div class="space">
|
717 |
<!--<p class="list">Make icons stick?</p>-->
|
718 |
<ul class="enough_waffling">
|
719 |
<li>
|
@@ -860,13 +925,6 @@
|
|
860 |
</div>
|
861 |
</div>
|
862 |
|
863 |
-
<!--<div class="clear">
|
864 |
-
<div class="mouseover_field sfsiplus_share_section">
|
865 |
-
<label>Share:</label>
|
866 |
-
<input name="sfsi_plus_share_MouseOverText" value="<?php //echo ($option5['sfsi_plus_share_MouseOverText']!='') ? $option5['sfsi_plus_share_MouseOverText'] : '' ;?>" type="text" />
|
867 |
-
</div>
|
868 |
-
</div>-->
|
869 |
-
|
870 |
<div class="clear"> </div>
|
871 |
<div class="plus_custom_m">
|
872 |
<?php
|
@@ -880,10 +938,10 @@
|
|
880 |
<?php _e( 'Custom', SFSI_PLUS_DOMAIN ); ?>
|
881 |
<?php echo $count; ?>:
|
882 |
</label>
|
883 |
-
<input name="sfsi_plus_custom_MouseOverTexts[]" value="<?php echo (isset($sfsiMouseOverTexts[$i]) && $sfsiMouseOverTexts[$i]!='') ? $sfsiMouseOverTexts[$i] : '' ;?>" type="text" file-id="<?php echo $i; ?>" />
|
884 |
</div>
|
885 |
<?php if($count%2==0): ?>
|
886 |
-
<div class="clear"
|
887 |
<?php endif; ?>
|
888 |
<?php $count++;
|
889 |
endif; endfor; ?>
|
5 |
$option5 = unserialize(get_option('sfsi_plus_section5_options',false));
|
6 |
$custom_icons_order = unserialize($option5['sfsi_plus_CustomIcons_order']);
|
7 |
$icons_order = array(
|
8 |
+
$option5['sfsi_plus_rssIcon_order'] =>'rss',
|
9 |
+
$option5['sfsi_plus_emailIcon_order'] =>'email',
|
10 |
+
$option5['sfsi_plus_facebookIcon_order'] =>'facebook',
|
11 |
+
$option5['sfsi_plus_googleIcon_order'] =>'google',
|
12 |
+
$option5['sfsi_plus_twitterIcon_order'] =>'twitter',
|
13 |
+
$option5['sfsi_plus_shareIcon_order'] =>'share',
|
14 |
+
$option5['sfsi_plus_youtubeIcon_order'] =>'youtube',
|
15 |
+
$option5['sfsi_plus_pinterestIcon_order'] =>'pinterest',
|
16 |
+
$option5['sfsi_plus_linkedinIcon_order'] =>'linkedin',
|
17 |
+
$option5['sfsi_plus_instagramIcon_order'] =>'instagram',
|
18 |
+
(isset($option5['sfsi_plus_houzzIcon_order']))
|
19 |
+
? $option5['sfsi_plus_houzzIcon_order']
|
20 |
+
: 11 => 'houzz'
|
21 |
+
);
|
22 |
+
|
23 |
+
/*
|
24 |
+
* Sanitize, escape and validate values
|
25 |
+
*/
|
26 |
+
$option5['sfsi_plus_icons_size'] = (isset($option5['sfsi_plus_icons_size']))
|
27 |
+
? intval($option5['sfsi_plus_icons_size'])
|
28 |
+
: '';
|
29 |
+
$option5['sfsi_plus_icons_spacing'] = (isset($option5['sfsi_plus_icons_spacing']))
|
30 |
+
? intval($option5['sfsi_plus_icons_spacing'])
|
31 |
+
: '';
|
32 |
+
$option5['sfsi_plus_icons_Alignment'] = (isset($option5['sfsi_plus_icons_Alignment']))
|
33 |
+
? sanitize_text_field($option5['sfsi_plus_icons_Alignment'])
|
34 |
+
: '';
|
35 |
+
$option5['sfsi_plus_icons_perRow'] = (isset($option5['sfsi_plus_icons_perRow']))
|
36 |
+
? intval($option5['sfsi_plus_icons_perRow'])
|
37 |
+
: '';
|
38 |
+
$option5['sfsi_plus_follow_icons_language'] = (isset($option5['sfsi_plus_follow_icons_language']))
|
39 |
+
? sanitize_text_field($option5['sfsi_plus_follow_icons_language'])
|
40 |
+
: '';
|
41 |
+
$option5['sfsi_plus_facebook_icons_language']= (isset($option5['sfsi_plus_facebook_icons_language']))
|
42 |
+
? sanitize_text_field($option5['sfsi_plus_facebook_icons_language'])
|
43 |
+
: '';
|
44 |
+
$option5['sfsi_plus_twitter_icons_language']= (isset($option5['sfsi_plus_twitter_icons_language']))
|
45 |
+
? sanitize_text_field($option5['sfsi_plus_twitter_icons_language'])
|
46 |
+
: '';
|
47 |
+
$option5['sfsi_plus_google_icons_language'] = (isset($option5['sfsi_plus_google_icons_language']))
|
48 |
+
? sanitize_text_field($option5['sfsi_plus_google_icons_language'])
|
49 |
+
: '';
|
50 |
+
$option5['sfsi_plus_icons_ClickPageOpen'] = (isset($option5['sfsi_plus_icons_ClickPageOpen']))
|
51 |
+
? sanitize_text_field($option5['sfsi_plus_icons_ClickPageOpen'])
|
52 |
+
: '';
|
53 |
+
$option5['sfsi_plus_disable_floaticons'] = (isset($option5['sfsi_plus_disable_floaticons']))
|
54 |
+
? sanitize_text_field($option5['sfsi_plus_disable_floaticons'])
|
55 |
+
: '';
|
56 |
+
$option5['sfsi_plus_icons_stick'] = (isset($option5['sfsi_plus_icons_stick']))
|
57 |
+
? sanitize_text_field($option5['sfsi_plus_icons_stick'])
|
58 |
+
: '';
|
59 |
+
|
60 |
+
$option5['sfsi_plus_rss_MouseOverText'] = (isset($option5['sfsi_plus_rss_MouseOverText']))
|
61 |
+
? sanitize_text_field($option5['sfsi_plus_rss_MouseOverText'])
|
62 |
+
: '';
|
63 |
+
$option5['sfsi_plus_email_MouseOverText'] = (isset($option5['sfsi_plus_email_MouseOverText']))
|
64 |
+
? sanitize_text_field($option5['sfsi_plus_email_MouseOverText'])
|
65 |
+
: '';
|
66 |
+
$option5['sfsi_plus_twitter_MouseOverText'] = (isset($option5['sfsi_plus_twitter_MouseOverText']))
|
67 |
+
? sanitize_text_field($option5['sfsi_plus_twitter_MouseOverText'])
|
68 |
+
: '';
|
69 |
+
$option5['sfsi_plus_facebook_MouseOverText']= (isset($option5['sfsi_plus_facebook_MouseOverText']))
|
70 |
+
? sanitize_text_field($option5['sfsi_plus_facebook_MouseOverText'])
|
71 |
+
: '';
|
72 |
+
$option5['sfsi_plus_google_MouseOverText'] = (isset($option5['sfsi_plus_google_MouseOverText']))
|
73 |
+
? sanitize_text_field($option5['sfsi_plus_google_MouseOverText'])
|
74 |
+
: '';
|
75 |
+
$option5['sfsi_plus_linkedIn_MouseOverText']= (isset($option5['sfsi_plus_linkedIn_MouseOverText']))
|
76 |
+
? sanitize_text_field($option5['sfsi_plus_linkedIn_MouseOverText'])
|
77 |
+
: '';
|
78 |
+
$option5['sfsi_plus_pinterest_MouseOverText']= (isset($option5['sfsi_plus_pinterest_MouseOverText']))
|
79 |
+
? sanitize_text_field($option5['sfsi_plus_pinterest_MouseOverText'])
|
80 |
+
: '';
|
81 |
+
$option5['sfsi_plus_youtube_MouseOverText'] = (isset($option5['sfsi_plus_youtube_MouseOverText']))
|
82 |
+
? sanitize_text_field($option5['sfsi_plus_youtube_MouseOverText'])
|
83 |
+
: '';
|
84 |
+
$option5['sfsi_plus_share_MouseOverText'] = (isset($option5['sfsi_plus_share_MouseOverText']))
|
85 |
+
? sanitize_text_field($option5['sfsi_plus_share_MouseOverText'])
|
86 |
+
: '';
|
87 |
+
$option5['sfsi_plus_instagram_MouseOverText']= (isset($option5['sfsi_plus_instagram_MouseOverText']))
|
88 |
+
? sanitize_text_field($option5['sfsi_plus_instagram_MouseOverText'])
|
89 |
+
: '';
|
90 |
+
$option5['sfsi_plus_houzz_MouseOverText'] = (isset($option5['sfsi_plus_houzz_MouseOverText']))
|
91 |
+
? sanitize_text_field($option5['sfsi_plus_houzz_MouseOverText'])
|
92 |
+
: '';
|
93 |
+
|
94 |
|
95 |
$visit_iconsUrl = SFSI_PLUS_PLUGURL."images/visit_icons/";
|
96 |
+
if(is_array($custom_icons_order) )
|
|
|
97 |
{
|
98 |
foreach($custom_icons_order as $data)
|
99 |
{
|
778 |
<p>
|
779 |
<?php _e( 'If you decided to show your icons via a widget, you can add the effect that when the user scrolls down, the icons will stick at the top of the screen so that they are still displayed even if the user scrolled all the way down. Do you want to do that?', SFSI_PLUS_DOMAIN ); ?>
|
780 |
</p>
|
781 |
+
<div class="space">
|
|
|
|
|
|
|
|
|
|
|
|
|
782 |
<!--<p class="list">Make icons stick?</p>-->
|
783 |
<ul class="enough_waffling">
|
784 |
<li>
|
925 |
</div>
|
926 |
</div>
|
927 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
928 |
<div class="clear"> </div>
|
929 |
<div class="plus_custom_m">
|
930 |
<?php
|
938 |
<?php _e( 'Custom', SFSI_PLUS_DOMAIN ); ?>
|
939 |
<?php echo $count; ?>:
|
940 |
</label>
|
941 |
+
<input name="sfsi_plus_custom_MouseOverTexts[]" value="<?php echo (isset($sfsiMouseOverTexts[$i]) && $sfsiMouseOverTexts[$i]!='') ? sanitize_text_field($sfsiMouseOverTexts[$i]) : '' ;?>" type="text" file-id="<?php echo $i; ?>" />
|
942 |
</div>
|
943 |
<?php if($count%2==0): ?>
|
944 |
+
<div class="clear"></div>
|
945 |
<?php endif; ?>
|
946 |
<?php $count++;
|
947 |
endif; endfor; ?>
|
views/sfsi_option_view6.php
CHANGED
@@ -1,6 +1,24 @@
|
|
1 |
<?php
|
2 |
-
/* unserialize all saved option for section 6 options */
|
3 |
$option6= unserialize(get_option('sfsi_plus_section6_options',false));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
?>
|
6 |
<!-- Section 6 "Do you want to display icons at the end of every post?" main div Start -->
|
@@ -11,10 +29,13 @@
|
|
11 |
<!-- icons example section -->
|
12 |
<div class="social_icon_like1">
|
13 |
<ul>
|
14 |
-
<li
|
15 |
-
|
|
|
|
|
|
|
|
|
16 |
<li><a href="#" title="Share"><img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/share1.jpg" alt="Share" /><span>18k</span></a></li>
|
17 |
-
|
18 |
</ul>
|
19 |
</div><!-- icons position section -->
|
20 |
|
1 |
<?php
|
2 |
+
/* unserialize all saved option for section 6 options */
|
3 |
$option6= unserialize(get_option('sfsi_plus_section6_options',false));
|
4 |
+
/*
|
5 |
+
* Sanitize, escape and validate values
|
6 |
+
*/
|
7 |
+
$option6['sfsi_plus_show_Onposts'] = (isset($option6['sfsi_plus_show_Onposts']))
|
8 |
+
? sanitize_text_field($option6['sfsi_plus_show_Onposts'])
|
9 |
+
: '';
|
10 |
+
$option6['sfsi_plus_icons_postPositon'] = (isset($option6['sfsi_plus_icons_postPositon']))
|
11 |
+
? sanitize_text_field($option6['sfsi_plus_icons_postPositon'])
|
12 |
+
: '';
|
13 |
+
$option6['sfsi_plus_icons_alignment'] = (isset($option6['sfsi_plus_icons_alignment']))
|
14 |
+
? sanitize_text_field($option6['sfsi_plus_icons_alignment'])
|
15 |
+
: '';
|
16 |
+
$option6['sfsi_plus_textBefor_icons'] = (isset($option6['sfsi_plus_textBefor_icons']))
|
17 |
+
? sanitize_text_field($option6['sfsi_plus_textBefor_icons'])
|
18 |
+
: '';
|
19 |
+
$option6['sfsi_plus_icons_DisplayCounts'] = (isset($option6['sfsi_plus_icons_DisplayCounts']))
|
20 |
+
? sanitize_text_field($option6['sfsi_plus_icons_DisplayCounts'])
|
21 |
+
: '';
|
22 |
|
23 |
?>
|
24 |
<!-- Section 6 "Do you want to display icons at the end of every post?" main div Start -->
|
29 |
<!-- icons example section -->
|
30 |
<div class="social_icon_like1">
|
31 |
<ul>
|
32 |
+
<li>
|
33 |
+
<a href="#" title="Facebook Like"><img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/like.jpg" alt="Facebook Like" /><span>18k</span></a>
|
34 |
+
</li>
|
35 |
+
<li>
|
36 |
+
<a href="#" title="Google Plus"><img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/google_plus1.jpg" alt="Google Plus" /><span>18k</span></a>
|
37 |
+
</li>
|
38 |
<li><a href="#" title="Share"><img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/share1.jpg" alt="Share" /><span>18k</span></a></li>
|
|
|
39 |
</ul>
|
40 |
</div><!-- icons position section -->
|
41 |
|
views/sfsi_option_view7.php
CHANGED
@@ -1,7 +1,46 @@
|
|
1 |
<?php
|
2 |
-
/* unserialize all saved option for section 7 options */
|
3 |
$option7= unserialize(get_option('sfsi_plus_section7_options',false));
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
?>
|
6 |
<!-- Section 7 "Do you want to display a pop-up, asking people to subscribe?" main div Start -->
|
7 |
<div class="tab7">
|
@@ -15,18 +54,73 @@
|
|
15 |
<?php _e( 'Enjoy this site? Please follow and like us!', SFSI_PLUS_DOMAIN ); ?>
|
16 |
</h2>
|
17 |
<ul class="like_icon plus_sfsi_sample_icons">
|
18 |
-
<li class="sfsiplus_rss_section"
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
<li class="
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
if(isset($icons) && !empty($icons))
|
31 |
{
|
32 |
if(is_array($icons))
|
@@ -40,14 +134,19 @@
|
|
40 |
?>
|
41 |
</ul>
|
42 |
</div>
|
43 |
-
</div
|
|
|
44 |
|
45 |
<!-- icons controllers section -->
|
46 |
<div class="space">
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
|
|
|
|
|
|
|
|
51 |
<label><?php _e( 'Text:', SFSI_PLUS_DOMAIN ); ?></label>
|
52 |
<input class="mkPop" name="sfsi_plus_popup_text" type="text" value="<?php echo ($option7['sfsi_plus_popup_text']!='') ? $option7['sfsi_plus_popup_text'] : '' ;?>" />
|
53 |
</div>
|
@@ -119,10 +218,6 @@
|
|
119 |
<div class="sfsiplus_row_tab">
|
120 |
<label><?php _e( 'Font color:', SFSI_PLUS_DOMAIN ); ?></label>
|
121 |
<input name="sfsi_plus_popup_fontColor" data-default-color="#b5b5b5" id="sfsi_plus_popup_fontColor" type="text" value="<?php echo ($option7['sfsi_plus_popup_fontColor']!='') ? $option7['sfsi_plus_popup_fontColor'] : '' ;?>" />
|
122 |
-
<!--div class="color_box">
|
123 |
-
<div class="corner"></div>
|
124 |
-
<div class="color_box1" id="sfsifontCloroPicker" style="background: <?php echo ($option7['sfsi_plus_popup_fontColor']!='') ? $option7['sfsi_plus_popup_fontColor'] : '#ffffff' ; ?>"></div>
|
125 |
-
</div-->
|
126 |
</div>
|
127 |
<div class="sfsiplus_row_tab">
|
128 |
<label>
|
@@ -138,31 +233,23 @@
|
|
138 |
<div class="sfsiplus_row_tab">
|
139 |
<label>
|
140 |
<?php _e( 'Backgroud<br />Color:', SFSI_PLUS_DOMAIN ); ?>
|
141 |
-
|
142 |
-
</label>
|
143 |
<input name="sfsi_plus_popup_background_color" data-default-color="#b5b5b5" id="sfsi_plus_popup_background_color" type="text" value="<?php echo ($option7['sfsi_plus_popup_background_color']!='') ? $option7['sfsi_plus_popup_background_color'] : '' ;?>" />
|
144 |
-
<!--div class="color_box">
|
145 |
-
<div class="corner"></div>
|
146 |
-
<div class="color_box1" id="sfsiBackgroundColorPicker" style="background: <?php //echo ($option7['sfsi_plus_popup_background_color']!='') ? $option7['sfsi_plus_popup_background_color'] : '#ffffff' ; ?>"></div>
|
147 |
-
</div-->
|
148 |
</div>
|
149 |
<div class="sfsiplus_row_tab">
|
150 |
<label class="border">
|
151 |
<?php _e( 'Border Color:', SFSI_PLUS_DOMAIN ); ?>
|
152 |
</label>
|
153 |
-
<div class="field"
|
154 |
-
|
155 |
-
<div class="corner"></div>
|
156 |
-
<div class="color_box1" id="sfsiBorderColorPicker" style="background: <?php //echo ($option7['sfsi_plus_popup_border_color']!='') ? $option7['sfsi_plus_popup_border_color'] : '#ffffff' ; ?>"></div>
|
157 |
-
</div-->
|
158 |
</div>
|
159 |
</div>
|
160 |
<div class="sfsiplus_row_tab">
|
161 |
<label>
|
162 |
<?php _e( 'Border<br />Thinckness:', SFSI_PLUS_DOMAIN ); ?>
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
</div>
|
167 |
</div>
|
168 |
<div class="sfsiplus_row_tab">
|
@@ -170,130 +257,132 @@
|
|
170 |
<?php _e( 'Border<br /> Shadow:', SFSI_PLUS_DOMAIN ); ?>
|
171 |
</label>
|
172 |
<ul class="border_shadow">
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
|
|
|
|
|
|
|
|
182 |
</div>
|
183 |
-
|
184 |
</div>
|
185 |
</div>
|
|
|
186 |
<div class="row">
|
187 |
<h4>
|
188 |
<?php _e( 'Where shall the pop-up be shown?', SFSI_PLUS_DOMAIN ); ?>
|
189 |
</h4>
|
190 |
-
|
|
|
191 |
<label>
|
192 |
<?php _e( 'Nowhere', SFSI_PLUS_DOMAIN ); ?>
|
193 |
</label>
|
194 |
-
|
195 |
-
<div class="pop_up_show"
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
</
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
'
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
if(!empty($select))
|
229 |
{
|
230 |
-
if(
|
231 |
{
|
232 |
-
$
|
233 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
234 |
}
|
235 |
else
|
236 |
{
|
237 |
$selected_box = '';
|
238 |
$class = '';
|
239 |
}
|
|
|
240 |
}
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
$class = '';
|
245 |
-
}
|
246 |
-
echo '<option value="'.$page->ID.'" style="margin-bottom: 3px;" '.$selected_box.' '.$class.'>'.$page->post_title.'</option>';
|
247 |
-
}
|
248 |
-
|
249 |
-
} ?>
|
250 |
-
|
251 |
</select><br/>
|
252 |
<?php _e( 'Please hold CTRL key to select multiple pages', SFSI_PLUS_DOMAIN ); ?>.
|
253 |
</div>
|
254 |
-
|
255 |
</div>
|
256 |
<div class="row">
|
257 |
<h4>
|
258 |
<?php _e( 'When shall the pop-up be shown?', SFSI_PLUS_DOMAIN ); ?>
|
259 |
</h4>
|
260 |
-
<div class="pop_up_show"
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
<label>
|
268 |
-
<?php _e( 'Every time user scrolls to the end of the page', SFSI_PLUS_DOMAIN ); ?>
|
269 |
-
</label>
|
270 |
</div>
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
<option value="1440" <?php //echo ($option7['sfsi_plus_Shown_popuplimitPerUserTime']==$i) ? 'selected="selected"' : '' ;?>>1 Day</option>
|
278 |
-
<option value="10080" <?php //echo ($option7['sfsi_plus_Shown_popuplimitPerUserTime']==$i) ? 'selected="selected"' : '' ;?>>1 Week</option>
|
279 |
-
<option value="43200" <?php //echo ($option7['sfsi_plus_Shown_popuplimitPerUserTime']==$i) ? 'selected="selected"' : '' ;?>>1 Month</option>
|
280 |
-
</select></div></div>-->
|
281 |
</div>
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
</a>
|
289 |
-
</div><!-- END SAVE BUTTON SECTION -->
|
290 |
-
<a class="sfsiColbtn closeSec" href="javascript:;" class="closeSec">
|
291 |
-
<?php _e( 'Collapse area', SFSI_PLUS_DOMAIN ); ?>
|
292 |
</a>
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
|
|
298 |
|
299 |
-
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
2 |
+
/* unserialize all saved option for section 7 options */
|
3 |
$option7= unserialize(get_option('sfsi_plus_section7_options',false));
|
4 |
+
|
5 |
+
/**
|
6 |
+
* Sanitize, escape and validate values
|
7 |
+
*/
|
8 |
+
$option7['sfsi_plus_popup_text'] = (isset($option7['sfsi_plus_popup_text']))
|
9 |
+
? sanitize_text_field($option7['sfsi_plus_popup_text'])
|
10 |
+
: '';
|
11 |
+
$option7['sfsi_plus_popup_background_color'] = (isset($option7['sfsi_plus_popup_background_color']))
|
12 |
+
? sfsi_plus_sanitize_hex_color($option7['sfsi_plus_popup_background_color'])
|
13 |
+
: '';
|
14 |
+
$option7['sfsi_plus_popup_border_color'] = (isset($option7['sfsi_plus_popup_border_color']))
|
15 |
+
? sfsi_plus_sanitize_hex_color($option7['sfsi_plus_popup_border_color'])
|
16 |
+
: '';
|
17 |
+
$option7['sfsi_plus_popup_border_thickness'] = (isset($option7['sfsi_plus_popup_border_thickness']))
|
18 |
+
? intval($option7['sfsi_plus_popup_border_thickness'])
|
19 |
+
: '';
|
20 |
+
$option7['sfsi_plus_popup_border_shadow'] = (isset($option7['sfsi_plus_popup_border_shadow']))
|
21 |
+
? sanitize_text_field($option7['sfsi_plus_popup_border_shadow'])
|
22 |
+
: '';
|
23 |
+
$option7['sfsi_plus_popup_font'] = (isset($option7['sfsi_plus_popup_font']))
|
24 |
+
? sanitize_text_field($option7['sfsi_plus_popup_font'])
|
25 |
+
: '';
|
26 |
+
$option7['sfsi_plus_popup_fontSize'] = (isset($option7['sfsi_plus_popup_fontSize']))
|
27 |
+
? intval($option7['sfsi_plus_popup_fontSize'])
|
28 |
+
: '';
|
29 |
+
$option7['sfsi_plus_popup_fontStyle'] = (isset($option7['sfsi_plus_popup_fontStyle']))
|
30 |
+
? sanitize_text_field($option7['sfsi_plus_popup_fontStyle'])
|
31 |
+
: '';
|
32 |
+
$option7['sfsi_plus_popup_fontColor'] = (isset($option7['sfsi_plus_popup_fontColor']))
|
33 |
+
? sfsi_plus_sanitize_hex_color($option7['sfsi_plus_popup_fontColor'])
|
34 |
+
: '';
|
35 |
+
$option7['sfsi_plus_Show_popupOn'] = (isset($option7['sfsi_plus_Show_popupOn']))
|
36 |
+
? sanitize_text_field($option7['sfsi_plus_Show_popupOn'])
|
37 |
+
: '';
|
38 |
+
$option7['sfsi_plus_Shown_pop'] = (isset($option7['sfsi_plus_Shown_pop']))
|
39 |
+
? sanitize_text_field($option7['sfsi_plus_Shown_pop'])
|
40 |
+
: '';
|
41 |
+
$option7['sfsi_plus_Shown_popupOnceTime'] = (isset($option7['sfsi_plus_Shown_popupOnceTime']))
|
42 |
+
? intval($option7['sfsi_plus_Shown_popupOnceTime'])
|
43 |
+
: '';
|
44 |
?>
|
45 |
<!-- Section 7 "Do you want to display a pop-up, asking people to subscribe?" main div Start -->
|
46 |
<div class="tab7">
|
54 |
<?php _e( 'Enjoy this site? Please follow and like us!', SFSI_PLUS_DOMAIN ); ?>
|
55 |
</h2>
|
56 |
<ul class="like_icon plus_sfsi_sample_icons">
|
57 |
+
<li class="sfsiplus_rss_section">
|
58 |
+
<div>
|
59 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/rss.png" alt="RSS" />
|
60 |
+
<span class="sfsi_Cdisplay" id="sfsi_plus_rss_countsDisplay">12k</span>
|
61 |
+
</div>
|
62 |
+
</li>
|
63 |
+
<li class="sfsiplus_email_section">
|
64 |
+
<div>
|
65 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/<?php echo $email_image; ?>" alt="Email" class="icon_img" />
|
66 |
+
<span class="sfsi_Cdisplay" id="sfsi_plus_email_countsDisplay">12k</span>
|
67 |
+
</div>
|
68 |
+
</li>
|
69 |
+
<li class="sfsiplus_facebook_section">
|
70 |
+
<div>
|
71 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/facebook.png" alt="Facebook" />
|
72 |
+
<span class="sfsi_Cdisplay" id="sfsi_plus_facebook_countsDisplay">12k</span>
|
73 |
+
</div>
|
74 |
+
</li>
|
75 |
+
<li class="sfsiplus_google_section">
|
76 |
+
<div>
|
77 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/google_plus.png" alt="Google Plus" />
|
78 |
+
<span class="sfsi_Cdisplay" id="sfsi_plus_google_countsDisplay">12k</span>
|
79 |
+
</div>
|
80 |
+
</li>
|
81 |
+
<li class="sfsiplus_twitter_section">
|
82 |
+
<div>
|
83 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/twitter.png" alt="Twitter" />
|
84 |
+
<span class="sfsi_Cdisplay" id="sfsi_plus_twitter_countsDisplay">12k</span>
|
85 |
+
</div>
|
86 |
+
</li>
|
87 |
+
<li class="sfsiplus_share_section">
|
88 |
+
<div>
|
89 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/share.png" alt="Share" />
|
90 |
+
<span class="sfsi_Cdisplay" id="sfsi_plus_shares_countsDisplay">12k</span>
|
91 |
+
</div>
|
92 |
+
</li>
|
93 |
+
<li class="sfsiplus_youtube_section">
|
94 |
+
<div>
|
95 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/youtube.png" alt="YouTube" />
|
96 |
+
<span class="sfsi_Cdisplay" id="sfsi_plus_youtube_countsDisplay">12k</span>
|
97 |
+
</div>
|
98 |
+
</li>
|
99 |
+
<li class="sfsiplus_pinterest_section">
|
100 |
+
<div>
|
101 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/pinterest.png" alt="Pinterest" />
|
102 |
+
<span class="sfsi_Cdisplay" id="sfsi_plus_pinterest_countsDisplay">12k</span>
|
103 |
+
</div>
|
104 |
+
</li>
|
105 |
+
<li class="sfsiplus_linkedin_section">
|
106 |
+
<div>
|
107 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/linked_in.png" alt="Linked In" />
|
108 |
+
<span class="sfsi_Cdisplay" id="sfsi_plus_linkedIn_countsDisplay">12k</span>
|
109 |
+
</div>
|
110 |
+
</li>
|
111 |
+
<li class="sfsiplus_instagram_section">
|
112 |
+
<div>
|
113 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/instagram.png" alt="Instagram" />
|
114 |
+
<span class="sfsi_Cdisplay" id="sfsi_plus_instagram_countsDisplay">12k</span>
|
115 |
+
</div>
|
116 |
+
</li>
|
117 |
+
<li class="sfsiplus_houzz_section">
|
118 |
+
<div>
|
119 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/houzz.png" alt="Houzz" />
|
120 |
+
<span class="sfsi_Cdisplay" id="sfsi_plus_houzz_countsDisplay">12k</span>
|
121 |
+
</div>
|
122 |
+
</li>
|
123 |
+
<?php
|
124 |
if(isset($icons) && !empty($icons))
|
125 |
{
|
126 |
if(is_array($icons))
|
134 |
?>
|
135 |
</ul>
|
136 |
</div>
|
137 |
+
</div>
|
138 |
+
<!-- END icons preview section -->
|
139 |
|
140 |
<!-- icons controllers section -->
|
141 |
<div class="space">
|
142 |
+
|
143 |
+
<h4><?php _e( 'Text & Design', SFSI_PLUS_DOMAIN ); ?></h4>
|
144 |
+
|
145 |
+
<div class="text_options">
|
146 |
+
|
147 |
+
<h3><?php _e( 'Text Options', SFSI_PLUS_DOMAIN ); ?></h3>
|
148 |
+
|
149 |
+
<div class="sfsiplus_row_tab">
|
150 |
<label><?php _e( 'Text:', SFSI_PLUS_DOMAIN ); ?></label>
|
151 |
<input class="mkPop" name="sfsi_plus_popup_text" type="text" value="<?php echo ($option7['sfsi_plus_popup_text']!='') ? $option7['sfsi_plus_popup_text'] : '' ;?>" />
|
152 |
</div>
|
218 |
<div class="sfsiplus_row_tab">
|
219 |
<label><?php _e( 'Font color:', SFSI_PLUS_DOMAIN ); ?></label>
|
220 |
<input name="sfsi_plus_popup_fontColor" data-default-color="#b5b5b5" id="sfsi_plus_popup_fontColor" type="text" value="<?php echo ($option7['sfsi_plus_popup_fontColor']!='') ? $option7['sfsi_plus_popup_fontColor'] : '' ;?>" />
|
|
|
|
|
|
|
|
|
221 |
</div>
|
222 |
<div class="sfsiplus_row_tab">
|
223 |
<label>
|
233 |
<div class="sfsiplus_row_tab">
|
234 |
<label>
|
235 |
<?php _e( 'Backgroud<br />Color:', SFSI_PLUS_DOMAIN ); ?>
|
236 |
+
</label>
|
|
|
237 |
<input name="sfsi_plus_popup_background_color" data-default-color="#b5b5b5" id="sfsi_plus_popup_background_color" type="text" value="<?php echo ($option7['sfsi_plus_popup_background_color']!='') ? $option7['sfsi_plus_popup_background_color'] : '' ;?>" />
|
|
|
|
|
|
|
|
|
238 |
</div>
|
239 |
<div class="sfsiplus_row_tab">
|
240 |
<label class="border">
|
241 |
<?php _e( 'Border Color:', SFSI_PLUS_DOMAIN ); ?>
|
242 |
</label>
|
243 |
+
<div class="field">
|
244 |
+
<input name="sfsi_plus_popup_border_color" data-default-color="#b5b5b5" id="sfsi_plus_popup_border_color" type="text" value="<?php echo ($option7['sfsi_plus_popup_border_color']!='') ? $option7['sfsi_plus_popup_border_color'] : '' ;?>" />
|
|
|
|
|
|
|
245 |
</div>
|
246 |
</div>
|
247 |
<div class="sfsiplus_row_tab">
|
248 |
<label>
|
249 |
<?php _e( 'Border<br />Thinckness:', SFSI_PLUS_DOMAIN ); ?>
|
250 |
+
</label>
|
251 |
+
<div class="field">
|
252 |
+
<input name="sfsi_plus_popup_border_thickness" type="text" value="<?php echo ($option7['sfsi_plus_popup_border_thickness']!='') ? $option7['sfsi_plus_popup_border_thickness'] : '' ;?>" class="small" />
|
253 |
</div>
|
254 |
</div>
|
255 |
<div class="sfsiplus_row_tab">
|
257 |
<?php _e( 'Border<br /> Shadow:', SFSI_PLUS_DOMAIN ); ?>
|
258 |
</label>
|
259 |
<ul class="border_shadow">
|
260 |
+
<li>
|
261 |
+
<input name="sfsi_plus_popup_border_shadow" <?php echo ($option7['sfsi_plus_popup_border_shadow']=='yes') ? 'checked="true"' : '' ;?> type="radio" value="yes" class="styled" />
|
262 |
+
<label>
|
263 |
+
<?php _e( 'On', SFSI_PLUS_DOMAIN ); ?>
|
264 |
+
</label>
|
265 |
+
</li>
|
266 |
+
<li>
|
267 |
+
<input name="sfsi_plus_popup_border_shadow" <?php echo ($option7['sfsi_plus_popup_border_shadow']=='no') ? 'checked="true"' : '' ;?> type="radio" value="no" class="styled" />
|
268 |
+
<label>
|
269 |
+
<?php _e( 'Off', SFSI_PLUS_DOMAIN ); ?>
|
270 |
+
</label>
|
271 |
+
</li>
|
272 |
+
</ul>
|
273 |
</div>
|
|
|
274 |
</div>
|
275 |
</div>
|
276 |
+
|
277 |
<div class="row">
|
278 |
<h4>
|
279 |
<?php _e( 'Where shall the pop-up be shown?', SFSI_PLUS_DOMAIN ); ?>
|
280 |
</h4>
|
281 |
+
<div class="pop_up_show">
|
282 |
+
<input name="sfsi_plus_Show_popupOn" <?php echo ($option7['sfsi_plus_Show_popupOn']=='none') ? 'checked="true"' : '' ;?> type="radio" value="none" class="styled" />
|
283 |
<label>
|
284 |
<?php _e( 'Nowhere', SFSI_PLUS_DOMAIN ); ?>
|
285 |
</label>
|
286 |
+
</div>
|
287 |
+
<div class="pop_up_show">
|
288 |
+
<input name="sfsi_plus_Show_popupOn" <?php echo ($option7['sfsi_plus_Show_popupOn']=='everypage') ? 'checked="true"' : '' ;?> type="radio" value="everypage" class="styled" />
|
289 |
+
<label>
|
290 |
+
<?php _e( 'On every page', SFSI_PLUS_DOMAIN ); ?>
|
291 |
+
</label>
|
292 |
+
</div>
|
293 |
+
<div class="pop_up_show">
|
294 |
+
<input name="sfsi_plus_Show_popupOn" <?php echo ($option7['sfsi_plus_Show_popupOn']=='blogpage') ? 'checked="true"' : '' ;?> type="radio" value="blogpage" class="styled"/>
|
295 |
+
<label>
|
296 |
+
<?php _e( 'On blog posts only', SFSI_PLUS_DOMAIN ); ?>
|
297 |
+
</label>
|
298 |
+
</div>
|
299 |
+
<div class="pop_up_show">
|
300 |
+
<input name="sfsi_plus_Show_popupOn" <?php echo ($option7['sfsi_plus_Show_popupOn']=='selectedpage') ? 'checked="true"' : '' ;?> type="radio" value="selectedpage" class="styled"/>
|
301 |
+
<label>
|
302 |
+
<?php _e( 'On selected pages only', SFSI_PLUS_DOMAIN ); ?>
|
303 |
+
</label>
|
304 |
+
<div class="field" style="width:50%">
|
305 |
+
<select multiple="multiple" name="sfsi_plus_Show_popupOn_PageIDs" id="sfsi_plus_Show_popupOn_PageIDs" style="width:60%;min-height: 150px;">
|
306 |
+
<?php
|
307 |
+
$select= (isset($option7['sfsi_plus_Show_popupOn_PageIDs'])) ? unserialize($option7['sfsi_plus_Show_popupOn_PageIDs']) :array();
|
308 |
+
$get_pages = get_pages( array(
|
309 |
+
'offset'=> 1,
|
310 |
+
'hierarchical'=>1,
|
311 |
+
'sort_order' => 'DESC',
|
312 |
+
'sort_column' => 'post_date',
|
313 |
+
'posts_per_page' => 200,
|
314 |
+
'post_status' => 'publish'
|
315 |
+
));
|
316 |
+
if( $get_pages )
|
317 |
+
{
|
318 |
+
|
319 |
+
foreach( $get_pages as $page )
|
|
|
320 |
{
|
321 |
+
if(!empty($select))
|
322 |
{
|
323 |
+
if( in_array( $page->ID, $select) )
|
324 |
+
{
|
325 |
+
$selected_box = 'selected="selected"';
|
326 |
+
$class = 'class="sel-active"';
|
327 |
+
}
|
328 |
+
else
|
329 |
+
{
|
330 |
+
$selected_box = '';
|
331 |
+
$class = '';
|
332 |
+
}
|
333 |
}
|
334 |
else
|
335 |
{
|
336 |
$selected_box = '';
|
337 |
$class = '';
|
338 |
}
|
339 |
+
echo '<option value="'.$page->ID.'" style="margin-bottom: 3px;" '.$selected_box.' '.$class.'>'.$page->post_title.'</option>';
|
340 |
}
|
341 |
+
|
342 |
+
}
|
343 |
+
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
344 |
</select><br/>
|
345 |
<?php _e( 'Please hold CTRL key to select multiple pages', SFSI_PLUS_DOMAIN ); ?>.
|
346 |
</div>
|
347 |
+
</div>
|
348 |
</div>
|
349 |
<div class="row">
|
350 |
<h4>
|
351 |
<?php _e( 'When shall the pop-up be shown?', SFSI_PLUS_DOMAIN ); ?>
|
352 |
</h4>
|
353 |
+
<div class="pop_up_show">
|
354 |
+
<input name="sfsi_plus_Shown_pop" <?php echo ($option7['sfsi_plus_Shown_pop']=='once') ? 'checked="true"' : '' ;?> type="radio" value="once" class="styled" />
|
355 |
+
<label>
|
356 |
+
<?php _e( 'Once', SFSI_PLUS_DOMAIN ); ?>
|
357 |
+
<input name="sfsi_plus_Shown_popupOnceTime" type="text" value="<?php echo ($option7['sfsi_plus_Shown_popupOnceTime']!='') ? $option7['sfsi_plus_Shown_popupOnceTime'] : '' ;?>" class="seconds" />
|
358 |
+
<?php _e( 'seconds after the user arrived on the site', SFSI_PLUS_DOMAIN ); ?>
|
359 |
+
</label>
|
|
|
|
|
|
|
360 |
</div>
|
361 |
+
<div class="pop_up_show">
|
362 |
+
<input name="sfsi_plus_Shown_pop" <?php echo ($option7['sfsi_plus_Shown_pop']=='ETscroll') ? 'checked="true"' : '' ;?> type="radio" value="ETscroll" class="styled"/>
|
363 |
+
<label>
|
364 |
+
<?php _e( 'Every time user scrolls to the end of the page', SFSI_PLUS_DOMAIN ); ?>
|
365 |
+
</label>
|
366 |
+
</div>
|
|
|
|
|
|
|
|
|
367 |
</div>
|
368 |
+
<!-- SAVE BUTTON SECTION -->
|
369 |
+
<div class="save_button">
|
370 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
|
371 |
+
<?php $nonce = wp_create_nonce("update_plus_step7"); ?>
|
372 |
+
<a href="javascript:;" id="sfsi_plus_save7" title="Save" data-nonce="<?php echo $nonce;?>">
|
373 |
+
<?php _e( 'Save', SFSI_PLUS_DOMAIN ); ?>
|
|
|
|
|
|
|
|
|
374 |
</a>
|
375 |
+
</div>
|
376 |
+
<!-- END SAVE BUTTON SECTION -->
|
377 |
+
<a class="sfsiColbtn closeSec" href="javascript:;">
|
378 |
+
<?php _e( 'Collapse area', SFSI_PLUS_DOMAIN ); ?>
|
379 |
+
</a>
|
380 |
+
<label class="closeSec"></label>
|
381 |
|
382 |
+
<!-- ERROR AND SUCCESS MESSAGE AREA-->
|
383 |
+
<p class="red_txt errorMsg" style="display:none"> </p>
|
384 |
+
<p class="green_txt sucMsg" style="display:none"> </p>
|
385 |
+
<div class="clear"></div>
|
386 |
+
|
387 |
+
</div>
|
388 |
+
<!-- END Section 7 "Do you want to display a pop-up, asking people to subscribe?" main div Start -->
|
views/sfsi_option_view8.php
CHANGED
@@ -25,6 +25,74 @@
|
|
25 |
{
|
26 |
$option8['sfsi_plus_rectpinit'] = 'no';
|
27 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
?>
|
29 |
<div class="tab8">
|
30 |
<ul class="sfsiplus_icn_listing8">
|
25 |
{
|
26 |
$option8['sfsi_plus_rectpinit'] = 'no';
|
27 |
}
|
28 |
+
|
29 |
+
/**
|
30 |
+
* Sanitize, escape and validate values
|
31 |
+
*/
|
32 |
+
$option8['sfsi_plus_show_via_widget'] = (isset($option8['sfsi_plus_show_via_widget']))
|
33 |
+
? sanitize_text_field($option8['sfsi_plus_show_via_widget'])
|
34 |
+
: '';
|
35 |
+
$option8['sfsi_plus_float_on_page'] = (isset($option8['sfsi_plus_float_on_page']))
|
36 |
+
? sanitize_text_field($option8['sfsi_plus_float_on_page'])
|
37 |
+
: '';
|
38 |
+
$option8['sfsi_plus_float_page_position'] = (isset($option8['sfsi_plus_float_page_position']))
|
39 |
+
? sanitize_text_field($option8['sfsi_plus_float_page_position'])
|
40 |
+
: '';
|
41 |
+
$option8['sfsi_plus_icons_floatMargin_top'] = (isset($option8['sfsi_plus_icons_floatMargin_top']))
|
42 |
+
? intval($option8['sfsi_plus_icons_floatMargin_top'])
|
43 |
+
: '';
|
44 |
+
$option8['sfsi_plus_icons_floatMargin_bottom'] = (isset($option8['sfsi_plus_icons_floatMargin_bottom']))
|
45 |
+
? intval($option8['sfsi_plus_icons_floatMargin_bottom'])
|
46 |
+
: '';
|
47 |
+
$option8['sfsi_plus_icons_floatMargin_left'] = (isset($option8['sfsi_plus_icons_floatMargin_left']))
|
48 |
+
? intval($option8['sfsi_plus_icons_floatMargin_left'])
|
49 |
+
: '';
|
50 |
+
$option8['sfsi_plus_icons_floatMargin_right'] = (isset($option8['sfsi_plus_icons_floatMargin_right']))
|
51 |
+
? intval($option8['sfsi_plus_icons_floatMargin_right'])
|
52 |
+
: '';
|
53 |
+
$option8['sfsi_plus_place_item_manually'] = (isset($option8['sfsi_plus_place_item_manually']))
|
54 |
+
? sanitize_text_field($option8['sfsi_plus_place_item_manually'])
|
55 |
+
: '';
|
56 |
+
$option8['sfsi_plus_display_button_type'] = (isset($option8['sfsi_plus_display_button_type']))
|
57 |
+
? sanitize_text_field($option8['sfsi_plus_display_button_type'])
|
58 |
+
: '';
|
59 |
+
$option8['sfsi_plus_post_icons_size'] = (isset($option8['sfsi_plus_post_icons_size']))
|
60 |
+
? intval($option8['sfsi_plus_post_icons_size'])
|
61 |
+
: '';
|
62 |
+
$option8['sfsi_plus_post_icons_spacing'] = (isset($option8['sfsi_plus_post_icons_spacing']))
|
63 |
+
? intval($option8['sfsi_plus_post_icons_spacing'])
|
64 |
+
: '';
|
65 |
+
|
66 |
+
$option8['sfsi_plus_show_item_onposts'] = (isset($option8['sfsi_plus_show_item_onposts']))
|
67 |
+
? sanitize_text_field($option8['sfsi_plus_show_item_onposts'])
|
68 |
+
: '';
|
69 |
+
$option8['sfsi_plus_icons_alignment'] = (isset($option8['sfsi_plus_icons_alignment']))
|
70 |
+
? sanitize_text_field($option8['sfsi_plus_icons_alignment'])
|
71 |
+
: '';
|
72 |
+
$option8['sfsi_plus_textBefor_icons'] = (isset($option8['sfsi_plus_textBefor_icons']))
|
73 |
+
? sanitize_text_field($option8['sfsi_plus_textBefor_icons'])
|
74 |
+
: '';
|
75 |
+
$option8['sfsi_plus_icons_DisplayCounts'] = (isset($option8['sfsi_plus_icons_DisplayCounts']))
|
76 |
+
? sanitize_text_field($option8['sfsi_plus_icons_DisplayCounts'])
|
77 |
+
: '';
|
78 |
+
$option8['sfsi_plus_rectsub'] = (isset($option8['sfsi_plus_rectsub']))
|
79 |
+
? sanitize_text_field($option8['sfsi_plus_rectsub'])
|
80 |
+
: '';
|
81 |
+
$option8['sfsi_plus_rectfb'] = (isset($option8['sfsi_plus_rectfb']))
|
82 |
+
? sanitize_text_field($option8['sfsi_plus_rectfb'])
|
83 |
+
: '';
|
84 |
+
$option8['sfsi_plus_rectgp'] = (isset($option8['sfsi_plus_rectgp']))
|
85 |
+
? sanitize_text_field($option8['sfsi_plus_rectgp'])
|
86 |
+
: '';
|
87 |
+
$option8['sfsi_plus_rectshr'] = (isset($option8['sfsi_plus_rectshr']))
|
88 |
+
? sanitize_text_field($option8['sfsi_plus_rectshr'])
|
89 |
+
: '';
|
90 |
+
$option8['sfsi_plus_recttwtr'] = (isset($option8['sfsi_plus_recttwtr']))
|
91 |
+
? sanitize_text_field($option8['sfsi_plus_recttwtr'])
|
92 |
+
: '';
|
93 |
+
$option8['sfsi_plus_rectpinit'] = (isset($option8['sfsi_plus_rectpinit']))
|
94 |
+
? sanitize_text_field($option8['sfsi_plus_rectpinit'])
|
95 |
+
: '';
|
96 |
?>
|
97 |
<div class="tab8">
|
98 |
<ul class="sfsiplus_icn_listing8">
|
views/sfsi_option_view9.php
CHANGED
@@ -1,14 +1,102 @@
|
|
1 |
<?php
|
2 |
/* unserialize all saved option for Eight options */
|
3 |
-
$option9=
|
4 |
-
$feedId
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
?>
|
6 |
<div class="tab9">
|
7 |
<?php
|
8 |
$connectToFeed = "http://www.specificfeeds.com/?".base64_encode("userprofile=wordpress&feed_id=".$feedId);
|
9 |
?>
|
10 |
<p>
|
11 |
-
<?php
|
|
|
|
|
12 |
<a target="_new" href="<?php echo $connectToFeed; ?>">
|
13 |
<?php _e('claim your feed',SFSI_PLUS_DOMAIN); ?>.
|
14 |
</a>
|
@@ -18,7 +106,7 @@
|
|
18 |
<!--Section 1-->
|
19 |
<div class="sfsi_plus_tab8_subcontainer">
|
20 |
<h3 class="sfsi_plus_section_title">
|
21 |
-
<?php
|
22 |
</h3>
|
23 |
<div class="like_pop_box">
|
24 |
<?php get_sfsi_plus_SubscriptionForm(); ?>
|
@@ -28,10 +116,10 @@
|
|
28 |
<!--Section 2-->
|
29 |
<div class="sfsi_plus_tab8_subcontainer sfsi_plus_seprater">
|
30 |
<h3 class="sfsi_plus_section_title">
|
31 |
-
<?php
|
32 |
</h3>
|
33 |
<label class="sfsi_plus_label_text">
|
34 |
-
<?php
|
35 |
</label>
|
36 |
|
37 |
<ul class="sfsi_plus_form_info">
|
@@ -68,9 +156,9 @@
|
|
68 |
|
69 |
<div class="sfsi_plus_html" style="display: none;">
|
70 |
<?php
|
71 |
-
$sfsi_plus_feediid
|
72 |
-
$url
|
73 |
-
$url
|
74 |
?>
|
75 |
<div class="sfsi_plus_subscribe_Popinner" style="padding: 18px 0px;">
|
76 |
<form method="post" onsubmit="return sfsi_plus_processfurther(this);" target="popupwindow" action="<?php echo $url?>" style="margin: 0px 20px;">
|
1 |
<?php
|
2 |
/* unserialize all saved option for Eight options */
|
3 |
+
$option9 = unserialize(get_option('sfsi_plus_section9_options',false));
|
4 |
+
$feedId = sanitize_text_field(get_option('sfsi_plus_feed_id',false));
|
5 |
+
|
6 |
+
/*
|
7 |
+
* Sanitize, escape and validate values
|
8 |
+
*/
|
9 |
+
$option9['sfsi_plus_form_adjustment'] = (isset($option9['sfsi_plus_form_adjustment']))
|
10 |
+
? sanitize_text_field($option9['sfsi_plus_form_adjustment'])
|
11 |
+
: '';
|
12 |
+
$option9['sfsi_plus_form_height'] = (isset($option9['sfsi_plus_form_height']))
|
13 |
+
? intval($option9['sfsi_plus_form_height'])
|
14 |
+
: '';
|
15 |
+
$option9['sfsi_plus_form_width'] = (isset($option9['sfsi_plus_form_width']))
|
16 |
+
? intval($option9['sfsi_plus_form_width'])
|
17 |
+
: '';
|
18 |
+
$option9['sfsi_plus_form_border'] = (isset($option9['sfsi_plus_form_border']))
|
19 |
+
? sanitize_text_field($option9['sfsi_plus_form_border'])
|
20 |
+
: '';
|
21 |
+
$option9['sfsi_plus_form_border_thickness'] = (isset($option9['sfsi_plus_form_border_thickness']))
|
22 |
+
? intval($option9['sfsi_plus_form_border_thickness'])
|
23 |
+
: '';
|
24 |
+
$option9['sfsi_plus_form_border_color'] = (isset($option9['sfsi_plus_form_border_color']))
|
25 |
+
? sfsi_plus_sanitize_hex_color($option9['sfsi_plus_form_border_color'])
|
26 |
+
: '';
|
27 |
+
$option9['sfsi_plus_form_background'] = (isset($option9['sfsi_plus_form_background']))
|
28 |
+
? sfsi_plus_sanitize_hex_color($option9['sfsi_plus_form_background'])
|
29 |
+
: '';
|
30 |
+
|
31 |
+
$option9['sfsi_plus_form_heading_text'] = (isset($option9['sfsi_plus_form_heading_text']))
|
32 |
+
? sanitize_text_field($option9['sfsi_plus_form_heading_text'])
|
33 |
+
: '';
|
34 |
+
$option9['sfsi_plus_form_heading_font'] = (isset($option9['sfsi_plus_form_heading_font']))
|
35 |
+
? sanitize_text_field($option9['sfsi_plus_form_heading_font'])
|
36 |
+
: '';
|
37 |
+
$option9['sfsi_plus_form_heading_fontstyle']= (isset($option9['sfsi_plus_form_heading_fontstyle']))
|
38 |
+
? sanitize_text_field($option9['sfsi_plus_form_heading_fontstyle'])
|
39 |
+
: '';
|
40 |
+
$option9['sfsi_plus_form_heading_fontcolor']= (isset($option9['sfsi_plus_form_heading_fontcolor']))
|
41 |
+
? sfsi_plus_sanitize_hex_color($option9['sfsi_plus_form_heading_fontcolor'])
|
42 |
+
: '';
|
43 |
+
$option9['sfsi_plus_form_heading_fontsize'] = (isset($option9['sfsi_plus_form_heading_fontsize']))
|
44 |
+
? intval($option9['sfsi_plus_form_heading_fontsize'])
|
45 |
+
: '';
|
46 |
+
$option9['sfsi_plus_form_heading_fontalign']= (isset($option9['sfsi_plus_form_heading_fontalign']))
|
47 |
+
? sanitize_text_field($option9['sfsi_plus_form_heading_fontalign'])
|
48 |
+
: '';
|
49 |
+
|
50 |
+
$option9['sfsi_plus_form_field_text'] = (isset($option9['sfsi_plus_form_field_text']))
|
51 |
+
? sanitize_text_field($option9['sfsi_plus_form_field_text'])
|
52 |
+
: '';
|
53 |
+
$option9['sfsi_plus_form_field_font'] = (isset($option9['sfsi_plus_form_field_font']))
|
54 |
+
? sanitize_text_field($option9['sfsi_plus_form_field_font'])
|
55 |
+
: '';
|
56 |
+
$option9['sfsi_plus_form_field_fontstyle'] = (isset($option9['sfsi_plus_form_field_fontstyle']))
|
57 |
+
? sanitize_text_field($option9['sfsi_plus_form_field_fontstyle'])
|
58 |
+
: '';
|
59 |
+
$option9['sfsi_plus_form_field_fontcolor'] = (isset($option9['sfsi_plus_form_field_fontcolor']))
|
60 |
+
? sfsi_plus_sanitize_hex_color($option9['sfsi_plus_form_field_fontcolor'])
|
61 |
+
: '';
|
62 |
+
$option9['sfsi_plus_form_field_fontsize'] = (isset($option9['sfsi_plus_form_field_fontsize']))
|
63 |
+
? intval($option9['sfsi_plus_form_field_fontsize'])
|
64 |
+
: '';
|
65 |
+
$option9['sfsi_plus_form_field_fontalign'] = (isset($option9['sfsi_plus_form_field_fontalign']))
|
66 |
+
? sanitize_text_field($option9['sfsi_plus_form_field_fontalign'])
|
67 |
+
: '';
|
68 |
+
|
69 |
+
$option9['sfsi_plus_form_button_text'] = (isset($option9['sfsi_plus_form_button_text']))
|
70 |
+
? sanitize_text_field($option9['sfsi_plus_form_button_text'])
|
71 |
+
: '';
|
72 |
+
$option9['sfsi_plus_form_button_font'] = (isset($option9['sfsi_plus_form_button_font']))
|
73 |
+
? sanitize_text_field($option9['sfsi_plus_form_button_font'])
|
74 |
+
: '';
|
75 |
+
$option9['sfsi_plus_form_button_fontstyle'] = (isset($option9['sfsi_plus_form_button_fontstyle']))
|
76 |
+
? sanitize_text_field($option9['sfsi_plus_form_button_fontstyle'])
|
77 |
+
: '';
|
78 |
+
$option9['sfsi_plus_form_button_fontcolor'] = (isset($option9['sfsi_plus_form_button_fontcolor']))
|
79 |
+
? sfsi_plus_sanitize_hex_color($option9['sfsi_plus_form_button_fontcolor'])
|
80 |
+
: '';
|
81 |
+
$option9['sfsi_plus_form_button_fontsize'] = (isset($option9['sfsi_plus_form_button_fontsize']))
|
82 |
+
? intval($option9['sfsi_plus_form_button_fontsize'])
|
83 |
+
: '';
|
84 |
+
$option9['sfsi_plus_form_button_fontalign'] = (isset($option9['sfsi_plus_form_button_fontalign']))
|
85 |
+
? sanitize_text_field($option9['sfsi_plus_form_button_fontalign'])
|
86 |
+
: '';
|
87 |
+
$option9['sfsi_plus_form_button_background']= (isset($option9['sfsi_plus_form_button_background']))
|
88 |
+
? sfsi_plus_sanitize_hex_color($option9['sfsi_plus_form_button_background'])
|
89 |
+
: '';
|
90 |
+
|
91 |
?>
|
92 |
<div class="tab9">
|
93 |
<?php
|
94 |
$connectToFeed = "http://www.specificfeeds.com/?".base64_encode("userprofile=wordpress&feed_id=".$feedId);
|
95 |
?>
|
96 |
<p>
|
97 |
+
<?php
|
98 |
+
_e('In addition to the email- or follow-icon you can also show a subscription form which maximizes chances that people subscribe to your site. To get access to the emails who subscribe, please', SFSI_PLUS_DOMAIN);
|
99 |
+
?>
|
100 |
<a target="_new" href="<?php echo $connectToFeed; ?>">
|
101 |
<?php _e('claim your feed',SFSI_PLUS_DOMAIN); ?>.
|
102 |
</a>
|
106 |
<!--Section 1-->
|
107 |
<div class="sfsi_plus_tab8_subcontainer">
|
108 |
<h3 class="sfsi_plus_section_title">
|
109 |
+
<?php _e( 'Preview:', SFSI_PLUS_DOMAIN ); ?>
|
110 |
</h3>
|
111 |
<div class="like_pop_box">
|
112 |
<?php get_sfsi_plus_SubscriptionForm(); ?>
|
116 |
<!--Section 2-->
|
117 |
<div class="sfsi_plus_tab8_subcontainer sfsi_plus_seprater">
|
118 |
<h3 class="sfsi_plus_section_title">
|
119 |
+
<?php _e( 'Place it on your site', SFSI_PLUS_DOMAIN ); ?>
|
120 |
</h3>
|
121 |
<label class="sfsi_plus_label_text">
|
122 |
+
<?php _e( 'You can place the form by different methods:', SFSI_PLUS_DOMAIN ); ?>
|
123 |
</label>
|
124 |
|
125 |
<ul class="sfsi_plus_form_info">
|
156 |
|
157 |
<div class="sfsi_plus_html" style="display: none;">
|
158 |
<?php
|
159 |
+
$sfsi_plus_feediid = sanitize_text_field(get_option('sfsi_plus_feed_id'));
|
160 |
+
$url = "http://www.specificfeeds.com/widgets/subscribeWidget/";
|
161 |
+
$url = $url.$sfsi_plus_feediid.'/8/';
|
162 |
?>
|
163 |
<div class="sfsi_plus_subscribe_Popinner" style="padding: 18px 0px;">
|
164 |
<form method="post" onsubmit="return sfsi_plus_processfurther(this);" target="popupwindow" action="<?php echo $url?>" style="margin: 0px 20px;">
|